query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\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) { // }
{ "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
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\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 }", "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 }", "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($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "abstract public function put($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 updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\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 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($id, $input);", "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(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($id);", "public function update($id);", "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 put($path, $data = null);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "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 }", "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 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 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, $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.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445", "0.58630455", "0.58540666", "0.58540666", "0.5851948", "0.5816257", "0.58070177", "0.5752376", "0.5752376", "0.57359827", "0.5723941", "0.57152426", "0.56958807", "0.5691061", "0.56881654", "0.5669518", "0.5655434", "0.5651897", "0.56480426", "0.5636727", "0.56354004", "0.5633156", "0.5632135", "0.5629063", "0.5621358", "0.56089175", "0.5602031", "0.55927175", "0.5582773", "0.558176", "0.5581365", "0.5575607", "0.5571989", "0.55672973", "0.5562929", "0.55623275", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55598706", "0.55560726", "0.55558753", "0.5554241", "0.55534166", "0.5552986", "0.55440396", "0.55438566", "0.5540619", "0.55394524", "0.5536144", "0.5535339", "0.5534803", "0.5524157", "0.55188423", "0.55163455", "0.55135876", "0.5509835", "0.5507501", "0.55068344", "0.55034274", "0.5501476", "0.55010915", "0.5499286", "0.5497852", "0.54958415", "0.54958415", "0.5494513", "0.5494261", "0.54935366", "0.54931587", "0.54917634", "0.54836094", "0.5479455", "0.5478885", "0.5478268", "0.54654354", "0.54645413", "0.5461025", "0.54568535" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $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
Map the webservice data structure to publicly response object suitable for thirdparty consumption.
public function map(AvailableServicesMap $response): array { $services = []; $preferredLocationService = new CarrierService( 'preferredLocation', $response->getPreferredLocation()->isAvailable() ); $preferredNeighbourService = new CarrierService( 'preferredNeighbour', $response->getPreferredNeighbour()->isAvailable() ); $inCarDeliveryService = new CarrierService( 'inCarDelivery', $response->getInCarDelivery()->isAvailable() ); $noNeighbourDeliveryService = new CarrierService( 'noNeighbourDelivery', $response->getInCarDelivery()->isAvailable() ); $preferredDayOptions = []; foreach ($response->getPreferredDay()->getValidDays() as $interval) { $preferredDayOptions[] = new IntervalOption($interval->getStart(), $interval->getEnd()); } $preferredDayService = new CarrierService( 'preferredDay', $response->getPreferredDay()->isAvailable(), $preferredDayOptions ); $preferredTimeOptions = []; foreach ($response->getPreferredTime()->getTimeFrames() as $timeFrame) { $preferredTimeOptions[] = new TimeFrameOption( $timeFrame->getStart(), $timeFrame->getEnd(), $timeFrame->getCode() ); } $preferredTimeService = new CarrierService( 'preferredTime', $response->getPreferredTime()->isAvailable(), $preferredTimeOptions ); $sameDayDeliveryOptions = []; foreach ($response->getSameDayDelivery()->getSameDayTimeframes() as $areaTimeFrame) { $sameDayDeliveryOptions[] = new AreaTimeFrameOption( $areaTimeFrame->getStart(), $areaTimeFrame->getEnd(), $areaTimeFrame->getCode(), $areaTimeFrame->getDenselyPopulatedAreaId(), $areaTimeFrame->getDenselyPopulatedAreaName(), $areaTimeFrame->getDeliveryBaseId() ); } $sameDayDeliveryService = new CarrierService( 'sameDayDelivery', $response->getSameDayDelivery()->isAvailable(), $sameDayDeliveryOptions ); $services[] = $preferredLocationService; $services[] = $preferredNeighbourService; $services[] = $inCarDeliveryService; $services[] = $noNeighbourDeliveryService; $services[] = $preferredDayService; $services[] = $preferredTimeService; $services[] = $sameDayDeliveryService; return $services; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function Transform_Response($response)\n\t{\n\t\t\n\t\tif (is_string($response))\n\t\t{\n\t\t\t$response = new OLP_Response($response);\n\t\t}\n\t\t\n\t\t// we want the merged result so we have tokens for promo_id, etc.\n\t\t$data = array_merge($response->Signature()->To_Array(), $response->Collection()->To_Array());\n\t\t\n\t\t$proxy = new stdClass();\n\t\t$proxy->session_id = $response->Unique_ID();\n\t\t$proxy->page = $response->Page();\n\t\t$proxy->data = $data;\n\t\t$proxy->errors = $response->Errors()->To_Array();\n\t\t$proxy->event = array();\n\t\t\n\t\t// if we have a <section> element, turn it into\n\t\t// the eds_page in the response, using XSLT\n\t\tif (count($response->Content()->Sections()))\n\t\t{\n\t\t\t\n\t\t\t// which style-sheet?\n\t\t\t$xslt = DIR_SHARED.\"/xsl/{$response->Page()}.xsl\";\n\t\t\t\n\t\t\tif (is_file($xslt))\n\t\t\t{\n\t\t\t\t// transform our response\n\t\t\t\t$content = Transform_XML($xslt, $response->Received());\n\t\t\t\t$proxy->eds_page = array('content'=>$content, 'type'=>'text/html');\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $proxy;\n\t\t\n\t}", "public function getTransformedCollection( ) {\n $response[\"data\"] = [];\n foreach ( (new static)->get() as $industry_object) {\n $response['data'][] = $industry_object->getBeforeStandard();\n }//foreach ( (new static)->get() as $industry_object)\n return $response;\n }", "protected function parse(array $data)\n {\n if (empty($data)) {\n throw new WebserviceException(trans('messages.lms_webservice_unavailable'));\n }\n\n if (array_key_exists('error', $data)) {\n $error = collect($data['error'])->first();\n $message = trans(sprintf('messages.lms_webservice_error_%s', $error['errorCode']));\n throw new WebserviceException($message);\n }\n\n if (!array_key_exists('person', $data)) {\n throw new WebserviceException(trans('messages.lms_webservice_unavailable'));\n }\n\n $person = $data['person'];\n\n $birthday = sprintf('%04d-%02d-%02d', $person['birthYear'], $person['birthMonth'], $person['birthDay']);\n\n $schools = collect($this->parseWebserviceSchools($person['schools']));\n\n $parsed = [\n 'remote_id' => $person['personId'],\n 'access' => $person['user'],\n 'name' => $person['name'],\n 'surname' => $person['surname'],\n 'birthday' => $birthday,\n 'language' => [\n 'remote_id' => $person['languageId'],\n 'code' => $person['languageCode'],\n 'name' => $person['language'],\n ],\n 'timezone' => $person['timeZone'],\n 'http_env' => $person['http_env'],\n 'db_env' => $person['db_env'],\n 'schools' => $schools->toArray(),\n 'active_school' => $this->getActiveSchool($schools),\n ];\n\n if (!empty($person['email'])) {\n $parsed['email'] = trim($person['email'], '-');\n }\n\n $parsed['meta'] = $data;\n\n return $parsed;\n }", "public function getResponseData();", "private function getServiceMap()\n {\n $result = array(\n 'transport' => 'POST',\n 'envelope' => 'JSON-RPC-2.0',\n 'SMDVersion' => '2.0',\n 'contentType' => 'application/json',\n 'target' => !empty($_SERVER['REQUEST_URI']) ? substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], '?')) : '',\n 'services' => array(),\n 'description' => '',\n );\n\n foreach ($this->instances as $namespace => $instance) {\n $rc = new ReflectionClass($instance);\n\n // Get Class Description\n if ($rcDocComment = $this->getDocDescription($rc->getDocComment())) {\n $result['description'] .= $rcDocComment . PHP_EOL;\n }\n\n foreach ($rc->getMethods() as $method) {\n /** @var ReflectionMethod $method */\n if (!$method->isPublic() || in_array(strtolower($method->getName()), $this->hiddenMethods)) {\n continue;\n }\n\n $methodName = ($namespace ? $namespace . '.' : '') . $method->getName();\n $docComment = $method->getDocComment();\n\n $result['services'][$methodName] = array('parameters' => array());\n\n // set description\n if ($rmDocComment = $this->getDocDescription($docComment)) {\n $result['services'][$methodName]['description'] = $rmDocComment;\n }\n\n // @param\\s+([^\\s]*)\\s+([^\\s]*)\\s*([^\\s\\*]*)\n $parsedParams = array();\n if (preg_match_all('/@param\\s+([^\\s]*)\\s+([^\\s]*)\\s*([^\\n\\*]*)/', $docComment, $matches)) {\n foreach ($matches[2] as $number => $name) {\n $type = $matches[1][$number];\n $desc = $matches[3][$number];\n $name = trim($name, '$');\n\n $param = array('type' => $type, 'description' => $desc);\n $parsedParams[$name] = array_filter($param);\n }\n };\n\n // process params\n foreach ($method->getParameters() as $parameter) {\n $name = $parameter->getName();\n $param = array('name' => $name, 'optional' => $parameter->isDefaultValueAvailable());\n if (array_key_exists($name, $parsedParams)) {\n $param += $parsedParams[$name];\n }\n\n if ($param['optional']) {\n $param['default'] = $parameter->getDefaultValue();\n }\n\n $result['services'][$methodName]['parameters'][] = $param;\n }\n\n // set return type\n if (preg_match('/@return\\s+([^\\s]+)\\s*([^\\n\\*]+)/', $docComment, $matches)) {\n $returns = array('type' => $matches[1], 'description' => trim($matches[2]));\n $result['services'][$methodName]['returns'] = array_filter($returns);\n }\n }\n }\n\n return $result;\n }", "abstract public function convertFromResponse(SimplifiedResponse $response);", "private function response($data) {\n\t\treturn json_decode($data);\n\t}", "public function mapDataToResponseField($data, $response_field) {\n $map_data = [];\n // Index, all top level keys from response field.\n $fld_index = array_keys($response_field);\n\n // Map data to response field when data array has elements.\n if (is_array($data) && count($data) > 0) {\n foreach($data as $data_ctr => $item) {\n $item = (array) $item;\n // Field counter used to access field index above.\n $fld_ctr = 0;\n\n foreach($item as $key => $value) {\n if (is_array($response_field) && count($response_field) > 0) {\n // Response field is a full array.\n\n // If it is the full count, key full_count, mark it as comment.\n // Comments # will be removed by response class and will only be used\n // for pagination at this point.\n if ($key == 'full_count') {\n $map_data[ $data_ctr ][ '#' . $key ] = $value;\n }\n else {\n if (isset($response_field[ $fld_index[ $fld_ctr ] ]) && $response_field[ $fld_index[ $fld_ctr ] ]) {\n // Data has matching response field item.\n $value_response_field = $response_field[ $fld_index[ $fld_ctr ] ];\n\n if (is_array($value_response_field)) {\n // The response field has items down the line.\n $l1_index = array_keys($value_response_field);\n\n $z = 0;\n foreach($value as $l1_key => $l1_value) {\n if (is_array($l1_value)) {\n // Items and response field in this item.\n $l2_response_field = $value_response_field[ $l1_index[ $z ] ];\n if (is_array($l2_response_field)) {\n $l2_index = array_keys($l2_response_field);\n }\n\n if ($l1_key === 'set') {\n if (is_array($response_field[ $fld_index[ $fld_ctr ] ])) {\n if (is_string($response_field[ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ])) {\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ]\n = $this->mapSet($l1_value, $response_field[ $fld_index[ $fld_ctr ] ]);\n }\n else {\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ]\n = $this->mapSet($l1_value, $response_field[ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ]);\n }\n }\n\n // Stay on this response field til all items in the set have been mapped.\n $z++; continue;\n }\n\n $a = 0;\n foreach($l1_value as $l2_key => $l2_value) {\n if (is_array($l2_value)) {\n // Items and response field in this item.\n $l3_response_field = $l2_response_field[ $l2_index[ $a ] ];\n $l3_index = array_keys($l3_response_field);\n\n if ($l2_key === 'set') {\n // Use $a since this key is equals to set.\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ][ $l2_index[ $a ] ]\n = $this->mapSet($l2_value, $l2_response_field[ $l2_index[ $a ] ]);\n // Stay on this response field til all items in the set have been mapped.\n $a++; continue;\n }\n elseif ($l2_key === 'list') {\n // List of values in array..\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l2_response_field ] = $l2_value;\n $a++; continue;\n }\n\n $b = 0;\n foreach($l2_value as $l3_key => $l3_value) {\n if (is_array($l3_value)) {\n // Items and response field in this item.\n $l4_response_field = $l3_response_field[ $l3_index[ $b ] ];\n $l4_index = array_keys($l4_response_field);\n\n if ($l3_key === 'set') {\n // Use $a and $b since this key is equals to set.\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ][ $l2_index[ $a ] ][ $l3_index[ $b ] ]\n = $this->mapSet($l2_value, $l3_response_field[ $l3_index[ $b ] ]);\n // Stay on this response field til all items in the set have been mapped.\n $b++; continue;\n }\n elseif ($l3_key == 'list') {\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ][ $l3_response_field ] = $l3_value;\n $b++; continue;\n }\n\n foreach($l3_value as $l4_key => $l4_value) {\n if (!is_array($l4_value)) {\n // $l1_index[ $l1_key ], $l2_index[ $l2_key ] and $l3_index[ $l3_key ] contain non numeric index number.\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ][ $l2_index[ $a ] ][ $l3_index[ $b ] ]\n [ $l4_response_field[ $l4_index[ $l4_key ] ] ] = $l4_value;\n }\n }\n }\n else {\n // $l1_index[ $l1_key ] and $l2_index[ $l2_key ] contain non numeric index number.\n if (isset($l3_response_field[ $l3_index[ $b ] ])) {\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ][ $l2_index[ $a ] ]\n [ $l3_response_field[ $l3_index[ $b ] ] ] = $l3_value;\n }\n }\n\n $b++;\n }\n }\n else {\n // $l1_index[ $l1_key ] contains non numeric index number.\n if (isset($l2_response_field[ $l2_index[ $a ] ])) {\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $l1_index[ $z ] ]\n [ $l2_response_field[ $l2_index[ $a ] ] ] = $l2_value;\n }\n }\n\n $a++;\n }\n }\n else {\n if (isset($value_response_field[ $l1_index[ $z ] ])) {\n $map_data[ $data_ctr ][ $fld_index[ $fld_ctr ] ][ $value_response_field[ $l1_index[ $z ] ] ] = $l1_value;\n }\n }\n\n $z++;\n }\n }\n else {\n // Flat string field - map response field to value.\n if (is_array($value)) {\n // List is given.\n $value_key = array_keys($value)[0];\n $value = ($value_key == 'list') ? $value['list'] : $value;\n }\n\n $map_data[ $data_ctr ][ $value_response_field ] = $value;\n }\n }\n }\n\n // Next value.\n $fld_ctr++;\n }\n else {\n // An empty array, ie in crops or commoncropnames.\n if ($key == 'full_count') {\n $map_data[ $data_ctr ][ '#' . $key ] = $value;\n }\n else {\n $map_data[ $data_ctr ] = $value;\n }\n }\n }\n }\n }\n\n return $map_data;\n }", "public function getInnerResponse();", "private function mapResponses()\n {\n foreach ($this->responses as &$data) {\n /** @var Response $response */\n $response = $data[1];\n\n if (preg_match('/^\\$/',$response->ref)) {\n $params = explode(\"/\", strtolower($response->ref));\n\n $this->loadParent($data, $params[1], $params[2]);\n } else {\n $this->head_responses[] = &$data;\n }\n }\n }", "protected function serviceResponse()\n {\n if ($this->_serviceMediatorStructure) {\n $this->_service->pullServiceMessages();\n }\n\n if ($this->_service->getError()) {\n $response = [\n 'error_message' => $this->_service->getError(),\n 'error' => 'true'\n ];\n } else {\n $response = [\n 'error' => 'false',\n 'message' => $this->_service->getMessage()\n ];\n }\n\n if ($this->_service->getFormMessages()) {\n $response['formMessages'] = $this->_service->getFormMessages();\n }\n\n $jsonData = $this->_service->getJsonData();\n if ($jsonData == true && !empty($jsonData)) {\n $response['data'] = $jsonData;\n }\n $data = Zend_Json::encode($response);\n\n // DO NOT CHANGE THIS. DO THIS ONLY LOCALLY\n $this->ajaxResponse($data, 'text/html');\n }", "abstract public function responseProvider();", "public function all()\n {\n // set the url\n $url = self::$apiUrl . self::$servicePoint;\n\n // get a raw response\n self::$rawData = self::apiCall($url, '', array('headers' => array('Accept: ' . self::$httpAccept), 'options' => $this->getOptions()));\n\n // decode it and set php native rough data....\n if (self::$httpAccept == 'application/xml') {\n self::$data = simplexml_load_string(self::$rawData);\n } elseif (self::$httpAccept == 'application/json') {\n self::$data = json_decode(self::$rawData);\n }\n\n $data = self::getData();\n\n if (is_object($data) && property_exists($data, 'context')) {\n $context = (array)$data->context;\n } else {\n $context = null;\n }\n\n $model = self::$model;\n $class = 'MIMAS\\\\Service\\Jorum\\\\' . strtoupper(substr($model, 0, 1)) . substr($model, 1);\n\n $data = array();\n\n foreach (self::getData()->$model as $i => $object) {\n $data[] = new $class((array)$object);\n }\n\n $ret = new \\MIMAS\\Service\\DataCollection($data, $context);\n\n return ($ret);\n }", "abstract function parse_api_response();", "public function parse(){\n\t\t$this->_data = array();\n\t\n\t\ttry{\n\t\t\tparent::parse();\n\t\t\t\n\t\t\tif(!empty($this->_response)){\n\t\t\t\tif($this->_request['method'] == 'GetEvents'){\n\t\t\t\t\tif(is_array($this->_response->GetEventsResult->Event)){\n\t\t\t\t\t\tforeach($this->_response->GetEventsResult->Event as $event){\n\t\t\t\t\t\t\t$this->_data[] = $event;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(is_object($this->_response->GetEventsResult->Event)){\n\t\t\t\t\t\t$this->_data = $this->_response->GetEventsResult->Event;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->_data = null;\n\t\t\t\t\t}\n\t\t\t\t}else if($this->_request['method'] == 'SearchEvents'){\n\t\t\t\t\tif(is_array($this->_response->SearchEventsResult->Event)){\n\t\t\t\t\t\tforeach($this->_response->SearchEventsResult->Event as $event){\n\t\t\t\t\t\t\t$this->_data[] = $event;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(is_object($this->_response->SearchEventsResult->Event)){\n\t\t\t\t\t\t$this->_data = $this->_response->SearchEventsResult->Event;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->_data = null;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!empty($this->_response->GetCountryByIDResult)){\n\t\t\t\t\t\t$this->_data = $this->_response->GetCountryByIDResult;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->_data = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t}catch(TNException $e){\n\t\t\t$err = $this->debug($e->getMessage());\n\t\t\techo $err;\n\t\t}\n\t\n\t\treturn $this;\n\t}", "public function mapResponse(array $data = [])\n {\n return array_map(function ($item) {\n return [\n 'id' => $item['orderId'],\n 'symbol' => $item['symbol'],\n 'side' => strtolower($item['side']),\n 'type' => strtolower($item['type']),\n 'status' => strtolower($item['status']),\n 'price' => $item['price'],\n 'amount' => $item['origQty'],\n 'timestamp' => $item['time'],\n ];\n }, $data);\n }", "public function convertResponse($values)\n {\n\t}", "public function get_response_object()\n {\n }", "public function getForWebserviceExport()\n {\n $el = parent::getForWebserviceExport();\n if ($this->data[\"internal\"]) {\n if (intval($this->data[\"internalId\"]) > 0) {\n if ($this->data[\"internalType\"] == \"document\") {\n $referencedDocument = Document::getById($this->data[\"internalId\"]);\n if (!$referencedDocument instanceof Document) {\n //detected broken link\n $document = Document::getById($this->getDocumentId());\n }\n } else if ($this->data[\"internalType\"] == \"asset\") {\n $referencedAsset = Asset::getById($this->data[\"internalId\"]);\n if (!$referencedAsset instanceof Asset) {\n //detected broken link\n $document = Document::getById($this->getDocumentId());\n }\n }\n }\n }\n\n $el->data = $this->data;\n return $el;\n }", "public function prepareResponse();", "private function getData(){\n if($this->type == \"auto\"){\n \n \n $result = $this->get_from_link( self::AUTO_STRING.http_build_query($this->data));\n $array_names = json_decode($result, true); \n //var_dump($array_names); \n if(!isset($array_names)){\n $this->serverSideError(); \n }\n $ans = array(); \n \n foreach($array_names[\"predictions\"] as $key => $value){\n array_push($ans, $value[\"description\"]); \n }\n \n $response['status_code_header'] = 'HTTP/1.1 200 OK'; \n $response['body'] = json_encode($ans); \n \n return $response; \n }\n\n else if($this->type == \"geocode\"){\n \n\n //echo() $this->data); \n $result = $this->get_from_link( self::GEOCODE_STRING.http_build_query($this->data));\n // echo $result; \n $array = json_decode($result, true); \n if(!isset($array)){\n $this->serverSideError(); \n }\n \n $response['status_code_header'] = 'HTTP/1.1 200 OK'; \n $response['body'] = json_encode( $array[\"results\"][0][\"geometry\"][\"location\"]); \n \n return $response; \n }\n }", "public function convertResponse($values)\n {\n\n\t}", "public function fromAPI($data);", "public function prepare_response( $data ) {\n\t\tif ( ! defined( 'WP_JSON_SERIALIZE_COMPATIBLE' ) || WP_JSON_SERIALIZE_COMPATIBLE === false ) {\n\t\t\treturn $data;\n\t\t}\n\n\t\tswitch ( gettype( $data ) ) {\n\t\t\tcase 'boolean':\n\t\t\tcase 'integer':\n\t\t\tcase 'double':\n\t\t\tcase 'string':\n\t\t\tcase 'NULL':\n\t\t\t\t// These values can be passed through\n\t\t\t\treturn $data;\n\n\t\t\tcase 'array':\n\t\t\t\t// Arrays must be mapped in case they also return objects\n\t\t\t\treturn array_map( array( $this, 'prepare_response' ), $data);\n\n\t\t\tcase 'object':\n\t\t\t\tif ( $data instanceof JsonSerializable ) {\n\t\t\t\t\t$data = $data->jsonSerialize();\n\t\t\t\t} else {\n\t\t\t\t\t$data = get_object_vars( $data );\n\t\t\t\t}\n\n\t\t\t\t// Now, pass the array (or whatever was returned from\n\t\t\t\t// jsonSerialize through.)\n\t\t\t\treturn $this->prepare_response( $data );\n\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t}", "abstract public function map($data);", "protected function parseResponse()\n {\n $data = simplexml_load_string($this->body);\n \n $this->data = $data;\n }", "public function parseResponseToData()\n {\n /** @var TransporterInterface $transporter */\n $transporter = TransporterFactory::build();\n\n return $transporter->parseResponseToData($this->response);\n }", "public function getDataMapper() {}", "function getResultMappers(\\Auryn\\Injector $injector)\n{\n $twigResponseMapperFn = function (\n \\SlimAuryn\\Response\\TwigResponse $twigResponse,\n ResponseInterface $originalResponse\n ) use ($injector) {\n\n $twigResponseMapper = $injector->make(\\SlimAuryn\\ResponseMapper\\TwigResponseMapper::class);\n\n return $twigResponseMapper($twigResponse, $originalResponse);\n };\n\n $markdownResponseMapperFn = function (\n \\ASVoting\\Response\\MarkdownResponse $markdownResponse,\n ResponseInterface $originalResponse\n ) use ($injector) {\n $markdownResponseMapper = $injector->make(\\ASVoting\\Service\\MarkdownResponseMapper::class);\n\n return $markdownResponseMapper($markdownResponse, $originalResponse);\n };\n\n return [\n \\SlimAuryn\\Response\\StubResponse::class => '\\SlimAuryn\\ResponseMapper\\ResponseMapper::mapStubResponseToPsr7',\n// \\ASVoting\\Response\\MarkdownResponse::class => $markdownResponseMapperFn,\n ResponseInterface::class => 'SlimAuryn\\ResponseMapper\\ResponseMapper::passThroughResponse',\n 'string' => 'convertStringToHtmlResponse',\n \\SlimAuryn\\Response\\TwigResponse::class => $twigResponseMapperFn\n ];\n}", "private function getResponseStructure(){\n $success = [];\n if($this->success == false){\n //WE have to show the error\n $success = [];\n $success[\"success\"] = $this->success;\n $success[\"error_code\"] = $this -> error_code;\n $success[\"error_msg\"] = $this -> error_message;\n }else{\n\n $success = [];\n $success[\"success\"] = $this->success;\n if($this->total_elements > 0){\n $success[\"total_elements\"] = $this->total_elements;\n }\n $success[$this->data_root] = $this->data;\n }\n return $success;\n }", "private function response ($data) {\n $response = new Response($this->serializer->serialize($data, 'json'));\n $response->headers->set('Content-Type','application/json');\n $response->headers->set('Access-Control-Allow-Headers', 'origin, content-type, accept');\n $response->headers->set('Access-Control-Allow-Origin', '*');\n return $response;\n }", "public function map()\n {\n $mappedData = [];\n\n foreach ($this->rawData as $key => $value) {\n if (is_array($value)) {\n foreach ($value as $index => $field) {\n if ($id = getVal($field, ['id'], null)) {\n $mappedData[$index]['id'] = $id;\n }\n\n $mappedData[$index]['transaction'] = $this->template;\n $mappedData[$index]['activity_id'] = getVal($this->rawData, ['activity_id'], null);\n $mappedData[$index]['transaction']['reference'] = getVal($field, ['reference'], null);\n $mappedData[$index]['transaction']['transaction_type'][0]['transaction_type_code'] = getVal($this->rawData, ['type'], null);\n $mappedData[$index]['transaction']['transaction_date'][0]['date'] = getVal($field, ['date'], null);\n $mappedData[$index]['transaction']['value'][0]['amount'] = getVal($field, ['amount'], null);\n $mappedData[$index]['transaction']['value'][0]['currency'] = getVal($field, ['currency'], null);\n $mappedData[$index]['transaction']['value'][0]['date'] = getVal($field, ['date'], null);\n $mappedData[$index]['transaction']['description'][0]['narrative'][0]['narrative'] = getVal($field, ['description'], null);\n $mappedData[$index]['transaction']['receiver_organization'][0]['narrative'][0]['narrative'] = getVal($field, ['organisation'], null);\n }\n }\n }\n\n return $mappedData;\n }", "protected function asObject()\n\t{\n\t\treturn \\json_decode($this->response);\n\t}", "abstract protected function getReponseData() ;", "private function _loadResponse()\n {\n $sroObjects = Mage::getModel('pedroteixeira_correios/sro_object_collection');\n $trackList = $this->getRequestCollection();\n $response = $this->getResponse();\n \n if (isset($response->return) && $response->return->qtd > 0) {\n foreach ((array)$response->return->objeto as $obj) {\n $track = $trackList->getItemByColumnValue('number', $obj->numero);\n if ($track) {\n $item = Mage::getModel('pedroteixeira_correios/sro_object');\n $item->setTrack($track)\n ->setInfo($obj);\n $sroObjects->addItem($item);\n } else {\n Mage::log(\"Cant locate track for {$obj->numero}\");\n }\n }\n }\n \n $this->setLog(\"{$sroObjects->count()} identified of {$this->getLog()}\");\n \n return $this->setResponseCollection($sroObjects);\n }", "private function getResponseData()\n {\n $response = Shopware()->Front()->Response();\n\n return array(\n 'Class' => get_class($response),\n 'Raw header' => $response->getRawHeaders(),\n 'Response code' => $response->getHttpResponseCode(),\n 'Exception' => $response->getException()\n );\n }", "static public function getDataMap()\n {\n return array(\n 'fields' => array(\n 'rev' => array(\n 'type' => 'integer',\n ),\n 'cover' => array(\n 'type' => 'string',\n ),\n 'wiki_id' => array(\n 'type' => 'integer',\n ),\n 'title' => array(\n 'type' => 'string',\n ),\n 'html_cache' => array(\n 'type' => 'string',\n ),\n 'content' => array(\n 'type' => 'string',\n ),\n 'tags' => array(\n 'type' => 'raw',\n ),\n 'comment_tags' => array(\n 'type' => 'raw',\n ),\n 'model' => array(\n 'type' => 'string',\n ),\n 'has_video' => array(\n 'type' => 'integer',\n ),\n 'like_num' => array(\n 'type' => 'integer',\n ),\n 'dislike_num' => array(\n 'type' => 'integer',\n ),\n 'watched_num' => array(\n 'type' => 'integer',\n ),\n 'admin_id' => array(\n 'type' => 'integer',\n ),\n 'do_date' => array(\n 'type' => 'date',\n ),\n 'source' => array(\n 'type' => 'raw',\n ),\n 'tvsou_id' => array(\n 'type' => 'string',\n ),\n 'first_letter' => array(\n 'type' => 'string',\n ),\n 'douban_id' => array(\n 'type' => 'string',\n ),\n 'verify' => array(\n 'type' => 'integer',\n ),\n 'created_at' => array(\n 'type' => 'date',\n ),\n 'updated_at' => array(\n 'type' => 'date',\n ),\n ),\n 'references' => array(\n\n ),\n 'embeddeds' => array(\n\n ),\n 'relations' => array(\n\n ),\n );\n }", "public function getData()\n {\n return (object) $this->_response;\n }", "static public function getDataMap()\n {\n return array(\n 'fields' => array(\n 'channel_code' => array(\n 'type' => 'string',\n ),\n 'time' => array(\n 'type' => 'date',\n ),\n ),\n 'references' => array(\n\n ),\n 'embeddeds' => array(\n\n ),\n 'relations' => array(\n\n ),\n );\n }", "public function map() {\n\n $item = $this->item;\n $map = [];\n\n $map['id_inmueble'] = $item['id'];\n $map['referencia'] = $item['reference'];\n\n //Opcional Agency data\n $map['id_sucursal'] = ''; //site id?\n $map['propietario'] = '';\n $map['email_sucursal'] = '';\n $map['email_comercializadora'] = $this->config['email'];\n //Opcional\n\n $map['venta_01'] = $this->isSale() ? 1 : 0;\n $map['alquiler_01'] = $this->isRent() ? 1 : 0;\n $map['alquiler_opcion_venta_01'] = 0;\n $map['traspaso_01'] = $this->isTransfer() ? 1 : 0;\n $map['alquiler_temporada_01'] = 0;\n\n $map['precio_venta'] = $this->isSale() ? $item['price'] : 0;\n $map['precio_alquiler'] = $this->isRent() ? $item['price'] : 0;\n $map['precio_alquiler_opcion_compra'] = 0;\n $map['precio_traspaso'] = $this->isTransfer() ? $item['price'] : 0;\n $map['precio_alquiler_temporada'] = 0;\n\n list($tip_inm, $tipo, $tip_inm2, $subtipo) = $this->getTipos();\n $map['tipo'] = $tipo;\n $map['tip_inm'] = $tip_inm;\n $map['subtipo'] = $subtipo;\n $map['tip_inm2'] = $tip_inm2;\n\n list($provincia, $cod_prov) = $this->getProvincia();\n $map['provincia'] = $provincia;\n $map['cod_prov'] = $cod_prov;\n\n list($poblacion, $cod_pob) = $this->getPoblacion();\n $map['localidad'] = $poblacion;\n $map['cod_pob'] = $cod_pob;\n\n $map['ubicacion'] = $item['location']['address'];\n $map['cp'] = self::h($item['location']['zipcode']);\n\n list($zona, $cod_zona) = $this->getZone();\n $map['cod_zona'] = self::h($cod_zona);\n\n $map['banos'] = self::h($item['baths']);\n $map['aseos'] = self::h($item['toilettes']);\n $map['habitaciones'] = self::h($item['rooms']);\n\n $map['m2construidos'] = $item['size'] ? $this->convertSize($item['size']) : '';\n $map['m2utiles'] = $item['size_real'] ? $this->convertSize($item['size_real']) : '';\n $map['m2terraza'] = '';\n $map['m2jardin'] = '';\n $map['m2salon'] = '';\n\n $map['destacado'] = self::h($item['title'][$this->iso_lang]);\n $map['descripcion'] = self::h($item['description'][$this->iso_lang]);\n $map['calidades'] = '';\n $map['urbanizacion'] = '';\n $map['estadococina'] = '';\n $map['numeroplanta'] = '';\n $map['anoconstruccion'] = self::h($item['construction_year']);\n $map['gastoscomunidad'] = '';\n\n $map['garaje_01'] = self::b($item['features']['garage']);\n $map['terraza_01'] = self::b($item['features']['terrace']);\n $map['ascensor_01'] = self::b($item['features']['elevator']);\n $map['trastero_01'] = '';\n $map['piscina_01'] = self::b($item['features']['pool']);\n $map['buhardilla_01'] = '';\n $map['lavadero_01'] = '';\n $map['jardin_01'] = self::b($item['features']['garden']);\n $map['piscinacom_01'] = '';\n $map['eqdeportivos_01'] = '';\n $map['vistasalmar_01'] = '';\n $map['vistasalamontana_01'] = '';\n $map['vistasalaciudad_01'] = '';\n $map['cercatransportepub_01'] = '';\n $map['aireacondicionado_01'] = self::b($item['features']['air-conditioning']);\n $map['calefaccion_01'] = self::b($item['features']['heating']);\n $map['chimenea_01'] = '';\n $map['cocina_office'] = '';\n $map['despacho'] = '';\n $map['amueblado'] = self::b($item['features']['furnished']);\n $map['vigilancia'] = '';\n $map['escaparate'] = '';\n\n $map['m2_almacen'] = '';\n $map['m2_fachada'] = '';\n $map['centro_neg'] = '';\n $map['planta_diaf'] = '';\n $map['m2_terreno'] = $item['type'] == 'lot' ? $this->convertSize($item['size']) : '';\n $map['m2_industrial'] = $item['type'] == 'industrial' ? $this->convertSize($item['size']) : '';\n $map['m2_oficinas'] = '';\n $map['m_altura'] = '';\n $map['entrada_camion'] = '';\n $map['vestuarios'] = '';\n $map['edificable'] = '';\n $map['calif_energetica'] = self::h($item['ec']);\n $map['de_banco'] = '';\n\n $map['photos']['photo'] = $this->getImages();\n $map['videos'] = '';\n\n $map['videos_360']['video'] = $this->get_3d_url();\n\n $map['mapa']['latitud'] = self::h($item['location']['lat']);\n $map['mapa']['longitud'] = self::h($item['location']['lng']);\n $map['mapa']['zoom'] = 16; //14 15 16 17\n $map['mapa']['puntero'] = !empty($item['show_address']) && $item['show_address'] ? 1 : 0;\n\n $map['producto_premium'] = 0;\n $map['producto_destacado'] = 0;\n $map['producto_oportunidad'] = 0;\n\n return $map;\n }", "private function mapSet($data, $response_field) {\n // This method will handle values tagged with set keyword to indicate\n // the a response field expects an array of values. ie:\n // response field [\n // {\n // name 1,\n // age 1\n // },\n // {\n // name 2,\n // age 2\n // } ....\n // ]\n\n $map_data = [];\n\n foreach($data as $set_key => $set_value) {\n $set_ctr = 0;\n\n foreach($set_value as $set_item_value) {\n $map_data[ $set_key ][ $response_field[ $set_ctr ] ] = $set_item_value;\n $set_ctr++;\n }\n }\n\n return $map_data;\n }", "protected function getResponseFactory()\n {\n }", "public function & GetResponse ();", "function data() {\n $result = $this->fetcher->get($this->url);\n\n if ($result->getStatusCode() == 200) {\n $xml = new SimpleXMLElement($result->getBody());\n\n // WorkflowMax API's standard for error reporting\n if((string)$xml->Status !== 'OK') {\n throw new \\LogicException((string)$xml->ErrorDescription);\n }\n\n $array = json_decode(json_encode($xml), true);\n\n if($this->dataProcessor) {\n $dp = $this->dataProcessor;\n $array = $dp($array);\n }\n\n return $array;\n }\n\n throw new \\LogicException('URL returned status code ' . $result->getStatusCode());\n }", "public function _getCustomisedResponse() {\n if ( isset($_GET[\"p\"]) ) {\n if ( !is_null($_GET[\"p\"]) || trim($_GET[\"p\"]) !== \"\" ) {\n $__searchResult = $this->_getSingleArea($_GET[\"p\"]);\n } else {\n return $this->_throw404Response();\n }\n\n if (count($__searchResult) > 0) { \n //echo 'enemies<br/><br/>';\n // get the area_enemies' id array - the area_enemies mysql db column is of type JSON\n $__areaEnemiesIdArray = json_decode($__searchResult[0]->area_enemies);\n // get the detail of each enemy in the $__areaEnemiesIdArray & construct the output\n // in nested format\n $__areaEnemiesNestedArrayOutput = [];\n if (count($__areaEnemiesIdArray) > 0) {\n for ($__i=0; $__i<count($__areaEnemiesIdArray); $__i++) {\n array_push(\n $__areaEnemiesNestedArrayOutput,\n json_decode(\n json_encode($this->_enemiesController->_getDbRow($__areaEnemiesIdArray[$__i])[0]), \n true\n )\n ); \n }\n }\n //var_dump($__areaEnemiesNestedArrayOutput);\n //echo '<br/><br/>';\n\n //echo 'doors<br/><br/>';\n // get the area_doors' id array - the area_doors mysql db column is of type JSON\n $__areaDoorsIdArray = json_decode($__searchResult[0]->area_doors);\n // get the detail of each door in the $__areaDoorsIdArray & construct the output\n // in nested array format\n $__areaDoorsNestedArrayOutput = [];\n if (count($__areaDoorsIdArray) > 0) {\n for ($__i=0; $__i<count($__areaDoorsIdArray); $__i++) {\n array_push(\n $__areaDoorsNestedArrayOutput,\n json_decode(\n json_encode($this->_doorsController->_getDbRow($__areaDoorsIdArray[$__i])[0]), \n true\n )\n ); \n }\n }\n //var_dump($__areaDoorsNestedArrayOutput);\n //echo '<br/><br/>';\n\n //echo 'equipment<br/><br/>';\n // get the area_equipments' id array - the area_equipments mysql db column is of type JSON\n $__areaEquipmentIdArray = json_decode($__searchResult[0]->area_equipments);\n // get the detail of each equipment in the $__areaEquipmentIdArray & construct the output\n // in nested array format\n $__areaEquipmentNestedArrayOutput = [];\n if (count($__areaEquipmentIdArray) > 0) {\n for ($__i=0; $__i<count($__areaEquipmentIdArray); $__i++) {\n array_push(\n $__areaEquipmentNestedArrayOutput,\n json_decode(\n json_encode($this->_equipmentController->_getDbRow($__areaEquipmentIdArray[$__i])[0]), \n true\n )\n ); \n }\n }\n //var_dump($__areaEquipmentNestedArrayOutput);\n //echo '<br/><br/>'; \n\n //echo 'items<br/><br/>';\n // get the area_items' id array - the area_items mysql db column is of type JSON\n $__areaItemsIdArray = json_decode($__searchResult[0]->area_items);\n // get the detail of each equipment in the $__areaItemsIdArray & construct the output\n // in nested array format\n $__areaItemsNestedArrayOutput = [];\n if (count($__areaItemsIdArray) > 0) {\n for ($__i=0; $__i<count($__areaItemsIdArray); $__i++) {\n array_push(\n $__areaItemsNestedArrayOutput,\n // json_decode : 2nd arg = true -> 1st arg is an array\n json_decode(\n json_encode($this->_itemsController->_getDbRow($__areaItemsIdArray[$__i])[0]), \n true\n )\n ); \n }\n } \n //var_dump($__areaItemsNestedArrayOutput);\n //echo '<br/><br/>';\n\n //echo 'Consolidated Response<br/><br/>';\n $__response = \n array( \n 'code' => 200,\n 'area' => array ( \n 'id' => $__searchResult[0]->id,\n 'nextAreaId' => $__searchResult[0]->next_area_id,\n 'areaMap' => $__searchResult[0]->area_map,\n 'areaEnemies' => $__areaEnemiesNestedArrayOutput,\n 'areaItems' => $__areaItemsNestedArrayOutput,\n 'areaEquipments' => $__areaEquipmentNestedArrayOutput,\n 'areaDoors' => $__areaDoorsNestedArrayOutput\n ) \n );\n\n //echo '<br/><br/>'; \n } else {\n $__response = $this->_returnZeroRow(\"areas\");\n }\n \n return response()->json($__response, $__response['code']);\n } else {\n return $this->_throw404Response();\n }\n }", "function AddComplex($server){\n\n $server->wsdl->addComplexType(\n 'exposeResponse',\n 'complexType',\n 'struct',\n 'all',\n '',\n array(\n 'dato1' => array('name' => 'dato1', 'type' =>'xsd:string'),\n 'dato2' => array('name' => 'dato2' , 'type' => 'xsd:string')\n ));\n\n $server->wsdl->addComplexType(\n 'exposeArray',\n 'complexType',\n 'array',\n '',\n 'SOAP-ENC:Array',\n array(),\n array(\n array(\n 'ref' => 'SOAP-ENC:arrayType',\n 'wsdl:arrayType' => 'tns:exposeResponse[]'\n )\n ),\n 'tns:exposeResponse'\n );\n $server->wsdl->addComplexType(\n 'exposeObject',\n 'complexType',\n 'struct',\n 'all',\n '',\n array(\n 'exposeReturn' => array('type' => 'tns:exposeArray')\n )\n );\n return;\n }", "abstract public function simplifyResponse($request, $response);", "function wsdl_docs_response_data($label, $type, $description, $data, $datatypes) {\n if (isset($datatypes[$type])) {\n // Build a complex type.\n $datatype = $datatypes[$type];\n $element = array(\n '#type' => 'fieldset',\n '#title' => check_plain(\"{$datatype['label']}\"),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n foreach ($datatype['property info'] as $field_id => $field_info) {\n // Recurse and get each bit to render its own input element.\n $element[$field_id] = wsdl_docs_response_data($field_id, $field_info['type'], @$field_info['description'], $data[$field_id], $datatypes);\n }\n return $element;\n }\n elseif (preg_match('/^list\\<(.*)\\>$/', $type, $matches)) {\n // Strange notation, type=\"list<MyType>\" means a list of those things.\n // @see wsclient_soap_type_mapper()\n // This becomes a numerically indexed array.\n // Present it in the form as a nested list.\n $actual_type = $matches[1];\n $element = array(\n '#type' => 'fieldset',\n '#title' => t('List of %label (%type)', array('%label' => $label, '%type' => $type)),\n '#collapsible' => TRUE,\n );\n for ($field_id = 0; $field_id < 3; $field_id++) {\n // Recurse and get each bit to render its own input element\n $element[$field_id] = wsdl_docs_response_data($field_id, $actual_type, NULL, $data[$field_id], $datatypes);\n $element[$field_id]['#collapsed'] = TRUE;\n }\n return $element;\n }\n elseif ($type == 'text_formatted') {\n return array(\n '#markup' => t(\"<b>Property: %label</b> <br>Type: %type <br>Description: %description<br>\", array('%label' => $label, '%type' => $type, '%description' => $description)),\n );\n }\n elseif ($type == 'boolean') {\n //set to optional\n return array(\n '#markup' => t(\"<b>Property: %label</b> <br>Type: %type <br>Description: %description<br>\", array('%label' => $label, '%type' => $type, '%description' => $description)),\n );\n }\n else {\n // A textfield will normally do for any other primitives.\n return array(\n '#markup' => t(\"<b>Property: %label</b> <br>Type: %type <br>Description: %description<br>\", array('%label' => $label, '%type' => $type, '%description' => $description)),\n );\n }\n}", "protected function _response() {}", "protected function extractApiData() {\n\n foreach($this->apiData->items as $key => $value) { \n $key = $key + 1;\n $this->dataArray[$key]['id'] = $value->id;\n $this->dataArray[$key]['firstname'] = $value->firstname;\n $this->dataArray[$key]['lastname'] = $value->lastname;\n $this->dataArray[$key]['email'] = $value->email;\n $this->dataArray[$key]['dob'] = isset($value->dob) ? $value->dob : '';\n $this->dataArray[$key]['website_id'] = $value->website_id;\n $this->dataArray[$key]['store_id'] = $value->store_id;\n $this->dataArray[$key]['created_in'] = $value->created_in; \n $this->dataArray[$key]['group_id'] = $value->group_id; \n $this->dataArray[$key]['gender'] = $this->gender[$value->gender];\n $this->dataArray[$key]['address'] = $this->getAddress($value->addresses);\n }\n }", "public function json($data): PsrResponseInterface;", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "public function complexListing(){\n\t\t//if someone knows, please make it better\n\t\t$formatResponse = new ResponseModel();\n\t\t$enrollmentModel = new EnrollmentModel();\n\t\t$formatResponse->data = [];\n\t\tforeach ($enrollmentModel->getStudentbyClass() as $item) {\n\t\t\t$new_item[\"fullname\"] = $item[\"firstname\"] . \" \" . $item[\"lastname\"];\n\t\t\t$new_item[\"birtdate\"] = date(\"d F Y\",strtotime($item[\"birthdate\"]));\n\t\t\t$new_item[\"enrollments\"] = $enrollmentModel->getClassByIdStudent($item[\"student_id\"]);\n\t\t\tarray_push($formatResponse->data,$new_item);\n\t\t}\n\t\treturn $this->respond($formatResponse);\n\t}", "function webform_responses($nid=NULL, $start_date=NULL, $end_date=NULL, $start_sid=NULL, $end_sid=NULL, $uid=NULL, $status=1, $limit=100) {\n $api_key = 'PUT VALID API KEY HERE'; // put your API key here\n $domain_name = 'PUT VALID DOMAIN HERE'; // put your domain name here\n \n $service = new WebformResponses($domain_name, $api_key);\n $result = $service->get(array(\n 'nid' => $nid,\n 'start_date' => $start_date,\n 'end_date' => $end_date,\n 'start_sid' => $start_sid,\n 'end_sid' => $end_sid,\n 'uid' => $uid,\n 'status' => $status,\n 'limit' => $limit,\n ));\n return $result;\n}", "public function getResponseObject()\n {\n return $this->response_object;\n }", "public function handler($data)\n {\n A::load(VENDORS, 'Array2XML', false);\n\n $data = CommonHelpers::normalize($data);\n $xml = Array2XML::createXML('response', $data);\n\n header('Content-Type: text/xml');\n echo $xml->saveXML();\n }", "function parse_response($raw_data, $data_type) {\r\n if ($data_type == 'json') {\r\n $parsed_data = json_decode($raw_data);\r\n }\r\n else if ($data_type == 'xml') {\r\n $namespace_pattern = '/([<\\/\\s])[a-z]+\\:/';\r\n $clean_data = preg_replace($namespace_pattern, '\\1', $raw_data);\r\n if ($clean_data[0] == '<') {\r\n $parsed_data = simplexml_load_string($clean_data);\r\n }\r\n else {\r\n $parsed_data = false;\r\n }\r\n }\r\n return $parsed_data;\r\n }", "public function build()\n {\n $this->responseData = [\n 'data' => $this->getData(),\n 'meta' => $this->getMeta(),\n 'links' => $this->getLinks(),\n ];\n }", "protected function _getDomMap()\n {\n $domMap = parent::_getDomMap();\n $domMap = reset($domMap);\n\n return [\n 'initSubscriptionResponse' => array_merge([\n 'transactionId' => 'transactionId',\n 'subscriptionPageUrl' => 'subscriptionPageUrl',\n 'status' => 'status',\n ], $domMap)\n ];\n }", "protected function _getResponse() {\n\t\treturn new Response;\n\t}", "public function getResponseClass();", "public function returnData($data) {\n\t $request = new Request();\n $request = $this->getRequest();\n if ($this->requestHasContentType($request, self::CONTENT_TYPE_JSON)) {\n return new JsonModel(array('masterlist' => $data));\n }\n return new XmlModel(array(\"data\" => array('masterlist' => $data),\"rootNode\" => \"masterlist\"));\n\t}", "private function createResponse(){\r\n #scraping metatag to get IMAGE TITLE and FULL PATH INC FILE NAME \r\n $metaTag = get_meta_tags($this->url);\r\n\r\n \r\n $this->setImageTitle($metaTag[\"sailthru_title\"]); #setting up title\r\n $this->setFileName($metaTag[\"sailthru_image_full\"]); #setting up full file name\r\n $this->setDimensions(); #setting up image dimensions\r\n \r\n $this->setFileSize(); #setting up file size in kB\r\n \r\n #create response array based on properties\r\n $array = array('title' => $this->imageTitle,\r\n 'dimensions' => $this->imageDimensions,\r\n 'filename' => $this->getPlainFileName(),\r\n 'file size in kB' => $this->fileSize\r\n );\r\n \r\n return $array;\r\n }", "public function index()\n {\n $services = Service::all();\n\n $transformedData = \\Fractal::collection($services, new ServiceTransformer())->toArray();\n\n return $this->responder->respond($transformedData);\n }", "private function collectData()\n {\n // Decode the API data\n $data = $this->callApi();\n\n // Convert the data to JSON\n // - We could return the response()->json($data) here\n // But instead I am converting to JSON to create an Array compatible with the Resource / Transformer / collections\n $json = json_encode($data);\n\n // And convert the JSON to an array for the Resource / Fractal Transformer\n $array = json_decode($json, true);\n\n // This could also be done in one line using:\n // $array = json_decode(json_encode($xml), true);\n // But it was easier as individual lines for improved commenting\n\n $this->data = collect(FloatRatesResource::collection($array[\"item\"])->resolve());\n }", "public function getResponseData()\n {\n if($this->getHttpStatusCode() === 200){\n try{\n $resp = $this->getResponse();\n if(isset($resp->data)){\n $this->responseData = $resp->data;\n }\n }catch (Exception $e){\n\n }\n }\n return $this->responseData;\n }", "public function responseJsonPersonalizado($data) {\n $json = $this->get('serializer')->serialize($data, 'json');\n\n //Response con http fundation\n $response = new Response();\n\n //Asignar contenido a la respuesta\n $response->setContent($json);\n\n //Indicar formato de respuesta\n $response->headers->set('Content-Type', 'application/json');\n //Devolver respuesta\n\n return $response;\n }", "public function responseJsonPersonalizado($data) {\n $json = $this->get('serializer')->serialize($data, 'json');\n\n //Response con http fundation\n $response = new Response();\n\n //Asignar contenido a la respuesta\n $response->setContent($json);\n\n //Indicar formato de respuesta\n $response->headers->set('Content-Type', 'application/json');\n //Devolver respuesta\n\n return $response;\n }", "public function getData(){ \n return json_decode($this->data); \n }", "function decodeResponse($method, $data) \n {\n return $data;\n }", "public function makeResponse(): ResponseInterface;", "public function extractData()\n {\n $this->client->run($this->getCreateSurvey());\n $this->client->run($this->getRemoveDuplicatedQuestions());\n $this->updateQuestionFieldIdSchema();\n $this->client->run($this->getCreateListOfQuestions());\n $this->client->run($this->getCreateSurveyLinkedList());\n $this->client->run($this->getCreateCountries());\n $this->client->run($this->getCreateStates());\n $this->client->run($this->getCreateWorksInCountry());\n $this->client->run($this->getCreateLivesInCountry());\n $this->client->run($this->getCreateWorksInState());\n $this->client->run($this->getCreateLivesInState());\n $this->client->run($this->getCreateWorksAs());\n $this->client->run($this->getCreateStates());\n $this->client->run($this->getCreateWorksAs());\n $this->client->run($this->getCreateCurrentDiagnosis());\n $this->client->run($this->getCreateSelfDiagnosis());\n $this->client->run($this->getCreateProfessionalDiagnosis());\n $this->client->run($this->getSetQuestionAndAnswerResponseCounts());\n }", "protected function response($data = NULL)\n {\n return API::response()->set_data($data);\n }", "#[\\ReturnTypeWillChange]\n protected function response_data($result, $method, $url)\n {\n if (isset($result['$data'])) {\n if (is_array($result['$data'])) {\n return Resource::instance($result, $this);\n }\n return $result['$data'];\n }\n return null;\n }", "public function createResponseWriter();", "protected function prepare_response()\n\t{\n\t\t$rules_code = get_optional_param('rules_code');\n\t\t$game_id = (int)get_optional_param('game_id');\n\t\t$event_id = (int)get_optional_param('event_id');\n\t\t$tournament_id = (int)get_optional_param('tournament_id');\n\t\t$club_id = (int)get_optional_param('club_id');\n\t\t$page_size = (int)get_optional_param('page_size', API_DEFAULT_PAGE_SIZE);\n\t\t$page = (int)get_optional_param('page');\n\t\t$detailed = isset($_REQUEST['detailed']) || (isset($_REQUEST['lod']) && $_REQUEST['lod'] > 0);\n\t\t\n\t\tif (!is_valid_rules_code($rules_code))\n\t\t{\n\t\t\tif ($game_id > 0)\n\t\t\t{\n\t\t\t\tlist($rules_code) = Db::record('rules', 'SELECT rules FROM games WHERE id = ?', $game_id);\n\t\t\t}\n\t\t\telse if ($event_id > 0)\n\t\t\t{\n\t\t\t\tlist($rules_code) = Db::record('rules', 'SELECT rules FROM events WHERE id = ?', $event_id);\n\t\t\t}\n\t\t\telse if ($tournament_id > 0)\n\t\t\t{\n\t\t\t\tlist($rules_code) = Db::record('rules', 'SELECT rules FROM tournaments WHERE id = ?', $tournament_id);\n\t\t\t}\n\t\t\telse if ($club_id > 0)\n\t\t\t{\n\t\t\t\tlist($rules_code) = Db::record('rules', 'SELECT rules FROM clubs WHERE id = ?', $club_id);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Exc(get_label('Unknown [0]', get_label('rules')));\n\t\t\t}\n\t\t}\n\t\t$this->response['rules'] = rules_code_to_object($rules_code, $detailed);\n\t}", "static function parseResponse(string $data): ApiResponse\n {\n $obj = new static;\n $obj->setData($data);\n return $obj;\n }", "function data2Object($data) { \n\t\t\t$class_object = new getData($data); \n\t\t\treturn $class_object; \n\t\t}", "protected abstract function service(Response $response);", "public function getDataMapping() {\n return [\n 'firstName' => 'firstName',\n 'lastName' => 'lastName',\n 'email' => 'email',\n 'address' => [\n 'street1' => 'street1',\n 'street2' => 'street2',\n 'city' => 'city',\n 'state' => 'state',\n 'zip' => 'zip'\n ],\n 'phone' => 'phone',\n 'payment' => [\n 'ccNum' => 'cc_number',\n 'exp' => 'cc_expiration',\n ],\n 'quantity' => 'qty',\n 'total' => 'total'\n ];\n }", "private function getJSON(){\n return json_encode($this->getResponseStructure());\n }", "protected function parseResponse()\n {\n // get the status code from response.\n $statusCode = $this->httpResponse->getStatusCode();\n\n // set as error, if http status code is not between 200 and 299 (inclusive).\n $this->networkError = !($statusCode >= 200 && $statusCode <= 299);\n\n // decode the response body.\n $body = $this->decodeBody();\n\n // stop when no body is present.\n if ($body) {\n // parse the response id from the body.\n $this->id = (int) array_get($body, 'id', null);\n\n // set as error when there is a an error key and it's not null.\n $this->isError = array_get($body, 'error', null) !== null;\n\n // parse the response data, from result or error.\n $this->data = collect(array_get($body, $this->isError ? 'error' : 'result', []));\n }\n\n // just return the response body.\n return $this->body;\n }", "private function process($data) {\n\t\treturn json_decode($data, true);\n\t}", "abstract public function response();", "public function respondResultForWeb($data)\n {\n \t$result = response()->json($data);\n \t$data = json_decode($result->getContent(), true);\n \t$datatable = array_merge(['pagination' => [], 'sort' => [], 'query' => []], $_REQUEST);\n\n\t\t// search filter by keywords\n\t\t$filter = isset($datatable['query']['generalSearch']) && is_string($datatable['query']['generalSearch'])\n\t\t ? $datatable['query']['generalSearch'] : '';\n\n\t\tif ( ! empty($filter)) {\n\t\t $data = array_filter($data, function ($a) use ($filter) {\n\t\t return (boolean)preg_grep(\"/$filter/i\", (array)$a);\n\t\t });\n\t\t unset($datatable['query']['generalSearch']);\n\t\t}\n\n\t\t// filter by field query\n\t\t$query = isset($datatable['query']) && is_array($datatable['query']) ? $datatable['query'] : null;\n\n\t\tif (is_array($query)) {\n\t\t $query = array_filter($query);\n\t\t foreach ($query as $key => $val) {\n\t\t $data = $this->list_filter($data, [$key => $val]);\n\t\t }\n\t\t}\n\n\t\t$sort = ! empty($datatable['sort']['sort']) ? $datatable['sort']['sort'] : 'asc';\n\t\t$field = ! empty($datatable['sort']['field']) ? $datatable['sort']['field'] : 'id';\n\n\t\t$meta = [];\n\t\t$page = ! empty($datatable['pagination']['page']) ? (int)$datatable['pagination']['page'] : 1;\n\t\t$perpage = ! empty($datatable['pagination']['perpage']) ? (int)$datatable['pagination']['perpage'] : -1;\n\n\t\t$pages = 1;\n\t\t$total = count($data); // total items in array\n\n\t\t// sort\n\t\tusort($data, function ($a, $b) use ($sort, $field) {\n\n\t\t if ( ! isset($a->$field) || ! isset($b->$field)) {\n\t\t return false;\n\t\t }\n\n\t\t if ($sort === 'asc') {\n\t\t return $a->$field > $b->$field ? true : false;\n\t\t }\n\n\t\t return $a->$field < $b->$field ? true : false;\n\t\t});\n\n\t\t// $perpage 0; get all data\n\t\tif ($perpage > 0) {\n\t\t $pages = ceil($total / $perpage); // calculate total pages\n\t\t $page = max($page, 1); // get 1 page when $_REQUEST['page'] <= 0\n\t\t $page = min($page, $pages); // get last page when $_REQUEST['page'] > $totalPages\n\t\t $offset = ($page - 1) * $perpage;\n\n\t\t if ($offset < 0) {\n\t\t $offset = 0;\n\t\t }\n\n\t\t $data = array_slice($data, $offset, $perpage, true);\n\t\t}\n\n\t\t$meta = [\n\t\t 'page' => $page,\n\t\t 'pages' => $pages,\n\t\t 'perpage' => $perpage,\n\t\t 'total' => $total,\n\t\t];\n\n\n\t\t// if selected all records enabled, provide all the ids\n\t\tif (isset($datatable['requestIds']) && filter_var($datatable['requestIds'], FILTER_VALIDATE_BOOLEAN)) {\n\t\t $meta['rowIds'] = array_map(function ($row) {\n\t\t return $row->userid;\n\t\t }, $alldata);\n\t\t}\n\n\n\t\t$result = [\n\t\t 'meta' => $meta + [\n\t\t 'sort' => $sort,\n\t\t 'field' => $field,\n\t\t ],\n\t\t 'data' => $data,\n\t\t];\n\n\t\t$headers = [\n\t\t\t'Content-Type' => 'application/json',\n\t\t\t'Access-Control-Allow-Origin' => '*',\n\t\t\t'Access-Control-Allow-Methods' => 'GET, PUT, POST, DELETE, OPTIONS',\n\t\t\t'Access-Control-Allow-Headers' => 'Content-Type, Content-Range, Content-Disposition, Content-Description'\n\t\t];\n\n\t\treturn response()->json($result, $this->getStatusCode(), $headers);\n }", "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();", "protected function CreateJson() {\n\t\t$obj = new \\stdClass;\n\t\t$obj->recordsList = parent::CreateJson();\n\n\t\t// add links from server\n\t\t$obj->link = new \\stdClass;\n\t\t$obj->link->href = $this->link_href;\n\t\t$obj->link->rel = $this->link_rel;\n\t\treturn $obj;\n\t}" ]
[ "0.59345955", "0.5638855", "0.56378084", "0.56319004", "0.5601318", "0.5550529", "0.55478746", "0.5472768", "0.54354554", "0.5414455", "0.534951", "0.5340649", "0.53390265", "0.5325724", "0.532178", "0.53185153", "0.53092253", "0.5301857", "0.52936447", "0.52783406", "0.527347", "0.52654314", "0.5237143", "0.5214369", "0.5212573", "0.5207697", "0.52070713", "0.5180968", "0.51799214", "0.5156572", "0.5134868", "0.5130428", "0.5111427", "0.50837", "0.50728256", "0.50726616", "0.5062131", "0.5054212", "0.50375706", "0.5025961", "0.5016194", "0.5011741", "0.50045866", "0.50039726", "0.500259", "0.49959195", "0.4989861", "0.49861053", "0.49748412", "0.4966585", "0.49636558", "0.49618837", "0.49618837", "0.49618837", "0.49618837", "0.49618837", "0.49471554", "0.49290368", "0.49142057", "0.4898315", "0.48968056", "0.48816326", "0.48807967", "0.48775437", "0.4868897", "0.48635292", "0.48612148", "0.4859134", "0.4856149", "0.4855293", "0.4853524", "0.4853524", "0.48496294", "0.48475048", "0.48445687", "0.48428786", "0.48373705", "0.48351836", "0.4834324", "0.48306108", "0.48303735", "0.48244587", "0.48214868", "0.4814257", "0.4810547", "0.48068815", "0.48026243", "0.47842002", "0.4783428", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47806337", "0.47773165" ]
0.0
-1
Get condition of this filter.
public function condition($inputs) { $value = Arr::get($inputs, $this->column); if ($value === null) { return; } $this->value = $value; return $this->buildCondition($this->column, '<=', $this->value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCondition() {\n return $this->condition;\n }", "public function getCondition() {\n return $this->condition;\n }", "public function getCondition()\n {\n return $this->condition;\n }", "public function getCondition() \n {\n return $this->_fields['Condition']['FieldValue'];\n }", "public function condition()\n {\n return $this->condition;\n }", "public function getCondition()\n {\n return isset($this->Condition) ? $this->Condition : null;\n }", "public function getCondition();", "public function getCondition();", "public function getCondition();", "public function getConditionOperator();", "public function getProductCondition() {\n //return the value product condition\n return $this->ProductCondition;\n }", "public function condition(): string\r\n {\r\n return (string) $this->condition;\r\n }", "public function getConditionDescriptor()\n {\n return $this->conditionDescriptor;\n }", "protected function getFilter() {\n\t\t$conditions = $this->getConditions();\n\t\treturn $conditions;\n\t}", "protected function getCondition($condition)\n {\n }", "private function ts_getCondition()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n $tableField = $this->curr_tableField;\n\n // Get TS configuration array\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'condition' ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'condition.' ];\n\n // RETURN true: any condition isn't defined\n if ( empty( $conf_name ) )\n {\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = $tableField . ' hasn\\'t any condition. Filter will displayed.';\n t3lib_div :: devLog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n return true;\n }\n // RETURN true: any condition isn't defined\n // Get condition result\n $value = $this->pObj->cObj->cObjGetSingle( $conf_name, $conf_array );\n switch ( $value )\n {\n case( false ):\n $bool_condition = false;\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = 'Condition of ' . $tableField . ' is false. Filter won\\'t displayed.';\n t3lib_div :: devLog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n break;\n case( true ):\n default;\n $bool_condition = true;\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = 'Condition of ' . $tableField . ' is true. Filter will displayed.';\n t3lib_div :: devLog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n break;\n }\n // Get condition result\n // RETURN condition result\n return $bool_condition;\n }", "public function getWhereClauseCondition() {\n\n if (isset($this->whereClauseCondition)) {\n $setCondition = $this->whereClauseCondition;\n return $setCondition;\n } else {\n $defaultCondition = \"=\";\n return $defaultCondition;\n }\n }", "function get_search_condition()\r\n {\r\n return $this->get_search_form()->get_condition();\r\n }", "public function getCondition(): Condition\n {\n return new TrueCondition();\n }", "public function getFilter()\n {\n return $this->filterComposite;\n }", "public function getCondition() { \n \t\treturn $this->condition . tx_newspaper::enableFields(tx_newspaper::getTable($this)); \n \t}", "public function getTerminalCondition()\n {\n return $this->terminal_condition;\n }", "function get_condition()\r\n {\r\n $owner = $this->owner;\r\n\r\n $conds = array();\r\n $parent = $this->parent;\r\n $category = $parent->get_parameter(WeblcmsManager :: PARAM_CATEGORY);\r\n $category = $category ? $category : 0;\r\n $conds[] = new EqualityCondition(ContentObjectPublication :: PROPERTY_CATEGORY_ID, $category, ContentObjectPublication :: get_table_name());\r\n\r\n $type_cond = array();\r\n $types = array(Assessment :: get_type_name(), Survey :: get_type_name(), Hotpotatoes :: get_type_name());\r\n foreach ($types as $type)\r\n {\r\n $type_cond[] = new EqualityCondition(ContentObject :: PROPERTY_TYPE, $type);\r\n }\r\n $conds[] = new OrCondition($type_cond);\r\n $c = Utilities :: query_to_condition($this->query);\r\n if (! is_null($c))\r\n {\r\n $conds[] = $c;\r\n }\r\n return new AndCondition($conds);\r\n }", "public function cond() {\n return $this->s[0] / $this->s[min($this->m, $this->n) - 1];\n }", "public function getConditionClass();", "public function getProductCondition(): ?string\n {\n return isset($this->ProductCondition) ? $this->ProductCondition : null;\n }", "protected function getCalculateableCondition()\n {\n return $this->getConditions()->filter(function (CartCondition $condition) {\n if ($condition->getType() !== 'tax') {\n if (($condition->getApplyMinimum() && !$condition->getApplyMinimumForEach()\n && $condition->getApplyMinimum() <= $this->subtotal())) {\n return true;\n }\n\n if ($condition->getTarget() !== 'products' && !$condition->getApplyMinimum()) {\n return true;\n }\n }\n });\n }", "public function getFilter()\n {\n return $this->get(self::FILTER);\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "protected function getFilter()\n {\n return $this->filter;\n }", "public function getCondition() {\n\n \t$condition = array();\n \t$this->getQueryString(\"keyword\", $condition);\n \t$this->getQueryString(\"activityId\", $condition);\n \t$this->getQueryString(\"activityIds\", $condition);\n \t$this->getQueryString(\"activityType\", $condition);\n $this->getQueryString(\"state\", $condition);\n $this->getQueryString(\"orderDateStart\", $condition);\n $this->getQueryString(\"orderDateEnd\", $condition);\n $this->getQueryString(\"deliveryDateStart\", $condition);\n $this->getQueryString(\"deliveryDateEnd\", $condition);\n $this->getQueryString(\"serial\", $condition);\n $this->getQueryString(\"consumerId\", $condition);\n $this->getQueryString(\"payDateTimeStart\", $condition);\n $this->getQueryString(\"payDateTimeEnd\", $condition);\n $this->getQueryString(\"productId\", $condition);\n $this->getQueryString(\"deliveryId\", $condition);\n $this->getQueryString(\"productArray\", $condition);\n \n \treturn $condition;\n }", "public function condition()\n {\n if (!$this->condition) {\n $this->condition = array();\n foreach (monsterToCondition::select('ctype', 'condition')->where('mid', '=', $this->id)->get() as $r) {\n $this->condition[] = $r->condition;\n };\n }\n return $this->condition;\n }", "public function getFilter()\n\t{\n\t\treturn $this->filter;\n\t}", "protected function getFilter()\n {\n return $this->getSettingsValue('filter');\n }", "function get_filter_condition($conditional_symbol) {\n //explicitly prevent filters from beign automatically applied to the report query\n return '';\n }", "public function getCondition($conditionName)\n {\n return $this->getConditions()->get($conditionName);\n }", "protected function getWhereAttribute()\n {\n return $this->fetchData[self::WHERE_CLAUSE];\n }", "public function get_filtering()\r\n\t{\r\n\t\treturn $this->filtering->get_value();\r\n\t}", "public function getWhereClause()\n {\n return $this->where_clause;\n }", "function getFilter() {\n\t\treturn $this->_filter;\n\t}", "public function getWatchConditionName()\n {\n return isset($this->WatchConditionName) ? $this->WatchConditionName : null;\n }", "public function getConditionParams() {\n return $this->_lastConditionParams;\n }", "public function getConditionUndertaking()\n {\n return $this->conditionUndertaking;\n }", "public function getPropertyConditionChain()\n {\n return $this->conditionChain;\n }", "public function getJoinCondition() {}", "public function getFilter()\n {\n return($this->options['filter']);\n }", "function getFilter()\n\t{\n\t\treturn $this->_filter;\n\t}", "public function getFilterParam()\n {\n return $this->filterParam;\n }", "public function getWhere()\n {\n return $this->where;\n }", "function getWhere() {\n return $this->where;\n }", "public function startCondition()\n {\n $conditionBuilder = new ConditionBuilder($this);\n $this->conditionBuilders[] = $conditionBuilder;\n return $conditionBuilder;\n }", "public function getCondition(): array\n {\n return $this->nodeConditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function getConditions()\n {\n return $this->conditions;\n }", "public function get_conditions()\n {\n return $this->conditions;\n }", "public function getWhere() {\r\n return $this->_where;\r\n }", "public function setCondition($value) \n {\n $this->_fields['Condition']['FieldValue'] = $value;\n return $this;\n }", "public function getWhere()\n\t\t{\n\t\t\treturn $this->hasWhere() ? (string)$this->where : '';\n\t\t}", "public function getWhere()\n\t{\n\t\tif(empty($this->sWhere))\n\t\t{\n\t\t\treturn 'TRUE';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->sWhere;\n\t\t}\n\t}", "public function getWhere() {\n return $this->_where ?: new Predicate(Predicate::ALSO);\n }", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function getConditions()\n\t{\n\t\treturn $this->conditions;\n\t}", "public function condition()\n {\n return $this->queries->map(function ($query) {\n return [$query['method'] => $query['arguments']];\n })->toArray();\n }", "function GetFilter ( )\n{\n\treturn $this->FilterExp();\n}", "public function Where()\n {\n return $this->where;\n }", "public function getConditionHistogramContainer()\n {\n return $this->conditionHistogramContainer;\n }", "public function getConditionHistogramContainer()\n {\n return $this->conditionHistogramContainer;\n }", "protected function condition() {\n\t\treturn apply_filters( 'appthemes_html_term_description_condition', true, $this->get_current_taxonomy() );\n\t}", "public function getCriteria()\n {\n return isset($this->criteria) ? $this->criteria : null;\n }", "public function &getConditions() {\n return $this->conditions;\n }", "protected function getWhereClause() {}", "public function setCondition($condition)\n {\n $this->condition = $condition;\n\n return $this;\n }", "function getJoinCondition() ;", "private function getConditionType(FilterInterface $condition)\n {\n $conditionClass = get_class($condition);\n if (stripos($conditionClass, 'Verdict\\\\Filter\\\\Composite') !== false)\n {\n return 'composite';\n }\n else if (stripos($conditionClass, 'Verdict\\\\Filter\\\\Comparison') !== false)\n {\n return 'comparison';\n }\n else\n {\n throw new RuntimeException('Invalid condition type specified');\n }\n }", "public function getConditionString()\n {\n // if negated we have to prepare different matters of comparison\n $comparator = '!==';\n if ($this->isNegated()) {\n $comparator = '===';\n }\n\n // build up code searching within the methods backtrace\n $code = 'count(array_filter(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), function(&$value) {;\n $expression = \\'' . ltrim($this->getExpression(), '\\\\') . '\\';\n foreach ($value as $entry) {\n $caller = @$entry[\"class\"] . @$entry[\"type\"] . @$entry[\"function\"];\n\n if (fnmatch($expression, $caller) === 1) {\n\n return true;\n }\n }\n })) ' . $comparator .' 0';\n\n return $code;\n }", "public static function fromFilterCondition(Filter\\Condition $condition)\n {\n switch (true) {\n case $condition instanceof Filter\\Unlike:\n case $condition instanceof Filter\\Unequal:\n $operator = '!=';\n break;\n case $condition instanceof Filter\\Like:\n case $condition instanceof Filter\\Equal:\n $operator = '=';\n break;\n case $condition instanceof Filter\\GreaterThan:\n $operator = '>';\n break;\n case $condition instanceof Filter\\LessThan:\n $operator = '<';\n break;\n case $condition instanceof Filter\\GreaterThanOrEqual:\n $operator = '>=';\n break;\n case $condition instanceof Filter\\LessThanOrEqual:\n $operator = '<=';\n break;\n default:\n throw new InvalidArgumentException('Unknown condition type');\n }\n\n return new static($operator);\n }", "public function getCriterion()\n {\n return $this->hasOne(MgfSelectionCriteria::className(), ['id' => 'criterion_id']);\n }", "public function getXmlCondition($condition)\n {\n $condition = (string)$condition;\n switch ($condition) {\n case '0':\n case 'false':\n case 'FALSE':\n $condition = false;\n break;\n \n case '':\n case '1':\n case 'true':\n case 'TRUE':\n $condition = true;\n break;\n }\n return $condition;\n }", "public function isValue(): WhereCondition\n {\n\n $this->_op = self::OP_TYPE_IS;\n\n return $this;\n\n }", "public function gteq(): WhereCondition\n {\n\n $this->_op = self::OP_TYPE_GT_EQ;\n\n return $this;\n\n }", "protected function getWhere(): string\n {\n return ($this->where && !$this->where->isEmpty() ? \"\\r\\nWHERE \".$this->where : \"\");\n }", "public function setCondition($condition);", "public function getConditionLabel() {\n switch ($this->condition) {\n case 0:\n // New is default - not show\n //return Lang::get(\"olabs.oims::lang.products.condition_0\");\n return \"\";\n case 1:\n return Lang::get(\"olabs.oims::lang.products.condition_1\");\n case 2:\n return Lang::get(\"olabs.oims::lang.products.condition_2\");\n default:\n return \"\";\n }\n }" ]
[ "0.842417", "0.842417", "0.8394117", "0.818675", "0.81581086", "0.798433", "0.7782693", "0.7782693", "0.7782693", "0.73607886", "0.7124558", "0.71243554", "0.6959401", "0.678173", "0.6740247", "0.66873527", "0.66720605", "0.6640742", "0.65913004", "0.64298326", "0.64189446", "0.6340245", "0.6336347", "0.6327224", "0.63190144", "0.630108", "0.62978214", "0.6290765", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.62714803", "0.6255212", "0.62057316", "0.6205317", "0.61620903", "0.6146522", "0.6116776", "0.6112566", "0.6102673", "0.60793555", "0.6067277", "0.6035195", "0.6030706", "0.6027398", "0.60020083", "0.5982791", "0.59802854", "0.5952025", "0.59383875", "0.59327894", "0.5932403", "0.5877379", "0.58611447", "0.5860791", "0.5855254", "0.5855254", "0.5855254", "0.5855254", "0.58106136", "0.5803018", "0.5797595", "0.577955", "0.5752838", "0.5752623", "0.57264924", "0.57264924", "0.57100683", "0.56908923", "0.5564516", "0.55490106", "0.55490106", "0.5539285", "0.5530806", "0.5526683", "0.5525248", "0.55027556", "0.5475371", "0.5450853", "0.54470664", "0.5429029", "0.54020005", "0.53935236", "0.53790903", "0.53607625", "0.5355542", "0.5355128", "0.53544605" ]
0.0
-1
getting the route should return the full path url
public function testCapabilities() { $this->assertContains( url()->getBaseUri() . 'auth/login', route('showLoginForm') ); # - You will get an error if the file 'welcome.volt not found', # the only solution to know if this works is to know the instance $this->assertInstanceOf(View::class, view('welcome')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFullRoute();", "public function getRoute();", "private function getRoute(){\n\t}", "abstract public function getRoute();", "public function getRoute()\n {\n }", "public function get_route()\n {\n }", "public function get_matched_route()\n {\n }", "public function getRoute($url);", "function getRoute()\n{\n\t// Get the requested uri from the server exluding the domain name.\n\t$uri = strtok($_SERVER['REQUEST_URI'], '?');\n\n\t// Remove the site path from the uri so we only get the segments\n\t// that we actually want.\n\t$uri = str_replace(SITE_PATH, '', $uri);\n\n\treturn $uri;\n}", "function route_uri(): string\n{\n return RouteController::getCurrentRoute()['uri'] ?? '';\n}", "function getCurrentRoute() {\n $santitizedUrl = ''; \n if (!empty($_GET['route'])) {\n $santitizedUrl = trim($_GET['route']);\n }\n \n return $this->getMatchingRoute($santitizedUrl);\n }", "public function getApiRoute(): string;", "public function getBaseRoutePattern(): string;", "public function getRoutePath($onlyStaticPart = false);", "public function getWebRoute(): string;", "public function getRouteMatch();", "public function path(): RoutePathInterface;", "public function getRoute($name){ }", "abstract public function getRouteMatch();", "function getRoute() {\n\t\treturn $this->config()->route;\n\t}", "public function getRoute(): Route;", "public function getURI()\t{\n\t\treturn $this->route;\n\t}", "public function getRoute()\n {\n return $this->oauth_route;\n }", "public function getRoute() : string\n {\n return $this->route;\n }", "public function path(): string\n {\n return str_replace('?', '', \"/{$this->route->uri()}\");\n }", "public static function route();", "public static function route()\n {\n return self::$route;\n }", "public function getRoute(){\n return $this->route;\n }", "public function routePath()\n {\n return config('maxolex.config.routes');\n }", "public function route() {\n\t\t$method = $_SERVER['REQUEST_METHOD'];\n\t\t$request = (isset($_SERVER['PATH_INFO'])) ? explode(\"/\", trim($_SERVER['PATH_INFO'], \"/\")) : \"\";\n\t\t\n\t\treturn $this->routeRequest($method, $request);\n\t}", "function getRouteName();", "function rest_get_queried_resource_route()\n {\n }", "public function getBaseRouteName(): string;", "public function getRoute()\r\n {\r\n return $this->route;\r\n }", "protected function route()\n {\n return route($this->uri, $this->params);\n }", "public function redirectPath()\n {\n return route(home_route());\n }", "public static function getRoute() {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\t$route = (isset(self::$route_options['route'])) ? self::$route_options['route'] : null;\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $route);\n\t\t$route = self::_applyFilter(get_class(), __FUNCTION__, $route, array('event' => 'return'));\n\n\t\treturn $route;\n\t}", "public function url()\n {\n return $this->routeObject->url['uri'];\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public static function getCurrentRoute() {\t\t\n\t\t$route = self::$controller.'/'.self::$method;\n\t\tif( !empty(self::$parameters) ) {\n\t\t\t$route .= '/'.implode('/', self::$parameters);\n\t\t}\n\t\t\n\t\treturn $route;\n\t}", "public function getRoute(): string\n {\n return (string) $this->route;\n }", "public function getRoute()\n\t{\n\t\treturn $this->route;\n\t}", "abstract protected function getRoute($destination);", "static function route($url)\n {\n return App::router()->extractRoute($url);\n }", "public function getChannelsRoute(): string;", "public function getRouteName();", "abstract protected function getListRoute() : string;", "public function getUri($route = '') {\r\n\t\treturn $this->baseUrl.(($this->lang == $this->defLang) ? '' : ($this->lang.'/')).ltrim($route, '/');\r\n\t}", "abstract public function routeName();", "public function getRoute() {\n \n return $this->route;\n \n }", "protected function getRoutingPath()\n {\n $query = str_replace('/', '\\\\/', $_SERVER['QUERY_STRING']);\n $uri = preg_replace('/\\?/', '&', $_SERVER['REQUEST_URI'], 1);\n $result = preg_replace('/'.$query.'$|index.php$|&$/', '', $uri);\n return preg_replace('/\\/$/', '', $result);\n }", "public static function route($param = '')\n {\n return static::$URL.$param;\n }", "public function getIndexUrl()\n {\n return [\n 'path' => $this->request->get('_route'),\n 'params' => ['folderId' => $this->folder->getId()],\n ];\n }", "function getRoute($path){\n $serviceDir = \"services\";\n $path=strToLower($path);\n switch($path){\n case \"get:healthcheck\": return \"$serviceDir/healthCheck.php\";\n\n case \"get:auth\": return \"$serviceDir/authCheck.php\";\n case \"post:auth\": return \"$serviceDir/authLogin.php\";\n\n case \"get:profilelist\": return \"$serviceDir/profileList.php\";\n case \"get:profile\": return \"$serviceDir/profileGet.php\";\n case \"post:profile\": return \"$serviceDir/profileCreate.php\";\n case \"put:profile\": return \"$serviceDir/profileUpdate.php\";\n\n case \"post:image\": return \"$serviceDir/imageAdd.php\";\n\n case \"post:action\": return \"$serviceDir/actionCreate.php\";\n\n case \"get:matchList\": return \"$serviceDir/matchList.php\";\n }\n return false;\n }", "public function getConsoleRoute(): string;", "public function getRoute() {\n\t\treturn $this->route;\n\t}", "public function route()\n\t{\n\t\t/* [http|https]/[Ajax|]/[Get|Post|Delete|Put]/uri */\n\t\t$this->route = $this->route_raw = ($this->c->Request->is_https ? 'https' : 'http').'/'.($this->c->Request->is_ajax ? 'Ajax' : '').'/'.$this->c->Request->request.'/'.$this->c->Request->uri;\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->preRouter();\n\n\t\t/* rewrite dispatch route */\n\t\tforeach ($this->c->router['routes'] as $regexpath => $switchto) {\n\t\t\tif (preg_match($regexpath, $this->route)) {\n\t\t\t\t/* we got a match */\n\t\t\t\t$this->route = preg_replace($regexpath, $switchto, $this->route);\n\t\t\t\t$this->route_matched = $regexpath;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->postRouter();\n\n\t}", "public function getCurrentRoute()\n {\n return substr(\n $_SERVER['REQUEST_URI'],\n (strlen($this->config->get('site.dir')) - 1)\n );\n }", "function menuGetFirstUrlPart() {\n $request_uri = Slim_Http_Uri::getUri();\n $url_parts = explode('/', $request_uri);\n array_shift($url_parts);\n\n return '/'. $url_parts[0];\n}", "public function getRoutePathAttribute()\n {\n return route($this->routeName(), $this);\n }", "public function testUrlFullUrlReturnFromRoute(): void\n {\n $url = 'http://example.com/posts/view/1';\n\n $route = $this->getMockBuilder('Cake\\Routing\\Route\\Route')\n ->onlyMethods(['match'])\n ->setConstructorArgs(['/{controller}/{action}/*'])\n ->getMock();\n $route->expects($this->any())\n ->method('match')\n ->willReturn($url);\n\n Router::createRouteBuilder('/')->connect($route);\n\n $result = Router::url(['controller' => 'Posts', 'action' => 'view', 1]);\n $this->assertSame($url, $result);\n }", "public static function route($param)\n\t{\n\t\treturn static::$URL.$param;\n\t}", "final static function getRoute($route, array $args = NULL) {\n $abs_route = root . '/' . $route;\n if (isset($args)) {\n $abs_route .= '/' . implode('/', $args);\n }\n return $abs_route;\n }", "public function fetch_path()\n\t{\n\t\treturn $this->route_stack[self::SEG_PATH];\n\t}", "public function getNodeRoute();", "function route_pattern(): string\n{\n return RouteController::getCurrentRoute()['pattern'] ?? '';\n}", "function getCurrentUrlFromRoutes()\n {\n $input = &SGL_Registry::singleton();\n $url = $input->getCurrentUrl();\n $currUrl = $url->toString();\n $baseUrl = $url->getBaseUrl($skipProto = false, $includeFc = false);\n return str_replace($baseUrl, '', $currUrl);\n }", "private function _getRoute()\n {\n $route = str_replace($this->_registry->rootPath, '', $_SERVER['REQUEST_URI']);\n $routeParts = explode('/', $route);\n if ($routeParts[0]=='public') {\n $this->_registry->route = false;\n return true;\n }\n if (!empty($routeParts)) {\n $this->controller = $routeParts[0];\n if (!empty($routeParts[1])) {\n $this->action = strtolower($routeParts[1]);\n }\n }\n if (empty($this->controller)) {\n $this->controller = 'index';\n }\n if (empty($this->action)) {\n $this->action = 'index';\n }\n $this->_registry->route = $routeParts;\n // split to arguments;\n unset($routeParts[0], $routeParts[1]);\n if (empty($routeParts)) {\n $routeParts = array();\n }\n $arguments = array();\n foreach ($routeParts as $part) {\n $arguments[] = $part;\n }\n $this->_registry->args = $arguments;\n \n return true;\n }", "public function getRedirectRoute()\n {\n return $this->afterSendRouteUrl;\n }", "public static function getRoute($view=\"image\") {\n\t\n\t\t//the basic link without an Itemid\n\t\t$link = 'index.php?option=com_scaler';\n\t\n\t\t//search for menu\n\t\t$itemid = self::getItemId($view);\n\t\n\t\tif ($itemid)\n\t\t\t$link .= '&Itemid=' . $itemid;\n\t\telse\n\t\t\t$link .= '&view=' . $view;\n\t\n\t\treturn $link;\n\t}", "protected function getRoute ($route = null)\n {\n $route_requested = $this->replaceDirectorySeparator($route);\n $route_absolute = $this->replaceDirectorySeparator(realpath($this->absolute));\n\n // If it is absolute route\n if (!preg_match(\"/^\\/{2}/\", $route_requested))\n $route_requested = preg_replace(\"/^\\/(.+)/\", $route_absolute . \"/$1\", $route_requested);\n\n // Remove last slash `/`\n $route_requested = preg_replace(\"/(.+)\\/$/\", \"$1\", $route_requested);\n\n // Return to system slash `DIRECTORY_SEPARATOR`\n $route_requested = $this->replaceDirectorySeparator($route_requested, DIRECTORY_SEPARATOR);\n\n // Return\n return $route_requested;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "abstract public function getRoutePrefix();", "public function getRoute()\r\n {\r\n return $this->Route;\r\n }", "public static function get($route)\n {\n $path = preg_replace('/\\:(.*)/', '', self::$routes[$route]['url']);\n $args = func_get_args();\n\n if (count($args) > 1):\n unset($args[0]);\n foreach ($args as $arg):\n $path .= $arg . \"/\";\n endforeach;\n $path = rtrim($path, '/');\n endif;\n\n return ($path);\n }", "abstract public function getControllerUrl();", "function route_class()\n{\n return str_replace('.', '-', Route::currentRouteName());\n}", "protected function routeToURI(){\n\t\t$args = func_get_args();\n\t\treturn call_user_func_array(array('Router', 'routeToURI'), $args);\n\t}", "public function baseRoute(): string\n {\n return 'accounting/account/:accountId/invoices/presentations';\n }", "public function path()\n {\n return $this->connection->protocol()->route($this);\n }", "function url($path){\n global $app;\n return $app->request->getRootUri() . '/' . trim($path,'/');\n}", "protected function route_base() {\n\t\treturn substr( strrchr( get_class( $this ), '\\\\' ), 1 );\n\t}", "public function createUrl($manager, $route, $params)\n {\n $query = Request::find()\n ->where(['auth_item' => $route]);\n \n//echo $query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql;exit;\n $uriRoute = $query->one(); \n if(!empty($uriRoute->id)){\n return $uriRoute->uri;\n }\n return false;\n }", "public static function getRoute()\n {\n global $req;\n\n $route = [];\n $uri = trim($req->getPathInfo(), '/');\n $uri = explode('/', $uri);\n\n $route['base'] = $uri[0];\n $route['section'] = empty($uri[1]) ? '' : $uri[1];\n $route['action'] = empty($uri[2]) ? '' : $uri[2];\n $route['page'] = $uri[count($uri)-1];\n\n return $route;\n }", "function route_url(string $route, array $params = [], string $amp = '&amp;') {\n return Micro::get(Router::class)->url($route, $params, $amp);\n }", "private function getRoute() {\n $path = $_SERVER['PATH_INFO'];\n\n $parts = explode('/', trim($path, '/'));\n $action = array_shift($parts);\n $this->uri_params = $parts;\n\n if (!$action) $action = 'index';\n $action .= 'Action';\n return array($this, $action);\n }", "public function get()\n\t{\n\t\t\n\t\t$route = $this->__path;\n\t\t\n\t\tif( $this->__mapper )\n\t\t{\n\t\t\t\n\t\t\t$map = $this->__mapper->match($this->__path);\n\t\t\n\t\t\tif( $map )\n\t\t\t{\n\t\t\t\t$route = $map;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn self::sanetize($route);\n\t\t\n\t}", "protected function _findRoute()\n {\n $result = false;\n \n if ('/' == $this->_uri || '' == $this->_uri)\n {\n $result = $this->_routingTable['/'];\n }\n else\n {\n foreach ($this->_routingTable as $route => $settings)\n {\n if (preg_match(\":^/?$route/?$:\", $this->_uri, $a)) {\n $result = array();\n $result['controller'] = $settings['controller'];\n $result['params'] = array_merge($settings['params'], $a);\n break;\n }\n }\n }\n return $result;\n }", "public function route() {\n\t\t$route = $this->sets[':default']->route();\n\t\tif (!$route&&sizeof($this->route_extra)==0) return false;\n\t\tif (!$route) $route = new CMS_Navigation3_LinkSet();\n\t\t$n = $route->count();\n\t\tforeach($this->route_extra as $r) {\n\t\t\t$item = $r[1];\n\t\t\t$item['id'] = $n;\n\t\t\t$n++;\n\t\t\t$route->add($r[0],$item);\n\t\t}\t\n\t\treturn $route;\n\t}", "public function &route(){\n return $this->__route;\n }", "public function route()\n {\n return call_user_func($this->getRouteResolver());\n }" ]
[ "0.79236704", "0.7863959", "0.78241545", "0.7745705", "0.751187", "0.7487852", "0.7387829", "0.7299548", "0.7196799", "0.7091576", "0.7082845", "0.70738345", "0.70531034", "0.7041065", "0.6979475", "0.69122756", "0.69104564", "0.6907128", "0.6894886", "0.6885154", "0.6865224", "0.68649614", "0.68635046", "0.6842555", "0.68323606", "0.68308425", "0.6825493", "0.68054885", "0.6795484", "0.6792794", "0.6778068", "0.6752603", "0.67496884", "0.6734013", "0.67234474", "0.6714427", "0.6705805", "0.66931903", "0.66677", "0.66677", "0.66677", "0.66677", "0.66677", "0.66677", "0.66677", "0.6627781", "0.6616966", "0.65966743", "0.65876645", "0.6584294", "0.65832585", "0.65773916", "0.65727925", "0.6569975", "0.6568858", "0.6561977", "0.65572464", "0.65561384", "0.6547404", "0.6542457", "0.653516", "0.65300137", "0.65283775", "0.6520711", "0.64971167", "0.6494843", "0.6494445", "0.6487702", "0.6474055", "0.6469479", "0.6455536", "0.6443653", "0.64431614", "0.64385957", "0.6432022", "0.64288944", "0.64207155", "0.640268", "0.640268", "0.640268", "0.640268", "0.640268", "0.63973725", "0.6375504", "0.63686126", "0.63653326", "0.63647753", "0.63563794", "0.6352591", "0.63490313", "0.63373005", "0.6332173", "0.6323293", "0.63229954", "0.63147104", "0.6313906", "0.6310418", "0.6309686", "0.6304686", "0.6302942", "0.6282906" ]
0.0
-1
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
public function __construct(){ parent::__construct(); //Codeigniter : Write Less Do More $this->load->model(array('process_model')); //session_destroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome';\r\n\t\t$this->template->content = View::factory('index');\r\n\t}", "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "public function indexAction()\n\t{\n\t\t//echo 'Hello from the index action in the Home controller!';\n\t\t\n\t\t/*View::render('Home' . DS . 'index.php', [\n\t\t\t\"name\" => \"Laura\",\n\t\t\t\"colours\" => [\"red\", \"green\", \"blue\"]\n\t\t]);*/\n\t\t\n\t\t// View::renderTemplate('Home' . DS . 'index.html', [\n\t\t// \t\"name\" => \"Laura\",\n\t\t// \t\"colours\" => [\"red\", \"green\", \"blue\"]\n // ]);\n \n\t\t$this->showRouteParams();\n\t\t// echo \"Hello, World!\";\n }", "public function index()\n\t{\n\t\t//Default view\n\t\t$this->load->view('index.html');\n\t}", "function index() {\n\n // This page cannot be accessed without providing a page\n // the routes.php file will not allow the page to be accessed\n // $route['pages/(:any)'] = 'pages/view/$';\n redirect('/', 'refresh');\n\n }", "public function Index()\n\t{\n\t\t$this->views->SetTitle('Index Controller');\n\t\t$this->views->AddView('index/index.tpl.php', array(),'primary');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('default/index');\n\t}", "public function index() {\n\t\t$this->display('index');\n\t}", "public function index()\n\t{\t\n\n\t\t$this->load->view('welcome_message');\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->load->view('index');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('index');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('index');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('index');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('index');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('index');\n }", "public function show_index()\n {\n return view('welcome');\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 {\n $this->standardView('Index');\n }", "public function index()\n {\n return view('main.welcome');\n }", "public function index()\n {\n // return view('welcome');\n }", "public function index()\n {\n $this->load->view('index');\n }", "public function index()\n {\n // return view('welcome');\n \n }", "public function index()\n\t{\n\t\t$this->load->view('home');\n\t}", "public function index()\n\t{\n\t\techo \"Nothing !\";\n\t}", "public function index() {\n \n return view('welcome');\n }", "public function index()\n {\n return view('pages.welcome');\n }", "public function Index()\n {\n \treturn view(\"index\");\n\t}", "public function index()\n {\n $this->load->view('welcome_message');\n }", "public function index()\n {\n $this->load->view('welcome_message');\n }", "public function index()\n {\n\t\t/*$this->layout->setTitle('Welcome to our Blog');\n\t\t$this->layout->showView('welcome/about.php');*/\n\t\techo 'hello I\\'m using codeigniter';\n }", "public function index() {\n\n\t\tif(!empty($_GET['page'])) {\n\t\t\tif($_GET['page'] == 'home') {\n\t\t\t\t(new HomeController)->home();\n\t\t\t} elseif($_GET['page'] == 'about-me') {\n\t\t\t\t(new HomeController)->aboutMe();\n\t\t\t}\n\t\t} else {\n\t\t\t(new HomeController)->home();\n\t\t}\n\t}", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n return view('welcome');\n }", "public function index()\n\t{\n\t\treturn view('pages/home');\n\t}", "public function index()\n {\n return \"INDEX PAGE\";\n }", "public function index()\n\t{\n\t\treturn view('home');\n\t}", "public function index()\n\t{\n\t\treturn view('home');\n\t}", "public function index()\n {\n SEOMeta::setTitle('Trusted Mortgage & Remortgage Solutions In UK - SmartMortgages UK');\n SEOMeta::setDescription('Home Page Description: For competitive mortgage and remortgage quotes around the UK at affordable rates, speak to one of our expert credit consultants and get a mortgage. For more visit us today.');\n\n return view('welcome');\n }", "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 index()\n\t{\n\t\t$this->title = 'My Index Action';\n\n\t\treturn new View('basic/index');\n\t}", "public function index()\n\t{\n\t\t$data['title'] = 'Home | Welcome to AEY';\n\t\t$data ['view_page'] = 'homepage';\n\n\t\t$this->load->view('site', $data);\n\t}", "public function index()\n {\n\n return view('welcome');\n\n }", "public function actionIndex(){ \n $this->view(\"index.php\");\n }", "public function index() {\n $this->registry->template->module = 'welcome';\n \n /*** load the index template ***/\n $this->registry->template->show('index');\n }", "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('front.welcome');\n }", "public function index()\n\t{\n\t\treturn $this->traces();\n\t\treturn view('welcome');\n\t}", "public function index()\n\t{\n\t\t$this->loadViews(\"index\");\n\t}", "public function index() {\n\t\t$this->title = 'Home';\n\t\t$this->pageData['pages'] = Page::getAll();\n\t\t$this->render('index');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('home/home');\n\t}", "public function index() \n\t{\n\t\t$this->_render_hod_view('home');\n\t}", "public function index()\r\n\t{\r\n\t\techo \"index\";\r\n\t}", "public function index()\n\t{\n\t\t$this->twig->display('welcome/index.html', []);\n\t}", "public function Index() {\n $this->Display();\n }", "public function index()\r\n {\r\n View::render('home');\r\n }", "public function index()\n {\n $title = 'Welcome Page';\n return view($this->view . '.home', compact('title'));\n }", "public function index()\n\t{\n\t\t//\n\t\techo'index';\n\t}", "public function index() {\n $this->getView('navigation', array('pagename' => 'Welcome'));\n $this->getView('welcome');\n $this->getView('footer');\n }", "public function index()\n {\n return view(\"home\");\n }", "public function home()\n\t{\n\t\t$this->load->view('index_view');\n\t}", "function index() {\n $this->renderView(\"index\");\n }", "function index()\r\n\t{\r\n\t\t$this->view(); \r\n\t}", "public function index()\n\t{\n\t\treturn view('index');\n\t}", "public function index()\n {\n return view('welcome');\n }", "public function index()\n {\n\n\n\n return view('welcome');\n }", "public function index() {\n\t\t$page = Page::getInstance();\n\t\t$session = Session::getInstance();\n\t\t$page->setPageTitle('Method index notfound');\n\t\t$session->setFlash('Chaque controller doit avoir une m&eacute;thode index', 'error');\n\t}", "public function index()\r\n\t{\r\n\t\t//\r\n\t}", "public function index() {\n\t\t// render the view (/view/main/index.php)\n\t\t$this->view->render(\"main\", \"index\");\n\t}", "public function index()\n {\n return View(\"pages.home\");\n }", "public function index()\n {\n // Nothing to do\n }", "public function index(){\n return view('welcome');\n }", "public function index()\n\t{\n\t\t//\n\t}", "public function index()\n\t{\n\t\t//\n\t}", "public function index()\n\t{\n\t\t//\n\t}", "public function index()\n\t{\n\t\t//\n\t}" ]
[ "0.7654014", "0.74132985", "0.7394691", "0.731586", "0.72269666", "0.72269666", "0.7189518", "0.7165739", "0.7151943", "0.71448207", "0.7107727", "0.70771956", "0.70734835", "0.70390546", "0.70293397", "0.70293397", "0.70293397", "0.70293397", "0.70293397", "0.6973074", "0.6967954", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.69457924", "0.6931328", "0.6925398", "0.69116193", "0.6900703", "0.6894199", "0.68748426", "0.68572223", "0.6855815", "0.68385196", "0.6803169", "0.6801062", "0.6801062", "0.6794957", "0.6790282", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67669606", "0.67655253", "0.67642653", "0.6761002", "0.6761002", "0.675031", "0.67501646", "0.6747291", "0.67417115", "0.67379063", "0.6729717", "0.6715565", "0.67127144", "0.6710907", "0.67037076", "0.6700017", "0.66915596", "0.6674429", "0.6662107", "0.6660492", "0.6649288", "0.6630128", "0.6621244", "0.6612582", "0.66043705", "0.6597274", "0.65943825", "0.6593309", "0.6585504", "0.6576178", "0.65758705", "0.65734535", "0.65539104", "0.65466154", "0.6545604", "0.6543696", "0.6543006", "0.6542126", "0.65170395", "0.6516026", "0.6516026", "0.6516026", "0.6516026" ]
0.0
-1
/ MUESTRA EL DASHBOARD DE INICIO
public function index(){ //$this->load->view('vistas/rh/bootgrid'); //$data['student_data'] = $this->export_csv_model->fetch_data(); //$this->load->view('vistas/rh/export_csv', $data); // $this->data['gerente_info'] = $this->process_model->fetch_data(); $fecha_hoy = date('Y-m-01'); $fecha_fin = date('Y-m-t'); $mes = date('m'); $anio = date('Y'); /** fecha mes anterior **/ $fecha_mes_anterior = date('Y-m-01', strtotime('-1 month')); $mesAnterior = date('m', strtotime('-1 month')); $lastDayOfMOnth = date('Y-m-d', mktime(0,0,0, date('m', strtotime($fecha_mes_anterior))+1, 0, date('Y', strtotime($fecha_mes_anterior)))); /**/ $id= $_SESSION['login']['user_id']; $id_p = $_SESSION['login']['user_promotor']; $idu = $_SESSION['login']['usuario']; $rol = $_SESSION['login']['rol']; $suc = $_SESSION['login']['sucursal']; $pb=array(2,3,5,8,9); //$pb=array(2,3,5,7,9); $fb= array(4,6); if($rol == 6): /*EJECUTIVO DE VENTA*/ $hoy = date("Y-m-d"); $days = $this->getAllDaysInAMonth($anio,$mes); $week_ec = array(); foreach ($days as $day) { $week_ec[] = $this->inicio_fin_semana($day->format('Y-m-d')); } //var_dump($week_ec); $lastdays = $this->getAllDaysInAMonth(date('Y',strtotime($fecha_mes_anterior)),date('m',strtotime($fecha_mes_anterior))); $last_month_week = array(); //var_dump($lastdays); foreach ($lastdays as $day) { $last_month_week[] = $this->inicio_fin_semana($day->format('Y-m-d')); } $count_week_ec= count($week_ec); $count_week_ec_last = count($last_month_week); $this->data['rango_semana'] = $week_ec; $this->data['rango_semana_ma'] = $last_month_week; $this->data['porcentaje_reactivacion_campania'] = $this->process_model->parametro(1); //# MES ACTUAL for($i=0;$i<$count_week_ec;$i++){ //$this->data['creditos_nuevos'][$i] = $this->process_model->muestra_incentivos('NB',$id,$id_p,$week_ec[$i]['fi'],$week_ec[$i]['ff'],$fecha_fin,1); $this->data['creditos_nuevos'][$i] = $this->process_model->muestra_incentivos('NB',$id,$id_p,$week_ec[$i]['fi'],$week_ec[$i]['ff'],1); $this->data['creditos_renovacion'][$i] = $this->process_model->muestra_incentivos('PB',$id,$id_p,$week_ec[$i]['fi'],$week_ec[$i]['ff'],$pb); $this->data['creditos_reactivacion'][$i] = $this->process_model->muestra_incentivos('FB',$id,$id_p,$week_ec[$i]['fi'],$week_ec[$i]['ff'],$fb); $this->data['credito_reactivacion_tradicional'][$i] = $this->process_model->muestra_incentivos('FB',$id,$id_p,$week_ec[$i]['fi'],$week_ec[$i]['ff'],4); $this->data['credito_reactivacion_campania'][$i] = $this->process_model->muestra_incentivos('FB',$id,$id_p,$week_ec[$i]['fi'],$week_ec[$i]['ff'],6); } //MES ANTERIOR for($i=0;$i<$count_week_ec_last;$i++){ $this->data['creditos_nuevos_ma'][$i] = $this->process_model->muestra_incentivos('NB',$id,$id_p,$last_month_week[$i]['fi'],$last_month_week[$i]['ff'],1); $this->data['creditos_renovacion_ma'][$i] = $this->process_model->muestra_incentivos('PB',$id,$id_p,$last_month_week[$i]['fi'],$last_month_week[$i]['ff'],$pb); $this->data['creditos_reactivacion_ma'][$i] = $this->process_model->muestra_incentivos('FB',$id,$id_p,$last_month_week[$i]['fi'],$last_month_week[$i]['ff'],$fb); $this->data['credito_reactivacion_tradicional_ma'][$i] = $this->process_model->muestra_incentivos('FB',$id,$id_p,$last_month_week[$i]['fi'],$last_month_week[$i]['ff'],4); $this->data['credito_reactivacion_campania_ma'][$i] = $this->process_model->muestra_incentivos('FB',$id,$id_p,$last_month_week[$i]['fi'],$last_month_week[$i]['ff'],6); } /** * * COBRANZA EJECUTIVO */ //$semana_actual = date("W"); $hoy = date("Y-m-d"); $rango = $this->inicio_fin_semana($hoy); $week = date( 'W', strtotime( $hoy )); $year = date('Y'); $month = date('m'); $no_week = $week; list($primeraSemana,$ultimaSemana) = $this->semanasMes($year,$month); $semana =''; $first_week_month = intval($primeraSemana); $actual_week_month = intval($no_week); //echo $first_week_month.' '.$actual_week_month; $x=0; $semanas = array(); for($i=$first_week_month;$i<$actual_week_month;$i++){ $rango_semanal = $this->getStartAndEndDate($i,$year); array_push($semanas, $rango_semanal); $fi = $rango_semanal['week_start']; $ff = $rango_semanal['week_end']; $this->data['ejecutivo_cobranza_bucket_siete'][$x] = $this->process_model->cobranza_ejecutivo($id,$suc,$fi,$ff); $x++; } // var_dump($semanas); /** * * COBRANZA EJECUTIVO MA */ $mes_an = date('Y-m-d', strtotime('-1 month')); $Lweek = date( 'W', strtotime($mes_an)); $anio_anterior = date('Y', strtotime($mes_an)) ; $mes_anterior = date('m', strtotime($mes_an)) ; $Lno_week = $Lweek; list($primeraLSemana,$ultimaLSemana) = $this->semanasMes($anio_anterior,$mes_anterior); //var_dump($this->semanasMes($anio_anterior,$mes_anterior)); $semana =''; $first_week_last_month = intval($primeraLSemana); $actual_week_last_month = intval($ultimaLSemana); // echo $first_week_last_month.' '.$actual_week_last_month; $x=0; $semanas_ma = array(); for($i=$first_week_last_month;$i<=$actual_week_last_month;$i++){ $rango_last_semanal = $this->getStartAndEndDate($i,$year); array_push($semanas_ma, $rango_last_semanal); $lfi = $rango_last_semanal['week_start']; $lff = $rango_last_semanal['week_end']; $this->data['ejecutivo_cobranza_bucket_siete_ma'][$x] = $this->process_model->cobranza_ejecutivo($id,$suc,$lfi,$lff); $x++; } //var_dump($semanas_ma); elseif($rol == 5): $this->data['notificacion_count'] = $this->process_model->get_num_notify(); $this->data['notificacion_msj'] = $this->process_model->get_notificacion(); if(!$this->data['notificacion_msj']): $this->data['notificacion_msj'] = $this->process_model->get_notificacion_old(); endif; //GERENTE $semana_actual = date("W"); $hoy = date("Y-m-d"); $rango = $this->inicio_fin_semana($hoy); /* SEMANAS*/ $week = date( 'W', strtotime( $hoy )); $year = date('Y'); $month = date('m'); $no_week = $week; $semana_anterior = date( 'W', strtotime( 'last week' ) ); /** MES**/ $f_inicio = $rango['fi']; $f_fin = $rango['ff']; // echo $f_inicio; $this->data['bono_gerente'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_hoy,$fecha_fin,0); $this->data['gerente_nb'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_hoy,$fecha_fin,1); $this->data['gerente_pb'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_hoy,$fecha_fin,$pb); $this->data['gerente_cobranza_bucket_siete'] = $this->process_model->muestra_cobranza_gerente($suc,$fecha_hoy,$fecha_fin); //$this->data['gerente_cobranza_bucket_siete'] = $this->process_model->muestra_cobranza_gerente($suc,$f_inicio,$f_fin); /** FIN MES**/ /*MES ANTERIOR*/ //$this->data['gerente_nb_ma'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,1); $this->data['bono_gerente_ma'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,0); $this->data['gerente_nb_ma'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,1); $this->data['gerente_pb_ma'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,$pb); $this->data['gerente_cobranza_bucket_siete_ma'] = $this->process_model->muestra_cobranza_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth); list($primeraSemana,$ultimaSemana) = $this->semanasMes($year,$month); $this->data['bono_gerente_t']= $this->process_model->muestra_incentivos_gerente($suc,$fecha_hoy,$fecha_fin,0); $this->data['gerente_nb_t'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_hoy,$fecha_fin,1); $this->data['gerente_pb_t'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_hoy,$fecha_fin,$pb); $this->data['bono_gerente_ma_t']= $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,0); $this->data['gerente_nb_ma_t'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,1); $this->data['gerente_pb_ma_t'] = $this->process_model->muestra_incentivos_gerente($suc,$fecha_mes_anterior,$lastDayOfMOnth,$pb); //SEMANAS COMPLETAS $last_month_week = $this->SemanasEnElMesAnterior(); $week = $this->SemanasEnElMes(); $count_week = count($week); $fecha_actual = date('Y-m-d'); /** * * COBRANZA */ $semana =''; $first_week_month = intval($primeraSemana); $actual_week_month = intval($no_week); $x=0; /**SEMANAL **/ /* for($i=$first_week_month;$i<$actual_week_month;$i++){ $rango_semanal = $this->getStartAndEndDate($i,$year); $fi = $rango_semanal['week_start']; $ff = $rango_semanal['week_end']; $this->data['gerente_cobranza_bucket_siete'][$x] = $this->process_model->muestra_cobranza_gerente($suc,$fi,$ff); $x++; }*/ /****/ //MES ANTERIO COBRANZA $mes_an = date('Y-m-d', strtotime('-1 month')); $Lweek = date( 'W', strtotime($mes_an)); $anio_anterior = date('Y', strtotime($mes_an)) ; $Lno_week = $Lweek; /* * * NORMALIDAD * */ $yestarday = date('Y-m-d', strtotime('-1 days')); $this->data['gerente_normalidad'] = $this->process_model->normalidad($suc,$fecha_hoy,$yestarday); //$this->data['bono_normalidad'] = $this->process_model->bono_normalidad($this->data['gerente_normalidad'][0]->Normalidad); //test $this->data['bono_normalidad'] = $this->process_model->bono_normalidad(73.5); $this->data['bono_normalidad_fijo'] = $this->process_model->parametro(2); $this->data['mejora_normalidad_porcentaje'] = $this->process_model->parametro(5); /* * * NORMALIDAD MES ANTERIOR * */ $this->data['gerente_normalidad_ma'] = $this->process_model->normalidad($suc,$fecha_mes_anterior,$lastDayOfMOnth); $this->data['bono_normalidad_ma'] = $this->process_model->bono_normalidad($this->data['gerente_normalidad_ma'][0]->Normalidad); /* * normalidad anterior anterior */ $fecha_ma_ma = date('Y-m-01', strtotime('-2 month')); $lastDayOf_ma_ma = date('Y-m-d', mktime(0,0,0, date('m', strtotime($fecha_ma_ma))+1, 0, date('Y', strtotime($fecha_ma_ma)))); $this->data['gerente_normalidad_ma_ma'] = $this->process_model->normalidad($suc,$fecha_ma_ma,$lastDayOf_ma_ma); $this->data['bono_normalidad_ma_ma'] = $this->process_model->bono_normalidad($this->data['gerente_normalidad_ma_ma'][0]->Normalidad); endif; if($rol != 21 && $rol != 5): // $this->data['vista'] = 'vistas/incentivos/ejecutivo'; // $this->data['vista'] = 'vistas/incentivos/ejecutivo'; // $this->data['vista'] = 'vistas/rh/bootgrid'; // $this->data['vista'] = 'vistas/auditoria/filtro_auditoria'; $this->data['vista'] = 'vistas/rh/incentivosTest'; elseif($rol==5): $this->data['vista'] = 'vistas/incentivos/gerente'; else: $this->data['vista'] = 'vistas/auditoria/filtro_auditoria'; endif; $this->load->view('layouts/dashboard'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function board_list(){\n\t\tglobal $print, $x7s, $x7c, $db, $prefix;\n\t\t$head = \"\";\n\t\t$body='';\n\t\t\n\t\t$indice = indice_board();\n\n\n\t\t$q_new = $db->DoQuery(\"SELECT count(*) AS cnt FROM {$prefix}boardunread WHERE user='{$x7s->username}'\");\n\t\t$new_msg = $db->Do_Fetch_Assoc($q_new);\n\n\t\t$body=\"<b>Ci sono $new_msg[cnt] messaggi nuovi</b>\";\n\t\t\n\t\t$print->board_window($head,$body,$indice);\n\t\t\n\t}", "public function abrirMenu() {\n echo $this->getLigado()?\"<p>Esta ligado? : SIM <br>\":\"Esta ligado : NON <br></p>\";\n echo $this->getTocando()?\"Esta tocando? : SIM\":\"Esta tocando? : NON\";\n echo \"<br>Volume: \" . $this->getVolume();\n // Pra colocar barrinhas simulando o volume\n for ($i=0; $i <=$this->getVolume(); $i+=10) {\n echo \"|\";\n }\n echo \"<br>\";\n }", "function board_main(){\n\t\tglobal $x7c, $x7s, $db, $prefix, $x7p, $print;\n\n\n\t\tif($x7c->settings['panic']) {\n\t\t\t$print->board_window(\"\",\"\",\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tudpate_unread();\n\t\t\n\t\tif(isset($_GET['newboard'])){\n\t\t\tcreate_board();\n\t\t}\n\t\telse if(isset($_GET['board'])){\n\t\t\tshow_board($_GET['board']);\n\t\t}\n\t\telse if(isset($_GET['send'])){\n\t\t\tnew_communication($_GET['send']);\n\t\t}\n\t\telse if(isset($_GET['delete'])){\n\t\t\tdelete_message($_GET['delete']);\n\t\t}\n\t\telse if(isset($_GET['delboard'])){\n\t\t\tdelete_board($_GET['delboard']);\n\t\t}\n\t\telse if(isset($_GET['readall'])){\n\t\t\tread_all();\n\t\t}\n\t\telse if(isset($_GET['move'])){\n move_msg();\n\t\t}\n\t\telse \n\t\t\tboard_list();\n\t}", "public function contarInventario(){\n\t}", "public function index()\n\t\t{\n\t\t\t$this->load_dashoard();\n\t\t}", "function Menu() {\r\n extract($GLOBALS);\r\n\r\n if ($O=='L') {\r\n // Recupera os módulos contratados pelo cliente\r\n $sql = new db_getSiwCliModLis; $RS = $sql->getInstanceOf($dbms, $w_cliente, null, null);\r\n }\r\n \r\n Cabecalho();\r\n head();\r\n ShowHTML('<TITLE>'.$w_TP.'</TITLE>');\r\n ShowHTML('</HEAD>');\r\n BodyOpen('onLoad=this.focus();');\r\n ShowHTML('<B><FONT COLOR=\"#000000\">'.$w_TP.'</font></B>');\r\n ShowHTML('<HR>');\r\n ShowHTML('<div align=center><center>');\r\n ShowHTML('<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" >');\r\n if ($O==\"L\") {\r\n // Exibe a quantidade de registros apresentados na listagem e o cabeçalho da tabela de listagem\r\n ShowHTML('<tr><td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td align=\"center\" colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor='.$conTableBgColor.' BORDER='.$conTableBorder.' CELLSPACING='.$conTableCellSpacing.' CELLPADDING='.$conTableCellPadding.' BorderColorDark='.$conTableBorderColorDark.' BorderColorLight='.$conTableBorderColorLight.'>');\r\n ShowHTML(' <tr bgcolor='.$conTrBgColor.' align=\"center\">');\r\n ShowHTML(' <td><b>Módulo</td>');\r\n ShowHTML(' <td><b>Objetivo geral</td>');\r\n ShowHTML(' <td class=\"remover\"><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n if (count($RS) <= 0) {\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=6 align=\"center\"><font size=\"2\"><b>Nenhum registro encontrado.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n foreach ($RS as $row) {\r\n if ($w_cor==$conTrBgColor || $w_cor=='') $w_cor=$conTrAlternateBgColor; else $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td nowrap>'.f($row,'nome').'</td>');\r\n ShowHTML(' <td>'.f($row,'objetivo_geral').'</td>');\r\n ShowHTML(' <td nowrap class=\"remover\">');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_pagina.'Inicial&R='.$w_pagina.$par.'&O=L&w_sq_modulo='.f($row,'sq_modulo').'&P1=1&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">Detalhar</A> ');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n } \r\n }\r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n DesConectaBD();\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n }\r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Rodape();\r\n}", "public function opcion(){\n\t\t$data = new stdClass();\n\t\t$data->title = \"MANNA - La Provisión que cambiará tu vida\";\n\t\t$data->contenido = \"apl/auth/opcion\"; //aqui es la dirección física del controlador\n\t\t$data->panel_title = \"Afiliación de aliados comerciales - Página 1 de 3\";\n\t\t$data->active = \"registro\";\n\t\t$this->load->view('menu',$data);\n\t}", "function show_board($bid){\n\t\tglobal $print, $x7s, $x7c, $db, $prefix;\n\t\t$indice=0;\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT * FROM {$prefix}boards WHERE id='{$bid}'\");\n\t\t$row = $db->Do_Fetch_Assoc($query);\n\t\t\n\t\tif(!$row){\n\t\t\t$body=\"La board richiesta non esiste\n\t\t\t\t<A HREF=\\\"javascript:javascript:history.go(-1)\\\"> Torna indietro</a>\";\n\t\t\t\n\t\t\t$head=\"Errore\";\n\t\t\t$print->board_window($head,$body,$indice);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$board['name']=$row['name'];\n\t\t$board['id']=$row['id'];\n\t\t$board['user_group']=$row['user_group'];\n\t\t$board['readonly']=$row['readonly'];\n\t\t\n\t\t\n\t\t$head=\"Board \".$board['name'];\n\t\t\n\t\t\n\n\t\tif(!checkAuth($bid)){\n\t\t\t$body=\"Non sei autorizzato a vedere questa board\n\t\t\t\t<A HREF=\\\"javascript:javascript:history.go(-1)\\\"> Torna indietro</a>\";\n\t\t\t\n\t\t\t$print->board_window($head,$body,$indice);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(!isset($_GET['message'])){\n\t\t\tshow_all_messages($board);\n\t\t}\n\t\telse{\n\t\t\tshow_single_message($_GET['message'],$board);\n\t\t}\n\t\t\n\t\t\n\t}", "protected function infoScreenAction() {}", "function print_board() {\r\n\techo '<form class=\"intable\" action=\"p4.php\" method=\"post\">'.\"\\n\";\r\n\techo '<table>'.\"\\n\";\r\n\tfor ($i=(HAUT-1); $i>=0; $i--){\r\n\t\t$users1 = new Afficher; \r\n $rows1=$users1->Afficher_Ligne($i);\r\n\t} \r\n $rows2=$users1->affiche_plateau();\r\n\techo \"</table>\\n</form>\\n\";\r\n }", "public function view(){\n\t\t\t$this->__switchboard();\n\t\t}", "private static function showIndirizzi(){\n $Magazzini=\\Singleton::DB()->query(\"SELECT indirizzi.id as id_magazzino, comuni.nome as citta,comuni.provincia as provincia, comuni.CAP as cap, indirizzi.via, indirizzi.civico FROM `magazzini`,comuni,indirizzi WHERE magazzini.id_indirizzo=indirizzi.id AND indirizzi.id_comune=comuni.id;\");\n while($r = mysqli_fetch_assoc($Magazzini)) {$rows[] = $r; }\n if(isset($rows))echo json_encode($rows);\n else self::setSuccess(\"empty\");\n }", "public function individuais()\n { \n $metaTags = [\n 'title' => 'Displan Saúde - Planos individuais',\n 'description' => 'Displan Seguros. Planos diferenciados para empresas, profissionais e individuais.',\n 'keywords' => 'Displan, Seguros, Preços'\n ];\n \n $dados = [\n 'operadoras' => $this->operadoras->getByCategory('individuais'),\n 'categorias' => $this->categorias->all(),\n 'metaTags' => $metaTags,\n 'breadcrumb' => [\n ['title' => 'Home', 'url' => '/', 'class' => ''],\n ['title' => 'Planos individuais', 'url' => 'planos-individuais/', 'class' => 'active']\n \n ]\n ];\n \n $this->load->view('inc/header', $dados);\n $this->load->view('planos/individuais', $dados);\n $this->load->view('inc/footer');\n }", "public function hacer(){\n // renderizamos vista\n require_once 'views/pedido/hacer.php';\n }", "public function enviarMenu( ) {\n $atrib;\n if ($this->menu) {\n $atrib = \"MOSTRAR\";\n }\n else {\n $atrib = \"OCULTAR\";\n }\n $cmd=new ComandoFlash(\"SISTEMA\",\"MENU\",$atrib);\n $this->enviarPeticion($cmd->getComando());\n }", "public function obtenerElementosMenu();", "public function writeMenu() {}", "public function writeMenu() {}", "public function writeMenu() {}", "public function writeMenu() {}", "function controlAcceso () {\n \t/*\n \techo $this->uri->segment(1);\n \techo $this->uri->segment(2);\n \techo $this->uri->segment(3);\n \techo $this->uri->segment(4);\n \techo $this->uri->segment(); \t\n*/\n\n \t$idusuario = 1;\n \t\n \tif ($this->compruebaAcceso($idusuario)) {\n\t\t\t$crud = new grocery_CRUD();\n\t\t\t\n\t\t\t$crud->set_table('USUARIO');\n\t\t\t$crud->where('IDUSUARIO',$idusuario);\n\t\t\t\n\t\t\t\n\t\t\t$output = $crud->render();\n\t\t\t\n\t\t\t$this->_example_output($output);\n\t\t\n \t} else {\n \t\t$this->load->view('usuario_no_autorizado.php');\n \t}\n \t\n \t\n }", "public function returnAnunForDash($idUsuario, $status = \"online\"){#deverá ser passado o valor de status que desejado.\n\n $objAnuncio = new StatusAnuncioDAO();\n #retorna o id dos registros que representam o estado online ou inativo, sendo o valor default sempre online.\n $this->arrayStatusId = $objAnuncio->retornaRegStatus($status);\n\n\n #faz a junção das tabelas relacionadas ao anuncio, verificando usuário e se vai retornar os anuncios ativos ou inativos.\n $sql = \"SELECT * FROM Anuncio\n INNER JOIN Forma_pagamento ON Anuncio.anuncio_id = Forma_pagamento.forma_pag_anuncio_ref\n INNER JOIN Link ON Anuncio.anuncio_id = Link.link_anuncio_ref\n INNER JOIN Endereco ON Anuncio.anuncio_endereco = Endereco.endereco_id\n INNER JOIN Horario_funcionamento ON Anuncio.anuncio_id = Horario_funcionamento.horario_func_anuncio_ref\n INNER JOIN Cont_views ON Anuncio.anuncio_id = Cont_views.cont_views_anuncio_ref\n INNER JOIN Plano_saude ON Anuncio.anuncio_id = Plano_saude.plano_saude_anuncio_ref\n INNER JOIN Facilidades ON Anuncio.anuncio_id = Facilidades.facilidades_anuncio_ref\n WHERE Anuncio.anuncio_cliente_ref = {$idUsuario} AND Anuncio.anuncio_excluido = 0 AND (\";\n\n\n #verifica se os argumentos foram passados com sucesso. Somemte se os argumentos estiverem corretos que será executado a consulta.\n if(!empty($idUsuario) && ($status === \"online\" || $status === \"inativo\")){\n\n for ($i = 0; $i < count($this->arrayStatusId); $i++) {\n\n $sql .= \" Anuncio.anuncio_status = \" . $this->arrayStatusId[$i]['status_anuncio_id']; //estamos trabalhando com arrays associativos.\n\n #se $i + 1 for iqual ao tamanho total do array, significa que a proxima iteração será a ultima.\n if (($i + 1) != count($this->arrayStatusId)) {\n $sql .= \" OR \";\n } else {\n #Na ultima iteração recebe o ';'\n $sql .= \") ORDER BY Anuncio.anuncio_titulo ASC, Anuncio.anuncio_id ASC;\";\n }\n\n }\n\n\n\n #caso ocorrer tudo certo retorna a visualização da tabela.\n if($row = $this->runSelect($sql)){\n\n\n return $row;\n\n } else {\n\n // echo \"A consulta não retonou dados para o inner join curriculo \" . $sql;\n }\n\n } else {\n\n // echo \"Favor verificar os agumentos passados\";\n\n }\n\n }", "function seleccionInicio($idP){\r\n }", "function cl_liccomissao() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"liccomissao\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function menuCoordinador($variable)\r\n {\r\n ?>\r\n<table class=\"sigma_borde centrar\" width=\"100%\">\r\n <caption class=\"sigma\">* INSCRIPCIONES *</caption>\r\n <tr class=\"centrar\">\r\n <td colspan=\"2\" class=\"sigma centrar\" width=\"50%\">\r\n <?\r\n $indice=$this->configuracion[\"host\"].$this->configuracion[\"site\"].\"/index.php?\";\r\n $ruta=\"pagina=admin_inscripcionEstudianteCoorPosgrado\";\r\n $ruta.=\"&opcion=consultar\";\r\n $ruta.=\"&planEstudio=\".$variable[2];\r\n $ruta.=\"&nombreProyecto=\".$variable[1];\r\n $ruta.=\"&codProyecto=\".$variable[0];\r\n\r\n $ruta=$this->cripto->codificar_url($ruta,$this->configuracion);\r\n ?>\r\n\r\n <a href=\"<?= $indice.$ruta ?>\">\r\n <img src=\"<?echo $this->configuracion['site'].$this->configuracion['grafico']?>/solo.png\" width=\"50\" height=\"50\" border=\"0\" alt=\"Inscripcion por Estudiante\">\r\n <br>Inscripci&oacute;n<br> por Estudiante\r\n </a>\r\n </td>\r\n <td colspan=\"2\" class=\"sigma centrar\" width=\"50%\">\r\n <?\r\n $indice=$this->configuracion[\"host\"].$this->configuracion[\"site\"].\"/index.php?\";\r\n $ruta=\"pagina=admin_inscripcionGrupoCoorHoras\";\r\n $ruta.=\"&opcion=consultarPorNivel\";\r\n $ruta.=\"&planEstudio=\".$variable[2];\r\n $ruta.=\"&nombreProyecto=\".$variable[1];\r\n $ruta.=\"&codProyecto=\".$variable[0];\r\n \r\n $ruta=$this->cripto->codificar_url($ruta,$this->configuracion);\r\n //echo $ruta;\r\n ?>\r\n\r\n <a href=\"<?= $indice.$ruta ?>\">\r\n <img src=\"<?echo $this->configuracion['site'].$this->configuracion['grafico']?>/personas.png\" width=\"50\" height=\"50\" border=\"0\" alt=\"Inscripcion por Grupo\">\r\n <br>Inscripci&oacute;n<br> por Grupo\r\n </a>\r\n </td>\r\n\r\n </tr>\r\n</table>\r\n<?\r\n }", "function index()\n\t{\n\t\t$data['hardware'] = $this->Mhardware->tampil_hardware();\n\t\t//mengambil data dari fungsi tampil_departemen\n\t\t$data['departemen'] = $this->Mdepartemen->tampil_departemen();\n\t\t\n\t\t$data['judul'] = \"Tabel Aset Kantor\";\n\t\t$this->theme->set_ui(\"admin/tampilhardware\", $data);\n\t}", "function main_screen()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\n\t\t$g_array = array();\n\t\t$content = \"\";\n\t\t$form = array();\n\n\t\t//-----------------------------------------\n\t\t// Page details\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->admin->page_title = \"Группы пользователей\";\n\t\t$this->ipsclass->admin->page_detail = \"Разделение на&nbsp;группы является очень полезной и&nbsp;мощной функцией для организации пользователей на&nbsp;форуме. Нужно помнить, что есть 4 группы, которые Вы&nbsp;не&nbsp;сможете удалить, это: (Неактивированные, Гости, Пользователи и&nbsp;Администраторы), однако Вы&nbsp;можете их&nbsp;редактировать. Рекомендуем Вам создать группу &laquo;Модераторы&raquo; и&nbsp;наделить их&nbsp;соответствующими правам на&nbsp;форуме (в&nbsp;разделах), которых нет у&nbsp;простых&nbsp;пользователей.<br /> В&nbsp;параметрах доступа Вы&nbsp;можете произвести быстрые настройки доступов к&nbsp;созданию тем, ответам и&nbsp;чтению форумов. Параметры доступа можно также отредактировать и&nbsp;через меню &laquo;Управление&nbsp;форумами&raquo;.\";\n\t\t$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Управление группами пользователей' );\n\n\t\t//-----------------------------------------\n\t\t// Get groups\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->DB->cache_add_query( 'groups_main_screen', array() );\n\t\t$this->ipsclass->DB->cache_exec_query();\n\n\t\twhile ( $row = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Set up basics\n\t\t\t//-----------------------------------------\n\n\t\t\t$row['_can_delete'] = ( $row['g_id'] > 4 ) ? 1 : 0;\n\t\t\t$row['_can_acp'] = ( $row['g_access_cp'] == 1 ) ? 1 : 0;\n\t\t\t$row['_can_supmod'] = ( $row['g_is_supmod'] == 1 ) ? 1 : 0;\n\t\t\t$row['_title'] = $row['prefix'].$row['g_title'].$row['suffix'];\n\n\t\t\tif ( $this->ipsclass->vars['admin_group'] == $row['g_id'] )\n\t\t\t{\n\t\t\t\t$row['_title'] .= \" ( ROOT )\";\n\t\t\t}\n\n\t\t\t//-----------------------------------------\n\t\t\t// IMAGES\n\t\t\t//-----------------------------------------\n\n\t\t\t$row['_can_acp_img'] = $row['_can_acp'] ? 'aff_tick.png' : 'aff_cross.png';\n\t\t\t$row['_can_supmod_img'] = $row['_can_supmod'] ? 'aff_tick.png' : 'aff_cross.png';\n\n\t\t\t//-----------------------------------------\n\t\t\t// Add\n\t\t\t//-----------------------------------------\n\n\t\t\t$content .= $this->html->groups_overview_wrapper_row( $row );\n\n\t\t\t//-----------------------------------------\n\t\t\t// Add to array\n\t\t\t//-----------------------------------------\n\n\t\t\t$g_array[] = array( $row['g_id'], $row['g_title'] );\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// Add form\n\t\t//-----------------------------------------\n\n\t\t$form['_new_dd'] = $this->ipsclass->adskin->form_dropdown(\"id\", $g_array, 3 );\n\n\t\t$this->ipsclass->html .= $this->html->groups_overview_wrapper( $content, $form );\n\n\t\t$this->ipsclass->admin->output();\n\t}", "function PCO_PresentarTableroKanban($ID_TableroKanban)\n\t{\n\t\t global $ArchivoCORE,$PCO_FechaOperacion,$TablasCore,$PCOSESS_LoginUsuario;\n\t\t global $MULTILANG_ZonaPeligro,$MULTILANG_Confirma,$MULTILANG_TablerosKanban,$MULTILANG_Eliminar,$MULTILANG_TareasArchivadas,$MULTILANG_Atencion,$MULTILANG_Configuracion;\n global $MULTILANG_ArrastrarTarea,$MULTILANG_AgregarNuevaTarea,$MULTILANG_CrearTablero,$MULTILANG_FechaLimite;\n global $MULTILANG_Personalizado,$MULTILANG_ListaColumnas,$MULTILANG_FrmDesLista2,$MULTILANG_TitObligatorio,$MULTILANG_ListaCategorias,$MULTILANG_CompartirCon;\n global $MULTILANG_Guardar,$MULTILANG_Cancelar,$MULTILANG_InfDescripcion,$MULTILANG_DesTarea;\n global $MULTILANG_FrmTituloBot,$MULTILANG_Plantilla,$MULTILANG_Ninguno,$MULTILANG_Historia1Des,$MULTILANG_Historia2Des,$MULTILANG_Historia3Des;\n global $MULTILANG_Historia1,$MULTILANG_Historia2,$MULTILANG_Historia3,$PCO_FechaOperacionGuiones,$MULTILANG_Columna;\n global $funciones_activacion_datepickers,$IdiomaPredeterminado,$MULTILANG_FrmEstilo,$MULTILANG_InfCategoria,$MULTILANG_Finalizado;\n global $MULTILANG_BtnEstiloPredeterminado,$MULTILANG_BtnEstiloPrimario,$MULTILANG_BtnEstiloFinalizado,$MULTILANG_BtnEstiloInformacion,$MULTILANG_BtnEstiloAdvertencia,$MULTILANG_BtnEstiloPeligro;\n global $MULTILANG_AsignadoA,$MULTILANG_SeleccioneUno,$MULTILANG_AsignadoADes,$MULTILANG_Peso,$MULTILANG_Prioridad;\n global $CadenaTablerosDisponibles,$MULTILANG_Actualizar,$MULTILANG_InfDataTableRegTotal,$MULTILANG_Tareas,$MULTILANG_ListaCategorias;\n\n //Busca las columnas definidas en el tablero\n $ResultadoColumnas=PCO_EjecutarSQL(\"SELECT descripcion,compartido_rw,login_admintablero,titulo FROM \".$TablasCore.\"kanban WHERE id='$ID_TableroKanban' \")->fetch();\n $ArregloColumnasTablero=explode(\",\",$ResultadoColumnas[\"descripcion\"]);\n ?>\n\n <!-- INICIO MODAL PERSONALIZACION COLUMNAS Y CATEGORIAS -->\n <?php PCO_AbrirDialogoModal(\"myModalPersonalizarKanban\".$ID_TableroKanban,$MULTILANG_TablerosKanban.\" \".$MULTILANG_Personalizado); ?>\n \t\t\t<form name=\"datospersonalizacion<?php echo $ID_TableroKanban; ?>\" id=\"datospersonalizacion<?php echo $ID_TableroKanban; ?>\" action=\"<?php echo $ArchivoCORE; ?>\" method=\"POST\" style=\"display:inline; height: 0px; border-width: 0px; width: 0px; padding: 0; margin: 0;\">\n \t\t\t\t<input type=\"Hidden\" name=\"PCO_Accion\" value=\"GuardarPersonalizacionKanban\">\n \t\t\t\t<input type=\"Hidden\" name=\"ID_TableroKanban\" value=\"<?php echo $ID_TableroKanban; ?>\">\n \n \t\t<div class=\"row\">\n \t\t\t<div class=\"col col-md-12\">\n <label for=\"titulos_columnas\"><?php echo $MULTILANG_ListaColumnas; ?> (<?php echo $MULTILANG_FrmDesLista2; ?>)</label>\n <div class=\"form-group input-group\">\n <input type=\"text\" id=\"titulos_columnas\" name=\"titulos_columnas\" class=\"form-control\" value=\"<?php echo $ResultadoColumnas[\"descripcion\"]; ?>\">\n <span class=\"input-group-addon\">\n <a href=\"#\" data-toggle=\"tooltip\" data-html=\"true\" title=\"<?php echo $MULTILANG_TitObligatorio; ?>\"><i class=\"fa fa-exclamation-triangle icon-orange\"></i></a>\n </span>\n </div>\n\n <label for=\"compartido_rw\"><?php echo $MULTILANG_CompartirCon; ?></label>\n <div class=\"form-group input-group\">\n <textarea class=\"input input-sm btn-block\" id=\"compartido_rw\" name=\"compartido_rw\"><?php echo $ResultadoColumnas[\"compartido_rw\"]; ?></textarea>\n <span class=\"input-group-addon\">\n <a href=\"#\" data-toggle=\"tooltip\" data-html=\"true\" title=\"Encerrados siempre por barras de canalizacion. Ej: |pepito.perez|maria.robles|<br>Always enclosed by pipes. Ej: |pepito.perez|maria.robles|\"><i class=\"fa fa-info\"></i></a>\n </span>\n </div>\n \t\t\t</div>\n \t\t</div>\n </form>\n <?php \n $barra_herramientas_modal='\n <input type=\"Button\" class=\"btn btn-success\" value=\"'.$MULTILANG_Guardar.'\" onClick=\"document.datospersonalizacion'.$ID_TableroKanban.'.submit()\">\n <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">'.$MULTILANG_Cancelar.' {<i class=\"fa fa-keyboard-o\"></i> Esc}</button>';\n PCO_CerrarDialogoModal($barra_herramientas_modal);\n ?>\n <!-- FIN MODAL PERSONALIZACION COLUMNAS Y CATEGORIAS -->\n\n\n<?php\n //Si el usuario es el mismo creador o propietario del tablero le da la posibilidad de eliminarlo\n $ComplementoHerramientasEliminacion=\"\";\n if ($PCOSESS_LoginUsuario==$ResultadoColumnas[\"login_admintablero\"])\n $ComplementoHerramientasEliminacion='<div class=\"pull-right\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onclick=\\'return confirm(\" '.$MULTILANG_Atencion.' '.$MULTILANG_Atencion.' '.$MULTILANG_Atencion.' \\\\n---------------------------------------------\\\\n '.$MULTILANG_Eliminar.' '.$MULTILANG_TablerosKanban.'\\\\n\\\\n\\\\n'.$MULTILANG_Confirma.'\");\\' href=\\''.$ArchivoCORE.'?PCO_Accion=EliminarTableroKanban&ID_TableroKanban='.$ID_TableroKanban.'\\' class=\"btn btn-danger btn-xs\" data-toggle=\"tooltip\" data-html=\"true\" data-placement=\"top\" title=\"'.$MULTILANG_ZonaPeligro.'!!!<br><b>'.$MULTILANG_Eliminar.' '.$MULTILANG_TablerosKanban.'</b>\"><i class=\"fa fa-trash\"></i></a></div>';\n\n //Cuenta el numero de tareas en el tablero\n $CantidadTareasTotal=PCO_EjecutarSQL(\"SELECT COUNT(*) as conteo FROM {$TablasCore}kanban WHERE tablero='$ID_TableroKanban' AND categoria<>'[PRACTICO][ColumnasTablero]' \")->fetchColumn();\n $CantidadTareasArchivadas=PCO_EjecutarSQL(\"SELECT COUNT(*) as conteo FROM {$TablasCore}kanban WHERE archivado=1 AND tablero='$ID_TableroKanban' \")->fetchColumn();\n $PorcentajeTotalAvance=0;\n if ($CantidadTareasTotal!=0)\n $PorcentajeTotalAvance=round($CantidadTareasArchivadas*100/$CantidadTareasTotal);\n\n $ComplementoHerramientasArchivadas=\"\";\n if ($ID_TableroKanban!=\"\")\n $ComplementoHerramientasArchivadas=\"<div class='pull-left'>\n <a class='btn btn-default btn-xs' href='\".$ArchivoCORE.\"?PCO_Accion=VerTareasArchivadas&ID_TableroKanban=$ID_TableroKanban'>\n <i class='fa fa-archive fa-fw fa-1x'></i> $MULTILANG_TareasArchivadas <b>($CantidadTareasArchivadas $MULTILANG_InfDataTableRegTotal)</b>\n </a>\n </div>\";\n\n $ComplementoHerramientasPersonalizacion=\"\";\n if ($ID_TableroKanban!=\"\" && $PCOSESS_LoginUsuario==$ResultadoColumnas[\"login_admintablero\"])\n $ComplementoHerramientasPersonalizacion=\"<div class='pull-right'><div class='btn btn-inverse btn-xs' onclick='$(\\\"#myModalPersonalizarKanban$ID_TableroKanban\\\").modal(\\\"show\\\");'><i class='fa fa-cogs fa-fw fa-1x'></i> $MULTILANG_Configuracion</div></div>\";\n\n echo \"\n <!-- Barra de herramientas del tablero -->\n <div class='well well-sm'>\n <div class='row'>\n <div align=center style='font-size:18px;' class='col col-md-12 col-sm-12 col-lg-12 col-xs-12'>\n <i class='fa fa-sticky-note text-orange' style='color:orange'></i> Kanban <b>\".$ResultadoColumnas[\"titulo\"].\" </b><i>(ID: $ID_TableroKanban $MULTILANG_Tareas: $CantidadTareasTotal)</i>\n </div>\n </div>\n <div class='row'>\n <div class='col col-md-5 col-sm-5 col-lg-5 col-xs-5'>\n <div class='pull-left btn-xs'> <a class='btn btn-primary btn-xs' onclick='document.recarga_tablero_kanban.CadenaTablerosAVisualizar.value=$ID_TableroKanban; document.recarga_tablero_kanban.submit();'><i class='fa fa-refresh'></i> $MULTILANG_Actualizar</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>\n $ComplementoHerramientasArchivadas\n </div>\n <div class='col col-md-2 col-sm-2 col-lg-2 col-xs-2'>\n <div class='progress'>\n <div class='progress-bar progress-bar-info progress-bar-striped active' role='progressbar' aria-valuenow='{$PorcentajeTotalAvance}' aria-valuemin='0' aria-valuemax='100' style='width: 100%'>\n <b>{$PorcentajeTotalAvance}%</b> {$MULTILANG_Finalizado}\n </div>\n </div>\n </div>\n <div class='col col-md-5 col-sm-5 col-lg-5 col-xs-5'>\n $ComplementoHerramientasEliminacion\n <div class='pull-right'></div>\n $ComplementoHerramientasPersonalizacion\n </div>\n </div>\n </div>\";\n\n //Estadisticas basicas del tablero \n echo \"\n <table width='100%' border=0 cellspacing=15 cellpadding=15>\n <tr>\n <td valign=top align=center>\n <b><i class='fa fa-tags fa-fw fa-2x'></i>Actividades por categor&iacute;a / Activities by cathegory</b><br>\";\n PCO_CargarInforme(0,0,\"\",\"\",1,0,0,0,\"SELECT categoria as '{$MULTILANG_ListaCategorias}', COUNT(*) as '{$MULTILANG_Tareas}' FROM {$TablasCore}kanban WHERE tablero='$ID_TableroKanban' AND categoria<>'[PRACTICO][ColumnasTablero]' GROUP BY categoria ORDER BY categoria \");\n echo \" </td>\n <td>&nbsp;&nbsp;</td>\n <td valign=top align=center>\n <b><i class='fa fa-user fa-fw fa-2x'></i>Tareas por usuario / Tasks by user</b><br>\";\n PCO_CargarInforme(0,0,\"\",\"\",1,0,0,0,\"SELECT asignado_a as '{$MULTILANG_AsignadoA}', COUNT(*) as '{$MULTILANG_Tareas}' FROM {$TablasCore}kanban WHERE tablero='$ID_TableroKanban' AND categoria<>'[PRACTICO][ColumnasTablero]' GROUP BY asignado_a ORDER BY asignado_a \");\n echo \" </td>\n </tr>\n </table>\";\n\n echo \"<!-- Tareas definidas en el tablero -->\n <div class='panel panel-default well'>\n <table border=1 width='100%' class='table table-responsive table-condensed btn-xs' style='border: 1px solid lightgray;'><tr>\";\n\n //Recorre las columnas del tablero\n $ConteoColumna=1;\n $ColumnasDisponibles=count($ArregloColumnasTablero);\n $AnchoColumnas=round(100/$ColumnasDisponibles);\n foreach ($ArregloColumnasTablero as $NombreColumna) {\n //Cuenta el numero de tareas en esta columna VS la cantidad de tareas activas en el tablero para obtener el porcentaje de representacion en el tablero\n $CantidadTareasColumna=PCO_EjecutarSQL(\"SELECT COUNT(*) as conteo FROM {$TablasCore}kanban WHERE columna=$ConteoColumna AND archivado=0 AND tablero='$ID_TableroKanban' \")->fetchColumn();\n $PorcentajeTotalAvanceColumna=0;\n if ($CantidadTareasTotal-$CantidadTareasArchivadas!=0)\n $PorcentajeTotalAvanceColumna=round($CantidadTareasColumna*100/($CantidadTareasTotal-$CantidadTareasArchivadas));\n \n\n echo \"<td valign=top width='$AnchoColumnas%' ondrop='Soltar(event,$ConteoColumna)' ondragover='PermitirSoltar(event,$ConteoColumna)' id='MarcoBotonOcultar\".$ConteoColumna.\"'>\";\n echo \"<div data-toggle='tooltip' data-html='true' data-placement='top' title='\".$MULTILANG_ArrastrarTarea.\"' class='btn pull-left' ><i class='fa-1x'><i class='fa fa-stack-overflow'></i> <b>\".$NombreColumna.\"</b> <font color=red>{$PorcentajeTotalAvanceColumna}%</font></i></div>\";\n //echo \"<div data-toggle='tooltip' data-html='true' data-placement='top' title='<b>\".$MULTILANG_AgregarNuevaTarea.\":</b> \".$NombreColumna.\"' class='btn text-primary btn-xs pull-right' onclick='$(\\\"#myModalActividadKanban$ID_TableroKanban\\\").modal(\\\"show\\\"); document.datosfield$ID_TableroKanban.columna.value=$ConteoColumna;'><i class='fa fa-plus fa-fw fa-2x'></i></div>\";\n echo \"<div data-toggle='tooltip' data-html='true' data-placement='top' title='<b>\".$MULTILANG_AgregarNuevaTarea.\":</b> \".$NombreColumna.\"' class='btn text-primary btn-xs pull-right' onclick='PCO_CargarPopUP($ID_TableroKanban,$ConteoColumna,0);'><i class='fa fa-plus fa-fw fa-2x'></i></div>\";\n echo \"<br>\";\n \n echo \"<div id='MarcoTareasColumna$ConteoColumna'>\n <br><br><div id='ColumnaKanbanMarcoArrastre\".$ConteoColumna.\"'></div>\";\n //Busca las tarjetas de la columna siempre y cuando no esten ya archivadas\n $ResultadoTareas=PCO_EjecutarSQL(\"SELECT * FROM \".$TablasCore.\"kanban WHERE archivado<>1 AND columna=$ConteoColumna AND tablero='$ID_TableroKanban' ORDER BY peso ASC \");\n while ($RegistroTareas=$ResultadoTareas->fetch())\n echo PCO_PresentarTareaKanban($RegistroTareas,$ColumnasDisponibles,$ID_TableroKanban,$ResultadoColumnas);\n echo \"</div></td>\";\n $ConteoColumna++;\n }\n\n echo \" <tr></table>\";\n echo \"</div>\";\n\n\t\t}", "protected function _screen() {}", "function mostrar($bd);", "public function layoutDash($page) {\n\t\n\t\tunset($_SESSION ['editDTLinhas']);\n unset($_SESSION ['editDTColunas']);\n unset($_SESSION ['offersPhoto']);\n unset($_SESSION ['extraInfosss']);\n\t\t\n\t\t$pageName = \"dashboard\";\n\t\t if (empty($_SESSION ['CompanyLoggedIn'])) {\n $this->redirect(array(\n 'controller' => 'companies',\n 'action' => 'layoutPopUp',\n 'plugin' => 'companies'\n ));\n }\n\t\t\n\t\t//capturando aniversáriantes\n $minhaData = date('m-d');\n $bithSql = \"select * from users where birthday LIKE '%$minhaData';\";\n $birthParams = array('User' => array('query' => $bithSql));\n $birthdays = $this->Utility->urlRequestToGetData('users', 'query', $birthParams);\n\t\t\n\t\t //envia email de aniversario para usuario selecionado\n if ($page == 'sendBirthdayEmail') {\n\t\t\n $userEmail = $this->request->data['userEmail'];\n\t\t\t$userId = $this->request->data['userId'];\n\n $param['userEmail'] = $userEmail;\n\t\t\t$param['user_id'] = $userId;\n\t\t\t$param['email_type'] = 'birthday';\n\t\t\t$param['api'] = 'users';\n\t\t\t\n $return = $this->Utility->postEmail('users', 'birthday', $param);\n }\n\t\t\n\t\t// valida se empresa já possui um usuário no moip \n //valida comp moip\n\t\t/*\n if ($this->Session->read('CompanyLoggedIn.Company.login_moip') == '') {\n\n $type = \"first\";s\n $comp = $_SESSION ['CompanyLoggedIn'];\n $teste = $this->x_cadMoipXml($comp, $type);\n $url = 'https://www.moip.com.br/cadastro/trueone/' . $teste ['RespostaPreCadastramento'] ['idRedirecionamento'];\n\n $_SESSION ['url_moip'] = ($url);\n $this->redirect(array(\n 'controller' => 'companies',\n 'action' => 'layoutDash',\n 'plugin' => 'companies'\n ));\n }*/\n\t\n /*\n * verifica se é a requisição feita via ajax\n * para a mudança de status da compra\n * \n */\n if ($this->request->is('ajax')) {\n $checkId = $this->request->data['checkId'];\n\n //mudança de status para 4 - valida o envio do produto para usuario\n //usuario receberá o status 'CONCLUIDO' em sua lista\n $query = \"UPDATE checkouts set payment_state_id = 4 WHERE id = {$checkId};\";\n\n $params = array('User' => array('query' => $query));\n $checkout = $this->Utility->urlRequestToGetData('users', 'query', $params);\n }\n\n $this->Session->write('addOffer.Offer', '');\n $params = array(\n 'Offer' => array(\n 'id' => 178,\n 'status' => 'INACTIVE'\n )\n );\n\n $testeUpdate = $this->Utility->urlRequestToSaveData('offers', $params);\n\n $company = $_SESSION ['CompanyLoggedIn'];\n // $id = $this->Session->read ( 'CompanyLoggedIn.0.Company.id' );\n // compras finalizadas\n $params = array(\n 'Checkout' => array(\n 'conditions' => array(\n //'Checkout.company_id' => 116,\n 'Checkout.company_id' => $company ['Company'] ['id'],\n 'Checkout.total_value > ' => '0',\n 'Checkout.payment_state_id' => 4\n ),\n 'order' => array(\n 'Checkout.id' => 'DESC'\n )\n ),\n 'PaymentState',\n 'Offer',\n 'User',\n 'OffersUser'\n );\n $checkouts = $this->Utility->urlRequestToGetData('payments', 'all', $params);\n\n // compras pendentes\n $params = array(\n 'Checkout' => array(\n 'conditions' => array(\n //'Checkout.company_id' => 116,\n 'Checkout.company_id' => $company['Company'] ['id'],\n 'Checkout.total_value > ' => '0',\n 'Checkout.payment_state_id <> ' => 4,\n 'NOT' => array(\n 'Checkout.payment_state_id' => array(\n '999'\n )\n )\n ),\n 'order' => array(\n 'Checkout.id' => 'DESC'\n )\n ),\n 'PaymentState',\n 'Offer',\n 'User',\n 'OffersUser'\n );\n $pedidos = $this->Utility->urlRequestToGetData('payments', 'all', $params);\n\n // ultimas assinaturas\n $params = array(\n 'CompaniesUser' => array(\n 'conditions' => array(\n //'CompaniesUser.company_id' =>116,\n 'CompaniesUser.company_id' => $company['Company'] ['id'],\n 'CompaniesUser.status' => 'ACTIVE',\n 'User.status' => 'ACTIVE'\n ),\n 'order' => array(\n 'CompaniesUser.id' => 'DESC'\n )\n ),\n 'User'\n );\n $assinaturasFor = $this->Utility->urlRequestToGetData('companies', 'all', $params);\n if (is_array($assinaturasFor)) {\n foreach ($assinaturasFor as $assinatura) {\n $assinatura ['User'] ['idade'] = $this->Utility->calcIdade(date('d/m/Y', strtotime($assinatura ['User'] ['birthday'])));\n $assinaturas [] = $assinatura;\n }\n } else {\n $assinaturas = '';\n }\n\n // ultimas ofertas cadastradas\n $params = array(\n 'Offer' => array(\n 'conditions' => array(\n 'Offer.company_id' => $company['Company'] ['id'],\n 'status <>' => 'DELETE'\n ),\n 'order' => array(\n 'Offer.id' => 'DESC'\n )\n )\n );\n $ofertas = $this->Utility->urlRequestToGetData('offers', 'all', $params);\n\n\n // lista das entregas que precisam ser feitas hoje, amanha, etc\n $paramsDelivery = array(\n 'Checkout' => array(\n 'conditions' => array(\n 'Checkout.company_id' => $company['Company'] ['id'],\n 'Checkout.payment_state_id' => 1\n )\n ),\n 'User',\n 'Offer'\n );\n $deliveriesToDo = $this->Utility->urlRequestToGetData('payments', 'all', $paramsDelivery);\n\n // entregas para hoje e/ou amanha\n $deliveriesToday = array();\n foreach ($deliveriesToDo as $delivery) {\n $dataDaEntrega = date('d/m/y', strtotime(\"+1 days\", strtotime($delivery['Checkout']['date'])));\n $dataHoje = date('d/m/y');\n $dataAmanha = date('d/m/y', strtotime(\"+1\"));\n\n // hoje\n if ($dataDaEntrega == $dataHoje) {\n $deliveriesToday['Today'] = $delivery;\n } else\n //amanha\n if ($dataDaEntrega == $dataAmanha) {\n $deliveriesToday['Tomorrow'] = $delivery;\n }\n }\n\n //Capturando dados da preferencia da empresa - caso exista\n $sqlAparencia = \"select * from companies_preferences where companies_id = {$this->Session->read('CompanyLoggedIn.Company.id')};\";\n $paramsSel = array(\n 'User' => array(\n 'query' => $sqlAparencia\n )\n );\n $aparencia = $this->Utility->urlRequestToGetData('users', 'query', $paramsSel);\n $this->Session->write(\"compPreferences\", $aparencia[0]['companies_preferences']);\n\n //Capturando dados de social network da empresa - caso exista\n $sqlSocial = \"select * from companies_social_networks where company_id = {$this->Session->read('CompanyLoggedIn.Company.id')};\";\n $paramsSocial = array(\n 'User' => array(\n 'query' => $sqlSocial\n )\n );\n $social = $this->Utility->urlRequestToGetData('users', 'query', $paramsSocial);\n $this->Session->write(\"compSocial\", $social[0]);\n\n /*\n * Valida lista,\n * se não estiver vazia salva váriavel e mostra popup\n */\n if (!empty($deliveriesToday)) {\n $this->Session->write('Deliveries.today', true);\n } else {\n $this->Session->write('Deliveries.today', false);\n }\n\n $url_moip = $_SESSION ['url_moip'];\n\n $this->set(compact('usuarios'));\n $this->set(compact('company', 'pageName'));\n $this->set(compact('url_moip', 'birthdays'));\n $this->set(compact('checkouts', 'assinaturas', 'ofertas', 'pedidos', 'deliveriesToDo', 'deliveriesToday'));\n $this->layout = 'x_dash';\n $this->render('x_dash_home');\n }", "function prn_wejscie() {\n global $Cuzytkownik,$db, $_GLOBAL, $L;\n \n $DD[] = \"IT_AKTYWACJA\";\n \n $query = \"select * from \" . dn('kontrahent') . \" where ko_id=\" . $Cuzytkownik->get_id() . \";\";\n $res = $db->query($query);\n $dane= $db->fetch($res);\n $A['{PANELTITLE}'] = $dane['ko_nazwa'];\n \n // <div class=\"panelmenu\"><a href=\"' . $_GLOBAL['page_url'] . $_GLOBAL['lang'] . '/uzytkownik/dlaciebie/\"><div>' . $L['{T_SPECJALNIE_DLA_CIEBIE}'] . '</div></a></div>\n $A['{PANELMENU}'] = '<div class=\"steps\">\n <div class=\"panelmenu\"><a href=\"' . $_GLOBAL['page_url'] . $_GLOBAL['lang'] . '/uzytkownik/rabat/\"><div>' . $L['{T_TWOJ_RABAT}'] . '</div></a></div>\n <div class=\"panelmenu\"><a href=\"' . $_GLOBAL['page_url'] . $_GLOBAL['lang'] . '/uzytkownik/obserwowane/\"><div>' . $L['{T_OBSERWOWANE}'] . '</div></a></div>\n <div class=\"panelmenu\"><a href=\"' . $_GLOBAL['page_url'] . $_GLOBAL['lang'] . '/uzytkownik/dane/\"><div>' . $L['{T_MOJE_DANE}'] . '</div></a></div>\n <div class=\"panelmenu\"><a href=\"' . $_GLOBAL['page_url'] . $_GLOBAL['lang'] . '/zamowienie/\"><div>' . $L['{T_HISTORIA_ZAMOWIEN}'] . '</div></a></div>\n <div class=\"panelmenu\"><a href=\"' . $_GLOBAL['page_url'] . $_GLOBAL['lang'] . '/koszyk/\"><div>' . $L['{T_PRZEJDZ_DO_KOSZYKA}'] . '</div></a></div>\n </div>';\n\n $query = \"select * from \" . dn('cms') . \" where st_id=72;\";\n $res = $db->query($query);\n $dane= $db->fetch($res);\n \n if ($_GLOBAL['langid'] == 2) {\n $A['{PANELCONTENTSTART}'] = str_replace('\\\"','\"',$dane['st_tresc_en']);\n } else {\n $A['{PANELCONTENTSTART}'] = str_replace('\\\"','\"',$dane['st_tresc']); \n }\n \n return get_template(\"user_enter\",$A,$DD);\n }", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function navigationiniAction()\n {\n }", "public function mostrarMenu( ) {\n $this->setMenuOn(true);\n $this->enviarMenu();\n\n }", "function AfficherEDT($tab_data, $entetes, $creneaux, $type_edt, $login_edt, $period) \r\n{\r\n\tglobal $icone_deposer_alerte;\r\n\t$peut_poster_message=peut_poster_message($_SESSION['statut']);\r\n echo (\"<div class=\\\"fenetre\\\">\\n\");\r\n\r\n echo(\"<div class=\\\"contenu\\\">\r\n\r\n\t\t<div class=\\\"coingh\\\"></div>\r\n <div class=\\\"coindh\\\"></div>\r\n <div class=\\\"partiecentralehaut\\\"></div>\r\n <div class=\\\"droite\\\"></div>\r\n <div class=\\\"gauche\\\"></div>\r\n\t\t<div class=\\\"coingb\\\"></div>\r\n\t\t<div class=\\\"coindb\\\"></div>\r\n\t\t<div class=\\\"partiecentralebas\\\"></div>\r\n\r\n <div class=\\\"tableau\\\">\\n\");\r\n\r\n\r\n// ===== affichage des colonnes\r\n// ===== Les \"display:none\" sont utilisés pour l'accessibilité\r\n $jour = 0;\r\n $isIconeAddUsable = true;\r\n while (isset($entetes['entete'][$jour])) {\r\n\r\n echo(\"<div class=\\\"colonne\".$creneaux['nb_creneaux'].\"\\\">\\n\");\r\n $jour_sem = $entetes['entete'][$jour];\r\n echo(\"<h2 class=\\\"entete\\\"><div class=\\\"cadre\\\"><strong>\".$jour_sem.\"</strong></div></h2>\\n\");\r\n $index_box = 0;\r\n while (isset($tab_data[$jour]['type'][$index_box]))\r\n {\r\n if ($tab_data[$jour]['type'][$index_box] == \"vide\") {\r\n \r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\");\r\n echo(\"<div style=\\\"display:none;\\\">\".$tab_data[$jour]['affiche_creneau'][$index_box].\" - durée = \".$tab_data[$jour]['duree_valeur'][$index_box].\" heure(s)</div>\\n\");\r\n echo (\"<div class=\\\"\".$tab_data[$jour]['couleur'][$index_box].\"\\\">\\n\");\r\n echo (\"<div class=\\\"ButtonBar\\\">\");\r\n AfficheIconePlusNew($type_edt,$tab_data[$jour]['heuredeb_dec'][$index_box],$login_edt,$jour_sem,$tab_data[$jour]['id_creneau'][$index_box], $period);\r\n echo (\"</div>\\n\");\r\n echo (\"</div></div>\\n\"); \r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"erreur\")\r\n {\r\n \r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\");\r\n echo(\"<div style=\\\"display:none;\\\">\".$tab_data[$jour]['affiche_creneau'][$index_box].\" - durée = \".$tab_data[$jour]['duree_valeur'][$index_box].\" heure(s)</div>\\n\");\r\n echo(\"<div class=\\\"cadreRouge\\\">\\n\");\r\n echo $tab_data[$jour]['contenu'][$index_box];\r\n echo (\"<div class=\\\"ButtonBar\\\">\");\r\n echo (\"</div>\\n\");\r\n echo (\"</div></div>\\n\"); \r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"conteneur\")\r\n {\r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\\n\");\r\n $isIconeAddUsable = false;\r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"cours\")\r\n {\r\n echo(\"<div class=\\\"\".$tab_data[$jour]['duree'][$index_box].\"\\\">\");\r\n echo(\"<div style=\\\"display:none;\\\">\".$tab_data[$jour]['affiche_creneau'][$index_box].\" - durée = \".$tab_data[$jour]['duree_valeur'][$index_box].\" heure(s)</div>\\n\");\r\n echo (\"<div class=\\\"\".$tab_data[$jour]['couleur'][$index_box].\"\\\">\");\r\n echo $tab_data[$jour]['contenu'][$index_box];\r\n echo (\"<div class=\\\"ButtonBar\\\">\");\r\n AfficheEffacerIcone($type_edt,$login_edt,$tab_data[$jour]['id_cours'][$index_box], $period);\r\n AfficheModifierIcone($type_edt,$login_edt,$tab_data[$jour]['id_cours'][$index_box], $period);\r\n if ($isIconeAddUsable)\r\n {\r\n AfficheIconePlusAdd($type_edt,0,$login_edt,$jour_sem,$tab_data[$jour]['id_creneau'][$index_box], $period);\r\n }\r\n\r\n\t\t\t\tif($peut_poster_message) {\r\n\t\t\t\t\tif((isset($_GET['appel_depuis_form_message']))&&($_GET['appel_depuis_form_message']==\"y\")) {\r\n\t\t\t\t\t\t$tmp_jour_suivant=get_next_tel_jour($jour+1);\r\n\t\t\t\t\t\tif(($tmp_jour_suivant!=\"\")&&(is_numeric($tmp_jour_suivant))) {\r\n\t\t\t\t\t\t\t$tmp_chaine_date=strftime(\"%d/%m/%Y\", time()+24*3600*$tmp_jour_suivant);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t$tmp_chaine_date=strftime(\"%d/%m/%Y\");\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$chaine_heure_visibilite=\"\";\r\n\t\t\t\t\t\tif((isset($tab_data[$jour]['heuredebut'][$index_box]))&&($tab_data[$jour]['heuredebut'][$index_box]!='')) {\r\n\t\t\t\t\t\t\t$chaine_heure_visibilite=\"document.getElementById('heure_visibilite').value='\".$tab_data[$jour]['heuredebut'][$index_box].\"';\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\techo \"<div style='float:right;width:10px'><a href='#' onclick=\\\"document.getElementById('date_visibilite').value='$tmp_chaine_date';\".$chaine_heure_visibilite.\"return false;\\\" target='_blank' title=\\\"Fixer la date et l'heure du message\\ndans le module Alertes/Informations de Gepi\\\"><img src='../images/icons/sound.png' width='10' height='10' /></a></div>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telseif(isset($tab_data[$jour]['login_prof'][$index_box])) {\r\n\t\t\t\t\t\t// Récupérer le jour suivant\r\n\t\t\t\t\t\techo \"<div style='float:right;width:10px'><a href='../mod_alerte/form_message.php?message_envoye=y&amp;login_dest=\".$tab_data[$jour]['login_prof'][$index_box];\r\n\t\t\t\t\t\t$tmp_jour_suivant=get_next_tel_jour($jour+1);\r\n\t\t\t\t\t\tif(($tmp_jour_suivant!=\"\")&&(is_numeric($tmp_jour_suivant))) {\r\n\t\t\t\t\t\t\techo \"&date_visibilite=\".strftime(\"%d/%m/%Y\", time()+24*3600*$tmp_jour_suivant);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\techo \"&date_visibilite=\".strftime(\"%d/%m/%Y\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif((isset($tab_data[$jour]['heuredebut'][$index_box]))&&($tab_data[$jour]['heuredebut'][$index_box]!='')) {\r\n\t\t\t\t\t\t\techo \"&amp;heure_visibilite=\".$tab_data[$jour]['heuredebut'][$index_box];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\techo add_token_in_url().\"' target='_blank' title=\\\"Déposer pour ce professeur un message\\ndans le module Alertes/Informations de Gepi\\\"><img src='../images/icons/$icone_deposer_alerte' width='10' height='10' /></a></div>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n echo (\"</div>\\n\");\r\n echo (\"</div></div>\\n\"); \r\n \r\n }\r\n else if ($tab_data[$jour]['type'][$index_box] == \"fin_conteneur\")\r\n {\r\n echo(\"</div>\\n\");\r\n $isIconeAddUsable = true;\r\n }\r\n else \r\n {\r\n // ========= type de box non implémentée\r\n \r\n }\r\n\r\n $index_box++;\r\n }\r\n\r\n echo(\"</div>\\n\");\r\n\t\t/*\r\n\t\techo \"<hr /><pre>\";\r\n\t\tprint_r($tab_data[$jour]);\r\n\t\techo \"<pre>\";\r\n\t\t*/\r\n $jour++;\r\n }\r\n\r\n// ===== affichage de la colonne créneaux\r\n\r\n echo (\"<div class=\\\"creneaux\".$creneaux['nb_creneaux'].\"\\\">\\n\");\r\n echo (\"<div class=\\\"entete_creneaux\\\"></div>\\n\");\r\n for ($i = 0; $i < $creneaux['nb_creneaux']; $i++)\r\n {\r\n/*\r\n if(in_array($creneaux['creneaux'][$i], array('R0', 'R1', 'R2'))) {\r\n echo(\"<div class=\\\"demihoraires\\\"><div class=\\\"cadre\\\"><strong>\".$creneaux['creneaux'][$i].\"</strong></div></div>\\n\");\r\n }\r\n else {\r\n*/\r\n echo(\"<div class=\\\"horaires\\\"><div class=\\\"cadre\\\"><strong>\".$creneaux['creneaux'][$i].\"</strong></div></div>\\n\");\r\n// }\r\n }\r\n\r\n echo(\"</div></div><div class=\\\"spacer\\\"></div></div></div>\");\r\n\r\n/*\r\n//20141007\r\necho \"Tableau des créneaux<pre>\";\r\nprint_r($creneaux);\r\necho \"</pre>\";\r\n*/\r\n}", "public function modMenu() {}", "public function modMenu() {}", "public function modMenu() {}", "public function listar_asignacion_controlador(/*$privilegio,$codigo*/){\n\t\n\t$tabla=\"\";\n\n\t//Consulta para la busqueda de asignación de hardware \n\t//Para la búsqueda se utilizo una tabla dinamica de la plantilla de Gentellas Master\n\t$consulta=\"SELECT *,T1.hiserie FROM hardware_ingreso as T1, estado_info_hardware as T2, estado_asignacion_hardware as T3, tipo_hardware as T4, marca_hardware as T5, modelo_hardware as T6, color_hardware as T7, informe_ingreso_hardware as T8 WHERE T1.estadoinfoharcodigo=T2.estadoinfoharcodigo AND T2.estadoinfoharnombre='APROBADO' AND T1.estadoasigharcodigo=T3.estadoasigharcodigo AND T3.estadoasigharnombre='NO ASIGNADO' AND T1.tipohardwarecodigo=T4.tipohardwarecodigo AND T1.marcahardwarecodigo=T5.marcahardwarecodigo AND T1.modelohardwarecodigo=T6.modelohardwarecodigo AND T1.colorhardwarecodigo=T7.colorhardwarecodigo AND T1.icodigo=T8.icodigo\n\t\";\n\n\t$conexion = mainModel::conectar();\n\t$datos = $conexion->query($consulta);\n\t$datos= $datos->fetchAll();\n\n\t\n\t\t\t//InicioTabla_______________________________________________________________\n\t$tabla.='\n\t\n\t<thead>\n\t<tr>\n\t<th>#</th>\n\t<th>COD. DE INVENTARIO</th>\n\t<th>SERIE DEL HARDWARE</th>\n\t<th>TIPO DE HARDWARE</th>\n\t<th>MARCA DE HARDWARE</th>\n\t<th>MODELO DE HARDWARE</th>\n\t<th>COLOR DE HARDWARE</th>\n\t<th>FECHA DE INGRESO</th>\n\t\n\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t$tabla.='\n\t<th>ACCIONES</th>\n\t\n\t';\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\n\t\t\t\t\t\t//}\n\t$tabla.='</tr>\n\t</thead>\n\t<tbody>';\n\t\n\t$contador=0;\n\tforeach ($datos as $rows) {\n\t\t$contador=$contador+1;\n\t\t$a=$rows['hiserie'];\n\t\t$tabla.='\n\t\t<tr>\n\t\t<td>'.$contador.'</td>\n\t\t<td>'.$a.'</td>\n\t\t<td>'.$rows['serireexterno'].'</td>\n\t\t<td>'.$rows['tipohardwarenombre'].'</td>\n\t\t<td>'.$rows['marcahardwarenombre'].'</td>\n\t\t<td>'.$rows['modelohardwarenombre'].'</td>\n\t\t<td>'.$rows['colorhardwarenombre'].'</td>\n\t\t<td>'.$rows['hifecha'].'</td>\n\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t$tabla.='\n\t\t<td>\n\t\t<form method=\"POST\" action=\"'.SERVERURL.'asignacioninfo/\">\n\t\t<input type=\"hidden\" value=\"'.($a).'\" name=\"codigo\">\n\t\t<button type=\"submit\" class=\"btn btn-primary\"><i class=\"fa fa-folder-open-o\"></i> Ingresar</button>\n\t\t</form> \n\t\t</td>\n\n\t\t\n\t\t';\n\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\t\t/*$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<form action=\"'.SERVERURL.'ajax/administradorAjax.php\" method=\"POST\" class=\"FormularioAjax\" data-form=\"delete\" entype=\"multipart/form-data\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"codigo-del\" value=\"'.mainModel::encryption($rows['CuentaCodigo']).'\"></input>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"privilegio-admin\" value=\"'.mainModel::encryption($privilegio).'\"></input>\n\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-danger btn-raised btn-xs\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-delete\"></i>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<div class=\"RespuestaAjax\"></div>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t';*/\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t//$contador++;\n\t\t\t\t//}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t';\n\t\t\t//Fin Tabla__________________________________________________________________\n\t\t\t\t\t\treturn $tabla;\n\t\t\t\t\t}", "function mostrar_historial(){\n\t\tif (isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$sql=\"SELECT * FROM historial WHERE id_his='$id'\";\n\t\t\t$consulta=mysql_query($sql);\n\t\t\t$resultado = mysql_fetch_array($consulta);\n\t\t\t$this->tabla = $resultado['tabla_his'];\n\t\t\t$this->pertenece = $resultado['pertenece_his'];\n\t\t\t$this->asunto = $resultado['asunto_his'];\n\t\t\t$this->descripcion = $resultado['descripcion_his'];\n\t\t\t$this->fecha = $resultado['fecha_his'];\n\t\t\t$this->hora = $resultado['hora_his'];\n\t\t\t$this->fechamod= $resultado['fechamod_his'];\n\t\t\t\n\t\t} \n\t}", "function DefineMenu($tipoFormulario = \"S\")\n{\n global $StepId, $Fechar, $Voltar, $Action, $Menu, $Queue, $CustonMenu, $CustonGate, $CustonNewInstance, $CustonRoot, $Custon, $CaseNum, $Retornar, $userdef, $LockedById;\n if ($Fechar == 1) {\n $Menu = 35;\n return;\n }\n\n $Menu = 2;\n $ImagemTopo = \"caseedit0001.png\";\n if (($Action == \"Edit\") && empty($LockedById)) {\n if (empty($userdef->UserId)) {\n $Menu = 19;\n $ImagemTopo = \"caseedit0001.png\";\n } else {\n $Menu = 3;\n $ImagemTopo = \"caseedit0001_pb.png\";\n }\n }\n if ($Action == \"Pesq\") {\n if (empty($UserId)) {\n $Menu = 43;\n } else {\n $Menu = 43;\n }\n }\n if ($Custon == 1) {\n if ($Action == \"Edit\") {\n if (empty($CaseNum)) {\n $Menu = $CustonMenu[3];\n $Queue = $CustonRoot . $CustonGate;\n $Retornar = $CustonRoot . $CustonNewInstance;\n } else {\n $Menu = $CustonMenu[1];\n $Queue = \"flow0001-2.php\";\n $Retornar = $Queue;\n }\n } else {\n $Menu = $CustonMenu[2];\n }\n }\n}", "public function execute() {\n\t\t$userLogin = null;\n\t\t$userIsAuth = false;\n\t\t$userLogin = $this->_session->userLogin;\n\t\t$userIsAuth = $this->_session->userIsAuth;\n\t\tif(empty($userLogin) || ($userIsAuth == false)) {\n\t\t\tthrow new ControllerException('Brak dostepu');\n\t\t}\t\t\t\n\t\t\n\t\t$baseUrl = $this->_request->getBaseUrl();\n\t\t$menuId = (int)$this->_request->get('id');\t\t\n\t\tif(($menuId == '') || ($menuId == null)) {\n\t\t\tthrow new ControllerException('Brak identyfikatora menu');\n\t\t}\n\n\t\t//pobieranie danych z modelu\n\t\t$menuFieldsNames = $this->_menuMapper->getFieldsNames();\n\t\t$menuRelationsNames = $this->_menuMapper->getRelationsNames();\t\n\t\t$entryFieldsNames = $this->_entryMapper->getFieldsNames();\n\t\t\n\t\t//pobieranie danych z modelu, przygotowanie tablicy z danymi menu\n\t\t$menusCollection = $this->_menuMapper->getById($menuId);\n\t\tif(count($menusCollection) != 1) {\n\t\t\tthrow new ControllerException('Menu nie istnieje w bazie danych');\n\t\t}\n\t\t$menuObject = $menusCollection[0];\n\t\t$menuToView = $menuObject->toArray($menuFieldsNames);\n\t\t$entriesCollection = $menuObject->entries->getCollection();\n\t\t$entriesToView = array();\n\t\tforeach($entriesCollection AS $entryObject) {\n\t\t\t$entry = array();\n\t\t\t$entry = $entryObject->toArray($entryFieldsNames);\n\t\t\t$entriesToView[] = $entry; \n\t\t}\n\t\t$menuToView['entries'] = $entriesToView;\n\t\t\t\t\n\t\t//przygotowanie dodatkowych danych dla widoku\n\t\t$links = array('edit'=>array($this->_i18n->translate('edit'), $baseUrl.'/admin/menu/editForm/id/'), 'delete'=>array($this->_i18n->translate('delete'), $baseUrl.'/admin/menu/delete/id/'));\n\t\t$menuTableHeadersNames = array_map(array($this->_i18n, 'translate'), $menuFieldsNames);\n\t\t\n\t\t//dolaczenie danych do widoku\n\t\t$this->_view->assign('menu', $menuToView);\n\t\t$this->_view->assign('links', $links);\n\t\t$this->_view->assign('menuTableHeadersNames', $menuTableHeadersNames);\n\t\t$this->_view->assign('entriesString', $this->_i18n->translate($menuRelationsNames['entries']));\t\t\n\t\t$this->_view->assign('menuViewTitle', $this->_i18n->translate('Menu view'));\n\t\t$this->_view->assign('noEntryMessage', $this->_i18n->translate('Menu has no entry'));\n\t\t\n\t}", "public function accueilAction () {\n\t\t$session = $_SESSION['ident'];\n\t\t$app_title=\"Connexion \" ;\n\t\t$app_body=\"Body_Connecte\" ;\n\t\t$app_desc=\"Comeca\" ;\n\t\t// si l admin est connecté\n\t\t$auth = $this->authModule->estConnecte();\n\n\t\trequire_once('Model/SqlModel.php');\n\t\t$AttenteModel = new SqlModel();\n\t\t\t\t \n\t\t$ListeAttente = $AttenteModel->AfficheEnAttente();\n\n\t\trequire('View/Connecte/accueil.php') ;\n\t}", "public function getMenu(){\n\t\t$maConfig= new Config();\n\t\t$data['style']=$maConfig->getCouleur();\n\t\t\n\t\t$monControle= new ControlleurAccess();\n\t\tif(isset($_SESSION['nom'])){\n\t\t\tif($monControle->estConnu($_SESSION['nom'])){\n\t\t\t\t//echo\"<PRE> COntroller : réservé \";print_r($data);echo\"</PRE>\";\n\t\t\t\t$data['nom']=$_SESSION['nom'];\n\t\t\t\t$menuPrivate= new _MenuPrivateView();\n\t\t\t\treturn $menuPrivate->show($data);\n\t\t\t}else{\n\t\t\t\t//echo\"<PRE> COntroller : libre \";print_r($data);echo\"</PRE>\";\n\t\t\t\t$menuFree= new\t_MenuFreeView();\n\t\t\t\treturn $menuFree->show($data);\n\t\t\t}\n\t\t}else{\n\t\t\t//echo\"<PRE> COntroller : libre \";print_r($data);echo\"</PRE>\";\n\t\t\t$menuFree= new\t_MenuFreeView();\n\t\t\treturn $menuFree->show($data);\n\t\t}\n\t}", "function screen_icon()\n {\n }", "function CrearDetalleIndicador()\n{\n\tglobal $tablaCapacitados;\n\n\n\t//global $tabla;\n\tglobal $eventosAsistentes;\n\t$anioCurso = getAnioSeleccionado();\n\t$indicadorSel = getIndicador();\n\t$mesSel = getMes();\n\t$zonaSel = getZona();\n\t$lineasTabla = \"\";\n\t$tablaHeader = \"\";\n\n\t//echo $anioCurso . \" - \" . $indicadorSel . \" - \" . $mesSel. \" - \" . $zonaSel . \"<br>\";\n\n\tif($indicadorSel == 1)\n\t{\n\t\t$resIndicador = primer_indicador($mesSel, $zonaSel);\n\t\t//print_r2($resIndicador);\n\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t//provincias de las organizaciones\n\t\t\t$provOrg = RecuperarInfoOrg($resIndicador, 'provincia');\n\t\t\t//nombres de las organizaciones\n\t\t\t$nombresOrganizaciones = RecuperarInfoOrg($resIndicador, 'nombresOrg');\n\t\t\t// ruc de las organizaciones\n\t\t\t$rucProvisional = RecuperarInfoOrg($resIndicador, 'rucProvisionalOrg');\n\t\t\t$rucDefinitivo = RecuperarInfoOrg($resIndicador, 'rucDefinitivoOrg');\n\t\t\t//categoria Matriz productiva de las organizaciones\n\t\t\t$catMatrizProductivaOrg = RecuperarInfoOrg($resIndicador, 'categoriaMatriz');\n\t\t\t// numero de socios por cada organizacion\n\t\t\t$numSociosOrganizacion = NumSociosOrganizacion($resIndicador);\n\t\t\t// numero de personas Capacitadas\n\t\t\t$numPerCapacitadas = NumPersonasCapacitadas($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel);\n\t\t\t//print_r2($eventosAsistentes);\n\t\t\t//Servicio Brindado por Fortalecimiento\n\t\t\t$servicioFortalecimiento = ServiciosBrindadosOrg($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel);\n\t\t\t// identificacion actividad matriz productiva\n\t\t\t$actOrgMP = RecuperarInfoOrg($resIndicador, 'identificacionMatriz');\n\t\t\t//capacitados por Genero\n\t\t\t$capMujeres = NumCapacitadosGenero($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel, 'mujer');\n\t\t\t$capHombres = NumCapacitadosGenero($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel, 'hombre');\n\n\t\t\t// BORRAR LUEGO SOLO PARA FORTALECIMIENTO\n\t\t\t$tablaCapacitados .= \"</table>\";\n\n\n\t\t\t//print_r2($resIndicador);\n\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES REPORTE</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>ORGANIZACION</th>\n\t\t\t\t\t\t\t\t<th>RUC</th>\n\t\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MP</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE SOCIOS</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS TOTAL</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS MUJERES TOTAL</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS HOMBRES TOTAL</th>\n\t\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\n\t\t\t\t\t\t\t\t<th>CODIGO EVENTO</th>\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\n\n\t\t\t\t\n\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nombresOrganizaciones[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $rucDefinitivo[$cont] . \" - \" . $rucProvisional[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $catMatrizProductivaOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actOrgMP[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numSociosOrganizacion[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numPerCapacitadas[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $capMujeres[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $capHombres[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $servicioFortalecimiento[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $eventosAsistentes[$cont] . \"</td>\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\n\n\t\t\n\t}\n\tif($indicadorSel == 2)\n\t{\n\t\t//print_r2($resIndicador);\n\t\t$resIndicador = segundo_indicador($mesSel,$zonaSel);\n\t\t//print_r2($resIndicador);\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t//provincias de las uep\n\t\t\t$provUep = RecuperarInfoOrg($resIndicador, 'provincia');\n\t\t\t//nombres de las uep\n\t\t\t$nombresUep = RecuperarInfoOrg($resIndicador, 'nombresOrg');\n\t\t\t// ruc de las uep\n\t\t\t$rucProvisional = RecuperarInfoOrg($resIndicador, 'rucProvisionalOrg');\n\t\t\t$rucDefinitivo = RecuperarInfoOrg($resIndicador, 'rucDefinitivoOrg');\n\t\t\t//categoria Matriz productiva de las uep\n\t\t\t$catMatrizProductivaOrg = RecuperarInfoOrg($resIndicador, 'categoriaMatriz');\n\t\t\t// numero de socios por cada organizacion\n\t\t\t$numSociosOrganizacion = NumSociosOrganizacion($resIndicador);\n\t\t\t// numero de personas Capacitadas\n\t\t\t$numPerCapacitadas = NumPersonasCapacitadas($resIndicador, $anioCurso, $mesSel, 'UEP', $zonaSel);\n\t\t\t//print_r2($eventosAsistentes);\n\t\t\t//Servicio Brindado por Fortalecimiento\n\t\t\t$servicioFortalecimiento = ServiciosBrindadosOrg($resIndicador, $anioCurso, $mesSel, 'UEP', $zonaSel);\n\t\t\t// identificacion actividad matriz productiva\n\t\t\t$actOrgMP = RecuperarInfoOrg($resIndicador, 'identificacionMatriz');\n\t\t\t//capacitados por Genero\n\t\t\t$capMujeres = NumCapacitadosGenero($resIndicador, $anioCurso, $mesSel, 'UEP', $zonaSel, 'mujer');\n\t\t\t$capHombres = NumCapacitadosGenero($resIndicador, $anioCurso, $mesSel, 'UEP', $zonaSel, 'hombre');\n\n\n\t\t\t// BORRAR LUEGO SOLO PARA FORTALECIMIENTO\n\t\t\t$tablaCapacitados .= \"</table>\";\n\n\n\n\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t<th>MES REPORTE</th>\n\t\t\t\t\t\t\t<th>ZONA</th>\n\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t<th>UEP</th>\n\t\t\t\t\t\t\t<th>RUC PROVISIONAL</th>\n\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MP</th>\n\t\t\t\t\t\t\t<th>NUMERO DE SOCIOS</th>\n\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS TOTAL</th>\n\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS MUJERES TOTAL</th>\n\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS HOMBRES TOTAL</th>\n\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\n\t\t\t\t\t\t\t<th>CODIGO EVENTO</th>\n\t\t\t\t\t\t</tr>\";\n\n\t\t\t\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\n\n\t\t\t\t\n\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provUep[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nombresUep[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $rucDefinitivo[$cont] . \" - \" . $rucProvisional[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $catMatrizProductivaOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actOrgMP[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numSociosOrganizacion[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numPerCapacitadas[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $capMujeres[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $capHombres[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $servicioFortalecimiento[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $eventosAsistentes[$cont] . \"</td>\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\n\t}\n\n\tif($indicadorSel == 3)\n\t{\n\t\t$resIndicador = tercer_indicador($mesSel,$zonaSel);\n\t\t//print_r2($resIndicador);\t\t\t\n\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t//provincias de las organizaciones\n\t\t\t$provOrg = RecuperarInfoOrg($resIndicador, 'provincia');\n\t\t\t//nombres de las organizaciones\n\t\t\t$nombresOrganizaciones = RecuperarInfoOrg($resIndicador, 'nombresOrg');\n\t\t\t// ruc de las organizaciones\n\t\t\t$rucProvisional = RecuperarInfoOrg($resIndicador, 'rucProvisionalOrg');\n\t\t\t$rucDefinitivo = RecuperarInfoOrg($resIndicador, 'rucDefinitivoOrg');\n\t\t\t// actividad de la organizacion\n\t\t\t$actividadOrg = RecuperarInfoOrg($resIndicador, 'identificacionMatriz');\n\t\t\t//categoria Matriz productiva de las organizaciones\n\t\t\t$catMatrizProductivaOrg = RecuperarInfoOrg($resIndicador, 'categoriaMatriz');\n\t\t\t// numero de socios por cada organizacion\n\t\t\t$numSociosOrganizacion = NumSociosOrganizacion($resIndicador);\t\t\t\n\t\t\t//Servicio Brindado por Fortalecimiento\n\t\t\t$servicioFortalecimiento = ServiciosBrindadosOrg($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel);\n\t\t\t//print_r2($resIndicador);\n\t\t\t// identificacion actividad matriz productiva\n\t\t\t$actOrgMP = RecuperarInfoOrg($resIndicador, 'identificacionMatriz');\n\t\t\t//Asistentes al circuito\n\t\t\t$asistentesCircuito = GetAsistentesCircuitosEconomicos($resIndicador, $anioCurso, $mesSel, $zonaSel);\n\n\n\t\t\t// BORRAR LUEGO SOLO PARA FORTALECIMIENTO\n\t\t\t$tablaCapacitados .= \"</table>\";\n\n\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>RUC</th>\n\t\t\t\t\t\t\t\t<th>ORGANIZACION</th>\n\t\t\t\t\t\t\t\t<th>ACTIVIDAD</th>\n\t\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MP</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE ASISTENTES</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE SOCIOS</th>\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\n\n\t\t\t\t\n\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $rucDefinitivo[$cont] . \" - \" . $rucProvisional[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nombresOrganizaciones[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actividadOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $catMatrizProductivaOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actOrgMP[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $servicioFortalecimiento[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $asistentesCircuito[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numSociosOrganizacion[$cont] . \"</td>\t\t\t\t\t\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\t}\n\n\tif($indicadorSel == 4)\n\t{\n\t\tglobal $orgSocios;\n\t\t$resIndicador = cuarto_indicador($mesSel, $zonaSel);\n\t\t$provNombre = \"\";\n\t\t$rucSocio = \"\";\n\t\t$cedulaSocio = \"\";\n\t\t$apellidosSocio = \"\";\n\t\t$orgSocio = \"\";\n\t\t$actividadOrgSocio = \"\";\n\t\t$categoriaOrgSocio = \"\";\n\t\t$identificacionCategoriaOrgSocio = \"\";\n\t\t$campoFortalecimiento = \"\";\n\t\t$generoSocio = \"\";\n\t\t$poblacionSocio = \"\";\n\t\t$grupoEtnicoSocio = \"\";\n\n\n\t\t//print_r2($resIndicador);\n\t\t//print_r2($orgSocios);\n\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t$provNombre = \"\";\n\t\t\t\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>RUC</th>\n\t\t\t\t\t\t\t\t<th>CEDULA</th>\n\t\t\t\t\t\t\t\t<th>APELLIDOS Y NOMBRES</th>\n\t\t\t\t\t\t\t\t<th>GENERO</th>\n\t\t\t\t\t\t\t\t<th>POBLACION</th>\n\t\t\t\t\t\t\t\t<th>GRUPO ETNICO</th>\n\t\t\t\t\t\t\t\t<th>ORGANIZACION</th>\n\t\t\t\t\t\t\t\t<th>ACTIVIDAD</th>\n\t\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MP</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\t\t\t\t\t\n\t\t\t\t$rucSocio = \"\";\n\t\t\t\t$cedulaSocio = \"\";\n\t\t\t\t$apellidosSocio = \"\";\n\t\t\t\t$orgSocio = \"\";\n\t\t\t\t$actividadOrgSocio = \"\";\n\t\t\t\t$categoriaOrgSocio = \"\";\n\t\t\t\t$identificacionCategoriaOrgSocio = \"\";\n\t\t\t\t$campoFortalecimiento = \"\";\n\t\t\t\t$generoSocio = \"\";\n\t\t\t\t$poblacionSocio = \"\";\n\t\t\t\t$grupoEtnicoSocio = \"\";\n\n\t\t\t\t$sqlOrgSocios = \"select cod_u_organizaciones from socios where cedula = '\" . $valor . \"' and estado = 1 group by cod_u_organizaciones\";\n\n\t\t\t\t$resSqlOrgSocios = query($sqlOrgSocios);\n\t\t\t\t$numRegistros = mysql_num_rows($resSqlOrgSocios);\n\t\t\t\t//echo $sqlOrgSocios . \"<br>\";\n\t\t\t\t//echo $cont . \" \" . $numRegistros . \"<br>\";\n\n\t\t\t\tif($numRegistros > 1)\n\t\t\t\t{\n\t\t\t\t\t// El socio existe en mas de una organizacion, por lo cual se debe de tomar los cod_u_organizaciones\n\t\t\t\t\t$codOrgSocio = array();\n\t\t\t\t\t$codOrgReportada = array();\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlOrgSocios))\n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($codOrgSocio, $fila['cod_u_organizaciones']);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t// Se busca las organizaciones que han sido reportadas en el mes\n\t\t\t\t\tforeach($codOrgSocio as $codigoOrg)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(in_array($codigoOrg, $orgSocios))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//si el codigo de organizacion se encuentra reportada se guarda en codOrgReportada\n\t\t\t\t\t\t\tarray_push($codOrgReportada, $codigoOrg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//print_r2($codOrgReportada);\n\n\t\t\t\t\t// Se completa la informacion correspondiente\n\t\t\t\t\t$sqlNombresSocios = \"select apellidos, cedula, zona, cod_provincia, cod_canton, cod_parroquia, genero, grupo_etnico, poblacion, fecha_nacimiento, discapacidad, tipo_discapacidad, fecha_reporte from socios where cedula = '\" . $valor . \"' group by cedula\";\n\n\t\t\t\t\t$resSqlSocios = query($sqlNombresSocios);\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlSocios))\n\t\t\t\t\t{\n\t\t\t\t\t\t//echo $fila['cod_provincia'] . \" $indice<br>\";\n\t\t\t\t\t\t$provNombre = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t\t$cedulaSocio = $fila['cedula'];\n\t\t\t\t\t\t$apellidosSocio = $fila['apellidos'];\n\t\t\t\t\t\t$generoSocio = $fila['genero'];\n\t\t\t\t\t\tif($generoSocio == '') $generoSocio = \"No registrado\";\n\t\t\t\t\t\t$poblacionSocio = $fila['poblacion'];\n\t\t\t\t\t\tif($poblacionSocio == '') $poblacionSocio = \"No registrado\";\n\t\t\t\t\t\t$grupoEtnicoSocio = $fila['grupo_etnico'];\n\t\t\t\t\t\tif($grupoEtnicoSocio == '') $grupoEtnicoSocio = \"No registrado\";\n\n\t\t\t\t\t\t$aux = 0;\n\t\t\t\t\t\tforeach($codOrgReportada as $codigoOrg)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sqlRucOrgSocio = \"select ruc_definitivo, ruc_provisional, organizacion, actividad, categoria_actividad_mp, identificacion_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $codigoOrg;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$resSqlRucOrgSocio = query($sqlRucOrgSocio);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resSqlRucOrgSocio))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($aux == 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$rucSocio = $fila1['ruc_definitivo'] . \" - \" . $fila1['ruc_provisional'];\n\t\t\t\t\t\t\t\t\t$orgSocio = $fila1['organizacion'];\n\t\t\t\t\t\t\t\t\t$actividadOrgSocio = $fila1['actividad'];\n\t\t\t\t\t\t\t\t\t$categoriaOrgSocio = $fila1['categoria_actividad_mp'];\n\t\t\t\t\t\t\t\t\t$identificacionCategoriaOrgSocio = $fila1['identificacion_actividad_mp'];\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\t$rucSocio .= \" - \" . $fila1['ruc_definitivo'] . \" - \" . $fila1['ruc_provisional'];\n\t\t\t\t\t\t\t\t\t$orgSocio .= \" - \" . $fila1['organizacion'];\n\t\t\t\t\t\t\t\t\t$actividadOrgSocio .= \" - \" . $fila1['actividad'];\n\t\t\t\t\t\t\t\t\t$categoriaOrgSocio .= \" - \" . $fila1['categoria_actividad_mp'];\n\t\t\t\t\t\t\t\t\t$identificacionCategoriaOrgSocio .= \" - \" . $fila1['identificacion_actividad_mp'];\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\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$sqlFortalecimiento = \"select e.campo_fortalecimiento, e.cod_evento from eventos_u_organizaciones ev inner join eventos e on (e.cod_evento = ev.cod_evento) where ev.cod_u_organizaciones = \" . $codigoOrg . \" and month(e.fecha_reporte) = \" . $mesSel . \" and e.anio = \" . $anioCurso . \" group by e.campo_fortalecimiento\";\n\t\t\t\t\t\t\t//echo $sqlFortalecimiento . \"<br>\";\n\t\t\t\t\t\t\t$resFortalecimiento = query($sqlFortalecimiento);\n\t\t\t\t\t\t\t$aux1 = 0;\n\t\t\t\t\t\t\tif(mysql_num_rows($resFortalecimiento) > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resFortalecimiento))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//se tiene que revisar si hay mas de un evento relacionado con esta org\n\t\t\t\t\t\t\t\t\tif($aux1 == 0) $campoFortalecimiento .= $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\t\t\telse $campoFortalecimiento .= \" - \" . $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\t\t\t$aux1++;\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}\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$sqlFortalecimiento = \"select e.cod_asistencia_legal from asistencia_legal_org e where e.cod_u_organizaciones = \" . $fila['cod_u_organizaciones'] . \" and month(e.fecha_reporte) = \" . $mesSel . \" and e.anio = \" . $anioCurso . \" group by e.cod_asistencia_legal\";\n\t\t\t\t\t\t\t\t//echo $sqlFortalecimiento . \"<br>\";\n\t\t\t\t\t\t\t\t$resFortalecimiento = query($sqlFortalecimiento);\n\t\t\t\t\t\t\t\tif(mysql_num_rows($resFortalecimiento) > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$campoFortalecimiento = \"asistencia_legal\";\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$aux++;\t\t\t\t\t\t\n\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\n\n\t\t\t\t}\n\t\t\t\tif($numRegistros == 1)\n\t\t\t\t{\n\t\t\t\t\t$sqlNombresSocios = \"select apellidos, cedula, zona, cod_provincia, cod_canton, cod_parroquia, genero, grupo_etnico, poblacion, fecha_nacimiento, discapacidad, tipo_discapacidad, fecha_reporte , cod_u_organizaciones from socios where cedula = '\" . $valor . \"' order by cod_u_organizaciones\";\n\n\t\t\t\t\t$resSqlSocios = query($sqlNombresSocios);\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlSocios))\n\t\t\t\t\t{\n\t\t\t\t\t\t//echo $fila['cod_provincia'] . \" $indice - $zonaSel<br>\";\n\t\t\t\t\t\t$provNombre = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t\t$cedulaSocio = $fila['cedula'];\n\t\t\t\t\t\t$apellidosSocio = $fila['apellidos'];\n\t\t\t\t\t\t$generoSocio = $fila['genero'];\n\t\t\t\t\t\tif($generoSocio == '') $generoSocio = \"No registrado\";\n\t\t\t\t\t\t$poblacionSocio = $fila['poblacion'];\n\t\t\t\t\t\tif($poblacionSocio == '') $poblacionSocio = \"No registrado\";\n\t\t\t\t\t\t$grupoEtnicoSocio = $fila['grupo_etnico'];\n\t\t\t\t\t\tif($grupoEtnicoSocio == '') $grupoEtnicoSocio = \"No registrado\";\n\n\t\t\t\t\t\t$sqlRucOrgSocio = \"select ruc_definitivo, ruc_provisional, organizacion, actividad, categoria_actividad_mp, identificacion_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $fila['cod_u_organizaciones'];\n\t\t\t\t\t\t//echo $sqlRucOrgSocio . \"<br>\";\n\t\t\t\t\t\t$resSqlRucOrgSocio = query($sqlRucOrgSocio);\n\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resSqlRucOrgSocio))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$rucSocio = $fila1['ruc_definitivo'] . \" - \" . $fila1['ruc_provisional'];\n\t\t\t\t\t\t\t$orgSocio = $fila1['organizacion'];\n\t\t\t\t\t\t\t$actividadOrgSocio = $fila1['actividad'];\n\t\t\t\t\t\t\t$categoriaOrgSocio = $fila1['categoria_actividad_mp'];\n\t\t\t\t\t\t\t$identificacionCategoriaOrgSocio = $fila1['identificacion_actividad_mp'];\n\t\t\t\t\t\t} \n\n\t\t\t\t\t\t$sqlFortalecimiento = \"select e.campo_fortalecimiento, e.cod_evento from eventos_u_organizaciones ev inner join eventos e on (e.cod_evento = ev.cod_evento) where ev.cod_u_organizaciones = \" . $fila['cod_u_organizaciones'] . \" and month(e.fecha_reporte) = \" . $mesSel . \" and e.anio = \" . $anioCurso . \" group by e.campo_fortalecimiento\";\n\t\t\t\t\t\t//echo $sqlFortalecimiento . \"<br>\";\n\t\t\t\t\t\t$resFortalecimiento = query($sqlFortalecimiento);\n\t\t\t\t\t\t$aux = 0;\n\t\t\t\t\t\tif(mysql_num_rows($resFortalecimiento) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resFortalecimiento))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//se tiene que revisar si hay mas de un evento relacionado con esta org\n\t\t\t\t\t\t\t\tif($aux == 0) $campoFortalecimiento .= $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\t\telse $campoFortalecimiento .= \" - \" . $fila1['campo_fortalecimiento'];\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\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sqlFortalecimiento = \"select e.cod_asistencia_legal from asistencia_legal_org e where e.cod_u_organizaciones = \" . $fila['cod_u_organizaciones'] . \" and month(e.fecha_reporte) = \" . $mesSel . \" and e.anio = \" . $anioCurso . \" group by e.cod_asistencia_legal\";\n\t\t\t\t\t\t\t//echo $sqlFortalecimiento . \"<br>\";\n\t\t\t\t\t\t\t$resFortalecimiento = query($sqlFortalecimiento);\n\t\t\t\t\t\t\tif(mysql_num_rows($resFortalecimiento) > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$campoFortalecimiento = \"asistencia_legal\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$aux++;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provNombre . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $rucSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $cedulaSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $apellidosSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $generoSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $poblacionSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $grupoEtnicoSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $orgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actividadOrgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $categoriaOrgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $identificacionCategoriaOrgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $campoFortalecimiento . \"</td>\t\t\t\t\t\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\n\t\t\n\t}\n\n\tif($indicadorSel == 5)\n\t{\n\t\t$resIndicador = quinto_indicador($mesSel,$zonaSel);\n\t\t//print_r2($resIndicador);\n\n\t\t$numRegistros = count($resIndicador);\n\t\tif($numRegistros > 0)\n\t\t{\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>ORGANIZACION</th>\n\t\t\t\t\t\t\t\t<th>RUC</th>\n\t\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE HORAS DE CAPACITACION</th>\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\n\t\t\t\t\t\t\t\t<th>EVENTO</th>\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\n\t\t\tfor($i = 0; $i < count($resIndicador); $i = $i + 2)\n\t\t\t{\n\t\t\t\t$orgEvento = array();\n\t\t\t\t$orgFortalecimiento = array();\n\t\t\t\t$sqlOrgEventos = \"select ev.cod_u_organizaciones, e.campo_fortalecimiento from eventos_u_organizaciones ev inner join eventos e on (e.cod_evento = ev.cod_evento) where ev.anio = \" . $anioCurso . \" and ev.cod_evento = '\" . $resIndicador[$i] . \"' group by ev.cod_u_organizaciones\";\n\t\t\t\t//echo $sqlOrgEventos . \"<br>\";\n\t\t\t\t$resOrgEventos = query($sqlOrgEventos);\n\n\t\t\t\tif(mysql_num_rows($resOrgEventos) > 0)\n\t\t\t\t{\n\t\t\t\t\twhile($fila = mysql_fetch_array($resOrgEventos))\n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($orgEvento, $fila['cod_u_organizaciones']);\n\t\t\t\t\t\tarray_push($orgFortalecimiento, $fila['campo_fortalecimiento']);\n\t\t\t\t\t}\n\n\t\t\t\t\t$cont1 = 0;\t\t\t\t\t\n\t\t\t\t\tforeach($orgEvento as $valor)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$sqlOrganizacion = \"select cod_provincia, organizacion, ruc_definitivo, ruc_provisional, categoria_actividad_mp, identificacion_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $valor;\n\t\t\t\t\t\t$resOrganizacion = query($sqlOrganizacion);\n\t\t\t\t\t\t$provOrg = \"\";\n\t\t\t\t\t\t$nombreOrg = \"\";\n\t\t\t\t\t\t$catMatrizProductivaOrg = \"\";\n\t\t\t\t\t\t$actividadOrg = \"\";\n\t\t\t\t\t\twhile($fila = mysql_fetch_array($resOrganizacion))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$provOrg = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t\t\t$nombreOrg = $fila['organizacion'];\n\t\t\t\t\t\t\t$rucDefinitivo = $fila['ruc_definitivo'] . \" - \" . $fila['ruc_provisional'];\n\t\t\t\t\t\t\t$catMatrizProductivaOrg = $fila['categoria_actividad_mp'];\n\t\t\t\t\t\t\t$actividadOrg = $fila['identificacion_actividad_mp'];\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $provOrg . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $nombreOrg . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $rucDefinitivo . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $catMatrizProductivaOrg . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $actividadOrg . \"</td>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $resIndicador[$i + 1] . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $orgFortalecimiento[$cont1] . \"</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\" . $resIndicador[$i] . \"</td>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t\t\t$cont++;\n\t\t\t\t\t\t$cont1++;\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$indice = $cont + 1;\n\n\t\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td> - </td>\n\t\t\t\t\t\t\t\t\t\t<td>NO EXISTEN ORGANIZACIONES REGISTRADAS</td>\n\t\t\t\t\t\t\t\t\t\t<td> - </td>\n\t\t\t\t\t\t\t\t\t\t<td> - </td>\n\t\t\t\t\t\t\t\t\t\t<td> - </td>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<td>\" . $resIndicador[$i + 1] . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td> - </td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $resIndicador[$i] . \"</td>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t\t$cont++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\t\t\n\n\t\t\n\n\t}\n\n\tif($indicadorSel == 6)\n\t{\n\t\t$resIndicador = sexto_indicador($mesSel, $zonaSel);\n\t\t//print_r2($resIndicador);\n\t\t$numRegistros = count($resIndicador);\n\t\t$nomMes = GetNombreMes($mesSel);\n\n\t\t// si hay registros se debe crear la tabla de detalle\n\t\tif($numRegistros > 0)\n\t\t{\n\t\t\t// armado del header de la tabla\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>CEDULA</th>\n\t\t\t\t\t\t\t\t<th>APELLIDOS Y NOMBRES</th>\n\t\t\t\t\t\t\t\t<th>GRUPO ETNICO</th>\n\t\t\t\t\t\t\t\t<th>GENERO</th>\n\t\t\t\t\t\t\t\t<th>POBLACION</th>\n\t\t\t\t\t\t\t\t<th>CODIGO DIALOGO SOCIAL</th>\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\n\t\t\t//tengo el array con codigos del dialgo social devuelto por el indicador\n\t\t\t$cont = 0;\n\t\t\t$lineasTabla = \"\";\t\t\t\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\n\t\t\t\t// debe buscar la informacion del dialogo social\n\t\t\t\t$sqlDetalleDialogo = \"select cod_provincia, cedula, nombres, apellidos, grupo_etnico, poblacion, genero from asistentes where cod_evento = '\" . $valor . \"' and anio = \" . $anioCurso . \" group by cedula\";\n\t\t\t\t//echo $sqlDetalleDialogo . \"<br>\";\n\t\t\t\t$resDetalleDialogo = query($sqlDetalleDialogo);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile($fila = mysql_fetch_array($resDetalleDialogo))\n\t\t\t\t{\n\t\t\t\t\t$indice = $cont + 1;\n\t\t\t\t\t$provOrg = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t$cedulaA = $fila['cedula'];\n\t\t\t\t\t$apellidosNombres = $fila['apellidos'];\n\t\t\t\t\t$grupoEtnico = $fila['grupo_etnico'];\n\t\t\t\t\t$generoA = $fila['genero'];\n\t\t\t\t\t$poblacionA = $fila['poblacion'];\n\n\t\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $provOrg . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $cedulaA . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $apellidosNombres . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $grupoEtnico . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $generoA . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $poblacionA . \"</td>\n\t\t\t\t\t\t\t\t\t\t<td>\" . $valor . \"</td>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t\t$cont++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// si no existe registros lo hacemos saber al usuario\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\n\t\t\n\t\t\n\n\t}\n\n\tif($indicadorSel == 7)\n\t{\n\t\t$resIndicador = septimo_indicador($mesSel, $zonaSel);\n\t\t//print_r2($resIndicador);\n\n\t\t// si el indicador regresa datos comenzamos a armar la tabla de detalle\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t// armado del header de la tabla\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>CEDULA</th>\n\t\t\t\t\t\t\t\t<th>APELLIDOS Y NOMBRES</th>\n\t\t\t\t\t\t\t\t<th>GRUPO ETNICO</th>\n\t\t\t\t\t\t\t\t<th>GENERO</th>\n\t\t\t\t\t\t\t\t<th>POBLACION</th>\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\t\t\t$cont = 0;\n\t\t\t$lineasTabla = \"\";\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\n\t\t\t\t// consulto el detalle de los asistentes a eps\n\t\t\t\t$sqlAsistentes = \"select cod_provincia, apellidos, grupo_etnico, genero, poblacion from asistentes where tipo_evento = 'EPS' and zona=\" . $zonaSel . \" and month(fecha_reporte) = \" . $mesSel . \" and year(fecha_reporte) =\" . $anioCurso . \" and anio =\" . $anioCurso . \" and cedula = '\" . $valor . \"'\";\n\t\t\t\t$resAsistentes = query($sqlAsistentes);\n\t\t\t\twhile($fila = mysql_fetch_array($resAsistentes))\n\t\t\t\t{\n\t\t\t\t\t$provOrg = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t$apellidosNombres = $fila['apellidos'];\n\t\t\t\t\t$grupoEtnico = $fila['grupo_etnico'];\n\t\t\t\t\t$generoA = $fila['genero'];\n\t\t\t\t\t$poblacionA = $fila['poblacion'];\n\n\t\t\t\t}\n\n\t\t\t\t$indice = $cont + 1;\n\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provOrg . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $valor . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $apellidosNombres . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $grupoEtnico . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $generoA . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $poblacionA . \"</td>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\n\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// si no hay registros\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\t}\n\n\tif($indicadorSel == 8)\n\t{\n\t\t$resIndicador = octavo_indicador($mesSel, $zonaSel);\n\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t//provincias de las organizaciones\n\t\t\t$provOrg = RecuperarInfoOrg($resIndicador, 'provincia');\n\t\t\t//nombres de las organizaciones\n\t\t\t$nombresOrganizaciones = RecuperarInfoOrg($resIndicador, 'nombresOrg');\n\t\t\t// ruc de las organizaciones\n\t\t\t$rucProvisional = RecuperarInfoOrg($resIndicador, 'rucProvisionalOrg');\n\t\t\t$rucDefinitivo = RecuperarInfoOrg($resIndicador, 'rucDefinitivoOrg');\n\t\t\t//categoria Matriz productiva de las organizaciones\n\t\t\t$catMatrizProductivaOrg = RecuperarInfoOrg($resIndicador, 'categoriaMatriz');\n\t\t\t// numero de socios por cada organizacion\n\t\t\t$numSociosOrganizacion = NumSociosOrganizacion($resIndicador);\n\t\t\t// numero de personas Capacitadas\n\t\t\t$numPerCapacitadas = NumPersonasCapacitadas($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel);\n\t\t\t//print_r2($eventosAsistentes);\n\t\t\t//Servicio Brindado por Fortalecimiento\n\t\t\t$servicioFortalecimiento = ServiciosBrindadosOrg($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel);\n\t\t\t//print_r2($resIndicador);\n\t\t\t// identificacion actividad matriz productiva\n\t\t\t$actOrgMP = RecuperarInfoOrg($resIndicador, 'identificacionMatriz');\n\t\t\t//capacitados por Genero\n\t\t\t$capMujeres = NumCapacitadosGenero($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel, 'mujer');\n\t\t\t$capHombres = NumCapacitadosGenero($resIndicador, $anioCurso, $mesSel, 'ORG', $zonaSel, 'hombre');\n\n\n\t\t\t// BORRAR LUEGO SOLO PARA FORTALECIMIENTO\n\t\t\t$tablaCapacitados .= \"</table>\";\n\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES REPORTE</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>ORGANIZACION</th>\n\t\t\t\t\t\t\t\t<th>RUC</th>\n\t\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MP</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE SOCIOS</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS MUJERES</th>\n\t\t\t\t\t\t\t\t<th>NUMERO DE CAPACITADOS HOMBRES</th>\n\t\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\n\t\t\t\t\t\t\t\t<th>CODIGO EVENTO</th>\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\n\n\t\t\t\t\n\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nombresOrganizaciones[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $rucDefinitivo[$cont] . \" - \" . $rucProvisional[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $catMatrizProductivaOrg[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actOrgMP[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numSociosOrganizacion[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $numPerCapacitadas[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $capMujeres[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $capHombres[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $servicioFortalecimiento[$cont] . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $eventosAsistentes[$cont] . \"</td>\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\t}\n\n\tif($indicadorSel == 9)\n\t{\n\t\t$resIndicador = noveno_indicador($mesSel, $zonaSel);\n\t\t//print_r2($resIndicador);\n\t\t//global $orgSocios;\n\n\t\t$provNombre = \"\";\n\t\t$rucSocio = \"\";\n\t\t$cedulaSocio = \"\";\n\t\t$apellidosSocio = \"\";\n\t\t$orgSocio = \"\";\n\t\t$actividadOrgSocio = \"\";\n\t\t$categoriaOrgSocio = \"\";\n\t\t$identificacionCategoriaOrgSocio = \"\";\n\t\t$campoFortalecimiento = \"\";\n\t\t$generoSocio = \"\";\n\t\t$poblacionSocio = \"\";\n\t\t$grupoEtnicoSocio = \"\";\n\n\t\t//print_r2($resIndicador);\n\t\t//print_r2($orgSocios);\n\n\t\tif(count($resIndicador) > 0)\n\t\t{\n\t\t\t$provNombre = \"\";\n\t\t\t\n\t\t\t$nomMes = GetNombreMes($mesSel);\n\t\t\t$tablaHeader = \"<tr class='cabecera'>\n\t\t\t\t\t\t\t\t<th>INDICE</th>\n\t\t\t\t\t\t\t\t<th>MES</th>\n\t\t\t\t\t\t\t\t<th>ZONA</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>PROVINCIA</th>\n\t\t\t\t\t\t\t\t<th>RUC</th>\n\t\t\t\t\t\t\t\t<th>CEDULA</th>\n\t\t\t\t\t\t\t\t<th>APELLIDOS Y NOMBRES</th>\n\t\t\t\t\t\t\t\t<th>GENERO</th>\n\t\t\t\t\t\t\t\t<th>GRUPO ETNICO</th>\n\t\t\t\t\t\t\t\t<th>POBLACION</th>\n\t\t\t\t\t\t\t\t<th>ORGANIZACION</th>\n\t\t\t\t\t\t\t\t<th>ACTIVIDAD</th>\n\t\t\t\t\t\t\t\t<th>CATEGORIA ACTIVIDAD MATRIZ PRODUCTIVA</th>\n\t\t\t\t\t\t\t\t<th>IDENTIFICACION ACTIVIDAD MP</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<th>CAMPO FORTALECIMIENTO</th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</tr>\";\n\t\t\t\n\n\t\t\t$lineasTabla = \"\";\n\t\t\t$cont = 0;\n\t\t\t$indice = 0;\n\n\t\t\tforeach($resIndicador as $valor)\n\t\t\t{\t\t\t\t\t\n\t\t\t\t$rucSocio = \"\";\n\t\t\t\t$cedulaSocio = \"\";\n\t\t\t\t$apellidosSocio = \"\";\n\t\t\t\t$orgSocio = \"\";\n\t\t\t\t$actividadOrgSocio = \"\";\n\t\t\t\t$categoriaOrgSocio = \"\";\n\t\t\t\t$identificacionCategoriaOrgSocio = \"\";\n\t\t\t\t$campoFortalecimiento = \"\";\n\t\t\t\t$generoSocio = \"\";\n\t\t\t\t$poblacionSocio = \"\";\n\t\t\t\t$grupoEtnicoSocio = \"\";\n\n\t\t\t\t$sqlOrgSocios = \"select cod_u_organizaciones from socios where cedula = '\" . $valor . \"' group by cod_u_organizaciones\";\n\n\t\t\t\t$resSqlOrgSocios = query($sqlOrgSocios);\n\t\t\t\t$numRegistros = mysql_num_rows($resSqlOrgSocios);\n\t\t\t\t//echo $numRegistros . \"<br>\";\n\n\t\t\t\tif($numRegistros > 1)\n\t\t\t\t{\n\t\t\t\t\t// El socio existe en mas de una organizacion, por lo cual se debe de tomar los cod_u_organizaciones\n\t\t\t\t\t$codOrgSocio = array();\n\t\t\t\t\t$codOrgReportada = array();\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlOrgSocios))\n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($codOrgSocio, $fila['cod_u_organizaciones']);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Se busca las organizaciones que han sido reportadas en el mes\n\t\t\t\t\t/*foreach($codOrgSocio as $codigoOrg)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(in_array($codigoOrg, $orgSocios))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//si el codigo de organizacion se encuentra reportada se guarda en codOrgReportada\n\t\t\t\t\t\t\tarray_push($codOrgReportada, $codigoOrg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\n\t\t\t\t\t// Se completa la informacion correspondiente\n\t\t\t\t\t$sqlNombresSocios = \"select apellidos, cedula, zona, cod_provincia, cod_canton, cod_parroquia, genero, grupo_etnico, poblacion, fecha_nacimiento, discapacidad, tipo_discapacidad, fecha_reporte from socios where cedula = '\" . $valor . \"' group by cedula\";\n\n\t\t\t\t\t$resSqlSocios = query($sqlNombresSocios);\n\t\t\t\t\t$codOrgReportada = $codOrgSocio;\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlSocios))\n\t\t\t\t\t{\n\t\t\t\t\t\t$provNombre = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t\t$cedulaSocio = $fila['cedula'];\n\t\t\t\t\t\t$apellidosSocio = $fila['apellidos'];\n\t\t\t\t\t\t$generoSocio = $fila['genero'];\n\t\t\t\t\t\tif($generoSocio == '') $generoSocio = \"No registrado\";\n\t\t\t\t\t\t$poblacionSocio = $fila['poblacion'];\n\t\t\t\t\t\tif($poblacionSocio == '') $poblacionSocio = \"No registrado\";\n\t\t\t\t\t\t$grupoEtnicoSocio = $fila['grupo_etnico'];\n\t\t\t\t\t\tif($grupoEtnicoSocio == '') $grupoEtnicoSocio = \"No registrado\";\n\n\t\t\t\t\t\t$aux = 0;\n\t\t\t\t\t\tforeach($codOrgReportada as $codigoOrg)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sqlRucOrgSocio = \"select ruc_definitivo, ruc_provisional, organizacion, actividad, categoria_actividad_mp, identificacion_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $codigoOrg;\n\t\t\t\t\t\t\t$resSqlRucOrgSocio = query($sqlRucOrgSocio);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resSqlRucOrgSocio))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($aux == 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$rucSocio = $fila1['ruc_definitivo'] . \" - \" . $fila1['ruc_provisional'];\n\t\t\t\t\t\t\t\t\t$orgSocio = $fila1['organizacion'];\n\t\t\t\t\t\t\t\t\t$actividadOrgSocio = $fila1['actividad'];\n\t\t\t\t\t\t\t\t\t$categoriaOrgSocio = $fila1['categoria_actividad_mp'];\n\t\t\t\t\t\t\t\t\t$identificacionCategoriaOrgSocio = $fila1['identificacion_actividad_mp'];\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\t$rucSocio .= \" - \" . $fila1['ruc_definitivo'] . \" - \" . $fila1['ruc_provisional'];\n\t\t\t\t\t\t\t\t\t$orgSocio .= \" - \" . $fila1['organizacion'];\n\t\t\t\t\t\t\t\t\t$actividadOrgSocio .= \" - \" . $fila1['actividad'];\n\t\t\t\t\t\t\t\t\t$categoriaOrgSocio .= \" - \" . $fila1['categoria_actividad_mp'];\n\t\t\t\t\t\t\t\t\t$identificacionCategoriaOrgSocio .= \" - \" . $fila1['identificacion_actividad_mp'];\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\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$sqlFortalecimiento = \"select e.campo_fortalecimiento, e.cod_evento from eventos_u_organizaciones ev inner join eventos e on (e.cod_evento = ev.cod_evento) where ev.cod_u_organizaciones = \" . $codigoOrg . \" and month(e.fecha_reporte) = \" . $mesSel . \" and e.anio = \" . $anioCurso . \" group by e.campo_fortalecimiento\";\n\n\t\t\t\t\t\t\t//echo $sqlFortalecimiento . \"<br>\";\n\t\t\t\t\t\t\t$resFortalecimiento = query($sqlFortalecimiento);\n\t\t\t\t\t\t\t$aux1 = 0;\n\t\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resFortalecimiento))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//se tiene que revisar si hay mas de un evento relacionado con esta org\n\t\t\t\t\t\t\t\tif($aux1 == 0) $campoFortalecimiento .= $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\t\telse $campoFortalecimiento .= \" - \" . $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\t\t$aux1++;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$aux++;\n\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\n\n\t\t\t\t}\n\t\t\t\tif($numRegistros == 1)\n\t\t\t\t{\n\t\t\t\t\t$sqlNombresSocios = \"select apellidos, cedula, zona, cod_provincia, cod_canton, cod_parroquia, genero, grupo_etnico, poblacion, fecha_nacimiento, discapacidad, tipo_discapacidad, fecha_reporte , cod_u_organizaciones from socios where cedula = '\" . $valor . \"' order by cod_u_organizaciones\";\n\n\t\t\t\t\t$resSqlSocios = query($sqlNombresSocios);\n\t\t\t\t\twhile($fila = mysql_fetch_array($resSqlSocios))\n\t\t\t\t\t{\n\t\t\t\t\t\t$provNombre = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t\t$cedulaSocio = $fila['cedula'];\n\t\t\t\t\t\t$apellidosSocio = $fila['apellidos'];\n\t\t\t\t\t\t$generoSocio = $fila['genero'];\n\t\t\t\t\t\tif($generoSocio == '') $generoSocio = \"No registrado\";\n\t\t\t\t\t\t$poblacionSocio = $fila['poblacion'];\n\t\t\t\t\t\tif($poblacionSocio == '') $poblacionSocio = \"No registrado\";\n\t\t\t\t\t\t$grupoEtnicoSocio = $fila['grupo_etnico'];\n\t\t\t\t\t\tif($grupoEtnicoSocio == '') $grupoEtnicoSocio = \"No registrado\";\n\n\t\t\t\t\t\t$sqlRucOrgSocio = \"select ruc_definitivo, ruc_provisional, organizacion, actividad, categoria_actividad_mp, identificacion_actividad_mp from u_organizaciones where cod_u_organizaciones = \" . $fila['cod_u_organizaciones'];\n\t\t\t\t\t\t//echo $sqlRucOrgSocio . \"<br>\";\n\t\t\t\t\t\t$resSqlRucOrgSocio = query($sqlRucOrgSocio);\n\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resSqlRucOrgSocio))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$rucSocio = $fila1['ruc_definitivo'] . \" - \" . $fila1['ruc_provisional'];\n\t\t\t\t\t\t\t$orgSocio = $fila1['organizacion'];\n\t\t\t\t\t\t\t$actividadOrgSocio = $fila1['actividad'];\n\t\t\t\t\t\t\t$categoriaOrgSocio = $fila1['categoria_actividad_mp'];\n\t\t\t\t\t\t\t$identificacionCategoriaOrgSocio = $fila1['identificacion_actividad_mp'];\n\t\t\t\t\t\t} \n\n\t\t\t\t\t\t$sqlFortalecimiento = \"select e.campo_fortalecimiento, e.cod_evento from eventos_u_organizaciones ev inner join eventos e on (e.cod_evento = ev.cod_evento) where ev.cod_u_organizaciones = \" . $fila['cod_u_organizaciones'] . \" and month(e.fecha_reporte) = \" . $mesSel . \" and e.anio = \" . $anioCurso . \" group by e.campo_fortalecimiento\";\n\t\t\t\t\t\t$resFortalecimiento = query($sqlFortalecimiento);\n\t\t\t\t\t\t$aux = 0;\n\t\t\t\t\t\twhile($fila1 = mysql_fetch_array($resFortalecimiento))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//se tiene que revisar si hay mas de un evento relacionado con esta org\n\t\t\t\t\t\t\tif($aux == 0) $campoFortalecimiento .= $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\telse $campoFortalecimiento .= \" - \" . $fila1['campo_fortalecimiento'];\n\t\t\t\t\t\t\t$aux++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif($numRegistros == 0)\n\t\t\t\t{\n\t\t\t\t\t// No es un asistente que pertnezca a una organizacion\n\t\t\t\t\t$rucSocio = \"No pertenece a una ORG/UEP\";\n\t\t\t\t\t$orgSocio = \"No pertenece a una ORG/UEP\";\n\t\t\t\t\t$actividadOrgSocio = \"No pertenece a una ORG/UEP\";\n\t\t\t\t\t$categoriaOrgSocio = \"No pertenece a una ORG/UEP\";\n\t\t\t\t\t$identificacionCategoriaOrgSocio = \"No pertenece a una ORG/UEP\";\n\t\t\t\t\t$sqlAsisten = \"select cod_provincia, cedula, apellidos, campo_fortalecimiento, genero, grupo_etnico, poblacion from asistentes where cedula = '\" . $valor . \"' and month(fecha_reporte) = \" . $mesSel . \" and year(fecha_reporte) = \" . $anioCurso . \" and anio = \" . $anioCurso;\n\t\t\t\t\t$resAsisten = query($sqlAsisten);\n\t\t\t\t\twhile($fila = mysql_fetch_array($resAsisten))\n\t\t\t\t\t{\n\t\t\t\t\t\t$provNombre = GetNombreProvincia($zonaSel, $fila['cod_provincia']);\n\t\t\t\t\t\t$cedulaSocio = $valor;\n\t\t\t\t\t\t$apellidosSocio = $fila['apellidos'];\n\t\t\t\t\t\t$campoFortalecimiento = $fila['campo_fortalecimiento'];\n\t\t\t\t\t\t$generoSocio = $fila['genero'];\n\t\t\t\t\t\tif($generoSocio == '') $generoSocio = \"No registrado\";\n\t\t\t\t\t\t$poblacionSocio = $fila['poblacion'];\n\t\t\t\t\t\tif($poblacionSocio == '') $poblacionSocio = \"No registrado\";\n\t\t\t\t\t\t$grupoEtnicoSocio = $fila['grupo_etnico'];\n\t\t\t\t\t\tif($grupoEtnicoSocio == '') $grupoEtnicoSocio = \"No registrado\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$indice = $cont + 1;\n\n\t\t\t\t$lineasTabla .= \"<tr>\n\t\t\t\t\t\t\t\t\t<td>\" . $indice . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $nomMes . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $zonaSel . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $provNombre . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $rucSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $cedulaSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $apellidosSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $generoSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $grupoEtnicoSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $poblacionSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $orgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $actividadOrgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $categoriaOrgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $identificacionCategoriaOrgSocio . \"</td>\n\t\t\t\t\t\t\t\t\t<td>\" . $campoFortalecimiento . \"</td>\t\t\t\t\t\n\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t\t$cont++;\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tabla .= \"<tr>\n\t\t\t\t\t\t<td>ESTE INDICADOR TIENE 0 REGISTROS REPORTADOS</td>\n\t\t\t\t\t</tr>\";\n\t\t}\n\n\n\n\t}\n\t$resultadoFinal = $tablaHeader . $lineasTabla;\n\treturn $resultadoFinal;\n}", "function showMenu(){\n\t\t//\t con su respectivo tipo\n\n\t\t\t$cadena_sql=$this->sql->cadena_sql(\"userByID\",$this->idUser);\n\t\t\t$user=$this->miRecursoDB->ejecutarAcceso($cadena_sql,\"busqueda\");\n\n\t\t\t$cadena_sql=$this->sql->cadena_sql(\"commerceByUser\",$this->idUser);\n\t\t\t$commerceList=$this->miRecursoDB->ejecutarAcceso($cadena_sql,\"busqueda\");\n\t\t\t$total=count($commerceList);\n\n\t\t//2. Traigo listado de tipos de comercio\n\n\t\t\t$cadena_sql=$this->sql->cadena_sql(\"commerceTypes\",$this->idUser);\n\t\t\t$commerceTypes=$this->miRecursoDB->ejecutarAcceso($cadena_sql,\"busqueda\");\n\t\t\t$commerceTypes=$this->orderArrayKeyBy($commerceTypes,'IDTYPE',TRUE);\n\n\t\t//3. Separo comercios dependiendo del tipo\n\n\t\t\t$commercesByType=$this->orderArrayKeyBy($commerceList,'TYPECOMMERCE');\n\t\t\t/*echo \"<pre>\";\n\t\t\tvar_dump($commercesByType);\n\t\t\techo \"</pre>\";*/\n\n\t\t//4. Verifico si existe alguna peticion de tipo de comercio o si esta almacenado en sesion\n\n\t\t\t$typeSession=$this->miSesion->getValorSesion('typecommerce');\n\n\t\t\tif(isset($_REQUEST['typecommerce'])){\n\t\t\t\t$currentType=$_REQUEST['typecommerce'];\n\t\t\t}elseif($typeSession<>\"\"){\n\t\t\t\t$currentType=$typeSession;\n\t\t\t}else{\n\t\t\t\t$currentType=$commerceList[0]['TYPECOMMERCE'];\n\t\t\t}\n\n\n\t\t//5.Filtro comercios de acuerdo al actual tipo\n\t\t// y los tipos de acuerdo a los tipos permitidos\n\n\t\t\t$commerceList=$commercesByType[$currentType];\n\t\t\t$typesList=array_keys($commercesByType);\n\n\t\t//6.Verifico si existe algun comercio almacenado en sesion\n\n\t\t\t$commerce=$this->miSesion->getValorSesion('commerce');\n\n\n\t\t\tif(!isset($_REQUEST['commerce']) || $_REQUEST['commerce']==\"\"){\n\t\t\t\t$_REQUEST['commerce']=$commerceList[0]['IDCOMMERCE'];\n\t\t\t}\n\n\t\tif($this->miSesion->getValorSesion('dbms')==\"\"){\n\n\t\t\t$this->miSesion->guardarValorSesion('commerce',$_REQUEST['commerce']);\n\t\t\t$this->miSesion->guardarValorSesion('typecommerce',$currentType);\n\t\t\t$this->miSesion->guardarValorSesion('dbms',$commerceList[0]['DBMS']);\n\n\t\t\t//echo \"<script>location.reload()</script>\";\n\n\t\t}\n\n\t\tif(!isset($_REQUEST['saramodule'])){\n\n\t\t\t$formSaraData=\"pagina=\".$this->miConfigurador->getVariableConfiguracion(\"pagina\");\n\t\t\t$formSaraData.=\"&saramodule=\".$commerceList[0]['DBMS'];\n\t\t\t$formSaraData=$this->miConfigurador->fabricaConexiones->crypto->codificar_url($formSaraData,$this->enlace);\n\t\t\techo \"<script>location.replace('\".$formSaraData.\"')</script>\";\n\t\t}\n\n\t\t$formSaraDataCommerce=\"bloque=master\";\n\t\t$formSaraDataCommerce.=\"&bloqueGrupo=gui\";\n\t\t$formSaraDataCommerce.=\"&currentPage=\".$this->miConfigurador->getVariableConfiguracion(\"pagina\");\n\t\t$formSaraDataCommerce.=\"&currentModule=\".$this->miConfigurador->getVariableConfiguracion(\"module\");\n\t\t$formSaraDataCommerce.=\"&action=master\";\n\t\t$formSaraDataCommerce=$this->miConfigurador->fabricaConexiones->crypto->codificar($formSaraDataCommerce);\n\n\t\t/*\n\t\t$menuList=$this->orderArrayKeyBy($menuList,\"PADRE\");\n\n\t\t$cadena_sql=$this->sql->cadena_sql(\"roleList\");\n\t\t$roleList=$this->miRecursoDB->ejecutarAcceso($cadena_sql,\"busqueda\");\n\t\t*/\n\t\t$linkEnd=$userName=$rutaTema=\"\";\n\n\t\tif($total>1){\n\t\t\tinclude_once($this->ruta.\"/html/menu.php\");\n\t\t}\n\t}", "public function ledenOverzicht() {\n if (!$this->authex->loggedIn()) {\n redirect('home/login');\n }\n\n $data['title'] = 'Leden beheren';\n $data['auteur'] = 'Stefanie Seker';\n $data['nobox'] = true; // geen extra rand rond hoofdmenu\n $data['user'] = $this->authex->getUserInfo();\n\n $partials = array('header' => 'main_header', 'content' => 'ledenlijst', 'menu' => 'main_menu');\n $this->template->load('main_master', $partials, $data);\n }", "function index() {\n #Création d'un objet Data\n $data = new Data();\n #On récupère la vue correspondante\n $data->content = \"homeView.php\";\n #On crée le bouton Home du menu\n $data->menu['Home'] = \"index.php\";\n #On crée le bouton A propos du menu\n $data->menu['A Propos'] = \"index.php?action=aPropos\";\n #On définit la taille par défaut des images\n $size = 480;\n #On crée le bouton Voir photos du menu qui permet de voir les photos\n $data->menu['Voir Photos'] = \"index.php?controller=photo&action=index&size=$size\";\n #On vérifie qu'un utilisateur est connecté\n #Si aucun utilisateur est connecté on crée les boutons Identification est S'inscrire\n if(!isset($_SESSION['id'])) {\n $data->menuHeader['Identification'] = \"index.php?controller=login&action=index\";\n $data->menuHeader['S\\'inscrire'] = \"index.php?controller=inscription&action=index\";\n #Sinon on crée un bouton déconnexion\n } else {\n $data->menuHeader['Déconnexion'] = \"index.php?controller=login&action=deconnexion\";\n }\n #On récupère la vue principale\n require_once \"view/mainView.php\";\n }", "function PCO_PresentarTareaKanban($RegistroTareas,$ColumnasDisponibles,$ID_TableroKanban,$ResultadoColumnas)\n\t\t{\n\t\t global $PCO_FechaOperacion,$TablasCore;\n\t\t global $MULTILANG_FechaLimite,$MULTILANG_AsignadoA,$MULTILANG_InfCategoria,$MULTILANG_DelKanban,$MULTILANG_Finalizado;\n \n $EtiquetaIconoTareas= \"<i href='javascript:return false;' class='fa fa-fw fa-thumb-tack' data-toggle='tooltip' data-placement='top' title='\".$RegistroTareas[\"categoria\"].\"' ></i>\";\n $EtiquetaPersonas= \"<i href='javascript:return false;' class='fa fa-fw fa-users' data-toggle='tooltip' data-placement='top' title='\".$MULTILANG_AsignadoA.\": \".$RegistroTareas[\"asignado_a\"].\"' ></i>\";\n $EtiquetaCalendario=\"<i href='javascript:return false;' class='fa fa-fw fa-calendar' data-toggle='tooltip' data-placement='top' title='\".$MULTILANG_FechaLimite.\": \".$RegistroTareas[\"fecha\"].\"' ></i>\";\n\n\t\t\t//Busca avatar del responsable\n\t $ComplementoImagenPerfil='<i class=\"fa fa-user-circle-o fa-fw fa-2x\"></i>';\n\t //Busca si el usuario tiene imagen de perfil\n\t $PartesFotoUsuario=explode(\"|\",PCO_EjecutarSQL(\"SELECT avatar FROM {$TablasCore}usuario WHERE login='\".$RegistroTareas[\"asignado_a\"].\"' \")->fetchColumn());\n\t $RutaFotoUsuario=$PartesFotoUsuario[0];\n\t if ($RutaFotoUsuario!=\"\")\n\t\t $ComplementoImagenPerfil=\"<img src='{$RutaFotoUsuario}' style='width:25px; height:25px; border-radius: 50%; margin-top:0px; margin-bottom:0px;'>\";\n\t\t\t\t \n\n\n\t\t //Determina el estilo por defecto para el cuadro\n\t\t $EstiloCuadro=$RegistroTareas[\"estilo\"];\n //Genera la salida\n $AccionesTarea=PCO_AgregarFuncionesEdicionTarea($RegistroTareas,$ColumnasDisponibles,$ID_TableroKanban,$ResultadoColumnas);\n\n $EventoComplemento='onmouseenter=\"$(this).css(\\'border\\', \\'1px solid\\'); $(this).css(\\'border-color\\', \\'#ff0000\\'); //c2a7a7\n $(\\'#PCOEditorContenedor_Col'.$RegistroTareas[\"columna\"].'_'.$RegistroTareas[\"id\"].'\\').css({\\'visibility\\':\\'visible\\'});\n $(\\'#PCOEditorContenedor_Col'.$RegistroTareas[\"columna\"].'_'.$RegistroTareas[\"id\"].'\\').css({\\'display\\':\\'block\\'}); \"\n onmouseleave=\"$(this).css(\\'border\\', \\'0px solid\\'); $(\\'#PCOEditorContenedor_Col'.$RegistroTareas[\"columna\"].'_'.$RegistroTareas[\"id\"].'\\').css({\\'visibility\\':\\'hidden\\'}); $(\\'#PCOEditorContenedor_Col'.$RegistroTareas[\"columna\"].'_'.$RegistroTareas[\"id\"].'\\').css({\\'display\\':\\'none\\'}); \"';\n\n $Salida = '\n <div id=\"Dragable'.$RegistroTareas[\"id\"].'\" draggable=\"true\" ondragstart=\"Arrastrar(event,'.$RegistroTareas[\"id\"].')\">\n <div class=\"panel panel-'.$EstiloCuadro.'\" '.$EventoComplemento.'>\n <div class=\"panel-heading\">\n <div class=\"row\">\n <div>&nbsp;\n '.$ComplementoImagenPerfil.'\n '.$EtiquetaIconoTareas.'\n '.$EtiquetaCalendario.'\n '.$EtiquetaPersonas.'\n &nbsp;&nbsp;<i>'.$MULTILANG_Finalizado.'</i>\n <select id=\"porcentaje\" name=\"porcentaje\" style=\"color:darkblue; font-weight: bold; border:0px; background-color: transparent;\" onchange=\"document.location=\\''.$ArchivoCORE.'?PCO_Accion=cambiar_estado_campo&id='.$RegistroTareas[\"id\"].'&tabla=kanban&campo=porcentaje&accion_retorno=PCO_ExplorarTablerosKanban&ID_TableroKanban='.$ID_TableroKanban.'&valor=\\'+this.value;\">';\n for ($i=0;$i<=100;$i++)\n {\n $EstadoSeleccion=\"\";\n if ($i==$RegistroTareas[\"porcentaje\"])\n $EstadoSeleccion=\"SELECTED\";\n $Salida .= '<option value=\"'.$i.'\" '.$EstadoSeleccion.'>'.$i.'%</option>';\n }\n $Salida .=' </select>\n </div>\n <div class=\"text-center\">\n <div class=\"btn-xs\">\n <b>'.$RegistroTareas[\"titulo\"].'</b>\n </div>\n </div>\n <div class=\"text-left\">\n <div class=\"btn-xs\">\n <hr style=\"border-top: 1px dotted; margin:0; padding:0;\">\n '.nl2br($RegistroTareas[\"descripcion\"]).'\n </div>\n </div>\n <div class=\"text-center\">\n '.$AccionesTarea.'<br>\n </div>\n </div>\n </div>\n </div>\n </div>';\n return $Salida;\n\t\t}", "public function recordacoes(){\n $this->validaAutenticacao();\n $comentario = Container::getModel('Comentarios');\n $this->view->comentarios = $comentario->getComentariosNaoAprovado();\n\n $vitimas = Container::getModel('Vitimas');\n $this->view->vitimas = $vitimas->getAllDashboard();\n\n $this->menu();\n $this->render('recordacoes', 'layout-dashboard');\n }", "function sobre_planeacion($minimoMes,$maximoMes,$vigencia,$unidades,$tipo_usuario)\n\t\t{\n\t\t\t//$tipo_usuario ALMACENA EL TIPO DE USUARIO( I O E), EN UN ARRAY, ESTE SE CARGA EN LA PAGINA DE PLANEACION DE PROYECTOS (upHTplaneacionProy.PHP)\t\n//echo $unidades[0].\" - $minimoMes - $maximoMes - $vigencia ********************** <br><br>\";\n\t\t?>\n\n<?\t\t\n\t\t$ban_reg=0; //PERMITE IDENTIFICAR, SI SE ENCONTRO ALMENOS, UN USUARIO SOBRE PLANEADO, DE NO SER ASI, NO SE ENVIA EL CORREO\n\t\t$pTema ='<table width=\"100%\" border=\"0\">\n\t\t <tr class=\"Estilo2\" >\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td width=\"5%\" >Asunto:</td>\n\t\t\t<td >Sobre planeaci&oacute;n de participantes.</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t \n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\">Los siguientes participantes, tienen una dedicaci&oacute;n superior a 1 en los siguientes proyectos:</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t </tr>\n\t\t\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\" >\n\t\t\t\t<table width=\"100%\" border=\"1\" >\n\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td colspan=\"5\"></td>\n\t\t\t\t\t<td colspan=\"'.(($maximoMes-$minimoMes)+1).'\" align=\"center\" >'.$vigencia.'</td>\n\t\t\t\t </tr>\t\t\t\t\n\t\t\t\t\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td>Unidad</td>\n\t\t\t\t\t<td>Nombre</td>\n\t\t\t\t\t<td>Departamento</td>\n\t\t\t\t\t<td>Divisi&oacute;n</td>\n\t\t\t\t\t<td>Proyecto</td>';\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$vMeses= array(\"\",\"Ene\",\"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\"); \n\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t{\n\n\t\t\t\t\t $pTema = $pTema.'<td>'.$vMeses[$m].' </td>';\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t $pTema = $pTema.' </tr>';\n\t\t\t\t$cur_tipo_usu=0; //CURSOR DEL ARRAY, DEL TIPO DE USUARIO \n\t\t\t\tforeach($unidades as $unid)\n\t\t\t\t{\n//tipo_usuario\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"I\")\t\n\t\t\t\t\t{\n\t\t\t\t\t//CONSULTA SI EL USUARIO ESTA SOBREPLANEADO EN ALMENOS, UN MES DURANTE LA VIGENCIA\n\n\t\t\t\t\t//COSNULTA PARA LOS USUARIOS INTERNOS\n\t\t\t\t\t\t\t$sql_planea_usu=\"select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, Usuarios.nombre, \n\t\t\t\t\t\t\t\t\t\t\tUsuarios.apellidos ,Divisiones.nombre as div,Departamentos.nombre as dep\n\t\t\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t\t inner join Usuarios on PlaneacionProyectos.unidad=Usuarios.unidad \n\t\t\t\t\t\t\t\t\t\t\t inner join Departamentos on Departamentos.id_departamento=Usuarios.id_departamento \n\t\t\t\t\t\t\t\t\t\t\t inner join Divisiones on Divisiones.id_division=Departamentos.id_division \n\t\t\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \"; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\t\t//PlaneacionProyectos.id_proyecto,\t\t\t\t\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\t\t\tand esInterno='I'\n\t\t\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,Usuarios.nombre, Usuarios.apellidos,Divisiones.nombre ,Departamentos.nombre \n\t\t\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"E\")\t\n\t\t\t\t\t{\n\t\t\t\t\t\t//COSNULTA PARA LOS USUARIOS EXTERNOS\n\t\t\t\t\t\t$sql_planea_usu=\" select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, TrabajadoresExternos.nombre, \n\t\t\t\t\t\t\t\t\tTrabajadoresExternos.apellidos,'' div, ''dep\n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t inner join TrabajadoresExternos on PlaneacionProyectos.unidad=TrabajadoresExternos.consecutivo \n\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\tand esInterno='E'\n\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,TrabajadoresExternos.nombre, TrabajadoresExternos.apellidos\n\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \t\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$cur_planea_usu=mssql_query($sql_planea_usu);\n//echo $sql_planea_usu.\" ---- <br>\".mssql_get_last_message().\" *** \".mssql_num_rows($cur_planea_usu).\"<br>\";\n\t\t\t\t\twhile($datos__planea_usu=mssql_fetch_array($cur_planea_usu))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ban_reg=1; //SI ENCUENTRA ALMENOS UN USUARIO SOBREPLANEADO, ENVIA EL CORREO\n\t\t\t\t\n\t\t\t\t\t\t//CONSULTA LOS PROYECTOS, EN LOS CUALES EL PARTICIAPENTE HA SIDO PLANEADO, ESTO PARA PODER DOBUJAR LA TABLA DE FORMA CORRECTA\n\t\t\t\t\t\t$sql_uu=\" select distinct(id_proyecto),nombre,codigo,cargo_defecto from (select SUM (hombresMes) as total_hombre_mes ,unidad, mes,PlaneacionProyectos.id_proyecto ,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto \n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos\n\t\t\t\t\t\t\t\t\t\tinner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sql_uu=$sql_uu.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]=0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql_uu=$sql_uu.\"0) and unidad in(\".$unid.\") and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by unidad, mes , PlaneacionProyectos.id_proyecto,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto ) aa \";\n// HAVING (SUM (hombresMes)\t>1\t\n\t\t\t\t\t\t$cur_uu=mssql_query($sql_uu);\n\t\t\t\t\t\t$cant_proy=mssql_num_rows($cur_uu);\n//echo \"<br><BR>---//**************--------------\".$sql_uu.\" \".mssql_get_last_message().\"<br>\".$cant_proy.\"<br>\";\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t<?\n\t\t\t\t//echo $sql_proy_planea.\" ---- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\n\t\t\t\t\t\t$total_planeado= array();\n\t\t\t\t\t\t$cont=0;\n\t\t\t\t\t\twhile($datos_uu=mssql_fetch_array($cur_uu))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($cont==0)\n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\t\t\t\t\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \"> '.$datos__planea_usu[\"unidad\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'.$datos__planea_usu[\"apellidos\"].' '.$datos__planea_usu[\"nombre\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"dep\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"div\"].' </td>';\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" >['.$datos_uu[\"codigo\"].'.'.$datos_uu[\"cargo_defecto\"].'] '. $datos_uu[\"nombre\"].' </td>';\n\n\t\t\t\t\t\t\t//CONSULTA LA INFORMACION DE LO PLANEADO EN CADA MES, DE ACUERDO AL PORYECTO CONSULTADO\n\t\t\t\t\t\t\t$sql_pro=\"select SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.id_proyecto,PlaneacionProyectos.unidad,mes\n\t\t\t\t\t\t\t\t\t\t from PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and PlaneacionProyectos.unidad=\".$unid.\" and id_proyecto=\".$datos_uu[\"id_proyecto\"].\" and mes in(\";\n\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" 0) and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by PlaneacionProyectos.id_proyecto ,PlaneacionProyectos.unidad ,mes order by (mes) \";\n// HAVING (SUM (hombresMes))>1\n\t\t\t\t\t\t\t$cur_proy_planea=mssql_query($sql_pro);\n//\t\t\t\techo $sql_pro.\" --22222222222-- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\t\t\t$m=$minimoMes;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($datos_proy_planea=mssql_fetch_array($cur_proy_planea))\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tfor ($m;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($datos_proy_planea[\"mes\"]==$m)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]+=( (float) $datos_proy_planea[\"total_hombre_mes\"]);\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" align=\"right\" >'.((float) $datos_proy_planea[\"total_hombre_mes\"] ).'</td>';\n\n\t\t\t\t\t\t\t\t\t\t$m=$datos_proy_planea[\"mes\"];\n\t\t\t\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t\t\t\t\tbreak;\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\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp; </td>';\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\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$m--;\n\t\t\t\t\t\t\tfor ($m++;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t$cont++;\n\t\t\t\t\t\t\tunset($datos_proy_planea);\n\n\t\t\t\t\t\t\t $pTema = $pTema.' </tr>';\n\n\t\t\t\t//\t\t\techo $datos_proy_planea[\"total_hombre_mes\"].\"<br>\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\n\t\t\t\t\t\t<td colspan=\"4\" >&nbsp;</td>\n\n\t\t\t\t\t\t<td>Total planeaci&oacute;n</td>';\n\n\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($total_planeado[$m]==0)\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>'.$total_planeado[$m].'</td>';\n\t\t\t\t\t\t}\n \n\t\t\t\t\t $pTema = $pTema.' </tr>\n\t\t\t\t\t <tr >\n\t\t\t\t\t\t<td colspan=\"17\">&nbsp;</td>\n\t\t\t\t\t </tr>\t';\n\n\t\t\t\t\t}\n\t\t\t\t\t$cur_tipo_usu++;\n\t\t\t\t}\n\t\t\t\t$pTema = $pTema.'\n\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t </tr>\n\t\t<tr class=\"Estilo2\"><td colspan=\"2\" >Para consultar en detalle la planeaci&oacute;n de un participante, en un proyecto especifico, utilice el reporte Usuarios por proyecto, accediendo a el, atravez del boton Consolidados por divisi&oacute;n, ubicado en la parte superior de la pagina principal de la planeaci&oacute;n por proyectos. </td></tr>\n\t\t</table>';\n\n\t\t/*\n\t\t\t\t//consulta la unidad del director y el coordinador de proyecto\n\t\t\t\t$sql=\"SELECT id_director,id_coordinador FROM HojaDeTiempo.dbo.proyectos where id_proyecto = \" . $cualProyecto.\" \" ;\n\t\t\t\t$eCursorMsql=mssql_query($sql);\n\t\t\t\t$usu_correo= array(); //almacena la unidad de los usuarios a los que se le enviara el correo\n\t\t\t\t$i=1;\n\t\t\t\twhile($datos_dir_cor=mssql_fetch_array($eCursorMsql))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_coordinador\"];\n\t\t\t\t\t$i++;\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_director\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\n\t\t\t\t//consulta la unidad porgramadores y ordenadores de gasto\t\t\t\n\t\t//select unidad from HojaDeTiempo.dbo.Programadores where id_proyecto=\".$cualProyecto.\" union\n\t\t\t\t$sql_pro_orde=\" select unidadOrdenador from GestiondeInformacionDigital.dbo.OrdenadorGasto where id_proyecto=\".$cualProyecto;\n\t\t\t\t$cur_pro_orde=mssql_query($sql_pro_orde);\n\t\t\t\twhile($datos_pro_orde=mssql_fetch_array($cur_pro_orde))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_pro_orde[\"unidad\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\t\t\t\n\t\t\n\t\t\t\t$i=0;\n\t\t\t\t//consulta el correo de los usuarios(director,cordinador,ordenadroes de G, y programadores) asociados al proyecto\n\t\t\t\t$sql_usu=\" select email from HojaDeTiempo.dbo.Usuarios where unidad in(\";\n\t\t\t\tforeach($usu_correo as $unid)\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$sql_usu=$sql_usu.\" \".$unid;\t\t\n\t\t\t\t\t\t$i=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" ,\".$unid;\n\t\t\t\t}\n\t\t\t\t$sql_usu=$sql_usu.\") and retirado is null\";\n\t\t\t\t$cur_usu=mssql_query($sql_usu);\t\t\t\t\n\t\t\n\t\t\t\t//se envia el correo a el director, cordinador, orenadores de gasto, y programadores del proyecto\t\n\t\t\t\twhile($eRegMsql = mssql_fetch_array($cur_usu))\n\t\t\t\t{\t\t\n\t\t\t\t $miMailUsuarioEM = $eRegMsql[email] ;\n\t\t\t\n\t\t\t\t //***EnviarMailPEAR\t\n\t\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\n\t\t\t\n\t\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\n\t\t\t\n\t\t\t\t //***FIN EnviarMailPEAR\n\t\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t\n\t\t\t\t}\n\t\t*/\n\t\t\tif($ban_reg==1) //SEW ENVIA EL CORREO SI EXISTE ALMENOS UN USUARIO SOBREPLANEADO\n\t\t\t{\n\t\t///////////////////////////**********************************************************PARA QUITAR\n\t\t\t $miMailUsuarioEM = 'carlosmaguirre'; //$eRegMsql[email] ;\t\n\t\t\t\t$pAsunto='Sobre planeaci&oacute;n de proyectos';\n\t\t\t //***EnviarMailPEAR\t\n\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\t\n\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\t\n\t\t\t //***FIN EnviarMailPEAR\n\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t}\n\t\t\n\t\t?>\n\n<?\n}", "public function listtabelPngAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('PENGADAAN');\n }", "function index() {\n global $autorias;\n global $autores;\n global $livros;\n $autorias = buscarRegistros('tab_autorias');\n $autores = buscarRegistros('tab_autor');\n $livros = buscarRegistros('tab_livro');\n }", "public function index(){\n\t\t$this->accueil();\n\t}", "public function actividadesPorSegmento()\n {\n //\n }", "function cl_habitcandidatointeresseprograma() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"habitcandidatointeresseprograma\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function inativarregistroAction()\n\t{\n\n\t}", "public function carganoticiaspublic_ini(){\n\t\t$informacion=DB::table('MODBID_INFORMACIONPUBLIC')\t\t\t\t\t\t\n\t\t\t\t\t\t->select(DB::RAW('id,titulo,texto,foto,tipo,created_at,updated_at,id_usuario,fecha_noticia'))\n\t\t\t\t\t\t->where('borrado','=',0)\n\t\t\t\t\t\t->orderby('fecha_noticia')\n\t\t\t\t\t\t->get();\n\n\t\treturn View::make('modulobid/vista1',array('informacion'=>$informacion));\n\t}", "public function getMenu();", "function show_all_messages($board){\n\t\tglobal $print, $x7s, $x7c, $db, $prefix;\n\n\t\t$head=\"Board \".$board['name'];\n\t\t$body=\"<script language=\\\"javascript\\\" type=\\\"text/javascript\\\">\n function do_delete(url){\n if(!confirm('Vuoi davvero cancellare il messaggio?'))\n return;\n\n window.location.href=url;\n }\n </script>\n\t\t\";\n\t\t$indice = indice_board();\n\t\t\n\t\t$maxmsg=10;\n\t\t$navigator='<p style=\"text-align: center;\">';;\n\t\t\n\t\tif(isset($_GET['startfrom'])){\n\t\t\t$limit=$_GET['startfrom'];\n\t\t}\n\t\telse\n\t\t\t$limit=0;\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT count(*) AS total FROM {$prefix}boardmsg WHERE board='{$board['id']}' AND father='0'\");\n\t\t$row = $db->Do_Fetch_Assoc($query);\n\t\t$total = $row['total'];\n\t\t\n\t\tif($total > $maxmsg){\n\t\t\t$i=0;\n\t\t\twhile($total > 0){\n\t\t\t\tif((isset($_GET['startfrom']) && $_GET['startfrom'] == $i) || (!isset($_GET['startfrom']) && $i == 0))\n\t\t\t\t\t$navigator .= \"<a href=\\\"index.php?act=boards&board=$board[id]&startfrom=$i\\\"><b>[\".($i+1).\"]</b></a> \";\n\t\t\t\telse\n\t\t\t\t\t$navigator .= \"<a href=\\\"index.php?act=boards&board=$board[id]&startfrom=$i\\\">\".($i+1).\"</a> \";\n\t\t\t\t$i++;\n\t\t\t\t$total -= $maxmsg;\n\t\t\t\t\n\t\t\t}\n\t\t\t$navigator.=\"</p>\";\n\t\t}\n\t\t\n\t\t\t\n\t\t$limit_min = $limit * $maxmsg;\n\t\t$limit_max = $maxmsg;\t\t\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT * FROM {$prefix}boardmsg \n\t\t\t\tWHERE board='{$board['id']}' \n\t\t\t\tAND father='0' ORDER BY last_update DESC LIMIT $limit_min, $limit_max\");\n\n\t\t\n\t\tif(!$board['readonly'] || checkIfMaster()){\n\t\t\t$body .=\"<a href=./index.php?act=boards&send=\".$board['id'].\">Nuova comunicazione</a><br>\";\n\t\t}\n\t\t\n\t\t$body.=$navigator;\n\t\t$unreads = get_unread();\n\t\twhile($row = $db->Do_Fetch_Assoc($query)){\n\t\t\t$q_new = $db->DoQuery(\"SELECT count(*) AS cnt FROM {$prefix}boardmsg msg, {$prefix}boardunread un\n\t\t\t\t\t\tWHERE\tmsg.id=un.id\n\t\t\t\t\t\tAND un.user='{$x7s->username}'\n\t\t\t\t\t\tAND board='{$board['id']}' AND father='$row[id]'\");\n\t\t\t$new_replies = $db->Do_Fetch_Assoc($q_new);\n\t\t\t\n\t\t\t$unread='';\n\t\t\tif(isset($unreads[$row['id']]))\n\t\t\t\t$unread = \"<b>(Nuovo) </b>\";\n\n\t\t\tif($new_replies['cnt']>0){\n\t\t\t\t$unread .= \"<b>(Nuove repliche: $new_replies[cnt])</b>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nb = board_msg_split($row['body']);\n\t\t\t$msg = $nb[0];\n\t\t\t$object = $nb[1];\n\t\t\t$msgid=$row['id'];\n\t\t\t$user=$row['user'];\n\n\t\t\tif ($row['anonymous']) {\n\t\t\t\tif (checkIfMaster()) {\n\t\t\t\t\t$user .= \" (anonimo)\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$user = \"Anonimo\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$body.=\"<p>\".$user.\"<br><a href=./index.php?act=boards&board=\".$board['id'].\"&message=\".$row['id'].\">\n\t\t\t\t <b>\".$object.\"</b> \".$unread.\"</a>\";\n\t\t\t\t\n\t\t\tif(checkIfMaster()){\n\t\t\t\t$startfrom = \"\";\n\t\t\t\tif (isset($_GET['startfrom']))\n\t\t\t\t\t$startfrom = \"&startfrom=\".$_GET['startfrom'];\n\n\t\t\t\t$body.=\" <a href=\\\"#\\\" onClick=\\\"javascript: do_delete('./index.php?act=boards&delete=$msgid$startfrom')\\\">[Delete]</a>\";\n\t\t\t\t$body.=\" <a href=./index.php?act=boards&move=$msgid>[Sposta]</a>\";\n }\n\t\t\t\n\t\t\t$body.=\"</p><hr>\";\n\t\t\n\t\t}\n\t\t$body.=$navigator;\n\t\tif(!$board['readonly'] || checkIfMaster()){\n\t\t\t$body .=\"<br><br><a href=./index.php?act=boards&send=\".$board['id'].\">Nuova comunicazione</a><br>\";\n\t\t}\n\t\t\n\t\t$print->board_window($head,$body,$indice);\n\t\t\n\t}", "public function pasaje_abonado();", "public function getDisplay();", "function generar_layout() {\r\n //Es imprescindible especificar la extension del archivo que estamos abriendo, caso contrario dicho\r\n //archivo no se puede abrir.\r\n// $ruta=\"C:/Users/Bruno/Desktop/mosaico_de_japon.png\";\r\n// print_r($ruta);\r\n \r\n //abrimos el achivo en modo lectura para transferir su contenido al archivo temporal\r\n// $fp= fopen($ruta, 'r');\r\n \r\n //obtenemos una ruta a un directorio temporal\r\n// $img=toba::proyecto()->get_www_temp('mosaico_de_japon.png');\r\n \r\n //abrimos el archivo temporal en modo escritura para guardar el contenido de $fp\r\n// $temp_fp= fopen($img['path'], 'w');\r\n //copiamos el contenido de $fp en $temp_fp\r\n// stream_copy_to_stream($fp, $temp_fp);\r\n //cerramos $temp_fp y $fp\r\n// fclose($temp_fp);\r\n// fclose($fp);\r\n// print_r($img);\r\n \r\n //imprimimos la imagen en la pantalla\r\n// echo \"<img src='{$img['url']}'>\";\r\n// ------------------------------------------------------------------------------------------------ \r\n \r\n //desactivamos la pantalla pant_edicion\r\n $this->controlador()->pantalla()->tab('pant_edicion')->desactivar();\r\n \r\n //recuperamos el id_aula almacenado en el arreglo $_SESSION\r\n $id_aula=toba::memoria()->get_dato_operacion(1);\r\n //print_r(\"Este es el id_aula en memoria : \".$id_aula);\r\n \r\n //cargarmos el datos tabla aula con un unico registro\r\n $this->controlador()->dep('datos')->tabla('aula')->cargar(array('id_aula' => $id_aula));\r\n \r\n //obtenemos el registro almacenado en el datos tabla, lo que nos interesa es poder utilizar el\r\n //atributo x_dbr_clave\r\n $aula=$this->controlador()->dep('datos')->tabla('aula')->get();\r\n \r\n //obtenemos el blob almacenado el la bd, usando el atributo x_dbr_clave\r\n $fp_imagen=$this->controlador()->dep('datos')->tabla('aula')->get_blob('imagen', $aula['x_dbr_clave']);\r\n \r\n if(isset($fp_imagen)){\r\n \r\n //creamos un nombre temporal para el archivo de imagen que vamos a mostrar por pantalla\r\n $temp_nombre= md5(uniqid(time()));\r\n \r\n //obtenemos path y url del archivo temporal\r\n $temp_archivo=toba::proyecto()->get_www_temp($temp_nombre);\r\n //print_r($temp_archivo);\r\n \r\n //abrimos el archivo temporal en modo escritura para guardar el blob que sacamos de la bd\r\n $fp= fopen($temp_archivo['path'], 'w');\r\n //copiamos el contenido del blob almacenado en la bd a nuestro archivo temporal\r\n stream_copy_to_stream($fp_imagen, $fp);\r\n //cerramos el archivo temporal\r\n fclose($fp);\r\n \r\n echo \"<div style='background-color:#C5C4CB;border:2px solid;margin-bottom:10px;'><p style='font-size:15px'>{$aula['ubicacion']}</p></div>\";\r\n //pegamos la imagen en la pantalla usando la url del archivo temporal\r\n echo \"<div ><img src='{$temp_archivo['url']}' width='750px' height='400px' id=1></div>\";\r\n \r\n //reseteamos el datos tabla para que el cursor no quede posicionado en el mismo registro. \r\n //Si esto ocurre, en la pantalla, vamos a visualizar siempre la misma imagen\r\n $this->controlador()->dep('datos')->tabla('aula')->resetear();\r\n }\r\n \r\n }", "public function disponibilidadAction(){ \n if (isset($_REQUEST['asd'])) {\n header('Location:disponibilidad?mes=Marzo&dia=11');\n } \n //Aca empieza lo generico\n $horarios = array(1=>'08:00 a 08:30',2=>'08:30 a 09:00',3=>'09:00 a 09:30',4=>'09:30 a 10:00',5=>'10:00 a 10:30',\n 6=>'10:30 a 11:00',7=>'11:00 a 11:30 ',8=>'11:30 a 12:00',9=>'12:00 a 12:30',10=>'12:30 a 13:00',11=>'13:00 a 13:30',\n 12=>'13:30 a 14:00',13=>'14:00 a 14:30',14=>'14:30 a 15:00',15=>'15:00 a 15:30',16=>'15:30 a 16:00',17=>'16:00 a 16:30',\n 18=>'16:30 a 17:00',19=>'17:00 a 17:30',20=>'17:30 a 18:00',21=>'18:00 a 18:30',22=>'18:30 a 19:00',23=>'19:00 a 19:30',\n 24=>'19:30 a 20:00',25=>'20:00 a 20:30',26=>'20:30 a 21:00',27=>'21:00 a 21:30',28=>'21:30 a 22:00',29=>'22:00 a 22:30',30=>'22:30 a 23:00');\n //Arreglar\n $arrayDeTranformacion = array('08:00 a 08:30'=>1,'08:30 a 09:00'=>2,'09:00 a 09:30'=>3,'09:30 a 10:00'=>4,'10:00 a 10:30'=>5,\n '10:30 a 11:00'=>6,'11:00 a 11:30'=>7,'11:30 a 12:00'=>8,'12:00 a 12:30'=>9,'12:30 a 13:00'=>10,'13:00 a 13:30'=>11,\n '13:30 a 14:00'=>12,'14:00 a 14:30'=>13,'14:30 a 15:00'=>14,'15:00 a 15:30'=>15,'15:30 a 16:00'=>16,'16:00 a 16:30'=>17,\n '16:30 a 17:00'=>18,'17:00 a 17:30'=>19,'17:30 a 18:00'=>20,'18:00 a 18:30'=>21,'18:30 a 19:00'=>22,'19:00 a 19:30'=>23,'19:30 a 20:00'=>24,\n '20:00 a 20:30'=>25,'20:30 a 21:00'=>26,'21:00 a 21:30'=>27,'21:30 a 22:00'=>28,'22:00 a 22:30'=>29,'22:30 a 23:00'=>30); \n $elmesEnNumero= array('Enero'=>1,'Febrero'=>2,'Marzo'=>3,'Abril'=>4,'Mayo'=>5,'Junio'=>6,'Julio'=>7,\n 'Agosto'=>8,'Septiembre'=>9,'Octubre'=>10,'Noviembre'=>11,'Diciembre'=>12);\n $meses = array(1=>'Enero',2=>'Febrero',3=>'Marzo',4=>'Abril',5=>'Mayo',6=>'Junio',7=>'Julio',\n 8=>'Agosto',9=>'Septiembre',10=>'Octubre',11=>'Noviembre',12=>'Diciembre');\n $AnioActual = date('Y');\n $dias = 1;\n $MesesDe30 = array();\n $MeseDe31 = array();\n $Febrero = array();\n while ($dias < 32){\n $MeseDe31[$dias] = $dias;\n $dias = $dias + 1;\n }\n $dias = 1;\n while ($dias < 31){\n $MesesDe30[$dias] = $dias;\n $dias = $dias + 1;\n }\n $dias = 1;\n if (($AnioActual % 4 == 0) && ($AnioActual % 100 != 0) || ($AnioActual % 400 == 0)){\n //es bisiesto \n while ($dias < 30){\n $Febrero[$dias] = $dias;\n $dias = $dias + 1;\n }\n }\n else{\n while ($dias < 29){\n $Febrero[$dias] = $dias;\n $dias = $dias + 1;\n }\n }\n $unArray = array('Enero' => $MeseDe31,'Febrero' => $Febrero,'Marzo' => $MeseDe31,'Abril' => $MesesDe30,\n 'Mayo' => $MeseDe31,'Junio' => $MesesDe30,'Julio' => $MeseDe31,'Agosto' => $MeseDe31,'Septiembre' => $MesesDe30,\n 'Octubre' => $MeseDe31,'Noviembre' => $MesesDe30,'Diciembre' => $MeseDe31);\n $em = $this->getDoctrine()->getManager();\n $mesActual = date('m');\n $diaActual =date('d');\n //Aca termina lo generico\n if ((empty($_GET[\"mes\"])) and (empty($_GET[\"dia\"]))){\n $query1 = $em->createQuery('SELECT a FROM CrestaAulasBundle:Aula a ORDER BY a.nombre ASC');\n $aulasMostrar = $query1->getResult();\n $pasar = date('Y-m-d');\n $query = $em->createQuery('SELECT r FROM CrestaAulasBundle:Reserva r WHERE r.fecha = :fechitaMostri')->setParameter('fechitaMostri', $pasar);\n $reservasMostrar = $query->getResult();\n $contador =0;\n foreach ($reservasMostrar as $aux) {\n $reservasMostrar[$contador]->getHoraDesde();\n //Busco los minutos para saber si es 30 o 00\n $minutoComparableDesde = $reservasMostrar[$contador]->getHoraDesde()->format('i');\n $horaComparableDesde = $reservasMostrar[$contador]->getHoraDesde()->format('H');\n $minutoComparableHasta = $reservasMostrar[$contador]->getHoraHasta()->format('i');\n $horaComparableHasta = $reservasMostrar[$contador]->getHoraHasta()->format('H');\n //Traigo la hora desde de las reservas.\n $hh = $reservasMostrar[$contador]->getHoraHasta()->format('H:i');\n $hd = $reservasMostrar[$contador]->getHoraDesde()->format('H:i');\n //si el min es 30 deberia concatenar con la hora siguente.\n if ( ($minutoComparableDesde == 30) and ($minutoComparableHasta == 00) ){\n //a la hora le sumo uno para llegar al valor.\n $horaComparableDesde = $horaComparableDesde + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':00';\n $hh = $hh . ' a ' . $horaComparableHasta . ':30';\n //Busco el aula de la reserva (nombre)\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 30) and ($minutoComparableHasta == 30)){\n //a la hora le sumo uno para llegar al valor.\n $horaComparableDesde = $horaComparableDesde + 1;\n $horaComparableHasta = $horaComparableHasta + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':00';\n $hh = $hh . ' a ' . $horaComparableHasta . ':00';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 00) and ($minutoComparableHasta == 30)) {\n //a la hora le sumo uno para llegar al valor.\n $horaComparableHasta = $horaComparableHasta + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':30';\n $hh = $hh . ' a ' . $horaComparableHasta . ':00';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 00) and ($minutoComparableHasta == 00)){\n //a la hora le sumo uno para llegar al valor.\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':30';\n $hh = $hh . ' a ' . $horaComparableHasta . ':30';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n else{\n throw $this->createNotFoundException('Lo sentimos se rompieron las reservas :/ los horarios deberian ser en minutos 00 o 30.');\n }\n $ArrayContenedor[$contador] = array(1=>$arrayDeTranformacion[$arrayCargadoConHorariosConcat[1]],\n 2=>$arrayDeTranformacion[$arrayCargadoConHorariosConcat[2]],3=>$arrayCargadoConHorariosConcat[3],4=>$reservasMostrar[$contador]);\n $contador = $contador + 1;\n }\n if ((count($reservasMostrar)) == 0){\n $ArrayContenedor = null;\n }\n $mesSelect = array();\n $buscameEsto='Mes';\n \n //Arreglo de last moment, con los meses del 1 al 9, como lo tomamos de la fecha actual\n //lo toma como 01 al 09, y se rompe!!!\n\n \n $mesActual=intval($mesActual);\n $buscameEstoAhora = $meses[$mesActual];\n\n return $this->render('CrestaAulasBundle:Aula:disponibilidad.html.twig',array('mesSelect'=>$mesSelect,\n 'seleccionadoMes'=>$buscameEsto,'meses'=>$meses,'horarios'=>$horarios,'aulasMostrar'=>$aulasMostrar,'mesActual'=>$mesActual\n ,'diaActual'=>$diaActual,'seleccionadoMesAhora'=>$buscameEstoAhora,'ArrayContenedor'=>$ArrayContenedor,'seleccionadoDia' => 'Dia'));\n }\n elseif (((($_GET[\"mes\"] == 'Mes')) or (!isset($_GET[\"dia\"]))) and (isset ($_GET[\"aula\"]))){\n throw new Exception('Para filtrar el aula, primero completa el campo mes y dia para que podamos encontrar lo que estas buscando.');\n }\n elseif ((!empty($_GET[\"mes\"])) and (!empty($_GET[\"dia\"])) and (!empty($_GET[\"aula\"]))) {\n $seleccionadoDia = $_GET[\"dia\"];\n $buscameEsto= $_GET[\"mes\"];\n $asd = $elmesEnNumero[$buscameEsto];\n //tengo la id buscate el aula pedru\n $idDelAulaSeleccionada = $_GET[\"aula\"];\n \n $aulasMostrar[0] = $em->getRepository('CrestaAulasBundle:Aula')->find($idDelAulaSeleccionada); \n /* dios es cuate\n // $seleccionadoAula = $aulasMostrar->getNombre();\n echo \"<PRE>\";\n print_r($aulasMostrar);\n echo \"</PRE>\";*/\n $mesSelect = $unArray[$buscameEsto];\n //$aulasMostrar[]['nombre'] = $seleccionadoAula;\n $mesActual=intval($mesActual);\n $buscameEstoAhora = $meses[$mesActual];\n $pasar = $AnioActual . '-' . $asd . '-' . $seleccionadoDia;\n $parameters = array('fechitaMostri' => $pasar,'elaula' => $idDelAulaSeleccionada);\n $query = $em->createQuery(' SELECT r FROM CrestaAulasBundle:Reserva r \n WHERE r.fecha = :fechitaMostri and r.aula = :elaula')->setParameters($parameters);\n $reservasMostrar = $query->getResult();\n $contador =0;\n foreach ($reservasMostrar as $aux) {\n $reservasMostrar[$contador]->getHoraDesde();\n //Busco los minutos para saber si es 30 o 00\n $minutoComparableDesde = $reservasMostrar[$contador]->getHoraDesde()->format('i');\n $horaComparableDesde = $reservasMostrar[$contador]->getHoraDesde()->format('H');\n $minutoComparableHasta = $reservasMostrar[$contador]->getHoraHasta()->format('i');\n $horaComparableHasta = $reservasMostrar[$contador]->getHoraHasta()->format('H');\n //Traigo la hora desde de las reservas.\n $hh = $reservasMostrar[$contador]->getHoraHasta()->format('H:i');\n $hd = $reservasMostrar[$contador]->getHoraDesde()->format('H:i');\n //si el min es 30 deberia concatenar con la hora siguente.\n if ( ($minutoComparableDesde == 30) and ($minutoComparableHasta == 00) ){\n //a la hora le sumo uno para llegar al valor.\n $horaComparableDesde = $horaComparableDesde + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':00';\n $hh = $hh . ' a ' . $horaComparableHasta . ':30';\n //Busco el aula de la reserva (nombre)\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 30) and ($minutoComparableHasta == 30)){\n //a la hora le sumo uno para llegar al valor.\n $horaComparableDesde = $horaComparableDesde + 1;\n $horaComparableHasta = $horaComparableHasta + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':00';\n $hh = $hh . ' a ' . $horaComparableHasta . ':00';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 00) and ($minutoComparableHasta == 30)) {\n //a la hora le sumo uno para llegar al valor.\n $horaComparableHasta = $horaComparableHasta + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':30';\n $hh = $hh . ' a ' . $horaComparableHasta . ':00';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 00) and ($minutoComparableHasta == 00)){\n //a la hora le sumo uno para llegar al valor.\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':30';\n $hh = $hh . ' a ' . $horaComparableHasta . ':30';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n else{\n throw $this->createNotFoundException('Lo sentimos se rompieron las reservas :/ los horarios deberian ser en minutos 00 o 30.');\n }\n $ArrayContenedor[$contador] = array(1=>$arrayDeTranformacion[$arrayCargadoConHorariosConcat[1]],\n 2=>$arrayDeTranformacion[$arrayCargadoConHorariosConcat[2]],3=>$arrayCargadoConHorariosConcat[3],4=>$reservasMostrar[$contador]);\n $contador = $contador + 1;\n }\n if ((count($reservasMostrar)) == 0){\n $ArrayContenedor = null;\n }\n return $this->render('CrestaAulasBundle:Aula:disponibilidad.html.twig',array('mesSelect'=>$mesSelect,\n 'seleccionadoMes'=>$buscameEsto,'mesActual'=>$mesActual,'meses'=>$meses,'horarios'=>$horarios,'aulasMostrar'=>$aulasMostrar,\n 'diaActual'=>$diaActual,'asd'=>$asd,'seleccionadoMesAhora'=>$buscameEstoAhora,\n 'ArrayContenedor'=>$ArrayContenedor,'seleccionadoDia' =>$seleccionadoDia));\n }\n else{\n $query1 = $em->createQuery('SELECT a FROM CrestaAulasBundle:Aula a ORDER BY a.nombre ASC');\n $aulasMostrar = $query1->getResult();\n $seleccionadoDia = $_GET[\"dia\"];\n $buscameEsto= $_GET[\"mes\"];\n $asd= $elmesEnNumero[$buscameEsto];\n $pasar = $AnioActual . '-' . $asd . '-' . $seleccionadoDia;\n $query = $em->createQuery('SELECT r FROM CrestaAulasBundle:Reserva r WHERE r.fecha = :fechitaMostri')->setParameter('fechitaMostri', $pasar);\n $reservasMostrar = $query->getResult();\n $contador = 0;\n \n foreach ($reservasMostrar as $aux) {\n $reservasMostrar[$contador]->getHoraDesde();\n //Busco los minutos para saber si es 30 o 00\n $minutoComparableDesde = $reservasMostrar[$contador]->getHoraDesde()->format('i');\n $horaComparableDesde = $reservasMostrar[$contador]->getHoraDesde()->format('H');\n $minutoComparableHasta = $reservasMostrar[$contador]->getHoraHasta()->format('i');\n $horaComparableHasta = $reservasMostrar[$contador]->getHoraHasta()->format('H');\n //Traigo la hora desde de las reservas.\n $hh = $reservasMostrar[$contador]->getHoraHasta()->format('H:i');\n $hd = $reservasMostrar[$contador]->getHoraDesde()->format('H:i');\n //si el min es 30 deberia concatenar con la hora siguente.\n if ( ($minutoComparableDesde == 30) and ($minutoComparableHasta == 00) ){\n //a la hora le sumo uno para llegar al valor.\n $horaComparableDesde = $horaComparableDesde + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':00';\n $hh = $hh . ' a ' . $horaComparableHasta . ':30';\n //Busco el aula de la reserva (nombre)\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 30) and ($minutoComparableHasta == 30)){\n //a la hora le sumo uno para llegar al valor.\n $horaComparableDesde = $horaComparableDesde + 1;\n $horaComparableHasta = $horaComparableHasta + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':00';\n $hh = $hh . ' a ' . $horaComparableHasta . ':00';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 00) and ($minutoComparableHasta == 30)) {\n //a la hora le sumo uno para llegar al valor.\n $horaComparableHasta = $horaComparableHasta + 1;\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':30';\n $hh = $hh . ' a ' . $horaComparableHasta . ':00';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n elseif (($minutoComparableDesde == 00) and ($minutoComparableHasta == 00)){\n //a la hora le sumo uno para llegar al valor.\n //Esto pro si la hora es 08 por ejemplo increible, pero real\n if (strlen($horaComparableDesde) == 1){\n $horaComparableDesde ='0' . $horaComparableDesde ; \n } \n if (strlen($horaComparableHasta) == 1){\n $horaComparableHasta ='0' . $horaComparableHasta ; \n } \n //concateno todo para tener el valor exacto estilo \"12:30 a 13:00\"\n $hd = $hd . ' a ' . $horaComparableDesde . ':30';\n $hh = $hh . ' a ' . $horaComparableHasta . ':30';\n $idBuscar = $reservasMostrar[$contador]->getAula();\n $aulaVar = $em->getRepository('CrestaAulasBundle:Aula')->find($idBuscar);\n $aulaNombre = $aulaVar->getNombre();\n $arrayCargadoConHorariosConcat = array (1=>$hd,2=>$hh,3=>$aulaNombre); \n }\n else{\n throw $this->createNotFoundException('Lo sentimos se rompieron las reservas :/ los horarios deberian ser en minutos 00 o 30.');\n }\n $ArrayContenedor[$contador] = array(1=>$arrayDeTranformacion[$arrayCargadoConHorariosConcat[1]],\n 2=>$arrayDeTranformacion[$arrayCargadoConHorariosConcat[2]],3=>$arrayCargadoConHorariosConcat[3],4=>$reservasMostrar[$contador]);\n $contador = $contador + 1;\n }\n if ((count($reservasMostrar)) == 0){\n $ArrayContenedor = null;\n }\n \n \n $diaActual =date('d'); \n $mesSelect = $unArray[$buscameEsto];\n $asd= $elmesEnNumero[$buscameEsto];\n $buscameEstoAhora = $buscameEsto; \n $mesActual = date('m');\n return $this->render('CrestaAulasBundle:Aula:disponibilidad.html.twig',array('mesSelect'=>$mesSelect,\n 'seleccionadoMes'=>$buscameEsto,'mesActual'=>$mesActual,'meses'=>$meses,'horarios'=>$horarios,'aulasMostrar'=>$aulasMostrar,\n 'diaActual'=>$diaActual,'asd'=>$asd,'seleccionadoMesAhora'=>$buscameEstoAhora,\n 'ArrayContenedor'=>$ArrayContenedor,'seleccionadoDia' =>$seleccionadoDia));\n //Por el neg de la gente\n }\n }", "public function afficheMenu()\r\n\t\t{\r\n\t\t//appel de la vue du menu\r\n\t\trequire 'Vues/menu.php';\r\n\t\t}", "public function listagemAction()\n\t{\n\t\n\t}", "function ListaMenus() {\n try {\n $select = \" SELECT COD_MENU,\n COD_MENU AS COD,\n DSC_MENU,\n DSC_MENU AS DSC\n FROM SE_MENU\n WHERE COD_MENU_PAI > -1 \n AND IND_VISIBLE = 'S'\n UNION\n SELECT '0' AS COD_MENU,\n '0' AS COD,\n 'Sem Pai' AS DSC_MENU,\n 'Sem Pai' AS DSC\n ORDER BY DSC_MENU\";\n $lista = $this->selectDB(\"$select\", false);\n } catch (Exception $e) {\n echo \"erro\" . $e;\n }\n return $lista;\n }", "function accueilButton(){\n global $url, $lang, $ACCUEIL;\n if(isConnected()){\n echo '<a type=\"button\" class=\"btn btn-primary col-3\" href=\"'.$url.'/index.php?lang='.$lang.'&page=conferences\">'.$ACCUEIL.'</a>';\n }\n else{\n echo '<a type=\"button\" class=\"btn btn-primary col-3\" href=\"'.$url.'/index.php?lang='.$lang.'&page=connexion\">'.$ACCUEIL.'</a>';\n }\n }", "function ITMenu()\n{\n\tglobal $orderedIT;\n\tglobal $canChange;\n\n\techo \"<div class='ITMenu'>\n\" . \"<p style='margin-bottom:2px'>\" . I18(\"Visualiser par plateformes:\") . \"</p>\n\t<ul>\" . PHP_EOL;\n\necho \"\t<li>\" . PHP_EOL;\nnameBatch('GENERIC', $canChange);\necho \"\t</li>\" . PHP_EOL;\n\n\t$bigNames = false;\n\t$letters = array();\n\n\t//take the letters and separate the misc\n\t//make sure we only take letters that are used\n\tforeach ($orderedIT as $batchname => $batch)\n\t{\n\t\tif ($batchname==='GENERIC') continue;\n\n\t\tif (strlen($batchname)!=3 AND !in_array($batchname, NOTMISC))\n\t\t{\n\t\t\t$bigNames = true;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!in_array(strtoupper($batchname[0]), $letters))\n\t\t{\n\t\t\t$letters[] = strtoupper($batchname[0]);\n\t\t}\n\t}\n\n\tsort($letters);\n\n\t//display the letters on the menu\n\tforeach ($letters as $elem)\n\t{\n\techo \"\t<li id='_letter$elem'>\n\t\t\t<a href='javascript:void(0)' onclick='toggle(\\\"letter$elem\\\", \\\"_letter$elem\\\");'>$elem</a>\t\t\n\t\t</li>\" . PHP_EOL;\n\t}\n\n\t//add the misc\n\tif ($bigNames)\n\t{\n\techo \"\t<li id='_misc'>\n\t\t\t<a href='javascript:void(0)' onclick='toggle(\\\"misc\\\", \\\"_misc\\\");'>Misc.</a>\t\n\t\t</li>\";\n\t}\n\n\necho \"\t</ul>\n\n</div>\";\n\n}", "function show() {\n global $_SERVER;\n global $lang;\n global $theme;\n global $_SESSION;\n global $__order_register;\n global $__order_register_tab;\n global $_REQUEST;\n global $sess;\n \n // odczytaj jakie sa ustawienia sortowania obecnie\n if (! empty($_SESSION[\"__order_register_set\"])){\n $tab=$_SESSION[\"__order_register_set\"];\n } else {\n $tab['partner']=0;\n $tab['amount']=0;\n $tab['rake_off']=0;\n }\n\n if (! empty($_REQUEST['order'])) {\n $order=$_REQUEST['order']; $set=false; \n $order=intval($order);\n \n switch ($order) {\n case \"1\":$tab['partner']=-1; $set=true; // zmien \"strzalke\" (kierunek sortowania)\n break;\n case \"2\":$tab['amount']=-1; $set=true;\n break;\n case \"3\":$tab['rake_off']=-1; $set=true;\n break;\n case \"-1\":$tab['partner']=1; $set=true;\n break;\n case \"-2\":$tab['amount']=1; $set=true;\n break;\n case \"-3\":$tab['rake_off']=1; $set=true;\n break;\n default:$tab['partner']=-1; $set=true;\n break;\n } // end switch\n \n } // end if\n\n // start: sprawdz czy wybrano jakiekolwiek sortowanie, jesli nie to wstaw sortowanie wg ceny od najmniejszej\n // chyba ze jest to wyszukiwanie wedlug slowa, wtedy wstaw sortowanie wedlug dopasowania\n if (@$set!=true) {\n $tab['partner']=-1;\n } \n // end:\n\n // zapamietaj tablice sortowania w sesji\n $__order_main_tab_register=&$tab;\n $sess->register(\"__order_register_tab\",$order_register_tab);\n $__order_main_register=&$order;\n $sess->register(\"__order_register\",$__order_register);\n\n $url=$_SERVER['REQUEST_URI'];\n \n // pomin sesje, uniknij duplikacji zmiennej sesji\n $url=preg_replace(\"/&session_id=[a-z0-9]+$/\",\"\",$url);\n $url=ereg_replace(\"\\?order=[0-9-]+$\",\"\",$url);\n \n // sortowanie wg nazwy\n if ($tab['partner']==1) {\n print \"<a href=$url?order=1><u>\".$lang->order_by['partner'].\"</u></a> \";\n print \"<img src=\";$theme->img(\"_img/up.png\"); print \"> \";\n } elseif ($tab['partner']==-1) {\n print \"<a href=$url?order=-1><u>\".$lang->order_by['partner'].\"</u></a> \";\n print \"<img src=\";$theme->img(\"_img/down.png\"); print \"> \";\n } else {\n print \"<a href=$url?order=1><u>\".$lang->order_by['partner'].\"</u></a> &nbsp;\";\n }\n\n // sortowanie wg ceny\n if ($tab['amount']==1) {\n print \"<a href=$url?order=2><u>\".$lang->order_by['amount'].\"</u></a> \";\n print \"<img src=\";$theme->img(\"_img/up.png\"); print \"> \"; \n } elseif ($tab['amount']==-1) {\n print \"<a href=$url?order=-2><u>\".$lang->order_by['amount'].\"</u></a> \";\n print \"<img src=\";$theme->img(\"_img/down.png\"); print \"> \"; \n } else {\n print \"<a href=$url?order=2><u>\".$lang->order_by['amount'].\"</u></a> &nbsp; \";\n } \n\n // sortowanie wg producenta\n if ($tab['rake_off']==1) {\n print \"<a href=$url?order=3><u>\".$lang->order_by['rake_off'].\"</u></a> \";\n print \"<img src=\";$theme->img(\"_img/up.png\"); print \"> \";\n } elseif ($tab['rake_off']==-1) {\n print \"<a href=$url?order=-3><u>\".$lang->order_by['rake_off'].\"</u></a> \";\n print \"<img src=\";$theme->img(\"_img/down.png\"); print \"> \";\n } else {\n print \"<a href=$url?order=3><u>\".$lang->order_by['rake_off'].\"</u></a> &nbsp;\";\n }\n\n return;\n }", "function tieneAcceso($menu)\n{\n $ci = get_instance();\n $controlador = $ci->uri->segment(1);\n //$metodo = $ci->uri->segment(2);\n\n // Verificamos si la se esta accediento a un metodo de un controlador de\n // vista para compara con los slug registrados\n// if ($metodo != '') {\n// $funcion = $controlador ;\n// } else {\n $funcion = $controlador;\n// }\n\n if ($funcion === 'inicio') { // Si es inicio el controlador inicio con el metodo de cambio (que es metodo que llama a plantilla)\n return true;\n } else {\n if (in_array($funcion, $menu)) {\n return true;\n } else {\n return false;\n }\n }\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 }", "protected function menus()\n {\n\n }", "function run(){\n // que se darán en la plantilla.\n\n $htmlDatos = array();\n $htmlDatos[\"tipoalmacenTitle\"] = \"\";\n $htmlDatos[\"tipoalmacenMode\"] = \"\";\n $htmlDatos[\"talid\"] = \"\";\n $htmlDatos[\"taldsc\"]=\"\";\n $htmlDatos[\"taldir\"]=\"\";\n $htmlDatos[\"taltel\"]=\"\";\n $htmlDatos[\"actSelected\"]=\"selected\";\n $htmlDatos[\"inaSelected\"]=\"\";\n $htmlDatos[\"desSelected\"]=\"\";\n $htmlDatos[\"disabled\"]=\"\";\n\n\n if(isset($_GET[\"acc\"])){\n switch($_GET[\"acc\"]){\n //Manejando si es un insert\n case \"ins\":\n $htmlDatos[\"tipoalmacenTitle\"] = \"Ingreso de Nueva tipoalmacen\";\n $htmlDatos[\"tipoalmacenMode\"] = \"ins\";\n //se determina si es una acción del formulario\n if(isset($_POST[\"btnacc\"])){\n $lastID = insertartipoalmacen($_POST);\n if($lastID){\n redirectWithMessage(\"¡tipoalmacen Ingresada!\",\"index.php?page=tipoalmacen&acc=upd&talid=\".$lastID);\n }else{\n //Se obtiene los datos que estaban en el post\n $htmlDatos[\"talid\"] = $_POST[\"talid\"];\n $htmlDatos[\"taldsc\"]=$_POST[\"taldsc\"];\n $htmlDatos[\"taldir\"]=$_POST[\"taldir\"];\n $htmlDatos[\"taltel\"]=$_POST[\"taltel\"];\n $htmlDatos[\"actSelected\"]=($_POST[\"talest\"] ==\"ACT\")?\"selected\":\"\";\n $htmlDatos[\"inaSelected\"]=($_POST[\"talest\"] ==\"INA\")?\"selected\":\"\";\n $htmlDatos[\"desSelected\"]=($_POST[\"talest\"] ==\"DES\")?\"selected\":\"\";\n\n }\n }\n //si no es una acción del post se muestra los datos\n renderizar(\"tipoalmacen\", $htmlDatos);\n break;\n //Manejando si es un Update\n case \"upd\":\n if(isset($_POST[\"btnacc\"])){\n //implementar logica de guardado\n if(actualizartipoalmacen($_POST)){\n //forzando a que se actualice con los datos de la db\n redirectWithMessage(\"¡tipoalmacen Actualizada!\",\"index.php?page=tipoalmacen&acc=upd&talid=\".$_POST[\"talid\"]);\n }\n }\n if(isset($_GET[\"undid\"])){\n $tipoalmacen = obtenertipoalmacen($_GET[\"undid\"]);\n if($tipoalmacen){\n $htmlDatos[\"tipoalmacenTitle\"] = \"Actualizar \".$tipoalmacen[\"taldsc\"];\n $htmlDatos[\"tipoalmacenMode\"] = \"upd\";\n $htmlDatos[\"talid\"] = $tipoalmacen[\"talid\"];\n $htmlDatos[\"taldsc\"]=$tipoalmacen[\"taldsc\"];\n $htmlDatos[\"talrtn\"]=$tipoalmacen[\"taldir\"];\n $htmlDatos[\"taltel\"]=$tipoalmacen[\"taltel\"];\n $htmlDatos[\"talest\"]=$tipoalmacen[\"talest\"];\n $htmlDatos[\"actSelected\"]=($tipoalmacen[\"talest\"] ==\"ACT\")?\"selected\":\"\";\n $htmlDatos[\"inaSelected\"]=($tipoalmacen[\"talest\"] ==\"INA\")?\"selected\":\"\";\n $htmlDatos[\"desSelected\"]=($tipoalmacen[\"talest\"] ==\"DES\")?\"selected\":\"\";\n\n renderizar(\"tipoalmacen\", $htmlDatos);\n }else{\n redirectWithMessage(\"¡tipoalmacen No Encontrada!\",\"index.php?page=tipoalmacenes\");\n }\n }else{\n redirectWithMessage(\"¡tipoalmacen No Encontrada!\",\"index.php?page=tipoalmacenes\");\n }\n break;\n //Manejando un delete\n case \"dlt\":\n if(isset($_POST[\"btnacc\"])){\n //implementar logica de guardado\n if(borrartipoalmacen($_POST[\"talid\"])){\n //forzando a que se actualice con los datos de la db\n redirectWithMessage(\"¡tipoalmacen Borrada!\",\"index.php?page=tipoalmacenes\");\n }\n }\n if(isset($_GET[\"talid\"])){\n $tipoalmacen = obtenertipoalmacen($_GET[\"talid\"]);\n if($tipoalmacen){\n $htmlDatos[\"tipoalmacenTitle\"] = \"¿Desea borrar \".$tipoalmacen[\"taldsc\"] . \"?\";\n $htmlDatos[\"tipoalmacenMode\"] = \"dlt\";\n $htmlDatos[\"talid\"]=$tipoalmacen[\"talid\"];\n $htmlDatos[\"taldsc\"]=$tipoalmacen[\"taldsc\"];\n $htmlDatos[\"taldir\"]=$tipoalmacen[\"taldir\"];\n $htmlDatos[\"taltel\"]=$tipoalmacen[\"taltel\"];\n $htmlDatos[\"talest\"]=$tipoalmacen[\"talest\"];\n $htmlDatos[\"actSelected\"]=($tipoalmacen[\"talest\"] ==\"ACT\")?\"selected\":\"\";\n $htmlDatos[\"inaSelected\"]=($tipoalmacen[\"talest\"] ==\"INA\")?\"selected\":\"\";\n $htmlDatos[\"desSelected\"]=($tipoalmacen[\"talest\"] ==\"DES\")?\"selected\":\"\";\n\n $htmlDatos[\"disabled\"]='disabled=\"disabled\"';\n renderizar(\"tipoalmacen\", $htmlDatos);\n }else{\n redirectWithMessage(\"¡tipoalmacen No Encontrada!\",\"index.php?page=tipoalmacenes\");\n }\n }else{\n redirectWithMessage(\"¡tipoalmacen No Encontrada!\",\"index.php?page=tipoalmacenes\");\n }\n break;\n defualt:\n redirectWithMessage(\"¡Acción no permitida!\",\"index.php?page=tipoalmacenes\");\n break;\n }\n }\n\n\n }", "function LUTB_BoardIndex()\n{\n\tglobal $context, $modSettings;\n\tBoardIndex();\n\t$context['users_online'] = !empty($context['users_online']) && allowedTo('who_view') && !empty($modSettings['who_enabled']);\n}", "function horarios()\n {\n $this->view2->__construct($this->dataView,$this->dataTable);\n $this->view2->show();\n }", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function linea_colectivo();", "function cl_issplan() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"issplan\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function MenuConfigInventaire(){\n\t\t\tparent::view('Home/Menu6');\n\t\t}", "public function exibeMenu(){\n $exit = 1;\n while ($exit != 0){\n echo \"\\n\\n--------- Submenu Cliente ---------\";\n echo \"\\n1. Inserir Participante\";\n echo \"\\n2. Alterar Participante\";\n echo \"\\n3. Excluir Participante (soft delete)\";\n echo \"\\n4. Listar todos os Participantes mesmo com situação desativada\";\n echo \"\\n5. Listar Participante pelo nome\";\n echo \"\\n6. Listar Participante pelo código\";\n echo \"\\n7. Reativar Participante pelo código\";\n echo \"\\n8. Listar todos os participantes que estão com situação ativa\";\n echo \"\\nOpção (ZERO para sair): \"; \n $exit = fgets(STDIN);\n switch ($exit){\n case 0:\n break;\n case 1:\n $this->regPar();\n break;\n case 2:\n $this->alterarParticipante();\n break;\n case 3:\n $this->excluirParticipante();\n break;\n case 4:\n $this->listarTodosParticipante();\n break;\n case 5:\n $this->listarParticipantePeloNome();\n break;\n case 6:\n $this->listarParticipantePeloCodigo();\n break;\n case 7:\n $this->reativarParticipantePeloCodigo();\n break;\n case 8:\n $this->listarparticipantesAtivos();\n break;\n default:\n echo \"\\nOpção inexistente.\";\n }\n } //fim Menu\n }", "function visualizar($pag=\"\",$orderby=\"\")\n {\n global $sIdConvenioAct;\n for($i=0;$i<2;$i++){\n $consulta = $this->sql;\n //filas obtenidas\n $total = $this->contarfilas($consulta);\n //tamaņo del paginador\n if($total<200):\n $tampag=20;\n elseif ($total<400):\n $tampag=40;\n else:\n $tampag=60;\n endif;\n $iniciaren=($pag-1) * $tampag; //Registro actual\n if($iniciaren<0)$iniciaren=0;\n \n $this->paginar($pag, $total, $tampag, \"?pag=\"); \n \n if ($orderby !=\"\"){\n $consulta = $this->sql.\" ORDER BY $orderby LIMIT $iniciaren,$tampag\";\n }\n else {\n $consulta = $this->sql.\" LIMIT $iniciaren,$tampag\"; \n }\n \n $result = $this->query($consulta);\n //obtener descripcion de la tabla\n $tablades = $this->comentarioTabla($this->nombreTabla($result, 0));\n //si no tiene, poner como descripcion el nombre de la misma\n if ($tablades == \"\") $tablades = $this->nombreTabla($result, 0);\n else if($this->edit==1 and $this->delete==1) $espacio = 2;\n else if($this->edit==1 and $this->delete==0) $espacio = 1;\n else if($this->edit==0 and $this->delete==1) $espacio = 1;\n else $espacio = 0;\n echo \"\\n<center><table class='enhancedtablerowhover'>\n \\n<caption><center><font size='1.5'>\".$tablades.\"</font></center></caption>\n \\n<thead>\n \\n<tr>\n \\n<td scope='col' colspan=\".($espacio+2).\"></td>\";\n \n for ($i = 0; $i < mysql_num_fields($result); $i++)\n {\n $campo=$this->nombreCampo($result, $i);\n //los campos imagen no mostrarlos\n if (!$this->mostrarCampo($campo))\n continue;\n //obtener descripcion del campo \n $des = str_replace(\"/*\", \"\", $this->comentario($this->nombreCampo($result, $i),\n $this->nombreTabla($result, $i)));\n //si no tiene, poner como descripcion el nombre del mismo\n if ($des == \"\" or is_numeric($des)) $des = $campo;\n echo \"\\n<th scope='col' ><a href='?order=$campo'>$des</a></th>\";\n }\n echo \" \\n</tr>\n \\n</thead>\n \\n<tbody>\";\n while ($row = mysql_fetch_array($result))\n {\n $filtro = $this->cifrar($row, $result);\n echo \"\\n<tr>\";\n echo \"\\n<td class='CrearReporte'>\n \\n<a title = 'Imprimir' href='reporte/rptEmbarques.php?iFolio=\".$row['iFolio'].\"&sContrato=\".$row['sContrato'].\"&sNumeroOrden=\".$row['sNumeroOrden'].\"&sIdConvenio=$sIdConvenioAct\".\"&dFecha=\".$row['dIdFecha'].\"' target='_blank' >\n \\n<img src='\".$this->PathImages.\"impresora.png' width=15></a></td>\";//$_SESSION['orden']\n if($this->edit==1)\n echo \"\\n<td class='CrearReporte'>\n \\n<a title = 'Seleccionar Folio' href='$_SERVER[PHP_SELF]?iFolioSuministro=\".$row['iFolio'].\"'>\n \\n<img src='\".$this->PathImages.\"seleccionar.jpg' width=15></a></td>\";\n echo \"\\n<td class='CrearReporte'>\n \\n<a title = 'Modificar Registro ' href='$_SERVER[PHP_SELF]?operacion=m&$filtro'>\n \\n<img src='\".$this->PathImages.\"editar.png' width=12></a></td>\";\n if($this->delete==1)//'href='$_SERVER[PHP_SELF]?operacion=b&$filtro'\n echo \"\\n<td class='CrearReporte' >\n \\n<a title = 'Eliminar el Registro' href=\\\"#\\\" \n onClick=\\\" if( confirm('Realmente Desea Eliminar el Registro?') ){ document.location='$_SERVER[PHP_SELF]?operacion=b&$filtro' };\\\" >\n \\n<img src='\".$this->PathImages.\"eliminar.png' width=12>\n \\n</a></td> \";\n for ($i = 0; $i < mysql_num_fields($result); $i++)\n {\n if(strpos(strtoupper($this->nombreCampo($result, $i)),strtoupper(\"Imagen\")) and $tipo = $this->tipoCampo($result, $i)==\"blob\") \n {\n $nombreImagen=\"\";\n foreach($this->campollave as $claves){\n $nombreImagen.=$row[$claves]; \n }\n $nombreImagen = str_replace(\"/\",\"-\",$nombreImagen);\n $nombreImagen.=\".jpg\";\n //$nombreImagen=$row[$this->campollave].\".jpg\";\n $img = $this->procesarImagen($row[$i],$nombreImagen);\n }\n if (!$this->mostrarCampo($this->nombreCampo($result, $i)))\n continue;\n if ($img){\n echo \"\\n<td><img border=1 src = '$nombreImagen' width = '90' heigth = '90'</img></td>\";\n $img = false;\n }\n else if(( strpos(strtoupper($this->nombreCampo($result, $i)),\"DLL\")!==false or strpos(strtoupper($this->nombreCampo($result, $i)),\"MN\")!==false )\n AND $this->tipoCampo($result, $i)==\"real\"){\n $row[$i] = number_format($row[$i], 4, '.', ',');\n echo \"\\n<td class ='derecha'>$ \".$row[$i].\"</td>\";\n }\n else if( strpos($this->tipoCampo($result, $i),\"real\")!==false ){\n $row[$i] = number_format($row[$i], 4, '.', ',');\n echo \"\\n<td class ='derecha'> \".$row[$i].\"</td>\";\n }\n else if(strpos(strtolower($this->nombreCampo($result, $i)), strtolower(\"fecha\"))!==false){//formato de fecha\n echo \"\\n<td>\".formatoFecha($row[$i]).\"</td>\";\n }\n else\n echo \"\\n<td>\".$row[$i].\"</td>\";\n\n }\n echo \"\\n</tr>\";\n }\n echo \"\\n</tr></tbody></table></center>\";\n $this->paginar($pag, $total, $tampag, \"?pag=\"); \n }\n }", "function board_prefs()\r\n\t{\r\n\t\tglobal $ibforums, $std, $print;\r\n\r\n\t\t$time = strftime($ibforums->vars['datef_date'] . \", \" . $ibforums->vars['datef_time'], time() + $std->get_time_offset_or_set_timezone());\r\n\r\n\t\t// Do we have a user stored offset, or use the board default:\r\n\r\n\t\t$offset = ($ibforums->member['time_offset'] != \"\")\r\n\t\t\t? $ibforums->member['time_offset']\r\n\t\t\t: $ibforums->vars['time_offset'];\r\n\r\n\t\t$time_select_append = '';\r\n\r\n\t\tif (!preg_match('!UTC|\\w+/[\\w/]+!', $offset))\r\n\t\t{\r\n\t\t\t$str_offset = 'Europe/Moscow';\r\n\t\t\tforeach ($ibforums->lang as $off => $words)\r\n\t\t\t{\r\n\t\t\t\tif (preg_match(\"/^time_(\\S+)$/\", $off, $match))\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($match[1] == $offset)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$time_select_append .= \"<br><br>Ваша текущая установка: \" . $words;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t$str_offset = $offset;\r\n\r\n\t\t}\r\n\r\n\t\t$time_select = \"Регион: <select id='u_tz_region' name='u_tz_region' class='forminput'></select>\" . \" Часовая зона: <select id='u_tz_zone' name='u_tz_zone' class='forminput'></select>\" . \"<script src='\" . $ibforums->vars['board_url'] . \"/html/timezones.js.php?current=\" . $str_offset . \"'></script>\" . $time_select_append;\r\n\r\n\t\t/*$time_select = \"<select name='u_timezone' class='forminput'>\";\r\n\r\n \t\t// Loop through the langauge time offsets and names to build our\r\n \t\t// HTML jump box.\r\n\r\n\r\n \t\t$time_select .= \"</select>\";\r\n \t\t*/\r\n\r\n\t\t// Print out the header..\r\n\r\n\t\t$dst_check = ($ibforums->member['dst_in_use'])\r\n\t\t\t? \"checked\"\r\n\t\t\t: \"\";\r\n\r\n\t\t//---------------------\r\n\r\n\t\tif (!$ibforums->vars['postpage_contents'])\r\n\t\t{\r\n\t\t\t$ibforums->vars['postpage_contents'] = '5,10,15,20,25,30,35,40';\r\n\t\t}\r\n\r\n\t\tif (!$ibforums->vars['topicpage_contents'])\r\n\t\t{\r\n\t\t\t$ibforums->vars['topicpage_contents'] = '5,10,15,20,25,30,35,40';\r\n\t\t}\r\n\r\n\t\tlist($post_page, $topic_page) = explode(\"&\", $ibforums->member['view_prefs']);\r\n\r\n\t\tif (!$post_page)\r\n\t\t{\r\n\t\t\t$post_page = -1;\r\n\t\t}\r\n\r\n\t\tif (!$topic_page)\r\n\t\t{\r\n\t\t\t$topic_page = -1;\r\n\t\t}\r\n\r\n\t\t$pp_a = array();\r\n\t\t$tp_a = array();\r\n\t\t$post_select = \"\";\r\n\t\t$topic_select = \"\";\r\n\r\n\t\t$pp_a[] = array('-1', $ibforums->lang['pp_use_default']);\r\n\t\t$tp_a[] = array('-1', $ibforums->lang['pp_use_default']);\r\n\r\n\t\tforeach (explode(',', $ibforums->vars['postpage_contents']) as $n)\r\n\t\t{\r\n\t\t\t$n = intval(trim($n));\r\n\t\t\t$pp_a[] = array($n, $n);\r\n\t\t}\r\n\r\n\t\tforeach (explode(',', $ibforums->vars['topicpage_contents']) as $n)\r\n\t\t{\r\n\t\t\t$n = intval(trim($n));\r\n\t\t\t$tp_a[] = array($n, $n);\r\n\t\t}\r\n\r\n\t\t//---------------------\r\n\r\n\t\tforeach ($pp_a as $id => $data)\r\n\t\t{\r\n\t\t\t$post_select .= ($data[0] == $post_page)\r\n\t\t\t\t? \"<option value='{$data[0]}' selected='selected'>{$data[1]}\\n\"\r\n\t\t\t\t: \"<option value='{$data[0]}'>{$data[1]}\\n\";\r\n\t\t}\r\n\r\n\t\tforeach ($tp_a as $id => $data)\r\n\t\t{\r\n\t\t\t$topic_select .= ($data[0] == $topic_page)\r\n\t\t\t\t? \"<option value='{$data[0]}' selected='selected'>{$data[1]}\\n\"\r\n\t\t\t\t: \"<option value='{$data[0]}'>{$data[1]}\\n\";\r\n\t\t}\r\n\r\n\t\t//---------------------\r\n\r\n\t\t$this->output .= View::make(\r\n\t\t\t\"ucp.settings_header\",\r\n\t\t\t[\r\n\t\t\t\t'Profile' => $this->member,\r\n\t\t\t\t'time_select' => $time_select,\r\n\t\t\t\t'time' => $time,\r\n\t\t\t\t'dst_check' => $dst_check,\r\n\t\t\t\t'key' => $this->md5_check\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$hide_sess = $std->my_getcookie('hide_sess');\r\n\r\n\t\t// View avatars, signatures and images..\r\n\r\n\t\t$view_ava = \"<select name='VIEW_AVS' class='forminput'>\";\r\n\t\t$view_sig = \"<select name='VIEW_SIGS' class='forminput'>\";\r\n\t\t$view_img = \"<select name='VIEW_IMG' class='forminput'>\";\r\n\t\t$view_pop = \"<select name='DO_POPUP' class='forminput'>\";\r\n\t\t$html_sess = \"<select name='HIDE_SESS' class='forminput'>\";\r\n\t\t$html_qr = \"<select name='OPEN_QR' class='forminput'>\";\r\n\t\t$wp_link = \"<select name='WP_LINK' class='forminput'>\";\r\n\t\t$cb_forumlist = \"<select name='CB_FORUMLIST' class='forminput'>\";\r\n\t\t$quick_search = \"<select name='QUICK_SEARCH' class='forminput'>\";\r\n\t\t$highlight_topic = \"<select name='HIGHLIGHT' class='forminput'>\";\r\n\t\t$close_category = \"<select name='CATEGORY' class='forminput'>\";\r\n\t\t$show_history = \"<select name='HISTORY' class='forminput'>\";\r\n\t\t$show_status = \"<select name='STATUS' class='forminput'>\";\r\n\t\t$show_img = \"<select name='ICONS' class='forminput'>\";\r\n\t\t$show_ratting = \"<select name='RATTING' class='forminput'>\";\r\n\t\t$show_filter = \"<select name='FILTER' class='forminput'>\";\r\n\t\t$hotclocks = \"<select name='HOTCLOCKS' class='forminput'>\";\r\n\t\t$forum_icon = \"<select name='FORUM_ICON' class='forminput'>\";\r\n\t\t$syntax_method = \"<select name='SYNTAX' class='forminput'>\";\r\n\t\t$syntax_lines_count = \"<select name='SYNTAX_LINES_COUNT' class='forminput'>\";\r\n\r\n\t\t$show_new = \"<select name='SHOW_NEW' class='forminput'>\";\r\n\r\n\t\t$syntax_show_controls = $this->select_from_values($this->member['syntax_show_controls'], 'SYNTAX_SHOW_CONTROLS', 'yes', array(\r\n\t\t 'yes' => $ibforums->lang['yes'],\r\n\t\t 'no' => $ibforums->lang['no'],\r\n\t\t /*'auto'\t=> $ibforums->lang['syntax_show_controls_auto'],*/\r\n\t\t ));\r\n\t\t$wp_link .= $this->member['show_wp'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$cb_forumlist .= $this->member['cb_forumlist'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$quick_search .= $this->member['quick_search'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$highlight_topic .= $this->member['highlight_topic'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$show_history .= $this->member['show_history'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$show_status .= $this->member['show_status'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$show_img .= $this->member['show_icons'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$show_ratting .= $this->member['show_ratting'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$show_filter .= $this->member['show_filter'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$show_new .= $this->member['show_new'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$hotclocks .= '<option value=\"1\"' . ($this->member['hotclocks'] == 1\r\n\t\t\t? \" selected\"\r\n\t\t\t: \"\") . '>' . $ibforums->lang['hotclocks1'] . '</option>';\r\n\t\t$hotclocks .= '<option value=\"2\"' . ($this->member['hotclocks'] == 2\r\n\t\t\t? \" selected\"\r\n\t\t\t: \"\") . '>' . $ibforums->lang['hotclocks2'] . '</option>';\r\n\t\t$hotclocks .= '<option value=\"3\"' . ($this->member['hotclocks'] == 3\r\n\t\t\t? \" selected\"\r\n\t\t\t: \"\") . '>' . $ibforums->lang['hotclocks3'] . '</option>';\r\n\t\t$hotclocks .= '<option value=\"0\"' . ($this->member['hotclocks'] == 0\r\n\t\t\t? \" selected\"\r\n\t\t\t: \"\") . '>' . $ibforums->lang['hotclocks0'] . '</option>';\r\n\r\n\t\t$forum_icon .= $this->member['forum_icon'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$methods = ['client', 'server', 'prism-coy', 'prism-twilight', 'none'];\r\n\r\n\t\tforeach ($methods as $m) {\r\n\t\t $lang_string = \"syntax_$m\";\r\n\t\t $selected = ($this->member['syntax'] == $m) ? \"selected='selected'\" : '';\r\n $syntax_method .= \"<option value='$m' $selected>{$ibforums->lang[$lang_string]}</option>\\n\";\r\n }\r\n\r\n\t\t$lines_count = $this->member['syntax_lines_count'] !== NULL\r\n\t\t\t? $this->member['syntax_lines_count']\r\n\t\t\t: 10;\r\n\t\tforeach (array(0, 5, 10, 15, 20, 30, 50, 100, 150, 200, 300, 400, 500) as $i)\r\n\t\t{\r\n\t\t\t$syntax_lines_count .= \"<option value='$i' \" . ($lines_count == $i\r\n\t\t\t\t? \"selected='selected'\"\r\n\t\t\t\t: '') . \">$i</option>\\n\";\r\n\t\t}\r\n\t\t$close_category .= $this->member['close_category'] == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$view_ava .= $this->member['view_avs']\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$view_sig .= $this->member['view_sigs']\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$view_img .= $this->member['view_img']\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$view_pop .= $this->member['view_pop']\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$html_sess .= $hide_sess == 1\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t$html_qr .= $this->member['quick_reply']\r\n\t\t\t? \"<option value='1' selected='selected'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0'>\" . $ibforums->lang['no'] . \"</option>\"\r\n\t\t\t: \"<option value='1'>\" . $ibforums->lang['yes'] . \"</option>\\n<option value='0' selected='selected'>\" . $ibforums->lang['no'] . \"</option>\";\r\n\r\n\t\t// $syntax_use_wrap = \"<select name='SYNTAX_USE_WRAP' class='forminput'>\";\r\n\t\t// $syntax_use_line_numbering = \"<select name='SYNTAX_USE_LINE_NUMBERING' class='forminput'>\";\r\n\t\t// $syntax_use_line_colouring = \"<select name='SYNTAX_USE_LINE_NUMBERING' class='forminput'>\";\r\n\r\n\t\t$this->output .= View::make(\r\n\t\t\t\"ucp.settings_end\",\r\n\t\t\t[\r\n\t\t\t\t'data' => array(\r\n\t\t\t\t\t'IMG' => $view_img . \"</select>\",\r\n\t\t\t\t\t'SIG' => $view_sig . \"</select>\",\r\n\t\t\t\t\t'AVA' => $view_ava . \"</select>\",\r\n\t\t\t\t\t'POP' => $view_pop . \"</select>\",\r\n\t\t\t\t\t'SESS' => $html_sess . \"</select>\",\r\n\t\t\t\t\t'QR' => $html_qr . \"</select>\",\r\n\t\t\t\t\t'WP' => $wp_link . \"</select>\",\r\n\t\t\t\t\t'CBFL' => $cb_forumlist . \"</select>\",\r\n\t\t\t\t\t'SEARCH' => $quick_search . \"</select>\",\r\n\t\t\t\t\t'HIGHLIGHT' => $highlight_topic . \"</select>\",\r\n\t\t\t\t\t'CATEGORY' => $close_category . \"</select>\",\r\n\t\t\t\t\t'HISTORY' => $show_history . \"</select>\",\r\n\t\t\t\t\t'STATUS' => $show_status . \"</select>\",\r\n\t\t\t\t\t'ICONS' => $show_img . \"</select>\",\r\n\t\t\t\t\t'RATTING' => $show_ratting . \"</select>\",\r\n\t\t\t\t\t'FILTER' => $show_filter . \"</select>\",\r\n\t\t\t\t\t'SYNTAX' => $syntax_method . \"</select>\",\r\n\t\t\t\t\t'SYNTAX_LINES_COUNT' => $syntax_lines_count . '</select>',\r\n\t\t\t\t\t'SYNTAX_USE_WRAP' => $this->yes_no_select(\r\n\t\t\t\t\t\t$this->member['syntax_use_wrap'],\r\n\t\t\t\t\t\t'SYNTAX_USE_WRAP',\r\n\t\t\t\t\t\t0\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'SYNTAX_USE_LINE_NUMBERING' => $this->yes_no_select(\r\n\t\t\t\t\t\t$this->member['syntax_use_line_numbering'],\r\n\t\t\t\t\t\t'SYNTAX_USE_LINE_NUMBERING',\r\n\t\t\t\t\t\t0\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'SYNTAX_USE_LINE_COLOURING' => $this->yes_no_select(\r\n\t\t\t\t\t\t$this->member['syntax_use_line_colouring'],\r\n\t\t\t\t\t\t'SYNTAX_USE_LINE_COLOURING',\r\n\t\t\t\t\t\t1\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'SYNTAX_SHOW_CONTROLS' => $syntax_show_controls,\r\n\t\t\t\t\t'SHOW_NEW' => $show_new . \"</select>\",\r\n\t\t\t\t\t'HOTCLOCKS' => $hotclocks . \"</select>\",\r\n\t\t\t\t\t'FORUM_ICON' => $forum_icon . \"</select>\",\r\n\t\t\t\t\t'TPS' => $topic_select,\r\n\t\t\t\t\t'PPS' => $post_select,\r\n\t\t\t\t\t'PSP' => \"<input name='VIEW_POST_WRAP_SIZE' type='text' value='\" . $ibforums->member['post_wrap_size'] . \"' class='forminput'>\",\r\n\t\t\t\t)\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->page_title = $ibforums->lang['t_welcome'];\r\n\r\n\t\t$this->nav = array(\"<a href='\" . $this->base_url . \"act=UserCP&amp;CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\t}", "public function index(){\n //crea un arreglo y pone como dato lo que se va a mostrar en la vista \n $noticias = $this->noticia_modelo->traerParte(0,15);\n $datos = [\n 'titulo' => 'NotiFalso',\n 'noticias' => $noticias\n ];\n //inicia la vista \n $this->vista('paginas/inicio',$datos);\n }", "public function index() {\n $establecimientoMapper = new Establecimientomapper();\n $codigoMapper = new Codigomapper();\n // Se recupera el establecimiento\n $idEstablecimiento = $_SESSION['id'];\n $establecimiento = $establecimientoMapper->recuperarEstablecimiento($idEstablecimiento);\n // Se recuperan los datos del establecimiento\n $nombre = $establecimiento->get_nombre();\n $direccion = $establecimiento->get_direccion();\n $localizacion = $establecimiento->get_localizacion();\n $descripcion = $establecimiento->get_descripcion();\n $codigos = $establecimientoMapper->recuperarCodigosEstablecimiento($idEstablecimiento);\n require_once('views/establecimiento/index.php');\n }", "function displayListeCommandesEnCours() {\n\t\t//On test si l'utilisateur est bien connecté\n\t\tif($_SESSION[\"connect\"] == true AND $_SESSION[\"statutUtilisateur\"] == 0) {\n\t\t\techo \"<div class='container bloc-top'>\";\n\t\t\t\techo \"<div class='row'>\";\n\t\t\t\t\techo \"<div class='col-md-6'>\";\n\t\t\t\t\t\techo \"<h2>Liste des commandes en cours</h2>\";\n\t\t\t\t\techo \"</div>\";\n\t\t\t\techo \"</div>\";\n\t\t\t\t\n\t\t\t\techo \"<div class='row mt-s'>\";\n\t\t\t\t\techo \"<div class='col-md-12'>\";\n\t\t\t\t\t\techo \"<div class='table-responsive'>\";\n\t\t\t\t\t\t\techo \"<table class='table table-bordered center'>\";\n\t\t\t\t\t\t\t\techo \"<thead>\";\n\t\t\t\t\t\t\t\t\techo \"<tr class='bg-grey'>\";\n\t\t\t\t\t\t\t\t\t\techo \"<th class='center'>Date</th>\";\n\t\t\t\t\t\t\t\t\t\techo \"<th class='center'>Numéro</th>\";\n\t\t\t\t\t\t\t\t\t\techo \"<th class='center'>Statut</th>\";\n\t\t\t\t\t\t\t\t\t\techo \"<th class='center'>Actions</th>\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\";\n\t\t\t\t\t\t\t\techo \"</thead>\";\n\t\t\t\t\t\t\t\techo \"<tbody>\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$selectListeCommandesEnCours = dbConnexion()->prepare(\"SELECT * FROM fichier f JOIN commande c ON f.idFichier = c.idFichier WHERE c.statutCommande <> 4 AND f.idUtilisateur = \".$_SESSION[\"idUtilisateur\"].\" ORDER BY c.dateCommande, c.numCommande;\");\n\t\t\t\t\t\t\t\t$selectListeCommandesEnCours->execute();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach($selectListeCommandesEnCours as $rowListeCommandesEnCours) {\n\t\t\t\t\t\t\t\t\t$idCommande = htmlspecialchars($rowListeCommandesEnCours[\"idCommande\"]);\n\t\t\t\t\t\t\t\t\t$dateCommande = htmlspecialchars($rowListeCommandesEnCours[\"dateCommande\"]);\n\t\t\t\t\t\t\t\t\t$numCommande = htmlspecialchars($rowListeCommandesEnCours[\"numCommande\"]);\n\t\t\t\t\t\t\t\t\t$statutCommande = htmlspecialchars($rowListeCommandesEnCours[\"statutCommande\"]);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$dateCommande = explode(\"-\", $dateCommande);\n\t\t\t\t\t\t\t\t\t$dateCommande = $dateCommande[2].\"/\".$dateCommande[1].\"/\".$dateCommande[0];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($statutCommande == 0) {\n\t\t\t\t\t\t\t\t\t\t$color = \"danger\";\n\t\t\t\t\t\t\t\t\t\t$statut = \"En attente de préparation\";\n\t\t\t\t\t\t\t\t\t} else if($statutCommande == 1) {\n\t\t\t\t\t\t\t\t\t\t$color = \"warning\";\n\t\t\t\t\t\t\t\t\t\t$statut = \"En cours de préparation\";\n\t\t\t\t\t\t\t\t\t} else if($statutCommande == 2) {\n\t\t\t\t\t\t\t\t\t\t$color = \"warning\";\n\t\t\t\t\t\t\t\t\t\t$statut = \"Prête à être expédiée\";\n\t\t\t\t\t\t\t\t\t} else if($statutCommande == 3) {\n\t\t\t\t\t\t\t\t\t\t$color = \"success\";\n\t\t\t\t\t\t\t\t\t\t$statut = \"Expédiée\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$color = \"\";\n\t\t\t\t\t\t\t\t\t\t$statut = \"N/C\";\n\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\techo \"<tr>\";\n\t\t\t\t\t\t\t\t\t\techo \"<td>\".$dateCommande.\"</td>\";\n\t\t\t\t\t\t\t\t\t\techo \"<td>N°\".$numCommande.\"</td>\";\n\t\t\t\t\t\t\t\t\t\techo \"<td class='\".$color.\"'>\".$statut.\"</td>\";\n\t\t\t\t\t\t\t\t\t\techo \"<td>\";\n\t\t\t\t\t\t\t\t\t\t\techo \"<div class='col-md-6'>\";\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<a href='./?page=detailCommande&idCommande=\".$idCommande.\"' class='btn btn-primary btn-block'><span class='glyphicon glyphicon-eye-open' aria-hidden='true'></span>&nbsp;&nbsp;Détails</a>\";\n\t\t\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\t\t\techo \"<div class='col-md-6'>\";\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($statutCommande == 3) {\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<form method='post' action='.'>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<input type='hidden' name='form-idCommande' value='\".$idCommande.\"' />\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<button type='submit' class='btn btn-success btn-block'><span class='glyphicon glyphicon-thumbs-up' aria-hidden='true'></span>&nbsp;&nbsp;Reçu ?</button>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<input type='hidden' name='action' value='ReceptionCommande' />\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"</form>\";\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\n\t\t\t\t\t\t\t\t\t\t\techo \"</div>\";\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\techo \"</td>\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\";\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\techo \"</tbody>\";\n\t\t\t\t\t\t\techo \"</table>\";\n\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\techo \"</div>\";\n\t\t\t\techo \"</div>\";\n\t\t\techo \"</div>\";\n\t\t}\n\t}", "function afficherInterface2()\r\n {\r\n echo \"<h1>code pour MonInterface2 SURCHARGE ENFANT</h1>\";\r\n }", "public function getJadwalDimulai();", "function obtiene_bebidas_menu($valor=1){\n /**\n * guardamos la consulta en $sql obtiene todos las tuplas de la tabla\n * ejecutamos la consulta en php obtenemos una tabla con los resultados\n * en el for convertimos a cada tupla en un objeto y añadimos al array $objetos uno a uno\n * retornamos un array con todas las tuplas como objetos\n */\n try {\n $sql=\"SELECT * FROM \".Bebidas::TABLA[0].\" WHERE tipo = 'zumo' and estado = $valor or tipo = 'refresco_con_gas' and estado = $valor or tipo = 'refresco_sin_gas' and estado = $valor\";\n $resultado=$this->conexion->query($sql);\n $objetos=array();\n\n while ($fila=$resultado->fetch_object()){\n $objetos[]=$fila;\n //echo 'fila = '. var_dump($fila);\n }\n\n /*\n for($x=0;$x<$resultado->field_count;$x++){\n $objetos[$x]=$resultado[$x]->fetch_object();\n }*/\n return $objetos;\n } catch (Exception $ex) {\n echo 'error '.$ex;\n }\n \n \n }", "function change_dashboard_menu() {\n\t\tglobal $menu;\n\t\tforeach( $menu as $key => $menu_setting ) {\n\t\t\t$menu_slug = $menu_setting[2];\n\t\t\tif( empty( $menu_slug ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif( $menu_slug != 'index.php' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$menu[ $key ][0] = 'گزارش';\n\t\t\tbreak;\n\t\t}\n\t}", "public function index($año){\n $this->load->view('layout/header');\n $data['titulo'] = \"Matriz de exposicion año $año\";\n $data['año'] = $año;\n $this->load->view('layout/menu', $data);\n $data['procesos'] = $this->proceso_model->getAllProcesosConNivelDeExposicion($año);\n $data['años'] = $this->nivel_exposicion_proceso_model->getAñosConCalificaciones();\n $this->load->view('matriz_exposicion/index', $data);\n $this->load->view('layout/footer');\n }", "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "public function show()\n {\n //the board string is used in the view\n $data = $this->getBoardAsString();\n require VIEW_PATH.'web.php';\n\n }", "public function vistaTablaZona() {\n\t\t$fila = 0;\n\t\tprint \"<script type='text/javascript' language='javascript'>\\n\";\n\t\tprint \"function envia(opcion,id){\\n\";\n\t\tprint \" document.forms.lista.id_zona.value=id;\\n\";\n\t\tprint \" \tsubmitform(opcion);\\n\";\n\t\tprint \"}\\n\";\n\t\tprint \"</script>\\n\";\n\t\tprint \"<span class='pg_titulo'>Listado de Zonas</span><br><br>\\n\";\n\t\t$menu = new Menu ( );\n\t\t$menu->dibujaMenu ( 'lista', 'opcion' );\n\t\tprint \"<form name='lista' method='POST' action='respondeMenu.php'>\";\n\t\tprint \" <table class='cd_tabla' width='100%'>\\n\";\n\t\tprint \" <tr>\\n\";\n\t\tprint \" <td class='cd_lista_titulo' colspan='2'>&nbsp;</td>\\n\";\n\t\tprint \" <td class='cd_lista_titulo'>Zona</td>\\n\";\n\t\tprint \"\t </tr>\\n\";\n\t\t$evenBSN = new ZonaBSN ( );\n\t\t$arrayEven = $evenBSN->cargaColeccionForm ();\n\t\tif (sizeof ( $arrayEven ) == 0) {\n\t\t\tprint \"No existen datos para mostrar\";\n\t\t} else {\n\t\t\tforeach ( $arrayEven as $Even ) {\n\t\t\t\tif ($fila == 0) {\n\t\t\t\t\t$fila = 1;\n\t\t\t\t} else {\n\t\t\t\t\t$fila = 0;\n\t\t\t\t}\n\t\t\t\tprint \"<tr>\\n\";\n\t\t\t\tprint \"\t <td align='center' width='25' class='row\" . $fila . \"'>\";\n\t\t\t\tprint \" <a href='javascript:envia(132,\" . $Even ['id_zona'] . \");' border='0'>\";\n\t\t\t\tprint \" <img src='images/building_edit.png' alt='Editar' title='Editar' border=0></a></td>\";\n\t\t\t\tprint \"\t <td align='center' width='25' class='row\" . $fila . \"'>\";\n\t\t\t\tprint \" <a href='javascript:envia(133,\" . $Even ['id_zona'] . \");' border=0 onclick=\\\"return confirm('Esta seguro que quiere eliminar este registro?');\\\">\";\n\t\t\t\tprint \" <img src='images/delete.png' alt='Borrar' title='Borrar' border=0></a>\";\n\t\t\t\tprint \" </td>\\n\";\n\t\t\t\tprint \"\t <td class='row\" . $fila . \"'>\" . $Even ['nombre_zona'] . \"</td>\\n\";\n\t\t\t\tprint \"\t</tr>\\n\";\n\t\t\t}\n\t\t}\n\t\tprint \" </table>\\n\";\n\t\tprint \"<input type='hidden' name='id_zona' id='id_zona' value=''>\";\n\t\tprint \"<input type='hidden' name='opcion' id='opcion' value=''>\";\n\t\tprint \"</form>\";\n\t}" ]
[ "0.5767685", "0.5757089", "0.57241136", "0.5694339", "0.5665511", "0.55982226", "0.55319005", "0.5500014", "0.54753673", "0.54726034", "0.54715633", "0.54480356", "0.5437662", "0.5422935", "0.5421773", "0.54078096", "0.54020065", "0.54010206", "0.54010206", "0.5400618", "0.53986806", "0.53824514", "0.5354702", "0.5347595", "0.53434396", "0.5338486", "0.53175735", "0.53123754", "0.5291167", "0.52753335", "0.52574337", "0.52570766", "0.5254803", "0.5251775", "0.5246547", "0.52434707", "0.5241212", "0.5240476", "0.5240115", "0.52386767", "0.5234693", "0.52334297", "0.52133", "0.52127683", "0.5212653", "0.5211172", "0.5204523", "0.5201031", "0.519943", "0.51989794", "0.519646", "0.51918495", "0.5189059", "0.51813626", "0.5175573", "0.51681685", "0.51620764", "0.51561767", "0.5154839", "0.51426893", "0.51425505", "0.5129852", "0.512035", "0.5117471", "0.5117168", "0.51160383", "0.51131815", "0.5112315", "0.51122653", "0.5107814", "0.51062226", "0.5103339", "0.51011664", "0.5093984", "0.5090831", "0.5088828", "0.5088462", "0.5078828", "0.50783455", "0.50783455", "0.50783455", "0.50783455", "0.50783455", "0.50783455", "0.5075431", "0.5073804", "0.5071073", "0.5070255", "0.50685716", "0.5054816", "0.50482273", "0.504787", "0.504768", "0.50471467", "0.5043934", "0.50422317", "0.50398284", "0.5038474", "0.5037773", "0.50367594", "0.50349796" ]
0.0
-1
/ SEMANAS POR MES
function semanasMes($year,$month){ # Obtenemos el ultimo dia del mes $ultimoDiaMes=date("t",mktime(0,0,0,$month,1,$year)); # Obtenemos la semana del primer dia del mes $primeraSemana=date("W",mktime(0,0,0,$month,1,$year)); # Obtenemos la semana del ultimo dia del mes $ultimaSemana=date("W",mktime(0,0,0,$month,$ultimoDiaMes,$year)); # Devolvemos en un array los dos valores return array($primeraSemana,$ultimaSemana); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valordelospasajesplus();", "public function valorpasaje();", "function getSemaforo() {\n\t\tglobal $usr;\n\n\t\tif ($this->extra[\"imprimir\"]) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telseif ($usr->orientacion_semaforo == 0) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telse {\n\t\t\t$this->resultado = $this->__getSemaforoInvertido();\n\t\t}\n\t}", "function promedios_por_materia($vector){\n echo \"<hr> ############# Promedios por materia #############\";\n $calificacion1=0;\n $calificacion2=0;\n $calificacion3=0;\n $calificacion4=0;\n $calificacion5=0;\n $calificacion6=0;\n foreach ($vector as $key => $value) {\n $calificacion1=$calificacion1+$vector[$key][0];\n $calificacion2=$calificacion2+$vector[$key][1];\n $calificacion3=$calificacion3+$vector[$key][2];\n $calificacion4=$calificacion4+$vector[$key][3];\n $calificacion5=$calificacion5+$vector[$key][4];\n $calificacion6=$calificacion6+$vector[$key][5];\n }\n $prom=$calificacion1/10;\n echo \"<br> Promedio materia 1: \".$prom;\n $prom=$calificacion2/10;\n echo \"<br> Promedio materia 2: \".$prom;\n $prom=$calificacion3/10;\n echo \"<br> Promedio materia 3: \".$prom;\n $prom=$calificacion4/10;\n echo \"<br> Promedio materia 4: \".$prom;\n $prom=$calificacion5/10;\n echo \"<br> Promedio materia 5: \".$prom;\n $prom=$calificacion6/10;\n echo \"<br> Promedio materia 6: \".$prom;\n }", "public function linea_colectivo();", "function inicializa(){\n $this->sem=array('Sun'=>1,'Mon'=>2,'Tue'=>3,'Wed'=>4,'Thu'=>5,'Fri'=>6,'Sat'=>7);\n $this->mes=array('1'=>'JANEIRO','2'=>'FEVEREIRO','3'=>'MARÇO','4'=>'ABRIL','5'=>'MAIO','6'=>'JUNHO','7'=>'JULHO','8'=>'AGOSTO','9'=>'SETEMBRO','10'=>'OUTUBRO','11'=>'NOVEMBRO','12'=>'DEZEMBRO');\n }", "public function AggiornaPrezzi(){\n\t}", "public function quienesSomos()\n {\n require_once \"_Vista/_Plantillas/head.php\";\n require_once \"_Vista/_Plantillas/navBar.php\";\n require_once \"_Vista/QuienesSomosVista.php\";\n }", "public function puestaACero() {\n $this -> horas = 0;\n $this -> minutos = 0;\n $this -> segundos = 0;\n }", "public function traerCualquiera()\n {\n }", "function ambas()\n {\n print \"Ejecución de la función ambas<br>\";\n # mediante $this-> requerimos la ejecución de metodo prueba\n # de la clase actual\n $this->prueba();\n # al señalar parent:: requerimos la ejecución de metodo prueba\n # de la clase padre\n parent::prueba();\n }", "function armarSemana($horarios, $horarioActual, $dias) {\n\tforeach($horarios as $hora) { //Se recorre el array de horarios\n\t\techo \"<tr><td>\".$hora.\"</td>\";\n\t\tforeach($dias as $dia=>$fecha) {\n\t\t\t$vacio = true;\n\t\t\tif($dia != \"Domingo\") {\n\t\t\t\tforeach ($horarioActual as $campo=>$estado) {\t//Se recorre el array de turnos del dia\n\t\t\t\t\tif (isset($_POST['patologias']) && $_POST['patologias'] != $estado['patologia']) { continue; }\n\t\t\t\t\tif ($hora == date(\"H:i\", strtotime($estado['HORA_TURNO'])) && date(\"w\", strtotime($estado['FECHA_TURNO'])) == date(\"w\", strtotime($fecha))) {\t//Si el turno coincide con el horario y el dia\n\t\t\t\t\t\tif (verificarLaborable($hora, $dia) == true) {\n\t\t\t\t\t\t\t$vacio = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$cupos = obtenerCuposTurno($estado['FECHA_TURNO'], $hora); //guardo cantidad de cupos por hora y fecha dadas\n\t\t\t\t\t\t\t$cantCamillas = 0;\n\t\t\t\t\t\t\t$cantGimnasio = 0;\n\t\t\t\t\t\t\tforeach($cupos as $reg=>$camp) {\t//en este for asigno las cantidades para cada categoria\n\t\t\t\t\t\t\t\tif($camp['sesion'] == \"Camilla\") {\n\t\t\t\t\t\t\t\t\t$cantCamillas += $camp['cantidad'];\n\t\t\t\t\t\t\t\t} elseif($camp['sesion'] ==\"Gimnasio\") {\n\t\t\t\t\t\t\t\t\t$cantGimnasio += $camp['cantidad'];\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$disponibilidad = estadoTurno($cantCamillas, $cantGimnasio);\n\n\t\t\t\t\t\t\tif ($disponibilidad == \"Disponible\") { //If que determina los colores de las casillas\n\t\t\t\t\t\t\t\t$colorCasilla = \"disponible\";\n\t\t\t\t\t\t\t} elseif($disponibilidad == \"Libre\") {\n\t\t\t\t\t\t\t\t$colorCasilla = \"libre\";\n\t\t\t\t\t\t\t} elseif($disponibilidad == \"Ocupado\") {\n\t\t\t\t\t\t\t\t$colorCasilla = \"ocupado\";\n\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/*if ($GLOBALS['perfil'] == \"profesional\") { //si el perfil es de profesional, se veran los cupos disponibles\n\t\t\t\t\t\t\t\techo \"<td class=\".$colorCasilla.\">\".$estado[\"camilla\"].\"</td>\",\n\t\t\t\t\t\t\t\t\"<td class=\".$colorCasilla.\">\".$estado[\"gimnasio\"].\"</td>\";\n\t\t\t\t\t\t\t} else { */\n\t\t\t\t\t\t\techo \"<td class=\".$colorCasilla.\">\".cantidadCupos($cantCamillas, $GLOBALS['MaximoCamillas']).\"</td>\",\n\t\t\t\t\t\t\t\"<td class=\".$colorCasilla.\">\".cantidadCupos($cantGimnasio, $GLOBALS['MaximoGimnasio']).\"</td>\";\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif ($disponibilidad == \"Disponible\") { \n\t\t\t\t\t\t\t\techo \"<td class=\".$colorCasilla.\"><input type='button' value='Si' onclick='location=\\\"reservar.php?fecha=\".$fecha.\"&hora=\".$hora.\"\\\";'/></td>\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\techo \"<td class=\".$colorCasilla.\">No</td>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} elseif (verificarLaborable($hora, $dia) == false) {\n\t\t\t\t\t\t\t//Si la hora dada no es laboral el dia dado, entonces\n\t\t\t\t\t\t\techo \"<td class='cerrado'>-</td>\", \n\t\t\t\t\t\t\t\"<td class='cerrado'>-</td>\",\n\t\t\t\t\t\t\t\"<td class='cerrado'>-</td>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\tif ($vacio == true) {\n\t\t\t\t\t\tif(verificarLaborable($hora, $dia)) {\n\t\t\t\t\t\t\tif ($_SESSION['perfil'] == \"Administrador\") {\n\t\t\t\t\t\t\t\techo \"<td class='libre'>\".$GLOBALS['MaximoCamillas'].\"</td>\", \"<td class='libre'>\".$GLOBALS['MaximoGimnasio'].\"</td>\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\techo \"<td class='libre'>Si</td>\", \"<td class='libre'>Si</td>\"; \n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\techo \"<td class='libre'><input type='button' value='Si' onclick='location=\\\"reservar.php?fecha=\".$fecha.\"&hora=\".$hora.\"\\\";'/></td>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//Si la hora dada no es laboral el dia dado, entonces\n\t\t\t\t\t\t\techo \"<td class='cerrado'>-</td>\", \n\t\t\t\t\t\t\t\"<td class='cerrado'>-</td>\",\n\t\t\t\t\t\t\t\"<td class='cerrado'>-</td>\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo \"</tr>\";\n\t}\n}", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "final function velcom(){\n }", "public function seminarioClase( ) {\n\n\n AccesoGui::$guiSistema->esperarInicioSistema();\n\n AccesoControladoresDispositivos::$ctrlLuz->setLucesEscenarios(LuzTecho::$ESCENARIO_SEMINARIO_CLASE);\n AccesoControladoresDispositivos::$ctrlMatrizVGA->asignarAudio(1,1);\n AccesoControladoresDispositivos::$ctrlAutomata->encenderLuzSala(Automata::$intensidades[\"maxima\"]);\n usleep(500000);\n ConexionServidorCliente::$ctrlGuiPantallas->subirPantallaElectrica();\n AccesoControladoresDispositivos::$ctrlFoco->apagar();\n ConexionServidorCliente::$ctrlGuiPlasmas->encender();\n\t//Comentado mientras se repara el visor de opacos.\n //ConexionServidorCliente::$ctrlGuiCamaraDocumentos->camaraDocumentosApagar();\n ConexionServidorCliente::$ctrlGuiProyectores->apagarPizarra();\n ConexionServidorCliente::$ctrlGuiProyectores->apagarCentral();\n AccesoControladoresDispositivos::$ctrlMesaMezclas->preset90();\n\tAccesoControladoresDispositivos::$ctrlMesaMezclas->desactivarMicPresidencia(\"M1\");\n ConexionServidorCliente::$ctrlGuiPantallas->pipEnPantallaPresi();\n AccesoGui::$guiEscenarios->escenarioSeminario();\n AccesoGui::$guiMenus->menuPrincipal(true);\n AccesoGui::$guiSistema->mostrarMenu();\n AccesoGui::$guiEscenarios->enviarEstadoVideoconferencia();\n\tAccesoControladoresDispositivos::$ctrlProyectores->estadoCentral();\n\tAccesoControladoresDispositivos::$ctrlProyectores->estadoPizarra();\n }", "private function setExercicio(){\n\t\t$this->Enunciado = $this->Data['enunciado'];\n\t\t$this->A = $this->Data['opA'];\n\t\t$this->B = $this->Data['opB'];\n\t\t$this->C = $this->Data['opC'];\n\t\t$this->D = $this->Data['opD'];\n\t\t$this->E = $this->Data['opE'];\n\t\t$this->Correta = $this->Data['correta'];\n\n\t\t$this->Query = ['c_enumexer' => $this->Enunciado,\n\t\t\t\t\t\t'c_altaexer' => $this->A,\n\t\t\t\t\t\t'c_altbexer' => $this->B,\n\t\t\t\t\t\t'c_altcexer' => $this->C,\n\t\t\t\t\t\t'c_altdexer' => $this->D,\n\t\t\t\t\t\t'c_alteexer' => $this->E,\n\t\t\t\t\t\t'c_correxer' => $this->Correta];\n\n\t}", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "public function gera_linhas_somatorios()\n\t{\n\t\tif(count($this->somatorios) > 0)\n\t\t{\n\t\t\techo \"<tr class=totalizadores>\";\n\t\t\tfor($i=0; $i < count($this->nome_colunas); $i++)\n\t\t\t{\n\t\t\t\t$alinhamento = $this->nome_colunas[$i][alinhamento];\n\n\t\t\t\tfor($b=0; $b < count($this->somatorios); $b++)\n\t\t\t\t{\n\t\t\t\t\tif($this->nome_colunas[$i][nome_coluna] == $this->somatorios[$b][nome_coluna])\n\t\t\t\t\t{\n\t\t\t\t\t\t$valor = $this->somatorios[$b][total];\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// \tVERIFICO SE E PARA IMPRIMIR O VALOR\n\t\t\t\tif($this->nome_colunas[$i][somatorio] == 's')\n\t\t\t\t{\n\t\t\t\t\t//\t ESCOLHO O TIPO DE DADO\n\t\t\t\t\tswitch($this->nome_colunas[$i][tipo])\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 'moeda':\n\t\t\t\t\t\t\t$valor = Util::exibe_valor_moeda($valor);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'data':\n\t\t\t\t\t\t\t$valor = Util::data_certa($valor);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$valor = $valor;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\techo \"\n\t\t\t\t\t\t \t<td align=$alinhamento>\n\t\t\t\t\t\t\t\t\" . $valor . \"\n\t\t\t\t\t\t \t</td>\n\t\t\t\t\t\t \";\n\t\t\t\t\t$valor = '';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo \"<td align=$alinhamento></td>\";\n\t\t\t\t}\n\n\n\n\t\t\t}\n\t\t\techo '</tr>';\n\t\t}\n\t}", "function determinaFechosVazios()\n{\n\tglobal $mTransicoes, $lAlfabeto, $fechoVazio, $lEstados, $lTokens; \t\n\n\t//Variáveis\n\t$arrayEstados = NULL; //array com as diversas transições vazias de um mesmo estado\n\t$arrayEstados2 = NULL;\t\n\t$transConcatenadas = NULL; //array com a string inteira da transição, pode ter diversas transições vazias\n\n\techo \"------------------------------------<br>\";\n\techo \"Passo 1: Fechos dos estados<br>\";\n\t\n\tfor($i = 1; $i <= sizeof($lEstados); $i++) //determina o fecho para cada estado do autômato\n\t{ \n\t\t//echo \"Fecho de \".$lEstados[$i].\":<br>\";\n\t\t//echo \"&nbsp;&nbsp;Transicoes vazias: \".$mTransicoes[$lEstados[$i]][$lAlfabeto[0]].\"<br>\";\n\t\tif($mTransicoes[$lEstados[$i]][$lAlfabeto[0]] != '-') //mtransicoes[\"q0\"][\"e\"] != \"-\" \n\t\t{\n\t\t\t//echo \"&nbsp;&nbsp;Diferente de '-'<br>\";\n\t\t\t$fechoVazio[$lEstados[$i]][] = $lEstados[$i]; //coloca ele mesmo na lista //fechoVazio[\"q0\"][0] = \"q0'\n\t\t\t$lTokens = NULL; //limpa conteúdo de $lTokens\n\t\t\ttokeniza($mTransicoes[$lEstados[$i]][$lAlfabeto[0]]); //\"tokeniza\" vai deixar em $lTokens todos os estados de transição vazia\n\t\t\t$arrayEstados = $lTokens;\t\n\t\n\t\t\tfor($j = 0; $j < sizeof($arrayEstados); $j++)\n\t\t\t{\n\t\t\t\t//echo \"&nbsp;&nbsp;arrayEstados[$j] = \".$arrayEstados[$j].\"<br>\";\t\t\t\t\n\t\t\t\t//ve se o estado está no fecho, se não estiver coloca\n\t\t\t\tif(array_search($arrayEstados[$j], $fechoVazio[$lEstados[$i]]) == NULL \t\n\t\t\t\t\t\t\t\t&& $arrayEstados[$j] != '-'\n\t\t\t\t\t\t\t\t&& $arrayEstados[$j] != $fechoVazio[$lEstados[$i]][0])\t\n\t\t\t\t{ //o teste é igual a NULL, logo não achou o estado no fecho\n\t\t\t\t\t$fechoVazio[$lEstados[$i]][sizeof($fechoVazio[$lEstados[$i]])] = $arrayEstados[$j];\n\t\t\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;1fechoVazio[$lEstados[$i]][\".sizeof($fechoVazio[$lEstados[$i]]).\"]: \".$arrayEstados[$j].\"<br>\";\n\t\t\t\t\t//agora precisamos ver as transições vazias do arrayEstados[$j]\n\t\t\t\t\t$lTokens = NULL; //limpa conteúdo de $lTokens\n\t\t\t\t\ttokeniza($mTransicoes[$arrayEstados[$j]][$lAlfabeto[0]]); \n\t\t\t\t\t$arrayEstados2 = NULL;\n\t\t\t\t\t$arrayEstados2 = $lTokens;\n\t\t\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\";\t\n\t\t\t\t\t//echo \"transicao: \".$arrayEstados2[0].\"<br>\";\n\t\n\t\t\t\t\tfor($k = 0; $k < sizeof($arrayEstados2); $k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(array_search($arrayEstados2[$j], $fechoVazio[$lEstados[$i]]) == NULL \n\t\t\t\t\t\t\t\t\t\t&& $arrayEstados2[$j] != '-' \n\t\t\t\t\t\t\t\t\t\t&& $arrayEstados2[$j] != $fechoVazio[$lEstados[$i]][0])\t\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$fechoVazio[$lEstados[$i]][sizeof($fechoVazio[$lEstados[$i]])] = $arrayEstados2[$k];\n\t\t\t\t\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;2fechoVazio[$lEstados[$i]][\".sizeof($fechoVazio[$lEstados[$i]]).\"]: \".$arrayEstados2[$j].\"<br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} \t\n\t\t}\n\t\telse //estado sem transições vazias, logo o fecho vazio é vazio\n\t\t{\n\t\t\t$fechoVazio[$lEstados[$i]][] = $lEstados[$i]; //o fecho de um estado contém ele próprio sempre\n\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;Eh vazio, coloca so ele mesmo<br>\";\n\t\t}\n\t}\t\n\n\tfor($i = 1; $i <= sizeof($lEstados); $i++) //determina o fecho para cada estado do autômato\n\t{ \n\t\tsort($fechoVazio[$lEstados[$i]]);\n\t\techo $lEstados[$i].\": \";\n\t\tfor($j = 0; $j < sizeof($fechoVazio[$lEstados[$i]]); $j++)\n\t\t{\n\t\t\techo $fechoVazio[$lEstados[$i]][$j].\".\";\n\t\t}\n\t\techo \"<br>\";\n\t}\n\n\techo \"------------------------------------<br>\";\n\treturn;\n}", "public function calcula13o()\n {\n }", "public function calcula13o()\n {\n }", "public function StampaCarrello() {\n\t\t$somma=0;\n\t\tif (count($this->contenuto) > 0) \n\t\t{ ?>\n\n\t\t\t<table>\n\t\t\t\t<tbody>\n\t\t\t\t\t<?\n\t\t\t\t\t?><tr >\n\t\t\t\t\t\t\t<th>Prodotto</th>\n\t\t\t\t\t\t\t<th>Quantità</th>\n\t\t\t\t\t\t</tr><?\n\n\t\t\t\t\t\tfor ($i=0;$i<count($this->contenuto);$i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td><?= $this->contenuto[$i]->getNome() ;?></br> \n\t\t\t\t\t\t\t\t<td><?= $this->quantita[$i] ,' Kg';?></br> <?\n\t\t\t\t\t\t\t\t$somma=$somma+($this->contenuto[$i]->getPrezzo()*$this->quantita[$i]);?></br> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<p> Totale:<?=$somma, ' Euro' ?></p>\n\t\t\t<form method=\"post\" action=\"index.php?page=utente&subpage=home&somma=<?= $somma ?>\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"cmd\" value=\"completaOrdine\"/>\n\t\t\t\t\t\t<label for=\"date\">Inserisci la data di consegna</label>\n\t\t\t\t\t\t<input type=\"date\" name=\"date\" value=\"2000-01-01\"/>\n\t\t\t\t\t\t<button type=\"submit\">Conferma ordine </button>\n \t\t\t</form>\n\n\t<?php } \n\telse \n\t\t{ \n\t\t\t?><p class=\"messaggio\"> Nessun prodotto inserito </p><?\n\t\t} \n\t}", "function carrega_vetor_lexicos($id_projeto, $id_lexico_atual, $semAtual) {\n \n //testes if the variable is not null\n assert($id_projeto != NULL);\n assert($id_lexico_atual != NULL);\n assert($semAtual != NULL);\n \n //tests if the variable has the correct type\n assert(is_string($id_projeto));\n assert(is_string($id_lexico_atual));\n assert(is_string($semAtual));\n \n $vetorDeLexicos = array();\n if ($semAtual) {\n $queryLexicos = \"SELECT id_lexico, nome \n\t\t\tFROM lexico \n\t\t\tWHERE id_projeto = '$id_projeto' \n AND id_lexico <> '$id_lexico_atual' \n\t\t\tORDER BY nome DESC\";\n\n $querySinonimos = \"SELECT id_lexico, nome \n\t\t\tFROM sinonimo\n\t\t\tWHERE id_projeto = '$id_projeto' \n AND id_lexico <> '$id_lexico_atual' \n\t\t\tORDER BY nome DESC\";\n } else {\n\n $queryLexicos = \"SELECT id_lexico, nome \n\t\t\tFROM lexico \n\t\t\tWHERE id_projeto = '$id_projeto' \n\t\t\tORDER BY nome DESC\";\n\n $querySinonimos = \"SELECT id_lexico, nome \n\t\t\tFROM sinonimo\n\t\t\tWHERE id_projeto = '$id_projeto' \n ORDER BY nome DESC\";\n }\n\n $resultadoQueryLexicos = mysql_query($queryLexicos) or\n die(\"Erro ao enviar a query de selecao na tabela lexicos !\" . \\mysql_error());\n\n $i = 0;\n while ($linhaLexico = mysql_fetch_object($resultadoQueryLexicos)) {\n $vetorDeLexicos[$i] = $linhaLexico;\n $i++;\n }\n\n $resultadoQuerySinonimos = mysql_query($querySinonimos) or\n die(\"Erro ao enviar a query de selecao na tabela sinonimos !\" . mysql_error());\n while ($linhaSinonimo = mysql_fetch_object($resultadoQuerySinonimos)) {\n $vetorDeLexicos[$i] = $linhaSinonimo;\n $i++;\n }\n return $vetorDeLexicos;\n}", "public function __construct() {\n self::$presidencia=new Camara(\"CamaraPresidencia\");\n self::$alumnos1=new Camara(\"CamaraAlumnos1\");\n self::$alumnos2=new Camara(\"CamaraAlumnos2\");\n }", "public function getOpcionesEstadosPosiblesDeCambio(){\n \t//return array('planificado' => 'Planificado','parcial' => 'Realizada Parcialmente','cancelado' => 'Cancelada', 'realizado' => 'Realizada');\n \tif($this->esPlanificada()){\n\t\t\treturn array('planificado' => 'Planificado','parcial' => 'Realizada Parcialmente','cancelado' => 'Cancelada');\n\t\t}\n\t\telseif($this->esParcial()){\n\t\t\treturn array('parcial' => 'Realizada Parcialmente','atrasado' => 'Atrasado','cancelado' => 'Cancelada', 'realizado' => 'Realizada');\n\t\t}\n\t\telseif($this->esAtrasada()){\n\t\t\treturn array('parcial' => 'Realizada Parcialmente','atrasado' => 'Atrasado','cancelado' => 'Cancelada', 'realizado' => 'Realizada');\n\t\t}\n\t\telseif($this->esCancelada()){\n\t\t\treturn array('cancelado' => 'Cancelada');\n\t\t}\n\t\telseif($this->esRealizada()){\n\t\t\treturn array('realizado' => 'Realizada');\n\t\t}\n\t\treturn array('planificado' => 'Planificado','parcial' => 'Realizada Parcialmente','cancelado' => 'Cancelada', 'realizado' => 'Realizada');\n\t}", "function __construct(){\n $this->valorBruto = 0;\n $this->valorImpostos = 0;\n\n $this->itens = array(); // gera um array pra guardar os itens\n $this->acoesAoGerar = array();\n }", "function NUMERO_LUNES_FECHA($_ARGS) {\r\n\t$_FECHA_EGRESO = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif (ESTADO($_ARGS) == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['HASTA']) list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\telse list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']);\r\n\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t} else {\r\n\t\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mi-$ai\";\t$diai = (int) $di;\r\n\t\t\t\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t}\r\n\t}\r\n\telse {\r\n\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_FECHA_EGRESO);\r\n\t\t\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t} else {\t\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mp-$ap\";\t$diai = (int) $di;\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$lunes = 0;\r\n\tfor ($dia=$dia_inicio; $dia<=$dia_fin; $dia++) {\r\n\t\tif ($dia_semana == 7) $dia_semana = 0;\r\n\t\tif ($dia_semana == 1) $lunes++;\r\n\t\t$dia_semana++;\r\n\t}\r\n\treturn $lunes;\r\n}", "function verMas()\t\r\n\t\t{\r\n\t\t\t\r\n\t\t\tglobal $use;\r\n\t\t\tglobal $priv;\r\n\r\n\t\t\t//NOTA: Para ver si funciona tienen que asociarle un adherente en la tabla socios, ya que en los datos de ejemplo todos son titulares\r\n\t\t\t//NOTA: Lo que hice fue: en tabla socios en numero_soc=00044 cambiar el campo soc_titula de manera que quede soc_titula=00277\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DEL ASOCIADO TITULAR----------------\r\n\t\t\t\r\n\t\t\t$numero_socio = $_GET['num_soc']; //Es el número del socio titular que debe ser tomado del PASO 1\r\n\t\t\t\r\n\r\n\t\t\t\t$resultadoTitular = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t\t\t\t\t\t FROM socios,persona \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\");\r\n\t\t\t\t\t\t\t\t\t \r\n\r\n\t\t\tif(!$resultadoTitular)\r\n\t\t\t{\r\n\t\t\t\t$error=[\r\n\t\t\t\t'menu'\t\t\t=>\"Atenciones\",\r\n\t\t\t\t'funcion'\t\t=>\"verMas\",\r\n\t\t\t\t'descripcion'\t=>\"No se encuentra al titular $numero_socio\"\r\n\t\t\t\t];\r\n\t\t\t\techo $GLOBALS['twig']->render('/Atenciones/error.html', compact('error','use','priv'));\t\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t///---FUNCIÓN PARA CALCULAR EDAD----\r\n\t\t\t\r\n\t\t\t$fecha=$resultadoTitular[0]['fecnacim'];\r\n\t\t\t$dias = explode(\"-\", $fecha, 3);\r\n\t\t\t\r\n\t\t\t// $dias[0] es el año\r\n\t\t\t// $dias[1] es el mes\r\n\t\t\t// $dias[2] es el dia\r\n\t\t\t\r\n\t\t\t// mktime toma los datos en el orden (0,0,0, mes, dia, año) \r\n\t\t\t$dias = mktime(0,0,0,$dias[1],$dias[2],$dias[0]);\r\n\t\t\t$edad = (int)((time()-$dias)/31556926 );\r\n\t\t\t$resultadoTitular[0]['edad']=$edad;\r\n\t\t\t\r\n\t\t\t///---FIN FUNCIÓN PARA CALCULAR EDAD----\r\n\t\t\t\r\n\t\t\t$estado[0]='1';\r\n\t\t\t$estado[1]='1';\r\n\t\t\t$estado[2]='1';\r\n\t\t\t$estado[3]='1';\r\n\t\t\t$estado[4]='1';\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS SERVICIOS DEL ASOCIADO TITULAR----------------\r\n\t\t\t\r\n\t\t\t//Por cuota\r\n\t\t\t$resultadoTitularServicios1 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,fme_adhsrv.codigo,fme_adhsrv.parentesco,fme_adhsrv.periodoini,fme_adhsrv.periodofin,fme_adhsrv.motivobaja,fme_adhsrv.documento\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.idmutual \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,fme_adhsrv,tar_srv \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.socnumero = socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.codigo = tar_srv.idmutual\");\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\tif(!$resultadoTitularServicios1)\r\n\t\t\t\t$estado[0]='0';\r\n\t\t\t\r\n\t\t\t//Por tarjeta\r\n\t\t\t$resultadoTitularServicios2 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.codigo AS codigotarsrv, tar_srvadherentes.codigo, tar_srvadherentes.parentesco \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,tar_srv, tar_srvadherentes \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.socnumero = socios.soc_titula \r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.codigo = tar_srv.codigo\");\r\n\t\t\t\r\n\t\t\tif(!$resultadoTitularServicios2)\r\n\t\t\t\t$estado[1]='0';\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS ADHERENTES DEL ASOCIADO TITULAR CON APORTES POR CUOTA----------------\r\n\t\t\t\r\n\r\n\t\t $resultadoAdherentes1 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,fme_adhsrv.codigo,fme_adhsrv.parentesco,fme_adhsrv.periodoini,fme_adhsrv.periodofin,fme_adhsrv.motivobaja,fme_adhsrv.documento\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.idmutual \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,fme_adhsrv,tar_srv \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio'\r\n\t\t\t\t\t\t\t\t\t AND socios.numero_soc != socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.socnumero = socios.numero_soc \r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.codigo = tar_srv.idmutual\");\r\n\t\t\t\r\n\t\t\tif(!$resultadoAdherentes1)\r\n\t\t\t\t$estado[2]='0';\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS ADHERENTES DEL ASOCIADO TITULAR CON APORTES POR TARJETA----------------\r\n\r\n\t\t\t$resultadoAdherentes2 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.codigo AS codigotarsrv, tar_srvadherentes.codigo, tar_srvadherentes.parentesco \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,tar_srv, tar_srvadherentes \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio'\r\n\t\t\t\t\t\t\t\t\t AND socios.numero_soc != socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.socnumero = socios.numero_soc \r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.codigo = tar_srv.codigo\");\t\r\n\r\n\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\r\n\t\t\tif(!$resultadoAdherentes2)\r\n\t\t\t\t$estado[3]='0';\r\n\t\t\r\n\t\t \r\n\t\t\t//---------------CONSULTA QUE DEVUELVE EL LISTADO DE TODAS LAS ASISTENCIAS----------------\r\n\t\t\t\r\n\t\t\t//NOTA: Para que puedan ver si funciona o no hacer la prueba con el siguiente ejemplo:\r\n\t\t\t// En la tabla fme_asistencia modifiquen en cualquier lado y pongan alguno con doctitu = 06948018 (o busquen cualquier DNI de un socio titular y usen ese)\r\n\t\t\t// Cuando prueben el sistema vayan al ver más de Barrionuevo Samuel y van a ver el listado de atenciones que tiene asociado\r\n\t\t\t\r\n\t\t\t$asistencias = $GLOBALS['db']->select(\"SELECT fme_asistencia.doctitu, fme_asistencia.numdoc, fme_asistencia.nombre,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.fec_pedido, fme_asistencia.hora_pedido, fme_asistencia.dessit, fme_asistencia.fec_ate,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.sintomas, fme_asistencia.diagnostico, fme_asistencia.tratamiento, fme_asistencia.hora_aten,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.profesional\r\n\t\t\t\t\t\t\t\t\t FROM fme_asistencia, socios, persona \r\n\t\t\t\t\t\t\t\t\t WHERE soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND numero_soc = soc_titula\r\n\t\t\t\t\t\t\t\t\t AND persona.numdoc = fme_asistencia.doctitu\");\r\n\t\t\t\r\n\t\t\tif(!$asistencias)\r\n\t\t\t\t$estado[4]='0';\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\techo $GLOBALS['twig']->render('/Atenciones/perfil.html', compact('resultadoTitular', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoTitularServicios1', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoTitularServicios2', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoAdherentes1',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoAdherentes2',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'asistencias',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'estado','use','priv'));\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "function getEstadosParqueo()\n{\n return array(\n array('codigo' => 'AVL', 'valor' => 'Disponible'),\n array('codigo' => 'OCP', 'valor' => 'Ocupado'),\n array('codigo' => 'RSV', 'valor' => 'Reservado'),\n );\n}", "public function corregir_boletas_por_sector($sectores = 0, $mes = 0, $anio = 0)\n\t{\n\t\t// if($sectores == 0 )\n\t\t// \t$sectores = $this->input->post('select_tablet');\n\t\t// if($mes == 0 )\n\t\t// \t$mes = $this->input->post('mes');\n\t\t// if($anio == 0 )\n\t\t// \t$anio = $this->input->post('anio');\n\t\t// if($sectores === 0 )\n\t\t// \t{\n\t\t// \t\techo \"Error\";die();\n\t\t// \t}\n\t\t// elseif($sectores == \"A\")\n\t\t// \t$sectores = [ \"A\", \"Jardines del Sur\", \"Aberanstain\", \"Medina\", \"Salas\", \"Santa Barbara\" , \"V Elisa\"];\n\t\t// else $sectores = [ \"B\", \"C\", \"David\", \"ASENTAMIENTO OLMOS\", \"Zaldivar\" ];\n\t\t$todas_las_variables = $this->Nuevo_model->get_data(\"configuracion\");\n\t\t$mediciones_desde_query = $this->Nuevo_model->get_sectores_query_corregir($sectores, $mes, $anio );\n\t\t//var_dump($mediciones_desde_query);die();\n\t\tif($mediciones_desde_query != false)\n\t\t{\n\t\t\t$indice_actual = 0;\n\t\t\tforeach ($mediciones_desde_query as $key ) {\n\t\t\t\tif( ($key->Factura_MedicionAnterior == 0) && ($key->Factura_MedicionActual == 1) ) // bandera de tablet\n\t\t\t\t\tcontinue;\n\t\t\t\tif( ( floatval($key->Factura_PagoMonto) != floatval(0)) && ($key->Factura_PagoContado != NULL) && ($key->Factura_PagoContado != NULL) ) //si esta pagada no se re calcula\n\t\t\t\t\tcontinue;\n\t\t\t\tif( ($key->Conexion_Categoria == 1) || ($key->Conexion_Categoria == \"Familiar\") || ($key->Conexion_Categoria ==\"Familiar \") )\n\t\t\t\t{\n\t\t\t\t\t$precio_metros = $todas_las_variables[3]->Configuracion_Valor;\n\t\t\t\t\t$metros_basicos = $todas_las_variables[5]->Configuracion_Valor;\n\t\t\t\t\t$precio_bsico = $todas_las_variables[4]->Configuracion_Valor;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t$precio_metros = $todas_las_variables[6]->Configuracion_Valor;\n\t\t\t\t\t$metros_basicos = $todas_las_variables[8]->Configuracion_Valor;\n\t\t\t\t\t$precio_bsico = $todas_las_variables[7]->Configuracion_Valor;\n\t\t\t\t}\n\t\t\t\t$anterior = $key->Factura_MedicionAnterior;\n\t\t\t\t$actual = $key->Factura_MedicionActual;\n\t\t\t\t$inputExcedente = intval($actual) - intval($anterior) - intval($metros_basicos);\n\t\t\t\tif($inputExcedente < 0 )\n\t\t\t\t\t$inputExcedente = 0;\n\t\t\t\t$importe_medicion = 0;\n\t\t\t\tif($inputExcedente == 0)\n\t\t\t\t\t$importe_medicion = 0;\n\t\t\t\telse $importe_medicion = floatval($precio_metros) * floatval($inputExcedente);\n\t\t\t\t//calculo el subtotal y total\n\t\t\t\t$sub_total = floatval($key->Factura_TarifaSocial) \n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_Deuda)\n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_ExcedentePrecio )\n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_CuotaSocial )\n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_Riego )\n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_PM_Cuota_Precio)\n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_PPC_Precio)\n\t\t\t\t\t\t\t\t\t\t+ floatval($key->Factura_Multa);\n\t\t\t\t$total = $sub_total;\n\t\t\t\t$bonificacion = 0;\n\t\t\t\tif($key->Conexion_Deuda == 0)\n\t\t\t\t\t\t//$bonificacion_pago_puntual = (floatval ($excedente) + floatval($tarifa_basica)) * floatval (5) / floatval(100) ;//con bonificacion\n\t\t\t\t\t\t$bonificacion = (floatval ($inputExcedente) + floatval($key->Factura_TarifaSocial)) * floatval (5) / floatval(100) ;//con bonificacion\n\t\t\t\t$total =\tfloatval($total)\n\t\t\t\t\t\t\t\t\t\t- floatval($key->Factura_Acuenta)\n\t\t\t\t\t\t\t\t\t\t- floatval($bonificacion);\n\t\t\t\t//vtos\n\t\t\t\t$vto_2_precio = floatval($total) + floatval($total) * floatval($todas_las_variables[18]->Configuracion_Valor);\n\t\t\t\t$vto_1_precio = $total;\n\t\t\t\t$indice_actual++;\n\t\t\t\t$datos_factura_nueva = array(\n\t\t\t\t\t'Factura_SubTotal' => floatval($sub_total),\n\t\t\t\t\t'Factura_Total' => floatval($total),\n\t\t\t\t\t'Factura_Vencimiento1_Precio' => floatval($vto_1_precio),\n\t\t\t\t\t'Factura_Vencimiento2_Precio' => floatval($vto_2_precio),\n\t\t\t\t\t'Factura_ExcedentePrecio' => floatval($importe_medicion),\n\t\t\t\t\t'Factura_Excedentem3' => $inputExcedente\n\t\t\t\t\t );\n\t\t\t\t$resultado[$indice_actual] = $this->Nuevo_model->update_data_tres_campos($datos_factura_nueva, $key->Conexion_Id, \"facturacion_nueva\",\"Factura_Conexion_Id\", \"Factura_Mes\", $mes, \"Factura_Año\", $anio);\n\t\t\t\tvar_dump($datos_factura_nueva,$key->Conexion_Id);\n\t\t\t}\n\t\t\tvar_dump($datos_factura_nueva);\n\t\t}\n\t\telse\n\t\t\tvar_dump(\"Error. no hay medciones para las variables\");\t\n\t}", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "function TituloCampos()\n\t{\n\t\t$this->Ln();\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(20,74,42,44);\n\t\t$header=array(strtoupper(_('numero')),strtoupper(_('nombre')),strtoupper(_('familia')),strtoupper(_('unidad medida')));\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->SetX(15);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\treturn $w;\n\t}", "public function masodik()\n {\n }", "function TituloCampos()\n\t{\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(10,70,25,20,20,25,80);\n\t\t$header=array(strtoupper(_('nro')),strtoupper(_('Estacion de trabajo')),strtoupper(_('reporte z')),strtoupper(_('fecha')),strtoupper(_('hora')),strtoupper(_('TOTAL')),strtoupper(_('OBSERVACION')));\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->SetX(15);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\treturn $w;\n\t}", "function matricularVehiculo(){\r\n $matricula _aleatoria = rand();\r\n\r\n $encontrado = false;\r\n for ($i=0; $i< count ($this->vehiculos) && ($encontrado==false); $i++) {\r\n if ($this->vehiculos[$i] != null) {\r\n if($this->vehiculos[$i]->getMatricula() =='') {}\r\n $this->vehiculos[$i]->getMatricula($matricula_aleatoria);\r\n $encontrado = true;\r\n $pos = $i;\r\n }\r\n }\r\n }", "function paludisme($nb_susp,$nb_tdr_moins,$nb_tdr_plus,$nb_traite){\n $this->SetFont('Arial','',15);\n $this->Cell(0,6,\"Tableau de Paludisme\");\n $this->Ln();\n $this->SetFont('Times','',12);\n $this->Cell(140,5,\"Nombre de supect de paludisme \",1);\n $this->Cell(14,5,$nb_susp,1,0,'R');\n $this->Ln();\n $this->Cell(140,5,utf8_decode(\"Nombre de cas de paludisme testés\"),1);\n $this->Cell(14,5,$nb_tdr_moins + $nb_tdr_plus,1,0,'R');\n $this->Ln();\n $this->Cell(140,5,\"Nombre de cas de TDR+\",1);\n $this->Cell(14,5,$nb_tdr_plus,1,0,'R');\n $this->Ln();\n $this->Cell(140,5,utf8_decode(\"Nombre de cas de paludisme traités (confirmé)\"),1);\n $this->Cell(14,5,$nb_traite,1,0,'R');\n $this->Ln();\n $this->Ln();\n }", "function Resumen() {\r\n\t\t/*RGB begin*/\r\n\t\tglobal $variables;\r\n\t\tif (!$variables)\r\n\t\t{\r\n\t\t\tchangeVariables();\r\n\t\t\t$variables = 1;\r\n\t\t}\r\n\t\t/*RGB end*/\r\n\t\r\n\t\tglobal $mis_puntos, $wcag1, $lst_A, $lst_AA, $lst_AAA, $resultados, $lang;\r\n\t\t$resultados = array();\r\n\t\t$letras = array('A' => 'lst_A', 'AA' => 'lst_AA', 'AAA' => 'lst_AAA');\r\n\r\n\t\tforeach ($letras as $p => $arr) {\r\n\t\t\tforeach ($$arr as $k => $v) {\r\n\t\t\t\tif (array_key_exists($v, $wcag1)) {\r\n\t\t\t\t\t$x = $p.$mis_puntos[$v];\r\n\t\t\t\t}\r\n\t\t\t\t/*RGB begin*/\r\n\t\t\t\tif($_SESSION['emag'] == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tif($v != 53 && $v != 56 && $v != 92 && $v != 72)\r\n\t\t\t\t\t\t$resultados[$x]++;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\t$resultados[$x]++;\r\n\t\t\t\t/*RGB end*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->t_duda = $resultados['Aduda'] + $resultados['AAduda'] + $resultados['AAAduda'];\r\n\t\t$this->t_mal = $resultados['Amal'] + $resultados['AAmal'] + $resultados['AAAmal'];\r\n\t\t$this->t_parcial = $resultados['Aparcial'] + $resultados['AAparcial'] + $resultados['AAAparcial'];\r\n\t\t$this->t_nose = $resultados['Anose'] + $resultados['AAnose'] + $resultados['AAAnose'];\r\n\r\n\t\tif ($resultados['Aduda'] + $resultados['Anose'] + $resultados['Aparcial'] + $resultados['Amal'] == 0) {\r\n\t\t\tif ($resultados['AAduda'] + $resultados['AAnose'] + $resultados['AAparcial'] + $resultados['AAmal'] == 0) {\r\n\t\t\t\tif ($resultados['AAAduda'] + $resultados['AAAnose'] + $resultados['AAAparcial'] + $resultados['AAAmal'] == 0) {\r\n\t\t\t\t\t$ico_acc = 'AAA';\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$ico_acc = 'AA';\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$ico_acc = 'A';\r\n\t\t\t}\r\n\t\t\t$this->accesibilidad = ' <img src=\"img/her_'.$ico_acc.'.gif\" alt=\"'.sprintf($lang['ico_hera_acc'], $ico_acc).'\" width=\"90\" height=\"30\" style=\"float:right\" />';\r\n\t\t}\r\n\t\t\r\n\t\t$this->myresults = $resultados;\r\n\r\n\t}", "function dividirPalabraEnLetras($palabra){\n \n /*>>> Completar para generar la estructura de datos b) indicada en el enunciado. \n recuerde que los string pueden ser recorridos como los arreglos. <<<*/\n \n}", "function tabela($vetorComcadastros, $vetorComIndices){//Função que cria a tabela/lista recebe o vetor cos os cadsastros e outro com os indices\n retornaEscolhidos($vetorComcadastros, $vetorComIndices);//escreve a tabela\n }", "public function matricular(Aluno $a){\n $this->alunos[] = $a;\n \n }", "function sobre_planeacion($minimoMes,$maximoMes,$vigencia,$unidades,$tipo_usuario)\n\t\t{\n\t\t\t//$tipo_usuario ALMACENA EL TIPO DE USUARIO( I O E), EN UN ARRAY, ESTE SE CARGA EN LA PAGINA DE PLANEACION DE PROYECTOS (upHTplaneacionProy.PHP)\t\n//echo $unidades[0].\" - $minimoMes - $maximoMes - $vigencia ********************** <br><br>\";\n\t\t?>\n\n<?\t\t\n\t\t$ban_reg=0; //PERMITE IDENTIFICAR, SI SE ENCONTRO ALMENOS, UN USUARIO SOBRE PLANEADO, DE NO SER ASI, NO SE ENVIA EL CORREO\n\t\t$pTema ='<table width=\"100%\" border=\"0\">\n\t\t <tr class=\"Estilo2\" >\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td width=\"5%\" >Asunto:</td>\n\t\t\t<td >Sobre planeaci&oacute;n de participantes.</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t \n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\">Los siguientes participantes, tienen una dedicaci&oacute;n superior a 1 en los siguientes proyectos:</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t </tr>\n\t\t\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\" >\n\t\t\t\t<table width=\"100%\" border=\"1\" >\n\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td colspan=\"5\"></td>\n\t\t\t\t\t<td colspan=\"'.(($maximoMes-$minimoMes)+1).'\" align=\"center\" >'.$vigencia.'</td>\n\t\t\t\t </tr>\t\t\t\t\n\t\t\t\t\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td>Unidad</td>\n\t\t\t\t\t<td>Nombre</td>\n\t\t\t\t\t<td>Departamento</td>\n\t\t\t\t\t<td>Divisi&oacute;n</td>\n\t\t\t\t\t<td>Proyecto</td>';\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$vMeses= array(\"\",\"Ene\",\"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\"); \n\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t{\n\n\t\t\t\t\t $pTema = $pTema.'<td>'.$vMeses[$m].' </td>';\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t $pTema = $pTema.' </tr>';\n\t\t\t\t$cur_tipo_usu=0; //CURSOR DEL ARRAY, DEL TIPO DE USUARIO \n\t\t\t\tforeach($unidades as $unid)\n\t\t\t\t{\n//tipo_usuario\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"I\")\t\n\t\t\t\t\t{\n\t\t\t\t\t//CONSULTA SI EL USUARIO ESTA SOBREPLANEADO EN ALMENOS, UN MES DURANTE LA VIGENCIA\n\n\t\t\t\t\t//COSNULTA PARA LOS USUARIOS INTERNOS\n\t\t\t\t\t\t\t$sql_planea_usu=\"select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, Usuarios.nombre, \n\t\t\t\t\t\t\t\t\t\t\tUsuarios.apellidos ,Divisiones.nombre as div,Departamentos.nombre as dep\n\t\t\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t\t inner join Usuarios on PlaneacionProyectos.unidad=Usuarios.unidad \n\t\t\t\t\t\t\t\t\t\t\t inner join Departamentos on Departamentos.id_departamento=Usuarios.id_departamento \n\t\t\t\t\t\t\t\t\t\t\t inner join Divisiones on Divisiones.id_division=Departamentos.id_division \n\t\t\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \"; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\t\t//PlaneacionProyectos.id_proyecto,\t\t\t\t\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\t\t\tand esInterno='I'\n\t\t\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,Usuarios.nombre, Usuarios.apellidos,Divisiones.nombre ,Departamentos.nombre \n\t\t\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"E\")\t\n\t\t\t\t\t{\n\t\t\t\t\t\t//COSNULTA PARA LOS USUARIOS EXTERNOS\n\t\t\t\t\t\t$sql_planea_usu=\" select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, TrabajadoresExternos.nombre, \n\t\t\t\t\t\t\t\t\tTrabajadoresExternos.apellidos,'' div, ''dep\n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t inner join TrabajadoresExternos on PlaneacionProyectos.unidad=TrabajadoresExternos.consecutivo \n\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\tand esInterno='E'\n\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,TrabajadoresExternos.nombre, TrabajadoresExternos.apellidos\n\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \t\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$cur_planea_usu=mssql_query($sql_planea_usu);\n//echo $sql_planea_usu.\" ---- <br>\".mssql_get_last_message().\" *** \".mssql_num_rows($cur_planea_usu).\"<br>\";\n\t\t\t\t\twhile($datos__planea_usu=mssql_fetch_array($cur_planea_usu))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ban_reg=1; //SI ENCUENTRA ALMENOS UN USUARIO SOBREPLANEADO, ENVIA EL CORREO\n\t\t\t\t\n\t\t\t\t\t\t//CONSULTA LOS PROYECTOS, EN LOS CUALES EL PARTICIAPENTE HA SIDO PLANEADO, ESTO PARA PODER DOBUJAR LA TABLA DE FORMA CORRECTA\n\t\t\t\t\t\t$sql_uu=\" select distinct(id_proyecto),nombre,codigo,cargo_defecto from (select SUM (hombresMes) as total_hombre_mes ,unidad, mes,PlaneacionProyectos.id_proyecto ,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto \n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos\n\t\t\t\t\t\t\t\t\t\tinner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sql_uu=$sql_uu.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]=0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql_uu=$sql_uu.\"0) and unidad in(\".$unid.\") and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by unidad, mes , PlaneacionProyectos.id_proyecto,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto ) aa \";\n// HAVING (SUM (hombresMes)\t>1\t\n\t\t\t\t\t\t$cur_uu=mssql_query($sql_uu);\n\t\t\t\t\t\t$cant_proy=mssql_num_rows($cur_uu);\n//echo \"<br><BR>---//**************--------------\".$sql_uu.\" \".mssql_get_last_message().\"<br>\".$cant_proy.\"<br>\";\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t<?\n\t\t\t\t//echo $sql_proy_planea.\" ---- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\n\t\t\t\t\t\t$total_planeado= array();\n\t\t\t\t\t\t$cont=0;\n\t\t\t\t\t\twhile($datos_uu=mssql_fetch_array($cur_uu))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($cont==0)\n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\t\t\t\t\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \"> '.$datos__planea_usu[\"unidad\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'.$datos__planea_usu[\"apellidos\"].' '.$datos__planea_usu[\"nombre\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"dep\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"div\"].' </td>';\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" >['.$datos_uu[\"codigo\"].'.'.$datos_uu[\"cargo_defecto\"].'] '. $datos_uu[\"nombre\"].' </td>';\n\n\t\t\t\t\t\t\t//CONSULTA LA INFORMACION DE LO PLANEADO EN CADA MES, DE ACUERDO AL PORYECTO CONSULTADO\n\t\t\t\t\t\t\t$sql_pro=\"select SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.id_proyecto,PlaneacionProyectos.unidad,mes\n\t\t\t\t\t\t\t\t\t\t from PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and PlaneacionProyectos.unidad=\".$unid.\" and id_proyecto=\".$datos_uu[\"id_proyecto\"].\" and mes in(\";\n\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" 0) and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by PlaneacionProyectos.id_proyecto ,PlaneacionProyectos.unidad ,mes order by (mes) \";\n// HAVING (SUM (hombresMes))>1\n\t\t\t\t\t\t\t$cur_proy_planea=mssql_query($sql_pro);\n//\t\t\t\techo $sql_pro.\" --22222222222-- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\t\t\t$m=$minimoMes;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($datos_proy_planea=mssql_fetch_array($cur_proy_planea))\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tfor ($m;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($datos_proy_planea[\"mes\"]==$m)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]+=( (float) $datos_proy_planea[\"total_hombre_mes\"]);\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" align=\"right\" >'.((float) $datos_proy_planea[\"total_hombre_mes\"] ).'</td>';\n\n\t\t\t\t\t\t\t\t\t\t$m=$datos_proy_planea[\"mes\"];\n\t\t\t\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t\t\t\t\tbreak;\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\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp; </td>';\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\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$m--;\n\t\t\t\t\t\t\tfor ($m++;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t$cont++;\n\t\t\t\t\t\t\tunset($datos_proy_planea);\n\n\t\t\t\t\t\t\t $pTema = $pTema.' </tr>';\n\n\t\t\t\t//\t\t\techo $datos_proy_planea[\"total_hombre_mes\"].\"<br>\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\n\t\t\t\t\t\t<td colspan=\"4\" >&nbsp;</td>\n\n\t\t\t\t\t\t<td>Total planeaci&oacute;n</td>';\n\n\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($total_planeado[$m]==0)\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>'.$total_planeado[$m].'</td>';\n\t\t\t\t\t\t}\n \n\t\t\t\t\t $pTema = $pTema.' </tr>\n\t\t\t\t\t <tr >\n\t\t\t\t\t\t<td colspan=\"17\">&nbsp;</td>\n\t\t\t\t\t </tr>\t';\n\n\t\t\t\t\t}\n\t\t\t\t\t$cur_tipo_usu++;\n\t\t\t\t}\n\t\t\t\t$pTema = $pTema.'\n\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t </tr>\n\t\t<tr class=\"Estilo2\"><td colspan=\"2\" >Para consultar en detalle la planeaci&oacute;n de un participante, en un proyecto especifico, utilice el reporte Usuarios por proyecto, accediendo a el, atravez del boton Consolidados por divisi&oacute;n, ubicado en la parte superior de la pagina principal de la planeaci&oacute;n por proyectos. </td></tr>\n\t\t</table>';\n\n\t\t/*\n\t\t\t\t//consulta la unidad del director y el coordinador de proyecto\n\t\t\t\t$sql=\"SELECT id_director,id_coordinador FROM HojaDeTiempo.dbo.proyectos where id_proyecto = \" . $cualProyecto.\" \" ;\n\t\t\t\t$eCursorMsql=mssql_query($sql);\n\t\t\t\t$usu_correo= array(); //almacena la unidad de los usuarios a los que se le enviara el correo\n\t\t\t\t$i=1;\n\t\t\t\twhile($datos_dir_cor=mssql_fetch_array($eCursorMsql))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_coordinador\"];\n\t\t\t\t\t$i++;\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_director\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\n\t\t\t\t//consulta la unidad porgramadores y ordenadores de gasto\t\t\t\n\t\t//select unidad from HojaDeTiempo.dbo.Programadores where id_proyecto=\".$cualProyecto.\" union\n\t\t\t\t$sql_pro_orde=\" select unidadOrdenador from GestiondeInformacionDigital.dbo.OrdenadorGasto where id_proyecto=\".$cualProyecto;\n\t\t\t\t$cur_pro_orde=mssql_query($sql_pro_orde);\n\t\t\t\twhile($datos_pro_orde=mssql_fetch_array($cur_pro_orde))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_pro_orde[\"unidad\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\t\t\t\n\t\t\n\t\t\t\t$i=0;\n\t\t\t\t//consulta el correo de los usuarios(director,cordinador,ordenadroes de G, y programadores) asociados al proyecto\n\t\t\t\t$sql_usu=\" select email from HojaDeTiempo.dbo.Usuarios where unidad in(\";\n\t\t\t\tforeach($usu_correo as $unid)\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$sql_usu=$sql_usu.\" \".$unid;\t\t\n\t\t\t\t\t\t$i=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" ,\".$unid;\n\t\t\t\t}\n\t\t\t\t$sql_usu=$sql_usu.\") and retirado is null\";\n\t\t\t\t$cur_usu=mssql_query($sql_usu);\t\t\t\t\n\t\t\n\t\t\t\t//se envia el correo a el director, cordinador, orenadores de gasto, y programadores del proyecto\t\n\t\t\t\twhile($eRegMsql = mssql_fetch_array($cur_usu))\n\t\t\t\t{\t\t\n\t\t\t\t $miMailUsuarioEM = $eRegMsql[email] ;\n\t\t\t\n\t\t\t\t //***EnviarMailPEAR\t\n\t\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\n\t\t\t\n\t\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\n\t\t\t\n\t\t\t\t //***FIN EnviarMailPEAR\n\t\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t\n\t\t\t\t}\n\t\t*/\n\t\t\tif($ban_reg==1) //SEW ENVIA EL CORREO SI EXISTE ALMENOS UN USUARIO SOBREPLANEADO\n\t\t\t{\n\t\t///////////////////////////**********************************************************PARA QUITAR\n\t\t\t $miMailUsuarioEM = 'carlosmaguirre'; //$eRegMsql[email] ;\t\n\t\t\t\t$pAsunto='Sobre planeaci&oacute;n de proyectos';\n\t\t\t //***EnviarMailPEAR\t\n\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\t\n\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\t\n\t\t\t //***FIN EnviarMailPEAR\n\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t}\n\t\t\n\t\t?>\n\n<?\n}", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function actividadesPorSegmento()\n {\n //\n }", "function TituloCampos()\n\t{\n\t\t\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(195,212,235);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(10,20,21,74,25,25,18);\n\t\t$header=array(strtoupper(_('nro')),strtoupper(_('nro abo.')),strtoupper(_('cedula')),strtoupper(_('nombre y apellido')),strtoupper(_('Etiqueta')),strtoupper(_('telefono')),strtoupper(_('deuda')));\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(10);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\treturn $w;\n\t}", "public function _construct(){\n\t\t$this->marque = 'Peugeot';\n\t\t$this->couleur = 'blanc';\n\t\t$this->vitesse = 50;\n\t}", "function promedio_por_alumno($vector){\n $promedios_alumnos=array();\n foreach ($vector as $key => $value) {\n $promedio=0;\n foreach ($value as $c) {\n $promedio=$promedio+$c;\n }\n $promedio=$promedio/6;\n $alumno=array($key=>$promedio);\n array_push($promedios_alumnos,$alumno);\n }\n return $promedios_alumnos;\n }", "public function getMataPelajaran();", "public function contAlumNormal($anio)\n { \n //$gradosMatTercerCiclo=[];$gradosVespertino=[];$gradosCompleto=[];\n //para contar alumnas en periodo normal\n //hay q filtrar por turnos Matutino,Vespertino y Completo\n $match=['anios_id'=>$anio,'turnos_id'=>1];\n $gradosMatutino=grado::where($match)->select('categoria','grado','seccion','capacidad','turnos_id','id')->orderBy('grado')->orderBy('seccion')->get()->toArray();\n //$countMat=count($gradosMatutino);\n $arreglo_grados_inscritos_matutino=[];\n for($i=0;$i<count($gradosMatutino);$i++){\n $gradoId=$gradosMatutino[$i]['id'];\n $busqueda=matricula::where('grados_id',$gradoId)->get();\n $cont=$busqueda->count();\n $gradoSeccion=$gradosMatutino[$i]['grado'].$gradosMatutino[$i]['seccion'];\n $aux=[\"gradoSeccion\"=>$gradoSeccion,\n \"cantidad\"=>$cont,\n \"categoria\"=>$gradosMatutino[$i]['categoria'],\n \"capacidad\"=>$gradosMatutino[$i]['capacidad'],\n \"turno\"=>\"matutino\",\n ];\n array_push($arreglo_grados_inscritos_matutino,$aux);\n }\n\n \n $match=['anios_id'=>$anio,'turnos_id'=>2];\n $gradosVespertino=grado::where($match)->select('categoria','grado','seccion','capacidad','turnos_id','id')->orderBy('grado')->orderBy('seccion')->get()->toArray();\n $arreglo_grados_inscritos_vespertino=[];\n for($i=0;$i<count($gradosVespertino);$i++){\n $gradoId=$gradosVespertino[$i]['id'];\n $busqueda=matricula::where('grados_id',$gradoId)->get();\n $cont=$busqueda->count();\n $gradoSeccion=$gradosVespertino[$i]['grado'].$gradosVespertino[$i]['seccion'];\n $aux=[\"gradoSeccion\"=>$gradoSeccion,\n \"cantidad\"=>$cont,\n \"categoria\"=>$gradosVespertino[$i]['categoria'],\n \"capacidad\"=>$gradosVespertino[$i]['capacidad'],\n \"turno\"=>\"Vespertino\", \n ];\n array_push($arreglo_grados_inscritos_vespertino,$aux);\n }\n\n //$countVesp=count($gradosVespertino);\n $match=['anios_id'=>$anio,'turnos_id'=>3];\n $gradosCompleto=grado::where($match)->select('categoria','grado','seccion','capacidad','turnos_id','id')->orderBy('grado')->orderBy('seccion')->get()->toArray();\n\n $arreglo_grados_inscritos_completo=[];\n for($i=0;$i<count($gradosCompleto);$i++){\n $gradoId=$gradosCompleto[$i]['id'];\n $busqueda=matricula::where('grados_id',$gradoId)->get();\n $cont=$busqueda->count();\n $gradoSeccion=$gradosCompleto[$i]['grado'].$gradosCompleto[$i]['seccion'];\n $aux=[\"gradoSeccion\"=>$gradoSeccion,\n \"cantidad\"=>$cont,\n \"categoria\"=>$gradosCompleto[$i]['categoria'],\n \"capacidad\"=>$gradosCompleto[$i]['capacidad'],\n \"turno\"=>\"completo\",\n ];\n array_push($arreglo_grados_inscritos_completo,$aux);\n }\n\n //$countComp=count($gradosCompleto);\n //dd($gradosCompleto);\n $arreglo_de_grados=[\"gradosMatutino\"=>$arreglo_grados_inscritos_matutino,\n \"gradosVespertino\"=>$arreglo_grados_inscritos_vespertino,\n \"gradosCompleto\"=>$arreglo_grados_inscritos_completo,\n \n ];\n //dd($arreglo_de_grados);\n //dd($arreglo_grados_inscritos_matutino);\n return $arreglo_de_grados;\n //$match=[''=>];\n //$nomMat=matricula::\n\n }", "public function elso()\n {\n }", "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "public function imprimeCaracteristicas()\n\t{\n\t\techo \"<br />--------------------------------\\n\";\n\t\techo \"<br />Juego para: \".$this->consola.\"\\n\";\n\t\t//ejecutamos la funciona \"imprimeCaracteristicas()\" de la clase\n\t\t// extendida \"soporte\"\n\t\tparent::imprimeCaracteristicas();\n\t\techo \"<br />\".$this->devolverJugadoresPosibles().\"\\n\";\n\t\techo \"<br />--------------------------------\\n\";\n\t}", "public function cortesia()\n {\n $this->costo = 0;\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 Cuerpo($acceso,$desde,$hasta,$id_f)\n\t{\n\t\t\n\t\t$tipo=utf8_decode($tipo);\n\t\t$this->SetFont('Arial','B',9);\n\t\t\n\t\t$acceso1=conexion();\n\t\t\n\t\t\n\t\t//$acceso->objeto->ejecutarSql(\"SELECT *FROM parametros where id_param='2'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$por_iva=trim($row['valor_param']);\n\t\t}\n\t\t\n\t\t$this->SetDrawColor(0,0,0);\n\t\t$this->SetLineWidth(.2);\n\t\t$this->SetFillColor(249,249,249);\n\t\t$this->SetTextColor(0);\n\t\t\n\t$w=array(20,20,25);\t\n\t$col=5;\n\t$right=10;\n\t$alto=49;\t\n\t\t$this->SetX($right);\n\t\t\t\n\t\t$this->SetX($right);\n\t\t\t$this->SetFont('Arial','BIU',8);\n\t\t\t$this->Cell($right,6,strtoupper(_('ingresos cobrados por franquicia')),\"0\",0,\"L\");\n\t\t\t\n\t\t\t\n\t\t\t$this->SetX($right)\t;\n\t\t\t\n\t\t\t\t$this->Ln(12);\n\t\t\t\t$this->SetX($right);\n\t\t\t\t$this->SetFont('Arial','B',7);\n\t\t\t\t$this->Cell($w[0],7,\"\",\"LRB\",0,\"L\");\n\t\t\t\t$der=15;\n\t\t\t\t$this->RotatedText($der, $alto, \"FECHA\", 25);\n\t\t\t\t$der=$der+$w[1];\n\t\t\t\t$dato=lectura($acceso,\"SELECT *FROM franquicia order by nombre_franq\");\n\t\t\t\tfor($j=0;$j<count($dato);$j++){\n\t\t\t\t\t$nombre_franq=trim($dato[$j][\"nombre_franq\"]);\n\t\t\t\t\t$this->RotatedText($der, $alto, $nombre_franq, 25);\n\t\t\t\t\t$der=$der+$w[1];\n\t\t\t\t\t$this->Cell($w[1],7,\"\",\"LRB\",0,\"C\");\n\t\t\t\t}\n\t\t\t\t$der=$der+5;\n\t\t\t\t$this->RotatedText($der, $alto, \"TOTAL\", 25);\n\t\t\t\t$this->Cell($w[2],7,\"\".\" \",\"LRB\",0,\"C\");\n\t\t\n\t\t\t$this->Ln(7);\n\t\t\n\t\t\t$sum_total=array();\n\t\t\t$sum_t=0;\n\twhile(comparaFecha($desde,$hasta)<=0){\n\t\t//ECHO \"SELECT sum(monto_pago) as monto FROM pagos where fecha_pago='$desde' \";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT monto_pago as monto FROM pagos where fecha_pago='$desde' and pagos.id_caja_cob<>'EA00000001' limit 1 \");\n\t\t$row=row($acceso);\n\t\t$monto=trim($row[\"monto\"])+0;\n\t\t$cant=trim($row[\"cant\"])+0;\n\t\t\n\t\t\n\t if($monto>0){\n\t\t$wi=0;\n\t\t$j=0;\n\t\t$suma=0;\n\t\t$suma_m=0;\n\t\t$this->SetX(10);\n\t\t//list($ano,$mes,$dia)=explode(\"-\",$desde);\n\t\t$fecha=$desde;\n\t\t$dia=formatofecha($desde);\n\t\t$this->SetFont('Arial','B',10);\n\t\t$this->Cell($w[$wi],$col,$dia,\"LR\",0,\"C\",$fill);\n\t\t$wi++;\n\t\t\n\t\t\t\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$sum_t=0;\n\t\t\tfor($j=0;$j<count($dato);$j++){\n\t\t\t\t$id_franq=trim($dato[$j][\"id_franq\"]);\n\t\t\t\t\n\t\t\t\t$acceso->objeto->ejecutarSql(\"SELECT sum(monto_pago) as monto_pago FROM pagos ,caja_cobrador,caja where pagos.id_caja_cob=caja_cobrador.id_caja_cob and caja_cobrador.id_caja=caja.id_caja and fecha_pago='$fecha' and status_pago='PAGADO' and id_franq='$id_franq' and pagos.id_caja_cob<>'EA00000001' \");\n\t\t\t\t$row=row($acceso);\n\t\t\t\t$monto_pago=trim($row[\"monto_pago\"])+0;\n\t\t\t\t$sum_total[$j]+=$monto_pago;\n\t\t\t\t$sum_t+=$monto_pago;\n\t\t\t\t$this->Cell($w[$wi],$col,number_format($monto_pago+0, 2, ',', '.'),\"LR\",0,\"R\",$fill);\n\t\t\t\t\n\t\t\t}\n\t\t\t\t$sum_total[$j]+=$sum_t;\n\t\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t\t$this->Cell($w[2],$col,number_format($sum_t+0, 2, ',', '.'),\"LR\",0,\"R\",$fill);\n\t\t\t\t$fill=!$fill;\n\t\t\t\n\t\t$this->Ln();\n\t\t\t\n\t\t}//if monto\t\n\t\t$desde=sumadia($desde);\n\t\t\t\n\t}\n\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t$this->SetX($right)\t;\n\t\t\t$this->Cell($w[0],7,\"TOTAL\",\"1\",0,\"R\",$fill);\n\t\t\t$sum_to=0;\n\t\t\tfor($j=0;$j<count($dato);$j++){\n\t\t\t\t$id_franq=trim($dato[$j][\"id_franq\"]);\n\t\t\t\t$this->SetFont('Arial','B',9);\n\t\t\t\t//$sum_to+=$sum_total[$j];\n\t\t\t\t$this->Cell($w[1],7,number_format($sum_total[$j]+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->SetFont('Arial','B',10);\n\t\t\t$this->Cell($w[2],7,number_format($sum_total[$j]+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\n\t}", "function hieu($p_tuso, $p_mauso)\n {\n $ps = new PHAN_SO();\n $ps->khoitao_ps($p_tuso, $p_mauso);\n $ps->tuso = ($this->tuso*$ps->mauso) - ($ps->tuso*$this->mauso);\n $ps->mauso = $this->mauso*$ps->mauso;\n // $ps->toigian_ps();\n return $ps;\n }", "public function engordar($quilos){\n $this->peso = $this->peso + $quilos;\n}", "function grammar($input){\n\t$graph = array();\n\t$graph = conect();// grafo do esquema\n\t\n\t$classInput = array();\n\tarray_push($classInput, array('valor' => array(), 'tipo' => array()));//estrutura de classificação\n\tarray_shift($input);\n\tforeach ($input as $key => $value) {\n\t\t\t//verifica o campo vazio\n\t\t\tif (empty($input[$key])) {\n\t\t\t\tarray_push($classInput[0][\"valor\"], \"NULLO\");\n\t\t\t\tarray_push($classInput[0][\"tipo\"], \"NULLO\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif(preg_match(\"/(\\d{2})\\/(\\d{2})\\/(\\d{4})$/\", $input[$key], $matches)){\n\t \t\tif (checkdate($matches[2], $matches[1], $matches[3])) { // testa se a data é válida\n\t\t\t\t\tarray_push($classInput[0][\"valor\"], $input[$key]);\n\t\t\t\t\tarray_push($classInput[0][\"tipo\"], \"DATE\");\n\t\t\t\t}\n\t\t\t}elseif(is_numeric($input[$key])){\n\t \t\tarray_push($classInput[0][\"valor\"], $input[$key]);\n\t\t\t\tarray_push($classInput[0][\"tipo\"], \"INT\");\n\t\t\t}else{\n\t \t\tarray_push($classInput[0][\"valor\"], $input[$key]);\n\t\t\t\tarray_push($classInput[0][\"tipo\"], \"ALF\");\n\t\t\t}\n\t}\n\t\n\t$rowColum = searchRowColum($input);//retorna a quantidade de linhas e colunas da tabela de entrada \n\t\n\tbuscaOcorrencias($graph,$rowColum, $classInput);\n\n}", "function envios_datos()\n\t{\n\n\t\tparent::objeto();\n\n\t\t$this->tabla=\"envios\";\n\t\t$this->campoClave=\"IdEnvio\";\n\t\t$this->id=null;\n\t\t\n\t\t\n$v=new Variable(2,$this->tabla,\"IdEnvio\",1);\n\t\t\t\n$v->clave=true;\n\t\t\t\n\t\t\t\n$v->autonumerica=true;\n\t\t\t\n$this->agregarVariable2($v);\n$v=new Variable(2,$this->tabla,\"IdMail\",2);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Envio\",3);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Descripcion\",4);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"TablaDatosExtras\",5);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"CondicionDatosExtras\",6);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"FechaCreacion\",7);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"FechaModificacion\",8);\n$this->agregarVariable2($v);\n\n\t}", "public function mostra(){\n }", "function analisaCaminho($lab, $qtdL, $qtdC, $pLI, $pCI, $pLF, $pCF, $pLA, $pCA){ \n if ($pLA == $pLF && $pCA == $pCF){\n exibelab($lab, $qtdL, $qtdC);\n }else{\n $lab[$pLA][$pCA] = 5;\n\n //define vizinhança\n for($c = -1; $c <= +1; $c++){\n for($l = -1; $l <= +1; $l++){\n $liA = $pLA+ $c; // linha atual\n $coA = $pCA+ $l; // coluna atual\n \n //verifica se está dentro dos limites\n if ( ($liA > 0 && $liA <=$qtdL-1) && ($coA > 0 && $coA <= $qtdC-1) ){ \n // verifica se EXISTE, e se é caminho ou saida\n if (isset($lab[$liA][$coA]) && ( $lab[$liA][$coA] == 0 || $lab[$liA][$coA] == 3 )){ \n // exclui diagonais\n if ($c * $l == 0){\n //exclui limites\n if ($lab[$liA][$coA] != 4){ \n analisaCaminho($lab, $qtdL, $qtdC, $pLI, $pCI, $pLF, $pCF, $liA,$coA);\n }\n }\n }\n } // fim limites\n \n }\n }\n // e se eu resetar o caminho aqui? \n }\n }", "function SemanasEnElMes(){\n \n $fecha_hoy = date('Y-m-01');\n $fecha_fin = date('Y-m-t');\n $dia_fin = date('t');\n $j=1;\n $diaf = '';\n //dia finales\n for($i=1;$i <= $dia_fin;$i++){ \n if(($i%7) == 0){\n $diaf .= $i.',';\n $j++; \n } \n }\n \n $diaf = substr($diaf, 0, -1);\n $sep_fd = explode(\",\", $diaf);\n $count_d = count($sep_fd); \n $ini_semana = array();\n $inicios = array();\n //dias iniciales\n for($i=0;$i< $count_d;$i++){ \n \n \n $fecha_actual = date(\"Y-m-$sep_fd[$i]\"); \n $ini_semana = date(\"Y-m-d\",strtotime($fecha_actual.\"- 6 days\")); \n array_push($inicios,$ini_semana); \n }\n \n //semanas del mes\n $semanas_mes = array();\n $semana_dia_final = array();\n for($i=0;$i< $count_d;$i++){\n if(($count_d-1) == $i){\n $semanas_mes[$i] = array('fi'=>$inicios[$i],'ff'=>date(\"Y-m-t\")); \n } else{ \n $semanas_mes[$i] = array('fi'=>$inicios[$i],'ff'=>date(\"Y-m-$sep_fd[$i]\")); \n }\n }\n \n //var_dump($semanas_mes);\n return $semanas_mes;\n\n \n}", "public function run()\n {\n #primer año\n $this->agregar(7713,[5793,5912],[],[],[5793,5912]); # ipoo\n $this->agregar(7791,[5793,5912],[],[],[5793,5912]); # lenguajes formales\n\n #segundo \n $this->agregar(7655,[5551,7713],[5793],[],[5551,7713,5793]); # ED\n $this->agregar(7949,[7713,7791],[5912],[],[7713,7791,5912]); # tdp\n $this->agregar(5552,[],[5551],[],[5551]); # am2\n $this->agregar(5744,[7791,7655],[7713],[],[7791,7655,7713]); # orga\n $this->agregar(7951,[7655],[7713],[],[7655,7713]); # tdp\n\n #tercero\n $this->agregar(5534,[7951],[7655],[],[7951,7655]); # ayds\n $this->agregar(5561,[5744],[7791],[],[5744,7791]); # arqui\n $this->agregar(5704,[7951],[7949],[],[7951,7951]); # logica\n $this->agregar(7552,[5704,5534],[],[],[5704,5534]); # bases de datos\n $this->agregar(7810,[5552],[7791,7655],[],[5552,7791,7655]); # mcc\n $this->agregar(7820,[7791],[5551,5793],[],[7791,5551,5793]); # estadsitica\n $this->agregar(7925,[5561],[5744],[],[5561,5744]); # soyd\n\n #cuarto\n $this->agregar(5587,[7552],[5534],[],[7552,5534]); # dyds\n $this->agregar(5696,[7925,7552],[5704],[],[7925,7552,5704]); # lenguajes de prog\n $this->agregar(7903,[7925],[],[],[7925]); #redes\n $this->agregar(7502,[5587],[],[],[5587]); # aps\n $this->agregar(5576,[5696],[],[],[5696]); # compiladores\n $this->agregar(5684,[7552],[5704],[],[7552,5704]); # IA\n\n #quinto\n $this->agregar(5523,[5704,7810],[7951],[],[5704,7810,7951]); # algoritmos\n $this->agregar(7680,[5587,7903],[7552],[],[5587,7903,7552]); # iaw\n\n }", "function precio($precioUnidad, $cantidad, $descuento = 0 ){ // las variables que tenemos son arbitrarias, por lo cual hay que mirar bien si ponerlas en () de la funcion\n\n\n\n$multiplicar = $precioUnidad * $cantidad;\n\n// $descuento es un porcentaje\n\n// $restar = $multiplicar - $descuento; // este descuento debe ir en % por lo cual no es lo mismo que un entero, por lo cual lo colocaremos en entero\n\n\n// si esto fuera un porcentaje entonces seria $multiplicar = $precioUnidad * $cantidad; // $porcentaje = $multiplicar - $descuento; // $solucion = $multiplicar - $porcentaje; lo cual es lo que haremos\n\n$porcentaje = $multiplicar * $descuento;\n\n$solucion = $multiplicar - $porcentaje;\nreturn $solucion;\n// si colocamos todos los datos en solo sitio o una sola linea, sin especificar es e novatos, porque hay que haber un orden\n\n}", "function DesplegarGraficaMarca($ancho,$alto,$valores)\n {\n \n echo \"<div style='background-color:#F8E6E0; \n border-style:solid; \n border-width:1px; \n border-color:#E0F8E0; \n position: relative; \n width:$ancho; \n height:$alto;\n top:50%;\n left:13%;'>\\n\";\n echo $Zapatos;\n $maximovalor=0.0; //\n $nbarras=0; //\n foreach($valores as $nom => $val) // <-- En este ciclo \n { // buscamos el\n if($val>$maximovalor) $maximovalor=$val; // numero de barras \n $nbarras++; // y el máximo valor.\n } // \n \n $alturatexto = 20;\n $anchobarra=$ancho / $nbarras;\n $escala=($alto-$alturatexto)/$maximovalor; \n $i=0;\n// Ciclo que imprime cada una de las barras \n foreach($valores as $nom => $val)\n {\n $leftB= intval($i*$anchobarra);\n $widthB=$anchobarra-25; \n $topB=($alto-$alturatexto) - ($val * $escala);\n $heightB=($alto-$alturatexto)-$topB; \n // Aquí se pintan las barras\n echo \"<div style=' \n background: -webkit-linear-gradient(orange, pink);\n background: -moz-linear-gradient(orange, pink);\n background: -o-linear-gradient(orange, pink);;\n border-style:solid; \n border-width:1px;\n border-color:black;\n position:absolute;\n width:$widthB;\n height:$heightB;\n left:$leftB;\n top:$topB'>\\n\"; \n // Colocamos el valor dentro de la barra \n echo \"<center><b><label style='color:#A45FA1'>$val </label></b></center>\"; \n echo \"</div>\";\n $topT=($alto-$alturatexto);\n // Definimos un area transparente que contendrá la leyenda de abajo\n echo \"<div style='position:absolute;\n width:$widthB;\n height:$alturatexto;\n left:$leftB;\n top:$topT'>\\n\"; \n echo \"<center> <label style='color:blue'>$nom</label> </center>\";\n echo \"</div>\"; \n $i++;\n } \n echo \"</div>\"; \n }", "function salva($vls){\n//sleep(2)tempo de espera de enivio da requisição;\n$mensagens = [];\n$contem_erros = false;\nif ($vls['descri'] == '') {\n\t$contem_erros = true;\n\t$mensagens['descri'] = 'A descrição está em branco';\n}\n\nif ($vls['marca'] == '') {\n\t$contem_erros = true;\n\t$mensagens['marca'] = 'A marca está em branco';\n}\nif ($vls['modelo'] == '') {\n $erros = true;\n $mensagens['modelo'] = \"O modelo esta em branco\";\n}\nif ($vls['tipov'] == '') {\n\t$contem_erros = true;\n\t$mensagens['tipov'] = 'O tipo de veículo está em branco';\n}\n\nif ($vls['quantp'] == '') {\n\t$contem_erros = true;\n\t$mensagens['quantp'] = 'A quantidade de passageiros está em branco';\n}\nif ($vls['vlvenda'] == '') {\n $erros = true;\n $mensagens['vlvenda'] = \"O valor de venda está em branco\";\n}\nif ($vls['vlcompra'] == '') {\n\t$contem_erros = true;\n\t$mensagens['vlcompra'] = 'O valor de compra está em branco';\n}\n\nif ($vls['dtcompra'] == '') {\n\t$contem_erros = true;\n\t$mensagens['dtcompra'] = 'A data de compra está em branco';\n}\nif ($vls['estato'] == '') {\n $erros = true;\n $mensagens['estato'] = \"O status do veículo esta em branco\";\n}\n if (! $contem_erros) {//se não conter erros executara o inserir\n $id = null;\n $campos = \"`id_car`, `descricao`, `marca`, `modelo`, `tipov`, `qntpass`, `vlvenda`, `vlcompra`, `datcompra`, `estato`\";\n $sql = \"INSERT INTO `carro` ($campos) VALUES (:id, :descri, :marca, :modelo, :tipov, :quantp, :vlvenda, :vlcompra, :dtcompra, :estato)\";\n $rs = $this->db->prepare($sql);\n$rs->bindParam(':id', $id , PDO::PARAM_INT);\n$rs->bindParam(':descri', $vls['descri'] , PDO::PARAM_STR);\n$rs->bindParam(':marca', $vls['marca'] , PDO::PARAM_STR);\n$rs->bindParam(':modelo', $vls['modelo'] , PDO::PARAM_STR);\n$rs->bindParam(':tipov', $vls['tipov'] , PDO::PARAM_STR);\n$rs->bindParam(':quantp', $vls['quantp'] , PDO::PARAM_STR);\n$rs->bindParam(':vlvenda', $vls['vlvenda'] , PDO::PARAM_STR);\n$rs->bindParam(':vlcompra', $vls['vlcompra'] , PDO::PARAM_STR);\n$rs->bindParam(':dtcompra', $vls['dtcompra'] , PDO::PARAM_STR);\n$rs->bindParam(':estato', $vls['estato'] , PDO::PARAM_STR);\n\n$result = $rs->execute();\n\n\nif ($result) {\n //passando vetor em forma de json\n $mensagens['sv'] = \"salvo com sucesso!\";\n \t echo json_encode([\n \t 'mensagens' => $mensagens,\n \t 'contem_erros' => false\n \t ]);//chama a funçaõ inserir na pagina acao.php\n\n }\n }else {\n\t// temos erros a corrigir\n\techo json_encode([\n\t\t'contem_erros' => true,\n\t\t'mensagens' => $mensagens\n\t]);\n}\n}", "function __construct () { // Metodo Constructor: __construct nueva forma de hacer un constructor.\n\n // Caracteristicas iniciales de la clase. Definiendo el valor de las variables definidas fuera del constructor.\n $this -> ruedas = 4; // this: es como decir \"coche\". Estamos diciendo que la clase partira con 4 ruedas inicialmente.\n $this -> color = \"\";\n $this -> motor = 1600;\n }", "function desplegarCampo(Detallesmantenimientosdetablas $detalle,$numeroGrid,$sinValorPorDefecto=false){\n $size=$detalle->getTamanoCampo();\n $max=$detalle->getTamanoMaximoCampo();\n $javascript=$detalle->getJavascriptDesdeCampo();\n $valorPorDefecto=trim(obtenerValorPorDefecto($detalle));\n if($sinValorPorDefecto!=false){\n $valorPorDefecto=$ValorPorDefecto;\n }\n $id=$detalle->getIdCampo();\n $tipo=$detalle->getIdTipoCampo();\n $requerido=$detalle->getNulidadCampo();\n $accion=strtoupper($detalle->getAccionCampo());\n\n $ayuda=$detalle->getDescripcionCampo();\n\n if ($tipo == 14) { //Si es tipo Separador de Campos\n Campos::columnaGrid($numeroGrid);\n echo \"<center><strong>\" . $detalle->getNombreCampo() . \"</strong></center>\";\n Campos::finColumnaGrid();\n return;\n } else {\n Campos::columnaGrid($numeroGrid);\n echo $detalle->getNombreCampo();\n C::finColumnaGrid();\n }\n\n Campos::columnaGrid($numeroGrid);\n\n/*\n 1\tFecha\n 2\tFecha Hora\n 3\tHora\n 4\tArchivo\n 5\tNumerico\n 6\tMoneda\n 7\tCaracteres\n 8\tTexto\n 9\tTabla Extranjera\n 10\tBoton de Cheque\n 11\tBotones de Opcion Múltiple PENDIENTE\n 12\tFALSO\n 13\tLista Desplegable\n 14\tAgrupador de Campos\n 15\tSeparador De Campos Oculto PENDIENTE\n 16\tFinalizacion del Separador PENDIENTE\n 17\tTabla PENDIENTE\n 18\tBoton PENDIENTE\n 19\tRuta de archivo PENDIENTE\n 20 Editor HTML PopUp\n */\n\n\n //Aqui empieza la captura...\n if($tipo==1){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n if(trim($valorPorDefecto)==\"\"){\n $valorPorDefecto=null;\n }\n C::texto($id,$valorPorDefecto,10,10,\" READONLY \");\n }else if($tipo==2){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n C::texto($id,$valorPorDefecto,15,15,\" READONLY \");\n }else if($tipo==3){\n C::texto($id,$valorPorDefecto,10,10,\" READONLY \");\n }else if($tipo==5){\n C::entero($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==6){\n C::flotante($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==7){\n C::texto($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==8){\n $filas=$detalle->getAltoCampo();\n C::textArea($id,$valorPorDefecto,$filas,$size,$javascript.\" READONLY \");\n }else if($tipo==9){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id.\"selectDisabled\", $rsT, $valorPorDefecto,\" DISABLED \");\n C::oculto($id,$valorPorDefecto);\n }else if($tipo==10){\n $chequeado=false;\n if($valorPorDefecto==1){\n $chequeado=true;\n }\n C::chequeSiNo($id,'',$chequeado,1,\" DISABLED \");\n } else if($tipo==12){\n C::texto($id, $valorPorDefecto, $size, $max, $javascript.\" READONLY\");\n }else if($tipo==13){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id.\"selectDisabled\", $rsT, $valorPorDefecto,\" DISABLED \");\n C::oculto($id,$valorPorDefecto);\n }else if($tipo==20){\n C::editorHTMLPopUp($id, $valorPorDefecto, $detalle->getNombreCampo());\n }else if($tipo==26){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==27){\n $chequeado=false;\n if($valorPorDefecto=='A'){\n $chequeado=true;\n }\n C::chequeActivo($id,'',$chequeado);\n }else if($tipo==28){\n C::textoConMascara($id,$detalle->getQueryFiltro());\n }else if($tipo==29){\n C::selectCatalogoId($id,$detalle->getCatalogoId(), $valorPorDefecto);\n }\n\n C::finColumnaGrid();\n}", "public function moverse(){\n\t\techo \"Soy $this->nombre y me estoy moviendo a \" . $this->getVelocidad();\n\t}", "function DIAS_SUELDO_BASICO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t$estado = ESTADO($_ARGS);\r\n\t$fegreso = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif ($estado == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['DESDE']) return DIAS_FECHA($_ARGS['DESDE'], $_ARGS['HASTA']);\r\n\t\telse return DIAS_FECHA($_ARGS['FECHA_INGRESO'], $_ARGS['HASTA']);\r\n\t} else {\r\n\t\tif ($fegreso < $_ARGS['DESDE']) return 0;\r\n\t\telse return DIAS_FECHA($_ARGS['DESDE'], $fegreso);\r\n\t}\r\n}", "static function definisiMeni(){\n\t\t $stavke[0]=array('naziv'=>'home','link'=>'/pilot/home');\n\t\t $stavke[1]=array('naziv'=>'o nama','link'=>'/pilot/onama');\n\t\t if(session_id()!='pilot1sesija1'){\n\t\t\tsession_id('pilot1sesija1');\n\t\t\tsession_start();\n\t\t }\n\t\t if(isset($_SESSION['pravo'])){\n\t\t\t if($_SESSION['pravo']==1 || $_SESSION['pravo']==2){ \n\t\t\t\t$stavke[2]=array('naziv'=>'clanci','link'=>'/pilot/clanci'); \n\t\t\t\t$stavke[3]=array('naziv'=>'korisnici','link'=>'/pilot/korisnici'); \n\t\t\t }\n\t\t \n\t\t }\n\t\t return $stavke;\n\t}", "function Preparar($cli_nome, $cli_sobrenome, $cli_data_nasc, $cli_rg, $cli_cpf, $cli_ddd, $cli_fone, $cli_celular, $cli_endereco, $cli_numero, $cli_bairro, $cli_cidade, $cli_uf, $cli_cep, $cli_email, $cli_data_cad, $cli_hora_cad, $cli_senha) {\n\n $this->setCli_nome($cli_nome);\n $this->setCli_sobrenome($cli_sobrenome);\n $this->setCli_data_nasc($cli_data_nasc);\n $this->setCli_rg($cli_rg);\n $this->setCli_cpf($cli_cpf);\n $this->setCli_ddd($cli_ddd);\n $this->setCli_fone($cli_fone);\n $this->setCli_celular($cli_celular);\n $this->setCli_celular($cli_celular);\n $this->setCli_endereco($cli_endereco);\n $this->setCli_numero($cli_numero);\n $this->setCli_bairro($cli_bairro);\n $this->setCli_cidade($cli_cidade);\n $this->setCli_uf($cli_uf);\n $this->setCli_cep($cli_cep);\n $this->setCli_email($cli_email);\n $this->setCli_data_cad($cli_data_cad);\n $this->setCli_hora_cad($cli_hora_cad);\n $this->setCli_senha($cli_senha);\n }", "function rotacionSeisMeses()\n {\n $rotacion_smeses = new \\stdClass();\n $rotacion_smeses->labels = [];\n $rotacion_smeses->data = [];\n\n // Prepare query\n $sql = \"\n SELECT (COUNT(f.id) / m.maquina_casillas) as result, DATE_FORMAT(f.factura_fecha_emision, '%m') AS month, DATE_FORMAT(f.factura_fecha_emision, '%M') AS month_letters\n FROM facturas as f, maquinas as m WHERE f.factura_fecha_emision <= DATE(NOW()) AND f.factura_fecha_emision > DATE_SUB(DATE(NOW()), INTERVAL 6 MONTH) $this->sql_condition\n GROUP BY month\";\n\n // Execute sql\n $query = DB::select($sql);\n\n // Config chart roacion ultimos 6 meses\n $rotacion_smeses->labels = array_pluck($query, 'month_letters');\n $rotacion_smeses->data = array_pluck($query, 'result');\n\n return $rotacion_smeses;\n }", "private function processarParametros() {\n\n /**\n * Busca os usuarios definidos para notificar quando acordo ira vencer, ordenando pelo dia\n */\n $oDaoMensageriaUsuario = db_utils::getDao('mensagerialicenca_db_usuarios');\n $sSqlUsuarios = $oDaoMensageriaUsuario->sql_query_usuariosNotificar('am16_sequencial', 'am16_dias');\n $rsUsuarios = db_query($sSqlUsuarios);\n $iTotalUsuarios = pg_num_rows($rsUsuarios);\n\n if ($iTotalUsuarios == 0) {\n throw new Exception(\"Nenhum usuário para notificar.\");\n }\n\n /**\n * Percorre os usuarios e define propriedades necessarias para buscar acordos\n */\n for ($iIndiceUsuario = 0; $iIndiceUsuario < $iTotalUsuarios; $iIndiceUsuario++) {\n\n /**\n * Codigo do usuario para notificar: mensageriaacordodb_usuario.ac52_sequencial\n */\n $iCodigoMensageriaLicencaUsuario = db_utils::fieldsMemory($rsUsuarios, $iIndiceUsuario)->am16_sequencial;\n\n /**\n * Codigo dos usuarios que serao notificados\n * - usado para verificar os usuarios que ja foram notificados\n * - mensageriaacordodb_usuario.ac52_sequencial\n */\n $this->aCodigoMensageriaLicencaUsuario[] = $iCodigoMensageriaLicencaUsuario;\n\n /**\n * Usuario para notificar\n * - mensageriaacordodb_usuario\n */\n $oMensageriaLicencaUsuario = MensageriaLicencaUsuarioRepository::getPorCodigo($iCodigoMensageriaLicencaUsuario);\n\n /**\n * Codigo do usuario do sistema\n * - db_usuarios.id_usuario\n */\n $iCodigoUsuario = $oMensageriaLicencaUsuario->getUsuario()->getCodigo();\n\n /**\n * Data de vencimento:\n * - Soma data atual com dias definidos na rotina de parametros de mensageria\n */\n $iDias = $oMensageriaLicencaUsuario->getDias();\n $this->aDataVencimento[] = date('Y-m-d', strtotime('+ ' . $iDias . ' days'));\n }\n\n return true;\n }", "public function semakPosmen($posmen, $jadual) \n\t{\n\t\tforeach ($nilaiRM as $keyRM) # $nilaiRM rujuk line 154\n\t\t{# kod php untuk formula matematik\n\t\t\t$data = null;\n\t\t\tif(isset($posmen[$jadual][$keyRM])):\n\t\t\t\teval( '$data = (' . $posmen[$jadual][$keyRM] . ');' );\n\t\t\t\t$posmen[$jadual][$keyRM] = $data;\n\t\t\tendif;\n\t\t}/*$nilaiTEKS = array('no','batu','jalan','tmn_kg');\n\t\tforeach ($nilaiTEKS as $keyTEKS)\n\t\t{# kod php untuk besarkan semua huruf aka uppercase\n\t\t\tif(isset($posmen[$jadual][$keyTEKS])):\n\t\t\t\t$posmen[$jadual][$keyTEKS] = strtoupper($posmen[$jadual][$keyTEKS]);\n\t\t\tendif;\n\t\t}//*/ # valid guna if\n\t\tif (isset($posmen[$jadual]['email']))\n\t\t\t$posmen[$jadual]['email']=strtolower($posmen[$jadual]['email']);\n\t\t//if (isset($posmen[$jadual]['dp_baru']))\n\t\t//\t$posmen[$jadual]['dp_baru']=ucwords(strtolower($posmen[$jadual]['dp_baru']));\n\t\tif (isset($posmen[$jadual]['responden']))\n\t\t\t$posmen[$jadual]['responden']=mb_convert_case($posmen[$jadual]['responden'], MB_CASE_TITLE);\n\t\tif (isset($posmen[$jadual]['password']))\n\t\t{\n\t\t\t//$pilih = null;\n\t\t\t$pilih = 'md5'; # Hash::rahsia('md5', $posmen[$jadual]['password'])\n\t\t\t//$pilih = 'sha256'; # Hash::create('sha256', $posmen[$jadual]['password'], HASH_PASSWORD_KEY)\n\t\t\tif (empty($posmen[$jadual]['password']))\n\t\t\t\tunset($posmen[$jadual]['password']);\n\t\t\telseif ($pilih == 'md5')\n\t\t\t\t$posmen[$jadual]['password'] = \n\t\t\t\t\\Aplikasi\\Kitab\\Hash::rahsia('md5', $posmen[$jadual]['password']);\n\t\t\telseif ($pilih == 'sha256')\n\t\t\t\t$posmen[$jadual]['password'] = \n\t\t\t\t\\Aplikasi\\Kitab\\Hash::create('sha256', $posmen[$jadual]['password'], HASH_PASSWORD_KEY);\n\t\t}//*/\n\n\t\treturn $posmen; # pulangkan nilai\n\t}", "function calcularVariables($espaciosVistos,$reglamentoEstudiante,$matriculas,$semestre_ingreso,$notaAprobatoria){\r\n \r\n $num_pruebas_academicas = $this->contarPruebasAcademicas($reglamentoEstudiante);\r\n $cantidad_matriculas = count($matriculas);\r\n $num_semestres_transcurridos = $this->contarSemestresTranscurridos($semestre_ingreso);\r\n $semestre_espacio_mas_atrasado = $this->calcularSemestreEspacioMasAtrasado();\r\n $edad_ingreso = $this->calcularEdadIngreso($semestre_ingreso);\r\n $num_semestres_despues_grado = $this->contarSemestresDespuesDeGrado($semestre_ingreso);\r\n \r\n if($this->datosEstudiante['IND_CRED']=='N'){\r\n $num_aprobados = count($this->espaciosAprobados);\r\n $num_reprobados = count($this->espaciosReprobados);\r\n $num_cursados = count($espaciosVistos);\r\n $num_adelantados = $this->contarEspaciosAdelantados($cantidad_matriculas,$notaAprobatoria,$this->espaciosCursados);\r\n $num_nivelado = $this->contarEspaciosNivelados($cantidad_matriculas);\r\n }elseif($this->datosEstudiante['IND_CRED']=='S'){\r\n $num_aprobados = $this->contarCreditos($this->espaciosAprobados);\r\n $num_reprobados = $this->contarCreditos($this->espaciosReprobados);\r\n $num_cursados = $this->contarCreditos($espaciosVistos);\r\n $num_adelantados = $this->contarEspaciosAdelantados($cantidad_matriculas,$notaAprobatoria,$this->espaciosCursados);\r\n $num_nivelado = $this->contarEspaciosNivelados($cantidad_matriculas);//creditos nivelados\r\n }\r\n \r\n $variables = array(\r\n 'cantidad_aprobados' => $num_aprobados, \r\n 'cantidad_reprobados' => $num_reprobados, \r\n 'cantidad_espacios_vistos' => $num_cursados,\r\n 'cantidad_pruebas_academicas' => $num_pruebas_academicas,\r\n 'promedio_acumulado' => (isset($this->datosEstudiante['PROMEDIO'])?$this->datosEstudiante['PROMEDIO']:''),\r\n 'cantidad_matriculas' => $cantidad_matriculas,\r\n 'cantidad_semestres'=>$num_semestres_transcurridos,\r\n 'cantidad_espacios_adelantados' => $num_adelantados,\r\n 'cantidad_espacios_nivelado' => $num_nivelado,\r\n 'semestre_espacio_mas_atrasado' => $semestre_espacio_mas_atrasado,\r\n 'edad_ingreso'=> $edad_ingreso,\r\n 'cantidad_semestres_despues_grado' => $num_semestres_despues_grado\r\n );\r\n\r\n return $variables;\r\n \r\n }", "function saludo(){\n echo \"<hr>\";\n echo \"Buenas tardes aprendices, bienvenidos a las clases de PHP\";\n echo \"<hr>\";\n }", "public function verPCSalaEnPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"PC_SUELO\");\n\n }", "public function getElementos();", "function calcularSemestreEspacioMasAtrasado() {\r\n if (is_array($this->espaciosPlan))\r\n {\r\n if(is_array($this->espaciosAprobados)){\r\n foreach ($this->espaciosPlan as $key => $espaciosPlan) {\r\n foreach ($this->espaciosAprobados as $key2 => $espaciosAprobados) {\r\n if ($espaciosPlan==$espaciosAprobados)\r\n unset ($this->espaciosPlan[$key]);\r\n }\r\n }\r\n }\r\n }else{\r\n $this->mensaje[$this->datosEstudiante['CODIGO']][]=\"No existen espacios registrados en el plan de estudios del estudiante\";\r\n\r\n }\r\n return $this->espaciosPlan[0]['SEMESTRE'];\r\n }", "public function InsertarMesaParametros()\n\t{\n\t\t\t$objetoAccesoDato = AccesoDatos::dameUnObjetoAcceso();\n $consulta =$objetoAccesoDato->RetornarConsulta(\"INSERT into mesa (codigo,estado,usos)values(:codigo,:estado,:usos)\");\n $consulta->bindValue(':codigo', $this->codigo, PDO::PARAM_STR);\n $consulta->bindValue(':estado', $this->estado, PDO::PARAM_STR);\n $consulta->bindValue(':usos', $this->usos, PDO::PARAM_INT);\n $consulta->execute();\t\n return $objetoAccesoDato->RetornarUltimoIdInsertado();\n }", "public function ConsultarSoporteMatricula($param) {\n extract($param);\n $resultado = array();\n $registro = array();\n $sql = \"CALL SPCONSULTARCARGAMASIVASM($tipodocumento,$busqueda);\";\n $rs=null;\n $conexion->getPDO()->query(\"SET NAMES 'utf8'\");\n $host= $_SERVER[\"HTTP_HOST\"];\n if ($rs = $conexion->getPDO()->query($sql)) {\n if ($filas = $rs->fetchAll(PDO::FETCH_ASSOC)) {\n foreach ($filas as $fila) {\n foreach ($fila as $key => $value) {\n $rutaFuente= \"<a href='/\".$fila['RutaFuente'].\"'>Descargar Archivo Fuente</a>\";\n $rutaEscaneado= \"<a href='/\".$fila['RutaSoporte'].\"'>Descargar Archivo Soporte</a>\";\n array_push($registro, $fila['TipoIdentificacion'],$fila['NumeroIdentificacion'],$fila['Nombres'],$fila['Fecha'],$fila['Salon'],$rutaFuente, $rutaEscaneado ,$value);\n \n array_push($registro, $value);\n }\n array_push($resultado, $registro);\n $registro = array();\n }\n }\n } else {\n $registro = 0;\n }\n echo json_encode($resultado);\n }", "function tcapturando($curso){\n\t\t\tif(Session::get_data('tipousuario')!=\"PROFESOR\"){\n\t\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t\t//ELIMINAR CONTENIDO DE LAS VARIABLES QUE PERTENECERÁN A LA CLASE\n\t\t\tunset($this -> excel);\n\t\t\tunset($this -> alumnado);\n\t\t\tunset($this -> registro);\n\t\t\tunset($this -> nombre);\n\t\t\tunset($this -> curso);\n\t\t\tunset($this -> materia);\n\t\t\tunset($this -> clave);\n\t\t\tunset($this -> situacion);\n\t\t\tunset($this -> especialidad);\n\t\t\tunset($this -> profesor);\n\t\t\tunset($this -> periodo);\n\t\t\tunset($this -> nomina);\n\t\t\tunset($this -> parcial);\n\t\t\tunset($this -> idcapturaesp);\n\n\t\t\t$maestros = new Maestros();\n\t\t\t$id = Session::get_data('registro');\n\t\t\t$this -> nomina = $id;\n\t\t\t$profesor = $maestros -> find_first(\"nomina=\".$this -> nomina.\"\");\n\t\t\t$this -> profesor = $profesor -> nombre;\n\n\t\t\t$periodo = $this -> actual;\n\n\t\t\t$xcursos = new Xtcursos();\n\t\t\t$pertenece = $xcursos -> count(\"clavecurso='\".$curso.\"' AND nomina=\".$id.\" AND periodo='\".$periodo.\"'\");\n\n\t\t\tif($pertenece<1){\n\t\t\t\t$log = new Xtlogcalificacion();\n\t\t\t\t$log -> clavecurso = $curso;\n\t\t\t\t$log -> nomina = Session::get_data('registro');\n\t\t\t\t$log -> accion = \"INTENTANDO MODIFICAR UNA CALIFICACION QUE NO LE CORRESPONDE\";\n\t\t\t\t$log -> ip = $this -> getIP();;\n\t\t\t\t$log -> fecha = time();\n\t\t\t\t$log -> save();\n\n\t\t\t\t$this->redirect('profesor/captura');\n\t\t\t}\n\n\n\t\t\t$Xccursos = new Xtcursos();\n\t\t\t$maestros = new Maestros();\n\t\t\t$materias = new Materia();\n\t\t\t$xtalumnocursos = new Xtalumnocursos();\n\t\t\t$alumnos = new Alumnos();\n\t\t\t$especialidades = new Especialidades();\n\n\n\t\t\t$xccursos = $Xccursos -> find_first(\"clavecurso='\".$curso.\"'\");\n\t\t\tif( $this -> post(\"tparcial\") == \"\" ){\n\t\t\t\t$this->redirect('profesor/captura');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tswitch($this -> post(\"tparcial\")){\n\t\t\t\t\tcase 1: $this -> horas = $xccursos -> horas1; break;\n\t\t\t\t\tcase 2: $this -> horas = $xccursos -> horas2; break;\n\t\t\t\t\tcase 3: $this -> horas = $xccursos -> horas3; break;\n\t\t\t}\n\n\t\t\t$this -> horas1 = $xccursos -> horas1;\n\t\t\t$this -> horas2 = $xccursos -> horas2;\n\t\t\t$this -> horas3 = $xccursos -> horas3;\n\n\t\t\tif($this -> horas==0){\n\t\t\t\t\t$this -> horas = \"\";\n\t\t\t}\n\n\t\t\tif($this -> horas1==0){\n\t\t\t\t\t$this -> horas1 = \"-\";\n\t\t\t}\n\n\t\t\tif($this -> horas2==0){\n\t\t\t\t\t$this -> horas2 = \"-\";\n\t\t\t}\n\n\t\t\tif($this -> horas3==0){\n\t\t\t\t\t$this -> horas3 = \"-\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch($this -> post(\"tparcial\")){\n\t\t\t\t\tcase 1: $this -> avance = $xccursos -> avance1; break;\n\t\t\t\t\tcase 2: $this -> avance = $xccursos -> avance2; break;\n\t\t\t\t\tcase 3: $this -> avance = $xccursos -> avance3; break;\n\t\t\t}\n\n\t\t\t$this -> avance1 = $xccursos -> avance1;\n\t\t\t$this -> avance2 = $xccursos -> avance2;\n\t\t\t$this -> avance3 = $xccursos -> avance3;\n\n\t\t\tif($this -> avance==0){\n\t\t\t\t\t$this -> avance = \"\";\n\t\t\t}\n\n\t\t\tif($this -> avance1==0){\n\t\t\t\t\t$this -> avance1 = \"-\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$this -> avance1 .= \"%\";\n\t\t\t}\n\n\t\t\tif($this -> avance2==0){\n\t\t\t\t\t$this -> avance2 = \"-\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$this -> avance2 .= \"%\";\n\t\t\t}\n\n\t\t\tif($this -> avance3==0){\n\t\t\t\t\t$this -> avance3 = \"-\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$this -> avance3 .= \"%\";\n\t\t\t}\n\t\t\t$total = 0;\n\n\t\t\t$xpermcapturaesp\t= new Xpermisoscapturaesp();\n\t\t\t$xpermcapturaespdet\t= new XpermisoscapturaespDetalle();\n\t\t\t\n\t\t\t$day = date (\"d\");\n\t\t\t$month = date (\"m\");\n\t\t\t$year = date (\"Y\");\n\t\t\t$hour = date (\"H\");\n\t\t\t$minute = date (\"i\");\n\t\t\t$second = date (\"s\");\n\t\t\t\n\t\t\t$fecha = mktime( $hour, $minute, $second, $month, $day, $year );\n\t\t\t\n\t\t\t$aux = 0;\n\t\t\t$aux5 = 0;\n\t\t\tforeach( $xpermcapturaesp -> find_all_by_sql\n\t\t\t\t\t( \"select * from xpermisoscapturaesp\n\t\t\t\t\t\twhere clavecurso = '\".$curso.\"'\n\t\t\t\t\t\tand parcial = \".$this -> post(\"tparcial\").\"\n\t\t\t\t\t\tand fin > \".$fecha.\"\n\t\t\t\t\t\tand captura = 0\n\t\t\t\t\t\torder by id desc\n\t\t\t\t\t\tlimit 1\" ) as $xpcapesp ){\n\t\t\t\t$aux5 = 1;\n\t\t\t\t// Para checar los permisosdecapturasespeciales\n\t\t\t\tif( $xpermcapturaespdet -> find_first\n\t\t\t\t\t\t( \"xpermisoscapturaesp_id = \".$xpcapesp -> id ) ){\n\t\t\t\t\t$aux ++;\n\t\t\t\t}\n\t\t\t\t$this -> idcapturaesp = $xpcapesp -> id;\n\t\t\t\tif( $aux == 1 ){\n\t\t\t\t\tforeach( $xpermcapturaespdet -> find\n\t\t\t\t\t\t\t( \"xpermisoscapturaesp_id = \".$xpcapesp -> id ) as $xpdetalle ){\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach($xtalumnocursos -> find\n\t\t\t\t\t\t\t\t(\"curso_id='\".$xccursos->id.\"' \n\t\t\t\t\t\t\t\tand registro = \".$xpdetalle -> registro.\"\n\t\t\t\t\t\t\t\tORDER BY registro\") as $alumno){\n\t\t\t\t\t\t\t$this -> registro = $alumno -> registro;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"id\"] = $alumno -> id;\n\t\t\t\t\t\t\t$this -> curso = $curso;\n\t\t\t\t\t\t\t$this -> materia = $this -> post(\"tmateria\");\n\t\t\t\t\t\t\t$this -> clave = $this -> post(\"tclave\");\n\n\t\t\t\t\t\t\t$parcial = $this -> post(\"tparcial\");\n\t\t\t\t\t\t\t$this -> parcialito = $parcial;\n\n\t\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\t\tcase 1: $this -> parcial = \"PRIMER PARCIAL\"; break;\n\t\t\t\t\t\t\t\tcase 2: $this -> parcial = \"SEGUNDO PARCIAL\"; break;\n\t\t\t\t\t\t\t\tcase 3: $this -> parcial = \"TERCER PARCIAL\"; break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tforeach($alumnos -> find(\"miReg=\".$alumno->registro) as $a){\n\t\t\t\t\t\t\t\t$this -> nombre = $a -> vcNomAlu;\n\t\t\t\t\t\t\t\t$this -> nombre = iconv(\"latin1\", \"ISO-8859-1\", $this -> nombre);\n\t\t\t\t\t\t\t\t$situacion = $a -> enTipo;\n\t\t\t\t\t\t\t\t$especialidad = $a -> idtiEsp;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch($situacion){\n\t\t\t\t\t\t\t\tcase 'R': $this -> situacion = \"REGULAR\"; break;\n\t\t\t\t\t\t\t\tcase 'I': $this -> situacion = \"IRREGULAR\"; break;\n\t\t\t\t\t\t\t\tcase 'P': $this -> situacion = \"PROCESO DE REGULARIZACION\"; break;\n\t\t\t\t\t\t\t\tcase 'C': $this -> situacion = \"CONDICIONADO\"; break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tforeach($especialidades -> find(\"idtiEsp=\".$especialidad) as $e){\n\t\t\t\t\t\t\t\t$this -> especialidad = $e -> siNumEsp;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"registro\"] = $this -> registro;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"nombre\"] = $this -> nombre;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"especialidad\"] = $this -> especialidad;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"situacion\"] = $this -> situacion;\n\n\t\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas1;break;\n\t\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas2;break;\n\t\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas3;break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"] = $alumno -> faltas1;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"] = $alumno -> faltas2;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"] = $alumno -> faltas3;\n\n\t\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion1;break;\n\t\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion2;break;\n\t\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion3;break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"] = $alumno -> calificacion1;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"] = $alumno -> calificacion2;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"] = $alumno -> calificacion3;\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas\"]=\"\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"-\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"]=\"-\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"-\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"]=\"-\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"-\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"]=\"-\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$total++;\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\tforeach($xtalumnocursos -> find(\"curso_id='\".$xccursos->id.\"' ORDER BY registro\") as $alumno){\n\t\t\t\t\t\t$this -> registro = $alumno -> registro;\n\t\t\t\t\t\t$this -> alumnado[$total][\"id\"] = $alumno -> id;\n\t\t\t\t\t\t$this -> curso = $curso;\n\t\t\t\t\t\t$this -> materia = $this -> post(\"tmateria\");\n\t\t\t\t\t\t$this -> clave = $this -> post(\"tclave\");\n\n\t\t\t\t\t\t$parcial = $this -> post(\"tparcial\");\n\t\t\t\t\t\t$this -> parcialito = $parcial;\n\n\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> parcial = \"PRIMER PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 2: $this -> parcial = \"SEGUNDO PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 3: $this -> parcial = \"TERCER PARCIAL\"; break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tforeach($alumnos -> find(\"miReg=\".$alumno->registro) as $a){\n\t\t\t\t\t\t\t$this -> nombre = $a -> vcNomAlu;\n\t\t\t\t\t\t\t$this -> nombre = iconv(\"latin1\", \"ISO-8859-1\", $this -> nombre);\n\t\t\t\t\t\t\t$situacion = $a -> enTipo;\n\t\t\t\t\t\t\t$especialidad = $a -> idtiEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch($situacion){\n\t\t\t\t\t\t\tcase 'R': $this -> situacion = \"REGULAR\"; break;\n\t\t\t\t\t\t\tcase 'I': $this -> situacion = \"IRREGULAR\"; break;\n\t\t\t\t\t\t\tcase 'P': $this -> situacion = \"PROCESO DE REGULARIZACION\"; break;\n\t\t\t\t\t\t\tcase 'C': $this -> situacion = \"CONDICIONADO\"; break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tforeach($especialidades -> find(\"idtiEsp=\".$especialidad) as $e){\n\t\t\t\t\t\t\t$this -> especialidad = $e -> siNumEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this -> alumnado[$total][\"registro\"] = $this -> registro;\n\t\t\t\t\t\t$this -> alumnado[$total][\"nombre\"] = $this -> nombre;\n\t\t\t\t\t\t$this -> alumnado[$total][\"especialidad\"] = $this -> especialidad;\n\t\t\t\t\t\t$this -> alumnado[$total][\"situacion\"] = $this -> situacion;\n\n\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas3;break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"] = $alumno -> faltas1;\n\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"] = $alumno -> faltas2;\n\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"] = $alumno -> faltas3;\n\n\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion3;break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"] = $alumno -> calificacion1;\n\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"] = $alumno -> calificacion2;\n\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"] = $alumno -> calificacion3;\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas\"]=\"\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"-\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"]=\"-\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"-\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"]=\"-\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"-\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"]=\"-\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"PD\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"PD\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"PD\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"PD\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$total++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( $aux5 == 0 ){\n foreach($xtalumnocursos -> find(\"curso_id='\".$xccursos->id.\"' ORDER BY registro\") as $alumno){\n\t\t\t\t\t$this -> registro = $alumno -> registro;\n\t\t\t\t\t$this -> alumnado[$total][\"id\"] = $alumno -> id;\n\t\t\t\t\t$this -> curso = $curso;\n\t\t\t\t\t$this -> materia = $this -> post(\"tmateria\");\n\t\t\t\t\t$this -> clave = $this -> post(\"tclave\");\n\n\t\t\t\t\t$parcial = $this -> post(\"tparcial\");\n\t\t\t\t\t$this -> parcialito = $parcial;\n\n\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> parcial = \"PRIMER PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 2: $this -> parcial = \"SEGUNDO PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 3: $this -> parcial = \"TERCER PARCIAL\"; break;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($alumnos -> find(\"miReg=\".$alumno->registro) as $a){\n\t\t\t\t\t\t\t$this -> nombre = $a -> vcNomAlu;\n\t\t\t\t\t\t\t$this -> nombre = iconv(\"latin1\", \"ISO-8859-1\", $this -> nombre);\n\t\t\t\t\t\t\t$situacion = $a -> enTipo;\n\t\t\t\t\t\t\t$especialidad = $a -> idtiEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch($situacion){\n\t\t\t\t\t\t\tcase 'R': $this -> situacion = \"REGULAR\"; break;\n\t\t\t\t\t\t\tcase 'I': $this -> situacion = \"IRREGULAR\"; break;\n\t\t\t\t\t\t\tcase 'P': $this -> situacion = \"PROCESO DE REGULARIZACION\"; break;\n\t\t\t\t\t\t\tcase 'C': $this -> situacion = \"CONDICIONADO\"; break;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($especialidades -> find(\"idtiEsp=\".$especialidad) as $e){\n\t\t\t\t\t\t\t$this -> especialidad = $e -> siNumEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this -> alumnado[$total][\"registro\"] = $this -> registro;\n\t\t\t\t\t$this -> alumnado[$total][\"nombre\"] = $this -> nombre;\n\t\t\t\t\t$this -> alumnado[$total][\"especialidad\"] = $this -> especialidad;\n\t\t\t\t\t$this -> alumnado[$total][\"situacion\"] = $this -> situacion;\n\n\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas3;break;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"] = $alumno -> faltas1;\n\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"] = $alumno -> faltas2;\n\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"] = $alumno -> faltas3;\n\n\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion3;break;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"] = $alumno -> calificacion1;\n\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"] = $alumno -> calificacion2;\n\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"] = $alumno -> calificacion3;\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas\"]=\"\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"-\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"]=\"-\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"-\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"]=\"-\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"-\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"]=\"-\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"PD\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"PD\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"PD\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"PD\";\n\t\t\t\t\t}\n\t\t\t\t\t$total++;\n }\n\t\t\t}\n }", "function pegaParametros($classe)\n {\n if (! $this->layer) {\n return \"erro\";\n }\n $tipoLayer = $this->layer->type;\n $classe = $this->layer->getclass($classe);\n $numestilos = $classe->numstyles;\n for ($i = 0; $i < $numestilos; ++ $i) {\n $linha = array();\n $estilo = $classe->getstyle($i);\n $linha[] = $i;\n $linha[] = corRGB($estilo->outlinecolor);\n $linha[] = corRGB($estilo->backgroundcolor);\n $linha[] = corRGB($estilo->color);\n $linha[] = $estilo->symbolname;\n if ($estilo->getbinding(MS_STYLE_BINDING_SIZE)) {\n $linha[] = $estilo->getbinding(MS_STYLE_BINDING_SIZE);\n } else {\n $linha[] = $estilo->size;\n }\n $linha[] = $estilo->opacity;\n if ($this->v >= 6) {\n $linha[] = $estilo->width;\n $s = $estilo->symbol;\n $linha[] = implode(\" \", $s->getPatternArray);\n $linha[] = $estilo->angle;\n } else {\n $linha[] = \"\";\n $linha[] = \"\";\n }\n $linha[] = $this->layer->symbolscaledenom;\n $linha[] = $estilo->minsize;\n $linha[] = $estilo->maxsize;\n $linha[] = $estilo->offsetx;\n $linha[] = $estilo->offsety;\n $linhas[] = $tipoLayer . \"#\" . implode(\"#\", $linha);\n }\n // retorna tipo do layer,id do estilo,outlinecolor,backgroundcolor,color,symbolname,size,symbolscaledenom\n return implode(\"|\", $linhas);\n }", "function ToonFormulierAfspraak()\n{\n\n}", "protected function Campos()\n {\n $select = [\n ['value' => 'id1', 'text' => 'texto1'],\n ['value' => 'id2', 'text' => 'texto2']\n ];\n $this->text('unInput')->Validator(\"required|maxlength:20\");\n $this->text('unSelect')->Validator(\"required\")->type('select')->in_options($select);\n $this->date('unDate')->Validator(\"required\");\n }", "function recorrerMatrizPlaneServicios() {\n\t\t\t\n\t\t\t\tglobal $res,$matriz;\n\t\t\t\t\tfor($pos=0;$pos < mysql_num_rows($res); $pos++) {\n\n\t\t\t\t\t$nombreplan= $matriz[\"nombreplan\"][$pos] ;\t\n\t\t\t\t\t$nombreplan = eliminarCaracteresEspeciales($nombreplan)\t;\n\t\t\t\t\t$autoid = $matriz[\"autoid\"][$pos];\n\t\t\t\t\t$autoid = str_replace(\"A\",\"\",$autoid);\n\t\t\t\t\t$autoid = str_replace(\"a\",\"\", $autoid);\n\t\t\t\t\t$compania = $_SESSION[\"compania\"];\n\t\t\t\t\t$ambito = \"\";\n\t\t\t\t\t$clase = \"CUPS\";\n\t\t\t\t\n\t\t\t\t\tinsertarPlaneServicios($nombreplan, $autoid, $compania, $ambito, $clase);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t}", "function mes($mes){\n $meses = array(\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n $nombre = $meses[$mes-1];\n return $nombre;\n }", "function crear_tabla_horario()\n {\n //El funcionamiento es el mismo que en crear_tabla, excepto que aqui no le pasamos el profesor\n $meses = array(\"31\", \"28\", \"31\", \"30\", \"31\", \"30\", \"31\", \"31\", \"30\", \"31\", \"30\", \"31\");\n $cambio_mes = 0;\n\n $num1 = filter_input(INPUT_POST, 'num1');\n\n $profe=$this->model->get_profe($_SESSION['iduser']);\n $zona = filter_input(INPUT_POST, 'zona');\n $mes = filter_input(INPUT_POST, 'mes');\n $año = filter_input(INPUT_POST, 'año');\n\n $mes = str_pad($mes, 2, \"0\", STR_PAD_LEFT);\n $h_profe=$this->model->get_h_profe($profe[0]['id_profesores'], $zona);\n $numeros[5]=\"\";\n $numeros[0]=$num1;\n for($i=0;$i<5;$i++)\n {\n\n $numeros[$i+1] = $numeros[$i]+1;\n\n if( $numeros[$i+1] > $meses[$mes-1])\n {\n $numeros[$i+1] = $numeros[$i+1] - $meses[$mes-1];\n $cambio_mes = 1;\n }\n\n }\n $total = \"\";\n for($i=8;$i<21;$i++)\n {\n if($i!=14 && $i!=15)\n {\n\n $total.=\"<tr><td>\".$i.\":00-\".($i+1).\":00</td>\";\n for($k=0;$k<5;$k++)\n {\n $total .= \"<td class='$numeros[$k]-$i dia_$k'>\";\n $ano=str_pad($numeros[$k],2,\"0\",STR_PAD_LEFT);\n //Si el horario del profe esta vacio printamos boton en todos los td\n if(!empty($h_profe))\n {\n $cont = 0;\n foreach ($h_profe as $hora)\n {\n $mes_1 = $mes;\n if($cambio_mes == 1 && $mes_1 < 12 && $numeros[$k]<5)\n {\n $mes_1 = $mes_1+1;\n }\n else if( $cambio_mes == 1 && $mes_1 == 12 && $numeros[$k]<5)\n {\n $mes_1 = 1;\n $año = $año+1;\n }\n $mes_1 = str_pad($mes_1, 2, \"0\", STR_PAD_LEFT);\n $fecha = $año.\"-\".$mes_1.\"-\".$ano;\n\n //Comprobamos si la hora y la fecha coincide y sumamos 1 al contador\n if($hora['hora']==$i && $hora['fecha'] == $fecha)\n {\n $cont++;\n }\n }\n //Si el cantador sigue en 0 printamos boton ya que significa que no ha sido marcada\n if($cont ==0)\n {\n $total.= \"<button class='horario hvr-grow-shadow'>Marcar</button>\";\n }\n }\n else\n {\n $total.= \"<button class='horario hvr-grow-shadow'>Marcar</button>\";\n }\n $total .=\"<span style='display:none'>\".$numeros[$k].\" \".$i.\":00</span></td>\";\n }\n $total.=\"</tr>\";\n }\n }\n echo $total;\n }", "function muestraFormularioMetas(){\n $name = $titulo = $urlfolio = \"\";\n $folio = $random = 0;\n if($this->data['folio'] != \"\"){\n $tmp=explode('-',$this->data['folio']);\n if($this->opc == 9){\n $name=\"guardaAvance\";\n $arrayProyecto = $this->regresaDatosProyecto($tmp[0]);\n $folio = $tmp[0];\n $urlfolio=$this->data['folio'];\n $titulo=CAPTURAREPORTEDEMETAS;\n $random=rand(1,10000000);\n }\n else{\n $name=\"actualizaAvance\";\n $arrayProyecto = $this->regresaDatosProyecto($tmp[1]);\n $folio = $tmp[1];\n $urlfolio=$tmp[1].\"-\".$tmp[2];\n $random=$tmp[0];\n }\n $this->arrayNotificaciones = $this->notificaciones ();\n $titulo = $arrayProyecto['proyecto'];\n $resultados = $this->consultaActividades($this->pages->limit);\n $arrayDisabled = $this->recuperaPermisos($arrayProyecto['unidadResponsable_id'],$arrayProyecto['programa_id']); \n $trimestreId = $this->obtenTrimestre($arrayDisabled);\n $arrayUnidadOperativas=$this->catalogoUnidadesOperativas($this->db);\n\t\t\t$campoTrimestre=\"estatus_avance_entrega\";\n\t\t\tif($campoTrimestre > 1){\n\t\t\t\t$campoTrimestre=\"estatus_avance_entrega\".$campoTrimestre;\n\t\t\t}\n\t\t\t\n $this->buffer=\"\n <input type='hidden' name='noAtributos' id='noAtributos' value='\".( count($resultados) + 0).\"'>\n <input type='hidden' name='valueId' id='valueId' value='\".($this->arrayAvanceMetas['id'] + 0).\"'>\n <input type='hidden' name='folio' id='folio' value='\".$folio.\"'>\n <input type='hidden' name='random' id='random' value='\".$random.\"'>\n <input type='hidden' name='trimestreId' id='trimestreId' value='\".$trimestreId.\"'>\n <div class='panel panel-danger spancing'>\n <div class='panel-heading titulosBlanco'>\".$titulo.\"</div>\n <div class='panel-body'>\n <table align='center' border='0' class='table table-condensed'>\n <tr class='active alturaComponentesA'>\n <td class='tdleft' colspan='2' width='25%'>\".PROYECTO.\"</td>\n <td class='tdleft' colspan='2'>\".$arrayProyecto['proyecto'].\"</td>\n </tr>\n <tr class='alturaComponentesA'>\n <td class='tdleft' colspan='2' >\".UNIDADOPERATIVA.\"</td>\n <td class='tdleft' colspan='2'>\".$arrayUnidadOperativas[$arrayProyecto['unidadOperativaId']].\"</td>\n </tr>\n <tr class='alturaComponentesA'>\n <td class='tdleft' colspan='2' >\".TRIMESTRE.\"</td>\n <td class='tdleft' colspan='2'>\".$trimestreId.\"</td>\n </tr>\n \n </table>\n <table width='100%' class='table'>\n <tr>\n <td class='tdcenter fondotable' rowspan='2' width='30%'>\".ACTIVIDAD.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE1C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE2C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE3C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE4C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TOTAL.\"</td>\n <td class='tdcenter fondotable' rowspan='2' width='14%'>\".MEDIDA.\"</td>\n <td class='tdcenter fondotable' rowspan='2' width=' 8%'>\".ucfirst(substr(PONDERACION,0,4)).\"</td>\n <td class='tdcenter fondotable' rowspan='2' width=' 8%'>\".ucfirst(substr(TIPOACT,8,3)).\"</td>\n </tr>\n <tr>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n </tr>\";\n $contadorTab1=1;\n $contadorTab2=2;\n $contadorTab3=3;\n $contadorTab4=4; \n $contadorRen = $total = $totales = $rtotal = $rtotales = 0;\n $disabled_t1 = $disabled_t2 = $disabled_t3 = $disabled_t4 = \"\";\n $fondo_t1 = 'background-color:#ffff99;';\n $fondo_t2 = 'background-color:#ffff99;';\n $fondo_t3 = 'background-color:#ffff99;';\n $fondo_t4 = 'background-color:#ffff99;';\n if($arrayDisabled[1]['dis'] + 0 == 0){\n $disabled_t1=\" readonly ='true' \";\n $fondo_t1 = '';\n }\n if($arrayDisabled[2]['dis'] + 0 == 0){\n $disabled_t2=\" readonly ='true' \";\n $fondo_t2 = '';\n }\n if($arrayDisabled[3]['dis'] + 0 == 0){\n $disabled_t3=\" readonly ='true' \";\n $fondo_t3 = '';\n }\n if($arrayDisabled[4]['dis'] + 0 == 0){\n $disabled_t4=\" readonly ='true' \";\n $fondo_t4 = '';\n }\n $arrayEditable=array(1,3,4,6,7,8,9);\n \n foreach($resultados as $id => $resul){\n $rand = rand(1,99999999999999);\n $class=\"\";\n if($contador % 2 == 0)\n $class=\"active\";\n $campo=\"estatus_avance_entrega_t\".$trimestreId; \n $idEstatusActividad =$resul[$campo] ;\n $varTemporalId = $resul['id'].\"-\".$arrayProyecto['id'].\"-\".$trimestreId;\n $varTemporalIdE = $resul ['id'] . \"-\" . $arrayProyecto['id'].\"-\".$trimestreId.\"-\".$idEstatusActividad; \n $idact= $resul['id'];\n $totales = $totales + $this->arrayDatos[$idact][5] + 0;\n $tmp=\"\";\n \n if($resul['tipo_actividad_id'] != 0){\n $this->buffer.=\"\n <tr class=' $class alturaComponentesA'>\n <td class='tdleft' rowspan='2'>\".$resul['actividad'].\"</td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][1] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' tabindex='\".$contadorTab1.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab1.\"-1-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][1] + 0).\"' style='width:35px;$fondo_t1' \".$disabled_t1.\">\n </td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][2] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' \".$this->disabled.\" tabindex='\".$contadorTab2.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab2.\"-2-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][2] + 0).\"' style='width:35px;$fondo_t2' \".$disabled_t2.\"> \n </td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][3] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' \".$this->disabled.\" tabindex='\".$contadorTab3.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab3.\"-3-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][3] + 0).\"' style='width:35px;$fondo_t3' \".$disabled_t3.\">\n </td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][4] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' \".$this->disabled.\" tabindex='\".$contadorTab4.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab4.\"-4-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][4] + 0).\"' style='width:35px;$fondo_t4' \".$disabled_t4.\">\n </td>\n <td class='tdcenter' rowspan='2'>\n <span id='total\".$contadorRen.\"' class='totales'>\".number_format(($this->arrayDatos[$idact][1] + $this->arrayDatos[$idact][2] + $this->arrayDatos[$idact][3] + $this->arrayDatos[$idact][4] + 0),0,',','.').\"</span>\n </td>\n <td class='tdcenter' rowspan='2'>\n <span id='rtotal\".$contadorRen.\"' class='totales'>\".number_format($this->arrayAvanceMetas[$idact][1] + $this->arrayAvanceMetas[$idact][2] + $this->arrayAvanceMetas[$idact][3] +$this->arrayAvanceMetas[$idact][4],0,',','.').\"</span>\n </td>\n <td class='tdcenter'>\".$resul['medida'].\"</td>\n <td class='tdcenter'>\".$resul['ponderacion'].\"</td>\n <td class='tdcenter'>\".$resul['tipo_actividad_id'].\"</td>\n </tr>\n <tr>\n <td colspan='8' class='tdleft $class'>\".$this->regresaUltimoComentario($arrayProyecto['id'],$resul['id']).\"<br>\".$this->regresaNoAdjuntos($arrayProyecto['id'],$resul['id']).\"<span id='avance'></span></td>\";\n $rtotales = $rtotales + $this->arrayAvanceMetas[$idact][5]; \n if($this->session['rol'] == 1 || $this->session['rol'] >=3){\n $this->buffer.=\"<td class='tdcenter $class' colspan='3'>\"; \n if($this->session['rol'] == 1 || $this->session['rol'] >=4){\n $classb=\"mComentariosConsulta\";\n if(in_array($arrayProyecto[$campoTrimestre],$arrayEditable)){\n $classb=\"mComentarios\";\n }\n $this->buffer.=\"<button type='button' class='btn btn-success btn-sm $classb' id='\".$resul['proyecto_id'].\"-\".$resul['id'].\"-\".$trimestreId.\"'><span class='glyphicon glyphicon-pencil'></span>&nbsp;&nbsp;Comentarios</button>\";\n }\n if($this->session['rol'] >=3){\n $this->buffer.=\"<button type='button' class='btn btn-warning btn-sm masFile' id='m-\".$resul['proyecto_id'].\"-\".$resul['id'].\"-\".$trimestreId.\"'>&nbsp;&nbsp;M&aacute;s</button>\";\n }\n $this->buffer.=\"</td>\";\n }\n if($this->session['rol'] == 2){\n $this->buffer.=\"\n <td class='tdcenter $class'><button type='button' class='btn btn-success btn-sm mComentariosConsulta' id='\".$resul['proyecto_id'].\"-\".$resul['id'].\"-\".$trimestreId.\"'><span class='glyphicon glyphicon-pencil'></span>&nbsp;&nbsp;Comentarios</button></td>\n <td class='tdcenter $class'>\n <button type='button' class='btn btn-default aprobadosavances' data-toggle='tooltip' data-placement='bottom'\n title='\".PROYECTOAPROBADO.\"' id='aaa-\".$varTemporalIdE.\"'><span class='glyphicon glyphicon-ok'></span>\n </button>\n </td>\n <td class='tdcenter $class'>\n <button type='button' class='btn btn-default noaprobadosavances' data-toggle='tooltip' data-placement='bottom'\n title='\".PROYECTONOAPROBADO.\"' id='ann-\".$varTemporalIdE.\"'><span class='glyphicon glyphicon-remove'></span>\n </button></td>\";\n }\n \n \n $this->buffer.=\"</tr><tr><td colspan='11'>&nbsp;</td>\";\n if( ($idEstatusActividad!= 3) && ($idEstatusActividad!= 6) && ($idEstatusActividad!= 9)){\n $this->buffer .= \"<td class='tdleft' colspan='3' id='v-\".$varTemporalIdE.\"' style='background-color:\" . $this->arrayNotificaciones [$idEstatusActividad] ['color'] . \";color:#000000;'>\" . $this->arrayNotificaciones [$idEstatusActividad] ['nom'] . \"</td>\";\n }\n else{\n $this->buffer .= \"<td class='tdleft verComentariosNoAprobados' colspan='3' id='v-\".$varTemporalIdE.\"' style='cursor:pointer;background-color:\" . $this->arrayNotificaciones [$idEstatusActividad] ['color'] . \";color:#000000;' data-toggle='tooltip' data-placement='bottom' title='\" . TOOLTIPMUESTRACOMENTARIOS . \"'>\" . $this->arrayNotificaciones [$idEstatusActividad] ['nom'] . \"</td>\";\n }\n $this->buffer .= \"</tr>\";\n $contadorTab1 = $contadorTab1 + 4;\n $contadorTab2 = $contadorTab2 + 4;\n $contadorTab3 = $contadorTab3 + 4;\n $contadorTab4 = $contadorTab4 + 4;\n $contadorRen++;\n $contador++;\n }\n }\n $contadorTab4++;\n \n /*$this->buffer.=\"<tr><td colspan='8'></td>\n <td class='tdleft'>Total:</td><td class='tdcenter'><span id='totales' class='totales'>\".($totales + 0).\"</span></td>\n <td class='tdcenter'><span id='rtotales' class='totales'>\".($rtotales + 0).\"</span></td>\n <td colspan='3'>&nbsp;</td></tr></table>*/\n $this->buffer.=\"</table>\n </div>\n <div class=\\\"central\\\"><br>\"; \n if( (in_array($arrayProyecto[$campoTrimestre],$arrayEditable)) or ($this->session['rol']<=2 or $this->session['rol']<=5) ){\n \n $this->buffer.=\"<button type='button' tabindex='\".$contadorTab4.\"' class='btn btn-success btn-sm' id='\".$name.\"' name='\".$name.\"'><span class='glyphicon glyphicon-floppy-saved'></span>&nbsp;\".AGREGAREPORTEMETA.\"</button>&nbsp;&nbsp;\";\n }\n $this->buffer.=\"<button type='button' class='btn btn-primary btn-sm'\n onclick=\\\"location='\".$this->path.\"aplicacion.php?aplicacion=\".$this->session ['aplicacion'].\"&apli_com=\".$this->session ['apli_com'].\"&opc=0'\\\">\".REGRESA.\"</button>\n </div>\".$this->procesando(4).\"<br></div>\";\n }else{\n header(\"Location: \".$this->path.\"aplicacion.php?aplicacion=\".$this->session ['aplicacion'].\"&apli_com=\".$this->session ['apli_com'].\"&opc=1\");\n } \n }", "public function recalculer_les_ca_styl()\n {\n \n // On reccuperere tous les mandataires \n\n $mandataires = User::where('role','mandataire')->get();\n $deb_annee = date(\"Y\").\"-01-01\";\n\n // pour chaque mandataire on calcul le ca styl et on le met à jour dans la table des mandataires \n foreach ($mandataires as $mandataire ) {\n // CA encaissé non partagé\n\n $compro_encaisse_partage_pas_n = Compromis::where([['user_id',$mandataire->id],['est_partage_agent',false],['demande_facture',2],['archive',false]])->get();\n $ca_encaisse_partage_pas_n = 0;\n if($compro_encaisse_partage_pas_n != null){ \n foreach ($compro_encaisse_partage_pas_n as $compros_encaisse) {\n if($compros_encaisse->getFactureStylimmo()->a_voir = false && $compros_encaisse->getFactureStylimmo()->encaissee == 1 && $compros_encaisse->getFactureStylimmo()->date_encaissement->format(\"Y-m-d\") >= $deb_annee){\n $ca_encaisse_partage_pas_n += $compros_encaisse->getFactureStylimmo()->montant_ttc;\n // echo $mandataire->id == 12 ? \"<br/>\".$compros_encaisse->numero_mandat.\" np\".$compros_encaisse->getFactureStylimmo()->montant_ttc : null ;\n }\n }\n \n }\n \n // CA encaissé partagé et porte affaire\n $compro_encaisse_porte_n = Compromis::where([['user_id',$mandataire->id],['est_partage_agent',true],['demande_facture',2],['archive',false]])->get();\n $ca_encaisse_porte_n = 0;\n\n if($compro_encaisse_porte_n != null){\n foreach ($compro_encaisse_porte_n as $compros_encaisse) {\n if($compros_encaisse->getFactureStylimmo()->a_voir = false && $compros_encaisse->getFactureStylimmo()->encaissee == 1 && $compros_encaisse->getFactureStylimmo()->date_encaissement->format(\"Y-m-d\") >= $deb_annee){\n $ca_encaisse_porte_n += $compros_encaisse->frais_agence * $compros_encaisse->pourcentage_agent/100;\n // echo $mandataire->id == 12 ? '<br/> pp '.$compros_encaisse->numero_mandat.'--'.$compros_encaisse->getFactureStylimmo()->montant_ttc * $compros_encaisse->pourcentage_agent/100: null ;\n }\n }\n }\n\n\n // CA encaissé partagé et ne porte pas affaire\n \n $compro_encaisse_porte_pas_n = Compromis::where([['agent_id',$mandataire->id],['est_partage_agent',true],['demande_facture',2],['archive',false]])->get();\n $ca_encaisse_porte_pas_n = 0;\n\n if($compro_encaisse_porte_pas_n != null){\n foreach ($compro_encaisse_porte_pas_n as $compros_encaisse) {\n if($compros_encaisse->getFactureStylimmo()->a_voir = false && $compros_encaisse->getFactureStylimmo()->encaissee == 1 && $compros_encaisse->getFactureStylimmo()->date_encaissement->format(\"Y-m-d\") >= $deb_annee){\n $ca_encaisse_porte_pas_n += $compros_encaisse->frais_agence * (100-$compros_encaisse->pourcentage_agent)/100;\n // echo $mandataire->id == 12 ? '<br/>ppp '.$compros_encaisse->numero_mandat.'--'.$compros_encaisse->getFactureStylimmo()->montant_ttc* (100-$compros_encaisse->pourcentage_agent)/100 : null ;\n }\n }\n }\n\n \n \n $ca_encaisse_N = round(($ca_encaisse_partage_pas_n+$ca_encaisse_porte_n+$ca_encaisse_porte_pas_n)/Tva::coefficient_tva(),2);\n\n $mandataire->chiffre_affaire_sty = $ca_encaisse_N ;\n $mandataire->update();\n \n // $mandataire->id == 12 ? dd($ca_encaisse_N) : null;\n \n }\n\n return \"OK\";\n }", "public function __construct() {\n\n\t\t$this->contenuto=array();\n\t\t$this->quantita=array();\n }", "function alumnos_mayores_al_promedio_general($promedio,$vector){\n echo \"<hr> ############# Promedios mayores al promedio general #############\";\n $cont=0;\n foreach ($vector as $key => $value) {\n foreach ($value as $c => $n) {\n if($n>$promedio){\n $cont=$cont+1;\n echo \"<br>\".$c.\" -->Promedio: \".$n;\n }\n }\n }\n echo \"<br> Total: \".$cont;\n\n }", "function cl_cemiteriorural() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"cemiteriorural\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function contrato()\r\n\t{\r\n\t}", "function crear_tabla()\n {\n //Array para saber cuantos dias tienen los meses\n $meses = array(\"31\", \"28\", \"31\", \"30\", \"31\", \"30\", \"31\", \"31\", \"30\", \"31\", \"30\", \"31\");\n $cambio_mes = 0;\n //Recogemos los datos\n $num1 = filter_input(INPUT_POST, 'num1');\n $profe = filter_input(INPUT_POST, 'profe');\n $zona = filter_input(INPUT_POST, 'zona');\n $mes = filter_input(INPUT_POST, 'mes');\n $año = filter_input(INPUT_POST, 'año');\n\n //Recogemos los horarios del profesor y la zona seleccionados\n $h_profe=$this->model->get_h_profe($profe, $zona);\n $numeros[5]=\"\";\n $numeros[0]=$num1;\n //Sacamos los cinco numeros de la semana\n for($i=0;$i<5;$i++)\n {\n $numeros[$i+1] = $numeros[$i]+1;\n //si el numero es superior al dia maximo del mes entonces le restamos el dia maximo y reseteamos los dias\n if( $numeros[$i+1] > $meses[$mes-1])\n {\n $numeros[$i+1] = $numeros[$i+1] - $meses[$mes-1];\n //marcamos que cambiamos de mes\n $cambio_mes = 1;\n }\n\n }\n $total = \"\";\n //bucle para crear los tr de las horas\n for($i=8;$i<21;$i++)\n {\n //Quitamos las horas de comer\n if($i!=14 && $i!=15)\n {\n //generamos el primer td con la hora\n $total.=\"<tr><td>\".$i.\":00-\".($i+1).\":00</td>\";\n //bucle para sacar el resto de td\n for($k=0;$k<5;$k++)\n {\n $total .= \"<td class='$numeros[$k]-$i dia_$k'>\";\n //foreach de horarios para comprobar si coincide con la fecha y tenemos que printar un boton\n foreach ($h_profe as $hora)\n {\n //creamos otra variable de mes para no modificar la global\n $mes_1 = $mes;\n //Preguntas para saber si hay que modificar el mes, ya sea sumar o cambiar a 1\n if($cambio_mes == 1 && $mes_1 < 12 && $numeros[$k]<5)\n {\n $mes_1 = $mes_1+1;\n }\n else if( $cambio_mes == 1 && $mes_1 == 12 && $numeros[$k]<5)\n {\n $mes_1 = 1;\n $año = $año+1;\n }\n //Añadimos un zero a la izquierda si es inferior a 10\n $mes_1 = str_pad($mes_1, 2, \"0\", STR_PAD_LEFT);\n $dia = str_pad($numeros[$k], 2, \"0\", STR_PAD_LEFT);\n //Montamos la fecha\n $fecha = $año.\"-\".$mes_1.\"-\".$dia ;\n\n //Preguntamos si la hora del tr es la misma que la del horario y lo mismo con la fecha\n if($hora['hora']== $i && $hora['fecha'] == $fecha)\n {\n //Si coincide creamos el boton\n $total.= \"<button class='practica hvr-grow-shadow'>Marcar</button>\";\n }\n }\n //Le metemos un span oculto con los datos de dia y hora.\n $total .=\"<span style='display:none'>\".$numeros[$k].\" \".$i.\":00</span></td>\";\n\n }\n $total.=\"</tr>\";\n }\n }\n //Enviamos la tabla\n echo $total;\n }", "public function abono();", "function Terminales($BogID)\r\n\t{\r\n\t global $conn_2;\r\n\t $Tex=new Decoracion();\r\n\t\t//$query=\"bhjj\";\r\n//->SI LA VARIALE DE BOGID VIENE DESOCUPADA\r\n//->MOSTRAMOS EL MENSAJE ESCOGE PRIMERO BODEGA\r\nif($BogID)\r\n{\t\r\n\t\t\t $var=mysql_query('SELECT ter.terminal_number AS ternum,ter.location_id, ter.id AS terid \r\n\t\t\t \t\t\t\t\tFROM pos_terminal AS ter \r\n\t\t\t\t\t\t\t\tWHERE ter.location_id=\"'.$BogID.'\" AND ter.status=0',$conn_2);\r\n\t\t\t\t//->es el wihle que RECORRE LA CONSULTA DE LA TABLA pos_inventorylocation PERO REGISTRO POR REGISTRO\r\n\t\t\t$number=mysql_num_rows($var); \r\n\t\t\tif($number){\t\r\n\t\t\t\twhile($row=mysql_fetch_assoc($var))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t $OPC.='<option value=\"'.$row['terid'].'\">Terminal::'.$row['ternum'].'</option>';\r\n\t\t\t\t\t}\r\n\t\t\t\t }else\r\n\t\t\t\t\t{$OPC.='<option value=\"-1\" selected>NO HAY CAJAS DISPONIBLES</option>';}\r\n\r\n}else//->POS ACA ES PORQUE NO HAY BODEGA CON QUE COMPRARA\r\n\t{\r\n\t$OPC.='<option value=\"-1\">ESCOGE UNA SUCURSAL</option>';\r\n\t}\r\n\r\n\r\n$SELECCION='<select name=\"TERMINAL\" id=\"TERMINAL\" class=\"cajas\">\r\n <option value=\"-1\" selected >Escoge..</option>\r\n\t '.$OPC.'\r\n\t </select>';\r\n\t \r\n \r\n \r\n \r\n $Tex->BarraTitulo('Terminal',$SELECCION,'88');\r\n \r\n \r\n \r\n \r\n }", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }", "public function abrirMenu() {\n echo $this->getLigado()?\"<p>Esta ligado? : SIM <br>\":\"Esta ligado : NON <br></p>\";\n echo $this->getTocando()?\"Esta tocando? : SIM\":\"Esta tocando? : NON\";\n echo \"<br>Volume: \" . $this->getVolume();\n // Pra colocar barrinhas simulando o volume\n for ($i=0; $i <=$this->getVolume(); $i+=10) {\n echo \"|\";\n }\n echo \"<br>\";\n }", "protected function convertirMayuscula(){\n $cadena=strtoupper($this->tipo);\n $this->tipo=$cadena;\n }", "public function puestaACero()\n {\n $this->hh = 0;\n $this->mm = 0;\n $this->ss = 0;\n }" ]
[ "0.60391873", "0.59227794", "0.5812013", "0.5785275", "0.57603586", "0.5722712", "0.5704181", "0.56967944", "0.5693835", "0.5638776", "0.56306165", "0.5616934", "0.56155753", "0.5521815", "0.5510703", "0.54965705", "0.54702693", "0.54575586", "0.54422176", "0.54250723", "0.54250723", "0.5410447", "0.5404874", "0.53920907", "0.5386899", "0.5382799", "0.5382505", "0.5380154", "0.5339888", "0.5333497", "0.5327054", "0.5323074", "0.5320327", "0.53189427", "0.5300134", "0.5279478", "0.52774435", "0.5268147", "0.5267233", "0.52648526", "0.5260612", "0.5260551", "0.5251649", "0.5249871", "0.52408296", "0.5236741", "0.5230273", "0.5224625", "0.5222827", "0.52139646", "0.5211829", "0.5206589", "0.52050316", "0.52037305", "0.51923823", "0.5191544", "0.5190482", "0.51898354", "0.51896846", "0.51890475", "0.51886773", "0.5186207", "0.51857674", "0.5181713", "0.51798743", "0.5174019", "0.5168226", "0.5161975", "0.51611763", "0.5160858", "0.51603794", "0.51579875", "0.51574236", "0.51550615", "0.51515967", "0.51416564", "0.51303846", "0.5116544", "0.5110677", "0.51099616", "0.5105581", "0.51026505", "0.5100685", "0.5099167", "0.5095734", "0.50927883", "0.5088086", "0.50875837", "0.5086163", "0.5083506", "0.50788534", "0.5078581", "0.5077502", "0.50761163", "0.50719494", "0.5070394", "0.5068039", "0.5066926", "0.50668263", "0.5066296", "0.5060608" ]
0.0
-1
/ SECCION PRE SOLICITUDES
public function presolicitud(){ $this->data['notificacion_count'] = $this->process_model->get_num_notify(); $this->data['notificacion_msj'] = $this->process_model->get_notificacion(); // if(!$this->data['notificacion_msj']): // $this->data['notificacion_msj'] = $this->process_model->get_notificacion_old(); // endif; $this->data['vista'] = 'vistas/presolicitudes/importar'; $this->load->view('layouts/dashboard'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function traerCualquiera()\n {\n }", "private function setExercicio(){\n\t\t$this->Enunciado = $this->Data['enunciado'];\n\t\t$this->A = $this->Data['opA'];\n\t\t$this->B = $this->Data['opB'];\n\t\t$this->C = $this->Data['opC'];\n\t\t$this->D = $this->Data['opD'];\n\t\t$this->E = $this->Data['opE'];\n\t\t$this->Correta = $this->Data['correta'];\n\n\t\t$this->Query = ['c_enumexer' => $this->Enunciado,\n\t\t\t\t\t\t'c_altaexer' => $this->A,\n\t\t\t\t\t\t'c_altbexer' => $this->B,\n\t\t\t\t\t\t'c_altcexer' => $this->C,\n\t\t\t\t\t\t'c_altdexer' => $this->D,\n\t\t\t\t\t\t'c_alteexer' => $this->E,\n\t\t\t\t\t\t'c_correxer' => $this->Correta];\n\n\t}", "function prepareResultat()\n\t{\n\t\tif ($this->view->utilisationPaPossible == false) {\n\t\t\tthrow new Zend_Exception(get_class($this) . \" Utilisation impossible : PA:\" . $this->view->user->pa_braldun);\n\t\t}\n\n\t\t// verification que la valeur recue est bien numerique\n\t\tif (((int)$this->request->get(\"valeur_1\") . \"\" != $this->request->get(\"valeur_1\") . \"\")) {\n\t\t\tthrow new Zend_Exception(get_class($this) . \" Valeur invalide : val=\" . $this->request->get(\"valeur_1\"));\n\t\t} else {\n\t\t\t$idTypeRune = (int)$this->request->get(\"valeur_1\");\n\t\t}\n\n\t\tif (!array_key_exists($idTypeRune, $this->view->labanRunes)) {\n\t\t\tthrow new Zend_Exception(get_class($this) . \" idTypeRune interdit A=\" . $idTypeRune);\n\t\t}\n\n\t\tif ($this->view->labanRunes[$idTypeRune][\"achat_possible\"] !== true || $this->view->labanRunes[$idTypeRune][\"cout_castars\"] > $this->view->user->castars_braldun) {\n\t\t\tthrow new Zend_Exception(get_class($this) . \" Achat impossible\");\n\t\t}\n\n\t\t$this->echange($idTypeRune);\n\t\t$this->majBraldun();\n\t}", "public function valorpasaje();", "public function contrato()\r\n\t{\r\n\t}", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n //a zjisti a zapise kolize ucastnika pro vsechny formulare \r\n $vsechny_kolize_ucastnika_pole = self::Najdi_kolize_vsechny($iducast);\r\n //echo \"<br>**Vsechny kolize_pole v Zapis_vsechny_kolize..... **\";\r\n //var_dump($vsechny_kolize_ucastnika_pole);\r\n \r\n //znevalidneni vsech kolizi pro ucastnika \r\n self::Znevalidni_kolize_ucastnika_vsechny($iducast);\r\n foreach($vsechny_kolize_ucastnika_pole as $jedna_kolize){\r\n if ($jedna_kolize->kolize_nastala) {\r\n $jedna_kolize->Zapis_jednu_kolizi();\r\n } \r\n }\r\n \r\n}", "public function valordelospasajesplus();", "function pre_descuento_familia_articulos(&$Sesion) {\n\t$id_cliente=$Sesion->fetchVar('id_cliente','GET');\n\t$descuentos_familia_borrar=$Sesion->fetchVar('descuentos_familia_borrar','POST');\n\t$descuentos_familia_modificar=$Sesion->fetchVar('descuentos_familia_modificar','POST');\n\t$accion_ejecutar=$Sesion->fetchVar('accion_ejecutar','POST');\n\n\t$id_cliente_sesion = $Sesion->get_var(\"id_cliente_promocion\");\n\t$oDb = $Sesion->get_db('data');\n\n\t//debug(\"glob $id_cliente\");\n\t//debug(\"ses $id_cliente_sesion\");\n\n\tif(isset($id_cliente) AND $id_cliente_sesion != $id_cliente)\n\t\t$Sesion->set_var(\"id_cliente_promocion\",$id_cliente);\n\telse {\n\t\t$id_cliente = $Sesion->get_var(\"id_cliente_promocion\");\n\t\tif(!isset($id_cliente)){\n\t\t\t// debug(\"no hay cliente\");\n\t\t\treturn;\n\t\t}\n\t}\n\n\t//$id_cliente = $Sesion->get_var(\"id_cliente_promocion\");\n\t$usuario = identifica_usuarios($Sesion);\n\t//debug($id_cliente);\n\n\tswitch($accion_ejecutar){\n\t\tcase \"Modificar\" :\n\t\t\tif ($Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_CHANGE) AND $Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_AUTHED)) {\n\t\t\t\tif(isset($descuentos_familia_modificar)) {\n\t\t\t\t\tforeach($descuentos_familia_modificar as $clave => $valor){\n\t\t\t\t\t\t$aTmp = array();\n\t\t\t\t\t\t$aTmp['descuento'] = $descuentos_familia_modificar[$clave];\n\t\t\t\t\t\t$aTmp['id_familia'] = $clave;\n\t\t\t\t\t\t$aTmp['id_cliente'] = $id_cliente;\n\t\t\t\t\t\t$aTmp['id_empresa'] = $usuario['id'];\n\t\t\t\t\t\t$oDb->tb_update('Cliente_familia_articulos',$aTmp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tbreak;\n\n\t\tcase \"Borrar\" :\n\t\t\tif(isset($descuentos_familia_borrar)){\n\t\t\t\tforeach($descuentos_familia_borrar as $clave => $valor)\n\t\t\t\t\tif($valor == 1 ){\n\t\t\t\t\t\t$aTmp = array();\n\t\t\t\t\t\t$aTmp['id_familia'] = $clave;\n\t\t\t\t\t\t$aTmp['id_cliente'] = $id_cliente;\n\t\t\t\t\t\t$aTmp['id_empresa'] = $usuario['id'];\n\t\t\t\t\t\t$oDb->tb_delete('Cliente_familia_articulos',$aTmp);\n\t\t\t\t\t}\n\t\t\t}\n\t\tbreak;\n\n\t\tcase \"Anyadir\" :\n\t\t\tif ($Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_CHANGE) AND $Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_AUTHED)) {\n\t\t\t\tif(isset($descuentos_familia_modificar)){\n\t\t\t\t\tforeach($descuentos_familia_modificar as $clave => $valor){\n\t\t\t\t\t\tif($descuentos_familia_modificar[$clave] != 0){\n\t\t\t\t\t\t\t$aTmp['id_empresa'] = $usuario['id'];\n\t\t\t\t\t\t\t$aTmp['id_cliente'] = $id_cliente;\n\t\t\t\t\t\t\t$aTmp['id_familia'] = $clave;\n\t\t\t\t\t\t\t$aTmp['descuento'] = $descuentos_familia_modificar[$clave];\n\t\t\t\t\t\t\t$oDb->tb_replace('Cliente_familia_articulos',$aTmp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tbreak;\n\n\t}//fin de acciones\n}", "function getSemaforo() {\n\t\tglobal $usr;\n\n\t\tif ($this->extra[\"imprimir\"]) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telseif ($usr->orientacion_semaforo == 0) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telse {\n\t\t\t$this->resultado = $this->__getSemaforoInvertido();\n\t\t}\n\t}", "private function _agregarSeguimiento($id_practica, $titulo, $id_segui = NULL, $id_lp_seg = NULL) {\n $_objUsuPractica = new DAO_UsuariosPracticas(); // DAO de practicas del usuario\n $_objUsuPractica->set_id_practica($id_practica);\n $_objUsuPractica->consultar();\n $estado = $_objUsuPractica->get_estado_practica(); // el estado del seguimiento es el estado actual de la practica\n $_objSeguimiento = new DAO_Seguimientos();\n if (!empty($id_segui)) {\n $_objSeguimiento->set_id_segui($id_segui);\n $_objSeguimiento->consultar();\n $estado = $_objSeguimiento->get_segui_tipo(); // no puede actualizar el tipo de seguimiento \n }\n $_objSeguimiento->set_id_practica($id_practica);\n $_objSeguimiento->set_segui_titulo($titulo);\n $_objSeguimiento->set_segui_tipo($estado);\n $_objSeguimiento->set_id_usu_cent($_SESSION['id_usuario']);\n if (!$_objSeguimiento->guardar()) {\n $this->_mensaje = $_objSeguimiento->getMysqlError();\n throw new ControllerException(\"No se pudo guardar seguimiento \", 0);\n }\n if (!empty($id_lp_seg)) {\n $_objProgramacionSeg = new DAO_ConfLineasPracticaSeguimiento();\n $_objProgramacionSeg->set_id_lp_seg($id_lp_seg);\n $_id_usu_cp_solicitado = $_objProgramacionSeg->get_id_usu_cp();\n if($_id_usu_cp_solicitado != $_SESSION['id_usu_cp']){\n throw new ControllerException(\"usted no es el usuario que debe generar éste seguimiento\");\n }\n $_objProgramacionSeg->set_id_segui($_objSeguimiento->get_id_segui());\n if (!$_objProgramacionSeg->guardar()) {\n $this->_mensaje = $_objSeguimiento->getMysqlError();\n throw new ControllerException(\"No se pudo relacionar seguimiento actual con el seguimiento programado\", 0);\n }\n }\n $this->_guardarLog($_SESSION['id_usu_cent'], ['accion' => 'insertar', 'metodo' => get_class() . ':_agregarSeguimiento', 'parametros' => ['id_practica' => $id_practica, 'titulo' => $titulo, 'id_segui' => $id_segui, 'id_lp_seg' => $id_lp_seg]]);\n return $_objSeguimiento->getArray();\n }", "public static function Znevalidni_kolize_ucastnika_formulare($iducast,$formular) {\r\n//echo \"<hr><br>*Znevalidnuji vsechny kolize ucastnika , formular=\" . $formular;\r\n \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n //vyberu vsechny ulozene kolize z tabulky uc_kolize_table\r\n $query= \"SELECT * FROM uc_kolize_table left join s_typ_kolize on (s_typ_kolize.id_s_typ_kolize = uc_kolize_table.id_s_typ_kolize_FK) \" .\r\n \"WHERE id_ucastnik=\" . $iducast . \" and s_typ_kolize.formular='\" . $formular . \"' and uc_kolize_table.valid\" ;\r\n \r\n //echo \"<br>*dotaz na kolize v Znevalidni_kolize_ucastnika_formulare: \" . $query;\r\n \r\n $sth = $dbh->prepare($query);\r\n $succ = $sth->execute();\r\n \r\n while($zaznam_kolize = $sth->fetch()) {\r\n //echo \"<br>*Znevalidnuji kolizi: \" . $zaznam_kolize[id_uc_kolize_table];\r\n \r\n $query1 = \"UPDATE uc_kolize_table SET \" .\r\n \"valid=0 WHERE uc_kolize_table.id_uc_kolize_table=\" . $zaznam_kolize['id_uc_kolize_table'] ;\r\n $data1= $dbh->prepare($query1)->execute(); \r\n }\r\n \r\n//echo \"<hr>\";\r\n}", "function ToonFormulierAfspraak()\n{\n\n}", "function comprobar_SUPERFICIEESPACIO(){\n\t$errores = array();\n\t$correcto=true;\n //Compruebo si el valor es null o no es vacio\n if (($this->SUPERFICIEESPACIO == null) || (strlen($this->SUPERFICIEESPACIO) == 0)){\n\n \t$mensajeError = array (\n \"nombreatributo\" => \"SUPERFICIEESPACIO\",\n \"codigoincidencia\" => \"00001\",\n \"mensajeerror\" => \"Atributo vacío\"\n );\n\t$errores[]=$mensajeError;\n\treturn $errores;\n }\n\tif((int)$this->SUPERFICIEESPACIO<0){\n\t $mensajeError = array (\n \"nombreatributo\" => \"SUPERFICIEESPACIO\",\n \"codigoincidencia\" => \"00004\",\n \"mensajeerror\" => \"Valor de atributo numérico demasiado corto\"\n );\n\t$errores[]=$mensajeError;\n\treturn $errores;\n}\n\t\nif((int)$this->SUPERFICIEESPACIO>9999){\n\t $mensajeError = array (\n \"nombreatributo\" => 'SUPERFICIEESPACIO',\n \"codigoincidencia\" => \"00002\",\n \"mensajeerror\" => \"Valor de atributo demasiado largo\"\n );\n\t$errores[]=$mensajeError;\n\treturn $errores;\n}\n\tif (!preg_match(\"/^[\\d]+$/\",$this->SUPERFICIEESPACIO)){\n\t\t $mensajeError = array (\n \"nombreatributo\" => 'SUPERFICIEESPACIO',\n \"codigoincidencia\" => \"00070\",\n \"mensajeerror\" => \"Solo se permiten números\"\n );\n\t\t$errores[]=$mensajeError;\n\t\treturn $errores;\n\t}\n\tif($correcto==TRUE){\n\t\treturn TRUE;\n\t}else{\n\t\treturn $errores;\n\t}\n}", "public function quienesSomos()\n {\n require_once \"_Vista/_Plantillas/head.php\";\n require_once \"_Vista/_Plantillas/navBar.php\";\n require_once \"_Vista/QuienesSomosVista.php\";\n }", "public function linea_colectivo();", "public function sincronizeCant(){\n foreach($this->tutores as $filaTutor){\n $filaTutor->setScenario($filaTutor::SCENARIO_CANTIDAD);\n $filaTutor->nalumnos=$this->countStudentsByTutor($filaTutor->codtra);\n if(!$filaTutor->save())yii::error($filaTutor->getFirstError(),__METHOD__);\n }\n }", "function arreglaprecios(){\n\t\t$mSQL='UPDATE sinv SET precio2=precio1, base2=base1, margen2=margen1 WHERE precio2=0 OR precio2 IS NULL';\n\t\tvar_dump($this->db->simple_query($mSQL));\n\t\t$mSQL='UPDATE sinv SET precio3=precio2, base3=base2, margen3=margen2 WHERE precio3=0 OR precio3 IS NULL';\n\t\tvar_dump($this->db->simple_query($mSQL));\n\t\t$mSQL='UPDATE sinv SET precio4=ROUND(ultimo*100/(100-(margen3-0.5))*(1+(iva/100)),2), base4=ROUND(ultimo*100/(100-(margen3-0.5)),2), margen4=margen3-.5 WHERE precio4=0 OR precio4 IS NULL';\n\t\tvar_dump($this->db->simple_query($mSQL));\n\t}", "function control_suplente($desde,$hasta,$id_desig_suplente){\n //busco todas las licencias de la designacion que ingresa\n //novedades vigentes en el periodo\n $anio=date(\"Y\", strtotime($desde)); \n $pdia = dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($anio);\n $udia = dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($anio);\n $sql=\"SELECT distinct t_n.desde,t_n.hasta \n FROM novedad t_n\n WHERE t_n.id_designacion=$id_desig_suplente\n and t_n.tipo_nov in (2,3,5)\n and t_n.desde<='\".$udia.\"' and t_n.hasta>='\".$pdia.\"'\"\n . \" ORDER BY t_n.desde,t_n.hasta\"; \n $licencias=toba::db('designa')->consultar($sql);\n $i=0;$seguir=true;$long=count($licencias);$primera=true;\n while(($i<$long) and $seguir){\n if($primera){\n $a=$licencias[$i]['desde'];\n $b=$licencias[$i]['hasta'];\n $primera=false;\n }else{\n if($desde>=$licencias[$i]['desde']){\n $a=$licencias[$i]['desde'];\n $b=$licencias[$i]['hasta'];\n }\n if($hasta<=$licencias[$i]['hasta']){\n $seguir=false;\n }\n \n if(($licencias[$i]['desde']==date(\"Y-m-d\",strtotime($b.\"+ 1 days\"))) or ($licencias[$i]['desde']==$b)){\n $b=$licencias[$i]['hasta'];\n }\n }\n $i++;\n }\n if($long>0){\n if($desde>=$a and $hasta<=$b){\n return true;\n }else{\n return false;\n }\n }else{//no tiene novedades\n return false;\n }\n\n// $sql=\"select * from designacion t_d\"\n// . \" INNER JOIN novedad t_n ON (t_d.id_designacion=t_n.id_designacion and t_n.tipo_nov in (2,3,5) )\"\n// . \" where t_d.id_designacion=$id_desig_suplente\"\n// . \" and '\".$desde.\"'>=t_n.desde and '\".$hasta.\"'<=t_n.hasta\";\n// $res=toba::db('designa')->consultar($sql);\n// if(count($res)>0){\n// return true;\n// }else{\n// return false;\n// }\n }", "function checkOblig(&$falta, &$f, $oblig) {\r\n# versio obligatoris en formulari\r\n foreach (explode(\"#\", $oblig) as $cm) {\r\n if (!$f[$cm])\r\n $falta[$cm][] = 'oblig';\r\n }\r\n return count($falta);\r\n}", "function DIFERENCIA_SUELDO_BASICO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\t\r\n\t$sum_diferencia = 0;\r\n\t\r\n\t//\tObtengo el sueldo basico mensual...\r\n\t$sql = \"SELECT\r\n\t\t\t\t ns.SueldoPromedio AS SueldoBasico \r\n\t\t\tFROM \r\n\t\t\t\t rh_empleadonivelacion en \r\n\t\t\t\t INNER JOIN rh_puestos p ON (en.CodCargo = p.CodCargo) \r\n\t\t\t\t INNER JOIN rh_nivelsalarial ns ON (p.CategoriaCargo = ns.CategoriaCargo AND p.Grado = ns.Grado) \r\n\t\t\tWHERE \r\n\t\t\t\t en.CodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND \r\n\t\t\t\t --\ten.CodTipoNom = '\".$_ARGS['NOMINA'].\"' AND \r\n\t\t\t\t en.CodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND \r\n\t\t\t\t en.TipoAccion <> 'ET' AND \r\n\t\t\t\t en.FechaHasta = '0000-00-00'\r\n\t\t\tORDER BY en.Fecha\";\r\n\t$query_sueldo = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query_sueldo) != 0) $field_sueldo = mysql_fetch_array($query_sueldo);\r\n\t\t\r\n\t$sql = \"SELECT\r\n\t\t\t\t en.Fecha, \r\n\t\t\t\t en.FechaHasta, \r\n\t\t\t\t ns.SueldoPromedio AS SueldoTemporal \r\n\t\t\tFROM \r\n\t\t\t\t rh_empleadonivelacion en \r\n\t\t\t\t INNER JOIN rh_puestos p ON (en.CodCargo = p.CodCargo) \r\n\t\t\t\t INNER JOIN rh_nivelsalarial ns ON (p.CategoriaCargo = ns.CategoriaCargo AND p.Grado = ns.Grado) \r\n\t\t\tWHERE \r\n\t\t\t\t en.CodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND \r\n\t\t\t\t --\ten.CodTipoNom = '\".$_ARGS['NOMINA'].\"' AND \r\n\t\t\t\t en.CodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND \r\n\t\t\t\t en.TipoAccion = 'ET' AND \r\n\t\t\t\t ((en.FechaHasta = '0000-00-00' AND en.Fecha <= '\".$_ARGS['HASTA'].\"') OR \r\n\t\t\t\t ('\".$_ARGS['DESDE'].\"' >= en.Fecha AND \r\n\t\t\t\t '\".$_ARGS['DESDE'].\"' <= en.FechaHasta) OR \r\n\t\t\t\t (en.Fecha >= '\".$_ARGS['DESDE'].\"' AND \r\n\t\t\t\t en.Fecha <= '\".$_ARGS['HASTA'].\"')) \r\n\t\t\tORDER BY en.Fecha\";\r\n\t$query_nivelaciones = mysql_query($sql) or die ($sql.mysql_error());\r\n\twhile ($field_nivelaciones = mysql_fetch_array($query_nivelaciones)) {\r\n\t\tif ($field_nivelaciones['Fecha'] < $_ARGS['DESDE']) $desde = $_ARGS['DESDE'];\r\n\t\telse $desde = $field_nivelaciones['Fecha'];\r\n\t\t##\r\n\t\tif ($field_nivelaciones['FechaHasta'] == \"0000-00-00\" || $field_nivelaciones['FechaHasta'] > $_ARGS['HASTA']) $hasta = $_ARGS['HASTA'];\r\n\t\telse $hasta = $field_nivelaciones['FechaHasta'];\r\n\t\t##\r\n\t\t$dias = DIAS_FECHA($desde, $hasta);\r\n\t\t##\r\n\t\t$Diferencia = $field_nivelaciones['SueldoTemporal'] - $field_sueldo['SueldoBasico'];\r\n\t\t$Diario = $Diferencia / $_PARAMETROS['MAXDIASMES'];\r\n\t\t$monto = $Diario * $dias;\r\n\t\t##\r\n\t\t$sum_diferencia += $monto;\r\n\t}\r\n\treturn $sum_diferencia;\r\n}", "function geraClasseValidadorFormulario(){\n # Abre o template da classe basica e armazena conteudo do modelo\n $modelo1 = Util::getConteudoTemplate('class.Modelo.ValidadorFormulario.tpl');\n $modelo2 = Util::getConteudoTemplate('metodoValidaFormularioCadastro.tpl');\n\n # abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aModeloFinal = array();\n \n # varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n $nomeClasse = ucfirst($this->getCamelMode((string)$aTabela['NOME']));\n $copiaModelo1 = $modelo1;\n $copiaModelo2 = $modelo2;\n\n $objetoClasse = \"\\$o$nomeClasse\";\n\n # ==== varre a estrutura dos campos da tabela em questao ====\n $camposForm = array();\n foreach($aTabela as $oCampo){\n # recupera campo e tabela e campos (chave estrangeira)\n $nomeCampoOriginal = (string)$oCampo->NOME;\n # processa nome original da tabela estrangeira\n $nomeFKClasse = (string)$oCampo->FKTABELA;\n $objetoFKClasse = \"\\$o$nomeFKClasse\";\n\n $nomeCampo = $nomeCampoOriginal;\n //$nomeCampo = $nomeCampoOriginal;\n\n # monta parametros a serem substituidos posteriormente\n $label = ($nomeFKClasse != '') ? ucfirst(strtolower($nomeFKClasse)) : ucfirst(str_replace($nomeClasse,\"\",$nomeCampoOriginal));;\t\t\t\t\t\n $camposForm[] = ((int)$oCampo->CHAVE == 1) ? \"if(\\$acao == 2){\\n\\t\\t\\tif(\\$$nomeCampoOriginal == ''){\\n\\t\\t\\t\\t\\$this->msg = \\\"$label invalido!\\\";\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t}\" : \"if(\\$$nomeCampoOriginal == ''){\\n\\t\\t\\t\\$this->msg = \\\"$label invalido!\\\";\\n\\t\\t\\treturn false;\\n\\t\\t}\\t\";\n }\n # monta demais valores a serem substituidos\n $camposForm = join($camposForm,\"\\n\\t\\t\");\n\n # substitui todas os parametros pelas variaveis já processadas\n $copiaModelo2 = str_replace('%%NOME_CLASSE%%', $nomeClasse, $copiaModelo2);\n $copiaModelo2 = str_replace('%%ATRIBUICAO%%', $camposForm, $copiaModelo2);\n\n $aModeloFinal[] = $copiaModelo2;\n }\n\n $modeloFinal = str_replace('%%FUNCOES%%', join(\"\\n\\n\", $aModeloFinal), $copiaModelo1);\n\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\n if(!file_exists($dir)) mkdir($dir);\n\n $fp = fopen(\"$dir/class.ValidadorFormulario.php\",\"w\"); fputs($fp, $modeloFinal); fclose($fp);\n\n return true;\t\n }", "function phrasefrancaise($motObjet,$temps,$type,$personne){\n //type = 1affirm - 2neg - 3question;\n //personne = 1;\n $mot = $motObjet->getFrancais();\n $adjectif = $motObjet->getAdjectif();\n $fin = \" \";\n if($adjectif==true){\n $fin=\"s\";\n }\n switch ($temps) {\n // passé\n case 1 :\n switch($type){\n // passe affirm\n case 1:\n \n switch($personne){\n case 1:\n $traduction = \"j'étais \".$mot;\n break;\n case 2:\n $traduction = \"tu étais \".$mot;\n break;\n case 3:\n $traduction = \"il etait \".$mot;\n break;\n case 4:\n $traduction = \"nous étions \".$mot.$fin;\n break;\n case 5:\n $traduction = \"vous étiez \".$mot.$fin;\n break;\n case 6:\n $traduction = \"ils étaient \".$mot.$fin;\n break;\n }\n break;\n // passe neg\n case 2:\n switch($personne){\n case 1:\n $traduction = \"je n'étais pas \".$mot;\n break;\n case 2:\n $traduction = \"tu n'étais pas \".$mot;\n break;\n case 3:\n $traduction = \"il n'était pas \".$mot;\n break;\n case 4:\n $traduction = \"nous n'étions pas \".$mot.$fin;\n break;\n case 5:\n $traduction = \"vous n'étiez pas \".$mot.$fin;\n break;\n case 6:\n $traduction = \"ils n'étaient pas \".$mot.$fin;\n break;\n }\n break;\n // passe quest\n case 3:\n switch($personne){\n case 1:\n $traduction = \"étais je \".$mot.\"?\";\n break;\n case 2:\n $traduction = \"étais tu \".$mot.\"?\";\n break;\n case 3:\n $traduction = \"était il \".$mot.\"?\";\n break;\n case 4:\n $traduction = \"étions nous \".$mot.$fin.\"?\";\n break;\n case 5:\n $traduction = \"étiez vous \".$mot.$fin.\"?\";\n break;\n case 6:\n $traduction = \"étaient ils \".$mot.$fin.\"?\";\n break;\n }\n \n break;\n }\n break;\n \n // présent \n case 0 :\n switch($type){\n // present affirm\n case 1:\n switch($personne){\n case 1:\n $traduction = \"je suis \".$mot;\n break;\n case 2:\n $traduction = \"tu es \".$mot;\n break;\n case 3:\n $traduction = \"il est \".$mot;\n break;\n case 4:\n $traduction = \"nous sommes \".$mot.$fin;\n break;\n case 5:\n $traduction = \"vous êtes \".$mot.$fin;\n break;\n case 6:\n $traduction = \"ils sont \".$mot.$fin;\n break;\n }\n break;\n // present nega\n case 2:\n \n switch($personne){\n case 1:\n $traduction = \"je ne suis pas \".$mot;\n break;\n case 2:\n $traduction = \"tu n'es pas \".$mot;\n break;\n case 3:\n $traduction = \"il n'est pas \".$mot;\n break;\n case 4:\n $traduction = \"nous ne sommes pas \".$mot.$fin;\n break;\n case 5:\n $traduction = \"vous n'etes pas \".$mot.$fin;\n break;\n case 6:\n $traduction = \"ils ne sont pas \".$mot.$fin;\n break;\n }\n break;\n \n //present question\n case 3:\n switch($personne){\n case 1:\n $traduction = \"suis je \".$mot.\"?\";\n break;\n case 2:\n $traduction = \"es tu \".$mot.\"?\";\n break;\n case 3:\n $traduction = \"est il \".$mot.\"?\";\n break;\n case 4:\n $traduction = \"sommes nous \".$mot.$fin.\"?\";\n break;\n case 5:\n $traduction = \"êtes vous \".$mot.$fin.\"?\";\n break;\n case 6:\n $traduction = \"sont ils \".$mot.$fin.\"?\";\n break;\n }\n break;\n }\n break;\n \n //futur\n case 2 :\n switch($type){\n //futur affirm\n case 1:\n switch($personne){\n case 1:\n $traduction = \"je serai \".$mot;\n break;\n case 2:\n $traduction = \"tu seras \".$mot;\n break;\n case 3:\n $traduction = \"il sera \".$mot;\n break;\n case 4:\n $traduction = \"nous serons \".$mot.$fin;\n break;\n case 5:\n $traduction = \"vous serez \".$mot.$fin;\n break;\n case 6:\n $traduction = \"ils seront \".$mot.$fin;\n break;\n }\n break;\n //futur negation\n case 2:\n switch($personne){\n case 1:\n $traduction = \"je ne serai pas \".$mot;\n break;\n case 2:\n $traduction = \"tu ne seras pas \".$mot;\n break;\n case 3:\n $traduction = \"il ne sera pas \".$mot;\n break;\n case 4:\n $traduction = \"nous ne serons pas \".$mot.$fin;\n break;\n case 5:\n $traduction = \"vous ne serez pas \".$mot.$fin;\n break;\n case 6:\n $traduction = \"ils ne seront pas \".$mot.$fin;\n break;\n }\n break;\n case 3:\n switch($personne){\n case 1:\n $traduction = \"serai je \".$mot.\"?\";\n break;\n case 2:\n $traduction = \"seras tu \".$mot.\"?\";\n break;\n case 3:\n $traduction = \"sera-t-il \".$mot.\"?\";\n break;\n case 4:\n $traduction = \"serons nous \".$mot.$fin.\"?\";\n break;\n case 5:\n $traduction = \"serez vous \".$mot.$fin.\"?\";\n break;\n case 6:\n $traduction = \"seront ils \".$mot.$fin.\"?\";\n break;\n \n }\n break;\n }\n break;\n }\n return $traduction;\n }", "public function reencaisser_facture_stylimmo()\n {\n\n $factures = Facture::where([['type','stylimmo'],['encaissee',1]])->get();\n\n foreach ($factures as $facture) {\n \n $this->encaisser_facture_stylimmo($facture->id, $facture->date_encaissement);\n }\n // dd($factures);\n\n return \"ok\";\n }", "function realizarHomologacionPendientes(){ \n $this->mostrarFormularioProyecto();\n }", "function exec_suivi() {\n\t$id_auteur = (int) _request('id_auteur');\n\t$id_article = (int) _request('id_article');\n\t$nouv_auteur = (int) _request('nouv_auteur');\n\t$contexte = array();\n\t$idper = '';\n\t$nom = '';\n\t$prenom = '';\n\t$statutauteur = '6forum';\n\t$inscrit = '';\n\t$statutsuivi = '';\n\t$date_suivi = '';\n\t$heure_suivi = '';\n\n\t//Addon fields\n\t$sante_comportement = '';\n\t$alimentation = '';\n\t$remarques_inscription = '';\n\t$ecole = '';\n\t$places_voitures = '';\n\t$brevet_animateur = '';\n\t$historique_payement = '';\n\t$extrait_de_compte = '';\n\t$statut_payement = '';\n\t$tableau_exception = '';\n\t$recus_fiche_medical = '';\n $facture = '';\n $adresse_facturation = '';\n\n\n\t//----------- lire DB ---------- AND id_secteur=2\n\t$req = sql_select('id_article,idact,titre,date_debut', 'spip_articles', \"id_article=$id_article\");\n\tif ($data = sql_fetch($req)) {\n $idact = $data['idact'];\n\t\t$titre = $data['titre'];\n $date_debut = $data['date_debut'];\n\t}\n\telse\n\t\t$id_article = 0;\n\n\t$req = sql_select('*', \n \"spip_auteurs AS A LEFT JOIN spip_auteurs_articles AS S ON S.id_auteur=$id_auteur AND S.id_article=$id_article AND S.inscrit<>''\", \"A.id_auteur=$id_auteur\");\n\tif ($data = sql_fetch($req)) {\n\t\t$idper = $data['idper'];\n\t\t$nom = $data['nom'];\n\t\t$prenom = $data['prenom'];\n\t\t$statutauteur = $data['statut'];\n\t\tif ($data['inscrit']) {\n\t\t\t$inscrit = 'Y';\n\t\t\t$statutsuivi = $data['statutsuivi'];\n\t\t\t$date_suivi = $data['date_suivi'];\n\t\t\t$heure_suivi = $data['heure_suivi'];\n\n\t\t\t$sante_comportement = $data['sante_comportement'];\n\t\t\t$alimentation = $data['alimentation'];\n\t\t\t$remarques_inscription = $data['remarques_inscription'];\n\t\t\t$ecole = $data['ecole'];\n\t\t\t$places_voitures = $data['places_voitures'];\n\t\t\t$brevet_animateur = $data['brevet_animateur'];\n\t\t\t$historique_payement = $data['historique_payement'];\n\t\t\t$extrait_de_compte = $data['extrait_de_compte'];\n\t\t\t$statut_payement = $data['statut_payement'];\n\t\t\t$tableau_exception = $data['tableau_exception'];\n\t\t\t$recus_fiche_medical = $data['recus_fiche_medical'];\n\t\t\t$prix_special = $data['prix_special'];\n $facture = $data['facture'];\n $adresse_facturation = $data['adresse_facturation'];\n\t\t}\n\t}\n\telse\n\t\t$id_auteur = 0;\n\n\t//-------- form soumis -----------\n\tif (_request('okconfirm') && $id_article && ($id_auteur || $nouv_auteur))\n\t\tif ($GLOBALS['connect_statut']!='0minirezo' || ! autoriser('modifier', 'article', $id_article))\n\t\t\t$contexte['message_erreur'] = 'Autorisation refusée';\n\t\telse {\n\t\t\t$statutsuivi = _request('statutsuivi');\n\t\t\t$date_suivi = _request('date_suivi');\n\t\t\t$heure_suivi = _request('heure_suivi');\n \n $sante_comportement = _request('sante_comportement');\n $alimentation = _request('alimentation');\n $remarques_inscription = _request('remarques_inscription');\n $ecole = _request('ecole');\n $places_voitures = _request('places_voitures');\n $brevet_animateur = _request('brevet_animateur');\n $extrait_de_compte = _request('extrait_de_compte');\n $historique_payement = str_replace(',', '.', _request('historique_payement'));\n $statut_payement = _request('statut_payement');\n $tableau_exception = _request('tableau_exception');\n $recus_fiche_medical = _request('recus_fiche_medical');\n $prix_special = _request('prix_special');\n $facture = _request('facture');\n $adresse_facturation = _request('adresse_facturation');\n\n\t\t\tinclude_spip('inc/date_gestion');\n\t\t\t$contexte['erreurs'] = array();\n\t\t\tif (@verifier_corriger_date_saisie('suivi', false, $contexte['erreurs']))\n\t\t\t\t$date_suivi = substr($date_suivi, 6, 4).'-'.substr($date_suivi, 3, 2).'-'.substr($date_suivi, 0, 2);\n\t\t\telse\n\t\t\t\t$contexte['message_erreur'] = 'Erreur';\n\n\t\t\tif (! $contexte['message_erreur'])\n\t\t\t\tif ($nouv_auteur) {\n\t\t\t\t\t$req = sql_select('A.id_auteur,id_article',\"spip_auteurs AS A LEFT JOIN spip_auteurs_articles AS S ON S.id_auteur=$nouv_auteur AND S.id_article=$id_article\", \"A.id_auteur=$nouv_auteur\");\n\t\t\t\t\tif ($data = sql_fetch($req)) {\n\t\t\t\t\t\t$id_auteur = $data['id_auteur'];\n\t\t\t\t\t\tif (! $data['id_article'])\n\t\t\t\t\t\t\tsql_insertq('spip_auteurs_articles', array('id_auteur'=>$id_auteur, 'id_article'=>$id_article, 'inscrit'=>'Y'));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$contexte['message_erreur'] = 'Erreur';\n\t\t\t\t\t\t$contexte['erreurs']['nouv_auteur'] = 'auteur ID inconnu';\n\t\t\t\t\t\t$id_auteur = 0;\n\t\t\t\t\t\t$inscrit = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif ($id_auteur && ! $contexte['message_erreur']) {\n\t\t\t\tsql_updateq('spip_auteurs_articles', \n array(\n \t\t'inscrit'=>'Y', \n \t\t'statutsuivi'=>$statutsuivi, \n \t\t'date_suivi'=>$date_suivi, \n \t\t'heure_suivi'=>$heure_suivi,\n \t'sante_comportement'=>$sante_comportement,\n \t'alimentation'=>$alimentation,\n \t'remarques_inscription'=>$remarques_inscription,\n \t'ecole'=>$ecole,\n \t'brevet_animateur'=>$brevet_animateur,\n \t'places_voitures'=>$places_voitures,\n \t'extrait_de_compte' => $extrait_de_compte,\n \t'historique_payement' => $historique_payement,\n \t'statut_payement' => $statut_payement,\n \t'tableau_exception' => $tableau_exception,\n \t'recus_fiche_medical' => $recus_fiche_medical,\n \t'prix_special' => $prix_special,\n 'facture' => $facture,\n 'adresse_facturation' => $adresse_facturation\n ), \"id_auteur=$id_auteur AND id_article=$id_article\");\n\n // On fait l'update de la date_validation via sql_update plutôt que sql_updateq.\n sql_update('spip_auteurs_articles', array('date_validation' => 'NOW()'), 'id_auteur='.sql_quote($id_auteur).' AND id_article='.sql_quote($id_article));\n\t\t\t\t$contexte['message_ok'] = 'Ok, l\\'inscription est mise à jour';\n\t\t\t\t$inscrit = 'Y';\n\n /*\n * Si c'est une nouvelle inscription faite par un admin, on envoie un mail\n */\n if (_request('new') == 'oui') {\n $p = 'Bonjour,'.\"\\n\\n\".'Voici une nouvelle inscription :'.\"\\n\\n\";\n $p .= 'Sexe : '.$data['codecourtoisie'].\"\\n\";\n $p .= 'Prénom : '.$prenom.\"\\n\";\n $p .= 'Nom : '.$nom.\"\\n\";\n $p .= 'e-mail : '.$data['email'].\"\\n\";\n $p .= 'Date naissance : '.$data['date_naissance'].\"\\n\";\n $p .= 'Lieu naissance : '.$data['lieunaissance'].\"\\n\";\n \n $p .= 'Adresse : '.$data['adresse'].\"\\n\";\n $p .= 'No : '.$data['adresse_no'].\"\\n\";\n $p .= 'Code postal : '.$data['codepostal'].\"\\n\";\n $p .= 'Localité : '.$data['localite'].\"\\n\";\n $p .= 'Téléphone : '.$data['tel1'].\"\\n\";\n $p .= 'GSM : '.$data['gsm1'].\"\\n\";\n $p .= 'Fax : '.$data['fax1'].\"\\n\";\n \n $p .= \"\\n*******\\n\\n\";\n \n $p .= 'Études en cours et établissement : '.$data['etude_etablissement'].\"\\n\";\n $p .= 'Profession : '.$data['profession'].\"\\n\";\n $p .= 'Demandeur d’emploi : '.$data['demandeur_emploi'].\"\\n\";\n $p .= 'Membre d’une association : '.$data['membre_assoc'].\"\\n\";\n $p .= 'Pratique : '.$data['pratique'].\"\\n\";\n $p .= 'Formations : '.$data['formation'].\"\\n\";\n $p .= 'Facture : '.$data['facture'].\"\\n\";\n $p .= 'Adresse de facturation : '.$data['adresse_facturation'].\"\\n\";\n $p .= 'Régime alimentaire : '.$alimentation.\"\\n\";\n $p .= 'Places dans votre voiture : '.$places_voitures.\"\\n\";\n $p .= 'Brevet d’animateur : '.$brevet_animateur.\"\\n\";\n $p .= 'Remarques : '.$remarques_inscription.\"\\n\";\n \n $p .= \"\\n*******\\n\\n\";\n \n $p .= 'id_auteur : '.$id_auteur.\"\\n\";\n $p .= 'Statut : '.$statutsuivi.\"\\n\";\n $p .= 'Action : '.$titre.\"\\n\";\n $p .= 'Dates : '.$date_debut.\"\\n\";\n $p .= 'id_article : '.$id_article.\"\\n\";\n $p .= \"\\n\".'-----'.\"\\n\";\n\n\n $envoyer_mail = charger_fonction('envoyer_mail','inc');\n \n $p = $envoyer_mail(\n $GLOBALS['meta']['email_webmaster'].', [email protected]',\n $GLOBALS['meta']['nom_site'].' : nouvelle inscription '.$data['idact'].'-'.$id_auteur, \n $p,\n $GLOBALS['meta']['email_webmaster']);\n \n }\n\n\n\t\t\t\tinclude_spip('inc/headers');\n\t\t\t\tredirige_par_entete(parametre_url('?exec=articles', 'id_article', $id_article, '&'));\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\n\t//-------- desinscrire -----------\n\tif (_request('noinscr') && $id_article && $id_auteur)\n\t\tif ($GLOBALS['connect_statut']!='0minirezo' || ! autoriser('modifier', 'article', $id_article))\n\t\t\t$contexte['message_erreur'] = 'Autorisation refusée';\n\t\telse {\n\t\t\tif ($statutauteur == '6forum')\n\t\t\t\tsql_delete('spip_auteurs_articles', \"id_auteur=$id_auteur AND id_article=$id_article\");\n\t\t\telse\n\t\t\t\tsql_updateq('spip_auteurs_articles', array('inscrit'=>''), \"id_auteur=$id_auteur AND id_article=$id_article\");\n\t\t\t$inscrit = '';\n\t\t\t$contexte['message_ok'] = 'Ok, la désinscription est faite';\n\t\t\tinclude_spip('inc/headers');\n\t\t\tredirige_par_entete(parametre_url('?exec=articles', 'id_article', $id_article, '&'));\n\t\t\texit();\n\t\t}\n\n\t//--------- page + formulaire ---------\n\t\t$commencer_page = charger_fonction('commencer_page', 'inc');\n\t\techo $commencer_page('Suivi des inscriptions', '', '');\n\n\t\techo '<br />',gros_titre('Suivi des inscriptions');\n\n\t\techo debut_gauche('', true);\n\t\techo debut_boite_info(true);\n\t\techo 'Suivi des inscriptions<br /><br />Explications',\"\\n\";\n\t\techo fin_boite_info(true);\n\n\t\techo debut_droite('', true);\n\n\t\tinclude_spip('fonctions_gestion_cemea');\n\t\tinclude_spip('prive/gestion_update_db');\n\n\t\techo debut_cadre_relief('', true, '', '');\n\n\t\t$contexte['id_article'] = $id_article;\n\t\t$contexte['id_auteur'] = $id_auteur;\n\t\t$contexte['idact'] = $idact;\n\t\t$contexte['titre'] = $titre;\n\t\t$contexte['idper'] = $idper;\n\t\t$contexte['nom'] = $nom;\n\t\t$contexte['prenom'] = $prenom;\n\t\t$contexte['inscrit'] = $inscrit;\n\t\t$contexte['statutsuivi'] = $statutsuivi;\n\t\t$contexte['date_suivi'] = $date_suivi;\n\t\t$contexte['heure_suivi'] = $heure_suivi;\n\n\t\t$contexte['sante_comportement'] = $sante_comportement;\n\t\t$contexte['alimentation'] = $alimentation;\n\t\t$contexte['remarques_inscription'] = $remarques_inscription;\n\t\t$contexte['ecole'] = $ecole;\n\t\t$contexte['places_voitures'] = $places_voitures;\n\t\t$contexte['brevet_animateur'] = $brevet_animateur;\n\t\t$contexte['extrait_de_compte'] = $extrait_de_compte;\n\t\t$contexte['historique_payement'] = str_replace('.', ',', $historique_payement);\n\t\t$contexte['statut_payement'] = $statut_payement;\n\t\t$contexte['tableau_exception'] = $tableau_exception;\n\t\t$contexte['recus_fiche_medical'] = $recus_fiche_medical;\n\t\t$contexte['prix_special'] = $prix_special;\n $contexte['facture'] = $facture;\n $contexte['adresse_facturation'] = $adresse_facturation;\n\n\t\t$contexte['editable'] = ' ';\n\n\t\t$milieu = recuperer_fond(\"prive/form_suivi\", $contexte);\n\t\techo pipeline('editer_contenu_objet',array('args'=>array('type'=>'auteurs_article','contexte'=>$contexte),'data'=>$milieu));\n\n\t\techo fin_cadre_relief(true);\n\t\techo fin_gauche();\n\t\techo fin_page();\n}", "static function verifVentePro($ar){\n $datas = array('WTSCUSTOMER'=>array('pro', 'progroup', 'skdb2bcode'),\n 'WTSCARDSGROUP'=>array('OUTOFSTOCK', 'shortwtp'),\n 'WTSGROUPS'=>array('comments'),\n 'WTSORDER'=>array('ISPROORDER')\n );\n foreach($datas as $atable=>$sommeFields){\n if(!XSystem::tableExists($atable)){\n $mess .= 'La table '.$atable.' n\\'existe pas <br>';\n continue;\n }\n $mess .= 'La table '.$atable.' existe<br>';\n $ds = XDataSource::objectFactoryHelper8('BCLASS=XDSTable&SPECS='.$atable);\n foreach($sommeFields as $fn){\n if (!$ds->fieldExists($fn)){\n $mess .= '-'.$fn.' existe pas<br>';\n } else {\n $mess .= '-'.$fn.' ok<br>';\n }\n }\n }\n $rs = selectQuery('select * from SETS where STAB=\"WTSORDER\" and FIELD=\"MODEPAIEMENT\" and SOID=\"ENCOMPTE\" and SLANG=\"FR\"');\n if (!$rs || $rs->rowCount() < 1)\n $mess .= 'Ajouter le mode de paiement (MODEPAIEMENT) \"ENCOMPTE\" dans WTSORDER<br>';\n else\n $mess .= 'OK MODEPAIEMENT \"ENCOMPTE\" existe dans WTSORDER';\n return $mess;\n }", "static public function mdlCierreForzoso($tabla, $id_caja, $id_corte, $id_fecha){\t\n\ttry{ \n\t\t $item=\"fecha_salida\";\n\t\t $valor=$id_caja;\n\t\t $campo=\"id_caja\";\n\t\t $cerrado=0;\n \n\t\t $ventas=self::mdlSumaTotalVentas($tabla, $item, $valor, $cerrado, $id_fecha);\n\t\t $ventasgral=$ventas[\"sinpromo\"]>0?$ventas[\"sinpromo\"]:0;\n\t\t $ventaspromo=$ventas[\"promo\"]>0?$ventas[\"promo\"]:0;\n\n\t\t $vtaEnv = self::mdlSumTotVtasEnv($tabla, $item, $valor, $cerrado, $id_fecha);\n\t\t $ventasenvases=$vtaEnv[\"total\"]>0?$vtaEnv[\"total\"]:0;\n\n\t\t $vtaServ = self::mdlSumTotVtasServ($tabla, $item, $valor, $cerrado, $id_fecha);\n\t\t $ventasservicios=$vtaServ[\"total\"]>0?$vtaServ[\"total\"]:0;\n\n\t\t $ventasaba=self::mdlSumTotVtasOtros($tabla, $item, $valor, $cerrado, $id_fecha);\n\t\t $ventasgralaba=$ventasaba[\"sinpromo\"]>0?$ventasaba[\"sinpromo\"]:0;\n\t\t $ventaspromoaba=$ventasaba[\"promo\"]>0?$ventasaba[\"promo\"]:0;\n \n\t\t $vtaCred = self::mdlSumTotVtasCred($tabla, $item, $valor, $cerrado, $id_fecha);\n\t\t $ventascredito=$vtaCred[\"sinpromo\"]+$vtaCred[\"promo\"]>0?$vtaCred[\"sinpromo\"]+$vtaCred[\"promo\"]:0;\n\n\t\t $totingyegr=self::mdlTotalingresoegreso($campo, $valor,$cerrado, $id_fecha);\n\t\t $ingresodia=$totingyegr[\"monto_ingreso\"]>0?$totingyegr[\"monto_ingreso\"]:0;\n\t\t $egresodia=$totingyegr[\"monto_egreso\"]>0?$totingyegr[\"monto_egreso\"]:0;\n\n\t\t $totVentaDia=$ventasgral+$ventaspromo+$ventasenvases+$ventasservicios+$ventasgralaba+$ventaspromoaba+$ventascredito;\n \n\t\t\t //CERRAR REGISTRO Y COLOCAR EL ID DE CORTE DE VENTA EN EL HIST_SALIDAS\n\t\t\t $stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET cerrado=1, id_corte=$id_corte WHERE fecha_salida='\".$id_fecha.\"' AND id_caja=$id_caja AND cerrado=0\");\n\t\t\t if($stmt->execute()){\n\t\t\t \n\t\t\t\t //ACTUALIZAR TABLA CORTES CON LAS VENTAS, INGRESO Y EGRESOS\n\t\t\t\t $stmt2 = Conexion::conectar()->prepare(\"UPDATE cortes SET ventasgral=$ventasgral, ventaspromo=$ventaspromo, ventasenvases=$ventasenvases, ventasservicios=$ventasservicios, ventasabarrotes=($ventasgralaba+$ventaspromoaba), ventascredito=$ventascredito, monto_ingreso=$ingresodia, monto_egreso=$egresodia, total_venta=$totVentaDia, estatus=1 WHERE fecha_venta='\".$id_fecha.\"' AND id=$id_corte AND id_caja=$id_caja AND estatus=0\");\n\t\t\t\t \n\t\t\t\t //COLOCAR EL ID DE CORTE DE VENTA EN INGRESOS E EGRESOS\n\t\t\t\t if ($stmt2->execute()){\n\t\t\t\t\t $query = Conexion::conectar()->prepare(\"UPDATE ingresos SET id_corte=$id_corte WHERE fecha_ingreso='\".$id_fecha.\"' AND id_caja=$id_caja AND id_corte=0\");\n\t\t\t\t\t if($query->execute()){\n\t\t\t\t\t\t $query = Conexion::conectar()->prepare(\"UPDATE egresos SET id_corte=$id_corte WHERE fecha_egreso='\".$id_fecha.\"' AND id_caja=$id_caja AND id_corte=0\");\n\t\t\t\t\t\t $query->execute();\n\t\t\t\t\t }\n\t\t\t\t\t //UPDATE `hist_salidas` SET `cerrado`=0,`id_corte`=0 WHERE `fecha_salida`=2019-12-24\"\n\t\t\t\t\t //unset($_SESSION[\"abierta\"]);\n\t\t\t\t }\n\t\t\t\treturn true;\t \n\t\t\t }else{\n\t\t\t\t return false;\n\t\t\t }\n\t\t\t $query->close();\n\t\t\t $query = null;\n\t\t\t $stmt -> close();\n\t\t\t $stmt = null;\n\t\t\t $stmt2 -> close();\n\t\t\t $stmt2 = null;\n\t\t\t \n\t } catch (Exception $e) {\n\t\t echo \"Failed: \" . $e->getMessage();\n\t }\n \n }", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "function tratamentoDadosProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod,\n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos, \n $tipo_function) \n {\n // limpar o nome do produto para não correr risco de SQLI ou partes html\n $name_prod = filter_var($name_prod, FILTER_SANITIZE_STRING);\n // limpar o valor do produto p/conter apenas números\n $preco_prod = filter_var($preco_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a qntd disponivel do produto p/conter apenas números\n $qntd_prod = filter_var($qntd_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a categoria do produto p/conter apenas números\n $categoria_prod = filter_var($categoria_prod, FILTER_SANITIZE_STRING);\n // limpar o tipo de venda do produto p/conter apenas números\n $tipo_venda_prod = filter_var($tipo_venda_prod, FILTER_SANITIZE_NUMBER_INT);\n // limpar a qntd minima de venda do produto p/conter apenas números\n $qntd_min_prod = filter_var($qntd_min_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a descrição do produto para não correr risco de SQLI ou partes html\n $descricao = filter_var($descricao, FILTER_SANITIZE_STRING);\n // limpar e verificar se a data contém apenas números\n $producao = preg_replace(\"([^0-9/-])\", \"\", $producao);\n // limpar e verificar se a data contém apenas números\n $validade = preg_replace(\"([^0-9/-])\", \"\", $validade);\n\n if ($tipo_function == 1) {\n return $this->cadastrarProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod, \n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos);\n\n } elseif ($tipo_function == 2) {\n return $this->updateProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod,\n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos);\n }\n }", "public static function Najdi_kolize_pro_formular_dosud_nezavolane ($iducast, $formular, $pole_id_volanych ) {\r\n $query= \"SELECT * FROM s_typ_kolize WHERE formular='\" . $formular . \"' and valid\" ;\r\n $kolize_pole = self::Najdi_kolize ($query,$iducast) ; //to jsou vsechny pro formular\r\n \r\n //ty, co uz volal, z pole vypustit\r\n $kolize_pole_redukovane = array();\r\n \r\n foreach ($kolize_pole as $kprvek) {\r\n if ( in_array( $kprvek->id_s_typ_kolize_FK, $pole_id_volanych) ) {\r\n }\r\n else {\r\n array_push ($kolize_pole_redukovane, $kprvek ); //$kprvek->id_s_typ_kolize_FK);\r\n } \r\n }\r\n \r\n return $kolize_pole_redukovane; \r\n}", "public function ruta_absoluta()\n {\n throw new Exception( 'Definir.' );\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->e80_codage = ($this->e80_codage == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_codage\"]:$this->e80_codage);\n if($this->e80_data == \"\"){\n $this->e80_data_dia = ($this->e80_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_data_dia\"]:$this->e80_data_dia);\n $this->e80_data_mes = ($this->e80_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_data_mes\"]:$this->e80_data_mes);\n $this->e80_data_ano = ($this->e80_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_data_ano\"]:$this->e80_data_ano);\n if($this->e80_data_dia != \"\"){\n $this->e80_data = $this->e80_data_ano.\"-\".$this->e80_data_mes.\"-\".$this->e80_data_dia;\n }\n }\n if($this->e80_cancelado == \"\"){\n $this->e80_cancelado_dia = ($this->e80_cancelado_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_cancelado_dia\"]:$this->e80_cancelado_dia);\n $this->e80_cancelado_mes = ($this->e80_cancelado_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_cancelado_mes\"]:$this->e80_cancelado_mes);\n $this->e80_cancelado_ano = ($this->e80_cancelado_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_cancelado_ano\"]:$this->e80_cancelado_ano);\n if($this->e80_cancelado_dia != \"\"){\n $this->e80_cancelado = $this->e80_cancelado_ano.\"-\".$this->e80_cancelado_mes.\"-\".$this->e80_cancelado_dia;\n }\n }\n $this->e80_instit = ($this->e80_instit == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_instit\"]:$this->e80_instit);\n }else{\n $this->e80_codage = ($this->e80_codage == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e80_codage\"]:$this->e80_codage);\n }\n }", "public function smanjiCenu(){\n if($this->getGodiste() < 2010){\n $discount=$this->cenapolovnogauta*0.7;\n return $this->cenapolovnogauta=$discount;\n }\n return $this->cenapolovnogauta; \n }", "function prelasesor(){\n include(\"../include/conectar.php\"); \n $query =\"UPDATE tblsemestrepro SET asesor = '$this->asesor' WHERE tblsemestrepro.id_semestrepro = $this->semestrepy;\";\n $sql = mysqli_query($conection, $query);\n mysqli_close($conection); \n if($sql){\n\t\t\t $p =\"relacion\";\n include('../plantillas/paso.php');\n } \n else\n throw new Exception (\"Error: No es posible registrar\");\n }", "function precio($precioUnidad, $cantidad, $descuento = 0 ){ // las variables que tenemos son arbitrarias, por lo cual hay que mirar bien si ponerlas en () de la funcion\n\n\n\n$multiplicar = $precioUnidad * $cantidad;\n\n// $descuento es un porcentaje\n\n// $restar = $multiplicar - $descuento; // este descuento debe ir en % por lo cual no es lo mismo que un entero, por lo cual lo colocaremos en entero\n\n\n// si esto fuera un porcentaje entonces seria $multiplicar = $precioUnidad * $cantidad; // $porcentaje = $multiplicar - $descuento; // $solucion = $multiplicar - $porcentaje; lo cual es lo que haremos\n\n$porcentaje = $multiplicar * $descuento;\n\n$solucion = $multiplicar - $porcentaje;\nreturn $solucion;\n// si colocamos todos los datos en solo sitio o una sola linea, sin especificar es e novatos, porque hay que haber un orden\n\n}", "function Geral() {\r\n extract($GLOBALS);\r\n if ($P1==1 && $O=='I' &&f($RS_Menu,'envio_inclusao')=='S') {\r\n // Recupera a chave do trâmite de cadastramento\r\n $sql = new db_getTramiteList; $RS = $sql->getInstanceOf($dbms,$w_menu,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc');\r\n foreach($RS as $row) { \r\n $w_tramite = f($row,'sq_siw_tramite'); \r\n break; \r\n }\r\n \r\n $w_envio_inclusao = 'S';\r\n } else {\r\n $w_envio_inclusao = 'N';\r\n }\r\n if ($SG=='SRTRANSP') {\r\n include_once('transporte_gerais.php');\r\n } elseif ($SG=='SRSOLCEL') {\r\n include_once('celular_gerais.php');\r\n } else {\r\n include_once('geral_gerais.php');\r\n }\r\n}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->s158_i_codigo = ($this->s158_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_i_codigo\"]:$this->s158_i_codigo);\n $this->s158_i_profissional = ($this->s158_i_profissional == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_i_profissional\"]:$this->s158_i_profissional);\n $this->s158_i_tiporeceita = ($this->s158_i_tiporeceita == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_i_tiporeceita\"]:$this->s158_i_tiporeceita);\n $this->s158_t_prescricao = ($this->s158_t_prescricao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_t_prescricao\"]:$this->s158_t_prescricao);\n $this->s158_i_situacao = ($this->s158_i_situacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_i_situacao\"]:$this->s158_i_situacao);\n if($this->s158_d_validade == \"\"){\n $this->s158_d_validade_dia = ($this->s158_d_validade_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_d_validade_dia\"]:$this->s158_d_validade_dia);\n $this->s158_d_validade_mes = ($this->s158_d_validade_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_d_validade_mes\"]:$this->s158_d_validade_mes);\n $this->s158_d_validade_ano = ($this->s158_d_validade_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_d_validade_ano\"]:$this->s158_d_validade_ano);\n if($this->s158_d_validade_dia != \"\"){\n $this->s158_d_validade = $this->s158_d_validade_ano.\"-\".$this->s158_d_validade_mes.\"-\".$this->s158_d_validade_dia;\n }\n }\n $this->s158_i_login = ($this->s158_i_login == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_i_login\"]:$this->s158_i_login);\n if($this->s158_d_data == \"\"){\n $this->s158_d_data_dia = ($this->s158_d_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_d_data_dia\"]:$this->s158_d_data_dia);\n $this->s158_d_data_mes = ($this->s158_d_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_d_data_mes\"]:$this->s158_d_data_mes);\n $this->s158_d_data_ano = ($this->s158_d_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_d_data_ano\"]:$this->s158_d_data_ano);\n if($this->s158_d_data_dia != \"\"){\n $this->s158_d_data = $this->s158_d_data_ano.\"-\".$this->s158_d_data_mes.\"-\".$this->s158_d_data_dia;\n }\n }\n $this->s158_c_hora = ($this->s158_c_hora == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_c_hora\"]:$this->s158_c_hora);\n }else{\n $this->s158_i_codigo = ($this->s158_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s158_i_codigo\"]:$this->s158_i_codigo);\n }\n }", "public function codeRetrait()\n {\n $code_secret = $this->utils->securite_xss($_POST['codesecret']);\n $fkcarte = $this->utils->securite_xss($_POST['fkcarte']);\n $frais = $this->compteModel->verifCodeRetrait($fkcarte, $code_secret);\n if ($frais == 1) echo 1;\n elseif ($frais == 0) echo 0;\n else echo -2;\n }", "private function Zapis_jednu_kolizi() { \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n//echo \"<hr><br>* v Zapis_jednu_kolizi:\";\r\n\r\n //vyberu kolizi z uc_kolize_table pokud jiz existuje\r\n $query= \"SELECT * FROM uc_kolize_table WHERE id_ucastnik =\" . $this->id_ucastnik . \" and id_s_typ_kolize_FK=\" . $this->id_s_typ_kolize_FK ;\r\n //echo \"<br>*dotaz v Zapis_jednu_kolizi: \" . $query;\r\n $data = $dbh->prepare($query)->execute();\r\n //var_dump($data);\r\n \r\n if ($data) {\r\n $zaznam_kolize = $data->fetch() ; //vemu prvni (je predpoklad ze je jen jedna)\r\n if ($zaznam_kolize) {\r\n //echo \"<br>kolize je - budu prepisovat\"; //budu prepisovat\r\n $query1 = \"UPDATE uc_kolize_table set \" .\r\n \"revidovano='\" . $this->revidovano . \"', \" .\r\n \"revidovano_pozn='\" . $this->revidovano_pozn . \"', \" .\r\n \"valid=1 \" . \r\n \"WHERE id_uc_kolize_table =\" . $zaznam_kolize['id_uc_kolize_table'];\r\n //echo \"<br>\" . $query1; \r\n $data1 = $dbh->prepare($query1)->execute(); \r\n \r\n }\r\n else {\r\n //echo \"<br>kolize neni - budu vkladat\"; //budu vkladat\r\n $query1 = \"INSERT uc_kolize_table set \" . \r\n \"id_ucastnik= \" . $this->id_ucastnik . \", \" .\r\n \"id_s_typ_kolize_FK=\" . $this->id_s_typ_kolize_FK . \", \" .\r\n \"revidovano='\" . $this->revidovano . \"', \" .\r\n \"revidovano_pozn='\" . $this->revidovano_pozn . \"', \" .\r\n \"valid=1, date_vzniku=now() \" ;\r\n //echo \"<br>\" . $query1; \r\n $data1 = $dbh->prepare($query1)->execute();\r\n \r\n }\r\n } \r\n\r\n//echo \"<hr>\";\r\n}", "public static function Znevalidni_kolize_ucastnika_vsechny($iducast) {\r\n//echo \"<hr><br>*Znevalidnuji vsechny kolize ucastnika , formular=\" . $formular;\r\n \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n //vyberu vsechny ulozene kolize z tabulky uc_kolize_table\r\n $query= \"SELECT * FROM uc_kolize_table \" .\r\n \"WHERE id_ucastnik=\" . $iducast . \" and uc_kolize_table.valid\" ;\r\n\r\n //echo \"<br>*dotaz na kolize v Znevalidni_kolize_ucastnika: \" . $query;\r\n \r\n $sth = $dbh->prepare($query);\r\n $succ = $sth->execute(); \r\n while($zaznam_kolize = $sth->fetch(PDO::FETCH_ASSOC)) {\r\n //echo \"<br>*Znevalidnuji kolizi: \" . $zaznam_kolize[id_uc_kolize_table];\r\n \r\n $query1 = \"UPDATE uc_kolize_table SET \" .\r\n \"valid=0 WHERE uc_kolize_table.id_uc_kolize_table=\" . $zaznam_kolize['id_uc_kolize_table'] ;\r\n $data1= $dbh->prepare($query1)->execute(); \r\n }\r\n \r\n//echo \"<hr>\";\r\n}", "public function voirsolde()\n {\n echo \"le solde du compte est de $this->solde \";\n }", "function suppr_evenement($id_evenement, $id_agenda, $date_suppr=\"\")\r\n{\r\n\t////\tInit\r\n\tglobal $objet, $AGENDAS_AFFICHES;\r\n\t$evt_tmp = db_ligne(\"SELECT * FROM gt_agenda_evenement WHERE id_evenement='\".intval($id_evenement).\"'\");\r\n\t$droit_acces = droit_acces($objet[\"evenement\"],$id_evenement,false);\r\n\t$droit_acces_agenda = @$AGENDAS_AFFICHES[$id_agenda][\"droit\"];\r\n\t////\tSUPPR A UNE DATE (créé \"period_date_exception\") / SUPPR DANS TOUS LES AGENDAS / SUPPR DANS UN AGENDA\r\n\tif($id_agenda==\"tous\" && $droit_acces==3 && $date_suppr!=\"\")\t\t{ db_query(\"UPDATE gt_agenda_evenement SET period_date_exception='\".trim($evt_tmp[\"period_date_exception\"].\"@@\".$date_suppr,\"@@\").\"' WHERE id_evenement=\".db_format($id_evenement)); }\r\n\telseif($id_agenda==\"tous\" && $droit_acces==3)\t\t\t\t\t\t{ db_query(\"DELETE FROM gt_agenda_jointure_evenement WHERE id_evenement=\".db_format($id_evenement)); }\r\n\telseif($id_agenda>0 && ($droit_acces==3 || $droit_acces_agenda>=2))\t{ db_query(\"DELETE FROM gt_agenda_jointure_evenement WHERE id_evenement=\".db_format($id_evenement).\" AND id_agenda=\".db_format($id_agenda)); }\r\n\t////\tON SUPPRIME L'ÉVÉNEMENT S'IL N'EST AFFECTÉ À AUCUN AGENDA + FICHIERS JOINTS\r\n\tif(db_valeur(\"SELECT count(*) FROM gt_agenda_jointure_evenement WHERE id_evenement='\".intval($id_evenement).\"'\")==0){\r\n\t\tglobal $objet;\r\n\t\tsuppr_objet($objet[\"evenement\"], $id_evenement);\r\n\t}\r\n}", "public function geraClasseControle(){\n # Abre o template da classe Controle e armazena conteudo do modelo\t\t\n $modelo = Util::getConteudoTemplate('class.Modelo.Controle.tpl');\n\n # Abre o template dos metodos de cadastros e armazena conteudo do modelo\n $modeloCAD = Util::getConteudoTemplate('metodoCadastra.tpl');\n $modeloExclui = Util::getConteudoTemplate('metodoExclui.tpl');\n $modeloSelecionar = Util::getConteudoTemplate('metodoSeleciona.tpl');\n $modeloGetAll = Util::getConteudoTemplate('metodoGetAll.tpl'); \n $modeloConsultar = Util::getConteudoTemplate('metodoConsulta.tpl');\n $modeloAlterar = Util::getConteudoTemplate('metodoAltera.tpl');\n\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n\n # Varre a estrutura das tabelas\n $aRequire = $aCadastro = $aExclui = $aSelecionar = $aGetAll = $aAlterar = $aConsultar = array();\n $copiaModelo = $modelo;\n //print_r($aBanco);exit;\n foreach($aBanco as $aTabela){\n $aPKDoc = $aPK = array(); \n foreach($aTabela as $oCampo){\n if((string)$oCampo->CHAVE == '1'){\n $aPKDoc[] = \"\\t * @param integer \\$\".(string)$oCampo->NOME;\n $aPK[] = \"\\$\".(string)$oCampo->NOME;\n }\n }\n\n # Montar a Lista de DOC do metodo selecionar\n $listaPKDoc = join(\"\\n\", $aPKDoc);\n $listaPK = join(\",\", $aPK);\n\n # Recupera o nome da tabela e gera os valores a serem gerados\n $nomeClasse = ucfirst($this->getCamelMode($aTabela['NOME']));\n $copiaModeloCAD = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloCAD);\n $copiaModeloExclui = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloExclui);\n $copiaModeloSelecionar = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloSelecionar);\n $copiaModeloGetAll = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloGetAll);\n $copiaModeloAlterar = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloAlterar);\n $copiaModeloConsultar = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloConsultar);\n\n $montaObjeto = $this->retornaObjetosMontados($aTabela['NOME']);\n $montaObjetoBD = $this->retornaObjetosBDMontados($aTabela['NOME']);\n\n $copiaModeloCAD = str_replace('%%MONTA_OBJETO%%', $montaObjeto, $copiaModeloCAD);\n $copiaModeloCAD = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloCAD);\n $copiaModeloExclui = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloExclui);\n $copiaModeloSelecionar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloSelecionar);\n $copiaModeloSelecionar = str_replace('%%DOC_LISTA_PK%%', $listaPKDoc, $copiaModeloSelecionar);\n $copiaModeloSelecionar = str_replace('%%LISTA_PK%%', \t$listaPK, $copiaModeloSelecionar);\n $copiaModeloGetAll = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloGetAll);\n $copiaModeloAlterar = str_replace('%%MONTA_OBJETO%%', $montaObjeto, $copiaModeloAlterar);\n $copiaModeloAlterar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloAlterar);\n $copiaModeloConsultar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloConsultar);\n\n $aRequire[] = \"require_once(dirname(__FILE__).'/bd/class.$nomeClasse\".\"BD.php');\";\n $aCadastro[] = $copiaModeloCAD;\n $aExclui[] = $copiaModeloExclui;\n $aSelecionar[] = $copiaModeloSelecionar;\n $aGetAll[] = $copiaModeloGetAll;\n $aAlterar[] = $copiaModeloAlterar;\n $aConsultar[] = $copiaModeloConsultar;\n }\n\n # Monta demais valores a serem substituidos\n $listaRequire = join(\"\\n\", $aRequire);\n $listaCadastro = join(\"\\n\\n\", $aCadastro);\n $listaExclui = join(\"\\n\\n\", $aExclui);\n $listaSelecionar = join(\"\\n\\n\", $aSelecionar);\n $listaGetAll = join(\"\\n\\n\", $aGetAll);\n $listaAlterar = join(\"\\n\\n\", $aAlterar);\n //print \"<pre>\"; print_r($aAlterar); print \"</pre>\"; \n //print \"<pre>\"; print_r($aConsultar); print \"</pre>\"; \n $listaConsultar = join(\"\\n\\n\", $aConsultar);\n\n # Substitui todas os parametros pelas variaveis ja processadas\n $copiaModelo = str_replace('%%LISTA_REQUIRE%%',\t\t $listaRequire, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_CADASTRA%%',\t $listaCadastro, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_EXCLUI%%',\t $listaExclui, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_SELECIONAR%%',\t $listaSelecionar, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_CARREGAR_COLECAO%%', $listaGetAll, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_ALTERA%%',\t $listaAlterar, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_CONSULTA%%',\t $listaConsultar, $copiaModelo);\n\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\n if(!file_exists($dir)) mkdir($dir);\n\n $fp = fopen(\"$dir/class.Controle.php\",\"w\");\n fputs($fp,$copiaModelo);\n\n # ============ Adicionando Classes de core/Config =========\n $modeloConfig = Util::getConteudoTemplate(\"Modelo.Config.\".$aBanco['SGBD'].\".tpl\");\n $modeloConfig = str_replace('%%DATABASE%%', $this->projeto, $modeloConfig);\n \n $fpConfig = fopen(\"$dir/core/config.ini\",\"w\"); \t\n fputs($fpConfig, $modeloConfig); \n fclose($fpConfig);\n\n copy(dirname(__FILE__).\"/core/class.Seguranca.php\", \"$dir/class.Seguranca.php\");\n copy(dirname(__FILE__).\"/class.Util.php\",\t \"$dir/core/class.Util.php\");\n copy(dirname(__FILE__).\"/class.Conexao.php\", \"$dir/core/class.Conexao.php\");\n \n return true;\n }", "function personnaliser_raccourcis(&$ruleset) {\n\tif ($ruleset) {\n\t\tif (isset($GLOBALS['debut_intertitre']) and $rule = $ruleset->getRule('intertitres')) {\n\t\t\t$rule->replace[0] = preg_replace(',<[^>]*>,Uims', $GLOBALS['debut_intertitre'], $rule->replace[0]);\n\t\t\t$rule->replace[1] = preg_replace(',<[^>]*>,Uims', $GLOBALS['fin_intertitre'], $rule->replace[1]);\n\t\t\t$ruleset->addRules(array('intertitres' => $rule));\n\t\t}\n\t\tif (isset($GLOBALS['debut_gras']) and $rule = $ruleset->getRule('gras')) {\n\t\t\t$rule->replace[0] = preg_replace(',<[^>]*>,Uims', $GLOBALS['debut_gras'], $rule->replace[0]);\n\t\t\t$rule->replace[1] = preg_replace(',<[^>]*>,Uims', $GLOBALS['fin_gras'], $rule->replace[1]);\n\t\t\t$ruleset->addRules(array('gras' => $rule));\n\t\t}\n\t\tif (isset($GLOBALS['debut_italique']) and $rule = $ruleset->getRule('italiques')) {\n\t\t\t$rule->replace[0] = preg_replace(',<[^>]*>,Uims', $GLOBALS['debut_italique'], $rule->replace[0]);\n\t\t\t$rule->replace[1] = preg_replace(',<[^>]*>,Uims', $GLOBALS['fin_italique'], $rule->replace[1]);\n\t\t\t$ruleset->addRules(array('italiques' => $rule));\n\t\t}\n\t\tif (isset($GLOBALS['ligne_horizontale']) and $rule = $ruleset->getRule('ligne-horizontale')) {\n\t\t\t$rule->replace = preg_replace(',<[^>]*>,Uims', $GLOBALS['ligne_horizontale'], $rule->replace);\n\t\t\t$ruleset->addRules(array('ligne-horizontale' => $rule));\n\t\t}\n\t\tif (isset($GLOBALS['toujours_paragrapher']) and !$GLOBALS['toujours_paragrapher']\n\t\t\tand $rule = $ruleset->getRule('toujours-paragrapher')\n\t\t) {\n\t\t\t$rule->disabled = true;\n\t\t\t$ruleset->addRules(array('toujours-paragrapher' => $rule));\n\t\t}\n\t}\n\n\t// retourner une signature de l'etat de la fonction, pour la mise en cache\n\treturn implode(\"/\",\n\t\tarray(\n\t\t\tisset($GLOBALS['debut_intertitre']) ? $GLOBALS['debut_intertitre'] : \"\",\n\t\t\tisset($GLOBALS['debut_gras']) ? $GLOBALS['debut_gras'] : \"\",\n\t\t\tisset($GLOBALS['debut_italique']) ? $GLOBALS['debut_italique'] : \"\",\n\t\t\tisset($GLOBALS['ligne_horizontale']) ? $GLOBALS['ligne_horizontale'] : \"\",\n\t\t\tisset($GLOBALS['toujours_paragrapher']) ? $GLOBALS['toujours_paragrapher'] : 1,\n\t\t)\n\t);\n}", "function SolicitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_SOLCON_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function cercaPrenotazioni() {\r\n $fPrenotazioni = USingleton::getInstance('FPrenotazione');\r\n return $fPrenotazioni->cercaPrenotazioniClinica($this->_partitaIVA);\r\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->k142_sequencial = ($this->k142_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_sequencial\"]:$this->k142_sequencial);\n $this->k142_idret = ($this->k142_idret == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_idret\"]:$this->k142_idret);\n $this->k142_processo = ($this->k142_processo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_processo\"]:$this->k142_processo);\n if($this->k142_dataprocesso == \"\"){\n $this->k142_dataprocesso_dia = ($this->k142_dataprocesso_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_dataprocesso_dia\"]:$this->k142_dataprocesso_dia);\n $this->k142_dataprocesso_mes = ($this->k142_dataprocesso_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_dataprocesso_mes\"]:$this->k142_dataprocesso_mes);\n $this->k142_dataprocesso_ano = ($this->k142_dataprocesso_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_dataprocesso_ano\"]:$this->k142_dataprocesso_ano);\n if($this->k142_dataprocesso_dia != \"\"){\n $this->k142_dataprocesso = $this->k142_dataprocesso_ano.\"-\".$this->k142_dataprocesso_mes.\"-\".$this->k142_dataprocesso_dia;\n }\n }\n $this->k142_titular = ($this->k142_titular == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_titular\"]:$this->k142_titular);\n $this->k142_observacao = ($this->k142_observacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_observacao\"]:$this->k142_observacao);\n }else{\n $this->k142_sequencial = ($this->k142_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k142_sequencial\"]:$this->k142_sequencial);\n }\n }", "private function _agrergarLineaPractica($ln_titulo, $ln_desc,$id_facultad,$id_programa, $id_usu_cp,$id_conf_linea,$id_linea = NULL,$id_empre = null) {\n // consultar la linea de practica del coordiandor\n /*$_objUsuarios = new cprogresa\\DAO_Usuarios();\n $_objUsuarios->set_id_usu_cp($id_usu_cp);\n $_objUsuarios->consultar();\n */\n //print_r($_POST);die();\n $_objLP = new DAO_LineasPractica();\n if (!empty($id_linea)) {\n $_objLP->set_id_linea($id_linea);\n }\n if (!empty($id_empre)) {\n $_objLP->set_id_emp($id_empre);\n }\n $_objLP->set_id_usu_cp($id_usu_cp);\n $_objLP->set_ln_titulo($ln_titulo);\n $_objLP->set_ln_desc($ln_desc);\n $_objLP->set_id_conf_linea($id_conf_linea);\n $_objLP->set_id_facultad(is_array($id_facultad) ? implode(\",\",$id_facultad) : $id_facultad);\n $_objLP->set_id_programa(is_array($id_programa) ? implode(\",\",$id_programa) : $id_programa );\n if (!$_objLP->guardar()) {\n $this->_mensaje = $_objLP->getMysqlError();\n throw new ControllerException(\"No se pudo crear una línea de practica. \", 0);\n }\n\n // almacenar configuracion generada por el admin de linea\n $this->_guardarLog($_SESSION['id_usu_cent'], ['accion' => 'agregar seguimiento', 'metodo' => get_class() . ':_agregarConfiguracionLineaPractica', 'parametros' => ['ln_titulo'=>$ln_titulo,'ln_desc'=>$ln_desc,'id_facultad'=>$id_facultad,'id_programa'=>$id_programa,'id_usu_cp'=>$id_usu_cp,'id_linea'=>$id_linea,'id_empre'=>$id_empre]]);\n $this->_ok = 1;\n $this->_mensaje = \"Se ha agregado una linea exitosamente\";\n return $_objLP->getArray();\n }", "function Comprobar_codespacio()\n{\n\t$correcto = true;\n\t//si se cumple la condicion\n\tif (strlen($this->CODESPACIO)<3)\n\t{\n\t\t$error = array();\n\t\t\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"CODESPACIO\");\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"00003\");\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"Valor de atributo no numérico demasiado corto\");\n\n\t\t//guarda un mensaje de error\n\t\tarray_push($this->erroresdatos, $error);\n\t\t$correcto = false;\n\t}\n\t//si se cumple la condicion\n\tif (strlen($this->CODESPACIO)>10)\n\t{\n\t\t$error = array();\n\t\t\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"CODESPACIO\");\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"00002\");\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"Valor de atributo demasiado largo\");\n\n\t\t//guarda un mensaje de error\n\t\tarray_push($this->erroresdatos, $error);\n\t\t$correcto = false;\n\t}\n\t//si se cumple la condicion\n\tif (!preg_match(\"/^[A-Za-zñáéíóúÑÁÉÍÓÚüÜ\\-0-9]+$/\",$this->CODESPACIO)){\n\t\t$error = array();\n\t\t\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"CODESPACIO\");\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"00040\");\n\t\t//guarda un mensaje de error\n\t\tarray_push($error, \"Solo están permitidas alfabéticos, números y el “-”\");\n\n\t\t//guarda un mensaje de error\n\t\tarray_push($this->erroresdatos, $error);\n\t\t$correcto = false;\n\t}\n\t\n\treturn $correcto; //se devuelve el resultado\n}", "function sevenconcepts_formulaire_charger($flux){\n $form=$flux['args']['form'];\n if($form=='inscription'){\n include_spip('cextras_pipelines');\n $champs_extras=champs_extras_objet(table_objet_sql('auteur'));\n foreach($champs_extras as $value){\n $flux['data'][$value['options']['nom']]=''; \n if(isset($value['options']['obligatoire']))$flux['data']['obligatoire'][$value['options']['nom']]='on';\n }\n $flux['data']['nom_inscription']='';\n $flux['data']['mail_inscription']='';\n }\n \n return $flux;\n}", "public function StampaCarrello() {\n\t\t$somma=0;\n\t\tif (count($this->contenuto) > 0) \n\t\t{ ?>\n\n\t\t\t<table>\n\t\t\t\t<tbody>\n\t\t\t\t\t<?\n\t\t\t\t\t?><tr >\n\t\t\t\t\t\t\t<th>Prodotto</th>\n\t\t\t\t\t\t\t<th>Quantità</th>\n\t\t\t\t\t\t</tr><?\n\n\t\t\t\t\t\tfor ($i=0;$i<count($this->contenuto);$i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td><?= $this->contenuto[$i]->getNome() ;?></br> \n\t\t\t\t\t\t\t\t<td><?= $this->quantita[$i] ,' Kg';?></br> <?\n\t\t\t\t\t\t\t\t$somma=$somma+($this->contenuto[$i]->getPrezzo()*$this->quantita[$i]);?></br> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<p> Totale:<?=$somma, ' Euro' ?></p>\n\t\t\t<form method=\"post\" action=\"index.php?page=utente&subpage=home&somma=<?= $somma ?>\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"cmd\" value=\"completaOrdine\"/>\n\t\t\t\t\t\t<label for=\"date\">Inserisci la data di consegna</label>\n\t\t\t\t\t\t<input type=\"date\" name=\"date\" value=\"2000-01-01\"/>\n\t\t\t\t\t\t<button type=\"submit\">Conferma ordine </button>\n \t\t\t</form>\n\n\t<?php } \n\telse \n\t\t{ \n\t\t\t?><p class=\"messaggio\"> Nessun prodotto inserito </p><?\n\t\t} \n\t}", "final function velcom(){\n }", "public function testKojiPreskacem()\n {\n $this->markTestSkipped(\"ovaj test je namjerno prekocen\");\n }", "public function imprimeCaracteristicas()\n\t{\n\t\techo \"<br />--------------------------------\\n\";\n\t\techo \"<br />Juego para: \".$this->consola.\"\\n\";\n\t\t//ejecutamos la funciona \"imprimeCaracteristicas()\" de la clase\n\t\t// extendida \"soporte\"\n\t\tparent::imprimeCaracteristicas();\n\t\techo \"<br />\".$this->devolverJugadoresPosibles().\"\\n\";\n\t\techo \"<br />--------------------------------\\n\";\n\t}", "public function actionSubsidio($capacidadPago, $costoVivienda, $idUnidadFamiliar, $ingresoFamiliar) {\n $SM = SalarioMinimo::model()->findByAttributes(array('es_activo' => 'true'))->valor_salario;\n\n \n// $SM = str_replace('.', '', $SM); // REEMPLAZA EL (.) 9.000.00 EL UN '' QUEDANDO 9000,00\n// $SM2 = str_replace('.', '', $SM2); // REEMPLAZA EL (.) 9.000.00 EL UN '' QUEDANDO 9000,00\n// $SM = (float) str_replace(',', '.', $SM); // REEMPLAZA EL (,) 9.000.00 EL UN '' QUEDANDO 9000.00\n $SM = (float) $SM; // REEMPLAZA EL (,) 9.000.00 EL UN '' QUEDANDO 9000.00\n// $SM2 = (float) str_replace(',', '.', $SM2); // REEMPLAZA EL (,) 9.000.00 EL UN '' QUEDANDO 9000.00\n //\n\n // INICIO DE LAS CONDICIONES PARA VERIFICARA SI APLICA O NO SUBSIDIO a > b a mayor a be\n if ($capacidadPago >= $costoVivienda) {\n // EN CASO QUE LA CAPACIDAD DE PAGO SEA MAYOR QUE EL COSTO DE LA VIVIENDA\n return '0';\n } else if ($ingresoFamiliar > 2 * $SM) {\n // EN CASO QUE EL INGRESO FAMILIAR SEA MAYOR A 2 SUELDOS MINIMOS \n return '0';\n } else if ($ingresoFamiliar < $SM) {\n // EN CASO QUE EL INGRESO FAMILIAR SEA MENOR AL UN (1) MINIMOS : 25%\n return '0';\n } else {\n // EN CASO QUE NO APLICA NINGUNAS DE LA LAS ANTERIORES\n // BUSQUEDA QUE SE EJECUTYA PARA LISTAR TODOS LOS INTEGRANTES REGISTRADOS DEL BENEFICIARIO\n// $criteria = new CDbCriteria;\n// $criteria->addCondition('t.unidad_familiar_id = :unidad_familiar_id');\n// $criteria->params = array(':unidad_familiar_id' => $idUnidadFamiliar);\n// $grupoFamiliar = GrupoFamiliar::model()->findAll($criteria);\n//\n// // DEFINICION DE VARIABLES. UTILIES PARA DETERMINAR EL TIPO DE SUBSIDO A APLICAR\n// $mayorEdad = 0;\n// $discapacidad = 0;\n// $menoresEdad = 0;\n// $conyugue = 0;\n//\n// // INICIO BUCLE DE LA COSULTA DE ($grupoFamiliar)\n// foreach ($grupoFamiliar AS $value) {\n// // CONSULTA DEL LA FECHA DE NACIMIENTO. CONSULTA ORIGEN DE ORACLE TABLE PERSONA \n// $fechaNac = ConsultaOracle::setPersona(\"TO_CHAR(FECHA_NACIMIENTO, 'DD/MM/YYYY' ) AS fecha\", $value->persona_id);\n// // CALCULO QUE GENERA LA EDDA A PARTIR DE LA FECHA DE NACIMIENTO\n// $edad = Generico::edad($fechaNac['FECHA']);\n//\n// // SWITCH QUE EVALUA LA EDAD DE CADA INTEGRANTE DEL GRUPO FAMILIAR\n// switch ($edad) {\n// case ($edad >= 60): //EN CASO QUE SEA > 60 AUTOINCREMENTE VARIABLE $mayorEdad , CON FIN DE DETERMINAR LA CANT DE PERSONA MAYORES DE 60 AÑOS\n// $mayorEdad++;\n// break;\n// case ($edad < 18 && $value->gen_parentesco_id == 158):\n// //EN CASO QUE SEA < 18 Y CON PARENTESCO DE HIJO. AUTOINCREMENTE VARIABLE $menoresEdad , CON FIN DE DETERMINAR LA CANT DE HIJOS MENORES DE EDAD POSEE EL BENEFICIARIO\n// $menoresEdad++;\n// break;\n// }\n//\n// if ($value->tipo_sujeto_atencion == 231)// CONDICION QUE DETERMINA SI EL INTEGRANTE POSEE UNA DISCAPACIDAD, AUTOINCREMENTO DE LA VARIABLE $discapacidad\n// $discapacidad++;\n// if ($value->gen_parentesco_id == 155 || $value->gen_parentesco_id == 161) // CONDICION QUE DETERMINA EL PARENTESCO (CONYUGE, CONCUBINATO), AUTOINCREMENTO DE LA VARIABLE $conyugue\n// $conyugue++;\n// } // FIN DEL BUCLE DE LOS INTEGRANTES DEL GRUPO FAMILIAR DEL BENEFICIARIO\n// // BOOLEAN QUE DETERMINA SI APLICA SUBSIDO DE ACUERDO A CONDICIONES PREVIAS -- TRUE= APLICA, FALSE= NO APLICA\n// if ($mayorEdad >= 2 || $discapacidad >= 1 || $menoresEdad > 3) {\n// $procesa = true;\n// } else if ($conyugue == 0 && $menoresEdad > 2) {\n// $procesa = true;\n// } else {\n// $procesa = false;\n// }\n\n // INICIO DE LAS CONDICIONES PARA DETERMINAR LA CANTIDAD DEL PORCENTAJE QUE APLICARA EL SUBSIDIO \n// if ($procesa) { // TRUE\n $ingresoFPor = $ingresoFamiliar / $SM; // CALCULO QUE DETERMINA LA CANTIDAD DE SUELDOS MINIMO QUE POSSE EL GRUPO FAMILIAR\n $valor = round($ingresoFPor, 1); // RFEDONDEA A UN DECIAMLES LA VARIABLE $ingresoFPor EXSMPLE (1.2)\n if ($valor >= 1 || $valor <= 2) { // CONDICIONAL QUE DETERMINA SI ESTA ENTRE EL RANGO DE 1 - 2 PARA QUE APLIQUE EL SUBSIDIO\n $Subsidio = TablaSubsidio::model()->findByAttributes(array('ingreso_familiar_sm' => $valor)); // BUSQUEDA DEL PORCENTAJE DE SUBSIDIO A APPLICAR SEGUN RESULTADO DE VARIABLE $valor\n return $Subsidio->subsidio_porcentaje; // RETURN DEL VALOR EN TABLA subsidio_porcentaje SEGUN COINCIDENCIA\n } else {\n return '0'; // RETUNRN 0 EN CASO QUE SEA MAYOR A 2.00 \n }\n// } else { // FALSE\n// return '0';\n// }\n }\n }", "function pintaEstructura($idStructure,$idStructuraSpec) {\n\n global $idAnalyst;\n global $controllerTaxonomies;\n global $controllerAnalyst;\n \n global $answer;\n /*@var $answer xajaxResponse*/\n global $structursController;\n /*@var $structursController StructuresController*/\n global $controllerQuestions;\n /*@var $controllerQuestions QuestionsController*/\n \n $conteo = 0;\n $listText = $controllerQuestions->getListSOQI($idStructuraSpec);\n $_SESSION[\"SV\"] = $idStructure;\n $list = $structursController->getItemStructure($idStructure);\n $nameStructure = $structursController->getStructure($idStructure)->getName();\n $list2 = array();\n $list3 = array();\n for ($i = 0; $i < count($list); $i++) {\n $list2[] = $list[$i]->getvalue();\n $list3[] = \"\";\n }\n $_SESSION[\"idDiagramASM\"] = \"...\";\n $_SESSION[\"intantiateStructus\"] = $list3;\n $_SESSION[\"elementsSQ\"] = $list2;\n $_SESSION[\"idStructura\"] = $idStructure;\n \n $listTaxonomies = getListTaxonomiesUser();\n\n //$answer->addAlert(\"gola\");\n $elements = $_SESSION[\"elementsSQ\"];\n $customized = \"<h3>customized by each analyst</h3>\";\n $text = \"<center><h3>Structure $nameStructure </h3><hr><br><table>\";\n for ($i = 0; $i < count($elements); $i++) {\n $word = $elements[$i];\n $elementsASM = ARRAY(\"Activity\", \"Task\", \"Agent\", \"Businness Rule\");\n $elementsASM2 = ARRAY(\"Activity\" . \"-\" . $i, \"Task\" . \"-\" . $i, \"Agent\" . \"-\" . $i, \"Businness Rule\" . \"-\" . $i);\n if ($word == \"ASM\") {\n $elem = select($elementsASM2, $elementsASM, \"setSelectASM(this.id,value)\", \"\");\n \n } else {\n if ($word == \"TEXT\") {\n $elem = $listText[$conteo];\n $list = $_SESSION[\"intantiateStructus\"];\n $list[$i] = $elem;\n $_SESSION[\"intantiateStructus\"] = $list;\n $conteo++;\n } else {\n if ($word == \"MAIN AGENT\") {\n $elem = select($elementsASM2, $elementsASM, \"setSelectASM(this.id,value)\", \"\");\n \n } else {\n if ($word == \"TAXONOMY\") {\n $idTaxonomy = array();\n $list2 = array();\n for ($j = 0; $j < count($listTaxonomies); $j++) {\n $word2 = $listTaxonomies[$j]->getId_taxonomy();\n $idTaxonomy[] = $word2;\n $list2[] = $listTaxonomies[$j]->getName();\n }\n $elem = select($idTaxonomy, $list2, \"setSelectTaxonomy($i,value)\", \"\");\n \n } \n }\n }\n }\n $cont = $i + 1;\n $text.= \"<tr><td>$cont $word</td><td id=td>$elem</td></tr>\";\n }\n $text .= \"</table>\";\n// paintDiagramASM();\n// paintSetOfQuestion();\n $div = \"Structure\";\n $answer->addAssign($div, \"innerHTML\", $text);\n return $answer;\n}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed100_i_codigo = ($this->ed100_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_codigo\"]:$this->ed100_i_codigo);\n $this->ed100_i_historicompsfora = ($this->ed100_i_historicompsfora == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_historicompsfora\"]:$this->ed100_i_historicompsfora);\n $this->ed100_i_disciplina = ($this->ed100_i_disciplina == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_disciplina\"]:$this->ed100_i_disciplina);\n $this->ed100_i_justificativa = ($this->ed100_i_justificativa == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_justificativa\"]:$this->ed100_i_justificativa);\n $this->ed100_i_qtdch = ($this->ed100_i_qtdch == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_qtdch\"]:$this->ed100_i_qtdch);\n $this->ed100_c_resultadofinal = ($this->ed100_c_resultadofinal == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_c_resultadofinal\"]:$this->ed100_c_resultadofinal);\n $this->ed100_t_resultobtido = ($this->ed100_t_resultobtido == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_t_resultobtido\"]:$this->ed100_t_resultobtido);\n $this->ed100_c_situacao = ($this->ed100_c_situacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_c_situacao\"]:$this->ed100_c_situacao);\n $this->ed100_c_tiporesultado = ($this->ed100_c_tiporesultado == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_c_tiporesultado\"]:$this->ed100_c_tiporesultado);\n $this->ed100_i_ordenacao = ($this->ed100_i_ordenacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_ordenacao\"]:$this->ed100_i_ordenacao);\n $this->ed100_c_termofinal = ($this->ed100_c_termofinal == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_c_termofinal\"]:$this->ed100_c_termofinal);\n $this->ed100_opcional = ($this->ed100_opcional == \"f\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_opcional\"]:$this->ed100_opcional);\n $this->ed100_basecomum = ($this->ed100_basecomum == \"f\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_basecomum\"]:$this->ed100_basecomum);\n }else{\n $this->ed100_i_codigo = ($this->ed100_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed100_i_codigo\"]:$this->ed100_i_codigo);\n }\n }", "function calculaPotenciaSimples($idSim, $paramTensao, $paramCorren, $sentido, $param){\n /*\n * $sentido = ENTRADA OU SAIDA, $param = R,S,T\n */\n\n // CRIA UM OBJETO DE DA CLASSE DE CONEXAO\n $connBase = new EficazDB;\n\n\n // Fecha a conexao\n $connBase->close();\n\n return $retorno;\n}", "function formulaires_editer_composition_objet_charger($type,$id){\n\t$valeurs = array();\n\t$table_objet_sql = table_objet_sql($type);\n\t$id_table_objet = id_table_objet($type);\n\t$valeurs[$id_table_objet] = intval($id);\n\n\t$row = sql_fetsel('composition,composition_lock',$table_objet_sql,\"$id_table_objet=\".intval($id));\n\tif (!autoriser('styliser',$type,$id,NULL,array('row'=>$row))){\n\t\t$valeurs['editable'] = false;\n\t}\n\telse {\n\n\t\tif ($type=='rubrique'){\n\t\t\t$config_accueil = true;\n\t\t\tif (isset($GLOBALS['meta']['compositions'])){\n\t\t\t\t$config = unserialize($GLOBALS['meta']['compositions']);\n\t\t\t\t$config_accueil = $config['utiliser_article_accueil'] != 'non';\n\t\t\t}\n\t\t\tif ($config_accueil){\n\t\t\t\t$valeurs['id_article_accueil'] = sql_getfetsel('id_article_accueil',$table_objet_sql,\"$id_table_objet=\".intval($id));\n\t\t\t\t$valeurs['id_article_accueil'] = $valeurs['id_article_accueil'] ? $valeurs['id_article_accueil'] : '0';\n\t\t\t}\n\t\t}\n\t\t$valeurs['composition'] = $row['composition'];\n\t\t$valeurs['composition_lock'] = $row['composition_lock'];\n\n\t\t$valeurs['compositions'] = compositions_lister_disponibles($type);\n\t\t$valeurs['compositions'] = reset($valeurs['compositions']); // on ne regarde qu'un seul type\n\t\tif (is_array($valeurs['compositions']) AND !isset($valeurs['compositions'][''])){\n\t\t\t$valeurs['compositions'] = array_merge(\n\t\t\t\tarray(''=>array('nom'=>_T('compositions:label_pas_de_composition'),'description'=>'','icon'=>'','configuration'=>'')),\n\t\t\t\t$valeurs['compositions']\n\t\t\t);\n\t\t}\n\t\t$valeurs['_hidden'] = \"<input type='hidden' name='$id_table_objet' value='$id' />\";\n\n\t\tif (!is_array($valeurs['compositions']) AND !isset($valeurs['id_article_accueil']))\n\t\t\t$valeurs['editable'] = false;\n\t}\n\n\treturn $valeurs;\n}", "function contarSemestresTranscurridos($semestre_ingreso){\r\n $cantidad='';\r\n $anio_actual=date('Y');\r\n if(date('m')<=6){\r\n $semestre_actual=1;\r\n }else{\r\n $semestre_actual=2;\r\n }\r\n $periodo_actual =$anio_actual.$semestre_actual;\r\n if($periodo_actual>=$semestre_ingreso){\r\n $cantidad = $this->calcularCantidadSemestres($semestre_ingreso,$periodo_actual);\r\n }\r\n if ($this->datosEstudiante['CARRERA']==97)\r\n $cantidad=round($cantidad/2);\r\n return $cantidad;\r\n }", "public function isplata($iznos){\n\n $stanjesalimitom=$this->stanje+$this->limit;\n\n if($iznos<=$stanjesalimitom){\n // $novostanje=$stanjesalimitom-$iznos;\n //echo \"Vas iznos je isplacen<br>\";\n // echo \"Novo stanje na racunu je: \".$novostanje;\n if($iznos>$this->stanje){\n // ovde je kontrolno logika ako klijent ulazi u minus\n $zaduzenje=$iznos-$this->stanje;\n $this->limit-=$zaduzenje;\n $this->stanje=0;\n echo \"Vas iznos je isplacen<br>\";\n echo \"Usli ste u dozvoljeni minus, Vas limit iznosi jos: \".$this->limit;\n\n }else{\n // ako trazi manji iznos od stanja koje ima na racunu\n $this->stanje-=$iznos;\n echo \"Vas iznos je isplacen, novo stanje je: \".$this->stanje;\n }\n\n }else{\n echo \"Nemate dovoljno sredstava na racunu\";\n }\n\n\n\n}", "function nomi_sintomi($nome)\n{\n\tif ( ($nome == 'id') || ($nome == 'id_paziente') );\n\n\telse if ( $nome == 'data_inserimento') \t\n\t\treturn ('Insertion date');\n\telse if ( $nome == 'data_sintomi') \t\n\t\treturn ('Date of first clinical sign');\n\telse if ( $nome == 'crisi_epilettica') \t\n\t\treturn ('Epilepsy');\n\telse if ( $nome == 'disturbi_comportamento') \t\n\t\treturn ('Behavioral disorder');\n\telse if ( $nome == 'deficit_motorio') \t\n\t\treturn ('Motor deficit');\n\telse if ( $nome == 'deficit') \t\n\t\treturn ('Sensory deficit');\t\n\telse if ( $nome == 'cefalea') \t\n\t\treturn ('Headache');\t\t\n\telse if ( $nome == 'altro') \t\n\t\treturn ('Other');\t\n\t \n\telse\n\t\treturn ucfirst($nome);\n}", "private function updateCommesse()\n {\n //Rielabora\n $preventivatore = $this->getPreventivatore();\n $result = $preventivatore->elabora();\n $imponibile = $result['prezzo_cliente_senza_iva'];\n $iva = $result['prezzo_cliente_con_iva'] - $result['prezzo_cliente_senza_iva'];\n $importo_trasportatore = $result['costo_trazione'];\n $importo_depositario = $result['deposito'];\n $importo_traslocatore_partenza = $result['costo_servizio_smontaggio_imballo_carico'] + $result['costo_servizio_imballo_carico'];\n $importo_traslocatore_destinazione = $result['costo_servizio_scarico'] + $result['costo_servizio_salita'] + $result['costo_servizio_montaggio'];\n\n $totali = array();\n $totali[$this->id_trasportatore] = 0;\n $totali[$this->id_depositario] = 0;\n $totali[$this->id_traslocatore_destinazione] = 0;\n $totali[$this->id_traslocatore_partenza] = 0;\n\n $totaliMC = array();\n $totaliMC[$this->id_trasportatore] = 0;\n $totaliMC[$this->id_depositario] = 0;\n $totaliMC[$this->id_traslocatore_destinazione] = 0;\n $totaliMC[$this->id_traslocatore_partenza] = 0;\n\n\n $totali[$this->id_trasportatore] = $totali[$this->id_trasportatore] + $importo_trasportatore;\n $totali[$this->id_depositario] = $totali[$this->id_depositario] + $importo_depositario;\n $totali[$this->id_traslocatore_partenza] = $totali[$this->id_traslocatore_partenza] + $importo_traslocatore_partenza;\n $totali[$this->id_traslocatore_destinazione] = $totali[$this->id_traslocatore_destinazione] + $importo_traslocatore_destinazione;\n\n\n $mc = $preventivatore->getMC();\n\n $totaliMC[$this->id_trasportatore] = $totaliMC[$this->id_trasportatore] + $mc['mc_da_trasportare'];\n $totaliMC[$this->id_depositario] = $totaliMC[$this->id_depositario] + $mc['mc_da_trasportare'];\n $totaliMC[$this->id_traslocatore_destinazione] = $totaliMC[$this->id_traslocatore_destinazione] + $mc['mc_smontaggio'] + $mc['mc_no_smontaggio'];\n $totaliMC[$this->id_traslocatore_partenza] = $totaliMC[$this->id_traslocatore_partenza] + $mc['mc_da_rimontare'] + $mc['mc_scarico_salita_piano'];\n\n\n $imponibile = round($totali[$this->id_trasportatore]/(1+ Parametri::getIVA()),2);\n $iva = round($totali[$this->id_trasportatore] - $imponibile,2);\n\n $ordine_trasportatore = new OrdineFornitore($this->id_preventivo, $this->id_trasportatore, $totali[$this->id_trasportatore], $imponibile, $iva, $totaliMC[$this->id_trasportatore], date('Y-m-d'), OrdineFornitore::TIPO_SERVIZIO_TRASPORTO);\n $ordine_trasportatore->save();\n\n $imponibile = round($totali[$this->id_traslocatore_partenza]/(1+ Parametri::getIVA()),2);\n $iva = round($totali[$this->id_traslocatore_partenza] - $imponibile,2);\n $ordine_traslocatore_partenza = new OrdineFornitore($this->id_preventivo, $this->id_traslocatore_partenza, $totali[$this->id_traslocatore_partenza], $imponibile, $iva, $totaliMC[$this->id_traslocatore_destinazione], date('Y-m-d'), OrdineFornitore::TIPO_SERVIZIO_TRASLOCO_PARTENZA);\n $ordine_traslocatore_partenza->save();\n\n $imponibile = round($totali[$this->id_traslocatore_destinazione]/(1+ Parametri::getIVA()),2);\n $iva = round($totali[$this->id_traslocatore_destinazione] - $imponibile,2);\n $ordine_traslocatore_destinazione = new OrdineFornitore($this->id_preventivo, $this->id_traslocatore_destinazione, $totali[$this->id_traslocatore_destinazione], $imponibile, $iva, $totaliMC[$this->id_traslocatore_partenza], date('Y-m-d'), OrdineFornitore::TIPO_SERVIZIO_TRASLOCO_DESTINAZIONE);\n $ordine_traslocatore_destinazione->save();\n\n if ($this->giorni_deposito> 10)\n {\n $imponibile = round($totali[$this->id_depositario]/(1+ Parametri::getIVA()),2);\n $iva = round($totali[$this->id_depositario] - $imponibile,2);\n\n $ordine_depositario = new OrdineFornitore($this->id_preventivo, $this->id_depositario, $totali[$this->id_depositario], $imponibile, $iva, $totaliMC[$this->id_depositario], date('Y-m-d'), OrdineFornitore::TIPO_SERVIZIO_DEPOSITO);\n $ordine_depositario->save();\n\n }\n\n $con = DBUtils::getConnection();\n $sql =\"UPDATE preventivi SET\n importo_commessa_trasportatore ='\".$totali[$this->id_trasportatore].\"',\n importo_commessa_traslocatore_partenza ='\".$totali[$this->id_traslocatore_partenza].\"',\n importo_commessa_traslocatore_destinazione ='\".$totali[$this->id_traslocatore_destinazione].\"',\n importo_commessa_depositario ='\".$totali[$this->id_depositario].\"',\n imponibile ='\".$imponibile.\"',\n iva ='\".$iva.\"'\n WHERE id_preventivo=\".$this->id_preventivo;\n\n $res = mysql_query($sql);\n\n\n DBUtils::closeConnection($con);\n\n }", "public function adicionardisciplina() {\n \t\t/* Carrega o modelo */\n\t\t$this->load->model('cursos_model');\n\n\t\t// Maximo de Cursos\n\t\t$intMax = 20;\n\t\t//Recebendo a listagem de alunos\n\t\t$objCursos = $this->cursos_model->listar($intMax, 0);\n\n\t\tself::header();\n\t\t$this->load->view('administracao/adicionardisciplina', array(\"objCursos\" => $objCursos));\n\t\tself::footer();\n\t}", "public static function Vypis_kolize_formulare_dosud_nezavolane($iducast, $formular, $pole_id_volanych) {\r\n $kolize_pole = self::Najdi_kolize_pro_formular_dosud_nezavolane($iducast, $formular, $pole_id_volanych);\r\n \r\n // zobrazeni hlaseni a policek kolizi ve formulari\r\n foreach ($kolize_pole as $kprvek) {\r\n //var_dump($kprvek);\r\n if ($kprvek->kolize_nastala) {\r\n self::Vypis_jednu_kolizi_do_formulare($kprvek);\r\n } \r\n } \r\n\r\n}", "function fTraeAuxiliar($pTip, $pCod){\n global $db, $cla, $olEsq;\n $slDato= substr($olEsq->par_Clave,4,2);\n if ($slDato == \"CL\") { // el movimiento se asocia al Cliente\n $iAuxi = $cla->codProv;\n }\n else {\n $iAuxi = NZ(fDBValor($db, \"fistablassri\", \"tab_txtData3\", \"tab_codTabla = '\" . $pTip . \"' AND tab_codigo = '\" . $pCod . \"'\" ),0);\n }\n//echo \"<br>aux\" . $olEsq->par_Clave. \" / \" .$slDato . \" $iAuxi <br>\";\n error_log(\" aux: \" . $iAuxi. \" \\n\", 3,\"/tmp/dimm_log.err\");\t\n return $iAuxi;\n}", "function insertarSolicitudCompletaMenor()\r\n {\r\n $cone = new conexion();\r\n $link = $cone->conectarpdo();\r\n $copiado = false;\r\n try {\r\n $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n $link->beginTransaction();\r\n\r\n /////////////////////////\r\n // inserta cabecera de la solicitud de compra\r\n ///////////////////////\r\n\r\n //Definicion de variables para ejecucion del procedimiento\r\n $this->procedimiento = 'adq.f_solicitud_modalidades_ime';\r\n $this->transaccion = 'ADQ_SOLMODAL_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('estado_reg', 'estado_reg', 'varchar');\r\n $this->setParametro('id_solicitud_ext', 'id_solicitud_ext', 'int4');\r\n $this->setParametro('presu_revertido', 'presu_revertido', 'varchar');\r\n $this->setParametro('fecha_apro', 'fecha_apro', 'date');\r\n $this->setParametro('estado', 'estado', 'varchar');\r\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\r\n $this->setParametro('id_gestion', 'id_gestion', 'int4');\r\n $this->setParametro('tipo', 'tipo', 'varchar');\r\n $this->setParametro('num_tramite', 'num_tramite', 'varchar');\r\n $this->setParametro('justificacion', 'justificacion', 'text');\r\n $this->setParametro('id_depto', 'id_depto', 'int4');\r\n $this->setParametro('lugar_entrega', 'lugar_entrega', 'varchar');\r\n $this->setParametro('extendida', 'extendida', 'varchar');\r\n $this->setParametro('numero', 'numero', 'varchar');\r\n $this->setParametro('posibles_proveedores', 'posibles_proveedores', 'text');\r\n $this->setParametro('id_proceso_wf', 'id_proceso_wf', 'int4');\r\n $this->setParametro('comite_calificacion', 'comite_calificacion', 'text');\r\n $this->setParametro('id_categoria_compra', 'id_categoria_compra', 'int4');\r\n $this->setParametro('id_funcionario', 'id_funcionario', 'int4');\r\n $this->setParametro('id_estado_wf', 'id_estado_wf', 'int4');\r\n $this->setParametro('fecha_soli', 'fecha_soli', 'date');\r\n $this->setParametro('id_proceso_macro', 'id_proceso_macro', 'int4');\r\n $this->setParametro('id_proveedor', 'id_proveedor', 'int4');\r\n $this->setParametro('tipo_concepto', 'tipo_concepto', 'varchar');\r\n $this->setParametro('fecha_inicio', 'fecha_inicio', 'date');\r\n $this->setParametro('dias_plazo_entrega', 'dias_plazo_entrega', 'integer');\r\n $this->setParametro('precontrato', 'precontrato', 'varchar');\r\n $this->setParametro('correo_proveedor', 'correo_proveedor', 'varchar');\r\n\r\n $this->setParametro('nro_po', 'nro_po', 'varchar');\r\n $this->setParametro('fecha_po', 'fecha_po', 'date');\r\n\r\n $this->setParametro('prioridad', 'prioridad', 'integer');\r\n\r\n $this->setParametro('tipo_modalidad', 'tipo_modalidad', 'varchar');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $stmt = $link->prepare($this->consulta);\r\n $stmt->execute();\r\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n //recupera parametros devuelto depues de insertar ... (id_solicitud)\r\n $resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\r\n if ($resp_procedimiento['tipo_respuesta'] == 'ERROR') {\r\n throw new Exception(\"Error al ejecutar en la bd\", 3);\r\n }\r\n\r\n $respuesta = $resp_procedimiento['datos'];\r\n\r\n $id_solicitud = $respuesta['id_solicitud'];\r\n\r\n //////////////////////////////////////////////\r\n //inserta detalle de la solicitud de compra\r\n /////////////////////////////////////////////\r\n\r\n\r\n //decodifica JSON de detalles\r\n $json_detalle = $this->aParam->_json_decode($this->aParam->getParametro('json_new_records'));\r\n\r\n //var_dump($json_detalle)\t;\r\n foreach ($json_detalle as $f) {\r\n\r\n $this->resetParametros();\r\n //Definicion de variables para ejecucion del procedimiento\r\n $this->procedimiento = 'adq.f_solicitud_det_ime';\r\n $this->transaccion = 'ADQ_SOLD_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n //modifica los valores de las variables que mandaremos\r\n $this->arreglo['id_centro_costo'] = $f['id_centro_costo'];\r\n $this->arreglo['descripcion'] = $f['descripcion'];\r\n $this->arreglo['precio_unitario'] = $f['precio_unitario'];\r\n $this->arreglo['id_solicitud'] = $id_solicitud;\r\n $this->arreglo['id_orden_trabajo'] = $f['id_orden_trabajo'];\r\n $this->arreglo['id_concepto_ingas'] = $f['id_concepto_ingas'];\r\n $this->arreglo['precio_total'] = $f['precio_total'];\r\n $this->arreglo['cantidad_sol'] = $f['cantidad_sol'];\r\n $this->arreglo['precio_ga'] = $f['precio_ga'];\r\n $this->arreglo['precio_sg'] = $f['precio_sg'];\r\n\r\n $this->arreglo['id_activo_fijo'] = $f['id_activo_fijo'];\r\n $this->arreglo['codigo_act'] = $f['codigo_act'];\r\n $this->arreglo['fecha_ini_act'] = $f['fecha_ini_act'];\r\n $this->arreglo['fecha_fin_act'] = $f['fecha_fin_act'];\r\n\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_centro_costo', 'id_centro_costo', 'int4');\r\n $this->setParametro('descripcion', 'descripcion', 'text');\r\n $this->setParametro('precio_unitario', 'precio_unitario', 'numeric');\r\n $this->setParametro('id_solicitud', 'id_solicitud', 'int4');\r\n $this->setParametro('id_orden_trabajo', 'id_orden_trabajo', 'int4');\r\n $this->setParametro('id_concepto_ingas', 'id_concepto_ingas', 'int4');\r\n $this->setParametro('precio_total', 'precio_total', 'numeric');\r\n $this->setParametro('cantidad_sol', 'cantidad_sol', 'int4');\r\n $this->setParametro('precio_ga', 'precio_ga', 'numeric');\r\n $this->setParametro('precio_sg', 'precio_sg', 'numeric');\r\n\r\n $this->setParametro('id_activo_fijo', 'id_activo_fijo', 'varchar');\r\n $this->setParametro('codigo_act', 'codigo_act', 'varchar');\r\n $this->setParametro('fecha_ini_act', 'fecha_ini_act', 'date');\r\n $this->setParametro('fecha_fin_act', 'fecha_fin_act', 'date');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $stmt = $link->prepare($this->consulta);\r\n $stmt->execute();\r\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n //recupera parametros devuelto depues de insertar ... (id_solicitud)\r\n $resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\r\n if ($resp_procedimiento['tipo_respuesta'] == 'ERROR') {\r\n throw new Exception(\"Error al insertar detalle en la bd\", 3);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n //si todo va bien confirmamos y regresamos el resultado\r\n $link->commit();\r\n $this->respuesta = new Mensaje();\r\n $this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'], $this->nombre_archivo, $resp_procedimiento['mensaje'], $resp_procedimiento['mensaje_tec'], 'base', $this->procedimiento, $this->transaccion, $this->tipo_procedimiento, $this->consulta);\r\n $this->respuesta->setDatos($respuesta);\r\n } catch (Exception $e) {\r\n $link->rollBack();\r\n $this->respuesta = new Mensaje();\r\n if ($e->getCode() == 3) {//es un error de un procedimiento almacenado de pxp\r\n $this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'], $this->nombre_archivo, $resp_procedimiento['mensaje'], $resp_procedimiento['mensaje_tec'], 'base', $this->procedimiento, $this->transaccion, $this->tipo_procedimiento, $this->consulta);\r\n } else if ($e->getCode() == 2) {//es un error en bd de una consulta\r\n $this->respuesta->setMensaje('ERROR', $this->nombre_archivo, $e->getMessage(), $e->getMessage(), 'modelo', '', '', '', '');\r\n } else {//es un error lanzado con throw exception\r\n throw new Exception($e->getMessage(), 2);\r\n }\r\n\r\n }\r\n\r\n return $this->respuesta;\r\n }", "private function setError($proyectos,$filtro){\n if(empty($proyectos) && isset($filtro) ){\n $this->view->error=\"No se hallaron coincidencias\";\n }\n return ;\n }", "public function isValid()\n\t{\n\t\tif (empty($this->titre)) $this->titre = \"TITRE A REMPLACER\";\n\t\telse $this->titre = trim (preg_replace('/\\s+/', ' ', $this->titre) ); // Suppression des espaces\n\t\tif (!empty($this->contenu)) $this->contenu = trim (preg_replace('/\\s+/', ' ', $this->contenu) ); // Suppression des espaces\n\t\tif (empty($this->statut)) $this->statut = 0;\n\t\tif (empty($this->id_type)) $this->id_type = 1;\n\t\tif (empty($this->id_membre)) $this->id_membre = 0;\n\t}", "function cinotif_trouver_objet_courrier_et_destinataire($id_courrier, $id_auteur=0, $id_abonne=0) {\n\t$return = array('objet'=>'','id_objet'=>0);\n\t$id_courrier = intval($id_courrier);\n\t$id_auteur = intval($id_auteur);\n\t$id_abonne = intval($id_abonne);\n\t$evenement_recherche = 0;\n\n\tif ($id_courrier>0 AND ($id_auteur OR $id_abonne)) {\n\t\t\n\t\t// contenu notifie\n\t\t$quoi = '';\n\t\t$objet = '';\n\t\t$id_objet = 0;\n\t\t$row = sql_fetsel('*', 'spip_cinotif_courriers', 'id_courrier='.$id_courrier);\n\t\tif ($row) {\n\t\t\t$quoi = $row['quoi'];\n\t\t\t$objet = $row['objet'];\n\t\t\t$id_objet = intval($row['id_objet']);\n\t\t\t$parent = $row['parent'];\n\t\t\t$id_parent = intval($row['id_parent']);\n\t\t}\n\n\t\t// article\n\t\tif ($parent=='article'){\n\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,$parent,array($id_parent));\n\t\t\t\n\t\t\tif (!$evenement_recherche) {\n\t\t\t\t$t = sql_fetsel(\"id_rubrique\", \"spip_articles\", \"id_article=\".$id_parent);\n\t\t\t\t$id_parent = $t['id_rubrique'];\n\t\t\t\t$parent = 'rubrique';\n\t\t\t}\n\t\t}\t\t\t\n\n\t\t// rubrique\n\t\tif ($parent=='rubrique'){\n\t\t\t$ascendance = cinotif_ascendance($id_parent);\n\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,$parent,$ascendance);\n\t\t\t\n\t\t\t// cas particulier ou on s'abonne a un article a l'evenement modification d'article\n\t\t\tif (!$evenement_recherche AND $quoi=='articlemodifie')\n\t\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,$objet,array($id_objet));\n\t\t}\n\t\t\n\t\t// site\n\t\tif (!$evenement_recherche) {\n\t\t\t$evenement_recherche = cinotif_evenement_recherche($id_auteur,$id_abonne,$quoi,'site',array());\n\t\t}\n\t\tif ($evenement_recherche) {\n\t\t\t$row = sql_fetsel('*', 'spip_cinotif_evenements', \"id_evenement=\".$evenement_recherche);\n\t\t\t$return = array('objet'=>$row['objet'],'id_objet'=>$row['id_objet']);\n\t\t}\n\t}\n\t\n\treturn $return;\n}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->s113_i_codigo = ($this->s113_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_codigo\"]:$this->s113_i_codigo);\n $this->s113_i_prestadorhorarios = ($this->s113_i_prestadorhorarios == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_prestadorhorarios\"]:$this->s113_i_prestadorhorarios);\n $this->s113_i_numcgs = ($this->s113_i_numcgs == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_numcgs\"]:$this->s113_i_numcgs);\n if($this->s113_d_agendamento == \"\"){\n $this->s113_d_agendamento_dia = ($this->s113_d_agendamento_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_agendamento_dia\"]:$this->s113_d_agendamento_dia);\n $this->s113_d_agendamento_mes = ($this->s113_d_agendamento_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_agendamento_mes\"]:$this->s113_d_agendamento_mes);\n $this->s113_d_agendamento_ano = ($this->s113_d_agendamento_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_agendamento_ano\"]:$this->s113_d_agendamento_ano);\n if($this->s113_d_agendamento_dia != \"\"){\n $this->s113_d_agendamento = $this->s113_d_agendamento_ano.\"-\".$this->s113_d_agendamento_mes.\"-\".$this->s113_d_agendamento_dia;\n }\n }\n if($this->s113_d_exame == \"\"){\n $this->s113_d_exame_dia = ($this->s113_d_exame_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_exame_dia\"]:$this->s113_d_exame_dia);\n $this->s113_d_exame_mes = ($this->s113_d_exame_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_exame_mes\"]:$this->s113_d_exame_mes);\n $this->s113_d_exame_ano = ($this->s113_d_exame_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_exame_ano\"]:$this->s113_d_exame_ano);\n if($this->s113_d_exame_dia != \"\"){\n $this->s113_d_exame = $this->s113_d_exame_ano.\"-\".$this->s113_d_exame_mes.\"-\".$this->s113_d_exame_dia;\n }\n }\n $this->s113_i_ficha = ($this->s113_i_ficha == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_ficha\"]:$this->s113_i_ficha);\n $this->s113_c_hora = ($this->s113_c_hora == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_c_hora\"]:$this->s113_c_hora);\n $this->s113_i_situacao = ($this->s113_i_situacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_situacao\"]:$this->s113_i_situacao);\n if($this->s113_d_cadastro == \"\"){\n $this->s113_d_cadastro_dia = ($this->s113_d_cadastro_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_cadastro_dia\"]:$this->s113_d_cadastro_dia);\n $this->s113_d_cadastro_mes = ($this->s113_d_cadastro_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_cadastro_mes\"]:$this->s113_d_cadastro_mes);\n $this->s113_d_cadastro_ano = ($this->s113_d_cadastro_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_cadastro_ano\"]:$this->s113_d_cadastro_ano);\n if($this->s113_d_cadastro_dia != \"\"){\n $this->s113_d_cadastro = $this->s113_d_cadastro_ano.\"-\".$this->s113_d_cadastro_mes.\"-\".$this->s113_d_cadastro_dia;\n }\n }\n $this->s113_c_cadastro = ($this->s113_c_cadastro == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_c_cadastro\"]:$this->s113_c_cadastro);\n $this->s113_i_login = ($this->s113_i_login == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_login\"]:$this->s113_i_login);\n $this->s113_c_encaminhamento = ($this->s113_c_encaminhamento == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_c_encaminhamento\"]:$this->s113_c_encaminhamento);\n }else{\n $this->s113_i_codigo = ($this->s113_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_codigo\"]:$this->s113_i_codigo);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->s113_i_codigo = ($this->s113_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_codigo\"]:$this->s113_i_codigo);\n $this->s113_i_prestadorhorarios = ($this->s113_i_prestadorhorarios == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_prestadorhorarios\"]:$this->s113_i_prestadorhorarios);\n $this->s113_i_numcgs = ($this->s113_i_numcgs == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_numcgs\"]:$this->s113_i_numcgs);\n if($this->s113_d_agendamento == \"\"){\n $this->s113_d_agendamento_dia = ($this->s113_d_agendamento_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_agendamento_dia\"]:$this->s113_d_agendamento_dia);\n $this->s113_d_agendamento_mes = ($this->s113_d_agendamento_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_agendamento_mes\"]:$this->s113_d_agendamento_mes);\n $this->s113_d_agendamento_ano = ($this->s113_d_agendamento_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_agendamento_ano\"]:$this->s113_d_agendamento_ano);\n if($this->s113_d_agendamento_dia != \"\"){\n $this->s113_d_agendamento = $this->s113_d_agendamento_ano.\"-\".$this->s113_d_agendamento_mes.\"-\".$this->s113_d_agendamento_dia;\n }\n }\n if($this->s113_d_exame == \"\"){\n $this->s113_d_exame_dia = ($this->s113_d_exame_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_exame_dia\"]:$this->s113_d_exame_dia);\n $this->s113_d_exame_mes = ($this->s113_d_exame_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_exame_mes\"]:$this->s113_d_exame_mes);\n $this->s113_d_exame_ano = ($this->s113_d_exame_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_exame_ano\"]:$this->s113_d_exame_ano);\n if($this->s113_d_exame_dia != \"\"){\n $this->s113_d_exame = $this->s113_d_exame_ano.\"-\".$this->s113_d_exame_mes.\"-\".$this->s113_d_exame_dia;\n }\n }\n $this->s113_i_ficha = ($this->s113_i_ficha == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_ficha\"]:$this->s113_i_ficha);\n $this->s113_c_hora = ($this->s113_c_hora == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_c_hora\"]:$this->s113_c_hora);\n $this->s113_i_situacao = ($this->s113_i_situacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_situacao\"]:$this->s113_i_situacao);\n if($this->s113_d_cadastro == \"\"){\n $this->s113_d_cadastro_dia = ($this->s113_d_cadastro_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_cadastro_dia\"]:$this->s113_d_cadastro_dia);\n $this->s113_d_cadastro_mes = ($this->s113_d_cadastro_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_cadastro_mes\"]:$this->s113_d_cadastro_mes);\n $this->s113_d_cadastro_ano = ($this->s113_d_cadastro_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_d_cadastro_ano\"]:$this->s113_d_cadastro_ano);\n if($this->s113_d_cadastro_dia != \"\"){\n $this->s113_d_cadastro = $this->s113_d_cadastro_ano.\"-\".$this->s113_d_cadastro_mes.\"-\".$this->s113_d_cadastro_dia;\n }\n }\n $this->s113_c_cadastro = ($this->s113_c_cadastro == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_c_cadastro\"]:$this->s113_c_cadastro);\n $this->s113_i_login = ($this->s113_i_login == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_login\"]:$this->s113_i_login);\n $this->s113_c_encaminhamento = ($this->s113_c_encaminhamento == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_c_encaminhamento\"]:$this->s113_c_encaminhamento);\n }else{\n $this->s113_i_codigo = ($this->s113_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s113_i_codigo\"]:$this->s113_i_codigo);\n }\n }", "public function recalculer_les_ca_styl()\n {\n \n // On reccuperere tous les mandataires \n\n $mandataires = User::where('role','mandataire')->get();\n $deb_annee = date(\"Y\").\"-01-01\";\n\n // pour chaque mandataire on calcul le ca styl et on le met à jour dans la table des mandataires \n foreach ($mandataires as $mandataire ) {\n // CA encaissé non partagé\n\n $compro_encaisse_partage_pas_n = Compromis::where([['user_id',$mandataire->id],['est_partage_agent',false],['demande_facture',2],['archive',false]])->get();\n $ca_encaisse_partage_pas_n = 0;\n if($compro_encaisse_partage_pas_n != null){ \n foreach ($compro_encaisse_partage_pas_n as $compros_encaisse) {\n if($compros_encaisse->getFactureStylimmo()->a_voir = false && $compros_encaisse->getFactureStylimmo()->encaissee == 1 && $compros_encaisse->getFactureStylimmo()->date_encaissement->format(\"Y-m-d\") >= $deb_annee){\n $ca_encaisse_partage_pas_n += $compros_encaisse->getFactureStylimmo()->montant_ttc;\n // echo $mandataire->id == 12 ? \"<br/>\".$compros_encaisse->numero_mandat.\" np\".$compros_encaisse->getFactureStylimmo()->montant_ttc : null ;\n }\n }\n \n }\n \n // CA encaissé partagé et porte affaire\n $compro_encaisse_porte_n = Compromis::where([['user_id',$mandataire->id],['est_partage_agent',true],['demande_facture',2],['archive',false]])->get();\n $ca_encaisse_porte_n = 0;\n\n if($compro_encaisse_porte_n != null){\n foreach ($compro_encaisse_porte_n as $compros_encaisse) {\n if($compros_encaisse->getFactureStylimmo()->a_voir = false && $compros_encaisse->getFactureStylimmo()->encaissee == 1 && $compros_encaisse->getFactureStylimmo()->date_encaissement->format(\"Y-m-d\") >= $deb_annee){\n $ca_encaisse_porte_n += $compros_encaisse->frais_agence * $compros_encaisse->pourcentage_agent/100;\n // echo $mandataire->id == 12 ? '<br/> pp '.$compros_encaisse->numero_mandat.'--'.$compros_encaisse->getFactureStylimmo()->montant_ttc * $compros_encaisse->pourcentage_agent/100: null ;\n }\n }\n }\n\n\n // CA encaissé partagé et ne porte pas affaire\n \n $compro_encaisse_porte_pas_n = Compromis::where([['agent_id',$mandataire->id],['est_partage_agent',true],['demande_facture',2],['archive',false]])->get();\n $ca_encaisse_porte_pas_n = 0;\n\n if($compro_encaisse_porte_pas_n != null){\n foreach ($compro_encaisse_porte_pas_n as $compros_encaisse) {\n if($compros_encaisse->getFactureStylimmo()->a_voir = false && $compros_encaisse->getFactureStylimmo()->encaissee == 1 && $compros_encaisse->getFactureStylimmo()->date_encaissement->format(\"Y-m-d\") >= $deb_annee){\n $ca_encaisse_porte_pas_n += $compros_encaisse->frais_agence * (100-$compros_encaisse->pourcentage_agent)/100;\n // echo $mandataire->id == 12 ? '<br/>ppp '.$compros_encaisse->numero_mandat.'--'.$compros_encaisse->getFactureStylimmo()->montant_ttc* (100-$compros_encaisse->pourcentage_agent)/100 : null ;\n }\n }\n }\n\n \n \n $ca_encaisse_N = round(($ca_encaisse_partage_pas_n+$ca_encaisse_porte_n+$ca_encaisse_porte_pas_n)/Tva::coefficient_tva(),2);\n\n $mandataire->chiffre_affaire_sty = $ca_encaisse_N ;\n $mandataire->update();\n \n // $mandataire->id == 12 ? dd($ca_encaisse_N) : null;\n \n }\n\n return \"OK\";\n }", "public function seminarioClase( ) {\n\n\n AccesoGui::$guiSistema->esperarInicioSistema();\n\n AccesoControladoresDispositivos::$ctrlLuz->setLucesEscenarios(LuzTecho::$ESCENARIO_SEMINARIO_CLASE);\n AccesoControladoresDispositivos::$ctrlMatrizVGA->asignarAudio(1,1);\n AccesoControladoresDispositivos::$ctrlAutomata->encenderLuzSala(Automata::$intensidades[\"maxima\"]);\n usleep(500000);\n ConexionServidorCliente::$ctrlGuiPantallas->subirPantallaElectrica();\n AccesoControladoresDispositivos::$ctrlFoco->apagar();\n ConexionServidorCliente::$ctrlGuiPlasmas->encender();\n\t//Comentado mientras se repara el visor de opacos.\n //ConexionServidorCliente::$ctrlGuiCamaraDocumentos->camaraDocumentosApagar();\n ConexionServidorCliente::$ctrlGuiProyectores->apagarPizarra();\n ConexionServidorCliente::$ctrlGuiProyectores->apagarCentral();\n AccesoControladoresDispositivos::$ctrlMesaMezclas->preset90();\n\tAccesoControladoresDispositivos::$ctrlMesaMezclas->desactivarMicPresidencia(\"M1\");\n ConexionServidorCliente::$ctrlGuiPantallas->pipEnPantallaPresi();\n AccesoGui::$guiEscenarios->escenarioSeminario();\n AccesoGui::$guiMenus->menuPrincipal(true);\n AccesoGui::$guiSistema->mostrarMenu();\n AccesoGui::$guiEscenarios->enviarEstadoVideoconferencia();\n\tAccesoControladoresDispositivos::$ctrlProyectores->estadoCentral();\n\tAccesoControladoresDispositivos::$ctrlProyectores->estadoPizarra();\n }", "private function prehledNavstev(){\n $this->tpl = \"historie-navstev\";\n \n \t$prehled = new HlavniPrehled($this->db);\n \n $this->render = array(\n\t\t\t'navstevy' => $prehled->vypis(@$_POST), \n\t\t);\t\n }", "function Geral() {\r\n \r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_sq_tipo_lancamento = $_REQUEST['w_sq_tipo_lancamento'];\r\n $w_readonly = '';\r\n $w_erro = '';\r\n\r\n // Carrega o segmento cliente\r\n $sql = new db_getCustomerData; $RS = $sql->getInstanceOf($dbms,$w_cliente); \r\n $w_segmento = f($RS,'segmento');\r\n \r\n // Verifica se há necessidade de recarregar os dados da tela a partir\r\n // da própria tela (se for recarga da tela) ou do banco de dados (se não for inclusão)\r\n if ($w_troca>'' && $O!='E') {\r\n // Se for recarga da página\r\n $w_codigo_interno = $_REQUEST['w_codigo_interno'];\r\n $w_sq_tipo_lancamento = $_REQUEST['w_sq_tipo_lancamento'];\r\n $w_sq_tipo_documento = $_REQUEST['w_sq_tipo_documento'];\r\n $w_descricao = $_REQUEST['w_descricao'];\r\n $w_valor = $_REQUEST['w_valor'];\r\n $w_fim = $_REQUEST['w_fim'];\r\n $w_conta_debito = $_REQUEST['w_conta_debito'];\r\n $w_sq_forma_pagamento = $_REQUEST['w_sq_forma_pagamento'];\r\n $w_cc_debito = $_REQUEST['w_cc_debito'];\r\n $w_cc_credito = $_REQUEST['w_cc_credito'];\r\n\r\n } elseif(strpos('AEV',$O)!==false || $w_copia>'') {\r\n // Recupera os dados do lançamento\r\n $sql = new db_getSolicData; \r\n $RS = $sql->getInstanceOf($dbms,nvl($w_copia,$w_chave),$SG);\r\n if (count($RS)>0) {\r\n $w_codigo_interno = f($RS,'codigo_interno');\r\n $w_sq_tipo_lancamento = f($RS,'sq_tipo_lancamento');\r\n $w_conta_debito = f($RS,'sq_pessoa_conta');\r\n $w_descricao = f($RS,'descricao');\r\n $w_fim = formataDataEdicao(f($RS,'fim'));\r\n $w_valor = formatNumber(f($RS,'valor'));\r\n $w_sq_forma_pagamento = f($RS,'sq_forma_pagamento');\r\n $w_cc_debito = f($RS,'cc_debito');\r\n $w_cc_credito = f($RS,'cc_credito');\r\n }\r\n }\r\n\r\n // Recupera dados do comprovante\r\n if (nvl($w_troca,'')=='' && (nvl($w_copia,'')!='' || nvl($w_chave,'')!='')) {\r\n $sql = new db_getLancamentoDoc; $RS = $sql->getInstanceOf($dbms,nvl($w_copia,$w_chave),null,null,null,null,null,null,'DOCS');\r\n $RS = SortArray($RS,'sq_tipo_documento','asc');\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n if (nvl($w_copia,'')=='') $w_chave_doc = f($RS,'sq_lancamento_doc'); // Se cópia, não copia a chave do documento \r\n $w_sq_tipo_documento = f($RS,'sq_tipo_documento');\r\n $w_numero = f($RS,'numero');\r\n $w_data = FormataDataEdicao(f($RS,'data'));\r\n $w_serie = f($RS,'serie');\r\n $w_valor_doc = formatNumber(f($RS,'valor'));\r\n $w_patrimonio = f($RS,'patrimonio');\r\n $w_tributo = f($RS,'calcula_tributo');\r\n $w_retencao = f($RS,'calcula_retencao'); \r\n }\r\n\r\n // Default: pagamento para pessoa jurídica\r\n $w_tipo_pessoa = nvl($w_tipo_pessoa,2);\r\n \r\n // Recupera o trâmite de conclusão\r\n $sql = new db_getTramiteList; $RS = $sql->getInstanceOf($dbms, $w_menu,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc');\r\n foreach ($RS as $row) {\r\n if (f($row,'sigla')=='AT') {\r\n $w_tramite_conc = f($row,'sq_siw_tramite');\r\n break;\r\n }\r\n }\r\n \r\n // Verifica as formas de pagamento possíveis. Se apenas uma, atribui direto\r\n $sql = new db_getFormaPagamento; $RS = $sql->getInstanceOf($dbms, $w_cliente, null, $SG, null,'S',null);\r\n $w_exibe_fp = true;\r\n if (count($RS)==1 || nvl($w_sq_forma_pagamento,'')!='') {\r\n foreach($RS as $row) { \r\n if (nvl($w_sq_forma_pagamento,f($row,'sq_forma_pagamento'))==f($row,'sq_forma_pagamento')) {\r\n $w_sq_forma_pagamento = f($row,'sq_forma_pagamento'); \r\n $w_forma_pagamento = f($row,'sigla'); \r\n $w_nm_forma_pagamento = f($row,'nome'); \r\n break; \r\n }\r\n }\r\n if (count($RS)==1) $w_exibe_fp = false;\r\n }\r\n \r\n // Verifica os tipos de documento possíveis. Se apenas um, atribui direto\r\n $sql = new db_getTipoDocumento; $RS = $sql->getInstanceOf($dbms,null,$w_cliente,$w_menu,null);\r\n $w_exibe_dc = true;\r\n if (count($RS)==1) {\r\n foreach($RS as $row) { \r\n $w_sq_tipo_documento = f($row,'chave'); \r\n $w_tipo_documento = f($row,'sigla'); \r\n $w_nm_tipo_documento = f($row,'nome'); \r\n break; \r\n }\r\n $w_exibe_dc = false;\r\n }\r\n\r\n // Se o tipo de lançamento já foi informado, recupera o código externo para definir a conta contábil de débito\r\n if ($w_sq_tipo_lancamento) {\r\n $sql = new db_getTipoLancamento; $RS = $sql->getInstanceOf($dbms,$w_sq_tipo_lancamento,null,$w_cliente,null);\r\n $w_cc_debito = f($RS[0],'codigo_externo');\r\n }\r\n \r\n // Retorna as contas contábeis do lançamento\r\n retornaContasContabeis($RS_Menu, $w_cliente, $w_sq_tipo_lancamento, $w_sq_forma_pagamento, $w_conta_debito, $w_cc_debito, $w_cc_credito);\r\n \r\n Cabecalho();\r\n head();\r\n Estrutura_CSS($w_cliente);\r\n // Monta o código JavaScript necessário para validação de campos e preenchimento automático de máscara,\r\n // tratando as particularidades de cada serviço\r\n ScriptOpen('JavaScript');\r\n CheckBranco();\r\n FormataData();\r\n SaltaCampo();\r\n FormataDataHora();\r\n FormataValor();\r\n ShowHTML('function botoes() {');\r\n ShowHTML(' document.Form.Botao[0].disabled = true;');\r\n ShowHTML(' document.Form.Botao[1].disabled = true;');\r\n ShowHTML('}');\r\n ValidateOpen('Validacao');\r\n if ($O=='I' || $O=='A') {\r\n Validate('w_sq_tipo_lancamento','Tipo do lançamento','SELECT',1,1,18,'','0123456789');\r\n if ($w_exibe_fp) Validate('w_sq_forma_pagamento','Forma de pagamento','SELECT',1,1,18,'','0123456789');\r\n Validate('w_conta_debito','Conta bancária', 'SELECT', 1, 1, 18, '', '0123456789');\r\n if ($w_exibe_dc) Validate('w_sq_tipo_documento','Tipo de documento','SELECT',1,1,18,'','0123456789');\r\n Validate('w_fim','Data da operação', 'DATA', '1', '10', '10', '', '0123456789/');\r\n Validate('w_valor','Valor total do documento','VALOR','1',4,18,'','0123456789.,-');\r\n CompValor('w_valor','Valor total do documento','>','0,00','zero');\r\n Validate('w_descricao','Observação','1','',5,2000,'1','1');\r\n \r\n Validate('w_cc_debito','Conta Débito','','','2','25','ABCDEFGHIJKLMNOPQRSTUVWXYZ','0123456789');\r\n Validate('w_cc_credito','Conta Crédito','','','2','25','ABCDEFGHIJKLMNOPQRSTUVWXYZ','0123456789');\r\n \r\n ShowHTML(' if ((theForm.w_cc_debito.value != \"\" && theForm.w_cc_credito.value == \"\") || (theForm.w_cc_debito.value == \"\" && theForm.w_cc_credito.value != \"\")) {');\r\n ShowHTML(' alert (\"Informe ambas as contas contábeis ou nenhuma delas!\");');\r\n ShowHTML(' theForm.w_cc_debito.focus();');\r\n ShowHTML(' return false;');\r\n ShowHTML(' }');\r\n \r\n } \r\n Validate('w_assinatura',$_SESSION['LABEL_ALERTA'], '1', '1', '3', '30', '1', '1');\r\n ValidateClose();\r\n ScriptClose();\r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n ShowHTML('</HEAD>');\r\n if ($w_troca>'') BodyOpen('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n elseif (!(strpos('EV',$O)===false)) BodyOpen('onLoad=\\'this.focus()\\';');\r\n else BodyOpen('onLoad=\\'document.Form.w_sq_tipo_lancamento.focus()\\';');\r\n Estrutura_Topo_Limpo();\r\n Estrutura_Menu();\r\n Estrutura_Corpo_Abre();\r\n Estrutura_Texto_Abre();\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n if ($w_chave>'') ShowHTML(' <tr><td><font size=\"2\"><b>'.$w_codigo_interno.' ('.$w_chave.')</b></td>');\r\n if (strpos('IAEV',$O)!==false) {\r\n if (strpos('EV',$O)!==false) {\r\n $w_Disabled=' DISABLED ';\r\n if ($O=='V') $w_Erro = Validacao($w_sq_solicitacao,$SG);\r\n } \r\n if (Nvl($w_pais,'')=='') {\r\n // Carrega os valores padrão para país, estado e cidade\r\n $sql = new db_getCustomerData; $RS = $sql->getInstanceOf($dbms,$w_cliente);\r\n $w_pais = f($RS,'sq_pais');\r\n $w_uf = f($RS,'co_uf');\r\n $w_cidade = Nvl(f($RS_Menu,'sq_cidade'),f($RS,'sq_cidade_padrao'));\r\n } \r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$R,$O);\r\n ShowHTML(MontaFiltro('POST'));\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_copia\" value=\"'.$w_copia.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_codigo_interno\" value=\"'.$w_codigo_interno.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_menu\" value=\"'.f($RS_Menu,'sq_menu').'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_data_hora\" value=\"'.f($RS_Menu,'data_hora').'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_cidade\" value=\"'.$w_cidade.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_tramite\" value=\"'.$w_tramite_conc.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_tipo\" value=\"'.$w_tipo.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave_doc\" value=\"'.$w_chave_doc.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_tipo_pessoa\" value=\"'.$w_tipo_pessoa.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_aviso\" value=\"N\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_dias\" value=\"0\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td>');\r\n ShowHTML(' <table width=\"100%\" border=\"0\">');\r\n ShowHTML(' <tr><td colspan=3 align=\"center\" height=\"2\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=3 align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=3 align=\"center\" bgcolor=\"#D0D0D0\"><b>Identificação</td></td></tr>');\r\n ShowHTML(' <tr><td colspan=3 align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=3>Os dados deste bloco serão utilizados para identificação do lançamento, bem como para o controle de sua execução.</td></tr>');\r\n ShowHTML(' <tr><td colspan=3 align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n\r\n ShowHTML(' <tr valign=\"top\">');\r\n selecaoTipoLancamento('Tipo de lançamento:',null,null,$w_sq_tipo_lancamento,$w_menu,$w_cliente,'w_sq_tipo_lancamento',$SG, 'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.O.value=\\''.$O.'\\'; document.Form.w_troca.value=\\''.(($w_exibe_fp) ? 'w_sq_forma_pagamento' : 'w_conta_debito').'\\'; document.Form.submit();\"',3);\r\n ShowHTML(' <tr valign=\"top\">');\r\n if ($w_exibe_fp) {\r\n SelecaoFormaPagamento('<u>F</u>orma de pagamento:','F','Selecione na lista a forma desejada para esta aplicação.',$w_sq_forma_pagamento,$SG,'w_sq_forma_pagamento',null,'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.O.value=\\''.$O.'\\'; document.Form.w_troca.value=\\'w_conta_debito\\'; document.Form.submit();\"');\r\n } else {\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_forma_pagamento\" value=\"'.$w_sq_forma_pagamento.'\">');\r\n }\r\n SelecaoContaBanco('<u>C</u>onta bancária:','C','Selecione a conta bancária envolvida no lançamento.',$w_conta_debito,null,'w_conta_debito',null,'onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.O.value=\\''.$O.'\\'; document.Form.w_troca.value=\\''.(($w_exibe_dc) ? 'w_sq_tipo_documento' : 'w_fim').'\\'; document.Form.submit();\"');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n if ($w_exibe_dc) {\r\n SelecaoTipoDocumento('<u>T</u>ipo do documento:','T', 'Selecione o tipo de documento.', $w_sq_tipo_documento,$w_cliente,$w_menu,'w_sq_tipo_documento',null,null);\r\n } else {\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_tipo_documento\" value=\"'.$w_sq_tipo_documento.'\">');\r\n }\r\n ShowHTML(' <td><b><u>D</u>ata da operação:</b><br><input '.$w_Disabled.' accesskey=\"D\" type=\"text\" name=\"w_fim\" class=\"sti\" SIZE=\"10\" MAXLENGTH=\"10\" VALUE=\"'.$w_fim.'\" onKeyDown=\"FormataData(this,event);\" onKeyUp=\"SaltaCampo(this.form.name,this,10,event);\">'.ExibeCalendario('Form','w_fim').'</td>');\r\n ShowHTML(' <td><b><u>V</u>alor:</b><br><input '.$w_Disabled.' accesskey=\"V\" type=\"text\" name=\"w_valor\" class=\"sti\" SIZE=\"18\" MAXLENGTH=\"18\" VALUE=\"'.$w_valor.'\" style=\"text-align:right;\" onKeyDown=\"FormataValor(this,18,2,event);\" title=\"Informe o valor total do documento.\"></td>');\r\n ShowHTML(' <tr><td colspan=3><b><u>O</u>bservação:</b><br><textarea '.$w_Disabled.' accesskey=\"O\" name=\"w_descricao\" class=\"sti\" ROWS=3 cols=75 title=\"Observação sobre a aplicação.\">'.$w_descricao.'</TEXTAREA></td>');\r\n\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td><b><u>C</u>onta contábil de débito:</b></br><input type=\"text\" name=\"w_cc_debito\" class=\"sti\" SIZE=\"11\" MAXLENGTH=\"25\" VALUE=\"'.$w_cc_debito.'\"></td>');\r\n ShowHTML(' <td><b><u>C</u>onta contábil de crédito:</b></br><input type=\"text\" name=\"w_cc_credito\" class=\"sti\" SIZE=\"11\" MAXLENGTH=\"25\" VALUE=\"'.$w_cc_credito.'\"></td>');\r\n \r\n ShowHTML(' <tr><td align=\"LEFT\" colspan=4><b>'.$_SESSION['LABEL_CAMPO'].':<BR> <INPUT ACCESSKEY=\"A\" class=\"sti\" type=\"PASSWORD\" name=\"w_assinatura\" size=\"30\" maxlength=\"30\" value=\"\"></td></tr>');\r\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\" height=\"1\" bgcolor=\"#000000\"></TD></TR>');\r\n ShowHTML(' <tr><td align=\"center\" colspan=\"3\">');\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Gravar\">');\r\n if ($P1==0) {\r\n ShowHTML(' <input class=\"STB\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,'tesouraria.php?par=inicial&O=L&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.MontaFiltro('GET')).'\\';\" name=\"Botao\" value=\"Abandonar\">');\r\n } else {\r\n $sql = new db_getMenuData; $RS = $sql->getInstanceOf($dbms,$w_menu);\r\n ShowHTML(' <input class=\"stb\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$R.'&w_copia='.$w_copia.'&O=L&SG='.f($RS,'sigla').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.MontaFiltro('GET')).'\\';\" name=\"Botao\" value=\"Cancelar\">');\r\n }\r\n ShowHTML(' </td>');\r\n \r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Estrutura_Texto_Fecha();\r\n Estrutura_Fecha();\r\n Estrutura_Fecha();\r\n Estrutura_Fecha();\r\n Rodape();\r\n}", "function citrace_post_edition($tableau){\n\t// contourner le cas d'un double appel du pipeline sur la meme table avec la meme action\n\tstatic $actions = array();\n\tif (isset($tableau['args']['table'])){\n\t\t$table = $tableau['args']['table'];\n\t\tif ($actions AND isset($tableau['args']['action']) AND in_array($table.'/'.$tableau['args']['action'],$actions)) \n\t\t\treturn $tableau;\n\t\telse\n\t\t\t$actions[] = $table.'/'.$tableau['args']['action'];\n\t}\n\t\n\t// action sur un article\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_articles') {\n\t \t$id_article = intval($tableau['args']['id_objet']);\n\t\t if ($id_article>0) {\n\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t$row = sql_fetsel('*', 'spip_articles', 'id_article='.$id_article);\n\t\t\t\t$id_rubrique = $row['id_rubrique'];\n\t\t\t\t$article_msg = '('.interdire_scripts(supprimer_numero($row['titre'])).')'.\" - id_rubrique:\".$id_rubrique;\n\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\n\t\t\t\t// instituer un article\n\t\t\t\tif ($tableau['args']['action']=='instituer' AND isset($tableau['args']['statut_ancien'])){\n\t\t \t\tif ($row['statut'] != $tableau['args']['statut_ancien']){\n\t\t\t\t\t\t$article_msg .= \" - statut_new:\".$row['statut'].\" - statut_old:\".$tableau['args']['statut_ancien'].\" - date_publication:\".$row['date'].\" (meta post_dates :\".$GLOBALS['meta'][\"post_dates\"].\")\";\n\t\t\t\t\t\t$action = \"changement de statut de l'article\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t// publication d'un article\n\t\t\t \t\tif ($row['statut'] == 'publie')\n\t\t\t\t\t\t\t$action = \"publication article\";\n\t\t\t\t\t\t// depublication d'un article\n\t\t\t \t\telseif ($tableau['args']['statut_ancien'] == 'publie')\n\t\t\t\t\t\t\t$action = \"depublication article\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// mise a la poubelle d'un article\n\t\t\t \t\tif ($row['statut'] == 'poubelle')\n\t\t\t\t\t\t\t$action = \"poubelle article\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$citrace('article', $id_article, $action, $article_msg, $id_rubrique);\n\t\t \t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// modifier un article\n\t\t\t\telseif ($tableau['args']['action']=='modifier'){\n\t\t\t\t\t// uniquement pour les articles publies\n\t\t \t\tif ($row['statut'] == 'publie')\n\t\t\t\t\t\t$citrace('article', $id_article, 'modification article', $article_msg, $id_rubrique);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n }\t\n\n\t// action sur une rubrique\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_rubriques') {\n\t \t$id_rubrique = intval($tableau['args']['id_objet']);\n\t\t if ($id_rubrique>0) {\n\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t$row = sql_fetsel('*', 'spip_rubriques', 'id_rubrique='.$id_rubrique);\n\t\t\t\t$rubrique_msg = '('.interdire_scripts(supprimer_numero($row['titre'])).')';\n\t\t\t\t\n\t\t\t\t// modifier un rubrique\n\t\t\t\tif ($tableau['args']['action']=='modifier'){\n\t\t\t\t\t// uniquement pour les rubriques publies\n\t\t \t\tif ($row['statut'] == 'publie'){\n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('rubrique', $id_rubrique, 'modification rubrique', $rubrique_msg, $id_rubrique);\n\t\t \t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n }\t\n \n // action sur un document ou une image\n\tif (isset($tableau['args']['operation']) \n\t\tAND ((isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_documents') \n\t\t\tOR (isset($tableau['args']['table_objet']) AND $tableau['args']['table_objet']=='documents'))) {\n\t\t$id_document = intval($tableau['args']['id_objet']);\n\t\tif ($id_document>0) {\n\t\t\t$row = sql_fetsel('*', 'spip_documents', 'id_document='.$id_document);\n\t\t\t$document_msg = '('.$row['fichier'].')';\n\n\t\t // ajout ou remplacement de document ou d'image\n\t\t\tif ($tableau['args']['operation']=='ajouter_document'){\n\t\t\t\t\t\t\t\n\t\t\t\t// le pipeline n'indique pas si c'est un remplacement, aussi il faut indiquer date et maj\n\t\t\t\t$commentaire = $document_msg.\" - champ date:\".$row['date'].\" - champ maj:\".$row['maj'];\n\t\n\t\t\t\t// le pipeline ne passe pas le lien, aussi il faut les indiquer\n\t\t\t\t$commentaire .= \" - liens :\";\n\t\t\t\t$id_rubrique = '';\n\t\t\t\t$res = sql_select('*', 'spip_documents_liens', 'id_document='.$id_document);\n\t\t\t\twhile ($row = sql_fetch($res)){\n\t\t\t\t\t$commentaire .= \" \".$row['objet'].$row['id_objet'];\n\t\t\t\t\tif (!$id_rubrique)\n\t\t\t\t\t\t$id_rubrique = citrace_rubrique_de_objet($row['objet'], $row['id_objet']);\n\t\t\t\t}\n\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t$citrace('document', $id_document, 'ajouter document', $commentaire, $id_rubrique);\n\t\t\t}\n\t\t\t\n\t\t // delier un document ou une image\n\t\t\tif ($tableau['args']['operation']=='delier_document'){\n\t\t\t\tif (isset($tableau['args']['objet']) AND isset($tableau['args']['id'])) {\n\t\t\t\t\t$commentaire = $document_msg.\" - lien : \".$tableau['args']['objet'].$tableau['args']['id'];\n\t\t\t\t\t$id_rubrique = citrace_rubrique_de_objet($tableau['args']['objet'], $tableau['args']['id']);\n\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t$citrace('document', $id_document, 'delier document', $commentaire, $id_rubrique);\n\t\t\t\t}\n\t\t\t}\n\n\t\t // supprimer un document ou une image\n\t\t\tif ($tableau['args']['operation']=='supprimer_document'){\n\t\t\t\t$commentaire = $id_document;\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t$citrace('document', $id_document, 'supprimer document', $commentaire);\n\t\t\t}\n\t\t}\n\t}\n\n\t// action sur un forum\n\tif (isset($tableau['args']['action']) AND in_array($tableau['args']['action'], array('instituer','modifier'))\n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_forum') {\n\n \t$id_forum = intval($tableau['args']['id_objet']);\n\t if ($id_forum>0) {\n\t\t\t$row = sql_fetsel('*', 'spip_forum', 'id_forum='.$id_forum);\n\n\t\t\t// forum public uniquement\n\t\t\tif (substr($row['statut'],0,3)!='pri') {\t\t\t\t\t\t\t\t\n\t\t\t\t$commentaire = 'statut:'.$row['statut'];\n\t\t\t\t$f_objet = '';\n\t\t\t\t$f_id_objet = '';\n\t\t\t\t\n\t\t\t\tif (spip_version()>=3) {\n\t\t\t\t\t$f_objet = $row['objet'];\n\t\t\t\t\t$f_id_objet = $row['id_objet'];\n\t\t\t\t} else {\n\t\t\t\t\tif (intval($row['id_article'])>0){\n\t\t\t\t\t\t$f_objet = 'article';\n\t\t\t\t\t\t$f_id_objet = $row['id_article'];\n\t\t\t\t\t} elseif (intval($row['id_rubrique'])>0){\n\t\t\t\t\t\t$f_objet = 'rubrique';\n\t\t\t\t\t\t$f_id_objet = $row['id_rubrique'];\n\t\t\t\t\t} elseif (intval($row['id_breve'])>0){\n\t\t\t\t\t\t$f_objet = 'breve';\n\t\t\t\t\t\t$f_id_objet = $row['id_breve'];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$accepter_forum = $GLOBALS['meta'][\"forums_publics\"];\n\t\t\t\tif ($f_objet=='article'){\n\t\t\t\t\t$art_accepter_forum = sql_getfetsel('accepter_forum', 'spip_articles', \"id_article = \". intval($f_id_objet));\n\t\t\t\t\tif ($art_accepter_forum)\n\t\t\t\t\t\t$accepter_forum = $art_accepter_forum;\n\t\t\t\t}\n\n\t\t\t\t$commentaire .= \" - lien: \".$f_objet.$f_id_objet.\" (accepter_forum: \".$accepter_forum.\")\";\n\n\t\t\t\t$id_rubrique = citrace_rubrique_de_objet($f_objet, $f_id_objet);\n\t\t\t\t\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t$citrace('forum', $id_forum, ($row['statut']=='publie' ? 'publication ' : 'depublication').'forum', $commentaire, $id_rubrique);\n\t\t\t}\n\t\t}\n }\t\n\t\n\treturn $tableau;\n}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->tf28_i_codigo = ($this->tf28_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_i_codigo\"]:$this->tf28_i_codigo);\n $this->tf28_i_situacao = ($this->tf28_i_situacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_i_situacao\"]:$this->tf28_i_situacao);\n $this->tf28_i_pedidotfd = ($this->tf28_i_pedidotfd == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_i_pedidotfd\"]:$this->tf28_i_pedidotfd);\n if($this->tf28_d_datasistema == \"\"){\n $this->tf28_d_datasistema_dia = ($this->tf28_d_datasistema_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_d_datasistema_dia\"]:$this->tf28_d_datasistema_dia);\n $this->tf28_d_datasistema_mes = ($this->tf28_d_datasistema_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_d_datasistema_mes\"]:$this->tf28_d_datasistema_mes);\n $this->tf28_d_datasistema_ano = ($this->tf28_d_datasistema_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_d_datasistema_ano\"]:$this->tf28_d_datasistema_ano);\n if($this->tf28_d_datasistema_dia != \"\"){\n $this->tf28_d_datasistema = $this->tf28_d_datasistema_ano.\"-\".$this->tf28_d_datasistema_mes.\"-\".$this->tf28_d_datasistema_dia;\n }\n }\n $this->tf28_c_horasistema = ($this->tf28_c_horasistema == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_c_horasistema\"]:$this->tf28_c_horasistema);\n $this->tf28_c_obs = ($this->tf28_c_obs == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_c_obs\"]:$this->tf28_c_obs);\n $this->tf28_i_login = ($this->tf28_i_login == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_i_login\"]:$this->tf28_i_login);\n }else{\n $this->tf28_i_codigo = ($this->tf28_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tf28_i_codigo\"]:$this->tf28_i_codigo);\n }\n }", "function valida_ingreso_ambulatorio_modo_1($id_comprobante,$prestacion,$cantidad){\n\t$query=\"select codigo from facturacion.nomenclador \n\t\t\twhere id_nomenclador='$prestacion'\";\t \n\t$res_codigo_nomenclador=sql($query, \"Error 1\") or fin_pagina();\t\n\t$codigo=$res_codigo_nomenclador->fields['codigo'];\n\t\n\tif(trim($codigo) == 'CT-C021'){\n\t\t//debo saber si alguna vez se al facturo beneficiario el \"CT-C020\"\n\t\t\n\t\t//traigo el id_smiafiliados para buscar el codigo \"CT-C020\"\n\t\t$query=\"select id_smiafiliados from facturacion.comprobante \n\t\t\t\twhere id_comprobante='$id_comprobante'\";\t \n\t\t$res_codigo_nomenclador=sql($query, \"Error 1\") or fin_pagina();\t\n\t\t$id_smiafiliados=$res_codigo_nomenclador->fields['id_smiafiliados'];\n\t\t\n\t\t//busco el codigo \"CT-C020\"\n\t\t$query=\"SELECT id_prestacion\t\t\t\t\n\t\t\t\tFROM nacer.smiafiliados\n \t\t\t\tINNER JOIN facturacion.comprobante ON (nacer.smiafiliados.id_smiafiliados = facturacion.comprobante.id_smiafiliados)\n \t\t\t\tINNER JOIN facturacion.prestacion ON (facturacion.comprobante.id_comprobante = facturacion.prestacion.id_comprobante)\n \t\t\t\tINNER JOIN facturacion.nomenclador ON (facturacion.prestacion.id_nomenclador = facturacion.nomenclador.id_nomenclador)\n \t\t\t\twhere smiafiliados.id_smiafiliados='$id_smiafiliados' and codigo='CT-C020'\";\n \t\t$cant_pres=sql($query, \"Error 3\") or fin_pagina();\n \t\tif ($cant_pres->RecordCount()>=1)return 1;\n \t\telse return 0;\n\t}\n\telse return 1;\n}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->x22_codcalc = ($this->x22_codcalc == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_codcalc\"]:$this->x22_codcalc);\n $this->x22_codconsumo = ($this->x22_codconsumo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_codconsumo\"]:$this->x22_codconsumo);\n $this->x22_exerc = ($this->x22_exerc == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_exerc\"]:$this->x22_exerc);\n $this->x22_mes = ($this->x22_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_mes\"]:$this->x22_mes);\n $this->x22_matric = ($this->x22_matric == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_matric\"]:$this->x22_matric);\n $this->x22_area = ($this->x22_area == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_area\"]:$this->x22_area);\n $this->x22_numpre = ($this->x22_numpre == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_numpre\"]:$this->x22_numpre);\n $this->x22_manual = ($this->x22_manual == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_manual\"]:$this->x22_manual);\n $this->x22_tipo = ($this->x22_tipo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_tipo\"]:$this->x22_tipo);\n if($this->x22_data == \"\"){\n $this->x22_data_dia = ($this->x22_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_data_dia\"]:$this->x22_data_dia);\n $this->x22_data_mes = ($this->x22_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_data_mes\"]:$this->x22_data_mes);\n $this->x22_data_ano = ($this->x22_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_data_ano\"]:$this->x22_data_ano);\n if($this->x22_data_dia != \"\"){\n $this->x22_data = $this->x22_data_ano.\"-\".$this->x22_data_mes.\"-\".$this->x22_data_dia;\n }\n }\n $this->x22_hora = ($this->x22_hora == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_hora\"]:$this->x22_hora);\n $this->x22_usuario = ($this->x22_usuario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_usuario\"]:$this->x22_usuario);\n $this->x22_aguacontrato = ($this->x22_aguacontrato == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_aguacontrato\"]:$this->x22_aguacontrato);\n $this->x22_aguacontratoeconomia = ($this->x22_aguacontratoeconomia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_aguacontratoeconomia\"]:$this->x22_aguacontratoeconomia);\n $this->x22_responsavelpagamento = ($this->x22_responsavelpagamento == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_responsavelpagamento\"]:$this->x22_responsavelpagamento);\n }else{\n $this->x22_codcalc = ($this->x22_codcalc == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"x22_codcalc\"]:$this->x22_codcalc);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->s152_i_codigo = ($this->s152_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_codigo\"]:$this->s152_i_codigo);\n $this->s152_i_cbosprofissional = ($this->s152_i_cbosprofissional == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_cbosprofissional\"]:$this->s152_i_cbosprofissional);\n $this->s152_i_cgsund = ($this->s152_i_cgsund == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_cgsund\"]:$this->s152_i_cgsund);\n $this->s152_i_login = ($this->s152_i_login == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_login\"]:$this->s152_i_login);\n $this->s152_i_pressaosistolica = ($this->s152_i_pressaosistolica == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_pressaosistolica\"]:$this->s152_i_pressaosistolica);\n $this->s152_i_pressaodiastolica = ($this->s152_i_pressaodiastolica == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_pressaodiastolica\"]:$this->s152_i_pressaodiastolica);\n $this->s152_i_cintura = ($this->s152_i_cintura == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_cintura\"]:$this->s152_i_cintura);\n $this->s152_n_peso = ($this->s152_n_peso == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_n_peso\"]:$this->s152_n_peso);\n $this->s152_i_altura = ($this->s152_i_altura == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_altura\"]:$this->s152_i_altura);\n $this->s152_i_glicemia = ($this->s152_i_glicemia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_glicemia\"]:$this->s152_i_glicemia);\n $this->s152_i_alimentacaoexameglicemia = ($this->s152_i_alimentacaoexameglicemia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_alimentacaoexameglicemia\"]:$this->s152_i_alimentacaoexameglicemia);\n if($this->s152_d_dataconsulta == \"\"){\n $this->s152_d_dataconsulta_dia = ($this->s152_d_dataconsulta_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_d_dataconsulta_dia\"]:$this->s152_d_dataconsulta_dia);\n $this->s152_d_dataconsulta_mes = ($this->s152_d_dataconsulta_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_d_dataconsulta_mes\"]:$this->s152_d_dataconsulta_mes);\n $this->s152_d_dataconsulta_ano = ($this->s152_d_dataconsulta_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_d_dataconsulta_ano\"]:$this->s152_d_dataconsulta_ano);\n if($this->s152_d_dataconsulta_dia != \"\"){\n $this->s152_d_dataconsulta = $this->s152_d_dataconsulta_ano.\"-\".$this->s152_d_dataconsulta_mes.\"-\".$this->s152_d_dataconsulta_dia;\n }\n }\n if($this->s152_d_datasistema == \"\"){\n $this->s152_d_datasistema_dia = ($this->s152_d_datasistema_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_d_datasistema_dia\"]:$this->s152_d_datasistema_dia);\n $this->s152_d_datasistema_mes = ($this->s152_d_datasistema_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_d_datasistema_mes\"]:$this->s152_d_datasistema_mes);\n $this->s152_d_datasistema_ano = ($this->s152_d_datasistema_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_d_datasistema_ano\"]:$this->s152_d_datasistema_ano);\n if($this->s152_d_datasistema_dia != \"\"){\n $this->s152_d_datasistema = $this->s152_d_datasistema_ano.\"-\".$this->s152_d_datasistema_mes.\"-\".$this->s152_d_datasistema_dia;\n }\n }\n $this->s152_c_horasistema = ($this->s152_c_horasistema == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_c_horasistema\"]:$this->s152_c_horasistema);\n $this->s152_n_temperatura = ($this->s152_n_temperatura == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_n_temperatura\"]:$this->s152_n_temperatura);\n $this->s152_evolucao = ($this->s152_evolucao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_evolucao\"]:$this->s152_evolucao);\n $this->s152_perimetrocefalico = ($this->s152_perimetrocefalico == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_perimetrocefalico\"]:$this->s152_perimetrocefalico);\n $this->s152_frequenciarespiratoria = ($this->s152_frequenciarespiratoria == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_frequenciarespiratoria\"]:$this->s152_frequenciarespiratoria);\n $this->s152_frequenciacardiaca = ($this->s152_frequenciacardiaca == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_frequenciacardiaca\"]:$this->s152_frequenciacardiaca);\n if($this->s152_dum == \"\"){\n $this->s152_dum_dia = ($this->s152_dum_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_dum_dia\"]:$this->s152_dum_dia);\n $this->s152_dum_mes = ($this->s152_dum_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_dum_mes\"]:$this->s152_dum_mes);\n $this->s152_dum_ano = ($this->s152_dum_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_dum_ano\"]:$this->s152_dum_ano);\n if($this->s152_dum_dia != \"\"){\n $this->s152_dum = $this->s152_dum_ano.\"-\".$this->s152_dum_mes.\"-\".$this->s152_dum_dia;\n }\n }\n $this->s152_saturacao = ($this->s152_saturacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_saturacao\"]:$this->s152_saturacao);\n $this->s152_subjetivo = ($this->s152_subjetivo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_subjetivo\"]:$this->s152_subjetivo);\n }else{\n $this->s152_i_codigo = ($this->s152_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"s152_i_codigo\"]:$this->s152_i_codigo);\n }\n }", "public function getSolusiIdeal()\n\t{\n\t\t$this->aMax = $this->aMin = array();\n\t\t$this->getNilaiTopKriteria();\n\t\t$this->getNilaiTopAlternatif();\n\t\t$this->getMatriksNormalisasiTerbobot();\n\t\t//melakukan iterasi utk setiap kriteria\n\t\tforeach($this->kriteria as $id_kriteria => $a_kriteria) {\n\t\t $this->aMax[$id_kriteria] = 0;\n\t\t $this->aMin[$id_kriteria] = 100;\n\t\t //melakukan iterasi utk setiap alternatif\n\t\t foreach($this->alternatif as $id_alternatif => $nilai){\n\t\t if($this->aMax[$id_kriteria] < $this->matriksNormalisasiTerbobotY[$id_alternatif][$id_kriteria]){\n\t\t $this->aMax[$id_kriteria] = $this->matriksNormalisasiTerbobotY[$id_alternatif][$id_kriteria];\n\t\t }\n\t\t if($this->aMin[$id_kriteria] > $this->matriksNormalisasiTerbobotY[$id_alternatif][$id_kriteria]){\n\t\t $this->aMin[$id_kriteria] = $this->matriksNormalisasiTerbobotY[$id_alternatif][$id_kriteria];\n\t\t }\n\t\t }\n\t\t} \n\t}", "function c_request($varstipus,$origen,$strict=false)\n{\n\tif (!is_array($origen))\t{$origen=merge_request($origen);} \t//en comptes d'un array, passa PG o similar \n\n\t$pattern=array('REAL'=>\"/[^0-9\\.-]/\",'CHAR'=>\"/[^A-Za-z0-9_\\-\\.]/\",'STRING'=>\"/\\\"|'/\");\n\t$varstipus=explode(\",\",$varstipus);\n\tforeach ($varstipus as $vargrup)\n\t{\n\t\t$vargrup=explode(\"=>\",$vargrup);\n\t\t$vars=explode(\"|\",$vargrup[0]);\n\t\t$tipus=trim(strtoupper($vargrup[1]));\n\n\t\tforeach ($vars as $var)\n\t\t{\n\t\t\t$var=trim($var);\n\t\t\tif (isset($origen[$var]))\n\t\t\t{\n\t\t\t\tswitch($tipus)\n\t\t\t\t{\n\t\t\t\t\tcase 'INT':\t//nomès numeros enters\n\t\t\t\t\t\t$origen[$var]=(int)$origen[$var];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 'MQ':\n\t\t\t\t\t\t$origen[$var]=MQ($origen[$var]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 'REAL': //numeros decimals i negatius\n\t\t\t\t\tcase 'CHAR': //nomes texte i números\n\t\t\t\t\tcase 'STRING': //eliminar cometes\n\t\t\t\t\t\t$origen[$var]=preg_replace($pattern[$tipus], $strict?\"_\":\"\", $origen[$var]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t}\n\t}\n\treturn $origen;\n}", "public function pretragaIdeja(){\n $data['kor_ime']=$this->session->get('kor_tip');\n $idejaModel=new IdejaModel();\n $korisnik= $this->request->getVar(\"pretraga\");\n $ideje=$idejaModel->dohvati_ideje_po_korisnickom_imenu($korisnik);\n $data['ideje']=$ideje;\n $this->prikaz('pregled_ideja', $data);\n }", "function comprobanteEstaRepetido($cuie, $periodo, $prestacionid, $idprestacion, $idrecepcion, $datosnomenclador, $elcomprobante, $fechaprestacion, $beneficiario, $idfactura, $idvacuna) {\r\n // repitiendo el id de prestacion interno, cosa que no sucede casi nunca\r\n $query = \"SELECT fc.cuie as cuie, ff.recepcion_id AS idrecepcion, id_debito,fp.id_prestacion\r\n FROM facturacion.factura ff \r\n INNER JOIN facturacion.comprobante fc ON (ff.id_factura = fc.id_factura) \r\n INNER JOIN facturacion.prestacion fp ON (fc.id_comprobante = fp.id_comprobante) \r\n LEFT JOIN facturacion.debito d ON (fc.id_comprobante=d.id_comprobante)\r\n WHERE fc.cuie='$cuie' \r\n AND ff.periodo='$periodo' \r\n AND fc.idprestacion='$prestacionid'\r\n AND fp.id_prestacion<>$idprestacion\";\r\n $resultado = sql($query, \"Error al buscar comprobante repetido\", 0) or excepcion(\"Error al buscar comprobante repetido\");\r\n $ctrl_repetido['debito'] = false;\r\n $yadebitado = $resultado->fields['id_debito'];\r\n $recibidodespues = $resultado->fields['id_prestacion'] < $prestacionid;\r\n if (($resultado->RecordCount() > 0) && !($yadebitado) && $recibidodespues) {\r\n //$var['existe_id'] = 'si';\r\n $idrecepcion_idb = $resultado->fields['idrecepcion'];\r\n if ($idrecepcion_idb != $idrecepcion) {\r\n $ctrl_repetido['msj_error'] = 'ID Prestacion ya existente en el sistema';\r\n $ctrl_repetido['id_error'] = 73;\r\n }\r\n if ($idrecepcion_idb == $idrecepcion) {\r\n $ctrl_repetido['msj_error'] = 'ID Prestacion ya existente en el archivo';\r\n $ctrl_repetido['id_error'] = 74;\r\n }\r\n $ctrl_repetido['debito'] = true;\r\n } else {\r\n if (esNomencladorVacuna($datosnomenclador)) {\r\n\r\n //Controles para los nomencladores que son vacuna\r\n $query = \"SELECT fc.id_comprobante, nro_exp\r\n FROM facturacion.prestacion fp\r\n INNER JOIN facturacion.comprobante fc ON (fc.id_comprobante = fp.id_comprobante)\r\n INNER JOIN facturacion.factura f ON (fc.id_factura=f.id_factura)\r\n WHERE id_prestacion<>$idprestacion\r\n\t\tAND fc.fecha_comprobante=to_date('$fechaprestacion','DD-MM-YYYY')\r\n AND fp.id_nomenclador='\" . $datosnomenclador[0] . \"'\r\n\t\tAND fc.clavebeneficiario='$beneficiario'\r\n AND fc.id_comprobante<>'$elcomprobante'\r\n AND fc.idvacuna='$idvacuna'\r\n\t\tAND fc.id_comprobante NOT IN(\r\n SELECT id_comprobante \r\n FROM facturacion.debito \r\n WHERE id_factura='$idfactura')\";\r\n $resultado = sql($query, \"Error al buscar comprobante repetido\", 0) or excepcion(\"Error al buscar comprobante repetido\");\r\n $recibidodespues = $resultado->fields['id_comprobante'] < $idcomprobante;\r\n if (($resultado->RecordCount() > 0) && ($recibidodespues)) {\r\n $ctrl_repetido['msj_error'] = 'Prestacion liquidada en Expediente: ' . $resultado->fields['nro_exp'];\r\n $ctrl_repetido['id_error'] = 74;\r\n $ctrl_repetido['debito'] = true;\r\n }\r\n } else {\r\n\r\n //Controles para los nomencladores que no son de vacu\r\n $query = \"SELECT fc.id_comprobante, nro_exp\r\n FROM facturacion.prestacion fp\r\n INNER JOIN facturacion.comprobante fc ON (fc.id_comprobante = fp.id_comprobante)\r\n INNER JOIN facturacion.factura f ON (fc.id_factura=f.id_factura)\r\n WHERE id_prestacion<>$idprestacion\r\n\t\tAND fc.fecha_comprobante=to_date('$fechaprestacion','DD-MM-YYYY')\r\n\t\tAND fp.id_nomenclador='\" . $datosnomenclador[0] . \"'\r\n\t\tAND fc.clavebeneficiario='$beneficiario'\r\n AND fc.id_comprobante<>'$elcomprobante'\r\n\t\tAND fc.id_comprobante NOT IN(\r\n SELECT id_comprobante \r\n FROM facturacion.debito \r\n WHERE id_factura='$idfactura')\";\r\n $resultado = sql($query, \"Error al buscar comprobante repetido\", 0) or excepcion(\"Error al buscar comprobante repetido\");\r\n $recibidodespues = $resultado->fields['id_comprobante'] < $idcomprobante;\r\n if (($resultado->RecordCount() > 0) && ($recibidodespues)) {\r\n $ctrl_repetido['msj_error'] = 'Prestacion liquidada en Expediente: ' . $resultado->fields['nro_exp'];\r\n $ctrl_repetido['id_error'] = 74;\r\n $ctrl_repetido['debito'] = true;\r\n }\r\n }\r\n }\r\n return $ctrl_repetido;\r\n}", "function Init_Dossier_AEV_Situation_11($formx) {\n//$AEV_Type = utf8_decode($formx->getFormVar('AEV_Type'));\n//$formx->setVar('L_AEV_Situation',$situation);\n\n\n$ids = $formx->getIDS();\n$id_instance = $formx->getIdInstance();\n$idu = $formx->getVar('ids');\n\neko ($ids);\neko ($id_instance);\neko ($idu);\n\n// On va supprimer tous les fichiers Dossier_Colectomie_Periode_P1 de la table formx\n// $requete=new clRequete(BDD,TABLEFORMX,$param);\n// $sql=$requete->delRecord(\"idformx='Dossier_Colectomie_Periode_P1' and ids='\".$ids.\"'\");\n\n//$param[nomitem] = addslashes(stripslashes($this->getMedecin ( ))) ;\n//$req = new clResultQuery ;\n//$res = $req -> Execute ( \"Fichier\", \"getMatriculeMedecin\", $param, \"ResultQuery\" ) ;\n\n$item=utf8_decode($formx->getVar('L_AEV_Date_Accident_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Date_Accident_Situation_11',date(\"d\").\"-\".date(\"m\").\"-\".date(\"Y\"));\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Heure_Accident_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Heure_Accident_Situation_11',date(\"H\").\":\".date(\"i\"));\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Date_Prophylaxie_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Date_Prophylaxie_Situation_11',date(\"d\").\"-\".date(\"m\").\"-\".date(\"Y\"));\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Heure_Prophylaxie_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Heure_Prophylaxie_Situation_11',date(\"H\").\":\".date(\"i\"));\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Accident_Travail_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Accident_Travail_Situation_11',\"Non\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Accident_Travail_Hyeres_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Accident_Travail_Hyeres_Situation_11',\"Oui\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Accident_Travail_Etablissement_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Accident_Travail_Etablissement_Situation_11',\"\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Source_Nom_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Source_Nom_Situation_11',\"\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Source_Prenom_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Source_Prenom_Situation_11',\"\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Source_Jour_Naissance_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Source_Jour_Naissance_Situation_11',\"\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Source_Mois_Naissance_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Source_Mois_Naissance_Situation_11',\"\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Source_Annee_Naissance_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Source_Annee_Naissance_Situation_11',\"\");\n }\n\n$item=utf8_decode($formx->getVar('L_AEV_Complement_Situation_11'));\nif ( $item == \"\" )\n {\n $formx->setVar('L_AEV_Complement_Situation_11',\"\");\n }\n\nreturn \"O\";\n}", "public function specialisation(){\n\n if( $this->colloque->addSpecialisation(Input::get('specialisation_id') , Input::get('colloque_id')) )\n {\n return Redirect::to('admin/colloque/'.Input::get('colloque_id').'/edit')->with( array('status' => 'success' , 'message' => 'La spécialisation a été lié' ) );\n }\n\n return Redirect::back()->with( array('status' => 'danger' , 'message' => 'Le colloque a déjà la spécialisation') );\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->k04_sequencial = ($this->k04_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_sequencial\"]:$this->k04_sequencial);\n $this->k04_receit = ($this->k04_receit == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_receit\"]:$this->k04_receit);\n $this->k04_codjm = ($this->k04_codjm == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_codjm\"]:$this->k04_codjm);\n if($this->k04_dtini == \"\"){\n $this->k04_dtini_dia = ($this->k04_dtini_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_dtini_dia\"]:$this->k04_dtini_dia);\n $this->k04_dtini_mes = ($this->k04_dtini_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_dtini_mes\"]:$this->k04_dtini_mes);\n $this->k04_dtini_ano = ($this->k04_dtini_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_dtini_ano\"]:$this->k04_dtini_ano);\n if($this->k04_dtini_dia != \"\"){\n $this->k04_dtini = $this->k04_dtini_ano.\"-\".$this->k04_dtini_mes.\"-\".$this->k04_dtini_dia;\n }\n }\n if($this->k04_dtfim == \"\"){\n $this->k04_dtfim_dia = ($this->k04_dtfim_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_dtfim_dia\"]:$this->k04_dtfim_dia);\n $this->k04_dtfim_mes = ($this->k04_dtfim_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_dtfim_mes\"]:$this->k04_dtfim_mes);\n $this->k04_dtfim_ano = ($this->k04_dtfim_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_dtfim_ano\"]:$this->k04_dtfim_ano);\n if($this->k04_dtfim_dia != \"\"){\n $this->k04_dtfim = $this->k04_dtfim_ano.\"-\".$this->k04_dtfim_mes.\"-\".$this->k04_dtfim_dia;\n }\n }\n }else{\n $this->k04_sequencial = ($this->k04_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k04_sequencial\"]:$this->k04_sequencial);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->q23_sequencial = ($this->q23_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_sequencial\"]:$this->q23_sequencial);\n $this->q23_issarqsimples = ($this->q23_issarqsimples == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_issarqsimples\"]:$this->q23_issarqsimples);\n $this->q23_seqreg = ($this->q23_seqreg == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_seqreg\"]:$this->q23_seqreg);\n if($this->q23_dtarrec == \"\"){\n $this->q23_dtarrec_dia = ($this->q23_dtarrec_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_dtarrec_dia\"]:$this->q23_dtarrec_dia);\n $this->q23_dtarrec_mes = ($this->q23_dtarrec_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_dtarrec_mes\"]:$this->q23_dtarrec_mes);\n $this->q23_dtarrec_ano = ($this->q23_dtarrec_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_dtarrec_ano\"]:$this->q23_dtarrec_ano);\n if($this->q23_dtarrec_dia != \"\"){\n $this->q23_dtarrec = $this->q23_dtarrec_ano.\"-\".$this->q23_dtarrec_mes.\"-\".$this->q23_dtarrec_dia;\n }\n }\n if($this->q23_dtvenc == \"\"){\n $this->q23_dtvenc_dia = ($this->q23_dtvenc_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_dtvenc_dia\"]:$this->q23_dtvenc_dia);\n $this->q23_dtvenc_mes = ($this->q23_dtvenc_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_dtvenc_mes\"]:$this->q23_dtvenc_mes);\n $this->q23_dtvenc_ano = ($this->q23_dtvenc_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_dtvenc_ano\"]:$this->q23_dtvenc_ano);\n if($this->q23_dtvenc_dia != \"\"){\n $this->q23_dtvenc = $this->q23_dtvenc_ano.\"-\".$this->q23_dtvenc_mes.\"-\".$this->q23_dtvenc_dia;\n }\n }\n $this->q23_cnpj = ($this->q23_cnpj == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_cnpj\"]:$this->q23_cnpj);\n $this->q23_tiporec = ($this->q23_tiporec == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_tiporec\"]:$this->q23_tiporec);\n $this->q23_vlrprinc = ($this->q23_vlrprinc == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_vlrprinc\"]:$this->q23_vlrprinc);\n $this->q23_vlrmul = ($this->q23_vlrmul == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_vlrmul\"]:$this->q23_vlrmul);\n $this->q23_vlrjur = ($this->q23_vlrjur == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_vlrjur\"]:$this->q23_vlrjur);\n if($this->q23_data == \"\"){\n $this->q23_data_dia = ($this->q23_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_data_dia\"]:$this->q23_data_dia);\n $this->q23_data_mes = ($this->q23_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_data_mes\"]:$this->q23_data_mes);\n $this->q23_data_ano = ($this->q23_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_data_ano\"]:$this->q23_data_ano);\n if($this->q23_data_dia != \"\"){\n $this->q23_data = $this->q23_data_ano.\"-\".$this->q23_data_mes.\"-\".$this->q23_data_dia;\n }\n }\n $this->q23_vlraut = ($this->q23_vlraut == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_vlraut\"]:$this->q23_vlraut);\n $this->q23_nroaut = ($this->q23_nroaut == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_nroaut\"]:$this->q23_nroaut);\n $this->q23_codbco = ($this->q23_codbco == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_codbco\"]:$this->q23_codbco);\n $this->q23_codage = ($this->q23_codage == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_codage\"]:$this->q23_codage);\n $this->q23_codsiafi = ($this->q23_codsiafi == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_codsiafi\"]:$this->q23_codsiafi);\n $this->q23_codserpro = ($this->q23_codserpro == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_codserpro\"]:$this->q23_codserpro);\n $this->q23_anousu = ($this->q23_anousu == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_anousu\"]:$this->q23_anousu);\n $this->q23_mesusu = ($this->q23_mesusu == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_mesusu\"]:$this->q23_mesusu);\n $this->q23_acao = ($this->q23_acao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_acao\"]:$this->q23_acao);\n }else{\n $this->q23_sequencial = ($this->q23_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"q23_sequencial\"]:$this->q23_sequencial);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->k107_sequencial = ($this->k107_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_sequencial\"]:$this->k107_sequencial);\n $this->k107_empagemov = ($this->k107_empagemov == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_empagemov\"]:$this->k107_empagemov);\n if($this->k107_data == \"\"){\n $this->k107_data_dia = ($this->k107_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_data_dia\"]:$this->k107_data_dia);\n $this->k107_data_mes = ($this->k107_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_data_mes\"]:$this->k107_data_mes);\n $this->k107_data_ano = ($this->k107_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_data_ano\"]:$this->k107_data_ano);\n if($this->k107_data_dia != \"\"){\n $this->k107_data = $this->k107_data_ano.\"-\".$this->k107_data_mes.\"-\".$this->k107_data_dia;\n }\n }\n $this->k107_valor = ($this->k107_valor == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_valor\"]:$this->k107_valor);\n $this->k107_ctacredito = ($this->k107_ctacredito == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_ctacredito\"]:$this->k107_ctacredito);\n $this->k107_ctadebito = ($this->k107_ctadebito == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_ctadebito\"]:$this->k107_ctadebito);\n }else{\n $this->k107_sequencial = ($this->k107_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"k107_sequencial\"]:$this->k107_sequencial);\n }\n }", "function ambas()\n {\n print \"Ejecución de la función ambas<br>\";\n # mediante $this-> requerimos la ejecución de metodo prueba\n # de la clase actual\n $this->prueba();\n # al señalar parent:: requerimos la ejecución de metodo prueba\n # de la clase padre\n parent::prueba();\n }", "function addFormation($bdd, $notheme, $nosalle, $libelle, $datedeb, $heuredeb, $datefin, $heurefin, $intervention, $objectif, $prerequis, $contenu, $prixrepas, $nbreplaces)\n\t\t{\n\t\tif($objectif!=\"\"){\n\t\t\ttry{\n\t\t\t//ENVOI DE LA REQUETE A LA BDD\n\t\t\t$req = $bdd->prepare('INSERT INTO formation(NO_THEME, NO_SALLE, LIBELLE, DATE_DEB, HEURE_DEB, DATE_FIN, HEURE_FIN, INTERVENTION, OBJECTIF, PREREQUIS, CONTENU, PRIX_REPAS, NOMBRE_PLACE) VALUES(:NO_THEME, :NO_SALLE, :LIBELLE, :DATE_DEB, :HEURE_DEB, :DATE_FIN, :HEURE_FIN, :INTERVENTION, :OBJECTIF, :PREREQUIS, :CONTENU, :PRIX_REPAS, :NOMBRE_PLACE)');\n\t\t\t\t\t\t$req->execute(array(\n\t\t\t\t\t\t\t'NO_THEME'=>$notheme,\n\t\t\t\t\t\t\t'NO_SALLE'=>$nosalle,\n\t\t\t\t\t\t\t'LIBELLE'=>$libelle,\n\t\t\t\t\t\t\t'DATE_DEB'=>$datedeb,\n\t\t\t\t\t\t\t'HEURE_DEB'=>$heuredeb,\n\t\t\t\t\t\t\t'DATE_FIN'=>$datefin,\n\t\t\t\t\t\t\t'HEURE_FIN'=>$heurefin,\n\t\t\t\t\t\t\t'INTERVENTION'=>$intervention,\n\t\t\t\t\t\t\t'OBJECTIF'=>$objectif,\n\t\t\t\t\t\t\t'PREREQUIS'=>$prerequis,\n\t\t\t\t\t\t\t'CONTENU'=>$contenu,\n\t\t\t\t\t\t\t'PRIX_REPAS'=>$prixrepas,\n\t\t\t\t\t\t\t'NOMBRE_PLACE'=>$nbreplaces\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t \n\t\t\t\t\t\techo \"<div id='principal' class='container_12'>La formation a bien été ajouté. cliquez <a href='./accueil.php'>ici</a> pour retourner a la page d'accueil.</div>\";\n\n\t\t\t}catch(Exception $e){echo \"<div id='principal' class='container_12'>Une erreur lié aux données saisie empéche l'ajout du membre.<a href='http://localhost/ppec/accueil.php?content=creerFormation'>ici</a> pour retourner remplir le formulaire.</div>\";}\n\t\t}else{echo \"<div id='principal' class='container_12'>Le formulaire est vide. cliquez <a href='./accueil.php?content=creerFormation'>ici</a> pour retourner remplir le formulaire.</div>\";}\n\t\t\n\t\t\n\t\t\n\t}", "function citrace_pre_edition($tableau){\n\tstatic $actions = array();\n\tif (isset($tableau['args']['table'])){\n\t\t$table = $tableau['args']['table'];\n\t\tif ($actions AND isset($tableau['args']['action']) AND in_array($table.'/'.$tableau['args']['action'],$actions)) \n\t\t\treturn $tableau;\n\t\telse\n\t\t\t$actions[] = $table.'/'.$tableau['args']['action'];\n\t}\n\n\t// changement de rubrique pour un article publie\n\tif (isset($tableau['args']['action']) AND $tableau['args']['action']=='instituer' \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_articles') {\n\t \t$id_article = intval($tableau['args']['id_objet']);\n\t\t if ($id_article>0) {\n\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t$row = sql_fetsel('*', 'spip_articles', 'id_article='.$id_article);\n\t\t\t\tif ($row){\n\t\t\t\t\t$old_rubrique = $row['id_rubrique'];\n\t\t\t\t\tif ($row['statut']=='publie'){\n\t\t\t\t\t\t$new_rubrique = (isset($tableau['data']['id_rubrique']) ? intval($tableau['data']['id_rubrique']) : 0);\n\t\t\n\t\t\t \t\tif ($new_rubrique>=1 AND $new_rubrique!=$old_rubrique){\n\t\t\t\t\t\t\t$commentaire = '('.interdire_scripts(supprimer_numero($row['titre'])).')'.\" - id_rubrique_new:\".$new_rubrique.\" - id_rubrique_old:\".$old_rubrique;\n\t\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t\t$citrace('article', $id_article, 'changement de rubrique pour article', $commentaire, $new_rubrique);\n\t\t\t \t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n }\t\n\n\t// changement de statut ou de l'email d'un auteur\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_auteurs') {\n\n \t$id_auteur = intval($tableau['args']['id_objet']);\n\t if ($id_auteur>0) {\n\t\t\tinclude_spip('inc/texte');\n\t\t\t$row = sql_fetsel('*', 'spip_auteurs', 'id_auteur='.$id_auteur);\n\t\t\tif ($row){\n\t\t\t\t// changement de statut d'un auteur\n\t\t\t\tif ($tableau['args']['action']=='instituer'){\n\t\t\t\t\t$old_statut = $row['statut'];\n\t\t\t\t\t$new_statut = (isset($tableau['data']['statut']) ? $tableau['data']['statut'] : '');\n\t\t\t\t\t$old_webmestre = $row['webmestre'];\n\t\t\t\t\t$new_webmestre = (isset($tableau['data']['webmestre']) ? $tableau['data']['webmestre'] : '');\n\t\n\t\t \t\tif ($new_statut AND $new_statut!=$old_statut){\n\t\t\t\t\t\t$commentaire = interdire_scripts(supprimer_numero($row['nom']))\n\t\t\t\t\t\t.' ('.interdire_scripts($row['email']).')'\n\t\t\t\t\t\t.\" - statut_new:\".$new_statut.\" - statut_old:\".$old_statut \n\t\t\t\t\t\t.\" - webmestre_new:\".$new_webmestre.\" - webmestre_old:\".$old_webmestre;\n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('auteur', $id_auteur, \"changement de statut pour l'auteur\", $commentaire);\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// modifier l'email d'un auteur\n\t\t\t\tif ($tableau['args']['action']=='modifier'){\n\t\t\t\t\t$old_email = $row['email'];\n\t\t\t\t\t$new_email = (isset($tableau['data']['email']) ? $tableau['data']['email'] : '');\n\t\n\t\t \t\tif ($new_email!=$old_email){\n\t\t\t\t\t\t$commentaire = '('.interdire_scripts(supprimer_numero($row['nom'])).')'\n\t\t\t\t\t\t.\" - email_new:\".$new_email.\" - email_old:\".$old_email; \n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('auteur', $id_auteur, \"changement d'email pour l'auteur\", $commentaire);\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\t\n \n\t// changement de date de publication (ou de depublication) d'un article\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_articles') {\n\t \t$id_article = intval($tableau['args']['id_objet']);\n\t\t if ($id_article>0) {\n\t\t \t// lors du changement de statut, la date de publication est tracee par le pipeline post_edition\n\t\t \t// aussi ne pas doublonner\n\t \t\tif (!isset($tableau['data']['statut']) OR !isset($tableau['args']['statut_ancien']) OR $tableau['data']['statut'] == $tableau['args']['statut_ancien']){\n\t\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t\t$row = sql_fetsel('*', 'spip_articles', 'id_article='.$id_article);\n\t\t\t\t\t$date_old = $row['date'];\n\t\t\t\t\t$id_rubrique = $row['id_rubrique'];\n\t\t\t\t\n\t\t\t\t\tif (isset($tableau['data']['date']) AND $date_old != $tableau['data']['date']){\n\t\t\t\t\t\t$article_msg = '('.interdire_scripts(supprimer_numero($row['titre'])).')'.\" - id_rubrique:\".$id_rubrique;\n\t\t\t\t\t\t$article_msg .= \" - date_publication:\".$tableau['data']['date'].\" - date_publication_old:\".$date_old.\" (meta post_dates :\".$GLOBALS['meta'][\"post_dates\"].\")\";\n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('article', $id_article, 'modifier_date', $article_msg, $id_rubrique);\t\t\t\t\t\n\t\t\t\t\t}\n\t \t\t}\n\t\t }\n }\n\n\treturn $tableau;\n}", "function formulaires_deleguer_traiter_dist() {\n // $mes_saisies = mes_saisies_film();\n \n // Traitement des données reçues du formulaire, \n // par mail par ex ou insertion dans une base\n // ...\n \n // S'il y a des erreurs, elles sont retournées au formulaire\n // return array('message_erreur'=>'Le film n\\'a pas été enregistré');\n \n // Sinon, le message de confirmation est envoyé\n return array('message_ok'=>'Le film a été enregistré');\n}", "function mostrarProyecto(){\n\n $cod_proyecto = isset($_REQUEST['cod_proyecto'])?$_REQUEST['cod_proyecto']:0;\n// var_dump($_REQUEST);exit;\n if ($cod_proyecto > 0){\n //iniciamos las validaciones\n $estudiantes_pendientes = $this->consultarEstudiantesParaHomologacion($cod_proyecto);\n if(is_array($estudiantes_pendientes) && count($estudiantes_pendientes)>0){\n for($i=0;$i<count($estudiantes_pendientes);$i++){\n $codEstudiante[$i] = $estudiantes_pendientes[$i]['COD_ESTUDIANTE'];\n }\n $this->mostrarEstudiantesProyecto($estudiantes_pendientes,$codEstudiante); \n \n }\n \n }else{\n $mensaje = \"Proyecto Curricular no valido\";\n echo $mensaje;\n\n }\n \n }", "public function fixObject(){\n\t\t//Ex : cadre et texte d'entete\n\t}", "function moviextranjeros($ejer,$poli){\n\t\t\t$sql=$this->query(\"select m.*,c.manual_code from cont_polizas p,cont_movimientos m,cont_accounts c,cont_config con\n\t\t\twhere m.IdPoliza=p.id and m.Cuenta=c.`account_id` and c.currency_id!=1 and m.Activo=1 and c.main_father!=con.CuentaBancos\n\t\t\t and p.idejercicio=\".$ejer.\" and p.id=\".$poli);\n\t\t\t \n\t\t\treturn $sql;\n\t\t\t\n\t\t}", "public static function Najdi_kolize_pro_formular ($iducast, $formular ) {\r\n $query= \"SELECT * FROM s_typ_kolize WHERE formular='\" . $formular . \"' and valid\" ;\r\n $kolize_pole = self::Najdi_kolize ($query,$iducast) ;\r\n \r\n //echo(\"<br>\" . $formular . \"<br>\");\r\n //var_dump ($kolize_pole);\r\n return $kolize_pole; \r\n}", "function _ObtenerSecciones()\n\t{\n\t\tinclude_once('../Entidades/Secciones.php');\n\t\t$OBJUsuarios = new Secciones;\n\t\t$secciones=$OBJUsuarios -> ObtenerSeccionesparaCategorias();\n\n\n\t\tif ($secciones>=0) {\n\t\t\t\n\t\t\t$privilegios = $_SESSION['privilegios'];\n\t\t\t\n\t\t\tinclude_once('../ModuloAdministrador/vistas/FormularioCategorias.php');\n\t\t\t$OBJUsuarios = new FormularioCategorias;\n\t\t\t$OBJUsuarios -> MostrarFormularioCategorias($secciones,$privilegios);\n\n\t\t}\n\n\t\telse{\n\n\t\t\t\t $mensaje=\"llame al administrador o contacte a [email protected]\";\n\t\t\t\t include('../includes/FormularioMensaje.php');\n\t\t\t\t $objmen = new FormularioMensaje;\n \t $objmen->MostrarMensajeLogin($mensaje);\n\n\t\t}\n\t}" ]
[ "0.6583558", "0.59340084", "0.58787465", "0.58018583", "0.5746588", "0.5687177", "0.5678895", "0.5674511", "0.56635815", "0.5627363", "0.5579482", "0.5566939", "0.55437785", "0.54841876", "0.54831004", "0.54487294", "0.54382306", "0.54376984", "0.54358697", "0.5434033", "0.5429464", "0.54281753", "0.54234976", "0.5420114", "0.5410301", "0.5396853", "0.53823173", "0.53806895", "0.5380595", "0.5370464", "0.53462064", "0.5345024", "0.5338635", "0.5329954", "0.53287333", "0.5322369", "0.5321544", "0.5315453", "0.5308483", "0.530759", "0.5306353", "0.5301811", "0.52963734", "0.5295186", "0.528953", "0.5288761", "0.52882177", "0.52844316", "0.5280507", "0.52774405", "0.52683145", "0.52597874", "0.523964", "0.5238111", "0.52340686", "0.5233984", "0.52317566", "0.52303344", "0.5229465", "0.52227163", "0.52159", "0.5214743", "0.5212231", "0.5208185", "0.5207255", "0.520637", "0.52062654", "0.52037615", "0.52025145", "0.5196877", "0.5196609", "0.51909834", "0.51899713", "0.51899713", "0.5189694", "0.5189356", "0.5185604", "0.51834446", "0.5182611", "0.5177751", "0.5175965", "0.5156697", "0.5151394", "0.5150837", "0.51505", "0.5147482", "0.5145307", "0.51442015", "0.5141575", "0.5141253", "0.5140345", "0.51398754", "0.5132847", "0.51309", "0.5127355", "0.51271665", "0.51268995", "0.5123281", "0.5123164", "0.51218086", "0.51202893" ]
0.0
-1
/ RANGO DE FECHA SEMANA LUNES A DOMINGO MEDIANTE NUMERO SEMANA COBRANZA
function getEndDateWeek($week, $year) { $dto = new DateTime(); $dto->setISODate($year, $week); $ret['week_start'] = $dto->format('Y-m-d'); $dto->modify('+6 days'); $ret['week_end'] = $dto->format('Y-m-d'); $ultimo_dia_semana = $dto->format('Y-m-d'); return $ultimo_dia_semana; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }", "function votoMedio($nome) {\n\t$rows = selectVotoMedio($nome);\n\t$voto = 0;\n\tforeach ($rows as $row){\n\t\t$voto = $row[\"votoMedio\"];\n\t}\n\t$votoFormattato = number_format($voto, 1);\n\treturn $votoFormattato;\n}", "public function rgveda_verse_modern($gra) {\n $data = [\n [1,191,1,1,191],\n [192,234,2,1,43],\n [235,295,3,1,62],\n [297,354,4,1,58],\n [355,441,5,1,87],\n [442,516,6,1,75],\n [517,620,7,1,104],\n [621,668,8,1,48],\n [1018,1028,8,59,59], //Vālakhilya hymns 1—11\n [669,712,8,60,103],\n [713,826,9,1,114],\n [827,1017,10,1,191]\n ];\n for($i=0;$i<count($data);$i++) {\n list($gra1,$gra2,$mandala,$hymn1,$hymn2) = $data[$i];\n if (($gra1 <= $gra) && ($gra<=$gra2)) {\n $hymn = $hymn1 + ($gra - $gra1);\n $x = \"$mandala.$hymn\";\n return $x;\n }\n }\n return \"?\"; // algorithm failed\n}", "function random_numbers($ms) {\n\t\t\t\t\n\t\t\t\t$n = rand(0, $ms);\n\t\t\t\t\n\t\t\t\treturn $n;\n\t\t\t\t\n\t\t\t}", "function promedio_general($vector){ \n $promedio=0;\n foreach ($vector as $key => $value) {\n foreach ($value as $c => $n) {\n $promedio=$promedio+$n;\n }\n }\n return ($promedio/10);\n }", "function generar_numdmes($m){\n\tswitch ($m) {\n\t\tcase \"enero\": $m = \"01\"; break;\n\t\tcase \"febrero\": $m = \"02\"; break;\n\t\tcase \"marzo\": $m = \"03\"; break;\n\t\tcase \"abril\": $m = \"04\"; break;\n\t\tcase \"mayo\": $m = \"05\"; break;\n\t\tcase \"junio\": $m = \"06\"; break;\n\t\tcase \"julio\": $m = \"07\"; break;\n\t\tcase \"agosto\": $m = \"08\"; break;\n\t\tcase \"setiembre\": $m = \"09\"; break;\n\t\tcase \"octubre\": $m = \"10\"; break;\n\t\tcase \"noviembre\": $m = \"11\"; break;\n\t\tcase \"diciembre\": $m = \"12\"; break;\n\t\tdefault:\n\t\tprint \"<br/>Error: $m no tiene respuesta<br/>\"; break;\n\t}\n\treturn $m;\n}", "function contarSemestresTranscurridos($semestre_ingreso){\r\n $cantidad='';\r\n $anio_actual=date('Y');\r\n if(date('m')<=6){\r\n $semestre_actual=1;\r\n }else{\r\n $semestre_actual=2;\r\n }\r\n $periodo_actual =$anio_actual.$semestre_actual;\r\n if($periodo_actual>=$semestre_ingreso){\r\n $cantidad = $this->calcularCantidadSemestres($semestre_ingreso,$periodo_actual);\r\n }\r\n if ($this->datosEstudiante['CARRERA']==97)\r\n $cantidad=round($cantidad/2);\r\n return $cantidad;\r\n }", "public function getNomorUrut(){\n $next_nomor_urut = DB::table('wp_wr')->max('wp_wr_no_urut');\n // $next_nomor_urut = DB::table('wp_wr')->max('wp_wr_no_urut');\n $next_nomor_urut++;\n // $next_nomor_urut = DB::table('wp_wr')->select(DB::raw('COALESCE(MAX(wp_wr_no_urut::INT),0) + 1'))->get();\n\n // print_r($next_nomor_urut);\n if (!empty($next_nomor_urut) && $next_nomor_urut <= 9999999) {\n if (strlen($next_nomor_urut) < 7) {\n $selisih = 7 - strlen($next_nomor_urut);\n for ($i = 1; $i <= $selisih; $i++) {\n $next_nomor_urut = \"0\" . $next_nomor_urut;\n }\n }\n return $next_nomor_urut;\n } elseif ($next_nomor_urut > 9999999) {\n return \"salah\";\n }\n }", "function kalorinormal($g, $tb){\n\tif($g == \"Pria\"){\n\t\t$kb = beratbadanideal($tb, $g) * 30;\n\t}else if($g == \"Wanita\"){\n\t\t$kb = beratbadanideal($tb, $g) * 25;\n\t}\nreturn $kb;\n}", "public function smanjiCenu(){\n if($this->getGodiste() < 2010){\n $discount=$this->cenapolovnogauta*0.7;\n return $this->cenapolovnogauta=$discount;\n }\n return $this->cenapolovnogauta; \n }", "function getMerezcoTarjeta(){\n\t\tif($this->numero_cambio >= 3)\n\t\t\t$necesito=2;\n\t\telse\n\t\t\t$necesito=1;\n\t\t\n\t\tif($necesito <= $this->sacar_tarjeta){\n\t\t\t$this->sacar_tarjeta=0;\n\t\t\treturn 1;\n\t\t}\n\t\telse{\n\t\t\t$this->sacar_tarjeta=0;\n\t\t\treturn 0;\n\t\t}\n\t}", "function rp($nominal) {\n //mengupdate nominal menjadi string, takutnya yang dimasukkan bertipe data int (angka)\n //mengeset string kosong buat penampung nanti, dan counter $c = 0\n $nominal = strval($nominal); $r = ''; $c = 0;\n $nominal = explode('.', $nominal); //memisah jika terdapat titik, takutnya ada titik seperti 4000.00\n $nominal = $nominal[0]; //mengambil data index pertama sebelum titik, berarti mengambil 4000-nya\n $nominal = explode('-', $nominal); //jika ada tanda minus di depan, maka akan dipecah lagi berdasarkan tanda minus tsb\n if (sizeof($nominal)>1) { //jika ternyata array yang dihasilkan oleh pemecahan tanda minus berjumlah lebih dari 1, berarti angka tersebut memang minus\n $min = '-'; $nominal = $nominal[1]; //dilakukan pemisahan dengan index 0 nin dan nominalnya di array index 1\n } else {\n $min = ''; $nominal = $nominal[0]; //jika tidak, maka memang bukan angka minus dan $min diset string kosong agar tidak berpengaruh saat direturn\n }\n for ($x=strlen($nominal)-1; $x>=0; $x--) { //diulang sebanyak string tapi dari belakang\n $r = $nominal[$x].$r; $c++; //menambah string kosong $r dengan index nominal dari belakang sambil menambah counter ($c)\n //jika counter kelipatan 3, maka saatnya ditambahkan dengan titik\n //misalnya 10000000, maka tiap perulangan 3x dari belakang akan ditambah titik, sehingga menjadi 10.000.000\n if ($c%3==0 & $x>0) $r = \".\".$r;\n }\n //mereturn hasil tadi, dengan tanda minusnya, tetapi jika tidak minus makan tidak akan mengganggu, karena variabel $min diisi string kosong di atas\n //return ditambahkan dengan ,00 dibelakang dan tanda Rp di depan sehingga berformat Rp ##.###,00\n return 'Rp '.$min.$r.',00';\n}", "function NUMERO_LUNES_FECHA($_ARGS) {\r\n\t$_FECHA_EGRESO = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif (ESTADO($_ARGS) == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['HASTA']) list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\telse list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']);\r\n\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t} else {\r\n\t\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mi-$ai\";\t$diai = (int) $di;\r\n\t\t\t\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t}\r\n\t}\r\n\telse {\r\n\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_FECHA_EGRESO);\r\n\t\t\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t} else {\t\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mp-$ap\";\t$diai = (int) $di;\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$lunes = 0;\r\n\tfor ($dia=$dia_inicio; $dia<=$dia_fin; $dia++) {\r\n\t\tif ($dia_semana == 7) $dia_semana = 0;\r\n\t\tif ($dia_semana == 1) $lunes++;\r\n\t\t$dia_semana++;\r\n\t}\r\n\treturn $lunes;\r\n}", "function gl_dijagonala_sve_jedinice($matrica)\n{\n\t// echo ( napravi_tabelu( $matrica ) );\n\t/*\t\n\tif($matrica[$r][$r] != 1)\n\t{\n\t\t$x = $matrica[$r][$r];\n\t\t// print_r($matrica[$r][$r]); echo \", \";\n\t\t// exit();\n\t\t\n\t\tfor($k = 0; $k < count($matrica) + 1; $k++)\n\t\t{\n\t\t\tif($matrica[$r][$k] != 0)\n\t\t\t{\n\t\t\t\t$matrica[$r][$k] = $matrica[$r][$k] / $x;\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\t\n\tfor($r = 0; $r < count($matrica); $r++)\n\t{\n\t\tif($matrica[$r][$r] != 1)\n\t\t{\n\t\t\t$x = $matrica[$r][$r];\n\t\t\t// print_r($matrica[$r][$r]); echo \", \";\n\t\t\t// exit();\n\n\t\t\t// podela citavog reda matrice sa vrednoscu njegove glavne idjagonale\n\t\t\tfor($k = 0; $k < count($matrica) + 1; $k++)\n\t\t\t{\n\t\t\t\tif($matrica[$r][$k] != 0)\n\t\t\t\t{\n\t\t\t\t\t$matrica[$r][$k] = $matrica[$r][$k] / $x;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $matrica;\n}", "public static function redondearDian($numero)\n {\n $resultado = 0;\n $parte_entera = $numero;\n $parte_decimal = 0;\n $siguiente_menos_significativo = 0;\n $segundo__siguiente_menos_significativo = 0;\n $digito_menos_significativo = 0;\n\n $pos = strpos($numero, '.');\n\n if ($pos !== false) { //si contiene decimales\n $parte_numero = explode(\".\", $numero); //separamos decimales separados por coma\n $parte_entera = $parte_numero[0];\n $parte_decimal = $parte_numero[1];\n }\n\n if (strlen($parte_decimal) <= 2) {\n $resultado = $numero;\n } else //si es mayor o igual que 3\n {\n\n $siguiente_menos_significativo = $parte_decimal[2]; //cogemos el tercer digito de la parte decimal\n\n if ($siguiente_menos_significativo >= 0 && $siguiente_menos_significativo <= 4) {\n $digito_menos_significativo = $parte_decimal[0] .$parte_decimal[1];\n }\n\n if ($siguiente_menos_significativo >= 6 && $siguiente_menos_significativo <= 9) {\n $digito_menos_significativo = ($parte_decimal[0] . $parte_decimal[1]) + 1;\n }\n\n if ($siguiente_menos_significativo == 5) {\n\n if (strlen($parte_decimal) == 3) {\n $segundo__siguiente_menos_significativo = 0;\n } else {\n $segundo__siguiente_menos_significativo = $parte_decimal[3];\n }\n\n if ($segundo__siguiente_menos_significativo % 2 == 0) { //si es par redondea hacia abajo\n $digito_menos_significativo = $parte_decimal[0] .$parte_decimal[1];\n } else {\n $digito_menos_significativo = ($parte_decimal[0] . $parte_decimal[1]) + 1; //si es impar se redondea hacia arriva\n }\n }\n\n $resultado = $parte_entera . \".\" . $digito_menos_significativo;\n }\n\n\n return $resultado;\n }", "function rola_dado_simples($qtd, $codDado){\n\t$i = 0; $j = 1;\n\t$resultado = 0;\n\n\t$populacao = array();\n\t$limite = $codDado * 10;\n\n\t//Funcao que espalha os numeros do intervalo a ser rolado em um array\n\twhile($i < $limite){\n\n\t\tif($j > $codDado){\n\t\t\t$j = 1;\n\t\t}\n\n\t\tarray_push($populacao, $j);\n\n\t\t$j++;\n\t\t$i++;\n\t}\n\n\t$i = 0;\n\t$pos1 = 0;\n\t$pos2 = 0;\n\t$temp = 0;\n\n\t//Embaralha os numeros da população e acumula o resultado das rolagens\n\twhile($i < $limite){\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\t$delay = rand(1, 1000);\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos1 = rand(0, ($limite-1));\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos2 = rand(0, ($limite-1));\n\n\t\t$temp = $populacao[$pos1];\n\n\t\t//troca os valores de lugar\n\t\t$populacao[$pos1] = $populacao[$pos2];\n\t\t$populacao[$pos2] = $temp;\n\n\t\t$i++;\n\t}\n\n\t//Acumula o resultado das rolagens\n\t$i = 0;\n\twhile($i < $qtd){\n\t\t$resultado += $populacao[rand(1, $codDado)];\n\t\t$i++;\n\t}\n\n\treturn $resultado;\n}", "private function _getMCScaricoSalita()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n $mc+=$arredo->getMCScaricoSalita();\n }\n //TODO arrotondamento\n return $mc;\n }", "function normalisasi(){\n\n\t\tglobal $ruan;\n\t\tglobal $test;\n\t\tglobal $target;\n\t\tglobal $minR;\n\t\tglobal $maxR;\n\t\tglobal $minT;\n\t\tglobal $maxT;\n\t\tglobal $ruanNorm;\n\t\tglobal $testNorm;\n\t\tglobal $targetNorm;\n\t\t\n\t\tfor ($x=0; $x < count($ruan); $x++) { \n\t\t\t\n\t\t\t$ruanNorm[$x] = ($ruan[$x]-$minR)/($maxR-$minR); //rumus normalisasi rata2 uan\n\t\t\t$testNorm[$x] = ($test[$x]-$minT)/($maxT-$minT);\n\n\t\t\techo $ruanNorm[$x].\"</br>\";\n\t\t\techo $testNorm[$x].\"</br>\";\n\t\t\t\n\t\t\tif ($target[$x] == \"IPA\") {\n\t\t\t\t$targetNorm[$x][0] = 1;\n\t\t\t\t$targetNorm[$x][1] = 0;\n\t\t\t} else if( $target[$x] == \"IPS\"){\n\t\t\t\t$targetNorm[$x][0] = 0;\n\t\t\t\t$targetNorm[$x][1] = 1;\n\t\t\t}\n\n\t\t\t////////////////////////\n\t\t\t// tampilkan normalisasi\n\t\t\t////////////////////////\n\t\t\t\n\t\t\tfor ($i=0; $i < 2; $i++) { \n\t\t\t\techo $targetNorm[$x][$i];\n\t\t\t\tif ($i == 1) {\n\t\t\t\t\techo \"</br></br>\";\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t}\n\n\t}", "public function NIVEL_ED(){\n $ch12 = $this->caracteristicas->CH12;\n $ch13 = $this->caracteristicas->CH13;\n $ch10 = $this->caracteristicas->CH10;\n if($ch10 == 3)\n {\n return 0;\n }\n if ($ch12 == 1 && $ch13 == 1) {\n return 1;\n }\n if ($ch12 == 2 && $ch13 == 1) {\n return 1;\n }\n if ($ch12 == 3 && $ch13 == 1) {\n return 1;\n }\n if ($ch12 == 4 && $ch13 == 1) {\n return 1;\n }\n if ($ch12 == 5 && $ch13 == 2) {\n return 1;\n }\n if ($ch12 == 6 && $ch13 == 2) {\n return 1;\n }\n //\n if ($ch12 == 5 && $ch13 == 1) {\n return 2;\n }\n if ($ch12 == 6 && $ch13 == 1) {\n return 2;\n }\n //\n if ($ch12 == 7 && $ch13 == 2) {\n return 3;\n }\n if ($ch12 == 8 && $ch13 == 2) {\n return 3;\n }\n if ($ch12 == 9 && $ch13 == 2) {\n return 3;\n }\n if ($ch12 == 10 && $ch13 == 2) {\n return 3;\n }\n //\n if ($ch12 == 7 && $ch13 == 1) {\n return 4;\n }\n if ($ch12 == 8 && $ch13 == 1) {\n return 4;\n }\n if ($ch12 == 9 && $ch13 == 1) {\n return 4;\n }\n if ($ch12 == 10 && $ch13 == 1) {\n return 4;\n }\n //\n if ($ch12 == 11 && $ch13 == 2) {\n return 5;\n }\n if ($ch12 == 12 && $ch13 == 2) {\n return 5;\n }\n //\n if ($ch12 == 11 && $ch13 == 1) {\n return 6;\n }\n if ($ch12 == 12 && $ch13 == 1) {\n return 6;\n }\n //\n if ($ch12 == 13 && $ch13 == 2) {\n return 7;\n }\n if ($ch12 == 13 && $ch13 == 1) {\n return 8;\n }\n if ($ch13 == 9 || $ch13 == 0) {\n return 9;\n }\n }", "function matricularVehiculo(){\r\n $mat_aleatoria= rand();\r\n\r\n $enc=false;\r\n $pos=0;\r\n for($i=0;$i<count($this->vehiculos)&&($enc==false;$i++){\r\n if($this->vehículos[$i]!= null){\r\n if($this->vehículos[$i]!= null){\r\n $this->vehiculos[$i]->setMatricula($mat_aleatoria);\r\n $enc=true;\r\n $pos=$i;\r\n }\r\n } \r\n } \r\n return $this->vehiculos[$pos];\r\n }", "function matricularVehiculo(){\r\n $matricula _aleatoria = rand();\r\n\r\n $encontrado = false;\r\n for ($i=0; $i< count ($this->vehiculos) && ($encontrado==false); $i++) {\r\n if ($this->vehiculos[$i] != null) {\r\n if($this->vehiculos[$i]->getMatricula() =='') {}\r\n $this->vehiculos[$i]->getMatricula($matricula_aleatoria);\r\n $encontrado = true;\r\n $pos = $i;\r\n }\r\n }\r\n }", "public function randomize()\n {\n return mt_rand(1, $this->maxnumber());\n }", "function UltimoDia($a,$m){\r\n if (((fmod($a,4)==0) and (fmod($a,100)!=0)) or (fmod($a,400)==0)) {\r\n $dias_febrero = 29;\r\n } else {\r\n $dias_febrero = 28; \r\n }\r\n switch($m) {\r\n case 1: $valor = 31; break;\r\n case 2: $valor = $dias_febrero; break;\r\n case 3: $valor = 31; break;\r\n case 4: $valor = 30; break;\r\n case 5: $valor = 31; break;\r\n case 6: $valor = 30; break;\r\n case 7: $valor = 31; break;\r\n case 8: $valor = 31; break;\r\n case 9: $valor = 30; break;\r\n case 10: $valor = 31; break;\r\n case 11: $valor = 30; break;\r\n case 12: $valor = 31; break;\r\n }\r\n return $valor;\r\n}", "function recy($c)\n {\n $min = round(min((sqrt(($c )*35)),100)*100);\n $max = round(min((sqrt(($c+2)*35)),100)*100);\n return mt_rand($min,$max)/10000;\n }", "static function esCedulaValida($numero) {\r\n if (strlen($numero) == 0) {\r\n return FALSE;\r\n }\r\n $resultado = \"\";\r\n $suma = 0;\r\n $residuo = 0;\r\n $pri = false;\r\n $pub = false;\r\n $nat = false;\r\n $numeroProvincias = 22;\r\n $modulo = 11;\r\n\r\n /* Aqui almacenamos los digitos de la cedula en variables. */\r\n $d1 = substr($numero, 0, 1);\r\n $d2 = substr($numero, 1, 1);\r\n $d3 = substr($numero, 2, 1);\r\n $d4 = substr($numero, 3, 1);\r\n $d5 = substr($numero, 4, 1);\r\n $d6 = substr($numero, 5, 1);\r\n $d7 = substr($numero, 6, 1);\r\n $d8 = substr($numero, 7, 1);\r\n $d9 = substr($numero, 8, 1);\r\n $d10 = substr($numero, 9, 1);\r\n\r\n $p1 = 0;\r\n $p2 = 0;\r\n $p3 = 0;\r\n $p4 = 0;\r\n $p5 = 0;\r\n $p6 = 0;\r\n $p7 = 0;\r\n $p8 = 0;\r\n $p9 = 0;\r\n\r\n /* El tercer digito es: */\r\n /* 9 para sociedades privadas y extranjeros */\r\n /* 6 para sociedades publicas */\r\n /* menor que 6 (0,1,2,3,4,5) para personas naturales */\r\n\r\n if ($d3 == 7 || $d3 == 8) {\r\n $resultado = '0';\r\n }\r\n\r\n /* Solo para personas naturales (modulo 10) */\r\n if ($d3 < 6) {\r\n $nat = true;\r\n $p1 = $d1 * 2;\r\n if ($p1 >= 10)\r\n $p1 -= 9;\r\n $p2 = $d2 * 1;\r\n if ($p2 >= 10)\r\n $p2 -= 9;\r\n $p3 = $d3 * 2;\r\n if ($p3 >= 10)\r\n $p3 -= 9;\r\n $p4 = $d4 * 1;\r\n if ($p4 >= 10)\r\n $p4 -= 9;\r\n $p5 = $d5 * 2;\r\n if ($p5 >= 10)\r\n $p5 -= 9;\r\n $p6 = $d6 * 1;\r\n if ($p6 >= 10)\r\n $p6 -= 9;\r\n $p7 = $d7 * 2;\r\n if ($p7 >= 10)\r\n $p7 -= 9;\r\n $p8 = $d8 * 1;\r\n if ($p8 >= 10)\r\n $p8 -= 9;\r\n $p9 = $d9 * 2;\r\n if ($p9 >= 10)\r\n $p9 -= 9;\r\n $modulo = 10;\r\n }\r\n\r\n /* Solo para sociedades publicas (modulo 11) */\r\n /* Aqui el digito verficador esta en la posicion 9, en las otras 2 en la pos. 10 */\r\n else {\r\n if ($d3 == 6) {\r\n $pub = true;\r\n $p1 = $d1 * 3;\r\n $p2 = $d2 * 2;\r\n $p3 = $d3 * 7;\r\n $p4 = $d4 * 6;\r\n $p5 = $d5 * 5;\r\n $p6 = $d6 * 4;\r\n $p7 = $d7 * 3;\r\n $p8 = $d8 * 2;\r\n $p9 = 0;\r\n } else {\r\n /* Solo para entidades privadas (modulo 11) */\r\n if ($d3 == 9) {\r\n $pri = true;\r\n $p1 = $d1 * 4;\r\n $p2 = $d2 * 3;\r\n $p3 = $d3 * 2;\r\n $p4 = $d4 * 7;\r\n $p5 = $d5 * 6;\r\n $p6 = $d6 * 5;\r\n $p7 = $d7 * 4;\r\n $p8 = $d8 * 3;\r\n $p9 = $d9 * 2;\r\n }\r\n }\r\n }\r\n $suma = $p1 + $p2 + $p3 + $p4 + $p5 + $p6 + $p7 + $p8 + $p9;\r\n $residuo = $suma % $modulo;\r\n\r\n /* Si residuo=0, dig.ver.=0, caso contrario 10 - residuo */\r\n if ($residuo == 0)\r\n $digitoVerificador = 0;\r\n else\r\n $digitoVerificador = $modulo - $residuo;\r\n\r\n /* ahora comparamos el elemento de la posicion 10 con el dig. ver. */\r\n if ($pub == true) {\r\n if ($digitoVerificador != $d9) {\r\n $resultado = '0';\r\n }\r\n /* El ruc de las empresas del sector publico terminan con 0001 */\r\n if (substr($numero, 9, 4) != '0001') {\r\n $resultado = '0';\r\n }\r\n } else {\r\n if ($pri == true) {\r\n if ($digitoVerificador != $d10) {\r\n $resultado = '0';\r\n }\r\n if (substr($numero, 10, 3) != '001') {\r\n $resultado = '0';\r\n }\r\n } else {\r\n if ($nat == true) {\r\n if ($digitoVerificador != $d10) {\r\n $resultado = '0';\r\n }\r\n if (strlen($numero) > 10 && substr($numero, 10, 3) != '001') {\r\n $resultado = '0';\r\n }\r\n }\r\n }\r\n }\r\n if ($resultado == \"\") {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function calcular_limite_fecha_prestacion($mes_vig, $ano_vig) {\r\n if ($mes_vig == '12') {\r\n $mes_vig1 = '01';\r\n $ano_vig1 = $ano_vig + 1;\r\n }\r\n if ($mes_vig != '12') {\r\n $mes_vig1 = $mes_vig + 1;\r\n $ano_vig1 = $ano_vig;\r\n if ($mes_vig1 < 10) {\r\n $mes_vig1 = '0' . $mes_vig1;\r\n }\r\n }\r\n return '10/' . $mes_vig1 . '/' . $ano_vig1;\r\n}", "function contarSemestresDespuesDeGrado($semestre_ingreso){\r\n $cantidad='';\r\n if((isset($this->datosEstudiante['FEC_GRADO'])?$this->datosEstudiante['FEC_GRADO']:'')){\r\n $anio_grado= substr($this->datosEstudiante['FEC_GRADO'], 0, 4);\r\n $mes_grado= substr($this->datosEstudiante['FEC_GRADO'], 4, 2);\r\n if($mes_grado<=6){\r\n $semestre_grado=1;\r\n }else{\r\n $semestre_grado=2;\r\n }\r\n $periodo_grado =$anio_grado.$semestre_grado;\r\n if($semestre_ingreso>$periodo_grado){\r\n $periodo_grado = $this->calcularSiguientePeriodo($periodo_grado);\r\n $cantidad = $this->calcularCantidadSemestres($periodo_grado,$semestre_ingreso);\r\n }else{\r\n $cantidad=0;\r\n }\r\n \r\n }else{\r\n $this->mensaje[$this->datosEstudiante['CODIGO']][]=\"No tiene información de fecha de grado\";\r\n $cantidad=0;\r\n }\r\n return $cantidad;\r\n }", "public function intensidad(){\n if($this->PP03F < 35 && $this->PP03G == 1 && $this->PP03H == 1)\n {\n return 1;\n }\n if($this->caracteristicas->CH06 >= 10 && $this->PP03G == 1 && $this->PP01E == 5)\n {\n return 2;\n }\n if( $this->PP03F > 40)\n {\n return 3;\n }\n if($this->PP01E == 5)\n {\n return 4;\n }\n}", "function corrigeCeros( $segundos){\r\n if($segundos <= 9){\r\n\r\n return '0'.$segundos ;\r\n }else{\r\n return $segundos;\r\n }\r\n }", "function promedios_por_materia($vector){\n echo \"<hr> ############# Promedios por materia #############\";\n $calificacion1=0;\n $calificacion2=0;\n $calificacion3=0;\n $calificacion4=0;\n $calificacion5=0;\n $calificacion6=0;\n foreach ($vector as $key => $value) {\n $calificacion1=$calificacion1+$vector[$key][0];\n $calificacion2=$calificacion2+$vector[$key][1];\n $calificacion3=$calificacion3+$vector[$key][2];\n $calificacion4=$calificacion4+$vector[$key][3];\n $calificacion5=$calificacion5+$vector[$key][4];\n $calificacion6=$calificacion6+$vector[$key][5];\n }\n $prom=$calificacion1/10;\n echo \"<br> Promedio materia 1: \".$prom;\n $prom=$calificacion2/10;\n echo \"<br> Promedio materia 2: \".$prom;\n $prom=$calificacion3/10;\n echo \"<br> Promedio materia 3: \".$prom;\n $prom=$calificacion4/10;\n echo \"<br> Promedio materia 4: \".$prom;\n $prom=$calificacion5/10;\n echo \"<br> Promedio materia 5: \".$prom;\n $prom=$calificacion6/10;\n echo \"<br> Promedio materia 6: \".$prom;\n }", "function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "function formel_kampf($a_count,$v_count,$a_ang,$v_def,$trefferQuote = 10,$rapidfire = 1)\n{\n $schaden = rand(60,100);\n //28.12.2011 - nun echtes RF\n $schuss = $a_count;// * max(1,$rapidfire);\n \n if($schuss < 0)\n\t\techo \"komische anzahl $a_count<br>\";\n\t$treffer = ($schuss * (rand($trefferQuote,100)/100));\n \n\t\n\t$angWert = $treffer * ($schaden / 100) * $a_ang;\n\t\n\t//$iRest = max(round((1 / ($v_def)) * (($v_count * $v_def) - ($angWert)) ),0);\n $iTmp = ((($v_def * $v_count) - $angWert) / ($v_def * $v_count)) * $v_count;\n $iTmp = max($iTmp,0);\n $iAbsorb = $v_def * ($v_count - $iTmp);\n \n $iRest = ceil($iTmp);\n //$iRest = (round(($v_count / ($v_count * $v_def)) * (($v_count * $v_def) - ($angWert)) ));\n\n\t//echo \"($v_count / ($v_count * $v_def)) * (($v_count * $v_def) - ($angWert)) = $iRest<br/>\";\n\t\n\treturn array(\"rest\" => $iRest, \"schuss\" => $schuss, \"treffer\" => $treffer, \"schaden\" => $angWert, \"absorb\" => $iAbsorb);\n}", "function CompterNombreDeM($chaine) {\n$nb=0;\n\nfor ($i=0; $i <CompteNombreCaractere($chaine); $i++) { \n\tif (($chaine[$i]=='m') or ($chaine[$i]=='M') ) {\n\t\t$nb=$nb+1;\n}\n\n}\nreturn $nb;\n\n}", "public function ultimoRegistro() {\n \n //FUNCION CON LA CONSULTA A REALIZAR\n $sql = \"SELECT MAX(MAQUICODIGO) AS CODIGO FROM MAQUINA\";\n $this->_conexion->ejecutar_sentencia($sql);\n return $this->_conexion->retorna_select();\n \n }", "function rekamMedis($nomor_pasien)\n\t{\n\n\t}", "public function get_semester()\n {\n $round = $this->get_round();\n $roundNumber = $round['numero'];\n /*Se obtiene la fecha final para sacar el mes*/\n $r = $round['fecha_final'];\n \n /*Se obtiene el mes de la ronda*/\n $m = $r[5].$r[6];\n /*Cómo la ronda no indica cual semestre es el actual la única forma de sacarlo es comparando las fecha actual, si es Junio o antes es el semestre 1, en caso contrario es semestre 2\n En julio se pueden empezar a pedir asistencias del segundo semestre?*/\n if ($m <= 6){\n $semestre = 1;\n } else {\n $semestre = 2;\n }\n \n return $semestre;\n }", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function jumlahHalaman($jmldata, $batas){\n$jmlhalaman = ceil($jmldata/$batas);\nreturn $jmlhalaman;\n}", "function cuadrado($numero){\r\n $res=$numero*$numero;\r\n return $res;\r\n}", "public function getMedicaments(){\n\t\t$req = \"select * from medicament order by MED_NOMCOMMERCIAL\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}", "function randomLCG($x,$pos) {\n $variable = (2*$x[$pos]+0)%100;\n $number[$pos] = $variable;\n $verdadero = repetidos($number,$pos);\n if (is_numeric($verdadero) == true){\n\t\treturn $verdadero;\n }\n\n}", "function kastomegas($num){\r\n\t\treturn $num/1024;\r\n\t}", "function getDv($cRut){\n \n $rut = (string)$cRut;\n $factor = 2;\n $suma = 0;\n \t\t \n for($i = strlen($rut) - 1; $i >= 0; $i--) {\n $suma += $factor * $rut[$i];\n $factor = $factor % 7 == 0 ? 2 : $factor + 1;\n }\n \n $dv = 11 - $suma % 11;\n $dv = $dv == 11 ? 0 : ($dv == 10 ? \"K\" : $dv);\n return $dv;\n}", "public function getMedianGrade();", "function mesec($rBrMeseca)\n{\nswitch($rBrMeseca)\n{\n case ($rBrMeseca % 12 == 1):\n echo \"januar\";\n break;\n case ($rBrMeseca % 12 == 2):\n echo \"februar\";\n break;\n case ($rBrMeseca % 12 == 3):\n echo \"mart\";\n break;\n case ($rBrMeseca % 12 == 4):\n echo \"april\";\n break;\n case ($rBrMeseca % 12 == 5):\n echo \"maj\";\n break;\n case ($rBrMeseca % 12 == 6):\n echo \"jun\";\n break;\n case ($rBrMeseca % 12 == 7):\n echo \"jul\";\n break;\n case ($rBrMeseca % 12 == 8):\n echo \"avgust\";\n break;\n case ($rBrMeseca % 12 == 9):\n echo \"septembar\";\n break;\n case ($rBrMeseca % 12 == 10):\n echo \"oktobar\";\n break;\n case ($rBrMeseca % 12 == 11):\n echo \"novembar\";\n break;\n case ($rBrMeseca % 12 == 0):\n echo \"decembar\";\n break;\n default:\n echo \"greska\";\n break; \n}\n}", "function en_rojo($anio){\n $ar=array();\n $ar['anio']=$anio;\n $sql=\"select sigla,descripcion from unidad_acad \";\n $sql = toba::perfil_de_datos()->filtrar($sql);\n $resul=toba::db('designa')->consultar($sql);\n $ar['uni_acad']=$resul[0]['sigla'];\n $res=$this->get_totales($ar);//monto1+monto2=gastado\n $band=false;\n $i=0;\n $long=count($res);\n while(!$band && $i<$long){\n \n if(($res[$i]['credito']-($res[$i]['monto1']+$res[$i]['monto2']))<-50){//if($gaste>$resul[$i]['cred']){\n $band=true;\n }\n \n $i++;\n }\n return $band;\n \n }", "function darLetras($solucion){ \r\n $azar = rand(0,strlen($solucion)-1);\r\n $dLetra = $solucion[$azar];\r\n $posicionLetra = $azar.strtoupper($dLetra);\r\n return $posicionLetra;\r\n }", "public function get_codigo_muestra($cod_muestra){\n $fecha = getdate();\n $dia = $fecha[\"mday\"];\n $mes = $fecha[\"mon\"];\n $año = $fecha[\"year\"];\n $año_=substr($año,2);\n \n while($datos = mysqli_fetch_array($cod_muestra)){\n $codigo_muestra = $datos['codigo_muestra'];\n }\n if($codigo_muestra!=\"\"){\n (int)$primer_digito = substr($codigo_muestra,0,4);\n $num = ((int)$primer_digito+1);\n\n $codigo_muestra = $num.\"-\".$dia.\"-\".$mes.\"-\".$año_.\"-\".$num;\n \n return ltrim($codigo_muestra);\n\n }else{\n $codigo_muestra =\"100\".\"-\".$dia.\"-\".$mes.\"-\".$año_.\"-\".\"100\";\n return $codigo_muestra;\n }\n\n }", "function NUMERO_LUNES($_ARGS) {\r\n\tlist($ap, $mp)=SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t$dias_del_mes = DIAS_DEL_MES($periodo_inicio);\r\n\t\r\n\tif (($primer_dia_semana == 0 || $primer_dia_semana == 6) && $dias_del_mes == 31) $lunes = 5;\r\n\telseif ($primer_dia_semana == 1 && ($dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telseif ($primer_dia_semana == 2 && ($dias_del_mes == 29 || $dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telse $lunes = 4;\r\n\t\r\n\treturn $lunes;\r\n}", "function promedio_por_alumno($vector){\n $promedios_alumnos=array();\n foreach ($vector as $key => $value) {\n $promedio=0;\n foreach ($value as $c) {\n $promedio=$promedio+$c;\n }\n $promedio=$promedio/6;\n $alumno=array($key=>$promedio);\n array_push($promedios_alumnos,$alumno);\n }\n return $promedios_alumnos;\n }", "function rola_dado_completo($qtd, $codDado, $operacao, $modificador){\n\t$resultado = 0;\n\n\t$i = 0; $j = 1;\n\n\techo \"Em rola_dado_completo(): <br/>\";\n\techo \"qtd: \" . $qtd . \"<br/>\";\n\techo \"codDado: \" . $codDado . \"<br/>\";\n\techo \"operacao: \" . $operacao . \"<br/>\";\n\techo \"modificador: \" . $modificador . \"<br/>\";\n\n\t$populacao = array();\n\t$limite = $codDado * 10;\n\n\tif($codDado == 1){\n\t\t//Adiciona o modificador na rolagem\n\t\tif($operacao == \"+\"){\n\t\t\t$resultado = 1 + $modificador;\n\t\t}\n\t\t\n\t\tif($operacao == \"-\"){\n\t\t\t$resultado1 - $modificador;\n\t\t}\n\n\t\tif($operacao == \"*\"){\n\t\t\t$resultado = $modificador;\n\t\t}\n\n\t\tif($operacao == \"/\"){\n\t\t\t$resultado = 1 / $modificador;\n\t\t}\n\n\t\treturn $resultado;\n\t}\n\n\t//Funcao que espalha os numeros do intervalo a ser rolado em um array\n\twhile($i < $limite){\n\n\t\tif($j > $codDado){\n\t\t\t$j = 1;\n\t\t}\n\t\tarray_push($populacao, $j);\n\n\t\t$j++;\n\t\t$i++;\n\t}\n\n\t$i = 0;\n\t$pos1 = 0;\n\t$pos2 = 0;\n\t$temp = 0;\n\n\t//Embaralha os numeros da população e acumula o resultado das rolagens\n\twhile($i < $limite){\n\t\t$max = $limite -1;\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\t$delay = rand(1, 1000);\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos1 = rand(0, $max);\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos2 = rand(0, $max);\n\n\t\t$temp = $populacao[$pos1];\n\n\t\t//troca os valores de lugar\n\t\t$populacao[$pos1] = $populacao[$pos2];\n\t\t$populacao[$pos2] = $temp;\n\n\t\t$i++;\n\t}\n\n\t//Acumula o resultado das rolagens\n\t$i = 0;\n\twhile($i < $qtd){\n\t\t$max = $limite -1;\n\t\t$resultado += $populacao[rand(0, $max)];\n\t\t$i++;\n\t}\n\n\t// echo \"Resultado da rolagem dos dados:\" . $resultado .\"<br/>\";\n\n\t//Adiciona o modificador na rolagem\n\tif($operacao == \"+\"){\n\t\t$resultado += $modificador;\n\t}\n\t\n\tif($operacao == \"-\"){\n\t\t$resultado -= $modificador;\n\t}\n\n\tif($operacao == \"*\"){\n\t\t$resultado *= $modificador;\n\t}\n\n\tif($operacao == \"/\"){\n\t\t$resultado /= $modificador;\n\t}\n\n\treturn $resultado;\n}", "function rotacionSeisMeses()\n {\n $rotacion_smeses = new \\stdClass();\n $rotacion_smeses->labels = [];\n $rotacion_smeses->data = [];\n\n // Prepare query\n $sql = \"\n SELECT (COUNT(f.id) / m.maquina_casillas) as result, DATE_FORMAT(f.factura_fecha_emision, '%m') AS month, DATE_FORMAT(f.factura_fecha_emision, '%M') AS month_letters\n FROM facturas as f, maquinas as m WHERE f.factura_fecha_emision <= DATE(NOW()) AND f.factura_fecha_emision > DATE_SUB(DATE(NOW()), INTERVAL 6 MONTH) $this->sql_condition\n GROUP BY month\";\n\n // Execute sql\n $query = DB::select($sql);\n\n // Config chart roacion ultimos 6 meses\n $rotacion_smeses->labels = array_pluck($query, 'month_letters');\n $rotacion_smeses->data = array_pluck($query, 'result');\n\n return $rotacion_smeses;\n }", "function tinhchuvihinhtron($r){\n $bk = 3.14 * 2 * $r;\n return $bk;\n}", "function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}", "function nombremescorto($idmes){\n\t$nombremescorto = \"\";\n\tswitch ($idmes) {\n\t\tcase 1:\n\t\t\t$nombremescorto = \"ENE\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$nombremescorto = \"FEB\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t$nombremescorto = \"MAR\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$nombremescorto = \"ABR\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t$nombremescorto = \"MAY\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t$nombremescorto = \"JUN\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t$nombremescorto = \"JUL\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$nombremescorto = \"AGO\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\t$nombremescorto = \"SEP\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\t$nombremescorto = \"OCT\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\t$nombremescorto = \"NOV\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\t$nombremescorto = \"DIC\";\n\t\t\tbreak;\n\n\t}\n\treturn $nombremescorto;\n}", "public function meses_en_numeros($mes){\n switch ($mes) {\n case 'Ene':\n $mes2 = '01';\n break;\n case 'Febr':\n $mes2 = '02';\n break;\n case 'Mar':\n $mes2 = '03';\n break;\n case 'Abr':\n $mes2 = '04';\n break; \n case 'May':\n $mes2 = '05';\n break; \n case 'Jun':\n $mes2 = '06';\n break;\n case 'Jul':\n $mes2 = '07';\n break;\n case 'Ago':\n $mes2 = '08';\n break;\n case 'Sep':\n $mes2 = '09';\n break;\n case 'Oct':\n $mes2 = '10';\n break;\n case 'Nov':\n $mes2 = '11';\n break;\n case 'Dic':\n $mes2 = '12';\n break; \n default:\n # code...\n break;\n }\n return $mes2;\n }", "function DIA_DE_LA_SEMANA($_FECHA) {\r\n\t// primero creo un array para saber los días de la semana\r\n\t$dias = array(0, 1, 2, 3, 4, 5, 6);\r\n\t$dia = substr($_FECHA, 0, 2);\r\n\t$mes = substr($_FECHA, 3, 2);\r\n\t$anio = substr($_FECHA, 6, 4);\r\n\t\r\n\t// en la siguiente instrucción $pru toma el día de la semana, lunes, martes,\r\n\t$pru = strtoupper($dias[intval((date(\"w\",mktime(0,0,0,$mes,$dia,$anio))))]);\r\n\treturn $pru;\r\n}", "private function _getMCMontaggioOLD()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n if ($arredo->getServizioMontaggio())\n {\n $tmp = $arredo->getMC();\n if ($arredo->getParametroB() == Arredo::MONTATO_PIENO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_PIENO);\n $mc+= $tmp;\n\n }\n\n if ($arredo->getParametroB() == Arredo::MONTATO_VUOTO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_VUOTO);\n $mc+= $tmp;\n\n }\n }\n\n }\n\n return $mc;\n }", "function fecha_menor($diainicio,$diafin,$mesinicio,$mesfin,$anioinicio,$aniofin){\r\n\r\n$dif_en_meses=(($mesfin-$mesinicio)+(12*($aniofin-$anioinicio)));\r\n\r\nif($dif_en_meses<0){return(0);}\r\nif(($dif_en_meses==0) && ($diafin<$diainicio)){return(0);}\r\nreturn(1);\r\n}", "function mejor_promedio($vector){\n echo \"<hr> ############# Mejor promedio #############\";\n $promedio=0;\n $cadena;\n foreach ($vector as $key => $value) {\n foreach ($value as $c => $n) {\n if($n>$promedio){\n $promedio=$n;\n $cadena = \"<br>\".$c.\" -->Promedio: \".$n;\n }\n }\n }\n echo $cadena;\n }", "public function dernierMoisSaisi($idVisiteur){\r\n\t\t$req = \"select max(mois) as dernierMois from fichefrais where fichefrais.idvisiteur = '$idVisiteur'\";\r\n\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t$laLigne = $res->fetch();\r\n\t\t$dernierMois = $laLigne['dernierMois'];\r\n\t\treturn $dernierMois;\r\n\t}", "function gerasenha($tamanho = 6, $maiusculas = true, $numeros = true, $simbolos = false){\r\n\t$lmin = 'abcdefghijklmnopqrstuvwxyz';\r\n\t$lmai = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n\t$num = '1234567890';\r\n\t$simb = '!@#$%*-';\r\n\t\r\n\t// Variáveis internas\r\n\t$retorno = '';\r\n\t$caracteres = '';\r\n\t\r\n\t// Agrupamos todos os caracteres que poderão ser utilizados\r\n\t$caracteres .= $lmin;\r\n\tif ($maiusculas) $caracteres .= $lmai;\r\n\tif ($numeros) $caracteres .= $num;\r\n\tif ($simbolos) $caracteres .= $simb;\r\n\t\r\n\t// Calculamos o total de caracteres possíveis\r\n\t$len = strlen($caracteres);\r\n\t\r\n\tfor ($n = 1; $n <= $tamanho; $n++) {\r\n\t// Criamos um número aleatório de 1 até $len para pegar um dos caracteres\r\n\t$rand = mt_rand(1, $len);\r\n\t// Concatenamos um dos caracteres na variável $retorno\r\n\t$retorno .= $caracteres[$rand-1];\r\n\t}\r\n\t\r\n\treturn $retorno;\r\n\t}", "public function getDirectriz()\n {\n $dir = false;\n if (self::getCod() === '110000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '120000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '210000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '220000') $dir='Ciencias Experimentales';\n if (self::getCod() === '230000') $dir='Ciencias Experimentales';\n if (self::getCod() === '240000') $dir='Ciencias de la Salud';\n if (self::getCod() === '250000') $dir='Ciencias Experimentales';\n if (self::getCod() === '310000') $dir='Ciencias Experimentales';\n if (self::getCod() === '320000') $dir='Ciencias de la Salud';\n if (self::getCod() === '330000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '510000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '520000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '530000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '540000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '550000') $dir='Humanidades';\n if (self::getCod() === '560000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '570000') $dir='Humanidades';\n if (self::getCod() === '580000') $dir='Humanidades';\n if (self::getCod() === '590000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '610000') $dir='Ciencias de la Salud';\n if (self::getCod() === '620000') $dir='Humanidades';\n if (self::getCod() === '630000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '710000') $dir='Humanidades';\n if (self::getCod() === '720000') $dir='Humanidades';\n return $dir;\n }", "public function getCifra_moeda()\n {\n return $this->cifra_moeda;\n }", "function imc($masse,$taille)\n\t{\n\t\tif ($taille > 0)\n\t\t{\n\t\t\t$res = $masse / pow($taille,2);\n\t\t\treturn $res;\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}", "function SMA($bulan, $bulan_in_years, $koneksi)\n{\n $temp = array();\n\n if (in_array($bulan, $bulan_in_years)) {\n $bulan_sekarang = array_search($bulan, $bulan_in_years);\n\n for ($i = 1; $i <= 6; $i++) {\n if ($bulan_sekarang - $i < 0) {\n $bulan_sekarang += 12;\n }\n array_push($temp, $bulan_in_years[$bulan_sekarang - $i]);\n }\n }\n\n $listbulan = join(\"','\", $temp);\n $sql = mysqli_query($koneksi, \"SELECT SUM(hasil) FROM peramalan WHERE bulan IN ('$listbulan')\");\n while ($row = mysqli_fetch_array($sql)) {\n $totalhasil = $row[0];\n }\n return (int) $totalhasil / 6;\n}", "function mostrar_tipo_radicado_distribucion($tipo_origen)\n{\n $array_tipo_radicado = array(\n 1 => 'I',\n 2 => 'E'\n );\n return $array_tipo_radicado[$tipo_origen];\n}", "function mostrar_tipo_radicado_distribucion($tipo_origen)\n{\n $array_tipo_radicado = array(\n 1 => 'I',\n 2 => 'E'\n );\n return $array_tipo_radicado[$tipo_origen];\n}", "function beratbadanormal($tb){\n\t$bbn = $tb - 100;\n\treturn $bbn;\n}", "function valor_extenso($valor=0, $maiusculas=false)\n{\n if (strpos($valor,\",\") > 0)\n {\n // retira o ponto de milhar, se tiver\n $valor = str_replace(\".\",\"\",$valor);\n \n // troca a virgula decimal por ponto decimal\n $valor = str_replace(\",\",\".\",$valor);\n }\n$singular = array(\"centavo\", \"real\", \"mil\", \"milhao\", \"bilhao\", \"trilhao\", \"quatrilhao\");\n$plural = array(\"centavos\", \"reais\", \"mil\", \"milhoes\", \"bilhoes\", \"trilhoes\",\n\"quatrilhões\");\n \n$c = array(\"\", \"cem\", \"duzentos\", \"trezentos\", \"quatrocentos\",\n\"quinhentos\", \"seiscentos\", \"setecentos\", \"oitocentos\", \"novecentos\");\n$d = array(\"\", \"dez\", \"vinte\", \"trinta\", \"quarenta\", \"cinquenta\",\n\"sessenta\", \"setenta\", \"oitenta\", \"noventa\");\n$d10 = array(\"dez\", \"onze\", \"doze\", \"treze\", \"quatorze\", \"quinze\",\n\"dezesseis\", \"dezesete\", \"dezoito\", \"dezenove\");\n$u = array(\"\", \"um\", \"dois\", \"tres\", \"quatro\", \"cinco\", \"seis\",\n\"sete\", \"oito\", \"nove\");\n \n $z=0;\n \n $valor = number_format($valor, 2, \".\", \".\");\n $inteiro = explode(\".\", $valor);\n\t\t$cont=count($inteiro);\n\t\t for($i=0;$i<$cont;$i++)\n for($ii=strlen($inteiro[$i]);$ii<3;$ii++)\n $inteiro[$i] = \"0\".$inteiro[$i];\n \n $fim = $cont - ($inteiro[$cont-1] > 0 ? 1 : 2);\n for ($i=0;$i<$cont;$i++) {\n $valor = $inteiro[$i];\n $rc = (($valor > 100) && ($valor < 200)) ? \"cento\" : $c[$valor[0]];\n $rd = ($valor[1] < 2) ? \"\" : $d[$valor[1]];\n $ru = ($valor > 0) ? (($valor[1] == 1) ? $d10[$valor[2]] : $u[$valor[2]]) : \"\";\n \n $r = $rc.(($rc && ($rd || $ru)) ? \" e \" : \"\").$rd.(($rd &&\n$ru) ? \" e \" : \"\").$ru;\n $t = $cont-1-$i;\n $r .= $r ? \" \".($valor > 1 ? $plural[$t] : $singular[$t]) : \"\";\n if ($valor == \"000\")$z++; elseif ($z > 0) $z--;\n if (($t==1) && ($z>0) && ($inteiro[0] > 0)) $r .= (($z>1) ? \" de \" : \"\").$plural[$t];\n if ($r) $rt = $rt . ((($i > 0) && ($i <= $fim) &&\n($inteiro[0] > 0) && ($z < 1)) ? ( ($i < $fim) ? \", \" : \" e \") : \" \") . $r;\n }\n \n if(!$maiusculas)\n\t\t {\n return($rt ? $rt : \"zero\");\n } elseif($maiusculas == \"2\") {\n return (strtoupper($rt) ? strtoupper($rt) : \"Zero\");\n } else {\n return (ucwords($rt) ? ucwords($rt) : \"Zero\");\n }\n \n}", "function mutasi($induk){\n\t\t$pm = 0.11;\n\t\t$jumlah_gen = count($induk);\n\t\tfor ($i=0; $i < $jumlah_gen; $i++) { \n\t\t\t$random = rand(0,10)/10;\n\t\t\tif($random <= $pm){\n\t\t\t\t$induk[$i] = rand(0,10);\n\t\t\t}\n\t\t}\n\t\treturn $induk;\n\t}", "function calcularCantidadSemestres($periodo_ini,$periodo_fin){\r\n\t$semestres = 0;\r\n\t$anio_ini = substr($periodo_ini,0,4);\r\n\t$per_ini = substr($periodo_ini,4,1);\r\n\t$anio_fin = substr($periodo_fin,0,4);\r\n\t$per_fin = substr($periodo_fin,4,1);\r\n\r\n\t$anios = $anio_fin - $anio_ini;\r\n\t$semestres=$anios*2;\r\n\tif($per_ini>$per_fin){\r\n\t\t$semestres--;\r\n\t}\r\n\tif($per_ini<$per_fin){\r\n\t\t$semestres++;\r\n\t}\r\n\treturn $semestres;\r\n }", "public function getValor_moeda()\n {\n return $this->valor_moeda;\n }", "public function calculaPrimaMensual($plan,$odontoIn,$odontoF,$IntQuiru,$rentaMen){\n \n $planUF=0;$odontoInUF=0;$odontoFUF=0;$IntQuiruUF=0;$rentaMenUF=0; \n \n if($plan==1){$planUF=0.2140;}elseif($plan==2){$planUF=0.2560;}elseif($plan==3){$planUF=0.2990;}\n \n if($odontoIn==0){$odontoInUF=0;}elseif($odontoIn==1){$odontoInUF=0.149;}\n \n if($odontoF==0){$odontoFUF=0;}elseif($odontoF==1){$odontoFUF=0.295;}\n \n if($IntQuiru==0){$IntQuiruUF=0;}elseif($IntQuiru==1){$IntQuiruUF=0.097;}elseif($IntQuiru==2){$IntQuiruUF=0.181;}elseif($IntQuiru==3){$IntQuiruUF=0.278;}\n \n if($rentaMen==0){$rentaMenUF=0;}elseif($rentaMen==1){$rentaMenUF=0.067;}elseif($rentaMen==2){$rentaMenUF=0.099;}elseif($rentaMen==3){$rentaMenUF=0.131;}\n \n \n $primaMensual=$planUF+$odontoInUF+$odontoFUF+$IntQuiruUF+$rentaMenUF;\n return $primaMensual;\n }", "function suapvalint_iki_sitmecio ($metai) {\r\n if ($metai%100 == 0) {\r\n $simtmetis = $metai/100;\r\n return $simtmetis. \" osom\";\r\n }\r\n\r\n else {\r\n $simtmetis = round($metai/100,0);\r\n return $simtmetis. \" reikejo apvalint\";\r\n }\r\n}", "function Tn_tro_sta($level,$MBn) // CT dung\n{\n\treturn round((2000+500*($level-1)+pow(2*($level-1),3))*$MBn);\n}", "function convertir_moneda($valor){\n\t\t//echo \"Entro: \".$valor;\n\t\t$sql=\"SELECT * FROM configuracion\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\t\tif(isset($_SESSION['moneda_temp']) && $_SESSION['moneda_temp']==\"dollar\")\n\t\t\t$valor=ceil($valor/$resultado['dolar_conf']);\n\t\tif(isset($_SESSION['moneda_temp']) && $_SESSION['moneda_temp']==\"euro\")\n\t\t\t$valor=ceil($valor/$resultado['euro_conf']);\n\t\treturn $valor;\n\t}", "function Tn_eco_cra($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn/2);\n}", "function tampilUrutNRP($mahasiswa){\n $nama = array_column($mahasiswa, 'NRP');\n array_multisort($nama, SORT_DESC, $mahasiswa);\n $nrpMhs = \"\";\n // looping foreach\n foreach ($mahasiswa as $mhs => $value) {\n // looping for 1 iterasi\n for ($value=0; $value < 1; $value++) { \n $nrpMhs = $nrpMhs.\"Nama : \".$mahasiswa[$mhs]['Nama'].\", NRP : \".$mahasiswa[$mhs]['NRP'].\"<br>\";\n }\n }\n return $nrpMhs;\n }", "function getSemanadoAno()\r\n {\r\n return Data_Calc::semanaDoAno($this->dia, $this->mes, $this->ano);\r\n }", "public function getKodematerial()\n {\n $this->db->select('RIGHT(kode,4) as nomor', FALSE);\n $this->db->order_by('id', 'DESC');\n $this->db->limit(1);\n $query = $this->db->get('m_material');\n if ($query->num_rows() <> 0) {\n\n $data = $query->row();\n $nomor = intval($data->nomor) + 1;\n } else {\n $nomor = 1;\n }\n $nomormax = str_pad($nomor, 4, \"0\", STR_PAD_LEFT);\n return $nomormax;\n }", "private static function genNRand($q) {\n\t $i=$rac='';\n\t for ($i=0; $i<$q ;$i++) {\n\t $er=rand(0,2);\n\t switch ($er) {\n\t case 0: $rac.=rand(0,9); break;\n\t case 1: $rac.=chr(rand(65,90)); break;\n\t case 2: $rac.=chr(rand(98,122)); break;\n\t }\n\t }\n\t return ($rac);\n\t}", "function creaChampionnatNbRencontre($nb_equipe)\n{\n if($nb_equipe==4){$nb_rencontre=5;}\n else if($nb_equipe==6){$nb_rencontre=8;}\n else if($nb_equipe==8){$nb_rencontre=15;}\n else if($nb_equipe==12){$nb_rencontre=19;}\n else if($nb_equipe==16){$nb_rencontre=31;}\n else if($nb_equipe==24){$nb_rencontre=39;}\n else if($nb_equipe==32){$nb_rencontre=63;}\n \n return $nb_rencontre;\n}", "function baseDosABaseDiez($numeroBinario) \n{\t\n\t$numeroBinario = array_reverse($numeroBinario); // comenzamos virando el arreglo\n\t$numeroEnBase10 = 0; // e inicializando nuestra variable\n\t$i = 1;\t// y nuestro contador\n\n\tforeach($numeroBinario as $bit) { // por cada elemento en la lista\n\t\tif ($bit == \"1\") { // si el elemento es el digito 1\n\t\t\t$numeroEnBase10 += pow(2, $i); // pues la variable que tendra el resultado final se ve modificada, sumandole 2 elevado a la (posicion del elemento)\n\t\t}\n\t\t$i++; // incrementamos el contador\n\t}\n\treturn $numeroEnBase10 / 2; // el resultado que devolvemos necesitara ser dividido entre 2\n}" ]
[ "0.57965255", "0.5723134", "0.5682949", "0.5596287", "0.55510056", "0.552984", "0.5521537", "0.5474515", "0.54418284", "0.543501", "0.5428512", "0.54131824", "0.5398817", "0.53945607", "0.5376238", "0.5375584", "0.53670645", "0.5361351", "0.5361246", "0.5346089", "0.5333029", "0.5330968", "0.5317301", "0.5297783", "0.52971613", "0.5291042", "0.5272377", "0.5246142", "0.52446574", "0.5242579", "0.52065223", "0.51944554", "0.5192089", "0.51783025", "0.5176701", "0.5173735", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51659036", "0.51440746", "0.51424956", "0.514196", "0.51410043", "0.5133519", "0.5129396", "0.51196885", "0.5114951", "0.51078683", "0.51048946", "0.50973904", "0.5095253", "0.5091418", "0.50911623", "0.50777036", "0.507399", "0.5069217", "0.5067062", "0.5063335", "0.5062836", "0.5059489", "0.5039796", "0.50352454", "0.50343674", "0.50322884", "0.5026733", "0.5022771", "0.5021366", "0.5019217", "0.5019217", "0.5015789", "0.5014318", "0.50059634", "0.50034046", "0.5001964", "0.5000863", "0.50006956", "0.4992899", "0.49861556", "0.49838775", "0.49666417", "0.49635795", "0.49595833", "0.49581227", "0.4956781", "0.49543315" ]
0.0
-1
echo $week; $week_array = getStartAndEndDate2(5,2020); print_r($week_array); / SEMANA POR MES DE LUNES A DOMINGO
function dateRange($begin, $end, $interval = null){ $begin = new DateTime($begin); $end = new DateTime($end); // Because DatePeriod does not include the last date specified. $end = $end->modify('+1 day'); $interval = new DateInterval($interval ? $interval : 'P1D'); return iterator_to_array(new DatePeriod($begin, $interval, $end)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStartEndDate( $week, $year ) {\n $dto = new DateTime();\n $dto->setISODate( $year, $week, 0 );\n $dates['start'] = $dto->format( \"Y-m-d\" );\n $dto->modify( \"+6 days\" ); // move forward one week\n $dates['end'] = $dto->format( \"Y-m-d\" );\n return $dates;\n}", "function getDates( $week = '', $month = '' ) {\n\n $year;\n $dates;\n // First up, let's check whether the above variables are set (which would indicate the user has interacted with the calendar)\n if ( $month == '' ) {\n if ( $week == '' ) {\n // ok! Neither are set, so we're displaying the current week\n $date = new DateTime();\n $week = $date->format('W');\n $year = $date->format('Y');\n //$dateArr = getStartEndDate( $date->format('W'), $date->format('Y') );\n } else {\n // we're on a particular week!\n // note: add logic to handle swinging around to a new year\n $year = date('Y');\n //$dateArr = getStartEndDate( $week, date('Y') );\n }\n } else {\n // user has selected a month!\n $month += 1;\n $monthDateString = date('Y') . \"-\";\n $monthDateString .= $month . \"-01\";\n $date = new DateTime( $monthDateString ); // this should correspond to the first of the selected month\n /* TO DO: account for edge cases where year rolls over\n --------------------------------------------------------------------------------------------------------------------*/\n $week = $date->format('W');\n $year = $date->format('Y');\n //$dateArr = getStartEndDate( $date->format(\"W\"), $date->format(\"Y\") );\n }\n $startDate = new DateTime();\n $startDate->setISODate( $year, $week, 0 );\n\n $endDate = new DateTime();\n $endDate->setISODate( $year, $week, 0 );\n $endDate->modify( \"+6 days\" );\n\n $dates[\"start\"] = $startDate;\n $dates[\"end\"] = $endDate;\n\n return $dates;\n}", "function startEndDateOfAWeek($week, $year) \n{\n\t$time = strtotime(\"1 January $year\", time());\n\t$day = date(\"w\", $time);\n\t$time += ((7 * $week) + 1 - $day) * 24 * 3600;\n\t$dates[0] = date(\"Y-n-j\", $time);\n\t$time += 6 * 24 * 3600;\n\t$dates[1] = date(\"Y-n-j\", $time);\n\treturn $dates;\n}", "public static function getFirstAndLastDaysOfTheWeek(){\n $date = new \\DateTime('2020-09-01');\n $week = [];\n for($i = 1; $i <= 50; $i++){\n $date = $date->modify('this week');\n $week[$i]['start'] = $date->modify('this week')->format('Y-m-d');\n $week[$i]['end'] = $date->modify('this week + 6 days')->format('Y-m-d');\n $date = $date->modify('+ 1 day');\n }\n return $week;\n }", "public function getWeekRange(){\n\t\t$timestamp = $this->_timestamp;\n\t\t$t = self::_sub($timestamp, 86400);\n\t\tfor($i=$t;$i>0;$i=self::_sub($i, 86400)){\n\t\t\t$array = self::_getDateParts($i, false);\n\t\t\tif($array['wday']==1){\n\t\t\t\t$initialDate = $array['year'].'-'.sprintf('%02s', $array['mon']).'-'.sprintf('%02s', $array['mday']);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$t = self::_add($timestamp, 86400);\n\t\tfor($i=$t;;$i=self::_add($i, 86400)){\n\t\t\t$array = self::_getDateParts($i, false);\n\t\t\tif($array['wday']==0){\n\t\t\t\t$finalDate = $array['year'].'-'.sprintf('%02s', $array['mon']).'-'.sprintf('%02s', $array['mday']);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn array($initialDate, $finalDate);\n\t}", "function getEndDateWeek($week, $year) {\n \n $dto = new DateTime();\n $dto->setISODate($year, $week);\n $ret['week_start'] = $dto->format('Y-m-d');\n $dto->modify('+6 days');\n $ret['week_end'] = $dto->format('Y-m-d');\n \n $ultimo_dia_semana = $dto->format('Y-m-d');\n return $ultimo_dia_semana;\n \n}", "function getWeeks($date) {\n\t\n\t\t$start = strtotime($date);\n\t\t$end = strtotime(date(\"Y-m-t\", strtotime($date)));\n\t\t$arr = array();\n\t\twhile ($start <= $end) {\n\t\t\t$d = getdate($start);\n\t\t\t$dayOfWeek = $d['wday'];\n\t\t\t$endDate = date('Y-m-d', strtotime(date(\"Y-m-d\",$start) . \" + \" . (6 - $dayOfWeek) . \" days\"));\n\t\t\tif(date(\"m\", strtotime($endDate)) != date(\"m\", strtotime($date))) {\n\t\t\t\t$endDate = date(\"Y-m-t\", strtotime($date));\n\t\t\t}\n\t\t\t$arr[] = array(date(\"Y-m-d\",$start), $endDate);\n\t\t\t$start = strtotime($endDate) + (60*60*24);\n\t\t\t\n\t\t\n\t\t}\n\t\treturn $arr;\n\t}", "function season_by_week($season_start, $season_end, $type=\"schedule\", $sport_id=1, $week_current=0, $conference_id=0)\n{\n $season_start = strtotime($season_start);\n $season_end = strtotime($season_end);\n $seconds_in_a_week = 604800;\n \n // How many weeks are in a season?\n $season_weeks = round(( $season_end - $season_start ) / $seconds_in_a_week);\n \n $this_week = round(( time() - $season_start ) / $seconds_in_a_week);\n if ( $this_week < 0 ) $this_week = 0;\n\n switch ( strtolower($type) )\n {\n case \"schedule\":\n $week_start = $this_week;\n break;\n case \"results\":\n $week_start = 0;\n $season_weeks = $this_week;\n break;\n default:\n \n $week_start = 0;\n break;\n }\n\n\n //echo \"<dd>Weeks: $season_weeks</dd>\";\n //echo \"<dd>This week: $this_week</dd>\";\n //echo \"<dd>Week start: $week_start</dd>\";\n \n if ( $conference_id > 0 )\n {\n $conference_link = \"&ConferenceID=$conference_id\";\n }\n \n // Loop through the weeks, put the dates in an array.\n $return = \"\";\n for ( $i = $week_start; $i <= $season_weeks; $i ++ )\n {\n $week_display = $i + 1;\n $timestamp = $season_start + ( $seconds_in_a_week * $i );\n $week[$i] = week_generate($timestamp);\n \n $link = \"/home.html?site=default&tpl=Schedule&Sport=\" . $sport_id . \"&SearchDate=\" . date(\"m/d/Y\", $week[$i][0]) . \"&SearchDateEnd=\" . date(\"m/d/Y\", $week[$i][1]) . \"&start=0&count=250&Week=\" . $week_display . $conference_link;\n \n \n \n if ( $week_current == $week_display )\n {\n $return .= $week_display . \" \";\n }\n else\n {\n $return .= \"<a href=\" . $link . \" class=pageNumberLink>\" . $week_display . \"</a> \";\n }\n \n }\n return $return;\n}", "static public function getWeek($date)\n {\n\t \t$start_date = $date->startOfWeek();\n\t\t$end_date = $date->copy()->endOfWeek()->subDay(2); ;\n\n\t\t$weeks = array(\n\t\t\t\"start_end\" => array(\"start\" => $start_date,\"end\" => $end_date,\"week\" => $start_date->copy()->weekOfYear),\n\t\t\t\"days\" => array(\"monday\" => $start_date,\"tuesday\" => $start_date->copy()->addDay(),\"wednesday\" => $start_date->copy()->addDay(2),\"thursday\" => $start_date->copy()->addDay(3),\"friday\" => $start_date->copy()->addDay(4))\n\t\t\t);\n\n\t\treturn $weeks;\n }", "public function this_week($week) {\n\t\t$ts = $week;\n\t\t$start = strtotime( 'monday this week', $ts );\n\t\t$end = strtotime( 'monday this week +1 week', $ts );\n\t\t$end = strtotime( '-1 day', $end );\n\t\n\t\t$start_time = $start;\n\t\t$end_time = $end;\n\t\n\t\treturn array(\n\t\t\t'start'\t\t\t=>\tdate('Y-m-d', $start),\n\t\t\t'end'\t\t\t=>\tdate('Y-m-d', $end),\n\t\t\t'start_time'\t\t=>\t$start_time,\n\t\t\t'end_time'\t\t=>\t$end_time\n\t\t);\n\t}", "function week_start_end_by_date($date, $format = 'Y-m-d') { if (is_numeric($date) AND strlen($date) == 10) {\n $time = $date;\n } else {\n $time = strtotime($date);\n }\n\n $week['week'] = date('W', $time);\n $week['year'] = date('o', $time);\n $week['year_week'] = date('oW', $time);\n $first_day_of_week_timestamp = strtotime($week['year'] . \"W\" . str_pad($week['week'], 2, \"0\", STR_PAD_LEFT));\n $week['first_day_of_week'] = date($format, $first_day_of_week_timestamp);\n $week['first_day_of_week_timestamp'] = $first_day_of_week_timestamp;\n $last_day_of_week_timestamp = strtotime($week['first_day_of_week'] . \" +6 days\");\n $week['last_day_of_week'] = date($format, $last_day_of_week_timestamp);\n $week['last_day_of_week_timestamp'] = $last_day_of_week_timestamp;\n\n return $week;\n }", "function getDates($anzWochentage){\n $montag = $this->app->DB->Select(\"SELECT DATE_SUB(CURDATE(),INTERVAL WEEKDAY(CURDATE()) day)\");\n $week = array();\n for($i=0;$i<$anzWochentage;$i++)\n $week[$i] = $this->app->DB->Select(\"SELECT DATE_ADD('$montag',INTERVAL $i day)\");\n return $week;\n }", "function getWeekdays() {\n\t\t$week = array(\n\t\t\t$this->pi_getLL('sunday'),\n\t\t\t$this->pi_getLL('monday'),\n\t\t\t$this->pi_getLL('tuesday'),\n\t\t\t$this->pi_getLL('wednesday'),\n\t\t\t$this->pi_getLL('thursday'),\n\t\t\t$this->pi_getLL('friday'),\n\t\t\t$this->pi_getLL('saturday')\n\t\t);\n\n\t\treturn $week;\n\t}", "private static function printWeeks($startDate, $endDate, $formNum, $id)\r\n {\r\n $newDate = self::splitDates($startDate,$endDate);//retrive array of monday dates\r\n $divs =\"\";\r\n $numDates = count($newDate);\r\n if($numDates===0){//no future mondays meaning end date and start date only range of values\r\n $futuredate= new DateTime($startDate);\r\n $startDate= $futuredate->format(\"Y-m-d\");\r\n $displayStart = $futuredate->format(\"M d,Y\");//format date for route get hive\r\n $futuredate= new DateTime($endDate);\r\n $displayEnd= $futuredate->format(\"M d,Y\");\r\n $divs = \"<li class='list-group-item'><a href='viewform?form=\".$formNum. \"&weekStart=\".$startDate.\"&weekEnd=\".\r\n $futuredate->format(\"Y-m-d\").\"&id=\".$id.\"'>\". $displayStart.\r\n \" - \". $displayEnd.\"</a></li>\" . $divs;\r\n } else{//multiple weeks\r\n\r\n //display start day to saturday\r\n $futuredate= new DateTime($startDate);\r\n $startDate = new DateTime($startDate);\r\n $startDate= $startDate->format(\"Y-m-d\");\r\n if($futuredate->format('N')!=1)// if start date does not fall on a monday create first div\r\n {\r\n $displayStart = $futuredate->format(\"M d,Y\");//format date for route get hive\r\n $futuredate= $futuredate->modify('next sunday');\r\n $displayEnd= $futuredate->format(\"M d,Y\");\r\n $divs = \"<li class='list-group-item'><a href='viewform?form=\".$formNum. \"&weekStart=\".$startDate.\"&weekEnd=\".\r\n $futuredate->format(\"Y-m-d\").\"&id=\".$id.\"'>\". $displayStart.\r\n \" - \". $displayEnd.\"</a></li>\" . $divs;\r\n }\r\n //display all but last week\r\n for($i=0; $i<count($newDate)-1; $i++)\r\n {\r\n $futuredate = new DateTime($newDate[$i]);//convert date time object to be converted to next saturday\r\n $displayStart = $futuredate->format(\"M d,Y\");//format date for route get hive\r\n $futuredate->modify('next sunday');//grab saturday of the weeks monday date provided\r\n $futuredate->format(\"Y-m-d\");//format for route get hive\r\n\r\n $displayEnd =$futuredate->format(\"M d,Y\");//format for html example (October 31, 2018)\r\n //put together href utilizing all the information provided\r\n $divs = \"<li class='list-group-item'><a href='viewform?form=\".$formNum. \"&weekStart=\".$newDate[$i].\"&weekEnd=\".\r\n $futuredate->format(\"Y-m-d\").\"&id=\".$id.\"'>\". $displayStart.\r\n \" - \". $displayEnd.\"</a></li>\" . $divs;\r\n }\r\n\r\n //print last week making end date forms end date\r\n $futuredate = new DateTime($newDate[count($newDate)-1]);//convert date time object to be converted to next saturday\r\n $displayStart = $futuredate->format(\"M d,Y\");//format date for route get hive\r\n $futuredate= new DateTime($endDate);//grab saturday of the weeks monday date provided\r\n\r\n $futuredate->format(\"Y-m-d\");//format for route get hive\r\n\r\n $displayEnd =$futuredate->format(\"M d,Y\");//format for html example (October 31, 2018)\r\n //put together href utilizing all the information provided\r\n $divs = \"<li class='list-group-item'><a href='viewform?form=\".$formNum. \"&weekStart=\".$newDate[count($newDate)-1].\"&weekEnd=\".\r\n $futuredate->format(\"Y-m-d\").\"&id=\".$id.\"'>\". $displayStart.\r\n \" - \". $displayEnd.\"</a></li>\" . $divs;\r\n\r\n }\r\n return $divs;\r\n }", "function findWeekStartEndFromDateRange($dateStart,$dateEnd,$weekStartOn = 6) {\r\n\t$arrayWeekStart = array();\r\n\t$arrayWeekEnd = array();\r\n\t$foundWeeksRough = array();\r\n\t$foundWeeks = array();\r\n\tfor ($i = strtotime($dateStart); $i <= strtotime($dateEnd); $i = strtotime('+1 day', $i)) {\r\n\t if (date('N', $i) == $weekStartOn){ //Default is Saturday == 6\r\n\t\t$arrayWeekStart[] = date('Y-m-d', $i); // if it's a Saturday\r\n\t }\r\n\t}\r\n\tforeach($arrayWeekStart as $valweekStartOn){\r\n\t\t$valWeekEnd = strtotime(\"+6 day\".$valweekStartOn);\r\n\t\tif($valWeekEnd <= strtotime($dateEnd)){\r\n\t\t\t$arrayWeekEnd[] = date('Y-m-d', strtotime(\"+6 day\".$valweekStartOn));\r\n\t\t}\r\n\t}\r\n\t$foundWeeksRough = array_map(function ($arrayWeekStart, $arrayWeekEnd) {\r\n\t\t\t\t\treturn ['Start' => $arrayWeekStart, 'End' => $arrayWeekEnd];\r\n\t\t\t\t\t}, $arrayWeekStart, $arrayWeekEnd);\t\r\n\t\r\n\tforeach($foundWeeksRough as $foundWeekRough){\t\r\n\t\tif(empty($foundWeekRough['End']))continue;\r\n\t\t$foundWeeks[] = $foundWeekRough['Start'].\",\".$foundWeekRough['End'];\r\n\t}\r\n// Array of WeekStartDate and WeekEndDate\r\nreturn $foundWeeks;\r\n}", "public static function getWeekStartAndEnd($date): array\n {\n $datetime = new DateTime($date);\n $datetime->setISODate($datetime->format('Y'), $datetime->format('W'), 1);\n $result['week_start'] = $datetime->format('Y-m-d');\n $datetime->modify('+6days');\n $result['week_end'] = $datetime->format('Y-m-d');\n\n return $result;\n }", "function getDaysInWeek ($weekNumber, $year, $dayStart = 1) {\n // (according to ISO 8601).\n $time = strtotime($year . '0104 +' . ($weekNumber - 1).' weeks');\n // Get the time of the first day of the week\n $dayTime = strtotime('-' . (date('w', $time) - $dayStart) . ' days', $time);\n // Get the times of days 0 -> 6\n $dayTimes = array ();\n for ($i = 0; $i < 7; ++$i) {\n $dayTimes[] = strtotime('+' . $i . ' days', $dayTime);\n }\n // Return timestamps for mon-sun.\n return $dayTimes;\n }", "function prim_options_weeks() {\n $weeks = array(\n 'w1' => t('1'),\n 'w2' => t('2'),\n 'w3' => t('3'),\n 'w4' => t('4'),\n 'w5' => t('5'),\n 'w6' => t('6'),\n 'w7' => t('7'),\n 'w8' => t('8'),\n 'w9' => t('9'),\n 'w10' => t('10'),\n 'w11' => t('11'),\n 'w12' => t('12'),\n 'w13' => t('13'),\n 'w14' => t('14'),\n 'w15' => t('15'),\n 'w16' => t('16'),\n 'w17' => t('17'),\n 'w18' => t('18'),\n 'w19' => t('19'),\n 'w20' => t('20'),\n 'w21' => t('21'),\n 'w22' => t('22'),\n 'w23' => t('23'),\n 'w24' => t('24'),\n 'w25' => t('25'),\n 'w26' => t('26'),\n 'w27' => t('27'),\n 'w28' => t('28'),\n 'w29' => t('29'),\n 'w30' => t('30'),\n 'w31' => t('31'),\n 'w32' => t('32'),\n 'w33' => t('33'),\n 'w34' => t('34'),\n 'w35' => t('35'),\n 'w36' => t('36'),\n 'w37' => t('37'),\n 'w38' => t('38'),\n 'w39' => t('39'),\n 'w40' => t('40'),\n 'w41' => t('41'),\n 'w42' => t('42'),\n 'w43' => t('43'),\n 'w44' => t('44'),\n 'w45' => t('45'),\n 'w46' => t('46'),\n 'w47' => t('47'),\n 'w48' => t('48'),\n 'w49' => t('49'),\n 'w50' => t('50'),\n 'w51' => t('51'),\n 'w52' => t('52'),\n 'w53' => t('53'),\n );\n\n return $weeks;\n}", "function getWeekDays($y=NULL, $m=NULL, $d=NULL)\n {\n return array(0, 1, 2, 3, 4, 5, 6);\n }", "private function getWeekDays()\n {\n $time = date('Y-m-d', strtotime($this->year . '-' . $this->month . '-' . $this->day));\n if ($this->view == 'week') {\n $sunday = strtotime('last sunday', strtotime($time . ' +1day'));\n $day = date('j', $sunday);\n $startingDay = date('N', $sunday);\n $cnt = 6;\n }\n if ($this->view == 'day') {\n $day = $this->day;\n $cnt = 0;\n }\n\n $this->week_days = array();\n $mlen = $this->daysMonth[intval($this->month) - 1];\n if ($this->month == 2 && ((($this->year % 4) == 0) && ((($this->year % 100) != 0) || (($this->year % 400) == 0)))) {\n $mlen = $mlen + 1;\n }\n $h = \"<tr class='\" . $this->labelsClass . \"'>\";\n $h .= \"<td>&nbsp;</td>\";\n for ($j = 0; $j <= $cnt; $j++) {\n $cs = $cnt == 0 ? 3 : 1;\n $h .= \"<td colspan='$cs'>\";\n if ($this->view == 'day') {\n $getDayNumber = date('w', strtotime($time));\n } else {\n $getDayNumber = $j;\n }\n if ($day <= $mlen) {\n } else {\n $day = 1;\n }\n $h .= $this->dayLabels[$getDayNumber] . ' ';\n $h .= intval($day);\n $this->week_days[] = $day;\n $day++;\n $h .= \"</td>\";\n }\n\n $h .= \"</tr>\";\n return $h;\n }", "function dayOfWeek()\n {\n echo \"Enter the day: \\n\";\n $d = AlgorithmsUtility::get_Integer();\n echo \"Enter the month: \\n\";\n $m = AlgorithmsUtility::get_Integer();\n echo \"Enter the year. \\n\";\n $y = AlgorithmsUtility::get_Integer();\n\n $y0 = floor($y - (14 - $m) / 12) + 1;\n $x = floor($y0 + $y0 / 4 - $y0 / 100 + $y0 / 400);\n $m0 = ($m + 12 * floor(((14 - $m) / 12)) - 2);\n $d0 = floor(($d + $x + floor((31 * $m0) / 12)) % 7);\n $d1 = \"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\";\n $day = explode(\" \", $d1);\n echo \"day on given date is \" . $day[$d0] . \"\\n\";\n }", "function week($date)\n{\n $week =array(\"周日\",\"周一\",\"周二\",\"周三\",\"周四\",\"周五\",\"周六\");\n return $week[date(\"w\",strtotime($date))];\n}", "function _makeWeek($date){\n // by keeping it the central date of the week,\n // i.e. the 4th day, makes a week and returns\n // an array of the form\n // [ { day : 'Monday, etc.', date : '2019-2-24' ... etc} ]\n // ------------------------------------------------\n // This function gets date in form of 'YYYY-MM-DD'\n\n $carbon = new Carbon($date);\n $carbon->add(-3, 'day');\n $week = [];\n for($i = 0; $i < 7; $i += 1){\n $week[] = $this->_makeDay($carbon);\n $carbon->add(1,'day');\n }\n return $week;\n }", "private function week_start_end_by_date($date, $format = 'Y-m-d') { if (is_numeric($date) AND strlen($date) == 10) {\n $time = $date;\n } else {\n $time = strtotime($date);\n }\n\n $week['week'] = date('W', $time);\n $week['year'] = date('o', $time);\n $week['year_week'] = date('oW', $time);\n $first_day_of_week_timestamp = strtotime($week['year'] . \"W\" . str_pad($week['week'], 2, \"0\", STR_PAD_LEFT));\n $week['first_day_of_week'] = date($format, $first_day_of_week_timestamp);\n $week['first_day_of_week_timestamp'] = $first_day_of_week_timestamp;\n $last_day_of_week_timestamp = strtotime($week['first_day_of_week'] . \" +6 days\");\n $week['last_day_of_week'] = date($format, $last_day_of_week_timestamp);\n $week['last_day_of_week_timestamp'] = $last_day_of_week_timestamp;\n\n return $week;\n }", "public static function CreateGeneralWeeklyDates($mCurrentTermStartDate)\n {\n $mGeneralweeklyDates = array();\n $monday = new DateTime($mCurrentTermStartDate);\n $period = new DateInterval('P1D');\n $subtract = $monday->sub($period);\n\n /*It assumed that the below date is or was initialy recieved by the function so\n 1. Store it as Start of general week one \n 2. Make an object of it \n 3. add the 7 days period to get the end of general week one\n */\n $mSunday = $subtract->format('Y-m-d');\n $mGeneralweeklyDates['gw1_start'] = $mSunday;\n $mSundayObj = new DateTime($mSunday);\n $period_w1s = new DateInterval('P6D');\n $w1end = $mSundayObj->add($period_w1s);\n $mGeneralweeklyDates['gw1_stop'] = $w1end->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw1_start'], $mGeneralweeklyDates['gw1_stop'], 1);\n\n /**Week 2 */\n $w2p_start = new DateInterval('P1D');\n $w2p_start_date = $w1end->add($w2p_start);\n $mGeneralweeklyDates['gw2_start'] = $w2p_start_date->format('Y-m-d');\n\n $w2p_stop = new DateInterval('P6D');\n $w2p_stop_date = $w2p_start_date->add($w2p_stop);\n $mGeneralweeklyDates['gw2_stop'] = $w2p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw2_start'], $mGeneralweeklyDates['gw2_stop'], 2);\n\n /**Week 3*/\n $w3p_start = new DateInterval('P1D');\n $w3p_start_date = $w2p_stop_date->add($w3p_start);\n $mGeneralweeklyDates['gw3_start'] = $w3p_start_date->format('Y-m-d');\n\n $w3p_stop = new DateInterval('P6D');\n $w3p_stop_date = $w3p_start_date->add($w3p_stop);\n $mGeneralweeklyDates['gw3_stop'] = $w3p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw3_start'], $mGeneralweeklyDates['gw3_stop'], 3);\n\n /**Week 4*/\n $w4p_start = new DateInterval('P1D');\n $w4p_start_date = $w3p_stop_date->add($w4p_start);\n $mGeneralweeklyDates['gw4_start'] = $w4p_start_date->format('Y-m-d');\n\n $w4p_stop = new DateInterval('P6D');\n $w4p_stop_date = $w4p_start_date->add($w4p_stop);\n $mGeneralweeklyDates['gw4_stop'] = $w4p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw4_start'], $mGeneralweeklyDates['gw4_stop'], 4);\n\n /**Week 5*/\n $w5p_start = new DateInterval('P1D');\n $w5p_start_date = $w4p_stop_date->add($w5p_start);\n $mGeneralweeklyDates['gw5_start'] = $w5p_start_date->format('Y-m-d');\n\n $w5p_stop = new DateInterval('P6D');\n $w5p_stop_date = $w5p_start_date->add($w5p_stop);\n $mGeneralweeklyDates['gw5_stop'] = $w5p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw5_start'], $mGeneralweeklyDates['gw5_stop'], 5);\n\n /**Week 6*/\n $w6p_start = new DateInterval('P1D');\n $w6p_start_date = $w5p_stop_date->add($w6p_start);\n $mGeneralweeklyDates['gw6_start'] = $w6p_start_date->format('Y-m-d');\n\n $w6p_stop = new DateInterval('P6D');\n $w6p_stop_date = $w6p_start_date->add($w6p_stop);\n $mGeneralweeklyDates['gw6_stop'] = $w6p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw6_start'], $mGeneralweeklyDates['gw6_stop'], 6);\n\n /**Week 7*/\n $w7p_start = new DateInterval('P1D');\n $w7p_start_date = $w6p_stop_date->add($w7p_start);\n $mGeneralweeklyDates['gw7_start'] = $w7p_start_date->format('Y-m-d');\n\n $w7p_stop = new DateInterval('P6D');\n $w7p_stop_date = $w7p_start_date->add($w7p_stop);\n $mGeneralweeklyDates['gw7_stop'] = $w7p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw7_start'], $mGeneralweeklyDates['gw7_stop'], 7);\n\n /**Week 8*/\n $w8p_start = new DateInterval('P1D');\n $w8p_start_date = $w7p_stop_date->add($w8p_start);\n $mGeneralweeklyDates['gw8_start'] = $w8p_start_date->format('Y-m-d');\n\n $w8p_stop = new DateInterval('P6D');\n $w8p_stop_date = $w8p_start_date->add($w8p_stop);\n $mGeneralweeklyDates['gw8_stop'] = $w8p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw8_start'], $mGeneralweeklyDates['gw8_stop'], 8);\n\n /**Week 9*/\n $w9p_start = new DateInterval('P1D');\n $w9p_start_date = $w8p_stop_date->add($w9p_start);\n $mGeneralweeklyDates['gw9_start'] = $w9p_start_date->format('Y-m-d');\n\n $w9p_stop = new DateInterval('P6D');\n $w9p_stop_date = $w9p_start_date->add($w9p_stop);\n $mGeneralweeklyDates['gw9_stop'] = $w9p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw9_start'], $mGeneralweeklyDates['gw9_stop'], 9);\n\n /**Week 10*/\n $w10p_start = new DateInterval('P1D');\n $w10p_start_date = $w9p_stop_date->add($w10p_start);\n $mGeneralweeklyDates['gw10_start'] = $w10p_start_date->format('Y-m-d');\n\n $w10p_stop = new DateInterval('P6D');\n $w10p_stop_date = $w10p_start_date->add($w10p_stop);\n $mGeneralweeklyDates['gw10_stop'] = $w10p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw10_start'], $mGeneralweeklyDates['gw10_stop'], 10);\n\n /**Week 11*/\n $w11p_start = new DateInterval('P1D');\n $w11p_start_date = $w10p_stop_date->add($w11p_start);\n $mGeneralweeklyDates['gw11_start'] = $w11p_start_date->format('Y-m-d');\n\n $w11p_stop = new DateInterval('P6D');\n $w11p_stop_date = $w11p_start_date->add($w11p_stop);\n $mGeneralweeklyDates['gw11_stop'] = $w11p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw11_start'], $mGeneralweeklyDates['gw11_stop'], 11);\n\n /**Week 12*/\n $w12p_start = new DateInterval('P1D');\n $w12p_start_date = $w11p_stop_date->add($w12p_start);\n $mGeneralweeklyDates['gw12_start'] = $w12p_start_date->format('Y-m-d');\n\n $w12p_stop = new DateInterval('P6D');\n $w12p_stop_date = $w12p_start_date->add($w12p_stop);\n $mGeneralweeklyDates['gw12_stop'] = $w12p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw12_start'], $mGeneralweeklyDates['gw12_stop'], 12);\n\n /**Week 13*/\n $w13p_start = new DateInterval('P1D');\n $w13p_start_date = $w12p_stop_date->add($w13p_start);\n $mGeneralweeklyDates['gw13_start'] = $w13p_start_date->format('Y-m-d');\n\n $w13p_stop = new DateInterval('P6D');\n $w13p_stop_date = $w13p_start_date->add($w13p_stop);\n $mGeneralweeklyDates['gw13_stop'] = $w13p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw13_start'], $mGeneralweeklyDates['gw13_stop'], 13);\n\n /**Week 14*/\n $w14p_start = new DateInterval('P1D');\n $w14p_start_date = $w13p_stop_date->add($w14p_start);\n $mGeneralweeklyDates['gw14_start'] = $w14p_start_date->format('Y-m-d');\n\n $w14p_stop = new DateInterval('P6D');\n $w14p_stop_date = $w14p_start_date->add($w14p_stop);\n $mGeneralweeklyDates['gw14_stop'] = $w14p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw14_start'], $mGeneralweeklyDates['gw14_stop'], 14);\n\n /**Week 15*/\n $w15p_start = new DateInterval('P1D');\n $w15p_start_date = $w14p_stop_date->add($w15p_start);\n $mGeneralweeklyDates['gw15_start'] = $w15p_start_date->format('Y-m-d');\n\n $w15p_stop = new DateInterval('P6D');\n $w15p_stop_date = $w15p_start_date->add($w15p_stop);\n $mGeneralweeklyDates['gw15_stop'] = $w15p_stop_date->format('Y-m-d');\n\n self::AddTermWeeklyGeneralDates($mGeneralweeklyDates['gw15_start'], $mGeneralweeklyDates['gw15_stop'], 15);\n\n return $mGeneralweeklyDates;\n\n }", "public static function getRangeDatesForWeek($week, $year) {\n\t\t$return = array(); \n\n\t\t// calc start & end timestamps for individual day html\n\t\t$end_time = mktime(0,0,0,1,1,$year)+($week*7*24*3600);\n\t\t$start_time = $end_time - (6*24*3600);\n\n\t\t$return['end_date'] = date('Y-m-d', $end_time);\n\t\t$return['start_date'] = date('Y-m-d', $start_time);\n\t\treturn $return;\n\t}", "public static function getNextWeek(){\n\t\t\t$cur = DB::select('SELECT WEEKDAY((SELECT CURDATE())) as cur')[0]->cur;\n\n\t\t\t// SQL find this monday\n\t\t\t$fir = DB::select('SELECT DATE_SUB( (SELECT CURDATE()), INTERVAL ?-6 DAY) as fir', array($cur))[0]->fir;\n\t\t\t$firstDay = DB::select('SELECT UNIX_TIMESTAMP(?) as firstDay', array($fir))[0]->firstDay;\n\n\t\t\t// SQL find this sunday\n\t\t\t$lst = DB::select('SELECT DATE_SUB( (SELECT CURDATE()), INTERVAL ?-12 DAY) as lst', array($cur))[0]->lst;\n\t\t\t$lastDay = DB::select('SELECT UNIX_TIMESTAMP(?) as lastDay', array($lst))[0]->lastDay;\n\n\t\t\t// Number, String\n\t\t\treturn array(array($firstDay, $lastDay + 86399), array($fir, $lst));\n\n\t\t}", "public function getWeekdays() {\r\n\t\t$weekdays = array();\r\n\t\t$weekdays['Mon'] = 'Lunes';\r\n\t\t$weekdays['Tue'] = 'Martes';\r\n\t\t$weekdays['Wed'] = 'Miercoles';\r\n\t\t$weekdays['Thu'] = 'Jueves';\r\n\t\t$weekdays['Fri'] = 'Viernes';\r\n\t\t$weekdays['Sat'] = 'Sabado';\r\n\t\t$weekdays['Sun'] = 'Domingo';\r\n\t\t\r\n\t\treturn $weekdays;\r\n\t}", "public function getDayOfTheWeek();", "public function getWeeks() : int {\n $start = $this->getStartingDay();\n $end = $start->modify('+1 month -1 day');\n $startWeek = intval($start->format('W'));\n $endWeek =intval($end->format('W'));\n if ($endWeek ===1){\n $endWeek =intval($end ->modify('- 7 days')->format('W')) + 1;\n }\n $weeks = $endWeek - $startWeek + 1;\n if ($weeks < 0){\n $weeks = intval($end->format('W'));\n }\n return $weeks;\n }", "function week_generate($game_timestamp)\n{\n $saturday = 6;\n $game_day = date(\"w\", $game_timestamp);\n $game_days_until_saturday = $saturday - $game_day;\n $week_start = strtotime(\"-$game_day days\", $game_timestamp);\n $week_end = strtotime(\"+$game_days_until_saturday days\", $game_timestamp);\n return array($week_start, $week_end);\n}", "function findSatAndSunFromDateRange($dateStart,$dateEnd) {\r\n$allSat = array();\r\n$allSun = array();\r\n\tfor ($i = strtotime($dateStart); $i <= strtotime($dateEnd); $i = strtotime('+1 day', $i)) {\r\n\t if (date('N', $i) == 6){ //Saturday == 6\r\n\t\t$allSat[] = date('l Y-m-d', $i); // if it's a Saturday\r\n\t }\r\n\t if (date('N', $i) == 7){ //Sunday == 7\r\n\t\t$allSun[] = date('l Y-m-d', $i); // if it's a Sunday\r\n\t }\r\n\t}\r\nreturn array('saturdays' => $allSat, 'sundays' => $allSun);\r\n}", "public function FireStatisticalin4Week($week){\n ini_set('max_execution_time', 300);\n $week_array = array();\n for($i = 0; $i < 4; $i++){\n $date1 = date('Y/m/d', strtotime('-6 days', strtotime($week)));\n $str = $date1.'-'.$week;\n $week_array[$i]['week'] = $str;\n $week_array[$i]['count'] = 0;\n $week_count = $this->FireStatisticalinWeek($week);\n $sum = 0;\n foreach($week_count as $item) {\n $sum += $item['count'];\n }\n $week_array[$i]['count'] = $sum;\n $week = date('Y/m/d', strtotime('-1 days', strtotime($date1)));\n }\n return $week_array;\n }", "public function getDateList()\n {\n $return = array();\n \n for (\n $i = strtotime($this->from_date); \n $i <= strtotime($this->to_date); \n $i = strtotime('+ 1 day', $i)\n )\n {\n $date = date('Y-m-d', $i);\n $weekday = date('w', $i);\n $weekend = (in_array($weekday, array(0,6))) ? true : false;\n $calendarWeek = (int) date('W', $i); //cast to integer to remove leading 0\n \n $return[$date] = array('date' => $date, 'weekend' => $weekend, 'calendarWeek' => $calendarWeek);\n }\n \n return $return;\n }", "public function getWeeksInWeekYear($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function handleCalendar( $showID, $dates=null, $venueWPID=\"\", $mobile = false ) {\n $monthVal;\n if ( $dates == null ) {\n\n $showID = $_POST['data']['showID'];\n \n $monthVal = $_POST['data']['monthVal'];\n\n $venueWPID = $_POST['data']['venueVal'];\n \n $mobile = isset($_POST['data']['mobile'])? true : false;\n \n // grab \"week\" variable from $_POST, if set, use that to build start and end dates, else call \"getDates\"\n $week = $_POST['data']['week'];\n\n $today = new DateTime('today');\n // if there's no week value, and the selected month matches current month, choose current week\n if ( $week == \"\" && $today->format('n') - 1 == $monthVal ) {\n $start = new DateTime();\n $start->setISODate( $today->format('Y'), $today->format('W'), 0);\n $week = $start->format('Y-m-d');\n }\n\n //echo \"Week is $week\";\n if ( $week != '' ) {\n $trashDate = new DateTime( $week );\n $dates['start'] = new DateTime( $trashDate->format( 'Y-m-d' ) );\n $trashDate->modify( \"+6 days\" );\n $dates['end'] = new DateTime( $trashDate->format( 'Y-m-d' ) );\n } else if ( $week == '' ) {\n // check if current month matches selected month, select current week if so\n $today = new DateTime();\n if ( $today->format('n')-1 == $monthVal) {\n $week = $today->format('W');\n //printDat($week);\n }\n $dates = getDates( $week, $monthVal );\n }\n //var_dump($dates);\n //wp_die();\n }\n\n /*echo \"<pre>\";\n print_r($dates);\n echo \"</pre>\";*/\n\n // set previous and next week variables\n $prevWeek = new DateTime( $dates[\"start\"]->format(\"Y-m-d\") );\n $prevWeek->modify( \"-1 week\" );\n $nextWeek = new DateTime( $dates[\"start\"]->format(\"Y-m-d\") );\n $nextWeek->modify( \"+1 week\" );\n \n $fullEvents = getShowEvents( $showID, $venueWPID, $dates['start']->format( \"Y-m-d\" ), $dates['end']->format( \"Y-m-d\" ) );\n\n if($mobile){\n return array(\n 'events' => $fullEvents,\n 'week' => $nextWeek\n );\n }\n /*echo \"<pre>\";\n print_r($fullEvents);\n echo \"</pre>\";*/\n\n // for each event, create a new array containing their ID, day of the week and time; push that into events array\n $events;\n foreach( $fullEvents as $event ) {\n $daDate = new DateTime( $event->time );\n $toInsert = array (\n \"id\" => $event->id,\n \"hour\" => $daDate->format( 'G' ),\n \"minute\"=> $daDate->format( 'i' ),\n \"day\" => $daDate->format( 'w' )\n );\n $events[] = $toInsert;\n }\n\n\n // new DateTime to hold current start date...will be used to iterate over and populate the day headers without messing with the dates array\n $currWeek = new DateTime( $dates['start']->format(\"Y-m-d\") );\n \n //start building out the HTML that will display the calendar\n $html = \"<div class='cal-nav'><a id='prev-week-btn'><input type='hidden' id='prev-week' value='\" . $prevWeek->format('Y-m-d') . \"' /><img src='\" . get_template_directory_uri() . \"/library/assets/icons/dotted-arrow.png' /></a>\";\n $html .= \"<span id='date-range'>\" . $dates['start']->format('M j') . \" - \" . $dates['end']->format( 'M j' ) . \"</span>\";\n $html .= \"<a id='next-week-btn'><input type='hidden' id='next-week' value='\" . $nextWeek->format('Y-m-d') . \"' /><img src='\" . get_template_directory_uri() . \"/library/assets/icons/dotted-arrow.png' /></a></div>\";\n $html .= \"<table id='events-calendar'><tr class='days-heading'>\";\n\n // while loop to create the day of the week headers (complete month/day indications)\n $cntr = 0;\n while( $cntr < 7 ) {\n $html .= \"<td>\" . $currWeek->format( 'D n/j' ) . \"</td>\";\n $currWeek->modify( '+1 day' );\n $cntr++;\n }\n $html .= \"</tr>\"; // finish off the day headings row\n\n // another loop, this one to populate in events on each day\n $cntr = 0;\n $html .= \"<tr>\";\n if ( isset( $events ) ) {\n while( $cntr < 7 ) {\n $html .= \"<td>\";\n\n // cycle through events array, grabbing any for current day (based on \"day\" value)\n foreach( $events as $event ) {\n\n $url = home_url( '/' ) . \"tickets/?eventID=\" . $event['id'];\n if( $event['day'] == $cntr ) {\n // build time variable, including converting from 24 hour to 12 hour time\n if ( $event['hour'] > 12 ) {\n $time = $event['hour']-12 . \":\" . $event['minute'] . \" PM\";\n } else {\n $time = $event['hour'] . \":\" . $event['minute'] . \" AM\";\n }\n \n $html .= \"<a href='\" . $url . \"' class='show-time' id='\" . $event['id'] . \"' >\" . $time . \"</a>\";\n }\n }\n $html .= \"</td>\";\n $cntr++;\n }\n } else {\n $html .= \"<td colspan='7'>No events for this week</td>\";\n }\n $html .= \"</tr>\";\n\n $html .= \"<tr><td colspan='7' style='height: 50px'> </td></tr>\";\n\n $html .= \"</table>\";\n\n\n echo $html;\n\n if( $_POST ) {\n wp_die();\n }\n}", "function jr_week_start_date($week, $year, $format = \"d-m-Y\") {\r\n\r\n\t$first_day_year = date(\"N\", mktime(0,0,0,1,1,$year));\r\n\tif ($first_day_year < 5)\r\n\t\t$shift =-($first_day_year-1)*86400;\r\n\telse\r\n\t\t$shift=(8-$first_day_year)*86400;\r\n\tif ($week > 1) $week_seconds = ($week-1)*604800; else $week_seconds = 0;\r\n\t$timestamp = mktime(0,0,0,1,1,$year) + $week_seconds + $shift;\r\n\r\n\treturn date($format, $timestamp);\r\n}", "static function timeline($year, $week) {\n //default values\n if (!$year) {\n $year = date('Y');\n }\n\n if (!$week) {\n $week = date('W') - 1;\n }\n\n $data =[];\n\n $sql = \"SET @d := STR_TO_DATE(concat(:year,:week,' Monday'), '%X%V %W');\";\n Yii::app()\n ->db\n ->createCommand($sql)\n ->bindParam(':year', $year, PDO::PARAM_INT)\n ->bindParam(':week', $week, PDO::PARAM_INT)\n ->execute();\n //start date\n $sql = \"SET @date_from := ADDDATE(@d , INTERVAL 2-DAYOFWEEK(@d) DAY);\";\n Yii::app()->db->createCommand($sql)->execute();\n\n //end date\n $sql = \"SET @date_to := ADDDATE(@date_from , 12);\";\n Yii::app()->db->createCommand($sql)->execute();\n\n $sql = \"\n SELECT \n vvoy_id,\n date(vvoy_start_date) start_date,\n date(vvoy_end_date) end_date,\n concat(vtrc_car_reg_nr,'/',vtrl_reg_nr) label,\n CASE vvoy_status \n WHEN '\" . self::VVOY_STATUS_PROJECT . \"' THEN 'icon-question'\n WHEN '\" . self::VVOY_STATUS_ACCEPTED . \"' THEN 'icon-check' \n WHEN '\" . self::VVOY_STATUS_CANCELED . \"' THEN 'icon-times' \n WHEN '\" . self::VVOY_STATUS_IN_WAY . \"' THEN 'icon-road' \n WHEN '\" . self::VVOY_STATUS_CLOSED . \"' THEN 'icon-lock' \n WHEN '\" . self::VVOY_STATUS_FINISHED . \"' THEN 'icon-unlock' \n END icon,\n CASE vvoy_status \n WHEN '\" . self::VVOY_STATUS_PROJECT . \"' THEN 'warning'\n WHEN '\" . self::VVOY_STATUS_ACCEPTED . \"' THEN 'success' \n WHEN '\" . self::VVOY_STATUS_CANCELED . \"' THEN 'light' \n WHEN '\" . self::VVOY_STATUS_IN_WAY . \"' THEN 'danger' \n WHEN '\" . self::VVOY_STATUS_CLOSED . \"' THEN 'grey' \n WHEN '\" . self::VVOY_STATUS_FINISHED . \"' THEN 'yellow' \n END color\n FROM\n vvoy_voyage \n INNER JOIN vtrc_truck \n ON vvoy_vtrc_id = vtrc_id \n LEFT OUTER JOIN vtrl_trailer \n ON vvoy_vtrl_id = vtrl_id \n WHERE \n vvoy_sys_ccmp_id = \" . Yii::app()->sysCompany->getActiveCompany() . \" \n AND \n (\n vvoy_start_date >= @date_from AND vvoy_start_date <= @date_to\n OR vvoy_end_date >= @date_from AND vvoy_end_date <= @date_to\n OR vvoy_start_date <= @date_from AND vvoy_end_date >= @date_to \n )\n ORDER BY vtrc_car_reg_nr,\n vvoy_start_date \n \";\n\n $data['body_data'] = Yii::app()\n ->db\n ->createCommand($sql)\n ->queryAll();\n\n //create urls\n foreach ($data['body_data'] as $k => $row) {\n $data['body_data'][$k]['url'] = Yii::app()->createUrl(\n 'vvoy/vvoyVoyage/view', \n array('vvoy_id' => $row['vvoy_id'])\n );\n }\n\n $sql = \"SELECT \n @date_from date_from,\n @date_to date_to,\n year(adddate(@date_from,interval -1 week)) prev_period_year,\n week(adddate(@date_from,interval -1 week)) prev_period_week,\n year(adddate(@date_from,interval 1 week)) next_period_year,\n week(adddate(@date_from,interval 1 week)) next_period_week\n ;\";\n $data['header_data'] = Yii::app()->db->createCommand($sql)->queryRow();\n \n return $data;\n }", "function getOneDay($str, $week, $month, $day)\n\t{\n\t\t$weekdata = filter($str);\n\t\t$result = array();\n\t\tif($week == 1) $temp = (\"Mon 一(\".$month.\"-\".$day.\")\");\n\t\telse if($week == 2) $temp = (\"Tue 二(\".$month.\"-\".$day.\")\");\n\t\telse if($week == 3) $temp = (\"Wed 三(\".$month.\"-\".$day.\")\");\n\t\telse if($week == 4) $temp = (\"Thu 四(\".$month.\"-\".$day.\")\");\n\t\telse if($week == 5) $temp = (\"Fri 五(\".$month.\"-\".$day.\")\");\n\t\telse if($week == 6) $temp = (\"Sat 六(\".$month.\"-\".$day.\")\");\n\t\telse $temp = (\"Sun 日(\".$month.\"-\".$day.\")\");\n\t\tarray_push($result, $temp);\n\t\tfor($i = 1; $i <= 14; $i++)\n\t\t{\n\t\t\tarray_push($result, $weekdata[$i][$week]);\n\t\t}\n\t\treturn $result;\n\t}", "public static function getThisWeek(){\n\t\t\t$cur = DB::select('SELECT WEEKDAY((SELECT CURDATE())) as cur')[0]->cur;\n\n\t\t\t// SQL find this monday\n\t\t\t$fir = DB::select('SELECT DATE_SUB( (SELECT CURDATE()), INTERVAL ?+1 DAY) as fir', array($cur))[0]->fir;\n\t\t\t$firstDay = DB::select('SELECT UNIX_TIMESTAMP(?) as firstDay', array($fir))[0]->firstDay;\n\n\t\t\t// SQL find this sunday\n\t\t\t$lst = DB::select('SELECT DATE_SUB( (SELECT CURDATE()), INTERVAL ?-5 DAY) as lst', array($cur))[0]->lst;\n\t\t\t$lastDay = DB::select('SELECT UNIX_TIMESTAMP(?) as lastDay', array($lst))[0]->lastDay;\n\t\t\t\n\t\t\t// Number, String\n\t\t\treturn array(array($firstDay, $lastDay+ 86399), array($fir, $lst));\n\t\t}", "function week($week,$date){\nglobal $maand,$week,$language,$m,$d,$y,$ld,$fd,$viewweekok,$searchweekok,$popupevent,$popupeventwidth,$popupeventheight;\n\nif ($viewweekok == 1){\n\nif (!$date){\n$year = $y;\n$month = $m;\n$day = $d;\n}\nelse{\n$year = substr($date,0,4);\n$month = substr($date,5,2);\n$day = substr($date,8,2);\n}\n\n// weeknummer\nfunction weekNumber($dag,$maand,$jaar)\n{\n $a = (14-$maand)/12;\n settype($a,\"integer\");\n $y = $jaar+4800-$a;\n settype($y,\"integer\");\n $m = $maand + 12*$a - 3;\n settype($m,\"integer\");\n $J = $dag + (153*$m+2)/5 + $y*365 + $y/4 - $y/100 + $y/400 - 32045;\n $d4 = ($J+31741 - ($J % 7)) % 146097 % 36524 % 1461;\n $L = $d4/1460;\n $d1 = (($d4-$L) % 365) + $L;\n $WeekNumber = ($d1/7)+1;\n settype($WeekNumber,\"integer\");\n return $WeekNumber;\n}\n\n$deesweek = mktime(0,0,0,date(\"d\"), date(\"m\"), date(\"Y\"));\n$weeknummer = weekNumber($day,$month,$year);\n$laatsteweek = ($weeknummer + 10);\nif ($laatsteweek > 52){\n $laatsteweek = $laatsteweek - 52;\n}\n\n// eerste dag van de week\nfunction firstDayOfWeek($year,$month,$day){\n global $fd;\n $dayOfWeek=date(\"w\");\n $sunday_offset=$dayOfWeek * 60 * 60 * 24;\n $fd = date(\"Y-m-d\", mktime(0,0,0,$month,$day+1,$year) - $sunday_offset);\n return $fd;\n}\nfirstDayOfWeek($year,$month,$day);\n\n// laatste dag van de week\nfunction lastDayOfWeek($year,$month,$day){\n global $ld;\n $dayOfWeek=date(\"w\");\n $saturday_offset=(6-$dayOfWeek) * 60 * 60 * 24 ;\n $ld = date(\"Y-m-d\", mktime(0,0,0,$month,$day+1,$year) + $saturday_offset);\n return $ld;\n}\nlastDayOfWeek($year,$month,$day);\n\nif (($date) && ($date != date(\"Y-m-d\"))){\necho \"<a href=calendar.php?op=week&date=\".date(\"Y-m-d\", mktime(0,0,0,$month,$day-7,$year)).\"><== \".translate(\"prevweek\").\"</a> - \";\n}\necho \"<a href=calendar.php?op=week&date=\".date(\"Y-m-d\", mktime(0,0,0,$month,$day+7,$year)).\">\".translate(\"nextweek\").\" ==> </a>\";\n\n// zin met datum begin van weeknummer en datum eind weeknummer\necho \"<br><br>\".translate(\"eventsthisweek\");\n$fdy = substr($fd,0,4);\n$fdm = substr($fd,5,2);\nif (substr($fdm,0,1) == \"0\"){\n $fdm = str_replace(\"0\",\"\",$fdm);}\n$fdd = substr($fd,8,2);\necho $fdd.\" \".$maand[$fdm].\" \".$fdy;\necho \" \".translate(\"till\").\" \";\n$ldy = substr($ld,0,4);\n$ldm = substr($ld,5,2);\nif (substr($ldm,0,1) == \"0\"){\n $ldm = str_replace(\"0\",\"\",$ldm);}\n$ldd = substr($ld,8,2);\necho $ldd.\" \".$maand[$ldm].\" \".$ldy;\necho \" (\".translate(\"weeknr\").\" : \".$weeknummer.\")\";\n\n// en nu de evenementen eruit halen :)\n$ld = date(\"Y-m-d\", mktime(0,0,0,$ldm,$ldd+1,$ldy));\necho \"<br><br>\";\nwhile ($fd != $ld){\n$fdy = substr($fd,0,4);\n$fdm = substr($fd,5,2);\nif (substr($fdm,0,1) == \"0\"){\n $fdm = str_replace(\"0\",\"\",$fdm);}\n$fdd = substr($fd,8,2);\n$query = \"select id,title,description,url,cat_name,day,month,year from events left join calendar_cat on events.cat=calendar_cat.cat_id where day='$fdd' and month='$fdm' and year='$fdy' and approved='1' order by title ASC\";\n//echo $query.\"<br>\";\n$result = mysql_query($query);\n while ($row = mysql_fetch_object($result)){\n echo \"<li><b><U>\".stripslashes($row->title).\"</u></b><font size=-1> (\".$row->day.\" \".$row->month.\" \".$row->year.\")</font><br>\";\n echo translate(\"cat\").\" : \".$row->cat_name.\"<br>\";\n $de = str_replace(\"<br>\",\"\",$row->description);\n $de = str_replace(\"<br />\",\"\",$row->description);\n echo substr(stripslashes($de),0,100).\" ...\";\n echo \"<br>\";\n if ($popupevent == 1)\n echo \"<a href=\\\"#\\\" onclick=\\\"MM_openBrWindow('cal_popup.php?op=view&id=\".$row->id.\"','Calendar','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=\".$popupeventwidth.\",height=\".$popupeventheight.\"')\\\">\";\n else\n echo \"<a href=calendar.php?op=view&id=\".$row->id.\">\";\n echo translate(\"readmore\").\"</a>\";\n echo \"<br><br>\";\n }\n$fd = date(\"Y-m-d\", mktime(0,0,0,$fdm,$fdd+1,$fdy));\n}\nif ($searchweekok == 1)\n\tsearch();\n}\nelse{\n echo translate(\"disabled\");\n}\n}", "function wpsl_get_weekdays() {\n\n $weekdays = array(\n 'monday' => __( 'Monday', 'wpsl' ),\n 'tuesday' => __( 'Tuesday', 'wpsl' ),\n 'wednesday' => __( 'Wednesday', 'wpsl' ),\n 'thursday' => __( 'Thursday', 'wpsl' ),\n 'friday' => __( 'Friday', 'wpsl' ),\n 'saturday' => __( 'Saturday', 'wpsl' ),\n 'sunday' => __( 'Sunday' , 'wpsl' )\n );\n\n return $weekdays;\n}", "public function ranges(): array\n {\n return [\n 3 => '3 Weeks',\n 6 => '6 Weeks',\n 9 => '9 Weeks',\n 12 => '12 Weeks',\n ];\n }", "function getWeekday($var){\nreturn $this->mkActiveDate(\"w\", $this->mkActiveTime(0,0,1,$this->actmonth,$var,$this->actyear));\n}", "protected function getThisWeekInterval(): array\n\t{\n\t\treturn [\n\t\t\tnew \\DateTime(date(\"Y-m-d\", strtotime('monday this week'))),\n\t\t\tnew \\DateTime(date(\"Y-m-d\", strtotime('friday this week')))\n\t\t];\n\t}", "function getDates($startdate, $enddate, $days_of_week){\n \n $enddate = new DateTime($enddate);\n $enddate = $enddate->modify(\"+1 day\");\n \n $dates = array();\n $daterange = new DatePeriod(new DateTime($startdate),new DateInterval('P1D'),$enddate);\n \n foreach($daterange as $key=>$value){\n foreach($days_of_week as $day){\n if($value->format('l') == $day){\n $dates[] = $value->format(\"Y-m-d\");\n }\n }\n }\n \n return $dates;\n }", "public function getIncomeDaysWeek() {\r\n $month_array = array();\r\n $income_days = Income::where('resto_id', Session::get('id'))->pluck('added_on');\r\n $income_days = json_decode( $income_days );\r\n $i = 0;\r\n foreach($income_days as $date) {\r\n $date_name = Carbon::createFromFormat('Y-m-d', $date)->format('d M Y');\r\n $month_array[$i] = $date_name;\r\n $i++;\r\n\r\n }\r\n return $month_array;\r\n }", "public function printTalkRoster($week) {\n\n\t\ttry {\n\t\t\tif (empty($week)) {\n\t\t\t\tthrow new \\Exception('Week is missing.');\n\t\t\t}\n\t\t\t$start_date = Carbon::parse($week)->startOfWeek();\n\t\t\t$end_date = $start_date->copy()->addDays(6);\n\n\t\t\t$user = \\Auth::User();\n\n\t\t\t$station_id = $user->station->id;\n\n\t\t\t$talk_shows = \\App\\ConnectContent::where('content_type_id', ContentType::GetTalkContentTypeID())\n\t\t\t\t->where('station_id', $station_id)\n\t\t\t\t->where('start_date', '<', $end_date)\n\t\t\t\t->where('end_date', '>', $start_date)\n\t\t\t\t->get();\n\n\t\t\t$events = [];\n\n\t\t\tforeach($talk_shows as $talk_show) {\n\t\t\t\t$event['id'] = $talk_show['id'];\n\t\t\t\t$event['title'] = $talk_show['what'];\n\t\t\t\t$event['start'] = $talk_show['start_time'];\n\t\t\t\t$event['end'] = $talk_show['end_time'];\n\t\t\t\t$event['who'] = $talk_show['who'];\n\n\t\t\t\t$dow = [];\n\t\t\t\tif($talk_show['content_weekday_0']) {\n\t\t\t\t\t$dow[] = 0;\n\t\t\t\t}\n\t\t\t\tif($talk_show['content_weekday_1']) {\n\t\t\t\t\t$dow[] = 1;\n\t\t\t\t}\n\t\t\t\tif($talk_show['content_weekday_2']) {\n\t\t\t\t\t$dow[] = 2;\n\t\t\t\t}\n\t\t\t\tif($talk_show['content_weekday_3']) {\n\t\t\t\t\t$dow[] = 3;\n\t\t\t\t}\n\t\t\t\tif($talk_show['content_weekday_4']) {\n\t\t\t\t\t$dow[] = 4;\n\t\t\t\t}\n\t\t\t\tif($talk_show['content_weekday_5']) {\n\t\t\t\t\t$dow[] = 5;\n\t\t\t\t}\n\t\t\t\tif($talk_show['content_weekday_6']) {\n\t\t\t\t\t$dow[] = 6;\n\t\t\t\t}\n\n\t\t\t\t$event['dow'] = $dow;\n\t\t\t\t$event['is_ready'] = $talk_show['is_ready'];\n\t\t\t\t$event['className'] = $talk_show['is_ready'] ? '' : 'not-ready';\n\t\t\t\t$range['start'] = $talk_show->start_date;\n\t\t\t\t$range['end'] = $talk_show->end_date;\n\t\t\t\t$event['ranges'] = array($range);\n\t\t\t\t$event['url'] = 'javascript:void(0)';\n\n\t\t\t\t$events[] = $event;\n\t\t\t}\n\n\t\t\t$content = ConnectContent::findOrFail(3623);\n\n\t\t\tif ($content->content_type_id != ContentType::GetMaterialInstructionContentTypeID()) {\n\t\t\t\tthrow new \\Exception('Content type is Invalid.');\n\t\t\t}\n//\n//\t\t\t$pdf = \\App::make('dompdf.wrapper');\n//\n//\t\t\t$pdf->loadView('pdf.talkroster', array('content' => $content));\n\n\t\t\treturn view('pdf.talkroster')->with('content', $content)\n\t\t\t\t->with('talk_shows', $talk_shows);\n\n//\t\t\treturn $pdf->download($content->getPrintFileName());\n\n\t\t\t//return view('pdf.materialInstruction')->with('content', $content);\n\n\t\t} catch (\\Exception $ex){\n\t\t\t\\Log::error($ex);\n\t\t\treturn response($ex->getMessage(), 500);\n\t\t}\n\n\t}", "public static function getWeekdays($weekend=false) {\n if ($weekend === true)\n return array(\n 0 => 'Duminică',\n 1 => 'Luni',\n 2 => 'Marți',\n 3 => 'Miercuri',\n 4 => 'Joi',\n 5 => 'Vineri',\n 6 => 'Sâmbătă',\n );\n return array(\n 1 => 'Luni',\n 2 => 'Marți',\n 3 => 'Miercuri',\n 4 => 'Joi',\n 5 => 'Vineri',\n );\n }", "public function FireStatisticalinWeek($date){\n $result = array();\n $result[0]['date'] = $date;\n $result[0]['count'] = $this->FireStatistical($date);\n for($i = 1; $i < 7; $i++)\n {\n //$strdate = $i;\n $date1 = date('Y/m/d', strtotime('-'.$i.' days', strtotime($date)));\n $result[$i]['date'] = $date1;\n $result[$i]['count'] = $this->FireStatistical($date1);\n }\n return $result;\n }", "function calculateWeeklyNextExecutionDate($taskLastOccurenceDate,$taskTotalOccurenceCount,$taskStartDate, $taskEveryNumofWeeks, $taskWeekDayArray, $taskExeNumOfTimesInWeek, $taskTaskEndAfterOccurrences, $taskTaskEndByDate){ \r\r\n $today=date(\"Y-m-d\");\r\r\n $wkintervalday= $taskExeNumOfTimesInWeek * ($taskEveryNumofWeeks -1);\r\r\n $taskStartDate=date('Y-m-d', strtotime($taskStartDate));\r\r\n // $taskLastOccurenceDate=date('Y-m-d', strtotime($taskLastOccurenceDate));\r\r\n \r\r\n \r\r\n if($taskLastOccurenceDate!=\"0000-00-00\"){\r\r\n $taskNextExeChkDate= $taskLastOccurenceDate; \r\r\n }else{\r\r\n $taskNextExeChkDate= $taskStartDate; \r\r\n }\r\r\n $taskNextOccurenceDate=\"0000-00-00\";\r\r\n $datetime= strtotime($taskNextExeChkDate);\r\r\n $nxtChkDtYear= date(\"Y\",$datetime);\r\r\n $nxtChkDtWkNum= date(\"W\",$datetime);\r\r\n $nxtChkDtNum= date(\"N\",$datetime);\r\r\n $exdate=date(\"d-m\",$datetime); \r\r\n \r\r\n $currWkNum= date(\"W\");\r\r\n $currYear= date(\"Y\");\r\r\n \r\r\n \r\r\n // echo \"<br/> CHK DATE WK NUM : \".$nxtChkDtWkNum;\r\r\n // echo \"<br/> CURR DATE WK NUM : \".$currWkNum;\r\r\n if(($nxtChkDtWkNum >= $currWkNum && $nxtChkDtYear==$currYear) || ( $nxtChkDtYear > $currYear) || ($nxtChkDtWkNum == 1)){\r\r\n $is_exe_this_week=1;\r\r\n $week_exe_count=0; \r\r\n if(($exdate==\"31-12\" || $exdate==\"30-12\" || $exdate==\"29-12\" || $exdate==\"28-12\" || $exdate==\"27-12\" || $exdate==\"26-12\") && $nxtChkDtNum==1 && $taskLastOccurenceDate!=\"0000-00-00\"){\r\r\n $nxtChkDtYear=$nxtChkDtYear+1;\r\r\n }\r\r\n if($nxtChkDtNum==7){\r\r\n $stWknum=$nxtChkDtWkNum+($taskEveryNumofWeeks);\r\r\n if($stWknum < 10){\r\r\n $stWknum=\"0\".$stWknum;\r\r\n }\r\r\n $taskNextExeChkDate=date(\"Y-m-d\",strtotime(date(\"Y-m-d\", strtotime($nxtChkDtYear.'W'.$stWknum)))) ;\r\r\n }else{\r\r\n $taskNextExeChkDate=date(\"Y-m-d\",strtotime(date(\"Y-m-d\", strtotime($nxtChkDtYear.'W'.$nxtChkDtWkNum)))) ; \r\r\n }\r\r\n \r\r\n \r\r\n \r\r\n }else{\r\r\n $wkdiff= $currWkNum- $nxtChkDtWkNum;\r\r\n $stWknum=$nxtChkDtWkNum+($taskEveryNumofWeeks);\r\r\n // echo \"<br/> NXT DATE WK NUM : \".$stWknum; \r\r\n if($stWknum < 10){\r\r\n $stWknum=\"0\".$stWknum;\r\r\n }\r\r\n $taskNextExeChkDate=date(\"Y-m-d\",strtotime(date(\"Y-m-d\", strtotime(date(\"Y\").'W'.$stWknum)))) ;\r\r\n $is_exe_this_week=1; \r\r\n $week_exe_count=0; \r\r\n }\r\r\n \r\r\n // echo \"<br/> ** TASK START WK DATE : \".$taskNextExeChkDate;\r\r\n \r\r\n for($i=0; $i<= (7*$taskEveryNumofWeeks*2); $i++){\r\r\n $date = strtotime(date(\"Y-m-d\", strtotime($taskNextExeChkDate)) . \" +\".$i.\" day\"); \r\r\n $exeDate= date('Y-m-d', $date); \r\r\n $exeDateDay= date(\"N\",$date); \r\r\n if($taskWeekDayArray[$exeDateDay]==1){\r\r\n $is_executed=1;\r\r\n }else{\r\r\n $is_executed=0; \r\r\n } \r\r\n \r\r\n // $is_executed=isWeekDayExecution($exeDateDay); \r\r\n // echo \"<br/> Chk Date ---> \".$exeDate.\" : \";\r\r\n if($is_executed==1){ \r\r\n if($is_exe_this_week==1 ){ $week_exe_count++; \r\r\n \r\r\n if($week_exe_count == $taskExeNumOfTimesInWeek){\r\r\n if($wkintervalday==0) {\r\r\n $is_exe_this_week=1; \r\r\n }else{\r\r\n $is_exe_this_week=0; \r\r\n }\r\r\n \r\r\n $week_exe_count=0; \r\r\n } \r\r\n \r\r\n if($exeDate<= $taskLastOccurenceDate) {\r\r\n continue;\r\r\n }\r\r\n if($exeDate >= $today && $exeDate >= $taskStartDate) {\r\r\n $taskNextOccurenceDate=$exeDate; \r\r\n if($taskTaskEndAfterOccurrences!=0 && $taskTotalOccurenceCount >= $taskTaskEndAfterOccurrences){\r\r\n // $task_is_done=1; \r\r\n $taskNextOccurenceDate=\"0000-00-00\";\r\r\n }else if($taskTaskEndByDate!=\"0000-00-00\" && $exeDate > $taskTaskEndByDate){ \r\r\n $taskNextOccurenceDate=\"0000-00-00\";\r\r\n }\r\r\n break; \r\r\n } \r\r\n \r\r\n // echo \"<br/> ====> IS exe in this \".$is_exe_this_week.\" wk count \".$week_exe_count; \r\r\n \r\r\n }else{\r\r\n $week_exe_count++; \r\r\n if($week_exe_count >= $wkintervalday){\r\r\n $is_exe_this_week=1;\r\r\n $week_exe_count=0; \r\r\n } \r\r\n // echo \"<br/> ====> IS exe in this \".$is_exe_this_week.\" wk count \".$week_exe_count; \r\r\n }\r\r\n \r\r\n } \r\r\n \r\r\n } \r\r\n \r\r\n return $taskNextOccurenceDate;\r\r\n }", "function get_dates() {\n $m = date('m');\n $d = date('d');\n $y = date('Y');\n $retour['j'] = date('d/m/Y', mktime(0, 0, 0, $m, $d, $y));\n $retour['s1'] = date('d/m/Y', mktime(0, 0, 0, $m, $d +7, $y));\n $retour['s2'] = date('d/m/Y', mktime(0, 0, 0, $m, $d +14, $y));\n $retour['s3'] = date('d/m/Y', mktime(0, 0, 0, $m, $d +21, $y));\n $retour['m1'] = date('d/m/Y', mktime(0, 0, 0, $m +1, $d, $y));\n $retour['m2'] = date('d/m/Y', mktime(0, 0, 0, $m +2, $d, $y));\n $retour['m3'] = date('d/m/Y', mktime(0, 0, 0, $m +3, $d, $y));\n $retour['m6'] = date('d/m/Y', mktime(0, 0, 0, $m +6, $d, $y));\n $retour['m9'] = date('d/m/Y', mktime(0, 0, 0, $m +9, $d, $y));\n $retour['m12'] = date('d/m/Y', mktime(0, 0, 0, $m, $d, $y +1));\n return $retour;\n}", "function getWeekNum($var){\nreturn date(\"W\", $this->mkActiveTime(0,0,1,$this->actmonth,$var,$this->actyear))+0;\n}", "function getAttendanceDaysOfWeek(){\n\t\t$listarray = array(); $text = '';\n\t\t$allvalues = getDaysOfWeek();\n\t\t$thevalues = $this->getDaysOfWeekArray();\n\t\tif(isEmptyString($this->getWorkingDays())){\n\t\t\treturn $text;\n\t\t}\n\t\tif(count($thevalues) > 0){\n\t\t\tforeach ($thevalues as $value) {\n\t\t\t\tif(!isArrayKeyAnEmptyString($value, $allvalues)){\n\t\t\t\t\t$listarray[] = $allvalues[$value];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(count($listarray) > 0){\n\t\t\t$text = createHTMLCommaListFromArray($listarray, ', ');\n\t\t}\n\t\treturn $text;\n\t}", "private function getDatesInMonth() {\n $viewer = $this->getViewer();\n\n $timezone = new DateTimeZone($viewer->getTimezoneIdentifier());\n\n $month = $this->month;\n $year = $this->year;\n\n list($next_year, $next_month) = $this->getNextYearAndMonth();\n\n $end_date = new DateTime(\"{$next_year}-{$next_month}-01\", $timezone);\n\n list($start_of_week, $end_of_week) = $this->getWeekStartAndEnd();\n\n $days_in_month = id(clone $end_date)->modify('-1 day')->format('d');\n\n $first_month_day_date = new DateTime(\"{$year}-{$month}-01\", $timezone);\n $last_month_day_date = id(clone $end_date)->modify('-1 day');\n\n $first_weekday_of_month = $first_month_day_date->format('w');\n $last_weekday_of_month = $last_month_day_date->format('w');\n\n $day_date = id(clone $first_month_day_date);\n\n $num_days_display = $days_in_month;\n if ($start_of_week !== $first_weekday_of_month) {\n $interim_start_num = ($first_weekday_of_month + 7 - $start_of_week) % 7;\n $num_days_display += $interim_start_num;\n\n $day_date->modify('-'.$interim_start_num.' days');\n }\n if ($end_of_week !== $last_weekday_of_month) {\n $interim_end_day_num = ($end_of_week - $last_weekday_of_month + 7) % 7;\n $num_days_display += $interim_end_day_num;\n $end_date->modify('+'.$interim_end_day_num.' days');\n }\n\n $days = array();\n\n for ($day = 1; $day <= $num_days_display; $day++) {\n $day_epoch = $day_date->format('U');\n $end_epoch = $end_date->format('U');\n if ($day_epoch >= $end_epoch) {\n break;\n } else {\n $days[] = clone $day_date;\n }\n $day_date->modify('+1 day');\n }\n\n return $days;\n }", "function getWeeksForFPS($delivery_year, $startweeknum, $division_id = null, $variant_value = null) {\n $result = $this->newQuery()->where('substring(delivery_week from 3 for 2)::int', '>', $startweeknum)\n ->where('delivery_year', '=', $delivery_year);\n if ($variant_value)\n $result = $result->where('variant_value', '=', $variant_value);\n if ($division_id)\n $result = $result->where('division_id', '=', $division_id);\n\n $result = $result->orderBy('delivery_week')\n ->get('distinct(delivery_week)');\n\n if (!empty($result)) return array_column($result, 'delivery_week');\n else return array();\n }", "function getWeeksInMonth()\r\n {\r\n return Data_Calc::weeksInMonth($this->mes, $this->ano);\r\n }", "public static function getWeek($date, $format = 'Y-m-d') {\r\n \r\n }", "function LoadWeek($WeekNumber)\n {\n //Construction du tableau\n $days = array('lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi','samedi','dimanche');\n\n //Semaine en cours\n $week = ($WeekNumber == 'current')? date('W') : $WeekNumber;\n $year = date('Y');\n echo $StartDate = Date::GetFirstDay($week, $year);\n\n //Affichage de la semaine et des controles de selection\n $html = $this->GetTool($week);\n\n $html .= \"<div class='content-panel'>\";\n //Tableau de la semaine\n $html .= \"<table id='taAgenda' class='calendar'>\";\n\n //Entete\n $html .= '<tr>';\n $html .= '<td class=\"subTitle\"></td>';\n\n //\n $dateDay = array();\n foreach($days as $day)\n {\n //Creation de la date actuelle\n $dateDay[] = $StartDate;\n\n $html .=\t'<th class=\"subTitle\">'.$this->Core->GetCode($day);\n $html .= '<span class=\"calendar date\">'.$StartDate.'</span>';\n $html .= '</th>';\n\n $StartDate = Date::AddDay($StartDate, 1);\n }\n\n //Creation des lignes\n $html .= '</tr>';\n\n //recuperation des evenements de l'utilisateur\n echo \"DateStart : \" . $DateStart = Date::AddDay($dateDay[0],-1, true);\n echo \"Date End :\" . $DateEnd = Date::AddDay($dateDay[0],7, true);\n\n $AgendaEvent = new AgendaEvent($this->Core);\n $AgendaEvent->AddArgument(new Argument(\"Apps\\Agenda\\Entity\\AgendaEvent\", \"UserId\", EQUAL, $this->Core->User->IdEntite));\n $AgendaEvent->AddArgument(new Argument(\"Apps\\Agenda\\Entity\\AgendaEvent\", \"DateStart\", MORE, $DateStart));\n $AgendaEvent->AddArgument(new Argument(\"Apps\\Agenda\\Entity\\AgendaEvent\", \"DateEnd\", LESS, $DateEnd));\n $EventsUser = $AgendaEvent->GetByArg();\n\n //Recuperation Des évenement ou l'utilisateur est invités\n $EventInvits = AgendaEvent::GetInvitation($this->Core, $this->Core->User->IdEntite, $DateStart, $DateEnd);\n\n for($hours=0; $hours < 24; $hours++)\n {\n $html .= '<tr>';\n\n if($hours < 10)\n {\n $hours = \"0\".$hours;\n }\n\n $html .= '<td>'.$hours.':00</td>';\n\n //Parcourt des jours\n //foreach($dateDay as $day)\n for($d = 0; $d < count($dateDay) ; $d++ )\n {\n //Charge un tableau avec touts les rendez-vous\n $drawCell = true;\n\n //Parcourt des rendez-vous de l'utilisateur\n if(count($EventsUser) > 0)\n {\n foreach($EventsUser as $event)\n {\n echo \"DATE :\" . $event->DateStart->Value . \"\" . $dateDay[$d].' '.$hours.':00:00';\n \n //Evenement qui commence dans la cellule\n if($event->DateStart->Value == $dateDay[$d].' '.$hours.':00:00' )\n {\n //Dimension de l'evenement\n $rowSpan = DateHelper::GetDiffHour($event->DateStart->Value, $event->DateEnd->Value);\n $colSpan = DateHelper::GetDiffDay($event->DateStart->Value, $event->DateEnd->Value);\n\n\n //Affichage de la cellule\n $html .=\t '<td id=\"'.$dateDay[$d].'!'.$hours.'\" >';\n $html .= $this->GetEvent($event, $colSpan, $rowSpan);\n $html.='</td>';\n\n $drawCell = false;\n }\n }\n }\n\n //Evenements invités\n if(count($EventInvits) > 0)\n {\n foreach($EventInvits as $event)\n {\n //Evenement qui commence dans la cellule\n if($event->Event->Value->DateStart->Value == $dateDay[$d].' '.$hours.':00:00' )\n {\n //Dimension de l'evenement\n $rowSpan = DateHelper::GetDiffHour($event->Event->Value->DateStart->Value, $event->Event->Value->DateEnd->Value);\n $colSpan = DateHelper::GetDiffDay($event->Event->Value->DateStart->Value, $event->Event->Value->DateEnd->Value);\n\n //Affichage de la cellule\n //$html .=\t '<td id=\"'.$day.'!'.$hours.'\" colspan=\"'.$colSpan.'\" rowspan=\"'.$rowSpan.'\" >';\n $html .=\t '<td id=\"'.$dateDay[$d].'!'.$hours.'\" >';\n\n $html .=\t$this->GetInvit($event, $colSpan, $rowSpan);\n $html.='</td>';\n\n $drawCell = false;\n }\n }\n }\n\n //La cellule n'a pas d'évenement\n if($drawCell)\n {\n $html .=\t '<td id=\"'.$dateDay[$d].'!'.$hours.'\"></td>';\n }\n }\n\n $html .= '</tr>';\n }\n $html .= \"</table'>\";\n\n $html .= \"</div>\";\n\n echo $html;\n }", "public static function getFirstSeventhWeekDay($week = null)\n {\n $first_day = $seventh_day = null;\n if(isset($week))\n {\n $first_day = Carbon::now()->addWeeks($week)->startOfWeek();\n $seventh_day = Carbon::now()->addWeeks($week)->endOfWeek();\n // $first_day = Carbon::now()->addWeeks($week);\n // $seventh_day = Carbon::now()->addWeeks($week + 1)->subDays(1);\n }\n $dateCollection['first_day'] = $first_day;\n $dateCollection['seventh_day'] = $seventh_day;\n $period = CarbonPeriod::create($first_day, $seventh_day);\n foreach($period as $key => $dateobj)\n {\n $dateCollection['datePeriod'][$key] = $dateobj;\n }\n \n return $dateCollection;\n }", "function getDaysInWeek($y=NULL, $m=NULL, $d=NULL)\n {\n return 7;\n }", "function WeeksInsideQuarter($quarter_start_date, $quarter_end_date) {\n $start_date = strtotime($quarter_start_date);\n $end_date = strtotime($quarter_end_date);\n $days_between = ceil(abs($end_date - $start_date) / 86400);\n $weeks = $days_between / 7;\n for ($i = 1; $i <= $weeks; $i++, $start_date+=604800) {\n $week_dates[$i] = date('M j', $start_date);\n }\n return $week_dates;\n}", "function weekNumber($wday,$wmonth,$wyear) {\r\nglobal $weekstartday ;\r\n\tif (substr($wmonth,0,1) == \"0\"){ $wmonth = str_replace(\"0\",\"\",$wmonth);}\r\n\tif (substr($wday,0,1) == \"0\"){ $wday = str_replace(\"0\",\"\",$wday);}\r\n\t$WeekNumber = 1;\r\n\t$firstdayofyear = date(\"w\", mktime(0,0,0,1,1,$wyear)) ;\r\n\t$dayoffset = $firstdayofyear + 6; \r\n $WeekNumber = floor(((date(\"z\", mktime(0,0,0,$wmonth,$wday,$wyear)))+$dayoffset) / 7) ;\r\n\tsettype($WeekNumber,\"integer\");\r\n\tif ($firstdayofyear>5) $WeekNumber = $WeekNumber - 1;\r\n\tif (($firstdayofyear<5)&&($WeekNumber==53)) {\r\n\t\tif (date(\"w\", mktime(0,0,0,12,31,$wyear))>4) $WeekNumber=53;\r\n\t\telse $WeekNumber = 1;\r\n\t}\r\n\treturn $WeekNumber;\r\n}", "public static function getWeeksInMonth($current_month)\n {\n $month = intval(date('m',strtotime($current_month))); //force month to single integer if '0x'\n $year = intval(date('Y',strtotime($current_month)));\n $suff = array('st','nd','rd','th','th','th'); //week suffixes\n $end = date('t',mktime(0,0,0,$month,1,$year)); //last date day of month: 28 - 31\n $start = date('w',mktime(0,0,0,$month,1,$year)); //1st day of month: 0 - 6 (Sun - Sat)\n $last = 7 - $start; //get last day date (Sat) of first week\n $noweeks = ceil((($end - ($last + 1))/7) + 1); //total no. weeks in month\n $output = \"\"; //initialize string\n $weeks = array();\n $monthlabel = str_pad($month, 2, '0', STR_PAD_LEFT);\n for ($x=1;$x<$noweeks+1;$x++) {\n if ($x == 1) {\n $startdate = \"$year-$monthlabel-01\";\n $day = $last - 6;\n } else {\n $day = $last + 1 + (($x-2)*7);\n $day = str_pad($day, 2, '0', STR_PAD_LEFT);\n $startdate = \"$year-$monthlabel-$day\";\n }\n if ($x == $noweeks) {\n $enddate = \"$year-$monthlabel-$end\";\n } else {\n $dayend = $day + 6;\n $dayend = str_pad($dayend, 2, '0', STR_PAD_LEFT);\n $enddate = \"$year-$monthlabel-$dayend\";\n }\n $output .= \"{$x}{$suff[$x-1]} week -> Start date=$startdate End date=$enddate <br />\";\n $weeks[] = array ( 'start_date'=>$startdate,'end_date'=>$enddate );\n }\n\n return $weeks;\n }", "function getCalendarsForAdmin() {\n //\n // http://dev4.krubner.com/admin.php?page=admin_calendar\n //\n // this brings back 2 months worth of days to show in a calendar\n\n global $controller; \n\n $today = new DateTime(date('Y-m-d'));\n\n //Get Calendar for this week\n if(!isset($_GET['ym'])){\n $top_month = date('Y-m');\n } else {\n $top_month = $_GET['ym'];\n }\n\n $firstDayOfMonthDateTime = new DateTime($top_month.\"-01\");\n $lastDayOfMonthDateTime = clone $firstDayOfMonthDateTime;\n $lastDayOfMonthDateTime->modify(\"+1 month\");\n $lastDayOfMonthDateTime->modify(\"-1 day\");\n\n $arrayOfDaysForThisMonth = array();\n $arrayOfDaysForThisMonth = $controller->command(\"loadAllNights\", $firstDayOfMonthDateTime, $lastDayOfMonthDateTime); \n\n $calendars = array();\n $calendars[$top_month] = $arrayOfDaysForThisMonth;\n\n $firstDayOfMonthDateTime2 = clone $firstDayOfMonthDateTime;\n $firstDayOfMonthDateTime2->modify(\"+1 month\");\n $lastDayOfMonthDateTime2 = clone $firstDayOfMonthDateTime2;\n $lastDayOfMonthDateTime2->modify(\"+1 month\");\n $lastDayOfMonthDateTime2->modify(\"-1 day\");\n\n $arrayOfDaysForThisMonth = array();\n $arrayOfDaysForThisMonth = $controller->command(\"loadAllNights\", $firstDayOfMonthDateTime2, $lastDayOfMonthDateTime2); \n\n $calendars[$lastDayOfMonthDateTime2->format('Y-m')] = $arrayOfDaysForThisMonth;\n\n return $calendars; \n}", "private function setDayNames()\n\t{\n\t $range = range(1,7);\n\t $return = array();\n\t foreach($range AS $key => $dayNum)\n\t {\n\t \t$fmt = datefmt_create ($this->locale, null, null, null, IntlDateFormatter::GREGORIAN, 'eee');\n\t \t$key = strtolower(datefmt_format( $fmt , mktime(12,0,0,4,$dayNum+5,2014))); //we force the date so things start on Sunday\n\t \t\n\t \t$fmt = datefmt_create ($this->locale, null, null, null, IntlDateFormatter::GREGORIAN, 'EEEE');\n\t \t$return[$key] = datefmt_format( $fmt , mktime(12,0,0,4,$dayNum+5,2014));\n\t }\n\n\t return $return;\n\t}", "private function _get_calendar_array()\n\t{\n\t $this->all_events = $this->result->xpath(\".//event\");\n\t \n\t foreach($this->all_events as $an_event):\n\t $start_at = $an_event->xpath(\"./start-at\");\n \t $start_at = $start_at[0];\n \t $end_at = $an_event->xpath(\"./end-at\");\n \t $end_at = $end_at[0];\n \t \n \t $start_at = new DateTime($start_at);\n \t $start_at->setTimezone(new DateTimeZone('America/Chicago'));\n \t $start_at->setTime(0, 0, 0);\n \t $end_at = new DateTime($end_at);\n \t $end_at->setTimezone(new DateTimeZone('America/Chicago'));\n \t $end_at->setTime(0, 0, 0);\n \t \n \t $start_timestamp = strtotime($start_at->format('Y-m-d'));\n $end_timestamp = strtotime($end_at->format('Y-m-d'));\n \n $start_year = date(\"Y\", $start_timestamp);\n $end_year = date(\"Y\", $end_timestamp);\n $start_month = date(\"m\", $start_timestamp);\n $end_month = date(\"m\", $end_timestamp);\n $start_day = date(\"d\", $start_timestamp);\n $start_day = $start_day + 1;\n $end_day = date(\"d\", $end_timestamp);\n $end_day = $end_day + 1;\n \n if(($start_year == $this->year && $start_month == $this->month) || ($end_year == $this->year && $end_month == $this->month)):\n if($start_year == $end_year):\n if($start_month == $end_month):\n $this->_calendar_array_one($start_day, $end_day);\n else:\n if($end_month != $this->month):\n $this->_calendar_array_two($start_day);\n else:\n $this->_calendar_array_three($end_day);\n endif;\n endif;\n endif;\n endif;\n endforeach;\n \n\t foreach($this->callinks as $callinks):\n\t foreach($callinks as $key => $value):\n\t $this->combined_callinks[\"$key\"] = $value;\n\t endforeach;\n\t endforeach;\n\t}", "public static function getWeekdays()\n {\n return [\n [\n 'id' => 2,\n 'name' => dgettext('zoom', 'Montag'),\n 'name_en' => 'Monday'\n ],\n [\n 'id' => 3,\n 'name' => dgettext('zoom', 'Dienstag'),\n 'name_en' => 'Tuesday'\n ],\n [\n 'id' => 4,\n 'name' => dgettext('zoom', 'Mittwoch'),\n 'name_en' => 'Wednesday'\n ],\n [\n 'id' => 5,\n 'name' => dgettext('zoom', 'Donnerstag'),\n 'name_en' => 'Thursday'\n ],\n [\n 'id' => 6,\n 'name' => dgettext('zoom', 'Freitag'),\n 'name_en' => 'Friday'\n ],\n [\n 'id' => 7,\n 'name' => dgettext('zoom', 'Samstag'),\n 'name_en' => 'Saturday'\n ],\n [\n 'id' => 1,\n 'name' => dgettext('zoom', 'Sonntag'),\n 'name_en' => 'Sunday'\n ]\n ];\n }", "function get_start_of_week(): int\n{\n $cal = \\IntlCalendar::createInstance(null, get_locale());\n //return \\get_option('start_of_week');\n return $cal->getFirstDayOfWeek() - 1;\n}", "function draw_calendar($month,$year,$activityStartDateArray = array()){\r\n\r\n\t/* draw table */\r\n\t$calendar = '<table cellpadding=\"0\" cellspacing=\"0\" class=\"calendar\">';\r\n\r\n\t/* table headings */\r\n\t$headings = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');\r\n\t$calendar.= '<tr class=\"calendar-row\"><td class=\"calendar-day-head\">'.implode('</td><td class=\"calendar-day-head\">',$headings).'</td></tr>';\r\n\r\n\t/* days and weeks vars now ... */\r\n\t$running_day = date('w',mktime(0,0,0,$month,1,$year));\r\n\t$days_in_month = date('t',mktime(0,0,0,$month,1,$year));\r\n\t$days_in_this_week = 1;\r\n\t$day_counter = 0;\r\n\t$dates_array = array();\r\n\r\n\t/* row for week one */\r\n\t$calendar.= '<tr class=\"calendar-row\">';\r\n\r\n\t/* print \"blank\" days until the first of the current week */\r\n\tfor($x = 0; $x < $running_day; $x++):\r\n\t\t$calendar.= '<td class=\"calendar-day-np\">&nbsp;</td>';\r\n\t\t$days_in_this_week++;\r\n\tendfor;\r\n\r\n\t/* keep going with days.... */\r\n\tfor($list_day = 1; $list_day <= $days_in_month; $list_day++):\r\n\t\t$calendar.= '<td class=\"calendar-day\"><div style=\"position:relative;height:100px;\">';\r\n\t\t\t/* add in the day number */\r\n\t\t\t$calendar.= '<div class=\"day-number\">'.$list_day.'</div>';\r\n\t\t\t\r\n\t\t\t//eventdate=startdate and enddate, depends which we talks about \r\n\r\n\t\t\t$startDate = $year.'-'.$month.'-'.$list_day;\r\n\t\t\t//$endDate = $year.'-'.$month.'-'.$list_day;\r\n\t\t\techo \"<br>the start date is\".$startDate;\r\n\t\t\t//something is wrong wit hteh startDate, the origin code has a while loop in the beginning, think why \r\n\t\t\t\r\n\t\t\tif(isset($activityStartDateArray[$startDate])) {\r\n\t\t\t\tforeach($activityStartDateArray[$startDate] as $activity) {\r\n\t\t\t\t\t$calendar.= '<div class=\"activity\">'.$activity['activityName'].'</div>';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\telse {\r\n\t\t\t\t$calendar.= str_repeat('<p>&nbsp;</p>',2);\r\n\t\t\t}\r\n\t\t$calendar.= '</div></td>';\r\n\t\tif($running_day == 6):\r\n\t\t\t$calendar.= '</tr>';\r\n\t\t\tif(($day_counter+1) != $days_in_month):\r\n\t\t\t\t$calendar.= '<tr class=\"calendar-row\">';\r\n\t\t\tendif;\r\n\t\t\t$running_day = -1;\r\n\t\t\t$days_in_this_week = 0;\r\n\t\tendif;\r\n\t\t$days_in_this_week++; $running_day++; $day_counter++;\r\n\tendfor;\r\n\t\r\n\t\r\n\t/* finish the rest of the days in the week */\r\n\tif($days_in_this_week < 8):\r\n\t\tfor($x = 1; $x <= (8 - $days_in_this_week); $x++):\r\n\t\t\t$calendar.= '<td class=\"calendar-day-np\">&nbsp;</td>';\r\n\t\tendfor;\r\n\tendif;\r\n\r\n\t/* final row */\r\n\t$calendar.= '</tr>';\r\n\t\r\n\r\n\t/* end the table */\r\n\t$calendar.= '</table>';\r\n\r\n\t/** DEBUG **/\r\n\t$calendar = str_replace('</td>','</td>'.\"\\n\",$calendar);\r\n\t$calendar = str_replace('</tr>','</tr>'.\"\\n\",$calendar);\r\n\t\r\n\t/* all done, return result */\r\n\treturn $calendar;\r\n}", "public function getWeek($date){\n // OUTPUT : JSON format of all the week according the the DB\n $week = $this->_makeWeek($date);\n for($i = 0; $i < count($week); $i += 1){\n $_day = $week[$i];\n // Get from the data base if a date exists (this means that there is somekind of agenda stored in the DB w.r.t. this day)\n $day = \\App\\Day::where('date', $_day['full_date'])->first();\n if ($day != null){\n foreach($day->Agenda as $agenda){\n $week[$i]['items'][] = $this->_makeAgenda($agenda);\n }\n }\n }\n return $week;\n }", "public static function getGoalDates()\n {\n return array( 'this_week' => TextHelper::_(\"COBALT_THIS_WEEK\"),\n 'next_week' => TextHelper::_(\"COBALT_NEXT_WEEK\"),\n 'this_month' => TextHelper::_(\"COBALT_THIS_MONTH\"),\n 'next_month' => TextHelper::_(\"COBALT_NEXT_MONTH\"),\n 'this_quarter' => TextHelper::_(\"COBALT_THIS_QUARTER\"),\n 'next_quarter' => TextHelper::_(\"COBALT_NEXT_QUARTER\"),\n 'this_year' => TextHelper::_(\"COBALT_THIS_YEAR\"),\n 'custom' => TextHelper::_(\"COBALT_CUSTOM\") );\n }", "function semanasMes($year,$month){\n \n # Obtenemos el ultimo dia del mes\n $ultimoDiaMes=date(\"t\",mktime(0,0,0,$month,1,$year)); \n # Obtenemos la semana del primer dia del mes\n $primeraSemana=date(\"W\",mktime(0,0,0,$month,1,$year)); \n # Obtenemos la semana del ultimo dia del mes\n $ultimaSemana=date(\"W\",mktime(0,0,0,$month,$ultimoDiaMes,$year)); \n # Devolvemos en un array los dos valores\n return array($primeraSemana,$ultimaSemana);\n \n}", "function mkWeekDays(){\n\tif ($this->startOnSun){\n\t\t$out=\"<tr>\";\n\t\tif ($this->weekNum) $out.=\"<td class=\\\"\".$this->cssWeekNumTitle.\"\\\">\".$this->weekNumTitle.\"</td>\";\n\t\tfor ($x=0;$x<=6;$x++) $out.=\"<td class=\\\"\".$this->cssWeekDay.\"\\\">\".$this->getDayName($x).\"</td>\";\n\t\t$out.=\"</tr>\\n\";\n\t}\n\telse{\n\t\t$out=\"<tr>\";\n\t\tif ($this->weekNum) $out.=\"<td class=\\\"\".$this->cssWeekNumTitle.\"\\\">\".$this->weekNumTitle.\"</td>\";\n\t\tfor ($x=1;$x<=6;$x++) $out.=\"<td class=\\\"\".$this->cssWeekDay.\"\\\">\".$this->getDayName($x).\"</td>\";\n\t\t$out.=\"<td class=\\\"\".$this->cssWeekDay.\"\\\">\".$this->getDayName(0).\"</td>\";\n\t\t$out.=\"</tr>\\n\";\n\t\t$this->firstday=$this->firstday-1;\n\t\tif ($this->firstday<0) $this->firstday=6;\n\t}\nreturn $out;\n}", "function find_start_of_week()\n {\n $this->move_to_start_of_day();\n $this->move_to_start_of_day();\n while ($this->get_day_of_week()>0)\n {\n $this->move_forward_n_days(-1);\n }\n }", "private static function splitDates($startDate, $endDate)\r\n {\r\n $startDate = new DateTime($startDate);//convert to date time object\r\n $endDate = new DateTime($endDate);//convert to date time object\r\n $dates = [];//this will hold all mondays of the week in format Y-m-d\r\n\r\n if($startDate>$endDate)//if provided bad values\r\n {\r\n return $dates;\r\n }\r\n if(1 !=$startDate->format('N'))//if start date is not a monday grab previous monday\r\n {\r\n $startDate->modify('next monday');\r\n }\r\n while($startDate<=$endDate)//while start date is not past end of form date\r\n {\r\n $dates[]=$startDate->format(\"Y-m-d\"); //add monday date found to list\r\n $startDate->modify(\"+1 week\");//increment date by a week to the next monday\r\n }\r\n return $dates;\r\n }", "function create_calendar_array($used_dates){\n\n\t//create array of dates for October with false attributes\n\t$october = array();\n\tfor($day=1;$day<=31;$day++){\n\t\t$october[$day]=FALSE;\n\t}\n\t\n\t//compare used dates to whole month\n\tforeach\t($used_dates as $post_id=>$date){\n\t\t$october[intval($date['day'])][]=$post_id;\n\t}\n\t\t\n\t\n\treturn $october;\n}", "function displayWeekEn(){\n $displayWeekEnQuery = $this->db->prepare(\n 'SELECT \n `dateStart`\n , `dateEnd`\n , `id_ap29f_dateRace` AS `raceId`\n FROM \n `ap29f_race`\n INNER JOIN \n `ap29f_dateRace` ON `ap29f_race`.`id_ap29f_dateRace` = `ap29f_dateRace`.`id`\n WHERE \n `id_ap29f_dateRace` = :id'\n );\n //data retourne un tableau d'objet\n $displayWeekEnQuery->bindValue(':id', $this->id, PDO::PARAM_STR);\n $displayWeekEnQuery->execute();\n return $displayWeekEnQuery->fetch(PDO::FETCH_OBJ);\n }", "private function diffInWeeks($from = NULL , $to = NULL)\n\t\t{\n\t\t\t$day = 24 * 3600;\n\t\t\t$from = strtotime($from);\n\t\t\t$to = strtotime($to) + $day;\n\t\t\t$diff = abs($to - $from);\n\t\t\t$weeks = ceil($diff / $day / 7);\n\t\t\t$days = $diff / $day - $weeks * 7;\n\t\t\t$out = array();\n\t\t\treturn $weeks;\n\t\t}", "function get_days($startdate,$enddate){\r\n\t$begin = new DateTime(date(\"Y-m-d\", strtotime($startdate)));\r\n$end = new DateTime(date(\"Y-m-d\", strtotime($enddate)));\r\n\r\n$daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);\r\n\r\nforeach($daterange as $date){\r\n $adays[] =$date->format(\"Y-m-d\");\r\n}\r\n$adays[] =date(\"Y-m-d\", strtotime($enddate)) ;\r\nreturn $adays; \r\n}", "function dayScheduleA()\n\t{\n\t$scheduleDay = array(45, 60, 90, 120, 150, 180, 210, 240);\n\treturn $scheduleDay;\n\t}", "public function weeks_in_month($spec_date = '')\n\t {\n\t \t$spec_date = $spec_date ? $spec_date : date('Y-m-d');\n\t \t\t\n\t \t$spec_year = date('Y', strtotime($spec_date));\n \t\t$spec_month = date('m', strtotime($spec_date));\n\t\t$start_date = $spec_year.'-'.$spec_month.'-01';\n\t\t$arr_week = [date('W', strtotime($start_date))];\n\t\t$k = 0;\n\t\t\n\t\twhile ($k == 0) {\n\t\t\t$start_date = date('Y-m-d', strtotime(\"+1 week\", strtotime($start_date)));\n\n\t\t\tif(date('m',strtotime($start_date)) == $spec_month){\n\t\t\t\tarray_push($arr_week, date('W', strtotime($start_date)));\n\t\t\t}else{\n\t\t\t\t$k ++;\n\t\t\t}\n\t\t}\n\t\treturn $arr_week;\n\t }", "public function addBusinessHourProvider(): array\n {\n return [\n ['Monday 2018-05-14 00:00', 'Monday 2018-05-14 10:00'],\n ['Monday 2018-05-14 08:00', 'Monday 2018-05-14 10:00'],\n ['Monday 2018-05-14 09:00', 'Monday 2018-05-14 10:00'],\n ['Monday 2018-05-14 09:15', 'Monday 2018-05-14 10:15'],\n ['Monday 2018-05-14 09:30', 'Monday 2018-05-14 10:30'],\n ['Monday 2018-05-14 09:45', 'Monday 2018-05-14 10:45'],\n ['Monday 2018-05-14 10:00', 'Monday 2018-05-14 11:00'],\n ['Monday 2018-05-14 11:00', 'Monday 2018-05-14 12:00'],\n ['Monday 2018-05-14 12:00', 'Monday 2018-05-14 13:00'],\n ['Monday 2018-05-14 13:00', 'Monday 2018-05-14 14:00'],\n ['Monday 2018-05-14 14:00', 'Monday 2018-05-14 15:00'],\n ['Monday 2018-05-14 15:00', 'Monday 2018-05-14 16:00'],\n ['Monday 2018-05-14 16:00', 'Monday 2018-05-14 17:00'],\n ['Monday 2018-05-14 17:00', 'Tuesday 2018-05-15 10:00'],\n ['Monday 2018-05-14 18:00', 'Tuesday 2018-05-15 10:00'],\n ['Monday 2018-05-14 23:00', 'Tuesday 2018-05-15 10:00'],\n ['Friday 2018-05-18 16:00', 'Friday 2018-05-18 17:00'],\n ['Friday 2018-05-18 17:00', 'Monday 2018-05-21 10:00'],\n ['Saturday 2018-05-19 08:00', 'Monday 2018-05-21 10:00'],\n ['Saturday 2018-05-19 18:00', 'Monday 2018-05-21 10:00'],\n ['Sunday 2018-05-20 07:00', 'Monday 2018-05-21 10:00'],\n ['Sunday 2018-05-20 19:00', 'Monday 2018-05-21 10:00'],\n ];\n }", "private function _calendar_array_two($start_d)\n\t{\n\t $days_array = array();\n $days_url_array = array();\n $days_in_month = days_in_month($this->month, $this->year) + 1;\n \n for($i = $start_d; $i < $days_in_month; $i++):\n array_push($days_array, $i);\n endfor;\n \n foreach($days_array as $day):\n $stampeddate = strtotime($this->year.\"-\".$this->month.\"-\".$day);\n array_push($days_url_array, URL::base(TRUE, TRUE).\"calendar_day/\".date(\"j\", $stampeddate).\"/\".date(\"n\", $stampeddate).\"/\".date(\"Y\", $stampeddate));\n endforeach;\n \n array_push($this->callinks, array_combine($days_array, $days_url_array));\n\t}", "public function get_timetable() {\n $week = $this->qc->timetable_get_week();\n $days = array();\n\n for ($i=2; $i < count($week); $i++) {\n $day = $this->qc->timetable_get_day($week[$i]);\n array_push($days, $day);\n }\n }", "function getDaysOfWeekArray() {\n\t\treturn isEmptyString($this->getWorkingDays()) ? array() : explode(',',preg_replace('!\\s+!', '', trim($this->getWorkingDays())));\n\t}", "static function getDayHeadersForWeek($start_date) {\n $dayHeaders = array();\n $objDate = new DateAndTime(DB_DATEFORMAT, $start_date);\n $dayHeaders[] = (string) $objDate->getDate(); // It returns an int on first call.\n if (strlen($dayHeaders[0]) == 1) // Which is an implementation detail of DateAndTime class.\n $dayHeaders[0] = '0'.$dayHeaders[0]; // Add a 0 for single digit day.\n $objDate->incDay();\n $dayHeaders[] = $objDate->getDate(); // After incDay it returns a string with leading 0, when necessary.\n $objDate->incDay();\n $dayHeaders[] = $objDate->getDate();\n $objDate->incDay();\n $dayHeaders[] = $objDate->getDate();\n $objDate->incDay();\n $dayHeaders[] = $objDate->getDate();\n $objDate->incDay();\n $dayHeaders[] = $objDate->getDate();\n $objDate->incDay();\n $dayHeaders[] = $objDate->getDate();\n unset($objDate);\n return $dayHeaders;\n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n $GLOBALS['labelDates'] = array();\n // Declare an empty array \n $dates = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n // Use loop to store date into array \n foreach($period as $date) { \n $dates[] = $date->format($format); \n if($date->format($format) == date('Y-m-d'))\n $GLOBALS['labelDates'][] = \"Today\";\n else\n $GLOBALS['labelDates'][] = $date->format('M-d');\n } \n $dates = array_reverse($dates) ;\n $GLOBALS['labelDates'] = array_reverse( $GLOBALS['labelDates']) ;\n\n \n \n // Return the array elements \n return $dates; \n }", "function preWeekContent() {\n\t\tif (func_num_args() >= 2) {\n\t\t\t$week = intval(func_get_arg(0));\n\t\t\t$content = trim(func_get_arg(1));\n\t\t\t\n\t\t\tif ($week >= 1 && $week <= 6) {\n\t\t\t\t$this->_preWeekArray[$week] = $content;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telseif (func_num_args() == 1) {\n\t\t\t$day = intval(func_get_arg(0));\n\t\t\t\n\t\t\tif (array_key_exists($week,$this->_preWeekArray)) {\n\t\t\t\treturn $this->_fillContent($this->_preWeekArray[$week]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\treturn $this->_preWeekArray;\n\t\t\t//user_error(\"You must pass at least one argument to the preWeekContent function of the Calendar class\", E_NOTICE);\n\t\t}\n\t}", "public function getWeeksToNow()\n {\n // Difference in seconds\n $difference = $this->getFromDate() - time();\n return floor($difference / $this->_secondsInAWeek);\n }", "function get_holidays() {\n $arr_holidays = array(\n 0 => array(\n 'day' => 1,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 1 => array(\n 'day' => 2,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 2 => array(\n 'day' => 3,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 3 => array(\n 'day' => 4,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 4 => array(\n 'day' => 5,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 5 => array(\n 'day' => 6,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 6 => array(\n 'day' => 7,\n 'month' => 1,\n 'holiday_name' => 'Рождество Христово',\n ),\n 7 => array(\n 'day' => 8,\n 'month' => 1,\n 'holiday_name' => 'Новогодние каникулы',\n ),\n 8 => array(\n 'day' => 23,\n 'month' => 2,\n 'holiday_name' => 'День защитника отечества',\n ),\n 9 => array(\n 'day' => 8,\n 'month' => 3,\n 'holiday_name' => 'Международный женский день',\n ),\n );\n\n return $arr_holidays;\n}", "function get_weekname()\n {\n $newdate=$this->aclone();\n $newdate->find_start_of_week();\n $return_string=$newdate->get_year();\n $return_string=$return_string.\"_\";\n $return_string=$return_string.$newdate->get_month();\n $return_string=$return_string.\"_\";\n $return_string=$return_string.$newdate->get_day();\n return $return_string;\n }", "function erp_company_get_working_days() {\n $default = array(\n 'mon' => 8,\n 'tue' => 8,\n 'wed' => 8,\n 'thu' => 8,\n 'fri' => 8,\n 'sat' => 0,\n 'sun' => 0\n );\n\n $option_key = 'erp_hr_work_days';\n $saved = get_option( $option_key, $default );\n\n if ( ! is_array( $saved ) || count( $saved ) < 7 ) {\n return $default;\n }\n\n return array_map( 'absint', $saved );\n}", "public static function week(){\n\t\t$w = date(\"w\", time());\n\t\treturn date('Y-m-d', time() - $w*24*60*60 );\n\t}", "public function getWeekDaysByEmployee($idEmployee) {\n require_once 'application/models/catalogs/CalendarDayCatalog.php';\n $toDate = new Zend_Date();\n //$toDate = $date->toString(\"MM/dd/YYYY\");\n $toDate->addDay(\"-14\");\n $fromDate = new Zend_Date($toDate);\n $toDate->addDay(\"14\");\n\n $dateMonthYearArr = array();\n\n $fromDateTS = $fromDate->getTimestamp();\n $toDateTS = $toDate->getTimestamp();\n\n //die($fromDateTS.\" \".$toDateTS);\n for ($currentDateTS = $fromDateTS; $currentDateTS <= $toDateTS; $currentDateTS = $fromDate->addDay(1)->getTimestamp()) {\n;\n //echo $fromDate->get(Zend_Date::WEEKDAY_DIGIT).\"\\n\";\n if ($fromDate->get(Zend_Date::WEEKDAY_DIGIT) != 0 && $fromDate->get(Zend_Date::WEEKDAY_DIGIT) != 6)\n $dateMonthYearArr[] = $fromDate->toString(\"YYYY-MM-dd\");\n }\n $calendarDays = CalendarDayCatalog::getInstance()->getByIdEmployeeAndDate($idEmployee, $toDate->toString(\"YYYY-MM-dd\"), $toDate->addDay(\"-14\")->toString(\"YYYY-MM-dd\"));\n\n foreach ($calendarDays as $calendarDay) {\n if ($calendarDay->getEnabledDisabled($enabledDisabled) == 1) {\n $key = array_search($calendarDay->getDayDate(), $dateMonthYearArr);\n if (!$key)\n $dateMonthYearArr[] = $calendarDay->getDayDate();\n }\n else if ($calendarDay->getEnabledDisabled($enabledDisabled) == 2) {\n $key = array_search($calendarDay->getDayDate(), $dateMonthYearArr);\n unset($dateMonthYearArr[$key]);\n }\n }\n return $dateMonthYearArr;\n }", "public function testReport(){\n // $autoTaskTools->checkTask('AutoDaySessReport');\n // $date = array(\n // date_to_int('-',date('Y-m-01', strtotime('-1 month'))),\n // date_to_int('-',date('Y-m-t', strtotime('-1 month'))),\n // );\n\n $reportTools = new ReportTools();\n $reportTools->saveReportList('AutoDaySessReport');\n\n\n $BeginDate = date('Y-m-01', strtotime(date(\"Y-m-d\")));\n $date = array(\n date_to_int('-',$BeginDate),\n date_to_int('-',date('Y-m-d', strtotime(\"$BeginDate +1 month -1 day\"))),\n );\n $month = date('Y-m-01', strtotime('-1 month'));\n $month1 = date('Y-m-t', strtotime('-1 month'));\n dump($month);\n dump($month1);\n $mytime = date(\"Y-01-01\", strtotime(\"-1 year\"));\n dump($mytime);\n $monthEndDays = cal_days_in_month(CAL_GREGORIAN, 12, date(\"Y\", strtotime(\"-1 year\")));\n $year = date(\"Y-12-\".$monthEndDays, strtotime(\"-1 year\"));\n echo 'year:' . $year;\n $monthDays = cal_days_in_month(CAL_GREGORIAN, date('m',strtotime('-1 month')), date('Y'));\n dump($monthDays);\n echo 'n:' . date('n');\n $season = ceil((date('n'))/3)-1;\n echo '<br>上季度起始时间:<br>';\n echo date('Y-m-d H:i:s', mktime(0, 0, 0,$season*3-3+1,1,date('Y'))),\"\\n\";\n echo date('Y-m-d H:i:s', mktime(23,59,59,$season*3,date('t',mktime(0, 0 , 0,$season*3,1,date(\"Y\"))),date('Y'))),\"\\n\";\n //获取第几季度\n // $season = ceil((date('n'))/3);\n // echo date('m', mktime(0, 0, 0,$season*3-3+1,1,date('Y'))),\"\\n\";\n // echo date('Y-m-d', mktime(23,59,59,$season*3,date('t',mktime(0, 0 , 0,$season*3,1,date(\"Y\"))),date('Y'))),\"\\n\";\n dump($season);\n // $daySessReportTools = new DaySessReportTools();\n // $daySessReportTools->getDateList($date);\n // $daySessReportTools->daySessExcelGen($date);\n //\n // $dayErrorReportTools = new DayErrorReportTools();\n // $dayErrorReportTools->dayErrorExcelGen($date);\n // $daySessReportTools->getDateList($date);\n $str = stristr('DaySuccessReport_UID_2017-06-29.xlsx','_',true);\n dump($str);\n $this->display();\n }", "function get_weekday_stats(){\n if(!DashboardCommon::is_su()) return null;\n \n $sat = strtotime(\"last saturday\");\n $sat = date('w', $sat) == date('w') ? $sat + 7 * 86400 : $sat;\n $fri = strtotime(date(\"Y-m-d\", $sat) . \" +6 days\");\n $from = date(\"Y-m-d\", $sat);//for current week only\n $to = date(\"Y-m-d\", $fri);//for current week only\n $sql = \"SELECT DAYNAME(atr.call_start) as dayname,count(*) as total \n FROM week_days wd \n LEFT JOIN ( SELECT * FROM calls WHERE call_start >= '\" . $this->from . \"' AND call_start <= '\" . $this->to . \"') atr\n ON wd.week_day_num = DAYOFWEEK(atr.call_start)\n GROUP BY\n DAYOFWEEK(atr.call_start)\";\n\n $this_week_rec = DashboardCommon::db()->Execute($sql);\n $saturday = $sunday = $monday = $tuesday = $wednesday = 0;\n $thursday = $friday = 0;\n// $data = array();\n// while (!$this_week_rec->EOF) {\n// $k = $this_week_rec->fields['dayname'];\n// $data[$k]= $this_week_rec->fields['total'];\n// $this_week_rec->MoveNext();\n// }\n// \n// return array_keys($data, max($data));\n\n while (!$this_week_rec->EOF) {\n $daynames = $this_week_rec->fields['dayname'];\n $totalcalls = $this_week_rec->fields['total'];\n if ($daynames == 'Saturday') {\n $saturday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Sunday') {\n $sunday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Monday') {\n $monday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Tuesday') {\n $tuesday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Wednesday') {\n $wednesday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Thursday') {\n $thursday = $this_week_rec->fields['total'];\n }\n if ($daynames == 'Friday') {\n $friday = $this_week_rec->fields['total'];\n }\n\n $this_week_rec->MoveNext();\n }\n\n $arr = array('Saturday' => $saturday,\n 'Sunday' => $sunday,\n 'Monday' => $monday,\n 'Tuesday' => $tuesday,\n 'Wednesday' => $wednesday,\n 'Thursday' => $thursday,\n 'Friday' => $friday\n );\n $max_day = array_keys($arr, max($arr));\n \n $avg_calltime_sql = \"SELECT sum(duration) as total_call_time, count(*) as total_records, \n sum(duration) / count(*) as avg_time\n FROM \n (\n SELECT call_end-call_start as duration\n FROM calls\n WHERE call_start >= '\".$this->from.\"' AND call_start <= '\".$this->to.\"'\n ) as dt\";\n $avg_calltime_res = DashboardCommon::db()->Execute($avg_calltime_sql);\n \n \n return array('weekday'=>$max_day[0],'avg_call_time'=>$avg_calltime_res->fields['avg_time']);\n \n }", "function getDatesFromRange($start, $end, $format = 'Y-m-d') { \n \n // Declare an empty array \n $array = array(); \n \n // Variable that store the date interval \n // of period 1 day \n $interval = new DateInterval('P1D'); \n \n $realEnd = new DateTime($end); \n $realEnd->add($interval); \n \n $period = new DatePeriod(new DateTime($start), $interval, $realEnd); \n \n // Use loop to store date into array \n foreach($period as $date) { \n $array[] = $date->format($format); \n } \n \n // Return the array elements \n return $array; \n}", "public function index()\n {\n $user = Auth::user();\n $data['user'] = $user;\n $settings = $user->settings;\n Carbon::setWeekStartsAt(0);\n Carbon::setWeekEndsAt(6);\n\n // TODO: get this from config\n $start_time = '06:30';\n $end_time = '19:30';\n\n $today = new Carbon($this->choose_start);\n $today2 = new Carbon($this->choose_start);\n $today3 = new Carbon($this->choose_start);\n // $today4 = new Carbon($this->choose_start);\n // $today5 = new Carbon($this->choose_start);\n $today6 = new Carbon($this->choose_start);\n\n $data['start'] = $today6->startOfWeek();\n\n $days = array();\n $days_to_add = 7 * ($settings->weeks - 2);\n $end = $today2->startOfWeek()->setDate(\n $today->year,\n $today->month,\n $today->format('d') > 15 ?\n $today3->endOfMonth()->format('d') :\n 15\n )->addDays($days_to_add);\n\n $data['end_of_period'] = $end->copy()->endOfWeek()->format('Y-m-d');\n $data['end'] = $end;\n\n $added_range = false;\n $next_range = array();\n if ((new Carbon)->day >= 13 && (new Carbon)->day <= 15) {\n $added_range = true;\n $next_range['start'] = (new Carbon)->setDate((new Carbon)->year, (new Carbon)->month, 16)->startOfWeek();\n $next_range['start_of_period'] = (new Carbon)->setDate((new Carbon)->year, (new Carbon)->month, 16);\n $next_range['end'] = (new Carbon)->startOfWeek()->setDate((new Carbon)->year, (new Carbon)->month, $today3->endOfMonth()->format('d'));\n $next_range['end_of_period'] = (new Carbon)->startOfWeek()->setDate((new Carbon)->year, (new Carbon)->month, $today3->endOfMonth()->format('d'))->endOfWeek()->format('Y-m-d');\n } elseif ((new Carbon)->day >= 28 && (new Carbon)->day <= 31) {\n $added_range = true;\n $year = (new Carbon)->year + ((new Carbon)->month == 12?1:0); // Set year as next year if this month is December (12)\n $next_range['start'] = (new Carbon)->setDate($year, (new Carbon)->addMonthNoOverflow(1)->format(\"m\"), 1)->startOfWeek();\n $next_range['start_of_period'] = (new Carbon)->setDate($year, (new Carbon)->addMonthNoOverflow(1)->format(\"m\"), 1);\n $next_range['end'] = (new Carbon)->startOfWeek()->setDate($year, (new Carbon)->addMonthNoOverflow(1)->format(\"m\"), 15);\n $next_range['end_of_period'] = (new Carbon)->startOfWeek()->setDate($year, (new Carbon)->addMonthNoOverflow(1)->format(\"m\"), 15)->endOfWeek()->format('Y-m-d');\n }\n\n $data['days_a'] = $this->get_days($data);\n $data['days_b'] = $this->get_days($next_range);\n\n $data['days'] = [__('Su'), __('Mo'), __('Tu'), __('We'), __('Th'), __('Fr'), __('Sa')];\n $time_line = [];\n $time = new Carbon($start_time);\n while ($time->format('H:i') <= $end_time) {\n $time_line[] = $time->format('H:i');\n $time->addMinutes(60);\n }\n $data['time_line'] = $time_line;\n\n $user = auth()->user();\n if (isset($user) && isset($user->settings))\n if ($user->settings->is_admin)\n return view('admin.home');\n else\n return view('home', $data);\n }", "function get_week_no($cur_date){\n $date_split=split(\"-\",$cur_date);\n return date(\"W\",mktime (0,0,0,$date_split[1],2,$date_split[2]));\n }", "public function week()\n\t{\n\t\t// -------------------------------------\n\t\t// Load 'em up\n\t\t// -------------------------------------\n\n\t\t$this->load_calendar_datetime();\n\t\t$this->load_calendar_parameters();\n\n\t\t// -------------------------------------\n\t\t// Prep the parameters\n\t\t// -------------------------------------\n\n\t\t$disable = 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$params = array(\n\t\t\tarray(\n\t\t\t\t'name' => 'category',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'site_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer',\n\t\t\t\t'min_value' => 1,\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'default' => $this->data->get_site_id()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'calendar_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'calendar_name',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'event_id',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'event_name',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'event_limit',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'status',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'default' => 'open'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'date_range_start',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'date'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'time_range_start',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'time',\n\t\t\t\t'default' => '0000'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'time_range_end',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'time',\n\t\t\t\t'default' => '2400'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'enable',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'string',\n\t\t\t\t'default' => '',\n\t\t\t\t'multi' => TRUE,\n\t\t\t\t'allowed_values' => $disable\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'first_day_of_week',\n\t\t\t\t'required' => FALSE,\n\t\t\t\t'type' => 'integer',\n\t\t\t\t'default' => $this->first_day_of_week\n\t\t\t)\n\t\t);\n\n\t\t//ee()->TMPL->log_item('Calendar: Processing parameters');\n\n\t\t$this->add_parameters($params);\n\n\t\t// -------------------------------------\n\t\t// Need to modify the starting date?\n\t\t// -------------------------------------\n\n\t\t$this->first_day_of_week = $this->P->value('first_day_of_week');\n\n\t\tif ($this->P->value('date_range_start') === FALSE)\n\t\t{\n\t\t\t$this->P->set('date_range_start', $this->CDT->datetime_array());\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->CDT->change_date(\n\t\t\t\t$this->P->value('date_range_start', 'year'),\n\t\t\t\t$this->P->value('date_range_start', 'month'),\n\t\t\t\t$this->P->value('date_range_start', 'day')\n\t\t\t);\n\t\t}\n\n\t\t$drs_dow = $this->P->value('date_range_start', 'day_of_week');\n\n\t\tif ($drs_dow != $this->first_day_of_week)\n\t\t{\n\t\t\tif ($drs_dow > $this->first_day_of_week)\n\t\t\t{\n\t\t\t\t$offset = ($drs_dow - $this->first_day_of_week);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$offset = (7 - ($this->first_day_of_week - $drs_dow));\n\t\t\t}\n\n\t\t\t$this->P->set('date_range_start', $this->CDT->add_day(-$offset));\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Define parameters specific to this calendar view\n\t\t// -------------------------------------\n\n\t\t$this->CDT->change_ymd($this->P->value('date_range_start', 'ymd'));\n\t\t$this->P->set('date_range_end', $this->CDT->add_day(6));\n\t\t$this->P->set('pad_short_weeks', FALSE);\n\n\t\t// -------------------------------------\n\t\t// Define our tagdata\n\t\t// -------------------------------------\n\n\t\t$find = array(\n\t\t\t'EVENTS_PLACEHOLDER',\n\t\t\t'{/',\n\t\t\t'{',\n\t\t\t'}'\n\t\t);\n\n\t\t$replace = array(\n\t\t\tee()->TMPL->tagdata,\n\t\t\tLD.T_SLASH,\n\t\t\tLD,\n\t\t\tRD\n\t\t);\n\n\t\tee()->TMPL->tagdata = str_replace(\n\t\t\t$find,\n\t\t\t$replace,\n\t\t\t$this->view(\n\t\t\t\t'week.html',\n\t\t\t\tarray(),\n\t\t\t\tTRUE,\n\t\t\t\t$this->sc->addon_theme_path . 'templates/week.html'\n\t\t\t)\n\t\t);\n\n\t\t// -------------------------------------\n\t\t// Tell TMPL what we're up to\n\t\t// -------------------------------------\n\n\t\tif (strpos(ee()->TMPL->tagdata, LD.'events'.RD) !== FALSE)\n\t\t{\n\t\t\tee()->TMPL->var_pair['events'] = TRUE;\n\t\t}\n\n\t\tif (strpos(ee()->TMPL->tagdata, LD.'display_each_hour'.RD) !== FALSE)\n\t\t{\n\t\t\tee()->TMPL->var_pair['display_each_hour'] = TRUE;\n\t\t}\n\n\t\tif (strpos(ee()->TMPL->tagdata, LD.'display_each_day'.RD) !== FALSE)\n\t\t{\n\t\t\tee()->TMPL->var_pair['display_each_day'] = TRUE;\n\t\t}\n\n\t\tif (strpos(ee()->TMPL->tagdata, LD.'display_each_week'.RD) !== FALSE)\n\t\t{\n\t\t\tee()->TMPL->var_pair['display_each_week'] = TRUE;\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// If you build it, they will know what's going on.\n\t\t// -------------------------------------\n\n\t\t$this->parent_method = __FUNCTION__;\n\n\t\treturn $this->build_calendar();\n\t}" ]
[ "0.7198405", "0.7187139", "0.7155058", "0.7075658", "0.7055597", "0.69986933", "0.6944969", "0.6687197", "0.6683877", "0.6642371", "0.6622404", "0.6618533", "0.6560565", "0.65489584", "0.6520116", "0.6419316", "0.6404651", "0.6319564", "0.6308476", "0.63064665", "0.62529147", "0.6251741", "0.62447274", "0.6192398", "0.6165891", "0.61595994", "0.61546504", "0.61346513", "0.6110735", "0.61105114", "0.61001194", "0.6087642", "0.608576", "0.60768914", "0.6066457", "0.60652256", "0.60623544", "0.6053612", "0.6014311", "0.6001578", "0.59970057", "0.5992214", "0.59810066", "0.5978371", "0.5969482", "0.5937885", "0.5923735", "0.59198266", "0.5916782", "0.5880506", "0.5876617", "0.5862891", "0.58556014", "0.5842131", "0.5825489", "0.58194685", "0.58067024", "0.58003855", "0.5786952", "0.57857955", "0.57809275", "0.5780619", "0.5771077", "0.57645434", "0.5761513", "0.576012", "0.57561594", "0.5747836", "0.5738842", "0.5735577", "0.5720175", "0.57154953", "0.57106405", "0.57092345", "0.57065177", "0.57057846", "0.56724215", "0.566582", "0.5659113", "0.5644008", "0.5637094", "0.5636436", "0.563261", "0.56250846", "0.5620323", "0.5614583", "0.5609254", "0.56082857", "0.56066597", "0.5606657", "0.56036097", "0.5597414", "0.5592617", "0.55848813", "0.5583704", "0.5580714", "0.5578209", "0.55732363", "0.5569845", "0.55572957", "0.55512077" ]
0.0
-1
/ FUNCION SEMANA POR MES
function SemanasEnElMes(){ $fecha_hoy = date('Y-m-01'); $fecha_fin = date('Y-m-t'); $dia_fin = date('t'); $j=1; $diaf = ''; //dia finales for($i=1;$i <= $dia_fin;$i++){ if(($i%7) == 0){ $diaf .= $i.','; $j++; } } $diaf = substr($diaf, 0, -1); $sep_fd = explode(",", $diaf); $count_d = count($sep_fd); $ini_semana = array(); $inicios = array(); //dias iniciales for($i=0;$i< $count_d;$i++){ $fecha_actual = date("Y-m-$sep_fd[$i]"); $ini_semana = date("Y-m-d",strtotime($fecha_actual."- 6 days")); array_push($inicios,$ini_semana); } //semanas del mes $semanas_mes = array(); $semana_dia_final = array(); for($i=0;$i< $count_d;$i++){ if(($count_d-1) == $i){ $semanas_mes[$i] = array('fi'=>$inicios[$i],'ff'=>date("Y-m-t")); } else{ $semanas_mes[$i] = array('fi'=>$inicios[$i],'ff'=>date("Y-m-$sep_fd[$i]")); } } //var_dump($semanas_mes); return $semanas_mes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valorpasaje();", "public function valordelospasajesplus();", "public function AggiornaPrezzi(){\n\t}", "function ola(){\n\n$argumentos = func_get_args();// recupera todos os argumentos da variavel que é um array \nreturn $argumentos;\n}", "function ambas()\n {\n print \"Ejecución de la función ambas<br>\";\n # mediante $this-> requerimos la ejecución de metodo prueba\n # de la clase actual\n $this->prueba();\n # al señalar parent:: requerimos la ejecución de metodo prueba\n # de la clase padre\n parent::prueba();\n }", "function meteo($saison, $température){\n echo \"Nous sommes en $saison et il fait $température degré(s) <br>\";\n}", "function listado();", "public function getElementos();", "public function pasaje_abonado();", "function aggiungiAllegato($pratica,$documento){\n \n}", "public function mostra(){\n }", "function existeLetra(/*>>> Completar parámetros <<<*/ ){\n \n /*>>> Completar cuerpo de la función <<<*/\n\n}", "public function abono();", "public function masodik()\n {\n }", "public function linea_colectivo();", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "function ToonFormulierAfspraak()\n{\n\n}", "public function plus_abonados();", "private function processarParametros() {\n\n /**\n * Busca os usuarios definidos para notificar quando acordo ira vencer, ordenando pelo dia\n */\n $oDaoMensageriaUsuario = db_utils::getDao('mensagerialicenca_db_usuarios');\n $sSqlUsuarios = $oDaoMensageriaUsuario->sql_query_usuariosNotificar('am16_sequencial', 'am16_dias');\n $rsUsuarios = db_query($sSqlUsuarios);\n $iTotalUsuarios = pg_num_rows($rsUsuarios);\n\n if ($iTotalUsuarios == 0) {\n throw new Exception(\"Nenhum usuário para notificar.\");\n }\n\n /**\n * Percorre os usuarios e define propriedades necessarias para buscar acordos\n */\n for ($iIndiceUsuario = 0; $iIndiceUsuario < $iTotalUsuarios; $iIndiceUsuario++) {\n\n /**\n * Codigo do usuario para notificar: mensageriaacordodb_usuario.ac52_sequencial\n */\n $iCodigoMensageriaLicencaUsuario = db_utils::fieldsMemory($rsUsuarios, $iIndiceUsuario)->am16_sequencial;\n\n /**\n * Codigo dos usuarios que serao notificados\n * - usado para verificar os usuarios que ja foram notificados\n * - mensageriaacordodb_usuario.ac52_sequencial\n */\n $this->aCodigoMensageriaLicencaUsuario[] = $iCodigoMensageriaLicencaUsuario;\n\n /**\n * Usuario para notificar\n * - mensageriaacordodb_usuario\n */\n $oMensageriaLicencaUsuario = MensageriaLicencaUsuarioRepository::getPorCodigo($iCodigoMensageriaLicencaUsuario);\n\n /**\n * Codigo do usuario do sistema\n * - db_usuarios.id_usuario\n */\n $iCodigoUsuario = $oMensageriaLicencaUsuario->getUsuario()->getCodigo();\n\n /**\n * Data de vencimento:\n * - Soma data atual com dias definidos na rotina de parametros de mensageria\n */\n $iDias = $oMensageriaLicencaUsuario->getDias();\n $this->aDataVencimento[] = date('Y-m-d', strtotime('+ ' . $iDias . ' days'));\n }\n\n return true;\n }", "function palabraDescubierta($coleccionLetras){\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n}", "public function obtenerViajesplusAbonados();", "public function InsertarMesaParametros()\n\t{\n\t\t\t$objetoAccesoDato = AccesoDatos::dameUnObjetoAcceso();\n $consulta =$objetoAccesoDato->RetornarConsulta(\"INSERT into mesa (codigo,estado,usos)values(:codigo,:estado,:usos)\");\n $consulta->bindValue(':codigo', $this->codigo, PDO::PARAM_STR);\n $consulta->bindValue(':estado', $this->estado, PDO::PARAM_STR);\n $consulta->bindValue(':usos', $this->usos, PDO::PARAM_INT);\n $consulta->execute();\t\n return $objetoAccesoDato->RetornarUltimoIdInsertado();\n }", "final function velcom(){\n }", "function DIAS_SUELDO_BASICO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t$estado = ESTADO($_ARGS);\r\n\t$fegreso = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif ($estado == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['DESDE']) return DIAS_FECHA($_ARGS['DESDE'], $_ARGS['HASTA']);\r\n\t\telse return DIAS_FECHA($_ARGS['FECHA_INGRESO'], $_ARGS['HASTA']);\r\n\t} else {\r\n\t\tif ($fegreso < $_ARGS['DESDE']) return 0;\r\n\t\telse return DIAS_FECHA($_ARGS['DESDE'], $fegreso);\r\n\t}\r\n}", "public function accueil()\n {\n }", "public function getFuncionesPorPelicula($pelicula){\n \t\n if(!ctype_digit($pelicula)) throw Exception;\n if($pelicula < 1) throw Exception; \n\n\n $this->db->query(\"SELECT nombre_sala,horario ,id_funcion \n\t\t\t\t\t\tfrom funciones f\n\t\t\t\t\t\tjoin salas s on f.id_sala=s.id_sala\n \t\t WHERE id_pelicula =\".$pelicula);\n \treturn $this->db->fetchAll();\n }", "function tratamentoDadosProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod,\n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos, \n $tipo_function) \n {\n // limpar o nome do produto para não correr risco de SQLI ou partes html\n $name_prod = filter_var($name_prod, FILTER_SANITIZE_STRING);\n // limpar o valor do produto p/conter apenas números\n $preco_prod = filter_var($preco_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a qntd disponivel do produto p/conter apenas números\n $qntd_prod = filter_var($qntd_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a categoria do produto p/conter apenas números\n $categoria_prod = filter_var($categoria_prod, FILTER_SANITIZE_STRING);\n // limpar o tipo de venda do produto p/conter apenas números\n $tipo_venda_prod = filter_var($tipo_venda_prod, FILTER_SANITIZE_NUMBER_INT);\n // limpar a qntd minima de venda do produto p/conter apenas números\n $qntd_min_prod = filter_var($qntd_min_prod, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n // limpar a descrição do produto para não correr risco de SQLI ou partes html\n $descricao = filter_var($descricao, FILTER_SANITIZE_STRING);\n // limpar e verificar se a data contém apenas números\n $producao = preg_replace(\"([^0-9/-])\", \"\", $producao);\n // limpar e verificar se a data contém apenas números\n $validade = preg_replace(\"([^0-9/-])\", \"\", $validade);\n\n if ($tipo_function == 1) {\n return $this->cadastrarProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod, \n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos);\n\n } elseif ($tipo_function == 2) {\n return $this->updateProduto( $name_prod, $preco_prod, $qntd_prod, $categoria_prod,\n $tipo_venda_prod, $qntd_min_prod, $descricao, $producao, $validade, $imgProdutos);\n }\n }", "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n //a zjisti a zapise kolize ucastnika pro vsechny formulare \r\n $vsechny_kolize_ucastnika_pole = self::Najdi_kolize_vsechny($iducast);\r\n //echo \"<br>**Vsechny kolize_pole v Zapis_vsechny_kolize..... **\";\r\n //var_dump($vsechny_kolize_ucastnika_pole);\r\n \r\n //znevalidneni vsech kolizi pro ucastnika \r\n self::Znevalidni_kolize_ucastnika_vsechny($iducast);\r\n foreach($vsechny_kolize_ucastnika_pole as $jedna_kolize){\r\n if ($jedna_kolize->kolize_nastala) {\r\n $jedna_kolize->Zapis_jednu_kolizi();\r\n } \r\n }\r\n \r\n}", "function desplegarCampo(Detallesmantenimientosdetablas $detalle,$numeroGrid,$sinValorPorDefecto=false){\n $size=$detalle->getTamanoCampo();\n $max=$detalle->getTamanoMaximoCampo();\n $javascript=$detalle->getJavascriptDesdeCampo();\n $valorPorDefecto=trim(obtenerValorPorDefecto($detalle));\n if($sinValorPorDefecto!=false){\n $valorPorDefecto=$ValorPorDefecto;\n }\n $id=$detalle->getIdCampo();\n $tipo=$detalle->getIdTipoCampo();\n $requerido=$detalle->getNulidadCampo();\n $accion=strtoupper($detalle->getAccionCampo());\n\n $ayuda=$detalle->getDescripcionCampo();\n\n if ($tipo == 14) { //Si es tipo Separador de Campos\n Campos::columnaGrid($numeroGrid);\n echo \"<center><strong>\" . $detalle->getNombreCampo() . \"</strong></center>\";\n Campos::finColumnaGrid();\n return;\n } else {\n Campos::columnaGrid($numeroGrid);\n echo $detalle->getNombreCampo();\n C::finColumnaGrid();\n }\n\n Campos::columnaGrid($numeroGrid);\n\n/*\n 1\tFecha\n 2\tFecha Hora\n 3\tHora\n 4\tArchivo\n 5\tNumerico\n 6\tMoneda\n 7\tCaracteres\n 8\tTexto\n 9\tTabla Extranjera\n 10\tBoton de Cheque\n 11\tBotones de Opcion Múltiple PENDIENTE\n 12\tFALSO\n 13\tLista Desplegable\n 14\tAgrupador de Campos\n 15\tSeparador De Campos Oculto PENDIENTE\n 16\tFinalizacion del Separador PENDIENTE\n 17\tTabla PENDIENTE\n 18\tBoton PENDIENTE\n 19\tRuta de archivo PENDIENTE\n 20 Editor HTML PopUp\n */\n\n\n //Aqui empieza la captura...\n if($tipo==1){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n if(trim($valorPorDefecto)==\"\"){\n $valorPorDefecto=null;\n }\n C::texto($id,$valorPorDefecto,10,10,\" READONLY \");\n }else if($tipo==2){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n C::texto($id,$valorPorDefecto,15,15,\" READONLY \");\n }else if($tipo==3){\n C::texto($id,$valorPorDefecto,10,10,\" READONLY \");\n }else if($tipo==5){\n C::entero($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==6){\n C::flotante($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==7){\n C::texto($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==8){\n $filas=$detalle->getAltoCampo();\n C::textArea($id,$valorPorDefecto,$filas,$size,$javascript.\" READONLY \");\n }else if($tipo==9){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id.\"selectDisabled\", $rsT, $valorPorDefecto,\" DISABLED \");\n C::oculto($id,$valorPorDefecto);\n }else if($tipo==10){\n $chequeado=false;\n if($valorPorDefecto==1){\n $chequeado=true;\n }\n C::chequeSiNo($id,'',$chequeado,1,\" DISABLED \");\n } else if($tipo==12){\n C::texto($id, $valorPorDefecto, $size, $max, $javascript.\" READONLY\");\n }else if($tipo==13){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id.\"selectDisabled\", $rsT, $valorPorDefecto,\" DISABLED \");\n C::oculto($id,$valorPorDefecto);\n }else if($tipo==20){\n C::editorHTMLPopUp($id, $valorPorDefecto, $detalle->getNombreCampo());\n }else if($tipo==26){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==27){\n $chequeado=false;\n if($valorPorDefecto=='A'){\n $chequeado=true;\n }\n C::chequeActivo($id,'',$chequeado);\n }else if($tipo==28){\n C::textoConMascara($id,$detalle->getQueryFiltro());\n }else if($tipo==29){\n C::selectCatalogoId($id,$detalle->getCatalogoId(), $valorPorDefecto);\n }\n\n C::finColumnaGrid();\n}", "function promedios_por_materia($vector){\n echo \"<hr> ############# Promedios por materia #############\";\n $calificacion1=0;\n $calificacion2=0;\n $calificacion3=0;\n $calificacion4=0;\n $calificacion5=0;\n $calificacion6=0;\n foreach ($vector as $key => $value) {\n $calificacion1=$calificacion1+$vector[$key][0];\n $calificacion2=$calificacion2+$vector[$key][1];\n $calificacion3=$calificacion3+$vector[$key][2];\n $calificacion4=$calificacion4+$vector[$key][3];\n $calificacion5=$calificacion5+$vector[$key][4];\n $calificacion6=$calificacion6+$vector[$key][5];\n }\n $prom=$calificacion1/10;\n echo \"<br> Promedio materia 1: \".$prom;\n $prom=$calificacion2/10;\n echo \"<br> Promedio materia 2: \".$prom;\n $prom=$calificacion3/10;\n echo \"<br> Promedio materia 3: \".$prom;\n $prom=$calificacion4/10;\n echo \"<br> Promedio materia 4: \".$prom;\n $prom=$calificacion5/10;\n echo \"<br> Promedio materia 5: \".$prom;\n $prom=$calificacion6/10;\n echo \"<br> Promedio materia 6: \".$prom;\n }", "public function contrato()\r\n\t{\r\n\t}", "public function elso()\n {\n }", "public function getMataPelajaran();", "function determinaFechosVazios()\n{\n\tglobal $mTransicoes, $lAlfabeto, $fechoVazio, $lEstados, $lTokens; \t\n\n\t//Variáveis\n\t$arrayEstados = NULL; //array com as diversas transições vazias de um mesmo estado\n\t$arrayEstados2 = NULL;\t\n\t$transConcatenadas = NULL; //array com a string inteira da transição, pode ter diversas transições vazias\n\n\techo \"------------------------------------<br>\";\n\techo \"Passo 1: Fechos dos estados<br>\";\n\t\n\tfor($i = 1; $i <= sizeof($lEstados); $i++) //determina o fecho para cada estado do autômato\n\t{ \n\t\t//echo \"Fecho de \".$lEstados[$i].\":<br>\";\n\t\t//echo \"&nbsp;&nbsp;Transicoes vazias: \".$mTransicoes[$lEstados[$i]][$lAlfabeto[0]].\"<br>\";\n\t\tif($mTransicoes[$lEstados[$i]][$lAlfabeto[0]] != '-') //mtransicoes[\"q0\"][\"e\"] != \"-\" \n\t\t{\n\t\t\t//echo \"&nbsp;&nbsp;Diferente de '-'<br>\";\n\t\t\t$fechoVazio[$lEstados[$i]][] = $lEstados[$i]; //coloca ele mesmo na lista //fechoVazio[\"q0\"][0] = \"q0'\n\t\t\t$lTokens = NULL; //limpa conteúdo de $lTokens\n\t\t\ttokeniza($mTransicoes[$lEstados[$i]][$lAlfabeto[0]]); //\"tokeniza\" vai deixar em $lTokens todos os estados de transição vazia\n\t\t\t$arrayEstados = $lTokens;\t\n\t\n\t\t\tfor($j = 0; $j < sizeof($arrayEstados); $j++)\n\t\t\t{\n\t\t\t\t//echo \"&nbsp;&nbsp;arrayEstados[$j] = \".$arrayEstados[$j].\"<br>\";\t\t\t\t\n\t\t\t\t//ve se o estado está no fecho, se não estiver coloca\n\t\t\t\tif(array_search($arrayEstados[$j], $fechoVazio[$lEstados[$i]]) == NULL \t\n\t\t\t\t\t\t\t\t&& $arrayEstados[$j] != '-'\n\t\t\t\t\t\t\t\t&& $arrayEstados[$j] != $fechoVazio[$lEstados[$i]][0])\t\n\t\t\t\t{ //o teste é igual a NULL, logo não achou o estado no fecho\n\t\t\t\t\t$fechoVazio[$lEstados[$i]][sizeof($fechoVazio[$lEstados[$i]])] = $arrayEstados[$j];\n\t\t\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;1fechoVazio[$lEstados[$i]][\".sizeof($fechoVazio[$lEstados[$i]]).\"]: \".$arrayEstados[$j].\"<br>\";\n\t\t\t\t\t//agora precisamos ver as transições vazias do arrayEstados[$j]\n\t\t\t\t\t$lTokens = NULL; //limpa conteúdo de $lTokens\n\t\t\t\t\ttokeniza($mTransicoes[$arrayEstados[$j]][$lAlfabeto[0]]); \n\t\t\t\t\t$arrayEstados2 = NULL;\n\t\t\t\t\t$arrayEstados2 = $lTokens;\n\t\t\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\";\t\n\t\t\t\t\t//echo \"transicao: \".$arrayEstados2[0].\"<br>\";\n\t\n\t\t\t\t\tfor($k = 0; $k < sizeof($arrayEstados2); $k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(array_search($arrayEstados2[$j], $fechoVazio[$lEstados[$i]]) == NULL \n\t\t\t\t\t\t\t\t\t\t&& $arrayEstados2[$j] != '-' \n\t\t\t\t\t\t\t\t\t\t&& $arrayEstados2[$j] != $fechoVazio[$lEstados[$i]][0])\t\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t$fechoVazio[$lEstados[$i]][sizeof($fechoVazio[$lEstados[$i]])] = $arrayEstados2[$k];\n\t\t\t\t\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;2fechoVazio[$lEstados[$i]][\".sizeof($fechoVazio[$lEstados[$i]]).\"]: \".$arrayEstados2[$j].\"<br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} \t\n\t\t}\n\t\telse //estado sem transições vazias, logo o fecho vazio é vazio\n\t\t{\n\t\t\t$fechoVazio[$lEstados[$i]][] = $lEstados[$i]; //o fecho de um estado contém ele próprio sempre\n\t\t\t//echo \"&nbsp;&nbsp;&nbsp;&nbsp;Eh vazio, coloca so ele mesmo<br>\";\n\t\t}\n\t}\t\n\n\tfor($i = 1; $i <= sizeof($lEstados); $i++) //determina o fecho para cada estado do autômato\n\t{ \n\t\tsort($fechoVazio[$lEstados[$i]]);\n\t\techo $lEstados[$i].\": \";\n\t\tfor($j = 0; $j < sizeof($fechoVazio[$lEstados[$i]]); $j++)\n\t\t{\n\t\t\techo $fechoVazio[$lEstados[$i]][$j].\".\";\n\t\t}\n\t\techo \"<br>\";\n\t}\n\n\techo \"------------------------------------<br>\";\n\treturn;\n}", "function carrega_vetor_lexicos($id_projeto, $id_lexico_atual, $semAtual) {\n \n //testes if the variable is not null\n assert($id_projeto != NULL);\n assert($id_lexico_atual != NULL);\n assert($semAtual != NULL);\n \n //tests if the variable has the correct type\n assert(is_string($id_projeto));\n assert(is_string($id_lexico_atual));\n assert(is_string($semAtual));\n \n $vetorDeLexicos = array();\n if ($semAtual) {\n $queryLexicos = \"SELECT id_lexico, nome \n\t\t\tFROM lexico \n\t\t\tWHERE id_projeto = '$id_projeto' \n AND id_lexico <> '$id_lexico_atual' \n\t\t\tORDER BY nome DESC\";\n\n $querySinonimos = \"SELECT id_lexico, nome \n\t\t\tFROM sinonimo\n\t\t\tWHERE id_projeto = '$id_projeto' \n AND id_lexico <> '$id_lexico_atual' \n\t\t\tORDER BY nome DESC\";\n } else {\n\n $queryLexicos = \"SELECT id_lexico, nome \n\t\t\tFROM lexico \n\t\t\tWHERE id_projeto = '$id_projeto' \n\t\t\tORDER BY nome DESC\";\n\n $querySinonimos = \"SELECT id_lexico, nome \n\t\t\tFROM sinonimo\n\t\t\tWHERE id_projeto = '$id_projeto' \n ORDER BY nome DESC\";\n }\n\n $resultadoQueryLexicos = mysql_query($queryLexicos) or\n die(\"Erro ao enviar a query de selecao na tabela lexicos !\" . \\mysql_error());\n\n $i = 0;\n while ($linhaLexico = mysql_fetch_object($resultadoQueryLexicos)) {\n $vetorDeLexicos[$i] = $linhaLexico;\n $i++;\n }\n\n $resultadoQuerySinonimos = mysql_query($querySinonimos) or\n die(\"Erro ao enviar a query de selecao na tabela sinonimos !\" . mysql_error());\n while ($linhaSinonimo = mysql_fetch_object($resultadoQuerySinonimos)) {\n $vetorDeLexicos[$i] = $linhaSinonimo;\n $i++;\n }\n return $vetorDeLexicos;\n}", "function getElementosPlus() {\t\n\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\t\n\t\t//Y GUARDANDO OS DATOS EN VARIABLES\n\t\tif (isset($_REQUEST['hora_inicio'])) {\n\t\t\t$hora_inicio = $_REQUEST['hora_inicio'];\n\t\t\t$minuto_inicio = $_REQUEST['minuto_inicio'];\n\t\t\t$hora_termino = $_REQUEST['hora_termino'];\n\t\t\t$minuto_termino = $_REQUEST['minuto_termino'];\n\t\t}else{\n\t\t\t$hora_termino = '23';\n\t\t\t$minuto_termino = '59';\n\t\t\t$hora_inicio = '00';\n\t\t\t$minuto_inicio = '00';\n\t\t}\n\n\t\tif (isset($_REQUEST['nodo_filtro'])) {\n\t\t\t$nodo_filtro = $_REQUEST['nodo_filtro'];\n\t\t\t$isset = 1;\n\t\t}else{\n\t\t\t$nodo_filtro = -1;\n\t\t\t$isset = 0;\n\t\t}\n\n\n\t\t//SE GUARDA DIA MES Y AÑO EN VARIABLE Y SE LE AGREGA LA HORA QUE SE PASA POR POST POR LOS INPUTS DEL FILTRO\n\t\t$fechainicioSinHora = date(\"Y-m-d\", strtotime($this->timestamp->getInicioPeriodo()));\n\t\t$fecha_inicio_filtro = $fechainicioSinHora.' '.$hora_inicio.':'.$minuto_inicio.':00';\n\t\t$fechaTerminoSinHora = date(\"Y-m-d\", strtotime($this->timestamp->getInicioPeriodo()));\n\t\t$fecha_termino_filtro = $fechaTerminoSinHora.' '.$hora_termino.':'.$minuto_termino.':59';\n\n\t\t//SI SE ACTIVA EL FILTRO SE GUARDA FECHA PASADA POR POST SINO LA FECHA ES LA DEL CALENDARIO\n\t\tif (isset($_REQUEST['hora_inicio'])) {\n\t\t\t$fecha_inicial = $fecha_inicio_filtro;\n\t\t\t$fecha_termino = $fecha_termino_filtro;\n\t\t}else{\n\t\t\t$fecha_inicial = $this->timestamp->getInicioPeriodo();\n\t\t\t$fecha_termino = $this->timestamp->getTerminoPeriodo();\n\t\t}\n\t\t$h1=($hora_inicio);\n\t\t$m1=($minuto_inicio);\n\t\t$h2=($hora_termino);\n\t\t$m2=($minuto_termino);\n\t\t//EN CASO DE HABER PAGINADO EL MONITOR SOLO SE CARGA LA FUNCIÓN getDetalleElementosPlus()\n\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t$this->resultado = $this->resultado = $this->getDetalleElementosPlus($this->extra[\"monitor_id\"], $this->extra[\"pagina\"], 1, $fecha_inicial, $fecha_termino, $isset=1,$h1, $m1, $h2, $m2);\n\t\t\treturn;\n\t\t}\n\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT titulo, foo.nodo_id FROM (\".\n\t\t\t \"SELECT DISTINCT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\tpg_escape_string($this->objetivo_id).\",'\".\n\t\t\t\tpg_escape_string($fecha_inicial).\"','\".\n\t\t\t\tpg_escape_string($fecha_termino).\"')) AS foo, nodo n \".\n\t\t\t \"WHERE foo.nodo_id=n.nodo_id ORDER BY orden\";\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t\n\t\t$datos_nodo = array();\n\t\twhile ($row = $res->fetchRow()) {\n\t\t\t$dato_nodo = ($row[\"titulo\"]);\n\t\t\t$datos_nodo[$row[\"nodo_id\"]] = $dato_nodo;\n\t\t}\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'contenedor_tabla_filtro.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PATRONES_SCRIPT', 'lista_patrones_script');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_NODOS_FILTRO', 'lista_nodos_filtro');\n\t\t$T->setBlock('tpl_tabla', 'VALORES_FILTRO', 'valores_filtro');\n\t\t$T->setBlock('tpl_tabla', 'VALORES_SLIDER', 'valores_slider');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_MONITOREOS', 'bloque_monitoreos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_MONITOREOS_SCRIPT', 'bloque_monitoreos_script');\n\t\t$T->setVar('__path_jquery_ui', REP_PATH_JQUERY_UI);\n\t\t$slider_inicio = ($hora_inicio * 60) + $minuto_inicio;\n\t\t$slider_termino = ($hora_termino * 60) + $minuto_termino;\n\n\t\t$new = (isset($_GET['new'])) ? $_GET['new'] : true;\n\n\t\t$T->setVar('__item_id', $this->__item_id);\n\n\t\t//SE PASAN LAS VARIABLES AL FILTRO QUE SE PASARON POR POST AL HACER EL FILTRADO\n\t\t$T->setVar('__nodo_selected', $nodo_filtro);\n\t\t$T->setVar('__isset', $isset);\n\n\t\t$T->setVar('valores_slider', '');\n\t\t$T->setVar('__valor_slider_inicio', $slider_inicio);\n\t\t$T->setVar('__valor_slider_termino', $slider_termino);\n\t\t$T->parse('valores_slider', 'VALORES_SLIDER', true);\n\n\t\t$T->setVar('valores_filtro', '');\n\t\t$T->setVar('__hora_inicio', $hora_inicio);\n\t\t$T->setVar('__minuto_inicio', $minuto_inicio);\n\t\t$T->setVar('__hora_termino', $hora_termino);\n\t\t$T->setVar('__minuto_termino', $minuto_termino);\n\t\t$T->parse('valores_filtro', 'VALORES_FILTRO', true);\n\n\t\t$T->setVar('lista_nodos_filtro', '');\n\t\tforeach ($datos_nodo as $nodo_id => $titulo_nodo) {\n\t\t\tif ($nodo_id != 0) {\n\t\t\t$T->setVar('__nodo_filtro', $titulo_nodo);\n\t\t\t$T->setVar('__nodoid_filtro', $nodo_id);\n\t\t\t}else{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$T->parse('lista_nodos_filtro', 'LISTA_NODOS_FILTRO', true);\n\t\t}\n\n\n\t\t$orden = 1;\n\t\t$cuenta_nodos = 0;\n\t\tforeach ($datos_nodo as $nodo_id => $titulo_nodo) {\n\t\t\tif (!isset($_REQUEST['nodo_filtro']) || $_REQUEST['nodo_filtro'] == -1) {\n\t\t\t\t$nodo_id_filtro = $nodo_id;\n\t\t\t\t$T->setVar('__contenido_id', 'elem_'.$nodo_id_filtro);\n\t\t\t\t$T->setVar('__display_filtro', $this->__item_id);\n\t\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleElementosPlus($nodo_id_filtro, 1, $orden, $fecha_inicial, $fecha_termino, $isset,$h1, $m1, $h2, $m2, $cuenta_nodos));\n\t\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t\t$orden++;\n\t\t\t}else{\n\t\t\t\tif ($_REQUEST['nodo_filtro'] == $nodo_id) {\n\t\t\t\t\t$nodo_id_filtro = $_REQUEST['nodo_filtro'];\n\t\t\t\t\t$T->setVar('__contenido_id', 'elem_'.$nodo_id_filtro);\n\t\t\t\t\t$T->setVar('__display_filtro', $this->__item_id);\n\t\t\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleElementosPlus($nodo_id_filtro, 1, $orden, $fecha_inicial, $fecha_termino, $isset,$h1, $m1, $h2, $m2, $cuenta_nodos));\n\t\t\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t\t\t$orden++;\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$cuenta_nodos++;\n\t\t}\n\t\t\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t}", "public function obtenerViajesplus();", "function capturarCampo(Detallesmantenimientosdetablas $detalle,$numeroGrid,$ValorPorDefecto=false,$sinValorPorDefecto=''){\n $size=$detalle->getTamanoCampo();\n $max=$detalle->getTamanoMaximoCampo();\n $javascript=$detalle->getJavascriptDesdeCampo();\n $valorPorDefecto=trim(obtenerValorPorDefecto($detalle));\n if($sinValorPorDefecto!=false){\n $valorPorDefecto=$ValorPorDefecto;\n }\n $id=$detalle->getIdCampo();\n $tipo=$detalle->getIdTipoCampo();\n $requerido=$detalle->getNulidadCampo();\n $accion=strtoupper($detalle->getAccionCampo());\n\n $ayuda=$detalle->getDescripcionCampo();\n \n if ($tipo == 14) { //Si es tipo Separador de Campos\n Campos::columnaGrid($numeroGrid);\n echo \"<center><strong>\" . $detalle->getNombreCampo() . \"</strong></center>\";\n Campos::finColumnaGrid();\n\n return;\n } else if($tipo!='30') {\n Campos::columnaGrid($numeroGrid);\n echo $detalle->getNombreCampo();\n Campos::finColumnaGrid();\n }\n\n\n/*\n 1\tFecha\n 2\tFecha Hora\n 3\tHora\n 4\tArchivo\n 5\tNumerico\n 6\tMoneda\n 7\tCaracteres\n 8\tTexto\n 9\tTabla Extranjera\n 10\tBoton de Cheque\n 11\tBotones de Opcion Múltiple PENDIENTE\n 12\tFALSO\n 13\tLista Desplegable\n 14\tAgrupador de Campos \n 15\tSeparador De Campos Oculto PENDIENTE\n 16\tFinalizacion del Separador PENDIENTE\n 17\tTabla PENDIENTE\n 18\tBoton PENDIENTE\n 19\tRuta de archivo PENDIENTE\n 20 Editor HTML PopUp\n */\n\n Campos::columnaGrid($numeroGrid);\n //Aqui empieza la captura...\n if($tipo==1){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n if(trim($valorPorDefecto)==\"\"){\n $valorPorDefecto=null;\n }\n C::fecha($id,$valorPorDefecto,$resFecha);\n }else if($tipo==2){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n C::fechaHora($id,$valorPorDefecto,$resFecha);\n }else if($tipo==3){\n C::hora($id, $valorPorDefecto);\n }else if($tipo==5){\n C::entero($id,$valorPorDefecto,$size,$max,$javascript);\n }else if($tipo==6){\n C::flotante($id,$valorPorDefecto,$size,$max,$javascript);\n }else if($tipo==7){\n C::texto($id,$valorPorDefecto,$size,$max,$javascript);\n }else if($tipo==8){\n $filas=$detalle->getAltoCampo();\n C::textArea($id,$valorPorDefecto,$filas,$size,$javascript);\n }else if($tipo==9){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id, $rsT, $valorPorDefecto);\n }else if($tipo==10){\n $chequeado=false;\n if($valorPorDefecto==1){\n $chequeado=true;\n }\n C::chequeSiNo($id,'',$chequeado);\n } else if($tipo==12){\n C::texto($id, $valorPorDefecto, $size, $max, $javascript.\" READONLY\");\n }else if($tipo==13){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id, $rsT, $valorPorDefecto);\n }else if($tipo==20){\n C::editorHTMLPopUp($id, \"<p></p>\", $detalle->getNombreCampo());\n }else if($tipo==21){\n C::persona($id, $valorPorDefecto);\n }else if($tipo==25){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==14){\n //Separador de campos\n }else if($tipo==26){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==27){\n $chequeado=false;\n if($valorPorDefecto=='A'){\n $chequeado=true;\n }\n C::chequeActivo($id,'',$chequeado);\n }else if($tipo==28){\n C::textoConMascara($id,$detalle->getQueryFiltro());\n }else if($tipo==29){\n C::selectCatalogoId($id,$detalle->getCatalogoId(), $valorPorDefecto);\n }\n \n C::finColumnaGrid();\n}", "function saludo(){\n echo \"<hr>\";\n echo \"Buenas tardes aprendices, bienvenidos a las clases de PHP\";\n echo \"<hr>\";\n }", "function get_mecanismos_carga()\n\t{\n\t\t$param = $this->get_definicion_parametros(true);\t\t\n\t\t$tipos = array();\n\t\tif (in_array('carga_metodo', $param, true)) {\n\t\t\t$tipos[] = array('carga_metodo', 'Método de consulta PHP');\n\t\t}\n\t\tif (in_array('carga_lista', $param, true)) {\n\t\t\t$tipos[] = array('carga_lista', 'Lista fija de Opciones');\n\t\t}\t\t\n\t\tif (in_array('carga_sql', $param, true)) {\t\t\n\t\t\t$tipos[] = array('carga_sql', 'Consulta SQL');\n\t\t}\n\t\treturn $tipos;\n\t}", "function lupe_vagas($idt_periodo,$municipio,$idt_programa,$cod_programa)\r\n\r\n//p($municipio);\r\n// exit();\r\n\r\n\r\n{\r\n\r\n // p($idt_eve_periodo);\r\n if ($idt_periodo=='')\r\n {\r\n // erro de parâmetro\r\n // exit()\r\n }\r\n //\r\n // Montar select\r\n //\r\n $kselectw = 'select sum(qtd_vagas_turma) as qtd_vagas\r\n from periodo_let_prgr_muni_cur_turma as turma\r\n inner join periodo_letivo pelet on turma.idt_periodo=pelet.idt\r\n inner join periodo peins on pelet.idt_periodo=peins.idt\r\n left join programa pr on turma.programa=pr.codigo';\r\n $kwherew=' where peins.idt='.$idt_periodo.' and pr.codigo='.aspa($cod_programa);\r\n\r\n if ($municipio!='')\r\n {\r\n $kwherew=$kwherew.' and cod_municipio='.aspa($municipio);\r\n }\r\n if ($idt_programa!=-1)\r\n {\r\n // tom $kwherew=$kwherew.' and idt_periodo_let_programa='.$idt_programa;\r\n $kwherew=$kwherew.' and turma.programa='.aspa($cod_programa);\r\n }\r\n $korderbyw=' ';\r\n\r\n\r\n $a=$kselectw.$kwherew.$korderbyw;\r\n\r\n//p($kwherew);\r\n\r\n\r\n// p($a);\r\n// exit();\r\n\r\n $qtd_vagas=0;\r\n\r\n $ktabelaw = execsql($a);\r\n ForEach($ktabelaw->data as $row)\r\n {\r\n $qtd_vagas=$qtd_vagas+$row['qtd_vagas'];\r\n\r\n }\r\n\r\n // p($qtd_vagas);\r\n// exit();\r\n\r\n\r\n return $qtd_vagas;\r\n}", "function verMas()\t\r\n\t\t{\r\n\t\t\t\r\n\t\t\tglobal $use;\r\n\t\t\tglobal $priv;\r\n\r\n\t\t\t//NOTA: Para ver si funciona tienen que asociarle un adherente en la tabla socios, ya que en los datos de ejemplo todos son titulares\r\n\t\t\t//NOTA: Lo que hice fue: en tabla socios en numero_soc=00044 cambiar el campo soc_titula de manera que quede soc_titula=00277\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DEL ASOCIADO TITULAR----------------\r\n\t\t\t\r\n\t\t\t$numero_socio = $_GET['num_soc']; //Es el número del socio titular que debe ser tomado del PASO 1\r\n\t\t\t\r\n\r\n\t\t\t\t$resultadoTitular = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t\t\t\t\t\t FROM socios,persona \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\");\r\n\t\t\t\t\t\t\t\t\t \r\n\r\n\t\t\tif(!$resultadoTitular)\r\n\t\t\t{\r\n\t\t\t\t$error=[\r\n\t\t\t\t'menu'\t\t\t=>\"Atenciones\",\r\n\t\t\t\t'funcion'\t\t=>\"verMas\",\r\n\t\t\t\t'descripcion'\t=>\"No se encuentra al titular $numero_socio\"\r\n\t\t\t\t];\r\n\t\t\t\techo $GLOBALS['twig']->render('/Atenciones/error.html', compact('error','use','priv'));\t\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t///---FUNCIÓN PARA CALCULAR EDAD----\r\n\t\t\t\r\n\t\t\t$fecha=$resultadoTitular[0]['fecnacim'];\r\n\t\t\t$dias = explode(\"-\", $fecha, 3);\r\n\t\t\t\r\n\t\t\t// $dias[0] es el año\r\n\t\t\t// $dias[1] es el mes\r\n\t\t\t// $dias[2] es el dia\r\n\t\t\t\r\n\t\t\t// mktime toma los datos en el orden (0,0,0, mes, dia, año) \r\n\t\t\t$dias = mktime(0,0,0,$dias[1],$dias[2],$dias[0]);\r\n\t\t\t$edad = (int)((time()-$dias)/31556926 );\r\n\t\t\t$resultadoTitular[0]['edad']=$edad;\r\n\t\t\t\r\n\t\t\t///---FIN FUNCIÓN PARA CALCULAR EDAD----\r\n\t\t\t\r\n\t\t\t$estado[0]='1';\r\n\t\t\t$estado[1]='1';\r\n\t\t\t$estado[2]='1';\r\n\t\t\t$estado[3]='1';\r\n\t\t\t$estado[4]='1';\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS SERVICIOS DEL ASOCIADO TITULAR----------------\r\n\t\t\t\r\n\t\t\t//Por cuota\r\n\t\t\t$resultadoTitularServicios1 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,fme_adhsrv.codigo,fme_adhsrv.parentesco,fme_adhsrv.periodoini,fme_adhsrv.periodofin,fme_adhsrv.motivobaja,fme_adhsrv.documento\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.idmutual \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,fme_adhsrv,tar_srv \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.socnumero = socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.codigo = tar_srv.idmutual\");\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\tif(!$resultadoTitularServicios1)\r\n\t\t\t\t$estado[0]='0';\r\n\t\t\t\r\n\t\t\t//Por tarjeta\r\n\t\t\t$resultadoTitularServicios2 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.codigo AS codigotarsrv, tar_srvadherentes.codigo, tar_srvadherentes.parentesco \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,tar_srv, tar_srvadherentes \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.socnumero = socios.soc_titula \r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.codigo = tar_srv.codigo\");\r\n\t\t\t\r\n\t\t\tif(!$resultadoTitularServicios2)\r\n\t\t\t\t$estado[1]='0';\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS ADHERENTES DEL ASOCIADO TITULAR CON APORTES POR CUOTA----------------\r\n\t\t\t\r\n\r\n\t\t $resultadoAdherentes1 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,fme_adhsrv.codigo,fme_adhsrv.parentesco,fme_adhsrv.periodoini,fme_adhsrv.periodofin,fme_adhsrv.motivobaja,fme_adhsrv.documento\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.idmutual \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,fme_adhsrv,tar_srv \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio'\r\n\t\t\t\t\t\t\t\t\t AND socios.numero_soc != socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.socnumero = socios.numero_soc \r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.codigo = tar_srv.idmutual\");\r\n\t\t\t\r\n\t\t\tif(!$resultadoAdherentes1)\r\n\t\t\t\t$estado[2]='0';\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS ADHERENTES DEL ASOCIADO TITULAR CON APORTES POR TARJETA----------------\r\n\r\n\t\t\t$resultadoAdherentes2 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.codigo AS codigotarsrv, tar_srvadherentes.codigo, tar_srvadherentes.parentesco \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,tar_srv, tar_srvadherentes \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio'\r\n\t\t\t\t\t\t\t\t\t AND socios.numero_soc != socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.socnumero = socios.numero_soc \r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.codigo = tar_srv.codigo\");\t\r\n\r\n\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\r\n\t\t\tif(!$resultadoAdherentes2)\r\n\t\t\t\t$estado[3]='0';\r\n\t\t\r\n\t\t \r\n\t\t\t//---------------CONSULTA QUE DEVUELVE EL LISTADO DE TODAS LAS ASISTENCIAS----------------\r\n\t\t\t\r\n\t\t\t//NOTA: Para que puedan ver si funciona o no hacer la prueba con el siguiente ejemplo:\r\n\t\t\t// En la tabla fme_asistencia modifiquen en cualquier lado y pongan alguno con doctitu = 06948018 (o busquen cualquier DNI de un socio titular y usen ese)\r\n\t\t\t// Cuando prueben el sistema vayan al ver más de Barrionuevo Samuel y van a ver el listado de atenciones que tiene asociado\r\n\t\t\t\r\n\t\t\t$asistencias = $GLOBALS['db']->select(\"SELECT fme_asistencia.doctitu, fme_asistencia.numdoc, fme_asistencia.nombre,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.fec_pedido, fme_asistencia.hora_pedido, fme_asistencia.dessit, fme_asistencia.fec_ate,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.sintomas, fme_asistencia.diagnostico, fme_asistencia.tratamiento, fme_asistencia.hora_aten,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.profesional\r\n\t\t\t\t\t\t\t\t\t FROM fme_asistencia, socios, persona \r\n\t\t\t\t\t\t\t\t\t WHERE soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND numero_soc = soc_titula\r\n\t\t\t\t\t\t\t\t\t AND persona.numdoc = fme_asistencia.doctitu\");\r\n\t\t\t\r\n\t\t\tif(!$asistencias)\r\n\t\t\t\t$estado[4]='0';\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\techo $GLOBALS['twig']->render('/Atenciones/perfil.html', compact('resultadoTitular', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoTitularServicios1', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoTitularServicios2', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoAdherentes1',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoAdherentes2',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'asistencias',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'estado','use','priv'));\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "function ler($nome) {\n $x = 1;\n\t while($x < $this->bd[0][0] && !$this->str_igual($nome, $this->bd[$x][2])) {$x++;}\n if($x >= $this->bd[0][0]) {return 0;}\n //comecando a setar tudo\n $this->id = $this->bd[$x][0];\n $this->maximo = $this->bd[$x][1];\n $this->nome = $this->bd[$x][2];\n $this->categoria = $this->bd[$x][3];\n $this->tipo = $this->bd[$x][4];\n $this->atributo = $this->bd[$x][5];\n $this->specie = $this->bd[$x][6];\n $this->lv = $this->bd[$x][7];\n $this->atk = $this->bd[$x][8];\n $this->def = $this->bd[$x][9];\n $this->preco = $this->bd[$x][10];\n $this->descricao = $this->bd[$x][11];\n $this->img = '../imgs/cards/'.$this->id.'.png';\nreturn 1;\n }", "function modulos($acceso){\n\t$acceso->objeto->ejecutarSql(sql(\"perfil ORDER BY nombreperfil\"));\t\t\n\treturn seguridadPerfil($acceso);\n}", "function sobre_planeacion($minimoMes,$maximoMes,$vigencia,$unidades,$tipo_usuario)\n\t\t{\n\t\t\t//$tipo_usuario ALMACENA EL TIPO DE USUARIO( I O E), EN UN ARRAY, ESTE SE CARGA EN LA PAGINA DE PLANEACION DE PROYECTOS (upHTplaneacionProy.PHP)\t\n//echo $unidades[0].\" - $minimoMes - $maximoMes - $vigencia ********************** <br><br>\";\n\t\t?>\n\n<?\t\t\n\t\t$ban_reg=0; //PERMITE IDENTIFICAR, SI SE ENCONTRO ALMENOS, UN USUARIO SOBRE PLANEADO, DE NO SER ASI, NO SE ENVIA EL CORREO\n\t\t$pTema ='<table width=\"100%\" border=\"0\">\n\t\t <tr class=\"Estilo2\" >\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td width=\"5%\" >Asunto:</td>\n\t\t\t<td >Sobre planeaci&oacute;n de participantes.</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t \n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\">Los siguientes participantes, tienen una dedicaci&oacute;n superior a 1 en los siguientes proyectos:</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t </tr>\n\t\t\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\" >\n\t\t\t\t<table width=\"100%\" border=\"1\" >\n\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td colspan=\"5\"></td>\n\t\t\t\t\t<td colspan=\"'.(($maximoMes-$minimoMes)+1).'\" align=\"center\" >'.$vigencia.'</td>\n\t\t\t\t </tr>\t\t\t\t\n\t\t\t\t\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td>Unidad</td>\n\t\t\t\t\t<td>Nombre</td>\n\t\t\t\t\t<td>Departamento</td>\n\t\t\t\t\t<td>Divisi&oacute;n</td>\n\t\t\t\t\t<td>Proyecto</td>';\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$vMeses= array(\"\",\"Ene\",\"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\"); \n\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t{\n\n\t\t\t\t\t $pTema = $pTema.'<td>'.$vMeses[$m].' </td>';\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t $pTema = $pTema.' </tr>';\n\t\t\t\t$cur_tipo_usu=0; //CURSOR DEL ARRAY, DEL TIPO DE USUARIO \n\t\t\t\tforeach($unidades as $unid)\n\t\t\t\t{\n//tipo_usuario\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"I\")\t\n\t\t\t\t\t{\n\t\t\t\t\t//CONSULTA SI EL USUARIO ESTA SOBREPLANEADO EN ALMENOS, UN MES DURANTE LA VIGENCIA\n\n\t\t\t\t\t//COSNULTA PARA LOS USUARIOS INTERNOS\n\t\t\t\t\t\t\t$sql_planea_usu=\"select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, Usuarios.nombre, \n\t\t\t\t\t\t\t\t\t\t\tUsuarios.apellidos ,Divisiones.nombre as div,Departamentos.nombre as dep\n\t\t\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t\t inner join Usuarios on PlaneacionProyectos.unidad=Usuarios.unidad \n\t\t\t\t\t\t\t\t\t\t\t inner join Departamentos on Departamentos.id_departamento=Usuarios.id_departamento \n\t\t\t\t\t\t\t\t\t\t\t inner join Divisiones on Divisiones.id_division=Departamentos.id_division \n\t\t\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \"; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\t\t//PlaneacionProyectos.id_proyecto,\t\t\t\t\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\t\t\tand esInterno='I'\n\t\t\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,Usuarios.nombre, Usuarios.apellidos,Divisiones.nombre ,Departamentos.nombre \n\t\t\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"E\")\t\n\t\t\t\t\t{\n\t\t\t\t\t\t//COSNULTA PARA LOS USUARIOS EXTERNOS\n\t\t\t\t\t\t$sql_planea_usu=\" select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, TrabajadoresExternos.nombre, \n\t\t\t\t\t\t\t\t\tTrabajadoresExternos.apellidos,'' div, ''dep\n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t inner join TrabajadoresExternos on PlaneacionProyectos.unidad=TrabajadoresExternos.consecutivo \n\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\tand esInterno='E'\n\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,TrabajadoresExternos.nombre, TrabajadoresExternos.apellidos\n\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \t\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$cur_planea_usu=mssql_query($sql_planea_usu);\n//echo $sql_planea_usu.\" ---- <br>\".mssql_get_last_message().\" *** \".mssql_num_rows($cur_planea_usu).\"<br>\";\n\t\t\t\t\twhile($datos__planea_usu=mssql_fetch_array($cur_planea_usu))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ban_reg=1; //SI ENCUENTRA ALMENOS UN USUARIO SOBREPLANEADO, ENVIA EL CORREO\n\t\t\t\t\n\t\t\t\t\t\t//CONSULTA LOS PROYECTOS, EN LOS CUALES EL PARTICIAPENTE HA SIDO PLANEADO, ESTO PARA PODER DOBUJAR LA TABLA DE FORMA CORRECTA\n\t\t\t\t\t\t$sql_uu=\" select distinct(id_proyecto),nombre,codigo,cargo_defecto from (select SUM (hombresMes) as total_hombre_mes ,unidad, mes,PlaneacionProyectos.id_proyecto ,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto \n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos\n\t\t\t\t\t\t\t\t\t\tinner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sql_uu=$sql_uu.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]=0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql_uu=$sql_uu.\"0) and unidad in(\".$unid.\") and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by unidad, mes , PlaneacionProyectos.id_proyecto,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto ) aa \";\n// HAVING (SUM (hombresMes)\t>1\t\n\t\t\t\t\t\t$cur_uu=mssql_query($sql_uu);\n\t\t\t\t\t\t$cant_proy=mssql_num_rows($cur_uu);\n//echo \"<br><BR>---//**************--------------\".$sql_uu.\" \".mssql_get_last_message().\"<br>\".$cant_proy.\"<br>\";\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t<?\n\t\t\t\t//echo $sql_proy_planea.\" ---- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\n\t\t\t\t\t\t$total_planeado= array();\n\t\t\t\t\t\t$cont=0;\n\t\t\t\t\t\twhile($datos_uu=mssql_fetch_array($cur_uu))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($cont==0)\n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\t\t\t\t\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \"> '.$datos__planea_usu[\"unidad\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'.$datos__planea_usu[\"apellidos\"].' '.$datos__planea_usu[\"nombre\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"dep\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"div\"].' </td>';\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" >['.$datos_uu[\"codigo\"].'.'.$datos_uu[\"cargo_defecto\"].'] '. $datos_uu[\"nombre\"].' </td>';\n\n\t\t\t\t\t\t\t//CONSULTA LA INFORMACION DE LO PLANEADO EN CADA MES, DE ACUERDO AL PORYECTO CONSULTADO\n\t\t\t\t\t\t\t$sql_pro=\"select SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.id_proyecto,PlaneacionProyectos.unidad,mes\n\t\t\t\t\t\t\t\t\t\t from PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and PlaneacionProyectos.unidad=\".$unid.\" and id_proyecto=\".$datos_uu[\"id_proyecto\"].\" and mes in(\";\n\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" 0) and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by PlaneacionProyectos.id_proyecto ,PlaneacionProyectos.unidad ,mes order by (mes) \";\n// HAVING (SUM (hombresMes))>1\n\t\t\t\t\t\t\t$cur_proy_planea=mssql_query($sql_pro);\n//\t\t\t\techo $sql_pro.\" --22222222222-- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\t\t\t$m=$minimoMes;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($datos_proy_planea=mssql_fetch_array($cur_proy_planea))\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tfor ($m;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($datos_proy_planea[\"mes\"]==$m)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]+=( (float) $datos_proy_planea[\"total_hombre_mes\"]);\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" align=\"right\" >'.((float) $datos_proy_planea[\"total_hombre_mes\"] ).'</td>';\n\n\t\t\t\t\t\t\t\t\t\t$m=$datos_proy_planea[\"mes\"];\n\t\t\t\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t\t\t\t\tbreak;\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\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp; </td>';\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\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$m--;\n\t\t\t\t\t\t\tfor ($m++;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t$cont++;\n\t\t\t\t\t\t\tunset($datos_proy_planea);\n\n\t\t\t\t\t\t\t $pTema = $pTema.' </tr>';\n\n\t\t\t\t//\t\t\techo $datos_proy_planea[\"total_hombre_mes\"].\"<br>\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\n\t\t\t\t\t\t<td colspan=\"4\" >&nbsp;</td>\n\n\t\t\t\t\t\t<td>Total planeaci&oacute;n</td>';\n\n\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($total_planeado[$m]==0)\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>'.$total_planeado[$m].'</td>';\n\t\t\t\t\t\t}\n \n\t\t\t\t\t $pTema = $pTema.' </tr>\n\t\t\t\t\t <tr >\n\t\t\t\t\t\t<td colspan=\"17\">&nbsp;</td>\n\t\t\t\t\t </tr>\t';\n\n\t\t\t\t\t}\n\t\t\t\t\t$cur_tipo_usu++;\n\t\t\t\t}\n\t\t\t\t$pTema = $pTema.'\n\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t </tr>\n\t\t<tr class=\"Estilo2\"><td colspan=\"2\" >Para consultar en detalle la planeaci&oacute;n de un participante, en un proyecto especifico, utilice el reporte Usuarios por proyecto, accediendo a el, atravez del boton Consolidados por divisi&oacute;n, ubicado en la parte superior de la pagina principal de la planeaci&oacute;n por proyectos. </td></tr>\n\t\t</table>';\n\n\t\t/*\n\t\t\t\t//consulta la unidad del director y el coordinador de proyecto\n\t\t\t\t$sql=\"SELECT id_director,id_coordinador FROM HojaDeTiempo.dbo.proyectos where id_proyecto = \" . $cualProyecto.\" \" ;\n\t\t\t\t$eCursorMsql=mssql_query($sql);\n\t\t\t\t$usu_correo= array(); //almacena la unidad de los usuarios a los que se le enviara el correo\n\t\t\t\t$i=1;\n\t\t\t\twhile($datos_dir_cor=mssql_fetch_array($eCursorMsql))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_coordinador\"];\n\t\t\t\t\t$i++;\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_director\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\n\t\t\t\t//consulta la unidad porgramadores y ordenadores de gasto\t\t\t\n\t\t//select unidad from HojaDeTiempo.dbo.Programadores where id_proyecto=\".$cualProyecto.\" union\n\t\t\t\t$sql_pro_orde=\" select unidadOrdenador from GestiondeInformacionDigital.dbo.OrdenadorGasto where id_proyecto=\".$cualProyecto;\n\t\t\t\t$cur_pro_orde=mssql_query($sql_pro_orde);\n\t\t\t\twhile($datos_pro_orde=mssql_fetch_array($cur_pro_orde))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_pro_orde[\"unidad\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\t\t\t\n\t\t\n\t\t\t\t$i=0;\n\t\t\t\t//consulta el correo de los usuarios(director,cordinador,ordenadroes de G, y programadores) asociados al proyecto\n\t\t\t\t$sql_usu=\" select email from HojaDeTiempo.dbo.Usuarios where unidad in(\";\n\t\t\t\tforeach($usu_correo as $unid)\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$sql_usu=$sql_usu.\" \".$unid;\t\t\n\t\t\t\t\t\t$i=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" ,\".$unid;\n\t\t\t\t}\n\t\t\t\t$sql_usu=$sql_usu.\") and retirado is null\";\n\t\t\t\t$cur_usu=mssql_query($sql_usu);\t\t\t\t\n\t\t\n\t\t\t\t//se envia el correo a el director, cordinador, orenadores de gasto, y programadores del proyecto\t\n\t\t\t\twhile($eRegMsql = mssql_fetch_array($cur_usu))\n\t\t\t\t{\t\t\n\t\t\t\t $miMailUsuarioEM = $eRegMsql[email] ;\n\t\t\t\n\t\t\t\t //***EnviarMailPEAR\t\n\t\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\n\t\t\t\n\t\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\n\t\t\t\n\t\t\t\t //***FIN EnviarMailPEAR\n\t\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t\n\t\t\t\t}\n\t\t*/\n\t\t\tif($ban_reg==1) //SEW ENVIA EL CORREO SI EXISTE ALMENOS UN USUARIO SOBREPLANEADO\n\t\t\t{\n\t\t///////////////////////////**********************************************************PARA QUITAR\n\t\t\t $miMailUsuarioEM = 'carlosmaguirre'; //$eRegMsql[email] ;\t\n\t\t\t\t$pAsunto='Sobre planeaci&oacute;n de proyectos';\n\t\t\t //***EnviarMailPEAR\t\n\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\t\n\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\t\n\t\t\t //***FIN EnviarMailPEAR\n\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t}\n\t\t\n\t\t?>\n\n<?\n}", "public function buscar($objeto){\r\n\t}", "public function geraClasseControle(){\n # Abre o template da classe Controle e armazena conteudo do modelo\t\t\n $modelo = Util::getConteudoTemplate('class.Modelo.Controle.tpl');\n\n # Abre o template dos metodos de cadastros e armazena conteudo do modelo\n $modeloCAD = Util::getConteudoTemplate('metodoCadastra.tpl');\n $modeloExclui = Util::getConteudoTemplate('metodoExclui.tpl');\n $modeloSelecionar = Util::getConteudoTemplate('metodoSeleciona.tpl');\n $modeloGetAll = Util::getConteudoTemplate('metodoGetAll.tpl'); \n $modeloConsultar = Util::getConteudoTemplate('metodoConsulta.tpl');\n $modeloAlterar = Util::getConteudoTemplate('metodoAltera.tpl');\n\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n\n # Varre a estrutura das tabelas\n $aRequire = $aCadastro = $aExclui = $aSelecionar = $aGetAll = $aAlterar = $aConsultar = array();\n $copiaModelo = $modelo;\n //print_r($aBanco);exit;\n foreach($aBanco as $aTabela){\n $aPKDoc = $aPK = array(); \n foreach($aTabela as $oCampo){\n if((string)$oCampo->CHAVE == '1'){\n $aPKDoc[] = \"\\t * @param integer \\$\".(string)$oCampo->NOME;\n $aPK[] = \"\\$\".(string)$oCampo->NOME;\n }\n }\n\n # Montar a Lista de DOC do metodo selecionar\n $listaPKDoc = join(\"\\n\", $aPKDoc);\n $listaPK = join(\",\", $aPK);\n\n # Recupera o nome da tabela e gera os valores a serem gerados\n $nomeClasse = ucfirst($this->getCamelMode($aTabela['NOME']));\n $copiaModeloCAD = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloCAD);\n $copiaModeloExclui = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloExclui);\n $copiaModeloSelecionar = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloSelecionar);\n $copiaModeloGetAll = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloGetAll);\n $copiaModeloAlterar = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloAlterar);\n $copiaModeloConsultar = str_replace('%%NOME_CLASS%%', $nomeClasse, $modeloConsultar);\n\n $montaObjeto = $this->retornaObjetosMontados($aTabela['NOME']);\n $montaObjetoBD = $this->retornaObjetosBDMontados($aTabela['NOME']);\n\n $copiaModeloCAD = str_replace('%%MONTA_OBJETO%%', $montaObjeto, $copiaModeloCAD);\n $copiaModeloCAD = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloCAD);\n $copiaModeloExclui = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloExclui);\n $copiaModeloSelecionar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloSelecionar);\n $copiaModeloSelecionar = str_replace('%%DOC_LISTA_PK%%', $listaPKDoc, $copiaModeloSelecionar);\n $copiaModeloSelecionar = str_replace('%%LISTA_PK%%', \t$listaPK, $copiaModeloSelecionar);\n $copiaModeloGetAll = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloGetAll);\n $copiaModeloAlterar = str_replace('%%MONTA_OBJETO%%', $montaObjeto, $copiaModeloAlterar);\n $copiaModeloAlterar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloAlterar);\n $copiaModeloConsultar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloConsultar);\n\n $aRequire[] = \"require_once(dirname(__FILE__).'/bd/class.$nomeClasse\".\"BD.php');\";\n $aCadastro[] = $copiaModeloCAD;\n $aExclui[] = $copiaModeloExclui;\n $aSelecionar[] = $copiaModeloSelecionar;\n $aGetAll[] = $copiaModeloGetAll;\n $aAlterar[] = $copiaModeloAlterar;\n $aConsultar[] = $copiaModeloConsultar;\n }\n\n # Monta demais valores a serem substituidos\n $listaRequire = join(\"\\n\", $aRequire);\n $listaCadastro = join(\"\\n\\n\", $aCadastro);\n $listaExclui = join(\"\\n\\n\", $aExclui);\n $listaSelecionar = join(\"\\n\\n\", $aSelecionar);\n $listaGetAll = join(\"\\n\\n\", $aGetAll);\n $listaAlterar = join(\"\\n\\n\", $aAlterar);\n //print \"<pre>\"; print_r($aAlterar); print \"</pre>\"; \n //print \"<pre>\"; print_r($aConsultar); print \"</pre>\"; \n $listaConsultar = join(\"\\n\\n\", $aConsultar);\n\n # Substitui todas os parametros pelas variaveis ja processadas\n $copiaModelo = str_replace('%%LISTA_REQUIRE%%',\t\t $listaRequire, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_CADASTRA%%',\t $listaCadastro, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_EXCLUI%%',\t $listaExclui, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_SELECIONAR%%',\t $listaSelecionar, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_CARREGAR_COLECAO%%', $listaGetAll, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_ALTERA%%',\t $listaAlterar, $copiaModelo);\n $copiaModelo = str_replace('%%METODOS_CONSULTA%%',\t $listaConsultar, $copiaModelo);\n\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\n if(!file_exists($dir)) mkdir($dir);\n\n $fp = fopen(\"$dir/class.Controle.php\",\"w\");\n fputs($fp,$copiaModelo);\n\n # ============ Adicionando Classes de core/Config =========\n $modeloConfig = Util::getConteudoTemplate(\"Modelo.Config.\".$aBanco['SGBD'].\".tpl\");\n $modeloConfig = str_replace('%%DATABASE%%', $this->projeto, $modeloConfig);\n \n $fpConfig = fopen(\"$dir/core/config.ini\",\"w\"); \t\n fputs($fpConfig, $modeloConfig); \n fclose($fpConfig);\n\n copy(dirname(__FILE__).\"/core/class.Seguranca.php\", \"$dir/class.Seguranca.php\");\n copy(dirname(__FILE__).\"/class.Util.php\",\t \"$dir/core/class.Util.php\");\n copy(dirname(__FILE__).\"/class.Conexao.php\", \"$dir/core/class.Conexao.php\");\n \n return true;\n }", "function todas($suscriptor, $orden) {\n $db = new MySQL(Sesion::getConexion());\n $sql = \"SELECT * FROM `facturacion_lecturas` WHERE `suscriptor` ='\" . $suscriptor . \"' ORDER BY `fecha` \" . strtoupper($orden) . \";\";\n $consulta = $db->sql_query($sql);\n $filas = array();\n while ($fila = $db->sql_fetchrow($consulta)) {\n array_push($filas, $fila);\n }\n return($filas);\n }", "function selmundat($xent, &$area, &$habit, &$freg, &$dia_fer, &$des_fer ) {\n\t$sqls=\"select * from munp1.municip where cod = '$xent'\";\n\t$ress=mysql_db_query(\"munp1\",$sqls); //\n\t\tif ($ress) {\n\t\t\t\t$regs=mysql_fetch_array($ress);\n\t\t\t\tif ( $regs ) {\n\t\t\t\t\t\t\t\t$area = $regs[\"med_area\"];\n\t\t\t\t\t\t\t\t$habit = $regs[\"num_habit\"];\n\t\t\t\t\t\t\t\t$freg = $regs[\"num_freg\"];\n\t\t\t\t\t\t\t\t$dia_fer = $regs[\"dat_fermun\"];\n\t\t\t\t\t\t\t\t$des_fer = $regs[\"des_fermun\"];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmysql_free_result($ress);\n\t\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t\t}\n \t\t\t\t\telse return 0;\n\t\t }\n// printf(\"vai sair 0\");\nreturn 0;\n}", "function formulaires_editer_feuillederoute_charger_dist() {\n\t$valeurs = array( '_texte' => '' );\n\tlire_fichier_securise(_DIR_IMG . 'feuillederoute.php',$contenu);\n\t$contenu = @unserialize($contenu);\n\tif($contenu){\n\t\t$valeurs['_texte'] = $contenu;\n\t}\n\treturn $valeurs;\n}", "function getDatosDeGrupoSolidario(){}", "function PARAMETROS() {\r\n\t$sql = \"SELECT * FROM mastparametros\";\r\n\t$query_parametro = mysql_query($sql) or die ($sql.mysql_error());\r\n\twhile ($field_parametro = mysql_fetch_array($query_parametro)) {\r\n\t\t$id = $field_parametro['ParametroClave'];\r\n\t\t$_PARAMETRO[$id] = $field_parametro['ValorParam'];\r\n\t}\r\n\treturn $_PARAMETRO;\r\n}", "function MESES_ANTIGUEDAD($_ARGS) {\r\n\t$fingreso = FECHA_INGRESO($_ARGS);\r\n\t$periodo_actual = $_ARGS['HASTA'];\r\n\tlist($anios, $meses, $dias) = TIEMPO_DE_SERVICIO(formatFechaDMA($fingreso), formatFechaDMA($periodo_actual));\r\n\t$cantidad = $meses + ($anios * 12);\r\n\treturn $cantidad;\r\n}", "function recorrerMatrizPlaneServicios() {\n\t\t\t\n\t\t\t\tglobal $res,$matriz;\n\t\t\t\t\tfor($pos=0;$pos < mysql_num_rows($res); $pos++) {\n\n\t\t\t\t\t$nombreplan= $matriz[\"nombreplan\"][$pos] ;\t\n\t\t\t\t\t$nombreplan = eliminarCaracteresEspeciales($nombreplan)\t;\n\t\t\t\t\t$autoid = $matriz[\"autoid\"][$pos];\n\t\t\t\t\t$autoid = str_replace(\"A\",\"\",$autoid);\n\t\t\t\t\t$autoid = str_replace(\"a\",\"\", $autoid);\n\t\t\t\t\t$compania = $_SESSION[\"compania\"];\n\t\t\t\t\t$ambito = \"\";\n\t\t\t\t\t$clase = \"CUPS\";\n\t\t\t\t\n\t\t\t\t\tinsertarPlaneServicios($nombreplan, $autoid, $compania, $ambito, $clase);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t}", "function cariPosisi($batas){\nif(empty($_GET[halaman])){\n\t$posisi=0;\n\t$_GET[halaman]=1;\n}\nelse{\n\t$posisi = ($_GET[halaman]-1) * $batas;\n}\nreturn $posisi;\n}", "function getSemaforo() {\n\t\tglobal $usr;\n\n\t\tif ($this->extra[\"imprimir\"]) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telseif ($usr->orientacion_semaforo == 0) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telse {\n\t\t\t$this->resultado = $this->__getSemaforoInvertido();\n\t\t}\n\t}", "function metodo() {\n // Funcion normal\n }", "function recuperaDatosMetas(){\n $folio=0;\n $tmp=array();\n if(trim($this->data['folio']) != \"\"){\n $tmp=explode('-',$this->data['folio']);\n $folio= $tmp[0] + 0;\n if($folio > 0){\n $this->arrayDatos=$this->regresaMetas($folio);\n }\n }\n }", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "function listaFuncionalidades(){\n\t$lista = null;//array para almacenar las funcionalidades\n\t$num=0; //variable para indexar el array lista\n\t$USU_GRUPO = new USU_GRUPO_Model($_SESSION[\"login\"], '');\n\t$listaGrupos = $USU_GRUPO->listagrupoUsuario();\n\tif($listaGrupos == null){\n\t\treturn false;\n\t}\n\tforeach ($listaGrupos as $key => $IdGrupo) {\n\n\t\t$PERMISO = new PERMISO_Model($IdGrupo, '', '', '', '', '', '','');\n\t\t$resultado = $PERMISO->funcionalidadesGrupo();\n\t\t$num_rows = mysqli_num_rows($resultado);\n\t\tif($num_rows > 0){\n\t\t\twhile($row = mysqli_fetch_array($resultado)){\n\t\t\t\t$lista[$num] =$row[\"IdFuncionalidad\"];\n\t\t\t\t$num++;\n\t\t\t}\n\t\treturn $lista;\n\t\t}\n\t}\n\treturn null;\n\n}", "function agrega_emergencia_ctraslado (\n $_fecha,$_telefono,\n $_plan,$_horallam,\n $_socio,$_nombre,\n $_tiposocio,$_edad,$_sexo,\n $_identificacion,$_documento,\n $_calle,$_numero,\n $_piso,$_depto,\n $_casa,$_monoblok,\n $_barrio,$_entre1,\n $_entre2,$_localidad,\n $_referencia,$_zona,\n $_motivo1,\n $_color,\n $_observa1,$_observa2,\n $_opedesp ,\n\t\t\t\t\t\t\t$_nosocio1 , $_noedad1 , $_nosexo1, $_noiden1 , $_nodocum1 ,\n\t\t\t\t\t\t\t$_nosocio2 , $_noedad2 , $_nosexo2, $_noiden2 , $_nodocum2 ,\n\t\t\t\t\t\t\t$_nosocio3 , $_noedad3 , $_nosexo3, $_noiden3 , $_nodocum3 ,\n\t\t\t\t\t\t\t$_nosocio4 , $_noedad4 , $_nosexo4, $_noiden4 , $_nodocum4 ,\n\t\t\t\t\t\t\t$_nosocio5 , $_noedad5 , $_nosexo5, $_noiden5 , $_nodocum5 ,\n $_bandera_nosocio1 ,$_bandera_nosocio2 ,$_bandera_nosocio3 ,$_bandera_nosocio4 ,\n\t\t\t\t\t\t\t$_bandera_nosocio5 \n )\n{\n $moti_explode ['0'] = substr($_motivo1, 0, 1);\n $moti_explode ['1'] = substr($_motivo1, 1, 2);\n\n // CALCULO DE FECHA Y DIA EN QUE SE MUESTRA EL TRASLADO EN PANTALLA\n $fecha_aux = explode (\".\" ,$_fecha );\n $hora_aux = explode (\":\" ,$_horallam);\n\n $_dia_tr =$fecha_aux[2];\n $_mes_tr =$fecha_aux[1];\n $_anio_tr =$fecha_aux[0];\n $_hora_tr =$hora_aux[0];\n $_min_tr =$hora_aux[1];\n $_param_tr =12; // parametro para mostrar en pantalla\n \n $traslado_aux = restaTimestamp ($_dia_tr , $_mes_tr, $_anio_tr , $_hora_tr , $_min_tr , $_param_tr);\n //***********************************************************\n $_plan = $_plan + 0;\n $insert_atencion = '\n insert into atenciones_temp\n (fecha,telefono,plan,\n horallam,socio,\n nombre,tiposocio,\n edad,sexo,\n identificacion,documento,\n calle,numero,\n piso,depto,casa,\n monoblok,barrio,\n entre1,entre2,\n localidad,referencia,\n zona,motivo1,\n motivo2,\n color,observa1,\n observa2,operec,traslado_aux ,fechallam)\n\n values\n\n (\n \"'.$_fecha.'\" , \"'.$_telefono.'\" , \"'.$_plan.'\" ,\n \"'.$_horallam.'\",\"'.$_socio.'\",\n \"'.utf8_decode($_nombre).'\",\"'.$_tiposocio.'\",\n \"'.$_edad.'\",\"'.$_sexo.'\",\n \"'.utf8_decode($_identificacion).'\",\"'.$_documento.'\",\n \"'.utf8_decode($_calle).'\",\"'.utf8_decode($_numero).'\",\n \"'.utf8_decode($_piso).'\",\"'.utf8_decode($_depto).'\",\n \"'.utf8_decode($_casa).'\",\"'.utf8_decode($_monoblok).'\",\n \"'.utf8_decode($_barrio).'\",\"'.utf8_decode($_entre1).'\",\n \"'.utf8_decode($_entre2).'\",\"'.utf8_decode($_localidad).'\",\n \"'.utf8_decode($_referencia).'\",\"'.$_zona.'\",\n '.$moti_explode[0].',\n '.$moti_explode[1].','.$_color.',\n \"'.utf8_decode($_observa1).'\",\"'.utf8_decode($_observa2).'\",\n \"'.utf8_decode($_opedesp).'\", \"'.$traslado_aux.'\" , \"'.$_fecha.'\"\n )\n ';\n\n // insert de la emergencia en atenciones temp\n global $G_legajo , $parametros_js;\n $result = mysql_query($insert_atencion);\n if (!$result) {\n $boton = '<input type=\"button\" value=\"Error! modificar y presionar nuevamente\"\n\t\t\t onclick=\" check_emergencia(\n\t\t\t document.formulario.muestra_fecha.value,document.formulario.telefono.value,\n\t\t\t document.formulario.i_busca_plan.value,document.formulario.hora.value,\n\t\t\t document.formulario.td_padron_idpadron.value,document.formulario.td_padron_nombre.value,\n\t\t\t document.formulario.td_padron_tiposocio.value,document.formulario.td_padron_edad.value,\n\t\t\t document.formulario.td_padron_sexo.value,document.formulario.td_padron_identi.value,\n\t\t\t document.formulario.td_padron_docum.value,document.formulario.td_padron_calle.value,\n\t\t\t document.formulario.td_padron_nro.value,document.formulario.td_padron_piso.value,\n\t\t\t document.formulario.td_padron_depto.value,document.formulario.td_padron_casa.value,\n\t\t\t document.formulario.td_padron_mon.value,document.formulario.td_padron_barrio.value,\n\t\t\t document.formulario.td_padron_entre1.value,document.formulario.td_padron_entre2.value,\n\t\t\t document.formulario.td_padron_localidad.value,document.formulario.referencia.value,\n\t\t\t document.formulario.s_lista_zonas.value,document.formulario.i_busca_motivos.value,\n\t\t\t document.formulario.s_lista_colores.value,document.formulario.obs1.value,\n\t\t\t document.formulario.obs2.value,'.$G_legajo.' ,\n\t\t\t document.formulario.check_traslado.value , document.formulario.dia_traslado.value ,\n\t\t\t document.formulario.mes_traslado.value , document.formulario.anio_traslado.value ,\n\t\t\t document.formulario.hora_traslado.value , document.formulario.minuto_traslado.value ,\n\t\t\t\t\t '.$parametros_js.' \n \t );\"/> ';\n \n }else \n {\n $boton = '<input type=\"button\" value=\"CERRAR CON EXITO\" onclick=\"window.close();\"/>';\n \n\n\n\t // recupero id para hacer altas de clientes no apadronados\n\t $consulta_id = mysql_query ('select id from atenciones_temp\n\t where fecha = \"'.$_fecha.'\" and plan = \"'.$_plan.'\"\n\t and horallam = \"'.$_horallam.'\" and nombre = \"'.$_nombre.'\"\n\t and tiposocio = \"'.$_tiposocio.'\" and motivo1 = '.$moti_explode[0].'\n\t and motivo2 = '.$moti_explode[1]);\n\n\n\t $fetch_idatencion=mysql_fetch_array($consulta_id);\n\n\n\t\tif ($_bandera_nosocio1 == 1) { $insert_nosocio1 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio1.'\" , \"'.$_noedad1.'\" , \"'.$_nosexo1.'\" , \"'.$_noiden1.'\" , \"'.$_nodocum1.'\" ) '); }\n\t\tif ($_bandera_nosocio2 == 1) { $insert_nosocio2 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio2.'\" , \"'.$_noedad2.'\" , \"'.$_nosexo2.'\" , \"'.$_noiden2.'\" , \"'.$_nodocum2.'\" ) '); }\n\t\tif ($_bandera_nosocio3 == 1) { $insert_nosocio3 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio3.'\" , \"'.$_noedad3.'\" , \"'.$_nosexo3.'\" , \"'.$_noiden3.'\" , \"'.$_nodocum3.'\" ) '); }\n\t\tif ($_bandera_nosocio4 == 1) { $insert_nosocio4 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio4.'\" , \"'.$_noedad4.'\" , \"'.$_nosexo4.'\" , \"'.$_noiden4.'\" , \"'.$_nodocum4.'\" ) '); }\n\t\tif ($_bandera_nosocio5 == 1) { $insert_nosocio5 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio5.'\" , \"'.$_noedad5.'\" , \"'.$_nosexo5.'\" , \"'.$_noiden5.'\" , \"'.$_nodocum5.'\" ) '); }\n }\n // mysql_query($insert_atencion);\n $insert_atencion='';\n //$insert_atencion='';\n //instanciamos el objeto para generar la respuesta con ajax\n $respuesta = new xajaxResponse();\n //escribimos en la capa con id=\"respuesta\" el texto que aparece en $salida\n $respuesta->addAssign(\"mensaje_agrega\",\"innerHTML\",$boton);\n\n //tenemos que devolver la instanciaci�n del objeto xajaxResponse\n return $respuesta;\n}", "function fTraeAuxiliar($pTip, $pCod){\n global $db, $cla, $olEsq;\n $slDato= substr($olEsq->par_Clave,4,2);\n if ($slDato == \"CL\") { // el movimiento se asocia al Cliente\n $iAuxi = $cla->codProv;\n }\n else {\n $iAuxi = NZ(fDBValor($db, \"fistablassri\", \"tab_txtData3\", \"tab_codTabla = '\" . $pTip . \"' AND tab_codigo = '\" . $pCod . \"'\" ),0);\n }\n//echo \"<br>aux\" . $olEsq->par_Clave. \" / \" .$slDato . \" $iAuxi <br>\";\n error_log(\" aux: \" . $iAuxi. \" \\n\", 3,\"/tmp/dimm_log.err\");\t\n return $iAuxi;\n}", "function valorLlamada($tipo)\n{\n if ($tipo == \"internacional\")\n {\n return 2;\n }\n else if ($tipo == \"larga\")\n {\n return 0.75;\n }\n\n return 0.2; // corta\n}", "function retorno($nombre,$apellido)\n {\n if( is_string($nombre) && is_string($apellido) )\n {\n //filter_vars()\n $dame = $nombre. \"<br>\". $apellido;\n return $dame;\n }\n else\n {\n return \"Ingresaste mal los datos. tienen que ser caractéres alfabéticos\";\n }\n\n }", "function getResult(){\n\t\t\n\t\t$cx\t\t= new Connexion();\n\t\t$managerVisuel\t= new ManagerVisuel($cx);\n\t\t$managerLike\t= new ManagerLike($cx);\n\t\t$managerFavoris\t= new ManagerFavoris($cx);\n\n\t\t$transformDate = new DateTimeTransform();\n\n\t\t$http = new HTTPRequest();\n\t\t$offset = $http->getDataPost('offset');\n\t\t$values = $http->getDataPost('select');\n\t\t$exp = explode(\",\", $values);\n\n\t\tforeach ($exp as $value) {\n\t\t\tif(preg_match('/^theme-/', $value)){\n\t\t\t\t$theme[] = preg_replace('/[a-zA-Z-]/', '', $value);\n\t\t\t}\n\t\t\tif(preg_match('/^logiciel-/', $value)){\n\t\t\t\t$log[] = preg_replace('/[a-zA-Z-]/', '', $value);\n\t\t\t}\n\t\t}\n\t\tif(isset($theme)){\n\t\t\t$themes = implode(',', $theme);\n\t\t}\n\t\tif(isset($log)){\n\t\t\t$logs = implode(',', $log);\n\t\t}\n\t\t\n\t\t\n\n\t\tif((isset($themes)) || (isset($logs))){\n\n\t\t\tif(!isset($logs)){\n\t\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChainesByThemes($offset,$themes);\n\t\t\t}else if(!isset($themes)){\n\t\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChainesByLogs($offset,$logs);\n\t\t\t}else{\n\t\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChainesByCat($offset,$themes,$logs);\n\t\t\t}\n\n\t\t}else{\n\t\t\t$tabVisuChaine = $managerVisuel->selectVisuelsAndChaines($offset);\n\t\t}\n\n\t\tif(!is_null($tabVisuChaine)){\n\t\t\tforeach ($tabVisuChaine as $visuel) {\n\n\t\t\t\t$visuel->{'3'} = $transformDate->transformDateTime($visuel->{'3'});\n\t\t\t\tif(isset($_SESSION['auth'])){\n\t\t\t\t\t$like = $managerLike->likePostExist($_SESSION['auth'][\"id\"],$visuel->getIdVisuel());\n\t\t\t\t\t$fav = $managerFavoris->favorisVisuelExist($_SESSION['auth'][\"id\"],$visuel->getIdVisuel());\n\t\t\t\t\t$tabLike[] = $like;\n\t\t\t\t\t$tabFav[] = $fav;\n\t\t\t\t}\n\t\t\t\t$countLikes[] = $managerLike->countLikeVisuel($visuel->getIdVisuel());\n\t\t\t}\n\t\t\tif(isset($_SESSION['auth'])){\n\t\t\t\t$result[\"user\"] = $_SESSION['auth']['id'];\n\t\t\t\t$result[\"favoris\"] = $tabFav;\n\t\t\t\t$result[\"likes\"] = $tabLike;\n\t\t\t}\n\t\t\t$result[\"countLikes\"] = $countLikes;\n\t\t\t$result[\"visu\"] = $tabVisuChaine;\n\t\t}else{\n\t\t\t$result[\"visu\"] = \"Aucun visuel trouvé\";\n\t\t}\n\t\t$cx->close();\n\t\techo json_encode($result);\n\t\texit();\n\t}", "function get_seguro($mes='',$anio='',$id_sucursal=''){\n\t\t$sQuery=\"SELECT \n\t\t\t\tcontrol_salida_extra.*,\n\t\t\t\ttransportista.id as t_id, transportista.nombre as t_nombre , transportista.apellido as t_apellido\n\t\t\t\tFROM control_salida_extra\n\t\t\t\tInner Join transportista ON control_salida_extra.id_transportista = transportista.id\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWHERE control_salida_extra.tipo=1 AND control_salida_extra.status<>'2' \";\n\t\t\n\t\tif($mes) {\t$sQuery.=\" AND month(control_salida_extra.fecha)='$mes' \";\t}\n\t\tif($anio) {\t$sQuery.=\" AND year(control_salida_extra.fecha)='$anio' \";\t}\n\t\tif($id_sucursal) {\t$sQuery.=\" AND control_salida_extra.id_sucursal = '$id_sucursal' \";\t}\n\t\t\n\t\t$sQuery.=\" ORDER BY control_salida_extra.id DESC \";\n\t//\techo ($sQuery);\n\t\t\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\n\t\t\n\t\t\t\t\n\t}", "function cariPosisi($batas){\nif(empty($_GET['halpengumuman'])){\n\t$posisi=0;\n\t$_GET['halpengumuman']=1;\n}\nelse{\n\t$posisi = ($_GET['halpengumuman']-1) * $batas;\n}\nreturn $posisi;\n}", "public function ConsultarSoporteMatricula($param) {\n extract($param);\n $resultado = array();\n $registro = array();\n $sql = \"CALL SPCONSULTARCARGAMASIVASM($tipodocumento,$busqueda);\";\n $rs=null;\n $conexion->getPDO()->query(\"SET NAMES 'utf8'\");\n $host= $_SERVER[\"HTTP_HOST\"];\n if ($rs = $conexion->getPDO()->query($sql)) {\n if ($filas = $rs->fetchAll(PDO::FETCH_ASSOC)) {\n foreach ($filas as $fila) {\n foreach ($fila as $key => $value) {\n $rutaFuente= \"<a href='/\".$fila['RutaFuente'].\"'>Descargar Archivo Fuente</a>\";\n $rutaEscaneado= \"<a href='/\".$fila['RutaSoporte'].\"'>Descargar Archivo Soporte</a>\";\n array_push($registro, $fila['TipoIdentificacion'],$fila['NumeroIdentificacion'],$fila['Nombres'],$fila['Fecha'],$fila['Salon'],$rutaFuente, $rutaEscaneado ,$value);\n \n array_push($registro, $value);\n }\n array_push($resultado, $registro);\n $registro = array();\n }\n }\n } else {\n $registro = 0;\n }\n echo json_encode($resultado);\n }", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "public function seminarioClase( ) {\n\n\n AccesoGui::$guiSistema->esperarInicioSistema();\n\n AccesoControladoresDispositivos::$ctrlLuz->setLucesEscenarios(LuzTecho::$ESCENARIO_SEMINARIO_CLASE);\n AccesoControladoresDispositivos::$ctrlMatrizVGA->asignarAudio(1,1);\n AccesoControladoresDispositivos::$ctrlAutomata->encenderLuzSala(Automata::$intensidades[\"maxima\"]);\n usleep(500000);\n ConexionServidorCliente::$ctrlGuiPantallas->subirPantallaElectrica();\n AccesoControladoresDispositivos::$ctrlFoco->apagar();\n ConexionServidorCliente::$ctrlGuiPlasmas->encender();\n\t//Comentado mientras se repara el visor de opacos.\n //ConexionServidorCliente::$ctrlGuiCamaraDocumentos->camaraDocumentosApagar();\n ConexionServidorCliente::$ctrlGuiProyectores->apagarPizarra();\n ConexionServidorCliente::$ctrlGuiProyectores->apagarCentral();\n AccesoControladoresDispositivos::$ctrlMesaMezclas->preset90();\n\tAccesoControladoresDispositivos::$ctrlMesaMezclas->desactivarMicPresidencia(\"M1\");\n ConexionServidorCliente::$ctrlGuiPantallas->pipEnPantallaPresi();\n AccesoGui::$guiEscenarios->escenarioSeminario();\n AccesoGui::$guiMenus->menuPrincipal(true);\n AccesoGui::$guiSistema->mostrarMenu();\n AccesoGui::$guiEscenarios->enviarEstadoVideoconferencia();\n\tAccesoControladoresDispositivos::$ctrlProyectores->estadoCentral();\n\tAccesoControladoresDispositivos::$ctrlProyectores->estadoPizarra();\n }", "function constroe_seguidor_usuario($dados, $modo){\n\n// separa dados\n$idusuario = $dados['idusuario'];\n$idamigo = $dados['idamigo'];\n$data = $dados['data'];\n\n// valida idamigo\nif($idusuario == null or $idamigo == null){\n\n// retorno nulo\nreturn null;\n\n};\n\n// valida modo\nif($modo == 2){\n\n$idamigo = $idusuario;\n\n};\n\n// url de perfil de usuario\n$url_perfil_usuario = retorne_url_perfil_usuario($idamigo);\n\n// imagem de usuario\n$imagem_usuario = constroe_imagem_perfil($idamigo, false);\n\n// nome do usuario\n$nome_usuario = retorne_nome_usuario($idamigo);\n$nome_usuario = \"<a href='$url_perfil_usuario' title='$nome_usuario'>$nome_usuario</a>\";\n\n// campo seguir\n$campo_seguir = campo_seguir_usuario($idamigo);\n\n// codigo html\n$codigo_html = \"\n<div class='classe_div_seguidor_usuario'>\n\n<div class='classe_div_seguidor_usuario_imagem'>\n$imagem_usuario\n</div>\n\n<div class='classe_div_seguidor_usuario_nome'>\n$nome_usuario\n</div>\n\n<div class='classe_div_seguidor_usuario_botao'>\n$campo_seguir\n</div>\n\n</div>\n\";\n\n// retorno\nreturn $codigo_html;\n\n}", "function cariPosisi($batas){\nif(empty($_GET['haldatasiswa'])){\n\t$posisi=0;\n\t$_GET['haldatasiswa']=1;\n}\nelse{\n\t$posisi = ($_GET['haldatasiswa']-1) * $batas;\n}\nreturn $posisi;\n}", "function cariPosisi($batas){\nif(empty($_GET['halaman'])){\n\t$posisi=0;\n\t$_GET['halaman']=1;\n}\nelse{\n\t$posisi = ($_GET['halaman']-1) * $batas;\n}\nreturn $posisi;\n}", "function desplegarCampoActualizar(Detallesmantenimientosdetablas $detalle,$numeroGrid,$valor=''){\n $size=$detalle->getTamanoCampo();\n $max=$detalle->getTamanoMaximoCampo();\n $javascript=$detalle->getJavascriptDesdeCampo();\n $valorPorDefecto=$valor;\n $id=$detalle->getIdCampo();\n $tipo=$detalle->getIdTipoCampo();\n $requerido=$detalle->getNulidadCampo();\n $accion=strtoupper($detalle->getAccionCampo());\n\n Campos::inicioFila();\n $ayuda=$detalle->getDescripcionCampo();\n\n if ($tipo == 14) { //Si es tipo Separador de Campos\n Campos::columnaGrid($numeroGrid);\n echo \"<center><strong>\" . $detalle->getNombreCampo() . \"</strong></center>\";\n Campos::finColumnaGrid();\n return;\n } else {\n Campos::columnaGrid($numeroGrid);\n echo $detalle->getNombreCampo();\n C::finColumnaGrid();\n }\n\n Campos::columnaGrid($numeroGrid);\n //Aqui empieza la captura...\n if($tipo==1){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n if(trim($valorPorDefecto)==\"\"){\n $valorPorDefecto=null;\n }\n C::texto($id,$valorPorDefecto,10,10,\" READONLY \");\n }else if($tipo==2){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n C::texto($id,$valorPorDefecto,15,15,\" READONLY \");\n }else if($tipo==3){\n C::texto($id,$valorPorDefecto,10,10,\" READONLY \");\n }else if($tipo==5){\n C::entero($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==6){\n C::flotante($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==7){\n C::texto($id,$valorPorDefecto,$size,$max,$javascript.\" READONLY \");\n }else if($tipo==8){\n $filas=$detalle->getAltoCampo();\n c::oculto($id,$valorPorDefecto);\n echo $valorPorDefecto;\n }else if($tipo==9){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id.\"selectDisabled\", $rsT, $valorPorDefecto,\" DISABLED \");\n C::oculto($id,$valorPorDefecto);\n }else if($tipo==10){\n $chequeado=false;\n if($valorPorDefecto==1){\n $chequeado=true;\n }\n C::chequeSiNo($id,'',$chequeado,1,\" DISABLED \");\n } else if($tipo==12){\n C::texto($id, $valorPorDefecto, $size, $max, $javascript.\" READONLY\");\n }else if($tipo==13){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id.\"selectDisabled\", $rsT, $valorPorDefecto,\" DISABLED \");\n C::oculto($id,$valorPorDefecto);\n }else if($tipo==20){\n C::editorHTMLPopUp($id, $valorPorDefecto, $detalle->getNombreCampo());\n }else if($tipo==25){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==27){\n $chequeado=false;\n if($valorPorDefecto=='A'){\n $chequeado=true;\n }\n C::chequeActivo($id,'',$chequeado);\n }else if($tipo==29){\n C::selectCatalogoId($id,$detalle->getCatalogoId(), $valorPorDefecto);\n }\n C::finColumnaGrid();\n}", "function capturarCampoActualizar(Detallesmantenimientosdetablas $detalle,$numeroGrid,$ValorPorDefecto=''){\n $size=$detalle->getTamanoCampo();\n $max=$detalle->getTamanoMaximoCampo();\n $javascript=$detalle->getJavascriptDesdeCampo();\n $valorPorDefecto=$ValorPorDefecto;\n $id=$detalle->getIdCampo();\n $tipo=$detalle->getIdTipoCampo();\n $requerido=$detalle->getNulidadCampo();\n $accion=strtoupper($detalle->getAccionCampo());\n\n $ayuda=$detalle->getDescripcionCampo();\n if ($tipo == 14) { //Si es tipo Separador de Campos\n Campos::columnaGrid($numeroGrid);\n echo \"<center><strong>\" . $detalle->getNombreCampo() . \"</strong></center>\";\n Campos::finColumnaGrid();\n return;\n } else {\n Campos::columnaGrid($numeroGrid);\n echo $detalle->getNombreCampo();\n Campos::finColumnaGrid();\n }\n Campos::columnaGrid($numeroGrid);\n //Aqui empieza la captura...\n if($tipo==1){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n if(trim($valorPorDefecto)==\"\"){\n $valorPorDefecto=null;\n }\n C::fecha($id,$valorPorDefecto,$resFecha);\n }else if($tipo==2){\n $resFecha=$detalle->getRestriccionDeFechas();\n if(trim($resFecha)==\"\"){\n $resFecha=null;\n }\n C::fechaHora($id,$valorPorDefecto,$resFecha);\n }else if($tipo==3){\n C::hora($id, $valorPorDefecto);\n }else if($tipo==5){\n C::entero($id,$valorPorDefecto,$size,$max,$javascript);\n }else if($tipo==6){\n C::flotante($id,$valorPorDefecto,$size,$max,$javascript);\n }else if($tipo==7){\n C::texto($id,$valorPorDefecto,$size,$max,$javascript);\n }else if($tipo==8){\n $filas=$detalle->getAltoCampo();\n C::textArea($id,$valorPorDefecto,$filas,$size,$javascript);\n }else if($tipo==9){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id, $rsT, $valorPorDefecto);\n }else if($tipo==10){\n $chequeado=false;\n if($valorPorDefecto==1){\n $chequeado=true;\n }\n C::chequeSiNo($id,'',$chequeado);\n } else if($tipo==12){\n C::texto($id, $valorPorDefecto, $size, $max, $javascript.\" READONLY\");\n }else if($tipo==13){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSet($id, $rsT, $valorPorDefecto);\n }else if($tipo==20){\n C::editorHTMLPopUp($id, $valorPorDefecto, $detalle->getNombreCampo());\n }else if($tipo==21){\n C::persona($id, $valorPorDefecto);\n }else if($tipo==25){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==26){\n $query=generarQueryCapturaExtranjera($detalle);\n $rsT=new ResultSet($query);\n C::selectAPartirDeResultSetConBusqueda($id, $rsT, $valorPorDefecto);\n }else if($tipo==27){\n $chequeado=false;\n if($valorPorDefecto=='A'){\n $chequeado=true;\n }\n C::chequeActivo($id,'',$chequeado);\n }else if($tipo==28){\n C::textoConMascara($id,$detalle->getQueryFiltro(),$valorPorDefecto);\n }else if($tipo==29){\n C::selectCatalogoId($id,$detalle->getCatalogoId(), $valorPorDefecto);\n }\n\n \n C::finColumnaGrid();\n\n}", "public function operations();", "function verificarSolapamiento($horario, $duracion, $idTeatroNuevaFuncion){\r\n $funcionTeatro = new FuncionTeatro('', '', '', '', '');\r\n $coleccionFuncionesTeatro = $funcionTeatro->listar(\"\");\r\n $cine = new Cine('','','','','','','');\r\n $coleccionCines = $cine->listar(\"\");\r\n $musical = new Musical('','','','','','','');\r\n $coleccionMusicales = $musical->listar(\"\");\r\n\r\n $retorno = false;\r\n\r\n list($horaFuncion, $minutosFuncion) = explode(\":\", $horario); //Extraigo la hora y los minutos separados por el \":\"\r\n $hora = intval($horaFuncion); //Convierto la hora de string a entero\r\n $minutos = intval($minutosFuncion); //Convierto los minutos de string a entero\r\n\r\n $horarioInicioFuncion = (($hora * 60) + $minutos); //Convierto el horario de INICIO de la nueva funcion a minutos\r\n $horarioCierreFuncion = $horarioInicioFuncion + $duracion; //Horario de CIERRE de la nueva funcion\r\n\r\n $horarioFuncionNueva = array('inicio'=>$horarioInicioFuncion, 'cierre'=>$horarioCierreFuncion);\r\n\r\n $coleccionHorarios = [];\r\n\r\n //Sumo los horarios de cada tipo\r\n $coleccionHorarios = armarColeccionHorarios($coleccionFuncionesTeatro, $idTeatroNuevaFuncion, $coleccionHorarios);\r\n $coleccionHorarios = armarColeccionHorarios($coleccionCines, $idTeatroNuevaFuncion, $coleccionHorarios);\r\n $coleccionHorarios = armarColeccionHorarios($coleccionMusicales, $idTeatroNuevaFuncion, $coleccionHorarios);\r\n\r\n if (count($coleccionHorarios)>0){\r\n $horarioDisponible = verificarHorario($horarioFuncionNueva, $coleccionHorarios);\r\n if ($horarioDisponible){\r\n $retorno = true;\r\n }\r\n } else {\r\n $retorno = true;\r\n }\r\n\r\n return $retorno;\r\n}", "function tcapturando($curso){\n\t\t\tif(Session::get_data('tipousuario')!=\"PROFESOR\"){\n\t\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t\t//ELIMINAR CONTENIDO DE LAS VARIABLES QUE PERTENECERÁN A LA CLASE\n\t\t\tunset($this -> excel);\n\t\t\tunset($this -> alumnado);\n\t\t\tunset($this -> registro);\n\t\t\tunset($this -> nombre);\n\t\t\tunset($this -> curso);\n\t\t\tunset($this -> materia);\n\t\t\tunset($this -> clave);\n\t\t\tunset($this -> situacion);\n\t\t\tunset($this -> especialidad);\n\t\t\tunset($this -> profesor);\n\t\t\tunset($this -> periodo);\n\t\t\tunset($this -> nomina);\n\t\t\tunset($this -> parcial);\n\t\t\tunset($this -> idcapturaesp);\n\n\t\t\t$maestros = new Maestros();\n\t\t\t$id = Session::get_data('registro');\n\t\t\t$this -> nomina = $id;\n\t\t\t$profesor = $maestros -> find_first(\"nomina=\".$this -> nomina.\"\");\n\t\t\t$this -> profesor = $profesor -> nombre;\n\n\t\t\t$periodo = $this -> actual;\n\n\t\t\t$xcursos = new Xtcursos();\n\t\t\t$pertenece = $xcursos -> count(\"clavecurso='\".$curso.\"' AND nomina=\".$id.\" AND periodo='\".$periodo.\"'\");\n\n\t\t\tif($pertenece<1){\n\t\t\t\t$log = new Xtlogcalificacion();\n\t\t\t\t$log -> clavecurso = $curso;\n\t\t\t\t$log -> nomina = Session::get_data('registro');\n\t\t\t\t$log -> accion = \"INTENTANDO MODIFICAR UNA CALIFICACION QUE NO LE CORRESPONDE\";\n\t\t\t\t$log -> ip = $this -> getIP();;\n\t\t\t\t$log -> fecha = time();\n\t\t\t\t$log -> save();\n\n\t\t\t\t$this->redirect('profesor/captura');\n\t\t\t}\n\n\n\t\t\t$Xccursos = new Xtcursos();\n\t\t\t$maestros = new Maestros();\n\t\t\t$materias = new Materia();\n\t\t\t$xtalumnocursos = new Xtalumnocursos();\n\t\t\t$alumnos = new Alumnos();\n\t\t\t$especialidades = new Especialidades();\n\n\n\t\t\t$xccursos = $Xccursos -> find_first(\"clavecurso='\".$curso.\"'\");\n\t\t\tif( $this -> post(\"tparcial\") == \"\" ){\n\t\t\t\t$this->redirect('profesor/captura');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tswitch($this -> post(\"tparcial\")){\n\t\t\t\t\tcase 1: $this -> horas = $xccursos -> horas1; break;\n\t\t\t\t\tcase 2: $this -> horas = $xccursos -> horas2; break;\n\t\t\t\t\tcase 3: $this -> horas = $xccursos -> horas3; break;\n\t\t\t}\n\n\t\t\t$this -> horas1 = $xccursos -> horas1;\n\t\t\t$this -> horas2 = $xccursos -> horas2;\n\t\t\t$this -> horas3 = $xccursos -> horas3;\n\n\t\t\tif($this -> horas==0){\n\t\t\t\t\t$this -> horas = \"\";\n\t\t\t}\n\n\t\t\tif($this -> horas1==0){\n\t\t\t\t\t$this -> horas1 = \"-\";\n\t\t\t}\n\n\t\t\tif($this -> horas2==0){\n\t\t\t\t\t$this -> horas2 = \"-\";\n\t\t\t}\n\n\t\t\tif($this -> horas3==0){\n\t\t\t\t\t$this -> horas3 = \"-\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch($this -> post(\"tparcial\")){\n\t\t\t\t\tcase 1: $this -> avance = $xccursos -> avance1; break;\n\t\t\t\t\tcase 2: $this -> avance = $xccursos -> avance2; break;\n\t\t\t\t\tcase 3: $this -> avance = $xccursos -> avance3; break;\n\t\t\t}\n\n\t\t\t$this -> avance1 = $xccursos -> avance1;\n\t\t\t$this -> avance2 = $xccursos -> avance2;\n\t\t\t$this -> avance3 = $xccursos -> avance3;\n\n\t\t\tif($this -> avance==0){\n\t\t\t\t\t$this -> avance = \"\";\n\t\t\t}\n\n\t\t\tif($this -> avance1==0){\n\t\t\t\t\t$this -> avance1 = \"-\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$this -> avance1 .= \"%\";\n\t\t\t}\n\n\t\t\tif($this -> avance2==0){\n\t\t\t\t\t$this -> avance2 = \"-\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$this -> avance2 .= \"%\";\n\t\t\t}\n\n\t\t\tif($this -> avance3==0){\n\t\t\t\t\t$this -> avance3 = \"-\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$this -> avance3 .= \"%\";\n\t\t\t}\n\t\t\t$total = 0;\n\n\t\t\t$xpermcapturaesp\t= new Xpermisoscapturaesp();\n\t\t\t$xpermcapturaespdet\t= new XpermisoscapturaespDetalle();\n\t\t\t\n\t\t\t$day = date (\"d\");\n\t\t\t$month = date (\"m\");\n\t\t\t$year = date (\"Y\");\n\t\t\t$hour = date (\"H\");\n\t\t\t$minute = date (\"i\");\n\t\t\t$second = date (\"s\");\n\t\t\t\n\t\t\t$fecha = mktime( $hour, $minute, $second, $month, $day, $year );\n\t\t\t\n\t\t\t$aux = 0;\n\t\t\t$aux5 = 0;\n\t\t\tforeach( $xpermcapturaesp -> find_all_by_sql\n\t\t\t\t\t( \"select * from xpermisoscapturaesp\n\t\t\t\t\t\twhere clavecurso = '\".$curso.\"'\n\t\t\t\t\t\tand parcial = \".$this -> post(\"tparcial\").\"\n\t\t\t\t\t\tand fin > \".$fecha.\"\n\t\t\t\t\t\tand captura = 0\n\t\t\t\t\t\torder by id desc\n\t\t\t\t\t\tlimit 1\" ) as $xpcapesp ){\n\t\t\t\t$aux5 = 1;\n\t\t\t\t// Para checar los permisosdecapturasespeciales\n\t\t\t\tif( $xpermcapturaespdet -> find_first\n\t\t\t\t\t\t( \"xpermisoscapturaesp_id = \".$xpcapesp -> id ) ){\n\t\t\t\t\t$aux ++;\n\t\t\t\t}\n\t\t\t\t$this -> idcapturaesp = $xpcapesp -> id;\n\t\t\t\tif( $aux == 1 ){\n\t\t\t\t\tforeach( $xpermcapturaespdet -> find\n\t\t\t\t\t\t\t( \"xpermisoscapturaesp_id = \".$xpcapesp -> id ) as $xpdetalle ){\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach($xtalumnocursos -> find\n\t\t\t\t\t\t\t\t(\"curso_id='\".$xccursos->id.\"' \n\t\t\t\t\t\t\t\tand registro = \".$xpdetalle -> registro.\"\n\t\t\t\t\t\t\t\tORDER BY registro\") as $alumno){\n\t\t\t\t\t\t\t$this -> registro = $alumno -> registro;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"id\"] = $alumno -> id;\n\t\t\t\t\t\t\t$this -> curso = $curso;\n\t\t\t\t\t\t\t$this -> materia = $this -> post(\"tmateria\");\n\t\t\t\t\t\t\t$this -> clave = $this -> post(\"tclave\");\n\n\t\t\t\t\t\t\t$parcial = $this -> post(\"tparcial\");\n\t\t\t\t\t\t\t$this -> parcialito = $parcial;\n\n\t\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\t\tcase 1: $this -> parcial = \"PRIMER PARCIAL\"; break;\n\t\t\t\t\t\t\t\tcase 2: $this -> parcial = \"SEGUNDO PARCIAL\"; break;\n\t\t\t\t\t\t\t\tcase 3: $this -> parcial = \"TERCER PARCIAL\"; break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tforeach($alumnos -> find(\"miReg=\".$alumno->registro) as $a){\n\t\t\t\t\t\t\t\t$this -> nombre = $a -> vcNomAlu;\n\t\t\t\t\t\t\t\t$this -> nombre = iconv(\"latin1\", \"ISO-8859-1\", $this -> nombre);\n\t\t\t\t\t\t\t\t$situacion = $a -> enTipo;\n\t\t\t\t\t\t\t\t$especialidad = $a -> idtiEsp;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch($situacion){\n\t\t\t\t\t\t\t\tcase 'R': $this -> situacion = \"REGULAR\"; break;\n\t\t\t\t\t\t\t\tcase 'I': $this -> situacion = \"IRREGULAR\"; break;\n\t\t\t\t\t\t\t\tcase 'P': $this -> situacion = \"PROCESO DE REGULARIZACION\"; break;\n\t\t\t\t\t\t\t\tcase 'C': $this -> situacion = \"CONDICIONADO\"; break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tforeach($especialidades -> find(\"idtiEsp=\".$especialidad) as $e){\n\t\t\t\t\t\t\t\t$this -> especialidad = $e -> siNumEsp;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"registro\"] = $this -> registro;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"nombre\"] = $this -> nombre;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"especialidad\"] = $this -> especialidad;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"situacion\"] = $this -> situacion;\n\n\t\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas1;break;\n\t\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas2;break;\n\t\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas3;break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"] = $alumno -> faltas1;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"] = $alumno -> faltas2;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"] = $alumno -> faltas3;\n\n\t\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion1;break;\n\t\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion2;break;\n\t\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion3;break;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"] = $alumno -> calificacion1;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"] = $alumno -> calificacion2;\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"] = $alumno -> calificacion3;\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas\"]=\"\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"-\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"]=\"-\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"-\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"]=\"-\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==300){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"-\";\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"]=\"-\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==999){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"NP\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==500){\n\t\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"PD\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$total++;\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\tforeach($xtalumnocursos -> find(\"curso_id='\".$xccursos->id.\"' ORDER BY registro\") as $alumno){\n\t\t\t\t\t\t$this -> registro = $alumno -> registro;\n\t\t\t\t\t\t$this -> alumnado[$total][\"id\"] = $alumno -> id;\n\t\t\t\t\t\t$this -> curso = $curso;\n\t\t\t\t\t\t$this -> materia = $this -> post(\"tmateria\");\n\t\t\t\t\t\t$this -> clave = $this -> post(\"tclave\");\n\n\t\t\t\t\t\t$parcial = $this -> post(\"tparcial\");\n\t\t\t\t\t\t$this -> parcialito = $parcial;\n\n\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> parcial = \"PRIMER PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 2: $this -> parcial = \"SEGUNDO PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 3: $this -> parcial = \"TERCER PARCIAL\"; break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tforeach($alumnos -> find(\"miReg=\".$alumno->registro) as $a){\n\t\t\t\t\t\t\t$this -> nombre = $a -> vcNomAlu;\n\t\t\t\t\t\t\t$this -> nombre = iconv(\"latin1\", \"ISO-8859-1\", $this -> nombre);\n\t\t\t\t\t\t\t$situacion = $a -> enTipo;\n\t\t\t\t\t\t\t$especialidad = $a -> idtiEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch($situacion){\n\t\t\t\t\t\t\tcase 'R': $this -> situacion = \"REGULAR\"; break;\n\t\t\t\t\t\t\tcase 'I': $this -> situacion = \"IRREGULAR\"; break;\n\t\t\t\t\t\t\tcase 'P': $this -> situacion = \"PROCESO DE REGULARIZACION\"; break;\n\t\t\t\t\t\t\tcase 'C': $this -> situacion = \"CONDICIONADO\"; break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tforeach($especialidades -> find(\"idtiEsp=\".$especialidad) as $e){\n\t\t\t\t\t\t\t$this -> especialidad = $e -> siNumEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this -> alumnado[$total][\"registro\"] = $this -> registro;\n\t\t\t\t\t\t$this -> alumnado[$total][\"nombre\"] = $this -> nombre;\n\t\t\t\t\t\t$this -> alumnado[$total][\"especialidad\"] = $this -> especialidad;\n\t\t\t\t\t\t$this -> alumnado[$total][\"situacion\"] = $this -> situacion;\n\n\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas3;break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"] = $alumno -> faltas1;\n\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"] = $alumno -> faltas2;\n\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"] = $alumno -> faltas3;\n\n\t\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion3;break;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"] = $alumno -> calificacion1;\n\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"] = $alumno -> calificacion2;\n\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"] = $alumno -> calificacion3;\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas\"]=\"\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"-\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"]=\"-\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"-\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"]=\"-\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==300){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"-\";\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"]=\"-\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==999){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"NP\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"PD\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"PD\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"PD\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==500){\n\t\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"PD\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$total++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( $aux5 == 0 ){\n foreach($xtalumnocursos -> find(\"curso_id='\".$xccursos->id.\"' ORDER BY registro\") as $alumno){\n\t\t\t\t\t$this -> registro = $alumno -> registro;\n\t\t\t\t\t$this -> alumnado[$total][\"id\"] = $alumno -> id;\n\t\t\t\t\t$this -> curso = $curso;\n\t\t\t\t\t$this -> materia = $this -> post(\"tmateria\");\n\t\t\t\t\t$this -> clave = $this -> post(\"tclave\");\n\n\t\t\t\t\t$parcial = $this -> post(\"tparcial\");\n\t\t\t\t\t$this -> parcialito = $parcial;\n\n\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> parcial = \"PRIMER PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 2: $this -> parcial = \"SEGUNDO PARCIAL\"; break;\n\t\t\t\t\t\t\tcase 3: $this -> parcial = \"TERCER PARCIAL\"; break;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($alumnos -> find(\"miReg=\".$alumno->registro) as $a){\n\t\t\t\t\t\t\t$this -> nombre = $a -> vcNomAlu;\n\t\t\t\t\t\t\t$this -> nombre = iconv(\"latin1\", \"ISO-8859-1\", $this -> nombre);\n\t\t\t\t\t\t\t$situacion = $a -> enTipo;\n\t\t\t\t\t\t\t$especialidad = $a -> idtiEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch($situacion){\n\t\t\t\t\t\t\tcase 'R': $this -> situacion = \"REGULAR\"; break;\n\t\t\t\t\t\t\tcase 'I': $this -> situacion = \"IRREGULAR\"; break;\n\t\t\t\t\t\t\tcase 'P': $this -> situacion = \"PROCESO DE REGULARIZACION\"; break;\n\t\t\t\t\t\t\tcase 'C': $this -> situacion = \"CONDICIONADO\"; break;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach($especialidades -> find(\"idtiEsp=\".$especialidad) as $e){\n\t\t\t\t\t\t\t$this -> especialidad = $e -> siNumEsp;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this -> alumnado[$total][\"registro\"] = $this -> registro;\n\t\t\t\t\t$this -> alumnado[$total][\"nombre\"] = $this -> nombre;\n\t\t\t\t\t$this -> alumnado[$total][\"especialidad\"] = $this -> especialidad;\n\t\t\t\t\t$this -> alumnado[$total][\"situacion\"] = $this -> situacion;\n\n\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"faltas\"] = $alumno -> faltas3;break;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"] = $alumno -> faltas1;\n\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"] = $alumno -> faltas2;\n\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"] = $alumno -> faltas3;\n\n\t\t\t\t\tswitch($parcial){\n\t\t\t\t\t\t\tcase 1: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion1;break;\n\t\t\t\t\t\t\tcase 2: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion2;break;\n\t\t\t\t\t\t\tcase 3: $this -> alumnado[$total][\"calificacion\"] = $alumno -> calificacion3;break;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"] = $alumno -> calificacion1;\n\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"] = $alumno -> calificacion2;\n\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"] = $alumno -> calificacion3;\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas\"]=\"\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"-\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas1\"]=\"-\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"-\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas2\"]=\"-\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==300){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"-\";\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"faltas3\"]=\"-\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==999){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"NP\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion\"]=\"PD\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion1\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion1\"]=\"PD\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion2\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion2\"]=\"PD\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this -> alumnado[$total][\"calificacion3\"]==500){\n\t\t\t\t\t\t\t$this -> alumnado[$total][\"calificacion3\"]=\"PD\";\n\t\t\t\t\t}\n\t\t\t\t\t$total++;\n }\n\t\t\t}\n }", "function precio($precioUnidad, $cantidad, $descuento = 0 ){ // las variables que tenemos son arbitrarias, por lo cual hay que mirar bien si ponerlas en () de la funcion\n\n\n\n$multiplicar = $precioUnidad * $cantidad;\n\n// $descuento es un porcentaje\n\n// $restar = $multiplicar - $descuento; // este descuento debe ir en % por lo cual no es lo mismo que un entero, por lo cual lo colocaremos en entero\n\n\n// si esto fuera un porcentaje entonces seria $multiplicar = $precioUnidad * $cantidad; // $porcentaje = $multiplicar - $descuento; // $solucion = $multiplicar - $porcentaje; lo cual es lo que haremos\n\n$porcentaje = $multiplicar * $descuento;\n\n$solucion = $multiplicar - $porcentaje;\nreturn $solucion;\n// si colocamos todos los datos en solo sitio o una sola linea, sin especificar es e novatos, porque hay que haber un orden\n\n}", "public function opcionesDesplegable();", "function fct_liste_fleurs ($mescriteres) {\nglobal $connexion, $poids_criteres, $gamme;\n\t$sql = \"SELECT * FROM fiche_\".$gamme.\" WHERE visible_index = 1 \";\n $result = mysql_query($sql, $connexion);\n\tif (!$result) {\n\t\t$liste_fleurs = \"<p><strong>La liste des fleurs n'est pas disponible pour le moment ; veuillez rÚessayer ultÚrieurement.</strong></p>\";\n\t} else {\n\t\t$nbTrouve = mysql_num_rows($result);\n\t\tif ($nbTrouve <= 0) {\n\t\t\t$liste_fleurs = \"<p><strong>La liste des fleurs n'est pas disponible pour le moment ; veuillez rÚessayer ultÚrieurement.</strong></p>\";\n\t\t} else {\n\t\t\t$poids_toutes_fleurs = array();\n\t\t\t$infos_toutes_fleurs = array();\n\t\t\twhile ($unefleur = mysql_fetch_assoc($result)) {\n\t\t\t\t$poids_fleur = 0;\n\t\t\t\t$unefleur['debbug_poids'] = \"\";\n\t\t\t\t// calcul poids de chaque critere\n\t\t\t\tforeach ($poids_criteres as $libelle => $poids) {\n\t\t\t\t\t$refcritere = substr($libelle, 0, 3);\n\t\t\t\t\t$codecritere = $mescriteres[$refcritere]['code'];\n\t\t\t\t\tif ($codecritere >= 0) {\n\t\t\t\t\t\tswitch ($libelle) {\n\t\t\t\t\t\t\tcase \"fleur\":\n\t\t\t\t\t\t\t\t$valcritere = ($poids[$codecritere][$unefleur['kod_coul_fleurs']]) * 1.3;\n\t\t\t\t\t\t\t\t$poids_fleur = $poids_fleur + $valcritere;\n\t\t\t\t\t\t\t\t$unefleur['debbug_poids'] = \"fle=\".$valcritere;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"feuille\":\n\t\t\t\t\t\t\t\t$valcritere = $poids[$codecritere][$unefleur['kod_feuille']];\n\t\t\t\t\t\t\t\t$poids_fleur = $poids_fleur + $valcritere;\n\t\t\t\t\t\t\t\t$unefleur['debbug_poids'] .= \", feu=\".$valcritere;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"milieu\":\n\t\t\t\t\t\t\t\t$valcritere = $poids[$codecritere][$unefleur['kod_milieu']];\n\t\t\t\t\t\t\t\t$poids_fleur = $poids_fleur + $valcritere;\n\t\t\t\t\t\t\t\t$unefleur['debbug_poids'] .= \", mil=\".$valcritere;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"altitude\":\n\t\t\t\t\t\t\t\t$valcritere = $poids[$codecritere][$unefleur['kod_alt']];\n\t\t\t\t\t\t\t\t$poids_fleur = $poids_fleur + $valcritere;\n\t\t\t\t\t\t\t\t$unefleur['debbug_poids'] .= \", alt=\".$valcritere;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"port\":\n\t\t\t\t\t\t\t\t$valcritere = $poids[$codecritere][$unefleur['kod_port']];\n\t\t\t\t\t\t\t\t$poids_fleur = $poids_fleur + $valcritere;\n\t\t\t\t\t\t\t\t$unefleur['debbug_poids'] .= \", por=\".$valcritere;\n\t\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\t// poids critere taille\n\t\t\t\t$codecritere = $mescriteres['tai']['code'];\n\t\t\t\t$poids_taille = fct_calcul_proximite_taille($unefleur['taillemin'], $unefleur['taillelmax'], $codecritere );\n\t\t\t\t$poids_fleur = $poids_fleur + $poids_taille;\n\t\t\t\t$unefleur['debbug_poids'] .= \", tai=\".floor($poids_taille);\n\t\t\t\t// poids critere invisible mois floraison\n\t\t\t\t$mois_observation = date(\"n\");\n\t\t\t\t$intervalle = $unefleur['kod_mois_flore2'] - $unefleur['kod_moisfolre1'];\n\t\t\t\t$poids_mois = 0;\n\t\t\t\tif ($intervalle > 0) {\n\t\t\t\t\t// mois observation comprise entre debut et fin de floraison\n\t\t\t\t\tif (($mois_observation >= $unefleur['kod_moisfolre1']) && ($mois_observation <= $unefleur['kod_mois_flore2'])) {\n\t\t\t\t\t\t$poids_mois = 3;\n\t\t\t\t\t} else { // mois observation = 1 mois precedent ou 1 mois suivant pÚriode de floraison\n\t\t\t\t\t\t$mois_suivant = fmod(($unefleur['kod_mois_flore2']+1), 12);\n\t\t\t\t\t\t$mois_precedent = fmod((12+$unefleur['kod_moisfolre1']-1), 12);\n\t\t\t\t\t\tif ($mois_precedent == 0) $mois_precedent = 12;\n\t\t\t\t\t\tif (($mois_observation == $mois_precedent) || ($mois_observation == $mois_suivant)) {\n\t\t\t\t\t\t\t$poids_mois = 2;\n\t\t\t\t\t\t} else { // mois observation = 2 mois precedent ou 2 mois suivant pÚriode de floraison\n\t\t\t\t\t\t\t$mois_suivant = fmod(($unefleur['kod_mois_flore2']+2), 12);\n\t\t\t\t\t\t\t$mois_precedent = fmod((12+$unefleur['kod_moisfolre1']-2), 12);\n\t\t\t\t\t\t\tif ($mois_precedent == 0) $mois_precedent = 12;\n\t\t\t\t\t\t\tif (($mois_observation == $mois_precedent) || ($mois_observation == $mois_suivant)) $poids_mois = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$poids_fleur = $poids_fleur + $poids_mois;\n\t\t\t\t$unefleur['debbug_poids'] .= \", mois=\".floor($poids_mois);\n\t\t\t\t// enregistre\n\t\t\t\t$poids_toutes_fleurs[$unefleur['numId']] = $poids_fleur;\n\t\t\t\t$infos_toutes_fleurs[$unefleur['numId']] = $unefleur;\n\t\t\t} // fin while\n\t\t\t// trie selon le poids le plus lourd\n\t\t\tarsort($poids_toutes_fleurs);\n\t\t\tif (count($poids_toutes_fleurs) > 30) $nbaffichage = 30;\n\t\t\telse $nbaffichage = count($poids_toutes_fleurs);\n\t\t\t$liste_fleurs = \"\";\n\t\t\t$liste_encours = \"\";\n\t\t\t$cpt = 0;\n\t\t\tforeach ($poids_toutes_fleurs as $ref => $poids) {\nif($poids==0)break;//on affiche pas les arbres sans rapport\n\t\t\t\t$infos_fleur_encours = $infos_toutes_fleurs[$ref];\n\t\t\t\t// recupere photo\n\t\t\t\t$sqlphoto = 'SELECT * FROM diapo_'.$gamme.' WHERE nomFic LIKE \"'.$infos_fleur_encours['racinenomfic'].'%\" and auteur ='.\"'feuille'\";\n\t\t\t\t$result = mysql_query($sqlphoto, $connexion);\n\t\t\t\t$photofleur = mysql_fetch_assoc($result);\n\t\t\t\t$lien_fiche = '<a href=\"fiche_'.$infos_fleur_encours['racinenomfic'].'.html\">';\n\t\t\t\t$liste_encours .= '<div class=\"unefleur\">'.\"\\n\";\n\t\t\t\t$liste_encours .= '<a href=\"fiche_'.$infos_fleur_encours['racinenomfic'].'.html\">';\n\t\t\t\t$liste_encours .= '<img src=\"phototheque/vignette_'.$gamme.'/'.$photofleur['nomFic'].'.jpg\" border=\"0\"><br />'.\"\\n\";\n\t\t\t\t$liste_encours .= $infos_fleur_encours['nc'].\"<br /> (\".$infos_fleur_encours['ns'].\")\".\"\\n\";\n\t\t\t\t$liste_encours .= '</a>';\n\t\t\t\t// pour activer le systeme de debbug des poids des criteres\n\t\t\t\t// if ($infos_fleur_encours['debbug_poids'] != \"\") $liste_encours .= '<br />----------<br />'.$infos_fleur_encours['debbug_poids'];\n\t\t\t\t$liste_encours .= '</div>'.\"\\n\";\n\t\t\t\t$cpt ++;\n\t\t\t\tif (fmod($cpt, 3) == 0) {\n\t\t\t\t\t$liste_fleurs .= '<div class=\"lignefleurs\">'.\"\\n\";\n\t\t\t\t\t$liste_fleurs .= $liste_encours;\n\t\t\t\t\t$liste_fleurs .= '</div>'.\"\\n\";\n\t\t\t\t\t$liste_encours = \"\";\n\t\t\t\t}\n\t\t\t\tif ($cpt >= $nbaffichage) break;\n\t\t\t}\n\t\t}\n\t}\nif( $liste_fleurs==\"\") $liste_fleurs = \"<div class='lignefleurs'> $liste_encours </div> \";\n \treturn $liste_fleurs;\n}", "function tabledata_Fiche($table, $serveur, $field, $key , $idLigne, $modeFiche =\"voir\")\r\n{\r\n\r\n $nombre_Enregistrements = 0;\r\n\r\n // $mode : possible ajout, modif, voir , effacer\r\n switch ($modeFiche)\r\n {\r\n case \"ajout\" :\r\n $boolSQL = false;\r\n $txtReadonly = \"\";\r\n $nombre_Enregistrements = 1; // pour forcer passage car pas de requete\r\n break;\r\n case \"effacer\" :\r\n $boolSQL = true;\r\n $txtReadonly = \" READONLY \";\r\n break;\r\n case \"modif\" :\r\n $boolSQL = true;\r\n $txtReadonly = \"\";\r\n break;\r\n case \"voir\" :\r\n $boolSQL = true;\r\n $txtReadonly = \" READONLY \";\r\n break;\r\n default :\r\n $boolSQL = false;\r\n $txtReadonly = \" READONLY \";\r\n }\r\n\r\n if ($boolSQL)\r\n {\r\n $sqlResult = tabledata_Cde_select($table , $field,\"\",\"\", $key, $idLigne);\r\n $nombre_Enregistrements = sql_count($sqlResult); //2.0\r\n }\r\n\r\n if ($nombre_Enregistrements>0)\r\n {\r\n $total = '';\r\n $hiddens = '';\r\n\r\n if ($boolSQL)\r\n {\r\n $tabUnEnregistrement = sql_fetch($sqlResult);\r\n }\r\n else\r\n {\r\n foreach ($field as $k => $v)\r\n {\r\n $tabUnEnregistrement[$k] = \"\";\r\n }\r\n }\r\n\r\n foreach ($field as $k => $v)\r\n {\r\n if (array_search($k, $key) == \"PRIMARY KEY\")\r\n {\r\n if ($boolSQL)\r\n {\r\n $strDebut = \"Enregistrement ayant comme cl&#233; primaire :<br/><i><b>\"\r\n .$k.\"='\".$tabUnEnregistrement[$k].\"'</b></i><br/>\";\r\n }\r\n }\r\n else\r\n {\r\n preg_match(\"/^ *([A-Za-z]+) *(\\(([^)]+)\\))?(.*DEFAULT *'(.*)')?/\", $v, $m);\r\n $type = $m[1];\r\n $s = ($m[5] ? \" value='$m[5]' \" : '');\r\n $t = $m[3];\r\n if ($m[2])\r\n {\r\n if (is_numeric($t))\r\n {\r\n if ($t <= 32)\r\n {\r\n $s .= \" sizemax='$t' size='\" . ($t * 2) . \"'\";\r\n }\r\n else\r\n {\r\n $type = 'BLOB';\r\n }\r\n }\r\n else\r\n {\r\n preg_match(\"/^ *'?(.*[^'])'? *$/\", $t, $m2); $t = $m2[1];\r\n }\r\n }\r\n\r\n switch (strtoupper($type))\r\n {\r\n case TINYINT:\r\n if ($t==1)\r\n {\r\n $checked = \"\";\r\n if ($tabUnEnregistrement[$k] == 1)\r\n {\r\n $checked = \" checked\";\r\n }\r\n $s = \"<td>\"\r\n .\"<input type='checkbox' name='\".$k.\"'\"\r\n .\" value='1'\".$checked.$txtReadonly.\"/>\"\r\n .\"</td>\\n\";\r\n break;\r\n }\r\n case INT:\r\n case INTEGER:\r\n case BIGINT:\r\n case TINYINT:\r\n case CHAR:\r\n case VARCHAR:\r\n case TEXT:\r\n case TINYTEXT:\r\n case TINYBLOB:\r\n case YEAR:\r\n case DATETIME:\r\n case DATE:\r\n case TIME:\r\n $s = \"<td>\"\r\n .\"<input type='text'\".$s.\" name='\".$k.\"'\"\r\n .\" value='\".htmlentities(utf8_decode($tabUnEnregistrement[$k]), ENT_QUOTES)\r\n .\"'\".$txtReadonly.\"/>\"\r\n .\"</td>\\n\";\r\n break;\r\n case ENUM:\r\n case SET: //ajout JFM\r\n $s = \"<td><select name='\".$k.\"'\".$txtReadonly.\">\\n\";\r\n foreach (preg_split(\"/'? *, *'?/\",$t) as $v)\r\n {\r\n if ($tabUnEnregistrement[$k]==$v)\r\n {\r\n $s .= \"<option selected>\".$v.\"</option>\\n\";\r\n }\r\n else\r\n {\r\n $s .= \"<option>\".$v.\"</option>\\n\";\r\n }\r\n } //foreach (preg_split(\"/'? *, *'?/\",$t) as $v)\r\n $s .= \"</select></td>\\n\";\r\n break;\r\n case TIMESTAMP:\r\n $s = '';\r\n if ($mode==\"ajout\")\r\n {\r\n $hiddens .= \"<input type='hidden' name='\".$k.\"' value='NOW()'/>\\n\";\r\n }\r\n else\r\n {\r\n $hiddens .= \"<input type='hidden' name='\".$k.\"' value='\".$v.\"'/>\\n\";\r\n }\r\n break;\r\n case LONGBLOB:\r\n $s = \"<td><textarea name='$k' cols='45' rows='20'\".$txtReadonly.\">\".htmlentities(utf8_decode($tabUnEnregistrement[$k]), ENT_QUOTES ).\"</textarea></td>\\n\"; //modif. JFM\r\n break;\r\n default:\r\n $t = floor($t / 45)+1;\r\n $s = \"<td><textarea name='$k' cols='45' rows='$t'\".$txtReadonly.\">\".htmlentities(utf8_decode($tabUnEnregistrement[$k]), ENT_QUOTES ).\"</textarea></td>\\n\";\r\n break;\r\n } //switch (strtoupper($type))\r\n if ($s)\r\n $total .= \"<tr><td>$k</td>\\n$s</tr>\\n\";\r\n }\r\n }\r\n $hiddens .= \"<input type='hidden' name='serveur' value='\".$serveur.\"'/>\\n\";\r\n $hiddens .= \"<input type='hidden' name='table' value='\".$table.\"'/>\\n\";\r\n $hiddens .= \"<input type='hidden' name='mode' value='\".$mode.\"'/>\\n\";\r\n\r\n\r\n // $idLigne = htmlentities(stripcslashes($idLigne), ENT_QUOTES );\r\n $idLigne = htmlentities($idLigne, ENT_QUOTES );\r\n\r\n switch ($modeFiche)\r\n {\r\n case \"ajout\" :\r\n $txtbouton =\"Ajouter\";\r\n break;\r\n case \"effacer\" :\r\n $hiddens .= \"<input type='hidden' name='id_ligne' value='\".$idLigne.\"'/>\\n\";\r\n $hiddens .= \"<input type='hidden' name='tdaction' value='ordresuplig'/>\\n\";\r\n $txtbouton =\"Effacer d&#233;finitivement\";\r\n break;\r\n case \"modif\" :\r\n $hiddens .= \"<input type='hidden' name='id_ligne' value='\".$idLigne.\"'/>\\n\";\r\n $hiddens .= \"<input type='hidden' name='tdaction' value='maj'/>\\n\";\r\n $txtbouton =\"Modifier\";\r\n break;\r\n case \"voir\" :\r\n $hiddens .= \"<input type='hidden' name='id_ligne' value='\".$idLigne.\"'/>\\n\";\r\n $hiddens .= \"<input type='hidden' name='tdaction' value='AUCUN'/>\\n\";\r\n $txtbouton =\"--\";\r\n break;\r\n default:\r\n $hiddens .= \"<input type='hidden' name='tdaction' value='AUCUN'/>\\n\";\r\n $txtbouton =\"AUCUN\";\r\n }\r\n\r\n return \"\\n\\n\\n\".tabledata_url_generer_post_ecrire(\r\n 'tabledata'\r\n , \"<table>\\n\".$strDebut.$total\r\n .\"</table>\".$hiddens,$txtbouton);\r\n } // if ($nombre_Enregistrements>0)\r\n\r\n}", "function cl_sau_triagemavulsa() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"sau_triagemavulsa\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public static function Najdi_kolize_pro_formular ($iducast, $formular ) {\r\n $query= \"SELECT * FROM s_typ_kolize WHERE formular='\" . $formular . \"' and valid\" ;\r\n $kolize_pole = self::Najdi_kolize ($query,$iducast) ;\r\n \r\n //echo(\"<br>\" . $formular . \"<br>\");\r\n //var_dump ($kolize_pole);\r\n return $kolize_pole; \r\n}", "function cariPosisi($batas){\nif(empty($_GET['halkategoriberita'])){\n\t$posisi=0;\n\t$_GET['halkategoriberita']=1;\n}\nelse{\n\t$posisi = ($_GET['halkategoriberita']-1) * $batas;\n}\nreturn $posisi;\n}", "function TradicionalHolaMundo1 (){ \r\necho \"hola mundo nuevamente\"; \r\n}", "public function Empleado()\n {\n //Obtengo un array con los parámetros enviados a la funcion.\n $params = func_get_args();\n \n\t\t//Saco el numero de parametros que estoy recibiendo.\n $num_params = func_num_args();\n \n\t\t//Cada constructor de un número dado de parámtros tendrá un nombre de función\n\t\t//Atendiendo al siguiente modelo Empleado0() Empleado3()\n\t\t$funcion_constructor ='Empleado'.$num_params;\n if (method_exists($this,$funcion_constructor))\n {\n\t\t\tcall_user_func_array(array($this,$funcion_constructor),$params);\n\t\t}\n }", "function geraClassesBasicas(){\n # Abre o template da classe basica e armazena conteudo do modelo\n $modelo = Util::getConteudoTemplate('class.Modelo.tpl');\n\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n //print_r($aBanco);\n # varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n $copiaModelo = $modelo;\n $nomeClasse = ucfirst($this->getCamelMode($aTabela['NOME']));\n # Varre a estrutura dos campos da tabela em questao\n $aAtributo = $aListaAtributo = $aAtribuicao = $aFuncaoGet = $aFuncaoSet = array();\n foreach($aTabela as $oCampo){\n $nomeCampo \t = (string)$oCampo->NOME;\n if((string)$oCampo->FKTABELA != ''){\n # Processa nome original da tabela estrangeira\n $nomeFKClasse = ucfirst($this->getCamelMode((string)$oCampo->FKTABELA));\n if($nomeFKClasse == $nomeClasse){\n $nomeCampo = \"o\".ucfirst(preg_replace(\"#^(?:id_?|cd_?)(.*?)#is\", \"$1\", $nomeCampo));\n } else {\n $nomeCampo = \"o$nomeFKClasse\";\n }\n }\n\n # Atribui resultados\n $aAtributo[] \t = \"\\tpublic \\$$nomeCampo;\";\n $aListaAtributo[] = ((string)$oCampo->FKTABELA != '') ? \"$nomeFKClasse \\$$nomeCampo = NULL\" : \"\\$$nomeCampo = NULL\";\n $aAtribuicao[] \t = \"\\t\\t\\$this->$nomeCampo = \\$$nomeCampo;\";\n }\n\n # Monta demais valores a serem substituidos\n $atributos = join($aAtributo,\"\\n\");\n $listaAtributos = join(\", \", $aListaAtributo);\n $atribuicao = join(\"\\n\", $aAtribuicao);\n\n # Substitui todas os parametros pelas variaveis ja processadas\n $copiaModelo = str_replace('%%NOME_CLASSE%%', $nomeClasse, $copiaModelo);\n $copiaModelo = str_replace('%%ATRIBUTOS%%', $atributos, $copiaModelo);\n $copiaModelo = str_replace('%%LISTA_ATRIBUTOS%%', $listaAtributos, $copiaModelo);\n $copiaModelo = str_replace('%%ATRIBUICAO%%', $atribuicao, $copiaModelo);\n\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes/core/basicas\";\n if(!file_exists($dir)) \n mkdir($dir);\n\n $fp = fopen(\"$dir/class.$nomeClasse.php\",\"w\");\n fputs($fp, $copiaModelo);\n fclose($fp);\n }\n return true;\t\n }", "function cariPosisi($batas){\nif(empty($_GET['halagenda'])){\n\t$posisi=0;\n\t$_GET['halagenda']=1;\n}\nelse{\n\t$posisi = ($_GET['halagenda']-1) * $batas;\n}\nreturn $posisi;\n}", "function cariPosisi($batas){\nif(empty($_GET['halagenda'])){\n\t$posisi=0;\n\t$_GET['halagenda']=1;\n}\nelse{\n\t$posisi = ($_GET['halagenda']-1) * $batas;\n}\nreturn $posisi;\n}", "public function getChapeau();", "function siguienteEstado(){\n $this->procedimiento = 'asis.ft_vacacion_ime';\n $this->transaccion = 'ASIS_SIGAV_IME';\n $this->tipo_procedimiento = 'IME';\n //Define los parametros para la funcion\n $this->setParametro('id_proceso_wf_act', 'id_proceso_wf_act', 'int4');\n $this->setParametro('id_estado_wf_act', 'id_estado_wf_act', 'int4');\n $this->setParametro('id_funcionario_usu', 'id_funcionario_usu', 'int4');\n $this->setParametro('id_tipo_estado', 'id_tipo_estado', 'int4');\n $this->setParametro('id_funcionario_wf', 'id_funcionario_wf', 'int4');\n $this->setParametro('id_depto_wf', 'id_depto_wf', 'int4');\n $this->setParametro('obs', 'obs', 'text');\n $this->setParametro('json_procesos', 'json_procesos', 'text');\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public abstract function Ataca();", "function mes($mes){\n $meses = array(\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n $nombre = $meses[$mes-1];\n return $nombre;\n }", "public function productosMasSolicitados($mes,$mes2,$mes3){\n try {\n $this->sql=\"call productoMasVendido(?,?,?)\";\n $query=$this->pdo->prepare($this->sql);\n $query->execute(array($mes,$mes2,$mes3));\n $result = $query->fetchAll(PDO::FETCH_BOTH);\n } catch (PDOException $e) {\n $result = $query->errorInfo()[1];\n }\n\n return $result;\n }", "function calculaPotenciaSimples($idSim, $paramTensao, $paramCorren, $sentido, $param){\n /*\n * $sentido = ENTRADA OU SAIDA, $param = R,S,T\n */\n\n // CRIA UM OBJETO DE DA CLASSE DE CONEXAO\n $connBase = new EficazDB;\n\n\n // Fecha a conexao\n $connBase->close();\n\n return $retorno;\n}", "function formulaires_deleguer_traiter_dist() {\n // $mes_saisies = mes_saisies_film();\n \n // Traitement des données reçues du formulaire, \n // par mail par ex ou insertion dans une base\n // ...\n \n // S'il y a des erreurs, elles sont retournées au formulaire\n // return array('message_erreur'=>'Le film n\\'a pas été enregistré');\n \n // Sinon, le message de confirmation est envoyé\n return array('message_ok'=>'Le film a été enregistré');\n}", "public function calcula13o()\n {\n }", "public function calcula13o()\n {\n }", "function insertarMetodologia(){\n\t\t$this->procedimiento='gem.f_metodologia_ime';\n\t\t$this->transaccion='GEM_GEMETO_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('codigo','codigo','varchar');\n\t\t$this->setParametro('nombre','nombre','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}" ]
[ "0.6556781", "0.6350757", "0.616273", "0.6138004", "0.6101579", "0.6039035", "0.60233206", "0.5968165", "0.5945041", "0.5918091", "0.5912684", "0.58930176", "0.58779126", "0.5870845", "0.5868914", "0.5865812", "0.58139193", "0.576446", "0.57463264", "0.57438636", "0.573213", "0.5730214", "0.572354", "0.57221967", "0.57167524", "0.57158315", "0.57085794", "0.56974286", "0.56942797", "0.5687341", "0.5683806", "0.566463", "0.56518006", "0.5651044", "0.5645336", "0.56419754", "0.5640965", "0.56273437", "0.56261516", "0.56234705", "0.5617382", "0.561506", "0.561301", "0.56081986", "0.560815", "0.5600782", "0.5598488", "0.5585668", "0.55657125", "0.55648744", "0.55645436", "0.5563002", "0.55573386", "0.5556184", "0.55530924", "0.5551444", "0.55496866", "0.5539499", "0.55325574", "0.55324906", "0.5527681", "0.551372", "0.5508879", "0.5508466", "0.55054593", "0.55052704", "0.5503169", "0.54992336", "0.5498539", "0.5497839", "0.5497629", "0.54975754", "0.548759", "0.5483772", "0.5482458", "0.5481883", "0.54793435", "0.5478373", "0.5474693", "0.5460628", "0.54592764", "0.5456558", "0.5451549", "0.54514205", "0.54511255", "0.54511034", "0.54469055", "0.54464245", "0.5445249", "0.54402906", "0.54402906", "0.5439255", "0.543646", "0.5434708", "0.54345286", "0.5432918", "0.5427375", "0.54257685", "0.542031", "0.542031", "0.54173285" ]
0.0
-1
/ RANGO DE LA SEMANA QUE ESTA CORRIENDO
public function dias_del_mes(){ $fecha= date('Y-m-d'); return; date('t',strtotime($fecha)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findRandom();", "function darLetras($solucion){ \r\n $azar = rand(0,strlen($solucion)-1);\r\n $dLetra = $solucion[$azar];\r\n $posicionLetra = $azar.strtoupper($dLetra);\r\n return $posicionLetra;\r\n }", "function rola_dado_simples($qtd, $codDado){\n\t$i = 0; $j = 1;\n\t$resultado = 0;\n\n\t$populacao = array();\n\t$limite = $codDado * 10;\n\n\t//Funcao que espalha os numeros do intervalo a ser rolado em um array\n\twhile($i < $limite){\n\n\t\tif($j > $codDado){\n\t\t\t$j = 1;\n\t\t}\n\n\t\tarray_push($populacao, $j);\n\n\t\t$j++;\n\t\t$i++;\n\t}\n\n\t$i = 0;\n\t$pos1 = 0;\n\t$pos2 = 0;\n\t$temp = 0;\n\n\t//Embaralha os numeros da população e acumula o resultado das rolagens\n\twhile($i < $limite){\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\t$delay = rand(1, 1000);\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos1 = rand(0, ($limite-1));\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos2 = rand(0, ($limite-1));\n\n\t\t$temp = $populacao[$pos1];\n\n\t\t//troca os valores de lugar\n\t\t$populacao[$pos1] = $populacao[$pos2];\n\t\t$populacao[$pos2] = $temp;\n\n\t\t$i++;\n\t}\n\n\t//Acumula o resultado das rolagens\n\t$i = 0;\n\twhile($i < $qtd){\n\t\t$resultado += $populacao[rand(1, $codDado)];\n\t\t$i++;\n\t}\n\n\treturn $resultado;\n}", "public static function random(){\n $conexion = StorianDB::connectDB();\n $query = $conexion->query(\"SELECT * FROM cuento ORDER BY RAND() LIMIT 1\");\n return $tabla = $query->fetchObject();\n }", "public function randomize()\n {\n return mt_rand(1, $this->maxnumber());\n }", "public function random();", "function rand() {\n\n $next = $this->find('first', array('order'=>'position DESC'));\n\n $rand = rand(1, $next['Ringsite']['position']);\n\n $next = $this->find('first', array('conditions'=>array('position'=>$rand)));\n\n return $next;\n }", "function matricularVehiculo(){\r\n $matricula _aleatoria = rand();\r\n\r\n $encontrado = false;\r\n for ($i=0; $i< count ($this->vehiculos) && ($encontrado==false); $i++) {\r\n if ($this->vehiculos[$i] != null) {\r\n if($this->vehiculos[$i]->getMatricula() =='') {}\r\n $this->vehiculos[$i]->getMatricula($matricula_aleatoria);\r\n $encontrado = true;\r\n $pos = $i;\r\n }\r\n }\r\n }", "public function orderRandom();", "function randomLCG($x,$pos) {\n $variable = (2*$x[$pos]+0)%100;\n $number[$pos] = $variable;\n $verdadero = repetidos($number,$pos);\n if (is_numeric($verdadero) == true){\n\t\treturn $verdadero;\n }\n\n}", "function call_15_rand($min,$max) {\n $risposta = [];\n // Generiamo 15 numeri (suppongo compresi tra 1 e 20):\n $i = 0;\n while ($i < 15) {\n $attuale = random_int($min,$max);\n while (array_search($attuale,$risposta) !== false) {\n $attuale = random_int($min,$max);\n }\n $risposta[$i] = $attuale;\n $i = $i + 1;\n }\n return $risposta;\n}", "function getSpin(){\n\t$s=rand(1,38);\n\treturn $s;\n}", "function matricularVehiculo(){\r\n $mat_aleatoria= rand();\r\n\r\n $enc=false;\r\n $pos=0;\r\n for($i=0;$i<count($this->vehiculos)&&($enc==false;$i++){\r\n if($this->vehículos[$i]!= null){\r\n if($this->vehículos[$i]!= null){\r\n $this->vehiculos[$i]->setMatricula($mat_aleatoria);\r\n $enc=true;\r\n $pos=$i;\r\n }\r\n } \r\n } \r\n return $this->vehiculos[$pos];\r\n }", "function random_numbers($ms) {\n\t\t\t\t\n\t\t\t\t$n = rand(0, $ms);\n\t\t\t\t\n\t\t\t\treturn $n;\n\t\t\t\t\n\t\t\t}", "function newSeq5($num, $post = false)\n{\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n\n\n $a0 = intval(rand(-30, -20));\n while ($a0 == 0) {\n $a0 = intval(rand(-30, -20));\n }\n\n $a1 = intval(rand(20, 30));\n while ($a1 == 0) {\n $a1 = intval(rand(20, 30));\n }\n\n $a2 = intval(rand(-30, 30));\n while ($a2 == 0) {\n $a2 = intval(rand(-30, 30));\n }\n\n $r = intval(rand(-5, 5));\n while ($r == 0) {\n $r = intval(rand(-5, 5));\n }\n\n $m = intval(rand(2, 4));\n $a = [$a0, $a1, $a2];\n //An = (An-1 + An-2) *R\n for ($i = 3; $i <= 6; $i++) {\n $a[] = $r * ($a[$i - 3] + $a[$i - 2] + $a[$i - 1]);\n }\n\n $title = '';\n //An = (An-1 + An-2) *R\n for ($i = 0; $i < 6; $i++) {//miss 7\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n // 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[6];\n// An = (An-1 + An-2 +An-3) *R, 填中间\n// $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n\n if ($r > 0) {\n $hint = \"A[n]=$r*(A[n-1] + A[n-2] + A[n-3])\";\n } else {\n $hint = \"A[n]=($r)*(A[n-1] + A[n-2] + A[n-3])\";\n }\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n\n}", "function newSeq4($num, $post = false)\n{\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n\n\n $a0 = intval(rand(50, 150));\n while ($a0 == 0) {\n $a0 = intval(rand(50, 150));\n }\n\n $a1 = intval(rand(-150, -50));\n while ($a1 == 0) {\n $a1 = intval(rand(-150, -50));\n }\n\n $r = intval(rand(-6, 6));\n\n while ($r == 0) {\n $r = intval(rand(-6, 6));\n }\n\n $m = intval(rand(2, 4));\n $a = [$a0, $a1];\n //An = (An-1 + An-2) *R\n for ($i = 2; $i <= 6; $i++) {\n $a[] = $r * ($a[$i - 2] + $a[$i - 1]);\n }\n\n $title = '';\n //An = (An-1 + An-2) *R\n for ($i = 0; $i < 6; $i++) {//miss 7\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n // 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[6];\n //An = (An-1 + An-2) *R, 填中间\n $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n // hint An = R*(An-1 + An-2)\n\n if ($r > 0) {\n $hint = \"A[n]=$r*(A[n-1] + A[n-2])\";\n } else {\n $hint = \"A[n]=($r)*(A[n-1] + A[n-2])\";\n }\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n\n}", "public function randomPos() {\n $this->columna=rand(0,3);\n $this->fila=rand(0,3);\n }", "function rola_dado_completo($qtd, $codDado, $operacao, $modificador){\n\t$resultado = 0;\n\n\t$i = 0; $j = 1;\n\n\techo \"Em rola_dado_completo(): <br/>\";\n\techo \"qtd: \" . $qtd . \"<br/>\";\n\techo \"codDado: \" . $codDado . \"<br/>\";\n\techo \"operacao: \" . $operacao . \"<br/>\";\n\techo \"modificador: \" . $modificador . \"<br/>\";\n\n\t$populacao = array();\n\t$limite = $codDado * 10;\n\n\tif($codDado == 1){\n\t\t//Adiciona o modificador na rolagem\n\t\tif($operacao == \"+\"){\n\t\t\t$resultado = 1 + $modificador;\n\t\t}\n\t\t\n\t\tif($operacao == \"-\"){\n\t\t\t$resultado1 - $modificador;\n\t\t}\n\n\t\tif($operacao == \"*\"){\n\t\t\t$resultado = $modificador;\n\t\t}\n\n\t\tif($operacao == \"/\"){\n\t\t\t$resultado = 1 / $modificador;\n\t\t}\n\n\t\treturn $resultado;\n\t}\n\n\t//Funcao que espalha os numeros do intervalo a ser rolado em um array\n\twhile($i < $limite){\n\n\t\tif($j > $codDado){\n\t\t\t$j = 1;\n\t\t}\n\t\tarray_push($populacao, $j);\n\n\t\t$j++;\n\t\t$i++;\n\t}\n\n\t$i = 0;\n\t$pos1 = 0;\n\t$pos2 = 0;\n\t$temp = 0;\n\n\t//Embaralha os numeros da população e acumula o resultado das rolagens\n\twhile($i < $limite){\n\t\t$max = $limite -1;\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\t$delay = rand(1, 1000);\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos1 = rand(0, $max);\n\n\t\t//Gera um pequeno delay (p ver se aumenta a aleatoriedade)\n\t\tfor($k = 0; $k < $delay; $k++);\n\t\t$pos2 = rand(0, $max);\n\n\t\t$temp = $populacao[$pos1];\n\n\t\t//troca os valores de lugar\n\t\t$populacao[$pos1] = $populacao[$pos2];\n\t\t$populacao[$pos2] = $temp;\n\n\t\t$i++;\n\t}\n\n\t//Acumula o resultado das rolagens\n\t$i = 0;\n\twhile($i < $qtd){\n\t\t$max = $limite -1;\n\t\t$resultado += $populacao[rand(0, $max)];\n\t\t$i++;\n\t}\n\n\t// echo \"Resultado da rolagem dos dados:\" . $resultado .\"<br/>\";\n\n\t//Adiciona o modificador na rolagem\n\tif($operacao == \"+\"){\n\t\t$resultado += $modificador;\n\t}\n\t\n\tif($operacao == \"-\"){\n\t\t$resultado -= $modificador;\n\t}\n\n\tif($operacao == \"*\"){\n\t\t$resultado *= $modificador;\n\t}\n\n\tif($operacao == \"/\"){\n\t\t$resultado /= $modificador;\n\t}\n\n\treturn $resultado;\n}", "function barajar($bolsa){\n $barajado = [];\n $count = count($bolsa);\n for($i = 0; $i < $count; $i ++){\n $rand = array_rand($bolsa);\n array_push($barajado, $bolsa[$rand]);\n array_splice($bolsa, $rand,1);\n }\n return $barajado;\n}", "protected function randomIndex() {\n return mt_rand(1, 10);\n }", "public function generator($a){\n $countr = 0;\n while($countr < 70)//random spread 50 holes on the wall\n {\n $random = range(0, 49);\n shuffle($random);\n $x = $random[0];\n $y = $random[1];\n if($x != 0&&$x != 49&&$y != 0&&$y != 49){\n $a[$y][$x] = 0;\n $countr++; \n }\n }\n \n $statistic = []; \n for($i = 0;$i <= 49;$i ++)\n {\n for($j = 0;$j <= 49;$j ++)\n {\n if($a[$i][$j] == 0){\n $cell = [$i,$j];\n $statistic[] = $cell;\n }\n }\n }\n \n for($i = 0;$i < count($statistic);$i ++)//make a holes spread like 'cross' pattern from 4 direction, which reach end or another road stop push down the wall\n {\n $tcell = $statistic[$i];\n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to up\n $curri--;\n while($curri >= 0){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri][$currj - 1] == 0 || $a[$curri][$currj + 1] == 0){//left or right,\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0;\n $curri--;\n }\n \n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to down\n $curri++;\n while($curri <= 49){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri][$currj - 1] == 0 || $a[$curri][$currj + 1] == 0){\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0; \n $curri++;\n }\n \n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to left\n $currj--;\n while($currj >= 0){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri - 1][$currj] == 0 || $a[$curri + 1][$currj] == 0){\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0; \n $currj--;\n }\n \n $curri = $tcell[0];\n $currj = $tcell[1];\n \n //dig to right\n $currj++;\n while($currj <= 49){\n if($a[$curri][$currj] == 0)\n break;\n if($a[$curri - 1][$currj] == 0 || $a[$curri + 1][$currj] == 0){\n $a[$curri][$currj] = 0;\n break;\n }\n $a[$curri][$currj] = 0;\n $currj++;\n }\n }\n return $a;\n }", "function newSeq9($num, $post = false)\n{\n\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n $a0 = intval(rand(-150, -50));\n while ($a0 == 0) {\n $a0 = intval(rand(-150, -50));\n }\n\n $a1 = intval(rand(25, 125));\n while ($a1 == 0) {\n $a1 = intval(rand(25, 125));\n }\n\n\n $m = intval(rand(2, 6));\n\n $a = [$a0, $a1];\n\n for ($i = 2; $i <= 8; $i++) {\n if ($i % 2 == 1) {\n $a[] = intval(rand(-55, 55));\n } else {\n $a[] = $a0 - $a[$i - 1];\n }\n }\n\n $title = '';\n //A2n-1 + A2n = A0\n for ($i = 0; $i < 8; $i++) {\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n// 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[8];\n //A2n-1 + A2n = A0 填中间\n// $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n //A2n-1 + A2n = A0\n\n $hint = \"A[2n-1] + A[2n] = A[0], n is greater than zero\";\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n}", "function newSeq2($num, $post = false)\n{\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n $r = intval(rand(-80, 80));\n while ($r == 0) {\n $r = intval(rand(-80, 80));\n }\n\n $b = $r < 0 ?\n intval(rand(80, 150))\n : intval(rand(-150, -80));\n\n $p = intval(rand(1, 3));\n\n $m = intval(rand(1, 5));\n\n $title = '';\n for ($i = 0; $i < 7; $i++) {\n //An = Rn^p + B, 填中间\n// if($i == $m){\n// $title = $title . \",?\";\n// continue;\n// }\n\n $data = $r * pow($i, $p) + $b;\n if ($i == 0) {\n $title = $title . \"$data\";\n } else {\n $title = $title . \",$data\";\n }\n }\n\n// An = Rn^p + B, 填末尾\n $title = $title . \",?\";\n $res = $r * pow(7, $p) + $b;\n //An = Rn^p + B, 填中间\n// $res = $r* pow($m,$p) + $b;\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n if ($b == 0) {\n $hint = \"A[n]=$r*n^$p\";\n } else if ($b > 0) {\n $hint = \"A[n]=$r*n^$p+$b\";\n } else {\n $hint = \"A[n]=$r*n^$p$b\";\n\n }\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n\n curl_close($hp->ch);\n\n\n}", "function newSeq3($num, $post = false)\n{\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n\n\n $r = intval(rand(-80, 80));\n while ($r == 0) {\n $r = intval(rand(-80, 80));\n }\n\n $b = $r < 0 ?\n intval(rand(80, 150))\n : intval(rand(-150, -80));\n\n\n $c = $r < 0 ?\n intval(rand(80, 150))\n : intval(rand(-150, -80));\n\n $p = intval(rand(1, 3));\n $m = intval(rand(1, 5));\n $title = '';\n for ($i = 0; $i < 7; $i++) {\n //An = Rn^p + Bn +C,, 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $data = $r * pow($i, $p) + $b * $i + $c;\n\n if ($i == 0) {\n $title = $title . \"$data\";\n } else {\n $title = $title . \",$data\";\n }\n }\n\n //An = Rn^p + Bn +C,, 填末尾\n $title = $title . \",?\";\n $res = $r * pow(7, $p) + $b * 7 + $c;\n //An = Rn^p + Bn +C,, 填中间\n// $res = $r * pow($m, $p) + $b * $m + $c;\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n $hint = \"A[n]=$r*n^$p\";\n\n if ($b > 0) {\n $hint = $hint . \"+$b*n\";\n } else {\n $hint = $hint . \"$b*n\";\n }\n\n\n if ($c > 0) {\n $hint = $hint . \"+$c\";\n } else {\n $hint = $hint . \"$c\";\n }\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n\n curl_close($hp->ch);\n\n\n}", "final public static function uniqueRandom(){\n $start=0;\n $end=3;\n $cn=2;\n for($i=$start;$i<=$end;++$i){\n $arr[$i]=$i;\n }\n $c=$cn;\n for($i=0;$i<$cn;++$i){\n $rval= rand($start, $end);\n $rval=$rval%$end+1;\n $arr1[$i]=$arr[$rval];\n $arr[$rval]=$arr[$c];\n $c--;\n }\n return $arr1;\n }", "function newSeq10($num, $post = false)\n{\n\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n $a0 = intval(rand(-150, -50));\n while ($a0 == 0) {\n $a0 = intval(rand(-150, -50));\n }\n\n $a1 = intval(rand(25, 125));\n while ($a1 == 0) {\n $a1 = intval(rand(25, 125));\n }\n\n $a2 = intval(rand(-45, 45));\n while ($a2 == 0) {\n $a2 = intval(rand(-45, 45));\n }\n\n\n $m = intval(rand(2, 10));\n\n $a = [$a0, $a1, $a2];\n\n for ($i = 3; $i <= 12; $i++) {\n if ($i % 2 == 1) {\n $a[] = $a[0] - $a[$i - 1] - $a[$i - 2];\n } else {\n $a[] = intval(rand(-55, 55));\n }\n }\n\n $title = '';\n //A2n-1 + A2n + A2n+1 = A0\n for ($i = 0; $i < 12; $i++) {\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n// 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[12];\n //A2n-1 + A2n = A0 填中间\n// $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n //A2n-1 + A2n + A2n+1 = A0\n\n $hint = \"A[2n-1] + A[2n] + A[2n+1] = A[0], n is greater than zero\";\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n}", "function cointoss($toss)\n{\n $test_array = [];\n $result_array = [];\n do {\n if (mt_rand(1,2) == 1)\n {\n array_push($result_array, 1);\n unset($test_array);\n $test_array = [];\n }\n\t\telse\n\t\t{\n\t\tarray_push($result_array, 2);\n\t\tarray_push($test_array, 2);\n\t\t}\n } while(count($test_array) < $toss);\n return $result_array;\n}", "function newSeq6($num, $post = false)\n{\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n\n\n $a0 = intval(rand(-30, -20));\n while ($a0 == 0) {\n $a0 = intval(rand(-30, -20));\n }\n\n $a1 = intval(rand(20, 30));\n while ($a1 == 0) {\n $a1 = intval(rand(20, 30));\n }\n\n\n $r = intval(rand(-5, 5));\n while ($r == 0) {\n $r = intval(rand(-5, 5));\n }\n\n $b = $r > 0 ?\n intval(rand(-40, -20))\n : intval(rand(20, 40));\n\n\n $m = intval(rand(2, 4));\n $a = [$a0, $a1];\n //An = (An-1 + An-2) *R\n for ($i = 2; $i <= 6; $i++) {\n $a[] = $r * ($a[$i - 2] + $a[$i - 1]) + $b;\n }\n\n $title = '';\n //An = (An-1 + An-2) *R +b\n for ($i = 0; $i < 6; $i++) {//miss 7\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n // 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[6];\n// An = (An-1 + An-2) *R + b, 填中间\n// $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n // hint An = R*(An-1 + An-2)\n\n if ($r > 0) {\n $hint = \"A[n]=$r*(A[n-1] + A[n-2])\";\n } else {\n $hint = \"A[n]=($r)*(A[n-1] + A[n-2])\";\n }\n\n if ($b > 0) {\n $hint = $hint . \"+$b\";\n } else {\n $hint = $hint . \"$b\";\n }\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n\n}", "public function generateCodigo()\n {\n $this->codigo = random_int(1000000,9999999);\n }", "private function getSequence() {\n srand(time());\n return rand(1, 1000);\n }", "function recy($c)\n {\n $min = round(min((sqrt(($c )*35)),100)*100);\n $max = round(min((sqrt(($c+2)*35)),100)*100);\n return mt_rand($min,$max)/10000;\n }", "function getMerezcoTarjeta(){\n\t\tif($this->numero_cambio >= 3)\n\t\t\t$necesito=2;\n\t\telse\n\t\t\t$necesito=1;\n\t\t\n\t\tif($necesito <= $this->sacar_tarjeta){\n\t\t\t$this->sacar_tarjeta=0;\n\t\t\treturn 1;\n\t\t}\n\t\telse{\n\t\t\t$this->sacar_tarjeta=0;\n\t\t\treturn 0;\n\t\t}\n\t}", "function newSeq8($num, $post = false)\n{\n\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n $a0 = intval(rand(-9, 9));\n while ($a0 == 0) {\n $a0 = intval(rand(-9, 9));\n }\n\n $a1 = intval(rand(-9, 9));\n while ($a1 == 0) {\n $a1 = intval(rand(-9, 9));\n }\n\n $b = $a1 > 0 ? intval(rand(-150, -50)) : intval(rand(50, 150));\n\n\n $p = intval(rand(1, 2));\n\n $m = intval(rand(2, 4));\n\n $a = [$a0, $a1];\n\n for ($i = 2; $i <= 5; $i++) {\n $a[] = pow($a[$i - 2], $p) + $b;\n }\n\n $title = '';\n //An = (An-1)^p + B\n for ($i = 0; $i < 5; $i++) {//miss 7\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n// 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[5];\n// An = (An-1)^p + B 填中间\n// $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n //An = (An-1)^p + B\n\n $hint = \"A[n]=A[n-2]^$p\";\n\n if ($b > 0) {\n $hint = $hint . \"+$b\";\n } else {\n $hint = $hint . \"$b\";\n }\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n\n}", "function random(){\n $randomnummer = rand(1,6);\n return $randomnummer;\n}", "public function rgveda_verse_modern($gra) {\n $data = [\n [1,191,1,1,191],\n [192,234,2,1,43],\n [235,295,3,1,62],\n [297,354,4,1,58],\n [355,441,5,1,87],\n [442,516,6,1,75],\n [517,620,7,1,104],\n [621,668,8,1,48],\n [1018,1028,8,59,59], //Vālakhilya hymns 1—11\n [669,712,8,60,103],\n [713,826,9,1,114],\n [827,1017,10,1,191]\n ];\n for($i=0;$i<count($data);$i++) {\n list($gra1,$gra2,$mandala,$hymn1,$hymn2) = $data[$i];\n if (($gra1 <= $gra) && ($gra<=$gra2)) {\n $hymn = $hymn1 + ($gra - $gra1);\n $x = \"$mandala.$hymn\";\n return $x;\n }\n }\n return \"?\"; // algorithm failed\n}", "public function definition()\n {\n $user = rand(1, 503);\n $user2 = rand(1, 503);\n if($user==$user2){\n $user2 = rand(1, 503);\n $user = rand(1, 503);\n }\n $bucle = 0;\n $distinto = Follower::where('seguidor', $user)->where('seguido', $user2)->find(1);\n while($bucle==0){\n if($distinto==null){\n return [\n 'seguidor'=>$user,\n 'seguido'=>$user2\n ];\n }else{\n $user = rand(1, 503);\n $user2 = rand(1, 503);\n if($user==$user2){\n $user2 = rand(1, 503);\n $user = rand(1, 503);\n }\n $distinto = Follower::where('seguidor', $user)->where('seguido', $user2)->find(1);\n }\n }\n }", "function sed_gera_numero( $min, $max, $exclude_numbers = array() ) {\n\n\tsort( $exclude_numbers );\n\n if ( $max - count( $exclude_numbers ) < $min ) {\n return false;\n }\n\n // $pos is the position that the random number will take\n // of all allowed positions\n $pos = mt_rand( 0, $max - $min - count( $exclude_numbers ) );\n\n // $num being the random number\n $num = $min;\n\n // while $pos > 0, step to the next position\n // and decrease if the next position is available\n for ( $i = 0; $i < count( $exclude_numbers ); $i += 1 ) {\n\n // if $num is on an excluded position, skip it\n if ( $num == $exclude_numbers[ $i ] ) {\n $num += 1;\n continue;\n }\n\n $dif = $exclude_numbers[ $i ] - $num;\n\n // if the position is after the next excluded number,\n // go to the next excluded number\n if ( $pos >= $dif ) {\n $num += $dif;\n\n // -1 because we're now at an excluded position\n $pos -= $dif - 1;\n } else {\n // otherwise, return the free position\n return $num + $pos;\n }\n }\n\n // return the number plus the open positions we still had to go\n return $num + $pos;\n}", "function rand_option($min,$max,$amount){\r\n\r\n $num = range($min,$max);\r\n shuffle($num);\r\n return array_slice($num,0,$amount);\r\n\r\n}", "public function randomTriangular()\n {\n $u = $this::randomFloat(0,1);\n $a = $this->min();\n $b = $this->max();\n $c = $this->centre;\n $Fc = ($c - $a) / ($b - $a);\n\n if (0 < $u && $u < $Fc) {\n return $a + sqrt($u * ($b - $a) * ($c - $a));\n } else {\n return $b - sqrt((1 - $u) * ($b - $a) * ($b - $c));\n }\n }", "public function borrar(){\n }", "public function borrar(){\n }", "public function borrar(){\n }", "protected function individu_krustosana() {\n\n\t\t$krustosana = $this->krustosanas_pari; $paris = array();\n\n\n\t\t$pari_krusosanai = (count($krustosana) % 2 > 0) ? (count($krustosana) - 1) / 2 : (count($krustosana)) / 2;\n\t\tfor($i = 0; $i < $pari_krusosanai; $i++) {\n\t\t\t\n\t\t\tif($i > 0 && $krustosana[2*$i][1] == $krustosana[2*$i+1][1] || $i == 0 && $krustosana[0][1] == $krustosana[1][1]) {\n\t\t\t\t$paris[$i] = array('-', '-', '-', '-');\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$paris[$i] = array($this->rand->generate(), $this->rand->generate());\n\n\t\t\t\t$randVal = floatval($paris[$i][0]); $randKeys = array_keys($this->krustosanas_intervali[0]);\n\n\t\t\t\t\tfor($j = 0; $j < count($this->krustosanas_intervali[0]); $j++) {\n\t\t\t\t\t\tif($randVal < floatval($randKeys[$j])) {\n\t\t\t\t\t\t\tif($j > 0) $paris[$i][] = $this->krustosanas_intervali[0][$randKeys[$j]];\n\t\t\t\t\t\t\telse $paris[$i][] = $this->krustosanas_intervali[0][$randKeys[0]];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t$randVal = floatval($paris[$i][1]); $randKeys = array_keys($this->krustosanas_intervali[1]);\n\t\t\t\t\tfor($j = 0; $j < count($this->krustosanas_intervali[1]); $j++) {\n\t\t\t\t\t\tif($randVal < floatval($randKeys[$j])) {\n\t\t\t\t\t\t\tif($j > 0) $paris[$i][] = $this->dalijuma_skaitlis + $this->krustosanas_intervali[1][$randKeys[$j]];\n\t\t\t\t\t\t\telse $paris[$i][] = $this->dalijuma_skaitlis + $this->krustosanas_intervali[1][$randKeys[0]];\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}\n\n\t\t\tif($i > 0) $paris[$i][] = array($krustosana[2*$i], $krustosana[2*$i+1]);\n\t\t\telse $paris[$i][] = array($krustosana[0], $krustosana[1]);\n\t\t}\n\n\t\t// Krustojam\n\t\t$berni = array();\n\t\tforeach($paris as $key => $p) {\n\t\t\t\n\t\t\t$start = $p[2]; $end = $p[3];\n\t\t\tif($start == '-' || $end == '-') {\n\t\t\t\t$this->berni[] = $this->populacija[$p[4][0][1]]['BIN'];\n\t\t\t\t$this->berni[] = $this->populacija[$p[4][1][1]]['BIN'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$pirmais = str_split($this->populacija[$p[4][0][1]]['BIN']);\n\t\t\t\t$otrais = str_split($this->populacija[$p[4][1][1]]['BIN']);\n\n\t\t\t\tfor($i = $start; $i <= $end; $i++) {\n\t\t\t\t\t$tmp = $pirmais[$i];\n\t\t\t\t\t$pirmais[$i] = $otrais[$i];\n\t\t\t\t\t$otrais[$i] = $tmp;\n\t\t\t\t}\n\t\t\t\t$this->berni[] = implode('', $pirmais);\n\t\t\t\t$this->berni[] = implode('', $otrais);\n\t\t\t}\n\n\n\t\t}\n\t\t?>\n\t\t<h4>Indivīdu krustošana</h4>\n\t\t<table border=1>\n\t\t\t<tr>\n\t\t\t\t<th rowspan=2>Pāris</th>\n\t\t\t\t<th rowspan=2>BIN</th>\n\t\t\t\t<th colspan=4>Krustošanās punkti</th>\n\t\t\t\t<th rowspan=2>Bērni BIN</th>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>G.sk.</th>\n\t\t\t\t<th>1. punkts</th>\n\t\t\t\t<th>G.sk.</th>\n\t\t\t\t<th>2. punkts</th>\n\t\t\t</tr>\n\t\t\t<?php $c = 0;\n\t\t\tfor($i = 0; $i < $pari_krusosanai * 2; $i++): ?>\n\t\t\t\t<tr>\n\t\t\t\t\t<?php if($i % 2 == 0): $c++; ?>\n\t\t\t\t\t\t<td rowspan=2><?php echo $c; ?></td>\n\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php echo $this->populacija[$krustosana[$i][1]]['BIN']; ?>\n\t\t\t\t\t</td>\n\n\t\t\t\t\t<?php if($i % 2 == 0): ?>\n\n\t\t\t\t\t\t<td rowspan=2><?php echo $paris[$c-1][0]; ?></td>\n\t\t\t\t\t\t<?php if($paris[$c-1][2] != '-'): ?><td rowspan=2>Aiz <?php echo $paris[$c-1][2]; ?>. gēna</td>\n\t\t\t\t\t\t<?php else: ?><td rowspan=2>-</td><?php endif; ?>\n\n\t\t\t\t\t\t<td rowspan=2><?php echo $paris[$c-1][1]; ?></td>\n\t\t\t\t\t\t<?php if($paris[$c-1][3] != '-'): ?><td rowspan=2>Aiz <?php echo $paris[$c-1][3]; ?>. gēna</td>\n\t\t\t\t\t\t<?php else: ?><td rowspan=2>-</td><?php endif; ?>\n\n\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<?php echo $this->berni[$i]; ?>\n\t\t\t\t\t</td>\n\n\t\t\t\t</tr>\n\t\t\t<?php endfor; ?>\n\t\t</table>\n\t\t<?php\n\t}", "function pick_prime() {\r\n\t\t$primes = array(13,17,23,29,43,57,71);\r\n\t\t$i = rand(0,6);\r\n\t\t$j = $primes[$i];\r\n\t\treturn($j);\r\n\t}", "function Motvalide($chaine ) {\n\n$lettres=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$lettresM=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$v=CompterNombreElement($lettres);\n$t=false;\n$nbr=CompteNombreCaractere($chaine);\nif ($nbr>20) {\n\t$t=false;\n}\n else {\n for ($i=0; $i <$nbr; $i++) \n { \n \t for ($j=0; $j <$v ; $j++) \n \t { \n \t if ($chaine[$i]==$lettres[$j] or $chaine[$i]==$lettresM[$j]) \n\t \t {\n\t \t\t $t=true;\n\t \t\t break;\n\t \t }\t \n\t \t if ($j==$v-1) {\n\t \t \t$t=false;\n\t \t \tbreak;\n\t \t }\n\n \t }\n \t if ($t==false) \n\t \t {\n\t \t break;\n \t } \n }\t\n }\n \nreturn $t;\n}", "function random_angka($panjang) {\n $r = ''; //set string kosong\n //mengulang sebanyak $panjang dengan angka random dari 0-9\n for ($x=0; $x<$panjang; $x++) $r .= random_int(0, 9);\n return $r; //mereturn hasil string yang berisi angka random tadi\n}", "public function getChromoRoulette()\n {\n //Generate a random number between 0 & total fitness count\n $slice = (double)((Helper::randomFloat()) * $this->totalFitness);\n\n //This will be the chosen Chromosome\n $theChosenOne = NULL;\n\n //Go through the chromosomes adding up the fitness so far\n $fitnessSoFar = 0.0;\n foreach ($this->population as $genome) {\n $fitnessSoFar += $genome->getFitness();\n\n //if the fitness so far > random number return the chromo at this point\n if ($fitnessSoFar >= $slice) {\n $theChosenOne = $genome;\n break;\n }\n }\n\n //If the Roullette failed give at least some random genome\n if ($theChosenOne === NULL) {\n $theChosenOne = $this->population[mt_rand(0, count($this->population) - 1)];\n }\n return $theChosenOne;\n }", "protected function fetchDCRoll(): int {\n return rand(1, 1000);\n }", "function rand_num() {\n\t\t\t\t\n\t\t\t\t$r = rand(1000000, 9999999);\n\t\t\t\treturn $r;\n\t\t\t\n\t\t\t}", "public function randomMemberNOZero();", "public static function seedRand() {\r\n\t\tsrand((int)((($m=microtime(true))-((int)$m))*pow(10,(int)log10(PHP_INT_MAX)))); \r\n\t}", "function CriaCodigo() { //Gera numero aleatorio\r\n for ($i = 0; $i < 40; $i++) {\r\n $tempid = strtoupper(uniqid(rand(), true));\r\n $finalid = substr($tempid, -12);\r\n return $finalid;\r\n }\r\n }", "function mutasi($induk){\n\t\t$pm = 0.11;\n\t\t$jumlah_gen = count($induk);\n\t\tfor ($i=0; $i < $jumlah_gen; $i++) { \n\t\t\t$random = rand(0,10)/10;\n\t\t\tif($random <= $pm){\n\t\t\t\t$induk[$i] = rand(0,10);\n\t\t\t}\n\t\t}\n\t\treturn $induk;\n\t}", "function scramble($number) {\n \t\t// return (30533914 * (10033320 - $number + date('s') ) + 151647) % 99447774483;\n\t\t\t$r = rand(100000000000, 999999111111);\n\t\t\treturn abs($r + $id); //better consistency\n\n\t\t}", "public function rand($min,$max);", "function mate($mommy, $daddy) {\r\n\t$arr = range(1,CITY_COUNT);\r\n\t$baby = array();\r\n\tfor($i = 1; $i<=CITY_COUNT-1;$i++){\r\n\tarray_push($baby,1);\r\n\tarray_push($baby,\"-\");\r\n\t}\r\n\tarray_pop($baby);\r\n\r\n\tforeach($arr as $v)\r\n\t{\t\r\n\t\twhile(in_array($v,$baby)){\r\n\t\t$baby = array();\r\n\t\tfor($i = 0; $i < CITY_COUNT; $i++)\r\n\t\t{\r\n\t\t\t$chosen = mt_rand(0,1);\r\n\t\t\t$mom = explode(\"-\",$mommy);\r\n\t\t\t$dad = explode(\"-\",$daddy);\r\n\t\t\tif($chosen) {\r\n\t\t\t\tarray_push($baby,$mom[0]);\r\n\t\t\t\tarray_push($baby,\"-\");\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tarray_push($baby,$dad[0]);\r\n\t\t\t\tarray_push($baby,\"-\");\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t}\r\n\tarray_pop($baby);\r\n\tforeach($baby as $v)\r\n\t{\r\n\t\t$baby1.=$v;\r\n\t}\r\n\treturn $baby1;\r\n}", "function _randomSteps(){\n return rand(3000, 9000);\n }", "function Gen(){\n\t$res=rand(0, 680);\n\tif( $res<50 ){ $n=6; }\n\tif( ($res>=50)&&($res<250) ){ $n=5; }\n\tif( ($res>=250)&&($res<400) ){ $n=4; }\n\tif( ($res>=400)&&($res<500) ){ $n=3; }\n\tif( ($res>=500)&&($res<600) ){ $n=2; }\n\tif($res>=600){ $n=1; }\n\treturn $n;\n}", "private static function genNRand($q) {\n\t $i=$rac='';\n\t for ($i=0; $i<$q ;$i++) {\n\t $er=rand(0,2);\n\t switch ($er) {\n\t case 0: $rac.=rand(0,9); break;\n\t case 1: $rac.=chr(rand(65,90)); break;\n\t case 2: $rac.=chr(rand(98,122)); break;\n\t }\n\t }\n\t return ($rac);\n\t}", "function ran()\r\n\t{\r\n\t\tsrand((double)microtime()*1000000^getmypid());\r\n\t}", "function newSeq7($num, $post = false)\n{\n\n $hp = new Http();\n\n\n for ($t_num = 0; $t_num < $num; $t_num++) {\n $a0 = intval(rand(-8, 8));\n while ($a0 == 0) {\n $a0 = intval(rand(-8, 8));\n }\n\n $b = $a0 > 0 ? intval(rand(-50, -30))\n : intval(rand(1, 60));\n\n\n $p = intval(rand(1, 2));\n\n $m = intval(rand(1, 2));\n\n $a = [$a0];\n\n for ($i = 1; $i <= 3; $i++) {\n $a[] = pow($a[$i - 1], $p) + $b;\n }\n\n $title = '';\n //An = (An-1)^p + B\n for ($i = 0; $i < 3; $i++) {//miss 7\n if ($i == 0) {\n $title = \"$a[$i]\";\n continue;\n }\n// 填中间\n// if ($i == $m) {\n// $title = $title . \",?\";\n// continue;\n// }\n\n $title = $title . \",$a[$i]\";\n\n }\n\n// 填末尾\n $title = $title . \",?\";\n $res = $a[3];\n// An = (An-1)^p + B 填中间\n// $res = $a[$m];\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-test-seq';\n\n //An = (An-1)^p + B\n\n $hint = \"A[n]=A[n-1]^$p\";\n\n if ($b > 0) {\n $hint = $hint . \"+$b\";\n } else {\n $hint = $hint . \"$b\";\n }\n\n\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo $t_num;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem', $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n unset($a);\n curl_close($hp->ch);\n\n\n}", "function f_obj($individu){\n\t\t$cluster = count($individu); //menghitung jumlah cluster berdasarkan individu\n\t\t$target = 10;\n\t\t$hasil = 0;\n\t\tfor ($i=0; $i < $cluster; $i++) { \n\t\t\t$hasil += $individu[$i];\n\t\t}\n\n\t\t$evaluasi = abs($hasil - $target);\n\t\treturn $evaluasi; //nilai fitness masih 0-10\n\t}", "function SM_randomint($max) {\n static $startseed = 0; \n if (!$startseed) {\n $startseed = (double)microtime()*getrandmax(); \n srand($startseed); \n }\n return(rand()%$max); \n}", "static function getMobileRand();", "public function Random()\n {\n return parent::Random();\n }", "public function randomLinear()\n {\n return mt_rand($this->min(), $this->max());\n }", "function en_rojo($anio){\n $ar=array();\n $ar['anio']=$anio;\n $sql=\"select sigla,descripcion from unidad_acad \";\n $sql = toba::perfil_de_datos()->filtrar($sql);\n $resul=toba::db('designa')->consultar($sql);\n $ar['uni_acad']=$resul[0]['sigla'];\n $res=$this->get_totales($ar);//monto1+monto2=gastado\n $band=false;\n $i=0;\n $long=count($res);\n while(!$band && $i<$long){\n \n if(($res[$i]['credito']-($res[$i]['monto1']+$res[$i]['monto2']))<-50){//if($gaste>$resul[$i]['cred']){\n $band=true;\n }\n \n $i++;\n }\n return $band;\n \n }", "public function getRnd() {\n return $this->rnd;\n }", "function aleatoriaCodigo($tamanho = 8, $maiusculas = true, $numeros = true, $simbolos = false) {\r\r\r\n $lmin = 'abcdefghijklmnopqrstuvwxyz';\r\r\r\n $lmai = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\r\r\n $num = '1234567890';\r\r\r\n $simb = '!@#$%*-';\r\r\r\n // Variáveis internas\r\r\r\n $retorno = '';\r\r\r\n $caracteres = '';\r\r\r\n // Agrupamos todos os caracteres que poderão ser utilizados\r\r\r\n $caracteres .= $lmin;\r\r\r\n if ($maiusculas)\r\r\r\n $caracteres .= $lmai;\r\r\r\n if ($numeros)\r\r\r\n $caracteres .= $num;\r\r\r\n if ($simbolos)\r\r\r\n $caracteres .= $simb;\r\r\r\n // Calculamos o total de caracteres possíveis\r\r\r\n $len = strlen($caracteres);\r\r\r\n for ($n = 1; $n <= $tamanho; $n++) {\r\r\r\n // Criamos um número aleatório de 1 até $len para pegar um dos caracteres\r\r\r\n $rand = mt_rand(1, $len);\r\r\r\n // Concatenamos um dos caracteres na variável $retorno\r\r\r\n $retorno .= $caracteres[$rand - 1];\r\r\r\n }\r\r\r\n return $retorno;\r\r\r\n}", "function gallo_cita_random() {\n$vector = array(\n\t1 => \"Es posible robar las ideas, pero nadie puede robar su puesta en práctica ni la pasión por ellas. (Timothy Ferriss).\",\n\t2 => \"La medicina es una ciencia de la incertidumbre y un arte de la probabilidad. (William Osler).\",\n\t3 => \"La medicina es el arte de disputar los hombres a la muerte de hoy, para cedérselos en mejor estado, un poco más tarde. (Noel Clarasó)\",\n);\n$numero = rand(1,3);\necho \"$vector[$numero]\";\n}", "private function _getMCScaricoSalita()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n $mc+=$arredo->getMCScaricoSalita();\n }\n //TODO arrotondamento\n return $mc;\n }", "public function cortar() {\n $mitadInf = [];\n $mitadSup = [];\n $mitad = count($this->cajita) / 2;\n for ($i = 0; $i < $mitad; $i++)\n $mitadInf[$i] = $this->cajita[$i];\n for ($i = 0; $mitad < count($this->cajita); $i++, $mitad++)\n $mitadSup[$i] = $this->cajita[$mitad];\n $this->cajita = array_merge($mitadSup, $mitadInf);\n return TRUE;\n }", "private function generateGenome()\n\t{\n\t\tfor($a=1; $a<=3; $a++) {\n\t\t\tfor($b=1; $b<=3; $b++) {\n\t\t\t\tfor($c=1; $c<=3; $c++) {\n\t\t\t\t\tfor($d=1; $d<=3; $d++) {\n\t\t\t\t\t\tfor($e=1; $e<=3; $e++) {\n\t\t\t\t\t\t\tif($this->random or mt_rand(0,1000) < $this->mutation) {\n\t\t\t\t\t\t\t\t$this->genome[$a.$b.$c.$d.$e] = mt_rand(1,6);\n\t\t\t\t\t\t\t\tif( ! $this->random) {\n\t\t\t\t\t\t\t\t\terror_log(\"MUTATION!\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t$this->genome[$a.$b.$c.$d.$e] = $this->parentGenome[mt_rand(1,2)][$a.$b.$c.$d.$e];\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\t\t\t}\n\t\t}\n\t}", "public function shuffle();", "public function borrar();", "function randomGen($min, $max, $quantity) {\n $numbers = range($min, $max);\n shuffle($numbers);\n return array_slice($numbers, 0, $quantity);\n }", "public function random(): int\n {\n return rand(1, 100);\n }", "public function random()\n {\n $values = [];\n $priorities = [];\n foreach ($this->values as $columns) {\n foreach ($columns as $column) {\n $values[] = $column[0];\n $priorities[] = $column[1];\n }\n }\n\n $key = 0;\n $sum = array_sum($priorities);\n $random = mt_rand(0, $sum);\n foreach ($priorities as $key => $priority) {\n if ($random <= $priority) break;\n $random -= $priority;\n }\n\n return $values[$key];\n }", "function r(){\n\t\t\n\t\t$chars = '0123456789';\n\t\t$s = substr(str_shuffle(str_repeat($chars, 5)), 0, 5);\n\t\treturn $s;\t\t\t\n\t\t}", "public function ruta_critica()\n {\n $this->tpi_mas_dij();\n $this->tp_j();\n $this->ttj_menos_dij();\n $this->tt_i();\n\n // Identificaión de las actividades de la ruta crítica\n $this->identificacion();\n // TT¡ (2) = TP¡ (0)\n // TTj (3) = TPj (1)\n // TTj (3) - TT¡ (2) = TPj (1) - TP¡ (0) = d¡j\n $ruta_critica = [[]];\n $num_act = -1;\n $this->tablero->imprimir(false);\n for ($m = 0; $m < $this->d->_m; $m++) {\n for ($n = 0; $n < $this->d->_n; $n++) {\n if ($this->d->_datos[$m][$n] >= 0 && $n < $this->d->_n) {\n $num_act++;\n $ruta_critica[$num_act][0] = 0;\n if ($this->tablero->_datos[$num_act][3] !== $this->tablero->_datos[$num_act][1]) continue;\n if ($this->tablero->_datos[$num_act][4] !== $this->tablero->_datos[$num_act][2]) continue;\n if ($this->tablero->_datos[$num_act][4] - $this->tablero->_datos[$num_act][3] !== $this->d->_datos[$m][$n]) continue;\n if ($this->tablero->_datos[$num_act][2] - $this->tablero->_datos[$num_act][1] !== $this->d->_datos[$m][$n]) continue;\n //echo \"num: $num_act: \" . $this->tablero->_datos[$num_act][0] . ' ' . $this->tablero->_datos[$num_act][1] . ' '. $this->tablero->_datos[$num_act][2] . ' ' . $this->tablero->_datos[$num_act][3] . '<br>';\n //echo \"num: $num_act<br>\" ;\n $ruta_critica[$num_act][0] = 1;\n }\n }\n }\n $tablero_index = new Matriz([\n ['ACT','TPi', 'TPj', 'TTi', 'TTj', 'dij', 'ITij', 'FPij', 'HTij', 'HLij']\n ]);\n $RC = new Matriz($ruta_critica);\n $RC->imprimir(true);\n $tablero_index->imprimir(true);\n\n }", "function geraSenha($tamanho = 8, $maiusculas = true, $numeros = true, $simbolos = false){\n$lmin = 'abcdefghijklmnopqrstuvwxyz';\n$lmai = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n$num = '1234567890';\n$simb = '!@#$%*-';\n\n// Variáveis internas\n$retorno = '';\n$caracteres = '';\n\n// Agrupamos todos os caracteres que poderão ser utilizados\n$caracteres .= $lmin;\nif ($maiusculas) $caracteres .= $lmai;\nif ($numeros) $caracteres .= $num;\nif ($simbolos) $caracteres .= $simb;\n\n// Calculamos o total de caracteres possíveis\n$len = strlen($caracteres);\n\nfor ($n = 1; $n <= $tamanho; $n++) {\n// Criamos um número aleatório de 1 até $len para pegar um dos caracteres\n$rand = mt_rand(1, $len);\n// Concatenamos um dos caracteres na variável $retorno\n$retorno .= $caracteres[$rand-1];\n}\n\nreturn $retorno;\n}", "function verificaJogoVelha($jogo){\n\t//valor 1 => jogador 1\n\t//valor 2 => jogador 2\n\t\n\tif($jogo[0] != 0){\n\t\t//primeira horizontal\n\t\tif($jogo[0] == $jogo[1] && $jogo[0] == $jogo[2]){\n\t\t\treturn $jogo[0];\n\t\t}\n\t\t//primeira vertical\n\t\telse if($jogo[0] == $jogo[3] && $jogo[0] == $jogo[6]){\n\t\t\treturn $jogo[0];\n\t\t}\n\t\t//primeira diagonal\n\t\telse if($jogo[0] == $jogo[4] && $jogo[0] == $jogo[8]){\n\t\t\treturn $jogo[0];\n\t\t}\n\t}\n\tif($jogo[2] != 0){\n\t\t//terceira vertical\n\t\tif($jogo[2] == $jogo[5] && $jogo[2] == $jogo[8]){\n\t\t\treturn $jogo[2];\n\t\t}\n\t\t//segunda diagonal\n\t\telse if($jogo[2] == $jogo[4] && $jogo[2] == $jogo[6]){\n\t\t\treturn $jogo[2];\n\t\t}\n\t}\n\tif($jogo[7] != 0){\n\t\t//terceira horizontal\n\t\tif($jogo[6] == $jogo[7] && $jogo[7] == $jogo[8]){\n\t\t\treturn $jogo[7];\n\t\t}\n\t\t//segunda vertical\n\t\telse if($jogo[1] == $jogo[7] && $jogo[4] == $jogo[7]){\n\t\t\treturn $jogo[7];\n\t\t}\n\t}\n\t//segunda horizontal\n\tif($jogo[3] != 0 && $jogo[3] == $jogo[4] && $jogo[3] == $jogo[5]){\n\t\treturn $jogo[3];\n\t}\n\t\n\tfor($i = 0; $i < 9; $i++){\n\t\tif($jogo[$i] == 0) break;\n\t}\n\t\n\tif($i == 9) return 'empate';\n\t\n\treturn false;\n}", "function arreglasecuord(){\n\t\t$mSQL='SELECT codigo,precio1,precio2,precio3,precio4 FROM sinv WHERE precio2>precio1 OR precio3>precio2 OR precio3>precio1 OR precio4>precio3 OR precio4>precio2 OR precio4>precio1';\n\t\t$query = $this->db->query($mSQL);\n\t\tforeach ($query->result() as $row){\n\t\t\t$dbcodigo= $this->db->escape($row->codigo);\n\t\t\t$precios = array($row->precio1,$row->precio2,$row->precio3,$row->precio4);\n\t\t\tsort($precios);\n\t\t\t$precios=array_reverse($precios);\n\n\t\t\t$data=array();\n\t\t\tforeach($precios as $i=>$prec){\n\t\t\t\t$o=$i+1;\n\t\t\t\t$ind='precio'.$o;\n\t\t\t\t$data[$ind] = $prec;\n\t\t\t}\n\n\t\t\t$where = \"codigo = ${dbcodigo}\";\n\t\t\t$sql = $this->db->update_string('sinv', $data, $where);\n\t\t\t$this->db->query($sql);\n\t\t}\n\t\t$this->arreglamarbases();\n\t}", "private function _generar_clave(){\n\n $letras = \"abcdefghijklmnopqrstuvwxyz\";\n $clave = \"\";\n\n for ($i=0;$i<4;$i++) {\n $clave .= substr($letras,rand(1,strlen($letras)),1);\n }\n for ($i=0;$i<4;$i++) {\n $numero = rand(0,9);\n $clave .= $numero;\n }\n\n return $clave;\n }", "function p3_ex2() {\n $rand = mt_rand(1, 100); // mt_rand is very better\n for ($i = 0; $i <= 20; $i++) {\n if ($i % 5 == 0 && $i != 0)\n $return .= 'resultat : '.($i * $rand).'<br />';\n else\n $return .= 'resultat : '.($i * $rand).', ';\n }\n\n return $return;\n}", "function inicializarPalabraOculta() {\r\n\t$palabras = [ \r\n\t\t\t'Avión',\r\n\t\t\t'Cañería',\r\n\t\t\t'Ungüento',\r\n\t\t\t'Idiazábal' \r\n\t];\r\n\t\r\n\treturn ($palabras [rand ( 0, sizeof ( $palabras ) - 1 )]);\r\n}", "function lotto(){\n $numbers = $_GET['numbers'];\n $numbers = [9, 14, 28, 36, 41, 49];\n\n foreach($numbers as $num){\n echo $num.\"<br>\";\n }\n \n echo \"<br><br><br>\";\n \n $win = [];\n $i = 1;\n \n while($i < 13){\n $number = mt_rand(1, 49);\n \n if(($i%2) == 0){\n if(!in_array($number, $win)){\n $win[$i] = $number;\n $i++;\n }\n } else{\n $i++;\n }\n }\n \n sort($win);\n \n foreach($win as $w){\n echo $w.\"<br>\";\n }\n \n echo \"<br><br><br>\";\n \n $same = [];\n \n foreach($numbers as $player){\n $count = count($same);\n foreach($win as $computer){\n if($player == $computer){\n $same[$count] = $player;\n }\n }\n }\n \n sort($same);\n \n foreach($same as $w){\n echo $w.\"<br>\";\n }\n }", "private function makeMachineMove(){\n\t\t$spaces = $this->getAvaibleSpaces();\n\t $space = $spaces[rand()%count($spaces)];\n\t\t$this->gato[$space[0]][$space[1]] = $this->jugador2;\n\t\treturn $space[0].\":\".$space[1];\n\t}", "function rng($min, $max, $times)\n{\n $numbers = range($min, $max);\n // Shuffles the generated numbers to make them randomized\n shuffle($numbers);\n // Remove elements from the array to make it as long as $times\n $result[] = array_slice($numbers, 0, $times);\n // Show the random numbers generated\n var_dump($result);\n}", "public function random() {\r\n \t$objReturn = null;\r\n\r\n \t$intIndex = rand(0, (count($this->collection) - 1));\r\n \tif (isset($this->collection[$intIndex])) {\r\n\t\t\t$objReturn = $this->collection[$intIndex];\r\n \t}\r\n\r\n \treturn $objReturn;\r\n }", "private function _getRandomAngle() {\r\n\t\t// Choose which random angle to use.\r\n\t\treturn (rand(0, 1)) ? rand(0, 60) : rand(300, 360);\r\n\t}", "function random_charo( $panjang ) { \n $karakter = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; \n $string = ''; \n for ( $i = 0; $i < $panjang; $i++ ) { \n $pos = rand( 0, strlen( $karakter ) - 1 ); \n $string .= $karakter{$pos}; \n } \nreturn \"OPERA\";\n}", "function random($max) {\r\n\t// create random number between 0 and $max\r\n\tsrand((double)microtime() * 1000000);\r\n\t$r = round(rand(0, $max));\r\n\tif ($r!=0) $r=$r-1;\r\n\treturn $r;\r\n}", "public function _validarHelado()\n {\n $listaHelados = Helado::_traerHelados();\n //Son distintos, pasa la validación.(Si y solo si se queda en este valor)\n $retorno = -1;\n if($this->_precio < 0 || $this->_tipo != \"agua\" && $this->_tipo != \"crema\" || $this->_cantidad < 0)\n {\n return 1;\n }\n foreach($listaHelados as $helado)\n { \n if($this->_sabor == $helado->_sabor && $this->_tipo == $helado->_tipo)\n {\n $helado->_cantidad = $this->_cantidad;\n $helado->_precio = $this->_precio;\n Helado::_actualizarHelado($listaHelados);\n $retorno = 0;\n break;\n }\n }\n return $retorno;\n }", "function maksim($x, $y, $z){\n if ($x > $y && $x > $z){\n return $x;\n } elseif ($y > $x && $y > $z) {\n return $y;\n } else {\n return $z;\n }\n }", "function editSeq2($num, $post = false)\n{\n $hp = new Http();\n\n\n for ($id = 10417; $id <= 10616; $id++) {\n\n $r = intval(rand(-80, 80));\n while ($r == 0) {\n $r = intval(rand(-80, 80));\n }\n $b = intval(rand(-80, 80));\n $p = intval(rand(1, 4));\n\n $m = intval(rand(1, 5));\n\n $title = '';\n for ($i = 0; $i < 7; $i++) {\n //An = Rn^p + B, 填中间\n// if($i == $m){\n// $title = $title . \",?\";\n// continue;\n// }\n\n $data = $r * pow($i, $p) + $b;\n if ($i == 0) {\n $title = $title . \"$data\";\n } else {\n $title = $title . \",$data\";\n }\n }\n\n// An = Rn^p + B, 填末尾\n $title = $title . \",?\";\n $res = $r * pow(7, $p) + $b;\n //An = Rn^p + B, 填中间\n// $res = $r* pow($m,$p) + $b;\n\n $ar = [$res, $res + intval(rand(-5, -3)), $res + intval(rand(-2, -1)), $res + intval(rand(1, 4))];\n shuffle($ar);\n $optionAr = [\n 'a' => $ar[0],\n 'b' => $ar[1],\n 'c' => $ar[2],\n 'd' => $ar[3],\n ];\n //find correct answer\n for ($i = 0; $i < 4; $i++) {\n if ($ar[$i] == $res) {\n break;\n }\n }\n\n $ks = ['a', 'b', 'c', 'd'];\n $answers = [$ks[$i]];\n $language = 'en';\n $classification = 'sequence';\n $pro_type = 'exclusive choice';\n $pro_source = 'new-train-seq';\n if ($b == 0) {\n $hint = \"A[n]=$r*n^$p\";\n } else if ($b > 0) {\n $hint = \"A[n]=$r*n^$p+$b\";\n } else {\n $hint = \"A[n]=$r*n^$p$b\";\n\n }\n $problem_info = compact('title', 'optionAr', 'answers', 'language', 'classification', 'pro_type', 'pro_source', 'hint');\n\n echo 'id' . $id;\n echo PHP_EOL;\n echo json_encode($problem_info);//insert\n echo PHP_EOL;\n\n if ($post) {\n $hp->post('http://exp.szer.me/parry/testlib/problem/' . $id, $problem_info, false);\n } else {\n echo \"no post\";\n echo PHP_EOL;\n }\n }\n\n curl_close($hp->ch);\n\n\n}", "function kramsannyaArray($array){\n if (count($array) % 2 != 0){\n echo $text = \"<br> F..U <br>\";\n $array[] = count($array);\n };\n vievRandomArray($array);\n for ($x = 0; $x < count($array) / 2; $x++){\n $array = rotationInArray($array, count($array) / 2 - $x -1, count($array) / 2 + $x);\n }\n return $array;\n}", "private function random_0_1()\n\t\t\t{ \n\t\t\t\treturn (float)rand()/(float)getrandmax();\n\t\t\t}", "public function Logica(){\n $cartas=[\n [1,2,3,4,5,6,7],\n [8,9,10,11,12,13],\n [14,15,16,17,18,19]\n ];\n $indice1 = rand(0,6);\n $indice2 = rand(0,5);\n $indice3 = rand(0,5);\n $cartas_sistem=[$cartas[0][$indice1], $cartas[1][$indice2], $cartas[2][$indice3]];\n\n var_dump( json_encode($cartas_sistem));\n $cartas_asign=[];\n \n while (count($cartas_asign) <= 3) {\n \n $num=rand(1,19);\n if ($num != $cartas_sistem[0] && $num != $cartas_sistem[1] && $num != $cartas_sistem[2]) {\n array_push($cartas_asign, $num);\n }\n \n }\n var_dump( json_encode($cartas_asign));\n $cartas_select=[];\n }", "public function piocherCarte(){\n $carte = new Carte();\n $nr = rand(0,4);\n switch ($nr) {\n case 0 : \n $carte->setType(Carte::BAVE_CRAPAUD);\n break;\n case 1 :\n $carte->setType(Carte::AILE_CHAUVE_SOURIS);\n break;\n case 2 :\n $carte->setType(Carte::MANDRAGORE);\n break;\n case 3 :\n $carte->setType(Carte::LAPIS_LAZULI);\n break;\n case 4 :\n $carte->setType(Carte::CORNE_LICORNE);\n break;\n }\n return $carte;\n }", "function hitungDenda(){\n\n return 0;\n }" ]
[ "0.62566125", "0.60389286", "0.60117406", "0.592009", "0.5850497", "0.5836121", "0.58275294", "0.57999736", "0.5798091", "0.5788687", "0.5749886", "0.5632862", "0.55942607", "0.55917037", "0.5490736", "0.5488665", "0.5486574", "0.54638857", "0.54628515", "0.54607123", "0.5447376", "0.54440403", "0.54324293", "0.54298156", "0.5426505", "0.538204", "0.5379594", "0.53695863", "0.53558975", "0.5355228", "0.53351206", "0.5328426", "0.53244257", "0.532062", "0.5300852", "0.52877617", "0.5286801", "0.5284676", "0.5276585", "0.5267554", "0.526389", "0.526389", "0.5254951", "0.5242541", "0.5240598", "0.52240777", "0.52220464", "0.5220412", "0.5208484", "0.5191546", "0.51757896", "0.5175787", "0.51695305", "0.5161659", "0.51579", "0.51566625", "0.5153729", "0.5145658", "0.5140116", "0.51395065", "0.51365733", "0.5117523", "0.51172507", "0.51164174", "0.51147825", "0.5098871", "0.5096728", "0.5091068", "0.50713235", "0.5061361", "0.5059099", "0.50397485", "0.50225234", "0.50006956", "0.50002027", "0.49852794", "0.4979088", "0.49595496", "0.49390274", "0.49388534", "0.49371222", "0.49356362", "0.4927833", "0.4923", "0.49200457", "0.491848", "0.49078494", "0.48977906", "0.48972684", "0.48962834", "0.4890679", "0.4889858", "0.4881002", "0.4878825", "0.48772505", "0.48731166", "0.48667872", "0.48651886", "0.48630312", "0.4859867", "0.4853387" ]
0.0
-1
$time_elapsed = timeAgo($time_ago); The argument $time_ago is in timestamp (Ymd H:i:s)format. Function definition
function timeAgo($time_ago) { $time_ago = strtotime($time_ago); $cur_time = time()-28800; $time_elapsed = $cur_time - $time_ago; $seconds = $time_elapsed ; $minutes = round($time_elapsed / 60 ); $hours = round($time_elapsed / 3600); $days = round($time_elapsed / 86400 ); $weeks = round($time_elapsed / 604800); $months = round($time_elapsed / 2600640 ); $years = round($time_elapsed / 31207680 ); // Seconds if($seconds <= 60){ return "just now"; } //Minutes else if($minutes <=60){ if($minutes==1){ return "one minute ago"; } else{ return "$minutes minutes ago"; } } //Hours else if($hours <=24){ if($hours==1){ return "an hour ago"; }else{ return "$hours hrs ago"; } } //Days else if($days <= 7){ if($days==1){ return "yesterday"; }else{ return "$days days ago"; } } //Weeks else if($weeks <= 4.3){ if($weeks==1){ return "a week ago"; }else{ return "$weeks weeks ago"; } } //Months else if($months <=12){ if($months==1){ return "a month ago"; }else{ return "$months months ago"; } } //Years else{ if($years==1){ return "one year ago"; }else{ return "$years years ago"; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function time_Ago($time) { \n \n // Calculate difference between current \n // time and given timestamp in seconds \n $diff = time() - $time; \n \n // Time difference in seconds \n $sec = $diff; \n \n // Convert time difference in minutes \n $min = round($diff / 60 ); \n \n // Convert time difference in hours \n $hrs = round($diff / 3600); \n \n // Convert time difference in days \n $days = round($diff / 86400 ); \n \n // Convert time difference in weeks \n $weeks = round($diff / 604800); \n \n // Convert time difference in months \n $mnths = round($diff / 2600640 ); \n \n // Convert time difference in years \n $yrs = round($diff / 31207680 ); \n \n // Check for seconds \n if($sec <= 60) { \n return \"$sec seconds ago\"; \n } \n \n // Check for minutes \n else if($min <= 60) { \n if($min==1) { \n return \"one minute ago\"; \n } \n else { \n return \"$min minutes ago\"; \n } \n } \n \n // Check for hours \n else if($hrs <= 24) { \n if($hrs == 1) { \n return \"an hour ago\"; \n } \n else { \n return \"$hrs hours ago\"; \n } \n } \n \n // Check for days \n else if($days <= 7) { \n if($days == 1) { \n return \"Yesterday\"; \n } \n else { \n return \"$days days ago\"; \n } \n } \n \n // Check for weeks \n else if($weeks <= 4.3) { \n if($weeks == 1) { \n return \"a week ago\"; \n } \n else { \n return \"$weeks weeks ago\"; \n } \n } \n \n // Check for months \n else if($mnths <= 12) { \n if($mnths == 1) { \n return \"a month ago\"; \n } \n else { \n return \"$mnths months ago\"; \n } \n } \n \n // Check for years \n else { \n if($yrs == 1) { \n return \"one year ago\"; \n } \n else { \n return \"$yrs years ago\"; \n } \n } \n}", "function time1($time) \n{\n \n$time= strtotime($time);\n $delta = time() - $time;\n\n if ($delta < 1 * MINUTE)\n {\n return $delta == 1 ? \"one second ago\" : $delta . \" seconds ago\";\n }\n if ($delta < 2 * MINUTE)\n {\n return \"a minute ago\";\n }\n if ($delta < 45 * MINUTE)\n {\n return floor($delta / MINUTE) . \" minutes ago\";\n }\n if ($delta < 90 * MINUTE)\n {\n return \"an hour ago\";\n }\n if ($delta < 24 * HOUR)\n {\n return floor($delta / HOUR) . \" hours ago\";\n }\n if ($delta < 48 * HOUR)\n {\n return \"yesterday\";\n }\n if ($delta < 30 * DAY)\n {\n return floor($delta / DAY) . \" days ago\";\n }\n if ($delta < 12 * MONTH)\n {\n $months = floor($delta / DAY / 30);\n return $months <= 1 ? \"one month ago\" : $months . \" months ago\";\n }\n else\n {\n $years = floor($delta / DAY / 365);\n return $years <= 1 ? \"one year ago\" : $years . \" years ago\";\n }\n \n}", "function timeAgo($dateTime)\n\t\t{\n\t\t\t$dateTime = strtotime($dateTime);\n\t\t\t$currentTime = time();\n\t\t\t$tense = \"\";\n\t\t\t$printTime = \"\";\n\t\t\t$timeDifference = $currentTime - $dateTime;\n\t\t\t$seconds = $timeDifference ;\n\t\t\t$minutes = round($timeDifference / 60 );\n\t\t\t$hours = round($timeDifference / 3600);\n\t\t\t$days = round($timeDifference / 86400 );\n\t\t\t$weeks = round($timeDifference / 604800);\n\t\t\t$months = round($timeDifference / 2600640 );\n\t\t\t$years = round($timeDifference / 31207680 );\n\t\t\t\n\t\t\tif($seconds <= 60){\n\t\t\t\t$printTime = $seconds;\n\t\t\t\t$tense = \" seconds ago\";\n\t\t\t}else if($minutes <= 60){\n\t\t\t\tif($minutes == 1){\n\t\t\t\t\t$printTime = $minutes;\n\t\t\t\t\t$tense = \" minute ago\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$printTime = $minutes;\n\t\t\t\t\t$tense = \" minutes ago\";\n\t\t\t\t}\n\t\t\t}else if($hours <= 24){\n\t\t\t\tif($hours == 1){\n\t\t\t\t\t$printTime = $hours;\n\t\t\t\t\t$tense = \" hour ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $hours;\n\t\t\t\t\t$tense = \" hours ago\";\n\t\t\t\t}\n\t\t\t}else if($days <= 7){\n\t\t\t\tif($days == 1){\n\t\t\t\t\t$printTime = \"\";\n\t\t\t\t\t$tense = \"yesterday\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $days;\n\t\t\t\t\t$tense = \" days ago\";\n\t\t\t\t}\n\t\t\t}else if($weeks <= 4.3){\n\t\t\t\tif($weeks == 1){\n\t\t\t\t\t$printTime = $weeks;\n\t\t\t\t\treturn \" week ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $weeks;\n\t\t\t\t\t$tense = \" weeks ago\";\n\t\t\t\t}\n\t\t\t}else if($months <= 12){\n\t\t\t\tif($months == 1){\n\t\t\t\t\t$printTime = $months;\n\t\t\t\t\t$tense = \" month ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $months;\n\t\t\t\t\t$tense = \" months ago\";\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($years == 1){\n\t\t\t\t\t$printTime = $years;\n\t\t\t\t\t$tense = \" year ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $years;\n\t\t\t\t\t$tense = \" years ago\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $printTime.$tense;\n\t\t}", "public function getCreatedTimeAgo() {\n $timeStamp = $this->getCreatedTime('U');\n $elapsed = time() - $timeStamp;\n \n if ($elapsed < 1)\n return 'just now';\n\n $lengths = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second');\n\n foreach ($lengths as $secs => $str)\n {\n $d = $elapsed / $secs;\n if ($d >= 1)\n {\n $r = round($d);\n return $r . ' ' . $str . ($r > 1 ? 's' : '') . ' ago';\n }\n }\n }", "function daysAgo($timestamp){ \n date_default_timezone_set('Europe/Riga'); \n $time_ago = strtotime($timestamp); \n $current_time = time(); \n $time_difference = $current_time - $time_ago; \n $seconds = $time_difference; \n $minutes = round($seconds / 60 ); //code bellow calculates each unit by deviding seconds.\n $hours = round($seconds / 3600);\n $days = round($seconds / 86400);\n $weeks = round($seconds / 604800);\n $months = round($seconds / 2629440);\n $years = round($seconds / 31553280);\n if($seconds <= 60) \n { \n return \"Just Now\"; \n } \n else if($minutes <=60) \n { \n if($minutes==1) \n { \n return \"one minute ago\"; \n } \n else \n { \n return \"$minutes minutes ago\"; //two \"if\" statements are needed because of plural and singular.\n } \n } \n else if($hours <=24) \n { \n if($hours==1) \n { \n return \"an hour ago\"; \n } \n else \n { \n return \"$hours hrs ago\"; \n } \n } \n else if($days <= 7) \n { \n if($days==1) \n { \n return \"yesterday\"; \n } \n else \n { \n return \"$days days ago\"; \n } \n } \n else if($weeks <= 4.3) //4.3 == 52/12 \n { \n if($weeks==1) \n { \n return \"a week ago\"; \n } \n else \n { \n return \"$weeks weeks ago\"; \n } \n } \n else if($months <=12) \n { \n if($months==1) \n { \n return \"a month ago\"; \n } \n else \n { \n return \"$months months ago\"; \n } \n } \n else \n { \n if($years==1) \n { \n return \"one year ago\"; \n } \n else \n { \n return \"$years years ago\"; \n } \n } \n }", "function time_ago($time, $units = 1) {\n //add mysql-server time difference to time;\n $time_diff = 0;\n $time = strtotime(\"+$time_diff hours\", strtotime($time));\n $now = time(); //current time\n return strtolower(timespan($time, $now, $units)). ' ago';\n}", "function time_ago($time, $units = 1) {\n //add mysql-server time difference to time;\n $time_diff = 0;\n $time = strtotime(\"+$time_diff hours\", strtotime($time));\n $now = time(); //current time\n return strtolower(timespan($time, $now, $units)). ' ago';\n}", "function get_timeago( $ptime )\n{\n $estimate_time = time() - $ptime;\n\n if( $estimate_time < 1 )\n {\n return 'less than 1 second ago';\n }\n\n $condition = array(\n 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $estimate_time / $secs;\n\n if( $d >= 1 )\n {\n $r = round( $d );\n return 'about ' . $r . ' ' . $str . ( $r > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "function tfc_ago( $time ) {\n\t$periods = array( \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"year\", \"decade\" );\n\t$lengths = array( \"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\" );\n\n\t$now = time();\n\n\t$difference = $now - $time;\n\t$tense = \"ago\";\n\n\tfor ( $j = 0; $difference >= $lengths[$j] && $j < count( $lengths )-1; $j++ ) {\n\t\t$difference /= $lengths[$j];\n\t}\n\n\t$difference = round( $difference );\n\n\tif ( $difference != 1 ) {\n\t\t$periods[$j] .= \"s\";\n\t}\n\n\treturn $difference $periods[$j] . \" ago \";\n}", "public function time_handler($timestamp){\n //convert timestamp to second\n $db_time = strtotime($timestamp);\n date_default_timezone_set(\"Europe/Paris\");\n //Get the current time\n $current_time = time();\n //Get the difference in seconds\n $time_diff = $current_time - $db_time;\n // echo \"DIFF \".$time_diff . \"<br>\";\n $time_diff_min = floor($time_diff / 60);\n \n $time_diff_hour = floor($time_diff / 3600); //floor($time_diff / 60 * 60)\n $time_diff_day = floor($time_diff / 86400 ); //floor($time_diff / 24 * 60 * 60)\n $time_diff_week = floor($time_diff / 604800 ); //floor($time_diff / 7 * 24 * 60 * 60)\n $time_diff_month = floor($time_diff / 2592000 ); //floor($time_diff / 30 * 24 * 60 * 60)\n $time_diff_year = floor($time_diff / 31536000); //floor($time_diff / 365 *24 * 60 * 60);\n\n if ($time_diff <= 60){\n return \"Just now\";\n\n }else if ($time_diff_min <= 60){\n if ($time_diff_min == 1){\n return \"1 minute ago\";\n }else{\n return $time_diff_min . \" minutes ago\";\n }\n\n }else if ($time_diff_hour <= 24){\n if ($time_diff_hour == 1){\n return \"1 hour ago\";\n }else {\n return $time_diff_hour . \" hours ago\";\n }\n }else if ($time_diff_day <= 7){\n if ($time_diff_day == 1){\n return \"1 day ago\";\n }else {\n return $time_diff_day . \" days ago\";\n }\n }else if ($time_diff_week <= 4.3){\n if ($time_diff_week == 1){\n return \"1 week ago\";\n }else {\n return $time_diff_week . \" weeks ago\";\n }\n }else if ($time_diff_month <= 1){\n if ($time_diff_month == 1){\n return \"1 month ago\";\n }else {\n return $time_diff_month . \" months ago\";\n }\n }else if ($time_diff_year <= 1){\n if ($time_diff_year == 1){\n return \"1 year ago\";\n }else {\n return $time_diff_year . \" years ago\";\n }\n }\n }", "function time_ago( $type = 'post' ) {\n\n $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';\n return human_time_diff($d('U'), current_time('timestamp')) . \" \" . __('ago');\n\n}", "public function test_elapsed_time() {\n\t\t$this->assertInternalType( 'string', locomotive_time_ago( 1472852621 ) );\n\t}", "function adelle_theme_time_ago( $type = 'comment' ) {\r\n $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';\r\n return human_time_diff($d( 'U' ), current_time( 'timestamp' )) . \" \" . __( 'ago', 'adelle-theme' );\r\n}", "public static function timeAgo($originTime){\n $timestamp = strtotime($originTime);\n\n $strTime = array(\"second\", \"minute\", \"hour\", \"day\", \"month\", \"year\");\n $length = array(\"60\",\"60\",\"24\",\"30\",\"12\",\"10\");\n /*$currentTime = time();*/\n $expression = new \\yii\\db\\Expression('NOW()');\n $now = (new \\yii\\db\\Query)->select($expression)->scalar();\n $currentTime = strtotime($now);\n\n if($currentTime >= $timestamp) {\n $diff = $currentTime- $timestamp;\n for($i = 0; $diff >= $length[$i] && $i < count($length)-1; $i++) {\n $diff = $diff / $length[$i];\n }\n\n $diff = round($diff);\n $singular = \"\";\n if($diff > 1){\n $singular = \"s\";\n }\n return $diff . \" \" . $strTime[$i] . $singular.\" ago \";\n }\n\n }", "function facebook_time_ago($TIMESTAMP)\n\t\t{\n\t\t\t$time_ago = strtotime($TIMESTAMP);\n\t\t\t$current_time = time();\n\t\t\t$time_difference = $current_time - $time_ago;\n\n\t\t\t$seconds = $time_difference;\n\t\t\t$minutes = round($seconds / 60);\t\t//60 seconds\n\t\t\t$hours = round($seconds / 3600);\t\t//60 * 60\n\t\t\t$days = round($seconds / 86400);\t// 24 * 60 * 60\n\t\t\t$weeks = round($seconds / 604800); //7*24*60*60\n\t\t\t$months = round($seconds / 2629440);\n\t\t\t$years = round($seconds / 31553280);\n\n\t\t\tif($seconds <=60 )\n\t\t\t{\n\t\t\t\treturn \"Born Now\";\n\t\t\t}\n\t\t\telse if($minutes <=60)\n\t\t\t{\n\t\t\t\tif($minutes==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"one minute ago\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$minutes minutes ago\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($hours <=24)\n\t\t\t{\n\t\t\t\tif($hours==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"one hour old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$hours hrs old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($days <=7)\n\t\t\t{\n\t\t\t\tif($days==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"yesterday\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$days days old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($weeks <=4.3) //4.3 == 52/12\n\t\t\t{\n\t\t\t\tif($weeks==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"a week old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$weeks weeks old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($months <=12)\n\t\t\t{\n\t\t\t\tif($months==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"a month old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$months months old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($years==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"one year old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$years years old\";\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static function timeAgo($from, $to='') {\n\t\tif ( empty($to) ) $to = time();\n\t\t\n\t\t$from = is_string($from)? strtotime($from) : intval($from);\n\t\t$to = is_string($to)? strtotime($to) : intval($to);\n\t\t\n\t\t$since = '';\n\t\t$diff = (int) abs($to - $from); //in seconds\n\t\tif ($diff <= 3600) $since = round($diff / 60).'m ago'; /* 1 minute .. 60 minutes */\n\t\telseif ( $diff>3600 && $diff<=86400 ) $since = round($diff / 3600).'h ago'; /* 1 hour .. 24 hours */\n\t\telseif ( $diff>86400 && $diff<=604800 ) $since = round($diff / 86400).'d ago'; /* 1 day .. 7 days */\n\t\telseif ( $diff>604800 && $diff<=3024000 ) $since = round($diff / 604800).'w ago'; /* 1 week .. 5 weeks */\n\t\t\n\t\treturn $since;\n\t}", "function time_ago_specific($date, $from = \"now\")\r\n{\r\n $datetime = strtotime($from);\r\n $date2 = strtotime(\"\" . $date);\r\n $holdtotsec = $datetime - $date2;\r\n $holdtotmin = ($datetime - $date2) / 60;\r\n $holdtothr = ($datetime - $date2) / 3600;\r\n $holdtotday = intval(($datetime - $date2) / 86400);\r\n $str = '';\r\n if (0 < $holdtotday) {\r\n $str .= $holdtotday . \"d \";\r\n }\r\n $holdhr = intval($holdtothr - $holdtotday * 24);\r\n $str .= $holdhr . \"h \";\r\n $holdmr = intval($holdtotmin - ($holdhr * 60 + $holdtotday * 1440));\r\n $str .= $holdmr . \"m\";\r\n return $str;\r\n}", "function timeSince ( $timestamp ) {\r\n\r\n\t$diff = time() - $timestamp;\r\n\r\n\tif ( $diff < 4000 ) {\r\n\t\t$diff = ceil ( $diff / 60 );\r\n\t\t$unit = \"minute\";\r\n\r\n\t} elseif ( $diff < 100000 ) {\r\n\t\t$diff = ceil ( $diff / 3600 );\r\n\t\t$unit = \"hour\";\r\n\r\n\t} else {\r\n\t\t$diff = ceil ( $diff / 86400 );\r\n\t\t$unit = \"day\";\r\n\t}\r\n\r\n\t$end = ( $diff <= 1 ) ? NULL : \"s\";\r\n\r\n\treturn \"$diff $unit$end ago\";\r\n\r\n}", "public function test_time_ago() {\n\t\t$time = current_time( 'timestamp' );\n\t\t$time_ago = locomotive_time_ago( $time );\n\n\t\t$this->assertEquals( '1 min ago', $time_ago );\n\t}", "function get_time_ago( $time )\n{\n $time_difference = time() - $time;\n \n if( $time_difference < 1 ) { return 'less than 1 second ago'; }\n $condition = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n \n foreach( $condition as $secs => $str )\n {\n $d = $time_difference / $secs;\n \n if( $d >= 1 )\n {\n $t = round( $d );\n return $t . ' ' . $str . ( $t > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "function time_calc($up_time)\n {\n // time is of the form YYYY-MM-DD HH:MM:SS.MILISEC\n $x = explode(' ', $up_time);\n $y = explode('-', $x[0]);\n $z = explode(':', $x[1]);\n\n // condition for year\n if(((int)date('Y') - (int)$y[0]) > 0)\n {\n $temp = ((int)date('Y') - (int)$y[0]);\n $temp = $temp.\" years ago\";\n return($temp);\n }\n else if(((int)date('m') - (int)$y[1]) > 0)\n {\n $temp = ((int)date('m') - (int)$y[1]);\n $temp = $temp.\" months ago\";\n return($temp);\n }\n else if(((int)date('d') - (int)$y[2]) > 0)\n {\n $temp = ((int)date('d') - (int)$y[2]);\n $temp = $temp.\" days ago\";\n return($temp);\n }\n else if(((int)date('H') - (int)$z[0]) > 0)\n {\n $temp = ((int)date('H') - (int)$z[0]);\n $temp = $temp.\" hrs ago\";\n return($temp);\n }\n else if(((int)date('i') - (int)$z[1]) > 0)\n {\n $temp = ((int)date('i') - (int)$z[1]);\n $temp = $temp.\" mins ago\";\n return($temp);\n }\n }", "function formattime_ago($time) {\n\t$period = $GLOBALS['i18']['time_period'];\n\t$periods = $GLOBALS['i18']['time_periods'];\n\t$lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n\n\t$now = time();\n\t$difference = $now - $time;\n\t$tense = $GLOBALS['i18']['ago'];\n\n\tfor($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n\t\t$difference /= $lengths[$j];\n\t}\n\t$difference = round($difference);\n\t\n\tif($difference > 1)\n\t\t$period_lbl = $periods[$j];\n\telse\n\t\t$period_lbl = $period[$j];\n\t\t\n\treturn str_replace('%', $difference.\" \".$period_lbl, $tense);\n}", "function tc_time_ago($from_time, $include_seconds = true) {\n\t\t$to_time = time();\n\t\t$mindist = round(abs($to_time - $from_time) / 60);\n\t\t$secdist = round(abs($to_time - $from_time));\n\t \n\t\tif ($mindist >= 0 and $mindist <= 1) {\n\t\t\tif (!$include_seconds) {\n\t\t\t\treturn ($mindist == 0) ? 'less than a minute' : '1 minute';\n\t\t} else {\n\t\t\t\tif ($secdist >= 0 and $secdist <= 4) {\n\t\t\t\t\treturn 'less than 5 seconds';\n\t\t\t\t} elseif ($secdist >= 5 and $secdist <= 9) {\n\t\t\t\t\treturn 'less than 10 seconds';\n\t\t\t\t} elseif ($secdist >= 10 and $secdist <= 19) {\n\t\t\t\t\treturn 'less than 20 seconds';\n\t\t\t\t} elseif ($secdist >= 20 and $secdist <= 39) {\n\t\t\t\t\treturn 'half a minute';\n\t\t\t\t} elseif ($secdist >= 40 and $secdist <= 59) {\n\t\t\t\t\treturn 'less than a minute';\n\t\t\t\t} else {\n\t\t\t\t\treturn '1 minute';\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ($mindist >= 2 and $mindist <= 44) {\n\t\t\treturn $mindist . ' minutes';\n\t\t} elseif ($mindist >= 45 and $mindist <= 89) {\n\t\t\treturn 'about 1 hour';\n\t\t} elseif ($mindist >= 90 and $mindist <= 1439) {\n\t\t\treturn 'about ' . round(floatval($mindist) / 60.0) . ' hours';\n\t\t} elseif ($mindist >= 1440 and $mindist <= 2879) {\n\t\t\treturn '1 day';\n\t\t} elseif ($mindist >= 2880 and $mindist <= 43199) {\n\t\t\treturn 'about ' . round(floatval($mindist) / 1440) . ' days';\n\t\t} elseif ($mindist >= 43200 and $mindist <= 86399) {\n\t\t\treturn 'about 1 month';\n\t\t} elseif ($mindist >= 86400 and $mindist <= 525599) {\n\t\t\treturn round(floatval($mindist) / 43200) . ' months';\n\t\t} elseif ($mindist >= 525600 and $mindist <= 1051199) {\n\t\t\treturn 'about 1 year';\n\t\t} else {\n\t\t\treturn 'over ' . round(floatval($mindist) / 525600) . ' years';\n\t\t}\n\t}", "function get_time_ago($time) {\n $time_difference = time() - $time;\n\n if( $time_difference < 1 ) { return 'less than 1 second ago'; }\n $condition = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $time_difference / $secs;\n\n if( $d >= 1 )\n {\n $t = round( $d );\n return $t . ' ' . $str . ( $t > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "function jr_ad_posted($m_time) {\r\n $time = get_post_time('G', true);\r\n $time_diff = time() - $time;\r\n\r\n if ( $time_diff > 0 && $time_diff < 24*60*60 )\r\n $h_time = sprintf( __('%s ago', APP_TD), human_time_diff( $time ) );\r\n else\r\n $h_time = mysql2date(get_option('date_format'), $m_time);\r\n echo $h_time;\r\n}", "public static function ago($time, $calculateFrom = 'now') {\n\n\t\t// Calculate to\n\t\t$t = strtotime($time);\n\t\t// Calculate from\n\t\t$c = strtotime($calculateFrom);\n\t\t// Elapsed\n\t\t$e = $c - $t;\n\t\t// Elapsed that day\n\t\t$de = date(\"H\", $c) * TimeAgo::$h + date(\"i\", $c) * TimeAgo::$m + date(\"s\", $c);\n\n\t\tif ($e < TimeAgo::$m) {\n\t\t\t// Now / Second / Seconds\n\t\t\treturn ($e == 0) ? TimeAgo::$string['now'] : ($e == 1 ? TimeAgo::$string['second'] : sprintf(TimeAgo::$string['seconds'], $e));\n\t\t} elseif ($e < TimeAgo::$h) {\n\t\t\t// Minutes\n\t\t\treturn (($m = intval($e / TimeAgo::$m)) && $m == 1) ? TimeAgo::$string['minute'] : sprintf(TimeAgo::$string['minutes'], $m);\n\t\t} elseif ($e < TimeAgo::$d) {\n\t\t\t// Today - Hours\n\t\t\treturn (($h = intval($e / TimeAgo::$h)) && $h == 1) ? TimeAgo::$string['hour'] : sprintf(TimeAgo::$string['hours'], $h);\n\t\t} elseif ($e <= TimeAgo::$d + $de) {\n\t\t\t// Yesterday\n\t\t\treturn TimeAgo::$string['yesterday'];\n\t\t} elseif ($e < TimeAgo::$d * 6 + $de) {\n\t\t\t// Last week\n\t\t\treturn sprintf(TimeAgo::$string['on'], TimeAgo::$weekDays[date(\"w\", $t)]);\n\t\t} elseif ($e < TimeAgo::$mo) {\n\t\t\t// less then month\n\t\t\t// Weeks\n\t\t\tif ($e < TimeAgo::$w * 2) {\n\t\t\t\t// Last seven days\n\t\t\t\treturn TimeAgo::$string['week'];\n\t\t\t} elseif ($e < TimeAgo::$w * 3) {\n\t\t\t\t// 2 weeks\n\t\t\t\treturn sprintf(TimeAgo::$string['weeks'], 2);\n\t\t\t} else {\n\t\t\t\t// 3 weeks\n\t\t\t\treturn sprintf(TimeAgo::$string['weeks'], 3);\n\t\t\t}\n\t\t} elseif ($e < TimeAgo::$y) {\n\t\t\t// less then year\n\t\t\t// Month / Months\n\t\t\treturn ($e < TimeAgo::$mo * 2) ? TimeAgo::$string['month'] : sprintf(TimeAgo::$string['months'], intval($e / TimeAgo::$mo));\n\t\t} else {\n\t\t\t// Year / Years\n\t\t\treturn ($e >= TimeAgo::$y && $e < TimeAgo::$y * 2) ? TimeAgo::$string['year'] : sprintf(TimeAgo::$string['years'], intval($e / TimeAgo::$y));\n\t\t}\n\t}", "function time_ago_in_words($from_time, $include_seconds = false)\n{\n return distance_of_time_in_words($from_time, time(), $include_seconds);\n}", "function time_ago($d1, $d2){\r\n\t$d1 = (is_string($d1) ? strtotime($d1) : $d1);\r\n\t$d2 = (is_string($d2) ? strtotime($d2) : $d2);\r\n\r\n\t$diff_secs = abs($d1 - $d2);\r\n\t$base_year = min(date(\"Y\", $d1), date(\"Y\", $d2));\r\n\r\n\t$diff = mktime(0, 0, $diff_secs, 1, 1, $base_year);\r\n\t$diffArray = array(\r\n\t\t\"years\" => date(\"Y\", $diff) - $base_year,\r\n\t\t\"months_total\" => (date(\"Y\", $diff) - $base_year) * 12 + date(\"n\", $diff) - 1,\r\n\t\t\"months\" => date(\"n\", $diff) - 1,\r\n\t\t\"days_total\" => floor($diff_secs / (3600 * 24)),\r\n\t\t\"days\" => date(\"j\", $diff) - 1,\r\n\t\t\"hours_total\" => floor($diff_secs / 3600),\r\n\t\t\"hours\" => date(\"G\", $diff),\r\n\t\t\"minutes_total\" => floor($diff_secs / 60),\r\n\t\t\"minutes\" => (int) date(\"i\", $diff),\r\n\t\t\"seconds_total\" => $diff_secs,\r\n\t\t\"seconds\" => (int) date(\"s\", $diff)\r\n\t);\r\n\tif($diffArray['days'] > 0){\r\n\t\tif($diffArray['days'] == 1){\r\n\t\t\t$days = '1 day';\r\n\t\t}else{\r\n\t\t\t$days = $diffArray['days'] . ' days';\r\n\t\t}\r\n\t\treturn $days . ' and ' . $diffArray['hours'] . ' hours ago';\r\n\t}else if($diffArray['hours'] > 0){\r\n\t\tif($diffArray['hours'] == 1){\r\n\t\t\t$hours = '1 hour';\r\n\t\t}else{\r\n\t\t\t$hours = $diffArray['hours'] . ' hours';\r\n\t\t}\r\n\t\treturn $hours . ' and ' . $diffArray['minutes'] . ' minutes ago';\r\n\t}else if($diffArray['minutes'] > 0){\r\n\t\tif($diffArray['minutes'] == 1){\r\n\t\t\t$minutes = '1 minute';\r\n\t\t}else{\r\n\t\t\t$minutes = $diffArray['minutes'] . ' minutes';\r\n\t\t}\r\n\t\treturn $minutes . ' and ' . $diffArray['seconds'] . ' seconds ago';\r\n\t}else{\r\n\t\treturn 'Less than a minute ago';\r\n\t}\r\n}", "function TimeAgo($datefrom,$dateto=-1) {\n\t\t// its an error rather than the epoch\n\n\t\tif($datefrom<=0) { return \"A long time ago\"; }\n\t\tif($dateto==-1) { $dateto = time(); }\n\n\t\t// Calculate the difference in seconds betweeen\n\t\t// the two timestamps\n\n\t\t$difference = $dateto - $datefrom;\n\n\t\t// If difference is less than 60 seconds,\n\t\t// seconds is a good interval of choice\n\n\t\tif($difference < 60) {\n\t\t\t$interval = \"s\";\n\t\t}\n\n\t\t// If difference is between 60 seconds and\n\t\t// 60 minutes, minutes is a good interval\n\t\telseif($difference >= 60 && $difference<60*60) {\n\t\t\t$interval = \"n\";\n\t\t}\n\n\t\t// If difference is between 1 hour and 24 hours\n\t\t// hours is a good interval\n\t\telseif($difference >= 60*60 && $difference<60*60*24) {\n\t\t\t$interval = \"h\";\n\t\t}\n\n\t\t// If difference is between 1 day and 7 days\n\t\t// days is a good interval\n\t\telseif($difference >= 60*60*24 && $difference<60*60*24*7){\n\t\t\t$interval = \"d\";\n\t\t}\n\n\t\t// If difference is between 1 week and 30 days\n\t\t// weeks is a good interval\n\t\telseif($difference >= 60*60*24*7 && $difference <60*60*24*30) {\n\t\t\t$interval = \"ww\";\n\t\t}\n\n\t\t// If difference is between 30 days and 365 days\n\t\t// months is a good interval, again, the same thing\n\t\t// applies, if the 29th February happens to exist\n\t\t// between your 2 dates, the function will return\n\t\t// the 'incorrect' value for a day\n\t\telseif($difference >= 60*60*24*30 && $difference <60*60*24*365) {\n\t\t\t$interval = \"m\";\n\t\t}\n\n\t\t// If difference is greater than or equal to 365\n\t\t// days, return year. This will be incorrect if\n\t\t// for example, you call the function on the 28th April\n\t\t// 2008 passing in 29th April 2007. It will return\n\t\t// 1 year ago when in actual fact (yawn!) not quite\n\t\t// a year has gone by\n\t\telseif($difference >= 60*60*24*365) {\n\t\t\t$interval = \"y\";\n\t\t}\n\n\t\t// Based on the interval, determine the\n\t\t// number of units between the two dates\n\t\t// From this point on, you would be hard\n\t\t// pushed telling the difference between\n\t\t// this function and DateDiff. If the $datediff\n\t\t// returned is 1, be sure to return the singular\n\t\t// of the unit, e.g. 'day' rather 'days'\n\n\t\tswitch($interval) {\n\t\t\tcase \"m\":\n\t\t\t$months_difference = floor($difference / 60 / 60 / 24 /29);\n\t\t\twhile (mktime(date(\"H\", $datefrom), date(\"i\", $datefrom), date(\"s\", $datefrom), date(\"n\", $datefrom)+($months_difference), date(\"j\", $dateto), date(\"Y\", $datefrom)) < $dateto) {\n\t\t\t\t$months_difference++;\n\t\t\t}\n\t\t\t$datediff = $months_difference;\n\n\t\t\t// We need this in here because it is possible\n\t\t\t// to have an 'm' interval and a months\n\t\t\t// difference of 12 because we are using 29 days\n\t\t\t// in a month\n\n\t\t\tif($datediff==12) {\n\t\t\t\t$datediff--;\n\t\t\t}\n\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->monthAgo : \"$datediff \".$this->lang()->index->monthsAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"y\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 365);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$string->index->yearAgo : \"$datediff \".$this->lang()->index->yearsAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"d\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->dayAgo : \"$datediff \".$this->lang()->index->daysAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"ww\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 7);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->weekAgo : \"$datediff \".$this->lang()->index->weeksAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"h\":\n\t\t\t$datediff = floor($difference / 60 / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->hourAgo : \"$datediff \".$this->lang()->index->hoursAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"n\":\n\t\t\t$datediff = floor($difference / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->minuteAgo :\"$datediff \".$this->lang()->index->minutesAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"s\":\n\t\t\t$datediff = $difference;\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->secondAgo :\"$datediff \".$this->lang()->index->secondsAgo;\n\t\t\tbreak;\n\t\t}\n\t\treturn $res;\n\t}", "function relativeTime($time)\n{\n $delta = strtotime('+2 hours') - strtotime($time);\n if ($delta < 2 * MINUTE) {\n return \"1 min ago\";\n }\n if ($delta < 45 * MINUTE) {\n return floor($delta / MINUTE) . \" min ago\";\n }\n if ($delta < 90 * MINUTE) {\n return \"1 hour ago\";\n }\n if ($delta < 24 * HOUR) {\n return floor($delta / HOUR) . \" hours ago\";\n }\n if ($delta < 48 * HOUR) {\n return \"yesterday\";\n }\n if ($delta < 30 * DAY) {\n return floor($delta / DAY) . \" days ago\";\n }\n if ($delta < 12 * MONTH) {\n $months = floor($delta / DAY / 30);\n return $months <= 1 ? \"1 month ago\" : $months . \" months ago\";\n } else {\n $years = floor($delta / DAY / 365);\n return $years <= 1 ? \"1 year ago\" : $years . \" years ago\";\n }\n}", "public function test_timeAgo(){\n require \"./source/timeAgo_function.php\";\n $this->assertEquals('4 months ago',timeAgo(\"2020-05-27 13:0:0\"));\n }", "public static function timeago($timestamp){\r\n\t\t$str = strtotime($timestamp);\r\n\r\n\t\t$timestamp = date(\"Y\",$str) . \"-\" . date(\"m\",$str) . \"-\" . date(\"d\",$str) . \"T\" . date(\"H\",$str) . \":\" . date(\"i\",$str) . \":\" . date(\"s\",$str) . \"Z\";\r\n\r\n\t\treturn '<time class=\"timeago\" datetime=\"' . $timestamp . '\" title=\"' . date(\"d\",$str) . \".\" . date(\"m\",$str) . \".\" . date(\"Y\",$str) . \" \" . date(\"H\",$str) . \":\" . date(\"i\",$str) . \":\" . date(\"s\",$str) . '\">' . $timestamp . '</time>';\r\n\t}", "function ago($time)\n{\n $periods_single = array(\"seconde\", \"minuut\", \"uur\", \"dag\", \"week\", \"maand\", \"jaar\", \"decennium\");\n $periods_multi = array(\"seconden\", \"minuten\", \"uur\", \"dagen\", \"weken\", \"maanden\", \"jaren\", \"decennia\");\n\n $lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n\n $now = time();\n\n $difference = $now - $time;\n $tense = \"ago\";\n\n for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n $difference /= $lengths[$j];\n }\n\n $difference = round($difference);\n\n $period = $periods_single[$j];\n\n if($difference > 1) {\n $period = $periods_multi[$j];\n }\n\n return \"$difference $period geleden\";\n}", "function convertToAgoFormat($timestamp){\n date_default_timezone_set('America/Mexico_City');\n $diffBtwCurrentTimeAndTimestamp = time() - $timestamp;\n $periodsString = [\"sec\", \"min\", \"hr\", \"day\", \"week\", \"month\", \"year\", \"decade\"];\n $periodsNumber = [\"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\"];\n \n for($iterator = 0; $diffBtwCurrentTimeAndTimestamp >= $periodsNumber[$iterator]; $iterator++)\n $diffBtwCurrentTimeAndTimestamp /= $periodsNumber[$iterator];\n $diffBtwCurrentTimeAndTimestamp = round($diffBtwCurrentTimeAndTimestamp);\n \n if($diffBtwCurrentTimeAndTimestamp != 1) $periodsString[$iterator].=\"s\";\n $output = \"$diffBtwCurrentTimeAndTimestamp $periodsString[$iterator]\"; //2 days\n \n return $output.\" ago\";\n}", "function get_timeago( $ptime )\n{\n $estimate_time = time() - $ptime;\n\n if( $estimate_time < 1 )\n {\n return 'pubblicato meno di 1 secondo fa';\n }\n\n $condition = array(\n 12 * 30 * 24 * 60 * 60 => 'anno',\n 30 * 24 * 60 * 60 => 'mese',\n 24 * 60 * 60 => 'giorno',\n 60 * 60 => 'ora',\n 60 => 'minuto',\n 1 => 'secondo'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $estimate_time / $secs;\n\n if( $d >= 1 )\n {\n $r = round( $d );\n\n if ($str == 'ora') {\n return 'pubblicato circa ' . $r . ' ' . ( $r > 1 ? substr($str, 0, -1).'e' : $str ) . ' fa';\n } else {\n return 'pubblicato circa ' . $r . ' ' . ( $r > 1 ? substr($str, 0, -1).'i' : $str ) . ' fa';\n }\n \n }\n }\n}", "function timeago($referencedate=0, $timepointer='', $measureby=''){\n\t\t\n\t\tif($timepointer == '') $timepointer = time();\n\t\t$Raw = $timepointer-$referencedate;## Raw time difference\n\t\t$Clean = abs($Raw);\n\t\t\n\t\tif($Clean > 60*60*24*30){\n\t\t\tif(date(\"Y\")==date(\"Y\",$referencedate)){\n\t\t\t\t$strTime = date(\"n月j日\",$referencedate);\n\t\t\t\t}else{\n\t\t\t\t$strTime = date(\"Y年n月j日\",$referencedate);\n\t\t\t}\n\t\t\treturn $strTime;\n\t\t}\n\t\t\n\t\t$calcNum = array(\n\t\tarray('s', 60),\n\t\tarray('m', 60*60),\n\t\tarray('h', 60*60*60),\n\t\tarray('d', 60*60*60*24),\n\t\tarray('mo', 60*60*60*24*30)\n\t\t);\n\t\t## Used for calculating\n\t\t$calc = array(\n\t\t's' => array(1, '秒'), \n\t\t'm' => array(60, '分鐘'), \n\t\t'h' => array(60*60, '小時'), \n\t\t'd' => array(60*60*24, '日'), \n\t\t'mo' => array(60*60*24*30, '個月')\n\t\t);\n\t\t\n\t\tif($measureby == ''){\n\t\t\t$usemeasure = 's';## Default unit\n\t\t\tfor($i=0; $i<count($calcNum); $i++){\n\t\t\t\tif($Clean <= $calcNum[$i][1]){\n\t\t\t\t\t$usemeasure = $calcNum[$i][0];\n\t\t\t\t\t$i = count($calcNum);\n\t\t\t\t}\n\t\t\t}\n\t\t\t}else{\n\t\t\t$usemeasure = $measureby;## Used if a unit is provided\n\t\t}\n\t\t\n\t\t$datedifference = floor($Clean/$calc[$usemeasure][0]);\n\t\t\n\t\tif($referencedate != 0){\n\t\t\treturn $datedifference . '' . $calc[$usemeasure][1] . '前';\n\t\t\t}else{\n\t\t\treturn 'No Time';\n\t\t}\n\t}", "function ago($datefrom,$dateto=-1)\n {\n // its an error rather than the epoch\n \n if($datefrom=='0') { return \"A long time ago\"; }\n if($dateto=='-1') { $dateto = time(); }\n \n // Make the entered date into Unix timestamp from MySQL datetime field\n\n $datefrom = strtotime($datefrom);\n \n // Calculate the difference in seconds betweeen\n // the two timestamps\n\n $difference = $dateto - $datefrom;\n\n // Based on the interval, determine the\n // number of units between the two dates\n // From this point on, you would be hard\n // pushed telling the difference between\n // this function and DateDiff. If the $datediff\n // returned is 1, be sure to return the singular\n // of the unit, e.g. 'day' rather 'days'\n \n switch(true)\n {\n // If difference is less than 60 seconds,\n // seconds is a good interval of choice\n case(strtotime('-1 min', $dateto) < $datefrom):\n $datediff = $difference;\n $res = ($datediff==1) ? $datediff.' second ago' : $datediff.' seconds ago';\n break;\n // If difference is between 60 seconds and\n // 60 minutes, minutes is a good interval\n case(strtotime('-1 hour', $dateto) < $datefrom):\n $datediff = floor($difference / 60);\n $res = ($datediff==1) ? $datediff.' minute ago' : $datediff.' minutes ago';\n break;\n // If difference is between 1 hour and 24 hours\n // hours is a good interval\n case(strtotime('-1 day', $dateto) < $datefrom):\n $datediff = floor($difference / 60 / 60);\n $res = ($datediff==1) ? $datediff.' hour ago' : $datediff.' hours ago';\n break;\n // If difference is between 1 day and 7 days\n // days is a good interval \n case(strtotime('-1 week', $dateto) < $datefrom):\n $day_difference = 1;\n while (strtotime('-'.$day_difference.' day', $dateto) >= $datefrom)\n {\n $day_difference++;\n }\n \n $datediff = $day_difference;\n $res = ($datediff==1) ? 'yesterday' : $datediff.' days ago';\n break;\n // If difference is between 1 week and 30 days\n // weeks is a good interval \n case(strtotime('-1 month', $dateto) < $datefrom):\n $week_difference = 1;\n while (strtotime('-'.$week_difference.' week', $dateto) >= $datefrom)\n {\n $week_difference++;\n }\n \n $datediff = $week_difference;\n $res = ($datediff==1) ? 'last week' : $datediff.' weeks ago';\n break; \n // If difference is between 30 days and 365 days\n // months is a good interval, again, the same thing\n // applies, if the 29th February happens to exist\n // between your 2 dates, the function will return\n // the 'incorrect' value for a day\n case(strtotime('-1 year', $dateto) < $datefrom):\n $months_difference = 1;\n while (strtotime('-'.$months_difference.' month', $dateto) >= $datefrom)\n {\n $months_difference++;\n }\n \n $datediff = $months_difference;\n $res = ($datediff==1) ? $datediff.' month ago' : $datediff.' months ago';\n\n break;\n // If difference is greater than or equal to 365\n // days, return year. This will be incorrect if\n // for example, you call the function on the 28th April\n // 2008 passing in 29th April 2007. It will return\n // 1 year ago when in actual fact (yawn!) not quite\n // a year has gone by\n case(strtotime('-1 year', $dateto) >= $datefrom):\n $year_difference = 1;\n while (strtotime('-'.$year_difference.' year', $dateto) >= $datefrom)\n {\n $year_difference++;\n }\n \n $datediff = $year_difference;\n $res = ($datediff==1) ? $datediff.' year ago' : $datediff.' years ago';\n break;\n \n }\n return $res;\n }", "function ago($time) {\n $timediff=time()-$time;\n $days=intval($timediff/86400);\n $remain=$timediff%86400;\n $hours=intval($remain/3600);\n $remain=$remain%3600;\n $mins=intval($remain/60);\n $secs=$remain%60;\n\n if ($secs>=0) $timestring = $secs.\"s\";//\"0m\".\n if ($mins>0) $timestring = $mins.\"m\";//.$secs.\"s\";\n if ($hours>0) $timestring = $hours.\"h\";//.$mins.\"m\";\n if ($days>0) $timestring = $days.\"d\";//.$hours.\"h\";\n\n return $timestring;\n}", "function _ago($tm,$rcs = 0) {\n $cur_tm = time(); $dif = $cur_tm-$tm;\n $pds = array('second','minute','hour','day','week','month','year','decade');\n $lngh = array(1,60,3600,86400,604800,2630880,31570560,315705600);\n for($v = sizeof($lngh)-1; ($v >= 0)&&(($no = $dif/$lngh[$v])<=1); $v--); if($v < 0) $v = 0; $_tm = $cur_tm-($dif%$lngh[$v]);\n\n $no = floor($no); if($no <> 1) $pds[$v] .='s'; $x=sprintf(\"%d %s \",$no,$pds[$v]);\n if(($rcs == 1)&&($v >= 1)&&(($cur_tm-$_tm) > 0)) $x .= time_ago($_tm);\n return $x;\n}", "public static function get_timeago_html( $time = false ) {\n\t\tif ( ! $time ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$timezone = self::get_timezone();\n\t\t$timezone_obj = new DateTimeZone( $timezone );\n\t\t$date = new DateTime( $time, $timezone_obj );\n\t\t$time = $date->format( 'c' );\n\n\t\tif ( ! $time || ( strtotime( $time ) - time() ) > 0 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$time = human_time_diff( strtotime( $time ), time() );\n\t\t$ago = self::get_ago_translation();\n\n\t\tif ( ! empty( $time ) ) {\n\t\t\t$time_array = array(\n\t\t\t\t$time,\n\t\t\t\t$ago\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Allow developers to translate time or change the order.\n\t\t\t * \n\t\t\t * @since 2.2.0\n\t\t\t * \n\t\t\t * @param array $time_array Array( [0] => time numeric value, [1] => hours, days, months, etc. )\n\t\t\t */\n\t\t\t$time = implode( ' ', apply_filters( 'ibx_wpfomo_time_array', $time_array ) );\n\t\t}\n\n\t\t// translators: %1$s is for time \"About 1 hour\" and %2$s is for \"ago\" text.\n\t\t$time_ago = sprintf( __( '%1$s %2$s', 'ibx-wpfomo' ), esc_html( $time ), $ago );\n\n\t\treturn $time;\n\t}", "public function formatTimeAgo($time,$long=false) {\n\t\tif (is_string($time)) {\n\t\t\tif (is_numeric($time)) {\n\t\t\t\t$datestamp = (int) $time;\n\t\t\t} else {\n\t\t\t\t$datestamp = strtotime($time);\n\t\t\t}\n\t\t} else {\n\t\t\t$datestamp = $time;\n\t\t}\n\t\t$seconds = floor((time() - $datestamp));\n\t\tif ($seconds < 60) {\n\t\t\t$ago_str = $seconds . ' seconds ago';\n\t\t} else if ($seconds >= 60 && $seconds < 120) {\n\t\t\t$ago_str = '1 minute ago';\n\t\t} else if ($seconds >= 120 && $seconds < 3600) {\n\t\t\t$ago_str = floor($seconds / 60) .' minutes ago';\n\t\t} else if ($seconds >= 3600 && $seconds < 7200) {\n\t\t\t$ago_str = '1 hour ago';\n\t\t} else if ($seconds >= 7200 && $seconds < 86400) {\n\t\t\t$ago_str = floor($seconds / 3600) .' hours ago';\n\t\t} else if ($seconds >= 86400 && $seconds < 31536000) {\n\t\t\tif ($long) {\n\t\t\t\t$ago_str = date('l, F d', $datestamp);\n\t\t\t} else {\n\t\t\t\t$ago_str = date('d M', $datestamp);\n\t\t\t}\n\t\t} else {\n\t\t\tif ($long) {\n\t\t\t\t$ago_str = date('l, F d, Y', $datestamp);\n\t\t\t} else {\n\t\t\t\t$ago_str = date('d M, y', $datestamp);\n\t\t\t}\n\t\t}\n\t\treturn $ago_str;\n\t}", "function cjpopups_time_ago($ptime){\n $etime = time() - $ptime;\n if ($etime < 1){\n return __('Just now', 'cjpopups');\n }\n $a = array(\n \t12 * 30 * 24 * 60 * 60 => 'year',\n\t\t30 * 24 * 60 * 60 => 'month',\n\t\t24 * 60 * 60 => 'day',\n\t\t60 * 60 => 'hour',\n\t\t60 => 'minute',\n\t\t1 => 'second',\n );\n $singular = array(\n \t'year' => __('year', 'cjpopups'),\n\t\t'month' => __('month', 'cjpopups'),\n\t\t'day' => __('day', 'cjpopups'),\n\t\t'hour' => __('hour', 'cjpopups'),\n\t\t'minute' => __('minute', 'cjpopups'),\n\t\t'second' => __('second', 'cjpopups'),\n );\n $plurals = array(\n \t'year' => __('years', 'cjpopups'),\n\t\t'month' => __('months', 'cjpopups'),\n\t\t'day' => __('days', 'cjpopups'),\n\t\t'hour' => __('hours', 'cjpopups'),\n\t\t'minute' => __('minutes', 'cjpopups'),\n\t\t'second' => __('seconds', 'cjpopups'),\n );\n foreach ($a as $secs => $str){\n $d = $etime / $secs;\n if ($d >= 1){\n $r = round($d);\n return $r . ' ' . ($r > 1 ? $plurals[$str] : $singular[$str]) .' '. __('ago', 'cjpopups');\n }\n }\n}", "function relative_time($time) {\r\n if(!is_numeric($time)) $time = strtotime($time);\r\n\r\n $elapsed = time() - $time;\r\n\r\n if($elapsed <= 1) {\r\n return 'Just now';\r\n }\r\n\r\n $times = array(\r\n 31104000 => 'year',\r\n 2592000 => 'month',\r\n 604800 => 'week',\r\n 86400 => 'day',\r\n 3600 => 'hour',\r\n 60 => 'minute',\r\n 1 => 'second'\r\n );\r\n\r\n foreach($times as $seconds => $title) {\r\n $rounded = $elapsed / $seconds;\r\n\r\n if($rounded > 1) {\r\n $rounded = round($rounded);\r\n return $rounded . ' ' . pluralise($rounded, $title) . ' ago';\r\n }\r\n }\r\n}", "public function time_diff($date, $ago_str=1, $show_date){ \t\t\n\t\t$s = time() - strtotime($date);\n\t\tif($s >= 1) {\n\t\t$td = \"$s sec\";\n\t\t} \n\t\tif($s > 59){ \n\t\t\t$m = (int)($s/60); \n\t\t\t$s = $s-($m*60); // sec left over \n\t\t\t$td = \"$m min\"; if($s>1) $td .= \"s\"; \n\t\t} \n\t\tif($m > 59){ \n\t\t\t$hr = (int)($m/60); \n\t\t\t$m = $m-($hr*60); // min left over \n\t\t\t$td = \"$hr hr\"; if($hr>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($hr>23){\t\t\n\t\t\t$d = (int)($hr/24); \n\t\t\t$hr = $hr-($d*24); // hr left over \n\t\t\t$td = \"$d day\"; if($d>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\t\n\t\tif($d > 30){\t\t\n\t\t\t$m = (int)($d/30);\n\t\t\t$td = \"$m month\"; if($m>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($ago_str == 1){\n\t\t\t$td .= ($td==\"now\")? \"\":\" ago\"; // in this example \"ago\" \n\t\t}\n\t\t// show the date\n\t\tif($d > 1 && $show_date == '1'){\n\t\t\treturn date('jS M, Y', strtotime($date));\n\t\t}\n\t\tif(trim($td) == 'ago')\treturn '1 sec ago';\n\t\t\n\t\treturn $td;\t\t\n }", "public function time_diff($date, $ago_str=1, $show_date){ \t\t\n\t\t$s = time() - strtotime($date);\n\t\tif($s >= 1) {\n\t\t$td = \"$s sec\";\n\t\t} \n\t\tif($s > 59){ \n\t\t\t$m = (int)($s/60); \n\t\t\t$s = $s-($m*60); // sec left over \n\t\t\t$td = \"$m min\"; if($s>1) $td .= \"s\"; \n\t\t} \n\t\tif($m > 59){ \n\t\t\t$hr = (int)($m/60); \n\t\t\t$m = $m-($hr*60); // min left over \n\t\t\t$td = \"$hr hr\"; if($hr>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($hr>23){\t\t\n\t\t\t$d = (int)($hr/24); \n\t\t\t$hr = $hr-($d*24); // hr left over \n\t\t\t$td = \"$d day\"; if($d>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\t\n\t\tif($d > 30){\t\t\n\t\t\t$m = (int)($d/30);\n\t\t\t$td = \"$m month\"; if($m>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($ago_str == 1){\n\t\t\t$td .= ($td==\"now\")? \"\":\" ago\"; // in this example \"ago\" \n\t\t}\n\t\t// show the date\n\t\tif($d > 1 && $show_date == '1'){\n\t\t\treturn date('jS M, Y', strtotime($date));\n\t\t}\n\t\tif(trim($td) == 'ago')\treturn '1 sec ago';\n\t\t\n\t\treturn $td;\t\t\n }", "static function timeElapsed($timestamp)\n {\n $d1 = new DateTime($timestamp);\n $d2 = new DateTime();\n $interval = $d1->diff($d2);\n $totalDiff = abs(time() - strtotime($timestamp)); // diff in seconds\n if ($totalDiff < 60) return \"seconds ago\";\n if ($totalDiff >= 60 && $totalDiff < 3600) return $interval->i . \" minutes ago\";\n if ($totalDiff >= 3600 && $totalDiff < 86400) return $interval->h . \" hours ago\";\n if ($totalDiff >= 86400) return $interval->d . \" days ago\";\n }", "public function getTimeElapsed(): string\n {\n $now = new DateTime('now');\n $ago = new DateTime($this->datetime);\n $diff = $ago->diff($now);\n if (!empty($diff->y)) {\n $age = $diff->y . 'year';\n $age = $age . ($diff->y > 1 ? 's' : '');\n } elseif ($diff->m > 0) {\n $age = $diff->m . 'month';\n $age = $age . ($diff->m > 1 ? 's' : '');\n } elseif ($diff->d > 0) {\n $age = $diff->d . 'day';\n $age = $age . ($diff->d > 1 ? 's' : '');\n } elseif ($diff->h > 0) {\n $age = $diff->h . 'hour';\n $age = $age . ($diff->h > 1 ? 's' : '');\n } elseif ($diff->i > 0) {\n $age = $diff->i . 'minute';\n $age = $age . ($diff->i > 1 ? 's' : '');\n } else {\n $age = $diff->s . 'second';\n $age = $age . ($diff->s > 1 ? 's' : '');\n }\n $ageWithPostfix = $age . ' ago';\n return $ageWithPostfix;\n }", "function human_time($datefrom, $dateto = -1)\n{\n\t// Defaults and assume if 0 is passed in that its an error rather than the epoch\n\tif ( $datefrom <= 0 )\n\t\treturn \"A long time ago\";\n\t\t\n\tif ( $dateto == -1) { \n\t\t$dateto = time(); \n\t}\n\t\n\t// Calculate the difference in seconds betweeen the two timestamps\n\t$difference = $dateto - $datefrom;\n\t\n\t// If difference is less than 60 seconds use 'seconds'\n\tif ( $difference < 60 )\n\t{ \n\t\t$interval = \"s\"; \n\t}\n\t// If difference is between 60 seconds and 60 minutes use 'minutes'\n\telse if ( $difference >= 60 AND $difference < (60*60) )\n\t{\n\t\t$interval = \"n\"; \n\t}\n\t// If difference is between 1 hour and 24 hours use 'hours'\n\telse if ( $difference >= (60*60) AND $difference < (60*60*24) )\n\t{\n\t\t$interval = \"h\"; \n\t}\n\t// If difference is between 1 day and 7 days use 'days'\n\telse if ( $difference >= (60*60*24) AND $difference < (60*60*24*7) )\n\t{\n\t\t$interval = \"d\"; \n\t}\n\t// If difference is between 1 week and 30 days use 'weeks'\n\telse if ( $difference >= (60*60*24*7) AND $difference < (60*60*24*30) )\n\t{\n\t\t$interval = \"ww\";\n\t}\n\t// If difference is between 30 days and 365 days use 'months'\n\telse if ( $difference >= (60*60*24*30) AND $difference < (60*60*24*365) )\n\t{\n\t\t$interval = \"m\"; \n\t}\n\t// If difference is greater than or equal to 365 days use 'years'\n\telse if ( $difference >= (60*60*24*365) )\n\t{\n\t\t$interval = \"y\"; \n\t}\n\t\n\t// Based on the interval, determine the number of units between the two dates\n\t// If the $datediff returned is 1, be sure to return the singular\n\t// of the unit, e.g. 'day' rather 'days'\n\tswitch ($interval)\n\t{\n\t\tcase \"m\" :\n\t\t\t$months_difference = floor($difference / 60 / 60 / 24 / 29);\n\t\t\t\n\t\t\twhile(\n\t\t\t\tmktime(date(\"H\", $datefrom), date(\"i\", $datefrom),\n\t\t\t\tdate(\"s\", $datefrom), date(\"n\", $datefrom)+($months_difference),\n\t\t\t\tdate(\"j\", $dateto), date(\"Y\", $datefrom)) < $dateto)\n\t\t\t{\n\t\t\t\t$months_difference++;\n\t\t\t}\n\t\t\t$datediff = $months_difference;\n\t\n\t\t\t// We need this in here because it is possible to have an 'm' interval and a months\n\t\t\t// difference of 12 because we are using 29 days in a month\n\t\t\tif ( $datediff == 12 )\n\t\t\t{ \n\t\t\t\t$datediff--; \n\t\t\t}\n\t\n\t\t\t$res = ($datediff==1) ? \"$datediff month ago\" : \"$datediff months ago\";\n\t\t\t\n\t\t\tbreak;\n\t\n\t\tcase \"y\" :\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 365);\n\t\t\t$res = ($datediff==1) ? \"$datediff year ago\" : \"$datediff years ago\";\n\n\t\t\tbreak;\n\t\n\t\tcase \"d\" :\n\t\t\t$datediff = floor($difference / 60 / 60 / 24);\n\t\t\t$res = ($datediff==1) ? \"$datediff day ago\" : \"$datediff days ago\";\n\t\t\t\n\t\t\tbreak;\n\t\n\t\tcase \"ww\" :\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 7);\n\t\t\t$res = ($datediff==1) ? \"$datediff week ago\" : \"$datediff weeks ago\";\n\n\t\t\tbreak;\n\t\n\t\tcase \"h\" :\n\t\t\t$datediff = floor($difference / 60 / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff hour ago\" : \"$datediff hours ago\";\n\n\t\t\tbreak;\n\t\n\t\tcase \"n\" :\n\t\t\t$datediff = floor($difference / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff minute ago\" : \"$datediff minutes ago\";\n\t\n\t\t\tbreak;\n\t\n\t\tcase \"s\":\n\t\t\t$datediff = $difference;\n\t\t\t$res = ($datediff==1) ? \"$datediff second ago\" : \"$datediff seconds ago\";\n\t\t\t\n\t\t\tbreak;\n\t}\n\n\treturn $res;\n}", "function ajan_core_time_since( $older_date, $newer_date = false ) {\n\n\t// Use this filter to bypass ActivityNotifications's time_since calculations\n\tif ( $pre_value = apply_filters( 'ajan_core_time_since_pre', false, $older_date, $newer_date ) ) {\n\t\treturn $pre_value;\n\t}\n\n\t// Setup the strings\n\t$unknown_text = apply_filters( 'ajan_core_time_since_unknown_text', __( 'sometime', 'ajency-activity-and-notifications' ) );\n\t$right_now_text = apply_filters( 'ajan_core_time_since_right_now_text', __( 'right now', 'ajency-activity-and-notifications' ) );\n\t$ago_text = apply_filters( 'ajan_core_time_since_ago_text', __( '%s ago', 'ajency-activity-and-notifications' ) );\n\n\t// array of time period chunks\n\t$chunks = array(\n\t\tYEAR_IN_SECONDS,\n\t\t30 * DAY_IN_SECONDS,\n\t\tWEEK_IN_SECONDS,\n\t\tDAY_IN_SECONDS,\n\t\tHOUR_IN_SECONDS,\n\t\tMINUTE_IN_SECONDS,\n\t\t1\n\t);\n\n\tif ( !empty( $older_date ) && !is_numeric( $older_date ) ) {\n\t\t$time_chunks = explode( ':', str_replace( ' ', ':', $older_date ) );\n\t\t$date_chunks = explode( '-', str_replace( ' ', '-', $older_date ) );\n\t\t$older_date = gmmktime( (int) $time_chunks[1], (int) $time_chunks[2], (int) $time_chunks[3], (int) $date_chunks[1], (int) $date_chunks[2], (int) $date_chunks[0] );\n\t}\n\n\t/**\n\t * $newer_date will equal false if we want to know the time elapsed between\n\t * a date and the current time. $newer_date will have a value if we want to\n\t * work out time elapsed between two known dates.\n\t */\n\t$newer_date = ( !$newer_date ) ? strtotime( ajan_core_current_time() ) : $newer_date;\n\n\t// Difference in seconds\n\t$since = $newer_date - $older_date;\n\n\t// Something went wrong with date calculation and we ended up with a negative date.\n\tif ( 0 > $since ) {\n\t\t$output = $unknown_text;\n\n\t/**\n\t * We only want to output two chunks of time here, eg:\n\t * x years, xx months\n\t * x days, xx hours\n\t * so there's only two bits of calculation below:\n\t */\n\t} else {\n\n\t\t// Step one: the first chunk\n\t\tfor ( $i = 0, $j = count( $chunks ); $i < $j; ++$i ) {\n\t\t\t$seconds = $chunks[$i];\n\n\t\t\t// Finding the biggest chunk (if the chunk fits, break)\n\t\t\t$count = floor( $since / $seconds );\n\t\t\tif ( 0 != $count ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// If $i iterates all the way to $j, then the event happened 0 seconds ago\n\t\tif ( !isset( $chunks[$i] ) ) {\n\t\t\t$output = $right_now_text;\n\n\t\t} else {\n\n\t\t\t// Set output var\n\t\t\tswitch ( $seconds ) {\n\t\t\t\tcase YEAR_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s year', '%s years', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 30 * DAY_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s month', '%s months', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase WEEK_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s week', '%s weeks', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase DAY_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s day', '%s days', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase HOUR_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s hour', '%s hours', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase MINUTE_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s minute', '%s minutes', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$output = sprintf( _n( '%s second', '%s seconds', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t}\n\n\t\t\t// Step two: the second chunk\n\t\t\t// A quirk in the implementation means that this\n\t\t\t// condition fails in the case of minutes and seconds.\n\t\t\t// We've left the quirk in place, since fractions of a\n\t\t\t// minute are not a useful piece of information for our\n\t\t\t// purposes\n\t\t\tif ( $i + 2 < $j ) {\n\t\t\t\t$seconds2 = $chunks[$i + 1];\n\t\t\t\t$count2 = floor( ( $since - ( $seconds * $count ) ) / $seconds2 );\n\n\t\t\t\t// Add to output var\n\t\t\t\tif ( 0 != $count2 ) {\n\t\t\t\t\t$output .= _x( ',', 'Separator in time since', 'ajency-activity-and-notifications' ) . ' ';\n\n\t\t\t\t\tswitch ( $seconds2 ) {\n\t\t\t\t\t\tcase 30 * DAY_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s month', '%s months', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase WEEK_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s week', '%s weeks', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase DAY_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s day', '%s days', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase HOUR_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s hour', '%s hours', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase MINUTE_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s minute', '%s minutes', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s second', '%s seconds', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// No output, so happened right now\n\t\t\tif ( ! (int) trim( $output ) ) {\n\t\t\t\t$output = $right_now_text;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Append 'ago' to the end of time-since if not 'right now'\n\tif ( $output != $right_now_text ) {\n\t\t$output = sprintf( $ago_text, $output );\n\t}\n\n\treturn apply_filters( 'ajan_core_time_since', $output, $older_date, $newer_date );\n}", "function cal_times($times){\n\t\t$diffTime = time()-strtotime($times);\n\t\t//echo $diffTime; exit();\n\t\tif($diffTime>31104000){\n\n\t\t\t$time = ceil($diffTime/31104000);\n\n\t\t\treturn $time.' year ago';\n\n\t\t}elseif($diffTime>2492000){\n\n\t\t\t$time = ceil($diffTime/2492000);\n\n\t\t\treturn $time.' months ago';\n\n\t\t}elseif($diffTime>86400){\n\n\t\t\t$time = ceil($diffTime/86400);\n\n\t\t\treturn $time.' days ago';\n\n\t\t}elseif($diffTime>3600){\n\n\t\t\t$time = ceil($diffTime/3600);\n\n\t\t\treturn $time.' hours ago';\n\n\t\t}elseif($diffTime>60){\n\n\t\t\t$time = ceil($diffTime/60);\n\n\t\t\treturn $time.' minutes ago';\n\n\t\t}else{\n\n\t\t\treturn $diffTime.' second ago';\n\n\t\t}\n\n\t}", "public function getDateAgo() {return $this->getDate() ? $this->getTimeDisplay($this->getDate()) : 'unknown';}", "public static function timeago($timestamp)\n {\n if (intval($timestamp) == 0) {\n return 'n/a';\n }\n\n $difference = time() - intval($timestamp);\n\n $periods = array(\n \"second\",\n \"minute\",\n \"hour\",\n \"day\",\n \"week\",\n \"month\",\n \"years\",\n \"decade\"\n );\n\n $lengths = array(\n \"60\",\n \"60\",\n \"24\",\n \"7\",\n \"4.35\",\n \"12\",\n \"10\"\n );\n\n for ($j = 0; $difference >= $lengths[$j]; $j++) {\n $difference /= $lengths[$j];\n }\n\n $difference = round($difference);\n if ($difference != 1) {\n $periods[$j] .= \"s\";\n }\n\n $text = \"$difference $periods[$j] ago\";\n return $text;\n }", "static public function getTimeAgo($mxdTimestamp, $intHourLimit = 24, $strAltFormat = 'M d, Y @ g:ia', $blnAbbreviate = false, $blnFormatFuture = true) {\n\t\t\tif (!is_numeric($intTimestamp = $mxdTimestamp)) {\n\t\t\t\tif (($intTimestamp = strtotime($mxdTimestamp)) < 1) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (($intSeconds = time() - $intTimestamp) < 0 && $blnFormatFuture) {\n\t\t\t\t$intSeconds = abs($intSeconds);\n\t\t\t\t$blnInFuture = true;\n\t\t\t}\n\t\t\t$intHours = floor($intSeconds / 3600);\n\t\t\t\n\t\t\tif ($intHours >= 0 && $intHours < $intHourLimit) {\n\t\t\t\tif (!$intHours) {\n\t\t\t\t\t$intMinutes = floor($intSeconds / 60);\n\t\t\t\t\t\n\t\t\t\t\tif (!$intMinutes) {\n\t\t\t\t\t\tif ($intSeconds == 0) {\n\t\t\t\t\t\t\treturn 'just now';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$intAmount = $intSeconds;\n\t\t\t\t\t\t$strUnit = $blnAbbreviate ? 'sec' : 'second';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$intAmount = $intMinutes;\n\t\t\t\t\t\t$strUnit = $blnAbbreviate ? 'min' : 'minute';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$intAmount = $intHours;\n\t\t\t\t\t$strUnit = $blnAbbreviate ? 'hr' : 'hour';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!empty($blnInFuture)) {\n\t\t\t\t\treturn sprintf('in %d %s%s', $intAmount, $strUnit, ($intAmount != 1 ? 's' : ''));\n\t\t\t\t} else {\n\t\t\t\t\treturn sprintf('%d %s%s ago', $intAmount, $strUnit, ($intAmount != 1 ? 's' : ''));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$objInstance = self::getInstance();\n\t\t\t\treturn 'on ' . date($strAltFormat, $intTimestamp + ($objInstance->intClientOffset - $objInstance->intSystemOffset));\n\t\t\t}\n\t\t}", "public static function timeAgo($timestamp)\n\t{\n\t\tif (strstr($timestamp, '-'))\n\t\t{\n\t\t\t$timestamp = self::mkt($timestamp);\n\t\t}\n\t\t$text = self::timeAgoo($timestamp);\n\n\t\t$parts = explode(' ', $text);\n\n\t\t$text = $parts[0] . ' ' . $parts[1];\n\n\t\treturn $text;\n\t}", "function time_ago($tm, $rcs = 0) {\r\n\tif (empty($tm)) $tm = strtotime(\"-10 hours\");\r\n\r\n $cur_tm = time(); \r\n $dif = $cur_tm - $tm;\r\n $pds = array('seconds', 'minutes', 'hour', 'day', 'week', 'month', 'year', 'decade');\r\n $lngh = array(1,60,3600,86400,604800,2630880,31570560,315705600);\r\n\r\n for ($v = count($lngh) - 1; ($v >= 0) && (($no = $dif / $lngh[$v]) <= 1); $v--);\r\n if ($v < 0)\r\n $v = 0;\r\n $_tm = $cur_tm - ($dif % $lngh[$v]);\r\n\r\n $no = ($rcs ? floor($no) : round($no)); // if last denomination, round\r\n\r\n if ($no != 1)\r\n $pds[$v] .= '';\r\n $x = $no . ' ' . $pds[$v];\r\n\r\n if (($rcs > 0) && ($v >= 1))\r\n $x .= ' ' . $this->time_ago($_tm, $rcs - 1);\r\n\t\r\n\tif ($v > 2) {\r\n\t\treturn date('d/m/Y h:i A',$tm);\r\n\t}\r\n\t\r\n\tif ($dif == 0) return \"recently.\";\r\n\t\r\n return $x . ' ago.';\r\n \r\n}", "function ago($datefrom,$dateto=-1)\r\n\t{\r\n\t\t// its an error rather than the epoch\r\n\r\n\t\tif($datefrom instanceof \\MongoDate)\r\n\t\t\t$datefrom = $datefrom->sec;\r\n\t\tif($dateto instanceof \\MongoDate)\r\n\t\t\t$dateto=$dateto->sec;\r\n\r\n\t\tif($datefrom==0) { return \"A long time ago\"; }\r\n\t\tif($dateto==-1) { $dateto = time(); }\r\n\r\n\t\t// Make the entered date into Unix timestamp from MySQL datetime field\r\n\r\n\t\t$datefrom = $datefrom;\r\n\r\n\t\t// Calculate the difference in seconds betweeen\r\n\t\t// the two timestamps\r\n\r\n\t\t$difference = $dateto - $datefrom;\r\n\r\n\t\t// Based on the interval, determine the\r\n\t\t// number of units between the two dates\r\n\t\t// From this point on, you would be hard\r\n\t\t// pushed telling the difference between\r\n\t\t// this function and DateDiff. If the $datediff\r\n\t\t// returned is 1, be sure to return the singular\r\n\t\t// of the unit, e.g. 'day' rather 'days'\r\n\r\n\t\tswitch(true)\r\n\t\t{\r\n\t\t\t// If difference is less than 60 seconds,\r\n\t\t\t// seconds is a good interval of choice\r\n\t\t\tcase(strtotime('-1 min', $dateto) < $datefrom):\r\n\t\t\t\t$datediff = $difference;\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' second ago' : $datediff.' seconds ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 60 seconds and\r\n\t\t\t\t// 60 minutes, minutes is a good interval\r\n\t\t\tcase(strtotime('-1 hour', $dateto) < $datefrom):\r\n\t\t\t\t$datediff = floor($difference / 60);\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' minute ago' : $datediff.' minutes ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 1 hour and 24 hours\r\n\t\t\t\t// hours is a good interval\r\n\t\t\tcase(strtotime('-1 day', $dateto) < $datefrom):\r\n\t\t\t\t$datediff = floor($difference / 60 / 60);\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' hour ago' : $datediff.' hours ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 1 day and 7 days\r\n\t\t\t\t// days is a good interval\r\n\t\t\tcase(strtotime('-1 week', $dateto) < $datefrom):\r\n\t\t\t\t$day_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$day_difference.' day', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$day_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $day_difference;\r\n\t\t\t\t$res = ($datediff==1) ? 'yesterday' : $datediff.' days ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 1 week and 30 days\r\n\t\t\t\t// weeks is a good interval\r\n\t\t\tcase(strtotime('-1 month', $dateto) < $datefrom):\r\n\t\t\t\t$week_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$week_difference.' week', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$week_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $week_difference;\r\n\t\t\t\t$res = ($datediff==1) ? 'last week' : $datediff.' weeks ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 30 days and 365 days\r\n\t\t\t\t// months is a good interval, again, the same thing\r\n\t\t\t\t// applies, if the 29th February happens to exist\r\n\t\t\t\t// between your 2 dates, the function will return\r\n\t\t\t\t// the 'incorrect' value for a day\r\n\t\t\tcase(strtotime('-1 year', $dateto) < $datefrom):\r\n\t\t\t\t$months_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$months_difference.' month', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$months_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $months_difference;\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' month ago' : $datediff.' months ago';\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is greater than or equal to 365\r\n\t\t\t\t// days, return year. This will be incorrect if\r\n\t\t\t\t// for example, you call the function on the 28th April\r\n\t\t\t\t// 2008 passing in 29th April 2007. It will return\r\n\t\t\t\t// 1 year ago when in actual fact (yawn!) not quite\r\n\t\t\t\t// a year has gone by\r\n\t\t\tcase(strtotime('-1 year', $dateto) >= $datefrom):\r\n\t\t\t\t$year_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$year_difference.' year', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$year_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $year_difference;\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' year ago' : $datediff.' years ago';\r\n\t\t\t\tbreak;\r\n\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function timeLeft($target)\n{\n\t$return_value = \"\";\n\t$diff = $target['endTime']->diff($target['timeStamp']);\n\t$doPlural = function($nb,$str){return $nb>1?$str.'s':$str;}; // adds plurals\n\n\t$format = array();\n\tif($diff->y !== 0) {\n\t\t$format[] = \"%y \".$doPlural($diff->y, \"year\");\n\t}\n\tif($diff->m !== 0) {\n\t\t$format[] = \"%m \".$doPlural($diff->m, \"month\");\n\t}\n\tif($diff->d !== 0) {\n\t\t$format[] = \"%d \".$doPlural($diff->d, \"day\");\n\t}\n\tif($diff->h !== 0) {\n\t\t$format[] = \"%h \".$doPlural($diff->h, \"hour\");\n\t}\n\tif($diff->i !== 0) {\n\t\t$format[] = \"%i \".$doPlural($diff->i, \"minute\");\n\t}\n\tif($diff->s !== 0) {\n\t\tif(!count($format)) {\n\t\t\treturn \"less than a minute ago\";\n\t\t} else {\n\t\t\t$format[] = \"%s \".$doPlural($diff->s, \"second\");\n\t\t}\n\t}\n\n\t// Prepend 'since ' or whatever you like from the calling function\n\treturn $diff->format(implode (\" \",$format));\n\n}", "public static function getTimeAgo($agoInString = '30 minutes', $format = 'MYSQL_DATETIME') {\n\t\t$nowDateTimeObject = new DateTime('now');\n\t\t$agoInterval = date_interval_create_from_date_string($agoInString);\n\t\t$timeAgoDateTimeObject = $nowDateTimeObject->sub($agoInterval);\n\t\tif ($format == 'MYSQL_DATETIME') {\n\t\t\treturn $timeAgoDateTimeObject->format('Y-m-d H:i:s');\n\t\t} else {\n\t\t\treturn $timeAgoDateTimeObject->format('Y-m-d H:i:s');\n\t\t}\n\t}", "public function activityTime();", "public static function timeAgo($timestamp){\n\t\t$timestamp = (int) $timestamp;\n\t\t$current_time = time();\n\t\t$diff = $current_time - $timestamp;\n\t\t\n\t\t//intervals in seconds\n\t\t$intervals = array (\n\t\t\t'year' => 31556926, 'month' => 2629744, 'week' => 604800, 'day' => 86400, 'hour' => 3600, 'minute'=> 60\n\t\t\t);\n\t\t\n\t\tif ($diff >= 60 && $diff < $intervals['hour'])\n\t\t{\n\t\t\t$diff = floor($diff/$intervals['minute']);\n\t\t\treturn $diff == 1 ? $diff : $diff;\n\t\t}\n\t}", "function smarty_modifier_agoify($string)\n{\n $time = time() - $string; // to get the time since that moment\n\n $tokens = array (\n 31536000 => 'year',\n 2592000 => 'month',\n 604800 => 'week',\n 86400 => 'day',\n 3600 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach ($tokens as $unit => $text) {\n if ($time < $unit){\n \n }else{\n $numberOfUnits = floor($time / $unit);\n break;\n }\n }\n return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'').' ago';\n}", "public static function time_offset($t, $f = 'h:ma M. j Y T'){\n\t$o = time() - $t;\n\tswitch($o){\n\t\tcase($o <= 1): return \"just now\"; break;\n\t\tcase($o < 20): return $o . \" seconds ago\"; break;\n\t\tcase($o < 40): return \"half a minute ago\"; break;\n\t\tcase($o < 60): return \"less than a minute ago\"; break;\n\t\tcase($o <= 90): return \"1 minute ago\"; break;\n\t\tcase($o <= 59*60): return round($o / 60) . \" minutes ago\"; break;\n\t\tcase($o <= 60*60*1.5): return \"1 hour ago\"; break;\n\t\tcase($o <= 60*60*24): return round($o / 60 / 60) . \" hours ago\"; break;\n\t\tcase($o <= 60*60*24*1.5): return \"1 day ago\"; break;\n\t\tcase($o < 60*60*24*7): return round($o / 60 / 60 / 24) . \" days ago\"; break;\n\t\tcase($o <= 60*60*24*9): return \"1 week ago\"; break;\n\t\tdefault: return date($f, $t);\n\t}\n }", "public static function ago($t){\n\t\treturn date('Y-m-d H:i:s', time()-$t);\n\t}", "function _ago($tm, $rcs = 0) {\n\t$cur_tm = time ();\n\t$dif = $cur_tm - $tm;\n\t$pds = array (\n\t\t\t'second',\n\t\t\t'minute',\n\t\t\t'hour',\n\t\t\t'day',\n\t\t\t'week',\n\t\t\t'month',\n\t\t\t'year',\n\t\t\t'decade' \n\t);\n\t$lngh = array (\n\t\t\t1,\n\t\t\t60,\n\t\t\t3600,\n\t\t\t86400,\n\t\t\t604800,\n\t\t\t2630880,\n\t\t\t31570560,\n\t\t\t315705600 \n\t);\n\tfor ($v = sizeof($lngh) - 1; ($v >= 0) && (($no = $dif / $lngh[$v]) <= 1); $v --);\n\tif ($v < 0) $v = 0;\n\t$_tm = $cur_tm - ($dif % $lngh[$v]);\n\t\n\t$no = floor($no);\n\tif ($no != 1) $pds[$v] .= 's';\n\t$x = sprintf(\"%d %s \", $no, $pds[$v]);\n\tif (($rcs > 0) && ($v >= 1) && (($cur_tm - $_tm) > 0)) $x .= _ago($_tm, \n\t\t-- $rcs);\n\treturn $x;\n}", "function days_since( $post = null )\r\n{\r\n $days_ago = round(( date('U') - get_the_time('U') ) / ( 60 * 60 * 24 ));\r\n if ($days_ago == 0) {\r\n $posted = 'Today';\r\n } elseif ($days_ago == 1) {\r\n $posted = '1 day ago';\r\n } else {\r\n $posted = $days_ago . ' days ago.';\r\n }\r\n echo $posted;\r\n}", "function prettyDate($date){\n $time = strtotime($date);\n $now = time();\n $ago = $now - $time;\n if($ago < 60){\n $when = round($ago);\n $s = ($when == 1)?\"second\":\"seconds\";\n return \"$when $s ago\";\n }elseif($ago < 3600){\n $when = round($ago / 60);\n $m = ($when == 1)?\"minute\":\"minutes\";\n return \"$when $m ago\";\n }elseif($ago >= 3600 && $ago < 86400){\n $when = round($ago / 60 / 60);\n $h = ($when == 1)?\"hour\":\"hours\";\n return \"$when $h ago\";\n }elseif($ago >= 86400 && $ago < 2629743.83){\n $when = round($ago / 60 / 60 / 24);\n $d = ($when == 1)?\"day\":\"days\";\n return \"$when $d ago\";\n }elseif($ago >= 2629743.83 && $ago < 31556926){\n $when = round($ago / 60 / 60 / 24 / 30.4375);\n $m = ($when == 1)?\"month\":\"months\";\n return \"$when $m ago\";\n }else{\n $when = round($ago / 60 / 60 / 24 / 365);\n $y = ($when == 1)?\"year\":\"years\";\n return \"$when $y ago\";\n }\n}", "function humanTiming($time) {\n\tif(time() - $time >= 345600) {\n return date(\"m/d/Y g:i A\", $time);\n }\n $time = time() - $time;\n if (strval($time) < 1) {\n $time = 1;\n }\n $tokens = array(86400 => 'day', 3600 => 'hour', 60 => 'minute', 1 => 'second');\n foreach ($tokens as $unit => $text){\n if($time < $unit) continue;\n $numberOfUnits = floor($time / $unit);\n return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':''). ' ago';\n }\n}", "function ago($m) {\n if ($m <= 90)\n return round($m) . ' min. ago';\n if ($m <= (60 * 2))\n return 'less than 2 hrs ago';\n if ($m <= (60 * 2 + 30))\n return 'about 2 hrs ago';\n if ($m <= (60 * 24))\n return 'about ' . round($m / 60) . ' hrs ago';\n\n $dayCnt = round($m / 60 / 24);\n if ($dayCnt > 1)\n return $dayCnt . ' days ago';\n else\n return $dayCnt . ' day ago';\n}", "public static function agoFromTime($time, $t){\n\t\treturn date('Y-m-d H:i:s', $time-$t);\n\t}", "private function _relative_time($date) {\n\t\t$valid_date = (is_numeric($date) && strtotime($date) === FALSE) ? $date : strtotime($date);\n\t\t$diff = time() - $valid_date;\n\t\tif ($diff > 0) {\n\t\t\tif ($diff < 60) {\n\t\t\t\treturn $diff . \" second\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff < 60) {\n\t\t\t\treturn $diff . \" minute\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff < 24) {\n\t\t\t\treturn $diff . \" hour\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 24);\n\n\t\t\tif ($diff < 7) {\n\t\t\t\treturn \"about \" . $diff . \" day\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 7);\n\n\t\t\tif ($diff < 4) {\n\t\t\t\treturn \"about \" . $diff . \" week\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\n\t\t\treturn \"on \" . date(\"F j, Y\", strtotime($valid_date));\n\t\t} else {\n\t\t\tif ($diff > -60) {\n\t\t\t\treturn \"in \" . -$diff . \" second\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff > -60) {\n\t\t\t\treturn \"in \" . -$diff . \" minute\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff > -24) {\n\t\t\t\treturn \"in \" . -$diff . \" hour\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 24);\n\n\t\t\tif ($diff > -7) {\n\t\t\t\treturn \"in \" . -$diff . \" day\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 7);\n\n\t\t\tif ($diff > -4) {\n\t\t\t\treturn \"in \" . -$diff . \" week\" . $this->_plural($diff);\n\t\t\t}\t\n\n\t\t\treturn \"on \" . date(\"F j, Y\", strtotime($valid_date));\n\t\t}\n\t}", "public function getElapsedTime();", "public static function asTimeago($value)\r\n {\r\n if (empty($value)){\r\n $value = '<span class=\"not-set\">(not set)</span>';\r\n } else {\r\n $value = \\yii\\timeago\\TimeAgo::widget(['timestamp' => $value]);\r\n }\r\n return $value;\r\n }", "function exa_get_time( $post = null ) {\n\t\n\t$post = get_post($post);\n\t$secondsSincePublishing = _exa_seconds_since_published( $post );\n\n\t$since = \"\";\n\tif( exa_is_published_today( $post ) ) {\n\n\t\tif ( $secondsSincePublishing <= HOUR_IN_SECONDS ) {\n\t\t\t$mins = round( $secondsSincePublishing / MINUTE_IN_SECONDS );\n\t\t\tif( $mins < 1)\n\t\t\t\t$mins = 1;\n\t\t\t$since = sprintf( _n('%s minute ago', '%s minutes ago', $mins, 'exa'), $mins);\n\t\t} else {\n\t\t\t$hours = round( $secondsSincePublishing / HOUR_IN_SECONDS );\n\t\t\t$since = sprintf( _n('%s hour ago', '%s hours ago', $hours, 'exa'), $hours);\n\t\t}\n\t}\n\telse if( exa_is_published_yesterday( $post ) ) {\n\t\t$since = \"Yesterday\";\n\t}\n\telse {\n\t\t$since = get_the_time(\"M j, Y\",$post);\n\t}\n\t\n\treturn $since;\n}", "public function time_ago($tm,$rcs = 0)\n\t{\n\t\t$cur_tm = time(); $dif = $cur_tm-$tm;\n\t\t$pds = array('second','minute','hour','day','week','month','year','decade');\n\t\t$lngh = array(1,60,3600,86400,604800,2630880,31570560,315705600);\n\t\tfor($v = sizeof($lngh)-1; ($v >= 0)&&(($no = $dif/$lngh[$v])<=1); $v--); if($v < 0) $v = 0; $_tm = $cur_tm-($dif%$lngh[$v]);\n\n\t\t$no = floor($no); if($no <> 1) $pds[$v] .='s';\n\t\t$x=sprintf(sprintf('%%d %s ago', $pds[$v]), $no);\n\t\tif(($rcs == 1)&&($v >= 1)&&(($cur_tm-$_tm) > 0)) $x .= time_ago($_tm);\n\t\treturn $x;\n\t}", "function timeSincePublish($pub_date){\r\n\t\t\t$now_date = date('U');\r\n\t\t\t$since_date = $now_date - $pub_date;\r\n\t\t\t$since_hours = floor($since_date / 60 / 60);\r\n\t\t\t$since_days = floor($since_hours / 24);\r\n\t\t\r\n\t\t\t?><span style=\"display:none;\"><?php echo $pub_date; ?></span><?php\r\n\t\t\r\n\t\t\tif($since_hours<1 && $since_days<1){\r\n\t\t\t?><em>recently</em><?php\r\n\t\t\t}elseif($since_hours>=1 && $since_days<1){\r\n\t\t\t?><em><?=$since_hours?> hour<?= ($since_hours>1 ? 's':''); ?> ago</em><?php\r\n\t\t\t}elseif($since_hours>1 && $since_days>=1){\r\n\t\t\t?><em><?= ($since_days==1 ? 'yesterday':$since_days.' days ago'); ?></em><?php\r\n\t\t\t}\r\n\t\t}", "function date_since($timestamp, $more_infos = false, $with_hours = false){\n\t$diff = abs(time() - $timestamp);\n\n\tif($with_hours){\n\t\tif($diff < 60){//If less than one minute\n\t\t\treturn $diff.' secondes';\n\t\t}\n\t\tif($diff < 3600){//If less than one hour\n\t\t\t$m=floor($diff / 60);\n\t\t\tif($m == 1){\n\t\t\t\treturn '1 minute';\n\t\t\t}\n\t\t\treturn $m.' minutes';\n\t\t}\n\t\tif($diff < 86400){//If less than one day\n\t\t\t$h=floor($diff / 3600);\n\t\t\tif($h == 1){\n\t\t\t\treturn '1 heure';\n\t\t\t}\n\t\t\treturn $h.' heures';\n\t\t}\n\t} else {\n\t\tif($diff < 86400){\n\t\t\treturn \"aujourd'hui\";\n\t\t}\n\t}\n\n\t//If more than one day:\n\n\t$day=(int)date('j', $diff);\n\t$mon=(int)date('n', $diff) - 1;\n\t$yea=(int)date('Y', $diff) - 1970;\n\n\t$tmp=array();\n\n\tif($day > 0){\n\t\tif($day == 1){\n\t\t\t$tmp[]='1 jour';\n\t\t}else{\n\t\t\t$tmp[]=$day.' jours';\n\t\t}\n\t}\n\tif($mon > 0){\n\t\tif($mon == 1){\n\t\t\t$tmp[]='1 mois';\n\t\t}else{\n\t\t\t$tmp[]=$mon.' mois';\n\t\t}\n\t}\n\tif($yea > 0){\n\t\tif($yea == 1){\n\t\t\t$tmp[]='1 an';\n\t\t}else{\n\t\t\t$tmp[]=$yea.' ans';\n\t\t}\n\t}\n\tif(!$more_infos){\n\t\treturn array_pop($tmp);\n\t}\n\t$separator=array(', ', ' et ', '');\n\t$final=array();\n\tforeach($tmp as $value){\n\t\t$final[]=$value.array_pop($separator);\n\t}\n\treturn implode(array_reverse($final));\n}", "function smartdate($timestamp) {\r\n\t$diff = time() - $timestamp;\r\n\tif ($diff <= 0) {\r\n\t\treturn 'Now';\r\n\t}\r\n\telse if ($diff < 60) {\r\n\t\treturn grammar_date(floor($diff), ' sec(s) ago');\r\n\t}\r\n\telse if ($diff < 60*60) {\r\n\t\treturn grammar_date(floor($diff/60), ' min(s) ago');\r\n\t}\r\n\telse if ($diff < 60*60*24) {\r\n\t\treturn grammar_date(floor($diff/(60*60)), ' hr(s) ago');\r\n\t}\r\n\telse if ($diff < 60*60*24*3) { //3 days\r\n\t\treturn grammar_date(floor($diff/(60*60*24)), ' day(s) ago');\r\n\t}\r\n\telse {\r\n\t\treturn date(\"D, M j, Y\",$timestamp);\r\n\t}\r\n}", "public function getTimeagoAttribute()\n\t{\n\t \t//$date = \\Carbon\\Carbon::createFromTimeStamp(strtotime($this->created_at))->diffForHumans();\n\n\t\tsetLocale(LC_TIME, 'Dutch');\n\t\t$date = Str::title($this->created_at->formatLocalized('%A %d %B %Y'));\n\n\t\treturn $date;\n\t}", "private function getLastFetchTime($record, $returnInAgoFormat=false) \r\n\t{\r\n\t\tglobal $lang;\r\n\t\t$sql = \"select updated_at from redcap_ddp_records \r\n\t\t\t\twhere project_id = \" . $this->project_id . \" and record = '\" . prep($record) . \"' limit 1\";\r\n\t\t$q = db_query($sql);\r\n\t\tif (db_num_rows($q)) {\r\n\t\t\t$ts = db_result($q, 0);\r\n\t\t\t// If we're returning the time in \"X hours ago\" format, then convert it, else return as is\r\n\t\t\tif ($returnInAgoFormat) {\r\n\t\t\t\t// If timestamp is NOW, then return \"just now\" text\r\n\t\t\t\tif ($ts == NOW) return $lang['ws_176'];\r\n\t\t\t\t// First convert to minutes\r\n\t\t\t\t$ts = (strtotime(NOW) - strtotime($ts))/60;\r\n\t\t\t\t// Return if less than 60 minutes\r\n\t\t\t\tif ($ts < 60) return ($ts < 1 ? $lang['ws_177'] : (floor($ts) . \" \" . (floor($ts) == 1 ? $lang['ws_178'] : $lang['ws_179'])));\r\n\t\t\t\t// Convert to hours\r\n\t\t\t\t$ts = $ts/60;\r\n\t\t\t\t// Return if less than 24 hours\r\n\t\t\t\tif ($ts < 24) return floor($ts) . \" \" . (floor($ts) == 1 ? $lang['ws_180'] : $lang['ws_181']);\r\n\t\t\t\t// Convert to days and return\r\n\t\t\t\t$ts = $ts/24;\r\n\t\t\t\treturn floor($ts) . \" \" . (floor($ts) == 1 ? $lang['ws_182'] : $lang['ws_183']);\r\n\t\t\t}\r\n\t\t\t// Return value\r\n\t\t\treturn $ts;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static function ago($timestamp) {\n $difference = time() - $timestamp;\n // Having the full phrase means that it is fully localisable if the phrasing is different.\n $periods = array(\n lang::get(\"{1} second ago\"),\n lang::get(\"{1} minute ago\"),\n lang::get(\"{1} hour ago\"),\n lang::get(\"Yesterday\"),\n lang::get(\"{1} week ago\"),\n lang::get(\"{1} month ago\"),\n lang::get(\"{1} year ago\"),\n lang::get(\"{1} decade ago\")\n );\n $periodsPlural = array(\n lang::get(\"{1} seconds ago\"),\n lang::get(\"{1} minutes ago\"),\n lang::get(\"{1} hours ago\"),\n lang::get(\"{1} days ago\"),\n lang::get(\"{1} weeks ago\"),\n lang::get(\"{1} months ago\"),\n lang::get(\"{1} years ago\"),\n lang::get(\"{1} decades ago\")\n );\n $lengths = array(\"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\");\n for ($j = 0; (($difference >= $lengths[$j]) && ($j < 7)); $j++) {\n $difference /= $lengths[$j];\n }\n $difference = round($difference);\n if ($difference == 1) {\n $text = str_replace('{1}', $difference, $periods[$j]);\n }\n else {\n $text = str_replace('{1}', $difference, $periodsPlural[$j]);\n }\n return $text;\n }", "function human_time_diff($from, $to = 0)\n {\n }", "function time_since($datetime, $full = false) {\n $now = new DateTime;\n //$now->format('Y-m-d H:i:s');\n $ago = new DateTime($datetime);\n // $ago->format('Y-m-d H:i:s');\n $diff = $now->diff($ago);\n\n $diff->w = floor($diff->d / 7);\n $diff->d -= $diff->w * 7;\n\n $string = array(\n 'y' => 'year',\n 'm' => 'month',\n 'w' => 'week',\n 'd' => 'day',\n 'h' => 'hour',\n 'i' => 'min',\n 's' => 'sec',\n );\n foreach ($string as $key => &$value) {\n if ($diff->$key) {\n $value = $diff->$key . ' ' . $value . ($diff->$key > 1 ? 's' : '');\n } else {\n unset($string[$key]);\n }\n }\n\n if (!$full) $string = array_slice($string, 0, 1);\n return $string ? implode(', ', $string) . ' ago' : 'just now';\n}", "function sloodle_describe_approx_time($secs, $ago = false)\n {\n // Make sure the time is a positive integer\n $secs = (int)$secs;\n if ($secs < 0) $secs *= -1;\n \n // Less than a minute\n if ($secs < 60) {\n // If we are describing a past time, then approximate to 'now'\n if ($ago) return ucwords(get_string('now', 'sloodle'));\n // Give the number of seconds\n if ($secs == 1) return '1 '. get_string('second', 'sloodle');\n return $secs.' '. get_string('seconds', 'sloodle');\n }\n \n // This variable will hold the time description\n $desc = '';\n \n // Roughly 1 minute\n if ($secs < 120) $desc = '1 '. get_string('minute', 'sloodle');\n // Several minutes (up to 1 hour)\n else if ($secs < 3600) $desc = ((string)(int)($secs / 60)).' '. get_string('minutes', 'sloodle');\n // Roughly 1 hour\n else if ($secs < 7200) $desc = '1 '. get_string('hour', 'sloodle');\n // Several hours (up to 1 day)\n else if ($secs < 86400) $desc = ((string)(int)($secs / 3600)).' '. get_string('hours', 'sloodle');\n // Roughly 1 day\n else if ($secs < 172800) $desc = '1 '. get_string('day', 'sloodle');\n // Several days (up to 1 week)\n else if ($secs < 604800) $desc = ((string)(int)($secs / 86400)).' '. get_string('days', 'sloodle');\n // Roughly 1 week\n else if ($secs < 1209600) $desc = '1 '. get_string('week', 'sloodle');\n // Several weeks (up to 2 months)\n else if ($secs < 5184000) $desc = ((string)(int)($secs / 604800)).' '. get_string('weeks', 'sloodle');\n // Several months (up to 11 months)\n else if ($secs < 29462400) $desc = ((string)(int)($secs / 2592000)).' '. get_string('months', 'sloodle');\n // 1 year\n else if ($secs < 63072000) $desc = '1 '. get_string('year', 'sloodle');\n // Several years\n else $desc = ((string)(int)($secs / 31536000)).' '. get_string('years', 'sloodle');\n \n // Add 'ago' if necessary\n if ($ago) return get_string('timeago', 'sloodle', $desc);\n return $desc;\n }", "function getDateTimeDiff($date)\n {\n $now_timestamp = strtotime(date('Y-m-d H:i:s'));\n $diff_timestamp = $now_timestamp - strtotime($date);\n\n if ($diff_timestamp < 60){\n return 'few second ago';\n }elseif ($diff_timestamp >= 60 && $diff_timestamp<3600){\n return round($diff_timestamp/60).' mins ago';\n\n }elseif ($diff_timestamp >= 3600 && $diff_timestamp<86400){\n return round($diff_timestamp/60).' hours ago';\n\n }elseif ($diff_timestamp >= 86400 && $diff_timestamp<(86400*30)){\n return round($diff_timestamp/60).' days ago';\n\n }elseif ($diff_timestamp >= (86400*30) && $diff_timestamp<(86400*365)){\n return round($diff_timestamp/60).' months ago';\n\n }else {\n return round($diff_timestamp/(86400*365)).' years ago';\n }\n\n echo date('Y-m-d H:i:s').'<br>';\n echo getDateTimeDiff('1976-04-13 22:28:00').'<br>';\n echo getDateTimeDiff('1982-03-26 21:35:00').'<br>';\n echo getDateTimeDiff('2012-03-16 14:40:00');\n }", "function time_elapsed_string($datetime) {\n\t\t\t $now = new DateTime;\n\t\t\t $ago = new DateTime($datetime);\n\t\t\t $diff = $now->diff($ago);\n\n\t\t\t $diff->w = floor($diff->d / 7);\n\t\t\t $diff->d -= $diff->w * 7;\n\n\t\t\t $string = array(\n\t\t\t 'y' => 'year',\n\t\t\t 'm' => 'month',\n\t\t\t 'w' => 'week',\n\t\t\t 'd' => 'day',\n\t\t\t 'h' => 'hour',\n\t\t\t 'i' => 'minute',\n\t\t\t 's' => 'second',\n\t\t\t );\n\t\t\t foreach ($string as $k => &$v) {\n\t\t\t if ($diff->$k) {\n\t\t\t $v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');\n\t\t\t } else {\n\t\t\t unset($string[$k]);\n\t\t\t }\n\t\t\t }\n\n\t\t\t if ($string = array_slice($string, 1));\n\t\t\t return $string ? implode(', ', $string) . ', ago' : 'just now';\n\t\t}", "function reply_time() {\n\tglobal $reply;\n\treturn $reply['time'];\n}", "function ago($date){\n\t\t$date = time() - $date; // to get the time since that moment\n\t\t$date = ($date<1)? 1 : $date;\n\t\t$tokens = array (\n\t\t\t31536000 => 'year',\n\t\t\t2592000 => 'month',\n\t\t\t604800 => 'week',\n\t\t\t86400 => 'day',\n\t\t\t3600 => 'hour',\n\t\t\t60 => 'minute',\n\t\t\t1 => 'second'\n\t\t);\n\n\t\tforeach ($tokens as $unit => $text) {\n\t\t\tif ($date < $unit) continue;\n\t\t\t$numberOfUnits = floor($date / $unit);\n\t\t\treturn $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'');\n\t\t}\n\t}", "function time_since($since) {\n $chunks = array(\n array(60 * 60 * 24 * 365 , 'year'),\n array(60 * 60 * 24 * 30 , 'month'),\n array(60 * 60 * 24 * 7, 'week'),\n array(60 * 60 * 24 , 'day'),\n array(60 * 60 , 'hour'),\n array(60 , 'min'),\n array(1 , 'sec')\n );\n\n for ($i = 0, $j = count($chunks); $i < $j; $i++) {\n $seconds = $chunks[$i][0];\n $name = $chunks[$i][1];\n if (($count = floor($since / $seconds)) != 0) {\n break;\n }\n }\n\n $print = ($count == 1) ? '1 '.$name : \"$count {$name}s\";\n return $print;\n }", "function timestamp_age($timestamp) {\n\t$then = new DateTime($timestamp);\n\t$now = new DateTime(gmdate(\"Y-m-d H:i:s\"));\n\t$delta = (int)$now->format(\"U\") - (int)$then->format(\"U\");\n\treturn $delta;\n}", "function getHtmlTime(){\r\n\treturn('P&aacute;gina generada en <b>'.(time() - $_SERVER['REQUEST_TIME']) .'</b> segundos');\r\n}", "function friendlydate_html($timestamp, $html = true) {\n\t$now = time();\n\t$now = $GLOBALS[\"now\"]; //TODO: remove this line once we're using the actual time\n\t$diff = $now - $timestamp;\n\tif ($timestamp == $now)\n\t\t$datestring = \"right now\";\n\telse if ($timestamp > strtotime(\"+1 day\", $now) || $timestamp < strtotime(\"January 1 00:00\", $now))\n\t\t// more than 24 hours ahead or not this year -- give full date\n\t\t$datestring = date(\"Y M j, H:i\", $timestamp);\n\telse if ($diff < 0) {\n\t\t// future\n\t\tif ($diff < -60 * 60) {\n\t\t\t// more than an hour in the future -- give rough number of hours\n\t\t\t$hours = round(-$diff / 60 / 60);\n\t\t\t$datestring = \"in $hours hour\" . plural($hours);\n\t\t} else if ($diff < -60) {\n\t\t\t// more than a minute in the future -- give rough number of minutes\n\t\t\t$minutes = round(-$diff / 60);\n\t\t\t$datestring = \"in $minutes minute\" . plural($minutes);\n\t\t} else\n\t\t\t$datestring = \"imminently\";\n\t} else if ($timestamp < strtotime(\"today\", $now)) {\n\t\t// yesterday or before\n\t\t$datestring = date(\"D, M j, H:i\", $timestamp);\n\t\tif ($timestamp < strtotime(\"-6 days 00:00\", $now))\n\t\t\t// a week or more ago -- leave at month and day\n\t\t\ttrue;\n\t\telse if ($timestamp < strtotime(\"-1 day 00:00\", $now))\n\t\t\t// before yesterday -- additionally give number of days ago\n\t\t\t$datestring .= \" (\" . round((strtotime(\"00:00\", $now) - strtotime(\"00:00\", $timestamp)) /24/60/60) . \"&nbsp;days&nbsp;ago)\";\n\t\telse\n\t\t\t// yesterday -- say so\n\t\t\t$datestring .= \" (yesterday)\";\n\t} else if ($diff > 60 * 60) {\n\t\t// more than an hour ago -- give rough number of hours\n\t\t$hours = round($diff / 60 / 60);\n\t\t$datestring = $hours . \" hour\" . plural($hours) . \" ago\";\n\t} else if ($diff > 60) {\n\t\t// more than a minute ago -- give rough number of minutes\n\t\t$minutes = round($diff / 60);\n\t\t$datestring = $minutes . \" minute\" . plural($minutes) . \" ago\";\n\t} else\n\t\t$datestring = \"just now\";\n\tif ($html)\n\t\treturn \"<span class=\\\"date\\\" title=\\\"\" . date(\"Y-m-d H:i:s T (O)\", $timestamp) . \"\\\">$datestring</span>\";\n\treturn str_replace(\"&nbsp;\", \" \", $datestring);\n}", "public function sqlToTimeDiff($strtm) {\r\n\t\t\t$time = $this->sqlToTime($strtm);\r\n\t\t\t\r\n\t\t\tif ($time <= time()) {\r\n\t\t\t\tif ($time > time() - 45) {\r\n\t\t\t\t\treturn _t('%SECONDS% seconds ago', array('SECONDS' => time() - $time));\r\n\t\t\t\t} elseif ($time > time() - 90) {\r\n\t\t\t\t\treturn _t('About a minute ago');\r\n\t\t\t\t} elseif ($time > time() - (60 * 45)) {\r\n\t\t\t\t\treturn _t('%MINUTES% minutes ago', array('MINUTES' => round((time() - $time) / 60)));\r\n\t\t\t\t} elseif ($time > time() - (60 * 90)) {\r\n\t\t\t\t\treturn _t('About an hour ago');\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 18)) {\r\n\t\t\t\t\treturn _t('%HOURS% hours ago', array('HOURS' => round((time() - $time) / 60 / 60)));\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 36)) {\r\n\t\t\t\t\treturn _t('About a day ago');\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 24 * 5)) {\r\n\t\t\t\t\treturn _t('About %DAYS% days ago', array('DAYS' => round((time() - $time) / 60 / 60 / 24)));\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 24 * 9)) {\r\n\t\t\t\t\treturn _t('About a week ago');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $this->timeToString($time);\r\n\t\t}", "function timedifference($timedifference=0)\n{\n\tif ($timedifference < 60) {\n\t\t$timechange = number_format($timedifference, 0) . ' second';\n\t\tif ($timedifference > 1) {\n\t\t\t$timechange .= 's';\n\t\t}\n\t}\n\n\tif ($timedifference >= 60 && $timedifference < 3600) {\n\t\t$num_mins = floor($timedifference / 60);\n\t\t$timechange = number_format($num_mins, 0) . ' minute';\n\t\tif ($num_mins > 1) {\n\t\t\t$timechange .= 's';\n\t\t}\n\t}\n\n\tif ($timedifference >= 3600) {\n\t\t$hours = floor($timedifference/3600);\n\t\t$mins = floor($timedifference % 3600) / 60;\n\n\t\t$timechange = number_format($hours, 0) . ' hour';\n\t\tif ($hours > 1) {\n\t\t\t$timechange .= 's';\n\t\t}\n\n\t\t$timechange .= ' and ' . number_format($mins, 0) . ' minute';\n\t\tif ($mins > 1) {\n\t\t\t$timechange .= 's';\n\t\t}\n\t}\n\treturn $timechange;\n}", "public static function relativeTime($timestamp, $now = null, $format = null) {\r\n \r\n if ($timestamp instanceof DateTime) {\r\n $timestamp = $timestamp->getTimestamp(); \r\n }\r\n \r\n if ($now instanceof DateTime) {\r\n $now = $now->getTimestamp(); \r\n }\r\n \r\n if (!filter_var($now, FILTER_VALIDATE_INT)) {\r\n $now = time();\r\n }\r\n \r\n $diff = $now - $timestamp;\r\n $format = $format; // to shut up CodeClimate\r\n \r\n if ($diff < 60) {\r\n return sprintf($diff > 1 ? '%s seconds ago' : 'a second ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 60);\r\n \r\n if ($diff < 60) {\r\n return sprintf($diff > 1 ? '%s minutes ago' : 'one minute ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 60);\r\n \r\n if ($diff < 24) {\r\n return sprintf($diff > 1 ? '%s hours ago' : 'an hour ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 24);\r\n \r\n if ($diff < 7) {\r\n return sprintf($diff > 1 ? '%s days ago' : 'yesterday', $diff);\r\n }\r\n \r\n if ($diff < 30) {\r\n $diff = floor($diff / 7);\r\n return sprintf($diff > 1 ? '%s weeks ago' : 'one week ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 30);\r\n \r\n if ($diff < 12) {\r\n return sprintf($diff > 1 ? '%s months ago' : 'last month', $diff);\r\n }\r\n \r\n $diff = date('Y', $now) - date('Y', $timestamp);\r\n \r\n return sprintf($diff > 1 ? '%s years ago' : 'last year', $diff);\r\n \r\n }", "function dateDifference($timenow,$oldtime) {\n\t\t\t$secondDifference = $timenow-$oldtime;\n\t\t\n\t\t\tif ($secondDifference >= 2592000) {\n\t\t\t\t// months\n\t\t\t\t$difference = $secondDifference/2592000;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" month\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference >= 604800) {\n\t\t\t\t// weeks\n\t\t\t\t$difference = $secondDifference/604800;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" week\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference >= 86400) {\n\t\t\t\t// days\n\t\t\t\t$difference = $secondDifference/86400;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" day\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference >= 3600) {\n\t\t\t\t// hours\n\t\t\t\t$difference = $secondDifference/3600;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" hour\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference < 3600) {\n\t\t\t\t// hours\n\t\t\t\t$difference = $secondDifference/60;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" minute\".$extra.\"\";\n\t\t\t}\n\t\t\n\t\t\t$FinalDifference = $difference;\n\t\t\treturn $FinalDifference;\n\t\t}", "function time_elapsed_string($ptime)\n{\n if (empty($ptime)) {\n return \"No Time\";\n }\n $etime = time() - $ptime;\n\n if ($etime < 1) {\n return '0 seconds';\n }\n\n $a = array(365 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'min',\n 1 => 'sec'\n );\n $a_plural = array('year' => 'years',\n 'month' => 'months',\n 'day' => 'days',\n 'hour' => 'hours',\n 'min' => 'min',\n 'sec' => 'secs'\n );\n\n foreach ($a as $secs => $str) {\n $d = $etime / $secs;\n if ($d >= 1) {\n $r = round($d);\n return $r . ' ' . ($r > 1 ? $a_plural[$str] : $str) . '';\n }\n }\n}", "public static function get_ago_translation() {\n\t\t// Get field value from settings.\n\t\t$text = IBX_WPFomo_Admin::get_settings( 'translate_ago' );\n\t\tif ( ! $text || empty( $text ) ) {\n\t\t\treturn esc_html__( 'ago', 'ibx-wpfomo' );\n\t\t} elseif ( '-' == $text ) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn esc_attr( $text );\n\t}", "function ld_post_time($t, $args = '' ) {\r\n\t$args = _bb_parse_time_function_args( $args );\r\n\t$time = apply_filters( 'bb_post_time', ld_get_post_time($t, array('format' => 'mysql') + $args ), $args );\r\n\treturn _bb_time_function_return( $time, $args );\r\n}", "function publushDateFix($publishedDate){\n\t $publishedAt = date('Y-m-d', strtotime($publishedDate));\n$publishedAt = date_create($publishedAt);\n$today = date_create('now');\n$diff=date_diff($publishedAt,$today);\n\n//accesing days\n$days = $diff->d;\n//accesing years\n$years = $diff->y;\n//accesing months\n$months = $diff->m;\n//accesing hours\n$hours=$diff->h;\nif($months==0 AND $years!=0){\n\t\t\t\techo $years.\" Year ago \";}\n\t\t\t\telseif($years==0 AND $months!=0){ echo $months; if($months==1){ echo \" month ago \";} else { echo \" months ago \";}}\n\t\t\t\telseif($years!=0 AND $months!=0){ echo $years; if($years==1){ echo \" year ago \";} else { echo \" years ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days!=0 ){ echo $days; if($days==1){ echo \" day ago \";} else { echo \" days ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days==0 AND $hours!=0){ echo $hours; if($hours==1){ echo \" hour ago \";} else { echo \" hours ago \";}}\n\t \n\t }", "function subtract($time1, $time2)\n{\n\t$total=$time1-$time2;\n\treturn $total;\n}" ]
[ "0.7884377", "0.7260282", "0.7164432", "0.7141273", "0.71319723", "0.69959986", "0.69959986", "0.6964994", "0.6928122", "0.6927246", "0.6920535", "0.6904305", "0.68963015", "0.68765604", "0.6823943", "0.6807985", "0.6800133", "0.679153", "0.6774584", "0.6748985", "0.67376643", "0.6712182", "0.67046297", "0.67011017", "0.66885126", "0.66618574", "0.666059", "0.66550803", "0.66526425", "0.65859777", "0.6561561", "0.6553303", "0.6516697", "0.6488573", "0.6481832", "0.64746106", "0.6464756", "0.6459159", "0.6450877", "0.6423253", "0.6404678", "0.64022475", "0.63842624", "0.63648456", "0.63648456", "0.63612276", "0.6331766", "0.6318458", "0.63167727", "0.63152266", "0.6259335", "0.6242489", "0.62415373", "0.6201219", "0.61856675", "0.61759365", "0.6170842", "0.6136737", "0.6125931", "0.61062145", "0.6069439", "0.6056442", "0.6032162", "0.60180134", "0.60025597", "0.5993809", "0.589816", "0.58888143", "0.5885143", "0.5883929", "0.5840914", "0.5839644", "0.58346856", "0.58183825", "0.5807734", "0.5782695", "0.57759625", "0.5761558", "0.57322204", "0.57163894", "0.5705735", "0.56823546", "0.5679142", "0.56737125", "0.5632069", "0.5568577", "0.55576414", "0.5556028", "0.5540207", "0.5513044", "0.5494541", "0.5490812", "0.5487659", "0.5486422", "0.5480843", "0.5475349", "0.54684937", "0.54680353", "0.54588723", "0.54539573" ]
0.818667
0
Bootstrap the application services.
public function boot() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n // Boot here application\n }", "public function boot()\n {\n $configuration = [];\n\n if (file_exists($file = getcwd() . '/kaleo.config.php')) {\n $configuration = include_once $file;\n }\n\n $this->app->singleton('kaleo', function () use ($configuration) {\n return new KaleoService($configuration);\n });\n }", "public function boot()\n {\n $this->app->singleton('LaraCurlService', function ($app) {\n return new LaraCurlService();\n });\n\n $this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }", "public function boot()\n {\n //\n }" ]
[ "0.7218277", "0.7040664", "0.7003676", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787" ]
0.0
-1
Register the application services.
public function register() { $app = $this->app; $app->bind('MH\Repositories\FileRepositoryInterface', 'MH\Repositories\Local\FileRepository'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n $this->registerMetaService();\n $this->registerLabelService();\n $this->registerTypeService();\n $this->registerGroupeService();\n $this->registerActiviteService();\n $this->registerRiiinglinkService();\n $this->registerInviteService();\n $this->registerTagService();\n $this->registerAuthService();\n $this->registerChangeService();\n $this->registerRevisionService();\n $this->registerUploadService();\n //$this->registerTransformerService();\n }", "public function register()\n { \n // User Repository\n $this->app->bind('App\\Contracts\\Repository\\User', 'App\\Repositories\\User');\n \n // JWT Token Repository\n $this->app->bind('App\\Contracts\\Repository\\JSONWebToken', 'App\\Repositories\\JSONWebToken');\n \n $this->registerClearSettleApiLogin();\n \n $this->registerClearSettleApiClients();\n \n \n }", "public function register()\n {\n $this->app->bind(\n 'Uhmane\\Repositories\\ContatosRepository', \n 'Uhmane\\Repositories\\ContatosRepositoryEloquent'\n );\n }", "public function register()\n {\n // $this->app->make('CheckStructureService');\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/telescope-error-service-client.php', 'telescope-error-service-client'\n );\n\n $this->registerStorageDriver();\n\n $this->commands([\n Console\\InstallCommand::class,\n Console\\PublishCommand::class,\n ]);\n }", "public function register()\n\t{\n\t\t$this->registerPasswordBroker();\n\n\t\t$this->registerTokenRepository();\n\t}", "public function register()\n {\n $this->registerRepositories();\n }", "public function register()\n {\n $this->registerFacades();\n $this->registerRespository();\n }", "public function register()\n {\n App::bind('App\\Repositories\\UserRepositoryInterface','App\\Repositories\\UserRepository');\n App::bind('App\\Repositories\\AnimalRepositoryInterface','App\\Repositories\\AnimalRepository');\n App::bind('App\\Repositories\\DonationTypeRepositoryInterface','App\\Repositories\\DonationTypeRepository');\n App::bind('App\\Repositories\\NewsAniRepositoryInterface','App\\Repositories\\NewsAniRepository');\n App::bind('App\\Repositories\\DonationRepositoryInterface','App\\Repositories\\DonationRepository');\n App::bind('App\\Repositories\\ProductRepositoryInterface','App\\Repositories\\ProductRepository');\n App::bind('App\\Repositories\\CategoryRepositoryInterface','App\\Repositories\\CategoryRepository');\n App::bind('App\\Repositories\\TransferMoneyRepositoryInterface','App\\Repositories\\TransferMoneyRepository');\n App::bind('App\\Repositories\\ShippingRepositoryInterface','App\\Repositories\\ShippingRepository');\n App::bind('App\\Repositories\\ReserveProductRepositoryInterface','App\\Repositories\\ReserveProductRepository');\n App::bind('App\\Repositories\\Product_reserveRepositoryInterface','App\\Repositories\\Product_reserveRepository');\n App::bind('App\\Repositories\\Ordering_productRepositoryInterface','App\\Repositories\\Ordering_productRepository');\n App::bind('App\\Repositories\\OrderingRepositoryInterface','App\\Repositories\\OrderingRepository');\n App::bind('App\\Repositories\\UserUpdateSlipRepositoryInterface','App\\Repositories\\UserUpdateSlipRepository');\n }", "public function register()\n {\n // Automatically apply the package configuration\n $this->mergeConfigFrom(__DIR__.'/config.php', 'laragle.authorization');\n }", "public function register()\n {\n //\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n\n\n\n\n $this->app->register(ResponseMacroServiceProvider::class);\n $this->app->register(TwitterServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind(\n 'Toyopecas\\Repositories\\TopoRepository',\n 'Toyopecas\\Repositories\\TopoRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ServicesRepository',\n 'Toyopecas\\Repositories\\ServicesRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\SobreRepository',\n 'Toyopecas\\Repositories\\SobreRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ProdutosRepository',\n 'Toyopecas\\Repositories\\ProdutosRepositoryEloquent'\n );\n }", "public function register()\n {\n $this->registerOtherProviders()->registerAliases();\n $this->loadViewsFrom(__DIR__.'/../../resources/views', 'jarvisPlatform');\n $this->app->bind('jarvis.auth.provider', AppAuthenticationProvider::class);\n $this->loadRoutes();\n }", "public function register()\n {\n include __DIR__.'/routes.php';\n\n $this->app->make('Jlopezcur\\MediaManager\\MediaManagerController');\n }", "public function register()\n {\n // $this->app->bind('AuthService', AuthService::class);\n }", "public function register()\n {\n $this->app->bind(\n PegawaiServiceContract::class,\n PegawaiService::class \n );\n\n $this->app->bind(\n RiwayatPendidikanServiceContract::class,\n RiwayatPendidikanService::class \n );\n\n $this->app->bind(\n ProductionHouseServiceContract::class,\n ProductionHouseService::class\n );\n\n $this->app->bind(\n MovieServiceContract::class,\n MovieService::class\n );\n\n $this->app->bind(\n PangkatServiceContract::class,\n PangkatService::class \n );\n\n }", "public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n //$this->registerMenuService();\n\n //$this->registerReplyService();\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/awesio-auth.php', 'awesio-auth');\n\n $this->app->singleton(AuthContract::class, Auth::class);\n\n $this->registerRepositories();\n\n $this->registerServices();\n\n $this->registerHelpers();\n }", "public function register()\n {\n $this->registerRequestHandler();\n $this->registerAuthorizationService();\n $this->registerServices();\n }", "public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__.'/../config/colissimo.php', 'colissimo');\r\n $this->mergeConfigFrom(__DIR__.'/../config/rules.php', 'colissimo.rules');\r\n $this->mergeConfigFrom(__DIR__.'/../config/prices.php', 'colissimo.prices');\r\n $this->mergeConfigFrom(__DIR__.'/../config/zones.php', 'colissimo.zones');\r\n $this->mergeConfigFrom(__DIR__.'/../config/insurances.php', 'colissimo.insurances');\r\n $this->mergeConfigFrom(__DIR__.'/../config/supplements.php', 'colissimo.supplements');\r\n // Register the service the package provides.\r\n $this->app->singleton('colissimo', function ($app) {\r\n return new Colissimo;\r\n });\r\n }", "public function register()\n {\n\n\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\UserRepository',\n 'Onlinecorrection\\Repositories\\UserRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ClientRepository',\n 'Onlinecorrection\\Repositories\\ClientRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ProjectRepository',\n 'Onlinecorrection\\Repositories\\ProjectRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentRepository',\n 'Onlinecorrection\\Repositories\\DocumentRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderRepository',\n 'Onlinecorrection\\Repositories\\OrderRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderItemRepository',\n 'Onlinecorrection\\Repositories\\OrderItemRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentImageRepository',\n 'Onlinecorrection\\Repositories\\DocumentImageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\PackageRepository',\n 'Onlinecorrection\\Repositories\\PackageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\StatusRepository',\n 'Onlinecorrection\\Repositories\\StatusRepositoryEloquent'\n );\n\n }", "public function register()\n {\n\n $this->app->register(RepositoryServiceProvider::class);\n }", "public function register()\n {\n $this->registerInertia();\n $this->registerLengthAwarePaginator();\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\UtilitiesServiceProvider');\n $this->registerLogViewer();\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\CommandsServiceProvider');\n }", "public function register()\n {\n include __DIR__.'/routes.php';\n $this->app->make('Unrulynatives\\Attitudes\\AttitudesController');\n }", "public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'APIcoLAB\\Services\\Registrar'\n\t\t);\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Flight\\FlightRepository',\n 'APIcoLAB\\Repositories\\Flight\\SkyScannerFlightRepository'\n );\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Place\\PlaceRepository',\n 'APIcoLAB\\Repositories\\Place\\SkyScannerPlaceRepository'\n );\n\t}", "public function register()\n {\n $this->app->bind('App\\Services\\UserService');\n $this->app->bind('App\\Services\\PostService');\n $this->app->bind('App\\Services\\MyPickService');\n $this->app->bind('App\\Services\\FacebookService');\n $this->app->bind('App\\Services\\LikeService');\n }", "public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel-base.php', 'laravel-base');\r\n\r\n $this->app->bind(UuidGenerator::class, UuidGeneratorService::class);\r\n\r\n }", "public function register()\n {\n $this->app->bind('tochka', function () {\n return new Tochka();\n });\n $this->mergeConfigFrom(__DIR__.'/../config/tochka.php', 'tochka');\n }", "public function register()\n {\n $this->app->bind(\n 'Larafolio\\Http\\HttpValidator\\HttpValidator',\n 'Larafolio\\Http\\HttpValidator\\CurlValidator'\n );\n\n $this->app->register(ImageServiceProvider::class);\n }", "public function register()\n\t{\n\t\t$this->app->bind('Mosaiqo\\OptimusPrime\\Contracts\\Transformer', 'Mosaiqo\\OptimusPrime\\Transformer');\n\t\t$this->registerArtisanCommand();\n\t}", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/services.php', 'services'\n );\n }", "public function register()\n {\n include __DIR__.'/routes.php';\n $this->app->make('YigitCukuren\\Optimum7\\Controllers\\Optimum7Controller');\n $this->commands($this->commands);\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/Config/user-role-and-permission.php', 'user-role-and-permission');\n\n $this->app->register('Caffeinated\\Shinobi\\ShinobiServiceProvider');\n\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(ExceptionServiceProvider::class);\n $this->app->register(ViewComposerServiceProvider::class);\n\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n $loader->alias('Shinobi', \\Caffeinated\\Shinobi\\Facades\\Shinobi::class);\n }", "public function register()\n {\n $this->app->bind('App\\Services\\TripService.php', function ($app) {\n return new TripService();\n });\n }", "public function register()\n {\n $this->app->bind(\\Cookiesoft\\Repositories\\CategoryRepository::class, \\Cookiesoft\\Repositories\\CategoryRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\BillpayRepository::class, \\Cookiesoft\\Repositories\\BillpayRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\UserRepository::class, \\Cookiesoft\\Repositories\\UserRepositoryEloquent::class);\n //:end-bindings:\n }", "public function register()\n {\n $this->registerRepository();\n $this->registerMigrator();\n $this->registerArtisanCommands();\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Repositories\\PessoaRepositoryInterface', 'App\\Repositories\\PessoaRepositoryEloquent'\n );\n $this->app->bind(\n 'App\\Repositories\\PerfilRepositoryInterface', 'App\\Repositories\\PerfilRepositoryEloquent'\n );\n $this->app->bind(\n 'App\\Repositories\\AplicativoRepositoryInterface', 'App\\Repositories\\AplicativoRepositoryEloquent'\n );\n $this->app->bind(\n 'App\\Repositories\\UsuarioRepositoryInterface', 'App\\Repositories\\UsuarioRepositoryEloquent'\n );\n $this->app->bind(\n 'App\\Repositories\\AcessoRepositoryInterface', 'App\\Repositories\\AcessoRepositoryEloquent'\n );\n }", "public function register()\n {\n $this->registerRepositories();\n\n $this->pushMiddleware();\n }", "public function register()\r\n {\r\n Passport::ignoreMigrations();\r\n\r\n $this->app->singleton(\r\n CityRepositoryInterface::class,\r\n CityRepository::class\r\n );\r\n\r\n $this->app->singleton(\r\n BarangayRepositoryInterface::class,\r\n BarangayRepository::class\r\n );\r\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\CompanyInterface', \n 'App\\Repositories\\CompanyRepo'\n );\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\UtilityInterface', \n 'App\\Repositories\\UtilityRepo'\n );\n }", "public function register()\n {\n // Merge configs\n $this->mergeConfigFrom(\n __DIR__ . '/../config/songyz_validator.php',\n 'songyz_validator'\n );\n\n $this->app->singleton('songyz.validator.generator', function ($app) {\n return new GeneratorValidatorRequestCommand();\n });\n $this->commands([\n 'songyz.validator.generator'\n ]);\n\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'meilisearch');\n\n $this->app->singleton(Client::class, function () {\n return new Client(config('meilisearch.host'), config('meilisearch.key'));\n });\n }", "public function register()\n {\n //\n include __DIR__.'/routes.php';\n $this->app->make('Hulucat\\WechatCorp\\CorpController');\n $this->app->singleton('CorpApi', function($app){\n \treturn new CorpApi(new HttpClient());\n });\n }", "public function register()\n {\n $this->app->bind(VehicleRepository::class, GuzzleVehicleRepository::class);\n }", "public function register()\n {\n $this->app->register(\\Maatwebsite\\Excel\\ExcelServiceProvider::class);\n $this->app->register(\\Intervention\\Image\\ImageServiceProvider::class);\n $this->app->register(\\Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\DatatablesServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\ButtonsServiceProvider::class);\n\n $loader = null;\n if (class_exists('Illuminate\\Foundation\\AliasLoader')) {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n }\n\n // Facades\n if ($loader != null) {\n $loader->alias('Image', \\Intervention\\Image\\Facades\\Image::class);\n $loader->alias('Excel', \\Maatwebsite\\Excel\\Facades\\Excel::class);\n\n }\n\n if (app()->environment() != 'production') {\n // Service Providers\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n\n // Facades\n if ($loader != null) {\n $loader->alias('Debugbar', \\Barryvdh\\Debugbar\\Facade::class);\n }\n }\n\n if ($this->app->environment('local', 'testing')) {\n $this->app->register(\\Laravel\\Dusk\\DuskServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerUserComponent();\n $this->registerLocationComponent();\n\n }", "public function register()\n {\n\n\n $this->app->bind(\n 'App\\Repositories\\RepositoryInterface','App\\Repositories\\ORM\\CsvRepository'\n );\n\n $this->app->bind(\n 'App\\Strategy\\StrategyDataSource','App\\Strategy\\CsvDataSource'\n );\n\n\n }", "public function register()\n {\n // Default configuration file\n $this->mergeConfigFrom(\n __DIR__.'/Config/auzo_tools.php', 'auzoTools'\n );\n\n $this->registerModelBindings();\n $this->registerFacadesAliases();\n }", "public function register()\n {\n $this->app->bind(\n 'App\\\\Repositories\\\\Tournaments\\\\ITournamentsRepository',\n 'App\\\\Repositories\\\\Tournaments\\\\TournamentsRepository'\n );\n }", "public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n\n $this->registerCommand();\n $this->registerSchedule();\n $this->registerDev();\n\n }", "public function register()\n {\n $this->registerDomainLocalization();\n $this->registerDomainLocaleFilter();\n }", "public function register()\n {\n $this->registerBrowser();\n\n $this->registerViewFinder();\n }", "public function register() {\n /**\n * Load default configurations.\n */\n $this->mergeConfigFrom(\n __DIR__.'/../../config/problem.php', 'problem'\n );\n\n /**\n * Bind to service container.\n */\n $this->app->singleton(\n \\Illuminate\\Contracts\\Debug\\ExceptionHandler::class,\n ProblemAlertExceptionHandler::class\n );\n }", "public function register()\n\t{\n $this->app->bind(\n 'Commuttr\\Repositories\\Coordinates\\CoordinatesRepositoryInterface',\n 'Commuttr\\Repositories\\Coordinates\\DbCoordinatesRepository');\n\n $this->app->bind(\n 'Commuttr\\Repositories\\Route\\RouteRepositoryInterface',\n 'Commuttr\\Repositories\\Route\\DbRouteRepository');\n\n $this->app->bind(\n 'Commuttr\\Repositories\\Review\\ReviewRepositoryInterface',\n 'Commuttr\\Repositories\\Review\\DbReviewRepository');\n\n\t\t$this->app->bind(\n 'Commuttr\\Repositories\\User\\UserRepositoryInterface',\n 'Commuttr\\Repositories\\User\\DbUserRepository');\n\t}", "public function register()\n {\n $this->app->make('Furqank786\\Multitenancy\\Controllers\\SiteController');\n //$this->loadViewsFrom(__DIR__.'/views', 'multitenancy');\n\n }", "public function register()\n {\n $this->registerGraphQL();\n\n $this->registerConsole();\n }", "public function register()\n {\n $this->registerPayment();\n\n $this->app->alias('image', 'App\\Framework\\Image\\ImageService');\n }", "public function register()\n {\n $this->registerRollbar();\n }", "public function register()\n {\n $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function($app){\n return new ElasticsearchNedvizhimostsObserver(new Client());\n });\n\n // $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function()\n // {\n // return new ElasticsearchNedvizhimostsObserver(new Client());\n // });\n }", "public function register()\n {\n $this->app->bind(TelescopeRouteServiceContract::class, TelescopeRouteService::class);\n }", "public function register()\n {\n\n // 將config/config.php裡的設定跟原有的結合起來\n $this->mergeConfigFrom(\n __DIR__.'/config/config.php', 'es_config'\n );\n\n // 登入elasticsearch\n $this->app->singleton('Elasticsearch\\Client', function($app){\n\n return ClientBuilder::create()->build(config('es_config'));\n\n });\n\n $this->app->instance('qelastic', new Qelastic($this->app));\n\n\n\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/faithgen-events.php', 'faithgen-events');\n\n $this->app->singleton(EventsService::class);\n $this->app->singleton(GuestService::class);\n }", "public function register()\n {\n $this->app->bind('gameService', 'App\\Service\\GameService');\n }", "public function register()\n {\n $this->app->bind(\n \\App\\Services\\UserCertificate\\IUserCertificateService::class,\n \\App\\Services\\UserCertificate\\UserCertificateService::class\n );\n }", "public function register()\n {\n // Register the app\n $this->registerApp();\n\n // Register Commands\n $this->registerCommands();\n }", "public function register() {\n $this->app->bind(\n 'Illuminate\\Contracts\\Auth\\Registrar' , 'App\\Services\\Registrar'\n );\n\n $this->app->bind(PostRepositoryContract::class, PostRepository::class);\n }", "public function register()\n {\n $this->app->bind('ResponseFormat',ResponseFormat::class);\n $this->app->bind('AdminUserService',AdminUserService::class);\n $this->app->bind('GenresService', GenresService::class);\n $this->app->bind('ContentService', ContentService::class);\n $this->app->bind(AudioBookRepository::class,function($app){\n return new AudioBookRepository(new AudioBook);\n });\n $this->app->bind(PodcastRepository::class,function($app){\n return new PodcastRepository(new Podcast);\n });\n $this->app->bind(AudioBookGenreRepository::class,function($app){\n return new AudioBookGenreRepository(new AudioBookGenre); \n });\n $this->app->bind(PodcastGenreRepository::class,function($app){\n return new PodcastGenreRepository(new PodcastGenre);\n });\n $this->app->bind(TrainingGenreRepository::class,function($app){\n return new TrainingGenreRepository(new TrainingGenre);\n });\n $this->app->bind(TrainingRepository::class,function($app){\n return new TrainingRepository(new Training);\n });\n $this->app->bind(UserRepository::class,function($app){\n return new UserRepository(new User);\n });\n $this->app->bind(RegisterApplicationRepository::class,function($app){\n return new RegisterApplicationRepository(new RegisterApplication);\n });\n $this->app->bind(AdminUserRepository::class,function($app){\n return new AdminUserRepository(new AdminUser);\n });\n $this->app->bind(VolunteerApplicationRepository::class,function($app){\n return new VolunteerApplicationRepository(new VolunteerApplication);\n });\n \n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->app->register(\\Laravel\\Telescope\\TelescopeServiceProvider::class);\n $this->app->register(TelescopeServiceProvider::class);\n }\n }", "public function register()\n {\n //\n $this->app->bind(\n 'App\\Repositories\\Address\\IAddressRepository',\n 'App\\Repositories\\Address\\AddressRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\College\\ICollegeRepository',\n 'App\\Repositories\\College\\CollegeRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Course\\ICourseRepository',\n 'App\\Repositories\\Course\\CourseRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Favorites\\IFavoritesRepository',\n 'App\\Repositories\\Favorites\\FavoritesRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Images\\IImageRepository',\n 'App\\Repositories\\Images\\ImageRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Place\\IPlaceRepository',\n 'App\\Repositories\\Place\\PlaceRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\PlaceType\\IPlaceTypeRepository',\n 'App\\Repositories\\PlaceType\\PlaceTypeRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\City\\ICityRepository',\n 'App\\Repositories\\City\\CityRepository'\n );\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Repositories\\Customer\\CustomerRepository',\n 'App\\Repositories\\Customer\\DbCustomerRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Flight\\FlightRepository',\n 'App\\Repositories\\Flight\\DbFlightRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Booking\\BookingRepository',\n 'App\\Repositories\\Booking\\DbBookingRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Passenger\\PassengerRepository',\n 'App\\Repositories\\Passenger\\DbPassengerRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Outbound\\OutboundRepository',\n 'App\\Repositories\\Outbound\\DbOutboundRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\Cost\\CostRepository',\n 'App\\Repositories\\Cost\\DbCostRepository'\n );\n }", "public function register() {\n $this->registerProviders();\n $this->registerFacades();\n }", "public function register()\n {\n $this->registerGuard();\n $this->registerBladeDirectives();\n }", "public function register()\n {\n $this->app->singleton(ThirdPartyAuthService::class, function ($app) {\n return new ThirdPartyAuthService(\n config('settings.authentication_services'),\n $app['Laravel\\Socialite\\Contracts\\Factory'],\n $app['Illuminate\\Contracts\\Auth\\Factory']\n );\n });\n\n $this->app->singleton(ImageValidator::class, function ($app) {\n return new ImageValidator(\n config('settings.image.max_filesize'),\n config('settings.image.mime_types'),\n $app['Intervention\\Image\\ImageManager']\n );\n });\n\n $this->app->singleton(ImageService::class, function ($app) {\n return new ImageService(\n config('settings.image.max_width'),\n config('settings.image.max_height'),\n config('settings.image.folder')\n );\n });\n\n $this->app->singleton(RandomWordService::class, function ($app) {\n return new RandomWordService(\n $app['App\\Repositories\\WordRepository'],\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.number_of_words_to_remember')\n );\n });\n\n $this->app->singleton(WordRepository::class, function ($app) {\n return new WordRepository(config('settings.min_number_of_chars_per_one_mistake_in_search'));\n });\n\n $this->app->singleton(CheckAnswerService::class, function ($app) {\n return new CheckAnswerService(\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.min_number_of_chars_per_one_mistake')\n );\n });\n\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n }", "public function register()\n {\n $this->registerRepository();\n $this->registerParser();\n }", "public function register()\n {\n $this->registerJWT();\n $this->registerJWSProxy();\n $this->registerJWTAlgoFactory();\n $this->registerPayload();\n $this->registerPayloadValidator();\n $this->registerPayloadUtilities();\n\n // use this if your package has a config file\n // config([\n // 'config/JWT.php',\n // ]);\n }", "public function register()\n {\n $this->app->bind(CertificationService::class, function($app){\n return new CertificationService();\n });\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/config/config.php', 'monobank'\n );\n\n $this->app->make('Karpovigorok\\MonobankStatement\\Controllers\\MainpageController');\n\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->app->register(Providers\\ManagerServiceProvider::class);\n $this->app->register(Providers\\ValidationServiceProvider::class);\n }", "public function register()\n {\n\n\n\n $this->mergeConfigFrom(__DIR__ . '/../config/counter.php', 'counter');\n\n $this->app->register(RouteServiceProvider::class);\n\n\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/exposable.php', 'exposable');\n\n $this->registerMiddleware();\n\n $this->registerRoutes();\n\n $this->app->make(ExposableController::class);\n\n $this->app->bind('exposable.signer', function () {\n return new ExposableSigner(config('exposable.key'));\n });\n }", "public function register()\n {\n $this->registerConfig();\n $this->registerView();\n $this->registerMessage();\n $this->registerMenu();\n $this->registerOutput();\n $this->registerCommands();\n require __DIR__ . '/Service/ServiceProvider.php';\n require __DIR__ . '/Service/RegisterRepoInterface.php';\n require __DIR__ . '/Service/ErrorHandling.php';\n $this->registerExportDompdf();\n $this->registerExtjs();\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Contracts\\UsersInterface',\n 'App\\Services\\UsersService'\n );\n $this->app->bind(\n 'App\\Contracts\\CallsInterface',\n 'App\\Services\\CallsService'\n );\n $this->app->bind(\n 'App\\Contracts\\ContactsInterface',\n 'App\\Services\\ContactsService'\n );\n $this->app->bind(\n 'App\\Contracts\\EmailsInterface',\n 'App\\Services\\EmailsService'\n );\n $this->app->bind(\n 'App\\Contracts\\PhoneNumbersInterface',\n 'App\\Services\\PhoneNumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\NumbersInterface',\n 'App\\Services\\NumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\UserNumbersInterface',\n 'App\\Services\\UserNumbersService'\n );\n }", "public function register()\n {\n $this->app->bind(ReverseEncoder::class, function () {\n return new ReverseEncoder;\n });\n }", "public function register()\n {\n Schema::defaultStringLength(199);\n\n $this->app->bind(\n 'App\\Helper\\ICheckAction',\n 'App\\Helper\\CheckAction'\n );\n\n $this->app->bind(\n 'App\\Helper\\IGetDateTime',\n 'App\\Helper\\GetDateTime'\n );\n\n $this->app->bind(\n 'App\\Repositories\\AnnouceRepository\\IAnnouceRepository',\n 'App\\Repositories\\AnnouceRepository\\AnnouceRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\AjaxRepository\\IAjaxRepository',\n 'App\\Repositories\\AjaxRepository\\AjaxRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\UserRepository\\IUserRepository',\n 'App\\Repositories\\UserRepository\\UserRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\PermissionRepository\\IPermissionRepository',\n 'App\\Repositories\\PermissionRepository\\PermissionRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\PermissionDetailRepository\\IPermissionDetailRepository',\n 'App\\Repositories\\PermissionDetailRepository\\PermissionDetailRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\AreaRepository\\IAreaRepository',\n 'App\\Repositories\\AreaRepository\\AreaRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\TableRepository\\ITableRepository',\n 'App\\Repositories\\TableRepository\\TableRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\GroupMenuRepository\\IGroupMenuRepository',\n 'App\\Repositories\\GroupMenuRepository\\GroupMenuRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\ToppingRepository\\IToppingRepository',\n 'App\\Repositories\\ToppingRepository\\ToppingRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\MaterialRepository\\IMaterialRepository',\n 'App\\Repositories\\MaterialRepository\\MaterialRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\MaterialDetailRepository\\IMaterialDetailRepository',\n 'App\\Repositories\\MaterialDetailRepository\\MaterialDetailRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\MaterialActionRepository\\IMaterialActionRepository',\n 'App\\Repositories\\MaterialActionRepository\\MaterialActionRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\SupplierRepository\\ISupplierRepository',\n 'App\\Repositories\\SupplierRepository\\SupplierRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\CookRepository\\ICookRepository',\n 'App\\Repositories\\CookRepository\\CookRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\CookScreenRepository\\ICookScreenRepository',\n 'App\\Repositories\\CookScreenRepository\\CookScreenRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\DishRepository\\IDishRepository',\n 'App\\Repositories\\DishRepository\\DishRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\OrderRepository\\IOrderRepository',\n 'App\\Repositories\\OrderRepository\\OrderRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\PayRepository\\IPayRepository',\n 'App\\Repositories\\PayRepository\\PayRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\WarehouseRepository\\IWarehouseRepository',\n 'App\\Repositories\\WarehouseRepository\\WarehouseRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\WarehouseCookRepository\\IWarehouseCookRepository',\n 'App\\Repositories\\WarehouseCookRepository\\WarehouseCookRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\ImportCouponRepository\\IImportCouponRepository',\n 'App\\Repositories\\ImportCouponRepository\\ImportCouponRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\ExportCouponRepository\\IExportCouponRepository',\n 'App\\Repositories\\ExportCouponRepository\\ExportCouponRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\ShiftRepository\\IShiftRepository',\n 'App\\Repositories\\ShiftRepository\\ShiftRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\PositionRepository\\IPositionRepository',\n 'App\\Repositories\\PositionRepository\\PositionRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\ReportRepository\\IReportRepository',\n 'App\\Repositories\\ReportRepository\\ReportRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\BookingRepository\\IBookingRepository',\n 'App\\Repositories\\BookingRepository\\BookingRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\DayRepository\\IDayRepository',\n 'App\\Repositories\\DayRepository\\DayRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\VoucherRepository\\IVoucherRepository',\n 'App\\Repositories\\VoucherRepository\\VoucherRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\MethodRepository\\IMethodRepository',\n 'App\\Repositories\\MethodRepository\\MethodRepository'\n );\n\n $this->app->bind(\n 'App\\Repositories\\PlanRepository\\IPlanRepository',\n 'App\\Repositories\\PlanRepository\\PlanRepository'\n );\n }", "public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'App\\Services\\Registrar'\n\t\t);\n \n $this->app->bind(\"App\\\\Services\\\\ILoginService\",\"App\\\\Services\\\\LoginService\");\n \n $this->app->bind(\"App\\\\Repositories\\\\IItemRepository\",\"App\\\\Repositories\\\\ItemRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IOutletRepository\",\"App\\\\Repositories\\\\OutletRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IInventoryRepository\",\"App\\\\Repositories\\\\InventoryRepository\");\n\t}", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../config/config.php',\n 'iyzipay'\n );\n\n $this->app->bind('iyzipay-laravel', function () {\n return new IyzipayLaravel();\n });\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/wortmann-soap-api.php',\n 'wortmann-soap-api',\n );\n\n $this->app->singleton(WortmannSoapApi::class, function () {\n return new Api(config('wortmann-soap-api'));\n });\n }", "public function register()\n {\n $this->app->bind(ReviewService::class, function ($app) {\n return new ReviewService();\n });\n }", "public function register()\n {\n include __DIR__.'/Http/routes.php';\n\n // For LAEditor\n if(file_exists(__DIR__.'/../../laeditor')) {\n include __DIR__.'/../../laeditor/src/routes.php';\n }\n \n /*\n |--------------------------------------------------------------------------\n | Providers\n |--------------------------------------------------------------------------\n */\n \n // Collective HTML & Form Helper\n $this->app->register(\\Collective\\Html\\HtmlServiceProvider::class);\n // For Datatables\n $this->app->register(\\Yajra\\Datatables\\DatatablesServiceProvider::class);\n // For Gravatar\n $this->app->register(\\Creativeorange\\Gravatar\\GravatarServiceProvider::class);\n // For Entrust\n $this->app->register(\\Zizaco\\Entrust\\EntrustServiceProvider::class);\n // For Spatie Backup\n $this->app->register(\\Spatie\\Backup\\BackupServiceProvider::class);\n \n /*\n |--------------------------------------------------------------------------\n | Register the Alias\n |--------------------------------------------------------------------------\n */\n \n $loader = AliasLoader::getInstance();\n \n // Collective HTML & Form Helper\n $loader->alias('Form', \\Collective\\Html\\FormFacade::class);\n $loader->alias('HTML', \\Collective\\Html\\HtmlFacade::class);\n \n // For Gravatar User Profile Pics\n $loader->alias('Gravatar', \\Creativeorange\\Gravatar\\Facades\\Gravatar::class);\n \n // For LaraAdmin Code Generation\n $loader->alias('CodeGenerator', \\Dwij\\Laraadmin\\CodeGenerator::class);\n \n // For LaraAdmin Form Helper\n $loader->alias('LAFormMaker', \\Dwij\\Laraadmin\\LAFormMaker::class);\n \n // For LaraAdmin Helper\n $loader->alias('LAHelper', \\Dwij\\Laraadmin\\Helpers\\LAHelper::class);\n \n // LaraAdmin Module Model \n $loader->alias('Module', \\Dwij\\Laraadmin\\Models\\Module::class);\n\n // For LaraAdmin Configuration Model\n $loader->alias('LAConfigs', \\Dwij\\Laraadmin\\Models\\LAConfigs::class);\n \n // For Entrust\n $loader->alias('Entrust', \\Zizaco\\Entrust\\EntrustFacade::class);\n $loader->alias('role', \\Zizaco\\Entrust\\Middleware\\EntrustRole::class);\n $loader->alias('permission', \\Zizaco\\Entrust\\Middleware\\EntrustPermission::class);\n $loader->alias('ability', \\Zizaco\\Entrust\\Middleware\\EntrustAbility::class);\n \n /*\n |--------------------------------------------------------------------------\n | Register the Controllers\n |--------------------------------------------------------------------------\n */\n $this->app->make('App\\Http\\Controllers\\Auth\\AuthController');\n $this->app->make('Dwij\\Laraadmin\\Controllers\\ModuleController');\n $this->app->make('Dwij\\Laraadmin\\Controllers\\FieldController');\n $this->app->make('Dwij\\Laraadmin\\Controllers\\MenuController');\n \n // For LAEditor\n if(file_exists(__DIR__.'/../../laeditor')) {\n $this->app->make('Dwij\\Laeditor\\Controllers\\CodeEditorController');\n }\n\n }", "public function register()\n {\n $this->registerConfig();\n\n $this->registerDataStore();\n\n $this->registerStorageFactory();\n\n $this->registerStorageManager();\n\n $this->registerSimplePhoto();\n }", "public function register()\n {\n\n $config = $this->app['config']['cors'];\n\n $this->app->bind('Yocome\\Cors\\CorsService', function() use ($config){\n return new CorsService($config);\n });\n\n }", "public function register()\n {\n // register its dependencies\n $this->app->register(\\Cviebrock\\EloquentSluggable\\ServiceProvider::class);\n }", "public function register()\n {\n $this->app->bind(\n 'auditor',\n Auditor::class\n );\n }", "public function register()\n {\n\n //include (__DIR__.\"/../../vendor/autoload.php\");\n\n // Blog Repositories\n $this->app->singleton(\n \\Ridwanpandi\\Blog\\Repositories\\BlogRepository::class,\n \\Ridwanpandi\\Blog\\Repositories\\BlogEloquent::class\n );\n // end Blog Repositories\n\n $this->loadMigrationsFrom(__DIR__.'/../Database');\n\n $this->app->make('Ridwanpandi\\Blog\\Http\\Controllers\\BlogController');\n $this->app->make('Ridwanpandi\\Blog\\Http\\Controllers\\TokenController');\n $this->app->make('Ridwanpandi\\Blog\\Http\\Middleware\\JWTMiddleware');\n $this->app->make('Ridwanpandi\\Blog\\Models\\Blog');\n $this->app->make('Ridwanpandi\\Blog\\Models\\Meta');\n\n $this->publishes([\n __DIR__.'/../Database' => base_path('database/migrations'),\n ]);\n\n $this->app->routeMiddleware([\n 'jwt' => \\Ridwanpandi\\Blog\\Http\\Middleware\\JWTMiddleware::class,\n ]);\n }", "public function register()\n {\n $this->registerServiceProviders();\n $this->registerSettingsService();\n $this->registerHelpers();\n }", "public function register()\n {\n $this->app->bind(UserRepositoryContract::class, UserRepository::class);\n\n $this->app->register(UserRouteServiceProvider::class);\n }", "public function register()\n {\n $this->app->register(RouterServiceProvider::class);\n }" ]
[ "0.72834975", "0.7129936", "0.7108755", "0.70365775", "0.69857496", "0.6981425", "0.69721615", "0.6920895", "0.69191223", "0.6882845", "0.6881585", "0.6819491", "0.6818964", "0.68054336", "0.68047476", "0.6799833", "0.6794076", "0.679339", "0.6788445", "0.67767453", "0.67700595", "0.67683184", "0.67680913", "0.67643136", "0.6759103", "0.67554945", "0.6752813", "0.6750741", "0.6746924", "0.67453396", "0.674472", "0.6736895", "0.67368203", "0.6736107", "0.6732007", "0.6730551", "0.67287403", "0.672675", "0.67204756", "0.6715763", "0.6714403", "0.6708389", "0.6705731", "0.67022485", "0.6701995", "0.67011917", "0.6697624", "0.66935164", "0.6693066", "0.6691179", "0.6690436", "0.6685918", "0.6683847", "0.6681835", "0.6677354", "0.66759163", "0.66744", "0.6668164", "0.6667953", "0.666673", "0.6666137", "0.6664308", "0.66636014", "0.66625667", "0.6662302", "0.6661477", "0.66603136", "0.6658671", "0.66563946", "0.6656232", "0.66561985", "0.665449", "0.6653904", "0.6652145", "0.66504127", "0.664745", "0.6647391", "0.6647022", "0.6644753", "0.6644314", "0.6643591", "0.66434056", "0.6641648", "0.66351223", "0.6633715", "0.6631681", "0.6631141", "0.6628324", "0.6621463", "0.6619662", "0.661933", "0.6617775", "0.66167384", "0.6614609", "0.661398", "0.66132176", "0.6613193", "0.6613182", "0.6613065", "0.661006", "0.66071045" ]
0.0
-1
createPDF create the PDF document and returns the complete filename (path+file) hooked to hdlObjectPDF()
function createPDF( $_key="", $_id=-1, $_pdfName="") { $this->_createPDF( $_key, $_id, $_pdfName) ; $this->printPDF() ; return $this->myCustomerCommission->getXMLComplete() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPDF()\n {\n $soxId = $this->getEditObjectId();\n if ($soxId != \"-1\" && isset($soxId)) {\n // load object\n $oOrder = oxNew(\"oxorder\");\n if ($oOrder->load($soxId)) {\n $oUtils = oxRegistry::getUtils();\n $sTrimmedBillName = trim($oOrder->oxorder__oxbilllname->getRawValue());\n $sFilename = $oOrder->oxorder__oxordernr->value . \"_\" . $sTrimmedBillName . \".pdf\";\n $sFilename = $this->makeValidFileName($sFilename);\n ob_start();\n $oOrder->genPDF($sFilename, oxRegistry::getConfig()->getRequestParameter(\"pdflanguage\"));\n $sPDF = ob_get_contents();\n ob_end_clean();\n $oUtils->setHeader(\"Pragma: public\");\n $oUtils->setHeader(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\");\n $oUtils->setHeader(\"Expires: 0\");\n $oUtils->setHeader(\"Content-type: application/pdf\");\n $oUtils->setHeader(\"Content-Disposition: attachment; filename=\" . $sFilename);\n oxRegistry::getUtils()->showMessageAndExit($sPDF);\n }\n }\n }", "function\tcreatePDF( $_key=\"\", $_id=-1, $_pdfName=\"\") {\n\t\t$this->_createPDF( $_key, $_id, $_pdfName) ;\n\t\treturn $this->myInv->getXMLComplete() ;\n\t}", "function createPDF() {\n\t\t\t\n\t\t\t\n\t\t\t$db = JFactory::getDBO();\n\t\t\t\n\t\t\tinclude_once( 'components/com_ticketmaster/assets/functions.php' );\n\t\t\t\n\t\t\t## Selecting tickets to create. LIMIT = 10 (otherwise the server will overload)\n\t\t\t## Sometimes it will be better to run an extra cronjob.\n\t\t\t$sql='SELECT * FROM #__ticketmaster_orders\n\t\t\t\t WHERE pdfcreated = 0 AND paid = 1 LIMIT 0, 10'; \n\n\t\t\t$db->setQuery($sql);\n\t\t\t$data = $db->loadObjectList();\t\t\t\t \n\n\n\t\t\t$k = 0;\n\t\t\tfor ($i = 0, $n = count($data); $i < $n; $i++ ){\n\t\t\t\t\n\t\t\t\t$row = &$data[$i];\n\n\t\t\t\t## Include the confirmation class to sent the tickets. \n\t\t\t\t$path = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ticketmaster'.DS.'classes'.DS.'createtickets.class.php';\n\t\t\t\t$override = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ticketmaster'.DS.'classes'.DS.'override'.DS.'createtickets.class.php';\n\t\t\t\t\n\t\t\t\t## Check if the override is there.\n\t\t\t\tif (file_exists($override)) {\n\t\t\t\t\t## Yes, now we use it.\n\t\t\t\t\trequire_once($override);\n\t\t\t\t} else {\n\t\t\t\t\t## No, use the standard\n\t\t\t\t\trequire_once($path);\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$creator = new ticketcreator( (int)$row->orderid ); \n\t\t\t\t$creator->doPDF();\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t$k=1 - $k;\n\t\t\t\t\n\t\t\t}\t\n\n\t\t\n\t}", "public function createPDF($id) {\n $data = \\App\\Rampas::find($id);\n \n $pdf = PDF::loadView('pdf_view', $data);\n \n // download PDF file with download method\n return $pdf->stream('pdf_file.pdf');\n }", "public function getPDF() {\n $data = Input::all();\n $document = document::where(\"id\", \"=\", $data['docuId'])->first();\n $this->makePDF($document->path);\n return str_replace(\"/var/www/sphinx/\", \"\", $document->path) . \"/build/latex/\" . $document->name . \".pdf\";\n }", "public function createPDF() {\n $data = Product::all();\n\n // share data to view\n view()->share('products',$data);\n $pdf = PDF::loadView('admin.pdf.product_pdf', $data);\n\n // download PDF file with download method\n return $pdf->download('pdf_file.pdf');\n }", "protected function create_pdf_object() {\n\n // Default orientation is Landescape.\n $orientation = 'L';\n\n if ($this->get_instance()->height > $this->get_instance()->width) {\n $orientation = 'P';\n }\n\n // Remove commas to avoid a bug in TCPDF where a string containing a commas will result in two strings.\n $keywords = get_string('keywords', 'simplecertificate') . ',' . format_string($this->get_instance()->coursename, true);\n $keywords = str_replace(\",\", \" \", $keywords); // Replace commas with spaces.\n $keywords = str_replace(\" \", \" \", $keywords); // Replace two spaces with one.\n\n $pdf = new pdf($orientation, 'mm', array($this->get_instance()->width, $this->get_instance()->height), true, 'UTF-8');\n $pdf->SetTitle($this->get_instance()->name);\n $pdf->SetSubject($this->get_instance()->name . ' - ' . $this->get_instance()->coursename);\n $pdf->SetKeywords($keywords);\n $pdf->setPrintHeader(false);\n $pdf->setPrintFooter(false);\n $pdf->SetAutoPageBreak(false, 0);\n $pdf->setFontSubsetting(true);\n $pdf->SetMargins(0, 0, 0, true);\n\n return $pdf;\n }", "public function generatepdf()\n\t\t {\n\t\t\t App::import('Vendor', 'linnwork/api/Auth');\n\t\t\t\tApp::import('Vendor', 'linnwork/api/Factory');\n\t\t\t\tApp::import('Vendor', 'linnwork/api/PrintService');\n\t\t\t\n\t\t\t\t$username = Configure::read('linnwork_api_username');\n\t\t\t\t$password = Configure::read('linnwork_api_password');\n\t\t\t\t\n\t\t\t\t$multi = AuthMethods::Multilogin($username, $password);\n\t\t\t\t\n\t\t\t\t$auth = AuthMethods::Authorize($username, $password, $multi[0]->Id);\t\n\n\t\t\t\t$token = $auth->Token;\t\n\t\t\t\t$server = $auth->Server;\n\t\t\t\t\n\t\t\t\t$orderIdArray[]\t=\t$this->request->data['pkorderid'];\n\t\t\t\t\n\t\t\t\t$IDs = $orderIdArray;\n\t\t\t\t$parameters = '[]';\n\t\t\t\n\t\t\t $result \t= \tPrintServiceMethods::CreatePDFfromJobForceTemplate('Invoice Template',$IDs,27,$parameters,'PDF',$token, $server);\n\t\t\t $results \t= \tPrintServiceMethods::CreatePDFfromJobForceTemplate('Invoice Template',$IDs,27,$parameters,'PDF',$token, $server);\n\t\t\t $pdf\t\t=\t$result->URL.\"#\".$results->URL;\n\t\t\t if($result->URL && $result->URL)\n\t\t\t {\n\t\t\t\t\t\techo $pdf; \n\t\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\techo \"2\"; \n\t\t\t\t\t\texit;\n\t\t\t\t}\n\t\t }", "public function makePdf(){\n\t\t$content = $_POST['data'];\n\t\t$id = $_POST['articleId'];\n\t\t\n\t\t$rootAndFile = $this->getRootArticleName($id);\n\t\t$fileName = $rootAndFile['fileName'];\n\t\t$root = $rootAndFile['root'];\n\t\t$path = $root.\"/pdfDirectory/articlePdf\";\n\t\t\n\t\t$iscreated = createPdf($path, $fileName, $content);\n\t\tif($iscreated === true ){\n\t\t\tif($this->read_model->updatePdfExist($id, $data = array(\"havePdfVersion\" => true)) == 1)\n\t\t\t\techo json_encode(array(\"msg\" => \"success\", \n\t\t\t\t\t\"path\" => $this->articlePdfPathRelative.\"/\".$fileName.\".pdf\"));\n\t\t\telse json_encode(array(\"msg\" => \"fail\", \"error\" => \"Not updated in database\"));\n\t\t}\n\t\telse echo json_encode(array(\"msg\" => \"fail\", \"error\" => $iscreated));\n\t\t\n\t}", "protected function formatPdf($response)\n\t{\n\n\t\t// #TODO: Implement BeforeRender Functionality\n\n\t\t$tmpfile_name = uniqid();\n\t\tif($this->build_path == \"\"){\n\t\t\t$this->build_path = getcwd().\"/\";\n\t\t}\n\n\t\t$tmpfile_path = $this->build_path.$tmpfile_name;\n\t\t$logfile_path = $this->build_path.$tmpfile_name.\".log\";\n\t\t$auxfile_path = $this->build_path.$tmpfile_name.\".aux\";\n\t\t$pdffile_path = $this->build_path.$tmpfile_name.\".pdf\";\n\n\t\t// Write temp file\n\t\t$fp = fopen($tmpfile_path, 'w+');\n\t\tfwrite($fp, $response->data);\n\t\tfclose($fp);\n\n\t\t// Start Process\n\t\t$process = new Process(\n\t\t\t[\n\t\t\t\t$this->latexbin,\n\t\t\t\t'-interaction=nonstopmode',\n\t\t\t\t$tmpfile_path,\n\t\t\t\t'-output-directory=$build_path'\n\t\t\t]\n\t\t);\n\n\t\t$process->setTimeout($this->timeout);\n\t\t$process->setIdleTimeout($this->idletimeout);\n\t\t$process->run();\n\n\t\tif (!$process->isSuccessful()) {\n\t\t\tunlink($logfile_path);\n\t\t\tunlink($auxfile_path);\n\t\t\tunlink($tmpfile_path);\n \tthrow new ProcessFailedException($process);\n\t\t}else{\n\t\t\tunlink($logfile_path);\n\t\t\tunlink($auxfile_path);\n\t\t\tunlink($tmpfile_path);\n\t\t\tif(file_exists($pdffile_path)){\n\t\t\t\t$pdf = file_get_contents($pdffile_path);\n\t\t\t\tunlink($pdffile_path);\n\t\t\t\treturn $pdf;\n\t\t\t}\n\t\t}\n\t}", "private function makePDF($path) {\n $output = shell_exec(\"sudo /var/www/sphinx/./myMake.sh \" . $path . \" latexpdf\");\n //dd($output); \n $this->addNewNews(0, 0, 3, \"Erstellt PDF\");\n }", "function generate_pdf($filename){\n $images = glob( $this->working_dir .'page*' );\n\t\ttry {\n $filename = $this->parent_dir() . ($filename);\n\t\t\t$pdf = new Imagick($images);\n\t\t\t$pdf->setImageFormat('pdf');\n\t\t\t$pdf->setResolution( 300, 300 ); \n\t\t\t\t\t\n\t\t\t$pdf->writeImages($filename,true);\t\t\n\t\t\t////error_log($filename . PHP_EOL . print_r($images,1));\n\t\t\t\n\t\t\t//return $pdf->getImageBlob(); \n\t\t\treturn $filename;\n\t\t\n\t\t}catch(Exception $ex){\n\t\t\terror_log(__FUNCTION__ . $ex->getMessage());\n\t\t}\n\t\t\n try {\t\t\t\n\t\t\t$pdf = new PDFLib();\n\t\t\tif ($pdf->begin_document(\"\", \"\") == 0) {\n\t\t\t\tdie(\"Error: \" . $pdf->get_errmsg());\n\t\t\t}\n\t\t\t//$pdf->set_info();\n\t\t\t$pdf->set_info('Creator', 'Volgram Photoprinter Engine');\n\t\t\t$pdf->set_info('Authors', 'Adorama Printshop');\n\t\t\t$pdf->set_info('Producers', 'Adorama Printshop');\t\t\n\n\t\t\t$path = str_replace(FCPATH .'working/','',$this->working_dir);\n\t\t\tlist($order_id, $item_id) = explode('/',$path);\n\t\t\t$pdf->set_info('Title', 'Order #' . $order_id);\t\t\n\t\t\t$pdf->set_info('Subject', 'Item #' . $item_id);\n\t\t\t\n\t\t\tforeach($images as $img){\n\t\t\t\t$size = getimagesize ($img);\t\t\t\t\n\t\t\t\t$pdf->begin_page_ext($size[0] ,$size[1] ,'');\n\t\t\t\t$imgHandler = $pdf->load_image(image_type_to_extension($size[2],0) , $img , '');\n\t\t\t\t$pdf->fit_image($imgHandler,0,0,'boxsize {' .$size[0] .' '. $size[1] .'} position 0 fitmethod meet');\n\t\t\t\t$pdf->close_image($imgHandler);\n\t\t\t\t$pdf->end_page_ext('');\n\t\t\t}\n //$pdf->writeImages( $filename , true);\t\t\t\t\t\t\n\t\t\t$pdf->end_document('');\n return $pdf->get_buffer();\n } catch (Exception $ex){\n error_log(__FUNCTION__ . $ex->getMessage());\n }\n }", "public function generatePDF()\n {\n $data = [\n 'title' => 'List of Houses',\n 'company' => 'Real Construction',\n 'date' => date('m/d/Y'),\n 'location' => 'KK 705 St, Kigali',\n 'email' => '[email protected]',\n 'contact' => '+250 788306817',\n 'contact1' => '+250 788314255',\n ];\n \n $products = DB::table('products')->get();\n \n $pdf = PDF::loadView('myPDF', $data, compact('products'));\n \n return $pdf->download('Houseslist.pdf');\n }", "public function generatePDF()\n {\n $pdf = App::make('dompdf');\n $pdf = $pdf->loadHTML('<h1>Test</h1>');\n return $pdf->stream('company_background.pdf');\n }", "public function pdfAction()\n {\n //Create PDF document\n $pdf = new PdfDocument();\n\n $pdf->pages[0] = new Page( Page::SIZE_A4 );\n $pdf->pages[0]->setFont( Font::fontWithName( Font::FONT_HELVETICA ), 24 );\n $pdf->pages[0]->drawText( 'Hello world!', 240, 400 );\n\n //Check zend root for below file.\n $pdf->save('example.pdf');\n\n //Flash Message (change setNamespace to error, info, default, or success)\n $this->flashMessenger()->setNamespace('success')->addMessage('PDF Created');\n\n //Redirect home\n return $this->redirect()->toRoute('home');\n }", "private function generate_pdf($srcText,$dest){\n $author = \"\";\n $x = 50;\n $text = \"<<<EOT\".\n $srcText.\n \"EOT\";\n // Create fpdf object\n $pdf = new FPDF('P', 'pt', 'Letter');\n // Set base font to start\n $pdf->SetFont('Times', 'B', 24);\n // Add a new page to the document\n $pdf->addPage();\n // Set the x,y coordinates of the cursor\n $pdf->SetXY($x,50);\n // Write 'Simple PDF' with a line height of 1 at the current position\n $pdf->Write(25,'Simple PDF');\n // Reset the font\n $pdf->SetFont('Courier','I',10);\n // Set the font color\n $pdf->SetTextColor(255,0,0);\n // Reset the cursor, write again.\n $pdf->SetXY($x, 75);\n $pdf->Cell(0,11, \"By: $author\", 'B', 2, 'L', false);\n\n // Place an image on the pdf document\n //$pdf->Image('graph.jpg', $x, 100, 150, 112.5, 'JPG');\n\n // Reset font, color, and coordinates\n $pdf->SetFont('Arial','',12);\n $pdf->SetTextColor(0,0,0);\n $pdf->SetXY($x, 250);\n\n // Write out a long text blurb.\n $pdf->write(13, $srcText);\n \n// echo \"<pre>\";\n// print_r($pdf);exit;\n $fileName = substr($dest,0,strpos($dest,'.')).\"_\".time().'.pdf';\n $pdf->Output($fileName,'F');\n\n \n }", "function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0)\n\t{\n\t\tglobal $user,$langs,$conf,$mysoc,$db,$hookmanager;\n\n\t\tif (! is_object($outputlangs)) $outputlangs=$langs;\n\t\t// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO\n\t\tif (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';\n\n\t\t$outputlangs->load(\"main\");\n\t\t$outputlangs->load(\"dict\");\n\t\t$outputlangs->load(\"companies\");\n\t\t$outputlangs->load(\"interventions\");\n\n\t\tif ($conf->ficheinter->dir_output)\n\t\t{\n\t\t\t$object->fetch_thirdparty();\n\n\t\t // Definition of $dir and $file\n\t\t\tif ($object->specimen)\n\t\t\t{\n\t\t\t\t$dir = $conf->ficheinter->dir_output;\n\t\t\t\t$file = $dir . \"/SPECIMEN.pdf\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$objectref = dol_sanitizeFileName($object->ref);\n\t\t\t\t$dir = $conf->ficheinter->dir_output . \"/\" . $objectref;\n\t\t\t\t$file = $dir . \"/\" . $objectref . \".pdf\";\n\t\t\t}\n\n\t\t\tif (! file_exists($dir))\n\t\t\t{\n\t\t\t\tif (dol_mkdir($dir) < 0)\n\t\t\t\t{\n\t\t\t\t\t$this->error=$langs->transnoentities(\"ErrorCanNotCreateDir\",$dir);\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (file_exists($dir))\n\t\t\t{\n\n\t\t\t\t// Create pdf instance\n\t\t\t\t$pdf=pdf_getInstance($this->format,'mm','l');\n\t\t\t\t$default_font_size = pdf_getPDFFontSize($outputlangs);\t// Must be after pdf_getInstance\n\n\t\t\t\tif (class_exists('TCPDF'))\n\t\t\t\t{\n\t\t\t\t\t$pdf->setPrintHeader(false);\n\t\t\t\t\t$pdf->setPrintFooter(false);\n\t\t\t\t}\n\t\t\t\t$pdf->SetFont(pdf_getPDFFont($outputlangs));\n\t\t\t\t// Set path to the background PDF File\n\t\t\t\tif (empty($conf->global->MAIN_DISABLE_FPDI) && ! empty($conf->global->MAIN_ADD_PDF_BACKGROUND))\n\t\t\t\t{\n\t\t\t\t\t$pagecount = $pdf->setSourceFile($conf->mycompany->dir_output.'/'.$conf->global->MAIN_ADD_PDF_BACKGROUND);\n\t\t\t\t\t$tplidx = $pdf->importPage(1);\n\t\t\t\t}\n\n\t\t\t\t$pdf->Open();\n\t\t\t\t$pagenb=0;\n\t\t\t\t$pdf->SetDrawColor(128,128,128);\n\n\t\t\t\t$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));\n\t\t\t\t$pdf->SetSubject($outputlangs->transnoentities(\"InterventionCard\"));\n\t\t\t\t$pdf->SetCreator(\"Dolibarr \".DOL_VERSION);\n\t\t\t\t$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));\n\t\t\t\t$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref).\" \".$outputlangs->transnoentities(\"InterventionCard\"));\n\t\t\t\tif (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);\n\n\t\t\t\t$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right\n\n\t\t\t\t// New page\n\t\t\t\t$pdf->AddPage();\n\t\t\t\tif (! empty($tplidx)) $pdf->useTemplate($tplidx);\n\t\t\t\t$pagenb++;\n\t\t\t\t$this->_pagehead($pdf, $object, 1, $outputlangs);\n\t\t\t\t$pdf->SetFont('','', $default_font_size - 1);\n\t\t\t\t$pdf->SetTextColor(0,0,0);\n\n\t\t\t\tif (method_exists($pdf,'AliasNbPages')) $pdf->AliasNbPages();\n\n\t\t\t\t$pdf->Close();\n\t\t\t\t$pdf->Output($file,'F');\n\n\t\t\t\tif (! empty($conf->global->MAIN_UMASK))\n\t\t\t\t@chmod($file, octdec($conf->global->MAIN_UMASK));\n\n\t\t\t\t$this->result = array('fullpath'=>$file);\n\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->error=$langs->trans(\"ErrorCanNotCreateDir\",$dir);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error=$langs->trans(\"ErrorConstantNotDefined\",\"FICHEINTER_OUTPUTDIR\");\n\t\t\treturn 0;\n\t\t}\n\t}", "function pdf() {\n if($this->active_invoice->isLoaded()) {\n\n require_once INVOICING_MODULE_PATH . '/models/InvoicePDFGenerator.class.php';\n InvoicePDFGenerator::download($this->active_invoice, lang(':invoice_id.pdf', array('invoice_id' => $this->active_invoice->getName())));\n die();\n } else {\n $this->response->notFound();\n } // if\n }", "public function export()\n {\n \t/*create pdf file here with */\n \t$pdfOutput = \"\";\n \t\n \treturn $pdfOutput;\n }", "public function generatePDF() {\n $this->generateFirstPage();\n // check data barang, if there's more than 1, spawn additional page\n $this->generateNextPage([]);\n }", "static function makePDF($fileName, $rows, $template = 'Grant Payment T4') {\n $config = CRM_Core_Config::singleton();\n $pdf_filename = $config->customFileUploadDir . $fileName;\n $query = \"SELECT msg_subject subject, msg_html html, msg_text text, pdf_format_id format\n FROM civicrm_msg_template\n WHERE msg_title = '\" . $template . \"' AND is_default = 1;\";\n $grantDao = CRM_Core_DAO::executeQuery($query);\n $grantDao->fetch();\n\n if (!$grantDao->N) {\n if ($params['messageTemplateID']) {\n CRM_Core_Error::fatal(ts('No such message template.'));\n }\n }\n $subject = $grantDao->subject;\n $html = $grantDao->html;\n $text = $grantDao->text;\n $format = $grantDao->format;\n $grantDao->free();\n\n civicrm_smarty_register_string_resource();\n $smarty = CRM_Core_Smarty::singleton();\n foreach(array('text', 'html') as $elem) {\n $$elem = $smarty->fetch(\"string:{$$elem}\");\n }\n\n $output = file_put_contents(\n $pdf_filename,\n CRM_Utils_PDF_Utils::html2pdf(\n $html,\n $fileName,\n TRUE,\n $format\n )\n );\n return $fileName;\n }", "public function exportpdfAction(){ \r\n $id = $this->_getParam('id'); \r\n $sympC = new SympathieCollection();\r\n $symp = $sympC->getDetails($id);\r\n $obiC = new ObituaryCollection();\r\n $obi = $obiC->getDetailsFromNoContract($symp['SD_noContract']); \r\n $newFileName = \"text\"; \r\n\r\n define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../../../lib/');\r\n require(PHPEXCEL_ROOT . 'PHPExcel/fpdf/fpdf.php');\r\n $pdf = new FPDF();\r\n $pdf->SetLeftMargin(25);\r\n $pdf->SetRightMargin(25); \r\n $pdf->AddPage(); \r\n $pdf->Image(Zend_Registry::get('absolute_web_root') . $symp['SD_Theme'], 0, 0,210, 290); \r\n $pdf->SetFont('Times','',17);\r\n $pdf->SetY(99);\r\n $pdf->MultiCell(0,0, utf8_decode($this->view->getCibleText('sympathie_famille') . \" \" . $obi['OD_FirstName'] . \" \" . $obi['OD_Name']),0,C); \r\n $pdf->SetFont('Times','',14);\r\n $pdf->SetY(107);\r\n $pdf->MultiCell(0,0, utf8_decode($this->view->getCibleText('sympathie_from') . \" \" . $symp['SD_Name']),0,C); \r\n $pdf->SetFont('Times','',9);\r\n $pdf->SetY(114);\r\n $pdf->write(5, utf8_decode($symp['SD_Text']));\r\n\r\n $pdf->Output();\r\n exit;\r\n }", "function _pdf($sumber, $pdfName)\n\t{\n\t\t$this->PDF->AddPage(\"\",\"\",\"\",\"\",\"\",0,0,0,0,0,0,\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"A4\");\n\t\t$this->PDF->WriteHTML($sumber);\n\n\t\t// // render all necessary file and data into pdf and forced download\n\t\t$this->PDF->Output($pdfName);\n\t\tchmod($pdfName, 0777);\n\t}", "public function outputPdfToBrowser();", "public function createPDF() { \n\n $data = Offre::where('offre', '=', 0)->get();\n view()->share('offres',$data);\n $pdf = PDF::loadView('admin.offre.pdf.stage', $data);\n return $pdf->download('stage_liste.pdf');\n }", "public static function documentToPDF($url, $name)\n {\n $filename = config('momentum.pdf_path') . DIRECTORY_SEPARATOR . $name . '.pdf';\n $filepath = storage_path('app' . DIRECTORY_SEPARATOR . $filename);\n $command = config('momentum.pdf_generator_command') . ' --url \"' . $url . '\" > ' . $filepath;\n shell_exec($command);\n return $filepath;\n }", "public function generatePdf(){\n\n $order = $this->getOrder();\n if (!is_object($order)) {\n return null;\n }\n\n $service = $order->getService();\n $location = $order->getLocation();\n $customer = $order->getCustomer();\n\n if (!is_object($service) || !is_object($location) || !is_object($customer)) {\n return null;\n }\n\n //set pdf latex template\n $this->_latex->setTpl('storno');\n\n //append order\n $this->assign('order', $order);\n\n //compile template using smarty\n $pdf = $this->_latex->compile();\n\n //if file does not exists just return null\n if (!file_exists($pdf)) {\n return null;\n }\n\n return $pdf;\n }", "function createPDF($content, $filename = \"\")\n{\n require_once('pdfconverter/html2pdf.class.php');\n try\n {\n $html2pdf = new HTML2PDF('P', 'A4', 'en');\n $html2pdf->writeHTML($content);\n\t\tif($filename == \"\")\n\t\t{\n\t\t\t$filename = \"Export_\".date(\"Y-m-d H:i:s\");\n\t\t\t$html2pdf->Output($filename.'.pdf','D');\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$html2pdf->Output($filename,'F');\n\t\t\treturn true;\n\t\t}\n }\n catch(HTML2PDF_exception $e) \n\t{\n\t\treturn false;\n //echo $e;\n //exit;\n }\n}", "public function createPDF() {\n $user=auth()->user();\n $restaurant=$user->restaurant_profile;\n $orders=$user->restaurant_profile->orders;\n \n // share data to view\n view()->share('portal.today_order_report', compact($user, $restaurant, $orders));\n $pdf = PDF::loadView('portal.today_order_report', compact($user, $restaurant, $orders));\n \n // download PDF file with download method\n return $pdf->download('today_report.pdf');\n }", "public function create($data) {\n $new_pdf_name = mt_rand();\n\n # create fdf file\n $fdf_file = $this->createFDF($data);\n $tmp_file = fopen($this->base_directory . $new_pdf_name . '.fdf', 'w');\n\n if($tmp_file && fwrite($tmp_file, $fdf_file, strlen($fdf_file))) {\n $command = \"{$this->pdftk_path} A='{$this->pdf_base}' \";\n $command .= \"fill_form '\" . $this->base_directory . $new_pdf_name . \".fdf' \";\n $command .= \"output '\" . $this->base_directory . $new_pdf_name . \".pdf' drop_xfa\";\n\n # Execute the command to merge pdf base with new fdf file\n passthru($command);\n }\n\n # Attached to array the name of pdf files\n $this->pdf_names = array_merge($this->pdf_names, array($new_pdf_name));\n\n fclose($tmp_file);\n }", "function join_pdf()\n\t\t{\n\t\t}", "function pdf_create($html, $filename, $stream, $attachment = false)\n{\n $html = preg_replace('/>\\s+</', '><', $html);\n\n require_once 'vendor/dompdf/dompdf/dompdf_config.inc.php';\n global $_dompdf_show_warnings, $_dompdf_debug, $_DOMPDF_DEBUG_TYPES;\n\n\n $options = [];\n\n\n if (isset($_GET['input_file'])) {\n $file = rawurldecode($_GET['input_file']);\n } elseif //throw new DOMPDF_Exception(\"An input file is required (i.e. input_file _GET variable).\");\n\n (isset($_GET['paper'])) {\n $paper = rawurldecode($_GET['paper']);\n } else {\n $paper = DOMPDF_DEFAULT_PAPER_SIZE;\n }\n\n if (isset($_GET['orientation'])) {\n $orientation = rawurldecode($_GET['orientation']);\n } else {\n $orientation = 'portrait';\n }\n\n if (isset($_GET['base_path'])) {\n $base_path = rawurldecode($_GET['base_path']);\n $file = $base_path . $file; // Set the input file\n }\n\n if (isset($_GET['options'])) {\n $options = $_GET['options'];\n }\n\n if ($attachment == 'show') {\n $options['Attachment'] = false;\n }\n\n $outfile = $filename . '.pdf'; // Don't allow them to set the output file\n $save_file = false; // Don't save the file\n\n\n $dompdf = new Dompdf\\Dompdf();\n\n $options['isRemoteEnabled'] = true;\n $dompdf->set_option('isRemoteEnabled', true);\n\n\n /* Uncomment the line below in order to activate special characters (Chiniese, Korean,...)*/\n /* $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'); */\n $dompdf->load_html($html);\n\n\n\n if (isset($base_path)) {\n $dompdf->set_base_path($base_path);\n }\n\n $dompdf->set_paper($paper, $orientation);\n\n $dompdf->render();\n\n if ($_dompdf_show_warnings) {\n global $_dompdf_warnings;\n foreach ($_dompdf_warnings as $msg) {\n echo $msg . \"\\n\";\n }\n echo $dompdf->get_canvas()->get_cpdf()->messages;\n flush();\n }\n\n if ($save_file) {\n // if ( !is_writable($outfile) )\n // throw new DOMPDF_Exception(\"'$outfile' is not writable.\");\n ini_set('error_reporting', E_ERROR);\n if (!write_file('./files/temp/' . $filename . '.pdf', $pdf)) {\n echo 'files/temp/' . $filename . '.pdf' . ' -> PDF could not be saved! Check your server settings!';\n die();\n }\n }\n\n if (!headers_sent()) {\n if ($stream) {\n $dompdf->stream($outfile, $options);\n exit();\n } else {\n $pdf = $dompdf->output();\n\n ini_set('error_reporting', E_ERROR);\n if (!write_file('./files/temp/' . $filename . '.pdf', $pdf)) {\n echo 'files/temp/' . $filename . '.pdf' . ' -> PDF could not be saved! Check your server settings!';\n die();\n }\n }\n }\n}", "function exportSubToPDF( $id ) {\n\tglobal $wpdb;\n\tinclude( 'create-submission-pdf.php' );\n\t\n\treturn $saveFile;\n}", "public function CreatePdf()\n {\n\n if(is_null($this->user) || !$this->user->can('admin.createPdf') ){\n abort('403','You dont have acces!!!!');\n }\n $product=Product::all();\n return view('pdf',compact('product'));\n // $pdf = PDF::loadView('pdf', $product);\n // return $pdf->download('products.pdf');\n // return view('pdf.CreatePdf');\n }", "function __createInvoicePDF($paper) {\n\n// pr($paper);\n// die('asdas');\n # include our PDF class\n\n //App::classname('Vendor', 'invoicepdf');\n require_once(ROOT . DS . \"vendor\" . DS . \"invoicepdf.php\");\n\n\n // create new PDF document\n\n $pdf = new InvoicePDF();\n\n\n\n // Set document information\n\n $pdf->SetCreator('Facturi - Sa facturam cit mai simplu');\n\n\n\n //$contact = '';\n //$contact .= '<b>'.$invoice['User']['firstName'].' '.$invoice['User']['lastName'].'</b><br/>';\n //$contact .= $invoice['User']['address'].'<br/>';\n //$contact .= $invoice['User']['city'].', '.$invoice['User']['state'].' '.$invoice['User']['zip'].'<br/>';\n //$contact .= $invoice['User']['country'].'<br/>';\n //$contact .= '<b>Email:</b> '.$invoice['User']['email'].'<br/>';\n\n\n\n $contact = '';\n\n $contact .= 'FURNIZOR: <b>SC SANINVEST SRL</b><br/>';\n\n $contact .= 'Registrul Comertului: <b>J08/2064/2006</b><br/>';\n\n $contact .= 'Cod Fiscal: <b>RO18982439</b><br/>';\n\n $contact .= 'Sediul: <b>str.Harmanului nr.124, Ap.8, Brasov</b><br/>';\n\n $contact .= 'Cont IBAN: <b>RO36 INGB 0000 9999 0477 3148</b><br/>';\n\n $contact .= 'Banca: <b>ING BANK</b><br/>';\n\n $contact .= 'Capital social: <b>200 lei</b><br/>';\n\n\n\n\n\n $client = '';\n\n //$client .= '<b></b><br/>';\n\n $client .= 'CUMPARATOR: <b>' . $paper['client']['name'] . '</b><br/>';\n\n $client .= 'Registrul Comertului: <b>' . $paper['client']['reg_comert'] . '</b><br/>';\n\n $client .= 'Cod Fiscal: <b>' . $paper['client']['cui'] . '</b><br/>';\n\n $client .= 'Adresa: <b>' . $paper['client']['address'] . '</b><br/>';\n\n $client .= $paper['client']['city'] . ', ' . $paper['client']['state'] . ' ' . $paper['client']['zip'] . '<br/>';\n\n $client .= 'Cont IBAN: <b>' . $paper['client']['cont_bancar'] . '</b><br/>';\n\n $client .= 'Banca: <b>' . $paper['client']['banca'] . '</b><br/>';\n\n\n\n\n\n $date = '';\n\n //$date .= date('jS M Y', strtotime($invoice['Invoice']['date'])).'<br/>';\n\n $date .= 'Data: ' . date('d.m.Y', strtotime($paper['date'])) . '<br/><br/>';\n\n //$date .= '<b>Due '.date('jS M Y', strtotime($invoice['Invoice']['dueDate'])).'</b><br/>';\n //$date .= '<b>Data scadenta: '.date('d.m.Y', strtotime($invoice['Invoice']['dueDate'])).'</b><br/>';\n\n $date_due = date('d.m.Y', strtotime($paper['date']));\n\n // set up class properties.\n\n $pdf->xInvoiceId = $paper['paperId'];\n\n $pdf->xPurchaseOrder = $paper['purchaseOrder'];\n\n $pdf->xContact = $contact;\n\n $pdf->xClient = $client;\n\n $pdf->xDate = $date;\n\n $pdf->xDateDue = $date_due;\n\n $pdf->xDelegat = $paper['delegat'];\n\n $pdf->xCarteIdentitate = $paper['identity_card'];\n\n $pdf->xAuto = 'asd';\n\n $pdf->xDataLivrare = date('d.m.Y', strtotime($paper['date']));\n\n\n\n //set auto page breaks\n\n $pdf->SetAutoPageBreak(true);\n\n // add a page\n\n $pdf->AddPage();\n\n // set font\n\n $pdf->SetFont(\"helvetica\", \"\", 8);\n\n // column titles\n\n $columnTitles = array('Nr.Crt.', 'Descriere', 'UM', 'Cantitate', 'Pret', 'Valoare', 'TVA');\n\n // attach item table\n\n $pdf->ItemTable($columnTitles, $invoice['Item']);\n\n // attach total table\n\n\n\n $pdf->TotalTable($invoice['Invoice']);\n\n //Save file To web root PDF document\n\n $pdf->Output($paper['paperId'] . '.pdf', 'I');\n }", "public function pdf($id)\n {\n $valeurs = $this->detail($id);\n if (!$valeurs) {\n throw new MY_Exceptions_NoSuchRecord('Impossible de trouver la facture ' . $id);\n }\n /*if ($valeurs->fac_fichier && file_exists($valeurs->fac_fichier)) {\n return array(\n 'path' => $valeurs->fac_fichier,\n 'created' => false,\n );\n }*/\n $chemin = $this->generer_pdf($id, true);\n if ($chemin) {\n return array(\n 'path' => $chemin,\n 'created' => true,\n );\n }\n return $chemin;\n }", "public function setFilename($pdfFilename);", "public function generatePdfData() {\n\t\t/**transport use to get the variables $order object, $invoice object and the template model object*/\n\t\t$parts = $this->_transport();\n\n\t\t/** instantiate the mPDF class and add the processed html to get the pdf*/\n\t\t$applySettings = $this->getPDFSettings($parts);\n\n\t\t$fileParts = [\n\t\t\t'filestream' => $applySettings,\n\t\t\t'filename' => filter_var($parts['filename'], FILTER_SANITIZE_URL),\n\t\t];\n\n\t\treturn $fileParts;\n\t}", "public function testcreatePdfA()\n {\n $createPdfAFile = $this->client->pdf4me()->createPdfA(\n [\n \"pdfCompliance\"=> \"pdfa1b\",\n \"file\" => __DIR__.'/testcase.pdf'\n ]\n );\n $this->assertTrue(is_string($createPdfAFile), 'Should return a valid object.');\n }", "public function pdf($form=''){\n $this->load->model('Report');\n $this->Report->downloadpdf($form);\n }", "abstract public function toPdfString(\\SetaPDF_Core_Document $pdfDocument);", "function create_new_pdf_thumb($target_path, $only_name, $thumb_path, $screenshot_path){\n global $jlistConfig; \n \n $pdf_thumb_file_name = '';\n \n if (extension_loaded('imagick')){ \n // create small thumb\n $image = new Imagick($target_path.'[0]');\n $image -> setImageIndex(0);\n $image -> setImageFormat($jlistConfig['pdf.thumb.image.type']);\n $image -> scaleImage($jlistConfig['pdf.thumb.height'],$jlistConfig['pdf.thumb.width'],1);\n $pdf_thumb_file_name = $only_name.'.'.strtolower($jlistConfig['pdf.thumb.image.type']);\n $image->writeImage($thumb_path.$only_name.'.'.strtolower($jlistConfig['pdf.thumb.image.type']));\n $image->clear();\n $image->destroy();\n // create big thumb\n $image = new Imagick($target_path.'[0]');\n $image -> setImageIndex(0);\n $image -> setImageFormat($jlistConfig['pdf.thumb.image.type']);\n $image -> scaleImage($jlistConfig['pdf.thumb.pic.height'],$jlistConfig['pdf.thumb.pic.width'],1);\n $image->writeImage($screenshot_path.$only_name.'.'.strtolower($jlistConfig['pdf.thumb.image.type']));\n $image->clear();\n $image->destroy(); \n }\n return $pdf_thumb_file_name; \n}", "function dom_pdf_gen_pdf() {\n $this->load->view($this->router->class.'/dom_pdf_gen_pdf');\n // Get output html\n $html = $this->output->get_output();\n // Load library\n $this->load->library('dompdf_gen');\n // Convert to PDF\n $this->dompdf->load_html($html);\n $this->dompdf->render();\n $this->dompdf->stream(\"mypdf_\" . time() . \".pdf\");\n }", "static function getPDF($uid){\n $pdf = self::load();\n \n $account = \\LK\\get_user($uid);\n $pdf->setUserSettings(\\LK\\VKU\\VKUManager::getVKU_RenderSettings($account));\n return $pdf;\n }", "public function createPDF () {\n require_once \"fpdf183/fpdf.php\";\n\n $idReservasi = $_GET['idReservasi'];\n\n $query = ' SELECT pengunjung.nama, reservasi.jml_orang, reservasi.tanggal, transaksi.total_harga\n FROM reservasi INNER JOIN pengunjung ON reservasi.ktp = pengunjung.ktp INNER JOIN transaksi ON transaksi.id_reservasi = reservasi.id_reservasi\n WHERE reservasi.id_reservasi = \"'.$idReservasi.'\"';\n\n $query_result = $this->db->executeSelectQuery($query);\n\n $nama = $query_result[0][\"nama\"];\n $jmlOrang = $query_result[0][\"jml_orang\"];\n $tanggal = $query_result[0][\"tanggal\"];\n $totalHarga = $query_result[0][\"total_harga\"];\n\n $sum = $totalHarga;\n $totalIncome = \"\";\n $sisa = (strlen($sum) % 3);\n if (strlen($sum)%3 == 0 && strlen($sum) > 3){\n $sisa = 3;\n }\n $totalIncome = substr($sum, 0, $sisa);\n for ($i = $sisa; $i < strlen($sum); $i+=3) {\n $totalIncome.=\".\".substr ($sum, $i, 3);\n }\n\n $pdf = new FPDF('P', 'mm', 'A4');\n $pdf->AddPage();\n\n $pdf->SetFont('Arial', 'B', 14);\n $pdf->Cell(95, 5, 'FUN RESORT AND THEME PARK', 0, 0);\n $pdf->Cell(95, 5, 'INVOICE', 0, 1, 'R');\n\n $pdf->SetFont('Arial', '', 14);\n $pdf->Cell(190, 20, '', 0, 1);\n\n $pdf->SetFont('Arial', 'B', 12);\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(95, 5, 'DETAILS', 0, 1);\n\n $pdf->Cell(190, 10, '', 0, 1);\n\n $pdf->SetFont('Arial', '', 12);\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'ATAS NAMA', 0, 0);\n $pdf->Cell(120, 5, $nama, 0, 1);\n\n $pdf->Cell(190, 5, '', 0, 1);\n\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'JUMLAH TIKET', 0, 0);\n $pdf->Cell(120, 5, $jmlOrang, 0, 1);\n\n $pdf->Cell(190, 5, '', 0, 1);\n\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'TOTAL HARGA', 0, 0);\n $pdf->Cell(120, 5, 'Rp. '.$totalIncome, 0, 1);\n\n $pdf->Cell(190, 5, '', 0, 1);\n\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'TANGGAL', 0, 0);\n $pdf->Cell(120, 5, $tanggal, 0, 1);\n\n $pdf->Cell(190, 20, '', 0, 1);\n\n $pdf->SetFont('Arial', 'B', 12);\n $pdf->Cell(20, 10, '', 0, 0);\n $pdf->Cell(20, 10, 'NO', 1, 0, 'C');\n $pdf->Cell(130, 10, 'KODE TIKET', 1, 0, 'C');\n $pdf->Cell(20, 10, '', 0, 1);\n\n $str = $idReservasi;\n\n $pdf->SetFont('Arial', '', 12);\n for ($i=1; $i<=$jmlOrang; $i++){\n $pdf->Cell(20, 10, '', 0, 0);\n $pdf->Cell(20, 10, $i, 1, 0, 'C');\n $pdf->Cell(130, 10, $str.'-'.$i, 1, 0, 'C');\n $pdf->Cell(20, 10, '', 0, 1);\n }\n\n $pdf->Cell(190, 20, '', 0, 1);\n\n $pdf->SetFont('Arial', 'I', 12);\n $pdf->Cell(40, 10, '', 0, 0);\n $pdf->Cell(110, 10, '~ Have a Great Day ! ~', 0, 0, 'C');\n $pdf->Cell(40, 10, '', 0, 1);\n\n //output (print)\n $pdf -> Output(\"\", \"invoice.pdf\");\n }", "public function verpdf($info)\n\t{\n\t\t$infouser=explode('x', $info, 2);\n\t\t$param['alumno']=$this->Usuario->getUser($infouser[0]);\n $param['eval']=$infouser[1];\n\n //getInforme($eval,$curso,$alumno,$usuario)\n if(isset($_SESSION['curso'])){\n $curso=$_SESSION['curso'];\n }else{\n //año actual\n $curso=date(\"Y\");\n $_SESSION['curso']= $curso;\n }\n $param['informe']=$this->Informe->getInforme($param['eval'],$curso,$infouser[0],$_SESSION['usuario']['id']);\n //echo site_url().'fpdf.php';exit;\n \n $this->load->library('Pdf');\n $pdf = new FPDF();\n $pdf->AliasNbPages();\n $pdf->AddPage();\n // Logo\n //\n $pic = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAYAAAAbvPRpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AABecmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTMyBNYWNpbnRvc2giIHhtcDpDcmVhdGVEYXRlPSIyMDExLTA4LTA1VDIzOjE0OjQzKzAxOjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxMi0wOS0wN1QxODozMzowMiswMTowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAxMi0wOS0wN1QxODozMzowMiswMTowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTMxRTA5MzBGOTEyMTFFMTgyMzM5NUFDNTA2OTk2RTciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTMxRTA5MzFGOTEyMTFFMTgyMzM5NUFDNTA2OTk2RTciIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpFNkM3NEJGNDBCMjA2ODExQkVEQ0VDMTJCMTdFMDUyRiIgeG1wUmlnaHRzOk1hcmtlZD0iRmFsc2UiPiA8cGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPiA8cmRmOkJhZz4gPHJkZjpsaT51dWlkOjNEOTBCNjA0NEZDNjExREI5NUQ5QTk4QzBFMjM0MUVBPC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MjlDNUE3N0YwRUEyMTwvcmRmOmxpPiA8cmRmOmxpPnhtcC5kaWQ6MDE4MDExNzQwNzIwNjgxMTkyQjBBQUJCMzRBRTg3Qzc8L3JkZjpsaT4gPHJkZjpsaT54bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE5MkIwQURGRDdEM0RDQTMzPC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDowMzgwMTE3NDA3MjA2ODExOEY2MkY2RDlGNTM3M0MwRDwvcmRmOmxpPiA8cmRmOmxpPnhtcC5kaWQ6MDY4MDExNzQwNzIwNjgxMTg4QzZCRTM0NkJFOTcyMzA8L3JkZjpsaT4gPHJkZjpsaT54bXAuZGlkOjRGNkJCODcwMkMyMDY4MTE4NzFGRTE2OUU3REMzQzk4PC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDpFNkM3NEJGNDBCMjA2ODExQkVEQ0VDMTJCMTdFMDUyRjwvcmRmOmxpPiA8cmRmOmxpPnhtcC5kaWQ6Rjc3RjExNzQwNzIwNjgxMTg3MUZBRjhCMDk0OUUyMjg8L3JkZjpsaT4gPHJkZjpsaT54bXAuZGlkOkY3N0YxMTc0MDcyMDY4MTE5N0E1RTk0QjdDMjQ1NkMxPC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDpGNzdGMTE3NDA3MjA2ODExOUMxMkZDQzczRjExNDQ2RTwvcmRmOmxpPiA8L3JkZjpCYWc+IDwvcGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2Qzc0QkY0MEIyMDY4MTFCRURDRUMxMkIxN0UwNTJGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTA4VDE1OjI2OjM2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QTI5MTQxRUExMDIwNjgxMUJFRENFQzEyQjE3RTA1MkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMDhUMTY6MjI6MDkrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpBNjkxNDFFQTEwMjA2ODExQkVEQ0VDMTJCMTdFMDUyRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0wOFQxNjozMzowNSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjFBREE5MDY5MTQyMDY4MTFCRURDRUMxMkIxN0UwNTJGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTA4VDE2OjQ2OjUwKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjlGNzEwREQwOTIwNjgxMTlERDBDODY0NkU3NDk1OTIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTBUMTQ6NDI6MjgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpFMEJFMkYyRTJCMjA2ODExOUREMEM4NjQ2RTc0OTU5MiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xMFQxODo1NDoxMiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkUyQkUyRjJFMkIyMDY4MTE5REQwQzg2NDZFNzQ5NTkyIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTExVDEyOjA4OjAxKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RTNCRTJGMkUyQjIwNjgxMTlERDBDODY0NkU3NDk1OTIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTFUMTI6MzU6MzgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGNzdGMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNTowMTowNiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkY4N0YxMTc0MDcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE1OjAxOjA2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Rjk3RjExNzQwNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTU6MzE6MDYrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGQTdGMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjozMjowNCswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkZCN0YxMTc0MDcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjM3OjMyKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RkM3RjExNzQwNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTY6NDM6MTkrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGRDdGMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjo0NyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkZFN0YxMTc0MDcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjQ3OjIzKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RkY3RjExNzQwNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTY6NTQ6MzMrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMDgwMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjo1NDo1OSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QTdFQ0EzMTcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjU2OjU4KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDVBN0VDQTMxNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTY6NTc6NTMrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNkE3RUNBMzE3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjo1ODoxMyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA3QTdFQ0EzMTcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjU4OjI2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDhBN0VDQTMxNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTc6MDk6MTIrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowOUE3RUNBMzE3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNzowOToxNiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjBBQTdFQ0EzMTcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE3OjEwOjA3KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDE4MDExNzQwNzIwNjgxMThGNjJCQURGMjAwRjc3NDUiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMjI6MzA6MDgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExOEY2MkJBREYyMDBGNzc0NSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQyMjozOTozOSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkU1Q0IwODY5MEIyMDY4MTE4RjYyQkFERjIwMEY3NzQ1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAwOjA0OjQyKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RTZDQjA4NjkwQjIwNjgxMThGNjJCQURGMjAwRjc3NDUiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDA6MTI6MzMrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpFQUNCMDg2OTBCMjA2ODExOEY2MkJBREYyMDBGNzc0NSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMDozOTo1NSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkVCQ0IwODY5MEIyMDY4MTE4RjYyQkFERjIwMEY3NzQ1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAwOjQzOjM4KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RUNDQjA4NjkwQjIwNjgxMThGNjJCQURGMjAwRjc3NDUiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDA6NDM6NDcrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpDODZBNkJBMzFCMjA2ODExOEY2MkJBREYyMDBGNzc0NSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMDo1NDozNyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkM5NkE2QkEzMUIyMDY4MTE4RjYyQkFERjIwMEY3NzQ1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAxOjAyOjQwKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDU4MDExNzQwNzIwNjgxMTg3MUZEMENGNkEwN0VDQkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDE6MTA6MzUrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQjJBOTg2QTBBMjA2ODExODcxRkQwQ0Y2QTA3RUNCRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMTo0MjowMyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjYyNjExRTYxMEMyMDY4MTE4NzFGRDBDRjZBMDdFQ0JGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAyOjEzOjE2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjM2MTFFNjEwQzIwNjgxMTg3MUZEMENGNkEwN0VDQkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDI6MTU6NTcrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NDYxMUU2MTBDMjA2ODExODcxRkQwQ0Y2QTA3RUNCRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMjoxODo1MiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjY1NjExRTYxMEMyMDY4MTE4NzFGRDBDRjZBMDdFQ0JGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAyOjI2OjQ4KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjY2MTFFNjEwQzIwNjgxMTg3MUZEMENGNkEwN0VDQkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDI6MzE6NDQrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpFOTcyQ0U5NTEzMjA2ODExODcxRkQwQ0Y2QTA3RUNCRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMjozNDo1NyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkVGNUY3NDYxMUUyMDY4MTFBQjA4ODJEM0ZDOEIxQUU1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDE2OjQ2OjM2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NkM3OUU5RTQwRDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTQ6MTg6MjUrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2RDc5RTlFNDBEMjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNDozMToyOCswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjZFNzlFOUU0MEQyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE0OjUxOjI1KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NkY3OUU5RTQwRDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTQ6NTE6NTYrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo3Mzc5RTlFNDBEMjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNTowMToxNyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjc1NzlFOUU0MEQyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE1OjAzOjA3KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QjJBOTFGOTUxNDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTU6MTY6MjkrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCM0E5MUY5NTE0MjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNToxNjo1NiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkI0QTkxRjk1MTQyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE1OjE2OjU2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QjVBOTFGOTUxNDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTU6MTc6NDIrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpEM0M4RjQ5RDFCMjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNTo1ODoxOCswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ2QzhGNDlEMUIyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE2OjA1OjE2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDI4MDExNzQwNzIwNjgxMTg3MUZENkUwNEYxMEREMEIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjFUMTI6NDM6MDcrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExODcxRkQ2RTA0RjEwREQwQiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMVQxMjo0NDowNSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1ODAxMTc0MDcyMDY4MTE4NzFGRDZFMDRGMTBERDBCIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIxVDEyOjQ3OjIzKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6OTI2OTg1QTIyQzIwNjgxMTg3MUZENkUwNEYxMEREMEIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjFUMTY6NTk6MjgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMTgwMTE3NDA3MjA2ODExOTEwOUQyREFBRDc4MDM1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0xM1QxNToyMTo0MVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMjgwMTE3NDA3MjA2ODExOTEwOUQyREFBRDc4MDM1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0xM1QxNToyMTo0MVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMTgwMTE3NDA3MjA2ODExOTJCMDk2MzdDMTJBRkQ2NiIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0xNVQxMzo1NjoxOFoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExOEMxNEEyOTRFMzQ5RTREMCIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0yMVQxODowMzo1MFoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNjgwMTE3NDA3MjA2ODExOEE2REE4NTNBOTRCRkMxRiIgc3RFdnQ6d2hlbj0iMjAxMS0wMS0xMlQxNDozMDozOVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo5OEZFNDY1M0ZFMjA2ODExODcxRkRFMkM3Mjc3MDQ4OCIgc3RFdnQ6d2hlbj0iMjAxMS0wMS0yMFQxNjo0MzozMVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMzgwMTE3NDA3MjA2ODExOEE2REY4ODQ5OTc3MTZDQyIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0wNlQxMjowNjoxOSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0ODAxMTc0MDcyMDY4MTE4QTZERjg4NDk5NzcxNkNDIiBzdEV2dDp3aGVuPSIyMDExLTA1LTA2VDEyOjA2OjE5KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RDA1QzA1MEQyMDIwNjgxMTk5NENBOTdCRjFFOUU5ODIiIHN0RXZ0OndoZW49IjIwMTEtMDUtMDZUMTQ6MDU6NDUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpEMTVDMDUwRDIwMjA2ODExOTk0Q0E5N0JGMUU5RTk4MiIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0wNlQxNDowNTo0NSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkQzNUMwNTBEMjAyMDY4MTE5OTRDQTk3QkYxRTlFOTgyIiBzdEV2dDp3aGVuPSIyMDExLTA1LTA2VDE0OjEwOjU4KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RDQ1QzA1MEQyMDIwNjgxMTk5NENBOTdCRjFFOUU5ODIiIHN0RXZ0OndoZW49IjIwMTEtMDUtMDZUMTQ6MTE6MDkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpENTVDMDUwRDIwMjA2ODExOTk0Q0E5N0JGMUU5RTk4MiIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0wNlQxNDoxMTowOSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ2NUMwNTBEMjAyMDY4MTE5OTRDQTk3QkYxRTlFOTgyIiBzdEV2dDp3aGVuPSIyMDExLTA1LTA2VDE0OjIyOjQ5KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RDc1QzA1MEQyMDIwNjgxMTk5NENBOTdCRjFFOUU5ODIiIHN0RXZ0OndoZW49IjIwMTEtMDUtMDZUMTQ6Mjc6MjYrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNzgwMTE3NDA3MjA2ODExOTEwOUI0NjJBN0IwNTY2MSIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0xNlQxNzoxOTo0NyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA4ODAxMTc0MDcyMDY4MTE5MTA5QjQ2MkE3QjA1NjYxIiBzdEV2dDp3aGVuPSIyMDExLTA1LTE2VDE3OjE5OjQ3KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDk4MDExNzQwNzIwNjgxMTkxMDlCNDYyQTdCMDU2NjEiIHN0RXZ0OndoZW49IjIwMTEtMDUtMTZUMTg6Mzk6MzUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MkExNEQ5RTQwMjA2ODExOTEwOUI0NjJBN0IwNTY2MSIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0xNlQxOTowMToxNyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjYzQTE0RDlFNDAyMDY4MTE5MTA5QjQ2MkE3QjA1NjYxIiBzdEV2dDp3aGVuPSIyMDExLTA1LTE2VDE5OjA0OjU3KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDM4MDExNzQwNzIwNjgxMTkxMDlERTY3RkU4NEE3QkMiIHN0RXZ0OndoZW49IjIwMTEtMDUtMTdUMTM6MzU6MjcrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExOTEwOURFNjdGRTg0QTdCQyIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0xN1QxMzozNzo1OSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1ODAxMTc0MDcyMDY4MTE5MTA5REU2N0ZFODRBN0JDIiBzdEV2dDp3aGVuPSIyMDExLTA1LTE3VDE0OjAzOjI2KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MEE4MDExNzQwNzIwNjgxMTkxMDlERTY3RkU4NEE3QkMiIHN0RXZ0OndoZW49IjIwMTEtMDUtMThUMTU6MzI6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpBOThDMEYwQ0NEMjA2ODExOTk0Qzg2QjcwRjBBNzdBNCIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0yMFQxNzo0NzozNiswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkFBOEMwRjBDQ0QyMDY4MTE5OTRDODZCNzBGMEE3N0E0IiBzdEV2dDp3aGVuPSIyMDExLTA1LTIwVDE3OjQ3OjM2KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjY1QjQyNTFENzI3NjgxMTkxMDlGM0YwRjk1MjhCOEEiIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTQ6MDg6NTArMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoyQTIwNDk2M0E0Mjg2ODExOTEwOUYzRjBGOTUyOEI4QSIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxNDowODo1MCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjdCRUY0N0JFMjEyMDY4MTE4RjYyOTZFOUM4RkMyNkQ3IiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE2OjA3OjE0KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6N0NFRjQ3QkUyMTIwNjgxMThGNjI5NkU5QzhGQzI2RDciIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTY6MDg6MzcrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1QzRCMDQ5RTQwMjA2ODExOEY2Mjk2RTlDOEZDMjZENyIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxNjozNTo1NSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjJGMjA0OTYzQTQyODY4MTE5MTA5RjNGMEY5NTI4QjhBIiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE3OjE0OjU1KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzAyMDQ5NjNBNDI4NjgxMTkxMDlGM0YwRjk1MjhCOEEiIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTc6MTQ6NTUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MzRCMDQ5RTQwMjA2ODExOEY2Mjk2RTlDOEZDMjZENyIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxNzo1NjoyNCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjY0NEIwNDlFNDAyMDY4MTE4RjYyOTZFOUM4RkMyNkQ3IiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE4OjAxOjU5KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QTZCNzVDOTg0RjIwNjgxMThGNjI5NkU5QzhGQzI2RDciIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTg6MjU6MjMrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpBN0I3NUM5ODRGMjA2ODExOEY2Mjk2RTlDOEZDMjZENyIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxODoyNToyMyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjMxMjA0OTYzQTQyODY4MTE5MTA5RjNGMEY5NTI4QjhBIiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE5OjQ0OjI1KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzIyMDQ5NjNBNDI4NjgxMTkxMDlGM0YwRjk1MjhCOEEiIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTk6NDQ6MjUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozMzIwNDk2M0E0Mjg2ODExOTEwOUYzRjBGOTUyOEI4QSIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxOTo1ODo0OCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjUzMzExREExQzIyODY4MTE4RjYyQjM3MEY1MEFEMTQwIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDE5OjMwOjQ3KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NTQzMTFEQTFDMjI4NjgxMThGNjJCMzcwRjUwQUQxNDAiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMTk6MzA6NDcrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQjhGNjA3QjREMjA2ODExOTk0Qzk3N0NCQTNFNEFGMCIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMDozOToyMiswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkJDOEY2MDdCNEQyMDY4MTE5OTRDOTc3Q0JBM0U0QUYwIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDIwOjM5OjIyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QkQ4RjYwN0I0RDIwNjgxMTk5NEM5NzdDQkEzRTRBRjAiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMjI6MDM6NTErMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCRThGNjA3QjREMjA2ODExOTk0Qzk3N0NCQTNFNEFGMCIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMjowMzo1MSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkVEMTlEM0E1NUMyMDY4MTE5OTRDOTc3Q0JBM0U0QUYwIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDIyOjI2OjIxKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDQ4MDExNzQwNzIwNjgxMTk0NTdBNkU1Q0I5M0Y1M0IiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMjI6MzI6NDArMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNTgwMTE3NDA3MjA2ODExOTQ1N0E2RTVDQjkzRjUzQiIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMjozNDo0NiswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA2ODAxMTc0MDcyMDY4MTE5NDU3QTZFNUNCOTNGNTNCIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDIyOjM0OjQ2KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Rjk3RjExNzQwNzIwNjgxMUE5NjFDMzMxM0M2OTY0ODYiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMjM6MDM6MjQrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGQTdGMTE3NDA3MjA2ODExQTk2MUMzMzEzQzY5NjQ4NiIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMzowMzoyNCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ1dWlkOjhERTNBQ0Q3RDlDQ0UwMTFCNzk0Qzg3M0VGODdFOTVEIiBzdFJlZjpkb2N1bWVudElEPSJ1dWlkOkM0QkNGODkwNDhDMUUwMTE4NDQ3RTA0REZCNThBRTUxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+U9nv0gAAoQJJREFUeF7snQecJUX1tt87Oc/s7GxObCZnJCMZJCgIKEaCioKiiGJCMCsGzIpESaJIEImSc87LwrI559nJee6d+71P1e2dYUmzBMP3+587Nd1dXVVd4bx1zqmuqk5lTfp3UvcqqeVRZVueVV/XXGV7Xla2a6n6sm1SX7eyeVKqTxqYqZTdK64d5v/o/w/KZvzP7R2Iht6Q7Be881LKy6tRqmS8UkWbKa9kqlJV20nVu0pFI0PQfxf9e0Cz9JfqW3GBMm2zQyWli+yX73rgyXYhA7lcpOyvwlFKFVQ6QFX0iJ52rt2epcp2L4pe/0f/u0S7uznzh51kpnd7pwyNHCOksills53mlSb19SyRMq1u99Vud3ey6RB7Pc8U+BpeyK+YrrzRTmvc6eH+u0nvHmjWXKPMwm8q0zxfmWJfw/tUFD0LvUfhUKXKNlVe6RbuNSYra6Aov8zBsurr6zI+Oi1xui2BOM84bo8r0se8CqXXnKds7wJXdHjS/9H/IsELJduqoOYQ80Sb29Itn1dkgeJjqtjXhcrml7u9ywyKEneg1YE/QsdpzSTTMUN9bY8r2/6ceaHLcQJbKb/Hrnqy8if+RBp+THjUO03vPGgWf1+9876jNCWwRAmqFr1BSY3yhrxP+VUHGyyTXSnF7mna3Ys0utCNDkfP4sKrR3kGDQCxTHIdpR0udy6DJlWidNM1SvUujbX0f/S/SYDGXWR+zcfN5QaHde6sgWIVw8ApMIA4t+OYNSPl0esW+Fjme+XKsyaSKhzu65LAP32N/zIrXau+lpft5/TNdwV+RuGU70kTzo7PfIfonQPNsj+p58WTlaZTcKYDUIqqVFD3CeWNPF551juzPesMjLVKpVvM7+4S8gwGZDSBkSguvBHhMM0WxxbNmRa7JldAu4N1h4ogfjZtkP0fYP6/IJp/YOeXsrSRQeGe1RLG4ABQxWOVXzxRKh7tjngYosQRDaK+PvUFgDlsYZ3DGUS9rcqsuVLplb+xOtcaJFBBr6NtcZ405nO5p7w9evug6VygnicnK23+z3NHIGcwNWR3FY7/gVLVOynVs8b2/QoXsts9iMFBIEuP1rXztGr5s1q95BmtWPmymho61dnm5DrC7UDUJR1MlnQH5vL/APP/J7ldU/SjOC6RGG7/MnfEhcZSdYU1rjqpbvgwjRizpYaO2VVFQ3d2mForIdhB9NS2BYpHGCnDlG15Ur0Lvqi+1pm+Zy8LraKd5kulk8Lj3iq9LdCkXz5OvUsvt+rlQqJLDjtYhZP+6FJaqnTYWEcikNNCl7Z9mV56/m4998R1Wr1onirtPdqdxrDJUzV8woEaOaZOxdXbSUM2d8pT4wP+j/6PNEeZtbPU2TxDDfUNWjLnTrUufVFLV0tNnWYXC51ttxutLbZ9n8rGfsSAGeOO26q+pVC2qMbaznjbPTPU++LhNpNXBi2/cPwnVbDpZbn0N57eMmi6HiqymmSx4th55Ztb/N1osBjBHS8b1bZLCoz4/JSWz/iLbvvHeWpZU68dJktb7P1+1W2+t1R5klOxGB5ASUZCjuI/O8RKcmcg/Z+4+f+Xcu1tUYMa/totbXu44SKtmfeQnr7rWj1rU6bOUmifvUZq8vZfUt6IYy190tbgOqzmVVm6bKLsmpvU/dL7MY3d0ReqZHf39G+BNho0fd0L1XX/JOyvYIoUbfZX5Y86Vn1Ilr5WpUotPjL1mnn3D3TTNX/XBEvOI4/7uEq3/LyftktII8Ah/OtzpSBWs+E4kDa8HpjNDe/9H/0P04bcR9PaL3r334zNH/kk8MKrAPWYVj95sW79y0VaazX/4L2kLff4qvLGnu5oBk+v7ejiUQZQjbpfPEJ9q28K9lTpHi/ZfNosl8bgaKNA09d4i7qfOCyojamy6Sra4QUn0KU+2y15+fYsytfSBz+rSy+4SdtuKh3+Watqw06OccM/F9qHbK7wb8T8fW29WrNqmTrqmzRhuy2VV1wYRG5eXp7a1zVr4aPPqqjE0i6p5UBOM3fkGfHslc/os/FVOapGve096m7rdN1v3JvSrMtQVFGsdGdPOA8ttxFEdRcUFah8RJWaFtYrr9BK+0ZSX6ZPZTXlVlnaNzr/UF9vRjWb1Kl9TbMyPXS7+Cb1iEup2MYEr9PWprpUb6br7s6qpTGrISNTmjy1WMUleaEt8vPzXQXkoUvpdJ8ydIS+CoNBsFZen4oLq+0X24OboU34i48Kxjrv7PpSfWahoS5TkUoLR9sGfu2yBY71v8BH/oWUefnJ0dS97E+69ryTtcoq3DGHSuN3/KFtgdNc7rUhfKpkgvpWXW3wWBrR8W/3F+UP/2gu9pvToEGTWfVn9cw40daU/0Ydp8LNLnU9rTAOOpVXOlp9zuilvzpdrUb5l865xsrm0SFeXwCKi2fmytuAwbKdGd37l79q/sJZWvDY05r31FNa1LIO6alSO5s9jLHp4x/7rE658k8+i/T7wz+p626+QraUnDYuppscnfL6M9dmOKeQVGqnU99n2wO0fNliLayf4+LEquZ+f5zXpz7/xldO1arWJa5vq6cbSda0NUR12uXQ/XTDLX9zOQHNoJogRyk/NaMtRm6rWauec+zXZqzXoqSWqIND9j/Kas0DatRaPz2pAwPa54DlLoepD76Rho+36mPNZsed3P50ms62tR+57wlMTJsZPypyoxX7PiliztaWFaqooEx5RQZiodUTZyJlnoAXCvLRNAw6I4y84Rf7oax6GS01ELPZIpWXbqry4s1UURKPw6sOdtj+zobnw8YRPuYCAwhqWnStzvvuMdrUVsNB+w5T2Q73K1swwrZ2k7IlY213L1fP45OUZXRtmwuVP/LTId6b0aBAk1n7V/U8ayQ6n4VTfq6CCV91eRYpm1dsQz9fi27fXRecN08nfvV0Tdnr3BCnz1IhEaX0SAndfv5lan7uBf3oT+eGih5qV+aCFrpvc/W60QoDI4Qewff4v0qr9f6PHq+t9jtAd190icG7Rivb1zhkQS5UpFeeD6TkKqVudWivDxymlfMNmpkvOwVY5E2rYD1l/JswbYpWzVlq5k1v8Jw3p4yfVVs1VDt9bD/ddN6lBg3QH/zzKUOPmWnL7XbUS88+6/wztDgYSlgqa2ugTYd+6uN66rr71NgUQUM6la75p9SgBw2lhHawmnPat2t8t1AdPQUGSodaO7rU3tWtfDerWcBgkEp8pNfu5M2ADfQy2wy1Q4aosNj1axs3P89QT/eEdydDR01XfmGB8mE9J8IvP0gKOlfe08RajXLE3UzWtW4JlrbES2fa1ZlZZ/8iDas8WnWV+2lU9WEhPPRafHf/dafp4Rt+o09+UBq74zn+Z5Wta5lRXWvpVqzuR91F20Qq2sESZ9ibS5w3BU1fx0z1PLRVGBYv2vwvyhv1UaU6F7imRtnof1yPXLqP7nta+tafqeia18z0gkee1LXf+ZFuuOufGms22XG3nTXvuSUqLSkNYYJzHHqdPCpvfe+TCpXp/+pu71C6t0uFBSUat8NUrZ29wj1ZgSuZuK7eMGnNf0mFW+bTY+Wawv8ja6a7ejVx/y3VsnydmudaXBfGPG5IkcFeTVmrRtWThql1SaOfEZTOjSPUu5oyjd93c7101cMqYjx1Iynd06sRW09Q/cylodN6I6IMlIU6iE2dUld7p6Z+cEctfXiOuhvaVVNUrGdXL9GlTS8SJdD0baVPf7FUo8eUqb1Fau1pV0dnlzpc5BI6T2OhAGfA9Ph+lzWMUuztcmnkiJGqKBtuNbLXT7NEyct3uxmYFkWFRSVqXj1XpRU1Kq8Y5jZivCjLmFGQEHno/sSyWgcHkG+us2bAbJDzkbcyBlJvX6+60y1q7lmiMTUf1biak1Rbvl3I/4Z82NpSr59/bpg++j5pyrYHqmCr253pxerLr1BewVB13u8MdJmt93pBeWVbhjRej94QNGSy6w4zsCumYNKvLGFOs0q10DrhGGnl73XzRV/Rgo6J+uI5BhHhnVSSSej+v16j33/iBPW4d6grGKuSsvJQEdP3nK45D8xWcZlBA9Pzo8cBKADHhcWfSoTpA6By5309aQ3fxgzz4jI3mu0cg8O3qFfrxX5umNDGUxLydQ5I/McWGfe+bdW2ZK2a59gWK8CX/HJ83apYT9gx1ZPr1LrYoAkzFfqfNBiitkuGlGjsflto1uUGTQUjKrmbgyE/DuAP3951MGNZqLfXJ5jOPbXjgO/AdH5WV1ubJh+9k5oeWqAVDWv1h2VPqqmrI8SwENQXzyzWlltUqKGpR80O29wVmbrIIOnj6CwXOp02g8X9mIaMllUo2xKujpFDx6m4oNyMZcDkF/jc7QNY4AnA4w6wsLxc7atnqqZukjvFwtDW+QYV7Zfy0RxnKUR4tzkVFhoYiYpyCwGa0P9Y+uDrZ1sCdqbX+FiqaTXf1PiRHw4hAQ+U8OT3Th6rw7Zbrq22Hqui9yw04pcZOLa5sgXqetiot7pZclDGOXj9en1D0HQ96Mxa38sf9RnbMBcYMPMNmHHS8l/qhvO/qaaa9+v4r/wzAAVKALNu0XIdtdk0i/AOa++loaJgeX6cH3zU+3TzdTeqxD/YG9D0/6ep+XHEh//Ep4/Jc5k6tc02e2jm849aQJfYL5EmkUX4H130j34J5Tl2u/b75Ie0fNY8LXhyZlBLYm8GEe/VFHMT72asg4zfenOtnrHAVRN70o0hm8oaUjtcu3zhA/rH939t1dQNtZFEHWy5+x566eHHgtr0WkSJYqkCbMIxkztDRT305BP0nYvO0wu9TSEUdOIX87Xf+8rV2iyta0UNs/ppqWLed7tGyQJoOm3sAMQhI90zl/meE+01b44eNsEgKbOE4UW2JYuZPd+SMA+w0Cm68ypi4MBplRZXq2ntsxo6cscwhaowSMx837fKTUfouGAl378sJ/aL/QPl8X/zWp+lTx9qG2VDhevLU9odWUe2UU1rlmvnqfeqtmb6eqmTaCE/+9YB2nf8Xdpq2xEqfs8Ka4+LDFZLxvb56n5yW6VczpK9Yu29Fr0unHpePja+3a/aSgUApmOBExtuCfMH3X7ZN1Vf9fEAmATJZAjAfP/DH9dOE8eqoiuj0WaIErM2P46ldsV2+SUlwYIpDrAptSsO9wgT/fAptx8/rrhHyHi32PH7f+XhfwxXFs44j/+Lwy/ejdc8p6DUKbq7jPeT2LjX/pFnXPz5zF1u9On33ZhfsdWhfOeBp298GjFOYXFSsxv+cvf9nxCF4azYDU33UKRql7PNVx887yfrAbPre6ULrinT7nuUaPGSDs1fbpWnNa1C4xF+hUlQw5pXWk1bJVVbsgzfxB2I+bx1nVS/wudNBVq7rEUrli9Td2eHikvzXc/lZvB8MzQMno3MbXbJ9OWbuXuUTjPfjG7NzJ6BoQ0QgwO/MCIXXNbgy1MRAPQRyVRoV5Rv/rFUKi4qUJmBVprvtrWqXeZM11jdmjB2B72wcl89+vwxgS/p8gAaKvXXfnyn7lj0Ac1+abV6n5muVPEmBs4qpaq3UeHUX4QZXYH/X4deEzR9nbPVt+TqcLd4++cscpa61iptLD2lp244XS917qZPn3HFqxC8Z0W17vr7X7SljdsCN1kQs6GxkCLIC64Qz8XxaD9MeQz/5C7+XBfaHzmRXMeYcZgg35WEX/xPVZMGdwmHi/FiXNKMz+B54Z67zIKQRn844vafb+iSX7wudIOF4yvuDeYXw+fnuRw2kPufuTE/wjueufiVzyc/+MS65gejUDtIGGqizKFu0CJdLXN5jk75ap4+/+Vyq1ppzV7SrnXN6SBZXEQzmI9Wu9DcGm03V0+0dBkrNS23nfqE+8/HpVVzpIbV0rKlaS2c26iFL7fqqSdW6a7bZ+uFp2cok+lUcXGpVTdLLQOixxBJO+Fe61apwlL1pruCmkW/jsRH4c0aKEEmYkg7M1mrTllnCD0FCZRvyVVg4OTnuVOw7VCY7w7CbVqS7y4uv0yllnaEHlGzg8pHtOje58cHHS7yqZ2f/61zbtD1z26l5fPnqW/28Wb08Up1zFf+hK8of8hWyiy6OuDgteg1QdP9xKZBhSza4hYrjU1+hgtsGbz0zn1105Nl+vIPHw6ITQCTbu/SNB8r2ltVY8BE1oUhYXKYn8aNfvwvKgY0+MdfcjcyPfFiCjmIhLtcxxRcda6kxC8JkQAjxo3pxev+FCNE3Eu5N8oriOfEjr+YIj/CvvYvpptnpufq9cO93o98xFiFtqRjzfT/uBpsmgB3YHhKCpE+dUT/jQ6A6VzucjZaJfuJZmoWw0SmbXeSLvprsbbfrlCzFndo+ZqeKFUMFvNskCwksM6gKLJxP8SAWen+c8GjBpAljh8jXrQX2pVZRSt1n8ogQFnuWG6/5vY+3XffAs15+Xkb/UPUmel1RxsHZrAH09li9famfYwGfg/SyM9M255hXBIA9dl4AUDhnRh6oAEUBw1cm85wgdsCla/Qrsh8gQ1VYlWvrMCSx/fK/IzRI7fXYwunWLJ1Bn4FoNB3fjdDl95uc2LuFUo13mTbxhnvWqKirR9yoXM4eA16FWjSy34TJs2pckvl1R2ivnS98kpGq+OpPXTZ9dLXz4+VDmIDcl3K6RWlmuqGKQyDlrEZI1vByAMZOvoWlKIuEA4ffpG5+8MkfmSQuLB3DBPY3xUU0x7INMmRswSenAMVrqKjwHlm2EJXaMJeHJOwMWa8fr1foXu/+JS39iuwoZBfgrQa6MuTYfP0AJ83+IU6oE6SvMYj7QJTMPYE1Vo1u1ULdYldQid8Xvry10rV1JjRi4u71WNDn8nF9MPELTTvtBoYLY3SiG2sYKwxWB62ymK1pbTCnbId9k1Xq0FlqbNslu/PkBa+IC1d4PBtEXS8ty1z2KXL0nr2scdUVl4b1DTsn26rXoGJzehc91g9y9j1+j4qGhkBJ30OF9Qqq1h9uRFSbJkgdczZ+ZY0eXZwSBESHOAE1c0qm9u5rNAKuNMYVrGFZqzYIZQvdClOk/J+4vsZ/fMe22kzjnY6fhbvhxyncPzpSvk0vexXDvVKehVoemed5gRtCG1+o/pYIVngrmTF7/Svm+Zq35NuV5krKzwQwJg2d81s6gznW1cmMZqShoxsBZtH5o7nsZHzrZpwFsNwPwIihkrYMV5HWTCQie3nFo6pJmGT0DHVGC/Klegb/Uk7OLdoVPHiwARn8bnJebx+PYde/Vr+g3X5Bk0Bdk3IY/QDLDXj6zTpgB2twjS/IvyrnfNtpkjKDRNElgcw9MyoY2ZuX/9AT+sZtfjK6lWd9PuL87XLe4q0eFmnlq5Nm9HMhA7MuieM/kL3VGteMrMPk+rGGQz3RwBZ41GxwQStnCvNsXq23FKo3apZl8HElComF7TZxllqAL34iCWNTaZip8fw9MqGrJYtnO9nFdmmsVwxg7e0dihtqR9Gwlx+ugy4usdSqMcGEyNjuIxLg82TdUYzLjPvcuBRBiVgw8AdBhXrcArsaJ8iVLec7YPqVurnDimZqheXbUcEk7so52Oy1c3CrS7USy5LZtaHwhKWvq6Fyp90bljG0zvr1StBXwGa3oVnGCRm/KH7KVvq1KyPYpAtfvQMzeuYqt3ee2B4EKCBjpkwSWN8zA+GJhpdwu79zRmPMGFkfNik0IZ8AE9whE7+x/4yho+p9F8N8DHDJMoJvvE5MWTS48b/MUz0j4DmTr4N+SitkpBJ6CT86zt+vG94rXtv7mJ5g07u3izx5/ndatJpi2/XcXdcqAlbu3sPrLJh/H6HihgbL0ImUoQMgx1N6jJgnufVQ6Add07p938sCIy9YHmP6i0NeHNPZF44MguqF9tliTR66xhnrqULIMqzXeMm0zrfm/98DFdoENkkCSs9yAcsEUb7nV6xVTQGERbPjJKHNErNgHNmrXLdR8bv7O5WafVwZWwwWWMzkKyeGRg9ToNRMICPyhYBxTVSyLzncEicIIFcE9QSaA8L2JwZpuBQv/kGC6pbYV6xJY8d6lpBqapt9C9Y9fEANghePu7ET+uW54epaal7iLan7OsM9a5R4SY/DGHAxUCK9Z6j9KJfhMIXTj3P3ccCqzFVyiz4sm78l/Tp77r7MCFhQPU//niRFixZ6AbChqEhI/sm/V8ERfKLTJncL3CNckzivOr++ivYIzI1ZxE6Pg/qUf8v+hMjkS68L86FDX6xR0/SCRVKjxTiJC6GTZ73ei6k40YhtVfGH4yLeStwg+djV/kc/5gTM3wXerGZ84UF9kMGbhg/hicnyYhQpChheu0qHO8JLdcf9XLunlWQT9ng/0KeVq9OafmyjLrcpZeax2hr86EKDIiWVe7hrY6M3MySZa2Z/Wmr9QYFK415yhxft1iK2KYPHuHpjgtO6PHxYwAMZuzrBfIGmoEF0Joa4v1OS6O2tiZ3zLax1i63mjdE3U6gN80AgcHvBNMMGxsiGatoDBZkDBCOSCFUtCB5AI3v9/nBKFlRrjpHvsfz87IuHNI8BxyOxQZTsfmm2MApzFup5rYbc3UYaf9PPaFHn3UdzP2M81erbO9qFYz5Yhh+Ti/8RS5UpPWxMvVXh0rIq9xMrJRTxraL9buFT1+lgk0OVm11yfrRMui0z3/GUoaXlbE5+5kusno8Rmbuv+JoprFNQ7/PPfrJyPQJk/OfcFEyJPcSZuFIRXAVpU1kpP5nRiYk3eTJr3SOB8MG9SyGSH79eYy/5NkDHeHeuqSJLqgRYTCk369WE3RW6SR9IzVKRVnebcWn9buk9JTA/GHgQYCFqTkwVZXjXKd5umXA6NjZP5J227lAq9dltHCNuRl1yf6Eh8nybXOsszTAkK+x2tBs8Ky0hEAVszAMI2eLDRhULGs4RDHz2sG8pOHMwBJIBBI1izhvdr6JH8BZbeCgwaDCdXezbMSqWVO78mzwpDOWHmG0rM9SJs9xfGabpTdIlFQEiR+QdtkBC8PRpBuc6yBIHZ9jB/WhXzpcX57ryvfCi3K3c+iAfCzMKzF4ClVRPM2g+Q65NwG+Pu224yZ6bt12al49X6nWZ5Rnvz7L/7xhHw64yNT/PRd+AGjSC78ZrgrGfFOZniUWc5XKLvuZ/mWJdeypV+dCRTrz2A9rmo9Jvxcbn0aloRMm5odfBEJkSs79s3rkOvRVtCliKjFkkl60QKJvEjfCyc6gSVKPjETM6OJ59CVMIm1wgCxcF/gOKlK4fqWL8frT2tCFe+6h1udlI12I74ZHxXzlvayGa5JG20IkD6+8R9kJD8Vr80lwjCwxpEz39TdLl6cGzBv72W9TqhuS0pqWtJbamC9ClYKhA+rM0JYa9bZPqm27FBk0zbZP6m3Ul/gcCWOhoGUvRnULAhxEZXQth1lzUwTgekYyheTxgNl8AHiArMeYLass06pVqzR07Hj1drUH8MeXkgCGKD73A5A2ESA43u9Y+hhIgCdtMASVDRD1FfgZUT3LWsIw3SbFULXrC70v1LjbK2WRUWBpU2DjLJV5TBWlu6up7ZehTAm97/hr9Kg7iMxyA8q2fKpzmQpGfzWUJb3w67lQA8qabVwYSps39BClelzx+Xla/tL56qsaryHVVc5g//SYm6/+u9WyKkemASOTwUZRSEaf6BfPYqPH68CYxVH1SHpuChaYiXvhGpeAJ6Yw8Nf/joX7HGOImAYx+SVP7o+X5Aj1EMaPz0liJbknVsjlAJf4587dQPHpA/0H62L8fHfd8ar/XszPQL94HmuWV4D8IlDoBxPA8FbsH5qr59Tsu5F++quUit2eTS1Z1Vs9Yt5ksDkCY5onLEXWLo5Dya5OdTnq2tkGT25krKNeWjFfqjBgghSBN0jY56hhSJSEeeC7JAwuPMb3E6+QZ18wolZSOUzNDWtUVjskGvchPVQs7JQoNQEKqOR9TngpajAwpogUCgMBDg1QorSxrLUYSwdVzc9EOgWxhsSJkgd1rcDPiNOzSlRSuI1S3X9Qb+elvu9H+VnYNjtsO1mz1taoecVjTrjZ0rJdqbJJ1ryqlG1YFMJCodzp5ecGmZ1Xd5hSaSre/UPro3r2BWnXQ75BEKOXLEkXnPxlTQzzksNeIjnW4YzE+psYtuWK/zFMv+xgzli8zw925W4/OAjX35P3/2I4h8fQW38vPi3GjjEHSq9k/C3GzqVo9QrgxRQGPiMBXMx//6+focOTXMkx7ED/wTri+z/Wce4a//4cxJz211xkKMLGQdLEF/+sKm29XakX9bgwHCL99OduTie/zoBZY2lRgv1if3pVjkx9qbdKNsTqGEDK2JZZYYnChEvs6Y5WX5tHSh0uxLODj2F8LkJu+Ed6+AMg3wMoeMMqIaj/sbh3yCiD1/bQtrtN09wZMzRu6hbqbusINgqJRLsEO8ZAAEDYMvblnFlgMHQYFHDqUWXLASoAy3HImM+DnWPA8BIV4IWu2mFJB25NZa0SW2/Myx+q8opvu+ZeUHvLt14hbabu+g0tXuqThuucpiVY9woVDD9RmEkBJyZyrb6VF4ZS5g85Wn2Z+tATdq+4Qs8+L+20z8nrKwG65E+/VqXlddKw/JIGT/ziMTJpZE2uYshwL/SykS04xrOEYfi/PqRdTCOmE8MNHAiIIWM4nsAZDdEfmx56oFRyDOu1iGzOgVS8h4uQf7VL7sc4ceQN/yTdjXPo23lWEePz8SMdck2/GJmIpokdUQyHD+Ntreo0RNZpXv1Sa9w9ukwz3fRxSBn6xa+wP1JqRMK4/wM8qEgwN42IFGk0IKrMyObE8DJzmTtHbBpeGmbM5CtejoBJCPWEjYMCc8ELOX4Il1Q3JqpVPfOkevy8HmccDSltl/F9lgvwIrKqrlSjJo22WogUcEAze9pog8HDaBgow5Zxp0gdABLslrSNCnDR5wygxiF9oi3jMM4EtgzADdIq2EJ+qOMFEFJArHnGj91u9AqUI2WpXFL+E4e/2ZmnPJRI2vuIr+vJGVJv/bUO5/C9TcqrsfbF88GJiSLHnS95TsW2IRCr7dYsvENjttgiBALpqGYv3H6/rOoGfRy2jIzJ//6rfjZOGhuGiFDgGBjZLZkwMj4xRmSeJG5MM7p4F18klMOF0avooqLEeZwdQIHidXw2uUjuEzc81/lH0sQrfF/f9cdMnH+uC36vvjc4F+wp6yrEhvCLcjvmOYSxI98d6jLzpM2XhVpoyJytx3SFFulr916hnxk+LwxQyX71a/8z87S3GzDWsINKZi8AgzGbb/5hZjIvKFksRmOutQ2DFpNvpkDKLAUw5SGZwCjwUjjAbzAo/j6GnMNIBov5M5zbO/iHSyKZ4NM252Xhi1n98ZvP65rfzdDjdy1y+Xs0dFRN4CXSJHJ4qemHRsnCPDRLHz8sGPn2AwR95k1smggmg8RPi+9ysG0AH0ACUM4FGfM9smIsBfsna7AGdSyvQvl9T9jO21mZ9DzHBHB9qnXZm7JD1Fr/sm2fFj+bsXle5kScQHnqtfXX4/SLR5kZSq3HuVvomquX5klb7nxUCBQfK91267VhCmaYgOeGTDubHFmYRcNm3PdFX9YWcs4gKFddDtfjY7ddj3u/wtz9Ll+zjpA+s3P9dXr9eZf9o188djhsp/o6SLMtXBOvR+0+b3cqHSFeTzh2+JmdwZ/rmC5HW6VWhvusN3Ce+CXHDV1Me6CfjVdbtJn16W6cI05fZ5eZmBnbreGafHcHGdLpszaft1vtytNXdafdAzpV9+pzNbfrzp0e1647SttsLm0+xaqE7ZHRIy01qqXPn+IGMvd19KS03Joai8Jg4sCHHHHmoV5jrHSopQCM1m4p4Gvbx8HVL3NYM3ls7dwRBOTSgEIvbQejcz8Ai6Nd6O3tAAz8Gh/qJHzOSFztcNS1rF54eLl+f8Yz+tPZt2vx3DUaObbGNhZL1/PVg5Rx+GCv+ZxZzH3OXNY8k7WYDBKGZzndaNPxbOwYzrBzAIzjASyAYL+ovTmuw9MV8Ry6vKzDpNLX+37/OiJo/Haf05q1Pul8xsDpdnmtHJZbgBga4CWVWfP3bM8LH1Le8MNVMO5M31glNd+sC39/kY75xhOqHbVTQD5DzcfnjVRlxRCVlJQo3ZUx89t+cPfFECpvXxmVQgrk+7okv1hl9isK9wrUYvme9Mzb/+ZoPXPC31QyrCraB858NNJcCK4dBn97+Iz79vF9XLqhU+NO2VUrLnxShVUlLjhhIP8P+Uxayz6+l5zzn5A9a1o1/fcfVON989Vwx1zllcT+fUPqj/lKyvakVbP/NLU8sUhZg5c8bgxlza3Fk6o14fsH6fn9z1fRmCrr5ExrR0FAr89qREG5Dn/2l1rVEUfCRrij22uq+7bALZakZuyMmRyVjsczHNxiCbLfMdKLNt5Z2wIxlZ4e1lUY1LAuRtAMMkcPQ8orzSvsV0dhkS4Ln3VaVsuIglpVYBckDEDwkfRCcAegmpFOWdtBrMVvMwDHjcag9nOc0eUrpQqnWWXH3DQkGxINu4e4pAHAehyvx532QR+brj0O3UoNq7pUUuSO2czKGpzwgrJoiF549iJNmbynqqqmutxmeScSdAgfWagY7Uz7hHN0DorNuY9+MLI8LFZ0CeBDajtlnRJ+6eurV0HJr5x3yy00qmfu0pLbD9AhRx6pbO1xrpRq9a2+Qj3LL1HJ1n9XqmfBWdnMoh+oYPzXlKra08m5r178E/3pj0/oy5dEUZm8m5no456lo8Oah1bXEupDVImiqoKCURMUiZRmWW1g+HOxe37o59rBV71h7sAx9/1UV+79BZWp2ldRHeFHGq5OH3le9KXwEOc8p0tN2uXo4/XEtVc6rSr7Uvj+MIluChEjuSI1zjtsMB9+yTlafPejmvWXO51XFM7+OG9GacuG6e/fR0tufMpnlhj+DZbiU9IauslE7Xnd13TZDse42ersQx/Iy8lMWH/0Qz1oVYzdESwxzJSHW2teaUO6BAbEfjBaAuM5QRiRuV67HWTblVdr9ndfFpgXhqHXphLZcLHLEqjKoMmY85FES2zLACaAyEvL+c/F0TPqPO14jL75VgQQnqRHcX0NYNJpSycH+OOPb9a2WxzqG6+kltZVeuzpG/XS3Jd0zwO/0fwl0hg/n2ezoA0AkT+A3+m8l5YV6LM/fq8WOyNTNtnP96kD81V+aZhPlm/UIlACpwEOQGK/AkBi3mROHwvZCkMezZtUuEGAhQSQgpXkiksBDirQlEpVWbt6Uvmlf/VV5PUms+zfvpLSp040QMedEzDQ1zlH6QXfUv7EsxzXFyFyyeZBh2NCR1vjbOXnxuYTmnXvI8J25E06hjQv35LVGhz5X20GvEZL3Ogv6zqt1KaGxZc1TseZFe7RWk3VUI3x+fixY32s1mgN0QjDbJjdcF/XGASVKndKZQZEXOkCU7MSh5Uw+HCPJcKsnYkrZAgb4xT5yHU84seEkhiX1SXxXmlQBYqsL/Snyf0kjTd2PJdpQHG1ymuHeT3H2p8Cnl9UHJiFFUVx35dCM2e+an3/MtspCWCYpnL4TtaxfblqeWSuAAI42QRPwHioZ11m6mTYF8AkRPBw6TQAE+tZkiSKLAHgS6QIvf5Iq3u9BiAzAxgQABQ4NtDodbgea7ZdvsfEzS77FQ+J/sPrJvOEV1FV5UgduPdJOu0zv9aNV2T14v1Zfebj56rU+uFsS8Ruxw3qnZ8NaPONxNmLHtSyVevU3rXaZbUWY+bvY2lzmCHt57ExvqUPKli0f7B3GCjgSFmZsxbtIGwfStvnWkeCZ50WdcMIW59bI5t+QqnuP/vBmzhtJrQSr0817kcZ0OhuW+pHdISh57ySaaFuU52zbfJ3vxwqNa9ouG92upaa1drUrPIRVp5NoAya8egDZmhHckZYFBT7fX5kK88AqNCFmu9mly4yXK7WttrPAIElTjJcZmqZTrBu/mndpYptt9XnLYdOtM7+devs39Oj+rWecZyXtMI6Pb3tCKcHGyN94gBB8kz3MOH59B9JDigPZ9EnVlV0SK0oC6Pc4ZohZzgwnPsXByRiD/tmjjTjWvbBx4kuPh95F3Rx1yuLsrAJe9wD0uE/ruWuDavHOTpgB6mNN/K2P5lqH1ZXwxjOBK2CAsA2viOturWZ2V0t4QYdbfwXpQR+2CzdZvRw6XsMBY+YbmCaQdLu5ZlPxsvOidvFBWY1de75a6TKWqtZBgfHUZvajvL93Q4r00En1OhjpxksTjtNYoOkYw4/XVefX68nbmvUHrscp9m2nbsMHjqE1saMttziYHeqE1RZPi6AgY4ghch0gVLWKWfN/qvqW2a4DQ0EV0A0/CmT65TrPNepQQUnwLrER4XH9fVh6yCGqUCjv+gQZQoPNDDMYVmLQVMYjOBYsqm6bXuyuXrWwFFBdajzvm6DJtuzPBh/Yf5Obhd/GmrYSHdxA2jVOnZ/sRj08yKrOR3HGWJYAIzfWSE7xNLiIoOl0Yyw1sw/1Wg+ytKl2AbuhZqmv9btq78M2VN3Fu+jS2t312VD9tDJFdN0qFW+SXmlBkxDANCHdaOO1826QbM1MoAHpY6nwn5+dtBRE0aMzB+BFZWlBCL9PhDhcgqguQvdlXtcQzH0K3/9abzSRf05xnmt+xu6mFZUD+M7F6tiYTCBAY3whsJyuc119xJZCbS9GZTh4kVWBGBmDHdUmvhcSkMq7qGt6pSwpY97YdrbvPEKSsoX1qC4XYM6FjMSpMQI27cTdzZIDLxyqxIFVs9YmTnagNrELDBxL2nzfaVDThijvQ4brx32m6Ixk92llVWps5t3JDxzg4cOgkpLavSNL1yqmZY+m07dOcyUpk+oLB+pcWN3USfGDuQOLqhHRlVvV4u23OZLqqvdQT22eQBGeF/j2kgGCGK/4pp1lrgfX1y6Flw5ACxIJF/2uSKyfYwUuzdwuKz5HmIzFqi4ajN1Y/jbP5Vx5gyygLeeZTy13vpurY09FGLk8dpQgMraESFyQquff9mQiSiF6WoMCMatfqo5lhJztdrnR1nJKjAbfMiK3MctbfaunaZtXPPb7vo+HXTIiTp2n8P10QOO1P7vPVDH7X2EPrn74fr+e4/VH3f7iK7f+TjN3PZUZaeeoRlDj9SXije3XJqnw3WtVbvFBg/2C0A1G/r5iZTAL2FKWCk5j9KFcP1hqY5wRnz03xAyhuMs+THShwRI4g50hAzvWVwP/Da8/1ou/iKhV4fxxTSjiXxYJB3KdI4lb0JT3dNPGm7AWGPgLXogZz7YKk4olNT9R9rtNNrM3m0wBBXdYQL/EobC5vyIg5o1xOmunWs+MHcxGZPbvWYMBAX2UiXLARxmyHgDZ6z9eNnp5xRZnexoyaqjrVvtzd2O4whm1qLS0tCJdnSa+d4GHfTeT6vD+WDgIW0eTGeMZowoJ460CC9BXQZ4vzfTpm72iDKY6HQoeHyHQ5ZyoHCtU3yGoMM7IB+DUDDxZiyUPMQBkHGkLZWKoAkPMhWX14Y8qYfd33oMKtuvRWOs0q1z2ztyPmsI+LAOY2o9DdYbySCKlpPI9SItK5ZYPbON4cyidN2gpbrCsuFX2l7t5Scou/lZOnLqodr+wCM1/ugPqvoTB6vm8H1V+IH3KL/TmXSDawwy3jJ/E8v+Ce4eJ+Ny55u4hSa6m5uQr60mTtIPJu2ndRNO10sVR+oCPWfpc602sVwLrO6KIleR7Z22ibP45iUyMr8ol3D4kYXI9OE9Uw404Tp3xLVbjdzkI7tpxI6T3fevsB++sSpxXAVJ5XoZ/C+0EU1sxyKsPtsGDL9nrIjm6Xw96zuR2OllWzPuCrcVnS2MhNGd5zZh6gs2DCCAYNgaSwfUNvzDc3gQDOF74ZQj8X0TcAyb4nSbpTWLrdq1BN4L72fWA9LpMFCQfLkBgFVW2OYrsQ1rkVfKSITD1q9p1oIX5oeRuy4ml70N6sZY8jOZEBqITQQ5hg4a49yF8F8YCXRZkCChVwAQZNiF457PfC+qvmEGQU5lC8Dz/bAeJwxNo75F58R9DwDmJFuOUsXmVeo144ZwZWRt76vAPRl1SYCsrf48tpcNc7rXhAbIZy3rALp2ySKDpFElPX36XttzliVlypZ9XqdN3Udlk9xFDXFSU1GAGRpxZpjJXG0OQKYdub3B4DD0HmMNkKFOe5ORPrebyq7o5pLJY6LfeOsGE53OmHL1DU9rs1EjlR39VX0yNUHvtZlcjUldwC42sLrzGRys7Uf5P34cQ8HCdbwTWTd3DAwf7/b7ptSK3bXuQe1x1Zk64Mlf64DLvm9p2uA7MZ2YFm2UpMn/13dJrGjJ8EN+0ahpdduixucF2zCz/eSE9tnaur3bb61Nm7DexeR2CqspE2DgMMhHutrazdwBWHYBIHCOA4SXlThfQhxJB4mDRBnK+zobqSwaa18pNa5wx8jRz2Wku9Ouo8E9u7PWWt+thXOWa/6sRVowa7GaVjSqsqZaU7aeGMCG5H47RMdM3kpKeA9DrVh1oiyu51B3vh9Fqa9Bv3059vnZqLtBfbMvc9eC7YIjRdK1GArvaoyqADoDJU678Z+RFDYnNE+lspZeA6iwqCakyb7kjOKx/XKKDcxNobTMz4kfTXJDpi1qnWAW5XYAjW5vt0E/Wr/snKd7e/bTY0M/a6Z3F1Xtlh3usLVugXK3bLkTrrJ/mUuEEl7la7rCsZYo5b7mE2k11g26fTzj69KpX5Wa3ZLjAYxVwiluTQA0cbjyxjjOqAr1DmnT78YcoW8WbqGjdbvWNdSHQYKQUbv4PzYcTBopUY1iIYFRwsTBJgkNzXWM54xp2qEHKb82x6mmCZ88wP971scjZJBPbrD+9F7vF4EIM0S4oGljvWTUY87u7Gg3a6R0sSGT0ARXAdW1yFKglP4m54+EqKx2NeYAgcqUsgZTOzE0Wexl/aBQTnoRn+PHs3P8Ef/ZhblmOUmCnVPuKi5zP8U8NGyZIW6CMhv+NjmCY4bziBFDNXraGE2bPlFTtpygWrclWzKlu2Emhpb7Qf9WqL29LUjCorJSl5Fh4Vy9ImV8A1AhoQEBtkpYChGWFAAE24T4+TaDAew3ECQx96h1xw/1zxHJ5B+cEVW4XPuEuK7QAZTNL4v1jfnCd2TYuzZHgWOyGFugydlRr7ue4Blwtp7O0HTtbruiVZ/U3uWbqa/KCVWUuXXNvGFzX+fUOAndHud0dfAfTyh2S7I8sNbgGuLwtPo2bp1p74sBLrjeUsaij6/2DHNLjfI5IJpo3cPAKRxVq76aTv14xMH6rCZqp6tPcaxijQuD3Chd8ZcwamRmas6PCuehmOHK7OLHO6MGTgxBDrhv1ezF/pGrhLBAYqoxJSiqZjHt1/qFMKFRIlj4RcD0BcO/x3Vd0NVnhbN/oRhqzo7TDBiGll1VVKGjhSzTz9RZ+LJGBW+GhMdYymBaIGEgOuIQnAB2VD/HkBYBNqDQur7Bd7aCKQv4nH542ek4JMvzasoLQ56zHZaOtjWQkISnz0F1K3GThThvg7psWMG4xaWx5WBm1GcAExS1+BfKxwtKCskS7bCKGNBw1/orZQI4/NikgwGAjO8DNFoxtIX9CBfD+kZQ2cwPJP4KcgjKmG52HTpmsKPoqGPdOBNmPNQzbqbXxIrfgNZYwz9EOyu/xAgcaZHGa+dkx3vUOhyynyEZUBkG+cmajxQU2IZZf/bi7dNKy/4/fUL682+kMz/u7qrNgDIIeQnAa+Th7lqHW4+Y6O5vDFKnVpmh3frTyKNtB6R0lK7TwbpSC9TEmF6oqIRhI3GeMDH/E0g5z24MXobh12WVs0FzfVag+kVz9PKP/xZiQ7dveortuFEOl6SWS4m4IT6/gfeiA4TAJRIqGYBhiJnRMhu6bsgFyxdohq8T2msHV4HbpWmt28aCOrShE0MqVFubDcauWwtw8G5l+FTfg9HtDwMDkqC3+0j7BW0m8SMt/tkvnDtrvOagX0QNonnC2/8ky76m9+4FNBY7fK2BOoMhg0rjjDHKxBwv4nYyF+dtUF/ateV0yqzaA0ikGJlEMvBCkwJhR9LGQR2jJ0A7ch4hfJE06ydyUgDfCxM9fQKwmKVPfgFKnPVMLI78510QAwQDKZd476KQHuXM0him2N2yc2ZepW/YOMo08MhX0d5if9uu8JKpZ3GHepa5oqhVdAfmQfRydKvTPdH19Lr0DNXxoPCGzGHSdrzRIg6lXGoOKfVxtLnChqZeWhoki+W9rw3KWoMIvWSk7aBRw5RfZyk0PKt/ahudprE6QkOs3jyhLTRStbaxqD7YGKalWAlTU92xqaH4rgbjslPrtP81P9Rnss+qdEyFU6jTs2depktSO+vPdi2zVzls7F0GEqM5eUmLvQbFp0ZyyUOlMyePMblg/Fv3+s0/r4oBTMNQicyXa1x8NNoQGwb2SY8TGD3B1eUqo4sKLxOtSjEEDWuFVxgOy/sYGhY/KOjvdqEt8eQ8l2YAis8DuByAsOHDwlDuCPjQtHmRjR/edBZhJMu9OuliUxdZm8jw9vNtUFtHK5hUidsayUDi4bWCwRGGi8lkKJzPebBzg/1CphgtY9Ea98lVlOk+htGRfqmSCWlxF4rpApdg73CdK/erCHFq7Subble2/eFQZ9SDPZeqe9UvlWm4KPZQr0Hsy9jiZoeJ8kZaG7ea1TzH1mO7RWuXwcI8iA63KOPVjT7Pc0V2InFobT+EvXxqrGMMRWF2TTMIDrBYzoe+0dRiW8aShe1Rmjqs+rnFqgGNG22UQTPO97CLRpdrStF47auhOl6bGMwlBs0f9Bs9qmGWCxEoUa5QlOQq/qI/e2ZRcDazGHl0/NDU2M/sGSq81CpfrSYZjpMswdg1pz928oPLBqa64Y92ZYSHBqJBaEbYKpniumTdKj3xaP8Q85bWQttcdR0WttR/4AEjhCoaYYDQD4VG9T2kC+9Q+D4pKgrPguGI4yyFMDB8LLud/yUShGuCoUWTPvGSaDgoHP2PZhtaN8L9n09CaoSPjIdNiB+jU6iVrWxJ8zZozbrl4blllU7MnSn2R2ROMgkAuGsm9wEMBYniH/XLGW0Z7BzfD+oY951HQkTpQzjf9F+I58pksIDCB5uHoy9fk1xZmXUXK73yB86TAzpcrjb8ZzGUTbvnf53I66zEVJqVsi5UZpWz2+FsWI/obe9yL2g9l9e6SBxLmew6t+jjC8z0QzT3kRm6/oI/6ZdfPkU/P+EI/eZjR+v6s8+Os/k6DbYOAwTd4sUl9jNAkEQjbH3Sjc22H6VZZFXu0ZXu+gyimgpN3G0Hl4U+W5piO4uzmzRPzCGGaWMhYsPi+uVMv7yBywDGzcM/rhlnX6gXv/sXp5kMAjg/wb0WGQ50ArHmXkUx9QgVfjQSYGFONe9keNd17eonQyio0kWttlBla1c25UuYH6YtxwR0P4Ggpo3RgGvcdyBVko8dwL9EAQDhmqxxHjvscA3vccGRF6asb2EeGjYRu8yEgHZJR47SMLS2xAIlqjOkBfMyNR8G5T0FXkUFlga+3Rtmkr51amtbHRi7eiijXPSxUQJERo62DdNbXALnzy2Iv/+RVwAWJY3PDRjuM+0GMIQXnAFAEUiEQ7pQyhCO9PyQMEqHvvo6FDoybof8DGx6e4TMvA4x14pJ6/f3PaV/ph/SDavvUXNXu1rXdijdZLbttube3qn2lxcpVe0e4z2b60s//pzu3bRDZR97n/b5zY/0vj+drx1/fLbm1LkCnl1kKWXQMP0ANW2sJVCj1bLVjXFw4fnF0tYTnalSdf/6u+q9y+rMjTOcEXNYZb52rtnWxW63rMgEVQ26Qs+pJqhTVEdYXeEChqVMdqGKwjFyVZQ6vWu7NfcHt6jccmo997zK9VOsIvu9Dp8AZJou5iCqY8H4D8eMpXWHZg1YNOZqUquFM0PISfWj0cLAo8ebIfHP3eAl5qRt3c+4moKXs0EvuR44+CWEXy4ePBVG1ZznpcZr47w4vNzk4+IX3JkarJgJMC6adU11ngV9rXv4XsdFppKf2KMzhAtDkqe0UUeeet7mSMCK1S8GdbG82j2Inxbz7e7GYiWfG1zxTB/DiFk4g+Fd0wCEHxVhYl7iiMoxam5croqy0tAGYWQtJ26RPMnunVRMmLfmUzrT8NhB0Cvq+Y1ole2Zu/W8HlSzHrE18LAh9HD3i64wJtL5wQZNilVPKNtsrrV4rQ76+td0koFy8A/P0Haf/6i2+OyHNe2LH9FJd9yip++9M6h2arEqh5RaaBG/ysy0xqChw2eKrZXq1tPOcian2A1X67JHpDkOl1ek2q23sIzJM7Pn2cIx4ExX6UX3wGzakahOVANFDEpZuGIqTRgmcmNH1Yu5snS3NEME0qtdkgqgs0+bjy5mvO6/h60UjzQCzZL0aMgcZhik9ESeO4gclTFC73TW2Yt9wqBga7oVN5nic0xEPGl0+1fYpOtzuDz0K1N4jgsFPyQACczPuY/Bng4JGBiOs9J9Tomras0qaYHBstKgYfSs/iWHdV54dkVpSnUVw+M0FUASnBOw1CFrgJnMMH1/8dwVtrdSau7vA94S1TfWhyapqi0OmkxApB1DzkGN4tx1F46Aw/7UapgxYD+KWFJRpiHllXrgpnv15c+dpl98+xJ972vf1vDyulD/DMYE2DgZ4obuE8CE+CG1QLnqekNKdT38ynCI70eeNu9PvEJ7H/zxgGBGin6XmqYXQsNnwzAvqkaVz7+Wt48KRxeodGiFli2YrZETJ6p4pI330kr97q7rdGrYfK2f6Km63GtcPeE9Ov6IT7ngri0+pcVLUV5PYwlXmomXN1vSTFLDUZ+xjRFXkHZarqTcS5d8+hRLqtlqnrdcjzU/rzsN5Dm+d5Ma9cMvfF1nfulMZdhKhcY2AQYK6WIo3dilwj02UXZJs7KNqIYxxKDJHURqaKX6Glrcw5uDEm41hQmG5rweGyPdPV1qd4fQ2t6qlpZmNTY0qMhFff+PvhyGbaHNNwmvo/TybFeXi4yRj40w2YAJM4DdFmHwyA57Z6d9LJWcBqoZVYVkIOtM+yccxnwY8YcD7EfWyB2rfVtZa2jmXjY3qmWsb0Hl4DkTLO1GbxmBO3bksCA5UFnYbJzJanlWn1FJ+1jt6jLjX1RSqJXL6rXC9Tih6iv6ysk/pUhvibY/IKUK5+Vblx6jAtu7tBbvDlHLKDzSLqqODuTzMIpHY5rxK63ml6LyXnCr7r95poaNdkdkgcVbBbaMqh5SobO+9Uut7ljhuokdaoFVMUbMwq5CqJwGYV62V5VFX4lwctpXXvor7Vh8uiZPcj3TWwygQYPm9NQY2zVhYrt/EasjfPbF/D2VP6pAheWFljbdKq4rV0GlbY+qcv389st0RqdbaQNyO+maqp31sY993A9yyfi0Fl0hO0Aw2arcAGIeyTaba92nv2yT3zk3SBmOaNVSVU7ezRxkv4UNeuRx9sHPWC0r1KFyxk336GjntdM5jEI38haVjICp1xG3XKxF192jWZf80yWIUmawlLaKOv3Dh2jJ1Q+5HJ1O1a0ZKPZYcXg5Y7nMetS4VpM1nqw7bfLZnzQ/F1464D3RflhGj+8qsAmoMdY0u62uhdzaD7UqPMEeWxg0LFcO07J8DUg4In1ce+p1QQFNiOdDwLNPCqzRsnk5IJzzvKs3N9kDMGIfMaQ9bntp0y3qDNxuP7M49LwFhahCZjMzVYET7kvZIiug7c0DRmarjaMFLzVoWPEn9e0vXxATfQs0fc+Uhptlzrnxo+rqdKYDYJx1H9MAlAsTQoiKYvi4xDxWmSrX9RffpDuumamRzJVzGgQN9WPHkbVG7z/mQO285/7q6epyfTG8Y/D7MWgZhdgyvsg3aKqKTg98/WagibkZBK11w/M2nMqEFdeaDT5YsKVaeOnT68rN9KqsuswZdcswTNfTo93qttZtf7o8JjCAsDoyDBnxlVO6ulb3vCj2bU6L0Rr34uFlhRXmrsAOAAZiimO1eufPtOJtXcUq4ZSyyRrvFO/UmlwY6Q+aYaANM8SYVsoXWXgJWhVcsSrNRKUqrGROAXu5VG2UY+FbUVWFe+Xcec6v0IpiYdjfssz1VG5X5toyt/ou+31iEz4/wJZhJL3QxWp23wAzj7X9MpIqATAwuwlNBMbvsAY7cStXkaPT2NQG/qhi8BH/EqkT+MvVTxqECcBxBJqkxcY/Qj2E8zVRkFBMHast5wU3rUsEh/fdYAY4gfBW3qeontgWUT3Ks7Qy8xm13T3mzLdIzc1LwpgQZlFFcbUFudPmEf6RQ96Jhy6aynDhCosLNKpquB7+x5P67AE/0dMPzNQYm74sfWDglrcVFANGp8yV7hD+dukdYXCBXNOl9Vq9DBauk6STi0+I5R4MDRo0rLiPyfMgtg7K15R0XfiwDzN2sz1ME3cIckqLWE3ZZfwUPT3z4RB/QyrPM9PTzaIrAByDpW9Zo3puseLNCiee9tQCtU+ZaIAyTYOnZwKLrmIHybm2ffzs4VO3DIu2fm0JBA01e35T+4Te/Q2Jgpioqo1xkVAf4lniB1vRS3HGEReMULukYWZbfUyIeaswByPxU6fFnpEhZiRHLumQOGBgGh9rWrA/AtmPqiY+9R9AZschkFsVv3yHwY93PTQJo/thFAii5X0T5mKHmlSxO0SyacK4Dl9VtEN14UEwGIDJd4YYei0qK9QaawOVlRVqaFgQI74FWrpyVVAwyszcLD1B1+TR68nPCoAxWMZUDtfsJ+frc4f+WHdf/ahGGSyUY7VtwuVmib13/bxOO+EizWWLMieCHQg78h7ssvPOVXXpsFhpJjoFXn4SkM4htt3gaNCgIcmcKaUlZuKztLteMjtXZoptlrglXLmZHgroMDRub0b5o0dqxtX/CnE2pL6RlTFRXpAW2Ua6aabyRg1R0c6T3f2Y4ZmP5vJN22Vfm/drLUcSELD5jlt5mRuqg1bN6BMVe+fuSf/SJ7Vab73neytED8YPSgzOOOTMOc3BOF9ah2uT9RUOA8O/jKIDFvgC4hAm4rpoAJMPwG66k9RoKYMmQdphigwJcUFYX8dnJv98jZ/DwCJMxGDwgCM8gx8EHngDD8PW1Ba5t88EqRKHXwnlACEC/bCPXDrNMPmxN61Jm07QunUsC8g99C3QilXPB2lXO6wkqLAUHhsGogwF5o0RVaO0/OUVOu3YH+uvP79DNQYBgx2zrPlvOvkA/eLsW/TQDVl9/oTfa+89PqULf/poWBkKARqy/twzq7SuZWHIP10a/3lOWLgWriLFJ78xUfWDIubkEnyFZc5ntJUTj/sDMEFuWVOT1iyOhncfY/ZhOo2D93YrVR9XxG1I6QnuYq3OqNx6StZq0h6bacWjL+uuO+7TFbdcpR9f/SstXei4rQ3ae4fD9ayW61Et0wJbK00Uc/Y617TVH7rE4mIzpGvS9Gs9EhSlhIn/PRSbITRE+MHLsfqTHgzwVBjsp2pz1Tl/i9wz3v1yNL7pZ4I65aDEgmcSP8ZFCl1FLA0AREGlsD+dJC8316tj8SFJR5p7ejxit4TeFCz4CJEr0mNJNZ/gKOWjwZTDCSBJeA4qGCc8gzfqEUocHTK8hLRKOboqfDLjrdKK1cuClK0aVuFuJe1nR0ldaLCMHTJCS19epq994ue64Fu3RI3d+VpjlfYjR35HM+/N6pxv36Edtj4kl1qkzaftom+cfK6W8M6VOrEbMlT6++WXqrLY2hE/iyEGFBBH9DsbQ1T5oAhxttpI2N32wS4aa5WoySpaicHUZ5WoUuOHD1Xr4nZXKHq8jWs2A06XhCUEr5UrGuVbV5+tI6/8so644uv6cvt9uv6gEqVPf792vut8fWPNfJ187y+dlLvB2gIdtOdHNKVgrKVMi7YxLFRmybPWSizWnrvLD9iyge4wrCqtwv17KQIlYVUXzRThMvAOddjiGjtl/J5m1JowieKWJ3wPIw9mdqAcTwfAcH/6NpL7pDB6RIIhtfiAICmSePgRJmjHPodR8AdEYSTJR9bh0xTJqC7vlplxwCqQHkRfjOKkSMwO+8I+KVSyACa8ciF8YBC62wiOlu5bo64uBlMMmiGVQb0vKSvWCHP4cw/O1alH/1znn3W71f+M1rouhg6dop+d9Q89fGNWx334uzGB16HDDjxdu22zW3gNSJ1QNy88s1YdvctcDirTUsZMmGFKkHsg+HGwNGjQjDfzH+g+ck9D5DEzJispbVLpPv+u0D/1y9W36XedD+sbC27Wl2fepJMX/UMnzrlYXWPHacVL/dPfEzrsa6frpOcf0j+c2xuyrTrnjn/pxB/8VLuf9BHVbTJJeeV5OvoHP9bL99kmak8r096sqonTtN0WH1Apb/h2s86y1q3eaTYwU+yRAw0DFEwujYbkv4eo74TZ6IkBCr0xfvznnF/ctNDqZXeH9ts67sEAv939lA1YJ2KzIvEKaSJEWcocpAQ8TIJQ0sAuOu0fAGKi4bHTcw9eL5mQEAy/YhTnFj2Gl6bDR0dJUzNOWtfQan/EXkwjMFFAKsecB5nwX8gGpxY1ZSUpdfGG8y3SClbDmUZNGKVSP++OKx/VZ/f/tW44/4Fgr612h7HL9h/Sk7c26tJfz9WuOx4Rwg+GvvPVh202F4f6AThDbNLccv1NKiopcVGoPCqWFouzNgZLg+as7a1cTHcPjtFd4N6ScacvjLpfx2ctPrMNdgv0vexcndP2kn7VNlPnLXpel8x5QX9a+rJGbzU9l0o/VY0cpk223jx3ZYZx6+fxjqO9Q43rGjTr5Vk6/tvf1HWr77GKlrZ/j3vElDrX2Zhe69p8zIb/CKOlzYDq7HPeeKMfaYX7c0bi/13Ek0Lv7DP6XdScBCRhby6fo8qy3ImXq9gO+2zzHh2hmhAfemKG9DD7AUS+FdP5Jm8d3/0GIEBu48DMvg4gcjUwD3ZgIwYADQgHcPzIcM4ezuW1rrJmC2qrfFXWaFnazHy2lnYmrjDE45/jh5eIIRETD7OYCVchLw5A2j4LHQUi6C1SS8sKFVspefq+Z3TK/hfq8TteCt/xbLAtd8xhX9WsB7P67hlXq6ysv642hq76/RrNXRiLwluN++54zrxb4VxbYXZBw/yAvBKl+CLvIGnQoMHAXWdX7aYHk7NtX+x5+Ct1ybdLbEI4dOhQTZ48SbVDaoMqMeqIQw2SbvV2ZdTy4lp1r3JtDrNorXYtGDBqduF7O21od2lMbFHbPkssF9mxMdfo7zIFxnFVxspMZgZEoPBOgD114pZXBdEvL65R4WPun9JEH2PMJjPzrU/b0rOpxzAwC8OYGJ6UIjKpWZaKgWkBiBkBnoaPQwAcyXHf/vAzqhSf0uhqscawqTRlK9siE40lMyuDAHS6qHDLG1vCtyoDcEICti9II/wcLmTEfu7gQtrBlwe/dVrbMDswc0tDl7qc76LiAn3tlEv09O1Zfda2zNuloqIqffnT56jREovRQebzPTXjTuXZZkLa5BXXqL3lJTWvuYsCDYoGDRo+5+CyBcDQ53AcWmUL8l2iESNGmL2sQuy1s9IGyurFi2x4FitTXKj2JV1KN9lCaLQe3t2jbG+h5mul/mBra4hzd5Pmik0/gsHq37tNACSqZRyjtCkMLgKF/Xr4hBPbKPKh+MKU6zJsw4pEKtBU930JjbQk2Ocwaac9DSL3D9QBPX9gWvgYZnWrhSFnWs8Mj39gXe7lipsICeKyAQd7AwBEJpaTFsuW+OoZ7zbQwkiq01Z2a4dV27z8GN+RA+hCWuEJygsIZWwwJ3lCzLdOq9euDSNdm0/bT9de+LRuurxXh+5/Qu7uO0NHvO/rNn3zQ2fDUobHH35KRe4xCkpqtXbxHZYyZaoedTDFGhQNusR8/x12WO4efZGvNrHMWcF35t4Fam/t1Iv3Pqpb/vxn3fHPv5spClWRP0KdHe6NDJKOdK+N5G51t/equ8V+VtRRe15QU3iluVodOlU3W/kZvMh9+xT73aiAsckH0iV8f9iOdaZhAyyfx616i0riF64Jx4hkQuPHWjVZ587CR/Y0y9msscfPgSeQT5Kh6XDJtcPgFRrfDsCEcPEQ9i1j/2ZmU29ik6o7p/qRLvGKjNDVjd1+Vq/tqWQoloTc+fgaDsg4AtMdw7CwM8U+x9x7q3TEQZ/RnIezOve7d2nShO1zvu88/fRbD2vxiihRn3lykbl3iOpXPqmyWhsdleNt+zB0PjgaNGiowFWurH+oQdfa1L7bPXvNrME/6LXo+6d9Xt8+6mh9acsddGr5ZJ2UKtKXUqX6edVYPbTvJ5U98Xydcv9Qrcp2q8OKN9PrGctHtWErdFQyyxyb/cy/7nauclxiYqTq32vX8Cz2N4nyhmcDElxxgEq+pQzAMWisnhUVxY0QaYCWILcjbcL6GR+xaTDYIUq1nhJAcIRvfQgvJXPXAShcEiacxBphnRiTNcftaik+zRLHUiyZ2BkC5Ig9UVasbRbbvmLXxDQYXYoAyWeouc8ldLiaIUywdMnfhrD5wqfe+vSbjaHxY3fWppuMD0sueJk7b92zrpN2lVTZr6c9lG+wNOjiYiKinpW6qYe5+e92f77qARvpA6gjndHdN96ov33ve/rrRz6rv087XGcbBPdf2v+9woE09je36IePjdNvevfWT7r20bllx+vcocfra6XH6JiCvbSDNvPzGNZmjzBmfbEupc8988LgB2hYQdNkICNrUGawuSLRL/57CQhElQt5w/8oSZA4qGdxYMBgsj5UWMhn3SPHdoVjJGYHMaUEH0Z9Q4jktgvEJHKug2qGl0HC7QASAGN/zhM84BXqgftmGBbXsuyJcCGub5JeGCDzdZBYdgvXrA3rZUIiSWoOUFBSoCHDSrR6Wbv+ev4LuvOGBqs8POW/n47/8C/CDC1mWMyZ+bJGjN9ZS178m1JFFcqy1eggaSNAI/Eh1M1stra4H29xJW6mUbrshJP1+6321TdTxTqvsErZD3xb2333ae3zty7tNneIjtK+WrRkXkxkA+oZM07t1hHWrm0yEFrVlN+ll9atUWNnp1rSnZYfXQYDi7cYEmSA2z2wzzrsGydEprRO9c5LW5AswGqGr6AGh2Js5F2hN0g2QgW5E6VNlDxRaYsA8n930/Frbmw3HxSq9TTUNg3TZcLkxIQGnAcbBx6mQfDP8TOEP0Y914H5OcZbUargZ/5OwBhuAhwO4Z//7JjKw/nSNatVXOhcGlHVNea0bFpPPbBWF3z/Zd1380o1NGTVaIlVyLj1/wBtt9Ux4esKSMkVKxpdxIzGbHqE7eXb1bL68f7KehMaNGjoQdv9mB0Mmm1Ua7gUu92qVH7pYxo9s0W7antN950Oy4aXbfk8oZfMzq1WTCwp2DzrNahzgrvVdRl12KCv6HO4VkbnKpwGahhr6hk9jwu5unMOvxpNCr1zi5q11s9qdTGqbUyvCWECO+jP+oAB1erYEW4DHW+z2SQhWSK2sa7PcTOW8691Lzo4GtlszvNVdPEcaPO5jTCx1X5h6sgAYkIljMuMZQjGJyaXSBDOB/rRgFxDiYYR7vk8XOaO69U2GAO/cNPxfR1eduJy6iD3ETKoXY3ty7VyRY+uvWSx/n7Jai2Y7Tr1veWrpd13/IhuuXyWLj63fzvd/yZC5dpQ7XrvLgeGEcm2JvZ/yLON3KS6CfupYui2odyDoUEvDfhFapphwizeQrNnypKhRyMNCVQMlBLqO/adrJbEAGbqTZfGa6hu/dQYnXXRZSH9gfTzz52gT5/fZ8bnM6RIjZVm/uG+guEii/FjbjNSg6kopIySxiczevyj92akbLp/79f1mu+roeWVmrXfL7W0qyHkfSB1W6pte/mpWnffDK28+knll5HTwVOmu1ejDt9e9f96SRmLhNd7RxFzboj0Geg2KDozXWrv7VBzR5t6agtVffS2evbsK7W6sFOXroxLGmDSH3w9vqnnnW2rjwkjw8ROLjA988iQHEER9RFVLcwt8yX+xGE+V7jNuf34dAabB4X7PvchzGULEomwdtQ5w798q6bN/dzKRdKyxZEnCLN8lbTZ1KH62FE/1+EHvrMjXG+HeqxvdnS4q/WRgaKeHnediE6LVFaX1g4dquEj4jSrv/7jbP3zjh9oq60n6KMnf0E9He3uOKwTuC2nFH83tBlt+o6sp/lJaqrKLFloO1QPNj2HrdHXAU4yN5UXeFyjmtAWQ8zoN+5crnMfuzfcH0i/+f43dMR3Fpj9uy2fys36wCPpnxGeDG0m2UOVSTtsvUN3+wobgWeyQUbWsmeCdla0nfbWJvqRDjQI23O56id2oDnk3t9rybUPaM4fbnE+B6/LQsi6KSfur6WXPObcoiBu+ARyFBmQslAOljojIVE328jT+CEae/pBuu+0c9xN9OmfWhbisQDte1+La0Ba4mh6qMMwZ8yJApIAkNwRBudBfNsyLD6zAxQEB0R0svgFkPk8mCh2ATQOF3KOn695Nl8rW73c4FiYG4r2PVako9Ice+SJ+uKJv1IpX7P9D1NbW1sASZcz2ekehm+gsjgOPg1Lsh2mt7dXZaUlGlpnCzxshBDpaz/cQS+8+Iz2PmBbHX3iMerucMdLHVkUTyn5fmizNwONgw+O6PsZdoZd6fWxKVh5z9wz1lzD7ozdo04RNqeI2L9AzXOYq/1qGlk8XHPMNkiPTqdEWqhgqGZILUabkFqAaI3l0WIttYQBOvEFK1YLHxGssHy6XW7pHO0j20pO0cV1DvodHEauWRUIs8QZyBvrHN86TbYgwvu1HL+4wJZaSK6j3ARErFMHbPjzAcGEWL1pr8DQwcYwwdicokZB4cA/uzCDN0ehYR2QBo0bSgTvCA6HQ0Ktt1t8SIx+Fqihmi1d4M7yTmnRXHcs3dKSldLwukn61hcv07N3ZfX1z1/8HwMM4Kivr9fChQs1Z84crV69Wu3tNhasxwIIvqEKo6fTVsXtV1FRoSlTpmjM2HHh/rrG+frWj96nSdultLbpGZ32nU/oIyd+JKSBhKGnoWUGS4MGDZo3bEDigAcWoAcFKHE/L97lxGOv/VzvIRzfCmtvfO2ZzjUj6+TiW3bUO2x/OiwPe9QAudmQmm3Zsso9Mb00ZnQC0PgVTzYsT1tNHKZzc6s2oQM1LYAvmuP9Pyj+76eB9wfzCymEv+TqtX+AneqlxggVeTj+DxvtmYMJ1e58JlRT7X+OBsMz74yOAQpMH5MJDJ47janl/KAQBkSYAEQ42i9MWPR5iGd/XmYCUHaTfekZacaTNi3XGCzGLyrY/nt8Ri/em9Glv5mvg/b+ZEjn303d3d0BHIBk2bJlzmtrAEZxcfF6kKAFEQ6qrKzUxIkTNWnSJNXV1YX7DzxylY7+VJW233OKmvse0Z/vOF7f+cUPNWzicK1rX+uqi62TTbkrw5DM1dmb0aBBE6UGgAAwkXGjX/QHIDRyBBTMjwNYFvFJS25AE8dtrrlaZBtpmMNFSKL2/VxPBpXlMQPmMcPqRd9F3aN6AGt8XsqypNdK2QRdrGfVnHvGCdrG90gpx0n/MQrNYQdgyFusF/IFXOLuKNiD/S0V5ku6EvGB0cOumdwASEkV+mYASXIPyvkRJNgsPkGqABCuCcc59g37C7C5+lMGCp/y4H3QUgOmsnKEzvzS5XrOUuWMz19gaTpo1nhHCakyb948LV1qrcIqGCApLLTG4fwAEvZgACgAp6amRtOmTdMmm2wSgIIf9OvzT9aWe6T0ha9+TO/Ze0vdNPOr+txZp6ikvELL21aol4EcV1LQAFyxyWrR/gp9Yxp0zcCs9ImAII5ocYzSIapk/cBhZItlS4Tv9Nkwn7cxXXUAXf6t7+q0/XaS+warXuscJxPUsZ9ZYtT7nDUxUZL0hXccMe0oYQAkrMfHDp+yeven3MeQeMd+qnYxgDbuW5jvDsXnJ/8jz0eJE0Z0zOX4xWaOxEpvhkPDba7tYPZc5ECAJ1zaPwEHa21Y28INwEN81LUwfGxv9mbkpd6ypdIzM6T6tdFeWmRTapcdPqrHbmrQVX9cpQP3/gQp/8do3bp1WrJkSQAJDmmBBMDQDzZKWZmGDRsWgDJ27FgNGRJ3IYL+dc+f9ZGTxqtuQkoPPvcnnXHOQbrmkTOVHv+U6htWqrmtSb1W3/KpnDTcaR6ih3JFAZ4sq/Goa99+M9oI0ARcOs0wiYLHBMDQsGQhAQ5H7ifqEx88H6lR+sevfq3b/3SRfnvsx/VJV8a6n1yhz2j3IEEazf5rtEK3WRlb4xR4e97qeJU+40XqGLMWE00ALGAlToPPZtrnasuqhB7QieF9z38eMP2USLykPYBN+GWiXcPASUIdNr6DluDAvMRcH8mOnjCkNMAPIiw2DN6JBOICG4gdtZgl/fI8hZm+qGNMEufl5snHn68X7s3qrNP/YmbsZ77/FK1YsUKNjY1BsgAUpAlH7BMkCTYK8xFRwxKaOesefeOHx2jU9JTO/NGJ2nTnSt08/9P6znmnadIO47Wy1cr/2l61dDSF92KAsLDIyn9JZUjbVR0lTeDdXIUOggYNGj6qCtMCiah60UxcZw2MKGFghigRsHVgcL7k36dNNFZtP71G80/+hcqvfsmG+nsMiKFhHAxgoXbx6m+uYxATA58tMTZ1qK1s37BSM0o3to+yDm5IPu9YbF2xqwGZUFvI4dujHEvnfq+8Xk8+ffMqTkIkqUDUVmRwuJ2OaCBoGBpmqBjpkUggGpYQxOGcBEL8XEKArNAu3DPx+od1OUytn+H+ZNlqq8cG4yJLmYkTdtaff/2A/vW3rD546Em5GP95SlQxJDDGPMAAJNgnSBakTkLzFz2h7/3ieE3bMaUjPrafukof0QW3f0BX3n26DvjkrlY3e90xNCpjUZpyeu8/4quqq90kfJmgtLhSDz7yOz3y6C9VVDzEz2MDRLcNmyKur8E3p0GDpkpDggSINg0PQD2KKgZ6ORIACQMlahug4T62B7skZ1QRFCeMX8BEHAAH0Hg/S9jpfs6mftoedpuYdbBVEsDwRuVxp8Cn1fn0+mzD7iLNsm+k5c7RQBthYyhha5YUDPf/kS7tcKc1xjAdYWVxmF2tU6/z9bCS6rCtEDFirFcTciRSf344S5om7A5pn2SoHuqwfREkTe46hPe/9SGInLsONouPibrGOUPJK+vdAy+xRLE23GmwLF4u7bv7pzTzvqx+96PHtPn0PR3yv4cAC0Cprq7WhAkTNHny5GCfDPxQ1Ox5j+i7Pztem+6S0v4f2Fmrem7W9y4+WDc+c5o+/KX3qWJolZY3rlaPRXXaFUM90CkhTTrbrez3doSh6I6uNm21+eGaOvVg9XSbe7Fr0GPpwMJUisHRoEHzLbPr9LA6MtoqMDGTJ542E19gdr1Cq3Sj1ob9VoASkodwAIJXktgmMBiGPg/lnDTwRTQiYbZ1ilPMtFs6FKzQYkf8HEvobqte7o8sf8p0v+ZbHVthf/ZzrtZ9Os7MXRkAtjFE6rgqg4GPE97qlD+ki/WeSY9qlx2XaYdRt+lQQ/N4u92nzdSX9S+95+ZTVd/XZmCx6j/ON9uQAmOHO/33okIW64cQsSb7ifciEDECzwy8bU/U8ZCaE0lS5Rhqx0kSp9nAazZg2q2WfQEV7J6svv6Fi0LY/0bCTmHUC4nCJNaEZrx0l84+5zhNsUQ59EO7a132Vp19/v666flT9ckzjtCIiXVa2rBWrS3unpk+Yf0VsyT0JqhcBgH1HOs7qzxf86W/0vI6VVaNVS8fMAuzQhzKwAlfGRgkDRo00OlmqS3d/xONx8HAo0OPzBaC2C99+qsZmQ/uobsDCn4sXrvMoLrYRvuVBtYsq1ZkFmnEi0kcEggpwdfB2oNfZClA0OzrB/00BgRQya61cjbbyhi0t1W/6/QxX8UJnRtrz6AejbIU+astqj1q/qFffvlULbmnQbrkaeln10t/m6P6exo1+7TfSYd8UU998lQtGrK1js1crU/bolri3DFfeSA4EqI8AyVf/xnhqYE8A5UOIhIvEZE0EPghxUSKDCT8k/0BuJeLEuwYFlv9/DtX697rsjrqsP8eFWww9NTzN+msn31UE7dJ6dhPHaDG/Nv0o0v31/XPfFYfPu0QDR8/XMvXrlFrs7vgdMZGPSV3PbrHCEsUQk+D9KATcVcNUIIEQZK4wlLWbSzVsunu8DIzxnZ9cs5WPYOkjQINo1qfsjzZXOPMKPQK6SBt9rGyRG8fVah83WWYYLjHoWmkS9xjACkDUGb7P3ZLlEZxMAFVDosE+8Zahe/RU2Q10f35E34y2++1+3eJzf+GUFTpbO2u7+tALbIPYQcLmKAjWySzhSAT8w/ShTr/q6dL95vjjjtBBcO6VTemU3UT0qoa26nysc7ZqcdLR+wlbbWNdcidpJN+oReq8/RHPWzrrCwm/AqKMMJF1uacHPrcjRQ3d8iGUcKE4AHaliDc5pRQYSdNiuwjHWkofu7cxQhMAogYPGBH3+4wjfl/i/546Vd04pffr4cf/6t+e8PBuvLRE3XUZ/dXzcgarV5Vr/amdvO7OYoCu2YyYSCF+jH3uNzUQZQu1KG7JEue0AIZAybDRu4GFdLI4aMqRqflTtbSh4/X8o5zsDRo0CQ7i8HUx+nmoCKNNLvA+sgEDPb3+hp7ZIjP2bkGgNB8ZHFfs+jRtgw+aKvgYKs1FDmChZG3GAapwlQaRseGGogLfH6C7rQMWKq/6EU9Zmm1gy0LXjZcpcO1q6Veo+XbYMFChQ7xs5+Z+ZRjFut63atD6h5UwyMrVXjqqTpmXJc+N6lA355Spa+OrbCr1Bk+pse732+xJb3dEINlP+lrn/W5wWN0LzVg52iN0y0NjRShAm2YqzhHj7t86BYjlXPmzg0k7JAQJpdMklogLuw4kHaQRrlrPBhBrXMW7334Vnz+p2j65K1U67z3ufzjJo7R8sVr1NHCZ1yYaQi3uP6sf2XTqF7EMOcZKfB/sA9dEWFAP+P7rM5D8sBUDhf++yLluGw5RjjiIo3otFNOt2+Db26+EQ0aNBVmsmPMGuW5669ZYbrbysl2muzG4zN8zHmWQVOkbcxAzFKLgGG0LWNrJG3HtJFMMO7j9Jvk3U+cPsNirTG2TOb66nO2Lc63VGHoejOn9gnLsm8YJif4asnnrg39M9IJ9WcwoIFF2Z3zCed5l++cqrK7L9If9t9derlBY6eV6jBLl2teWqwR5Xmqcd23uvKH9KZUlypQ973zpPm21v7ylHTnMwbMUOn9W0lPLtC6XQ+1cniD/uG8TghjfnGNfUJRupDPCI4EIsnLQzqIgbBhiBgpE+wbJ8MwMnVECQEIC6iIynew2GeROWNhiyYimz/4ZOnf/vlXrv6naETdtLAU29qTOm24U/DAHf5jC6mgXkFWo8JLznjlo8P5PnUcB1ccjj8A5btMq0nRm4SwnNvfIEE9wxfghDjvhk1TFti0WMdWTNLu5XHnl1u1WJ+11Ck3O061ZUCxAAkhGTKFfVDRwDpZItMY9vFbLdggUaqMcPxKu4fca59kKKKCQVsbpGdqR31G2xuc4/yccocrUZZpFL6PxTBYAtgsJTirdrZ04HHSMdb3r7xcwwubdWylc+uKHzesXNVdeSowQ+6cLlFDV1qd7X3ajq8gwKFbjFDYkv6sv5tbXeXVNkIuv0L60Bf0S8Pxs8HaWhnyCAGXmMMI6/X/rWLwIdZIKcvOfgN45Sp83DD+F/jEjmvqsMjJrnD2m9aYudwjdbdKaxf72kKQT/HzvWAk1KTx0oVXxn3BmpqarLrE3vbdpvDS9i1SWVllmAVBh9HZbquW+WBWwZAFAIDlGGgi7CBTYAZPcQ+wACD7AQ4fQjvy5efwEae+3DQm/1EHQW3jvs/ZzzkvQ1ftLt1px32sTVT2m9CguQ7dsZCms444La9Kh5mBeSWG7XKmpc65ZprhVr+2sPVSawDw3iVk2A7AIFXoD0qdCirSaENllGM8YgXrTCteX7dtwNfMoJ2c9ve1rT6vLa0ClhqqWceQWZFqa1emmUUHzVbMmuw4vrkrdIxz9YD1xM9YhxklfeYgt1S3Njde2rqz2itdpHOHjVRZu+2wzjzNautWU1tWqxt7te/oKX669YZHzLG88Ohulq3TuKg+Wy998fPS6efqsbJ2nWGLboVtMORqp2HaZdctlmMzNZNpqdbNO7pDYxuSbrJul7a/pfiKIo2SLAVIiA0F6xdIo5yVSmOXrVmHjpGGT5TtrthDr/Z9ZjHbXta5F3wvxGOqCfO33mmCAZubm7Vy5UrNnTtHs2fPCW/t3yoNHzosrih1VfS0W+VmPhgVYOZB3QoSoRep4rL6X55rLhvAkXAZ/vBYlEShxwm6W0Zs+op61rd+BoDr2OmxjiisrYKvBgGWhAa9NOAHE/ZSWXW1CqvL1OmHN6+zktXbozW9Lbp17QKt7owLzUaatXexVNjMVskYs3rELxzQZ3jAMr3ui9ttBXQFW4CdOqGjtt1de43aXFtVT1SJe/Pi8jKVFpWZL/OVz8dS3fUWWC9JN3Vr+Me2V/01z6kAq3cQRBnGVA7TMX88TdceY3vk5MPMcfna2d3a5j1ZjUwb4m7vvHRe2Cw84x5qYVevhlk163LttPb06uHqKq1odxc/e64NI0sbvvbGZMEy543Nx15aJ914ucF0uT6/xzH6xeFfUn17g9Ju2G6Lhc6eTrV1tqmxrUkdllLZXUdq/h/uUrYiX48sm6XbFj8f8rrV5haCh5txnOQKV03Q4uxQyxoWOdubBJNOs5+0t/M21FJl+GSHd/6R7msXSqO3kJ53/zNlwq76w08eCW/beR/C1JOB0+Q3huiNmTTJm3qm5vNuBb6sGzpcdcOGqK19lSrKR+ZCvzXaep9U+MD3V357gNVT5ppZ2rDWJWslvMB86MpgaD3qr9SNGT4JYw/kEtIchkZS8zFhOus88xBqWQFTJzi3H+EKnBafxw+rwlK92rnuqvX8/o6sp/lK1RaqqK5Rha019oxqXdtohspY/2RoIKumrja92LRSy7PtYQOOgTTW4EECIWqBD8YvM5mfNmTmWQpA/9rrdNsRvSovLlNJYbFKzCVMfeClVPi4jyuA857WNk352Pu04G93qrAc4/vNiWHlglRam1//NWmWu/JhPSpykgf05qkqndLQLkuXTL7LklKnQdNEB2XgNFuUz2bp9fCh2v3PV2qLO27QBT/+lSveHMpHozjyLQi+1lTfJq3rlM74qGpdyJff/0ct67LEcY/W09frtA2cdIeaDZyemkJVHL6VnvnhlcqWFmhZ2zpdtSqCpsxMc/ZXbds4+XrEuJOnF0T1ajAgRk6Xls6yhG/w491Wq5ZbAhtQ2+3nY521SNtEzSt8bunz6HPSJeferx222StIG14YMqmRF4m8H2HKyoaE6sJcL8CB4xzAwQPEBzxlpZUaPXpUsLv+efvF+vNVJ2vZql49dftgWuP1ie/UjLb6cvIP91RFRam7V9rcN9xpwoeBF/zMbB98wTBxXFoeB/ANbEDFso+ALJeV7PjSzej8AyJHtq0UPxJFPHeW4Zol6O3aZfh17yxoPpFigHaIhg2pU3FRsZr4voEfirBjEADFKRkmBvOshHnWsuWZ3PuUITk9n94Q5Yo1MayNSeg6fSC8ayFe/+tPaow+gX6EMwYcGrTXqafp4d/9wWqbe/w3IVKp9bO/r6t1zz/cPW/n3rDM6XamNMxq2I69rjgDpsPgabFrMoeudrZaqHhXrkortM2vfqbnjt/RKNtX8772U00dspX1JHNoyipbt4ECaHiztth1stbi4Lwf6hd6r6Zb/ewMtRLXCLHClNezhaPrNOHbH9Ctp3zbuSt3HjO244yIHIXVm+6LmgyAbnpD+xW4+hptv4yeKs171h72Z+0LnS5qRo/Dbr9X3JqpYZlU4aqZb2DNc7Iv3mc10+3VyebQJtoUcAAA2pbrhBJwcEzuEa7IbT5i2GiVlBVo4eLHddFVP9M1N1yvsVYRR1tFTLcM198uZMfxt06AZpyr9ePf2FG1ll5h9SWtbwZP5SMfzD3ODzvlvHLDQp8EEFiy4In08Xk+ksjtmcr3FTvomH8Y6kc1ZrpSyiBiCQZgtI6h3UYODjTw4qAIVPJD1OW7t+J7UiV2FbY52AC91m6IXZWZoMyOjdC3s93yYStph5p5NjOLb+EYUx3nYyd+QkfZqvmeFbnfaz9dpsPdq7DoLG6px+QSNj6K2+tFF7fdi1vvpYrJSTx/M1fi31C7e/jE2KauAYDa4lpo6tVaq3q3NXTpYV8/0JnVk2bUudabW2gsDP+hFZp27rl66sM7qH6P95jxVmnKz76uzGRz7FqrY91Oq83AabZb7mu+vjTJXG16QMtcG+XOQ9jpLOQlKUthUWHYI4B7lISdNgdSfSMN6g7Mml86BxpAgt3i4MGDLCY9KC/S2W726fukhe7w6qyyrTLAJrh/GGem3vuoEo0YMSzYHAkokDhIGt7Cc0xcMg0/7YflO4+jRo7V1KlTNWHCWF189de1+/tTOvSju2j2out11Mekg481QKvkuG9t29iBVMlLP5cnbdU4fIrR5aOQyBH6pLywTY+NeAM+VIYZnG/pBHvZwI4jZQwhu/NGEqUNePuxzVT4SkCwazCcnLbTxc5h8CHjxNEIBkuDBs2rKTSlG551lwUGS7FBUya+5T9C1bZtqsNxjOE0zm4L39nU7Lutzf/D33eQpvl8rP0BG/EheoeY6jtD9C183Olb+rN0xHGuaKtmHa54Nk6vN6M3ugJ78tTgyu0NViHOEelaxtRom2//VHdtbcZ//36qs8QZMcJcuGatdjvzIhsS5lLEAXGo+XrrU2xliV9lmZ9MvxjlI+XiLNfXhf/o7LHyWcbNpNb+HV0WWeXiK4phQ3QnDzAADXYNU/z5EBRZpNbc7vBRAFnVcOnJu413C/dyqzksGaiyuldc3K2Pf35yYH5Urg0pkTrcA0wAhen348eP0233XaoPnVSj6bvn65p//lLTNpOOPV7aZheD2tode5+3MHeKDL5NKnUVUP1pDEsKaMePdzMMJ8PYjH5FI95Mb3Wequc9C1IJgGTc2TE4UGh1mKahcni56eKFb+qE0bNgj+GoXI6uYN7tDJLeBmgi5VjA/+n7kRZF7jn5qB7KXJnqfAZ4RhkeI4Or0dipk32XJucFJ6MflO6dJdLkbfs1elQ3ffxL0r5HxElZK62zAJZWuw43jm0zZ8KOWnULsKhlUrV2Of5LuveYaRr3zc/FBKHFy7TlHp/T4786Ny7kh1GwxlfX+4GO1+vrNqfnnvJRrfCv2aWMHUECmAAeoyDfqEj8ESBjXFcJMdaA9GBwjqqBHdnsr9yqS6M1oNrRERhF7MPsm2Qb4pwvQD9riVNrCdNi22acgYQqsnz1An3le7sEMLCuPgy7WvJgs5SWlmncuInr16k89uw1+uKZu2vTPVI697zPqrOrWQccKO1zqNOb4OIZd2ilMCx2TVern/0O9HYWcKGD6LLUZ2QM6RHAAI/wbsW2IRWBlKDQQc205GCSJmGCOAoVknFTEKbb0sk6jMMWuH34gBOZZvQtS1vRySF9fcwgxQZJbxs0ECxPnXGknQER+iX2SZnZpsb/a4MUqjCIKjVm0oSguKCaRJYi5jtPpL6sxN3XcLc0W+Pzbc8O55BPaHW50ngsbwnZQc+MHrrxkUP0kV0O16PnfVpDPnJkTAh6eoaqT/qtXvzx96372GggPUbNmM/PLhR09aBvuW2a/fYPo4ONdthnlJByJh0M5S4o4H9yj+lClTwl0HzbIfj7tsMFr8BMYZeYNT4O9S1LIj4wC9YT8wt+ofdfNS+G510OHTZqGr34E888rjN/sr823XTT9dPvkT4jR47Q089fpzPP+aC23Dulb5/zMc2c/UiY9LDrHraVdvWzqnl/EngsFtWO/oIjWmnhRmy293pUnlPPeM/CJMogNTi3ysxqyzCkbNGacsHCVBiDIc8aAl+byJrp/T90Bn1Wx8Lnzq1B9NieyRhojGKm3F6Ar9CSBpABE8BFp8V0msHSOwKaVxIsAEWlxOyxXgKxMpOp9/GrW4EtQrh3i9iY74UuA+TGS6R17g7NRLr6Kum686W7rvOj/Wy+bQHTu1dyxnT04UfqqmcvtP5hYz9H3VffqNQfHlTLqSfbyraxH74U5CpHHMx8zGB0l+7GCul12bZZZv3KtI3lKy9xYzfC/yhtsCvyWZloP6BDDVRbvU0IxuxyXmHOUoOGTpPAgIDd//m0ec0onzvrASzch5k5dzbQbppW+nnuH3ypEj+81oCrscp2/2N3B+Aw/f7uBy/V13/4fm2zb0pf+f4xeuLZf8imi4Ek7WKgTJns/DkN9nymYw4rRP0sngcYITp3BlCxf94uma9DGcK8MtdvkQvf1tiksvLCIHkyfmiPM2A4OJBr1mHCDGXHZZZyxmAAWOkgkdA1Msp3xqOkQm1DclnCupeJUqvXwO8NQPq3S5rXo6jNRxDFftaF4yo8lSvcu0Wp8Grxq9pLqXkzzNhWzZ6dbVXK3Xitu+q5tphZIM9W+nywpblZ3/nWF3TN/H9Y2vS/b3jyyz9VycvO86H72m4xOPjYf74rmH1/Zj4iPXSDgbTEZaIsbkxEfv0q7WiZysyHCBMolh/pUpByV8KAis+RhkCKOhpo17AsGT6swI7x4wIwnHyVs1ZvQYfwREDy9UXABVgIAhVa06u3wANgjGcQn68RkOWhBs6Tz9+tbQ5I6Xu/PEEzXrpJowzAkcMMkomWKpYuw30OcFkSjarPhFGGbyP8c8ChMHbtrjrsr4EjcG+VKsqqQ/rdbpf8smLNeuJFS9o8PfvAMyopYd/oPqtaBo6PlJfJdkEqObOAooCMoccaHOw3F9Q2Ayn0ZyGOAeQ4GdtISDAIO4geIBsGCAZHgX3/XfT2q3XwRJsyzPs+baoPyCCpd+8fjGBXTq8Zm29NYH+gZq1apcvuvkbffcASaQDdedyZes/U3aTNxps7bAsBsrTDo9IVm6OXvWyudReOZY4Y6LAIgMtWrTFokDJ0EbHjiICJChmf5442DZYgPvSJcSZ4QgvYpM+AwR5B10/GKRCM3bZn+PARrTfENkz48h88EPkgaIz0EXwmPM/FhMGRXNMMDtqAZdBjmFXgNIbbTtrakmXapPiOiIVwmGfwEpnmmQUAx9eo3uavQIFpTazbQaKVkNm3S0Hv45lZ20ktqq6tUGlVpUZPHKW1S91h2T9tEPCF6T5LB6bWhDf9UZa4c7B94owDEACFypa2DklYRsgQi4As6wIyO4DPErKdFoBDfg2W/q2g+U8QS6CHW/nRLKtR6BrV7nKxYulZ4IIVK3VH33J98hLbKgPoolN+ogO329OcZS5dakky8yU3qrmJtcXNVsEa7ag+apCvL4X3Nb734ks6xNbbIdrKoLX4920Ak8jZBCiFVu2C1AnX7OPWp81t+SXEFxd58x++w2t8Ish4yYkqFIx89wHDLG0Iw2YcQa1BFOTC0Rdg9zCuASvCjx0+nz7aRaq0VLEatoXVrzpXDUBAqsA3iRRBmAbe83ns1X2Pa59yDzD5lroMGp5dgtH0Nom0SYt0WxraAmB62tpVO6JWKxavsLpW5LwgPczsSAvbLFmDCFU5a2lDftOoYC400iTfKljKohbwMGqG1E35nIEE0mGZM3wQAUghB0e06f+3BIOyMG1HuSt96CbLfxurdSyig0Ncg0vMecuXaFuU9QH0919cps+M3zxyHjMolzocnLvO0mbhUoPGEmqpdaRxTnccn0A0+ljEtGSRCucutGTbNqRD7xcYIbhkEMDOXF5QiNxJfDlylq+RBlBCL9ocY3fMcifv1KPB7wRLzfTNztZwSweMc/oBJAHAYF0ITM4z8+hcAZ4jAyT0K+ydoY4PhWUIjhPS9j+CkGHMNWi92ucbGP2ELbQzqwX7BukX3pf6/juhnvH8kIrT6jYYCo0gZEh7c7uqh1WrjYl5RjhGfkS3VTMf0y48jI9tknIBg/RwzCDpHZ53NywrsB4ntm6idwnLnJ02KlxMx/cHSf9fgwZi+cD2cpfc6NZdtcDMb1VqzDQz+xRzkPUcK/nDb31BmhEnNd515S368CxLkbVWB5YZGMsNEhR67B72bGU6MRzK15GYRVlnQ4AJnOg2//qHTtKWGmLJllRsVL4SFS3+mENXZHWGe7zL4YgDZFPV/5LwGWeLF5xh5006RRI1Z6FlVlratBrDNcMt6ACN2xzBGQx2H/OdNYaGw/a0ML39iR/Urhx/B3XeDsAAKvgo5Nv34SX6gYAFO47cAzBBi7JDyjFyhnQIjPw2iWSRqJmejGotDte5kyoM+UqrxrpkGwvRGDXzNSpWYrcAEhDMQEGYEeDKQLqkfCR8eHnp/AEg2i4A3JKFAQcKHQYeNiL/oY7+/ya+dtCro1mm/dCN1iPMRdVW7kdZQvRY8WcOWd5spU76um7+0/U64DpecpjjUOzDcj47bCCkDhyGfhS6c9/CEk8beHDYzMdQAnWQtlC5mJedEDCJsiQBR5A4tmkSSZNMHWLZxOaGXEIvoBEaCcVmHGsm4Zk0LQAoNfZZEjB+B4PIgm+Ei8S8uWSEC+McTTJkxM5JhNMgPUiDa044ctNhsYXgHS6DDeVjIlFCUoAqlyZzH0mr21UDlZXaOHqbFLLBc12/hYUFalzTqNbGNguIjBa8vFDVNSUGA8a8JYSP+QZFvtsFKUFnEUSkwwIkABVGxAI4ksECCuJaBnRB8hhYDsK/d2Vjjf9Vgi2xaz6hnaWnHnXXaCmCLstkrfDmGUDYdc/W4Y/cL00d54rH5gEQ+PvIfQYAMtgt5l7ml62zQ7FhKk25RcHdt+vr2s3Mnx8kxkCCGahojgAlP2VJ43R4UxUlTfwhKRgmHxrOIi0xMNjxnwnddJQQKhdZGeZ+oJHdMUda86yUqmzYY5iPsN1CFpyzOOwMEHwdAOVMkA7gACQAAgo2kf3DuxcTRwQq6aDRhMzbwWSAjeXXmAFUJVRUmCxPfOvEo4NN43S72ts0fZvJYXZA47omTdlscshfeDdmpgc4aBHdjlRovzyDAYmDOkeBg9rmY9phuSb7JBAXs0X1LL63cTz7M8Q9WHqboAlZyf2HBl7zP7mzof9A6g+X3IHRX01JOLv1t18r3KuJsZFhqrKtYVXqwh9H24aeBSDwQnOHD0jsLomu02m9OW2OpAvlyIABkgbHPJaHrrTedLM51ToRfuXF0vWX6jCN0GYy4F4jT/gkClqQNAZNvntSpAs/ZE5yBSNsNWBA4OEnLWksNcr8GBoLR/OSJt9SardtwyTNlnrbOJY207eh13e2rOVRvKg62fmY2CVwZ2ARwADz+wL/YPTjn/AP4exCPHjPXgAW8BEee4aJw5FCzLdNAbw8z6Kss6VDpVWFGmIjjN0xo7RgpnXORjGqUzb6eYUcwOIC9xkEqGl5zjDdF59ARL3rtQuqWugJiv0cPgBvmwlA+Xlxz4bB0aBD8pIufGbJTJbuZedlTGzWXvIJPzb945pz5vLiuuzDkU80dfi83S6ep3hTG86ZGca9Dh+5z2It5AL+uHgd/fqPvY0s3iJ86/r7b+SIs0Kr9TWkDW/+X7ZEyVitCgq0Gb/d+k2HbZWwhhiwABScr+mSWRFG2A6rclvvJ+1zgkHFYIL9Uo63YqUe1hpVupH4mMar84CCyPcNmNfdYSHWbXuAzdzZgweY0F2jnLEkrdsKnsVGjmZYRQvZdDZqbDYhJVgHwrsTzCsGA5gBMGUXA8dSh3C8O6mzGccSJ+KG+OYx2DoZFAgSg3vxMXTGAYjh6IA8B0nENQ7g4BfUJzuu+Y4Okuwdwkt8vtNiwmV4s08GXc19tnFSBkNQucz4LH8OkzENDKRSXo/r0MgPcQ02wqKahbf9bj+2os1zxTAcnXK9L1/1nFo6Vht4ETA96UYtXz0jZmIQNOilAV+v3kYV1UNUNWxIGC7taep0WPeRdkWuuTxGhPLdXzpT+TZ0C33Op7XzjWhmzebbIg1zrlyoHf/5RT25389VMqwmpF3gcCCfXgYlnsYKU7h9GTahiDd84Xw1dWiTkw7Q4ovvVXEl7zUG12KEGlM8RPvc+T09s+VQe7i1h483J1o68M6G9ENXm3CNvVhvssIcuWaJdR933XAomQj6sE9H2e+Ze6SXXtQZ+Xvq1P0/qjarduR2IAVGC0lnxAeH8sZXa8QZB+iRD/xU3ZWFau9pU0t3uzq6O2yXANSsHlg5Sw+3WTcz7b+XtJdBYZRpobVLpsrAyPArBn+9g42YHG2cpXNsso2QJm+by7ZVt6C3OzB54AUnRbRoCxQ+tWF/Fr2F1aKQwwQsgCjfIzhGP+cZxwvvjnzexCAiWXT5dt7hIzr79Kt88dbpqE/VqK21WXsdMlKjxhW7A/BDyKiRUUDm83mbkns4/BKu8lwueJRFaw7u83w76rzAyO41XwaLMeim8Hexlix/RqVlJRpTt5Xj2H5ywfvSa3TEjovX8/s7v56muEQtq9aRlTBFhjcNUbmIXzTmLPpyFtfzk3XGkZgo/9G+v+vPeQc5vai9o7YQnrPkGH9Q/zmphfU0X/iSHv4962mqBgmZSGy1tJ+uUHqKayLP3TAg4MuwY7dy95xIFT8p6DJuHF6rP/UvR7TewwvMydaDyDEvNEfY7L//n9KsOTq2YbhO1J6WIWwD8moi78nwM7KkdspE7XDbN/Xnqe/zvWrLIOQ0MgpZzn487mWtcFwq7KY4XeaH31T4Olm7hVKDJQxfNSM9bIs89x1r5krjt3S7oZI5fNNqiUWarMPBaA9GPuEBi0/6HAaQsIQ6vL5y35HHTB4DE54k0+HoakAlo0qKfCQuwOH5q/yMdWt9baba5R0AzeGfLLJw79Xu+w/XuInl6kY6kA//wmfX41/gx7DXGW3hTAbucD1kQyEJREnjh8UAVNiVzu0Z1wmh7jKNy5TpdtkdG0/X/wd2mDMo0IS4gyFgEaDB9I8wBSSasfGj35ivUTOPR66TX3INvHC0GunhjzEcPxM+cA1MEv4Va1DCdfRLlfDcGLb//ps75MlvdJA0z5xS5C54JRM3zWUvWV2rYXKWHQo1dg4DAFXDpIM+Je1km2fL/aMdM2GMNPd56cc/kB6boY831GknTVazWf318oN/nHkXr/NK3HUUURpWEOFiueKH0+NYWoX9R9sP4o3/IksN+KHKICiC6bkBA7sFsy4YEmUlewT4muxj4xTnZkHDQ+Ho+DYNwhEVb7aFJKPujK4vetyAtjmH5KLHDr02j3A4VDE6al4Owp8MRfsyPCfwm+/Hbu3tUS8F5dnOcNoPQw0DxHESJg9FbeMQMxCGkLFVHK4vSBJbr9YCHNtHA8XA4tgbUO9uqDcORTNNp8cOVTYMNzteAUbbIGnQoPl3UKx2F+IdaIDXIuaCTbd0uvzzP5VmviC1mQMx/J+fJf3uHOnW69xlu3dnwwDW/pe7C0fysIa4fqH03APST7+vD81do4PN0t/J7KDtNVVjLcPYYzTHZ29AsWyAoiAMOXPW38Xggx+yGZm1q/qHcW+808AwprvNJ3XMbs4xPwSDFzurzGShH1gz25qj1TVm/VCV6P3kDR4kCtNrFhr3lUMMlvmOYw10qY8v3et0c3FwYWTNLokHMYrLeZiL5moKZI+GJtfP2yQeB0fGqS7JW3qM/nAHTESgkCdAgCQKnZwrA0Aw/cH3U/gHo99hQZkrKAw3gzTuB4D4XoA+qpyBZRtpsPRfBJqU1Zt6M0uzVRUz8rtEa9WkTxz3ad30GUuK1StU8vAzOr65Vh/VJG22YJWKb79Fuvxi6eI/SBf+Nhzz/nKRxt30T+375BydwVy27Q/Wiak9fTZBEzU8rB8aTJUDmAgaO+tGqKzRJedR9iYsOlqsho2SmYnT9Q1I6CgNqu0NT/FcHCOxZdY066xOjJgWeCOAKfCKkwsai8MHqWOHtGCeGeZcke2aYgOSiQ4vu1/AzsFsCzxGdOL4BIkDMQCFH/yYUOE7MPcMZiTNkkJAQx1YsliqMGwcXlYaCKhPYQcaF4w89AZAIIEsX6yHYgeBnTT7OxtQvuNOwwqv44T8UhanHfZFs38YHEgANUj6LwENPWuT3vvnb+nj2Tu12Snvt4Dl01DvPNEUHW3N2rx8vK7XB/QrHRg+5v5B7aBzdJjtiCN0vg7QL7SXr/fQz338tfbVN+x3rHbT5obJ5iOnqia/zCoUqlec2j8YipDx0f/Cx1V9HmUMtiApRSnDOffYG/tg2Z7K0RXXW4O0aYUWU2uAMGpOeoykcUT60Psz8EdHih/MHvKXyySAgakqLMSwb0LnbCTyLhfwrLRhX2/Bm+9zosCYgBPtB48w3GwHT8JnlAXX2mo9720SnT155kUlalO2G1MfqeEbBgZAYaiZCZuh8CEPBpMPrOxk72am+jP5hk9ohKUAjNQaSHH1pyVKSIuROaI6fRcOqRUKM0j6LwENWU6rcsr4cF67yzQXm8K/e9TtykY5Yjn2BKtXrPdBOWK73TEapmn+z3uXae7vJ2iExltVGu2w7DFanF8IT7rNaLWNI8oUpE1O0mCsYsugmkWJk/gjUxgmKDOcmWsQRrb1/Jy4xoZZy6NtYjFRITCN/4UYMEN8SGBwzmH6cO17hOtz3LopPjpuDcsALG2y1kYBA2v2XnjYYV3AwJuOCpNQ3kTNQ/YBtkqriWEpkq+7eFn8Nom0AggDY6fDPLE+AwdbinUySBjMGZZmZ3spGC8n4z3yiqYW7hOWDPqa9zXYK2HczSpcnsETJFcACqUyKBleDKJ1cPRfApqsWWOobt7zc7rvkLP0wCd/5D68Mnfv3SP3PeYlxmZYzxIhkLj1alT4uYHs4j3/aKG3SMQMu58wmuNzwMEP8x/VLLFtotzBDstavo0yWGNTXX61mdzty/sRRs7qbJcwKYF0A1jgBV+El5A+DSqVHQwFgyWMz3LpcdsbNK5mps0x5JwMMRN2wSNR8mAuwMMBjNzmyIkdyxK22yrmYeHil7XvUSndctfbG0ELVR3ULU4tRfJYKGaGN19nLVLDEmhfZ1O8rHS7OWCBAcLqTd67kDGWBiCxsV3ILwXCzqHwqGsAidfIQVrZm2jZUPjB0eBDDoKQDmSLcr8VKnVvvvq2FwyguO3tfy291QKagoIGE1o9A5L8j/YMYImOLzJEuQd4UmIf7I/Y5kronN+7l88NJbMqc7iZuwemcrphmBhGMaGlBbXKBGACqHi2DzAKS6nHbCENtarGIEMiNYqKrabZrmeFKCPv9N4hkuOanwPTkB48B2CZ97bXrtJUS69fXvAxbfnelH7wq0+rft1ihxw8JfkK0sYSIdNjO8VA4Q2/EePyRenBiBpACLOanTnwEBaZYffgfN3LEmnH7cHOcakoF3YP1if1hMjlRSgaDmIqRdqDpHcENDDCWs3XuD23VnFVqc149kSjCjae6HNjn///MYUpG9QagInvs5AucVAe4ESpwzXyiP+8Mv2YlUSI3v+Cvxk4ZnRsi0rb4EMMIvzh7yBdYCQ3AS7YIT7Ce04m3KOKeadT5DTGbR1nSo8dF291WdNqN+KacgvhIFZyBmZzfJ653saxQ0Xke6G11iJ330k67FBp3rKLdegnN9Eeh6f0/V98Vg8+dk1I5w2JPDq98lKfWJKw5Uh+AIbzalD0GfXYH2zh1AvDGxS99uv1vbDM2XEZXg4zoR2pABuHQpNX6sAuHXoOoIPmgA3kziOPDdF9Mkh6R0CzWnP08zULdcIDf9Zpzfdo988f50bGMCSD/06i4IMv/H+KgspgkUDlAwlAEkET30TFIej4hicZhiYsu1ofo7EkofkLpEutqrFDbgIctmuCueELnkHtc4+em+kzJIJ9kHt8OMLwfIp9wi5mVtsoYy01xmzi62kGjfu+hJd4PhKHa3ryYLTnGJG0kBDMf+W1F9P1Rg9X2MFm732lte0X6HdXfEjbH5jSvsekdOp3dtQvLviMzrvyB/qj3bnnf07HfK5SVVbzKgzieS+2qKc7o9LSIqdryWEAoXoBIGYoM2sMB9OTATZEZ0+0sOkGaleQQpY04bYz6syG1ZypQnX3dKihaZGlaouYOBtsJ8pIQQZJ1MXbIuae7fmJE1U0rCLnIx34+2+oSUtcAJrt30cZVyQq4n87ReuIuonAoZ4AB2CJr0Jx8ToBEsDBBmNnn0M1kmTCpjpXXBeWBAUmrjFwhlpVY3odycPUpM8lT6S3DQzOtT3CC3Qfmanc12mwbGNmt7oGeGTmDwHNeAHkXBLWfoAwgIj08LOLpYmgJBppMq2PgH3uP2t9vZM1zFFWCRc+8LRuuvwi/e3Cs3XN5WfrtuvPV+uCNvVZspX4uUwyf+z2Vr341FrnpTjaVX5ImKjpZ4WRMD8IO4Y9z8IwM3nE5rELoHHYMEfNjjU2xE87Q2vW1ivd26f6hkYfO5yYM4SEDhJocPS2QUODd65k6e8rCcXj30lM8Kw7bAuNOWEXw7gx5/vfSWFKiInKZ5AhWjdR2kSgJHMHEhf9AQ79KzMFjtx855AGa24uuDIa5QCHSdd1lj6dZlIek0gKeCKoaTCdjzBZkBq+F/zseIfLntEMEEzbQ9pkT9crdg7AcTje8xKXgYgAFF/zzoYBCfOu/zmMDwAnZXWRtXmLHvB1g9RsN/tpabltpW7nzbdV6vAlTr/Akon0Gfpet8qgesYdgO2s+mVZPXnvWpVVFPh5DNZYYfODGTqGMO77XBCOjI4ZFi6X75MRwqHaIYUYSWMNlPXRlJ9Bx8EcvG6GDx02DFHn0hwMvW3QFLr4T911k+bf/nDOR7pw+jE26SfGzL9FouiDLQbPwWTe/abvaMdLvqLarSbbh1Z8l8gZG3wVvxa51XI1T6cTB5jji06A0z/hpsguggj7Jqpt2DcZbVM+SrsqSveX50k//JUB40vzq8qc9kiDCCM9qGl2+DOixvp+CB5JgBOkD+Hwd5Ox+V8YhmbqfwjssI7HvSBlfI3EIS5xSIfh7jAYZcfKi/o50ioDuszMv3y+tMRSkVWoTPYkEvNlyQ9xw4xr+NfHsM+bJSabvFe6DM3Mb1vRqqKC+L4mmvWWOn4QZyFTPgujZ0HyMAxoVQ0xawJgvPFnYKHEPUKJxSuSmDmWFUU1jh5n+sXlz4OjXNO9OYWE+TmTZCQim7GyjIZrkv5w8If1zdRUfS01yhW2KDBCjOECrD/G85hevI5h+u8n4aNL+3/i4r1w3zXdf03fmw2zCTrnrVJfU7fWvTDLPjxjYPz+NBDVoTJz8TfOOT4NZR36rcVHL4dLYp1S5sAtPmcsh1elSB7sHCRMBEviYoPR5/LN0q3dNW0mGwEmPnJ79i/MCLZrmCZD7z/Bahs2DfwQGN3hGFldD5yYjcB3MD3qVgIMgnAMUoQwxOecC8jXroJwnQAHYnl18xrnx8zOIEPDcjsrIqwyB5hQ1mDmRWxIC+BE7/DuBxuLMrKBaacd39B6+Um+m9dtdc96m0Vm2DEzz/WRZy5jeC/LAAG15y6I/CD+0gxV01YGDPd9r8cZHlkzSpsMHaERVWNsN/mBSDBENCMlg6RBz3L+XGqcygpqNGRknXuMQnWualaBLcjCMIXfPSBLAPwrZGp/eAcRe8+wNMBhOKfHK7AMPnT5r/XP8pNUOpy19Lmfw1BZwQ7y87iiGFyHn/349TS1aOuzPqqZP/67iirZcT9mnxjtqw0ai+TKkWPX9zQDifhdaxq114Pf04pbntCi392r/PLc8NAgqa8rrXGf3F2rr3nGqgJ6xeArG2JtSO02m2i7f52hW4s+otJRI5yGS2FG4GUe6z96zVXddj22qDv8jA5zUnu2S10+7/Sxo6NdtXtMV8tjc/Xbnv51IFvaZqgwB+60jzTMBj2MV2w0rLHEcLZD28IbdOaAICwg8zH0/qYwvOxjch0kk8NzycRQV18AH++IOKfmASE1QFyoyKBdZv5hhxx2w2ErqVVLnA9LH+zuHI8HXiAeiaMycU6eOOJovaqhUvVoq4iWfHW2tVAdARqPApyUraQwT0XFhSrjeyMkZE5jWycSS1kfhS/YZyDMcnZh+txecfP5rIqtozFzoMABUul2HXlQy3p+f0eWBvxqu8NVUVerkppyFZaUKM/8Ulhs5aHIwCmwY7d5JiH6WMi3ZSxnw+pEly4cmTbi2qbAQz/xHjVe/KSKh1Y6bQPKYfleSCqsq6FwdtQu5/YHUFQ0R76CVrH/JHU+sFh5YQXmwOwDC3u9skj95HJkGjtUcczW6p21Vr0L1ynFHPeNIJi7aOJQ9SxpCD3YxhL1mVdZqNJ9pqn1kieUP9xdqf34xXlWGYU9lnu71dnVpfaOtuCaWlvU1m7X1qqmtQ0qmFClJx54QlfNuD+XsnTwDmZug6PZtsQEN/Y2u8femv4DVa3eHXVgbmc7MJKrKVl5GewVbvkY7B/CmQBFCJs7DwwP4xIvF2b9i1TfKzRoVs00/5g/CMPyhCU28FuQNmZ6+DosT3BYHJKNvQx67WcWCQSgWA84bLxBM8znTqvSRwAEHojnKCGvofl9ESSo0ygvKlBleb6KQa/9+SRH5GFLcUcopINyYYsdGBDl+5xhf9eajjqwIxf2HQLNsakylaladRUjVML3aRrqg36N2oApG//HDEQpwzHegQjrogV9/fiem/Snoj3FRzoIx48jtRF/oV5CjPiftMgmm09YUnzidD10xW+tupjhNpJQ44765xVacNNdevGia52v0tydwVHGOdjsmEO16JqHrDC0h5xtDGXVqxHjNtc+M3+ti6t3sFUyMpQ13qOMvJ2Iil/8gC+z8HrXr4FlrWyzf1N22l1nP3ltGBmDtpggjUAFcnWjxjHNBi1l1/3MbFbTugCP79X7yExp+grCARAYjkeHRWixmgMzJhKAMBjOnLNfAeAI4Xyf8xDGjhPSyDc4ljwe04V3EQKdHRKfNOq2GslAAeHcxwZw8qwwKub4vLBFTauqjrtjhY07HJ6PrLEfCiNpgAUHkQ2An08a9kMSkQbpsnVDeXG5n0/HjAbkjDmnBaEjzsQ8OCDfsWGl1pEHtw4KNE56cMR3XooMm6ISm6elXJVZ5+bLKuVmOxzTF/laTZVdZXBl4bzajoHSGofi68fVAen4sagtuVfq87IwsyseqzXMbrjPh9qP7dM5MgV/qIpG8pxaX9cFvzdzwzXKqfG9guHO0TCV1jh+RZXTrFuf7mAdW7kX17hMheR1cM8f6EL+eQtYyndpYhnIQ8xHXa5cQ12TOD5EUusjX/7hS6XMRGMxYIXSZYX6lCbbP3LPUmZAw8Q+N1+Fl5LsFfDgrdIMM3CJHwnjDzeweDsA8zExMnT6OaYI7zU48b+QKowMM/oUMwzwwJxIggASpxFsmZwfxMgaM64nWspVWDp0s+GPJR/q2oRNpOnbS1Osao0aY4Z2PlgwhzRiNyz2c2NT94m+P24zSxhGhJ0ugOMzIoApqId2gCMAm2s/E3uJPFIUVEqWLrBZUH1zu1asa9WKtU1a3bjaqm2DJXirw3Y5HduXDAQ44abwFYjB0aBB89rknK3/Dw285n9yZ0P/gRTD8cPwBUaw0Awt1/Na4UYdmEbOBa8Y581+w8yCl+tp3aJZmmcps8S99MK1S4PkGx9gyUeoMLt5e5I8682oPw9viWhtDgP+J0Q+cFH6xusozePSgeQatZdvEx+nTTXW3VmL9f67X3QEMxNMBfEYpEz9Kum2q6SVK8yYZlSWCo21P/uEtJvhAAjD0fTeDAYEIg2fc5kMDoT3OZz7HowDiMLb+tzzAqBIw36MwA2dGMFTYykIU3cYPOxjgOpWYoCMGCtNmiKNmepwliojrY4Nsx/lZtsG3tfw/mg8ey86zTDK5ueHPJIHjnakjdqG2hjygB+3nElfhg0OARIgb+/MqLmtU2sNppUNzT4Cpuawi89g6W2C5u0ThXIxNc4y4F4t0g90n/Y1m5+lB/Vt3a8v6LawroRKsIUTRpMqigBWuRm+QiOC40NSFeGavr/KfTH991T/v0zP6FK9ED5ZTlqn61FNP3p3Tfn1J7Wj/qyP6u+6Us851axlUWWokJin/xyRB9oYiABufgCFI9eAJ+zP4B/bdRydm5eGGnGPgYMBHsgFgckZxuVrZTOflO66wca5VaQyM+1Iq06j7Q/zI2WoZJ7LOfUNwYTrmdI3E6YFmIysJb09zw4bFRLO8YiDpGB/eRa8jt/G0uM9EQB8bLfYz0d9Y5dPdtVqrY9hUcewTSotWeomO85OTs/X4QWn0w0A5hk+AlYfwvMBGvfxSPILSFihShiufRkkI/Yb4QESYVHrwr5pg6T/DGgolA/07/T2fMPmeP1DvzFj36+4mURCS9Si+ZYQk6ymsB/OU1qlSx/7p76he3Ss/qoTdb1O0HU+/5tO0g06VTcbJE9rN12sww2Z83z+RrTAkufPlmkH6yqndZ1tB74GigVFDv8zxLMTyw7JEoESwcKP8yJzVnLe4m74SHctuci68xkzIoZ49AmMEewCAwRd/+F7pHtvdq+LgW2/UWZq9nQGCEzDCSDIOUCRACeAytmCcRlu5px7hEkGCMKwNfccHBXJdnjYuAdA8AIe3kQNqxsXF8uNM4jG7WyJY8eMhDE7SEOmWzq5OMXMsrbWxLQcnpFINJ4V8gUKyJOPPDexZ8gHZScMz+MejqF2ykanAEg4AkZGntevQh0E/VtBQ0Xyn3c9JW7werXqvbpCR+haq06vv1rzLEufwyx9jtTV+pFBcNo9vzW86i2XWvWi1uklu4U+n6G1vmtQ+Ww7bWXAYUUOnmY6HYCHevifJHgjNgwqGvIlDqggZXHApbiQV58RSAAMC+uT7CKao8delhq7Y68Ko8BoSAOYmE0FsQ/uu0W6/w4DjCFdJmza2B5R4zAOy0K3YMfkGC/plRNA4GA6/4XenEwHZiacr3kmPI0KRVkSY5q0OWdEjNkGzEJgh98Og4NpNxnnhf0bA8gAA3GcFhIsz3li5kEAhx3qF1KHx4eAPmF2AXkB1IAmxM0dA3hy8ckc+SA9ysHupIOlfxNoeLkUXgvabslTeX5t8PmS7rL8qNWB2kc/t2J2tS7RnZY4O5jhB9J8NWqZBq90HqtD9UfD6xrLmTstje7Kub/p9/qJvm7wHWQJ178iciBNsxXEDLb/NCFr4oiiGTaAI6pocXaAJU1R3I4jWcBGQ/L688QBSwienmN7xgyI+mGeieAJHGY/6yfVBkjGzPmIgfOTXzn88waPbZ2JBs8Yg4iBBaTEegZ0PNIJTGfHMwERL1BR1cJLU59zG8CFnt6Rkp4fvzAFhwCQ7wdG9ikDEoF8HcIDCF+SX6QCX7kGkAGEjhAWyTkteN1eITDheR6z/AFKEoZ8hPeXpEFY+yd5YUlFyNNG9K/vOmhCJl0sXjNhZ/yrcLF222NXq2MP6VPuG3+lcyxpDnfjF2mNpcRcy5wz9MUQayBtY3b+Zv7n9MvCM3VmySn6Tsmp+lnxGTqr9Av6btEXwxgTtJd20jdtvTRZaszVYsuwO3SLHtCtds877QLLuCMtt64yoG6yTNrT4QcSPTnv6f+TFGVLzANSJFHR+idwFqrcdh3ncdYAL+uizGE+wcmuq4pc0z4zW1psA7zEzARzBUZOimeGyRYZNAukhgbpHzdKXzlLuu1u20Dl0hT3K+PrrCbZRuLlKKoMiQA+GB8mRHIE+wIG9W3UtWTGARyNapWAhBzhuA7hk3Ck5wP+2ByEQeUKQHX6ABJVL0gF4tpxD39GzvgCSgBQLj4SKJSN+CTv+8H+4nl2AKXH9wAOY/aoZsziGSzFmn3XiCaHBVNmVdaD3KjLe1/Qow8/Fu7ubIZdaaCw5xdWBMzSZasCI+0zlhdXFf9a2YqFyg5dp+fG36cfjzacRh2vH476ir479nSdMeEUfX/sGfrO+K9q3Rarla1dajlyvBW3VWakPKe+qY6yAshgN70xeVlrMM3QLP3FeXnUZ981RD/nnCX0HtsGgJsP6cbxN9fuf4AiVNzYPiaSJtgy/o9qW1bMkD8z/5ifxjHOTMNOZLXnZ7W5RvoKmrvY4FkSR80gmJy0u1y0u2zyBWYaQPc/JH3zu9Lfb2K0SZpqyTOdj0BVOp45hiUAQWLZJYCAuQEV1wFITpOao+eHgmroI8+mfZEESJlEioV0iOtzgAGwSWO9KOEe8ew4J15PLpz/glQJNgvpOU543+MbQeL5fgBI7powgA0VtcUShuXjYyx1B0vvKmhCZl1CGI+NbGnMhGhoiIZmSj/bsU5OjdUBhbtov9qd9Zth39PhQ/ZVU1WTmkoXq61grTpKO5Quc0rlPeor71am1MfSLmWrOpUtXuausUeHbHuotp6wuVm/2uzU6x63QB/QbjpEu1haTbbiN1FjrYJt6uN0jQlPXmaQJfQLPaY9dKEe11KrcLxDclds+neBJyqxcElkkkTSAJyonkUVrcxWMgMopZwH4BhIPuceihtz007S1i5xfHm7ypLkMUsUvqRGr9tuxnmIGTi5Yu2vEQ5dHS9y9MSTro/fSmee47BPSbUW5lPG2Gg3iFi7Qy55cx9GtnzB9BuOMHTC4GH0yi74w6g8z+eAI6hQdjAyAOIWjnsQgPCt6Md9LnJxE+ABOJ6XSCAC44+kQgJxHewfu2CD2RGOL9cTb1wtU3AKwydDBkvvMmicY1cfNsK6DWwS1DFCdNp/R/eKR1UfoK2KpqqmqFo9eZ3qKGxVpiRt3d09a0mxyqqLVFZWrOJS96j2yyu1aVzhfrWmSKmqYqWqi6VyF6cmqzp3jZt+YBftstf+2mrTrVRXyGvDQk3R8PBWY1c/bwdfjbUv2y/FaRT9tM5AYvBhx2ATzTG0eFn77q8oZa/nouEV6itmEmqcNxWZjzMkTbLuJt/MH+dAs9VglDScWW0LfoXOb4FrNmMbZztbcHHh2rpG6W7bLSstPR7JTVlDkTvTYbZzN7O/NtFp2sLS1gbNAGqzkX7TbdI3vif96g/STKt8tVXSFuNs/1iFY4ccwMB3c4KUgEHtAqpcABg8AMEOxodpYdhw234wOWECeAAW97hp4h7n9uonX5AOgAkSxl6BkXPpAo7wQQgqD/D4Ooyw2bGkm+PQynyNMfLTvflKd2fDEu/B0rsGGlQymCxO4M6aDYF9P7W6SSenxugTeYdrQslotTavc8i0yirMEJVmiAKrGgXuNct9bfmZx+A9H2op9xFX4VKW+cj3ZnDoHmH5ov1dIUGRre5TxaZ1GnPk9tr88Pdqm62314QhI1XlYhc7V6g5Q331gOXKa5HrVj+1Ere9zneYhZoQZi74OTR+DPKOERKmYuwIHbz6In2g6xrDhyXj8Fz8xTGy/gGB0qKSAAzUSFZ0Im1QKgEMwCmzL9dskHiIoXGcNgvpMQfthfnhVO8rm6pT3H2g9EVgwmUFtgvH6SuWO2wfFd9c9RMfhbvqagPI6tvPz5Oef8FV7yrfaoLVOGOT3XrdrwVGZ9i7w0Cipydl7B0oqGOcm5lR2zglPAAJAU0wfwAR9/EPgWJ4HyJguM75h8byOc8wN4RRQ8DBIAVSpdN5YQRwdG2BxthhI3X12hTI61XtsLT+dqUjDZLeFdBQbsoCcax0MVrcfAntbwVovhl1bHaYVmVXqa2rQRWWMNnKrFqbWtS2rEmFhWbsChu3DOGEiVJOtcjHYmeZ6a3+CxPlynxSYoeUCdNecW61KgPIkihcU6OlNpGnV2nYQZtq0w/vox123lXThk8wlJu0dNMn9MPqr4S8vR79QA/aBvuT7tY8jS8fpvIUkuedIyDR3dw/7D5QqkW4RNsGxg4SpwAJafCY4QFyBE4ETFTZomPCEXJrL03SVy07E/rpWd/TF7Y41DZkOgc0JkYBRKwi7Lk8bWnJfIqV2pMNuG2suuX4eT0tsZ10zT+k7/zQ7qcSpiqzBiZbhducKTNW40YZRHx5MahEvseebBjtDC6EJQwlPnKOc7gwd81NaWUi2E8QwAjO58Fe4mgHsKAgdfD3ERUwjIoBVh8BVq1tsXFDpWHVBY7T53xklLLeOGSYtGB+VqccLz3+QExrMDToCZvHp2pdpUPC9+dL2AB9eUNoxKjcxJdsFCRecx4nZ2J8n68XbHI3uE+v0O/dd+9r0Cz0j93DeHivfyMq6lRdVOkKtuLmwnWsawmf2KvCQiNhmN8VG14X050AoDCL0Dc5AirC0Z0wbyKMT/oa4pxujaWw6AO4DtcmaXXZP7SmdYyOKl0279c6fs1XY7zXo6Gl+kbze/SR9Oa2h3i1GFZy5G6+MWVc1rqtp2r3p36kvxbt6w6lf+gbucyqU8Yame/waopKW4frcrtvnqinf3KpfYrN9slC73ikTuPwS5RQgIsWYXbgUjVrlubqdy88qluP/YFWvzjHYVlxH+PGFT9RP8BxTn5oX6pzmeM/oTV62brC6xHMvtl0A2cLH6dZ+gxxflzNSI02+k433XMGGNN4IJohLD6zP3PRuOZZlIOdPwPhQRX7GMJydFjSDbOjfQ0rwAbMu7PCHr8e5zCAh/2hAWRZGRM0paefzVq6ZNU0YNExvP6OznIe7FcDOOLGGCJ3aYkulxVg0162JC7RH2xyL3d1N7nfqnDV19v8rNWE6gnm524DxoqHJUyBAVJSUqTOVe2qHFsZ/IJEYfCeWgldka8BC3KY+8hbagUZz/b2yWB/KJ6PnEJt9n/SLbebaxRwNfmaN1so4QCozxZuerj+8vJv9PFVp+UivTaVu6R/14d9LDAbM+GPVn1j4ls0w6dvqj2f+6muKN0jgGZDW4lUXunzSmI30h2//lk9/tML/eQSpwhbk3IcdIHxYxcGH3IWh6wh2qvTqt8Rs67Rg0f+RKtfnu0YLKMGdAlgImi45hivw2Jip0DojMbvs4sevfdfetadxkKr2m/0mqPU9s/Y0dIUS58pU2wLWVO843qrik4uvENyYUNf5iYIlAOBHxVH6XweRtLsT9jkvRPNG5YoEC7X9ARjAujuh1hyd9lWMX+Uldl27s7T7Hl9esqa+BOPuh3c5ANpTyf+ABM430nQfK1mG1VWD1Hl0BobTdaV+T5NoZncueZbNPnuIlIuTallbnk6T9955no9nV0T0rzCsmZrC/uFVsrYHoI5u/MMqC00UUPK6pTnwhWXO61SNxmN4nsAAGdFSURBVLCfVeCuI7/EPWNtmRoWrlHd+OEW364pVDO6lXDk2ucAh4pjAzD8EknDkS6PXolJTtQoJeUa8+o+hk/ssZ/B0+ZjGLx3C3X4yEuJ3lK7Ebp49o/16TVnOsLr0/eGH6avHXScFvXUv7IyX4PYEKJ0yjBN/OmH9Ox7f6SS0XwrJ3dzMORidTe1asLn9tWiix5Qnu29sK2RdRR2Y2Ero7B7pOsxwMVtErQAHwEQ/p2rLKlu+Yrmfvd6tc1Zqaw7HXadRHUJ4PE5W7qmzVlp60Asigv3zT1p6189XT2q2GWi1j0wyx1osau2T/WZdj3UsVTzGldpsd2blWmfXaUa20LBWHe2IKI4exE8PoYXnG7boCjgn0uTMAkFwLlNSYKwLIHY41CpvS0VPt790sysli6Sli+L4TekQ8Ztod1t2bY0NeqclhnvLGg+nqp0n1ajuprhYT1Ny5q1bgRetMGxoTmCDr3SPe7vctIFelz3WuFoslCvt75cFAYEuvxj83DeZRcVFqu9jwHSPlWWl2hEwXD1lVoJKc5YzBaraWG9xm4zJjBCPioaUibIYGcUoCTShkECjtQ0o6whWz6nhgEK3ZP/gnLMOaBa7dZhoIgXFgCGDzjy6pkuEOAAoG5Lnu4ROn/eT/T5+m+Fnuy1aLzLdrk+aNUp7X63337bkOivh0+drvc++wtdWrGbu4+R9ntFE7wJpZx6s3b+2sl66mcXuZilrjnUNn5Qf2oUN1EbOUZdwAxlef+JFffo3gPP0qqZM+1XGGJTtiQdwEO6zPdDynAVx/RY59OpiUfuq5f+cZurtjTc505U1PNdB73uHpvDvL7lfto6x9yQ2IF4S0se7oT+DJuGG84gz6f5AIQTDrYO50FxoEnx9j+OAUDE94H+FDvn+tt88QZElB2swJ3z4x/oX9+6yPzZ5jy36KrsO7yeJu7GZYvFCmWBJUwct0neR2NwlhkK2VcA5h79yzowry9XOlxBmGvGe5kpZrHH9JJu0SO6sfc+PZx5Vs9kXtIDLU/ruobbtKphlXm6SOnutIrKS23YuUHN1L1hLDJXQ1QtPWoYmsnVHAcAwjnAoDW4BkwR2zm1zs4iXE+5yap8bgkXtuGv8fkQH6vdggwk4CotkcoW6rPTTlB6x4y+VX6KI76alpiV9tbfbL01apyVTtYWse5lQ2c5rAL2gbUKGdckvXa4N3KY+AWlvNbEfMeP9UwMiydrmujguGcb0ceycC/6EYZjvuOX2mDgHuE4VuRcuf9X+Vjp/9XuKKtyR87w46q2ps7XXEVHvAggWprh/VodYE3ieG0eZigc4zYfZv+Ewlt7NwtNRruEt/owp5uM/iw0MTfdHEGVsgeDDLy4DOFAFgf7h7AmJ6MZc+P5hlThxLazjnOCJuls6z17aLTSzk6P/fnWER34YGnQoHltittCYHRhIH5fz0Rv07XW9lcbLA2GCu9kmtzjMCzK1zmv1O3hGGdPFQaNuMGAAoC1bpD7Op/RakuyPDN4U0tzUFR7XDtszxO/I+8aC5OJ/CCAkdQg8juRJJwnR4iWADzYPkWE9/knjJwKHwENKl+5qx1XbVfj1qozaDhW2lV0KlsyXz/a6sdaNcmi+HXo67rbJZ9hFuErbblnb0ihC00a+3XCvC4R/pVxkCA0JPKesa9o/EeHX7RqsEVc1uAc3/UR95NGzsS40dEKccoOXSK74aAhxHc/RWa+OFpXWVJucAFbliCG5Yl2MQxw5iUrFF9oF4RZFu+zdrGHz3ZBHWqxMKddLZSRDvRjGPCFBgW74LCcPmXHJod8LjEoB04yNKtTTN78MzpGddJvIonmzQuPXU8f0Sb6hkHyLe2oIwxiln/w/gp7jdcYzESJiuzgiee/JYoMwd64eVph8fZ7zYo3TH/TVRZ3rf61uLqKDIhmg6HSrDRfT1kSsY5yvgX3AwbZY3revzmaaYvnPj2hh3w20hV7b+tTKs+Wqz3da1FsS8g1Q0/DW7T4WWsTg/CchglHuXNG1lyhCWPGgQOf0w3hAnf5H5OxlrjG77IkqeDa/vhxzqBDAIqvkTpDAU+RUhU+FqzViNpaZbfp1r75ce+xDemXVkpP0Y1uIocLmXr3aWDDR5DEpu33i9dJyyXSOYaM0AJstCcdGeCBpThDBQdA6BYAAtCUGzS8FQrnPgImhqzjkHcEGnIUMAE4UkLubeO238u9fGVDpf71kHT7Y9KtD1qluk+66X7pthnSgwusBCy2wW5b5JmFPr4gLbZ9stCm0ir3oWsapBbAZn5gQimzDujz+B4p4DxBUy3lRuu9Gm41bLSfTMfM3I84sph0JHlW7aP6unFtlNTkRhGPQIelSfiG8x/0cvCHbtQ/w1v+Fqsp9HOMu9AbPWLFhRdtCP8HDI6V1nRpgOQDerFHK7Fvk1ND2UlrdftalVaUqLurO+iaQciEhjYlKhkvABgQoCQAB1EOcTvxC4MCuSO2j3k/FGK84x1sA4h7jLjhAM5kd22b2dUYMFVIGvsDIq5rHbnC6mLRQt291X16YcwdTujV9Ii7kv11cVBT/n3AAQCREZLz5PrNKDCRfzGVrFsj2icMV8dj/MH+AKi0GMCgYjJtB6mUAAblEfhEsEQJFd8hAT5SYIi7yscNiXc47U1Sw2pp6RJpxVIDwaDBoH/affIzBtQjTxlUFvR3PmBeA2j3Sn93E/zVdswjjyBZJmsLq8cHWA07xODhO6aUC8kZwRLLCHH2Vmij48XHAZmsAZCvcywZEvqyTjPLY/QzHF1oadMZHEoaAwAg/m496l6Jvoh+LYIAIzMIBx9R2RZY2aOXy3RmVV5WbkESARonIFnqoJqFuRj2KytU222uXb5XEsKEhAwWn2Dz4JHI7yB9OPchSB6fo+qFIWx7oqaV+sZXl0mfcqsxMDAG4NgFW8eunGuzUXmxgbNEWw7dVJnJDvsatNpdykd0dZjD9u8CTkKDAcpr0UCwRSDF0TfeuCXvfGD9InYc8jFKoNxyBV8jfZBISJhkpgL3OdLuqHLE2W70VG01cZrtPyRSFPRvh7Bz0Ly3tx6TbEzCeyvyThmgWKbYQSQ+b4U2OlbC5ENcEWfp2ZyvdLRNvT0seFeY4ePsqDwDpjsYiy9rkSus3KrZ8+5hqkIa/KLUgJm4opAuvH2ROFR1qsv8WVWJZwBB+OxbxgVGeWUkjSHllrQqdhvlkrgaWlF0HTZMb7XjnLhhzNIXlDZ3Go4AiTT48isg4kXabZb/q62y+U8/sH6w1N1fAIvD1dgNcUBAVGkmMsAyRZ1x0ujUFo1NjXCkV9LztulYScrCtn83cN4uwVr9v6jERSY0g9oIidIodn8AJgInSp8oYaKUiUMPyZw4IJPSPtvupN+efKZO0qb6nhWpH2pPu131Xb3HNsj2Ot2K3KmWGSdpM33CEuMgjbXkHq3drLxvbyVsM3PWFiPHWZ4wgz3SobZfmOFAPqNth6NpYwkS6+XttgLlHzQFVvcTK7L5+oVeDPwIbesCfkwf11z7oQEjLeYbPNPcxzJCNtIs85xtHvoospxkmiMuJw8CsVVRjat5u9LN1VLYEd4NUOBQejN4iN+bpyW3L4opASBKUVSg5hvZQdtVmDwAaYOUWv9An+DHw0J6dijEgIdrxN2BBmk4gdwHXmBFebLTDPPd7FDTgsPOcefAwIFB15m/XEunrdABBXvk4vbTr62OPm95ixrzv0yhHewADvVOa+KADX60b5Q/HFG3o6RJ7BvG6JIxwAIkVXGxm4aNZqnxCEC4hz2MWB/F/kHjzTub2zZhJO5Qg+fjvjpJ2+mr2kkXHvQFnW0YXaj36TK7g6yaMfBATkgXUMMc8X+S/4GUcPDG0aBBQ/IwaUV+oW7uW2qbpf+BX9e3bcrPdmJovSkttWIywWLyRUOn1lWwSmuDmgbOIbKOehdT7CckDyJ1p8KtVJzJ0/AhtS6+i2qw8PUwNucLjWTbpDnTrL5O54GFE0iSpl5VHz9darZk4DpjZuatFxuBhSm4hPNDkgeG7PuCF59kKAHR5rZl1leL7zfaSELKoD+gvgEShqkZVQujbS5zhZu7LKX27Mu6Y+I92izVv3oyoS/qVjc9oizJwP8uUYJ+lQdWjL+oX0TgJFKHwVwkDnYrSjkSBxWtprhSNVVxpRMDCRFghElABnyixEL5AwI0EkPE7AfHCFhLhk8asx9c2rYL3AOxDC9pwQjs6B/z+05Qwh2DoGgczmlcpftX2TrL0e90QRhaZiFZkjEyif46x9IGk3CRj8lSAO4RaqDEgXhp1u7iH+v+Yu+h71Fzfodzl6esFdVsGFZ2h15mBmVyku2Prd6/U1CPAvMng/4tvihlrlqZmlbXa+GT85VZ1WY/Sw/UN/Q/BgoYHABIxGEQAAkE0Dhf5kB3GHzOSwhc5+dh+/AilZ3FGVFD4pT7GGZV+36p82V1EdfpUr80sX+r2IR47Ll62F3I29Xe/zuI2ksIwAAXjlFli91nfLMXR97K7ABGAoryklJVVFAbESy8YYqASsATz6OKB3hIi0EHlP+oCjIThefR+slmksAkMnWE9SvzyXV/Z/9WKaY/CEIygODLexdED9MBZnB6gwatyVVVSk1qtWY52soYEzILrdE3howzcRPiPMl28nAmbDJ88PnUsTpw0l6aY1BOHzNRfcxGdQRsmIKSAq2dvVZ3P/GgWpe2xzf2MDqZItUSg8UJn3vxufr1Y3/SVY13a/mRLbqh9BFd9pPfK73IcYrMsACGQQPUNIADN1OdDDIEG8d+6+x5z1bSZqW2a0ZKq6xAJKNugCcAxsBheBrp42MKiVPqrqAoT12pZcqOefXgwJV6waBBkv3vk2vgVZRIHJokAieqbDB5wuhxsMCuoERlpVivcSg7gitKlmTkLa4YSs7xj6Ng2CvhhwYSnhyv3XImOuMNu+TId7gN8534vTL0G1PCt29KTE68QctzV5E+oRMsQxb7DqITUMXkMOYXaoV7jzLHWGV/98ahIEmm439eMK0zqKrNSueX/UDb1m2qOxc8orEjR6mzu9valZkx5VQdkbXmdeNrNSJvhEqrzfyJ2cFHecpH6fJHLtMXbvqJ9rnhYJ32zOk65Y6TtccX9tZRf/iQjms+TTek79aKe+a4Nc35jLyFF6QhgYjiYP/Ey/BvtSXOeWOlYU4fIFE0hqSZHApwAnjMHgwSBGlj9rCkKSzOV4aVUZaKP6j4Gom9gq6ydYOa8v8rJbChuuhEo92T/CLDc7ewwMApiqOoUZ1DCQM8hIlDSdE/iZlYTxEg/Nhof0PTHsDwyzVkOJKXyHEbQinSwNCDIdIbFK208rTM+mNCp1hLX+tfj1k/ZjNlqdJs9i+31GgLmcA+abfCkvQBkc9TVuV6gkRC/H6v6FR9s+BEdeV366n6mdqqdop68ntVYFuDSYZZq0ahcnxMFRZoy303VwEvHCHGGIsrdPFD5+ne5c/r923navv3bR/v5Yj3O0xoPPqyj2vejkvU/TJrVlzsIG0cPwzZ+YgL2QQ8dgBlpXPMsDUzCZIhaY5IHb4LyTud4OzPC1G7Ap/jmnsb9O2RP7AZ+8rF5/PcSfyvDwgMhmDmwNjhfwRQlDwRREVhY3zOCMkxuRclVAROch5dDEtKERa40GRvQCylSCjGGkhJChv6vzENGjS3hjHYSONt5m+rnQ0ZpAgLlnhdxYtMJu3lmy3aQ6FJHID0OgQqGKs1OnxviBnpNB2ns1NfUEFPkW31lJ5sfUHTKybFZQBmWtY/UMjQT5gfwzAzhWPtC8Z/mFdRphfrn9NNSx/Vn7v/EPK2ITH5rqW1WevWrtVePzhMNy68yTVptQspA2BQ0ZA0XIPq8C7HhKrGUDTP5OVmgwPc3+qjIyXLEhKwMFDA6JqlTcogyrNEKjTA+vqW6veV34/p5ehGzdewVFwk4pTX/x88JSzzVmlgbM6oY1bWtto1uyoSEf76FFNIUnnjvBC2HzycAwNu2C8vgsY1GO4kkEhgkcRL7sVz2CH3fNooFzceo4uU3AMWiXEAkXICtegbFbrBU3zaIGhgVX5KJ9v4XxYqOHl8j6scDRVgUDRmujJbYCdtZZCwlfdQw2xrfVof1DecAipZp0NkLFUe7X5eu1Ztq878rrhnFYa3QcFU7zzrZmSS74sUUEimvCIF8C0o1Dcf/IPOm3FOyMPrUU31kCBx6utX6+C7P6SnL7zHNW9pxTQc9vIJm2o5IFKFeuTINRIHQNzSHKXLMdXSWvJgFySPwyQvRDlnyTWDAsVuboOqra9Txw75pG+8kv7V8SJj6+4+GlxP7J4weJeE721m2KThVfffzMX4DWENUXdTs8/r7VZrhz9/Xrv97UzlD883fNasD/96rrel1Wk1Dsg/eaE8r3bxXhKu3n6N6mlrVaaNka9GV0WjOaEhHDutg3QavKwZSq67cw4/xsvaw/1mp4Ee0xLCdNgRr8MOvy6XojM4wrblrgnPeYedbVwzNRu6xOs3WhH0Shr00gAcNCW8bPqMH8HakUScxpV/HBkPwXxrcSaZKsP5BA0Li80QsbyHGaexob95RrO0RWqSRhfWqacwrQL30GVFZSq1rcAHRvNs/BcaJCWIcffuhe6ZUvTyYW1NmZ5c95z+8Mx1urT3taXMQMpkMlq0YIEmT52quw67RvvvdITBYc4N6pYDoPExgSksO3CVMH1muSuy2TW7W6XBYjQzDYdZAissdRhVYzkB27p02o+h6Sa7eodr7lG62UzZ1qvy9Ejts+gQ3Zd5IuQD+u0Xv6tTf/MdNf7yAeXzfYxXtMCbkLPQ19it8oMmq+PBRa6PjVT1HD+z2tL+9D3Vduss9cytV+3Je7oecvdNDb96QAUDPjy8IbEmqGyX8Wq/d2H41k6m21pER4+yHbZS2YQAm5FCwTduu5TbMc8dSl5JkaVwQdjkomDaEJVuN0brzn9chUPL3N7Ecay+TNSUsz76hK/O8alAPjwb/HzMOGymu1NF00ao48XltiFTyqTTIW4m0yu+8ZPpiWuAMhm3RY/zZ//etI+9afXy7Z+mdg07aJJW/GtW+B5Qa329znjx9vX8/o6sp9kpdaDlRY0x2ardtb2ZPmO2R+8ECu6QzXmLra5tpk2MXeabcQdooI/GbZoQrKCdT0YgkrcOc4M6rO04rHvs4pISLalf7hgpTZ04XkXFxTYZbBxaDeJjUQUMDLAWNoxi1ej8Zy9T0WE1OuH8/n3L3ogWL16kCRM20bVfuVYfbNxdeWPK3Hq+gUqIpAAwpD3UgHisMRr4O1mVYrUnnQYS7iWrqWNKYjykVACOHeACNI0GTaMZyGpcV2tahZ1Fuq3hfr2/6VOOEOl9W+yuW2c+pDurTlTJ2GEbDZrephZtduYxmv3Tfyqfj7BsDDl+1/I1OmDlRZpx3HlafdMzOqDrktzNSC+e+mfV3/yCmZye5NXU196jKacdpKe/+idV1IzQuA/sqbr3b6myrUercFS1ARJHCFHbMw3uJpda4jy7XPW3vaSVdz2p1sZVmn76kRp/7N566KAfqmi4Jbj5LMDGx+THiG34VCMg8i+s7PF99Js+A3XMh3bQwr8+qhSDLwAKgIX76QBCwgeA+Zcs1MtYlWGmfGdTq97704/p/u9eHb4w19HeqD9mF6/n93cENFun9hYrLIxT7W9FC7EGXAAO0EA7ZWBwtS0dxuEjWNjtpUIsC2DlBm/6Wbk5RZOdDhuNx7lLKQOjtCpfDZ0tmjpivKVKgZasWKLxm4wNoGG7JiROEZIA9Qzmrhiisx76mSYdOlknXPaJXO7fmObNnaspljRznpyjqm92a+ROE41jNwpACc7p89JyeZs0zB7D3Pj0nPgDmOFmot+slU6qk9bQo9qvEy50rbLnQIv91vq8occAsi0XpE1GFR2VSq0YF/IAbTV8E81YvVD/r733ALCiOtvHn1t37/a+y7KUpQiIFLGggmjELrEm0QRbYjTWaGwpxsQeaxLFGnuLEmNN7MGGiqI0RTpI3d7b7ff+nuecO+wCiy5K8uX7/7/37uzMnDlz6vu85cyZM0+49qdmLt+yA76GmBsFTzMmXnEu5l3/IFtQM7f6TrpfNsD0tnfwwQG/w+oFb+DUMLWg6p+i51xHsVeUrsRhN+leGd1tWItD7r8FubuNRDY1jkPd9XCOdIel7iNebQmj4Z0lyMjOwSMHT0UJTXgNPHdDxfpZ+i+A6Ke90iD7mxjiwxGnHYzFj77CcC1yIpCQwfnTf30My6bFbuJdGqkV6UhXOmi2HX/7xXjpwruM9SMz8fFka59As2WrfAXZqiRYPD2ddVwp2xR2WQmL8Ao2QT8UcV9MdigiKNJpnpXRr8kx4JIxF2IhnWZVg2iqi77FqYmYoSgtTKreykEDUbWphhJdj6/o6rEyNi43zRfjLi3gx/wXuieMfhVJBev1AnPcEcOy2o1sQaYjTaFBQW0yB+bS3pfJ4ydA9PEW3aLe0KTOTwmmQ3OsNkmVgQ3CuGoHnmuUTb6PBggYptVW5JPpYywD2AYOfV63VoursYX0zVG1igzbvm1OfA3H78h9zmbvp54nY8jvymXvPJs2DbUvzUXLvJV4c8S5vB5gDA329rzPQzajIPvefvhxchEqfnqoAYx5ZYNSXMxm+sZsrKTZusP0cWATj5vecy4+dndkTh2K85JrsetleuO1hl3QsblOTjm7z+2QgTN0oHAXzWUrrruvy0oRfLwZbiTTBTH5xBLP7BPxkdnrv/pPnKs77NZX6nNMRRRWZXRZOWB/KpTFsNpJxdXEyxjRq/EyHcWJeo2fSU2miksPXxLBaBqXZsDSNiIfZgUyaYcyVTU0O1Xf4FSqeuHIrBAvx5y581ZuEYzLq0STXlLrAwWDQTPJULTw5cUYP2i4fUDKfI2ZJa2hdYVqCYxySlm9JapROj2/ESgaaZZ1MU4/oYTnaTzWiJkkNHcGPBpRE2hk7lE7ubn3KMzThYN8+zFCN7mKXHiSElvf5ZFeVlv+T5GfZZh9zFV4Y88LEFzRqF5JXbEk6SymPnHda9jrmV+akjpAYW3NpmNTA/bb1pu5pkPnus65mTQYNPrmH+Pk5Gzs9+jF5Jt6CtUWm6a9wxyJc2wOEqEOmRy3IsYKJHBx52z8KjiXQNQjBudOkf7bfFUmXektla8iYaFPZDVUkmZWugGCcO1kJ2zb8XCFpQpkNlXbaiELLC3Ql0a7Msb/fqzLqsb1uTPxlP9NzAy9ZRy+vGSG8Y9cZNi2aBs8Sa19wtSZoHnt1XlVLxrB1P6TEHZF8eR5M03qX0WBQAADqL1E7932LvIqB1stI7CocAKPNEi/bCQXUA3I/GogUDRz+gP6N5q7tivBpFVrqhnv005gFgH7cRewludFBKQwaV4z4F4OsMxIAYr1H57d/RkMhx7HFxiPe2nSdhBzmmSoVvvPk3pIKw3pE4aSyj1JX/z0FLlxYvIt+AfmGkZX+8uE6RZuFBDaFNbZgvi6+Yit/RiJ2uWm35xr5rGBQMP8VFWlobSUpjTWoFMPxfTk29jz1rPQhFXsd8006yYdq4WcVrLcZXlLmyUXYvpSVIpkxilWz3t1bM4lEA05KfaN+gwaBw76UqU0iDXJbObK1LElbaHsMLF9viutIuVnHTN9p0yxxexveObjmO99B9eGr8L0BafgnWNW4MKGOzFz09tYsGIp9qrYje4LJQzNqARbX5+4NipHnUVNkBEowvQxh2Dm3f/EkjeXqCDbJa2c4/P48Nv9/oDpY48gYAgK550cAx5GCjGPAfQ/CgJImndxmY+qNYaOqqbNaFjnXUouvR4wIdPOiJ6YBZTx2nMEkMyzDG7SaPK/CKC0rAA+Xj0HE9q2/HxIT7odH7FV/vum10jD+ErSMK3+adOvRrMYpidxLzAkNq1E233noe7sCtQc60L9WflovG4vtN60H5quGYn6s11oOMeFlhsq0PHCWYgufNzgRg+uLYC0SzG1AMRtl0tOwJnJ+cjfs5I6R9ORUnmSuo8sG1gSv5kScnOxJXNwtWsUfu8aTn4rNuFWIKkzbRxzq/ozlWLPdL+O+gwaJa/Hk4W0gm1WDkC0Se+ILLBkX+oJwAqsoyzVFH41iuYdaTFYLYQXwKzyBQi3dmH6/SeZO4eOr8TlT52PJ5N/wf5vTsXcYzbi3OV/xlMr3kQsSs3k0QqPZE6zMC9zlpToasNxu5yAsQOG4YpDb8RtB92JzkaaV71Qw9oGHOL6HkbVlmLKxGm01yiNlIYkp8wwAUdaRCNhLKtZG1qvN2uYWdf0dujL1EBTNNKjvBnWxnIUsAnrWKZ9qIWWUeNs4KZnO2IKmXW0m8uKShCOxTAD11LkbAsOje7Iqv5vIjFZmI7XUbV/5ZECzP/NwEk2VqP+pyNQd+YuCH3yPNuJxvbQYfCWDoYntxyunBK488rgKe0Hd1k/3keZ/8Xf0PnS6Wi8zIWOv05FbM2rJi0DnlT6agXlobNDP/kzjn3rAQJnDblG7vuWbeRomS1J97qRRbBk07+2IYKLo21SgNF/k5zOektn+9Rn0Igi/Om7y/JbbI4qiDJUt6s4VMP8r5G1xazoh1iI9/Ep/oF3CbgY8a9vZyZQ5W9Aa7wDk3+0j0m3J2kcfsjkQbjohTNxX/JPGPHkXrg280lcOOcmfLRe2oRM69YwKytrmLcR1+39a1y894/w+UdLMb3oHJyVdiGu2/NW/O3y53HrETNwjOsUXFz5a9x6wEWYPuU0oIPMb+ae8X7yuDHRNh8zXIMCevaiZzKOtlnVDhxYYJ/HKH4hQfQlbzhuA3BDLXDlJuCFemAIQVHLBDTiJnONPk6wS+MzUfRHGV6mJ/Nz/IQXukkjjGq//yZqwZc4ruZFe9IDMNIu7Y9eg+qjy9lXEXgHDoXL60Mi1I5YwzokKSy8JcPgG7AXvBV7wttvHDw55Wwz+rUhaeMAPGV5iNfNQcfMI9H6R5pTnz+42XSzcDGZGbOt+DtjcVZyAXzFGkCSf9IjjmF6C4aeHGmCTRwdaW+dBwsYHXfnoZ+N33faAdBomdkMAw/xgkiZOQhWQiq4DLIV2AAtqqEpNJp+txFV+ATLoLc49cxmZU4VIjVRjJ9qF+XuSW6aNNnpWlYogGg4hgFTynDtp7/Ebckbsf6sCM5bdB1mvvtPu8iGL4eZUvuEmrH/gP3xyHF34Japl+Lw4eww+h3LH1yMMVUDcPMhF+Oxk2/HuP7jCTL6J1LLpi35bzNYtPFcc9I0U8Acc5OWkSaSAlMFpZn0HOe5IILXLsDHsTdZs7l0X6vp/zB8ZgP3jKPpNXqmREZIz9DAurAYoztdi6NxOE7EdxliSavx/DdpmghLNO6sU+ErzTJAETmAabnmR+h44nr4hg9n3dwEyka4c4qRc+QlKLrsNeSdfj8yD7oQgb2nI2OP6QjscQoy9v8Fso+9H1nffRjp486gJqpEgoLEnZkJdyALobd/irY7aLtsmEUFbcEjMhrNMDZwYt2zGDx5H4J5I1sq1Vq2aIZSpdz8c85E3VpGPGshY66kzDN7bkL6RDsAGgpNdr31TGwRbDY2Y7sQqhSjknSZSQuauSonXuZYA107xRTo6rNa2TERlI+lBPoKCqQFUF5Uzvuz0VzfhAMu3Bt3tNyICZ9NwZ8Kn8ONr9yKJStXE6lFaPhyA+Kb6jB88Dgcv/uP8KsDfokrD/8tDtv1EIwoqCSw6LDrI4+mQ7jpoZm0jdkzyAGMWSyQx87nsgQm7VX6Dp5oMfYPw1j0yPM0POsxEZMxECMJmfWoA8uyJEhTjWCeq6k3yorCxmeH6QUctVKtxpt7NL0mgPy3gEa9qsUIx953jjm2YSwtAdPx9J/QOetv1BQDkQyzPbkVXvAwck//EzXKLki0VCHRtAHJYAsS4U5qnza76bx1PRKRZnjyhsA39mfIOvQ+eMsm8xqlUZpW+klD1wsHo/Pvu5o81U8OYKURpHWmzr4eU2f8iq2upXSd9pLuYJ+Zczskpb0Fh+VFJ6ZCbIoK4bHbOd8x6jNo5KtolRG9NafMVTRlqGx1riOZbSqOfbBkDQ5lIJgployUZq9Etl5xjSGzmI50H6m4uASluWUId0aQWZCO0548EZckf40NvwrivAW/wsXz/4Ab370dDz54E5bNfd8ybAelvpaPl7bQAII0hgAiCSN/xnmfJp+RpUH0YROBwgCI4QKLfJdWRmplgDSPy49Nt75BrVmIUebboGqXbIwmfNYINBo6+4IMVUAtI/BR20SjIepXwULv0qdRVuqlve4JsP+TI2dbk7TMHjdfYI71bEUkiZ9oa0bzDRfDW15JM6sL3sJylFzzKgvvR7xxI9uM9WH0pOJSEGnKi9ES2rNtZUmbZ22JCFy0DJJddTThDkJgygy4c3cj0MLUWOSk4FJ0zCB/rKfWIVAd4Bitw3RGnn8Cpr/xJAXUF5b3dS0lciwvam+hYwrEEPGu5VfLq/qZq+xuy7s2Zl+pz6CxI19aAlXc1F00CxOrAJWxnsno/W6tyKhJnNI8AlEJvSEBqT0tCA+ZV89mCgdt+fGgvlBGZgbKS8tRlFGE5tpGjDhqMP785fW4P/EXjLxqMj7AOty/4jk8/sgfgSKNnLCKTotIy6j3nBE4FT0nDZ/dLtudplXAh4ZXVyDZIS0jEDGOACT/RnGV1mvNhEYDBmEoz/V2p1AYJdtrDctMHtHunkPBsBsFQp2cI4IqM9vcruGSKFujibpFL1Y5VMDWcDryf5qCZMfhlx1vyuOYRyp7/Zn70yQjYPT8ikApuORBhKtWsn1kd7DsBiCMS8BoJEuMpRFTsbP2LrU3r7nI+GJj8QxiIQKwFr7KExEYcwmSRqOzqYtoGLx5MEKzDjLASTW+6T/l0e+QPXDqy8+gadFac01XBQwd6dhyojYLFxtq01bOlld5zrI4YNoRUon6RDKncskU0hn6qSi2eE4T6L/AlaAM1pozGTyyVzWLoIh3N1Cxtno7mamVut+WSkpLMbjfYES7Yqivqsc+P5+Ah5J346ezz0XtCQFc/fDvsHEtpWBaPotKJpWmEQhYLrM2gLRNWwRjjzmEx9QmwSiyygk04+swmjHP1LncpIFy0rH8pQ+pX3bhRX1qQoBJpcf2yWEtZZbK1jer5eiLBBleJDpjbAH7ZuIabGJL5PJYD3MsaR7uzmiPb0t6LjL8R9PsiaNlyLTR5YsQWfUFXB46/B3NyPnRFYhWrTFgkLiWRtLPJdEtraLzlKbZfF0Mqmv6ySTWvQm9mcvzCE13twfpu99IRV5m2t5NmROvfxtdzxYbWWf/WVK65UfuhbFXfp8CqCdwLMepVxSiXEx+/FlyzhSPpMcYqfBUSJ+oz6CRvND3ZaRxlIngYvWMvBYlZDPVSJpevJLT25+/BkrVwdwXU57q3lDSLrAh8yTYLEn97SkjIwMV/SvQP78cLa2tCAzy46ynT8EVid9h0dk1+N2Cq/H0ay9RMbCMfvoblPPWPGPJBQjxrxZBp0ZJr5BWIMPLepJ/E2I8rxuhlS1ATQzVwSrqzIBpAdPxmzed68kGb9QSUBoWF0DJIHayqrLxUWzIn5Hosd0lymd5dqTT/l2k6fbDTz7anhitbEvZdu9VcJcPVLdTNtDUpKDSBZcBB+OkNIgFj25jewgM+qWAIhAa+c692oTBJP4TcFR77hNsW3/lOfAWTDJv6hpl7GpA58xUW20FnMpjvoPvnPMLlrqaKYiVTe7cxI1Ww1g9Z8nWRqWxIFNZHKB1p/z11GfQOHOW1d3SJk4nq0AqhkLUkoKQ3lrYlQaMFtOYgLG8z0XI2LWNOwMxU0AV05/ZLW13FuXl5mLwgMFIT6SjobYBY747HL9dfgWObjoO9094Fbe/fweefe1FhFsI2HRqFVcWK8FmkNUpeaABAKNdWL8Iw82ggBvebAJtabupgx7t6rO7toOcTRNQ7cAHOnmuz3f0p68UitM8y2VonMYcBQWPOniv3iVySFk7pPS/6rcl9bzy9T97h0rCsothurTmqZ3iJNKaLgVHjNkc12HSrn+8AJfXDvO7C8rQfPfFRFI9XHoOk1vEa2m0enmXgOIAiALJxc2krXNdM8DRud2bqf/Ki23tcikOwyI18BTtQ2AeKeVtlLYrQHlmgMO+6Qkcprvv3edjwOhxpuy8mKqJ8nW8am32XHtLKhVDWCbdo74079f0kfoMGk1/sfNDlZ24S0Ww4FFR7F4dosaP01ApMOtW6RXo0RjGKmk13SSKmzJo9cRQUFmIn6RdgDun3YtNi7Zce2BnkN/vR1lpGQaWDUKoLYiaqhoc99tDcWHVJZiy9jDcO/RlnPHU2Zj5Lm3jlmaacNRA7kxWhA68/BmBxTyz0XEC3jZqj4x0ekyNbAexna21RZr28nDC1FEUBJohoMmgjYRDjOKBJooApe+MStpqdrjm3TkkP9B5PNwXksBJCtw7cE+UeXegig68D4MPOZC3JlF2yl4onjSKJQrz2iaU9rezFow2IMmnCb7xLDxluQo1YeLiZLAdjfddijq2Z8sDFyG46E06bOnwZOXZEjFtzVOVaSbn32wuq1GkWQy3CFwCiqOJ4gQO42nTKJs7s9IAJymNz0RdNNfCz0r8ilL1ZvnE+CctfpT90clULEycOEazMS+dKzyVE/dWCynvVvpwJUMH4oiLfqGb+kQ78D7NYdQauzKyntOoizUhW8/+5aFonqnOxQhm/qmJEeBP79XIVFOTSVPp/XhNUGx3R9GY20njrQM1zY3I82XgqKsOw9RzpiAj374OvLMpHA6jpqYG4WgYA4ZVsHQZ+OjZeXj2upewceF6HF06GVPH7oeSIs0HlzSmNtCrA+ludC6vR+aoUjzz0EM4DHuxNppHJ4NLA8kaqkvHIsyjIToQRaXlwHGFwHyadPRtmtc1YP66ReyeDryPL8zs70X4HM/gH6Zc0/rtjnv2PRt1evjXQ5L2RroaaW3HsPOOwJq/zIIn9e5Kb6S40Y4gIg1N2Ov+XyBt3y2n8W+dU2xTKzz9CRAyk0j+TPMNFyL09rNIZmaYl12TbgJBZpNmSmjaEPtRKiHR0QD/kN0QmDSd5lUF4h21jEyzVGYq9y5pIn1Pg2BJumPwSKtwb4BD7nDL9+F1lxYlcWkWPBnb70Oyax3izf+Cm9rGJJXMRvpRbSktYUn8Kbor60AU7boLZR3FGoGvuYxxfZjK2TOPeDxmPlrV1dqGsWcegNCqKKY/c5u5Xz6X0tK2U96nmeo6AUPQj1URKCwwBBaBxk7UdgAkOFlw2Bg6tvPP0sxVxRXIulca0YzoxuwOrI3UoyHcgIqKchz664Nw+LlTU6XauRSLxVBVVYXOzk4U9StCcZ5G2YB3HnoffznjEULJj+NHHoiDh02En+aHxpSiTW3w5WTiXzOfpc+Wj0qUEnTWuSf3cMvEXP4G6UpJf+AYgmZJu8FTsKoT7y+bQ8hEMYvAKuDvMyzAi6CEJu2BEtyGQ80Lv+wSE7Y90lV9l3Pir8/Fp3/Y/vs06oV2bETl5O9g8uzrTZjmdel+06fam9AU05ls+U+A4bmuaZJl7XHjKDtolqaxx0xVydjauxmHoHKbzzYyLcoOMXyyswbeASORNfUX1IYUAnH5dwIhOY9Ma6ZBUYgKMNJAzsf+Ey6atzyWreLy0GSUZmJY0sMG7Pocic755lUqU67sXeGb/AVPlK4puKnDB7+5F2/84Xa2SD5T0c9xJWQ0m1fTzE8iXHp3n5MOxkkzGL8obzNgnLR2yvs0WgtRFrAUnKSACq8C6Nj+dCR9YjNWMfVTNa3SVJiRHyZcVZKZE+J/zSIY2F6Eo8JjcGrakdirfQQ+uvh9HEKg3nPaA9i0vMrcv7NIH6YaOHAghg8fjs6WTixfvhxr163F3qfsjr8mH8D1X1yJpYNrcco/r8LNr96B+tpN8GVlIs5OHIWh+BDL2DFpxkQzPkyqfh1k+gw1qV5g03B1NRlGYwo0D9U+mr8tkSEBo9WNRctxPm7HUYSB1lawhttXbdLnetqjyaBW128bR68DthEwB9xztQGM6TExhckxxWZkDIdJDKkKholTYTomRZZ/ZqbJeAPt1GqdSLQXItpcQuWRBn9BI9wMMx/z161aKCO3nFqnEa1P/YQaYhNcabSrxHXGf1E8cSDNNb0ColYxAJYJZ5ncLY3EKBpcMNfiHQYkLvqfpkgCTusSJNbfqQxNGUWq36QbzkbAF2B6+jk2kNrJCmdr/9hNrO/NCmDTxwSfqGdbfA31GTT6gpaqqQpa5rfSymJd52IgB0hCuF1cUEzljLhZI81CyblH7aDm0pucmnjTHm7CgNZCnBg9GHekX4TBz+bi3pH34azABfjHHa8z9s4jgWfw4MHo378/4rE46jbVY/Xq1UCpG5e8egFmJh9GrNCNf66eoyE6tM2tRmBiGT20UppZywzYJb1srfUuYAh6uxUVZGotmasVbOJk7XT7DlKQv/0xjlIuxCM7criWBqqWmlD77MhP0tv2wra/NlRj0s2XYuDZhxhmYpABiGM1yOwye256DmLBo57oJjMXjJSkheoNBFH/4bFY++SFqHlrGupnHY7qZ6Zj3Z9+hcZXjkasuRD+wkZyk81LKsGTW4Gu2X9CeNXbZJ4ChpMTmL8uy5eQxjFD1AzRZE7zHIeAES9Yd178ZQcpktEWePOmsJyyDxmNplps/gVsW2pyU3bt7P68xa+gxnyNTyNoNj/Ls3Zvfzb93OIi/G7aoahfttZo1b7SZtBI0xlttx2yI0OWRUQ6kjJVERwQSZaJ+a381bcZLUA04GohpWaw92hv07IVsncJaF6sp5Rs8lKBxrswIFKCH+cfjisDpyN6WR1Od52NS8ZfiVUfbfXJq29BWVlZGDp0KDweyiWaHZGuKMGzhuWPIL88FwnNfm4IwpXrR0FpMc3UUszHanZOq5Hr1p9ZizJoOFumGjtArxbksnkjrJmRqpb0JZ4TqVn0QQp7bhfr3hEyosskuO190t+le4zFUD2g3MLkYGcTCI8urMdhjy9F1i2fYMgd83Dmc8vw7uoWXnfA002x1RQMtFyXv34WurooDAprkaAZHcvqRDyvFfGCenQ2FGDTM8dg7R3nId5JDza3TQXkxlLmlCGy7GVEVr6BZCCH2oR9zzIlzQAAI7FZjUbRj4Bxx8kBGhAgN2j0jYGMIy7h9WgT3IUHWutOxKaOzU5Nw7KNYQRE9i5lGLf/NKYQtMUwP/Ga5Tebm9pJyetzMcU4ZVQlxrHuW9d/e2RAY9Rh5hQ6W+OVS68kNSemtkWwkZSFzp1wq18UJpVogaDiaSDaDquq4Dam9lbDdFdF/wUmAbQ6shHxpB/hZITaJ4RWTzvG5g3HH0svwBlNh+DBfR/GD1xn4P4zH0Pjl/Um9W9LAwYMQFFxCX0emox0QruinSidqLlvZPBgFHmDC9G0rh7Fuw3BCZiIv2M29U01tc5CQqaanommotMk0zoDayiitcYAzbRQQppFDzgDmIGH6cMcgr/hJZOnNXmdTu3bz7QXGWTbX5J+zAYc8untPCJtBgz3DMi44ROc/vRyvLGUzN4Vxpe17XhgzkYcOONj+K+Yhaq2kImb4kG4Gpdi/eJpdHTbzKqhEn7W66DAlFZwJxFJozYoaEXUH8aqB36IjS9QIJQ0WOZgpu6MQoRX/BPJuqXUXnrEIA3D3jZgseSik260D8MkQuTEu4QOM4rH8NS1RDIMV954M74gStJ0S2y8R9LA1M9h+lNffZC9scykb7nNXDbto//O3gCTx3pBf9h2fMPeyD6TDIyGr/B4StIjVLZeSdFkQauDrbqzXa0GVAvZTrMIthDRHVbLGFTzJ0jpXjGK0KpwXVEl9F8AskfqoDgtnDYEKX0SQZ53JtEVC6E23oy0aBouqTwJdw+5EDkvUCUP+RXOHHQJXr9zlln/+dtQNrVObk4OtOSTNE/j+gbbJpSA8aYQYtVB5I0eQAMrgmOwH135hUbjtDNkKFKSL0DQrO6gZLZmWpY7C+PSdqV+ORX/ItBE7z71KsF2ghkcsN26I2TbzGljh8y8sSvPMccyxUSWjbi/Yg6CHRFcfkA5PvnJGMyZvis+PHU3PHjcCBw5tgjRYAT9L3wZd761ymhb3Zeoq0d911CCI4Iw/ZIINzVvhA0Si9GSIDPrI8IKizLMSxOtZW0/LLr6IvoL1Mypt2zdmWUILnjAahNpD8ZV+jLLjMQmmFxuChhvBh3/ANxy/jfzGmuaMuMEIpcvl/5Nnjl1sXnji1MfDk4BxvhumR7sddCJbI+wSUPd50DHtlvqiKCxKUt866hvZAYw3D46dgk9Q2CG3rLNDd2TlLEGiy1YLPPbwjhFMc3Mvc7sQ04LKV3Rf4HCxtB5yBxZcNhqKUU72mEtWRcaE00sjxYUZ1zNedKzE4YHYl4zcVMLZEzLnIjHh1+Bn3uPwcLLP8V3/afi8hG/w6wH3mPcb0YFhYXG31Ff5fbPQ4Yrnc5tlGZbDPkjCtE8bwNGHTaZ3RrH97AvNNfuaOzNOyPAqHyz7pmxvniPJKjWCYj6GJaimRPOxZRjD8dK1Jm62zbs65b6mQeHW17Tc5gx1/zYHFum5BGZab/7P2fnJTHjyEGYOigHy5qDWFofxGcNHQjRlzt+lwI8cOxIZFVk4YKnFuL7D37Eu4Ha9f3Y/l1Gq8Qo5bRFvAQOE4962HdMW30aYf/EWM8Qt7iXItHfgblXXASPn1pF3/9xgDN3BtVdEZnAWh9ubwAJdwDJliWI1byB6IZnEKt6FrHGd5HoXMH72GbuHFaBGadAgXgI7uzd5P5YYjsnVtO/MRVWNBvvhHuup6+oFyDFcxYQTlvrv35xPYdLhWnfV5LAJ6lwUk+UMD6tRmlDe5JYXgOslrUtaCwkeu4tfOyxzqRp9Ja2hYw2jZgp3EJF4fZYD04tEO1PpBU6tcib0pI0S4/6sKppPa5ueAR/KnsRbx+yHE/nvI9ZKz/CiGQ5zh1wHP4+6mp8JzweL5/zMg50HYdHznqCJpWmruwYyc/J8GVg06Y6jE4fiHCUHpo+Q8ym6tLboTQZB03YjeUOUt8MQy5FimqBkbnAwiZgOI3usJ4RxOCOePFEhCoxRZlBNxKtmrtm22pHf04bqx2dEH2GdZfjU1NgyLwi+TAr6YvNWdnMszj2Lsswpo8W04uScbWISSQWQyMFUHVHCHccNAQVg3Lx9w/X4qxnP0O/0lICIkqA0GymeRahORYTgHTOXKMu1s/DvGlKRalcYzLXeB73UeSV1OODK85HpLrWahzDzPQS17zGjsxF0peHyDr6O5/fhmj9e7QmvmQC9RQGDTxei3jbQsTqXiGYnkIyuIb+QSYrpCWQSYkIsTTEWgB0KRNf3qnQzcCSsMjZpR/K0oez1tZlsG2mvf2ZdNgOzjV7tCWlcLgNWdDIttMTKxbK5bPPLMwdPUhYla9hM7TMLs/FdppTGJGNYY8twq02cTSJNp3JPtZ1m5p+jnmmCghEykEzgqOuMDpov/4m8iBaf+PGfckZuHXRNfjREz/EGZ+dgQldh+H2xucRpZ3eEmzH3t4RuGn42XhsxBUIPtuG0wZfiDOzLsJzv34JsaAeMX89BTK0or0X699ai1JPPl2aMMLhOELhMMrGlGP9p1/CU5SGyj0mIEjpG0qj13fICFaK6VelNA1BFtdsArbb8ogmFlrq5842LeJ0mK19X3+2vSXZuu/Vk6R2DP/e4bpimMcRfBe/SobTlw3SA5h473xc/e6XKMnwUQgRBJREEUrbmMwUlnVlUxcunVCO0v45uP+VL/D0smoECJIIE4tJmzCnKPdm8g2ZNULwRHRdYOFmNZKusw+5D+NzZP2WgqQ59cjAm4nYptmIbvoI4Xk3UJushzudmsRM0dEAigYjuONmRpOZh/bx4ArEal+htFpD0y3TmHkuXymjWzOSriKSG/+Y4lm2T6ryh/zhPBqsmvqkUEdM69juVWfbfuJHc3M3MQ8mryJsQwY0epAEVxqSsivd+SYyIpJO3eTuLz9FzwmUqeBgu8+OhjmFsQxvu1JgsRpJZC13hbLBU/eooAKOQrXZ++2ROkjHXYkurKfXcCdewJ8XXIOTrz2R17tJDypLAoW4rPUy/HnjM+TVNHTGg6gLNcMf8+HkwoPwzLDf47vp+2D2H+fg2IwzcOmwK/Hefda32B759VF7UkadB76ID0FqjQRBE22Oo7O2C/nlxWiZV2c6LH/SMAQmDmBhCJa32W4TaXN3ssYhto9mT4ez6Piz00kFbHKf1nhLSblvumnlSB3pWBRCI/r9cJ/NISmhi39+Umv2+TmfUMUV4OPaII56bCEKCfIYmSbKLRKlWBNwuK0mcM4ZUwZfthcnh3zw5Nl1HTThW2DQlDz1pXm6zr36SKIvRv9EWsj4OwRQe0M7Jjx2DjLo5uX+voZg2WT6252ej3jNHPol2SwkgeKge3uUqod5oBpch1jDW3BF2hjgppk21ChVJRNfd4mNqFxSlZ900emoNSaaHALbWpY/tSfP6RVs7lWT7PItv5eaCNE1IDq2KR19stQwF80Jmmd6uAZvsZkFn0i02jipSnX0bzCR9XzfZm+hIRipQBYmimvPdSzQqFHtNSlK5042Ls9tGopnY1nTzaZrisW9HlC9Gp+H2z+7DhXju1epdEi+xyZ2SGeoEz9rOBfvrJ1nRlci8QhClPrtoRAW1KzAwcV74oayn+Cm/J9iUnw0Hjvn7zjWdQqunnAT5j8zP5VaN6nhqzfWYiyGoC3WBU8ny0np2b6Jmq+dAoSSJb0gA7Xvr4M+XWjsx/U028rZPnrDs5P1ZRhNcETauwXQNIwwz3OScUevfsMfmdO5X0ZvcXbqjcdUL6v8b6xgv6Z7MWG329C/ZB7Gjr/BDPsq7JLXV6Ao4DVrGxf4PahqC6K2PYQ8vxvV7WGcPprcXteM46ZPRUVbK80v5kP/RKYaXUqjVbRFpFmkhZifHjGozyVeO2KNGHTKgYZ/3DmlyJz2WyS6GmzhzDycb0BiCvJmvH054i1zCZYiap4UqsRc4cWquDl1+HZM5QEsjx4u2/YSH1ou5LnpA4E+ipJ+W/JWLNxoZ0Ck2tOQYW8vu95bQH+rGi5PFitD6cqCpLPfWxsoRXtQzl4Claa+pJlOEilry+6OxLGb/alwKqJyUhEtsCyr2Gta81mayAGXYglA2nSuYe41lBX7H7sHBoypMPf0Rno4uWn9JvQvLMPaE+krUBDFw0w3Quc0GUaaJw0Nbc2UxW1ojrZjSmRX3Fnxc1xXcSZKN2VjxokP4yD6P9cdchtW6MNPKfrH3a/jgOzdUVfdgLoG2dpJpA3MIj7YAq1hJPwJlE4ahM6qZkTXaN4YuUnf4zSTKck81IKShKuS3abZRJSzC+UfWeFgW0r179vmxLdDzjYsyvRKT9rdpC9mcRhm1mchlI14leYNARDPJIDLMXaPB9nwGahq7sSiTa1mtOnCl5fgwU/W49EFG3DtWyuxsr7NfClxXEkmNHf4r7sPg68rYsy4GEEX5T0xCg2BJcp4ji8TE7BY/RA1bunk7vIoj8Dh15rBCwaY8G9D+ppEUvPLGj5SS9hAsm6y+lF73KMNxv5wGvmsy8TrbkfLi3r+phaVK1CxT3d5RaGOBjMIukVpicdoUpaYvwLJaCcDaFdSByZ9Rcimz9VQNScV01LFoHJUYwPNH9ojZGbh2XQef9Itmr6hVDWB0U5ZkOWnIjlayOlkhQoo1mCTxtHYvAWOTc8BngYdl2IdTrz1BN711dSvXz/U1Ffj+7efgIVtS00HRyNkJ5pJRdn5WFi7Aj6XH4FkAPWxdmwI1yIrkY7jMQk3Fv0Ufyg7B7mf+XDx1GvxA9dPcMsRdyD8R0pqrwuZ+VnIKaVfQ60Va2dJGZZkG3Uu70Dr/Hpk9MuEr5DtIouuiyJPJk+QXWHGYrWkgNVkujwcRcaESchsY/3UJvZ/3zbbimwvOvK2tQSiKLIrrHkhDZMStnizqgHlBTTPaHp76K96uSGSj6G7vMGwbNw+dy2uJkjMyqJaPSf1lbe31tTj4c834KBBhRRAnfjT/mORmwgbgFgTjf3G8qt6GnqOxhlmfCMCmO0eiUaRN7nSFoKkMon5cs54C/EmlSdVwG9JAo9JWMSyJRv+ZI9NG9g8Jkw7gl5Ns+E7caxKYluRHEktq9bUgNOwQfrOajdFWxcjTTOdeqKGx1H3UIImbaSdT6cPw9DJcnnzkJHtQlfVpyaek/nZp52Ht/EaQaGpmLJzqXYZLgaXBlqPTWT8GP/Xm4UjNqCORdEKiRYo1gLWXWQo/pd9q+4WWKzG0bFCUkzBI03k1AyBoqGaNPnVJGmWjLtQUVqKZcxdk5TDtLs1UtTa0YnKjAGYV7MYvjTCmVXSEGkwSE8gziZNtKEwlI2jI/vigdyLcWbRNDR/2oxD/XuhJdSGcCiKcCvtLPr4hjnY2LGWGDz9/fCVBhBtYg2dRdCpjZJ0/vWcJ9gRRUYwC48k/27KqFecTZ0j1DRMQ68EaGmnHdv09gdbkALB3q8PZbWhaK+UeWbI9tnK0CL4KRn1cV9KR4Z4KUkDKC7fSCZjfbTsr94w1dI+krBsEw0HCzxtoQj+Mv9LHFXJtm9swbUHjkNWiD1CjaJNGiWq4Wcf+8qnMAKK5ppG1iKRGNLz800ZHP6ROekbvD88BQS3ERg7mZhNUp89cU5ImrbTf9/RZpqS+E/8KRNSmkVncZnP/MloPPiUk8094g3hxN25zCzpvQVmeJKZO4xxAiNNQCLChvQEkHTnISu7xA7niVhpMeSAkgHEazWlpT4cqgU2rKbQy2lfMnwXDDaIFRz0pbMxGGo6VVP/7WwCFUCAUIW0vrPBujlWEzoGnwWOikrgepRLDJ2NX/+CkKZ8O/OHAiUBuMm8+hyDHF2tzql0ytPLGeZBmNonQc/WQJjOfYxMbvyfSBfqom2oaC/Gz1oOM058JEEmIADk5GqtAznNMd4rKRvXQ1dtNLXiUbaGmE5xmG+omQytKTTBBD6AFUBtLMXv3B9i2H670R+IYcCwcei/30h27Ki+b4xfMWY3MmAeBuy+G89HobxyJIpGDzN5iBwTI2L6Kx1pNBvTKJbT6EukUdvEg4UYPvwzCgGKPWMycWMdwTbcDBy2TSfL/3mtZirH8e6Q/uigLyRhE2Ezm5Ey7Rkvyvw0qmYAY3ycONyZW/ot6hmVKnDYrWyTllTITiQlLhOt7eXNSTs57F0xCXnFecgvKUF+UQEKCgqQn1ZI3ggj26cPyBAMZQWGz+X9NzXRPGVafropqaa0xGN3+iC43Vm7mnZCaBlBI+ngRnrOSAIHqF165xZVO+aHR+ND6hu9J6P5tLZpY8gliFrJElrbbD4+x+N4AXfhGV6JGwDVEW6O7yL2tfdJ42ivzGWsCSzW5FAMLX2bHtegLx39z79+lnOYjOqXM0ZaV1eDmmijGf2NsePXNK+iI+9GrJPGIEEUI1C6qGVCrZTWAlaI+YfY2TSp4l10G+NhNCQ6TLg+WKQPFcVodiV5n0bQEgonI8XpM8kE0zsm5rkHfZguSugwmaazg/eTkT5yLTRlcuizRD0G7jsGsbQkBuy7J/rtO47b2L5v+4xDxcQJyBpSivJJ401Y+YRx9LW0cImllOygFqEzmzLNfNQ26QSOT1vCj0GDatg4vEMAMcDhXtNWxAwCUAo46zuD8ApUzW24bv8xKOyU1Ga9tTFOVEKF95qBAe0NgJiELUEPIgfwmn/MyUjKUdpc2p1Hpt6dTnuLkyyNOeJAgqUYRQSNpkkVFtjXQaLs50xfOn5wypaLN66a/xC07DertCVRpujBqufq62ZcFVtzG+3adHgLj2XbtREOEXTQyapt9KNy3EkGbVKzkWAEdzx/G6biaJpOtO/5X+ZaM7VJAaGjb9PU80zDvvJwPiaAigkbfeVZExWtJSljTmSf8ljjzjH1rCckj8jGdCFW6sIXs5bhoPMP0E3bpZbmRpSWluFfj78L//MRDHKVm4/1qBO19JQ62vyRKeTvUCCaemniYIyb+SgQyyGtpweAYiKa6DxnGVV/RjZ8xRPZ0q4wy5pgCanPXQnWhOkaA5QaLhy0GmlxbC0exNNYgu7BhZ+Cmn1eDQZOm4jnfv4LVM+h1zZn3g5tq+a/j2x/EeY8+DA2zvkMi5f+EwdcdSlTZ0FJxiQi5971xWsozcyGllWSKZakFDVT5mWDEDg+XxhNNZSOmtovkJgKas9EWB/1jwEMjzV1pCErE2NrG+CjaajRsoTbijytqikWjTNMz1D0VbLAmIEYduAYAxTHRFMb6jjRuhSJ5sXsaB/bj/mIIXifeQGN2ooZm+FeMYPZ61xtrkScMJK5b6t90jcc7vxpPOhui3lvv4Z3/vEc6uvqUd1QhZqmGmzo3IARFcPw6ooP8f2LL8WQ8SqrjT/rmaswfuhq5GbZpnBIb5H6RsxgEbT6hzQpEaoRtKRGgLImYWgFsHROallSNQlTPPXk08zZBhpkmeZVAT0fCFMrygDTfIF084KWbG5mbz4Z+DI1k+JVU98olppZdqXYU/8FFcUWy9ljSi7bFcYcKqnNwcZlVZj3jy0l9tY0YOAgs3/u0pfobA9CM8WZNJdhBOarUR/BPJqUVpN5qPXw7bHVcup2/QQTWb/6r3tVSpVJJWcH+whkjcxJ09CcMeYdtZA0WrSeZhnt6pauVtbeR5GxBkfgKLZD6oEx6TAMQyKXup8d7zer0mRz3/fNxs+hJS1DWZ/pUJheR+5JZC+mn01zysv+3PyZcR7r3E3NE4n7kDN4lZ3yY4DCNpfGMZpGb1Ym4VG4zll3j+zRzg7cSB+hiNrGPNRk99lnM6k25D0SUppu09hgH1lsQQIVd/5hev+fHGixtHMp/EnqQF6zpdz8fqy9vGO9W2xXu9A+EY+iidennvYjw98Obfj8dRTR6FLNN5MuExpaLcdg1pMzgiZHC/2zdqI4nVpnINVZNm18Xmx91kzHcBI9+bTp+CvuJWi0dKym3iQIjRysxnqMo2cjzaOYYjjJbq0V8DLeRRlZRz6OkfiMYX0Yhy1to4s5bZiAZdlY7uvAvAr8+eh78cBJqSHFXihCM+J416mYXLebAYTMP6UkYMgzkk9jIaHcBBrlIpBqb51qxQ3xPGjCdZ8FmnG8eVxHPVoTraaPxDtlkpFh5JtE/UyP4NF8us54J7qSQSxleyjlRmre43GsKeNJbJ9W5UxG1PcflabRTjuw2VbhffS37Lk0ghW9zrv9oiDFYrqbGp9mmddNrcLN7u1bs5o4+ekxM3DFUUMJhlA3YNjPmqziEmAYpkEil0YDWU8P0+/0uDF7cAk81CYaRTOf5GN+eucuSrNULBP3uFBTp3WXeyfvmOmg9UvayahRclHBIHWc0nCZWVodyZntaPlS7djV0o5TT/qBiSP+lgZeseApDGWTBLbyZ3Tsybb+v2ltd/mZRtAk2+ZQvRUYUyNQdDgmjgNmvXiPiejg9pYb6cgxy1rqmxzqFXWdGG4gYVFNptI3N7XQt0bOVDiRPoO+DhvJjJQuTMcZNtWXQ2y32/8aHHBYQ/8t48ZR0OLHLhkD8dmbS/F9148xY9o9eOriZ7CU50//6u/4edEv8bOsS3Cshw4fNaDGlMT4Ao8Fr7HAea6fBYg9Vw6W2fWz8bS3mwN9NbCAo28AmzhsQcP4UcKR/k2kjRv9Hj2/aKTsSmfLzCNssihYvqA4eSH1GsBYahzNatYKlJqNbaFtgdzXTfEN3MjUTpieaG1NraEuBLwWNB5qF+PXSNp60rC+vRWzjv2liXfdyfsCVWQ0lkmLHXmZrpkcy72bIEnqA6+85iHIfAxPI8DuGzcCeRp+p2mlPjTlkABRu3Cv9pEv1BuJt6TpbJF7cOXOokQKND1InzsRJ1ius22unL/87HNccIudt+aYkB+9fifGj+K5lUPdxCZxl//UHJpL3vJLzMs98cYnzIxnDT+7in6MkbR4Pp01y0Q0qpWNUVZWhuEjhuFRuvpamCKTpoGKIYksT0ZMq2c5eg/esmvc+DirCCnJexXWynzLqDpWiSjbzF6wEsNadpCJliAAYsjq8qKyqQC7+3dB/aw6zL1nAW4/9F4svfkLDGsswaHYEwXxIrK27pTss3koFScNxwxTuoojWEj3qfxqVF23MBJYHfPNaj35Wzmsa4A11MNJhansui6tpVGjGlQxnAxDnSTf6FVqWL2zWU0Rk0kuGUW9qzYwH1OlzyMd212ivm1OfIG2O8wKp56k9tRrzx4a+hoEkInm1SNuNs3Uil3h9/rYn/a+c07Yg5ItbLSLACPfwxtjGxktkkC6QENtI+fOaKBgCFftPwbF7Z12CJppmFE0bub5EePXatGN3ijFnC6tfqq0djbRJ9+a8vv3M32kthM/qFayK4btMxE5FXqNmvVKlat6yYdgdKtETIglTbgWTkSb8eTOH4x4kz7bTRHARkZgJAqLi1BB4Cx760JTVyeR116xrx3Pwxx6MIU8sgyvtWdq0IDxtNv12q9lW3tfAxlJskxh+tnuUKeLgRVH7Cs2kiFlr1iW17nWDLMMnB7xUMqlY0iomOZgJcqTeUZoyYfQl/WVigWO4lvQSrfZD7XLdLS+koBktY41yQQCG9+CTpvDzvqvUmiakS2XA2sLHJl/DYl6Axg/Bckc6pcvCaA0CpC5PBOdQz1TZSYP8k4KpTi1lE3FdqbNqfv86zb5U5uP+duaGsNBpGsipJHqbCG30TM0H2M4dQS1iyH1WxJ3n30wsLHBgEImmIvA0esYAk+a0TYy0wQom2NmJIpNael4YPxQFLbTfmBc48swrRBNnAC106IcPQTflixrsjj6MpzzNtnOJG+3/+hQw7qNhtFVdv3Uo+u5v+D5J811x/V4+bGzMXmSNc1Y7c1lFYDcudZnFm0GjW/ITVIBiNczIS2iFw/B3/8iHLAn8Pyjd6Rikf0o4YYMGYLJ+0/GLLxINvJR9haTbSRvtN5ZIQtUQ7k/Av1QwQzcZEra14RUV0pG24LbDrNdrjlsaWQ3DWR7WAwxqRjSOo5WN1mJLibX3UqHcs7ARFZ9A6W5xuAs01vASNLmknFbGOtjLMLbZOEVWMtYWks6zeSsEtg7ullQx8rDXrFaVD+BQ3eoNAKdtFELfRYttyvgdTC0xjx/7iRo1pulmj4jgFTTcTRZtYiIyZGdpBEmCxPVJYxNNOc2Mq4eVDrhX7WZ5Yk2n2+raTSLWZ+a98uX0Y++jJvHLZEI9u0/bDOjpHY45/t7I97JWjFdaQwf+9lHkOh7QTLTVGa1TprBZxIZ4RAW5efh/vHDUBTUczTWh+BJj0WwoCALGZm9g8Yht2ZypjTdTiPVxUs14RynqK2d/jr3TnuF2EdTJ09BWmmR4Wfzvg7p01fuw5gtJwZYImv7htycOukBGncRHSIKpfgmgsdXwcRpk5acgeI8oLIS+OLNc8zTUkeNzX5vttk/gjuobYpSo2lq8AihUmoYZzi9m3yaaYMYksUY8oucgtu4tsO1DNJcMsy/sJD3taUYWtcERf2XBrLmjMKtZhBUrB4T8+pqFdlOTJdmdF6m+aDUXzATT9CreId68UMswEcEzzN4HS/jPeajMkv76ZmTnH7B0modHWvOkvwekQCjYfYONnibeSqluWwNrKX9VrUAo08jvo1PjFYTZDearwgA36fmFXAtKFljzQgOW/iHeX/eLhW4KVmDm5N12PO8HzBu7ea429v0TMg5VhttTUFe92oBP4kOgkeDAKIDy60z64DGErXN+YdT29CsZPemye8geLRCpvby1TwsczobWWXXe/3p8STyCMD1FMu/mbQ7FhbnojngxfzSXDwxuBzDJa6/gpL/jlkBonQ7h0x1cuoYDLWRV9THlqv0IvTds98118TO2p6991QcMpW3S8v0bE4moWQMPlK0GTQi/5BLaRJSTbfNhcuTx+TD8A+4AlP3BmY+eK+NxBycwrzyyis0uqqxkgyfT6AoOekGAUdPZ8ROUyhjxYptZK8A2bmdzCOgSFoLBDKa5lLKNpIRlzClv+ENaoXFhJocesUUYwhg1i23ct6Gy4EXYFQznUt7aZtPYNxFqLxD0CzHOuapxZWkG2JYQw3QxhAB4DmCpwNiUXkdNQYGtaxRI7cm/ppZJoXV8ZrOBRetKKMBAZl2Kp+0kPSn0mtgDE1p1bd4DsReeIXpiw6g0JBWtHVhDch0cX2indeaqWPOXP6MiSc65M5fIT+vgila8633TZqmGzT6bU1tZGifTDOCxSzTSN8mkfRgz9LUbN6U8BM5+LnpgiNYoA5jnmmJJflNSj+NwPFSw2gJKy/D0/XGY+qZTjp9nVz6OB9Qaj82ZBDeKSpAZicFZrmes/dCqczc2f15vG25vxUxOXdguD3urh7WrbOLpItL1rCPnvrnayZcfCwto1e2V815HGP1naoe94lkQforndcOLG0BGk/lLeamyMrTadgNYSt1wTXgl8jNcePwg4Bnbh5uyqJ6S60dccQR2G/Sfvg79Y3MqnyaIGIloVqdrmXPZaodir1xGPY190rbWLYX+1s2YopknhajYTTbQNrgWbJ8PmW37TbpJf0EEgsQ6+FYs0ojZWKhbN77NjXKPEJFz4WkQ7Twn0jxxOAy2eRvaL3pDrL/RppW6kYLYVtCCz7lacupEqp7lYb1fey8MQuYKKGljzLpK2/SNT48QP12Ha6l/vVBSywqrspnmF0/MlssKk2j5Wq3XdAhd0wFr3WDYutN/61Po/TUCsZm2oLamH46NY0ZYjYjaD50keH3LBlorm/FGwRUEpf/aH8z/CywCNiyC9JN9zAfgiSN9/sZrvy1+Dkjmjh68JkejSGL2jMjRg7gvpQOtsixTDaThC533oIhxBy1+NbXvykpGTJ4Mo+Maoiclkp7yay32D80TQmYqfseiH2POszwryP8//iLcvzgWBpYW2sZkgYAPJW3ps4sbQEaUdroGYg3rkay6S1qm1wkYi3wj3gRY2mi1VetwpcLnjLj2SqQMv7g/Q9QVFaI23AlfRsZamUsuyZq6tubIZ4VkzEbzARODUmblV3YbGJ5dbik9q506O2XBjR3Td/BycIqaohnaUIFGF9hYl/LNNZ8sozczdZ61PcuwSaJv4a5abxIzOTko3gWDspdQxK26o1sSAsYpWL9GXuPhU13Dvaa9rousIjtVX67dkKceXrxW1xj0t2PLXEL9ey+9OzaTImtkDBpkAFjEWk+PRwOYfXrH5h7RJH6Dsyf/TKP7JpqvW80s8mcPcMcsmwAhBPUL8b598ND80wjaHpLc2SBRkedWN3ksO7c+85CdE0tc6cVYEbQxInsE2OqETA8lhbS4n4eF9Mxc+7YG7ym2QNq40hLJ46aNDqVYu/kn3g5kpqCtrOIRZHicmfsu5nzHVB8sG4VeyCIQFk5/vzh24Zvxb96/viPmbdjt4palLNZtoZvIkw8jJqROuumbUDj7n++WQc8svQYuNLprPHOZMF3kFF+PL53KPDwH37EMKpwZqpNBauvbkBWcYD65k463vr+s57TOM9kopS+mTTe8jCYrrGcYckqPRMQ41tJGaMxo6++7EKIaLpNhP+9NNbW0FD7kh3v5V0WMmJl/XSPtI7MMwF0GUHWRhbWbGvrU9jYVitpHzP+hyaQDsQAc08X7+5HoKtMMiFVMqsTpMc0qiYD1R47GkajeNIwjuMvBpZXlkWD8gZYZ3EKSujHDGfJW1imkCmvyuH8zFBuyOaUwxLcdvjReOjQH2Pm6ZfgwpIBbMHKHrG386MJ1ePM5GsoxShhSn45/lr1UiOLSZpqGT7NdWd5ewGNSFOE9hpRgYMO3BXBDtbQRWFEgGTo3R9ypFnUj+da5M+VJIvRNFPdBCIPw7RmmdJAVxCVA0s2M+3WZM0ignrALmR06zN+a2ITuPrb5ygOCRTL3vyQ3MDLxWV4rXrT5ry11TU0Y9W/LsKUfXgvkdCzuDrWtBx3xfmpkG7aBjSi9L1WIU7bNrbuRrjTKtgDNXCNfAp5uWk4/STgmtOzbURm7FB7HY2dgU10sF8kAwXY8dI4cvUty4i9tMnr6WZ/HcnJ1pGAM4K+wN6Ez65kpXKeDTXriVk9IYAJLM7dOrdGGqvIWE0El4smYT+mFyZAOsiu1vdQLEluPXadgN1YBq8BzF4YxWON1jnjdNbMsZrFllukY4VZDWfzlBmqkviMUZiJf+Al6sX3TfyjMIi61XlbUPc4P+kEG6IHo0pVqRUx/so3P8HCR1+lXq408brv6f0XjasU3edbUwNBmU6g6B0a+TYu+jOVOVtO19+aFCymmnXbT8wETS81k7SHSqMRNAFG7rQGAjTVRvjQw1CByICFJdIi88dOs0Pa2wONcteVjONfRLw+tAUffWPqIjMPud8mzPScvB9/6E4MzCvArLpqXrJhqr/e5Ljr5wU4lfycRlRtXdSkvsRCHPRGvYIGgaFIG34iwkt+TZuukS2TjWS0Fv4JK6CvLhxzMHDDz/JN5UUqoLamdS3od0o6PsCHtNSzyQz9DYPKGBNTis201+aYFOpw6SNpg1ayugyKXagJDiJ7j8NITOZ/mUBiEAsY61uI0R321hjXMDrbTZTr0iaj+BtDcOzK+4eSIQfreQ7ZUc9ZxOwTGFvpigU6DaysvyOdIK0jcCgvgVyazNmUr4wqDQaQjSjBsikgcujuv4F76ceILmOuLeZOW2Klo//2lwqhEx8NK0XLkIK17Qpp1O7Yvf+UBu+LCW5ODpYcCSqqo3Nuhptplgk4mhWQp3WVSdtj5p4Unn0T2pau41ECnpR2MWuB8lgahTYmASPTjefsFIFKBy1ra/H7S79n0tgeOEUqg7doJPx7/ACJru7lZb8JGb9j2NWpkxQwtIAgqeqTRXiludHWmX9Oma47zY2f/BDICmy+ZTNJ+fkqiCbioDfqHTQk78inhRWEP6mAy19iIiboWGbs8R6G9QcO3rsFN55btrmjVCjZiq899i9cP/8yMtGf2JkJ8wwnnf8lm+WYS74KNjp2JLg21UjnGkrWSJecaz1NFxN1S36BzJo1Ao/zxEf/9YxnKrXUroSInH994qOUppcAOIzg3YNX9iOU9iCgpJHa+VOZxBRiPeWgtK0mEENathfIdKT/FkQRpq5ZDxnUpkV4FA/j/hRgLmduukcaTjE1XL3tj6agHmySqRVDEN2RnxM/GpFXpcGIkDENHXIAURdke5tZxFrFQc9ofBgU2FYj9UbqR60wWvvJn9H4+TqmScEmUMgkZPrybTysJ4OJE/oHRtNo/l0Uu40ejPGjBpk0vorEuoqTOW0mXNmDgCBF+zcBDsvgyqiEa9DvlKBNWMRyasDl4VVfmHzULoZPeen3P87EGSckUcZm2zpHNZ/LRw096qlUyLbkYmK2lbdDXa+wyUvHUyIsoNdKyePOhqtjProWHoJlPH35/Sxc+aDW8LKNIJItKbr+ij/g1RvmkGmHkokzyaaN7O4g2dtP5tJAqK2EAGOnEdonLzLhlIIdwLbftbGOu2LLoLLXnCrLP9G54unITDg0sewdOpZMt6Wz9znSwt7rHClGdzM6OdorKrGHeiWf6fspBnLxIMHyLt6Gz+PFXQOOQrtxmlNCxKSwLYnJ0gsyMfh7Y7H4lnfgy//qh4C9kR5Clu0/DHUff2mYOG9gP5z50UOWoRWB+f/g1XcwICfD5Kfp+p0xF6YWdeDE3Q42/eRI3O2R2EL92N4ZQs4eF8Cfm4nc7AC1DuuoNG0ka6rxT7O+G75Yi2S7/ebO17DVZnLy6XrlRMSW/A3uMgbKl+Cmz3eYPSultThU4qRG0RWmmynzPEVj4NnjsxRgtq2TUw6TB+Nff5oLZ/4AKC3mvYy+dSm1pnrGYV9d9q8FTbJrMYJvjYFv0PfgHfMMgbMeLi9ttM5lCM3fB+vraTc+D5z/500oLS1nIbsZz+mYp656HjOvfomyXxogg8JBM8E0UKABYLYA46sQiq2HcTpyQCEm0JGgolh2wXEdCRgWKI7usvdrryPLQAq3adswe5dzbkkxBAn9nHLYq0rfawYW5PUIKJoetBALCJd7aBZ2Upv5MJ0moGYm9IWkifLzSrDPaYfjhdvvY2vYVyz6SiqXRiVH77U3ln0yj6nFsfc5x+Bnd99nwCDmWFjfjPuWrESWlhUiaXRrY7wcd/d/AAXDrtphhhZdcP1TuPOPf4e3ohgZ6T4KCrYWtY/ejG1taTcPO1uWPYy0NM1p25EadeeTaFmO4D/2I+PSP9XbDvQ1qCgNUIxTrrhqAGkXnnj3fhHuoqO/EjDiQW1z5y3BrBmjcfqJQEGOvX/rYsY7aJFN/pyaa7dUSO/0taARJer+itBH0+EbcR63O6lKvyR3ZppMo/NHoamxCX99ERh54G9w5PTUB4RUEZLT6KIV76zCe3/7GG/eM5tueifbRBJcw8WS3fZbK2JyqzFYOHNdcBEAuoGkTTEdQIg1pInE+lYPiXTVNLO5QyTICHo2Df3X3U4c+Sg2VQFTvo6MIQ2TL8EanIwTsIH7F/E81oL1Jx1O03MMjTR9GFHpKNWva0xprLzCAuz5wwPxyp1PwH7CpO+kPDTNfdSeE7D8089YkjV4bNFKlI4dthk0T6xYj3kNLfAzsjVefciKLsVVwz5BsvwmBu5IjpYcAXjvzHcw+6MlWLB8I7qCYew+rBwnHLkPTj5ukrm+o4BxyDA4y65c4h3rEF86A/G6fwEdi8wDRn3t2ZU9Gp6Sw+DudzBcBUfYG78CMA7vPXQ7+XbT3fgub8lI7736elUhbdzjcJfatQK+ivoEGlGi5mGEPv0JfAOPhG/sy9Q4m9ghlL/+/kisOh9d6+7DnMXAh9SUZ179OcoHWrTaUZVuxPekOQ/Nw4Y11Vi9gF2/cDWqq6rIoo1sOOkbsb/gI0bRfQrtBpM96tYs+llQWJ1kzy0r6yefyKamWErDwsXqNq3ZFcUqbDQs1mAGryMGQvp0uWC8Ad1ro6lmeq4u3aK0KAjN3kl3e+TEKWCq++03Fc9++ApBs+OkfHcNDMTS4HpcevOdOOKy8wyTOIxywXuLke2X8JBI8qDONRwPt9FoPbCRHq6+FaNS7Bj1ZMLeqC8mX1/ItGFf0umlDjaou5zz583FS3dMxNEHAKNGsJ8YbNhxKzKAGXM/wbjlkPX2qM+gESWa/ongnO/CWzgYaRMpbeMtSIQbqEYL4e5aisiSI1FX04qX3+alnNH4/nl/R3E/Z66T+W8avzcA/R99c3K6UG26sqUTMxZvQJ7fi3ZXMbzJEG6JlOlL5vAdzHjbkcw7Qk4fps64/Rv6UnXqrZxbhaeqbsrjBK9auQjP33U8KnPX4ID9Abp25poTtycl6MOkje+bhnFoh0AjSoZWI/j2MPPhUP/u8+DOmYBEaC3t2yhc6f2A2scRXHMJqjYF8fp7jJ9RgH2nXYsJB6Q+iUAyGaaytR2go54NkeqU7qB/K0kTiawO6p264zj/v2XhVH+nl78Jbe427lOHMm8u/6QWUXcBYi4fTgqfi0nxe6gzSfmnwzf64Z0Cmv9J6gnYbuBamvPmXZj9wmUoywzi4AOp0fNoR0i7WE9hCzLjF130YSZ9Blem/ap1X2mHQeNQeDZNnk6qvMFnwT+CTmi0Ca6wXQbKpSkFTc8hvPFGVK/bhEUrgIU023bZewr2mvJdDBpzKnzp+gDS/9HOpN8todnY/jdMST6JEdGXjP0ZEl+xn/xTNsKVpkmSW3b31oz3v4m6QgmsnHMLFsx5CRs++xB7TwTG0rApzJUAscDojbn1HMZNWy1tct+G4LembwwaUXzZyQitftJMu/EPfwDu/mcAwbUsbCtc+n6+n95b1zIkGh5DZ81z2LA+gi9WA9X1tMtpLuQPHIxBu0xDRl4J3P5i5BYMRHp2P6Rn9WMa9Jd8hezjb1ax/y0klk3GtNaztcO/jswzk3gTEGuAK7iSDNAAf3Qt23kmilxEB10Zux4ZU+RejOPy7w7/3vTJttEyLtQwKYX8V2KHZerQ26FxN9qaqxEL1aKtcTE2rvgAbRueRVqkA2QhjB4OlBQC6X5WUdzMrTemFqcn2ERpA6fDM/KJVOiO07cCjaHgKkTmDjcg8GbnwDf0ETMMmIhVwxWqZiWiZoatGTMMLwNaXkOw6T10tqxDSwvQTJuS7YJQmElxi1AKaL0yp/L/nyfDsfawL6RR5ABt9DwKqmxK1FL69UVFbHuGO1ZIz+S0jn364WxIBfaiZR46l8KNpvYOFOE/RgK9FuzzkX30TluAWw7lcF4OkEvTSyNhPg1Js1qqWW9mmMhcI0+pjfx7ruSN3QsrfhP69qBxaOPdiCw+z6z368nww9vvl/CUn2N7I1xFtdSGRDxo3uvQ0ylXnIhROIGUCH4OV7QesUgVklGiSCXifWanPTcjCVPh/5U9/J8g1l/tYAaHUr0m4bJdZmFTevd8F57CKTai027qciYSWfcXYN3PqIlS4f+NZIu6eW+qwU1V7ml+qUpba0td00wfb5BgGX0XUNHtV38b2nmgcWj1LxBd82ezpI9MBU/envCVnQ1Xzr7G30lG66hKuMkhYo3Mx0fNfAw9TY/CRZGQ0FOmWBuSejyreEkeJ1hztVKsjlJj2TYN9H+0JSXaKIXHzYSn3w9SnJa6kCJpmdCb1DJ24vP/KjIMqyr1wgO6ZjhamoXs4qu8CBiaWhh9J9HOB41DdTMRX/1LxFrXIU7w6GGGO2sIPDnfgTvnQLjSK9mPLuKAoIg2c0+gECBJgSjexT2tcgJJn1QQqMy5moQOVLzlJbgiy7dhhP8jtpCajQyTNnkpXBn0irfpXp7rbcUlP0Si8WljNf9vJqd2RutQ9nrkJuQMhmfojXR0tvwA2M6ifx9oetKGm5Gouh/x9lVmgXp9FEijG670DLgDow2A3GnsYH8xw/W4T48b41THLFoywn7XJJcIzRDNLaZZUXMzgbXl93P+/0YyycQohtRMBIrIN/QaeCuvtMzUC2DMIhKhJYh8wHb/L9YyKrrxax3qcWyqxc2ARCNhsmiyhtt1yQZcbiP9G+k/A5qeFK4G2j6kvb0Qya4v6M8spjnWTCQ101rTawIkNkIi7kd9SzobiCfUwy6XnruT4g3ma16JHnb91uQooK0vK1xhXnqYmqkgnttRZaX7NdFviw7dAdJtKrpH0t4Igx0nAaagpBzpOf2RSNuNynck3IXT4Mnc1da5F3NMJJOstXYjml8bgLRcNiXT+TZtoDcEduheRna4TW0g80ppbE2Kk5MFswi/46/p42MuTRbW154DrC83V/Y4RtyPajW1As1/hID/B20xWBz8S3gtAAAAAElFTkSuQmCC\";\n $info = getimagesize($pic);\n $pdf->Image($pic, 10, 3,($info[0]/10), ($info[1]/10), 'png');\n $pdf->Line(10, 27, 210-20, 27); \n // $pdf->Image($pic,10,8,15);\n // Arial bold 15\n $pdf->SetFont('Arial','B',18);\n // Movernos a la derecha\n $pdf->Cell(80);\n // Título\n $pdf->Cell(30,10,'INFORME EVALUACION INFANTIL',0,0,'C');\n // Salto de línea\n $pdf->Ln(20);\n\n $pdf->SetFont('Times','',12);\n // $pdf->Cell(0,10,'Nombre: '. ucfirst(strtolower ($param['alumno'][0]['nombre'])) . \" \" . ucfirst(strtolower ($param['alumno'][0]['apellido1'])) .\" \" . ucfirst(strtolower ($param['alumno'][0]['apellido2'])),0,1);\n $pdf->Cell(0,10, iconv('UTF-8', 'windows-1252', \"Evaluación: \"). $param['eval'] . iconv('UTF-8', 'windows-1252', \" ª\"),0,1);\n $pdf->Cell(0,10,'Tutor: '.ucfirst(strtolower ( $_SESSION['usuario']['nombre'] )).\" \" . ucfirst(strtolower ($_SESSION['usuario']['apellido1'])) . \" \" .ucfirst(strtolower ( $_SESSION['usuario']['apellido2'])),0,1);\n\n\n $pdf->Multicell(0,10, iconv('UTF-8', 'windows-1252',$param['informe'][0]['texto']),0,1);\n $pdf->Output();\n \n\t\t//$this->load->view('pagePdf');\n }", "private function createMasterPdf()\n {\n $this->removeOldMasterPDF();\n\n $masterFile = storage_path(\"files\") . \"/master-\" . Carbon::now()->timestamp . \".pdf\";\n\n PDF::loadView(\"Orders::pdf.master\", ['master' => $this->allPDF, 'colcount' => count($this->pdfCols), 'marketday' => $this->md, 'headers' => $this->pdfCols])->save($masterFile);\n\n return basename($masterFile);\n }", "public function getFilename()\n {\n return $this->filename . '.pdf';\n }", "function makeHTMLforPDF( $path, $argv ) {\r\n\t// they are set and also do some very basic input validation\r\n\tif ( empty( $argv['width'] ) ) {\r\n\t\t$width = '1000';\r\n\t} else {\r\n\t\t$width = ( is_numeric( $argv['width'] ) ? $argv['width'] : 1000 );\r\n\t}\r\n\r\n\tif ( empty( $argv['height'] ) ) {\r\n\t\t$height = '700';\r\n\t} else {\r\n\t\t$height = ( is_numeric( $argv['height'] ) ? $argv['height'] : 700 );\r\n\t}\r\n\r\n\treturn '<object data=\"' . $path . '\" width=\"' . $width . '\" height=\"' .\r\n\t\t$height . '\" type=\"application/pdf\"></object>';\r\n}", "private function saveAsAttachment($pdfObject, $name)\n {\n $rootDir = $this->getRootDir();\n $rootPath = \\config('resources.BASE_PATH') . $rootDir->path;\n $physicalName = Carbon::now()->timestamp . '_' . $name;\n $filePath = $rootPath . '/' . $physicalName;\n $mimeType = 'application/pdf';\n // save pdf\n\n FlySystem::put($filePath, $pdfObject->output(), ['ContentType' => $mimeType]);\n\n $size = FlySystem::getSize($filePath);\n $resourcesRepo = App::make(ResourcesRepository::class);\n $resource = $resourcesRepo->createFile($name, $rootDir, $mimeType, $size, $physicalName);\n\n return $resource;\n }", "function article_pdf_name ($reference)\n{\n\t$pdf_name = 'S' . $reference->issn \n\t\t. $reference->year \n\t\t. str_pad($reference->volume, 4, '0', STR_PAD_LEFT) \n\t\t. str_pad($reference->spage, 5, '0', STR_PAD_LEFT) \n\t\t. '.pdf';\n\treturn $pdf_name;\n}", "function setup_pdf()\n\t{\t\t\n\t\t$this->SetDisplayMode('real');\n\t\t\n\t\t// set document information \n\t\t$this->SetCreator(PDF_CREATOR);\n\t\t$this->SetAuthor($this->report_author);\n\t\t$this->SetTitle($this->report_name);\n\t\t$this->SetSubject($this->report_name);\n\t}", "function createXFDF($pdfurl, $fielddata) {\n\t// Define XML namespace\n\t$xfdf =\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\"?>' . \"\\n\" .\n\t\t'<xfdf xmlns=\"http://ns.adobe.com/xfdf/\" xml:space=\"preserve\">' . \"\\n\";\n\n\t// Permanent identifier based on the contents of the source PDf file (MD5 signature value)\n\t// Unique identifier for the modified version of the PDF.\n\t// See specification for more information\n\t$xfdf .=\n\t\t' <ids original=\"' . md5($pdfurl) . '\" modified=\"' . md5($pdfurl . time()) . '\" />' . \"\\n\";\n\n\t$xfdf .=\n\t\t' <f href=\"' . $pdfurl . '\" />' . \"\\n\" .\n\t\t' <fields>' . \"\\n\";\n\n\tif (!empty($fielddata)) {\n\t\tforeach ($fielddata as $field => $value) {\n\t\t\t$xfdf .= ' <field name=\"' . $field . '\">' . \"\\n\";\n\t\t\t$xfdf .= ' <value>' . htmlspecialchars($value) . '</value>' . \"\\n\";\n\t\t\t$xfdf .= ' </field>' . \"\\n\";\n\t\t}\n\t}\n\n\t$xfdf .=\n\t\t' </fields>' . \"\\n\" .\n\t\t'</xfdf>';\n\treturn $xfdf;\n}", "public function downloadPdf() {\n $file_name = get('name');\n return \\Response::download(temp_path($file_name . '.pdf'));\n }", "public function DownloadPdf(){\n\n\t\t// fetch data from db\n\t\t$this->load->model('admin');\n\t\t$result = $this->admin->getMemberDetails();\n\t\t//print_r($result);die();\n\t\t$this->load->library('Pdf');\n\t\t// create new PDF document\n\t\t$pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);\n\t\t// $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Bizmo Technologies');\n\t\t$pdf->SetTitle('AGM Registered Members List');\n\t\t$pdf->SetSubject('AGM Registered Members List');\n\t\t$pdf->SetKeywords('MEA, AGM, Dakshata Wagh, Bizmo Technologies, Ranjeet Wagh');\n\n\t\t// set default header data\n\t\t$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);\n\n\t\t// set header and footer fonts\n\t\t$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n\t\t$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t\trequire_once(dirname(__FILE__).'/lang/eng.php');\n\t\t\t$pdf->setLanguageArray($l);\n\t\t}\n\n\t\t// ---------------------------------------------------------\n\n\t\t// set font\n\t\t$pdf->SetFont('helvetica', '', 12);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\t\t$memNo=0;\n\t\t$vegCount=0;\n\t\t$nvegCount=0;\n\t\t$male=0;\n\t\t$female=0;\n\t\t$net=0;\n\n\t\tif($result['status']=='200'){\n\t\t\t$memNo=count($result['status_message']);\n\t\t\t$net=$result['countSum'];\n\n\t\t\tforeach($result['status_message'] as $row){\n\t\t\t\tif($row['foodPreference']=='nveg' && $row['foodPreference']!=''){\n\t\t\t\t\t$nvegCount++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$vegCount++;\n\t\t\t\t}\n\n\t\t\t\tif($row['gender']=='Male' && $row['gender']!=''){\n\t\t\t\t\t$male++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif($row['gender']=='Female'){\t\t\t\t\t\t\n\t\t\t\t\t$female++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t} \n\t\t}\n\n\t\t// Set some content to print\n\t\t$html = \n\t\t'<h3>EVENT STATISTICS:</h3>\n\t\t<p>\n\t\t<label><u>Total Member Registered:</u></label> <span>'.$memNo.'</span><br>\n\t\t<label><u>Total Checked In:</u></label> <span>'.$net.'</span><br><br>\n\t\t<i><label>Male Members:</label> <span>'.$male.'</span></i><br>\n\t\t<i><label>Female Members:</label> <span>'.$female.'</span></i><br>\n\t\t<i><label>Veg Preferred Members:</label> <span>'.$vegCount.'</span></i><br>\n\t\t<i><label>Non-Veg Preferred Members:</label> <span>'.$nvegCount.'</span></i><br>\t\n\t\t</p><hr><br>\n\t\t<br>\n\t\t';\n\n\t\t// Print text using writeHTMLCell()\n\t\t$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n\n\t\t// column titles\n\t\t$header = array('Sr.', 'Member Name', 'Gender' ,'Food' , 'Status', 'Date');\n\n\t\t// Colors, line width and bold font\n\t\t$pdf->SetFillColor(255, 0, 0);\n\t\t$pdf->SetTextColor(255);\n\t\t$pdf->SetDrawColor(128, 0, 0);\n\t\t$pdf->SetLineWidth(0.3);\n\t\t$pdf->SetFont('', 'B');\n\t\t// Header\n\t\t$w = array(10,75,25, 25, 25, 28);\n\t\t$num_headers = count($header);\n\t\tfor($i = 0; $i < $num_headers; ++$i) {\n\t\t\t$pdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1);\n\t\t}\n\t\t$pdf->Ln();\n\t\t// Color and font restoration\n\t\t$pdf->SetFillColor(224, 235, 255);\n\t\t$pdf->SetTextColor(0);\n\t\t$pdf->SetFont('');\n\t\t// Data\n\t\t$fill = 0;\n\t\t$count=1;\n\t\tif($result['status']=='500'){\n\t\t\t//print_r($row);\n\t\t\t$pdf->Cell($w[0], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[1], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[2], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[3], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[4], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[5], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Ln();\n\t\t\t$fill=!$fill;\n\t\t}\n\t\telse{\n\t\t\tforeach($result['status_message'] as $row) {\n\t\t\t\t$valid_date = date( 'd M, Y', strtotime($row['dated']));\n\t\t\t\t//now do borders and fill\n\t\t\t\t//cell height is 6 times the max number of cells\n\t\t\t\t$food='VEG';\n\t\t\t\t$checked='---';\n\n\t\t\t\tif($row['foodPreference']=='nveg' && $row['foodPreference']!=''){\n\t\t\t\t\t$food='NON-VEG';\n\t\t\t\t}\n\t\t\t\tif($row['checkin']=='1'){\n\t\t\t\t\t$checked='Checked In';\n\t\t\t\t}\n\t\t\t\t$pdf->Cell($w[0],6,$count.'.','LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[1],6,$row['member_name'],'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[2],6,$row['gender'],'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[3],6,$food,'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[4],6,$checked,'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[5],6,$valid_date,'LR', 0, 'C', $fill);\n\n\t\t\t\t$pdf->Ln();\n\t\t\t\t$fill=!$fill;\n\n\t\t\t\t$count++;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t$pdf->Cell(array_sum($w), 0, '', 'T');\n\t\t// ---------------------------------------------------------\n\n\t\t// close and output PDF document\n\t\t\n\t\t$tarikh = date('Ydm h:i:s a', time());\n\t\t$pdf->Output('AGMEventList_'.$tarikh.'.pdf', 'I');\n\t}", "public function createDiagnosticPdf() {\n\n $pdf = new DiagnosticPDF($this);\n\n $pdf->AliasNbPages();\n $pdf->AddPage();\n $pdf->SetFont('Times','',12);\n\n // Add a title for the section\n $pdf->Cell(60,15,utf8_decode('Server summary'),0,0,'L');\n $pdf->Ln(15);\n // Add php version\n $pdf->addPHPVersion();\n // Add server software\n $pdf->addServerApi();\n // Add addEcommerceInfo and plugin info\n $pdf->addEcommerceInfo();\n // Add merchant info\n $pdf->addMerchantInfo();\n //Add extension info\n $pdf->addExtensionsInfo();\n $pdf->addLogs();\n\n //Some tricks for FPDF to work with joomla.\n ob_start(); //needed to prevent the error(FPDF error: Some data has already been output, can't send PDF file)\n $pdf->Output();\n die(); //needed to break process render of joomla and download the file pdf correctly\n }", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "public function toPdfString(\\SetaPDF_Core_Document $pdfDocument) {}", "protected function generatePdf($businessId, $url) {\n $tmp = sys_get_temp_dir();\n $wkhtmltopdf = $this->container->get('kernel')->getRootDir() . '/../../bin/wkhtmltopdf';\n $target = \"$tmp/customer-value-report-$businessId.pdf\";\n $command = \"$wkhtmltopdf -q -B 0 -L 0 -R 0 -T 0 --disable-external-links --javascript-delay 3000 --no-stop-slow-scripts --disable-internal-links $url $target\";\n\n system($command);\n\n return $target;\n }", "public function pdf($value) {\n return $this->setProperty('pdf', $value);\n }", "function PDF_open_pdi_document($p, $filename, $optlist)\n{\n}", "function pdf_create($html) \n{\n$dompdf = new Dompdf();\n$dompdf->loadHtml($html);\n\n// (Optional) Setup the paper size and orientation\n$dompdf->setPaper('A4', 'landscape');\n\n// Render the HTML as PDF\n$dompdf->render();\n\n// Output the generated PDF to Browser\n$dompdf->stream();\n}", "function pdf_create($html, $filename, $orientation = 'P', $page_format = 'A4', $unit = 'mm', $unicode = true, $encoding = 'UTF-8', $stream = 'I')\n\t{\n\t\tob_start();\n\t\t$_ci = get_instance();\n\t\t$_ci->load->library('Tcpdflib');\n\n\t\t// setlocale(LC_MONETARY, 'en_US');\n\n\t\t$pdf = new TCPDF($orientation, $unit, $page_format, true, $encoding, false);\n\t\t$pdf->SetCreator('JTS-PDF');\n\t\t$pdf->SetLeftMargin(9);\n\t\t$pdf->SetRightMargin(9);\n\t\t$pdf->SetPrintHeader(false);\n\t\t$pdf->SetPrintFooter(false);\n\t\t$pdf->AddPage();\n\n\t\t$pdf->writeHTML($html, true, true, false, false, '');\n\t\t$pdf->lastPage();\n\n\t\t$pdf->Output($filename . '.pdf', $stream);\n\t}", "public function createPDF() {\n $category = Category::all();\n\n // share data to view\n view()->share('categories',$category);\n\n \n $pdf = PDF::loadView('layouts.report.category_report', $category);\n \n \n $pdf->setpaper('A4','landscape', $category);\n // download PDF file with download method\n return $pdf->download('category.pdf');\n }", "public function pdf($id)\r\n {\r\n if (!has_permission('invoices', '', 'view') && !has_permission('invoices', '', 'view_own')) {\r\n access_denied('invoices');\r\n }\r\n if (!$id) {\r\n redirect(admin_url('invoices/list_invoices'));\r\n }\r\n $invoice = $this->invoices_model->get($id);\r\n $invoice_number = format_invoice_number($invoice->id);\r\n $pdf = invoice_pdf($invoice);\r\n $type = 'D';\r\n if ($this->input->get('print')) {\r\n $type = 'I';\r\n }\r\n $pdf->Output(mb_strtoupper(slug_it($invoice_number)) . '.pdf', $type);\r\n }", "static function output(LK_PDF $pdf){\n drupal_get_messages();\n ob_clean();\n $pdf->Output();\n drupal_exit(); \n }", "public function printPDF()\n {\n $data = [\n 'title' => 'First PDF for Medium',\n 'heading' => 'Hello from 99Points.info',\n 'content' => \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.\"\n ];\n\n $pdf = PDF::loadView('pdf_view', $data);\n return $pdf->download('medium.pdf');\n }", "public function create()\n {\n return view('dashboard.pages.pdfs.create');\n }", "protected function getPdf($orderId) {\n return Yii::getAlias('@backurl'). '/orders/pdf?id='.$orderId;\n }", "private function renderPdf($filename)\n\t{\n header('Content-Type: application/vnd.pdf');\n\t\theader('Content-Disposition: attachment;filename=\"'.$filename.'.pdf\"');\n\t\theader('Cache-Control: max-age=0');\n\n\t\t//set margins\n\t\t$this->objPHPExcel->getActiveSheet()->getPageMargins()->setTop(0.75);\n\t\t$this->objPHPExcel->getActiveSheet()->getPageMargins()->setRight(0.25);\n\t\t$this->objPHPExcel->getActiveSheet()->getPageMargins()->setLeft(0.25);\n\t\t$this->objPHPExcel->getActiveSheet()->getPageMargins()->setBottom(0.75);\n\t\t$this->objPHPExcel->getActiveSheet()->getPageMargins()->setHeader(0.3);\n\t\t$this->objPHPExcel->getActiveSheet()->getPageMargins()->setFooter(0.3);\n\n\t\t//set print area\n\t\t$this->objPHPExcel->getActiveSheet()->getPageSetup()->setPrintArea('A1:A5');\n\n\t\t$this->objWriter = PHPExcel_IOFactory::createWriter($this->objPHPExcel, 'PDF');\n\n\t\techo \"a\";\n\n //$this->objWriter->save('php://output');\n $this->objWriter->save($filename);\n\n echo \"b\";\n\n\t\t//exit();\n }", "public function verpdfamilia($info)\n\t{\n\n\n //getInforme($eval,$curso,$alumno,$usuario)\n if(isset($_SESSION['curso'])){\n $curso=$_SESSION['curso'];\n }else{\n //año actual\n $curso=date(\"Y\");\n $_SESSION['curso']= $curso;\n }\n $param['informe']=$this->Informe->getInformebyid($info);\n //echo site_url().'fpdf.php';exit;\n \n $this->load->library('Pdf');\n $pdf = new FPDF();\n $pdf->AliasNbPages();\n $pdf->AddPage();\n // Logo\n $pic = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAYAAAAbvPRpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AABecmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTMyBNYWNpbnRvc2giIHhtcDpDcmVhdGVEYXRlPSIyMDExLTA4LTA1VDIzOjE0OjQzKzAxOjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxMi0wOS0wN1QxODozMzowMiswMTowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAxMi0wOS0wN1QxODozMzowMiswMTowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTMxRTA5MzBGOTEyMTFFMTgyMzM5NUFDNTA2OTk2RTciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTMxRTA5MzFGOTEyMTFFMTgyMzM5NUFDNTA2OTk2RTciIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpFNkM3NEJGNDBCMjA2ODExQkVEQ0VDMTJCMTdFMDUyRiIgeG1wUmlnaHRzOk1hcmtlZD0iRmFsc2UiPiA8cGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPiA8cmRmOkJhZz4gPHJkZjpsaT51dWlkOjNEOTBCNjA0NEZDNjExREI5NUQ5QTk4QzBFMjM0MUVBPC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDowMTgwMTE3NDA3MjA2ODExOEY2MjlDNUE3N0YwRUEyMTwvcmRmOmxpPiA8cmRmOmxpPnhtcC5kaWQ6MDE4MDExNzQwNzIwNjgxMTkyQjBBQUJCMzRBRTg3Qzc8L3JkZjpsaT4gPHJkZjpsaT54bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE5MkIwQURGRDdEM0RDQTMzPC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDowMzgwMTE3NDA3MjA2ODExOEY2MkY2RDlGNTM3M0MwRDwvcmRmOmxpPiA8cmRmOmxpPnhtcC5kaWQ6MDY4MDExNzQwNzIwNjgxMTg4QzZCRTM0NkJFOTcyMzA8L3JkZjpsaT4gPHJkZjpsaT54bXAuZGlkOjRGNkJCODcwMkMyMDY4MTE4NzFGRTE2OUU3REMzQzk4PC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDpFNkM3NEJGNDBCMjA2ODExQkVEQ0VDMTJCMTdFMDUyRjwvcmRmOmxpPiA8cmRmOmxpPnhtcC5kaWQ6Rjc3RjExNzQwNzIwNjgxMTg3MUZBRjhCMDk0OUUyMjg8L3JkZjpsaT4gPHJkZjpsaT54bXAuZGlkOkY3N0YxMTc0MDcyMDY4MTE5N0E1RTk0QjdDMjQ1NkMxPC9yZGY6bGk+IDxyZGY6bGk+eG1wLmRpZDpGNzdGMTE3NDA3MjA2ODExOUMxMkZDQzczRjExNDQ2RTwvcmRmOmxpPiA8L3JkZjpCYWc+IDwvcGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2Qzc0QkY0MEIyMDY4MTFCRURDRUMxMkIxN0UwNTJGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTA4VDE1OjI2OjM2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QTI5MTQxRUExMDIwNjgxMUJFRENFQzEyQjE3RTA1MkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMDhUMTY6MjI6MDkrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpBNjkxNDFFQTEwMjA2ODExQkVEQ0VDMTJCMTdFMDUyRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0wOFQxNjozMzowNSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjFBREE5MDY5MTQyMDY4MTFCRURDRUMxMkIxN0UwNTJGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTA4VDE2OjQ2OjUwKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjlGNzEwREQwOTIwNjgxMTlERDBDODY0NkU3NDk1OTIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTBUMTQ6NDI6MjgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpFMEJFMkYyRTJCMjA2ODExOUREMEM4NjQ2RTc0OTU5MiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xMFQxODo1NDoxMiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkUyQkUyRjJFMkIyMDY4MTE5REQwQzg2NDZFNzQ5NTkyIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTExVDEyOjA4OjAxKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RTNCRTJGMkUyQjIwNjgxMTlERDBDODY0NkU3NDk1OTIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTFUMTI6MzU6MzgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGNzdGMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNTowMTowNiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkY4N0YxMTc0MDcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE1OjAxOjA2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Rjk3RjExNzQwNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTU6MzE6MDYrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGQTdGMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjozMjowNCswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkZCN0YxMTc0MDcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjM3OjMyKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RkM3RjExNzQwNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTY6NDM6MTkrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGRDdGMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjo0NyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkZFN0YxMTc0MDcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjQ3OjIzKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RkY3RjExNzQwNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTY6NTQ6MzMrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMDgwMTE3NDA3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjo1NDo1OSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0QTdFQ0EzMTcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjU2OjU4KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDVBN0VDQTMxNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTY6NTc6NTMrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNkE3RUNBMzE3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNjo1ODoxMyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA3QTdFQ0EzMTcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE2OjU4OjI2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDhBN0VDQTMxNzIwNjgxMUFCMDhFQTE2Qzg4RTQyNTkiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMTc6MDk6MTIrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowOUE3RUNBMzE3MjA2ODExQUIwOEVBMTZDODhFNDI1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQxNzowOToxNiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjBBQTdFQ0EzMTcyMDY4MTFBQjA4RUExNkM4OEU0MjU5IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE4VDE3OjEwOjA3KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDE4MDExNzQwNzIwNjgxMThGNjJCQURGMjAwRjc3NDUiIHN0RXZ0OndoZW49IjIwMTAtMTAtMThUMjI6MzA6MDgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExOEY2MkJBREYyMDBGNzc0NSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOFQyMjozOTozOSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkU1Q0IwODY5MEIyMDY4MTE4RjYyQkFERjIwMEY3NzQ1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAwOjA0OjQyKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RTZDQjA4NjkwQjIwNjgxMThGNjJCQURGMjAwRjc3NDUiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDA6MTI6MzMrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpFQUNCMDg2OTBCMjA2ODExOEY2MkJBREYyMDBGNzc0NSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMDozOTo1NSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkVCQ0IwODY5MEIyMDY4MTE4RjYyQkFERjIwMEY3NzQ1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAwOjQzOjM4KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RUNDQjA4NjkwQjIwNjgxMThGNjJCQURGMjAwRjc3NDUiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDA6NDM6NDcrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpDODZBNkJBMzFCMjA2ODExOEY2MkJBREYyMDBGNzc0NSIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMDo1NDozNyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkM5NkE2QkEzMUIyMDY4MTE4RjYyQkFERjIwMEY3NzQ1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAxOjAyOjQwKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDU4MDExNzQwNzIwNjgxMTg3MUZEMENGNkEwN0VDQkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDE6MTA6MzUrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQjJBOTg2QTBBMjA2ODExODcxRkQwQ0Y2QTA3RUNCRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMTo0MjowMyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjYyNjExRTYxMEMyMDY4MTE4NzFGRDBDRjZBMDdFQ0JGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAyOjEzOjE2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjM2MTFFNjEwQzIwNjgxMTg3MUZEMENGNkEwN0VDQkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDI6MTU6NTcrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NDYxMUU2MTBDMjA2ODExODcxRkQwQ0Y2QTA3RUNCRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMjoxODo1MiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjY1NjExRTYxMEMyMDY4MTE4NzFGRDBDRjZBMDdFQ0JGIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDAyOjI2OjQ4KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjY2MTFFNjEwQzIwNjgxMTg3MUZEMENGNkEwN0VDQkYiIHN0RXZ0OndoZW49IjIwMTAtMTAtMTlUMDI6MzE6NDQrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpFOTcyQ0U5NTEzMjA2ODExODcxRkQwQ0Y2QTA3RUNCRiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0xOVQwMjozNDo1NyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkVGNUY3NDYxMUUyMDY4MTFBQjA4ODJEM0ZDOEIxQUU1IiBzdEV2dDp3aGVuPSIyMDEwLTEwLTE5VDE2OjQ2OjM2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NkM3OUU5RTQwRDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTQ6MTg6MjUrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2RDc5RTlFNDBEMjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNDozMToyOCswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjZFNzlFOUU0MEQyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE0OjUxOjI1KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NkY3OUU5RTQwRDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTQ6NTE6NTYrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo3Mzc5RTlFNDBEMjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNTowMToxNyswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjc1NzlFOUU0MEQyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE1OjAzOjA3KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QjJBOTFGOTUxNDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTU6MTY6MjkrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCM0E5MUY5NTE0MjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNToxNjo1NiswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkI0QTkxRjk1MTQyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE1OjE2OjU2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QjVBOTFGOTUxNDIwNjgxMTk0NTc4OThBOTlBMzhCMTMiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjBUMTU6MTc6NDIrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpEM0M4RjQ5RDFCMjA2ODExOTQ1Nzg5OEE5OUEzOEIxMyIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMFQxNTo1ODoxOCswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ2QzhGNDlEMUIyMDY4MTE5NDU3ODk4QTk5QTM4QjEzIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIwVDE2OjA1OjE2KzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDI4MDExNzQwNzIwNjgxMTg3MUZENkUwNEYxMEREMEIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjFUMTI6NDM6MDcrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExODcxRkQ2RTA0RjEwREQwQiIgc3RFdnQ6d2hlbj0iMjAxMC0xMC0yMVQxMjo0NDowNSswMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNCBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1ODAxMTc0MDcyMDY4MTE4NzFGRDZFMDRGMTBERDBCIiBzdEV2dDp3aGVuPSIyMDEwLTEwLTIxVDEyOjQ3OjIzKzAyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M0IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6OTI2OTg1QTIyQzIwNjgxMTg3MUZENkUwNEYxMEREMEIiIHN0RXZ0OndoZW49IjIwMTAtMTAtMjFUMTY6NTk6MjgrMDI6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzQgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMTgwMTE3NDA3MjA2ODExOTEwOUQyREFBRDc4MDM1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0xM1QxNToyMTo0MVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMjgwMTE3NDA3MjA2ODExOTEwOUQyREFBRDc4MDM1OSIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0xM1QxNToyMTo0MVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMTgwMTE3NDA3MjA2ODExOTJCMDk2MzdDMTJBRkQ2NiIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0xNVQxMzo1NjoxOFoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExOEMxNEEyOTRFMzQ5RTREMCIgc3RFdnQ6d2hlbj0iMjAxMC0xMi0yMVQxODowMzo1MFoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNjgwMTE3NDA3MjA2ODExOEE2REE4NTNBOTRCRkMxRiIgc3RFdnQ6d2hlbj0iMjAxMS0wMS0xMlQxNDozMDozOVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo5OEZFNDY1M0ZFMjA2ODExODcxRkRFMkM3Mjc3MDQ4OCIgc3RFdnQ6d2hlbj0iMjAxMS0wMS0yMFQxNjo0MzozMVoiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMzgwMTE3NDA3MjA2ODExOEE2REY4ODQ5OTc3MTZDQyIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0wNlQxMjowNjoxOSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0ODAxMTc0MDcyMDY4MTE4QTZERjg4NDk5NzcxNkNDIiBzdEV2dDp3aGVuPSIyMDExLTA1LTA2VDEyOjA2OjE5KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RDA1QzA1MEQyMDIwNjgxMTk5NENBOTdCRjFFOUU5ODIiIHN0RXZ0OndoZW49IjIwMTEtMDUtMDZUMTQ6MDU6NDUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpEMTVDMDUwRDIwMjA2ODExOTk0Q0E5N0JGMUU5RTk4MiIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0wNlQxNDowNTo0NSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkQzNUMwNTBEMjAyMDY4MTE5OTRDQTk3QkYxRTlFOTgyIiBzdEV2dDp3aGVuPSIyMDExLTA1LTA2VDE0OjEwOjU4KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RDQ1QzA1MEQyMDIwNjgxMTk5NENBOTdCRjFFOUU5ODIiIHN0RXZ0OndoZW49IjIwMTEtMDUtMDZUMTQ6MTE6MDkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpENTVDMDUwRDIwMjA2ODExOTk0Q0E5N0JGMUU5RTk4MiIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0wNlQxNDoxMTowOSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkQ2NUMwNTBEMjAyMDY4MTE5OTRDQTk3QkYxRTlFOTgyIiBzdEV2dDp3aGVuPSIyMDExLTA1LTA2VDE0OjIyOjQ5KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6RDc1QzA1MEQyMDIwNjgxMTk5NENBOTdCRjFFOUU5ODIiIHN0RXZ0OndoZW49IjIwMTEtMDUtMDZUMTQ6Mjc6MjYrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNzgwMTE3NDA3MjA2ODExOTEwOUI0NjJBN0IwNTY2MSIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0xNlQxNzoxOTo0NyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA4ODAxMTc0MDcyMDY4MTE5MTA5QjQ2MkE3QjA1NjYxIiBzdEV2dDp3aGVuPSIyMDExLTA1LTE2VDE3OjE5OjQ3KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDk4MDExNzQwNzIwNjgxMTkxMDlCNDYyQTdCMDU2NjEiIHN0RXZ0OndoZW49IjIwMTEtMDUtMTZUMTg6Mzk6MzUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MkExNEQ5RTQwMjA2ODExOTEwOUI0NjJBN0IwNTY2MSIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0xNlQxOTowMToxNyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjYzQTE0RDlFNDAyMDY4MTE5MTA5QjQ2MkE3QjA1NjYxIiBzdEV2dDp3aGVuPSIyMDExLTA1LTE2VDE5OjA0OjU3KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDM4MDExNzQwNzIwNjgxMTkxMDlERTY3RkU4NEE3QkMiIHN0RXZ0OndoZW49IjIwMTEtMDUtMTdUMTM6MzU6MjcrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNDgwMTE3NDA3MjA2ODExOTEwOURFNjdGRTg0QTdCQyIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0xN1QxMzozNzo1OSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1ODAxMTc0MDcyMDY4MTE5MTA5REU2N0ZFODRBN0JDIiBzdEV2dDp3aGVuPSIyMDExLTA1LTE3VDE0OjAzOjI2KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MEE4MDExNzQwNzIwNjgxMTkxMDlERTY3RkU4NEE3QkMiIHN0RXZ0OndoZW49IjIwMTEtMDUtMThUMTU6MzI6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpBOThDMEYwQ0NEMjA2ODExOTk0Qzg2QjcwRjBBNzdBNCIgc3RFdnQ6d2hlbj0iMjAxMS0wNS0yMFQxNzo0NzozNiswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkFBOEMwRjBDQ0QyMDY4MTE5OTRDODZCNzBGMEE3N0E0IiBzdEV2dDp3aGVuPSIyMDExLTA1LTIwVDE3OjQ3OjM2KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjY1QjQyNTFENzI3NjgxMTkxMDlGM0YwRjk1MjhCOEEiIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTQ6MDg6NTArMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoyQTIwNDk2M0E0Mjg2ODExOTEwOUYzRjBGOTUyOEI4QSIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxNDowODo1MCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjdCRUY0N0JFMjEyMDY4MTE4RjYyOTZFOUM4RkMyNkQ3IiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE2OjA3OjE0KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6N0NFRjQ3QkUyMTIwNjgxMThGNjI5NkU5QzhGQzI2RDciIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTY6MDg6MzcrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1QzRCMDQ5RTQwMjA2ODExOEY2Mjk2RTlDOEZDMjZENyIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxNjozNTo1NSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjJGMjA0OTYzQTQyODY4MTE5MTA5RjNGMEY5NTI4QjhBIiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE3OjE0OjU1KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzAyMDQ5NjNBNDI4NjgxMTkxMDlGM0YwRjk1MjhCOEEiIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTc6MTQ6NTUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MzRCMDQ5RTQwMjA2ODExOEY2Mjk2RTlDOEZDMjZENyIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxNzo1NjoyNCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjY0NEIwNDlFNDAyMDY4MTE4RjYyOTZFOUM4RkMyNkQ3IiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE4OjAxOjU5KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QTZCNzVDOTg0RjIwNjgxMThGNjI5NkU5QzhGQzI2RDciIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTg6MjU6MjMrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpBN0I3NUM5ODRGMjA2ODExOEY2Mjk2RTlDOEZDMjZENyIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxODoyNToyMyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjMxMjA0OTYzQTQyODY4MTE5MTA5RjNGMEY5NTI4QjhBIiBzdEV2dDp3aGVuPSIyMDExLTA3LTAxVDE5OjQ0OjI1KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzIyMDQ5NjNBNDI4NjgxMTkxMDlGM0YwRjk1MjhCOEEiIHN0RXZ0OndoZW49IjIwMTEtMDctMDFUMTk6NDQ6MjUrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozMzIwNDk2M0E0Mjg2ODExOTEwOUYzRjBGOTUyOEI4QSIgc3RFdnQ6d2hlbj0iMjAxMS0wNy0wMVQxOTo1ODo0OCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjUzMzExREExQzIyODY4MTE4RjYyQjM3MEY1MEFEMTQwIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDE5OjMwOjQ3KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NTQzMTFEQTFDMjI4NjgxMThGNjJCMzcwRjUwQUQxNDAiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMTk6MzA6NDcrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQjhGNjA3QjREMjA2ODExOTk0Qzk3N0NCQTNFNEFGMCIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMDozOToyMiswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkJDOEY2MDdCNEQyMDY4MTE5OTRDOTc3Q0JBM0U0QUYwIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDIwOjM5OjIyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6QkQ4RjYwN0I0RDIwNjgxMTk5NEM5NzdDQkEzRTRBRjAiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMjI6MDM6NTErMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpCRThGNjA3QjREMjA2ODExOTk0Qzk3N0NCQTNFNEFGMCIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMjowMzo1MSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkVEMTlEM0E1NUMyMDY4MTE5OTRDOTc3Q0JBM0U0QUYwIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDIyOjI2OjIxKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDQ4MDExNzQwNzIwNjgxMTk0NTdBNkU1Q0I5M0Y1M0IiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMjI6MzI6NDArMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowNTgwMTE3NDA3MjA2ODExOTQ1N0E2RTVDQjkzRjUzQiIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMjozNDo0NiswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA2ODAxMTc0MDcyMDY4MTE5NDU3QTZFNUNCOTNGNTNCIiBzdEV2dDp3aGVuPSIyMDExLTA4LTA1VDIyOjM0OjQ2KzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Rjk3RjExNzQwNzIwNjgxMUE5NjFDMzMxM0M2OTY0ODYiIHN0RXZ0OndoZW49IjIwMTEtMDgtMDVUMjM6MDM6MjQrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpGQTdGMTE3NDA3MjA2ODExQTk2MUMzMzEzQzY5NjQ4NiIgc3RFdnQ6d2hlbj0iMjAxMS0wOC0wNVQyMzowMzoyNCswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ1dWlkOjhERTNBQ0Q3RDlDQ0UwMTFCNzk0Qzg3M0VGODdFOTVEIiBzdFJlZjpkb2N1bWVudElEPSJ1dWlkOkM0QkNGODkwNDhDMUUwMTE4NDQ3RTA0REZCNThBRTUxIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+U9nv0gAAoQJJREFUeF7snQecJUX1tt87Oc/s7GxObCZnJCMZJCgIKEaCioKiiGJCMCsGzIpESaJIEImSc87LwrI559nJee6d+71P1e2dYUmzBMP3+587Nd1dXVVd4bx1zqmuqk5lTfp3UvcqqeVRZVueVV/XXGV7Xla2a6n6sm1SX7eyeVKqTxqYqZTdK64d5v/o/w/KZvzP7R2Iht6Q7Be881LKy6tRqmS8UkWbKa9kqlJV20nVu0pFI0PQfxf9e0Cz9JfqW3GBMm2zQyWli+yX73rgyXYhA7lcpOyvwlFKFVQ6QFX0iJ52rt2epcp2L4pe/0f/u0S7uznzh51kpnd7pwyNHCOksills53mlSb19SyRMq1u99Vud3ey6RB7Pc8U+BpeyK+YrrzRTmvc6eH+u0nvHmjWXKPMwm8q0zxfmWJfw/tUFD0LvUfhUKXKNlVe6RbuNSYra6Aov8zBsurr6zI+Oi1xui2BOM84bo8r0se8CqXXnKds7wJXdHjS/9H/IsELJduqoOYQ80Sb29Itn1dkgeJjqtjXhcrml7u9ywyKEneg1YE/QsdpzSTTMUN9bY8r2/6ceaHLcQJbKb/Hrnqy8if+RBp+THjUO03vPGgWf1+9876jNCWwRAmqFr1BSY3yhrxP+VUHGyyTXSnF7mna3Ys0utCNDkfP4sKrR3kGDQCxTHIdpR0udy6DJlWidNM1SvUujbX0f/S/SYDGXWR+zcfN5QaHde6sgWIVw8ApMIA4t+OYNSPl0esW+Fjme+XKsyaSKhzu65LAP32N/zIrXau+lpft5/TNdwV+RuGU70kTzo7PfIfonQPNsj+p58WTlaZTcKYDUIqqVFD3CeWNPF551juzPesMjLVKpVvM7+4S8gwGZDSBkSguvBHhMM0WxxbNmRa7JldAu4N1h4ogfjZtkP0fYP6/IJp/YOeXsrSRQeGe1RLG4ABQxWOVXzxRKh7tjngYosQRDaK+PvUFgDlsYZ3DGUS9rcqsuVLplb+xOtcaJFBBr6NtcZ405nO5p7w9evug6VygnicnK23+z3NHIGcwNWR3FY7/gVLVOynVs8b2/QoXsts9iMFBIEuP1rXztGr5s1q95BmtWPmymho61dnm5DrC7UDUJR1MlnQH5vL/APP/J7ldU/SjOC6RGG7/MnfEhcZSdYU1rjqpbvgwjRizpYaO2VVFQ3d2mForIdhB9NS2BYpHGCnDlG15Ur0Lvqi+1pm+Zy8LraKd5kulk8Lj3iq9LdCkXz5OvUsvt+rlQqJLDjtYhZP+6FJaqnTYWEcikNNCl7Z9mV56/m4998R1Wr1onirtPdqdxrDJUzV8woEaOaZOxdXbSUM2d8pT4wP+j/6PNEeZtbPU2TxDDfUNWjLnTrUufVFLV0tNnWYXC51ttxutLbZ9n8rGfsSAGeOO26q+pVC2qMbaznjbPTPU++LhNpNXBi2/cPwnVbDpZbn0N57eMmi6HiqymmSx4th55Ztb/N1osBjBHS8b1bZLCoz4/JSWz/iLbvvHeWpZU68dJktb7P1+1W2+t1R5klOxGB5ASUZCjuI/O8RKcmcg/Z+4+f+Xcu1tUYMa/totbXu44SKtmfeQnr7rWj1rU6bOUmifvUZq8vZfUt6IYy190tbgOqzmVVm6bKLsmpvU/dL7MY3d0ReqZHf39G+BNho0fd0L1XX/JOyvYIoUbfZX5Y86Vn1Ilr5WpUotPjL1mnn3D3TTNX/XBEvOI4/7uEq3/LyftktII8Ah/OtzpSBWs+E4kDa8HpjNDe/9H/0P04bcR9PaL3r334zNH/kk8MKrAPWYVj95sW79y0VaazX/4L2kLff4qvLGnu5oBk+v7ejiUQZQjbpfPEJ9q28K9lTpHi/ZfNosl8bgaKNA09d4i7qfOCyojamy6Sra4QUn0KU+2y15+fYsytfSBz+rSy+4SdtuKh3+Watqw06OccM/F9qHbK7wb8T8fW29WrNqmTrqmzRhuy2VV1wYRG5eXp7a1zVr4aPPqqjE0i6p5UBOM3fkGfHslc/os/FVOapGve096m7rdN1v3JvSrMtQVFGsdGdPOA8ttxFEdRcUFah8RJWaFtYrr9BK+0ZSX6ZPZTXlVlnaNzr/UF9vRjWb1Kl9TbMyPXS7+Cb1iEup2MYEr9PWprpUb6br7s6qpTGrISNTmjy1WMUleaEt8vPzXQXkoUvpdJ8ydIS+CoNBsFZen4oLq+0X24OboU34i48Kxjrv7PpSfWahoS5TkUoLR9sGfu2yBY71v8BH/oWUefnJ0dS97E+69ryTtcoq3DGHSuN3/KFtgdNc7rUhfKpkgvpWXW3wWBrR8W/3F+UP/2gu9pvToEGTWfVn9cw40daU/0Ydp8LNLnU9rTAOOpVXOlp9zuilvzpdrUb5l865xsrm0SFeXwCKi2fmytuAwbKdGd37l79q/sJZWvDY05r31FNa1LIO6alSO5s9jLHp4x/7rE658k8+i/T7wz+p626+QraUnDYuppscnfL6M9dmOKeQVGqnU99n2wO0fNliLayf4+LEquZ+f5zXpz7/xldO1arWJa5vq6cbSda0NUR12uXQ/XTDLX9zOQHNoJogRyk/NaMtRm6rWauec+zXZqzXoqSWqIND9j/Kas0DatRaPz2pAwPa54DlLoepD76Rho+36mPNZsed3P50ms62tR+57wlMTJsZPypyoxX7PiliztaWFaqooEx5RQZiodUTZyJlnoAXCvLRNAw6I4y84Rf7oax6GS01ELPZIpWXbqry4s1UURKPw6sOdtj+zobnw8YRPuYCAwhqWnStzvvuMdrUVsNB+w5T2Q73K1swwrZ2k7IlY213L1fP45OUZXRtmwuVP/LTId6b0aBAk1n7V/U8ayQ6n4VTfq6CCV91eRYpm1dsQz9fi27fXRecN08nfvV0Tdnr3BCnz1IhEaX0SAndfv5lan7uBf3oT+eGih5qV+aCFrpvc/W60QoDI4Qewff4v0qr9f6PHq+t9jtAd190icG7Rivb1zhkQS5UpFeeD6TkKqVudWivDxymlfMNmpkvOwVY5E2rYD1l/JswbYpWzVlq5k1v8Jw3p4yfVVs1VDt9bD/ddN6lBg3QH/zzKUOPmWnL7XbUS88+6/wztDgYSlgqa2ugTYd+6uN66rr71NgUQUM6la75p9SgBw2lhHawmnPat2t8t1AdPQUGSodaO7rU3tWtfDerWcBgkEp8pNfu5M2ADfQy2wy1Q4aosNj1axs3P89QT/eEdydDR01XfmGB8mE9J8IvP0gKOlfe08RajXLE3UzWtW4JlrbES2fa1ZlZZ/8iDas8WnWV+2lU9WEhPPRafHf/dafp4Rt+o09+UBq74zn+Z5Wta5lRXWvpVqzuR91F20Qq2sESZ9ibS5w3BU1fx0z1PLRVGBYv2vwvyhv1UaU6F7imRtnof1yPXLqP7nta+tafqeia18z0gkee1LXf+ZFuuOufGms22XG3nTXvuSUqLSkNYYJzHHqdPCpvfe+TCpXp/+pu71C6t0uFBSUat8NUrZ29wj1ZgSuZuK7eMGnNf0mFW+bTY+Wawv8ja6a7ejVx/y3VsnydmudaXBfGPG5IkcFeTVmrRtWThql1SaOfEZTOjSPUu5oyjd93c7101cMqYjx1Iynd06sRW09Q/cylodN6I6IMlIU6iE2dUld7p6Z+cEctfXiOuhvaVVNUrGdXL9GlTS8SJdD0baVPf7FUo8eUqb1Fau1pV0dnlzpc5BI6T2OhAGfA9Ph+lzWMUuztcmnkiJGqKBtuNbLXT7NEyct3uxmYFkWFRSVqXj1XpRU1Kq8Y5jZivCjLmFGQEHno/sSyWgcHkG+us2bAbJDzkbcyBlJvX6+60y1q7lmiMTUf1biak1Rbvl3I/4Z82NpSr59/bpg++j5pyrYHqmCr253pxerLr1BewVB13u8MdJmt93pBeWVbhjRej94QNGSy6w4zsCumYNKvLGFOs0q10DrhGGnl73XzRV/Rgo6J+uI5BhHhnVSSSej+v16j33/iBPW4d6grGKuSsvJQEdP3nK45D8xWcZlBA9Pzo8cBKADHhcWfSoTpA6By5309aQ3fxgzz4jI3mu0cg8O3qFfrxX5umNDGUxLydQ5I/McWGfe+bdW2ZK2a59gWK8CX/HJ83apYT9gx1ZPr1LrYoAkzFfqfNBiitkuGlGjsflto1uUGTQUjKrmbgyE/DuAP3951MGNZqLfXJ5jOPbXjgO/AdH5WV1ubJh+9k5oeWqAVDWv1h2VPqqmrI8SwENQXzyzWlltUqKGpR80O29wVmbrIIOnj6CwXOp02g8X9mIaMllUo2xKujpFDx6m4oNyMZcDkF/jc7QNY4AnA4w6wsLxc7atnqqZukjvFwtDW+QYV7Zfy0RxnKUR4tzkVFhoYiYpyCwGa0P9Y+uDrZ1sCdqbX+FiqaTXf1PiRHw4hAQ+U8OT3Th6rw7Zbrq22Hqui9yw04pcZOLa5sgXqetiot7pZclDGOXj9en1D0HQ96Mxa38sf9RnbMBcYMPMNmHHS8l/qhvO/qaaa9+v4r/wzAAVKALNu0XIdtdk0i/AOa++loaJgeX6cH3zU+3TzdTeqxD/YG9D0/6ep+XHEh//Ep4/Jc5k6tc02e2jm849aQJfYL5EmkUX4H130j34J5Tl2u/b75Ie0fNY8LXhyZlBLYm8GEe/VFHMT72asg4zfenOtnrHAVRN70o0hm8oaUjtcu3zhA/rH939t1dQNtZFEHWy5+x566eHHgtr0WkSJYqkCbMIxkztDRT305BP0nYvO0wu9TSEUdOIX87Xf+8rV2iyta0UNs/ppqWLed7tGyQJoOm3sAMQhI90zl/meE+01b44eNsEgKbOE4UW2JYuZPd+SMA+w0Cm68ypi4MBplRZXq2ntsxo6cscwhaowSMx837fKTUfouGAl378sJ/aL/QPl8X/zWp+lTx9qG2VDhevLU9odWUe2UU1rlmvnqfeqtmb6eqmTaCE/+9YB2nf8Xdpq2xEqfs8Ka4+LDFZLxvb56n5yW6VczpK9Yu29Fr0unHpePja+3a/aSgUApmOBExtuCfMH3X7ZN1Vf9fEAmATJZAjAfP/DH9dOE8eqoiuj0WaIErM2P46ldsV2+SUlwYIpDrAptSsO9wgT/fAptx8/rrhHyHi32PH7f+XhfwxXFs44j/+Lwy/ejdc8p6DUKbq7jPeT2LjX/pFnXPz5zF1u9On33ZhfsdWhfOeBp298GjFOYXFSsxv+cvf9nxCF4azYDU33UKRql7PNVx887yfrAbPre6ULrinT7nuUaPGSDs1fbpWnNa1C4xF+hUlQw5pXWk1bJVVbsgzfxB2I+bx1nVS/wudNBVq7rEUrli9Td2eHikvzXc/lZvB8MzQMno3MbXbJ9OWbuXuUTjPfjG7NzJ6BoQ0QgwO/MCIXXNbgy1MRAPQRyVRoV5Rv/rFUKi4qUJmBVprvtrWqXeZM11jdmjB2B72wcl89+vwxgS/p8gAaKvXXfnyn7lj0Ac1+abV6n5muVPEmBs4qpaq3UeHUX4QZXYH/X4deEzR9nbPVt+TqcLd4++cscpa61iptLD2lp244XS917qZPn3HFqxC8Z0W17vr7X7SljdsCN1kQs6GxkCLIC64Qz8XxaD9MeQz/5C7+XBfaHzmRXMeYcZgg35WEX/xPVZMGdwmHi/FiXNKMz+B54Z67zIKQRn844vafb+iSX7wudIOF4yvuDeYXw+fnuRw2kPufuTE/wjueufiVzyc/+MS65gejUDtIGGqizKFu0CJdLXN5jk75ap4+/+Vyq1ppzV7SrnXN6SBZXEQzmI9Wu9DcGm03V0+0dBkrNS23nfqE+8/HpVVzpIbV0rKlaS2c26iFL7fqqSdW6a7bZ+uFp2cok+lUcXGpVTdLLQOixxBJO+Fe61apwlL1pruCmkW/jsRH4c0aKEEmYkg7M1mrTllnCD0FCZRvyVVg4OTnuVOw7VCY7w7CbVqS7y4uv0yllnaEHlGzg8pHtOje58cHHS7yqZ2f/61zbtD1z26l5fPnqW/28Wb08Up1zFf+hK8of8hWyiy6OuDgteg1QdP9xKZBhSza4hYrjU1+hgtsGbz0zn1105Nl+vIPHw6ITQCTbu/SNB8r2ltVY8BE1oUhYXKYn8aNfvwvKgY0+MdfcjcyPfFiCjmIhLtcxxRcda6kxC8JkQAjxo3pxev+FCNE3Eu5N8oriOfEjr+YIj/CvvYvpptnpufq9cO93o98xFiFtqRjzfT/uBpsmgB3YHhKCpE+dUT/jQ6A6VzucjZaJfuJZmoWw0SmbXeSLvprsbbfrlCzFndo+ZqeKFUMFvNskCwksM6gKLJxP8SAWen+c8GjBpAljh8jXrQX2pVZRSt1n8ogQFnuWG6/5vY+3XffAs15+Xkb/UPUmel1RxsHZrAH09li9famfYwGfg/SyM9M255hXBIA9dl4AUDhnRh6oAEUBw1cm85wgdsCla/Qrsh8gQ1VYlWvrMCSx/fK/IzRI7fXYwunWLJ1Bn4FoNB3fjdDl95uc2LuFUo13mTbxhnvWqKirR9yoXM4eA16FWjSy34TJs2pckvl1R2ivnS98kpGq+OpPXTZ9dLXz4+VDmIDcl3K6RWlmuqGKQyDlrEZI1vByAMZOvoWlKIuEA4ffpG5+8MkfmSQuLB3DBPY3xUU0x7INMmRswSenAMVrqKjwHlm2EJXaMJeHJOwMWa8fr1foXu/+JS39iuwoZBfgrQa6MuTYfP0AJ83+IU6oE6SvMYj7QJTMPYE1Vo1u1ULdYldQid8Xvry10rV1JjRi4u71WNDn8nF9MPELTTvtBoYLY3SiG2sYKwxWB62ymK1pbTCnbId9k1Xq0FlqbNslu/PkBa+IC1d4PBtEXS8ty1z2KXL0nr2scdUVl4b1DTsn26rXoGJzehc91g9y9j1+j4qGhkBJ30OF9Qqq1h9uRFSbJkgdczZ+ZY0eXZwSBESHOAE1c0qm9u5rNAKuNMYVrGFZqzYIZQvdClOk/J+4vsZ/fMe22kzjnY6fhbvhxyncPzpSvk0vexXDvVKehVoemed5gRtCG1+o/pYIVngrmTF7/Svm+Zq35NuV5krKzwQwJg2d81s6gznW1cmMZqShoxsBZtH5o7nsZHzrZpwFsNwPwIihkrYMV5HWTCQie3nFo6pJmGT0DHVGC/Klegb/Uk7OLdoVPHiwARn8bnJebx+PYde/Vr+g3X5Bk0Bdk3IY/QDLDXj6zTpgB2twjS/IvyrnfNtpkjKDRNElgcw9MyoY2ZuX/9AT+sZtfjK6lWd9PuL87XLe4q0eFmnlq5Nm9HMhA7MuieM/kL3VGteMrMPk+rGGQz3RwBZ41GxwQStnCvNsXq23FKo3apZl8HElComF7TZxllqAL34iCWNTaZip8fw9MqGrJYtnO9nFdmmsVwxg7e0dihtqR9Gwlx+ugy4usdSqMcGEyNjuIxLg82TdUYzLjPvcuBRBiVgw8AdBhXrcArsaJ8iVLec7YPqVurnDimZqheXbUcEk7so52Oy1c3CrS7USy5LZtaHwhKWvq6Fyp90bljG0zvr1StBXwGa3oVnGCRm/KH7KVvq1KyPYpAtfvQMzeuYqt3ee2B4EKCBjpkwSWN8zA+GJhpdwu79zRmPMGFkfNik0IZ8AE9whE7+x/4yho+p9F8N8DHDJMoJvvE5MWTS48b/MUz0j4DmTr4N+SitkpBJ6CT86zt+vG94rXtv7mJ5g07u3izx5/ndatJpi2/XcXdcqAlbu3sPrLJh/H6HihgbL0ImUoQMgx1N6jJgnufVQ6Add07p938sCIy9YHmP6i0NeHNPZF44MguqF9tliTR66xhnrqULIMqzXeMm0zrfm/98DFdoENkkCSs9yAcsEUb7nV6xVTQGERbPjJKHNErNgHNmrXLdR8bv7O5WafVwZWwwWWMzkKyeGRg9ToNRMICPyhYBxTVSyLzncEicIIFcE9QSaA8L2JwZpuBQv/kGC6pbYV6xJY8d6lpBqapt9C9Y9fEANghePu7ET+uW54epaal7iLan7OsM9a5R4SY/DGHAxUCK9Z6j9KJfhMIXTj3P3ccCqzFVyiz4sm78l/Tp77r7MCFhQPU//niRFixZ6AbChqEhI/sm/V8ERfKLTJncL3CNckzivOr++ivYIzI1ZxE6Pg/qUf8v+hMjkS68L86FDX6xR0/SCRVKjxTiJC6GTZ73ei6k40YhtVfGH4yLeStwg+djV/kc/5gTM3wXerGZ84UF9kMGbhg/hicnyYhQpChheu0qHO8JLdcf9XLunlWQT9ng/0KeVq9OafmyjLrcpZeax2hr86EKDIiWVe7hrY6M3MySZa2Z/Wmr9QYFK415yhxft1iK2KYPHuHpjgtO6PHxYwAMZuzrBfIGmoEF0Joa4v1OS6O2tiZ3zLax1i63mjdE3U6gN80AgcHvBNMMGxsiGatoDBZkDBCOSCFUtCB5AI3v9/nBKFlRrjpHvsfz87IuHNI8BxyOxQZTsfmm2MApzFup5rYbc3UYaf9PPaFHn3UdzP2M81erbO9qFYz5Yhh+Ti/8RS5UpPWxMvVXh0rIq9xMrJRTxraL9buFT1+lgk0OVm11yfrRMui0z3/GUoaXlbE5+5kusno8Rmbuv+JoprFNQ7/PPfrJyPQJk/OfcFEyJPcSZuFIRXAVpU1kpP5nRiYk3eTJr3SOB8MG9SyGSH79eYy/5NkDHeHeuqSJLqgRYTCk369WE3RW6SR9IzVKRVnebcWn9buk9JTA/GHgQYCFqTkwVZXjXKd5umXA6NjZP5J227lAq9dltHCNuRl1yf6Eh8nybXOsszTAkK+x2tBs8Ky0hEAVszAMI2eLDRhULGs4RDHz2sG8pOHMwBJIBBI1izhvdr6JH8BZbeCgwaDCdXezbMSqWVO78mzwpDOWHmG0rM9SJs9xfGabpTdIlFQEiR+QdtkBC8PRpBuc6yBIHZ9jB/WhXzpcX57ryvfCi3K3c+iAfCzMKzF4ClVRPM2g+Q65NwG+Pu224yZ6bt12al49X6nWZ5Rnvz7L/7xhHw64yNT/PRd+AGjSC78ZrgrGfFOZniUWc5XKLvuZ/mWJdeypV+dCRTrz2A9rmo9Jvxcbn0aloRMm5odfBEJkSs79s3rkOvRVtCliKjFkkl60QKJvEjfCyc6gSVKPjETM6OJ59CVMIm1wgCxcF/gOKlK4fqWL8frT2tCFe+6h1udlI12I74ZHxXzlvayGa5JG20IkD6+8R9kJD8Vr80lwjCwxpEz39TdLl6cGzBv72W9TqhuS0pqWtJbamC9ClYKhA+rM0JYa9bZPqm27FBk0zbZP6m3Ul/gcCWOhoGUvRnULAhxEZXQth1lzUwTgekYyheTxgNl8AHiArMeYLass06pVqzR07Hj1drUH8MeXkgCGKD73A5A2ESA43u9Y+hhIgCdtMASVDRD1FfgZUT3LWsIw3SbFULXrC70v1LjbK2WRUWBpU2DjLJV5TBWlu6up7ZehTAm97/hr9Kg7iMxyA8q2fKpzmQpGfzWUJb3w67lQA8qabVwYSps39BClelzx+Xla/tL56qsaryHVVc5g//SYm6/+u9WyKkemASOTwUZRSEaf6BfPYqPH68CYxVH1SHpuChaYiXvhGpeAJ6Yw8Nf/joX7HGOImAYx+SVP7o+X5Aj1EMaPz0liJbknVsjlAJf4587dQPHpA/0H62L8fHfd8ar/XszPQL94HmuWV4D8IlDoBxPA8FbsH5qr59Tsu5F++quUit2eTS1Z1Vs9Yt5ksDkCY5onLEXWLo5Dya5OdTnq2tkGT25krKNeWjFfqjBgghSBN0jY56hhSJSEeeC7JAwuPMb3E6+QZ18wolZSOUzNDWtUVjskGvchPVQs7JQoNQEKqOR9TngpajAwpogUCgMBDg1QorSxrLUYSwdVzc9EOgWxhsSJkgd1rcDPiNOzSlRSuI1S3X9Qb+elvu9H+VnYNjtsO1mz1taoecVjTrjZ0rJdqbJJ1ryqlG1YFMJCodzp5ecGmZ1Xd5hSaSre/UPro3r2BWnXQ75BEKOXLEkXnPxlTQzzksNeIjnW4YzE+psYtuWK/zFMv+xgzli8zw925W4/OAjX35P3/2I4h8fQW38vPi3GjjEHSq9k/C3GzqVo9QrgxRQGPiMBXMx//6+focOTXMkx7ED/wTri+z/Wce4a//4cxJz211xkKMLGQdLEF/+sKm29XakX9bgwHCL99OduTie/zoBZY2lRgv1if3pVjkx9qbdKNsTqGEDK2JZZYYnChEvs6Y5WX5tHSh0uxLODj2F8LkJu+Ed6+AMg3wMoeMMqIaj/sbh3yCiD1/bQtrtN09wZMzRu6hbqbusINgqJRLsEO8ZAAEDYMvblnFlgMHQYFHDqUWXLASoAy3HImM+DnWPA8BIV4IWu2mFJB25NZa0SW2/Myx+q8opvu+ZeUHvLt14hbabu+g0tXuqThuucpiVY9woVDD9RmEkBJyZyrb6VF4ZS5g85Wn2Z+tATdq+4Qs8+L+20z8nrKwG65E+/VqXlddKw/JIGT/ziMTJpZE2uYshwL/SykS04xrOEYfi/PqRdTCOmE8MNHAiIIWM4nsAZDdEfmx56oFRyDOu1iGzOgVS8h4uQf7VL7sc4ceQN/yTdjXPo23lWEePz8SMdck2/GJmIpokdUQyHD+Ntreo0RNZpXv1Sa9w9ukwz3fRxSBn6xa+wP1JqRMK4/wM8qEgwN42IFGk0IKrMyObE8DJzmTtHbBpeGmbM5CtejoBJCPWEjYMCc8ELOX4Il1Q3JqpVPfOkevy8HmccDSltl/F9lgvwIrKqrlSjJo22WogUcEAze9pog8HDaBgow5Zxp0gdABLslrSNCnDR5wygxiF9oi3jMM4EtgzADdIq2EJ+qOMFEFJArHnGj91u9AqUI2WpXFL+E4e/2ZmnPJRI2vuIr+vJGVJv/bUO5/C9TcqrsfbF88GJiSLHnS95TsW2IRCr7dYsvENjttgiBALpqGYv3H6/rOoGfRy2jIzJ//6rfjZOGhuGiFDgGBjZLZkwMj4xRmSeJG5MM7p4F18klMOF0avooqLEeZwdQIHidXw2uUjuEzc81/lH0sQrfF/f9cdMnH+uC36vvjc4F+wp6yrEhvCLcjvmOYSxI98d6jLzpM2XhVpoyJytx3SFFulr916hnxk+LwxQyX71a/8z87S3GzDWsINKZi8AgzGbb/5hZjIvKFksRmOutQ2DFpNvpkDKLAUw5SGZwCjwUjjAbzAo/j6GnMNIBov5M5zbO/iHSyKZ4NM252Xhi1n98ZvP65rfzdDjdy1y+Xs0dFRN4CXSJHJ4qemHRsnCPDRLHz8sGPn2AwR95k1smggmg8RPi+9ysG0AH0ACUM4FGfM9smIsBfsna7AGdSyvQvl9T9jO21mZ9DzHBHB9qnXZm7JD1Fr/sm2fFj+bsXle5kScQHnqtfXX4/SLR5kZSq3HuVvomquX5klb7nxUCBQfK91267VhCmaYgOeGTDubHFmYRcNm3PdFX9YWcs4gKFddDtfjY7ddj3u/wtz9Ll+zjpA+s3P9dXr9eZf9o188djhsp/o6SLMtXBOvR+0+b3cqHSFeTzh2+JmdwZ/rmC5HW6VWhvusN3Ce+CXHDV1Me6CfjVdbtJn16W6cI05fZ5eZmBnbreGafHcHGdLpszaft1vtytNXdafdAzpV9+pzNbfrzp0e1647SttsLm0+xaqE7ZHRIy01qqXPn+IGMvd19KS03Joai8Jg4sCHHHHmoV5jrHSopQCM1m4p4Gvbx8HVL3NYM3ls7dwRBOTSgEIvbQejcz8Ai6Nd6O3tAAz8Gh/qJHzOSFztcNS1rF54eLl+f8Yz+tPZt2vx3DUaObbGNhZL1/PVg5Rx+GCv+ZxZzH3OXNY8k7WYDBKGZzndaNPxbOwYzrBzAIzjASyAYL+ovTmuw9MV8Ry6vKzDpNLX+37/OiJo/Haf05q1Pul8xsDpdnmtHJZbgBga4CWVWfP3bM8LH1Le8MNVMO5M31glNd+sC39/kY75xhOqHbVTQD5DzcfnjVRlxRCVlJQo3ZUx89t+cPfFECpvXxmVQgrk+7okv1hl9isK9wrUYvme9Mzb/+ZoPXPC31QyrCraB858NNJcCK4dBn97+Iz79vF9XLqhU+NO2VUrLnxShVUlLjhhIP8P+Uxayz6+l5zzn5A9a1o1/fcfVON989Vwx1zllcT+fUPqj/lKyvakVbP/NLU8sUhZg5c8bgxlza3Fk6o14fsH6fn9z1fRmCrr5ExrR0FAr89qREG5Dn/2l1rVEUfCRrij22uq+7bALZakZuyMmRyVjsczHNxiCbLfMdKLNt5Z2wIxlZ4e1lUY1LAuRtAMMkcPQ8orzSvsV0dhkS4Ln3VaVsuIglpVYBckDEDwkfRCcAegmpFOWdtBrMVvMwDHjcag9nOc0eUrpQqnWWXH3DQkGxINu4e4pAHAehyvx532QR+brj0O3UoNq7pUUuSO2czKGpzwgrJoiF549iJNmbynqqqmutxmeScSdAgfWagY7Uz7hHN0DorNuY9+MLI8LFZ0CeBDajtlnRJ+6eurV0HJr5x3yy00qmfu0pLbD9AhRx6pbO1xrpRq9a2+Qj3LL1HJ1n9XqmfBWdnMoh+oYPzXlKra08m5r178E/3pj0/oy5dEUZm8m5no456lo8Oah1bXEupDVImiqoKCURMUiZRmWW1g+HOxe37o59rBV71h7sAx9/1UV+79BZWp2ldRHeFHGq5OH3le9KXwEOc8p0tN2uXo4/XEtVc6rSr7Uvj+MIluChEjuSI1zjtsMB9+yTlafPejmvWXO51XFM7+OG9GacuG6e/fR0tufMpnlhj+DZbiU9IauslE7Xnd13TZDse42ersQx/Iy8lMWH/0Qz1oVYzdESwxzJSHW2teaUO6BAbEfjBaAuM5QRiRuV67HWTblVdr9ndfFpgXhqHXphLZcLHLEqjKoMmY85FES2zLACaAyEvL+c/F0TPqPO14jL75VgQQnqRHcX0NYNJpSycH+OOPb9a2WxzqG6+kltZVeuzpG/XS3Jd0zwO/0fwl0hg/n2ezoA0AkT+A3+m8l5YV6LM/fq8WOyNTNtnP96kD81V+aZhPlm/UIlACpwEOQGK/AkBi3mROHwvZCkMezZtUuEGAhQSQgpXkiksBDirQlEpVWbt6Uvmlf/VV5PUms+zfvpLSp040QMedEzDQ1zlH6QXfUv7EsxzXFyFyyeZBh2NCR1vjbOXnxuYTmnXvI8J25E06hjQv35LVGhz5X20GvEZL3Ogv6zqt1KaGxZc1TseZFe7RWk3VUI3x+fixY32s1mgN0QjDbJjdcF/XGASVKndKZQZEXOkCU7MSh5Uw+HCPJcKsnYkrZAgb4xT5yHU84seEkhiX1SXxXmlQBYqsL/Snyf0kjTd2PJdpQHG1ymuHeT3H2p8Cnl9UHJiFFUVx35dCM2e+an3/MtspCWCYpnL4TtaxfblqeWSuAAI42QRPwHioZ11m6mTYF8AkRPBw6TQAE+tZkiSKLAHgS6QIvf5Iq3u9BiAzAxgQABQ4NtDodbgea7ZdvsfEzS77FQ+J/sPrJvOEV1FV5UgduPdJOu0zv9aNV2T14v1Zfebj56rU+uFsS8Ruxw3qnZ8NaPONxNmLHtSyVevU3rXaZbUWY+bvY2lzmCHt57ExvqUPKli0f7B3GCjgSFmZsxbtIGwfStvnWkeCZ50WdcMIW59bI5t+QqnuP/vBmzhtJrQSr0817kcZ0OhuW+pHdISh57ySaaFuU52zbfJ3vxwqNa9ouG92upaa1drUrPIRVp5NoAya8egDZmhHckZYFBT7fX5kK88AqNCFmu9mly4yXK7WttrPAIElTjJcZmqZTrBu/mndpYptt9XnLYdOtM7+devs39Oj+rWecZyXtMI6Pb3tCKcHGyN94gBB8kz3MOH59B9JDigPZ9EnVlV0SK0oC6Pc4ZohZzgwnPsXByRiD/tmjjTjWvbBx4kuPh95F3Rx1yuLsrAJe9wD0uE/ruWuDavHOTpgB6mNN/K2P5lqH1ZXwxjOBK2CAsA2viOturWZ2V0t4QYdbfwXpQR+2CzdZvRw6XsMBY+YbmCaQdLu5ZlPxsvOidvFBWY1de75a6TKWqtZBgfHUZvajvL93Q4r00En1OhjpxksTjtNYoOkYw4/XVefX68nbmvUHrscp9m2nbsMHjqE1saMttziYHeqE1RZPi6AgY4ghch0gVLWKWfN/qvqW2a4DQ0EV0A0/CmT65TrPNepQQUnwLrER4XH9fVh6yCGqUCjv+gQZQoPNDDMYVmLQVMYjOBYsqm6bXuyuXrWwFFBdajzvm6DJtuzPBh/Yf5Obhd/GmrYSHdxA2jVOnZ/sRj08yKrOR3HGWJYAIzfWSE7xNLiIoOl0Yyw1sw/1Wg+ytKl2AbuhZqmv9btq78M2VN3Fu+jS2t312VD9tDJFdN0qFW+SXmlBkxDANCHdaOO1826QbM1MoAHpY6nwn5+dtBRE0aMzB+BFZWlBCL9PhDhcgqguQvdlXtcQzH0K3/9abzSRf05xnmt+xu6mFZUD+M7F6tiYTCBAY3whsJyuc119xJZCbS9GZTh4kVWBGBmDHdUmvhcSkMq7qGt6pSwpY97YdrbvPEKSsoX1qC4XYM6FjMSpMQI27cTdzZIDLxyqxIFVs9YmTnagNrELDBxL2nzfaVDThijvQ4brx32m6Ixk92llVWps5t3JDxzg4cOgkpLavSNL1yqmZY+m07dOcyUpk+oLB+pcWN3USfGDuQOLqhHRlVvV4u23OZLqqvdQT22eQBGeF/j2kgGCGK/4pp1lrgfX1y6Flw5ACxIJF/2uSKyfYwUuzdwuKz5HmIzFqi4ajN1Y/jbP5Vx5gyygLeeZTy13vpurY09FGLk8dpQgMraESFyQquff9mQiSiF6WoMCMatfqo5lhJztdrnR1nJKjAbfMiK3MctbfaunaZtXPPb7vo+HXTIiTp2n8P10QOO1P7vPVDH7X2EPrn74fr+e4/VH3f7iK7f+TjN3PZUZaeeoRlDj9SXije3XJqnw3WtVbvFBg/2C0A1G/r5iZTAL2FKWCk5j9KFcP1hqY5wRnz03xAyhuMs+THShwRI4g50hAzvWVwP/Da8/1ou/iKhV4fxxTSjiXxYJB3KdI4lb0JT3dNPGm7AWGPgLXogZz7YKk4olNT9R9rtNNrM3m0wBBXdYQL/EobC5vyIg5o1xOmunWs+MHcxGZPbvWYMBAX2UiXLARxmyHgDZ6z9eNnp5xRZnexoyaqjrVvtzd2O4whm1qLS0tCJdnSa+d4GHfTeT6vD+WDgIW0eTGeMZowoJ460CC9BXQZ4vzfTpm72iDKY6HQoeHyHQ5ZyoHCtU3yGoMM7IB+DUDDxZiyUPMQBkHGkLZWKoAkPMhWX14Y8qYfd33oMKtuvRWOs0q1z2ztyPmsI+LAOY2o9DdYbySCKlpPI9SItK5ZYPbON4cyidN2gpbrCsuFX2l7t5Scou/lZOnLqodr+wCM1/ugPqvoTB6vm8H1V+IH3KL/TmXSDawwy3jJ/E8v+Ce4eJ+Ny55u4hSa6m5uQr60mTtIPJu2ndRNO10sVR+oCPWfpc602sVwLrO6KIleR7Z22ibP45iUyMr8ol3D4kYXI9OE9Uw404Tp3xLVbjdzkI7tpxI6T3fevsB++sSpxXAVJ5XoZ/C+0EU1sxyKsPtsGDL9nrIjm6Xw96zuR2OllWzPuCrcVnS2MhNGd5zZh6gs2DCCAYNgaSwfUNvzDc3gQDOF74ZQj8X0TcAyb4nSbpTWLrdq1BN4L72fWA9LpMFCQfLkBgFVW2OYrsQ1rkVfKSITD1q9p1oIX5oeRuy4ml70N6sZY8jOZEBqITQQ5hg4a49yF8F8YCXRZkCChVwAQZNiF457PfC+qvmEGQU5lC8Dz/bAeJwxNo75F58R9DwDmJFuOUsXmVeo144ZwZWRt76vAPRl1SYCsrf48tpcNc7rXhAbIZy3rALp2ySKDpFElPX36XttzliVlypZ9XqdN3Udlk9xFDXFSU1GAGRpxZpjJXG0OQKYdub3B4DD0HmMNkKFOe5ORPrebyq7o5pLJY6LfeOsGE53OmHL1DU9rs1EjlR39VX0yNUHvtZlcjUldwC42sLrzGRys7Uf5P34cQ8HCdbwTWTd3DAwf7/b7ptSK3bXuQe1x1Zk64Mlf64DLvm9p2uA7MZ2YFm2UpMn/13dJrGjJ8EN+0ahpdduixucF2zCz/eSE9tnaur3bb61Nm7DexeR2CqspE2DgMMhHutrazdwBWHYBIHCOA4SXlThfQhxJB4mDRBnK+zobqSwaa18pNa5wx8jRz2Wku9Ouo8E9u7PWWt+thXOWa/6sRVowa7GaVjSqsqZaU7aeGMCG5H47RMdM3kpKeA9DrVh1oiyu51B3vh9Fqa9Bv3059vnZqLtBfbMvc9eC7YIjRdK1GArvaoyqADoDJU678Z+RFDYnNE+lspZeA6iwqCakyb7kjOKx/XKKDcxNobTMz4kfTXJDpi1qnWAW5XYAjW5vt0E/Wr/snKd7e/bTY0M/a6Z3F1Xtlh3usLVugXK3bLkTrrJ/mUuEEl7la7rCsZYo5b7mE2k11g26fTzj69KpX5Wa3ZLjAYxVwiluTQA0cbjyxjjOqAr1DmnT78YcoW8WbqGjdbvWNdSHQYKQUbv4PzYcTBopUY1iIYFRwsTBJgkNzXWM54xp2qEHKb82x6mmCZ88wP971scjZJBPbrD+9F7vF4EIM0S4oGljvWTUY87u7Gg3a6R0sSGT0ARXAdW1yFKglP4m54+EqKx2NeYAgcqUsgZTOzE0Wexl/aBQTnoRn+PHs3P8Ef/ZhblmOUmCnVPuKi5zP8U8NGyZIW6CMhv+NjmCY4bziBFDNXraGE2bPlFTtpygWrclWzKlu2Emhpb7Qf9WqL29LUjCorJSl5Fh4Vy9ImV8A1AhoQEBtkpYChGWFAAE24T4+TaDAew3ECQx96h1xw/1zxHJ5B+cEVW4XPuEuK7QAZTNL4v1jfnCd2TYuzZHgWOyGFugydlRr7ue4Blwtp7O0HTtbruiVZ/U3uWbqa/KCVWUuXXNvGFzX+fUOAndHud0dfAfTyh2S7I8sNbgGuLwtPo2bp1p74sBLrjeUsaij6/2DHNLjfI5IJpo3cPAKRxVq76aTv14xMH6rCZqp6tPcaxijQuD3Chd8ZcwamRmas6PCuehmOHK7OLHO6MGTgxBDrhv1ezF/pGrhLBAYqoxJSiqZjHt1/qFMKFRIlj4RcD0BcO/x3Vd0NVnhbN/oRhqzo7TDBiGll1VVKGjhSzTz9RZ+LJGBW+GhMdYymBaIGEgOuIQnAB2VD/HkBYBNqDQur7Bd7aCKQv4nH542ek4JMvzasoLQ56zHZaOtjWQkISnz0F1K3GThThvg7psWMG4xaWx5WBm1GcAExS1+BfKxwtKCskS7bCKGNBw1/orZQI4/NikgwGAjO8DNFoxtIX9CBfD+kZQ2cwPJP4KcgjKmG52HTpmsKPoqGPdOBNmPNQzbqbXxIrfgNZYwz9EOyu/xAgcaZHGa+dkx3vUOhyynyEZUBkG+cmajxQU2IZZf/bi7dNKy/4/fUL682+kMz/u7qrNgDIIeQnAa+Th7lqHW4+Y6O5vDFKnVpmh3frTyKNtB6R0lK7TwbpSC9TEmF6oqIRhI3GeMDH/E0g5z24MXobh12WVs0FzfVag+kVz9PKP/xZiQ7dveortuFEOl6SWS4m4IT6/gfeiA4TAJRIqGYBhiJnRMhu6bsgFyxdohq8T2msHV4HbpWmt28aCOrShE0MqVFubDcauWwtw8G5l+FTfg9HtDwMDkqC3+0j7BW0m8SMt/tkvnDtrvOagX0QNonnC2/8ky76m9+4FNBY7fK2BOoMhg0rjjDHKxBwv4nYyF+dtUF/ateV0yqzaA0ikGJlEMvBCkwJhR9LGQR2jJ0A7ch4hfJE06ydyUgDfCxM9fQKwmKVPfgFKnPVMLI78510QAwQDKZd476KQHuXM0him2N2yc2ZepW/YOMo08MhX0d5if9uu8JKpZ3GHepa5oqhVdAfmQfRydKvTPdH19Lr0DNXxoPCGzGHSdrzRIg6lXGoOKfVxtLnChqZeWhoki+W9rw3KWoMIvWSk7aBRw5RfZyk0PKt/ahudprE6QkOs3jyhLTRStbaxqD7YGKalWAlTU92xqaH4rgbjslPrtP81P9Rnss+qdEyFU6jTs2depktSO+vPdi2zVzls7F0GEqM5eUmLvQbFp0ZyyUOlMyePMblg/Fv3+s0/r4oBTMNQicyXa1x8NNoQGwb2SY8TGD3B1eUqo4sKLxOtSjEEDWuFVxgOy/sYGhY/KOjvdqEt8eQ8l2YAis8DuByAsOHDwlDuCPjQtHmRjR/edBZhJMu9OuliUxdZm8jw9vNtUFtHK5hUidsayUDi4bWCwRGGi8lkKJzPebBzg/1CphgtY9Ea98lVlOk+htGRfqmSCWlxF4rpApdg73CdK/erCHFq7Subble2/eFQZ9SDPZeqe9UvlWm4KPZQr0Hsy9jiZoeJ8kZaG7ea1TzH1mO7RWuXwcI8iA63KOPVjT7Pc0V2InFobT+EvXxqrGMMRWF2TTMIDrBYzoe+0dRiW8aShe1Rmjqs+rnFqgGNG22UQTPO97CLRpdrStF47auhOl6bGMwlBs0f9Bs9qmGWCxEoUa5QlOQq/qI/e2ZRcDazGHl0/NDU2M/sGSq81CpfrSYZjpMswdg1pz928oPLBqa64Y92ZYSHBqJBaEbYKpniumTdKj3xaP8Q85bWQttcdR0WttR/4AEjhCoaYYDQD4VG9T2kC+9Q+D4pKgrPguGI4yyFMDB8LLud/yUShGuCoUWTPvGSaDgoHP2PZhtaN8L9n09CaoSPjIdNiB+jU6iVrWxJ8zZozbrl4blllU7MnSn2R2ROMgkAuGsm9wEMBYniH/XLGW0Z7BzfD+oY951HQkTpQzjf9F+I58pksIDCB5uHoy9fk1xZmXUXK73yB86TAzpcrjb8ZzGUTbvnf53I66zEVJqVsi5UZpWz2+FsWI/obe9yL2g9l9e6SBxLmew6t+jjC8z0QzT3kRm6/oI/6ZdfPkU/P+EI/eZjR+v6s8+Os/k6DbYOAwTd4sUl9jNAkEQjbH3Sjc22H6VZZFXu0ZXu+gyimgpN3G0Hl4U+W5piO4uzmzRPzCGGaWMhYsPi+uVMv7yBywDGzcM/rhlnX6gXv/sXp5kMAjg/wb0WGQ50ArHmXkUx9QgVfjQSYGFONe9keNd17eonQyio0kWttlBla1c25UuYH6YtxwR0P4Ggpo3RgGvcdyBVko8dwL9EAQDhmqxxHjvscA3vccGRF6asb2EeGjYRu8yEgHZJR47SMLS2xAIlqjOkBfMyNR8G5T0FXkUFlga+3Rtmkr51amtbHRi7eiijXPSxUQJERo62DdNbXALnzy2Iv/+RVwAWJY3PDRjuM+0GMIQXnAFAEUiEQ7pQyhCO9PyQMEqHvvo6FDoybof8DGx6e4TMvA4x14pJ6/f3PaV/ph/SDavvUXNXu1rXdijdZLbttube3qn2lxcpVe0e4z2b60s//pzu3bRDZR97n/b5zY/0vj+drx1/fLbm1LkCnl1kKWXQMP0ANW2sJVCj1bLVjXFw4fnF0tYTnalSdf/6u+q9y+rMjTOcEXNYZb52rtnWxW63rMgEVQ26Qs+pJqhTVEdYXeEChqVMdqGKwjFyVZQ6vWu7NfcHt6jccmo997zK9VOsIvu9Dp8AZJou5iCqY8H4D8eMpXWHZg1YNOZqUquFM0PISfWj0cLAo8ebIfHP3eAl5qRt3c+4moKXs0EvuR44+CWEXy4ePBVG1ZznpcZr47w4vNzk4+IX3JkarJgJMC6adU11ngV9rXv4XsdFppKf2KMzhAtDkqe0UUeeet7mSMCK1S8GdbG82j2Inxbz7e7GYiWfG1zxTB/DiFk4g+Fd0wCEHxVhYl7iiMoxam5croqy0tAGYWQtJ26RPMnunVRMmLfmUzrT8NhB0Cvq+Y1ole2Zu/W8HlSzHrE18LAh9HD3i64wJtL5wQZNilVPKNtsrrV4rQ76+td0koFy8A/P0Haf/6i2+OyHNe2LH9FJd9yip++9M6h2arEqh5RaaBG/ysy0xqChw2eKrZXq1tPOcian2A1X67JHpDkOl1ek2q23sIzJM7Pn2cIx4ExX6UX3wGzakahOVANFDEpZuGIqTRgmcmNH1Yu5snS3NEME0qtdkgqgs0+bjy5mvO6/h60UjzQCzZL0aMgcZhik9ESeO4gclTFC73TW2Yt9wqBga7oVN5nic0xEPGl0+1fYpOtzuDz0K1N4jgsFPyQACczPuY/Bng4JGBiOs9J9Tomras0qaYHBstKgYfSs/iWHdV54dkVpSnUVw+M0FUASnBOw1CFrgJnMMH1/8dwVtrdSau7vA94S1TfWhyapqi0OmkxApB1DzkGN4tx1F46Aw/7UapgxYD+KWFJRpiHllXrgpnv15c+dpl98+xJ972vf1vDyulD/DMYE2DgZ4obuE8CE+CG1QLnqekNKdT38ynCI70eeNu9PvEJ7H/zxgGBGin6XmqYXQsNnwzAvqkaVz7+Wt48KRxeodGiFli2YrZETJ6p4pI330kr97q7rdGrYfK2f6Km63GtcPeE9Ov6IT7ngri0+pcVLUV5PYwlXmomXN1vSTFLDUZ+xjRFXkHZarqTcS5d8+hRLqtlqnrdcjzU/rzsN5Dm+d5Ma9cMvfF1nfulMZdhKhcY2AQYK6WIo3dilwj02UXZJs7KNqIYxxKDJHURqaKX6Glrcw5uDEm41hQmG5rweGyPdPV1qd4fQ2t6qlpZmNTY0qMhFff+PvhyGbaHNNwmvo/TybFeXi4yRj40w2YAJM4DdFmHwyA57Z6d9LJWcBqoZVYVkIOtM+yccxnwY8YcD7EfWyB2rfVtZa2jmXjY3qmWsb0Hl4DkTLO1GbxmBO3bksCA5UFnYbJzJanlWn1FJ+1jt6jLjX1RSqJXL6rXC9Tih6iv6ysk/pUhvibY/IKUK5+Vblx6jAtu7tBbvDlHLKDzSLqqODuTzMIpHY5rxK63ml6LyXnCr7r95poaNdkdkgcVbBbaMqh5SobO+9Uut7ljhuokdaoFVMUbMwq5CqJwGYV62V5VFX4lwctpXXvor7Vh8uiZPcj3TWwygQYPm9NQY2zVhYrt/EasjfPbF/D2VP6pAheWFljbdKq4rV0GlbY+qcv389st0RqdbaQNyO+maqp31sY993A9yyfi0Fl0hO0Aw2arcAGIeyTaba92nv2yT3zk3SBmOaNVSVU7ezRxkv4UNeuRx9sHPWC0r1KFyxk336GjntdM5jEI38haVjICp1xG3XKxF192jWZf80yWIUmawlLaKOv3Dh2jJ1Q+5HJ1O1a0ZKPZYcXg5Y7nMetS4VpM1nqw7bfLZnzQ/F1464D3RflhGj+8qsAmoMdY0u62uhdzaD7UqPMEeWxg0LFcO07J8DUg4In1ce+p1QQFNiOdDwLNPCqzRsnk5IJzzvKs3N9kDMGIfMaQ9bntp0y3qDNxuP7M49LwFhahCZjMzVYET7kvZIiug7c0DRmarjaMFLzVoWPEn9e0vXxATfQs0fc+Uhptlzrnxo+rqdKYDYJx1H9MAlAsTQoiKYvi4xDxWmSrX9RffpDuumamRzJVzGgQN9WPHkbVG7z/mQO285/7q6epyfTG8Y/D7MWgZhdgyvsg3aKqKTg98/WagibkZBK11w/M2nMqEFdeaDT5YsKVaeOnT68rN9KqsuswZdcswTNfTo93qttZtf7o8JjCAsDoyDBnxlVO6ulb3vCj2bU6L0Rr34uFlhRXmrsAOAAZiimO1eufPtOJtXcUq4ZSyyRrvFO/UmlwY6Q+aYaANM8SYVsoXWXgJWhVcsSrNRKUqrGROAXu5VG2UY+FbUVWFe+Xcec6v0IpiYdjfssz1VG5X5toyt/ou+31iEz4/wJZhJL3QxWp23wAzj7X9MpIqATAwuwlNBMbvsAY7cStXkaPT2NQG/qhi8BH/EqkT+MvVTxqECcBxBJqkxcY/Qj2E8zVRkFBMHast5wU3rUsEh/fdYAY4gfBW3qeontgWUT3Ks7Qy8xm13T3mzLdIzc1LwpgQZlFFcbUFudPmEf6RQ96Jhy6aynDhCosLNKpquB7+x5P67AE/0dMPzNQYm74sfWDglrcVFANGp8yV7hD+dukdYXCBXNOl9Vq9DBauk6STi0+I5R4MDRo0rLiPyfMgtg7K15R0XfiwDzN2sz1ME3cIckqLWE3ZZfwUPT3z4RB/QyrPM9PTzaIrAByDpW9Zo3puseLNCiee9tQCtU+ZaIAyTYOnZwKLrmIHybm2ffzs4VO3DIu2fm0JBA01e35T+4Te/Q2Jgpioqo1xkVAf4lniB1vRS3HGEReMULukYWZbfUyIeaswByPxU6fFnpEhZiRHLumQOGBgGh9rWrA/AtmPqiY+9R9AZschkFsVv3yHwY93PTQJo/thFAii5X0T5mKHmlSxO0SyacK4Dl9VtEN14UEwGIDJd4YYei0qK9QaawOVlRVqaFgQI74FWrpyVVAwyszcLD1B1+TR68nPCoAxWMZUDtfsJ+frc4f+WHdf/ahGGSyUY7VtwuVmib13/bxOO+EizWWLMieCHQg78h7ssvPOVXXpsFhpJjoFXn4SkM4htt3gaNCgIcmcKaUlZuKztLteMjtXZoptlrglXLmZHgroMDRub0b5o0dqxtX/CnE2pL6RlTFRXpAW2Ua6aabyRg1R0c6T3f2Y4ZmP5vJN22Vfm/drLUcSELD5jlt5mRuqg1bN6BMVe+fuSf/SJ7Vab73neytED8YPSgzOOOTMOc3BOF9ah2uT9RUOA8O/jKIDFvgC4hAm4rpoAJMPwG66k9RoKYMmQdphigwJcUFYX8dnJv98jZ/DwCJMxGDwgCM8gx8EHngDD8PW1Ba5t88EqRKHXwnlACEC/bCPXDrNMPmxN61Jm07QunUsC8g99C3QilXPB2lXO6wkqLAUHhsGogwF5o0RVaO0/OUVOu3YH+uvP79DNQYBgx2zrPlvOvkA/eLsW/TQDVl9/oTfa+89PqULf/poWBkKARqy/twzq7SuZWHIP10a/3lOWLgWriLFJ78xUfWDIubkEnyFZc5ntJUTj/sDMEFuWVOT1iyOhncfY/ZhOo2D93YrVR9XxG1I6QnuYq3OqNx6StZq0h6bacWjL+uuO+7TFbdcpR9f/SstXei4rQ3ae4fD9ayW61Et0wJbK00Uc/Y617TVH7rE4mIzpGvS9Gs9EhSlhIn/PRSbITRE+MHLsfqTHgzwVBjsp2pz1Tl/i9wz3v1yNL7pZ4I65aDEgmcSP8ZFCl1FLA0AREGlsD+dJC8316tj8SFJR5p7ejxit4TeFCz4CJEr0mNJNZ/gKOWjwZTDCSBJeA4qGCc8gzfqEUocHTK8hLRKOboqfDLjrdKK1cuClK0aVuFuJe1nR0ldaLCMHTJCS19epq994ue64Fu3RI3d+VpjlfYjR35HM+/N6pxv36Edtj4kl1qkzaftom+cfK6W8M6VOrEbMlT6++WXqrLY2hE/iyEGFBBH9DsbQ1T5oAhxttpI2N32wS4aa5WoySpaicHUZ5WoUuOHD1Xr4nZXKHq8jWs2A06XhCUEr5UrGuVbV5+tI6/8so644uv6cvt9uv6gEqVPf792vut8fWPNfJ187y+dlLvB2gIdtOdHNKVgrKVMi7YxLFRmybPWSizWnrvLD9iyge4wrCqtwv17KQIlYVUXzRThMvAOddjiGjtl/J5m1JowieKWJ3wPIw9mdqAcTwfAcH/6NpL7pDB6RIIhtfiAICmSePgRJmjHPodR8AdEYSTJR9bh0xTJqC7vlplxwCqQHkRfjOKkSMwO+8I+KVSyACa8ciF8YBC62wiOlu5bo64uBlMMmiGVQb0vKSvWCHP4cw/O1alH/1znn3W71f+M1rouhg6dop+d9Q89fGNWx334uzGB16HDDjxdu22zW3gNSJ1QNy88s1YdvctcDirTUsZMmGFKkHsg+HGwNGjQjDfzH+g+ck9D5DEzJispbVLpPv+u0D/1y9W36XedD+sbC27Wl2fepJMX/UMnzrlYXWPHacVL/dPfEzrsa6frpOcf0j+c2xuyrTrnjn/pxB/8VLuf9BHVbTJJeeV5OvoHP9bL99kmak8r096sqonTtN0WH1Apb/h2s86y1q3eaTYwU+yRAw0DFEwujYbkv4eo74TZ6IkBCr0xfvznnF/ctNDqZXeH9ts67sEAv939lA1YJ2KzIvEKaSJEWcocpAQ8TIJQ0sAuOu0fAGKi4bHTcw9eL5mQEAy/YhTnFj2Gl6bDR0dJUzNOWtfQan/EXkwjMFFAKsecB5nwX8gGpxY1ZSUpdfGG8y3SClbDmUZNGKVSP++OKx/VZ/f/tW44/4Fgr612h7HL9h/Sk7c26tJfz9WuOx4Rwg+GvvPVh202F4f6AThDbNLccv1NKiopcVGoPCqWFouzNgZLg+as7a1cTHcPjtFd4N6ScacvjLpfx2ctPrMNdgv0vexcndP2kn7VNlPnLXpel8x5QX9a+rJGbzU9l0o/VY0cpk223jx3ZYZx6+fxjqO9Q43rGjTr5Vk6/tvf1HWr77GKlrZ/j3vElDrX2Zhe69p8zIb/CKOlzYDq7HPeeKMfaYX7c0bi/13Ek0Lv7DP6XdScBCRhby6fo8qy3ImXq9gO+2zzHh2hmhAfemKG9DD7AUS+FdP5Jm8d3/0GIEBu48DMvg4gcjUwD3ZgIwYADQgHcPzIcM4ezuW1rrJmC2qrfFXWaFnazHy2lnYmrjDE45/jh5eIIRETD7OYCVchLw5A2j4LHQUi6C1SS8sKFVspefq+Z3TK/hfq8TteCt/xbLAtd8xhX9WsB7P67hlXq6ysv642hq76/RrNXRiLwluN++54zrxb4VxbYXZBw/yAvBKl+CLvIGnQoMHAXWdX7aYHk7NtX+x5+Ct1ybdLbEI4dOhQTZ48SbVDaoMqMeqIQw2SbvV2ZdTy4lp1r3JtDrNorXYtGDBqduF7O21od2lMbFHbPkssF9mxMdfo7zIFxnFVxspMZgZEoPBOgD114pZXBdEvL65R4WPun9JEH2PMJjPzrU/b0rOpxzAwC8OYGJ6UIjKpWZaKgWkBiBkBnoaPQwAcyXHf/vAzqhSf0uhqscawqTRlK9siE40lMyuDAHS6qHDLG1vCtyoDcEICti9II/wcLmTEfu7gQtrBlwe/dVrbMDswc0tDl7qc76LiAn3tlEv09O1Zfda2zNuloqIqffnT56jREovRQebzPTXjTuXZZkLa5BXXqL3lJTWvuYsCDYoGDRo+5+CyBcDQ53AcWmUL8l2iESNGmL2sQuy1s9IGyurFi2x4FitTXKj2JV1KN9lCaLQe3t2jbG+h5mul/mBra4hzd5Pmik0/gsHq37tNACSqZRyjtCkMLgKF/Xr4hBPbKPKh+MKU6zJsw4pEKtBU930JjbQk2Ocwaac9DSL3D9QBPX9gWvgYZnWrhSFnWs8Mj39gXe7lipsICeKyAQd7AwBEJpaTFsuW+OoZ7zbQwkiq01Z2a4dV27z8GN+RA+hCWuEJygsIZWwwJ3lCzLdOq9euDSNdm0/bT9de+LRuurxXh+5/Qu7uO0NHvO/rNn3zQ2fDUobHH35KRe4xCkpqtXbxHZYyZaoedTDFGhQNusR8/x12WO4efZGvNrHMWcF35t4Fam/t1Iv3Pqpb/vxn3fHPv5spClWRP0KdHe6NDJKOdK+N5G51t/equ8V+VtRRe15QU3iluVodOlU3W/kZvMh9+xT73aiAsckH0iV8f9iOdaZhAyyfx616i0riF64Jx4hkQuPHWjVZ587CR/Y0y9msscfPgSeQT5Kh6XDJtcPgFRrfDsCEcPEQ9i1j/2ZmU29ik6o7p/qRLvGKjNDVjd1+Vq/tqWQoloTc+fgaDsg4AtMdw7CwM8U+x9x7q3TEQZ/RnIezOve7d2nShO1zvu88/fRbD2vxiihRn3lykbl3iOpXPqmyWhsdleNt+zB0PjgaNGiowFWurH+oQdfa1L7bPXvNrME/6LXo+6d9Xt8+6mh9acsddGr5ZJ2UKtKXUqX6edVYPbTvJ5U98Xydcv9Qrcp2q8OKN9PrGctHtWErdFQyyxyb/cy/7nauclxiYqTq32vX8Cz2N4nyhmcDElxxgEq+pQzAMWisnhUVxY0QaYCWILcjbcL6GR+xaTDYIUq1nhJAcIRvfQgvJXPXAShcEiacxBphnRiTNcftaik+zRLHUiyZ2BkC5Ig9UVasbRbbvmLXxDQYXYoAyWeouc8ldLiaIUywdMnfhrD5wqfe+vSbjaHxY3fWppuMD0sueJk7b92zrpN2lVTZr6c9lG+wNOjiYiKinpW6qYe5+e92f77qARvpA6gjndHdN96ov33ve/rrRz6rv087XGcbBPdf2v+9woE09je36IePjdNvevfWT7r20bllx+vcocfra6XH6JiCvbSDNvPzGNZmjzBmfbEupc8988LgB2hYQdNkICNrUGawuSLRL/57CQhElQt5w/8oSZA4qGdxYMBgsj5UWMhn3SPHdoVjJGYHMaUEH0Z9Q4jktgvEJHKug2qGl0HC7QASAGN/zhM84BXqgftmGBbXsuyJcCGub5JeGCDzdZBYdgvXrA3rZUIiSWoOUFBSoCHDSrR6Wbv+ev4LuvOGBqs8POW/n47/8C/CDC1mWMyZ+bJGjN9ZS178m1JFFcqy1eggaSNAI/Eh1M1stra4H29xJW6mUbrshJP1+6321TdTxTqvsErZD3xb2333ae3zty7tNneIjtK+WrRkXkxkA+oZM07t1hHWrm0yEFrVlN+ll9atUWNnp1rSnZYfXQYDi7cYEmSA2z2wzzrsGydEprRO9c5LW5AswGqGr6AGh2Js5F2hN0g2QgW5E6VNlDxRaYsA8n930/Frbmw3HxSq9TTUNg3TZcLkxIQGnAcbBx6mQfDP8TOEP0Y914H5OcZbUargZ/5OwBhuAhwO4Z//7JjKw/nSNatVXOhcGlHVNea0bFpPPbBWF3z/Zd1380o1NGTVaIlVyLj1/wBtt9Ux4esKSMkVKxpdxIzGbHqE7eXb1bL68f7KehMaNGjoQdv9mB0Mmm1Ua7gUu92qVH7pYxo9s0W7antN950Oy4aXbfk8oZfMzq1WTCwp2DzrNahzgrvVdRl12KCv6HO4VkbnKpwGahhr6hk9jwu5unMOvxpNCr1zi5q11s9qdTGqbUyvCWECO+jP+oAB1erYEW4DHW+z2SQhWSK2sa7PcTOW8691Lzo4GtlszvNVdPEcaPO5jTCx1X5h6sgAYkIljMuMZQjGJyaXSBDOB/rRgFxDiYYR7vk8XOaO69U2GAO/cNPxfR1eduJy6iD3ETKoXY3ty7VyRY+uvWSx/n7Jai2Y7Tr1veWrpd13/IhuuXyWLj63fzvd/yZC5dpQ7XrvLgeGEcm2JvZ/yLON3KS6CfupYui2odyDoUEvDfhFapphwizeQrNnypKhRyMNCVQMlBLqO/adrJbEAGbqTZfGa6hu/dQYnXXRZSH9gfTzz52gT5/fZ8bnM6RIjZVm/uG+guEii/FjbjNSg6kopIySxiczevyj92akbLp/79f1mu+roeWVmrXfL7W0qyHkfSB1W6pte/mpWnffDK28+knll5HTwVOmu1ejDt9e9f96SRmLhNd7RxFzboj0Geg2KDozXWrv7VBzR5t6agtVffS2evbsK7W6sFOXroxLGmDSH3w9vqnnnW2rjwkjw8ROLjA988iQHEER9RFVLcwt8yX+xGE+V7jNuf34dAabB4X7PvchzGULEomwdtQ5w798q6bN/dzKRdKyxZEnCLN8lbTZ1KH62FE/1+EHvrMjXG+HeqxvdnS4q/WRgaKeHnediE6LVFaX1g4dquEj4jSrv/7jbP3zjh9oq60n6KMnf0E9He3uOKwTuC2nFH83tBlt+o6sp/lJaqrKLFloO1QPNj2HrdHXAU4yN5UXeFyjmtAWQ8zoN+5crnMfuzfcH0i/+f43dMR3Fpj9uy2fys36wCPpnxGeDG0m2UOVSTtsvUN3+wobgWeyQUbWsmeCdla0nfbWJvqRDjQI23O56id2oDnk3t9rybUPaM4fbnE+B6/LQsi6KSfur6WXPObcoiBu+ARyFBmQslAOljojIVE328jT+CEae/pBuu+0c9xN9OmfWhbisQDte1+La0Ba4mh6qMMwZ8yJApIAkNwRBudBfNsyLD6zAxQEB0R0svgFkPk8mCh2ATQOF3KOn695Nl8rW73c4FiYG4r2PVako9Ice+SJ+uKJv1IpX7P9D1NbW1sASZcz2ekehm+gsjgOPg1Lsh2mt7dXZaUlGlpnCzxshBDpaz/cQS+8+Iz2PmBbHX3iMerucMdLHVkUTyn5fmizNwONgw+O6PsZdoZd6fWxKVh5z9wz1lzD7ozdo04RNqeI2L9AzXOYq/1qGlk8XHPMNkiPTqdEWqhgqGZILUabkFqAaI3l0WIttYQBOvEFK1YLHxGssHy6XW7pHO0j20pO0cV1DvodHEauWRUIs8QZyBvrHN86TbYgwvu1HL+4wJZaSK6j3ARErFMHbPjzAcGEWL1pr8DQwcYwwdicokZB4cA/uzCDN0ehYR2QBo0bSgTvCA6HQ0Ktt1t8SIx+Fqihmi1d4M7yTmnRXHcs3dKSldLwukn61hcv07N3ZfX1z1/8HwMM4Kivr9fChQs1Z84crV69Wu3tNhasxwIIvqEKo6fTVsXtV1FRoSlTpmjM2HHh/rrG+frWj96nSdultLbpGZ32nU/oIyd+JKSBhKGnoWUGS4MGDZo3bEDigAcWoAcFKHE/L97lxGOv/VzvIRzfCmtvfO2ZzjUj6+TiW3bUO2x/OiwPe9QAudmQmm3Zsso9Mb00ZnQC0PgVTzYsT1tNHKZzc6s2oQM1LYAvmuP9Pyj+76eB9wfzCymEv+TqtX+AneqlxggVeTj+DxvtmYMJ1e58JlRT7X+OBsMz74yOAQpMH5MJDJ47janl/KAQBkSYAEQ42i9MWPR5iGd/XmYCUHaTfekZacaTNi3XGCzGLyrY/nt8Ri/em9Glv5mvg/b+ZEjn303d3d0BHIBk2bJlzmtrAEZxcfF6kKAFEQ6qrKzUxIkTNWnSJNXV1YX7DzxylY7+VJW233OKmvse0Z/vOF7f+cUPNWzicK1rX+uqi62TTbkrw5DM1dmb0aBBE6UGgAAwkXGjX/QHIDRyBBTMjwNYFvFJS25AE8dtrrlaZBtpmMNFSKL2/VxPBpXlMQPmMcPqRd9F3aN6AGt8XsqypNdK2QRdrGfVnHvGCdrG90gpx0n/MQrNYQdgyFusF/IFXOLuKNiD/S0V5ku6EvGB0cOumdwASEkV+mYASXIPyvkRJNgsPkGqABCuCcc59g37C7C5+lMGCp/y4H3QUgOmsnKEzvzS5XrOUuWMz19gaTpo1nhHCakyb948LV1qrcIqGCApLLTG4fwAEvZgACgAp6amRtOmTdMmm2wSgIIf9OvzT9aWe6T0ha9+TO/Ze0vdNPOr+txZp6ikvELL21aol4EcV1LQAFyxyWrR/gp9Yxp0zcCs9ImAII5ocYzSIapk/cBhZItlS4Tv9Nkwn7cxXXUAXf6t7+q0/XaS+warXuscJxPUsZ9ZYtT7nDUxUZL0hXccMe0oYQAkrMfHDp+yeven3MeQeMd+qnYxgDbuW5jvDsXnJ/8jz0eJE0Z0zOX4xWaOxEpvhkPDba7tYPZc5ECAJ1zaPwEHa21Y28INwEN81LUwfGxv9mbkpd6ypdIzM6T6tdFeWmRTapcdPqrHbmrQVX9cpQP3/gQp/8do3bp1WrJkSQAJDmmBBMDQDzZKWZmGDRsWgDJ27FgNGRJ3IYL+dc+f9ZGTxqtuQkoPPvcnnXHOQbrmkTOVHv+U6htWqrmtSb1W3/KpnDTcaR6ih3JFAZ4sq/Goa99+M9oI0ARcOs0wiYLHBMDQsGQhAQ5H7ifqEx88H6lR+sevfq3b/3SRfnvsx/VJV8a6n1yhz2j3IEEazf5rtEK3WRlb4xR4e97qeJU+40XqGLMWE00ALGAlToPPZtrnasuqhB7QieF9z38eMP2USLykPYBN+GWiXcPASUIdNr6DluDAvMRcH8mOnjCkNMAPIiw2DN6JBOICG4gdtZgl/fI8hZm+qGNMEufl5snHn68X7s3qrNP/YmbsZ77/FK1YsUKNjY1BsgAUpAlH7BMkCTYK8xFRwxKaOesefeOHx2jU9JTO/NGJ2nTnSt08/9P6znmnadIO47Wy1cr/2l61dDSF92KAsLDIyn9JZUjbVR0lTeDdXIUOggYNGj6qCtMCiah60UxcZw2MKGFghigRsHVgcL7k36dNNFZtP71G80/+hcqvfsmG+nsMiKFhHAxgoXbx6m+uYxATA58tMTZ1qK1s37BSM0o3to+yDm5IPu9YbF2xqwGZUFvI4dujHEvnfq+8Xk8+ffMqTkIkqUDUVmRwuJ2OaCBoGBpmqBjpkUggGpYQxOGcBEL8XEKArNAu3DPx+od1OUytn+H+ZNlqq8cG4yJLmYkTdtaff/2A/vW3rD546Em5GP95SlQxJDDGPMAAJNgnSBakTkLzFz2h7/3ieE3bMaUjPrafukof0QW3f0BX3n26DvjkrlY3e90xNCpjUZpyeu8/4quqq90kfJmgtLhSDz7yOz3y6C9VVDzEz2MDRLcNmyKur8E3p0GDpkpDggSINg0PQD2KKgZ6ORIACQMlahug4T62B7skZ1QRFCeMX8BEHAAH0Hg/S9jpfs6mftoedpuYdbBVEsDwRuVxp8Cn1fn0+mzD7iLNsm+k5c7RQBthYyhha5YUDPf/kS7tcKc1xjAdYWVxmF2tU6/z9bCS6rCtEDFirFcTciRSf344S5om7A5pn2SoHuqwfREkTe46hPe/9SGInLsONouPibrGOUPJK+vdAy+xRLE23GmwLF4u7bv7pzTzvqx+96PHtPn0PR3yv4cAC0Cprq7WhAkTNHny5GCfDPxQ1Ox5j+i7Pztem+6S0v4f2Fmrem7W9y4+WDc+c5o+/KX3qWJolZY3rlaPRXXaFUM90CkhTTrbrez3doSh6I6uNm21+eGaOvVg9XSbe7Fr0GPpwMJUisHRoEHzLbPr9LA6MtoqMDGTJ542E19gdr1Cq3Sj1ob9VoASkodwAIJXktgmMBiGPg/lnDTwRTQiYbZ1ilPMtFs6FKzQYkf8HEvobqte7o8sf8p0v+ZbHVthf/ZzrtZ9Os7MXRkAtjFE6rgqg4GPE97qlD+ki/WeSY9qlx2XaYdRt+lQQ/N4u92nzdSX9S+95+ZTVd/XZmCx6j/ON9uQAmOHO/33okIW64cQsSb7ifciEDECzwy8bU/U8ZCaE0lS5Rhqx0kSp9nAazZg2q2WfQEV7J6svv6Fi0LY/0bCTmHUC4nCJNaEZrx0l84+5zhNsUQ59EO7a132Vp19/v666flT9ckzjtCIiXVa2rBWrS3unpk+Yf0VsyT0JqhcBgH1HOs7qzxf86W/0vI6VVaNVS8fMAuzQhzKwAlfGRgkDRo00OlmqS3d/xONx8HAo0OPzBaC2C99+qsZmQ/uobsDCn4sXrvMoLrYRvuVBtYsq1ZkFmnEi0kcEggpwdfB2oNfZClA0OzrB/00BgRQya61cjbbyhi0t1W/6/QxX8UJnRtrz6AejbIU+astqj1q/qFffvlULbmnQbrkaeln10t/m6P6exo1+7TfSYd8UU998lQtGrK1js1crU/bolri3DFfeSA4EqI8AyVf/xnhqYE8A5UOIhIvEZE0EPghxUSKDCT8k/0BuJeLEuwYFlv9/DtX697rsjrqsP8eFWww9NTzN+msn31UE7dJ6dhPHaDG/Nv0o0v31/XPfFYfPu0QDR8/XMvXrlFrs7vgdMZGPSV3PbrHCEsUQk+D9KATcVcNUIIEQZK4wlLWbSzVsunu8DIzxnZ9cs5WPYOkjQINo1qfsjzZXOPMKPQK6SBt9rGyRG8fVah83WWYYLjHoWmkS9xjACkDUGb7P3ZLlEZxMAFVDosE+8Zahe/RU2Q10f35E34y2++1+3eJzf+GUFTpbO2u7+tALbIPYQcLmKAjWySzhSAT8w/ShTr/q6dL95vjjjtBBcO6VTemU3UT0qoa26nysc7ZqcdLR+wlbbWNdcidpJN+oReq8/RHPWzrrCwm/AqKMMJF1uacHPrcjRQ3d8iGUcKE4AHaliDc5pRQYSdNiuwjHWkofu7cxQhMAogYPGBH3+4wjfl/i/546Vd04pffr4cf/6t+e8PBuvLRE3XUZ/dXzcgarV5Vr/amdvO7OYoCu2YyYSCF+jH3uNzUQZQu1KG7JEue0AIZAybDRu4GFdLI4aMqRqflTtbSh4/X8o5zsDRo0CQ7i8HUx+nmoCKNNLvA+sgEDPb3+hp7ZIjP2bkGgNB8ZHFfs+jRtgw+aKvgYKs1FDmChZG3GAapwlQaRseGGogLfH6C7rQMWKq/6EU9Zmm1gy0LXjZcpcO1q6Veo+XbYMFChQ7xs5+Z+ZRjFut63atD6h5UwyMrVXjqqTpmXJc+N6lA355Spa+OrbCr1Bk+pse732+xJb3dEINlP+lrn/W5wWN0LzVg52iN0y0NjRShAm2YqzhHj7t86BYjlXPmzg0k7JAQJpdMklogLuw4kHaQRrlrPBhBrXMW7334Vnz+p2j65K1U67z3ufzjJo7R8sVr1NHCZ1yYaQi3uP6sf2XTqF7EMOcZKfB/sA9dEWFAP+P7rM5D8sBUDhf++yLluGw5RjjiIo3otFNOt2+Db26+EQ0aNBVmsmPMGuW5669ZYbrbysl2muzG4zN8zHmWQVOkbcxAzFKLgGG0LWNrJG3HtJFMMO7j9Jvk3U+cPsNirTG2TOb66nO2Lc63VGHoejOn9gnLsm8YJif4asnnrg39M9IJ9WcwoIFF2Z3zCed5l++cqrK7L9If9t9derlBY6eV6jBLl2teWqwR5Xmqcd23uvKH9KZUlypQ973zpPm21v7ylHTnMwbMUOn9W0lPLtC6XQ+1cniD/uG8TghjfnGNfUJRupDPCI4EIsnLQzqIgbBhiBgpE+wbJ8MwMnVECQEIC6iIynew2GeROWNhiyYimz/4ZOnf/vlXrv6naETdtLAU29qTOm24U/DAHf5jC6mgXkFWo8JLznjlo8P5PnUcB1ccjj8A5btMq0nRm4SwnNvfIEE9wxfghDjvhk1TFti0WMdWTNLu5XHnl1u1WJ+11Ck3O061ZUCxAAkhGTKFfVDRwDpZItMY9vFbLdggUaqMcPxKu4fca59kKKKCQVsbpGdqR31G2xuc4/yccocrUZZpFL6PxTBYAtgsJTirdrZ04HHSMdb3r7xcwwubdWylc+uKHzesXNVdeSowQ+6cLlFDV1qd7X3ajq8gwKFbjFDYkv6sv5tbXeXVNkIuv0L60Bf0S8Pxs8HaWhnyCAGXmMMI6/X/rWLwIdZIKcvOfgN45Sp83DD+F/jEjmvqsMjJrnD2m9aYudwjdbdKaxf72kKQT/HzvWAk1KTx0oVXxn3BmpqarLrE3vbdpvDS9i1SWVllmAVBh9HZbquW+WBWwZAFAIDlGGgi7CBTYAZPcQ+wACD7AQ4fQjvy5efwEae+3DQm/1EHQW3jvs/ZzzkvQ1ftLt1px32sTVT2m9CguQ7dsZCms444La9Kh5mBeSWG7XKmpc65ZprhVr+2sPVSawDw3iVk2A7AIFXoD0qdCirSaENllGM8YgXrTCteX7dtwNfMoJ2c9ve1rT6vLa0ClhqqWceQWZFqa1emmUUHzVbMmuw4vrkrdIxz9YD1xM9YhxklfeYgt1S3Njde2rqz2itdpHOHjVRZu+2wzjzNautWU1tWqxt7te/oKX669YZHzLG88Ohulq3TuKg+Wy998fPS6efqsbJ2nWGLboVtMORqp2HaZdctlmMzNZNpqdbNO7pDYxuSbrJul7a/pfiKIo2SLAVIiA0F6xdIo5yVSmOXrVmHjpGGT5TtrthDr/Z9ZjHbXta5F3wvxGOqCfO33mmCAZubm7Vy5UrNnTtHs2fPCW/t3yoNHzosrih1VfS0W+VmPhgVYOZB3QoSoRep4rL6X55rLhvAkXAZ/vBYlEShxwm6W0Zs+op61rd+BoDr2OmxjiisrYKvBgGWhAa9NOAHE/ZSWXW1CqvL1OmHN6+zktXbozW9Lbp17QKt7owLzUaatXexVNjMVskYs3rELxzQZ3jAMr3ui9ttBXQFW4CdOqGjtt1de43aXFtVT1SJe/Pi8jKVFpWZL/OVz8dS3fUWWC9JN3Vr+Me2V/01z6kAq3cQRBnGVA7TMX88TdceY3vk5MPMcfna2d3a5j1ZjUwb4m7vvHRe2Cw84x5qYVevhlk163LttPb06uHqKq1odxc/e64NI0sbvvbGZMEy543Nx15aJ914ucF0uT6/xzH6xeFfUn17g9Ju2G6Lhc6eTrV1tqmxrUkdllLZXUdq/h/uUrYiX48sm6XbFj8f8rrV5haCh5txnOQKV03Q4uxQyxoWOdubBJNOs5+0t/M21FJl+GSHd/6R7msXSqO3kJ53/zNlwq76w08eCW/beR/C1JOB0+Q3huiNmTTJm3qm5vNuBb6sGzpcdcOGqK19lSrKR+ZCvzXaep9U+MD3V357gNVT5ppZ2rDWJWslvMB86MpgaD3qr9SNGT4JYw/kEtIchkZS8zFhOus88xBqWQFTJzi3H+EKnBafxw+rwlK92rnuqvX8/o6sp/lK1RaqqK5Rha019oxqXdtohspY/2RoIKumrja92LRSy7PtYQOOgTTW4EECIWqBD8YvM5mfNmTmWQpA/9rrdNsRvSovLlNJYbFKzCVMfeClVPi4jyuA857WNk352Pu04G93qrAc4/vNiWHlglRam1//NWmWu/JhPSpykgf05qkqndLQLkuXTL7LklKnQdNEB2XgNFuUz2bp9fCh2v3PV2qLO27QBT/+lSveHMpHozjyLQi+1lTfJq3rlM74qGpdyJff/0ct67LEcY/W09frtA2cdIeaDZyemkJVHL6VnvnhlcqWFmhZ2zpdtSqCpsxMc/ZXbds4+XrEuJOnF0T1ajAgRk6Xls6yhG/w491Wq5ZbAhtQ2+3nY521SNtEzSt8bunz6HPSJeferx222StIG14YMqmRF4m8H2HKyoaE6sJcL8CB4xzAwQPEBzxlpZUaPXpUsLv+efvF+vNVJ2vZql49dftgWuP1ie/UjLb6cvIP91RFRam7V9rcN9xpwoeBF/zMbB98wTBxXFoeB/ANbEDFso+ALJeV7PjSzej8AyJHtq0UPxJFPHeW4Zol6O3aZfh17yxoPpFigHaIhg2pU3FRsZr4voEfirBjEADFKRkmBvOshHnWsuWZ3PuUITk9n94Q5Yo1MayNSeg6fSC8ayFe/+tPaow+gX6EMwYcGrTXqafp4d/9wWqbe/w3IVKp9bO/r6t1zz/cPW/n3rDM6XamNMxq2I69rjgDpsPgabFrMoeudrZaqHhXrkortM2vfqbnjt/RKNtX8772U00dspX1JHNoyipbt4ECaHiztth1stbi4Lwf6hd6r6Zb/ewMtRLXCLHClNezhaPrNOHbH9Ctp3zbuSt3HjO244yIHIXVm+6LmgyAbnpD+xW4+hptv4yeKs171h72Z+0LnS5qRo/Dbr9X3JqpYZlU4aqZb2DNc7Iv3mc10+3VyebQJtoUcAAA2pbrhBJwcEzuEa7IbT5i2GiVlBVo4eLHddFVP9M1N1yvsVYRR1tFTLcM198uZMfxt06AZpyr9ePf2FG1ll5h9SWtbwZP5SMfzD3ODzvlvHLDQp8EEFiy4In08Xk+ksjtmcr3FTvomH8Y6kc1ZrpSyiBiCQZgtI6h3UYODjTw4qAIVPJD1OW7t+J7UiV2FbY52AC91m6IXZWZoMyOjdC3s93yYStph5p5NjOLb+EYUx3nYyd+QkfZqvmeFbnfaz9dpsPdq7DoLG6px+QSNj6K2+tFF7fdi1vvpYrJSTx/M1fi31C7e/jE2KauAYDa4lpo6tVaq3q3NXTpYV8/0JnVk2bUudabW2gsDP+hFZp27rl66sM7qH6P95jxVmnKz76uzGRz7FqrY91Oq83AabZb7mu+vjTJXG16QMtcG+XOQ9jpLOQlKUthUWHYI4B7lISdNgdSfSMN6g7Mml86BxpAgt3i4MGDLCY9KC/S2W726fukhe7w6qyyrTLAJrh/GGem3vuoEo0YMSzYHAkokDhIGt7Cc0xcMg0/7YflO4+jRo7V1KlTNWHCWF189de1+/tTOvSju2j2out11Mekg481QKvkuG9t29iBVMlLP5cnbdU4fIrR5aOQyBH6pLywTY+NeAM+VIYZnG/pBHvZwI4jZQwhu/NGEqUNePuxzVT4SkCwazCcnLbTxc5h8CHjxNEIBkuDBs2rKTSlG551lwUGS7FBUya+5T9C1bZtqsNxjOE0zm4L39nU7Lutzf/D33eQpvl8rP0BG/EheoeY6jtD9C183Olb+rN0xHGuaKtmHa54Nk6vN6M3ugJ78tTgyu0NViHOEelaxtRom2//VHdtbcZ//36qs8QZMcJcuGatdjvzIhsS5lLEAXGo+XrrU2xliV9lmZ9MvxjlI+XiLNfXhf/o7LHyWcbNpNb+HV0WWeXiK4phQ3QnDzAADXYNU/z5EBRZpNbc7vBRAFnVcOnJu413C/dyqzksGaiyuldc3K2Pf35yYH5Urg0pkTrcA0wAhen348eP0233XaoPnVSj6bvn65p//lLTNpOOPV7aZheD2tode5+3MHeKDL5NKnUVUP1pDEsKaMePdzMMJ8PYjH5FI95Mb3Wequc9C1IJgGTc2TE4UGh1mKahcni56eKFb+qE0bNgj+GoXI6uYN7tDJLeBmgi5VjA/+n7kRZF7jn5qB7KXJnqfAZ4RhkeI4Or0dipk32XJucFJ6MflO6dJdLkbfs1elQ3ffxL0r5HxElZK62zAJZWuw43jm0zZ8KOWnULsKhlUrV2Of5LuveYaRr3zc/FBKHFy7TlHp/T4786Ny7kh1GwxlfX+4GO1+vrNqfnnvJRrfCv2aWMHUECmAAeoyDfqEj8ESBjXFcJMdaA9GBwjqqBHdnsr9yqS6M1oNrRERhF7MPsm2Qb4pwvQD9riVNrCdNi22acgYQqsnz1An3le7sEMLCuPgy7WvJgs5SWlmncuInr16k89uw1+uKZu2vTPVI697zPqrOrWQccKO1zqNOb4OIZd2ilMCx2TVern/0O9HYWcKGD6LLUZ2QM6RHAAI/wbsW2IRWBlKDQQc205GCSJmGCOAoVknFTEKbb0sk6jMMWuH34gBOZZvQtS1vRySF9fcwgxQZJbxs0ECxPnXGknQER+iX2SZnZpsb/a4MUqjCIKjVm0oSguKCaRJYi5jtPpL6sxN3XcLc0W+Pzbc8O55BPaHW50ngsbwnZQc+MHrrxkUP0kV0O16PnfVpDPnJkTAh6eoaqT/qtXvzx96372GggPUbNmM/PLhR09aBvuW2a/fYPo4ONdthnlJByJh0M5S4o4H9yj+lClTwl0HzbIfj7tsMFr8BMYZeYNT4O9S1LIj4wC9YT8wt+ofdfNS+G510OHTZqGr34E888rjN/sr823XTT9dPvkT4jR47Q089fpzPP+aC23Dulb5/zMc2c/UiY9LDrHraVdvWzqnl/EngsFtWO/oIjWmnhRmy293pUnlPPeM/CJMogNTi3ysxqyzCkbNGacsHCVBiDIc8aAl+byJrp/T90Bn1Wx8Lnzq1B9NieyRhojGKm3F6Ar9CSBpABE8BFp8V0msHSOwKaVxIsAEWlxOyxXgKxMpOp9/GrW4EtQrh3i9iY74UuA+TGS6R17g7NRLr6Kum686W7rvOj/Wy+bQHTu1dyxnT04UfqqmcvtP5hYz9H3VffqNQfHlTLqSfbyraxH74U5CpHHMx8zGB0l+7GCul12bZZZv3KtI3lKy9xYzfC/yhtsCvyWZloP6BDDVRbvU0IxuxyXmHOUoOGTpPAgIDd//m0ec0onzvrASzch5k5dzbQbppW+nnuH3ypEj+81oCrscp2/2N3B+Aw/f7uBy/V13/4fm2zb0pf+f4xeuLZf8imi4Ek7WKgTJns/DkN9nymYw4rRP0sngcYITp3BlCxf94uma9DGcK8MtdvkQvf1tiksvLCIHkyfmiPM2A4OJBr1mHCDGXHZZZyxmAAWOkgkdA1Msp3xqOkQm1DclnCupeJUqvXwO8NQPq3S5rXo6jNRxDFftaF4yo8lSvcu0Wp8Grxq9pLqXkzzNhWzZ6dbVXK3Xitu+q5tphZIM9W+nywpblZ3/nWF3TN/H9Y2vS/b3jyyz9VycvO86H72m4xOPjYf74rmH1/Zj4iPXSDgbTEZaIsbkxEfv0q7WiZysyHCBMolh/pUpByV8KAis+RhkCKOhpo17AsGT6swI7x4wIwnHyVs1ZvQYfwREDy9UXABVgIAhVa06u3wANgjGcQn68RkOWhBs6Tz9+tbQ5I6Xu/PEEzXrpJowzAkcMMkomWKpYuw30OcFkSjarPhFGGbyP8c8ChMHbtrjrsr4EjcG+VKsqqQ/rdbpf8smLNeuJFS9o8PfvAMyopYd/oPqtaBo6PlJfJdkEqObOAooCMoccaHOw3F9Q2Ayn0ZyGOAeQ4GdtISDAIO4geIBsGCAZHgX3/XfT2q3XwRJsyzPs+baoPyCCpd+8fjGBXTq8Zm29NYH+gZq1apcvuvkbffcASaQDdedyZes/U3aTNxps7bAsBsrTDo9IVm6OXvWyudReOZY4Y6LAIgMtWrTFokDJ0EbHjiICJChmf5442DZYgPvSJcSZ4QgvYpM+AwR5B10/GKRCM3bZn+PARrTfENkz48h88EPkgaIz0EXwmPM/FhMGRXNMMDtqAZdBjmFXgNIbbTtrakmXapPiOiIVwmGfwEpnmmQUAx9eo3uavQIFpTazbQaKVkNm3S0Hv45lZ20ktqq6tUGlVpUZPHKW1S91h2T9tEPCF6T5LB6bWhDf9UZa4c7B94owDEACFypa2DklYRsgQi4As6wIyO4DPErKdFoBDfg2W/q2g+U8QS6CHW/nRLKtR6BrV7nKxYulZ4IIVK3VH33J98hLbKgPoolN+ogO329OcZS5dakky8yU3qrmJtcXNVsEa7ag+apCvL4X3Nb734ks6xNbbIdrKoLX4920Ak8jZBCiFVu2C1AnX7OPWp81t+SXEFxd58x++w2t8Ish4yYkqFIx89wHDLG0Iw2YcQa1BFOTC0Rdg9zCuASvCjx0+nz7aRaq0VLEatoXVrzpXDUBAqsA3iRRBmAbe83ns1X2Pa59yDzD5lroMGp5dgtH0Nom0SYt0WxraAmB62tpVO6JWKxavsLpW5LwgPczsSAvbLFmDCFU5a2lDftOoYC400iTfKljKohbwMGqG1E35nIEE0mGZM3wQAUghB0e06f+3BIOyMG1HuSt96CbLfxurdSyig0Ncg0vMecuXaFuU9QH0919cps+M3zxyHjMolzocnLvO0mbhUoPGEmqpdaRxTnccn0A0+ljEtGSRCucutGTbNqRD7xcYIbhkEMDOXF5QiNxJfDlylq+RBlBCL9ocY3fMcifv1KPB7wRLzfTNztZwSweMc/oBJAHAYF0ITM4z8+hcAZ4jAyT0K+ydoY4PhWUIjhPS9j+CkGHMNWi92ucbGP2ELbQzqwX7BukX3pf6/juhnvH8kIrT6jYYCo0gZEh7c7uqh1WrjYl5RjhGfkS3VTMf0y48jI9tknIBg/RwzCDpHZ53NywrsB4ntm6idwnLnJ02KlxMx/cHSf9fgwZi+cD2cpfc6NZdtcDMb1VqzDQz+xRzkPUcK/nDb31BmhEnNd515S368CxLkbVWB5YZGMsNEhR67B72bGU6MRzK15GYRVlnQ4AJnOg2//qHTtKWGmLJllRsVL4SFS3+mENXZHWGe7zL4YgDZFPV/5LwGWeLF5xh5006RRI1Z6FlVlratBrDNcMt6ACN2xzBGQx2H/OdNYaGw/a0ML39iR/Urhx/B3XeDsAAKvgo5Nv34SX6gYAFO47cAzBBi7JDyjFyhnQIjPw2iWSRqJmejGotDte5kyoM+UqrxrpkGwvRGDXzNSpWYrcAEhDMQEGYEeDKQLqkfCR8eHnp/AEg2i4A3JKFAQcKHQYeNiL/oY7+/ya+dtCro1mm/dCN1iPMRdVW7kdZQvRY8WcOWd5spU76um7+0/U64DpecpjjUOzDcj47bCCkDhyGfhS6c9/CEk8beHDYzMdQAnWQtlC5mJedEDCJsiQBR5A4tmkSSZNMHWLZxOaGXEIvoBEaCcVmHGsm4Zk0LQAoNfZZEjB+B4PIgm+Ei8S8uWSEC+McTTJkxM5JhNMgPUiDa044ctNhsYXgHS6DDeVjIlFCUoAqlyZzH0mr21UDlZXaOHqbFLLBc12/hYUFalzTqNbGNguIjBa8vFDVNSUGA8a8JYSP+QZFvtsFKUFnEUSkwwIkABVGxAI4ksECCuJaBnRB8hhYDsK/d2Vjjf9Vgi2xaz6hnaWnHnXXaCmCLstkrfDmGUDYdc/W4Y/cL00d54rH5gEQ+PvIfQYAMtgt5l7ml62zQ7FhKk25RcHdt+vr2s3Mnx8kxkCCGahojgAlP2VJ43R4UxUlTfwhKRgmHxrOIi0xMNjxnwnddJQQKhdZGeZ+oJHdMUda86yUqmzYY5iPsN1CFpyzOOwMEHwdAOVMkA7gACQAAgo2kf3DuxcTRwQq6aDRhMzbwWSAjeXXmAFUJVRUmCxPfOvEo4NN43S72ts0fZvJYXZA47omTdlscshfeDdmpgc4aBHdjlRovzyDAYmDOkeBg9rmY9phuSb7JBAXs0X1LL63cTz7M8Q9WHqboAlZyf2HBl7zP7mzof9A6g+X3IHRX01JOLv1t18r3KuJsZFhqrKtYVXqwh9H24aeBSDwQnOHD0jsLomu02m9OW2OpAvlyIABkgbHPJaHrrTedLM51ToRfuXF0vWX6jCN0GYy4F4jT/gkClqQNAZNvntSpAs/ZE5yBSNsNWBA4OEnLWksNcr8GBoLR/OSJt9SardtwyTNlnrbOJY207eh13e2rOVRvKg62fmY2CVwZ2ARwADz+wL/YPTjn/AP4exCPHjPXgAW8BEee4aJw5FCzLdNAbw8z6Kss6VDpVWFGmIjjN0xo7RgpnXORjGqUzb6eYUcwOIC9xkEqGl5zjDdF59ARL3rtQuqWugJiv0cPgBvmwlA+Xlxz4bB0aBD8pIufGbJTJbuZedlTGzWXvIJPzb945pz5vLiuuzDkU80dfi83S6ep3hTG86ZGca9Dh+5z2It5AL+uHgd/fqPvY0s3iJ86/r7b+SIs0Kr9TWkDW/+X7ZEyVitCgq0Gb/d+k2HbZWwhhiwABScr+mSWRFG2A6rclvvJ+1zgkHFYIL9Uo63YqUe1hpVupH4mMar84CCyPcNmNfdYSHWbXuAzdzZgweY0F2jnLEkrdsKnsVGjmZYRQvZdDZqbDYhJVgHwrsTzCsGA5gBMGUXA8dSh3C8O6mzGccSJ+KG+OYx2DoZFAgSg3vxMXTGAYjh6IA8B0nENQ7g4BfUJzuu+Y4Okuwdwkt8vtNiwmV4s08GXc19tnFSBkNQucz4LH8OkzENDKRSXo/r0MgPcQ02wqKahbf9bj+2os1zxTAcnXK9L1/1nFo6Vht4ETA96UYtXz0jZmIQNOilAV+v3kYV1UNUNWxIGC7taep0WPeRdkWuuTxGhPLdXzpT+TZ0C33Op7XzjWhmzebbIg1zrlyoHf/5RT25389VMqwmpF3gcCCfXgYlnsYKU7h9GTahiDd84Xw1dWiTkw7Q4ovvVXEl7zUG12KEGlM8RPvc+T09s+VQe7i1h483J1o68M6G9ENXm3CNvVhvssIcuWaJdR933XAomQj6sE9H2e+Ze6SXXtQZ+Xvq1P0/qjarduR2IAVGC0lnxAeH8sZXa8QZB+iRD/xU3ZWFau9pU0t3uzq6O2yXANSsHlg5Sw+3WTcz7b+XtJdBYZRpobVLpsrAyPArBn+9g42YHG2cpXNsso2QJm+by7ZVt6C3OzB54AUnRbRoCxQ+tWF/Fr2F1aKQwwQsgCjfIzhGP+cZxwvvjnzexCAiWXT5dt7hIzr79Kt88dbpqE/VqK21WXsdMlKjxhW7A/BDyKiRUUDm83mbkns4/BKu8lwueJRFaw7u83w76rzAyO41XwaLMeim8Hexlix/RqVlJRpTt5Xj2H5ywfvSa3TEjovX8/s7v56muEQtq9aRlTBFhjcNUbmIXzTmLPpyFtfzk3XGkZgo/9G+v+vPeQc5vai9o7YQnrPkGH9Q/zmphfU0X/iSHv4962mqBgmZSGy1tJ+uUHqKayLP3TAg4MuwY7dy95xIFT8p6DJuHF6rP/UvR7TewwvMydaDyDEvNEfY7L//n9KsOTq2YbhO1J6WIWwD8moi78nwM7KkdspE7XDbN/Xnqe/zvWrLIOQ0MgpZzn487mWtcFwq7KY4XeaH31T4Olm7hVKDJQxfNSM9bIs89x1r5krjt3S7oZI5fNNqiUWarMPBaA9GPuEBi0/6HAaQsIQ6vL5y35HHTB4DE54k0+HoakAlo0qKfCQuwOH5q/yMdWt9baba5R0AzeGfLLJw79Xu+w/XuInl6kY6kA//wmfX41/gx7DXGW3hTAbucD1kQyEJREnjh8UAVNiVzu0Z1wmh7jKNy5TpdtkdG0/X/wd2mDMo0IS4gyFgEaDB9I8wBSSasfGj35ivUTOPR66TX3INvHC0GunhjzEcPxM+cA1MEv4Va1DCdfRLlfDcGLb//ps75MlvdJA0z5xS5C54JRM3zWUvWV2rYXKWHQo1dg4DAFXDpIM+Je1km2fL/aMdM2GMNPd56cc/kB6boY831GknTVazWf318oN/nHkXr/NK3HUUURpWEOFiueKH0+NYWoX9R9sP4o3/IksN+KHKICiC6bkBA7sFsy4YEmUlewT4muxj4xTnZkHDQ+Ho+DYNwhEVb7aFJKPujK4vetyAtjmH5KLHDr02j3A4VDE6al4Owp8MRfsyPCfwm+/Hbu3tUS8F5dnOcNoPQw0DxHESJg9FbeMQMxCGkLFVHK4vSBJbr9YCHNtHA8XA4tgbUO9uqDcORTNNp8cOVTYMNzteAUbbIGnQoPl3UKx2F+IdaIDXIuaCTbd0uvzzP5VmviC1mQMx/J+fJf3uHOnW69xlu3dnwwDW/pe7C0fysIa4fqH03APST7+vD81do4PN0t/J7KDtNVVjLcPYYzTHZ29AsWyAoiAMOXPW38Xggx+yGZm1q/qHcW+808AwprvNJ3XMbs4xPwSDFzurzGShH1gz25qj1TVm/VCV6P3kDR4kCtNrFhr3lUMMlvmOYw10qY8v3et0c3FwYWTNLokHMYrLeZiL5moKZI+GJtfP2yQeB0fGqS7JW3qM/nAHTESgkCdAgCQKnZwrA0Aw/cH3U/gHo99hQZkrKAw3gzTuB4D4XoA+qpyBZRtpsPRfBJqU1Zt6M0uzVRUz8rtEa9WkTxz3ad30GUuK1StU8vAzOr65Vh/VJG22YJWKb79Fuvxi6eI/SBf+Nhzz/nKRxt30T+375BydwVy27Q/Wiak9fTZBEzU8rB8aTJUDmAgaO+tGqKzRJedR9iYsOlqsho2SmYnT9Q1I6CgNqu0NT/FcHCOxZdY066xOjJgWeCOAKfCKkwsai8MHqWOHtGCeGeZcke2aYgOSiQ4vu1/AzsFsCzxGdOL4BIkDMQCFH/yYUOE7MPcMZiTNkkJAQx1YsliqMGwcXlYaCKhPYQcaF4w89AZAIIEsX6yHYgeBnTT7OxtQvuNOwwqv44T8UhanHfZFs38YHEgANUj6LwENPWuT3vvnb+nj2Tu12Snvt4Dl01DvPNEUHW3N2rx8vK7XB/QrHRg+5v5B7aBzdJjtiCN0vg7QL7SXr/fQz338tfbVN+x3rHbT5obJ5iOnqia/zCoUqlec2j8YipDx0f/Cx1V9HmUMtiApRSnDOffYG/tg2Z7K0RXXW4O0aYUWU2uAMGpOeoykcUT60Psz8EdHih/MHvKXyySAgakqLMSwb0LnbCTyLhfwrLRhX2/Bm+9zosCYgBPtB48w3GwHT8JnlAXX2mo9720SnT155kUlalO2G1MfqeEbBgZAYaiZCZuh8CEPBpMPrOxk72am+jP5hk9ohKUAjNQaSHH1pyVKSIuROaI6fRcOqRUKM0j6LwENWU6rcsr4cF67yzQXm8K/e9TtykY5Yjn2BKtXrPdBOWK73TEapmn+z3uXae7vJ2iExltVGu2w7DFanF8IT7rNaLWNI8oUpE1O0mCsYsugmkWJk/gjUxgmKDOcmWsQRrb1/Jy4xoZZy6NtYjFRITCN/4UYMEN8SGBwzmH6cO17hOtz3LopPjpuDcsALG2y1kYBA2v2XnjYYV3AwJuOCpNQ3kTNQ/YBtkqriWEpkq+7eFn8Nom0AggDY6fDPLE+AwdbinUySBjMGZZmZ3spGC8n4z3yiqYW7hOWDPqa9zXYK2HczSpcnsETJFcACqUyKBleDKJ1cPRfApqsWWOobt7zc7rvkLP0wCd/5D68Mnfv3SP3PeYlxmZYzxIhkLj1alT4uYHs4j3/aKG3SMQMu58wmuNzwMEP8x/VLLFtotzBDstavo0yWGNTXX61mdzty/sRRs7qbJcwKYF0A1jgBV+El5A+DSqVHQwFgyWMz3LpcdsbNK5mps0x5JwMMRN2wSNR8mAuwMMBjNzmyIkdyxK22yrmYeHil7XvUSndctfbG0ELVR3ULU4tRfJYKGaGN19nLVLDEmhfZ1O8rHS7OWCBAcLqTd67kDGWBiCxsV3ILwXCzqHwqGsAidfIQVrZm2jZUPjB0eBDDoKQDmSLcr8VKnVvvvq2FwyguO3tfy291QKagoIGE1o9A5L8j/YMYImOLzJEuQd4UmIf7I/Y5kronN+7l88NJbMqc7iZuwemcrphmBhGMaGlBbXKBGACqHi2DzAKS6nHbCENtarGIEMiNYqKrabZrmeFKCPv9N4hkuOanwPTkB48B2CZ97bXrtJUS69fXvAxbfnelH7wq0+rft1ihxw8JfkK0sYSIdNjO8VA4Q2/EePyRenBiBpACLOanTnwEBaZYffgfN3LEmnH7cHOcakoF3YP1if1hMjlRSgaDmIqRdqDpHcENDDCWs3XuD23VnFVqc149kSjCjae6HNjn///MYUpG9QagInvs5AucVAe4ESpwzXyiP+8Mv2YlUSI3v+Cvxk4ZnRsi0rb4EMMIvzh7yBdYCQ3AS7YIT7Ce04m3KOKeadT5DTGbR1nSo8dF291WdNqN+KacgvhIFZyBmZzfJ653saxQ0Xke6G11iJ330k67FBp3rKLdegnN9Eeh6f0/V98Vg8+dk1I5w2JPDq98lKfWJKw5Uh+AIbzalD0GfXYH2zh1AvDGxS99uv1vbDM2XEZXg4zoR2pABuHQpNX6sAuHXoOoIPmgA3kziOPDdF9Mkh6R0CzWnP08zULdcIDf9Zpzfdo988f50bGMCSD/06i4IMv/H+KgspgkUDlAwlAEkET30TFIej4hicZhiYsu1ofo7EkofkLpEutqrFDbgIctmuCueELnkHtc4+em+kzJIJ9kHt8OMLwfIp9wi5mVtsoYy01xmzi62kGjfu+hJd4PhKHa3ryYLTnGJG0kBDMf+W1F9P1Rg9X2MFm732lte0X6HdXfEjbH5jSvsekdOp3dtQvLviMzrvyB/qj3bnnf07HfK5SVVbzKgzieS+2qKc7o9LSIqdryWEAoXoBIGYoM2sMB9OTATZEZ0+0sOkGaleQQpY04bYz6syG1ZypQnX3dKihaZGlaouYOBtsJ8pIQQZJ1MXbIuae7fmJE1U0rCLnIx34+2+oSUtcAJrt30cZVyQq4n87ReuIuonAoZ4AB2CJr0Jx8ToBEsDBBmNnn0M1kmTCpjpXXBeWBAUmrjFwhlpVY3odycPUpM8lT6S3DQzOtT3CC3Qfmanc12mwbGNmt7oGeGTmDwHNeAHkXBLWfoAwgIj08LOLpYmgJBppMq2PgH3uP2t9vZM1zFFWCRc+8LRuuvwi/e3Cs3XN5WfrtuvPV+uCNvVZspX4uUwyf+z2Vr341FrnpTjaVX5ImKjpZ4WRMD8IO4Y9z8IwM3nE5rELoHHYMEfNjjU2xE87Q2vW1ivd26f6hkYfO5yYM4SEDhJocPS2QUODd65k6e8rCcXj30lM8Kw7bAuNOWEXw7gx5/vfSWFKiInKZ5AhWjdR2kSgJHMHEhf9AQ79KzMFjtx855AGa24uuDIa5QCHSdd1lj6dZlIek0gKeCKoaTCdjzBZkBq+F/zseIfLntEMEEzbQ9pkT9crdg7AcTje8xKXgYgAFF/zzoYBCfOu/zmMDwAnZXWRtXmLHvB1g9RsN/tpabltpW7nzbdV6vAlTr/Akon0Gfpet8qgesYdgO2s+mVZPXnvWpVVFPh5DNZYYfODGTqGMO77XBCOjI4ZFi6X75MRwqHaIYUYSWMNlPXRlJ9Bx8EcvG6GDx02DFHn0hwMvW3QFLr4T911k+bf/nDOR7pw+jE26SfGzL9FouiDLQbPwWTe/abvaMdLvqLarSbbh1Z8l8gZG3wVvxa51XI1T6cTB5jji06A0z/hpsguggj7Jqpt2DcZbVM+SrsqSveX50k//JUB40vzq8qc9kiDCCM9qGl2+DOixvp+CB5JgBOkD+Hwd5Ox+V8YhmbqfwjssI7HvSBlfI3EIS5xSIfh7jAYZcfKi/o50ioDuszMv3y+tMRSkVWoTPYkEvNlyQ9xw4xr+NfHsM+bJSabvFe6DM3Mb1vRqqKC+L4mmvWWOn4QZyFTPgujZ0HyMAxoVQ0xawJgvPFnYKHEPUKJxSuSmDmWFUU1jh5n+sXlz4OjXNO9OYWE+TmTZCQim7GyjIZrkv5w8If1zdRUfS01yhW2KDBCjOECrD/G85hevI5h+u8n4aNL+3/i4r1w3zXdf03fmw2zCTrnrVJfU7fWvTDLPjxjYPz+NBDVoTJz8TfOOT4NZR36rcVHL4dLYp1S5sAtPmcsh1elSB7sHCRMBEviYoPR5/LN0q3dNW0mGwEmPnJ79i/MCLZrmCZD7z/Bahs2DfwQGN3hGFldD5yYjcB3MD3qVgIMgnAMUoQwxOecC8jXroJwnQAHYnl18xrnx8zOIEPDcjsrIqwyB5hQ1mDmRWxIC+BE7/DuBxuLMrKBaacd39B6+Um+m9dtdc96m0Vm2DEzz/WRZy5jeC/LAAG15y6I/CD+0gxV01YGDPd9r8cZHlkzSpsMHaERVWNsN/mBSDBENCMlg6RBz3L+XGqcygpqNGRknXuMQnWualaBLcjCMIXfPSBLAPwrZGp/eAcRe8+wNMBhOKfHK7AMPnT5r/XP8pNUOpy19Lmfw1BZwQ7y87iiGFyHn/349TS1aOuzPqqZP/67iirZcT9mnxjtqw0ai+TKkWPX9zQDifhdaxq114Pf04pbntCi392r/PLc8NAgqa8rrXGf3F2rr3nGqgJ6xeArG2JtSO02m2i7f52hW4s+otJRI5yGS2FG4GUe6z96zVXddj22qDv8jA5zUnu2S10+7/Sxo6NdtXtMV8tjc/Xbnv51IFvaZqgwB+60jzTMBj2MV2w0rLHEcLZD28IbdOaAICwg8zH0/qYwvOxjch0kk8NzycRQV18AH++IOKfmASE1QFyoyKBdZv5hhxx2w2ErqVVLnA9LH+zuHI8HXiAeiaMycU6eOOJovaqhUvVoq4iWfHW2tVAdARqPApyUraQwT0XFhSrjeyMkZE5jWycSS1kfhS/YZyDMcnZh+txecfP5rIqtozFzoMABUul2HXlQy3p+f0eWBvxqu8NVUVerkppyFZaUKM/8Ulhs5aHIwCmwY7d5JiH6WMi3ZSxnw+pEly4cmTbi2qbAQz/xHjVe/KSKh1Y6bQPKYfleSCqsq6FwdtQu5/YHUFQ0R76CVrH/JHU+sFh5YQXmwOwDC3u9skj95HJkGjtUcczW6p21Vr0L1ynFHPeNIJi7aOJQ9SxpCD3YxhL1mVdZqNJ9pqn1kieUP9xdqf34xXlWGYU9lnu71dnVpfaOtuCaWlvU1m7X1qqmtQ0qmFClJx54QlfNuD+XsnTwDmZug6PZtsQEN/Y2u8femv4DVa3eHXVgbmc7MJKrKVl5GewVbvkY7B/CmQBFCJs7DwwP4xIvF2b9i1TfKzRoVs00/5g/CMPyhCU28FuQNmZ6+DosT3BYHJKNvQx67WcWCQSgWA84bLxBM8znTqvSRwAEHojnKCGvofl9ESSo0ygvKlBleb6KQa/9+SRH5GFLcUcopINyYYsdGBDl+5xhf9eajjqwIxf2HQLNsakylaladRUjVML3aRrqg36N2oApG//HDEQpwzHegQjrogV9/fiem/Snoj3FRzoIx48jtRF/oV5CjPiftMgmm09YUnzidD10xW+tupjhNpJQ44765xVacNNdevGia52v0tydwVHGOdjsmEO16JqHrDC0h5xtDGXVqxHjNtc+M3+ti6t3sFUyMpQ13qOMvJ2Iil/8gC+z8HrXr4FlrWyzf1N22l1nP3ltGBmDtpggjUAFcnWjxjHNBi1l1/3MbFbTugCP79X7yExp+grCARAYjkeHRWixmgMzJhKAMBjOnLNfAeAI4Xyf8xDGjhPSyDc4ljwe04V3EQKdHRKfNOq2GslAAeHcxwZw8qwwKub4vLBFTauqjrtjhY07HJ6PrLEfCiNpgAUHkQ2An08a9kMSkQbpsnVDeXG5n0/HjAbkjDmnBaEjzsQ8OCDfsWGl1pEHtw4KNE56cMR3XooMm6ISm6elXJVZ5+bLKuVmOxzTF/laTZVdZXBl4bzajoHSGofi68fVAen4sagtuVfq87IwsyseqzXMbrjPh9qP7dM5MgV/qIpG8pxaX9cFvzdzwzXKqfG9guHO0TCV1jh+RZXTrFuf7mAdW7kX17hMheR1cM8f6EL+eQtYyndpYhnIQ8xHXa5cQ12TOD5EUusjX/7hS6XMRGMxYIXSZYX6lCbbP3LPUmZAw8Q+N1+Fl5LsFfDgrdIMM3CJHwnjDzeweDsA8zExMnT6OaYI7zU48b+QKowMM/oUMwzwwJxIggASpxFsmZwfxMgaM64nWspVWDp0s+GPJR/q2oRNpOnbS1Osao0aY4Z2PlgwhzRiNyz2c2NT94m+P24zSxhGhJ0ugOMzIoApqId2gCMAm2s/E3uJPFIUVEqWLrBZUH1zu1asa9WKtU1a3bjaqm2DJXirw3Y5HduXDAQ44abwFYjB0aBB89rknK3/Dw285n9yZ0P/gRTD8cPwBUaw0Awt1/Na4UYdmEbOBa8Y581+w8yCl+tp3aJZmmcps8S99MK1S4PkGx9gyUeoMLt5e5I8682oPw9viWhtDgP+J0Q+cFH6xusozePSgeQatZdvEx+nTTXW3VmL9f67X3QEMxNMBfEYpEz9Kum2q6SVK8yYZlSWCo21P/uEtJvhAAjD0fTeDAYEIg2fc5kMDoT3OZz7HowDiMLb+tzzAqBIw36MwA2dGMFTYykIU3cYPOxjgOpWYoCMGCtNmiKNmepwliojrY4Nsx/lZtsG3tfw/mg8ey86zTDK5ueHPJIHjnakjdqG2hjygB+3nElfhg0OARIgb+/MqLmtU2sNppUNzT4Cpuawi89g6W2C5u0ThXIxNc4y4F4t0g90n/Y1m5+lB/Vt3a8v6LawroRKsIUTRpMqigBWuRm+QiOC40NSFeGavr/KfTH991T/v0zP6FK9ED5ZTlqn61FNP3p3Tfn1J7Wj/qyP6u+6Us851axlUWWokJin/xyRB9oYiABufgCFI9eAJ+zP4B/bdRydm5eGGnGPgYMBHsgFgckZxuVrZTOflO66wca5VaQyM+1Iq06j7Q/zI2WoZJ7LOfUNwYTrmdI3E6YFmIysJb09zw4bFRLO8YiDpGB/eRa8jt/G0uM9EQB8bLfYz0d9Y5dPdtVqrY9hUcewTSotWeomO85OTs/X4QWn0w0A5hk+AlYfwvMBGvfxSPILSFihShiufRkkI/Yb4QESYVHrwr5pg6T/DGgolA/07/T2fMPmeP1DvzFj36+4mURCS9Si+ZYQk6ymsB/OU1qlSx/7p76he3Ss/qoTdb1O0HU+/5tO0g06VTcbJE9rN12sww2Z83z+RrTAkufPlmkH6yqndZ1tB74GigVFDv8zxLMTyw7JEoESwcKP8yJzVnLe4m74SHctuci68xkzIoZ49AmMEewCAwRd/+F7pHtvdq+LgW2/UWZq9nQGCEzDCSDIOUCRACeAytmCcRlu5px7hEkGCMKwNfccHBXJdnjYuAdA8AIe3kQNqxsXF8uNM4jG7WyJY8eMhDE7SEOmWzq5OMXMsrbWxLQcnpFINJ4V8gUKyJOPPDexZ8gHZScMz+MejqF2ykanAEg4AkZGntevQh0E/VtBQ0Xyn3c9JW7werXqvbpCR+haq06vv1rzLEufwyx9jtTV+pFBcNo9vzW86i2XWvWi1uklu4U+n6G1vmtQ+Ww7bWXAYUUOnmY6HYCHevifJHgjNgwqGvIlDqggZXHApbiQV58RSAAMC+uT7CKao8delhq7Y68Ko8BoSAOYmE0FsQ/uu0W6/w4DjCFdJmza2B5R4zAOy0K3YMfkGC/plRNA4GA6/4XenEwHZiacr3kmPI0KRVkSY5q0OWdEjNkGzEJgh98Og4NpNxnnhf0bA8gAA3GcFhIsz3li5kEAhx3qF1KHx4eAPmF2AXkB1IAmxM0dA3hy8ckc+SA9ysHupIOlfxNoeLkUXgvabslTeX5t8PmS7rL8qNWB2kc/t2J2tS7RnZY4O5jhB9J8NWqZBq90HqtD9UfD6xrLmTstje7Kub/p9/qJvm7wHWQJ178iciBNsxXEDLb/NCFr4oiiGTaAI6pocXaAJU1R3I4jWcBGQ/L688QBSwienmN7xgyI+mGeieAJHGY/6yfVBkjGzPmIgfOTXzn88waPbZ2JBs8Yg4iBBaTEegZ0PNIJTGfHMwERL1BR1cJLU59zG8CFnt6Rkp4fvzAFhwCQ7wdG9ikDEoF8HcIDCF+SX6QCX7kGkAGEjhAWyTkteN1eITDheR6z/AFKEoZ8hPeXpEFY+yd5YUlFyNNG9K/vOmhCJl0sXjNhZ/yrcLF222NXq2MP6VPuG3+lcyxpDnfjF2mNpcRcy5wz9MUQayBtY3b+Zv7n9MvCM3VmySn6Tsmp+lnxGTqr9Av6btEXwxgTtJd20jdtvTRZaszVYsuwO3SLHtCtds877QLLuCMtt64yoG6yTNrT4QcSPTnv6f+TFGVLzANSJFHR+idwFqrcdh3ncdYAL+uizGE+wcmuq4pc0z4zW1psA7zEzARzBUZOimeGyRYZNAukhgbpHzdKXzlLuu1u20Dl0hT3K+PrrCbZRuLlKKoMiQA+GB8mRHIE+wIG9W3UtWTGARyNapWAhBzhuA7hk3Ck5wP+2ByEQeUKQHX6ABJVL0gF4tpxD39GzvgCSgBQLj4SKJSN+CTv+8H+4nl2AKXH9wAOY/aoZsziGSzFmn3XiCaHBVNmVdaD3KjLe1/Qow8/Fu7ubIZdaaCw5xdWBMzSZasCI+0zlhdXFf9a2YqFyg5dp+fG36cfjzacRh2vH476ir479nSdMeEUfX/sGfrO+K9q3Rarla1dajlyvBW3VWakPKe+qY6yAshgN70xeVlrMM3QLP3FeXnUZ981RD/nnCX0HtsGgJsP6cbxN9fuf4AiVNzYPiaSJtgy/o9qW1bMkD8z/5ifxjHOTMNOZLXnZ7W5RvoKmrvY4FkSR80gmJy0u1y0u2zyBWYaQPc/JH3zu9Lfb2K0SZpqyTOdj0BVOp45hiUAQWLZJYCAuQEV1wFITpOao+eHgmroI8+mfZEESJlEioV0iOtzgAGwSWO9KOEe8ew4J15PLpz/glQJNgvpOU543+MbQeL5fgBI7powgA0VtcUShuXjYyx1B0vvKmhCZl1CGI+NbGnMhGhoiIZmSj/bsU5OjdUBhbtov9qd9Zth39PhQ/ZVU1WTmkoXq61grTpKO5Quc0rlPeor71am1MfSLmWrOpUtXuausUeHbHuotp6wuVm/2uzU6x63QB/QbjpEu1haTbbiN1FjrYJt6uN0jQlPXmaQJfQLPaY9dKEe11KrcLxDclds+neBJyqxcElkkkTSAJyonkUVrcxWMgMopZwH4BhIPuceihtz007S1i5xfHm7ypLkMUsUvqRGr9tuxnmIGTi5Yu2vEQ5dHS9y9MSTro/fSmee47BPSbUW5lPG2Gg3iFi7Qy55cx9GtnzB9BuOMHTC4GH0yi74w6g8z+eAI6hQdjAyAOIWjnsQgPCt6Md9LnJxE+ABOJ6XSCAC44+kQgJxHewfu2CD2RGOL9cTb1wtU3AKwydDBkvvMmicY1cfNsK6DWwS1DFCdNp/R/eKR1UfoK2KpqqmqFo9eZ3qKGxVpiRt3d09a0mxyqqLVFZWrOJS96j2yyu1aVzhfrWmSKmqYqWqi6VyF6cmqzp3jZt+YBftstf+2mrTrVRXyGvDQk3R8PBWY1c/bwdfjbUv2y/FaRT9tM5AYvBhx2ATzTG0eFn77q8oZa/nouEV6itmEmqcNxWZjzMkTbLuJt/MH+dAs9VglDScWW0LfoXOb4FrNmMbZztbcHHh2rpG6W7bLSstPR7JTVlDkTvTYbZzN7O/NtFp2sLS1gbNAGqzkX7TbdI3vif96g/STKt8tVXSFuNs/1iFY4ccwMB3c4KUgEHtAqpcABg8AMEOxodpYdhw234wOWECeAAW97hp4h7n9uonX5AOgAkSxl6BkXPpAo7wQQgqD/D4Ooyw2bGkm+PQynyNMfLTvflKd2fDEu/B0rsGGlQymCxO4M6aDYF9P7W6SSenxugTeYdrQslotTavc8i0yirMEJVmiAKrGgXuNct9bfmZx+A9H2op9xFX4VKW+cj3ZnDoHmH5ov1dIUGRre5TxaZ1GnPk9tr88Pdqm62314QhI1XlYhc7V6g5Q331gOXKa5HrVj+1Ere9zneYhZoQZi74OTR+DPKOERKmYuwIHbz6In2g6xrDhyXj8Fz8xTGy/gGB0qKSAAzUSFZ0Im1QKgEMwCmzL9dskHiIoXGcNgvpMQfthfnhVO8rm6pT3H2g9EVgwmUFtgvH6SuWO2wfFd9c9RMfhbvqagPI6tvPz5Oef8FV7yrfaoLVOGOT3XrdrwVGZ9i7w0Cipydl7B0oqGOcm5lR2zglPAAJAU0wfwAR9/EPgWJ4HyJguM75h8byOc8wN4RRQ8DBIAVSpdN5YQRwdG2BxthhI3X12hTI61XtsLT+dqUjDZLeFdBQbsoCcax0MVrcfAntbwVovhl1bHaYVmVXqa2rQRWWMNnKrFqbWtS2rEmFhWbsChu3DOGEiVJOtcjHYmeZ6a3+CxPlynxSYoeUCdNecW61KgPIkihcU6OlNpGnV2nYQZtq0w/vox123lXThk8wlJu0dNMn9MPqr4S8vR79QA/aBvuT7tY8jS8fpvIUkuedIyDR3dw/7D5QqkW4RNsGxg4SpwAJafCY4QFyBE4ETFTZomPCEXJrL03SVy07E/rpWd/TF7Y41DZkOgc0JkYBRKwi7Lk8bWnJfIqV2pMNuG2suuX4eT0tsZ10zT+k7/zQ7qcSpiqzBiZbhducKTNW40YZRHx5MahEvseebBjtDC6EJQwlPnKOc7gwd81NaWUi2E8QwAjO58Fe4mgHsKAgdfD3ERUwjIoBVh8BVq1tsXFDpWHVBY7T53xklLLeOGSYtGB+VqccLz3+QExrMDToCZvHp2pdpUPC9+dL2AB9eUNoxKjcxJdsFCRecx4nZ2J8n68XbHI3uE+v0O/dd+9r0Cz0j93DeHivfyMq6lRdVOkKtuLmwnWsawmf2KvCQiNhmN8VG14X050AoDCL0Dc5AirC0Z0wbyKMT/oa4pxujaWw6AO4DtcmaXXZP7SmdYyOKl0279c6fs1XY7zXo6Gl+kbze/SR9Oa2h3i1GFZy5G6+MWVc1rqtp2r3p36kvxbt6w6lf+gbucyqU8Yame/waopKW4frcrtvnqinf3KpfYrN9slC73ikTuPwS5RQgIsWYXbgUjVrlubqdy88qluP/YFWvzjHYVlxH+PGFT9RP8BxTn5oX6pzmeM/oTV62brC6xHMvtl0A2cLH6dZ+gxxflzNSI02+k433XMGGNN4IJohLD6zP3PRuOZZlIOdPwPhQRX7GMJydFjSDbOjfQ0rwAbMu7PCHr8e5zCAh/2hAWRZGRM0paefzVq6ZNU0YNExvP6OznIe7FcDOOLGGCJ3aYkulxVg0162JC7RH2xyL3d1N7nfqnDV19v8rNWE6gnm524DxoqHJUyBAVJSUqTOVe2qHFsZ/IJEYfCeWgldka8BC3KY+8hbagUZz/b2yWB/KJ6PnEJt9n/SLbebaxRwNfmaN1so4QCozxZuerj+8vJv9PFVp+UivTaVu6R/14d9LDAbM+GPVn1j4ls0w6dvqj2f+6muKN0jgGZDW4lUXunzSmI30h2//lk9/tML/eQSpwhbk3IcdIHxYxcGH3IWh6wh2qvTqt8Rs67Rg0f+RKtfnu0YLKMGdAlgImi45hivw2Jip0DojMbvs4sevfdfetadxkKr2m/0mqPU9s/Y0dIUS58pU2wLWVO843qrik4uvENyYUNf5iYIlAOBHxVH6XweRtLsT9jkvRPNG5YoEC7X9ARjAujuh1hyd9lWMX+Uldl27s7T7Hl9esqa+BOPuh3c5ANpTyf+ABM430nQfK1mG1VWD1Hl0BobTdaV+T5NoZncueZbNPnuIlIuTallbnk6T9955no9nV0T0rzCsmZrC/uFVsrYHoI5u/MMqC00UUPK6pTnwhWXO61SNxmN4nsAAGdFSURBVLCfVeCuI7/EPWNtmRoWrlHd+OEW364pVDO6lXDk2ucAh4pjAzD8EknDkS6PXolJTtQoJeUa8+o+hk/ssZ/B0+ZjGLx3C3X4yEuJ3lK7Ebp49o/16TVnOsLr0/eGH6avHXScFvXUv7IyX4PYEKJ0yjBN/OmH9Ox7f6SS0XwrJ3dzMORidTe1asLn9tWiix5Qnu29sK2RdRR2Y2Ero7B7pOsxwMVtErQAHwEQ/p2rLKlu+Yrmfvd6tc1Zqaw7HXadRHUJ4PE5W7qmzVlp60Asigv3zT1p6189XT2q2GWi1j0wyx1osau2T/WZdj3UsVTzGldpsd2blWmfXaUa20LBWHe2IKI4exE8PoYXnG7boCjgn0uTMAkFwLlNSYKwLIHY41CpvS0VPt790sysli6Sli+L4TekQ8Ztod1t2bY0NeqclhnvLGg+nqp0n1ajuprhYT1Ny5q1bgRetMGxoTmCDr3SPe7vctIFelz3WuFoslCvt75cFAYEuvxj83DeZRcVFqu9jwHSPlWWl2hEwXD1lVoJKc5YzBaraWG9xm4zJjBCPioaUibIYGcUoCTShkECjtQ0o6whWz6nhgEK3ZP/gnLMOaBa7dZhoIgXFgCGDzjy6pkuEOAAoG5Lnu4ROn/eT/T5+m+Fnuy1aLzLdrk+aNUp7X63337bkOivh0+drvc++wtdWrGbu4+R9ntFE7wJpZx6s3b+2sl66mcXuZilrjnUNn5Qf2oUN1EbOUZdwAxlef+JFffo3gPP0qqZM+1XGGJTtiQdwEO6zPdDynAVx/RY59OpiUfuq5f+cZurtjTc505U1PNdB73uHpvDvL7lfto6x9yQ2IF4S0se7oT+DJuGG84gz6f5AIQTDrYO50FxoEnx9j+OAUDE94H+FDvn+tt88QZElB2swJ3z4x/oX9+6yPzZ5jy36KrsO7yeJu7GZYvFCmWBJUwct0neR2NwlhkK2VcA5h79yzowry9XOlxBmGvGe5kpZrHH9JJu0SO6sfc+PZx5Vs9kXtIDLU/ruobbtKphlXm6SOnutIrKS23YuUHN1L1hLDJXQ1QtPWoYmsnVHAcAwjnAoDW4BkwR2zm1zs4iXE+5yap8bgkXtuGv8fkQH6vdggwk4CotkcoW6rPTTlB6x4y+VX6KI76alpiV9tbfbL01apyVTtYWse5lQ2c5rAL2gbUKGdckvXa4N3KY+AWlvNbEfMeP9UwMiydrmujguGcb0ceycC/6EYZjvuOX2mDgHuE4VuRcuf9X+Vjp/9XuKKtyR87w46q2ps7XXEVHvAggWprh/VodYE3ieG0eZigc4zYfZv+Ewlt7NwtNRruEt/owp5uM/iw0MTfdHEGVsgeDDLy4DOFAFgf7h7AmJ6MZc+P5hlThxLazjnOCJuls6z17aLTSzk6P/fnWER34YGnQoHltittCYHRhIH5fz0Rv07XW9lcbLA2GCu9kmtzjMCzK1zmv1O3hGGdPFQaNuMGAAoC1bpD7Op/RakuyPDN4U0tzUFR7XDtszxO/I+8aC5OJ/CCAkdQg8juRJJwnR4iWADzYPkWE9/knjJwKHwENKl+5qx1XbVfj1qozaDhW2lV0KlsyXz/a6sdaNcmi+HXo67rbJZ9hFuErbblnb0ihC00a+3XCvC4R/pVxkCA0JPKesa9o/EeHX7RqsEVc1uAc3/UR95NGzsS40dEKccoOXSK74aAhxHc/RWa+OFpXWVJucAFbliCG5Yl2MQxw5iUrFF9oF4RZFu+zdrGHz3ZBHWqxMKddLZSRDvRjGPCFBgW74LCcPmXHJod8LjEoB04yNKtTTN78MzpGddJvIonmzQuPXU8f0Sb6hkHyLe2oIwxiln/w/gp7jdcYzESJiuzgiee/JYoMwd64eVph8fZ7zYo3TH/TVRZ3rf61uLqKDIhmg6HSrDRfT1kSsY5yvgX3AwbZY3revzmaaYvnPj2hh3w20hV7b+tTKs+Wqz3da1FsS8g1Q0/DW7T4WWsTg/CchglHuXNG1lyhCWPGgQOf0w3hAnf5H5OxlrjG77IkqeDa/vhxzqBDAIqvkTpDAU+RUhU+FqzViNpaZbfp1r75ce+xDemXVkpP0Y1uIocLmXr3aWDDR5DEpu33i9dJyyXSOYaM0AJstCcdGeCBpThDBQdA6BYAAtCUGzS8FQrnPgImhqzjkHcEGnIUMAE4UkLubeO238u9fGVDpf71kHT7Y9KtD1qluk+66X7pthnSgwusBCy2wW5b5JmFPr4gLbZ9stCm0ir3oWsapBbAZn5gQimzDujz+B4p4DxBUy3lRuu9Gm41bLSfTMfM3I84sph0JHlW7aP6unFtlNTkRhGPQIelSfiG8x/0cvCHbtQ/w1v+Fqsp9HOMu9AbPWLFhRdtCP8HDI6V1nRpgOQDerFHK7Fvk1ND2UlrdftalVaUqLurO+iaQciEhjYlKhkvABgQoCQAB1EOcTvxC4MCuSO2j3k/FGK84x1sA4h7jLjhAM5kd22b2dUYMFVIGvsDIq5rHbnC6mLRQt291X16YcwdTujV9Ii7kv11cVBT/n3AAQCREZLz5PrNKDCRfzGVrFsj2icMV8dj/MH+AKi0GMCgYjJtB6mUAAblEfhEsEQJFd8hAT5SYIi7yscNiXc47U1Sw2pp6RJpxVIDwaDBoH/affIzBtQjTxlUFvR3PmBeA2j3Sn93E/zVdswjjyBZJmsLq8cHWA07xODhO6aUC8kZwRLLCHH2Vmij48XHAZmsAZCvcywZEvqyTjPLY/QzHF1oadMZHEoaAwAg/m496l6Jvoh+LYIAIzMIBx9R2RZY2aOXy3RmVV5WbkESARonIFnqoJqFuRj2KytU222uXb5XEsKEhAwWn2Dz4JHI7yB9OPchSB6fo+qFIWx7oqaV+sZXl0mfcqsxMDAG4NgFW8eunGuzUXmxgbNEWw7dVJnJDvsatNpdykd0dZjD9u8CTkKDAcpr0UCwRSDF0TfeuCXvfGD9InYc8jFKoNxyBV8jfZBISJhkpgL3OdLuqHLE2W70VG01cZrtPyRSFPRvh7Bz0Ly3tx6TbEzCeyvyThmgWKbYQSQ+b4U2OlbC5ENcEWfp2ZyvdLRNvT0seFeY4ePsqDwDpjsYiy9rkSus3KrZ8+5hqkIa/KLUgJm4opAuvH2ROFR1qsv8WVWJZwBB+OxbxgVGeWUkjSHllrQqdhvlkrgaWlF0HTZMb7XjnLhhzNIXlDZ3Go4AiTT48isg4kXabZb/q62y+U8/sH6w1N1fAIvD1dgNcUBAVGkmMsAyRZ1x0ujUFo1NjXCkV9LztulYScrCtn83cN4uwVr9v6jERSY0g9oIidIodn8AJgInSp8oYaKUiUMPyZw4IJPSPtvupN+efKZO0qb6nhWpH2pPu131Xb3HNsj2Ot2K3KmWGSdpM33CEuMgjbXkHq3drLxvbyVsM3PWFiPHWZ4wgz3SobZfmOFAPqNth6NpYwkS6+XttgLlHzQFVvcTK7L5+oVeDPwIbesCfkwf11z7oQEjLeYbPNPcxzJCNtIs85xtHvoospxkmiMuJw8CsVVRjat5u9LN1VLYEd4NUOBQejN4iN+bpyW3L4opASBKUVSg5hvZQdtVmDwAaYOUWv9An+DHw0J6dijEgIdrxN2BBmk4gdwHXmBFebLTDPPd7FDTgsPOcefAwIFB15m/XEunrdABBXvk4vbTr62OPm95ixrzv0yhHewADvVOa+KADX60b5Q/HFG3o6RJ7BvG6JIxwAIkVXGxm4aNZqnxCEC4hz2MWB/F/kHjzTub2zZhJO5Qg+fjvjpJ2+mr2kkXHvQFnW0YXaj36TK7g6yaMfBATkgXUMMc8X+S/4GUcPDG0aBBQ/IwaUV+oW7uW2qbpf+BX9e3bcrPdmJovSkttWIywWLyRUOn1lWwSmuDmgbOIbKOehdT7CckDyJ1p8KtVJzJ0/AhtS6+i2qw8PUwNucLjWTbpDnTrL5O54GFE0iSpl5VHz9darZk4DpjZuatFxuBhSm4hPNDkgeG7PuCF59kKAHR5rZl1leL7zfaSELKoD+gvgEShqkZVQujbS5zhZu7LKX27Mu6Y+I92izVv3oyoS/qVjc9oizJwP8uUYJ+lQdWjL+oX0TgJFKHwVwkDnYrSjkSBxWtprhSNVVxpRMDCRFghElABnyixEL5AwI0EkPE7AfHCFhLhk8asx9c2rYL3AOxDC9pwQjs6B/z+05Qwh2DoGgczmlcpftX2TrL0e90QRhaZiFZkjEyif46x9IGk3CRj8lSAO4RaqDEgXhp1u7iH+v+Yu+h71Fzfodzl6esFdVsGFZ2h15mBmVyku2Prd6/U1CPAvMng/4tvihlrlqZmlbXa+GT85VZ1WY/Sw/UN/Q/BgoYHABIxGEQAAkE0Dhf5kB3GHzOSwhc5+dh+/AilZ3FGVFD4pT7GGZV+36p82V1EdfpUr80sX+r2IR47Ll62F3I29Xe/zuI2ksIwAAXjlFli91nfLMXR97K7ABGAoryklJVVFAbESy8YYqASsATz6OKB3hIi0EHlP+oCjIThefR+slmksAkMnWE9SvzyXV/Z/9WKaY/CEIygODLexdED9MBZnB6gwatyVVVSk1qtWY52soYEzILrdE3howzcRPiPMl28nAmbDJ88PnUsTpw0l6aY1BOHzNRfcxGdQRsmIKSAq2dvVZ3P/GgWpe2xzf2MDqZItUSg8UJn3vxufr1Y3/SVY13a/mRLbqh9BFd9pPfK73IcYrMsACGQQPUNIADN1OdDDIEG8d+6+x5z1bSZqW2a0ZKq6xAJKNugCcAxsBheBrp42MKiVPqrqAoT12pZcqOefXgwJV6waBBkv3vk2vgVZRIHJokAieqbDB5wuhxsMCuoERlpVivcSg7gitKlmTkLa4YSs7xj6Ng2CvhhwYSnhyv3XImOuMNu+TId7gN8534vTL0G1PCt29KTE68QctzV5E+oRMsQxb7DqITUMXkMOYXaoV7jzLHWGV/98ahIEmm439eMK0zqKrNSueX/UDb1m2qOxc8orEjR6mzu9valZkx5VQdkbXmdeNrNSJvhEqrzfyJ2cFHecpH6fJHLtMXbvqJ9rnhYJ32zOk65Y6TtccX9tZRf/iQjms+TTek79aKe+a4Nc35jLyFF6QhgYjiYP/Ey/BvtSXOeWOlYU4fIFE0hqSZHApwAnjMHgwSBGlj9rCkKSzOV4aVUZaKP6j4Gom9gq6ydYOa8v8rJbChuuhEo92T/CLDc7ewwMApiqOoUZ1DCQM8hIlDSdE/iZlYTxEg/Nhof0PTHsDwyzVkOJKXyHEbQinSwNCDIdIbFK208rTM+mNCp1hLX+tfj1k/ZjNlqdJs9i+31GgLmcA+abfCkvQBkc9TVuV6gkRC/H6v6FR9s+BEdeV366n6mdqqdop68ntVYFuDSYZZq0ahcnxMFRZoy303VwEvHCHGGIsrdPFD5+ne5c/r923navv3bR/v5Yj3O0xoPPqyj2vejkvU/TJrVlzsIG0cPwzZ+YgL2QQ8dgBlpXPMsDUzCZIhaY5IHb4LyTud4OzPC1G7Ap/jmnsb9O2RP7AZ+8rF5/PcSfyvDwgMhmDmwNjhfwRQlDwRREVhY3zOCMkxuRclVAROch5dDEtKERa40GRvQCylSCjGGkhJChv6vzENGjS3hjHYSONt5m+rnQ0ZpAgLlnhdxYtMJu3lmy3aQ6FJHID0OgQqGKs1OnxviBnpNB2ns1NfUEFPkW31lJ5sfUHTKybFZQBmWtY/UMjQT5gfwzAzhWPtC8Z/mFdRphfrn9NNSx/Vn7v/EPK2ITH5rqW1WevWrtVePzhMNy68yTVptQspA2BQ0ZA0XIPq8C7HhKrGUDTP5OVmgwPc3+qjIyXLEhKwMFDA6JqlTcogyrNEKjTA+vqW6veV34/p5ehGzdewVFwk4pTX/x88JSzzVmlgbM6oY1bWtto1uyoSEf76FFNIUnnjvBC2HzycAwNu2C8vgsY1GO4kkEhgkcRL7sVz2CH3fNooFzceo4uU3AMWiXEAkXICtegbFbrBU3zaIGhgVX5KJ9v4XxYqOHl8j6scDRVgUDRmujJbYCdtZZCwlfdQw2xrfVof1DecAipZp0NkLFUe7X5eu1Ztq878rrhnFYa3QcFU7zzrZmSS74sUUEimvCIF8C0o1Dcf/IPOm3FOyMPrUU31kCBx6utX6+C7P6SnL7zHNW9pxTQc9vIJm2o5IFKFeuTINRIHQNzSHKXLMdXSWvJgFySPwyQvRDlnyTWDAsVuboOqra9Txw75pG+8kv7V8SJj6+4+GlxP7J4weJeE721m2KThVfffzMX4DWENUXdTs8/r7VZrhz9/Xrv97UzlD883fNasD/96rrel1Wk1Dsg/eaE8r3bxXhKu3n6N6mlrVaaNka9GV0WjOaEhHDutg3QavKwZSq67cw4/xsvaw/1mp4Ee0xLCdNgRr8MOvy6XojM4wrblrgnPeYedbVwzNRu6xOs3WhH0Shr00gAcNCW8bPqMH8HakUScxpV/HBkPwXxrcSaZKsP5BA0Li80QsbyHGaexob95RrO0RWqSRhfWqacwrQL30GVFZSq1rcAHRvNs/BcaJCWIcffuhe6ZUvTyYW1NmZ5c95z+8Mx1urT3taXMQMpkMlq0YIEmT52quw67RvvvdITBYc4N6pYDoPExgSksO3CVMH1muSuy2TW7W6XBYjQzDYdZAissdRhVYzkB27p02o+h6Sa7eodr7lG62UzZ1qvy9Ejts+gQ3Zd5IuQD+u0Xv6tTf/MdNf7yAeXzfYxXtMCbkLPQ19it8oMmq+PBRa6PjVT1HD+z2tL+9D3Vduss9cytV+3Je7oecvdNDb96QAUDPjy8IbEmqGyX8Wq/d2H41k6m21pER4+yHbZS2YQAm5FCwTduu5TbMc8dSl5JkaVwQdjkomDaEJVuN0brzn9chUPL3N7Ecay+TNSUsz76hK/O8alAPjwb/HzMOGymu1NF00ao48XltiFTyqTTIW4m0yu+8ZPpiWuAMhm3RY/zZ//etI+9afXy7Z+mdg07aJJW/GtW+B5Qa329znjx9vX8/o6sp9kpdaDlRY0x2ardtb2ZPmO2R+8ECu6QzXmLra5tpk2MXeabcQdooI/GbZoQrKCdT0YgkrcOc4M6rO04rHvs4pISLalf7hgpTZ04XkXFxTYZbBxaDeJjUQUMDLAWNoxi1ej8Zy9T0WE1OuH8/n3L3ogWL16kCRM20bVfuVYfbNxdeWPK3Hq+gUqIpAAwpD3UgHisMRr4O1mVYrUnnQYS7iWrqWNKYjykVACOHeACNI0GTaMZyGpcV2tahZ1Fuq3hfr2/6VOOEOl9W+yuW2c+pDurTlTJ2GEbDZrephZtduYxmv3Tfyqfj7BsDDl+1/I1OmDlRZpx3HlafdMzOqDrktzNSC+e+mfV3/yCmZye5NXU196jKacdpKe/+idV1IzQuA/sqbr3b6myrUercFS1ARJHCFHbMw3uJpda4jy7XPW3vaSVdz2p1sZVmn76kRp/7N566KAfqmi4Jbj5LMDGx+THiG34VCMg8i+s7PF99Js+A3XMh3bQwr8+qhSDLwAKgIX76QBCwgeA+Zcs1MtYlWGmfGdTq97704/p/u9eHb4w19HeqD9mF6/n93cENFun9hYrLIxT7W9FC7EGXAAO0EA7ZWBwtS0dxuEjWNjtpUIsC2DlBm/6Wbk5RZOdDhuNx7lLKQOjtCpfDZ0tmjpivKVKgZasWKLxm4wNoGG7JiROEZIA9Qzmrhiisx76mSYdOlknXPaJXO7fmObNnaspljRznpyjqm92a+ROE41jNwpACc7p89JyeZs0zB7D3Pj0nPgDmOFmot+slU6qk9bQo9qvEy50rbLnQIv91vq8occAsi0XpE1GFR2VSq0YF/IAbTV8E81YvVD/r733ALCiOtvHn1t37/a+y7KUpQiIFLGggmjELrEm0QRbYjTWaGwpxsQeaxLFGnuLEmNN7MGGiqI0RTpI3d7b7ff+nuecO+wCiy5K8uX7/7/37uzMnDlz6vu85cyZM0+49qdmLt+yA76GmBsFTzMmXnEu5l3/IFtQM7f6TrpfNsD0tnfwwQG/w+oFb+DUMLWg6p+i51xHsVeUrsRhN+leGd1tWItD7r8FubuNRDY1jkPd9XCOdIel7iNebQmj4Z0lyMjOwSMHT0UJTXgNPHdDxfpZ+i+A6Ke90iD7mxjiwxGnHYzFj77CcC1yIpCQwfnTf30My6bFbuJdGqkV6UhXOmi2HX/7xXjpwruM9SMz8fFka59As2WrfAXZqiRYPD2ddVwp2xR2WQmL8Ao2QT8UcV9MdigiKNJpnpXRr8kx4JIxF2IhnWZVg2iqi77FqYmYoSgtTKreykEDUbWphhJdj6/o6rEyNi43zRfjLi3gx/wXuieMfhVJBev1AnPcEcOy2o1sQaYjTaFBQW0yB+bS3pfJ4ydA9PEW3aLe0KTOTwmmQ3OsNkmVgQ3CuGoHnmuUTb6PBggYptVW5JPpYywD2AYOfV63VoursYX0zVG1igzbvm1OfA3H78h9zmbvp54nY8jvymXvPJs2DbUvzUXLvJV4c8S5vB5gDA329rzPQzajIPvefvhxchEqfnqoAYx5ZYNSXMxm+sZsrKTZusP0cWATj5vecy4+dndkTh2K85JrsetleuO1hl3QsblOTjm7z+2QgTN0oHAXzWUrrruvy0oRfLwZbiTTBTH5xBLP7BPxkdnrv/pPnKs77NZX6nNMRRRWZXRZOWB/KpTFsNpJxdXEyxjRq/EyHcWJeo2fSU2miksPXxLBaBqXZsDSNiIfZgUyaYcyVTU0O1Xf4FSqeuHIrBAvx5y581ZuEYzLq0STXlLrAwWDQTPJULTw5cUYP2i4fUDKfI2ZJa2hdYVqCYxySlm9JapROj2/ESgaaZZ1MU4/oYTnaTzWiJkkNHcGPBpRE2hk7lE7ubn3KMzThYN8+zFCN7mKXHiSElvf5ZFeVlv+T5GfZZh9zFV4Y88LEFzRqF5JXbEk6SymPnHda9jrmV+akjpAYW3NpmNTA/bb1pu5pkPnus65mTQYNPrmH+Pk5Gzs9+jF5Jt6CtUWm6a9wxyJc2wOEqEOmRy3IsYKJHBx52z8KjiXQNQjBudOkf7bfFUmXektla8iYaFPZDVUkmZWugGCcO1kJ2zb8XCFpQpkNlXbaiELLC3Ql0a7Msb/fqzLqsb1uTPxlP9NzAy9ZRy+vGSG8Y9cZNi2aBs8Sa19wtSZoHnt1XlVLxrB1P6TEHZF8eR5M03qX0WBQAADqL1E7932LvIqB1stI7CocAKPNEi/bCQXUA3I/GogUDRz+gP6N5q7tivBpFVrqhnv005gFgH7cRewludFBKQwaV4z4F4OsMxIAYr1H57d/RkMhx7HFxiPe2nSdhBzmmSoVvvPk3pIKw3pE4aSyj1JX/z0FLlxYvIt+AfmGkZX+8uE6RZuFBDaFNbZgvi6+Yit/RiJ2uWm35xr5rGBQMP8VFWlobSUpjTWoFMPxfTk29jz1rPQhFXsd8006yYdq4WcVrLcZXlLmyUXYvpSVIpkxilWz3t1bM4lEA05KfaN+gwaBw76UqU0iDXJbObK1LElbaHsMLF9viutIuVnHTN9p0yxxexveObjmO99B9eGr8L0BafgnWNW4MKGOzFz09tYsGIp9qrYje4LJQzNqARbX5+4NipHnUVNkBEowvQxh2Dm3f/EkjeXqCDbJa2c4/P48Nv9/oDpY48gYAgK550cAx5GCjGPAfQ/CgJImndxmY+qNYaOqqbNaFjnXUouvR4wIdPOiJ6YBZTx2nMEkMyzDG7SaPK/CKC0rAA+Xj0HE9q2/HxIT7odH7FV/vum10jD+ErSMK3+adOvRrMYpidxLzAkNq1E233noe7sCtQc60L9WflovG4vtN60H5quGYn6s11oOMeFlhsq0PHCWYgufNzgRg+uLYC0SzG1AMRtl0tOwJnJ+cjfs5I6R9ORUnmSuo8sG1gSv5kScnOxJXNwtWsUfu8aTn4rNuFWIKkzbRxzq/ozlWLPdL+O+gwaJa/Hk4W0gm1WDkC0Se+ILLBkX+oJwAqsoyzVFH41iuYdaTFYLYQXwKzyBQi3dmH6/SeZO4eOr8TlT52PJ5N/wf5vTsXcYzbi3OV/xlMr3kQsSs3k0QqPZE6zMC9zlpToasNxu5yAsQOG4YpDb8RtB92JzkaaV71Qw9oGHOL6HkbVlmLKxGm01yiNlIYkp8wwAUdaRCNhLKtZG1qvN2uYWdf0dujL1EBTNNKjvBnWxnIUsAnrWKZ9qIWWUeNs4KZnO2IKmXW0m8uKShCOxTAD11LkbAsOje7Iqv5vIjFZmI7XUbV/5ZECzP/NwEk2VqP+pyNQd+YuCH3yPNuJxvbQYfCWDoYntxyunBK488rgKe0Hd1k/3keZ/8Xf0PnS6Wi8zIWOv05FbM2rJi0DnlT6agXlobNDP/kzjn3rAQJnDblG7vuWbeRomS1J97qRRbBk07+2IYKLo21SgNF/k5zOektn+9Rn0Igi/Om7y/JbbI4qiDJUt6s4VMP8r5G1xazoh1iI9/Ep/oF3CbgY8a9vZyZQ5W9Aa7wDk3+0j0m3J2kcfsjkQbjohTNxX/JPGPHkXrg280lcOOcmfLRe2oRM69YwKytrmLcR1+39a1y894/w+UdLMb3oHJyVdiGu2/NW/O3y53HrETNwjOsUXFz5a9x6wEWYPuU0oIPMb+ae8X7yuDHRNh8zXIMCevaiZzKOtlnVDhxYYJ/HKH4hQfQlbzhuA3BDLXDlJuCFemAIQVHLBDTiJnONPk6wS+MzUfRHGV6mJ/Nz/IQXukkjjGq//yZqwZc4ruZFe9IDMNIu7Y9eg+qjy9lXEXgHDoXL60Mi1I5YwzokKSy8JcPgG7AXvBV7wttvHDw55Wwz+rUhaeMAPGV5iNfNQcfMI9H6R5pTnz+42XSzcDGZGbOt+DtjcVZyAXzFGkCSf9IjjmF6C4aeHGmCTRwdaW+dBwsYHXfnoZ+N33faAdBomdkMAw/xgkiZOQhWQiq4DLIV2AAtqqEpNJp+txFV+ATLoLc49cxmZU4VIjVRjJ9qF+XuSW6aNNnpWlYogGg4hgFTynDtp7/Ebckbsf6sCM5bdB1mvvtPu8iGL4eZUvuEmrH/gP3xyHF34Japl+Lw4eww+h3LH1yMMVUDcPMhF+Oxk2/HuP7jCTL6J1LLpi35bzNYtPFcc9I0U8Acc5OWkSaSAlMFpZn0HOe5IILXLsDHsTdZs7l0X6vp/zB8ZgP3jKPpNXqmREZIz9DAurAYoztdi6NxOE7EdxliSavx/DdpmghLNO6sU+ErzTJAETmAabnmR+h44nr4hg9n3dwEyka4c4qRc+QlKLrsNeSdfj8yD7oQgb2nI2OP6QjscQoy9v8Fso+9H1nffRjp486gJqpEgoLEnZkJdyALobd/irY7aLtsmEUFbcEjMhrNMDZwYt2zGDx5H4J5I1sq1Vq2aIZSpdz8c85E3VpGPGshY66kzDN7bkL6RDsAGgpNdr31TGwRbDY2Y7sQqhSjknSZSQuauSonXuZYA107xRTo6rNa2TERlI+lBPoKCqQFUF5Uzvuz0VzfhAMu3Bt3tNyICZ9NwZ8Kn8ONr9yKJStXE6lFaPhyA+Kb6jB88Dgcv/uP8KsDfokrD/8tDtv1EIwoqCSw6LDrI4+mQ7jpoZm0jdkzyAGMWSyQx87nsgQm7VX6Dp5oMfYPw1j0yPM0POsxEZMxECMJmfWoA8uyJEhTjWCeq6k3yorCxmeH6QUctVKtxpt7NL0mgPy3gEa9qsUIx953jjm2YSwtAdPx9J/QOetv1BQDkQyzPbkVXvAwck//EzXKLki0VCHRtAHJYAsS4U5qnza76bx1PRKRZnjyhsA39mfIOvQ+eMsm8xqlUZpW+klD1wsHo/Pvu5o81U8OYKURpHWmzr4eU2f8iq2upXSd9pLuYJ+Zczskpb0Fh+VFJ6ZCbIoK4bHbOd8x6jNo5KtolRG9NafMVTRlqGx1riOZbSqOfbBkDQ5lIJgployUZq9Etl5xjSGzmI50H6m4uASluWUId0aQWZCO0548EZckf40NvwrivAW/wsXz/4Ab370dDz54E5bNfd8ybAelvpaPl7bQAII0hgAiCSN/xnmfJp+RpUH0YROBwgCI4QKLfJdWRmplgDSPy49Nt75BrVmIUebboGqXbIwmfNYINBo6+4IMVUAtI/BR20SjIepXwULv0qdRVuqlve4JsP+TI2dbk7TMHjdfYI71bEUkiZ9oa0bzDRfDW15JM6sL3sJylFzzKgvvR7xxI9uM9WH0pOJSEGnKi9ES2rNtZUmbZ22JCFy0DJJddTThDkJgygy4c3cj0MLUWOSk4FJ0zCB/rKfWIVAd4Bitw3RGnn8Cpr/xJAXUF5b3dS0lciwvam+hYwrEEPGu5VfLq/qZq+xuy7s2Zl+pz6CxI19aAlXc1F00CxOrAJWxnsno/W6tyKhJnNI8AlEJvSEBqT0tCA+ZV89mCgdt+fGgvlBGZgbKS8tRlFGE5tpGjDhqMP785fW4P/EXjLxqMj7AOty/4jk8/sgfgSKNnLCKTotIy6j3nBE4FT0nDZ/dLtudplXAh4ZXVyDZIS0jEDGOACT/RnGV1mvNhEYDBmEoz/V2p1AYJdtrDctMHtHunkPBsBsFQp2cI4IqM9vcruGSKFujibpFL1Y5VMDWcDryf5qCZMfhlx1vyuOYRyp7/Zn70yQjYPT8ikApuORBhKtWsn1kd7DsBiCMS8BoJEuMpRFTsbP2LrU3r7nI+GJj8QxiIQKwFr7KExEYcwmSRqOzqYtoGLx5MEKzDjLASTW+6T/l0e+QPXDqy8+gadFac01XBQwd6dhyojYLFxtq01bOlld5zrI4YNoRUon6RDKncskU0hn6qSi2eE4T6L/AlaAM1pozGTyyVzWLoIh3N1Cxtno7mamVut+WSkpLMbjfYES7Yqivqsc+P5+Ah5J346ezz0XtCQFc/fDvsHEtpWBaPotKJpWmEQhYLrM2gLRNWwRjjzmEx9QmwSiyygk04+swmjHP1LncpIFy0rH8pQ+pX3bhRX1qQoBJpcf2yWEtZZbK1jer5eiLBBleJDpjbAH7ZuIabGJL5PJYD3MsaR7uzmiPb0t6LjL8R9PsiaNlyLTR5YsQWfUFXB46/B3NyPnRFYhWrTFgkLiWRtLPJdEtraLzlKbZfF0Mqmv6ySTWvQm9mcvzCE13twfpu99IRV5m2t5NmROvfxtdzxYbWWf/WVK65UfuhbFXfp8CqCdwLMepVxSiXEx+/FlyzhSPpMcYqfBUSJ+oz6CRvND3ZaRxlIngYvWMvBYlZDPVSJpevJLT25+/BkrVwdwXU57q3lDSLrAh8yTYLEn97SkjIwMV/SvQP78cLa2tCAzy46ynT8EVid9h0dk1+N2Cq/H0ay9RMbCMfvoblPPWPGPJBQjxrxZBp0ZJr5BWIMPLepJ/E2I8rxuhlS1ATQzVwSrqzIBpAdPxmzed68kGb9QSUBoWF0DJIHayqrLxUWzIn5Hosd0lymd5dqTT/l2k6fbDTz7anhitbEvZdu9VcJcPVLdTNtDUpKDSBZcBB+OkNIgFj25jewgM+qWAIhAa+c692oTBJP4TcFR77hNsW3/lOfAWTDJv6hpl7GpA58xUW20FnMpjvoPvnPMLlrqaKYiVTe7cxI1Ww1g9Z8nWRqWxIFNZHKB1p/z11GfQOHOW1d3SJk4nq0AqhkLUkoKQ3lrYlQaMFtOYgLG8z0XI2LWNOwMxU0AV05/ZLW13FuXl5mLwgMFIT6SjobYBY747HL9dfgWObjoO9094Fbe/fweefe1FhFsI2HRqFVcWK8FmkNUpeaABAKNdWL8Iw82ggBvebAJtabupgx7t6rO7toOcTRNQ7cAHOnmuz3f0p68UitM8y2VonMYcBQWPOniv3iVySFk7pPS/6rcl9bzy9T97h0rCsothurTmqZ3iJNKaLgVHjNkc12HSrn+8AJfXDvO7C8rQfPfFRFI9XHoOk1vEa2m0enmXgOIAiALJxc2krXNdM8DRud2bqf/Ki23tcikOwyI18BTtQ2AeKeVtlLYrQHlmgMO+6Qkcprvv3edjwOhxpuy8mKqJ8nW8am32XHtLKhVDWCbdo74079f0kfoMGk1/sfNDlZ24S0Ww4FFR7F4dosaP01ApMOtW6RXo0RjGKmk13SSKmzJo9cRQUFmIn6RdgDun3YtNi7Zce2BnkN/vR1lpGQaWDUKoLYiaqhoc99tDcWHVJZiy9jDcO/RlnPHU2Zj5Lm3jlmaacNRA7kxWhA68/BmBxTyz0XEC3jZqj4x0ekyNbAexna21RZr28nDC1FEUBJohoMmgjYRDjOKBJooApe+MStpqdrjm3TkkP9B5PNwXksBJCtw7cE+UeXegig68D4MPOZC3JlF2yl4onjSKJQrz2iaU9rezFow2IMmnCb7xLDxluQo1YeLiZLAdjfddijq2Z8sDFyG46E06bOnwZOXZEjFtzVOVaSbn32wuq1GkWQy3CFwCiqOJ4gQO42nTKJs7s9IAJymNz0RdNNfCz0r8ilL1ZvnE+CctfpT90clULEycOEazMS+dKzyVE/dWCynvVvpwJUMH4oiLfqGb+kQ78D7NYdQauzKyntOoizUhW8/+5aFonqnOxQhm/qmJEeBP79XIVFOTSVPp/XhNUGx3R9GY20njrQM1zY3I82XgqKsOw9RzpiAj374OvLMpHA6jpqYG4WgYA4ZVsHQZ+OjZeXj2upewceF6HF06GVPH7oeSIs0HlzSmNtCrA+ludC6vR+aoUjzz0EM4DHuxNppHJ4NLA8kaqkvHIsyjIToQRaXlwHGFwHyadPRtmtc1YP66ReyeDryPL8zs70X4HM/gH6Zc0/rtjnv2PRt1evjXQ5L2RroaaW3HsPOOwJq/zIIn9e5Kb6S40Y4gIg1N2Ov+XyBt3y2n8W+dU2xTKzz9CRAyk0j+TPMNFyL09rNIZmaYl12TbgJBZpNmSmjaEPtRKiHR0QD/kN0QmDSd5lUF4h21jEyzVGYq9y5pIn1Pg2BJumPwSKtwb4BD7nDL9+F1lxYlcWkWPBnb70Oyax3izf+Cm9rGJJXMRvpRbSktYUn8Kbor60AU7boLZR3FGoGvuYxxfZjK2TOPeDxmPlrV1dqGsWcegNCqKKY/c5u5Xz6X0tK2U96nmeo6AUPQj1URKCwwBBaBxk7UdgAkOFlw2Bg6tvPP0sxVxRXIulca0YzoxuwOrI3UoyHcgIqKchz664Nw+LlTU6XauRSLxVBVVYXOzk4U9StCcZ5G2YB3HnoffznjEULJj+NHHoiDh02En+aHxpSiTW3w5WTiXzOfpc+Wj0qUEnTWuSf3cMvEXP4G6UpJf+AYgmZJu8FTsKoT7y+bQ8hEMYvAKuDvMyzAi6CEJu2BEtyGQ80Lv+wSE7Y90lV9l3Pir8/Fp3/Y/vs06oV2bETl5O9g8uzrTZjmdel+06fam9AU05ls+U+A4bmuaZJl7XHjKDtolqaxx0xVydjauxmHoHKbzzYyLcoOMXyyswbeASORNfUX1IYUAnH5dwIhOY9Ma6ZBUYgKMNJAzsf+Ey6atzyWreLy0GSUZmJY0sMG7Pocic755lUqU67sXeGb/AVPlK4puKnDB7+5F2/84Xa2SD5T0c9xJWQ0m1fTzE8iXHp3n5MOxkkzGL8obzNgnLR2yvs0WgtRFrAUnKSACq8C6Nj+dCR9YjNWMfVTNa3SVJiRHyZcVZKZE+J/zSIY2F6Eo8JjcGrakdirfQQ+uvh9HEKg3nPaA9i0vMrcv7NIH6YaOHAghg8fjs6WTixfvhxr163F3qfsjr8mH8D1X1yJpYNrcco/r8LNr96B+tpN8GVlIs5OHIWh+BDL2DFpxkQzPkyqfh1k+gw1qV5g03B1NRlGYwo0D9U+mr8tkSEBo9WNRctxPm7HUYSB1lawhttXbdLnetqjyaBW128bR68DthEwB9xztQGM6TExhckxxWZkDIdJDKkKholTYTomRZZ/ZqbJeAPt1GqdSLQXItpcQuWRBn9BI9wMMx/z161aKCO3nFqnEa1P/YQaYhNcabSrxHXGf1E8cSDNNb0ColYxAJYJZ5ncLY3EKBpcMNfiHQYkLvqfpkgCTusSJNbfqQxNGUWq36QbzkbAF2B6+jk2kNrJCmdr/9hNrO/NCmDTxwSfqGdbfA31GTT6gpaqqQpa5rfSymJd52IgB0hCuF1cUEzljLhZI81CyblH7aDm0pucmnjTHm7CgNZCnBg9GHekX4TBz+bi3pH34azABfjHHa8z9s4jgWfw4MHo378/4rE46jbVY/Xq1UCpG5e8egFmJh9GrNCNf66eoyE6tM2tRmBiGT20UppZywzYJb1srfUuYAh6uxUVZGotmasVbOJk7XT7DlKQv/0xjlIuxCM7criWBqqWmlD77MhP0tv2wra/NlRj0s2XYuDZhxhmYpABiGM1yOwye256DmLBo57oJjMXjJSkheoNBFH/4bFY++SFqHlrGupnHY7qZ6Zj3Z9+hcZXjkasuRD+wkZyk81LKsGTW4Gu2X9CeNXbZJ4ChpMTmL8uy5eQxjFD1AzRZE7zHIeAES9Yd178ZQcpktEWePOmsJyyDxmNplps/gVsW2pyU3bt7P68xa+gxnyNTyNoNj/Ls3Zvfzb93OIi/G7aoahfttZo1b7SZtBI0xlttx2yI0OWRUQ6kjJVERwQSZaJ+a381bcZLUA04GohpWaw92hv07IVsncJaF6sp5Rs8lKBxrswIFKCH+cfjisDpyN6WR1Od52NS8ZfiVUfbfXJq29BWVlZGDp0KDweyiWaHZGuKMGzhuWPIL88FwnNfm4IwpXrR0FpMc3UUszHanZOq5Hr1p9ZizJoOFumGjtArxbksnkjrJmRqpb0JZ4TqVn0QQp7bhfr3hEyosskuO190t+le4zFUD2g3MLkYGcTCI8urMdhjy9F1i2fYMgd83Dmc8vw7uoWXnfA002x1RQMtFyXv34WurooDAprkaAZHcvqRDyvFfGCenQ2FGDTM8dg7R3nId5JDza3TQXkxlLmlCGy7GVEVr6BZCCH2oR9zzIlzQAAI7FZjUbRj4Bxx8kBGhAgN2j0jYGMIy7h9WgT3IUHWutOxKaOzU5Nw7KNYQRE9i5lGLf/NKYQtMUwP/Ga5Tebm9pJyetzMcU4ZVQlxrHuW9d/e2RAY9Rh5hQ6W+OVS68kNSemtkWwkZSFzp1wq18UJpVogaDiaSDaDquq4Dam9lbDdFdF/wUmAbQ6shHxpB/hZITaJ4RWTzvG5g3HH0svwBlNh+DBfR/GD1xn4P4zH0Pjl/Um9W9LAwYMQFFxCX0emox0QruinSidqLlvZPBgFHmDC9G0rh7Fuw3BCZiIv2M29U01tc5CQqaanommotMk0zoDayiitcYAzbRQQppFDzgDmIGH6cMcgr/hJZOnNXmdTu3bz7QXGWTbX5J+zAYc8untPCJtBgz3DMi44ROc/vRyvLGUzN4Vxpe17XhgzkYcOONj+K+Yhaq2kImb4kG4Gpdi/eJpdHTbzKqhEn7W66DAlFZwJxFJozYoaEXUH8aqB36IjS9QIJQ0WOZgpu6MQoRX/BPJuqXUXnrEIA3D3jZgseSik260D8MkQuTEu4QOM4rH8NS1RDIMV954M74gStJ0S2y8R9LA1M9h+lNffZC9scykb7nNXDbto//O3gCTx3pBf9h2fMPeyD6TDIyGr/B4StIjVLZeSdFkQauDrbqzXa0GVAvZTrMIthDRHVbLGFTzJ0jpXjGK0KpwXVEl9F8AskfqoDgtnDYEKX0SQZ53JtEVC6E23oy0aBouqTwJdw+5EDkvUCUP+RXOHHQJXr9zlln/+dtQNrVObk4OtOSTNE/j+gbbJpSA8aYQYtVB5I0eQAMrgmOwH135hUbjtDNkKFKSL0DQrO6gZLZmWpY7C+PSdqV+ORX/ItBE7z71KsF2ghkcsN26I2TbzGljh8y8sSvPMccyxUSWjbi/Yg6CHRFcfkA5PvnJGMyZvis+PHU3PHjcCBw5tgjRYAT9L3wZd761ymhb3Zeoq0d911CCI4Iw/ZIINzVvhA0Si9GSIDPrI8IKizLMSxOtZW0/LLr6IvoL1Mypt2zdmWUILnjAahNpD8ZV+jLLjMQmmFxuChhvBh3/ANxy/jfzGmuaMuMEIpcvl/5Nnjl1sXnji1MfDk4BxvhumR7sddCJbI+wSUPd50DHtlvqiKCxKUt866hvZAYw3D46dgk9Q2CG3rLNDd2TlLEGiy1YLPPbwjhFMc3Mvc7sQ04LKV3Rf4HCxtB5yBxZcNhqKUU72mEtWRcaE00sjxYUZ1zNedKzE4YHYl4zcVMLZEzLnIjHh1+Bn3uPwcLLP8V3/afi8hG/w6wH3mPcb0YFhYXG31Ff5fbPQ4Yrnc5tlGZbDPkjCtE8bwNGHTaZ3RrH97AvNNfuaOzNOyPAqHyz7pmxvniPJKjWCYj6GJaimRPOxZRjD8dK1Jm62zbs65b6mQeHW17Tc5gx1/zYHFum5BGZab/7P2fnJTHjyEGYOigHy5qDWFofxGcNHQjRlzt+lwI8cOxIZFVk4YKnFuL7D37Eu4Ha9f3Y/l1Gq8Qo5bRFvAQOE4962HdMW30aYf/EWM8Qt7iXItHfgblXXASPn1pF3/9xgDN3BtVdEZnAWh9ubwAJdwDJliWI1byB6IZnEKt6FrHGd5HoXMH72GbuHFaBGadAgXgI7uzd5P5YYjsnVtO/MRVWNBvvhHuup6+oFyDFcxYQTlvrv35xPYdLhWnfV5LAJ6lwUk+UMD6tRmlDe5JYXgOslrUtaCwkeu4tfOyxzqRp9Ja2hYw2jZgp3EJF4fZYD04tEO1PpBU6tcib0pI0S4/6sKppPa5ueAR/KnsRbx+yHE/nvI9ZKz/CiGQ5zh1wHP4+6mp8JzweL5/zMg50HYdHznqCJpWmruwYyc/J8GVg06Y6jE4fiHCUHpo+Q8ym6tLboTQZB03YjeUOUt8MQy5FimqBkbnAwiZgOI3usJ4RxOCOePFEhCoxRZlBNxKtmrtm22pHf04bqx2dEH2GdZfjU1NgyLwi+TAr6YvNWdnMszj2Lsswpo8W04uScbWISSQWQyMFUHVHCHccNAQVg3Lx9w/X4qxnP0O/0lICIkqA0GymeRahORYTgHTOXKMu1s/DvGlKRalcYzLXeB73UeSV1OODK85HpLrWahzDzPQS17zGjsxF0peHyDr6O5/fhmj9e7QmvmQC9RQGDTxei3jbQsTqXiGYnkIyuIb+QSYrpCWQSYkIsTTEWgB0KRNf3qnQzcCSsMjZpR/K0oez1tZlsG2mvf2ZdNgOzjV7tCWlcLgNWdDIttMTKxbK5bPPLMwdPUhYla9hM7TMLs/FdppTGJGNYY8twq02cTSJNp3JPtZ1m5p+jnmmCghEykEzgqOuMDpov/4m8iBaf+PGfckZuHXRNfjREz/EGZ+dgQldh+H2xucRpZ3eEmzH3t4RuGn42XhsxBUIPtuG0wZfiDOzLsJzv34JsaAeMX89BTK0or0X699ai1JPPl2aMMLhOELhMMrGlGP9p1/CU5SGyj0mIEjpG0qj13fICFaK6VelNA1BFtdsArbb8ogmFlrq5842LeJ0mK19X3+2vSXZuu/Vk6R2DP/e4bpimMcRfBe/SobTlw3SA5h473xc/e6XKMnwUQgRBJREEUrbmMwUlnVlUxcunVCO0v45uP+VL/D0smoECJIIE4tJmzCnKPdm8g2ZNULwRHRdYOFmNZKusw+5D+NzZP2WgqQ59cjAm4nYptmIbvoI4Xk3UJushzudmsRM0dEAigYjuONmRpOZh/bx4ArEal+htFpD0y3TmHkuXymjWzOSriKSG/+Y4lm2T6ryh/zhPBqsmvqkUEdM69juVWfbfuJHc3M3MQ8mryJsQwY0epAEVxqSsivd+SYyIpJO3eTuLz9FzwmUqeBgu8+OhjmFsQxvu1JgsRpJZC13hbLBU/eooAKOQrXZ++2ROkjHXYkurKfXcCdewJ8XXIOTrz2R17tJDypLAoW4rPUy/HnjM+TVNHTGg6gLNcMf8+HkwoPwzLDf47vp+2D2H+fg2IwzcOmwK/Hefda32B759VF7UkadB76ID0FqjQRBE22Oo7O2C/nlxWiZV2c6LH/SMAQmDmBhCJa32W4TaXN3ssYhto9mT4ez6Piz00kFbHKf1nhLSblvumnlSB3pWBRCI/r9cJ/NISmhi39+Umv2+TmfUMUV4OPaII56bCEKCfIYmSbKLRKlWBNwuK0mcM4ZUwZfthcnh3zw5Nl1HTThW2DQlDz1pXm6zr36SKIvRv9EWsj4OwRQe0M7Jjx2DjLo5uX+voZg2WT6252ej3jNHPol2SwkgeKge3uUqod5oBpch1jDW3BF2hjgppk21ChVJRNfd4mNqFxSlZ900emoNSaaHALbWpY/tSfP6RVs7lWT7PItv5eaCNE1IDq2KR19stQwF80Jmmd6uAZvsZkFn0i02jipSnX0bzCR9XzfZm+hIRipQBYmimvPdSzQqFHtNSlK5042Ls9tGopnY1nTzaZrisW9HlC9Gp+H2z+7DhXju1epdEi+xyZ2SGeoEz9rOBfvrJ1nRlci8QhClPrtoRAW1KzAwcV74oayn+Cm/J9iUnw0Hjvn7zjWdQqunnAT5j8zP5VaN6nhqzfWYiyGoC3WBU8ny0np2b6Jmq+dAoSSJb0gA7Xvr4M+XWjsx/U028rZPnrDs5P1ZRhNcETauwXQNIwwz3OScUevfsMfmdO5X0ZvcXbqjcdUL6v8b6xgv6Z7MWG329C/ZB7Gjr/BDPsq7JLXV6Ao4DVrGxf4PahqC6K2PYQ8vxvV7WGcPprcXteM46ZPRUVbK80v5kP/RKYaXUqjVbRFpFmkhZifHjGozyVeO2KNGHTKgYZ/3DmlyJz2WyS6GmzhzDycb0BiCvJmvH054i1zCZYiap4UqsRc4cWquDl1+HZM5QEsjx4u2/YSH1ou5LnpA4E+ipJ+W/JWLNxoZ0Ck2tOQYW8vu95bQH+rGi5PFitD6cqCpLPfWxsoRXtQzl4Claa+pJlOEilry+6OxLGb/alwKqJyUhEtsCyr2Gta81mayAGXYglA2nSuYe41lBX7H7sHBoypMPf0Rno4uWn9JvQvLMPaE+krUBDFw0w3Quc0GUaaJw0Nbc2UxW1ojrZjSmRX3Fnxc1xXcSZKN2VjxokP4yD6P9cdchtW6MNPKfrH3a/jgOzdUVfdgLoG2dpJpA3MIj7YAq1hJPwJlE4ahM6qZkTXaN4YuUnf4zSTKck81IKShKuS3abZRJSzC+UfWeFgW0r179vmxLdDzjYsyvRKT9rdpC9mcRhm1mchlI14leYNARDPJIDLMXaPB9nwGahq7sSiTa1mtOnCl5fgwU/W49EFG3DtWyuxsr7NfClxXEkmNHf4r7sPg68rYsy4GEEX5T0xCg2BJcp4ji8TE7BY/RA1bunk7vIoj8Dh15rBCwaY8G9D+ppEUvPLGj5SS9hAsm6y+lF73KMNxv5wGvmsy8TrbkfLi3r+phaVK1CxT3d5RaGOBjMIukVpicdoUpaYvwLJaCcDaFdSByZ9Rcimz9VQNScV01LFoHJUYwPNH9ojZGbh2XQef9Itmr6hVDWB0U5ZkOWnIjlayOlkhQoo1mCTxtHYvAWOTc8BngYdl2IdTrz1BN711dSvXz/U1Ffj+7efgIVtS00HRyNkJ5pJRdn5WFi7Aj6XH4FkAPWxdmwI1yIrkY7jMQk3Fv0Ufyg7B7mf+XDx1GvxA9dPcMsRdyD8R0pqrwuZ+VnIKaVfQ60Va2dJGZZkG3Uu70Dr/Hpk9MuEr5DtIouuiyJPJk+QXWHGYrWkgNVkujwcRcaESchsY/3UJvZ/3zbbimwvOvK2tQSiKLIrrHkhDZMStnizqgHlBTTPaHp76K96uSGSj6G7vMGwbNw+dy2uJkjMyqJaPSf1lbe31tTj4c834KBBhRRAnfjT/mORmwgbgFgTjf3G8qt6GnqOxhlmfCMCmO0eiUaRN7nSFoKkMon5cs54C/EmlSdVwG9JAo9JWMSyJRv+ZI9NG9g8Jkw7gl5Ns+E7caxKYluRHEktq9bUgNOwQfrOajdFWxcjTTOdeqKGx1H3UIImbaSdT6cPw9DJcnnzkJHtQlfVpyaek/nZp52Ht/EaQaGpmLJzqXYZLgaXBlqPTWT8GP/Xm4UjNqCORdEKiRYo1gLWXWQo/pd9q+4WWKzG0bFCUkzBI03k1AyBoqGaNPnVJGmWjLtQUVqKZcxdk5TDtLs1UtTa0YnKjAGYV7MYvjTCmVXSEGkwSE8gziZNtKEwlI2jI/vigdyLcWbRNDR/2oxD/XuhJdSGcCiKcCvtLPr4hjnY2LGWGDz9/fCVBhBtYg2dRdCpjZJ0/vWcJ9gRRUYwC48k/27KqFecTZ0j1DRMQ68EaGmnHdv09gdbkALB3q8PZbWhaK+UeWbI9tnK0CL4KRn1cV9KR4Z4KUkDKC7fSCZjfbTsr94w1dI+krBsEw0HCzxtoQj+Mv9LHFXJtm9swbUHjkNWiD1CjaJNGiWq4Wcf+8qnMAKK5ppG1iKRGNLz800ZHP6ROekbvD88BQS3ERg7mZhNUp89cU5ImrbTf9/RZpqS+E/8KRNSmkVncZnP/MloPPiUk8094g3hxN25zCzpvQVmeJKZO4xxAiNNQCLChvQEkHTnISu7xA7niVhpMeSAkgHEazWlpT4cqgU2rKbQy2lfMnwXDDaIFRz0pbMxGGo6VVP/7WwCFUCAUIW0vrPBujlWEzoGnwWOikrgepRLDJ2NX/+CkKZ8O/OHAiUBuMm8+hyDHF2tzql0ytPLGeZBmNonQc/WQJjOfYxMbvyfSBfqom2oaC/Gz1oOM058JEEmIADk5GqtAznNMd4rKRvXQ1dtNLXiUbaGmE5xmG+omQytKTTBBD6AFUBtLMXv3B9i2H670R+IYcCwcei/30h27Ki+b4xfMWY3MmAeBuy+G89HobxyJIpGDzN5iBwTI2L6Kx1pNBvTKJbT6EukUdvEg4UYPvwzCgGKPWMycWMdwTbcDBy2TSfL/3mtZirH8e6Q/uigLyRhE2Ezm5Ey7Rkvyvw0qmYAY3ycONyZW/ot6hmVKnDYrWyTllTITiQlLhOt7eXNSTs57F0xCXnFecgvKUF+UQEKCgqQn1ZI3ggj26cPyBAMZQWGz+X9NzXRPGVafropqaa0xGN3+iC43Vm7mnZCaBlBI+ngRnrOSAIHqF165xZVO+aHR+ND6hu9J6P5tLZpY8gliFrJElrbbD4+x+N4AXfhGV6JGwDVEW6O7yL2tfdJ42ivzGWsCSzW5FAMLX2bHtegLx39z79+lnOYjOqXM0ZaV1eDmmijGf2NsePXNK+iI+9GrJPGIEEUI1C6qGVCrZTWAlaI+YfY2TSp4l10G+NhNCQ6TLg+WKQPFcVodiV5n0bQEgonI8XpM8kE0zsm5rkHfZguSugwmaazg/eTkT5yLTRlcuizRD0G7jsGsbQkBuy7J/rtO47b2L5v+4xDxcQJyBpSivJJ401Y+YRx9LW0cImllOygFqEzmzLNfNQ26QSOT1vCj0GDatg4vEMAMcDhXtNWxAwCUAo46zuD8ApUzW24bv8xKOyU1Ga9tTFOVEKF95qBAe0NgJiELUEPIgfwmn/MyUjKUdpc2p1Hpt6dTnuLkyyNOeJAgqUYRQSNpkkVFtjXQaLs50xfOn5wypaLN66a/xC07DertCVRpujBqufq62ZcFVtzG+3adHgLj2XbtREOEXTQyapt9KNy3EkGbVKzkWAEdzx/G6biaJpOtO/5X+ZaM7VJAaGjb9PU80zDvvJwPiaAigkbfeVZExWtJSljTmSf8ljjzjH1rCckj8jGdCFW6sIXs5bhoPMP0E3bpZbmRpSWluFfj78L//MRDHKVm4/1qBO19JQ62vyRKeTvUCCaemniYIyb+SgQyyGtpweAYiKa6DxnGVV/RjZ8xRPZ0q4wy5pgCanPXQnWhOkaA5QaLhy0GmlxbC0exNNYgu7BhZ+Cmn1eDQZOm4jnfv4LVM+h1zZn3g5tq+a/j2x/EeY8+DA2zvkMi5f+EwdcdSlTZ0FJxiQi5971xWsozcyGllWSKZakFDVT5mWDEDg+XxhNNZSOmtovkJgKas9EWB/1jwEMjzV1pCErE2NrG+CjaajRsoTbijytqikWjTNMz1D0VbLAmIEYduAYAxTHRFMb6jjRuhSJ5sXsaB/bj/mIIXifeQGN2ooZm+FeMYPZ61xtrkScMJK5b6t90jcc7vxpPOhui3lvv4Z3/vEc6uvqUd1QhZqmGmzo3IARFcPw6ooP8f2LL8WQ8SqrjT/rmaswfuhq5GbZpnBIb5H6RsxgEbT6hzQpEaoRtKRGgLImYWgFsHROallSNQlTPPXk08zZBhpkmeZVAT0fCFMrygDTfIF084KWbG5mbz4Z+DI1k+JVU98olppZdqXYU/8FFcUWy9ljSi7bFcYcKqnNwcZlVZj3jy0l9tY0YOAgs3/u0pfobA9CM8WZNJdhBOarUR/BPJqUVpN5qPXw7bHVcup2/QQTWb/6r3tVSpVJJWcH+whkjcxJ09CcMeYdtZA0WrSeZhnt6pauVtbeR5GxBkfgKLZD6oEx6TAMQyKXup8d7zer0mRz3/fNxs+hJS1DWZ/pUJheR+5JZC+mn01zysv+3PyZcR7r3E3NE4n7kDN4lZ3yY4DCNpfGMZpGb1Ym4VG4zll3j+zRzg7cSB+hiNrGPNRk99lnM6k25D0SUppu09hgH1lsQQIVd/5hev+fHGixtHMp/EnqQF6zpdz8fqy9vGO9W2xXu9A+EY+iidennvYjw98Obfj8dRTR6FLNN5MuExpaLcdg1pMzgiZHC/2zdqI4nVpnINVZNm18Xmx91kzHcBI9+bTp+CvuJWi0dKym3iQIjRysxnqMo2cjzaOYYjjJbq0V8DLeRRlZRz6OkfiMYX0Yhy1to4s5bZiAZdlY7uvAvAr8+eh78cBJqSHFXihCM+J416mYXLebAYTMP6UkYMgzkk9jIaHcBBrlIpBqb51qxQ3xPGjCdZ8FmnG8eVxHPVoTraaPxDtlkpFh5JtE/UyP4NF8us54J7qSQSxleyjlRmre43GsKeNJbJ9W5UxG1PcflabRTjuw2VbhffS37Lk0ghW9zrv9oiDFYrqbGp9mmddNrcLN7u1bs5o4+ekxM3DFUUMJhlA3YNjPmqziEmAYpkEil0YDWU8P0+/0uDF7cAk81CYaRTOf5GN+eucuSrNULBP3uFBTp3WXeyfvmOmg9UvayahRclHBIHWc0nCZWVodyZntaPlS7djV0o5TT/qBiSP+lgZeseApDGWTBLbyZ3Tsybb+v2ltd/mZRtAk2+ZQvRUYUyNQdDgmjgNmvXiPiejg9pYb6cgxy1rqmxzqFXWdGG4gYVFNptI3N7XQt0bOVDiRPoO+DhvJjJQuTMcZNtWXQ2y32/8aHHBYQ/8t48ZR0OLHLhkD8dmbS/F9148xY9o9eOriZ7CU50//6u/4edEv8bOsS3Cshw4fNaDGlMT4Ao8Fr7HAea6fBYg9Vw6W2fWz8bS3mwN9NbCAo28AmzhsQcP4UcKR/k2kjRv9Hj2/aKTsSmfLzCNssihYvqA4eSH1GsBYahzNatYKlJqNbaFtgdzXTfEN3MjUTpieaG1NraEuBLwWNB5qF+PXSNp60rC+vRWzjv2liXfdyfsCVWQ0lkmLHXmZrpkcy72bIEnqA6+85iHIfAxPI8DuGzcCeRp+p2mlPjTlkABRu3Cv9pEv1BuJt6TpbJF7cOXOokQKND1InzsRJ1ius22unL/87HNccIudt+aYkB+9fifGj+K5lUPdxCZxl//UHJpL3vJLzMs98cYnzIxnDT+7in6MkbR4Pp01y0Q0qpWNUVZWhuEjhuFRuvpamCKTpoGKIYksT0ZMq2c5eg/esmvc+DirCCnJexXWynzLqDpWiSjbzF6wEsNadpCJliAAYsjq8qKyqQC7+3dB/aw6zL1nAW4/9F4svfkLDGsswaHYEwXxIrK27pTss3koFScNxwxTuoojWEj3qfxqVF23MBJYHfPNaj35Wzmsa4A11MNJhansui6tpVGjGlQxnAxDnSTf6FVqWL2zWU0Rk0kuGUW9qzYwH1OlzyMd212ivm1OfIG2O8wKp56k9tRrzx4a+hoEkInm1SNuNs3Uil3h9/rYn/a+c07Yg5ItbLSLACPfwxtjGxktkkC6QENtI+fOaKBgCFftPwbF7Z12CJppmFE0bub5EePXatGN3ijFnC6tfqq0djbRJ9+a8vv3M32kthM/qFayK4btMxE5FXqNmvVKlat6yYdgdKtETIglTbgWTkSb8eTOH4x4kz7bTRHARkZgJAqLi1BB4Cx760JTVyeR116xrx3Pwxx6MIU8sgyvtWdq0IDxtNv12q9lW3tfAxlJskxh+tnuUKeLgRVH7Cs2kiFlr1iW17nWDLMMnB7xUMqlY0iomOZgJcqTeUZoyYfQl/WVigWO4lvQSrfZD7XLdLS+koBktY41yQQCG9+CTpvDzvqvUmiakS2XA2sLHJl/DYl6Axg/Bckc6pcvCaA0CpC5PBOdQz1TZSYP8k4KpTi1lE3FdqbNqfv86zb5U5uP+duaGsNBpGsipJHqbCG30TM0H2M4dQS1iyH1WxJ3n30wsLHBgEImmIvA0esYAk+a0TYy0wQom2NmJIpNael4YPxQFLbTfmBc48swrRBNnAC106IcPQTflixrsjj6MpzzNtnOJG+3/+hQw7qNhtFVdv3Uo+u5v+D5J811x/V4+bGzMXmSNc1Y7c1lFYDcudZnFm0GjW/ITVIBiNczIS2iFw/B3/8iHLAn8Pyjd6Rikf0o4YYMGYLJ+0/GLLxINvJR9haTbSRvtN5ZIQtUQ7k/Av1QwQzcZEra14RUV0pG24LbDrNdrjlsaWQ3DWR7WAwxqRjSOo5WN1mJLibX3UqHcs7ARFZ9A6W5xuAs01vASNLmknFbGOtjLMLbZOEVWMtYWks6zeSsEtg7ullQx8rDXrFaVD+BQ3eoNAKdtFELfRYttyvgdTC0xjx/7iRo1pulmj4jgFTTcTRZtYiIyZGdpBEmCxPVJYxNNOc2Mq4eVDrhX7WZ5Yk2n2+raTSLWZ+a98uX0Y++jJvHLZEI9u0/bDOjpHY45/t7I97JWjFdaQwf+9lHkOh7QTLTVGa1TprBZxIZ4RAW5efh/vHDUBTUczTWh+BJj0WwoCALGZm9g8Yht2ZypjTdTiPVxUs14RynqK2d/jr3TnuF2EdTJ09BWmmR4Wfzvg7p01fuw5gtJwZYImv7htycOukBGncRHSIKpfgmgsdXwcRpk5acgeI8oLIS+OLNc8zTUkeNzX5vttk/gjuobYpSo2lq8AihUmoYZzi9m3yaaYMYksUY8oucgtu4tsO1DNJcMsy/sJD3taUYWtcERf2XBrLmjMKtZhBUrB4T8+pqFdlOTJdmdF6m+aDUXzATT9CreId68UMswEcEzzN4HS/jPeajMkv76ZmTnH7B0modHWvOkvwekQCjYfYONnibeSqluWwNrKX9VrUAo08jvo1PjFYTZDearwgA36fmFXAtKFljzQgOW/iHeX/eLhW4KVmDm5N12PO8HzBu7ea429v0TMg5VhttTUFe92oBP4kOgkeDAKIDy60z64DGErXN+YdT29CsZPemye8geLRCpvby1TwsczobWWXXe/3p8STyCMD1FMu/mbQ7FhbnojngxfzSXDwxuBzDJa6/gpL/jlkBonQ7h0x1cuoYDLWRV9THlqv0IvTds98118TO2p6991QcMpW3S8v0bE4moWQMPlK0GTQi/5BLaRJSTbfNhcuTx+TD8A+4AlP3BmY+eK+NxBycwrzyyis0uqqxkgyfT6AoOekGAUdPZ8ROUyhjxYptZK8A2bmdzCOgSFoLBDKa5lLKNpIRlzClv+ENaoXFhJocesUUYwhg1i23ct6Gy4EXYFQznUt7aZtPYNxFqLxD0CzHOuapxZWkG2JYQw3QxhAB4DmCpwNiUXkdNQYGtaxRI7cm/ppZJoXV8ZrOBRetKKMBAZl2Kp+0kPSn0mtgDE1p1bd4DsReeIXpiw6g0JBWtHVhDch0cX2indeaqWPOXP6MiSc65M5fIT+vgila8633TZqmGzT6bU1tZGifTDOCxSzTSN8mkfRgz9LUbN6U8BM5+LnpgiNYoA5jnmmJJflNSj+NwPFSw2gJKy/D0/XGY+qZTjp9nVz6OB9Qaj82ZBDeKSpAZicFZrmes/dCqczc2f15vG25vxUxOXdguD3urh7WrbOLpItL1rCPnvrnayZcfCwto1e2V815HGP1naoe94lkQforndcOLG0BGk/lLeamyMrTadgNYSt1wTXgl8jNcePwg4Bnbh5uyqJ6S60dccQR2G/Sfvg79Y3MqnyaIGIloVqdrmXPZaodir1xGPY190rbWLYX+1s2YopknhajYTTbQNrgWbJ8PmW37TbpJf0EEgsQ6+FYs0ojZWKhbN77NjXKPEJFz4WkQ7Twn0jxxOAy2eRvaL3pDrL/RppW6kYLYVtCCz7lacupEqp7lYb1fey8MQuYKKGljzLpK2/SNT48QP12Ha6l/vVBSywqrspnmF0/MlssKk2j5Wq3XdAhd0wFr3WDYutN/61Po/TUCsZm2oLamH46NY0ZYjYjaD50keH3LBlorm/FGwRUEpf/aH8z/CywCNiyC9JN9zAfgiSN9/sZrvy1+Dkjmjh68JkejSGL2jMjRg7gvpQOtsixTDaThC533oIhxBy1+NbXvykpGTJ4Mo+Maoiclkp7yay32D80TQmYqfseiH2POszwryP8//iLcvzgWBpYW2sZkgYAPJW3ps4sbQEaUdroGYg3rkay6S1qm1wkYi3wj3gRY2mi1VetwpcLnjLj2SqQMv7g/Q9QVFaI23AlfRsZamUsuyZq6tubIZ4VkzEbzARODUmblV3YbGJ5dbik9q506O2XBjR3Td/BycIqaohnaUIFGF9hYl/LNNZ8sozczdZ61PcuwSaJv4a5abxIzOTko3gWDspdQxK26o1sSAsYpWL9GXuPhU13Dvaa9rousIjtVX67dkKceXrxW1xj0t2PLXEL9ey+9OzaTImtkDBpkAFjEWk+PRwOYfXrH5h7RJH6Dsyf/TKP7JpqvW80s8mcPcMcsmwAhBPUL8b598ND80wjaHpLc2SBRkedWN3ksO7c+85CdE0tc6cVYEbQxInsE2OqETA8lhbS4n4eF9Mxc+7YG7ym2QNq40hLJ46aNDqVYu/kn3g5kpqCtrOIRZHicmfsu5nzHVB8sG4VeyCIQFk5/vzh24Zvxb96/viPmbdjt4palLNZtoZvIkw8jJqROuumbUDj7n++WQc8svQYuNLprPHOZMF3kFF+PL53KPDwH37EMKpwZqpNBauvbkBWcYD65k463vr+s57TOM9kopS+mTTe8jCYrrGcYckqPRMQ41tJGaMxo6++7EKIaLpNhP+9NNbW0FD7kh3v5V0WMmJl/XSPtI7MMwF0GUHWRhbWbGvrU9jYVitpHzP+hyaQDsQAc08X7+5HoKtMMiFVMqsTpMc0qiYD1R47GkajeNIwjuMvBpZXlkWD8gZYZ3EKSujHDGfJW1imkCmvyuH8zFBuyOaUwxLcdvjReOjQH2Pm6ZfgwpIBbMHKHrG386MJ1ePM5GsoxShhSn45/lr1UiOLSZpqGT7NdWd5ewGNSFOE9hpRgYMO3BXBDtbQRWFEgGTo3R9ypFnUj+da5M+VJIvRNFPdBCIPw7RmmdJAVxCVA0s2M+3WZM0ignrALmR06zN+a2ITuPrb5ygOCRTL3vyQ3MDLxWV4rXrT5ry11TU0Y9W/LsKUfXgvkdCzuDrWtBx3xfmpkG7aBjSi9L1WIU7bNrbuRrjTKtgDNXCNfAp5uWk4/STgmtOzbURm7FB7HY2dgU10sF8kAwXY8dI4cvUty4i9tMnr6WZ/HcnJ1pGAM4K+wN6Ez65kpXKeDTXriVk9IYAJLM7dOrdGGqvIWE0El4smYT+mFyZAOsiu1vdQLEluPXadgN1YBq8BzF4YxWON1jnjdNbMsZrFllukY4VZDWfzlBmqkviMUZiJf+Al6sX3TfyjMIi61XlbUPc4P+kEG6IHo0pVqRUx/so3P8HCR1+lXq408brv6f0XjasU3edbUwNBmU6g6B0a+TYu+jOVOVtO19+aFCymmnXbT8wETS81k7SHSqMRNAFG7rQGAjTVRvjQw1CByICFJdIi88dOs0Pa2wONcteVjONfRLw+tAUffWPqIjMPud8mzPScvB9/6E4MzCvArLpqXrJhqr/e5Ljr5wU4lfycRlRtXdSkvsRCHPRGvYIGgaFIG34iwkt+TZuukS2TjWS0Fv4JK6CvLhxzMHDDz/JN5UUqoLamdS3od0o6PsCHtNSzyQz9DYPKGBNTis201+aYFOpw6SNpg1ayugyKXagJDiJ7j8NITOZ/mUBiEAsY61uI0R321hjXMDrbTZTr0iaj+BtDcOzK+4eSIQfreQ7ZUc9ZxOwTGFvpigU6DaysvyOdIK0jcCgvgVyazNmUr4wqDQaQjSjBsikgcujuv4F76ceILmOuLeZOW2Klo//2lwqhEx8NK0XLkIK17Qpp1O7Yvf+UBu+LCW5ODpYcCSqqo3Nuhptplgk4mhWQp3WVSdtj5p4Unn0T2pau41ECnpR2MWuB8lgahTYmASPTjefsFIFKBy1ra/H7S79n0tgeOEUqg7doJPx7/ACJru7lZb8JGb9j2NWpkxQwtIAgqeqTRXiludHWmX9Oma47zY2f/BDICmy+ZTNJ+fkqiCbioDfqHTQk78inhRWEP6mAy19iIiboWGbs8R6G9QcO3rsFN55btrmjVCjZiq899i9cP/8yMtGf2JkJ8wwnnf8lm+WYS74KNjp2JLg21UjnGkrWSJecaz1NFxN1S36BzJo1Ao/zxEf/9YxnKrXUroSInH994qOUppcAOIzg3YNX9iOU9iCgpJHa+VOZxBRiPeWgtK0mEENathfIdKT/FkQRpq5ZDxnUpkV4FA/j/hRgLmduukcaTjE1XL3tj6agHmySqRVDEN2RnxM/GpFXpcGIkDENHXIAURdke5tZxFrFQc9ofBgU2FYj9UbqR60wWvvJn9H4+TqmScEmUMgkZPrybTysJ4OJE/oHRtNo/l0Uu40ejPGjBpk0vorEuoqTOW0mXNmDgCBF+zcBDsvgyqiEa9DvlKBNWMRyasDl4VVfmHzULoZPeen3P87EGSckUcZm2zpHNZ/LRw096qlUyLbkYmK2lbdDXa+wyUvHUyIsoNdKyePOhqtjProWHoJlPH35/Sxc+aDW8LKNIJItKbr+ij/g1RvmkGmHkokzyaaN7O4g2dtP5tJAqK2EAGOnEdonLzLhlIIdwLbftbGOu2LLoLLXnCrLP9G54unITDg0sewdOpZMt6Wz9znSwt7rHClGdzM6OdorKrGHeiWf6fspBnLxIMHyLt6Gz+PFXQOOQrtxmlNCxKSwLYnJ0gsyMfh7Y7H4lnfgy//qh4C9kR5Clu0/DHUff2mYOG9gP5z50UOWoRWB+f/g1XcwICfD5Kfp+p0xF6YWdeDE3Q42/eRI3O2R2EL92N4ZQs4eF8Cfm4nc7AC1DuuoNG0ka6rxT7O+G75Yi2S7/ebO17DVZnLy6XrlRMSW/A3uMgbKl+Cmz3eYPSultThU4qRG0RWmmynzPEVj4NnjsxRgtq2TUw6TB+Nff5oLZ/4AKC3mvYy+dSm1pnrGYV9d9q8FTbJrMYJvjYFv0PfgHfMMgbMeLi9ttM5lCM3fB+vraTc+D5z/500oLS1nIbsZz+mYp656HjOvfomyXxogg8JBM8E0UKABYLYA46sQiq2HcTpyQCEm0JGgolh2wXEdCRgWKI7usvdrryPLQAq3adswe5dzbkkxBAn9nHLYq0rfawYW5PUIKJoetBALCJd7aBZ2Upv5MJ0moGYm9IWkifLzSrDPaYfjhdvvY2vYVyz6SiqXRiVH77U3ln0yj6nFsfc5x+Bnd99nwCDmWFjfjPuWrESWlhUiaXRrY7wcd/d/AAXDrtphhhZdcP1TuPOPf4e3ohgZ6T4KCrYWtY/ejG1taTcPO1uWPYy0NM1p25EadeeTaFmO4D/2I+PSP9XbDvQ1qCgNUIxTrrhqAGkXnnj3fhHuoqO/EjDiQW1z5y3BrBmjcfqJQEGOvX/rYsY7aJFN/pyaa7dUSO/0taARJer+itBH0+EbcR63O6lKvyR3ZppMo/NHoamxCX99ERh54G9w5PTUB4RUEZLT6KIV76zCe3/7GG/eM5tueifbRBJcw8WS3fZbK2JyqzFYOHNdcBEAuoGkTTEdQIg1pInE+lYPiXTVNLO5QyTICHo2Df3X3U4c+Sg2VQFTvo6MIQ2TL8EanIwTsIH7F/E81oL1Jx1O03MMjTR9GFHpKNWva0xprLzCAuz5wwPxyp1PwH7CpO+kPDTNfdSeE7D8089YkjV4bNFKlI4dthk0T6xYj3kNLfAzsjVefciKLsVVwz5BsvwmBu5IjpYcAXjvzHcw+6MlWLB8I7qCYew+rBwnHLkPTj5ukrm+o4BxyDA4y65c4h3rEF86A/G6fwEdi8wDRn3t2ZU9Gp6Sw+DudzBcBUfYG78CMA7vPXQ7+XbT3fgub8lI7736elUhbdzjcJfatQK+ivoEGlGi5mGEPv0JfAOPhG/sy9Q4m9ghlL/+/kisOh9d6+7DnMXAh9SUZ179OcoHWrTaUZVuxPekOQ/Nw4Y11Vi9gF2/cDWqq6rIoo1sOOkbsb/gI0bRfQrtBpM96tYs+llQWJ1kzy0r6yefyKamWErDwsXqNq3ZFcUqbDQs1mAGryMGQvp0uWC8Ad1ro6lmeq4u3aK0KAjN3kl3e+TEKWCq++03Fc9++ApBs+OkfHcNDMTS4HpcevOdOOKy8wyTOIxywXuLke2X8JBI8qDONRwPt9FoPbCRHq6+FaNS7Bj1ZMLeqC8mX1/ItGFf0umlDjaou5zz583FS3dMxNEHAKNGsJ8YbNhxKzKAGXM/wbjlkPX2qM+gESWa/ongnO/CWzgYaRMpbeMtSIQbqEYL4e5aisiSI1FX04qX3+alnNH4/nl/R3E/Z66T+W8avzcA/R99c3K6UG26sqUTMxZvQJ7fi3ZXMbzJEG6JlOlL5vAdzHjbkcw7Qk4fps64/Rv6UnXqrZxbhaeqbsrjBK9auQjP33U8KnPX4ID9Abp25poTtycl6MOkje+bhnFoh0AjSoZWI/j2MPPhUP/u8+DOmYBEaC3t2yhc6f2A2scRXHMJqjYF8fp7jJ9RgH2nXYsJB6Q+iUAyGaaytR2go54NkeqU7qB/K0kTiawO6p264zj/v2XhVH+nl78Jbe427lOHMm8u/6QWUXcBYi4fTgqfi0nxe6gzSfmnwzf64Z0Cmv9J6gnYbuBamvPmXZj9wmUoywzi4AOp0fNoR0i7WE9hCzLjF130YSZ9Blem/ap1X2mHQeNQeDZNnk6qvMFnwT+CTmi0Ca6wXQbKpSkFTc8hvPFGVK/bhEUrgIU023bZewr2mvJdDBpzKnzp+gDS/9HOpN8todnY/jdMST6JEdGXjP0ZEl+xn/xTNsKVpkmSW3b31oz3v4m6QgmsnHMLFsx5CRs++xB7TwTG0rApzJUAscDojbn1HMZNWy1tct+G4LembwwaUXzZyQitftJMu/EPfwDu/mcAwbUsbCtc+n6+n95b1zIkGh5DZ81z2LA+gi9WA9X1tMtpLuQPHIxBu0xDRl4J3P5i5BYMRHp2P6Rn9WMa9Jd8hezjb1ax/y0klk3GtNaztcO/jswzk3gTEGuAK7iSDNAAf3Qt23kmilxEB10Zux4ZU+RejOPy7w7/3vTJttEyLtQwKYX8V2KHZerQ26FxN9qaqxEL1aKtcTE2rvgAbRueRVqkA2QhjB4OlBQC6X5WUdzMrTemFqcn2ERpA6fDM/KJVOiO07cCjaHgKkTmDjcg8GbnwDf0ETMMmIhVwxWqZiWiZoatGTMMLwNaXkOw6T10tqxDSwvQTJuS7YJQmElxi1AKaL0yp/L/nyfDsfawL6RR5ABt9DwKqmxK1FL69UVFbHuGO1ZIz+S0jn364WxIBfaiZR46l8KNpvYOFOE/RgK9FuzzkX30TluAWw7lcF4OkEvTSyNhPg1Js1qqWW9mmMhcI0+pjfx7ruSN3QsrfhP69qBxaOPdiCw+z6z368nww9vvl/CUn2N7I1xFtdSGRDxo3uvQ0ylXnIhROIGUCH4OV7QesUgVklGiSCXifWanPTcjCVPh/5U9/J8g1l/tYAaHUr0m4bJdZmFTevd8F57CKTai027qciYSWfcXYN3PqIlS4f+NZIu6eW+qwU1V7ml+qUpba0td00wfb5BgGX0XUNHtV38b2nmgcWj1LxBd82ezpI9MBU/envCVnQ1Xzr7G30lG66hKuMkhYo3Mx0fNfAw9TY/CRZGQ0FOmWBuSejyreEkeJ1hztVKsjlJj2TYN9H+0JSXaKIXHzYSn3w9SnJa6kCJpmdCb1DJ24vP/KjIMqyr1wgO6ZjhamoXs4qu8CBiaWhh9J9HOB41DdTMRX/1LxFrXIU7w6GGGO2sIPDnfgTvnQLjSK9mPLuKAoIg2c0+gECBJgSjexT2tcgJJn1QQqMy5moQOVLzlJbgiy7dhhP8jtpCajQyTNnkpXBn0irfpXp7rbcUlP0Si8WljNf9vJqd2RutQ9nrkJuQMhmfojXR0tvwA2M6ifx9oetKGm5Gouh/x9lVmgXp9FEijG670DLgDow2A3GnsYH8xw/W4T48b41THLFoywn7XJJcIzRDNLaZZUXMzgbXl93P+/0YyycQohtRMBIrIN/QaeCuvtMzUC2DMIhKhJYh8wHb/L9YyKrrxax3qcWyqxc2ARCNhsmiyhtt1yQZcbiP9G+k/A5qeFK4G2j6kvb0Qya4v6M8spjnWTCQ101rTawIkNkIi7kd9SzobiCfUwy6XnruT4g3ma16JHnb91uQooK0vK1xhXnqYmqkgnttRZaX7NdFviw7dAdJtKrpH0t4Igx0nAaagpBzpOf2RSNuNynck3IXT4Mnc1da5F3NMJJOstXYjml8bgLRcNiXT+TZtoDcEduheRna4TW0g80ppbE2Kk5MFswi/46/p42MuTRbW154DrC83V/Y4RtyPajW1As1/hID/B20xWBz8S3gtAAAAAElFTkSuQmCC\";\n $info = getimagesize($pic);\n $pdf->Image($pic, 10, 3,($info[0]/10), ($info[1]/10), 'png');\n $pdf->Line(10, 27, 210-20, 27); \n // $pdf->Image($pic,10,8,15);\n // Arial bold 15\n $pdf->SetFont('Arial','B',18);\n // Movernos a la derecha\n $pdf->Cell(80);\n // Título\n $pdf->Cell(30,10,'INFORME EVALUACION INFANTIL',0,0,'C');\n // Salto de línea\n $pdf->Ln(20);\n\n $pdf->SetFont('Times','',12);\n // $pdf->Cell(0,10,'Nombre: '. ucfirst(strtolower ($param['alumno'][0]['nombre'])) . \" \" . ucfirst(strtolower ($param['alumno'][0]['apellido1'])) .\" \" . ucfirst(strtolower ($param['alumno'][0]['apellido2'])),0,1);\n $pdf->Cell(0,10, iconv('UTF-8', 'windows-1252', \"Evaluación: \"). $param['informe'][0]['trimestre'] . iconv('UTF-8', 'windows-1252', \" ª\"),0,1);\n $pdf->Cell(0,10,'Tutor: '.ucfirst(strtolower ( $_SESSION['usuario']['nombre'] )).\" \" . ucfirst(strtolower ($_SESSION['usuario']['apellido1'])) . \" \" .ucfirst(strtolower ( $_SESSION['usuario']['apellido2'])),0,1);\n\n\n $pdf->Multicell(0,10, iconv('UTF-8', 'windows-1252',$param['informe'][0]['texto']),0,1);\n $pdf->Output();\n \n\t\t//$this->load->view('pagePdf');\n }", "protected function create_pdf(stdClass $issuecert, $pdf = null, $isbulk = false) {\n global $CFG;\n\n // Check if certificate file is already exists, if issued has changes, it will recreated.\n if (empty($issuecert->haschange) && $this->issue_file_exists($issuecert) && !$isbulk) {\n return false;\n }\n\n if (empty($pdf)) {\n $pdf = $this->create_pdf_object();\n }\n\n $pdf->AddPage();\n\n // Getting certificare image.\n $fs = get_file_storage();\n\n // Get first page image file.\n if (!empty($this->get_instance()->certificateimage)) {\n // Prepare file record object.\n $fileinfo = self::get_certificate_image_fileinfo($this->context->id);\n $firstpageimagefile = $fs->get_file($fileinfo['contextid'], $fileinfo['component'],\n $fileinfo['filearea'],\n $fileinfo['itemid'], $fileinfo['filepath'],\n $this->get_instance()->certificateimage);\n // Read contents.\n if ($firstpageimagefile) {\n $tmpfilename = $firstpageimagefile->copy_content_to_temp(self::CERTIFICATE_COMPONENT_NAME, 'first_image_');\n $pdf->Image($tmpfilename, 0, 0, $this->get_instance()->width, $this->get_instance()->height);\n @unlink($tmpfilename);\n } else {\n print_error(get_string('filenotfound', 'simplecertificate', $this->get_instance()->certificateimage));\n }\n }\n\n // Writing text.\n $pdf->SetXY($this->get_instance()->certificatetextx, $this->get_instance()->certificatetexty);\n $pdf->writeHTMLCell(0, 0, '', '', $this->get_certificate_text($issuecert, $this->get_instance()->certificatetext), 0, 0, 0,\n true, 'C');\n\n // Print QR code in first page (if enable).\n if (!empty($this->get_instance()->qrcodefirstpage) && !empty($this->get_instance()->printqrcode)) {\n $this->print_qrcode($pdf, $issuecert->code);\n }\n\n if (!empty($this->get_instance()->enablesecondpage)) {\n $pdf->AddPage();\n if (!empty($this->get_instance()->secondimage)) {\n // Prepare file record object.\n $fileinfo = self::get_certificate_secondimage_fileinfo($this->context->id);\n // Get file.\n $secondimagefile = $fs->get_file($fileinfo['contextid'], $fileinfo['component'], $fileinfo['filearea'],\n $fileinfo['itemid'], $fileinfo['filepath'], $this->get_instance()->secondimage);\n\n // Read contents.\n if (!empty($secondimagefile)) {\n $tmpfilename = $secondimagefile->copy_content_to_temp(self::CERTIFICATE_COMPONENT_NAME, 'second_image_');\n $pdf->Image($tmpfilename, 0, 0, $this->get_instance()->width, $this->get_instance()->height);\n @unlink($tmpfilename);\n } else {\n print_error(get_string('filenotfound', 'simplecertificate', $this->get_instance()->secondimage));\n }\n }\n if (!empty($this->get_instance()->secondpagetext)) {\n $pdf->SetXY($this->get_instance()->secondpagex, $this->get_instance()->secondpagey);\n $pdf->writeHTMLCell(0, 0, '', '', $this->get_certificate_text($issuecert, $this->get_instance()->secondpagetext), 0,\n 0, 0, true, 'C');\n }\n }\n\n if (!empty($this->get_instance()->printqrcode) && empty($this->get_instance()->qrcodefirstpage)) {\n // Add certificade code using QRcode, in a new page (to print in the back).\n if (empty($this->get_instance()->enablesecondpage)) {\n // If secondpage is disabled, create one.\n $pdf->AddPage();\n }\n $this->print_qrcode($pdf, $issuecert->code);\n\n }\n return $pdf;\n }", "public function generate_pdf($html, $filename) {\n require_once(APPPATH . 'vendor/pdf/config/lang/eng.php');\n require_once(APPPATH . 'vendor/pdf/tcpdf.php');\n // create new PDF document\n //$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n $pdf = new TCPDF('L', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\n // set document information\n $pdf->SetCreator(PDF_CREATOR);\n // set header and footer fonts\n $pdf->setHeaderFont(Array(\n PDF_FONT_NAME_MAIN,\n '',\n PDF_FONT_SIZE_MAIN\n ));\n $pdf->setFooterFont(Array(\n PDF_FONT_NAME_DATA,\n '',\n PDF_FONT_SIZE_DATA\n ));\n // set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n //set margins\n //$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n //$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n //$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n //set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n //set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n //set some language-dependent strings\n $pdf->setLanguageArray($l);\n // ---------------------------------------------------------\n // set font\n //$pdf->SetFont('helvetica', '', 10); \n $pdf->AddPage();\n //$pdf->SetFont('helvetica', '', 8);\n # To support arabic fonts\n $pdf->SetFont('ufontscom_aealarabiya', '', 10);\n\n $pdf->writeHTML($html, true, false, false, false, '');\n // add a page\n // output the HTML content\n // reset pointer to the last page\n //Close and output PDF document\n ob_end_clean();\n $pdf->Output($filename . '.pdf', 'D');\n exit;\n }", "public function employee_pdf()\n {\n\n $this->load->view('backend/admin/employee/employee_pdf');\n }", "function ax_create_document() {\n\t$root = ax_indirect_dictionary('Root');\n\t$root['Pages'] = ax_indirect_dictionary('Pages');\n\t$info = ax_indirect_dictionary();\n\t$info['Creator'] = AX_ACROSTIX_CREATOR_STRING;\n\t$info['CreationDate'] = ax_date(time());\n\t$trailer = array();\n\t$trailer['Root'] =& $root;\n\t$trailer['Info'] =& $info;\t\n\t\n\t$doc_obj = new AxDocument;\n\t$doc_obj->pages = array();\n\t$doc_obj->info =& $info;\n\t$doc_obj->PDFStructure = $trailer;\t\n\treturn $doc_obj;\n}", "public function pdf() {\n\t\t$this->authorize('list', LeaveRequest::class);\n\n\t\t$leave_requests = $this->repo->print(request('filter'));\n\n\t\t$uuid = Str::uuid();\n\t\t$pdf = \\PDF::loadView('print.employee.leave.request', compact('leave_requests'))->save('../storage/app/downloads/' . $uuid . '.pdf');\n\n\t\treturn $uuid;\n\t}", "public function generatePDF()\n {\n \t$allclass = Classroom::all();\n\t\tview()->share('allclass',$allclass);\n \n $pdf = PDF::loadView('pdf.classallpdf');\n return $pdf->download('pdf.pdf');\n }", "function pdf() {\n if($this->active_invoice->isLoaded()) {\n if($this->active_invoice->canView($this->logged_user)) {\n InvoicePDFGenerator::download($this->active_invoice, Invoices::getInvoicePdfName($this->active_invoice));\n \tdie();\n } else {\n $this->response->forbidden();\n } // if\n } else {\n $this->response->notFound();\n } // if\n }", "function get_pdf_filename($reference)\n{\n\t$filename = $reference->pdf;\n\t\n\t$filename = str_replace('file://', '', $filename);\n\t$filename = preg_replace('/[#|\\?]page=-?\\d+$/', '', $filename);\n\t\n\treturn $filename;\n}", "function xh_createDocument()\r\n\t{\r\n\t}", "public function actionPdf($id) {\n $model = $this->findModel($id);\n\n $content = $this->renderAjax('_pdf', [\n 'model' => $model,\n ]);\n\n $pdf = Yii::$app->pdf;\n $pdf->content = $content;\n return $pdf->render();\n\n }", "protected function generatePDF($content, $filename, $config = [])\n {\n unset($config['contentBefore'], $config['contentAfter']);\n $config['filename'] = $filename;\n $config['methods']['SetAuthor'] = ['Krajee Solutions'];\n $config['methods']['SetCreator'] = ['Krajee Yii2 Grid Export Extension'];\n $config['content'] = $content;\n $pdf = new Pdf($config);\n echo $pdf->render();\n }", "function RESDONPDF($idon,$iddnr,$DATEDON)\n\t{\n\t$this->mysqlconnect();\n\t$sql = \"SELECT * FROM dnr WHERE id = \".$iddnr ;\n\t$requete = mysql_query( $sql ) ; \n\tif( $result = mysql_fetch_object( $requete ) )\n\t{\n\t$this->ENTETEBILANPDF();\n\t$this->SetDisplayMode('fullpage','single');//mode d affichage \n\t$this->AddPage('p','A5');\n\t$this->SetFont('Times','B',10);\n\t$this->SetTextColor(225,0,0); \n\t$this->RoundedRect(5, 2, 135, 24, 2, $style = '');\n\t$this->SetXY(5,2);$this->Cell(135,8,'Etablissement Public Hospitalier Ain-Oussera',0,1,'C');\n\t$this->SetXY(5,2+8);$this->Cell(135,8,'Poste De Transfusion Sanguine',0,1,'C');\n\t$this->SetXY(5,2+8+8);$this->Cell(135,8,'Resultat De La Qualification Biologique',0,1,'C');\n\t$this->Line(5, 30, 140, 30);\n\t$this->Image('../public/images/photos/LOGOAO.GIF',10,7,15,15,0);$this->Image('../public/images/photos/LOGOAO.GIF',120,7,15,15,0);$this->Image('../public/images/photos/grife.jpg',85,150,55,22,0);//85,143\n\t$this->SetTextColor(0,0,0);\n\t$this->SetFont('Arial','B',10);\n\t$this->RoundedRect(5, 35, 60, 42, 2, $style = '');\n\t$this->SetFillColor(255,246,143);//https://vela.astro.ulg.ac.be/Vela/Colors/rgb.html\n\t$this->RoundedRect(80, 35, 60, 42, 2, $style = '');\n\t$this->SetXY(82,40);$this->Cell(55,8,'Nom : '.$result->NOM,0,1,1,'r');\n\t$this->SetXY(82,48);$this->Cell(55,8,'Prenom : '.$result->PRENOM,0,1,1,'r');\n\t$d1=substr($result->DATENAISSANCE,6,4);$d2=substr(date('d/m/Y'),6,4);$d3=$d2-$d1;\n\t$this->SetXY(82,56);$this->Cell(55,8,'Age : '.$d3.\" Ans \",0,1,1,'r');\n\t$this->SetXY(82,56+8);$this->Cell(55,8,'Adresse : '.$result->ADRESSE,0,1,1,'r');\n\t$this->SetFont('Arial','B',8);\n\t$this->RoundedRect(5, 80, 135, 58, 2, $style = ''); \n\t$this->SetXY(6,85);$this->Cell(30,8,'Examens Demandes',1,1,'C'); \n\t$this->SetXY(36,85);$this->Cell(30,8,'Resultats',1,1,'C'); \n\t$this->SetXY(66,85);$this->Cell(40,8,'Valeurs de Référence',1,1,'C'); \n\t$this->SetXY(106,85);$this->Cell(32,8,'Anteriorités',1,1,'C'); \n\t$sql1 = \"SELECT * FROM don WHERE id = \".$idon ;\n\t$requete1 = mysql_query( $sql1 ) ; \n\tif( $result1 = mysql_fetch_object( $requete1 ) )\n\t{ \n\t$this->SetXY(5,40);$this->Cell(20,8,'Code Prelevement : ',0,1,'r');\n\t$idp=$result1->IDP;\n\t$this->Code39(33,40 ,$result1->IDP, $baseline=0.5, $height=5);\n\t$this->SetXY(5,48);$this->Cell(20,8,'Poids : '.$result1->POIDS.' '.'kg',0,1,'r');\n\t$this->SetXY(5,56);$this->Cell(20,8,'SYS/DIA : '.$result1->TAS.'/'.$result1->TAD.' '.'mmhg',0,1,'r');\n\t$this->SetXY(5,56+8);$this->Cell(20,8,'Date Prelevement : '.$this->dateUS2FR($result1->DATEDON),0,1,'r');\n\t$this->SetXY(6,85+8);$this->Cell(30,8,'Groupage Rhesus:',1,1,'r'); \n\t$this->SetXY(36,85+8);$this->Cell(30,8,$result1->GROUPAGE.'( '.trim($result1->RHESUS).' )',0,1,'C'); \n\t$this->SetXY(66,85+8);$this->Cell(40,8,'***',1,1,'C'); \n\t$this->SetXY(106,85+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8);$this->Cell(30,8,'HVB:',1,1,'r'); \n\t$this->SetXY(36,85+8+8);$this->Cell(30,8,trim(ucfirst($result1->HVB)),1,1,'C'); \n\t$this->SetXY(66,85+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n\t$this->SetXY(106,85+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8+8);$this->Cell(30,8,'HVC:',1,1,'r'); \n\t$this->SetXY(36,85+8+8+8);$this->Cell(30,8,trim(ucfirst($result1->HVC)),1,1,'C'); \n\t$this->SetXY(66,85+8+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n\t$this->SetXY(106,85+8+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8+8+8);$this->Cell(30,8,'HIV:',1,1,'r'); \n\t$this->SetXY(36,85+8+8+8+8);$this->Cell(30,8,trim(ucfirst($result1->HIV)),1,1,'C'); \n\t$this->SetXY(66,85+8+8+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n\t$this->SetXY(106,85+8+8+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8+8+8+8);$this->Cell(30,8,'VDRL:',1,1,'r'); \n\t$this->SetXY(36,85+8+8+8+8+8);$this->Cell(30,8,trim(ucfirst($result1->TPHA)),1,1,'C'); \n\t$this->SetXY(66,85+8+8+8+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n $this->SetXY(106,85+8+8+8+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t}\n\t$this->RoundedRect(5, 143, 55, 30, 2, $style = ''); \n\t$this->SetXY(5,143);$this->Cell(55,8,'Date: ',0,1,'C'); \n\t$this->SetXY(5,143+8);$this->Cell(55,8,date('d-m-Y'),0,1,'C'); \n\t$this->RoundedRect(85, 143, 55, 30, 2, $style = ''); \n\t$this->SetXY(85,143);$this->SetFont('Arial','B',8);$this->Cell(55,8,'La Structure De Transfusion Sanguine ',0,1,'C');\n\t$this->SetFillColor(220);\n\t$this->SetXY(5,176);$this->Cell(135,6,'NB: les resultats figurants ci dessus ne doivent etre consideres definitives ',0,0,1,'C');\n\t$this->SetXY(5,176+6);$this->Cell(135,6,'qu\\'apres une deuxieme qualification effectuee sur un second prelevement',0,0,1,'C');\n\t$this->Output();\n\t}\n\t}", "function outputPDF($mode=1,$save=\"invoice.pdf\"){\n\t// PARAM $mode : 1 = show in browser\n\t// 2 = force download (provide the file name in $save)\n\t// 3 = save on server (provide the absolute path and file name in $save)\n\t// $save : output filename\n\n\t\t// MPDF\n\t\trequire __DIR__ . DIRECTORY_SEPARATOR . \"MPDF\" . DIRECTORY_SEPARATOR . \"autoload.php\";\n\t\t$mpdf = new \\Mpdf\\Mpdf();\n\n\t\t// LOAD TEMPLATE FILE\n\t\t$file = $this->path_template . \"PDF\" . DIRECTORY_SEPARATOR . $this->template . \".php\";\n\t\tif (!file_exists($file)) { die(\"$file not found.\"); }\n\t\t$this->data = \"\";\n\t\trequire $file;\n\n\t\t// OUTPUT\n\t\tswitch ($mode) {\n\t\t\t// SHOW IN BROWSER\n\t\t\tdefault: case 1:\n\t\t\t\t$mpdf->Output();\n\t\t\t\tbreak;\n\n\t\t\t// FORCE DOWNLOAD\n\t\t\tcase 2:\n\t\t\t\t$mpdf->Output($save,'D');\n\t\t\t\tbreak;\n\n\t\t\t// SAVE FILE ON SERVER\n\t\t\tcase 3:\n\t\t\t\t$mpdf->Output($save);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function generate() {\n\t\tif (null === $this->getDocument())\n\t\t\tthrow new App_Pdf_Exception('Set document body!');\n\n\t\t$filename = $this->exec();\n\t\tif ($filename)\n\t\t\tif ($this->getForceDownload())\n\t\t\t\treturn $this->_outputFileToBrowser($filename);\n\t\t\telse\n\t\t\t\treturn $filename;\n\t}", "function getPDF(){\n $dompdf = new Dompdf();\n $dompdf->loadHtml($this->getTable());\n\n // (Optional) Setup the paper size and orientation\n $dompdf->setPaper('A2', 'landscape');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Output the generated PDF to Browser\n $dompdf->stream();\n }", "public function actionCreate()\n {\n $model = new Publication();\n\n\t\t \n\t\t\n\t\t\n if ($model->load(Yii::$app->request->post())) {\n\t\t\n\t\tif (Yii::$app->request->isPost) {\n\t\t\t\t$model->pdf = UploadedFile::getInstance($model, 'pdf');\n\n\t\tif(isset($model->pdf->baseName))\n\t\t{\n $model->pdf->saveAs('uploads/' . $model->pdf->baseName . '.' . $model->pdf->extension);\n\t\t\t\t$model->attributes=array('pdf'=>$model->pdf->baseName);\n\t\t}\n \n }\n\t\t\n\t\t\n\t\t $model->save();\n return $this->redirect(['view', 'id' => $model->ID]);\n\t\t\t\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "function pdfbulletin_generate_pdf_page($pdfbulletin) {\n pdfbulletin_generate_bulletin($pdfbulletin);\n return theme('pdfbulletin_generate_pdf_page', $pdfbulletin, $pdfbulletin->file->filepath, $pdfbulletin->html, $pdfbulletin->header_safe, $pdfbulletin->footer_safe);\n}" ]
[ "0.69424796", "0.6802906", "0.6450165", "0.64333785", "0.6400053", "0.6364733", "0.6356771", "0.63349926", "0.6298734", "0.6264982", "0.62442017", "0.6177744", "0.6168105", "0.61585844", "0.61494887", "0.61003417", "0.60900664", "0.6049555", "0.6009686", "0.5998726", "0.5986458", "0.5967259", "0.59424496", "0.5887067", "0.5864986", "0.58435243", "0.58338684", "0.57996255", "0.5796577", "0.5787064", "0.5783488", "0.5782721", "0.5773747", "0.5769257", "0.57684195", "0.5764579", "0.5758547", "0.57509017", "0.5724937", "0.57168776", "0.5713682", "0.57102036", "0.5709955", "0.57039815", "0.56980455", "0.5697796", "0.569062", "0.5690597", "0.56905246", "0.56555116", "0.56460166", "0.56315655", "0.5628266", "0.5619692", "0.56193286", "0.561798", "0.5617372", "0.5617372", "0.5617372", "0.5617372", "0.5617372", "0.561591", "0.561591", "0.561591", "0.561591", "0.561591", "0.561591", "0.5615155", "0.5615155", "0.5615155", "0.5609351", "0.5599579", "0.5590234", "0.5583303", "0.5579455", "0.5579145", "0.5572621", "0.5571654", "0.55634236", "0.55564255", "0.55495626", "0.554258", "0.55397105", "0.5527268", "0.5520558", "0.55197644", "0.5505969", "0.55049896", "0.55039215", "0.55024225", "0.5493984", "0.54920304", "0.5489997", "0.5480706", "0.5469765", "0.54695183", "0.5469288", "0.54670364", "0.5451857", "0.5443566" ]
0.6680586
2
setupHeaderMid The method adds the header for a middle page to the frame passed as argument.
function setupHeaderMid( $_frm) { $_frm->addLine( "Kommissionierung", $this->defParaFmt) ; $_frm->addLine( sprintf( "Kommission Nr. %s, %s", $this->myCustomerCommission->CustomerCommissionNo, $this->myCustomerCommission->Datum), $this->defParaFmt) ; /** * draw the separating line between the header and the document content */ $this->myfpdf->Line( $_frm->horOffs, $_frm->verOffs + $_frm->height + mmToPt( 1.0), $_frm->horOffs + $_frm->width, $_frm->verOffs + $_frm->height + mmToPt( 1.0)) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function\tsetupHeaderMid( $_frm) {\n\n\t\t$_frm->addLine( iconv( 'UTF-8', 'windows-1252//TRANSLIT', FTr::tr( \"Inventory\", null, $this->lang)), $this->defParaFmt) ;\n\t\t$_frm->addLine( iconv( 'UTF-8', 'windows-1252//TRANSLIT',\n\t\t\t\t\t\t\t\t\tFTr::tr( \"Inventory no. #1, Key date #2\",\n\t\t\t\t\t\t\t\t\t\t\tarray( \"%s:\".$this->myInv->InvNo, \"%s:\".$this->myInv->KeyDate),\n\t\t\t\t\t\t\t\t\t\t\t$this->lang)),\n\t\t\t\t\t\t\t\t\t$this->defParaFmt) ;\n\t\t\n\t\t/**\n\t\t * draw the separating line between the header and the document content\n\t\t */\n\t\t$this->myfpdf->Line( $_frm->horOffs, $_frm->verOffs + $_frm->height + mmToPt( 1.0),\n\t\t\t\t\t$_frm->horOffs + $_frm->width, $_frm->verOffs + $_frm->height + mmToPt( 1.0)) ;\n\t}", "public function prePageHeader();", "function blankMiddleBox($header,$subline,$body){\n\t\techo \"<div class='side-body-bg'>\\n\";\n\t\techo \"<span class='scapmain'>$header</span>\\n\";\n\t\techo \"<br />\\n\";\n\t\techo \"<span class='poster'>$subline</span>\\n\";\n\t\techo \"</div>\\n\";\n\t\techo \"<div class='tbl'>$body</div>\\n\";\n\t\techo \"<br />\\n\";\n\t}", "abstract protected function header();", "function NewPageHeader () {\n\tglobal $PageNumber,\n\t\t\t\t$pdf,\n\t\t\t\t$YPos,\n\t\t\t\t$YPos2,\n\t\t\t\t$YPos4,\n\t\t\t\t$Page_Height,\n\t\t\t\t$Page_Width,\n\t\t\t\t$Top_Margin,\n\t\t\t\t$FontSize,\n\t\t\t\t$Left_Margin,\n\t\t\t\t$XPos,\n\t\t\t\t$XPos2,\n\t\t\t\t$Right_Margin,\n\t\t\t\t$line_height;\n\t\t\t\t$line_width;\n\n\t/*PDF page header for GL Account report */\n\n\tif ($PageNumber > 1){\n\t\t$pdf->newPage();\n\t}\n$YPos= $Page_Height-$Top_Margin;\n\n\n\t\n\n\n}", "abstract public function header();", "private function writeHcenter(): void\n {\n $record = 0x0083; // Record identifier\n $length = 0x0002; // Bytes to follow\n\n $fHCenter = $this->phpSheet->getPageSetup()->getHorizontalCentered() ? 1 : 0; // Horizontal centering\n\n $header = pack('vv', $record, $length);\n $data = pack('v', $fHCenter);\n\n $this->append($header . $data);\n }", "function Header()\n {\n\n\n //list($r, $b, $g) = $this->xheadercolor;\n $this->setY(5);\n //$this->SetFillColor($r, $b, $g);\n //$this->SetTextColor(0 , 0, 0);\n //$this->Cell(0,20, '', 0,1,'C', 1);\n //$this->Text(15,26,$this->xheadertext );\n \n \n // get the current page break margin\n $bMargin = $this->getBreakMargin();\n // get current auto-page-break mode\n $auto_page_break = $this->AutoPageBreak;\n // disable auto-page-break\n $this->SetAutoPageBreak(false, 0);\n // set bacground image\n $img_file = WWW_ROOT.'/img/Resul_Agua.jpg';\n $this->Image($img_file, 0, 0, 216, 279, '', '', '', false, 300, '', false, false, 0);\n // restore auto-page-break status\n $this->SetAutoPageBreak($auto_page_break, $bMargin);\n // set the starting point for the page content\n $this->setPageMark();\n \n\n $this->writeHTML($this->xheadertext, true, false, true, false, '');\n\n // Transformacion para la rotacion de el numero de orden y el contenedor de la muestra\n $this->StartTransform();\n //$this->SetFont('freesans', '', 5);\n $this->SetFont('', '', 5);\n $this->Rotate(-90, 117, 117);\n //$tcpdf->Rect(39, 50, 40, 10, 'D');\n $this->Text(5, 30, 'Software Asistencial Médico \"SAM\" V.1.1 ® - https://samsalud.info ®');\n // Stop Transformation\n $this->StopTransform();\n\n // if ( $this->variable == 1 )\n // {\n // draw jpeg image x, y ancho, alto\n // $this->Image(WWW_ROOT.'/img/BORRADOR.png', 40, 60, 450, 250, '', '', '', true, 72);\n\n // restore full opacity\n $this->SetAlpha(0);\n // }\n\n }", "public function initPageHeaders()\n\t{\n\t\tinclude_once('view/main_page_header.php');\n\t}", "public function setHeader($header, $margin) {\n\t}", "function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment)\n {\n }", "public function setHeader($header);", "function privWriteCentralFileHeader(&$p_header)\n {\n }", "public function addHeader(){\n$this->page.= <<<EOD\n<html>\n<head>\n</head>\n<title>\n$this->title\n</title>\n<body>\n<h1 align=\"center\">\n$this->title\n</h1>\nEOD;\n}", "function Header() \n { \n\n list($r, $b, $g) = $this->xheadercolor; \n $this->setY(10); // shouldn't be needed due to page margin, but helas, otherwise it's at the page top \n $this->SetFillColor($r, $b, $g); \n $this->SetTextColor(0 , 0, 0); \n $this->Cell(0,20, '', 0,1,'C', 1); \n $this->Text(15,26,$this->xheadertext ); \n }", "public function defineHeader()\n {\n $this->header = new Header();\n }", "public function Header() {\n // si la pagina es diferente de la 2\n // if (count($this->pages) !== 2) \n // {\n // Logo\n $image_file = K_PATH_IMAGES.'logoesen.jpg';\n $this->Image($image_file, 90, 5, 25, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false);\n // Set font\n $this->SetFont('helvetica', 'B', 20);\n // Title\n //$this->Cell(0, 15, '<< TCPDF Example 003 >>', 0, false, 'C', 0, '', 0, false, 'M', 'M');\n // }\n }", "static public function displayHeader($page_title) {\r\n ?>\r\n <!DOCTYPE html>\r\n <html>\r\n <head>\r\n <title> <?php echo $page_title ?> </title>\r\n <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>\r\n <link type='text/css' rel='stylesheet' href='<?= BASE_URL ?>/www/css/app_style.css' />\r\n \r\n <script>\r\n //create the JavaScript variable for the base url\r\n var base_url = \"<?= BASE_URL ?>\";\r\n \r\n \r\n </script>\r\n </head>\r\n <body>\r\n <div id=\"top\"></div>\r\n <div id='wrapper'>\r\n <div id=\"banner\">\r\n \r\n <div id=\"left\">\r\n \r\n <span style='color: #000; font-size: 12pt; z-index:1; position:relative; top: -50px; font-weight: bold; vertical-align: center; font-family: mona shark;'>\r\n <img src=\"<?= BASE_URL ?>/www/img/logo.png\">\r\n \r\n </span>\r\n \r\n <div style='color: #000; font-size: 14pt; font-weight: bold; font-family:calibri; letter-spacing:4px; text-align:center; position:relative;'>Find any power, any ability at your one-stop black market shop.</div>\r\n </div>\r\n </a>\r\n <div id=\"right\">\r\n \r\n </div>\r\n </div>\r\n \r\n <?php\r\n \r\n \r\n }", "public static function after_header() {\r\n\r\n\t}", "public function Header() {\r\n $this->varcave->logger->debug('Create PDF top header');\r\n\t\tif ($this->noheader){\r\n\t\t\treturn true;\r\n\t\t}\r\n // Logo\r\n\t\t$this->setFont($this->font, 'BI', 8, '', 'false');\r\n\t\t$this->Image($this->headerImg,4,4,170);\r\n\t\t\r\n\t\t//text box after header image\r\n\t\t$this->RoundedRect(172,4,35,10,3.5,'D');\r\n\t\t$this->SetXY(173,5);\r\n\t\t$this->cell(0,3, LNE::pdf_caveRef . ': ' . $this->cavedata['caveRef'],0);\r\n\t\t$this->SetXY(173,9);\r\n\t\t//If pagegroup is on set group page number, or set a global PDF page number \r\n\t\tif ( $this->pagegroups == false )\r\n\t\t{\r\n\t\t\t$this->cell(0,3,LNE::pdf_page. ': '. $this->getAliasNumPage() . '/' . $this->getAliasNbPages(),0);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->cell(0,3,LNE::pdf_page .': '. $this->getPageGroupAlias(). '-'.$this->getPageNumGroupAlias() ,0);\r\n\t\t}\r\n\t\t\r\n }", "function Header() {\n if(empty($this->title) || $this->PageNo() == 1) return;\n $oldColor = $this->TextColor;\n $this->SetTextColor(PDF_HEADER_COLOR['red'],\n PDF_HEADER_COLOR['green'],\n PDF_HEADER_COLOR['blue']);\n $x = $this->GetX();\n $y = $this->GetY();\n $this->SetY(10, false);\n $this->SetFont('', 'B');\n $this->Cell(0, 10, $this->title);\n $this->SetFont('', '');\n $this->SetXY($x, $y);\n $this->TextColor = $oldColor;\n }", "function MidHead($title)\n {\n // Arial bold 15\n $this->SetFont('Arial','B',15);\n // Calculate width of title and position\n $w = $this->GetStringWidth($title)+6;\n $this->SetX((210-$w)/2);\n // Colors of frame, background and text\n $this->SetDrawColor(0,80,180);\n $this->SetFillColor(230,230,0);\n //$this->SetTextColor(220,50,50);\n // Thickness of frame (1 mm)\n $this->SetLineWidth(1);\n // Title\n $this->Cell($w,9,$title,1,1,'C',true);\n // Line break\n $this->Ln(10);\n }", "protected function _drawHeader(Zend_Pdf_Page $page)\n {\n // $this->_setFontRegular($page, 10);\n // $page->setFillColor(new Zend_Pdf_Color_RGB(0.93, 0.92, 0.92));\n // $page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5));\n // $page->setLineWidth(0.5);\n // $page->drawRectangle(25, $this->y, 570, $this->y-15);\n // $this->y -= 10;\n // $page->setFillColor(new Zend_Pdf_Color_RGB(0, 0, 0));\n\n // //columns headers\n // $lines[0][] = array(\n // 'text' => Mage::helper('sales')->__('Products'),\n // 'feed' => 100,\n // );\n\n // $lines[0][] = array(\n // 'text' => Mage::helper('sales')->__('Qty'),\n // 'feed' => 35\n // );\n\n // $lines[0][] = array(\n // 'text' => Mage::helper('sales')->__('SKU'),\n // 'feed' => 565,\n // 'align' => 'right'\n // );\n\n // $lineBlock = array(\n // 'lines' => $lines,\n // 'height' => 10\n // );\n\n // $this->drawLineBlocks($page, array($lineBlock), array('table_header' => true));\n // $page->setFillColor(new Zend_Pdf_Color_GrayScale(0));\n // $this->y -= 20;\n }", "function Header(){\n\t\t}", "public function addHeader()\n {\n }", "public function hookDisplayHeader($params){\r\n\r\n\t}", "function display_header() {}", "abstract public function SetHeaders();", "function set_page_header( $page_header )\n {\n $this->includes[ 'page_header' ] = $page_header;\n return $this;\n }", "public function header($page = null)\n {\n ?>\n <!DOCTYPE HTML>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"description\" content=\"Unicat project\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <?php\n foreach ($this->css as $css) {\n ?>\n <link rel=\"stylesheet\" type=\"text/css\" href=\"<?= $css ?>\"><?php\n }\n ?>\n <title><?= (isset($page) ? $page : null) ?><?= !empty($this->companyName) ? '-' . $this->companyName : null ?></title>\n </head>\n <body>\n <?php\n }", "protected function generatePageHeader($headline = \"\") \r\n {\r\n $headline = htmlspecialchars($headline);\r\n header(\"Content-type: text/html; charset=UTF-8\");\r\n \r\n // including the individual headline\r\n \r\n echo <<<HTML\r\n<!DOCTYPE html>\r\n <html lang=\"de\">\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\nHTML;\r\n if ($headline == 'City Wok - Kunde') {\r\n echo <<<HTML\r\n <meta http-equiv=\"refresh\" content=\"5\" />\r\nHTML;\r\n }\r\n echo <<<HTML\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"favicon.ico\" />\r\n <link href=\"CityWok.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />\r\n <title>$headline</title>\r\n </head>\r\n <body id=\"main\"> \r\n <header>\r\n <nav class=\"navbar\">\r\n <span class=\"open-slide\">\r\n <a href=\"#\" onclick=\"openSlideMenu()\">\r\n <svg width=\"30\" height=\"30\">\r\n <path d=\"M0,5 30,5\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n <path d=\"M0,14 30,14\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n <path d=\"M0,23 30,23\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n </svg>\r\n </a>\r\n </span>\r\n\r\n <ul class=\"navbar-nav\">\r\n <li><a href=\"Index.php\">Bestellung</a></li>\r\n <li><a href=\"Kunde.php\">Kunde</a></li>\r\n <li><a href=\"kueche.html\">Küche</a></li>\r\n <li><a href=\"Fahrer.php\">Fahrer</a></li>\r\n </ul>\r\n </nav>\r\n </header>\r\n\r\n <article class=\"content\">\r\n <div id=\"side-menu\" class=\"side-nav\">\r\n <a href=\"#\" class=\"btn-close\" onclick=\"closeSlideMenu()\">&times;</a>\r\n <a href=\"Index.php\">Bestellung</a>\r\n <a href=\"Kunde.php\">Kunde</a>\r\n <a href=\"kueche.html\">Küche</a>\r\n <a href=\"Fahrer.php\">Fahrer</a>\r\n </div>\r\n \r\n \r\n <div class=\"title\">\r\n <img src=\"city-wok-guy-head.png\" alt=\"\" title=\"CityWok\" class=\"logo\" />\r\n <h1>CITY WOK</h1>\r\n <img src=\"city-wok-guy-head.png\" alt=\"\" title=\"CityWok\" class=\"logo\" />\r\n </div>\r\nHTML;\r\n }", "protected function makeHeader()\n {\n }", "function makeHeader(){\n\tglobal $pdf;\n\t\n\t// logo\n\t$pdf->Image('img/mepbro-pdf.png', 27, 27, 218);\n\t\n\t// title box\n\t$pdf->SetFillColor(51,102,255);\n\t$pdf->Rect(263, 27, 323, 72, 'F');\n\t// title lines\n\t$pdf->SetTextColor(255,255,255);\n\t$pdf->SetFont('Helvetica','B',34);\n\t$pdf->SetXY(263, 31);\n\t$pdf->Cell(323,36,'HOSE TEST', 0, 1, 'C');\n\t$pdf->SetXY(263, 64);\n\t$pdf->Cell(323,36,'CERTIFICATE', 0, 1, 'C');\n\t\n\treturn 126;\n\t\n}", "function header() {\n }", "protected function _drawHeader(Zend_Pdf_Page $page) {\n\t\t/* Add table head */\n\t\t//draw heading background\n\t\t$this -> _setFontLight($page, 10);\n\t\t$page -> setFillColor(new Zend_Pdf_Color_Html('#' . $this -> params['mainColor']));\n\t\t$page -> drawRectangle(18, $this -> y, $page->getWidth() - 18, $this -> y - 30, $fillType = Zend_Pdf_Page::SHAPE_DRAW_FILL);\n\t\t$page -> setFillColor(new Zend_Pdf_Color_Html('#' . $this -> params['inverseColor']));\n\t\t\n\t\t$this -> y -= 18;\n\t\t\t\n\t\t$font = $this->_setFontLight($page, 10);\n\t\t//ouput column labels\n\t\t$page->drawText(Mage::helper('sales') -> __('Images'), 35, $this->y, 'UTF-8');\n\t\t$page->drawText(Mage::helper('sales') -> __('Products'), 145, $this->y, 'UTF-8');\n\t\t$page->drawText(Mage::helper('sales') -> __('SKU'), 285, $this->y, 'UTF-8');\n\t\t$page->drawText(Mage::helper('sales') -> __('Price'), 354, $this->y, 'UTF-8');\n\t\t$page->drawText(Mage::helper('sales') -> __('Qty'), 416, $this->y, 'UTF-8');\n\t\t$page->drawText(Mage::helper('sales') -> __('Tax'), 469, $this->y, 'UTF-8');\n\t\t$page->drawText(Mage::helper('sales') -> __('Subtotal'), $this->getAlignRight(Mage::helper('sales') -> __('Subtotal'), $page->getWidth() - 60 - 28, 60, $font, 10, 0), $this->y, 'UTF-8');\n\n\t\t$page -> setFillColor(new Zend_Pdf_Color_GrayScale(0));\n\t\t$this -> y -= 12;\n\t}", "protected function setHeader($header_extra = '') {\n $this->header = \"<!DOCTYPE html> \\n <html> \\n <head> \\n <meta charset='utf-8'> \\n <title>Log-in Page Project</title>\";\n $this->loadConfig();\n $this->addMeta();\n $this->addJS();\n $this->addCSS();\n $this->header.=$header_extra;\n $this->header.=\"</head>\";\n return $this->header;\n }", "public function setHeader($callback)\n {\n //die();\n # echo \"yo\";\n $this->headerCallback = $callback;\n }", "function msdlab_pre_header(){\n print '<div class=\"pre-header\">\n <div class=\"wrap\">';\n do_action('msdlab_pre_header');\n print '\n </div>\n </div>';\n }", "function displayHeader( $currentPage = \"\" )\n {\n echo \"\t\n\t <div id='header'>\\n\n <div id='logo'>\\n\n \t <img id='imgLogo' src='images/logo-1-h175.gif' alt='Aussie Computer Corporation' />\\n\n </div>\\n\n\t\t <div id='banner'>\\n\n <h1 id='h1Logo'>Aussie Computer Corporation</h1>\\n\n \" . $this->getTopMenu( $this->arrHeaderMenuItems ) . \"\n\t\t </div>\\n\n\t </div>\\n\n \\n\";\n\n\n // Displays the Main Navigation Bar\n //\n $thisPageHome = ( $currentPage == \"\" )? \"class='selected-menu'\" : \"\";\n $thisPageContactInfo = ( $currentPage == \"contactInfo\" )? \"class='selected-menu'\" : \"\";\n $thisPageSignIn = ( $currentPage == \"signIn\" )? \"class='selected-menu'\" : \"\";\n \n $strSignIn = ($this->bHeaderSignIn)? \"Sign-In\" : \"Sign-out\";\n $strWelcome = ($this->bHeaderSignIn)? \"\" : \"<div id='cntWelcomeMember'>Hello {$this->username}</div>\";\n $strHomeRef = ($this->bHeaderSignIn)? \"index.php\" : \"employee.php\";\n \n echo \"\n <div id='cntMainNavBar'>\\n\n <div id='cntMainNavMenu'>\\n\n <ul id='nav-menu'>\\n\n <li {$thisPageHome}'><a href='{$strHomeRef}'>Home</a></li>\\n\n <li {$thisPageContactInfo}><a href='contactInfo.php'>Contact Info</a></li>\\n\n <li {$thisPageSignIn}><a href='login.php'>{$strSignIn}</a></li>\\n\n </ul>\\n\n </div>\\n\n {$strWelcome} \\n\n </div>\\n\n \";\n\n }", "public function headerMargin() {\n\t}", "public function add_header() {\n }", "public function header(){\n $header = '<html>\n <head>\n <style>\n @page{\n margin: 100px 25px;\n }\n header{\n position: absolute;\n top: -60px;\n left: 0px;\n right: 0px;\n height:20px;\n }\n .container-table{ \n margin:80px 0;\n width: 100%;\n }\n .fixed-footer{.\n width : 100%;\n position: fixed; \n bottom: -28; \n left: 0px; \n right: 0px;\n height: 50px; \n text-align:center;\n }\n .fixed-footer-right{\n position: absolute; \n bottom: -150; \n height: 0; \n font-size:13px;\n float : right;\n }\n .page-number:before {\n \n }\n </style>\n </head>\n /\n <script type=\"text/php\">\n if (isset($pdf)){\n $text = \"Page {PAGE_NUM} / {PAGE_COUNT}\";\n $size = 10;\n $font = $fontMetrics->getFont(\"Verdana\");\n $width = $fontMetrics->get_text_width($text, $font, $size) / 2;\n $x = ($pdf->get_width() - $width) / 2;\n $y = $pdf->get_height() - 35;\n $pdf->page_text($x, $y, $text, $font, $size);\n }\n </script>\n <body>\n <header>\n <p style=\"margin:0; position:left;\">\n <img src=\"images/logo.png\" width=\"200\" height=\"160\"/>\n </p>\n </header>'; \n return $header;\n }", "public function _assign_xoops_header()\n {\n $header_class = webphoto_xoops_header::getInstance($this->_DIRNAME, $this->_TRUST_DIRNAME);\n $header_class->set_flag_css(true);\n $header_class->assign_for_main();\n }", "public function Header() {\n\t\t$x = 0;\n\t\t$dx = 0;\n\t\tif ($this->rtl) {\n\t\t\t$x = $this->w + $dx;\n\t\t} else {\n\t\t\t$x = 0 + $dx;\n\t\t}\n\n\t\t// print the fancy header template\n\t\tif($this->print_fancy_header){\n\t\t\t$this->printTemplate($this->header_xobjid, $x, 0, 0, 0, '', '', false);\n\t\t}\n\t\tif ($this->header_xobj_autoreset) {\n\t\t\t// reset header xobject template at each page\n\t\t\t$this->header_xobjid = false;\n\t\t}\n\t\t\n\t\t$this->y = $this->header_margin;\n\t\t$this->SimpleHeader();\n\t\t//$tmpltBase = $this->MakePaginationTemplate();\n\t\t//echo $tmpltBase;die();\n\t\t//echo('trying to print header template: ');\n\t\t//$this->printTemplate($tmpltBase, $x, $this->y, 0, 0, '', '', false);\n\t\t//die();\n\t}", "public function setStartPage($page);", "function setMidTableName($midTableName) {\n $this->midTableName = $midTableName;\n }", "function _header_module($options)\n\t{\n\t\tglobal $meta_fields;\t\t\t$height='';\n\t\n\t\tif ( isset ( $options['hm_header_style'] ) && !empty ( $options['hm_header_style'] ) ) { \n\t\t\t$style = 'uh_'.$options['hm_header_style'];\n\t\t} else { \n\t\t\t$style = '';\n\t\t}\n\t\tif ( !empty ( $options['hm_header_height'] ) ) {\t\t\t$height='style=\"height:'.$options['hm_header_height'].'px;min-height:'.$options['hm_header_height'].'px\"\"';\t\t}\n\n\t?>\n\t\t<div id=\"page_header\" class=\"<?php echo $style; ?> bottom-shadow\" <?php echo $height;?>>\n\t\t\t<div class=\"bgback\"></div>\n\t\t\t\n\t\t\t<div data-images=\"<?php echo IMAGES_URL; ?>/\" id=\"sparkles\"></div>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<div class=\"container\">\n\t\t\t\t<div class=\"row\">\n\t\t\t\t\t<div class=\"span6\">\n\t\t\t\t\t\n\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Breadcrumbs check\n\t\t\t\t\t\t\tif ( isset ( $options['hm_header_bread'] ) && !empty ( $options['hm_header_bread'] ) ) {\n\t\t\t\t\t\t\t\tzn_breadcrumbs();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Date check\n\t\t\t\t\t\t\tif ( isset ( $options['hm_header_date'] ) && !empty ( $options['hm_header_date'] ) ) {\n\t\t\t\t\t\t\t\techo '<span id=\"current-date\">'.date_i18n(get_option('date_format') ,strtotime(date(\"l M d, Y\"))).'</span>';\n\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\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"span6\">\n\t\t\t\t\t\t<div class=\"header-titles\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Title check\n\t\t\t\t\t\t\tif ( isset ( $options['hm_header_title'] ) && !empty ( $options['hm_header_title'] ) ) {\n\t\t\t\t\t\t\t\tif ( isset ( $meta_fields['page_title'] ) && !empty ( $meta_fields['page_title'] ) ) {\n\n\t\t\t\t\t\t\t\t\techo '<h2>'.do_shortcode( stripslashes( $meta_fields['page_title'] ) ).'</h2>';\n\t\t\t\t\t\t\t\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\techo '<h2>'.get_the_title().'</h2>';\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?> \n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Subtitle check\n\t\t\t\t\t\t\tif ( isset ( $options['hm_header_subtitle'] ) && !empty ( $options['hm_header_subtitle'] ) ) {\n\t\t\t\t\t\t\t\tif ( isset ( $meta_fields['page_subtitle'] ) && !empty ( $meta_fields['page_subtitle'] ) ) {\n\n\t\t\t\t\t\t\t\t\techo '<h4>'.do_shortcode( stripslashes( $meta_fields['page_subtitle'] ) ).'</h4>';\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?>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div><!-- end row -->\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class=\"zn_header_bottom_style\"></div>\n\t\t</div><!-- end page_header -->\n\t<?php\t\n\t}", "function addHeader($title)\n {\n $this->page .= <<<EOD\n<html>\n<head>\n<title>$title</title>\n</head>\n<body>\n<h1 align=\"center\">$title</h1>\nEOD;\n }", "public function Header() {\n $bMargin = $this->getBreakMargin();\n\n // Get current auto-page-break mode\n $auto_page_break = $this->AutoPageBreak;\n\n // Disable auto-page-break\n $this->SetAutoPageBreak(false, 0);\n\n // Define the path to the image that you want to use as watermark.\n\t\tif($this->headerImage!='')\n\t\t{\n\t\t\t $header_logo = './'.$this->headerImage;\n\t\t\t \n\t\t}else{\n\t\t\t $header_logo = './assets/logo/Assetswatch.png';\n\t\t}\n\t\tif($this->watermarkImage!='')\n\t\t{\n\t\t\t$img_file = './'.$this->watermarkImage;\n\t\t}else{\n\t\t\t $img_file = './assets/logo/water-mark.png';\n\t\t}\n \n\t\t// echo $header_logo.\"<br>\";\n\t\t// echo $img_file.\"<br>\";\n\t\t // exit();\n // Render the image\n\t\t$this->Image($header_logo, 135,5, 55, 18, '', '', '', false, 300, '', false, false, 0);\n $this->Image($img_file, 53,100, '100px', '100px', '', '', '', false, 300, '', false, false, 0);\n\t\t\n\t\tif($this->headerContent!='')\n\t\t{\n\t\t\t$this->Cell(0, 10,$this->headerContent , 0, false, 'L', 0, '', 0, false, 'T', 'M');\n\t\t}else{\n\t\t\t$this->Cell(0, 10,'' , 0, false, 'C', 0, '', 0, false, 'T', 'M');\n\t\t}\n // Restore the auto-page-break status\n $this->SetAutoPageBreak($auto_page_break, $bMargin);\n\n // Set the starting point for the page content\n $this->setPageMark();\n }", "public function Header()\n {\n // Set the header logo.\n $this->Image('C:\\xampp\\htdocs\\Nexus\\resource\\img\\fpdf\\Nexus-logo.png', 120, 18, 40, 30);\n\n // Set the font.\n $this->AddFont('BebasNeue-Regular', '', 'BebasNeue-Regular.php');\n $this->SetFont('BebasNeue-Regular', '', 26);\n\n // Line break.\n $this->Ln(42);\n\n // Move to the right.\n $this->Cell(120);\n\n // Set page header title.\n $this->Cell(20, 3, 'NEXUS IT TRAINING CENTER', 0, 0, 'C');\n\n // Set the font.\n $this->AddFont('AsiyahScript', '', 'AsiyahScript.php');\n $this->SetFont('AsiyahScript', '', 40);\n\n // Line break.\n $this->Ln(12);\n\n // Set page header title.\n $this->Cell(259, 15, 'Certificate of Attendance', 0, 0, 'C');\n }", "protected function header()\n {\n\n }", "function &addHeader($type = 'all') {\r\n\t \tif (empty($this->rtf->oddEvenDifferent) && $type == 'all') {\r\n\t\t $header = new Header($this->rtf, $type);\r\n\t\t} else if (!empty($this->rtf->oddEvenDifferent) \r\n\t\t\t\t\t\t&& ($type == 'left' || $type == 'right')) {\t\t \r\n\t\t \t$header = new Header($this->rtf, $type);\t\r\n\t\t} else if ($type == 'first') {\r\n\t\t \t$header = new Header($this->rtf, $type);\t\r\n\t\t \t$this->titlepg = 1;\r\n\t\t} else {\t\t\t\r\n\t\t \treturn;\r\n\t\t}\t\t \r\n\r\n\t\t$this->headers[$type] = &$header;\r\n\t\treturn $header;\t\t\r\n\t}", "function iver_select_set_header_object() {\n \t$header_type = iver_select_get_meta_field_intersect('header_type', iver_select_get_page_id());\n\t $header_types_option = iver_select_get_header_type_options();\n\t \n $object = Lib\\HeaderFactory::getInstance()->build($header_type, $header_types_option);\n\n if(Lib\\HeaderFactory::getInstance()->validHeaderObject()) {\n $header_connector = new Lib\\IverSelectHeaderConnector($object);\n $header_connector->connect($object->getConnectConfig());\n }\n }", "function getHeader(){\n\t\trequire 'pages/headerfooter/header.html';\n\t}", "function ua_webtide_resources_set_main_subheader( $subheader ) {\n\t//return get_post_meta( $jobs_page_post->ID, 'page_subheader', true );\n\treturn $subheader;\n}", "private function writeHeader(): void\n {\n $record = 0x0014; // Record identifier\n\n /* removing for now\n // need to fix character count (multibyte!)\n if (strlen($this->phpSheet->getHeaderFooter()->getOddHeader()) <= 255) {\n $str = $this->phpSheet->getHeaderFooter()->getOddHeader(); // header string\n } else {\n $str = '';\n }\n */\n\n $recordData = StringHelper::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddHeader());\n $length = strlen($recordData);\n\n $header = pack('vv', $record, $length);\n\n $this->append($header . $recordData);\n }", "protected function middleMainContent(){\r\n $this->htmlElementStart('div','py-2 jumbotron');\r\n $this->htmlElement('h4', 'About me');\r\n $this->htmlElement('p','My name is Quinten van Langen and I\\'m 23 years old.');\r\n $this->htmlElement('p','I live in Nieuw Vennep together with my parents, brother and sister.');\r\n $this->htmlElement('h4', 'Hobbies');\r\n $content = array(\"Gaming\", \"Jigsaw puzzles\", \"Building Lego sets\");\r\n $this->list(\"ul\", $content);\r\n $this->htmlElementEnd('div');\r\n }", "protected function _drawHeader(Zend_Pdf_Page $page)\r\n {\r\n $this->_setFontRegular($page, 10);\r\n $page->setFillColor(new Zend_Pdf_Color_RGB(0.93, 0.92, 0.92));\r\n $page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5));\r\n $page->setLineWidth(0.5);\r\n $page->drawRectangle(25, $this->y, 570, $this->y - 30);\r\n $this->y -= 10;\r\n $page->setFillColor(new Zend_Pdf_Color_RGB(0, 0, 0));\r\n\r\n //columns headers\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('sales')->__('Products'),\r\n 'feed' => 35,\r\n );\r\n\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('core/string')->str_split(Mage::helper('sales')->__('SKU'), 12, true, true),\r\n 'feed' => 255,\r\n 'align' => 'right'\r\n );\r\n\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('core/string')->str_split(Mage::helper('sales')->__('Total (ex)'), 12, true, true),\r\n 'feed' => 330,\r\n 'align' => 'right',\r\n //'width' => 50,\r\n );\r\n\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('core/string')->str_split(Mage::helper('sales')->__('Discount'), 12, true, true),\r\n 'feed' => 380,\r\n 'align' => 'right',\r\n //'width' => 50,\r\n );\r\n\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('core/string')->str_split(Mage::helper('sales')->__('Qty'), 12, true, true),\r\n 'feed' => 445,\r\n 'align' => 'right',\r\n //'width' => 30,\r\n );\r\n\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('core/string')->str_split(Mage::helper('sales')->__('Tax'), 12, true, true),\r\n 'feed' => 495,\r\n 'align' => 'right',\r\n //'width' => 45,\r\n );\r\n\r\n $lines[0][] = array(\r\n 'text' => Mage::helper('core/string')->str_split(Mage::helper('sales')->__('Total (inc)'), 12, true, true),\r\n 'feed' => 565,\r\n 'align' => 'right'\r\n );\r\n\r\n $lineBlock = array(\r\n 'lines' => $lines,\r\n 'height' => 10\r\n );\r\n\r\n $this->drawLineBlocks($page, array($lineBlock), array('table_header' => true));\r\n $page->setFillColor(new Zend_Pdf_Color_GrayScale(0));\r\n $this->y -= 20;\r\n }", "function pxlz_edgtf_set_header_object() {\n $header_type = pxlz_edgtf_get_meta_field_intersect('header_type', pxlz_edgtf_get_page_id());\n $header_types_option = pxlz_edgtf_get_header_type_options();\n\n $object = Lib\\HeaderFactory::getInstance()->build($header_type, $header_types_option);\n\n if (Lib\\HeaderFactory::getInstance()->validHeaderObject()) {\n $header_connector = new Lib\\PxlzEdgefHeaderConnector($object);\n $header_connector->connect($object->getConnectConfig());\n }\n }", "public function Header() {\r\n\t\t$this->SetLeftMargin( 20 );\r\n\t\t$this->SetFillColor( 255, 255, 255 );\r\n\t\t\r\n\t\tswitch ($this->plantilla) {\r\n\t\t\tcase 1:\r\n\t\t\t$this->EncabezadoFBM1_Info();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t$this->EncabezadoFBM1();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t$this->EncabezadoFBM2();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t$this->EncabezadoFBM3();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t//$this->SetLeftMargin( 10 );\r\n\t\t\t$y1 = $this->getY();\r\n\t\t\t$x1 = $this->getX();\r\n\t\t\t$this->Celda(75, 23, '', 1, 0, '', true);\r\n\t\t\t$y2 = $this->getY();\r\n\t\t\t$x2 = $this->getX();\r\n\t\t\t$this->Celda(150, 23, '', 1, 0, '', true);\r\n\t\t\t$y3 = $this->getY();\r\n\t\t\t$x3 = $this->getX();\r\n\t\t\t$this->Celda(28, 23, '', 1, 1, '', true);\r\n\t\t\t$y4 = $this->getY();\r\n\t\t\t$x4 = $this->getX();\r\n\t\t\t$this->setY($y1);\r\n\t\t\t$this->setX($x1);\r\n\t\t\t$this->Image( 'images/logo_medium.png', 22, 11, 68 );\r\n\t\t\t$this->setY($y2+5);\r\n\t\t\t$this->setX($x2+1);\r\n\t\t\t$this->Formato( 'Helvetica', 'B', 10 );\r\n\t\t\t$this->Celda(162, 6, 'Formulario B.M.4', 0, 1, 'C', true);\r\n\t\t\t$this->Formato( 'Helvetica', '', 8 );\r\n\t\t\t$this->setX($x2+1);\r\n\t\t\t$this->Celda(162, 8, 'Resumen de la Cuenta de Bienes', 0, 1, 'C', true);\r\n\t\t\t$this->setY($y3);\r\n\t\t\t$this->setX($x3);\r\n\t\t\t$this->Celda(31, 8, 'HOJA Nro.', 1, 1, 'C', true);\r\n\t\t\t$this->setX($x3);\r\n\t\t\t$this->Celda(31, 15, $this->header['hoja'], 1, 1, 'C', true);\r\n\t\t\t$this->setY($y4);\r\n\t\t\t$this->setX($x4);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t$this->EncabezadoFBM5();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "protected function getHeaderPart()\n {\n //$logo_url = ot_get_option('header_logo', 'img/logo.jpg');\n ?>\n <?= $this->version151101() ?>\n <?= $this->getBannerPart() ?>\n <?php\n }", "function set_heading()\n\t{\n\t\t$args = func_get_args();\n\t\t$this->heading = $this->_prep_args($args);\n\t}", "public function setPageID(){\n\t\t\n\t\t$id = 'page';\n\t\t$s = '-';\n\t\t$pound = (!self::USE_SPLASH)?'#':'';\n\t\t$prefix = $pound.$id.$s;\n\t\t$this->headerContainerId = $prefix.'header'.$s.'container';\n\t\t$this->headerId = $prefix.'header';\n\t\t$this->subtitleId = $prefix.'subtitle';\n\t\t$this->brandId = $prefix.'brand';\n\t\t\n\t}", "function init_pdf_header() {\n//define ('K_TCPDF_EXTERNAL_CONFIG', true);\n\n//define ('PDF_HEADER_LOGO', \"../../../img/header/centreon.gif\"); \ndefine ('PDF_HEADER_LOGO_WIDTH', 30);\n \n}", "function Header() {\n\t\tif (is_null($this->_tplIdx)) {\n\t\t\t$this->setSourceFile('gst3.pdf');\n\t\t\t$this->_tplIdx = $this->importPage(1);\n\t\t}\n\t\t$this->useTemplate($this->_tplIdx);\n\n\t\t$this->SetFont('freesans', 'B', 9);\n\t\t$this->SetTextColor(255);\n\t\t$this->SetXY(60.5, 24.8);\n\t\t$this->Cell(0, 8.6, \"TCPDF and FPDI\");\n\t}", "public function full_header() {\n $header = new stdClass();\n $header->settingsmenu = $this->context_header_settings_menu();\n $header->handytoolbar = $this->context_handy_toolbar();\n $header->contextheader = $this->context_header();\n $header->hasnavbar = empty($this->page->layout_options['nonavbar']);\n $header->navbar = $this->navbar();\n $header->pageheadingbutton = $this->page_heading_button();\n $header->courseheader = $this->course_header();\n $template = 'theme_savoir/header';\n if ($this->is_on_frontpage()) {\n $template = 'theme_savoir/header_fp';\n $options = new stdClass();\n $options->noclean = true; // Don't clean Javascripts etc.\n $options->overflowdiv = false;\n $context = context_course::instance($this->page->course->id);\n $summary =\n file_rewrite_pluginfile_urls(\n $this->page->course->summary,\n 'pluginfile.php',\n $context->id,\n 'course',\n 'summary',\n null);\n $content = format_text($summary, $this->page->course->summaryformat, $options);\n if (!isloggedin()) {\n $header->loginurl = get_login_url();\n }\n $header->frontpageslogan = $content;\n $header->frontpagestitle = $this->page->course->shortname;\n $header->alertmessage = format_text(get_config('theme_savoir', 'fpmessage'), FORMAT_HTML);\n $header->alertenabled = get_config('theme_savoir', 'fpmessageenabled');\n } else if ($this->is_on_page_with_description()) {\n $header->pageslogan = get_string(preg_replace('/^theme-savoir-pages-/', '', $this->page->pagetype, 1) . '-description',\n 'theme_savoir');\n $header->bgimageurl = $this->image_url('genericbackground', 'theme_savoir');\n $template = 'theme_savoir/header_desc';\n }\n return $this->render_from_template($template, $header);\n }", "public function setUp() {\n $this->container = new HeaderContainer();\n }", "protected function setHeader(){\n $this->header = [\n 'Auth-id' => $this->username,\n 'Auth-token' => $this->generateToken(),\n 'Timestamp' => time()\n ];\n }", "public static function set_headers()\n {\n }", "public function header() {\n\t}", "function _pagehead(&$pdf, $object, $showaddress, $outputlangs)\n\t{\n\t\tglobal $conf,$langs;\n\t\t$default_font_size = pdf_getPDFFontSize($outputlangs);\n\n\t\t$outputlangs->load(\"main\");\n\t\t$outputlangs->load(\"dict\");\n\t\t$outputlangs->load(\"companies\");\n\t\t$outputlangs->load(\"interventions\");\n\n\t\tpdf_pagehead($pdf,$outputlangs,$this->page_hauteur);\n\n\t\t$posx=$this->marge_gauche;\n\t\t$posy=$this->marge_haute;\n\t\t$largeur_utile = $this->page_largeur-$this->marge_droite-$this->marge_gauche;\n\t\t$pdf->SetAutoPageBreak(0,0);\n\t\t\n\t\t$pdf->SetFont('','',$default_font_size-2);\n\t\t$pdf->SetTextColor(0,0,60);\n\t\t\n\t\t$pdf->SetXY($posx,$posy);\n\t\t$pdf->MultiCell($largeur_utile, 4, $outputlangs->transnoentities(\"Ref\").\" : \" . $outputlangs->convToOutputCharset($object->ref), '', 'L');\n\n\t\t$posy+=4;\n\t\t$pdf->SetXY($posx,$posy);\n\t\t$pdf->MultiCell($largeur_utile, 3, $outputlangs->transnoentities(\"Date\").\" : \" . dol_print_date($object->datec,\"day\",false,$outputlangs,true), '', 'L');\n\n\t\tif ($object->thirdparty->code_client)\n\t\t{\n\t\t\t$posy+=4;\n\t\t\t$pdf->SetXY($posx,$posy);\n\t\t\t$pdf->MultiCell($largeur_utile, 3, $outputlangs->transnoentities(\"CustomerCode\").\" : \" . $outputlangs->transnoentities($object->thirdparty->code_client), '', 'L');\n\t\t}\n\n\t\t//Recipient name\n\t\t// On peut utiliser le nom de la societe du contact\n\t\tif ($usecontact && !empty($conf->global->MAIN_USE_COMPANY_NAME_OF_CONTACT)) {\n\t\t\t$thirdparty = $object->contact;\n\t\t} else {\n\t\t\t$thirdparty = $object->thirdparty;\n\t\t}\n\t\t\t\n\t\t$carac_client_name=pdfBuildThirdpartyName($thirdparty, $outputlangs);\n\n\t\t// Show recipient\n\t\t$posy+=4;\n\t\t$posx=$this->marge_gauche;\n\n\t\t// Show recipient name\n\t\t$pdf->SetXY($posx,$posy);\n\t\t$pdf->MultiCell($largeur_utile, 4, $carac_client_name, 0, 'L');\n\n\t\t$posy = $pdf->getY();\n\n\t\t$carac_client = '';\n\t\t// Phone\n\t\tif ($object->thirdparty->phone) $carac_client .= $outputlangs->transnoentities(\"PhoneShort\").\": \".$outputlangs->convToOutputCharset($object->thirdparty->phone);\n\t\t// Fax\n\t\tif ($object->thirdparty->fax) $carac_client .= \"\\n\".$outputlangs->transnoentities(\"Fax\").\": \".$outputlangs->convToOutputCharset($object->thirdparty->fax);\n\t\t\n\t\t// Show recipient information\n\t\t$pdf->SetXY($posx,$posy);\n\t\t$pdf->MultiCell($largeur_utile, 4, $carac_client, 0, 'L');\n\t\t\n\t}", "function SetHeader()\n\t{\n\t\tif (!func_num_args())\n\t\t{\n\t\t\t// No parameters were passed\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\t// Store the header values\n\t\t$this->_arrHeader = func_get_args();\n\n\t\treturn $this->_arrHeader;\n\t}", "public function setHeader( $call )\r\n\t{\r\n\t\t// Find the end head tag first\r\n\t\t$parts\t\t=\texplode( '</head>', $call->htmlheader );\r\n\t\t$body\t\t=\tarray_pop( $parts );\r\n\t\t$body\t\t.=\t\"\\r\\n\"\r\n\t\t\t\t\t.\t'<!-- Begin setHeader -->'\r\n\t\t\t\t\t.\t'<div id=\"jblestawrapper\">';\r\n\t\t$this->htmlheader =\t$body;\r\n\t}", "function begin_frame ($caption=\"\", $center=false, $padding=10)\r\n{\r\n $tdextra = \"\";\r\n\r\n if ($caption)\r\n {\r\n print(\"<h2>$caption</h2>\");\r\n }\r\n\r\n if ($center)\r\n {\r\n $tdextra .= \" align='center'\";\r\n }\r\n\r\n print(\"<table border='1' width='100%' cellspacing='0' cellpadding='$padding'><tr><td $tdextra>\\n\");\r\n}", "function Header()\n{\n $this->SetFont('Arial','B',15);\n // Move to the right\n $this->Cell(80);\n // Framed title\n\t$this->SetDrawColor(0,80,180);\n $this->SetFillColor(230,230,0);\n $this->SetTextColor(220,50,50);\n // Thickness of frame (1 mm)\n $this->SetLineWidth(1);\n\t$this->Cell($w,9,$title,1,1,'C',true);\n $this->Cell(30,10,'Title',1,0,'C');\n // Line break\n $this->Ln(40);\n}", "public function setHeader($key,$val){ return $this->headers->set($key,$val); }", "function initialize () {\n $this->set_openingtag(\"<HEADER[attributes]>\");\n\t $this->set_closingtag(\"</HEADER>\");\n }", "private function displayHeader()\n {\n\n $html = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">' . \"\\n\";\n $html .= '<html xmlns=\"http://www.w3.org/1999/xhtml\">';\n $html .= '<head>' . \"\\n\";\n\n //Meta tags\n $html .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />' . \"\\n\";\n $html .= '<meta name=\"description\" content=\"' . $this->pageInfo['pageDescription'] . '\" />' . \"\\n\";\n $html .= '<meta name=\"keywords\" content=\"jobs, freelance, work, design, freedom, choice, new zealand, quality\" />' . \"\\n\";\n $html .= '<link rel=\"icon\" type=\"image/png\" href=\"images/volition-icon.png\" />' . \"\\n\";\n\n //Stylesheets\n $html .= '<!-- Stylesheets -->' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles.css\" />' . \"\\n\";\n $html .= '<!--[if lt IE 9]>' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/ie.css\" />' . \"\\n\";\n $html .= '<![endif]-->' . \"\\n\";\n\n //Scripts\n //$html .= '<script type=\"text/javascript\" src=\"js/window.js\"></script>'.\"\\n\";\n\n //Page title\n $html .= '<title>Volition | ' . $this->pageInfo['pageTitle'] . '</title>' . \"\\n\";\n $html .= '</head>' . \"\\n\";\n $html .= '<body>' . \"\\n\";\n\n //Header\n $html .= '<div id=\"header\">' . \"\\n\";\n\n //Control buttons\n\n $html .= '<div id=\"headerImg\"><a href=\"index.php?page=home\"></a></div>' . \"\\n\";\n\n if ($this->model->userLoggedIn) {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=logout\">Logout</a></p>' . \"\\n\";\n $html .= '<p class=\"userControl\">You are logged in as ' . $_SESSION['userName'] . '</p>' . \"\\n\";\n } else {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=login\">Login</a></p>' . \"\\n\";\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=register\">Register</a></p>' . \"\\n\";\n }\n\n $html .= '<form id=\"searchForm\" method=\"post\" action=\"index.php?page=search\">';\n if ($_POST['searchInput']) {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"' . $_POST['searchInput'] . '\" />';\n } else {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"Search...\" />';\n }\n $html .= '<input type=\"submit\" class=\"submit\" name=\"searchSubmit\" id=\"searchSubmit\" value=\"Go\" />';\n $html .= '</form>';\n\n //Navbar\n $html .= $this->displayNav();\n\n $html .= '</div>' . \"\\n\";\n //Content tags\n $html .= '<div id=\"container\">' . \"\\n\";\n $html .= '<div id=\"content\" >' . \"\\n\";\n\n return $html;\n\n }", "function Header() {\r\n $this->Image($this->logourl, 6, 5, 12,12);\r\n $this->SetFont('courier', '', 8);\r\n $this->SetY(11);\r\n $this->SetX(19);\r\n// $this->SetTextColor(224,17,36);\r\n $this->SetTextColor(1,152,74);\r\n $this->SetFont('courier', 'B', 10);\r\n $this->Cell(55, 4, $this->companyname, 0, 0, 'L');\r\n $this->SetY(14);\r\n $this->SetX(19);\r\n $this->SetFont('courier', 'B', 8);\r\n// $this->SetTextColor(1,152,74);\r\n $this->SetTextColor(224,17,36);\r\n $this->Cell(55, 4, $this->companyaddress, 0, 0, 'L');\r\n $this->SetTextColor(0);\r\n $this->SetY(10);\r\n $this->SetX(130);\r\n// $this->Cell(75, 4, 'Department : ' . $this->dataheader[0], 0, 0, 'R', false);\r\n \r\n $this->SetFont('courier', 'B', 14);\r\n \r\n $this->SetY(12);\r\n $this->SetX(5);\r\n $this->Cell(200, 6, $this->metadata['Title'], 0, 0, 'C');\r\n $this->SetY(18);\r\n $this->SetFont('courier', '', 8);\r\n $this->Cell(200, 5, $this->dataheader[0], 0, 0, 'C');\r\n// $this->Cell(200, 5, 'test', 0, 0, 'C');\r\n $this->SetY(22);\r\n \r\n $this->SetFont('courier', 'B', 8);\r\n $this->Ln(1);\r\n }", "function Pmx_Header($head, $isContent = false)\n{\n\tglobal $context, $txt, $scripturl, $user_info, $settings;\n\n\t$allowMan = (AllowedToBlog('manager') && isOwner($head['userid']));\n\t$ContLink = isset($_GET['cont']) && !empty($_GET['cont']) ? ';cont='.$_GET['cont'] : '';\n\t$cameFrom = !empty($_GET['cfr']) ? $_GET['cfr'] : ';cfr='. $context['PmxBlog']['mode'];\n\t$isModerator = isModerator($head['userid']);\n\n\techo '\n\t<span class=\"upperframe\"><span></span></span>\n\t<div class=\"roundframe pmx_roundcore\">\n\t<table style=\"padding:0px; margin:0px;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t<tr>\n\t\t\t<td rowspan=\"2\" align=\"center\" valign=\"middle\">\n\t\t\t\t<div style=\"width:84px; padding:2px 6px 2px 2px;\">'.\n\t\t\t\t\t($head['settings']{2} == '1'\n\t\t\t\t\t? ($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\">'.$head['avatar'].'</a>'\n\t\t\t\t\t\t: $head['avatar']\n\t\t\t\t\t\t)\n\t\t\t\t\t: ($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\"><img src=\"' . $settings['default_images_url'] .'/PmxBlog/noavatar.gif\" alt=\"*\" /></a>'\n\t\t\t\t\t\t: ''\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t.'</div>\n\t\t\t</td>\n\t\t\t<td class=\"plainbox\" style=\"background:transparent; padding:0 2px; border-width:0; border-bottom-width:1px;\" colspan=\"2\" valign=\"top\" width=\"'.($user_info['is_guest'] ? '99' : '75').'%\">\n\t\t\t\t<div style=\"height:20px; padding:5px 2px 5px 0px; font-size:20px; font-style:italic; font-family: Tahoma, Verdana, arial;\">'.\n\t\t\t\t\t($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\">'.$head['blogname'].'</a>'\n\t\t\t\t\t\t: $head['blogname']\n\t\t\t\t\t)\n\t\t\t\t.'</div>\n\t\t\t\t<div class=\"smalltext\" style=\"padding:0 2px 4px 0px;\">\n\t\t\t\t'. $head['blogdesc'] .'\n\t\t\t\t</div>\n\t\t\t</td>'.\n\n\t\t(!$user_info['is_guest']\n\t\t?\t'<td valign=\"top\" align=\"right\" nowrap=\"nowrap\" style=\"padding-left:1px;\">\n\t\t\t<div style=\"width:170px;\">\n\t\t\t\t<div class=\"smalltext\" style=\"padding:0px 4px; text-align:right; height:12px;\">'.\n\t\t\t\t(!$user_info['is_guest'] && !isOwner($head['userid'])\n\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']).$ContLink.';track\"><b>'. $txt['PmxBlog_track'] .'</b></a>&nbsp;&nbsp;'. $txt['PmxBlog_track_val'][$head['tracking']]\n\t\t\t\t:\t$txt['PmxBlog_tracked_user'].$head['tracks']\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div class=\"smalltext\" style=\"padding:2px 0px; text-align:right; height:12px;\">'.\n\t\t\t\t(isset($head['is_new_cont']) && $head['is_new_cont'] != '' || isset($head['is_new_cmnt']) && $head['is_new_cmnt'] > 0\n\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']).$ContLink.';mkrd\"><b>'. $txt['PmxBlog_markread'] .'</b></a>&nbsp;'\n\t\t\t\t:\t''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div style=\"padding:2px 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t($head['bloglocked'] != 0\n\t\t\t\t?\t$txt['PmxBlog_bloglockedtxt']\n\t\t\t\t:\t($head['blogenabled'] == 0\n\t\t\t\t\t?\t$txt['PmxBlog_blogdisabled']\n\t\t\t\t\t:\t($allowMan || $isModerator\n\t\t\t\t\t\t?\t($context['PmxBlog']['action'][0] != 'contnew' && $context['PmxBlog']['action'][0] != 'contedit'\n\t\t\t\t\t\t\t?\t(!$isModerator\n\t\t\t\t\t\t\t\t? '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. ($context['PmxBlog']['mode'] == 'list' ? 'view' : $context['PmxBlog']['mode']) .';cont=new'.getOwnerLink($head['userid']).'\">'.$txt['PmxBlog_newblog'].'</a></div>'\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:\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='.$context['PmxBlog']['mode'].$context['PmxBlog']['pageopt'].$context['PmxBlog']['UserLink'].'\" onclick=\"return confirm(\\''. $txt['PmxBlog_confirmAbort'] .'\\')\">'. ($context['PmxBlog']['action'][0] == 'contnew' ? $txt['PmxBlog_newblogabort'] : $txt['PmxBlog_editblogabort']) .'</a></div>'\n\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).'</div>'.\n\t\t\t'</div>\n\t\t\t</td>'\n\t\t: ''\n\t\t).'\n\n\t\t</tr><tr>\n\t\t\t<td valign=\"top\" width=\"28%\" style=\"padding:2px 2px 1px 2px;\">\n\t\t\t\t<div class=\"smalltext\">'. $txt['PmxBlog_blogowner'] .'</div>\n\t\t\t\t<div style=\"padding-top:2px;\"><a href=\"'.$scripturl.'?action=profile;u='.$head['userid'].'\"><b'.$head['onlineColor'].'>'. $head['username'] .'</b>\n\t\t\t\t</a> '. $head['gender'] .'</div>\n\t\t\t</td>\n\t\t\t<td valign=\"top\" width=\"'.($user_info['is_guest'] ? '65' : '47').'%\" style=\"padding:2px 4px 1px 0px;\">\n\t\t\t\t<div class=\"smalltext\" style=\"padding:2px;height:14px;float:left;\">'.\n\t\t\t\t$txt['PmxBlog_entries'].\n\t\t\t\t(isset($head['nbr_content'])\n\t\t\t\t?\t(empty($head['is_new_cont'])\n\t\t\t\t\t\t?\tContent_button('content', $head['nbr_content'])\n\t\t\t\t\t\t:\tContent_button('content_new', $head['nbr_content'])\n\t\t\t\t\t)\n\t\t\t\t:\tContent_button('content', '0')\n\t\t\t\t).\n\t\t\t\t(!empty($head['nbr_comment'])\n\t\t\t\t?\t' / '.$head['nbr_comment']\n\t\t\t\t:\t''\n\t\t\t\t).'</div>\n\t\t\t\t<div class=\"smalltext\" style=\"float:right;padding:2px;height:14px;\">'.$txt['PmxBlog_blog_views'].$head['blogviews'].'</div>\n\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t\t<div class=\"smalltext\" style=\"padding:1px 2px;height:16px;float:left;\">'.\n\t\t\t\t($head['blogcreated'] != 0\n\t\t\t\t?\n\t\t\t\t\t($head['blogenabled'] != 0 || AllowedTo('admin_forum') || isOwner($head['userid'])\n\t\t\t\t\t?\t($context['PmxBlog']['action'][0] == 'list'\n\t\t\t\t\t\t?\t((!empty($head['nbr_content']) || (empty($head['nbr_content']) && isOwner($head['userid']) && !empty($head['hiddencont'])))\n\t\t\t\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa=view'. getOwnerLink($head['userid']) .'\">'. $txt['PmxBlog_viewblog'] .'</a>'\n\t\t\t\t\t\t\t:\t(!empty($head['hiddencont']) ? '<em>'. $txt['PmxBlog_privatecontent'] .'</em>' : '')\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t(!empty($context['PmxBlog']['ResetArchivdate']) || $context['PmxBlog']['pagemode'] != '' || $context['PmxBlog']['action'][0] == 'singlepage'\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit2\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']) . $context['PmxBlog']['ResetArchivdate'] .'\"><span style=\"margin-right:15px;\">'. $txt['PmxBlog_listblogs'] .'</span></a></div>'\n\t\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit2\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=list'. $context['PmxBlog']['ResetArchivdate'] .'\"><span style=\"margin-right:15px;\">'.$txt['PmxBlog_showall'].'</span></a></div>'\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)\n\t\t\t\t: ''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div class=\"smalltext\" style=\"float:right;padding:2px;height:14px;\">'.\n\t\t\t\t$txt['PmxBlog_blog_rating'].$head['blogvotes'].\n\t\t\t\t($head['blogvotes'] > 0\n\t\t\t\t?\t' ('.$head['blograting'].'%)'\n\t\t\t\t:\t''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t</td>'.\n\t\t(!$user_info['is_guest']\n\t\t? '\n\t\t\t<td valign=\"top\" align=\"right\" nowrap=\"nowrap\">\n\t\t\t<div style=\"width:170px;\">'.\n\t\t\t($allowMan || AllowedTo('admin_forum')\n\t\t\t?\t($context['PmxBlog']['mode'] != 'manager'\n\t\t\t\t?\t'<div style=\"text-align:right; height:16px; padding:0 2px 2px 2px;\">\n\t\t\t\t\t\t<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager;setup'. $cameFrom . getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_blogset_link'] .'</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"text-align:right; height:16px; padding:2px 2px 2px 2px;\">'.\n\t\t\t\t\t\t(isOwner($head['userid'])\n\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t:\t($isModerator && !empty($isContent)\n\t\t\t\t\t\t\t? ($context['PmxBlog']['Moderate'] == $head['userid']\n\t\t\t\t\t\t\t\t? '<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=0\">'. $txt['PmxBlog_funcexit'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t\t\t\t: '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=1\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_moderate_link'].'</a></div>'\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\t\t\t\t\t</div>'\n\t\t\t\t:\t'<div style=\"padding:0 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t\t($head['blogcreated'] != 0\n\t\t\t\t\t?\t($context['PmxBlog']['action'][0] != 'setup'\n\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager;setup'. $cameFrom .getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_blogset_link'] .'</a></div>'\n\t\t\t\t\t\t:\t($context['PmxBlog']['action'][0] == 'setup'\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='.(!empty($context['PmxBlog']['Manager']['have_blog']) ? (!empty($cameFrom) ? $cameFrom : 'view') : 'list'). getOwnerLink($head['userid']).$ContLink .'\">'. $txt['PmxBlog_funcexit'] . $txt['PmxBlog_blogset_link'].'</a></div>'\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</div>\n\t\t\t\t\t<div style=\"padding:2px 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t\t\t($context['PmxBlog']['action'][0] == 'setup'\n\t\t\t\t\t\t?\t(isOwner($head['userid'])\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_manager_link'] .'</a></div>'\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'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=view'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funcexit'].$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t)\n\t\t\t\t\t: (isOwner($head['userid'])\n\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=list\">' .$txt['PmxBlog_funcexit'].$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t: ''\n\t\t\t\t\t\t)\n\t\t\t\t\t).'\n\t\t\t\t\t</div>'\n\t\t\t\t)\n\t\t\t:\t($isModerator && !empty($isContent)\n\t\t\t\t? '<div style=\"padding:2px 2px 2px 2px; padding-top:17px; text-align:right; height:14px;\">'.\n\t\t\t\t\t($context['PmxBlog']['Moderate'] == $head['userid']\n\t\t\t\t\t? '<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=0\">'. $txt['PmxBlog_funcexit'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t: '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=1\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t).\n\t\t\t\t\t'</div>'\n\t\t\t\t: ''\n\t\t\t\t)\n\t\t\t).'\n\t\t\t</div>\n\t\t\t</td>'\n\t\t:\t''\n\t\t).'\n\t\t</tr>\n\t</table>\n\t</div>\n\t<span class=\"lowerframe\"><span></span></span>';\n}", "function privWriteFileHeader(&$p_header)\n {\n }", "public function createHeader() {\n\t\t$header = new PHPWord_Section_Header($this->_sectionCount);\n\t\t$this->_header = $header;\n\t\treturn $header;\n\t}", "protected function _drawHeader(\\Zend_Pdf_Page $page)\n {\n /* Add table head */\n $this->_setFontRegular($page, 10);\n $page->setFillColor(new \\Zend_Pdf_Color_GrayScale(1));\n\n $page->setLineColor(new \\Zend_Pdf_Color_GrayScale(0));\n $page->setLineWidth(0.5);\n $page->drawRectangle(25, $this->y, 570, $this->y - 15);\n $this->y -= 10;\n\n if ($this->_config->create()->getSetting('order_product/enable_discount'))\n $this->_priceFeed = 430;\n else\n $this->_priceFeed = 480;\n\n //columns headers\n $lines[0][] = ['text' => __('Qty'), 'feed' => 45, 'align' => 'right'];\n if($this->_config->create()->getSetting('general/pack_quantity')){\n $this->_skuFeed = 120;\n $lines[0][] = ['text' => __('Pack qty'), 'feed' => 70, 'align' => 'left'];\n }\n $lines[0][] = ['text' => __('SKU'), 'feed' => $this->_skuFeed, 'align' => 'left'];\n $lines[0][] = ['text' => __('Product'), 'feed' => 200, 'align' => 'left'];\n\n $lines[0][] = ['text' => __('Price'), 'feed' => $this->_priceFeed, 'align' => 'right'];\n if ($this->_config->create()->getSetting('order_product/enable_discount'))\n $lines[0][] = ['text' => __('Discount'), 'feed' => 490, 'align' => 'right'];\n\n $lines[0][] = ['text' => __('Total'), 'feed' => 550, 'align' => 'right'];\n\n $lineBlock = ['lines' => $lines, 'height' => 5];\n\n $page->setFillColor(new \\Zend_Pdf_Color_GrayScale(0));\n $this->drawLineBlocks($page, [$lineBlock], ['table_header' => true]);\n $page->setFillColor(new \\Zend_Pdf_Color_GrayScale(0));\n $this->y -= 20;\n }", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "public function setHeader($header)\n {\n $this->_header = $header;\n }", "public function page_header(){\n\t\t$e = $this->Empresa->salida;\n\t\t$this->Empresa->where('id',$this->Empresa->user);\n\t\t$fondo = $this->Empresa->getOne('empresa_fondo','img_fondo');\n\t\t\n\t\t$link = 'index.php?inmv='.$e['nik_empresa'];\t\t\n\t\t$return = '<div class=\"page-header\" style=\"background-image: url(imagenes/fondos/'.$fondo['img_fondo'].');\">';\n\t\t$return .= '<div class=\"header-info\">';\n\t\t$return .= '<div class=\"row\">';\n\t\t$return .= '<div class=\"logo-header\"><a href=\"'.$link.'\"><img src=\"imagenes/logo/'.$e['img'].'\" /></a></div>';\n\t\t$return .= '<div class=\"header-desc col-md-6 visible-md visible-lg\">';\n\t\t$return .= '<h1>'.$e['descripcion'].'</h1>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\treturn $return;\n\t}", "function common_header($formcode = \"\", $section = \"\", $extra = \"\")\r\n\t{\r\n\r\n\t\tglobal $IN, $INFO, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;\r\n\t\t$ibforums = Ibf::app();\r\n\r\n\t\t$extra = $extra\r\n\t\t\t? $extra . \"<br>\"\r\n\t\t\t: $extra;\r\n\r\n\t\t$ADMIN->page_detail = $extra . \"Please check the data you are entering before submitting the changes\";\r\n\t\t$ADMIN->page_title = \"Board Settings ($section)\";\r\n\r\n\t\t//+-------------------------------\r\n\r\n\t\t$ADMIN->html .= $SKIN->start_form(array(\r\n\t\t 1 => array('code', $formcode),\r\n\t\t 2 => array('act', 'op'),\r\n\t\t ));\r\n\r\n\t\t//+-------------------------------\r\n\r\n\t\t$SKIN->td_header[] = array(\"{none}\", \"40%\");\r\n\t\t$SKIN->td_header[] = array(\"{none}\", \"60%\");\r\n\r\n\t\t//+-------------------------------\r\n\r\n\t\t$ADMIN->html .= $SKIN->start_table(\"Settings\");\r\n\r\n\t}", "function setHeader($file_name){\t\n\t\t// echo date('H:i:s') , \" Set header/footer\" , EOL;\n\t\t$this->objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddHeader('&L&G&C&HPlease treat this document as confidential!');\n\t\t$this->objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddFooter('&L&B' . $this->objPHPExcel->getProperties()->getTitle() . '&RPage &P of &N');\n\t\t// Set page orientation and size\n\t\t$this->objPHPExcel->getActiveSheet()->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);\n\t\t$this->objPHPExcel->getActiveSheet()->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4);\n\t\t// Rename worksheet\n\t\t// echo date('H:i:s') , \" Rename worksheet\" , EOL;\n\t\t$this->objPHPExcel->getActiveSheet()->setTitle($file_name);\n\t\t// Set active sheet index to the first sheet, so Excel opens this as the first sheet\n\t\t$this->objPHPExcel->setActiveSheetIndex(0);\n\t\t// download the excel file\n\t\t$this->output($file_name);\n\t}", "private function setHeaderInformation()\n {\n $this->header = new \\stdClass();\n $request \t= \\Yii::$app->request;\n $requestHeaders = $request->getHeaders();\n foreach ($this->headerKey as $key => $value) {\n if ($requestHeaders->offsetExists($value)) {\n $this->header->$value = $requestHeaders->get($value);\n $this->header->status =200;\n } else {\n $this->header->status =500;\n yii::error('Header '.$value.\" is missing\", 'api_request');\n break;\n }\n }\n }", "private function _putHeader(&$pdf, $point_y, $acc_bgn_x, $fullname_x, $user)\n {\n // account beginning\n $Term = ClassRegistry::init('Term');\n $term_data = $Term->find('first',array(\n 'conditions' => array('id' => $user['term_id']),\n 'fields' => array('Term.account_beggining','Term.account_end'),\n \t\t\t\t'recursive' => -1,\n ));\n $acc_beginning = explode('-', h($term_data['Term']['account_beggining']));\n $height = $point_y;\n $pdf->SetXY($acc_bgn_x, $height);\n $pdf->MultiCell(20, 5, isset($acc_beginning[0]) ? $this->heisei($acc_beginning[0]) : '', 0, 'L');\n $pdf->SetXY($acc_bgn_x+7.4, $height);\n $pdf->MultiCell(20, 5, isset($acc_beginning[1]) ? (int)$acc_beginning[1] : '', 0, 'L');\n $pdf->SetXY($acc_bgn_x+13, $height);\n $pdf->MultiCell(20, 5, isset($acc_beginning[2]) ? (int)$acc_beginning[2] : '', 0, 'L');\n\n // account end\n $acc_end = explode('-', h($term_data['Term']['account_end']));\n $height = $point_y + 5.6;\n $pdf->SetXY($acc_bgn_x, $height);\n $pdf->MultiCell(20, 5, isset($acc_end[0]) ? $this->heisei($acc_end[0]) : '', 0, 'L');\n $pdf->SetXY($acc_bgn_x+7.4, $height);\n $pdf->MultiCell(20, 5, isset($acc_end[1]) ? (int)$acc_end[1] : '', 0, 'L');\n $pdf->SetXY($acc_bgn_x+13, $height);\n $pdf->MultiCell(20, 5, isset($acc_end[2]) ? (int)$acc_end[2] : '', 0, 'L');\n\n // user full name\n //$fullname = mb_strimwidth($user['name'], 0, 56, '...', 'utf-8');\n $fullname = substr($user['name'], 0, 84);\n $height = (mb_strwidth($fullname, 'utf8') <= 28) ? $point_y + 3.3 : $point_y - 0.3;\n $pdf->SetXY($fullname_x, $height);\n $pdf->MultiCell(48, 5, $fullname, 0, 'L');\n }", "protected function _parseHeader() {}", "public function header()\n {\n }", "public function initCursedPage() {\n parent::setMedia();\n parent::initHeader();\n parent::initContent();\n parent::initFooter();\n parent::display();\n die();\n }", "function displayPageHeader($pageTitle)\r\n{\r\n $output = <<<ABC\r\n<!DOCTYPE html>\r\n<html>\r\n\r\n<head>\r\n \r\n <meta charset=\"UTF-8\" />\r\n <meta name=\"author\" content=\"Xin Tian\" />\r\n <meta name=\"description\" content=\"A site for shopping clothes\" />\r\n <meta name=\"keywords\" content=\"rainbow, clothes\" />\r\n <title>Rainbow $pageTitle</title>\r\n <link href=\"commonStyle.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n <link href=\"commonStyle1.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n</head>\r\n\r\n<body>\r\n<nav>\r\n \r\n <a style=\"font-size:45px\" id=\"homeTitleIn\" href=\"home.php\">RAINBOW</a>\r\n <a style=\"font-size:15px\" id=\"rightTitle1\" href=\"login.php\">Sign in</a>\r\n <a style=\"font-size:15px\" id=\"rightTitle2\" href=\"about.html\">About</a>\r\n <a style=\"font-size:15px\" id=\"bag\" href=\"shoppingCart.php\">ShoppingCart</a>\r\n \r\n </nav>\r\n\r\n \r\nABC;\r\n echo $output;\r\n}", "private function displayHeader(){\n\t\t\t$html = '<!doctype html>'.\"\\n\";\n\t\t\t$html .= '<!--[if LT IE 9]>'.\"\\n\";\n\t\t\t$html .= '<html class=\"ie\">'.\"\\n\";\n\t\t\t$html .= '<![endIF]-->'.\"\\n\";\n\t\t\t$html .= '<!--[if !IE]><!-->'.\"\\n\";\n\t\t\t$html .= '<html>'.\"\\n\";\n\t\t\t$html .= '<!--<![endif]-->'.\"\\n\";\n\t\t\t$html .= '<head>'.\"\\n\";\n\t\t\t$html .= '<title> PCInsight | ' .$this->pageInfo['pageTitle'].'</title>'.\"\\n\";\n\t\t\t$html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"scripts/loadCSS.php\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"shortcut icon\" type=\"image/png\" href=\"resources/images/favicon.png\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"icon\" type=\"image/x-icon\" href=\"resources/images/favicon.ico\" />'.\"\\n\";\n\t\t\t$html .= '<meta charset=\"UTF-8\" />'.\"\\n\";\n\t\t\t$html .= '<meta name=\"description\" content=\"'.$this->pageInfo['pageDescription'].'\" />'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/lib/jquery-1.10.2.min.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/js/main.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '</head>'.\"\\n\";\n\t\t\t$html .= '<body class=\"nojs\">'.\"\\n\";\n\t\t\t$html .= '<div id=\"topbar\" class=\"clearfix\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"wrapper\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"left\">'.\"\\n\";\n\t\t\t$html .= '<h1 class=\"mainHeader\"><a href=\"index.php\"><span> PC</span>insight </a></h1>'.\"\\n\";\n\t\t\t$html .= '<nav>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\" accesskey=\"1\"> Home </a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=9\" accesskey=\"2\"> Articles </a></li>'.\"\\n\";\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\" accesskey=\"3\"> About </a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</nav>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"mobilenav\">'.\"\\n\";\n\t\t\t$html .= '<span class=\"mobileNavBu\"></span>'.\"\\n\";\n\t\t\t$html .= '<div class=\"menu\">'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\"> Home </a></li>'.\"\\n\"; \n\t\t\t$html .= '<li><a href=\"index.php?p=9\"> Articles </a></li>'.\"\\n\"; \t\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\"> About </a></li>'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<li><a href=\"index.php?p=2\" accesskey=\"4\"> Login </a></li>'.\"\\n\";\n\t\t\t\t$html .= '<li><a href=\"index.php?p=3\" accesskey=\"5\"> Register </a></li>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<li><a href=\"admin/\"> Admin </a></li>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '<li><a href=\"index.php?p=5\" accesskey=\"6\"> Logout </a></li>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\";\n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"search\"/>'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\t\t\t\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"right\">'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=2\"> Login </a>'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=3\"> Register </a>'.\"\\n\";\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=5\"> Logout </a>'.\"\\n\";\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<a href=\"admin/\"> Admin </a>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '<div class=\"search\">'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\"; \n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"Search\" />'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\tif (!$this->db->isRegistered()){\n\t\t\t\t$html .= '<div class=\"register\"><p> Please register your account <a href=\"index.php?p=13\">here</a></p></div>';\n\t\t\t}\n\t\t\treturn $html;\n\t\t}", "public function gismo_custom_header_section() {\n\t\t\n\t\t\t$screens = array( 'page', 'post' );\n\t\t\t\n\t\t\tif($this->settings['layout']['page_title'] == 'custom'){\n\t\t\t\t\n\t\t\t\tforeach ( $screens as $screen ) {\n\n\t\t\t\t\tadd_meta_box(\n\n\t\t\t\t\t\t'custom_header_section_id',\n\n\t\t\t\t\t\t__( 'Custom Header Section', 'custom_header_section_textdomain' ),\n\n\t\t\t\t\t\tarray($this,'gismo_custom_header_section_callback'),\n\n\t\t\t\t\t\t$screen\n\n\t\t\t\t\t);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}", "public function headerCallback($arrAdd);", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "function preDisplay( $pMid ) {\n\t\tglobal $gCenterPieces, $gBitSmarty, $gBitThemes, $gDefaultCenter;\n\n\t\t$gBitThemes->loadLayout();\n\n\t\t// check to see if we are working with a dynamic center area\n\t\tif( $pMid == 'bitpackage:kernel/dynamic.tpl' ) {\n\t\t\t// pre-render dynamic center content\n\t\t\t$dynamicContent = \"\";\n\t\t\tif( !empty( $gCenterPieces ) ){\n\t\t\t\tforeach ( $gCenterPieces as $centerPiece ){\n\t\t\t\t\t$gBitSmarty->assign( 'moduleParams', $centerPiece );\n\t\t\t\t\t$dynamicContent .= $gBitSmarty->fetch( $centerPiece['module_rsrc'] );\n\t\t\t\t}\n\t\t\t}elseif( $gDefaultCenter ){\n\t\t\t\t$dynamicContent = $gBitSmarty->fetch( $gDefaultCenter );\n\t\t\t}\n\t\t\t$gBitSmarty->assign( 'dynamicContent', $dynamicContent );\n\t\t}\n\n\t\t$gBitThemes->preLoadStyle();\n\n\t\t/* @TODO - fetch module php files before rendering tpls.\n\t\t * The basic problem here is center_list and module files are \n\t\t * processed during page rendering, which means code in those\n\t\t * files can not set <head> information before rendering. Kinda sucks.\n\t\t *\n\t\t * So what this does is, this calls on a service function allowing any\n\t\t * package to check if its center or other module file is going to be \n\t\t * called and gives it a chance to set any information for <head> first.\n\t\t * \n\t\t * Remove when TODO is complete. -wjames5\n\t\t */\n\t\tglobal $gBitUser;\n\t\tif( isset( $gBitUser )) {\n\t\t\t$gBitUser->invokeServices( 'module_display_function' );\n\t\t}\n\n\t\t// process layout\n\t\trequire_once( THEMES_PKG_PATH.'modules_inc.php' );\n\n\t\t$gBitThemes->loadStyle();\n\n\t\t/* force the session to close *before* displaying. Why? Note this very important comment from http://us4.php.net/exec\n\t\t\tedwin at bit dot nl\n\t\t\t23-Jan-2002 04:47\n\t\t\t\tIf you are using sessions and want to start a background process, you might\n\t\t\t\thave the following problem:\n\t\t\t\tThe first time you call your script everything goes fine, but when you call it again\n\t\t\t\tand the process is STILL running, your script seems to \"freeze\" until you kill the\n\t\t\t\tprocess you started the first time.\n\n\t\t\t\tYou'll have to call session_write_close(); to solve this problem. It has something\n\t\t\t\tto do with the fact that only one script/process can operate at once on a session.\n\t\t\t\t(others will be lockedout until the script finishes)\n\n\t\t\t\tI don't know why it somehow seems to be influenced by background processes,\n\t\t\t\tbut I tried everything and this is the only solution. (i had a perl script that\n\t\t\t\t\"daemonized\" it's self like the example in the perl manuals)\n\n\t\t\t\tTook me a long time to figure out, thanks [email protected]! :-)\n\n\t\t\t... and a similar issue can happen for very long display times.\n\t\t */\n\t\tsession_write_close();\n\t}", "function beginPage($pageTitle = 'Paalgeld Europa', $inContainer = true, $subTitle = ''){\n global $_inContainer, $_pageName, $_loadChosen, $_loadGoogleCharts, $_loadGoogleMaps;\n $_inContainer = $inContainer;\n require('inc/pagebegin.php');\n}" ]
[ "0.64847016", "0.6227221", "0.54541034", "0.54457843", "0.54350674", "0.5391063", "0.53523505", "0.5310973", "0.5279594", "0.5274549", "0.523391", "0.5224938", "0.5202166", "0.5199482", "0.5195606", "0.5190355", "0.51844", "0.51826537", "0.5156028", "0.51532614", "0.51531416", "0.5128389", "0.51283205", "0.51148564", "0.50801694", "0.5063066", "0.5058214", "0.5050383", "0.5049001", "0.50410634", "0.5040686", "0.50294363", "0.50039953", "0.49905273", "0.49830493", "0.49725178", "0.49686986", "0.49496594", "0.4947266", "0.49141723", "0.49004403", "0.4896008", "0.4885972", "0.48802692", "0.48630464", "0.4845157", "0.48436087", "0.4838536", "0.48365027", "0.4824173", "0.4818123", "0.4815701", "0.48104718", "0.4807744", "0.48073944", "0.4797843", "0.47913483", "0.47822243", "0.47818047", "0.47761047", "0.47524336", "0.47519183", "0.47516608", "0.4732761", "0.47271824", "0.47232205", "0.47071365", "0.46932095", "0.46923113", "0.46854568", "0.46835682", "0.46790555", "0.46688253", "0.4666963", "0.46648914", "0.46576825", "0.46570376", "0.4657017", "0.4645854", "0.46450016", "0.4640347", "0.46394396", "0.4627528", "0.46172866", "0.46087012", "0.4603362", "0.46007052", "0.45993766", "0.45975026", "0.45960686", "0.45935133", "0.45888367", "0.4581578", "0.45769998", "0.4575491", "0.45720914", "0.4571307", "0.4567032", "0.45618647", "0.45605162" ]
0.65150595
0
Display a listing of the resource.
public function index(ManageHotelCategoryRequest $request) { return view('hotelcategory::index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->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() { return view('hotelcategory::create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('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 //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\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 return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\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 $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\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 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 {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "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\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "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}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(CreateHotelCategoryRequest $request) { $hotelcategory = new HotelCategory($request->all()); $this->hotelcategory->save($hotelcategory); \Log::info($request->name.' Hotel Category Created By: ' . access()->user()->name); return redirect()->route('admin.hotelcategory.index')->withFlashSuccess(trans('hotelcategory::alerts.backend.hotelcategory.created')); }
{ "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.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(HotelCategory $hotelcategory) { $this->hotelcategory->delete($hotelcategory); \Log::info('Hotel Category ID '.$hotelcategory->id.'- Deleted By: ' . access()->user()->name); return redirect()->route('admin.hotelcategory.index')->withFlashSuccess(trans('hotelcategory::alerts.backend.hotelcategory.deleted')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $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
Concatenate the values in a specific $key of an $iterable with a ';'
protected function concatenateIntoString(array $iterable = null, $key, $nested = null, $nestedKey = null) { if (!is_null($iterable)) { $placeholders = []; if (!$nested) { foreach ($iterable as $iterate) { $placeholders[] = (is_array($iterate) && array_key_exists($key, $iterate)) ? $iterate[$key] : ''; } } else { foreach ($iterable as $iterate) { if (is_array($iterate) && array_key_exists($key, $iterate)) { foreach ($iterate[$key] as $nest) { $placeholders[] = (is_array($nest) && array_key_exists($nestedKey, $nest)) ? $nest[$nestedKey] : ''; } } } } return implode(';', $placeholders); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function implode_assoc(array $array, $betweenKeyAndValue, $beforeItems='', $afterItems='') {\n\t$result = '';\n\tforeach ($array as $k=>$v) {\n\t\t$result .= $beforeItems.$k.$betweenKeyAndValue.$v.$afterItems;\n\t}\n\treturn $result;\n}", "function Array2Str($kvsep, $entrysep, $a){\n $str = \"\";\n foreach ($a as $k=>$v){\n $str .= \"{$k}{$kvsep}{$v}{$entrysep}\";\n }\n return $str;\n}", "function implode_assoc($array, array $overrideOptions = array())\n {\n\n // These default options set the defaults but are over-written by matching values from $overrideOptions\n $options = array(\n 'inner_glue' => '=',\n 'outer_glue' => '&',\n 'prepend' => '',\n 'append' => '',\n 'skip_empty' => false,\n 'prepend_inner_glue' => false,\n 'append_inner_glue' => false,\n 'prepend_outer_glue' => false,\n 'append_outer_glue' => false,\n 'urlencode' => false,\n 'part' => 'both' //'both', 'key', or 'value'\n );\n\n // Use values from $overrideOptions that match keys in $options and then extract those values into\n // the current workspace.\n foreach ($overrideOptions as $key=>$val) {\n if (isset($options[$key])) {\n $options[$key] = $val;\n }\n }\n extract($options);\n\n // $output holds the imploded results of the key-value pairs\n $output = array();\n\n // Create a collection of the inner key-value pairs and glue them as indicated by the $options\n foreach ($array as $key=>$item) {\n\n // If not skipping empty values OR if the item evaluates to true.\n // i.e. If $skip_empty is true then check to see if the array item's value evaluates to true.\n if (!$skip_empty || $item) {\n\n $output[] =\n ($prepend_inner_glue ? $inner_glue : '').\n ($part != 'value' ? $key : ''). // i.e. show the $key if $part is 'both' or 'key'\n ($part == 'both' ? $inner_glue : '').\n // i.e. show the $item if $part is 'both' or 'value' and optionally urlencode $item\n ($part != 'key' ? ($urlencode ? urlencode($item) : $item) : '').\n ($append_inner_glue ? $inner_glue : '');\n }\n }\n\n return $prepend. ($prepend_outer_glue ? $outer_glue : '') . implode($outer_glue, $output) . ($append_outer_glue ? $outer_glue : '') . $append;\n }", "function implode_assoc( $inner_glue, $outer_glue, $array ) {\n\t$output = array();\n\tforeach( $array as $key => $item ) {\n\t\t$output[] = $key . $inner_glue . urlencode( $item );\n\t}\n\treturn implode( $outer_glue, $output );\n}", "function implode_assoc($inner_glue,$outer_glue,$array,$skip_empty=false){\n\t\t$output=array();\n\t\tforeach($array as $key=>$item) {\n\t\t\tif(!$skip_empty || isset($item)) {\n\t\t\t\t$output[] = $key.$inner_glue.$item;\n\t\t\t}\n\t\t}\n\n\t\treturn implode($outer_glue,$output);\n\t}", "public function join($values);", "function implode_assoc($inner_glue, $outer_glue, $array) {\n $output = array();\n foreach($array as $key => $item) {\n $output[] = $key . $inner_glue . urlencode($item);\n }\n return implode($outer_glue, $output);\n}", "function implode_assoc_r ($inner_glue = \"=\", $outer_glue = \"\\n\", $array = null, $keepOuterKey = false) {\n\t\t$output = array();\n\t\tforeach($array as $key => $item ) {\n\t\t\tif (is_array ($item)) {\n\t\t\t\tif ($keepOuterKey) {\n\t\t\t\t\t$output[] = $key;\n\t\t\t\t}\n\t\t\t\t$output[] = implode_assoc_r ($inner_glue, $outer_glue, $item, $keepOuterKey);\n\t\t\t} else {\n\t\t\t\t$output[] = $key . $inner_glue . $item;\n\t\t\t}\n\t\t}\n\t\treturn implode($outer_glue, $output);\n\t}", "public function testImplodeArrayWithKeys()\n {\n $this->assertEquals(\n StringUtils::QUOTE . static::TEST_STRING . StringUtils::QUOTE . '=' . StringUtils::QUOTE . static::TEST_STRING\n . StringUtils::QUOTE,\n StringUtils::implodeRecursively(\n array(static::TEST_STRING => static::TEST_STRING),\n StringUtils::EMPTY_STR,\n null,\n true\n )\n );\n }", "function expression_function_join($collection, $glue = '')\n{\n if ($collection instanceof \\Iterator) {\n $collection = iterator_to_array($collection);\n }\n if (is_array($collection)) {\n return implode($glue, $collection);\n } else {\n throw new \\InvalidArgumentException('Collection must be an array or an Iterator');\n }\n}", "public function join($imploder = '')\n {\n return Str(implode($imploder, $this->array));\n }", "function implodeArray($array, $glue = ' = ') {\n $return = $array;\n if (is_array($array)) {\n $return = '';\n foreach ($array as $key => $value) {\n if ($return != '') {\n $return .= PHP_EOL;\n }\n $return .= $key . $glue . $value;\n }\n }\n return $return;\n}", "function combinevalues($arr)\n{\n\t$ret=\"\";\n\tforeach($arr as $item)\n\t{\n\t\t$val = $item;\n\t\tif(strlen($ret))\n\t\t\t$ret.=\",\";\n\t\tif(strpos($val,\",\")===false && strpos($val,'\"')===false)\n\t\t\t$ret.=$val;\n\t\telse\n\t\t{\n\t\t\t$val=str_replace('\"','\"\"',$val);\n\t\t\t$ret.='\"'.$val.'\"';\n\t\t}\n\t}\n\treturn $ret;\n}", "static function key() {\n return implode(self::JOIN, func_get_args());\n }", "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 }", "function array_implode($glue, $separator, $array) {\r\n if (!is_array($array))\r\n return $array;\r\n $string = array();\r\n foreach ($array as $key => $val) {\r\n if (is_array($val))\r\n $val = implode(',', $val);\r\n $string[] = \"{$key}{$glue}{$val}\";\r\n }\r\n return implode($separator, $string);\r\n}", "private function prepareValuesRow(): string\n {\n $values = [];\n foreach ($this->storage as $key => $value) {\n $values[] = \"('{$key}', '{$value}')\";\n }\n\n return implode(', ', $values);\n }", "function listItems($var)\n{\n\n $string = '';\n\n foreach ($var as $key => $value) {\n $key++;\n $string .= \"[$key]\" . $value . PHP_EOL;\n }\n\n return $string; \n}", "function encodeKeyValueSet($set)\n{\n\treset($set);\n\t$items = Array();\n\twhile (list($key, $value) = each($set))\n\t{\n\t\t$items[] = $key.\"=\".$value;\n\t}\n\treturn implode(\" AND \",$items);\n}", "public function implode($value, $glue = '');", "function addComma($arr) \r\n{\r\n foreach ($arr as $key => $value) {\r\n if ($key == 0){\r\n echo $value;\r\n }\r\n else\r\n echo ',' . $value;\r\n }\r\n}", "function list_items($items) {\n $string = '';\n foreach ($items as $key => $item) {\n $key++;\n $string .= \"[{$key}] {$item}\". PHP_EOL;\n\n }\n \nreturn $string;\n}", "public function testJoinSingleString()\n {\n $this->assertEquals('5', StringFilter::joinValues('5'));\n $this->assertEquals('5,6', StringFilter::joinValues('5,6'));\n }", "public function visitForeachStatement(\n /*IForeachStatement*/ $node) /*: mixed*/ {\n $collection = /*(string)*/$node->getCollection()->accept($this);\n $key = null;\n $key_value = $node->getKey();\n if ($key_value !== null) {\n $key = /*(string)*/$key_value->accept($this);\n }\n $value = /*(string)*/$node->getValue()->accept($this);\n $this->blockIndent = ' ';\n $block = /*(string)*/$node->getBlock()->accept($this);\n\n $result = $this->indent.'foreach (';\n $result .= $collection.' as ';\n if (is_string($key)) {\n $result .= $key.' => ';\n }\n $result .= $value.')'.$block.\"\\n\";\n return $result;\n }", "function collect($Key, $Escape = true) {\n\t\t$Return = array();\n\t\twhile ($Row = mysqli_fetch_array($this->QueryID)) {\n\t\t\t$Return[] = $Escape ? display_str($Row[$Key]) : $Row[$Key];\n\t\t}\n\t\tmysqli_data_seek($this->QueryID, 0);\n\t\treturn $Return;\n\t}", "static public function implode ( &$pdoparams, $arr )\n\t{\n\t\t$tmp = array(); \n\t\tforeach ($arr as $val)\n\t\t{ \n\t\t\t$key = ':implode' . self::$escapecounter++; \n\t\t\t$pdoparams[$key] = $val; \n\t\t\t$tmp[] = $key; \n\t\t} \n\t\treturn implode (',', $tmp); \n\t}", "protected function transpileEndForeach(): string\n {\n return '<?php endforeach; ?>';\n }", "function join_terms($terms, &$out_keys = null, &$out_vals = null) {\n\n\t$ovals = $okeys = [];\n\t$term = [];\n\tforeach ($terms as $k => $v) {\n\t\tif ( is_null($v) )\n\t\t\t$v = \"NULL\";\n\n\t\t$term[] = \"`$k` = $v\";\n\n\t\tif ( !is_null($out_keys) )\n\t\t\t$okeys[] = \"`$k`\";\n\t\tif ( !is_null($out_vals) )\n\t\t\t$ovals[] = $v;\n\t}\n\n\tif ( !is_null($out_keys) )\n\t\t$out_keys = implode(', ', $okeys);\n\tif ( !is_null($out_vals) )\n\t\t$out_vals = implode(', ', $ovals);\n\n\t$pairs = null;\n\tif ( sizeof($term) > 0 )\n\t\t$pairs = implode(', ', $term);\n\n\treturn $pairs;\n}", "private function implodeWithPrepare($arr) {\r\n\t\t$result='';\r\n\t\t\r\n\t\t$first=true;\r\n\t\tforeach($arr as $tr) {\r\n\t\t\t//separate with commas\r\n\t\t\tif(!$first)\r\n\t\t\t\t$result.=\",\";\r\n\t\t\telse \r\n\t\t\t\t$first=false;\r\n\t\t\r\n\t\t\t//every entry in single quotes\r\n\t\t\t$result.=\"'\";\r\n\t\t\t$result.=$this->prepare($tr);\r\n\t\t\t$result.=\"'\";\r\n\t\t}\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "public function join(string $glue): string {\n\t\t$inner_glue = '';\n\t\t$glued_values = '';\n\t\tforeach ($this as $value) {\n\t\t\t$glued_values .= $inner_glue . $value;\n\t\t\t$inner_glue = $glue;\n\t\t}\n\t\treturn $glued_values;\n\t}", "function mf_implode_array_chuncks($input_array){\n\t\treturn implode('&', $input_array);\n\t}", "public function join(AssocValue $other): AssocValue;", "protected function doConcatenate() {}", "public function getArrayString($key)\n {\n\n if (isset($this->data[$key])) {\n $array = Db::getActive()->dbArrayToArray($this->data[$key]);\n\n if (is_null($array))\n return null;\n\n return implode(';', $array);\n } else {\n return null;\n }\n\n }", "public function associativeStringArrayValue($key);", "protected function implodeArray($arr) {\n $retStr = '';\n foreach($arr as $key => $value) {\n $retStr .= $key . ': ' . $value . ', ';\n }\n rtrim($retStr, ', ');\n return $retStr;\n }", "function array_to_string($array){\n $joined_string=\"\";\n for($count=0;$count<count($array);$count++){\n \n if($count!=count($array)-1){\n $joined_string.= $array[$count].'|';\n }\n else{\n $joined_string.=$array[$count];\n }\n }\n return $joined_string;\n }", "function implode_danish_list(array $input)\n {\n $output = \"\";\n for ($i = 0; $i < count($input); $i++) {\n if ($i == count($input) - 1) {\n $output .= \" og \";\n } else if ($i > 0) {\n $output .= \", \";\n }\n $output .= $input[$i];\n }\n return $output;\n }", "protected function assocToString($array, $keyValueSeparator = ' - ', $pairSeparator = '; ')\n {\n if (! is_array($array)) {\n return print_r($array, true);\n }\n\n foreach ($array as $key => &$value) {\n $value = $key . $keyValueSeparator . $value;\n }\n return implode($pairSeparator, $array);\n }", "public function implode(string $separator): string\n {\n return implode($separator, $this->items);\n }", "function array_to_string($array)\n{\n $str = '';\n if($array)\n foreach($array as $word) {\n $str .= $seporator . addslashes($word);\n $seporator = ',';\n }\n return $str;\n}", "function buildKeywords($array): string {\n\n $keywords = null;\n\n foreach ( $array as $key => $value ) {\n\n foreach ( $value as $key_2 => $value_2 ) {\n \n if ( next($value) ) {\n $keywords = $keywords . \"(\" . $value_2 . \") OR \";\n } else {\n $keywords = $keywords . \"(\" . $value_2 . \")\";\n }\n \n }\n }\n\n return $keywords;\n}", "public function __toString()\n {\n return implode($this->separator, $this->data);\n }", "function mdl_unique_iterable($iterable, string $key = null)\n{\n $keys = [];\n foreach ($iterable as $k => $value) {\n # code...\n // Case the searched key does not exist, we simply add it to the output\n if (!isset($value[$key])) {\n yield $k => $value;\n continue;\n }\n if (array_key_exists($value[$key], $keys)) {\n continue;\n }\n $keys[$value[$key]] = true;\n yield $k => $value;\n }\n}", "public function concatenate($values, $separator = null)\n {\n if ($separator) {\n return '(' . implode('+' . $this->quote($separator) . '+', $values) . ')';\n } else {\n return '(' . implode('+', $values) . ')';\n }\n }", "function stringify_array ($array_obj, $value_separator)\n{\n\tif(is_array($array_obj))\n\t{\n\t\tforeach($array_obj as $val)\n\t\t{\n\t\t\tif(is_array($val))\n\t\t\t{\n\t\t\t\t$value_separator .= stringify_array($val, $value_separator);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$value_separator .= $val. \"|\";\n\t\t\t}\n \t\n\t\t}\n\t\treturn $value_separator;\n\t}\n\telse\n\t{\n\t\treturn $value_separator = \"ERROR : $array_obj is not an array\";\n\t}\n}", "public function convertMeToString($glue,$arr){\n return implode($glue , $arr);\n}", "function collapse_args($args) {\n\t\t\n\t\t$kv = array();\n\t\t\n\t\tforeach($args as $key => $value) {\n\t\t\t$kv[] = urlencode($key) . \"=\" . urlencode($value);\n\t\t}\n\t\t\n\t\treturn implode(\"&\", $kv);\n\t\t\n\t}", "private static function combineValues(array $source, $column_char = '= :', $row_char = ',')\n {\n $result = [];\n foreach ($source as $row) {\n $result[] = '\"'.$row.'\"'.$column_char.$row;\n }\n return implode($row_char, $result);\n }", "private function wrapIterable(iterable $iterable): Generator\n {\n foreach ($iterable as $key => $value) {\n yield $key => $value;\n\n $this->iteratorAdvanced = true;\n }\n\n $this->iterator = null;\n }", "function printLine($array){\r\n\t$qual = \"\\\"\";\r\n\t$len = count($array, 0)-1;\r\n\tforeach($array as $key => $val){\r\n\t\tif ($val != \"\") echo \"{$qual}\" . str_replace('\"', \"'\", $val) . \"{$qual}\";\r\n\t\telse echo \"{$qual}unknown{$qual}\";\r\n\t\t\r\n\t\tif ($len > $key) echo \",\";\r\n\t}\r\n\techo \"\\n\";\r\n}", "public function __toString(): string\n {\n return implode(',', $this->items);\n }", "function util_array_values_prepend(&$item, $key, $prefix)\n{\n $item = $prefix.$item;\n}", "public function getFillIterable(): iterable;", "public function toString() {\r\n return implode($this->result);\r\n }", "protected static function concat( /*varags*/ ) {\n\t\t$args = array();\n\t\tforeach ( func_get_args() as $arg ) {\n\t\t\tif ( is_array( $arg ) ) {\n\t\t\t\t$args = array_merge( $args, $arg );\n\t\t\t} else {\n\t\t\t\t$args[] = $arg;\n\t\t\t}\n\t\t}\n\n\t\treturn implode( ' ', $args );\n\t}", "private function compileOldGET($key, $value, $prepend = '', $append = '')\n {\n if (is_array($value)) {\n # init string\n $string = '';\n # appen\n foreach ($value as $item) {\n $string .= $this->compileOldGET($key, $item, '[', ']');\n }\n # return\n return $string;\n }\n # append return\n return '&' . $key . '=' . $prepend.$value.$append;\n }", "public function testJoinSingleInt()\n {\n $this->assertEquals('5', StringFilter::joinValues(5));\n }", "function concat_attr() {\n $str = \"\";\n if ($this->other_attr != NULL) {\n foreach($this->other_attr as $field => $value) {\n $str .= $field.'=\"'.$value.'\" ';\n }\n }\n return $str;\n }", "function d2d_implode($array) {\n if (!is_array($array)) {\n return FALSE;\n }\n $escaped_array = array();\n foreach ($array as $key => $value) {\n // escape separators and escape-character in $key\n $key = d2d_replace(array('\\\\', ',', '='), array('\\\\\\\\', '\\\\,', '\\\\='), $key);\n if ($key === FALSE) { // replacement failed\n return FALSE;\n }\n // encode $value\n $value = d2d_value_encode($value);\n // escape separators and escape-character in $value\n $value = d2d_replace(array('\\\\', ',', '='), array('\\\\\\\\', '\\\\,', '\\\\='), $value);\n if ($value === FALSE) { // replacement failed\n return FALSE;\n }\n $escaped_array[] = \"{$key}={$value}\";\n }\n return implode(',', $escaped_array);\n}", "private function joinParams($params)\n {\n $paramString = '';\n foreach($params as $key => $val)\n {\n if($paramString !== '')\n $paramString .= '&';\n $paramString .= $key . '=' . rawurlencode($params[$key]);\n }\n return $paramString;\n }", "private function arrayAssocToString($array){\n\t\t$i = 0;\n\t\t$string = '';\n\t\tforeach ($array as $key => $value) {\n\t\t\tif ($i > 0) $string .= ', ';\n\t\t\tif (preg_match('#', $value)){\n\t\t\t\t$string .= str_replace('#', '', $value);\n\t\t\t}else{\n\t\t\t\t$string .= $key .\"='\".$value.\"'\";\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn $string;\n\t}", "function intersperse($value)\n{\n return function (array $list) use ($value) {\n $tmpArr = [];\n $size = \\count($list);\n\n foreach ($list as $key => $v) {\n \\array_push($tmpArr, $v);\n\n if ($key + 1 < $size)\n \\array_push($tmpArr, $value);\n }\n\n return $tmpArr;\n };\n}", "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 }", "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\t{\n\t\t$output = '';\n\n\t\tforeach (array_keys($this->data) as $key) {\n\t\t\tif (is_array($this->data[$key])) {\n\t\t\t\t$output .= implode(PHP_EOL, $this->data[$key]) . PHP_EOL;\n\t\t\t} else {\n\t\t\t\t$output .= $this->data[$key] . PHP_EOL;\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "public function build(): string\n {\n return implode(' ', $this->items);\n }", "public function transform($val)\n {\n if (null === $val) {\n return '';\n }\n \n if ($val instanceof ArrayCollection) {\n $val = $val->toArray();\n }\n \n return is_array($val) ? implode($this->delimiter, $val) : '';\n }", "public function get_values(){\n $value_str = '';\n if (is_array($this->value)){\n foreach ($this->value as $val){\n $value_str .= $val.' ';\n }\n } else {\n $value_str .= $this->value;\n }\n\n return $value_str;\n }", "public function native($items)\n {\n $result = '';\n if (!empty($items) && is_array($items)) {\n $arrayLength = count($items);\n\n foreach ($items as $key => $item) {\n if($key == 0) { // first item with empty prepend\n $result .= $item;\n } elseif ($key == $arrayLength-1) { //last item with prepend and\n $result .= \" and $item\";\n } else { //other items with coma\n $result .= \", $item\";\n }\n }\n }\n\n return $result;\n }", "public static function str_putcsv($array, $delimiter = ';', $enclosure = '\"', $terminator = \"\\r\\n\") // выдает массив в виде строки csv\n/*\n\t$arOrderFields определяет порядок расположения полей. \n*/\n\t{\n\t\tforeach ($array as $key => $value) $workArray[] = $value; \n\n\n\t\t$returnString = '';\t\t\t\t# Initialize return string \n\t\t$arraySize = count($workArray);\t# Get size of array \n\t\t\n\t\tfor ($i=0; $i<$arraySize; $i++) { \n\t\t\t# Nested array, process nest item \n\t\t\tif (is_array($workArray[$i])) { \n\t\t\t\t$returnString .= str_putcsv($workArray[$i], $delimiter, $enclosure, $terminator); \n\t\t\t} else {\n\t\t\t\tswitch (gettype($workArray[$i])) { \n\t\t\t\t\t# Manually set some strings \n\t\t\t\t\tcase \"NULL\":\t$_spFormat = ''; break; \n\t\t\t\t\tcase \"boolean\": $_spFormat = ($workArray[$i] == true) ? 'true': 'false'; break; \n\t\t\t\t\t# Make sure sprintf has a good datatype to work with \n\t\t\t\t\tcase \"integer\": $_spFormat = '%d'; break; \n\t\t\t\t\tcase \"double\": $_spFormat = '%0.2f'; break; \n\t\t\t\t\tcase \"string\": {\n\t\t\t\t\t\t$workArray[$i]=str_replace($enclosure, $enclosure.$enclosure, $workArray[$i]);\n\t\t\t\t\t\t$_spFormat = '%s';\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t}\n\t\t\t\t\t# Unknown or invalid items for a csv - note: the datatype of array is already handled above, assuming the data is nested \n\t\t\t\t\tcase \"object\": \n\t\t\t\t\tcase \"resource\": \n\t\t\t\t\tdefault:\t\t$_spFormat = ''; break; \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$returnString .= sprintf('%2$s'.$_spFormat.'%2$s', $workArray[$i], $enclosure); \n\t\t\t\t$returnString .= ($i < ($arraySize-1)) ? $delimiter : $terminator; \n\t\t\t}\n\t\t} \n\t\t# Done the workload, return the output information \n\t\treturn $returnString;\n\t}", "protected function getKeywordsString() {\r\n\t\treturn implode(', ', $this->keywords);\r\n\t}", "function benc_list($a) {\n\t$s = \"l\";\n\tforeach ($a as $e) {\n\t\t$s .= benc($e);\n\t}\n\t$s .= \"e\";\n\treturn $s;\n}", "public function concat(Semigroup $value);", "public function join($glue = '')\n {\n return implode($glue, $this->values);\n }", "public function _restructureParams($params)\n{\nif (empty($params))\n{\nreturn '';\n}\n\n$temp = array();\n\nforeach ($params as $key => $value)\n{\n$temp[] = sprintf('%s=%s', $key, $value);\n}\n\nreturn implode(';', $temp);\n}", "function usps_cfg_multiinput_list($select_array, $key_value, $key = '') {\r\n\t$key_values = explode( \", \", $key_value);\r\n\r\n\tfor ($i=0; $i<sizeof($select_array); $i++) {\r\n\t\t$name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');\r\n\t\t$string .= '<br /><input type=\"text\" name=\"' . $name . '\" value=\"' . $key_values[$i] . '\" size=\"7\"> ' . $select_array[$i];\r\n\t}\r\n\t$string .= '<input type=\"hidden\" name=\"' . $name . '\" value=\"--none--\">';\r\n\treturn $string;\r\n}", "public function arraytostring($array,$delimitatore=','){\n\t\treturn implode($delimitatore,$array);\n\t}", "function printIterable(iterable $myIterable) {\n foreach($myIterable as $item) {\n echo $item;\n }\n }", "function imploder($array = array(), $index = 'id', $delimiter = ',')\n {\n if (is_object($array)) \n {\n $array = json_decode(json_encode($array), TRUE);\n } \n\n $new_array = [];\n foreach ($array as $value) {\n $new_array[] .= $value[$index];\n }\n return implode($delimiter, $new_array);\n }", "public function arraymultitostring($array,$delimitatore1='=',$delimitatore2=','){\n\t\t$stringa='';\n\t\t$i=0;\n\t\tforeach($array as $a=>$c){\n\t\t\t$stringa.=$a.$delimitatore1.$c;\n\t\t\t$i++;\n\t\t\tif($i!=count($array)){\n\t\t\t\t$stringa.=$delimitatore2;\n\t\t\t}\n\t\t}\n\t\treturn $stringa;\n\t}", "function list_items($list)\n{\n // Create empty starter string\n $listString = '';\n \n // Loop through an array $list to pull out $key and $items from the array.\n foreach ($list as $key => $items) {\n // Increment $key so list number starts at 1 rather than 0.\n $key++;\n // Concatenate each list item to $listString\n $listString .= \"[{$key}] {$items}\" . PHP_EOL;\n }\n return $listString;\n}", "protected function transpileForeach($expression): string\n {\n return \"<?php foreach{$expression}: ?>\";\n }", "private function renderizeData($keys, $values) {\n $str = \"\";\n foreach ($keys as $key => $value) {\n if($key == count($keys) - 1) {\n $str = $str . $value . \"='\" . $values[$key] . \"'\";\n } else {\n $str = $str . $value . \"='\" . $values[$key] . \"',\"; \n }\n }\n return $str;\n }", "function __toString() {\r\n return implode('', $this->list);\r\n }", "function getInputAsString($values) {\n $output = \"\";\n foreach ($values as $value) {\n $output .= $value;\n }\n return $output; \n}", "public function transform($value) : string\n {\n /** @var Tag $value */\n return implode(',', $value);\n }", "private function append($key, $val)\n {\n $this->_data[$key] = sprintf(\"%s%s%s\", $this->_data[$key], $this->_join, $val);\n }", "protected function buildValuesForInsert()\n {\n return ' ('\n . $this->indentCsv(array_keys($this->col_values))\n . PHP_EOL . ') VALUES ('\n . $this->indentCsv(array_values($this->col_values))\n . PHP_EOL . ')';\n }", "public function implode($glue = ', '): string;", "private function keyvalSeparate($input){\n unset($this->keys);\n unset($this->values); \n \n foreach($input as $key => $value){\n $this->keys[] = $key;\n $this->values[] = $value;\n } \n }", "function set($keys, $data) {\n\n $SET = array();\n\n foreach ($keys as $key) {\n $index = $key;\n $value = $data[$key];\n $SET[] = \"`$index` = '\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(', ', $SET);\n}", "function str_values(){\n //\n //map the std objects inthe array to return an array of strings of this \n //format ['cname=value'......]\n $values_str= array_map(function($obj){\n //\n //Trim the spaces\n $tvalue = trim($obj->value);\n //\n //Replace '' with null\n $value = $tvalue=='' ? 'null': \"'$tvalue'\";\n //\n return \"`$obj->name`=$value\";\n \n }, $this->values);\n //\n //retun the imploded version of the array with a , separator\n return implode(\",\",$values_str);\n }", "private function buildValues(iterable $values): Generator\n {\n foreach ($values as $key => $value) {\n yield $key => new Value($value);\n }\n }", "public function implode($delimiter = \",\")\n\t{\n\t\treturn implode($delimiter, $this->attributes);\n\t}", "public function join($separator = ',')\n {\n return implode($separator, $this->stack);\n }", "function paramify(array $array, $valueItem=null, $delimiter=\"&\", $hiddenKeyRegex=null) {\r\n\t$params = array();\r\n\tforeach ($array as $key=>$value) {\r\n\t\tif (isset($hiddenKeyRegex) && preg_match($hiddenKeyRegex, $key)) {\r\n\t\t\t$value = \"{HIDDEN}\";\r\n\t\t} else if (is_array($value)) {\r\n\t\t\t$value = $value[$valueItem];\r\n\t\t} else if (is_object($value)) {\r\n\t\t\t$value = $value->{$valueItem};\r\n\t\t}\r\n\t\t$params[] = \"{$key}=\" . json_encode($value);\r\n\t}\r\n\treturn implode($delimiter, $params);\r\n}", "static function implode($separator,$array){\n\t\tArrays::remove($array);\n\t\treturn implode($separator,$array);\n\t}", "function list_items($list)\n{\n\t$result = '';\n\tforeach ($list as $key => $value) {\n // Display each item and a newline\n $add = $key + 1; \n $result .= \"[{$add}] {$value}\\n\";\n }\n\t\n\treturn $result;\n}", "function Concat()\n\t{\n\t\t$s = \"\";\n\t\t$arr = func_get_args();\n\n\t\tif (sizeof($arr) == 1) {\n\t\t\tforeach ($arr as $arg) {\n\t\t\t\t$args = explode(',', $arg);\n\t\t\t}\n\t\t\t$arr = $args;\n\t\t}\n\n\t\tarray_walk($arr, create_function('&$v', '$v = \"CAST(\" . $v . \" AS VARCHAR(255))\";'));\n\t\t$s = implode('+',$arr);\n\t\tif (sizeof($arr) > 0) return \"$s\";\n\t\treturn '';\n\t}" ]
[ "0.60571873", "0.56504756", "0.55606633", "0.5523884", "0.5509592", "0.55056274", "0.55006605", "0.5498649", "0.5498601", "0.5484996", "0.5363549", "0.5248946", "0.5230871", "0.5226835", "0.52266455", "0.5163507", "0.5156881", "0.5115551", "0.5114725", "0.5067441", "0.4996692", "0.49766654", "0.4974026", "0.49657843", "0.49461073", "0.49398738", "0.49332643", "0.49289486", "0.4925515", "0.49221885", "0.49174565", "0.49070388", "0.4894948", "0.48898232", "0.48818725", "0.48753434", "0.48537594", "0.48367777", "0.48159897", "0.48024234", "0.47965476", "0.47955683", "0.4790323", "0.47798583", "0.47787946", "0.4774217", "0.47584748", "0.47544566", "0.4746866", "0.47315818", "0.4726075", "0.47245526", "0.4711815", "0.4710724", "0.4710075", "0.47023928", "0.4700923", "0.46824363", "0.46806848", "0.46712506", "0.46703443", "0.46695453", "0.46694073", "0.4667502", "0.4663138", "0.4652997", "0.46524373", "0.46458793", "0.46436062", "0.46423295", "0.46390164", "0.4628859", "0.46127942", "0.4611959", "0.46056587", "0.46056524", "0.4597647", "0.4581918", "0.45817333", "0.45796043", "0.45786846", "0.4577778", "0.45777684", "0.45766136", "0.45763597", "0.45679358", "0.45641965", "0.45580992", "0.45519352", "0.45511547", "0.45409077", "0.45408648", "0.45399183", "0.45289314", "0.45233873", "0.45218256", "0.45145118", "0.45091328", "0.45087442", "0.45082837" ]
0.62865454
0
Concatenate values from different relations of an Activity.
protected function concatenateRelation(Model $relatedModel, $relatedColumn, $key, $nested = null, $nestedKey = null) { $relatedModel = $relatedModel->$relatedColumn; if (!$nested && !$nestedKey) { return getVal($relatedModel, [$key]); } return getVal($relatedModel, [$key, 0, $nestedKey], ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function doConcatenate() {}", "function concat_attr() {\n $str = \"\";\n if ($this->other_attr != NULL) {\n foreach($this->other_attr as $field => $value) {\n $str .= $field.'=\"'.$value.'\" ';\n }\n }\n return $str;\n }", "protected static function concat( /*varags*/ ) {\n\t\t$args = array();\n\t\tforeach ( func_get_args() as $arg ) {\n\t\t\tif ( is_array( $arg ) ) {\n\t\t\t\t$args = array_merge( $args, $arg );\n\t\t\t} else {\n\t\t\t\t$args[] = $arg;\n\t\t\t}\n\t\t}\n\n\t\treturn implode( ' ', $args );\n\t}", "public function transform($activities)\n {\n if (null === $activities) {\n return '';\n }\n $result = [];\n foreach ($activities as $activity) {\n $result[] = $activity->getName();\n }\n return implode(', ', $result);\n }", "public function join($values);", "protected function concatenate($segments): string\n {\n return implode(' ', array_filter($segments, fn ($value) => (string) $value !== ''));\n }", "public function concatenate($values, $separator = null)\n {\n if ($separator) {\n return '(' . implode('+' . $this->quote($separator) . '+', $values) . ')';\n } else {\n return '(' . implode('+', $values) . ')';\n }\n }", "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 join(string $glue): string {\n\t\t$inner_glue = '';\n\t\t$glued_values = '';\n\t\tforeach ($this as $value) {\n\t\t\t$glued_values .= $inner_glue . $value;\n\t\t\t$inner_glue = $glue;\n\t\t}\n\t\treturn $glued_values;\n\t}", "function Concat()\n\t{\n\t\t$num_args = func_num_args();\n\t\tif ($num_args < 1) {\n\t\t\treturn func_get_arg(0);\n\t\t}\n\t\t$all_args = func_get_args();\n\t\t$returnstring = implode(' || ', $all_args);\n\t\treturn $returnstring;\n\t}", "function __toString()\n {\n return \"combined attributes comma separated\";\n\n }", "function Concat() {}", "function Concat()\n\t{\n\t\t$s = \"\";\n\t\t$arr = func_get_args();\n\n\t\tif (sizeof($arr) == 1) {\n\t\t\tforeach ($arr as $arg) {\n\t\t\t\t$args = explode(',', $arg);\n\t\t\t}\n\t\t\t$arr = $args;\n\t\t}\n\n\t\tarray_walk($arr, create_function('&$v', '$v = \"CAST(\" . $v . \" AS VARCHAR(255))\";'));\n\t\t$s = implode('+',$arr);\n\t\tif (sizeof($arr) > 0) return \"$s\";\n\t\treturn '';\n\t}", "public function join($glue = '')\n {\n return implode($glue, $this->values);\n }", "protected function concatenate(array $segments)\n {\n return implode(' ', array_filter($segments, function ($value) {\n return (string)$value !== '';\n }));\n }", "protected static function combined ()\n {\n $numbers = implode(\"\", static::$numbers);\n return $numbers;\n }", "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}", "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 }", "protected function merge($to, $cc, $bcc)\n {\n if ($to && !is_array($to)) {\n $to = array($to);\n }\n if (!is_array($cc)) {\n $cc = array($cc);\n }\n if (!is_array($bcc)) {\n $bcc = array($bcc);\n }\n $all = array_merge($to, $cc, $bcc);\n\n return implode(';', $all);\n }", "public function getConcatString ()\r\n {\r\n return $this->_concatString;\r\n }", "public function __toString()\n {\n $subActions = $this->getSubActionQualifiers();\n\n return ArrayUtils::implodeUrl([\n ArrayUtils::implodeActionQualifiers(...$subActions['source']),\n $subActions['transformation'],\n ArrayUtils::implodeActionQualifiers(...$subActions['additional']),\n ]);\n }", "public function distinctActivity()\n {\n return $this->hasMany('App\\Activity')->distinct('from_address');\n }", "public function getCombinedText() { // returns String\n\n\t\treturn StringUtils.join( $this->text,\"\\n\");\n\t}", "public function __toString()\n {\n return implode($this->separator, $this->data);\n }", "public function concat($value) {\n \n return $this->append($value);\n }", "public function get_values(){\n $value_str = '';\n if (is_array($this->value)){\n foreach ($this->value as $val){\n $value_str .= $val.' ';\n }\n } else {\n $value_str .= $this->value;\n }\n\n return $value_str;\n }", "public static function concat( $value, $glue=\" \" )\n {\n $output = [];\n\n if( is_array( $value ) )\n {\n foreach( $value as $entry )\n {\n $output[] = self::concat( $entry );\n }\n }\n else if( is_string( $value ) || is_numeric( $value ) )\n {\n $output[] = trim( $value );\n }\n return Sanitize::toSingleSpaces( implode( $glue, $output ) );\n }", "public function toString() {\r\n return implode($this->result);\r\n }", "function join ($glue = '')\n {\n return PowerString::of (implode ($glue, $this->A));\n }", "public function __toString()\n\t\t{\n\t\t\treturn $this->quoteValue ? \"$this->field $this->relation '$this->value'\" : \"$this->field $this->relation $this->value\";\n\t\t}", "public function __toString() {\n\n $result = $this->firstName.','.$this->lastName.','.$this->email;\n\n if( ! is_null($this->dob ) )\n $result .= ','.$this->dob;\n\n if( ! is_null($this->address ) )\n $result .= ','.$this->address;\n\n return $result;\n }", "public function join(AssocValue $other): AssocValue;", "private function setToData()\n {\n if($this->getTos()){\n $toArray = [];\n foreach($this->getTos() as $to){\n $toArray[] = $this->setEmailNameString($to['email'], $to['name']);\n } \n\n return implode(',', $toArray); \n }\n \n return '';\n }", "function to_str(){\n //\n //Get the entity name using the magic function get parent since the \n //parent entity is protected \n $e = $this->column->get_parent();\n //\n //Include the alias\n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n //\n //compile the complete string version of the \n return \"`{$e->name}`.`{$this->column->name}` $alias\";\n }", "public function getToString() {\n\t\tif (!empty($this->to)) return implode(', ', $this->to);\n\t\telse return '';\n\t}", "public static function joinPermission($permission_array) {\n return implode(',', $permission_array);\n }", "public function concat(Semigroup $value);", "protected static function __concat(string $addition, string $original): string {\n\t\treturn $original . $addition;\n\t}", "public function __toString(): string\n {\n return implode(',', $this->items);\n }", "protected function _buildJoin(array $filter_data=array())\n {\n return \"\";\n }", "public function __toString()\n {\n return sprintf('%s -> %s', $this->getLugar(), $this->getMotivo());\n }", "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 getCombinedId() { // returns String\n\n\t\treturn StringUtils.join( $this->recordId,\",\");\n\t}", "public function __toString()\n {\n return implode(' ', $this->args);\n }", "public function __toString()\n {\n foreach ($this->_joins as $join) {\n $joinData[] = $join->__toString();\n }\n return \"\\n\".implode(\"\\n\", $joinData);\n }", "function culturefeed_agenda_preprocess_culturefeed_agenda_related_activities(&$variables) {\n\n $results = $variables['results'];\n $variables['items'] = array();\n\n foreach ($results as $result) {\n $variables['items'][] = theme('culturefeed_' . $result->getType() . '_short_summary', array('item' => $result));\n }\n}", "function map_joins($join){\n //\n //return field to str\n return $join->to_str();\n }", "function q_concat($arg)\n{\n\t$tmp = func_get_args();\n\treturn 'CONCAT('. implode(',', $tmp) .')';\n}", "public function __toString() {\n return $this->getVej() . ' ' . $this->getHusnummer() . $this->getBogstav()\n . ($this->getPostby() ? ', ' . $this->getPostby() : '');\n }", "function concat(array|string $input, mixed ...$inputs): array|string\n{\n return is_array($input) ? array_concat($input, ...$inputs)\n : str_concat($input, ...$inputs);\n}", "public function transform($value) : string\n {\n /** @var Tag $value */\n return implode(',', $value);\n }", "public function __toString()\n {\n return join(', ', [\n $this->Suburb,\n $this->Postcode,\n $this->State,\n $this->Country,\n ]);\n }", "public function __toString() {\r\n return $this->persona->getNombres().' '.$this->persona->getApellidos();\r\n }", "public function __toString(){\n\t\tif(!$this->joined) {\n\t\t\t$this->joined = true;\n\t\t\t$this->join();\n\t\t}\n\n\t\treturn $this->result;\n\t}", "public function setConcat($contact)\n {\n $this->phone_number = $contact['phone_number'];\n\n return $this;\n }", "public function __toString(){\n\t\treturn $this->combineElements();\n\t}", "function concat(array $first, iterable ...$rest): array\n{\n $first = values($first);\n foreach ($rest as $arr) {\n foreach ($arr as $value) {\n $first[] = $value;\n }\n }\n\n return $first;\n}", "public function transformAndConcat(callable $transformer)\n {\n return self::from(Iterables::concatIterables($this->transform($transformer)));\n }", "function get_related_contexts_string($context) {\n if ($parents = get_parent_contexts($context)) {\n return (' IN ('.$context->id.','.implode(',', $parents).')');\n } else {\n return (' ='.$context->id);\n }\n}", "public function appendActivityInfo(Down_ActivityInfo $value)\n {\n return $this->append(self::_ACTIVITY_INFO, $value);\n }", "private function getArgumentString()\n {\n if (!is_null($this->getArguments()))\n {\n return $this->getArguments();\n }\n $strOut = \"\";\n if (count($this->getChildArguments())) {\n foreach ($this->getChildArguments() as $key => $argument) {\n $strOut .= ($key == 0 ? \"\": \" , \") . \"\\\"\" . $argument . \"\\\"\";\n }\n }\n return $strOut;\n }", "function combinevalues($arr)\n{\n\t$ret=\"\";\n\tforeach($arr as $item)\n\t{\n\t\t$val = $item;\n\t\tif(strlen($ret))\n\t\t\t$ret.=\",\";\n\t\tif(strpos($val,\",\")===false && strpos($val,'\"')===false)\n\t\t\t$ret.=$val;\n\t\telse\n\t\t{\n\t\t\t$val=str_replace('\"','\"\"',$val);\n\t\t\t$ret.='\"'.$val.'\"';\n\t\t}\n\t}\n\treturn $ret;\n}", "public function append($values);", "function toString(){\n\t\treturn join(\"\",$this->_Items);\n\t}", "public function native($items)\n {\n $result = '';\n if (!empty($items) && is_array($items)) {\n $arrayLength = count($items);\n\n foreach ($items as $key => $item) {\n if($key == 0) { // first item with empty prepend\n $result .= $item;\n } elseif ($key == $arrayLength-1) { //last item with prepend and\n $result .= \" and $item\";\n } else { //other items with coma\n $result .= \", $item\";\n }\n }\n }\n\n return $result;\n }", "private function setCcData()\n {\n if($this->getCcs()){\n $ccArray = [];\n foreach($this->getCcs() as $cc){\n $ccArray[] = $this->setEmailNameString($cc['email'], $cc['name']);\n } \n\n return implode(',', $ccArray); \n }\n \n return '';\n }", "public function merge($values): Sequence;", "public static function join() {\n $paths = func_get_args();\n if (count($paths)===1 && is_array($paths[0])) $paths = $paths[0];\n return self::$adapter->join($paths);\n }", "public function stringFor(Context $context)\n\t{\n\t\tif ($context->hasData(parent::CONCAT_EQUIPMENT_KEY) && $context->data(parent::CONCAT_EQUIPMENT_KEY) != '') {\n\t\t\t$ids = explode(',', $context->data(parent::CONCAT_EQUIPMENT_KEY));\n\t\t\t$Factory = new \\Runalyze\\Model\\Factory(\\SessionAccountHandler::getId());\n\t\t\t$names = array();\n\n\t\t\tforeach (array_unique($ids) as $id) {\n\t\t\t\t$names[] = $Factory->equipment($id)->name();\n\t\t\t}\n\n\t\t\t$Icon = new \\Runalyze\\View\\Icon('fa-cubes');\n\t\t\t$Icon->setTooltip(implode(', ', $names));\n\n\t\t\treturn $Icon->code();\n\t\t}\n\n\t\treturn '';\n\t}", "function str_values(){\n //\n //map the std objects inthe array to return an array of strings of this \n //format ['cname=value'......]\n $values_str= array_map(function($obj){\n //\n //Trim the spaces\n $tvalue = trim($obj->value);\n //\n //Replace '' with null\n $value = $tvalue=='' ? 'null': \"'$tvalue'\";\n //\n return \"`$obj->name`=$value\";\n \n }, $this->values);\n //\n //retun the imploded version of the array with a , separator\n return implode(\",\",$values_str);\n }", "public function concatenarFunciones()\n {\n $i=0;\n $salida = \"\";\n foreach ($this->funciones as $funcion) {\n $salida .= \"-----------------------------------------------\\n\";\n $salida .= \"Funcion $i:\";\n $salida .= $funcion->__toString();\n $salida .= \"-----------------------------------------------\\n\";\n $i++;\n }\n return $salida;\n }", "public function build_relationship()\n {\n $joins = array();\n\n $main_table = strtolower($this->_model->clean_table());\n\n foreach ($this->associations as $one) {\n\n if (!!$one) {\n $table = strtolower(DB_SUFFIX.'_'.$one);\n\n $clean_one = str_replace( DB_SUFFIX .'_', '', $table );\n\n $joins[] = 'LEFT JOIN '.$table.' ON '.DB_SUFFIX.'_'.$main_table.'.'.$clean_one.'_id = '.$table.'.id';\n\n // Set the columns within the one loop\n $this->get_has_one_columns($one);\n }\n }\n\n if ( count($joins) > 0 ) {\n $result = implode( ' ', $joins );\n } else {\n $result = false;\n }\n\n return $result;\n }", "protected function emitAttributes(): string {\n\t\t$ret = \"\";\n\n\t\tforeach($this->m_attributes as $name => $attr) {\n\t\t\tif(!isset($attr) || (is_array($attr) && empty($attr))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$ret .= $this->emitAttribute($name, $attr);\n\t\t}\n\n\t\treturn $ret;\n\t}", "public function __toString(){\n return $this->get_name() . \"=\" . \"'\". $this->get_values() . \"'\";\n }", "public function implode($glue = ', '): string;", "protected function processExtraFields()\n {\n $rows = [];\n foreach ($this->getConfig('extraFields') as $definition) {\n $parts = [];\n foreach ($definition as $key => $val) {\n $parts[] = \"'{$key}': {$val}\";\n }\n $rows[] = implode(',', $parts);\n }\n\n return implode(',', $rows);\n }", "abstract public function combineTo(array $array);", "public function implode($value, $glue = '');", "function to_str(){\n \n //Include the alias\n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n return \"`{$this->entity->name}`.`{$this->entity->name}`$alias \";\n }", "public function testJoinSingleString()\n {\n $this->assertEquals('5', StringFilter::joinValues('5'));\n $this->assertEquals('5,6', StringFilter::joinValues('5,6'));\n }", "public function __toString()\n {\n $attributes = [];\n foreach ($this->attributes as $key => $value) {\n // Make sure to transform arrays to json and esacpe the\n // output accordingly so we don't mess up the markup\n $value = is_array($value) ? json_encode($value) : e($value);\n\n $attributes[] = sprintf(\"data-item-%s='%s'\", $key, $value);\n }\n\n return implode(\" \", $attributes);\n }", "public function join(string $glue = null): string;", "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 }", "public static function mergeAttr(){\n\t\t$all_attr = func_get_args();\n\t\t$all_attr = array_filter($all_attr);\n\t\tforeach($all_attr as $x=>$attr){\n\t\t\tif(is_string($attr))parse_str($attr, $all_attr[$x]);\n\t\t}\n\t\treturn call_user_func_array('array_replace', $all_attr);\n\t}", "public function encode () {\n $encoded = array();\n $encoded[] = $this->action;\n if (!empty($this->subaction) || !empty($this->options))\n $encoded[] = !empty($this->subaction) ? $this->subaction : '';\n if (!empty($this->options)) $encoded[] = implode(ActionLink::OPTION_SEPARATOR, $this->options);\n\n // Split by the primary separator.\n return implode(ActionLink::SEPARATOR, $encoded);\n }", "public function getMethod()\n {\n return 'concatenate';\n }", "public function join($imploder = '')\n {\n return Str(implode($imploder, $this->array));\n }", "public function __toString() {\n\t\t\treturn sprintf('%s', $this->intOrdenesTrabajoId);\n\t\t}", "protected function mergeTranslationsWithAttributes()\n\t{\n\t\t$this->attributes = array_merge($this->attributes, $this->translatedAttributes);\n\t}", "public function getFullNameAttribute()\n {\n $departament = Departamento::find($this->departament_id)->name;\n return str_replace(' ', ' ', \"{$departament}, {$this->name}\");\n }", "public static function joinViews($views) {\n $result = \"\";\n foreach ($views as $view) {\n $result .= $view->render();\n }\n return $result;\n }", "public function __toString()\n {\n if (empty($this->links)) {\n $this->getLinkRange();\n }\n return implode((string)$this->separator, $this->links) . PHP_EOL;\n }", "public function __toString() {\n return \"Año del Torneo: \".$this->getAnioTorneo().\"\\n\".\n \"------TORNEOS------\\n\".$this->mostrarColeccion($this->getColTorneos()).\"\\n\";\n }", "private function getActivityName(AbstractActivity $activity): string\n {\n if($activity instanceof MovementActivity) {\n return sprintf('%s [%s (%d - %d km/h)]',\n $activity->getName(), \n $activity->getIntensity(), \n $activity->getSpeedAverageMin(),\n $activity->getSpeedAverageMax()\n );\n } \n if($activity instanceof BodyweightActivity) {\n return sprintf('%s [%s (%d - %d repeats)]',\n $activity->getName(), \n $activity->getIntensity(), \n $activity->getRepetitionsAvgMin(),\n $activity->getRepetitionsAvgMax()\n );\n } \n if($activity instanceof WeightActivity) {\n return sprintf('%s [%d-%d kg (%d - %d repeats)]',\n $activity->getName(), \n $activity->getWeightAvgMin(),\n $activity->getWeightAvgMax(),\n $activity->getRepetitionsAvgMin(),\n $activity->getRepetitionsAvgMax()\n );\n }\n \n return sprintf('(%d) %s', $activity->getId(), $activity->getName());\n }", "public function build()\n\t{\n\t\t$result = '';\n\t\t$attrs = $this->getAll();\n\t\tforeach ($attrs as $attr => $value) {\n\t\t\tif (null === $value) {\n\t\t\t\t$result .= \"$attr \";\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$result .= \"$attr=\\\"$value\\\" \";\n\t\t\t}\n\t\t}\n\n\t\treturn trim($result);\n\t}", "public function toString() {\n return $this->prepare('/' . Fn::join_ne('/', $this->data));\n }", "#[Pure] public function get_values(): string\n {\n if(gettype($this -> value) === \"string\") {\n return \"'\" . $this->value . \"'\";\n }else{\n $res = \"'\";\n foreach($this -> value as $v){\n $res .= strval($v) . \" \";\n }\n $res .= \"'\";\n }\n return $res;\n }", "public function __toString(){\n\t\t$temp = $this->name;\n\t\t$temp .= \", \";\n\t\tif($this->sex==true)\n\t\t\t$temp = $temp . \"male, \";\n\t\telse\n\t\t\t$temp= $temp . \"female, \";\n\t\t$temp .= \"born \". $this->dateofbirth;\n\t\t\t\n\t\treturn $temp;\n\t}", "static public function addOrConcat ($left, $right) {\n\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/Boot.hx:400: lines 400-402\n\t\tif (is_string($left) || is_string($right)) {\n\t\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/Boot.hx:401: characters 4-41\n\t\t\treturn ($left??'null') . ($right??'null');\n\t\t}\n\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/Boot.hx:403: characters 3-33\n\t\treturn ($left + $right);\n\t}", "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 }" ]
[ "0.62644583", "0.6245109", "0.5820934", "0.56931174", "0.5615774", "0.555835", "0.5516049", "0.54929745", "0.5470561", "0.5300394", "0.5292435", "0.5275615", "0.5224643", "0.5205964", "0.5193866", "0.5138907", "0.5093835", "0.5004165", "0.4941348", "0.49274287", "0.49262318", "0.49223673", "0.49081373", "0.48964396", "0.48946324", "0.48751804", "0.4872055", "0.48536018", "0.48194802", "0.48095998", "0.47940618", "0.47776276", "0.47616208", "0.47307009", "0.47269353", "0.4726564", "0.47102678", "0.46871182", "0.4674024", "0.46687022", "0.46529695", "0.4645437", "0.4639438", "0.46384868", "0.46334133", "0.46324646", "0.46284443", "0.46150738", "0.4603702", "0.45893165", "0.4580126", "0.4574228", "0.45446223", "0.45413867", "0.45379186", "0.45346665", "0.45324707", "0.45245457", "0.4521549", "0.45074102", "0.44981858", "0.4498009", "0.4481463", "0.44598556", "0.44503036", "0.44484684", "0.4444646", "0.44416374", "0.44362497", "0.4433738", "0.44280168", "0.44187132", "0.44129252", "0.44092193", "0.4406159", "0.44028056", "0.44001463", "0.4399835", "0.43904865", "0.43883532", "0.43875873", "0.43805134", "0.43802655", "0.43736598", "0.43618566", "0.43547398", "0.43522874", "0.4346805", "0.4344255", "0.43424487", "0.43415323", "0.43365923", "0.4333225", "0.43270776", "0.43265802", "0.43213797", "0.4320712", "0.43108475", "0.43095395", "0.4304804" ]
0.44341573
69
Concatenate Indicator values with multiple nesting levels.
protected function concatenateIndicator(array $indicators, $first, $second, $third = null, $fourth = null, $fifth = null) { $temp = []; if (!$fourth && !$fifth) { if (!$third) { foreach ($indicators as $indicator) { $temp[] = getVal($indicator, [$first, 0, $second], ''); } return implode(';', $temp); } foreach ($indicators as $indicator) { foreach (getVal($indicator, [$first, 0, $second], []) as $nest) { $temp[] = getVal($nest, [$third], ''); } } return implode(';', $temp); } foreach ($indicators as $indicator) { foreach (getVal($indicator, [$first, 0, $second], []) as $superNest) { foreach (getVal($superNest, [$third], []) as $nest) { if (!$fifth) { $temp[] = getVal($nest, [$fourth], ''); } else { foreach (getVal($nest, [$fourth], []) as $n) { $temp[] = getVal($n, [$fifth], ''); } } } } } return implode(';', $temp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function concat(Semigroup $value);", "function concat_attr() {\n $str = \"\";\n if ($this->other_attr != NULL) {\n foreach($this->other_attr as $field => $value) {\n $str .= $field.'=\"'.$value.'\" ';\n }\n }\n return $str;\n }", "protected function doConcatenate() {}", "public function __toString()\n\t{\n\t\treturn implode($this->_separator, $this->_stack);\n\t}", "public function get_values(){\n $value_str = '';\n if (is_array($this->value)){\n foreach ($this->value as $val){\n $value_str .= $val.' ';\n }\n } else {\n $value_str .= $this->value;\n }\n\n return $value_str;\n }", "public function concat($value) {\n \n return $this->append($value);\n }", "public function toString($include_parent = null) {}", "public function native($items)\n {\n $result = '';\n if (!empty($items) && is_array($items)) {\n $arrayLength = count($items);\n\n foreach ($items as $key => $item) {\n if($key == 0) { // first item with empty prepend\n $result .= $item;\n } elseif ($key == $arrayLength-1) { //last item with prepend and\n $result .= \" and $item\";\n } else { //other items with coma\n $result .= \", $item\";\n }\n }\n }\n\n return $result;\n }", "public function concatenate($values, $separator = null)\n {\n if ($separator) {\n return '(' . implode('+' . $this->quote($separator) . '+', $values) . ')';\n } else {\n return '(' . implode('+', $values) . ')';\n }\n }", "public function flattenLeft();", "public function flatten($value)\n {\n }", "public function __toString()\n {\n return str_replace(['[{parent_index}]', '[{count}]', '[{kids}]'],\n [$this->index, count($this->kids), implode(\" 0 R \", $this->kids) . \" 0 R\"], $this->data);\n }", "public function __toString()\n {\n return implode($this->separator, $this->data);\n }", "protected static function concat( /*varags*/ ) {\n\t\t$args = array();\n\t\tforeach ( func_get_args() as $arg ) {\n\t\t\tif ( is_array( $arg ) ) {\n\t\t\t\t$args = array_merge( $args, $arg );\n\t\t\t} else {\n\t\t\t\t$args[] = $arg;\n\t\t\t}\n\t\t}\n\n\t\treturn implode( ' ', $args );\n\t}", "public function flatten() {}", "public function flatten() {}", "public function __toString()\n {\n return sprintf(\"[%s, %s]\", $this->getLeft(), $this->getRight());\n }", "public function __toString() {\n // Special case for a single, nested condition group:\n if (count($this->conditions) == 1) {\n return (string) reset($this->conditions);\n }\n $lines = [];\n foreach ($this->conditions as $condition) {\n $lines[] = str_replace(\"\\n\", \"\\n \", (string) $condition);\n }\n return $lines ? \"(\\n \" . implode(\"\\n {$this->conjunction}\\n \", $lines) . \"\\n)\" : '';\n }", "public function toString() {\r\n return implode($this->result);\r\n }", "function compactToString($x) {\n $xout='';\n if( is_array($x) )\n foreach($x as $xx) $xout.= compactToString($xx);\n else $xout=$x;\n return $xout;\n}", "public function expression() {\n\t\t$ret = '';\n\t\t$first = true;\n\t\tforeach($this->children as $child) {\n\t\t\tif(!$first) {\n\t\t\t\t$ret .= '+';\n\t\t\t} else {\n\t\t\t\t$first = false;\n\t\t\t}\n\n\t\t\tif($this->precedence() > $child->precedence()) {\n\t\t\t\t$ret .= \"(\" . $child->expression() . \")\";\n\t\t\t} else {\n\t\t\t\t$ret .= $child->expression();\n\t\t\t}\n\t\t}\n\t\treturn $ret;\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 }", "function __toString(){\n\t\tif( $this->is_terminal() ){\n\t\t\treturn parent::__toString();\n\t\t}\n\t\t$src = '';\n\t\tforeach( $this->children as $i => $Child ){\n\t\t\tif( $Child->is_terminal() ){\n\t\t\t\t$s = (string) $Child->value;\n\t\t\t\tswitch( $Child->t ){\n\t\t\t\t// these terminals will may or may not be followed by an identifier\n\t\t\t\t// but always by the next terminal in this node.\n\t\t\t\tcase J_FUNCTION:\n\t\t\t\tcase J_CONTINUE:\n\t\t\t\tcase J_BREAK;\n\t\t\t\t\t$identFollows = isset($this->children[$i+1]) && $this->children[$i+1]->is_symbol(J_IDENTIFIER);\n\t\t\t\t\t$identFollows and $s .= ' ';\n\t\t\t\t\tbreak;\n\t\t\t\t// these terminals will always be followed by an idenfifer\n\t\t\t\tcase J_VAR:\n\t\t\t\t// these terminals are followed by a non terminal;\n\t\t\t\t// adding a space to be on the safe side.\n\t\t\t\tcase J_DO:\n\t\t\t\tcase J_ELSE:\n\t\t\t\tcase J_RETURN:\n\t\t\t\tcase J_CASE:\n\t\t\t\tcase J_THROW:\n\t\t\t\tcase J_NEW:\n\t\t\t\tcase J_DELETE:\n\t\t\t\tcase J_VOID:\n\t\t\t\tcase J_TYPEOF:\n\t\t\t\t\t$s .= ' ';\n\t\t\t\t\tbreak;\n\t\t\t\t// these terminals require a space on either side\n\t\t\t\tcase J_IN:\n\t\t\t\tcase J_INSTANCEOF:\n\t\t\t\t\t$s = ' '.$s.' ';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// recursion into non-terminal\n\t\t\t\t$s = $Child->__toString();\n\t\t\t}\n\t\t\t$src .= $s;\n\t\t}\n\t\treturn $src;\n\t}", "public function __toString(){\n\t\treturn $this->combineElements();\n\t}", "public function flatten();", "public function flatten();", "public function flatten();", "function implode_assoc_r ($inner_glue = \"=\", $outer_glue = \"\\n\", $array = null, $keepOuterKey = false) {\n\t\t$output = array();\n\t\tforeach($array as $key => $item ) {\n\t\t\tif (is_array ($item)) {\n\t\t\t\tif ($keepOuterKey) {\n\t\t\t\t\t$output[] = $key;\n\t\t\t\t}\n\t\t\t\t$output[] = implode_assoc_r ($inner_glue, $outer_glue, $item, $keepOuterKey);\n\t\t\t} else {\n\t\t\t\t$output[] = $key . $inner_glue . $item;\n\t\t\t}\n\t\t}\n\t\treturn implode($outer_glue, $output);\n\t}", "public function outerXml() {\r\n return \"<![CDATA[\".$this->value().\"]]>\";\r\n }", "function concat(array|string $input, mixed ...$inputs): array|string\n{\n return is_array($input) ? array_concat($input, ...$inputs)\n : str_concat($input, ...$inputs);\n}", "public function build(): string\n {\n return implode(' ', $this->items);\n }", "public function toString(Container $obj): string\n {\n static $childrenCount, $commaString;\n\n $string = '';\n switch ($obj->getType()) {\n case 'blank':\n $string = \"\\n\";\n break;\n case 'comment':\n $string = ';' . $obj->getContent() . \"\\n\";\n break;\n case 'directive':\n $count = $obj->getParent() !== null\n ? $obj->getParent()->countChildren('directive', $obj->getName())\n : 0;\n $content = $obj->getContent();\n if (!is_array($content)) {\n $content = $this->contentToString($content);\n\n if ($count > 1) {\n // multiple values for a directive are separated by a comma\n if (isset($childrenCount[$obj->getName()])) {\n $childrenCount[$obj->getName()]++;\n } else {\n $childrenCount[$obj->getName()] = 0;\n $commaString[$obj->getName()] = $obj->getName() . '=';\n }\n if ($childrenCount[$obj->getName()] === $count - 1) {\n // Clean the static for future calls to toString\n $string .= $commaString[$obj->getName()] . $content . \"\\n\";\n unset($childrenCount[$obj->getName()], $commaString[$obj->getName()]);\n } else {\n $commaString[$obj->getName()] .= $content . ', ';\n }\n } else {\n $string = $obj->getName() . '=' . $content . \"\\n\";\n }\n } else {\n //array\n $string = '';\n $n = 0;\n foreach ($content as $contentKey => $contentValue) {\n if (is_int($contentKey) && $contentKey === $n) {\n $stringKey = '';\n ++$n;\n } else {\n $stringKey = $contentKey;\n }\n $string .= $obj->getName() . '[' . $stringKey . ']='\n . $this->contentToString($contentValue) . \"\\n\";\n }\n }\n break;\n case 'section':\n if (!$obj->isRoot()) {\n $string = '[' . $obj->getName() . \"]\\n\";\n }\n if ($obj->countChildren() > 0) {\n for ($i = 0, $iMax = $obj->countChildren(); $i < $iMax; $i++) {\n $string .= $this->toString($obj->getChild($i));\n }\n }\n break;\n default:\n $string = '';\n }\n\n return $string;\n }", "public function buildWith(array $with, array &$values)\n {\n if (empty($with)) {\n return '';\n }\n\n $ctes = [];\n $hasRecursive = false;\n\n foreach ($with as $cte) {\n list($query, $alias, $recursive) = $cte;\n list($cteSql, $cteValues) = $this->assembleSelect($query);\n\n $ctes[] = \"$alias AS ($cteSql)\";\n\n $values = array_merge($values, $cteValues);\n $hasRecursive |= $recursive;\n }\n\n return ($hasRecursive ? 'WITH RECURSIVE ' : 'WITH ') . implode(', ', $ctes);\n }", "public function join(string $glue): string {\n\t\t$inner_glue = '';\n\t\t$glued_values = '';\n\t\tforeach ($this as $value) {\n\t\t\t$glued_values .= $inner_glue . $value;\n\t\t\t$inner_glue = $glue;\n\t\t}\n\t\treturn $glued_values;\n\t}", "public function toString(){\n $output = '';\n if(!empty($this->category_list)){\n $output .= \"------------------\\nCATEGORIES\\n------------------\\n\";\n foreach($this->category_list as $c)\n $output .= $c->toString();\n }\n if(!empty($this->user_category_list)){\n $output .= \"------------------\\nUSER'S CATEGORIES\\n------------------\\n\";\n foreach($this->user_category_list as $u)\n $output .= $u->toString();\n }\n if(!empty($this->entity_list)){\n $output .= \"------------------\\nENTITIES\\n------------------\\n\";\n foreach($this->entity_list as $e)\n $output .= $e->toString();\n }\n if(!empty($this->concept_list)){\n $output .= \"------------------\\nCONCEPTS\\n------------------\\n\";\n foreach($this->concept_list as $c)\n $output .= $c->toString();\n }\n if(!empty($this->time_expression_list)){\n $output .= \"------------------\\nTIME EXPRESSIONS\\n------------------\\n\";\n foreach($this->time_expression_list as $t)\n $output .= $t->toString();\n }\n if(!empty($this->money_expression_list)){\n $output .= \"------------------\\nMONEY EXPRESSIONS\\n------------------\\n\";\n foreach($this->money_expression_list as $m)\n $output .= $m->toString();\n }\n if(!empty($this->uri_list)){\n $output .= \"------------------\\nURIs\\n------------------\\n\";\n foreach($this->uri_list as $u)\n $output .= $u->toString();\n }\n if(!empty($this->phone_expression_list)){\n $output .= \"------------------\\nPHONE EXPRESSIONS\\n------------------\\n\";\n foreach($this->phone_expression_list as $p)\n $output .= $p->toString();\n }\n if(!empty($this->quotation_list)){\n $output .= \"------------------\\nQUOTATIONS\\n------------------\\n\";\n foreach($this->quotation_list as $q)\n $output .= $q->toString();\n }\n if(!empty($this->issue_list)) {\n $output .= \"------------------\\nISSUES\\n------------------\\n\";\n foreach($this->issue_list as $i)\n $output .= $i->toString();\n }\n return $output;\n }", "public function parenthesizer()\n {\n $this->value = \"({$this->value})\";\n return $this->getValue();\n }", "function get_prefix($CategoryID)\n{\n global $tpl, $template, $config, $mysql, $lang, $twig, $prefixed;\n $ParentID = $mysql->result('SELECT parent_id FROM '.prefix.'_eshop_categories WHERE id = '.$CategoryID.' ');\n \n $prefixed[$CategoryID]['f'] .= '&nbsp;&nbsp;&nbsp;';\n #$add_prefix .= '&nbsp;&nbsp;&nbsp;'; \n {\n if ($ParentID == 0) \n { \n $add_prefix .= ''; \n }\n else\n {\n $prefixed[$CategoryID]['s'] .= '<img src=\"/engine/plugins/eshop/tpl/img/tree.gif\">&nbsp;&nbsp;&nbsp;';\n $add_prefix .= '<img src=\"/engine/plugins/eshop/tpl/img/tree.gif\">&nbsp;&nbsp;&nbsp;';\n \n foreach ($mysql->select(\"SELECT * FROM \".prefix.\"_eshop_categories WHERE id=\".$ParentID.\" \") as $row2)\n {\n $CategoryID2 = $row2['id']; \n $ParentID2 = $row2['parent_id'];\n }\n\n get_prefix($CategoryID2);\n }\n }\n #var_dump($prefixed[$CategoryID]);\n return $add_prefix;\n}", "public function __toString(): string {\n return implode('/', $this->elements);\n }", "public function __toString()\n\t{\n\t\t$output = '';\n\n\t\tforeach (array_keys($this->data) as $key) {\n\t\t\tif (is_array($this->data[$key])) {\n\t\t\t\t$output .= implode(PHP_EOL, $this->data[$key]) . PHP_EOL;\n\t\t\t} else {\n\t\t\t\t$output .= $this->data[$key] . PHP_EOL;\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "public function collapseAll()\n {\n foreach ($this->_tree as $key => $val) {\n if ($key !== self::BASE_ELT) {\n $this->collapse($val['v']);\n }\n }\n }", "function getTransCsvInner($tmp, $prefix, $header)\n{\n $csv = '';\n\n $name = $tmp->number . ' ' . $tmp->text_fr;\n if (strlen(trim($name)) < 1) {\n $name = \"[blank keyword -- ID #{$tmp->id}]\";\n }\n\n $csvRow = array($prefix);\n foreach ($tmp as $k => $v) {\n if (strlen($k) > 1 && substr($k, 0, 1) != '_') {\n $csvRow[] = $v;\n }\n }\n foreach ($csvRow as $k => $v) {\n $csvRow[$k] = str_replace('\"', '\\\"', $v);\n }\n\n // Update CSV and recurse to next level:\n if ($header) {\n $csv .= getTransCsvHeader($tmp, array('parent path'));\n }\n $csv .= implode(',', $csvRow) . \"\\n\";\n $csv .= getTransCsv($tmp->id, empty($prefix) ? $name : $prefix . ' > ' . $name, false);\n\n return $csv;\n}", "function Concat() {}", "public function __toString(): string\n {\n $cod_cuestiones = (null === $this->getCuestiones())\n ? null\n : $this->getCuestiones()->map(\n function (Cuestion $cuestion) {\n return $cuestion->getIdCuestion();\n }\n );\n $txt_cuestiones = $cod_cuestiones\n ? '[' . implode(', ', $cod_cuestiones->getValues()) . ']'\n : '[ ]';\n return '[ categoria ' .\n '(idCategoria=' . $this->getIdCategoria() . ', ' .\n 'prop_descripción=\"' . $this->getPropuestaDescripcion() . '\", ' .\n 'enum_disponible=\"' . $this->isCorrecta() . '\"' .\n ') ]';\n /**\n return '[ categoria ' .\n '(id=' . $this->getIdCategoria() . ', ' .\n 'prop_descripción=\"' . $this->getPropuestaDescripcion() . '\", ' .\n 'cuestiones=\"' . $txt_cuestiones . '\"' .\n ') ]';\n */\n }", "function stage_flatten($array, $prefix = '')\n{\n $result = array();\n foreach ($array as $key => $value) {\n if (is_array($value)) {\n $result = $result + stage_flatten($value, $prefix . $key . '.');\n } else {\n $result[$prefix . $key] = $value;\n }\n }\n return $result;\n}", "function concatAll($array) {\n\t$results = array();\n\tforeach ($array as $item) {\n\t\t// Merge arrays...\n\t\tif (is_array($item)) {\n\t\t\t$results = array_merge($results, $item);\n\t\t\tcontinue;\n\t\t}\n\t\t// ...push anything else.\n\t\t$results[] = $item;\n\t}\n\treturn $results;\n}", "private function concatRecursive($array, $index, $options) {\n if ($index == count($array)) return [''];\n $result = array();\n\n // Call the same function recursively with incremented index.\n foreach ($this->concatRecursive($array, $index + 1, $options) as $e) {\n foreach ($array[$index] as $k) {\n\n // Clear the extra spaces.\n $e = trim($e);\n\n // Create broad match version if asked.\n if (isset($options['broad'])) {\n $result[] = $k . ' ' . $e;\n }\n\n // Set the BMM version if asked and it is the last loop this element goes through.\n if ($index == 0 AND isset($options['bmm'])) {\n $exploded = explode(' ', $e);\n $str = '+' . $k;\n foreach ($exploded as $item) {\n $str .= ' +' . $item;\n }\n $result[] = $str;\n }\n\n // Set the phrase version if asked and it is the last loop this element goes through.\n if ($index == 0 AND isset($options['phrase'])) {\n $result[] = '\"' . $k . ' ' . $e . '\"';\n }\n\n // Set the exact version if asked and it is the last loop this element goes through.\n if ($index == 0 AND isset($options['exact'])) {\n $result[] = '[' . $k . ' ' . $e . ']';\n }\n }\n }\n\n return $result;\n }", "function combinevalues($arr)\n{\n\t$ret=\"\";\n\tforeach($arr as $item)\n\t{\n\t\t$val = $item;\n\t\tif(strlen($ret))\n\t\t\t$ret.=\",\";\n\t\tif(strpos($val,\",\")===false && strpos($val,'\"')===false)\n\t\t\t$ret.=$val;\n\t\telse\n\t\t{\n\t\t\t$val=str_replace('\"','\"\"',$val);\n\t\t\t$ret.='\"'.$val.'\"';\n\t\t}\n\t}\n\treturn $ret;\n}", "function array_multi_implode($standard_glue, $last_nodes_glue, $array) {\n\n\t$length = count($array);\n\n\tif ( $length > 1 ) {\n\n\t\t$array[$length - 2] = $array[$length - 2] . $last_nodes_glue . $array[$length - 1];\n\n\t\tunset($array[$length - 1]);\n\n\t}\n\n\treturn implode($standard_glue, $array);\n\n}", "public function __toString()\n\t\t{\n\t\t\treturn $this->quoteValue ? \"$this->field $this->relation '$this->value'\" : \"$this->field $this->relation $this->value\";\n\t\t}", "public function expandAll()\n {\n foreach ($this->_parent[self::BASE_ELT] as $val) {\n $this->expand($val, true);\n }\n }", "function stringify_array ($array_obj, $value_separator)\n{\n\tif(is_array($array_obj))\n\t{\n\t\tforeach($array_obj as $val)\n\t\t{\n\t\t\tif(is_array($val))\n\t\t\t{\n\t\t\t\t$value_separator .= stringify_array($val, $value_separator);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$value_separator .= $val. \"|\";\n\t\t\t}\n \t\n\t\t}\n\t\treturn $value_separator;\n\t}\n\telse\n\t{\n\t\treturn $value_separator = \"ERROR : $array_obj is not an array\";\n\t}\n}", "function _buildXMLstringLevel($object, $depth)\n\t{\n\t\t// Initialize variables\n\t\t$retval = '';\n\t\t$tab\t= '';\n\t\tfor($i=1;$i <= $depth; $i++) {\n\t\t\t$tab .= \"\\t\";\n\t\t}\n\n\t\tforeach (get_object_vars( $object ) as $key=>$item)\n\t\t{\n\t\t\tif (is_object($item))\n\t\t\t{\n\t\t\t\t$retval .= $tab.\"<group name=\\\"\".$key.\"\\\">\\n\";\n\t\t\t\t$retval .= $this->_buildXMLstringLevel($item, $depth+1);\n\t\t\t\t$retval .= $tab.\"</group>\\n\";\n\t\t\t} else {\n\t\t\t\t$retval .= $tab.\"<entry name=\\\"\".$key.\"\\\">\".$item.\"</entry>\\n\";\n\t\t\t}\n\t\t}\n\t\treturn $retval;\n\t}", "function getRecursiveDamCat($id,$level=0) {\n $result = $id.','; # add id of 1st level \n $idList = explode(',',$id);\n \n if ($level > 0) {\n $level--;\n \n foreach ($idList as $key=>$value) {\n $where = 'hidden=0 AND deleted=0 AND parent_id='.$id;\n $res= $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'tx_dam_cat', $where);\n while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)){\t\n $all[$row['uid']]=$row['uid'];\n $rec = $this->getRecursiveDamCat($row['uid'],$level);\n if ($rec!='') {\n $result.=$rec.',';\n }\n }\n } # end for each\n } # end if level\n \t\n $result = str_replace(',,',',',$result);\n $result = substr($result,0,-1);\n return $result;\n }", "public function __toString()\n {\n $prefix = $this->getPrefix();\n \n $tmp = array();\n foreach ($this->items as $i) {\n $tmp[] = sprintf('%s%s', $prefix, $i);\n }\n \n return implode($tmp, ' | ');\n }", "public function transform($value) : string\n {\n /** @var Tag $value */\n return implode(',', $value);\n }", "function w3_array_union_recursive($array1,$array2)\n {\n $retval=$array1+$array2;\n foreach($array1 as $key=>$value)\n {\n if(is_array($array1[$key]) && is_array($array2[$key]))\n $retval[$key]=w3_array_union_recursive($array1[$key],$array2[$key]);\n }\n return $retval;\n }", "private function recursive($array){\n $res = '';\n foreach($array as $key => $value){\n //If $value is an array.\n if(is_array($value)){\n //We need to loop through it.\n\n $res .= '<item text=\"'.$key.'\" id=\"'.$key.'\">';\n //echo $key ,'<br>';\n $res .= $this->recursive($value);\n $res .= '</item>';\n } else{\n //It is not an array, so print it out.\n //echo $key .' : '. $value, '<br>';\n $res .= '<item text=\"'.strtoupper($key).' : '.str_replace(\"\\\"\", \"&quot;\",$value).'\" id=\"'.$key.'\"/>';\n //return 'item type=\"input\" label=\"state\" name=\"'.$key.'\" value=\"'.$value.'\" \\n';\n }\n }\n return $res;\n}", "public function render(): string\n {\n $string = str_repeat('#', intval($this->attributes['header'])) . ' ';\n if ($this->hasChildren() === true) {\n\n foreach ($this->children() as $child) {\n $string .= $child->render();\n }\n }\n $string .= \"{$this->escape($this->insert)}\";\n\n return $string;\n\n\n\n /*return str_repeat('#', intval($this->attributes['header'])) .\n \" {$this->escape($this->insert)}\";*/\n }", "public function transform($value)\n {\n $tagString = '';\n if($value instanceof ArrayCollection) {\n foreach ($value as $v) {\n $tagString .= $v->getName() . ',';\n }\n $tagString = substr($tagString, 0, -1);\n }\n\n return $tagString;\n }", "function Concat()\n\t{\n\t\t$s = \"\";\n\t\t$arr = func_get_args();\n\n\t\tif (sizeof($arr) == 1) {\n\t\t\tforeach ($arr as $arg) {\n\t\t\t\t$args = explode(',', $arg);\n\t\t\t}\n\t\t\t$arr = $args;\n\t\t}\n\n\t\tarray_walk($arr, create_function('&$v', '$v = \"CAST(\" . $v . \" AS VARCHAR(255))\";'));\n\t\t$s = implode('+',$arr);\n\t\tif (sizeof($arr) > 0) return \"$s\";\n\t\treturn '';\n\t}", "public static function getSubcatValues()\n\t{\n\t}", "public function testImplodeArrayWithInnerArray()\n {\n $this->assertEquals(\n StringUtils::OPEN_SQUARE_BRACKET . StringUtils::CLOSE_SQUARE_BRACKET,\n StringUtils::implodeRecursively(array(array()))\n );\n }", "function array_merge_recursive_distinct() {\n $arrays = func_get_args();\n $base = array_shift($arrays);\n if (!is_array($base))\n $base = empty($base)? array(): array($base);\n foreach ($arrays as $append) {\n if (!is_array($append)) $append = array($append);\n foreach ($append as $key => $value) {\n if(!array_key_exists($key, $base) and !is_numeric($key)) {\n $base[$key] = $append[$key];\n continue;\n }\n if (is_array($value) or is_array($base[$key]))\n $base[$key] = array_merge_recursive_distinct($base[$key], $append[$key]);\n else if (is_numeric($key))\n if(!in_array($value, $base)) $base[] = $value;\n else\n $base[$key] = $value;\n }\n }\n return $base;\n}", "public static function concat( $value, $glue=\" \" )\n {\n $output = [];\n\n if( is_array( $value ) )\n {\n foreach( $value as $entry )\n {\n $output[] = self::concat( $entry );\n }\n }\n else if( is_string( $value ) || is_numeric( $value ) )\n {\n $output[] = trim( $value );\n }\n return Sanitize::toSingleSpaces( implode( $glue, $output ) );\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 flatten(): Result\n {\n if ($this->isOk()) {\n return $this->value;\n }\n\n return $this;\n }", "public function toString() {\n return $this->prepare('/' . Fn::join_ne('/', $this->data));\n }", "function __toString()\n {\n return \"combined attributes comma separated\";\n\n }", "public function toString(int $level = 0)\n {\n $str = \\str_repeat(\" \", $level) . \"{\\n\";\n foreach ($this->children as $child) {\n /* \n // Skip some group types:\n if($child instanceof Group) {\n if ($child->GetType() == \"fonttbl\") continue;\n if ($child->GetType() == \"colortbl\") continue;\n if ($child->GetType() == \"stylesheet\") continue;\n if ($child->GetType() == \"info\") continue;\n // Skip any pictures:\n if (substr($child->GetType(), 0, 4) == \"pict\") continue;\n if ($child->IsDestination()) continue;\n } */\n $str .= $child->toString($level + 1);\n }\n return $str . \\str_repeat(\" \", $level) . \"}\\n\";\n }", "public function join($values);", "function array_merge_recursive_distinct ()\n\t{\n\t\t$arrays = func_get_args();\n\t\t$base = array_shift($arrays);\n\t\tif(!is_array($base)) $base = empty($base) ? array() : array($base);\n\t\tforeach($arrays as $append)\n\t\t{\n\t\t\tif(!is_array($append)) $append = array($append);\n\t\t\tforeach($append as $key => $value)\n\t\t\t{\n\t\t\t\tif(!array_key_exists($key, $base) and !is_numeric($key))\n\t\t\t\t{\n\t\t\t\t\t$base[$key] = $append[$key];\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(is_array($value) or is_array($base[$key]))\n\t\t\t\t{\n\t\t\t\t\t$base[$key] = array_merge_recursive_distinct($base[$key], $append[$key]);\n\t\t\t\t}\n\t\t\t\telse if(is_numeric($key))\n\t\t\t\t{\n\t\t\t\t\tif(!in_array($value, $base)) $base[] = $value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$base[$key] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $base;\n\t}", "public function toString() {\n if (! $this->_value) {\n return '';\n }\n\n $s = array ();\n\n foreach ( $this->_visibleUnits as $unit ) {\n if (! is_array ( $unit ) || ! is_string ( $unit [0] )) {\n continue;\n }\n\n if ($this->_value / $unit [0] > 1) {\n $t = floor ( $this->_value / $unit [0] );\n $s [] = $t . ' ' . $unit [1];\n $this->_value -= $unit [0] * $t;\n }\n }\n\n return implode ( ' ', $s );\n }", "protected static function mergeConsecutiveLiteralOutputElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//output[@type=\"literal\"]') as $output)\n\t\t{\n\t\t\twhile ($output->nextSibling\n\t\t\t\t&& $output->nextSibling->nodeName === 'output'\n\t\t\t\t&& $output->nextSibling->getAttribute('type') === 'literal')\n\t\t\t{\n\t\t\t\t$output->nodeValue\n\t\t\t\t\t= htmlspecialchars($output->nodeValue . $output->nextSibling->nodeValue);\n\t\t\t\t$output->parentNode->removeChild($output->nextSibling);\n\t\t\t}\n\t\t}\n\t}", "function get_all_comic_categories_as_cat_string() {\n\tglobal $all_comic_categories_as_string, $category_tree;\n\tif (empty($all_comic_categories_as_string)) {\n\t\t$categories = array();\n\t\tforeach ($category_tree as $node) {\n\t\t\t$parts = explode(\"/\", $node);\n\t\t\t$categories[] = end($parts);\n\t\t}\n\t\t$all_comic_categories_as_string = implode(\",\", $categories);\n\t}\n\treturn $all_comic_categories_as_string;\n}", "protected function _addBranch(Zend_Config $config, $parents = array())\r\n {\r\n $iniString = '';\r\n\r\n foreach ($config as $key => $value) {\r\n $group = array_merge($parents, array($key));\r\n\r\n if ($value instanceof Zend_Config) {\r\n $iniString .= $this->_addBranch($value, $group);\r\n } else {\r\n $iniString .= implode($this->_nestSeparator, $group)\r\n . ' = '\r\n . $this->_prepareValue($value)\r\n . \"\\n\";\r\n }\r\n }\r\n\r\n return $iniString;\r\n }", "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 combineElements(){\n\t\t// If label has been set to be omitted, skip.\n\t\tif($this->elements['label'] !== false){\n\t\t\t// If label has not yet been created, create a default format wrapper.\n\t\t\tif($this->elements['label'] === ''){\n\t\t\t\t$this->elements['label'] = Html::label($this->displayName, $this->name, ['class' => $this->getDefaultClass('label')]);\n\t\t\t}\n\t\t}\n\t\t$html = '';\n\t\tforeach($this->elementOrder as $order){\n\t\t\tif($this->elements[$order] !== false && $order !== 'wrap'){\n\t\t\t\t$html .=$this->elements[$order];\n\t\t\t}\n\t\t}\n\t\t// If wrapper has been set to be omitted, skip.\n\t\tif($this->elements['wrap'] !== false){\n\t\t\t$html = Html::div($html, $this->wrapAttributes);\n\t\t}\n\t\treturn $html;\n\t}", "public static function arrayMergeRecursiveDistinct()\n {\n $arrays = func_get_args();\n $base = array_shift($arrays);\n if(!is_array($base)) $base = empty($base) ? array() : array($base);\n foreach($arrays as $append)\n {\n if(!is_array($append)) $append = array($append);\n foreach($append as $key => $value) {\n if(!array_key_exists($key, $base) and !is_numeric($key))\n {\n $base[$key] = $append[$key];\n continue;\n }\n if(is_array($value) or is_array($base[$key]))\n {\n $base[$key] = self::arrayMergeRecursiveDistinct($base[$key], $append[$key]);\n } else if(is_numeric($key))\n {\n if(!in_array($value, $base)) $base[] = $value;\n } else\n {\n $base[$key] = $value;\n }\n }\n }\n return $base;\n }", "function content_array_to_string($array){\n $joined_string=\"\";\n for($count=0;$count<count($array);$count++){\n \n if($count!=count($array)-1){\n $joined_string.= $array[$count].'/';\n }\n else{\n $joined_string.=$array[$count];\n }\n }\n return $joined_string;\n }", "public function __toString()\n {\n return join(', ', [\n $this->Suburb,\n $this->Postcode,\n $this->State,\n $this->Country,\n ]);\n }", "public function transform($value)\n {\n if (null === $value) {\n return null;\n }\n if (!is_array($value)) {\n $value = $value->toArray();\n }\n\n return implode($this->separator, array_map(function($tag) { return $tag->getTitle(); }, $value));\n }", "public function encode () {\n $encoded = array();\n $encoded[] = $this->action;\n if (!empty($this->subaction) || !empty($this->options))\n $encoded[] = !empty($this->subaction) ? $this->subaction : '';\n if (!empty($this->options)) $encoded[] = implode(ActionLink::OPTION_SEPARATOR, $this->options);\n\n // Split by the primary separator.\n return implode(ActionLink::SEPARATOR, $encoded);\n }", "function printArray($array){\n // will accept arrays of values or arrays of arrays\n\n $c = \"\"; // for the comma :)\n $o = \"\"; // the output\n\n foreach($array as $item){\n if (is_array($item)){\n $o .= $c . printArray($item);\n }\n else{\n $o .= $c . $item;\n }\n $c = ',';\n }\n \n $o = \"[\" . $o . \"]\";\n\n return $o;\n}", "public function getFlattenItems()\n {\n return $this->items()->active()->where('is_active', 1)->defaultOrder()->get()->toFlatTree();\n }", "public function __toString()\n {\n $text = '<'.$this->getType().$this->getAttributeList().'>';\n foreach ($this->getChildren() as $child) {\n $text .= (string) $child;\n }\n $text .= '</'.$this->getType().'>';\n\n return $text;\n }", "public function toString($indentation = 0);", "function variant_cat($left, $right) {}", "public function toXml($outer = null) {\n $result = '';\n foreach($this->array as $key => $value) {\n if(strncmp($key, '@', 1) == 0) {\n\n // skip attributes\n } else {\n $encodedTag = htmlspecialchars($outer ? $outer : $key, ENT_QUOTES);\n if(is_array($value) && (count($value) > 0) && isset($value[0])) {\n\n // numeric array found => child nodes\n $XArray = new XArray($value);\n $result .= $XArray->toXml($key);\n unset($XArray);\n } else {\n if(is_array($value)) {\n\n // attribute list found\n $attrs = '';\n foreach($value as $attr_key => $attr_value) {\n if(strncmp($attr_key, '@', 1) == 0) {\n $attrs .= ' ' . htmlspecialchars(substr($attr_key, 1), ENT_QUOTES) . '=\"' . htmlspecialchars($attr_value, ENT_QUOTES) . '\"';\n }\n }\n $XArray = new XArray($value);\n $result .= '<' . $encodedTag . $attrs . '>' . $XArray->toXml() . '</' . $encodedTag . '>';\n unset($XArray);\n } else {\n if($encodedTag != '#text') {\n $result .= '<' . $encodedTag . '>' . htmlspecialchars($value, ENT_QUOTES) . '</' . $encodedTag . '>';\n } else {\n $result .= htmlspecialchars($value, ENT_QUOTES);\n }\n }\n }\n }\n }\n return $result;\n }", "public static function decorate( kintParser $kintVar )\n\t{\n\t\t$output = '<dl>';\n\n\t\tif ( $kintVar->extendedValue !== null ) {\n\t\t\t$output .= \"<dt class=\\\"kint-parent\\\"><div class=\\\"kint-plus _kint-collapse\\\"></div>\";\n\t\t} else {\n\t\t\t$output .= \"<dt>\";\n\t\t}\n\n\t\t$output .= self::_drawHeader( $kintVar );\n\n\t\t$output .= $kintVar->value . '</dt>';\n\n\t\tif ( ( $kintVar->extendedValue !== null ) ) { // isset does not work for __get\n\n\t\t\t$output .= '<dd>';\n\n\n\t\t\t$moreThanOneRepresentation = count( $kintVar->extendedValue ) > 1;\n\t\t\tif ( $moreThanOneRepresentation ) {\n\t\t\t\t$output .= \"<ul>\";\n\n\t\t\t\tforeach ( $kintVar->extendedValue as $k => $var ) {\n\n\n\t\t\t\t\t$output .= \"<li class=\\\"kint-tabheader-{$k}\\\">\";\n\t\t\t\t\t$output .= $k\n\t\t\t\t\t\t? self::_drawHeader( $var )\n\t\t\t\t\t\t: 'main';\n\t\t\t\t\t$output .= '</li>';\n\t\t\t\t}\n\n\t\t\t\t$output .= \"</ul>\";\n\t\t\t}\n\n\t\t\tif ( $moreThanOneRepresentation ) {\n\t\t\t\t$output .= \"<ul>\";\n\t\t\t}\n\t\t\tforeach ( $kintVar->extendedValue as $k => $var ) {\n\t\t\t\tif ( $moreThanOneRepresentation ) {\n\t\t\t\t\t$output .= \"<li class=\\\"kint-tab-{$k}\\\">\";\n\t\t\t\t}\n\t\t\t\tif ( is_array( $var ) ) {\n\t\t\t\t\tforeach ( $var as $v ) {\n\t\t\t\t\t\t$output .= self::decorate( $v );\n\t\t\t\t\t}\n\t\t\t\t} elseif ( is_string( $var ) ) {\n\t\t\t\t\t$output .= $var;\n\t\t\t\t} elseif ( is_string( $var->value ) ) {\n\t\t\t\t\t$output .= $var->value;\n\t\t\t\t} else {\n\t\t\t\t\t$output .= self::decorate( $var->value );\n\t\t\t\t}\n\n\t\t\t\tif ( $moreThanOneRepresentation ) {\n\t\t\t\t\t$output .= \"</li>\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $moreThanOneRepresentation ) {\n\t\t\t\t$output .= \"</ul>\";\n\t\t\t}\n\t\t\t$output .= '</dd>';\n\t\t}\n\n\t\t$output .= '</dl>';\n\n\t\treturn $output;\n\t}", "public function __toString()\n {\n $attributes = [];\n foreach ($this->attributes as $key => $value) {\n // Make sure to transform arrays to json and esacpe the\n // output accordingly so we don't mess up the markup\n $value = is_array($value) ? json_encode($value) : e($value);\n\n $attributes[] = sprintf(\"data-item-%s='%s'\", $key, $value);\n }\n\n return implode(\" \", $attributes);\n }", "protected function concatenate($segments): string\n {\n return implode(' ', array_filter($segments, fn ($value) => (string) $value !== ''));\n }", "function getOutputCode() {\n\t\t\t\n\t\t$_bckOutputCode=$this->outputCode;\n\t\t$this->outputCode=\"\";\n\t\tfor ($in=0;$in<$this->indent; $in++) {\n\t\t\t$this->outputCode.=\"\";\n\t\t}\n\t\t$this->indent++;\n\t\t$this->outputCode.=$_bckOutputCode;\n\n\t\tfor ($childIdx=0; $childIdx<count($this->child); $childIdx++) {\n\t\t\tif (is_object($this->child[$childIdx])) {\n\t\t\t\t$theChild=$this->child[$childIdx];\n\t\t\t\tif (is_object($theChild)) {\n\t\t\t\t\t$theChild->indent=$this->indent;\n\t\t\t\t\t$this->outputCode.=$theChild->getOutputCode();\n\t\t\t\t} else {\n\t\t\t\t\t$this->outputCode.=$theChild;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$ind=$this->indent;\n\t\t$ind--;\n\t\t$this->indent=$ind;\n\t\t$this->CloseTag();\n\t\treturn $this->outputCode;\n\t}", "protected function getInnerExpressionsString()\n {\n $query = '';\n foreach ($this->inner as $expressions) {\n foreach ($expressions as $type => $expression) {\n $query .= self::TAB_SEPARATOR . $expression->get();\n }\n }\n return $query;\n }", "function getRepresentation() {\n\t $n = count($this->genes) + 1;\n\t $rep = array();\n\t for($i=1;$i<$n;$i++) $rep[] = $i;\n\n\t for($i=1;$i<($n-1);$i++) {\n\t $t = $rep[$this->genes[$i][0]];\n\t $rep[$this->genes[$i][0]] = $rep[$this->genes[$i][1]];\n\t $rep[$this->genes[$i][1]] = $t;\n\t }\n\t $lrep = '';\n\t foreach($rep as $g) $lrep .= $g . ',';\n\n\t //Since in our tests items are progressive, let's count progressive\n\t $cprog = 0;\n\t for($i=0;$i<count($rep)-1;$i++) \n\t if(($rep[$i+1]-$rep[$i]) == 1) $cprog ++;\n\t $lrep .= \" $cprog couple in order\";\n\t return $lrep;\n\t}", "function array_contents(&$array, $max_depth=0, $depth=0, $ignore_ints=false)\n{\n\t$string = $indent = \"\";\n\tfor ($i = 0; $i < $depth; $i++) {\n\t\t$indent .= \"\\t\";\n\t}\n\tif (!empty($max_depth) && $depth >= $max_depth) {\n\t\treturn $indent.\"[Max Depth Reached]\\n\";\n\t}\n\tif (empty($array)) {\n\t\treturn $indent.\"[Empty]\\n\";\n\t}\n\treset($array);\n\twhile ( list($key,$value) = each($array) ) {\n\t\t$print_key = str_replace(\"\\n\",\"\\\\n\",str_replace(\"\\r\",\"\\\\r\",str_replace(\"\\t\",\"\\\\t\",addslashes($key))));\n\t\tif ($ignore_ints && gettype($key) == \"integer\") {\n\t\t\tcontinue;\n\t\t}\n\t\t$type = gettype($value);\n\t\tif ($type == \"array\" || $type == \"object\") {\n\t\t\t$string .= $indent\n\t\t\t\t\t. ((is_string($key)) ? \"\\\"$print_key\\\"\": $key) . \" => \"\n\t\t\t\t\t. (($type == \"array\")?\"array (\\n\":\"\")\n\t\t\t\t\t. (($type == \"object\")?\"new \".get_class($value).\" Object (\\n\":\"\");\n\t\t\t$string .= array_contents($value, $max_depth, $depth + 1, $ignore_ints);\n\t\t\t$string .= $indent . \"),\\n\";\n\t\t} else {\n\t\t\tif (is_string($value)) {\n\t\t\t\t$value = str_replace(\"\\n\",\"\\\\n\",str_replace(\"\\r\",\"\\\\r\",str_replace(\"\\t\",\"\\\\t\",addslashes($value))));\n\t\t\t}\n\t\t\t$string .= $indent\n\t\t\t\t\t. ((is_string($key)) ? \"\\\"$print_key\\\"\": $key) . \" => \"\n\t\t\t\t\t. ((is_string($value)) ? \"\\\"$value\\\"\": $value) . \",\\n\";\n\t\t}\n\t}\n\t$string[ strlen($string) - 2 ] = \" \";\n\treturn $string;\n}", "public function __toString()\n {\n if ($this->isEmpty()) {\n return '';\n }\n\n return implode(\n '/',\n array(\n $this->getStart()->format('c'),\n $this->getEnd()->format('c')\n )\n );\n }", "public function simpleDraw(){\n\t\t$pile = array();\n\t\t$root = array();\n\t\t$root['deep'] = 0;\n\t\t$root['cat'] = $this;\n\t\t$pile[] = $root;\n\n\t\twhile(count($pile)){\n\t\t\t$cat_array = array_pop($pile);\n\t\t\t$cat = $cat_array['cat'];\n\t\t\t$deep = $cat_array['deep'];\n\n\t\t\t\tfor($i =0; $i<$deep ; $i++){\n\t\t\t\techo '|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';\n\t\t\t}\n\t\t\techo (($cat->hasSubCategories())?'|-':'&nbsp;&nbsp;');\n\t\t\techo '\t'.$cat->getLabel().'<br/>';\n\n\t\t\tforeach($cat->getSubCategories() as $c){\n\t\t\t\t$s = array();\n\t\t\t\t$s['deep'] = $deep + 1;\n\t\t\t\t$s['cat'] = $c;\n\t\t\t\t$pile[] = $s;\n\t\t\t}\n\t\t}\n\t}", "private function prepareValuesRow(): string\n {\n $values = [];\n foreach ($this->storage as $key => $value) {\n $values[] = \"('{$key}', '{$value}')\";\n }\n\n return implode(', ', $values);\n }", "function add_separator($arr = array())\n\t{\n\t\tif (empty($arr[\"parent\"]))\n\t\t{\n\t\t\t$arr[\"parent\"] = $this->menu_id;\n\t\t}\n\n\t\tif (!isset($this->menus[$arr[\"parent\"]]))\n\t\t{\n\t\t\t$this->menus[$arr[\"parent\"]] = \"\";\n\t\t}\n\t\t\n\t\tif (!isset($this->items[$arr[\"parent\"]]))\n\t\t{\n\t\t\t$this->items[$arr[\"parent\"]] = array();\n\t\t}\n\t\t$this->items[$arr[\"parent\"]][] = array_merge($arr, array(\"separator\" => true));\n\n\t\t$this->menus[$arr[\"parent\"]] .= '<div class=\"menuItemSep\"></div>'.\"\\n\";\n\t}", "function kernel_array_concat($array, $prefix, $suffix) {\n $newArray = array();\n foreach( $array as $value ) {\n $newArray[] = $prefix . $value . $suffix;\n }\n return $newArray;\n}" ]
[ "0.5389252", "0.5286378", "0.52118665", "0.49743757", "0.48592642", "0.4852583", "0.48211235", "0.47740927", "0.47665235", "0.47359192", "0.4700198", "0.46711838", "0.46688944", "0.4647517", "0.4642487", "0.4642487", "0.4624396", "0.46241966", "0.45794287", "0.45629406", "0.45393616", "0.4527592", "0.45136", "0.45123994", "0.45041555", "0.45041555", "0.45041555", "0.44951904", "0.44742715", "0.4470754", "0.4462805", "0.444613", "0.44232962", "0.44211635", "0.4420541", "0.4414103", "0.44050056", "0.4395494", "0.43835956", "0.43813258", "0.437962", "0.4378353", "0.437687", "0.43672565", "0.43655536", "0.43640295", "0.43598014", "0.43519893", "0.43477103", "0.43230247", "0.432187", "0.43208677", "0.43025985", "0.4302134", "0.42881727", "0.4287803", "0.42877352", "0.42862868", "0.42841792", "0.42783278", "0.42676634", "0.42658538", "0.425726", "0.4256299", "0.4254135", "0.42539337", "0.42444086", "0.42323193", "0.42292422", "0.421873", "0.42094228", "0.42091632", "0.42083207", "0.42070043", "0.41916803", "0.4188893", "0.418782", "0.4181393", "0.41802704", "0.4179919", "0.41796255", "0.41791272", "0.41748208", "0.41738734", "0.41725367", "0.4162513", "0.41623956", "0.41623273", "0.4157611", "0.41553777", "0.41534102", "0.41526073", "0.41456217", "0.41452736", "0.41409412", "0.41372934", "0.41308182", "0.412819", "0.41268596", "0.412118" ]
0.5389728
0
refresh with Post Level
public function refreshAuthWithRelDuty($data) { $getAuth = new Model_UserAuth(); $AllAuths = $getAuth->getDutyRelAuth($data); DI()->logger->info('开始刷新: 岗位id->' . $data->param1 . '职责id->' . $data->param2); foreach ($AllAuths as $key => $value) { if ($value['user_state'] == "activate" && $value['comp_state'] == "activate" && $value['org_state'] == "activate" && $value['group_state'] == "activate" && $value['post_state'] == "activate" && $value['duty_state'] == "activate" && $value['action_state'] == "activate" && $value['auth_state'] == "activate" && $value['state'] != "activate") { $updateCoreAuth = new Model_UserAuth(); DI()->logger->info('刷新: 岗位id->' . $data->param1 . '职责id->' . $data->param2 . '权限id->' . $value['id'] . '状态->activate'); $updateCoreAuth->changeCoreStates($value['id'], "activate"); } else if (($value['user_state'] != "activate" || $value['comp_state'] != "activate" || $value['group_state'] != "activate" || $value['group_state'] != "activate" || $value['post_state'] != "activate" || $value['duty_state'] != "activate" || $value['action_state'] != "activate" || $value['auth_state'] != "activate" || $value['rel_group'] != "activate" || $value['rel_group'] != "activate" || $value['rel_post'] != "activate" || $value['rel_duty'] != "activate" || $value['rel_action'] != "activate" || $value['rel_auth'] != "activate" ) && $value['state'] == "activate") { $updateCoreAuth = new Model_UserAuth(); DI()->logger->info('刷新: 岗位id->' . $data->param1 . '职责id->' . $data->param2 . '权限id->' . $value['id'] . '状态->not_activated'); $updateCoreAuth->changeCoreStates($value['id'], "not_activated"); } } DI()->logger->info('结束刷新: 岗位id->' . $data->param1 . '职责id->' . $data->param2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleRestUpdatePost($post)\n {\n if (\"publish\" == $post->post_status) {\n $this->indexPost($post->ID);\n }\n }", "function appthemes_stats_update($post_id) {\r\n\tglobal $wpdb, $app_abbr, $nowisnow;\r\n\r\n\t$thepost = get_post($post_id);\r\n\r\n\tif ($thepost->post_author==get_current_user_id()) return;\r\n\r\n\t// first try and update the existing total post counter\r\n\t$results = $wpdb->query( $wpdb->prepare(\"UPDATE $wpdb->app_pop_total SET postcount = postcount+1 WHERE postnum = %s LIMIT 1\", $post_id) );\r\n\r\n\t// if it doesn't exist, then insert two new records\r\n\t// one in the total views, another in today's views\r\n\tif ($results == 0) {\r\n\t\t$wpdb->insert($wpdb->app_pop_total, array(\r\n\t\t\t\"postnum\" => $post_id,\r\n\t\t\t\"postcount\" => 1\r\n\t\t));\r\n\t\t$wpdb->insert($wpdb->app_pop_daily, array(\r\n\t\t\t\"time\" => $nowisnow,\r\n\t\t\t\"postnum\" => $post_id,\r\n\t\t\t\"postcount\" => 1\r\n\t\t));\r\n\t// post exists so let's just update the counter\r\n\t} else {\r\n\t\t$results2 = $wpdb->query( $wpdb->prepare(\"UPDATE $wpdb->app_pop_daily SET postcount = postcount+1 WHERE time = %s AND postnum = %s LIMIT 1\", $nowisnow, $post_id) );\r\n\r\n\t\t// insert a new record since one hasn't been created for current day\r\n\t\tif ($results2 == 0){\r\n\t\t\t$wpdb->insert($wpdb->app_pop_daily, array(\r\n\t\t\t\t\"time\" => $nowisnow,\r\n\t\t\t\t\"postnum\" => $post_id,\r\n\t\t\t\t\"postcount\" => 1\r\n\t\t\t));\r\n\t\t}\r\n\t}\r\n\r\n\t// get all the post view info so we can update meta fields\r\n\t$sql = $wpdb->prepare(\"\r\n\t\tSELECT t.postcount AS total, d.postcount AS today\r\n\t\tFROM $wpdb->app_pop_total AS t\r\n\t\tINNER JOIN $wpdb->app_pop_daily AS d ON t.postnum = d.postnum\r\n\t\tWHERE t.postnum = %s AND d.time = %s\r\n\t\", $post_id, $nowisnow);\r\n\r\n\t$row = $wpdb->get_row($sql);\r\n\r\n\t// add the counters to temp values on the post so it's easy to call from the loop\r\n\tupdate_post_meta($post_id, $app_abbr.'_daily_count', $row->today);\r\n\tupdate_post_meta($post_id, $app_abbr.'_total_count', $row->total);\r\n}", "protected function _postUpdate()\n\t{\n\t}", "public function updatePostPageViews(Post $post)\n {\n $post->setPageViews($post->getPageViews()+1);\n $this->save($post);\n }", "public function updated(Post $post)\n {\n $post->recordActivity('updated');\n }", "function update_post_parent_caches($posts)\n {\n }", "public function updatePost(){\n\t\t\t//goi ham de update du lieu\n\t\t\t$this->modelUpdate();\n\t\t\t//di chuyen den trang read\n\t\t\techo \"<script>location.href='account/detail';</script>\";\n\t\t}", "public function edit_postAction() {\r\n\t\t$info = $this->getPost(array('id', 'sort', 'title', 'channel_id', 'link', 'start_time', 'end_time','hits', 'status'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$ret = Gou_Service_Notice::updateNotice($info, intval($info['id']));\r\n\t\tif (!$ret) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功.'); \t\t\r\n\t}", "function sp_set_post_read() {\n\t\n\tglobal $smof_data, $post;\n\t\t\n\tif( !$smof_data[ 'post_views' ] ) return false;\n\n\t$postID = $post->ID ;\n $count_key = 'sp_post_views';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n\t\t$count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "public function RenderUpdateMode(){\n if ( $this->postId != null){\n $postSelected = Post::find($this->postId);\n $this->title = $postSelected->title;\n $this->caption = $postSelected->caption;\n $this->categories = $postSelected->category_id;\n $this->imagePath = $postSelected->url;\n $this->tags = $postSelected->tag()->pluck('id')->toArray();\n }\n }", "function update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id)\n{\n\tglobal $db;\n\n\t$sign = ($mode == 'delete') ? '- 1' : '+ 1';\n\t$forum_update_sql = \"forum_posts = forum_posts $sign\";\n\t$topic_update_sql = '';\n\n\tif ($mode == 'delete')\n\t{\n\t\tif ($post_data['last_post'])\n\t\t{\n\t\t\tif ($post_data['first_post'])\n\t\t\t{\n\t\t\t\t$forum_update_sql .= ', forum_topics = forum_topics - 1';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$topic_update_sql .= 'topic_replies = topic_replies - 1';\n\n\t\t\t\t$sql = \"SELECT MAX(post_id) AS last_post_id, MAX(post_time) AS topic_last_post_time\n\t\t\t\t\tFROM bb_posts\n\t\t\t\t\tWHERE topic_id = $topic_id\";\n\t\t\t\tif (!($result = $db->sql_query($sql)))\n\t\t\t\t{\n\t\t\t\t\tmessage_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);\n\t\t\t\t}\n\n\t\t\t\tif ($row = $db->sql_fetchrow($result))\n\t\t\t\t{\n\t\t\t\t\t$topic_update_sql .= \", topic_last_post_id = {$row['last_post_id']}, topic_last_post_time = {$row['topic_last_post_time']}\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($post_data['last_topic'])\n\t\t\t{\n\t\t\t\t$sql = \"SELECT MAX(post_id) AS last_post_id\n\t\t\t\t\tFROM bb_posts\n\t\t\t\t\tWHERE forum_id = $forum_id\";\n\t\t\t\tif (!($result = $db->sql_query($sql)))\n\t\t\t\t{\n\t\t\t\t\tmessage_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);\n\t\t\t\t}\n\n\t\t\t\tif ($row = $db->sql_fetchrow($result))\n\t\t\t\t{\n\t\t\t\t\t$forum_update_sql .= ($row['last_post_id']) ? ', forum_last_post_id = ' . $row['last_post_id'] : ', forum_last_post_id = 0';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if ($post_data['first_post'])\n\t\t{\n\t\t\t$sql = \"SELECT MIN(post_id) AS first_post_id\n\t\t\t\tFROM bb_posts\n\t\t\t\tWHERE topic_id = $topic_id\";\n\t\t\tif (!($result = $db->sql_query($sql)))\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);\n\t\t\t}\n\n\t\t\tif ($row = $db->sql_fetchrow($result))\n\t\t\t{\n\t\t\t\t$topic_update_sql .= 'topic_replies = topic_replies - 1, topic_first_post_id = ' . $row['first_post_id'];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$topic_update_sql .= 'topic_replies = topic_replies - 1';\n\t\t}\n\t}\n\telse if ($mode != 'poll_delete')\n\t{\n\t\t$forum_update_sql .= \", forum_last_post_id = $post_id\" . (($mode == 'newtopic') ? \", forum_topics = forum_topics $sign\" : \"\");\n\t\t$topic_update_sql = \"topic_last_post_id = $post_id, topic_last_post_time = \". TIMENOW . (($mode == 'reply') ? \", topic_replies = topic_replies $sign\" : \", topic_first_post_id = $post_id\");\n\t}\n\telse\n\t{\n\t\t$topic_update_sql .= 'topic_vote = 0';\n\t}\n\n\t$sql = \"UPDATE bb_forums SET\n\t\t$forum_update_sql\n\t\tWHERE forum_id = $forum_id\";\n\tif (!$db->sql_query($sql))\n\t{\n\t\tmessage_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);\n\t}\n\n\tif ($topic_update_sql != '')\n\t{\n\t\t$sql = \"UPDATE bb_topics SET\n\t\t\t$topic_update_sql\n\t\t\tWHERE topic_id = $topic_id\";\n\t\tif (!$db->sql_query($sql))\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);\n\t\t}\n\t}\n\n\tif ($mode != 'poll_delete')\n\t{\n\t\t$sql = \"UPDATE bb_users\n\t\t\tSET user_posts = user_posts $sign\n\t\t\tWHERE user_id = $user_id\";\n\t\tif (!$db->sql_query($sql))\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);\n\t\t}\n\t}\n}", "public function update($post);", "public function update(PostRequest $request, Post $post)\n {\n $post->revisions++;\n $user = Auth::user()->id;\n\n $request['updated_by'] = $user;\n $post->update($request->all());\n\n $tags = explode(',', $request['selectedTags']);\n\n $post->tags()->sync($tags);\n\n $categories = explode(',', $request['selectedCategories']);\n $post->categories()->sync($categories);\n\n $post->photos()->detach();\n $post->photos()->attach($request['indexPhoto']);\n\n if($request['draft'] === '0'){\n Session::flash('warning', 'پست با موفقیت ویرایش و منتشر شد');\n return redirect(route('posts.index'));\n }else{\n Session::flash('warning', 'پست با موفقیت ویرایش و پیش نویس شد');\n return redirect(route('posts.draft'));\n }\n }", "public function index() {\n\t\t$data['posts'] = $this->post->getLast();\n\t\t$this->set($data);\n\t}", "public function updated(Post $post)\n {\n // Category\n if ($post->category != $post->getOriginal('category')) {\n Category::find($post->category)->increment('num');\n Category::find($post->getOriginal('category'))->decrement('num');\n }\n\n\n // Tag\n if ($post->tags != $post->getOriginal('tags')) {\n Tag::whereIn('id', explode(',', $post->tags))->increment('num');\n Tag::whereIn('id', explode(',', $post->getOriginal('tags')))->decrement('num');\n }\n }", "function review_handler($entry, $form)\n{\n\t$post_id = $entry['post_id'];\n\tif(get_post_type($post_id) != 'bi_review')\n\t\treturn;\n\tif(! is_user_logged_in())\n\t\treturn;\n\t$post = get_post($post_id);\n\t$post->comment_status = 'open';\n\t$post->post_title = $entry[13];\n\t$post->post_status = 'pending';\n\t$post->post_parent = get_post_meta($post_id, 'post_parent', true);\n //echo \"post->parent = \" . $post->post_parent . \"<br/>\";\n\twp_update_post( get_object_vars($post) );\n}", "function index_post() {\n $this->crud_post($this->post());\n }", "public function maybe_update_post_views() {\n global $wpdb;\n\n $current_version = get_option( 'laterpay_version' );\n if ( version_compare( $current_version, '0.9.11', '<' ) ) {\n return;\n }\n\n $table = $wpdb->prefix . 'laterpay_post_views';\n $columns = $wpdb->get_results( 'SHOW COLUMNS FROM ' . $table .';' );\n\n $is_up_to_date = false;\n\n foreach ( $columns as $column ) {\n if ( $column->Field === 'mode' ) {\n $is_up_to_date = true;\n }\n }\n\n if ( ! $is_up_to_date ) {\n $wpdb->query( 'ALTER TABLE ' . $table . \" ADD mode ENUM('test', 'live') NOT NULL DEFAULT 'test';\" );\n // count all existing data as 'live' data to ensure continuity of statistics after migration\n $wpdb->query( 'UPDATE ' . $table . \" SET mode = 'live';\" );\n $wpdb->query( 'ALTER TABLE ' . $table . ' DROP INDEX post_id;' );\n $wpdb->query( 'ALTER TABLE ' . $table . ' ADD UNIQUE INDEX (post_id, user_id, mode);' );\n }\n }", "function update_counter($post_id) {\n $this->db->where('id', urldecode($post_id));\n $this->db->select('views_count');\n $count = $this->db->get('tb_posts')->row();\n // then increase by one\n $this->db->where('id', urldecode($post_id));\n $this->db->set('views_count', ($count->views_count + 1));\n $this->db->update('tb_posts');\n }", "protected function SendAfterLevel($level, $post) {\n\t}", "public function actionUpdate()\n {\n\t$this->layout='wide';\n $post=$this->loadPost();\n $post->content=($post->contentbig)?$post->contentbig:$post->contentshort;\n\n if(isset($_POST['Post']))\n {\n $post->attributes=$_POST['Post'];\n if(isset($_POST['previewPost']))\n $post->validate();\n else if(isset($_POST['submitPost']) && $post->save())\n $this->redirect(array('show','slug'=>$post->slug));\n }\n $this->pageTitle=Yii::t('lan','Update Post');\n $this->render('update',array('post'=>$post));\n }", "public function publish(Post $post)\n\t{\n\t\t$q = \"UPDATE in_posts \";\n\t\t$q .= \"SET publish_flag=1, read_length=:read_length, publish_time=Now() WHERE id=:post_id\";\n\t\t$vars = array(\n\t\t\t':read_length'=>$post->read_length,\n\t\t\t':post_id'=>$post->id\n\t\t);\n\t\t//$this->logger->logInfo($q);\n\t\t$ps = $this->execute($q, $vars);\n\t}", "function incrementPost()\n {\n $member_handler = &zarilia_gethandler( 'member' );\n return $member_handler->updateUserByField( $this, 'posts', $this->getVar( 'posts' ) + 1 );\n }", "function _wp_post_revision_data($post = array(), $autosave = \\false)\n {\n }", "function save_post()\n\t{\n\t\t$time = $this->ipsclass->get_date( time(), 'LONG' );\n\t\t\t\t\n\t\t//-----------------------------------------\n\t\t// Reset some data\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->post['ip_address'] = $this->orig_post['ip_address'];\n\t\t$this->post['topic_id'] = $this->orig_post['topic_id'];\n\t\t$this->post['author_id'] = $this->orig_post['author_id'];\n\t\t$this->post['post_date'] = $this->orig_post['post_date'];\n\t\t$this->post['author_name'] = $this->orig_post['author_name'];\n\t\t$this->post['queued'] = $this->orig_post['queued'];\n\t\t$this->post['edit_time'] = time();\n\t\t$this->post['edit_name'] = $this->ipsclass->member['members_display_name'];\n\t\t\n\t\t//-----------------------------------------\n\t\t// If the post icon has changed, update the topic post icon\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $this->orig_post['new_topic'] == 1 )\n\t\t{\n\t\t\tif ($this->post['icon_id'] != $this->orig_post['icon_id'])\n\t\t\t{\n\t\t\t\t$this->ipsclass->DB->do_update( 'topics', array( 'icon_id' => $this->post['icon_id'] ), 'tid='.$this->topic['tid'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Update open and close times\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $this->orig_post['new_topic'] == 1 )\n\t\t{\n\t\t\t$times = array();\n\t\t\t\n\t\t\tif ( $this->can_set_open_time AND $this->times['open'] )\n\t\t\t{\n\t\t\t\t$times['topic_open_time'] = intval( $this->times['open'] );\n\t\t\t\t\n\t\t\t\tif( $this->topic['topic_open_time'] AND $this->times['open'] )\n\t\t\t\t{\n\t\t\t\t\t$times['state'] = \"closed\";\n\t\t\t\t\t\n\t\t\t\t\tif( time() > $this->topic['topic_open_time'] )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( time() < $this->topic['topic_close_time'] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$times['state'] = \"open\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( ! $this->times['open'] AND $this->topic['topic_open_time'] )\n\t\t\t\t{\n\t\t\t\t\tif ( $this->topic['state'] == 'closed' )\n\t\t\t\t\t{\n\t\t\t\t\t\t$times['state'] = 'open';\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tif ( $this->can_set_close_time AND $this->times['close'] )\n\t\t\t{\n\t\t\t\t$times['topic_close_time'] = intval( $this->times['close'] );\n\t\t\t\t\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Was a close time, but not now?\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\tif ( ! $this->times['close'] AND $this->topic['topic_close_time'] )\n\t\t\t\t{\n\t\t\t\t\tif ( $this->topic['state'] == 'closed' )\n\t\t\t\t\t{\n\t\t\t\t\t\t$times['state'] = 'open';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( count( $times ) )\n\t\t\t{\n\t\t\t\t$this->ipsclass->DB->do_update( 'topics', $times, \"tid=\".$this->topic['tid'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Update poll\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $this->can_add_poll )\n\t\t{\n\t\t\tif ( is_array( $this->poll_questions ) AND count( $this->poll_questions ) )\n\t\t\t{\n\t\t\t\t$poll_only = 0;\n\t\t\t\t\n\t\t\t\tif ( $this->ipsclass->vars['ipb_poll_only'] AND $this->ipsclass->input['poll_only'] == 1 )\n\t\t\t\t{\n\t\t\t\t\t$poll_only = 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( $this->topic['poll_state'] )\n\t\t\t\t{\n\t\t\t\t\t$this->ipsclass->DB->do_update( 'polls', array( 'votes' => intval($this->poll_total_votes),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'choices' => addslashes(serialize( $this->poll_questions )),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'poll_question' => $this->ipsclass->input['poll_question'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'poll_only'\t\t=> $poll_only,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ), 'tid='.$this->topic['tid'] );\n\t\t\t\t\t\t\t\n\t\t\t\t\tif( $this->poll_data['choices'] != serialize( $this->poll_questions ) OR $this->poll_data['votes'] != intval($this->poll_total_votes) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->ipsclass->DB->do_insert( 'moderator_logs', array (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'forum_id' => $this->forum['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'topic_id' => $this->topic['tid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'post_id' => $this->orig_post['pid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'member_id' => $this->ipsclass->member['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'member_name' => $this->ipsclass->member['members_display_name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'ip_address' => $this->ip_address,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'http_referer'=> $this->ipsclass->my_getenv('HTTP_REFERER'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'ctime' => time(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'topic_title' => $this->topic['title'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'action' => \"Edited poll\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'query_string'=> $this->ipsclass->my_getenv('QUERY_STRING'),\n\t\t\t\t\t\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$this->ipsclass->DB->do_insert( 'polls', \n\t\t\t\t\t\t\t\t\t\t\t\t\tarray (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'tid' => $this->topic['tid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'forum_id' => $this->forum['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'start_date' => time(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'choices' => addslashes(serialize( $this->poll_questions )),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'starter_id' => $this->ipsclass->member['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'votes' => 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'poll_question' => $this->ipsclass->input['poll_question'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'poll_only'\t => $poll_only,\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\n\t\t\t\t\t$this->ipsclass->DB->do_insert( 'moderator_logs', array (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'forum_id' => $this->forum['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'topic_id' => $this->topic['tid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'post_id' => $this->orig_post['pid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'member_id' => $this->ipsclass->member['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'member_name' => $this->ipsclass->member['members_display_name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'ip_address' => $this->ip_address,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'http_referer'=> $this->ipsclass->my_getenv('HTTP_REFERER'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'ctime' => time(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'topic_title' => $this->topic['title'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'action' => \"Added a poll to the topic titled '{$this->ipsclass->input['poll_question']}'\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'query_string'=> $this->ipsclass->my_getenv('QUERY_STRING'),\n\t\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\t\t\t\t\t\t\n\t\t\t\t\t$this->ipsclass->DB->do_update( 'topics', array( 'poll_state' => 1, 'last_vote' => 0, 'total_votes' => 0 ), 'tid='.$this->topic['tid'] );\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Remove the poll\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\t$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'polls' , 'where' => \"tid=\".$this->topic['tid'] ) );\n\t\t\t\t$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'voters', 'where' => \"tid=\".$this->topic['tid'] ) );\n\t\t\t\t$this->ipsclass->DB->do_update( 'topics', array( 'poll_state' => 0, 'last_vote' => 0, 'total_votes' => 0 ), 'tid='.$this->topic['tid'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Update topic title?\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $this->edit_title == 1 )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Update topic title\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$this->ipsclass->input['TopicTitle'] = $this->pf_clean_topic_title( $this->ipsclass->input['TopicTitle'] );\n\t\t\t$this->ipsclass->input['TopicTitle'] = trim( $this->parser->bad_words( $this->ipsclass->input['TopicTitle'] ) );\n\t\t\t\n\t\t\t$this->ipsclass->input['TopicDesc'] = trim( $this->parser->bad_words( $this->ipsclass->input['TopicDesc'] ) );\n\t\t\t$this->ipsclass->input['TopicDesc'] = $this->ipsclass->txt_mbsubstr( $this->ipsclass->input['TopicDesc'], 0, 70 );\n\t\t\t\n\t\t\tif ( $this->ipsclass->input['TopicTitle'] != \"\" )\n\t\t\t{\n\t\t\t\tif ( ($this->ipsclass->input['TopicTitle'] != $this->topic['title']) or ($this->ipsclass->input['TopicDesc'] != $this->topic['description']) )\n\t\t\t\t{\n\t\t\t\t\t$this->ipsclass->DB->do_update( 'topics', array( 'title' => $this->ipsclass->input['TopicTitle'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'description' => $this->ipsclass->input['TopicDesc']\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ) , \"tid=\".$this->topic['tid'] );\n\t\t\t\t\t\n\t\t\t\t\tif ($this->topic['tid'] == $this->forum['last_id'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->ipsclass->DB->do_update( 'forums', array( 'last_title' => $this->ipsclass->input['TopicTitle'] ), 'id='.$this->forum['id'] );\n\t\t\t\t\t\t$this->ipsclass->update_forum_cache();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( ($this->moderator['edit_topic'] == 1) OR ( $this->ipsclass->member['g_is_supmod'] == 1 ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->ipsclass->DB->do_insert( 'moderator_logs', array (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'forum_id' => $this->forum['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'topic_id' => $this->topic['tid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'post_id' => $this->orig_post['pid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'member_id' => $this->ipsclass->member['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'member_name' => $this->ipsclass->member['members_display_name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'ip_address' => $this->ip_address,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'http_referer'=> $this->ipsclass->my_getenv('HTTP_REFERER'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'ctime' => time(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'topic_title' => $this->topic['title'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'action' => \"Edited topic title or description '{$this->topic['title']}' to '{$this->ipsclass->input['TopicTitle']}' via post form\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'query_string'=> $this->ipsclass->my_getenv('QUERY_STRING'),\n\t\t\t\t\t\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}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Reason for edit?\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $this->moderator['edit_post'] OR $this->ipsclass->member['g_is_supmod'] )\n\t\t{\n\t\t\t$this->post['post_edit_reason'] = trim( $this->ipsclass->input['post_edit_reason'] );\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Update the database (ib_forum_post)\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->post['append_edit'] = 1;\n\t\t\n\t\tif ( $this->ipsclass->member['g_append_edit'] )\n\t\t{\n\t\t\tif ( $this->ipsclass->input['add_edit'] != 1 )\n\t\t\t{\n\t\t\t\t$this->post['append_edit'] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->force_data_type = array( 'post_edit_reason' => 'string' );\n\t\t\n\t\t$this->ipsclass->DB->do_update( 'posts', $this->post, 'pid='.$this->orig_post['pid'] );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Make attachments \"permanent\"\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->pf_make_attachments_permanent( $this->post_key, $this->orig_post['pid'], 'post', array( 'topic_id' => $this->topic['tid'] ) );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Make sure paperclip symbol is OK\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->pf_recount_topic_attachments($this->topic['tid']);\n\t\t\n\t\t//-----------------------------------------\n\t\t// Not XML? Redirect them back to the topic\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $this->ipsclass->input['act'] == 'xmlout' )\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['post_edited'], \"showtopic={$this->topic['tid']}&st={$this->ipsclass->input['st']}#entry{$this->orig_post['pid']}\");\n\t\t}\n\t}", "public function update_topic_postcount($hard_delete = false)\n\t{\n\t\t// shouldn't need to load through load() to delete it...\n\t\tif ($hard_delete && empty($this->sql_data))\n\t\t{\n\t\t\t$this->sql_data = $this->__get_array();\n\t\t}\n\n\t\tif ($this->post_id && empty($this->sql_data))\n\t\t{\n\t\t\tthrow new exception('Modifying a post requires you load it through the load() function (we require the original information).');\n\t\t}\n\n\t\t// Get the current count\n\t\t$to_db = count::from_db($this->topic->topic_posts, false);\n\n\t\t// Revert the old count from this post\n\t\tif ($this->post_id)\n\t\t{\n\t\t\tif ($this->sql_data['post_deleted'] != 0)\n\t\t\t{\n\t\t\t\t$to_db['deleted']--;\n\t\t\t}\n\t\t\telse if (!$this->sql_data['post_approved'])\n\t\t\t{\n\t\t\t\t$to_db['unapproved']--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tswitch ($this->sql_data['post_access'])\n\t\t\t\t{\n\t\t\t\t\tcase access::PUBLIC_LEVEL :\n\t\t\t\t\t\t$to_db['public']--;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase access::AUTHOR_LEVEL :\n\t\t\t\t\t\t$to_db['authors']--;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase access::TEAM_LEVEL :\n\t\t\t\t\t\t$to_db['teams']--;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Then recount those options for this post if we are not hard deleting it.\n\t\tif (!$hard_delete)\n\t\t{\n\t\t\tif ($this->post_deleted != 0)\n\t\t\t{\n\t\t\t\t$to_db['deleted']++;\n\t\t\t}\n\t\t\telse if (!$this->post_approved)\n\t\t\t{\n\t\t\t\t$to_db['unapproved']++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tswitch ($this->post_access)\n\t\t\t\t{\n\t\t\t\t\tcase access::PUBLIC_LEVEL :\n\t\t\t\t\t\t$to_db['public']++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase access::AUTHOR_LEVEL :\n\t\t\t\t\t\t$to_db['authors']++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase access::TEAM_LEVEL :\n\t\t\t\t\t\t$to_db['teams']++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Update the field on the topic\n\t\t$this->topic->topic_posts = count::to_db($to_db);\n\t}", "public function restored(Post $post)\n {\n //\n }", "public function restored(Post $post)\n {\n //\n }", "function subh_set_post_view( $postID ) {\r\n $count_key = 'post_views_count';\r\n $count = (int) get_post_meta( $postID, $count_key, true );\r\n if ( $count < 1 ) {\r\n delete_post_meta( $postID, $count_key );\r\n add_post_meta( $postID, $count_key, '0' );\r\n } else {\r\n $count++;\r\n update_post_meta( $postID, $count_key, (string) $count );\r\n }\r\n}", "public function updateClass_post()\n {\n /* code goes here */\n }", "public function p_index($post_id) {\n\t\t$_POST['modified'] = Time::now();\n\n\t\t# Modify post\n\t\tDB::instance(DB_NAME)->update('posts', $_POST, \"WHERE post_id ='\".$post_id.\"'\");\n\t\t# Quick and dirty feedback\n echo \"Your post has been modified. <a href='/posts'>return to posts</a>\";\n }", "public function setPostHistory($post)\n {\n session()->push('postsHistory', $post );\n }", "function ci_last_update()\n{\n\tglobal $post;\n\t$old_post = $post;\n\t$data = array();\n\t$posts = get_posts('posts_per_page=1&order=DESC&orderby=date');\n\tforeach ($posts as $post)\n\t{\n\t\tsetup_postdata($post);\t\n\t\t$data['date'] = get_the_date();\n\t\t$data['time'] = get_the_time();\n\t}\n\t$post = $old_post;\n\tsetup_postdata($post);\n\treturn $data;\n}", "public function refresh() {\n $logged_user = $_SESSION['logged_user'];\n\n if ($logged_user) {\n $this->load->model(\"topic_model\", \"topics\");\n\n $this->topics->update_user_topics($logged_user);\n }\n }", "public function refreshUpDated()\n {\n $this->setUpdated(new \\DateTime());\n }", "protected function set_post() {\n $this->post = $this->safe_find_from_id('Post');\n }", "public function edit_postAction() {\n\t\t$info = $this->getPost(array('id', 'name', 'link', 'img', 'sort', 'status', 'model_id','type_id'));\n\t\t$info = $this->_cookData($info);\n\t\t$ret = Browser_Service_Recsite::updateRecsite($info, intval($info['id']));\n\t\tif (!$ret) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功.'); \t\t\n\t}", "function bdpp_trending_post_count() {\n\t\t\n\t\t$prefix\t\t= BDPP_META_PREFIX;\n\t\t$post_id \t= isset( $_POST['post_id'] ) ? bdpp_clean_number( $_POST['post_id'] ) : '';\n\t\t\n\t\tif( !empty( $post_id ) ) {\n\t\t\t\n\t\t\t// Getting existing views\n\t\t\t$views = get_post_meta( $post_id, $prefix.'post_views', true );\n\t\t\t$views = !empty( $views ) ? $views : 0;\n\n\t\t\t// Update view\n\t\t\tupdate_post_meta( $post_id, $prefix.'post_views', ($views+1) );\n\n\t\t\t$result['success'] = 1;\n\t\t} else {\n\t\t\t$result['success'] = 0;\n\t\t}\n\t\twp_send_json($result);\n\t}", "function view_counter_single_post($pid){\t\r\n\tif($_SERVER['HTTP_REFERER'] == '' || !strstr($_SERVER['HTTP_REFERER'],$_SERVER['REQUEST_URI']))\r\n\t{\r\n\t\t$viewed_count = get_post_meta($pid,'viewed_count',true);\r\n\t\t$viewed_count_daily = get_post_meta($pid,'viewed_count_daily',true);\r\n\t\t$daily_date = get_post_meta($pid,'daily_date',true);\r\n\t\r\n\t\tupdate_post_meta($pid,'viewed_count',$viewed_count+1);\r\n\tif(get_post_meta($pid,'daily_date',true) == date('Y-m-d')){\r\n\t\t\tupdate_post_meta($pid,'viewed_count_daily',$viewed_count_daily+1);\r\n\t\t} else {\r\n\t\t\tupdate_post_meta($pid,'viewed_count_daily','1');\r\n\t\t}\r\n\t\tupdate_post_meta($pid,'daily_date',date('Y-m-d'));\r\n\t}\r\n}", "function quasar_set_post_views(){\n\tglobal $post;\n\tif(!$post) return;\n\t\n\tif(!is_single()) return;\n\t\n\t$count_key = 'post_views_count';\n\t$count = get_post_meta($post->ID, $count_key, true);\n\tif ($count == '') {\n\t\t$count = 0;\n\t\tdelete_post_meta($post->ID, $count_key);\n\t\tadd_post_meta($post->ID, $count_key, '0');\n\t} else {\n\t\t$count++;\n\t\tupdate_post_meta($post->ID, $count_key, $count);\n\t}\n}", "private function refreshMetadata($postInfo)\n {\n if (!isset($this->metadata['posts']) || !is_array($this->metadata['posts'])) {\n $this->regeneratePostsMetadata();\n } else {\n $id = $postInfo['id'];\n $this->metadata['posts'][\"$id\"] = array(\n 'id' => $id,\n 'type' => $postInfo['type'],\n 'status' => $postInfo['status'],\n 'published' => $postInfo['published'],\n 'language' => $postInfo['language']\n );\n $this->writePostsMetadata($this->metadata['posts']);\n }\n }", "public function refresh() {}", "function update_thread_timestamp($thread) {\n $posts = BoincPost::enum(\"thread=$thread->id and hidden=0 order by timestamp desc limit 1\");\n if (count($posts)>0) {\n $post = $posts[0];\n $thread->update(\"timestamp=$post->timestamp\");\n }\n}", "public function refresh($refreshLastPost = true) {\n\t\tself::refreshAll($this->threadID, $refreshLastPost);\n\t}", "public function refresh()\n {\n }", "function populateFromPost()\n\t{\n\t}", "protected function update() {}", "public function set_views( $post_id, $post, $update ) {\r\n if ( $post->post_type == 'estate' ) {\r\n add_post_meta( $post_id, 'estate_views', 0, true );\r\n }\r\n }", "function acf_save_post_revision($post_id = 0)\n{\n}", "private function LastPosts(){\n $this->lastrecord = ORM::factory('Posts')->find_all()->count();\n }", "function modifyPost($post){\n \tif($method !== 'INSERT' && $method !== 'UPDATE'){\n \t\t$this->_last_error = 'Unknown method stipulated for modifyPost';\n \t\treturn false;\n \t}\n \t$rval = false;\n $now = strtotime(gmdate(\"M d Y H:i:s\"));\n $sections = ':';\n if(isset($post['frm_sections']) && count($post['frm_sections'])>0) {\n $sections = ':'.implode(\":\", $post['frm_sections']).':';\n }\n $rs['title'] = $post['frm_post_title'];\n $rs['body'] = $post['frm_post_body'];\n if($method !== 'UPDATE'){\n\t $rs['posttime'] = (isset($post['posttime'])) ? $post['posttime'] : $now;\n }\n $rs['modifytime'] = (isset($post['modifytime'])) ? $post['modifytime'] : $now;\n $rs['status'] = $post['frm_post_status'];\n $rs['modifier'] = $post['frm_modifier'];\n $rs['sections'] = $sections;\n $rs['ownerid'] = (isset($post['ownerid'])) ? intval($post['ownerid']) : $_SESSION['user_id'];\n $rs['hidefromhome'] = (isset($post['frm_post_hidefromhome']) && $post['frm_post_hidefromhome'] == 1) ? 1: 0;\n $rs['allowcomments'] = (isset($post['frm_post_allowcomments']) && $post['frm_post_allowcomments'] == ('allow' or 'disallow' or 'timed')) ? $post['frm_post_allowcomments'] : 'disallow';\n # TODO this needs refactored as everytime the post is edited, the disable date will auto-change (unintended). Make it use a definite date\n if(isset($post['disallowcommentsdays']) && in_array($post['disallowcommentsdays'], array(7, 14, 30, 90))){\n \t$inc = $post['disallowcommentsdays'];\n \t$rs['autodisabledate'] = strtotime(\"+$inc days\");\n }\n \n if($this->_db->AutoExecute(T_POSTS, $rs, $method, $where, false, get_magic_quotes_runtime()) !== false){\n if($method === 'INSERT' ){\n $rval = intval($this->_db->insert_id());\n }\n else{\n $rval = true;\n }\n if(isset($post['send_trackback']) && $post['send_trackback'] == true){\n \tinclude_once(LOQ_APP_ROOT.'includes/trackbackhandler.class.php');\n \t$tb = new trackbackhandler($this->_db);\n \t$tb->send_trackback('', $post['title'], $post['excerpt'], $post['tburl']);\n }\n }\n else{\n $this->_last_error = $this->_db->ErrorMsg();\n }\n return $rval;\n }", "public function updatePost(\\post\\model\\Post $post) {\n\t\t//Update in system.\n\t\t$this->postDAL->updatePost($post);\n\t}", "public function index_onUpdate()\n\t{\n\t\t$record_id = post('record_id');\n\t\tparent::update_onSave($record_id));\n\t\treturn $this->controller->listRefresh();\n\t}", "public function globalPost() // : void - Waiting for 7.1 enviroments to \"be out there\".\n {\n global $post;\n\n if (is_a($post, 'WP_Post')) {\n $post = $this->get($post);\n }\n }", "function wp_cache_set_posts_last_changed()\n {\n }", "public function latestAction() {\n\t\t$node = $this->getPluginNode();\n\t\t$postsSourceNode = $this->getPostsSourceNode($node);\n\n\t\t$this->view->assign('hasPostNodes', $postsSourceNode->hasChildNodes('M12.Plugin.Blog:Post'));\n\t\t$this->view->assign('postNodes', $postsSourceNode->getChildNodes('M12.Plugin.Blog:Post', $this->getPostsLimit($node)));\n\t}", "private function PostSaver(){\n if ($this->updateMode){\n $post = Post::find($this->postId);\n } else {\n $post = new Post();\n }\n $post->user_id = Auth::user()->id;\n $post->title = $this->title;\n $post->category_id = (int)$this->categories;\n $post->caption = $this->caption;\n $post->url = $this->imagePath;\n $post->save();\n $post->Tag()->sync($this->tags);\n }", "function _post()\r\n\t\t{\r\n\t\t}", "function update_post_cache(&$posts)\n {\n }", "public static function _policy_page_updated($post_id)\n {\n }", "public function update(Request $request, Post $post)\n {\n //user情報取得\n $user = \\Auth::user();\n if ($user) {\n $login_user_id = $user->id;\n } else {\n $login_user_id = \"\";\n }\n\n /**\n * post_mainをDBへ保存\n */\n //更新用過去データ準備\n $preMainId = $request->preMainId;\n $postMain = Post::find($preMainId);\n\n $ImageFactory = new ImageFactory;\n\n // 画像の投稿がある場合は、保存\n if (!empty($request->file('main_photo'))) {\n //画像を保存し、ファイル名を返す\n $imageName = $ImageFactory->storeImage($request->file('main_photo'));\n $postMain->photo = $imageName;\n }\n\n $postMain->title = $request->title;\n $postMain->area = $request->area;\n $postMain->impression = $request->impression;\n $postMain->budget_id = $request->budget;\n $postMain->year = $request->year;\n $postMain->month = $request->month;\n $postMain->term_id = $request->term;\n $postMain->save();\n //tag情報を格納 where('post_id', 'like', $post_sub_id)->value('tag_id');\n $tagMap = Tag_map::where('post_id', $preMainId)->first();\n $tagMap->tag_id = $request->tag;\n $tagMap->save();\n\n /**\n * post_subをDBへ保存\n */\n\n $count = $request->totalCount + 1;\n\n for ($i=1; $i < $count ; $i++) {\n //更新用$i番目過去データ準備\n $preSubPost = sub_Post::where('post_main_id', $preMainId)\n ->where('post_order', $i)\n ->first();\n\n //delFlagが立っていた場合は、削除\n $delFlag = 'delFlag_'.$i;\n if ($request->$delFlag === \"1\") {\n // 画像を削除\n if ($preSubPost['photo']) {\n $pathdel = public_path('storage/postedImages/'. $preSubPost['photo']);\n \\File::delete($pathdel);\n }\n // tag_mapを削除\n tag_Map::where('post_id', $preSubPost['post_sub_id'])\n ->delete();\n // sub_postを削除\n sub_post::where('post_sub_id', $preSubPost['post_sub_id'])\n ->where('post_order', $i)\n ->delete();\n continue;\n }\n\n //新たに登録用のレコード用意\n $subPost = new sub_Post;\n\n $comment = 'comment_'.$i;\n $tag = 'tag_'.$i;\n //一意のpost_sub_idを生成\n $post_sub_id = $user->id.time().$i;\n\n $subPost->post_sub_id = $post_sub_id;\n $subPost->post_main_id = $preMainId;\n $subPost->post_order = $i;\n\n //画像を保存\n if (!empty($request->file('sub_photo_'.$i))) { // 写真が更新された場合\n //画像を保存しファイル名を返す\n $imageName = $ImageFactory->storeImage($request->file('sub_photo_'.$i));\n $subPost->photo = $imageName;\n //旧写真削除\n if (!empty($preSubPost['photo'])) {\n $pathdel = public_path('storage/postedImages/'. $preSubPost['photo']);\n \\File::delete($pathdel);\n }\n } elseif (!empty($preSubPost['photo'])) { // 写真が更新されない&元々画像があった場合\n $subPost->photo = $preSubPost['photo'];\n } else { // 写真が削除されている場合\n // 未実装\n }\n\n //コメントを保存\n if (!empty($request->$comment)) {\n $subPost->comment = $request->$comment;\n }\n $subPost->save();\n\n //tag情報を格納\n if (!empty($request->$tag)) {\n $tagMap = new Tag_map;\n $tagMap->post_id = $post_sub_id;\n $tagMap->tag_id = $request->$tag;\n $tagMap->save();\n }\n\n // 旧レコードを削除\n if (!empty($preSubPost['post_sub_id'])) {\n Tag_map::where('post_id', $preSubPost['post_sub_id'])\n ->delete();\n sub_post::where('post_sub_id', $preSubPost['post_sub_id'])\n ->where('post_order', $i)\n ->delete();\n }\n }\n return redirect()->route('postShow', ['post_id' => $preMainId]);\n }", "public function publish(Post $post)\n {\n $post->updated_at = null;\n\n $post->published = true;\n\n $query = DB::table('threads')\n ->where('id', $post->thread_id)\n ->update(['lastpost_uid' => $post->user_id, 'lastpost_date' => $post->created_at]);\n\n $post->save();\n\n return back();\n }", "function WoopPost( $post ) { $this->post = $post; }", "public function refresh();", "public function refresh();", "public function initPostBadges()\n\t{\n\t\t$this->collPostBadges = array();\n\t}", "public function update(Post $post): Post\n\t{\n\t}", "public function update() {\n // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error');\n \n // we use the given id to get the right post and delete from the database\n $post = Post::update($_GET['id']);\n require_once('view/posts/submit.php');\n }", "function time_entry_updated( $post_id ) {\n\tif ( wp_is_post_revision( $post_id ) ) {\n\t\treturn;\t\t\n\t}\n\t\n\n // If not time entry dont update\n\t$type1 = 'time_entry';\n\t if ( $type1 != $_POST['post_type'] ) {\n return;\n }\t\n\t\t\n\n\t$post_title = get_the_title( $post_id );\n\t$post_url = get_permalink( $post_id );\n\t//hrs invested\n\t$hrs_invested = 'field_53549855f0f97';\n\t$val1 = get_field_object($hrs_invested, $post_id, true);\n\n\t$field_key = \"field_53549855f0f97\";\n\t$field = get_field_object($field_key, $post_id);\n \n \t//clear values\n \t$totalhourspurchased = 0;\n\t$totalhoursinvested = 0;\n\t$history_hours_content = '';\n\t$myposts =NULL;\n\t\n\n\t\n\tglobal $wp_query;\n$args = array_merge( $wp_query->query_vars,array( 'post_type' => 'time_entry',\n\t\t'posts_per_page' => '-1' ) );\nquery_posts( $args );\t\n\twhile ( have_posts() ) : the_post();\n $history_hours_content.='<li><a href=\"'. get_permalink() .'\">'. get_the_title().':'.get_field('hours_invested').' hours</a></li>';\n\t$totalhoursinvested += get_field('hours_invested'); \n\tendwhile;\n\t\n\t\n\t\t\t\n\n\t//total hours purchased\n\n\n\tif( have_rows('prepaid_hours', 'options') ):\n\t\twhile ( have_rows('prepaid_hours', 'options') ) : the_row();\t\n\t\t\t$totalhourspurchased += get_sub_field('number_of_hours_purchased', 'options');\n\t\tendwhile;\n\t\t\telse :\n\t\t\tendif;\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\t\t\n\t$remainingtime = $totalhourspurchased-$totalhoursinvested;\t\t\n\tif (($remainingtime<=1)&&($remainingtime>0)) {\n\t\t email_low($remainingtime, $totalhourspurchased, $totalhoursinvested);\t\t\n\t} elseif ($remainingtime<=0) {\n\t\temail_zero($remainingtime, $totalhourspurchased, $totalhoursinvested);\n\t}\n\t \n\t\n\t\n}", "function editpost(){\n\t\t\t$this->load->model('User_model');\n\t\t\t$postID = $_POST[\"postID\"];\n\t\t\t$changes = $_POST[\"changes\"];\n\t\t\t//echo 'here'.$postID.$changes;\n\t\t\t$query = $this->User_model->editpostModel($postID, $changes);\n\t\t\t\n\t\t\tif($query){\n\t\t\t\techo 'edited';\n\t\t\t}\t\t\t\n\t\t}", "function wpachievements_wordpress_post($pid, $status){\r\n if( !empty($pid) ){\r\n $pdata = get_post( $pid );\r\n if( $pdata->post_author && $pdata->post_type == 'post' ){\r\n if(function_exists('is_multisite') && is_multisite()){\r\n $post_count = (int)get_blog_option(1, 'wpachievements_post_min_count');\r\n $post_deduct = (int)get_blog_option(1, 'wpachievements_post_min_deduct');\r\n } else{\r\n $post_count = (int)get_option('wpachievements_post_min_count');\r\n $post_deduct = (int)get_option('wpachievements_post_min_deduct');\r\n }\r\n if( empty($post_count) || $post_count < 1 ){\r\n $post_count = 1;\r\n }\r\n $uid=$pdata->post_author; $postid=$pid;\r\n if( !empty($post_count) && $post_count > 0 ){\r\n if( str_word_count($pdata->post_content) >= $post_count ){\r\n $type='post_added';\r\n if( !function_exists(WPACHIEVEMENTS_CUBEPOINTS) && !function_exists(WPACHIEVEMENTS_MYCRED) ){\r\n if(function_exists('is_multisite') && is_multisite()){\r\n $points = (int)get_blog_option(1, 'wpachievements_post_points');\r\n } else{\r\n $points = (int)get_option('wpachievements_post_points');\r\n }\r\n }\r\n if(empty($points)){$points=0;}\r\n wpachievements_new_activity($type, $uid, $postid, $points);\r\n } else{\r\n $type='post_added_bad';\r\n if( !empty($post_deduct) && $post_deduct > 0 ){\r\n $points=$post_deduct;\r\n } else{\r\n $points=0;\r\n }\r\n if(empty($points)){$points=0;}\r\n wpachievements_new_activity($type, $uid, $postid, -$points);\r\n }\r\n } else{\r\n $type='post_added';\r\n if( !function_exists(WPACHIEVEMENTS_CUBEPOINTS) && !function_exists(WPACHIEVEMENTS_MYCRED) ){\r\n if(function_exists('is_multisite') && is_multisite()){\r\n $points = (int)get_blog_option(1, 'wpachievements_post_points');\r\n } else{\r\n $points = (int)get_option('wpachievements_post_points');\r\n }\r\n }\r\n if(empty($points)){$points=0;}\r\n wpachievements_new_activity($type, $uid, $postid, $points);\r\n }\r\n }\r\n }\r\n }", "public function initPostDailyStatss()\n\t{\n\t\t$this->collPostDailyStatss = array();\n\t}", "function set_view($post_id) {\n\t$count_key = 'views';\n\t$count = get_post_meta ( $post_id, $count_key, true );\n\tif ($count == '') {\n\t\tdelete_post_meta ( $post_id, $count_key );\n\t\tadd_post_meta ( $post_id, $count_key, '0' );\n\t}\n\t$count ++;\n\treturn update_post_meta ( $post_id, $count_key, $count );\n}", "function wp_idolondemand_edit_post()\n{\n}", "function editnewsfeed(){\n if($_SERVER['REQUEST_METHOD'] === 'POST'){\n $post_id=$this->helper->getUriSegment(2);\n $user_id=$_POST['user_id'];\n $content=$_POST['content'];\n if(intval($user_id) == 0 || strlen($content) == 0 || intval($post_id) == 0 ){\n $arr[0]['Result'] = 0;\n\t $arr[0]['MSG'] = 'please send all required data';\n echo json_encode($arr);\n die;\n }\n $details = $this->post->getpost($post_id);\n if(!$details){\n $arr[0]['Result'] = 0;\n\t $arr[0]['MSG'] = 'invalid post id';\n echo json_encode($arr);\n die; \n }\n if($details['author'] != $user_id){\n $arr[0]['Result'] = 0;\n\t $arr[0]['MSG'] = 'You are not authorized to update this post.';\n echo json_encode($arr);\n die; \n }\n $args=array(\n 'post_type'=>'newsfeed',\n 'content'=>$content,\n 'author'=>$user_id\n );\n $where = array( 'ID' => $post_id );\n $update=$this->post->update_post($args,$where);\n\n if(isset($_FILES[\"image\"])){\n\n $validextensions = array(\"jpeg\", \"jpg\", \"png\");\n $temporary = explode(\".\", $_FILES[\"image\"][\"name\"]);\t\t\t\n $file_extension = end($temporary);\n $newfilename='';\n\n if (($_FILES[\"image\"][\"type\"] == \"image/png\") || ($_FILES[\"image\"][\"type\"] == \"image/jpg\") || ($_FILES[\"image\"][\"type\"] == \"image/jpeg\")) {\n $sourcePath = $_FILES['image']['tmp_name']; \n $t=time();\n $path = dirname($_SERVER[\"SCRIPT_FILENAME\"]).'/images/posts/';\n $newfilename = $t.\".\".($file_extension == 'jpeg' ? 'jpg' : $file_extension);\n\t $targetPath = $path.$newfilename; \n move_uploaded_file($sourcePath,$targetPath);\n $this->post->add_post_meta($post_id,'feature_image',$newfilename);\n } \n }\n\n \t $json[0]['result']=1;\n\t $json[0]['msg']='News updated successfully';\n\t echo json_encode($json);\n\t die; \n }else{\n $arr[0]['Result'] = 0;\n\t$arr[0]['MSG'] = 'please call required method';\n echo json_encode($arr);\n }\n }", "public function edit_postAction(){\n\t\t$info = $this->getPost(array('id','name', 'root_id', 'parent_id', 'sort'));\n\t\t\n\t\t//检测重复\n\t\t$area = Ola_Service_Area::getBy(array('name'=>$info['name']));\n\t\tif ($area && $area['id'] != $info['id']) $this->output(-1, $info['name'].'已存在.');\n\t\t\n\t\t$ret = Ola_Service_Area::update($info, $info['id']);\n\t\tif (!$ret) {\n\t\t $this->output(-1, '操作失败.');\n\t\t}\n\t\t$this->output(0, '操作成功.');\n\t}", "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "function update() {\n\n\t\t\t}", "protected function _afterSave()\r\n {\r\n $this->updatePostCommentCount();\r\n parent::_afterSave();\r\n }", "function RealTimePosts($c_id,$last_post=false,$uid=false){\r\n\r\n$posts=helpers::get_controller(POSTS)->RealTimePosts($c_id,$last_post,helpers::uid($uid));\r\n\r\nif(!empty($posts)){\r\n\r\nforeach($posts as $post){\r\n\r\n$return[]=helpers::WidgetOutput(\"Post\",array(\"post\"=>$post,\"options\"=>array(\r\n\r\n\t\t\"comments_enabled\"=>true,\r\n\t\t\"class\"=>Helpers::CoulmnClass(),\r\n\r\n\t\t)));\r\n\r\n}\r\n\r\nreturn $return;\r\n\r\n}\r\n\r\nreturn array();\r\n\r\n}", "public function updated(Post $post)\n {\n //\n $user = $this->userRepository->find($post->user_id, 'name');\n\n $body = [\n 'title' => $post->title,\n 'content' => $post->content,\n 'username' => $user ? $user->name : __('app.anonymous'),\n ];\n\n $this->postElasticSearch->updateDoc($post->id, $body);\n }", "protected function LastLevel() {\n\t\tif($this->slevel == $this->maxlevel) {\n\t\t\t$data = BuildPostdata();\n\t\t\t$this->Send($data);\n\t\t}\t\n\t}", "public function noticia_update_action()\r\n {\r\n $post = new PostFix();\r\n $id_post = Inputs::input($_POST['id_post']);\r\n $post->updateInfo($id_post, $_POST['titulo'], $_POST['subtitulo'], $_POST['corpo'], $_POST['id_user']);\r\n header(\"Location:\" . BASE_URL . \"noticias/noticia_update_form/?id=\" . $id_post);\r\n exit;\r\n }", "public function save($post)\n {\n $row = null;\n $user = $this->getUser();\n\n $data = $this->_prepareSaveData($post);\n\n if (isset($user['id'])) {\n $data['user_id'] = $user['id'];\n }\n\n if (array_key_exists('id', $data)) {\n $select = $this->_table->select()\n ->where(\"id = ?\", $data['id']);\n\n if (isset($data['user_id'])) {\n $select->where(\"user_id = ?\", $data['user_id']);\n }\n\n $row = $this->findBy('id', $data['id'], false, true);\n\n unset($data['id']);\n }\n\n if (!isset($post['partial'])) {\n if (!$user->isAdmin()) {\n $data['approved'] = $this->_setApprovedFlag();\n }\n\n $postageSettings = array();\n\n foreach (ShippingModel::$postageFields as $key => $value) {\n if (isset($post[$key])) {\n $postageSettings[$key] = \\Ppb\\Utility::unserialize($post[$key]);\n }\n }\n\n $data['postage_settings'] = serialize($postageSettings);\n }\n\n $id = null;\n if (count($row) > 0) {\n $data['rollback_data'] = serialize($row);\n\n if (\n $row->isActiveAndOpen() &&\n $row->getData('list_in') != 'store' &&\n $row['last_count_operation'] == ListingModel::COUNT_OP_ADD\n ) {\n $row->countCategoriesCounter(ListingModel::COUNT_OP_SUBTRACT);\n $data['last_count_operation'] = ListingModel::COUNT_OP_NONE;\n }\n\n $data['updated_at'] = new Expr('now()');\n unset($data['user_id']);\n\n $this->_table->update($data, \"id='{$row['id']}'\");\n $id = $row['id'];\n }\n else if (!isset($post['partial'])) {\n $data['created_at'] = new Expr('now()');\n\n $this->_table->insert($data);\n $id = $this->_table->getAdapter()->lastInsertId();\n }\n\n if (!isset($post['partial'])) {\n // save all media corresponding to the listing in the listings_media table\n $this->getListingsMedia()->save($id, $post);\n\n // save custom fields data in the custom_fields_data table\n foreach ($post as $key => $value) {\n if (strstr($key, 'custom_field_')) {\n $fieldId = str_replace('custom_field_', '', $key);\n $this->getCustomFieldsDataService()->save(\n $value, self::CUSTOM_FIELDS_TYPE, $fieldId, $id);\n }\n }\n }\n\n return $id;\n }", "function increament_views($id , $author) {\n /* check if already exixts or not ? */\n\n include(\"../db/dbconnect.php\");\n\n $query=\"SELECT *\n FROM user_post\n WHERE postID='$id'\n \";\n\n $result=mysqli_query($conn , $query);\n\n if($result==true) {\n /* Record is already availebl*/\n if(mysqli_num_rows($result) == 1) {\n while($row = mysqli_fetch_assoc($result)) {\n $views=$row['postViews'];\n $views = $views + 1;\n\n $query=\"UPDATE user_post\n SET postViews='$views'\n WHERE postID='$id'\n \";\n $res=mysqli_query($conn , $query);\n\n if($res) {\n //echo \"Successfully updated views\";\n } else {\n echo \"Problem updating views\";\n }\n\n return $row['postViews'];\n }\n } else {\n //printf(\"Post record is not availbel\");\n\n $query=\"INSERT INTO user_post (postAuthor , postID ,postLikes , postDisLikes ,postComments ,postViews)\n VALUES ('$author' , '$id' , '0' , '0' , '0' , '1')\";\n $result=mysqli_query($conn , $query);\n\n if($result) {\n //echo \"************* New record inserted successfully okay ***********\";\n return 1;\n } else {\n echo \"Problem in inserting the post\";\n }\n }\n } else {\n echo \"Failed to load views\";\n }\n\n}", "function setPostViews($postID) {\n $countKey = 'post_views_count';\n $count = get_post_meta($postID, $countKey, true);\n // die(var_dump($count));\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $countKey);\n add_post_meta($postID, $countKey, '0');\n }else{\n $count++;\n update_post_meta($postID, $countKey, $count);\n }\n}", "function wpgplus_update_profile_status($post_id) {\t$wpgplus_debug_file= WP_PLUGIN_DIR .'/wpgplus/debug.txt';\n\t/* Set up the post */\n\tglobal $more;\n\t$more = 0; //only the post teaser please\n\t$my_post = get_post($post_id);\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Inside update_profile_states with post_id \". $post_id .\" \\n\");\n\tif(!empty($my_post->post_password)) { // post is password protected, don't post\n\t\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Post is password protected\\n\");\n\t\treturn;\n\t}\n\tif(get_post_type($my_post->ID) != 'post') { // only do this for posts\n\t\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Post type is \". get_post_type($my_post->ID) .\"\\n\");\n\t\treturn;\n\t}\n\t$my_post_text = get_post_meta($post_id,'wpgplus_message',true); // if we have a post_message\n\tif ($my_post_text == '') {\n\t\tif(($my_post->post_excerpt) && ($my_post->post_excerpt != '')) {\n\t\t\t$my_post_text = stripslashes(wp_filter_nohtml_kses(apply_filters('the_content',$my_post->post_excerpt)));\n\t\t} else {\n\t\t\t$my_post_text = stripslashes(wp_filter_nohtml_kses(apply_filters('the_content',$my_post->post_content)));\n\t\t}\n\t}\n if(strlen($my_post_text) >= 995) {\n\t\t$space_index = strrpos(substr($my_post_text, 0, 995), ' ');\n\t\t$short_desc = substr($my_post_text, 0, $space_index);\n\t\t$short_desc .= '...';\n\t\t$my_post_text = $short_desc;\n\t}\n\n\t/* Now let's go get the form */\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Getting form for posting\\n\");\n\t//wpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Post text is \". $my_post_text .\"\\n\");\n\n\t// These are the cookies I know of - not sure all are needed\n\t$cookies = array();\n\t$my_cookies = array('GAPS','GALX','NID','SID','LSID','HSID','SSID','APISID','SAPISID');\n\tforeach ($my_cookies as $name) {\n\t\t$new_cookie = wpgplus_get_cookie($name);\n\t\tif($new_cookie) {\n\t\t\t$cookies[] = wpgplus_get_cookie($name);\n\t\t}\n\t}\n\t//wpgplus_debug(\"\\nAbout to get form, cookies are \". print_r($cookies,true) .\"\\n\");\n\t$my_args = array('method' => 'GET',\n\t\t\t\t\t 'timeout' => '45',\n\t\t\t\t\t 'redirection' => 0,\n\t\t\t\t\t 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 5.0; S60/3.0 NokiaN73-1/2.0(2.0617.0.0.7) Profile/MIDP-2.0 Configuration/CLDC-1.1)',\n\t\t\t\t\t 'blocking' => true,\n\t\t\t\t\t 'compress' => false,\n\t\t\t\t\t 'decompress' => true,\n\t\t\t\t\t 'ssl-verify' => false,\n\t\t\t\t\t 'cookies' => $cookies,\n\t\t\t\t\t);\n\t// Need to get from this URL and follow redirects\n\t$buf = wp_remote_request('https://plus.google.com/app/basic/share',$my_args);\n\tif(is_wp_error($buf)) {\n\t\twp_die($buf);\n\t}\n\n\t// need to check to see what cookies are new or updated\n\t// $new_cookies = array of cookies returned by post\n\t// $cookies = array of existing cookies sent\n\t$new_cookies = $buf['cookies'];\n\tfor($x = count($cookies); $x>0; $x--) {\n\t\t// if cookie is already in $cookies array, we remove old version\n\t\tforeach($new_cookies as $new_cookie) {\n\t\t\tif($new_cookie->name == $cookies[$x]->name) {\n\t\t\t\t//wpgplus_debug(\"\\nUnsetting cookie for \". $cookies[$x]->name);\n\t\t\t\tunset($cookies[$x]);\n\t\t\t}\n\t\t}\n\t}\n\t// now that existing cookies are out of the array, add all back in\n\tforeach($new_cookies as $cookie) {\n\t\twpgplus_set_cookie($cookie);\n\t\t$cookies[] = $cookie;\n\t}\n\t// form gets redirected to a new base url\n\t$my_redirect = $buf['headers']['location'];\n\n\tif(substr($my_redirect, 0, 1) == '/') {\n\t\t$my_redirect = 'http://plus.google.com' . $my_redirect;\n\t}\n\n\tif ($my_redirect) {\n\t\twpgplus_debug(\"\\nShould be past redirect for form, response was \". print_r($buf,true) .\"\\n\");\n \twpgplus_debug(\"\\nLine 430, My Redirect was \". $my_redirect .\"\\n\");\n\t\twpgplus_debug(\"\\nGetting form at redirected url, cookies are \". print_r($cookies,true) .\"\\n\");\n\t\t// need to reget the form at the new url\n\t\t$my_args = array('method' => 'GET',\n\t\t\t\t\t 'timeout' => '45',\n\t\t\t\t\t 'redirection' => 0,\n\t\t\t\t\t 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 5.0; S60/3.0 NokiaN73-1/2.0(2.0617.0.0.7) Profile/MIDP-2.0 Configuration/CLDC-1.1)',\n\t\t\t\t\t 'blocking' => true,\n\t\t\t\t\t 'compress' => false,\n\t\t\t\t\t 'decompress' => true,\n\t\t\t\t\t 'ssl-verify' => false,\n\t\t\t\t\t 'cookies' => $cookies,\n\t\t\t\t\t);\n\t\t$buf = wp_remote_request($my_redirect, $my_args);\n\t\tif(is_wp_error($buf)) {\n\t\t\twp_die($buf);\n\t\t}\n\t\t$new_cookies = $buf['cookies'];\n\t\tfor($x = count($cookies); $x>0; $x--) {\n\t\t\t// if cookie is already in $cookies array, we remove old version\n\t\t\tforeach($new_cookies as $new_cookie) {\n\t\t\t\tif($new_cookie->name == $cookies[$x]->name) {\n\t\t\t\t\t//wpgplus_debug(\"\\nUnsetting cookie for \". $cookies[$x]->name);\n\t\t\t\t\tunset($cookies[$x]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// now that existing cookies are out of the array, add all back in\n\t\tforeach($new_cookies as $cookie) {\n\t\t\twpgplus_set_cookie($cookie);\n\t\t\t$cookies[] = $cookie;\n\t\t}\n\t\twpgplus_debug(\"\\nGot new form at new url, cookies are now \". print_r($cookies,true) .\"\\n\");\n\n\t}\n\t// now we get the form inputs, including hidden ones\n\twpgplus_debug(\"\\nForm being parsed is in \". $buf['body'] .\"\\n\");\n\t$params = array();\n $doc = new DOMDocument;\n $doc->loadHTML($buf['body']);\n $inputs = $doc->getElementsByTagName('input');\n foreach ($inputs as $input) {\n\t if (($input->getAttribute('type') == 'hidden')) {\n\t\t\t$params[$input->getAttribute('name')] = $input->getAttribute('value');\n\t }\n\t}\n $params['cpPostMsg'] = $my_post_text . ' ' . get_permalink($my_post);\n\t$params['post'] = ' Post '; // input type=\"submit\" important too?\n\t$params['currentPage'] = '1';\n\t$params['buttonPressed'] = '1';\n\n\tforeach ($params as $key => $value)\n\t{\n\t $post_items[] = $key . '=' . urlencode($value);\n\t}\n\t$params = implode ('&', $post_items);\n\n\t// need to determine form url from the form action\n\tsleep(6);\n\t$forms = $doc->getElementsByTagName('form');\n\tif(substr($forms->item(0)->getAttribute('action'), 0, 1) == '/') {\n\t\t$baseurl = 'https://plus.google.com'. $forms->item(0)->getAttribute('action');\n\t}\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Going to publish, params is \". print_r($params,true) .\"\\n\");\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : and base url is \". $baseurl .\"\\n\");\n\n\t// This last post should NOT follow redirects\n \t$my_args = array('method' => 'POST',\n\t\t\t\t\t 'timeout' => 45,\n\t\t\t\t\t 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 5.0; S60/3.0 NokiaN73-1/2.0(2.0617.0.0.7) Profile/MIDP-2.0 Configuration/CLDC-1.1)',\n\t\t\t\t\t 'redirection' => 0,\n\t\t\t\t\t 'blocking' => true,\n\t\t\t\t\t 'compress' => false,\n\t\t\t\t\t 'decompress' => true,\n\t\t\t\t\t 'ssl-verify' => false,\n\t\t\t\t\t 'body' => $params,\n\t\t\t\t\t 'cookies' => $cookies,\n\t\t\t\t\t 'headers' => array('Referer' => 'https://plus.google.com/app/basic/share',\n\t\t\t\t\t \t\t\t\t'Content-Type' => 'application/x-www-form-urlencoded',\n\t\t\t\t\t\t\t\t\t'Content-Length' => strlen($params))\n\t\t\t\t\t);\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : About to post form, my_args are \". print_r($my_args,true). \"\\n\");\n\t//$buf = wp_remote_post($baseurl . '&a=post',$my_args);\n\t$buf = wp_remote_post($baseurl,$my_args);\n\tif(is_wp_error($buf)) {\n\t\twp_die($buf);\n\t}\n\t$header = $buf['headers'];\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Posted form, status was \". $buf['response']['code']\t. \"\\n\");\n\t//wpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Post text was \". $my_post_text .\"\\n\");\n\t//wpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Header of response was \". print_r($header,true) .\"\\n\");\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Body was \". $buf['body'] .\"\\n\");\n\t// seems like the item still isn't posted at this point?\n}", "public function listPost()\n {\n //Your code goes here\n $data['posts'] = PostModel::where('status',1)->orWhere('status',2)->orderBy('id','desc')->get();\n $data['pagemode'] = 'edit';\n return admin_view('Posts::List', $data);\n }", "public function restored(Post $post)\n {\n $post->recordActivity('restored');\n }", "public function update()\r\n {\r\n \r\n }", "public function update() {\r\n\r\n\t}", "public function product_update_post()\n\t\t\t\t{\n\t\t\t\t}", "function post() \n {\n \n }", "public function load($post);", "function new_post($post){\n $this->newPost($post);\n }", "public function OnPostDone($post) {\n\n }", "function refresh_blog_details($blog_id = 0)\n {\n }", "public function post()\n {\n $postsRepository = new PostsRepository();\n if (!empty($_SESSION['id'])) {\n $posts = $postsRepository->getOneById($_SESSION['id']); \n }\n\n require 'src/View/postView.php';\n }", "function setPostViews($postID) {\r\n $count_key = 'post_views_count';\r\n $count = get_post_meta($postID, $count_key, true);\r\n if($count==''){\r\n add_post_meta($postID, $count_key, '1');\r\n }else{\r\n $count++;\r\n update_post_meta($postID, $count_key, $count);\r\n }\r\n}" ]
[ "0.6354395", "0.617254", "0.6103742", "0.5984116", "0.59338796", "0.59187853", "0.59165543", "0.5913948", "0.591123", "0.5880895", "0.58727545", "0.5855105", "0.58002716", "0.5797384", "0.5773474", "0.5767801", "0.5756881", "0.5738758", "0.5731384", "0.57179105", "0.57128376", "0.57026476", "0.57021254", "0.56841105", "0.56838375", "0.5682167", "0.5679607", "0.5679607", "0.5674496", "0.5648727", "0.56435543", "0.56284803", "0.5623896", "0.56099015", "0.55991095", "0.5597292", "0.5581387", "0.5579739", "0.55732256", "0.55647683", "0.5563321", "0.55608034", "0.5560123", "0.5559466", "0.55585235", "0.55575836", "0.5548124", "0.5543283", "0.55432296", "0.55405504", "0.5535639", "0.55274445", "0.55167836", "0.5515918", "0.5483335", "0.5479311", "0.5469914", "0.5462801", "0.5462111", "0.5450722", "0.5450703", "0.5441621", "0.54402685", "0.54369605", "0.54369605", "0.54358524", "0.5432302", "0.5428703", "0.5421467", "0.541907", "0.54173225", "0.5414192", "0.54137295", "0.5412137", "0.54060084", "0.54046094", "0.54018945", "0.54018945", "0.54018945", "0.540075", "0.53992933", "0.53966635", "0.539298", "0.53924274", "0.5391439", "0.5384856", "0.53829914", "0.5376456", "0.5370536", "0.53631526", "0.5361495", "0.53606", "0.5358473", "0.5354414", "0.5353559", "0.53502303", "0.53495413", "0.5349402", "0.53456724", "0.53449553", "0.5344836" ]
0.0
-1
this php unit contains main routines for scraping iTunesConnect sales reports
function process_sales($login, $options, $reptype) { global $last_http_headers; $appleid = $login["appleid"]; // function process_sales($sales_url, $appleid, $options, $reptype) { $reptype_l = strtolower($reptype); if (!is_dir(BASE_META_DIR."/salesreports") && !mkdir(BASE_META_DIR."/salesreports")) return error("couldn't access salrereports directory"); if (!is_dir(BASE_META_DIR."/salesreports/$appleid") && !mkdir(BASE_META_DIR."/salesreports/$appleid")) return error("couldn't access salrereports directory for appleid=$appleid"); if (!is_dir(BASE_META_DIR."/salesreports/$appleid/$reptype_l") && !mkdir(BASE_META_DIR."/salesreports/$appleid/$reptype_l")) return error("couldn't access salrereports $reptype_l directory for appleid=$appleid"); $filenames = array(); $attcnt = 0; if ($reptype_l=='daily') { $from = 0; $to = 30; } else { $from = 0; $to = 24; } $weekbeg = mktime(0, 0, 0, date('m'), date('d'), date('Y')) - ((date('N')-1)*24*60*60) - 24*60*60; for ($i=$from;$i<$to;$i++) { if ($reptype_l=='daily') $dt = date("Ymd",time()-$i*24*60*60); else $dt = date("Ymd",$weekbeg-7*$i*24*60*60); $fntocheck = "S_".$reptype[0]."_".$login["vendorid"]."_$dt.txt"; echo("checkin report file $fntocheck... "); if (file_exists(BASE_META_DIR."salesreports/$appleid/$reptype_l/".$fntocheck)) { echo("report previously got. skipping \n"); continue; } echo("new report, getting\n"); echo("$reptype processing date $dt\n"); $postvars = array( "USERNAME"=>$login["appleid"], "PASSWORD"=>$login["password"], "VNDNUMBER"=>$login["vendorid"], "TYPEOFREPORT"=>"Sales", "DATETYPE"=>$reptype, "REPORTTYPE"=>"Summary", "REPORTDATE"=>$dt ); $res = getUrlContent("https://reportingitc.apple.com/autoingestion.tft?",$postvars,true); $filename = isset($last_http_headers["content-disposition"])?$last_http_headers["content-disposition"]:false; $ERRORMSG = isset($last_http_headers["ERRORMSG"])?$last_http_headers["ERRORMSG"]:false; if ($ERRORMSG) echo("ITC Error: $ERRORMSG\n"); echo("filename=$filename\n"); if (!$filename && $attcnt == 5) { if ($options["debug"]) echo("content-disposition http header not found. skipping this report\n"); continue; } $attcnt++; if(!$filename) continue; $ar = explode("=", $filename); $filename = $ar[1]; # Check for an override of the file name. If found then change the file # name to match the outputFormat. if ($options["outputFormat"]) $filename = date($options["outputFormat"], $downloadReportDate); $filebuffer = $res; $filename = BASE_META_DIR."salesreports/$appleid/$reptype_l/".$filename; if ($options["unzipFile"] && substr($filename, -3) == '.gz') #Chop off .gz extension if not needed $filename = substr($filename, 0, strlen($filename) - 3); if ($options["debug"]) echo("Saving download file: $filename\n"); file_put_contents($filename, $filebuffer); if ($options["unzipFile"]) { if ($options["debug"]) echo("unzipping report file\n"); $HandleRead = gzopen($filename, "rb"); $rest = substr($filebuffer, -4); $GZFileSize = end(unpack("V", $rest)); $report = gzread($HandleRead, $GZFileSize); gzclose($HandleRead); if (!$report) { warn("some problems with unzipping\n"); continue; } file_put_contents($filename, $report); if ($options["debug"]) echo("unzipping succeeded\n"); } $filenames[] = $filename; } return $filenames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrape() \n {\n\t\t$index = $this->curl_index();\n\t\t$check = preg_match('/id\\=\\\"\\_\\_VIEWSTATE\\\"\\svalue\\=\\\"([^\"]*)\"/', $index, $match); \n\t\tif ($check)\n\t\t{\n\t\t\t$vs = $match[1];\n\t\t\t$check = preg_match('/id\\=\\\"\\_\\_EVENTVALIDATION\\\"\\svalue\\=\\\"([^\"]*)\"/', $index, $match); \n\t\t\tif ($check)\n\t\t\t{\n\t\t\t\t$ev = $match[1];\n\t\t\t\t$search = '_'; // this search will return ALL \n\t\t\t\t$index = $this->curl_index($vs, $ev, $search);\n\t\t\t\t$flag = false;\n\t\t\t\t# need to handle paging here\n\t\t\t\tdo \n\t\t\t\t{\n\t\t\t\t\t# build booking_id array\n\t\t\t\t\t//echo $index;\n\t\t\t\t\t$check = preg_match_all('/btnNormal\\\"\\shref\\=\\\"(.*)\\\"/Uis', $index, $matches);\n\t\t\t\t\tif ( ! $check)\n\t\t\t\t\t\tbreak; // break paging loop\n\t\t\t\t\t$booking_ids = array();\n\t\t\t\t\tforeach($matches[1] as $match)\n\t\t\t\t\t{\n\t\t\t\t\t\t$booking_ids[] = preg_replace('/[^0-9]*/Uis', '', $match);\n\t\t\t\t\t}\n\t\t\t\t\tif (!empty($booking_ids))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($booking_ids as $booking_id)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$details = $this->curl_details($booking_id);\n\t\t\t\t\t\t\t$extraction = $this->extraction($details, $booking_id);\n\t\t\t if ($extraction == 100) { $this->report->successful = ($this->report->successful + 1); $this->report->update(); }\n\t if ($extraction == 101) { $this->report->other = ($this->report->other + 1); $this->report->update(); }\n\t if ($extraction == 102) { $this->report->bad_images = ($this->report->bad_images + 1); $this->report->update(); }\n\t if ($extraction == 103) { $this->report->exists = ($this->report->exists + 1); $this->report->update(); }\n\t if ($extraction == 104) { $this->report->new_charges = ($this->report->new_charges + 1); $this->report->update(); }\n\t $this->report->total = ($this->report->total + 1); $this->report->update();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else { $flag = true; } // no more pages\n\t\t\t\t\t# need to page here\n\t\t\t\t\t$index = $this->curl_page($index);\n\t\t\t\t\tif($index == false) { $flag = true; }\n\t\t\t\t} while($flag == false);\n\t\t\t\t$this->report->failed = ($this->report->other + $this->report->bad_images + $this->report->exists + $this->report->new_charges);\n\t\t $this->report->finished = 1;\n\t\t $this->report->stop_time = time();\n\t\t $this->report->time_taken = ($this->report->stop_time - $this->report->start_time);\n\t\t $this->report->update();\n\t\t return true; \n\t\t\t} else { return false; } // no event validation found\n\t\t} else { return false; } // no viewstate found\n\t}", "abstract public function scrape();", "public function collectData(){\n\t\t// Simple HTML Dom is not accurate enough for the job\n\t\t$content = getContents($this->getURI())\n\t\t\tor returnServerError('No results for LWNprev');\n\n\t\tlibxml_use_internal_errors(true);\n\t\t$html = new DOMDocument();\n\t\t$html->loadHTML($content);\n\t\tlibxml_clear_errors();\n\n\t\t$cat1 = '';\n\t\t$cat2 = '';\n\n\t\tforeach($html->getElementsByTagName('a') as $a){\n\t\t\tif($a->textContent === 'Multi-page format'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$realURI = self::URI . $a->getAttribute('href');\n\t\t$URICounter = 0;\n\n\t\t$edition = $html->getElementsByTagName('h1')->item(0)->textContent;\n\t\t$editionTimeStamp = strtotime(\n\t\t\tsubstr($edition, strpos($edition, 'for ') + strlen('for '))\n\t\t);\n\n\t\tforeach($html->getElementsByTagName('h2') as $h2){\n\t\t\tif($h2->getAttribute('class') !== 'SummaryHL'){\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$item = array();\n\n\t\t\t$h2NextSibling = $h2->nextSibling;\n\t\t\t$this->jumpToNextTag($h2NextSibling);\n\n\t\t\tswitch($h2NextSibling->getAttribute('class')){\n\t\t\tcase 'FeatureByline':\n\t\t\t\t$item['author'] = $h2NextSibling->getElementsByTagName('b')->item(0)->textContent;\n\t\t\t\tbreak;\n\t\t\tcase 'GAByline':\n\t\t\t\t$text = $h2NextSibling->textContent;\n\t\t\t\t$item['author'] = substr($text, strpos($text, 'by '));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$item['author'] = 'LWN';\n\t\t\t\tbreak;\n\t\t\t};\n\n\t\t\t$h2FirstChild = $h2->firstChild;\n\t\t\t$this->jumpToNextTag($h2FirstChild);\n\t\t\tif($h2FirstChild->nodeName === 'a'){\n\t\t\t\t$item['uri'] = self::URI . $h2FirstChild->getAttribute('href');\n\t\t\t}else{\n\t\t\t\t$item['uri'] = $realURI . '#' . $URICounter;\n\t\t\t}\n\t\t\t$URICounter++;\n\n\t\t\t$item['timestamp'] = $editionTimeStamp + $URICounter;\n\n\t\t\t$h2PrevSibling = $h2->previousSibling;\n\t\t\t$this->jumpToPreviousTag($h2PrevSibling);\n\t\t\tswitch($h2PrevSibling->getAttribute('class')){\n\t\t\tcase 'Cat2HL':\n\t\t\t\t$cat2 = $h2PrevSibling->textContent;\n\t\t\t\t$h2PrevSibling = $h2PrevSibling->previousSibling;\n\t\t\t\t$this->jumpToPreviousTag($h2PrevSibling);\n\t\t\t\tif($h2PrevSibling->getAttribute('class') !== 'Cat1HL'){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$cat1 = $h2PrevSibling->textContent;\n\t\t\t\tbreak;\n\t\t\tcase 'Cat1HL':\n\t\t\t\t$cat1 = $h2PrevSibling->textContent;\n\t\t\t\t$cat2 = '';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$h2PrevSibling = null;\n\n\t\t\t$item['title'] = '';\n\t\t\tif(!empty($cat1)){\n\t\t\t\t$item['title'] .= '[' . $cat1 . ($cat2 ? '/' . $cat2 : '') . '] ';\n\t\t\t}\n\t\t\t$item['title'] .= $h2->textContent;\n\n\t\t\t$node = $h2;\n\t\t\t$content = '';\n\t\t\t$contentEnd = false;\n\t\t\twhile(!$contentEnd){\n\t\t\t\t$node = $node->nextSibling;\n\t\t\t\tif(!$node || (\n\t\t\t\t\t\t$node->nodeType !== XML_TEXT_NODE && (\n\t\t\t\t\t\t\t$node->nodeName === 'h2' || (\n\t\t\t\t\t\t\t\t!is_null($node->attributes) &&\n\t\t\t\t\t\t\t\t!is_null($class = $node->attributes->getNamedItem('class')) &&\n\t\t\t\t\t\t\t\tin_array($class->nodeValue, array('Cat1HL', 'Cat2HL'))\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\t\t\t\t\t$contentEnd = true;\n\t\t\t\t}else{\n\t\t\t\t\t$content .= $node->C14N();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$item['content'] = $content;\n\t\t\t$this->items[] = $item;\n\t\t}\n\t}", "function agregate_sales() {\n global $conn, $scrape_options;\n\n $dir = scandir(BASE_META_DIR);\n if (!$dir)\n return error(\"No apss were found.\\n\");\n\n $cnt = 0;\n $weekbeg = mktime(0, 0, 0, date('m'), date('d'), date('Y')) - ((date('N')-1)*24*60*60);\n// echo(\"agregating apps \".implode(\",\",$app_ids).\"\\n\");\n foreach($dir as $f) {\n if (substr($f,0,4) != \"app_\") continue;\n// if (!$apple_id) continue;\n $app = file_get_contents(BASE_META_DIR.\"$f/appmeta.dat\");\n if (!$app) continue;\n $app = unserialize($app);\n if (!$app) continue;\n $apple_id = $app[\"apple_id\"];\n\n if ($scrape_options[\"debug\"])\n echo(\"agregating stats for apple_id=$apple_id\\n\");\n\n $res = execSQL($conn, \"\nselect\n(select max(BeginDate) from itc_sales where AppleIdentifier=:apple_id) as stat_max_report_date,\n(select min(BeginDate) from itc_sales where AppleIdentifier=:apple_id) as stat_min_report_date,\n(select sum(units) from itc_sales where AppleIdentifier=:apple_id and BeginDate= EndDate and BeginDate = ifnull((select max(BeginDate) from itc_sales where AppleIdentifier=:apple_id), 0) group by AppleIdentifier) stat_last_day,\n(select sum(units) from itc_sales where AppleIdentifier=:apple_id and BeginDate<>EndDate and BeginDate > $weekbeg - 30 * 24 * 60 * 60 and EndDate<$weekbeg group by AppleIdentifier) stat_last_month,\n(select sum(units) from itc_sales where AppleIdentifier=:apple_id and (BeginDate<>EndDate or (BeginDate=EndDate and BeginDate>=$weekbeg)) group by AppleIdentifier) stat_whole_period\nfrom\ndual \n \", array(\":apple_id\"=>$apple_id));\n if (!$res) {\n echo(\"some problems with performing sql request. skipping\\n\");\n continue;\n }\n $row=$res->fetch(PDO::FETCH_ASSOC);\n if (!$row) {\n echo(\"no data has been returned\\n\");\n continue;\n }\n $app[\"stat_max_report_date\"] = $row[\"stat_max_report_date\"];\n $app[\"stat_min_report_date\"] = $row[\"stat_min_report_date\"];\n $app[\"stat_last_day\"] = $row[\"stat_last_day\"];\n $app[\"stat_last_month\"] = $row[\"stat_last_month\"];\n $app[\"stat_whole_period\"] = $row[\"stat_whole_period\"];\n $cont = serialize($app);\n if (!$cont) {\n echo(\"some problems with serializing app data: \". json_encode($app).\"\\n skipping\");\n continue;\n }\n if (!file_put_contents(BASE_META_DIR.\"$f/appmeta.dat\", $cont))\n echo(\"some problems with writing serialized data\\n\");\n }\n}", "public function parse_inventory_from_web() {\n require_once BASEPATH . 'phpQuery/phpQuery.php';\n log_message('debug', 'START parse_inventory_from_web');\n\n $dayAgo = date(DOCTRINE_DATE_FORMAT, (time() - (3600 * 12)));\n $settings = ManagerHolder::get('StoreInventoryParserSetting')->getAllWhere(array('last_parse_at<' => $dayAgo, 'url<>' => ''), 'e.*,store.*', 200);\n\n foreach ($settings as $setting) {\n $webPage = $this->getWebPage($setting['url']);\n ManagerHolder::get('StoreInventoryParserSetting')->updateById($setting['id'], 'last_http_code', $webPage['header']['http_code']);\n\n $markup = $webPage['result'];\n\n if ($setting['store']['code'] == 'Magbaby') {\n if (strpos($markup, '<span class=\"b-product__state b-product__state_type_available\">В наличии</span>') !== FALSE) {\n $qty = 10;\n } else {\n $qty = 0;\n }\n if (!empty($setting['product_group_id'])) {\n $productGroup = ManagerHolder::get('ParameterGroup')->getById($setting['product_group_id'], 'bar_code');\n $barCode = $productGroup['bar_code'];\n } else {\n $product = ManagerHolder::get('Product')->getById($setting['product_id'], 'bar_code');\n $barCode = $product['bar_code'];\n }\n\n $where = array('product_id' => $setting['product_id'], 'bar_code' => $barCode, 'store_id' => $setting['store_id']);\n $exists = ManagerHolder::get('StoreInventory')->existsWhere($where);\n $entity = array();\n $entity['qty'] = $qty;\n if (!empty($setting['product_group_id'])) {\n $entity['product_group_id'] = $productGroup['id'];\n }\n $entity['update_by_admin_id'] = '';\n $entity['update_source'] = 'web';\n $entity['updated_at'] = date(DOCTRINE_DATE_FORMAT);\n if ($exists) {\n ManagerHolder::get('StoreInventory')->updateAllWhere($where, $entity);\n } else {\n $entity = array_merge($entity, $where);\n ManagerHolder::get('StoreInventory')->insert($entity);\n }\n\n ManagerHolder::get('StoreInventoryParserSetting')->updateById($setting['id'], 'last_parse_at', date(DOCTRINE_DATE_FORMAT));\n }\n\n if ($setting['store']['code'] == 'i-love-mum') {\n $markup = file_get_contents($setting['url']);\n\n $params = array();\n if (strpos($markup, '<li>Доступность: На складе</li>') !== FALSE) {\n @phpQuery::newDocumentHTML($markup);\n\n foreach(pq('h3:contains(Доступные опции)')->next('div')->find('div:first > div') as $item) {\n // print pq($item)->html();\n // print \"\\n\";\n\n $param = pq($item)->find('label')->text();\n $param = trim($param);\n $param = ManagerHolder::get('ParameterValue')->getOneWhere(array('name' => $param), 'e.*');\n\n $value = pq($item)->find('label')->attr('title');\n $value = trim($value);\n if ($value == 'нет в наличии') {\n $qty = 0;\n } else {\n preg_match(\"/в наличии ([0-9]*) шт./\", $value, $mch);\n $qty = $mch[1];\n }\n\n $params[$param['id']] = $qty;\n }\n } else {\n $productGroups = ManagerHolder::get('ParameterGroup')->getAllWhere(array('product_id' => $setting['product_id']), 'main_parameter_value_id');\n foreach ($productGroups as $pg) {\n $params[$pg['main_parameter_value_id']] = 0;\n }\n }\n\n ManagerHolder::get('StoreInventory')->updateAllWhere(array('product_id' => $setting['product_id'], 'store_id' => $setting['store_id']), array('qty' => 0));\n foreach ($params as $paramId => $qty) {\n $productGroup = ManagerHolder::get('ParameterGroup')->getOneWhere(array('product_id' => $setting['product_id'], 'main_parameter_value_id' => $paramId), 'bar_code');\n if (!$productGroup) {\n continue;\n }\n\n $where = array('product_id' => $setting['product_id'], 'bar_code' => $productGroup['bar_code'], 'store_id' => $setting['store_id']);\n $exists = ManagerHolder::get('StoreInventory')->existsWhere($where);\n $entity = array();\n $entity['qty'] = $qty;\n $entity['product_group_id'] = $productGroup['id'];\n $entity['update_by_admin_id'] = '';\n $entity['update_source'] = 'web';\n $entity['updated_at'] = date(DOCTRINE_DATE_FORMAT);\n if ($exists) {\n ManagerHolder::get('StoreInventory')->updateAllWhere($where, $entity);\n } else {\n $entity = array_merge($entity, $where);\n ManagerHolder::get('StoreInventory')->insert($entity);\n }\n\n ManagerHolder::get('StoreInventoryParserSetting')->updateById($setting['id'], 'last_parse_at', date(DOCTRINE_DATE_FORMAT));\n }\n }\n sleep(rand(1,3));\n }\n\n ManagerHolder::get('StoreInventory')->updateProductStatuses();\n log_message('debug', 'FINISH parse_inventory_from_web');\n }", "public function __construct() {\n\t\ttry {\n\t\t\t// Construct an array with predefined date(s) which we will use to run a report\n\n\t\t\t$lastDay = intval(date(\"t\", strtotime(\"-1 month\")));\n\t\t\t$previousMonth = intval(date(\"m\", strtotime(\"-1 month\")));\n\t\t\t// Set variables\n\t\t\t$all = (array)array();\n\t\t\t$this->setFileName(self::DOC_FILE_NAME .date(\"-Y-m\", strtotime(\"-1 month\")));\n\t\t\t$this->setExcelFile(\"/export/\" . $this->getFileName());\n\t\t\tfor($i = 1; $i <= $lastDay; $i++) {\n\t\t\t\tif ($i == $lastDay) {\n\t\t\t\t\t$d = 1; $m = $previousMonth + 1;\n\t\t\t\t} else {\n\t\t\t\t\t$d = ($i + 1); $m = $previousMonth;\n\t\t\t\t}\n\t\t\t\t$reportData = array(date(\"Y-m-\" . strval($i) . \" 00:00:00\", strtotime(\"-1 month\")), date(\"Y-\" . strval($m) . \"-\" . strval($d) . \" 00:00:00\"));\n\t\t\t\t$reportUrl = $this->getApiUrl().\"report=\" . strval(self::REPORT_NUMBER) . \"&responseFormat=csv&Start_Date=\" . $reportData[0] . \"&Stop_Date=\" . $reportData[1] . \"&Business_Unit=1,4\";\n\t\t\t\t// Clean out whitespace characters and replace with %20\n\t\t\t\t$reportUrl = str_replace(\" \", \"%20\", $reportUrl);\n\t\t\t\t$fileParser = new FileParser($reportUrl);\n\t\t\t\t$fileParser->setCurlFile($this->getFileName() . \".csv\");\n\t\t\t\t$data = $fileParser->parseFile();\n\t\t\t\t$all[] = $data;\n\t\t\t\tprint(\".\");\n\t\t\t}\n\t\t\tprint(PHP_EOL);\n\t\t\t$this->writeExcelFile(dirname(__FILE__) . $this->getExcelFile() . \".xlsx\", $all, self::REPORT_NAME . date(\" Y-m\", strtotime(\"-1 month\")));\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\techo \"Caught exception: \", $e->getMessage(), \"\\n\";\n\t\t\texit;\n\t\t}\n\t}", "abstract public function scrape(): Result;", "function scrapePtpReport() {\n $labResource = \"http://mws.lab916.space/src/MarketplaceWebService/api/ptp-report.php\";\n $report1 = file_get_contents($labResource);\n $explode1 = explode('<h2>Report Contents</h2>', $report1);\n $cells = explode(\"\\t\", $explode1[1]);\n sleep(4); // give the report data a while to stream since report may be a very large str\n $amazonRowsFbaClean = [];\n $table = [];\n $row = 0;\n $curRow = [];\n $idx = 0;\n\n // convert $cells to rows, each row is delimited by \\r\\n, currently there are thousands of cells because\n // they were all delimited by \\t\n for ($i = 0; $i < count($cells); $i++) {\n $cel = $cells[$i];\n if (strpos($cel, \"\\r\\n\") !== false) {\n // there is a new line char in this cel\n $newRowAR = explode(\"\\r\\n\", $cel);\n array_push($curRow, $newRowAR[0]);\n $table[$row] = $curRow;\n $curRow = [];\n $row++;\n $table[$row] = $curRow;\n array_push($curRow, $newRowAR[1]);\n } else {\n array_push($curRow, $cel);\n }\n }\n\n // sanitize each field in each row, get rid of fields that have gunk.\n for ($i = 0; $i < count($table); $i++) {\n $tempA = array();\n // O (n^2) <-------------------------------------------xx\n foreach ($table[$i] as $record) {\n if ((str_word_count($record) > 0) or (1 === preg_match('~[0-9]~', $record))) {\n $tempA[$idx] = $record;\n }\n $idx++;\n }\n $amazonRowsFbaClean[$i] = $tempA;\n $idx = 0;\n }\n\n return $amazonRowsFbaClean;\n}", "function getProduct($u){\n global $baseurl, $o, $r, $i, $local;\n $path = \"\";\n $d = new simple_html_dom();\n $d->load(scraperwiki::scrape($u));\n if (is_null($d->find('div[id=medproimg]',0))) {\n return 0;\n }\n//echo \"Loaded URL: \" . $u . \"\\n\";\n $imgfileurl = $d->find('div[id=medproimg]',0)->first_child()->href;\n $imgfile = trim(strrchr($imgfileurl,\"/\"),\"/ \");\n $img = \"/\" . substr($imgfile,0,1) . \"/\" . substr($imgfile,1,1) . \"/\" . $imgfile;\n fputcsv($i,array($imgfileurl,$img));\n $catname = \"\";\n $cats = $d->find('div[id=breadcrumb] ul li a');\n foreach ($cats as $cat) {\n $catname .= trim($cat->innertext) . \"/\";\n }\n $catname .= trim($d->find('div[id=breadcrumb] ul a b',0)->innertext);\n if (!is_null($d->find('div[id=prospecsbox]',0))) {\n $description = $d->find('div[id=prospecsbox]',0)->outertext;\n } else {\n $description = \"\";\n }\n if (!is_null($d->find('div[id=ctl00_cphContent_divShippingBilling]',0))) {\n $description .= $d->find('div[id=ctl00_cphContent_divShippingBilling]',0)->outertext;\n }\n if (!is_null($d->find('span[id=ctl00_cphContent_hidebrandid]',0))) {\n $brand = trim($d->find('span[id=ctl00_cphContent_hidebrandid]',0)->first_child()->innertext);\n } else {\n $brand = \"\";\n }\n $data = array(\n trim($d->find('span[id=pskuonly]',0)->innertext),\n \"\",\n \"Default\",\n \"simple\",\n $catname,\n \"Home\",\n \"base\",\n \"12/12/15 22:48\",\n $description,\n \"No\",\n 0,\n $img,\n $brand,\n \"\",\n \"Use config\",\n \"Use config\",\n trim($d->find('div[id=productname]',0)->first_child()->innertext),\n \"Product Info Column\",\n \"1 column\",\n trim($d->find('div[id=proprice]',0)->first_child()->innertext,\"$ \"),\n 0,\n \"\",\n $img,\n 1,\n 2,\n $img,\n \"12/12/15 22:48\",\n \"\",\n \"\",\n 4,\n 1.0000,\n 0,\n 1,\n 1,\n 0,\n 0,\n 1,\n 1,\n 1,\n 0,\n 1,\n 1,\n 1,\n 0,\n 1,\n 0,\n 1,\n 0,\n 1,\n 0,\n 0,\n 88,\n $img,\n $d->find('div[id=medproimg]',0)->first_child()->title,\n 1,\n 0 \n );\n fputcsv($o,$data);\n $thumbs = $d->find('div[id=altvidthmbs] thmbs');\n if (count($thumbs) > 1) {\n for ($x = 0; $x <= (count($thumbs) - 2); $x++) {\n $imgfileurl = $thumbs[$x]->first_child()->href;\n $imgfile = trim(strrchr($imgfileurl,\"/\"),\"/ \");\n $img = \"/\" . substr($imgfile,0,1) . \"/\" . substr($imgfile,1,1) . \"/\" . $imgfile;\n fputcsv($i,array($imgfileurl,$img));\n $data = array(\n \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\n \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\n \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\n \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\n \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\n \"\",\"88\",\n $img,\n $thumbs[$x]->first_child()->title,\n ($x + 2),\n 0\n );\n fputcsv($o,$data);\n }\n }\n $reviews = $d->find('table[id=ctl00_cphContent_datalistReviews] div.pr-review-wrap');\n if (count($reviews) > 0) {\n foreach ($reviews as $rev) {\n $data = array(\n trim($d->find('span[id=pskuonly]',0)->innertext),\n trim($rev->find('p.pr-review-rating-headline span',0)->innertext),\n trim($rev->find('span.pr-rating',0)->innertext),\n trim($rev->find('span[id$=labelUser]',0)->innertext),\n trim($rev->find('span[id$=labelLocation]',0)->innertext),\n trim($rev->find('div.pr-review-author-date',0)->innertext),\n trim($rev->find('span[id$=labelComments]',0)->innertext)\n );\n fputcsv($r,$data);\n }\n }\n echo trim($d->find('div[id=productname]',0)->first_child()->innertext) . \"\\n\";\n return 1;\n}", "public function reportRe()\n{\n print_r($this->requestReport(\n \"campaigns\",\n array(\"reportDate\" => \"20190501\",\n \"campaignType\" => \"sponsoredProducts\",\n \"metrics\" => \"impressions,clicks,cost\")));\n\n // amzn1.clicksAPI.v1.m1.5CD444B4.e3c2f999-14b0-4385-bf71-41f8538f712a\n \n \n}", "public function testReportsSkillv1reportsbench()\n {\n\n }", "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit(Storage::get('url.txt'));\n // $browser->pause(5000);\n try{\n $browser->click('.close-layer');\n $browser->pause(5000);\n }\n catch(Exception $e){\n \n }\n \n try{\n $browser->click('#j-shipping-company');\n $browser->pause(5000);\n $elements = $browser->elements('#j-shipping-dialog');\n foreach ($elements as $element) {\n $data[] = $element->getAttribute('innerHTML');\n }\n Storage::put('data.txt',$data);\n \n }\n catch(Exception $e){\n //$this->data = $e;\n }\n });\n }", "public function testReportsSummaryGet()\n {\n }", "function getReport() ;", "public function importmagento() {\n error_reporting(E_ALL); ini_set('display_errors', 1);\n\n $base_url=\"http://myshoes.fastcomet.host/Magentos/\";\n //API user\n $api_user=\"apiuser\";\n //API key\n $api_key=\"81eRvINu9r\";\n\n\n $api_url=$base_url.'index.php/api/soap/?wsdl';\n $client = new SoapClient($api_url);\n $session = $client->login($api_user, $api_key);\n $result = $client->call($session, 'order.list');\n $j=0;\n\n\n foreach($result as $key => $value)\n {\n $result1 = $client->call($session, 'order.info', $result[$key]['increment_id']);\n $arr[$j]['Order']['external_orderid'] = $result[$key]['increment_id'];\n $arr[$j]['Order']['schannel_id']= 'Magento';\n $arr[$j]['Order']['shipping_costs']= number_format((float)$result[$key]['base_shipping_amount'], 2, '.', '');\n $arr[$j]['Order']['requested_delivery_date'] ='';\n $arr[$j]['Order']['currency'] =$result[$key]['order_currency_code'];\n $arr[$j]['Order']['remarks'] =$result[$key]['customer_note'];\n $arr[$j]['Order']['createdinsource'] =$result[$key]['created_at'];\n $arr[$j]['Order']['modifiedinsource'] =$result[$key]['updated_at'];\n $arr[$j]['Order']['ship_to_customerid'] = $result[$key]['customer_firstname'].\" \".$result[$key]['customer_lastname'];\n $arr[$j]['Order']['ship_to_city'] =$result[$key]['customer_email'];\n $arr[$j]['Order']['ship_to_street'] =$result1['shipping_address']['street'];\n $arr[$j]['Order']['ship_to_city'] =$result1['shipping_address']['city'];\n $arr[$j]['Order']['ship_to_zip'] =$result1['shipping_address']['postcode'];\n $arr[$j]['Order']['ship_to_stateprovince'] = '';\n $arr[$j]['Order']['state_id'] = '';\n $arr[$j]['Order']['country_id'] =$result1['shipping_address']['country_id'];\n\n $arr[$j]['OrdersLine']=[];\n $adr=$result1['items'];\n $i=0;\n foreach( $adr as $keys => $values){\n $sk =$adr[$keys]['sku'];\n $qo=$adr[$keys]['qty_ordered'];\n $up=$adr[$keys]['price'];\n $arr[$j]['OrdersLine'][$i]['line_number'] = ($i+1) * 10;\n $arr[$j]['OrdersLine'][$i]['sku'] =$sk;\n $arr[$j]['OrdersLine'][$i]['quantity'] = number_format((float)$qo, 2, '.', '');\n $arr[$j]['OrdersLine'][$i]['unit_price'] = number_format((float)$up, 2, '.', '');\n\n $i++;\n }\n $j++;\n }\n $this->importcsv(null,$arr);\n return $this->redirect(array('action' => 'index',1));\n\n }", "abstract public function extractReportDatas();", "function import_wpxrss() {\n $dry_run = false;\n\n $serendipity['noautodiscovery'] = 1;\n $uri = $this->data['url'];\n require_once S9Y_PEAR_PATH . 'HTTP/Request2.php';\n serendipity_request_start();\n $options = array('follow_redirects' => true, 'max_redirects' => 5);\n if (version_compare(PHP_VERSION, '5.6.0', '<')) {\n // On earlier PHP versions, the certificate validation fails. We deactivate it on them to restore the functionality we had with HTTP/Request1\n $options['ssl_verify_peer'] = false;\n }\n $req = new HTTP_Request2($uri, HTTP_Request2::METHOD_GET, $options);\n try {\n $res = $req->send();\n if ($res->getStatus() != '200') {\n throw new HTTP_Request2_Exception('could not fetch url: status != 200');\n }\n } catch (HTTP_Request2_Exception $e) {\n serendipity_request_end();\n echo '<span class=\"block_level\">' . IMPORT_FAILED . ': ' . serendipity_specialchars($this->data['url']) . '</span>';\n return false;\n }\n\n $fContent = $res->getBody();\n serendipity_request_end();\n echo '<span class=\"block_level\">' . strlen($fContent) . \" Bytes</span>\";\n\n if (version_compare(PHP_VERSION, '5.0') === -1) {\n echo '<span class=\"block_level\">';\n printf(UNMET_REQUIREMENTS, 'PHP >= 5.0');\n echo \"</span>\";\n return false;\n }\n\n $xml = simplexml_load_string($fContent);\n unset($fContent);\n\n\n /* ************* USERS **********************/\n $_s9y_users = serendipity_fetchUsers();\n $s9y_users = array();\n if (is_array($s9y_users)) {\n foreach ($_s9y_users as $v) {\n $s9y_users[$v['realname']] = $v;\n }\n }\n\n /* ************* CATEGORIES **********************/\n $_s9y_cat = serendipity_fetchCategories('all');\n $s9y_cat = array();\n if (is_array($s9y_cat)) {\n foreach ($_s9y_cat as $v) {\n $s9y_cat[$v['category_name']] = $v['categoryid'];\n }\n }\n\n $wp_ns = 'http://wordpress.org/export/1.0/';\n $dc_ns = 'http://purl.org/dc/elements/1.1/';\n $content_ns = 'http://purl.org/rss/1.0/modules/content/';\n\n $wp_core = $xml->channel->children($wp_ns);\n foreach($wp_core->category AS $idx => $cat) {\n //TODO: Parent generation unknown.\n $cat_name = (string)$cat->cat_name;\n if (!isset($s9y_cat[$cat_name])) {\n $cat = array('category_name' => $cat_name,\n 'category_description' => '',\n 'parentid' => 0,\n 'category_left' => 0,\n 'category_right' => 0);\n echo '<span class=\"block_level\">';\n printf(CREATE_CATEGORY, serendipity_specialchars($cat_name));\n echo \"</span>\";\n if ($dry_run) {\n $s9y_cat[$cat_name] = time();\n } else {\n serendipity_db_insert('category', $cat);\n $s9y_cat[$cat_name] = serendipity_db_insert_id('category', 'categoryid');\n }\n }\n }\n\n /* ************* ITEMS **********************/\n foreach($xml->channel->item AS $idx => $item) {\n $wp_items = $item->children($wp_ns);\n $dc_items = $item->children($dc_ns);\n $content_items = $item->children($content_ns);\n\n // TODO: Attachments not handled\n if ((string)$wp_items->post_type == 'attachment' OR (string)$wp_items->post_type == 'page') {\n continue;\n }\n\n $entry = array(\n 'title' => (string)$item->title,\n 'isdraft' => ((string)$wp_items->status == 'publish' ? 'false' : 'true'),\n 'allow_comments' => ((string)$wp_items->comment_status == 'open' ? true : false),\n 'categories' => array(),\n 'body' => (string)$content_items->encoded\n );\n\n if (preg_match('@^([0-9]{4})\\-([0-9]{2})\\-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})$@', (string)$wp_items->post_date, $timematch)) {\n $entry['timestamp'] = mktime($timematch[4], $timematch[5], $timematch[6], $timematch[2], $timematch[3], $timematch[1]);\n } else {\n $entry['timestamp'] = time();\n }\n\n if (isset($item->category[1])) {\n foreach($item->category AS $idx => $category) {\n $cstring=(string)$category;\n if (!isset($s9y_cat[$cstring])) {\n echo \"<span class='msg_error'>WARNING: $category unset!</span>\";\n } else {\n $entry['categories'][] = $s9y_cat[$cstring];\n }\n }\n } else {\n $cstring = (string)$item->category;\n $entry['categories'][] = $s9y_cat[$cstring];\n }\n\n $wp_user = (string)$dc_items->creator;\n if (!isset($s9y_users[$wp_user])) {\n if ($dry_run) {\n $s9y_users[$wp_user]['authorid'] = time();\n } else {\n $s9y_users[$wp_user]['authorid'] = serendipity_addAuthor($wp_user, md5(time()), $wp_user, '', USERLEVEL_EDITOR);\n }\n echo '<span class=\"block_level\">';\n printf(CREATE_AUTHOR, serendipity_specialchars($wp_user));\n echo \"</span>\";\n }\n\n $entry['authorid'] = $s9y_users[$wp_user]['authorid'];\n\n if ($dry_run) {\n $id = time();\n } else {\n $id = serendipity_updertEntry($entry);\n }\n\n $s9y_cid = array(); // Holds comment ids to s9y ids association.\n $c_i = 0;\n foreach($wp_items->comment AS $comment) {\n $c_i++;\n $c_id = (string)$comment->comment_id;\n $c_pid = (string)$comment->comment_parent;\n $c_type = (string)$comment->comment_type;\n if ($c_type == 'pingback') {\n $c_type2 = 'PINGBACK';\n } elseif ($c_type == 'trackback') {\n $c_type2 = 'TRACKBACK';\n } else {\n $c_type2 = 'NORMAL';\n }\n\n $s9y_comment = array('entry_id ' => $id,\n 'parent_id' => $s9y_cid[$c_pd],\n 'author' => (string)$comment->comment_author,\n 'email' => (string)$comment->comment_author_email,\n 'url' => (string)$comment->comment_author_url,\n 'ip' => (string)$comment->comment_author_IP,\n 'status' => (empty($comment->comment_approved) || $comment->comment_approved == '1') ? 'approved' : 'pending',\n 'subscribed'=> 'false',\n 'body' => (string)$comment->comment_content,\n 'type' => $c_type2);\n\n if (preg_match('@^([0-9]{4})\\-([0-9]{2})\\-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})$@', (string)$comment->comment_date, $timematch)) {\n $s9y_comment['timestamp'] = mktime($timematch[4], $timematch[5], $timematch[6], $timematch[2], $timematch[3], $timematch[1]);\n } else {\n $s9y_comment['timestamp'] = time();\n }\n\n if ($dry_run) {\n $cid = time();\n } else {\n serendipity_db_insert('comments', $s9y_comment);\n $cid = serendipity_db_insert_id('comments', 'id');\n if ($s9y_comment['status'] == 'approved') {\n serendipity_approveComment($cid, $id, true);\n }\n }\n $s9y_cid[$c_id] = $cid;\n }\n\n echo \"<span class='msg_notice'>Entry '\" . serendipity_specialchars($entry['title']) . \"' ($c_i comments) imported.</span>\";\n }\n return true;\n }", "public function index()\n {\n /*\n $helper = new Helper();\n \n $url = \"https://zotterdev.developer.at/?type=2289002\";\n $maxOrderNumber = OrderImportTracker::max('order_number');\n $start = 1;\n if((int)$maxOrderNumber > 0) {\n $start = $maxOrderNumber;\n $url = \"https://zotterdev.developer.at/?type=2289002&tx_devshopfeed_xmlfeed[ordernumber]=\".$start.\"&tx_devshopfeed_xmlfeed[limitorders]=10000\";\n } else {\n $url = \"https://zotterdev.developer.at/?type=2289002&tx_devshopfeed_xmlfeed[ordernumber]=\".$start.\"&tx_devshopfeed_xmlfeed[limitorders]=10000\";\n }\n $result = $helper->consumeAPIClient($url, true); // for XML REST\n if($result) {\n $result = $helper->importOrderTracker($result); // store ORDERS for import\n }\n\n\n OrderImportTracker::where('import_status', 0)->chunk(100, function($orders) {\n $h = new Helper();\n foreach ($orders as $order) {\n $url = \"https://zotterdev.developer.at/rest/shop_item/\".$order['uid'];\n $result = $h->consumeAPIClient($url, false); // for REST\n if($result) {\n sleep(1);\n $result = $h->importOrderByUID($result, $order['id']); // import ORDER\n }\n }\n });\n */\n\n }", "static public function get($session)\n{\n $receipt = ReceiptLib::biggerFont(\"Transaction Summary\").\"\\n\\n\";\n $receipt .= ReceiptLib::biggerFont(date('D M j Y - g:ia')).\"\\n\\n\";\n\t$report_params = array();\n\n\t$lane_db = Database::tDataConnect();\n if ($lane_db->isConnected('core_translog')) {\n\t $this_lane = $session->get('laneno');\n\t\t$transarchive = 'localtranstoday';\n\t\t$opdata_dbname = 'core_opdata';\n\t\t$report_params += array(\n\t\t\t\"Lane {$this_lane} tender\" => \"\n\t\t\t\t\tSELECT\n\t\t\t\t\t\t'Lane {$this_lane} tenders' Plural,\n\t\t\t\t\t\tDATE_FORMAT(d.datetime, '%Y-%m-%d') TransDate,\n\t\t\t\t\t\tt.TenderName GroupLabel,\n\t\t\t\t\t\tCOUNT(*) GroupQuantity,\n\t\t\t\t\t\t'transaction' GroupQuantityLabel,\n\t\t\t\t\t\t-SUM(d.total) GroupValue\n\t\t\t\t\tFROM {$transarchive} d\n\t\t\t\t\t\tLEFT JOIN {$opdata_dbname}.tenders t ON d.trans_subtype = t.TenderCode\n\t\t\t\t\tWHERE d.emp_no != 9999 AND d.register_no != 99\n\t\t\t\t\t\tAND d.trans_status != 'X'\n\t\t\t\t\t\tAND d.trans_type = 'T'\n\t\t\t\t\t\tAND DATE_FORMAT(d.datetime, '%Y-%m-%d') = (SELECT MAX(DATE_FORMAT(datetime, '%Y-%m-%d')) FROM {$transarchive})\n\t\t\t\t\tGROUP BY t.tenderName\n\t\t\t\t\tORDER BY\n\t\t\t\t\t\tFIELD(d.trans_subtype, 'CA', 'CK', 'CC', 'DC', 'EF', d.trans_subtype),\n\t\t\t\t\t\td.trans_subtype\n\t\t\t\t\",\n\t\t\t);\n\t}\n\n\tif ($this_lane > 1) {\n\t\t$receipt .= \"\\n\";\n\t\t$receipt .= ReceiptLib::boldFont();\n\t\t$receipt .= \"Printing lane data only.\";\n\t\t$receipt .= ReceiptLib::normalFont();\n\t\t$receipt .= \"\\n\";\n\n\t\t$office_db = Database::tDataConnect();\n\t\t$office_dbname = $session->get('tDatabase'); //'lane';\n\t\t$transarchive = 'localtrans';\n\t\t$opdata_dbname = 'core_opdata';\n\t}\n\telse {\n\t\t$office_host = $session->get('mServer');\n\t\t$office_ping = shell_exec(\"ping -q -t2 -c3 {$office_host}\");\n\t\t$office_live = (preg_match('~0 packets received~', $office_ping)? false : true);\n\n\t\tif ($office_live) {\n\t\t\t$office_db = Database::mDataConnect();\n\t\t\tif (!$office_db->isConnected($session->get('mDatabase'))) {\n\t\t\t\t$office_live = false;\n\t\t\t}\n\t\t}\n\n\t\tif ($office_live) {\n\t\t\t$office_dbname = $session->get('mDatabase'); //'office';\n\t\t\t$transarchive = 'dtransactions';\n\t\t\t$opdata_dbname = 'office_opdata';\n\t\t}\n\t\telse {\n\t\t\t$receipt .= \"\\n\";\n\t\t\t$receipt .= ReceiptLib::boldFont();\n\t\t\t$receipt .= \"Server is unavailable; printing lane data only.\";\n\t\t\t$receipt .= ReceiptLib::normalFont();\n\t\t\t$receipt .= \"\\n\";\n\n\t\t\t$office_db = Database::tDataConnect();\n\t\t\t$office_dbname = $session->get('tDatabase'); //'lane';\n\t\t\t$transarchive = 'localtrans';\n\t\t\t$opdata_dbname = 'core_opdata';\n\t\t}\n\n\t\t$report_params += array(\n\t\t\t'department' => \"\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\t\t'departments' Plural,\n\t\t\t\t\t\t\tDATE_FORMAT(d.datetime, '%Y-%m-%d') TransDate,\n\t\t\t\t\t\t\tCONCAT_WS(' ', t.dept_no, t.dept_name) GroupLabel,\n\t\t\t\t\t\t\tSUM(IF(d.department IN (102, 113) OR d.scale = 1, 1, d.quantity)) GroupQuantity,\n\t\t\t\t\t\t\t'item' GroupQuantityLabel,\n\t\t\t\t\t\t\tSUM(d.total) GroupValue\n\t\t\t\t\t\tFROM {$transarchive} d\n\t\t\t\t\t\t\tLEFT JOIN {$opdata_dbname}.departments t ON d.department=t.dept_no\n\t\t\t\t\t\tWHERE d.emp_no != 9999 AND d.register_no != 99\n\t\t\t\t\t\t\tAND d.trans_status != 'X'\n\t\t\t\t\t\t\tAND d.department != 0\n\t\t\t\t\t\t\tAND DATE_FORMAT(d.datetime, '%Y-%m-%d') = (SELECT MAX(DATE_FORMAT(datetime, '%Y-%m-%d')) FROM {$transarchive})\n\t\t\t\t\t\tGROUP BY t.dept_no\n\t\t\t\t\t\",\n\t\t\t'tax' => \"\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\t\t'taxes' Plural,\n\t\t\t\t\t\t\tDATE_FORMAT(d.datetime, '%Y-%m-%d') TransDate,\n\t\t\t\t\t\t\tIF(d.total = 0, 'Non-taxed', 'Taxed') GroupLabel,\n\t\t\t\t\t\t\tCOUNT(*) GroupQuantity,\n\t\t\t\t\t\t\t'transaction' GroupQuantityLabel,\n\t\t\t\t\t\t\tSUM(d.total) GroupValue\n\t\t\t\t\t\tFROM {$transarchive} d\n\t\t\t\t\t\tWHERE d.emp_no != 9999 AND d.register_no != 99\n\t\t\t\t\t\t\tAND d.trans_status != 'X'\n\t\t\t\t\t\t\tAND d.trans_type = 'A' AND d.upc = 'TAX'\n\t\t\t\t\t\t\tAND DATE_FORMAT(d.datetime, '%Y-%m-%d') = (SELECT MAX(DATE_FORMAT(datetime, '%Y-%m-%d')) FROM {$transarchive})\n\t\t\t\t\t\tGROUP BY (total = 0)\n\t\t\t\t\t\",\n\t\t\t'discount' => \"\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\t\t'discounts' Plural,\n\t\t\t\t\t\t\tDATE_FORMAT(d.datetime, '%Y-%m-%d') TransDate,\n\t\t\t\t\t\t\tCONCAT(d.percentDiscount, '%') GroupLabel,\n\t\t\t\t\t\t\tCOUNT(*) GroupQuantity,\n\t\t\t\t\t\t\t'transaction' GroupQuantityLabel,\n\t\t\t\t\t\t\t-SUM(d.total) GroupValue\n\t\t\t\t\t\tFROM {$transarchive} d\n\t\t\t\t\t\tWHERE d.emp_no != 9999 AND d.register_no != 99\n\t\t\t\t\t\t\tAND d.trans_status != 'X'\n\t\t\t\t\t\t\tAND d.trans_type = 'S' AND d.upc = 'DISCOUNT'\n\t\t\t\t\t\t\tAND DATE_FORMAT(d.datetime, '%Y-%m-%d') = (SELECT MAX(DATE_FORMAT(datetime, '%Y-%m-%d')) FROM {$transarchive})\n\t\t\t\t\t\tGROUP BY percentDiscount\n\t\t\t\t\t\",\n\t\t\t'tender' => \"\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\t\t'tenders' Plural,\n\t\t\t\t\t\t\tDATE_FORMAT(d.datetime, '%Y-%m-%d') TransDate,\n\t\t\t\t\t\t\tt.TenderName GroupLabel,\n\t\t\t\t\t\t\tCOUNT(*) GroupQuantity,\n\t\t\t\t\t\t\t'transaction' GroupQuantityLabel,\n\t\t\t\t\t\t\t-SUM(d.total) GroupValue\n\t\t\t\t\t\tFROM {$transarchive} d\n\t\t\t\t\t\t\tLEFT JOIN {$opdata_dbname}.tenders t ON d.trans_subtype = t.TenderCode\n\t\t\t\t\t\tWHERE d.emp_no != 9999 AND d.register_no != 99\n\t\t\t\t\t\t\tAND d.trans_status != 'X'\n\t\t\t\t\t\t\tAND d.trans_type = 'T'\n\t\t\t\t\t\t\tAND DATE_FORMAT(d.datetime, '%Y-%m-%d') = (SELECT MAX(DATE_FORMAT(datetime, '%Y-%m-%d')) FROM {$transarchive})\n\t\t\t\t\t\tGROUP BY t.tenderName\n\t\t\t\t\t\tORDER BY\n\t\t\t\t\t\t\tFIELD(d.trans_subtype, 'CA', 'CK', 'CC', 'DC', 'EF', d.trans_subtype),\n\t\t\t\t\t\t\td.trans_subtype\n\t\t\t\t\t\",\n\t\t\t);\n\t}\n\n\tforeach ($report_params as $report => $query) {\n\t\t$receipt .= \"\\n\";\n\n\t\t$receipt .= ReceiptLib::boldFont();\n\t\t$receipt .= ReceiptLib::centerString(ucwords($report).' Report').\"\\n\";\n\t\t$receipt .= ReceiptLib::normalFont();\n\n\t\t$result = $office_db->query($query);\n\t\tif (!$result) $result = $lane_db->query($query);\n\n\t\t$total_quantity = $total_value = 0;\n\t\t$plural = $group_label = $group_quantity = $group_quantity_label = $group_value = '';\n\n\t\twhile ($row = $office_db->fetchRow($result)) {\n\t\t\t$plural = $row['Plural'];\n\t\t\t$group_label = $row['GroupLabel'];\n\t\t\t$group_quantity = $row['GroupQuantity'];\n\t\t\t$group_quantity_label = $row['GroupQuantityLabel'];\n\t\t\t$group_value = $row['GroupValue'];\n\n\t\t\t$total_quantity += $group_quantity;\n\t\t\t$total_value += $group_value;\n\n\t\t\t$group_quantity = rtrim(number_format($group_quantity, 3), '.0');\n\t\t\t$group_value = number_format($group_value, 2);\n\n\t\t\t$receipt .= ReceiptLib::boldFont();\n\t\t\t$receipt .= \"{$group_label}: \";\n\t\t\t$receipt .= ReceiptLib::normalFont();\n\t\t\t$receipt .= \"\\${$group_value} from {$group_quantity} {$group_quantity_label}\".($group_quantity==1?'':'s').\"\\n\";\n\t\t}\n\t\tswitch ($report) {\n\t\t\tcase 'department':\n\t\t\tcase 'tax':\n\t\t\tcase 'discount':\n\t\t\tcase 'tender':\n\t\t\t\t$total_values[$report] = $total_value;\n\t\t\tdefault:\n\t\t}\n\n\t\t$total_quantity = rtrim(number_format($total_quantity, 3), '.0');\n\t\t$total_value = number_format($total_value, 2);\n\n\t\t$receipt .= ReceiptLib::boldFont();\n\t\tif ($plural) {\n\t\t\t$receipt .= \"All \".ucwords($plural).\": \\${$total_value} from {$total_quantity} {$group_quantity_label}\".($total_quantity==1?'':'s').\"\\n\";\n\t\t}\n\t\telse {\n\t\t\t$receipt .= \"No data match in {$office_dbname}.{$transarchive}\\n\";\n\t\t}\n\t\t$receipt .= ReceiptLib::normalFont();\n\t}\n\n\t$checksum = 0;\n\t$receipt .= \"\\n\";\n\tforeach ($total_values as $report => $total_value) {\n\t\tswitch ($report) {\n\t\t\tcase 'department':\n\t\t\tcase 'tax':\n\t\t\t\t$sign = +1;\n\t\t\t\tbreak;\n\t\t\tcase 'discount':\n\t\t\tcase 'tender':\n\t\t\t\t$sign = -1;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcontinue;\n\t\t}\n\t\t$checksum += ($sign * $total_value);\n\t\t$total_value = number_format($total_value, 2);\n\n\t\t$receipt .= \"\\n\";\n\t\t$receipt .= str_repeat(' ', 8);\n\t\t$receipt .= ReceiptLib::boldFont();\n\t\t$receipt .= ucwords($report).' Total:';\n\t\t$receipt .= ReceiptLib::normalFont();\n\t\t$receipt .= str_repeat(' ', 32 - strlen(\"{$report}{$total_value}\"));\n\t\t$receipt .= ($sign < 0? '-' : '+') . \" \\${$total_value}\";\n\t}\n\tif ($sign) {\n\t\t$checksum = number_format($checksum, 2);\n\t\tif ($checksum === '-0.00') $checksum = '0.00'; // remove possible floating point sign error\n\n\t\t$receipt .= \"\\n\";\n\t\t$receipt .= str_repeat(' ', 38);\n\t\t$receipt .= str_repeat('_', 14);\n\t\t$receipt .= \"\\n\";\n\t\t$receipt .= str_repeat(' ', 8);\n\t\t$receipt .= ReceiptLib::boldFont();\n\t\t$receipt .= 'Checksum (should be zero):';\n\t\t$receipt .= str_repeat(' ', 15 - strlen(\"{$checksum}\"));\n\t\t$receipt .= \"\\${$checksum}\";\n\t\t$receipt .= ReceiptLib::normalFont();\n\t}\n\n $receipt .= \"\\n\";\n $receipt .= \"\\n\";\n $receipt .= ReceiptLib::centerString(\"------------------------------------------------------\");\n $receipt .= \"\\n\";\n\n $receipt .= str_repeat(\"\\n\", 4);\n $receipt .= chr(27).chr(105); // cut\n return $receipt;\n}", "public function sandbox() {\n $reference = 'http://www.trade.bookclub.ua/books/product.html?id=46736';\n @$html = file_get_contents($reference);\n if (empty($html)) {\n dd('fail load reference page');\n }\n\n $dom = new \\DOMDocument();\n @$dom->loadHTML($html);\n $xpath = new \\DOMXpath($dom);\n\n $node = $xpath->query('//div[@class=\"goods-descrp\"]');\n if (count($node)) {\n $book['description'] = (nl2br(trim($node[0]->nodeValue)));\n }\n\n //params\n// $node = $xpath->query('//ul[@class=\"goods-short\"]');\n// $pars = nl2br($node[0]->nodeValue);\n// $book['details']['']\\App\\Import\\Ksd::extract($pars, 'Вес:', '<br');\n\n //image\n $node = $xpath->query('//div[@class=\"goods-image\"]');\n if (count($node)) {\n $img = $node[0]->getElementsByTagName('img');\n if (count($img)) {\n $src = str_replace('/b/', '/', $img[0]->getAttribute('src'));\n $src = str_replace('_b.', '.', $src);\n }\n }\n\n // Author\n $node = $xpath->query('//div[@class=\"autor-text-color\"]');\n if (count($node)) {\n $name = trim($node[0]->getElementsByTagName('h2')[0]->nodeValue);\n $descr = trim($node[0]->getElementsByTagName('p')[0]->nodeValue);\n }\n\n $node = $xpath->query('//div[@class=\"autor-image\"]');\n if (count($node)) {\n $img = $node[0]->getElementsByTagName('img');\n if (count($img)) {\n $src = $img[0]->getAttribute('src');\n dd($src);\n }\n }\n }", "public function run()\n {\n //\n\n //allocations\n //requestbooks\n\n \t$aysems = [];\n for($i=2010; $i <= 2016; $i++) { \n\n for ($j=1; $j < 3; $j++) { \n \t$aysem = $i*10 +$j;\n\n \t$this->allocate($aysem, rand(800000,1000000));\n \t$this->purchase($aysem,3);\n }\n }\n\n // $this->allocate(20101,100000);\n // $this->allocate(20102,200000);\n // $this->allocate(20103,45000);\n // $this->allocate(20111,90000);\n // $this->allocate(20112,180000);\n // $this->allocate(20113,35000);\n // $this->allocate(20121,110000);\n // $this->allocate(20122,210000);\n // $this->allocate(20123,55000);\n\n // $this->purchase(20101,3);\n // $this->purchase(20102,3);\n // $this->purchase(20103,3);\n // $this->purchase(20111,3);\n // $this->purchase(20112,3);\n }", "function printReport() {\n # You need both of these globals!!\n global $report, $page_index, $page, $start, $stop;\n\n # These are the default args. Useful for calling your page\n # again.\n $args = \"page=$page&page_index=$page_index&start=$start&stop=$stop\";\n\n # These add the sort arrows for each field.\n # The first argument is the field name\n # The second argument is the text to replace it with.\n $report->setHeaderReplacement( \"product_sku\",\n $report->strArrows('\"product_sku\"',$args).\n ' Product Sku' );\n $report->setHeaderReplacement( \"online\",\n $report->strArrows('\"online\"',$args).\n ' Online' );\n $report->setHeaderReplacement( \"offline\",\n $report->strArrows('\"offline\"',$args).\n ' Offline' );\n $report->setHeaderReplacement( \"product\",\n $report->strArrows('\"product\"',$args).\n ' Product' );\n $report->setHeaderReplacement( \"changed\",\n $report->strArrows('\"changed\"',$args).\n ' Changed' );\n ?>\n <h3>Part Sales:</h3>\n <i>(Use the Excel report to get more than the first 300 results)</i>\n <br>\n <form action=show.php>\n <table><tr>\n <?\n print(\"<tr><td align=center colspan=2>Limit to online dates between\");\n print(\"<tr><td>Start (mm-dd-yyyy):</td><td><input type=text name=start value=\\\"\"\n . @$start .\"\\\">\");\n print(\"<tr><td>Stop:</td><td><input type=text name=stop value=\\\"\"\n . @$stop . \"\\\">\");\n\n ?>\n </TD></TR>\n <TR><TD></TD><TD>\n <input type=submit value=Search>\n </td></tr>\n </table>\n <input type=hidden name=page value=\"part_sales_report.php\">\n </form>\n <?\n if (empty($start) and empty($stop)) {\n return;\n }\n\n # This does the actual printing of the HTML\n $report->printHTML( $page_index );\n}", "function getProducts($u,$cat){\n global $o;\n $d = new simple_html_dom();\n $d->load(scraperwiki::scrape($u));\n//echo \"Loaded URL: \" . $u . \"\\n\";\n $items = $d->find('li.grid-item');\n if (count($items) > 0) {\n \tforeach ($items as $p) {\n \t\t$prod = $p->find('p.product-name > a',0);\n \t\t$prodname = trim($prod->innertext);\n \t\t$prodURL = $prod->href;\n \t\tif (!is_null($p->find('p.minimal-price',0))) {\n \t\t $prodtype = 1;\n \t\t} else {\n \t\t $prodtype = 0;\n \t\t}\n \t\tfputcsv($o,array($prodname, $prodtype, $cat, $prodURL));\necho $prodname . \"\\n\";\n \t}\n \tif (!is_null($d->find('p.next',0))) {\n \t\tgetProducts($d->find('p.next',0)->href,$cat);\n \t}\n }\n}", "public function test(){\n \t// it could be a huge performance concern if crawl it.\n \t// so I just choose the \"I\" category of all programs insteaded.\n\n \t// $url_main = \"http://www.humber.ca/program\"; \n \tset_time_limit(1000);\n \t// $url_main = \"http://www.humber.ca/program/listings/b?school=All&credential=All&campus=All&field_program_name_value_1=\";\n\n \t$html_main = file_get_contents($url_main);\n\n\t\t$crawler = new Crawler($html_main);\n\n\t\t$links = array();\n\n\t\t// Simple XPath for this element, so I did not use CssSelector.\n\t\t$crawler->filterXPath('//tbody/tr/td/a')->each(function ($node, $i) use( &$links) {\n\t\t\t\n\t\t\t// the links in website are relative path, so I need to add a prefix to make it absolute.\n\t\t\t$prefix = \"http://humber.ca\";\n\n\t\t\t$existed_programs = Program::all();\n\t\t\t$existed_program_names = array();\n\t\t\tforeach ($existed_programs as $key => $value) {\n\t\t\t\t$existed_program_names[] = $value['program_name'];\n\t\t\t}\n\n\t\t\t// get rid of the duplicated links, no idea why Humber make the program list a mess\n\t\t\tif (strpos($node->text(),',') === false) {\n\t\t\t\t\n\t\t\t\t// get the full link\n\t\t\t\t$link = $prefix . $node->attr('href');\n\t\t\t $link = trim($link);\n\t\t\t // get the text which is the program name\n\t\t\t $text = trim($node->text());\t\t\n\t\t \t\n\t\t \t// put associate name & link to key/value pair array\n\t\t\t if(!in_array($text, $existed_program_names)){\n\t\t\t \t$links[\"$text\"] = $link;\n\t\t\t }\n\t\t \t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\t// an array to store all programs\n\t\t$programs = array();\n\n\t\t// use a loop to crawl individual program webpage by accessing its link in $links array\n\t\tforeach ($links as $key => $value) {\n\n\t\t\t$program_url = $value;\n\n\t\t\t// use curl to get the webpage content\n\t\t\t// it seems file_get_contents() has some issues for these webpage\n\t\t\t// or it's just I made some mistakes\n\t\t\t$curl_handle=curl_init();\n\t\t\tcurl_setopt($curl_handle, CURLOPT_URL,$program_url);\n\t\t\tcurl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);\n\t\t\tcurl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);\n\t\t\tcurl_setopt($curl_handle, CURLOPT_USERAGENT, 'Humber College');\n\n\t\t\t\n\n\t\t\t$program_html = curl_exec($curl_handle);\n\t\t\tcurl_close($curl_handle);\n\n\t\t\tif($program_html){\n\t\t\t\t$program_crawler = new Crawler($program_html);\n\t\t\t}\n\n\t\t\t// $program is an array to store the program's information with key/value pair\n\t\t\t$program = array();\n\n\t\t\t// here I used CssSelector to help me translate the XPath.\n\t\t\t// It made me address it without headache.\n\t\t\t$program['program_name'] = trim($key);\n\n\t\t\t$Code = $program_crawler->filterXPath(CssSelector::toXPath('div.container.clearfix>section>div.field-items>div.field-item.even'))->text();\n\t\t\t$program['program_code'] = trim($Code);\n\n\t\t\t$Credential = $program_crawler->filterXPath(CssSelector::toXPath('section.field-name-field-credential>div.field-item>a'))->text();\n\t\t\t$program['program_credential'] = trim($Credential);\n\n\t\t\t$School = $program_crawler->filterXPath(CssSelector::toXPath('section.field-name-field-school>div.field-item>a'))->text();\n\t\t\t$program['program_school'] = trim($School);\n\n\t\t\t// get all the schools from database\n\t\t\t$schools = School::all();\n\n\t\t\t// Because I used School table's id as the foreign key in Program table.\n\t\t\tforeach ($schools as $key1 => $value1) {\n\t \t\tif($program['program_school'] == $value1['school_name']){\n\t \t\t\t$program['program_school_id'] = $value1['id'];\n\t \t\t}\n\t \t}\t\n\n\t \t// getting each courses' name/code\n\t\t\t$courses = array();\n\t\t\t$courses = $program_crawler->filterXPath(CssSelector::toXPath('div.course'))->each(function ($node, $i) {\n\t\t\t\t$course = array();\n\t\t\t\t$course_code = $node->children()->first()->text();\n\t\t\t\t$course_name = $node->children()->last()->text();\n\t\t\t\t$course['course_code'] = $course_code;\n\t\t\t\t$course['course_name'] = $course_name;\n\t\t\t\treturn $course;\n\n\t\t\t});\n\n\t\t\t\n\t\t\t$program['program_courses'] = $courses;\n\t\t\t$programs[] = $program;\n\t\t}\n\n\t\t// store the information from array to database through loops\n\t\t// just in case of accidents, I commented the inserting database code below.\n\t\tforeach ($programs as $key => $value) {\n\t\t\t$one_program = new Program;\n\t\t\t$one_program->program_name = $value['program_name'];\n\t\t\t$one_program->program_code = $value['program_code'];\n\t\t\t$one_program->school_id = $value['program_school_id'];\n\t\t\t$one_program->credential = $value['program_credential'];\n\t\t\t$one_program->save();\n\t\t\techo \"a program is saved to db\" . \"<br>\";\n\t\t\tforeach ($value['program_courses'] as $key2 => $value2) {\n\n\t\t\t\t// Same reason as above, I used Program table's id as foreign key in Course table\n\t\t\t\t$stored_programs = Program::all();\n\t\t\t\t// $stored_programs = $programs;\n\t\t\t\t$course_belongs_id = 0;\n\t\t\t\tforeach ($stored_programs as $key3 => $value3) {\n\t\t \t\tif($value['program_name'] == $value3['program_name']){\n\t\t \t\t\t$course_belongs_id = $value3['id'];\n\t\t \t\t}\n\t\t \t}\n\n\t\t \t$existed_courses = Course::where('program_name', '=', $value['program_name']);\n\t\t\t\t$existed_course_name = array();\n\t\t\t\tforeach ($existed_courses as $key => $value) {\n\t\t\t\t\t$existed_course_name[] = $value['course_name'];\n\t\t\t\t}\t\n\t\t\t\tif(!in_array($value2['course_name'], $existed_course_name)){\n\t\t\t\t\t$one_course = new Course;\n\t\t\t\t\t$one_course->course_name = $value2['course_name'];\n\t\t\t\t\t$one_course->course_code = $value2['course_code'];\n\t\t\t\t\t$one_course->program_id = $course_belongs_id;\n\t\t\t\t\t$one_course->save();\n\t\t\t\t\techo \"a course is saved to db ---- \" . $one_course->program_id . \"<br>\";\n\t\t\t\t}\n\t\t \t\n\n\t\t\t}\n\t\t\techo \"<br>======<br>\";\n\t\t}\n\n\t}", "public static function run(){\n // Loads from an Alert\n \n $alert = AlertManager::load(67);\n $test = new Search();\n \n // the actual Query\n $query = $alert ->getQuery();\n \n dpm(SearchLabel::toLabel($query));\n $test -> addFromQuery($query);\n $num = $test ->getCount();\n \n dpm($num);\n $nodes = $test ->getNodes();\n dpm($nodes);\n }", "abstract protected function grabReportListFromFile( $quantity );", "public function run()\n {\n\n // Enter authentication before getting Intrinio data\n $username = 'b7aac9b614877ef4b070cf462756d8bb';\n $password = 'ebdf24e3287a1962c941ae9076a3127c';\n\n $context = stream_context_create(array(\n 'http' => array(\n 'header' => \"Authorization: Basic \" . base64_encode(\"$username:$password\")\n )\n ));\n\n //\n $json = file_get_contents(\"https://api.intrinio.com/companies\", false, $context);\n $array = json_decode($json, JSON_PRETTY_PRINT);\n $loops = $array['total_pages'];\n\n // Request Intrino data 100 records at a time\n for ($i = 1; $i <= $loops; $i++) {\n $json = file_get_contents(\"https://api.intrinio.com/companies?page_number=\" . \"$i\", false, $context);\n $array = json_decode($json, JSON_PRETTY_PRINT);\n $dataArray[] = $array['data'];\n }\n\n // Create Intrinio array with just tickers and names\n foreach ($dataArray as $value) {\n foreach ($value as $data) {\n $intrinioCompanies[] = ['ticker' => $data['ticker'], 'name' => $data['name']];\n }\n }\n\n // Get all Quandle tickers and codes\n $csv = array_map('str_getcsv', file(\"public/wiki_codes/wiki_codes.csv\"));\n $headers = $csv[0];\n unset($csv[0]);\n $quandlCompanies = [];\n foreach ($csv as $row) {\n $newRow = [];\n foreach ($headers as $k => $key) {\n $newRow[$key] = $row[$k];\n }\n $quandlCompanies[] = $newRow;\n }\n\n // Filter out Intrinio data that is not in Quandl data and add Quandl codes\n $masterList = [];\n foreach ($intrinioCompanies as $intrinio) {\n foreach ($quandlCompanies as $quandl) {\n if ($intrinio['ticker'] == $quandl['ticker']) {\n $masterList[] = [\n 'ticker' => $intrinio['ticker'],\n 'name' => $intrinio['name'],\n 'quandl_code' => $quandl['quandl_code'],\n ];\n break;\n }\n }\n }\n\n // Seed company table\n foreach ($masterList as $value) {\n Company::insert([\n 'ticker' => $value['ticker'],\n 'company_name' => $value['name'],\n 'quandl_code' => $value['quandl_code'],\n ]);\n }\n }", "function getInfomationOnThisPage($crawler,$db,$batchId) {\n\t\t$title=\"\";\n\t\t$link=\"\";\n\t\t$cid=\"\";\n\t\t$price=\"\";\n\t\t$odo=\"\";\n\n\t\t// Get title\n\t\t$info = $crawler->filter('.result-item')->each(function ($node) {\n\t\t\t$info=array();\n\n\t\t\t/* Title & Link */\n\t\t\t$tmp=$node->filter(\"h2 a\")->each(function($node_1){\n\t\t\t\t$tmp=array();\n\t\t\t $tmp['title'] = trim(preg_replace(\"/<span.*span>/s\",\"\",$node_1->html()));\n\t\t\t $tmp['link'] = \"http://www.carsales.com.au\".$node_1->attr(\"href\");\n\t\t\t $tmp['cid'] = $node_1->attr('recordid');\n\t\t\t return $tmp;\n\t\t\t});\n\t\t\tif (count($tmp)>0){\n\t\t\t\t$info = array_merge($info,$tmp[0]);\n\t\t\t}\n\t\t\t/* Price */\n\t\t\t$tmp=$node->filter(\".additional-information .price a\")->each(function($node_2){\n\t\t\t\t$tmp=array();\n\t\t\t $tmp['price'] = $node_2->attr('data-price');\n\t\t\t return $tmp;\n\t\t\t});\n\t\t\tif (count($tmp)>0){\n\t\t\t\t$info = array_merge($info,$tmp[0]);\n\t\t\t}\n\t\t\t/* Odometer */\n\t\t\t$tmp = $node->filter(\".vehicle-features .item-odometer\")->each(function($node_2){\n\t\t\t\t$tmp=array();\n\t\t\t $tmp['odo'] = preg_replace(array(\"/<i.*i>/\",\"/,/\",\"/ km$/\"),array(\"\",\"\",\"\"),$node_2->html());\n\t\t\t return $tmp;\n\t\t\t});\n\t\t\tif (count($tmp)>0){\n\t\t\t\t$info = array_merge($info,$tmp[0]);\n\t\t\t}\n\n\t\t\treturn $info;\n\n\t\t});\n\n\t\t$sqls=array();\n\t\tforeach ($info AS $i) {\n\t\t\t$title=isset($i['title'])?$db->real_escape_string($i['title']):\"\";\n\t\t\t$link=isset($i['link'])?$db->real_escape_string($i['link']):\"\";\n\t\t\t$cid=isset($i['cid'])?$db->real_escape_string($i['cid']):\"\";\n\t\t\t$price=isset($i['price'])?$db->real_escape_string($i['price']):\"\";\n\t\t\t$odo=isset($i['odo'])?$db->real_escape_string($i['odo']):\"\";\n\n\t\t\t$sqls[]=\"('$cid','$title','$price','$odo','$batchId','$link')\";\n\t\t}\n\t\t$db->query(\"INSERT INTO subaru_outback (record_id,title,price,odometer,batch_id,link) VALUES \".implode(\",\",$sqls));\n\n\t}", "public function importmagento()\n {\n $base_url=\"http://myshoes.fastcomet.host/Magentos/\";\n //API user\n $user=\"apiuser\";\n //API key\n $password=\"81eRvINu9r\";\n\n\n $api_url=$base_url.'index.php/api/soap/?wsdl';\n $client = new SoapClient($api_url);\n $session = $client->login($user,$password);\n\n $params = array(array(\n 'status'=>array('eq'=>'enabled')\n ));\n\n $result1 = $client->call($session, 'catalog_product.list');\n\n $i=0;\n foreach($result1 as $key => $value)\n {\n $result2 = $client->call($session, 'catalog_product.info',$result1[$key]['product_id']);\n $result3 = $client->call($session, 'cataloginventory_stock_item.list',$result1[$key]['product_id']);\n $arr[$i]['Product']['product_id']=$result1[$key]['product_id'];\n $arr[$i]['Product']['name']=$result1[$key]['name'];\n $arr[$i]['Product']['description']=$result2['description'];\n $arr[$i]['Product']['uom']='';\n $arr[$i]['Product']['category']= '';\n $arr[$i]['Product']['group']='';\n $arr[$i]['Product']['sku']=$result1[$key]['sku'];\n $arr[$i]['Product']['value']= number_format((float)$result2['price'], 2, '.', '');\n $arr[$i]['Product']['reorderpoint']='';\n $arr[$i]['Product']['safetystock']='';\n $arr[$i]['Product']['bin']='';\n $arr[$i]['Product']['imageurl']='';\n $arr[$i]['Product']['pageurl']=$base_url.$result2['url_path'];\n $arr[$i]['Product']['weight']= number_format((float)$result2['weight'], 2, '.', '');\n $arr[$i]['Product']['height']='';\n $arr[$i]['Product']['width']='';\n $arr[$i]['Product']['depth']='';\n $arr[$i]['Product']['barcodesystem']='';\n $arr[$i]['Product']['barcode_number']='';\n $arr[$i]['Product']['packaginginstructions']='';\n $arr[$i]['Product']['color']='';\n $arr[$i]['Product']['size']='';\n $arr[$i]['Inventory']['inventoryquantity']=$result3[0]['qty'];\n $arr[$i]['Product']['createdinsource']=$result2['created_at'];\n $arr[$i]['Product']['modifiedinsource']=$result2['updated_at'];\n $i++;\n }\n $this->importcsv(null, $arr);\n return $this->redirect(array('controller' => 'products', 'action' => 'index'));\n }", "function _getSummary($url, & $collection, $catagory){\r\n\r\n\r\n //fill in the doc type and url of the resource\r\n/* for($i = 0; $i < count($collection); $i++){\r\n $collection[$i]->url = $url;\r\n $collection[$i]->docType = $catagory;\r\n }*/\r\n\r\n $html = file_get_html($url);\r\n $res = null;\r\n foreach ($html->find('div.paragraph') as $el) {\r\n if(strpos($el, \"Actual activities will vary\") !== false){\r\n $res = $el;\r\n break;\r\n }\r\n }\r\n\r\n //Get the array of titles and summary\r\n $resArray = explode(\"<br /><br />\", $res);\r\n for($j = 0; $j < count($resArray); $j++){\r\n $resArray[$j] = strip_tags($resArray[$j]);\r\n $resArray[$j] = str_replace(array(\"&#8203;\"), '', $resArray[$j] ); //remove these unicode characters\r\n $resArray[$j] = str_replace(array(\"&nbsp;\"), ' ', $resArray[$j] ); //remove space unicode characters\r\n }\r\n\r\n //split line into title and summary (delemited by first instance of ':')\r\n //we will build a list of title, summary pairs.\r\n $titleSummaryPairs = array(); //array of TitleSummaryPair objects\r\n for($i = 1; $i < count($resArray); $i++){ //first element is just a header so we skip it.\r\n $split = explode(':', $resArray[$i], 2);\r\n $ts = new TitleSummaryPair();\r\n $ts->title = $split[0];\r\n $ts->summary = $split[1];\r\n array_push($titleSummaryPairs, $ts);\r\n }\r\n\r\n //find the matching title in the csv data array and add the summary. Do this for every title/summary pair.\r\n for($i = 0; $i < count($titleSummaryPairs); $i++){ //for each title summary pair that was scraped in this category\r\n $cur = $titleSummaryPairs[$i]; //the current title summary pair\r\n $foundMatch = false; //track weather or not we found a match. If we don't there is likely a typo in the title somewhere.\r\n $t1 = null;\r\n $t2 = null;\r\n for($j = 0; $j < count($collection)- 1; $j++){ //for each document row we harvested from the csv file\r\n $t1 = str_replace(\" \", \"\", $cur->title);\r\n $t2 = str_replace(\" \", \"\",$collection[$j]->title);\r\n $t1 = str_replace(\"s\", \"\", $t1);\r\n $t2 = str_replace(\"s\", \"\",$t2);\r\n if(($t1 == $t2 || strpos($t1, $t2) !== false || strpos($t2, $t1) != false) && $t1 != \"\" && $t2 != \"\" ){ //if we mached title summary pair to title in csv object\r\n $foundMatch = true;\r\n $collection[$j]->docType = $catagory;\r\n $collection[$j]->summary = $cur->summary; //add summary to the data set for the current document in the collection.\r\n $collection[$j]->url = $url;\r\n }\r\n }\r\n\r\n //Do these ones manually since an exact text match was not found.\r\n /* if($foundMatch == false){\r\n echo \"Do manually: \" . $t1 . \"\\n\";\r\n // InsertManually($t1);\r\n }*/\r\n }\r\n\r\n\r\n\r\n\r\n //print_r($resArray);\r\n/* $ret = $html->find('div[class=paragraph]');*/\r\n/* print_r($ret);*/\r\n /*$curl = curl_init($url);\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\r\n $page = curl_exec($curl);\r\n if(curl_errno($curl)) // check for execution errors\r\n {\r\n echo 'Scraper error: ' . curl_error($curl);\r\n exit;\r\n }\r\n curl_close($curl);\r\n\r\n $DOM = new DOMDocument;\r\n\r\n libxml_use_internal_errors(true);\r\n\r\n if (!$DOM->loadHTML($page)){\r\n $errors=\"\";\r\n foreach (libxml_get_errors() as $error) {\r\n $errors.=$error->message.\"<br/>\";\r\n }\r\n libxml_clear_errors();\r\n print \"libxml errors:<br>$errors\";\r\n return;\r\n }\r\n*/\r\n\r\n}", "public function report()\r\n {\r\n echo \"Question Bank Work is finish\";\r\n\r\n echo \"<br>\";\r\n\r\n echo \"Please Check Storage Folder\";\r\n\r\n echo \"<br>\";\r\n\r\n echo 'Count of Questions Get From Hsmai Server is: ' . count($this->questionInfo->items);\r\n\r\n echo \"questions\";\r\n }", "function get_industries()\r\n{\r\n\t$url = 'http://clinicaltrials.gov/ct2/search/browse?brwse=spns_cat_INDUSTRY&brwse-force=true';\r\n\t$doc = new DOMDocument();\r\n\tfor ($done = false, $tries = 0; $done == false && $tries < 5; $tries++) \r\n\t{\r\n\t\tif ($tries>0) echo('.');\r\n\t\t@$done = $doc->loadHTMLFile($url);\r\n\t}\r\n\t\r\n\t$divs = $doc->getElementsByTagName('div');\r\n\t$divdata = NULL;\r\n\t\r\n\tforeach ($divs as $div) \r\n\t{\r\n\t\t$ok = false;\r\n\t\tforeach ($div->attributes as $attr) \r\n\t\t{\r\n\t\t\tif ($attr->name == 'id' && $attr->value == 'body-copy-browse')\r\n\t\t\t{\r\n\t\t\t\t$data = $div;\r\n\t\t\t\t$ok = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($ok == true) \r\n\t\t{\r\n\t\t\t$divdata = $data;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\t\r\n\tif ($divdata == NULL) \r\n\t{\r\n\t\techo('Nothing to import'. \"\\n<br />\");\r\n\t\texit;\r\n\t}\r\n\r\n\t$data = $divdata->nodeValue;\r\n\r\n\t//replace story and stories from string and prepare an arry with industry names \r\n\t$industries_str = str_replace('See Sponsor/Collaborators by Category > Industry', '', $data);\r\n\t$industries_replaced = preg_replace('/[0-9]{1,4}?\\sstudy|[0-9]{1,4}?\\sstudies/', '{***}', $industries_str);\r\n\t$industries = explode('{***}', $industries_replaced);\r\n\t\r\n\tglobal $NCTcontent;\r\n\tforeach ($industries as $industry) \r\n\t{\r\n\t\t$industry = iconv('UTF-8', 'ISO-8859-1', $industry);\r\n\t\t$industry = trim($industry);\r\n\t\t$NCTcontent .= $industry.PHP_EOL;\r\n\t}\r\n\t\r\n}", "public function processReports();", "abstract public function grabReportList( $quantity );", "public function testWorkshop() {\n\t\t$pageTitle = 'Improving Test Performance Workshop';\n\t\t// $stylesheet = '';\n\n\t\tinclude_once SYSTEM_PATH.'/view/header.php';\n\t\tinclude_once SYSTEM_PATH.'/view/academic-help/owsub-test-perf.php';\n\t\tinclude_once SYSTEM_PATH.'/view/footer.php';\n\t}", "function lookUp() {\n $config = include('config.php');\n $oclcNum = \"\";\n $bookTitle = \"null\";\n $authorLast = \"\";\n $authorFirst = \"\";\n $isbn = \"\";\n $pubDate = \"\";\n \n //define openURL parameters from generic URL from WorldCat Local / Discovery\n if (isset($_GET['rfe_dat'])) {\n $oclcNum = $_GET['rfe_dat'];\n //remove any blank spaces to clean up any OCLC number errors\n $oclcNum = trim($oclcNum); \n }\n if (isset($_GET['rft_btitle'])) {\n $bookTitle = urlencode($_GET['rft_btitle']);\n }\n if (isset($_GET['rft_aulast'])) {\n $authorLast = urlencode($_GET['rft_aulast']);\n }\n if (isset($_GET['rft_aufirst'])) {\n $authorFirst = urlencode($_GET['rft_aufirst']);\n }\n if (isset($_GET['rft_aucorp'])) {\n $authorLast = urlencode($_GET['rft_aucorp']);\n }\n if (isset($_GET['rft_isbn'])) {\n $isbn = urlencode($_GET['rft_isbn']);\n }\n if (isset($_GET['rft_date'])) {\n $pubDate = urlencode($_GET['rft_date']);\n }\n $today = date(\"m-d-Y\");\n //pull all openURL parameters\n $page = $_SERVER['REQUEST_URI'];\n $query = parse_url($page, PHP_URL_QUERY);\n parse_str($query);\n parse_str($query, $arr);\n \n \n //Require dependencies for using OCLC APIs\n require_once('../vendor/autoload.php');\n //configuration file, API keys, etc.\n require('config.php');\n //include file of locations that don't lend for PALShare\n require('nonlending.php');\n \n //build Availability API request authorization\n $wskey = new WSKey($config['key'], $config['secret']);\n $url = 'https://worldcat.org/circ/availability/sru/service?x-registryId=' . $config['institutionId'] . '&x-return-group-availability=true' . '&query=no:ocm' . $oclcNum;\n $user = new User($config['institutionId'], $config['principleId'], $config['principleIdNs']);\n $options = array('user'=> $user);\n\n $authorizationHeader = $wskey->getHMACSignature('GET', $url, $options);\n \n $client = new GuzzleHttp\\Client();\n //$client->get('config/curl/' . CURLOPT_SSLVERSION, 3);\n $headers = array();\n $headers['Authorization'] = $authorizationHeader;\n $request = $client->request('GET', $url, ['headers' => $headers]);\n\n\n //send request, get back XML\n try {\n \t\t//$response = $request->send();\n $xml = $request->getBody();\n $xmlObj = simplexml_load_string($xml);\n //Get the title of the book for use on results display screen\n \t$titlea = \"\";\n \t$titleb = \"\";\n \t$titlec = \"\";\n \t$bookTitle = \"\";\n \t$titlea = $xmlObj->xpath('//datafield[@tag=\"245\"]/subfield[@code=\"a\"]');\n \t$titleb = $xmlObj->xpath('//datafield[@tag=\"245\"]/subfield[@code=\"b\"]');\n \t$titlec = $xmlObj->xpath('//datafield[@tag=\"245\"]/subfield[@code=\"c\"]');\n \t\tif (!empty($titlea)) {\n \t\t\t$bookTitle = $titlea[0];\n \t\t\t$titlea = $titlea[0];\n \t\t}\n \t\tif (!empty($titleb)) {\n \t\t\t$bookTitle = $bookTitle . $titleb[0];\n \t\t}\n \t\tif (!empty($titlec)) {\n \t\t\t$bookTitle = $bookTitle . $titlec[0];\n \t\t}\n \t$title = $bookTitle;\n \n //Get holdings and write to line array\n\t\tif(isset($xmlObj->records->record->recordData->opacRecord->holdings->holding)) {\n\t\t $institutions = array();\n\t\t $localloc = array();\n\t\t $availability = array();\n\t\t $callnums = array();\n\t\t $shelfs = array();\n\t\t $line = array();\n\t\t foreach ($xmlObj->records->record->recordData->opacRecord->holdings->holding as $holding) {\n\t\t $institution = (string) $holding->nucCode;\n\t\t $localloc = $holding->localLocation;\n\t\t $shelf = (string) $holding->shelvingLocation;\n\t\t $callnum = (string) $holding->callNumber;\n\t\t $instavailcount = array();\n\t\t $datapoints = array();\n\t\t foreach ($holding->circulations->circulation as $circulation) {\n\t\t $institutions[] = $institution;\n\t\t $localloc[] = $localloc;\n\t\t $shelfs[] = $shelf;\n\t\t $callnums[] = $callnum;\n\t\t \t $avail = (string) $circulation->availableNow->attributes();\n\t\t\t $availability[] = $avail;\n\t\t $barcode = $circulation->itemId;\n\t\t $line[] = array(\"inst\"=>$institution,\"loc\"=>$shelf,\"callnum\"=>$callnum, \"avail\"=>$avail, \"barcode\"=>$barcode, \"localloc\"=>$localloc);\n\t\t\t } \n }\n \n //if holdings are found, check each holding line array for availability\n if (is_array($line)) {\n $innerLine = array();\n foreach ($line as $innerLine) {\n \t\t// Check type\n \t\tif (is_array($innerLine)){\n \t\t \t// Scan through inner loop\n \t\tforeach ($innerLine as $value) {\n \t\t $instLine = $innerLine[\"inst\"];\n \t\t $locLine = $innerLine[\"loc\"];\n \t\t $callLine = $innerLine[\"callnum\"];\n \t\t $availLine = $innerLine[\"avail\"];\n \t\t $locallocLine = $innerLine[\"localloc\"];\n \t\t //Use MD5 hash because some branch codes have special characters, see nonlending.php\n \t\t $locallocLine = md5($locallocLine);\n \t\t}\n \t\t\t//check the branch code (locallocLine) and loc (locLine) against the nonlending locs in nonlending.php\n \t\t\t$found=false;\n \t\t\n \t\t\tforeach ($palninonlending as $ke=>$va) {\n \t\t \t\tif($ke == $locallocLine) {\n \t\t \t\tforeach($va as $k=>$v) {\n \t\t \t\t\t\tif($v == $locLine) {\n \t\t \t\t\t\t$found=true;\n \t\t \t\t\t\t}\n \t\t \t\t}\t\t\n \t\t }\n \t\t }\n \t\t//if the branch code/loc match values in nonlending.php, skip; otherwise, check availability\n \t\tif ($found == true) {\n \t\t continue;\n \t\t} else {\n \t\t //if there are items available, check to make sure items are actually available; if so, create array of available items\n \t\t \tif (($instLine == $config['institutionCode']) && ($availLine !== '0')) { \n \t\t \t\t$instItems[] = \"<p><strong>Call Number:</strong> \" . $callLine . \" <br /><strong>Shelving Location:</strong> \" . $locLine . '</p>';\n \t\t \t} elseif (($instLine !== $config['institutionCode']) && ($availLine !== '0')) {\n \t\t //create nested array with shelvingLocation and availability of Resource-Sharing held items to be passed to resShare function\n \t\t \t$resItems[] = array('callnumber'=>$callLine, 'shelvinglocation'=>$locLine, 'availability'=>$availLine, 'instl'=>$instLine);\n \t\t } \n \t\t} \t \n }\n }\n }\n }\n //end try\n }\n //catch errors (e.g., API is down) and forward request to ILL form\n catch (\\Exception $e) {\n //Write to log file\n\t\t $current = \"API Failure ILL: \" . $openILL .\"\\n\";\n \t\t$current .= file_get_contents($logfile);\n \t\tfile_put_contents($logfile, $current);\n\t Header( 'Location: '. $openILL ) ;\n }\nreturn array('instItems' => $instItems, 'institutions' => $resItems, 'oclcNum' => $oclcNum, 'query' => $query, 'bookTitle' => $bookTitle, 'titlea' => $titlea);\n}", "public function ctrDownloadReport() {\n\n if (isset($_GET['report'])) {\n\n $table = 'sales';\n\n if(isset($_GET['startDate']) && isset($_GET['endDate'])) {\n\n $sales = SalesModel::mdlDateRangeSales($table, $_GET['startDate'], $_GET['endDate']);\n\n } else {\n\n $item = null;\n $value = null;\n $sales = SalesModel::mdlShowSales($table, $item, $value);\n\n }\n\n /**\n * :: create the excel file\n */\n\n $name = $_GET['report'].'.xls';\n\n header('Expires: 0');\n header('Cache-control: private');\n header(\"Content-type: application/vnd.ms-excel\"); // Excel file\n header(\"Cache-Control: cache, must-revalidate\"); \n header('Content-Description: File Transfer');\n header('Last-Modified: '.date('D, d M Y H:i:s'));\n header(\"Pragma: public\"); \n header('Content-Disposition:; filename=\"'.$name.'\"');\n header(\"Content-Transfer-Encoding: binary\");\n\n echo utf8_decode(\"<table border='0'> \n \n <tr>\n <td style='font-weight:bold; border:1px solid #eee;'>Code</td> \n <td style='font-weight:bold; border:1px solid #eee;'>Client</td>\n <td style='font-weight:bold; border:1px solid #eee;'>Seller</td>\n <td style='font-weight:bold; border:1px solid #eee;'>Quantity</td>\n <td style='font-weight:bold; border:1px solid #eee;'>Products</td>\n <td style='font-weight:bold; border:1px solid #eee;'>Tax</td>\n <td style='font-weight:bold; border:1px solid #eee;'>Net Price</td>\t\t\n <td style='font-weight:bold; border:1px solid #eee;'>Total Price</td>\t\t\n <td style='font-weight:bold; border:1px solid #eee;'>Payment Method</td>\n <td style='font-weight:bold; border:1px solid #eee;'>Date</td>\t\n </tr>\");\n\n foreach ($sales as $row => $item) {\n $client = ClientController::ctrShowClients('id', $item['client_id']);\n $seller = UserController::ctrShowUsers('id', $item['seller_id']);\n\n echo utf8_decode(\"<tr>\n <td style='border: 1px solid #eee'>\".$item['code'].\"</td>\n <td style='border: 1px solid #eee'>\".$client['name'].\"</td>\n <td style='border: 1px solid #eee'>\".$seller['name'].\"</td>\n\n <td style='border: 1px solid #eee'>\");\n\n $products = json_decode($item['products'], true);\n foreach ($products as $key => $valueProducts) {\n echo utf8_decode($valueProducts['quantity'].\"<br>\");\n }\n\n echo utf8_decode(\"</td>\n\n <td style='border: 1px solid #eee'>\");\n\n $products = json_decode($item['products'], true);\n foreach ($products as $key => $valueProducts) {\n echo utf8_decode($valueProducts['description'].\"<br>\");\n }\n\n echo utf8_decode(\"</td>\n \n <td style='border: 1px solid #eee'>$ \".number_format($item['tax'], 2).\"</td>\n <td style='border: 1px solid #eee'>$ \".number_format($item['net_price'], 2).\"</td>\n <td style='border: 1px solid #eee'>$ \".number_format($item['total'], 2).\"</td>\n <td style='border: 1px solid #eee'>\".$item['payment_method'].\"</td>\n <td style='border: 1px solid #eee'>\".substr($item['date'], 0, 10).\"</td>\");\n\n \n echo \"</tr>\";\n \n }\n\n echo \"</table>\";\n\n }\n }", "public function testReportsSkillv1reportsbenchcount()\n {\n\n }", "private function getShopDetail($url, $category)\n {\n $html = new simple_html_dom();\n @$html->load_file($url);\n\n $contentDiv = $html->find('div[id=content]', 0);\n\n $shopProperties = array();\n $shopProperties['category'] = \"$category \";\n $shopProperties['name'] = $this->getInnerText($contentDiv->find('div[class=shop-detail] h1', 0));\n $shopProperties['score'] =\n str_replace('</strong>', '',\n str_replace('<strong>', '',\n str_replace('<span>', ' ',\n str_replace('</span>', '', $this->getInnerText($contentDiv->find('div[class=score]', 0)))\n )\n )\n );\n\n $badges = array();\n foreach ($contentDiv->find('h6') as $badge) {\n $badges[] = $this->getInnerText($badge);\n }\n $shopProperties['badges'] = $badges;\n $deliveryDetail = $contentDiv->find('ul[class=\"delivery-detail\"]', 0);\n if ($deliveryDetail != null) {\n $shopProperties['deliveryOk'] = $this->getInnerText($deliveryDetail->find('span', 0));\n $shopProperties['deliveryTenDays'] = $this->getInnerText($deliveryDetail->find('span', 1));\n $shopProperties['deliveryDeliveryTime'] =\n str_replace('<small>', ' ',\n str_replace('</small>', '', $this->getInnerText($deliveryDetail->find('span', 2)))\n );\n }\n\n $reviews = $this->getInnerText($contentDiv->find('ul[id=menu] li[class=active] a', 0));\n preg_match_all('/\\((.*)\\)/U', $reviews, $reviewsCount);\n\n if (!empty($reviewsCount[1])) {\n $shopProperties['reviews'] = $reviewsCount[1][0];\n }\n\n\n $html->clear();\n $html->load_file(substr($url, 0, -8) . 'informace/');\n\n $element = $html->find('div[class=shopInfo] td[class=full] p', 0);\n $shopProperties['description'] = $this->getInnerText($element);\n\n $tables = $html->find('div[class=shopInfo] table td p');\n for ($i = 0; $i < count($tables); $i++) {\n switch ($tables[$i]->innertext) {\n case 'Provozovatel obchodu:':\n case 'Prevádzkovateľ obchodu:':\n $shopProperties['owner'] = $this->getInnerText($tables[$i + 1]);\n break;\n case 'Telefon:':\n case 'Telefón:':\n $shopProperties['phone'] = $this->getInnerText($tables[$i + 1]);\n break;\n case 'Telefon pro objednávky:':\n case 'Telefón pre objednávky:':\n $shopProperties['phoneOrders'] = $this->getInnerText($tables[$i + 1]);\n break;\n case 'Email:':\n $shopProperties['email'] = $this->getInnerText($tables[$i + 1]->find('a', 0));\n break;\n case 'Email pro objednávky:':\n case 'Email na objednávky:':\n $shopProperties['emailOrders'] = $this->getInnerText($tables[$i + 1]->find('a', 0));\n break;\n case 'Státy, kam zasíláme:':\n case 'Štáty, kam zasielame:':\n $shopProperties['shippingTo'] = $this->getInnerText($tables[$i + 1]);\n break;\n }\n }\n\n return $shopProperties;\n }", "function warkslibsGetCurrentLoans() {\n\trequire_once('simple_html_dom.php');\n\t// get barcode and PIN - just guessing how this works here (from warkslibs.php) - need to find out how to do this properly!\n\t$warkslibs_options = get_option('warkslibs_settings_values');\n\t$warkslibs_user_barcode = $warkslibs_options['warkslibs_user_barcode'];\n\t$warkslibs_user_pin = $warkslibs_options['warkslibs_user_pin'];\n\t$warkslibs_url = \"http://library.warwickshire.gov.uk/vs/Pa.csp?OpacLanguage=eng&Profile=Default\";\n\t$login = getLogin($warkslibs_url,$warkslibs_user_barcode,$warkslibs_user_pin);\n\t$currentLoans = getCurrent($login);\n\t\n\t$html = str_get_html($currentLoans);\n\n\tforeach($html->find('td.listitemOdd',0)->parent()->parent()->find('tr') as $list) {\n\t\t$libItem['title'] = $list->find('td', 1)->plaintext;\n\t\t$libItem['barcode'] = $list->find('td', 2)->plaintext;\n\t\t$libItem['dateBorrowed'] = $list->find('td', 4)->plaintext;\n\t\t$libItem['dateDue']\t= $list->find('td', 5)->plaintext;\n\t\t$libItem['timesRenewed']\t= $list->find('td', 6)->plaintext;\n\t\t$libItem['charge']\t\t= $list->find('td', 7)->plaintext;\n\t\tif ($libItem['title'] === \"Title\") {\n\t\t\tcontinue;\n\t\t}\n\t\t$libItems[] = $libItem;\n\t}\n\n\tforeach($libItems as $libItem) {\n\t\t$title_search = urlencode($libItem['title']);\n\t\tif (strlen($title_search) > 255) {\n\t\t\t$title_search = substr($title_search,0,255); \n\t\t}\n\t\t$xml = searchAquaB($title_search);\n\t\t$doc = new DOMDocument();\n\t\t$doc->loadXML($xml);\n\t\t$xpath = new DOMXPath($doc);\n\t\t$records = $doc->getElementsByTagName(\"record\");\n\t\tforeach($records as $record) {\n\t\t\t$title = aquaBTitle($record,$xpath);\n\t\t\t$titlekey = trim(preg_replace(\"/[^a-zA-Z ]/\",\"\",$title));\n\t\t\t$searchtitlekey = trim(preg_replace(\"/[^a-zA-Z ]/\",\"\",$libItem['title']));\n\t\t\tif (strcmp($titlekey,$searchtitlekey) != 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t$libItem['title'] = $title;\n\t\t\t$libItem['isbn'] = aquaBISBN($record,$xpath);\n\t\t\t$libItem['auth'] = aquaBAuth($record,$xpath);\n\t\t\t$libItem['image'] = aquaBImage($record,$xpath);\n\t\t\t// ID retrieval not work at the moment\n\t\t\t// Why not?\n\t\t\t$libItem['id'] = aquaBID($record,$xpath);\n\t\t\t//Need to output dates etc. as well if want to preserve these?\n\t\t\t\n\t\t\t$libItems1[] = $libItem;\n\t\t}\n\t}\n\t// At this point we have an array of arrays listing all of the current loans\n\t// Non-unique titles have been expanded into multiple records\n\t// The user can (in theory) choose the ones they actually have (or just the ones they want to blog)\n\t// Then press 'blog these' (or similar) and create multiple blog posts (in draft)\n\t// So at this point want to output stuff to the screen with all information included in form\n\t// Then grab this all back when form submitted?\n\t// Alternative is to just submit the relevant URLs of the form\n\t// http://librarycatalogue.warwickshire.gov.uk/abwarwick/fullrecordinnerframe.ashx?hreciid=|library/vubissmart-marc|494187&output=xml\n\t// And do a further retrieve to get the information needed - but this increases network traffic for no gain?\n\t// See http://www.sitepoint.com/forums/php-34/$_post-ing-checkbox-values-corresponding-form-values-182722.html for how to do this\n\t\n\t// So - try outputting items\n\techo '<form method=\"post\" action=\"\"><input name=\"blogem\" value=\"yes\" id=\"blogem\" type=\"hidden\">';\n\techo '<ul>';\n\t$no_libItems = count($libItems1);\n\tfor($i=0; $i<$no_libItems; $i++){\n\t\techo '<li>';\n\t\techo '<h3>'.$libItems1[$i]['title'].'</h3>';\n\t\t// display cover image\n\t\techo \"<img src=\".$libItems1[$i]['image'].\" alt='Coverimage of \".$libItems1[$i]['title'].\"'>\\n\"; // need to check if it exists, otherwise?\n\t\t// print the item title\n\t\t// Do any of these need encoding? URL?\n\t\techo '<input name=\"libitem['.$i.'][choose]\" value=\"1\" id=\"choose\" type=\"checkbox\">'; // is 'id' required?\n\t\techo '<input name=\"libitem['.$i.'][title]\" value=\"'.$libItems1[$i]['title'].'\" id=\"title\" type=\"hidden\">'; // is 'id' required?\n\t\techo '<input name=\"libitem['.$i.'][isbn]\" value=\"'.$libItems1[$i]['isbn'].'\" id=\"isbn\" type=\"hidden\">'; // is 'id' required?\n\t\techo '<input name=\"libitem['.$i.'][auth]\" value=\"'.$libItems1[$i]['auth'].'\" id=\"auth\" type=\"hidden\">'; // is 'id' required?\n\t\techo '<input name=\"libitem['.$i.'][image]\" value=\"'.$libItems1[$i]['image'].'\" id=\"image\" type=\"hidden\">'; // is 'id' required?\n\t\techo '<input name=\"libitem['.$i.'][id]\" value=\"'.$libItems1[$i]['id'].'\" id=\"id\" type=\"hidden\">'; // is 'id' required?\n\t\techo '</li>';\n }\n\techo '<input type=\"submit\" name=\"itemstoblog\" value=\"Blog these...\" /></form><br />';\n echo '</ul>';\n\t\n/* This is where the Amazon Enhancement could go\n// Some idea of the code might be:\n$no_libItems = count($libItems1);\nfor($i=0; $i<$no_libItems; $i++){\n\t// Do Amazon lookup and enhance item (via function)\n}\n*/\n\n}", "function sales_report($mode, $startDate = 0, $endDate = 0, $sort = 0, $statusFilter = 0, $filter = 0, $details, $ordersIn, $salesConsultant) {\n // if set then both have to be valid startDate and endDate\n $this->mode = $mode;\n $this->tax_include = DISPLAY_PRICE_WITH_TAX;\n\t $this->details = $details;\n\t $this->ordersIn = $ordersIn;\n\t $this->salesConsultant = $salesConsultant;\n\n //$this->statusFilter = $statusFilter;\n\t $this->statusFilter = \"\";\n\t if(!empty($statusFilter) || $statusFilter!=0) {\n\t \t$this->statusFilter = explode(\"_\",$statusFilter);\n\t }\n \n // get date of first sale\n $firstQuery = tep_db_query(\"select UNIX_TIMESTAMP(min(date_purchased)) as first FROM \" . TABLE_ORDERS);\n $first = tep_db_fetch_array($firstQuery);\n $this->globalStartDate = mktime(0, 0, 0, date(\"m\", $first['first']), date(\"d\", $first['first']), date(\"Y\", $first['first']));\n \n $statusQuery = tep_db_query(\"select * from orders_status\");\n $i = 0;\n while ($outResp = tep_db_fetch_array($statusQuery)) {\n $status[$i] = $outResp;\n $i++;\n }\n\t $this->status = $status;\n \n if ($startDate == 0 or $startDate < $this->globalStartDate) {\n // set startDate to globalStartDate\n $this->startDate = $this->globalStartDate;\n } else {\n $this->startDate = $startDate;\n }\n if ($this->startDate > mktime(0, 0, 0, date(\"m\"), date(\"d\"), date(\"Y\"))) {\n $this->startDate = mktime(0, 0, 0, date(\"m\"), date(\"d\"), date(\"Y\"));\n }\n\n if ($endDate > mktime(0, 0, 0, date(\"m\"), date(\"d\") + 1, date(\"Y\"))) {\n // set endDate to tomorrow\n $this->endDate = mktime(0, 0, 0, date(\"m\"), date(\"d\") + 1, date(\"Y\"));\n } else {\n $this->endDate = $endDate;\n }\n if ($this->endDate < $this->startDate + 24 * 60 * 60) {\n $this->endDate = $this->startDate + 24 * 60 * 60;\n }\n\n $this->actDate = $this->startDate;\n\t \n\t \n\t // query for order count\n\t $this->queryOrderCnt = \"SELECT count(o.orders_id) as order_cnt FROM \" . TABLE_ORDERS . \" o\";\n\t \n\t //this is to check sales consultant based report\t\t \n\t if($this->ordersIn == 1) {\n\t \t\t\n\t\t\t$this->queryItemCnt_2 = \"SELECT p.products_model, op.products_quantity, (op.final_price*op.products_quantity) as psum, o.date_purchased FROM \" . TABLE_ORDERS . \" o JOIN \" . TABLE_ORDERS_PRODUCTS . \" op ON o.orders_id = op.orders_id JOIN \".TABLE_PRODUCTS .\"p ON op.products_id = p.products_id \";\n\t\t\t\n\t\t\t$this->queryShipping = \"SELECT ot.value as shipping, o.date_purchased FROM orders o LEFT JOIN orders_total ot ON (ot.orders_id = o.orders_id AND ot.class='ot_shipping') \";\n\t\t\t$this->queryGstTotal = \"SELECT ot.value as gst_total FROM orders o LEFT JOIN orders_total ot ON (ot.orders_id = o.orders_id AND ot.class='ot_gst_total') \";\n\t\t\t$this->queryDiscountTotal = \"SELECT ot.value as discount_total FROM orders o LEFT JOIN orders_total ot ON (ot.orders_id = o.orders_id AND (ot.class = 'ot_customer_discount' OR ot.class='ot_gv')) \";\t\t\t\n\t\t\t$this->querySubtotal = \"SELECT ot.value as subtotal, o.date_purchased, o.last_modified FROM orders o LEFT JOIN orders_total ot ON (ot.orders_id = o.orders_id AND (ot.class = 'ot_grand_subtotal' OR ot.class='ot_subtotal')) \";\n\t\t\t$this->queryOrderProCostCnt = \"SELECT SUM(opc.labour_cost*opc.products_quantity) as pcl_cost, SUM(opc.overhead_cost*opc.products_quantity) as pco_cost, SUM(opc.material_cost*opc.products_quantity) as pcm_cost, count(distinct(o.orders_id)) FROM orders_products_costs opc LEFT JOIN orders o ON opc.orders_id = o.orders_id \";\n\t\t\t\n\t\t\t\n\t\t\t$this->queryItemCnt = \"SELECT pd.products_tax_class_id, pd.products_model, o.orders_id,o.customers_id, o.customers_name, o.customers_company, o.purchase_number, o.last_modified, \to.date_purchased, o.orders_status, o.order_assigned_to, a.entry_company_tax_id as customer_number, op.products_id as pid, op.orders_products_id, op.products_quantity, op.final_price, op.products_name as pname, sum(op.products_quantity) as pquant, sum(op.final_price * op.products_quantity) as psum, op.products_tax as ptax, count(distinct(o.orders_id)) FROM orders o JOIN orders_products op ON op.orders_id = o.orders_id LEFT JOIN products pd ON pd.products_id = op.products_id LEFT JOIN address_book a ON a.customers_id = o.customers_id \";\t\t\t\t\t\t\n\t\t\t$this->queryAttr = \"SELECT count(op.products_id) as attr_cnt, o.orders_id, opa.orders_products_id, opa.products_options, opa.products_options_values, opa.options_values_price, opa.price_prefix from orders_products_attributes opa LEFT JOIN orders o ON opa.orders_id = o.orders_id LEFT JOIN orders_products op ON op.orders_products_id = opa.orders_products_id \";\n\t\t\t\t\t\t\n\t\t\t$this->queryProCost_2 = \"select opc.*, o.date_purchased from orders_products_costs opc LEFT JOIN orders o ON opc.orders_id = o.orders_id \";\n\t\t\t$this->queryProCost = \"select pc.categories_id, opc.* from products_to_categories pc, orders_products_costs opc where pc.products_id=opc.products_id and opc.orders_id IN \";\t\t\t\t\t \n\t\t\t\n\t } else {\n\t \t\t\t \t\t\t\t \n\t\t\t // query for shipping\n\t\t\t $this->queryShipping = \"SELECT ot.value as shipping, o.date_purchased, o.customers_id FROM \" . TABLE_ORDERS . \" o, \" . TABLE_ORDERS_TOTAL . \" ot WHERE ot.orders_id = o.orders_id AND ot.class = 'ot_shipping'\";\t\t\t \n\t\t\t // query for GST total\n\t\t\t $this->queryGstTotal = \"SELECT ot.value as gst_total FROM \" . TABLE_ORDERS . \" o, \" . TABLE_ORDERS_TOTAL . \" ot WHERE ot.orders_id = o.orders_id AND ot.class = 'ot_gst_total'\";\n\t\t\t //query for discount\n\t\t\t $this->queryDiscountTotal = \"SELECT ot.value as discount_total FROM \" . TABLE_ORDERS . \" o, \" . TABLE_ORDERS_TOTAL . \" ot WHERE ot.orders_id = o.orders_id AND (ot.class = 'ot_customer_discount' OR ot.class='ot_gv')\";\t\t\t \n\t\t\t //query for subtotal\n\t\t\t $this->querySubtotal = \"SELECT ot.value as subtotal, o.date_purchased, o.last_modified, o.customers_id, a.entry_zone_id FROM orders o, orders_total ot, address_book a WHERE ot.orders_id = o.orders_id AND (ot.class = 'ot_grand_subtotal' OR ot.class='ot_subtotal') AND o.customers_id = a.customers_id \";\n\t\t\t \n\t\t\t //products count query\t\t\t \n\t\t\t $this->queryOrderProCostCnt = \"SELECT (opc.labour_cost*opc.products_quantity) as pcl_cost, (opc.overhead_cost*opc.products_quantity) as pco_cost, (opc.material_cost*opc.products_quantity) as pcm_cost, o.date_purchased, o.customers_id FROM orders_products_costs opc, orders o WHERE opc.orders_id=o.orders_id \";\n\t\t\t \n\t\t\t \n\t\t\t $this->queryItemCnt_2 = \"SELECT p.products_model, op.products_quantity, (op.final_price*op.products_quantity) as psum, o.date_purchased FROM \" . TABLE_ORDERS . \" o, \" . TABLE_ORDERS_PRODUCTS . \" op, \" . TABLE_PRODUCTS . \" p WHERE o.orders_id = op.orders_id AND op.products_id = p.products_id \";\n\t\t\t \n\t\t\t //Orders products query \n\t\t\t $this->queryItemCnt = \"SELECT pd.products_tax_class_id, pd.products_model, o.orders_id,o.customers_id, o.customers_name, o.customers_company, \n\t\t\t\t\t\t\t\t\t\to.purchase_number, o.last_modified, o.date_purchased, \n\t\t\t\t\t\t\t\t\t\to.orders_status, o.order_assigned_to, a.entry_company_tax_id as customer_number, op.products_id as pid, \n\t\t\t\t\t\t\t\t\t\top.orders_products_id, op.products_quantity, op.final_price, op.products_name as pname, sum(op.products_quantity) as pquant, \n\t\t\t\t\t\t\t\t\t\tsum(op.final_price * op.products_quantity) as psum, op.products_tax as ptax FROM \" . TABLE_ORDERS . \" o, \n\t\t\t\t\t\t\t\t\t\t\" . TABLE_ORDERS_PRODUCTS . \" op, \" . TABLE_ADDRESS_BOOK . \" a, \" . TABLE_PRODUCTS . \" pd \n\t\t\t\t\t\t\t\t\t\tWHERE o.orders_id = op.orders_id and o.customers_id = a.customers_id and op.products_id = pd.products_id\";\n\t\t\t // query for attributes\n\t\t\t $this->queryAttr = \"SELECT count(op.products_id) as attr_cnt, o.orders_id, opa.orders_products_id, opa.products_options, opa.products_options_values, opa.options_values_price, opa.price_prefix from \" . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . \" opa, \" . TABLE_ORDERS . \" o, \" . TABLE_ORDERS_PRODUCTS . \" op WHERE o.orders_id = opa.orders_id AND op.orders_products_id = opa.orders_products_id\";\t\n\t\t\t \t\t\t\t\n\t\t\t //products cost\n\t\t\t $this->queryProCost = \"select pc.categories_id, opc.* from products_to_categories pc, orders_products_costs opc where pc.products_id=opc.products_id and opc.orders_id IN \";\t\t\t \n\t\t\t $this->queryProCost_2 = \"select opc.*, o.date_purchased from orders_products_costs opc, orders o where opc.orders_id=o.orders_id \";\t\t\t\t \n\t\n\t}\n\t\n\t\n switch ($sort) {\n case '0':\n //$this->sortString = \" \"; //modified Aug 18, 2010\n\t\t $this->sortString = \" order by o.orders_id desc \";\n break;\n case '1':\n //$this->sortString = \" order by pname asc \"; //modified Aug 18, 2010\n\t\t $this->sortString = \" order by o.orders_id desc, pname asc \";\n break;\n case '2':\n //$this->sortString = \" order by pname desc\"; //modified Aug 18, 2010\n\t\t $this->sortString = \" order by o.orders_id desc, pname desc\";\n break;\n case '3':\n //$this->sortString = \" order by pquant asc, pname asc\"; //modified Aug 18, 2010\n\t\t $this->sortString = \" order by o.orders_id desc, pquant asc, pname asc\";\n break;\n case '4':\n //$this->sortString = \" order by pquant desc, pname asc\";\n\t\t //$this->sortString = \" order by pid desc, pname asc\"; //modified Aug 18, 2010\n $this->sortString = \" order by o.orders_id desc, pid desc, pname asc\";\n break;\n case '5':\n\t\t //$this->sortString = \" order by psum asc, pname asc\"; //modified Aug 18, 2010\n $this->sortString = \" order by o.orders_id desc, psum asc, pname asc\";\n break;\n case '6':\n //$this->sortString = \" order by psum desc, pname asc\"; //modified Aug 18, 2010\n\t\t $this->sortString = \" order by o.orders_id desc, psum desc, pname asc\";\n break;\n }\n\n }", "private function collectAllData()\n {\n $this->getParsedHeader();\n $this->getServerConfig();\n $this->getPageTitle();\n $this->getLanguage();\n $this->getCharset();\n $this->getHeadingsCount();\n $this->getCanonicalLINKS();\n $this->getAllLinksData();\n }", "public function getSalesReport($month,$day,$year,$fromTime_hour,$fromTime_minutes,$fromTime_seconds,$toTime_hour,$toTime_minutes,$toTime_seconds,$username,$module) {\n\necho \"\n<style type='text/css'>\ntr:hover { background-color:yellow; color:black;}\na { text-decoration:none; color:black; }\n</style>\";\n\n$dateSelected = $month.\"_\".$day.\"_\".$year;\n$fromTimez = $fromTime_hour.\":\".$fromTime_minutes.\":\".$fromTime_seconds;\n$toTimez = $toTime_hour.\":\".$toTime_minutes.\":\".$toTime_seconds;\n\n\n$con = ($GLOBALS[\"___mysqli_ston\"] = mysqli_connect($this->myHost, $this->username, $this->password));\nif (!$con)\n {\n die('Could not connect: ' . ((is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_error($GLOBALS[\"___mysqli_ston\"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)));\n }\n\n((bool)mysqli_query( $con, \"USE \" . $this->database));\n\n$result = mysqli_query($GLOBALS[\"___mysqli_ston\"], \"SELECT upper(pr.completeName) as completeName,pc.description,pc.sellingPrice,pc.quantity,pc.discount,pc.total,pc.cashUnpaid,pc.cashPaid,pc.chargeBy FROM patientRecord pr,registrationDetails rd,patientCharges pc WHERE pr.patientNo = rd.patientNo and rd.registrationNo = pc.registrationNo and pc.dateCharge = '$dateSelected' and (pc.timeCharge between '$fromTimez' and '$toTimez') and title='$module' group by pc.itemNo order by completeName asc \");\n\necho \"<table border=1 cellpadding=0 cellspacing=0>\";\necho \"<tr>\";\necho \"<th>&nbsp;Name&nbsp;</th>\";\necho \"<th>&nbsp;Description&nbsp;</th>\";\necho \"<th>&nbsp;Price&nbsp;</th>\";\necho \"<th>&nbsp;QTY&nbsp;</th>\";\necho \"<th>&nbsp;Disc&nbsp;</th>\";\necho \"<th>&nbsp;Total&nbsp;</th>\";\necho \"<th>&nbsp;Unpaid&nbsp;</th>\";\necho \"<th>&nbsp;Paid&nbsp;</th>\";\necho \"<th>&nbsp;Charge By&nbsp;</th>\";\necho \"</tr>\";\n$this->sales_total=0;\n$this->sales_unpaid=0;\n$this->sales_paid=0;\nwhile($row = mysqli_fetch_array($result))\n {\necho \"<tr>\";\necho \"<td>&nbsp;\".$row['completeName'].\"&nbsp;</td>\";\necho \"<td>&nbsp;\".$row['description'].\"&nbsp;</td>\";\necho \"<td>&nbsp;\".number_format($row['sellingPrice'],2).\"&nbsp;</td>\";\necho \"<td>&nbsp;\".number_format($row['quantity'],2).\"&nbsp;</td>\";\necho \"<td>&nbsp;\".number_format($row['discount'],2).\"&nbsp;</td>\";\necho \"<td>&nbsp;\".number_format($row['total'],2).\"&nbsp;</td>\";\necho \"<td>&nbsp;\".number_format($row['cashUnpaid'],2).\"&nbsp;</td>\";\necho \"<td>&nbsp;\".number_format($row['cashPaid'],2).\"&nbsp;</td>\";\necho \"<td>&nbsp;\".$row['chargeBy'].\"&nbsp;</td>\";\n$this->sales_total+=$row['total'];\n$this->sales_paid+=$row['cashPaid'];\n$this->sales_unpaid+=$row['cashUnpaid'];\necho \"</tr>\";\n }\necho \"</table>\";\necho \"<br>Total Sales:&nbsp;\".$this->sales_total;\necho \"<br>Total Unpaid:&nbsp;\".$this->sales_unpaid;\necho \"<br>Total Paid&nbsp;\".$this->sales_paid;\n\n}", "public function scrape()\n {\n $this->scrapeTeams();\n }", "public function scrape() {\n $expected_ref = null;\n if(!is_null($this->expected_journo)) {\n $expected_ref = $this->expected_journo->ref;\n }\n\n list($ret,$txt) = scrape_ScrapeURL($this->url, $expected_ref);\n $art_id = null;\n if($ret == 0) {\n // scraped ran\n\n $arts = scrape_ParseOutput($txt);\n if(sizeof($arts)>0) {\n // scraped at least one article\n $this->set_article($arts[0]);\n }\n }\n\n $this->update_status();\n return $txt;\n }", "function analyzeBusiness()\n{\n $config = include('config.php');\n $dataService = DataService::Configure(array(\n 'auth_mode' => 'oauth2',\n 'ClientID' => $config['client_id'],\n 'ClientSecret' => $config['client_secret'],\n 'RedirectURI' => $config['oauth_redirect_uri'],\n 'scope' => $config['oauth_scope'],\n 'baseUrl' => \"development\"\n ));\n\n /*\n * Retrieve the accessToken value from session variable\n */\n $accessToken = $_SESSION['sessionAccessToken'];\n $dataService->throwExceptionOnError(true);\n\n /*\n * Update the OAuth2Token of the dataService object\n */\n $dataService->updateOAuth2Token($accessToken);\n\n /*\n * Initialize the Report service from the data service context\n */\n $serviceContext = $dataService->getServiceContext();\n $reportService = new ReportService($serviceContext);\n if (!$reportService) {\n exit(\"Problem while initializing ReportService.\\n\");\n }\n\n /*\n * Usecase 1\n * Choose the reports - Balance Sheet, ProfitAndLoss\n */\n $balancesheet = $reportService->executeReport(\"BalanceSheet\");\n $profitAndLossReport = $reportService->executeReport(\"ProfitAndLoss\");\n\n /*\n * Print the reports\n */\n echo(\"ProfitAndLoss Report Execution Start!\" . \"\\n\");\n if (!$profitAndLossReport) {\n exit(\"ProfitAndLossReport Is Null.\\n\");\n } else {\n $result = json_encode($profitAndLossReport, JSON_PRETTY_PRINT);\n print_r($result);\n echo(\"Profit And Loss Report Execution Successful!\" . \"\\n\");\n }\n echo(\"\\nBalanceSheet Execution Start!\" . \"\\n\");\n if (!$balancesheet) {\n exit(\"BalanceShee Is Null.\\n\");\n } else {\n $result = json_encode($balancesheet, JSON_PRETTY_PRINT);\n print_r($result);\n echo(\"BalanceSheet Execution Successful!\" . \"\\n\");\n }\n\n /*\n * Usecase 2\n * Configure report service to be summarized by Customer\n * Report service is default configured for the Current Year end, so no conf needed there\n */\n $reportService->setSummarizeColumnBy(\"Customers\");\n\n /*\n * Once the report service is configured, Choose the reports - Balance Sheet, ProfitAndLoss\n */\n $balancesheet = $reportService->executeReport(\"BalanceSheet\");\n $profitAndLossReport = $reportService->executeReport(\"ProfitAndLoss\");\n\n /*\n * Print the reports\n */\n echo(\"Year End Profit And Loss Report Summarized by Customers Start!\" . \"\\n\");\n if (!$profitAndLossReport) {\n exit(\"ProfitAndLossReport Is Null.\\n\");\n } else {\n $result = json_encode($profitAndLossReport, JSON_PRETTY_PRINT);\n print_r($result);\n echo(\"Year End Profit And Loss Report Summarized by Customers Execution Successful!\" . \"\\n\");\n }\n echo(\"Year End BalanceSheet Summarized by Customers Start!\" . \"\\n\");\n if (!$balancesheet) {\n exit(\"BalanceSheet Is Null.\\n\");\n } else {\n $result = json_encode($balancesheet, JSON_PRETTY_PRINT);\n print_r($result);\n echo(\"BalanceSheet Execution Successful!\" . \"\\n\");\n }\n\n return;\n}", "function scrape_detailed_page($pdo, $scrape_page, $job_portal, $counter)\n\t{\n\t\t$website_page_contents = getURLContents($scrape_page);\n\t\t\n\t\t// -------------------------------------\n\t\t// Job Industry\n\t\t$get_start = '<span class=\"job-type__value\">';\n\t\t$get_end = '</span>';\n\t\t\n\t\t$pos = strpos($website_page_contents, $get_start);\n\t\tif ($pos !== false) {\n\t\t\t$website_page_contents_modified = substr_replace($website_page_contents, \"\", $pos, strlen($get_start));\n\t\t}\n\n\t\tif(strpos($website_page_contents_modified, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents_modified, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents_modified, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\t\t\t\n\t\t\t$job_industry = trim(substr($website_page_contents_modified, $select_pos_start, $select_length));\n\t\t\t$job_industry = str_replace('<dd class=\"col-sm-6\">', \"\", $job_industry);\n\t\t\t$job_industry = trim($job_industry);\n\t\t\t\n\t\t\t//print_r($job_industry.\"\\r\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$job_industry = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Job Title\n\t\t$get_start = '<h1 class=\"details-header__title \">';\n\t\t$get_end = '</h1>';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\t\t\t\n\t\t\t$output_jobTitle = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_jobTitle = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Job Description\n\t\t$get_start = '<div class=\"details-body__content content-text\">';\n\t\t$get_end = '<h3 class=\"details-body__title\">';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_jobDescription = strip_tags(trim(substr($website_page_contents, $select_pos_start, $select_length)));\n\t\t\t$output_jobDescription = addslashes(trim(strip_tags($output_jobDescription)));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_jobDescription = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Email\n\t\t$extractedEmail = extract_email_address($output_jobDescription);\n\t\t$extractedPhone = extract_phone($output_jobDescription);\n\n\t\t$output_email = (!empty($extractedEmail)) ? json_encode($extractedEmail) : NULL;\n\t\t\n\t\t// Phone\n\t\t$output_phone = (!empty($extractedPhone)) ? json_encode($extractedPhone) : NULL;\n\t\t\n\t\t// -------------------------------------\n\t\t// Career Level\n\t\t$get_start = 'xxxxxxxxxxxxxxxxxxx';\n\t\t$get_end = 'xxxxxxxxxxxxxxxxxxx';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_careerLevel = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_careerLevel = str_replace('<br>', \"\", $output_careerLevel);\n\t\t\t$output_careerLevel = trim($output_careerLevel);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_careerLevel = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Employment Type\n\t\t$get_start = '<span class=\"job-type__value\">';\n\t\t$get_end = '</span>';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_employmentType = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_employmentType = str_replace('<br>', \"\", $output_employmentType);\n\t\t\t$output_employmentType = trim($output_employmentType);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_employmentType = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Minimum Work Experience\n\t\t$get_start = 'xxxxxxxxxxxxxxxxxxx';\n\t\t$get_end = 'xxxxxxxxxxxxxxxxxxx';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_MinWorkExperience = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_MinWorkExperience = str_replace('<br>', \"\", $output_MinWorkExperience);\n\t\t\t$output_MinWorkExperience = trim($output_MinWorkExperience);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_MinWorkExperience = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Minimum Education Level\n\t\t$get_start = 'xxxxxxxxxxxxxxxxxxx';\n\t\t$get_end = 'xxxxxxxxxxxxxxxxxxx';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_MinEducationLevel = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_MinEducationLevel = str_replace('<br>', \"\", $output_MinEducationLevel);\n\t\t\t$output_MinEducationLevel = trim($output_MinEducationLevel);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_MinEducationLevel = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Monthly Salary Range\n\t\t$get_start = 'xxxxxxxxxxxxxxxxxxx';\n\t\t$get_end = 'xxxxxxxxxxxxxxxxxxx';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_monthlySalaryRange = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_monthlySalaryRange = str_replace('<br>', \"\", $output_monthlySalaryRange);\n\t\t\t$output_monthlySalaryRange = trim($output_monthlySalaryRange);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_monthlySalaryRange = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Location\n\t\t$get_start = '<li class=\"listing-item__info--item listing-item__info--item-location\">';\n\t\t$get_end = '</li>';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_location = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_location = str_replace('<br>', \"\", $output_location);\n\t\t\t$output_location = trim($output_location);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_location = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Company Name\n\t\t$get_start = '<li class=\"listing-item__info--item listing-item__info--item-company\">';\n\t\t$get_end = '</li>';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_companyName = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_companyName = trim($output_companyName);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_companyName = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Company Overview\n\t\t$get_start = 'xxxxxxxxxxxxxxxxxxx';\n\t\t$get_end = 'xxxxxxxxxxxxxxxxxxx';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t\n\t\t\t$output_companyOverview = substr($website_page_contents, $select_pos_start, $select_length);\n\t\t\t$output_companyOverview = addslashes(trim(strip_tags($output_companyOverview)));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_companyOverview = '';\n\t\t}\n\t\t\n\t\t// -------------------------------------\n\t\t// Company Logo\n\t\t$get_start = '<img class=\"profile__img profile__img-company\" src=\"';\n\t\t$get_end = '\"';\n\n\t\tif(strpos($website_page_contents, $get_start) > strlen($get_start))\n\t\t{ \n\t\t\t$select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n\t\t\t$select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n\t\t\t$select_length = $select_pos_end - $select_pos_start;\n\n\t\t\t$output_companyLogo = trim(substr($website_page_contents, $select_pos_start, $select_length));\n\t\t\t$output_companyLogo = trim($output_companyLogo);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output_companyLogo = '';\n\t\t}\n\t\t\t\n\t\t// -------------------------------------\n // Job Date Posted\n $get_start = '<li class=\"listing-item__info--item listing-item__info--item-date\">';\n\t\t$get_end = '</li>';\n \n if(strpos($website_page_contents, $get_start) > strlen($get_start))\n { \n $select_pos_start = strpos($website_page_contents, $get_start) + strlen($get_start);\n $select_pos_end = strpos($website_page_contents, $get_end, $select_pos_start);\n $select_length = $select_pos_end - $select_pos_start;\n \n $output_jobDatePosted = trim(substr($website_page_contents, $select_pos_start, $select_length));\n $output_jobDatePosted_array = explode(\"/\", $output_jobDatePosted);\n\t\t\t\n\t\t\t$output_jobDatePosted = $output_jobDatePosted_array[2].'-'.$output_jobDatePosted_array[1].'-'.$output_jobDatePosted_array[0];\n\t\t\t\n\t\t\t//print_r($output_jobDatePosted.\"\\r\");\n }\n\t\telse\n\t\t{\n\t\t\t$output_jobDatePosted = '';\n\t\t}\n\t\t\n\t\t\n\t\t$output_industry = $job_industry;\n\t\t$output_role = \"\";\n\t\t$output_keyword_skill = \"\";\n\t\t\n\t\t// -------------------------------------\n\t\t\n\t\t\n\t\t//echo '</br>'.$scrape_page;\n\t\t\n\t\t\n\t\t//echo '</br>'.$output_industry.' - '.$output_jobTitle.' - '.$output_jobDescription.' - '.$output_careerLevel.' - '.$output_employmentType.' - '.$output_MinWorkExperience.' - '.$output_MinEducationLevel.' - '.$output_monthlySalaryRange.' || '.$output_location.' || '.$output_companyName. ' - '.$output_jobDatePosted;\n\t\t\n\t\t// --------------------------------------------\n\t\tinsertDBJobDetails(\n\t\t\t\t\t\t\t$pdo,\n\t\t\t\t\t\t\t$job_portal, \n\t\t\t\t\t\t\t$output_industry, \n\t\t\t\t\t\t\t$scrape_page, \n\t\t\t\t\t\t\t$output_jobTitle, \n\t\t\t\t\t\t\t$output_jobDescription, \n\t\t\t\t\t\t\t$output_careerLevel, \n\t\t\t\t\t\t\t$output_employmentType, \n\t\t\t\t\t\t\t$output_MinWorkExperience, \n\t\t\t\t\t\t\t$output_MinEducationLevel, \n\t\t\t\t\t\t\t$output_monthlySalaryRange, \n\t\t\t\t\t\t\t$output_location,\n\t\t\t\t\t\t\t$output_companyName,\n\t\t\t\t\t\t\t$output_companyOverview,\n\t\t\t\t\t\t\t$output_jobDatePosted,\n\t\t\t\t\t\t\t$output_email,\n\t\t\t\t\t\t\t$output_phone,\n\t\t\t\t\t\t\t$output_companyLogo,\n\t\t\t\t\t\t\t$output_role,\n\t\t\t\t\t\t\t$output_keyword_skill\n\t\t\t\t\t\t\t);\n\t\t// --------------------------------------------\n\t\t\n\t}", "public function getExcelFile($artistName, $eventName, $eventData, $artist_id, $event_id, $logger)\n {\n $masterFileHeader = array('','Price','Count In','Add','Total In','Comp','Count Out','Total Sold','Gross'); \n $taxFileHeader = $this->getTaxCategoryHeaders();\n $logger->info('');\n\n $this->_totalSoldProduct = 0;\n $this->_totalApparelTax = 0;\n $this->_totalMusicTax = 0;\n $this->_totalOtherTax = 0;\n $this->_totalOfTax = 0;\n $total_tax_category = [];\n $totalTaxDataHeaders = [];\n\n $blankArray = array(\" \");\n /* Directory and filepath */\n $directory = $this->_objectManager->get('\\Magento\\Framework\\Filesystem\\DirectoryList');\n $directoryPath = $directory->getPath('media');\n $filepath = $directoryPath.'/settlement/report/excelreport/'; \n /* Directory and filepath ends */\n\n /* Helpers and collections */\n $helper = $this->_objectManager->create('Cor\\MerchandiseHandling\\Helper\\Exceldata');\n $productCollection = $helper->getProductsData($artist_id, $event_id); \n /* Helpers and collections ends*/\n \n if (!empty($productCollection)) {\n $eventAddress = $eventData['event_street'].' '.$eventData['event_city'].' '.$eventData['event_state'].' '.$eventData['event_country'];\n $first_date = date_create($eventData['start_date']);\n $start_date = date_format($first_date,\"d-m-y\");\n $second_date = date_create($eventData['end_date']);\n $end_date = date_format($second_date,\"d-m-y\");\n $eventDate = $start_date.\" to \".$end_date;\n /* Report files name*/\n $fileName = $artistName.', '.$eventName.' - Settlement Report.csv';\n $second_report = $artistName.', '.$eventName.' - Tax Data Report.csv';\n $tax_data = fopen($filepath.$second_report,\"w\");\n $file = fopen($filepath.$fileName,\"w\"); \n /* Event details */ \n $header = array\n (\n \"\".$eventData['event_name'],\n \"\".$eventAddress,\n \"\".$eventDate,\n \"\".$artistName,\n \"\",\n );\n foreach ($header as $line)\n {\n fputcsv($file,explode(',',$line));\n fputcsv($tax_data,explode(',',$line));\n }\n\n /* write data for simple product */ \n if (isset($productCollection['simple'])) {\n fputcsv($file, $masterFileHeader);\n fputcsv($tax_data, $taxFileHeader);\n $simple = 'simple';\n $logger->info('Total Sale of simpe products');\n $total_sold_product = $this->setProductData($productCollection['simple'], $simple, $file, $tax_data,$helper, $logger);\n $this->getTotalsOfRecords($total_sold_product);\n }\n\n /* write data for configurable product */\n if (isset($productCollection['configurable'])) {\n $logger->info('Total Sale of configurable products');\n foreach ($productCollection['configurable'] as $key => $value) {\n $parent_product_name = array(\"\",\"\".$key);\n foreach ($parent_product_name as $parent) {\n fputcsv($file, explode(',', $parent));\n fputcsv($tax_data, explode(',', $parent));\n }\n $productType = 'configurable';\n $total_sold_product = $this->setProductData($value, $productType, $file, $tax_data,$helper, $logger);\n $this->getTotalsOfRecords($total_sold_product);\n }\n }\n \n /* write data for bundle product */\n if (isset($productCollection['bundle'])) {\n $logger->info('Total Sale of bundle products');\n foreach ($productCollection['bundle'] as $key => $value) {\n $parent_product_name = array(\"\",\"\".$key);\n foreach ($parent_product_name as $parent) {\n fputcsv($file, explode(',', $parent));\n fputcsv($tax_data, explode(',', $parent));\n }\n\n fputcsv($file,$masterFileHeader); \n fputcsv($tax_data,$taxFileHeader);\n $productType = 'bundle';\n $total_sold_product = $this->setProductData($value, $productType, $file, $tax_data,$helper, $logger); \n $this->getTotalsOfRecords($total_sold_product);\n }\n }\n\n /* write data for grouped product */\n if (isset($productCollection['grouped'])) {\n $logger->info('Total Sale of group products');\n foreach ($productCollection['grouped'] as $key => $value) {\n $parent_product_name = array(\"\",\"\".$key);\n foreach ($parent_product_name as $parent) {\n fputcsv($file, explode(',', $parent));\n fputcsv($tax_data, explode(',', $parent));\n } \n fputcsv($file, $masterFileHeader); \n fputcsv($tax_data,$taxFileHeader); \n $productType = 'grouped';\n $total_sold_product = $this->setProductData($value, $productType, $file, $tax_data,$helper, $logger); \n $this->getTotalsOfRecords($total_sold_product);\n }\n }\n\n /* write data for virtual product */\n if (isset($productCollection['virtual'])) {\n $logger->info('Total Sale of virtual products');\n fputcsv($file,$masterFileHeader);\n fputcsv($tax_data, $taxFileHeader);\n $productType = 'virtual';\n $total_sold_product = $this->setProductData($productCollection['virtual'], $productType, $file, $tax_data,$helper, $logger);\n $this->getTotalsOfRecords($total_sold_product);\n }\n $totalSoldProduct = array('','','','','','Total','', ''.$this->_totalSoldProduct); \n\n $categoryArrayData = $helper->getCategoriesIds();\n $total_tax_category[$categoryArrayData['apparel']] = $this->_totalApparelTax;\n $total_tax_category[$categoryArrayData['music']] = $this->_totalMusicTax;\n $total_tax_category[$categoryArrayData['other']] = $this->_totalOtherTax;\n $totalTaxData[] = 'TOTALS'; \n $totalTaxData[] = ''; \n $totalTaxData[] = ''.$this->_totalSoldProduct; \n $totalTaxData[] = ''; \n $totalTaxData[] = ''; \n $totalTaxData = $helper->getTotalOfCategories($totalTaxData, $total_tax_category);\n $logger->info(''); \n $logger->info('overall total sold product '.$this->_totalSoldProduct); \n $totalTaxData[] = $this->_totalOfTax;\n $totalTaxDataHeaders[] = '';\n $totalTaxDataHeaders[] = '';\n $totalTaxDataHeaders[] = 'Total Sold';\n $totalTaxDataHeaders[] = '';\n $totalTaxDataHeaders[] = '';\n $totalTaxDataHeaders = $this->getTotalsHeaders($totalTaxDataHeaders);\n $totalTaxDataHeaders[] = 'Total Tax';\n array('',''.$this->_totalSoldProduct,'','',);\n\n fputcsv($file, $totalSoldProduct);\n fputcsv($tax_data, $totalTaxDataHeaders);\n fputcsv($tax_data, $totalTaxData);\n fclose($file);\n fclose($tax_data);\n $logger->info('--End of the settlement report of '.$artistName.'.--'); \n return array('mastersheet'=> $fileName, 'taxsheet'=> $second_report); \n } else {\n return false;\n }\n }", "function export_pnh_sales_report()\r\n\t {\r\n\t \t\r\n\t \t$this->erpm->auth(PNH_EXECUTIVE_ROLE|FINANCE_ROLE);\r\n\t \t\r\n\t \t//ssql to generate franchise list \r\n\t \t$sql_f = \"select pnh_franchise_id,franchise_id,login_mobile1,login_mobile2,franchise_name,b.territory_name,c.town_name \r\n\t \t\t\t\t\t\tfrom pnh_m_franchise_info a \r\n\t \t\t\t\t\t\tjoin pnh_m_territory_info b on a.territory_id = b.id\r\n\t \t\t\t\t\t\tjoin pnh_towns c on c.id = a.town_id \r\n\t \t\t\t\t\t\torder by territory_name,town_name,franchise_name\";\r\n\t \t$res_f = $this->db->query($sql_f);\r\n\t \t\r\n\t \t$fr_sales_list = array();\r\n\t \t$fr_sales_list[] = '';\r\n\t \t$fr_sales_list[] = '\"Paynearhome Franchise Sales Summary Till - '.date('d/m/Y h:i a').'\"';\r\n\t \t$fr_sales_list[] = '';\r\n\t \t$fr_sales_list[] = '';\r\n\t \t$fr_sales_list[] = '\"Slno\",\"Territory\",\"Town\",\"Status\",\"FranciseID\",\"FranchiseName\",\"Contact no\",\"Ordered\",\"Shipped\",\"Invoiced Not Shipped\",\"Cancelled\",\"Paid Till Date\",\"UnCleared\",\"Corrections\",\"Credit Notes Raised\",\"Pending Payment\",\" Before 3 Days\",\"Before 5 Days\",\"Before 7 Day\",\"Before 10 Day\"';\r\n\t \t\r\n\t \t\r\n\t \tif($res_f->num_rows())\r\n\t \t{\r\n\t \t\t$i=0;\r\n\t \t\t// loop through all franchises \r\n\t \t\tforeach($res_f->result_array() as $row_f)\r\n\t \t\t{\r\n\t \t\t\t\r\n\t \t\t\t$fr_sales_det = array();\r\n\t \t\t\t$fr_sales_det[] = ++$i;\r\n\t\t\t\t$fr_sales_det[] = $row_f['territory_name'];\r\n\t\t\t\t$fr_sales_det[] = $row_f['town_name'];\r\n\t \t\t\t$fr_sales_det[] = $row_f['is_suspended']?'Suspended':'Active';\r\n\t\t\t\t$fr_sales_det[] = $row_f['pnh_franchise_id'];\r\n\t \t\t\t$fr_sales_det[] = ucwords($row_f['franchise_name']);\r\n\t \t\t\t\r\n\t\t\t\t$cnos = array($row_f['login_mobile1'],$row_f['login_mobile2']);\r\n\t \t\t\t$fr_sales_det[] = implode('/',array_filter($cnos));\r\n\t\t\t\t\r\n\t \t\t\t// get franchise total sales \r\n\t \t\t\t$ordered_tilldate = @$this->db->query(\"select round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\t\t\t\t\t\t\t\tfrom king_transactions a \r\n\t\t\t\t\t\t\t\t\tjoin king_orders b on a.transid = b.transid \r\n\t\t\t\t\t\t\t\t join pnh_m_franchise_info c on c.franchise_id = a.franchise_id \r\n\t\t\t\t\t\t\t\t\twhere a.franchise_id = ? \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t$cancelled_tilldate = @$this->db->query(\"select round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\t\t\t\t\t\t\t\tfrom king_transactions a \r\n\t\t\t\t\t\t\t\t\tjoin king_orders b on a.transid = b.transid \r\n\t\t\t\t\t\t\t\t join pnh_m_franchise_info c on c.franchise_id = a.franchise_id \r\n\t\t\t\t\t\t\t\t\twhere a.franchise_id = ? and b.status = 3 \",$row_f['franchise_id'])->row()->amt*1;\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t$shipped_tilldate = @$this->db->query(\"SELECT round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM king_transactions a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN king_orders b ON a.transid = b.transid\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN pnh_m_franchise_info c ON c.franchise_id = a.franchise_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN king_invoice d ON d.order_id = b.id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN shipment_batch_process_invoice_link e ON e.invoice_no = d.invoice_no\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND e.shipped =1 AND e.packed =1\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE a.franchise_id = ? AND d.invoice_status = 1 and b.status != 0 \r\n\t\t\t\t\t\t\t\t\t\t \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t$sql = \"select sum(debit_amt-credit_amt) as amt \r\n\t\t\t\t\t\t\tfrom pnh_franchise_account_summary where action_type = 1 and franchise_id = ? \";\r\n\t\t\t\t$active_invoiced = $this->db->query($sql,array($row_f['franchise_id']))->row()->amt*1;\t\t\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\t// invoiced not shipped \r\n\t\t\t\t$not_shipped_amount = $this->db->query(\" select sum(t) as amt from (\r\n\t\t\t\t\t\t\t\t\t\t\tselect a.invoice_no,debit_amt as t \r\n\t\t\t\t\t\t\t\t\t\t\t\tfrom pnh_franchise_account_summary a \r\n\t\t\t\t\t\t\t\t\t\t\t\tjoin king_invoice c on c.invoice_no = a.invoice_no and invoice_status = 1 \r\n\t\t\t\t\t\t\t\t\t\t\t\twhere action_type = 1 \r\n\t\t\t\t\t\t\t\t\t\t\t\tand franchise_id = ? \r\n\t\t\t\t\t\t\t\t\t\t\tgroup by a.invoice_no ) as a \r\n\t\t\t\t\t\t\t\t\t\t\tjoin shipment_batch_process_invoice_link b on a.invoice_no = b.invoice_no and shipped = 0 \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\r\n\t\t\t\t$shipped_tilldate = $active_invoiced-$not_shipped_amount;\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t//$cancelled_tilldate = $ordered_tilldate-$shipped_tilldate-$not_shipped_amount;\r\n\t\t\t\t\r\n\t\t\t\t$paid_tilldate = @$this->db->query(\"select sum(receipt_amount) as amt from pnh_t_receipt_info where receipt_type = 1 and status = 1 and franchise_id = ? \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\r\n\t\t\t\t$sql = \"select sum(credit_amt-debit_amt) as amt \r\n\t\t\t\t\t\t\tfrom pnh_franchise_account_summary where action_type = 5 and franchise_id = ? \";\r\n\t\t\t\t$acc_adjustments_val = $this->db->query($sql,array($row_f['franchise_id']))->row()->amt*1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t$sql = \"select sum(credit_amt-debit_amt) as amt \r\n\t\t\t\t\t\t\tfrom pnh_franchise_account_summary where action_type = 7 and franchise_id = ? \";\r\n\t\t\t\t$ttl_credit_note_val = $this->db->query($sql,array($row_f['franchise_id']))->row()->amt;\r\n\t\t\t\t\r\n\t\t\t\t$uncleared_payment = @$this->db->query(\"select sum(receipt_amount) as amt from pnh_t_receipt_info where status = 0 and franchise_id = ? and receipt_type = 1 \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\r\n\t\t\t\t$fr_sales_det[] = $ordered_tilldate;\r\n\t\t\t\t$fr_sales_det[] = $shipped_tilldate;\r\n\t\t\t\t$fr_sales_det[] = $not_shipped_amount;\r\n\t\t\t\t$fr_sales_det[] = $cancelled_tilldate;\r\n\t\t\t\t$fr_sales_det[] = $paid_tilldate;\r\n\t\t\t\t$fr_sales_det[] = $uncleared_payment;\r\n\t\t\t\t$fr_sales_det[] = $acc_adjustments_val;\r\n\t\t\t\t$fr_sales_det[] = $ttl_credit_note_val;\r\n\t\t\t\t$fr_sales_det[] = $shipped_tilldate-($paid_tilldate+$acc_adjustments_val+$ttl_credit_note_val);\r\n\t\t\t\t\r\n\t\t\t\t$past_sales_summ = array(3,5,7,10);\r\n\t\t\t\t\r\n\t\t\t\tforeach($past_sales_summ as $k)\r\n\t\t\t\t{\r\n\t\t\t\t\t$cond = ' and date(e.shipped_on) < date_add(curdate(),INTERVAL -'.$k.' day) ';\r\n\t\t\t\t\t$cond_pay = ' and date(from_unixtime(activated_on)) < date_add(curdate(),INTERVAL -'.$k.' day) ';\r\n\t\t\t\t\t\r\n\t\t\t\t\t$shipped_tilldate_byday = @$this->db->query(\"SELECT round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM king_transactions a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN king_orders b ON a.transid = b.transid\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN pnh_m_franchise_info c ON c.franchise_id = a.franchise_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN king_invoice d ON d.order_id = b.id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN shipment_batch_process_invoice_link e ON e.invoice_no = d.invoice_no\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND e.shipped =1 AND e.packed = 1 \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE a.franchise_id = ? AND d.invoice_status = 1 and b.status != 0 $cond \r\n\t\t\t\t\t\t\t\t\t\t\t \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t$paid_tilldate_byday = @$this->db->query(\"select sum(receipt_amount) as amt from pnh_t_receipt_info where receipt_type = 1 and status = 1 and franchise_id = ? \",$row_f['franchise_id'])->row()->amt*1;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$pen_pay_byday = ($shipped_tilldate_byday-($paid_tilldate_byday+$acc_adjustments_val+$ttl_credit_note_val));\r\n\r\n\t\t\t\t\t$fr_sales_det[] = ($pen_pay_byday>0)?$pen_pay_byday:0;\r\n\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\t$fr_sales_list[] = '\"'.implode('\",\"',$fr_sales_det).'\"';\r\n\t \t\t}\r\n\t \t} \r\n\t \t\r\n\t \theader('Content-Type: application/csv');\r\n\t\theader('Content-Disposition: attachment; filename=PNH_SALES_REPORT_'.date('d_m_Y_H_i').'.csv');\r\n\t\theader('Pragma: no-cache');\r\n\r\n\t \techo implode(\"\\r\\n\",$fr_sales_list);\r\n\t \t\r\n\t }", "abstract protected function get_reports( $args = array() );", "function __construct()\n {\n /* obsolete\n $this->export_basename = \"export-74550\"; //previously \"export-47427\"\n // $this->species_list_export = \"http://localhost/cp_new/IUCN/\" . $this->export_basename . \".csv.zip\";\n $this->species_list_export = \"https://github.com/eliagbayani/EOL-connector-data-files/raw/master/IUCN/\" . $this->export_basename . \".csv.zip\";\n */\n \n /* direct download from IUCN server does not work:\n $this->species_list_export = \"http://www.iucnredlist.org/search/download/59026.csv\"; -- this doesn't work\n */\n \n $this->download_options = array('timeout' => 3600, 'download_attempts' => 1, 'expire_seconds' => 60*60*24*30*3); //expires in 3 months - orig value. NO sched yet in harvest frequency\n // $this->download_options['expire_seconds'] = false; //debug only\n \n // /* new May 25, 2021\n $token = \"9bb4facb6d23f48efbf424bb05c0c1ef1cf6f468393bc745d42179ac4aca5fee\";\n $this->api['taxon_details'] = \"https://apiv3.iucnredlist.org/api/v3/species/id/SPECIES_ID?token=$token\";\n // https://apiv3.iucnredlist.org/api/v3/species/id/55948714?token=9bb4facb6d23f48efbf424bb05c0c1ef1cf6f468393bc745d42179ac4aca5fee\n $this->api['comnames'] = \"https://apiv3.iucnredlist.org/api/v3/species/common_names/SPECIES_NAME?token=$token\";\n $this->api['citations'] = \"https://apiv3.iucnredlist.org/api/v3/species/citation/id/SPECIES_ID?token=$token\";\n $this->api['narrative'] = \"https://apiv3.iucnredlist.org/api/v3/species/narrative/id/SPECIES_ID?token=$token\";\n $this->code_value[\"DD\"] = \"Data Deficient\";\n $this->code_value[\"LC\"] = \"Least Concern\";\n $this->code_value[\"NT\"] = \"Near Threatened\";\n $this->code_value[\"VU\"] = \"Vulnerable\";\n $this->code_value[\"EN\"] = \"Endangered\";\n $this->code_value[\"CR\"] = \"Critically Endangered\";\n $this->code_value[\"EW\"] = \"Extinct in the Wild\";\n $this->code_value[\"EX\"] = \"Extinct\";\n $this->code_value[\"LR/lc\"] = \"Lower Risk/least concern\";\n $this->code_value[\"LR/nt\"] = \"Lower Risk/near threatened\";\n $this->code_value[\"LR/cd\"] = \"Lower Risk/conservation dependent\";\n // */\n }", "public function test110DownloadVoucher()\n {\n $this->markTestSkipped('Mark skip test to find solution');\n }", "function APP_RSS_GET_FEED($URL,$terminal)\n\t{\n\trequire_once 'rss_php.php';\n\t$rss = new rss_php;\n\t$rss->load($URL);\n\t$items = $rss->getItems(); #returns all RSS items\n\t#print_r($items);\n\treturn $items;\n\t}", "public function testReportsLinktrackingsExportGet()\n {\n }", "function getSupposedInnovations($url, $connection){\n\t\t\t\n\t\t\t\tinclude_once('simple_html_dom.php');\n\t\t\t\tset_time_limit(0);\t\t\t\n\t\t\t\n\t\t\t\t//komplettes html file\n\t\t\t\t$text = @file_get_html($url)->plaintext;\n\t\t\t\n\t\t\t\t//Umlaute zurück erstellen\n\t\t\t\t$text = preg_replace('/&auml;/','ä',$text);\n\t\t\t\t$text = preg_replace('/&ouml;/','ö',$text);\n\t\t\t\t$text = preg_replace('/&uuml;/','ü',$text);\n\t\t\t\t$text = preg_replace('/&Auml;/','Ä',$text);\n\t\t\t\t$text = preg_replace('/&Ouml;/','Ö',$text);\n\t\t\t\t$text = preg_replace('/&Uuml;/','Ü',$text);\n\t\t\t\t$text = preg_replace('/&szlig;/','ß',$text);\n\t\t\t\n\t\t\t\t//Mehrfachleerzeichen entfernen\n\t\t\t\t$text = mb_ereg_replace('\\s+', ' ', $text);\n\t\t\t\n\t\t\t\t//alles Sonderzeichen entfernen außer \"-\"\n\t\t\t\t$text = preg_replace('/[^\\p{Latin}\\s-]/u', ' ', $text);\n\t\t\t\n\t\t\t\t//Bindestriche vor oder nach Leerzeichen weglöschen\n\t\t\t\t$text = preg_replace('/- /', ' ', $text);\n\t\t\t\t$text = preg_replace('/ -/', ' ', $text);\n\t\t\t\n\t\t\t\t//String in Array umwandeln anhand von Leerzeichen (trim um unnötige Leerzeichen zu entfernen)\n\t\t\t\t$wordsOfWebsite = array_map('trim', explode(' ', $text));\n\t\t\t \n\t\t\t\t//count every word\n\t\t\t\tglobal $counterForAllWords;\n\t\t\t\t$counterForAllWords += count($wordsOfWebsite);\n\t\t\t\n\t\t\t\t//Duplikate im Array entfernen\n\t\t\t\t$wordsOfWebsite = array_unique($wordsOfWebsite); \n\t\t\t\t//leere array elemente entfernen\n\t\t\t\t$wordsOfWebsite = array_filter($wordsOfWebsite);\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t$stopListGerman = array(\"ab\", \"aber\", \"als\", \"am\", \"an\", \"auch\", \"auf\", \"aus\", \"bei\", \"bin\", \"bis\", \"bist\", \"da\",\"ca\", \"dadurch\", \"daher\", \"darum\", \"das\", \"dass\", \"daß\", \"dein\", \"deine\", \"dem\", \"den\", \"de\", \"der\", \"dessen\", \"deshalb\", \"die\", \"dies\", \"dieser\", \"dieses\",\"doch\", \"dort\", \"du\", \"durch\", \"ein\", \"eine\", \"einem\", \"einen\",\"einer\", \"eines\", \"er\", \"es\", \"euer\", \"für\", \"hatte\", \"hatten\", \"hattest\",\"hattet\", \"hier\", \"hinter\", \"ich\", \"ihr\", \"ihre\", \"im\", \"in\", \"ist\", \"ja\", \"je\" , \"jede\",\"jedem\", \"jeden\", \"jeder\", \"jedes\", \"jener\", \"jenes\", \"jetzt\", \"kann\", \"kannst\", \"können\",\"könnt\", \"machen\", \"mein\", \"meine\", \"mit\", \"muß\", \"mußt\", \"musst\", \"müssen\", \"müßt\",\"nach\", \"nachdem\", \"nein\", \"nicht\", \"nochmal\", \"nun\", \"oder\", \"ob\", \"seid\", \"sein\", \"seine\", \"sich\", \"sie\",\"sind\", \"so\", \"soll\", \"sollen\", \"sollst\", \"sollt\", \"sonst\", \"soweit\", \"sowie\", \"und\", \"unser\", \"unsere\",\"unter\", \"vom\", \"von\", \"vor\", \"wann\", \"warum\", \"was\", \"weiter\", \"weitere\", \"wenn\", \"wer\", \"werde\", \"werden\",\"werdet\", \"weshalb\", \"wie\", \"wieder\", \"wieso\", \"wir\", \"wird\", \"wirst\", \"wo\", \"woher\", \"wohin\", \"www\",\"um\", \"zu\", \"zum\", \"zur\", \"über\");\n\t\t\t\t$stopListEnglish = array(\"a\" , \"about\" , \"above\" , \"after\" , \"again\" , \"against\" , \"all\" , \"am\" , \"an\" , \"and\" , \"any\" , \"are\" , \"aren't\" , \"as\" , \"at\" , \"be\" , \"because\" , \"been\" , \"before\" , \"being\" , \"below\" , \"between\" , \"both\" , \"but\" , \"by\" , \"can't\" , \"cannot\" , \"could\" , \"couldn't\" , \"did\" , \"didn't\" , \"do\" , \"does\" , \"doesn't\" , \"doing\" , \"don't\" , \"down\" , \"during\" , \"each\" , \"few\" , \"for\" , \"from\" , \"further\" ,\"go\", \"had\" , \"hadn't\" , \"has\" , \"hasn't\" , \"have\" , \"haven't\" , \"having\" , \"he\" , \"he'd\" , \"he'll\" , \"he's\" , \"her\" , \"here\" , \"here's\" , \"hers\" , \"herself\" , \"him\" , \"himself\" , \"his\" , \"how\" , \"how's\" , \"i\" , \"i'd\" , \"i'll\" , \"i'm\" , \"i've\" , \"if\" , \"in\" , \"into\" , \"is\" , \"isn't\" , \"it\" , \"it's\" , \"its\" , \"itself\" , \"let's\" , \"me\" , \"more\" , \"most\" , \"mustn't\" , \"my\" , \"myself\" , \"no\" , \"nor\" , \"not\" , \"of\" , \"off\" , \"on\" , \"once\" , \"only\" , \"or\" , \"other\" , \"ought\" , \"our\" , \"ours\tourselves\" , \"out\" , \"over\" , \"own\" , \"same\" , \"shan't\" , \"she\" , \"she'd\" , \"she'll\" , \"she's\" , \"should\" , \"shouldn't\" , \"so\" , \"some\" , \"such\" , \"than\" , \"that\" , \"that's\" , \"the\" , \"their\" , \"theirs\" , \"them\" , \"themselves\" , \"then\" , \"there\" , \"there's\" , \"these\" , \"they\" , \"they'd\" , \"they'll\" , \"they're\" , \"they've\" , \"this\" , \"those\" , \"through\" , \"to\" , \"too\" , \"under\" , \"until\" , \"up\" , \"very\" , \"was\" , \"wasn't\" , \"we\" , \"we'd\" , \"we'll\" , \"we're\" , \"we've\" , \"were\" , \"weren't\" , \"what\" , \"what's\" , \"when\" , \"when's\" , \"where\" , \"where's\" , \"which\" , \"will\", \"while\" , \"who\" , \"who's\" , \"whom\" , \"why\" , \"why's\" , \"with\" , \"won't\" , \"would\" , \"wouldn't\" , \"you\" , \"you'd\" , \"you'll\" , \"you're\" , \"you've\" , \"your\" , \"yours\" , \"yourself\" , \"yourselves\" );\n\n\t\t\t\t//alle Array Elemente entfernen, deren wortlänge 1 ist (A, B, C, ...), in englischer oder deutscher stopliste enthalten\n\t\t\t\tforeach($wordsOfWebsite as $key=>$arrayWord){\n\t\t\t\t\tif(strlen($arrayWord) == 1 || in_array(mb_strtolower($arrayWord), $stopListGerman) || in_array(mb_strtolower($arrayWord), $stopListEnglish)){\n\t\t\t\t\t\t\tunset($wordsOfWebsite[$key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\n\t\t\t\tforeach($wordsOfWebsite as $key=>$searchedWord){\n\t\t\t\t\t\t\n\t\t\t\t\t$tableName = get_table_name($searchedWord);\n\t\t\t\t\t\n\t\t\t\t\t//check string lenght, if string is shorter than 4 chars were handleing it with the like operator. otherwise we re using the match against\n\t\t\t\t\n\t\t\t\t\t$lenghtOfWord = strlen($searchedWord);\n\t\t\t\t\n\t\t\t\t\tif(($result = mysqli_query($connection, \"SELECT word FROM `\" .$tableName.\"` WHERE MATCH(word) AGAINST('\".$searchedWord.\"' IN BOOLEAN MODE) \" )) && $lenghtOfWord > 3){\t\t\t\t\n\t\t\t\t\t\twhile($row = mysqli_fetch_array($result)){\n\t\t\t\t\t\n\t\t\t\t\t\t\tif (strcmp(strtolower($searchedWord),strtolower($row[0]))== 0){ \n\t\t\t\t\t\t\tunset($wordsOfWebsite[$key]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmysqli_free_result($result); \n\t\t\t\t\t}\n\t\t\t\t\telse if(($result = mysqli_query($connection, \"SELECT word FROM `\" .$tableName.\"` WHERE word LIKE '\".$searchedWord.\"'\" )) && $lenghtOfWord < 4){\n\t\t\t\t\t\twhile($row = mysqli_fetch_array($result)){\n\t\t\t\t\t\t\tif (strcmp(strtolower($searchedWord),strtolower($row[0]))== 0){ \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tunset($wordsOfWebsite[$key]);\n\t\t\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmysqli_free_result($result); \n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\n\t\t\t\t$wordsOfWebsiteWithUrls = array();\n\t\t\n\t\t\t\tforeach($wordsOfWebsite as $key=>$searchedWord){\t\n\t\t\t\t\t$wordsOfWebsiteWithUrls[] = array($searchedWord,$url);\t\n\t\t\t\t\tif(mysqli_query($connection, \"INSERT INTO _innovation_check (word, url) VALUES ('\" . $searchedWord . \"', '\" . $url . \"')\" )){\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"failed to insert \".$searchedWord.\" into _innovation_check\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\tmysqli_query($connection, \"INSERT INTO _websites_searched (url) VALUES ('\" . $url . \"')\");\n\t\t\t\n\t\t\t\treturn $wordsOfWebsiteWithUrls;\n\t\t\t}", "private function getResponseXML()\n\t\t{\n\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){ //rateshop\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_RATESHOP_WS_URL:THRIFTY_RATESHOP_WS_URL;\n\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.RateService/GetRates\";\n\t\t\t\t\t$methodname = \"GetRates\";\n\n\t\t\t\t}else{ //booking\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_BOOKING_WS_URL:THRIFTY_BOOKING_WS_URL;;\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$methodname = \"MakeReservation\";\n\t\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/MakeReservation\";\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://DTG.TourDirect/IReservationService/RetrieveReservation\";\n\t\t\t\t\t\t$methodname=\"RetrieveReservation\";\n\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/ModifyReservation\";\n\t\t\t\t\t\t$methodname=\"ModifyReservation\";\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/CancelReservation\";\n\t\t\t\t\t\t$methodname=\"CancelReservation\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$wsdl,FILE_APPEND);\n\t\t\t\t$client = new nusoap_client($wsdl,'wsdl');\n\t\t\t\t$client->soap_defencoding = 'utf-8';\n\t\t\t\t$client->operation = $methodname;\n\t\t\t\t$r=$client->send($this->xml, $soapAction, '');\n\t\t\t\t$response_xml = $client->responseData;\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$response_xml,FILE_APPEND);\n//\t\t\tprint_r($wsdl);\n\t\t\t//print_r($response_xml);\n\t\t\t//print_r($this->car_company);\n\t\t\t//print_r($this->xml);\n\t\t\t//exit;\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){\n\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->GetRatesResponse->asXML();\n\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t}else{\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->MakeReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$result = $this->parseResponseXML($r[\"RetrieveReservationResult\"]);\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$result =$xml->Body->ModifyReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->CancelReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tunset($client);\n\t\t\t$this->response = $result;\n\t\t\treturn $result;\n\t\t}", "public function testWriteXml() {\n\n /* @var $export \\MDN_Antidot_Model_Export_Article */\n $export = Mage::getModel('Antidot/export_article');\n\n $context = Mage::getModel('Antidot/export_context', array('fr', 'PHPUNIT'));\n //Store id 3 : site FR, id5 : site FR discount\n $context->addStore(Mage::getModel('core/store')->load(3));\n $context->addStore(Mage::getModel('core/store')->load(5));\n\n $type = MDN_Antidot_Model_Observer::GENERATE_FULL;\n\n $filename = sys_get_temp_dir().DS.sprintf(MDN_Antidot_Model_Export_Article::FILENAME_XML, 'jetpulp', $type, $context->getLang());\n\n $items = $export->writeXml($context, $filename, $type);\n\n /*\n * test three articles are exported, number returned by the method: 2 articles, one one 2 websites => 3 article exported\n */\n $this->assertEquals(3, $items);\n\n //replace generated_at by the one in the expected result\n $result = file_get_contents($filename);\n\n /**\n * test the xml contains the correct owner tag\n */\n $xml = new SimpleXMLElement($result);\n $this->assertEquals(\"JETPULP\", (string)$xml->header->owner);\n\n /**\n * test the xml contains the correct feed tag\n */\n $this->assertEquals('article PHPUNIT v'.Mage::getConfig()->getNode()->modules->MDN_Antidot->version, (string)$xml->header->feed);\n\n /**\n * test the xml contains the correct websites tag\n */\n $this->assertEquals('3', $xml->article[0]->websites->website[0]['id']);\n $this->assertEquals('French Website', (string)$xml->article[0]->websites->website[0]);\n $this->assertEquals('3', $xml->article[1]->websites->website[0]['id']);\n $this->assertEquals('French Website', (string)$xml->article[1]->websites->website[0]);\n $this->assertEquals('5', $xml->article[2]->websites->website[0]['id']);\n $this->assertEquals('France Website_discount', (string)$xml->article[2]->websites->website[0]);\n\n /**\n * test the xml contains the correct name tag\n */\n $this->assertEquals('Article A', (string)$xml->article[0]->title);\n $this->assertEquals('Article B', (string)$xml->article[1]->title);\n $this->assertEquals('Article B', (string)$xml->article[2]->title);\n\n\n /**\n * test the xml contains the correct text tag\n */\n $this->assertEquals('test contenu A test', (string)$xml->article[0]->text);\n $this->assertEquals('test contenu B test', (string)$xml->article[1]->text);\n $this->assertEquals('test contenu B test', (string)$xml->article[2]->text);\n\n\n /**\n * test the xml contains the correct url tags\n */\n $this->assertEquals('http://www.monsiteweb.fr/AA/', (string)$xml->article[0]->url);\n $this->assertEquals('http://www.monsiteweb.fr/BB/', (string)$xml->article[1]->url);\n $this->assertEquals('http://www.monsitediscount.fr/BB/', (string)$xml->article[2]->url);\n\n\n /**\n * test the xml contains the identifier\n */\n $this->assertEquals('identifier', $xml->article[0]->identifiers->identifier[0]['type']);\n $this->assertEquals('identifier', $xml->article[1]->identifiers->identifier[0]['type']);\n $this->assertEquals('identifier', $xml->article[2]->identifiers->identifier[0]['type']);\n $this->assertEquals('AA', $xml->article[0]->identifiers->identifier[0]);\n $this->assertEquals('BB', $xml->article[1]->identifiers->identifier[0]);\n $this->assertEquals('BB', $xml->article[2]->identifiers->identifier[0]);\n\n\n\n\n }", "function execute(){\n\t\tsession_write_close();\n\t\t$sRssUri = we_base_request::_(we_base_request::URL, 'we_cmd', '', 0);\n\t\t$sCfgBinary = we_base_request::_(we_base_request::STRING, 'we_cmd', '', 1); //note binary content\n\t\t$bCfgTitle = (bool) $sCfgBinary{0};\n\t\t$bCfgLink = (bool) $sCfgBinary{1};\n\t\t$bCfgDesc = (bool) $sCfgBinary{2};\n\t\t$bCfgContEnc = (bool) $sCfgBinary{3};\n\t\t$bCfgPubDate = (bool) $sCfgBinary{4};\n\t\t$bCfgCategory = (bool) $sCfgBinary{5};\n\t\t$iNumItems = we_base_request::_(we_base_request::INT, 'we_cmd', '', 2);\n\t\tswitch($iNumItems){\n\t\t\tcase 11:\n\t\t\t\t$iNumItems = 15;\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\t$iNumItems = 20;\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\t$iNumItems = 25;\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\t$iNumItems = 50;\n\t\t\t\tbreak;\n\t\t}\n\t\t$sTbBinary = we_base_request::_(we_base_request::STRING, 'we_cmd', '', 3); //binary\n\t\t$bTbLabel = (bool) $sTbBinary{0};\n\t\t$bTbTitel = (bool) $sTbBinary{1};\n\t\t$bTbDesc = (bool) $sTbBinary{2};\n\t\t$bTbLink = (bool) $sTbBinary{3};\n\t\t$bTbPubDate = (bool) $sTbBinary{4};\n\t\t$bTbCopyright = (bool) $sTbBinary{5};\n\n\t\t//Bug 6119: Keine Unterstützung für curl in der XML_RSS Klasse\n\t\t//daher Umstellung den Inhalt des Feeds selbst zu holen\n\t\t$parsedurl = parse_url($sRssUri);\n\t\t$http_request = new we_http_request($parsedurl['path'], $parsedurl['host'], 'GET');\n\t\t$http_request->executeHttpRequest();\n\t\t$http_response = new we_http_response($http_request->getHttpResponseStr());\n\t\twhile(isset($http_response->http_headers['Location'])){//eine Weiterleitung ist aktiv\n\t\t\t$parsedurl = parse_url($http_response->http_headers['Location']);\n\t\t\t$http_request = new we_http_request($parsedurl['path'], $parsedurl['host'], 'GET');\n\t\t\t$http_request->executeHttpRequest();\n\t\t\t$http_response = new we_http_response($http_request->getHttpResponseStr());\n\t\t}\n\t\t$feeddata = $http_response->http_body;\n\n\t\t$oRssParser = new we_xml_rss($feeddata, null, $GLOBALS['WE_BACKENDCHARSET']); // Umstellung in der XML_RSS-Klasse: den string, und nicht die url weiterzugeben\n\t\t$tmp = $oRssParser->parse();\n\t\t$sRssOut = \"\";\n\n\t\t$iCurrItem = 0;\n\t\tforeach($oRssParser->getItems() as $item){\n\t\t\t$bShowTitle = ($bCfgTitle && isset($item['title']));\n\t\t\t$bShowLink = ($bCfgLink && isset($item['link']));\n\t\t\t$bShowDesc = ($bCfgDesc && isset($item['description']));\n\t\t\t$bShowContEnc = ($bCfgContEnc && isset($item['content:encoded']));\n\t\t\t$bShowPubdate = ($bCfgPubDate && isset($item['pubdate']));\n\t\t\t$bShowCategory = ($bCfgCategory && isset($item['category']));\n\n\t\t\t$sLink = (($bCfgLink && isset($item['link'])) && !$bShowTitle) ? \" &nbsp;\" .\n\t\t\t\twe_html_element::htmlA(array(\"href\" => $item['link'], \"target\" => \"_blank\", \"style\" => \"text-decoration:underline;\"), g_l('cockpit', '[more]')) : \"\";\n\t\t\tif($bShowContEnc){\n\t\t\t\t$contEnc = new we_html_table(array(\"class\" => 'default'), 1, 1);\n\t\t\t\t$contEnc->setCol(0, 0, null, $item['content:encoded'] . ((!$bCfgDesc) ? $sLink : \"\"));\n\t\t\t}\n\n\t\t\t$sRssOut .= ($bShowTitle ?\n\t\t\t\t\t($bShowLink ? we_html_element::htmlA(array(\"href\" => $item['link'], \"target\" => \"_blank\"), we_html_element::htmlB($item['title'])) :\n\t\t\t\t\t\twe_html_element::htmlB($item['title'])) .\n\t\t\t\t\t($bShowPubdate ? ' ' : we_html_element::htmlBr()) :\n\t\t\t\t\t'') .\n\t\t\t\t($bShowPubdate ?\n\t\t\t\t\tg_l('cockpit', '[published]') . ': ' . date(g_l('date', '[format][default]'), strtotime($item['pubdate'])) :\n\t\t\t\t\t'') .\n\t\t\t\t($bShowCategory ?\n\t\t\t\t\t($bShowPubdate ? we_html_element::htmlBr() : \"\") .\n\t\t\t\t\tg_l('cockpit', '[category]') . \": \" . $item['category'] :\n\t\t\t\t\t'') .\n\t\t\t\t($bShowPubdate || $bShowCategory ?\n\t\t\t\t\twe_html_element::htmlBr() :\n\t\t\t\t\t'') .\n\t\t\t\t($bShowDesc ?\n\t\t\t\t\t$item['description'] . $sLink . we_html_element::htmlBr() :\n\t\t\t\t\t\"\") .\n\t\t\t\t($bShowContEnc ?\n\t\t\t\t\t$contEnc->getHTML() :\n\t\t\t\t\t(!$bShowDesc ?\n\t\t\t\t\t\t$sLink . we_html_element::htmlBr() :\n\t\t\t\t\t\t'')\n\t\t\t\t) .\n\t\t\t\t($bShowDesc || $bShowContEnc ?\n\t\t\t\t\twe_html_element::htmlBr() :\n\t\t\t\t\t\"\");\n\t\t\tif($iNumItems){\n\t\t\t\t$iCurrItem++;\n\t\t\t\tif($iCurrItem == $iNumItems){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$aTb = array();\n\t\tif($bTbLabel){\n\t\t\t$aTb[] = g_l('cockpit', '[rss_feed]');\n\t\t}\n\t\tif($bTbTitel){\n\t\t\t$aTb[] = we_base_request::_(we_base_request::STRING, 'we_cmd', '', 4) ? :\n\t\t\t\t((isset($oRssParser->channel[\"title\"])) ? $oRssParser->channel[\"title\"] : \"\");\n\t\t}\n\t\tif($bTbDesc){\n\t\t\t$aTb[] = (isset($oRssParser->channel[\"description\"])) ? str_replace(array(\"\\n\", \"\\r\"), '', $oRssParser->channel[\"description\"]) : '';\n\t\t}\n\t\tif($bTbLink){\n\t\t\t$aTb[] = (isset($oRssParser->channel[\"link\"])) ? $oRssParser->channel[\"link\"] : '';\n\t\t}\n\t\tif($bTbPubDate){\n\t\t\t$aTb[] = (isset($oRssParser->channel[\"pubdate\"])) ? (date(g_l('date', '[format][default]'), strtotime($oRssParser->channel[\"pubdate\"]))) : \"\";\n\t\t}\n\t\tif($bTbCopyright){\n\t\t\t$aTb[] = (isset($oRssParser->channel[\"copyright\"])) ? $oRssParser->channel[\"copyright\"] : \"\";\n\t\t}\n\t\t$resp = new we_rpc_response();\n\t\t$resp->setData('data', $sRssOut);\n\n\t\t// title\n\t\t$title = implode(' - ', $aTb);\n\t\tif(strlen($title) > 50){\n\t\t\t$title = substr($title, 0, 50) . '&hellip;';\n\t\t}\n\t\t$resp->setData('titel', $title);\n\t\t$resp->setData('widgetType', \"rss\");\n\t\t$resp->setData('widgetId', we_base_request::_(we_base_request::STRING, 'we_cmd', 0, 5));\n\n\t\treturn $resp;\n\t}", "abstract public function grabReportsFromFile( $quantity, $t_reputation );", "public function get_listings_details($dom){\t\n\t\t\t//push each entry into new array\n\t\t\t$update_item_array = array();\n\t\t\t$update_item_array['itemnumber'] = array();\n\t\t\t$update_item_array['customlabel'] = array();\n\t\t\t$update_item_array['quantity'] = array();\n\t\t\t$update_item_array['quantitysoldandavailable'] = array();\n\t\t\t$update_item_array['sellprice'] = array();\n\t\t\t$update_item_array['starttime'] = array();\n\t\t\t$update_item_array['endtime'] = array();\n\t\t\t$update_item_array['itemtitle'] = array();\n\t\t\t$update_item_array['stockcntrl'] = array();\n\t\t\t$update_item_array['listingtype'] = array();\n\n\n\t\t\t$update_item_response = $dom->getElementsByTagName(DOM_ELEMENT_LISTINGSSHOW_RESPONSE);\n\n\n\n\t\t\tforeach ($update_item_response as $item){\n\t \t\t\t\n\n\t\t\t\t$activelist = $item->getElementsByTagName(DOM_ELEMENT_LISTINGS_ACTIVELIST);\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tforeach ($activelist as $activelistshow){\n\t\t\t\t\t\n\t\t\t\t\t$itemarrays = $activelistshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ITEMARRAY);\n\n\n\t\t\t\t\tforeach($itemarrays as $itemarray){\n\n\t\t\t\t\t\t$inditems = $itemarray->getElementsByTagName(DOM_ELEMENT_LISTINGS_ITEMSS);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tforeach($inditems as $inditemshow){\n\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_LISTINGTYPE)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_LISTINGTYPE)->item(0)->nodeValue) : \"Listing Type - Error\";\n\n\t\t\t\t\t\t\tarray_push($update_item_array['listingtype'], $costers);\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ITEMID)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ITEMID)->item(0)->nodeValue) : \"Item Num - Error\";\n\n\t\t\t\t\t\t\tarray_push($update_item_array['itemnumber'], $costers);\n\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_SKU)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_SKU)->item(0)->nodeValue) : \"SKU - Error\";\n\n\t\t\t\t\t\t\tarray_push($update_item_array['customlabel'], $costers);\n\t\t\t\t\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_QUANTITY)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_QUANTITY)->item(0)->nodeValue) : \"0\";\n\n\t\t\t\t\t\t\tarray_push($update_item_array['quantity'], $costers);\n\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_TOTALQUANTITY)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_TOTALQUANTITY)->item(0)->nodeValue) : \"0\";\n\n\t\t\t\t\t\t\tarray_push($update_item_array['quantitysoldandavailable'], $costers);\n\n\n\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_CURRENTPRICE)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_CURRENTPRICE)->item(0)->nodeValue) : \"price sold - Error\";\n\n\t\t\t\t\t\t\tarray_push($update_item_array['sellprice'], $costers);\t\n\n\n\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_STARTTIME)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_STARTTIME)->item(0)->nodeValue) : \"0\";\n\n\n\t\t\t\t\t\t\tarray_push($update_item_array['starttime'], $costers);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ENDTIME)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ENDTIME)->item(0)->nodeValue) : \"\";\n\n\n\t\t\t\t\t\t\tarray_push($update_item_array['endtime'], $costers);\n\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ITEMTITLE)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_ITEMTITLE)->item(0)->nodeValue) : \"\";\n\n\n\t\t\t\t\t\t\tarray_push($update_item_array['itemtitle'], $costers);\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$costers = trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_STOCKCNTRL)->item(0)->nodeValue) != \"\" ? trim($inditemshow->getElementsByTagName(DOM_ELEMENT_LISTINGS_STOCKCNTRL)->item(0)->nodeValue) : \"FALSE\";\n\n\n\t\t\t\t\t\t\tarray_push($update_item_array['stockcntrl'], $costers);\t\t\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\n\t\t\t\t}\t\t\n\n\n\t\t\t\t//errors\n\t\t\t\t$error_messages = $item->getElementsByTagName(DOM_ELEMENT_ERRORS);\n\n\t\t\t\tforeach ($error_messages as $errormsg){\n\t\t\t\t\t$error = trim($errormsg->getElementsByTagName(DOM_ELEMENT_SHORT_ERROR_MSG)->item(0)->nodeValue) != \"\" ? trim($errormsg->getElementsByTagName(DOM_ELEMENT_SHORT_ERROR_MSG)->item(0)->nodeValue) : \"No Error\";\n\t\t\t\t\tarray_push($update_item_array, $error);\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t}\n\n\t\t\treturn $update_item_array;\n\n\t\t//DOM_ELEMENT_SHORT_ERROR_MSG\n\t\t}", "function parse($url){\n \n echo '[parse] url: ', $url, \"\\n\";\n \n $xpath = get_soup($url);\n \n // get number of reviews in all languages\n $num_reviews = $xpath->query('//span[@class=\"reviews_header_count\"]/text()')[0]->nodeValue; // get text\n $num_reviews = substr($num_reviews, 1, -1); // remove `( )`\n $num_reviews = str_replace(',', '', $num_reviews); // remove `,`\n $num_reviews = (int)$num_reviews; // convert text into integer\n echo '[parse] num_reviews ALL: ', $num_reviews, \"\\n\";\n \n // get number of reviews in English\n //~ $num_reviews = $xpath->query('//div[@data-value=\"en\"]//span/text()')[0]->nodeValue; // get text\n //~ $num_reviews = substr($num_reviews, 1, -1); // remove `( )`\n //~ $num_reviews = str_replace(',', '', $num_reviews); // remove `,`\n //~ $num_reviews = (int)$num_reviews; // convert text into integer\n //~ echo '[parse] num_reviews ENGLISH: ', $num_reviews, \"\\n\";\n \n // create template url for subpages with reviews\n // ie. https://www.tripadvisor.com/Hotel_Review-g562819-d289642-or{}.html\n $url_template = str_replace('.html', '-or{}.html', $url);\n echo '[parse] url_template:', $url_template;\n \n // create subpages urls and parse reviewes.\n // every subpage has 5 reviews and it has url with -or0.html -or5.html -or10.html -or15.html etc.\n \n $items = [];\n \n $offset = 0;\n \n while(True) {\n $subpage_url = str_replace('{}', $offset, $url_template);\n \n $subpage_items = parse_reviews($subpage_url);\n \n if($subpage_items->length == 0) break;\n \n $items += $subpage_items;\n \n $offset += 5;\n\n //~ return $items; // for test only - to stop after first page \n } \n \n return $items;\n}", "protected function getDailySummary()\n {\n $strBuffer = '\n<fieldset class=\"tl_tbox\">\n<legend style=\"cursor: default;\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['24h_summary'] . '</legend>\n<div class=\"daily_summary\">';\n\n $arrAllowedProducts = \\Isotope\\Backend\\Product\\Permission::getAllowedIds();\n\n $objOrders = Database::getInstance()->prepare(\"\n SELECT\n c.id AS config_id,\n c.name AS config_name,\n c.currency,\n COUNT(DISTINCT o.id) AS total_orders,\n SUM(i.tax_free_price * i.quantity) AS total_sales,\n SUM(i.quantity) AS total_items\n FROM tl_iso_product_collection o\n LEFT JOIN tl_iso_product_collection_item i ON o.id=i.pid\n LEFT OUTER JOIN tl_iso_config c ON o.config_id=c.id\n WHERE o.type='order' AND o.order_status>0 AND o.locked>=?\n \" . Report::getProductProcedure('i', 'product_id') . \"\n \" . Report::getConfigProcedure('o', 'config_id') . \"\n GROUP BY config_id\n \")->execute(strtotime('-24 hours'));\n\n if (!$objOrders->numRows) {\n\n $strBuffer .= '\n<p class=\"tl_info\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['24h_empty'] . '</p>';\n\n } else {\n\n $i = -1;\n $strBuffer .= '\n<div class=\"tl_listing_container list_view\">\n <table class=\"tl_listing\">\n <tr>\n <th class=\"tl_folder_tlist\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['shop_config'] . '</th>\n <th class=\"tl_folder_tlist\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['currency'] . '</th>\n <th class=\"tl_folder_tlist\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['orders#'] . '</th>\n <th class=\"tl_folder_tlist\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['products#'] . '</th>\n <th class=\"tl_folder_tlist\">' . $GLOBALS['TL_LANG']['ISO_REPORT']['sales#'] . '</th>\n </tr>';\n\n\n while ($objOrders->next())\n {\n $strBuffer .= '\n <tr class=\"row_' . ++$i . ($i%2 ? 'odd' : 'even') . '\">\n <td class=\"tl_file_list\">' . $objOrders->config_name . '</td>\n <td class=\"tl_file_list\">' . $objOrders->currency . '</td>\n <td class=\"tl_file_list\">' . $objOrders->total_orders . '</td>\n <td class=\"tl_file_list\">' . $objOrders->total_items . '</td>\n <td class=\"tl_file_list\">' . Isotope::formatPrice($objOrders->total_sales) . '</td>\n </tr>';\n }\n\n $strBuffer .= '\n </table>\n</div>';\n }\n\n\n $strBuffer .= '\n</div>\n</fieldset>';\n\n return $strBuffer;\n }", "private function parse ( ) {\n\t\t\t$this->parse_csv();\n\t\t\t\n\t\t\t// parse out the daily html\n\t\t\t$this->parse_html();\n\t\t\t\n\t\t}", "public function run()\n {\n $this->config = Config::get('nla');\n $this->detectDataSource();\n $this->collectNLAIdentifiers();\n\n $count = count($this->nlaIdentifiers);\n $this->info(\"Processing {$count} nla identifiers\");\n\n $payload = \"\";\n $this->progressStart(count($this->nlaIdentifiers));\n foreach ($this->nlaIdentifiers as $identifier) {\n $this->progressAdvance(1);\n try {\n $rifcs = $this->getRIFCSFromNLAIdentifier($identifier);\n $rifcs = XMLUtil::unwrapRegistryObject($rifcs);\n $this->debug(\"Found rifcs for $identifier\");\n $payload .= $rifcs;\n } catch (Exception $e) {\n $this->error(\"Failed processing $identifier. {$e->getMessage()}\");\n }\n }\n $payload = XMLUtil::wrapRegistryObject($payload);\n $this->progressFinish();\n\n $this->log(\"Starting importing process...\");\n $this->import($payload);\n $this->log(\"Finished...\");\n }", "function main($sort = '', $dir = '', $page = 0, $perpage = 20, $download = '', $id = 0) {\n global $CFG;\n\n $this->display_header();\n \n $this->init_all($id);\n\n //calculate actual report data\n $this->calculate_data();\n\n echo $this->display_icons($id);\n \n $this->display_footer();\n }", "public function ytd()\n {\n header('Content-Disposition: attachment; filename=\"ytd_totals.csv\"');\n header(\"Cache-control: private\");\n header(\"Content-type: application/force-download\");\n header(\"Content-transfer-encoding: binary\\n\");\n\n $sc_stores = Banner::getStoreDetailsByBannerid(1);\n $atmo_stores = Banner::getStoreDetailsByBannerid(2);\n $all_stores = $sc_stores->merge($atmo_stores);\n $csv = \"Banner, Store Number, Store Name, YTD Donation \\r\\n\";\n //echo $all_stores[0];\n foreach($all_stores as $s){\n if( $s->banner_id == 1)\n $banner = \"SC\";\n else {\n $banner = \"ATMO\";\n }\n $totalDonation = Donation::getTotalDonationforStore($s->store_number);\n $totalDonation = str_replace(\",\",\"\", $totalDonation);\n $csv = $csv . $banner . ', ' . $s->store_number . ', ' . $s->name . ', ' .$totalDonation . \"\\r\\n\";\n }\n echo $csv;\n \n }", "public function process()\n\t{\n\t\t$aVals = $this->request()->getArray('val');\n\t\t$this->testInstall();\n\n\t\t// $this->testInstall();\n\n\t\tif($aVals) {\n\t\t\tPhpfox::getService('unittest.test.socialad')->test($aVals['test_suite']);\n\n\t\t\t$sContent = ob_get_contents();\n\t\t\tob_clean();\n\t\t\techo(str_replace(\"\\n\", \"</br>\", $sContent));\n\t\t\tob_end_flush();\n\t\t\texit;\n\t\t}\n\n\t\t$this->template()->assign(array(\n\t\t\t'aTestSuites' => Phpfox::getService('unittest.test.socialad')->getTestSuites()\n\t\t));\n\t}", "public function testReportsExportGet()\n {\n }", "public function run()\n {\n for($page=1;$page<=3;$page++) {\n $pageUrl = \"https://www.knygos.lt/lt/knygos/zanras/fantastika-ir-fantasy/?psl=\" . $page;\n $fetchPage = file_get_contents($pageUrl);\n\n if (!$fetchPage)\n die(\"Unable to fetch the bookstore.\");\n\n $booksDetailsHTML = self::explodeBetween(\"<div class=\\\"product-photo-icon-container product-photo-icons-rb\\\">\", \"</a>\", $fetchPage);\n foreach ($booksDetailsHTML as $bookDetailsHTML) {\n $bookUrl = current(self::explodeBetween('<a href=\"', '\"', $bookDetailsHTML));\n //echo 'https://www.knygos.lt/'.$bookUrl.PHP_EOL;\n usleep(200); // Delay crawling to prevent spam-block\n\n $fetchBookPage = file_get_contents('https://www.knygos.lt/' . $bookUrl);\n\n if (!$fetchBookPage)\n die(\"Unable to fetch the book page.\");\n\n $author = @next(explode('>', current(self::explodeBetween('<a itemprop=\"author\"', '</a>', $fetchBookPage))));\n $year = current(self::explodeBetween('<p class=\"book_details\">Metai: ', '</p>', $fetchBookPage));\n $title = current(self::explodeBetween('<p class=\"book_details\">Originalus pavadinimas: ', '</p>', $fetchBookPage));\n if (empty($title))\n $title = current(self::explodeBetween('<span itemprop=\"name\">', '</span>', $fetchBookPage));\n\n if (empty($title) || strlen($title) > 30){\n continue;\n }\n\n $genre = 'Fantastika';\n\n DB::table('books')->insert([\n 'title' => $title,\n 'year' => $year,\n 'author' => $author,\n 'genre' => $genre,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\"),\n ]);\n\n }\n }\n\n }", "public function run() {\n try {\n $todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);\n \n $products = Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('preorder_calender', array('date' => true, 'to' => $todayDate));\n $emailContent = '';\n $emailContent .= $todayDate.\"\\n\";\n echo 'Preorder-InStock process started @ '.$todayDate.' :'.\"\\n\\n\";\n echo 'Name'.\"\\t\".'SKU'.\"\\n\\n\";\n\n // Write into CSV\n $io = new Varien_Io_File();\n $path = Mage::getBaseDir('var') . DS . 'export' . DS;\n $name = md5(microtime());\n $file = $path . DS . $name . '.csv';\n $io->setAllowCreateFolders(true);\n $io->open(array('path' => $path));\n $io->streamOpen($file, 'w+');\n $io->streamLock(true);\n\n $header = array(\"Name\",\"SKU\");\n $io->streamWriteCsv($header);\n\n foreach ($products as $product) {\n $product->load();\n $data = array();\n $data[] = $product->getName();\n $data[] = $product->getSku();\n $io->streamWriteCsv($data);\n $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId());\n $stock->setData('is_in_stock', 1);\n $stock->save();\n\n $product->setData('preorder_calender', null);\n $product->setData('custom_stock_status', 14);\n\n $product->save();\n $output = $product->getName().\"\\t\".$product->getSku();\n echo $output.\"\\n\";\n }\n\n // Send email with configuration in System > Configuration > Preoder Instock Updates > Receivers\n $emailTemplate = Mage::getModel('core/email_template')\n ->loadDefault('preoder_stock_email');\n\n $emailTemplate->setSenderName('Milan Direct Administrator');\n $emailTemplate->setSenderEmail(Mage::getStoreConfig('trans_email/ident_general/email'));\n $emailTemplate->setTemplateSubject('Preorder-InStock process started @ '.$todayDate);\n\n $emailTemplateVariables = array();\n $emailTemplateVariables['message'] = 'Preorder-InStock process finished with '.$products->count().' updated';\n $processedTemplate = $emailTemplate->getProcessedTemplate($emailTemplateVariables);\n\n // Add attachment\n $emailTemplate->getMail()->createAttachment(\n file_get_contents($file),\n Zend_Mime::TYPE_OCTETSTREAM,\n Zend_Mime::DISPOSITION_ATTACHMENT,\n Zend_Mime::ENCODING_BASE64,\n 'preorder_stock_report.csv'\n );\n\n $names = array();\n $receivers = explode(\",\", Mage::getStoreConfig('notification/general/email'));\n\n foreach($receivers as $receiver)\n {\n $names[] = 'Milan Direct Staff';\n }\n\n $emailTemplate->send($receivers,$names, $emailTemplateVariables);\n\n echo 'Preorder-InStock process finished with '.$products->count().' updated'.\"\\n\";\n } catch (Exception $e) {\n Mage::logException($e);\n Mage::log($e->getMessage(), 1, 'preorder_instock.log');\n }\n }", "public function consult() {\n $page = 'basket';\n $totalBasket = $this->calculateTotal();\n\n require('./View/default.php');\n }", "public function testReport(){\n // $autoTaskTools->checkTask('AutoDaySessReport');\n // $date = array(\n // date_to_int('-',date('Y-m-01', strtotime('-1 month'))),\n // date_to_int('-',date('Y-m-t', strtotime('-1 month'))),\n // );\n\n $reportTools = new ReportTools();\n $reportTools->saveReportList('AutoDaySessReport');\n\n\n $BeginDate = date('Y-m-01', strtotime(date(\"Y-m-d\")));\n $date = array(\n date_to_int('-',$BeginDate),\n date_to_int('-',date('Y-m-d', strtotime(\"$BeginDate +1 month -1 day\"))),\n );\n $month = date('Y-m-01', strtotime('-1 month'));\n $month1 = date('Y-m-t', strtotime('-1 month'));\n dump($month);\n dump($month1);\n $mytime = date(\"Y-01-01\", strtotime(\"-1 year\"));\n dump($mytime);\n $monthEndDays = cal_days_in_month(CAL_GREGORIAN, 12, date(\"Y\", strtotime(\"-1 year\")));\n $year = date(\"Y-12-\".$monthEndDays, strtotime(\"-1 year\"));\n echo 'year:' . $year;\n $monthDays = cal_days_in_month(CAL_GREGORIAN, date('m',strtotime('-1 month')), date('Y'));\n dump($monthDays);\n echo 'n:' . date('n');\n $season = ceil((date('n'))/3)-1;\n echo '<br>上季度起始时间:<br>';\n echo date('Y-m-d H:i:s', mktime(0, 0, 0,$season*3-3+1,1,date('Y'))),\"\\n\";\n echo date('Y-m-d H:i:s', mktime(23,59,59,$season*3,date('t',mktime(0, 0 , 0,$season*3,1,date(\"Y\"))),date('Y'))),\"\\n\";\n //获取第几季度\n // $season = ceil((date('n'))/3);\n // echo date('m', mktime(0, 0, 0,$season*3-3+1,1,date('Y'))),\"\\n\";\n // echo date('Y-m-d', mktime(23,59,59,$season*3,date('t',mktime(0, 0 , 0,$season*3,1,date(\"Y\"))),date('Y'))),\"\\n\";\n dump($season);\n // $daySessReportTools = new DaySessReportTools();\n // $daySessReportTools->getDateList($date);\n // $daySessReportTools->daySessExcelGen($date);\n //\n // $dayErrorReportTools = new DayErrorReportTools();\n // $dayErrorReportTools->dayErrorExcelGen($date);\n // $daySessReportTools->getDateList($date);\n $str = stristr('DaySuccessReport_UID_2017-06-29.xlsx','_',true);\n dump($str);\n $this->display();\n }", "public function run()\n {\n\n foreach ($this->array_data() as $arr) {\n\n $data = [\n 'sku' => $arr['sku'],\n 'parent_sku' => $arr['parent_sku'],\n 'active' => $arr['active'],\n 'condition' => $arr['condition'],\n 'name' => $arr['name'],\n 'description' => $arr['description'],\n 'availability_when_no_to_manage_stock' => $arr['availability_when_no_to_manage_stock'],\n 'manage_inventory' => $arr['manage_inventory'],\n 'quantity' => $arr['quantity'],\n 'availability_two_products_in_stock' => $arr['availability_two_products_in_stock'],\n 'availability_when_end_products_in_stock' => $arr['availability_when_end_products_in_stock'],\n 'price_cost' => $arr['price_cost'],\n 'price_for_sale' => $arr['price_for_sale'],\n 'promotional_price' => $arr['promotional_price'],\n 'category_level_1' => $arr['category_level_1'],\n 'category_level_2' => $arr['category_level_2'],\n 'category_level_3' => $arr['category_level_3'],\n 'brand' => $arr['brand'],\n 'peso_kg' => $arr['peso_kg'],\n 'height_cm' => $arr['height_cm'],\n 'width_cm' => $arr['width_cm'],\n 'length_cm' => $arr['length_cm'],\n 'link_to_the_main_photo' => $arr['link_to_the_main_photo'],\n 'link_to_additional_photo_1' => $arr['link_to_additional_photo_1'],\n 'link_to_additional_photo_2' => $arr['link_to_additional_photo_2'],\n 'link_to_additional_photo_3' => $arr['link_to_additional_photo_3'],\n 'url_old_product' => $arr['url_old_product'],\n 'video_link_on_youtube' => $arr['video_link_on_youtube'],\n 'size_of_tenis' => $arr['size_of_tenis'],\n 'product_with_a_color' => $arr['product_with_a_color'],\n 'helmet_size' => $arr['helmet_size'],\n 'size_of_calca' => $arr['size_of_calca'],\n 'product_with_two_colors' => $arr['product_with_two_colors'],\n 'voltage' => $arr['voltage'],\n 'shirt_size' => $arr['shirt_size'],\n 'ring_alliance_size' => $arr['ring_alliance_size'],\n 'genre' => $arr['genre'],\n\n ];\n\n if (ModelExcel::where('sku', '=', $arr['sku'])->count()) {\n $permission = ModelExcel::where('sku', '=', $arr['sku'])->first();\n $permission->update($data);\n } else {\n ModelExcel::create($data);\n }\n\n }\n\n }", "public function testReportsGet()\n {\n }", "public function testReportsSkillv1reportscalibration()\n {\n\n }", "function testSeries(): void {\n // Scrubs\n // https://imdb.com/title/tt0285403/\n\n $id = '0285403';\n $data = engineGetData($id, 'imdb', false);\n\n $this->assertNotEmpty($data);\n // $this->printData($data);\n\n $this->assertMatchesRegularExpression(\"/Zach Braff::Dr. John 'J.D.' Dorian.+?::imdb:nm0103785.+?Mona Weiss::Nurse \\(uncredited\\) .+?::imdb:nm2032293/is\", $data['cast']);\n $this->assertMatchesRegularExpression('/Sacred Heart Hospital/i', $data['plot']);\n }", "function report()\n {\n if ($this->acl->otentikasi2($this->title) == TRUE){\n\n $vendor = $this->input->post('cvendor');\n $cur = $this->input->post('ccurrency');\n \n $start = $this->input->post('start');\n $end = $this->input->post('end');\n $acc = $this->input->post('cacc');\n\n $data['currency'] = strtoupper($cur);\n $data['start'] = tglin($start);\n $data['end'] = tglin($end);\n $data['rundate'] = tglin(date('Y-m-d'));\n $data['log'] = $this->decodedd->log;\n\n// $data['purchase_returns'] = $this->model->report($cur,$vendor,$start,$end,$acc)->result();\n \n $reports = null;\n foreach ($this->model->report($cur,$vendor,$start,$end,$acc)->result() as $res) {\n $reports[] = array (\"id\"=>$res->id, \n \"date\"=> tglin($res->dates),\n \"no\"=> \"PR-00\".$res->no,\n \"account\"=>floatval($res->price),\n \"vendor\"=>$res->prefix.' '.$res->name,\n \"amount\"=>floatval($res->total-$res->tax),\n \"tax\"=>floatval($res->tax),\n \"cost\"=>floatval($res->costs),\n \"balance\"=>floatval($res->total-$res->costs),\n \"status\"=> $this->xstatus($res->status)\n ); \n }\n \n $total = $this->model->total($cur,$vendor,$start,$end,$acc);\n $data['total'] = floatval($total['total'] - $total['tax']);\n $data['tax'] = floatval($total['tax']);\n $data['costs'] = floatval($total['costs']);\n $data['balance'] = floatval($total['total'] + $total['costs']);\n $data['items'] = $reports;\n \n $this->output = $data;\n \n }else { $this->reject_token('Invalid Token or Expired..!'); }\n $this->response('content');\n \n }", "function sys_sales($oConnect, $link, $startDate, $endDate,&$sys_log) {\n $sSQL = \"sp_report SalesByItemDetail show Text, Blank, TxnType, Date, Memo, Name, Quantity, UnitPrice, Amount parameters DateFrom = {d'$startDate'}, DateTo= {d'$endDate'}\";\n // Perform the query\n $oResult = odbc_exec($oConnect, $sSQL);\n $keys = array(\"Type\", \"FullName\", \"Description\", \"TxnType\", \"Date\", \"Memo\", \"Name\", \"Quantity\", \"UnitPrice\", \"Amount\");\n $lFieldCount = odbc_num_fields($oResult);\n $rows = array();\n //print_r($keys.\"<br>\");\n while ($myRow = odbc_fetch_array($oResult)) {\n $rows[] = $myRow;\n }\n $values = array();\n $Type = \"\";\n $FullName = \"\";\n $NewFullName = \"\";\n $Description = \"\";\n if (count($rows) > 0) {\n // do delete then add\n $resUpdate = mysqli_query($link, \"delete from r_salesbyitemdetail WHERE date>= '$startDate' \");\n //print (\"delete from r_salesbyitemdetail WHERE date>= '$startDate'\");\n if ($resUpdate) {\n $items = 0;\n for ($i = 0;$i < count($rows);++$i) {\n $values = array();\n $l1_parentCount = 0;\n $l2_parentCount = 0;\n $l3_parentCount = 0;\n // print $rows[$i]['Text'];\n //if ($rows[$i]['Text'] == \"\" && $rows[$i]['Blank'] == \"\" && $rows[$i]['Amount'] != \"\")\n if ($rows[$i]['UnitPrice'] != \"\") {\n if ($i >= 3) {\n if ($rows[$i - 1]['Text'] != \"\" && $rows[$i - 1]['Amount'] == \"\") {\n $Description = $rows[$i - 1]['Text'];\n if ($rows[$i - 2]['Text'] != \"\" && $rows[$i - 2]['Amount'] == \"\") {\n $FullName = $rows[$i - 2]['Text'];\n if ($rows[$i - 3]['Text'] != \"\" && $rows[$i - 3]['Amount'] == \"\") {\n $Type = $rows[$i - 3]['Text'];\n }\n }\n }\n }\n if (strpos($Description, '(') !== false) {\n $newDescription = preg_replace(\"/\\([^)]+\\)/\", \"\", $Description);\n $NewFullName = $FullName . ':' . $newDescription;\n $splitArr = explode(\"(\", $Description);\n $newDescription2 = str_replace(\")\", \"\", $splitArr[1]);\n } else {\n $NewFullName = $FullName . ':' . $Description;\n $newDescription2 = $Description;\n }\n array_push($values, $Type);\n array_push($values, $NewFullName);\n //array_push($values, addslashes($Description));\n array_push($values, addslashes($newDescription2));\n array_push($values, $rows[$i]['TxnType']);\n array_push($values, $rows[$i]['Date']);\n array_push($values, addslashes($rows[$i]['Memo']));\n array_push($values, $rows[$i]['Name']);\n array_push($values, $rows[$i]['Quantity']);\n array_push($values, $rows[$i]['UnitPrice']);\n array_push($values, $rows[$i]['Amount']);\n //print $Type . \"**:***\" . $FullName . \"***:***\" . $Description . \"*************\".$rows[$i]['TxnType'] . \" - \" . $rows[$i]['Date'] . \" - \" . $rows[$i]['Memo'] . \" - \" . $rows[$i]['Name'] . \" - \" . $rows[$i]['Quantity'] . \" - \" . $rows[$i]['UnitPrice'] . \" - \" . $rows[$i]['Amount'] . \"<br />\";\n //print_r($values.\"<br>\");\n $resInsert = mysqli_query($link, \"INSERT INTO r_salesbyitemdetail (\" . implode(\", \", $keys) . \") VALUES ('\" . implode(\"', '\", $values) . \"');\"); // insert one row into new table\n if ($resInsert) {\n //print (\"r_salesbyitemdetail--Insert2 :Success<br>\");\n \n } else {\n print (\"r_salesbyitemdetail--INSERT INTO r_salesbyitemdetail (\" . implode(\", \", $keys) . \") VALUES ('\" . implode(\"', '\", $values) . \"')<br>\");\n }\n $items++;\n }\n }\n } else {\n print (\"delete failed!<br>\");\n }\n }\n odbc_free_result($oResult);\n\t$sys_log .=\"total No. of SalesByItemDetail: $items \\r\\n\";\n\t\n\t\n echo \"<br>total No. of SalesByItemDetail: $items\";\n\t//$arr['SalesByItemDetail'] = \"total No. of SalesByItemDetail: $items\";\n\t\n}", "public function testComAdobeCqSocialReportingAnalyticsServicesImplAnalyticsReportI()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.cq.social.reporting.analytics.services.impl.AnalyticsReportImporterServiceImpl';\n\n $crawler = $client->request('POST', $path);\n }", "function checkData($da) {\n global $baseurl, $f, $o, $i, $e, $local;\n $d = new simple_html_dom();\n $u = $baseurl . $da[28];\n// echo \"URL: \" . $u .\"\\n\";\n $d->load(scraperwiki::scrape($u));\n if (is_null($d->find('div[id=medproimg] a',0))) {\n $errstr = \"Error: \" . $da[0] . \". Couldn't find product page.\\n\";\n fwrite($e,$errstr);\n echo $errstr;\n return 0;\n }\n $imgurl = trim($d->find('div[id=medproimg] a',0)->href);\n if ($da[11] == \"///\" || !is_numeric($da[19])) {\n if ($da[11] == \"///\") {\n $imgfile = trim(strrchr($imgurl,\"/\"),\"/ \");\n $img = \"/\" . substr($imgfile,0,1) . \"/\" . substr($imgfile,1,1) . \"/\" . $imgfile;\n if ($img != \"///\") {\n $da[11] = $img;\n $da[22] = $img;\n $da[25] = $img;\n $da[52] = $img;\n } else {\n $errstr = \"Error: \" . $da[0] . \". Couldn't find img filename.\\n\";\n fwrite($e,$errstr);\n echo $errstr;\n return 0;\n }\n }\n if (!is_numeric($da[19])) {\n $price = implode(explode(\",\",trim(strstr(strstr($d->find('div[id=proprice]',0)->innertext,\"$\"),\"<\",true),\"$ \")));\n if (is_numeric($price)) {\n $da[19] = $price;\n } else {\n $errstr = \"Error: \" . $da[0] . \". Couldn't find price.\\n\";\n fwrite($e,$errstr);\n echo $errstr;\n return 0;\n }\n }\n fputcsv($o,$da);\n fputcsv($i,array($imgurl,$da[11]));\n $errstr = \"Success: updated \" . $da[0] . \".\\n\";\n fwrite($e,$errstr);\n echo $errstr;\n checkThumbs($d,$da);\n }\n fputcsv($o,$da);\n fputcsv($i,array($imgurl,$da[11]));\n checkThumbs($d,$da);\n}", "public function Generate_Report()\n\t{\n\t\t//\n\t\t// criteria start_date YYYYMMDD\n\t\t// criteria end_date YYYYMMDD\n\t\t// company_id\n\t\t//\n\t\ttry\n\t\t{\n\t\t\t$this->search_query = new Transaction_History_Report_Query($this->server);\n\n\t\t\t$data = new stdClass();\n\n\t\t\t// Save the report criteria\n\t\t\t$data->search_criteria = array(\n\t\t\t 'specific_date_MM' => $this->request->specific_date_month,\n\t\t\t 'specific_date_DD' => $this->request->specific_date_day,\n\t\t\t 'specific_date_YYYY' => $this->request->specific_date_year,\n\t\t\t 'company_id' => $this->request->company_id,\n\t\t\t 'loan_type' => $this->request->loan_type\n\t\t\t);\n\n\t\t\t$_SESSION['reports']['transaction_history']['report_data'] = new stdClass();\n\t\t\t$_SESSION['reports']['transaction_history']['report_data']->search_criteria = $data->search_criteria;\n\t\t\t$_SESSION['reports']['transaction_history']['url_data'] = array('name' => 'Transaction History', 'link' => '/?module=reporting&mode=transaction_history');\n\n\t\t\t// Start date\n\t\t\t$start_date_YYYY = $this->request->specific_date_year;\n\t\t\t$start_date_MM\t = $this->request->specific_date_month;\n\t\t\t$start_date_DD\t = $this->request->specific_date_day;\n\t\t\tif(!checkdate($start_date_MM, $start_date_DD, $start_date_YYYY))\n\t\t\t{\n\t\t\t\t//return with no data\n\t\t\t\t$data->search_message = \"Start Date invalid or not specified.\";\n\t\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$start_date_YYYYMMDD = 10000 * $start_date_YYYY\t+ 100 * $start_date_MM + $start_date_DD;\n\n\t\t\t$data->search_results = $this->search_query->Fetch_Transaction_History_Data( $start_date_YYYYMMDD,\n\t\t\t\t $this->request->loan_type,\n\t\t\t\t $this->request->company_id);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$data->search_message = \"Unable to execute report. Reporting server may be unavailable.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\t\t// we need to prevent client from displaying too large of a result set, otherwise\n\t\t// the PHP memory limit could be exceeded;\n\t\tif(!empty($data->search_results) && count($data->search_results) > $this->max_display_rows)\n\t\t{\n\t\t\t$data->search_message = \"Your report would have more than \" . $this->max_display_rows . \" lines to display. Please narrow the date range.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Sort if necessary\n\t\t$data = $this->Sort_Data($data);\n\n\t\tECash::getTransport()->Add_Levels(\"report_results\");\n\t\tECash::getTransport()->Set_Data($data);\n\t\t$_SESSION['reports']['transaction_history']['report_data'] = $data;\n\t}", "function get_initial_results()\n{\n\tinclude('global_vars_insert.php');\n\n\t////////////////////////////////////////////\n\t/////\tBING INITIAL SEARCH DATA \n\t////////////////////////////////////////////\n\t\n\tinclude('bing_search_initial.php');\n\n ////////////////////////////////////////////\n\t/////\tENTIREWEB INITIAL SEARCH DATA \n\t////////////////////////////////////////////\n \n\tinclude('entireweb_search_initial.php');\n\n\t////////////////////////////////////////////\n\t/////\tBLEKKO INITIAL SEARCH REQUEST \n\t//////////////////////////////////////////// \n\t\n\tinclude('blekko_search_initial.php');\n\t\n\t////////////////////////////////////////////\n\t/////\tCURL MULTI-SESSION DATA \n\t////////////////////////////////////////////\n\n\tinclude('curl.php');\n}", "function ciniki_ags_unpaidSalesPDF($ciniki) {\n //\n // Find all the required and optional arguments\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'start_date'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'date', 'name'=>'Start'),\n 'end_date'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'date', 'name'=>'End'),\n 'exhibit_id'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Exhibit'),\n 'exhibitor_id'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Exhibit'),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $args = $rc['args'];\n \n // \n // Check access to tnid as owner, or sys admin. \n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'ags', 'private', 'checkAccess');\n $rc = ciniki_ags_checkAccess($ciniki, $args['tnid'], 'ciniki.ags.unpaidSalesPDF');\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n //\n // Load the tenant settings\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbDetailsQueryDash');\n $rc = ciniki_core_dbDetailsQueryDash($ciniki, 'ciniki_ags_settings', 'tnid', $args['tnid'], 'ciniki.ags', 'settings', '');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.ags.225', 'msg'=>'Unable to load settings', 'err'=>$rc['err']));\n }\n $settings = isset($rc['settings']) ? $rc['settings'] : array();\n \n //\n // Load the tenant intl settings\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $args['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');\n $date_format = ciniki_users_dateFormat($ciniki, 'php');\n $mysql_date_format = ciniki_users_dateFormat($ciniki, 'mysql');\n\n if( (!isset($args['exhibit_id']) || $args['exhibit_id'] == 0 || $args['exhibit_id'] == '')\n && (!isset($args['exhibitor_id']) || $args['exhibitor_id'] == 0 || $args['exhibitor_id'] == '') \n && (!isset($args['start_date']) || $args['start_date'] == '') \n ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.ags.140', 'msg'=>'An exhibit or exhibitor must be specified'));\n }\n\n //\n // Load tenant details\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'tenantDetails');\n $rc = ciniki_tenants_tenantDetails($ciniki, $args['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['details']) && is_array($rc['details']) ) {\n $tenant_details = $rc['details'];\n } else {\n $tenant_details = array();\n }\n\n //\n // Get the exhibit name\n //\n $report_title = 'Unpaid Sales';\n if( isset($args['exhibit_id']) && $args['exhibit_id'] > 0 ) {\n $strsql = \"SELECT name \"\n . \"FROM ciniki_ags_exhibits \"\n . \"WHERE id = '\" . ciniki_core_dbQuote($ciniki, $args['exhibit_id']) . \"' \"\n . \"AND tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.ags', 'exhibit');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.ags.142', 'msg'=>'Unable to load exhibit', 'err'=>$rc['err']));\n }\n if( !isset($rc['exhibit']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.ags.143', 'msg'=>'Unable to find requested exhibit'));\n }\n $exhibit = $rc['exhibit'];\n $report_title = $exhibit['name'] . ' - Unpaid Sales';\n }\n if( isset($args['start_date']) && $args['start_date'] != '' ) {\n $dt = new DateTime($args['start_date'], new DateTimezone($intl_timezone));\n if( !isset($args['end_date']) ) {\n $edt = new DateTime('now', new DateTimezone($intl_timezone));\n $args['end_date'] = $dt->format('Y-m-d');\n } else {\n $edt = new DateTime($args['end_date'], new DateTimezone($intl_timezone));\n }\n $report_title .= ' from ' . $dt->format($date_format) . ' to ' . $edt->format($date_format);\n }\n\n $strsql = \"SELECT sales.id AS sales_id, \"\n . \"exhibitors.display_name, \"\n . \"items.exhibitor_id, \"\n . \"items.code, \"\n . \"items.exhibitor_code, \"\n . \"items.name, \"\n . \"sales.quantity, \"\n . \"DATE_FORMAT(sales.sell_date, '%b %e, %Y') AS sell_date, \"\n . \"sales.tenant_amount, \"\n . \"sales.exhibitor_amount, \"\n . \"sales.total_amount, \"\n . \"IFNULL(invoices.billing_name, '') AS billing_name \"\n . \"FROM ciniki_ags_item_sales AS sales \"\n . \"INNER JOIN ciniki_ags_items AS items ON (\"\n . \"sales.item_id = items.id \"\n . (isset($args['exhibitor_id']) && $args['exhibitor_id'] > 0 ? \"AND items.exhibitor_id = '\" . ciniki_core_dbQuote($ciniki, $args['exhibitor_id']) . \"' \" : '')\n . \"AND items.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \"\n . \"INNER JOIN ciniki_ags_exhibitors AS exhibitors ON (\"\n . \"items.exhibitor_id = exhibitors.id \"\n . \"AND exhibitors.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \"\n . \"LEFT JOIN ciniki_sapos_invoices AS invoices ON (\"\n . \"sales.invoice_id = invoices.id \"\n . \"AND invoices.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \"\n . \"WHERE sales.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND (sales.flags&0x02) = 0 \";\n if( isset($args['exhibit_id']) && $args['exhibit_id'] > 0 ) {\n $strsql .= \"AND sales.exhibit_id = '\" . ciniki_core_dbQuote($ciniki, $args['exhibit_id']) . \"' \";\n }\n if( isset($args['start_date']) && $args['start_date'] != '' ) {\n $strsql .= \"AND sales.sell_date >= '\" . ciniki_core_dbQuote($ciniki, $args['start_date']) . \"' \";\n }\n if( isset($args['end_date']) && $args['end_date'] != '' ) {\n $strsql .= \"AND sales.sell_date <= '\" . ciniki_core_dbQuote($ciniki, $args['end_date']) . \"' \";\n }\n $strsql .= \"ORDER by exhibitors.display_name, items.code, items.name \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryArrayTree');\n $rc = ciniki_core_dbHashQueryArrayTree($ciniki, $strsql, 'ciniki.ags', array(\n array('container'=>'exhibitors', 'fname'=>'exhibitor_id', \n 'fields'=>array('display_name')),\n array('container'=>'items', 'fname'=>'sales_id', \n 'fields'=>array('code', 'exhibitor_code', 'name', 'quantity', 'sell_date', 'tenant_amount', 'exhibitor_amount', 'total_amount', 'billing_name')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.ags.141', 'msg'=>'Unable to load exhibitors', 'err'=>$rc['err']));\n }\n if( isset($rc['exhibitors']) ) {\n $exhibitors = $rc['exhibitors'];\n } else {\n $exhibitors = array();\n }\n \n $today = new DateTime('now', new DateTimezone($intl_timezone));\n\n if( isset($settings['sales-pdf-customer-name']) && $settings['sales-pdf-customer-name'] == 'yes' ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'ags', 'templates', 'salesReportWithCustomer');\n $rc = ciniki_ags_templates_salesReportWithCustomer($ciniki, $args['tnid'], array(\n 'title'=>$report_title,\n 'author'=>$tenant_details['name'],\n 'footer'=>$today->format('M d, Y'),\n 'exhibitors'=>$exhibitors,\n ));\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n }\n $pdf = $rc['pdf'];\n } else {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'ags', 'templates', 'salesReport');\n $rc = ciniki_ags_templates_salesReport($ciniki, $args['tnid'], array(\n 'title'=>$report_title,\n 'author'=>$tenant_details['name'],\n 'footer'=>$today->format('M d, Y'),\n 'exhibitors'=>$exhibitors,\n ));\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n }\n $pdf = $rc['pdf'];\n }\n\n //\n // Output the pdf\n //\n $filename = $report_title . ' - ' . $today->format('M d, Y');\n $filename = preg_replace('/[^A-Za-z0-9\\-]/', '', $filename) . '.pdf';\n $pdf->Output($filename, 'D');\n\n return array('stat'=>'exit');\n}", "protected function parseV1Content()\n {\n $pages = count(pq('.pagDiv .pagPage'));\n $items = pq('tbody.itemWrapper');\n foreach ($items as $item) {\n $check_if_regular = pq($item)->find('span.commentBlock nobr');\n\n if ($check_if_regular != '') {\n//$array[$i]['array'] = pq($item)->html();\n $array[$i]['num'] = $i + 1;\n $array[$i]['name'] = text_prepare(pq($item)->find('span.productTitle strong a')->html());\n $array[$i]['link'] = pq($item)->find('span.productTitle a')->attr('href');\n $array[$i]['old-price'] = pq($item)->find('span.strikeprice')->html();\n $array[$i]['new-price'] = text_prepare(pq($item)->find('span[id^=\"itemPrice_\"]')->html());\n $array[$i]['date-added'] = text_prepare(str_replace('Added', '', pq($item)->find('span.commentBlock nobr')->html()));\n $array[$i]['priority'] = pq($item)->find('span.priorityValueText')->html();\n $array[$i]['rating'] = pq($item)->find('span.asinReviewsSummary a span span')->html();\n $array[$i]['total-ratings'] = pq($item)->find('span.crAvgStars a:nth-child(2)')->html();\n $array[$i]['comment'] = text_prepare(pq($item)->find('span.commentValueText')->html());\n $array[$i]['picture'] = pq($item)->find('td.productImage a img')->attr('src');\n $array[$i]['page'] = $page_num;\n $array[$i]['ASIN'] = get_ASIN($array[$i]['link']);\n $array[$i]['large-ssl-image'] = get_large_ssl_image($array[$i]['picture']);\n $array[$i]['affiliate-url'] = get_affiliate_link($array[$i]['ASIN']);\n\n $i++;\n }\n }\n }", "public function getAllReviews($response, $hasta, $total,$shop) {\n echo \"<div style='color:blue;'>Actualizando \" . $hasta . \" de \" . $total . \" articulos.</div><br><br>\";\n $contador = 1;\n foreach ($response as $review) {\n $porcentaje = ($contador * 100) / count($response);\n echo \"<div style='color: blue'>\" . $contador . \" de \" . count($response) . \" - \" . $porcentaje. \"% Producto: \" . $review[\"post_title\"] . \"</div><br>\";\n // Obtiene los metadatos del producto\n $metadata = $this->getMetaData($review[\"ID\"]);\n\n // Imprime el asin\n $asin = $this->getAsin($metadata);\n echo \"<strong>Asin: </strong>\" . $asin . \"<br>\";\n\n // Nombres de las columnas de las diferentes tiendas\n $links = $this->productsLink();\n //foreach ($links as $link) {\n $link = $shop;\n foreach ($metadata as $mdata) {\n // Valida que exista el precio de esa tienda en la BD\n if (isset($mdata['meta_key']) && $mdata['meta_key'] == $link) {\n // Si tiene una url del producto en las tiendas...\n if (isset($mdata['meta_value']) && !empty($mdata['meta_value'])) {\n // Obtiene el precio, haciendo scrapping\n if ($link == 'amazon_affiliate_link' || $link == 'amazon_pl') {\n $price = $this->linkToScrap($link, $asin);\n } else {\n $price = $this->linkToScrap($link, $mdata['meta_value']);\n }\n // Valida si el precio del producto cambio\n // Imprime el link\n echo $mdata['meta_value'];\n // Imprime el precio\n echo \"<br><strong>Precio: </strong>\";\n echo (isset($price) && is_numeric($price) ? $price : \"<div style='color: red'>El producto ya no se encuentra disponible</div>\");\n\n if ($price != null && $price != \"\" && !empty($price)) {\n $hasChanged = $this->priceHasChanged($metadata, $link, $price);\n if ($hasChanged[\"change\"]) {\n if ($hasChanged[\"action\"] == 'update') {\n $oldPrice = $hasChanged['oldPrice'];\n echo \" El precio cambio, precio original: \" . $oldPrice;\n $this->updatePrice($link, $price, $mdata['post_id']);\n } else {\n echo \" El precio no existe, se creo en la base de datos\";\n $this->createPrice($link, $price, $mdata['post_id']);\n }\n }\n }\n echo \"<br>\";\n break;\n }\n }\n }\n //}\n echo \"<br><br>\";\n\n // ACtualiza el mejor precio y mejor tienda para del producto\n $this->setBestPrice($review[\"ID\"]);\n\n $contador += 1;\n }\n\n return $response;\n }", "function parse(){\n\t\t// Pull the next non parsed article from the database, and look for dates in it\n\t\t// Create a DB connection\n\t\tglobal $sess;\n\t\t$db = $sess->db();\n\t\t\n\t\tif(!isset($_SESSION['month'])) $_SESSION['month'] = 1;\n\t\tif(!isset($_SESSION['day'])) $_SESSION['day'] = 1;\n\t\t\n\t\t$this->month = $_SESSION['month'];\n\t\t$this->day = $_SESSION['day'];\n\t\t\n\t\t$url = ucfirst(date(\"F\", mktime(0, 0, 0, $this->month, 10))).'_'.$this->day;\n\t\t\n\t\techo '<h1>'.$url.'</h1>';\n\t\t\n\t\t//* ONLINE\n\t\t// Pull article from Wikipedia\n\t\t$data = json_decode($this->wiki->request($url,'parse','text'),true);\n\t\t\n\t\t$toParse = $data['parse']['text']['*'];\n\t\t\n\t\t//*/\n\t\t\n\t\t/* OFFLINE */\n\t\t//$toParse = file_get_contents('data/march.txt');\n\t\t\n\t\t// Time counter\n\t\t$this->times['download'] = $sess->execTime();\n\t\t\n\t\t// Parser\n\t\t$events = array();\n\t\tpreg_match_all('@\\<li\\>(.+)\\</li\\>@',$toParse,$events);\n\t\t\n\t\t$events = $events[1];\n\t\t\n\t\t$total = count($events);\n\t\tfor($i=0;$i<$total;$i++){\n\t\t\t$p = explode(' – ',$events[$i],2);\n\t\t\tif(count($p)<2) continue;\n\t\t\t\n\t\t\t$year = strip_tags($p[0]);\n\t\t\t$event = strip_tags($p[1]);\n\t\t\t\n\t\t\t$links = array();\n\t\t\tpreg_match_all('@\\<a\\shref=\"([\\w/_\\.-]*(\\?\\S+)?)\"@siU',$p[1],$links, PREG_SET_ORDER);\n\t\t\t\n\t\t\t$found = count($links);\n\t\t\t$tags = array();\t\t\t\n\t\t\tfor($a=0;$a<$found;$a++){ $tags[] = substr($links[$a][1],6); }\n\t\t\t\n\t\t\t// Default type\n\t\t\t$type = 0;\n\t\t\t\n\t\t\t// Entity\n\t\t\t$entity = '';\n\t\t\tif(isset($tags[0])) $entity = $tags[0];\n\t\t\t\n\t\t\t// Detect born/dead dates\n\t\t\t$years = array();\n\t\t\tif(preg_match('@\\(([b|d])\\.\\s(-)?([0-9]{1,4})\\)@',$event,$years)){\n\t\t\t\t// Name of person\n\t\t\t\t$n = explode(',',$event,2);\n\t\t\t\tif(strlen($n[0])>0) $entity = $n[0];\n\t\t\t\t\n\t\t\t\t$type = 3;\n\t\t\t\tif($years[1]=='b') $type = 4;\n\t\t\t}\n\t\t\t/*\n\t\t\t * 0\t->\tNormal event\t(Not in any of the categories below)\n\t\t\t * \t1\t->\tStart of event\t(i.e. Start of a war)\n\t\t\t * \t2\t->\tEnd of event\t(It will refer to the inmediate before)\n\t\t\t * \t3\t->\tStart of entity (birth)\n\t\t\t * \t4\t->\tEnd of entity\t(death)\n\t\t\t */\n\t\t\t\n\t\t\t// Store in local\n\t\t\t$this->add($event,$this->format($year,$this->month,$this->day),$type,$tags,$entity);\n\t\t}\n\t\t\n\t\t//var_dump($events);\n\t\t\n\t\t$this->times['process'] = $sess->execTime() - $this->times['download'];\n\t\t\n\t\t$this->times['import'] = $sess->execTime();\n\t\t\n\t\techo '<hr /><h3>Begin import</h3>';\n\t\t$this->import();\n\t}", "function recieve_data($datas){\n\t$reportType = \"SUPPLIES INVENTORY\";\n\t$rc = new MonthlyReport();\n\t$rc->hdr($reportType)->details()->data_box()->output();\n}", "public function getReport() {}", "public function getReport() {}", "public function main()\n {\n $records = array();\n\n $this->pObj->arrReport[] = '\n <h2>\n ' . $this->pObj->pi_getLL('ts_create_header') . '\n </h2>';\n\n $records = $this->page();\n $this->sqlInsert($records);\n }", "public function scrapeAction($params = []) {\n\n $url = \"http://ecouncil.lanecove.nsw.gov.au/trim/advertisedDAs.aspx\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, !$this->config->dev);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, !$this->config->dev);\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n curl_setopt($ch, CURLOPT_COOKIEFILE, $this->config->directories->cookiesDir . 'cookies.txt');\n curl_setopt($ch, CURLOPT_COOKIEJAR, $this->config->directories->cookiesDir . 'cookies.txt');\n curl_setopt($ch, CURLOPT_USERAGENT, $this->config->useragent);\n\n $output = curl_exec($ch);\n $errno = curl_errno($ch);\n $errmsg = curl_error($ch);\n curl_close($ch);\n\n if ($errno !== 0) {\n $this->logger->error(\"cURL error: {errmsg} ({errno})\", [\"errmsg\" => $errmsg, \"errno\" => $errno]);\n return false;\n }\n\n $html = \\Sunra\\PhpSimple\\HtmlDomParser::str_get_html($output);\n if (!$html) {\n $this->logger->error(\"Could not parse HTML\");\n return false;\n }\n\n $resultElements = $html->find(\"table\");\n foreach ($resultElements as $resultElement) {\n\n // Some $headerElements may head multiple tables, so the 2nd table's previous sibling will be\n // another table, in that case we check until the previous sibling is either a h4, or something other \n // than a table. If it's a h4, great, we found the header, if it's not a table, this isn't an actual resultElement.\n $headerElement = $resultElement->prev_sibling();\n while ($headerElement->tag !== \"h4\") {\n\n if ($headerElement->tag !== \"table\") {\n continue 2;\n }\n\n $headerElement = $headerElement->prev_sibling();\n }\n\n $daHtml = \\Sunra\\PhpSimple\\HtmlDomParser::str_get_html($resultElement->innertext());\n if ($daHtml === false) {\n $this->logger->error(\"Could not parse development application HTML\");\n continue;\n }\n\n $anchorElements = $daHtml->find(\"a\");\n foreach ($anchorElements as $anchorElement) {\n\n $regexPattern = '/ecouncil\\.lanecove\\.nsw\\.gov\\.au\\/trim\\/DAInformation\\.asp\\?DANum=(.+)/';\n if (preg_match($regexPattern, $anchorElement->href, $matches) === 1) {\n\n $daCouncilReference = $this->cleanString($anchorElement->innertext());\n $da = Das::exists($this->getCouncil()->getId(), $daCouncilReference) ?: new Das();\n }\n }\n\n $daCouncilUrl = $this->cleanString($anchorElement->href);\n $daCouncilReferenceAlt = $this->cleanString($matches[1]);\n\n $suburb = $this->cleanString(strip_tags($headerElement->innertext()));\n\n $da->setCouncilId($this->getCouncil()->getId());\n $da->setCouncilUrl($daCouncilUrl);\n $da->setCouncilReference($daCouncilReference);\n $da->setCouncilReferenceAlt($daCouncilReferenceAlt);\n\n $this->logger->info(\"\");\n if ($this->saveDa($da) === true) {\n $this->scrapeMeta($daHtml, $da, $suburb);\n }\n }\n\n $this->getCouncil()->setLastScrape(new \\DateTime());\n $this->getCouncil()->save();\n $this->logger->info(\"Done.\");\n\n }", "public function harvest() {\n\t\t// CURLOPT_FOLLOWLOCATION => true,\n\t\t// CURLOPT_RETURNTRANSFER => true,\n\t\t// CURLOPT_SSL_VERIFYHOST => false,\n\t\t// CURLOPT_TIMEOUT => 60,\n\t\t// CURLOPT_HTTPHEADER => array (\n\t\t// \"User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"\n\t\t// ),\n\t\t// CURLOPT_PROXY => \"http://172.16.2.30:8080\"\n\t\t// );\n\t\t// $curl = curl_init ( $this->base_url . \"/community-list\" );\n\t\t// curl_setopt_array ( $curl, $curl_options );\n\t\t// $response = curl_exec ( $curl );\n\t\t// curl_close ( $curl );\n\t\t// file_put_contents ( \"a.html\", $response );\n\t\t// file_put_contents ( \"b.html\", $response );\n\t\t// exit ( 0 );\n\t\t$response = file_get_contents ( \"a.html\" );\n\t\t// $response = file_get_contents ( \"b.html\" );\n\t\t\n\t\tlibxml_use_internal_errors ( true );\n\t\t$doc = new DOMDocument ();\n\t\t$doc->loadHTML ( $response, LIBXML_BIGLINES | LIBXML_NOWARNING | LIBXML_ERR_NONE );\n\t\tlibxml_clear_errors ();\n\t\t$xpath = new DOMXPath ( $doc );\n\t\t\n\t\t$nodes = $xpath->query ( \"//div[@id='aspect_artifactbrowser_CommunityBrowser_div_comunity-browser']\" );\n\t\t$this->structure = $this->get_structure ( $nodes [0], $xpath );\n\t\t\n\t\tfile_put_contents ( $this->base_folder . \"/structure.json\", json_encode ( $this->structure, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) );\n\t\t\n\t\t$this->crawl_items ( $this->structure );\n\t}", "public function index()\n {\n $lastweek = Carbon::today()->startOfWeek()->subDays(7)->format('m/d/Y');\n $counttracker = Carbon::today()->subDays(7);\n $thismonth = Carbon::today()->startOfMonth();\n $user = \\Auth::user();\n $top5 = \\DB::table('items_demand')\n ->join('items','items_demand.item_id','=','items.id')\n ->join('uoms','items.uom_id','=','uoms.id')\n ->select('items_demand.*','items.name as name','uoms.unit as uom')\n ->where([\n ['items_demand.store_id','=',\\Auth::user()->store_id],\n ['items_demand.week','=',$lastweek]\n ])\n ->orderBy('items_demand.demand','desc')\n ->take(5)\n ->get();\n\n $PTD = \\DB::table('items_spend')\n ->where([\n ['store_id','=',\\Auth::user()->store_id],\n ['week','>=',$thismonth],\n ])\n ->sum('spend');\n\n $allcounts = \\DB::table('items_inventorycounts')\n ->join('inventorycounts','items_inventorycounts.inventorycount_id','=','inventorycounts.id')\n ->where([\n ['inventorycounts.store_id','=',\\Auth::user()->store_id],\n ['inventorycounts.editable','=',false]\n ])\n ->select('items_inventorycounts.*')\n ->orderBy('items_inventorycounts.updated_at','desc')\n ->get();\n\n $items = \\App\\Item::all();\n\n $orders = \\DB::table('orders')\n ->join('suppliers','orders.supplier_id','=','suppliers.id')\n ->where([\n ['orders.received','=',false],\n ['orders.editable','=',false],\n ['orders.store_id','=',\\Auth::user()->store_id]\n ])\n ->select('orders.id','orders.supplier_id','orders.expected_delivery_date','suppliers.name as supplier')\n ->get();\n\n $recentcounts = [];\n $notcounted = [];\n\n foreach($allcounts as $count) {\n if(!array_key_exists($count->item_id,$recentcounts)) {\n $recentcounts[$count->item_id] = $count->updated_at;\n } \n }\n //error_log('Recent Counts: '. print_r($recentcounts,true));\n\n foreach($items as $item){\n if(!array_key_exists($item->id,$recentcounts)) {\n $notcounted[$item->name] = 'None';\n } else {\n if($recentcounts[$item->id]>=$counttracker) {\n\n } else {\n $notcounted[$item->name] = $recentcounts[$item->id];\n }\n }\n }\n\n return view('home',compact('user','top5','PTD','notcounted','orders'));\n }", "function triangleMediaGetSalesReport($credentials,$url,$dateStart,$dateEnd,$arrVariables) {\n\t\tglobal $reportSuccess;\n\t\tglobal $reportResult;\n\t\tglobal $arrResult;\n\t\t\n\t\t// Extract credentials\n\t\t$arrCredentials = explode('||',$credentials);\n\t\t$arrSplit = explode('::',$arrCredentials[2]);\n\t\t$username = $arrSplit[1];\n\t\t$arrSplit = explode('::',$arrCredentials[3]);\n\t\t$password = $arrSplit[1];\n\t\t// Build transaction\n\t\t$post_url = $url;\n\t\t// Build xml to post\n\t\t$post_xml = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\".\n\t\t\"<soap:Envelope xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:soap=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\">\\n\".\n\t\t\t\"<soap:Body>\\n\".\n\t\t\t\t\"<GetAgentSalesDetail xmlns=\\\"http://trianglecrm.com/\\\">\\n\".\n\t\t\t\t\t\"<username>\".$username.\"</username>\\n\".\n\t\t\t\t\t\"<password>\".$password.\"</password>\\n\".\n\t\t\t\t\t\"<startDate>\".$dateStart.\"</startDate>\\n\".\n\t\t\t\t\t\"<endDate>\".$dateEnd.\"</endDate>\\n\".\n\t\t\t\t\"</GetAgentSalesDetail>\\n\".\n\t\t\t\"</soap:Body>\\n\".\n\t\t\"</soap:Envelope>\";\n\t\t// Initialize curl and send\n\t\t$request = curl_init();\n\t\tcurl_setopt($request, CURLOPT_URL, $post_url);\n\t\tcurl_setopt($request, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($request, CURLOPT_HTTPHEADER, Array('Content-type: text/xml;charset=\"utf-8\"','Accept: text/xml','Cache-Control: no-cache','Pragma: no-cache','SOAPAction: \"http://trianglecrm.com/GetAgentSalesDetail\"','Content-length: '.strlen($post_xml)));\n\t\tcurl_setopt($request, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($request, CURLOPT_POSTFIELDS, $post_xml);\n\t\tcurl_setopt($request, CURLOPT_POST, 1);\n\t\tcurl_setopt($request, CURLOPT_SSL_VERIFYPEER, 0);\n\t\t$post_response = curl_exec($request);\n\t\tcurl_close ($request);\n\t\t//echo $post_response;\n\t\t// Response\n\t\tif (strstr($post_response,'<State>')) {\n\t\t\t$strStart = strpos($post_response,'<State>')+strlen('<State>');\n\t\t\t$strEnd = strpos($post_response,'</State>');\n\t\t\t$postStatus = substr($post_response,$strStart,($strEnd-$strStart));\n\t\t}\n\t\t// Return response codes\n\t\tif ($postStatus === 'Success') {\n\t\t\t$reportSuccess = true;\n\t\t\t// Get report array\n\t\t\t$str1 = '<ReturnValue>';\n\t\t\t$str2 = '</ReturnValue>';\n\t\t\t$strXML = \"<salesReport>\\n\".substr($post_response,strpos($post_response,$str1)+strlen($str1),strrpos($post_response,$str2)-(strpos($post_response,$str1)+strlen($str1))).\"\\n</salesReport>\";\n\t\t\t// Load xml string into array\n\t\t\t$xmlParser = xml_parser_create();\n\t\t\txml_parse_into_struct($xmlParser,$strXML,$arrVals,$arrIndex);\n\t\t\txml_parser_free($xmlParser);\n\t\t\t$arrRaw = simplexml_load_string($strXML);\n\t\t\t// Read results into standardized array\n\t\t\t//OrderID\n\t\t\t//OrderAgent\n\t\t\t//OrderCustomer (customer id, first name, last name, address, address2, city, state, zip, country, phone, email)\n\t\t\t//OrderDate\n\t\t\t//OrderTotal\n\t\t\t//OrderTax\n\t\t\t//OrderShipping\n\t\t\t//OrderDetails (product skus, quantity, price per unit)\n\t\t\t//OrderHasParent (whether it’s related to another order, then that order’s ID)\n\t\t\t//OrderIsUpsell (whether it’s an upsell for another order)\n\t\t\t//OrderIsSubscription (whether it’s a recurring subscription)\n\t\t\t//OrderSubscriptionBillingCycle (number of days between each billing)\n\t\t\tforeach ($arrRaw as $agent) {\n\t\t\t\t// Agent details\n\t\t\t\t//$agent['AgentName'];\n\t\t\t\t$OrderAgent = $agent['AgentName'];\n\t\t\t\t// Customer details\n\t\t\t\t$arrCustomer = array();\n\t\t\t\tforeach ($agent->Customers->CustomerSaleView as $customer) {\n\t\t\t\t\t$arrCustomer['CustomerID'] = (string)$customer->Customer->BillingID;\n\t\t\t\t\t$arrCustomer['BillingNameFirst'] = (string)ucwords(strtolower($customer->Customer->FirstName));\n\t\t\t\t\t$arrCustomer['BillingNameLast'] = (string)ucwords(strtolower($customer->Customer->LastName));\n\t\t\t\t\t$arrCustomer['BillingAddress'] = (string)ucwords($customer->Customer->Address1);\n\t\t\t\t\t$arrCustomer['BillingAddress2'] = (string)ucwords($customer->Customer->Address2);\n\t\t\t\t\t$arrCustomer['BillingCity'] = (string)ucwords(strtolower($customer->Customer->City));\n\t\t\t\t\t$arrCustomer['BillingState'] = (string)strtoupper($customer->Customer->State);\n\t\t\t\t\t$arrCustomer['BillingZip'] = (string)$customer->Customer->Zip;\n\t\t\t\t\t$arrCustomer['BillingCountry'] = ($customer->Customer->Country != '') ? (string)strtoupper($customer->Customer->Country) : 'US';\n\t\t\t\t\t$arrCustomer['ShippingNameFirst'] = (string)ucwords(strtolower($customer->Customer->FirstName));\n\t\t\t\t\t$arrCustomer['ShippingNameLast'] = (string)ucwords(strtolower($customer->Customer->LastName));\n\t\t\t\t\t$arrCustomer['ShippingAddress'] = (string)ucwords($customer->Customer->Address1);\n\t\t\t\t\t$arrCustomer['ShippingAddress2'] = (string)ucwords($customer->Customer->Address2);\n\t\t\t\t\t$arrCustomer['ShippingCity'] = (string)ucwords(strtolower($customer->Customer->City));\n\t\t\t\t\t$arrCustomer['ShippingState'] = (string)strtoupper($customer->Customer->State);\n\t\t\t\t\t$arrCustomer['ShippingZip'] = (string)$customer->Customer->Zip;\n\t\t\t\t\t$arrCustomer['ShippingCountry'] = ($customer->Customer->Country != '') ? (string)strtoupper($customer->Customer->Country) : 'US';\n\t\t\t\t\t$arrCustomer['Phone'] = (string)$customer->Customer->Phone;\n\t\t\t\t\t$arrCustomer['Email'] = (string)strtolower($customer->Customer->Email);\n\t\t\t\t\t//print_r($arrCustomer).'<p>';\n\t\t\t\t\t// Customer sales (internal)\n\t\t\t\t\t$orderID = false;\n\t\t\t\t\tforeach ($customer->Sales as $sale) {\n\t\t\t\t\t\tif ($sale->SaleInfo->SaleID != '') {\n\t\t\t\t\t\t\t$orderID = (string)$sale->SaleInfo->SaleID;\n\t\t\t\t\t\t\t$arrSale = array();\n\t\t\t\t\t\t\t$arrSale['OrderID'] = $orderID;\n\t\t\t\t\t\t\t$arrSale['OrderAgent'] = (string)$OrderAgent;\n\t\t\t\t\t\t\t$arrSale['OrderCustomer'] = $arrCustomer;\n\t\t\t\t\t\t\t//$sale->SaleInfo->BillingID;\n\t\t\t\t\t\t\t$arrSale['OrderDate'] = date(\"Y-m-d H:i:s\",strtotime((string)$sale->SaleInfo->SaleDate));\n\t\t\t\t\t\t\t//$arrSale['OrderDate'] = (string)str_replace('T',' ',$sale->SaleInfo->SaleDate);\n\t\t\t\t\t\t\t$arrSale['OrderTotal'] = (string)$sale->SaleInfo->PricePaid;\n\t\t\t\t\t\t\t$arrSale['OrderTax'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderShipping'] = '';\n\t\t\t\t\t\t\t// Order product details\n\t\t\t\t\t\t\t$arrProducts = array();\n\t\t\t\t\t\t\tforeach ($sale->SaleInfo->ProductList as $products) {\n\t\t\t\t\t\t\t\t$arrProducts[] = array('SKU'=>(string)$products->SaleProduct->SKU,'Quantity'=>(string)$products->SaleProduct->Quantity,'Description'=>'','Price'=>'');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$arrSale['OrderDetails'] = $arrProducts;\n\t\t\t\t\t\t\tunset($arrProducts);\t\t\t\t\t\t\n\t\t\t\t\t\t\t$arrSale['OrderHasParent'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderIsUpsell'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderIsSubscription'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderSubscriptionBillingCycle'] = '';\n\t\t\t\t\t\t\t$arrResult[] = $arrSale;\n\t\t\t\t\t\t\t//print_r($arrSale);\n\t\t\t\t\t\t\tunset($arrSale);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Customer sales (external)\n\t\t\t\t\tforeach ($customer->ExternalSales->DirectActionSaleInfo as $sale) {\n\t\t\t\t\t\tif ($sale->DirectActionClubRequestID != '') {\n\t\t\t\t\t\t\t$arrSale = array();\n\t\t\t\t\t\t\t$arrSale['OrderID'] = (string)$sale->DirectActionClubRequestID;\n\t\t\t\t\t\t\t$arrSale['OrderAgent'] = (string)$OrderAgent;\n\t\t\t\t\t\t\t$arrSale['OrderCustomer'] = $arrCustomer;\n\t\t\t\t\t\t\t//$sale->SaleInfo->BillingID;\n\t\t\t\t\t\t\t$arrSale['OrderDate'] = date(\"Y-m-d H:i:s\",strtotime((string)$sale->SaleDate));\n\t\t\t\t\t\t\t//$arrSale['OrderDate'] = (string)str_replace('T',' ',$sale->SaleDate);\n\t\t\t\t\t\t\t$arrSale['OrderTotal'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderTax'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderShipping'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderDetails'] = array(array('SKU'=>(string)$sale->UpsellID,'Quantity'=>'1','Description'=>'','Price'=>''));\n\t\t\t\t\t\t\t$arrSale['OrderHasParent'] = $orderID;\n\t\t\t\t\t\t\t$arrSale['OrderIsUpsell'] = '1';\n\t\t\t\t\t\t\t$arrSale['OrderIsSubscription'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderSubscriptionBillingCycle'] = '';\n\t\t\t\t\t\t\t$arrResult[] = $arrSale;\n\t\t\t\t\t\t\t//print_r($arrSale);\n\t\t\t\t\t\t\tunset($arrSale);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Customer sales (subscriptions)\n\t\t\t\t\tforeach ($customer->Subscriptions as $subscription) {\n\t\t\t\t\t\tif ($subscription->SubscriptionInfo->PlanID != '') {\n\t\t\t\t\t\t\t$arrSale = array();\n\t\t\t\t\t\t\t$arrSale['OrderID'] = (string)$subscription->SubscriptionInfo->PlanID;\n\t\t\t\t\t\t\t$arrSale['OrderAgent'] = (string)$OrderAgent;\n\t\t\t\t\t\t\t$arrSale['OrderCustomer'] = $arrCustomer;\n\t\t\t\t\t\t\t//$sale->SaleInfo->BillingID;\n\t\t\t\t\t\t\t$arrSale['OrderDate'] = date(\"Y-m-d H:i:s\",strtotime((string)$subscription->SubscriptionInfo->CreateDate));\n\t\t\t\t\t\t\t//$arrSale['OrderDate'] = (string)str_replace('T',' ',$subscription->SubscriptionInfo->CreateDate);\n\t\t\t\t\t\t\t$arrSale['OrderTotal'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderTax'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderShipping'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderDetails'] = array(array('SKU'=>(string)$subscription->SubscriptionInfo->PlanID,'Quantity'=>'1','Description'=>'','Price'=>''));\n\t\t\t\t\t\t\t$arrSale['OrderHasParent'] = (string)$subscription->SubscriptionInfo->InitialSaleID;\n\t\t\t\t\t\t\t$arrSale['OrderIsUpsell'] = '';\n\t\t\t\t\t\t\t$arrSale['OrderIsSubscription'] = '1';\n\t\t\t\t\t\t\t// Calculate billing cycle data\n\t\t\t\t\t\t\tif ($subscription->SubscriptionInfo->NextBillDate != '') {\n\t\t\t\t\t\t\t\t$date_start = strtotime(date(date(\"Y-m-d H:i:s\",strtotime((string)$subscription->SubscriptionInfo->CreateDate))));\n\t\t\t\t\t\t\t\t$date_end = strtotime(date(date(\"Y-m-d H:i:s\",strtotime((string)$subscription->SubscriptionInfo->NextBillDate))));\n\t\t\t\t\t\t\t\t$arrSale['OrderSubscriptionBillingCycle'] = (string)round(($date_end-$date_start)/(60*60*24));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t$arrSale['OrderSubscriptionBillingCycle'] = '';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$arrResult[] = $arrSale;\n\t\t\t\t\t\t\t//print_r($arrSale);\n\t\t\t\t\t\t\tunset($arrSale);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Clear variables\n\t\t\t\t\t$orderID = false;\n\t\t\t\t\tunset($arrCustomer);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$reportSuccess = false;\n\t\t\t$reportResult = $postStatus;\n\t\t\t$arrResult = false;\n\t\t}\n\t\t//print_r($arrResult);\n\t\t//die();\n\t\t\t\t\n\t\treturn $reportSuccess;\n\t\treturn $reportResult;\n\t\treturn $arrResult;\n\t}", "public function run()\n {\n $names = [\n 'ПЫЛЕСОС SAMSUNG VC18M31A0HP/EV',\n 'ХОЛОДИЛЬНИК LG GA-B379SLUL',\n 'СТРУЙНЫЙ МФУ EPSON L3101',\n 'КОЛОНКИ SVEN 312',\n 'ФИТНЕС БРАСЛЕТ XIAOMI MI SMART BAND 5',\n 'НАБОР ПОСУДЫ TEFAL COMFORT MAX NEW C973SB34 (11 ПРЕДМЕТОВ)',\n 'СТОЛОВЫЙ НАБОР LUMINARC ОКЕАН ЭКЛИПС 45 ПР. (L5110)',\n 'СМАРТФОН ОРРО RENO5 STARRY BLACK',\n 'СМАРТФОН APPLE IPHONE 12 256GB BLACK',\n 'СМАРТФОН APPLE IPHONE 12 PRO MAX 512GB GRAPHITE',\n 'СМАРТФОН VIVO X60 PRO BLUE',\n 'НОУТБУК APPLE MACBOOK PRO 16\" I9 2.3/16/1TB SSD SPACE GREY (MVVK2)',\n 'НОУТБУК ASUS ROG ZEPHYRUS GX701L (90NR03Q1-M02600)',\n 'КОМПЬЮТЕР ACER PREDATOR PO9-920 DG.E24MC.001',\n 'НАСТОЛЬНЫЙ КОМПЬЮТЕР APPLE MAC MINI I385UX MXNG2'];\n\n $prices=[51990,\n 199990,\n 70990,\n 3990,\n 17990,\n 45990,\n 24990,\n 219990,\n 549890,\n 859890,\n 369990,\n 1542990,\n 1399990,\n 2370990,\n 617990];\n\n for($i=0;$i<15;$i++)\n {\n $product = new Product();\n $product->name=$names[$i];\n $product->price=$prices[$i];\n if ($i==1 || $i==7 || $i==9 || $i==10 || $i==14)\n $product->image='storage/products/product_'.($i+1).'.png';\n else\n $product->image='storage/products/product_'.($i+1).'.jpg';\n $product->save();\n }\n }", "public function reportForDuty()\n {\n //Do stuff ...\n }", "protected function setUp()\n {\n \t$this->wildcardStringMatchType = new phpkit_type_URNInetType(\"urn:inet:middlebury.edu:search:wildcard\");\n \n \t$this->mcugId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:catalog/MCUG');\n $this->miisId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:catalog/MIIS');\n\n\t \t$this->manager = $this->sharedFixture['CourseManager'];\n $this->session = $this->manager->getCourseOfferingSearchSessionForCatalog($this->mcugId);\n $this->object = $this->session->getCourseOfferingQuery();\n \n $this->physId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:course/PHYS0201');\n $this->chemId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:course/CHEM0104');\n $this->termId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:term/200890');\n $this->termId2 = new phpkit_id_URNInetId('urn:inet:middlebury.edu:term/200790');\n \n $this->physDeptTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/department/PHYS');\n $this->chemDeptTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/department/CHEM');\n $this->physSubjTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/subject/PHYS');\n $this->geolSubjTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/subject/GEOL');\n $this->chemSubjTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/subject/CHEM');\n $this->dedReqTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/requirement/DED');\n $this->sciReqTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/requirement/SCI');\n $this->natsciDivTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/division/NSCI');\n $this->ugLevelTopicId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:topic/level/UG');\n\t\t\n\t\t$this->instructorsType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:record:instructors');\n\t\t$this->weeklyScheduleType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:record:weekly_schedule');\n\t\t$this->enrollmentType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:record:enrollment');\n\t\t$this->otherType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:record:other');\n\t\t\n\t\t$this->lectureType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:genera:offering/LCT');\n\t\t$this->labType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:genera:offering/LAB');\n\t\t$this->discussionType = new phpkit_type_URNInetType('urn:inet:middlebury.edu:genera:offering/DSC');\n\t\t\n \t$this->barryId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:resource/person/WEBID1000002');\n \t$this->calvinId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:resource/person/WEBID1000003');\n \t\n \t$this->mbh216Id = new phpkit_id_URNInetId('urn:inet:middlebury.edu:resource/place/room/MBH/216');\n \t$this->mbh560Id = new phpkit_id_URNInetId('urn:inet:middlebury.edu:resource/place/room/MBH/560');\n \t$this->mainCampusId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:resource/place/campus/M');\n \t$this->breadloafCampusId = new phpkit_id_URNInetId('urn:inet:middlebury.edu:resource/place/campus/BL');\n\n }", "public function testReportsEmailcreditsHistoryGet()\n {\n }", "public function product_analytics($uniqid='',$pagetype='') {\r\n\t if( $pagetype != '' && $uniqid != '' ) {\r\n\r\n\t $userIp = $_SERVER['REMOTE_ADDR'];\r\n $user_agent = $_SERVER['HTTP_USER_AGENT'];\r\n $os_array = array('/windows phone 8/i' => 'Mobile',\r\n '/windows phone os 7/i' => 'Mobile',\r\n '/windows nt 6.3/i' => 'Desktop',\r\n '/windows nt 6.2/i' => 'Desktop',\r\n '/windows nt 6.1/i' => 'Desktop',\r\n '/windows nt 6.0/i' => 'Desktop',\r\n '/windows nt 5.2/i' => 'Desktop',\r\n '/windows nt 5.1/i' => 'Desktop',\r\n '/windows xp/i' => 'Desktop',\r\n '/windows nt 5.0/i' => 'Desktop',\r\n '/windows me/i' => 'Desktop',\r\n '/win98/i' => 'Desktop',\r\n '/win95/i' => 'Desktop',\r\n '/win16/i' => 'Desktop',\r\n '/macintosh|mac os x/i' => 'Desktop',\r\n '/mac_powerpc/i' => 'Desktop',\r\n '/linux/i' => 'Desktop',\r\n '/ubuntu/i' => 'Desktop',\r\n '/iphone/i' => 'Mobile',\r\n '/ipod/i' => 'Tablet',\r\n '/ipad/i' => 'Tablet',\r\n '/android/i' => 'Mobile',\r\n '/blackberry/i' => 'Mobile',\r\n '/webos/i' => 'Mobile');\r\n\r\n $found = false;\r\n $device = 'Desktop';\r\n foreach ($os_array as $regex => $value)\r\n {\r\n if($found)\r\n break;\r\n else if (preg_match($regex, $user_agent))\r\n {\r\n $device = $value;\r\n }\r\n }\r\n\r\n if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE)\r\n $browser = 'Internet explorer';\r\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== FALSE) //For Supporting IE 11\r\n $browser = 'Internet explorer';\r\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== FALSE)\r\n $browser = 'Mozilla Firefox';\r\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== FALSE)\r\n $browser = 'Google Chrome';\r\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== FALSE)\r\n $browser = \"Opera Mini\";\r\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== FALSE)\r\n $browser = \"Opera\";\r\n elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') !== FALSE)\r\n $browser = \"Safari\";\r\n else\r\n $browser = 'Others';\r\n\r\n\r\n $dataArr = array(\r\n\t 'prod_analysis_prodid' => $uniqid,\r\n\t 'prod_analysis_date' => date('Y-m-d'),\r\n\t 'prod_analysis_browser' => $browser,\r\n\t 'prod_analysis_device' => $device,\r\n\t 'prod_analysis_ipaddr' => $userIp,\r\n\t 'prod_analysis_pagetype' => $pagetype\r\n\t );\r\n\t $anaDetails = $this->CI->DatabaseModel->access_database('ts_product_analysis','select','',$dataArr);\r\n\t if( !empty($anaDetails) ) {\r\n\t $currentCount = $anaDetails[0]['prod_analysis_views'];\r\n\t $currentRowId = $anaDetails[0]['prod_analysis_id'];\r\n\t }\r\n\t else {\r\n $currentRowId = $this->CI->DatabaseModel->access_database('ts_product_analysis','insert',$dataArr,'');\r\n $currentCount = 0;\r\n\t }\r\n\t $newCount = $currentCount + 1;\r\n\t $dataArr['prod_analysis_views'] = $newCount;\r\n\t $this->CI->DatabaseModel->access_database('ts_product_analysis','update',$dataArr,array('prod_analysis_id'=>$currentRowId));\r\n\t return $newCount;\r\n\t }\r\n\t else {\r\n\t return 'ZERO'; // to homepage\r\n\t }\r\n\t}", "public static function OverviewSalesRentAjax(){\n\t \n\n ob_flush(); flush();\n $OverViewDataSrc=\"SalesOverView\";\n \n $TempArr = array();\n $TempSalesListArr = array();\n \n // $RetArr = array(); \n \n $LocationId = $_REQUEST[\"LocationId\"] ? $_REQUEST[\"LocationId\"] : \"\";\n $OverViewDataSrc = $_REQUEST[\"OverViewDataSrc\"] ? $_REQUEST[\"OverViewDataSrc\"] : \"\";\n $BuildType = $_REQUEST[\"BuildType\"] ? $_REQUEST[\"BuildType\"] : \"\";\n $bedrooms = $_REQUEST[\"bedrooms\"] ? $_REQUEST[\"bedrooms\"] : \"\";\n $propertyType = $_REQUEST[\"propertyType\"] ? $_REQUEST[\"propertyType\"] : \"\";\n $datefilter1 = $_REQUEST[\"datefilter1\"] ? $_REQUEST[\"datefilter1\"] : \"\";\n $datefilter2 = $_REQUEST[\"datefilter2\"] ? $_REQUEST[\"datefilter2\"] : \"\";\n\n $productDetailsArr = \\api\\apiClass::ProductFeatureApiUkValueAjax(\"forDet\",$LocationId,$OverViewDataSrc,$BuildType,$bedrooms,$propertyType,$datefilter1,$datefilter2,$m);\n \n $TotalPriPaid = 0;\n $TotalsqfiSales = 0;\n $TotalDiscnt = 0;\n $TotalGrsYld = 0;\n $TotalSalesList = 0;\n $TotalSalesTrans = 0;\n $TotalsqfiRent = 0;\n $TotalRentList = 0;\n $TotalDaysMarSales = 0;\n $TotalDaysMarSalesGraph = \"\";\n $TotalGraphPricePaid = \"\";\n $MonthdateTemp = \"\";\n $TotalSalesListGraph = \"\";\n $m = 0;\n foreach($productDetailsArr as $RsPD){\n \n $DatasourcePoint = isset($RsPD[\"datasource\"]) ? $RsPD[\"datasource\"] : \"0\"; \n \n $DataMonthYr = isset($RsPD[\"MonthYr\"]) ? $RsPD[\"MonthYr\"] : \"\"; \n \n \n \n \n if($DatasourcePoint == \"PriPaid\" ){\n $MedianPriPaid = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalPriPaid = floatval($TotalPriPaid) + floatval($MedianPriPaid);\n $m++;\n \n if ( $TotalGraphPricePaid == \"\" )\n {\n $TotalGraphPricePaid = round($MedianPriPaid);\n }\n else\n {\n $TotalGraphPricePaid = round($MedianPriPaid). \",\" .$TotalGraphPricePaid;\n }\n \n if ( $MonthdateTemp == \"\" ){\n $MonthdateTemp = $DataMonthYr;\n }else{\n $MonthdateTemp = $DataMonthYr .\"','\". $MonthdateTemp ;\n }\n }\n \n if($DatasourcePoint == \"sqfiSales\" ){\n $MediansqfiSales = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiSales = floatval($TotalsqfiSales) + floatval($MediansqfiSales);\n }\n \n if($DatasourcePoint == \"Discnt\" ){\n $MedianDiscnt = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalDiscnt = floatval($TotalDiscnt) + floatval($MedianDiscnt);\n }\n \n if($DatasourcePoint == \"GrsYld\" ){\n $MedianGrsYld = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalGrsYld = floatval($TotalGrsYld) + floatval($MedianGrsYld);\n }\n \n if($DatasourcePoint == \"SalesList\" ){\n $MedianSalesList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesList = floatval($TotalSalesList) + floatval($MedianSalesList);\n \n if ( $TotalSalesListGraph == \"\" )\n {\n $TotalSalesListGraph = round($MedianSalesList);\n }\n else\n {\n $TotalSalesListGraph = round($MedianSalesList). \",\" .$TotalSalesListGraph;\n }\n \n \n \n $NinthPercentileSales = isset($RsPD[\"NinthPercentile\"]) ? $RsPD[\"NinthPercentile\"] : \"0\";\n $UpperQuartileSales = isset($RsPD[\"UpperQuartile\"]) ? $RsPD[\"UpperQuartile\"] : \"0\";\n $LowerQuartileSales = isset($RsPD[\"LowerQuartile\"]) ? $RsPD[\"LowerQuartile\"] : \"0\";\n $SupplySales = isset($RsPD[\"Supply\"]) ? $RsPD[\"Supply\"] : \"0\";\n \n $TempSalesListArr[] = array( \n \"MonthDate_\".$m => $DataMonthYr,\n \"NinthPercentile_\".$m => $NinthPercentileSales, \n \"UpperQuartile_\".$m => $UpperQuartileSales , \n \"LowerQuartile_\".$m => $LowerQuartileSales , \n \"Supply_\".$m => $SupplySales , \n \"Median_\".$m => $MedianDaysMarSales \n ); \n }\n \n if($DatasourcePoint == \"SalesTrans\" ){\n $MedianSalesTrans = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesTrans = floatval($TotalSalesTrans) + floatval($MedianSalesTrans);\n }\n \n if($DatasourcePoint == \"sqfiRent\" ){\n $MediansqfiRent = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiRent = floatval($TotalsqfiRent) + floatval($MediansqfiRent);\n }\n \n if($DatasourcePoint == \"RentList\" ){\n $MedianRentList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalRentList = floatval($TotalRentList) + floatval($MedianRentList);\n }\n \n if($DatasourcePoint == \"DaysMarSales\" ){\n $MedianDaysMarSales = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalDaysMarSales = floatval($TotalDaysMarSales) + floatval($MedianDaysMarSales);\n \n $NinthPercentileSales = isset($RsPD[\"NinthPercentile\"]) ? $RsPD[\"NinthPercentile\"] : \"0\";\n $UpperQuartileSales = isset($RsPD[\"UpperQuartile\"]) ? $RsPD[\"UpperQuartile\"] : \"0\";\n $LowerQuartileSales = isset($RsPD[\"LowerQuartile\"]) ? $RsPD[\"LowerQuartile\"] : \"0\";\n $SupplySales = isset($RsPD[\"Supply\"]) ? $RsPD[\"Supply\"] : \"0\";\n \n $TempArr[] = array( \n \"MonthDate_\".$m => $DataMonthYr,\n \"NinthPercentile_\".$m => $NinthPercentileSales, \n \"UpperQuartile_\".$m => $UpperQuartileSales , \n \"LowerQuartile_\".$m => $LowerQuartileSales , \n \"Supply_\".$m => $SupplySales , \n \"Median_\".$m => $MedianDaysMarSales \n ); \n \n \n if ( $TotalDaysMarSalesGraph == \"\" )\n {\n $TotalDaysMarSalesGraph = round($MedianDaysMarSales);\n }\n else\n {\n $TotalDaysMarSalesGraph = round($MedianDaysMarSales). \",\" .$TotalDaysMarSalesGraph;\n }\n }\n \n \n \n \n }\n \n $PricePaid = $TotalPriPaid / $m;\n $scift = $TotalsqfiSales / $m;\n $PaidDiscount = $TotalDiscnt / $m;\n $GrossYield = $TotalGrsYld / $m;\n $SalesListing = $TotalSalesList / $m;\n $SalesTransactions = $TotalSalesTrans / $m;\n $sqfiRent = $TotalsqfiRent / $m;\n $RentList = $TotalRentList / $m;\n \n $TempEachArr = $TempArr;\n $TempSalesList = $TempSalesListArr;\n \n ob_flush(); flush();\n \n \n \n //PriPaid,sqfiSales,Discnt,GrsYld,SalesList,SalesTrans\n \n $productDetailsArr = \\api\\apiClass::ProductFeatureApiUkValueAjax(\"forDet\",$LocationId,$OverViewDataSrc,$BuildType,1,$propertyType,$datefilter1,$datefilter2,$m);\n \n $TotalPriPaidBd1 = 0;\n $TotalsqfiSalesBd1 = 0;\n $TotalDiscntBd1 = 0;\n $TotalGrsYldBd1 = 0;\n $TotalSalesListBd1 = 0;\n $TotalSalesTransBd1 = 0;\n $TotalsqfiRentBd1 = 0;\n $TotalRentListBd1 = 0;\n $TotalGraphPricePaid1 = \"\";\n $n = 0;\n foreach($productDetailsArr as $RsPD){\n \n $DatasourcePoint = isset($RsPD[\"datasource\"]) ? $RsPD[\"datasource\"] : \"0\"; \n \n if($DatasourcePoint == \"PriPaid\" ){\n $MedianPriPaid = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalPriPaidBd1 = floatval($TotalPriPaidBd1) + floatval($MedianPriPaid);\n $n++;\n \n if ( $TotalGraphPricePaid1 == \"\" )\n {\n $TotalGraphPricePaid1 = round($MedianPriPaid);\n }\n else\n {\n $TotalGraphPricePaid1 = $TotalGraphPricePaid1. \",\" .round($MedianPriPaid);\n }\n \n }\n \n if($DatasourcePoint == \"sqfiSales\" ){\n $MediansqfiSales = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiSalesBd1 = floatval($TotalsqfiSalesBd1) + floatval($MediansqfiSales);\n }\n \n if($DatasourcePoint == \"sqfiRent\" ){\n $MediansqfiRent = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiRentBd1 = floatval($TotalsqfiRentBd1) + floatval($MediansqfiRent);\n }\n \n if($DatasourcePoint == \"Discnt\" ){\n $MedianDiscnt = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalDiscntBd1 = floatval($TotalDiscntBd1) + floatval($MedianDiscnt);\n }\n \n if($DatasourcePoint == \"GrsYld\" ){\n $MedianGrsYld = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalGrsYldBd1 = floatval($TotalGrsYldBd1) + floatval($MedianGrsYld);\n }\n \n if($DatasourcePoint == \"SalesList\" ){\n $MedianSalesList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesListBd1 = floatval($TotalSalesListBd1) + floatval($MedianSalesList);\n }\n \n if($DatasourcePoint == \"RentList\" ){\n $MedianRentList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalRentListBd1 = floatval($TotalRentListBd1) + floatval($MedianRentList);\n }\n \n \n if($DatasourcePoint == \"SalesTrans\" ){\n $MedianSalesTrans = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesTransBd1 = floatval($TotalSalesTransBd1) + floatval($MedianSalesTrans);\n }\n \n }\n \n \n \n \n $PricePaidBd1 = $TotalPriPaidBd1 / $n;\n $sciftBd1 = $TotalsqfiSalesBd1 / $n;\n $PaidDiscountBd1 = $TotalDiscntBd1 / $n;\n $GrossYieldBd1 = $TotalGrsYldBd1 / $n;\n $SalesListingBd1 = $TotalSalesListBd1 / $n;\n $SalesTransactionsBd1 = $TotalSalesTransBd1 / $n;\n $sqfiRentBd1 = $TotalsqfiRentBd1 / $n;\n $RentListBd1 = $TotalRentListBd1 / $n;\n \n\n \n ob_flush(); flush();\n \n //PriPaid,sqfiSales,Discnt,GrsYld,SalesList,SalesTrans\n \n $productDetailsArr = \\api\\apiClass::ProductFeatureApiUkValueAjax(\"forDet\",$LocationId,$OverViewDataSrc,$BuildType,2,$propertyType,$datefilter1,$datefilter2,$m);\n \n $TotalPriPaidBd2 = 0;\n $TotalsqfiSalesBd2 = 0;\n $TotalDiscntBd2 = 0;\n $TotalGrsYldBd2 = 0;\n $TotalSalesListBd2 = 0;\n $TotalSalesTransBd2 = 0;\n $TotalsqfiRentBd2 = 0;\n $TotalRentListBd2 = 0;\n $TotalGraphPricePaid2 = \"\";\n $n = 0;\n foreach($productDetailsArr as $RsPD){\n \n $DatasourcePoint = isset($RsPD[\"datasource\"]) ? $RsPD[\"datasource\"] : \"0\"; \n \n if($DatasourcePoint == \"PriPaid\" ){\n $MedianPriPaid = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalPriPaidBd2 = floatval($TotalPriPaidBd2) + floatval($MedianPriPaid);\n $n++;\n \n if ( $TotalGraphPricePaid2 == \"\" )\n {\n $TotalGraphPricePaid2 = round($MedianPriPaid);\n }\n else\n {\n $TotalGraphPricePaid2 = $TotalGraphPricePaid2. \",\" .round($MedianPriPaid) ;\n }\n }\n \n if($DatasourcePoint == \"sqfiSales\" ){\n $MediansqfiSales = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiSalesBd2 = floatval($TotalsqfiSalesBd2) + floatval($MediansqfiSales);\n }\n \n if($DatasourcePoint == \"Discnt\" ){\n $MedianDiscnt = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalDiscntBd2 = floatval($TotalDiscntBd2) + floatval($MedianDiscnt);\n }\n \n if($DatasourcePoint == \"GrsYld\" ){\n $MedianGrsYld = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalGrsYldBd2 = floatval($TotalGrsYldBd2) + floatval($MedianGrsYld);\n }\n \n if($DatasourcePoint == \"SalesList\" ){\n $MedianSalesList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesListBd2 = floatval($TotalSalesListBd2) + floatval($MedianSalesList);\n }\n \n if($DatasourcePoint == \"SalesTrans\" ){\n $MedianSalesTrans = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesTransBd2 = floatval($TotalSalesTransBd2) + floatval($MedianSalesTrans);\n }\n \n if($DatasourcePoint == \"sqfiRent\" ){\n $MediansqfiRent = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiRentBd2 = floatval($TotalsqfiRentBd2) + floatval($MediansqfiRent);\n }\n \n if($DatasourcePoint == \"RentList\" ){\n $MedianRentList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalRentListBd2 = floatval($TotalRentListBd2) + floatval($MedianRentList);\n }\n \n }\n \n $PricePaidBd2 = $TotalPriPaidBd2 / $n;\n $sciftBd2 = $TotalsqfiSalesBd2 / $n;\n $PaidDiscountBd2 = $TotalDiscntBd2 / $n;\n $GrossYieldBd2 = $TotalGrsYldBd2 / $n;\n $SalesListingBd2 = $TotalSalesListBd2 / $n;\n $SalesTransactionsBd2 = $TotalSalesTransBd2 / $n;\n $sqfiRentBd2 = $TotalsqfiRentBd2 / $n;\n $RentListBd2 = $TotalRentListBd2 / $n;\n \n ob_flush(); flush();\n \n \n //PriPaid,sqfiSales,Discnt,GrsYld,SalesList,SalesTrans\n \n $productDetailsArr = \\api\\apiClass::ProductFeatureApiUkValueAjax(\"forDet\",$LocationId,$OverViewDataSrc,$BuildType,3,$propertyType,$datefilter1,$datefilter2,$m);\n \n $TotalPriPaidBd3 = 0;\n $TotalsqfiSalesBd3 = 0;\n $TotalDiscntBd3 = 0;\n $TotalGrsYldBd3 = 0;\n $TotalSalesListBd3 = 0;\n $TotalSalesTransBd3 = 0;\n $TotalsqfiRentBd3 = 0;\n $TotalRentListBd3 = 0;\n $TotalGraphPricePaid3 = \"\";\n $n = 0;\n foreach($productDetailsArr as $RsPD){\n \n $DatasourcePoint = isset($RsPD[\"datasource\"]) ? $RsPD[\"datasource\"] : \"0\"; \n \n if($DatasourcePoint == \"PriPaid\" ){\n $MedianPriPaid = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalPriPaidBd3 = floatval($TotalPriPaidBd3) + floatval($MedianPriPaid);\n $n++;\n \n if ( $TotalGraphPricePaid3 == \"\" )\n {\n $TotalGraphPricePaid3 = round($MedianPriPaid);\n }\n else\n {\n $TotalGraphPricePaid3 = round($MedianPriPaid). \",\" . $TotalGraphPricePaid3;\n }\n }\n \n if($DatasourcePoint == \"sqfiSales\" ){\n $MediansqfiSales = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiSalesBd3 = floatval($TotalsqfiSalesBd3) + floatval($MediansqfiSales);\n }\n \n if($DatasourcePoint == \"Discnt\" ){\n $MedianDiscnt = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalDiscntBd3 = floatval($TotalDiscntBd3) + floatval($MedianDiscnt);\n }\n \n if($DatasourcePoint == \"GrsYld\" ){\n $MedianGrsYld = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalGrsYldBd3 = floatval($TotalGrsYldBd3) + floatval($MedianGrsYld);\n }\n \n if($DatasourcePoint == \"SalesList\" ){\n $MedianSalesList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesListBd3 = floatval($TotalSalesListBd3) + floatval($MedianSalesList);\n }\n \n if($DatasourcePoint == \"SalesTrans\" ){\n $MedianSalesTrans = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalSalesTransBd3 = floatval($TotalSalesTransBd3) + floatval($MedianSalesTrans);\n }\n \n if($DatasourcePoint == \"sqfiRent\" ){\n $MediansqfiRent = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalsqfiRentBd3 = floatval($TotalsqfiRentBd3) + floatval($MediansqfiRent);\n }\n \n if($DatasourcePoint == \"RentList\" ){\n $MedianRentList = isset($RsPD[\"Median\"]) ? $RsPD[\"Median\"] : \"0\";\n $TotalRentListBd3 = floatval($TotalRentListBd3) + floatval($MedianRentList);\n }\n \n }\n \n $PricePaidBd3 = $TotalPriPaidBd3 / $n;\n $sciftBd3 = $TotalsqfiSalesBd3 / $n;\n $PaidDiscountBd3 = $TotalDiscntBd3 / $n;\n $GrossYieldBd3 = $TotalGrsYldBd3 / $n;\n $SalesListingBd3 = $TotalSalesListBd3 / $n;\n $SalesTransactionsBd3 = $TotalSalesTransBd3 / $n;\n $sqfiRentBd3 = $TotalsqfiRentBd3 / $n;\n $RentListBd3 = $TotalRentListBd3 / $n;\n ob_flush(); flush(); \n \n \n $PricePaidBd1 = $TotalPriPaidBd1 / $n;\n $sciftBd1 = $TotalsqfiSalesBd1 / $n;\n $PaidDiscountBd1 = $TotalDiscntBd1 / $n;\n $GrossYieldBd1 = $TotalGrsYldBd1 / $n;\n $SalesListingBd1 = $TotalSalesListBd1 / $n;\n $SalesTransactionsBd1 = $TotalSalesTransBd1 / $n;\n $sqfiRentBd1 = $TotalsqfiRentBd1 / $n;\n $RentListBd1 = $TotalRentListBd1 / $n;\n \n $RetArr = array(\"PricePaid\" => $PricePaid,\n \"scift\" => $scift, \n \"PaidDiscount\" => $PaidDiscount,\n \"GrossYield\" => $GrossYield,\n \"SalesListing\" => $SalesListing, \n \"SalesTransactions\" => $SalesTransactions,\n \"sqfiRent\" => $sqfiRent, \n \"RentList\" => $RentList, \n \"PricePaidBd1\" => $PricePaidBd1,\n \"sciftBd1\" => $sciftBd1, \n \"PaidDiscountBd1\" => $PaidDiscountBd1,\n \"GrossYieldBd1\" => $GrossYieldBd1,\n \"SalesListingBd1\" => $SalesListingBd1, \n \"SalesTransactionsBd1\" => $SalesTransactionsBd1,\n \"sqfiRentBd1\" => $sqfiRentBd1, \n \"RentListBd1\" => $RentListBd1,\n \"PricePaidBd2\" => $PricePaidBd2,\n \"sciftBd2\" => $sciftBd2, \n \"PaidDiscountBd2\" => $PaidDiscountBd2,\n \"GrossYieldBd2\" => $GrossYieldBd2,\n \"SalesListingBd2\" => $SalesListingBd2, \n \"SalesTransactionsBd2\" => $SalesTransactionsBd2,\n \"sqfiRentBd2\" => $sqfiRentBd2, \n \"RentListBd2\" => $RentListBd2,\n \"PricePaidBd3\" => $PricePaidBd3,\n \"sciftBd3\" => $sciftBd3, \n \"PaidDiscountBd3\" => $PaidDiscountBd3,\n \"GrossYieldBd3\" => $GrossYieldBd3,\n \"SalesListingBd3\" => $SalesListingBd3, \n \"SalesTransactionsBd3\" => $SalesTransactionsBd3,\n \"sqfiRentBd3\" => $sqfiRentBd3, \n \"RentListBd3\" => $RentListBd3\n );\n \n header('Content-Type: application/json');\n echo json_encode($RetArr); \n\t \n\t}" ]
[ "0.5940064", "0.5821078", "0.5727335", "0.56043154", "0.55675244", "0.5498159", "0.54911584", "0.54804236", "0.5438413", "0.5422629", "0.5386306", "0.5379583", "0.5349196", "0.5336306", "0.53155035", "0.53145164", "0.5313823", "0.5309151", "0.5306959", "0.5292262", "0.5288744", "0.5276679", "0.5258527", "0.5241446", "0.52063143", "0.51929104", "0.5191712", "0.51908964", "0.515356", "0.5152729", "0.51521075", "0.5144114", "0.5143881", "0.5127044", "0.51249087", "0.512102", "0.5083713", "0.5079905", "0.5079329", "0.50751305", "0.5064113", "0.5037636", "0.50178444", "0.50062734", "0.49967533", "0.49965805", "0.49855784", "0.49845138", "0.49828628", "0.49737397", "0.4972628", "0.49571717", "0.49508655", "0.4947286", "0.4947027", "0.4945804", "0.49430147", "0.49419984", "0.4940656", "0.49405858", "0.49345377", "0.49271345", "0.4926437", "0.4923561", "0.49174035", "0.49169183", "0.4910979", "0.490986", "0.49087757", "0.49020648", "0.48958755", "0.4895055", "0.48950335", "0.48949867", "0.48949206", "0.48896077", "0.48882493", "0.48845604", "0.4883646", "0.48808384", "0.4877524", "0.48745722", "0.48743805", "0.4866481", "0.48652762", "0.4864", "0.48631135", "0.48602957", "0.48602957", "0.48585963", "0.48547804", "0.48489264", "0.4843275", "0.48356596", "0.48303902", "0.4830317", "0.48269883", "0.48245966", "0.48223484", "0.4821758" ]
0.5996147
0
/ TikiWiki plugin chart Displays a chart from a tikisheet.
function wikiplugin_chart_help() { return tra("Chart").":<br />~np~{CHART(id=>, type=>, width=>, height=>, value=> )}".tra("title")."{CHART}~/np~"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Timeline($chart_div,$data,$size='300px'){\n\t//$dataArray[]= \"[\\\".$dataset[0].\"\\\", \\\"\". $dataset[1].\"\\\", \\\"\". $dataset[2].\"\\\"]\"\n\t//$data = implode(\",\",$dataArray);\n\techo \"<div class='box-body' id='\".$chart_div.\"' style='height=\".$size.\"'></div>\";\n\techo \"<script>\n\tnew Chartkick.BarChart(\".$chart_div.\",[\".$data.\"]);\n\t</script>\";\n\t\n}", "function display() {\r\n\t\tJRequest::setVar('view', 'charts');\r\n\t\tJRequest::setVar('layout', 'charts');\r\n\t\tparent::display();\t\r\n }", "public function chart()\n {\n $data ['footer'] = $this->page_model->getfooter();\n\n $this->load->view('templates/header');\n $this->load->view('home/about/head_about');\n $this->load->view('home/about/chart', $data);\n $this->load->view('templates/footer', $data);\n }", "public function getHTML()\n\t{\n\t\tglobal $tpl;\n\t\t\n\t\tinclude_once \"Services/jQuery/classes/class.iljQueryUtil.php\";\n\t\tiljQueryUtil::initjQuery();\n\t\t\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/excanvas.min.js\");\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/jquery.flot.min.js\");\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/jquery.flot.pie.js\");\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/jquery.flot.highlighter.js\");\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/jquery.flot.spider.js\");\n\n\t\t$chart = new ilTemplate(\"tpl.grid.html\", true, true, \"Services/Chart\");\n\t\t$chart->setVariable(\"ID\", $this->id);\n\t\t$chart->setVariable(\"WIDTH\", $this->width);\n\t\t$chart->setVariable(\"HEIGHT\", $this->height);\n\t\n\t\t$last = array_keys($this->data);\n\t\t$last = array_pop($last);\n\t\t$has_pie = false;\n\t\t$has_spider = false;\n\t\tforeach($this->data as $idx => $series)\n\t\t{\n\t\t\t$fill = $series->getFill();\n\t\t\t\n\t\t\tif ($series->getType() == \"spider\")\n\t\t\t{\n\t\t\t\t$has_spider = true;\n\t\t\t\t\n\t\t\t\tif ($fill[\"color\"] != \"\")\n\t\t\t\t{\n\t\t\t\t\t$chart->setCurrentBlock(\"series_property\");\n\t\t\t\t\t$chart->setVariable(\"SPROP\", \"color\");\n\t\t\t\t\t$chart->setVariable(\"SPROP_VAL\", self::renderColor($fill[\"color\"] , \"0.5\"));\n\t\t\t\t\t$chart->parseCurrentBlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$chart->setCurrentBlock(\"series\");\n\t\t\t$chart->setVariable(\"SERIES_LABEL\", str_replace(\"\\\"\", \"\\\\\\\"\", $series->getLabel()));\n\t\t\t$chart->setVariable(\"SERIES_TYPE\", $series->getType());\n\n\t\t\t$type = $series->getType();\n\n\t\t\t$points = array();\n\t\t\tif($type != \"pie\")\n\t\t\t{\n\t\t\t\tforeach($series->getData() as $point)\n\t\t\t\t{\n\t\t\t\t\t$points[] = \"[\".$point[0].\",\".$point[1].\"]\";\n\t\t\t\t}\n\t\t\t\t$chart->setVariable(\"SERIES_DATA\", \"[ \".implode(\",\", $points).\" ]\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$has_pie = true;\n\t\t\t\t$chart->setVariable(\"SERIES_DATA\", array_pop($series->getData()));\n\t\t\t}\n\t\t\tif($idx != $last)\n\t\t\t{\n\t\t\t\t$chart->setVariable(\"SERIES_END\", \",\");\n\t\t\t}\n\n\t\t\t$options = array(\"show: \".($series->isHidden() ? \"false\" : \"true\"));\n\t\t\tif($type != \"points\")\n\t\t\t{\n\t\t\t\t$width = $series->getLineWidth();\n\t\t\t\tif($width !== null)\n\t\t\t\t{\n\t\t\t\t\t$options[] = \"lineWidth:\".$width;\n\t\t\t\t}\n\t\t\t\tif($type == \"bars\")\n\t\t\t\t{\n\t\t\t\t\t$bar_options = $series->getBarOptions();\n\t\t\t\t\tif($bar_options[\"width\"] !== null)\n\t\t\t\t\t{\n\t\t\t\t\t\t$options[] = \"barWidth:\".str_replace(\",\", \".\", $bar_options[\"width\"]);\n\t\t\t\t\t\t$options[] = \"align: \\\"\".$bar_options[\"align\"].\"\\\"\";\n\t\t\t\t\t\tif($bar_options[\"horizontal\"])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$options[] = \"horizontal: true\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if($type == \"lines\")\n\t\t\t\t{\n\t\t\t\t\tif($series->getLineSteps())\n\t\t\t\t\t{\n\t\t\t\t\t\t$options[] = \"steps: true\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$radius = $series->getPointRadius();\n\t\t\t\tif($radius !== null)\n\t\t\t\t{\n\t\t\t\t\t$options[] = \"radius:\".$radius;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif($fill[\"fill\"])\n\t\t\t{\n\t\t\t\t$options[] = \"fill: \".$fill[\"fill\"];\n\t\t\t\tif($fill[\"color\"])\n\t\t\t\t{\n\t\t\t\t\t$options[] = \"fillColor: \".self::renderColor($fill[\"color\"], $fill[\"fill\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$chart->setVariable(\"SERIES_OPTIONS\", implode(\", \", $options));\n\n\t\t\t$chart->parseCurrentBlock();\n\t\t}\n\n\t\tif ($has_spider)\n\t\t{\n\t\t\t$chart->setCurrentBlock(\"spider\");\n\t\t\t$lab_strings = array();\n\t\t\tforeach ($this->getLegLabels() as $l)\n\t\t\t{\n\t\t\t\t$lab_strings[] = \"{label: \\\"\".$l.\"\\\"}\";\n\t\t\t}\n\t\t\t$chart->setVariable(\"LEG_LABELS\", implode($lab_strings, \",\"));\n\t\t\t$chart->setVariable(\"LEG_MAX\", $this->getYAxisMax());\n\t\t\t$chart->parseCurrentBlock();\n\t\t\t\n\t\t\t$chart->setCurrentBlock(\"spider_grid_options\");\n\t\t\t$chart->setVariable(\"NR_TICKS\", $this->getYAxisMax());\n\t\t\t$chart->parseCurrentBlock();\n\t\t}\n\t\t\n\t\t// global options\n\n\t\t$chart->setVariable(\"SHADOW\", (int)$this->getShadow());\n\t\t$chart->setVariable(\"IS_PIE\", ($has_pie ? \"true\" : \"false\"));\n\t\t\n\t\t$colors = $this->getColors();\n\t\tif($colors)\n\t\t{\n\t\t\t$tmp = array();\n\t\t\tforeach($colors as $color)\n\t\t\t{\n\t\t\t\t$tmp[] = self::renderColor($color);\n\t\t\t}\n\t\t}\n\t\tif(sizeof($tmp))\n\t\t{\n\t\t\t$chart->setVariable(\"COLORS\", implode(\",\", $tmp));\n\t\t}\n\n\t\t// legend\n\t\tif(!$this->legend)\n\t\t{\n\t\t\t$chart->setVariable(\"LEGEND\", \"show: false\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$margin = $this->legend->getMargin();\n\t\t\t$legend = array();\n\t\t\t$legend[] = \"show: true\";\n\t\t\t$legend[] = \"noColumns: \".$this->legend->getColumns();\n\t\t\t$legend[] = \"position: \\\"\".$this->legend->getPosition().\"\\\"\";\n\t\t\t$legend[] = \"margin: [\".$margin[\"x\"].\", \".$margin[\"y\"].\"]\";\n\t\t\t$legend[] = \"backgroundColor: \".self::renderColor($this->legend->getBackground());\n\t\t\t$legend[] = \"backgroundOpacity: \".str_replace(\",\",\".\",$this->legend->getOpacity());\n\t\t\t$legend[] = \"labelBoxBorderColor: \".self::renderColor($this->legend->getLabelBorder());\n\n\t\t\t$chart->setVariable(\"LEGEND\", implode(\", \", $legend));\n\t\t}\n\n\t\t// axis/ticks\n\t\t$tmp = array();\n\t\t$ticks = $this->getTicks();\n\t\tif($ticks)\n\t\t{\t\t\t\n\t\t\tforeach($ticks as $axis => $def)\n\t\t\t{\n\t\t\t\tif(is_numeric($def))\n\t\t\t\t{\n\t\t\t\t\t$tmp[$axis] = $axis.\"axis: { ticks: \".$def.\" }\";\n\t\t\t\t}\n\t\t\t\telse if(is_array($def))\n\t\t\t\t{\n\t\t\t\t\t$ttmp = array();\n\t\t\t\t\tforeach($def as $idx => $value)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($ticks[\"labeled\"])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$ttmp[] = \"[\".$idx.\", \\\"\".$value.\"\\\"]\";\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$ttmp[] = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$tmp[$axis] = $axis.\"axis: { ticks: [\".implode(\", \", $ttmp).\"] }\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// optional: remove decimals\n\t if(!isset($tmp[\"x\"]) && $this->integer_axis[\"x\"])\n\t\t{\n\t\t\t$tmp[\"x\"] = \"xaxis: { tickDecimals: 0 }\";\n\t\t}\n\t\tif(!isset($tmp[\"y\"]) && $this->integer_axis[\"y\"])\n\t\t{\n\t\t\t$tmp[\"y\"] = \"yaxis: { tickDecimals: 0 }\";\n\t\t}\t\t\n\t\t\n\t\tif(sizeof($tmp))\n\t\t{\n\t\t\t$chart->setVariable(\"AXIS\", \",\".implode(\", \", $tmp));\n\t\t}\n\t\t\n\t\t$ret = $chart->get();\n//echo htmlentities($ret);\n\t\treturn $ret;\n\t}", "function custom_chart_url() {\n return '/main.php?the_left=nav3&the_page=cosel';\n}", "function yearly_chart() {\n $this->load->view(\"expenses/yearly_chart\");\n }", "public function actionChartTest1(){\n\t\t\n\t $chartGrantData='{\n\t\t\"chart\": {\n \"subcaption\": \"Pilot Project Planned vs Actual\", \n \"dateformat\": \"dd/mm/yyyy\",\n \"outputdateformat\": \"ddds mns yy\",\n \"ganttwidthpercent\": \"70\",\n \"ganttPaneDuration\": \"50\",\n \"ganttPaneDurationUnit\": \"d\",\t\n\t\t\t\t\"height\":\"500%\",\n\t\t\t\t\"fontsize\": \"14\",\t\t\t\t\n \"plottooltext\": \"$processName{br} $label starting date $start{br}$label ending date $end\",\n \"theme\": \"fint\"\n },\n\t\t\"categories\": [\n\t\t\t{\n\t\t\t\t\"bgcolor\": \"#33bdda\",\n\t\t\t\t\"category\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/4/2014\",\n\t\t\t\t\t\t\"end\": \"30/6/2014\",\n\t\t\t\t\t\t\"label\": \"Months\",\n\t\t\t\t\t\t\"align\": \"middle\",\n\t\t\t\t\t\t\"fontcolor\": \"#ffffff\",\n\t\t\t\t\t\t\"fontsize\": \"14\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"bgcolor\": \"#33bdda\",\n\t\t\t\t\"align\": \"middle\",\n\t\t\t\t\"fontcolor\": \"#ffffff\",\n\t\t\t\t\"fontsize\": \"12\",\n\t\t\t\t\"category\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/4/2014\",\n\t\t\t\t\t\t\"end\": \"30/4/2014\",\n\t\t\t\t\t\t\"label\": \"April\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/5/2014\",\n\t\t\t\t\t\t\"end\": \"31/5/2014\",\n\t\t\t\t\t\t\"label\": \"May\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/6/2014\",\n\t\t\t\t\t\t\"end\": \"30/6/2014\",\n\t\t\t\t\t\t\"label\": \"June\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"bgcolor\": \"#ffffff\",\n\t\t\t\t\"fontcolor\": \"#1288dd\",\n\t\t\t\t\"fontsize\": \"10\",\n\t\t\t\t\"isbold\": \"1\",\n\t\t\t\t\"align\": \"center\",\n\t\t\t\t\"category\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/4/2014\",\n\t\t\t\t\t\t\"end\": \"5/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 1\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"6/4/2014\",\n\t\t\t\t\t\t\"end\": \"12/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"13/4/2014\",\n\t\t\t\t\t\t\"end\": \"19/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 3\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"20/4/2014\",\n\t\t\t\t\t\t\"end\": \"26/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 4\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"27/4/2014\",\n\t\t\t\t\t\t\"end\": \"3/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 5\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"4/5/2014\",\n\t\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 6\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"11/5/2014\",\n\t\t\t\t\t\t\"end\": \"17/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 7\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"18/5/2014\",\n\t\t\t\t\t\t\"end\": \"24/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 8\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"25/5/2014\",\n\t\t\t\t\t\t\"end\": \"31/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 9\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/6/2014\",\n\t\t\t\t\t\t\"end\": \"7/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 10\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"8/6/2014\",\n\t\t\t\t\t\t\"end\": \"14/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 11\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"15/6/2014\",\n\t\t\t\t\t\t\"end\": \"21/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 12\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"22/6/2014\",\n\t\t\t\t\t\t\"end\": \"28/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 13\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"datatable\": {\n \"headervalign\": \"bottom\",\n \"datacolumn\": [\n {\n \"headertext\": \"PIC\",\n \"fontcolor\": \"#000000\",\n\t\t\t\t\t\t\"fontsize\": \"10\",\n\t\t\t\t\t\t\"isanimated\": \"1\",\n\t\t\t\t\t\t\"bgcolor\": \"#6baa01\",\n\t\t\t\t\t\t\"headervalign\": \"middle\",\n\t\t\t\t\t\t\"headeralign\": \"center\",\n\t\t\t\t\t\t\"headerbgcolor\": \"#6baa01\",\n\t\t\t\t\t\t\"headerfontcolor\": \"#ffffff\",\n\t\t\t\t\t\t\"headerfontsize\": \"16\",\n\t\t\t\t\t\t\"width\":\"150\",\n\t\t\t\t\t\t\"align\": \"left\",\n\t\t\t\t\t\t\"isbold\": \"1\",\n\t\t\t\t\t\t\"bgalpha\": \"25\",\t\t\t\t\n \"text\": [\n {\n \"label\": \" \"\n },\n {\n \"label\": \"John\"\n },\n {\n \"label\": \"David\"\n },\n {\n \"label\": \"Mary\"\n },\n {\n \"label\": \"John\"\n },\n {\n \"label\": \"Andrew & Harry\"\n }, \n {\n \"label\": \"John & Harry\"\n },\n {\n \"label\": \" \"\n },\n {\n \"label\": \"Neil & Harry\"\n },\n {\n \"label\": \"Neil & Harry\"\n },\n {\n \"label\": \"Chris\"\n },\n {\n \"label\": \"John & Richard\"\n }\n ]\n }\n ]\n },\n\t\t\"processes\": {\n\t\t\t\"headertext\": \"Pilot Task\",\n\t\t\t\"fontsize\": \"12\",\n\t\t\t\"fontcolor\": \"#000000\",\n\t\t\t\"fontsize\": \"10\",\n\t\t\t\"isanimated\": \"1\",\n\t\t\t\"bgcolor\": \"#6baa01\",\n\t\t\t\"headervalign\": \"middle\",\n\t\t\t\"headeralign\": \"center\",\n\t\t\t\"headerbgcolor\": \"#6baa01\",\n\t\t\t\"headerfontcolor\": \"#ffffff\",\n\t\t\t\"headerfontsize\": \"16\",\n\t\t\t\"width\":\"200\",\n\t\t\t\"align\": \"left\",\n\t\t\t\"isbold\": \"1\",\n\t\t\t\"bgalpha\": \"25\",\n\t\t\t\"process\": [\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Clear site\",\n\t\t\t\t\t\"id\": \"1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Excavate Foundation\",\n\t\t\t\t\t\"id\": \"2\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Concrete Foundation\",\n\t\t\t\t\t\"id\": \"3\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Footing to DPC\",\n\t\t\t\t\t\"id\": \"4\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Drainage Services\",\n\t\t\t\t\t\"id\": \"5\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Backfill\",\n\t\t\t\t\t\"id\": \"6\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Ground Floor\",\n\t\t\t\t\t\"id\": \"7\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Walls on First Floor\",\n\t\t\t\t\t\"id\": \"8\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"First Floor Carcass\",\n\t\t\t\t\t\"id\": \"9\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"First Floor Deck\",\n\t\t\t\t\t\"id\": \"10\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Roof Structure\",\n\t\t\t\t\t\"id\": \"11\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Roof Covering\",\n\t\t\t\t\t\"id\": \"12\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Rainwater Gear\",\n\t\t\t\t\t\"id\": \"13\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Windows\",\n\t\t\t\t\t\"id\": \"14\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"External Doors\",\n\t\t\t\t\t\"id\": \"15\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Connect Electricity\",\n\t\t\t\t\t\"id\": \"16\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Connect Water Supply\",\n\t\t\t\t\t\"id\": \"17\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Install Air Conditioning\",\n\t\t\t\t\t\"id\": \"18\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Interior Decoration\",\n\t\t\t\t\t\"id\": \"19\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Fencing And signs\",\n\t\t\t\t\t\"id\": \"20\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Exterior Decoration\",\n\t\t\t\t\t\"id\": \"21\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Setup racks\",\n\t\t\t\t\t\"id\": \"22\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\t\t\n\t\t\"tasks\": {\n\t\t\t\"task\": [\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"1\",\n\t\t\t\t\t\"start\": \"9/4/2014\",\n\t\t\t\t\t\"end\": \"12/4/2014\",\n\t\t\t\t\t\"id\": \"1-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"1\",\n\t\t\t\t\t\"start\": \"9/4/2014\",\n\t\t\t\t\t\"end\": \"12/4/2014\",\n\t\t\t\t\t\"id\": \"1\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"2\",\n\t\t\t\t\t\"start\": \"13/4/2014\",\n\t\t\t\t\t\"end\": \"23/4/2014\",\n\t\t\t\t\t\"id\": \"2-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"2\",\n\t\t\t\t\t\"start\": \"13/4/2014\",\n\t\t\t\t\t\"end\": \"25/4/2014\",\n\t\t\t\t\t\"id\": \"2\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"2\",\n\t\t\t\t\t\"start\": \"23/4/2014\",\n\t\t\t\t\t\"end\": \"25/4/2014\",\n\t\t\t\t\t\"id\": \"2-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 2 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"3\",\n\t\t\t\t\t\"start\": \"23/4/2014\",\n\t\t\t\t\t\"end\": \"30/4/2014\",\n\t\t\t\t\t\"id\": \"3-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"3\",\n\t\t\t\t\t\"start\": \"26/4/2014\",\n\t\t\t\t\t\"end\": \"4/5/2014\",\n\t\t\t\t\t\"id\": \"3\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"3\",\n\t\t\t\t\t\"start\": \"3/5/2014\",\n\t\t\t\t\t\"end\": \"4/5/2014\",\n\t\t\t\t\t\"id\": \"3-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 1 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"4\",\n\t\t\t\t\t\"start\": \"3/5/2014\",\n\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\"id\": \"4-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"4\",\n\t\t\t\t\t\"start\": \"4/5/2014\",\n\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\"id\": \"4\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"5\",\n\t\t\t\t\t\"start\": \"6/5/2014\",\n\t\t\t\t\t\"end\": \"11/5/2014\",\n\t\t\t\t\t\"id\": \"5-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"5\",\n\t\t\t\t\t\"start\": \"6/5/2014\",\n\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\"id\": \"5\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"6\",\n\t\t\t\t\t\"start\": \"4/5/2014\",\n\t\t\t\t\t\"end\": \"7/5/2014\",\n\t\t\t\t\t\"id\": \"6-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"6\",\n\t\t\t\t\t\"start\": \"5/5/2014\",\n\t\t\t\t\t\"end\": \"11/5/2014\",\n\t\t\t\t\t\"id\": \"6\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"6\",\n\t\t\t\t\t\"start\": \"7/5/2014\",\n\t\t\t\t\t\"end\": \"11/5/2014\",\n\t\t\t\t\t\"id\": \"6-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 4 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"7\",\n\t\t\t\t\t\"start\": \"11/5/2014\",\n\t\t\t\t\t\"end\": \"14/5/2014\",\n\t\t\t\t\t\"id\": \"7-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"7\",\n\t\t\t\t\t\"start\": \"11/5/2014\",\n\t\t\t\t\t\"end\": \"14/5/2014\",\n\t\t\t\t\t\"id\": \"7\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"8\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"19/5/2014\",\n\t\t\t\t\t\"id\": \"8-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"8\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"19/5/2014\",\n\t\t\t\t\t\"id\": \"8\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"9\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"18/5/2014\",\n\t\t\t\t\t\"id\": \"9-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"9\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"21/5/2014\",\n\t\t\t\t\t\"id\": \"9\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"9\",\n\t\t\t\t\t\"start\": \"18/5/2014\",\n\t\t\t\t\t\"end\": \"21/5/2014\",\n\t\t\t\t\t\"id\": \"9-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 3 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"10\",\n\t\t\t\t\t\"start\": \"20/5/2014\",\n\t\t\t\t\t\"end\": \"23/5/2014\",\n\t\t\t\t\t\"id\": \"10-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"10\",\n\t\t\t\t\t\"start\": \"21/5/2014\",\n\t\t\t\t\t\"end\": \"24/5/2014\",\n\t\t\t\t\t\"id\": \"10\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"10\",\n\t\t\t\t\t\"start\": \"23/5/2014\",\n\t\t\t\t\t\"end\": \"24/5/2014\",\n\t\t\t\t\t\"id\": \"10-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 1 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"11\",\n\t\t\t\t\t\"start\": \"25/5/2014\",\n\t\t\t\t\t\"end\": \"27/5/2014\",\n\t\t\t\t\t\"id\": \"11-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"11\",\n\t\t\t\t\t\"start\": \"25/5/2014\",\n\t\t\t\t\t\"end\": \"27/5/2014\",\n\t\t\t\t\t\"id\": \"11\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"12\",\n\t\t\t\t\t\"start\": \"28/5/2014\",\n\t\t\t\t\t\"end\": \"1/6/2014\",\n\t\t\t\t\t\"id\": \"12-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"12\",\n\t\t\t\t\t\"start\": \"28/5/2014\",\n\t\t\t\t\t\"end\": \"1/6/2014\",\n\t\t\t\t\t\"id\": \"12\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"13\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"6/6/2014\",\n\t\t\t\t\t\"id\": \"13-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"13\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"6/6/2014\",\n\t\t\t\t\t\"id\": \"13\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"14\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"14-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"14\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"14\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"15\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"15-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"15\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"15\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"16\",\n\t\t\t\t\t\"start\": \"2/6/2014\",\n\t\t\t\t\t\"end\": \"7/6/2014\",\n\t\t\t\t\t\"id\": \"16-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"16\",\n\t\t\t\t\t\"start\": \"2/6/2014\",\n\t\t\t\t\t\"end\": \"7/6/2014\",\n\t\t\t\t\t\"id\": \"16\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"17\",\n\t\t\t\t\t\"start\": \"5/6/2014\",\n\t\t\t\t\t\"end\": \"10/6/2014\",\n\t\t\t\t\t\"id\": \"17-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"17\",\n\t\t\t\t\t\"start\": \"5/6/2014\",\n\t\t\t\t\t\"end\": \"17/6/2014\",\n\t\t\t\t\t\"id\": \"17\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"17\",\n\t\t\t\t\t\"start\": \"10/6/2014\",\n\t\t\t\t\t\"end\": \"17/6/2014\",\n\t\t\t\t\t\"id\": \"17-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 7 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"18\",\n\t\t\t\t\t\"start\": \"10/6/2014\",\n\t\t\t\t\t\"end\": \"12/6/2014\",\n\t\t\t\t\t\"id\": \"18-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"18\",\n\t\t\t\t\t\"start\": \"18/6/2014\",\n\t\t\t\t\t\"end\": \"20/6/2014\",\n\t\t\t\t\t\"id\": \"18\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 8 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"19\",\n\t\t\t\t\t\"start\": \"15/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"19-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"19\",\n\t\t\t\t\t\"start\": \"16/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"19\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"20\",\n\t\t\t\t\t\"start\": \"23/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"20-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"20\",\n\t\t\t\t\t\"start\": \"23/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"20\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"21\",\n\t\t\t\t\t\"start\": \"18/6/2014\",\n\t\t\t\t\t\"end\": \"21/6/2014\",\n\t\t\t\t\t\"id\": \"21-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"21\",\n\t\t\t\t\t\"start\": \"18/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"21\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"21\",\n\t\t\t\t\t\"start\": \"21/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"21-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 2 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"22\",\n\t\t\t\t\t\"start\": \"24/6/2014\",\n\t\t\t\t\t\"end\": \"28/6/2014\",\n\t\t\t\t\t\"id\": \"22-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"22\",\n\t\t\t\t\t\"start\": \"25/6/2014\",\n\t\t\t\t\t\"end\": \"28/6/2014\",\n\t\t\t\t\t\"id\": \"22\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"connectors\": [\n\t\t\t{\n\t\t\t\t\"connector\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"1\",\n\t\t\t\t\t\t\"totaskid\": \"2\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\",\n\t\t\t\t\t\t\"fromtaskconnectstart_\": \"1\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"2-2\",\n\t\t\t\t\t\t\"totaskid\": \"3\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"3-2\",\n\t\t\t\t\t\t\"totaskid\": \"4\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"3-2\",\n\t\t\t\t\t\t\"totaskid\": \"6\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"7\",\n\t\t\t\t\t\t\"totaskid\": \"8\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"7\",\n\t\t\t\t\t\t\"totaskid\": \"9\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"12\",\n\t\t\t\t\t\t\"totaskid\": \"16\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"12\",\n\t\t\t\t\t\t\"totaskid\": \"17\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"17-2\",\n\t\t\t\t\t\t\"totaskid\": \"18\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"19\",\n\t\t\t\t\t\t\"totaskid\": \"22\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"milestones\": {\n\t\t\t\"milestone\": [\n\t\t\t\t{\n\t\t\t\t\t\"date\": \"2/6/2014\",\n\t\t\t\t\t\"taskid\": \"12\",\n\t\t\t\t\t\"color\": \"#f8bd19\",\n\t\t\t\t\t\"shape\": \"star\",\n\t\t\t\t\t\"tooltext\": \"Completion of Phase 1\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"legend\": {\n\t\t\t\"item\": [\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"color\": \"#008ee4\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"color\": \"#6baa01\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Slack (Delay)\",\n\t\t\t\t\t\"color\": \"#e44a00\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t }';\n\t\treturn $chartGrantData;\n\t\t\n\t}", "public function BarChart($chart_div,$data,$size='300px'){\n\t//$dataArray[]= \"[\\\".$dataset[0].\"\\\", \". $dataset[1].\"]\"\n\t//$data = implode(\",\",$dataArray);\n\techo \"<div class='box-body' id='\".$chart_div.\"' style='height=\".$size.\"'></div>\";\n\techo \"<script>\n\tnew Chartkick.BarChart(\".$chart_div.\",[\".$data.\"]);\n\t</script>\";\n\t\n}", "public function PieChart($chart_div,$data,$size='300px'){\n\t//$dataArray[]= \"[\\\"\".$dataset[0].\"\\\", \". $dataset[1].\"]\"\n\t//$data = implode(\",\",$dataArray);\n\techo \"<div class='' id='\".$chart_div.\"' style='height=\".$size.\"'></div>\";\n\techo \"<script>\n\tnew Chartkick.PieChart(\\\"\".$chart_div.\"\\\",[\".$data.\"]);\n\t</script>\";\n}", "public function makeChart($type)\n\n {\n\n switch ($type) {\n\n case 'bar':\n\n $galeri = Galeri::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y')) \n\n ->get();\n\n $chart = Charts::database($galeri, 'bar', 'highcharts') \n\n ->title(\"Monthly new Picture\") \n\n ->elementLabel(\"Total Picture\") \n\n ->dimensions(1000, 500) \n\n ->responsive(true) \n\n ->groupByMonth(date('Y'), true);\n\n break;\n\n\n\n case 'pie':\n\n $galeri = Galeri::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y')) \n\n ->get();\n\n $chart = Charts::database($galeri, 'pie', 'highcharts') \n\n ->title(\"Monthly new Picture\") \n\n ->elementLabel(\"Total Picture\") \n\n ->dimensions(1000, 500) \n\n ->responsive(true) \n\n ->groupByMonth(date('Y'), true);\n\n break;\n\n\n\n case 'donut': \n\n $galeri = Galeri::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y')) \n\n ->get();\n\n $chart = Charts::database($galeri, 'donut', 'highcharts') \n\n ->title(\"Monthly new Picture\") \n\n ->elementLabel(\"Total Picture\") \n\n ->dimensions(1000, 500) \n\n ->responsive(true) \n\n ->groupByMonth(date('Y'), true);\n\n break;\n\n\n\n case 'line':\n\n $galeri = Galeri::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y')) \n\n ->get();\n\n $chart = Charts::database($galeri, 'line', 'highcharts') \n\n ->title(\"Monthly new Picture\") \n\n ->elementLabel(\"Total Picture\") \n\n ->dimensions(1000, 500) \n\n ->responsive(true) \n\n ->groupByMonth(date('Y'), true);\n\n break;\n\n\n\n case 'area':\n\n $galeri = Galeri::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y')) \n\n ->get();\n\n $chart = Charts::database($galeri, 'area', 'highcharts') \n\n ->title(\"Monthly new Picture\") \n\n ->elementLabel(\"Total Picture\") \n\n ->dimensions(1000, 500) \n\n ->responsive(true) \n\n ->groupByMonth(date('Y'), true);\n\n break;\n\n\n\n case 'geo':\n\n $chart = Charts::create('geo', 'highcharts')\n\n ->title('Laravel Chart GEO')\n\n ->elementLabel('HDTuto.com Laravel GEO Chart label')\n\n ->labels(['JP', 'ID', 'RU'])\n\n ->colors(['#3D3D3D', '#985689'])\n\n ->values([5,10,20])\n\n ->dimensions(1000,500)\n\n ->responsive(true);\n\n break;\n\n\n\n default:\n\n # code...\n\n break;\n\n }\n\n return view('chart', compact('chart'));\n\n }", "function generateLevelBarChart($pays,$ind,$agr,$con,$it)\n {\n $MyData = new pData(); \n $MyData->addPoints($it,\"IT solution\");\n $MyData->addPoints($ind ,\"Industrie\");\n $MyData->addPoints($con,\"Construction\");\n $MyData->addPoints($agr,\"Agriculture\");\n $MyData->setAxisName(0,\"Nombre de partenaires\");\n $MyData->addPoints($pays,\"Labels\");\n $MyData->setSerieDescription(\"Labels\",\"Months\");\n $MyData->setAbscissa(\"Labels\");\n $Palette = array(\"0\"=>array(\"R\"=>46,\"G\"=>151,\"B\"=>224,\"Alpha\"=>100),\n \"1\"=>array(\"R\"=>128,\"G\"=>128,\"B\"=>128,\"Alpha\"=>100),\n \"2\"=>array(\"R\"=>204,\"G\"=>102,\"B\"=>0,\"Alpha\"=>100),\n \"3\"=>array(\"R\"=>0,\"G\"=>153,\"B\"=>0,\"Alpha\"=>100),\n );\n $MyData->setPalette(\"IT solution\",array(\"R\"=>46,\"G\"=>151,\"B\"=>224,\"Alpha\"=>100)) ; \n $MyData->setPalette(\"Industrie\",array(\"R\"=>128,\"G\"=>128,\"B\"=>128,\"Alpha\"=>100)) ; \n $MyData->setPalette(\"Construction\",array(\"R\"=>204,\"G\"=>102,\"B\"=>0,\"Alpha\"=>100)) ;\n $MyData->setPalette(\"Agriculture\",array(\"R\"=>0,\"G\"=>153,\"B\"=>0,\"Alpha\"=>100)) ;\n\n\n $myPicture = new pImage(700,230,$MyData);\n $Settings = array(\"R\"=>194, \"G\"=>92, \"B\"=>4, \"Dash\"=>1, \"DashR\"=>204, \"DashG\"=>102, \"DashB\"=>14);\n $myPicture->drawFilledRectangle(0,0,700,390,$Settings);\n /* Create the pChart object */\n $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,array(\"StartR\"=>240,\"StartG\"=>240,\"StartB\"=>240,\"EndR\"=>180,\"EndG\"=>180,\"EndB\"=>180,\"Alpha\"=>100));\n $myPicture->drawGradientArea(0,0,700,230,DIRECTION_HORIZONTAL,array(\"StartR\"=>240,\"StartG\"=>240,\"StartB\"=>240,\"EndR\"=>180,\"EndG\"=>180,\"EndB\"=>180,\"Alpha\"=>20));\n /* Set the default font properties */\n $myPicture->setFontProperties(array(\"FontName\"=>\"../app/includes/pChart/fonts/pf_arma_five.ttf\",\"FontSize\"=>6));\n /* Draw the scale and the chart */\n $myPicture->setGraphArea(60,20,680,190);\n $myPicture->drawScale(array(\"DrawSubTicks\"=>TRUE,\"Mode\"=>SCALE_MODE_ADDALL_START0));\n $myPicture->setShadow(FALSE);\n \n\n $myPicture->drawStackedBarChart(array(\"DisplayPos\"=>LABEL_POS_INSIDE,\"DisplayValues\"=>false ,\"Rounded\"=>TRUE,\"Surrounding\"=>30));\n /* Write the chart legend */\n $myPicture->drawLegend(380,210,array(\"Style\"=>LEGEND_NOBORDER,\"Mode\"=>LEGEND_HORIZONTAL));\n /* Render the picture (choose the best way) */\n $myPicture->Render(\"assets/images/barLevelChart1.png\");\n }", "function makeFigures($controller) \n {\n $revision_id = param('revision_id');\n $ci = $controller->getCi();\n $content= \"\";\n\t\t\t\t\n $need_legend = false;\n\n if (count($ci->getDependencies())) {\n $need_legend = true;\n $content .= $this->makeChart($ci, false, $revision_id);\n }\n \n if (count($ci->getDependants())) {\n $need_legend = true;\n $content .= $this->makeChart($ci, true, $revision_id);\n }\n \n if ($need_legend) {\n // $content .= $this->makeChart('chart.php?legend=true', _(\"Legend for the above figure(s)\"));\n }\n\t\t\n return $content;\n }", "function open_risk_technology_pie($project) {\n\t$chart = new Highchart ();\n\t\n\t$chart->chart->renderTo = \"open_risk_technology_pie\";\n\t$chart->chart->plotBackgroundColor = null;\n\t$chart->chart->plotBorderWidth = null;\n\t$chart->chart->plotShadow = false;\n\t$chart->title->text = \"Technologies\";\n\t\n\t$chart->tooltip->formatter = new HighchartJsExpr ( \"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\" );\n\t\n\t$chart->plotOptions->pie->allowPointSelect = 1;\n\t$chart->plotOptions->pie->cursor = \"pointer\";\n\t$chart->plotOptions->pie->dataLabels->enabled = false;\n\t$chart->plotOptions->pie->showInLegend = 1;\n\t$chart->credits->enabled = false;\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `technology` b ON a.technology = b.value WHERE status != \\\"Closed\\\" AND project_version_id = $project GROUP BY b.name ORDER BY COUNT(*) DESC\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the array is empty\n\tif (empty ( $array )) {\n\t\t$data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Create the data array\n\t\tforeach ( $array as $row ) {\n\t\t\t$data [] = array (\n\t\t\t\t\t$row ['name'],\n\t\t\t\t\t( int ) $row ['num'] \n\t\t\t);\n\t\t}\n\t\t\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"pie\",\n\t\t\t\t'name' => \"Status\",\n\t\t\t\t'data' => $data \n\t\t);\n\t}\n\t\n\t$htmloutput = '';\n\t$htmloutput.= \"<div id=\\\"open_risk_technology_pie\\\"></div>\\n\";\n\t$htmloutput.= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput.= $chart->render ( \"open_risk_technology_pie\" );\n\t$htmloutput.= \"</script>\\n\";\n\treturn $htmloutput;\n}", "public function SummaryBChart($meta,$dataset){\n// \t\t$rowLabels = array(\"A+\",\"A\",\"B+\",\"B\",\"C+\",\"C\",\"D+\",\"D\",\"F\"); \n\t\t$rowLabels = array(\"Very Good\",\"Good\",\"Average\",\"Poor\",\"very Poor\");\n\t\t\n\t\t//array( \"SupaWidget\", \"WonderWidget\", \"MegaWidget\", \"HyperWidget\" );\n\t\t//TODO: should come in $meta\n\t\t$chartWidth = 160;\n\t\t$chartHeight = 80;\n\t\t$chartTopMargin = 20;\n\t\t$chartBottomMargin = 20;\n\t\t$chartXPos = 20;\n\t\t$chartYPos = (int)$this->GetY() + $chartHeight + $chartTopMargin; //100;\n\t\t$chartXLabel = \"Grades\";\n\t\t$chartYLabel = \"Grading Score\";\n\t\t\n\t\t//TODO: should come in $meta\n\t\t$chartColours = array(\n\t\t\t\tarray( 255, 100, 100 ),\n\t\t\t\tarray( 100, 255, 100 ),\n\t\t\t\tarray( 100, 100, 255 ),\n\t\t\t\tarray( 255, 255, 100 ),\n\t\t\t\tarray( 255, 200, 200 ),\n// \t\t\t\tarray( 200, 255, 200 ),\n// \t\t\t\tarray( 200, 200, 255 ),\n// \t\t\t\tarray( 255, 255, 200 ),\n// \t\t\t\tarray( 50, 100, 200 ),\n\t\t);\n\t\t//TODO: should come in $dataset\n\t\t// Compute the X scale\n\t\t$data=$this->transpose($dataset);\n\t\t$xScale = count($rowLabels) / ( $chartWidth - 40 );\n\t\n\t\t// Compute the Y scale\n\t\n\t\t$maxTotal = 0;\n\t\n\t\tforeach ( $data as $dataRow ) {\n\t\t\t$totalSales = 0;\n\t\t\tforeach ($dataRow as $dataCell) $totalSales += $dataCell;\n\t\t\t$maxTotal = ( $totalSales > $maxTotal ) ? $totalSales : $maxTotal;\n\t\t}\n\t\n\t\t$yScale = $maxTotal / $chartHeight;\n\t\t$chartYStep = $maxTotal/10;\n\t\n\t\t// Compute the bar width\n\t\t$barWidth = ( 1 / $xScale ) / 1.5;\n\t\n\t\t// Add the axes:\n\t\t$this->SetFont( '', '', 10 );\n\t\n\t\t// X axis\n\t\t$this->Line( $chartXPos + 30, $chartYPos, $chartXPos + $chartWidth, $chartYPos );\n\t\t//$this->Arrow( $chartXPos + 30, $chartYPos, $chartXPos + $chartWidth, $chartYPos, 1 );\n\t\n\t\tfor ( $i=0; $i < count( $rowLabels ); $i++ ) {\n\t\t\t$this->SetXY( $chartXPos + 40 + $i / $xScale, $chartYPos );\n\t\t\t$this->Cell( $barWidth, 10, $rowLabels[$i], 0, 0, 'C' );\n\t\t}\n\t\n\t\t// Y axis\n\t\t$this->Line( $chartXPos + 30, $chartYPos, $chartXPos + 30, $chartYPos - $chartHeight - 8 );\n\t\t//$this->Arrow( $chartXPos + 30, $chartYPos+2, $chartXPos + 30, $chartYPos - $chartHeight - 8, 1 );\n\t\t//Y axis ticks\n\t\t//for ( $i=0; $i <= $maxTotal; $i += $chartYStep ) {\n\t\t//\t$this->SetXY( $chartXPos + 7, $chartYPos - 5 - $i / $yScale );\n\t\t//\t$this->Cell( 20, 10, '$' . number_format( $i ), 0, 0, 'R' );\n\t\t//\t$this->Line( $chartXPos + 28, $chartYPos - $i / $yScale, $chartXPos + 30, $chartYPos - $i / $yScale );\n\t\t//}\n\t\n\t\tfor ( $i=0; $i <= $maxTotal; $i += $chartYStep ) {\n\t\t\t$this->SetXY( $chartXPos + 7, $chartYPos - 5 - $i / $yScale );\n\t\t\t$this->Cell( 20, 10, '' . number_format( $i ), 0, 0, 'R' );\n\t\t\t$this->Line( $chartXPos + 28, $chartYPos - $i / $yScale, $chartXPos + $chartWidth, $chartYPos - $i / $yScale, array('dash'=>4) );\n\t\t}\n\t\t// Add the axis labels\n\t\t$this->SetFont( '', 'B', 12 );\n\t\t$this->SetXY( $chartWidth / 2 + 20, $chartYPos + 8 );\n\t\t$this->Cell( 30, 10, $chartXLabel, 0, 0, 'C' );\n\t\t$this->SetXY( $chartXPos + 7, $chartYPos - $chartHeight - 12 );\n\t\t$this->Cell( 20, 10, $chartYLabel, 0, 0, 'R' );\n\t\n\t\t// Create the bars\n\t\t$xPos = $chartXPos + 40;\n\t\t$bar = 0;\n\t\n\t\tforeach ($data as $dataRow ) {\n\t\t\t// Total up the sales figures for this product\n\t\t\t$totalSales = 0;\n\t\t\tforeach ( $dataRow as $dataCell ) $totalSales += $dataCell;\n\t\t\t// Create the bar\n\t\t\t$colourIndex = $bar % count( $chartColours );\n\t\t\t\t\n\t\t\t$this->SetFillColor( $chartColours[$colourIndex][0], $chartColours[$colourIndex][1], $chartColours[$colourIndex][2] );\n\t\t\t$this->Rect( $xPos, $chartYPos - ( $totalSales / $yScale ), $barWidth, $totalSales / $yScale, 'DF', array('all'=>array('dash'=>0)));\n\t\t\t$xPos += ( 1 / $xScale );\n\t\t\t$bar++;\n\t\t}\n\t\n\t}", "public function chart($id_chart, $title, $single) {\n $this->content_chart($id_chart, $title, $single);\n }", "public function actionChart()\n {\n $data = Account::find()->where('id_user='.Yii::$app->user->id)->all();\n $accounts = ArrayHelper::map($data, 'id', 'title');\n\n $operationsByAccount = [];\n foreach($accounts as $id_account=>$title){\n $operations = OperationController::findOperationsOfAccount($id_account);\n $operationsByAccount[$title] = $this->splitValueByMonths($operations);\n }\n\n $chart = new Chart($operationsByAccount);\n $data = $chart->data;\n\n return $this->render('chart', [\n 'data' => $data,\n ]);\n }", "public function chart2()\n {\n return view(\"chart2\");\n }", "public function charts()\n {\n return view('pages.charts');\n }", "public function ColumnChart($chart_div,$data,$size='300px'){\n\t//$dataArray[]= \"[\\\".$dataset[0].\"\\\", \". $dataset[1].\"]\"\n\t//$data = implode(\",\",$dataArray);\n\techo \"<div class='box-body' id='\".$chart_div.\"' style='height=\".$size.\"'></div>\";\n\techo \"<script>\n\tnew Chartkick.ColumnChart(\".$chart_div.\",[\".$data.\"]);\n\t</script>\";\n\t\n}", "public function get_main_chart() {\n\n\t\tif ( empty( $this->category_ids ) ) {\n\t\t\t?>\n\t\t\t<div class=\"chart-container\">\n\t\t\t\t<p class=\"chart-prompt\"><?php _e( '&larr; Choose a category to view stats', 'woocommerce-cost-of-goods' ); ?></p>\n\t\t\t</div>\n\t\t\t<?php\n\t\t}\n\n\t\t$chart_data = array();\n\t\t$index = 0;\n\n\t\tforeach ( $this->category_ids as $category_id ) {\n\n\t\t\t$category = get_term( $category_id, 'product_cat' );\n\t\t\t$data = $this->get_report_data( $category->term_id );\n\n\t\t\t$chart_data[ $category->term_id ]['category'] = $category->name;\n\t\t\t$chart_data[ $category->term_id ]['data'] = array_values( $this->prepare_chart_data( $data->profits, 'post_date', 'order_item_profit', $this->chart_interval, $this->start_date, $this->chart_groupby ) );\n\n\t\t\t$index ++;\n\t\t}\n\n\t\t?>\n\t\t<div class=\"chart-container\">\n\t\t\t<div class=\"chart-placeholder main\"></div>\n\t\t</div>\n\t\t<script type=\"text/javascript\">\n\t\t\tvar main_chart;\n\n\t\t\tjQuery(function(){\n\t\t\t\tvar drawGraph = function( highlight ) {\n\t\t\t\t\tvar series = [\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t$index = 0;\n\t\t\t\t\t\t\tforeach ( $chart_data as $data ) {\n\t\t\t\t\t\t\t\t$color = isset( $this->chart_colors[ $index ] ) ? $this->chart_colors[ $index ] : $this->chart_colors[0];\n\t\t\t\t\t\t\t\t$width = $this->barwidth / sizeof( $chart_data );\n\t\t\t\t\t\t\t\t$offset = ( $width * $index );\n\t\t\t\t\t\t\t\t$series = $data['data'];\n\t\t\t\t\t\t\t\tforeach ( $series as $key => $series_data )\n\t\t\t\t\t\t\t\t\t$series[ $key ][0] = $series_data[0] + $offset;\n\t\t\t\t\t\t\t\techo '{\n\t\t\t\t\t\t\t\t\tlabel: \"' . esc_js( $data['category'] ) . '\",\n\t\t\t\t\t\t\t\t\tdata : jQuery.parseJSON( \"' . json_encode( $series ) . '\" ),\n\t\t\t\t\t\t\t\t\tcolor: \"' . $color . '\",\n\t\t\t\t\t\t\t\t\tbars : {\n\t\t\t\t\t\t\t\t\t\tfillColor: \"' . $color . '\",\n\t\t\t\t\t\t\t\t\t\tfill : true,\n\t\t\t\t\t\t\t\t\t\tshow : true,\n\t\t\t\t\t\t\t\t\t\tlineWidth: 1,\n\t\t\t\t\t\t\t\t\t\talign : \"center\",\n\t\t\t\t\t\t\t\t\t\tbarWidth : ' . $width * 0.75 . ',\n\t\t\t\t\t\t\t\t\t\tstack : false\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t' . $this->get_currency_tooltip() . ',\n\t\t\t\t\t\t\t\t\tenable_tooltip: true,\n\t\t\t\t\t\t\t\t\tprepend_label : true\n\t\t\t\t\t\t\t\t},';\n\t\t\t\t\t\t\t\t$index++;\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\tif ( highlight !== 'undefined' && series[ highlight ] ) {\n\t\t\t\t\t\thighlight_series = series[ highlight ];\n\n\t\t\t\t\t\thighlight_series.color = '#9c5d90';\n\n\t\t\t\t\t\tif ( highlight_series.bars ) {\n\t\t\t\t\t\t\thighlight_series.bars.fillColor = '#9c5d90';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( highlight_series.lines ) {\n\t\t\t\t\t\t\thighlight_series.lines.lineWidth = 5;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmain_chart = jQuery.plot(\n\t\t\t\t\t\tjQuery( '.chart-placeholder.main' ),\n\t\t\t\t\t\tseries,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\tshow: false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tgrid: {\n\t\t\t\t\t\t\t\tcolor : '#aaa',\n\t\t\t\t\t\t\t\tborderColor: 'transparent',\n\t\t\t\t\t\t\t\tborderWidth: 0,\n\t\t\t\t\t\t\t\thoverable : true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\txaxes: [ {\n\t\t\t\t\t\t\t\tcolor : '#aaa',\n\t\t\t\t\t\t\t\treserveSpace: true,\n\t\t\t\t\t\t\t\tposition : 'bottom',\n\t\t\t\t\t\t\t\ttickColor : 'transparent',\n\t\t\t\t\t\t\t\tmode : 'time',\n\t\t\t\t\t\t\t\ttimeformat : \"<?php if ( $this->chart_groupby == 'day' ) echo '%d %b'; else echo '%b'; ?>\",\n\t\t\t\t\t\t\t\tmonthNames : <?php echo json_encode( array_values( $GLOBALS['wp_locale']->month_abbrev ) ); ?>,\n\t\t\t\t\t\t\t\ttickLength : 1,\n\t\t\t\t\t\t\t\tminTickSize : [1, \"<?php echo esc_js( $this->chart_groupby ); ?>\"],\n\t\t\t\t\t\t\t\ttickSize : [1, \"<?php echo esc_js( $this->chart_groupby ); ?>\"],\n\t\t\t\t\t\t\t\tfont : {\n\t\t\t\t\t\t\t\t\tcolor: '#aaa'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} ],\n\t\t\t\t\t\t\tyaxes: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmin : 0,\n\t\t\t\t\t\t\t\t\ttickDecimals: 2,\n\t\t\t\t\t\t\t\t\tcolor : 'transparent',\n\t\t\t\t\t\t\t\t\tfont : { color: \"#aaa\" }\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\n\t\t\t\t\tjQuery('.chart-placeholder').resize();\n\n\t\t\t\t};\n\n\t\t\t\tdrawGraph();\n\n\t\t\t\tjQuery('.highlight_series').hover(\n\t\t\t\t\tfunction() {\n\t\t\t\t\t\tdrawGraph( jQuery( this ).data( 'series' ) );\n\t\t\t\t\t},\n\t\t\t\t\tfunction() {\n\t\t\t\t\t\tdrawGraph();\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\t\t</script>\n\t\t<?php\n\t}", "function open_risk_category_pie($project) {\n\t$chart = new Highchart ();\n\t\n\t$chart->chart->renderTo = \"open_risk_category_pie\";\n\t$chart->chart->plotBackgroundColor = null;\n\t$chart->chart->plotBorderWidth = null;\n\t$chart->chart->plotShadow = false;\n\t$chart->title->text = \"Categories\";\n\t\n\t$chart->tooltip->formatter = new HighchartJsExpr ( \"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\" );\n\t\n\t$chart->plotOptions->pie->allowPointSelect = 1;\n\t$chart->plotOptions->pie->cursor = \"pointer\";\n\t$chart->plotOptions->pie->dataLabels->enabled = false;\n\t$chart->plotOptions->pie->showInLegend = 1;\n\t$chart->credits->enabled = false;\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `category` b ON a.category = b.value WHERE status != \\\"Closed\\\" AND project_version_id = $project GROUP BY b.name ORDER BY COUNT(*) DESC\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the array is empty\n\tif (empty ( $array )) {\n\t\t$data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Create the data array\n\t\tforeach ( $array as $row ) {\n\t\t\t$data [] = array (\n\t\t\t\t\t$row ['name'],\n\t\t\t\t\t( int ) $row ['num'] \n\t\t\t);\n\t\t}\n\t\t\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"pie\",\n\t\t\t\t'name' => \"Status\",\n\t\t\t\t'data' => $data \n\t\t);\n\t}\n\t\n\t$htmloutput = '';\n\t$htmloutput.= \"<div id=\\\"open_risk_category_pie\\\"></div>\\n\";\n\t$htmloutput.= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput.= $chart->render ( \"open_risk_category_pie\" );\n\t$htmloutput.= \"</script>\\n\";\n\treturn $htmloutput;\n}", "function generateDetailChart($chartType,$result,$criteria,$chart_path)\r\n\t{\r\n \r\n\tif ($chartType==\"gw_load\") {\r\n\t\t\t\t\r\n\t\t\t\t$_SESSION[\"gw_criteria\"] = $criteria;\r\n\t\t\t\t$_SESSION[\"gwLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"gw_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name =$_SERVER[\"PHP_AUTH_USER\"]. \"gw_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$gw_id = $_SESSION[\"gw_id\"];\r\n\t\t\t\t$title = \"Gateway Load (\".$gw_id.\")\";\r\n\t\t\t\t\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t//\tmysql_data_seek($result ,0);\r\n\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\t$mon = date(\"M\", strtotime($row[\"login\"])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[\"login\"]));\r\n\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t \t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \t\t\t\r\n\r\n }\r\n\t \t \r\n/***************************************************************Generate Service Load Graph *********************************************************************************/\r\n\r\n\t\tif ($chartType==\"service_load\") {\r\n\t\t\r\n\t\t\t $_SESSION[\"sv_criteria\"] = $criteria;\r\n\t\t\t\t\r\n\t\t \t\t$_SESSION[\"svLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"sv_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"sv_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$sv_id = $_SESSION[\"sv_id\"];\r\n\t\t\t\t$title = \"Service Load (\".$sv_id.\")\";\r\n\t\t\t\t\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\t\t\t\t\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\t\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t if ($groupby ==\"ByMonth\") {\r\n\t\t\t\t\t\t $mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t \t \r\n/********************************************************************Generate Top Ten users Graph *************************************************************************/\r\n \r\n\t\tif ($chartType==\"top_ten_users\") {\r\n\t\t\r\n\t\t\t $_SESSION[\"tt_users_criteria\"] = $criteria;\r\n\r\n\t\t\t$_SESSION[\"userLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"user_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"user_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$user_id = $_SESSION[\"user_id\"];\r\n\t\t\t\t$title = \"User Load (\".$user_id.\")\";\r\n\t\t\t\t\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\t\t\t\t\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\t if ($groupby ==\"ByMonth\") {\r\n\t\t\t\t\t\t $mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t \t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \t\t\t\r\n\t\t\t}\r\n\r\n/**************************************************************Generate Direction Load Graph *******************************************************************************/\r\n\r\n\t\tif ($chartType==\"direction_load\") {\r\n\t\t \r\n\t\t \t$_SESSION[\"direction_criteria\"] = $criteria;\r\n\r\n\t\t\t $_SESSION[\"dirLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"direction_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"direction_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$dir_id = $_SESSION[\"dir_id\"];\r\n\t\t\t\t$title = \"Direction Load (\".$dir_id.\")\";\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t \t\t \t\tif ($groupby==\"ByMonth\") {\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \t$mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\r\n/*********************************************************************Generate Destination host Load Graph *****************************************************************/\r\n\r\n\t\t\tif ($chartType==\"destination_host_load\") {\r\n\t\t\t\r\n\t\t\t\t$_SESSION[\"destination_host_criteria\"] = $criteria;\r\n\r\n\t\t\t \t$_SESSION[\"destLoadDetail\"] = $_SERVER[\"PHP_AUTH_USER\"].\"destination_host_\".$criteria.\"_bar_load\";\r\n\t\t \t\t$image_name = $_SERVER[\"PHP_AUTH_USER\"].\"destination_host_\".$criteria.\"_bar_load.png\";\r\n\t\t\t\t$dest_id = $_SESSION[\"dest_id\"];\r\n\t\t\t\t$title = \"Destination Host Load (\".$dest_id.\")\";\r\n\t\t\t\t$groupby = $_SESSION[\"gw_group\"];\r\n\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t$total=0;\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t \t\t\r\n\r\n\t\t\t\t\t\t $DataSet->AddPoint($row[\"count\"],\"Serie.$j\"); \r\n\t\t\t\tif ($groupby==\"ByMonth\") {\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \t$mon = date(\"M\", strtotime($row[login])); \r\n \t\t\t\t\t\t$yr \t\t\t= date('Y', strtotime($row[login]));\r\n\t\t\t\t\t\t\t$DataSet->SetSerieName($mon.\"-\".$yr,\"Serie.$j\"); \r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t \t$DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t}\r\n\t\t\t \r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"$title\",50,50,50,485); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t}", "function open_risk_technology_pie()\n{\n $chart = new Highchart();\n\n $chart->chart->renderTo = \"open_risk_technology_pie\";\n $chart->chart->plotBackgroundColor = null;\n $chart->chart->plotBorderWidth = null;\n $chart->chart->plotShadow = false;\n $chart->title->text = \"Technologies\";\n\n $chart->tooltip->formatter = new HighchartJsExpr(\"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\");\n\n $chart->plotOptions->pie->allowPointSelect = 1;\n $chart->plotOptions->pie->cursor = \"pointer\";\n $chart->plotOptions->pie->dataLabels->enabled = false;\n $chart->plotOptions->pie->showInLegend = 1;\n $chart->credits->enabled = false;\n\n // Open the database connection\n $db = db_open();\n\n // Query the database\n $stmt = $db->prepare(\"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `technology` b ON a.technology = b.value GROUP BY b.name ORDER BY COUNT(*) DESC\");\n $stmt->execute();\n\n // Store the list in the array\n $array = $stmt->fetchAll();\n\n // Close the database connection\n db_close($db);\n\n // Create the data array\n foreach ($array as $row)\n {\n $data[] = array($row['name'], (int)$row['num']);\n }\n\n $chart->series[] = array('type' => \"pie\",\n 'name' => \"Status\",\n 'data' => $data);\n\n echo \"<div id=\\\"open_risk_technology_pie\\\"></div>\\n\";\n echo \"<script type=\\\"text/javascript\\\">\";\n echo $chart->render(\"open_risk_technology_pie\");\n echo \"</script>\\n\";\n}", "public function run() {\n $assetUrl = Yii::app()->assetManager->publish(dirname(__FILE__) . '/assets/');\n $this->_assetUrl = $assetUrl;\n\n // Appending holder div\n $this->htmlOptions['id'] = $this->getId();\n echo CHtml::openTag('div', $this->htmlOptions) . CHtml::closeTag('div');\n\n //including scripts\n $this->_includeScripts();\n\n // Get requested chart\n switch ($this->type) {\n case self::CHART_NORMAL: {\n $this->_getNDChart();\n break;\n }\n }\n }", "function epi_chartjs($category_field, $period_field, $value_field, $input_array, $type, $id, $pxheight = 400, $chart_title = \"Line Chart\", $opacity = 1) {\n\tif (is_array($input_array)) { \n\t\t$datasets = $input_array; \n\t} else { \n\t\treturn false; \n\t}\n\tif ($type == \"Line\" || $type == \"Area\") {\n\t\t$jstype = \"Line\";\n\t} else if ($type == \"Bar\" || $type ==\"HorizontalBar\") {\n\t\t$jstype = \"Bar\";\n\t}\n\t$count = count($datasets);\n\t$line_array['labels'] = explode(',', $datasets[0]['gc_labels']);\n\tforeach ($datasets as $key=>$dataset) {\n\t\t$line_array['datasets'][$key]['label'] = $dataset[$category_field];\n\t\t$line_array['datasets'][$key] = return_color_array(($key + 1), $count, $line_array['datasets'][$key], $opacity);\n\t\t$line_array['datasets'][$key]['data'] = explode(',',$dataset['gc_values']);\n\t}\n\t$html = '\n\t<div class=\"box box-primary\">\n\t<div class=\"box-header with-border\">\n\t\t<h3 class=\"box-title\">'.$chart_title.'</h3>\n\t\t<div class=\"box-tools pull-right\">\n\t\t<button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"collapse\"><i class=\"fa fa-minus\"></i></button>\n\t\t<button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"remove\"><i class=\"fa fa-times\"></i></button>\n\t\t</div>\n\t</div>\n\t<div class=\"box-body\">\n\t<div class=\"chart\">\n\t\t<canvas id=\"chart_'.$id.'\" style=\"height:'.intval($pxheight).'px\"></canvas>\n\t</div>\n\t</div>\n\t<!-- /.box-body -->\n\t</div>';\n\t$html.= '\n\t<script language=\"javascript\">\n\t var chartCanvas = $(\"#chart_'.$id.'\").get(0).getContext(\"2d\");\n // This will get the first returned node in the jQuery collection.\n var chart_'.$id.' = new Chart(chartCanvas);';\n\t$json_array = json_encode($line_array);\n\t$html.= '\n\tvar dynamicData = '.$json_array.';\n\t';\n\t$html.= 'var chartOptions = {\n\t\tdefaultFontFamily: \"\\'Source Sans Pro\\', sans-serif\",\n\t\tshowScale: true,\n\t\tscaleShowGridLines: false,\n\t\tscaleGridLineColor: \"rgba(0,0,0,.05)\",\n\t\tscaleGridLineWidth: 1,\n\t\tscaleShowHorizontalLines: true,\n\t\tscaleShowVerticalLines: true,\n\t\tbezierCurve: true,\n\t\tbezierCurveTension: 0.3,\n\t\tpointDot: true,\n\t\tpointDotRadius: 4,\n\t\tpointDotStrokeWidth: 1,\n\t\tpointHitDetectionRadius: 20,\n\t\tdatasetStroke: true,\n\t\tdatasetStrokeWidth: 2,\n\t\tdatasetFill: '.($type == \"Line\" ? \"false\" : \"true\").',\n\t\tlegendTemplate: \"<ul class=\\\"<%=name.toLowerCase()%>-legend\\\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\\\"background-color:<%=datasets[i].strokeColor%>\\\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>\",\n\t\tmaintainAspectRatio: true,\n\t\tresponsive: true\n\t\t};\n\t\t//Create the line chart\n\t\tchart_'.$id.'.'.$jstype.'(dynamicData, chartOptions);\n\t\t</script>\n\t\t';\n\treturn $html;\n}", "function piechart($data, $label, $width, $img_file)\n{\n\n// true = show label, false = don't show label.\n$show_label = true;\n\n// true = show percentage, false = don't show percentage.\n$show_percent = true;\n\n// true = show text, false = don't show text.\n$show_text = true;\n\n// true = show parts, false = don't show parts.\n$show_parts = true;\n\n// 'square' or 'round' label.\n$label_form = 'round';\n\n\n\n// Colors of the slices.\n$colors = array('003366', 'CCD6E0', '7F99B2', 'F7EFC6', 'C6BE8C', 'CC6600', '990000', '520000', 'BFBFC1', '808080', '9933FF', 'CC6699', '99FFCC', 'FF6666', '3399CC', '99FF66', '3333CC', 'FF0033', '996699', 'FF00FF', 'CCCCFF', '000033', '99CC33', '996600', '996633', '996666', '3399CC', '663333');\n\n// true = use random colors, false = use colors defined above\n$random_colors = false;\n\n// Background color of the chart\n$background_color = 'F6F6F6';\n\n// Text color.\n$text_color = '000000';\n\n\n\n// true = darker shadow, false = lighter shadow...\n$shadow_dark = true;\n\n/***************************************************\n* DO NOT CHANGE ANYTHING BELOW THIS LINE!!! *\n****************************************************/\n\nif (!function_exists('imagecreate'))\n\tdie('Sorry, the script requires GD2 to work.');\n\n\n\n\n$img = ImageCreateTrueColor($width + getxtrawidth($data, $label), $height +getxtraheight($data, $label) );\n\nImageFill($img, 0, 0, colorHex($img, $background_color));\n\nforeach ($colors as $colorkode) \n{\n\t$fill_color[] = colorHex($img, $colorkode);\n\t$shadow_color[] = colorHexshadow($img, $colorkode, $shadow_dark);\n}\n\n$label_place = 5;\n\nif (is_array($label))\n{\n\tfor ($i = 0; $i < count($label); $i++) \n\t{\n\t\tif ($label_form == 'round' && $show_label)\n\t\t{\n\t\t\timagefilledellipse($img, $width + 11,$label_place + 5, 10, 10, colorHex($img, $colors[$i % count($colors)]));\n\t\t\timageellipse($img, $width + 11, $label_place + 5, 10, 10, colorHex($img, $text_color));\n\t\t}\n\t\telse if ($label_form == 'square' && $show_label)\n\t\t{\n\t\t\timagefilledrectangle($img, $width + 6, $label_place, $width + 16, $label_place + 10,colorHex($img, $colors[$i % count($colors)]));\n\t\t\timagerectangle($img, $width + 6, $label_place, $width + 16, $label_place + 10, colorHex($img, $text_color));\n\t\t}\n\n\t\tif ($show_percent)\n\t\t\t$label_output = $number[$i] . ' ';\n\t\tif ($show_text)\n\t\t\t$label_output = $label_output.$label[$i] . ' ';\n\t\tif ($show_parts)\n\t\t\t$label_output = $label_output . '- ' . $data[$i];\n\n\t\timagestring($img, '2', $width + 20, $label_place, $label_output, colorHex($img, $text_color));\n\t\t$label_output = '';\n\n\t\t$label_place = $label_place + 15;\n\t}\n}\n\n$centerX = round($width / 2);\n$centerY = round($height / 2);\n$diameterX = $width - 4;\n$diameterY = $height - 4;\n\n$data_sum = array_sum($data);\n\n$start = 270;\n\n$value_counter = 0;\n$value = 0;\n\nfor ($i = 0; $i < count($data); $i++) \n{\n\t$value += $data[$i];\n\t$end = ceil(($value/$data_sum) * 360) + 270;\n\t$slice[] = array($start, $end, $shadow_color[$value_counter % count($shadow_color)], $fill_color[$value_counter % count($fill_color)]);\n\t$start = $end;\n\t$value_counter++;\n}\n\nfor ($i = ($centerY + $shadow_height); $i > $centerY; $i--) \n{\n\tfor ($j = 0; $j < count($slice); $j++)\n\t{\n\t\tif ($slice[$j][0] == $slice[$j][1])\n\t\t\tcontinue;\n\t\tImageFilledArc($img, $centerX, $i, $diameterX, $diameterY, $slice[$j][0], $slice[$j][1], $slice[$j][2], IMG_ARC_PIE);\n\t}\n}\n\nfor ($j = 0; $j < count($slice); $j++)\n{\n\tif ($slice[$j][0] == $slice[$j][1])\n\t\tcontinue;\n\tImageFilledArc($img, $centerX, $centerY, $diameterX, $diameterY, $slice[$j][0], $slice[$j][1], $slice[$j][3], IMG_ARC_PIE);\n}\nheader('Content-type: image/jpg');\nImageJPEG($img, NULL, 100);\nImageDestroy($img);\n}", "function charts_shortcode( $atts ) {\n\n\t// Attribut par défauts pour les Shortcodes\n\t\n\textract( shortcode_atts(\n\t\tarray(\n\t\t\t'type' => 'pie',\n\t\t\t'title' => 'chart',\n\t\t\t'canvaswidth' => '250',\n\t\t\t'canvasheight' => '250',\n\t\t\t'width'\t\t\t => '100%',\n\t\t\t'height'\t\t => 'auto',\n\t\t\t'margin'\t\t => '',\n\t\t\t'relativewidth'\t => '1',\n\t\t\t'align' => '',\n\t\t\t'class'\t\t\t => '',\n\t\t\t'labels' => '',\n\t\t\t'data' => '30,50,100',\n\t\t\t'datasets' => '30,50,100 next 20,90,75',\n\t\t\t'colors' => '#69D2E7,#E0E4CC,#F38630,#96CE7F,#CEBC17,#CE4264',\n\t\t\t'fillopacity' => '0.7',\n\t\t\t'pointstrokecolor' => '#FFFFFF',\n\t\t\t'animation'\t\t => 'true',\n\t\t\t'scalefontsize' => '12',\n\t\t\t'scalefontcolor' => '#666',\n\t\t\t'scaleoverride' => 'false',\n\t\t\t'scalesteps' \t => 'null',\n\t\t\t'scalestepwidth' => 'null',\n\t\t\t'scalestartvalue' => 'null'\n\t\t), $atts )\n\t);\n\n\t// preparer la sauce\n\t\n\t$title = str_replace(' ', '', $title);\n\t$data = explode(',', str_replace(' ', '', $data));\n\t$datasets = explode(\"next\", str_replace(' ', '', $datasets));\n\n\t// checker les couleurs\n\n\tif ($colors != \"\") {\n\t\t$colors = explode(',', str_replace(' ','',$colors));\n\t} else {\n\t\t$colors = array('#69D2E7','#E0E4CC','#F38630','#96CE7F','#CEBC17','#CE4264');\n\t}\n\n\t(strpos($type, 'lar') !== false ) ? $type = 'PolarArea' : $type = ucwords($type);\n\t\n\t$currentchart = '<div class=\"'.$align.' '.$class.' icps-chart-wrap\" style=\"width:'.$width.'; height:'.$height.';margin:'.$margin.';\" data-proportion=\"'.$relativewidth.'\">';\n\t$currentchart .= '<canvas id=\"'.$title.'\" height=\"'.$canvasheight.'\" width=\"'.$canvaswidth.'\" class=\"icps_charts_canvas\" data-proportion=\"'.$relativewidth.'\"></canvas></div>\n\t<script>';\n\t$currentchart .= 'var '.$title.'Ops = {\n\t\tanimation: '.$animation.',';\n\n\tif ($type == 'Line' || $type == 'Radar' || $type == 'Bar' || $type == 'PolarArea') {\n\t\t$currentchart .=\t'scaleFontSize: '.$scalefontsize.',';\n\t\t$currentchart .=\t'scaleFontColor: \"'.$scalefontcolor.'\",';\n\t\t$currentchart .= 'scaleOverride:' .$scaleoverride.',';\n\t\t$currentchart .= 'scaleSteps:' \t .$scalesteps.',';\n\t\t$currentchart .= 'scaleStepWidth:' .$scalestepwidth.',';\n\t\t$currentchart .= 'scaleStartValue:' .$scalestartvalue;\n\t}\n\n\t$currentchart .= '}; ';\n\n\t// demarrer la bonne variable selon le type\n\tif ($type == 'Line' || $type == 'Radar' || $type == 'Bar' ) {\n\n\t\tcharts_compare_color_nbr($datasets, $colors);\n\t\t$total = count($datasets);\n\n\t\t// labels\n\n\t\t$currentchart .= 'var '.$title.'Data = {';\n\t\t$currentchart .= 'labels : [';\n\t\t$labelstrings = explode(',',$labels);\n\t\tfor ($j = 0; $j < count($labelstrings); $j++ ) {\n\t\t\t$currentchart .= '\"'.$labelstrings[$j].'\"';\n\t\t\tcharts_trailing_comma($j, count($labelstrings), $currentchart);\n\t\t}\n\t\t$currentchart .= \t'],';\n\t\t$currentchart .= 'datasets : [';\n\t} else {\n\t\tcharts_compare_color_nbr($data, $colors);\n\t\t$total = count($data);\n\t\t$currentchart .= 'var '.$title.'Data = [';\n\t}\n\n\t\t// creer une variable Javascript en fonction du type de chart demandé\n\n\t\tfor ($i = 0; $i < $total; $i++) {\n\n\t\t\tif ($type === 'Pie' || $type === 'Doughnut' || $type === 'PolarArea') {\n\t\t\t\t$currentchart .= '{\n\t\t\t\t\tvalue \t: '. $data[$i] .',\n\t\t\t\t\tcolor \t: '.'\"'. $colors[$i].'\"'.'\n\t\t\t\t}';\n\n\t\t\t} else if ($type === 'Bar') {\n\t\t\t\t$currentchart .= '{\n\t\t\t\t\tfillColor \t: \"rgba('. charts_hex2rgb( $colors[$i] ) .','.$colonbropacity.')\",\n\t\t\t\t\tstrokeColor : \"rgba('. charts_hex2rgb( $colors[$i] ) .',1)\",\n\t\t\t\t\tdata \t\t: ['.$datasets[$i].']\n\t\t\t\t}';\n\n\t\t\t} else if ($type === 'Line' || $type === 'Radar') {\n\t\t\t\t$currentchart .= '{\n\t\t\t\t\tfillColor \t: \"rgba('. charts_hex2rgb( $colors[$i] ) .','.$colonbropacity.')\",\n\t\t\t\t\tstrokeColor : \"rgba('. charts_hex2rgb( $colors[$i] ) .',1)\",\n\t\t\t\t\tpointColor \t: \"rgba('. charts_hex2rgb( $colors[$i] ) .',1)\",\n\t\t\t\t\tpointStrokeColor : \"'.$pointstrokecolor.'\",\n\t\t\t\t\tdata \t\t: ['.$datasets[$i].']\n\t\t\t\t}';\n\n\t\t\t} // fin des conditions de type\n\n\t\t\tcharts_trailing_comma($i, $total, $currentchart);\n\t\t}\n\n\t\t// fin des variables JS en foncton du type\n\n\t\tif ($type == 'Line' || $type == 'Radar' || $type == 'Bar') {\n\t\t\t$currentchart .=\t']};';\n\t\t} else {\n\t\t\t$currentchart .=\t'];';\n\t\t}\n\n\t\t$currentchart .= 'var wpChart'.$title.$type.' = new Chart(document.getElementById(\"'.$title.'\").getContext(\"2d\")).'.$type.'('.$title.'Data,'.$title.'Ops);\n\t</script>';\n\n\t// et on affiche le résultat final youhou !! \\o/\n\t\n\treturn $currentchart;\n}", "function StackedGraph ($data, $colors) {\n/*\n\nExample input values\n$data = array (\n\t \"[[1027, 144.89], {label: 'July'}]\",\n\t \"[[1086, 303.43], {label: 'Sept'}]\",\n\t \"[[1335, 167.26], {label: 'Oct'}]\"\n\t );\n$colors = \"'tan','green'\";\n*/\n jQueryPlugins (\"tufte-graph\");\n?>\n <script type=\"text/javascript\">\n $(document).ready(function () {\n jQuery('#stacked-graph').tufteBar({\n\t colors: [<?=$colors;?>],\n\t data: [ <?=join(\",\", $data);?>\n ],\n barLabel: function(index) {\n amount = ($(this[0]).sum()).toFixed(0);\n return '$' + $.tufteBar.formatNumber(amount);\n },\n axisLabel: function(index) { return this[1].label },\n legend: {\n data: [\"Wholesale\",\"Profit Margin\"],\n\n\t\t},\n });\n });\n </script>\n\n <div id='stacked-graph' class='graph' style='width: 270px; height: 200px;'></div>\n\t\n<?\n}", "public function getChartHtml()\n {\n $this->calculateEventDimensions();\n $chartNum = $this->getChartNum();\n\n $return = '';\n\n // if (!$this->initialized) $return .= $this->getInitializationHtml();\n\n list($decadeHtml, $yearHtml) = $this->getYearHtml();\n\n $return .= '<div class=\"chart\" id=\"chart-'.$chartNum.'\">'.\n '<div class=\"chart-controls-container\">'.\n '<div class=\"chart-controls-left\"></div>'.\n '<div class=\"chart-controls-right\"></div>'.\n '<div class=\"chart-scroll-container\">'.\n '<div class=\"chart-content\" style=\"width: '.$this->chartWidth.'px\">'.\n '<div class=\"chart-decade-container\">'. $decadeHtml.'</div>'.\n '<div class=\"chart-year-container\">'. $yearHtml.'</div>'.\n '<div class=\"chart-event-container\" style=\"width: '.$this->chartWidth.'px; height: '.$this->chartHeight.'px\">'.\n '<div class=\"chart-event-padding\">'.$this->getEventHtml().'</div>'.\n '</div>'.\n '<div class=\"chart-month-container\" style=\"width: '.$this->chartWidth.'px\"></div>'.\n '</div>'.\n '</div>'.\n '</div>'.\n '<div class=\"chart-info\">'.\n '<div class=\"chart-info-help\">Napsauta sotaa aikajanalla saadaksesi siitä lisätietoja</div>'.\n '</div>'.\n '</div>'.\n '<script type=\"text/javascript\">'.\n 'charts.push('.json_encode(['id' => 'chart-'.$chartNum, 'events' => $this->events, 'groups' => $this->groups]).');'.\n '</script>';\n\n return $return;\n }", "function drawDayChart($opt, $day, $month, $year, $trunk_name1, $trunk_name2, $channel_usage1, $channel_usage2, $report_model)\n\t{\n\t\tinclude('lib/GS_Chart.php');\n\n\t\t$values = array();\n\t\t$values2 = array();\n\t\t$labels = array();\n\t\t$usage1 = array();\n\t\t$usage2 = array();\n\n\t\t$max_value =100;\n\t\t//echo $opt; exit;\n\t\tif ($opt == 'month') {\n\n\t\t\tif (strlen($month)==1) $month = \"0$month\";\n\t\t\t$cur_month = date(\"Ym\");\n\t\t\t\n\t\t\t$provided_month = $year . $month;\n\t\t\t$numDayToPlot = $this->daysInMonth((int) $month, $year);\n\t\t\t$numX = $this->daysInMonth((int) $month, $year);\n\t\t\t$startI = 1;\n\t\t\tif ($cur_month==$provided_month) $maxX = date(\"d\");\n\t\t\telse if ($provided_month>$cur_month) $maxX = 0;\n\t\t\telse $maxX = $numX;\n\t\t\n\t\t\tif (is_array($channel_usage1)) {\n\t\t\t\tforeach ($channel_usage1 as $cusage) {\n\t\t\t\t\t$usage1[$cusage->log_date] = $cusage->value;\n\t\t\t\t\tif ($cusage->value>$max_value) $max_value = $cusage->value;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif (is_array($channel_usage2)) {\n\t\t\t\tforeach ($channel_usage2 as $cusage) {\n\t\t\t\t\t$usage2[$cusage->log_date] = $cusage->value;\n\t\t\t\t\tif ($cusage->value>$max_value) $max_value = $cusage->value;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tfor($i=$startI; $i<=$numX; $i++) {\n\t\t\t\t$_day = strlen($i)==1 ? \"$year-$month-0$i\" : \"$year-$month-$i\";\n\t\t\t\t$labels[] = \"$i\";\n\t\t\t\tif ($i<=$maxX) {\n\t\t\t\t\t$values[] = isset($usage1[$_day]) ? (int) $usage1[$_day] : 0;\n\t\t\t\t\t$values2[] = isset($usage2[$_day]) ? (int) $usage2[$_day] : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$months = array('01' => 'January', '02' => 'February', '03' => 'March', '04' => 'April', '05' => 'May', \n\t\t\t'06' => 'June', '07' => 'July', '08' => 'August', '09' => 'September', '10' => 'October',\n\t\t\t'11' => 'November', '12' => 'December');\n\t\t\t\n\t\t\t$chart_title = \"Temperature Report of $months[$month], $year\";\n\t\t\t$chart_x_legend_title = \"Day\";\n\t\t\t$chart_y_legend_title = 'Max Temperature (C)';\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t$today = date(\"Y-m-d\");\n\t\t\t$maxX = $day==$today ? date(\"H\") : 23;\n\t\t\tif($day>$today) $maxX = 0;\n\t\t\t$numX = 23;\n\t\t\t$startI = 0;\n\n\t\t\tif (is_array($channel_usage1)) {\n\t\t\t\tforeach ($channel_usage1 as $cusage) {\n\t\t\t\t\t$usage1[$cusage->log_hour] = $cusage->value;\n\t\t\t\t\tif ($cusage->value>$max_value) $max_value = $cusage->value;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif (is_array($channel_usage2)) {\n\t\t\t\tforeach ($channel_usage2 as $cusage) {\n\t\t\t\t\t$usage2[$cusage->log_hour] = $cusage->value;\n\t\t\t\t\tif ($cusage->value>$max_value) $max_value = $cusage->value;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($day==$today) {\n\t\t\t\t$temps = $report_model->getCurrentTemperatures();\n\t\t\t\tif (!isset($usage1[$maxX])) $usage1[$maxX] = 0;\n\t\t\t\tif (!isset($usage2[$maxX])) $usage2[$maxX] = 0;\n\t\t\t\t\n\t\t\t\tif (is_array($temps)) {\n\t\t\t\t\tforeach ($temps as $tm) {\n\t\t\t\t\t\tif ($tm->item_code == 'A') {\n\t\t\t\t\t\t\tif ($usage1[$maxX] < $tm->value) $usage1[$maxX] = $tm->value;\n\t\t\t\t\t\t} else if ($tm->item_code == 'B') {\n\t\t\t\t\t\t\tif ($usage2[$maxX] < $tm->value) $usage2[$maxX] = $tm->value;\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\tfor($i=$startI; $i<=$numX; $i++) {\n\t\t\t\t$hour = strlen($i)==1 ? \"0$i\" : $i;\n\t\t\t\t$labels[] = \"$hour\";\n\t\t\t\tif($i<=$maxX) {\n\t\t\t\t\t$values[] = isset($usage1[$hour]) ? (int) $usage1[$hour] : 0;\n\t\t\t\t\t$values2[] = isset($usage2[$hour]) ? (int) $usage2[$hour] : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$chart_title = \"Temperature Report of $day\";\n\t\t\t$chart_x_legend_title = \"Hour\";\n\t\t\t$chart_y_legend_title = 'Temperature (C)';\n\t\t}\n\t\t\n\t\t$ystep_details = $this->calc_y_axis_values(0, $max_value, 5, 20);\n\n\t\t$chart = new GS_Chart($chart_title);\n\t\t$chart->set_x_axis_details($chart_x_legend_title, $labels);\n\t\t$chart->set_y_axis_details($chart_y_legend_title, $ystep_details[0], $ystep_details[1], $ystep_details[2]);\n\t\t$chart->add_line_dot_element($trunk_name1, $values, '#BB3939');\n\t\t//$chart->add_line_dot_element($trunk_name2, $values2);\n\t\techo $chart->toPrettyString();\n\t\texit;\n\t}", "public function getChartByUrl($chart_url)\n {\n return $this->getChart([\n ['chart_url', '=', $chart_url]\n ]);\n }", "public function index()\n\t{\n\t\treturn View::make('chart');\n\t}", "function expense_tracker_pie_chart()\n{\n\t\tif($this->RequestHandler->isAjax()){\n\t\t$this->layout='blank';\n\t\t}else{\n\t\t$this->layout='session';\n\t\t}\n\t$this->ath();\n\t$this->check_user_privilages();\t\n\t\n\t\t$s_role_id=$this->Session->read('role_id');\n\t\t$s_society_id = (int)$this->Session->read('society_id');\n\t\t$s_user_id=$this->Session->read('user_id');\t\n\n}", "public function handler(Request $request): Chartisan\n {\n\n $qry = DB::table('excel_table');\n $qry->select(DB::raw('tema_v_otcete as name, COUNT(tema_v_otcete) as count'));\n $qry = app('App\\Http\\Controllers\\ImportExcel')->filter($request, $qry);\n\n $themes = $qry->groupBy('tema_v_otcete')\n ->orderBy('count', 'DESC')\n ->get()\n ->toArray();\n\n $count = $fullCount = $countOther = 0;\n foreach ($themes as $theme) {\n if ($count > 4) {\n $countOther += $theme->count;\n continue;\n }\n if ($theme->count > 0) {\n $labels[] = $theme->name;\n $counts[] = $theme->count;\n }\n $fullCount += $theme->count;\n $count++;\n }\n\n foreach ($labels as $idx => $label) {\n $percent = $counts[$idx] / $fullCount * 100;\n $labels[$idx] .= \"(\" . round($percent, 2) . '%)';\n }\n\n if ($countOther > 0 ) {\n $labels[] = 'Остальные';\n $counts[] = $countOther;\n }\n return Chartisan::build()\n ->labels($labels ?? [])\n ->dataset('Тема в отчете', $counts ?? []);\n }", "function generateHistoryChart($result,$graph_type,$graph_file_name,$gateway,$chart_path)\r\n\t{\r\n \r\n\t\tif ($graph_type==\"pie_chart\") {\r\n\t\t\r\n\t\t$f_name = split(\"\\,\", $graph_file_name);\r\n\t\t$file_name_len = count($f_name);\r\n\t\t\r\n\t\t$file_name=\"\";\r\n\t\tfor ($i=0;$i<$file_name_len;$i++) {\r\n\t\t if ($file_name==\"\")\r\n\t\t\t\t$file_name= $f_name[$i];\r\n\t\t\telse\r\n\t\t\t\t$file_name= $file_name.\"_\".$f_name[$i];\r\n\t\t}\r\n\t\t\r\n\t\t$_SESSION[\"file_name\"] = $_SERVER[\"PHP_AUTH_USER\"].\"_\".$file_name.\"_history\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t$image_name= $_SESSION[\"file_name\"].\".png\";\r\n\r\n\t\t$DataSet = new pData; \r\n\t\t\r\n\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t \t\t \r\n\r\n\t\t\t\t \t$DataSet->AddPoint($row[\"total_login\"],\"Serie1\"); \r\n\t\t\t\t \tif ($gateway!=\"\") {\r\n\t\t\t\t \t\t$_SESSION[\"historyBased\"] = \"per_month\";\r\n\t\t\t\t\t\t$mon = date(\"M\", strtotime($row[\"login\"])); \r\n \t\t\t\t\t$yr \t\t\t= \t date('Y', strtotime($row[\"login\"]));\r\n\t\t\t\t\t\t$DataSet->AddPoint(\"$mon-$yr\",\"Serie2\"); \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t$_SESSION[\"historyBased\"] = \"per_gw\";\r\n\t\t\t\t\t$DataSet->AddPoint($row[\"gw_name\"],\"Serie2\"); \r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\r\n\t\t\r\n\r\n \t\t$DataSet->AddAllSeries(); \r\n\t\t$DataSet->SetAbsciseLabelSerie(\"Serie2\"); \r\n \r\n\t\t // Initialise the graph\r\n\t\t $Test = new pChart(740,520); \r\n\t\t $Test->drawFilledRoundedRectangle(7,7,673,513,5,240,240,240); \r\n\t\t $Test->drawRoundedRectangle(5,5,575,515,5,230,230,230); \r\n \r\n\t\t // Draw the pie chart \r\n\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t$Test->drawPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),150,90,110,PIE_PERCENTAGE,TRUE,50,20,5); \r\n\t\t$Test->drawPieLegend(410,15,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250); \r\n \r\n\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t}\r\n\t\telse {\r\n\t\t$f_name = split(\"\\,\", $graph_file_name);\r\n\t\t//echo $graph_file_name;\r\n\t\t$file_name_len = count($f_name);\r\n\t\t//echo $file_name_len;\r\n\t\t$file_name=\"\";\r\n\t\tfor ($i=0;$i<$file_name_len;$i++) {\r\n\t\t if ($file_name==\"\")\r\n\t\t\t\t$file_name= $f_name[$i];\r\n\t\t\telse\r\n\t\t\t\t$file_name= $file_name.\"_\".$f_name[$i];\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t//echo $file_name;\r\n\t\t\t\t$_SESSION[\"file_name\"] = $_SERVER[\"PHP_AUTH_USER\"].\"_\".$file_name.\"_history_bar\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t$image_name= $_SESSION[\"file_name\"].\".png\";\r\n\t\t//echo $image_name;\r\n\t\t//echo $gateway;\r\n\t\t\t\t\t $DataSet = new pData; \r\n\t\t\t\t$j=1;\r\n\t\t\t\t\r\n\t\t\t\twhile ( $row = mysql_fetch_array($result) ) {\r\n\t\t\t \t\t $DataSet->AddPoint($row[\"total_login\"],\"Serie.$j\"); \r\n\t\t\t \t\t \tif ($gateway!=\"\") {\r\n\t\t\t \t\t \t$_SESSION[\"historyBased\"] = \"per_month\";\r\n\t\t\t\t\t\t$mon = date(\"M\", strtotime($row[\"login\"])); \r\n \t\t\t\t\t$yr \t\t\t= \t date('Y', strtotime($row[\"login\"]));\r\n\t\t\t\t\t\t$DataSet->SetSerieName(\"$mon-$yr\",\"Serie.$j\"); \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t$_SESSION[\"historyBased\"] = \"per_gw\";\r\n\r\n\t\t\t\t\t $DataSet->SetSerieName($row[\"gw_name\"],\"Serie.$j\"); \r\n\t\t\t\t\t }\r\n\t\t\t\t\t $j++;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t$DataSet->AddAllSeries(); \r\n \r\n\t\t\t// Initialise the graph \t\r\n\t\t\t$Test = new pChart(740,520); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->setGraphArea(50,30,470,200); \r\n\t\t\t$Test->drawFilledRoundedRectangle(7,7,600,513,5,240,240,240); \r\n\t\t\t$Test->drawRoundedRectangle(5,5,600,515,5,230,230,230); \r\n\t\t\t$Test->drawGraphArea(255,255,255,TRUE); \r\n\t\t\t$Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2,TRUE); \r\n\t\t\t$Test->drawGrid(4,TRUE,230,230,230,50); \r\n\t \r\n\t\t\t// Draw the 0 line \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",6); \r\n\t\t\t$Test->drawTreshold(0,143,55,72,TRUE,TRUE); \r\n\t \r\n\t\t\t// Draw the bar graph \r\n\t\t\t$Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); \r\n\t \r\n\t\t\t// Finish the graph \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",8); \r\n\t\t\t$Test->drawLegend(500,30,$DataSet->GetDataDescription(),250,250,250); \r\n\t\t\t$Test->setFontProperties(\"Fonts/tahoma.ttf\",10); \r\n\t\t\t$Test->drawTitle(50,22,\"Load Graph \",50,50,50,430); \r\n\t\t\t$Test->Render($chart_path.\"$image_name\"); \r\n\t\t\t\r\n\t\t}\r\n\t \r\n}", "public function getGraphView()\n\t{\n\t\t$chart = new ComboChart();\t\t\n\n\t\t// switch selon le type d'analyse\n\t\tswitch ($this->time) {\n\t\t\t// cas analyse jour\n\t\t\tcase 'day':\t\t\t\t\n\t\t\t $sql = 'SELECT \n\t\t\t\t\t\t\tdate(date_time) as date, \n\t\t\t\t\t\t\tcount(*) as nb\n\t\t\t\t\t\tfrom `view` \n\t\t\t\t\t\tgroup by date(date_time)';\n\t\t\t\t\tbreak;\t\t\t\n\t\t\tcase 'month':\n\t\t\t// cas analyse mois\n\t\t\t\t$sql = 'SELECT \n\t\t\t\t\t\t\tleft(date(date_time),7) as date, \n\t\t\t\t\t\t\tcount(*) as nb\n\t\t\t\t\t\tfrom `view` \n\t\t\t\t\t\tgroup by left(date(date_time),7)';\n\t\t\t\tbreak;\n\t\t\tcase 'year':\n\t\t\t// cas analyse année\n\t\t\t\t$sql = 'SELECT \n\t\t\t\t\t\t\tleft(date(date_time),4) as date, \n\t\t\t\t\t\t\tcount(*) as nb\n\t\t\t\t\t\tfrom `view` \n\t\t\t\t\t\tgroup by left(date(date_time),4)';\n\t\t\t\tbreak;\n\t\t\tcase 'week':\n\t\t\t// cas analyse 7 derniers jours\n\t\t\t\t$date = new dateTime();\n\t\t\t\t$startDate = $date->format('Y-m-d');\n\t \t\t \t$endDate = $date->modify('-1 week');\n\t \t\t \t$endDate = $endDate->format('Y-m-d');\n\n\t\t\t\t$sql = \"SELECT \n\t\t\t\t\t\t\tdate(date_time) as date, \n\t\t\t\t\t\t\tcount(*) as nb\n\t\t\t\t\t\tfrom `view` \n\t\t\t\t\t\twhere date_time BETWEEN '\" . $endDate . \"' and '\" . $startDate . \"'\n\t\t\t\t\t\tgroup by date(date_time)\";\n\t\t\t\tbreak;\n\t\t}\n\n\n\t $stmt = $this->em->query($sql);\n\t $views = $stmt->fetchAll();\n\n\t\t// entete du googleGraph\n\t\t$arrayToDataTable[] = ['', 'Montant', ['role' => 'tooltip'], 'Evolution', ['role' => 'tooltip']]; \n\n\t\t//data du googleGraph\n\t\tforeach ($views as $view){\n\t\t\t$arrayToDataTable[] = [$view['date'], intval($view['nb']), intval($view['nb']) .\" vues\", 0, \"evolution\"];\n\t\t}\n\n\t\t$chart->getData()->setArrayToDataTable($arrayToDataTable);\n\t\t$vAxisAmount = new VAxis();\n\t\t$vAxisAmount->setTitle('Nombre de vues');\n\t\t$chart->getOptions()->setVAxes([$vAxisAmount]);\n\n\t\t$seriesAmount = new \\CMEN\\GoogleChartsBundle\\GoogleCharts\\Options\\ComboChart\\Series();\n\t\t$seriesAmount->setType('bars');\n\t\t$seriesAmount->setTargetAxisIndex(0);\n\t\t$seriesEvol = new \\CMEN\\GoogleChartsBundle\\GoogleCharts\\Options\\ComboChart\\Series();\n\t\t$seriesEvol->setType('line');\n\t\t$seriesEvol->setTargetAxisIndex(1);\n\t\t$chart->getOptions()->setSeries([$seriesAmount, $seriesEvol]);\n\t\t$chart->getOptions()->setColors(['black', 'red']);\t\n\n\t\treturn $chart;\t\t\n\t}", "function drawBarChart($data,$chartName,$div=\"\",$width=500,$height=500,$background=\"#f0f0f0\") {\n // format = array(\"string \"=>value);\n // Eg : array(\"Client \"=>100,\"Company A\"=>600,\"Company B\"=>800);\n $arrDataColsHTML = array();\t// the columns\n\t\t $arrDataRowsHTML = array();\n \n \t\t$arrDataRowsCell = array();\t\t\n foreach ($data as $key=>$A) {\n\n $arrDataCol = array();\n \t\t $arrDataCol['label'] = $key;\n\t \t\t $arrDataCol['type'] = \"number\";\n\t \t\t $arrDataColsHTML[] = $arrDataCol;\n \n\n \t\t$arrDataRowsCell[]=$A;\n\n\n }\n $arrDataRowsHTML[] = $arrDataRowsCell;\n\n $arrColumns = exportGoogleVisColumns($arrDataColsHTML);\t\t\t\n\t\t\t// Build Google Vis Rows\n\t $arrRows = exportGoogleVisRows($arrDataRowsHTML);\n\n\t $strTable = GoogleVisDataTable($arrColumns,$arrRows,\"data\");\n\n\t?>\n <script type=\"text/javascript\">\n function drawVisualization<?=$chartName?>() {\n // Create and populate the data table.\n \t\t\t\t\t\t<? echo $strTable; ?>\n \n // Create and draw the visualization.\n new google.visualization.ColumnChart(document.getElementById('<?=$div?>')).\n draw(data, {curveType: \"none\",\n width: <?=$width?>, height: <?=$height?>,\n vAxis: {maxValue: 10},legend: \"top\",pointSize:\"5\",backgroundColor: \"<?=$background?>\"}\n );\n }\n \n\n google.setOnLoadCallback(drawVisualization<?=$chartName?>);\n </script>\n\t<?\n }", "public function UXBarChart($cfg,$data,$legend=false){\n\t\t\t$xScale = count($data) / ( $cfg['width'] - 40 );\n\t\t\t$maxTotal = $this->chartmax($data);\n\t\t\t$yScale = $maxTotal / $cfg['height'];\n\t\t\n\t\t\t// Compute the bar width\n\t\t\t$barWidth = ( 1 / $xScale ) / 1.5;\n\t\t\n\t\t\t// Add the axes:\n\t\t\t$this->SetFont( '', '', 10);\n\t\t\n\t\t\t// X axis\n\t\t\t$this->Line( $cfg['xpos'] + 30, $cfg['ypos'], $cfg['xpos'] + $cfg['width'], $cfg['ypos'] );\n\t\t\t//$this->Arrow( $cfg['xpos'] + 30, $cfg['ypos'], $cfg['xpos'] + $cfg['width'], $cfg['ypos'], 1 );\n\t\t\n\t\t\t$this->SetTextColor(200,200,200);\n\t\t\tfor ( $i=0; $i < count( $data ); $i++ ) {\n\t\t\t\t$this->SetXY( $cfg['xpos'] + 40 + $i / $xScale, $cfg['ypos'] );\n\t\t\t\t$this->Cell( $barWidth, 10, $data[$i]['label'], 0, 0, 'C' );\n\t\t\t}\n\t\t\n\t\t\t// Y axis\n\t\t\t$this->Line( $cfg['xpos'] + 30, $cfg['ypos'], $cfg['xpos'] + 30, $cfg['ypos'] - $cfg['height'] - 8 );\n\t\t\n\t\t\tfor ( $i=0; $i <= $maxTotal; $i += $cfg['ystep'] ) {\n\t\t\t\t$this->SetXY( $cfg['xpos'] + 7, $cfg['ypos'] - 5 - $i / $yScale );\n\t\t\t\t$this->Cell( 20, 10, number_format( $i ), 0, 0, 'R' );\n\t\t\t\t$this->Line( $cfg['xpos'] + 28, $cfg['ypos'] - $i / $yScale, $cfg['xpos'] + $cfg['width'], $cfg['ypos'] - $i / $yScale, array('dash'=>4) );\n\t\t\t}\n\t\t\t// Add the axis labels\n\t\t\t$this->SetTextColor(0,0,255);\n\t\t\t$this->SetFont( '', 'B', 10 );\n\t\t\t$this->SetXY( $cfg['width'] / 2 + 20, $cfg['ypos'] + 8 );\n\t\t\t$this->Cell( 30, 10, $cfg['xtitle'], 0, 0, 'C' );\n\t\t\t$this->SetXY( $cfg['xpos'] + 7, $cfg['ypos'] - $cfg['height'] - 12 );\n\t\t\t$this->Cell( 20, 10, $cfg['ytitle'], 0, 0, 'R' );\n\t\t\n\t\t\t// Create the bars\n\t\t\t$this->SetFont( '', 'B', 5 );\n\t\t\t$xPos = $cfg['xpos'] + 40;\n\t\t\t$bar = 0;\n\t\t\n\t\t\t$count = count($data);\n\t\t\t\n// \t\t\t$this->SetFont( '', 'B', 10 );\n\t\t\tforeach ( $data as $ix => $row ) {\n\t\t\t\t$color = $this->hex2rgb($row['color']);\n\t\t\t\t$this->SetFillColor( $color['r'], $color['g'], $color['b'] );\n\t\t\t\t$this->Rect( $xPos, $cfg['ypos'] - ( $row['value'] / $yScale ), $barWidth, $row['value'] / $yScale, 'DF', array('all'=>array('dash'=>0)));\n\t\t\t\t//valuetext: test\n\t\t\t\t$this->SetXY($xPos, $cfg['ypos'] - ( $row['value'] / $yScale ) - 10);\n\t\t\t\t$this->Cell($barWidth, 10, $row['value'], 0, 0, 'C' );\n\t\t\t\t\n\t\t\t\t//Legend: test\t\t\t\t\n\t\t\t\tif($legend){\n\t\t\t\t\t$this->SetFont('', 'B', 10 );\n\t\t\t\t\t$this->Rect($cfg['xleg'], $cfg['yleg']+$bar*10, 5, 5, 'DF', array('all'=>array('dash'=>0)));\n\t\t\t\t\t$this->SetXY($cfg['xleg']+10, $cfg['yleg']+$bar*10-3);\n\t\t\t\t\t$this->Cell( $this->getStringWidth($row['legend']), 10, $row['legend'], 0, 0, 'L' );\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$this->SetFont('', 'B', 5 );\n\t\t\t\t$xPos += ( 1 / $xScale );\n\t\t\t\t$bar++;\n// \t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}", "public function run()\n {\n $this->chart_of_accounts = [\n [\n 'code' => 1,\n 'name' => 'Assets',\n 'parent_name' => 'COA',\n 'level' => 0,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 2,\n 'name' => 'Equity',\n 'parent_name' => 'COA',\n 'level' => 0,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 3,\n 'name' => 'Income',\n 'parent_name' => 'COA',\n 'level' => 0,\n 'type' => 'I',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 4,\n 'name' => 'Expense',\n 'parent_name' => 'COA',\n 'level' => 0,\n 'type' => 'E',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 5,\n 'name' => 'Liabilities',\n 'parent_name' => 'COA',\n 'level' => 0,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 101,\n 'name' => 'Non Current Asset',\n 'parent_name' => 'Assets',\n 'level' => 1,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 102,\n 'name' => 'Current Asset',\n 'parent_name' => 'Assets',\n 'level' => 1,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 301,\n 'name' => 'Product Sale',\n 'parent_name' => 'Income',\n 'level' => 1,\n 'type' => 'I',\n 'transaction' => 1,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 302,\n 'name' => 'Service Income',\n 'parent_name' => 'Income',\n 'level' => 1,\n 'type' => 'I',\n 'transaction' => 1,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 401,\n 'name' => 'Default Expense',\n 'parent_name' => 'Expense',\n 'level' => 1,\n 'type' => 'E',\n 'transaction' => 1,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 1,\n 'depreciation' => 1,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 402,\n 'name' => 'Material Purchase',\n 'parent_name' => 'Expense',\n 'level' => 1,\n 'type' => 'E',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 403,\n 'name' => 'Employee Salary',\n 'parent_name' => 'Expense',\n 'level' => 1,\n 'type' => 'E',\n 'transaction' => 1,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 404,\n 'name' => 'Machine Purchase',\n 'parent_name' => 'Expense',\n 'level' => 1,\n 'type' => 'E',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 405,\n 'name' => 'Maintenance Service',\n 'parent_name' => 'Expense',\n 'level' => 1,\n 'type' => 'E',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 501,\n 'name' => 'Non Current Liabilities',\n 'parent_name' => 'Liabilities',\n 'level' => 1,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 502,\n 'name' => 'Current Liabilities',\n 'parent_name' => 'Liabilities',\n 'level' => 1,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 10101,\n 'name' => 'Inventory',\n 'parent_name' => 'Non Current Asset',\n 'level' => 1,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 10201,\n 'name' => 'Cash & Cash Equivalent',\n 'parent_name' => 'Current Asset',\n 'level' => 2,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 10202,\n 'name' => 'Account Receivable',\n 'parent_name' => 'Current Asset',\n 'level' => 2,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 50201,\n 'name' => 'Account Payable',\n 'parent_name' => 'Current Liabilities',\n 'level' => 2,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 50202,\n 'name' => 'Employee Ledger',\n 'parent_name' => 'Current Liabilities',\n 'level' => 2,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 50203,\n 'name' => 'Tax',\n 'parent_name' => 'Current Liabilities',\n 'level' => 2,\n 'type' => 'L',\n 'transaction' => 2,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 1020101,\n 'name' => 'Cash In Hand',\n 'parent_name' => 'Cash & Cash Equivalent',\n 'level' => 3,\n 'type' => 'A',\n 'transaction' => 1,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 1020102,\n 'name' => 'Cash At Bank',\n 'parent_name' => 'Cash & Cash Equivalent',\n 'level' => 3,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 1020103,\n 'name' => 'Cash At Mobile Bank',\n 'parent_name' => 'Cash & Cash Equivalent',\n 'level' => 3,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 1020201,\n 'name' => 'Customer Receivable',\n 'parent_name' => 'Account Receivable',\n 'level' => 3,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n [\n 'code' => 1020202,\n 'name' => 'Loan Receivable',\n 'parent_name' => 'Account Receivable',\n 'level' => 3,\n 'type' => 'A',\n 'transaction' => 2,\n 'general_ledger' => 1,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n // [\n // 'code' => 5020101,\n // 'name' => 'Supplier Name',\n // 'parent_name' => 'Account Payable',\n // 'level' => 3,\n // 'type' => 'L',\n // 'transaction' => 1,\n // 'general_ledger' => 0,\n // 'customer_id' => null,\n // 'supplier_id' => null,\n // 'budget' => null,\n // 'depreciation' => null,\n // 'depreciation_rate' => 0.00,\n // 'status' => 1,\n // 'created_by' => 'SuperAdmin'\n // ],\n [\n 'code' => 10202010001,\n 'name' => '1-Walking Customer',\n 'parent_name' => 'Customer Receivable',\n 'level' => 4,\n 'type' => 'A',\n 'transaction' => 1,\n 'general_ledger' => 2,\n 'customer_id' => null,\n 'supplier_id' => null,\n 'budget' => 2,\n 'depreciation' => 2,\n 'depreciation_rate' => 0.00,\n 'status' => 1,\n 'created_by' => 'SuperAdmin'\n ],\n ];\n foreach ($this->chart_of_accounts as $account) {\n ChartOfAccount::updateOrCreate($account);\n }\n \n }", "public function index()\n {\n return view('reports.chart');\n\n }", "public function makeChart()\n\t{\n\t\t$this->scaleX();\n\n\t\t$this->scaleY();\n\n\t\t$this->calcShifts();\n\n\t\t$this->drawAxis();\n\n\t\t$this->makeTickMarks();\n\n\t\t$this->plotData();\n\n\t\treturn $this->im;\n\n\t}", "public function initChart()\r\n {\r\n $days = 6;\r\n $this->lastDaysStartDate = date('Y-m-d', strtotime(\"-$days days\"));\r\n for ($i = $days; $i > 0; $i--) {\r\n $this->lastDays[] = array(\r\n 'display' => date('D, M d', strtotime(\"-$i days\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\r\n )\r\n );\r\n }\r\n $this->lastDays[] = array(\r\n 'display' => date('D, M d') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"now\")) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"now\"))\r\n )\r\n );\r\n $days = 13;\r\n for ($i = $days; $i >= 7; $i--) {\r\n $this->lastDaysPrev[] = array(\r\n 'display' => date('M d, Y', strtotime(\"-$i days\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\r\n )\r\n );\r\n }\r\n //# last weeks date settings\r\n $timestamp_end = strtotime('last Saturday');\r\n $weeks = 3;\r\n $this->lastWeeksStartDate = date('Y-m-d', $timestamp_end-((($weeks*7) -1) *24*3600));\r\n for ($i = $weeks; $i > 0; $i--) {\r\n $start = $timestamp_end-((($i*7) -1) *24*3600);\r\n $end = $start+(6*24*3600);\r\n $this->lastWeeks[] = array(\r\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', $start) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', $end) ,\r\n )\r\n );\r\n }\r\n $this->lastWeeks[] = array(\r\n 'display' => date('M d', $timestamp_end+24*3600) . ' - ' . date('M d') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', $timestamp_end+24*3600) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime('now'))\r\n )\r\n );\r\n $weeks = 7;\r\n for ($i = $weeks; $i > 3; $i--) {\r\n $start = $timestamp_end-((($i*7) -1) *24*3600);\r\n $end = $start+(6*24*3600);\r\n $this->lastWeeksPrev[] = array(\r\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', $start) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', $end)\r\n )\r\n );\r\n }\r\n //# last months date settings\r\n $months = 2;\r\n $this->lastMonthsStartDate = date('Y-m-01', strtotime(\"-$months months\"));\r\n for ($i = $months; $i > 0; $i--) {\r\n $this->lastMonths[] = array(\r\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\r\n '#MODEL#.created <=' => date('Y-m-t', strtotime(\"-$i months\")) ,\r\n )\r\n );\r\n }\r\n $this->lastMonths[] = array(\r\n 'display' => date('M, Y') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-01', strtotime('now')) ,\r\n '#MODEL#.created <=' => date('Y-m-t', strtotime('now')) ,\r\n )\r\n );\r\n $months = 5;\r\n for ($i = $months; $i > 2; $i--) {\r\n $this->lastMonthsPrev[] = array(\r\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\r\n '#MODEL#.created <=' => date('Y-m-' . date('t', strtotime(\"-$i months\")) , strtotime(\"-$i months\"))\r\n )\r\n );\r\n }\r\n //# last years date settings\r\n $years = 2;\r\n $this->lastYearsStartDate = date('Y-01-01', strtotime(\"-$years years\"));\r\n for ($i = $years; $i > 0; $i--) {\r\n $this->lastYears[] = array(\r\n 'display' => date('Y', strtotime(\"-$i years\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\r\n '#MODEL#.created <=' => date('Y-12-31', strtotime(\"-$i years\")) ,\r\n )\r\n );\r\n }\r\n $this->lastYears[] = array(\r\n 'display' => date('Y') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-01-01', strtotime('now')) ,\r\n '#MODEL#.created <=' => date('Y-12-31', strtotime('now')) ,\r\n )\r\n );\r\n $years = 5;\r\n for ($i = $years; $i > 2; $i--) {\r\n $this->lastYearsPrev[] = array(\r\n 'display' => date('Y', strtotime(\"-$i years\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\r\n '#MODEL#.created <=' => date('Y-12-' . date('t', strtotime(\"-$i years\")) , strtotime(\"-$i years\")) ,\r\n )\r\n );\r\n }\r\n $this->selectRanges = array(\r\n 'lastDays' => __l('Last 7 days') ,\r\n 'lastWeeks' => __l('Last 4 weeks') ,\r\n 'lastMonths' => __l('Last 3 months') ,\r\n 'lastYears' => __l('Last 3 years')\r\n );\r\n }", "public function htmlValue()\n { \n \t$obj_javascripter=new javascripter();\n\n $stri_config=\"\";\n $stri_config.=($this->bool_adjustable)?\"graphe.Set('chart.adjustable',true);\\n\":\"\";\n $stri_config.=($this->bool_annotatable)?\"graphe.Set('chart.annotatable',true);\\n\":\"\";\n $stri_config.=($this->stri_annotate_color!='')?\"graphe.Set('chart.annotate.color','\".$this->stri_annotate_color.\"');\\n\":\"\";\n $stri_config.=($this->stri_centerx!='')?\"graphe.Set('chart.centerx','\".$this->stri_centerx.\"');\\n\":\"\";\n $stri_config.=($this->stri_centery!='')?\"graphe.Set('chart.centery','\".$this->stri_centery.\"');\\n\":\"\";\n $stri_config.=(count($this->arra_colors)>0)?\"graphe.Set('chart.colors', ['\".join(\"','\",$this->arra_colors).\"']);\\n\":\"\";\n $stri_config.=($this->stri_contextmenu!='')?\"graphe.Set('chart.contextmenu','\".$this->stri_contextmenu.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_bottom!='')?\"graphe.Set('chart.gutter.bottom','\".$this->int_gutter_bottom.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_left!='')?\"graphe.Set('chart.gutter.left','\".$this->int_gutter_left.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_right!='')?\"graphe.Set('chart.gutter.right','\".$this->int_gutter_right.\"');\\n\":\"\";\n $stri_config.=($this->int_gutter_top!='')?\"graphe.Set('chart.gutter.top','\".$this->int_gutter_top.\"');\\n\":\"\";\n $stri_config.=(count($this->arra_icon)>0)?\"graphe.Set('chart.icon', ['\".join(\"','\",$this->arra_icon).\"']);\\n\":\"\";\n $stri_config.=($this->bool_icon_redraw)?\"graphe.Set('chart.icon.redraw',true);\\n\":\"\";\n $stri_config.=($this->int_labels_count!='')?\"graphe.Set('chart.labels.count','\".$this->int_labels_count.\"');\\n\":\"\";\n $stri_config.=($this->stri_labels_empty!='')?\"graphe.Set('chart.labels.empty','\".$this->stri_labels_empty.\"');\\n\":\"\";\n $stri_config.=($this->stri_labels_full!='')?\"graphe.Set('chart.labels.full','\".$this->stri_labels_full.\"');\\n\":\"\";\n $stri_config.=($this->stri_needle_color!='')?\"graphe.Set('chart.needle.color','\".$this->stri_needle_color.\"');\\n\":\"\";\n $stri_config.=($this->stri_radius!='')?\"graphe.Set('chart.radius','\".$this->stri_radius.\"');\\n\":\"\";\n $stri_config.=($this->bool_resizable)?\"graphe.Set('chart.resizable',true);\\n\":\"\";\n $stri_config.=($this->stri_resize_handle_background!='')?\"graphe.Set('chart.resize.handle.background','\".$this->stri_resize_handle_background.\"');\\n\":\"\";\n $stri_config.=($this->int_scale_decimals!='')?\"graphe.Set('chart.scale.decimals','\".$this->int_scale_decimals.\"');\\n\":\"\";\n $stri_config.=($this->bool_scale_visible)?\"graphe.Set('chart.scale.visible',true);\\n\":\"\";\n $stri_config.=($this->stri_text_color!='')?\"graphe.Set('chart.text.color','\".$this->stri_text_color.\"');\\n\":\"\";\n $stri_config.=($this->stri_text_font!='')?\"graphe.Set('chart.text.font','\".$this->stri_text_font.\"');\\n\":\"\";\n $stri_config.=($this->stri_units_post!='')?\"graphe.Set('chart.units.post','\".$this->stri_units_post.\"');\\n\":\"\";\n $stri_config.=($this->stri_units_pre!='')?\"graphe.Set('chart.units.pre','\".$this->stri_units_pre.\"');\\n\":\"\";\n $stri_config.=($this->bool_zoom_background)?\"graphe.Set('chart.zoom.background',true);\\n\":\"\";\n $stri_config.=($this->int_zoom_delay!='')?\"graphe.Set('chart.zoom.delay','\".$this->int_zoom_delay.\"');\\n\":\"\";\n $stri_config.=($this->float_zoom_factor!='')?\"graphe.Set('chart.zoom.factor','\".$this->float_zoom_factor.\"');\\n\":\"\";\n $stri_config.=($this->bool_zoom_fade_in)?\"graphe.Set('chart.zoom.fade.in',true);\\n\":\"\";\n $stri_config.=($this->bool_zoom_fade_out)?\"graphe.Set('chart.zoom.fade.out',true);\\n\":\"\";\n $stri_config.=($this->int_zoom_frames!='')?\"graphe.Set('chart.zoom.frames','\".$this->int_zoom_frames.\"');\\n\":\"\";\n $stri_config.=($this->stri_zoom_hdir!='')?\"graphe.Set('chart.zoom.hdir','\".$this->stri_zoom_hdir.\"');\\n\":\"\";\n $stri_config.=($this->bool_zoom_shadow)?\"graphe.Set('chart.zoom.shadow',true);\\n\":\"\";\n $stri_config.=($this->stri_zoom_vdir!='')?\"graphe.Set('chart.zoom.vdir','\".$this->stri_zoom_vdir.\"');\\n\":\"\";\n\n\n \n \t$obj_javascripter->addFunction(\" \n \t$(function()\n \t{ \n var graphe = new RGraph.Fuel('\".$this->stri_id.\"',\".$this->int_min_value.\",\".$this->int_max_value.\",\".$this->int_value.\");\n // Configure the progress bar to appear as requested.\n $stri_config\n \n // Now call the .Draw() method to draw the chart.\n graphe.Draw();\n //RGraph.Effects.Fuel.Grow(graphe);\n\t\n \t});\n \");\n \t \n \t\t$stri_res=' <canvas id=\"'.$this->stri_id.'\" width=\"'.$this->int_width.'\" height=\"'.$this->int_height.'\">[No canvas support]</canvas>';\n \t\treturn $stri_res.$obj_javascripter->javascriptValue();\n }", "function drawLineChart($companies,$data,$chartName,$div=\"\",$width=500,$height=500,$background=\"#f0f0f0\",$xaxisType='date') {\n // format = array(\"string \"=>array(client,competitorA,CompetitorB));\n // Eg : array(\"month 2\"=>array(600,300,800),\"month 3\"=>array(800,700,100),\"Month 4\"=>array(500,900,600),\"Month 5\"=>array(400,400,900),\"Month 6\"=>array(500,600,90));\n\n // The $companies should be in the following format\n // format : array(client,competitorA,competitorB);\n // Eg: (www.scoot.co.uk,www.touchlocal.com,www.yell.com);\n\n $arrDataColsHTML = array();\t// the columns\n\t\t $arrDataRowsHTML = array();\n \n $arrDataCol = array();\n $arrDataCol['label'] = \"\";\n\t $arrDataCol['type'] = $xaxisType;\n\t $arrDataColsHTML[] = $arrDataCol;\n\n foreach ($companies as $c) {\n\n $arrDataCol = array();\n \t\t $arrDataCol['label'] = $c;\n\t \t\t\t $arrDataCol['type'] = \"number\";\n\t \t\t\t$arrDataColsHTML[] = $arrDataCol;\n }\n\n foreach ($data as $key=>$A) {\n \n \t\t\t$arrDataRowsCell = array();\t\n\t\t \t\t\t\t$arrDataRowsCell[]=$key;\n \t\t\t foreach($A as $B) {\n \t\t\t\t$arrDataRowsCell[]=$B;\n \t\t\t\t}\n\n \t\t$arrDataRowsHTML[] = $arrDataRowsCell;\n\n }\n\n $arrColumns = exportGoogleVisColumns($arrDataColsHTML);\t\t\t\n\t\t\t// Build Google Vis Rows\n\t $arrRows = exportGoogleVisRows($arrDataRowsHTML);\n\n\t $strTable = GoogleVisDataTable($arrColumns,$arrRows,\"data\");\n\n\t?>\n <script type=\"text/javascript\">\n function drawVisualization<?=$chartName?>() {\n // Create and populate the data table.\n \t\t\t\t\t\t<? echo $strTable; ?>\n \n // Create and draw the visualization.\n new google.visualization.LineChart(document.getElementById('<?=$div?>')).\n draw(data, {curveType: \"none\",\n width: <?=$width?>, height: <?=$height?>,\n vAxis: {maxValue: 10},legend: \"top\",pointSize:\"5\",backgroundColor: \"<?=$background?>\"}\n );\n }\n \n\n google.setOnLoadCallback(drawVisualization<?=$chartName?>);\n </script>\n\t<?\n }", "public function homechart()\n\t{\n\t\t$query3 = \"SELECT\n\t\tSUM(IF(MONTH(tanggal) = 1, b.jual, 0)) AS Jan,\n\t\tSUM(IF(MONTH(tanggal) = 2, b.jual, 0)) AS Feb,\n\t\tSUM(IF(MONTH(tanggal) = 3, b.jual, 0)) AS Mar,\n\t\tSUM(IF(MONTH(tanggal) = 4, b.jual, 0)) AS Apr,\n\t\tSUM(IF(MONTH(tanggal) = 5, b.jual, 0)) AS May,\n\t\tSUM(IF(MONTH(tanggal) = 6, b.jual, 0)) AS Jun,\n\t\tSUM(IF(MONTH(tanggal) = 7, b.jual, 0)) AS Jul,\n\t\tSUM(IF(MONTH(tanggal) = 8, b.jual, 0)) AS Aug,\n\t\tSUM(IF(MONTH(tanggal) = 9, b.jual, 0)) AS Sep,\n\t\tSUM(IF(MONTH(tanggal) = 10, b.jual, 0)) AS Oct,\n\t\tSUM(IF(MONTH(tanggal) = 11, b.jual, 0)) AS Nov,\n\t\tSUM(IF(MONTH(tanggal) = 12, b.jual, 0)) AS 'Dec'\n\t\tFROM\n\t\tfaktur a \n\t\tjoin detail_faktur b on a.id_faktur=b.id_faktur\";\n\t\t//echo $query3;\n\t\t$query = $this->db->query($query3);\n\t\treturn $query->result();\n\t}", "function wdtChartWizard()\n{\n if (!current_user_can('manage_options')) {\n wp_die(__('You do not have sufficient permissions to access this page.'));\n }\n\n $chartId = isset($_GET['chart_id']) ? (int)$_GET['chart_id'] : false;\n if (!empty($chartId)) {\n $chartObj = new WPDataChart();\n $chartObj->setId($chartId);\n $chartObj->loadFromDB();\n $chartObj->prepareData();\n $chartObj->shiftStringColumnUp();\n }\n\n ob_start();\n include WDT_ROOT_PATH . 'templates/admin/chart_wizard/chart_wizard.inc.php';\n $chartWizardPage = ob_get_contents();\n ob_end_clean();\n\n $chartWizardPage = apply_filters('wpdatatables_filter_chart_wizard_page', $chartWizardPage);\n echo $chartWizardPage;\n}", "function generateChartJs2($chartid, $sql){\n\t\tglobal $database;\n\t\t\n\t\t$res = $database->query($sql) or die(\"<div style='color:red'>{$database->error}</div>\");\n\t\tif (!$res || !$res->num_rows){\n\t\t\treturn \"//<div style='color:red'>Error generating this chart. Check your SQL.</div>\";\n\t\t} \n\n\t\t$row = $res->fetch_assoc();\n\t\t$cols = array_keys($row);\n\t\t\n\t\tif (!sizeof($cols) or sizeof($cols) < 2){\n\t\t\treturn \"//<div style='color:red'>sizeof cols is below expected number.</div>\";\n\t\t}\n\t\t\n\t\t// reset to first row\n\t\tmysqli_data_seek($res,0);\n\t\t\t\t\t \n\t\t$labels = [];\n\t\t$datasets = [];\n\n\t\twhile ($row = $res->fetch_assoc()){\n\t\t\tforeach ($cols as $key=>$val){\n\t\t\t\tswitch ($key){\n\t\t\t\t\tcase 0: /* first column should be your labels */\n\t\t\t\t\t\t$label = $row[$val];\n\t\t\t\t\t\t$labels[] = \"'$label'\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$data = $row[$val];\n\t\t\t\t\t\t$data = $data ? $data : 0; \n\t\t\t\t\t\t$datasets[$key-1][] = \"'$data'\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \n\t\t$max_data_cols = sizeof($datasets[0]);\n\t\tif (sizeof($labels))\n\t\t\t$labels = implode(\",\\n\", $labels);\n\t\telse \n\t\t\t$labels = \"\";\n\n\t\t$datasets_ = [];\n\t\t$types = [];\n\t\t\n\t\tforeach($datasets as $key=>$datas){ \n\t\t\t\t$data = implode(\",\",$datas);\n\t\t\t\t$label = $cols[$key+1]; // ignore the first column as it is our label\n\t\t\n\t\t\t\t$datasets_[] = \"['$label',\t$data]\";\n\t\t\t\t$types[] = \"'$label':'bar'\";\n\t\t}\n\t\n\t\tif (sizeof($datasets_)) \n\t\t\t$datasets = implode(\",\\n\", $datasets_);\n\t\telse\n\t\t\t$datasets = \"\";\n\n\t\tif (sizeof($types)) \n\t\t\t$types = implode(\",\\n\", $types);\n\t\telse\n\t\t\t$types = \"\";\n\n\t\t$chartdata = \"\\n$(window).load(function(){\n\t\t\t\t\t\t\t\tvar chart = c3.generate({\n\t\t\t\t\t\t\t\t\tbindto: '#$chartid',\n\t\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\t columns: [\n\t\t\t\t\t\t\t\t\t\t\t$datasets\n\t\t\t\t\t\t\t\t\t ],\t\t \n\t\t\t\t\t\t\t\t\t axes: {\n\t\t\t\t\t\t\t\t\t\t data2: 'y2'\n\t\t\t\t\t\t\t\t\t },\n\t\t\t\t\t\t\t\t\t types: {\n\t\t\t\t\t\t\t\t\t\t\t$types\n\t\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\t\t},\n\t\t\t\t\t\t\t\t\t\taxis: {\n\t\t\t\t\t\t\t\t\t\t\t \tx: {\n\t\t\t\t\t\t\t\t\t\t\t\t \ttype: 'category',\n\t\t\t\t\t\t\t\t\t\t\t\t \tcategories: [$labels]\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\t\t\t\t\t\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\t\t\n\t\treturn $chartdata;\n}", "public function initChart() \n {\n $days = 6;\n $this->lastDaysStartDate = date('Y-m-d', strtotime(\"-$days days\"));\n for ($i = $days; $i > 0; $i--) {\n $this->lastDays[] = array(\n 'display' => date('D, M d', strtotime(\"-$i days\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\n )\n );\n }\n $this->lastDays[] = array(\n 'display' => date('D, M d') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"now\")) ,\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"now\"))\n )\n );\n $days = 13;\n for ($i = $days; $i >= 7; $i--) {\n $this->lastDaysPrev[] = array(\n 'display' => date('M d, Y', strtotime(\"-$i days\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\n )\n );\n }\n //# last weeks date settings\n $timestamp_end = strtotime('last Saturday');\n $weeks = 3;\n $this->lastWeeksStartDate = date('Y-m-d', $timestamp_end-((($weeks*7) -1) *24*3600));\n for ($i = $weeks; $i > 0; $i--) {\n $start = $timestamp_end-((($i*7) -1) *24*3600);\n $end = $start+(6*24*3600);\n $this->lastWeeks[] = array(\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d', $start) ,\n '#MODEL#.created <=' => date('Y-m-d', $end) ,\n )\n );\n }\n $this->lastWeeks[] = array(\n 'display' => date('M d', $timestamp_end+24*3600) . ' - ' . date('M d') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d', $timestamp_end+24*3600) ,\n '#MODEL#.created <=' => date('Y-m-d', strtotime('now'))\n )\n );\n $weeks = 7;\n for ($i = $weeks; $i > 3; $i--) {\n $start = $timestamp_end-((($i*7) -1) *24*3600);\n $end = $start+(6*24*3600);\n $this->lastWeeksPrev[] = array(\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d', $start) ,\n '#MODEL#.created <=' => date('Y-m-d', $end)\n )\n );\n }\n //# last months date settings\n $months = 2;\n $this->lastMonthsStartDate = date('Y-m-01', strtotime(\"-$months months\"));\n for ($i = $months; $i > 0; $i--) {\n $this->lastMonths[] = array(\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\n '#MODEL#.created <=' => date('Y-m-t', strtotime(\"-$i months\")) ,\n )\n );\n }\n $this->lastMonths[] = array(\n 'display' => date('M, Y') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-01', strtotime('now')) ,\n '#MODEL#.created <=' => date('Y-m-t', strtotime('now')) ,\n )\n );\n $months = 5;\n for ($i = $months; $i > 2; $i--) {\n $this->lastMonthsPrev[] = array(\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\n '#MODEL#.created <=' => date('Y-m-' . date('t', strtotime(\"-$i months\")) , strtotime(\"-$i months\"))\n )\n );\n }\n //# last years date settings\n $years = 2;\n $this->lastYearsStartDate = date('Y-01-01', strtotime(\"-$years years\"));\n for ($i = $years; $i > 0; $i--) {\n $this->lastYears[] = array(\n 'display' => date('Y', strtotime(\"-$i years\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\n '#MODEL#.created <=' => date('Y-12-31', strtotime(\"-$i years\")) ,\n )\n );\n }\n $this->lastYears[] = array(\n 'display' => date('Y') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-01-01', strtotime('now')) ,\n '#MODEL#.created <=' => date('Y-12-31', strtotime('now')) ,\n )\n );\n $years = 5;\n for ($i = $years; $i > 2; $i--) {\n $this->lastYearsPrev[] = array(\n 'display' => date('Y', strtotime(\"-$i years\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\n '#MODEL#.created <=' => date('Y-12-' . date('t', strtotime(\"-$i years\")) , strtotime(\"-$i years\")) ,\n )\n );\n }\n $this->selectRanges = array(\n 'lastDays' => __l('Last 7 days') ,\n 'lastWeeks' => __l('Last 4 weeks') ,\n 'lastMonths' => __l('Last 3 months') ,\n 'lastYears' => __l('Last 3 years')\n );\n }", "function current()\n {\n $current = parent::current();\n if ($this->i % 2 === 0) {\n $this->i++;\n array_push($this->titles, $current);\n } else {\n array_push($this->views, $current);\n if ($this->i == 19) {\n $this->combined = array_combine($this->titles, $this->views);\n $reportWidth = 1400;//width of the report image\n $reportHeight = 500;//height of the report image\n\n //graph dimensions\n $graphTop = 60;\n $graphLeft = 20;\n $graphBottom = 440;\n $graphRight = 1300;\n $graphHeight = $graphBottom - $graphTop;\n $graphWidth = $graphRight - $graphLeft;\n\n //dimensions of the graph elements\n $lineWidth = 1;\n $barWidth = 20;\n\n //title string and dimens\n $title = \"Top Views Chart\";\n $titleFontSize = 20;\n $titleY = $graphTop - 20;\n $titleX = $graphWidth / 2 - 75;\n\n //path to font\n $font = getcwd().'\\Font\\Aller_Rg.ttf';\n $fontSize = 8;//default font size\n\n $labelMargin = 8;//label margin\n\n $yMaxValue = 30;//maximum size of the y axis\n\n $yLabelSpan = 60;//label span\n\n //create the report image\n $report = imagecreate($reportWidth, $reportHeight);\n\n //set background colour to white\n $backgroundColor = imagecolorallocate($report, 204, 197, 185);\n //set the axis colour to dark grey\n $axisColor = imagecolorallocate(\n $report, 85, 85, 85\n );\n //set label colour to the axis colour\n $labelColor = $axisColor;\n //set the graph colour to light grey\n $graphColor = imagecolorallocate(\n $report, 212, 212, 212\n );\n //set the bars to dark purple\n $barColor = imagecolorallocate(\n $report, 128, 0, 128\n );\n //fill the report with the background colour\n imagefill(\n $report, 0, 0, $backgroundColor\n );\n //set the line thickness\n imagesetthickness($report, $lineWidth);\n\n //place the title at the top of the report\n imagettftext(\n $report, $titleFontSize, 0, $titleX, \n $titleY, $labelColor, $font, $title\n );\n\n //loop to generate the y axis of the graph\n for ($i=0; $i <= $yMaxValue; $i += $yLabelSpan) {\n $y = $graphHeight / $yMaxValue + 50;\n\n imageline($report, $graphLeft, $y, $graphRight, $y, $graphColor);\n\n $labelBox = imagettfbbox($fontSize, 0, $font, strval($i));\n $labelWidth = $labelBox[4] - $labelBox[0];\n $labelX = $graphLeft - $labelWidth - $labelMargin + 20;\n $labelY = $y + $fontSize / 2 + 10;\n //y axis label 'Views'\n imagettftext(\n $report, $fontSize, 0, $labelX, \n $labelY, $labelColor, $font, \"Views\"\n );\n }\n\n //create the line boundries of the graph\n imageline(\n $report, $graphLeft, $graphTop, \n $graphLeft, $graphBottom, $axisColor\n );\n imageline(\n $report, $graphLeft, $graphBottom, \n $graphRight, $graphBottom, $axisColor\n );\n\n //set the bar spacing to the graphwidth / combined count\n $barSpacing = $graphWidth / count($this->combined);\n //bar x axis\n $barX = $graphLeft + $barSpacing / 2;\n //foreach loop to add the bars to the graph\n foreach ($this->combined as $key => $value) {\n //create the bar\n $x1 = $barX - $barWidth / 2;\n $y1 = $graphBottom - $value / $yMaxValue * $graphHeight;\n $x2 = $barX + $barWidth / 2;\n $y2 = $graphBottom - 1;\n imagefilledrectangle($report, $x1, $y1, $x2, $y2, $barColor);\n //create the label for the bar\n $labelBox = imagettfbbox($fontSize, 0, $font, $key);\n $labelWidth = $labelBox[4] - $labelBox[0];\n $labelX = $barX - $labelWidth / 2;\n $labelY = $graphBottom + $labelMargin + $fontSize;\n //label displaying the number that occurred\n imagettftext(\n $report, $fontSize, 0, $labelX, \n $labelY, $labelColor, $font, $key\n );\n //line to seperate the number and occurence\n imageline(\n $report, $graphLeft, $labelY + 2, \n $graphRight + 90, $labelY + 2, $axisColor\n );\n //label displaying the number of occurrences\n imagettftext(\n $report, $fontSize, 0, $labelX, \n $labelY + 15, $labelColor, $font, $value\n );\n //next bar x axis\n $barX += $barSpacing;\n }\n\n //create the x axis labels\n imagettftext(\n $report, $fontSize, 0, $labelX + 120, \n $labelY, $labelColor, $font, \"Title\"\n );\n imagettftext(\n $report, $fontSize, 0, $labelX + 120, \n $labelY + 15, $labelColor, $font, \"Views\"\n );\n\n //output the views_graph png image\n imagepng(\n $report, \"IMG/Generated/views_graph.png\"\n );\n echo '<img src=\"IMG/Generated/views_graph.png\"\n alt=\"Views\">';\n } else {\n $this->i++;\n }\n }\n }", "function open_risk_category_pie()\n{\n $chart = new Highchart();\n\n $chart->chart->renderTo = \"open_risk_category_pie\";\n $chart->chart->plotBackgroundColor = null;\n $chart->chart->plotBorderWidth = null;\n $chart->chart->plotShadow = false;\n $chart->title->text = \"Categories\";\n\n $chart->tooltip->formatter = new HighchartJsExpr(\"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\");\n\n $chart->plotOptions->pie->allowPointSelect = 1;\n $chart->plotOptions->pie->cursor = \"pointer\";\n $chart->plotOptions->pie->dataLabels->enabled = false;\n $chart->plotOptions->pie->showInLegend = 1;\n $chart->credits->enabled = false;\n\n // Open the database connection\n $db = db_open();\n\n // Query the database\n $stmt = $db->prepare(\"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `category` b ON a.category = b.value GROUP BY b.name ORDER BY COUNT(*) DESC\");\n $stmt->execute();\n\n // Store the list in the array\n $array = $stmt->fetchAll();\n\n // Close the database connection\n db_close($db);\n\n // Create the data array\n foreach ($array as $row)\n {\n $data[] = array($row['name'], (int)$row['num']);\n }\n\n $chart->series[] = array('type' => \"pie\",\n 'name' => \"Status\",\n 'data' => $data);\n\n echo \"<div id=\\\"open_risk_category_pie\\\"></div>\\n\";\n echo \"<script type=\\\"text/javascript\\\">\";\n echo $chart->render(\"open_risk_category_pie\");\n echo \"</script>\\n\";\n}", "function lqcharts_runner() {\n\n\treturn Learndash_QCharts::instance();\n}", "function section__plot(){\n $app =& Dataface_Application::getInstance();\n $record =& $app->getRecord();\n $sensors = df_get_records_array('sensors', array('id_station'=>$record->val('id_station'),\n 'type_station'=>$record->val('type_station')));\n \n $content = \"To view all related sensors of station \".$record->val('id_station').\"(\".$record->val('type_station').\")\".\n \" <a href='index.php?-table=sensors&id_station==\".$record->val('id_station').\"&type_station==\".\n $record->val('type_station').\"'>click here</a><br/><br/>\";\n /*create the content array*/\n $content .= \"<select onchange='window.location.href=this.options[this.selectedIndex].value'>\";\n $content .= \"<option>Select Sensor...</option>\";\n \n foreach ($sensors as $sensor){\n /* Only include entries with id_station and type_station corresponding to the application instance (LV - v.1.1.3*/\n if ($sensor->val('id_station') == $record->val('id_station') && $sensor->val('type_station') == $record->val('type_station')){\n $content .= \"<option value='index.php?-table=sensors&type_station==\".$sensor->val('type_station')\n .\"&id_station==\".$sensor->val('id_station')\n .\"&sensor==\".$sensor->val('sensor')\n .\"&type_timeseries==\".$sensor->val('type_timeseries').\"&-action=plot'>\"\n .$sensor->val('description').\" [aggregation-sensor: \".$sensor->val('sensor').\" | \".$sensor->val('sensortype').\"]</option>\"; \n }\n }\n $content .= \"</select><br>\"; \n $content .= \" Aggregation types are I (Instantenious), J (Daily) or M (Monthly)<br/>\";\n return array(\n 'content' => $content,\n 'class' => 'main',\n 'label' => 'Plot Timeseries',\n 'order' => 0\n );\n }", "function generateChartJs($chartid, $type, $title, $description, $sql){\n\t\tglobal $database;\n\t\t\n\t\t$res = $database->query($sql);\n\t\tif (!$res || !$res->num_rows){\n\t\t\treturn \"var ctx = document.getElementById('$chartid').getContext('2d'); ctx.fillStyle='red'; ctx.fillText(\\\"Error generating this chart. Check your SQL.\\\", 10,10);\";\n\t\t} \n\n\t\t$row = $res->fetch_assoc();\n\t\t$cols = array_keys($row);\n\t\t\n\t\t$labels = array();\n\t\t$datasets = array();\n\t\t\n\t\tif (!sizeof($cols) or sizeof($cols) < 2){\n\t\t\treturn \"var ctx = document.getElementById('$chartid').getContext('2d'); ctx.fillStyle='red'; ctx.fillText(\\\"sizeof cols is below expected number.\\\", 10,10);\";\n\t\t}\n\t\t\n\t\tmysqli_data_seek($res,0);\n\t\t\t \t\t\n\t\twhile ($row = $res->fetch_assoc()){\n\t\t\tforeach ($cols as $key=>$val){\n\t\t\t\tswitch ($key){\n\t\t\t\t\tcase 0: /* first column should be your labels */\n\t\t\t\t\t\t$label = $row[$val];\n\t\t\t\t\t\t$labels[] = \"'$label'\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$data = $row[$val];\n\t\t\t\t\t\t$data = $data ? $data : 0; \n\t\t\t\t\t\t$datasets[$key-1][] = \"'$data'\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \n $colors = array();\n $colors[] = \"'rgba(54, 162, 235, 0.7)'\";\n $colors[] = \"'rgba(255, 159, 64, 0.7)'\";\n $colors[] = \"'rgba(255, 99, 132, 0.7)'\";\n $colors[] = \"'rgba(75, 192, 192, 0.7)'\";\n $colors[] = \"'rgba(153, 102, 255, 0.7)'\";\n $colors[] = \"'rgba(83, 90, 55, 0.7)'\";\n $colors[] = \"'rgba(113, 102, 25, 0.7)'\";\n $colors[] = \"'rgba(13, 62, 85, 0.7)'\";\n $colors[] = \"'rgba(73, 120, 155, 0.7)'\";\n $colors[] = \"'rgba(154, 62, 245, 0.7)'\"; \n $colors[] = \"'rgba(204, 162, 235, 0.7)'\";\n $colors[] = \"'rgba(55, 159, 64, 0.7)'\";\n $colors[] = \"'rgba(85, 99, 132, 0.7)'\";\n $colors[] = \"'rgba(95, 192, 192, 0.7)'\";\n $colors[] = \"'rgba(53, 102, 255, 0.7)'\";\n $colors[] = \"'rgba(43, 90, 55, 0.7)'\";\n $colors[] = \"'rgba(103, 102, 25, 0.7)'\";\n $colors[] = \"'rgba(130, 62, 85, 0.7)'\";\n $colors[] = \"'rgba(33, 120, 155, 0.7)'\";\n $colors[] = \"'rgba(194, 62, 245, 0.7)'\";\n \n\t$max_data_cols = sizeof($datasets[0]);\n\t$labels = implode(\",\", $labels);\n\n\t$datasets_ = array();\n\n\tforeach($datasets as $key=>$datas){ \n\t\t$data = implode(\",\",$datas);\n\t\t$label = $cols[$key+1]; // ignore the first column as it is our label\n\n\t\t$temp = array();\n for($idx=0; $idx<$max_data_cols; $idx++){ \n \t$temp[] = $colors[$key];\n }\n\t\t$colors_ = implode(',', $temp);\n\n\t\t$datasets_[] = \"{\n\t\t\t\t\t\t\tlabel: '$label',\t\t\t\t\t \n\t\t\t\t\t\t data: [$data],\n\t\t\t\t\t\t backgroundColor: [$colors_],\n\t\t\t\t borderColor: [],\n\t\t\t\t borderWidth: 1\n\t\t\t\t\t\t}\";\n\t}\n\n\t$datasets = implode(\",\", $datasets_);\n\n\t$chartdata = \"/* Original SQL:\n\t\t\t\t\t\t\t$sql \n\t\t\t\t\t\t*/\n\t\t\t\t\t ctx = document.getElementById('$chartid').getContext('2d');\n\t\t\t\t\t new Chart(ctx, {\n\t \t\t\t\t\t\ttype: '$type',\n\t \t\t\t\t\t\tdata: {\n\t \t\t\t\t\t\t\t\t\tlabels: [ $labels ], \n\t \t\t\t\t\t\t\t\t\tdatasets: [ $datasets ]\n\t \t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t options: {\n\t\t\t\t\t\t\t\t\t\t title: {\n\t\t\t\t\t\t\t\t\t\t display: true,\n\t\t\t\t\t\t\t\t\t\t text: '$title'\n\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});\";\n\t\t\t\t\t\t\t\t\n\treturn $chartdata;\n}", "public function chartFluiditePieAction() {\n\n $nbrFluiditeDGSNMois = $this->getDoctrine()\n ->getEntityManager()\n ->getRepository('GestionPassBundle:Fluidite')\n ->fluiditesPieParSce('DGSN');\n $nbrFluiditeExplMois = $this->getDoctrine()\n ->getEntityManager()\n ->getRepository('GestionPassBundle:Fluidite')\n ->fluiditesPieParSce('exploitation');\n\n $total = $nbrFluiditeDGSNMois[1] + $nbrFluiditeExplMois[1] ;\n \n $prcDGSN = AppRegistre::Pourcentage($nbrFluiditeDGSNMois[1], $total);\n $prcExpl = AppRegistre::Pourcentage($nbrFluiditeExplMois[1], $total);\n\n $nbrFluiditeDGSNMois[1] = $prcDGSN;\n $nbrFluiditeExplMois[1] = $prcExpl;\n\n $resultat = array();\n array_push($resultat, $nbrFluiditeExplMois);\n array_push($resultat, $nbrFluiditeDGSNMois);\n \n $response = new Response(json_encode($resultat, JSON_NUMERIC_CHECK));\n $response->headers->set('Content-Type', 'application/json');\n\n return $response;\n }", "function generatePieFlat($chartid, $type, $title, $description, $sql){\n\t\tglobal $database;\n\t\t\n\t\t$res = $database->query($sql);\n\t\tif (!$res || !$res->num_rows){\n\t\t\treturn \"var ctx = document.getElementById('$chartid').getContext('2d'); ctx.fillStyle='red'; ctx.fillText(\\\"Error generating this chart. Check your SQL.\\\", 10,10);\";\n\t\t} \n\n\t\t$row = $res->fetch_assoc();\n\t\t$cols = array_keys($row);\n\t\t\n\t\tif (!sizeof($cols) or sizeof($cols) < 2){\n\t\t\treturn \"var ctx = document.getElementById('$chartid').getContext('2d'); ctx.fillStyle='red'; ctx.fillText(\\\"sizeof cols is below expected number.\\\", 10,10);\";\n\t\t}\n\t\t\n\t\t$labels = [];\n\t\t$datas = [];\n\t\t\t\t\n\t\tmysqli_data_seek($res,0);\n\t\t\t \t\t\n\t\t\t\t \t\t\n\t\twhile ($row = $res->fetch_assoc()){\n\t\t\tforeach ($cols as $key=>$val){\n\t\t\t\t\t\techo \"/*$key:$val, {$cols[$key]}=={$row[$val]}*/ \\n\";\n\t\t\t\t\t\t$data = $row[$val];\n\t\t\t\t\t\tif (is_numeric($data)) $datas[] = $data ? $data : 0; \n\t\t\t\t\t\t$fld = $row[$val];\n\t\t\t\t\t\tif (!is_numeric($fld)) $labels[] = \"'$fld'\";\n\t\t\t}\n\t\t}\n \n $colors = array();\n $colors[] = \"'rgba(54, 162, 235, 0.7)'\";\n $colors[] = \"'rgba(255, 159, 64, 0.7)'\";\n $colors[] = \"'rgba(255, 99, 132, 0.7)'\";\n $colors[] = \"'rgba(75, 192, 192, 0.7)'\";\n $colors[] = \"'rgba(153, 102, 255, 0.7)'\";\n $colors[] = \"'rgba(83, 90, 55, 0.7)'\";\n $colors[] = \"'rgba(113, 102, 25, 0.7)'\";\n $colors[] = \"'rgba(13, 62, 85, 0.7)'\";\n $colors[] = \"'rgba(73, 120, 155, 0.7)'\";\n $colors[] = \"'rgba(154, 62, 245, 0.7)'\"; \n $colors[] = \"'rgba(204, 162, 235, 0.7)'\";\n $colors[] = \"'rgba(55, 159, 64, 0.7)'\";\n $colors[] = \"'rgba(85, 99, 132, 0.7)'\";\n $colors[] = \"'rgba(95, 192, 192, 0.7)'\";\n $colors[] = \"'rgba(53, 102, 255, 0.7)'\";\n $colors[] = \"'rgba(43, 90, 55, 0.7)'\";\n $colors[] = \"'rgba(103, 102, 25, 0.7)'\";\n $colors[] = \"'rgba(130, 62, 85, 0.7)'\";\n $colors[] = \"'rgba(33, 120, 155, 0.7)'\";\n $colors[] = \"'rgba(194, 62, 245, 0.7)'\";\n \n\t$labels = implode(\",\", $labels);\n\n\t$colors_ = [];\n\t\n\tforeach($datas as $key=>$val){ \n \t$colors_[] = $colors[$key];\n\t}\n\t\n\t$data_ = implode(\",\", $datas);\n\t$colors_ = implode(\",\", $colors_); \n\n\t$chartdata = \"/* Original SQL:\n\t\t\t\t\t\t\t$sql \n\t\t\t\t\t\t*/\n\t\t\t\t\t ctx = document.getElementById('$chartid').getContext('2d');\n\t\t\t\t\t new Chart(ctx, {\n\t \t\t\t\t\t\ttype: '$type',\n\t \t\t\t\t\t\tdata: {\n\t \t\t\t\t\t\t\t\t\tdatasets: [{ \n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\tdata: [$data_],\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: [$colors_]\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\tlabels: [ $labels ]\n\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 options: {\n\t\t\t\t\t\t\t\t\t\t title: {\n\t\t\t\t\t\t\t\t\t\t display: true,\n\t\t\t\t\t\t\t\t\t\t text: '$title'\n\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});\";\n\t\t\t\t\t\t\t\t\n\treturn $chartdata;\n}", "public function getBlock()\n\t{\n\t\t$chart = new \\IPS\\Helpers\\Chart;\n\t\t\n\t\t$chart->addHeader( \"Day\", 'date' );\n\t\tforeach ( \\IPS\\nexus\\Money::currencies() as $currency )\n\t\t{\n\t\t\t$chart->addHeader( $currency, 'number' );\n\t\t}\n\t\t\n\t\t$thirtyDaysAgo = \\IPS\\DateTime::create()->sub( new \\DateInterval('P30D') );\n\t\t\t\t\n\t\t$results = array();\n\t\tforeach( \\IPS\\Db::i()->select( \"t_currency, DATE_FORMAT( FROM_UNIXTIME( t_date ), '%e %c %Y' ) AS date, SUM(t_amount)-SUM(t_partial_refund) AS amount\", 'nexus_transactions', array( 't_date>? AND (t_status=? OR t_status=?)', $thirtyDaysAgo->getTimestamp(), \\IPS\\nexus\\Transaction::STATUS_PAID, \\IPS\\nexus\\Transaction::STATUS_PART_REFUNDED ), NULL, NULL, array( 't_currency', 'date' ) ) as $result )\n\t\t{\n\t\t\t$results[ $result['date'] ][ $result['t_currency'] ] = $result['amount'];\n\t\t}\n\t\t\t\t\n\t\t$monthAndYear = date( 'n' ) . ' ' . date( 'Y' );\n\t\tforeach ( range( 30, 0 ) as $daysAgo )\n\t\t{\n\t\t\t$datetime = new \\IPS\\DateTime;\n\t\t\t$datetime->setTime( 0, 0, 0 );\n\t\t\t$datetime->sub( new \\DateInterval( 'P' . $daysAgo . 'D' ) );\n\t\t\t$resultString = $datetime->format('j n Y');\n\t\t\t\n\t\t\tif ( isset( $results[ $resultString ] ) )\n\t\t\t{\n\t\t\t\t$row = array( $datetime );\n\t\t\t\t\n\t\t\t\tforeach ( \\IPS\\nexus\\Money::currencies() as $currency )\n\t\t\t\t{\n\t\t\t\t\tif ( !isset( $results[ $resultString ][ $currency ] ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$row[] = 0;\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$row[] = $results[ $resultString ][ $currency ];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$chart->addRow( $row );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$row = array( $datetime );\n\t\t\t\tforeach ( \\IPS\\nexus\\Money::currencies() as $currency )\n\t\t\t\t{\n\t\t\t\t\t$row[] = 0;\n\t\t\t\t}\n\t\t\t\t$chart->addRow( $row );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $chart->render( 'LineChart' );\n\t}", "public function konfig(){\n\t\t$data['title'] \t\t= \"Konfigurasi Umum\";\n\t\t$data['konfig'] \t= $this->model_konfig->tampil()->row_array();\n\n\t\t$this->view('admin/konfigurasi/kUmum.php', $data, FALSE);\n\t}", "abstract public function getChartType();", "function get_historical_views_chart() {\r\n\tif (current_user_authored($post)){\r\n\t\tglobal $wp_query;\r\n\t\tget_and_store_page_views(false, true);\r\n\t\t$historical_views = get_user_meta($wp_query->get_queried_object_id(), 'ga_author_historical_views');\r\n\r\n\t\tif(empty($historical_views)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$page_views_string = \"'\" . implode ( \"', '\", array_keys($historical_views[0]) ) . \"'\";\r\n\t\t$dates_string = implode( ',', $historical_views[0] );\r\n\r\n\t\t$result = '<section class=\"stats_charts\">\r\n\t\t\t\t\t\t<h2 class=\"kicker\">All articles by month</h2>\r\n\t\t\t\t\t\t<div class=\"graphic\">\r\n\t\t\t\t\t\t\t<canvas id=\"monthly-views\" width=\"800\" height=\"450\"></canvas>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</section>';\r\n\t\t$result.= '<script>\r\n\t\t\t\t\t\tnew Chart(document.getElementById(\"monthly-views\"), {\r\n\t\t\t\t\t\t\ttype: \"line\",\r\n\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\tlabels: [' . $page_views_string . '],\r\n\t\t\t\t\t\t\t\tdatasets: [{ \r\n\t\t\t\t\t\t\t\t\tdata: [' . $dates_string . '],\r\n\t\t\t\t\t\t\t\t\tlabel: \"Users\",\r\n\t\t\t\t\t\t\t\t\tborderColor: \"#BF2528\",\r\n\t\t\t\t\t\t\t\t\tfill: true\r\n\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\toptions: {\r\n\t\t\t\t\t\t\t\ttitle: {\r\n\t\t\t\t\t\t\t\tdisplay: false,\r\n\t\t\t\t\t\t\t\ttext: \"Monthly views\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tlegend: {\r\n\t\t\t\t\t\t\t\t\t\tdisplay: false\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tlayout: {\r\n\t\t\t\t\t\t\t\t\tpadding: {\r\n\t\t\t\t\t\t\t\t\t\tleft: 5,\r\n\t\t\t\t\t\t\t\t\t\tright: 5,\r\n\t\t\t\t\t\t\t\t\t\ttop: 25,\r\n\t\t\t\t\t\t\t\t\t\tbottom: 5\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\r\n\t\treturn $result;\r\n\t}\r\n}", "function open_risk_team_pie($project) {\n\t$chart = new Highchart ();\n\t\n\t$chart->chart->renderTo = \"open_risk_team_pie\";\n\t$chart->chart->plotBackgroundColor = null;\n\t$chart->chart->plotBorderWidth = null;\n\t$chart->chart->plotShadow = false;\n\t$chart->title->text = \"Teams\";\n\t\n\t$chart->tooltip->formatter = new HighchartJsExpr ( \"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\" );\n\t\n\t$chart->plotOptions->pie->allowPointSelect = 1;\n\t$chart->plotOptions->pie->cursor = \"pointer\";\n\t$chart->plotOptions->pie->dataLabels->enabled = false;\n\t$chart->plotOptions->pie->showInLegend = 1;\n\t$chart->credits->enabled = false;\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `team` b ON a.team = b.value WHERE status != \\\"Closed\\\" and project_version_id = $project GROUP BY b.name ORDER BY COUNT(*) DESC\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the array is empty\n\tif (empty ( $array )) {\n\t\t$data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Create the data array\n\t\tforeach ( $array as $row ) {\n\t\t\t$data [] = array (\n\t\t\t\t\t$row ['name'],\n\t\t\t\t\t( int ) $row ['num'] \n\t\t\t);\n\t\t}\n\t\t\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"pie\",\n\t\t\t\t'name' => \"Status\",\n\t\t\t\t'data' => $data \n\t\t);\n\t}\n\t\n\t$htmloutput = '';\n\t$htmloutput.= \"<div id=\\\"open_risk_team_pie\\\"></div>\\n\";\n\t$htmloutput.= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput.= $chart->render ( \"open_risk_team_pie\" );\n\t$htmloutput.= \"</script>\\n\";\n\treturn $htmloutput;\n}", "function get_risk_trend($project) {\n\t$chart = new Highchart ();\n\t$chart->includeExtraScripts ();\n\t\n\t$chart->chart->type = \"arearange\";\n\t$chart->chart->zoomType = \"x\";\n\t$chart->title->text = \"Risks Opened and Closed Over Time\";\n\t$chart->xAxis->type = \"datetime\";\n\t$chart->yAxis->title->text = null;\n\t$chart->yAxis->min = 0;\n\t$chart->tooltip = array (\n\t\t\t'crosshairs' => true,\n\t\t\t'shared' => true,\n\t\t\t'valueSuffix' => ' risk(s)' \n\t);\n\t$chart->legend->enabled = false;\n\t$chart->chart->renderTo = \"risk_trend_chart\";\n\t$chart->credits->enabled = false;\n\t$chart->plotOptions->series->marker->enabled = false;\n\t$chart->plotOptions->series->marker->lineWidth = \"2\";\n\t// These set the marker symbol when selected\n\t$chart->plotOptions->series->marker->symbol = \"circle\";\n\t$chart->plotOptions->series->marker->states->hover->enabled = true;\n\t$chart->plotOptions->series->marker->states->hover->fillColor = \"white\";\n\t$chart->plotOptions->series->marker->states->hover->lineColor = \"black\";\n\t$chart->plotOptions->series->marker->states->hover->lineWidth = \"2\";\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT DATE(submission_date) date, COUNT(DISTINCT id) count FROM `risks` WHERE project_version_id = $project GROUP BY DATE(submission_date) ORDER BY DATE(submission_date)\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$opened_risks = $stmt->fetchAll ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT DATE(a.closure_date) date, COUNT(DISTINCT b.id) count FROM `closures` a JOIN `risks` b ON a.risk_id = b.id WHERE b.status = \\\"Closed\\\" AND b.project_version_id = $project GROUP BY DATE(a.closure_date)\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$closed_risks = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the opened risks array is empty\n\tif (empty ( $opened_risks )) {\n\t\t$opened_risk_data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Set the sum to 0\n\t\t$opened_sum = 0;\n\t\t$closed_sum = 0;\n\t\t\n\t\t// Set the start date\n\t\t$date = $opened_risks [0] ['date'];\n\t\t\n\t\t// For each date from the start date until today\n\t\twhile ( strtotime ( $date ) <= time () ) {\n\t\t\t// If the PHP version is >= 5.5.0\n\t\t\t// array_column is new as of PHP 5.5\n\t\t\tif (strnatcmp ( phpversion (), '5.5.0' ) >= 0) {\n\t\t\t\t// Search the opened array for the value\n\t\t\t\t$opened_search = array_search ( $date, array_column ( $opened_risks, 'date' ) );\n\t\t\t} else\n\t\t\t\t$opened_search = false;\n\t\t\t\t\n\t\t\t\t// If the current date is in the opened array\n\t\t\tif ($opened_search !== false) {\n\t\t\t\t$count = $opened_risks [$opened_search] ['count'];\n\t\t\t\t$opened_sum += $count;\n\t\t\t}\n\t\t\t\n\t\t\t// If the PHP version is >= 5.5.0\n\t\t\t// array_column is new as of PHP 5.5\n\t\t\tif (strnatcmp ( phpversion (), '5.5.0' ) >= 0) {\n\t\t\t\t// Search the closed array for the value\n\t\t\t\t$closed_search = array_search ( $date, array_column ( $closed_risks, 'date' ) );\n\t\t\t} else\n\t\t\t\t$closed_search = false;\n\t\t\t\t\n\t\t\t\t// If the current date is in the closed array\n\t\t\tif ($closed_search !== false) {\n\t\t\t\t$count = $closed_risks [$closed_search] ['count'];\n\t\t\t\t$closed_sum += $count;\n\t\t\t}\n\t\t\t\n\t\t\t// Create the data arrays\n\t\t\t$opened_risk_data [] = array (\n\t\t\t\t\t(strtotime ( $date ) + 2 * 86400) * 1000,\n\t\t\t\t\t$opened_sum \n\t\t\t);\n\t\t\t$closed_risk_data [] = array (\n\t\t\t\t\t(strtotime ( $date ) + 2 * 86400) * 1000,\n\t\t\t\t\t$closed_sum \n\t\t\t);\n\t\t\t$trend_data [] = array (\n\t\t\t\t\t(strtotime ( $date ) + 2 * 86400) * 1000,\n\t\t\t\t\t$opened_sum - $closed_sum \n\t\t\t);\n\t\t\t\n\t\t\t// Increment the date one day\n\t\t\t$date = date ( \"Y-m-d\", strtotime ( \"+1 day\", strtotime ( $date ) ) );\n\t\t}\n\t\t\n\t\t// Draw the open risks line\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"line\",\n\t\t\t\t'name' => \"Opened Risks\",\n\t\t\t\t'color' => \"red\",\n\t\t\t\t'lineWidth' => \"2\",\n\t\t\t\t'data' => $opened_risk_data \n\t\t);\n\t\t\n\t\t// Draw the closed risks line\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"line\",\n\t\t\t\t'name' => \"Closed Risks\",\n\t\t\t\t'color' => \"blue\",\n\t\t\t\t'lineWidth' => \"2\",\n\t\t\t\t'data' => $closed_risk_data \n\t\t);\n\t\t\n\t\t// Draw the trend line\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"line\",\n\t\t\t\t'name' => \"Trend\",\n\t\t\t\t'color' => \"#000000\",\n\t\t\t\t'lineWidth' => \"2\",\n\t\t\t\t'data' => $trend_data \n\t\t);\n\t}\n\t$htmloutput = '';\n\t\n\t$htmloutput.= $chart->printScripts2 ();\n\t$htmloutput.= \"<div id=\\\"risk_trend_chart\\\"></div>\\n\";\n\t$htmloutput.= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput.= $chart->render ( \"risk_trend_chart\" );\n\t$htmloutput.= \"</script>\\n\";\n\treturn $htmloutput; \n}", "public static function chart_json()\n {\n $chart_key = isset($_POST['chart_key']) ? $_POST['chart_key'] : 0;\n if (empty($chart_key)) {\n $chart_key = isset($_GET['chart_key']) ? $_GET['chart_key'] : 0;\n }\n if (empty($chart_key)) {\n $response = false;\n } else {\n $response = EM_Seatsio::chart_details($chart_key);\n }\n wp_send_json($response);\n }", "public static function replaceChart()\n {\n $args = func_get_args();\n $documentSymbol = explode(self::$_templateSymbol, self::$_document);\n foreach ($documentSymbol as $documentSymbolValue) {\n if (strip_tags($documentSymbolValue) == $args[0]) {\n self::$_document = str_replace($documentSymbolValue, strip_tags($documentSymbolValue), self::$_document);\n }\n }\n\n $domDocument = new DomDocument();\n $domDocument->loadXML(self::$_document);\n\n $xmlWP = $domDocument->getElementsByTagNameNS(\n 'http://schemas.openxmlformats.org/wordprocessingml/2006/main',\n 'p'\n );\n $xpath = new DOMXPath($domDocument);\n $query = 'w:r/w:t';\n for ($i = 0; $i < $xmlWP->length; $i++) {\n $xmlGraphics = $xpath->query($query, $xmlWP->item($i));\n foreach ($xmlGraphics as $entry) {\n if (\n self::$_templateSymbol . $args[0] .\n self::$_templateSymbol ==\n $entry->nodeValue\n ) {\n $domChart = $entry->parentNode->parentNode;\n $xmlR = $domChart->getElementsByTagNameNS(\n 'http://schemas.openxmlformats.org/wordprocessingml/' .\n '2006/main',\n 'r'\n )->item(0);\n\n $domChart->removeChild($xmlR);\n $domVarChart = $domDocument->createElement(\n 'varchart_' . CreateDocx::$intIdWord\n );\n $domChart->appendChild($domVarChart);\n }\n }\n }\n self::$_document = $domDocument->saveXML();\n self::$totalTemplateCharts++;\n }", "function Visualize($Data, $Type = 'line',$ID = false,$Color = false, $Height = 250, $ShowAverages = false){\n if($ID == false){\n $ID = 'chart_'.md5(uniqid());\n }\n //If no colors passed, do a blank array.\n if(!is_array($Color)){\n $Color = array();\n }\n \n $Labels = array();\n $Datasets = array();\n \n foreach($Data as $Row){\n $First = true;\n foreach($Row as $Key => $Value){\n //we are assuming that the first column is the labels\n if($First){\n $Labels[]=$Value;\n $First = false;\n }else{\n $Datasets[VisualizeOrdinalize($Key)]['title'] = $Key;\n if(isset($Color[$Key])){\n $Datasets[VisualizeOrdinalize($Key)]['color'] = $Color[$Key];\n }else{\n $Datasets[VisualizeOrdinalize($Key)]['color'] = VisualizeRandomColor($Key);\n }\n $Datasets[VisualizeOrdinalize($Key)]['values'][] = (float)$Value;\n }\n }\n }\n \n $Output = array(\n 'labels' => $Labels,\n 'datasets' => $Datasets\n );\n \n $Output = json_encode($Output,JSON_PRETTY_PRINT);\n \n $Rv = '\n <div id=\"'.$ID.'\">Loading Chart...</div>\n <script>\n let '.$ID.'_Data = '.$Output.';\n let '.$ID.'_Chart = new Chart({\n parent: \"#'.$ID.'\",\n /*title: \"My Awesome Chart\",*/\n data: '.$ID.'_Data,\n type: \"'.$Type.'\", // bar, line, scatter, pie, percentage\n height: '.$Height.'\n });\n ';\n if($ShowAverages){\n $Rv.='\n '.$ID.'_Chart.show_averages();\n ';\n }\n $Rv .= '\n </script>\n ';\n \n return $Rv;\n}", "public function getChart($dataUser, $dataPo)\n {\n // START TRAYEK\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_URL, $this->config->item('endpoint') . \"/bumel/trayek/listAll/\".$dataPo->id);\n\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Authorization: Bearer ' . $dataUser->token\n ));\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\n $trayek = curl_exec($ch);\n $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\n $dataTrayek = json_decode($trayek);\n // var_dump($dataTrayek);\n\n $this->session->set_userdata('dataTrayek', $dataTrayek);\n\n // START GET DATA LABEL MORRIS BAR\n // $data = [];\n // $arrayTrayek = [];\n // $index = [];\n // $lineLabel = [];\n foreach ($dataTrayek as $key => $value) {\n $arrayTrayek[] = array(\n 'namaTrayek' => $value->nama,\n 'idTrayek' => $value->idTrayek,\n 'jmlTransaksi' => 0\n );\n $lineLabel = json_encode($arrayTrayek);\n // var_dump($lineLabel);\n $this->session->set_userdata('lineLabel', $lineLabel);\n\n $lineLabelTrayek[] = $value->nama;\n $lineLabels = json_encode($lineLabelTrayek);\n $this->session->set_userdata('lineLabels', $lineLabels);\n // var_dump($lineLabels);\n\n $index[] = array($key);\n $dataIndex = json_encode($index);\n $this->session->set_userdata('keyChart', $dataIndex);\n\n }\n // END GET DATA LABEL MORRIS BAR\n\n curl_close($ch);\n\n $ch2 = curl_init();\n\n curl_setopt($ch2, CURLOPT_URL, $this->config->item('endpoint').\"/bumel/chartTransaksi/\".$dataPo->id);\n curl_setopt($ch2, CURLOPT_CUSTOMREQUEST, \"GET\");\n curl_setopt($ch2, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Authorization: Bearer '.$dataUser->token)\n );\n curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch2, CURLOPT_SSL_VERIFYPEER, 0);\n\n $chart = curl_exec($ch2);\n $httpcode2 = curl_getinfo($ch2, CURLINFO_HTTP_CODE);\n\n $dataChart = json_decode($chart);\n $this->session->set_userdata('dataChart', $dataChart);\n // var_dump($dataChart);\n\n // START GET DATA LABEL MORRIS BAR\n $data = [];\n $tanggal = [];\n // $total = [];\n // $lineData = [];\n foreach ($dataChart->data as $key => $value) {\n $todayTransaction = [];\n\n $lineData[] = array(\n 'date' => $value->tanggal_transaksi\n );\n $dateLine = json_encode($lineData);\n // var_dump($dateLine);\n $this->session->set_userdata('dateLine', $dateLine);\n\n foreach ($arrayTrayek as $key2 => $trayek) {\n // $idTrayek = $trayek['idTrayek'];\n // var_dump($trayek);\n $todayTransaction[] = $trayek;\n // var_dump($todayTransaction);\n $todayTransaksi = json_encode($todayTransaction);\n // var_dump($todayTransaksi);\n\n // untuk mengisi jika tidak ada totalbayar, maka 0\n $lineData[$key][$key2] = $trayek['jmlTransaksi'];\n // var_dump($trayek);\n // end\n }\n\n foreach ($value->detail as $key3 => $detail) {\n for($k=0; $k < count($todayTransaction); $k++) {\n if ($value->tanggal_transaksi) {\n if($detail->idTrayek === $todayTransaction[$k]['idTrayek']) {\n $lineData[$key][$k] = $detail->totalBayar;\n }\n }\n }\n }\n }\n\n $dataChart = json_encode($lineData);\n $this->session->set_userdata('lineData', $dataChart);\n // END GET DATA LABEL MORRIS BAR\n\n curl_close($ch2);\n\n\n // END TRAYEK\n }", "public function charts()\n\t{\n\t\t//\n\t\t$loggeduser=\\App::make('authenticator')->getLoggedUser();\n\t\t\n\t\t//var_dump($userinfo);\n\t\t//var_dump($userprofile->first_name);\n\t\t if($loggeduser)\n\t\t\t{\n\t\t\t\t$userinfo=\\App::make('authenticator')->getUserById($loggeduser->id);\n\t\t$userprofile=UserProfile::find($loggeduser->id);\n\t\treturn \\View::make('backend.charts')->with('user',$userprofile);\n\t\t\t}\n\t\t\telse{\n\t\t \t$logged='not login';\n\t\t \treturn \\View::make('users.login');\n\t\t}\n\t}", "protected function createChart(array $report, Chart $chart): string\n {\n $report_tiles = explode(\"_\", array_keys($report)[0]);\n if(count($report_tiles) == 2 && $report_tiles[1] == \"activeUsers\"){\n return \"<script>\".$this->createChartByActiveUsers($report, $chart).\"</script>\";\n }\n }", "public function CreateBarChart($data,$category, $value, $color, $title)\n {\n try {\n if(!is_array($data))\n throw new CustomException();\n\n echo \"<html>\n <head>\n <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\">\n <title>\".$title.\"</title>\n <script src=\\\"\". $this->path . \"/javascript/amcharts.js\\\" type=\\\"text/javascript\\\"></script>\n <script src=\\\"\" . $this->path . \"/javascript/raphael.js\\\" type=\\\"text/javascript\\\"></script>\n\n <script type=\\\"text/javascript\\\">\n\n var chart;\n\n var chartData = \". json_encode($data) . \";\n\n\n window.onload = function() {\n chart = new AmCharts.AmSerialChart();\n chart.dataProvider = chartData;\n chart.categoryField = \\\"\". $category . \"\\\";\n chart.marginTop = 25;\n chart.marginBottom = 80;\n chart.marginLeft = 55;\n chart.marginRight = 25;\n chart.startDuration = 1;\n\n var graph = new AmCharts.AmGraph();\n graph.valueField = \\\"\" . $value . \"\\\";\n graph.colorField = \\\"\" . $color . \"\\\";\n graph.balloonText=\\\"[[\" . $category . \"]]: [[\" . $value . \"]]\\\";\n graph.type = \\\"column\\\";\n graph.lineAlpha = 0;\n graph.fillAlphas = 0.8;\n chart.addGraph(graph);\n\n var catAxis = chart.categoryAxis;\n catAxis.gridPosition = \\\"start\\\";\n catAxis.autoGridCount = true;\n\n chart.write(\\\"chartdiv\\\");\n }\n\n\n </script>\n\n </head>\n\n <body style=\\\"background-color:#EEEEEE\\\">\n <div id=\\\"chartdiv\\\" style=\\\"width:600px; height:400px; background-color:#FFFFFF\\\"></div>\n </body>\n </html>\";\n \n }\n catch(CustomException $e)\n {\n $e->ShowError('Error in generate Chart', 'Data must be an array.');\n }\n }", "public function org_chart(Request $request)\n { \n $post = Page::with('sections', 'sliders')->where('code', 'org_chart')->first();\n\n return view('org_chart', compact('post'));\n }", "public function testExample()\n {\n $cols = $options = [\n 'width' => 600, \n 'width' => 400, \n 'legend' => ['position' => 'top', 'maxLines' => 3],\n 'bars' => ['groupWidth' => '75%'],\n 'isStacked' => TRUE\n ];\n\n\n\n\n $cols = ['Date', 'Fantasy & Sci Fi', 'Romance', 'Mystery/Crime', 'General',\n 'Western', 'Literature', ['role' => 'annotation']];\n $rows = [\n ['2010', 10, 24, 20, 32, 18, 5, ''],\n ['2020', 16, 22, 23, 30, 16, 9, ''],\n ['2030', 28, 19, 29, 30, 12, 13, '']\n ];\n\n $chartManager = ChartManager::setChartType('bar-chart')\n ->setOptions($options)\n ->setCols($cols)\n ->setRows($rows);\n \n $content = $chartManager->render();\n \n $this->assertEquals('bar-chart', $chartManager->getChartType());\n $this->assertRegExp('/visualization\\\\.BarChart/', $content);\n }", "public function getUrl() {\r\n\t\t\t$hasLegend = false;\r\n\t\t\tfor( $d = 0; ! $hasLegend && $d < count($this->_dataSet); $d++ ) {\r\n\t\t\t\t$hasLegend = ( $this->_dataSet[$d]->getLegendLabel() != '' );\r\n\t\t\t}\r\n\t\t\tif( $hasLegend ) {\t\t\t\r\n\t\t\t\tdie('Error: found a legend label on a Pie Chart! Please call setLabel() for Pie Charts and not setLegendLabel()');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn\tself::CHARTURL .\r\n\t\t\t\t\t$this->markupChartType() .\r\n\t\t\t\t\t$this->markupBackground() .\r\n\t\t\t\t\t$this->markupData() .\r\n\t\t\t\t\t$this->markupDataSetColors() .\r\n\t\t\t\t\t$this->markupChartSize() .\r\n\t\t\t\t\t$this->markupChartLabels() .\r\n\t\t\t\t\t$this->markupChartTitle();\r\n\t\t}", "function open_risk_scoring_method_pie($project) {\n\t$chart = new Highchart ();\n\t\n\t$chart->chart->renderTo = \"open_risk_scoring_method_pie\";\n\t$chart->chart->plotBackgroundColor = null;\n\t$chart->chart->plotBorderWidth = null;\n\t$chart->chart->plotShadow = false;\n\t$chart->title->text = \"Scoring Method\";\n\t\n\t$chart->tooltip->formatter = new HighchartJsExpr ( \"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\" );\n\t\n\t$chart->plotOptions->pie->allowPointSelect = 1;\n\t$chart->plotOptions->pie->cursor = \"pointer\";\n\t$chart->plotOptions->pie->dataLabels->enabled = false;\n\t$chart->plotOptions->pie->showInLegend = 1;\n\t$chart->credits->enabled = false;\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT CASE WHEN scoring_method = 5 THEN 'HackLabs Risk' WHEN scoring_method = 2 THEN 'CVSS' WHEN scoring_method = 1 THEN 'Classic' END AS name, COUNT(*) AS num FROM `risks` a INNER JOIN `risk_scoring` b ON a.id = b.id WHERE status != \\\"Closed\\\" AND project_version_id = $project GROUP BY b.scoring_method ORDER BY COUNT(*) DESC\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the array is empty\n\tif (empty ( $array )) {\n\t\t$data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Create the data array\n\t\tforeach ( $array as $row ) {\n\t\t\t$data [] = array (\n\t\t\t\t\t$row ['name'],\n\t\t\t\t\t( int ) $row ['num'] \n\t\t\t);\n\t\t}\n\t\t\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"pie\",\n\t\t\t\t'name' => \"Status\",\n\t\t\t\t'data' => $data \n\t\t);\n\t}\n\t\n\t$htmloutput = '';\n\t$htmloutput .= \"<div id=\\\"open_risk_scoring_method_pie\\\"></div>\\n\";\n\t$htmloutput .= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput .= $chart->render ( \"open_risk_scoring_method_pie\" );\n\t$htmloutput .= \"</script>\\n\";\n\treturn $htmloutput;\n}", "public function run()\n {\n $year = chartYear();\n $metrics = new \\App\\Helpers\\Report;\n\n $worked = [\n 'jan' => toHours($metrics->workedByMonth(1, $year)),\n 'feb' => toHours($metrics->workedByMonth(2, $year)),\n 'mar' => toHours($metrics->workedByMonth(3, $year)),\n 'apr' => toHours($metrics->workedByMonth(4, $year)),\n 'may' => toHours($metrics->workedByMonth(5, $year)),\n 'jun' => toHours($metrics->workedByMonth(6, $year)),\n 'jul' => toHours($metrics->workedByMonth(7, $year)),\n 'aug' => toHours($metrics->workedByMonth(8, $year)),\n 'sep' => toHours($metrics->workedByMonth(9, $year)),\n 'oct' => toHours($metrics->workedByMonth(10, $year)),\n 'nov' => toHours($metrics->workedByMonth(11, $year)),\n 'dec' => toHours($metrics->workedByMonth(12, $year)),\n ];\n\n $billed = [\n 'jan' => toHours($metrics->workedByMonth(1, $year, 'billed')),\n 'feb' => toHours($metrics->workedByMonth(2, $year, 'billed')),\n 'mar' => toHours($metrics->workedByMonth(3, $year, 'billed')),\n 'apr' => toHours($metrics->workedByMonth(4, $year, 'billed')),\n 'may' => toHours($metrics->workedByMonth(5, $year, 'billed')),\n 'jun' => toHours($metrics->workedByMonth(6, $year, 'billed')),\n 'jul' => toHours($metrics->workedByMonth(7, $year, 'billed')),\n 'aug' => toHours($metrics->workedByMonth(8, $year, 'billed')),\n 'sep' => toHours($metrics->workedByMonth(9, $year, 'billed')),\n 'oct' => toHours($metrics->workedByMonth(10, $year, 'billed')),\n 'nov' => toHours($metrics->workedByMonth(11, $year, 'billed')),\n 'dec' => toHours($metrics->workedByMonth(12, $year, 'billed')),\n ];\n\n return view(\n 'widgets.timetracking.yearly_overview', [\n 'config' => $this->config,\n 'year' => $year,\n 'billed' => $billed,\n 'worked' => $worked\n ]\n );\n }", "public function getQuestionChart(){\n\t\t$question_id = Input::get('question_id');\n\n\t\t$title = Question::find($question_id)->content;\n\t $response = $this->generateQuestionChart($question_id,$title);\n\t\t\n\t\t\n\t\treturn Response::json( $response );\n\n\t}", "public function Chart()\n\t{\n\t\treturn $this->belongsTo('App\\ThunderID\\OrganisationManagementV1\\Models\\Chart');\n\t}", "public function handleChart()\n {\n $art = Article::where('category', 'Art')->get()->count();\n $design = Article::where('category', 'Design')->get()->count();\n $digitl = Article::where('category', 'Digitl')->get()->count();\n $computer = Article::where('category', 'Computer')->get()->count();\n $games = Article::where('category', 'Games')->get()->count();\n $study = Article::where('category', 'Study')->get()->count();\n\n $visitors = DB::table('articles')->sum('view_count');\n $hidden = Comment::where('is_visible', false)->get()->count();\n $shown = Comment::where('is_visible', true)->get()->count();\n\n \n \n\n $articleCount = DB::table('articles')->count();\n return view('dashboard', compact('visitors', 'hidden', 'shown', 'art', 'design', 'digitl', 'computer', 'games', 'study', 'articleCount'));\n }", "public function index()\n {\n $chart = Charts::create('temp', 'canvas-gauges')\n ->title('Monitoring suhu Ruangan')\n ->labels(['Suhu Ruangan', 'kelembaban Ruangan'])\n ->values([15,30])\n ->dimensions(600,0)\n ->height(300)\n ->width(0)\n ->responsive(false);\n\n $chart2 = Charts::create('area', 'highcharts')\n ->title('Monitoring Kelembaban Ruangan')\n ->labels(['Suhu Ruangan', 'kelembaban Ruangan'])\n ->values([15,30])\n ->dimensions(600,0)\n ->height(300)\n ->width(0)\n ->responsive(false);\n\n // $chart = Charts::create('temp', 'canvas-gauges')\n // ->title('Monitoring sensor suhu')\n // ->labels('My nice label')\n // ->values([15,30])\n // ->dimensions(600,0)\n // ->responsive(false);\n\n $chart3 = Charts::database(User::all(),'bar', 'highcharts')\n ->title('Kelembaban Tanah')\n ->height(300)\n ->width(0)\n ->responsive(false)\n ->groupByYear();\n\n // $chart2 = Charts::database(User::all(),'bar', 'highcharts')\n // ->height(300)\n // ->width(0)\n // ->responsive(false)\n // ->groupByYear();\n\n return view('adminlte::home',[\n 'chart'=> $chart,\n 'chart2'=> $chart2,\n 'chart3'=> $chart3\n ]);\n }", "function wdtBrowseCharts()\n{\n if (!current_user_can('manage_options')) {\n wp_die(__('You do not have sufficient permissions to access this page.'));\n }\n\n $action = '';\n if (isset($_REQUEST['action']) && -1 != $_REQUEST['action']) {\n $action = $_REQUEST['action'];\n }\n if (isset($_REQUEST['action2']) && -1 != $_REQUEST['action2']) {\n $action = $_REQUEST['action2'];\n }\n\n if ($action === 'delete') {\n $chartId = $_REQUEST['chart_id'];\n\n if (!is_array($chartId)) {\n WPDataChart::deleteChart((int)$chartId);\n } else {\n foreach ($chartId as $singleChartId) {\n WPDataChart::deleteChart((int)$singleChartId);\n }\n }\n }\n\n $wdtBrowseChartsTable = new WDTBrowseChartsTable();\n $wdtBrowseChartsTable->prepare_items();\n\n ob_start();\n $wdtBrowseChartsTable->display();\n /** @noinspection PhpUnusedLocalVariableInspection */\n $tableHTML = ob_get_contents();\n ob_end_clean();\n\n ob_start();\n include WDT_ROOT_PATH . 'templates/admin/browse/chart/browse.inc.php';\n $browseChartsPage = ob_get_contents();\n ob_end_clean();\n\n $browseChartsPage = apply_filters('wpdatatables_filter_charts_table_page', $browseChartsPage);\n\n echo $browseChartsPage;\n}", "public function show(Sheet $sheet)\n {\n //\n }", "public function getgraphAction(){\n $params = array(\n 'cht' => 'lc', \t\t\t\t\t// chart type\n 'chf' => 'bg,s,f4f4f4|c,lg,90,ffffff,0.1,ededed,0', //background fills for the chart\n // 'chm' => 'B,f4d4b2,0,0,0|B,FF0000,1,1,0|B,00FF00,2,2,0', \t\t// line fills\n 'chco' => 'db4814,1919D1',\t\t\t\t\t//Series Colors\n 'chs' => '587x300',\t\t\t\t// chart size <width>x<height>\n\t\t\t'chxt' => 'x,y',\t\t\t\t\t// visible axes\n\t\t\t//'chof' => 'validate'\t\t\t\t// output format (png,gif,json,html{when chof='validate'})\n );\n \n\t$post=$this->getRequest()->getPost();\n\t\n\t\n\t$timezoneLocal = Mage::app()->getStore()->getConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_TIMEZONE);\n\n\t\tlist ($dateStart, $dateEnd) = Mage::getResourceModel('reports/order_collection')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getDateRange($post['range'], '', '', true);\n\n $dateStart->setTimezone($timezoneLocal);\n $dateEnd->setTimezone($timezoneLocal);\n\t\n\t\t$dates = array();\n $datas = array();\n\n while($dateStart->compare($dateEnd) < 0){\n switch ($post['range']) {\n case '24h':\n $d = $dateStart->toString('yyyy-MM-dd HH:00');\n $dateStart->addHour(1);\n break;\n case '7d':\n case '1m':\n $d = $dateStart->toString('yyyy-MM-dd');\n $dateStart->addDay(1);\n break;\n case '1y':\n case '2y':\n $d = $dateStart->toString('yyyy-MM');\n $dateStart->addMonth(1);\n break;\n }\n\n $dates[] = $d;\n }\n\n\t\t$graphData=array();\n\t\t\n\t\t$product_list=array('product1'=>$post['product'],\n\t\t\t\t\t\t\t'product2'=>$post['compare2']\n\t\t\t\t\t\t\t);\t\n\t\t$graphData=Mage::Helper('graphs')->getGraphData($dates,$product_list);\n\n /**\n * setting skip step\n */\n if (count($dates) > 8 && count($dates) < 15) {\n $c = 1;\n } else if (count($dates) >= 15){\n $c = 2;\n } else {\n $c = 0;\n }\n /**\n * skipping some x labels for good reading\n */\n $i=0;\n foreach ($dates as $k => $d) {\n if ($i == $c) {\n $dates[$k] = $d;\n $i = 0;\n } else {\n $dates[$k] = '';\n $i++;\n }\n }\n \n $this->_axisLabels['x'] = $dates;\n\t\t$this->_axisLabels['y'] = $graphData['quantity'][$post['product']];\n\t\t\n\t\tforeach ($graphData['quantity'] as $index => $serie) {\n $localmaxlength[$index] = sizeof($serie);\n $localmaxvalue[$index] = max($serie);\n $localminvalue[$index] = min($serie);\n }\n \n\t\t$maxvalue = max($localmaxvalue);\n\t\t$minvalue = min($localminvalue);\n\n $yrange = 0;\n $yLabels = array();\n $miny = 0;\n $maxy = 0;\n $yorigin = 0;\n\n $maxlength = max($localmaxlength);\n if ($minvalue >= 0 && $maxvalue >= 0) {\n $miny = 0;\n if ($maxvalue > 10) {\n $p = pow(10, $this->_getPow($maxvalue));\n $maxy = (ceil($maxvalue/$p))*$p;\n $yLabels = range($miny, $maxy, $p);\n } else {\n $maxy = ceil($maxvalue+1);\n $yLabels = range($miny, $maxy, 1);\n }\n $yrange = $maxy;\n $yorigin = 0;\n }\n\n \n\t\t\t\n\t\t\t$params['chd'] = \"e:\";\n $dataDelimiter = \"\";\n $dataSetdelimiter = \",\";\n $dataMissing = \"__\";\n \n\t\t\t// EXTENDED ENCODING\n\t\t\tforeach($product_list as $productid){\n\t\t\t\t$chartdata = array();\t\n for ($j = 0; $j < sizeof($graphData['quantity'][$productid]); $j++) {\n $currentvalue = $graphData['quantity'][$productid][$j];\n \n if (is_numeric($currentvalue)) {\n if ($yrange) {\n $ylocation = (4095 * ($yorigin + $currentvalue) / $yrange);\n\n } else {\n $ylocation = 0;\n }\n $firstchar = floor($ylocation / 64);\n $secondchar = $ylocation % 64;\n $mappedchar = substr($this->_extendedEncoding, $firstchar, 1)\n . substr($this->_extendedEncoding, $secondchar, 1);\n array_push($chartdata, $mappedchar . $dataDelimiter);\n } else {\n array_push($chartdata, $dataMissing . $dataDelimiter);\n }\n\n\t\t\t }\n\t\t\t $buffer = implode('', $chartdata);\t\t\t \n\t\t\t\t\t$buffer = rtrim($buffer, $dataSetdelimiter);\n\t\t\t\t\t$buffer = rtrim($buffer, $dataDelimiter);\n\t\t\t\t\t$buffer = str_replace(($dataDelimiter . $dataSetdelimiter), $dataSetdelimiter, $buffer);\n\t\t\t\t\t\n\t\t\t\t\t$params['chd'] .= $buffer.',';\n\t\t\t\t\t$buffer=null;\n\t\t\t\t\t$chartdata=null;\n\t\t\t\t}\n\t\t\t\t\t$labelBuffer = \"\";\n\t\t\t\t\t$valueBuffer = array();\n\t\t\t\t\t$rangeBuffer = \"\";\n \n if (sizeof($this->_axisLabels) > 0) {\n $params['chxt'] = implode(',', array_keys($this->_axisLabels));\n $indexid = 0;\n foreach ($this->_axisLabels as $idx=>$labels){\n\t\t\t\t\n if ($idx == 'x') {\n /**\n * Format date\n */\n foreach ($this->_axisLabels[$idx] as $_index=>$_label) {\n if ($_label != '') {\n switch ($post['range']) {\n case '24h':\n $this->_axisLabels[$idx][$_index] = $this->formatTime(\n new Zend_Date($_label, 'yyyy-MM-dd HH:00'), 'short', false\n );\n break;\n case '7d':\n case '1m':\n $this->_axisLabels[$idx][$_index] = $this->formatDate(\n new Zend_Date($_label, 'yyyy-MM-dd')\n );\n break;\n case '1y':\n case '2y':\n\t\t\t\t\t\t\t\t\t\n $formats = Mage::app()->getLocale()->getTranslationList('datetime');\n $format = isset($formats['yyMM']) ? $formats['yyMM'] : 'MM/yyyy';\n $format = str_replace(array(\"yyyy\", \"yy\", \"MM\"), array(\"Y\", \"y\", \"m\"), $format);\n $this->_axisLabels[$idx][$_index] = date($format, strtotime($_label));\n break;\n }\n } else {\n $this->_axisLabels[$idx][$_index] = '';\n }\n\n }\n\t\t\t\t\t\t\t\t\t\t\n $tmpstring = implode('|', $this->_axisLabels[$idx]);\n\n $valueBuffer[] = $indexid . \":|\" . $tmpstring;\n if (sizeof($this->_axisLabels[$idx]) > 1) {\n $deltaX = 100/(sizeof($this->_axisLabels[$idx])-1);\n } else {\n $deltaX = 100;\n }\n } else if ($idx == 'y') {\n $valueBuffer[] = $indexid . \":|\" . implode('|', $yLabels);\n if (sizeof($yLabels)-1) {\n $deltaY = 100/(sizeof($yLabels)-1);\n } else {\n $deltaY = 100;\n }\n // setting range values for y axis\n $rangeBuffer = $indexid . \",\" . $miny . \",\" . $maxy . \"|\";\n }\n $indexid++;\n }\n $params['chxl'] = implode('|', $valueBuffer);\n }\t\t\t\n\t\t\t\t\t\n\t\tif (isset($deltaX) && isset($deltaY)) {\n $params['chg'] = $deltaX . ',' . $deltaY . ',1,0';\n }\n \n\n\t\t\t$p = array();\n foreach ($params as $name => $value) {\n $p[] = $name . '=' .urlencode($value);\n }\n\n $url= Mage_Adminhtml_Block_Dashboard_Graph::API_URL . '?' . implode('&', $p);\n\n\t\t\t\techo $url;\n\t}", "function drawChart(&$viewer) {\n\n global $startDate, $endDate, $viewPortStartDate, $viewPortEndDate;\n\n #\n # Validate and adjust the view port dates.\n #\n\n # Verify if the view port dates are within limits\n $totalDuration = $endDate - $startDate;\n $minDuration = $viewer->getZoomInWidthLimit() * $totalDuration;\n if ($viewPortStartDate < $startDate) {\n $viewPortStartDate = $startDate;\n }\n if ($endDate - $viewPortStartDate < $minDuration) {\n $viewPortStartDate = $endDate - $minDuration;\n }\n if ($viewPortEndDate > $endDate) {\n $viewPortEndDate = $endDate;\n }\n if ($viewPortEndDate - $viewPortStartDate < $minDuration) {\n $viewPortEndDate = $viewPortStartDate + $minDuration;\n }\n\n # Adjust the view port to reflect the selected date range\n $viewer->setViewPortWidth(($viewPortEndDate - $viewPortStartDate) / $totalDuration);\n $viewer->setViewPortLeft(($viewPortStartDate - $startDate) / $totalDuration);\n\n #\n # Now we have the date range, we can get the necessary data. In this demo, we just use a random\n # number generator. In practice, you may get the data from a database or XML or by other means.\n # (See \"Using Data Sources with ChartDirector\" in the ChartDirector documentation if you need\n # some sample code on how to read data from database to array variables.)\n #\n\n # Just a random number generator to generate the data - emulates a table of numbers from\n # startDate to endDate\n $r = new RanTable(127, 4, (int)(0.5 + $totalDuration / 86400) + 1);\n $r->setDateCol(0, $startDate, 86400);\n $r->setCol(1, 150, -10, 10);\n $r->setCol(2, 200, -10, 10);\n $r->setCol(3, 250, -10, 10);\n\n # Emulate selecting the date range viewPortStartDate to viewPortEndDate. Note that we add one\n # day margin on both ends. It is because we are using daily data, but the view port can cover\n # partial days. For example, the view port end date can be at 3:00am Feb 1, 2006. In this case,\n # we need the data point at Feb 2, 2006.\n $r->selectDate(0, $viewPortStartDate - 86400, $viewPortEndDate + 86400);\n\n # Emulate getting the random data from the table\n $timeStamps = $r->getCol(0);\n $dataSeriesA = $r->getCol(1);\n $dataSeriesB = $r->getCol(2);\n $dataSeriesC = $r->getCol(3);\n\n if (count($timeStamps) >= 520) {\n #\n # Zoomable chart with high zooming ratios often need to plot many thousands of points when\n # fully zoomed out. However, it is usually not needed to plot more data points than the\n # pixel resolution of the chart. Plotting too many points may cause the points and the lines\n # to overlap on the same pixel. So rather than increasing resolution, this reduces the\n # clarity of the chart. It is better to aggregate the data first if there are too many\n # points.\n #\n # In our current example, the chart plot area only has 520 pixels in width and is using a 2\n # pixel line width. So if there are more than 520 data points, we aggregate the data using\n # the ChartDirector aggregation utility method.\n #\n # If in your real application, you do not have too many data points, you may remove the\n # following code altogether.\n #\n\n # Set up an aggregator to aggregate the data based on regular sized slots\n $m = new ArrayMath($timeStamps);\n $m->selectRegularSpacing(count($timeStamps) / 260);\n\n # For the timestamps, take the first timestamp on each slot\n $timeStamps = $m->aggregate($timeStamps, AggregateFirst);\n\n # For the data values, take the averages\n $dataSeriesA = $m->aggregate($dataSeriesA, AggregateAvg);\n $dataSeriesB = $m->aggregate($dataSeriesB, AggregateAvg);\n $dataSeriesC = $m->aggregate($dataSeriesC, AggregateAvg);\n }\n\n #\n # Now we have obtained the data, we can plot the chart.\n #\n\n #================================================================================\n # Step 1 - Configure overall chart appearance.\n #================================================================================\n\n # Create an XYChart object 600 x 300 pixels in size, with pale blue (0xf0f0ff) background, black\n # (000000) rounded border, 1 pixel raised effect.\n $c = new XYChart(600, 300, 0xf0f0ff, 0x000000);\n $c->setRoundedFrame();\n\n # Set the plotarea at (52, 60) and of size 520 x 192 pixels. Use white (ffffff) background.\n # Enable both horizontal and vertical grids by setting their colors to grey (cccccc). Set\n # clipping mode to clip the data lines to the plot area.\n $c->setPlotArea(55, 60, 520, 192, 0xffffff, -1, -1, 0xcccccc, 0xcccccc);\n $c->setClipping();\n\n # Add a top title to the chart using 15 pts Times New Roman Bold Italic font, with a light blue\n # (ccccff) background, black (000000) border, and a glass like raised effect.\n $textBoxObj = $c->addTitle(\"Zooming and Scrolling Demonstration\", \"timesbi.ttf\", 15);\n $textBoxObj->setBackground(0xccccff, 0x000000, glassEffect());\n\n # Add a bottom title to the chart to show the date range of the axis, with a light blue (ccccff)\n # background.\n $textBoxObj = $c->addTitle2(Bottom, sprintf(\n \"From <*font=arialbi.ttf*>%s<*/font*> to <*font=arialbi.ttf*>%s<*/font*> (Duration \".\n \"<*font=arialbi.ttf*>%s<*/font*> days)\", $c->formatValue($viewPortStartDate,\n \"{value|mmm dd, yyyy}\"), $c->formatValue($viewPortEndDate, \"{value|mmm dd, yyyy}\"), (int)(\n 0.5 + ($viewPortEndDate - $viewPortStartDate) / 86400)), \"ariali.ttf\", 10);\n $textBoxObj->setBackground(0xccccff);\n\n # Add a legend box at the top of the plot area with 9pts Arial Bold font with flow layout.\n $legendObj = $c->addLegend(50, 33, false, \"arialbd.ttf\", 9);\n $legendObj->setBackground(Transparent, Transparent);\n\n # Set axes width to 2 pixels\n $c->xAxis->setWidth(2);\n $c->yAxis->setWidth(2);\n\n # Add a title to the y-axis\n $c->yAxis->setTitle(\"Price (USD)\", \"arialbd.ttf\", 10);\n\n #================================================================================\n # Step 2 - Add data to chart\n #================================================================================\n\n #\n # In this example, we represent the data by lines. You may modify the code below if you want to\n # use other representations (areas, scatter plot, etc).\n #\n\n # Add a line layer for the lines, using a line width of 2 pixels\n $layer = $c->addLineLayer2();\n $layer->setLineWidth(2);\n\n # Now we add the 3 data series to a line layer, using the color red (ff0000), green (00cc00) and\n # blue (0000ff)\n $layer->setXData($timeStamps);\n $layer->addDataSet($dataSeriesA, 0xff0000, \"Product Alpha\");\n $layer->addDataSet($dataSeriesB, 0x00cc00, \"Product Beta\");\n $layer->addDataSet($dataSeriesC, 0x0000ff, \"Product Gamma\");\n\n #================================================================================\n # Step 3 - Set up x-axis scale\n #================================================================================\n\n # Set x-axis date scale to the view port date range. ChartDirector auto-scaling will\n # automatically determine the ticks on the axis.\n $c->xAxis->setDateScale($viewPortStartDate, $viewPortEndDate);\n\n #\n # In the current demo, the x-axis range can be from a few years to a few days. We can let\n # ChartDirector auto-determine the date/time format. However, for more beautiful formatting, we\n # set up several label formats to be applied at different conditions.\n #\n\n # If all ticks are yearly aligned, then we use \"yyyy\" as the label format.\n $c->xAxis->setFormatCondition(\"align\", 31104000);\n $c->xAxis->setLabelFormat(\"{value|yyyy}\");\n\n # If all ticks are monthly aligned, then we use \"mmm yyyy\" in bold font as the first label of a\n # year, and \"mmm\" for other labels.\n $c->xAxis->setFormatCondition(\"align\", 2592000);\n $c->xAxis->setMultiFormat(StartOfYearFilter(), \"<*font=bold*>{value|mmm yyyy}\", AllPassFilter(),\n \"{value|mmm}\");\n\n # If all ticks are daily algined, then we use \"mmm dd<*br*>yyyy\" in bold font as the first label\n # of a year, and \"mmm dd\" in bold font as the first label of a month, and \"dd\" for other labels.\n $c->xAxis->setFormatCondition(\"align\", 86400);\n $c->xAxis->setMultiFormat(StartOfYearFilter(),\n \"<*block,halign=left*><*font=bold*>{value|mmm dd<*br*>yyyy}\", StartOfMonthFilter(),\n \"<*font=bold*>{value|mmm dd}\");\n $c->xAxis->setMultiFormat2(AllPassFilter(), \"{value|dd}\");\n\n # For all other cases (sub-daily ticks), use \"hh:nn<*br*>mmm dd\" for the first label of a day,\n # and \"hh:nn\" for other labels.\n $c->xAxis->setFormatCondition(\"else\");\n $c->xAxis->setMultiFormat(StartOfDayFilter(), \"<*font=bold*>{value|hh:nn<*br*>mmm dd}\",\n AllPassFilter(), \"{value|hh:nn}\");\n\n #================================================================================\n # Step 4 - Set up y-axis scale\n #================================================================================\n\n if ($viewer->getZoomDirection() == DirectionHorizontal) {\n # y-axis is auto-scaled - so vertically, the view port always cover the entire y data range.\n # We save the y-axis scale for supporting xy-zoom mode if needed in the future.\n $c->layout();\n $yAxisObj = $c->yAxis;\n $viewer->setCustomAttr(\"minValue\", $yAxisObj->getMinValue());\n $yAxisObj = $c->yAxis;\n $viewer->setCustomAttr(\"maxValue\", $yAxisObj->getMaxValue());\n $viewer->setViewPortTop(0);\n $viewer->setViewPortHeight(1);\n } else {\n # xy-zoom mode - retrieve the auto-scaled axis range, which contains the entire y data\n # range.\n $minValue = $viewer->getCustomAttr(\"minValue\");\n $maxValue = $viewer->getCustomAttr(\"maxValue\");\n\n # Compute the view port axis range\n $axisLowerLimit = $maxValue - ($maxValue - $minValue) * ($viewer->getViewPortTop() +\n $viewer->getViewPortHeight());\n $axisUpperLimit = $maxValue - ($maxValue - $minValue) * $viewer->getViewPortTop();\n\n # Set the axis scale to the view port axis range\n $c->yAxis->setLinearScale($axisLowerLimit, $axisUpperLimit);\n\n # By default, ChartDirector will round the axis scale to the tick position. For zooming, we\n # want to use the exact computed axis scale and so we disable rounding.\n $c->yAxis->setRounding(false, false);\n }\n\n #================================================================================\n # Step 5 - Output the chart\n #================================================================================\n\n # Create the image and save it in a temporary location\n $chartQuery = $c->makeSession($viewer->getId());\n\n # Include tool tip for the chart\n $imageMap = $c->getHTMLImageMap(\"\", \"\",\n \"title='[{dataSetName}] {x|mmm dd, yyyy}: USD {value|2}'\");\n\n # Set the chart URL, image map, and chart metrics to the viewer. For the image map, we use\n # delayed delivery and with compression, so the chart image will show up quicker.\n $viewer->setImageUrl(\"getchart.php?\".$chartQuery);\n $viewer->setImageMap(\"getchart.php?\".$viewer->makeDelayedMap($imageMap, true));\n $viewer->setChartMetrics($c->getChartMetrics());\n}", "public function grafica1Controller(){\n \t// crea el array para las citas atendidas\n $respuesta = Datos::graficaMensualModel(\"salidas\");\n $meses = array();\n $cantA = array();\n foreach ($respuesta as $row => $item){\n array_push($meses, $item[\"mes\"]);\n array_push($cantA, $item[\"total\"]);\n\n }\n\n\n // Crea array para citas agendadas\n $respuesta = Datos::graficaMensualModel(\"entradas\");\n $mesesCompras = array();\n $cantCompras = array();\n foreach ($respuesta as $row => $item){\n array_push($mesesCompras, $item[\"mes\"]);\n array_push($cantCompras, $item[\"total\"]);\n\n }\n\n // // Crea array para citas referidas\n // $respuesta = Datos::grafica1cModel(\"presupuestos\");\n // //$meses = array();\n // $cantC = array();\n // foreach ($respuesta as $row => $item){\n // //array_push($meses, $item[\"mes\"]);\n // array_push($cantC, $item[\"cantidad\"]);\n\n // }\n\n\n echo \"<script>\n $(function () {\n\n var areaChartCanvas = $('#graficaVentas').get(0).getContext('2d')\n // This will get the first returned node in the jQuery collection.\n var areaChart = new Chart(areaChartCanvas)\n\n var areaChartData = {\n labels :\".json_encode($meses).\",\n datasets: [\n {\n label : 'Ventas',\n fillColor : 'rgba(100, 200, 50, .5)',\n strokeColor : 'rgba(100, 200, 50, 1)',\n pointColor : 'rgba(100, 200, 50, 1)',\n pointStrokeColor : '#c1c7d1',\n pointHighlightFill : '#fff',\n pointHighlightStroke: 'rgba(220,220,220,1)',\n data : \". json_encode($cantA,JSON_NUMERIC_CHECK).\"\n }\n ]\n }\n\n var areaChartOptions = {\n //Boolean - If we should show the scale at all\n showScale : true,\n //Boolean - Whether grid lines are shown across the chart\n scaleShowGridLines : true,\n //String - Colour of the grid lines\n scaleGridLineColor : 'rgba(0,0,0,.05)',\n //Number - Width of the grid lines\n scaleGridLineWidth : 1,\n //Boolean - Whether to show horizontal lines (except X axis)\n scaleShowHorizontalLines: true,\n //Boolean - Whether to show vertical lines (except Y axis)\n scaleShowVerticalLines : true,\n //Boolean - Whether the line is curved between points\n bezierCurve : true,\n //Number - Tension of the bezier curve between points\n bezierCurveTension : 0.3,\n //Boolean - Whether to show a dot for each point\n pointDot : false,\n //Number - Radius of each point dot in pixels\n pointDotRadius : 4,\n //Number - Pixel width of point dot stroke\n pointDotStrokeWidth : 1,\n //Number - amount extra to add to the radius to cater for hit detection outside the drawn point\n pointHitDetectionRadius : 20,\n //Boolean - Whether to show a stroke for datasets\n datasetStroke : true,\n //Number - Pixel width of dataset stroke\n datasetStrokeWidth : 2,\n //Boolean - Whether to fill the dataset with a color\n datasetFill : true,\n //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container\n maintainAspectRatio : true,\n //Boolean - whether to make the chart responsive to window resizing\n responsive : true\n }\n\n //Create the line chart\n areaChart.Line(areaChartData, areaChartOptions)\n\n })\n</script>\";\n\necho \"<script>\n $(function () {\n\n var areaChartCanvas = $('#graficaCompras').get(0).getContext('2d')\n // This will get the first returned node in the jQuery collection.\n var areaChart = new Chart(areaChartCanvas)\n\n var areaChartData = {\n labels :\".json_encode($mesesCompras).\",\n datasets: [\n {\n label : 'Ventas',\n fillColor : 'rgba(50, 214, 222, .5)',\n strokeColor : 'rgba(50, 214, 222, 1)',\n pointColor : 'rgba(50, 214, 222, 1)',\n pointStrokeColor : '#c1c7d1',\n pointHighlightFill : '#fff',\n pointHighlightStroke: 'rgba(220,220,220,1)',\n data : \". json_encode($cantCompras,JSON_NUMERIC_CHECK).\"\n }\n ]\n }\n\n var areaChartOptions = {\n //Boolean - If we should show the scale at all\n showScale : true,\n //Boolean - Whether grid lines are shown across the chart\n scaleShowGridLines : true,\n //String - Colour of the grid lines\n scaleGridLineColor : 'rgba(0,0,0,.05)',\n //Number - Width of the grid lines\n scaleGridLineWidth : 1,\n //Boolean - Whether to show horizontal lines (except X axis)\n scaleShowHorizontalLines: true,\n //Boolean - Whether to show vertical lines (except Y axis)\n scaleShowVerticalLines : true,\n //Boolean - Whether the line is curved between points\n bezierCurve : true,\n //Number - Tension of the bezier curve between points\n bezierCurveTension : 0.3,\n //Boolean - Whether to show a dot for each point\n pointDot : false,\n //Number - Radius of each point dot in pixels\n pointDotRadius : 4,\n //Number - Pixel width of point dot stroke\n pointDotStrokeWidth : 1,\n //Number - amount extra to add to the radius to cater for hit detection outside the drawn point\n pointHitDetectionRadius : 20,\n //Boolean - Whether to show a stroke for datasets\n datasetStroke : true,\n //Number - Pixel width of dataset stroke\n datasetStrokeWidth : 2,\n //Boolean - Whether to fill the dataset with a color\n datasetFill : true,\n //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container\n maintainAspectRatio : true,\n //Boolean - whether to make the chart responsive to window resizing\n responsive : true\n }\n\n //Create the line chart\n areaChart.Line(areaChartData, areaChartOptions)\n\n })\n</script>\";\n}", "public function getChartById($id_chart)\n {\n return $this->getChart([\n ['id_chart', '=', intval($id_chart)]\n ]);\n }", "function open_risk_team_pie()\n{\n $chart = new Highchart();\n\n $chart->chart->renderTo = \"open_risk_team_pie\";\n $chart->chart->plotBackgroundColor = null;\n $chart->chart->plotBorderWidth = null;\n $chart->chart->plotShadow = false;\n $chart->title->text = \"Teams\";\n\n $chart->tooltip->formatter = new HighchartJsExpr(\"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\");\n\n $chart->plotOptions->pie->allowPointSelect = 1;\n $chart->plotOptions->pie->cursor = \"pointer\";\n $chart->plotOptions->pie->dataLabels->enabled = false;\n $chart->plotOptions->pie->showInLegend = 1;\n $chart->credits->enabled = false;\n\n // Open the database connection\n $db = db_open();\n\n // Query the database\n $stmt = $db->prepare(\"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `team` b ON a.team = b.value GROUP BY b.name ORDER BY COUNT(*) DESC\");\n $stmt->execute();\n\n // Store the list in the array\n $array = $stmt->fetchAll();\n\n // Close the database connection\n db_close($db);\n\n // Create the data array\n foreach ($array as $row)\n {\n $data[] = array($row['name'], (int)$row['num']);\n }\n\n $chart->series[] = array('type' => \"pie\",\n 'name' => \"Status\",\n 'data' => $data);\n\n echo \"<div id=\\\"open_risk_team_pie\\\"></div>\\n\";\n echo \"<script type=\\\"text/javascript\\\">\";\n echo $chart->render(\"open_risk_team_pie\");\n echo \"</script>\\n\";\n}", "function visualization_dashlet($args, $inboard=0)\n{\n $height = grab_array_var($args, 'iframe_height', 300); \n $type = grab_array_var($args, 'objecttype', 'host'); \n $graphtype = grab_array_var($args, 'graphtype', 'bar');\n $id = \"visualization_{$type}health_\".random_string(6);\n $url = visualizations_component_get_baseurl().'index.php?mode=api&objecttype='.$type.'&graphtype='.$graphtype.'&div='.$id.'_graph'; \n\n // Start output\n $output = '<div class=\"infotable_title\">'.ucfirst($type).' Health</div>';\n $output .= '\n <div class=\"visualization_'.$type.'health_dashlet\" id=\"'.$id.'\">\n <img src=\"'.theme_image(\"throbber.gif\").'\">\n </div> <!-- visualization_'.$type.'health_dashlet -->\n\n <div class=\"visualization_'.$type.'health_dashlet\" id=\"'.$id.'_graph\"></div>\n\n <script type=\"text/javascript\">\n $(document).ready(function() {\n\n get_'.$id.'_content();\n \n $(\"#'.$id.'\").everyTime(60*1000, \"timer-'.$id.'\", function(i) {\n get_'.$id.'_content();\n });\n\n $(\"#'.$id.'\").closest(\".ui-resizable\").on(\"resizestop\", function(e, ui) {\n var height = ui.size.height - 17;\n var width = ui.size.width;\n get_'.$id.'_content(height, width);\n });\n \n function get_'.$id.'_content(height, width) {\n\n if (height == undefined) { var height = ($(\"#'.$id.'\").parent(\".visualizations_map_inboard\").height() - 30); }\n if (width == undefined) { var width = $(\"#'.$id.'\").parent(\".visualizations_map_inboard\").width(); }\n\n var url = \"'.$url.'\";\n if ('.$inboard.') {\n url = url + \"&width=\" + width + \"&height=\" + height;\n }\n $(\"#'.$id.'\").load(url);\n }\n });\n </script>';\n\n return $output;\n}", "function buildTeamChart($pi_id, $parent_name){\n $db = new mysqli(DB_SERVER, DB_USER, DB_PASS, DB_NAME);\n $db->set_charset(\"utf8\");\n $sql = \"SELECT DISTINCT cap.program_increment, art.team_name, sum(cap.total) as total\n FROM capacity cap, trains_and_teams art\n WHERE art.team_id = cap.team_id\n AND art.parent_name ='\".$parent_name.\"'\n AND program_increment='\".$pi_id.\"'\n GROUP BY cap.program_increment, art.team_name\n ORDER BY cap.program_increment, art.team_name\";\n $result = $db->query($sql);\n\n echo '<script type=\"text/javascript\">\n google.charts.load(\\'current\\', {\\'packages\\':[\\'corechart\\']});\n google.charts.setOnLoadCallback(drawChart);\n function drawChart() {';\n $teamData='[\\'Agile Team\\', \\'Total Capacity for PI (Story Points)\\']';\n if ($result->num_rows > 0) {\n // output data of each row\n while($row = $result->fetch_assoc()) {\n $teamData = $teamData.',[\\''.$row[\"team_name\"].'\\','.$row[\"total\"].']';\n }\n };\n echo 'var data2 = google.visualization.arrayToDataTable(['.$teamData.']);';\n echo 'var options2 = {\n title: \\'Agile Teams for '.$parent_name.' in '.$pi_id.'\\',\n colors: [\\'#6699CC\\', \\'#003366\\', \\'#C0C0C0\\', \\'#000044\\', \\'#31659C\\', \\'#639ACE\\']\n };\n \n var chart2 = new google.visualization.ColumnChart(document.getElementById(\\'teamPieChart\\'));\n\n chart2.draw(data2, options2);\n }\n </script>\n ';\n \n //--------------------------------------------------------------\n $sql2 = \"SELECT DISTINCT cap.program_increment, sum(cap.total) as final_total\n FROM capacity cap, trains_and_teams art\n WHERE art.team_id = cap.team_id\n AND art.parent_name ='\".$parent_name.\"'\n AND program_increment='\".$pi_id.\"'\n GROUP BY cap.program_increment\n ORDER BY cap.program_increment, art.team_name;\";\n $result2 = $db->query($sql2);\n $final_total ='';\n if ($result2->num_rows > 0) {\n while($row = $result2->fetch_assoc()) {\n $final_total = $row[\"final_total\"];\n }\n }\n if($final_total > 0){\n echo '<tr><td style=\\'background-color:lightgrey; font-weight:bold;\\'> <div>Final Total for '.$parent_name.' '.$pi_id.': '.$final_total.'</div></td></tr>';\n }\n}", "public function get_main_chart() {\n\n\t\tif ( empty( $this->product_ids ) ) {\n\t\t\t?>\n\t\t\t<div class=\"chart-container\">\n\t\t\t\t<p class=\"chart-prompt\"><?php _e( '&larr; Choose a product to view stats', 'woocommerce-cost-of-goods' ); ?></p>\n\t\t\t</div>\n\t\t\t<?php\n\t\t\treturn;\n\t\t}\n\n\t\t$data = $this->get_report_data();\n\n\t\t// prep data for charting\n\t\t$sales = $this->prepare_chart_data( $data->sales, 'post_date', 'order_item_amount', $this->chart_interval, $this->start_date, $this->chart_groupby );\n\t\t$cogs = $this->prepare_chart_data( $data->cogs, 'post_date', 'order_item_total_cost', $this->chart_interval, $this->start_date, $this->chart_groupby );\n\t\t$profits = $this->prepare_chart_data( $data->profits, 'post_date', 'order_item_profit', $this->chart_interval, $this->start_date, $this->chart_groupby );\n\t\t$item_counts = $this->prepare_chart_data( $data->item_counts, 'post_date', 'order_item_count', $this->chart_interval, $this->start_date, $this->chart_groupby );\n\n\t\t$chart_data = array(\n\t\t\t'sales' => array_values( $sales ),\n\t\t\t'cogs' => array_values( $cogs ),\n\t\t\t'profits' => array_values( $profits ),\n\t\t\t'item_counts' => array_values( $item_counts ),\n\t\t);\n\n\t\t?>\n\t\t<div class=\"chart-container\">\n\t\t\t<div class=\"chart-placeholder main\"></div>\n\t\t</div>\n\t\t<script type=\"text/javascript\">\n\n\t\t\tvar main_chart;\n\n\t\t\tjQuery(function(){\n\t\t\t\tvar order_data = jQuery.parseJSON( '<?php echo json_encode( $chart_data ); ?>' );\n\n\t\t\t\tvar drawGraph = function( highlight ) {\n\n\t\t\t\t\tvar series = [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel : \"<?php echo esc_js( __( 'Number of items sold', 'woocommerce-cost-of-goods' ) ) ?>\",\n\t\t\t\t\t\t\tdata : order_data.item_counts,\n\t\t\t\t\t\t\tcolor : '<?php echo $this->chart_colors['total_items']; ?>',\n\t\t\t\t\t\t\tbars : { fillColor: '<?php echo $this->chart_colors['total_items']; ?>', fill: true, show: true, lineWidth: 0, barWidth: <?php echo $this->barwidth; ?> * 0.5, align: 'center' },\n\t\t\t\t\t\t\tshadowSize: 0,\n\t\t\t\t\t\t\thoverable : false\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel : \"<?php echo esc_js( __( 'Sales amount', 'woocommerce-cost-of-goods' ) ) ?>\",\n\t\t\t\t\t\t\tdata : order_data.sales,\n\t\t\t\t\t\t\tyaxis : 2,\n\t\t\t\t\t\t\tcolor : '<?php echo $this->chart_colors['total_sales']; ?>',\n\t\t\t\t\t\t\tpoints : { show: true, radius: 5, lineWidth: 3, fillColor: '#fff', fill: true },\n\t\t\t\t\t\t\tlines : { show: true, lineWidth: 4, fill: false },\n\t\t\t\t\t\t\tshadowSize: 0,\n\t\t\t\t\t\t\t<?php echo $this->get_currency_tooltip(); ?>\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel : \"<?php echo esc_js( __( 'Cost of Goods Sold', 'woocommerce-cost-of-goods' ) ) ?>\",\n\t\t\t\t\t\t\tdata : order_data.cogs,\n\t\t\t\t\t\t\tyaxis : 2,\n\t\t\t\t\t\t\tcolor : '<?php echo $this->chart_colors['total_cogs']; ?>',\n\t\t\t\t\t\t\tpoints : { show: true, radius: 5, lineWidth: 3, fillColor: '#fff', fill: true },\n\t\t\t\t\t\t\tlines : { show: true, lineWidth: 4, fill: false },\n\t\t\t\t\t\t\tshadowSize: 0,\n\t\t\t\t\t\t\t<?php echo $this->get_currency_tooltip(); ?>\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel : \"<?php echo esc_js( __( 'Profit amount', 'woocommerce-cost-of-goods' ) ) ?>\",\n\t\t\t\t\t\t\tdata : order_data.profits,\n\t\t\t\t\t\t\tyaxis : 2,\n\t\t\t\t\t\t\tcolor : '<?php echo $this->chart_colors['total_profit']; ?>',\n\t\t\t\t\t\t\tpoints : { show: true, radius: 5, lineWidth: 3, fillColor: '#fff', fill: true },\n\t\t\t\t\t\t\tlines : { show: true, lineWidth: 4, fill: false },\n\t\t\t\t\t\t\tshadowSize: 0,\n\t\t\t\t\t\t\t<?php echo $this->get_currency_tooltip(); ?>\n\t\t\t\t\t\t}\n\t\t\t\t\t];\n\n\t\t\t\t\tif ( highlight !== 'undefined' && series[ highlight ] ) {\n\t\t\t\t\t\thighlight_series = series[ highlight ];\n\n\t\t\t\t\t\thighlight_series.color = '#9c5d90';\n\n\t\t\t\t\t\tif ( highlight_series.bars ) {\n\t\t\t\t\t\t\thighlight_series.bars.fillColor = '#9c5d90';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( highlight_series.lines ) {\n\t\t\t\t\t\t\thighlight_series.lines.lineWidth = 5;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmain_chart = jQuery.plot(\n\t\t\t\t\t\tjQuery( '.chart-placeholder.main' ),\n\t\t\t\t\t\tseries,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\tshow: false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tgrid: {\n\t\t\t\t\t\t\t\tcolor : '#aaa',\n\t\t\t\t\t\t\t\tborderColor: 'transparent',\n\t\t\t\t\t\t\t\tborderWidth: 0,\n\t\t\t\t\t\t\t\thoverable : true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\txaxes: [ {\n\t\t\t\t\t\t\t\tcolor : '#aaa',\n\t\t\t\t\t\t\t\tposition : 'bottom',\n\t\t\t\t\t\t\t\ttickColor : 'transparent',\n\t\t\t\t\t\t\t\tmode : 'time',\n\t\t\t\t\t\t\t\ttimeformat : \"<?php if ( $this->chart_groupby == 'day' ) echo '%d %b'; else echo '%b'; ?>\",\n\t\t\t\t\t\t\t\tmonthNames : <?php echo json_encode( array_values( $GLOBALS['wp_locale']->month_abbrev ) ) ?>,\n\t\t\t\t\t\t\t\ttickLength : 1,\n\t\t\t\t\t\t\t\tminTickSize: [1, \"<?php echo esc_js( $this->chart_groupby ); ?>\"],\n\t\t\t\t\t\t\t\tfont : {\n\t\t\t\t\t\t\t\t\tcolor: '#aaa'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} ],\n\t\t\t\t\t\t\tyaxes: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmin : 0,\n\t\t\t\t\t\t\t\t\tminTickSize : 1,\n\t\t\t\t\t\t\t\t\ttickDecimals: 0,\n\t\t\t\t\t\t\t\t\tcolor : '#ecf0f1',\n\t\t\t\t\t\t\t\t\tfont : { color: '#aaa' }\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\t\tposition : 'right',\n\t\t\t\t\t\t\t\t\tmin : 0,\n\t\t\t\t\t\t\t\t\ttickDecimals : 2,\n\t\t\t\t\t\t\t\t\talignTicksWithAxis: 1,\n\t\t\t\t\t\t\t\t\tcolor : 'transparent',\n\t\t\t\t\t\t\t\t\tfont : { color: '#aaa' }\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\n\t\t\t\t\tjQuery( '.chart-placeholder' ).resize();\n\t\t\t\t}\n\n\t\t\t\tdrawGraph();\n\n\t\t\t\tjQuery( '.highlight_series' ).hover(\n\t\t\t\t\tfunction() {\n\t\t\t\t\t\tdrawGraph( jQuery( this ).data( 'series' ) );\n\t\t\t\t\t},\n\t\t\t\t\tfunction() {\n\t\t\t\t\t\tdrawGraph();\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\t\t</script>\n\t\t<?php\n\t}", "function display($name, $xmlFile, $width = '320', $height = '480', $resize = false)\n {\n parent::display($name, $xmlFile, $width, $height, $resize);\n\n return $this->ss->fetch('include/SugarCharts/sucrose/tpls/chart.tpl');\n }", "public function index() {\n\t\t$template = new \\WordPress\\CMS\\Template( 'erd/display.html' );\n\t\t$template->title = 'ERD';\n\t\t$template->tables = $this->tables;\n\t\t$template->selected_tables = $this->selected_tables;\n\n\t\t$dot = new \\WordPress\\CMS\\Template( 'erd/erd.dot' );\n\t\t$dot->tables = $this->tables;\n\t\t$dot->selected_tables = $this->selected_tables;\n\t\t$gv = new \\TFO_Graphviz();\n\t\t$gv->init();\n\t\t$template->graphviz = $gv->shortcode( array(), $dot->render() );\n\n\t\treturn $template->render();\n\t}", "public static function postRender( \\Altamira\\Chart $chart, array $styleOptions = array() );", "function getData($strKriteria)\n{\n global $tblEmployee;\n global $strDataTotal;\n global $strChartPath;\n global $strPageTitle;\n global $strWordsTitle;\n global $strDirPath;\n global $strFilePath;\n global $strDate;\n global $strPageTitle;\n global $strDataInterval;\n global $strResultInTable;\n global $db;\n global $ARRAY_EMPLOYEE_STATUS;\n $chart = new VerticalBarChart();\n $dataSet = new XYDataSet();\n //get all edu level\n $arrCode = $ARRAY_EMPLOYEE_STATUS;\n $arrCode[] = null;\n foreach ($arrCode as $key => $codeData) {\n $strSQL = \"SELECT COUNT(*) FROM hrd_employee AS t1\n\t\tLEFT JOIN hrd_salary_detail AS t2 ON t1.id = t2.id_employee \";//AND t1.position_code = t2.position_code \";\n $strExecuteKriteria = \" AND t1.employee_status = '$key' \";\n $strExecuteSQL = $strSQL . $strKriteria . $strExecuteKriteria;\n $numOfEmployee = $db->execute($strExecuteSQL);\n $numOfEmployee = $db->fetchrow($numOfEmployee);\n $numOfEmployee = $numOfEmployee[\"count\"];\n if ($codeData == null) {\n $codeData = getWords(\"No $strWordsTitle Data\");\n }\n $dataSet->addPoint(new Point(\"$codeData\", $numOfEmployee));\n $strResultInTable .= \"\n\t\t<tr>\n\t\t\t<td>$codeData</td>\n\t\t\t<td align=right>$numOfEmployee</td>\n\t\t</tr>\n\t\t\";\n $strDataTotal += $numOfEmployee;\n }\n $chart->setDataSet($dataSet);\n $chart->setTitle($strPageTitle);\n $strChartPath = $strDirPath . \"/\" . $strFilePath;\n if (!file_exists($strChartPath)) {\n if (!file_exists($strDirPath)) {\n mkdir($strDirPath);\n }\n $temp = fopen($strChartPath, \"w\");\n fwrite($temp, \"\");\n fclose($temp);\n }\n $chart->render($strChartPath);\n}", "public function index()\n {\n $category = new Category;\n $data = collect([]);\n $label = collect([]);\n $cc = CompanyCategories::all();\n foreach($cc as $c){\n $label->push($c->name);\n $data->push($c->companies->count());\n }\n $category->labels($label);\n $category->dataset('My dataset', 'pie',$data)->options([\n 'color' => '#ff0000',\n 'backgroundColor'=>['#ff22ff','#ffee89','#f35f9f','#4aef3f','#aaeeff'],\n 'displayAxes'=>false,\n 'doughnut'=>20,\n 'displayLegend'=>false,\n ]);\n\n $data = Letter::selectRaw('month as bulan, count(month) as month')\n ->groupBy('month')\n\t\t->groupBy('year')\n ->orderBy('month')\n ->whereHas('history_last',function($query){\n $query->where(\"status_id\",\"<>\", 1);\n })\n ->get()\n\t\t->map(function($item){\n //dd($item);\n return ['month'=>$item->bulan,'jumlah'=>$item->month];\n });\n \n\t\t$mydata=[];\n\t\t\n\t\t\tfor($i=1; $i <=12; $i++) {\n\t\t\t\t$k=0;\n\t\t\t\tforeach($data as $value=>$lable) {\t\t\n\t\t\t\t\tif($i == $lable['month']){\n\t\t\t\t\t\t$k++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($k>0){\n\t\t\t\t\tarray_push($mydata,$lable['jumlah']);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarray_push($mydata,0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t$mydata;\n\t\t//dd($mydata);\n $bar = new Category;\n $lable = collect(config('month'));\n $bar->labels(['jan','feb','mar','apr','mei','jun','jul','agt','sept','okt','nov','des']);\n $bar->dataset('Jumlah Tunggakan ' . Carbon::now()->format('Y'),'bar',$mydata)->options([\n 'backgroundColor'=>['#ff22ff','#ffee89','#3fAfff','#4aef3f','#aaeeff','#aa00FF','#ff223F','#9999ee','#F39A83','#2244AA','#AABB44','#44BBAA'],\n ]);\n\n return view('home',compact('category', 'bar'));\n }", "function open_risk_location_pie($project) {\n\t$chart = new Highchart ();\n\t\n\t$chart->chart->renderTo = \"open_risk_location_pie\";\n\t$chart->chart->plotBackgroundColor = null;\n\t$chart->chart->plotBorderWidth = null;\n\t$chart->chart->plotShadow = false;\n\t$chart->title->text = \"Sites/Locations\";\n\t\n\t$chart->tooltip->formatter = new HighchartJsExpr ( \"function() {\n return '<b>'+ this.point.name +'</b>: '+ this.point.y; }\" );\n\t\n\t$chart->plotOptions->pie->allowPointSelect = 1;\n\t$chart->plotOptions->pie->cursor = \"pointer\";\n\t$chart->plotOptions->pie->dataLabels->enabled = false;\n\t$chart->plotOptions->pie->showInLegend = 1;\n\t$chart->credits->enabled = false;\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT b.name, COUNT(*) AS num FROM `risks` a INNER JOIN `location` b ON a.location = b.value WHERE status != \\\"Closed\\\" AND project_version_id = $project GROUP BY b.name ORDER BY COUNT(*) DESC\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the array is empty\n\tif (empty ( $array )) {\n\t\t$data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Create the data array\n\t\tforeach ( $array as $row ) {\n\t\t\t$data [] = array (\n\t\t\t\t\t$row ['name'],\n\t\t\t\t\t( int ) $row ['num'] \n\t\t\t);\n\t\t}\n\t\t\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"pie\",\n\t\t\t\t'name' => \"Status\",\n\t\t\t\t'data' => $data \n\t\t);\n\t}\n\t\n\t$htmloutput = '';\n\t$htmloutput.= \"<div id=\\\"open_risk_location_pie\\\"></div>\\n\";\n\t$htmloutput.= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput.= $chart->render ( \"open_risk_location_pie\" );\n\t$htmloutput.= \"</script>\\n\";\n\treturn $htmloutput;\n}", "public function setChart($c) {\r\n parent::setChart($c);\r\n if ($this->pen != null) {\r\n $this->pen->setChart($c);\r\n }\r\n if ($this->bBrush != null) {\r\n $this->bBrush->setChart($c);\r\n }\r\n }", "function makeDoughnutPageContent($data, $facets, $folder) {\n\tinclude('fieldList.php');\n\t$facets = array_intersect($facets, $doughnutFields);\n\t$firstFacet = assignFirstFacet($facets);\n\t$content = '\t\t\t\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-lg-6\">\n\t\t\t\t\t<canvas id=\"myDoughnutChart\" width=\"400\" height=\"400\"></canvas>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-lg-6\">\n\t\t\t\t\t'.makeDoughnutButtons($facets, $firstFacet).'\n\t\t\t\t\t<div id=\"chart-legend\" class=\"chart-legend\"></div>\n\t\t\t\t</div>\n\t\t\t</div>';\n\t\t$content .= makeDoughnutScript($data, $facets, $firstFacet, $folder);\n\treturn($content);\n}", "public function index(Chart $chart)\n {\n return ChartDataResource::collection($chart->chartData);\n }", "public function handler(Request $request): Chartisan\n {\n $qry = DB::table('excel_table');\n $qry->select(DB::raw('gorod, COUNT(gorod) as cC'));\n\n $qry = app('App\\Http\\Controllers\\ImportExcel')->filter($request, $qry);\n\n $cities = $qry\n ->groupBy('gorod')\n ->whereNotNull('gorod')\n ->orderBy('cC', 'DESC')\n ->get()\n ->toArray();\n\n $count = $fullCount = $countsCitiesOther = 0;\n foreach ($cities as $city) {\n if ($count > 3) {\n $countsCitiesOther += $city->cC;\n continue;\n }\n\n if ($city->cC > 0) {\n $labelsCities[] = $city->gorod;\n $countsCities[] = $city->cC;\n }\n\n $count++;\n $fullCount += $city->cC;\n }\n\n foreach ($labelsCities as $idx => $label) {\n $percent = $countsCities[$idx] / $fullCount * 100;\n $labelsCities[$idx] .= \"(\" . round($percent, 2) . '%)';\n }\n\n \n if ($countsCitiesOther > 0) {\n $labelsCities[] = 'Остальные';\n $countsCities[] = $countsCitiesOther;\n }\n\n if (!empty($labelsCities)) {\n return Chartisan::build()\n ->labels($labelsCities)\n ->dataset('Города', $countsCities);\n }\n return Chartisan::build()\n ->labels([])\n ->dataset('Города', []);\n }", "function visualizzaGraficoMediaLike($date, $medieLikes)\n {\n echo \"<script>function graficoMediaLike(){ var data = google.visualization.arrayToDataTable([['', 'Likes']\";\n\n $i = 0;\n\n foreach ($medieLikes as $mediaLike)\n {\n echo \",['$date[$i]', $mediaLike]\";\n $i++;\n }\n\n echo \"]); var chart = new google.visualization.ComboChart(document.getElementById('mediaLike'));\n chart.draw(data, {title: 'Media dei Likes totali', colors: ['blue']});}</script>\";\n }", "public function handler(Request $request): Chartisan\n {\n $month=$request->month;\n\n $bins = DB::table('log_pengambilan_sampah')\n ->join('tempat_sampah', 'log_pengambilan_sampah.id', '=', 'tempat_sampah.id')\n ->get();\n\n\n $name = [];\n foreach ($bins as $bin){\n array_push($name, [\"id\" => $bin->id, 'name' => $bin->device_name]);\n }\n $labels = ['Minggu 1', 'Minggu 2', 'Minggu 3', 'Minggu 4'];\n $week1 = [];\n $week2 = [];\n $week3 = [];\n $week4 = [];\n\n //get data untuk week1\n $values1 = LogPengambilanSampah::select(DB::raw(\"COUNT(*) as count\"), 'id_tempat_sampah')\n ->whereBetween('waktu_penuh',[date(\"2021-\".$month.\"-1\"),date(\"2021-\".$month.\"-7\")])\n ->groupBy(DB::raw(\"id_tempat_sampah\"))\n ->get();\n\n if(count($values1) == 0)\n {\n $week1 = [0,0,0];\n }\n else\n {\n foreach ($name as $key => $value) {\n array_push($week1, isset($values1[$key]) ? $values1[$key]->count : 0);\n }\n }\n\n //get data untuk week2\n $values2 = LogPengambilanSampah::select(DB::raw(\"COUNT(*) as count\"), 'id_tempat_sampah')\n ->whereBetween('waktu_penuh',[date(\"2021-\".$month.\"-8\"),date(\"2021-\".$month.\"-14\")])\n ->groupBy(DB::raw(\"id_tempat_sampah\"))\n ->get();\n foreach ($name as $key => $value) {\n array_push($week2, isset($values2[$key]) ? $values2[$key]->count : 0);\n }\n if(empty($week2))\n {\n $week2 = [0,0,0];\n }\n\n //get data untuk week 3\n $values3 = LogPengambilanSampah::select(DB::raw(\"COUNT(*) as count\"), 'id_tempat_sampah')\n ->whereBetween('waktu_penuh',[date(\"2021-\".$month.\"-15\"),date(\"2021-\".$month.\"-21\")])\n ->groupBy(DB::raw(\"id_tempat_sampah\"))\n ->get();\n foreach ($name as $key => $value) {\n array_push($week3, isset($values3[$key]) ? $values3[$key]->count : 0);\n }\n if(empty($week3))\n {\n $week3 = [0,0,0];\n }\n\n // get data untuk week 4\n $values4 = LogPengambilanSampah::select(DB::raw(\"COUNT(*) as count\"), 'id_tempat_sampah')\n ->whereBetween('waktu_penuh',[date(\"2021-\".$month.\"-22\"),date(\"2021-\".$month.\"-31\")])\n ->groupBy(DB::raw(\"id_tempat_sampah\"))\n ->get();\n foreach ($name as $key => $value) {\n array_push($week4, isset($values4[$key]) ? $values4[$key]->count : 0);\n }\n if(empty($week4))\n {\n $week4 = [0,0,0];\n }\n\n\n\n return Chartisan::build()\n ->labels($labels)\n ->dataset($name[0]['name'], [$week1[0],$week2[0],$week3[0],$week4[0]])\n ->dataset($name[1]['name'], [$week1[1],$week2[1],$week3[1],$week4[1]])\n ->dataset($name[2]['name'], [$week1[2],$week2[2],$week3[2],$week4[2]]);\n }", "protected function getChartData()\n {\n $data = $this->loadChartData(); //load data from CSV\n\n $groupedByWeek = $data->groupBy(function ($item) { // Group data base on week start date\n return $item->created_at->startOfWeek()->format('d/m/Y');\n });\n\n $chartData = array();\n foreach ($groupedByWeek as $key => $item) {\n $cohort = new \\stdClass();\n $cohort->name = $key;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 0)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 20)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 40)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 50)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 70)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 90)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 99)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 100)->count() / $item->count()) * 100;\n array_push($chartData, $cohort);\n };\n\n return Response()->json( // return data for chart as Json\n $chartData\n );\n }" ]
[ "0.5831208", "0.5759848", "0.57333994", "0.5631029", "0.5600386", "0.5599379", "0.55765635", "0.5567689", "0.5561675", "0.5519688", "0.5454943", "0.5442974", "0.5441047", "0.5431268", "0.53767383", "0.5362275", "0.5355412", "0.5338681", "0.5312168", "0.528737", "0.52606034", "0.5238369", "0.5206204", "0.51994896", "0.51978177", "0.5197577", "0.51863396", "0.5162407", "0.51498616", "0.51492316", "0.51435596", "0.5111493", "0.50978315", "0.5087964", "0.5087131", "0.50821006", "0.50614387", "0.5052324", "0.50315166", "0.5031365", "0.5023096", "0.5022463", "0.50184304", "0.50172377", "0.5011765", "0.5006498", "0.49962527", "0.49959385", "0.49803513", "0.49643618", "0.49635622", "0.49633116", "0.496018", "0.4954391", "0.49508256", "0.49501523", "0.49450657", "0.49449906", "0.49383983", "0.49362054", "0.4933154", "0.4927856", "0.49265337", "0.49223694", "0.49207947", "0.4917541", "0.4917249", "0.48876202", "0.48819447", "0.48818138", "0.4879193", "0.48717877", "0.48699144", "0.48608232", "0.48474059", "0.48470727", "0.4839613", "0.48354033", "0.48335817", "0.48268023", "0.48211527", "0.48135453", "0.48002908", "0.4799751", "0.47910216", "0.47894618", "0.47824562", "0.47738054", "0.47642615", "0.47633493", "0.47621986", "0.47586423", "0.47404817", "0.47379208", "0.47301966", "0.47279763", "0.47242635", "0.4721748", "0.47146666", "0.46923983" ]
0.6068307
0
Proceso de este handler
protected function handle() { $response = []; $galeria = new Galery(); $galeria->galeria_id = 0; $galeria->type = 'web'; $galeria->parent_galleries_id = isset($this->params['data']['parent_id']) ? $this->params['data']['parent_id'] : null; $galeria->nombre = $this->params['data']['nombre']; $galeria->nombre_en = isset($this->params['data']['nombre_en']) ? $this->params['data']['nombre_en'] : null; $galeria->nombre_fr = isset($this->params['data']['nombre_fr']) ? $this->params['data']['nombre_fr'] : null; $galeria->nombre_po = isset($this->params['data']['nombre_po']) ? $this->params['data']['nombre_po'] : null; $galeria->ubicacion_id = $this->params['data']['ubicacion_id']; $galeria->tipologia_id = isset($this->params['data']['tipologia_id']) ? $this->params['data']['tipologia_id'] : null; $galeria->save(); $response['res'] = '1'; $response['msg'] = 'Galeria creada exitosamente'; $response['data'] = $galeria; return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_handler()\n {\n }", "abstract public function handler() : void;", "public function getHandler() {}", "public function getHandler()\n {\n }", "public function getHandler();", "public function getHandler();", "function handle() ;", "public function handle() {}", "abstract protected function createHandler();", "function get_handler() {\r\n }", "public function handleRequest() {}", "function handleRequest() ;", "public function getActualHandler();", "abstract protected function handle();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "abstract protected function _postHandle();", "function go() {\r\n $this->basic_handler();\r\n\r\n }", "abstract public function handle();", "abstract public function handle();", "public function getHandler(){\n return($this->handle); \n }", "public function handle() {\n \n }", "protected function handler ($SVC) {}", "function go() {\r\n $this->basic_handler();\r\n }", "abstract public function handle_request();", "public function handle()\n {\n \n\n }", "function _on_handle($handler, $args)\n {\n $this->_request_data['schemadb'] = midcom_helper_datamanager2_schema::load_database($this->_config->get('schemadb'));\n $this->_request_data['schemadb_location'] = midcom_helper_datamanager2_schema::load_database($this->_config->get('schemadb_location'));\n $this->_request_data['prefix'] = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX);\n $this->_request_data['datamanager'] = new midcom_helper_datamanager2_datamanager($this->_request_data['schemadb']);\n $this->_request_data['datamanager_location'] = new midcom_helper_datamanager2_datamanager($this->_request_data['schemadb_location']);\n \n $_MIDCOM->add_link_head(array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => MIDCOM_STATIC_URL . '/fi.kilonkipinat.events/fi_kilonkipinat_events.css', 'media' => 'all'));\n \n $_MIDCOM->add_link_head\n (\n array\n (\n 'rel' => 'alternate',\n 'type' => 'application/rss+xml',\n 'title' => $this->_l10n->get('rss 2.0 feed'),\n 'href' => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX) . 'rss.xml',\n )\n );\n\n $this->_populate_node_toolbar();\n\n return true;\n }", "public function handle()\n {\n\n }", "public function handle()\n {\n\n }", "public function handle()\n {\n }", "public function handle()\n {\n }", "public function handle()\n {\n }", "public function handle()\n {\n }", "public function handle()\n {\n //\n }", "public function handle()\n {\n //\n }", "public function handle()\n {\n //\n }", "protected function _handle()\n {\n return $this\n ->_addData('post', $_POST)\n ->_addData('get', $_GET)\n ->_addData('server', $_SERVER)\n ->_handleRequestRoute();\n }", "public function handleData();", "protected abstract function handleRequest();", "public function handle()\n {\n }", "public function get_matched_handler()\n {\n }", "function &_getHandler()\n\t{\n\t\treturn 0;\n\t}", "public static function usesCustomHandler();", "protected function handle() {\n\t\t\t$arrHandlers = array(\n\t\t\t\t'latest'\t\t=> 'GetLatest',\n\t\t\t\t'filter'\t\t=> 'GetFiltered',\n\t\t\t\t'my'\t\t\t=> 'GetMine',\n\t\t\t\t\n\t\t\t\t'add'\t\t\t=> 'DoAdd',\n\t\t\t\t'delete'\t\t=> 'DoDelete'\n\t\t\t);\n\t\t\t\n\t\t\t$strSegment = str_replace('.' . $this->strFormat, '', $this->objUrl->getSegment(2));\n\t\t\tif (!empty($arrHandlers[$strSegment])) {\n\t\t\t\t$strMethod = $this->strMethodPrefix . $arrHandlers[$strSegment];\n\t\t\t\t$this->$strMethod();\n\t\t\t} else {\n\t\t\t\tparent::handle();\n\t\t\t}\n\t\t}", "public function handler()\r\n\t{\r\n\t\treturn $this->handler;\r\n\t}", "public function handle($obj)\n {\n\n }", "public function process()\n\t{\n\t\t$action = $this->getAction();\n\t\tswitch (strtolower($action))\n\t\t{\n\t\t\tcase 'get':\n\t\t\tcase 'put':\n\t\t\tcase 'post':\n\t\t\tcase 'delete':\n\t\t}\t\n\t}", "function handle()\n {\n $this->verifyPost();\n\n $postTarget = $this->determinePostTarget();\n\n $this->filterPostData();\n\n switch ($postTarget) {\n case 'upload_media':\n $this->handleMediaFileUpload();\n break;\n case 'feed':\n $this->handleFeed();\n break;\n case 'feed_media':\n $this->handleFeedMedia();\n break;\n case 'feed_users':\n $this->handleFeedUsers();\n break;\n case 'delete_media':\n $this->handleDeleteMedia();\n break;\n }\n }", "public function handle()\n {\n// InsHandlers::main();\n// InsHandlers::parseJson();\n InsHandlers::parsePicUrl();\n }", "public function handle() {\n $this->initDb(((!isset(self::$_config['db']['type'])) ? 'mysql' : self::$_config['db']['type']));\n $request = new corelib_request(self::$_config['routing'], self::$_config['reg_routing']);\n $path = parse_url($_SERVER['REQUEST_URI']);\n\n if (self::$_config['home'] == \"/\" || self::$_config['home'] == \"\") {\n $uri = ltrim($path['path'], '/');\n } else {\n $uri = str_replace(self::$_config['home'], '', $path['path']);\n }\n\n if (\"\" == $uri || \"/\" == $uri) {\n $uri = self::$_config['routing']['default']['controller'] . '/' . self::$_config['routing']['default']['action'];\n }\n self::$isAjax = $request->isAjax();\n self::$request = $request->route($uri);\n self::$request['uri'] = $uri;\n\n if (self::$request['action'] == \"\")\n self::$request['action'] = self::$_config['routing']['default']['action'];\n\n $this->_run( self::$request['params'] );\n }", "abstract protected function handle(): void;", "public static function handler()\n {\n return static::$handler;\n }", "public function handlerNeedsRequest()\n {\n }", "protected function initHandlers()\n\t{\n\t}", "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}", "protected function handle(Request $request) {}", "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}", "protected function get_handler() {\n\n\t\treturn $this->handler;\n\t}", "public function handle($data);", "public function getPageHandler();", "public function getHandler()\n {\n return $this->handler;\n }", "public function getHandler()\n {\n return $this->handler;\n }", "public function handle()\n {\n $this->getStream('client')->handle(new TimeoutTimer($this->delay/4));\n $this->getStream('workerHandler')->handle(new TimeoutTimer($this->delay/4));\n $this->handleWorkerHandlerQueue();\n $this->getStream('workerHandlerStatus')->handle(new TimeoutTimer($this->delay/4));\n $this->handleExpired();\n $this->handleExpiredWorkerHandlers();\n }", "public static function handleInput()\n {\n switch ($_REQUEST[\"cmd\"]) {\n //cancella il profilo del cliente \n case 'cancella':\n self::cancella();\n break;\n //modifica il profilo del cliente \n case 'back_home_page':\n case 'showrecensioni':\n self::showHomePage();\n break;\n //modifica il profilo personale\n case 'modifica_profilo_personale':\n self::modificaProfiloPersonale();\n break;\n //modifca il profilo dell'azienda\n case 'modifica_profilo_azienda':\n self::modificaProfiloAzienda();\n break;\n //modifica i servizi offerti\n case 'modifica_servizi':\n self::modificaServizi();\n break;\n //aggiorna profilo personale\n case 'update_profilo_personale':\n self::updateProfiloPersonale();\n break;\n //aggiorna profilo azienda\n case 'update_profilo_azienda':\n self::updateProfiloAzienda();\n break;\n //aggiorna servizi\n case 'update_servizi':\n self::updateServizi();\n break;\n }\n }", "abstract public function handler(string $message);", "public function getHandler()\n\t{\n\t\treturn $this->handler;\n\t}", "public function handleRequest() {\n\t\t\n\t\tif (is_null($this->itemObj)) {\n\t\t\t$this->itemObj = MovieServices::getVcdByID($this->getParam('vcd_id'));\n\t\t}\n\t\t\n\t\t$action = $this->getParam('action');\n\t\t\n\t\tswitch ($action) {\n\t\t\tcase 'upload':\n\t\t\t\t$this->uploadImages();\n\t\t\t\t// reload and close upon success\n\t\t\t\tredirect('?page=addscreens&vcd_id='.$this->itemObj->getID().'&close=true');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'fetch':\n\t\t\t\t$this->fetchImages();\n\t\t\t\t// reload and close upon success\n\t\t\t\tredirect('?page=addscreens&vcd_id='.$this->itemObj->getID().'&close=true');\n\t\t\t\tbreak;\n\t\t\n\t\t\tdefault:\n\t\t\t\tredirect();\n\t\t\t\tbreak;\n\t\t}\n\t}", "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 function handle($postData){\r\n\t\t\r\n\t}", "function handleRequest() {\n // I. On récupère l'action demandée par l'utilisateur, avec retrocompatibilité\n // Controller et Entité\n $entityName = (isset($_GET['controller']) ? $_GET['controller'] : \"article\");\n // on retravaille le nom pour obtenir un nom de la forme \"Article\"\n $entityName = ucfirst(strtolower($entityName));\n\n // Action\n $actionName = (isset($_GET['action']) ? $_GET['action'] : \"index\");\n $actionName = strtolower($actionName);\n\n // II à IV sont maintenant dans loadDep\n $controller = $this->loadDependencies($entityName);\n\n // V. On regarde si l'action de controller existe, puis on la charge\n // on retravaille la var obtenue pour obtenir un nom de la forme \"indexAction\"\n $action = $actionName . \"Action\";\n\n // si la méthode demandée n'existe pas, remettre \"index\"\n if (!method_exists($controller, $action)) {\n $actionName = \"index\";\n $action = \"indexAction\";\n }\n\n // on stock le titre sous la forme \"Article - Index\"\n $this->title = $entityName . \" - \" . $actionName;\n\n // on appelle dynamiquement la méthode de controller\n $this->content = $controller->$action();\n }", "function handle() {\n\n $metodo = Leer::request(\"accion\");\n\n if ($metodo == \"insert\") {\n $this->insertProducto();\n } else if ($metodo == \"resta\") {\n \n $this->restaProducto();\n } else if ($metodo == \"ver\") {\n $this->viewCesta();\n } else if ($metodo = \"del\") {\n $this->delProducto();\n }\n exit();\n }", "public function getDefaultHandler();", "public function run() {\n\t\t// If this particular request is not a hook, something is wrong.\n\t\tif (!isset($this->server[self::MERGADO_HOOK_AUTH_HEADER])) {\n\t\t\tthrow new \\RuntimeException(sprintf(\n\t\t\t\t\"%s is to be used only for handling hooks sent from Mergado.\n\t\t\t\tMergado-Apps-Hook-Auth is missing.\",\n\t\t\t\t__CLASS__\n\t\t\t));\n\t\t}\n\n\t\tif (!$decoded = json_decode($this->rawRequest, true)) {\n\t\t\tthrow new \\RuntimeException(sprintf(\n\t\t\t\t\"%s cannot handle request, because the data to be handled is empty.\",\n\t\t\t\t__CLASS__\n\t\t\t));\n\t\t} elseif (!isset($decoded['action'])) {\n\t\t\tthrow new \\RuntimeException(sprintf(\n\t\t\t\t\"%s cannot handle the hook, because the hook action is undefined.\",\n\t\t\t\t__CLASS__\n\t\t\t));\n\t\t};\n\n\t\t$this->handle($decoded['action'], $decoded);\n\n\t}", "public function handle_upload()\n {\n }", "final public function handle() : void\n {\n $method = strtolower($this->context->web()->method());\n $res = (object) [\n 'rest' => $this->context->rest(),\n 'method' => $method,\n 'data' => $this->context->formdata($method == 'patch' ? 'put' : $method)->fetchRaw(),\n ];\n $this->context->web()->sendJSON($res);\n }", "public function handle()\n {\n $arguments = $this->arguments();\n\t\t$function = $arguments['response']['query'];\n\t\tif($function == 'count_kd'){\n\t\t\tself::{$function}($arguments['response']['data'], $arguments['response']['count'], $arguments['response']['page']);\n\t\t} else {\n\t\t\tself::{$function}($arguments['response']['data']);\n\t\t}\n }", "public function postDispatch(){\n\t\t\n }", "public function handle()\n {\n $this->service->send();\n }", "public function handle($request);", "abstract public function handleRequest($request);", "public function handle()\n {\n $result = $this->getValue(function () {\n var_dump('I just get new iPhone!!');\n return 'abc';\n });\n\n var_dump($result());\n var_dump($result());\n }", "public function postDispatch();", "public function handlePost()\n {\n return parent::handlePost();\n }", "public function handle(): void\n {\n $globals = $_SERVER;\n //$SlimPsrRequest = ServerRequestFactory::createFromGlobals();\n //it doesnt matters if the Request is of different class - no need to create Guzaba\\Http\\Request\n $PsrRequest = ServerRequestFactory::createFromGlobals();\n //the only thing that needs to be fixed is the update the parsedBody if it is NOT POST & form-fata or url-encoded\n\n\n //$GuzabaPsrRequest =\n\n //TODO - this may be reworked to reroute to a new route (provided in the constructor) instead of providing the actual response in the constructor\n $DefaultResponse = $this->DefaultResponse;\n //TODO - fix the below\n// if ($PsrRequest->getContentType() === ContentType::TYPE_JSON) {\n// $DefaultResponse->getBody()->rewind();\n// $structure = ['message' => $DefaultResponse->getBody()->getContents()];\n// $json_string = json_encode($structure, JSON_UNESCAPED_SLASHES);\n// $StreamBody = new Stream(null, $json_string);\n// $DefaultResponse = $DefaultResponse->\n// withBody($StreamBody)->\n// withHeader('Content-Type', ContentType::TYPES_MAP[ContentType::TYPE_JSON]['mime'])->\n// withHeader('Content-Length', (string) strlen($json_string));\n// }\n\n $FallbackHandler = new RequestHandler($DefaultResponse);//this will produce 404\n $QueueRequestHandler = new QueueRequestHandler($FallbackHandler);//the default response prototype is a 404 message\n foreach ($this->middlewares as $Middleware) {\n $QueueRequestHandler->add_middleware($Middleware);\n }\n $PsrResponse = $QueueRequestHandler->handle($PsrRequest);\n $this->emit($PsrResponse);\n\n }", "private function executeHandle() {\n // call hook function\n is_callable(config('hooks.onExecute')) && call_user_func(config('hooks.onExecute'), $this);\n // execute controller\n $this->router->executeController();\n }", "private function execRunHandler()\n {\n // guarantee that only one process can be run at one time\n // use socket as lock\n Log::info('Try to start handling process...');\n\n // bounce\n $handlers = BounceHandler::get();\n Log::info(sizeof($handlers).' bounce handlers found');\n $count = 1;\n foreach ($handlers as $handler) {\n Log::info('Starting handler '.$handler->name.\" ($count/\".sizeof($handlers).')');\n $handler->start();\n Log::info('Finish processing handler '.$handler->name);\n $count += 1;\n }\n\n // abuse\n $handlers = FeedbackLoopHandler::get();\n Log::info(sizeof($handlers).' feedback loop handlers found');\n $count = 1;\n foreach ($handlers as $handler) {\n Log::info('Starting handler '.$handler->name.\" ($count/\".sizeof($handlers).')');\n $handler->start();\n Log::info('Finish processing handler '.$handler->name);\n $count += 1;\n }\n }", "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 }", "private function handleCall() { //$this->request\n $err = FALSE;\n // route call to method\n $this->logToFile($this->request['action']);\n switch($this->request['action']) {\n // Edit form submitted\n case \"edit\":\n // TODO: improve error handling\n try {\n $this->logToFile(\"case: edit\");\n $this->edit($this->request['filename']);\n //$this->save();\n } catch (Exception $e) {\n $err = \"Something went wrong: \";\n $err .= $e.getMessage();\n }\n break;\n }\n // TODO: set error var in response in case of exception / error\n // send JSON response\n if($err !== FALSE) {\n $this->request['error_msg'] = $err;\n }\n $this->giveJSONResponse($this->request);\n }", "public function handle()\n {\n //$obj = new \\App\\Http\\Controllers\\Amqp\\SimpleController();\n $obj = new \\App\\Http\\Controllers\\Amqp\\WorkerController();\n //$obj = new \\App\\Http\\Controllers\\Amqp\\SubscribeController();\n //$obj = new \\App\\Http\\Controllers\\Amqp\\RouteController();\n //$obj = new \\App\\Http\\Controllers\\Amqp\\RopicController();\n $obj->receive();\n }", "abstract protected function registerHandlers();", "protected function _request() {}", "function __construct(){\n // This object is passed to all of your pages.\n // Access it with $handler\n }", "abstract protected function _preHandle();", "public function handle()\n {\n\n Replenishment::whereStatus('pending')->get()->each(function (Replenishment $item) {\n $order = Order::find($item->payment_id);\n $item->status = $order->status;\n $item->save();\n if( $order->status == 'paid'){\n $item->pay();\n }\n\n dump($order, $order->status, $item->to);\n });\n\n\n }", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "protected abstract function onExecute();", "public function processRequest();", "public function handle(string $message)\n {\n\n /**\n * decode pesan\n *\n * @var array $data\n */\n $data = BFMessages::messageDecode($message);\n\n /**\n * cek status pesan\n *\n * @var string $status\n */\n $status = BFMessages::messageStatus($data);\n if($status === 'STANDBY'){\n\n // $idPengirim = $data['entry']['0']['stanby']['0']['sender']['id'];\n\n } else {\n\n /**\n * cek type message\n *\n * @var string $type\n */\n $type =BFMessages::messageType($data);\n if($type === 'POSTBACK') {\n\n /**\n * @var \\App\\Modules\\Handler\\HPostback $handle\n */\n $handle = new HPostback();\n $handle->handle($data);\n\n }\n\n if($type === 'MESSAGE') {\n\n $contents = BFMessages::messageContentsType($data);\n if($contents === 'QUICK_REPLY') {\n\n /**\n * @var \\App\\Modules\\Handler\\HQuickReply $handle\n */\n $handle = new HQuickReply();\n $handle->hanlde($data);\n\n }\n\n if($contents === 'MESSAGE') {\n\n /**\n * @var \\App\\Modules\\Handler\\HMessage $handle\n */\n $handle = new HMessage();\n $handle->handle($data);\n\n }\n\n if($contents === 'OTHER'){\n\n /**\n * @var \\App\\Modules\\Handler\\HOther $handle\n */\n $handle = new HOther();\n $handle->handle($data);\n\n }\n\n }\n\n if($type === 'TAKETHREAD') {\n\n $this->handover->handle($type, $data);\n\n }\n\n if($type === 'REQUESTTHREAD') {\n\n $this->handover->handle($type, $data);\n\n }\n\n if($type === 'PASSTHREAD') {\n\n $this->handover->handle($type, $data);\n\n }\n\n if($type === 'OTHER'){\n\n /**\n * @var \\App\\Modules\\Handler\\HOther $handle\n */\n $handle = new HOther();\n $handle->handle($data);\n\n }\n }\n\n }", "function handle_callback() {\r\n }", "protected abstract function handleData();" ]
[ "0.74811715", "0.7381357", "0.72891176", "0.7144542", "0.70510674", "0.70510674", "0.702928", "0.7001606", "0.6876312", "0.6855251", "0.67945623", "0.67860335", "0.6718339", "0.6704852", "0.6689576", "0.6689576", "0.6689576", "0.66220015", "0.66183835", "0.6584104", "0.6584104", "0.6573599", "0.6558969", "0.6546748", "0.65369976", "0.65300363", "0.64544064", "0.6442282", "0.6377834", "0.6377834", "0.63727456", "0.63727456", "0.63727456", "0.63727456", "0.63506824", "0.63506824", "0.63506824", "0.6326441", "0.6288184", "0.62576044", "0.62215936", "0.6209095", "0.6202057", "0.619922", "0.61928713", "0.61793107", "0.6125948", "0.6102135", "0.6081671", "0.6061778", "0.605494", "0.6040223", "0.60089105", "0.5999085", "0.5988154", "0.598032", "0.5976517", "0.5973929", "0.59620774", "0.59476715", "0.5929249", "0.59285444", "0.59285444", "0.591254", "0.5909627", "0.590341", "0.5899561", "0.58819664", "0.58682925", "0.5858557", "0.58370394", "0.58194023", "0.5813188", "0.58111215", "0.578874", "0.5777972", "0.57750666", "0.57539", "0.57483613", "0.5735646", "0.5727589", "0.5722198", "0.5701076", "0.56996036", "0.5697388", "0.5696199", "0.5691171", "0.56866175", "0.5684526", "0.5681619", "0.56685585", "0.566631", "0.5662297", "0.56580466", "0.5649075", "0.56436765", "0.56421614", "0.56419003", "0.56418777", "0.5631077", "0.56301975" ]
0.0
-1
/ Construtor definido para chamada do construtor da classe extendida
public function __construct($msg, $detail='', $codigo=0) { // construtor de um unico parametro if(is_int($msg)) { $mensagem = ""; switch($msg) { case self::ERRO_NAO_SUPORTADO: $mensagem = 'Atenção. O Formato solicitado não é suportado para este relatório'; break; default: $mensagem = "Ocorreram erros no processamento da Impressão. Entre em contato com o administrador do Sistema."; break; } $mensagem .= ' ' . $detail; // Chama o construtor da super classe parent::__construct($mensagem, $msg); } else { // Chama o construtor de Exception parent::__construct((string)$msg, (int)$codigo); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t// ben duoi nay se la cac logic cua __construct lop con ma chung ta can dinh nghia - xu ly\n\t}", "protected abstract function __construct();", "public function __construct(){\n\t\t//asi poder tener dispoble la vista que le pertenece a esta clase\n\t\tparent::__construct();\n\t}", "function __construct() ;", "function __construct(){\n\t\t// nowt much...\n\t}", "function __construct() {\n\n\t\t}", "function __construct (){\n\t\t}", "protected function __construct()\n\t{\n\t\t// chamando construtor da classe pai\n\t\tparent::__construct();\n\t}", "protected function __construct()\n\t{\n\t\t// chamando construtor da classe pai\n\t\tparent::__construct();\n\t}", "protected function __construct()\n\t{\n\t\t// chamando construtor da classe pai\n\t\tparent::__construct();\n\t}", "public function __contruct(){\r\n parent::__contruct();\r\n }", "function __construct() {\n\t\t\t\n\t\t}", "abstract protected 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()\t{}", "function __construct() \n\t\t{\n\t\t\tparent::__construct();\n\t\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "private function __construct() {\r\n\t\r\n\t}", "final private function __construct(){\r\r\n\t}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct(){\n\n\t\t}", "public function __construct() { \n\t\t\n\n\t\t}", "private function __construct()\n\t{\n\n\t}", "function _construct() {\n \t\n\t\t\n\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "private function __construct()\n\t{\n\t\t\n\t}", "public function __construct() {\n\n\t\tparent::__construct();\n\t\t\n\t}", "public function __construct()\r\n\t\t{\r\n\t\t}", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "function __construct(){}", "function __construct(){}", "function __construct(){}", "protected function __construct() {\n\t\t\n\t}", "protected function __construct() {\n\t\t\n\t}", "function _construct() {\n\t\tparent::_construct();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t\t\t\n\t\t}", "public function __construct() {\n\n\t\t}", "private function __construct()\r\r\n\t{\r\r\n\t}", "private function __construct()\r\n\t{\r\n\t}", "function __construct()\r\n\t{\t\t//Yeah bro! Freaking PhP yo..\r\n\t}", "abstract public function __construct();", "abstract public function __construct();", "abstract public function __construct();", "private function __construct() { \n\t\t\n\n\t}", "function __construct()\n\t{\n\n\t}", "public function _construct()\n\t{\n\n\t}", "function __construct() {\r\n parent ::__construct();\r\n }", "function __construct(){parent::__construct();}", "private function __construct(){\n\t\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t\t\n\t}", "private function __construct( )\n {\n\t}", "function __construct(){\n\t\t\n\t\tparent::__construct();\n\t\t\n\t}", "private function __construct() {\n\t\t}", "function __construct() {\n\t\t\tparent::__construct();\n\t\t\t\n\t\t}", "function __construct()\r\n\t{\r\n\t}", "final private function __construct()\n\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}", "function __construct(){\n\t\t}", "public function __construct()\n {\n $this->extendableConstruct();\n }", "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\t{\n\t}", "function __construct()\n\t{\n\t\t\n\t\t\n\t}", "function __construct(){\r\n\t\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}", "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}", "function __construct()\n\t{\n\t\tparent::__construct();\t\n\t}" ]
[ "0.84185165", "0.83222723", "0.82818294", "0.82635003", "0.82623017", "0.82392955", "0.823009", "0.82192236", "0.82192236", "0.82192236", "0.8201219", "0.8198327", "0.81889653", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.8183375", "0.81811804", "0.8179295", "0.81764", "0.8169417", "0.8167033", "0.8167033", "0.8167033", "0.8167033", "0.8167033", "0.8167033", "0.8160372", "0.81498724", "0.814932", "0.8146915", "0.81458604", "0.814378", "0.8131593", "0.81290823", "0.81254506", "0.8122003", "0.8122003", "0.8122003", "0.8120704", "0.8120704", "0.81204873", "0.8117788", "0.81175643", "0.81156945", "0.81156856", "0.81102127", "0.8108812", "0.8108812", "0.8108812", "0.81086123", "0.8107854", "0.81065893", "0.8103895", "0.81038034", "0.8102224", "0.81015474", "0.81012696", "0.80982155", "0.809745", "0.8095427", "0.8087747", "0.80837303", "0.80822515", "0.80822515", "0.80822515", "0.80822515", "0.8081096", "0.8080787", "0.80799854", "0.80799854", "0.80799854", "0.80799854", "0.80799854", "0.80793697", "0.8079309", "0.80773425", "0.8076452", "0.8076452", "0.8076452", "0.8076452", "0.8076452", "0.8076452", "0.8076452", "0.8076452", "0.8076452", "0.8074916" ]
0.0
-1
Mapper::map(52.381128999999990000, 0.470085000000040000, ['markers' => ['icon' => ['symbol' => 'CIRCLE', 'scale' => 10], 'animation' => 'DROP', 'label' => 'Marker', 'title' => 'Marker']])>marker(53.381128999999990000, 1.470085000000040000);
public function index() { // Mapper::streetview(53.381128999999990000, -1.470085000000040000, 1, 1); return view('theme.maps.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMarkerFactory();", "public function getMarker()\n {\n\t\treturn $this->_marker;\n\t}", "function SvgMarker($id, $refX=\"\", $refY=\"\", $markerUnits=\"\", $markerWidth=\"\", $markerHeight=\"\", $orient=\"\")\r\n {\r\n $this->SvgElement();\r\n \r\n $this->mId = $id;\r\n $this->mRefX = $refX;\r\n $this->mRefY = $refY;\r\n $this->mMarkerUnits = $markerUnits;\r\n $this->mMarkerWidth = $markerWidth;\r\n $this->mMarkerHeight = $markerHeight;\r\n $this->mOrient = $orient;\r\n \r\n }", "public function getMarker($name);", "public function map($item);", "function getMarker() {\n\t\treturn $this->marker;\n\t}", "function xDisplayMarker($ar){\n $p = new XParam($ar, array('tplentry'=>'br', 'markertemplate'=>'xmodmap/displaymarker.xml'));;\n $layeroid = $p->get('layeroid');\n $oid = $p->get('oid');\n $template = $p->get('markertemplate');\n $tpl = $p->get('tplentry');\n $modmap = $this->xset->rdisplay($layeroid);\n if (!is_array($modmap)){\n XLogs::critical(get_class($this), get_class($this).\"::simpleLayerKML layer not found {$layeroid}\");\n die('Could not find layeroid '.$layeroid);\n }\n $mod = XModule::objectFactory($modmap['ormoid']->raw);\n if (!empty($modmap['orfilter']->raw)){\n $select = $mod->xset->select_query().' and '.$modmap['orfilter']->raw;\n } else {\n $select = $mod->xset->select_query();\n }\n if (!is_array($oid)){\n $select .= ' and '.$mod->table.'.KOID = \\''.$oid.'\\'';\n } else {\n foreach($oid as $foo=>&$aoid){\n\t$aoid = '\\''.$aoid.'\\'';\n }\n $select .= ' and '.$mod->table.'.KOID in (' . implode(\",\", $oid) . ')';\n }\n\n $br = $mod->browse(array('_options'=>array(),\n\t\t\t 'tplentry'=>TZR_RETURN_DATA,\n\t\t\t 'selectedfields'=>'all',\n\t\t\t 'first'=>0,\n\t\t\t 'select'=>$select,\n\t\t\t 'pagesize'=>9999));\n $places = array();\n $fname = $modmap['ofname']->raw;\n foreach($br['lines_oid'] as $i=>$lineoid){\n $coords = $br['lines_o'.$fname][$i]->raw;\n list($lat, $lng, $type, $acc, $upd) = explode(';', $coords);\n $aplace = $this->getPlace($i, $mod, $br, $modmap);\n if (!empty($lat) && !empty($lng)){\n\t$aplace['valid'] = true;\n } else {\n\t$aplace['valid'] = false;\n }\n $places[] = array('oid'=>$lineoid,\n\t\t\t'latlng'=>$lng.','.$lat,\n\t\t\t'name'=>$aplace['name'],\n\t\t\t'valid'=>$aplace['valid'],\n\t\t\t'description'=>$aplace['descr']);\n unset($aplace);\n }\n $ret = array('places'=>$places,\n\t\t 'browse'=>$br,\n\t\t 'modmap'=>$modmap);\n $xt = new XTemplate('file://'.TZR_SHARE_DIR.$template);\n if (file_exists(TZR_SHARE_DIR.$template)){\n $xt = new XTemplate('file://'.TZR_SHARE_DIR.$template);\n } else if (file_exists($GLOBALS['TEMPLATES_DIR'].$template)){\n $xt = new XTemplate('file://'.$GLOBALS['TEMPLATES_DIR'].$template);\n } else {\n echo('-');\n exit(0);\n }\n $labels=&$GLOBALS['XSHELL']->labels->get_labels(array('selectors'=>array('global'),'local'=>true));\n $xt->set_glob(array('labels'=>&$labels));\n $r3=array();\n // avoir vide ... die($tpl);\n $tpldata['br']=$ret;\n $content=$xt->parse($tpldata,$r3,NULL);\n header('Content-type: text/xml');\n header('Content-disposition: inline');\n echo($content);\n exit(0); \n }", "private function buildMarker() {\n $result = '';\n $i = 1;\n\n foreach($this->locations as $location) {\n $result .= '&markers=color:0x' . $this->randomHexColor() . '%7Clabel:' . $i . '%7C' . $location->latitude . ',' . $location->longitude;\n $i++;\n }\n\n return $result;\n }", "static function get_map_marker_icon( $args ) {\n $plugin = Hardcore_Map_Plugin::this();\n $icon = get_post_meta( $args[ 'post_ID' ], $plugin->marker_icon_meta_key, true );\n return $icon;\n }", "public function getMarkers() \n {\n return $this->_markers; \n }", "private function renderMapMarkerOxMap( $template, $mapTemplate )\n {\n $mapHashKey = '###MAP###';\n // Substitute marker HTML\n $markerArray = $this->renderMapMarkerSnippetsHtmlCategories( $mapTemplate );\n $markerArray = $markerArray + $this->renderMapMarkerSnippetsHtmlDynamic( $mapTemplate );\n $mapTemplate = $this->pObj->cObj->substituteMarkerArray( $mapTemplate, $markerArray );\n//var_dump( __METHOD__, __LINE__, $markerArray, $mapTemplate );\n // Substitute marker HTML\n // #i0120, 150101, dwildt: 5+\n $templateWoMarker = $this->renderMapMarkerWoMarker( $mapHashKey, $template );\n if ( $templateWoMarker )\n {\n// var_dump( __METHOD__, __LINE__ );\n// die( ':(' );\n return $templateWoMarker;\n }\n // Add data\n $mapTemplate = $this->renderMapMarkerVariablesSystem( $mapTemplate );\n $markerArray = $this->renderMapMarkerVariablesDynamic( $mapTemplate );\n $mapTemplate = $this->pObj->cObj->substituteMarkerArray( $mapTemplate, $markerArray );\n // Add data\n // Substitute marker JSS\n $markerArray = $markerArray + $this->renderMapMarkerSnippetsJssDynamic( $mapTemplate );\n $mapTemplate = $this->pObj->cObj->substituteMarkerArray( $mapTemplate, $markerArray );\n // Substitute marker JSS\n // map marker\n // Replace the map marker in the template of the parent object\n $template = str_replace( $mapHashKey, $mapTemplate, $template );\n\n//var_dump( __METHOD__ . ' (' . __LINE__ . '): ', $mapTemplate, $template );\n // RETURN the template\n return $template;\n }", "public function map($mapper);", "function extract_from_markers($filename, $marker)\n {\n }", "protected function getDefaultMarkers() {}", "function generateMarkerData($items)\n\t{\n\t\t$key = null;\n\n\t\tforeach ($items as $item)\n\t\t{\n\t\t\t// Filter by region\n\t\t\tif (JRequest::getVar('region') != '' && !in_array(JRequest::getVar('region'), explode(',', $item->categoryIDs)))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tforeach (json_decode($item->locations, true) as $type => $locales)\n\t\t\t{\n\t\t\t\t// Filter locations by type if belonging to the designated category\n\t\t\t\tif (($item->catid === $this->params->get('artistCategory')) && ($type != JRequest::getVar('location')))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tforeach ($locales as $name => $data)\n\t\t\t\t{\n\t\t\t\t\t$markers[$key]['alias'] = $item->alias;\n\t\t\t\t\t$markers[$key]['info'] = $item->introtext;\n\t\t\t\t\t$markers[$key]['lat'] = $data['lat'];\n\t\t\t\t\t$markers[$key]['lng'] = $data['lng'];\n\t\t\t\t\t$markers[$key]['loc'] = $name;\n\t\t\t\t\t$markers[$key]['title'] = $item->title;\n\t\t\t\t\t$markers[$key]['type'] = $type;\n\t\t\t\t\t$markers[$key]['category'] = $item->category;\n\n\t\t\t\t\tif (array_key_exists('itemImage', $item->universalFields))\n\t\t\t\t\t{\n\t\t\t\t\t\t$markers[$key]['image'] = $item->universalFields->itemImage;\n\t\t\t\t\t}\n\n\t\t\t\t\t$key++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $markers;\n\t}", "public function markers($value) {\n return $this->setProperty('markers', $value);\n }", "public function markers($value) {\n return $this->setProperty('markers', $value);\n }", "private function renderMapMarkerPoints()\n {\n static $arrLabels = array();\n\n $mapMarkers = array();\n $lons = array();\n $lats = array();\n\n // Get category labels\n if ( empty( $arrLabels ) )\n {\n $arrLabels = $this->renderMapMarkerPointsCatLabels();\n }\n // Get category labels\n // #i0118, dwildt, 1-/+\n //$arrCategoriesFlipped = array_flip( $this->arrCategories[ 'labels' ] );\n $arrCategoriesFlipped = array_flip( ( array ) $this->arrCategories[ 'labels' ] );\n\n // LOOP row\n//$this->pObj->dev_var_dump( $this->pObj->rows );\n foreach ( $this->pObj->rows as $row )\n {\n // Get mapMarkers, lats and lons\n $arr_result = $this->renderMapMarkerPointsPoint( $row, $arrLabels, $arrCategoriesFlipped );\n//$this->pObj->dev_var_dump( $arr_result );\n $mapMarkers = array_merge( $mapMarkers, $arr_result[ 'data' ][ 'mapMarkers' ] );\n $lats = array_merge( $lats, $arr_result[ 'data' ][ 'lats' ] );\n $lons = array_merge( $lons, $arr_result[ 'data' ][ 'lons' ] );\n unset( $arr_result );\n // Get mapMarkers, lats and lons\n }\n // LOOP row\n // DRS\n switch ( true )\n {\n case( $mapMarkers == null ):\n case(!is_array( $mapMarkers ) ):\n case( ( is_array( $mapMarkers ) ) && ( count( $mapMarkers ) < 1 ) ):\n if ( $this->pObj->b_drs_error )\n {\n $prompt = 'JSON array is null.';\n t3lib_div :: devLog( '[ERROR/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 3 );\n $prompt = 'You will get an empty map!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n $prompt = 'Please check the TypoScript Constant Editor > Category [BROWSER - MAP].';\n t3lib_div :: devLog( '[HELP/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 1 );\n }\n break;\n default:\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'JSON array seem\\'s to be proper.';\n t3lib_div :: devLog( '[OK/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, -1 );\n $prompt = 'If you have an unexpected effect in your map, please check the JSON array from below!';\n t3lib_div :: devLog( '[HELP/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 1 );\n }\n break;\n }\n // DRS\n // Return array\n $arr_return = array\n (\n 'data' => array\n (\n 'mapMarkers' => $mapMarkers,\n 'lats' => $lats,\n 'lons' => $lons\n )\n );\n // Return array\n // #65184, 150221, dwildt, +\n $this->marker = $mapMarkers;\n\n return $arr_return;\n }", "public function __construct(MarkerInterface $marker)\n {\n $this->marker = $marker;\n }", "public function map()\n\t{\n\t\t$map = 'http://maps.googleapis.com/maps/api/staticmap?zoom=12&format=png&maptype=roadmap&style=element:geometry|color:0xf5f5f5&style=element:labels.icon|visibility:off&style=element:labels.text.fill|color:0x616161&style=element:labels.text.stroke|color:0xf5f5f5&style=feature:administrative.land_parcel|element:labels.text.fill|color:0xbdbdbd&style=feature:poi|element:geometry|color:0xeeeeee&style=feature:poi|element:labels.text.fill|color:0x757575&style=feature:poi.business|visibility:off&style=feature:poi.park|element:geometry|color:0xe5e5e5&style=feature:poi.park|element:labels.text|visibility:off&style=feature:poi.park|element:labels.text.fill|color:0x9e9e9e&style=feature:road|element:geometry|color:0xffffff&style=feature:road.arterial|element:labels|visibility:off&style=feature:road.arterial|element:labels.text.fill|color:0x757575&style=feature:road.highway|element:geometry|color:0xdadada&style=feature:road.highway|element:labels|visibility:off&style=feature:road.highway|element:labels.text.fill|color:0x616161&style=feature:road.local|visibility:off&style=feature:road.local|element:labels.text.fill|color:0x9e9e9e&style=feature:transit.line|element:geometry|color:0xe5e5e5&style=feature:transit.station|element:geometry|color:0xeeeeee&style=feature:water|element:geometry|color:0xc9c9c9&style=feature:water|element:labels.text.fill|color:0x9e9e9e&size=640x250&scale=4&center='.urlencode(trim(preg_replace('/\\s\\s+/', ' ', $this->cfg->address)));\n\t\t$con = curl_init($map);\n\t\tcurl_setopt($con, CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt($con, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($con, CURLOPT_RETURNTRANSFER, 1);\n\t\treturn response(curl_exec($con))->header('Content-Type', 'image/png');\n\t}", "public function setMarkers($markers) \n {\n $this->_markers = $markers; \n }", "public function __construct()\n {\n \n $this->entityName = MapMarker::MAPMARKER_ENTITY_NAME;\n $this->modelClass = \"\\MapMarkers\\Model\\MapMarker\";\n $this->dataItem = MapMarker::MAPMARKER_DATA_ENTITY;\n }", "public function actionMap()\r\n\t{\r\n\t\t$this->render('map');\r\n\t}", "function qodef_re_marker_template() {\n\n $html = '<script type=\"text/template\" class=\"qodef-marker-template\">\n\t\t\t\t<div class=\"qodef-map-marker\">\n\t\t\t\t\t<div class=\"qodef-map-marker-inner\">\n\t\t\t\t\t<%= pin %>\n\t\t\t\t\t\t<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 31 48\" enable-background=\"new 0 0 31 48\" xml:space=\"preserve\">\n<path d=\"M15.5,1.1c-8.3,0-15,6.9-15,15.5c0,2.2,0.4,4.3,1.2,6.1c0.2,0.4,0.4,0.9,0.6,1.3l0.3,0.6l5.9,10.5l6.9,12.4\n\tl6.9-12.4l5.8-10.5l0.4-0.8c0.2-0.4,0.4-0.8,0.6-1.2c0.8-1.9,1.2-4,1.2-6.1C30.5,8,23.8,1.1,15.5,1.1z M15.5,26.7\n\tc-5.4,0-9.8-4.6-9.8-10.2s4.4-10.2,9.8-10.2s9.8,4.6,9.8,10.2S20.9,26.7,15.5,26.7z\"/>\n</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</script>';\n\n print bridge_qode_get_module_part($html);\n\n }", "public function Bali_map()\n\t{\n\t\t$this->template = view::factory('templates/Gmap')\n\t\t\t->set('lang', url::lang())\n\t\t\t->set('website_name', Kohana::lang('website.name'))\n\t\t\t->set('website_slogan', Kohana::lang('website.slogan'))\n\t\t\t->set('webpage_title', Kohana::lang('nav.'.str_replace('_', ' ', url::current())))\n\t\t\t->set('map_options', Kohana::config('Gmap.maps.Bali'))\n\t\t\t->set('map_markers', Kohana::config('Gmap.markers.Bali'))\n\t\t\t->set('map_icon_path', url::base().skin::config('images.Gmap.path'));\n\t}", "public function substituteMarkerDataProvider() {}", "function _position_to_marker ($lat, $lon) {\r\n\t\t$urladd = rawurlencode($address);\r\n\t\t$url = \"http://maps.google.com/maps/api/geocode/json?latlng={$lat},{$lon}&sensor=false\";\r\n\t\t$result = wp_remote_get($url);\r\n\t\t$json = json_decode($result['body']);\r\n\r\n\t\tif (!$json) return false;\r\n\t\t$result = $json->results[0];\r\n\r\n\t\treturn array(\r\n\t\t\t'title' => $result->formatted_address,\r\n\t\t\t'body' => '',\r\n\t\t\t'icon' => 'marker.png',\r\n\t\t\t'position' => array (\r\n\t\t\t\t$result->geometry->location->lat,\r\n\t\t\t\t$result->geometry->location->lng\r\n\t\t\t),\r\n\t\t);\r\n\t}", "public function getLocationMarker()\n {\n $marker = Marker::create([\n 'Title' => $this->LocationMarkerTitle,\n 'Label' => $this->LocationMarkerLabel,\n 'Content' => $this->LocationMarkerContent,\n 'Latitude' => $this->Latitude,\n 'Longitude' => $this->Longitude,\n 'HideContent' => $this->HideMarkerContent\n ]);\n \n return $marker;\n }", "protected function markers(): ?array\n {\n return [\n [\n 'label' => 'Medium',\n 'value' => 40,\n ],\n ];\n }", "public function markers()\n\t{\n\t\treturn $this->repository->all();\n\t}", "public function getMarkerOptions()\n {\n $_options = array();\n $_helper = Mage::helper('storelocator');\n\n $_options['lat'] = $this->getLatitude();\n $_options['lng'] = $this->getLongitude();\n $_options['html'] = Mage::helper('storelocator/marker')->renderInfoWindow($this);\n\n if ($this->getIcon()) {\n $_options['icon'] = \"'\" . Mage::helper('storelocator/icon')->resize($this, 30, 30) . \"'\";\n }\n\n return $_helper->arrayToJsObject($_options);\n }", "function amap_ma_get_marker_icon($pluginname = null) {\n $markericon = trim(elgg_get_plugin_setting('markericon', $pluginname));\n if (!isset($markericon) || !$markericon) {\n $markericon = 'smiley.png';\n } else {\n $markericon = $markericon . '.png';\n }\n\n return $markericon;\n}", "public function getMapping() {}", "function renderMap($items = null, array $options = array()) {\n\t\n\tstatic $mapQty = 0;\n\t$defaults = array(\n\t\t'height' => '320px', \n\t\t'useHoverBox' => true,\n\t);\n\t\n\t$options = array_merge($defaults, $options);\n\t\n\tif(is_null($items)) {\n\t\tif($mapQty) return ''; // if no items given and map has already been rendered, return blank\n\t\t$items = mapSkyscrapers(); // otherwise map skyscrapers already listed on the page\n\t}\n\t\n\t$map = page('map');\n\t$out = '';\n\t\n\tif(($map && $map->lat) || count($items)) {\n\t\t$mapQty++;\n\t\t$map = modules('MarkupGoogleMap');\n\t\tif(count($items)) {\n\t\t\t$out .= $map->render($items, 'map', $options);\n\t\t} else {\n\t\t\t$out .= $map->render(page(), 'map', $options);\n\t\t}\n\t}\n\t\n\treturn $out;\n}", "public function addMarkerByCoords($lat,$lng,$html='',$category='',$icon='') \n {\n\t\t// Save the lat/lon to enable the automatic center/zoom\n\t\t$this->maxLng = (float) max((float)$lng, $this->maxLng);\n $this->minLng = (float) min((float)$lng, $this->minLng);\n $this->maxLat = (float) max((float)$lat, $this->maxLat);\n $this->minLat = (float) min((float)$lat, $this->minLat);\n $this->centerLng = (float) ($this->minLng + $this->maxLng) / 2;\n $this->centerLat = (float) ($this->minLat + $this->maxLat) / 2;\n\t\t\n $this->contentMarker .= \"\\t\\t\\t\".'createMarker('.$lat.','.$lng.',\"'.$html.'\",\"'.$category.'\",\"'.$icon.'\");'.\"\\n\";\n }", "protected abstract function map();", "public function getDataMapper() {}", "abstract public function map($data);", "function section__map(){\n return array(\n 'content'=>\"<div style='width:300px; height:300px' style='\n margin-left:auto; margin-right:auto;' id='map'></div>\",\n 'class'=>'main',\n 'label'=>'Map',\n 'order'=>'1'\n );\n }", "function map(string $docuri) {\n $map = [\n 'title'=> 'carte '.$this->title,\n 'view'=> ['latlon'=> [47, 3], 'zoom'=> 6],\n ];\n $map['bases'] = [\n 'cartes'=> [\n 'title'=> \"Cartes IGN\",\n 'type'=> 'TileLayer',\n 'url'=> 'https://igngp.geoapi.fr/tile.php/cartes/{z}/{x}/{y}.jpg',\n 'options'=> [ 'minZoom'=> 0, 'maxZoom'=> 18, 'attribution'=> 'ign' ],\n ],\n 'orthos'=> [\n 'title'=> \"Ortho-images\",\n 'type'=> 'TileLayer',\n 'url'=> 'https://igngp.geoapi.fr/tile.php/orthos/{z}/{x}/{y}.jpg',\n 'options'=> [ 'minZoom'=> 0, 'maxZoom'=> 18, 'attribution'=> 'ign' ],\n ],\n 'whiteimg'=> [\n 'title'=> \"Fond blanc\",\n 'type'=> 'TileLayer',\n 'url'=> 'https://visu.gexplor.fr/utilityserver.php/whiteimg/{z}/{x}/{y}.jpg',\n 'options'=> [ 'minZoom'=> 0, 'maxZoom'=> 21 ],\n ],\n ];\n $map['defaultLayers'] = ['whiteimg'];\n \n $request_scheme = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME']\n : ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS']=='on')) ? 'https' : 'http');\n foreach ($this->layers as $lyrid => $layer) {\n $overlay = [\n 'title'=> $layer['title'],\n 'type'=> 'UGeoJSONLayer',\n 'endpoint'=> \"$request_scheme://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]/$docuri/$lyrid\",\n ];\n foreach (['pointToLayer','style','minZoom','maxZoom'] as $key)\n if (isset($layer[$key]))\n $overlay[$key] = $layer[$key];\n elseif ($this->$key !== null)\n $overlay[$key] = $this->$key;\n\n $map['overlays'][$lyrid] = $overlay;\n if (isset($layer['displayedByDefault']))\n $map['defaultLayers'][] = $lyrid;\n }\n \n return new Map($map, \"$docuri/map\");\n }", "function __construct() {\n $this->map = array();\n }", "public function setMarker($latitude, $longitude)\n {\n $marker = new Marker();\n // Configure your marker options\n $marker->setPrefixJavascriptVariable('marker_');\n $marker->setPosition($latitude, $longitude, true);\n\n $marker->setOption('clickable', false);\n $marker->setOption('flat', true);\n $marker->setOptions(array(\n 'clickable' => true,\n 'flat' => true,\n ));\n $marker->setAnimation(Animation::DROP);\n $marker->setIcon('http://maps.gstatic.com/mapfiles/markers/marker.png');\n\n return $marker;\n }", "protected function renderMarker(Marker $marker, Map $map)\n {\n return sprintf(\n '%s.markers.%s = %s',\n $this->getJsContainerName($map),\n $marker->getJavascriptVariable(),\n $this->markerHelper->render($marker, $map)\n );\n }", "private function renderMapRouteMarkerByPath()\n {\n $marker = array();\n\n // short variables\n $confMapper = $this->confMap[ 'configuration.' ][ 'route.' ][ 'markerMapper.' ];\n $tableMarker = $confMapper[ 'tables.' ][ 'local.' ][ 'marker' ];\n // short variables\n\n foreach ( $this->pObj->rows as $rowIn )\n {\n $rowOut = $this->renderMapRouteMarkerByPathRow( $rowIn );\n $key = $rowOut[ $tableMarker . '.uid' ];\n $marker[ $key ] = $rowOut;\n }\n return $marker;\n }", "public function getMapHelper()\n {\n return new MapHelper();\n }", "public function __construct($map= []) {\n $this->map= $map;\n }", "private function set_markerArray()\n {\n $markerArray = $this->pObj->objMarker->extend_marker();\n $this->markerArray = $markerArray;\n\n// // Add mode and view\n// $this->markerArray['###MODE###'] = $this->pObj->piVar_mode;\n// $this->markerArray['###VIEW###'] = $this->pObj->view;\n//\n// // Add cObj->data and piVars\n// $this->markerArray = $this->pObj->objMarker->extend_marker_wi_cObjData($this->markerArray);\n// $this->markerArray = $this->pObj->objMarker->extend_marker_wi_pivars($this->markerArray);\n }", "public function column_group_marker($item) {\n\t \t\tif ( strstr( $item->group_marker, 'wp-google-map-pro/icons/' ) !== false ) {\n\t \t\t\t$item->group_marker = str_replace( 'icons', 'assets/images/icons', $item->group_marker );\n\t \t\t}\n\t\t\treturn sprintf( '<img src=\"'.$item->group_marker.'\" name=\"group_image[]\" value=\"%s\" />', $item->group_map_id );\n\t\t}", "public function getLocationMarkerLabel()\n {\n return $this->MarkerLabel ?: $this->MarkerLabel;\n }", "protected function getMarkersStatic()\n\t{\n\t\t$markers_code = array();\n\t\tif (null !== $this->resources->itemAt('markers'))\n\t\t{\n\t\t\tforeach ($this->resources->itemAt('markers') as $marker)\n\t\t\t{\n\t\t\t\t$markers_code[] = $marker->getMarkerStatic();\n\t\t\t}\n\t\t}\n\t\treturn implode('|', $markers_code);\n\t}", "public static function mapper(){\n return new Mapper;\n }", "private function renderMapMarker( $template, $mapTemplate )\n {\n $mode = $this->confMap[ 'compatibility.' ][ 'mode' ];\n\n switch ( $mode )\n {\n case('leaflet (default)'):\n $template = $this->renderMapMarkerLeaflet( $template, $mapTemplate );\n break;\n case('oxMap (deprecated)'):\n $template = $this->renderMapMarkerOxMap( $template, $mapTemplate );\n break;\n default:\n $header = 'FATAL ERROR!';\n $text = 'Unexpeted value. navigation.map.compatibility.mode is \"' . $mode . '\"';\n $this->pObj->drs_die( $header, $text );\n break;\n }\n return $template;\n }", "function clientmap_pin_helper($x, $y, $content){\n $map_circle_uri = get_static_uri('map-circle.png');\n return <<<HTML\n <div class=\"map-pin\" style=\"left: {$x}; top: {$y};\">\n <img src=\"{$map_circle_uri}\">\n <div class=\"map-label\">{$content}</div>\n </div>\nHTML;\n}", "public function getMarkersJs()\n\t{\n\t\t$return = '';\n\t\tif (null !== $this->resources->itemAt('markers'))\n\t\t{\n\t\t\tforeach ($this->resources->itemAt('markers') as $marker)\n\t\t\t{\n\t\t\t\t$return .= $marker->toJs($this->getJsName());\n\t\t\t\tif (null !== $this->_markerClusterer)\n\t\t\t\t\t$this->_markerClusterer->addMarker($marker);\n\t\t\t\t$return .= \"\\n \";\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "function si_custom_elements_icon_map( $icon_map ) {\n\t\t$icon_map['si_custom_elements'] = EXTENSION_URL . '/assets/svg/icons.svg';\n\t\treturn $icon_map;\n\t}", "public function displayMap()\n {\n $buses = User::where('wei', 1)->whereNotNull('latitude')->whereNotNull('longitude')->orderBy('updated_at')->groupBy('bus_id')->get();\n\n $pts = [];\n foreach ($buses as $bus) {\n $pts [] = [\n 'title' => 'Bus '.$bus->bus_id,\n 'lat' => $bus->latitude,\n 'lng' => $bus->longitude,\n ];\n }\n\n return view('dashboard.maps.index', compact('pts'));\n\n }", "public static function invalidMarkerIconUrl()\n {\n return new static('A marker image icon must have an url.');\n }", "private function renderMapMarkerLeaflet( $template, $mapTemplate )\n {\n $mapHashKey = '###MAP###';\n $this->renderMapMarkerSnippetsHtmlCategories( $mapTemplate );\n $this->renderMapMarkerSnippetsHtmlDynamic( $mapTemplate );\n $templateWoMarker = $this->renderMapMarkerWoMarker( $mapHashKey, $template );\n if ( $templateWoMarker )\n {\n// var_dump( __METHOD__, __LINE__ );\n// die( ':(' );\n return $templateWoMarker;\n }\n // Add data\n $mapTemplate = $this->renderMapMarkerVariablesSystem( $mapTemplate );\n //var_dump( __METHOD__, __LINE__, $mapTemplate);\n $arr_return = $this->mapLLjss( $template, $mapTemplate );\n return $arr_return;\n }", "function bb_locatie($arguments = array()) {\n\t\t$address = $this->parseArray(array('[/locatie]'), array());\n\t\t$map = $this->maps(htmlspecialchars($address), $arguments);\n\t\treturn '<span class=\"hoverIntent\"><a href=\"https://maps.google.nl/maps?q=' . htmlspecialchars($address) . '\">' . $address . ' <img src=\"/plaetjes/famfamfam/map.png\" alt=\"map\" title=\"Kaart\" /></a><div class=\"hoverIntentContent\">' . $map . '</div></span>';\n\t}", "public function afficheMarker(){\r\n \r\n $request = $this->_bdd->query(\"SELECT gps.`id`, gps.id_bateau, gps.latitude, gps.longitude, bateau.nom FROM gps, bateau WHERE gps.id_bateau = bateau.id ORDER BY `gps`.`id` DESC\");\r\n while ($tab = $request->fetch()){ ?>\r\n <script> \r\n \"<?= $tab['nom'] ?>\":{\r\n \"lat\": <?= $tab['latitude'] ?>;\r\n \"lon\": <?= $tab['longitude'] ?>;\r\n };\r\n </script>\r\n <?php\r\n } \r\n}", "public function actionMap()\n {\n $mapForm = MapForm::createDefault();\n \n $mapForm->load(Yii::$app->request->post());\n $mapForm->validate();\n \n $this->layout = 'fluid';\n return $this->render('map', [\n 'mapForm' => $mapForm,\n ]);\n }", "function create_Map($coordsTmp,$name) {\n\t\t\n\t\t\t\t// default atts\n\t\t\t\t\t$attr = shortcode_atts(array(\t\n\t\t\t\t\t\t\t\t\t'lat' => '57.700662', \n\t\t\t\t\t\t\t\t\t'lon' => '11.972609',\n\t\t\t\t\t\t\t\t\t'id' => 'map',\n\t\t\t\t\t\t\t\t\t'z' => '14',\n\t\t\t\t\t\t\t\t\t'w' => '530',\n\t\t\t\t\t\t\t\t\t'h' => '450',\n\t\t\t\t\t\t\t\t\t'maptype' => 'ROADMAP',\n\t\t\t\t\t\t\t\t\t'marker' => $coordsTmp\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t), $attr);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$map = '\n\t\t\t\t<div id=\"map\" style=\"width:530px;height:450px;border:1px solid gray;\"></div><br>\n\t\t\t\t\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\tvar infowindow = null;\n\t\t\t\tvar latlng=new google.maps.LatLng(57.700662,11.972609);\n\t\t\t\t\tvar latlngw = new google.maps.LatLng(' . $attr['lat'] . ', ' . $attr['lon'] . ');\n\t\t\t\t\tvar myOptions = {\n\t\t\t\t\t\tzoom: 13,\n\t\t\t\t\t\tcenter: latlng,\n\t\t\t\t\t\tmapTypeId: google.maps.MapTypeId.' . $attr['maptype'] . '\n\t\t\t\t\t};\n\t\t\t\t\tvar map = new google.maps.Map(document.getElementById(\"map\"),myOptions);';\n\t\t\n\t\t\t\t $map .=' var sites = [';\n\t\t\t\t\t\t//marker: show if address is not specified\n\t\t\t\t\t\tif ($attr['marker'] != ''){\n\t\t\t\t\t\t\t$markers = explode(\"|\",$attr['marker']);\n\t\t\t\t\t\t\tfor($i = 0;$i < count($markers);$i ++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$markerTmp=$markers[$i];\n\t\t\t\t\t\t\t\t$marker= explode(\",\",$markerTmp);\n\t\t\t\t\t\t\t\t\tif (count($marker)>3) { \n\t\t\t\t\t\t\t\t\t$markerTmp2 .='['.$marker[0].',' .$marker[1].',\\'' . $marker[2] . '\\',\\'' . $marker[3] . '\\'],';\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$markerTmp2 .='['.$marker[0].',' .$marker[1].',\\'' . $marker[2] . '\\',null],';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t \n\t\t\t\t\t $markerTmp2=substr ($markerTmp2,0,strlen ( $markerTmp2 )-1);\n\t\t\t\t\t $map .=$markerTmp2;\n\t\t\t\t\t $map .='];';\n\t\t\t\t\t $map .='';\n\t\t\t\t\t $map .=' for (var i = 0; i < sites.length; i++) {';\n\t\t\t\t\t $map .=' var site = sites[i];';\n\t\t\t\t\t $map .=' var siteLatLng = new google.maps.LatLng(site[0], site[1]);';\t\n\t\t\t\t\t $map .=' var markerimage = site[3];';\n\t\t\t\t\t \n\t\t\t\t\t $map .=' var marker = new google.maps.Marker({';\n\t\t\t\t\t $map .=' position: siteLatLng, ';\n\t\t\t\t\t $map .=' map: map,title:\"'.$addr.'\",';\n\t\t\t\t\t $map .=' icon: markerimage,';\n\t\t\t\t\t $map .=' html: \"Hello dude\" }); \n\t\t\t\t\t \n\t\t\t\t\t var infowindow = new google.maps.InfoWindow({\n\t\t\t\t\t\t\tcontent: \"Hello dude\"\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\tvar marker3 = new google.maps.Marker({\n\t\t\t\t\t\t\t\tposition: latlng,\n\t\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\t\ttitle:\"Uluru (Ayers Rock)\"\n\t\t\t\t\t\t});\n\n\t\t\t\t\t \n\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(marker3, \"click\", function () {\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinfowindow.open(map,marker3);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t;}\n\t\t\t\t\t\t\t\t</script>';\n\t\t\t\t\t\treturn $map;\n\t\t\t\t\t}", "function ju_map_kr($a1, $a2):array {return ju_map($a1, $a2, [], [], JU_BEFORE, true);}", "public function testMap()\n {\n $collection = $this->collection->map(function($value, $key) {\n return 2 * $value;\n });\n\n $this->assertAttributeEquals([2,4,6], 'elements', $collection);\n $this->assertAttributeEquals([1,2,3], 'elements', $this->collection);\n }", "public function getMapareasList(){\n return $this->_get(30);\n }", "public static function invalidMarkerIcon()\n {\n return new static(sprintf(\n '%s'.PHP_EOL.'%s'.PHP_EOL.'%s'.PHP_EOL.'%s',\n 'The icon setter arguments is invalid.',\n 'The available prototypes are :',\n ' - function setIcon(Fungio\\GoogleMap\\Overlays\\MarkerImage $markerImage = null)',\n ' - function setIcon(string $url = null)'\n ));\n }", "public static function invalidMarkerShapeCoordinates()\n {\n return new static('A marker shape must have coordinates.');\n }", "function map($pattern, $defaults=false, $requirements=false) {\n\t\t# parse pattern into regex\n\t\t$this->maps[] = new UsherMap($pattern, $defaults, $requirements);\n\t}", "private function renderMapMarkerCategoryIcons()\n {\n $catIcons = null;\n $arrIcon = array();\n\n foreach ( array_keys( $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ] ) as $catKey )\n {\n if ( substr( $catKey, -1 ) == '.' )\n {\n continue;\n }\n\n unset( $arrIcon );\n\n // Set the path\n $coa_name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'pathToIcon' ];\n $coa_conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'pathToIcon.' ];\n $value = $this->pObj->cObj->cObjGetSingle( $coa_name, $coa_conf );\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'Unexpeted value : TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n // absolute path\n $pathAbsolute = t3lib_div::getFileAbsFileName( $value );\n if ( !file_exists( $pathAbsolute ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'File doesn\\'t exist: ' . $pathAbsolute;\n $this->pObj->drs_die( $header, $text );\n }\n // relative path\n $pathRelative = preg_replace( '%' . PATH_site . '%', '', $pathAbsolute );\n $arrIcon[] = $pathRelative;\n // Set the path\n // Add the icon width\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'width' ];\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon width\n // Add the icon height\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'height' ];\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon height\n // Add the icon x-offset\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'offsetX' ];\n if ( $value == null )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon x-offset\n // Add the icon y-offset\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'offsetY' ];\n if ( $value == null )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon y-offset\n// $catIcons[$catKey] = '[' . implode( ', ', $arrIcon ) . ']';\n $catIcons[ $catKey ] = $arrIcon;\n }\n\n//var_dump( __METHOD__, __LINE__, $catIcons );\n // #65184, 150223, dwildt, +\n $this->catIcons = $catIcons;\n return $catIcons;\n }", "public function addMarker($markerName, $value) {\n\t\t$this->markers[$markerName] = $value;\n\t\treturn $this;\n\t}", "public function marker($latitude, $longitude, array $options = [])\n {\n $parameters = [\n 'latitude' => $latitude,\n 'longitude' => $longitude,\n ];\n\n $parameters = array_replace_recursive(\n $this->options,\n $parameters,\n $options\n );\n\n $this->markers[] = new Marker($parameters);\n }", "function mpfy_shortcode_custom_mapping($atts, $content) {\n\tglobal $mpfy_footer_scripts;\n\tstatic $mpfy_instances = -1;\n\t$mpfy_instances ++;\n\n\tif (!defined('MPFY_LOAD_ASSETS')) {\n\t\tdefine('MPFY_LOAD_ASSETS', true);\n\t}\n\n\textract( shortcode_atts( array(\n\t\t'width'=>0,\n\t\t'height'=>300,\n\t\t'map_id'=>0,\n\t), $atts));\n\n\tif (!stristr($width, '%')) {\n\t\t$width = intval($width);\n\t\t$width = ($width < 1) ? 0 : $width . 'px';\n\t}\n\n\tif (!stristr($height, '%')) {\n\t\t$height = intval($height);\n\t\t$height = ($height < 1) ? 300 : $height . 'px';\n\t}\n\n\tif ($map_id == 0) {\n\t\t$map_id = Mpfy_Map::get_first_map_id();\n\t}\n\n\t$map = get_post(intval($map_id));\n\tif (!$map || is_wp_error($map) || $map->post_type != 'map') {\n\t\treturn 'Invalid or no map_id specified.';\n\t}\n\n\t$map = new Mpfy_Map($map->ID);\n\n\t$template = include('templates/map.php');\n\t$mpfy_footer_scripts .= $template['script'];\n\treturn $template['html'];\n}", "function addCustomInfoWindow( $objLatLng, $html, $icon, $title ) {\n\t$info_window = new EGMapInfoWindow( $html ) ;\n\t// Setting up an icon for marker.\n\t//$source_icon = new EGMapMarkerImage(\"http://google-maps-icons.googlecode.com/files/car.png\");\n\t$icon = new EGMapMarkerImage( $icon ) ;\n\t// $source_icon->setSize(32, 37);\n\t// $source_icon->setAnchor(16, 16.5);\n\t// $source_icon->setOrigin(0, 0);\n\n\t$marker = new EGMapMarker (\n\t\t$objLatLng->getLatitude() ,\n\t\t$objLatLng->getLongitude() ,\n\t\tarray(\n\t\t\t'title' => $title ,\n\t\t\t'icon' => $icon\n\t\t)\n\t) ;\n\t$marker->draggable = true ;\n\t$marker->addHtmlInfoWindow( $info_window ) ;\n\treturn $marker;\n\t//$egMap->addMarker( $marker ) ;\n}", "public function markers($request)\r\n\t{\r\n\t\tglobal $wpdb;\r\n\t\tglobal $wpgmza_tblname;\r\n\t\t\r\n\t\t$route \t\t= $_SERVER['REQUEST_URI'];\r\n\t\t$params\t\t= $this->getRequestParameters();\r\n\t\t\r\n\t\tswitch($_SERVER['REQUEST_METHOD'])\r\n\t\t{\r\n\t\t\tcase 'GET':\r\n\t\t\t\tif(preg_match('#/wpgmza/v1/markers/(\\d+)#', $route, $m))\r\n\t\t\t\t{\r\n\t\t\t\t\t$marker = Marker::createInstance($m[1]);\r\n\t\t\t\t\treturn $marker;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$fields = null;\r\n\t\t\t\t\r\n\t\t\t\tif(isset($params['fields']) && is_string($params['fields']))\r\n\t\t\t\t\t$fields = explode(',', $params['fields']);\r\n\t\t\t\telse if(!empty($params['fields']))\r\n\t\t\t\t\t$fields = $params['fields'];\r\n\t\t\t\t\r\n\t\t\t\tif(!empty($fields))\r\n\t\t\t\t\t$fields = $this->sanitizeFieldNames($fields, $wpgmza_tblname);\r\n\t\t\t\t\r\n\t\t\t\tif(!empty($params['filter']))\r\n\t\t\t\t{\r\n\t\t\t\t\t$filteringParameters = json_decode( stripslashes($params['filter']) );\r\n\t\t\t\t\t\r\n\t\t\t\t\t$markerFilter = MarkerFilter::createInstance($filteringParameters);\r\n\t\t\t\t\t\r\n\t\t\t\t\tforeach($filteringParameters as $key => $value)\r\n\t\t\t\t\t\t$markerFilter->{$key} = $value;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$results = $markerFilter->getFilteredMarkers($fields);\r\n\t\t\t\t}\r\n\t\t\t\telse if(!empty($fields))\r\n\t\t\t\t{\r\n\t\t\t\t\t$query = new Query();\r\n\t\t\t\t\t\r\n\t\t\t\t\t$query->type = \"SELECT\";\r\n\t\t\t\t\t$query->table = $wpgmza_tblname;\r\n\t\t\t\t\t$query->fields = $fields;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$qstr = $query->build();\r\n\t\t\t\t\t\r\n\t\t\t\t\t$results = $wpdb->get_results($qstr);\r\n\t\t\t\t}\r\n\t\t\t\telse if(!$fields)\r\n\t\t\t\t{\r\n\t\t\t\t\t$results = $wpdb->get_results(\"SELECT * FROM $wpgmza_tblname\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// TODO: Select all custom field data too, in one query, and add that to the marker data in the following loop. Ideally we could add a bulk get function to the CRUD classes which takes IDs?\r\n\t\t\t\t// NB: Such a function has been implemented, just need to hook that up\r\n\t\t\t\t\r\n\t\t\t\tforeach($results as $obj)\r\n\t\t\t\t\tunset($obj->latlng);\r\n\t\t\t\t\r\n\t\t\t\treturn $results;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'DELETE':\r\n\t\t\t\t\r\n\t\t\t\t// Workaround for PHP not populating $_REQUEST\r\n\t\t\t\t$request = array();\r\n\t\t\t\t$body = file_get_contents('php://input');\r\n\t\t\t\tparse_str($body, $request);\r\n\t\t\t\t\r\n\t\t\t\tif(isset($request['id']))\r\n\t\t\t\t{\r\n\t\t\t\t\t$marker = Marker::createInstance($request['id']);\r\n\t\t\t\t\t$marker->trash();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(isset($request['ids']))\r\n\t\t\t\t\tMarker::bulk_trash($request['ids']);\r\n\t\t\t\t\r\n\t\t\t\treturn (object)array(\r\n\t\t\t\t\t'success' => true\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\treturn new \\WP_Error('wpgmza_invalid_request_method', 'Invalid request method');\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "function getMap()\n {\n return array();\n }", "protected function addMarkerSection(ArrayNodeDefinition $node)\n {\n $node\n ->children()\n ->arrayNode('marker')->addDefaultsIfNotSet()\n ->children()\n ->scalarNode('class')->end()\n ->scalarNode('helper_class')->end()\n ->scalarNode('prefix_javascript_variable')->end()\n ->arrayNode('position')->addDefaultsIfNotSet()\n ->children()\n ->scalarNode('longitude')->end()\n ->scalarNode('latitude')->end()\n ->scalarNode('no_wrap')->end()\n ->end()\n ->end()\n ->scalarNode('animation')->end()\n ->arrayNode('options')\n ->useAttributeAsKey('options')\n ->prototype('scalar')->end()\n ->end()\n ->end()\n ->end()\n ->end();\n }", "private function addMarkers()\n {\n $users = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'fe_users', $this->getUserFilter());\n while (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($users)))\n {\n\n\n $this->addMarker($row, $this->getGroupIcon($row['usergroup'],$row['uid']));\n //$marker = $this->map->addMarkerByAddress( $title, $description, $singleConf['minzoom'], $singleConf['maxzoom'], $iconId );\n }\n }", "public abstract function map(callable|UnaryFunction|string|MapOperator $mapper): Stream;", "function tradeoff_map($definition)\n {\n return app(Models\\Resolution\\Map\\Map::class)->setData($definition);\n }", "public function __construct(Mappable $map)\n {\n $this->map = $map;\n }", "public function useCustomMapper(MapperInterface $mapper): void;", "private function initMapMarker( $template )\n {\n // map marker\n $str_mapMarker = '###MAP###';\n\n\n\n /////////////////////////////////////////////////////////////////\n //\n // Get TypoScript configuration for the current view\n\n $conf = $this->pObj->conf;\n $mode = $this->pObj->piVar_mode;\n $view = $this->pObj->view;\n $viewWiDot = $view . '.';\n $this->conf_view = $conf[ 'views.' ][ $viewWiDot ][ $mode . '.' ];\n $this->singlePid = $this->pObj->objZz->get_singlePid_for_listview();\n // Get TypoScript configuration for the current view\n /////////////////////////////////////////////////////////////////\n //\n // RETURN: template contains the map marker\n//$pos = strpos('87.177.75.198', t3lib_div :: getIndpEnv('REMOTE_ADDR'));\n//if( ! ( $pos === false ) )\n//{\n// var_dump(__METHOD__ . ' (' . __LINE__ . ')', $template );\n//die( ':(' );\n $pos = strpos( $template, $str_mapMarker );\n if ( !( $pos === false ) )\n {\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'The HTML template contains the marker ' . $str_mapMarker . '.';\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n return $template;\n }\n // RETURN: template contains the map marker\n /////////////////////////////////////////////////////////////////\n //\n // DRS - Development Reporting System\n\n if ( $this->pObj->b_drs_warn )\n {\n $prompt_01 = 'The HTML template doesn\\'t contain any marker ' . $str_mapMarker . '.';\n $prompt_02 = 'Marker ' . $str_mapMarker . ' will added before the last div-tag automatically.';\n $prompt_03 = 'But it would be better, you add the marker ' . $str_mapMarker . ' to your HTML template manually.';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt_01, $this->pObj->extKey, 2 );\n t3lib_div :: devLog( '[OK/BROWSERMAPS] ' . $prompt_02, $this->pObj->extKey, -1 );\n t3lib_div :: devLog( '[HELP/BROWSERMAPS] ' . $prompt_03, $this->pObj->extKey, 1 );\n }\n // DRS - Development Reporting System\n /////////////////////////////////////////////////////////////////\n //\n // Set marker before the last div-tag\n\n $arr_divs = explode( '</div>', $template );\n\n // 140705, dwildt, +\n switch ( true )\n {\n case(count( $arr_divs == 1 )):\n $template = $template . $str_mapMarker . PHP_EOL . ' ';\n break;\n default:\n $pos_lastDiv = count( $arr_divs ) - 2;\n $arr_divs[ $pos_lastDiv ] = $arr_divs[ $pos_lastDiv ] . $str_mapMarker . PHP_EOL . ' ';\n $template = implode( '</div>', $arr_divs );\n break;\n }\n// var_dump( __METHOD__, __LINE__, $template );\n// die( ':(' );\n\n return $template;\n }", "public abstract function toMap(): array;", "public function getMarkers()\n\t{\t\n\t\t$groups = $this->getGroups();\n\t\tif(!$groups) return '';\n\t\tforeach ($groups as $group) \n\t\t{\n\t\t\t$markers[$group->term_id] = array(\n\t\t\t\t'ID' => $group->term_id,\n\t\t\t\t'title' => $group->name,\n\t\t\t\t'description' => $group->description,\n\t\t\t\t'location' => $group->meta['location'],\n\t\t\t\t'address' => $group->meta['location_address'],\n\t\t\t\t'icon' => $group->meta['location_icon']\n\t\t\t);\n\t\t}\t\t\n\t\treturn sprintf('var markers = %s;', json_encode($markers));\n\t}", "public function agen_marker($isDetail = TRUE, $data='', $isSugesti = FALSE)\n {\n if($isSugesti){\n if ($data != 'semua') {\n $marker = array();\n $marker['position'] = $data->lattitude.', '.$data->longitude;\n $marker['infowindow_content'] = $data->id_agen.\"-\".$data->nama_agen.\"<br>\".$data->alamat_agen;\n $marker['draggable'] = FALSE;\n $marker['icon'] = base_url('asset/img/marker/Agen'.$this->urutanagen.'.png');\n $this->googlemaps->add_marker($marker);\n }else{\n $dataAgen = $this->GetCoorAllAgen();\n\n foreach ($dataAgen as $key => $value) {\n if ($value['lattitude'] != '' && $value['longitude'] != '') {\n \n $marker = array();\n $marker['position'] = $value['lattitude'].', '.$value['longitude'];\n $marker['infowindow_content'] = $value['nama_agen'].\"<br>\".$value['alamat_agen'];\n $marker['icon'] = base_url('asset/img/marker/Agen'.$this->urutanagen.'.png');\n $this->googlemaps->add_marker($marker);\n }\n }\n }\n }else{\n\n if ($isDetail) {\n if ($data->lattitude != '' && $data->longitude != '') {\n $position = $data->lattitude.', '.$data->longitude;\n }else{\n $position = '-7.979178376432889, 112.62477099895477';\n }\n $marker = array();\n $marker['position'] = $position;\n $marker['infowindow_content'] = $data->id_agen.\"-\".$data->nama_agen.\"<br>\".$data->alamat_agen;\n $marker['draggable'] = TRUE;\n $marker['animation'] = 'DROP';\n $marker['ondragend'] = 'updateDatabase(event.latLng.lat(), event.latLng.lng());';\n $marker['icon'] = base_url('asset/img/marker/Agen.png');\n $this->googlemaps->add_marker($marker);\n }\n }\n // foreach ($data as $key => $value) {\n // print_r($key);die;\n // $marker = array();\n // }\n }", "public function getMarkerIndex()\n {\n return $this->currentMarker;\n }", "private function renderMapMarkerPointsPoint( $row, $arrLabels, $arrCategoriesFlipped )\n {\n $mapMarkers = array();\n $lons = array();\n $lats = array();\n\n $dontHandle00 = $this->confMap[ 'configuration.' ][ '00Coordinates.' ][ 'dontHandle' ];\n\n // Get category properties\n $catValues = $this->renderMapMarkerPointsPointProperties( $row );\n//$this->pObj->dev_var_dump( $row, $catValues, $arrLabels );\n // FOREACH category title\n foreach ( $catValues[ 'catTitles' ] as $key => $catTitle )\n {\n // Add cObj->data\n $this->renderMapMarkerPointsPointCobjDataAdd( $row, $arrLabels, $catValues, $key );\n\n // Get the longitude and latitude\n $lon = $this->renderMapMarkerVariablesSystemItem( 'longitude' );\n $lat = $this->renderMapMarkerVariablesSystemItem( 'latitude' );\n//$this->pObj->dev_var_dump( 'lat: ' . $lat . ', lon: ' . $lon );\n // SWITCH logitude and latitude\n switch ( true )\n {\n case( $lon . $lat == '' ):\n // CONTINUE: longitude and latitude are empty\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'lon and lat are empty. Record won\\'t handled!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n continue 2;\n case( $dontHandle00 && $lon == 0 && $lat == 0 ):\n // CONTINUE: longitude and latitude are 0 and 0,0 shouldn't handled\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'lon and lat are 0. And 0 should not handled. Record won\\'t handled!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n continue 2;\n }\n // SWITCH logitude and latitude\n // Get the longitude and latitude\n // Get the category label\n //$catTitleWoSpc = str_replace( ' ', null, $catTitle );\n $catTitleWoSpc = $this->zz_properFormLabel( $catTitle );\n\n // Get the description\n $description = $this->renderMapMarkerVariablesSystemItem( 'description' );\n if ( empty( $description ) )\n {\n $description = 'Content is empty!<br />' . PHP_EOL\n . 'Please take care of a proper configuration '\n . 'of the TypoScript property marker.mapMarker.description!'\n ;\n }\n\n // #i0019, 130717, dwildt, 1+\n $description = str_replace( $this->catDevider, $this->pObj->objTyposcript->str_sqlDeviderDisplay, $description );\n // #i0018, 130901, dwildt, 1+\n $description = str_replace( \"'\", null, $description );\n // Get the description\n // Get the url\n////$lastItem = count( $this->pObj->cObj->data ) - 1;\n////$this->pObj->dev_var_dump( $this->pObj->cObj->data[ $lastItem ] );\n//$this->pObj->dev_var_dump( $this->pObj->cObj->data );\n $url = $this->renderMapMarkerVariablesSystemItem( 'url' );\n //var_dump( __METHOD__, __LINE__, $this->pObj->cObj->data['mapLinkToSingle'], $url );\n // Get the number\n $number = $this->renderMapMarkerVariablesSystemItem( 'number' );\n\n $arrReturn = $this->renderMapMarkerPointsPointIcon( $arrCategoriesFlipped, $catTitle );\n $catIconMap = $arrReturn[ 'path' ];\n $iconKey = $arrReturn[ 'key' ];\n $iconOffsetX = $arrReturn[ 'offsetX' ];\n $iconOffsetY = $arrReturn[ 'offsetY' ];\n // Get the icon properties\n // Get markerTable and markerUid\n switch ( true )\n {\n case( $row[ 'markerTable' ] ):\n $markerTable = $row[ 'markerTable' ];\n $routeLabel = $row[ 'routeLabel' ];\n $type = 'route';\n break;\n case( $catValues[ 'markerTable' ] ):\n default:\n $markerTable = $catValues[ 'markerTable' ];\n $routeLabel = null;\n $type = 'category';\n break;\n }\n $markerUid = $catValues[ 'markerUid' ];\n // 130612, dwildt, 4+\n if ( empty( $markerUid ) )\n {\n $markerUid = 'uid';\n }\n // Get markerTable and markerUid\n//$this->pObj->dev_var_dump( $row, $catValues );\n // Set mapMarker\n $mapMarker = array\n (\n 'cat' => $catTitleWoSpc,\n 'desc' => $description,\n 'number' => $number,\n 'lon' => ( double ) $lon,\n 'lat' => ( double ) $lat,\n 'url' => $url,\n 'catIconMap' => $catIconMap,\n 'iconKey' => $iconKey,\n 'iconOffsetX' => $iconOffsetX,\n 'iconOffsetY' => $iconOffsetY,\n 'markerUid' => $markerUid,\n 'markerTable' => $markerTable,\n 'routeLabel' => $routeLabel,\n 'type' => $type\n );\n // Set mapMarker\n // Unset some mapMarker elements, if they are empty\n $keysForCleanup = array( 'catIconMap', 'number', 'url' );\n foreach ( $keysForCleanup as $keyForCleanup )\n {\n if ( !empty( $mapMarker[ $keyForCleanup ] ) )\n {\n continue;\n }\n // UNSET : mapMarker element is empty\n unset( $mapMarker[ $keyForCleanup ] );\n }\n // Unset some mapMarker elements, if they are empty\n // Save each mapMarker\n $mapMarkers[] = $mapMarker;\n // Save each longitude\n $lons[] = $mapMarker[ 'lon' ];\n // Save each latitude\n $lats[] = $mapMarker[ 'lat' ];\n\n // Remove the current row from cObj->data\n $this->renderMapMarkerPointsPointCobjDataRemove( $row, $arrLabels );\n }\n // FOREACH category title\n\n unset( $dontHandle00 );\n unset( $arrLabels );\n\n $arr_return = array\n (\n 'data' => array\n (\n 'mapMarkers' => $mapMarkers,\n 'lats' => $lats,\n 'lons' => $lons\n )\n );\n\n return $arr_return;\n }", "function map_large_link($location,$latitude,$longitude)\n {\n return \"https://maps.google.com/maps?ll={$latitude},{$longitude}&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=PT&amp;mapclient=embed&amp;\";\n }", "function img2map($width, $height, $point, $ext){\n\tif ($point->x && $point->y){\n\t\t$dpp_x = ($ext->maxx -$ext->minx)/$width;\n\t\t$dpp_y = ($ext->maxy -$ext->miny)/$height;\n\t\t$p[0] = $ext->minx + $dpp_x*$point->x;\n\t\t$p[1] = $ext->maxy - $dpp_y*$point->y;\n\t}\n\treturn $p;\n}", "public function setMap( $value ) {\n $this->map = $value;\n return $this;\n }", "abstract protected function getMapping();", "abstract protected function getMapping();", "protected function placeMarker($suffix = '')\n {\n Log::info(\"test marker {$suffix}\");\n }", "public function test_dd_symbols()\n {\n $coord = \" 49.129774° 46.677716°\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], 49.129774);\n $this->assertEquals($dd[1], 46.677716);\n }", "public function run()\n {\n $data = array(\n\t\t\t[\n\t\t\t\t'name' => 'Azua', \n\t\t\t\t'define'\t\t=> 'm 250.54609,362.88093 0.18,0.38 -2.75,0.56 -2.45,3.69 0.06,-1.63 2.03,-2.44 2.93,-0.56 z m -10.75,-148.53 3.08,-1.13 1.16,-1.53 1.92,-0.76 1.54,0.78 3.46,4.24 -1.54,3.06 0.38,3.46 1.54,0.77 2.31,3.08 0,1.92 -1.54,-0.01 -1.15,1.15 0.38,9.59 3.46,4.24 -0.39,3.13 1.27,2.1 4.05,1.92 2.35,2.47 5.79,8.47 4.23,-0.36 1.47,1.09 4.3,0.53 4.83,4.11 1.31,3.98 0,6.58 -0.78,4.93 -2.71,2.18 0.42,0.42 0,0 2.31,1.16 3.08,2.7 2.31,3.84 0.38,6.51 -2.69,4.2 0.77,1.54 1.92,1.93 6.92,4.25 0.77,1.15 0,2.3 2.31,2.69 0.38,1.53 1.15,0.39 2.31,-1.14 1.54,0.01 1.15,2.69 5,1.18 1.15,1.16 1.15,-0.38 3.08,4.23 5.38,0.8 1.15,1.15 0,0.77 -1.15,0.76 0,2.3 1.92,1.16 0,2.3 1.92,3.07 -0.39,2.68 3.7,2.55 0,0 1.68,2.83 0,3.06 -4.24,5.71 -0.39,5.73 1.15,3.45 0,1.91 -2.31,5.34 -2.31,1.13 -3.85,-0.02 -2.69,1.51 -8.46,0.34 -1.11,1.05 0,0 -1.85,-1.44 0,-1.75 2.51,-5.51 1.79,-0.44 0.3,-2.63 -1.02,-4.13 0.24,-1.88 1.14,-1.94 -0.24,-2.82 -1.49,-1.88 -0.9,-6.2 -1.49,-1.56 -2.81,-1.31 -3.23,-0.63 -1.73,0.06 -3.76,-1.31 -2.93,0.19 -3.29,-1.13 -3.76,0.56 -1.38,3.07 -3.35,1.44 0.12,1.88 0.3,1.25 1.2,2.82 -1.79,3.13 -1.43,1.5 -1.19,0.31 -0.66,1.44 -3.76,1.94 -3.59,-0.63 -7.23,0.88 -0.18,-1.69 -1.97,-0.44 -1.79,1.06 0.36,1.88 -1.79,0.56 -2.15,2.07 -0.48,-0.44 0.72,-0.69 -1.49,-0.12 1.43,-1.75 -0.83,-0.19 -0.18,-0.75 -1.97,-0.19 -0.96,0.94 0.42,0.5 -1.67,0.13 -1.25,1.06 -1.79,2.69 -0.6,2.5 0.42,0.63 -1.91,1.75 -0.9,2 -7.35,7.01 -1.73,0.25 -1.85,1.69 -2.93,0.06 -2.57,1.44 -1.67,-0.56 -0.78,-1.66 0,0 1.18,0.04 1.16,-1.9 0,-2.29 1.16,-1.14 0.77,-3.44 -0.77,-3.44 -2.31,-2.31 -1.92,-3.83 1.15,-1.52 1.54,-0.76 0,-1.91 -1.15,-1.54 -1.92,-0.39 -2.31,1.14 -0.39,1.15 -1.54,1.14 -4.62,-1.56 -0.38,-1.91 -1.54,-1.92 -2.31,-0.4 -1.15,0.76 -0.77,-3.06 -1.92,-3.07 0,-0.76 5.39,-1.12 1.15,-0.76 1.16,-4.58 0.77,-0.76 0,-3.44 1.54,-0.75 2.31,0.01 1.54,-1.9 -0.38,-2.68 -0.77,-1.15 -5.77,-3.48 -1.92,-3.07 -1.15,-3.83 0,0 2.31,0.78 1.54,2.31 0.38,2.3 0.77,0.01 1.15,-1.52 3.85,-0.74 1.15,-1.14 -4.23,-4.23 -7.69,-2.72 -3.46,-0.4 -2.69,-1.93 -4.23,-0.79 -2.69,-1.93 -5.77,-1.56 -1.54,-1.15 -1.54,-2.69 -3.46,-2.32 -1.15,-2.56 0,0 5.49,-0.18 5.22,-5.41 2.26,0 2.55,-6.33 3.84,-0.1 2.19,-2.17 1.92,-0.37 -0.38,-2.68 -2.31,-2.31 0,-1.92 1.15,-1.14 1.54,0.01 0.77,-0.76 -0.38,-1.92 -1.15,-0.39 0,-1.53 -0.77,-0.77 -0.38,-6.13 1.15,-1.91 2.31,-1.52 2.69,0.02 1.54,1.16 0.77,3.07 1.92,3.84 1.54,0.01 0.77,-2.3 2.31,-2.29 0.77,-2.68 2.7,-4.58 0,-2.68 -2.69,-5.38 -1.54,-5.76 0.77,-1.15 1.54,-0.37 2.31,-4.59 0.38,-2.3 -0.77,-0.77 0,-1.15 3.08,-1.52 1.16,0.01 1.54,-2.68 5.39,-1.12 1.54,-2.29 -1.92,-4.61 6.54,-1.11 1.16,-1.53 0,-1.54 -0.77,-0.77 0.31,-1.65 z',\n \t\t'code'\t\t\t=> 'DO-02',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Bahoruco',\n\t\t\t\t'define'\t\t=> 'm 101.28609,290.65093 1.54,0.77 1.15,1.54 3.08,1.55 4.23,1.17 2.69,0.02 2.31,-1.14 2.69,0.4 5.77,3.1 1.16,2.3 1.53,0.01 1.54,-1.52 2.69,0.78 0.39,2.3 7.69,1.57 4.23,-3.04 1.93,0.01 1.15,-1.9 1.54,-1.14 2.69,0.01 3.08,1.17 7.31,0.04 8.85,-3.78 5,-1.12 5,1.56 0.77,0.77 0.38,2.43 0,0 1.15,2.55 3.47,2.32 1.53,2.69 1.54,1.16 5.77,1.56 2.69,1.93 4.24,0.79 2.69,1.93 3.46,0.4 7.69,2.73 4.23,4.23 -1.15,1.14 -3.85,0.75 -1.16,1.52 -0.77,0 -0.38,-2.3 -1.54,-2.31 -2.3,-0.78 0,0 -1.16,0.76 -0.38,1.53 1.92,1.93 0,1.53 -5.39,-0.42 0,1.15 1.54,0.78 0,2.68 -0.77,1.52 -1.92,-0.01 -0.77,0.76 -1.54,-0.39 -1.16,0.76 -0.77,1.14 0,2.68 -2.69,0.75 -1.92,-1.54 -1.16,0.76 -1.54,2.67 -1.15,-0.01 -1.16,1.14 -4.23,-0.4 0,0 -0.38,1.52 0,0 1.15,0.78 1.93,0.01 0.77,0.77 -0.39,1.52 -1.54,1.14 -2.31,-0.39 -0.77,1.52 -3.46,0.75 -4.23,1.89 -0.77,1.91 -2.31,1.9 0,1.91 0,0 0,1.15 0,0 -0.39,3.05 1.92,1.16 -0.77,1.91 0,0 -3.84,-0.02 -3.46,1.12 -1.93,-0.39 -3.07,-3.46 -0.39,-3.44 -1.92,-1.92 0.39,-1.92 -0.77,-1.91 -3.46,-2.32 -2.31,-3.83 -0.77,-0.39 -4.23,-0.03 -1.16,1.53 -8.46,4.16 -3.08,2.66 -1.92,-0.01 -7.31,-6.16 -2.31,-0.78 -0.76,-1.54 -6.16,-3.09 -4.61,-0.41 -4.23,-1.17 -24.229996,-12 -1.93,-3.07 -0.76,-8.05 0.77,-3.05 5,-10.31 0,-6.51 1.54,-0.76 6.93,-0.73 5,-1.5 z',\n \t\t'code'\t\t\t=> 'DO-03',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime \n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Barahona',\n\t\t\t\t'define'\t\t=> 'm 208.98609,318.82093 1.15,3.83 1.92,3.07 5.77,3.48 0.77,1.15 0.38,2.68 -1.54,1.9 -2.31,-0.01 -1.54,0.76 0,3.44 -0.77,0.76 -1.15,4.59 -1.15,0.76 -5.39,1.12 0,0.77 1.92,3.07 0.77,3.06 1.15,-0.76 2.31,0.4 1.54,1.92 0.38,1.91 4.62,1.56 1.54,-1.14 0.39,-1.14 2.31,-1.13 1.92,0.39 1.15,1.54 0,1.91 -1.54,0.76 -1.15,1.52 1.92,3.83 2.31,2.31 0.77,3.45 -0.77,3.44 -1.16,1.14 0,2.29 -1.16,1.9 -1.17,-0.04 0,0 -1.79,-1.47 0.06,-1.5 -1.26,-3.38 -2.27,-1.06 -1.13,-2.06 -5.38,-2.5 -2.39,0.69 -0.3,-1.19 -2.33,-1.06 -1.97,-0.06 -1.31,-1.44 -1.19,0.19 -1.91,0.69 -0.48,0.81 0.36,0.75 2.39,-1.38 0.72,0.13 0.24,0.81 -4.9,3.5 -3.88,4.32 -1.49,3.75 0,2.19 0.84,2.44 1.44,0.75 0.3,1.63 1.85,1.31 1.14,2.06 -1.91,2.06 2.75,3.75 1.38,0.63 1.32,4.75 2.51,2.75 -1.85,2.63 -0.24,3.88 -1.13,1.75 -0.42,2.31 -4.96,9.12 -0.84,0.75 -1.43,0.13 -2.45,3.12 0.12,1.94 -4.6,3.19 0.06,4.37 -1.49,0.19 -1.55,2.56 -1.2,0.31 -1.49,1.56 -2.87,5.62 -6.04,9.05 -1.49,0.75 -2.33,3.87 -2.99,1.62 -0.48,1.06 -4.42,3.37 -1.97,2.62 -1.43,3.56 -0.66,0.13 -0.58,-1.94 0,0 -0.31,-2.53 1.15,-1.52 -0.77,-4.96 -1.45,-1.06 -0.25,-3.25 -5.09,-6.38 -2.8,0 -1.27,4.25 -3.56,1.06 -4.04,-5.03 -2.31,-1.54 -1.79,0.3 0,-1.44 -1.02,-1.86 -2.54,-1.86 -4.58,0 -1.53,-1.86 -0.51,-1.59 0.76,-2.39 0,-4.78 0.51,-1.06 2.54,1.33 2.8,-0.8 4.07,-5.32 0.51,-2.39 -0.51,-4.52 -3.56,-5.85 4.58,-0.27 1.52,-1.86 -0.25,-1.06 -1.78,-1.6 -4.07,-2.66 -4.63,-0.51 0,0 0.64,-1.89 0,-4.97 1.92,-2.66 3.08,-0.75 3.08,1.55 3.46,-0.36 2.31,0.78 0.77,-0.76 -3.07,-10.33 -5.77,-11.11 0,-1.53 5.77,-7.61 6.15,4.62 8.85,1.96 5,0.03 9.23,-2.62 1.92,-1.9 1.54,-3.43 1.92,-1.52 0.77,-3.05 0,0 0.77,-1.91 -1.92,-1.16 0.39,-3.06 0,0 0,-1.15 0,0 0,-1.91 2.31,-1.9 0.77,-1.91 4.23,-1.89 3.46,-0.74 0.77,-1.53 2.31,0.4 1.54,-1.14 0.39,-1.53 -0.77,-0.77 -1.92,-0.01 -1.15,-0.77 0,0 0.39,-1.53 0,0 4.23,0.41 1.15,-1.14 1.15,0.01 1.54,-2.67 1.15,-0.76 1.92,1.54 2.69,-0.75 0,-2.68 0.77,-1.14 1.16,-0.76 1.54,0.39 0.77,-0.76 1.92,0.01 0.77,-1.53 0,-2.68 -1.54,-0.77 0,-1.15 5.39,0.41 0,-1.53 -1.92,-1.92 0.39,-1.53 1.09,-0.8 z',\n \t\t'code'\t\t\t=> 'DO-04', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Dajabón',\n\t\t\t\t'define'\t\t=> 'm 58.306094,65.27093 1.91,2.3 2.3,0.4 0.77,1.16 3.85,-0.36 12.31,5.07 7.69,0.05 5.4,-1.12 5.37,0.41 1.54,-1.53 2.309996,-0.76 5.38,0.41 1.16,3.09 -0.39,1.54 1.15,1.55 2.7,0.79 1.15,1.54 1.92,1.17 3.46,1.17 2.69,3.49 3.08,0.78 3.46,1.95 0,0 0,1.54 -5.77,6.13 -2.31,4.61 0,6.93 1.15,3.85 0,3.47 -1.16,1.92 -2.69,1.13 -0.38,0.77 0.76,5.4 -0.77,4.99 0.38,6.16 -5.77,1.12 -5.38,-1.18 0.77,3.85 4.23,3.1 0.77,1.92 0,0 -0.39,1.16 -2.69,1.52 -2.7,4.21 -2.69,-0.4 -1.15,-1.54 -2.689996,-0.78 -3.08,0.75 -4.23,-2.33 -1.93,1.91 -0.77,5.76 -0.77,0.77 -2.69,-0.79 -2.69,1.91 -2.31,3.06 -0.82,-0.27 -2.27,-0.46 -3.37,0.27 -0.43,-1.05 -2.28,-0.44 -1.18,-0.61 -1.6,0 -1.61,-1.32 -2.28,-1.84 0.42,-1.06 -0.42,-0.7 -3.47,-1.67 0.42,-0.79 -0.59,-1.5 -0.59,0.18 -0.84,3.44 -1.43,-1.5 -0.35,-1.93 -1.85,0.62 -0.17,-1.06 -1.27,-0.17 0.42,-2.12 -1.6,-0.44 0,-1.05 0.42,-1.68 -0.85,-0.88 -1.44,-3.17 -1.01,0.27 -1.19,-2.11 -1.43,-0.44 3.03,-1.68 4.22,-0.27 1.01,-3.35 2.7,-1.06 2.19,-1.68 1.43,0.79 0.76,-2.12 2.45,1.76 0.42,1.05 1.44,0 0.59,-0.7 -0.43,-1.41 0,-1.33 -1.02,-4.84 1.85,-2.56 0.17,-3.35 2.02,-2.56 -0.43,-1.23 0.68,-1.06 -0.26,-1.77 -1.44,-1.23 -0.59,-3.61 -1.17,-1.04 0.57,-1.08 -0.59,-1.67 0.76,-0.62 0.67,-2.38 -0.26,-2.47 -0.76,0.79 -1.68,-0.61 -0.77,-2.29 0.16,-2.38 -1.43,0.62 -0.76,-0.62 -0.01,-3.97 -1.43,-2.38 -5.24,-5.02 -0.44,-11.29 z',\n \t\t'code'\t\t\t=> 'DO-05', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Distrito Nacional', \n\t\t\t\t'define'\t\t=> 'm 435.60609,341.41093 0.17,-2.24 2.37,-2.49 -0.13,-5.53 -1.32,-1.8 -5.01,-3.59 -1.32,-2.35 2.77,-1.52 0,-2.49 1.19,-2.76 1.72,-1.24 2.37,0.97 1.19,1.8 0.66,2.9 2.24,1.11 2.37,3.18 3.3,-1.38 7.65,-1.52 3.17,2.07 0,1.8 -1.85,3.46 0.3,2.37 0,0 -1.79,-0.25 -2.21,1.63 -4.24,1.57 -2.21,3.01 -2.45,1.25 -6.75,2.07 -2.19,0 z',\n \t\t'code'\t\t\t=> 'DO-01',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Duarte',\n\t\t\t\t'define'\t\t=> 'm 385.24609,99.07093 1.92,2.32 3.46,0.79 1.16,1.16 1.53,0.01 1.16,0.78 0,1.15 0.77,0.78 2.69,-0.37 1.92,1.16 3.08,10.03 -1.16,7.69 1.54,1.16 1.15,4.24 4.23,8.49 1.54,0.77 6.92,-0.34 5.77,1.18 1.54,1.17 -0.77,4.22 0.38,2.7 2.31,2.32 10,1.98 8.08,3.5 13.07,3.54 1.54,0.78 1.54,1.93 5,3.1 6.15,1.57 5.77,0.03 0,0 2.31,-4.21 1.54,-0.76 3.85,0.02 2.69,1.55 4.23,0.41 3.46,-0.75 1.93,2.32 4.61,-0.74 1.93,0.78 -0.39,1.53 -1.54,-0.01 -1.92,2.3 -1.16,4.6 -1.54,-0.01 -0.38,1.54 -1.54,-0.01 -0.77,-0.77 -0.77,1.53 -1.92,0.37 0.77,1.54 -0.77,0.77 -3.47,2.28 -2.3,-0.01 0,2.31 2.3,2.7 1.54,4.62 -5,-0.03 -1.16,1.14 0,0 -2.69,-1.16 -3.85,-0.41 -1.15,0 -3.46,1.9 -6.54,-0.81 -4.23,1.9 -4.62,-1.57 0,10.37 -1.54,1.15 -7.31,-0.43 0,0 0.77,-6.14 2.31,-5.36 -0.38,-0.77 -2.7,-1.17 -3.84,-0.41 -2.69,-2.32 -4.62,-2.33 -1.92,-0.01 -2.7,2.68 -1.15,-0.01 -2.69,-1.94 -8.85,-2.35 -2.69,-2.32 -0.77,-0.01 -0.38,-1.15 -2.7,-0.02 -1.15,-2.31 -1.15,1.15 -2.7,0.75 -1.15,-0.77 0,-0.77 -2.69,-0.4 -0.77,1.53 -1.16,-0.39 -0.38,1.54 -1.16,-0.4 0.39,-2.3 -0.39,-0.77 -1.15,1.15 -1.15,-0.39 -1.93,3.44 0,-2.69 -0.77,0.77 -0.77,-0.77 -1.15,0.76 -1.54,-0.01 0.77,-2.69 -1.54,-0.39 -1.54,0.76 -2.69,3.06 -1.15,-1.54 -0.77,0.76 -0.39,1.92 -3.84,-1.18 -1.16,-1.92 -2.3,0.75 -0.77,-1.92 -0.77,0.76 -0.77,-0.77 -1.54,0.76 -1.54,-0.78 -1.54,0.38 -1.15,0.76 0,0.77 0.77,-0.38 -0.01,1.15 0,0 -1.53,-0.01 -1.54,-3.08 -3.08,-2.33 -2.69,-0.78 -3.84,-4.63 -1.93,-1.16 -2.3,-3.09 -0.77,-2.7 0,0 -0.77,-3.08 -1.15,-1.54 0,-3.08 1.15,-2.68 2.31,-1.53 1.54,-2.3 0,-3.84 1.93,-4.22 -0.39,-2.7 2.31,-6.52 1.16,-6.92 6.16,-4.59 1.54,-0.76 1.92,0.01 2.31,-2.29 4.62,-1.52 0,-1.15 -3.08,-1.17 -0.77,-1.93 1.15,-2.31 3.85,-1.9 1.54,0.01 1.54,-1.15 0.39,-3.07 -0.77,-1.55 -1.16,-0.39 0,0 z',\n \t\t'code'\t\t\t=> 'DO-06', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Elías Piña',\n\t\t\t\t'define'\t\t=> 'm 111.34609,144.08093 1.92,0.79 1.92,-0.38 5,2.34 2.69,3.86 0.39,4.61 8.07,6.2 2.31,0.01 4.61,3.49 5,1.56 2.7,1.94 0,0 -0.39,0 0,0 -1.15,1.53 0,0 -1.16,10.37 0.77,2.69 -1.16,1.53 -2.69,1.52 -4.62,-0.02 -3.08,2.67 -1.53,-0.01 -0.39,-1.54 -2.69,-0.01 -3.84,-3.87 -7.31,-1.19 -2.31,0.75 -3.85,5.75 0.38,4.61 -2.69,4.2 -3.08,7.67 -0.39,4.99 -0.77,0.76 -2.31,0.37 -7.309996,-1.96 -1.92,0.37 -2.31,1.91 -8.08,9.93 0,1.15 0.77,0.78 1.54,0.39 -0.39,3.83 -3.46,5.74 -0.39,4.6 0.77,0.01 2.31,-2.29 0.77,0.38 -0.39,8.06 1.15,4.22 -1.54,1.91 -0.76,2.68 -1.16,0.76 3.08,1.94 0,1.53 1.53,1.93 3.08,1.55 1.54,0 0.38,1.16 2.7,1.55 0.38,1.91 -1.16,2.3 -1.15,0.76 -0.38,1.53 0.76,1.54 1.16,0.77 1.53,3.46 2.31,1.16 3.849996,-0.36 1.92,1.16 1.54,3.84 0,1.53 -1.54,5.74 -1.54,1.91 0,0 -1.539996,-0.78 -10.77,-1.59 -4.23,-1.94 -12.31,0.31 -18.85,-3.93 -8.71,-0.05 0,0 -0.35,-0.63 1.43,-1.49 1.77,0.7 0.84,-0.71 0.42,-3.16 9.87,-3.79 3.26,-18.53 0.32,-6.5 -1.18,-1.93 0,-1.67 0.16,-5.89 -0.34,-0.44 -2.28,-0.26 0.25,-1.67 -0.68,-1.22 -4.65,-3.42 -1.6,-0.17 -3.22,-9.31 0.33,-1.41 -2.02,-0.88 -0.76,1.24 -3.89,-1.4 -0.42,-1.32 -2.79,-0.79 -1.26,1.24 -0.76,-1.67 -1.6,1.67 -1.02,0.62 -1.26,1.32 0,-0.7 -1.44,-1.23 0.01,3.6 -1.6,0.18 -1.44,-0.61 -1.01,1.67 -0.59,-0.17 -0.6,-3.78 1.02,0.61 1.18,-0.26 -0.18,-3.17 2.03,-0.79 -0.17,-1.5 1.01,-0.44 0.17,1.49 1.43,-0.17 -0.25,-1.06 1.01,-1.06 -0.17,-1.31 1.6,0.43 0.84,-2.11 1.44,0 0.16,-1.23 0.59,0.35 0.6,2.37 4.72,-1.06 0.17,-1.06 1.44,-0.44 0.59,1.23 -0.42,0.7 1.43,0.79 0.85,-0.18 0.16,-0.88 -1.01,-0.79 0.17,-1.49 1.26,-1.06 0.76,0.44 1.27,-0.71 -1.61,-1.05 2.61,-3.17 0.59,0 0.59,1.32 0.85,-0.27 -0.6,-1.67 3.04,-2.91 2.02,1.06 0.59,-1.77 2.2,-0.35 1.01,-1.32 1.43,-0.62 0,-0.62 -1.01,-0.26 1.01,-1.67 1.43,1.05 1.77,-1.67 -2.36,-0.88 0.16,-1.41 2.02,0 1.02,-0.71 -0.42,-1.84 -1.61,-0.88 0.42,-1.06 1.6,-1.05 2.87,1.49 1.01,-1.5 -0.67,-1.85 1.26,0 1.18,0 1.61,0.78 2.02,-1.23 1.85,-3.79 -1.86,-1.31 3.04,-1.24 -1.61,-1.5 0.85,-0.17 0.17,-0.71 -0.18,-1.05 -0.84,-0.35 0.25,-1.06 2.2,0.35 0.59,-0.62 -3.04,-1.67 0.59,-0.88 1.43,0.44 0.59,-0.79 1.43,0.17 0.43,-1.06 -2.62,-1.49 0.16,-2.11 2.28,-1.06 0.59,0.88 0.59,-0.88 -1.44,-1.06 -1.78,-2.9 0.39,-0.59 2.31,-3.06 2.69,-1.91 2.69,0.79 0.77,-0.77 0.77,-5.76 1.93,-1.91 4.23,2.33 3.08,-0.75 2.689996,0.78 1.15,1.54 2.69,0.4 2.7,-4.21 2.69,-1.52 z',\n \t\t'code'\t\t\t=> 'DO-07', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'El Seibo',\n\t\t\t\t'define'\t\t=> 'm 616.04609,201.84093 1.79,0.57 4,6.72 3.47,0.19 0.78,2.64 2.03,1 0.6,-0.38 2.03,2.2 1.14,-0.25 1.2,0.75 4.48,-0.75 3.65,0.56 2.99,-0.69 1.56,-1.26 0.36,-1.44 -2.51,-2.51 0.06,-0.82 2.27,-1 1.49,1.19 2.33,0.06 1.26,-0.69 0.48,-1.07 -0.36,-0.75 2.15,-1.44 3.29,1.19 1.25,-1.26 1.38,0 2.75,1.01 2.81,0.19 11.24,7.85 1.73,-0.06 1.2,-1.07 3.17,0.32 4.78,3.27 1.67,-0.44 2.86,0.82 0,0 0,3.87 -1.92,-0.78 0.38,2.69 -0.77,0.76 -1.92,-0.78 -1.15,2.3 -3.08,0.37 -0.77,1.53 0.38,4.61 -1.54,0.38 -2.69,2.29 0,1.15 1.92,3.08 5.38,12.3 0.38,7.29 -0.77,2.68 -2.69,1.52 -3.08,4.2 -3.85,2.28 -3.46,6.5 -1.92,0.37 -3.46,-1.17 -5.38,0.35 -0.77,0.76 -0.77,2.68 0.38,3.45 -1.54,1.52 0.39,1.92 1.54,1.54 0,1.15 0,0 -3.85,-0.02 -2.69,-1.55 -0.77,0.38 -2.69,5.73 -1.54,1.91 -2.69,6.88 -3.46,4.58 -6.54,4.94 -0.77,2.68 -4.23,4.19 -4.62,1.51 0,0 1.16,-9.18 1.92,-0.75 -0.77,-1.53 -6.15,-0.04 -2.31,1.52 -2.31,0.37 -5.77,-3.09 -1.92,-4.61 -6.15,-4.25 -3.46,-1.17 -2.31,1.14 -2.31,-0.01 -1.15,-2.69 -3.07,-1.17 0,0 0.39,-3.83 1.15,0.01 1.15,-1.14 0.77,0 0.77,-1.14 0.77,-3.06 0,-4.6 2.31,-6.88 -0.38,-3.83 1.15,-2.68 0,-2.3 -1.92,-4.23 -6.53,-8.09 -1.92,-1.54 -5.38,-1.56 -1.15,-3.84 -1.92,-0.39 -1.54,-1.16 -2.69,-6.54 -2.31,-2.31 0,-2.3 1.15,-1.91 0.77,-7.67 1.92,-0.37 3.85,1.94 6.54,4.64 1.92,0.4 3.08,1.94 10.77,1.98 1.54,-0.37 1.16,-1.91 -0.38,-2.69 -3.85,-4.24 -4.23,-2.71 -3.08,-5.39 -0.38,-4.22 3.08,-0.75 2.3,-2.35 0,0 1.43,0.62 0,1.19 0.6,0.38 0.84,-0.69 1.91,0.25 1.32,-1.63 0.06,1.19 2.09,0.13 1.49,0.25 0.84,-0.75 1.91,0 0.36,1.19 0.78,0.13 -0.54,1.63 1.79,0.63 1.61,-2.45 -0.24,-5.47 -1.38,-1.82 -2.57,0.63 1.25,-1.19 1.42,-0.36 z',\n \t\t'code'\t\t\t=> 'DO-08', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Espaillat',\n\t\t\t\t'define'\t\t=> 'm 351.47609,49.63093 0,0.89 3.23,3.97 9.68,7.89 3.53,2.02 5.68,1.95 8.9,0.26 2.33,1.26 6.04,1.64 1.37,-0.13 2.39,1.64 1.62,-0.38 3.76,0.51 11.42,-2.35 0,0 0.37,1.53 -0.77,2.31 0,3.85 -0.77,3.08 -1.16,1.15 -5.38,2.28 -3.47,3.06 -2.69,0.37 -2.69,1.53 -1.16,-0.78 -4.61,0.36 -1.54,-0.78 -1.15,0.76 0.76,5.79 -1.92,5.76 0,0 -4.62,-0.41 0,0 -2.69,-2.33 -2.69,-3.86 -0.77,-2.7 1.15,-1.54 -0.38,-1.16 -1.15,-1.16 -2.7,-0.78 -2.3,-0.02 -1.93,1.15 -2.69,0.37 -1.92,2.68 -2.31,0.76 -0.77,0.77 -2.7,8.07 -1.92,0.76 -2.31,-0.78 -1.15,-1.55 -0.39,-4.62 -0.77,-0.78 -4.23,-0.79 -1.92,-1.17 -1.92,-2.71 -0.77,0 -5,11.52 0.38,5.4 -1.93,3.07 0,3.08 0.77,1.92 2.31,2.71 0,2.7 -2.7,5.75 -2.69,11.15 -1.54,3.07 -0.01,1.92 0,0 -1.15,0.37 -0.39,2.31 -0.76,0.76 -5.01,-0.02 -0.76,-1.16 0,-6.92 -3.46,-6.56 -0.77,-0.01 -1.54,1.53 -1.54,2.69 -3.46,0.36 -10.39,-1.21 -1.15,-1.16 -0.39,-1.93 -0.77,-0.39 0,0 0.78,-1.92 1.54,-1.53 1.92,0.01 1.54,1.55 0.77,-0.38 0,-1.15 -1.16,-1.16 -1.15,-3.47 -0.38,-3.85 0,-1.54 2.69,-4.61 -0.38,-5.77 1.16,-1.54 3.07,-0.75 3.85,-3.06 0,-4.62 0,0 1.16,-1.53 1.15,-0.38 0.77,-8.86 3.47,-4.22 0,-1.92 -1.16,-1.93 0,-1.16 1.54,-2.69 0.01,-1.93 -0.77,-0.39 0,-1.15 2.3,-0.76 -0.76,-0.77 0.38,-1.16 1.92,-1.91 1.16,0.77 0.77,-0.38 1.15,1.16 1.16,-1.15 2.69,0.02 0,0.77 0.77,0.39 0.38,-2.7 3.47,0.41 1.54,-1.15 0.76,0.01 1.54,3.09 1.54,0.01 1.16,-1.92 1.53,1.55 0.39,-1.93 0.77,0.01 0.77,1.93 1.53,-0.38 -0.38,-1.16 -1.15,0 0,-1.16 5,-0.74 0.38,-0.77 0,-1.93 -1.53,-3.48 2.31,-5.31 0,0 z',\n \t\t'code'\t\t\t=> 'DO-09', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Hato Mayor',\n\t\t\t\t'define'\t\t=> 'm 600.99609,207.88093 -2.3,2.35 -3.08,0.75 0.38,4.22 3.08,5.39 4.23,2.71 3.85,4.24 0.38,2.69 -1.15,1.91 -1.54,0.38 -10.77,-1.98 -3.08,-1.94 -1.92,-0.39 -6.54,-4.64 -3.85,-1.94 -1.92,0.37 -0.77,7.67 -1.15,1.91 0,2.3 2.31,2.31 2.69,6.54 1.54,1.16 1.92,0.4 1.15,3.84 5.38,1.56 1.92,1.55 6.54,8.09 1.92,4.23 0,2.3 -1.15,2.68 0.38,3.84 -2.31,6.89 0,4.6 -0.77,3.06 -0.77,1.15 -0.77,0 -1.15,1.14 -1.15,-0.01 -0.39,3.83 0,0 -1.93,2.67 -2.31,1.14 -5,0.36 -0.77,1.53 0,3.06 -1.15,1.53 0,4.21 0.77,1.15 -2.31,-0.01 -0.39,2.3 -3.85,2.28 -3.08,3.05 -1.54,3.44 -4.23,-6.91 -0.38,-2.3 -1.92,-3.46 -0.77,-4.22 -3.46,-2.32 -1.54,-3.46 -0.38,-3.07 -2.31,-2.69 -1.15,-3.07 -2.31,-1.16 -0.38,-1.53 2.7,-3.43 -1.54,-2.31 0,-6.13 -2.31,-4.23 0,-2.3 -1.15,-1.16 -2.31,-0.4 -0.77,-1.92 0.77,-6.13 0.77,-1.15 0,0 1.54,-1.14 0.39,-2.68 1.54,-0.37 3.47,-4.58 4.23,-1.13 1.54,-3.83 3.08,-0.37 1.54,-2.68 0,-2.3 -1.54,-1.16 -2.31,-0.01 -6.15,1.12 -3.85,-2.71 -5.77,-1.95 -4.23,-3.09 -3.85,-1.17 -3.84,-3.09 -2.31,-0.4 -1.92,-1.16 -1.15,-1.92 -1.54,-1.16 -5.38,-2.33 -3.84,-3.48 -2.31,-1.16 -3.85,-0.79 -1.92,-3.08 0,0 2.31,-5.36 2.75,-11.07 0,0 2.45,0.5 5.02,-1.26 0.42,-0.75 1.73,0.19 1.02,-1.07 1.55,1.32 1.55,-0.06 0.42,0.94 2.69,0 4,-1.26 2.03,-0.25 1.44,-0.25 1.85,1.82 -0.06,1.01 5.14,-0.25 0.48,-0.63 1.25,1.13 0.78,1.01 0.72,0.38 2.51,-1.26 0.72,-4.71 -2.21,-0.56 -0.54,1.07 -1.08,-0.88 -0.48,1.13 -1.43,-0.26 -2.63,0.76 -0.06,-0.63 6.1,-1.7 3.17,0.44 4.6,-0.82 2.45,1.19 2.75,2.64 1.37,0.38 -0.42,1.13 0.72,0.75 -0.78,0.82 0.06,1.13 1.31,2.14 5.44,1.32 2.45,2.01 6.87,-1.19 1.61,1.76 0.96,0.06 0.42,1.32 3.53,0.88 3.94,3.39 6.69,-2.64 1.61,0 2.33,2.34 z',\n \t\t'code'\t\t\t=> 'DO-30',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime \n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Hermanas Mirabal',\n\t\t\t\t'define'\t\t=> 'm 330.98609,139.56093 0.01,-1.92 1.54,-3.07 2.69,-11.15 2.7,-5.75 0,-2.7 -2.31,-2.71 -0.77,-1.92 0,-3.08 1.93,-3.07 -0.38,-5.4 5,-11.52 0.77,0 1.92,2.71 1.92,1.17 4.23,0.79 0.77,0.78 0.39,4.62 1.15,1.55 2.31,0.78 1.92,-0.76 2.7,-8.07 0.77,-0.77 2.31,-0.76 1.92,-2.68 2.69,-0.37 1.93,-1.15 2.3,0.02 2.7,0.78 1.15,1.16 0.38,1.16 -1.15,1.54 0.77,2.7 2.69,3.86 2.69,2.33 0,0 1.16,0.39 0.77,1.55 -0.39,3.07 -1.54,1.15 -1.54,-0.01 -3.85,1.9 -1.15,2.31 0.77,1.93 3.08,1.17 0,1.15 -4.62,1.52 -2.31,2.29 -1.92,-0.01 -1.54,0.76 -6.16,4.59 -1.16,6.92 -2.31,6.52 0.39,2.7 -1.93,4.22 0,3.84 -1.54,2.3 -2.31,1.53 -1.15,2.68 0,3.08 1.15,1.54 0.77,3.08 0,0 -4.62,-0.41 -6.54,1.12 -2.69,-3.48 -1.15,-4.23 -2.31,-4.25 -3.08,-2.71 -1.15,-2.69 z',\n \t\t'code'\t\t\t=> 'DO-19', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Independencia',\n\t\t\t\t'define'\t\t=> 'm 44.876094,282.67093 8.71,0.05 18.85,3.93 12.31,-0.31 4.23,1.94 10.77,1.59 1.539996,0.78 0,0 0,0 0,0 0,0 0,0 -1.539996,1.14 -5,1.5 -6.93,0.73 -1.54,0.76 0,6.51 -5,10.31 -0.77,3.05 0.76,8.05 1.93,3.07 24.229996,12 4.23,1.17 4.61,0.41 6.16,3.09 0.76,1.54 2.31,0.78 7.31,6.16 1.92,0.01 3.08,-2.66 8.46,-4.16 1.16,-1.53 4.23,0.03 0.77,0.39 2.31,3.83 3.46,2.32 0.77,1.91 -0.39,1.92 1.92,1.92 0.39,3.44 3.07,3.46 1.93,0.39 3.46,-1.12 3.84,0.02 0,0 -0.77,3.05 -1.92,1.52 -1.54,3.43 -1.92,1.9 -9.24,2.63 -5,-0.03 -8.85,-1.96 -6.15,-4.62 -5.77,7.61 0,1.53 5.77,11.11 3.07,10.34 -0.77,0.75 -2.31,-0.77 -3.46,0.36 -3.08,-1.54 -3.07,0.74 -1.93,2.67 0,4.96 -0.64,1.89 0,0 -3.5,-2.41 -4.07,-4.52 -8.14,-7.19 -8.39,-0.79 -4.599996,-1.33 -4.89,-3.03 -5.26,-1.5 -3.82,0 -2.79,-1.59 -2.29,-2.67 -5.46,-3.9 -2.69,-3.46 -2.16,-0.01 -1.39,-1.14 -4.57,-1.61 0,0 6.78,-11.4 -21.7,-8.63 -1.86,-3.15 -5.66,-1.22 -3.05,-6.91 -7.1,-3.84 -6.08,-2.45 -2.03,-6.3 7.25,-1.33 -0.17,-2.89 -16.06,-17.07 -2.6299998,-5.87 -1.77,0 -2.29,-3.15 -3.04,0.44 -1.77000001,-1.66 2.36000001,-1.5 3.29,-1.06 3.45,-4.65 4.6499998,1.92 3.63,2.89 1.44,-0.44 1.76,-2.73 1.86,0 4.48,2.71 0.76,2.1 1.44,-0.17 1,-2.11 3.63,0.43 1.69,1.49 3.63,-1.06 2.62,0.61 1.85,-1.06 -0.68,-5.88 1.43,-1.93 z',\n \t\t'code'\t\t\t=> 'DO-10', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'La Altagracia',\n\t\t\t\t'define'\t\t=> 'm 696.60609,392.53093 1.2,1.19 7.41,2.06 4.42,2.81 4.18,0.13 -0.66,-0.69 0.3,-0.5 3.35,0.56 1.14,2 2.45,0.38 1.44,1.06 4.06,-0.56 1.61,0.69 3.23,-1.13 1.91,0.44 3.35,2.5 2.09,2.69 1.14,2.56 -0.12,2.69 -1.79,1.13 -0.66,-1.19 -1.08,0.25 -0.54,-1 -1.85,0 -4.42,-1.62 -5.68,-1 -2.21,1.31 -1.43,-0.25 -2.81,0.81 -1.49,1.63 -1.61,0.13 -14.52,-5.06 0.54,-0.81 -0.42,-1.19 -3.52,-4.31 -2.63,-1.94 0.36,-3.63 1.38,-1.38 1.88,-0.76 z m -5.14,-176.05 2.33,1.19 1.26,-0.13 3.11,2.64 3.05,0.56 6.99,4.84 0.78,1.13 2.39,1 2.87,3.77 7.59,6.53 0.6,1.57 5.32,5.78 0.36,1.32 2.87,1.57 1.02,2.13 3.41,2.01 8.37,8.79 2.81,1.95 1.08,-0.06 0.66,-1.51 1.5,0.88 -0.24,0.75 0.78,1 6.99,6.21 2.15,1.13 2.21,0.25 2.21,2.89 2.69,2.26 0.06,1.13 1.02,1.38 4.12,2.19 1.61,3.07 2.99,2.51 2.03,1.32 0.84,0 0.96,-1.13 4,3.39 3.65,1.76 4,5.45 -0.78,1.32 1.32,0.82 -0.36,2.76 -1.37,0.13 1.2,1.69 -1.61,4.2 -1.61,1.88 -1.85,3.76 -2.99,3.51 -0.36,2.01 -0.9,0.63 -2.45,4.39 -2.63,0.69 0.06,2.32 -2.03,3.7 0,1.13 -3.35,2.76 -1.25,0.25 -1.49,2.51 -3.11,2.88 -1.07,3.76 -0.3,10.83 -3.11,3.82 -5.32,1.69 -14.7,-4.69 -1.79,-1.56 -1.67,-0.31 -2.39,-1.5 -2.03,-1.81 -3.64,1.75 -0.78,1.31 -0.12,2.13 2.75,3.44 0.3,2.32 -3.05,6.76 -2.51,2.57 -1.2,2.56 -0.95,4.76 -0.96,0.63 0.12,5.82 0.12,0.69 0.12,2.5 -0.54,1.38 -3.88,-1.75 -0.72,0.5 -3.17,-0.06 -2.33,1.31 -3.52,0.06 -2.87,-0.94 -0.84,1.06 -1.19,-0.19 -1.02,1.25 -1.02,0.19 -0.51,-0.31 0.34,-0.89 1.13,0.2 0.78,-2.06 -1.91,-1.38 -1.19,0.06 -0.9,1.13 0.36,1.44 1.25,0.31 -0.2,0.5 -2.66,1.19 0.78,-1.88 -0.84,-4.94 -2.51,-3.19 -3.52,-8.57 -4,-5.44 -2.69,-6.07 -4.84,-3.57 -1.55,-2.88 0.66,-1.31 -0.66,-0.81 -12.66,-5.94 0,0 0.63,-1.98 1.54,-1.9 0.39,-8.03 2.31,-1.14 -0.38,-1.53 1.54,-1.9 0.39,-1.91 1.54,-1.52 3.46,-6.87 -0.77,-0.77 0,-8.04 -5.77,-3.86 -4.23,-6.92 -1.92,-0.78 -0.38,-5.36 -0.77,-1.15 -1.92,-0.39 0,-2.3 -2.31,-1.54 -0.38,-1.92 0,0 0,-1.15 -1.54,-1.54 -0.38,-1.92 1.54,-1.52 -0.38,-3.45 0.77,-2.68 0.77,-0.76 5.38,-0.35 3.46,1.17 1.92,-0.37 3.47,-6.5 3.85,-2.28 3.08,-4.2 2.69,-1.52 0.77,-2.68 -0.38,-7.29 -5.38,-12.3 -1.92,-3.08 0,-1.15 2.7,-2.29 1.54,-0.37 -0.38,-4.61 0.77,-1.53 3.08,-0.37 1.15,-2.3 1.92,0.78 0.77,-0.76 -0.38,-2.69 1.92,0.78 0,-3.87 0,0 -0.04,0 z',\n \t\t'code'\t\t\t=> 'DO-11', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'La Romana',\n\t\t\t\t'define'\t\t=> 'm 644.19609,352.18093 3.17,3.69 0.9,2.82 0.24,0.94 -0.48,1.25 -4.78,-1.56 -2.09,-1.63 0,-0.81 1.02,0.19 0.72,-4.69 1.3,-0.2 z m -17.46,-33.69 4.62,-1.5 4.23,-4.19 0.77,-2.68 6.54,-4.94 3.46,-4.58 2.69,-6.88 1.54,-1.91 2.7,-5.73 0.77,-0.38 2.69,1.55 3.85,0.02 0,0 0.38,1.92 2.31,1.55 0,2.3 1.92,0.39 0.77,1.15 0.38,5.36 1.93,0.78 4.23,6.92 5.77,3.86 0,8.04 0.77,0.77 -3.46,6.87 -1.54,1.52 -0.39,1.91 -1.54,1.91 0.38,1.53 -2.31,1.14 -0.39,8.03 -1.54,1.9 -0.63,1.98 0,0 -2.1,-0.06 -4.24,-0.88 -2.03,-1.13 -1.31,0.81 -0.78,-1.57 -1.61,-0.37 -3.11,1.31 -0.36,1.25 -0.9,0.63 -4.3,-0.31 -3.7,1.44 -9.74,0.88 -4.79,-0.25 0,0 -1.54,-3.96 0.77,-2.67 -1.15,-1.92 0,-1.15 -3.46,-4.99 -1.15,-0.77 -1.54,-3.07 0,-1.91 1.54,-3.05 3.46,-3.43 1.14,-3.44 z',\n \t\t'code'\t\t\t=> 'D0-12', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'La Vega',\n\t\t\t\t'define'\t\t=> 'm 299.44609,128.22093 0.77,0.39 0.39,1.93 1.15,1.16 10.39,1.21 3.46,-0.36 1.54,-2.69 1.54,-1.53 0.77,0.01 3.46,6.56 0,6.92 0.76,1.16 5.01,0.02 0.76,-0.76 0.39,-2.31 1.15,-0.37 0,0 0.77,4.62 1.15,2.69 3.08,2.71 2.31,4.25 1.15,4.23 2.69,3.48 6.54,-1.12 4.62,0.41 0,0 0.77,2.7 2.3,3.09 1.93,1.16 3.84,4.63 2.69,0.78 3.08,2.33 1.54,3.08 1.53,0.01 0,0 1.16,0.39 -0.39,1.15 -0.77,0.38 -1.15,-1.16 -0.77,0 -1.15,3.45 -2.31,1.14 -4.62,0.36 -0.38,-0.77 -2.31,-0.02 -3.46,4.59 -1.54,-0.01 -3.08,1.52 -1.54,1.91 -1.54,3.84 0,0 0,-5 -2.69,-1.93 -6.15,-1.96 -3.08,1.91 -0.39,3.45 -3.85,3.05 -3.07,-1.55 -5.78,0.73 -2.69,1.52 -1.92,2.68 0,2.69 1.15,1.54 0.39,3.46 1.92,6.15 -0.01,5.76 -2.69,1.52 -1.54,-0.01 -1.54,1.15 -0.77,2.68 -3.85,3.43 -1.54,2.29 -6.15,3.42 -2.7,5.74 0.39,2.3 2.3,1.17 2.31,3.08 3.08,2.32 2.3,5.76 5,4.63 1.16,2.31 0,0 0,0 0,0 -1.16,1.53 0,1.15 1.15,5.37 -3.08,1.13 -1.15,1.15 -1.54,2.67 0.77,2.3 -0.39,1.15 -4.23,-0.02 -2.31,1.13 -1.92,1.91 0,4.6 -1.93,0.75 -3.84,-0.02 -1.54,-1.16 -3.46,-0.4 -6.16,1.5 -5,0.35 0,0 -0.41,-0.41 2.7,-2.18 0.79,-4.94 0,-6.57 -1.31,-3.98 -4.83,-4.11 -4.3,-0.52 -1.48,-1.1 -4.23,0.36 -5.79,-8.47 -2.35,-2.47 -4.04,-1.92 -1.27,-2.1 0.38,-3.14 -3.46,-4.23 -0.38,-9.6 1.15,-1.14 1.54,0.01 0,-1.92 -2.3,-3.09 -1.54,-0.77 -0.39,-3.46 1.55,-3.06 -3.47,-4.24 -1.54,-0.78 -1.92,0.76 -1.15,1.53 -3.08,1.13 0,0 -0.77,-3.07 -2.31,-3.85 -2.3,-1.55 0,0 1.54,-1.91 0,-1.54 -0.77,-3.46 -1.15,-1.93 0.38,-2.3 5.39,0.41 1.92,-1.52 1.15,-2.68 1.16,-0.76 3.46,0.4 3.08,-2.29 3.46,-0.75 1.16,-1.14 1.54,-4.6 3.46,0.02 4.23,-1.13 1.16,-1.15 0.77,0.01 0,-0.77 1.15,-0.76 2.31,-0.38 0.77,-1.14 2.3,-0.76 0.78,-4.99 1.54,-3.45 1.54,-1.53 1.15,0.39 1.15,3.08 2.69,0.4 1.54,1.16 1.93,-0.75 1.54,-1.92 0,-0.77 -1.54,-0.39 0.38,-2.69 -1.53,-1.16 1.54,-2.68 -0.77,-2.31 1.15,-1.53 -0.77,-0.39 -0.38,-1.93 1.15,-1.91 -1.53,-1.16 -5,-1.57 -8.47,-3.89 -0.77,-1.16 3.08,0.02 0,-1.16 -2.31,-1.17 -0.76,-3.08 3.07,0.02 0.77,-1.53 1.54,0.01 1.93,-1.53 5.38,0.41 0.77,-1.15 0,-1.92 0.77,-0.76 6.93,-1.89 4.23,-2.67 z',\n \t\t'code'\t\t\t=> 'DO-13', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'María Trinidad Sánchez',\n\t\t\t\t'define'\t\t=> 'm 433.89609,56.76093 1.49,0.13 1.73,0.63 2.63,-0.19 1.97,1.45 1.32,-0.12 0.96,1.76 1.25,0.13 0.12,2.02 1.25,1.13 0.72,0.32 1.2,-0.88 1.43,1.7 3.11,0.63 3.05,6.31 0.48,2.77 -0.6,2.4 -1.8,2.77 -0.05,4.23 -2.1,3.91 1.68,3.91 1.73,2.08 2.57,0.81 1.79,1.77 -0.95,1.57 0,9.21 -0.72,1.44 0.78,3.22 2.45,5.73 3.16,4.91 0,3.21 1.98,2.9 4.72,3.78 0.24,2.01 1.73,1.2 0.12,1.32 1.73,2.39 5.16,4.91 0,0 0.4,3.09 3.46,3.1 -1.54,-0.01 -2.69,-1.55 -0.77,0.38 1.92,2.32 -0.38,1.15 -0.77,-0.01 -2.31,-1.93 -1.54,0.37 0.38,2.31 1.16,1.93 0,1.54 0.77,0 0.38,1.16 -0.77,0.38 0,1.54 -0.77,0.76 -1.54,-1.16 -1.15,0.38 -0.39,3.07 3.08,1.94 0.38,1.92 0,0 -5.77,-0.03 -6.15,-1.57 -5,-3.1 -1.54,-1.93 -1.54,-0.78 -13.07,-3.54 -8.08,-3.5 -10,-1.98 -2.31,-2.32 -0.38,-2.7 0.77,-4.22 -1.54,-1.17 -5.77,-1.18 -6.92,0.34 -1.54,-0.77 -4.23,-8.49 -1.15,-4.24 -1.54,-1.16 1.16,-7.69 -3.08,-10.03 -1.92,-1.16 -2.69,0.37 -0.77,-0.78 0,-1.15 -1.16,-0.78 -1.53,-0.01 -1.16,-1.16 -3.46,-0.79 -1.92,-2.32 0,0 1.92,-5.76 -0.76,-5.79 1.15,-0.76 1.54,0.78 4.61,-0.36 1.16,0.78 2.69,-1.53 2.69,-0.37 3.47,-3.06 5.38,-2.28 1.16,-1.15 0.77,-3.08 0,-3.85 0.77,-2.31 -0.37,-1.53 0,0 2.21,-1.63 1.49,-4.1 1.26,-1.51 2.8,-2.4 1.74,-0.06 1.67,-0.51 4.24,-1.26 0.9,0 0.66,0.82 4.12,-0.19 z',\n \t\t'code'\t\t\t=> 'DO-14', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Monseñor Nouel',\n\t\t\t\t'define'\t\t=> 'm 316.71609,259.67093 -1.16,-2.31 -5,-4.63 -2.3,-5.76 -3.08,-2.32 -2.31,-3.08 -2.3,-1.17 -0.39,-2.3 2.7,-5.74 6.15,-3.42 1.54,-2.29 3.85,-3.43 0.77,-2.68 1.54,-1.15 1.54,0.01 2.69,-1.52 0.01,-5.76 -1.92,-6.15 -0.39,-3.46 -1.15,-1.54 0,-2.69 1.92,-2.68 2.69,-1.52 5.78,-0.73 3.07,1.55 3.85,-3.05 0.39,-3.45 3.08,-1.91 6.15,1.96 2.69,1.93 0,5 0,0 0.77,3.46 4.23,4.63 -0.77,6.14 0.38,3.07 0.77,0.77 4.23,0.79 2.69,1.17 0.77,1.16 0,3.45 6.15,4.64 -0.42,0.38 2.8,2.55 4.36,2.36 3.01,3.57 3.27,2.5 3.02,4.51 0.98,4.04 0,0 -2.02,1.66 -2.31,0.75 -0.77,1.15 0,6.52 -0.77,1.91 0,0 -1.93,1.52 -4.62,1.51 -2.69,1.9 -1.92,2.29 -0.39,1.92 1.15,1.54 0.39,2.68 -0.39,1.15 -3.08,2.66 -0.76,1.92 -2.31,1.9 -1.16,-0.01 -3.56,-2.56 0,0 -2.97,-0.92 -1.93,-1.16 -2.31,-2.7 -3.46,-1.55 -5.77,1.88 -4.23,-0.4 -1.15,1.14 -1.16,-0.01 -3.84,-3.85 -5,-1.95 -3.08,-4.23 -1.92,-1.16 z',\n \t\t'code'\t\t\t=> 'DO-28', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Monte Cristi',\n\t\t\t\t'define'\t\t=> 'm 100.71609,4.8209298 0.78,0.62 7.17,1.1399999 2.57,-1.0099999 8.19,3.5399999 2.69,2.5300003 4.59,1.38 4.5,2.85 1.38,-0.13 2.39,1.52 7.83,1.64 5.08,0.76 0.55,-0.57 3.4,0.13 0.6,0.82 1.44,-0.01 0.12,1.08 1.86,0.64 1.85,1.13 4.9,0.89 1.99,-1.02 4.03,-0.69 0,0 1.29,0.65 0.37,1.14 -0.77,1.55 0,1.93 1.15,2.29 0.38,4.66 6.16,3.12 7.31,1.97 3.09,1.96 0,0 -2.32,9.61 -1.92,1.9 0,3.49 -0.77,1.15 0,1.55 1.92,4.63 0,6.18 -0.77,0 -0.77,-1.17 -1.14,1.17 -3.47,-0.81 -0.77,2.31 2.69,6.16 0.38,5.03 -0.77,1.54 0,1.93 -1.53,1.14 -1.55,3.08 0,0 -6.15,-2.35 -1.92,3.84 -2.31,0.37 -3.08,-2.71 -4.61,-0.01 -4.62,-4.67 -1.14,0.37 -1.55,2.31 -2.31,-0.4 -1.54,1.92 -5.38,2.67 -2.31,-0.01 -1.54,-1.16 -1.54,-0.01 -1.15,1.92 -0.77,0 0,-1.93 -5,-3.88 0.39,-1.92 -1.92,0.37 0.4,3.06 -1.17,0.4 0,0 -3.46,-1.94 -3.08,-0.79 -2.69,-3.48 -3.46,-1.17 -1.92,-1.17 -1.15,-1.55 -2.69,-0.79 -1.15,-1.55 0.39,-1.54 -1.15,-3.09 -5.38,-0.42 -2.309996,0.76 -1.54,1.53 -5.37,-0.41 -5.39,1.12 -7.69,-0.04 -12.31,-5.08 -3.85,0.36 -0.77,-1.16 -2.31,-0.4 -1.91,-2.3 0,0 0.79,-0.82 -0.63,-3.62 -2.41,-1.05 -1.35,-2.12 -0.84,-0.18 0.59,-2.12 -1.18,-0.44 -0.42,-1.06 0.18,-1.26 5.46,-1.2 1.79,-3.22 -0.11,-1.83 -1.03,-0.69 -0.18,-2.15 -1.19,0.76 -1.97,-4.04 -1.49,-2.72 1.26,-0.63 -0.54,-3.28 -1.43,-0.06 -0.42,1.58 -0.96,0.44 -0.23,0.95 -2.28,0.94 0,1.07 0.66,0.32 -0.4,0.89 -1.27,-0.64 0.66,-2.46 -0.24,-1.83 6.64,-5.87 0.48,-1.7 5.74,-1.07 5.44,-2.78 0.3,-2.08 3.11,-0.76 3.47,-2.9 1.14,-1.64 0.42,-1.98 -1.55,-5.4800002 1.14,0.24 0.06,-1.03 1.8,0.25 1.19,1.01 0.48,2.2100002 1.79,0.88 2.56,-1.77 -0.23,-2.0100002 0.78,-0.88 2.45,-0.5 0.78,0.57 1.91,-1.46 2.26,-0.76 3.96,0.89 5.369996,-1.38 z',\n \t\t'code'\t\t\t=> 'DO-15', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Monte Plata',\n\t\t\t\t'define'\t\t=> 'm 484.06609,191.92093 0.77,0.01 1.54,1.93 1.92,1.16 1.16,0.01 1.92,1.16 4.61,4.25 2.31,3.47 9.23,3.51 1.93,2.31 0,0 1.92,3.08 3.84,0.79 2.31,1.17 3.85,3.47 5.38,2.34 1.54,1.16 1.15,1.92 1.93,1.16 2.3,0.4 3.85,3.09 3.84,1.17 4.23,3.1 5.77,1.95 3.85,2.7 6.16,-1.11 2.3,0.01 1.54,1.16 0,2.3 -1.54,2.68 -3.08,0.37 -1.54,3.82 -4.23,1.13 -3.46,4.58 -1.54,0.38 -0.39,2.68 -1.54,1.14 0,0 -0.38,-1.54 -1.92,-1.16 -1.16,0 -0.77,0.37 -3.08,4.97 -1.15,0.38 -2.31,4.59 -5,6.48 -3.86,12.63 -2.69,4.96 -2.68,3.17 0,0 -9.06,-3.26 -3.86,0 -1.55,3.25 -5.15,1.08 -2.06,1.35 -4.16,-0.33 -4.56,1.45 -2.31,-0.78 -4.62,3.42 0,1.92 -1.92,4.2 -3.08,1.52 -0.77,1.52 -3.08,1.9 -1.15,-3.07 0.38,-3.44 -1.15,-1.16 -0.77,-3.07 -3.85,-0.02 -0.76,-1.15 -0.39,-5.75 0.77,0.01 0,-0.77 -0.77,-0.77 -1.53,-0.01 -1.16,1.53 -0.77,-0.39 -0.77,-2.31 -3.07,-3.84 -0.39,-2.69 -1.53,-1.54 0,-1.15 -2.7,0.75 -2.69,-0.39 -4.23,2.65 -1.54,-0.01 -1.92,-1.54 -2.7,-0.01 -1.54,-1.16 -2.69,-0.78 -0.38,1.14 0.77,0.78 -0.01,2.29 -1.53,1.91 -2.7,0.37 -2.3,3.05 -1.93,-0.01 -1.15,-0.77 -3.85,-0.03 -2.31,1.91 -1.54,0.37 -5,-4.62 -3.07,-0.02 -2.7,0.75 -4.23,-0.79 -1.15,-0.77 -3.07,-6.15 -3.47,-4.62 -0.38,-1.53 -2.31,-0.4 -1.92,1.14 0,0 -1.16,-1.92 -4.22,-3.86 -5.01,-0.8 -1.15,-1.15 -0.77,-2.31 -5.76,-5.78 0,0 0.77,-1.91 0,-6.52 0.77,-1.15 2.31,-0.75 2.02,-1.66 0,0 1.05,-1.39 3.85,-1.9 4.62,0.79 5.77,-0.73 4.23,0.79 0.77,-0.76 0.77,-3.07 1.54,-1.52 4.23,0.02 4.23,-2.66 1.54,0.01 1.54,2.31 2.31,-0.37 1.92,0.78 1.15,-1.15 1.16,-3.44 1.15,-0.76 2.7,1.16 3.46,3.09 2.3,1.16 3.85,0.41 2.31,-2.29 1.54,-3.83 1.92,-1.91 3.47,-8.42 0.39,-5.75 -1.54,-1.16 -0.77,-3.46 3.85,-7.66 0,0 7.31,0.43 1.54,-1.15 0,-10.37 4.62,1.57 4.23,-1.9 6.54,0.81 3.46,-1.9 1.15,0 3.85,0.41 z',\n \t\t'code'\t\t\t=> 'DO-29', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Pedernales',\n\t\t\t\t'define'\t\t=> 'm 78.246094,553.84093 1.2,0.75 0.18,1.25 -1.79,0.31 -0.6,-0.81 -0.24,-1.12 1.25,-0.38 z m 26.119996,-30.96 1.25,1.43 2.57,0.19 1.32,0.94 1.49,3.8 1.44,1.43 2.99,0 -1.31,1.31 -0.24,1.56 -4.66,3.99 -6.45,2.43 -3.699996,0.31 -0.96,-0.5 -0.84,-2.37 1.37,-3.92 1.609996,-2.24 0.42,-3.12 2.15,-1.31 1.55,-3.93 z m -42.779996,-151.37 4.57,1.61 1.39,1.14 2.17,0.01 2.69,3.46 5.45,3.91 2.29,2.66 2.8,1.6 3.82,0 5.26,1.5 4.89,3.03 4.599996,1.33 8.39,0.8 8.14,7.18 4.07,4.52 3.51,2.42 0,0 4.63,0.51 4.07,2.66 1.78,1.6 0.25,1.06 -1.52,1.86 -4.58,0.27 3.56,5.85 0.51,2.66 -0.51,4.25 -4.07,5.32 -2.8,0.8 -2.54,-1.33 -0.51,1.06 0,4.78 -0.76,2.39 0.51,1.6 1.53,1.86 4.58,0 2.54,1.86 1.02,1.86 0,1.44 1.79,-0.3 2.31,1.54 4.04,5.03 3.56,-1.06 1.27,-4.25 2.8,0 5.09,6.38 0.26,3.25 1.45,1.06 0.77,4.96 -1.15,1.52 0.31,2.53 0,0 -0.91,0.38 -0.36,1.06 0.06,4.81 -2.09,1.69 -1.08,-1.06 -1.91,0.94 -3.88,5.24 -4.24,8.23 -2.45,11.66 -0.84,2.18 -1.25,0.69 0.18,2.74 -0.96,0.94 0.06,1.19 -1.26,2.24 -1.97,0.94 -0.06,1.62 -2.63,3.8 0.42,1.56 -1.55,2.62 -1.55,0 -2.03,3.12 -1.55,-2.49 -2.63,-1.99 -0.78,-1.93 0.18,-1.31 -5.98,-5.55 -2.87,-8.92 -2.51,-5.42 -2.09,-2.81 -1.61,-1.37 -2.99,-1.06 0.18,-0.87 -1.19,-0.81 -5.019996,-1.93 -9.92,-0.44 -8.67,2.5 -4.18,0.13 -0.48,-0.56 -1.61,0.19 -1.61,-1.87 -2.03,-0.56 0,-0.5 3.71,-0.87 2.45,-2.18 1.55,-5.93 2.15,0.87 1.67,-0.44 1.61,-2.99 0.06,-2.93 -1.14,-3.06 -2.69,-2.87 0.06,-1.69 -1.91,-3.99 -3.77,-2.5 -0.6,-1.25 0.72,-1 1.73,0.13 0.6,-0.56 1.37,-3.99 -0.12,-2.31 -1.91,-2.93 -0.42,-2.37 -1.31,-2.37 -5.86,-5.25 -4.48,-2.31 -3.71,-4.25 -3.51,-1.12 0.72,-0.86 0.25,-1.92 2.36,-1.67 0.42,-3.76 1.01,-0.61 0,-1.92 0.84,-0.44 -0.43,-2.1 -0.84,-0.17 1.01,-1.49 -0.59,-1.05 -1.44,0.27 -1.18,-2.8 0.84,-0.79 -0.01,-3.59 0.76,0 -0.59,-1.48 -1.01,0 0.42,-0.79 0.59,0.17 -0.17,-1.66 -0.42,-0.26 -1.01,1.75 -0.85,-2.36 -0.59,0 -1.86,-2.27 0.67,-1.49 -2.36,0.62 -2.37,-2.71 0,-1.66 1.26,-1.93 1.18,-0.18 0.84,-0.88 -0.42,-1.66 1.01,-3.33 2.44,-1.49 0,-2.71 6.7,-11.83 z',\n \t\t'code'\t\t\t=> 'DO-16', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Peravia',\n\t\t\t\t'define'\t\t=> 'm 354.82609,323.85093 4.92,0.19 2.95,1.55 0.54,1.76 2.31,0.78 0.77,0.77 0,1.53 2.69,0.78 0,0 0,1.53 0,0 0,1.91 0.77,1.15 5,-0.35 0,0 0,1.53 0,0 0.77,0.39 0,1.15 -0.77,0.38 0,0.77 1.54,0.39 -0.77,1.53 1.54,0.01 0.77,-2.29 0.77,-0.38 0,2.68 2.31,-0.75 3.08,1.55 0,0.77 -1.15,1.14 -0.77,0 -0.38,-1.53 -0.77,-0.39 0,3.06 0.77,0.39 -0.77,0.76 -4.23,3.04 -5,-0.41 -1.92,1.9 0,1.53 2.69,-0.75 0.77,1.53 -0.39,2.68 0.77,1.53 0.77,0.01 1.16,-1.52 3.08,0.78 0,2.68 1.15,4.21 2.69,1.55 0.38,1.53 2.69,1.93 0.77,1.15 0.38,3.44 0.77,0.77 3.08,0.78 1.54,1.16 -0.39,3.44 -0.77,0.76 0,3.06 1.92,1.57 0,0 -2.08,1 -4.24,-1.69 -6.04,3.06 -1.91,-1.56 -6.81,-2 -6.75,2.25 -5.02,0.44 -4.9,-1.19 -3.41,0.13 -2.75,-1.37 -1.91,-0.13 -7.95,2.63 -8.07,4.57 -4.24,0.81 -4.24,1.75 -4.54,-3 -2.33,-0.06 -1.55,0.63 -4.12,-0.75 1.43,-3.13 1.73,-0.69 0,1.31 -0.24,-0.94 -1.31,0.5 -0.72,2.06 1.2,0.56 -0.24,-1.12 1.25,0.31 -0.06,-1.13 0.48,1.06 1.97,0.62 0.9,-1.19 2.45,0.81 1.37,-0.87 2.87,-0.13 0.36,-0.94 -3.47,-2.06 -1.79,0 -1.31,0 -3.53,-3.63 -0.18,-1.06 -1.37,-0.38 -0.78,-1 -3.23,-0.56 -1.79,-2.56 0,0 1.11,-1.05 8.46,-0.33 2.69,-1.51 3.85,0.02 2.31,-1.13 2.31,-5.34 0,-1.91 -1.15,-3.45 0.39,-5.73 4.24,-5.71 0,-3.06 -1.68,-2.83 0,0 0.56,-4.47 1.47,-2.06 1.47,-1.03 2.7,0 7.13,-4.12 3.19,0 3.69,-1.29 1.97,-3.35 4.13,-4.12 z',\n \t\t'code'\t\t\t=> 'DO-17', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Puerto Plata',\n\t\t\t\t'define'\t\t=> 'm 213.60609,0.2509298 4.96,0.38 4.72,3.16 4.96,2.3999999 0.96,-0.13 1.79,-2.21 5.92,2.91 4,-0.32 0.3,0.95 0.78,0.25 1.37,-1.26 2.57,0.82 2.99,-1.45 0.6,0.88 1.49,-0.3099999 0.54,1.07 -0.42,1.71 0.66,0.88 2.39,1.6400002 2.75,-0.06 7.17,9.22 -1.37,2.02 0.59,0.95 1.2,-0.06 0.96,-1.58 1.61,0.5 1.49,-0.88 2.39,0 2.45,1.64 0.12,0.89 1.02,0.12 0.06,1.27 3.94,1.32 1.8,1.9 -0.78,0.69 0.78,1.07 1.37,-1.38 0.84,0.18 0.12,0.7 4.66,2.33 0.6,1.02 1.55,0.37 2.03,2.66 2.45,0 0.24,1.45 1.43,0.82 1.32,-0.19 1.2,-1.39 2.8,2.08 4.13,1.33 4.3,-2.08 1.26,0.37 1.01,-0.5 2.15,2.27 1.26,-0.5 1.43,0.06 2.63,0.44 1.08,-0.31 -0.54,-1.71 1.91,-3.72 5.8,-1.2 7.71,0.57 2.03,1.01 1.91,2.39 1.98,1.08 1.73,2.46 2.69,0.06 1.91,1.96 4.06,6.37 0,0 -2.31,5.31 1.53,3.48 0,1.93 -0.38,0.77 -5,0.74 0,1.16 1.15,0 0.38,1.16 -1.53,0.38 -0.77,-1.93 -0.77,-0.01 -0.39,1.93 -1.53,-1.55 -1.16,1.92 -1.54,-0.01 -1.54,-3.09 -0.76,-0.01 -1.54,1.15 -3.47,-0.41 -0.38,2.7 -0.77,-0.39 0,-0.77 -2.69,-0.02 -1.16,1.15 -1.15,-1.16 -0.77,0.38 -1.16,-0.77 -1.92,1.91 -0.38,1.16 0.76,0.77 -2.3,0.76 0,1.15 0.77,0.39 -0.01,1.93 -1.54,2.69 0,1.16 1.16,1.93 0,1.92 -3.47,4.22 -0.77,8.86 -1.15,0.38 -1.16,1.53 0,0 -5,-2.72 -5.38,-1.96 -8.46,-1.59 -1.54,-2.32 0,-1.92 2.31,-8.08 -0.77,-3.47 -5.77,-3.51 -2.31,-0.01 -1.53,-0.78 -6.16,-3.89 -0.77,0 0,1.93 1.92,8.1 -0.77,2.31 -1.54,1.92 -5.77,2.28 -1.15,-0.01 -0.77,-0.78 -0.77,-2.7 -0.77,-0.77 -3.46,-0.41 -3.85,-4.26 -4.61,-3.49 -0.77,-0.01 0,1.16 -0.77,0.38 -3.07,-1.56 -2.31,-0.01 -4.23,-1.95 0,0 -8.47,-0.44 -1.54,-0.39 -1.92,-1.94 -1.54,0.76 -3.46,-3.49 -0.38,-1.92 -1.54,-0.01 -4.62,-2.73 -4.61,-4.65 -1.92,-0.01 -1.93,1.15 -4.23,-0.03 -4.61,-1.95 -1.54,-4.64 -2.31,-1.17 -7.69,-0.81 -3.46,-1.18 -2.29,-1.54 0,0 -3.1,-1.96 -7.3,-1.97 -6.16,-3.12 -0.38,-4.67 -1.16,-2.29 0.01,-1.93 0.77,-1.55 -0.37,-1.14 -1.29,-0.64 0,0 1.93,-1.14 -0.18,-2.27 1.2,-1.77 -0.96,-0.63 0.24,-1.84 3.65,1.96 1.07,1.52 2.75,0.62 0.84,-1.13 0.96,-1.2 1.31,-0.06 1.61,1.07 5.08,0.32 1.74,-1.64 4.96,-1.01 2.21,-1.14 2.21,-2.15 -0.36,-3.8500002 1.49,-1.52 2.21,-0.95 0.6,-1.77 4.01,-1.07 3.88,-1.9 z',\n \t\t'code'\t\t\t=> 'DO-18',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime \n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Samaná',\n\t\t\t\t'define'\t\t=> 'm 596.32609,129.38093 0.96,0.25 0.78,1.13 0.3,-0.57 1.79,-0.13 0.48,1.39 -1.37,3.21 -3.35,3.27 -3.05,4.85 -1.02,2.08 0.66,1.01 1.02,0.69 3.82,0.5 0.6,-0.57 1.97,0.25 2.45,-2.45 2.21,1.26 1.73,-0.25 3.88,-2.58 1.44,-0.06 0.18,0.88 2.21,-0.25 0.36,0.57 -0.18,3.34 -2.45,4.59 -5.98,4.15 -1.43,1.89 -2.51,1.2 -0.48,2.58 -1.14,1.89 0.18,3.21 -0.66,0.13 -0.12,2.2 -0.42,1.26 -2.39,0.88 -3.41,-0.69 -2.03,-0.31 -4.54,-0.06 -3.34,-2.45 -1.02,1.07 -2.21,-1.57 -1.14,0.88 -3.88,-2.14 -1.14,0.38 -0.54,1.01 -0.24,0.88 -6.04,-0.88 -7.17,0.38 -0.96,0.94 -0.06,1.57 -1.55,-0.63 -0.24,-1.32 -2.33,-0.25 -1.26,0.82 -2.15,-2.26 -1.85,-0.69 -2.21,0.13 -2.33,-1.13 -2.09,-0.19 -1.25,0.57 -1.13,-0.63 -0.84,0.44 -1.61,-1.45 -1.85,1.2 -0.6,-0.75 -2.15,-0.57 -1.55,0.57 -1.73,-0.69 -2.99,0.57 -4.78,-0.94 -1.02,-0.69 -2.09,0.44 -2.93,-1.76 -3.23,-0.13 -1.55,1.07 0.66,1.38 -0.48,7.86 -1.14,3.02 -1.19,6.67 -0.66,0.38 1.85,7.17 -1.13,1.26 1.73,3.14 3.11,0.57 0,0 -2.75,11.07 -2.31,5.36 0,0 -1.92,-2.31 -9.23,-3.51 -2.31,-3.47 -4.61,-4.25 -1.92,-1.16 -1.15,-0.01 -1.92,-1.16 -1.54,-1.93 -0.77,0 0,0 1.15,-1.15 5,0.03 -1.54,-4.62 -2.31,-2.7 0,-2.31 2.31,0.01 3.46,-2.29 0.77,-0.76 -0.77,-1.54 1.92,-0.37 0.77,-1.53 0.77,0.77 1.54,0.01 0.39,-1.53 1.54,0.01 1.16,-4.61 1.93,-2.29 1.54,0.01 0.39,-1.54 -1.92,-0.78 -4.62,0.74 -1.92,-2.32 -3.46,0.75 -4.23,-0.41 -2.69,-1.55 -3.85,-0.02 -1.54,0.76 -2.31,4.22 0,0 -0.38,-1.92 -3.08,-1.94 0.39,-3.07 1.15,-0.38 1.54,1.16 0.77,-0.76 0,-1.54 0.77,-0.38 -0.38,-1.16 -0.77,0 0,-1.54 -1.15,-1.93 -0.38,-2.31 1.54,-0.38 2.31,1.94 0.77,0 0.39,-1.15 -1.92,-2.32 0.77,-0.38 2.69,1.55 1.54,0.01 -3.46,-3.1 -0.4,-3.09 0,0 6.79,3.78 6.87,1.32 8.37,-1.95 3.59,-2.2 13.98,-0.94 2.93,-1.64 0.12,-2.33 2.45,0.31 0,-1.51 1.67,0.44 0.84,-1.51 1.2,-0.38 1.73,1.2 2.21,-1.13 0.54,0.63 2.39,-0.69 2.93,0.13 2.93,0.94 5.38,-1.13 1.79,0.19 0.9,1.39 0.96,-0.25 0.6,-1.07 0.78,0.13 0.96,1.57 1.85,1.2 1.97,-0.88 -0.12,-0.82 1.2,-0.31 0.84,1.2 1.08,0.06 2.57,1.95 0.66,0.13 0.42,-0.94 1.44,0.13 -0.06,0.82 1.85,1.01 1.73,0.5 1.97,-0.44 1.25,2.64 1.2,0.82 0.84,-0.31 0.42,1.2 1.56,0.13 0.84,-0.38 0.48,-2.96 -0.48,-0.88 0.96,-1.26 2.27,-1.26 1.08,-1.51 2.09,-0.5 1.61,-1.95 4.78,-0.82 -0.36,-1.32 1.61,-1.38 1.25,-0.19 0.78,1.2 2.57,-4.91 0.99,-0.19 z',\n \t\t'code'\t\t\t=> 'DO-20', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Sánchez Ramírez',\n\t\t\t\t'define'\t\t=> 'm 370.97609,178.61093 0.01,-1.15 -0.77,0.38 0,-0.77 1.15,-0.76 1.54,-0.38 1.54,0.78 1.54,-0.76 0.77,0.77 0.77,-0.76 0.77,1.92 2.3,-0.75 1.16,1.92 3.84,1.18 0.39,-1.92 0.77,-0.76 1.15,1.54 2.69,-3.06 1.54,-0.76 1.54,0.39 -0.77,2.69 1.54,0.01 1.15,-0.76 0.77,0.77 0.77,-0.77 0,2.69 1.93,-3.44 1.15,0.39 1.15,-1.15 0.39,0 -0.39,3.07 1.16,0.4 0.38,-1.54 1.16,0.39 0.77,-1.53 2.69,0.4 0,0.77 1.15,0.77 2.7,-0.75 1.15,-1.15 1.15,2.31 2.7,0.02 0.38,1.15 0.77,0.01 2.69,2.32 8.85,2.35 2.69,1.94 1.15,0.01 2.7,-2.68 1.92,0.01 4.62,2.33 2.69,2.32 3.84,0.41 2.7,1.17 0.38,0.77 -2.31,5.36 -0.77,6.14 0,0 -3.85,7.66 0.77,3.46 1.54,1.16 -0.39,5.75 -3.47,8.42 -1.92,1.91 -1.54,3.83 -2.31,2.29 -3.85,-0.41 -2.3,-1.16 -3.46,-3.09 -2.7,-1.16 -1.15,0.76 -1.16,3.44 -1.15,1.15 -1.92,-0.78 -2.31,0.37 -1.54,-2.31 -1.54,-0.01 -4.23,2.66 -4.23,-0.02 -1.54,1.52 -0.77,3.07 -0.77,0.76 -4.23,-0.79 -5.77,0.73 -4.62,-0.79 -3.85,1.9 -1.05,1.39 0,0 -0.98,-4.04 -3.02,-4.51 -3.27,-2.5 -3.01,-3.57 -4.36,-2.36 -2.8,-2.55 0.42,-0.38 -6.15,-4.64 0,-3.45 -0.77,-1.16 -2.69,-1.17 -4.23,-0.79 -0.77,-0.77 -0.38,-3.07 0.77,-6.14 -4.23,-4.63 -0.77,-3.46 0,0 1.54,-3.84 1.54,-1.91 3.08,-1.52 1.54,0.01 3.46,-4.59 2.31,0.02 0.38,0.77 4.62,-0.36 2.31,-1.14 1.15,-3.45 0.77,0 1.15,1.16 0.77,-0.38 0.39,-1.15 z',\n \t\t'code'\t\t\t=> 'DO-24', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'San Cristóbal',\n\t\t\t\t'define'\t\t=> 'm 377.49609,256.56093 5.76,5.78 0.77,2.31 1.15,1.15 5.01,0.8 4.22,3.86 1.16,1.92 0,0 -1.16,0.76 -0.77,1.53 0,2.3 3.46,5 0,2.68 1.16,1.92 -0.39,3.06 2.69,3.08 1.15,2.69 -0.38,1.53 -0.77,0 -1.15,-1.54 -1.54,0.37 -0.78,6.13 1.93,1.54 0.38,3.07 2.31,4.22 1.54,0.39 0,1.91 1.15,1.16 0.77,3.45 -0.39,1.53 0.77,1.53 2.31,0.4 3.08,-0.37 0,-1.53 1.15,-0.37 1.15,2.3 2.7,1.93 0.38,2.68 1.54,2.31 -0.77,0.76 -3.08,-0.02 0,0.76 0.39,1.15 3.07,0.02 -0.38,4.21 1.15,-0.38 0,-1.53 1.54,-1.14 1.92,0.01 1.54,2.31 1.92,0.39 3.08,-3.42 0.39,1.15 -0.77,3.05 1.15,-0.37 0.38,2.29 1.54,1.16 -1.05,3.41 0,0 -1.72,1.63 -0.24,-1 -0.72,0.43 0.3,1.44 -1.25,0.69 -3.11,6.26 -0.6,-0.31 -1.25,1.32 0.59,0.12 -0.83,1.13 -1.26,0.62 -6.75,13.21 -1.97,1.69 -1.5,-0.5 -1.67,1.87 -0.42,2.44 -2.27,3.13 -2.69,2.07 -3.41,6.69 -1.67,0.94 -2.27,-1.75 -2.34,0.93 0,0 -1.92,-1.57 0,-3.05 0.77,-0.76 0.39,-3.44 -1.54,-1.16 -3.08,-0.78 -0.77,-0.77 -0.38,-3.44 -0.77,-1.15 -2.69,-1.93 -0.39,-1.53 -2.69,-1.54 -1.15,-4.22 0,-2.67 -3.08,-0.78 -1.15,1.52 -0.77,-0.01 -0.77,-1.53 0.39,-2.67 -0.77,-1.54 -2.7,0.75 0,-1.53 1.93,-1.9 5,0.41 4.23,-3.04 0.77,-0.76 -0.77,-0.38 0.01,-3.06 0.76,0.38 0.39,1.54 0.77,0 1.15,-1.14 0,-0.77 -3.07,-1.54 -2.31,0.75 0,-2.68 -0.77,0.38 -0.77,2.29 -1.54,-0.01 0.77,-1.52 -1.54,-0.4 0,-0.76 0.77,-0.38 0,-1.15 -0.77,-0.38 0,0 0,-1.53 0,0 -5,0.35 -0.77,-1.15 0,-1.91 0,0 0,-1.53 0,0 -2.69,-0.79 0,-1.53 -0.77,-0.77 -2.3,-0.77 -0.55,-1.76 -2.95,-1.55 -4.91,-0.19 0,0 0,-1.87 -1.23,-2.06 -3.93,-4.38 0,-2.06 2.7,-6.7 0.49,-3.61 0,-5.67 -2.7,-4.38 0.24,-3.35 2.46,-3.36 0.49,-1.8 0.25,-5.16 2.63,-4.47 0,0 3.56,2.56 1.16,0.01 2.31,-1.9 0.76,-1.92 3.08,-2.66 0.39,-1.15 -0.39,-2.68 -1.15,-1.54 0.39,-1.92 1.92,-2.29 2.69,-1.9 4.62,-1.51 z',\n \t\t'code'\t\t\t=> 'DO-21', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'San José de Ocoa',\n\t\t\t\t'define'\t\t=> 'm 316.71609,259.67093 2.69,0.4 1.92,1.16 3.08,4.23 5,1.95 3.84,3.85 1.16,0.01 1.15,-1.14 4.23,0.4 5.77,-1.88 3.46,1.55 2.31,2.7 1.93,1.16 2.97,0.92 0,0 -2.63,4.47 -0.25,5.16 -0.49,1.8 -2.46,3.36 -0.24,3.35 2.7,4.38 0,5.67 -0.49,3.61 -2.7,6.7 0,2.06 3.93,4.38 1.23,2.06 0,1.87 0,0 -4.18,4.05 -1.97,3.35 -3.68,1.29 -3.2,0 -7.12,4.12 -2.71,0 -1.47,1.03 -1.48,2.06 -0.56,4.47 0,0 -3.7,-2.55 0.39,-2.68 -1.92,-3.07 0,-2.29 -1.93,-1.16 0.01,-2.3 1.15,-0.76 0,-0.76 -1.15,-1.16 -5.39,-0.79 -3.07,-4.23 -1.16,0.38 -1.15,-1.16 -5,-1.18 -1.15,-2.68 -1.54,-0.01 -2.31,1.14 -1.16,-0.39 -0.38,-1.54 -2.31,-2.69 0,-2.3 -0.77,-1.15 -6.92,-4.25 -1.92,-1.93 -0.77,-1.53 2.7,-4.2 -0.39,-6.51 -2.3,-3.85 -3.08,-2.7 -2.31,-1.16 0,0 5,-0.35 6.16,-1.5 3.46,0.4 1.54,1.16 3.84,0.02 1.93,-0.75 0,-4.6 1.92,-1.91 2.31,-1.13 4.23,0.02 0.39,-1.15 -0.77,-2.3 1.54,-2.67 1.15,-1.15 3.08,-1.13 -1.15,-5.37 0,-1.15 z',\n \t\t'code'\t\t\t=> 'DO-31', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'San Juan',\n\t\t\t\t'define'\t\t=> 'm 145.95609,168.50093 0.77,0.39 1.15,3.08 1.15,0.78 2.7,-1.14 3.46,0.02 5.38,1.95 3.08,-1.14 3.08,0.79 0,0 3.84,3.1 5.77,0.8 6.54,2.72 2.31,3.47 3.84,1.95 0.77,3.46 0,4.99 3.08,3.09 2.69,1.55 2.31,0.01 7.3,3.12 1.54,2.69 0,1.92 0.77,0.78 1.92,0.01 1.54,0.77 0.77,-1.14 3.85,-1.52 0.77,-1.91 1.54,-0.76 3.07,1.17 0.77,0 1.16,-1.14 1.54,0 4.23,1.56 1.54,1.16 4.23,0.8 0,0 2.3,1.55 2.31,3.85 0.77,3.07 0,0 -0.39,1.54 0.77,0.77 0,1.53 -1.15,1.53 -6.54,1.12 1.92,4.61 -1.54,2.3 -5.39,1.12 -1.53,2.67 -1.16,0 -3.08,1.51 0,1.16 0.77,0.77 -0.38,2.3 -2.31,4.59 -1.54,0.37 -0.77,1.15 1.53,5.76 2.69,5.38 0,2.69 -2.69,4.58 -0.77,2.68 -2.31,2.29 -0.77,2.29 -1.54,0 -1.92,-3.85 -0.77,-3.07 -1.54,-1.16 -2.69,-0.02 -2.31,1.53 -1.15,1.91 0.38,6.13 0.77,0.77 0,1.53 1.15,0.4 0.39,1.91 -0.77,0.77 -1.54,-0.01 -1.16,1.14 0,1.92 2.31,2.31 0.38,2.68 -1.92,0.37 -2.19,2.17 -3.84,0.1 -2.55,6.32 -2.26,0 -5.22,5.42 -5.49,0.18 0,0 -0.38,-2.43 -0.77,-0.77 -5,-1.56 -5,1.12 -8.85,3.78 -7.31,-0.04 -3.08,-1.17 -2.69,-0.01 -1.54,1.14 -1.15,1.9 -1.93,-0.01 -4.23,3.04 -7.69,-1.57 -0.39,-2.3 -2.69,-0.78 -1.54,1.52 -1.53,-0.01 -1.16,-2.3 -5.77,-3.1 -2.69,-0.4 -2.31,1.14 -2.69,-0.02 -4.23,-1.17 -3.08,-1.55 -1.15,-1.54 -1.54,-0.77 0,0 0,0 0,0 1.54,-1.91 1.54,-5.74 0,-1.53 -1.54,-3.84 -1.92,-1.16 -3.849996,0.36 -2.31,-1.16 -1.53,-3.46 -1.16,-0.77 -0.76,-1.54 0.38,-1.53 1.15,-0.76 1.16,-2.3 -0.38,-1.91 -2.7,-1.55 -0.38,-1.16 -1.54,0 -3.08,-1.55 -1.53,-1.93 0,-1.53 -3.08,-1.94 1.16,-0.76 0.76,-2.68 1.54,-1.91 -1.15,-4.22 0.39,-8.06 -0.77,-0.38 -2.31,2.29 -0.77,-0.01 0.39,-4.6 3.46,-5.74 0.39,-3.83 -1.54,-0.39 -0.77,-0.78 0,-1.15 8.08,-9.93 2.31,-1.91 1.92,-0.37 7.309996,1.96 2.31,-0.37 0.77,-0.76 0.39,-4.99 3.08,-7.67 2.69,-4.2 -0.38,-4.61 3.85,-5.75 2.31,-0.75 7.31,1.19 3.84,3.87 2.69,0.01 0.39,1.54 1.53,0.01 3.08,-2.67 4.62,0.02 2.69,-1.52 1.16,-1.53 -0.77,-2.69 1.16,-10.37 0,0 1.15,-1.53 0,0 z',\n \t\t'code'\t\t\t=> 'DO-22', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'San Pedro de Macorís',\n\t\t\t\t'define'\t\t=> 'm 547.89609,256.37093 -0.77,1.15 -0.77,6.13 0.77,1.92 2.31,0.39 1.15,1.16 0,2.3 2.31,4.23 -0.01,6.13 1.54,2.3 -2.69,3.44 0.38,1.53 2.31,1.16 1.15,3.08 2.31,2.69 0.38,3.07 1.54,3.45 3.46,2.32 0.77,4.22 1.92,3.45 0.39,2.3 4.22,6.92 1.54,-3.44 3.08,-3.04 3.85,-2.28 0.39,-2.3 2.3,0.02 -0.76,-1.15 0,-4.22 1.15,-1.52 0,-3.07 0.77,-1.52 5,-0.36 2.31,-1.13 1.93,-2.68 0,0 3.07,1.17 1.16,2.69 2.3,0.01 2.31,-1.13 3.46,1.16 6.16,4.25 1.92,4.61 5.77,3.09 2.31,-0.37 2.3,-1.51 6.16,0.03 0.77,1.54 -1.93,0.75 -1.15,9.18 0,0 -1.16,3.44 -3.46,3.43 -1.54,3.05 0,1.91 1.54,3.07 1.15,0.77 3.46,5 0,1.14 1.15,1.92 -0.77,2.68 1.54,3.96 0,0 -7.58,-2.69 -3.82,-0.06 -4.01,-1.07 -6.09,-2.38 -3.11,-2.38 1.08,-0.5 -0.9,-3.19 -2.33,-1.25 -3.77,0.88 -1.91,1.37 -7.11,0.13 -6.1,1.94 -0.77,-0.06 0.41,-0.32 -0.36,-0.75 -2.74,-0.31 0.3,-1.38 -1.02,-0.25 -1.26,0.88 -0.05,1.31 1.01,0.44 -0.48,0.5 -0.6,-0.31 0,1.19 -1.97,1 -5.79,0.38 -7.89,-0.94 -5.32,0.37 -7.65,1.32 -11.53,3.57 -4.4,-0.07 0,0 -0.02,-9.89 0.39,-0.77 1.54,0.01 0.38,-3.82 -10,-0.83 -6.54,-3.86 -1.92,-4.99 -2.69,-1.54 0.77,-1.53 2.31,-1.13 1.92,-4.97 3.47,-5.72 0,-1.15 -1.93,-2.31 1.54,-4.2 0.01,-1.92 -0.78,-0.39 -1.92,1.53 -0.77,-2.31 4.25,-5.22 0,0 2.68,-3.17 2.69,-4.96 3.86,-12.63 5,-6.48 2.31,-4.59 1.15,-0.38 3.08,-4.97 0.77,-0.37 1.16,0 1.92,1.16 z',\n \t\t'code'\t\t\t=> 'DO-23', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Santiago',\n\t\t\t\t'define'\t\t=> 'm 245.62609,66.31093 4.23,1.95 2.31,0.01 3.07,1.56 0.77,-0.38 0,-1.16 0.77,0.01 4.61,3.49 3.85,4.26 3.46,0.41 0.77,0.77 0.77,2.7 0.77,0.78 1.15,0.01 5.77,-2.28 1.54,-1.92 0.77,-2.31 -1.92,-8.1 0,-1.93 0.77,0 6.16,3.89 1.53,0.78 2.31,0.01 5.77,3.51 0.77,3.47 -2.31,8.08 0,1.92 1.54,2.32 8.46,1.59 5.38,1.96 5,2.72 0,0 0,4.62 -3.85,3.06 -3.07,0.75 -1.16,1.54 0.38,5.77 -2.69,4.61 0,1.54 0.38,3.85 1.15,3.47 1.16,1.16 0,1.15 -0.77,0.38 -1.54,-1.55 -1.92,-0.01 -1.54,1.53 -0.78,1.92 0,0 -3.84,-0.02 -4.23,2.67 -6.93,1.89 -0.77,0.76 0,1.92 -0.77,1.15 -5.38,-0.41 -1.93,1.53 -1.54,-0.01 -0.77,1.53 -3.07,-0.02 0.76,3.08 2.31,1.17 0,1.16 -3.08,-0.02 0.77,1.16 8.47,3.89 5,1.57 1.53,1.16 -1.15,1.91 0.38,1.93 0.77,0.39 -1.15,1.53 0.77,2.31 -1.54,2.68 1.53,1.16 -0.38,2.69 1.54,0.39 0,0.77 -1.54,1.92 -1.93,0.75 -1.54,-1.16 -2.69,-0.4 -1.15,-3.08 -1.15,-0.39 -1.54,1.53 -1.54,3.45 -0.78,4.99 -2.3,0.76 -0.77,1.14 -2.31,0.38 -1.15,0.76 0,0.77 -0.77,-0.01 -1.16,1.15 -4.23,1.13 -3.46,-0.02 -1.54,4.6 -1.16,1.14 -3.46,0.75 -3.08,2.29 -3.46,-0.4 -1.16,0.76 -1.15,2.68 -1.92,1.52 -5.39,-0.41 -0.38,2.3 1.15,1.93 0.77,3.46 0,1.54 -1.54,1.91 0,0 -4.23,-0.8 -1.54,-1.16 -4.23,-1.56 -1.54,0 -1.16,1.14 -0.77,0 -3.07,-1.17 -1.54,0.76 -0.77,1.91 -3.85,1.52 -0.77,1.14 -1.54,-0.77 -1.92,-0.01 -0.77,-0.78 0,-1.92 -1.54,-2.69 -7.3,-3.12 -2.31,-0.01 -2.69,-1.55 -3.08,-3.09 0,-4.99 -0.77,-3.46 -3.84,-1.95 -2.31,-3.47 -6.54,-2.72 -5.77,-0.8 -3.84,-3.1 0,0 -0.39,-2.31 1.54,-4.22 0.39,-5.38 -1.92,-4.23 -2.69,-0.79 -1.54,-3.47 0.77,-1.53 1.92,0.39 0.39,-0.76 -0.77,-5.01 1.16,-1.53 0,-3.08 -2.31,-2.7 0,-1.15 1.92,-0.38 1.16,-3.07 0.77,1.16 1.92,0.01 0.39,-1.54 -0.77,-3.46 1.15,-0.77 0.77,-1.53 3.46,-1.9 6.16,-1.51 1.54,3.09 2.69,0.01 0.77,-1.53 -0.38,-1.16 3.07,-0.37 0,-1.15 3.08,0.4 0.77,-0.76 0.77,-3.46 3.08,-1.52 3.84,0.4 1.93,-2.3 -2.69,-0.4 -0.77,-0.77 0.77,-2.69 -1.15,-1.93 -1.16,-0.01 0,-0.77 2.31,-0.75 1.54,-3.07 0,0 3.08,1.94 1.15,0 3.85,2.72 3.84,1.56 7.31,-0.34 1.92,-1.15 1.54,-3.07 2.31,3.09 3.85,0.41 1.54,1.16 3.07,-1.52 2.7,0.02 2.3,0.78 3.08,-0.37 2.31,-3.06 -5,-2.34 -2.3,-3.48 0,-3.08 1.92,-3.45 1.16,-5.39 -2.31,-1.17 -1.92,-0.01 -0.77,-1.93 -1.16,0.76 -2.69,-2.32 0.77,-2.69 -1.92,-1.94 0,-2.7 0.39,-0.38 1.53,0.78 6.54,5.04 1.15,0.01 1.16,-2.69 1.54,-1.15 0.38,-2.31 1.93,-2.68 0,-3.09 z',\n \t\t'code'\t\t\t=> 'DO-25',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime \n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Santiago Rodríguez',\n\t\t\t\t'define'\t\t=> 'm 127.51609,88.37093 1.18,-0.4 -0.4,-3.06 1.92,-0.38 -0.39,1.93 5,3.88 0,1.92 0.77,0.01 1.16,-1.92 1.53,0.01 1.54,1.16 2.31,0.01 5.39,-2.66 1.54,-1.92 2.3,0.4 1.56,-2.31 1.14,-0.37 4.62,4.67 4.61,0 3.07,2.72 2.31,-0.38 1.93,-3.84 6.15,2.35 0,0 0,4.62 1.54,1.55 0.38,4.62 0.77,0.78 1.92,0.01 2.31,1.17 2.69,0.01 5,3.11 3.08,0.02 2.69,-0.76 3.08,0.41 0,0 -1.54,3.07 -2.31,0.75 0,0.77 1.16,0.01 1.15,1.93 -0.77,2.69 0.77,0.77 2.69,0.4 -1.93,2.3 -3.84,-0.4 -3.08,1.52 -0.77,3.46 -0.77,0.76 -3.08,-0.4 0,1.15 -3.07,0.37 0.38,1.16 -0.77,1.53 -2.69,-0.01 -1.54,-3.09 -6.16,1.51 -3.46,1.9 -0.77,1.53 -1.15,0.77 0.77,3.46 -0.39,1.54 -1.92,-0.01 -0.77,-1.16 -1.16,3.07 -1.92,0.38 0,1.15 2.31,2.7 0,3.08 -1.16,1.53 0.77,5.01 -0.39,0.76 -1.92,-0.39 -0.77,1.53 1.54,3.47 2.69,0.79 1.92,4.23 -0.39,5.38 -1.54,4.22 0.39,2.31 0,0 -3.08,-0.79 -3.08,1.14 -5.38,-1.95 -3.46,-0.02 -2.7,1.14 -1.15,-0.78 -1.15,-3.08 -0.77,-0.39 0,0 -2.7,-1.94 -5,-1.56 -4.61,-3.49 -2.31,-0.01 -8.07,-6.2 -0.39,-4.61 -2.69,-3.86 -5,-2.34 -1.92,0.38 -1.92,-0.79 0,0 -0.77,-1.92 -4.23,-3.1 -0.77,-3.85 5.38,1.18 5.77,-1.12 -0.38,-6.16 0.77,-4.99 -0.76,-5.4 0.38,-0.77 2.69,-1.13 1.16,-1.92 0,-3.47 -1.15,-3.85 0,-6.93 2.31,-4.61 5.77,-6.13 z',\n \t\t'code'\t\t\t=> 'DO-26',\n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime \n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Santo Domingo',\n\t\t\t\t'define'\t\t=> 'm 395.56609,272.38093 1.92,-1.14 2.31,0.4 0.38,1.53 3.47,4.62 3.07,6.15 1.15,0.77 4.23,0.79 2.7,-0.75 3.07,0.02 5,4.62 1.54,-0.37 2.31,-1.91 3.85,0.03 1.15,0.77 1.93,0.01 2.3,-3.05 2.7,-0.37 1.53,-1.91 0.01,-2.29 -0.77,-0.78 0.38,-1.14 2.69,0.78 1.54,1.16 2.7,0.01 1.92,1.54 1.54,0.01 4.23,-2.65 2.69,0.39 2.7,-0.75 0,1.15 1.53,1.54 0.39,2.69 3.07,3.84 0.77,2.31 0.77,0.39 1.16,-1.53 1.53,0.01 0.77,0.77 0,0.77 -0.77,-0.01 0.39,5.75 0.76,1.15 3.85,0.02 0.77,3.07 1.15,1.16 -0.38,3.44 1.15,3.07 3.08,-1.9 0.77,-1.52 3.08,-1.52 1.92,-4.2 0,-1.92 4.62,-3.42 2.31,0.78 4.56,-1.45 4.16,0.33 2.06,-1.35 5.15,-1.08 1.55,-3.25 3.86,0 9.06,3.26 0,0 -4.25,5.22 0.77,2.31 1.92,-1.53 0.78,0.39 -0.01,1.92 -1.54,4.2 1.93,2.31 0,1.15 -3.47,5.72 -1.92,4.97 -2.31,1.13 -0.77,1.53 2.69,1.54 1.92,4.99 6.54,3.86 10,0.83 -0.38,3.82 -1.54,-0.01 -0.39,0.77 0.02,9.89 0,0 -4.21,-1.19 -3.23,-2.63 -1.37,-2.25 -5.08,-3.51 -5.92,-0.25 -2.57,2.07 1.38,7.26 -0.96,1.38 -1.2,0.06 -7.05,-2.25 -2.39,-3.88 -0.42,-4.26 -3.64,-1.82 -3.35,-0.19 -4.72,-1.56 -10.34,-0.81 -6.93,0.37 -2.99,-1.06 -10.46,0.43 0,0 -0.3,-2.36 1.85,-3.46 0,-1.79 -3.17,-2.08 -7.65,1.52 -3.29,1.38 -2.38,-3.17 -2.24,-1.11 -0.66,-2.9 -1.18,-1.8 -2.37,-0.97 -1.72,1.25 -1.19,2.76 0,2.49 -2.76,1.52 1.31,2.35 5.01,3.59 1.32,1.8 0.13,5.53 -2.37,2.48 -0.17,2.24 0,0 -2.73,1.13 -3,-0.69 0,0 1.05,-3.41 -1.54,-1.16 -0.38,-2.29 -1.15,0.37 0.77,-3.05 -0.39,-1.15 -3.08,3.42 -1.92,-0.39 -1.54,-2.31 -1.92,-0.01 -1.54,1.14 0,1.53 -1.15,0.38 0.38,-4.21 -3.07,-0.02 -0.39,-1.15 0,-0.76 3.08,0.02 0.77,-0.76 -1.54,-2.31 -0.38,-2.68 -2.7,-1.93 -1.15,-2.3 -1.15,0.37 0,1.53 -3.08,0.37 -2.31,-0.4 -0.77,-1.53 0.39,-1.53 -0.77,-3.45 -1.15,-1.16 0,-1.91 -1.54,-0.39 -2.31,-4.22 -0.38,-3.07 -1.93,-1.54 0.78,-6.13 1.54,-0.37 1.15,1.54 0.77,0 0.38,-1.53 -1.15,-2.69 -2.69,-3.08 0.39,-3.06 -1.16,-1.92 0,-2.68 -3.46,-5 0,-2.3 0.77,-1.53 z',\n \t\t'code'\t\t\t=> 'DO-32', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime\n\t\t\t],\n\t\t\t[\n\t\t\t\t'name' => 'Valverde',\n\t\t\t\t'define'\t\t=> 'm 187.56609,41.32093 2.29,1.54 3.46,1.18 7.69,0.81 2.31,1.17 1.54,4.64 4.61,1.95 4.23,0.03 1.93,-1.15 1.92,0.01 4.61,4.65 4.62,2.73 1.54,0.01 0.38,1.92 3.46,3.49 1.54,-0.76 1.92,1.94 1.54,0.39 8.47,0.44 0,0 -1.16,5.38 0,3.09 -1.93,2.68 -0.38,2.31 -1.54,1.15 -1.16,2.69 -1.15,-0.01 -6.54,-5.04 -1.53,-0.78 -0.39,0.38 0,2.7 1.92,1.94 -0.77,2.69 2.69,2.32 1.16,-0.76 0.77,1.93 1.92,0.01 2.31,1.17 -1.16,5.39 -1.92,3.45 0,3.08 2.3,3.48 5,2.34 -2.31,3.06 -3.08,0.37 -2.3,-0.78 -2.7,-0.02 -3.07,1.52 -1.54,-1.16 -3.85,-0.41 -2.31,-3.09 -1.54,3.07 -1.92,1.15 -7.31,0.34 -3.84,-1.56 -3.85,-2.72 -1.15,0 -3.08,-1.94 0,0 -3.08,-0.41 -2.69,0.76 -3.08,-0.02 -5,-3.11 -2.69,-0.01 -2.31,-1.17 -1.92,-0.01 -0.77,-0.78 -0.38,-4.62 -1.54,-1.55 0,-4.62 0,0 1.55,-3.08 1.53,-1.14 0,-1.93 0.77,-1.53 -0.38,-5.03 -2.69,-6.16 0.77,-2.31 3.47,0.81 1.14,-1.17 0.77,1.17 0.78,0 0,-6.19 -1.92,-4.63 0,-1.54 0.78,-1.15 0,-3.48 1.91,-1.91 z',\n \t\t'code'\t\t\t=> 'DO-27', \n\t\t\t\t'created_at' \t=> new DateTime,\n\t\t\t\t'updated_at' \t=> new DateTime \n\t\t\t]\n\t\t);\n\n\t\tProvince::insert($data);\n }", "function addMarker($idMed,$address,$lat,$lng,$type)\r\n {\r\n $request = sprintf(\"INSERT INTO markers \" .\r\n \" (id,idMedecin, address, lat, lng, type,date_creat, date_modif ) \" .\r\n \" VALUES (NULL,'%d', '%s', '%s', '%s', '%s',NOW(),NOW());\",\r\n $idMed,\r\n mysql_real_escape_string($address),\r\n mysql_real_escape_string($lat),\r\n mysql_real_escape_string($lng),\r\n mysql_real_escape_string($type)\r\n );\r\n \t\t \r\n \t\t new logTracing($request);\r\n \t\r\n \t\r\n \t\treturn parent::ExecuteRqSelect($request);\r\n \t\r\n \t\r\n \t}", "function TS_VCSC_Add_iPresenter_Lean() {\r\n\t\t\t\tvc_lean_map('TS_VCSC_iPresenter_Container', \t\t\t\tarray($this, 'TS_VCSC_Add_iPresenter_Element_Container'), null);\r\n\t\t\t\tvc_lean_map('TS_VCSC_iPresenter_Item', \t\t\t\t\t\tarray($this, 'TS_VCSC_Add_iPresenter_Element_Item'), null);\r\n\t\t\t}", "function addLayer($map, $layerID) {\n\t\tforeach (yieldXY(0, 0, 4, 4, true) as $x => $y) {\n\t\t\t$map[$layerID][$y][$x] = '.';\n\t\t}\n\t\t$map[$layerID][2][2] = '?';\n\t\treturn $map;\n\t}", "public function map($input, $as, $in): static;", "public function index()\n { \n $data_mien = Region::all();\n $data_mb = Region::where('slug', 'mien-bac')->first();\n $data_network = Network::all();\n $lat = $data_mb->lat;\n $long = $data_mb->long;\n $data_network = Network::all();\n $markers = array(); \n foreach ($data_network as $key => $network) {\n if($network->type == 'giaodich'){\n $img = '/image/map/trading.png';\n }elseif ($network->type == 'chinhanh') {\n $img = '/image/map/agency.png';\n }elseif($network->type == 'gara'){\n $img = '/image/map/gara.png';\n }elseif($network->type == 'benhvien'){\n $img = '/image/map/hospital.png';\n }\n $temp = [$network->content, $network->lat, $network->long, $img, $network->name];\n array_push($markers, $temp);\n }\n $data_maker = json_encode($markers);\n $this->viewData = array(\n 'data_mien' => $data_mien,\n 'data_maker' => $data_maker,\n 'lat' => $lat,\n 'long' => $long,\n 'data_network' => $data_network\n );\n return view ('user.network', $this->viewData);\n }", "function addMappoint($latitude, $longitude, $name)\n {\n $x = (($longitude + 180) * ($this->_mapSize['X'] / 360));\n $y = ((($latitude * -1) + 90) * ($this->_mapSize['Y'] / 180));\n $this->_mapPoints[$name] = array('X' => $x, 'Y' => $y);\n }" ]
[ "0.5849156", "0.5611689", "0.5610253", "0.5598228", "0.55962324", "0.55934846", "0.5574591", "0.5539083", "0.53818065", "0.53437304", "0.53281045", "0.52972215", "0.528862", "0.52727836", "0.5270668", "0.5222724", "0.5222724", "0.5222606", "0.522218", "0.52030057", "0.516214", "0.515844", "0.51495403", "0.5109343", "0.5108731", "0.51016307", "0.5097203", "0.50969005", "0.5075467", "0.50661004", "0.5050638", "0.5038554", "0.50287664", "0.5006112", "0.5006043", "0.5005718", "0.49855202", "0.49519813", "0.49460635", "0.49248677", "0.49239233", "0.49161288", "0.49156553", "0.49003577", "0.4897488", "0.48844656", "0.48563185", "0.4841304", "0.48410836", "0.48368478", "0.48299238", "0.48280293", "0.48262432", "0.48190975", "0.48096076", "0.480801", "0.48017314", "0.4796497", "0.4787623", "0.47850448", "0.47810698", "0.47708347", "0.47619933", "0.47580078", "0.47441936", "0.47419268", "0.4739081", "0.47362623", "0.47337455", "0.47307327", "0.47296566", "0.47288716", "0.47204962", "0.47140932", "0.47019002", "0.47002846", "0.46977967", "0.46922046", "0.46780357", "0.46732885", "0.46685046", "0.46564254", "0.46536773", "0.46514463", "0.46509388", "0.463908", "0.4638322", "0.46349424", "0.46310687", "0.46255267", "0.46205276", "0.46205276", "0.46183842", "0.46182472", "0.46146834", "0.4613906", "0.4606528", "0.4605227", "0.4604753", "0.4604425", "0.45989618" ]
0.0
-1
setup decider to use for tests
protected function setUp() { $this->decider = new OLPBlackbox_Enterprise_CLK_Decider(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp(): void{\n $this->obj = new \\FightTheIce\\Coding\\ClassResolver(\"FightTheIce\\Coding\\ClassResolver\");\n }", "abstract protected function setup();", "public function setUp()\n {\n // Create a new Laravel container instance.\n $container = new Container;\n\n // Resolve the pricing calculator (and any type hinted dependencies)\n // and set to class attribute.\n $this->priceHolder = $container->make('PAMH\\\\PriceHolder');\n }", "public function setup() {}", "public function setUp()\n {\n $delegate = new \\Rougin\\Slytherin\\Container\\Container;\n\n $this->container = new \\Rougin\\Slytherin\\Container\\ReflectionContainer($delegate);\n }", "abstract public function setup();", "abstract public function setup();", "abstract public function setup();", "abstract public function setup();", "public function setUp()\n {\n parent::setUp();\n\n $this->manager = $this->app->make(\\Arcanedev\\EmbedVideo\\Contracts\\ParserManager::class);\n }", "abstract function setup();", "function setUp() {\n\n $this->oResolverByName =new reflection\\resolveInterfaceByName\\ResolveInterfaceByNameFirstLetter();\n\n }", "public function setUp()\n {\n $this->_standardLib = new \\App\\OOProgramming\\StandardLibrary;\n $this->_daughter = new \\App\\OOProgramming\\Daughter;\n }", "public function setUp()\n {\n // leading to an errant invalid class alias being reported.\n $this->container = $this->prophesize(ServiceManager::class);\n $this->container->willImplement(ContainerInterface::class);\n }", "protected function setUp()\n {\n $this->factory = new CallableReaderFactory();\n }", "public function setUp()\n {\n $this->config = array(\n 's1' => 'string',\n 's2' => 'str',\n 'i1' => 'integer',\n 'i2' => 'int',\n 'i3' => '+integer',\n 'i4' => '+int',\n 'i5' => '-integer',\n 'i6' => '-int',\n 'f1' => 'float',\n 'f2' => '+float',\n 'f3' => '-float',\n 'b' => 'boolean',\n 'a' => 'array',\n 'm' => array(true, 'false'),\n 'r' => '/^member/',\n );\n $this->helper = new ConfigValidator($this->config);\n }", "protected function setUp()\n\t{\n\t\t$this->instance = new WindwalkerAdapter;\n\t}", "protected function setup(){\n }", "protected function setUp(): void\n {\n // O parametro 'true' é passado para o constructor da classe Validator para informar que é o PHPUnit que esta sendo executado\n // Isso serve para que a funcion que valida blacklist não faça uma requisição á API, pois o PHPUnit não permite requisições externas\n $this->_validator = new Validator(true);\n $this->_data_send = new DataSend();\n }", "protected function setUp()\n { \n $settings = require __DIR__ . '/../../../config/settings.php';\n $container = new \\Slim\\Container($settings);\n $container['stockconfig'] = function ($config) {\n $stockconfig =$config['settings']['stockconfig']; \n return $stockconfig;\n };\n $dependencies = new Dependencies($container);\n $dependencies->registerLogger();\n $dependencies->registerDatabase();\n $this->object = new ScoringResource($container);\n \n }", "public function setup()\n {\n if (! PluginRegistry::isLoaderSet()) {\n $loader = $this->getMockClass(\n 'CubicMushroom\\WordpressCore\\Component\\Plugin\\PluginLoader',\n array('hook')\n );\n PluginRegistry::setLoader(new $loader);\n }\n }", "public function setUp()\n {\n $digitParser = new DefaultDigitParser();\n $this->accountNumberParser = new AccountNumberParser($digitParser);\n }", "public function setup();", "public function setup();", "protected function setUp(): void\n {\n $this->parser = $this->newParser();\n }", "protected function setUp(): void\n {\n $this->sorter = new NamesSorter(\n new MultiArraySorter(),\n new Transformer()\n );\n \n // This is to meet Liskov substitution principle, and also avoid PHPStorm warning.\n parent::setUp();\n }", "protected function setUp()\n {\n $this->parser = new Json;\n }", "protected function doSetup(): void\n {\n }", "public function setup()\n {\n //\n // we need to make sure that it is empty at the start of every\n // test\n InvokeMethod::onString(AllMatchingTypesList::class, 'resetCache');\n }", "public function setUp()\n {\n $this->_filteringEscaping = new \\App\\Security\\FilteringAndEscaping;\n }", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp()\n {\n $this->calculator = new Calculator();\n }", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}" ]
[ "0.66171515", "0.6526237", "0.6475473", "0.6463328", "0.64093226", "0.6391281", "0.6391281", "0.6391281", "0.6391281", "0.63887215", "0.63865054", "0.63430274", "0.62997884", "0.62950385", "0.6256116", "0.6248866", "0.62083644", "0.62063825", "0.6172184", "0.6144391", "0.6136377", "0.6132182", "0.61299807", "0.61299807", "0.611796", "0.6114862", "0.6108775", "0.6104321", "0.61019605", "0.6099129", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.60919344", "0.6091824", "0.60912216", "0.60912216", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090826", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094", "0.6090094" ]
0.6612248
1
Tests that 1 disagreed gets marked as new
public function testOneDisagreedNoCancelIsNew() { $history = $this->getMockHistory(array( 'getCountDisagreed' => 1, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testOneCancelledOneDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelledIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function isMissed(): bool\n {\n return $this->status == 'missed';\n }", "public function getHasBeenRejectedBefore(): bool;", "abstract public function isUndeleting();", "abstract public function isUndeleting();", "public function isDeclined(): bool;", "function testGetNotReviewed()\n {\n $events = $this->GroupEvent->getNotReviewed(1);\n $this->assertEqual(Set::extract('/GroupEvent/id', $events), array(1, 2));\n\n //Test invalid event\n $events = $this->GroupEvent->getNotReviewed(999);\n $this->assertEqual(Set::extract('/GroupEvent/id', $events), null);\n }", "public function testNewlyEndedBookingsAreNotDeleted(): void\n {\n Booking::factory()->create([\n 'start_time' => now()->subMonths(2),\n 'end_time' => now()->subMonths(1),\n ]);\n\n $this->artisan('model:prune');\n\n $this->assertCount(1, Booking::all());\n }", "public function testItemWithIdShouldNotBeConsideredNew()\n {\n $item = $this->createItem($this->faker->randomNumber());\n $this->assertFalse($item->isNew());\n }", "public function testAccessTokenAlreadyRevokedReturnsFalse(): void\n {\n // Collects a random User.\n $model = $this->model\n ->newQuery()\n ->where('revoked', true)\n ->inRandomOrder()\n ->first();\n\n // Performs test.\n $result = $this->repository->revoke(new AccessToken($model->getAttributes()));\n\n // Performs assertion.\n $this->assertFalse(\n $result,\n 'The revoke operation should have returned true'\n );\n }", "public function testFlagCreationNarrative()\n {\n $flagCreated = new Flag;\n\n $flagCreated->NarrativeID = 1;\n $flagCreated->CommentID = NULL;\n $flagCreated->Comment = \"Test\";\n\n $flagCreated->save();\n\n $insertedId = $flagCreated->FlagID;\n\n $flagFetched = Flag::find($insertedId);\n\n $this->assertEquals(1, $flagFetched->NarrativeID);\n $this->assertEquals(NULL, $flagFetched->CommentID);\n $this->assertEquals(\"Test\", $flagFetched->Comment);\n\n $flagFetched->delete();\n\n $flagFetched = Flag::find($insertedId);\n\n $this->assertNull($flagFetched);\n\n }", "public function testFreedIsFalse(): void\n {\n $this->assertFalse($this->get_reflection_property_value('freed'));\n }", "public function isVerwijderd( )\r\n {\r\n return false;\r\n }", "public function testFlagNarrativeRelationship()\n {\n $narrativeCreated = new Narrative;\n\n $date = date('Y-m-d H:i:s');\n\n $narrativeCreated->TopicID = 1;\n $narrativeCreated->CategoryID = 1;\n $narrativeCreated->LanguageID = 1;\n $narrativeCreated->DateCreated = $date;\n $narrativeCreated->Name = \"Test\";\n $narrativeCreated->Agrees = 1;\n $narrativeCreated->Disagrees = 1;\n $narrativeCreated->Indifferents = 1;\n $narrativeCreated->Published = true;\n\n $narrativeCreated->save();\n\n $flagCreated = new Flag;\n\n $flagCreated->NarrativeID = 1;\n $flagCreated->CommentID = NULL;\n $flagCreated->Comment = \"Test\";\n\n $flagCreated->save();\n\n $narrative = Flag::find(1)->narrative();\n $this->assertNotNull($narrative);\n\n }", "protected function isUnchanged() {}", "public function testCheckedOutBookingsAreNotDeleted(): void\n {\n $booking = Booking::factory()->createQuietly([\n 'start_time' => now()->subMonths(7),\n 'end_time' => now()->subMonths(6),\n 'state' => CheckedOut::class,\n ]);\n\n $this->artisan('model:prune');\n\n $this->assertModelExists($booking);\n }", "public function disapprove()\n {\n return $this->approve(false);\n }", "public function testFutureBookingsAreNotDeleted(): void\n {\n Booking::factory()->create([\n 'start_time' => now()->addMonths(1),\n 'end_time' => now()->addMonths(2),\n ]);\n\n $this->artisan('model:prune');\n\n $this->assertCount(1, Booking::all());\n }", "public function testCurrentBookingsAreNotDeleted(): void\n {\n Booking::factory()->create([\n 'start_time' => now()->subMonth(),\n 'end_time' => now()->addMonth(),\n ]);\n\n $this->artisan('model:prune');\n\n $this->assertCount(1, Booking::all());\n }", "public function getIsDeletableAttribute()\n\t{\n\t\treturn $this->status->slug == 'new';\n\t}", "function isRedeemed() {\n // we get if it wasn't used yet\n return $this->getUsed_at() != '';\n }", "public function canBeRemoved() {}", "public function testDeleteUnsuccessfulReason()\n {\n }", "public function declined()\n\t{\n\t\treturn !$this->approved();\n\t}", "public function testItemWithoutIdShouldBeConsideredNew()\n {\n $item = $this->createItem();\n $this->assertTrue($item->isNew());\n }", "function should_prevent_deletion( $delete, $post, $force_delete ) {\r\n\t\r\n\tif( $post->post_type === 'wpass_status' ) {\r\n\t\tif( true === is_status_assigned_to_open_ticket( $post ) ) {\r\n\t\t\t$delete = false;\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $delete;\r\n}", "public function hasDifference() {return !!$this->_calculateDifference();}", "public function markUnapproved()\n {\n $this->Moderated = false;\n $this->write();\n $this->extend('afterMarkUnapproved');\n }", "public function testUsersWithCheckedOutBookingsAreNotDeleted(): void\n {\n $user = User::factory()->create([\n 'created_at' => now()->subYear(),\n ]);\n\n Booking::factory()->for($user)->checkedout()->createQuietly();\n\n $this->artisan('model:prune');\n\n $this->assertModelExists($user);\n }", "public function testFreedIsTrue(): void\n {\n $this->get_accessible_reflection_property('freed');\n $this->assertTrue($this->get_reflection_property_value('freed'));\n }", "public function isOutdated() {}", "public function testRelationshipsAreDeletedWithTheirUser(): void\n {\n $user = User::factory()->create([\n 'created_at' => now()->subYear(),\n ]);\n\n $booking = Booking::factory()->for($user)->create();\n $identifier = $user->identifiers()->create(['value' => 'test-value']);\n $subscription = $user->subscription()->create();\n\n $this->artisan('model:prune');\n\n $this->assertModelMissing($user);\n $this->assertModelMissing($booking);\n $this->assertModelMissing($identifier);\n $this->assertModelMissing($subscription);\n }", "public function isRemoved(): bool;", "public function testForget()\n\t{\n\t\t$c = get_c();\n\n\t\t$result = $c->PostTask('tasks.add', array(2,2));\n $result->forget();\n\t\t$result->revoke();\n\t}", "public function enforceIsNew($value = TRUE);", "public function markUnchanged();", "public function POS_it_checks_updateRec_no_change_in_att() {\n // create the record to check\n $type = 'Bob';\n $taskType = new TaskType();\n $taskType->setType($type);\n $taskType->setDescription('was here');\n $taskType->created_at = Carbon::now();\n $taskType->updated_at = Carbon::now();\n $taskType->client_id = 1;\n $taskType->save();\n\n // create the changed record\n $changeType = 'Bob';\n\n $stdClass = new \\stdClass();\n $stdClass->id = $taskType->id;\n $stdClass->type = $changeType;\n $stdClass->desc = $taskType->getDescription();\n $stdClass->client_id = $taskType->client_id;\n\n $taskType->updateRec($stdClass);\n $result = $taskType::where('id', $taskType->getId())->first();\n\n $this->assertEquals($result->getType(), $changeType);\n }", "public function testFlagRetrieval()\n {\n /*$narratives = Narrative::all();\n\n $this->assertNotEmpty($narratives);*/\n\n }", "public function testVatRecycling()\n {\n $vat = new Vat(\n [\n 'name' => $this->faker->name,\n 'code' => $this->faker->randomLetter(),\n 'rate' => 10,\n ]\n );\n $vat->delete();\n\n $recycled = RecycledObject::all()->first();\n $this->assertEquals($vat->recycled->first(), $recycled);\n }", "function testFieldsDontRerequestChanges() {\r\n\t\t$db = DB::getConn();\r\n\t\tDB::quiet();\r\n\t\t\r\n\r\n\t\t// Table will have been initially created by the $extraDataObjects setting\r\n\t\t\r\n\t\t\r\n\t\t// Verify that it doesn't need to be recreated\r\n\t\t$db->beginSchemaUpdate();\r\n\t\t$obj = new DataObjectSchemaGenerationTest_DO();\r\n\t\t$obj->requireTable();\r\n\t\t$needsUpdating = $db->doesSchemaNeedUpdating();\r\n\t\t$db->cancelSchemaUpdate();\r\n\t\t\r\n\t\t$this->assertFalse($needsUpdating);\r\n\t}", "public function test_completed_request_does_not_block_new_request_for_unregistered_user() {\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_author' => 0,\n\t\t\t\t'post_title' => self::$non_registered_user_email,\n\t\t\t\t'post_status' => 'request-failed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 0, (int) $post->post_author );\n\t\t$this->assertSame( 'export_personal_data', $post->post_name );\n\t\t$this->assertSame( self::$non_registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function testLostOrderDeletion()\n {\n $date1 = new \\DateTime();\n $purchase16min = factory(Purchase::class)->create([\n 'state' => 'in_payment',\n 'state_updated' => $date1->sub(new \\DateInterval('PT16M'))\n ]); \n\n // Edge-Case#2: 10min old --> should stay\n $date2 = new \\DateTime();\n $purchase10min = factory(Purchase::class)->create([\n 'state' => 'in_payment',\n 'state_updated' => $date2->sub(new \\DateInterval('PT10M'))\n ]);\n\n // Very old purchase --> to be deleted\n $date3 = new \\DateTime();\n $purchase1000min = factory(Purchase::class)->create([\n 'state' => 'in_payment',\n 'state_updated' => $date3->sub(new \\DateInterval('PT1000M'))\n ]);\n\n // Very new purchase --> should stay\n $date4 = new \\DateTime();\n $purchase1min = factory(Purchase::class)->create([\n 'state' => 'in_payment',\n 'state_updated' => $date4->sub(new \\DateInterval('PT1M'))\n ]);\n\n $this->artisan('app:deleteLostOrders')->assertExitCode(0);\n\n // Check if the command deleted the overdue purchases and kept the new purchases\n $purchase1min->refresh();\n $this->assertEquals('in_payment', $purchase1min->state);\n\n $purchase10min->refresh();\n $this->assertEquals('in_payment', $purchase10min->state);\n\n $purchase1000min->refresh();\n $this->assertEquals('deleted', $purchase1000min->state);\n\n $purchase16min->refresh();\n $this->assertEquals('deleted', $purchase16min->state);\n }", "public function test_create_calledTwoTimes_resultShouldDifferent()\n {\n $expected = CastilloTicketId::create();\n $actual = CastilloTicketId::create();\n $this->assertNotEquals($expected,$actual);\n }", "function _isNew() ;", "public function testIncrementing()\n {\n $category = new Category(); \n $this->assertFalse($category->incrementing);\n }", "function testResendVerification() {\n $this->assertFalse($this->oObject->resendVerification());\n }", "public function hasRemovedate(){\n return $this->_has(30);\n }", "public function testDisacknowledgeServiceAlreadyDisacknowledged()\n {\n $this->monitoringRepository->expects($this->once())\n ->method('findOneService')\n ->willReturn($this->service);\n $this->monitoringRepository->expects($this->once())\n ->method('findOneHost')\n ->willReturn($this->host);\n $serviceAcknowledgement = $this->serviceAcknowledgement->setDeletionTime(new \\DateTime());\n $this->acknowledgementRepository->expects($this->once())\n ->method('findLatestServiceAcknowledgement')\n ->willReturn($serviceAcknowledgement);\n\n $acknowledgementService = new AcknowledgementService(\n $this->acknowledgementRepository,\n $this->accessGroupRepository,\n $this->monitoringRepository,\n $this->engineService,\n $this->entityValidator\n );\n\n $this->expectException(AcknowledgementException::class);\n $acknowledgementService->disacknowledgeService(1, 1);\n }", "function testAppreciatingNonperishableItem() {\n $items = array(new Item('Aged Brie', 2, 0));\n $gildedRose = new GildedRose($items);\n \n // check that item increases quality as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(2, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n }", "public function testICanGetANewNote()\n {\n $this->get('/new');\n $this->assertTrue(false);\n }", "public function isDeletedOrReleased();", "public function testIsMarkedUndoneIfDone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->task->setIsDone(true);\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(false, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme à faire.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function hasDeceasedAt(): bool;", "public function testRejectMatchingSuggestionsUsingDELETE()\n {\n }", "public function testDaughterCanNotCallMotherPrivate(): void\n {\n $this->expectException(\\Teknoo\\States\\Proxy\\Exception\\MethodNotImplemented::class);\n\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateTwo::class)\n ->enableState(StateThree::class);\n\n $daughterInstance->methodRecallMotherPrivate();\n }", "private function delete_declined_skill ($discipline_id , $newversion ) {\n $affected = skill::with ('skillcategory' )->\n where('version' , '=' , $newversion)->\n where('approve_status' ,'=','declined')\n ->whereHas('skillcategory', function($q ) use ($discipline_id) {\n $q->where('discipline_id','=',$discipline_id);})\n ->delete();\n return $affected;\n }", "public function testFlagCommentRelationship()\n {\n $narrativeCreated = new Narrative;\n\n $date = date('Y-m-d H:i:s');\n\n $narrativeCreated->TopicID = 1;\n $narrativeCreated->CategoryID = 1;\n $narrativeCreated->LanguageID = 1;\n $narrativeCreated->DateCreated = $date;\n $narrativeCreated->Name = \"Test\";\n $narrativeCreated->Agrees = 1;\n $narrativeCreated->Disagrees = 1;\n $narrativeCreated->Indifferents = 1;\n $narrativeCreated->Published = true;\n\n $narrativeCreated->save();\n\n $commentCreated = Comment::create(array('NarrativeID'=>1,'Name'=>'test','Agrees'=>0,'Indifferents'=>1,'Disagrees'=>1,'DateCreated'=>date('Y-m-d H:i:s'), 'Comment'=>'TEST'));\n \n $flagCreated = new Flag;\n\n $flagCreated->NarrativeID = NULL;\n $flagCreated->CommentID = 1;\n $flagCreated->Comment = \"Test\";\n\n $flagCreated->save();\n\n $comment = Flag::find(1)->comment();\n $this->assertNotNull($comment);\n\n }", "public function testStateIssuedCorrectly()\n {\n $this->assertNull($this->state->issue());\n }", "public function testAssertNotEqualsWithDelta() {\n\t\tself::assertNotEqualsWithDelta( 2.3, 3.5, 0.5 );\n\t}", "private function isNotReferenced()\n {\n if ($this->payments->count()) {\n throw new IsReferencedException('Cannot edit form because referenced by payments', $this->payments);\n }\n }", "public function testPending()\n {\n $this->assertTrue($this->kittyUser->isPending());\n $returnedKittyUser = $this->kittyUser->setPending(false);\n $this->assertSame($this->kittyUser, $returnedKittyUser);\n $this->assertFalse($this->kittyUser->isPending());\n }", "function calculateMissed(){\n\t\treturn count(self::$groundTruth) - count(self::$rating);\n\t}", "protected function isDisagreed($history)\n\t{\n\t\t$disagreed_time_threshold = is_string($this->disagreed_time_threshold)\n\t\t\t? strtotime($this->disagreed_time_threshold)\n\t\t\t: $this->disagreed_time_threshold;\t\t\n\t\t\n\t\t$disagreed = ($history->getCountDisagreed($disagreed_time_threshold) + $history->getCountConfirmedDisagreed($disagreed_time_threshold));\n\t\t\t\t\n\t\treturn ($disagreed > $this->disagreed_threshold);\n\t\t\n\t}", "public function willGenerateRemove(): bool;", "public function testInvalidDiscount() {\n\n // create new discount and set end time to now - 10 minutes, so it's not valid\n $discount = $this->createNewCustomerDiscount(array('type' => 1, 'end' => date('Y-m-d H:i:s', strtotime('-10 minutes'))));\n $this->bootstrap();\n\n $request = $this->getRequest();\n $this->dispatch($discount->getReferer());\n $this->assertController('discount');\n $this->assertAction('index');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n\n $htmlBody = $this->getResponse()->getBody();\n\n //must not be on the discount page\n $this->assertEquals(strpos($htmlBody, 'name=\"referer\" value=\"' . $discount->getReferer() . '\"'), false);\n }", "public function test_message_can_be_downvoted() {\n\n $user = User::create('[email protected]', 'secret', 'Jane Doe');\n $this->message->downvote($user);\n $this->assertEquals(1, $this->message->getDownvotes());\n\n }", "public function testItCanRejectASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/reject/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 0,\n ]);\n }", "public function testMissing()\n {\n $result = $this->writedown->getService('api')->tag()->delete(mt_rand(1000, 9999));\n\n $this->assertFalse($result['success']);\n $this->assertEquals(['Not found.'], $result['data']);\n }", "public function markAsUnpaid() {\n $this->status = parent::STATUS_APPROVED_BY_USER;\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "protected function canRemove() {}", "public function _isNew() {}", "public function markForDelete() {\n\t$this->_markForDelete = true;\n }", "public function test_user_cannot_both_upvote_and_downvote() {\n\n $user = User::create('[email protected]', 'secret', 'Jane Doe');\n $this->message->upvote($user);\n $this->message->downvote($user);\n $this->assertEquals(0, $this->message->getUpvotes());\n $this->assertEquals(1, $this->message->getDownvotes());\n\n $this->message->downvote($user);\n $this->message->upvote($user);\n $this->assertEquals(1, $this->message->getUpvotes());\n $this->assertEquals(0, $this->message->getDownvotes());\n\n }", "public function testIsMarkedDoneIfUndone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(true, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme faite.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function testDeleteMessageFailed()\n {\n $this->deleteMessageTest(false);\n }", "public function shouldNotBe($expected) {}", "function test_treatments_can_be_deleted_true()\n {\n $this->seed();\n \n $user = User::where('email', '=', '[email protected]')->first();\n\n $treatments = Treatment::factory()\n ->count(3)\n ->for($user)\n ->create();\n $treatment = Treatment::first();\n \n $token = JWTAuth::fromUser($user);\n $response = $this->json('DELETE', '/api/treatments/'.$treatment->id.'?token='.$token);\n $response->assertNoContent();\n }", "public function testRefundMismatched() {\n $this->setExchangeRates(1234567, ['USD' => 1, 'PLN' => 0.5]);\n $donation_message = new TransactionMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_txn_id' => mt_rand(),\n ]\n );\n $refund_message = new RefundMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_parent_id' => $donation_message->getGatewayTxnId(),\n 'gateway_refund_id' => mt_rand(),\n 'gross' => $donation_message->get('original_gross') + 1,\n 'gross_currency' => $donation_message->get('original_currency'),\n ]\n );\n\n $message_body = $donation_message->getBody();\n wmf_civicrm_contribution_message_import($message_body);\n $contributions = wmf_civicrm_get_contributions_from_gateway_id(\n $donation_message->getGateway(),\n $donation_message->getGatewayTxnId()\n );\n $this->assertEquals(1, count($contributions));\n\n $this->consumer->processMessage($refund_message->getBody());\n $contributions = $this->callAPISuccess(\n 'Contribution',\n 'get',\n ['contact_id' => $contributions[0]['contact_id'], 'sequential' => 1]\n );\n $this->assertEquals(2, count($contributions['values']));\n $this->assertEquals(\n 'Chargeback',\n CRM_Contribute_PseudoConstant::contributionStatus($contributions['values'][0]['contribution_status_id'])\n );\n $this->assertEquals('-.5', $contributions['values'][1]['total_amount']);\n }", "public function checkDupplicateNoDeliveryRef($new_delivery, $sale)\n {\n $this->db->trans_begin();\n try {\n $delivery_by_ref = $this->getDeliveryByRefNo($new_delivery->do_reference_no, $sale->biller_id, [$new_delivery->id]);\n if ($delivery_by_ref && $delivery_by_ref->id < $new_delivery->id) {\n $new_do_ref = $this->at_site->getReference('do', $sale->biller_id);\n $data_update_do = [\n 'do_reference_no' => $new_do_ref\n ];\n $this->db->update('deliveries', $data_update_do, ['id' => $new_delivery->id]);\n\n $this->site->updateReference('do', $sale->biller_id);\n }\n\n $this->db->trans_commit();\n return true;\n } catch (\\Throwable $th) {\n $this->db->trans_rollback();\n return false;\n }\n return true;\n }", "public function shouldBeSkipped();", "private function checkForNewRecord(): bool\n {\n return null === $this->getOldName();\n }", "public function testConfirmWithoutCodeFail() {\n //avoid creating discounts with same referer and let the discount action be set before we test it\n sleep(1);\n\n // create new discount of type 2\n $discount = $this->createNewCustomerDiscount(array('type' => 2));\n\n $this->dispatch('/discount/confirm/referer/' . $referer);\n $this->assertController('discount');\n $this->assertAction('confirm');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n }", "public function testDownvotNonExistingLink()\n {\n $users_cnt = DB::table('users')->count();\n $links_cnt = DB::table('links')->count();\n $downvoted_cnt = DB::table('downvoted_links')->count();\n $user = User::storeUser([\n 'username' => 'Lily',\n 'email' => '[email protected]',\n 'password' => '123456789',\n ]);\n\n $link = Link::storeLink([\n 'content' => 'test content',\n 'title' => 'test title',\n 'author_username' => $user->username\n ]);\n $this->assertEquals(DB::table('users')->count(), $users_cnt + 1);\n $this->assertEquals(DB::table('links')->count(), $links_cnt + 1);\n $token = auth()->login($user);\n $headers = [$token];\n Link::removeLink($link->id);\n $this->assertEquals(DB::table('links')->count(), $links_cnt);\n $payload = ['link_id' => $link->id];\n $this->json('POST', 'api/v1/auth/downvoteLink', $payload, $headers)\n ->assertStatus(403)\n ->assertJson([\n 'success' => 'false',\n 'error' => 'The Link doesn\\'t exist'\n ]);\n $this->assertEquals(DB::table('downvoted_links')->count(), $downvoted_cnt);\n $user->delete();\n $this->assertEquals(DB::table('users')->count(), $users_cnt);\n $this->assertEquals(DB::table('links')->count(), $links_cnt);\n }", "public function testMaintenanceModeFalse()\n {\n $lock = $this->util->getMaintenanceLock();\n $lock->unlock();\n\n $result = $this->object->reverseMaintenanceMonitor();\n $this->assertTrue($result);\n }", "public function isDeletable(): bool\n {\n return true;\n }", "function observation_delete_form_validate($form, &$form_state) {\n\t// foobar does not exists\n\t// drupal_set_message(t('This observation is still in use.'), 'error');\n}", "public function uninappropriate( $notes, $toggle ) {\n\t\tif (\n\t\t\t$this->feedback->isFeatured() ||\n\t\t\t$this->feedback->isResolved() ||\n\t\t\t$this->feedback->isNonActionable() ||\n\t\t\t!$this->feedback->isInappropriate() ||\n\t\t\t$this->feedback->isArchived() ||\n\t\t\t$this->feedback->isHidden() ||\n\t\t\t$this->feedback->isOversighted()\n\t\t) {\n\t\t\t$this->error = 'articlefeedbackv5-invalid-feedback-state';\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->feedback->aft_feature = 0;\n\t\t$this->feedback->aft_resolve = 0;\n\t\t$this->feedback->aft_noaction = 0;\n\t\t$this->feedback->aft_inappropriate = 0;\n\t\t$this->feedback->aft_archive = 0;\n\t\t$this->feedback->aft_hide = 0;\n\t\t$this->feedback->aft_oversight = 0;\n\n\t\t$this->logId = $this->log( __FUNCTION__, $this->feedback->aft_page, $this->feedback->aft_id, $notes, $this->user );\n\n\t\treturn true;\n\t}", "#[@test]\n public function reasonOnly() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals('Out of office', $action->reason);\n }", "public function test_a_user_can_unlike_a_post(){\n \n //we have a signed in user\n \n //user likes the model\n $this->post->likes();\n\n $this->post->unlike();\n\n $this->assertFalse($this->post->isLiked());\n\n }", "function testResetOfExistsOnCreate() {\n\t\t$this->loadFixtures('Article');\n\t\t$Article =& new Article();\n\t\t$Article->id = 1;\n\t\t$Article->saveField('title', 'Reset me');\n\t\t$Article->delete();\n\t\t$Article->id = 1;\n\t\t$this->assertFalse($Article->exists());\n\n\t\t$Article->create();\n\t\t$this->assertFalse($Article->exists());\n\t\t$Article->id = 2;\n\t\t$Article->saveField('title', 'Staying alive');\n\t\t$result = $Article->read(null, 2);\n\t\t$this->assertEqual($result['Article']['title'], 'Staying alive');\n\t}", "public function markAsUndone() {\n\t\t$sql = \"UPDATE\twbb\".WBB_N.\"_thread\n\t\t\tSET\tisDone = 0\n\t\t\tWHERE\tthreadID = \".$this->threadID;\n\t\tWCF::getDB()->sendQuery($sql);\n\t}", "public function setHasBeenRejectedBefore(bool $hasBeenRejectedBefore);", "abstract public function shouldIDelete();", "public function do_not_track()\n\t{\n\t\tstatic $shifted;\n\t\tif ($shifted !== TRUE)\n\t\t{\n\t\t\tarray_shift($this->tracker);\n\t\t\t$shifted = TRUE;\n\t\t}\n\t\t$this->set_tracker_cookie();\n\t}", "public function testFailureWrongIDSCondition()\n {\n $user = User::find(1);\n $this->actingAs($user);\n\n $response = $this->postJson('/v1/collection/book/remove', [\n 'collection_id' => 'collection_5fac21047eb21',\n 'book_id' => 'wrong_id',\n ]);\n\n $response->assertSessionMissing('success');\n }", "function reject_dispute(){\n\t\t$disputeId = $this->uri->segment(4);\n\n\t\t$condition = array('id' => $disputeId);\n\n\t\t$data = array('status' =>'Reject');\n\t\t\n\t\t$this->review_model->update_details(DISPUTE,$data,$condition);\n\n\n\t\t$this->setErrorMessage('success','Dispute rejected successfully');\n\t\tredirect('admin/dispute/display_dispute_list');\n\n\t}", "public function updateTasksForNotReplied()\n\t{\n\t\t$this->deleteMismatchedNoJobTasks();\n\t\t$this->deleteMismatchedHasJobTasks();\n\t\t$this->createNotRepliedTask();\n\t}" ]
[ "0.67598754", "0.6726145", "0.65821505", "0.6568994", "0.58188975", "0.575409", "0.57220376", "0.57220376", "0.57193786", "0.56954604", "0.56541574", "0.5621423", "0.55667776", "0.55341274", "0.552515", "0.5442183", "0.5441015", "0.54278654", "0.5410108", "0.5404722", "0.53793716", "0.53674173", "0.5366236", "0.53586733", "0.5352754", "0.53515214", "0.5350462", "0.53366154", "0.5336469", "0.53285754", "0.5270903", "0.52664626", "0.5247682", "0.5241704", "0.52379024", "0.5233232", "0.52263105", "0.52031475", "0.51986676", "0.5190121", "0.51813674", "0.5170569", "0.5161897", "0.51461005", "0.5143584", "0.51292264", "0.5126092", "0.51258403", "0.51235193", "0.5121332", "0.51131487", "0.51043105", "0.50976026", "0.5096524", "0.5090621", "0.5090387", "0.50856626", "0.5080388", "0.506754", "0.5067369", "0.50533515", "0.50525343", "0.5052336", "0.5031792", "0.50303704", "0.5025138", "0.5008633", "0.50069326", "0.5006181", "0.50056833", "0.49948373", "0.49923766", "0.49846548", "0.4984649", "0.49806538", "0.49742287", "0.4965399", "0.49588138", "0.49490085", "0.49362254", "0.49315524", "0.49229756", "0.49184236", "0.49183363", "0.49156082", "0.49118277", "0.4910272", "0.49074873", "0.4907237", "0.49038604", "0.49023968", "0.4901426", "0.49003327", "0.48993143", "0.48990798", "0.48963183", "0.4896127", "0.4894094", "0.4893369", "0.48863286" ]
0.6813711
0
Tests that 2 disagreed gets marked as cancel/disagreed
public function testTwoDisagreedNoCancelledIsDisagreed() { $history = $this->getMockHistory(array( 'getCountDisagreed' => 2, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneCancelledOneDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelledIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testCancelPayment()\n {\n $this->mockPaymentMapping(\n MiraklMock::ORDER_COMMERCIAL_CANCELED,\n StripeMock::CHARGE_STATUS_AUTHORIZED,\n 8472\n );\n $this->executeCommand();\n $this->assertCount(0, $this->validateReceiver->getSent());\n $this->assertCount(0, $this->captureReceiver->getSent());\n $this->assertCount(1, $this->cancelReceiver->getSent());\n }", "public function testCancelPresenceOrAbsence(): void {\n $this->drupalLogin($this->adminUser);\n $this->drupalGet($this->getPath());\n if ($this->dialogRouteTest) {\n $this->assertActionExists('edit-cancel', 'Cancel');\n }\n else {\n $this->assertActionNotExists('edit-cancel', 'Cancel');\n }\n }", "public function isButtonValidBrokenSetupMultiplePrimaryActionsGivenExpectFalse() {}", "public function cancellationRequested() : bool;", "public function testTwoDisciplinesDiffAmtSwap()\n {\n $result = false;\n $student = new StudentProfile();\n $course = new Course();\n $course->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course);\n $course2 = new Course();\n $course2->set(\"department\",\"MUSI\");\n $student->set(\"courses\",$course2);\n $course3 = new Course();\n $course3->set(\"department\",\"MUSI\");\n $course3->set(\"courseTitle\",\"CPSC\");\n $student->set(\"courses\",$course3);\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 2 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "public function testReactTakesPrecedenceOverDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountPaid' => 1,\n\t\t\t'getCountDisagreed' => 2,\n\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_REACT,\n\t\t\t$result\n\t\t);\n\t}", "private static function filterCancelledOrNeedsUpdate() {\n\t\treturn Fns::reject( Logic::anyPass( [\n\t\t\tpipe(\n\t\t\t\tObj::prop( 'status' ),\n\t\t\t\tFns::unary( 'intval' ),\n\t\t\t\tLst::includes( Fns::__, [ ICL_TM_NOT_TRANSLATED, ICL_TM_ATE_CANCELLED ] )\n\t\t\t),\n\t\t\tObj::prop( 'needs_update' )\n\t\t] ) );\n\t}", "public function cancelAuthorizationShouldNotAddCancellationIfCancellationFails(): void\n {\n $heidelpay = new Heidelpay('s-priv-123');\n $payment = (new Payment())->setParentResource($heidelpay)->setId('myPaymentId');\n $authorization = (new Authorization())->setPayment($payment)->setId('s-aut-1');\n\n /** @var ResourceService|MockObject $resourceSrvMock */\n $resourceSrvMock = $this->getMockBuilder(ResourceService::class)->disableOriginalConstructor()->setMethods(['createResource'])->getMock();\n $cancellationException = new HeidelpayApiException(\n 'Cancellation failed',\n 'something went wrong',\n ApiResponseCodes::API_ERROR_ALREADY_CANCELLED\n );\n $resourceSrvMock->expects($this->once())->method('createResource')->willThrowException($cancellationException);\n\n $cancelSrv = $heidelpay->setResourceService($resourceSrvMock)->getCancelService();\n $this->expectException(HeidelpayApiException::class);\n $this->expectExceptionCode(ApiResponseCodes::API_ERROR_ALREADY_CANCELLED);\n $cancelSrv->cancelAuthorization($authorization, 12.122);\n $this->assertCount(0, $authorization->getCancellations());\n }", "public function test_user_cannot_both_upvote_and_downvote() {\n\n $user = User::create('[email protected]', 'secret', 'Jane Doe');\n $this->message->upvote($user);\n $this->message->downvote($user);\n $this->assertEquals(0, $this->message->getUpvotes());\n $this->assertEquals(1, $this->message->getDownvotes());\n\n $this->message->downvote($user);\n $this->message->upvote($user);\n $this->assertEquals(1, $this->message->getUpvotes());\n $this->assertEquals(0, $this->message->getDownvotes());\n\n }", "public function testConfirmWithoutCodeFail() {\n //avoid creating discounts with same referer and let the discount action be set before we test it\n sleep(1);\n\n // create new discount of type 2\n $discount = $this->createNewCustomerDiscount(array('type' => 2));\n\n $this->dispatch('/discount/confirm/referer/' . $referer);\n $this->assertController('discount');\n $this->assertAction('confirm');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n }", "public function canBeCancelled()\n {\n return $this->isNotYetSubmitted();\n }", "public function testItCanRejectASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/reject/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 0,\n ]);\n }", "public function isCancelRequest(Order $order, array $postData);", "public function testTwoDisciplines()\n {\n $result = false;\n $student = new StudentProfile();\n $course = new Course();\n $course->set(\"department\",\"MUSI\");\n $student->set(\"courses\",$course);\n $course2 = new Course();\n $course2->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course2);\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 1 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "public function getDiscountCanceled();", "public function cancelOrdersInPending()\n {\n //Etape 1 : on recupere pour chaque comptes le nombre de jours pour l'annulation\n $col = Mage::getModel('be2bill/merchandconfigurationaccount')->getCollection();\n $tabLimitedTime = array();\n foreach ($col as $obj) {\n $tabLimitedTime[$obj->getData('id_b2b_merchand_configuration_account')] = $obj->getData('order_canceled_limited_time') != null ? $obj->getData('order_canceled_limited_time') : 0;\n }\n\n //Etape 2\n $collection = Mage::getResourceModel('sales/order_collection')\n ->addFieldToFilter('main_table.state', Mage_Sales_Model_Order::STATE_NEW)\n ->addFieldToFilter('op.method', 'be2bill');\n $select = $collection->getSelect();\n $select->joinLeft(array(\n 'op' => Mage::getModel('sales/order_payment')->getResource()->getTable('sales/order_payment')), 'op.parent_id = main_table.entity_id', array('method', 'additional_information')\n );\n\n Mage::log((string)$collection->getSelect(), Zend_Log::DEBUG, \"debug_clean_pending.log\");\n\n // @var $order Mage_Sales_Model_Order\n foreach ($collection as $order) {\n $addInfo = unserialize($order->getData('additional_information'));\n $accountId = $addInfo['account_id'];\n $limitedTime = (int)$tabLimitedTime[$accountId];\n\n if ($limitedTime <= 0) {\n continue;\n }\n\n $store = Mage::app()->getStore($order->getStoreId());\n $currentStoreDate = Mage::app()->getLocale()->storeDate($store, null, true);\n $createdAtStoreDate = Mage::app()->getLocale()->storeDate($store, strtotime($order->getCreatedAt()), true);\n\n $difference = $currentStoreDate->sub($createdAtStoreDate);\n\n $measure = new Zend_Measure_Time($difference->toValue(), Zend_Measure_Time::SECOND);\n $measure->convertTo(Zend_Measure_Time::MINUTE);\n\n if ($limitedTime < $measure->getValue() && $order->canCancel()) {\n try {\n $order->cancel();\n $order->addStatusToHistory($order->getStatus(),\n // keep order status/state\n Mage::helper('be2bill')->__(\"Commande annulée automatique par le cron car la commande est en 'attente' depuis %d minutes\", $limitedTime));\n $order->save();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n }\n\n return $this;\n }", "public function test_manual_CancelOrderRequest() {\n\n // Stop here and mark this test as incomplete.\n// $this->markTestIncomplete(\n// 'skeleton for test_manual_CancelOrderRequest'\n// );\n \n $countryCode = \"SE\";\n $sveaOrderIdToClose = 349698; \n $orderType = \\ConfigurationProvider::INVOICE_TYPE;\n \n $cancelOrderBuilder = new Svea\\CancelOrderBuilder( Svea\\SveaConfig::getDefaultConfig() );\n $cancelOrderBuilder->setCountryCode( $countryCode );\n $cancelOrderBuilder->setOrderId( $sveaOrderIdToClose );\n $cancelOrderBuilder->orderType = $orderType;\n \n $request = new Svea\\AdminService\\CancelOrderRequest( $cancelOrderBuilder );\n $response = $request->doRequest();\n \n ////print_r(\"cancelorderrequest: \"); //print_r( $response ); \n $this->assertInstanceOf('Svea\\AdminService\\CancelOrderResponse', $response);\n $this->assertEquals(1, $response->accepted ); \n $this->assertEquals(0, $response->resultcode ); \n\n }", "public function testCanMakeMessageConjunctionTicket()\n {\n $opt = new DocRefundUpdateRefundOptions([\n 'originator' => '0001AA',\n 'originatorId' => '23491193',\n 'refundDate' => \\DateTime::createFromFormat('Ymd', '20031125'),\n 'ticketedDate' => \\DateTime::createFromFormat('Ymd', '20030522'),\n 'references' => [\n new Reference([\n 'type' => Reference::TYPE_TKT_INDICATOR,\n 'value' => 'Y'\n ]),\n new Reference([\n 'type' => Reference::TYPE_DATA_SOURCE,\n 'value' => 'F'\n ])\n ],\n 'tickets' => [\n new Ticket([\n 'number' => '22021541124593',\n 'ticketGroup' => [\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_1,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_2,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_3,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_4,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ])\n ]\n ]),\n new Ticket([\n 'number' => '22021541124604',\n 'ticketGroup' => [\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_1,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_2,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ])\n ]\n ])\n ],\n 'travellerPrioDateOfJoining' => \\DateTime::createFromFormat('Ymd', '20070101'),\n 'travellerPrioReference' => '0077701F',\n 'monetaryData' => [\n new MonetaryData([\n 'type' => MonetaryData::TYPE_BASE_FARE,\n 'amount' => 401.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_FARE_USED,\n 'amount' => 0.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_FARE_REFUND,\n 'amount' => 401.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_REFUND_TOTAL,\n 'amount' => 457.74,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_TOTAL_TAXES,\n 'amount' => 56.74,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => 'TP',\n 'amount' => 56.74,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => 'OBP',\n 'amount' => 0.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => 'TGV',\n 'amount' => 374.93,\n 'currency' => 'EUR'\n ])\n ],\n 'taxData' => [\n new TaxData([\n 'category' => 'H',\n 'rate' => 16.14,\n 'currencyCode' => 'EUR',\n 'type' => 'DE'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 3.45,\n 'currencyCode' => 'EUR',\n 'type' => 'YC'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 9.67,\n 'currencyCode' => 'EUR',\n 'type' => 'US'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 9.67,\n 'currencyCode' => 'EUR',\n 'type' => 'US'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 3.14,\n 'currencyCode' => 'EUR',\n 'type' => 'XA'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 4.39,\n 'currencyCode' => 'EUR',\n 'type' => 'XY'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 6.28,\n 'currencyCode' => 'EUR',\n 'type' => 'AY'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 4.00,\n 'currencyCode' => 'EUR',\n 'type' => 'DU'\n ]),\n new TaxData([\n 'category' => '701',\n 'rate' => 56.74,\n 'currencyCode' => 'EUR',\n 'type' => TaxData::TYPE_EXTENDED_TAXES\n ])\n ],\n 'formOfPayment' => [\n new FopOpt([\n 'fopType' => FopOpt::TYPE_MISCELLANEOUS,\n 'fopAmount' => 457.74,\n 'freeText' => [\n new FreeTextOpt([\n 'type' => 'CFP',\n 'freeText' => '##0##'\n ]),\n new FreeTextOpt([\n 'type' => 'CFP',\n 'freeText' => 'IDBANK'\n ])\n ]\n ])\n ],\n 'refundedRouteStations' => [\n 'FRA',\n 'MUC',\n 'JFK',\n 'BKK',\n 'FRA'\n ]\n ]);\n\n $msg = new UpdateRefund($opt);\n\n $this->assertNull($msg->ticketNumber);\n $this->assertNull($msg->structuredAddress);\n $this->assertEmpty($msg->refundedItinerary);\n $this->assertNull($msg->tourInformation);\n $this->assertNull($msg->commission);\n $this->assertNull($msg->pricingDetails);\n $this->assertNull($msg->travellerInformation);\n $this->assertEmpty($msg->interactiveFreeText);\n\n $this->assertEquals('0001AA', $msg->userIdentification->originator);\n $this->assertEquals('23491193', $msg->userIdentification->originIdentification->originatorId);\n\n $this->assertCount(2, $msg->dateTimeInformation);\n $this->assertEquals(UpdateRefund\\DateTimeInformation::OPT_DATE_OF_REFUND, $msg->dateTimeInformation[0]->businessSemantic);\n $this->assertEquals('25', $msg->dateTimeInformation[0]->dateTime->day);\n $this->assertEquals('11', $msg->dateTimeInformation[0]->dateTime->month);\n $this->assertEquals('2003', $msg->dateTimeInformation[0]->dateTime->year);\n\n $this->assertEquals(UpdateRefund\\DateTimeInformation::OPT_DATE_TICKETED, $msg->dateTimeInformation[1]->businessSemantic);\n $this->assertEquals('22', $msg->dateTimeInformation[1]->dateTime->day);\n $this->assertEquals('5', $msg->dateTimeInformation[1]->dateTime->month);\n $this->assertEquals('2003', $msg->dateTimeInformation[1]->dateTime->year);\n\n $this->assertCount(2, $msg->referenceInformation->referenceDetails);\n $this->assertEquals('Y', $msg->referenceInformation->referenceDetails[0]->value);\n $this->assertEquals(UpdateRefund\\ReferenceDetails::TYPE_TKT_INDICATOR, $msg->referenceInformation->referenceDetails[0]->type);\n $this->assertEquals('F', $msg->referenceInformation->referenceDetails[1]->value);\n $this->assertEquals(UpdateRefund\\ReferenceDetails::TYPE_DATA_SOURCE, $msg->referenceInformation->referenceDetails[1]->type);\n\n $this->assertCount(2, $msg->ticket);\n\n $this->assertEquals('22021541124593', $msg->ticket[0]->ticketInformation->documentDetails->number);\n $this->assertNull($msg->ticket[0]->ticketInformation->documentDetails->type);\n $this->assertCount(4, $msg->ticket[0]->ticketGroup);\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_1, $msg->ticket[0]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[0]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[0]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[0]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_2, $msg->ticket[0]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[1]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[1]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[1]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_3, $msg->ticket[0]->ticketGroup[2]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[2]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[2]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[2]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[2]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_4, $msg->ticket[0]->ticketGroup[3]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[3]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[3]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[3]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[3]->actionIdentification);\n\n $this->assertEquals('22021541124604', $msg->ticket[1]->ticketInformation->documentDetails->number);\n $this->assertNull($msg->ticket[1]->ticketInformation->documentDetails->type);\n $this->assertCount(2, $msg->ticket[1]->ticketGroup);\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_1, $msg->ticket[1]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[1]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[1]->ticketGroup[0]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[1]->ticketGroup[0]->referenceInformation);\n $this->assertNull($msg->ticket[1]->ticketGroup[0]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_2, $msg->ticket[1]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[1]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[1]->ticketGroup[1]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[1]->ticketGroup[1]->referenceInformation);\n $this->assertNull($msg->ticket[1]->ticketGroup[1]->actionIdentification);\n\n $this->assertEquals('01JAN07', $msg->travellerPriorityInfo->dateOfJoining);\n $this->assertEquals('0077701F', $msg->travellerPriorityInfo->travellerReference);\n $this->assertNull($msg->travellerPriorityInfo->company);\n\n $this->assertEquals(UpdateRefund\\MonetaryDetails::TYPE_BASE_FARE, $msg->monetaryInformation->monetaryDetails->typeQualifier);\n $this->assertEquals(401.00, $msg->monetaryInformation->monetaryDetails->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->monetaryDetails->currency);\n\n $this->assertCount(7, $msg->monetaryInformation->otherMonetaryDetails);\n\n $this->assertEquals('RFU', $msg->monetaryInformation->otherMonetaryDetails[0]->typeQualifier);\n $this->assertEquals(0.00, $msg->monetaryInformation->otherMonetaryDetails[0]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[0]->currency);\n $this->assertEquals('FRF', $msg->monetaryInformation->otherMonetaryDetails[1]->typeQualifier);\n $this->assertEquals(401.00, $msg->monetaryInformation->otherMonetaryDetails[1]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[1]->currency);\n $this->assertEquals('RFT', $msg->monetaryInformation->otherMonetaryDetails[2]->typeQualifier);\n $this->assertEquals(457.74, $msg->monetaryInformation->otherMonetaryDetails[2]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[2]->currency);\n $this->assertEquals('TXT', $msg->monetaryInformation->otherMonetaryDetails[3]->typeQualifier);\n $this->assertEquals(56.74, $msg->monetaryInformation->otherMonetaryDetails[3]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[3]->currency);\n $this->assertEquals('TP', $msg->monetaryInformation->otherMonetaryDetails[4]->typeQualifier);\n $this->assertEquals(56.74, $msg->monetaryInformation->otherMonetaryDetails[4]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[4]->currency);\n $this->assertEquals('OBP', $msg->monetaryInformation->otherMonetaryDetails[5]->typeQualifier);\n $this->assertEquals(0.00, $msg->monetaryInformation->otherMonetaryDetails[5]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[5]->currency);\n $this->assertEquals('TGV', $msg->monetaryInformation->otherMonetaryDetails[6]->typeQualifier);\n $this->assertEquals(374.93, $msg->monetaryInformation->otherMonetaryDetails[6]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[6]->currency);\n\n $this->assertCount(9, $msg->taxDetailsInformation);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[0]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[0]->taxDetails);\n $this->assertEquals('DE', $msg->taxDetailsInformation[0]->taxDetails[0]->type);\n $this->assertEquals('16.14', $msg->taxDetailsInformation[0]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[0]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[0]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[1]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[1]->taxDetails);\n $this->assertEquals('YC', $msg->taxDetailsInformation[1]->taxDetails[0]->type);\n $this->assertEquals(3.45, $msg->taxDetailsInformation[1]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[1]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[1]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[2]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[2]->taxDetails);\n $this->assertEquals('US', $msg->taxDetailsInformation[2]->taxDetails[0]->type);\n $this->assertEquals(9.67, $msg->taxDetailsInformation[2]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[2]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[2]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[3]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[3]->taxDetails);\n $this->assertEquals('US', $msg->taxDetailsInformation[3]->taxDetails[0]->type);\n $this->assertEquals(9.67, $msg->taxDetailsInformation[3]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[3]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[3]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[4]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[4]->taxDetails);\n $this->assertEquals('XA', $msg->taxDetailsInformation[4]->taxDetails[0]->type);\n $this->assertEquals(3.14, $msg->taxDetailsInformation[4]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[4]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[4]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[5]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[5]->taxDetails);\n $this->assertEquals('XY', $msg->taxDetailsInformation[5]->taxDetails[0]->type);\n $this->assertEquals(4.39, $msg->taxDetailsInformation[5]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[5]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[5]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[6]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[6]->taxDetails);\n $this->assertEquals('AY', $msg->taxDetailsInformation[6]->taxDetails[0]->type);\n $this->assertEquals(6.28, $msg->taxDetailsInformation[6]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[6]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[6]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[7]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[7]->taxDetails);\n $this->assertEquals('DU', $msg->taxDetailsInformation[7]->taxDetails[0]->type);\n $this->assertEquals(4.00, $msg->taxDetailsInformation[7]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[7]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[7]->taxDetails[0]->countryCode);\n\n $this->assertEquals('701', $msg->taxDetailsInformation[8]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[8]->taxDetails);\n $this->assertEquals(UpdateRefund\\TaxDetails::TYPE_EXTENDED_TAXES, $msg->taxDetailsInformation[8]->taxDetails[0]->type);\n $this->assertEquals(56.74, $msg->taxDetailsInformation[8]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[8]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[8]->taxDetails[0]->countryCode);\n\n $this->assertCount(1, $msg->fopGroup);\n $this->assertEquals(FormOfPayment::TYPE_MISCELLANEOUS, $msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->type);\n $this->assertEquals(457.74, $msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->amount);\n $this->assertNull($msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->authorisedAmount);\n $this->assertNull($msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->sourceOfApproval);\n $this->assertCount(2, $msg->fopGroup[0]->interactiveFreeText);\n $this->assertEquals('##0##', $msg->fopGroup[0]->interactiveFreeText[0]->freeText);\n $this->assertEquals('CFP', $msg->fopGroup[0]->interactiveFreeText[0]->freeTextQualification->informationType);\n $this->assertEquals(UpdateRefund\\FreeTextQualification::QUAL_CODED_AND_LITERAL_TEXT, $msg->fopGroup[0]->interactiveFreeText[0]->freeTextQualification->textSubjectQualifier);\n $this->assertEquals('IDBANK', $msg->fopGroup[0]->interactiveFreeText[1]->freeText);\n $this->assertEquals('CFP', $msg->fopGroup[0]->interactiveFreeText[1]->freeTextQualification->informationType);\n $this->assertEquals(UpdateRefund\\FreeTextQualification::QUAL_CODED_AND_LITERAL_TEXT, $msg->fopGroup[0]->interactiveFreeText[1]->freeTextQualification->textSubjectQualifier);\n\n $this->assertCount(5, $msg->refundedRoute->routingDetails);\n $this->assertEquals('FRA', $msg->refundedRoute->routingDetails[0]->station);\n $this->assertEquals('MUC', $msg->refundedRoute->routingDetails[1]->station);\n $this->assertEquals('JFK', $msg->refundedRoute->routingDetails[2]->station);\n $this->assertEquals('BKK', $msg->refundedRoute->routingDetails[3]->station);\n $this->assertEquals('FRA', $msg->refundedRoute->routingDetails[4]->station);\n }", "public function disapprove()\n {\n return $this->approve(false);\n }", "public function getHasBeenRejectedBefore(): bool;", "public function testForget()\n\t{\n\t\t$c = get_c();\n\n\t\t$result = $c->PostTask('tasks.add', array(2,2));\n $result->forget();\n\t\t$result->revoke();\n\t}", "public function cancel_request() {\n\n $pending_request_exists = $this->micro_relation_exists($this->from, $this->to, \"P\");\n\n if($pending_request_exists) {\n $this->delete_relation(\"P\");\n }\n }", "public function testTwoDisciplinesDiffAmtCourses()\n {\n $result = false;\n $student = new StudentProfile();\n $course = new Course();\n $course->set(\"department\",\"MUSI\");\n $student->set(\"courses\",$course);\n $course2 = new Course();\n $course2->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course2);\n $course3 = new Course();\n $course3->set(\"department\",\"CPSC\");\n $course3->set(\"courseTitle\",\"CPSC\");\n $student->set(\"courses\",$course3);\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 2 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "public function testIsAvailableWithCanceledGuarantee()\n {\n $orderId = 123;\n\n /** @var CaseInterface|\\PHPUnit_Framework_MockObject_MockObject $case */\n $case = $this->getMockBuilder(CaseInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $case->expects($this->once())\n ->method('getGuaranteeDisposition')\n ->willReturn(CaseEntity::GUARANTEE_CANCELED);\n\n $this->caseManagement->expects($this->once())\n ->method('getByOrderId')\n ->with($orderId)\n ->willReturn($case);\n\n $this->assertFalse($this->cancelGuaranteeAbility->isAvailable($orderId));\n }", "function check_failures($parameters) \n\t{ \n\t\tif($this->has_type($parameters, 'cancel_principal')\n\t\t || $this->has_type($parameters, 'card_cancel_principal')\n\t\t)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "public function markAsCancelled() : void\n {\n $this->ends_at = Carbon::now()->toDateTimeString();\n $this->is_cancelled = 1;\n $this->is_active = 0;\n $this->stripe_status = StripeSubscription::STATUS_CANCELED;\n $this->updateOrFail();\n }", "public function declineMultiple(){\n\t\tif(isset($_SESSION['admin_email'])){\n\t\t\t$this->model(\"AdminApproveModel\");\n\t\t\tif(isset($_POST['admin_decline_all'])){\n\t\t\t$approve_all = $this->sanitizeString($_POST['admin_decline_all']);\n\t\t\t$id = $this->sanitizeString($_POST['id']);\n\t\t\t$check_all = $this->sanitizeString($_POST['admin_check_all']);\n\t\t\tif(!empty($check_all)){\n\t\t\t\tAdminApproveModel::where('id', $id)->delete();\n\t\t\t}\n\t\t}\n\t}\n\t}", "public function getBaseDiscountCanceled();", "public function mtii_signed_doc_disapproval()\n {\n $this->mtii_verify_ajax_nonce($_REQUEST['approval_nonce'], \"doc-upload-approval-nonce\");\n $this->check_if_user_is_admin();\n if (isset($_REQUEST[\"reg_catg\"]) && ($_REQUEST[\"reg_catg\"]==\"Cooperative\" || $_REQUEST[\"reg_catg\"]==\"ngoAndCbo\")) {\n $this->confirm_approval_right(true);\n $tasks_performer = new TasksPerformer;\n $invoice_info_from_db = $tasks_performer->get_invoice_details_from_db($_REQUEST[\"doc_title\"]);\n $invoice_info_from_cp = $tasks_performer->get_invoice_as_cpt($_REQUEST[\"doc_title\"]);\n $inv_sub_catg_from_cp = get_post_meta($invoice_info_from_cp->ID, 'invoice_sub_category', true);\n $invoice_sub_catg_db = isset($invoice_info_from_db->invoice_sub_category) ?\n $invoice_info_from_db->invoice_sub_category : null;\n if ($invoice_info_from_db && $invoice_info_from_cp\n && (($inv_sub_catg_from_cp===\"replacement\" && $invoice_sub_catg_db===\"replacement\")\n || ($inv_sub_catg_from_cp===\"used-replacement\" && $invoice_sub_catg_db===\"used-replacement\"))\n ) {\n $update_info = $this->mtii_decline_cert_replacement($_REQUEST[\"doc_title\"]);\n $update_info[\"type\"] = \"Replacement\";\n } else if ($invoice_info_from_db && $invoice_info_from_cp\n && (($inv_sub_catg_from_cp===\"legal-search\" && $invoice_sub_catg_db===\"legal-search\")\n || ($inv_sub_catg_from_cp===\"used-legal-search\" && $invoice_sub_catg_db===\"used-legal-search\"))\n ) {\n $update_info = $this->mtii_decline_legal_search($_REQUEST[\"doc_title\"]);\n $update_info[\"type\"] = \"Legal Search\";\n } else {\n $update_info = $this->mtii_decline_registration($_REQUEST[\"doc_title\"], $_REQUEST[\"doc_id\"], $_REQUEST[\"reg_catg\"]);\n }\n } else if (isset($_REQUEST[\"reg_catg\"]) && $_REQUEST[\"reg_catg\"]==\"Business Premise\") {\n $this->confirm_approval_right(false, true);\n $update_info = $this->mtii_decline_biz_premises_reg($_REQUEST[\"doc_title\"], $_REQUEST[\"doc_id\"]);\n } else {\n $update_info = array(\"this_is_it\"=>\"Here we go\", \"status\"=>\"Approved\");\n }\n $this->prepare_to_send_response($update_info);\n }", "public function testQuestionSharev1questionstopExperts()\n {\n\n }", "protected function _cancelOperation() {}", "public function testRefundMismatched() {\n $this->setExchangeRates(1234567, ['USD' => 1, 'PLN' => 0.5]);\n $donation_message = new TransactionMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_txn_id' => mt_rand(),\n ]\n );\n $refund_message = new RefundMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_parent_id' => $donation_message->getGatewayTxnId(),\n 'gateway_refund_id' => mt_rand(),\n 'gross' => $donation_message->get('original_gross') + 1,\n 'gross_currency' => $donation_message->get('original_currency'),\n ]\n );\n\n $message_body = $donation_message->getBody();\n wmf_civicrm_contribution_message_import($message_body);\n $contributions = wmf_civicrm_get_contributions_from_gateway_id(\n $donation_message->getGateway(),\n $donation_message->getGatewayTxnId()\n );\n $this->assertEquals(1, count($contributions));\n\n $this->consumer->processMessage($refund_message->getBody());\n $contributions = $this->callAPISuccess(\n 'Contribution',\n 'get',\n ['contact_id' => $contributions[0]['contact_id'], 'sequential' => 1]\n );\n $this->assertEquals(2, count($contributions['values']));\n $this->assertEquals(\n 'Chargeback',\n CRM_Contribute_PseudoConstant::contributionStatus($contributions['values'][0]['contribution_status_id'])\n );\n $this->assertEquals('-.5', $contributions['values'][1]['total_amount']);\n }", "protected function cancelAppointmentRequest($args) {\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], '2');\n\n if (is_array($returned))\n return $returned;\n\n $checkBookingsQry = \"select appointment_id from appointment where slave_id = '\" . $this->User['entityId'] . \"' and status IN (6,7,8)\";\n $checkBookingsRes = mysql_query($checkBookingsQry, $this->db->conn);\n\n if (mysql_num_rows($checkBookingsRes) > 0)\n return $this->_getStatusMessage(93, 93);\n\n if ($this->_updateSlvApptStatus($this->User['entityId'], '3') == 0)\n return $this->_getStatusMessage(74, 74);\n else\n return $this->_getStatusMessage(3, 1);\n }", "public function testCancel()\n {\n VCR::insertCassette('pickups/cancel.yml');\n\n $shipment = Shipment::create(Fixture::oneCallBuyShipment());\n\n $pickupData = Fixture::basicPickup();\n $pickupData['shipment'] = $shipment;\n\n $pickup = Pickup::create($pickupData);\n\n $boughtPickup = $pickup->buy([\n 'carrier' => Fixture::usps(),\n 'service' => Fixture::pickupService(),\n ]);\n\n $cancelledPickup = $boughtPickup->cancel();\n\n $this->assertInstanceOf('\\EasyPost\\Pickup', $cancelledPickup);\n $this->assertStringMatchesFormat('pickup_%s', $cancelledPickup->id);\n $this->assertEquals('canceled', $cancelledPickup->status);\n }", "public function getCancelAbilities();", "public function testCancelSubmit(): void {\n $this->drupalLogin($this->adminUser);\n if ($this->dialogRouteTest) {\n $ajax = $this->postAjaxForm([], 'Cancel');\n $this->assertAjaxCommandCloseModalDialog($ajax);\n $this->assertAjaxCommandsTotal($ajax, 1);\n }\n else {\n $this->assertFalse(FALSE, \"Don't mark this test as risky!\");\n }\n }", "public function count_clients_with_contracts_other_than_in_progress_status()\n {\n $this->assertEquals(\n self::$contract->count_clients_other_in_progress_contracts(self::$contract),\n Contract::where('client_id', self::$contract->client_id)\n ->whereNotIn('contract_status_id', [self::$contract->id])\n ->count()\n );\n }", "function cancelPending() {\n\t\tself::$_db->saveQry(\"SELECT `ID` FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\"AND ? >= `startTime` \",\n\t\t\t\tCalendar::startCancel());\n\t\t\n\n\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\tReservation::load($res['ID'])->failed();\n\t\t\n\t\t\n\t\t// TagesEnde - BuchungsCancelZeit ist kleiner als Aktueller Zeitblock\n\t\tif(Calendar::calculateTomorrow()) {\n\t\t\t$opening = Calendar::opening(date('Y-m-d', strtotime(\"tomorrow\")));\n\t\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` \".\n\t\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \",\n\t\t\t\t\t$opening->format(\"Y-m-d H:i\"), \n\t\t\t\t\tCalendar::startCancel($opening));\n\t\t\t\n\t\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\t\tReservation::load($res['ID'])->failed();\n\t\t}\n\t\t\n\t}", "public function test_user_cant_decline_not_their_invites()\n {\n $user = factory(User::class, 1)->create()->first();\n factory(Box::class, 3)->create();\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 1, //Box doesn't matter\n 'role' => 'coach',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 2,\n 'role' => 'owner',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $invite = Invite::create([\n 'email' => \"[email protected]\",\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $this->actingAs($user);\n\n $response = $this->post(route('frontend.invites.decline', $invite));\n\n $response->assertStatus(302);\n\n $invites = $user->invites();\n\n $this->assertEquals(3, $invites->count());\n\n }", "public function testManyDisciplinesDiffAmt()\n {\n $result = false;\n $student = new StudentProfile();\n $course = new Course();\n $course->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course);\n $course2 = new Course();\n $course2->set(\"department\",\"MUSI\");\n $student->set(\"courses\",$course2);\n $course3 = new Course();\n $course3->set(\"department\",\"MUSI\");\n $course3->set(\"courseTitle\",\"CPSC\");\n $student->set(\"courses\",$course3);\n $course4 = new Course();\n $course4->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course4);\n $course5 = new Course();\n $course5->set(\"department\",\"CPSC\");\n $course5->set(\"courseTitle\",\"MUSI\");\n $student->set(\"courses\",$course5);\n $course6 = new Course();\n $course6->set(\"department\",\"CPSC\");\n $course6->set(\"courseTitle\",\"CPSC\");\n $student->set(\"courses\",$course6);\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 3 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "public function cancelChargeShouldCreateCancellationAndCallsCreate(): void\n {\n $heidelpay = new Heidelpay('s-priv-1234');\n $cancelSrv = $heidelpay->getCancelService();\n $payment = (new Payment())->setParentResource($heidelpay);\n $charge = (new Charge())->setPayment($payment);\n\n /** @var ResourceService|MockObject $resourceSrvMock */\n $resourceSrvMock = $this->getMockBuilder(ResourceService::class)->setMethods(['createResource'])->disableOriginalConstructor()->getMock();\n /** @noinspection PhpParamsInspection */\n $resourceSrvMock->expects($this->once())->method('createResource')\n ->with($this->callback(static function ($cancellation) use ($payment, $charge) {\n return $cancellation instanceof Cancellation &&\n $cancellation->getAmount() === 12.22 &&\n $cancellation->getPayment() === $payment &&\n $cancellation->getParentResource() === $charge;\n }));\n $heidelpay->setResourceService($resourceSrvMock);\n\n $cancelSrv->cancelCharge($charge, 12.22);\n }", "public function testDeclines()\n {\n $this->mock->append(new Response(204));\n\n $order = new Orders($this->connector, 'auth-token-123456');\n $order->decline(['data' => 'sent in']);\n\n $request = $this->mock->getLastRequest();\n $this->assertEquals(Method::DELETE, $request->getMethod());\n $this->assertEquals(\n '/instantshopping/v1/authorizations/auth-token-123456',\n $request->getUri()->getPath()\n );\n $this->assertEquals('{\"data\":\"sent in\"}', strval($request->getBody()));\n \n\n $this->assertAuthorization($request);\n }", "public function testAccessTokenAlreadyRevokedReturnsFalse(): void\n {\n // Collects a random User.\n $model = $this->model\n ->newQuery()\n ->where('revoked', true)\n ->inRandomOrder()\n ->first();\n\n // Performs test.\n $result = $this->repository->revoke(new AccessToken($model->getAttributes()));\n\n // Performs assertion.\n $this->assertFalse(\n $result,\n 'The revoke operation should have returned true'\n );\n }", "public function markAsUndone() {\n\t\t$sql = \"UPDATE\twbb\".WBB_N.\"_thread\n\t\t\tSET\tisDone = 0\n\t\t\tWHERE\tthreadID = \".$this->threadID;\n\t\tWCF::getDB()->sendQuery($sql);\n\t}", "function unapprove( $booking_ids ){\n\t\treturn $this->set_status(0, $booking_ids);\n\t}", "public function test_completed_request_does_not_block_new_request() {\n\t\t// Update first request.\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_status' => 'request-completed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t// Second request.\n\t\t$actual = wp_create_user_request( self::$registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( self::$registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function cancelorder($order,$rmaid){\n $flag = 0;\n if ($order->canCancel()) {\n $order->getPayment()->cancel();\n $flag = $this->mpregisterCancellation($order,$rmaid);\n }\n\n return $flag;\n }", "public function cancel()\n {\n $this->confirmationArchived = false;\n }", "public function testIsMarkedUndoneIfDone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->task->setIsDone(true);\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(false, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme à faire.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function shouldRefund()\n {\n $paidMoney = $this -> countPaidMoney();\n $consumedMoney = $this -> countConsumedMoney();\n \n return $consumedMoney < $paidMoney;\n }", "function reject( $booking_ids ){\n\t\treturn $this->set_status(2, $booking_ids);\n\t}", "public function canBeCancelled(): bool\n {\n // we can cancel campaigns that still have draft messages, because they haven't been entirely dispatched\n // a campaign that doesn't have any more draft messages (i.e. they have all been sent) cannot be cancelled, because the campaign is completed\n\n if ($this->status_id === CampaignStatus::STATUS_SENT && $this->save_as_draft && $this->sent_count !== $this->messages()->count()) {\n return true;\n }\n\n return in_array($this->status_id, [CampaignStatus::STATUS_QUEUED, CampaignStatus::STATUS_SENDING], true);\n }", "public function isMissed(): bool\n {\n return $this->status == 'missed';\n }", "public function test_completed_request_does_not_block_new_request_for_unregistered_user() {\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_author' => 0,\n\t\t\t\t'post_title' => self::$non_registered_user_email,\n\t\t\t\t'post_status' => 'request-failed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 0, (int) $post->post_author );\n\t\t$this->assertSame( 'export_personal_data', $post->post_name );\n\t\t$this->assertSame( self::$non_registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "function getOrderOrAbort()\n{\n\t// Fail\n}", "public function decline( $notes, $toggle ) {\n\t\t// not requested?\n\t\tif ( !$this->feedback->isRequested() ) {\n\t\t\t$this->error = 'articlefeedbackv5-invalid-feedback-state';\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->feedback->aft_decline = 1;\n\t\t$this->logId = $this->log( __FUNCTION__, $this->feedback->aft_page, $this->feedback->aft_id, $notes, $this->user );\n\n\t\treturn true;\n\t}", "public function test_receive_cancel()\n {\n\n $payumService = m::spy('Recca0120\\LaravelPayum\\Service\\PayumService');\n $token = uniqid();\n\n /*\n |------------------------------------------------------------\n | Act\n |------------------------------------------------------------\n */\n\n $payumService\n ->shouldReceive('receiveCancel')->with($token)->andReturn($token);\n\n $controller = new PaymentController();\n\n /*\n |------------------------------------------------------------\n | Assert\n |------------------------------------------------------------\n */\n\n $controller->receiveCancel($payumService, $token);\n $payumService->shouldHaveReceived('receiveCancel')->with($token)->once();\n }", "public function getCancelledAttribute(): bool\n {\n return $this->status_id === CampaignStatus::STATUS_CANCELLED;\n }", "public function isRejected() {\n\t\treturn $this->approved == -1;\n\t}", "public function declined()\n\t{\n\t\treturn !$this->approved();\n\t}", "public function cancel(): int;", "public function cancelClassByStudent_post()\n {\n /* code goes here */\n }", "public function testQuestionSharev1questionstopChannels()\n {\n\n }", "public function cancelOrder(Mage_Sales_Model_Order $order)\n {\n try {\n // works for 1.8 and 1.9\n $order->registerCancellation();\n } catch (Mage_Core_Exception $e) {\n // exist for backward compatibility with Magento 1.7\n $cancelState = Mage_Sales_Model_Order::STATE_CANCELED;\n /** @var Mage_Sales_Model_Order_Item $item */\n foreach ($order->getAllItems() as $item) {\n if ($cancelState != Mage_Sales_Model_Order::STATE_PROCESSING && $item->getQtyToRefund()) {\n if ($item->getQtyToShip() > $item->getQtyToCancel()) {\n $cancelState = Mage_Sales_Model_Order::STATE_PROCESSING;\n } else {\n $cancelState = Mage_Sales_Model_Order::STATE_COMPLETE;\n }\n }\n $item->cancel();\n }\n\n $order->setSubtotalCanceled($order->getSubtotal() - $order->getSubtotalInvoiced());\n $order->setBaseSubtotalCanceled($order->getBaseSubtotal() - $order->getBaseSubtotalInvoiced());\n\n $order->setTaxCanceled($order->getTaxAmount() - $order->getTaxInvoiced());\n $order->setBaseTaxCanceled($order->getBaseTaxAmount() - $order->getBaseTaxInvoiced());\n\n $order->setShippingCanceled($order->getShippingAmount() - $order->getShippingInvoiced());\n $order->setBaseShippingCanceled($order->getBaseShippingAmount() - $order->getBaseShippingInvoiced());\n\n $order->setDiscountCanceled(abs($order->getDiscountAmount()) - $order->getDiscountInvoiced());\n $order->setBaseDiscountCanceled(\n abs($order->getBaseDiscountAmount()) - $order->getBaseDiscountInvoiced()\n );\n\n $order->setTotalCanceled($order->getGrandTotal() - $order->getTotalPaid());\n $order->setBaseTotalCanceled($order->getBaseGrandTotal() - $order->getBaseTotalPaid());\n\n $order->setState($cancelState, true);\n }\n\t $order->save();\n }", "public function testDeclined(){ \n\n $unBuyableProduct = Product::where('price', '>', 75)\n ->where('quantity','>',10)\n ->first();\n\n //test card 1\n $response = $this->checkoutAction($unBuyableProduct, $this->testVisaPan);\n $response->assertSee(\"Declined\");\n\n\n //test card 2\n $response = $this->checkoutAction($unBuyableProduct, $this->testMasterCardPan);\n $response->assertSee(\"Declined\"); \n \n }", "public function manualGetSatStatusThenCancelSignatureThenGetReceipt(): void\n {\n $settings = $this->createSettingsFromEnvironment();\n\n $cfdiXmlFile = __DIR__ . '/cfdi-to-cancel.xml';\n if (! file_exists($cfdiXmlFile)) {\n $this->markTestIncomplete(\"File $cfdiXmlFile does not exists\");\n }\n $cfdiXml = (string) file_get_contents($cfdiXmlFile);\n $cfdiUuid = '01B04C24-37CC-4F9E-BBA7-007A0AC3B543';\n\n // check that it has a correct status\n $beforeCancelStatus = $this->checkCanGetSatStatusOrFail(\n $cfdiXml,\n 'Cannot assert cfdi before cancel status is not: No Encontrado'\n );\n\n $this->assertSame('Vigente', $beforeCancelStatus->cfdi());\n $this->assertStringStartsWith('Cancelable ', $beforeCancelStatus->cancellable());\n\n // Create cancel signature command from capsule\n $service = new CancelSignatureService($settings);\n\n $command = $this->createCancelSignatureCommandFromDocument(\n CancelDocument::newWithErrorsUnrelated($cfdiUuid)\n );\n\n // perform cancel\n $result = $service->cancelSignature($command);\n $document = $result->documents()->first();\n\n // check result related document\n $this->assertSame(\n '201', // 201 - Petición de cancelación realizada exitosamente\n $document->documentStatus(),\n 'SAT did not return 201 EstatusUUID on CancelSignature, is the service down?'\n );\n\n // check result properties\n $this->assertNotEmpty($result->voucher(), 'Finkok did not return voucher (Acuse) on CancelSignature');\n $this->assertNotEmpty($result->date(), 'Finkok did not return the cancellation date');\n $this->assertSame('EKU9003173C9', $result->rfc(), 'Finkok did not return expected RFC');\n\n // Consume GetReceiptService and assert that the response is the same (as XML and as string)\n $receipt = (new GetReceiptService($settings))->download(\n new GetReceiptCommand('EKU9003173C9', $cfdiUuid, ReceiptType::cancellation())\n );\n $this->assertXmlStringEqualsXmlString(\n $result->voucher(),\n $receipt->receipt(),\n 'El acuse que proviene del método get_receipt no coincide con el acuse de la cancelación'\n );\n $this->assertSame(\n $result->voucher(),\n $receipt->receipt(),\n 'El acuse que proviene del método get_receipt no es exactamente el mismo que el acuse de la cancelación'\n );\n }", "public function testPatchReviewerRequiredToggle()\n {\n $this->createChange();\n Review::createFromChange('1')->save()->updateFromChange('1')\n ->setParticipantData('nonadmin', true, 'required')->addVote('nonadmin', 1)\n ->save();\n\n // there shouldn't be any tasks but proccess just to be safe\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify the starting state is good\n $this->assertSame(\n array(\n 'admin' => array(),\n 'nonadmin' => array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n )\n ),\n Review::fetch('2', $this->p4)->getParticipantsData()\n );\n\n $expected = array(\n 'admin' => array(), // as they are the author; can't get rid of em\n 'nonadmin' => array('vote' => array('value' => 1, 'version' => 1, 'isStale' => false))\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_POST)\n ->setPost(new Parameters(array('required' => false)))\n ->setQuery(new Parameters(array('_method' => 'patch')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n\n\n // now try using patch and setting it to required\n $expected['nonadmin'] = array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_PATCH)\n ->setPost(new Parameters(array('required' => '1')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n }", "function cancel_booking_approve($id)\n {\n $useremail = $this->userinfo_by_bookingid($id);\n $this->emails_model->booking_approve_cancellation_email($useremail);\n $this->cancel_booking($id);\n // $this->delete_booking($id);\n }", "public function checkObsolescenceOfOrderStatus()\n {\n /** @var Emagedev_Trello_Model_Observer $observer */\n $observer = Mage::getModel($this->alias);\n\n $helperMock = $this->mockHelper('trello/card', array('archiveOrder', 'markOrderOutdated'));\n\n $helperMock\n ->expects($this->once())\n ->method('markOrderOutdated')\n ->with($this->callback(function($order){\n if ($this->expected()->getOutdated() == $order->getId()) {\n return $order;\n }\n\n return false;\n }));\n\n $helperMock\n ->expects($this->once())\n ->method('archiveOrder')\n ->with($this->callback(function($order){\n if ($this->expected()->getArchived() == $order->getId()) {\n return $order;\n }\n\n return false;\n }));\n\n $helperMock->replaceByMock('helper');\n\n $orderMock = $this->mockModel('sales/order', array('getUpdatedAt'));\n\n $orderMock\n ->expects($this->any())\n ->method('getUpdatedAt')\n ->willReturn($this->callback(function($order) {\n if (\n $order->getId() == $this->expected()->getOutdated() ||\n $order->getId() == $this->expected()->getArchived()\n ) {\n $datetime = new DateTime('now');\n $datetime->sub(new DateInterval('D5'));\n\n return $datetime->format(DateTime::W3C);\n }\n }));\n\n $orderMock->replaceByMock('model');\n\n $observer->markOrArchiveOutdatedOrders(new Varien_Event_Observer());\n }", "function testGetNotReviewed()\n {\n $events = $this->GroupEvent->getNotReviewed(1);\n $this->assertEqual(Set::extract('/GroupEvent/id', $events), array(1, 2));\n\n //Test invalid event\n $events = $this->GroupEvent->getNotReviewed(999);\n $this->assertEqual(Set::extract('/GroupEvent/id', $events), null);\n }", "public function cancelled() : bool\n {\n return !is_null($this->ends_at) && $this->is_cancelled;\n }", "public function check_order_reverse()\n\t{\n\t\tforeach ( $this->completed_statuses as $completed ) {\n\t\t\tforeach ( $this->reverse_statuses as $reversed ) {\n\t\t\t\tadd_action( \"woocommerce_order_status_{$completed}_to_{$reversed}\", array( 'TGS_Commission', 'reverse_due_commission' ) );\n\t\t\t}\n\t\t}\n\t}", "public function isCanceled(): bool\n {\n return $this->status == 'canceled';\n }", "function test_DifferentIdempotencyKey_ActIndependentlyAndRetreivable() {\n\t\t$idempotencyKey1 = md5(uniqid());\n\t\t$idempotencyKey2 = md5(uniqid());\n\t\t$user = $this->buildJohn();\n\t\t$user1 = $this->_api->Users->Create($user, $idempotencyKey1);\n\t\t$user2 = $this->_api->Users->Create($user, $idempotencyKey2);\n $this->assertTrue($user2->Id > $user1->Id);\n\n\t\t// responses may be retreived later\n\t\t$resp1 = $this->_api->Responses->Get($idempotencyKey1);\n\t\t$resp2 = $this->_api->Responses->Get($idempotencyKey2);\n $this->assertTrue($resp1->Resource->Id == $user1->Id);\n $this->assertTrue($resp2->Resource->Id == $user2->Id);\n }", "public function cancelRequests()\n {\n $this->prepareCancel();\n\n $url = $this->urlbase.$this->urlbranch;\n\n $query = $this->genQuery();\n\n $path = $this->options['Action'].'Result';\n\n if ($this->mockMode) {\n $xml = $this->fetchMockFile()->$path;\n } else {\n $response = $this->sendRequest($url, ['Post' => $query]);\n\n if (! $this->checkResponse($response)) {\n return false;\n }\n\n $xml = simplexml_load_string($response['body'])->$path;\n }\n\n $this->parseXML($xml);\n }", "public function getCanceled(): int;", "#[@test]\n public function reasonOnly() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals('Out of office', $action->reason);\n }", "public function reject($requests) {\n foreach ($requests as $teacher_id) {\n $this->deleteFromRequest($teacher_id);\n }\n}", "public function testIsMarkedDoneIfUndone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(true, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme faite.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function testBadgeBillCanceledFilter(): void\n {\n $actual = true;\n $expected = '<span class=\"badge badge-warning\">trans.bill.canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n\n $actual = new Bill();\n $expected = '<span class=\"badge badge-success\">trans.bill.non-canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n\n $actual->setCanceledAt(new DateTimeImmutable());\n $expected = '<span class=\"badge badge-warning\">trans.bill.canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n\n $actual = false;\n $expected = '<span class=\"badge badge-success\">trans.bill.non-canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n }", "private function confirm()\n {\n // if 1, direct approve\n\n $load = $this->load;\n\n $fleetCount = $load->fleet_count;\n\n if($fleetCount > 1) {\n $loadTrips = $load->confirmed_trips()\n ->count()\n ;\n } else {\n $loadTrips = 1;\n }\n\n if($loadTrips == $fleetCount) {\n\n //@todo: send confirm notifications\n\n $load->status = Load::STATUS_CONFIRMED;\n $load->save();\n }\n\n }", "public function isButtonValidBrokenSetupInvalidButtonAsSecondParametersGivenExpectFalse() {}", "function should_prevent_deletion( $delete, $post, $force_delete ) {\r\n\t\r\n\tif( $post->post_type === 'wpass_status' ) {\r\n\t\tif( true === is_status_assigned_to_open_ticket( $post ) ) {\r\n\t\t\t$delete = false;\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $delete;\r\n}", "public function setToCancelled($intEmployeeId=null, $bolLogAppropriateActionsAndNotes=true, $strAdditionalNotes=null)\n\t{\n\t\t$intEmployeeId\t= ($intEmployeeId == null)? Employee::SYSTEM_EMPLOYEE_ID : $intEmployeeId;\n\t\t$strNowDateTime\t= GetCurrentISODateTime();\n\t\t$strNowDate\t\t= date('Y-m-d', strtotime($strNowDateTime));\n\t\t\n\t\t// Retrieve RecurringCharge Statuses that will be referenced often\n\t\t$intRecChargeStatusAwaitingApproval\t= Recurring_Charge_Status::getIdForSystemName('AWAITING_APPROVAL');\n\t\t$intRecChargeStatusActive\t\t\t= Recurring_Charge_Status::getIdForSystemName('ACTIVE');\n\t\t$intRecChargeStatusCancelled\t\t= Recurring_Charge_Status::getIdForSystemName('CANCELLED');\n\t\t\n\t\t// Verify that the RecurringCharge is eligible for cancellation, based on the status\n\t\tswitch ($this->recurringChargeStatusId)\n\t\t{\n\t\t\tcase $intRecChargeStatusAwaitingApproval:\n\t\t\t\t// Set up vars pertaining to the fact that this is cancelling a request for a Recurring Charge\n\t\t\t\t$strActionPastTense = \"Cancelled recurring charge that was pending approval\";\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase $intRecChargeStatusActive:\n\t\t\t\t// The RecurringCharge is currently active.\n\n\t\t\t\t// Check if it has satisfied the requirements for completion\n\t\t\t\tif ($this->hasSatisfiedRequirementsForCompletion())\n\t\t\t\t{\n\t\t\t\t\t// Flag it as completed, instead of cancelled\n\t\t\t\t\t$this->setToCompleted($intEmployeeId, $bolLogAppropriateActionsAndNotes, $strAdditionalNotes);\n\t\t\t\t\treturn NULL;\n\t\t\t\t}\n\n\t\t\t\t// Set up vars pertaining to the fact that this is cancelling a request for a Recurring Charge\n\t\t\t\t$strActionPastTense = \"Cancelled recurring charge\";\n\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\t$objCurrentStatus = Recurring_Charge_Status::getForId($this->recurring_charge_status_id);\n\t\t\t\tthrow new Exception(\"Cannot cancel recurring charge when status is set to: {$objCurrentStatus->name}\");\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// Check if a payout charge should be made\n\t\tif ($this->recurringChargeStatusId == $intRecChargeStatusActive && $this->nature == NATURE_DR && !$this->hasReachedMinimumCharge())\n\t\t{\n\t\t\t// Create a payout charge\n\t\t\t$fltAmount = ($this->minCharge - $this->totalCharged) + $this->cancellationFee;\n\t\t\t\n\t\t\t$objPayoutCharge = new Charge();\n\t\t\t$objPayoutCharge->accountGroup\t= $this->accountGroup;\n\t\t\t$objPayoutCharge->account\t\t= $this->account;\n\t\t\t$objPayoutCharge->service\t\t= $this->service;\n\t\t\t$objPayoutCharge->createdBy\t\t= $intEmployeeId;\n\t\t\t$objPayoutCharge->createdOn\t\t= $strNowDate;\n\t\t\t$objPayoutCharge->chargeType\t= $this->chargeType;\n\t\t\t$objPayoutCharge->description\t= $this->description;\n\t\t\t$objPayoutCharge->chargedOn\t\t= $strNowDate;\n\t\t\t$objPayoutCharge->nature\t\t= $this->nature;\n\t\t\t$objPayoutCharge->amount\t\t= $fltAmount;\n\t\t\t$objPayoutCharge->notes\t\t\t= \"Payout due to premature cancellation of recurring charge\";\n\t\t\t$objPayoutCharge->linkType\t\t= CHARGE_LINK_RECURRING_CANCEL;\n\t\t\t$objPayoutCharge->linkId\t\t= $this->id;\n\t\t\t$objPayoutCharge->status\t\t= CHARGE_WAITING;\n\t\t\t$objPayoutCharge->global_tax_exempt = 0;\n\t\t\t\n\t\t\t$objPayoutCharge->save();\n\t\t\t\n\t\t\t// Add the record to the charge_recurring_charge table\n\t\t\t$objChargeRecurringCharge = new Charge_Recurring_Charge();\n\t\t\t$objChargeRecurringCharge->chargeId = $objPayoutCharge->id;\n\t\t\t$objChargeRecurringCharge->recurringChargeId = $this->id;\n\t\t\t$objChargeRecurringCharge->save();\n\t\t\t\n\t\t\tif ($bolLogAppropriateActionsAndNotes)\n\t\t\t{\n\t\t\t\t// Log the request for charge\n\t\t\t\t$strNature\t\t\t\t= ($objPayoutCharge->nature == NATURE_DR)? \"Debit\" : \"Credit\";\n\t\t\t\t$strPayoutAmount\t\t= number_format(AddGST($objPayoutCharge->amount), 2, '.', '');\n\t\t\t\t$strActionExtraDetails\t= \t\"Payout for cancellation of recurring charge\\n\".\n\t\t\t\t\t\t\t\t\t\t\t\"Type: {$objPayoutCharge->chargeType} - {$objPayoutCharge->description} ({$strNature})\\n\".\n\t\t\t\t\t\t\t\t\t\t\t\"Amount (Inc GST): \\${$strPayoutAmount} {$strNature}\";\n\t\t\t\t\n\t\t\t\tAction::createAction('Charge Requested', $strActionExtraDetails, $objPayoutCharge->account, $objPayoutCharge->service, null, $intEmployeeId, Employee::SYSTEM_EMPLOYEE_ID);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($bolLogAppropriateActionsAndNotes)\n\t\t{\n\t\t\t// Create a system note defining what has happened\n\t\t\t$objCreatedByEmployee\t\t= Employee::getForId($this->createdBy);\n\t\t\t$strCreatedOn\t\t\t\t= date('d-m-Y', strtotime($this->createdOn));\n\t\t\t$strCreatedByEmployeeName\t= $objCreatedByEmployee->getName();\n\t\t\t\n\t\t\t$strNature = ($this->nature == NATURE_DR)? \"Debit\" : \"Credit\";\n\t\t\t\n\t\t\t$strMinCharge\t\t\t= number_format(AddGST($this->minCharge), 2, \".\", \"\");\n\t\t\t$strTotalCharged\t\t= number_format(AddGST($this->totalCharged), 2, \".\", \"\");\n\t\t\t\n\t\t\t$strNote = \t\"{$strActionPastTense} (id: {$this->id})\\n\".\n\t\t\t\t\t\t\"Type: {$this->chargeType} - {$this->description} ({$strNature})\\n\".\n\t\t\t\t\t\t\"Originally configured on: {$strCreatedOn} by $strCreatedByEmployeeName\\n\".\n\t\t\t\t\t\t\"Minimum charge (inc GST): \\${$strMinCharge} {$strNature}\\n\".\n\t\t\t\t\t\t\"Charged so far (inc GST): \\${$strTotalCharged} {$strNature}\";\n\t\t\t\t\t\t\n\t\t\tif ($this->cancellationFee > 0.0)\n\t\t\t{\n\t\t\t\t$strCancellationFee = number_format(AddGST($this->cancellationFee), 2, \".\", \"\");\n\t\t\t\t$strNote .= \"\\nCancellation Fee (inc GST): \\${$strCancellationFee} {$strNature}\";\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($objPayoutCharge))\n\t\t\t{\n\t\t\t\t$strPayoutAmount = number_format(AddGST($objPayoutCharge->amount), 2, '.', '');\n\t\t\t\t$strNote .= \"\\nA payout charge has been requested for \\${$strPayoutAmount}\";\n\t\t\t}\n\t\t\t\n\t\t\t$strAdditionalNotes = trim($strAdditionalNotes);\n\t\t\tif ($strAdditionalNotes != '')\n\t\t\t{\n\t\t\t\t$strNote .= \"\\nUser Comments:\\n{$strAdditionalNotes}\";\n\t\t\t}\n\t\t\t\n\t\t\tNote::createSystemNote($strNote, $intEmployeeId, $this->account, $this->service);\n\t\t}\n\n\t\t// Update the status of the RecurringCharge record\n\t\t$this->recurringChargeStatusId = $intRecChargeStatusCancelled;\n\t\t$this->save();\n\t}", "public function testRejectMatchingSuggestionsUsingDELETE()\n {\n }", "public function cancelRequest(){\n //the other users Id\n $otherUserId = $_POST[\"otherUserId\"];\n //deletes the record in the database\n $this->individualGroupModel->cancelGroupRequestInvitation($otherUserId); \n //redirects\n $path = '/IndividualGroupController/individualGroup?groupId=' . $_SESSION['current_group']; \n redirect($path);\n }", "function testResendVerification() {\n $this->assertFalse($this->oObject->resendVerification());\n }", "function run_leaving_activity_pre()\n\t\t{\n\t\t\t//actually we never send emails when cancelling\n\t\t\treturn true;\n\t\t}", "public function isCancelled(){\n return (bool) $this->cancelled_on != null;\n }", "public function needsCancel($request, $context) {\n return FALSE;\n }", "public function isCancelled()\n {\n return $this->status === self::STATUS_CANCELLED;\n }", "public function testApproveDenyNotHrAndAdmin() {\n\t\t$this->setExpectedException('MissingActionException');\n\t\t$userRoles = [\n\t\t\tUSER_ROLE_USER => '',\n\t\t\tUSER_ROLE_USER | USER_ROLE_SECRETARY => 'secret',\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\tforeach ($userRoles as $userRole => $userPrefix) {\n\t\t\t$userInfo = [\n\t\t\t\t'role' => $userRole,\n\t\t\t\t'prefix' => $userPrefix,\n\t\t\t];\n\t\t\t$this->applyUserInfo($userInfo);\n\t\t\t$this->generateMockedController();\n\t\t\t$url = [\n\t\t\t\t'controller' => 'deferred',\n\t\t\t\t'action' => 'approve',\n\t\t\t\t'3',\n\t\t\t];\n\t\t\tif (!empty($userPrefix)) {\n\t\t\t\t$url['prefix'] = $userPrefix;\n\t\t\t\t$url[$userPrefix] = true;\n\t\t\t}\n\t\t\t$this->testAction($url, $opt);\n\t\t\t$this->checkIsNotAuthorized();\n\t\t\t$this->checkRedirect(true);\n\t\t}\n\t}", "function _reconfirm_cheat_code()\n\t{\n\t\t//If discount is applied, do a conditional-check again\n\t\tif($this->cart->is_discount_applied())\n\t\t{\n\t\t\t$coupon = $this->cart->discount_info();\n\t\t\tif($this->_can_apply_code($coupon) == false)\n\t\t\t{\n\t\t\t\t$this->cart->remove_discount();\n\t\t\t}\n\t\t}\n\t}", "public function testDeleteUnsuccessfulReason()\n {\n }", "function ostGetCanceledStatusId()\r\n{\r\n\treturn 1;\r\n}", "public function uninappropriate( $notes, $toggle ) {\n\t\tif (\n\t\t\t$this->feedback->isFeatured() ||\n\t\t\t$this->feedback->isResolved() ||\n\t\t\t$this->feedback->isNonActionable() ||\n\t\t\t!$this->feedback->isInappropriate() ||\n\t\t\t$this->feedback->isArchived() ||\n\t\t\t$this->feedback->isHidden() ||\n\t\t\t$this->feedback->isOversighted()\n\t\t) {\n\t\t\t$this->error = 'articlefeedbackv5-invalid-feedback-state';\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->feedback->aft_feature = 0;\n\t\t$this->feedback->aft_resolve = 0;\n\t\t$this->feedback->aft_noaction = 0;\n\t\t$this->feedback->aft_inappropriate = 0;\n\t\t$this->feedback->aft_archive = 0;\n\t\t$this->feedback->aft_hide = 0;\n\t\t$this->feedback->aft_oversight = 0;\n\n\t\t$this->logId = $this->log( __FUNCTION__, $this->feedback->aft_page, $this->feedback->aft_id, $notes, $this->user );\n\n\t\treturn true;\n\t}" ]
[ "0.74521893", "0.70373327", "0.6315296", "0.63038063", "0.57395744", "0.56890845", "0.5681462", "0.56334496", "0.56164235", "0.5599066", "0.55465937", "0.545727", "0.5432743", "0.53712845", "0.5361333", "0.53519535", "0.5344831", "0.5328303", "0.531242", "0.5265989", "0.5263603", "0.5260737", "0.52453035", "0.5233752", "0.52137023", "0.5197113", "0.51960486", "0.51795053", "0.51788825", "0.5178762", "0.51781577", "0.5153359", "0.51529527", "0.5150202", "0.5092118", "0.50919354", "0.5086536", "0.5063682", "0.50618696", "0.5050291", "0.5044457", "0.50415105", "0.50384605", "0.50336987", "0.50270414", "0.5023546", "0.50217307", "0.5021474", "0.50098324", "0.50082505", "0.50071955", "0.50005466", "0.5000309", "0.4992218", "0.4988781", "0.498833", "0.49807146", "0.496989", "0.4968603", "0.49633163", "0.49598628", "0.4953241", "0.49502227", "0.49214575", "0.49137774", "0.49135998", "0.4911262", "0.49095014", "0.49057907", "0.4892552", "0.48905274", "0.48854172", "0.48795363", "0.48768723", "0.48766288", "0.48673645", "0.48573935", "0.4854594", "0.48498642", "0.4849781", "0.48475358", "0.48456135", "0.4834091", "0.48326722", "0.4814896", "0.4812719", "0.48125505", "0.48086035", "0.48003316", "0.47988695", "0.47847307", "0.4784284", "0.47832602", "0.47782817", "0.47773597", "0.4775", "0.4771951", "0.47589803", "0.47527438", "0.4746459" ]
0.74224234
1
Tests that 1 confirmed_disagreed gets marked as new
public function testOneDisagreedNoCancelledIsNew() { $history = $this->getMockHistory(array( 'getCountConfirmedDisagreed' => 1, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testOneDisagreedNoCancelIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneCancelledOneDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function test_wp_create_user_request_confirmed_status() {\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data', array(), 'confirmed' );\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 'request-confirmed', $post->post_status );\n\t}", "protected function sanityCheck(&$confirmed)\n\t\t{\n\t\t\t// because delete operation can not delete message\n\t\t\t// from different user\n\t\t\t\n\t\t\tif ($confirmed < 0 || $confirmed > 1)\n\t\t\t{\n\t\t\t\t$confirmed = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif (!$this->randomKeyMatch())\n\t\t\t{\n\t\t\t\t$confirmed = 0;\n\t\t\t}\n\t\t}", "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function confirm() {\n\t\t\t\n\t\t\t$this->status = 'confirmed';\n\t\t\t$this->save();\n\t\t}", "public function acknowledge(): bool\n\t{\n\t\t$this->acknowledged_at = Carbon::now();\n\n\t\treturn $this->save();\n\t}", "public function confirm()\n {\n $this->confirmed = true;\n $this->confirmation_token = null;\n\n $this->save();\n }", "private function confirm()\n {\n // if 1, direct approve\n\n $load = $this->load;\n\n $fleetCount = $load->fleet_count;\n\n if($fleetCount > 1) {\n $loadTrips = $load->confirmed_trips()\n ->count()\n ;\n } else {\n $loadTrips = 1;\n }\n\n if($loadTrips == $fleetCount) {\n\n //@todo: send confirm notifications\n\n $load->status = Load::STATUS_CONFIRMED;\n $load->save();\n }\n\n }", "public function testPending()\n {\n $this->assertTrue($this->kittyUser->isPending());\n $returnedKittyUser = $this->kittyUser->setPending(false);\n $this->assertSame($this->kittyUser, $returnedKittyUser);\n $this->assertFalse($this->kittyUser->isPending());\n }", "public function testItCanRejectASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/reject/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 0,\n ]);\n }", "public function mark_booking_confirmed() {\n if ( ! current_user_can( 'dokan_manage_bookings' ) ) {\n wp_die( __( 'You do not have sufficient permissions to access this page.', 'dokan' ) );\n }\n\n if ( ! check_admin_referer( 'wc-booking-confirm' ) ) {\n wp_die( __( 'You have taken too long. Please go back and retry.', 'dokan' ) );\n }\n\n $booking_id = isset( $_GET['booking_id'] ) && (int) $_GET['booking_id'] ? (int) $_GET['booking_id'] : '';\n\n if ( ! $booking_id ) {\n die;\n }\n\n // Additional check to see if Seller id is same as current user\n $seller = get_post_meta( $booking_id, '_booking_seller_id', true );\n\n if ( (int) $seller !== dokan_get_current_user_id() ) {\n wp_die( __( 'You do not have sufficient permissions to access this page.', 'dokan' ) );\n }\n\n $booking = get_wc_booking( $booking_id );\n\n if ( $booking->get_status() !== 'confirmed' ) {\n $booking->update_status( 'confirmed' );\n }\n\n wp_safe_redirect( wp_get_referer() );\n die();\n }", "public function confirmEmail()\n {\n $this->mail_confirmed = Carbon::now();\n $this->mail_token = null;\n $this->save();\n }", "public function testItCanApproveASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/approve/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 1,\n ]);\n }", "function _wp_privacy_account_request_confirmed($request_id)\n {\n }", "public function confirmed()\n {\n return $this->rule('confirmed');\n }", "function isRedeemed() {\n // we get if it wasn't used yet\n return $this->getUsed_at() != '';\n }", "public function confirmingDeletion()\n {\n $this->confirmingExpenseDeletion = true;\n }", "public function testShouldGenerateConfirmationCodeOnSave()\n {\n ConfideUser::$app['confide.repository'] = m::mock( 'ConfideRepository' );\n ConfideUser::$app['confide.repository']->shouldReceive('userExists')\n ->with( $this->confide_user )\n ->andReturn( 0 )\n ->once();\n\n // Should send an email once\n ConfideUser::$app['mailer'] = m::mock( 'Mail' );\n ConfideUser::$app['mailer']->shouldReceive('send')\n ->andReturn( null )\n ->once();\n\n $this->populateUser();\n $this->confide_user->confirmation_code = '';\n $this->confide_user->confirmed = false;\n\n $old_cc = $this->confide_user->confirmation_code;\n\n $this->assertTrue( $this->confide_user->save() );\n\n $new_cc = $this->confide_user->confirmation_code;\n\n // Should have generated a new confirmation code\n $this->assertNotEquals( $old_cc, $new_cc );\n }", "public function testFlagNarrativeRelationship()\n {\n $narrativeCreated = new Narrative;\n\n $date = date('Y-m-d H:i:s');\n\n $narrativeCreated->TopicID = 1;\n $narrativeCreated->CategoryID = 1;\n $narrativeCreated->LanguageID = 1;\n $narrativeCreated->DateCreated = $date;\n $narrativeCreated->Name = \"Test\";\n $narrativeCreated->Agrees = 1;\n $narrativeCreated->Disagrees = 1;\n $narrativeCreated->Indifferents = 1;\n $narrativeCreated->Published = true;\n\n $narrativeCreated->save();\n\n $flagCreated = new Flag;\n\n $flagCreated->NarrativeID = 1;\n $flagCreated->CommentID = NULL;\n $flagCreated->Comment = \"Test\";\n\n $flagCreated->save();\n\n $narrative = Flag::find(1)->narrative();\n $this->assertNotNull($narrative);\n\n }", "public function markAsUnpaid() {\n $this->status = parent::STATUS_APPROVED_BY_USER;\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "function _wp_privacy_account_request_confirmed_message($request_id)\n {\n }", "public function markAsPending() {\n $this->status = parent::STATUS_PENDING;\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "public function subscriptionConfirmed()\n {\n return $this->status == 'CONFIRMED' ? true : false;\n }", "public function test__it_should_be_block_close_stock_removal_when_has_product_confirmed()\n {\n $removal = Removal::create();\n\n // enviado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 2,\n ]);\n\n // confirmado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 1,\n ]);\n\n $this->json('POST', \"/api/estoque/retirada/fechar/{$removal->id}\")\n ->seeStatusCode(400)\n ->seeJson([\n 'status' => 'ValidationFail'\n ]);\n }", "function mark_notification() {\n\t\tif ( check_ajax_referer( 'ht-dms', 'nonce' ) ) {\n\t\t\t$nID = pods_v_sanitized( 'nID', $_REQUEST );\n\t\t\t$value = ( pods_v( 'mark', $_REQUEST ) );\n\n\t\t\tif ( $nID && in_array( $value, array( 1, 0 ) ) ) {\n\t\t\t\t$id = ht_dms_notification_class()->viewed( $nID, null, $value );\n\n\t\t\t\tif ( $id == $nID ) {\n\t\t\t\t\twp_die( 1 );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\twp_die( 0 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "public function getHasBeenRejectedBefore(): bool;", "public function testFlagCreationNarrative()\n {\n $flagCreated = new Flag;\n\n $flagCreated->NarrativeID = 1;\n $flagCreated->CommentID = NULL;\n $flagCreated->Comment = \"Test\";\n\n $flagCreated->save();\n\n $insertedId = $flagCreated->FlagID;\n\n $flagFetched = Flag::find($insertedId);\n\n $this->assertEquals(1, $flagFetched->NarrativeID);\n $this->assertEquals(NULL, $flagFetched->CommentID);\n $this->assertEquals(\"Test\", $flagFetched->Comment);\n\n $flagFetched->delete();\n\n $flagFetched = Flag::find($insertedId);\n\n $this->assertNull($flagFetched);\n\n }", "public function isConfirmada(): bool\n {\n return $this->getStatus() === self::STATUS_CONFIRMADA;\n }", "function wcfm_mark_as_recived() {\r\n\t\tglobal $WCFM, $WCFMu, $woocommerce, $wpdb;\r\n\t\t\r\n\t\tif ( !empty( $_POST['orderitemid'] ) ) {\r\n $order_id = $_POST['orderid']; \r\n\t\t\t$order = wc_get_order( $order_id );\r\n\t\t\t$product_id = $_POST['productid'];\r\n $order_item_id = $_POST['orderitemid'];\r\n \r\n //$comment_id = $order->add_order_note( sprintf( __( 'Item(s) <b>%s</b> received by customer.', 'wc-frontend-manager-ultimate' ), get_the_title( $product_id ) ), '1');\r\n \r\n // Keep Tracking URL as Order Item Meta\r\n\t\t\t$sql = \"INSERT INTO {$wpdb->prefix}woocommerce_order_itemmeta\";\r\n\t\t\t$sql .= ' ( `meta_key`, `meta_value`, `order_item_id` )';\r\n\t\t\t$sql .= ' VALUES ( %s, %s, %s )';\r\n\t\t\t\r\n\t\t\t$confirm_message = __( 'YES', 'wc-frontend-manager-ultimate' );\r\n\t\r\n\t\t\t$wpdb->get_var( $wpdb->prepare( $sql, 'wcfm_mark_as_recived', $confirm_message, $order_item_id ) );\r\n\t\t\t\r\n\t\t\t$vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $product_id );\r\n\t\t\t\r\n\t\t\t// WCfM Marketplace Table Update\r\n\t\t\tif( $vendor_id && (wcfm_is_marketplace() == 'wcfmmarketplace') ) {\r\n\t\t\t\t$wpdb->query(\"UPDATE {$wpdb->prefix}wcfm_marketplace_orders SET shipping_status = 'completed' WHERE order_id = $order_id and vendor_id = $vendor_id and item_id = $order_item_id\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Notification\r\n\t\t\t$wcfm_messages = sprintf( __( 'Customer marked <b>%s</b> received.', 'wc-frontend-manager-ultimate' ), get_the_title( $product_id ) );\r\n\t\t\t$WCFM->wcfm_notification->wcfm_send_direct_message( -1, 0, 0, 1, $wcfm_messages, 'shipment_received' );\r\n\t\t\t\r\n\t\t\t// Vendor Notification\r\n\t\t\tif( $vendor_id ) {\r\n\t\t\t\t$WCFM->wcfm_notification->wcfm_send_direct_message( -2, $vendor_id, 0, 1, $wcfm_messages, 'shipment_received' );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// WC Order Note\r\n\t\t\t$comment_id = $order->add_order_note( $wcfm_messages, '1');\r\n\t\t\t\r\n\t\t\tdo_action( 'wcfm_after_order_mark_received', $order_id, $order_item_id, $product_id );\r\n }\r\n die;\r\n\t}", "public function testAccessTokenAlreadyRevokedReturnsFalse(): void\n {\n // Collects a random User.\n $model = $this->model\n ->newQuery()\n ->where('revoked', true)\n ->inRandomOrder()\n ->first();\n\n // Performs test.\n $result = $this->repository->revoke(new AccessToken($model->getAttributes()));\n\n // Performs assertion.\n $this->assertFalse(\n $result,\n 'The revoke operation should have returned true'\n );\n }", "public function isConfirmed()\n {\n return $this->confirmation;\n }", "public function test_completed_request_does_not_block_new_request() {\n\t\t// Update first request.\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_status' => 'request-completed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t// Second request.\n\t\t$actual = wp_create_user_request( self::$registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( self::$registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function is_confirmed() {\r\n\t\tif ($this->user_id) {\r\n\t\t\t$sql = \"SELECT type FROM `users` WHERE user_id = '$this->user_id' AND type = '\" . self::UNCONFIRMED . \"'\";\r\n\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\tor die ($this->dbc->error);\r\n\t\t\treturn $result->num_rows == 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UnexpectedValueException('UnexpectedValueException occured on method call is_confirmed because the user id is invalid');\r\n\t\t}\r\n\t}", "public function approve()\n {\n // Make sure that all necessary payment plugins are loaded at this point.\n $this->getDi()->plugins_payment->loadEnabled();\n if ($this->isConfirmed())\n return true;\n $old_status = $this->is_confirmed;\n $this->is_confirmed = self::IS_CONFIRMED_CONFIRMED;\n\n $this->updateSelectedFields('is_confirmed');\n $saved = array();\n foreach ($this->data()->getAll() as $k => $v) {\n if (strpos($k, self::SAVED_TRANSACTION_KEY) !== false) {\n list(, $time, $payment_id) = explode('-', $k);\n $saved[$time] = array($payment_id, $v);\n }\n }\n ksort($saved);\n foreach ($saved as $time => $v) {\n $this->addAccessPeriod($v[1], $v[0] ? $v[0] : null);\n $this->data()->set(self::SAVED_TRANSACTION_KEY . '-' . $time . '-' . $v[0], null)->update();\n }\n if ($old_status == self::IS_CONFIRMED_NOT_CONFIRMED)\n {\n $this->sendApprovedEmail();\n $this->getDi()->hook->call(Am_Event::INVOICE_AFTER_APPROVE, array('invoice' => $this));\n }\n return true;\n }", "static function pmpro_checkout_confirmed($pmpro_confirmed)\n\t\t{\n\t\t\tglobal $pmpro_msg, $pmpro_msgt, $pmpro_level, $current_user, $pmpro_review, $pmpro_paypal_token, $discount_code, $bemail;\n\n\t\t\t//PayPal Express Call Backs\n\t\t\tif(!empty($_REQUEST['review']))\n\t\t\t{\n\t\t\t\tif(!empty($_REQUEST['PayerID']))\n\t\t\t\t\t$_SESSION['payer_id'] = sanitize_text_field($_REQUEST['PayerID']);\n\t\t\t\tif(!empty($_REQUEST['paymentAmount']))\n\t\t\t\t\t$_SESSION['paymentAmount'] = sanitize_text_field($_REQUEST['paymentAmount']);\n\t\t\t\tif(!empty($_REQUEST['currencyCodeType']))\n\t\t\t\t\t$_SESSION['currCodeType'] = sanitize_text_field($_REQUEST['currencyCodeType']);\n\t\t\t\tif(!empty($_REQUEST['paymentType']))\n\t\t\t\t\t$_SESSION['paymentType'] = sanitize_text_field($_REQUEST['paymentType']);\n\n\t\t\t\t$morder = new MemberOrder();\n\t\t\t\t$morder->getMemberOrderByPayPalToken(sanitize_text_field($_REQUEST['token']));\n\t\t\t\t$morder->Token = $morder->paypal_token; $pmpro_paypal_token = $morder->paypal_token;\n\t\t\t\tif($morder->Token)\n\t\t\t\t{\n\t\t\t\t\tif($morder->Gateway->getExpressCheckoutDetails($morder))\n\t\t\t\t\t{\n\t\t\t\t\t\t$pmpro_review = true;\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$pmpro_msg = $morder->error;\n\t\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\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$pmpro_msg = __(\"The PayPal Token was lost.\", 'paid-memberships-pro' );\n\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(empty($pmpro_msg) &&\n\t\t\t\t(!empty($_REQUEST['confirm']) ||\n\t\t\t\t(pmpro_getOption('paypalexpress_skip_confirmation') && $pmpro_review))\n\t\t\t)\n\t\t\t{\n\t\t\t\t$morder = new MemberOrder();\n\t\t\t\t$morder->getMemberOrderByPayPalToken(sanitize_text_field($_REQUEST['token']));\n\t\t\t\t$morder->Token = $morder->paypal_token; $pmpro_paypal_token = $morder->paypal_token;\n\t\t\t\tif($morder->Token)\n\t\t\t\t{\n\t\t\t\t\t//set up values\n\t\t\t\t\t$morder->membership_id = $pmpro_level->id;\n\t\t\t\t\t$morder->membership_name = $pmpro_level->name;\n\t\t\t\t\t$morder->discount_code = $discount_code;\n\t\t\t\t\t$morder->InitialPayment = pmpro_round_price( $pmpro_level->initial_payment );\n\t\t\t\t\t$morder->PaymentAmount = pmpro_round_price( $pmpro_level->billing_amount );\n\t\t\t\t\t$morder->ProfileStartDate = date_i18n(\"Y-m-d\") . \"T0:0:0\";\n\t\t\t\t\t$morder->BillingPeriod = $pmpro_level->cycle_period;\n\t\t\t\t\t$morder->BillingFrequency = $pmpro_level->cycle_number;\n\t\t\t\t\t$morder->Email = $bemail;\n\n\t\t\t\t\t//setup level var\n\t\t\t\t\t$morder->getMembershipLevelAtCheckout();\n\n\t\t\t\t\t//tax\n\t\t\t\t\t$morder->subtotal = $morder->InitialPayment;\n\t\t\t\t\t$morder->getTax();\n\t\t\t\t\tif($pmpro_level->billing_limit)\n\t\t\t\t\t\t$morder->TotalBillingCycles = $pmpro_level->billing_limit;\n\n\t\t\t\t\tif(pmpro_isLevelTrial($pmpro_level))\n\t\t\t\t\t{\n\t\t\t\t\t\t$morder->TrialBillingPeriod = $pmpro_level->cycle_period;\n\t\t\t\t\t\t$morder->TrialBillingFrequency = $pmpro_level->cycle_number;\n\t\t\t\t\t\t$morder->TrialBillingCycles = $pmpro_level->trial_limit;\n\t\t\t\t\t\t$morder->TrialAmount = pmpro_round_price( $pmpro_level->trial_amount );\n\t\t\t\t\t}\n\n\t\t\t\t\tif($morder->confirm())\n\t\t\t\t\t{\n\t\t\t\t\t\t$pmpro_confirmed = true;\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$pmpro_msg = $morder->error;\n\t\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\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$pmpro_msg = __(\"The PayPal Token was lost.\", 'paid-memberships-pro' );\n\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!empty($morder))\n\t\t\t\treturn array(\"pmpro_confirmed\"=>$pmpro_confirmed, \"morder\"=>$morder);\n\t\t\telse\n\t\t\t\treturn $pmpro_confirmed;\n\t\t}", "public function testFlagCommentRelationship()\n {\n $narrativeCreated = new Narrative;\n\n $date = date('Y-m-d H:i:s');\n\n $narrativeCreated->TopicID = 1;\n $narrativeCreated->CategoryID = 1;\n $narrativeCreated->LanguageID = 1;\n $narrativeCreated->DateCreated = $date;\n $narrativeCreated->Name = \"Test\";\n $narrativeCreated->Agrees = 1;\n $narrativeCreated->Disagrees = 1;\n $narrativeCreated->Indifferents = 1;\n $narrativeCreated->Published = true;\n\n $narrativeCreated->save();\n\n $commentCreated = Comment::create(array('NarrativeID'=>1,'Name'=>'test','Agrees'=>0,'Indifferents'=>1,'Disagrees'=>1,'DateCreated'=>date('Y-m-d H:i:s'), 'Comment'=>'TEST'));\n \n $flagCreated = new Flag;\n\n $flagCreated->NarrativeID = NULL;\n $flagCreated->CommentID = 1;\n $flagCreated->Comment = \"Test\";\n\n $flagCreated->save();\n\n $comment = Flag::find(1)->comment();\n $this->assertNotNull($comment);\n\n }", "public function testShouldNotSaveDuplicated()\n {\n ConfideUser::$app['confide.repository'] = m::mock( 'ConfideRepository' );\n ConfideUser::$app['confide.repository']->shouldReceive('userExists')\n ->with( $this->confide_user )\n ->andReturn( 1 )\n ->once();\n\n $this->populateUser();\n $this->confide_user->confirmation_code = '';\n $this->confide_user->confirmed = false;\n\n $this->assertFalse( $this->confide_user->save() );\n }", "public function testConfirmWithoutCodeFail() {\n //avoid creating discounts with same referer and let the discount action be set before we test it\n sleep(1);\n\n // create new discount of type 2\n $discount = $this->createNewCustomerDiscount(array('type' => 2));\n\n $this->dispatch('/discount/confirm/referer/' . $referer);\n $this->assertController('discount');\n $this->assertAction('confirm');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n }", "function testResendVerification() {\n $this->assertFalse($this->oObject->resendVerification());\n }", "public function checkForAnuallyRecurring()\n {\n // not supported\n }", "public function test_completed_request_does_not_block_new_request_for_unregistered_user() {\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_author' => 0,\n\t\t\t\t'post_title' => self::$non_registered_user_email,\n\t\t\t\t'post_status' => 'request-failed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 0, (int) $post->post_author );\n\t\t$this->assertSame( 'export_personal_data', $post->post_name );\n\t\t$this->assertSame( self::$non_registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function isRedelivered();", "public function filterConfirmed(bool $confirmed): self;", "public function isPending(): bool;", "public function verified()\n {\n $this->verified = 1;\n $this->email_token = null;\n $this->save();\n }", "public function confirmed(string|int|float $message): self\n {\n return $this->addMessage(new Confirmed($message));\n }", "public function isApproved()\n {\n\n return false;\n }", "function flagReminded($subscriptionId, $reminderType) {\n\t\t$this->update(\n\t\t\tsprintf(\n\t\t\t\t'UPDATE subscriptions SET %s=%s WHERE subscription_id=?',\n\t\t\t\t$reminderType==SUBSCRIPTION_REMINDER_FIELD_BEFORE_EXPIRY?'date_reminded_before':'date_reminded_after',\n\t\t\t\t$this->datetimeToDB(Core::getCurrentDate())\n\t\t\t),\n\t\t\tarray((int) $subscriptionId)\n\t\t);\n\t}", "public function markAsActivate() : bool\n {\n $this->is_active = 1;\n $this->paid = 1;\n //$this->grace_period_ends = new RawValue('NULL');\n $this->ends_at = null; //new rawValue('NULL');\n $this->next_due_payment = $this->ends_at;\n $this->is_cancelled = 0;\n return $this->update();\n }", "public function testIsMarkedUndoneIfDone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->task->setIsDone(true);\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(false, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme à faire.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function isAwaitingConfirmation() {\n if(isset($this->data['charge']))\n return $this->data['charge']['status'] === 'successful' ? false : true;\n else\n return true;\n }", "public function testCreateRecurExceptionAllFollowingPreserveAttendeeStatus()\n {\n $from = new Tinebase_DateTime('2012-02-01 00:00:00');\n $until = new Tinebase_DateTime('2012-02-29 23:59:59');\n \n $event = new Calendar_Model_Event(array(\n 'summary' => 'Some Daily Event',\n 'dtstart' => '2012-02-03 09:00:00',\n 'dtend' => '2012-02-03 10:00:00',\n 'rrule' => 'FREQ=DAILY;INTERVAL=1',\n 'container_id' => $this->_testCalendar->getId(),\n 'attendee' => $this->_getAttendee(),\n ));\n \n $persistentEvent = $this->_controller->create($event);\n $persistentSClever = Calendar_Model_Attender::getAttendee($persistentEvent->attendee, $event->attendee[1]);\n \n // accept series for sclever\n $persistentSClever->status = Calendar_Model_Attender::STATUS_ACCEPTED;\n $this->_controller->attenderStatusUpdate($persistentEvent, $persistentSClever, $persistentSClever->status_authkey);\n \n // update \"allfollowing\" w.o. scheduling change\n $persistentEvent = $this->_controller->get($persistentEvent->getId());\n $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');\n $recurSet = Calendar_Model_Rrule::computeRecurrenceSet($persistentEvent, $exceptions, $from, $until);\n \n $recurSet[5]->description = 'From now on, everything will be better'; //2012-02-09 \n $updatedPersistentEvent = $this->_controller->createRecurException($recurSet[5], FALSE, TRUE);\n \n $updatedPersistentSClever = Calendar_Model_Attender::getAttendee($updatedPersistentEvent->attendee, $event->attendee[1]);\n $this->assertEquals(Calendar_Model_Attender::STATUS_ACCEPTED, $updatedPersistentSClever->status, 'status must not change');\n }", "public function pending(int $flags): bool {}", "public function testCheckExpiredRequest1(): void\n {\n $user = new User();\n\n $userChange = new UserChanges();\n $userChange->setExpiresAt(new \\DateTimeImmutable(\\sprintf('+%d seconds', 100)));\n\n $this->userChangeRep\n ->method('findOneBy')\n ->willReturn($userChange);\n\n $result = $this->changeMailHelper->checkExpiredRequest($user);\n $this->assertFalse($result);\n }", "public function isApproved(): bool;", "public function testPatchReviewerRequiredToggle()\n {\n $this->createChange();\n Review::createFromChange('1')->save()->updateFromChange('1')\n ->setParticipantData('nonadmin', true, 'required')->addVote('nonadmin', 1)\n ->save();\n\n // there shouldn't be any tasks but proccess just to be safe\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify the starting state is good\n $this->assertSame(\n array(\n 'admin' => array(),\n 'nonadmin' => array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n )\n ),\n Review::fetch('2', $this->p4)->getParticipantsData()\n );\n\n $expected = array(\n 'admin' => array(), // as they are the author; can't get rid of em\n 'nonadmin' => array('vote' => array('value' => 1, 'version' => 1, 'isStale' => false))\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_POST)\n ->setPost(new Parameters(array('required' => false)))\n ->setQuery(new Parameters(array('_method' => 'patch')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n\n\n // now try using patch and setting it to required\n $expected['nonadmin'] = array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_PATCH)\n ->setPost(new Parameters(array('required' => '1')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n }", "function test_treatments_report_blocked_true()\n {\n $this->seed();\n\n $user = User::where('email', '=', '[email protected]')->first();\n \n $token = JWTAuth::fromUser($user);\n $treatments = Treatment::factory()\n ->count(3)\n ->for($user)\n ->create(['public' => 1]);\n $treatment = Treatment::first();\n $response = $this->json('POST', '/api/report/'.$treatment->id.'?token='.$token);\n $user = User::where('email', '=', '[email protected]')->first();\n \n $token = JWTAuth::fromUser($user);\n $response = $this->json('POST', '/api/report/'.$treatment->id.'?token='.$token);\n $response->assertOk()->assertJsonFragment(['isReported'=>true]);\n }", "public function verified()\n {\n $this->verified = 1;\n $this->email_token = null;\n $this->save();\n }", "public function testIsMarkedDoneIfUndone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(true, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme faite.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function markAsPaid() {\n $this->status = parent::STATUS_PAID;\n $this->admin_id = Yii::app()->user->getId();\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "public function declined()\n\t{\n\t\treturn !$this->approved();\n\t}", "public function disapprove()\n {\n return $this->approve(false);\n }", "public function testActionMarkReplies()\n\t{\n\t\t$req = HttpReq::instance();\n\t\t$req->query->topics = 1;\n\n\t\t// Get the controller, call index\n\t\t$controller = new Markasread(new EventManager());\n\t\t$controller->setUser(User::$info);\n\t\t$result = $controller->action_markreplies();\n\n\t\t// Check that the result was set\n\t\t$this->assertEquals('action=unreadreplies', $result, 'Result::' . $result);\n\t}", "public function testFlagRetrieval()\n {\n /*$narratives = Narrative::all();\n\n $this->assertNotEmpty($narratives);*/\n\n }", "public function accept_frnd_req($frnd_id) {\n $userid = $this->session->userdata('logged_in')['id'];\n $data = array(\n 'user_approved' => 1,\n 'active' => 1,\n 'req_accepted' => date('Y-m-d H:i:s')\n );\n $this->Friendsmodel->accept_frnd_req($frnd_id, $userid, $data);\n $data1 = array(\n 'resourse_approved' => 1,\n 'active' => 1,\n 'req_accepted' => date('Y-m-d H:i:s')\n );\n $this->Friendsmodel->accept_frnd_req($userid, $frnd_id, $data1);\n add_notification($frnd_id, $userid,'has accepted your friend request');\n }", "function confirm_reservations($id) {\n global $DB;\n\n $reservation = $DB->get_record('roomscheduler_reservations', array('id' => $id));\n\n $reservations = $DB->get_records('roomscheduler_reservations', array('recurrence_id'=>$reservation->recurrence_id,'location'=>$reservation->location));\n \n foreach($reservations as $res){\n $res->confirm = 1;\n $DB->update_record('roomscheduler_reservations', $res);\n }\n}", "public function testQuarantineExistsGetQuarantinesidExists()\n {\n\n }", "public function markUnapproved()\n {\n $this->Moderated = false;\n $this->write();\n $this->extend('afterMarkUnapproved');\n }", "public function isMissed(): bool\n {\n return $this->status == 'missed';\n }", "function testMarkAsVoted() {\n\t\t/*\n\t\t$mobilePoll = $this->ObjFromFixture('Poll', 'mobile-poll');\n\t\t$mobilePoll->markAsVoted();\n\t\t$this->assertTrue($mobilePoll->hasVoted());\n\t\t*/\n\t}", "public function is_allowed_to_update_feedback($feedback);", "public function isPending()\n {\n return true;\n }", "public function testVerifiedFlag()\n {\n $user = new User();\n\n $this->assertFalse($user->isVerified());\n\n $user->setVerified(true);\n $this->assertTrue($user->isVerified());\n\n $user->setVerified(false);\n $this->assertFalse($user->isVerified());\n }", "public function test_message_can_only_be_voted_on_once() {\n\n $user = User::create('[email protected]', 'secret', 'Jane Doe');\n $this->message->upvote($user);\n $this->message->upvote($user);\n $this->assertEquals(1, $this->message->getUpvotes());\n\n $this->message->downvote($user);\n $this->message->downvote($user);\n $this->assertEquals(1, $this->message->getDownvotes());\n\n }", "protected function tryAgain()\n {\n $this->invoice->status = 'overdue';\n if ($this->invoice->num_tries >= 3) {\n $this->invoice->status = 'error';\n }\n\n $this->invoice->try_on_date = Carbon::tomorrow(env('TIMEZONE'))->timezone('UTC');\n $this->invoice->increment('num_tries');\n $this->invoice->save();\n\n event(new InvoiceWasNotPaid($this->invoice));\n }", "public function testCheckExpiredRequest2(): void\n {\n $user = new User();\n\n $userChange = new UserChanges();\n $userChange->setExpiresAt(new \\DateTimeImmutable(\\sprintf('+%d seconds', -100)));\n\n $this->userChangeRep\n ->method('findOneBy')\n ->willReturn($userChange);\n\n $result = $this->changeMailHelper->checkExpiredRequest($user);\n $this->assertTrue($result);\n }", "private function confirmed ($param)\n {\n $key = $this->key.'_confirmed';\n if (!isset($_POST[$key]))\n {\n $this->SetError('confirmed', 'The '.$this->SpacedKey.' field does not match its confirm counterpart');\n return false;\n }\n if ($this->value !== $_POST[$key])\n {\n $this->SetError('confirmed', 'The '.$this->SpacedKey.' field does not match its confirm counterpart');\n return false;\n }\n return true;\n }", "public function unpaid(): bool\n {\n return in_array($this->status, [self::PENDING]);\n }", "function webform_confirm_email_confirmation_email_add($form, &$form_state) {\n\n if (_webform_confirm_email_verify_email_setup($form['#node']->nid) == FALSE) {\n drupal_set_message(t('Adding a confirmation email without having at least one confirmation request email leads to unwanted behavior. Please create a confirmation request email first.'), 'error');\n\n return FALSE;\n }\n\n $form_state['redirect'] = array(\n 'node/' . $form['#node']->nid . '/webform/confirmation/new',\n );\n}", "public function markPaid()\n {\n $this->order->update(['status' => OrderStatus::PAID]);\n\n $this->notify([\n 'title' => __('Update Status'),\n 'message' => __('This order is marked as paid.'),\n ]);\n }", "public function hasPendingActions()\r\n {\r\n }", "function _webform_confirm_email_edit_confirmation_request_email_submit($form, &$form_state) {\n if ( isset($form_state['values']['eid']) == TRUE\n && isset($form['#node']->nid) == TRUE) {\n $obj['nid'] = $form['#node']->nid;\n $obj['email_type'] = WEBFORM_CONFIRM_EMAIL_CONFIRMATION_REQUEST;\n $obj['redirect_url'] = ($form_state['values']['redirect_url_option'] === 'custom') ? $form_state['values']['redirect_url_custom'] : NULL;\n\n if (empty($form['eid']['#value']) == TRUE) {\n //-> new email\n $obj['eid'] = $form_state['values']['eid'];\n drupal_write_record(\n 'webform_confirm_email',\n $obj\n );\n }\n else {\n $obj['eid'] = $form['eid']['#value'];\n drupal_write_record(\n 'webform_confirm_email',\n $obj,\n array('nid', 'eid')\n );\n }\n }\n}", "function it_exchange_abandoned_carts_mark_email_opened( $email_id, $cart_id ) {\n\t$cart_emails = get_post_meta( $cart_id, '_it_exchange_abandoned_cart_emails_sent', true );\n\n\t// Make sure this email hasn't already been counted.\n\tforeach( (array) $cart_emails as $key => $email ) {\n\t\tif ( ! empty( $email['email_id'] ) && $email['email_id'] == $email_id && ! empty( $email['opened'] ) ) {\n\t\t\treturn;\n\t\t} else if ( ! empty( $email['email_id'] ) && $email['email_id'] == $email_id ) {\n\t\t\t$cart_emails[$key]['opened'] = time();\n\t\t\tupdate_post_meta( $cart_id, '_it_exchange_abandoned_cart_emails_sent', $cart_emails );\n\t\t}\n\t}\n\n\t// If we made it this far the abadoned cart's sent_email has been flagged as open and we need to increment the opens for the email.\n\t$opened = (int) get_post_meta( $email_id, '_it_exchange_abandoned_cart_emails_opened', true );\n\tupdate_post_meta( $email_id, '_it_exchange_abandoned_cart_emails_opened', ( $opened + 1 ) );\n\n\t// Lets also credit any future purchases to this email\n\tupdate_post_meta( $cart_id, '_it_exchange_abandoned_cart_conversion_source', $email_id );\n\n}", "public function isVerwijderd( )\r\n {\r\n return false;\r\n }", "public function canBeDeclined()\n {\n return $this->isAwaitingFee();\n }", "function _reconfirm_cheat_code()\n\t{\n\t\t//If discount is applied, do a conditional-check again\n\t\tif($this->cart->is_discount_applied())\n\t\t{\n\t\t\t$coupon = $this->cart->discount_info();\n\t\t\tif($this->_can_apply_code($coupon) == false)\n\t\t\t{\n\t\t\t\t$this->cart->remove_discount();\n\t\t\t}\n\t\t}\n\t}", "public function testVerification()\n {\n Notification::fake();\n\n $this->user->email_verified_at = null;\n\n $this->user->save();\n\n $this->user->notify(new VerifyEmail);\n\n // $request = $this->post('/email/resend');\n //\n // $request->assertSuccessful();\n\n Notification::assertTimesSent(1, VerifyEmail::class);\n\n Notification::assertSentTo($this->user,VerifyEmail::class);\n }", "protected function markConfirmDelete( )\r\n {\r\n $this->_sessie->registerConfirmDelete( $this );\r\n }", "public function incrementRemindersSent()\n {\n $this->reminders_sent = $this->reminders_sent + 1;\n $this->save();\n }", "public function confirm(Appointment $appointment)\n {\n validator($appointment->toArray(), [\n 'status_id' => 'in:2,5', \n ], [\n 'in' => 'The appointment must be pending or rescheduled', \n ])\n ->validate();\n\n $appointment->update([ 'status_id' => 1 ]);\n\n $duplicateAppointmentsQuery = Appointment::with('customer')\n ->where([\n [ 'property_id', $appointment->property_id ], \n [ 'date', $appointment->date ], \n [ 'start_time', $appointment->start_time ], \n [ 'end_time', $appointment->end_time ], \n [ 'id', '!=', $appointment->id ], \n ]);\n\n // reject other appointments\n $duplicateAppointmentsQuery->update([ 'status_id' => 3 ]);\n\n $rejectedCustomers = $duplicateAppointmentsQuery->get()->map(function ($appointment) {\n return $appointment->customer;\n });\n\n // sms notification\n try {\n $appointment->load('property');\n\n $appointment->customer->notify(new AppointmentConfirmed($appointment));\n\n if ($rejectedCustomers->isNotEmpty()) {\n Notification::send($rejectedCustomers, new AppointmentRejected($appointment));\n }\n } catch (\\Exception $e) {\n logger()->error($e);\n }\n\n return response([\n 'message' => 'Appointment Confirmed', \n ]);\n }", "function pre_confirmation_check() {\r\n return true;\r\n }", "function xgb_mark_requests_as_read() {\n\t\n\t// Security Check\n\tif( !isset( $_POST['xgb_nonce_for_request'] ) || !wp_verify_nonce( $_POST['xgb_nonce_for_request'], 'xgb-nonce-x' ) )\n\t\tdie();\n\t\n\tglobal $wpdb;\n\t$wpdb->query(\"UPDATE {$wpdb->prefix}xgb_offer SET notification_read_status=1 WHERE ID={$_POST['offer_id']}\");\n\t\n\tdie();\t// Always die() While Working With Ajax\n}", "public function notifyOne() : bool{}", "public function isRedeemed()\n\t{\n\t\tif (!$this->exists())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif ($this->get('redeemed_by'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function askForFeeConfirmation()\n {\n }", "public function testICanGetANewNote()\n {\n $this->get('/new');\n $this->assertTrue(false);\n }", "protected function _fcpoMandateAcceptanceNeeded() \n {\n $aMandate = $this->_oFcpoHelper->fcpoGetSessionVariable('fcpoMandate');\n if($aMandate && array_key_exists('mandate_status', $aMandate) !== false && $aMandate['mandate_status'] == 'pending') {\n if(array_key_exists('mandate_text', $aMandate) !== false) {\n return true;\n }\n }\n return false;\n }", "public function getConfirmation()\n {\n return $this->readOneof(1);\n }" ]
[ "0.65873545", "0.6323322", "0.6242718", "0.6179043", "0.61374116", "0.60621715", "0.6042085", "0.6000938", "0.5991", "0.5928303", "0.58697534", "0.5827924", "0.58138883", "0.5786598", "0.5782922", "0.57350796", "0.5705499", "0.5698207", "0.56610835", "0.5638794", "0.5623922", "0.56104535", "0.5602116", "0.55992967", "0.5596045", "0.5595178", "0.55890757", "0.5557183", "0.55313903", "0.5529074", "0.55175805", "0.5510434", "0.5500337", "0.5494907", "0.548816", "0.54277873", "0.54176754", "0.5414176", "0.541001", "0.5405899", "0.54041845", "0.5403771", "0.5400373", "0.53350353", "0.53281426", "0.5324442", "0.53149664", "0.53143483", "0.5309624", "0.5307167", "0.53035945", "0.53010076", "0.5287688", "0.52813566", "0.5277337", "0.52762634", "0.52759254", "0.52581155", "0.52530354", "0.5237773", "0.52291805", "0.52281886", "0.5206341", "0.5198738", "0.51974404", "0.5192986", "0.51919085", "0.51789373", "0.5176674", "0.5152664", "0.51513284", "0.5146387", "0.5144427", "0.51423115", "0.5140512", "0.51281625", "0.51257145", "0.511743", "0.51133806", "0.50935453", "0.5091479", "0.5087106", "0.5083964", "0.5079485", "0.50790423", "0.5077129", "0.5073734", "0.50723207", "0.50697154", "0.50693303", "0.5067411", "0.5065673", "0.5063665", "0.50624406", "0.5058581", "0.5058532", "0.5057982", "0.5056629", "0.5052743", "0.5049363" ]
0.6897816
0
Tests that 2 confirmed_disagreed gets marked as cancel/disagreed
public function testTwoCancelledNoDisagreedIsDisagreed() { $history = $this->getMockHistory(array( 'getCountConfirmedDisagreed' => 2, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneCancelledOneDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelledIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testCancelPayment()\n {\n $this->mockPaymentMapping(\n MiraklMock::ORDER_COMMERCIAL_CANCELED,\n StripeMock::CHARGE_STATUS_AUTHORIZED,\n 8472\n );\n $this->executeCommand();\n $this->assertCount(0, $this->validateReceiver->getSent());\n $this->assertCount(0, $this->captureReceiver->getSent());\n $this->assertCount(1, $this->cancelReceiver->getSent());\n }", "public function testItCanRejectASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/reject/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 0,\n ]);\n }", "protected function sanityCheck(&$confirmed)\n\t\t{\n\t\t\t// because delete operation can not delete message\n\t\t\t// from different user\n\t\t\t\n\t\t\tif ($confirmed < 0 || $confirmed > 1)\n\t\t\t{\n\t\t\t\t$confirmed = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif (!$this->randomKeyMatch())\n\t\t\t{\n\t\t\t\t$confirmed = 0;\n\t\t\t}\n\t\t}", "private function confirm()\n {\n // if 1, direct approve\n\n $load = $this->load;\n\n $fleetCount = $load->fleet_count;\n\n if($fleetCount > 1) {\n $loadTrips = $load->confirmed_trips()\n ->count()\n ;\n } else {\n $loadTrips = 1;\n }\n\n if($loadTrips == $fleetCount) {\n\n //@todo: send confirm notifications\n\n $load->status = Load::STATUS_CONFIRMED;\n $load->save();\n }\n\n }", "public function testItCanApproveASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/approve/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 1,\n ]);\n }", "public function testCancelPresenceOrAbsence(): void {\n $this->drupalLogin($this->adminUser);\n $this->drupalGet($this->getPath());\n if ($this->dialogRouteTest) {\n $this->assertActionExists('edit-cancel', 'Cancel');\n }\n else {\n $this->assertActionNotExists('edit-cancel', 'Cancel');\n }\n }", "public function isButtonValidBrokenSetupMultiplePrimaryActionsGivenExpectFalse() {}", "public function test_manual_CancelOrderRequest() {\n\n // Stop here and mark this test as incomplete.\n// $this->markTestIncomplete(\n// 'skeleton for test_manual_CancelOrderRequest'\n// );\n \n $countryCode = \"SE\";\n $sveaOrderIdToClose = 349698; \n $orderType = \\ConfigurationProvider::INVOICE_TYPE;\n \n $cancelOrderBuilder = new Svea\\CancelOrderBuilder( Svea\\SveaConfig::getDefaultConfig() );\n $cancelOrderBuilder->setCountryCode( $countryCode );\n $cancelOrderBuilder->setOrderId( $sveaOrderIdToClose );\n $cancelOrderBuilder->orderType = $orderType;\n \n $request = new Svea\\AdminService\\CancelOrderRequest( $cancelOrderBuilder );\n $response = $request->doRequest();\n \n ////print_r(\"cancelorderrequest: \"); //print_r( $response ); \n $this->assertInstanceOf('Svea\\AdminService\\CancelOrderResponse', $response);\n $this->assertEquals(1, $response->accepted ); \n $this->assertEquals(0, $response->resultcode ); \n\n }", "public function testConfirmWithoutCodeFail() {\n //avoid creating discounts with same referer and let the discount action be set before we test it\n sleep(1);\n\n // create new discount of type 2\n $discount = $this->createNewCustomerDiscount(array('type' => 2));\n\n $this->dispatch('/discount/confirm/referer/' . $referer);\n $this->assertController('discount');\n $this->assertAction('confirm');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n }", "function _wp_privacy_account_request_confirmed_message($request_id)\n {\n }", "public function test_wp_create_user_request_confirmed_status() {\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data', array(), 'confirmed' );\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 'request-confirmed', $post->post_status );\n\t}", "function _wp_privacy_account_request_confirmed($request_id)\n {\n }", "public function testCanMakeMessageConjunctionTicket()\n {\n $opt = new DocRefundUpdateRefundOptions([\n 'originator' => '0001AA',\n 'originatorId' => '23491193',\n 'refundDate' => \\DateTime::createFromFormat('Ymd', '20031125'),\n 'ticketedDate' => \\DateTime::createFromFormat('Ymd', '20030522'),\n 'references' => [\n new Reference([\n 'type' => Reference::TYPE_TKT_INDICATOR,\n 'value' => 'Y'\n ]),\n new Reference([\n 'type' => Reference::TYPE_DATA_SOURCE,\n 'value' => 'F'\n ])\n ],\n 'tickets' => [\n new Ticket([\n 'number' => '22021541124593',\n 'ticketGroup' => [\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_1,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_2,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_3,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_4,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ])\n ]\n ]),\n new Ticket([\n 'number' => '22021541124604',\n 'ticketGroup' => [\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_1,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ]),\n new TickGroupOpt([\n 'couponNumber' => TickGroupOpt::COUPON_2,\n 'couponStatus' => TickGroupOpt::STATUS_REFUNDED,\n 'boardingPriority' => 'LH07A'\n ])\n ]\n ])\n ],\n 'travellerPrioDateOfJoining' => \\DateTime::createFromFormat('Ymd', '20070101'),\n 'travellerPrioReference' => '0077701F',\n 'monetaryData' => [\n new MonetaryData([\n 'type' => MonetaryData::TYPE_BASE_FARE,\n 'amount' => 401.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_FARE_USED,\n 'amount' => 0.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_FARE_REFUND,\n 'amount' => 401.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_REFUND_TOTAL,\n 'amount' => 457.74,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => MonetaryData::TYPE_TOTAL_TAXES,\n 'amount' => 56.74,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => 'TP',\n 'amount' => 56.74,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => 'OBP',\n 'amount' => 0.00,\n 'currency' => 'EUR'\n ]),\n new MonetaryData([\n 'type' => 'TGV',\n 'amount' => 374.93,\n 'currency' => 'EUR'\n ])\n ],\n 'taxData' => [\n new TaxData([\n 'category' => 'H',\n 'rate' => 16.14,\n 'currencyCode' => 'EUR',\n 'type' => 'DE'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 3.45,\n 'currencyCode' => 'EUR',\n 'type' => 'YC'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 9.67,\n 'currencyCode' => 'EUR',\n 'type' => 'US'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 9.67,\n 'currencyCode' => 'EUR',\n 'type' => 'US'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 3.14,\n 'currencyCode' => 'EUR',\n 'type' => 'XA'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 4.39,\n 'currencyCode' => 'EUR',\n 'type' => 'XY'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 6.28,\n 'currencyCode' => 'EUR',\n 'type' => 'AY'\n ]),\n new TaxData([\n 'category' => 'H',\n 'rate' => 4.00,\n 'currencyCode' => 'EUR',\n 'type' => 'DU'\n ]),\n new TaxData([\n 'category' => '701',\n 'rate' => 56.74,\n 'currencyCode' => 'EUR',\n 'type' => TaxData::TYPE_EXTENDED_TAXES\n ])\n ],\n 'formOfPayment' => [\n new FopOpt([\n 'fopType' => FopOpt::TYPE_MISCELLANEOUS,\n 'fopAmount' => 457.74,\n 'freeText' => [\n new FreeTextOpt([\n 'type' => 'CFP',\n 'freeText' => '##0##'\n ]),\n new FreeTextOpt([\n 'type' => 'CFP',\n 'freeText' => 'IDBANK'\n ])\n ]\n ])\n ],\n 'refundedRouteStations' => [\n 'FRA',\n 'MUC',\n 'JFK',\n 'BKK',\n 'FRA'\n ]\n ]);\n\n $msg = new UpdateRefund($opt);\n\n $this->assertNull($msg->ticketNumber);\n $this->assertNull($msg->structuredAddress);\n $this->assertEmpty($msg->refundedItinerary);\n $this->assertNull($msg->tourInformation);\n $this->assertNull($msg->commission);\n $this->assertNull($msg->pricingDetails);\n $this->assertNull($msg->travellerInformation);\n $this->assertEmpty($msg->interactiveFreeText);\n\n $this->assertEquals('0001AA', $msg->userIdentification->originator);\n $this->assertEquals('23491193', $msg->userIdentification->originIdentification->originatorId);\n\n $this->assertCount(2, $msg->dateTimeInformation);\n $this->assertEquals(UpdateRefund\\DateTimeInformation::OPT_DATE_OF_REFUND, $msg->dateTimeInformation[0]->businessSemantic);\n $this->assertEquals('25', $msg->dateTimeInformation[0]->dateTime->day);\n $this->assertEquals('11', $msg->dateTimeInformation[0]->dateTime->month);\n $this->assertEquals('2003', $msg->dateTimeInformation[0]->dateTime->year);\n\n $this->assertEquals(UpdateRefund\\DateTimeInformation::OPT_DATE_TICKETED, $msg->dateTimeInformation[1]->businessSemantic);\n $this->assertEquals('22', $msg->dateTimeInformation[1]->dateTime->day);\n $this->assertEquals('5', $msg->dateTimeInformation[1]->dateTime->month);\n $this->assertEquals('2003', $msg->dateTimeInformation[1]->dateTime->year);\n\n $this->assertCount(2, $msg->referenceInformation->referenceDetails);\n $this->assertEquals('Y', $msg->referenceInformation->referenceDetails[0]->value);\n $this->assertEquals(UpdateRefund\\ReferenceDetails::TYPE_TKT_INDICATOR, $msg->referenceInformation->referenceDetails[0]->type);\n $this->assertEquals('F', $msg->referenceInformation->referenceDetails[1]->value);\n $this->assertEquals(UpdateRefund\\ReferenceDetails::TYPE_DATA_SOURCE, $msg->referenceInformation->referenceDetails[1]->type);\n\n $this->assertCount(2, $msg->ticket);\n\n $this->assertEquals('22021541124593', $msg->ticket[0]->ticketInformation->documentDetails->number);\n $this->assertNull($msg->ticket[0]->ticketInformation->documentDetails->type);\n $this->assertCount(4, $msg->ticket[0]->ticketGroup);\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_1, $msg->ticket[0]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[0]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[0]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[0]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_2, $msg->ticket[0]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[1]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[1]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[1]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_3, $msg->ticket[0]->ticketGroup[2]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[2]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[2]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[2]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[2]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_4, $msg->ticket[0]->ticketGroup[3]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[0]->ticketGroup[3]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[0]->ticketGroup[3]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[0]->ticketGroup[3]->referenceInformation);\n $this->assertNull($msg->ticket[0]->ticketGroup[3]->actionIdentification);\n\n $this->assertEquals('22021541124604', $msg->ticket[1]->ticketInformation->documentDetails->number);\n $this->assertNull($msg->ticket[1]->ticketInformation->documentDetails->type);\n $this->assertCount(2, $msg->ticket[1]->ticketGroup);\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_1, $msg->ticket[1]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[1]->ticketGroup[0]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[1]->ticketGroup[0]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[1]->ticketGroup[0]->referenceInformation);\n $this->assertNull($msg->ticket[1]->ticketGroup[0]->actionIdentification);\n\n $this->assertEquals(UpdateRefund\\CouponDetails::COUPON_2, $msg->ticket[1]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnNumber);\n $this->assertEquals(UpdateRefund\\CouponDetails::STATUS_REFUNDED, $msg->ticket[1]->ticketGroup[1]->couponInformationDetails->couponDetails->cpnStatus);\n $this->assertEquals('LH07A', $msg->ticket[1]->ticketGroup[1]->boardingPriority->priorityDetails->description);\n $this->assertNull($msg->ticket[1]->ticketGroup[1]->referenceInformation);\n $this->assertNull($msg->ticket[1]->ticketGroup[1]->actionIdentification);\n\n $this->assertEquals('01JAN07', $msg->travellerPriorityInfo->dateOfJoining);\n $this->assertEquals('0077701F', $msg->travellerPriorityInfo->travellerReference);\n $this->assertNull($msg->travellerPriorityInfo->company);\n\n $this->assertEquals(UpdateRefund\\MonetaryDetails::TYPE_BASE_FARE, $msg->monetaryInformation->monetaryDetails->typeQualifier);\n $this->assertEquals(401.00, $msg->monetaryInformation->monetaryDetails->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->monetaryDetails->currency);\n\n $this->assertCount(7, $msg->monetaryInformation->otherMonetaryDetails);\n\n $this->assertEquals('RFU', $msg->monetaryInformation->otherMonetaryDetails[0]->typeQualifier);\n $this->assertEquals(0.00, $msg->monetaryInformation->otherMonetaryDetails[0]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[0]->currency);\n $this->assertEquals('FRF', $msg->monetaryInformation->otherMonetaryDetails[1]->typeQualifier);\n $this->assertEquals(401.00, $msg->monetaryInformation->otherMonetaryDetails[1]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[1]->currency);\n $this->assertEquals('RFT', $msg->monetaryInformation->otherMonetaryDetails[2]->typeQualifier);\n $this->assertEquals(457.74, $msg->monetaryInformation->otherMonetaryDetails[2]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[2]->currency);\n $this->assertEquals('TXT', $msg->monetaryInformation->otherMonetaryDetails[3]->typeQualifier);\n $this->assertEquals(56.74, $msg->monetaryInformation->otherMonetaryDetails[3]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[3]->currency);\n $this->assertEquals('TP', $msg->monetaryInformation->otherMonetaryDetails[4]->typeQualifier);\n $this->assertEquals(56.74, $msg->monetaryInformation->otherMonetaryDetails[4]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[4]->currency);\n $this->assertEquals('OBP', $msg->monetaryInformation->otherMonetaryDetails[5]->typeQualifier);\n $this->assertEquals(0.00, $msg->monetaryInformation->otherMonetaryDetails[5]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[5]->currency);\n $this->assertEquals('TGV', $msg->monetaryInformation->otherMonetaryDetails[6]->typeQualifier);\n $this->assertEquals(374.93, $msg->monetaryInformation->otherMonetaryDetails[6]->amount);\n $this->assertEquals('EUR', $msg->monetaryInformation->otherMonetaryDetails[6]->currency);\n\n $this->assertCount(9, $msg->taxDetailsInformation);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[0]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[0]->taxDetails);\n $this->assertEquals('DE', $msg->taxDetailsInformation[0]->taxDetails[0]->type);\n $this->assertEquals('16.14', $msg->taxDetailsInformation[0]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[0]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[0]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[1]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[1]->taxDetails);\n $this->assertEquals('YC', $msg->taxDetailsInformation[1]->taxDetails[0]->type);\n $this->assertEquals(3.45, $msg->taxDetailsInformation[1]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[1]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[1]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[2]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[2]->taxDetails);\n $this->assertEquals('US', $msg->taxDetailsInformation[2]->taxDetails[0]->type);\n $this->assertEquals(9.67, $msg->taxDetailsInformation[2]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[2]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[2]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[3]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[3]->taxDetails);\n $this->assertEquals('US', $msg->taxDetailsInformation[3]->taxDetails[0]->type);\n $this->assertEquals(9.67, $msg->taxDetailsInformation[3]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[3]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[3]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[4]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[4]->taxDetails);\n $this->assertEquals('XA', $msg->taxDetailsInformation[4]->taxDetails[0]->type);\n $this->assertEquals(3.14, $msg->taxDetailsInformation[4]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[4]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[4]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[5]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[5]->taxDetails);\n $this->assertEquals('XY', $msg->taxDetailsInformation[5]->taxDetails[0]->type);\n $this->assertEquals(4.39, $msg->taxDetailsInformation[5]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[5]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[5]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[6]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[6]->taxDetails);\n $this->assertEquals('AY', $msg->taxDetailsInformation[6]->taxDetails[0]->type);\n $this->assertEquals(6.28, $msg->taxDetailsInformation[6]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[6]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[6]->taxDetails[0]->countryCode);\n\n $this->assertEquals('H', $msg->taxDetailsInformation[7]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[7]->taxDetails);\n $this->assertEquals('DU', $msg->taxDetailsInformation[7]->taxDetails[0]->type);\n $this->assertEquals(4.00, $msg->taxDetailsInformation[7]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[7]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[7]->taxDetails[0]->countryCode);\n\n $this->assertEquals('701', $msg->taxDetailsInformation[8]->taxCategory);\n $this->assertCount(1, $msg->taxDetailsInformation[8]->taxDetails);\n $this->assertEquals(UpdateRefund\\TaxDetails::TYPE_EXTENDED_TAXES, $msg->taxDetailsInformation[8]->taxDetails[0]->type);\n $this->assertEquals(56.74, $msg->taxDetailsInformation[8]->taxDetails[0]->rate);\n $this->assertEquals('EUR', $msg->taxDetailsInformation[8]->taxDetails[0]->currencyCode);\n $this->assertNull($msg->taxDetailsInformation[8]->taxDetails[0]->countryCode);\n\n $this->assertCount(1, $msg->fopGroup);\n $this->assertEquals(FormOfPayment::TYPE_MISCELLANEOUS, $msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->type);\n $this->assertEquals(457.74, $msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->amount);\n $this->assertNull($msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->authorisedAmount);\n $this->assertNull($msg->fopGroup[0]->formOfPaymentInformation->formOfPayment->sourceOfApproval);\n $this->assertCount(2, $msg->fopGroup[0]->interactiveFreeText);\n $this->assertEquals('##0##', $msg->fopGroup[0]->interactiveFreeText[0]->freeText);\n $this->assertEquals('CFP', $msg->fopGroup[0]->interactiveFreeText[0]->freeTextQualification->informationType);\n $this->assertEquals(UpdateRefund\\FreeTextQualification::QUAL_CODED_AND_LITERAL_TEXT, $msg->fopGroup[0]->interactiveFreeText[0]->freeTextQualification->textSubjectQualifier);\n $this->assertEquals('IDBANK', $msg->fopGroup[0]->interactiveFreeText[1]->freeText);\n $this->assertEquals('CFP', $msg->fopGroup[0]->interactiveFreeText[1]->freeTextQualification->informationType);\n $this->assertEquals(UpdateRefund\\FreeTextQualification::QUAL_CODED_AND_LITERAL_TEXT, $msg->fopGroup[0]->interactiveFreeText[1]->freeTextQualification->textSubjectQualifier);\n\n $this->assertCount(5, $msg->refundedRoute->routingDetails);\n $this->assertEquals('FRA', $msg->refundedRoute->routingDetails[0]->station);\n $this->assertEquals('MUC', $msg->refundedRoute->routingDetails[1]->station);\n $this->assertEquals('JFK', $msg->refundedRoute->routingDetails[2]->station);\n $this->assertEquals('BKK', $msg->refundedRoute->routingDetails[3]->station);\n $this->assertEquals('FRA', $msg->refundedRoute->routingDetails[4]->station);\n }", "public function testIsAvailableWithCanceledGuarantee()\n {\n $orderId = 123;\n\n /** @var CaseInterface|\\PHPUnit_Framework_MockObject_MockObject $case */\n $case = $this->getMockBuilder(CaseInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $case->expects($this->once())\n ->method('getGuaranteeDisposition')\n ->willReturn(CaseEntity::GUARANTEE_CANCELED);\n\n $this->caseManagement->expects($this->once())\n ->method('getByOrderId')\n ->with($orderId)\n ->willReturn($case);\n\n $this->assertFalse($this->cancelGuaranteeAbility->isAvailable($orderId));\n }", "public function cancelOrdersInPending()\n {\n //Etape 1 : on recupere pour chaque comptes le nombre de jours pour l'annulation\n $col = Mage::getModel('be2bill/merchandconfigurationaccount')->getCollection();\n $tabLimitedTime = array();\n foreach ($col as $obj) {\n $tabLimitedTime[$obj->getData('id_b2b_merchand_configuration_account')] = $obj->getData('order_canceled_limited_time') != null ? $obj->getData('order_canceled_limited_time') : 0;\n }\n\n //Etape 2\n $collection = Mage::getResourceModel('sales/order_collection')\n ->addFieldToFilter('main_table.state', Mage_Sales_Model_Order::STATE_NEW)\n ->addFieldToFilter('op.method', 'be2bill');\n $select = $collection->getSelect();\n $select->joinLeft(array(\n 'op' => Mage::getModel('sales/order_payment')->getResource()->getTable('sales/order_payment')), 'op.parent_id = main_table.entity_id', array('method', 'additional_information')\n );\n\n Mage::log((string)$collection->getSelect(), Zend_Log::DEBUG, \"debug_clean_pending.log\");\n\n // @var $order Mage_Sales_Model_Order\n foreach ($collection as $order) {\n $addInfo = unserialize($order->getData('additional_information'));\n $accountId = $addInfo['account_id'];\n $limitedTime = (int)$tabLimitedTime[$accountId];\n\n if ($limitedTime <= 0) {\n continue;\n }\n\n $store = Mage::app()->getStore($order->getStoreId());\n $currentStoreDate = Mage::app()->getLocale()->storeDate($store, null, true);\n $createdAtStoreDate = Mage::app()->getLocale()->storeDate($store, strtotime($order->getCreatedAt()), true);\n\n $difference = $currentStoreDate->sub($createdAtStoreDate);\n\n $measure = new Zend_Measure_Time($difference->toValue(), Zend_Measure_Time::SECOND);\n $measure->convertTo(Zend_Measure_Time::MINUTE);\n\n if ($limitedTime < $measure->getValue() && $order->canCancel()) {\n try {\n $order->cancel();\n $order->addStatusToHistory($order->getStatus(),\n // keep order status/state\n Mage::helper('be2bill')->__(\"Commande annulée automatique par le cron car la commande est en 'attente' depuis %d minutes\", $limitedTime));\n $order->save();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n }\n\n return $this;\n }", "public function isConfirmada(): bool\n {\n return $this->getStatus() === self::STATUS_CONFIRMADA;\n }", "function ctr_validateConfirmation(&$ctx)\n{\n $reservation = $ctx['reservation'];\n\n if ($reservation->persons AND $reservation->destination)\n return true;\n\n $ctx['warning'] .= \"Please, do not play with the URL.\\n\";\n\n return false;\n}", "public function declineMultiple(){\n\t\tif(isset($_SESSION['admin_email'])){\n\t\t\t$this->model(\"AdminApproveModel\");\n\t\t\tif(isset($_POST['admin_decline_all'])){\n\t\t\t$approve_all = $this->sanitizeString($_POST['admin_decline_all']);\n\t\t\t$id = $this->sanitizeString($_POST['id']);\n\t\t\t$check_all = $this->sanitizeString($_POST['admin_check_all']);\n\t\t\tif(!empty($check_all)){\n\t\t\t\tAdminApproveModel::where('id', $id)->delete();\n\t\t\t}\n\t\t}\n\t}\n\t}", "public function test__it_should_be_block_close_stock_removal_when_has_product_confirmed()\n {\n $removal = Removal::create();\n\n // enviado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 2,\n ]);\n\n // confirmado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 1,\n ]);\n\n $this->json('POST', \"/api/estoque/retirada/fechar/{$removal->id}\")\n ->seeStatusCode(400)\n ->seeJson([\n 'status' => 'ValidationFail'\n ]);\n }", "private static function filterCancelledOrNeedsUpdate() {\n\t\treturn Fns::reject( Logic::anyPass( [\n\t\t\tpipe(\n\t\t\t\tObj::prop( 'status' ),\n\t\t\t\tFns::unary( 'intval' ),\n\t\t\t\tLst::includes( Fns::__, [ ICL_TM_NOT_TRANSLATED, ICL_TM_ATE_CANCELLED ] )\n\t\t\t),\n\t\t\tObj::prop( 'needs_update' )\n\t\t] ) );\n\t}", "public function testReactTakesPrecedenceOverDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountPaid' => 1,\n\t\t\t'getCountDisagreed' => 2,\n\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_REACT,\n\t\t\t$result\n\t\t);\n\t}", "public function mark_booking_confirmed() {\n if ( ! current_user_can( 'dokan_manage_bookings' ) ) {\n wp_die( __( 'You do not have sufficient permissions to access this page.', 'dokan' ) );\n }\n\n if ( ! check_admin_referer( 'wc-booking-confirm' ) ) {\n wp_die( __( 'You have taken too long. Please go back and retry.', 'dokan' ) );\n }\n\n $booking_id = isset( $_GET['booking_id'] ) && (int) $_GET['booking_id'] ? (int) $_GET['booking_id'] : '';\n\n if ( ! $booking_id ) {\n die;\n }\n\n // Additional check to see if Seller id is same as current user\n $seller = get_post_meta( $booking_id, '_booking_seller_id', true );\n\n if ( (int) $seller !== dokan_get_current_user_id() ) {\n wp_die( __( 'You do not have sufficient permissions to access this page.', 'dokan' ) );\n }\n\n $booking = get_wc_booking( $booking_id );\n\n if ( $booking->get_status() !== 'confirmed' ) {\n $booking->update_status( 'confirmed' );\n }\n\n wp_safe_redirect( wp_get_referer() );\n die();\n }", "private function confirm_approval_right($ngo_and_coop_approval=false, $biz_prem_approval=false, $others_approval=false)\n {\n $tasks_performer = new TasksPerformer;\n if (($ngo_and_coop_approval && !$tasks_performer->is_coop_and_ngo_director())\n || ($biz_prem_approval && !$tasks_performer->is_business_premises_director())\n || ($others_approval && !$tasks_performer->is_director_for_others())\n ) {\n $result = array();\n $result[\"info\"] = \"Sorry! This action cannot be completed\";\n $result[\"status\"] = \"success\";\n $result = json_encode($result);\n echo $result;\n die();\n }\n }", "public function cancellationRequested() : bool;", "public function isCancelRequest(Order $order, array $postData);", "public function testTwoDisciplinesDiffAmtSwap()\n {\n $result = false;\n $student = new StudentProfile();\n $course = new Course();\n $course->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course);\n $course2 = new Course();\n $course2->set(\"department\",\"MUSI\");\n $student->set(\"courses\",$course2);\n $course3 = new Course();\n $course3->set(\"department\",\"MUSI\");\n $course3->set(\"courseTitle\",\"CPSC\");\n $student->set(\"courses\",$course3);\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 2 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "public function test_manual_deliverOrder_deliverCardOrder_use_ConfirmTransaction_and_is_accepted() {\n $this->markTestIncomplete(\n 'skeleton for manual test, needs a pre-existing card transactionId with status AUTHORIZED'\n );\n \n // 1. remove (put in a comment) the above code to enable the test\n // 2. run the test, and check status of transaction in backoffice logs\n \n $orderId = 585714; // pre-existing card transactionId with status AUTHORIZED \n \n $DeliverOrderBuilder = WebPay::deliverOrder( Svea\\SveaConfig::getDefaultConfig() )\n ->setCountryCode(\"SE\")\n ->setOrderId( $orderId )\n ;\n \n $response = $DeliverOrderBuilder->deliverCardOrder()->doRequest();\n\n ////print_r( $response );\n $this->assertEquals(1, $response->accepted);\n $this->assertInstanceOf( \"Svea\\HostedService\\ConfirmTransactionResponse\", $response ); \n }", "public function actionConfirm()\n\t{\n\t\tif (is_array(@$_POST['operations'])) {\n\t\t\tforeach ($_POST['operations'] as $operation_id) {\n\t\t\t\tif (!$operation = Element_OphTrOperationbooking_Operation::model()->with('latestBooking')->findByPk($operation_id)) {\n\t\t\t\t\tthrow new Exception('Operation not found: '.$operation_id);\n\t\t\t\t}\n\n\t\t\t\t$booking = $operation->latestBooking;\n\n\t\t\t\tif (!$booking->transport_arranged) {\n\t\t\t\t\t$booking->transport_arranged = 1;\n\t\t\t\t\t$booking->transport_arranged_date = date('Y-m-d');\n\n\t\t\t\t\tif (!$booking->save(true,null,true)) {\n\t\t\t\t\t\tthrow new Exception('Unable to save booking: '.print_r($booking->getErrors(),true));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo '1';\n\t}", "static function pmpro_checkout_confirmed($pmpro_confirmed)\n\t\t{\n\t\t\tglobal $pmpro_msg, $pmpro_msgt, $pmpro_level, $current_user, $pmpro_review, $pmpro_paypal_token, $discount_code, $bemail;\n\n\t\t\t//PayPal Express Call Backs\n\t\t\tif(!empty($_REQUEST['review']))\n\t\t\t{\n\t\t\t\tif(!empty($_REQUEST['PayerID']))\n\t\t\t\t\t$_SESSION['payer_id'] = sanitize_text_field($_REQUEST['PayerID']);\n\t\t\t\tif(!empty($_REQUEST['paymentAmount']))\n\t\t\t\t\t$_SESSION['paymentAmount'] = sanitize_text_field($_REQUEST['paymentAmount']);\n\t\t\t\tif(!empty($_REQUEST['currencyCodeType']))\n\t\t\t\t\t$_SESSION['currCodeType'] = sanitize_text_field($_REQUEST['currencyCodeType']);\n\t\t\t\tif(!empty($_REQUEST['paymentType']))\n\t\t\t\t\t$_SESSION['paymentType'] = sanitize_text_field($_REQUEST['paymentType']);\n\n\t\t\t\t$morder = new MemberOrder();\n\t\t\t\t$morder->getMemberOrderByPayPalToken(sanitize_text_field($_REQUEST['token']));\n\t\t\t\t$morder->Token = $morder->paypal_token; $pmpro_paypal_token = $morder->paypal_token;\n\t\t\t\tif($morder->Token)\n\t\t\t\t{\n\t\t\t\t\tif($morder->Gateway->getExpressCheckoutDetails($morder))\n\t\t\t\t\t{\n\t\t\t\t\t\t$pmpro_review = true;\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$pmpro_msg = $morder->error;\n\t\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\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$pmpro_msg = __(\"The PayPal Token was lost.\", 'paid-memberships-pro' );\n\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(empty($pmpro_msg) &&\n\t\t\t\t(!empty($_REQUEST['confirm']) ||\n\t\t\t\t(pmpro_getOption('paypalexpress_skip_confirmation') && $pmpro_review))\n\t\t\t)\n\t\t\t{\n\t\t\t\t$morder = new MemberOrder();\n\t\t\t\t$morder->getMemberOrderByPayPalToken(sanitize_text_field($_REQUEST['token']));\n\t\t\t\t$morder->Token = $morder->paypal_token; $pmpro_paypal_token = $morder->paypal_token;\n\t\t\t\tif($morder->Token)\n\t\t\t\t{\n\t\t\t\t\t//set up values\n\t\t\t\t\t$morder->membership_id = $pmpro_level->id;\n\t\t\t\t\t$morder->membership_name = $pmpro_level->name;\n\t\t\t\t\t$morder->discount_code = $discount_code;\n\t\t\t\t\t$morder->InitialPayment = pmpro_round_price( $pmpro_level->initial_payment );\n\t\t\t\t\t$morder->PaymentAmount = pmpro_round_price( $pmpro_level->billing_amount );\n\t\t\t\t\t$morder->ProfileStartDate = date_i18n(\"Y-m-d\") . \"T0:0:0\";\n\t\t\t\t\t$morder->BillingPeriod = $pmpro_level->cycle_period;\n\t\t\t\t\t$morder->BillingFrequency = $pmpro_level->cycle_number;\n\t\t\t\t\t$morder->Email = $bemail;\n\n\t\t\t\t\t//setup level var\n\t\t\t\t\t$morder->getMembershipLevelAtCheckout();\n\n\t\t\t\t\t//tax\n\t\t\t\t\t$morder->subtotal = $morder->InitialPayment;\n\t\t\t\t\t$morder->getTax();\n\t\t\t\t\tif($pmpro_level->billing_limit)\n\t\t\t\t\t\t$morder->TotalBillingCycles = $pmpro_level->billing_limit;\n\n\t\t\t\t\tif(pmpro_isLevelTrial($pmpro_level))\n\t\t\t\t\t{\n\t\t\t\t\t\t$morder->TrialBillingPeriod = $pmpro_level->cycle_period;\n\t\t\t\t\t\t$morder->TrialBillingFrequency = $pmpro_level->cycle_number;\n\t\t\t\t\t\t$morder->TrialBillingCycles = $pmpro_level->trial_limit;\n\t\t\t\t\t\t$morder->TrialAmount = pmpro_round_price( $pmpro_level->trial_amount );\n\t\t\t\t\t}\n\n\t\t\t\t\tif($morder->confirm())\n\t\t\t\t\t{\n\t\t\t\t\t\t$pmpro_confirmed = true;\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$pmpro_msg = $morder->error;\n\t\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\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$pmpro_msg = __(\"The PayPal Token was lost.\", 'paid-memberships-pro' );\n\t\t\t\t\t$pmpro_msgt = \"pmpro_error\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!empty($morder))\n\t\t\t\treturn array(\"pmpro_confirmed\"=>$pmpro_confirmed, \"morder\"=>$morder);\n\t\t\telse\n\t\t\t\treturn $pmpro_confirmed;\n\t\t}", "function _reconfirm_cheat_code()\n\t{\n\t\t//If discount is applied, do a conditional-check again\n\t\tif($this->cart->is_discount_applied())\n\t\t{\n\t\t\t$coupon = $this->cart->discount_info();\n\t\t\tif($this->_can_apply_code($coupon) == false)\n\t\t\t{\n\t\t\t\t$this->cart->remove_discount();\n\t\t\t}\n\t\t}\n\t}", "public function markAsCancelled() : void\n {\n $this->ends_at = Carbon::now()->toDateTimeString();\n $this->is_cancelled = 1;\n $this->is_active = 0;\n $this->stripe_status = StripeSubscription::STATUS_CANCELED;\n $this->updateOrFail();\n }", "public function cancelAction() {\n /**\n * Admin configuration for order cancel request active status.\n */\n $orderCancelStatusFlag = Mage::getStoreConfig ( 'marketplace/admin_approval_seller_registration/order_cancel_request' );\n $data = $this->getRequest ()->getPost ();\n $emailSent = '';\n /**\n * Get order id\n * @var int\n */\n $orderId = $data ['order_id'];\n $loggedInCustomerId = '';\n /**\n * Check that customer login or not.\n */\n if (Mage::getSingleton ( 'customer/session' )->isLoggedIn () && isset ( $orderId )) {\n /**\n * Get customer data\n * @var id\n */\n $customerData = Mage::getSingleton ( 'customer/session' )->getCustomer ();\n $loggedInCustomerId = $customerData->getId ();\n $customerid = Mage::getModel ( 'sales/order' )->load ( $data ['order_id'] )->getCustomerId ();\n } else {\n /**\n * Error message for the when unwanted person access these request.\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( \"You do not have permission to access this page\" ) );\n $this->_redirect ( 'sales/order/history' );\n return;\n }\n if ($orderCancelStatusFlag == 1 && ! empty ( $loggedInCustomerId ) && $customerid == $loggedInCustomerId) {\n $shippingStatus = 0;\n try {\n /**\n * Get templete id for the order cancel request notification.\n */\n $templateId = ( int ) Mage::getStoreConfig ( 'marketplace/admin_approval_seller_registration/order_cancel_request_notification_template_selection' );\n if ($templateId) {\n /**\n * Load email templete.\n */\n $emailTemplate = Mage::helper ( 'marketplace/marketplace' )->loadEmailTemplate ( $templateId );\n } else {\n $emailTemplate = Mage::getModel ( 'core/email_template' )->loadDefault ( 'marketplace_cancel_order_admin_email_template_selection' );\n }\n /**\n * Load order product details based on the orde id.\n */\n $_order = Mage::getModel ( 'sales/order' )->load ( $orderId );\n /**\n * Get increment id\n * @var int\n */\n $incrementId = $_order->getIncrementId ();\n $sellerProductDetails = array ();\n $selectedProducts = $data ['products'];\n $selectedItemproductId = '';\n /**\n * Get the order item from the order.\n */\n foreach ( $_order->getAllItems () as $item ) {\n /**\n * Get Product id\n * @var int\n */\n $itemProductId = $item->getProductId ();\n $orderItem = $item;\n if (in_array ( $itemProductId, $selectedProducts )) {\n $shippingStatus = $this->getShippingStatus ( $orderItem );\n\n $sellerId = Mage::getModel ( 'catalog/product' )->load ( $itemProductId )->getSellerId ();\n $selectedItemproductId = $itemProductId;\n $sellerProductDetails [$sellerId] [] = $item->getName ();\n }\n }\n /**\n * Get seller product details.\n */\n foreach ( $sellerProductDetails as $key => $productDetails ) {\n $productDetailsHtml = \"<ul>\";\n /**\n * Increment foreach loop\n */\n foreach ( $productDetails as $productDetail ) {\n $productDetailsHtml .= \"<li>\";\n $productDetailsHtml .= $productDetail;\n $productDetailsHtml .= \"</li>\";\n }\n $productDetailsHtml .= \"</ul>\";\n $customer = Mage::getModel ( 'customer/customer' )->load ( $loggedInCustomerId );\n $seller = Mage::getModel ( 'customer/customer' )->load ( $key );\n /**\n * Get customer name and customer email id.\n */\n $buyerName = $customer->getName ();\n $buyerEmail = $customer->getEmail ();\n $sellerEmail = $seller->getEmail ();\n $sellerName = $seller->getName ();\n $recipient = $sellerEmail;\n if (empty ( $sellerEmail )) {\n $adminEmailIdVal = Mage::getStoreConfig ( 'marketplace/marketplace/admin_email_id' );\n /**\n * Get the to mail id\n */\n $getToMailId = Mage::getStoreConfig ( \"trans_email/ident_$adminEmailIdVal/email\" );\n $recipient = $getToMailId;\n }\n $emailTemplate->setSenderName ( $buyerName );\n $emailTemplate->setSenderEmail ( $buyerEmail );\n /**\n * To set cancel/refund request sent\n */\n if ($shippingStatus == 1) {\n $requestedType = $this->__ ( 'cancellation' );\n Mage::getModel ( 'marketplace/order' )->updateSellerRequest ( $selectedItemproductId, $orderId, $loggedInCustomerId, $sellerId, 0 );\n } else {\n $requestedType = $this->__ ( 'return' );\n Mage::getModel ( 'marketplace/order' )->updateSellerRequest ( $selectedItemproductId, $orderId, $loggedInCustomerId, $sellerId, 1 );\n }\n $emailTemplateVariables = array (\n 'ownername' => $sellerName,'productdetails' => $productDetailsHtml, 'order_id' => $incrementId,\n 'customer_email' => $buyerEmail,'customer_firstname' => $buyerName,\n 'reason' => $data ['reason'],'requesttype' => $requestedType,\n 'requestperson' => $this->__ ( 'Customer' )\n );\n $emailTemplate->setDesignConfig ( array ('area' => 'frontend') );\n /**\n * Sending email to admin\n */\n $emailTemplate->getProcessedTemplate ( $emailTemplateVariables );\n $emailSent = $emailTemplate->send ( $recipient, $sellerName, $emailTemplateVariables );\n }\n if ($shippingStatus == 1) {\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( \"Item cancellation request has been sent successfully.\" ) );\n } else {\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( \"Item return request has been sent successfully.\" ) );\n }\n $this->_redirect ( 'sales/order/view/order_id/' . $data ['order_id'] );\n } catch ( Exception $e ) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( $e->getMessage () ) );\n $this->_redirect ( 'sales/order/view/order_id/' . $data ['order_id'] );\n }\n } else {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( \"You do not have permission to access this page\" ) );\n $this->_redirect ( 'sales/order/view/order_id/' . $orderId );\n }\n }", "public function isAwaitingConfirmation() {\n if(isset($this->data['charge']))\n return $this->data['charge']['status'] === 'successful' ? false : true;\n else\n return true;\n }", "public function confirmingDeletion()\n {\n $this->confirmingExpenseDeletion = true;\n }", "function cancel_booking_approve($id)\n {\n $useremail = $this->userinfo_by_bookingid($id);\n $this->emails_model->booking_approve_cancellation_email($useremail);\n $this->cancel_booking($id);\n // $this->delete_booking($id);\n }", "public function confirm() {\n\t\t\t\n\t\t\t$this->status = 'confirmed';\n\t\t\t$this->save();\n\t\t}", "public function test_user_cant_decline_not_their_invites()\n {\n $user = factory(User::class, 1)->create()->first();\n factory(Box::class, 3)->create();\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 1, //Box doesn't matter\n 'role' => 'coach',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 2,\n 'role' => 'owner',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $invite = Invite::create([\n 'email' => \"[email protected]\",\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $this->actingAs($user);\n\n $response = $this->post(route('frontend.invites.decline', $invite));\n\n $response->assertStatus(302);\n\n $invites = $user->invites();\n\n $this->assertEquals(3, $invites->count());\n\n }", "public function test_02() {\n $v = new CConfirm_Test_VConfirm();\n $get = array();\n $post = array('aid' => 1,\n 'username' => 'fs',\n 'usermail' => '[email protected]',\n 'ptext' => ' '\n );\n $c = new CConfirm(array('VConfirm' => $v));\n $c->work($get, $post, 0);\n $this->assertSame('', $v->errmsg);\n $this->assertSame('Es wurde kein Posting eingetippt.', $v->msg);\n $this->assertSame('Kommentar erfasst', $v->titel);\n $this->assertSame(0, $v->displaymode);\n }", "public function cancel()\n {\n $this->confirmationArchived = false;\n }", "public function manualGetSatStatusThenCancelSignatureThenGetReceipt(): void\n {\n $settings = $this->createSettingsFromEnvironment();\n\n $cfdiXmlFile = __DIR__ . '/cfdi-to-cancel.xml';\n if (! file_exists($cfdiXmlFile)) {\n $this->markTestIncomplete(\"File $cfdiXmlFile does not exists\");\n }\n $cfdiXml = (string) file_get_contents($cfdiXmlFile);\n $cfdiUuid = '01B04C24-37CC-4F9E-BBA7-007A0AC3B543';\n\n // check that it has a correct status\n $beforeCancelStatus = $this->checkCanGetSatStatusOrFail(\n $cfdiXml,\n 'Cannot assert cfdi before cancel status is not: No Encontrado'\n );\n\n $this->assertSame('Vigente', $beforeCancelStatus->cfdi());\n $this->assertStringStartsWith('Cancelable ', $beforeCancelStatus->cancellable());\n\n // Create cancel signature command from capsule\n $service = new CancelSignatureService($settings);\n\n $command = $this->createCancelSignatureCommandFromDocument(\n CancelDocument::newWithErrorsUnrelated($cfdiUuid)\n );\n\n // perform cancel\n $result = $service->cancelSignature($command);\n $document = $result->documents()->first();\n\n // check result related document\n $this->assertSame(\n '201', // 201 - Petición de cancelación realizada exitosamente\n $document->documentStatus(),\n 'SAT did not return 201 EstatusUUID on CancelSignature, is the service down?'\n );\n\n // check result properties\n $this->assertNotEmpty($result->voucher(), 'Finkok did not return voucher (Acuse) on CancelSignature');\n $this->assertNotEmpty($result->date(), 'Finkok did not return the cancellation date');\n $this->assertSame('EKU9003173C9', $result->rfc(), 'Finkok did not return expected RFC');\n\n // Consume GetReceiptService and assert that the response is the same (as XML and as string)\n $receipt = (new GetReceiptService($settings))->download(\n new GetReceiptCommand('EKU9003173C9', $cfdiUuid, ReceiptType::cancellation())\n );\n $this->assertXmlStringEqualsXmlString(\n $result->voucher(),\n $receipt->receipt(),\n 'El acuse que proviene del método get_receipt no coincide con el acuse de la cancelación'\n );\n $this->assertSame(\n $result->voucher(),\n $receipt->receipt(),\n 'El acuse que proviene del método get_receipt no es exactamente el mismo que el acuse de la cancelación'\n );\n }", "public function test_completed_request_does_not_block_new_request() {\n\t\t// Update first request.\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_status' => 'request-completed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t// Second request.\n\t\t$actual = wp_create_user_request( self::$registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( self::$registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function canBeCancelled(): bool\n {\n // we can cancel campaigns that still have draft messages, because they haven't been entirely dispatched\n // a campaign that doesn't have any more draft messages (i.e. they have all been sent) cannot be cancelled, because the campaign is completed\n\n if ($this->status_id === CampaignStatus::STATUS_SENT && $this->save_as_draft && $this->sent_count !== $this->messages()->count()) {\n return true;\n }\n\n return in_array($this->status_id, [CampaignStatus::STATUS_QUEUED, CampaignStatus::STATUS_SENDING], true);\n }", "public function testTwoDisciplines()\n {\n $result = false;\n $student = new StudentProfile();\n $course = new Course();\n $course->set(\"department\",\"MUSI\");\n $student->set(\"courses\",$course);\n $course2 = new Course();\n $course2->set(\"department\",\"CPSC\");\n $student->set(\"courses\",$course2);\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 1 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "function booking_approve_cancellation_email($useremail) {\n\t\t\t//to customer\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= \"Dear Customer,<br>\";\n\t\t\t\t$message .= \"Your booking has been cancelled.<br>\";\n\t\t\t\t$message .= \"Thanks For using our service.\";\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($useremail);\n\t\t\t\t$this->email->subject('Your Booking Cancellation has been Processed.');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "public function confirm()\n {\n $this->confirmed = true;\n $this->confirmation_token = null;\n\n $this->save();\n }", "public function testPending()\n {\n $this->assertTrue($this->kittyUser->isPending());\n $returnedKittyUser = $this->kittyUser->setPending(false);\n $this->assertSame($this->kittyUser, $returnedKittyUser);\n $this->assertFalse($this->kittyUser->isPending());\n }", "function cancelPending() {\n\t\tself::$_db->saveQry(\"SELECT `ID` FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\"AND ? >= `startTime` \",\n\t\t\t\tCalendar::startCancel());\n\t\t\n\n\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\tReservation::load($res['ID'])->failed();\n\t\t\n\t\t\n\t\t// TagesEnde - BuchungsCancelZeit ist kleiner als Aktueller Zeitblock\n\t\tif(Calendar::calculateTomorrow()) {\n\t\t\t$opening = Calendar::opening(date('Y-m-d', strtotime(\"tomorrow\")));\n\t\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` \".\n\t\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \",\n\t\t\t\t\t$opening->format(\"Y-m-d H:i\"), \n\t\t\t\t\tCalendar::startCancel($opening));\n\t\t\t\n\t\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\t\tReservation::load($res['ID'])->failed();\n\t\t}\n\t\t\n\t}", "public function getHasBeenRejectedBefore(): bool;", "public function testIsMarkedUndoneIfDone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->task->setIsDone(true);\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(false, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme à faire.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function mtii_signed_doc_disapproval()\n {\n $this->mtii_verify_ajax_nonce($_REQUEST['approval_nonce'], \"doc-upload-approval-nonce\");\n $this->check_if_user_is_admin();\n if (isset($_REQUEST[\"reg_catg\"]) && ($_REQUEST[\"reg_catg\"]==\"Cooperative\" || $_REQUEST[\"reg_catg\"]==\"ngoAndCbo\")) {\n $this->confirm_approval_right(true);\n $tasks_performer = new TasksPerformer;\n $invoice_info_from_db = $tasks_performer->get_invoice_details_from_db($_REQUEST[\"doc_title\"]);\n $invoice_info_from_cp = $tasks_performer->get_invoice_as_cpt($_REQUEST[\"doc_title\"]);\n $inv_sub_catg_from_cp = get_post_meta($invoice_info_from_cp->ID, 'invoice_sub_category', true);\n $invoice_sub_catg_db = isset($invoice_info_from_db->invoice_sub_category) ?\n $invoice_info_from_db->invoice_sub_category : null;\n if ($invoice_info_from_db && $invoice_info_from_cp\n && (($inv_sub_catg_from_cp===\"replacement\" && $invoice_sub_catg_db===\"replacement\")\n || ($inv_sub_catg_from_cp===\"used-replacement\" && $invoice_sub_catg_db===\"used-replacement\"))\n ) {\n $update_info = $this->mtii_decline_cert_replacement($_REQUEST[\"doc_title\"]);\n $update_info[\"type\"] = \"Replacement\";\n } else if ($invoice_info_from_db && $invoice_info_from_cp\n && (($inv_sub_catg_from_cp===\"legal-search\" && $invoice_sub_catg_db===\"legal-search\")\n || ($inv_sub_catg_from_cp===\"used-legal-search\" && $invoice_sub_catg_db===\"used-legal-search\"))\n ) {\n $update_info = $this->mtii_decline_legal_search($_REQUEST[\"doc_title\"]);\n $update_info[\"type\"] = \"Legal Search\";\n } else {\n $update_info = $this->mtii_decline_registration($_REQUEST[\"doc_title\"], $_REQUEST[\"doc_id\"], $_REQUEST[\"reg_catg\"]);\n }\n } else if (isset($_REQUEST[\"reg_catg\"]) && $_REQUEST[\"reg_catg\"]==\"Business Premise\") {\n $this->confirm_approval_right(false, true);\n $update_info = $this->mtii_decline_biz_premises_reg($_REQUEST[\"doc_title\"], $_REQUEST[\"doc_id\"]);\n } else {\n $update_info = array(\"this_is_it\"=>\"Here we go\", \"status\"=>\"Approved\");\n }\n $this->prepare_to_send_response($update_info);\n }", "public function setToCancelled($intEmployeeId=null, $bolLogAppropriateActionsAndNotes=true, $strAdditionalNotes=null)\n\t{\n\t\t$intEmployeeId\t= ($intEmployeeId == null)? Employee::SYSTEM_EMPLOYEE_ID : $intEmployeeId;\n\t\t$strNowDateTime\t= GetCurrentISODateTime();\n\t\t$strNowDate\t\t= date('Y-m-d', strtotime($strNowDateTime));\n\t\t\n\t\t// Retrieve RecurringCharge Statuses that will be referenced often\n\t\t$intRecChargeStatusAwaitingApproval\t= Recurring_Charge_Status::getIdForSystemName('AWAITING_APPROVAL');\n\t\t$intRecChargeStatusActive\t\t\t= Recurring_Charge_Status::getIdForSystemName('ACTIVE');\n\t\t$intRecChargeStatusCancelled\t\t= Recurring_Charge_Status::getIdForSystemName('CANCELLED');\n\t\t\n\t\t// Verify that the RecurringCharge is eligible for cancellation, based on the status\n\t\tswitch ($this->recurringChargeStatusId)\n\t\t{\n\t\t\tcase $intRecChargeStatusAwaitingApproval:\n\t\t\t\t// Set up vars pertaining to the fact that this is cancelling a request for a Recurring Charge\n\t\t\t\t$strActionPastTense = \"Cancelled recurring charge that was pending approval\";\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase $intRecChargeStatusActive:\n\t\t\t\t// The RecurringCharge is currently active.\n\n\t\t\t\t// Check if it has satisfied the requirements for completion\n\t\t\t\tif ($this->hasSatisfiedRequirementsForCompletion())\n\t\t\t\t{\n\t\t\t\t\t// Flag it as completed, instead of cancelled\n\t\t\t\t\t$this->setToCompleted($intEmployeeId, $bolLogAppropriateActionsAndNotes, $strAdditionalNotes);\n\t\t\t\t\treturn NULL;\n\t\t\t\t}\n\n\t\t\t\t// Set up vars pertaining to the fact that this is cancelling a request for a Recurring Charge\n\t\t\t\t$strActionPastTense = \"Cancelled recurring charge\";\n\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\t$objCurrentStatus = Recurring_Charge_Status::getForId($this->recurring_charge_status_id);\n\t\t\t\tthrow new Exception(\"Cannot cancel recurring charge when status is set to: {$objCurrentStatus->name}\");\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// Check if a payout charge should be made\n\t\tif ($this->recurringChargeStatusId == $intRecChargeStatusActive && $this->nature == NATURE_DR && !$this->hasReachedMinimumCharge())\n\t\t{\n\t\t\t// Create a payout charge\n\t\t\t$fltAmount = ($this->minCharge - $this->totalCharged) + $this->cancellationFee;\n\t\t\t\n\t\t\t$objPayoutCharge = new Charge();\n\t\t\t$objPayoutCharge->accountGroup\t= $this->accountGroup;\n\t\t\t$objPayoutCharge->account\t\t= $this->account;\n\t\t\t$objPayoutCharge->service\t\t= $this->service;\n\t\t\t$objPayoutCharge->createdBy\t\t= $intEmployeeId;\n\t\t\t$objPayoutCharge->createdOn\t\t= $strNowDate;\n\t\t\t$objPayoutCharge->chargeType\t= $this->chargeType;\n\t\t\t$objPayoutCharge->description\t= $this->description;\n\t\t\t$objPayoutCharge->chargedOn\t\t= $strNowDate;\n\t\t\t$objPayoutCharge->nature\t\t= $this->nature;\n\t\t\t$objPayoutCharge->amount\t\t= $fltAmount;\n\t\t\t$objPayoutCharge->notes\t\t\t= \"Payout due to premature cancellation of recurring charge\";\n\t\t\t$objPayoutCharge->linkType\t\t= CHARGE_LINK_RECURRING_CANCEL;\n\t\t\t$objPayoutCharge->linkId\t\t= $this->id;\n\t\t\t$objPayoutCharge->status\t\t= CHARGE_WAITING;\n\t\t\t$objPayoutCharge->global_tax_exempt = 0;\n\t\t\t\n\t\t\t$objPayoutCharge->save();\n\t\t\t\n\t\t\t// Add the record to the charge_recurring_charge table\n\t\t\t$objChargeRecurringCharge = new Charge_Recurring_Charge();\n\t\t\t$objChargeRecurringCharge->chargeId = $objPayoutCharge->id;\n\t\t\t$objChargeRecurringCharge->recurringChargeId = $this->id;\n\t\t\t$objChargeRecurringCharge->save();\n\t\t\t\n\t\t\tif ($bolLogAppropriateActionsAndNotes)\n\t\t\t{\n\t\t\t\t// Log the request for charge\n\t\t\t\t$strNature\t\t\t\t= ($objPayoutCharge->nature == NATURE_DR)? \"Debit\" : \"Credit\";\n\t\t\t\t$strPayoutAmount\t\t= number_format(AddGST($objPayoutCharge->amount), 2, '.', '');\n\t\t\t\t$strActionExtraDetails\t= \t\"Payout for cancellation of recurring charge\\n\".\n\t\t\t\t\t\t\t\t\t\t\t\"Type: {$objPayoutCharge->chargeType} - {$objPayoutCharge->description} ({$strNature})\\n\".\n\t\t\t\t\t\t\t\t\t\t\t\"Amount (Inc GST): \\${$strPayoutAmount} {$strNature}\";\n\t\t\t\t\n\t\t\t\tAction::createAction('Charge Requested', $strActionExtraDetails, $objPayoutCharge->account, $objPayoutCharge->service, null, $intEmployeeId, Employee::SYSTEM_EMPLOYEE_ID);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($bolLogAppropriateActionsAndNotes)\n\t\t{\n\t\t\t// Create a system note defining what has happened\n\t\t\t$objCreatedByEmployee\t\t= Employee::getForId($this->createdBy);\n\t\t\t$strCreatedOn\t\t\t\t= date('d-m-Y', strtotime($this->createdOn));\n\t\t\t$strCreatedByEmployeeName\t= $objCreatedByEmployee->getName();\n\t\t\t\n\t\t\t$strNature = ($this->nature == NATURE_DR)? \"Debit\" : \"Credit\";\n\t\t\t\n\t\t\t$strMinCharge\t\t\t= number_format(AddGST($this->minCharge), 2, \".\", \"\");\n\t\t\t$strTotalCharged\t\t= number_format(AddGST($this->totalCharged), 2, \".\", \"\");\n\t\t\t\n\t\t\t$strNote = \t\"{$strActionPastTense} (id: {$this->id})\\n\".\n\t\t\t\t\t\t\"Type: {$this->chargeType} - {$this->description} ({$strNature})\\n\".\n\t\t\t\t\t\t\"Originally configured on: {$strCreatedOn} by $strCreatedByEmployeeName\\n\".\n\t\t\t\t\t\t\"Minimum charge (inc GST): \\${$strMinCharge} {$strNature}\\n\".\n\t\t\t\t\t\t\"Charged so far (inc GST): \\${$strTotalCharged} {$strNature}\";\n\t\t\t\t\t\t\n\t\t\tif ($this->cancellationFee > 0.0)\n\t\t\t{\n\t\t\t\t$strCancellationFee = number_format(AddGST($this->cancellationFee), 2, \".\", \"\");\n\t\t\t\t$strNote .= \"\\nCancellation Fee (inc GST): \\${$strCancellationFee} {$strNature}\";\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($objPayoutCharge))\n\t\t\t{\n\t\t\t\t$strPayoutAmount = number_format(AddGST($objPayoutCharge->amount), 2, '.', '');\n\t\t\t\t$strNote .= \"\\nA payout charge has been requested for \\${$strPayoutAmount}\";\n\t\t\t}\n\t\t\t\n\t\t\t$strAdditionalNotes = trim($strAdditionalNotes);\n\t\t\tif ($strAdditionalNotes != '')\n\t\t\t{\n\t\t\t\t$strNote .= \"\\nUser Comments:\\n{$strAdditionalNotes}\";\n\t\t\t}\n\t\t\t\n\t\t\tNote::createSystemNote($strNote, $intEmployeeId, $this->account, $this->service);\n\t\t}\n\n\t\t// Update the status of the RecurringCharge record\n\t\t$this->recurringChargeStatusId = $intRecChargeStatusCancelled;\n\t\t$this->save();\n\t}", "public function count_clients_with_contracts_other_than_in_progress_status()\n {\n $this->assertEquals(\n self::$contract->count_clients_other_in_progress_contracts(self::$contract),\n Contract::where('client_id', self::$contract->client_id)\n ->whereNotIn('contract_status_id', [self::$contract->id])\n ->count()\n );\n }", "public function canBeWithdrawn()\n {\n return $this->isUnderConsideration() || ($this->isAwaitingFee() && $this->issueFeeOverdue());\n }", "public function checkObsolescenceOfOrderStatus()\n {\n /** @var Emagedev_Trello_Model_Observer $observer */\n $observer = Mage::getModel($this->alias);\n\n $helperMock = $this->mockHelper('trello/card', array('archiveOrder', 'markOrderOutdated'));\n\n $helperMock\n ->expects($this->once())\n ->method('markOrderOutdated')\n ->with($this->callback(function($order){\n if ($this->expected()->getOutdated() == $order->getId()) {\n return $order;\n }\n\n return false;\n }));\n\n $helperMock\n ->expects($this->once())\n ->method('archiveOrder')\n ->with($this->callback(function($order){\n if ($this->expected()->getArchived() == $order->getId()) {\n return $order;\n }\n\n return false;\n }));\n\n $helperMock->replaceByMock('helper');\n\n $orderMock = $this->mockModel('sales/order', array('getUpdatedAt'));\n\n $orderMock\n ->expects($this->any())\n ->method('getUpdatedAt')\n ->willReturn($this->callback(function($order) {\n if (\n $order->getId() == $this->expected()->getOutdated() ||\n $order->getId() == $this->expected()->getArchived()\n ) {\n $datetime = new DateTime('now');\n $datetime->sub(new DateInterval('D5'));\n\n return $datetime->format(DateTime::W3C);\n }\n }));\n\n $orderMock->replaceByMock('model');\n\n $observer->markOrArchiveOutdatedOrders(new Varien_Event_Observer());\n }", "private function cancelConfirmation()\n {\n Chat::$bot->editMessageText([\n 'text' => 'channel removing confirmation canceled',\n 'inline_message_id' => Chat::getCallBackQuery()->getInlineMessageId()\n ]);\n }", "public function canBeCancelled()\n {\n return $this->isNotYetSubmitted();\n }", "protected function cancelAppointmentRequest($args) {\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], '2');\n\n if (is_array($returned))\n return $returned;\n\n $checkBookingsQry = \"select appointment_id from appointment where slave_id = '\" . $this->User['entityId'] . \"' and status IN (6,7,8)\";\n $checkBookingsRes = mysql_query($checkBookingsQry, $this->db->conn);\n\n if (mysql_num_rows($checkBookingsRes) > 0)\n return $this->_getStatusMessage(93, 93);\n\n if ($this->_updateSlvApptStatus($this->User['entityId'], '3') == 0)\n return $this->_getStatusMessage(74, 74);\n else\n return $this->_getStatusMessage(3, 1);\n }", "public function cancelAuthorizationShouldNotAddCancellationIfCancellationFails(): void\n {\n $heidelpay = new Heidelpay('s-priv-123');\n $payment = (new Payment())->setParentResource($heidelpay)->setId('myPaymentId');\n $authorization = (new Authorization())->setPayment($payment)->setId('s-aut-1');\n\n /** @var ResourceService|MockObject $resourceSrvMock */\n $resourceSrvMock = $this->getMockBuilder(ResourceService::class)->disableOriginalConstructor()->setMethods(['createResource'])->getMock();\n $cancellationException = new HeidelpayApiException(\n 'Cancellation failed',\n 'something went wrong',\n ApiResponseCodes::API_ERROR_ALREADY_CANCELLED\n );\n $resourceSrvMock->expects($this->once())->method('createResource')->willThrowException($cancellationException);\n\n $cancelSrv = $heidelpay->setResourceService($resourceSrvMock)->getCancelService();\n $this->expectException(HeidelpayApiException::class);\n $this->expectExceptionCode(ApiResponseCodes::API_ERROR_ALREADY_CANCELLED);\n $cancelSrv->cancelAuthorization($authorization, 12.122);\n $this->assertCount(0, $authorization->getCancellations());\n }", "public function getQuoteStateToAccepted();", "public function isRejected() {\n\t\treturn $this->approved == -1;\n\t}", "public function getConfirmation()\n {\n return $this->readOneof(1);\n }", "function webform_confirm_email_form_webform_emails_form_alter(&$form, &$form_state) {\n // ******** standard emails ********\n $eids = db_query(\n 'SELECT we.eid '.\n ' FROM {webform_emails} we ' .\n ' LEFT JOIN {webform_confirm_email} wce ' .\n ' ON we.nid = wce.nid ' .\n ' AND we.eid = wce.eid ' .\n ' WHERE we.nid = :nid ' .\n ' AND wce.eid IS NULL ' ,\n array(\n ':nid' => (int) $form['#node']->nid,\n )\n )->fetchCol();\n\n foreach($eids as $eid) {\n $form['emails'][$eid]['delete_button'] = array(\n '#type' => 'submit',\n '#name' => 'delete_emails_' . $eid,\n '#value' => t('Delete'),\n '#email_type_form' => 'emails',\n '#eid' => $eid,\n '#submit' => array('webform_confirm_email_email_delete'),\n );\n }\n unset($form['add']);\n $form['emails']['add_button'] = array(\n '#type' => 'submit',\n '#value' => t('Add standard email'),\n '#submit' => array('webform_emails_form_submit'),\n '#weight' => 45,\n );\n\n array_unshift($form['#validate'], 'webform_confirm_email_webform_emails_form_validate');\n\n // ******** confirmation request emails ********\n $query = db_query(\n 'SELECT eid, redirect_url '.\n ' FROM {webform_confirm_email} ' .\n ' WHERE nid = :nid ' .\n ' AND email_type = :type' ,\n array(\n ':nid' => (int) $form['#node']->nid,\n ':type' => WEBFORM_CONFIRM_EMAIL_CONFIRMATION_REQUEST,\n )\n )->fetchAllKeyed();\n\n $form['confirmation_request'] = array();\n foreach ($query as $eid => $redirect_url) {\n $form['confirmation_request'][$eid]['status'] = $form['emails'][$eid]['status'];\n $form['confirmation_request'][$eid]['email'] = $form['emails'][$eid]['email'];\n $form['confirmation_request'][$eid]['subject'] = $form['emails'][$eid]['subject'];\n $form['confirmation_request'][$eid]['from'] = $form['emails'][$eid]['from'];\n $form['confirmation_request'][$eid]['redirect_url'] = array('#markup' => ($redirect_url == NULL) ? 'default' : $redirect_url);\n\n $form['confirmation_request'][$eid]['delete_button'] = array(\n '#type' => 'submit',\n '#name' => 'delete_confirmation_request_' . $eid,\n '#value' => t('Delete'),\n '#email_type_form' => 'confirmation_request',\n '#eid' => $eid,\n '#submit' => array('webform_confirm_email_email_delete'),\n );\n\n unset($form['emails'][$eid]);\n }\n\n $form['confirmation_request']['add_button'] = array(\n '#type' => 'submit',\n '#value' => t('Add confirmation request mail'),\n '#submit' => array('webform_confirm_email_confirmation_request_email_add'),\n '#weight' => 45,\n );\n\n // ******** confirmation emails ********\n $eids = db_query(\n 'SELECT eid '.\n ' FROM {webform_confirm_email} ' .\n ' WHERE nid = :nid ' .\n ' AND email_type = :type ' ,\n array(\n ':nid' => (int) $form['#node']->nid,\n ':type' => WEBFORM_CONFIRM_EMAIL_CONFIRMATION,\n )\n )->fetchCol();\n\n $form['confirmation'] = array();\n\n foreach ($eids as $eid) {\n $form['confirmation'][$eid]['status'] = $form['emails'][$eid]['status'];\n $form['confirmation'][$eid]['email'] = $form['emails'][$eid]['email'];\n $form['confirmation'][$eid]['subject'] = $form['emails'][$eid]['subject'];\n $form['confirmation'][$eid]['from'] = $form['emails'][$eid]['from'];\n\n $form['confirmation'][$eid]['delete_button'] = array(\n '#type' => 'submit',\n '#name' => 'delete_confirmation_' . $eid,\n '#value' => t('Delete'),\n '#email_type_form' => 'confirmation',\n '#eid' => $eid,\n '#submit' => array('webform_confirm_email_email_delete'),\n );\n\n unset($form['emails'][$eid]);\n }\n\n $form['confirmation']['add_button'] = array(\n '#type' => 'submit',\n '#value' => t('Add confirmation mail'),\n '#submit' => array('webform_confirm_email_confirmation_email_add'),\n '#weight' => 45,\n );\n}", "public function is_confirmed() {\r\n\t\tif ($this->user_id) {\r\n\t\t\t$sql = \"SELECT type FROM `users` WHERE user_id = '$this->user_id' AND type = '\" . self::UNCONFIRMED . \"'\";\r\n\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\tor die ($this->dbc->error);\r\n\t\t\treturn $result->num_rows == 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UnexpectedValueException('UnexpectedValueException occured on method call is_confirmed because the user id is invalid');\r\n\t\t}\r\n\t}", "public function test_receive_cancel()\n {\n\n $payumService = m::spy('Recca0120\\LaravelPayum\\Service\\PayumService');\n $token = uniqid();\n\n /*\n |------------------------------------------------------------\n | Act\n |------------------------------------------------------------\n */\n\n $payumService\n ->shouldReceive('receiveCancel')->with($token)->andReturn($token);\n\n $controller = new PaymentController();\n\n /*\n |------------------------------------------------------------\n | Assert\n |------------------------------------------------------------\n */\n\n $controller->receiveCancel($payumService, $token);\n $payumService->shouldHaveReceived('receiveCancel')->with($token)->once();\n }", "public function cancelChargeShouldCreateCancellationAndCallsCreate(): void\n {\n $heidelpay = new Heidelpay('s-priv-1234');\n $cancelSrv = $heidelpay->getCancelService();\n $payment = (new Payment())->setParentResource($heidelpay);\n $charge = (new Charge())->setPayment($payment);\n\n /** @var ResourceService|MockObject $resourceSrvMock */\n $resourceSrvMock = $this->getMockBuilder(ResourceService::class)->setMethods(['createResource'])->disableOriginalConstructor()->getMock();\n /** @noinspection PhpParamsInspection */\n $resourceSrvMock->expects($this->once())->method('createResource')\n ->with($this->callback(static function ($cancellation) use ($payment, $charge) {\n return $cancellation instanceof Cancellation &&\n $cancellation->getAmount() === 12.22 &&\n $cancellation->getPayment() === $payment &&\n $cancellation->getParentResource() === $charge;\n }));\n $heidelpay->setResourceService($resourceSrvMock);\n\n $cancelSrv->cancelCharge($charge, 12.22);\n }", "public function test_completed_request_does_not_block_new_request_for_unregistered_user() {\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_author' => 0,\n\t\t\t\t'post_title' => self::$non_registered_user_email,\n\t\t\t\t'post_status' => 'request-failed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 0, (int) $post->post_author );\n\t\t$this->assertSame( 'export_personal_data', $post->post_name );\n\t\t$this->assertSame( self::$non_registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function canCancel()\n {\n $user = $this->getUser();\n\n if (\n $user['id'] == $this->getData('user_id') &&\n $this->getData('status') == Service\\BalanceWithdrawals::STATUS_PENDING\n ) {\n if ($user->getData('role') == 'Admin' || $user['id'] == $this->getData('user_id')) {\n return true;\n }\n }\n\n return false;\n }", "private function btn_approve_reject(){\n\n // Skip the unduly cases\n if ($not_my_case = (VM::outOfScope()\n\t\t\t|| !$this->isWritable() \n\t\t\t|| ($this->rec['v_type'] == VISIT_OUT_OF_SCOPE) \n\t\t\t|| !in_array($this->doing,array('lists','budget',)) \n\t\t\t)){\n $this->dbg('not my case? '.($not_my_case ? 'YES' : 'NO'));\n return array('','');\n }\n\n // The event is endorsed (i.e. changes are locked), show only pending applicants and return\n if(0) if (VM::isEventEndorsed() || ($this->rec['v_end'] < time())){\n\tif (False){ // ? Strange... To be changed?\n\t $reply = array('');\n\t if ($this->fnc_beslut) $reply[] = $this->highlights['fnc'][$this->fnc_beslut]['i'];\n\t else $reply[] = '';\n\t if (stripos(serialize($reply),'send mail') !== False) b_debug::var_dump('fnc_beslut',$this->fnc_beslut,date('Y-m-d',$this->rec['v_end']),$reply);\n\t if (stripos(serialize($reply),'send mail') !== False) b_debug::internalError();\n\t}else{ \n\t $reply = array('','');\n\t}\n\t// $t = $reply; array_unshift($t,2,$this->rec['v_id']); $this->dbg($t,True);\n\treturn $reply;\n }\n\n bTiming()->cpu(__function__);\n\n // \n // See what should we do, depends on the visit status \n //\n $reply = array('','');\n $v_status = bForm_vm_Visit::_getStatus($this->rec,$check_clashes=True);\n switch($v_status){\n \n case STATUS_CLASH:\n break;\n\n case STATUS_NO: \n $this->rec['_a_name'] = $this->rec['_o_name'] = '';\n switch ($this->rec['v_type']){\n case VISIT_TYPE_RENT:\n case VISIT_OUT_OF_SCOPE:\n\tbreak;\n\t\n case VISIT_TYPE_OTHER:\n case VISIT_TYPE_COLLABORATION:\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$reply = (VM::hasRightTo('approve_guest_invitation',$this->v)\n\t\t ? array('','') \n\t\t : array('',$this->say('Ni')));\n\tbreak;\n\t\n case VISIT_TYPE_PROGRAM: \n\t$reply = (VM::hasRightTo('approve_registrant_application')\n\t\t ? array('',$this->say('NY'))\n\t\t : array('',$this->say('Ni')));\n }\n break;\n \n case STATUS_PENDING:\n if (@$this->rec['_a_name'] !== LODGING_OA_TXT) $this->rec['_a_name'] = $this->rec['_o_name'] = '';\n switch ($this->rec['v_type']){\n case VISIT_TYPE_RENT: // auto-accept the rents\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$this->v->setStatus(STATUS_YES);\n\t$this->v->setPolicy(VM_V_welcomeMailSent,True,False,True);\n\t$this->rec['v_status'] = STATUS_YES;\n\tbreak;\n\t\n case VISIT_OUT_OF_SCOPE:\n\tbreak 2;\n\t\n case VISIT_TYPE_OTHER:\n case VISIT_TYPE_COLLABORATION:\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$reply = (VM::hasRightTo('approve_guest_invitation',$this->v)\n\t\t ? array('','') \n\t\t : array('',$this->say('Pi')));\n\tbreak;\n\t\n case VISIT_TYPE_PROGRAM: \n\t$reply = (VM::hasRightTo('approve_registrant_application')\n\t\t ? array($this->say('Y'),\n\t\t\t $this->say('N'))\n\t\t : array('',$this->say('Pi')));\n\tbreak;\n\t\n default:\n\tb_debug::internalError('?? v_type=\"'.$this->rec['v_type'].'\"');\n }\n break;\n \n case STATUS_YES:\n switch ($this->rec['v_type']){\n case VISIT_OUT_OF_SCOPE:\n\tbreak;\n\n case VISIT_TYPE_RENT:\n\tif (empty($this->v)) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$this->v->setPolicy(VM_V_welcomeMailSent,True,False,True);\n\t$this->rec['v_policy'] = $this->v->getValue('v_policy',1,1);\n\tbreak;\n\n case VISIT_TYPE_OTHER:\n case VISIT_TYPE_COLLABORATION:\n\tif (!$this->v) $this->v = new bForm_vm_Visit($this->rec['v_id']); \n\t$reply = (VM::hasRightTo('approve_guest_invitation',$this->v)\n\t\t ? array('','') \n\t\t : array('',$this->say('Yi')));\n\tbreak;\n\t\n case VISIT_TYPE_PROGRAM: \n\t$reply = (VM::hasRightTo('approve_registrant_application')\n\t\t ? array('',$this->say('YN'))\n\t\t : array('',$this->say('Yi')));\n\tbreak;\n }\n }\n bTiming()->cpu();\n // $t = $reply; array_unshift($t,3,$this->rec['v_id']); $this->dbg($t,True);\n return $reply;\n }", "public function testPatchReviewerRequiredToggle()\n {\n $this->createChange();\n Review::createFromChange('1')->save()->updateFromChange('1')\n ->setParticipantData('nonadmin', true, 'required')->addVote('nonadmin', 1)\n ->save();\n\n // there shouldn't be any tasks but proccess just to be safe\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify the starting state is good\n $this->assertSame(\n array(\n 'admin' => array(),\n 'nonadmin' => array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n )\n ),\n Review::fetch('2', $this->p4)->getParticipantsData()\n );\n\n $expected = array(\n 'admin' => array(), // as they are the author; can't get rid of em\n 'nonadmin' => array('vote' => array('value' => 1, 'version' => 1, 'isStale' => false))\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_POST)\n ->setPost(new Parameters(array('required' => false)))\n ->setQuery(new Parameters(array('_method' => 'patch')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n\n\n // now try using patch and setting it to required\n $expected['nonadmin'] = array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_PATCH)\n ->setPost(new Parameters(array('required' => '1')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n }", "private function acceptConfirmation()\n {\n ChannelRepository::removeChannelsOfAuserByName(Chat::lastAskedQuestion()->answer,Chat::getCallBackQuery()->getFrom()->getId());\n Chat::$bot->editMessageText([\n 'text' => 'Your Channel Is Removed',\n 'inline_message_id' => Chat::getCallBackQuery()->getInlineMessageId()\n ]);\n Chat::deleteTemporaryData();\n Pages::channelOwnerPage();\n }", "public function testRefundMismatched() {\n $this->setExchangeRates(1234567, ['USD' => 1, 'PLN' => 0.5]);\n $donation_message = new TransactionMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_txn_id' => mt_rand(),\n ]\n );\n $refund_message = new RefundMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_parent_id' => $donation_message->getGatewayTxnId(),\n 'gateway_refund_id' => mt_rand(),\n 'gross' => $donation_message->get('original_gross') + 1,\n 'gross_currency' => $donation_message->get('original_currency'),\n ]\n );\n\n $message_body = $donation_message->getBody();\n wmf_civicrm_contribution_message_import($message_body);\n $contributions = wmf_civicrm_get_contributions_from_gateway_id(\n $donation_message->getGateway(),\n $donation_message->getGatewayTxnId()\n );\n $this->assertEquals(1, count($contributions));\n\n $this->consumer->processMessage($refund_message->getBody());\n $contributions = $this->callAPISuccess(\n 'Contribution',\n 'get',\n ['contact_id' => $contributions[0]['contact_id'], 'sequential' => 1]\n );\n $this->assertEquals(2, count($contributions['values']));\n $this->assertEquals(\n 'Chargeback',\n CRM_Contribute_PseudoConstant::contributionStatus($contributions['values'][0]['contribution_status_id'])\n );\n $this->assertEquals('-.5', $contributions['values'][1]['total_amount']);\n }", "public function disapprove()\n {\n return $this->approve(false);\n }", "public function getCancelledAttribute(): bool\n {\n return $this->status_id === CampaignStatus::STATUS_CANCELLED;\n }", "function ostGetCanceledStatusId()\r\n{\r\n\treturn 1;\r\n}", "public function testBadgeBillCanceledFilter(): void\n {\n $actual = true;\n $expected = '<span class=\"badge badge-warning\">trans.bill.canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n\n $actual = new Bill();\n $expected = '<span class=\"badge badge-success\">trans.bill.non-canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n\n $actual->setCanceledAt(new DateTimeImmutable());\n $expected = '<span class=\"badge badge-warning\">trans.bill.canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n\n $actual = false;\n $expected = '<span class=\"badge badge-success\">trans.bill.non-canceled</span>';\n self::assertSame($expected, $this->extension->badgeBillCanceledFilter($actual));\n }", "public function cancelorder($order,$rmaid){\n $flag = 0;\n if ($order->canCancel()) {\n $order->getPayment()->cancel();\n $flag = $this->mpregisterCancellation($order,$rmaid);\n }\n\n return $flag;\n }", "function webform_confirm_email_webform_emails_form_validate(&$form, &$form_state) {\n foreach(array('email_option', 'email_component') as $index) {\n if (isset($form_state['values'][$index]) == FALSE) {\n $form_state['values'][$index] = NULL;\n }\n }\n if (!isset($form_state['values']['status'])) {\n $form_state['values']['status'] = 1;\n }\n\n if ( isset($form_state['triggering_element']['#submit'][0])\n && $form_state['triggering_element']['#submit'][0] == 'webform_emails_form_status_save') {\n if (isset($form_state['values']['emails']['add_button'])) {\n unset($form_state['values']['emails']['add_button']);\n }\n foreach($form_state['values']['confirmation_request'] as $eid => $email) {\n if ($eid != 'add_button') {\n $form_state['values']['emails'][$eid]['status'] = $email['status'];\n }\n }\n foreach($form_state['values']['confirmation'] as $eid => $email) {\n if ($eid != 'add_button') {\n $form_state['values']['emails'][$eid]['status'] = $email['status'];\n }\n }\n }\n}", "public function approveOrDenyCancelledTransactionAction (Request $request)\r\n {\r\n $orderProductIds = $request->request->get('orderProductIds');\r\n $isApprove = (bool) $request->request->get('isApprove');\r\n $remarks = $request->request->get('remarks');\r\n $em = $this->getDoctrine()->getManager();\r\n $orderProductRepository = $em->getRepository('YilinkerCoreBundle:OrderProduct');\r\n $orderProductEntities = $orderProductRepository->findByOrderProductId($orderProductIds);\r\n $transactionManager = $this->get('yilinker_core.service.transaction');\r\n $isSuccessful = $transactionManager->approveOrDenyCancelledTransaction(\r\n $orderProductEntities,\r\n $remarks,\r\n $isApprove,\r\n $this->getUser()\r\n );\r\n\r\n return new JsonResponse($isSuccessful);\r\n }", "public function askForFeeConfirmation()\n {\n }", "public function testIsMarkedDoneIfUndone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(true, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme faite.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function testCancelSubmit(): void {\n $this->drupalLogin($this->adminUser);\n if ($this->dialogRouteTest) {\n $ajax = $this->postAjaxForm([], 'Cancel');\n $this->assertAjaxCommandCloseModalDialog($ajax);\n $this->assertAjaxCommandsTotal($ajax, 1);\n }\n else {\n $this->assertFalse(FALSE, \"Don't mark this test as risky!\");\n }\n }", "function check_failures($parameters) \n\t{ \n\t\tif($this->has_type($parameters, 'cancel_principal')\n\t\t || $this->has_type($parameters, 'card_cancel_principal')\n\t\t)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "#[@test]\n public function reasonOnly() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals('Out of office', $action->reason);\n }", "public function getDiscountCanceled();", "function confirm($question, $failText, $kill = false, $exit_status = 0) {\n\t$response = [true, \"y\"];\n\tprint $question.\"\\n(y/n)\\n\";\n\t$answer = readline();\n\tif ($answer != \"y\" && $answer != \"yes\") \n\t{\n\t\tif ($kill) {\n\t\t\tprint $failText.\"\\n\";\n\t\t\texit($exit_status);\n\t\t} else {\n\t\t\t$response = [false, $answer];\n\t\t\tprint $failText.\"\\n\";\n\t\t}\n\t}\n\treturn $response;\n}", "public function testAccessTokenAlreadyRevokedReturnsFalse(): void\n {\n // Collects a random User.\n $model = $this->model\n ->newQuery()\n ->where('revoked', true)\n ->inRandomOrder()\n ->first();\n\n // Performs test.\n $result = $this->repository->revoke(new AccessToken($model->getAttributes()));\n\n // Performs assertion.\n $this->assertFalse(\n $result,\n 'The revoke operation should have returned true'\n );\n }", "public function isConfirmed()\n {\n return $this->confirmation;\n }", "public function testShouldConfirm()\n {\n $app = m::mock('Illuminate\\Contracts\\Foundation\\Application');\n $repo = m::mock('Zizaco\\Confide\\RepositoryInterface');\n $passService = m::mock('Zizaco\\Confide\\PasswordServiceInterface');\n $loginThrottler = m::mock('Zizaco\\Confide\\LoginThrottleServiceInterface');\n $confide = new Confide($repo, $passService, $loginThrottler, $app);\n $code = '12345';\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n $repo->shouldReceive('confirmByCode')\n ->once()->with($code)\n ->andReturn(true);\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n $this->assertTrue($confide->confirm($code));\n }", "public function confirmed()\n {\n return $this->rule('confirmed');\n }", "public function cancel_traveler_booking($tourwise_id, $traveler_id_arr, $first_names_arr)\n{\n begin_t();\n for($i=0; $i<sizeof($traveler_id_arr); $i++)\n {\n $sq_cancel = mysql_query(\"update travelers_details set status='Cancel' where traveler_id='$traveler_id_arr[$i]'\");\n if(!$sq_cancel)\n {\n $GLOBALS['flag'] = false;\n echo \"error--Sorry, some members are not canceled.\";\n //exit;\n } \n } \n\n\n if($GLOBALS['flag']){\n commit_t();\n //Cancelation mail send\n $this->traveler_cancelation_mail_send($tourwise_id, $traveler_id_arr);\n\n //Cancelation sms send\n $this->traveler_cancelation_sms_send($tourwise_id);\n\n echo \"Group Booking Cancellation is successfully done.\";\n exit;\n }\n else{\n rollback_t();\n exit;\n }\n\n \n}", "public function testValidateAndDelete() {\n\t\ttry {\n\t\t\t$postData = array();\n\t\t\t$this->CreditNote->validateAndDelete('invalidCreditNoteId', $postData);\n\t\t} catch (OutOfBoundsException $e) {\n\t\t\t$this->assertEqual($e->getMessage(), 'Invalid Credit Note');\n\t\t}\n\t\ttry {\n\t\t\t$postData = array(\n\t\t\t\t'CreditNote' => array(\n\t\t\t\t\t'confirm' => 0));\n\t\t\t$result = $this->CreditNote->validateAndDelete('creditnote-1', $postData);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertEqual($e->getMessage(), 'You need to confirm to delete this Credit Note');\n\t\t}\n\n\t\t$postData = array(\n\t\t\t'CreditNote' => array(\n\t\t\t\t'confirm' => 1));\n\t\t$result = $this->CreditNote->validateAndDelete('creditnote-1', $postData);\n\t\t$this->assertTrue($result);\n\t}", "public function test_user_can_decline_their_invites()\n {\n $user = factory(User::class, 1)->create()->first();\n factory(Box::class, 3)->create();\n\n $invite = Invite::create([\n 'email' => $user->email,\n 'box_id' => 1, //Box doesn't matter\n 'role' => 'coach',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 2,\n 'role' => 'owner',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $this->actingAs($user);\n\n $response = $this->post(route('frontend.invites.decline', $invite));\n\n $response->assertStatus(200);\n\n $invites = $user->invites();\n\n $this->assertEquals(2, $invites->count());\n\n }", "public function pending(int $flags): bool {}", "public function testCancel()\n {\n VCR::insertCassette('pickups/cancel.yml');\n\n $shipment = Shipment::create(Fixture::oneCallBuyShipment());\n\n $pickupData = Fixture::basicPickup();\n $pickupData['shipment'] = $shipment;\n\n $pickup = Pickup::create($pickupData);\n\n $boughtPickup = $pickup->buy([\n 'carrier' => Fixture::usps(),\n 'service' => Fixture::pickupService(),\n ]);\n\n $cancelledPickup = $boughtPickup->cancel();\n\n $this->assertInstanceOf('\\EasyPost\\Pickup', $cancelledPickup);\n $this->assertStringMatchesFormat('pickup_%s', $cancelledPickup->id);\n $this->assertEquals('canceled', $cancelledPickup->status);\n }", "function cancel(){\n\t\t//echo \"In Cancel\";\n\t\t\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ';\n\t\t//echo JFactory::getDate('now', JFactory::getApplication()->getCfg('offset'))->toFormat() . \"\\n<br/><br/>\";\n\t\t\n\t\t//$date = JFactory::getDate();\n\t\t//$date->setOffset(JFactory::getApplication()->getCfg('offset'));\n\t \n\t \t//echo \"Offset: \" . JFactory::getApplication()->getCfg('offset');\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ' . $date->toFormat() . \"\\n\";\n\t\t$date =& JFactory::getDate($time= 'now', $tzOffset=0);\n\n\t\t//$date->setOffset($mainframe->getCfg('offset'));\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ' . $date->toFormat();\n\t\t\n\t\t//echo \"New date: \" . date('Y-m-d H:i:s');\n\n\t\t//return false;\n\t\t\n\t\t$insData =new stdClass();\n\t\t$insData->idt_drivin_event_apply = $_POST['appCanId'];\n\n\t\t//$date = new DateTime();\n\t\t$insData->dt_cancel = date('Y-m-d H:i:s'); //'CURRENT_TIMESTAMP';//$date->getTimestamp();\n\t\t\n\t\t$db = JFactory::getDBO();\n\t\tif(!$db->updateObject( '#__jevent_events_apply', $insData, 'idt_drivin_event_apply' )){\n\t\t\techo $database->stderr();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;//resendCancelEmailById($insData->idt_drivin_event_apply);\n\t}", "function mc_tweet_approval( $prev, $new ) {\n\tif ( function_exists( 'wpt_post_to_twitter' ) && isset( $_POST['mc_twitter'] ) && trim( $_POST['mc_twitter'] ) != '' ) {\n\t\tif ( ( 0 == $prev || 2 == $prev ) && 1 == $new ) {\n\t\t\twpt_post_to_twitter( stripslashes( $_POST['mc_twitter'] ) );\n\t\t}\n\t}\n}" ]
[ "0.6955699", "0.6690282", "0.64127743", "0.6129533", "0.5875573", "0.5846233", "0.5741694", "0.5722742", "0.5672198", "0.5627346", "0.5607549", "0.5585798", "0.5580044", "0.5552409", "0.5528225", "0.5516798", "0.5495939", "0.5483847", "0.5474092", "0.54527366", "0.5394605", "0.5388779", "0.5366256", "0.5352017", "0.534765", "0.5337937", "0.532858", "0.53246826", "0.53017557", "0.529107", "0.5281321", "0.5275483", "0.52748275", "0.5270846", "0.52300036", "0.52256125", "0.5225121", "0.5179213", "0.5177273", "0.51772386", "0.5170851", "0.5163058", "0.5152577", "0.51514894", "0.51408947", "0.511884", "0.51075304", "0.50968033", "0.50946295", "0.50935507", "0.50858754", "0.50853366", "0.50825834", "0.507218", "0.5060166", "0.5052023", "0.50462484", "0.5045082", "0.5044197", "0.5036669", "0.503299", "0.5025427", "0.5023635", "0.5022828", "0.5021223", "0.5009952", "0.5004849", "0.50047684", "0.50043875", "0.5000151", "0.49995977", "0.49907374", "0.49821126", "0.49785417", "0.49784124", "0.49763682", "0.4974127", "0.49686092", "0.49652547", "0.49645957", "0.49628872", "0.49576032", "0.49557588", "0.49552298", "0.49545866", "0.49520692", "0.49513754", "0.49440932", "0.49367523", "0.4931221", "0.4930756", "0.4927638", "0.49268398", "0.49184918", "0.4911711", "0.49108154", "0.4910247", "0.49083486", "0.49047577", "0.49045214" ]
0.7135051
0
Tests one disagreed and one confirmed disagreed gets marked as cancel/disagreed
public function testOneCancelledOneDisagreedIsDisagreed() { $history = $this->getMockHistory(array( 'getCountDisagreed' => 1, 'getCountConfirmedDisagreed' => 1, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelledIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneDisagreedNoCancelIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function disapprove()\n {\n return $this->approve(false);\n }", "public function testItCanRejectASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/reject/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 0,\n ]);\n }", "public function declined()\n\t{\n\t\treturn !$this->approved();\n\t}", "public function testConfirmWithoutCodeFail() {\n //avoid creating discounts with same referer and let the discount action be set before we test it\n sleep(1);\n\n // create new discount of type 2\n $discount = $this->createNewCustomerDiscount(array('type' => 2));\n\n $this->dispatch('/discount/confirm/referer/' . $referer);\n $this->assertController('discount');\n $this->assertAction('confirm');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n }", "public function testCancelPresenceOrAbsence(): void {\n $this->drupalLogin($this->adminUser);\n $this->drupalGet($this->getPath());\n if ($this->dialogRouteTest) {\n $this->assertActionExists('edit-cancel', 'Cancel');\n }\n else {\n $this->assertActionNotExists('edit-cancel', 'Cancel');\n }\n }", "public function mtii_signed_doc_disapproval()\n {\n $this->mtii_verify_ajax_nonce($_REQUEST['approval_nonce'], \"doc-upload-approval-nonce\");\n $this->check_if_user_is_admin();\n if (isset($_REQUEST[\"reg_catg\"]) && ($_REQUEST[\"reg_catg\"]==\"Cooperative\" || $_REQUEST[\"reg_catg\"]==\"ngoAndCbo\")) {\n $this->confirm_approval_right(true);\n $tasks_performer = new TasksPerformer;\n $invoice_info_from_db = $tasks_performer->get_invoice_details_from_db($_REQUEST[\"doc_title\"]);\n $invoice_info_from_cp = $tasks_performer->get_invoice_as_cpt($_REQUEST[\"doc_title\"]);\n $inv_sub_catg_from_cp = get_post_meta($invoice_info_from_cp->ID, 'invoice_sub_category', true);\n $invoice_sub_catg_db = isset($invoice_info_from_db->invoice_sub_category) ?\n $invoice_info_from_db->invoice_sub_category : null;\n if ($invoice_info_from_db && $invoice_info_from_cp\n && (($inv_sub_catg_from_cp===\"replacement\" && $invoice_sub_catg_db===\"replacement\")\n || ($inv_sub_catg_from_cp===\"used-replacement\" && $invoice_sub_catg_db===\"used-replacement\"))\n ) {\n $update_info = $this->mtii_decline_cert_replacement($_REQUEST[\"doc_title\"]);\n $update_info[\"type\"] = \"Replacement\";\n } else if ($invoice_info_from_db && $invoice_info_from_cp\n && (($inv_sub_catg_from_cp===\"legal-search\" && $invoice_sub_catg_db===\"legal-search\")\n || ($inv_sub_catg_from_cp===\"used-legal-search\" && $invoice_sub_catg_db===\"used-legal-search\"))\n ) {\n $update_info = $this->mtii_decline_legal_search($_REQUEST[\"doc_title\"]);\n $update_info[\"type\"] = \"Legal Search\";\n } else {\n $update_info = $this->mtii_decline_registration($_REQUEST[\"doc_title\"], $_REQUEST[\"doc_id\"], $_REQUEST[\"reg_catg\"]);\n }\n } else if (isset($_REQUEST[\"reg_catg\"]) && $_REQUEST[\"reg_catg\"]==\"Business Premise\") {\n $this->confirm_approval_right(false, true);\n $update_info = $this->mtii_decline_biz_premises_reg($_REQUEST[\"doc_title\"], $_REQUEST[\"doc_id\"]);\n } else {\n $update_info = array(\"this_is_it\"=>\"Here we go\", \"status\"=>\"Approved\");\n }\n $this->prepare_to_send_response($update_info);\n }", "public function getDiscountCanceled();", "public function cancellationRequested() : bool;", "#[@test]\n public function reasonOnly() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals('Out of office', $action->reason);\n }", "public function isRejected() {\n\t\treturn $this->approved == -1;\n\t}", "public function isMissed(): bool\n {\n return $this->status == 'missed';\n }", "public function getHasBeenRejectedBefore(): bool;", "public function testIsAvailableWithCanceledGuarantee()\n {\n $orderId = 123;\n\n /** @var CaseInterface|\\PHPUnit_Framework_MockObject_MockObject $case */\n $case = $this->getMockBuilder(CaseInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $case->expects($this->once())\n ->method('getGuaranteeDisposition')\n ->willReturn(CaseEntity::GUARANTEE_CANCELED);\n\n $this->caseManagement->expects($this->once())\n ->method('getByOrderId')\n ->with($orderId)\n ->willReturn($case);\n\n $this->assertFalse($this->cancelGuaranteeAbility->isAvailable($orderId));\n }", "public function testCancelPayment()\n {\n $this->mockPaymentMapping(\n MiraklMock::ORDER_COMMERCIAL_CANCELED,\n StripeMock::CHARGE_STATUS_AUTHORIZED,\n 8472\n );\n $this->executeCommand();\n $this->assertCount(0, $this->validateReceiver->getSent());\n $this->assertCount(0, $this->captureReceiver->getSent());\n $this->assertCount(1, $this->cancelReceiver->getSent());\n }", "public function cancel()\n {\n $this->confirmationArchived = false;\n }", "public function getBaseDiscountCanceled();", "public function testIsMarkedUndoneIfDone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->task->setIsDone(true);\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(false, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme à faire.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function testReactTakesPrecedenceOverDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountPaid' => 1,\n\t\t\t'getCountDisagreed' => 2,\n\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_REACT,\n\t\t\t$result\n\t\t);\n\t}", "public function markAsUnpaid() {\n $this->status = parent::STATUS_APPROVED_BY_USER;\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "private static function filterCancelledOrNeedsUpdate() {\n\t\treturn Fns::reject( Logic::anyPass( [\n\t\t\tpipe(\n\t\t\t\tObj::prop( 'status' ),\n\t\t\t\tFns::unary( 'intval' ),\n\t\t\t\tLst::includes( Fns::__, [ ICL_TM_NOT_TRANSLATED, ICL_TM_ATE_CANCELLED ] )\n\t\t\t),\n\t\t\tObj::prop( 'needs_update' )\n\t\t] ) );\n\t}", "function testResendVerification() {\n $this->assertFalse($this->oObject->resendVerification());\n }", "public function testAccessTokenAlreadyRevokedReturnsFalse(): void\n {\n // Collects a random User.\n $model = $this->model\n ->newQuery()\n ->where('revoked', true)\n ->inRandomOrder()\n ->first();\n\n // Performs test.\n $result = $this->repository->revoke(new AccessToken($model->getAttributes()));\n\n // Performs assertion.\n $this->assertFalse(\n $result,\n 'The revoke operation should have returned true'\n );\n }", "public function test_completed_request_does_not_block_new_request_for_unregistered_user() {\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_author' => 0,\n\t\t\t\t'post_title' => self::$non_registered_user_email,\n\t\t\t\t'post_status' => 'request-failed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t$actual = wp_create_user_request( self::$non_registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 0, (int) $post->post_author );\n\t\t$this->assertSame( 'export_personal_data', $post->post_name );\n\t\t$this->assertSame( self::$non_registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function markAsUndone() {\n\t\t$sql = \"UPDATE\twbb\".WBB_N.\"_thread\n\t\t\tSET\tisDone = 0\n\t\t\tWHERE\tthreadID = \".$this->threadID;\n\t\tWCF::getDB()->sendQuery($sql);\n\t}", "public function isButtonValidBrokenSetupMultiplePrimaryActionsGivenExpectFalse() {}", "private function confirm()\n {\n // if 1, direct approve\n\n $load = $this->load;\n\n $fleetCount = $load->fleet_count;\n\n if($fleetCount > 1) {\n $loadTrips = $load->confirmed_trips()\n ->count()\n ;\n } else {\n $loadTrips = 1;\n }\n\n if($loadTrips == $fleetCount) {\n\n //@todo: send confirm notifications\n\n $load->status = Load::STATUS_CONFIRMED;\n $load->save();\n }\n\n }", "public function canBeCancelled()\n {\n return $this->isNotYetSubmitted();\n }", "public function getCancelledAttribute(): bool\n {\n return $this->status_id === CampaignStatus::STATUS_CANCELLED;\n }", "public function testDeclines()\n {\n $this->mock->append(new Response(204));\n\n $order = new Orders($this->connector, 'auth-token-123456');\n $order->decline(['data' => 'sent in']);\n\n $request = $this->mock->getLastRequest();\n $this->assertEquals(Method::DELETE, $request->getMethod());\n $this->assertEquals(\n '/instantshopping/v1/authorizations/auth-token-123456',\n $request->getUri()->getPath()\n );\n $this->assertEquals('{\"data\":\"sent in\"}', strval($request->getBody()));\n \n\n $this->assertAuthorization($request);\n }", "public function markAsCancelled() : void\n {\n $this->ends_at = Carbon::now()->toDateTimeString();\n $this->is_cancelled = 1;\n $this->is_active = 0;\n $this->stripe_status = StripeSubscription::STATUS_CANCELED;\n $this->updateOrFail();\n }", "public function testForget()\n\t{\n\t\t$c = get_c();\n\n\t\t$result = $c->PostTask('tasks.add', array(2,2));\n $result->forget();\n\t\t$result->revoke();\n\t}", "function should_prevent_deletion( $delete, $post, $force_delete ) {\r\n\t\r\n\tif( $post->post_type === 'wpass_status' ) {\r\n\t\tif( true === is_status_assigned_to_open_ticket( $post ) ) {\r\n\t\t\t$delete = false;\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $delete;\r\n}", "public function decline() {\n header('Content-type: application/json');\n $requestId = input(\"requestid\");\n Database::table(\"requests\")->where(\"id\", $requestId)->update(array(\"status\" => \"Declined\"));\n $request = Database::table(\"requests\")->where(\"id\", $requestId)->first();\n $sender = Database::table(\"users\")->where(\"id\", $request->sender)->first();\n $documentLink = env(\"APP_URL\").\"/document/\".$request->document;\n $send = Mail::send(\n $sender->email, \"Signing invitation declined by \".$request->email,\n array(\n \"title\" => \"Signing invitation declined.\",\n \"subtitle\" => \"Click the link below to view document.\",\n \"buttonText\" => \"View Document\",\n \"buttonLink\" => $documentLink,\n \"message\" => $request->email.\" has declined the signing invitation you had sent. Click the link above to view the document.<br><br>Thank you<br>\".env(\"APP_NAME\").\" Team\"\n ),\n \"withbutton\"\n );\n $actionTakenBy = escape($request->email);\n /*\n * Check, whether IP address register is allowed in .env\n * If yes, then capture the user's IP address\n */\n if (env('REGISTER_IP_ADDRESS_IN_HISTORY') == 'Enabled') {\n $actionTakenBy .= ' ['.getUserIpAddr().']';\n }\n $activity = '<span class=\"text-primary\">'.$actionTakenBy.'</span> declined a signing invitation of this document.';\n Signer::keephistory($request->document, $activity, \"default\");\n $notification = '<span class=\"text-primary\">'.escape($request->email).'</span> declined a signing invitation of this <a href=\"'.url(\"Document@open\").$request->document.'\">document</a>.';\n Signer::notification($sender->id, $notification, \"decline\");\n if (!$send) { exit(json_encode(responder(\"error\", \"Oops!\", $send->ErrorInfo))); }\n exit(json_encode(responder(\"success\", \"Declined!\", \"Request declined and sender notified.\",\"reload()\")));\n }", "public function isCanceled(): bool\n {\n return $this->status == 'canceled';\n }", "public function test_manual_CancelOrderRequest() {\n\n // Stop here and mark this test as incomplete.\n// $this->markTestIncomplete(\n// 'skeleton for test_manual_CancelOrderRequest'\n// );\n \n $countryCode = \"SE\";\n $sveaOrderIdToClose = 349698; \n $orderType = \\ConfigurationProvider::INVOICE_TYPE;\n \n $cancelOrderBuilder = new Svea\\CancelOrderBuilder( Svea\\SveaConfig::getDefaultConfig() );\n $cancelOrderBuilder->setCountryCode( $countryCode );\n $cancelOrderBuilder->setOrderId( $sveaOrderIdToClose );\n $cancelOrderBuilder->orderType = $orderType;\n \n $request = new Svea\\AdminService\\CancelOrderRequest( $cancelOrderBuilder );\n $response = $request->doRequest();\n \n ////print_r(\"cancelorderrequest: \"); //print_r( $response ); \n $this->assertInstanceOf('Svea\\AdminService\\CancelOrderResponse', $response);\n $this->assertEquals(1, $response->accepted ); \n $this->assertEquals(0, $response->resultcode ); \n\n }", "public function test_user_cant_decline_not_their_invites()\n {\n $user = factory(User::class, 1)->create()->first();\n factory(Box::class, 3)->create();\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 1, //Box doesn't matter\n 'role' => 'coach',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 2,\n 'role' => 'owner',\n 'token' => 'fake_token'\n ]);\n\n Invite::create([\n 'email' => $user->email,\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $invite = Invite::create([\n 'email' => \"[email protected]\",\n 'box_id' => 3,\n 'role' => 'admin',\n 'token' => 'fake_token'\n ]);\n\n $this->actingAs($user);\n\n $response = $this->post(route('frontend.invites.decline', $invite));\n\n $response->assertStatus(302);\n\n $invites = $user->invites();\n\n $this->assertEquals(3, $invites->count());\n\n }", "public function testIsMarkedDoneIfUndone()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $title = $this->task->getTitle();\n $this->logInAsUser();\n $this->client->request('GET', '/tasks/'.$id.'/toggle');\n\n $isDone = $this->task->getIsDone();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertEquals(true, $isDone);\n $this->assertContains('Superbe! La tâche '.$title.' a bien été marquée comme faite.', $crawler->filter('div.alert.alert-success')->text());\n }", "public function isCancelRequest(Order $order, array $postData);", "public function cancel_request() {\n\n $pending_request_exists = $this->micro_relation_exists($this->from, $this->to, \"P\");\n\n if($pending_request_exists) {\n $this->delete_relation(\"P\");\n }\n }", "function _reconfirm_cheat_code()\n\t{\n\t\t//If discount is applied, do a conditional-check again\n\t\tif($this->cart->is_discount_applied())\n\t\t{\n\t\t\t$coupon = $this->cart->discount_info();\n\t\t\tif($this->_can_apply_code($coupon) == false)\n\t\t\t{\n\t\t\t\t$this->cart->remove_discount();\n\t\t\t}\n\t\t}\n\t}", "public function canBeDeclined()\n {\n return $this->isAwaitingFee();\n }", "public function markUnapproved()\n {\n $this->Moderated = false;\n $this->write();\n $this->extend('afterMarkUnapproved');\n }", "function cancelPending() {\n\t\tself::$_db->saveQry(\"SELECT `ID` FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\"AND ? >= `startTime` \",\n\t\t\t\tCalendar::startCancel());\n\t\t\n\n\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\tReservation::load($res['ID'])->failed();\n\t\t\n\t\t\n\t\t// TagesEnde - BuchungsCancelZeit ist kleiner als Aktueller Zeitblock\n\t\tif(Calendar::calculateTomorrow()) {\n\t\t\t$opening = Calendar::opening(date('Y-m-d', strtotime(\"tomorrow\")));\n\t\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` \".\n\t\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \",\n\t\t\t\t\t$opening->format(\"Y-m-d H:i\"), \n\t\t\t\t\tCalendar::startCancel($opening));\n\t\t\t\n\t\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\t\tReservation::load($res['ID'])->failed();\n\t\t}\n\t\t\n\t}", "public function getIsNotApproved()\n {\n return $this->state !== self::STATE_APPROVED;\n }", "public function testDeclined(){ \n\n $unBuyableProduct = Product::where('price', '>', 75)\n ->where('quantity','>',10)\n ->first();\n\n //test card 1\n $response = $this->checkoutAction($unBuyableProduct, $this->testVisaPan);\n $response->assertSee(\"Declined\");\n\n\n //test card 2\n $response = $this->checkoutAction($unBuyableProduct, $this->testMasterCardPan);\n $response->assertSee(\"Declined\"); \n \n }", "public function confirmingDeletion()\n {\n $this->confirmingExpenseDeletion = true;\n }", "public function cancel_approve_request($id_exam)\n {\n try {\n $exam = $this->_db_exam->get_a_exam_file($id_exam);\n //kiem tra xem co phai de cua nguoi nay khong\n //kiem tra xem co phai de duoc phep huy gui duyet khong\n if (is_null($exam) || $exam->status != EXAM_WAITING_APPROVE) {\n return redirect()->back()\n ->with('message_notification', \"Đề thi này không được hủy gửi yêu cầu duyệt\");\n }\n $rs = $this->_db_exam->cancel_send_approve($id_exam);\n if (is_numeric($rs)) {\n return redirect('ctv/exam/have_answer/list=%20')\n ->with('message_success', \"Hủy yêu cầu duyệt đề thi thành công\");\n } else {\n return redirect()->back()\n ->with('message_notification', \"Hủy yêu cầu duyệt thất bại\");\n }\n\n } catch (\\Exception $ex) {\n return $ex;\n }\n }", "function cancel_booking_approve($id)\n {\n $useremail = $this->userinfo_by_bookingid($id);\n $this->emails_model->booking_approve_cancellation_email($useremail);\n $this->cancel_booking($id);\n // $this->delete_booking($id);\n }", "function reject_dispute(){\n\t\t$disputeId = $this->uri->segment(4);\n\n\t\t$condition = array('id' => $disputeId);\n\n\t\t$data = array('status' =>'Reject');\n\t\t\n\t\t$this->review_model->update_details(DISPUTE,$data,$condition);\n\n\n\t\t$this->setErrorMessage('success','Dispute rejected successfully');\n\t\tredirect('admin/dispute/display_dispute_list');\n\n\t}", "public function isDeclined(): bool;", "public function testItCanApproveASuggestedEditPendingCuration()\n {\n $this->logInAsUser(['curator' => 1]);\n\n $edit = factory('App\\Models\\SuggestedEdit')->create();\n\n $this->get('/curation/edits/approve/' . $edit->id)->assertResponseStatus(302);\n\n $this->seeInDatabase('suggested_edits', [\n 'id' => $edit->id,\n 'approved' => 1,\n ]);\n }", "public function test_completed_request_does_not_block_new_request() {\n\t\t// Update first request.\n\t\twp_update_post(\n\t\t\tarray(\n\t\t\t\t'ID' => self::$request_id,\n\t\t\t\t'post_status' => 'request-completed', // Not 'request-pending' or 'request-confirmed'.\n\t\t\t)\n\t\t);\n\n\t\t// Second request.\n\t\t$actual = wp_create_user_request( self::$registered_user_email, 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( self::$registered_user_email, $post->post_title );\n\t\t$this->assertSame( 'request-pending', $post->post_status );\n\t\t$this->assertSame( 'user_request', $post->post_type );\n\t}", "public function testPending()\n {\n $this->assertTrue($this->kittyUser->isPending());\n $returnedKittyUser = $this->kittyUser->setPending(false);\n $this->assertSame($this->kittyUser, $returnedKittyUser);\n $this->assertFalse($this->kittyUser->isPending());\n }", "public function cancelOrdersInPending()\n {\n //Etape 1 : on recupere pour chaque comptes le nombre de jours pour l'annulation\n $col = Mage::getModel('be2bill/merchandconfigurationaccount')->getCollection();\n $tabLimitedTime = array();\n foreach ($col as $obj) {\n $tabLimitedTime[$obj->getData('id_b2b_merchand_configuration_account')] = $obj->getData('order_canceled_limited_time') != null ? $obj->getData('order_canceled_limited_time') : 0;\n }\n\n //Etape 2\n $collection = Mage::getResourceModel('sales/order_collection')\n ->addFieldToFilter('main_table.state', Mage_Sales_Model_Order::STATE_NEW)\n ->addFieldToFilter('op.method', 'be2bill');\n $select = $collection->getSelect();\n $select->joinLeft(array(\n 'op' => Mage::getModel('sales/order_payment')->getResource()->getTable('sales/order_payment')), 'op.parent_id = main_table.entity_id', array('method', 'additional_information')\n );\n\n Mage::log((string)$collection->getSelect(), Zend_Log::DEBUG, \"debug_clean_pending.log\");\n\n // @var $order Mage_Sales_Model_Order\n foreach ($collection as $order) {\n $addInfo = unserialize($order->getData('additional_information'));\n $accountId = $addInfo['account_id'];\n $limitedTime = (int)$tabLimitedTime[$accountId];\n\n if ($limitedTime <= 0) {\n continue;\n }\n\n $store = Mage::app()->getStore($order->getStoreId());\n $currentStoreDate = Mage::app()->getLocale()->storeDate($store, null, true);\n $createdAtStoreDate = Mage::app()->getLocale()->storeDate($store, strtotime($order->getCreatedAt()), true);\n\n $difference = $currentStoreDate->sub($createdAtStoreDate);\n\n $measure = new Zend_Measure_Time($difference->toValue(), Zend_Measure_Time::SECOND);\n $measure->convertTo(Zend_Measure_Time::MINUTE);\n\n if ($limitedTime < $measure->getValue() && $order->canCancel()) {\n try {\n $order->cancel();\n $order->addStatusToHistory($order->getStatus(),\n // keep order status/state\n Mage::helper('be2bill')->__(\"Commande annulée automatique par le cron car la commande est en 'attente' depuis %d minutes\", $limitedTime));\n $order->save();\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n }\n\n return $this;\n }", "function cancel(){\n\t\t//echo \"In Cancel\";\n\t\t\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ';\n\t\t//echo JFactory::getDate('now', JFactory::getApplication()->getCfg('offset'))->toFormat() . \"\\n<br/><br/>\";\n\t\t\n\t\t//$date = JFactory::getDate();\n\t\t//$date->setOffset(JFactory::getApplication()->getCfg('offset'));\n\t \n\t \t//echo \"Offset: \" . JFactory::getApplication()->getCfg('offset');\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ' . $date->toFormat() . \"\\n\";\n\t\t$date =& JFactory::getDate($time= 'now', $tzOffset=0);\n\n\t\t//$date->setOffset($mainframe->getCfg('offset'));\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ' . $date->toFormat();\n\t\t\n\t\t//echo \"New date: \" . date('Y-m-d H:i:s');\n\n\t\t//return false;\n\t\t\n\t\t$insData =new stdClass();\n\t\t$insData->idt_drivin_event_apply = $_POST['appCanId'];\n\n\t\t//$date = new DateTime();\n\t\t$insData->dt_cancel = date('Y-m-d H:i:s'); //'CURRENT_TIMESTAMP';//$date->getTimestamp();\n\t\t\n\t\t$db = JFactory::getDBO();\n\t\tif(!$db->updateObject( '#__jevent_events_apply', $insData, 'idt_drivin_event_apply' )){\n\t\t\techo $database->stderr();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;//resendCancelEmailById($insData->idt_drivin_event_apply);\n\t}", "public function unpaid(): bool\n {\n return in_array($this->status, [self::PENDING]);\n }", "public function manualGetSatStatusThenCancelSignatureThenGetReceipt(): void\n {\n $settings = $this->createSettingsFromEnvironment();\n\n $cfdiXmlFile = __DIR__ . '/cfdi-to-cancel.xml';\n if (! file_exists($cfdiXmlFile)) {\n $this->markTestIncomplete(\"File $cfdiXmlFile does not exists\");\n }\n $cfdiXml = (string) file_get_contents($cfdiXmlFile);\n $cfdiUuid = '01B04C24-37CC-4F9E-BBA7-007A0AC3B543';\n\n // check that it has a correct status\n $beforeCancelStatus = $this->checkCanGetSatStatusOrFail(\n $cfdiXml,\n 'Cannot assert cfdi before cancel status is not: No Encontrado'\n );\n\n $this->assertSame('Vigente', $beforeCancelStatus->cfdi());\n $this->assertStringStartsWith('Cancelable ', $beforeCancelStatus->cancellable());\n\n // Create cancel signature command from capsule\n $service = new CancelSignatureService($settings);\n\n $command = $this->createCancelSignatureCommandFromDocument(\n CancelDocument::newWithErrorsUnrelated($cfdiUuid)\n );\n\n // perform cancel\n $result = $service->cancelSignature($command);\n $document = $result->documents()->first();\n\n // check result related document\n $this->assertSame(\n '201', // 201 - Petición de cancelación realizada exitosamente\n $document->documentStatus(),\n 'SAT did not return 201 EstatusUUID on CancelSignature, is the service down?'\n );\n\n // check result properties\n $this->assertNotEmpty($result->voucher(), 'Finkok did not return voucher (Acuse) on CancelSignature');\n $this->assertNotEmpty($result->date(), 'Finkok did not return the cancellation date');\n $this->assertSame('EKU9003173C9', $result->rfc(), 'Finkok did not return expected RFC');\n\n // Consume GetReceiptService and assert that the response is the same (as XML and as string)\n $receipt = (new GetReceiptService($settings))->download(\n new GetReceiptCommand('EKU9003173C9', $cfdiUuid, ReceiptType::cancellation())\n );\n $this->assertXmlStringEqualsXmlString(\n $result->voucher(),\n $receipt->receipt(),\n 'El acuse que proviene del método get_receipt no coincide con el acuse de la cancelación'\n );\n $this->assertSame(\n $result->voucher(),\n $receipt->receipt(),\n 'El acuse que proviene del método get_receipt no es exactamente el mismo que el acuse de la cancelación'\n );\n }", "public function markAsPending() {\n $this->status = parent::STATUS_PENDING;\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "public function test__it_should_be_block_close_stock_removal_when_has_product_confirmed()\n {\n $removal = Removal::create();\n\n // enviado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 2,\n ]);\n\n // confirmado\n RemovalProduct::create([\n 'stock_removal_id' => $removal->id,\n 'status' => 1,\n ]);\n\n $this->json('POST', \"/api/estoque/retirada/fechar/{$removal->id}\")\n ->seeStatusCode(400)\n ->seeJson([\n 'status' => 'ValidationFail'\n ]);\n }", "public function cancelAuthorizationShouldNotAddCancellationIfCancellationFails(): void\n {\n $heidelpay = new Heidelpay('s-priv-123');\n $payment = (new Payment())->setParentResource($heidelpay)->setId('myPaymentId');\n $authorization = (new Authorization())->setPayment($payment)->setId('s-aut-1');\n\n /** @var ResourceService|MockObject $resourceSrvMock */\n $resourceSrvMock = $this->getMockBuilder(ResourceService::class)->disableOriginalConstructor()->setMethods(['createResource'])->getMock();\n $cancellationException = new HeidelpayApiException(\n 'Cancellation failed',\n 'something went wrong',\n ApiResponseCodes::API_ERROR_ALREADY_CANCELLED\n );\n $resourceSrvMock->expects($this->once())->method('createResource')->willThrowException($cancellationException);\n\n $cancelSrv = $heidelpay->setResourceService($resourceSrvMock)->getCancelService();\n $this->expectException(HeidelpayApiException::class);\n $this->expectExceptionCode(ApiResponseCodes::API_ERROR_ALREADY_CANCELLED);\n $cancelSrv->cancelAuthorization($authorization, 12.122);\n $this->assertCount(0, $authorization->getCancellations());\n }", "public function declineMultiple(){\n\t\tif(isset($_SESSION['admin_email'])){\n\t\t\t$this->model(\"AdminApproveModel\");\n\t\t\tif(isset($_POST['admin_decline_all'])){\n\t\t\t$approve_all = $this->sanitizeString($_POST['admin_decline_all']);\n\t\t\t$id = $this->sanitizeString($_POST['id']);\n\t\t\t$check_all = $this->sanitizeString($_POST['admin_check_all']);\n\t\t\tif(!empty($check_all)){\n\t\t\t\tAdminApproveModel::where('id', $id)->delete();\n\t\t\t}\n\t\t}\n\t}\n\t}", "public function checkForAnuallyRecurring()\n {\n // not supported\n }", "function _wp_privacy_account_request_confirmed($request_id)\n {\n }", "public function testInboundDocumentReject()\n {\n }", "public function cancelorder($order,$rmaid){\n $flag = 0;\n if ($order->canCancel()) {\n $order->getPayment()->cancel();\n $flag = $this->mpregisterCancellation($order,$rmaid);\n }\n\n return $flag;\n }", "public function testPatchReviewerRequiredToggle()\n {\n $this->createChange();\n Review::createFromChange('1')->save()->updateFromChange('1')\n ->setParticipantData('nonadmin', true, 'required')->addVote('nonadmin', 1)\n ->save();\n\n // there shouldn't be any tasks but proccess just to be safe\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify the starting state is good\n $this->assertSame(\n array(\n 'admin' => array(),\n 'nonadmin' => array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n )\n ),\n Review::fetch('2', $this->p4)->getParticipantsData()\n );\n\n $expected = array(\n 'admin' => array(), // as they are the author; can't get rid of em\n 'nonadmin' => array('vote' => array('value' => 1, 'version' => 1, 'isStale' => false))\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_POST)\n ->setPost(new Parameters(array('required' => false)))\n ->setQuery(new Parameters(array('_method' => 'patch')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n\n\n // now try using patch and setting it to required\n $expected['nonadmin'] = array(\n 'required' => true, 'vote' => array('value' => 1, 'version' => 1, 'isStale' => false)\n );\n $this->getRequest()\n ->setMethod(\\Zend\\Http\\Request::METHOD_PATCH)\n ->setPost(new Parameters(array('required' => '1')));\n\n // dispatch and check output\n $this->dispatch('/reviews/2/reviewers/nonadmin');\n $this->assertRoute('review-reviewer');\n $this->assertResponseStatusCode(200);\n $result = $this->getResult();\n $this->assertInstanceOf('Zend\\View\\Model\\JsonModel', $result);\n $review = $result->getVariable('review');\n // @codingStandardsIgnoreStart\n $this->assertSame(true, $result->getVariable('isValid'), print_r($result->getVariables(), true));\n // @codingStandardsIgnoreEnd\n $this->assertSame(\n $expected,\n $review['participantsData']\n );\n\n // proccess all tasks as they may impact things\n $this->getRequest()->getQuery()->set('debug', 1)->set('retire', 1);\n $this->dispatch('/queue/worker');\n\n // verify participants are still correct\n $review = Review::fetch('2', $this->p4);\n $this->assertSame(\n $expected,\n $review->getParticipantsData()\n );\n }", "final public function cancel_date(BadmintonDate $badminton_date) {\r\n\t\ttry {\r\n\t\t\tif ($badminton_date->date_id) {\r\n\t\t\t\t//If already confirmed and the user is the one who booked this court than \r\n\t\t\t\t$sql = \"UPDATE badminton_dates SET status = 0 WHERE date_id = '$badminton_date->date_id' LIMIT 1\";\r\n\t\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\t\tor die ($this->dbc);\r\n\t\t\t\t$this->log_action(); //Need to think about how to log actions\r\n\t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tthrow new UnexpectedValueException;\r\n \t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch (UnexpectedValueException $e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected function tryAgain()\n {\n $this->invoice->status = 'overdue';\n if ($this->invoice->num_tries >= 3) {\n $this->invoice->status = 'error';\n }\n\n $this->invoice->try_on_date = Carbon::tomorrow(env('TIMEZONE'))->timezone('UTC');\n $this->invoice->increment('num_tries');\n $this->invoice->save();\n\n event(new InvoiceWasNotPaid($this->invoice));\n }", "public function disapprove(EventDisapproveAttendancePost $request, $id)\n {\n $eventParticipant = EventParticipant::findOrFail($id);\n\n\n /*\n | @Begin Transaction\n |---------------------------------------------*/\n \\DB::beginTransaction();\n\n\n /* Disapprove the event participant */\n if($eventParticipant->disapprove($request->input('reason'))) {\n\n $event = $eventParticipant->event;\n $user = $eventParticipant->participant;\n\n \n /* Notify the user */\n $user->notify(new EventParticipantWasDisapproved($event, $user, $request->input('reason')));\n\n\n /*\n | @End Transaction\n |---------------------------------------------*/\n \\DB::commit();\n\n\n return response()->json([\n 'response' => 1,\n 'status' => $eventParticipant->status,\n 'message' => $eventParticipant->renderStatus(),\n ]);\n }\n\n return response()->json([\n 'response' => 0,\n 'message' => 'There seems to be a problem disapproving the request'\n ]); \n }", "function declineJob($postData)\n\t\t{\n\t\t\t//update the accept flag\n\t\t\t$update_1 = $this->manageContent->updateValueWhere(\"award_info\",\"is_declined\",1,\"bid_id\",$postData['bid']);\n\t\t\t$update_2 = $this->manageContent->updateValueWhere(\"award_info\",\"result_date\",date('Y-m-d g:i:s'),\"bid_id\",$postData['bid']);\n\t\t\t\n\t\t\tif( $update_1 == 1 && $update_2 == 1 )\n\t\t\t{\n\t\t\t\t//get the bid information\n\t\t\t\t$bid_details = $this->manageContent->getValue_where('bid_info','*','bid_id',$postData['bid']);\n\t\t\t\t\n\t\t\t\t//get the project details on which bid is made\n\t\t\t\t$project_details = $this->manageContent->getValue_where(\"project_info\",\"*\",\"project_id\",$bid_details[0]['project_id']);\n\t\t\t\t\n\t\t\t\t//get contractor details\n\t\t\t\t$con_details = $this->manageContent->getValue_where('user_info', '*', 'user_id', $bid_details[0]['user_id']);\n\t\t\t\t//getting employer details\n\t\t\t\t$emp_details = $this->getEmailIdFromUserId($project_details[0]['user_id']);\n\t\t\t\t//sending mail to employer\n\t\t\t\t$this->mailSent->mailForDecliningJob($emp_details[0], $emp_details[1], $con_details[0]['name'], $project_details[0]['title']);\n\t\t\t\t\n\t\t\t\techo \"Successfully declined.\";\n\t\t\t}\n\t\t}", "public function rejected()\n {\n $this->setStatus(self::STATUS_REJECTED);\n }", "function ctr_validateConfirmation(&$ctx)\n{\n $reservation = $ctx['reservation'];\n\n if ($reservation->persons AND $reservation->destination)\n return true;\n\n $ctx['warning'] .= \"Please, do not play with the URL.\\n\";\n\n return false;\n}", "public function setHasBeenRejectedBefore(bool $hasBeenRejectedBefore);", "function isRedeemed() {\n // we get if it wasn't used yet\n return $this->getUsed_at() != '';\n }", "public function canceled()\n {\n return $this->everSubscribed() && !$this->billingIsActive();\n }", "public function testAccessTokenCanBeRevoked(): void\n {\n // Collects a random User.\n $model = $this->model\n ->newQuery()\n ->where('revoked', false)\n ->inRandomOrder()\n ->first();\n\n // Performs test.\n $result = $this->repository->revoke(new AccessToken($model->getAttributes()));\n\n // Performs assertion.\n $this->assertTrue(\n $result,\n 'The revoke operation should have returned true'\n );\n }", "public function testCancelSubmit(): void {\n $this->drupalLogin($this->adminUser);\n if ($this->dialogRouteTest) {\n $ajax = $this->postAjaxForm([], 'Cancel');\n $this->assertAjaxCommandCloseModalDialog($ajax);\n $this->assertAjaxCommandsTotal($ajax, 1);\n }\n else {\n $this->assertFalse(FALSE, \"Don't mark this test as risky!\");\n }\n }", "public function testOrderReceiptDisabled() {\n $order_type = OrderType::load($this->order->bundle());\n $order_type->setSendReceipt(FALSE);\n $order_type->save();\n\n $this->order->getState()->applyTransitionById('place');\n $this->order->save();\n\n $this->assertCount(0, $this->getMails());\n }", "public function inappropriate( $notes, $toggle ) {\n\t\tif (\n\t\t\t$this->feedback->isFeatured() ||\n\t\t\t$this->feedback->isResolved() ||\n\t\t\t$this->feedback->isNonActionable() ||\n\t\t\t$this->feedback->isInappropriate() ||\n\t\t\t$this->feedback->isArchived() ||\n\t\t\t$this->feedback->isHidden() ||\n\t\t\t$this->feedback->isOversighted()\n\t\t) {\n\t\t\t$this->error = 'articlefeedbackv5-invalid-feedback-state';\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->feedback->aft_feature = 0;\n\t\t$this->feedback->aft_resolve = 0;\n\t\t$this->feedback->aft_noaction = 0;\n\t\t$this->feedback->aft_inappropriate = 1;\n\t\t$this->feedback->aft_archive = 0;\n\t\t$this->feedback->aft_hide = 0;\n\t\t$this->feedback->aft_oversight = 0;\n\n\t\t$this->logId = $this->log( __FUNCTION__, $this->feedback->aft_page, $this->feedback->aft_id, $notes, $this->user );\n\n\t\treturn true;\n\t}", "public function isAwaitingConfirmation() {\n if(isset($this->data['charge']))\n return $this->data['charge']['status'] === 'successful' ? false : true;\n else\n return true;\n }", "public function testQuestionSharev1questionstopExperts()\n {\n\n }", "public function testZeroDiscipline()\n {\n $result = false;\n $student = new StudentProfile();\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 0 && $status[\"result\"] == true)\n $result = true;\n $this->assertEquals(true, $result);\n }", "public function decline( $notes, $toggle ) {\n\t\t// not requested?\n\t\tif ( !$this->feedback->isRequested() ) {\n\t\t\t$this->error = 'articlefeedbackv5-invalid-feedback-state';\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->feedback->aft_decline = 1;\n\t\t$this->logId = $this->log( __FUNCTION__, $this->feedback->aft_page, $this->feedback->aft_id, $notes, $this->user );\n\n\t\treturn true;\n\t}", "public function isRedelivered();", "public function isCancelled(){\n return (bool) $this->cancelled_on != null;\n }", "public function isConfirmada(): bool\n {\n return $this->getStatus() === self::STATUS_CONFIRMADA;\n }", "protected function cancelAppointmentRequest($args) {\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], '2');\n\n if (is_array($returned))\n return $returned;\n\n $checkBookingsQry = \"select appointment_id from appointment where slave_id = '\" . $this->User['entityId'] . \"' and status IN (6,7,8)\";\n $checkBookingsRes = mysql_query($checkBookingsQry, $this->db->conn);\n\n if (mysql_num_rows($checkBookingsRes) > 0)\n return $this->_getStatusMessage(93, 93);\n\n if ($this->_updateSlvApptStatus($this->User['entityId'], '3') == 0)\n return $this->_getStatusMessage(74, 74);\n else\n return $this->_getStatusMessage(3, 1);\n }", "function cancelOrder($orderNum)\n\t\t{\n\t\t\t$db = dbConnect::getInstance();\n \t\t $mysqli = $db->getConnection();\n\t\t\t $query = \" update check_tb set status = '4' where id='\".$orderNum.\"' \"; \n $res=$mysqli->query($query) or die (mysqli_error($mysqli));\n\t\t\tif($res)\n\t\t\t{\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\t\n\t\t\t}\n\t\t}", "public function reject()\n {\n return $this->setStatus(self::STATUS_REJECTED);\n }", "protected function sanityCheck(&$confirmed)\n\t\t{\n\t\t\t// because delete operation can not delete message\n\t\t\t// from different user\n\t\t\t\n\t\t\tif ($confirmed < 0 || $confirmed > 1)\n\t\t\t{\n\t\t\t\t$confirmed = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif (!$this->randomKeyMatch())\n\t\t\t{\n\t\t\t\t$confirmed = 0;\n\t\t\t}\n\t\t}", "public function submit_reason_missed()\n\t{\n\t\t$this->load->library('form_validation');\n\t\t$this->load->helper('form');\n\t\t$this->form_validation->set_rules('reason', 'Reason', 'required');\n\n\t\tif ($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->output->set_status_header(422, form_error('reason'));\n\t\t\treturn;\n\t\t}\n\n\t\t$this->load->library('cfpslack_library');\n\t\t$this->load->model('user_model', '', TRUE);\n\t\t$name = $this->user_model->get_name($this->session->tc_user_id);\n\n\t\t$message = $name . ' did not submit a timecard yesterday because: ' . $this->input->post('reason');\n\n\t\t// @todo Ask if user should retry if this fails\n\t\t$this->cfpslack_library->post('/cfpslack/notify', [\n\t\t \t'message' => $message\n\t\t]);\n\t}", "public function canBeCanceled()\n\t{\n\t\t$flight_at = Carbon::createFromFormat('Y-m-d H:i:s', $this->flight_at);\n if ($flight_at->subMinute(config('flight.enable_cancel'))->isFuture()) {\n return true;\n }\n else {\n\t\t\treturn false;\n }\n\t}", "public function testDeleteUnsuccessfulReason()\n {\n }", "public static function reject($id)\n {\n return Order::where('id',$id)\n ->update(['status'=>'CANCELLED']);\n }", "function isDeclined() {\n return $this->getStatus() == UserpointsTransaction::STATUS_DECLINED;\n }", "public function isStatusNotPaid()\n {\n return $this->status == self::_ORDER_STATUS_NEW || $this->status == self::_ORDER_STATUS_REJECTED;\n }" ]
[ "0.74385256", "0.7373181", "0.6958194", "0.6842848", "0.6082306", "0.60353696", "0.58996624", "0.58770293", "0.5804412", "0.57695234", "0.5736544", "0.5701384", "0.569139", "0.5688771", "0.5687657", "0.568283", "0.5682142", "0.5634629", "0.5610113", "0.5608588", "0.55604", "0.55550855", "0.5548533", "0.5532188", "0.5531566", "0.55294013", "0.5520649", "0.55057776", "0.5504508", "0.54966867", "0.54733944", "0.5464831", "0.54626167", "0.54539436", "0.54494214", "0.54454553", "0.54310656", "0.5416179", "0.54134464", "0.54123074", "0.54060024", "0.54010594", "0.5400705", "0.53788376", "0.5371957", "0.53631884", "0.53527355", "0.53509605", "0.5348546", "0.53351855", "0.5328016", "0.53279847", "0.5315438", "0.53136545", "0.53036016", "0.5301229", "0.5300451", "0.527979", "0.52752745", "0.52732277", "0.5251154", "0.52419937", "0.524005", "0.5232326", "0.5226471", "0.5222045", "0.5218192", "0.5214072", "0.52101845", "0.5206587", "0.52048564", "0.51979595", "0.51971954", "0.51851445", "0.5184155", "0.51817214", "0.51789117", "0.51703936", "0.5166207", "0.51646876", "0.5164425", "0.5159459", "0.5158426", "0.51555425", "0.5154155", "0.51536864", "0.5148854", "0.51462835", "0.5140259", "0.51397204", "0.5136874", "0.5133851", "0.5126927", "0.5124544", "0.5122415", "0.5120914", "0.511721", "0.51146287", "0.51132315", "0.5112797" ]
0.75115967
0
Tests that react loans take precedence over disagreed
public function testReactTakesPrecedenceOverDisagreed() { $history = $this->getMockHistory(array( 'getCountPaid' => 1, 'getCountDisagreed' => 2, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_REACT, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function testOneCancelledOneDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\n\t\t);\n\t}", "public function test_user_cannot_both_upvote_and_downvote() {\n\n $user = User::create('[email protected]', 'secret', 'Jane Doe');\n $this->message->upvote($user);\n $this->message->downvote($user);\n $this->assertEquals(0, $this->message->getUpvotes());\n $this->assertEquals(1, $this->message->getDownvotes());\n\n $this->message->downvote($user);\n $this->message->upvote($user);\n $this->assertEquals(1, $this->message->getUpvotes());\n $this->assertEquals(0, $this->message->getDownvotes());\n\n }", "public function testUnffinishedStrike()\n\t{\n\t\t$this->player\n\t\t\t\t->addRoll(10)\n\t\t\t\t->addRoll(5);\n\t\t$this->assertEquals(0, $this->player->getScore());\n\t}", "public function testNonDefaultOmnipotence () {\n $this->expectException(BadFunctionCallException::class);\n\n $this->instance->spreadLove();\n }", "public function checkObsolescenceOfOrderStatus()\n {\n /** @var Emagedev_Trello_Model_Observer $observer */\n $observer = Mage::getModel($this->alias);\n\n $helperMock = $this->mockHelper('trello/card', array('archiveOrder', 'markOrderOutdated'));\n\n $helperMock\n ->expects($this->once())\n ->method('markOrderOutdated')\n ->with($this->callback(function($order){\n if ($this->expected()->getOutdated() == $order->getId()) {\n return $order;\n }\n\n return false;\n }));\n\n $helperMock\n ->expects($this->once())\n ->method('archiveOrder')\n ->with($this->callback(function($order){\n if ($this->expected()->getArchived() == $order->getId()) {\n return $order;\n }\n\n return false;\n }));\n\n $helperMock->replaceByMock('helper');\n\n $orderMock = $this->mockModel('sales/order', array('getUpdatedAt'));\n\n $orderMock\n ->expects($this->any())\n ->method('getUpdatedAt')\n ->willReturn($this->callback(function($order) {\n if (\n $order->getId() == $this->expected()->getOutdated() ||\n $order->getId() == $this->expected()->getArchived()\n ) {\n $datetime = new DateTime('now');\n $datetime->sub(new DateInterval('D5'));\n\n return $datetime->format(DateTime::W3C);\n }\n }));\n\n $orderMock->replaceByMock('model');\n\n $observer->markOrArchiveOutdatedOrders(new Varien_Event_Observer());\n }", "public function shouldRefund()\n {\n $paidMoney = $this -> countPaidMoney();\n $consumedMoney = $this -> countConsumedMoney();\n \n return $consumedMoney < $paidMoney;\n }", "public function simulateDisabledMatchAllConditionsFailsOnFaultyExpression() {}", "public function simulateDisabledMatchAllConditionsFailsOnFaultyExpression() {}", "public function testDeclined(){ \n\n $unBuyableProduct = Product::where('price', '>', 75)\n ->where('quantity','>',10)\n ->first();\n\n //test card 1\n $response = $this->checkoutAction($unBuyableProduct, $this->testVisaPan);\n $response->assertSee(\"Declined\");\n\n\n //test card 2\n $response = $this->checkoutAction($unBuyableProduct, $this->testMasterCardPan);\n $response->assertSee(\"Declined\"); \n \n }", "public function testDaughterCanNotCallMotherPrivate(): void\n {\n $this->expectException(\\Teknoo\\States\\Proxy\\Exception\\MethodNotImplemented::class);\n\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateTwo::class)\n ->enableState(StateThree::class);\n\n $daughterInstance->methodRecallMotherPrivate();\n }", "public function testWeaklingsCauseBounty()\n {\n if (!(defined('DEBUG') && DEBUG)) {\n $this->markTestSkipped(); // No merchant2 in non-debug scenarios for now.\n } else {\n $merchant = new Npc('merchant2');\n $this->assertGreaterThan(0, $merchant->bountyMod());\n $villager = new Npc('peasant2');\n $this->assertGreaterThan(0, $villager->bountyMod());\n }\n }", "public function testOverloadedState(): void\n {\n $motherInstance = new Mother();\n $motherInstance->enableState(\\Teknoo\\Tests\\Support\\Extendable\\Mother\\States\\StateOne::class);\n self::assertEquals(123, $motherInstance->method1());\n self::assertEquals(456, $motherInstance->method2());\n\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateOne::class);\n self::assertEquals(321, $daughterInstance->method3());\n self::assertEquals(654, $daughterInstance->method4());\n\n $fail = false;\n try {\n $daughterInstance->method1();\n } catch (MethodNotImplemented $e) {\n $fail = true;\n } catch (\\Exception $e) {\n self::fail($e->getMessage());\n\n return;\n }\n\n self::assertTrue($fail, 'Error, the method 3 are currently not available in enabled states');\n\n $daughterInstance->disableAllStates();\n $fail = false;\n try {\n $daughterInstance->method3();\n } catch (MethodNotImplemented $e) {\n $fail = true;\n } catch (\\Exception $e) {\n self::fail($e->getMessage());\n }\n\n self::assertTrue($fail, 'Error, the method 3 are currently not available in enabled states');\n\n $daughterInstance->enableState(\\Teknoo\\Tests\\Support\\Extendable\\Mother\\States\\StateOne::class);\n self::assertEquals(321, $daughterInstance->method3());\n self::assertEquals(654, $daughterInstance->method4());\n\n try {\n $daughterInstance->method1();\n } catch (MethodNotImplemented $e) {\n return;\n } catch (\\Exception $e) {\n self::fail($e->getMessage());\n\n return;\n }\n\n self::fail('Error, the daughter class overload the StateOne, Mother\\'s methods must not be available');\n }", "public function testRefundMismatched() {\n $this->setExchangeRates(1234567, ['USD' => 1, 'PLN' => 0.5]);\n $donation_message = new TransactionMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_txn_id' => mt_rand(),\n ]\n );\n $refund_message = new RefundMessage(\n [\n 'gateway' => 'test_gateway',\n 'gateway_parent_id' => $donation_message->getGatewayTxnId(),\n 'gateway_refund_id' => mt_rand(),\n 'gross' => $donation_message->get('original_gross') + 1,\n 'gross_currency' => $donation_message->get('original_currency'),\n ]\n );\n\n $message_body = $donation_message->getBody();\n wmf_civicrm_contribution_message_import($message_body);\n $contributions = wmf_civicrm_get_contributions_from_gateway_id(\n $donation_message->getGateway(),\n $donation_message->getGatewayTxnId()\n );\n $this->assertEquals(1, count($contributions));\n\n $this->consumer->processMessage($refund_message->getBody());\n $contributions = $this->callAPISuccess(\n 'Contribution',\n 'get',\n ['contact_id' => $contributions[0]['contact_id'], 'sequential' => 1]\n );\n $this->assertEquals(2, count($contributions['values']));\n $this->assertEquals(\n 'Chargeback',\n CRM_Contribute_PseudoConstant::contributionStatus($contributions['values'][0]['contribution_status_id'])\n );\n $this->assertEquals('-.5', $contributions['values'][1]['total_amount']);\n }", "public function simulateEnabledMatchSpecificConditionsSucceeds() {}", "public function simulateEnabledMatchSpecificConditionsSucceeds() {}", "#[@test]\n public function reasonOnly() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals('Out of office', $action->reason);\n }", "public function isButtonValidBrokenSetupMultiplePrimaryActionsGivenExpectFalse() {}", "public function isDeclined(): bool;", "public function testOneDisagreedNoCancelIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function testStateIssuedCorrectly()\n {\n $this->assertNull($this->state->issue());\n }", "public function test_user_cannot_vote_on_their_own_messages() {\n\n $this->expectException(VotingException::class);\n $this->message->upvote($this->user);\n\n }", "public function testRefund()\n {\n print \"testRefund()\\n\";\n\n // TODO: Impl\n\n $this->fail();\n }", "public function testIncorrectCanBuyWithOneShortMoney(){\n\t\t\t//ARRANGE\n\t\t\t$a= new APIManager();\n\t\t\t$b= new PortfolioManager(14);\n\t\t\t$b->setBalance(99);\n\t\t\t$c= new Trader($a, $b);\n\t\t\t$c->buyStock(NULL, 0);\n\t\t\t$c->sellStock(NULL, 0);\n\t\t\t$stock = new Stock(\"Google\",\"GOOGL\",100,10,9);\n\t\t\t//ACT \n\t\t\t$result = $c->canBuy($stock,1);\n\t\t\t//ASSERT\n\t\t\t$this->assertEquals(false,$result);\n\t\t}", "public function testCheckWinner()\n {\n $gamestate = $this->game->getGamestate();\n $this->game->holdHand();\n $this->assertNull($gamestate[\"hasWon\"]);\n\n $gamestate[\"active\"]->addPoints(100);\n $exp = $gamestate[\"active\"];\n $this->game->holdHand();\n\n $gamestate = $this->game->getGamestate();\n $this->assertEquals($exp, $gamestate[\"hasWon\"]);\n }", "public function testOneDisagreedNoCancelledIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", "public function shouldntRaiseAnEvent()\n {\n }", "public function testIncorrectCanBuyWithOneALotShortMoney(){\n\t\t\t//ARRANGE\n\t\t\t$a= new APIManager();\n\t\t\t$b= new PortfolioManager(14);\n\t\t\t$b->setBalance(9);\n\t\t\t$c= new Trader($a, $b);\n\t\t\t$stock = new Stock(\"Google\",\"GOOGL\",100,10,9);\n\t\t\t//ACT \n\t\t\t$result = $c->canBuy($stock, 10);\n\t\t\t//ASSERT\n\t\t\t$this->assertEquals(false,$result);\n\t\t}", "function lola_check_all_transitions_negated($check_name, $formula) {\n global $petrinet;\n foreach ($petrinet[\"transitions\"] as $transition) {\n $ret = lola_check_single_transition($check_name, $formula, $transition[\"id\"]);\n if ($ret->result) {\n debug(\"Single negated transition check \" . $check_name . \" for transition \" . $transition[\"id\"] . \" succeeded, returning false\");\n return new CheckResult(false, $ret->witness_path, $ret->witness_state);\n }\n }\n return new CheckResult(true, \"\", \"\");\n }", "public function test_users_update_leader_leads_403(){\n $this->signInUser();\n $response = $this->patch(route('users.update', ['user' => 2]), $this->user); \n $response->assertStatus(403);\n }", "public function retractArms() {\n\t\techo \"Power units have not been started.<br>\";\n\t}", "public function testGetHeaterState()\n {\n }", "public function testHardeningInactive(): void\n {\n $this->assertArrayHasKey(\n 'pingback.ping',\n \\apply_filters('xmlrpc_methods', ['pingback.ping' => 'this:pingback_ping', ])\n );\n\n $this->assertTrue(\\apply_filters('xmlrpc_enabled', true));\n\n // Authentication with both email and login should pass.\n $this->assertInstanceOf(\\WP_User::class, \\wp_authenticate(self::DUMMY_USER_EMAIL, Constants::FACTORY_PASSWORD));\n $this->assertInstanceOf(\\WP_User::class, \\wp_authenticate(self::DUMMY_USER_LOGIN, Constants::FACTORY_PASSWORD));\n }", "public function testIssueRefund()\n {\n }", "public function testStopChainOnFirstDeny() {\n $rule1 = $this->createMock('Drupal\\Core\\PageCache\\RequestPolicyInterface');\n $rule1->expects($this->once())\n ->method('check')\n ->with($this->request)\n ->will($this->returnValue(RequestPolicyInterface::ALLOW));\n $this->policy->addPolicy($rule1);\n\n $deny_rule = $this->createMock('Drupal\\Core\\PageCache\\RequestPolicyInterface');\n $deny_rule->expects($this->once())\n ->method('check')\n ->with($this->request)\n ->will($this->returnValue(RequestPolicyInterface::DENY));\n $this->policy->addPolicy($deny_rule);\n\n $ignored_rule = $this->createMock('Drupal\\Core\\PageCache\\RequestPolicyInterface');\n $ignored_rule->expects($this->never())\n ->method('check');\n $this->policy->addPolicy($ignored_rule);\n\n $actual_result = $this->policy->check($this->request);\n $this->assertSame(RequestPolicyInterface::DENY, $actual_result);\n }", "public function testCanDefendWithLuck()\n {\n $strikeCollection = new StrikeCollection();\n $strike = $this->getMockBuilder(BasicStrike::class)->setMethods(['getPower'])->getMock();\n $strike->method('getPower')->will($this->returnValue(10));\n $strikeCollection->add($strike);\n\n $optimalSkillSelector = new OptimalSkillSelectorService();\n $this->entity->setOptimalSkillSelector($optimalSkillSelector);\n\n $stats = new PlayerStats();\n $stats->setHealth(50);\n $stats->setDefence(5);\n\n $skillCollection = new SkillCollection();\n $defendSkill = DefendSkill::attachTo($this->entity);\n $skillCollection->add($defendSkill);\n $this->entity->setSkills($skillCollection);\n\n $broadcaster = $this->getMockBuilder(MessageBroadcaster::class)\n ->setMethods(['broadcast'])->getMock();\n $broadcaster->method('broadcast')->willReturn('');\n $this->entity->setBroadcaster($broadcaster);\n $defendSkill->setBroadcaster($broadcaster);\n\n $this->entity->setStats($stats);\n $this->entity->method('lucky')->willReturn(true);\n\n $this->entity->defend($strikeCollection);\n $this->assertEquals(50, $this->entity->getStats()->getHealth());\n\n }", "function willYou($young, $beautiful, $loved) {\n if ($young && $beautiful && $loved) {\n return false;\n } elseif ($loved && (!$young || !$beautiful)) {\n return true;\n } elseif (!$loved && !$young && !$beautiful) {\n return false;\n } elseif (!$loved && $young && $beautiful) {\n return true;\n } else {\n return false;\n }\n}", "public function testCanDefendWithoutLuck()\n {\n $strikeCollection = new StrikeCollection();\n $strike = $this->getMockBuilder(BasicStrike::class)->setMethods(['getPower'])->getMock();\n $strike->method('getPower')->will($this->returnValue(10));\n $strikeCollection->add($strike);\n\n $optimalSkillSelector = new OptimalSkillSelectorService();\n $this->entity->setOptimalSkillSelector($optimalSkillSelector);\n\n $stats = new PlayerStats();\n $stats->setHealth(50);\n $stats->setDefence(5);\n\n $skillCollection = new SkillCollection();\n $defendSkill = DefendSkill::attachTo($this->entity);\n $skillCollection->add($defendSkill);\n $this->entity->setSkills($skillCollection);\n\n $broadcaster = $this->getMockBuilder(MessageBroadcaster::class)\n ->setMethods(['broadcast'])->getMock();\n $broadcaster->method('broadcast')->willReturn('');\n $this->entity->setBroadcaster($broadcaster);\n $defendSkill->setBroadcaster($broadcaster);\n\n $this->entity->setStats($stats);\n $this->entity->method('lucky')->willReturn(false);\n\n $this->entity->defend($strikeCollection);\n $this->assertEquals(45, $this->entity->getStats()->getHealth());\n\n }", "public function testTermOverBeforeBaseWarrantyFailure(){\n $coverage = array(\"name\" => \"3 Months/3,000 Miles\", \"terms\" => 3, \"miles\" => 3000);\n $test_car = CarFactory::create('Audi', 24, 10000, 100000, 2019, 42);\n $test_car->setVehicleAgeMonths();\n $test_fail = $test_car->testTermOverBeforeBaseWarranty($coverage);\n $this->assertEquals($test_fail, 'Term expires before warranty.');\n }", "public function testRejectedTransation()\n {\n $precondition = Factory::instance('RejectedTransaction');\n\n $testdata = $precondition->getData();\n\n $this->assertTrue($testdata['amount'] == 51.03);\n }", "public function testPickTwiceReturnsFalse()\n\t{\n\t\t$target = new Blackbox_Target();\n\t\t$data = new Blackbox_Data();\n\n\t\t$target->pickTarget($data);\n\n\t\t$winner = $target->pickTarget($data);\n\t\t$this->assertFalse($winner);\n\t}", "public function testApproveDenyNotHrAndAdmin() {\n\t\t$this->setExpectedException('MissingActionException');\n\t\t$userRoles = [\n\t\t\tUSER_ROLE_USER => '',\n\t\t\tUSER_ROLE_USER | USER_ROLE_SECRETARY => 'secret',\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\tforeach ($userRoles as $userRole => $userPrefix) {\n\t\t\t$userInfo = [\n\t\t\t\t'role' => $userRole,\n\t\t\t\t'prefix' => $userPrefix,\n\t\t\t];\n\t\t\t$this->applyUserInfo($userInfo);\n\t\t\t$this->generateMockedController();\n\t\t\t$url = [\n\t\t\t\t'controller' => 'deferred',\n\t\t\t\t'action' => 'approve',\n\t\t\t\t'3',\n\t\t\t];\n\t\t\tif (!empty($userPrefix)) {\n\t\t\t\t$url['prefix'] = $userPrefix;\n\t\t\t\t$url[$userPrefix] = true;\n\t\t\t}\n\t\t\t$this->testAction($url, $opt);\n\t\t\t$this->checkIsNotAuthorized();\n\t\t\t$this->checkRedirect(true);\n\t\t}\n\t}", "public function testCancelPresenceOrAbsence(): void {\n $this->drupalLogin($this->adminUser);\n $this->drupalGet($this->getPath());\n if ($this->dialogRouteTest) {\n $this->assertActionExists('edit-cancel', 'Cancel');\n }\n else {\n $this->assertActionNotExists('edit-cancel', 'Cancel');\n }\n }", "public function checkForLose()\n\t{\n\n\t\tif($this->phrase->counter() == $this->lives) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "protected function isTargetCorrect() {}", "public function reactToOnBeforeDealDamage($event) { }", "function hook_commerce_adyen_refund_rejected(\\Commerce\\Adyen\\Payment\\Transaction\\Refund $transaction, \\stdClass $order) {\n\n}", "public function tellNotEnoughMoneyInAccount()\n {\n }", "public function makeMenuAllGoodExpectTrue() {}", "public function testDaughterCanCallMotherProtected(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateTwo::class)\n ->enableState(StateThree::class);\n self::assertEquals(3 * 456, $daughterInstance->methodRecallMotherProtected());\n }", "public function test_character_can_don_one_shield()\n {\n // If he could hold 2 shields, his AC would change after picking up the 2nd one.\n $this->character->use(new Shield());\n $first_shield_ac = $this->character->getAc();\n $this->character->use(new Shield());\n $this->assertEquals($first_shield_ac, $this->character->getAc());\n }", "public function testOff()\n\t{\n\t\tCatapult\\Log::on(FALSE);\n\t\t$this->assertTrue(!Catapult\\Log::isOn());\n\t}", "public function isDoNotSpellCheckSet() {}", "public function testGetBalanceNotEnabled()\n {\n $this->_helperMock->expects($this->once())->method('isEnabled')->will($this->returnValue(false));\n\n $result = $this->_className->getBalance();\n $this->assertEquals(0.0, $result);\n }", "public function cantSeeFailNow() {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\ConditionalAssertion('dontSeeFailNow', func_get_args()));\n }", "public function testDerivedRelationViaCastedUpModelAttributeThatCastsDownTwiceWithNoSkips()\n {\n //todo: test casting down more than one level. not sure how to test this..\n //since meetings is only one skip past activity not really testing that castDown fully\n //$this->fail();\n }", "public function testActionUseCaseNotFound()\n {\n $workflow = factory(WorkflowEloquent::class)->create();\n $rule1 = factory(RuleEloquent::class)->create([\n 'name' => 'is preapprove person',\n 'workflow_id' => $workflow->getKey(),\n 'rule_type' => RuleEloquent::FIELD_TYPE_BOOLEAN,\n 'operator' => RuleEloquent::OPERATOR_EQUAL,\n 'field_name' => 'persons.is_pre_approved',\n 'value' => '1',\n ]);\n $leadTypeId = LeadTypeEloquent::where('label', 'own')->where('user_id', null)->first()->getKey();\n $rule2 = factory(RuleEloquent::class)->create([\n 'name' => 'lead type own',\n 'workflow_id' => $workflow->getKey(),\n 'rule_type' => RuleEloquent::FIELD_TYPE_NUMBER,\n 'operator' => RuleEloquent::OPERATOR_EQUAL,\n 'field_name' => 'person_contexts.lead_type_id',\n 'value' => $leadTypeId,\n ]);\n $rule3 = factory(RuleEloquent::class)->create([\n 'name' => 'imposible rule',\n 'workflow_id' => $workflow->getKey(),\n 'rule_type' => RuleEloquent::FIELD_TYPE_NUMBER,\n 'operator' => RuleEloquent::OPERATOR_EQUAL,\n 'field_name' => 'persons.id',\n 'value' => 0,\n ]);\n $action1 = factory(ActionEloquent::class)->create([\n 'action_type' => ActionEloquent::ACTION_TYPE_UPDATE,\n 'target_class' => 'persons',\n 'target_field' => 'is_primary',\n 'value' => 1,\n ]);\n $workflow->actions()->sync([$action1->getKey()]);\n\n $kernel = $this->app->make(Kernel::class);\n $status = $kernel->handle(\n $input = new ArrayInput(array(\n 'command' => 'workflow:action-run',\n 'workflow' => $workflow->getKey(),\n 'action' => $action1->getKey(),\n )),\n $output = new BufferedOutput\n );\n\n $this->assertEquals($status, 0);\n $this->assertEquals(1, preg_match('/^Complete fire actions/m', $output->fetch()));\n // check logs\n $this->seeInDatabase('action_logs',[\n 'action_id' => $action1->getKey(),\n 'workflow_id' => $workflow->getKey(),\n 'status' => LogInterface::LOG_STATUS_FAILED,\n 'object_class' => null,\n 'object_id' => null,\n ]);\n $this->seeInDatabase('action_log_rules',[\n 'rule_id' => $rule1->getKey()\n ]);\n $this->seeInDatabase('action_log_rules',[\n 'rule_id' => $rule2->getKey()\n ]);\n $this->seeInDatabase('action_log_rules',[\n 'rule_id' => $rule3->getKey()\n ]);\n }", "public function testHaveNoProVoter()\n {\n $strategy = new Affirmative([\n $this->createVoter([\n 'edit' => [\n 'supports' => true,\n 'granted' => false\n ],\n 'remove' => [\n 'supports' => true,\n 'granted' => false\n ]\n ]),\n $this->createVoter([\n 'edit' => [\n 'supports' => true,\n 'granted' => false\n ],\n 'remove' => [\n 'supports' => true,\n 'granted' => false\n ]\n ]),\n ]);\n\n self::assertFalse($strategy->isGranted(['edit', 'remove'], null, null));\n }", "public function testSettlement()\n {\n print \"testRefund()\\n\";\n\n // TODO: Impl\n\n $this->fail();\n }", "public function TestFilterUserByBalanceFalse()\n {\n $expected = $this->usersFilter->filterByBalance(\"100\",\"280\",'320');\n $this->assertFalse($expected);\n }", "public function deny()\n {\n ++$this->denied;\n\n $this->result = NODE_ACCESS_DENY;\n\n // Where the actual magic happens please read the README.md file.\n if (!$this->byVote) {\n $this->stopPropagation();\n }\n }", "public function testMaintenanceModeFalse()\n {\n $lock = $this->util->getMaintenanceLock();\n $lock->unlock();\n\n $result = $this->object->reverseMaintenanceMonitor();\n $this->assertTrue($result);\n }", "public function testDaughterCanCallPrivateViaMotherMethod(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateTwo::class);\n self::assertEquals(2 * 789, $daughterInstance->methodRecallPrivate());\n }", "public function testOrderStatusPartialRefund()\n {\n /** @var \\Magento\\Sales\\Model\\Order $existingOrder */\n $existingOrder = $this->objectManager->create(\\Magento\\Sales\\Model\\Order::class)\n ->loadByIncrementId('100000001');\n\n $items = $this->getOrderItems($existingOrder);\n $items[0]['qty'] -= 1;\n $result = $this->_webApiCall(\n $this->getServiceData($existingOrder),\n [\n 'orderId' => $existingOrder->getEntityId(),\n 'items' => $items,\n ]\n );\n\n $this->assertNotEmpty(\n $result,\n 'Failed asserting that the received response is correct'\n );\n\n /** @var \\Magento\\Sales\\Model\\Order $updatedOrder */\n $updatedOrder = $this->objectManager->create(\\Magento\\Sales\\Model\\Order::class)\n ->loadByIncrementId($existingOrder->getIncrementId());\n\n $this->assertSame('custom_processing', $updatedOrder->getStatus());\n $this->assertSame('processing', $updatedOrder->getState());\n }", "public function simulateEnabledMatchAllConditionsSucceeds() {}", "public function testGetSibling_CommittedNotCommitted()\n\t{\n\t\t$this->object->AddSibling($this->sibling);\n\t\t$this->object->Save();\n\t\t$this->object->AddSibling($this->sibling2);\n\n\t\t$siblingList = $this->object->GetSiblingList(array(array(\"attribute\", \"=\", \"sibling att\")));\n\t\t$this->assertEquals(1, sizeof($siblingList));\n\n\t\t$siblingList = $this->object->GetSiblingList(array(array(\"attribute\", \"=\", \"sibling2 att\")));\n\t\t$this->assertEquals(0, sizeof($siblingList));\n\n\t\t$siblingList = $this->object->GetSiblingList(array(array(\"attribute\", \"=\", \"sibling att\"), array(\"or\"), array(\"attribute\", \"=\", \"sibling2 att\")));\n\t\t$this->assertEquals(1, sizeof($siblingList));\n\t}", "public function simulateEnabledMatchAllConditionsSucceeds() {}", "public function shouldNotReturn($expected) {}", "public function isAllowedToApplyLoan()\n {\n return $this->getAge() >= 18;\n }", "public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }", "public function testWithoutAccepts()\n {\n\n $config = [];\n $response = m::mock(Response::class);\n $headers = m::mock(stdClass::class);\n $response->headers = $headers;\n $request = m::mock(Request::class);\n $app = m::mock(ApplicationContract::class);\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $response\n ->shouldReceive('isRedirection')->andReturn(false)\n ->shouldReceive('getContent')\n ->shouldReceive('setContent');\n $headers->shouldReceive('get')->with('Content-type')->andReturn('application/json');\n $request->shouldReceive('ajax')->once()->andReturn(false);\n\n $tracy = new Tracy($config, $app, $request);\n $excepted = $tracy->renderResponse($response);\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $this->assertSame($excepted, $response);\n }", "public function testVariousVillagersHaveSameRace()\n {\n if (!(defined('DEBUG') && DEBUG)) {\n $this->markTestSkipped();\n } else {\n $humans = ['peasant2', /*'thief2', */ 'guard2', 'merchant2'];\n foreach ($humans as $human) {\n $this->assertEquals('human', (new Npc($human))->race());\n }\n }\n }", "function testAppreciatingNonperishableItem() {\n $items = array(new Item('Aged Brie', 2, 0));\n $gildedRose = new GildedRose($items);\n \n // check that item increases quality as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(2, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n }", "function test_treatments_report_blocked_true()\n {\n $this->seed();\n\n $user = User::where('email', '=', '[email protected]')->first();\n \n $token = JWTAuth::fromUser($user);\n $treatments = Treatment::factory()\n ->count(3)\n ->for($user)\n ->create(['public' => 1]);\n $treatment = Treatment::first();\n $response = $this->json('POST', '/api/report/'.$treatment->id.'?token='.$token);\n $user = User::where('email', '=', '[email protected]')->first();\n \n $token = JWTAuth::fromUser($user);\n $response = $this->json('POST', '/api/report/'.$treatment->id.'?token='.$token);\n $response->assertOk()->assertJsonFragment(['isReported'=>true]);\n }", "public function testSummary() {\n $this->assertEquals('Unblock a user', $this->action->summary());\n }", "function get_refund_or_order()\n{\n\t// Fail\n}", "public function redirectsAreNotFollowedIfSwitchedOff() {\n\t\t$this->browser->setFollowRedirects(FALSE);\n\t\t$response = $this->browser->request('http://localhost/test/http/redirecting');\n\t\t$this->assertNotContains('arrived.', $response->getContent());\n\t\t$this->assertEquals(303, $response->getStatusCode());\n\t\t$this->assertEquals('http://localhost/index.php/test/http/redirecting/tohere', $response->getHeader('Location'));\n\t}", "public function testMotherCanCallPrivate(): void\n {\n $motherInstance = new Mother();\n $motherInstance->enableState(StateTwo::class);\n self::assertEquals(2 * 789, $motherInstance->methodRecallPrivate());\n }", "public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }", "public function isRisky(): bool;", "public function testRejectDenyNotHrAndAdmin() {\n\t\t$this->setExpectedException('MissingActionException');\n\t\t$userRoles = [\n\t\t\tUSER_ROLE_USER => '',\n\t\t\tUSER_ROLE_USER | USER_ROLE_SECRETARY => 'secret',\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\tforeach ($userRoles as $userRole => $userPrefix) {\n\t\t\t$userInfo = [\n\t\t\t\t'role' => $userRole,\n\t\t\t\t'prefix' => $userPrefix,\n\t\t\t];\n\t\t\t$this->applyUserInfo($userInfo);\n\t\t\t$this->generateMockedController();\n\t\t\t$url = [\n\t\t\t\t'controller' => 'deferred',\n\t\t\t\t'action' => 'reject',\n\t\t\t\t'3',\n\t\t\t];\n\t\t\tif (!empty($userPrefix)) {\n\t\t\t\t$url['prefix'] = $userPrefix;\n\t\t\t\t$url[$userPrefix] = true;\n\t\t\t}\n\t\t\t$this->testAction($url, $opt);\n\t\t\t$this->checkIsNotAuthorized();\n\t\t\t$this->checkRedirect(true);\n\t\t}\n\t}", "public function testNormalUserShouldNotRevokeAdminStatus()\n {\n $user = factory(User::class)->make(['root_admin' => false]);\n $service = $this->getService();\n $service->setUserLevel(User::USER_LEVEL_USER);\n\n $this->repository->shouldReceive('update')->with($user->id, [])->once()->andReturnNull();\n\n $response = $service->handle($user, ['root_admin' => true]);\n $this->assertInstanceOf(Collection::class, $response);\n $this->assertTrue($response->has('model'));\n $this->assertTrue($response->has('exceptions'));\n }", "public function testNotPaid()\n {\n $this->browse(function (Browser $browser) {\n $bill = Bill::factory()->create([\n 'contract_id' => $this->contract->id,\n 'requisite_id' => $this->requisite->id,\n 'tenant_id' => $this->tenant->id,\n ]);\n $service = $bill->services()->save(Service::factory()->make([\n 'name' => 'Rent',\n 'quantity' => '2',\n 'measure' => 'pc',\n 'price' => '1234'\n ]));\n\n $browser->loginAs($this->user)\n ->visit('/tenants/'.$this->tenant->id.'?tab=bills#tab')\n ->press('Оплатить')\n ->assertSee('Недостаточно средств');\n });\n }", "function TestGetState1(){\n\t\t$newAnswer = new Answer();\n\t\t$this->assertTrue($newAnswer->getState() == FALSE);\n }", "public function testCheckNoWinner()\n {\n $this->_board[0][8] = \"O\";\n $this->_board[0][1] = \"O\";\n $this->_board[0][6] = \"X\";\n $this->_board[1][5] = \"X\";\n $this->_board[1][7] = \"X\";\n $this->_board[2][9] = \"O\";\n $this->_board[2][2] = \"O\";\n\n $playerOneAnswers = [];\n $playerTwoAnswers = [];\n foreach ($this->_board as $boardIndex => $boardRow) {\n foreach ($boardRow as $boardRowIndex => $boardRowValue) {\n if ($boardRowValue == \"X\") {\n $this->_scorePlayerOne += $boardRowIndex;\n $playerOneAnswers[] = $boardRowIndex;\n }\n if ($boardRowValue == \"O\") {\n $this->_scorePlayerTwo += $boardRowIndex;\n $playerTwoAnswers[] = $boardRowIndex;\n }\n }\n }\n\n $whoHasWon = 0;\n if ($this->_scorePlayerOne == 15) {\n $whoHasWon = 1;\n }\n\n if ($this->_scorePlayerTwo == 15) {\n $whoHasWon = 2;\n }\n\n if ($whoHasWon == 0) {\n foreach ($this->_winningConditions as $winningCondition) {\n\n $playerOneMatchResult = array_intersect(\n $playerOneAnswers, $winningCondition\n );\n if (count($playerOneMatchResult) ==3) {\n $whoHasWon = 1;\n }\n\n $playerTwoMatchResult = array_intersect(\n $playerTwoAnswers, $winningCondition\n );\n if (count($playerTwoMatchResult) ==3) {\n $whoHasWon = 2;\n }\n }\n }\n\n $this->assertNotEquals(1, $whoHasWon);\n $this->assertNotEquals(2, $whoHasWon);\n }", "function calculateMissed(){\n\t\treturn count(self::$groundTruth) - count(self::$rating);\n\t}", "public function shouldBeSkipped();", "public function testConfirmWithoutCodeFail() {\n //avoid creating discounts with same referer and let the discount action be set before we test it\n sleep(1);\n\n // create new discount of type 2\n $discount = $this->createNewCustomerDiscount(array('type' => 2));\n\n $this->dispatch('/discount/confirm/referer/' . $referer);\n $this->assertController('discount');\n $this->assertAction('confirm');\n\n //test redirection, so no action shall be done on the discount page\n $this->assertResponseCode(302);\n }", "public function dontSeeFailNow() {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Assertion('dontSeeFailNow', func_get_args()));\n }", "public function testDenyRuleIsStrongerThanAllowRule()\n {\n $this->assertFalse($this->Acl->check('peter', 'baz/bam'));\n $this->Acl->allow('peter', 'baz/bam');\n $this->assertTrue($this->Acl->check('peter', 'baz/bam'));\n $this->Acl->deny('peter', 'baz/bam');\n $this->assertFalse($this->Acl->check('peter', 'baz/bam'));\n\n $this->assertTrue($this->Acl->check('stan', 'controllers/reports/foo'));\n // stan is denied as he's sales and sales is denied /controllers/*/delete\n $this->assertFalse($this->Acl->check('stan', 'controllers/reports/delete'));\n $this->Acl->allow('stan', 'controllers/reports/delete');\n $this->assertFalse($this->Acl->check('Role/sales', 'controllers/reports/delete'));\n $this->assertTrue($this->Acl->check('stan', 'controllers/reports/delete'));\n $this->Acl->deny('stan', 'controllers/reports/delete');\n $this->assertFalse($this->Acl->check('stan', 'controllers/reports/delete'));\n\n // there is already an equally specific deny rule that will win\n $this->Acl->allow('stan', 'controllers/reports/delete');\n $this->assertFalse($this->Acl->check('stan', 'controllers/reports/delete'));\n }", "public function isMissed(): bool\n {\n return $this->status == 'missed';\n }", "public function testMaintenanceModeTrue()\n {\n $lock = $this->util->getMaintenanceLock();\n $lock->lock();\n\n $result = $this->object->reverseMaintenanceMonitor();\n $this->assertFalse($result);\n }", "private function unbalancedSupply() {\n $rapporto = $_POST['quantitaCercata'] / $_POST['quantitaOfferta'];\n if ($rapporto >= 0.5 && $rapporto <= 2)\n return false;\n return true;\n }", "public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }", "protected function assertPostConditions() {\n\t\tprint \"---------------------------------------------------------------- \\n\";\n\t}", "public function reactToOnBeforeAction($event) {\n if($this->blocks &&\n $this->active &&\n !$event->action->blocked &&\n $event->action->battlePhase == \"offense\" &&\n ($this->buff == ($event->sender->getCombatantString($event->hero) == $this->enemyString))) {\n \n if($this->blockChance != 1) {\n $rand = mt_rand(0,100);\n if($rand > $this->blockChance * 100) {\n return;\n }\n }\n \n if($event->action->call(\"setBlocked\")) {\n $this->charges --;\n \n $battleMsg = new Battlemessage($this->call(\"getMsgBlock\"));\n $event->sender->log($event->hero, $battleMsg);\n \n if($this->charges == 0) {\n $this->active = false;\n\n $battleMsg = new Battlemessage($this->msgExpire);\n $event->sender->log($event->hero, $battleMsg);\n }\n }\n }\n }", "function isDenied() {\n return !empty($this->denied_reasons);\n }", "public function testQuarantineCount()\n {\n\n }", "public function declined()\n\t{\n\t\treturn !$this->approved();\n\t}" ]
[ "0.59717184", "0.59424835", "0.58011425", "0.5791082", "0.56346947", "0.55434567", "0.55081266", "0.5426867", "0.5424317", "0.54224396", "0.54011935", "0.5357062", "0.53413993", "0.5291018", "0.5266901", "0.5249068", "0.52478707", "0.52117914", "0.52030843", "0.5201586", "0.51699406", "0.51679665", "0.51426136", "0.513422", "0.51307917", "0.5126686", "0.51067466", "0.51018393", "0.5100251", "0.50851464", "0.5069673", "0.50552505", "0.50265837", "0.5021899", "0.50132304", "0.49829486", "0.4979516", "0.49649614", "0.4949449", "0.49480906", "0.49455673", "0.49452785", "0.49452543", "0.4944594", "0.49337596", "0.4928869", "0.49204147", "0.49135777", "0.49080455", "0.4892476", "0.4890406", "0.48876175", "0.48865783", "0.4885193", "0.48818678", "0.48740083", "0.48731935", "0.48727098", "0.48711926", "0.4856643", "0.4854642", "0.48529118", "0.4849232", "0.48433146", "0.4843114", "0.4838703", "0.4837759", "0.48373622", "0.48359662", "0.4834929", "0.48338795", "0.48320782", "0.48295414", "0.48269302", "0.4815315", "0.4814488", "0.48117605", "0.48053613", "0.47996366", "0.47950506", "0.47927174", "0.4792026", "0.47905493", "0.4789325", "0.4779687", "0.47777814", "0.47752228", "0.47739092", "0.47659168", "0.476356", "0.47547656", "0.47533956", "0.47453836", "0.47431645", "0.47414428", "0.4740301", "0.4730526", "0.47304657", "0.47280478", "0.4727243" ]
0.7092746
0
Core PHP interfaces methods
public function __clone() { $this->data = clone $this->data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function interface();", "public function getInterface();", "public function readyForInterface() {}", "public function getInterfaces() {}", "public static function node_interface()\n {\n }", "static public function getInterfaces();", "function getOwnInterfaces();", "public function __construct()\r\n\t{\r\n\t\techo \"Implements Function overloading\";\r\n\t}", "abstract public function service();", "protected abstract function performImpl();", "protected function main(): ResponseInterface\n {\n }", "public function core();", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function testInterface()\n {\n $this->assertInstanceOf('\\Tbs\\DocBlock\\Tag\\Abstraction' , $this->object);\n $this->assertInstanceOf('\\Tbs\\DocBlock\\Tag\\InterfaceTag', $this->object);\n }", "public function testInterface()\n {\n $this->assertInstanceOf('\\Tbs\\DocBlock\\Tag\\Abstraction' , $this->object);\n $this->assertInstanceOf('\\Tbs\\DocBlock\\Tag\\InterfaceTag', $this->object);\n }", "private function _i() {\n }", "abstract protected function getService();", "public function give($implementation);", "public function __invoke() : ConfigInterface;", "public function __invoke()\n {\n }", "public function findImplements($interface);", "public function __invoke()\n {\n\n }", "public function me():ResponseInterface;", "abstract public function __invoke(): void;", "public function methods();", "public function give( $implementation );", "abstract public function __construct();", "abstract public function __construct();", "abstract public function __construct();", "public function getInterface() {\n\t\t\treturn $this->implements;\t\n\t\t}", "public function name(): string\n {\n return 'interface';\n }", "function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }", "public function testInterface()\n {\n \t$this->assertType('Util_Format_Interface', $this->object);\n }", "public function testInterface()\n {\n \t$this->assertType('Util_Format_Interface', $this->object);\n }", "public function someStuff()\n {\n \n }", "abstract function __construct();", "abstract protected function __construct();", "protected function getClassImplementations()\n {\n }", "abstract public function otherfoo();", "public function getInterfaceCode();", "public function getContentInterface():string;", "abstract public function object();", "public function __construct($interface, $prefix = '') {\n parent::__construct($interface, $prefix);\n }", "public function __construct($interface, $prefix = '') {\n parent::__construct($interface, $prefix);\n }", "protected abstract function __construct();", "public function operationInterface($context)\n {\n echo \"《ConcreteStateB::OperationInterface》\";\n }", "public function testThatFacebookAdapterAwareTraitMatchesInterface()\n {\n new FacebookAdapterAware;\n }", "public function __init(){}", "abstract protected function external();", "public function __construct()\n {\n parent::__construct();\n\n $this->setChildren(Collection::fromInterfaceString(NamespaceInterface::class));\n $this->setFunctions(Collection::fromInterfaceString(FunctionInterface::class));\n $this->setConstants(Collection::fromInterfaceString(ConstantInterface::class));\n $this->setClasses(Collection::fromInterfaceString(ClassInterface::class));\n $this->setInterfaces(Collection::fromInterfaceString(InterfaceInterface::class));\n $this->setTraits(Collection::fromInterfaceString(TraitInterface::class));\n $this->setTags(new Collection());\n $this->setEnums(Collection::fromInterfaceString(EnumInterface::class));\n }", "public function testInterface()\n {\n $this->assertInstanceOf('MediaAlignedText\\\\Core\\\\Interfaces\\\\MediaTextSegmentAlignmentInterface', $this->alignment);\n }", "public function call() : GetStatusInterface;", "abstract protected function init();", "abstract protected function init();", "abstract protected function init();", "abstract protected function init();", "abstract protected function init();", "abstract protected function init();", "public function create()/*# : CreateInterface */;", "protected function __init__() { }", "public function getImplements() {\n return array(\n 'pdoMap_Dao_IAdapter',\n $this->getGeneratedInterface()\n );\n }", "public function native();", "public function method() {\n\t}", "abstract protected function getEventableRepository();", "public function GetMethod ();", "function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->__resTraitConstruct();\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() {}" ]
[ "0.8199994", "0.6887597", "0.6622386", "0.65345156", "0.6404902", "0.62456673", "0.6141913", "0.611351", "0.60757464", "0.6015146", "0.59325635", "0.59135103", "0.59088284", "0.59088284", "0.59088284", "0.59088284", "0.5908355", "0.5908355", "0.59064525", "0.5890076", "0.5882588", "0.58605224", "0.58554107", "0.5809922", "0.576697", "0.5762565", "0.57576007", "0.57391846", "0.57121223", "0.5693867", "0.5693867", "0.5693867", "0.5683827", "0.56810117", "0.56586593", "0.56488055", "0.56488055", "0.5643958", "0.5608403", "0.5605297", "0.558676", "0.55864054", "0.558417", "0.5567291", "0.5563726", "0.55450237", "0.55450237", "0.5520819", "0.55193853", "0.55110204", "0.5492744", "0.5490442", "0.5461909", "0.5458449", "0.54414815", "0.5440292", "0.5440292", "0.5440292", "0.5440292", "0.5440292", "0.5440292", "0.54280305", "0.54258287", "0.5420975", "0.54030645", "0.54006284", "0.5384164", "0.5366801", "0.53545964", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672", "0.5353672" ]
0.0
-1
Display a listing of the resource.
public function index() { $ships = Ship::all(); return $this->sendResponse(ShipResource::collection($ships), 'Ships retrieved successfully.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->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
Display the specified resource.
public function show($id) { $ship = Ship::find($id); if (is_null($ship)) { return $this->sendError('Ship not found.'); } return $this->sendResponse(new ShipResource($ship), 'Ship retrieved successfully.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\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
Get the user that wrote this article
public function ulibier() { return $this->belongsTo('App\Ulibier', 'username'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAuthor()\n {\n $tokenStorage = $this->getOption('token_storage');\n\n return $tokenStorage->getToken()->getUser();\n }", "public function getAuthor() {\n\t\treturn UserManager::getFromBlid($this->blid);\n\t}", "public function getUserArticleName()\n {\n return $this->user_article_name;\n }", "public function getPostUser() {\n\n // Match and map the id of the author ($userId) to a user object\n return UserManager::getUserById($this->userId);\n }", "public function getAuthor()\n {\n return $this->author = get_userdata($this->get()->post_author);\n }", "public function topicUser()\n {\n if (!$this->user)\n {\n $this->user = eZUser::fetch($this->attribute('user_id'));\n }\n return $this->user;\n }", "function get_author_ID() {\n\t\treturn $this->get_data( 'user_id' );\n\t}", "public function getRevisionUser();", "public function getRevisionUser();", "public function getRevisionUser();", "public function getRevisionUser();", "public function getRevisionUser();", "protected function author()\n {\n if ($this->presenter->wasByCurrentUser() || !$this->wrappedObject->user_id) {\n return 'You ';\n }\n\n if (!$this->wrappedObject->security) {\n return 'This user ';\n }\n\n return $this->presenter->author().' ';\n }", "public function getPostedUser() {\n\t\treturn $this->postedUser;\n\t}", "public function get_user() {\r\n\t\treturn ($this->user);\r\n\t}", "public function get_author() {\n\t\treturn $this->author();\n\t}", "function user()\n {\n return eZUser::fetch( $this->UserID );\n }", "function get_user () {\n\t\treturn $this->user_id;\n\t}", "public function get_user() {\n\t\treturn $this->user;\n\t}", "public function getPostedByUser() {\n $this->load->model(\"Users_model\");\n return Users_model::LoadById($this->posted_by);\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthorUsername()\n {\n return $this->AUTHOR_USERNAME;\n }", "public function author()\n {\n if ($this->user_id) {\n $field = config(\"binshopsblog.comments.user_field_for_author_name\",\"name\");\n return optional($this->user)->$field;\n }\n\n return $this->author_name;\n }", "public function author()\n\t{\n\t\treturn $this->belongs_to('User', 'uid');\n\t}", "public function user()\n {\n return $this->session()->tutor();\n }", "public function getUser ()\r\n\t{\r\n\t\treturn $this->user;\r\n\t}", "public function getAuthor() {\n return $this->author;\n }", "public function getAuthor() {\n return $this->author;\n }", "public function getAuthor() {\n return $this->author;\n }", "public function getCreatedby()\n {\n return ($this->m_Createdby);\n }", "public function user()\n {\n return $this->user;\n }", "public function user()\n {\n return $this->user;\n }", "public function getAuthor() {\n\t\treturn $this->author;\n\t}", "function get_the_author_login()\n {\n }", "function get_user()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_USER);\r\n }", "function get_user()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_USER);\r\n }", "function the_author() {\n\tglobal $discussion;\n\treturn $discussion['author'];\n}", "public function getLoggedInUser() {\n\t\treturn elgg_get_logged_in_user_entity();\n\t}", "function getUser() {\n return user_load($this->uid);\n }", "public function getCreatedBy()\n {\n return $this->created_by;\n }", "public function getUser()\n {\n return $this->_user;\n }", "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'author']);\n }", "public function getUser()\r\n {\r\n return $this->user;\r\n }", "public function getUser()\n {\n return $this->getAuth()->getIdentity();\n }", "public function getCreatedBy()\n\t{\n\t\treturn $this->created_by;\n\t}", "public function user()\n {\n return $this->luser;\n }", "public function getUser()\n {\n return $this->_user;\n }", "public function getCreatedBy();", "public function getCreatedBy();", "public function getCreatedBy();", "public function getCreatedBy();", "public final function getUser()\n {\n return $this->user;\n }", "public function getAuthor(): string\n {\n return $this->_author;\n }", "public function user() { return $this->user; }", "public function user()\n {\n if (!$this->user) {\n $identifier = $this->getToken();\n $this->user = $this->provider->retrieveByToken($identifier, '');\n }\n return $this->user;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getAuthor();", "public function getAuthor();", "public function getAuthor();", "public function getUser() {\n\t\treturn $this->user;\n\t}", "public function getUser() {\n\t\treturn $this->user;\n\t}", "public function getUser( ) {\n\t\treturn $this->user;\n\t}", "public function getUser( ) {\n\t\treturn $this->user;\n\t}", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }" ]
[ "0.7614639", "0.72987556", "0.701647", "0.69436854", "0.6943233", "0.6910689", "0.68481934", "0.68365175", "0.68365175", "0.68365175", "0.68365175", "0.68365175", "0.6811296", "0.68090355", "0.67872065", "0.67632896", "0.6758758", "0.6753975", "0.6734763", "0.67283523", "0.6714041", "0.6714041", "0.6714041", "0.6714041", "0.6714041", "0.6714041", "0.6714041", "0.6714041", "0.6699375", "0.66890466", "0.6683214", "0.6681229", "0.6680616", "0.6678594", "0.6678594", "0.6678594", "0.66340053", "0.66170585", "0.66170585", "0.6609141", "0.6590574", "0.6589066", "0.6589066", "0.6574669", "0.6561415", "0.65595365", "0.65563977", "0.65489316", "0.65456223", "0.6545353", "0.65429467", "0.6541268", "0.65357625", "0.65250903", "0.65233666", "0.65233666", "0.65233666", "0.65233666", "0.65188545", "0.6517601", "0.651456", "0.65118957", "0.6511843", "0.6511843", "0.6511843", "0.6511843", "0.6511843", "0.6511843", "0.65085465", "0.65085465", "0.65085465", "0.65042996", "0.65042996", "0.6500878", "0.6500878", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099", "0.6484099" ]
0.0
-1
Get all destinations related to this article
protected function destinations() { $list = $this->hasMany(Mapping\ArticleDestination::class, 'article_id', 'article_id'); return $list->getResults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllDestination()\n {\n $destinations = [];\n \n $allDestinations = $this->pdo->prepare('SELECT * FROM destinations');\n $allDestinations->execute();\n \n while ($donneesDestination = $allDestinations->fetch(PDO::FETCH_ASSOC))\n {\n array_push($destinations, new Destination ($donneesDestination)); \n \n }\n \n return $destinations;\n }", "public function getDestinations()\n {\n return $this->destinations;\n }", "public function getDestinations() : array\n {\n return $this->destinations;\n }", "public function destinations(){\n $this->belongsToMany(Destination::class);\n }", "public function getDestinationList() {\n return $this->packageDao->getDestinationList();\n }", "public function index()\n {\n $criteria = Destination::paginate(10);\n return new DestinationResourceCollection($criteria);\n }", "public function getDestination()\n {\n return $this->hasOne(Destination::className(), ['id' => 'destination_id']);\n }", "public function sources() {\n return $this->hasMany(Location::class);\n }", "public function getAllRoute()\n {\n return $this->hasMany('Api\\Model\\IntraHyperRoute', 'fk_buyer_seller_post_id', 'id')->where('lkp_service_id', '=', _HYPERLOCAL_);\n }", "public function fetchDestinations()\n {\n if (! array_key_exists('MarketplaceId', $this->options)) {\n $this->log('Marketplace ID must be set in order to fetch subscription destinations!', 'Warning');\n\n return false;\n }\n\n $this->options['Action'] = 'ListRegisteredDestinations';\n\n $url = $this->urlbase.$this->urlbranch;\n\n $query = $this->genQuery();\n\n $path = $this->options['Action'].'Result';\n if ($this->mockMode) {\n $xml = $this->fetchMockFile()->$path;\n } else {\n $response = $this->sendRequest($url, ['Post' => $query]);\n\n if (! $this->checkResponse($response)) {\n return false;\n }\n\n $xml = simplexml_load_string($response['body'])->$path;\n }\n\n $this->parseXML($xml);\n }", "public function locations()\n {\n return $this->hasMany(Location::class, 'data_source_id');\n }", "public function getRoutes()\n {\n return $this->hasMany(Route::className(), ['PK_Trip' => 'PK_Trip']);\n }", "function wpsp_list_tour_destination(){\n\tglobal $post;\n\n\t$destinations = wp_get_post_terms( $post->ID, 'tour_destination' );\n\t$out = '<span class=\"label\">' . esc_html__( 'Destination: ', 'discovertravel' ) . '</span>';\n\tforeach ($destinations as $term) {\n\t\t$dests[] = '<strong>' . $term->name . '</strong>';\n\t}\n\t$out .= implode(' / ', $dests);\n\techo $out;\n}", "public function getAddressToLocationRelationships()\n {\n return $this->AddressToLocationRelationships;\n }", "public function destinations($id)\n {\n return Terminal::distinct() ->select('terminals.id', 'terminals.name', 'terminals.short_name', 'terminals.location')\n ->join('routes', 'terminals.id', '=', 'routes.destination')\n ->where('routes.departure', $id)\n ->orderBy('terminals.id')\n ->get();\n }", "public function getDataDestinationCollection(): DestinationCollection {\n\n return $this->dataDestinationCollection;\n\n }", "public function getSimilarDestinationIds()\n {\n return $this->similar_destination_ids;\n }", "public function getDestinationArray() {}", "public function getDestination(): array;", "public function actionGetOtherDestination(){\n\t\t$destination = new Destinations();\n\t\t$tour = new Tours();\n\n\t\t$id = $_GET['id'];\n\t\t$models = $destination->getOtherDestination($id);\n\n\t\t$data = array();\n\t\tforeach ($models as $model) {\n\t\t\t$totalTours = count($tour->getTourInDestination($model->id));\n\n\t\t\t$data[] = array('des' => $model, 'totalTours' => $totalTours);\n\t\t}\n\t\theader('Content-Type: application/json');\n\t\theader(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE\");\n echo json_encode($data);\n\t}", "public function get_destinations($id = 0) {\n\n $_chldIds = array();\n\n if ($id == 0) {\n $sub_destinations = \\DB::table('tb_categories')->where('parent_category_id', 0)->where('id', '!=', 8)->get();\n } else {\n $sub_destinations = \\DB::table('tb_categories')->where('parent_category_id', $id)->get();\n }\n\n if (!empty($sub_destinations)) {\n foreach ($sub_destinations as $key => $sub_destination) {\n\n $chldIds = array();\n\n $chldIds[] = $sub_destination->id;\n $temp = $this->get_destinations($sub_destination->id);\n $sub_destinations[$key]->sub_destinations = $temp['sub_destinations'];\n $chldIds = array_merge($chldIds, $temp['chldIds']);\n $_chldIds = array_merge($_chldIds, $chldIds);\n\n $getcats = '';\n if (!empty($chldIds)) {\n $getcats = \" AND (\" . implode(\" || \", array_map(function($v) {\n return sprintf(\"FIND_IN_SET('%s', property_category_id)\", $v);\n }, array_values($chldIds))) . \")\";\n $preprops = DB::select(DB::raw(\"SELECT COUNT(*) AS total_rows FROM tb_properties WHERE property_status = '1' $getcats\"));\n if ($preprops[0]->total_rows == 0) {\n unset($sub_destinations[$key]);\n }\n }\n }\n }\n\n return array('sub_destinations' => $sub_destinations, 'chldIds' => $_chldIds);\n }", "public function directions()\n {\n return $this->hasMany('App\\Direction');\n }", "public function getConsumerDestinations()\n {\n return $this->consumer_destinations;\n }", "public function getDirections()\n {\n return $this->directions;\n }", "public function getDestination()\n {\n return $this->send('POST', 'getDestination');\n }", "function export_destinations( $flush = true ) {\r\n\tglobal $uploadpath;\r\n\tif( !$flush ) {\r\n\t\t$files = array(\r\n\t\t\t$uploadpath.'/datadestinations.json',\r\n\t\t\t$uploadpath.'/datadestinations_ac.json',\r\n\t\t\t$uploadpath.'/dataregions.json',\r\n\t\t\t$uploadpath.'/dataregions_ac.json',\r\n\t\t\t$uploadpath.'/datacities.json',\r\n\t\t\t$uploadpath.'/datacities_ac.json');\r\n\t\tforeach ( $files as $f ) {\r\n\t\t\tif( !file_exists( $f ) ) {\r\n\t\t\t\t$flush = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tif(!$flush) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t$destinations = get_terms( 'destinations', array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false) );\r\n\r\n\t$regions = array_filter($destinations, function ($t) {\r\n\t\t$destinationstree = get_ancestors( $t->term_id, 'destinations' );\r\n\t\t$destinationstree = array_reverse($destinationstree);\r\n\t\t$destdepth = count($destinationstree);\r\n\t\treturn $destdepth == 1;\r\n\t});\r\n\r\n\t$cities = array_filter($destinations, function ($t) {\r\n\t\t$destinationstree = get_ancestors( $t->term_id, 'destinations' );\r\n\t\t$destinationstree = array_reverse($destinationstree);\r\n\t\t$destdepth = count($destinationstree);\r\n\t\treturn $destdepth == 2;\r\n\t});\r\n\r\n\t$datadestinations = array();\r\n\t$datadestac = array();\r\n\t$dataregions = array();\r\n\t$dataregionsac = array();\r\n\t$datacities = array();\r\n\t$datacitiesac = array();\r\n\t$i = 0;\r\n\r\n\t// cities\r\n\tforeach ( $cities as $term ) {\r\n\t\t$datadestinations[$i][] = $term->term_id;\r\n\t\t$datadestinations[$i][] = $term->slug;\r\n\t\t$datadestinations[$i][] = $term->name;\r\n\r\n\t\t$datacities[$i][] = $term->term_id;\r\n\t\t$datacities[$i][] = $term->slug;\r\n\t\t$datacities[$i][] = $term->name;\r\n\r\n\t\t$datacitiesac[$i][] = $term->name;\r\n\t\t$datacitiesac[$i][] = $term->slug;\r\n\r\n\t\t$datadestac[$i][] = $term->name;\r\n\t\t$datadestac[$i][] = $term->slug;\r\n\r\n\t\t$i++;\r\n\t}\r\n\r\n\t$j = $i;\r\n\r\n\t// regions\r\n\tforeach ( $regions as $term ) {\r\n\t\t$datadestinations[$i][] = $term->term_id;\r\n\t\t$datadestinations[$i][] = $term->slug;\r\n\t\t$datadestinations[$i][] = $term->name;\r\n\r\n\t\t$dataregions[$i-$j][] = $term->term_id;\r\n\t\t$dataregions[$i-$j][] = $term->slug;\r\n\t\t$dataregions[$i-$j][] = $term->name;\r\n\r\n\t\t$dataregionsac[$i-$j][] = $term->name;\r\n\t\t$dataregionsac[$i-$j][] = $term->slug;\r\n\r\n\t\t$datadestac[$i][] = $term->name;\r\n\t\t$datadestac[$i][] = $term->slug;\r\n\r\n\t\t$i++;\r\n\t}\r\n\r\n\t$file = fopen($uploadpath.'/datadestinations.txt', 'w');\r\n\t$headers = array('destination_id','slug','name');\r\n\tfputcsv($file, $headers);\r\n\t\tforeach ($datadestinations as $fields) {\r\n\t\t\tfputcsv($file,$fields);\r\n\t\t}\r\n\tfclose($file);\r\n\r\n\t$jsondestinations = json_encode($datadestinations);\r\n\tfile_put_contents( $uploadpath.'/datadestinations.json', $jsondestinations);\r\n\r\n\t$jsondestinations = json_encode($datadestac);\r\n\tfile_put_contents( $uploadpath.'/datadestinations_ac.json', $jsondestinations);\r\n\r\n\t$jsonregions = json_encode($dataregions);\r\n\tfile_put_contents( $uploadpath.'/dataregions.json', $jsonregions);\r\n\r\n\t$jsonregions = json_encode($dataregionsac);\r\n\tfile_put_contents( $uploadpath.'/dataregions_ac.json', $jsonregions);\r\n\r\n\t$jsoncities = json_encode($datacities);\r\n\tfile_put_contents( $uploadpath.'/datacities.json', $jsoncities);\r\n\r\n\t$jsoncities = json_encode($datacitiesac);\r\n\tfile_put_contents( $uploadpath.'/datacities_ac.json', $jsoncities);\r\n\texport_bookingwidget();\r\n}", "public static function getDestinos() {\n $sql_destinos = \"SELECT products.city FROM products where activo=1 GROUP BY city\";\n \n $destinos = $this->db_list($sql_destinos);\n \n return $destinos;\n \n }", "public function locations() {\n return $this->hasMany(Location::class);\n }", "public function locations()\n {\n return $this->hasMany(Location::class);\n }", "public function getDestinationPrefixes();", "public function index()\n {\n //\n $destinations = Destination::all();\n return view('destinations.list', compact('destinations'));\n }", "public function listRegisteredDestinations($request);", "public function getDestinationForLocations($date = null, $destination ,$toLocations)\n {\n $vatry = 'Vatry';\n $qb = $this->createQueryBuilder('f')\n ->where(\"f.fromLocation = :vatry \")\n ->setParameter('vatry', $vatry);\n\n if ($destination) {\n $qb->andWhere('f.toLocation in (:locations)')\n ->setParameter('locations', $toLocations);\n }\n\n if ($date) {\n $qb\n ->andWhere('f.time like :like')\n ->setParameter('like', $date . \"%\");\n }\n\n return $qb->getQuery()->getResult();\n }", "public function getDestinations($i = null)\n {\n if (isset($this->destinationList)) {\n if (is_numeric($i)) {\n return $this->destinationList[$i];\n } else {\n return $this->destinationList;\n }\n } else {\n return false;\n }\n }", "public function getAddresses() {\n $table = new Yourdelivery_Model_DbTable_Locations();\n return $table->fetchAll('companyId = ' . $this->getId());\n }", "public function getDestination() {\n return $this->destinationDao->getDestination();\n }", "public function index() {\n\n $destination = $this->hotelRepository->getDestinations();\n return view('destination', compact('destination'));\n }", "protected function _getTopDestinations()\n {\n $destinations = (string)$this->scopeConfig->getValue(\n 'general/country/destinations',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n return !empty($destinations) ? explode(',', $destinations) : [];\n }", "public function get_directions();", "public function destinationPrices()\n {\n return $this->hasMany('App\\Price', 'destination_country_id');\n }", "public function arrivals()\n {\n return $this->hasMany(Departure::class, 'to_port_id');\n }", "function listar_enlaces_destacados() {\n\t\n\t\t$query = \"SELECT categorias_enlaces.*, enlaces.*\n\t\tFROM categorias_enlaces, enlaces\n\t\tWHERE enlaces.destacado = 1\n\t\tAND enlaces.enlace_activo = 1\n\t\tAND enlaces.id_categoria_enlace = categorias_enlaces.id_categoria_enlace\n\t\tORDER BY enlaces.id_enlace\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\tmysql_close($connection);\n\t\treturn $result;\n\t\n\t\n\t}", "public function getRoutes();", "public function getRoutes();", "public function locations()\n {\n return $this->hasMany('App\\Location');\n }", "public static function getCampaignLocations()\n {\n return self::$db->fetchAll(\n 'SELECT banner_location_id AS value, description AS text FROM website.banner_location'\n );\n }", "function backup_migrate_drush_destinations() {\n return _backup_migrate_drush_destinations('all');\n}", "public function getSources()\n {\n return $this->hasMany(Source::className(), ['id_url' => 'id']);\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getRoutes() {}", "public function actionGetDestinationById()\n\t{\n\t\theader('Content-Type: application/json');\n\t\theader(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE\");\n\n $id = $_GET['id'];\n $destination = new Destinations();\n\t\t$model = $destination->getDestinationById($id);\n\n\t\techo json_encode($model);\n\t}", "public function getDestination() {\n return $this->destination;\n }", "public function locations(){\n\t\treturn $this->hasMany('App\\Location');\n\t}", "public function getDestination()\r\n {\r\n return $this->destination;\r\n }", "public function getDestinosCh(){\n \n $destinos = array();\n \n $em = $this->getDoctrine()->getEntityManager();\n\n $result = $em->getRepository('uesperaBundle:Destino')->findAll();\n \n foreach ($result as $dest){\n $destinos[ $dest->getNomdestino() ] = $dest->getNomdestino();\n }\n \n return $destinos;\n \n }", "public function viajes(){\n return $this->hasMany(Traveler::class);\n }", "public function getLocations()\n {\n return $this->locations;\n }", "public function destination()\n { \n if ( ! auth()->guard('admin')->user()->can('access visitation_destination ' . $this->table)) {\n return redirect()->route('admin.setting.index')->with('alert-danger', __($this->noPermission));\n }\n $view = [\n 'back' => route('admin.setting.index'),\n 'title' => __('Visitation destination Settings'),\n 'breadcrumbs' => [\n route('admin.setting.index') => __('Setting'),\n route('admin.setting.destination.index') => __('Visitation destination'),\n null => __('Edit')\n ],\n 'subtitle' => __('All About Visitation destination Settings'),\n 'description' => __('You can adjust all Visitation destination settings here'),\n 'navs' => $this->settings,\n 'schools' => School::whereHas('statusUpdate.status.level', function ($subQuery) {\n $subQuery->where('school_levels.name', 'B')->orWhere('school_levels.name', 'A');\n })->doesntHave('visitationDestinations')->pluck('name', 'id'),\n 'destinations' => Destination::join('schools', 'school_id', 'schools.id')->pluck('schools.name', 'visitation_destinations.id'),\n 'setting' => $this->settings->where('slug', 'destination')->first(),\n ];\n return view('admin.setting.destination.index', $view);\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function showDestination($id) {\n return $this->destinationDao->showDestination($id);\n }", "public function destinationMethods()\n {\n return $this->belongsToMany('App\\Method', 'prices', 'destination_country_id', 'method_id');\n }", "public function getDestinationContext();", "function findAllLocations() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM locations;'));\r\n\r\n\t}", "public function locations()\n {\n return $this->hasMany(Location::class, 'project_id');\n }", "public function getArticles(){\n\t\t$placeRepository = t3lib_div::makeInstance('Tx_Wpj_Domain_Repository_PlaceRepository');\n\t\treturn $placeRepository->getArticlesOfPlace($this);\n\t}", "public function getToAddresses()\n {\n }", "public function findAll()\n {\n return $this->em\n ->getRepository('App:Location')\n ->findAll()\n ;\n }", "public function getSitemapNode()\n\t{\n\t\t$result = $params = array();\n\t\t$Article = new Article();\n\t\t$params = array();\n\t\t$params[] = 'Type = '.$this->getArticleType();\n\t\tforeach ( $Article->findShortList( $params, 'Id desc' ) as $Article )\n\t\t{\n\t\t\t$result[] = URL::get( $Article );\n\t\t}\n\t\treturn $result;\n\t}", "public function getDestinationId()\n {\n return $this->destination_id;\n }", "public function entries(){\n return $this->routes;\n }", "public function locations()\n {\n return $this->morphMany(Location::class,'trackable','trackable_type','trackable_id','uuid');\n }", "public function getRoutes()\n {\n return $this->collection;\n }", "public function actionListAvailable()\n\t{\n\t\t$destination = new Destinations();\n\t\t$tour = new Tours();\n\n\t\t$models = $destination->getAvailableDestination();\n\n\t\t$data = array();\n\t\tforeach ($models as $model) {\n\t\t\t$totalTours = count($tour->getTourInDestination($model->id));\n\n\t\t\t$data[] = array('des' => $model, 'totalTours' => $totalTours);\n\t\t}\n\t\theader('Content-Type: application/json');\n\t\theader(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE\");\n echo json_encode($data);\n\t}", "public function outgoingEdges()\n {\n return $this->hasMany(Edge::class, 'parent_id','id');\n }", "public function getLocations()\n {\n $conds = new CondsList();\n $conds->subjoin(new Param('post_type', '==', 'post'));\n $conds->subjoin(new Param('post_type', '==', 'page'));\n\n return $conds->toArray();\n }", "function getDestExtraJoins() {\n return $this->destExtraJoins;\n }", "public function getDestination()\n\t{\n\t\treturn $this->resource->model_destination;\n\t}", "public function getAllLocation($admin = false)\n {\n if ($admin) {\n return $this->deliveryLocation->all();\n }\n return $this->deliveryLocation->where('status', 1)->get();\n\n }", "public function outgoingPaths()\n {\n return $this->hasMany(Path::class,'first_node_id','id');\n }", "public function setDestinations($value)\n {\n return $this->set('Destinations', $value);\n }", "public function setDestinations($value)\n {\n return $this->set('Destinations', $value);\n }", "public function setDestinations($value)\n {\n return $this->set('Destinations', $value);\n }", "public function accounts()\n {\n return $this->get('ach/relationships');\n }", "public function show($id)\n {\n return new DestinationResource(Destination::find($id));\n }", "function timeconditions_destinations() {\n\t//get the list of timeconditions\n\t$results = timeconditions_list(true);\n\n\t// return an associative array with destination and description\n\tif (isset($results)) {\n\t\tforeach($results as $result){\n\t\t\t\t$extens[] = array('destination' => 'timeconditions,'.$result['timeconditions_id'].',1', 'description' => $result['displayname']);\n\t\t}\n\t\treturn $extens;\n\t} else {\n\t\treturn null;\n\t}\n}", "public function getDistricts()\n\t{\t\n\t\t# get all the districts from the database\n\t\t$districts = App::make('Apiv1\\Repositories\\Districts\\DistrictsRepository')->getDistricts();\n\n\t\t# transform them and send them back. This process sets an 'isPromoted' flag against each\n\t\treturn App::make('Apiv1\\Transformers\\DistrictPreferenceTransformer')->transformCollection($districts->toArray(), $this->user);\n\t}", "public function locations()\n {\n return $this->belongsToMany(\n Locations::class,\n TripLocations::class,\n 'trip_id',\n 'location_id',\n 'id',\n 'id',\n );\n }", "public function getRoutes() : array;", "public function getRoutes() : array;", "public function direcciones()\n {\n return $this->hasMany('App\\BolsaEmpleo\\DireccionPostulante', 'postulante_id', 'id');\n }", "function getRoutes() {\n return $this->routes;\n }", "public function getRoutes(){\n return $this->routes;\n }", "public function findAll()\n {\n $conn = $this->getEntityManager()\n ->getConnection();\n\n $sql = ' select * from travel t';\n\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll();\n }", "public function location()\n {\n return $this->hasMany('App\\Location');\n }", "public function getRoutes()\n {\n return $this->routeNodes;\n }", "public function getRelations();", "public function getRelations();", "public function getObjects()\n {\n return $this->hasMany(Object::className(), ['address_id' => 'id']);\n }" ]
[ "0.72364235", "0.710738", "0.68104947", "0.65494305", "0.65488213", "0.60714906", "0.59334135", "0.591461", "0.58764005", "0.5848445", "0.5833889", "0.58260655", "0.57960606", "0.5795896", "0.5782617", "0.57728624", "0.5761642", "0.57586193", "0.575108", "0.5711202", "0.57014453", "0.5671613", "0.56540096", "0.56115985", "0.5577632", "0.55353004", "0.5530254", "0.5479616", "0.5478266", "0.54712653", "0.54562616", "0.5441471", "0.5435512", "0.5432872", "0.5431268", "0.5405636", "0.5404978", "0.53446096", "0.5339186", "0.5321185", "0.5294153", "0.5286332", "0.52769774", "0.52769774", "0.5259922", "0.5204104", "0.5200652", "0.5189918", "0.5188979", "0.51826745", "0.51744133", "0.51592505", "0.51475704", "0.5138299", "0.5124713", "0.51244384", "0.51040965", "0.5101629", "0.50948423", "0.50948423", "0.50948423", "0.5090406", "0.50233775", "0.50181365", "0.5017965", "0.5015177", "0.5010507", "0.49977478", "0.4993973", "0.49864268", "0.49849907", "0.49841276", "0.49789825", "0.49770924", "0.49754718", "0.49731743", "0.4971492", "0.49708554", "0.4966531", "0.49603906", "0.49407598", "0.49363202", "0.49338824", "0.4933846", "0.4933656", "0.4927257", "0.49264178", "0.4923286", "0.4916791", "0.49163985", "0.49163985", "0.49162573", "0.49068594", "0.49005482", "0.48993188", "0.48971215", "0.4884867", "0.4883071", "0.4883071", "0.4878411" ]
0.9045315
0
Get all destinations related to this article
public function getFirstRelatedDestinationAttribute() { try { /** @var \App\Models\Destination $destination */ $destination = $this->destinations()->first()->destination; $destination->append('avatar'); return $destination; } catch (\ErrorException $e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function destinations()\n {\n $list = $this->hasMany(Mapping\\ArticleDestination::class, 'article_id', 'article_id');\n return $list->getResults();\n }", "public function getAllDestination()\n {\n $destinations = [];\n \n $allDestinations = $this->pdo->prepare('SELECT * FROM destinations');\n $allDestinations->execute();\n \n while ($donneesDestination = $allDestinations->fetch(PDO::FETCH_ASSOC))\n {\n array_push($destinations, new Destination ($donneesDestination)); \n \n }\n \n return $destinations;\n }", "public function getDestinations()\n {\n return $this->destinations;\n }", "public function getDestinations() : array\n {\n return $this->destinations;\n }", "public function destinations(){\n $this->belongsToMany(Destination::class);\n }", "public function getDestinationList() {\n return $this->packageDao->getDestinationList();\n }", "public function index()\n {\n $criteria = Destination::paginate(10);\n return new DestinationResourceCollection($criteria);\n }", "public function getDestination()\n {\n return $this->hasOne(Destination::className(), ['id' => 'destination_id']);\n }", "public function sources() {\n return $this->hasMany(Location::class);\n }", "public function getAllRoute()\n {\n return $this->hasMany('Api\\Model\\IntraHyperRoute', 'fk_buyer_seller_post_id', 'id')->where('lkp_service_id', '=', _HYPERLOCAL_);\n }", "public function fetchDestinations()\n {\n if (! array_key_exists('MarketplaceId', $this->options)) {\n $this->log('Marketplace ID must be set in order to fetch subscription destinations!', 'Warning');\n\n return false;\n }\n\n $this->options['Action'] = 'ListRegisteredDestinations';\n\n $url = $this->urlbase.$this->urlbranch;\n\n $query = $this->genQuery();\n\n $path = $this->options['Action'].'Result';\n if ($this->mockMode) {\n $xml = $this->fetchMockFile()->$path;\n } else {\n $response = $this->sendRequest($url, ['Post' => $query]);\n\n if (! $this->checkResponse($response)) {\n return false;\n }\n\n $xml = simplexml_load_string($response['body'])->$path;\n }\n\n $this->parseXML($xml);\n }", "public function locations()\n {\n return $this->hasMany(Location::class, 'data_source_id');\n }", "public function getRoutes()\n {\n return $this->hasMany(Route::className(), ['PK_Trip' => 'PK_Trip']);\n }", "function wpsp_list_tour_destination(){\n\tglobal $post;\n\n\t$destinations = wp_get_post_terms( $post->ID, 'tour_destination' );\n\t$out = '<span class=\"label\">' . esc_html__( 'Destination: ', 'discovertravel' ) . '</span>';\n\tforeach ($destinations as $term) {\n\t\t$dests[] = '<strong>' . $term->name . '</strong>';\n\t}\n\t$out .= implode(' / ', $dests);\n\techo $out;\n}", "public function getAddressToLocationRelationships()\n {\n return $this->AddressToLocationRelationships;\n }", "public function destinations($id)\n {\n return Terminal::distinct() ->select('terminals.id', 'terminals.name', 'terminals.short_name', 'terminals.location')\n ->join('routes', 'terminals.id', '=', 'routes.destination')\n ->where('routes.departure', $id)\n ->orderBy('terminals.id')\n ->get();\n }", "public function getDataDestinationCollection(): DestinationCollection {\n\n return $this->dataDestinationCollection;\n\n }", "public function getSimilarDestinationIds()\n {\n return $this->similar_destination_ids;\n }", "public function getDestinationArray() {}", "public function getDestination(): array;", "public function actionGetOtherDestination(){\n\t\t$destination = new Destinations();\n\t\t$tour = new Tours();\n\n\t\t$id = $_GET['id'];\n\t\t$models = $destination->getOtherDestination($id);\n\n\t\t$data = array();\n\t\tforeach ($models as $model) {\n\t\t\t$totalTours = count($tour->getTourInDestination($model->id));\n\n\t\t\t$data[] = array('des' => $model, 'totalTours' => $totalTours);\n\t\t}\n\t\theader('Content-Type: application/json');\n\t\theader(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE\");\n echo json_encode($data);\n\t}", "public function get_destinations($id = 0) {\n\n $_chldIds = array();\n\n if ($id == 0) {\n $sub_destinations = \\DB::table('tb_categories')->where('parent_category_id', 0)->where('id', '!=', 8)->get();\n } else {\n $sub_destinations = \\DB::table('tb_categories')->where('parent_category_id', $id)->get();\n }\n\n if (!empty($sub_destinations)) {\n foreach ($sub_destinations as $key => $sub_destination) {\n\n $chldIds = array();\n\n $chldIds[] = $sub_destination->id;\n $temp = $this->get_destinations($sub_destination->id);\n $sub_destinations[$key]->sub_destinations = $temp['sub_destinations'];\n $chldIds = array_merge($chldIds, $temp['chldIds']);\n $_chldIds = array_merge($_chldIds, $chldIds);\n\n $getcats = '';\n if (!empty($chldIds)) {\n $getcats = \" AND (\" . implode(\" || \", array_map(function($v) {\n return sprintf(\"FIND_IN_SET('%s', property_category_id)\", $v);\n }, array_values($chldIds))) . \")\";\n $preprops = DB::select(DB::raw(\"SELECT COUNT(*) AS total_rows FROM tb_properties WHERE property_status = '1' $getcats\"));\n if ($preprops[0]->total_rows == 0) {\n unset($sub_destinations[$key]);\n }\n }\n }\n }\n\n return array('sub_destinations' => $sub_destinations, 'chldIds' => $_chldIds);\n }", "public function directions()\n {\n return $this->hasMany('App\\Direction');\n }", "public function getConsumerDestinations()\n {\n return $this->consumer_destinations;\n }", "public function getDirections()\n {\n return $this->directions;\n }", "public function getDestination()\n {\n return $this->send('POST', 'getDestination');\n }", "function export_destinations( $flush = true ) {\r\n\tglobal $uploadpath;\r\n\tif( !$flush ) {\r\n\t\t$files = array(\r\n\t\t\t$uploadpath.'/datadestinations.json',\r\n\t\t\t$uploadpath.'/datadestinations_ac.json',\r\n\t\t\t$uploadpath.'/dataregions.json',\r\n\t\t\t$uploadpath.'/dataregions_ac.json',\r\n\t\t\t$uploadpath.'/datacities.json',\r\n\t\t\t$uploadpath.'/datacities_ac.json');\r\n\t\tforeach ( $files as $f ) {\r\n\t\t\tif( !file_exists( $f ) ) {\r\n\t\t\t\t$flush = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tif(!$flush) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t$destinations = get_terms( 'destinations', array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false) );\r\n\r\n\t$regions = array_filter($destinations, function ($t) {\r\n\t\t$destinationstree = get_ancestors( $t->term_id, 'destinations' );\r\n\t\t$destinationstree = array_reverse($destinationstree);\r\n\t\t$destdepth = count($destinationstree);\r\n\t\treturn $destdepth == 1;\r\n\t});\r\n\r\n\t$cities = array_filter($destinations, function ($t) {\r\n\t\t$destinationstree = get_ancestors( $t->term_id, 'destinations' );\r\n\t\t$destinationstree = array_reverse($destinationstree);\r\n\t\t$destdepth = count($destinationstree);\r\n\t\treturn $destdepth == 2;\r\n\t});\r\n\r\n\t$datadestinations = array();\r\n\t$datadestac = array();\r\n\t$dataregions = array();\r\n\t$dataregionsac = array();\r\n\t$datacities = array();\r\n\t$datacitiesac = array();\r\n\t$i = 0;\r\n\r\n\t// cities\r\n\tforeach ( $cities as $term ) {\r\n\t\t$datadestinations[$i][] = $term->term_id;\r\n\t\t$datadestinations[$i][] = $term->slug;\r\n\t\t$datadestinations[$i][] = $term->name;\r\n\r\n\t\t$datacities[$i][] = $term->term_id;\r\n\t\t$datacities[$i][] = $term->slug;\r\n\t\t$datacities[$i][] = $term->name;\r\n\r\n\t\t$datacitiesac[$i][] = $term->name;\r\n\t\t$datacitiesac[$i][] = $term->slug;\r\n\r\n\t\t$datadestac[$i][] = $term->name;\r\n\t\t$datadestac[$i][] = $term->slug;\r\n\r\n\t\t$i++;\r\n\t}\r\n\r\n\t$j = $i;\r\n\r\n\t// regions\r\n\tforeach ( $regions as $term ) {\r\n\t\t$datadestinations[$i][] = $term->term_id;\r\n\t\t$datadestinations[$i][] = $term->slug;\r\n\t\t$datadestinations[$i][] = $term->name;\r\n\r\n\t\t$dataregions[$i-$j][] = $term->term_id;\r\n\t\t$dataregions[$i-$j][] = $term->slug;\r\n\t\t$dataregions[$i-$j][] = $term->name;\r\n\r\n\t\t$dataregionsac[$i-$j][] = $term->name;\r\n\t\t$dataregionsac[$i-$j][] = $term->slug;\r\n\r\n\t\t$datadestac[$i][] = $term->name;\r\n\t\t$datadestac[$i][] = $term->slug;\r\n\r\n\t\t$i++;\r\n\t}\r\n\r\n\t$file = fopen($uploadpath.'/datadestinations.txt', 'w');\r\n\t$headers = array('destination_id','slug','name');\r\n\tfputcsv($file, $headers);\r\n\t\tforeach ($datadestinations as $fields) {\r\n\t\t\tfputcsv($file,$fields);\r\n\t\t}\r\n\tfclose($file);\r\n\r\n\t$jsondestinations = json_encode($datadestinations);\r\n\tfile_put_contents( $uploadpath.'/datadestinations.json', $jsondestinations);\r\n\r\n\t$jsondestinations = json_encode($datadestac);\r\n\tfile_put_contents( $uploadpath.'/datadestinations_ac.json', $jsondestinations);\r\n\r\n\t$jsonregions = json_encode($dataregions);\r\n\tfile_put_contents( $uploadpath.'/dataregions.json', $jsonregions);\r\n\r\n\t$jsonregions = json_encode($dataregionsac);\r\n\tfile_put_contents( $uploadpath.'/dataregions_ac.json', $jsonregions);\r\n\r\n\t$jsoncities = json_encode($datacities);\r\n\tfile_put_contents( $uploadpath.'/datacities.json', $jsoncities);\r\n\r\n\t$jsoncities = json_encode($datacitiesac);\r\n\tfile_put_contents( $uploadpath.'/datacities_ac.json', $jsoncities);\r\n\texport_bookingwidget();\r\n}", "public static function getDestinos() {\n $sql_destinos = \"SELECT products.city FROM products where activo=1 GROUP BY city\";\n \n $destinos = $this->db_list($sql_destinos);\n \n return $destinos;\n \n }", "public function locations() {\n return $this->hasMany(Location::class);\n }", "public function locations()\n {\n return $this->hasMany(Location::class);\n }", "public function getDestinationPrefixes();", "public function index()\n {\n //\n $destinations = Destination::all();\n return view('destinations.list', compact('destinations'));\n }", "public function listRegisteredDestinations($request);", "public function getDestinationForLocations($date = null, $destination ,$toLocations)\n {\n $vatry = 'Vatry';\n $qb = $this->createQueryBuilder('f')\n ->where(\"f.fromLocation = :vatry \")\n ->setParameter('vatry', $vatry);\n\n if ($destination) {\n $qb->andWhere('f.toLocation in (:locations)')\n ->setParameter('locations', $toLocations);\n }\n\n if ($date) {\n $qb\n ->andWhere('f.time like :like')\n ->setParameter('like', $date . \"%\");\n }\n\n return $qb->getQuery()->getResult();\n }", "public function getDestinations($i = null)\n {\n if (isset($this->destinationList)) {\n if (is_numeric($i)) {\n return $this->destinationList[$i];\n } else {\n return $this->destinationList;\n }\n } else {\n return false;\n }\n }", "public function getAddresses() {\n $table = new Yourdelivery_Model_DbTable_Locations();\n return $table->fetchAll('companyId = ' . $this->getId());\n }", "public function getDestination() {\n return $this->destinationDao->getDestination();\n }", "public function index() {\n\n $destination = $this->hotelRepository->getDestinations();\n return view('destination', compact('destination'));\n }", "protected function _getTopDestinations()\n {\n $destinations = (string)$this->scopeConfig->getValue(\n 'general/country/destinations',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n return !empty($destinations) ? explode(',', $destinations) : [];\n }", "public function get_directions();", "public function destinationPrices()\n {\n return $this->hasMany('App\\Price', 'destination_country_id');\n }", "public function arrivals()\n {\n return $this->hasMany(Departure::class, 'to_port_id');\n }", "function listar_enlaces_destacados() {\n\t\n\t\t$query = \"SELECT categorias_enlaces.*, enlaces.*\n\t\tFROM categorias_enlaces, enlaces\n\t\tWHERE enlaces.destacado = 1\n\t\tAND enlaces.enlace_activo = 1\n\t\tAND enlaces.id_categoria_enlace = categorias_enlaces.id_categoria_enlace\n\t\tORDER BY enlaces.id_enlace\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\tmysql_close($connection);\n\t\treturn $result;\n\t\n\t\n\t}", "public function getRoutes();", "public function getRoutes();", "public function locations()\n {\n return $this->hasMany('App\\Location');\n }", "public static function getCampaignLocations()\n {\n return self::$db->fetchAll(\n 'SELECT banner_location_id AS value, description AS text FROM website.banner_location'\n );\n }", "function backup_migrate_drush_destinations() {\n return _backup_migrate_drush_destinations('all');\n}", "public function getSources()\n {\n return $this->hasMany(Source::className(), ['id_url' => 'id']);\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getRoutes() {}", "public function actionGetDestinationById()\n\t{\n\t\theader('Content-Type: application/json');\n\t\theader(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE\");\n\n $id = $_GET['id'];\n $destination = new Destinations();\n\t\t$model = $destination->getDestinationById($id);\n\n\t\techo json_encode($model);\n\t}", "public function getDestination() {\n return $this->destination;\n }", "public function locations(){\n\t\treturn $this->hasMany('App\\Location');\n\t}", "public function getDestination()\r\n {\r\n return $this->destination;\r\n }", "public function getDestinosCh(){\n \n $destinos = array();\n \n $em = $this->getDoctrine()->getEntityManager();\n\n $result = $em->getRepository('uesperaBundle:Destino')->findAll();\n \n foreach ($result as $dest){\n $destinos[ $dest->getNomdestino() ] = $dest->getNomdestino();\n }\n \n return $destinos;\n \n }", "public function viajes(){\n return $this->hasMany(Traveler::class);\n }", "public function getLocations()\n {\n return $this->locations;\n }", "public function destination()\n { \n if ( ! auth()->guard('admin')->user()->can('access visitation_destination ' . $this->table)) {\n return redirect()->route('admin.setting.index')->with('alert-danger', __($this->noPermission));\n }\n $view = [\n 'back' => route('admin.setting.index'),\n 'title' => __('Visitation destination Settings'),\n 'breadcrumbs' => [\n route('admin.setting.index') => __('Setting'),\n route('admin.setting.destination.index') => __('Visitation destination'),\n null => __('Edit')\n ],\n 'subtitle' => __('All About Visitation destination Settings'),\n 'description' => __('You can adjust all Visitation destination settings here'),\n 'navs' => $this->settings,\n 'schools' => School::whereHas('statusUpdate.status.level', function ($subQuery) {\n $subQuery->where('school_levels.name', 'B')->orWhere('school_levels.name', 'A');\n })->doesntHave('visitationDestinations')->pluck('name', 'id'),\n 'destinations' => Destination::join('schools', 'school_id', 'schools.id')->pluck('schools.name', 'visitation_destinations.id'),\n 'setting' => $this->settings->where('slug', 'destination')->first(),\n ];\n return view('admin.setting.destination.index', $view);\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function getDestination()\n {\n return $this->destination;\n }", "public function showDestination($id) {\n return $this->destinationDao->showDestination($id);\n }", "public function destinationMethods()\n {\n return $this->belongsToMany('App\\Method', 'prices', 'destination_country_id', 'method_id');\n }", "public function getDestinationContext();", "function findAllLocations() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM locations;'));\r\n\r\n\t}", "public function locations()\n {\n return $this->hasMany(Location::class, 'project_id');\n }", "public function getArticles(){\n\t\t$placeRepository = t3lib_div::makeInstance('Tx_Wpj_Domain_Repository_PlaceRepository');\n\t\treturn $placeRepository->getArticlesOfPlace($this);\n\t}", "public function getToAddresses()\n {\n }", "public function findAll()\n {\n return $this->em\n ->getRepository('App:Location')\n ->findAll()\n ;\n }", "public function getSitemapNode()\n\t{\n\t\t$result = $params = array();\n\t\t$Article = new Article();\n\t\t$params = array();\n\t\t$params[] = 'Type = '.$this->getArticleType();\n\t\tforeach ( $Article->findShortList( $params, 'Id desc' ) as $Article )\n\t\t{\n\t\t\t$result[] = URL::get( $Article );\n\t\t}\n\t\treturn $result;\n\t}", "public function getDestinationId()\n {\n return $this->destination_id;\n }", "public function entries(){\n return $this->routes;\n }", "public function locations()\n {\n return $this->morphMany(Location::class,'trackable','trackable_type','trackable_id','uuid');\n }", "public function getRoutes()\n {\n return $this->collection;\n }", "public function actionListAvailable()\n\t{\n\t\t$destination = new Destinations();\n\t\t$tour = new Tours();\n\n\t\t$models = $destination->getAvailableDestination();\n\n\t\t$data = array();\n\t\tforeach ($models as $model) {\n\t\t\t$totalTours = count($tour->getTourInDestination($model->id));\n\n\t\t\t$data[] = array('des' => $model, 'totalTours' => $totalTours);\n\t\t}\n\t\theader('Content-Type: application/json');\n\t\theader(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE\");\n echo json_encode($data);\n\t}", "public function outgoingEdges()\n {\n return $this->hasMany(Edge::class, 'parent_id','id');\n }", "public function getLocations()\n {\n $conds = new CondsList();\n $conds->subjoin(new Param('post_type', '==', 'post'));\n $conds->subjoin(new Param('post_type', '==', 'page'));\n\n return $conds->toArray();\n }", "function getDestExtraJoins() {\n return $this->destExtraJoins;\n }", "public function getDestination()\n\t{\n\t\treturn $this->resource->model_destination;\n\t}", "public function getAllLocation($admin = false)\n {\n if ($admin) {\n return $this->deliveryLocation->all();\n }\n return $this->deliveryLocation->where('status', 1)->get();\n\n }", "public function outgoingPaths()\n {\n return $this->hasMany(Path::class,'first_node_id','id');\n }", "public function setDestinations($value)\n {\n return $this->set('Destinations', $value);\n }", "public function setDestinations($value)\n {\n return $this->set('Destinations', $value);\n }", "public function setDestinations($value)\n {\n return $this->set('Destinations', $value);\n }", "public function accounts()\n {\n return $this->get('ach/relationships');\n }", "public function show($id)\n {\n return new DestinationResource(Destination::find($id));\n }", "function timeconditions_destinations() {\n\t//get the list of timeconditions\n\t$results = timeconditions_list(true);\n\n\t// return an associative array with destination and description\n\tif (isset($results)) {\n\t\tforeach($results as $result){\n\t\t\t\t$extens[] = array('destination' => 'timeconditions,'.$result['timeconditions_id'].',1', 'description' => $result['displayname']);\n\t\t}\n\t\treturn $extens;\n\t} else {\n\t\treturn null;\n\t}\n}", "public function getDistricts()\n\t{\t\n\t\t# get all the districts from the database\n\t\t$districts = App::make('Apiv1\\Repositories\\Districts\\DistrictsRepository')->getDistricts();\n\n\t\t# transform them and send them back. This process sets an 'isPromoted' flag against each\n\t\treturn App::make('Apiv1\\Transformers\\DistrictPreferenceTransformer')->transformCollection($districts->toArray(), $this->user);\n\t}", "public function locations()\n {\n return $this->belongsToMany(\n Locations::class,\n TripLocations::class,\n 'trip_id',\n 'location_id',\n 'id',\n 'id',\n );\n }", "public function getRoutes() : array;", "public function getRoutes() : array;", "public function direcciones()\n {\n return $this->hasMany('App\\BolsaEmpleo\\DireccionPostulante', 'postulante_id', 'id');\n }", "function getRoutes() {\n return $this->routes;\n }", "public function getRoutes(){\n return $this->routes;\n }", "public function findAll()\n {\n $conn = $this->getEntityManager()\n ->getConnection();\n\n $sql = ' select * from travel t';\n\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll();\n }", "public function location()\n {\n return $this->hasMany('App\\Location');\n }", "public function getRoutes()\n {\n return $this->routeNodes;\n }", "public function getRelations();", "public function getRelations();", "public function getObjects()\n {\n return $this->hasMany(Object::className(), ['address_id' => 'id']);\n }" ]
[ "0.9045315", "0.72364235", "0.710738", "0.68104947", "0.65494305", "0.65488213", "0.60714906", "0.59334135", "0.591461", "0.58764005", "0.5848445", "0.5833889", "0.58260655", "0.57960606", "0.5795896", "0.5782617", "0.57728624", "0.5761642", "0.57586193", "0.575108", "0.5711202", "0.57014453", "0.5671613", "0.56540096", "0.56115985", "0.5577632", "0.55353004", "0.5530254", "0.5479616", "0.5478266", "0.54712653", "0.54562616", "0.5441471", "0.5435512", "0.5432872", "0.5431268", "0.5405636", "0.5404978", "0.53446096", "0.5339186", "0.5321185", "0.5294153", "0.5286332", "0.52769774", "0.52769774", "0.5259922", "0.5204104", "0.5200652", "0.5189918", "0.5188979", "0.51826745", "0.51744133", "0.51592505", "0.51475704", "0.5138299", "0.5124713", "0.51244384", "0.51040965", "0.5101629", "0.50948423", "0.50948423", "0.50948423", "0.5090406", "0.50233775", "0.50181365", "0.5017965", "0.5015177", "0.5010507", "0.49977478", "0.4993973", "0.49864268", "0.49849907", "0.49841276", "0.49789825", "0.49770924", "0.49754718", "0.49731743", "0.4971492", "0.49708554", "0.4966531", "0.49603906", "0.49407598", "0.49363202", "0.49338824", "0.4933846", "0.4933656", "0.4927257", "0.49264178", "0.4923286", "0.4916791", "0.49163985", "0.49163985", "0.49162573", "0.49068594", "0.49005482", "0.48993188", "0.48971215", "0.4884867", "0.4883071", "0.4883071", "0.4878411" ]
0.0
-1
If an article not have cover, replace by its tagged destination's image
public function getThumbnailAttribute() { /** @var Photo $thumbPhoto */ try { $thumbPhoto = ($this->cover_id != null) ? Photo::find($this->cover_id) : $this->first_related_destination->avatar; return $thumbPhoto->src; } catch (\Exception $e) { return Photo::samplePhotoUrl(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function replaceImage()\n {\n $args = func_get_args();\n\n $domDocument = new DomDocument();\n $domDocument->loadXML(self::$_document);\n\n $domImages = $domDocument->getElementsByTagNameNS('http://schemas.openxmlformats.org/drawingml/2006/' .\n 'wordprocessingDrawing', 'docPr');\n $domImagesId = $domDocument->getElementsByTagNameNS(\n 'http://schemas.openxmlformats.org/drawingml/2006/main',\n 'blip'\n );\n\n for ($i = 0; $i < $domImages->length; $i++) {\n if ($domImages->item($i)->getAttribute('descr') ==\n self::$_templateSymbol . $args[0] . self::$_templateSymbol) {\n $ind = $domImagesId->item($i)->getAttribute('r:embed');\n self::$placeholderImages[$ind] = $args[1];\n }\n }\n }", "public function reassignFeaturedImage()\n {\n\n }", "function setArticleImage($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n /* you can itentify the article with $object->reference->ShopId */ \n}", "function addArticleImage($object) {\n /* you can itentify the article with $object->reference->ShopId */ \n $object->Item->ShopId = 'yourReturnedArticlebildIdOnMarketplace_'.rand(1000, 9999); \n}", "function set_cover_image( $id ) {\n\treturn class_exists( 'MultiPostThumbnails' ) && MultiPostThumbnails::has_post_thumbnail( 'project', 'cover-image', $id ) ?\n\t\tMultiPostThumbnails::get_post_thumbnail_url( 'project', 'cover-image', $id, 'large' ) :\n\t\t\tset_featured_image( $id );\n}", "public function setFeaturedImage()\n {\n\n $featuredImage = get_post_custom_values( 'no_featured_image', get_the_id() );\n if (empty($featuredImage[0]) ){\n\n }\n }", "public function removeCoverPhoto($id_product)\n {\n $sql = \"UPDATE \" . _DB_PREFIX_ . \"image SET cover=NULL WHERE id_product = \" . (int) $id_product;\n Db::getInstance()->query($sql);\n //lay tat ca cac anh cover\n $sql = 'SELECT * FROM ' . _DB_PREFIX_ . 'image WHERE id_product=' . (int) $id_product;\n if ($results = Db::getInstance()->ExecuteS($sql, true, false)) {\n foreach ($results as $row) {\n $id_image = $row[\"id_image\"];\n $sql = \"UPDATE \" . _DB_PREFIX_ . \"image_shop SET cover=NULL WHERE id_image = \" . (int) $id_image;\n Db::getInstance()->query($sql);\n }\n }\n }", "function tep_get_dest_image($small_image_source,$folder = 'xxs',$suffix=''){\n\treturn str_replace('-s',$suffix,str_replace('small',$folder,$small_image_source));\n}", "function slug_auto_featured_img( $pieces, $is_new_item, $id ) {\n\t$imgs = $pieces[ 'fields' ][ 'img' ][ 'value' ];\n\n\t//get ID of first index in array\n\t$img = $imgs[0][ 'ID'];\n\n\t//if there is nothing there set $img to null to avoid errors\n\tif ( empty( $img ) ) { $img = null; }\n\n\t//Prepare to update the post's featured image.\n\t$my_post = array(\n\t\t'ID' => $id,\n\t\t'post_thumbnail' => $img\n\t);\n\n\t//Update the post\n\twp_update_post( $my_post );\n\n}", "function snipVerbottenImagesFromPost($post_id) {\n // make a query to the verbottenimage_posts table\n // question: what are the verbotten_image_id s? remeber there might be multiple\n // now find their positiions iin the post_content, and cycle through them stating with last first ( so as to not upset subsequent positiions)\n global $wpdb;\n $someObj = new stdClass;\n\n\n // The post featured image link stored in the WordPress database is stored in wp_postmeta with a meta_key called _thumbnail_id.\n // in wp_posts_meta, wwhere meta_key = _thumbnail_id and meta_value = the verbotten_image_id and the post_id is the post_id ... then we need to \n // should we delete? or should we instead change the meta key from _thumbnail_id ==> verbottenimage_id and also do a substitution ... add a new record \n // ... mostly identical to the previous one, putting _thumbnail_id --> a known substitute image. Alternatively, we could store all the data pertaining to the deleted verbotten images someplace else. LEt's say, in a different table altogether.\n \n\n // get the data for that post_id\n // verbottenimage_posts\n // check the thumbnail id, if the thumbnail id is one of the verbotten images, then fix it.\n\n \n // do the backup + featured image substitution first.\n\n\n $verbottenimage_post_images_query_result = $wpdb->get_results(\"SELECT * FROM verbottenimage_posts WHERE verbottenimage_posts.post_id = {$post_id}\");\n \n if (count($verbottenimage_post_images_query_result) > 0 ) {\n\n\n\n // change the meta key from _thumbnail_id in wp_post_meta 507117\n\n \n\n $somePostContent = $verbottenimage_post_images_query_result[0]->post_content;\n\n // get the $imgPositions\n preg_match_all('/(<img)/', $somePostContent, $imgPositions, PREG_OFFSET_CAPTURE);\n\n $snips = Array();\n // find the position if the needle in the hayStack\n forEach($verbottenimage_post_images_query_result AS $item) {\n $needle = 'wp-image-' . $item->verbotten_image_id . '\"';\n // strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int\n $needlePos = strpos($somePostContent, $needle);\n if ($needlePos === false) {\n $needle = 'wp-image-' . $item->verbotten_image_id . ' ';\n $needlePos = strpos($somePostContent, $needle);\n }\n // and then reset needle back to original\n $needle = 'wp-image-' . $item->verbotten_image_id;// it is not used, just going pack in the json response\n\n $snipObj = new stdClass;\n $snipObj->id = $item->verbotten_image_id;\n $snipObj->identifier = $needle;\n\n $snipObj->needlePos = $needlePos;\n // $snipObj->imgPositions = $imgPositions;\n \n $possibleSnipStartPositions = Array();\n forEach($imgPositions[0] AS $possibleSnipStartObj) {// for some reason there are two identical arrays in an array?! so we jsut use the first one, which gives us an array of 2-item arrays, the second of which [1], is the positiion\n array_push($possibleSnipStartPositions, $possibleSnipStartObj[1]);\n }\n \n $snipStart = 0;\n forEach($possibleSnipStartPositions AS $pos) {\n if($pos < $needlePos && $pos > $snipStart) {\n $snipStart = $pos;\n }\n }\n \n $snipObj->snipStart = $snipStart;// the the highest in imgPositions that is below $needlePos\n $snipObj->snipEnd = strpos($somePostContent, '>', $needlePos) + 1; // the lowest > character that is above $needlePos. +1 because the '>' is precisely 1 character in length\n array_push($snips, $snipObj);\n\n }\n // remove all the snips where !needlePos\n foreach ($snips as $key => $snipObj) {\n if ($snipObj->needlePos === false) {\n unset($snips[$key]);\n }\n}\n // make sure that the $snips are ordered in order of their needlePos\n usort($snips, \"sortOnReverseNeedlePos\");\n\n // and now we start snipping. We have $somePostContent already to start with.\n\n\n\t\t// this works\n\n $snippedContent = $somePostContent;// start with somePostContent, but allow progressive snips to occur.\n forEach($snips AS $snipObj) {\n // make the html comment that has the edit link in it. And sandwhich iit between the snips\n $editLinkComment = \"<!-- AnImageWasRemoved edit-link: https://www.everythingzoomer.com/wp-admin/upload.php?item={$snipObj->id} -->\";\n $firstHalf = substr($snippedContent, 0, $snipObj->snipStart);\n $secondHalf = substr($snippedContent, $snipObj->snipEnd);\n $snippedContent = $firstHalf . $editLinkComment . $secondHalf;\n }\n // $someObj->snippedContent = $snippedContent;\n // now we are done with all the snipping, and are ready to make the query to update.\n\n // and now make the query \n // $verbottenimage_post_images_query_result = $wpdb->get_results(\"SELECT * FROM verbottenimage_posts WHERE verbottenimage_posts.post_id = {$post_id}\");\n \n // $snipQuery = $wpdb->get_results(\"UPDATE verbottenimage_posts SET fixed_post_content = {$snippedContent} WHERE verbottenimage_posts.post_id = {$post_id}\");// this does them all at once, instead of doing it sequentially. it will do them all, multiple times, but whatever, it will be inefficient, but still work\n $snipQuery = $wpdb->update(\n 'verbottenimage_posts',\n array( \n 'fixed_post_content' => $snippedContent\n ),\n array(\n 'post_id' => $post_id \n )\n );\n\n // now, let's actually snip the post_content from wp_posts\n $replaceActualPostContentQuery = $wpdb->update(\n 'wp_posts',\n array( \n 'post_content' => $snippedContent\n ),\n array(\n 'ID' => $post_id \n )\n );\n\n // and lastly, let's update the removed for each of the verbottenimages .. only after te post has been updated.\n $reeplacedQuery = $wpdb->update(\n 'verbottenimage_posts',\n array( \n 'removed' => 1\n ),\n array(\n 'post_id' => $post_id \n )\n );\n\n\n $someObj->snipQuery = $snipQuery;\n }\n \n // $numberOfImages = substr_count($somePostContent, '<img');\n \n $someObj->snips = $snips;\n return $someObj;\n // return $verbottenimage_post_images_query_result;\n }", "function zero_filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n }", "public function setCover($value)\n {\n if (!array_key_exists('cover', $this->fieldsModified)) {\n $this->fieldsModified['cover'] = $this->data['fields']['cover'];\n } elseif ($value === $this->fieldsModified['cover']) {\n unset($this->fieldsModified['cover']);\n }\n\n $this->data['fields']['cover'] = $value;\n }", "function avia_backend_compatibility_featured_image($post_id, $result)\n\t{\t\n\t\tif(isset($result['slideshow'][0]['slideshow_image']))\n\t\t{\n\t\t\t$attachmend_id = $result['slideshow'][0]['slideshow_image'];\n\t\t\t\n\t\t\tif($attachmend_id == \"\" || ($attachmend_id != \"\" && ! is_numeric($attachmend_id))) \n\t\t\t{\t\n\t\t\t\tdelete_post_meta($post_id, '_thumbnail_id');\n\t\t\t}\n\t\t\t\n\t\t\tif(is_numeric($attachmend_id))\n\t\t\t{\n\t\t\t\tupdate_post_meta($post_id, '_thumbnail_id', $attachmend_id);\n\t\t\t}\n\t\t}\n\t}", "function spartan_filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "public function setcoverAction() {\n\t\t$story_id \t\t= $this->getRequest()->getParam(\"story\");\n\t\t$source_id \t\t= $this->getRequest()->getParam(\"source\");\n\t\t$item_id \t\t= $this->getRequest()->getParam(\"item\");\n\t\t\n\t\t//Verify if the requested story exist\n\t\t$stories\t\t= new Stories();\n\t\tif (!($story\t= $stories->getStory($story_id))) {\n\t\t\treturn $this->_helper->json->sendJson(false);\n\t\t}\n\n\t\t// Check if we are the owner\n\t\tif ($this->_application->user->id != $story->user_id) {\n\t\t\treturn $this->_helper->json->sendJson(false);\n\t\t}\n\t\t\n\t\t//Verify if the requested source exist\n\t\t$sources\t\t= new Sources();\n\t\tif (!($source\t= $sources->getSource($source_id))) {\n\t\t\treturn $this->_helper->json->sendJson(false);\n\t\t}\n\n\t\t// Check if we are the owner\n\t\tif ($this->_application->user->id != $source['user_id']) {\n\t\t\treturn $this->_helper->json->sendJson(false);\n\t\t}\n\t\t\n\t\t//Verify if the requested item exist\n\t\t$data\t\t= new Data();\n\t\tif (!($item\t= $data->getItem($source_id, $item_id))) {\n\t\t\treturn $this->_helper->json->sendJson(false);\n\t\t}\n\t\t\n\t\t// Do we have a url ?\n\t\tif (!($url = $item->getImageUrl(ImageItem::SIZE_MEDIUM))) {\n\t\t\treturn $this->_helper->json->sendJson(false);\n\t\t}\n\t\t\n\t\t// Get the old image and delete it\n\t\t$files\t= new Files();\n\t\tif ($file = $files->getFileFromKey($story->thumbnail)) {\n\t\t\t$files->deleteFile($file->key);\n\t\t}\n\t\t\n\t\t// Ok, we can set the image\n\t\t$this->setKeyImage($story_id, $url);\n\t\treturn $this->_helper->json->sendJson(true);\n\t}", "function _wp_image_meta_replace_original($saved_data, $original_file, $image_meta, $attachment_id)\n {\n }", "function toGetThumbnailCloudURLForCollection1stArticle($first_article_id, $blog_id, $site_url) {\n\t$featured16x9ImageID = get_post_thumbnail_id($first_article_id);\n\t//$featured16x9ImageID=get_field('thumbnail_custom_image', $first_article_id)\n\t$featured16x9ImageCloudURLFor1stArticle = get_post_meta($featured16x9ImageID, '_wp_attached_file');\n\t//print_r($featured16x9ImageCloudURLFor1stArticle);\n\t \n\tif($featured16x9ImageCloudURLFor1stArticle[0] != \"\") {\n\t\tif(strpos($featured16x9ImageCloudURLFor1stArticle[0], 'cloudinary.com') > 0) {\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\t$featured16x9ImageCloudURLFor1stArticle[0] = $site_url.'/wp-content/uploads/sites/'.$blog_id.'/'.$featured16x9ImageCloudURLFor1stArticle[0];\n\t\t}\n\t\t\n\t\treturn $featured16x9ImageCloudURLFor1stArticle[0];\n\t}\n\telse {\n\t\treturn \"\";\n\t}\t\t\n}", "function updated_category_image ( $term_id, $tt_id ) {\n if( isset( $_POST['category-image-id'] ) && '' !== $_POST['category-image-id'] ){\n $image = $_POST['category-image-id'];\n update_term_meta ( $term_id, 'category-image-id', $image );\n } else {\n update_term_meta ( $term_id, 'category-image-id', '' );\n }\n }", "function pd_img_unautop($imgWrap)\n{\n $imgWrap = preg_replace('/<p>\\\\s*?(<a .*?><img.*?><\\\\/a>|<img.*?>)?\\\\s*<\\\\/p>/s', '<figure>$1</figure>', $imgWrap);\n return $imgWrap;\n}", "public static function cover($id)\n {\n return 'https://i.ytimg.com/vi/'.$id.'/hqdefault.jpg';\n }", "function dizzy_featured_ogimg () { \n\t $thumb = get_the_post_thumbnail($post->ID);\n\t\t$pattern= \"/(?<=src=['|\\\"])[^'|\\\"]*?(?=['|\\\"])/i\";\n\t\tpreg_match($pattern, $thumb, $thePath);\n\t\t$theSrc = $thePath[0];\n}", "function cardealer_filter_ptags_on_images($content){\r\n\treturn preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\r\n}", "function _tts_preprocess_p_img_big(&$vars){\n $alt = (isset($vars['content']['field_img'][0]['#item']['title'])\n && !empty($vars['content']['field_img'][0]['#item']['title'])\n ? $vars['content']['field_img'][0]['#item']['title'] . ' - '\n : '') . 'Serramenti Torino';\n $vars['content']['field_img'][0]['#item']['alt'] = $alt;\n \n \n if ($vars['view_mode'] == 'full'){\n $vars['content']['field_img'] = array(\n '#prefix' => '<div class=\"wrapper-p-img margin-b-1\">',\n '#suffix' => '</div>',\n 'data' => $vars['content']['field_img'][0],\n );\n\n //_tts_add_fancy_svg($vars);\n\n if (isset($vars['content']['field_img']['data']['#item']['title']) && $vars['content']['field_img']['data']['#item']['title']!== ''){\n $title = $vars['content']['field_img']['data']['#item']['title'];\n $vars['content']['field_img']['desc'] = array(\n '#prefix' => '<div class=\"margin-t-05 margin-sm-h-2\"><p class=\"small\">',\n '#suffix' => '</p></div>',\n '#markup' => $title,\n '#weight' => 2,\n );\n }\n }\n}", "function be_schema_default_image($graph_piece)\n{\n $use_default = false;\n if (has_post_thumbnail()) {\n $image_src = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');\n if (empty($image_src[1]) || 1199 > $image_src[1])\n $use_default = true;\n } else {\n $use_default = true;\n }\n\n if ($use_default) {\n $graph_piece['image']['@id'] = home_url('#logo');\n }\n return $graph_piece;\n}", "public function actionUnpublishNoImg()\n {\n $imgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR . 'web';\n\n $civ = CatalogItemVariant::find()\n ->where(['published' => 1])\n ->asArray()\n ->all();\n\n $unPublish = $foundImg = $notFound = [];\n $foundImg['ru'] = $foundImg['uk'] = $foundImg['en'] = 0;\n $notFound['ru'] = $notFound['uk'] = $notFound['en'] = 0;\n $unPublish['ru'] = $unPublish['uk'] = $unPublish['en'] = 0;\n foreach ($civ as $iv) {\n echo 'Checking id #' . $iv['id'] . '; lang: ' . $iv['lang'] . '; img: ' . $iv['img_url'] . PHP_EOL;\n $imgPathFull = $imgDir . $iv['img_url'];\n if (file_exists($imgPathFull)) {\n $foundImg[$iv['lang']] += 1;\n } else {\n $notFound[$iv['lang']] += 1;\n //\n $oCiv = CatalogItemVariant::find()\n ->where([\n 'id' => intval($iv['id']), \n 'published' => 1,\n ])\n ->one();\n if (!empty($oCiv)) {\n $oCiv->published = 0;\n if ($oCiv->save()) {\n $unPublish[$iv['lang']] += 1;\n echo 'Saved ' . print_r($oCiv, 1) . PHP_EOL;\n } else {\n echo 'Error saving ' . print_r($oCiv, 1) . PHP_EOL;\n }\n } else {\n echo 'Can`t find item by id ' . var_export(intval($iv['id']), 1) . PHP_EOL;\n continue;\n }\n }\n }\n echo 'Found images: ' . var_export($foundImg, 1) . '. Not found images: ' . var_export($notFound, 1) . '. Unpublished: ' . var_export($unPublish, 1) . PHP_EOL;\n }", "public function removeCoverAction(){\r\n\t\t$chanel_id = $this->_getParam('chanel_id', '0');\r\n\t\tif ($chanel_id == 0)\r\n\t\t\treturn;\r\n\t\t$chanel = Engine_Api::_()->getItem('sesvideo_chanel', $chanel_id);\t\t\r\n\t\tif(!$chanel)\r\n\t\t\treturn;\r\n\t\tif(isset($chanel->cover_id) && $chanel->cover_id>0){\r\n\t\t\t$im = Engine_Api::_()->getItem('storage_file', $chanel->cover_id);\r\n\t\t\t$chanel->cover_id = 0;\r\n\t\t\t$chanel->save();\r\n\t\t\t$im->delete();\r\n\t\t}\r\n\t\techo \"true\";die;\r\n\t}", "private function setImagesAbsolute(string $markdown, array $params = null) : string\n {\n $aeFiles = \\MarkNotes\\Files::getInstance();\n $aeFunctions = \\MarkNotes\\Functions::getInstance();\n $aeSettings = \\MarkNotes\\Settings::getInstance();\n\n $folderNote = str_replace('/', DS, rtrim($aeSettings->getFolderDocs(true), DS).'/');\n\n if (isset($params['filename'])) {\n $folderNote .= rtrim(dirname($params['filename']), DS).DS;\n\n // Get the full path to this note\n $url = rtrim($aeFunctions->getCurrentURL(false, false), '/').'/'.rtrim($aeSettings->getFolderDocs(false), DS).'/';\n $folder = $url.str_replace(DS, '/', dirname($params['filename'])).'/';\n\n $imgTag = '\\!\\[(.*)\\]\\((.*)\\)';\n\n // Get the list of images i.e. tags like : ![My nice image](.images/local.jpg)\n // and check if the file is local (in a subfolder of the note). If so, convert the relative\n // ![My nice image](.images/local.jpg) to an absolute path\n // ![My nice image](http://localhost/folder/subfolder/.images/local.jpg)\n\n $matches = array();\n if (preg_match_all('/'.$imgTag.'/', $markdown, $matches)) {\n $j = count($matches[0]);\n for ($i = 0; $i <= $j; $i++) {\n if (isset($matches[2][$i])) {\n // Add the fullpath only if the link to the image doesn't contains yet\n // an hyperlink\n if (strpos($matches[2][$i], '//') === false) {\n $filename = $folderNote.str_replace('/', DS, $matches[2][$i]);\n if ($aeFiles->fileExists($filename)) {\n $markdown = str_replace($matches[0][$i], '!['.$matches[1][$i].']('.$folder.$matches[2][$i].')', $markdown);\n } else {\n /*<!-- build:debug -->*/\n if ($aeSettings->getDebugMode()) {\n $aeDebug = \\MarkNotes\\Debug::getInstance();\n $aeDebug->here('DEBUG MODE --- '.$filename.' NOT FOUND');\n }\n /*<!-- endbuild -->*/\n }\n }//if (strpos('//', $matches[2][$i])===FALSE)\n }\n }\n } // if (preg_match_all('/'.$imgTag.'/'\n\n // And process <img> tags\n $imgTag = '<img (.*)src *= *[\"\\']([^\"\\']+[\"\\']*)[\\'|\"]';\n\n $matches = array();\n if (preg_match_all('/'.$imgTag.'/', $markdown, $matches)) {\n $j = count($matches);\n for ($i = 0; $i <= $j; $i++) {\n // Derive the image fullname ($folderNote.str_replace('/',DS,$matches[1][$i]))) and check if the file exists\n if (isset($matches[2][$i])) {\n\n // Add the fullpath only if the link to the image doesn't contains yet\n // an hyperlink\n if (strpos($matches[2][$i], '//') === false) {\n $filename = $folderNote.str_replace('/', DS, $matches[2][$i]);\n\n if ($aeFiles->fileExists($filename)) {\n $img = $folder.$matches[2][$i];\n $markdown = str_replace($matches[0][$i], '<img src=\"'.$img.'\" '.$matches[1][$i], $markdown);\n }\n }\n }\n }\n } // if (preg_match_all('/'.$imgTag.'/'\n } // if (isset($params['filename']))\n\n return $markdown;\n }", "public function rewriteImgAssistTags($entity, $field = 'body') {\n\n $body = '';\n $language = '';\n\n if (is_array($entity->$field)) {\n foreach ($entity->$field as $language => $values) {\n // Sometimes body doesn't have [und] index\n if (isset($values[0])) {\n $body = $values[0]['value'];\n break;\n }\n }\n\n // Quickly skip any non-candidates\n if (!stristr($body, '[img_assist')) {\n return;\n }\n // Pass full img tags into the callback\n $new_body = preg_replace_callback('|\\[img_assist[^\\]]*\\]|i', \"self::replaceCallback\", $body);\n $entity->{$field}[$language][0]['value'] = $new_body;\n\n // teasers too\n if (isset($entity->{$field}[$language][0]['summary'])) {\n if (stristr($entity->{$field}[$language][0]['summary'], '[img_assist')) {\n $summary = $entity->{$field}[$language][0]['summary'];\n $new_summary = preg_replace_callback('|\\[img_assist[^\\]]*\\]|i', \"self::replaceCallback\", $summary);\n $entity->{$field}[$language][0]['summary'] = $new_summary;\n }\n }\n }\n\n\n }", "public function cover_image() {\n return $this->morphOne('App\\File', 'fileable')->where('category', 'cover');\n }", "public function before_publish( $new_id ) {\n\n\t\tglobal $src_hash;\n\n\t\tforeach( $this->slides as $slide_index => $slide ) {\n\n\t\t\t$url = $slide['url'];\n\t\t\t$caption = $slide['caption'];\n\t\t\t$alt = $slide['alt'];\n\n\t\t\tif( ! $url ){\n\t\t\t\t$this->slides[ $slide_index ]['media_id'] = $this->fallback_id;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif( array_key_exists( $slide['url'], $src_hash ) ){\n\t\t\t\t$this->slides[ $slide_index ]['media_id'] = $src_hash[ $slide['url'] ];\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Download image\n\t\t\t$tmp = download_url( $url );\n\t\t\t$file_array = array(\n\t\t\t 'name' => basename( $url ),\n\t\t\t 'tmp_name' => $tmp\n\t\t\t);\n\t\t\t\n\t\t\t// Check for download errors\n\t\t\tif ( is_wp_error( $tmp ) ) {\n\t\t\t @unlink( $file_array['tmp_name'] );\n\t\t\t\t$this->slides[ $slide_index ]['media_id'] = $this->fallback_id;\n\t\t\t\t$src_hash[ $slide['url'] ] = $this->fallback_id;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Include caption if specified (WP stores this in the post_excerpt field)\n\t\t\t$post_data = array(\n\t\t\t\t'post_excerpt' => $caption,\n\t\t\t);\n\t\t\t\n\t\t\t// Create media post and attach to $new_id\n\t\t\t$media_id = media_handle_sideload( $file_array, $new_id, null, $post_data );\n\t\t\t\n\t\t\t// Check for handle sideload errors.\n\t\t\tif ( is_wp_error( $media_id ) ) {\n\t\t\t @unlink( $file_array['tmp_name'] );\n\t\t\t $this->slides[ $slide_index ]['media_id'] = $this->fallback_id;\n\t\t\t\t$src_hash[ $slide['url'] ] = $this->fallback_id;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\t$this->slides[ $slide_index ]['media_id'] = $media_id;\n\t\t\t\t$src_hash[ $slide['url'] ] = $media_id;\n\t\t\t}\n\n\t\t\t// Add alt text if specified.\n\t\t\tif( $alt ) {\n\t\t\t\tupdate_post_meta( $media_id, '_wp_attachment_image_alt', $alt );\n\t\t\t}\n\n\t\t}\n\n\t}", "function quadro_filter_ptags_on_portfimages($content) {\n\tglobal $post;\n\tif ( $post->post_type != 'quadro_portfolio') return $content;\n\treturn preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "public function getCover()\n {\n return $this->makeEntity(CoverImage::class, 'cover');\n }", "private function replaceImage(&$string, $match)\n\t{\n\t\tif (!empty($match['link_start']) || !empty($match['link_end']))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// get the image attributes\n\t\t$image_attributes = $this->helpers->get('link')->getLinkAttributeList($match['image']);\n\n\t\tif (!isset($image_attributes->class) || !isset($image_attributes->src))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$image_attributes->class = explode(' ', $image_attributes->class);\n\n\t\tif (!array_intersect($image_attributes->class, $this->params->classnames_images))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$image_attributes->class = implode(' ', array_diff($image_attributes->class, $this->params->classnames_images));\n\n\t\t$image = (object) array(\n\t\t\t'path' => $this->helpers->get('file')->getFilePath($image_attributes->src),\n\t\t\t'folder' => $this->helpers->get('file')->getFilePath($image_attributes->src),\n\t\t\t'image' => $this->helpers->get('file')->getFileName($image_attributes->src),\n\t\t\t'thumbnail' => $this->helpers->get('file')->getFileName($image_attributes->src),\n\t\t);\n\t\tunset($image_attributes->src);\n\n\t\t$params = (object) array(\n\t\t\t'thumbsuffix' => $this->params->gallery_thumb_suffix,\n\t\t);\n\n\t\tif (\n\t\t\t!$this->helpers->get('file')->isExternal($image->folder . '/' . $image->image)\n\t\t\t&& $check = $this->helpers->get('image')->getImageObject($image->folder, $image->image, $params)\n\t\t)\n\t\t{\n\t\t\t$image = $check;\n\t\t}\n\n\t\t$attributes = new stdClass;\n\t\t$data = array();\n\n\t\t$attributes->href = $image->folder . '/' . $image->image;\n\t\t$attributes->class = $this->params->class . ' nn_modals_image';\n\n\t\t$this->helpers->get('image')->setImageDataFromDataFile($image->folder, $data);\n\t\t$this->helpers->get('image')->setImageDataAtribute('title', $data, $image->image);\n\t\t$this->helpers->get('image')->setImageDataAtribute('description', $data, $image->image);\n\n\t\t$data['title'] = isset($image_attributes->title) ? $image_attributes->title : (isset($image_attributes->alt) ? $image_attributes->alt : '');\n\t\tif (!$data['title'] && $this->params->auto_titles)\n\t\t{\n\t\t\t// set the auto title\n\t\t\t$data['title'] = $this->helpers->get('file')->getTitle($image->image, $this->params->title_case);\n\t\t}\n\t\t$data['group'] = $this->params->auto_group_id;\n\n\t\t$link = array();\n\n\t\t$link[] = $this->helpers->get('link')->buildLink($attributes, $data);\n\t\t$link[] = '<img src=\"' . $image->folder . '/' . $image->thumbnail . '\"' . $this->helpers->get('data')->flattenAttributeList($image_attributes) . '>';\n\t\t$link[] = '</a>';\n\n\t\t$link = implode('', $link);\n\n\t\t$this->replaceOnce($match['image'], $link, $string);\n\t}", "function cilikke($src, $dest, $new_width) {\r\n\t$info = getimagesize($src);\r\n\t$mime = $info[\"mime\"];\r\n\tif( $mime == 'image/jpeg' ) $source_image = imagecreatefromjpeg($src);\r\n\telseif( $mime == 'image/png' ) $source_image = imagecreatefrompng($src);\r\n\t$width = imagesx($source_image);\r\n\t$height = imagesy($source_image);\r\n\t$new_height = floor($height * ($new_width / $width));\r\n\tif($new_width < $width && $new_height < $height)\r\n\t{\r\n\t\t$virtual_image = imagecreatetruecolor($new_width, $new_height);\t\r\n\t\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\r\n\t\timagejpeg($virtual_image, $dest);\r\n\t}else\r\n\t\tcopy($src, $dest);\r\n}", "function wpgrade_filter_ptags_on_images($content){\r\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\r\n}", "function podcast_pro_featured_image( $content ) {\r\n\r\n\tif ( ! is_singular( 'post' ) || ! has_post_thumbnail() ) {\r\n\t\treturn $content;\r\n\t}\r\n\r\n\t$image = '<div class=\"featured-image\">';\r\n\t$image .= get_the_post_thumbnail( get_the_ID(), 'feature-large' );\r\n\t$image .= '</div>';\r\n\r\n\treturn $image . $content;\r\n}", "function get_correct_image_link_thumb($thumb_id='', $size='large'){\n\n if ($thumb_id != '') {\n $imagepermalink = wp_get_attachment_image_src($thumb_id, $size, true);\n } else {\n $imagepermalink[0] = get_stylesheet_directory_uri() . '/images/cover.jpg';\n }\n return $imagepermalink[0];\n}", "function theme_filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function po_filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function baindesign324_filter_ptags_on_images($content){\n\t return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n\t}", "function migrate_books_build_new_image($source_repository, $destination_repository, $source_pid, $destination_dir_pid) {\n\n $source_image_object = $source_repository->getObject($source_pid);\n $new_image_object = $destination_repository->constructObject('islandora');\n $new_image_object->label = $source_image_object->label;\n foreach ($source_image_object as $dsid => $content) {\n $new_image_object->ingestDatastream($content);\n }\n $new_image_object->relationships->changeObjectID($new_image_object->id);\n $new_image_object->relationships->remove(FEDORA_RELS_EXT_URI, 'isMemberOfCollection', NULL);\n $new_image_object->relationships->add(FEDORA_RELS_EXT_URI, 'isMemberOfCollection', $destination_dir_pid);\n $ingested_object = islandora_add_object($new_image_object);\n return $ingested_object->id;\n}", "public function cover(){\n\treturn '/images/products/'.$this->path;\n}", "public function before_publish( $new_id ) {\n\n\t\tglobal $src_hash;\n\n\t\tif( ! $this->url ){\n\t\t\t$this->media_id = $this->fallback_id;\n\t\t\treturn;\n\t\t}\n\n\t\tif( array_key_exists( $this->url, $src_hash ) ){\n\t\t\t$this->media_id = $src_hash[ $this->url ];\n\t\t\treturn;\n\t\t}\n\n\t\t// Download image\n\t\t$tmp = download_url( $this->url );\n\t\t$file_array = array(\n\t\t 'name' => basename( $this->url ),\n\t\t 'tmp_name' => $tmp\n\t\t);\n\t\t\n\t\t// Check for download errors\n\t\tif ( is_wp_error( $tmp ) ) {\n\t\t @unlink( $file_array[ 'tmp_name' ] );\n\t\t $this->media_id = $this->fallback_id;\n\t\t\t$src_hash[ $this->url ] = $this->fallback_id;\n\t\t\treturn;\n\t\t}\n\n\t\t// Include caption if specified (WP stores this in the post_excerpt field)\n\t\t$post_data = array(\n\t\t\t'post_excerpt' => $this->caption,\n\t\t);\n\t\t\n\t\t// Create media post and attach to $new_id\n\t\t$media_id = media_handle_sideload( $file_array, $new_id, null, $post_data );\n\t\t\n\t\t// Check for handle sideload errors.\n\t\tif ( is_wp_error( $media_id ) ) {\n\t\t @unlink( $file_array['tmp_name'] );\n\t\t $this->media_id = $this->fallback_id;\n\t\t\t$src_hash[ $this->url ] = $this->fallback_id;\n\t\t\treturn;\n\t\t} else {\n\t\t\t$this->media_id = $media_id;\n\t\t\t$src_hash[ $this->url ] = $media_id;\n\t\t}\n\n\t\t// Add alt text if specified.\n\t\tif( $this->alt ) {\n\t\t\tupdate_post_meta( $media_id, '_wp_attachment_image_alt', $this->alt );\n\t\t}\n\n\t}", "function barjeel_autoset_featured_img() {\n\n $post_thumbnail = barjeel_post_thumbnail_check();\n if ($post_thumbnail == true ){\n return the_post_thumbnail();\n }\n if ($post_thumbnail == false ){\n $image_args = array(\n 'post_type' => 'attachment',\n 'numberposts' => 1,\n 'post_mime_type' => 'image',\n 'post_parent' => $post->ID,\n 'order' => 'desc'\n );\n $attached_image = get_children( $image_args );\n if ($attached_image) {\n foreach ($attached_image as $attachment_id => $attachment) {\n set_post_thumbnail($post->ID, $attachment_id);\n }\n return the_post_thumbnail();\n } else { return \" \";}\n }\n }", "function swap_image($msg){\n\n\tif(preg_match(\"/\\[img ALT=('|\\\")(.*?)('|\\\")\\]([^\\[]*)\\[\\/img\\]/i\",$msg)){\n\t\t$msg=preg_replace(\"/\\[img ALT=('|\\\")(.*?)('|\\\")\\]([^\\[]*)\\[\\/img\\]/i\",\"$2\",$msg);\n\t}\n\nreturn $msg;\n}", "function custom_filter_ptags_on_images($content){\n\treturn preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function url_cover(string $url): string\n{\n $default = '/wp-content/uploads/covers/';\n $covers = getOption('folder_covers', $default);\n return \\get_site_url() . $covers . $url;\n}", "private function thumbnailStuffed($cover, $newwidth, $newheight, $thumb_path)\n {\n [$width, $height] = getimagesize($cover);\n $thumb = Utilities::transparentImage($newwidth, $newheight);\n $source = imagecreatefromjpeg($cover);\n $dstx = 0;\n $dsty = 0;\n $maxwh = max([$width, $height]);\n if ($height > $width) {\n $diff = $maxwh - $width;\n $dstx = (int) $diff/2;\n } else {\n $diff = $maxwh - $height;\n $dsty = (int) $diff/2;\n }\n $inbetween = $this->transparentImage($maxwh, $maxwh);\n imagecopy($inbetween, $source, $dstx, $dsty, 0, 0, $width, $height);\n imagecopyresampled($thumb, $inbetween, 0, 0, 0, 0, $newwidth, $newheight, $maxwh, $maxwh);\n $created = imagepng($thumb, $thumb_path);\n imagedestroy($thumb);\n imagedestroy($inbetween);\n imagedestroy($source);\n return $created;\n }", "function filter_ptags_on_images($content){\n$content = preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\nreturn preg_replace('/<p>\\s*(<iframe .*>*.<\\/iframe>)\\s*<\\/p>/iU', '\\1', $content);\n}", "function replaceIMG($html)\r\n\t{\r\n\t\t$iStart = stripos($html,\"<img\");\r\n\t\twhile((string)$iStart != null) //string typecast to handle \"0\" which equates to FALSE in PHP...\r\n\t\t{\r\n\t\t\t//get entire IMG tag\r\n\t\t\t$iEnd = stripos($html,\">\",$iStart)+1;\r\n\t\t\t$imgTag = substr($html,$iStart,($iEnd-$iStart));\r\n\t\t\t\r\n\t\t\t//get src\r\n\t\t\t$iSrcStart = stripos($imgTag,\"src=\");\r\n\t\t\tif(substr($imgTag,($iSrcStart+4),1) == \"'\")\r\n\t\t\t{\r\n\t\t\t\t//single quote\r\n\t\t\t\t$iSrcEnd = stripos($imgTag,\"'\",$iSrcStart+5);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//double quote\r\n\t\t\t\t$iSrcEnd = stripos($imgTag,'\"',$iSrcStart+5);\r\n\t\t\t}\r\n\t\t\t$imgSrc = substr($imgTag,$iSrcStart+5,($iSrcEnd-($iSrcStart+5)));\r\n\t\t\t\r\n\t\t\t//get alt\r\n\t\t\t$iAltStart = stripos($imgTag,\"alt=\");\r\n\t\t\tif($iAltStart != null)\r\n\t\t\t{\r\n\t\t\t\tif(substr($imgTag,($iAltStart+4),1) == \"'\")\r\n\t\t\t\t{\r\n\t\t\t\t\t//single quote\r\n\t\t\t\t\t$iAltEnd = stripos($imgTag,\"'\",$iAltStart+5);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t//double quote\r\n\t\t\t\t\t$iAltEnd = stripos($imgTag,'\"',$iAltStart+5);\r\n\t\t\t\t}\r\n\t\t\t\t$imgAlt = substr($imgTag,$iAltStart+5,($iAltEnd-($iAltStart+5)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//replace HTML\r\n\t\t\tif((string)stripos($imgSrc,\"scripts/CLEditor/images/icons/\") == null) //exclude icons from rich text editor\r\n\t\t\t{\r\n\t\t\t\t$replacementHTML = \"<div class='table comicborder popupshadow-margin'><div class='table-row'><div class='table-cell'><a href='\" . $imgSrc . \"'>\" . $imgTag . \"</a></div></div>\";\r\n\t\t\t\tif($iAltStart != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t$replacementHTML = $replacementHTML . \"<div class='table-row'><div class='table-cell comicimagecaption'>\" . $imgAlt . \"</div></div>\";\r\n\t\t\t\t}\r\n\t\t\t\t$replacementHTML = $replacementHTML . \"</div>\";\r\n\t\t\t\t$html = substr_replace($html,$replacementHTML,$iStart,($iEnd-$iStart));\r\n\t\t\t\t\r\n\t\t\t\t//prep next loop\r\n\t\t\t\t$iStart = stripos($html,\"<img\",($iStart+strlen($replacementHTML)));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//prep next loop\r\n\t\t\t\t$iStart = stripos($html,\"<img\",($iStart+strlen($imgTag)));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $html;\r\n\t}", "function filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "protected function onImageText() {\n\t\tif (!$this->post = $this->loadPost()) {\n\t\t\treturn null;\n\t\t}\n\t\t$titles = post('ititle');\n\t\t$descriptions = post('idescription');\n\n\t\tforeach ($this->post->featured_images()->get() as $image) {\n\n\t\t\t$image->title = $titles[$image->id];\n\t\t\t$image->description = $descriptions[$image->id];\n\t\t\t$image->save();\n\t\t}\n\t}", "private function reformatData(): void\n {\n if($this->cover === \"null\") {\n $this->merge([ \"cover\"=> null ]);\n }\n }", "public function store($art)\n\t{\n\t\tstatic::globalXssClean();\n\t\t\n\t\t$input = Input::only('description');\n\t\t$validation = Validator::make($input, ['description' => 'alpha_num']);\n\n\t\t$crop = Input::get('coords');\n\t\t$file = (Input::get('dataUrl') == \"\")? file_get_contents(Input::get('srcUrl')): base64_decode(Input::get('dataUrl'));\n\n\t\tif ($validation->passes() && $crop != \"\" && $file != \"\")\n\t\t{\n\t\t\t$path = 'img/article/'.$art;\n\t\t\tif(!File::isDirectory($path)) File::makeDirectory($path);\n\n\t\t\t$crop = json_decode($crop, true);\t\n\n\t\t\t$orig = imagecreatefromstring($file);\n\t\t\t$big = ImageCreateTrueColor($crop['w'], $crop['h']);\n\t\t\t$new_thumbx=$crop['w'] * 0.4;\n\t\t\t$new_thumby=$crop['h'] * 0.4;\n\t\t\t$thumb = ImageCreateTrueColor($new_thumbx, $new_thumby);\n\n\t\t\t$b_path = $path.'/'.uniqid().'.jpg';\n\t\t\timagecopyresampled($big, $orig, 0, 0, $crop['x'], $crop['y'], $crop['w'], $crop['h'], $crop['w'], $crop['h']);\n\t\t\timagejpeg($big, $b_path, 80);\n\n\t\t\t$t_path = $path.'/'.uniqid().'.jpg';\n\t\t\timagecopyresampled($thumb, $big, 0, 0, 0, 0, $new_thumbx, $new_thumby, $crop['w'], $crop['h']);\n\t\t\timagejpeg($thumb, $t_path, 40);\n\n\t\t\timagedestroy($big); // release from memory\n\t\t\timagedestroy($thumb); // release from memory\n\n\t\t\t$img = new Image;\n\t\t\t$img->id = uniqid();\n\t\t\t$img->article_id = $art;\n\t\t\t$img->big = $b_path;\n\t\t\t$img->thumb = $t_path;\n\t\t\t$img[Config::get('app.locale')] = Input::get('description');\n\t\t\t$img->save();\n\n\t\t\treturn Redirect::route('articles.images.index', $art);\n\t\t}\n\n\t\treturn Redirect::route('articles.images.create', $art)\n\t\t\t->withInput()\n\t\t\t->withErrors($validation);\n\t}", "function opensky_islandora_solr_results_alter(&$object_results, $query_processor) {\n\n $default_path = drupal_get_path('module', 'islandora_solr') . '/images/defaultimg.png';\n foreach ($object_results as $object_index => $object_result) {\n if (isset ($object_results[$object_index]['thumbnail_url']) && $object_results[$object_index]['thumbnail_url'] == $default_path) {\n if (strpos($object_results[$object_index]['content_models'][0], 'citationCModel') !== false) {\n $object_results[$object_index]['thumbnail_url'] = drupal_get_path('module', 'opensky') . '/images/BiblioCitOnly.png';\n }\n }\n }\n}", "function lazy_imgs($html, $id, $caption, $title, $align, $url, $size, $alt) {\n\n $imgNew = '<img data-original=\"' . $url . '\" ';\n $html = str_replace('<img ', $imgNew, $html);\n return $html;\n}", "function delArticleImage($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n /* you can itentify the article with $object->reference->ShopId */ \n}", "public function makeCover() {\n $this->autoRender = false;\n if ($this->request->is('ajax')) {\n $model = $this->request->data['model'];\n $this->{$model}->id = $this->request->data['id'];\n if (!$this->{$model}->exists()) {\n echo '404';\n } else {\n if ($this->{$model}->saveField('img_name', $this->request->data['cover'])) {\n echo '200';\n } else {\n echo '404';\n }\n }\n exit();\n }\n }", "public function update(Request $request, $id)\n {\n //Rules set for the form in order to be validated successfully\n $this->validate($request,\n [\n 'title' => 'required',\n 'body' => 'required',\n 'cover_image' => 'image | max:1999' //Restrictions for image: Must be image | can be null(empty) and max image size 1999KB\n ]);\n $post = Post::find($id);\n $post->title = $request->input('title');\n $post->body = $request->input('body');\n //Handle File upload\n if($request->hasFile('cover_image')){\n if($post->cover_image != 'noimage.jpg'){ //Delete if any image currently exists\n //delete the image\n unlink(public_path('cover_images/' . $post->cover_image));\n }\n //Get Filename with extension\n $filenameWithExt = $request->file('cover_image')->getClientOriginalName();\n //Get just filename\n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME); //PHP method to extract name without extension\n //Get Extension\n $extension = $request->file('cover_image')->getClientOriginalExtension();\n //Filename to store\n $fileNameToStore = $filename . '_' . time() . '.' . $extension; // Unique Filename\n //Upload the image: It will be stored in public > cover_images\n $path = $request->file('cover_image')->move('cover_images', $fileNameToStore);\n //For Laravel 5.3 or higher after creating symlink:\n //Upload the image: It will be stored in Storage > app > public > cover_imagess\n //$path = $request->file('cover_image')->storeAs('public/cover_images', $fileNameToStore);\n $post->cover_image = $fileNameToStore;\n\n }\n else{\n $fileNameToStore = 'noimage.jpg';\n $post->cover_image = $fileNameToStore;\n }\n $post->save();\n return redirect('/home')->with('success', 'Post Updated');\n }", "function mdwpfp_filter_ptags_on_images($content){\n\treturn preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function flatsome_enhanced_image_navigation( $url, $id ) {\n if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\n return $url;\n\n $image = get_post( $id );\n if ( ! empty( $image->post_parent ) && $image->post_parent != $id )\n $url .= '#main';\n\n return $url;\n}", "function spiplistes_corrige_img_pack ($img) {\n\tif(preg_match(\",^<img src='dist/images,\", $img)) {\n\t\t$img = preg_replace(\",^<img src='dist/images,\", \"<img src='../dist/images\", $img);\n\t}\n\treturn($img);\n}", "function getCover () {\n\n}", "public static function makeCover($sourceImg, $destImg)\r\n\t{\r\n\t\t$image = new Imagick($sourceImg);\r\n\t\t$w_orig = $image->getImageWidth();\r\n\t\t$h_orig = $image->getImageHeight();\r\n\t\t$w_new = SmIMAGE;\r\n\t\t$h_new = SmIMAGE * COVERASPECT;\r\n\t\t$ratio_orig = $h_orig / $w_orig;\r\n\r\n\t\tif($ratio_orig == COVERASPECT) {\r\n\t\t\t// Only resize\r\n\t\t\t$image->resizeImage($w_new, $h_new, Imagick::FILTER_CATROM, 1, TRUE);\r\n\t\t} else {\r\n\t\t\tif($ratio_orig >= COVERASPECT) {\r\n\t\t\t\t// Taller than target\r\n\t\t\t\t$w_temp = $w_new;\r\n\t\t\t\t$h_temp = $w_new * $ratio_orig;\r\n\t\t\t\t$w_center = 0;\r\n\t\t\t\t$h_center = ($h_temp - $h_new) / 2;\r\n\t\t\t} else {\r\n\t\t\t\t// Wider than target\r\n\t\t\t\t$w_temp = $h_new / $ratio_orig;\r\n\t\t\t\t$h_temp = $h_new;\r\n\t\t\t\t$w_center = ($w_temp - $w_new) / 2;\r\n\t\t\t\t$h_center = 0;\r\n\t\t\t}\r\n\t\t\t$image->resizeImage($w_temp, $h_temp, Imagick::FILTER_CATROM, 1, TRUE);\r\n\t\t\t$image->cropImage($w_new, $h_new, $w_center, $h_center);\r\n\t\t}\r\n\r\n\t\t$image->setImageCompression(Imagick::COMPRESSION_JPEG);\r\n\t\t$image->setImageCompressionQuality(80);\r\n\t\t$image->writeImage($destImg);\r\n\t\t$image->destroy();\r\n\t}", "function emc_enhanced_image_navigation( $url, $id ) {\r\n\tif ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\r\n\t\treturn $url;\r\n\r\n\t$image = get_post( $id );\r\n\tif ( ! empty( $image->post_parent ) && $image->post_parent != $id )\r\n\t\t$url .= '#main';\r\n\r\n\treturn $url;\r\n}", "function filter_ptags_on_images($content) {\n return preg_replace('/<p[^>]*>\\\\s*?(<a .*?><img.*?><\\\\/a>|<img.*?>)?\\\\s*<\\/p>/', '<div class=\"post-image\">$1</div>', $content);\n}", "function setFeaturedImage($post_id, $url)\n{\n $image_name = 'wp-nasa-image.jpg';\n $upload_dir = wp_upload_dir(); // Set upload folder\n $image_data = file_get_contents($url); // Get image data\n $unique_file_name = wp_unique_filename($upload_dir['path'], $image_name); // Generate unique name\n $filename = basename($unique_file_name); // Create image file name\n\n // Check folder permission and define file location\n if (wp_mkdir_p($upload_dir['path'])) {\n $file = $upload_dir['path'] . '/' . $filename;\n } else {\n $file = $upload_dir['basedir'] . '/' . $filename;\n }\n\n // Create the image file on the server\n file_put_contents($file, $image_data);\n\n // Check image file type\n $wp_filetype = wp_check_filetype($filename, null);\n\n // Set attachment data\n $attachment = array(\n 'post_mime_type' => $wp_filetype['type'],\n 'post_title' => sanitize_file_name($filename),\n 'post_status' => 'inherit'\n );\n\n // Create the attachment\n $attach_id = wp_insert_attachment($attachment, $file, $post_id);\n\n // Include image.php\n require_once(ABSPATH . 'wp-admin/includes/image.php');\n\n // Define attachment metadata\n $attach_data = wp_generate_attachment_metadata($attach_id, $file);\n\n // Assign metadata to attachment\n wp_update_attachment_metadata($attach_id, $attach_data);\n\n // And finally assign featured image to post\n set_post_thumbnail($post_id, $attach_id);\n}", "function bones_filter_ptags_on_images($content)\n{\n\treturn preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function filter_ptags_on_images($content) {\n $content = preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n return preg_replace('/<p>\\s*(<iframe .*>*.<\\/iframe>)\\s*<\\/p>/iU', '\\1', $content);\n}", "function filter_ptags_on_images($content) {\n $content = preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n return preg_replace('/<p>\\s*(<iframe .*>*.<\\/iframe>)\\s*<\\/p>/iU', '\\1', $content);\n}", "public function onContentAfterSave($context, $article)\n\t{\n # get the params\n $maxwidthpixels = (int)$this->params->get('maxwidthpixels', 1000);\n $maxheightpixels = (int)$this->params->get('maxheightpixels', 1000);\n $backupbigimage = (int)$this->params->get('backupbigimage', 1);\n $fixjpg = (int)$this->params->get('fixjpg', 1);\n $fixpng = (int)$this->params->get('fixpng', 1);\n $debug = (int)$this->params->get('debug', 0);\n \n if ($debug) {\n $this->app->enqueueMessage(\"plugin param, maxwidthpixels: \" . $maxwidthpixels );\n $this->app->enqueueMessage(\"plugin param, maxheightpixels: \" . $maxheightpixels );\n $this->app->enqueueMessage(\"plugin param, backupbigimage: \" . $backupbigimage );\n $this->app->enqueueMessage(\"plugin param, fixjpg: \" . $fixjpg );\n $this->app->enqueueMessage(\"plugin param, fixpng: \" . $fixpng );\n $this->app->enqueueMessage(\"function context: \" . $context );\n #$this->app->enqueueMessage(\"function introtext: \" . $article->introtext );\n #$this->app->enqueueMessage(\"function fulltext: \" . $article->fulltext );\n }\n \n # read in the text\n $article_text = $article->introtext . \" \" . $article->fulltext;\n\n # find any images in it, making an array\n $images_array = array();\n \n $doc = new DOMDocument();\n @$doc->loadHTML($article_text);\n\n $tags = $doc->getElementsByTagName('img');\n\n if ($debug) $this->app->enqueueMessage(\"tags: <pre>\" . print_r($tags, TRUE) . \"</pre>\" );\n\n foreach ($tags as $tag) {\n $images_array[] = $tag->getAttribute('src');\n }\n\n if ($debug) $this->app->enqueueMessage(\"images: <pre>\" . print_r($images_array, TRUE) . \"</pre>\" );\n if ($debug) $this->app->enqueueMessage(\"base: \" . $_SERVER['DOCUMENT_ROOT'] );\n \n # loop through the images \n foreach ($images_array as $i=>$image_fn) {\n \n $image_filepath = JPATH_ROOT . \"/\" . $image_fn;\n \n list($width, $height, $type) = getimagesize($image_filepath);\n\n if ($debug) $this->app->enqueueMessage(\"image \" . $i . \" fn: \" . $image_filepath );\n if ($debug) $this->app->enqueueMessage(\"image \" . $i . \" width: \" . $width );\n if ($debug) $this->app->enqueueMessage(\"image \" . $i . \" height: \" . $height );\n if ($debug) $this->app->enqueueMessage(\"image \" . $i . \" type: \" . $type );\n \n # check if it's too big\n if ($width > $maxwidthpixels OR $height > $maxheightpixels ) {\n\n # check if we're modifying this file type\n if ( ($type == 2 AND $fixjpg) OR ($type == 3 AND $fixpng) ) {\n \n # take a copy if backupbigimage is set\n if ( $backupbigimage ) {\n $backup_filename = $image_filepath . \"_backup\";\n if ( ($type) == 2 ) $backup_filename .= \".jpg\";\n if ( ($type) == 3 ) $backup_filename .= \".png\";\n copy($image_filepath, $backup_filename);\n if ($debug) $this->app->enqueueMessage(\"backed up image \" . $i . \" image as: \" . $backup_filename );\n }\n \n $JImage = new JImage($image_filepath);\n $JImage->resize($maxwidthpixels, $maxheightpixels, FALSE, $JImage::SCALE_INSIDE);\n $JImage->toFile($image_filepath, $type);\n if ($debug) $this->app->enqueueMessage(\"Image \" . $i . \" resized\");\n \n } else {\n if ($debug) $this->app->enqueueMessage(\"Image \" . $i . \" is type not to be resized\" );\n } \n } else {\n if ($debug) $this->app->enqueueMessage(\"Image \" . $i . \" is ok, not too big\" );\n }\n } \n }", "function add_toolkit_banner_img( $post ) {\t\n\t\t\n\t$post_thumbnail_id = get_post_thumbnail_id( $post );\n\t$banner_feat_img = wp_get_attachment_image_src($post_thumbnail_id, 'full' );\n\t\n\techo $banner_feat_img[0];\n\t\n\t//echo '<pre>';print_r( $wide_banner_img[0] );echo '</pre>';\n\t\n}", "function IMGalt_Content($content) {\n if($content):\n // encode content\n $content = mb_convert_encoding($content, 'HTML-ENTITIES', \"UTF-8\");\n $document = new \\DOMDocument();\n // Disable libxml errors and allow user to fetch error information as needed\n libxml_use_internal_errors(true);\n $document->loadHTML(utf8_decode($content), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);\n // get img tag from content\n $images = $document->getElementsByTagName('img');\n foreach ($images as $image) {\n // get orginal from srcset\n if( $image->hasAttribute('srcset') ):\n $orginal = '';\n // get srcset from content and explode to array\n $srcset = $image->getAttribute('srcset');\n $srcset_array = explode(\", \", $srcset);\n // get orginal size\n foreach ($srcset_array as $key => $value) {\n $single_srcset = explode(\" \", $value);\n $src_size = str_replace(\"w\", \"\", end($single_srcset));\n if(strpos($single_srcset[0], $src_size) !== false):\n // not the orginal size\n // $orginal .= $single_srcset[0] . ' ' . $src_size;\n else:\n $orginal .= $single_srcset[0];\n endif;\n }\n else:\n $orginal = strpos($image->getAttribute('src'), 'http') !== false ? $image->getAttribute('src') : get_option( 'siteurl' ) . $image->getAttribute('src');\n endif;\n // get orginal img id and call alt\n $id = attachment_url_to_postid($orginal);\n $alt = SELF::getAltAttribute($id);\n $image->removeAttribute('alt');\n $image->setAttribute('alt', $alt);\n }\n // output\n return $document->saveHTML();\n endif;\n }", "public function getCover()\n {\n return $this->cover;\n }", "public function getCover()\n {\n return $this->cover;\n }", "function calvero_enhanced_image_navigation( $url, $id ) {\n if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\n return $url;\n \n $image = get_post( $id );\n if ( ! empty( $image->post_parent ) && $image->post_parent != $id )\n $url .= '#main';\n \n return $url;\n}", "function wpfme_remove_img_ptags($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n}", "function bethel_add_image_to_stories() {\n\tglobal $post;\n\tif ($post && ($post->post_type=='bethel_stories' || $post->page_template == 'stories.php')) {\n\t\techo \"<div class=\\\"bethel-featured-image-wrapper\\\">\";\n\t\tthe_post_thumbnail('bethel_column_width');\n\t\t$caption = apply_filters ('bethel_featured_image_caption', '');\n\t\tif ($caption != '') {\n\t\t\techo \"<div class=\\\"bethel-featured-image-caption\\\">{$caption}</div>\";\n\t\t}\n\t\tdo_action ('bethel_after_featured_image');\n\t\techo \"</div>\";\n\t}\n}", "function setFeaturedImage($post_id, $url, $featuredImageTitle)\n{\n // with a new name based on the post_id\n $tmp_name = download_url($url);\n//\t\t\t\t\t\t\t\techo $tmp_name;\n $file_array['name'] = $post_id . '-thumb.jpg'; // new filename based on slug\n $file_array['tmp_name'] = $tmp_name;\n\n\n // If error storing temporarily, unlink\n if (is_wp_error($tmp_name)) {\n @unlink($file_array['tmp_name']);\n $file_array['tmp_name'] = '';\n }\n\n // do validation and storage . Make a description based on the Post_ID\n $attachment_id = media_handle_sideload($file_array, $post_id, 'Thumbnail for ' . $post_id);\n\n\n // If error storing permanently, unlink\n if (is_wp_error($attachment_id)) {\n $error_string = $attachment_id->get_error_message();\n @unlink($file_array['tmp_name']);\n return;\n }\n\n\n // Set as the post attachment\n $post_result = add_post_meta($post_id, '_thumbnail_id', $attachment_id, true);\n\n//\t\t\t\t\techo $post_result);\n\n}", "function thinkup_extract_images_filter( $tu_post ) {\n $regex = '/<img[^>]+>/i';\n\n if ( $tu_post->body && preg_match_all($regex, $tu_post->body, $matches) ) {\n\n $matches = $matches[0];\n\n foreach ( $matches as $match ) {\n\n $regex = '/(src)=(\"[^\"]*\")/i';\n if ( preg_match_all($regex, $match, $src, PREG_SET_ORDER) ) {\n $src = $src[0];\n $tu_post->images[] = trim($src[2], '\"');\n }\n\n }\n\n }\n\n return $tu_post;\n\n}", "public function cover($size = 'large', $alt = '') {\n\n\t\t\t$output = '';\n\n\t\t\t$id = get_post_thumbnail_id($this->post->ID);\n\t\t\t$meta = get_post_meta($id, '_wp_attachment_image_alt', true);\n\n\t\t\t$alt = empty($alt) ? $meta : $alt;\n\t\t\t$src = get_the_post_thumbnail_url($this->post->ID, $size);\n\n\t\t\t$file = empty($id) ? '' : get_file_path($id);\n\n\t\t\t$width = 1280;\n \t\t$height = round($width / get_image_ratio($file));\n\t\t\t\n\t\t\t$src = empty($src) ? esc_url(get_template_directory_uri()).'/img/img-default-640x320.png' : $src;\n\t\t\t$loader = esc_url(get_template_directory_uri()).'/img/img-loader.png';\n\n\t\t\t$output = '<figure class=\"cover-graphic\"><img src=\"'.$loader.'\" data-srcset=\"'.$src.' 1x, '.$src.' 2x\" class=\"lazyload\" width=\"'.$width.'\" height=\"'.$height.'\" alt=\"'.$alt.'\" /></figure>'.\"\\n\";\n\n\t\t\treturn $output;\n\t\t}", "function insert_image_src_rel_in_head() {\n\tglobal $post;\n\tif ( !is_singular() ) //if it is not a post or a page\n\t\treturn;\n\tif ( !has_post_thumbnail( $post->ID ) ) { //the post does not have featured image, use a default image\n\t\t//$default_image=\"http://example.com/image.jpg\"; //replace this with a default image on your server or an image in your media library\n\t\t$id = $post->ID;\n\t\t$youtube = get_post_meta( $id, 'v_link', true );\n\t\tif ( $youtube ) {\n\t\t\t$youtube_id1 = str_replace( 'https', \"\", $youtube );\n\t\t\t$youtube_id2 = str_replace( 'http', \"\", $youtube_id1 );\n\t\t\t$youtube_id = str_replace( '://www.youtube.com/watch?v=', \"\", $youtube_id2 );\n\t\t\t$default_image = \"http://img.youtube.com/vi/\" . $youtube_id . \"/0.jpg\";\n\t\t\techo '<meta property=\"og:image\" content=\"' . $default_image . '\"/>';\n\t\t}\n\t} else {\n\t\t$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );\n\t\t$desc_is = get_the_content( $post->ID );\n\t\techo '<meta property=\"og:image\" content=\"' . esc_attr( $thumbnail_src[ 0 ] ) . '\"/>';\n\t}\n\techo \"\";\n}", "function bethel_add_image_to_pages() {\n\tglobal $post;\n\tif ($post) {\n\t\t$image_id = get_post_thumbnail_id ($post->ID);\n\t\tif ($image_id) {\n\t\t\tif ($post->post_type != 'bethel_stories' && $post->page_template != 'stories.php') {\n\t\t\t\t$image = wp_get_attachment_image_src($image_id, 'bethel_supersize');\n\t\t\t\tif ($image) {\n\t\t\t\t\tif ($image[1] < 800) { //width\n\t\t\t\t\t\t$image[2] = round($image [2] / $image[1] * 800);\n\t\t\t\t\t}\n\t\t\t\t\t$image[2] = ($image[2] > 400) ? 400 : $image[2]; //height\n\t\t\t\t\techo \"<style type=\\\"text/css\\\">.entry-header { height: {$image[2]}px; background-image: url('{$image[0]}')}</style>\";\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\techo \"<style type=\\\"text/css\\\">\n .content .entry-header { margin-top: 75px; margin-top: 7.5rem }\n .content .entry-content { padding-top: 25px; padding-top: 2.5rem; }\n </style>\";\n\t\t}\n\t}\n}", "function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct){\n\t$cut = imagecreatetruecolor($src_w, $src_h); \n\n // copying relevant section from background to the cut resource \n\timagecopy($cut, $dst_im, 0, 0, $dst_x, $dst_y, $src_w, $src_h); \n\n // copying relevant section from watermark to the cut resource \n\timagecopy($cut, $src_im, 0, 0, $src_x, $src_y, $src_w, $src_h); \n\n // insert cut resource to destination image \n\timagecopymerge($dst_im, $cut, $dst_x, $dst_y, 0, 0, $src_w, $src_h, $pct); \n}", "public function testCollectionPersistNoAssignedGenerator()\n {\n $image1 = new ImageNotAssignedGenerator();\n $article = new Article();\n $article->id = '/test/article';\n $article->slideshow = [$image1];\n $this->updater->update($this->documentManager, $article);\n $this->documentManager->persist($article);\n $this->documentManager->flush();\n }", "function assembleCover(array $coverImages, $coverFileName, $size);", "function style_url_replace( $match ) {\r\n global $snoopy, $download_path, $downloaded_files;\r\n\r\n $relative = $match[1];\r\n $image = convertLink( $match[1] );\r\n\r\n if ( in_array( $image, array_keys( $downloaded_files ) ) ) {\r\n $filename = $downloaded_files[$image];\r\n } else {\r\n\r\n $ext = end( explode( '.', $image ) );\r\n $name = time();\r\n\r\n $snoopy->fetch( $image );\r\n\r\n $filename = $download_path.$name.'.'.$ext;\r\n $downloaded_files[$image] = $filename;\r\n\r\n // can we handle fwrite/fopen failures in a better way?\r\n $fp = @fopen( $filename, 'wb' );\r\n @fwrite( $fp, $snoopy->results, strlen( $snoopy->results ) );\r\n @fclose( $fp );\r\n }\r\n\r\n return 'url('.$filename.')';\r\n}", "public function setCover(SetAlbumCoverRequest $request): void\n\t{\n\t\t$request->album()->cover_id = $request->photo()?->id;\n\t\t$request->album()->save();\n\t}", "function blog_content_filter($content){\n\n if ( is_home() ){\n $content = preg_replace(\"/<img[^>]+\\>/i\", \"\", $content);\n }\n\n return $content;\n}", "function customTagReplace($html)\r\n\t{\r\n\t\t//ensure all tags can be found\r\n\t\t$html = str_replace(\"<IMG\",\"<img\",$html);\r\n\t\t$html = str_replace(\"SRC=\",\"src=\",$html);\r\n\t\t$html = str_replace(\"ALT=\",\"alt=\",$html);\r\n\t\t$html = str_replace(\"<SPAN\",\"<span\",$html);\r\n\r\n\t\t$html = replaceIMG($html); //CSS format img tags\r\n\t\t$html = youtubeEmbed($html); //custom include youtube embeds\r\n\t\t$html = apostrapheFix($html); //apostraphe fix for sql INSERT statements\r\n\t\treturn $html;\r\n\t}", "public function update(IdeaFormRequest $request, Idea $idea)\n {\n\n $idea->update([\n 'topic' => $request->topic,\n 'subtitle' => $request->subtitle,\n 'content' => $request->content,\n 'categorie_id' => $request->categorie,\n 'user_id' => auth()->user()->id,\n ]);\n\n if($request->cover)\n {\n $path = $request->file('cover')->store('uploads','public');\n\n \n $image = Image::create([\n 'path' => $path,\n 'user_id' => auth()->user()->id, \n ]);\n \n $image->attributeToIdea($idea);\n\n $idea->update([\n 'image_id' => $image->id\n ]);\n\n }\n \n\n $idea->categorise($request->categorie);\n\n notify()->success(\"Bravo ! Idée soumise à l'approbation de la communauté ...\");\n\n return redirect()->route('index');\n }", "private function process_img_tag(array $match) {\n global $CFG;\n\n $html = $match[0];\n $url = $match[3];\n $path = $match[4];\n\n // Don't process images that aren't in this site or don't have a relative path.\n if (stripos($url, $CFG->wwwroot) === false && substr($url, 0, 1) != '/') {\n return $html;\n }\n\n // TODO filearea based filter.\n\n $canonurl = $this->get_canonical_url($path);\n\n if ($canonurl === false) {\n return $html;\n }\n\n $html = str_replace($url, $canonurl, $html);\n return $html;\n }", "public function _convert_image_callback( $matches ) {\n\t\t$hugo_args['link'] = ! empty( $matches[1] ) ? $matches[1] : null;\n\t\t$hugo_args['src'] = ! empty( $matches[2] ) ? $matches[2] : null;\n\t\t$hugo_args['alt'] = ! empty( $matches[3] ) ? $matches[3] : null;\n\t\treturn $this->hugo_figure( $hugo_args );\n\t}", "public function store(Request $request)\n {\n $request->validate([\n 'title'=> 'required|max:255',\n 'content'=>'required|max:65000',\n 'category_id' => 'nullable|exists:categories,id',\n 'tags'=> 'nullable|exists:tags,id',\n 'cover'=>'nullable|image:10000'\n ]);\n\n\n $new_post_data = $request->all();\n\n //CREO SLUG:\n $new_slug = Str::slug($new_post_data['title'], '-');\n $base_slug= $new_slug;\n $existing_post_slug = Post::where('slug', '=', $new_slug)->first();\n $counter= 1;\n\n while($existing_post_slug) {\n $new_slug = $base_slug . '-' . $counter;\n $counter++;\n $existing_post_slug = Post::where('slug', '=', $new_slug)->first(); \n }\n\n $new_post_data['slug'] = $new_slug;\n\n // se c'è ed è settete un'immagine:\n if(isset($new_post_data['cover-img'])){\n\n $new_img_path=Storage::put('posts-cover', $new_post_data['cover-img']);\n\n if($new_img_path){\n $new_post_data['cover']= $new_img_path;\n }\n\n }\n\n $new_post = new Post();\n $new_post->fill( $new_post_data);\n $new_post->save();\n\n // TAGS:\n if (isset($new_post_data['tags']) && is_array($new_post_data['tags'])){\n $new_post->tags()->sync($new_post_data['tags']);\n }\n\n // Invio la mail all'amministratore per il nuovo post:\n Mail::to('[email protected]')->send(new NewPostAdminNotification());\n\n\n return redirect()->route('admin.posts.show', ['post' => $new_post->id]);\n \n }", "public static function replaceImages(&$docxTemplate)\n {\n $domRelsDocumentXMLRels = new DomDocument();\n $domRelsDocumentXMLRels->loadXML(self::$_relsDocumentXMLRels);\n\n $domRelationships = $domRelsDocumentXMLRels->getElementsByTagName(\n 'Relationship'\n );\n\n foreach ($domRelationships as $domRelationship) {\n $id = $domRelationship->getAttribute('Id');\n if (self::$placeholderImages[$id]) {\n $docxTemplate->addFile(\n self::$placeholderImages[$id],\n 'word/' . $domRelationship->getAttribute('Target')\n );\n }\n }\n }", "function doThis( $inEdit = false )\n {\n #echo \"eZNewsFlowerArticleViewer::doThis( \\$inEdit = $inEdit )<br />\\n\";\n $value = true;\n \n global $form_preview;\n \n $oldStory = $this->Item->story();\n $frontImage = $this->Item->getFrontImage();\n\n ereg( \"<price>(.+)</price>\" , $oldStory, $regs );\n $price = $regs[1];\n ereg( \"<name>(.+)</name>\" , $oldStory, $regs );\n $name = $regs[1];\n ereg( \"<description>(.+)</description>\" , $oldStory, $regs );\n $story = $regs[1];\n \n if( $frontImage )\n {\n $mainImage = new eZImage( $this->Item->getFrontImage(), 0 );\n\n $image = $mainImage->requestImageVariation( 250, 250 );\n\n $this->IniObject->set_var( \"this_image_id\", $mainImage->id() );\n $this->IniObject->set_var( \"this_image_name\", htmlspecialchars( $mainImage->caption() ) );\n $this->IniObject->set_var( \"this_image\", \"/\" . $image->imagePath() );\n $this->IniObject->set_var( \"this_image_width\", $image->width() );\n $this->IniObject->set_var( \"this_image_height\", $image->height() );\n $this->IniObject->set_var( \"this_image_caption\", $mainImage->caption() );\n $this->IniObject->parse( \"article_image\", \"article_image_template\" );\n $this->IniObject->set_var( \"this_picture\", $this->IniObject->get_var( \"article_image\" ) );\n $this->IniObject->set_var( \"image\", \"\" );\n $this->IniObject->set_var( \"article_image\", \"\" );\n $this->IniObject->set_var( \"upload_picture\", \"\" );\n $this->IniObject->parse( \"picture_uploaded\", \"picture_uploaded_template\" );\n }\n else\n {\n $this->IniObject->set_var( \"image\", \"\" );\n $this->IniObject->set_var( \"this_picture\", \"\" );\n $this->IniObject->set_var( \"picture_uploaded\", \"\" );\n $this->IniObject->parse( \"upload_picture\", \"upload_picture_template\" );\n $this->IniObject->set_var( \"article_image\", \"\" );\n }\n\n if( $inEdit == true )\n {\n $this->IniObject->set_var( \"this_price\", $price );\n $this->IniObject->set_var( \"this_name\", $name );\n $this->IniObject->set_var( \"this_description\", $story );\n }\n else\n {\n $this->IniObject->set_var( \"this_price\", eZTextTool::nl2br( $price ) );\n $this->IniObject->set_var( \"this_name\", eZTextTool::nl2br( $name ) );\n $this->IniObject->set_var( \"this_description\", eZTextTool::nl2br( $story ) );\n }\n $this->IniObject->set_var( \"this_id\", $this->Item->id() );\n $this->IniObject->set_var( \"this_name\", $this->Item->name() );\n $this->IniObject->set_var( \"this_createdat\", $this->Item->createdAtLocal( $this->IniObject->Language ) );\n\n $itemType = new eZNewsItemType( \"flowercategory\" );\n \n $thisParent = new eZNewsItem( $this->Item->getIsCanonical() );\n \n $url = $this->IniObject->GlobalIni->read_var( \"eZNewsMain\", \"URL\" );\n $this->IniObject->set_var( \"this_path\", $url );\n\n if( $thisParent->isCoherent() && $thisParent->itemTypeID() == $itemType->id() )\n {\n $this->IniObject->set_var( \"this_canonical_parent_id\", $thisParent->id() );\n $this->IniObject->set_var( \"this_canonical_parent_name\", $thisParent->name() );\n $this->IniObject->parse( \"go_to_parent\", \"go_to_parent_template\" );\n $this->IniObject->set_var( \"go_to_self\", \"\" );\n }\n else\n {\n $this->IniObject->set_var( \"this_canonical_parent_id\", \"\" );\n $this->IniObject->set_var( \"this_canonical_parent_name\", \"\" );\n $this->IniObject->set_var( \"go_to_parent\", \"\" );\n $this->IniObject->parse( \"go_to_self\", \"go_to_self_template\" );\n }\n return $value;\n }" ]
[ "0.56886244", "0.5684464", "0.55345225", "0.54437757", "0.5401605", "0.5308878", "0.52648693", "0.5253547", "0.52198404", "0.51747483", "0.5082961", "0.5053135", "0.5046917", "0.5046406", "0.5042434", "0.50301766", "0.50282484", "0.50225925", "0.49987325", "0.49762765", "0.49712786", "0.49682036", "0.49498647", "0.49392635", "0.49332717", "0.4913752", "0.49035415", "0.48873886", "0.48868263", "0.48785377", "0.4878315", "0.48763114", "0.48754442", "0.48681527", "0.4865298", "0.48527688", "0.48439336", "0.48341554", "0.48284203", "0.48280302", "0.4822424", "0.4815776", "0.48078996", "0.48064947", "0.47861996", "0.47850785", "0.47830367", "0.47802728", "0.4777122", "0.47642508", "0.47618613", "0.47618613", "0.47618613", "0.47618613", "0.47618613", "0.47618613", "0.4746526", "0.4743545", "0.47204894", "0.47135803", "0.47099763", "0.47096884", "0.47083402", "0.47067678", "0.46990597", "0.4696803", "0.469542", "0.46892118", "0.46830156", "0.46707115", "0.46673444", "0.46667534", "0.4658094", "0.46561822", "0.46561822", "0.46547118", "0.46546668", "0.46528867", "0.46482554", "0.46482554", "0.46464476", "0.4644277", "0.46396828", "0.46390328", "0.46377745", "0.46347538", "0.46332556", "0.46288398", "0.4626626", "0.4625128", "0.46228144", "0.46180266", "0.46119806", "0.46099335", "0.46089512", "0.46055293", "0.46052676", "0.46027756", "0.46011874", "0.45899755", "0.45848995" ]
0.0
-1
Generates a URL from the given parameters.
protected function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH) { return $this->container->get('bfy_adapter.sf2_routing.url_generator')->generate($route, $parameters, $referenceType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateUrl($parameters = [])\n {\n $parameters = array_merge($this->getCurrentInput(), $parameters);\n\n\n // Grab the current URL\n $path = URL::getRequest()->path();\n\n return url($path . '/?' . http_build_query($parameters));\n }", "private function generate_url($params) {\n $s = ($_SERVER['HTTPS'] == 'on') ? 's' : '';\n $protocol = $this->strleft(strtolower($_SERVER['SERVER_PROTOCOL']), '/') . $s;\n $port = (($_SERVER['SERVER_PORT'] == '80' && $_SERVER['HTTPS'] != 'on') ||\n ($_SERVER['SERVER_PORT'] == '443' && $_SERVER['HTTPS'] == 'on')) ? \n '' : (':' .$_SERVER['SERVER_PORT']);\n $path = $this->strleft($_SERVER['REQUEST_URI'], '?');\n $parsed_params = '';\n $delm = '?';\n foreach (array_reverse($params) as $key => $val) {\n if (!empty($val)) {\n $parsed_key = $key[0] == '_' ? $key : '_' . $key;\n $parsed_params .= $delm . urlencode($parsed_key) . '=' . urlencode($val);\n $delm = '&';\n }\n }\n $cfg = rcmail::get_instance()->config->all();\n if ( $cfg['cas_webmail_server_name'] ) {\n $serverName = $cfg['cas_webmail_server_name'];\n } else {\n $serverName=$_SERVER['SERVER_NAME'];\n }\n return $protocol . '://' . $serverName . $port . $path . $parsed_params;\n }", "public static function buildUrl($parameters) {\n\t \n\t $url='';\n\t \n\t // set the base url\n\t if(isset($parameters['baseUrl'])) {\n\t $url .= $parameters['baseUrl'];\n\t unset($parameters['baseUrl']);\n\t } else {\n\t $url .= self::getBaseUrl();\n\t }\n\t \n\t // set the kiosk\n\t if(isset($parameters['kiosk'])) {\n\t $kiosk = $parameters['kiosk'];\n\t unset($parameters['kiosk']);\n\t } else {\n\t $kiosk = self::getKiosk();\n\t }\n\t if(!empty($kiosk)) {\n\t $url .= '/'.$kiosk;\n\t }\n\t \n\t // set the scope\n\t if(isset($parameters['scope'])) {\n\t $url .= '/'.$parameters['scope'];\n\t unset($parameters['scope']);\n\t } else {\n\t $url .= '/'.self::getScope();\n\t }\n\t \n\t if(isset($parameters['action'])) {\n\t $url .= '/'. $parameters['action'].'.do';\n\t unset($parameters['action']);\n\t } else {\n\t $url .= '/'. self::getAction().'.do';\n\t }\n\t \n\t if(count($parameters)) {\n\t $url .= '?'.http_build_query($parameters);\n\t }\n\t \n\t return $url;\n\t}", "public function generate_url()\n {\n }", "public function buildUrl(array $params) {\n $params = array_merge(\n $this->getParamsForRequest(),\n $params\n );\n\t\tif (!isset($params['format']))\n\t\t\t$params['format'] = 'php_serial';\n return $this->rest_url . '?' . $this->signParams($params);\n }", "public function generateLink($params)\n {\n }", "private function generateUrl() : string\n {\n return $this->apiUrl.$this->ownerRepo.$this->branchPath.$this->branch;\n }", "public function createUrl($params)\n {\n $params = (array)$params;\n $language = ArrayHelper::remove($params, 'lang', static::$currentLanguage);\n \n return $this->baseUrl . ($language ? \"/$language\" : null) .\n preg_replace('~' . $this->baseUrl . '~', null, parent::createUrl($params), 1);\n }", "public function compileURL(array $parameters = []): string\n {\n return (null !== $parameters)\n ? '?' . http_build_query($parameters)\n : '';\n }", "public function url()\n {\n if (empty($this->parameters)) {\n return $this->url;\n }\n $total = array();\n foreach ($this->parameters as $k => $v) {\n if (is_array($v)) {\n foreach ($v as $va) {\n $total[] = HttpClient::urlencodeRFC3986($k).\"[]=\".HttpClient::urlencodeRFC3986($va);\n }\n } else {\n $total[] = HttpClient::urlencodeRFC3986($k).\"=\".HttpClient::urlencodeRFC3986($v);\n }\n }\n $out = implode(\"&\", $total);\n\n return $this->url.'?'.$out;\n }", "public function createUrl($params)\n {\n $params = array_merge(['lang'=> $this->currLang],(array)$params);\n $lang = $params['lang'];\n if ($this->enablePrettyUrl)\n unset($params['lang']);\n $url = parent::createUrl($params);\n return $this->enablePrettyUrl ? '/'.$lang . ($url === '/' ? '' : $url ) : $url;\n }", "protected function _build_url() {\n\n $params = array_filter([\n 'name' => $this->_names,\n 'country_id' => $this->_country_id,\n 'language_id' => $this->_language_id,\n ], function($v) {\n if (!is_array($v)) {\n return strlen(trim($v)) > 0;\n } else {\n return $v;\n }\n });\n //Only pass apikey if there is one set\n if ($api_key = $this->get_api_key()) {\n $params['apikey'] = trim($api_key);\n }\n\n return self::BASE . '?' . http_build_query($params);\n }", "public function generate($params)\n {\n // compile the regex if not already done\n if (!$this->compiled) {\n $this->compile();\n }\n\n // create a list of all parameters, merging the default values with given input arguments\n $allParams = array_merge($this->defaults, $params);\n\n // check whether there are some variables required, but not specified or given\n $diff = array_diff_key(array_flip($this->variables), $allParams);\n if ($diff) {\n throw new InvalidArgumentException('The \"' . $this->urlPattern . '\" route has some missing mandatory parameters (' . implode(', ', $diff) . ').');\n }\n\n // start creation of the url\n $url = '';\n // process the pattern by handling each single token (read out during compilation)\n foreach ($this->tokens as $token) {\n switch ($token[0]) {\n case 'variable':\n $url .= urlencode($allParams[$token[1]]);\n break;\n case 'text':\n // exclude star sign for additional parameters\n if ($token[1] != '*') {\n $url .= $token[1];\n }\n break;\n case 'separator':\n $url .= $token[1];\n break;\n }\n }\n\n // check if url ends with a trailing slash\n if (substr($url, -1) == '/') {\n // remove the trailing slash\n $url = substr($url, 0, strlen($url) - 1);\n }\n\n // look for the star sign\n if (false !== strpos($this->regex, '<_star>')) {\n // append additional parameters\n $additionalArgs = array();\n foreach (array_diff_key($allParams, array_flip($this->variables), $this->defaults) as $key => $value) {\n $additionalArgs[] = urlencode($key) . '/' . urlencode($value);\n }\n $url .= '/' . implode('/', $additionalArgs);\n }\n\n // return the result\n return $url;\n }", "function constructURL($object);", "public function toUrl()\n {\n $queryParams = '';\n\n $index = 0;\n\n foreach ($this->args as $key => $param) {\n $separator = '?';\n\n if ($index) {\n $separator = '&';\n }\n\n $queryParams .= \"{$separator}{$key}={$param}\";\n\n $index++;\n }\n\n return \"https://dev-ops.mee.ma/glenn/1/5/people.jpg{$queryParams}\";\n }", "public function url() {\n if (empty($this->parameters)) {\n return $this->url;\n }\n\n return $this->url . '?' . http_build_query($this->parameters);\n }", "public function createUrl(){\n\t\t$urlObj [\"id\"] =KuaiDi100Conf_pub::APPKEY;// $this->appid; //WxPayConf_pub::APPID;\n\t\t$urlObj [\"com\"] = $this->typeCom;\n\t\t$urlObj [\"typeNu\"] = $this->typeNu;\n\t\t$urlObj [\"show\"] = KuaiDi100Conf_pub::SHOW;\n\t\t$urlObj[\"muti\"] = KuaiDi100Conf_pub::MUTI;\n\t\t$urlObj[\"order\"] = KuaiDi100Conf_pub::ORDER;\n\t\t$bizString = $this->formatBizQueryParaMap ( $urlObj, false );\n\t\treturn KuaiDi100Conf_pub::URL . $bizString;\n\t}", "public static function buildUrl($params)\n {\n /** @var HttpRequestInterface $request */\n $request = self::fetchComponent(HttpRequestInterface::class);\n if ($request) {\n $data = isset($params['data']) ? $params['data'] : [];\n $query = $request->getQueryArray();\n foreach ($data as $key => $value) {\n $query[$key] = $value;\n }\n return $request->getPath() . '?' . http_build_query($query);\n }\n return \"\";\n }", "public static function href($parameters) {\n\t \n\t $url='';\n\t \n\t // set the base url\n\t if(isset($parameters['baseUrl'])) {\n\t $url .= $parameters['baseUrl'];\n\t unset($parameters['baseUrl']);\n\t } else {\n\t $url .= self::getBaseUrl();\n\t }\n\t \n\t // set the kiosk\n\t if(isset($parameters['kiosk'])) {\n\t $kiosk = $parameters['kiosk'];\n\t unset($parameters['kiosk']);\n\t } else {\n\t $kiosk = self::getKiosk();\n\t }\n\t if(!empty($kiosk)) {\n\t $url .= '/'.$kiosk;\n\t }\n\t \n\t // set the scope\n\t if(isset($parameters['scope'])) {\n\t $url .= '/'.$parameters['scope'];\n\t unset($parameters['scope']);\n\t } else {\n\t $url .= '/'.self::getScope();\n\t }\n\t \n\t if(isset($parameters['action'])) {\n\t $url .= '/'. $parameters['action'].'.do';\n\t unset($parameters['action']);\n\t } else {\n\t $url .= '/'. self::getAction().'.do';\n\t }\n\t \n\t if(count($parameters)) {\n\t $url .= '?'.http_build_query($parameters);\n\t }\n\t \n\t return $url;\n\t}", "function create_url( $args ) {\n\tglobal $base_url;\n\t\n\t$base_url = add_query_arg( 'wc-api', 'software-api', $base_url );\n\t\n\treturn $base_url . '&' . http_build_query( $args );\n}", "public function createUrl($route, $params = array(), $ampersand = '&')\n {\n return \"\";\n }", "public function generateUrl($entity, $params = null)\n {\n if (gettype($entity) === 'string') {\n $entity = \"AllegroSites_$entity\";\n }\n return $this->routingHelper->generateUrl($entity, $params);\n }", "function make_link($params = null) {\n $params = func_get_args();\n $name = array_shift($params);\n $url = call_user_func_array('url_for', $params);\n \n return sprintf('<a href=\"%s\">%s</a>', $url, $name);\n}", "function build_url($base_url, $params) {\r\n $url = $base_url;\r\n if (!empty($params)) {\r\n $url .= '?' . implode('&', $params);\r\n }\r\n return $url;\r\n }", "function elgg_http_build_url(array $parts) {\n\t// build only what's given to us.\n\t$scheme = isset($parts['scheme']) ? \"{$parts['scheme']}://\" : '';\n\t$host = isset($parts['host']) ? \"{$parts['host']}\" : '';\n\t$port = isset($parts['port']) ? \":{$parts['port']}\" : '';\n\t$path = isset($parts['path']) ? \"{$parts['path']}\" : '';\n\t$query = isset($parts['query']) ? \"?{$parts['query']}\" : '';\n\n\t$string = $scheme . $host . $port . $path . $query;\n\n\treturn $string;\n}", "public function getUrl($params)\n {\n $path = $this->path;\n\n foreach ($params as $k => $v) {\n $path = str_replace(\":$k\", $v, $path);\n }\n\n return $path == null || $path == '' ? '/' : '/' . $path;\n }", "public static function generateURL()\n {\n return $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n }", "function _build_url() {\n\t\t// Add transaction ID for better detecting double requests in AUTH server\n\t\tif($GLOBALS['config']['application']['tid'] == '') $GLOBALS['config']['application']['tid'] = rand(0, 10000);\n\n\t\t$url = $this->url.'&action='.$this->action.'&tid='.$GLOBALS['config']['application']['tid'];\n\t\t\n\t\treturn $url;\n\t}", "public function createUrl($params)\n {\n $params = (array)$params;\n\n if (array_key_exists($this->languageParam, $params)) {\n $lang = $params[$this->languageParam];\n\n if (\n (($lang !== Yii::$app->sourceLanguage && ArrayHelper::getValue($this->aliases, $lang) !== Yii::$app->sourceLanguage)\n || $this->displaySourceLanguage) && !empty($lang)\n ) {\n $params[0] = $lang . '/' . ltrim($params[0], '/');\n }\n\n unset($params[$this->languageParam]);\n } else {\n if (Yii::$app->language !== Yii::$app->sourceLanguage || $this->displaySourceLanguage) {\n $params[0] = Yii::$app->language . '/' . ltrim($params[0], '/');\n }\n }\n\n return parent::createUrl($params);\n }", "public function generateUrl($name, array $params = array())\n {\n return $this->urlGenerator->generate($name, $params);\n }", "public function generateUrl($parameters, $target = null)\n {\n $parameters = $this->parametersConverter\n ->convertServerToClientParameters($parameters);\n\n $parameters = $this->encodingConverter != null ? $this->encodingConverter->encodeClientUrlData($parameters) : $parameters;\n\n if (!is_string($target))\n $target = $this->requestParser->getRequestTarget();\n\n if ($parameters->offsetExists('seoPath')) {\n $seoPath = $parameters['seoPath'];\n $parameters->offsetUnset('seoPath');\n $seoPathPosition = strrpos($target, \"/s/\");\n if ($seoPathPosition > -1) {\n $target = substr($target, 0, $seoPathPosition); \n } \n $url = rtrim($target, '/') . '/s' . urldecode($seoPath) . '?' . $parameters->toPhpQueryString();\n } else { \n $url = $target . '?' . $parameters->toPhpQueryString();\n }\n return $url;\n }", "public function generateURL($parameters, \\Intahwebz\\Domain $domain = null, $absolute = false) {\n\n $search = array();\n $replace = array();\n\n //TODO - this doens't pickup provided non-default parameters.\n $patternToGenerate = $this->pattern;\n\n $actualRequired = $this->getRequiredPathComponents($parameters);\n if ($actualRequired !== false) {\n $patternToGenerate = mb_substr($patternToGenerate, 0, $actualRequired);\n }\n\n foreach($this->variables as $routeVariable) {\n $variableName = $routeVariable->name;\n if(array_key_exists($variableName, $parameters) == true){\n $search[] = '{'.$variableName.'}';\n $replace[] = $parameters[$variableName];\n unset($parameters[$variableName]);\n }\n else if($routeVariable->default !== null) {\n $search[] = '{'.$variableName.'}';\n $replace[] = $routeVariable->default;\n }\n else if ($routeVariable->optional !== null) {\n $search[] = '{'.$variableName.'}';\n $replace[] = '';\n }\n else{\n throw new UnsupportedOperationException(\"Cannot generate route '\".$this->name.\"'. Parameter '\".$routeVariable->name.\"' is not set and has no default.\");\n }\n }\n\n $search[] = '//'; \n $replace[] = '/';\n\n $url = str_replace($search, $replace, $patternToGenerate);\n\n if ($url === '') {\n $url = '/';\n }\n\n // add a query string if needed\n if(count($parameters) > 0){\n $query = http_build_query($parameters);\n $url .= '?'.$query;\n }\n\n if($absolute == true){\n //TODO Global function - eww.\n $url = $domain->getURLForCurrentDomain($url);\n }\n\n return $url;\n }", "public function to_url()\n {\n $post_data = $this->to_postdata();\n $out = $this->get_http_url();\n if ($post_data) {\n $out .= '?'.$post_data;\n }\n\n return $out;\n }", "public function url($route, $parameters = array())\n {\n return $this['url_generator']->generate($route, $parameters, true);\n }", "public function get_url($parameters = array())\n\t{\n\t\t$parameters += array(\n\t\t\t'id'\t=> $this->get_id(),\n\t\t);\n\n\t\treturn $this->controller_helper->route('phpbb.titania.download', $parameters);\n\t}", "public function buildUrl(array $params)\n {\n return sprintf(\n '%s/%s?%s',\n rtrim($this->getApiUrl(), '/'),\n static::API_METHOD_NAME,\n http_build_query($params)\n );\n }", "public function generateUrl($call, array $params = array())\n {\n $url = $this->baseUrl . '/' . $this->version . '/' . $call;\n if (count($params) > 0) {\n $queryString = http_build_query($params);\n $queryString = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $queryString);\n $url .= '?' . $queryString;\n }\n\n return $url;\n }", "function url($path = null, $parameters = [], $secure = null)\n {\n /** @var \\Phanda\\Contracts\\Routing\\Generators\\UrlGenerator $urlGenerator */\n $urlGenerator = phanda()->create(\\Phanda\\Contracts\\Routing\\Generators\\UrlGenerator::class);\n\n if (is_null($path)) {\n return $urlGenerator;\n }\n\n return $urlGenerator->generate($path, $parameters, $secure);\n }", "abstract public function buildUri($options);", "private function _url($par = array()) {\n\t\t$get = $_GET;\n\t\t\n\t\tforeach ((array) $par AS $key => $val) { //overide value\n\t\t\tif ($key == 'path') //if path, encode\n\t\t\t\t$get['path'] = \\Crypt::encrypt($val);\n\t\t\telse\n\t\t\t\t$get[$key] = $val;\n\t\t}\n\t\t\n\t\t$url = '//';\n\t\t\n\t\t$url .= $this->_sanitize(g($_SERVER, 'HTTP_HOST').'/'.strtok(g($_SERVER, 'REQUEST_URI'), '?'));\n\t\t\n\t\treturn $url.'?'.http_build_query($get);\n\t}", "private function genURL($moduleName = null){\n return Yii::app()->params['urlBTAMPAPI'].$moduleName;\n }", "function url($route,$params=array(),$ampersand='&')\n{\n return Yii::app()->createUrl($route,$params,$ampersand);\n}", "function generateUrl($api, $params = array(), $key = null){\n\t\t$url = $this->baseUri . $api . \"?\";\n\t\t$params += $this->_authenticateParams();\n\n\t\tif (isset($params['_key']) && $key === null) {\n\t\t\t$key = $params['_key'];\n\t\t\tunset($params['_key']);\n\t\t}\n\t\t$url .= $this->_generateQuery($params, $key);\n\t\treturn $url;\n\t}", "function url($route,$params=array(),$ampersand='&')\n{\n\tif (Yii::app() instanceof CConsoleApplication)\n\t{\n\t\treturn Yii::app()->params['host'].Yii::app()->getUrlManager()->createUrl($route,$params,$ampersand);\n\t}\n\telse\t\n\t\treturn Yii::app()->createUrl($route,$params,$ampersand);\n}", "public function getURL(array $params=array())\n {\n return vsprintf($this->url, $params);\n }", "public static function createUrl($end_point, $url_params)\n {\n $url = $end_point . \"?\";\n\n foreach ($url_params as $param => $value) {\n\n $url = $url . $param . \"=\" . $value . \"&\";\n\n }\n\n $url = $url . \"api_key=\" . Config::$api_key;\n\n return $url;\n }", "public function url()\r\n {\r\n return $this->get_base_url() . http_build_query($this->get_query_params());\r\n }", "private function _combineUrl()\n {\n $args = func_get_args();\n $url = '';\n foreach ($args as $arg) {\n if (!is_string($arg)) {\n continue;\n }\n if ($arg[strlen($arg) - 1] !== '/') {\n $arg .= '/';\n }\n $url .= $arg;\n }\n\n return $url;\n }", "public function prepareUrl(&$parameters, $upload = FALSE) {\n $parameters['apiKey'] = variable_get('issuu_global_apikey', '');\n $parameters['format'] = 'json';\n \n $this->signRequest($parameters);\n \n $get_array = array();\n foreach ($parameters as $key => $val) {\n $get_array[] = $key . '=' . urlencode($val);\n }\n $get_string = implode('&', $get_array);\n \n $base = ISSUU_URI;\n if ($upload) {\n return array(ISSUU_URI_UPLOAD, $get_string);\n }\n\n return sprintf('%s?%s', $base, $get_string);\n }", "public function getUrl($params)\n {\n $path = $this->path;\n foreach ($params as $key => $value) {\n $path = str_replace(\":$key\", $value, $path);\n }\n return $path;\n }", "function url($route,$params=array(),$ampersand='&')\n{\n return Yii::app()->createUrl($route,$params,$ampersand);\n}", "function url($route,$params=array(),$ampersand='&')\n{\n return Yii::app()->createUrl($route,$params,$ampersand);\n}", "public static function getUrl(array $params = array())\n {\n $query = Watson::buildQuery($params);\n $query = $query ? '?' . $query : '';\n\n return htmlspecialchars('../redaxo/index.php' . $query);\n }", "function url_build(string $base, string $params = ''): string\n{\n if ($params) {\n $params = ((false === strpos($base, '?')) ? '?' : '&') . $params;\n }\n return \\get_site_url() . '/' . $base . $params;\n}", "function url($route, $params=array ( ), $ampersand='&'){\n return Yii::app()->controller->createUrl($route, $params, $ampersand);\n}", "function http_build_url($url = null, $parts = null, $flags = null, ?array &$new_url = null) {}", "public function getUrl($route = '', $params = []);", "protected function generateString()\n\t{\n\t\t// start with the scheme\n\t\t$url = $this->scheme . '://';\n\t\t\n\t\t// user and password\n\t\tif( !empty( $this->user ) )\n\t\t{\n\t\t\t$url .= $this->user;\n\t\t\tif( !empty( $this->pass ) ) $url .= ':'.$this->pass.'@';\n\t\t\telse $url .= '@';\n\t\t}\n\t\t\n\t\t// add the host and path\n\t\t$url .= $this->host . '/';\n\t\t$url .= $this->path;\n\t\t\n\t\t// add the URL-encoded parameters\n\t\tif( !empty( $this->params ) )\n\t\t{\n\t\t\t$url .= '?';\n\t\t\tforeach( $this->params as $f => $v ) $url .= $f . '=' . urlencode( $v ) . '&';\n\t\t\t$url = rtrim( $url, '&' );\n\t\t}\n\t\t\n\t\t// add the anchor if any\n\t\tif( !empty( $this->anchor ) ) $url .= '#' . $this->anchor;\n\t\t\n\t\t$this->url = $url;\n\t\t$this->modified = false;\n\t\treturn $url;\n\t}", "public function genMapsLink()\n {\n $city = str_replace(' ', '+', $this->getCity()->getCityName());\n $street = str_replace(' ', '+', $this->getStreet());\n $hno = str_replace(' ', '+', $this->getHouseNo());\n\n $url = \"https://maps.google.com?q=\" . $city . '+' . $street . '+' . $hno;\n\n return $url;\n }", "function createUrl( $route, $params = array() ) {\n return Yii::app()->createUrl( $route, $params );\n}", "private function generateURL()\n\t{\n\t\t// Is there's a query string, strip it from the URI\n\t\t$sURI\t= ($iPos = strpos($_SERVER['REQUEST_URI'], '?')) ?\n\t\t\t\t\tsubstr($_SERVER['REQUEST_URI'], 0, $iPos) :\n\t\t\t\t\t$_SERVER['REQUEST_URI'];\n\n\t\t// Is there's a ampersand string, strip it from the URI\n\t\t$sURI\t= ($i = strpos($sURI, '&')) ?\n\t\t\t\t\tsubstr($sURI, 0, $i) :\n\t\t\t\t\t$sURI;\n\n\t\t// Is there's a hash string, strip it from the URI\n\t\t$sURI\t= ($i = strpos($sURI, '#')) ?\n\t\t\t\t\tsubstr($sURI, 0, $i) :\n\t\t\t\t\t$sURI;\n\n\t\t// If we're on page 1\n\t\tif($this->iPage == 1)\n\t\t{\n\t\t\t$this->sURL\t\t= $sURI;\n\t\t}\n\t\t// Else we need to pull off the current page\n\t\telse\n\t\t{\n\t\t\t// Split the URI by / after trimming them off the front and end\n\t\t\t$aURI\t= explode('/', trim($sURI, '/'));\n\n\t\t\t// If the last part doesn't match the current page\n\t\t\t$iPage\t= array_pop($aURI);\n\t\t\tif($iPage != $this->iPage) {\n\t\t\t\ttrigger_error(__METHOD__ . ' Error: Invalid page passed. ' . $iPage . ' / ' . $this->iPage, E_USER_ERROR);\n\t\t\t}\n\n\t\t\t// If there is no other parts\n\t\t\tif(count($aURI) == 0) {\n\t\t\t\t$this->sURL = '/';\n\t\t\t} else {\n\t\t\t\t$this->sURL = '/' . implode('/', $aURI) . '/';\n\t\t\t}\n\t\t}\n\n\t\t// Set the query string\n\t\t$this->sQuery\t= ($iPos) ? substr($_SERVER['REQUEST_URI'], $iPos) : '';\n\t}", "public function getUrl() {\n $url = $this->request->get_normalized_http_url() . '?';\n $url .= http_build_query($this->request->get_parameters(), '', '&');\n\n return $url;\n }", "function url_for($to) {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n # find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n # urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "public function createUri($param1=null, $etc=null)\n {\n $params = func_get_args();\n array_unshift($params, $this->regexForReplace);\n return call_user_func_array(\n 'sprintf', $params\n );\n }", "function url($path = null, $parameters = [], $secure = null)\n {\n if (is_null($path)) {\n return app(\\Very\\Routing\\UrlGenerator::class);\n }\n\n return app(\\Very\\Routing\\UrlGenerator::class)->to($path, $parameters, $secure);\n }", "public function to_url() {\n $post_data = $this->to_postdata();\n $out = $this->get_normalized_http_url();\n if ($post_data) {\n $out .= '?'.$post_data;\n }\n return $out;\n }", "function url_for($to)\n {\n $args = func_get_args();\n\n // find params\n $params = array();\n if (is_array(end($args))) {\n $params = array_pop($args);\n }\n\n // urlencode all but the first argument\n $args = array_map('urlencode', $args);\n $args[0] = $to;\n\n return PluginEngine::getURL($this->dispatcher->plugin, $params, join('/', $args));\n }", "function buildUrl($parts=array()){\r\n\t$uparts=array();\r\n\tforeach($parts as $key=>$val){\r\n\t\tif(preg_match('/^(PHPSESSID|GUID|debug|error|username|password|add_result|domain_href|add_id|add_table|edit_result|edit_id|edit_table|)$/i',$key)){continue;}\r\n\t\tif(preg_match('/^\\_(login|pwe|try|formfields|action|view|formname|enctype|fields|csuid|csoot)$/i',$key)){continue;}\r\n\t\tif(!is_string($val) && !isNum($val)){continue;}\r\n\t\tif(!strlen(trim($val))){continue;}\r\n\t\tif($val=='Array'){continue;}\r\n\t\tarray_push($uparts,\"$key=\" . encodeURL($val));\r\n \t}\r\n $url=implode('&',$uparts);\r\n return $url;\r\n\t}", "public function createUrl($route, $params=array(), $ampersand = '&')\n { \n unset($params['a']);\n unset($params['url']);\n return parent::createUrl($route, $params);\n }", "public function makeUrl($resource = 0,$params = array(),array $options = array()) {\n if (empty($resource)) $resource = $this->get('resource');\n if (empty($params)) $params = $this->get('existing_params');\n if (empty($params)) $params = array();\n if (empty($options['context_key'])) {\n $options['context_key'] = $this->get('context_key');\n if (empty($options['context_key'])) {\n $options['context_key'] = $this->xpdo->context->get('key');\n }\n }\n\n $scheme= $this->xpdo->context->getOption('scheme','',$options);\n return $this->xpdo->makeUrl($resource,$options['context_key'],$params,$scheme);\n }", "function create_url($event = null, $day = null, $set = null, $shot = null) {\n\t\t$event = $event ? \"?event=$event\" : null;\n\t\t$day = $day ? \"&day=$day\" : null;\n\t\t$set = $set ? \"&set=$set\" : null;\n\t\t$shot = $shot ? \"&shot=$shot\" : null;\n\t\treturn \"$event$day$set$shot\";\n\t}", "private function MakeUrl($url,$params){\n if(!empty($params) && $params){\n foreach($params as $k=>$v) $kv[] = \"$k=$v\";\n $url_params = str_replace(\" \",\"+\",implode('&',$kv));\n $url = trim($url) . '?' . $url_params;\n }\n return $url;\n }", "public function composeUri($params)\n {\n $ret = '';\n $first = true;\n\n foreach ($params as $param => $values) {\n if (!$first) {\n $ret .= $this->seperators['param'];\n }\n $first = false;\n $internal = $param;\n if ($external = $this->translateKeyOutput($param)) {\n $param = $external;\n }\n $ret .= $param . $this->seperators['key_value'];\n $firstValue = true;\n foreach ($values as $value) {\n if ($external = $this->translateValueOutput($internal, $value)) {\n $value = $external;\n }\n if (!$firstValue) {\n $ret .= $this->seperators['value'];\n } else {\n $firstValue = false;\n }\n $ret .= urlencode($value);\n }\n }\n\n return $ret;\n }", "public function createUrl($url = '', $values = array())\n {\n $params = \"\";\n if (sizeof($values) > 0) {\n foreach ($values as $key => $value) {\n $params .= \"/\" . $value;\n }\n }\n $url = $this->configuration->get('url.root') . '/' . $url . $params;\n return $url;\n }", "function build_url($parts)\n{\n return ( isset($parts['scheme']) ? \"{$parts['scheme']}:\" : '' ) .\n ( ( isset($parts['user']) || isset($parts['host']) ) ? '//' : '' ) .\n ( isset($parts['user']) ? \"{$parts['user']}\" : '' ) .\n ( isset($parts['pass']) ? \":{$parts['pass']}\" : '' ) .\n ( isset($parts['user']) ? '@' : '' ) .\n ( isset($parts['host']) ? \"{$parts['host']}\" : '' ) .\n ( isset($parts['port']) ? \":{$parts['port']}\" : '' ) .\n ( isset($parts['path']) ? \"{$parts['path']}\" : '' ) .\n ( isset($parts['query']) ? \"?{$parts['query']}\" : '' ) .\n ( isset($parts['fragment']) ? \"#{$parts['fragment']}\" : '' );\n}", "protected function _getUrl() {\n\t\t\t$this->_url =\timplode('/', array(\n\t\t\t\t$this->_baseUrlSegment,\n\t\t\t\t$this->_apiSegment,\n\t\t\t\timplode('_', array(\n\t\t\t\t\t$this->_type,\n\t\t\t\t\t$this->_language,\n\t\t\t\t\t$this->_locale,\n\t\t\t\t)),\n\t\t\t\t$this->_apiVersionSegment,\n\t\t\t\t$this->controller,\n\t\t\t\t$this->function\t\n\t\t\t));\n\n\t\t\tempty($this->_getFields) ?: $this->_url .= '?' . http_build_query($this->_getFields);\n\t\t}", "public function to_url()\n {\n $out = $this->get_normalized_http_url() . \"?\";\n $out .= $this->to_postdata();\n return $out;\n }", "public function createUrl ($params)\n {\n if (array_key_exists($this->languageParam, $params)) {\n $lang = $params[$this->languageParam];\n\n if ((\n ($lang !== Yii::$app->sourceLanguage &&\n ArrayHelper::getValue(Yii::$app->getSiteLangs()->getLanguages()->code, $lang) !== Yii::$app->sourceLanguage) ||\n $this->displaySourceLanguage\n ) &&\n !empty($lang)\n ) {\n // Не добавлять алиас к главной странице\n if (Yii::$app->getSiteMenu()->getHomeLink() == $params[0]) {\n $params[0] = $lang;\n } else {\n $params[0] = $lang . '/' . ltrim($params[0], '/');\n }\n }\n unset($params[$this->languageParam]);\n } else {\n if (Yii::$app->language !== Yii::$app->sourceLanguage || $this->displaySourceLanguage) {\n // Не добавлять алиас к главной странице\n if (Yii::$app->getSiteMenu()->getHomeLink() == $params[0]) {\n $params[0] = Yii::$app->getSiteLangs()->getCurrent()->code;\n } else {\n $params[0] = Yii::$app->getSiteLangs()->getCurrent()->code . '/' . ltrim($params[0], '/');\n }\n }\n }\n\n //return parent::createUrl($params);\n // From Yii\n $params = (array) $params;\n $anchor = isset($params['#']) ? '#' . $params['#'] : '';\n unset($params['#'], $params[$this->routeParam]);\n\n $route = trim($params[0], '/');\n unset($params[0]);\n\n $baseUrl = $this->showScriptName && !$this->enablePrettyUrl ? $this->getScriptUrl() : $this->getBaseUrl();\n\n if ($this->enablePrettyUrl) {\n /* @var $rule UrlRule */\n foreach ($this->rules as $rule) {\n if (($url = $rule->createUrl($this, $route, $params)) !== false) {\n $url = str_replace('%2F', '/', $url);\n if (strpos($url, '://') !== false) {\n if ($baseUrl !== '' && ($pos = strpos($url, '/', 8)) !== false) {\n return substr($url, 0, $pos) . $baseUrl . substr($url, $pos);\n } else {\n return $url . $baseUrl . $anchor;\n }\n } else {\n return \"$baseUrl/{$url}{$anchor}\";\n }\n }\n }\n\n if ($this->suffix !== null) {\n $route .= $this->suffix;\n }\n if (!empty($params) && ($query = http_build_query($params)) !== '') {\n $route .= '?' . $query;\n }\n\n return \"$baseUrl/{$route}{$anchor}\";\n } else {\n $url = \"$baseUrl?{$this->routeParam}=\" . urlencode($route);\n $url = str_replace('%2F', '/', $url);\n if (!empty($params) && ($query = http_build_query($params)) !== '') {\n $url .= '&' . $query;\n }\n\n return $url . $anchor;\n }\n }", "function generate_api_url(){\n\t\t$parameters = array(\n\t\t\t'uid' \t\t => $this->uid,\n\t\t\t'pswd' \t\t => $this->pswd,\n\t\t\t'api' \t\t => $this->api,\n\t\t\t'apiversion' => $this->apiversion\t\t\t\n\t\t);\n\t\t\n\t\tif(!empty($this->sid) && !empty($this->encrypted_pswd)){\n\t\t\t$parameters['sid'] = $this->sid;\n\t\t\t$parameters['pswd'] = $this->encrypted_pswd;\n\t\t}\n\t\t\n\t\t//var_dump($parameters);\n\t\t\n\t\treturn self::api_end_point . '?' . http_build_query($parameters);\n\t}", "public function provideUrl(): Generator\n {\n yield [''];\n yield ['/'];\n yield ['/products/123'];\n }", "function routeUrl($name, $parameters = [], $absolute = true)\n {\n /** @var \\Phanda\\Contracts\\Routing\\Generators\\UrlGenerator $urlGenerator */\n $urlGenerator = phanda()->create(\\Phanda\\Contracts\\Routing\\Generators\\UrlGenerator::class);\n return $urlGenerator->generateFromRoute($name, $parameters, $absolute);\n }", "public function createUrl($route, $params=array(), $ampersand='&'){\n if(Yii::app()->params['langSystem']){\n if(!isset($params['lang']) && !Common::checkMCA('', 'site', 'robots') && !Common::checkMCA('', 'site', 'sitemap')) $params['lang']=Yii::app()->language;\n }\n return parent::createUrl($route,$params,$ampersand);\n }", "private function generateUrl($page = 1)\n {\n $url = $this->baseUrl . '?';\n if (!empty($this->parameter)) {\n foreach ($this->parameter as $key => $value) {\n $url .= $key . '=' . $value . '&';\n }\n }\n $url .= 'page=' . $page;\n\n return $url;\n }", "function build_url(array $parts) {\n return (isset($parts['scheme']) ? \"{$parts['scheme']}:\" : '') . \n ((isset($parts['user']) || isset($parts['host'])) ? '//' : '') . \n (isset($parts['user']) ? \"{$parts['user']}\" : '') . \n (isset($parts['pass']) ? \":{$parts['pass']}\" : '') . \n (isset($parts['user']) ? '@' : '') . \n (isset($parts['host']) ? \"{$parts['host']}\" : '') . \n (isset($parts['port']) ? \":{$parts['port']}\" : '') . \n (isset($parts['path']) ? \"{$parts['path']}\" : '') . \n (isset($parts['query']) ? \"?{$parts['query']}\" : '') . \n (isset($parts['fragment']) ? \"#{$parts['fragment']}\" : '');\n}", "public function generateAutoLoginLink($params){\n $dataRequest = array();$dataRequestAppend = array();\n // Destination ID\n if (isset($params['r'])){\n $dataRequest['r'] = $params['r']; $dataRequestAppend[] = '/(r)/'.rawurlencode(base64_encode($params['r']));\n }\n // User ID\n if (isset($params['u']) && is_numeric($params['u'])){\n $dataRequest['u'] = $params['u']; $dataRequestAppend[] = '/(u)/'.rawurlencode($params['u']);\n }\n // Username\n if (isset($params['l'])){\n $dataRequest['l'] = $params['l']; $dataRequestAppend[] = '/(l)/'.rawurlencode($params['l']);\n }\n if (!isset($params['l']) && !isset($params['u'])) {\n throw new Exception('Username or User ID has to be provided');\n }\n // Expire time for link\n if (isset($params['t'])){\n $dataRequest['t'] = $params['t'];\n $dataRequestAppend[] = '/(t)/'.rawurlencode($params['t']);\n }\n $hashValidation = sha1($params['secret_hash'].sha1($params['secret_hash'].implode(',', $dataRequest)));\n return \"index.php/user/autologin/{$hashValidation}\".implode('', $dataRequestAppend);\n }", "public function createUrl($manager, $route, $params)\r\n {\r\n }", "public function url_for($parameters, $method = 'get') {\n if (!isset($parameters['controller']))\n throw new Exception(\"url_for requires a controller parameter to be specified\");\n \n foreach ($this->routes as $route) {\n $url = $route->url_for($parameters, $method);\n\n if ($url !== false)\n return $url;\n }\n \n $pretty = array(); foreach ($parameters as $n=>$v) { $pretty[] = \"$n=$v\"; }\n throw new Exception(\"No URL could be constructed for the parameters \" . implode(\", \", $pretty));\n }", "protected function get_endpoint_url() {\n\n\t\t$args = http_build_query( array( 'apikey' => $this->api_key ) );\n\t\t$base = $this->route . $this->app_id;\n\t\t$url = \"$base?$args\";\n\n\t\treturn $url;\n\t}", "protected function generateApiUrl(&$parameters, $currentOptions) {\n // Set Api's url based on passed api type\n if($this->options['api_type'] == 'github') {\n $opt_url = $this->options['github_url'];\n //Initialize description variable based on selected Api\n if(isset($parameters['desc'])) {\n $parameters['body'] = $parameters['desc'];\n unset($parameters['desc']);\n }\n } else if($this->options['api_type'] == 'bitbucket') {\n $opt_url = $this->options['bitbucket_url'];\n //Initialize description variable based on selected Api\n if(isset($parameters['desc'])) {\n $parameters['content'] = $parameters['desc'];\n unset($parameters['desc']);\n }\n } else {\n $this->error_handler( 'Method Not Allowed', (int)$headers['http_code'] );\n }\n\n // Set Api's full url along with path and format\n $url = strtr( $opt_url, array(\n ':protocol' => $this->options['protocol'],\n ':path' => trim(implode( \"/\", array_map( 'urlencode', explode( \"/\", $this->options['api_path'] ) ) ), '/') . (substr($this->options['api_path'], -1) == '/' ? '/' : ''),\n ':format' => $currentOptions['format']\n ) );\n return $url;\n }", "private function _buildUrl() {\n $url = OPENDIGI_API_ENDPOINT;\n $url .= '?Vcollection=' . implode('+', $this->_collections);\n if ($this->_languages)\n $url .= '&Vlanguages=' . implode('+', $this->_languages);\n if ($this->_subjectIds)\n $url .= '&Vsubjectids=' . implode('+', $this->_subjectIds);\n\n return $url;\n }", "function url(\n ?string $name = null,\n $parameters = null,\n ?array $getParams = null\n): Url {\n return Router::getUrl($name, $parameters, $getParams);\n}", "protected function calculateUrlWithParams()\n {\n // Get the absolute URL to the page including the site domain.\n // Get the Url parameter records for this page.\n // Also include the project coordinator field values in the URL parameters.\n $pageUrl = $this->AbsoluteLink();\n\n $parameters = \"\";\n\n // If values for the project code, Project Manager, Project Coordinator, or Project Coordinator\n // email fields have been specified include them as parameters in the URL.\n if ($this->ProjectName) {\n $parameters .= '&Project_Name=' . urlencode($this->ProjectName);\n }\n\n if ($this->ProjectCode) {\n $parameters .= '&Project_Code=' . urlencode($this->ProjectCode);\n }\n\n if ($this->ProjectManager) {\n $parameters .= '&Project_Manager=' . urlencode($this->ProjectManager);\n }\n\n if ($this->ProjectManagerEmail) {\n $parameters .= '&Project_Manager_email=' . urlencode($this->ProjectManagerEmail);\n }\n\n if ($this->ProjectCoordinator) {\n $parameters .= '&Project_Coordinator=' . urlencode($this->ProjectCoordinator);\n }\n\n if ($this->ProjectCoordinatorEmail) {\n $parameters .= '&Project_Coordinator_email=' . urlencode($this->ProjectCoordinatorEmail);\n }\n\n // Get the URL parameters specified for this page. Loop and add them.\n $parameterFields = $this->UrlParams()->sort('SortOrder', 'Asc');\n\n foreach($parameterFields as $field) {\n $parameters .= '&' . str_replace(' ', '_', $field->PostcardMetadataField()->Label) . '=' . urlencode($field->Value);\n }\n\n // Remove first & and replace with ?.\n $parameters = ltrim($parameters, '&');\n\n // Put together the URL of the page with the params.\n $pageUrl .= '?' . $parameters;\n\n return $pageUrl;\n }", "private function generateUrlByRole(string $role, array $parameters = []): string\n {\n // regular frontend url\n return $this->frontendBaseURL;\n }", "public function makelink()\n {\n /*\n * If link set directly that forces using it rather than build\n */\n if ($this->link) {\n return $this->link;\n }\n\n $pageid = static::makeParameterId($this->for);\n $parameters = $this->app['request']->query->all();\n if (array_key_exists($pageid, $parameters)) {\n unset($parameters[$pageid]);\n } else {\n unset($parameters['page']);\n }\n\n $parameters[$pageid] = '';\n $link = '?' . http_build_query($parameters);\n\n return $link;\n }", "protected function _url($route, $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH)\n {\n return $this->getRouter()->generate($route, $parameters, $absolute);\n }", "public function getUrl() {\n\t\t$url = $this->getBaseUrl().$this->getBasePath().$this->getOperation();\n\t\t$params = http_build_query($this->getUrlParameters());\n\t\tif ($params) {\n\t\t\t$url .= '?'.$params;\n\t\t}\n\t\treturn $url;\n\t}", "protected function getUrl($method, $parameters) {\n $output = $this->apiUrl . '?method=' . $method;\n foreach($parameters as $name => $value) {\n $output .= '&' . $name . '=' . urlencode($value);\n }\n $output .= '&format=json&api_key=' . urlencode($this->apiKey);\n return $output;\n }", "public function generateUrl(){\n if(($this->getGetMethodResult('task') != null) && ($this->getGetMethodResult('action') != null)) {\n $urlFromArray = [];\n\n foreach ($this->getMethodUrlPathArray() as $key => $value) {\n if (is_array($value)) {\n foreach ($value as $argsKey => $argsValue) {\n $urlFromArray[] = $argsKey . '=' . $argsValue;\n }\n } else {\n $urlFromArray[] = $key . '=' . $value;\n }\n }\n return implode('&', $urlFromArray);\n }\n else{\n return null;\n }\n }", "public function getUrl() {\n\t\t$this->getRublon()->log(__METHOD__);\n\t\treturn $this->getRublon()->getAPIDomain() .\n\t\t\tself::URL_PATH_CODE .\n\t\t\turlencode($this->getUrlParamsString());\n\t}" ]
[ "0.77582794", "0.75618774", "0.7481641", "0.72889227", "0.7059782", "0.7034109", "0.6953093", "0.6923884", "0.6914206", "0.6820833", "0.6777478", "0.6756578", "0.6711334", "0.66970474", "0.6666435", "0.66649276", "0.66623634", "0.6653682", "0.66228825", "0.6616854", "0.66150975", "0.6612561", "0.6600792", "0.6600539", "0.65862215", "0.6569577", "0.653139", "0.64943975", "0.6481815", "0.6466975", "0.64432573", "0.6434773", "0.6416316", "0.6410042", "0.64096385", "0.64002305", "0.639349", "0.63884604", "0.6387958", "0.63865817", "0.63830614", "0.63764846", "0.6374215", "0.63725597", "0.63682413", "0.636203", "0.63465285", "0.6342001", "0.63409597", "0.630669", "0.63036025", "0.63036025", "0.6258506", "0.62379813", "0.6237204", "0.62185156", "0.6213942", "0.6195934", "0.6193519", "0.6189669", "0.6187883", "0.6177049", "0.6167369", "0.61662775", "0.61618125", "0.6151212", "0.6148094", "0.6148074", "0.6143958", "0.61432683", "0.6125677", "0.6115894", "0.61042905", "0.60972756", "0.6090346", "0.6086399", "0.60857123", "0.60853773", "0.60815257", "0.6075438", "0.60747373", "0.6067142", "0.6061001", "0.60585976", "0.6049437", "0.6048511", "0.6042057", "0.60332114", "0.60311043", "0.60241187", "0.6019611", "0.60187894", "0.6003761", "0.5999441", "0.59971476", "0.5989015", "0.5976745", "0.5972607", "0.5957657", "0.59504807" ]
0.60107434
92
Get Name of command
public static function getName() { return 'summary'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName() {\n return $this->commandName;\n }", "public function getCommand(): string\n {\n return $this->attributes->get('command', '');\n }", "public function getCommand(): string\n {\n return $this->command;\n }", "public function getCommand(): string\n {\n return $this->command;\n }", "public function getFullCommand(): string\n {\n return \"/{$this->request->command} {$this->name}\";\n }", "public function getNameForCommand($command): string\n {\n return get_class($command);\n }", "public function command()\n {\n return $this->parseCommand()[0];\n }", "public function getCommand() {\n return $this->getValue(self::FIELD_COMMAND);\n }", "public function guessCommandName()\n {\n $prefix = $this->makePrefix();\n if ($prefix) {\n $prefix = sprintf('%s:', $prefix);\n }\n return sprintf('%s%s', $prefix, $this->makeName());\n }", "public function getCommand()\n {\n return $this->getPath() . \" -\" . $this->getFlags();\n }", "public function getCommand();", "public function getCommandIdentifier() {}", "public function getCommand() {\n\t\t$spec = self::$specs[$this->id];\n\t\treturn array_value($spec, \"command\", NULL);\n\t}", "public static function getCliName();", "public function getCommand()\n {\n return $this->command;\n }", "public function getCommand()\n {\n return $this->command;\n }", "public function getCommand()\n {\n return $this->command;\n }", "public function getCommand()\n {\n return $this->command;\n }", "abstract public function getCommand(string $name): string;", "protected function getName()\n {\n return $this->arguments['name'];\n }", "public function getCommandName(): string;", "abstract public function getCommandName();", "public function getCommand() {\n return $this->command;\n }", "public function command()\n {\n return $this->command;\n }", "public function getCommand() {\n\t\treturn $this->command;\n\t}", "public function getCommand() {}", "public function getCommand()\n {\n return $this->_command;\n }", "protected function getCommandName()\n {\n $this->methodExpectsRequest(__METHOD__);\n return $this->getRequest()->getCommandName();\n }", "public function getName()\n\t{\n\t\treturn $this->process;\n\t}", "public function getName()\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }", "public function getCommand() {\n\t\treturn $this->_command;\n\t}", "public function getToolCommand(): string;", "public function getCommandCaption()\n {\n return $this->commandCaption;\n }", "public function command(): string;", "private function get_current_command() {\n\t\t$runner = new RunnerInstance();\n\n\t\treturn implode( ' ', (array) $runner()->arguments );\n\t}", "public function getCommand() {\n\t\t$command = $this->extractCommand() .'Action';\n\n\t\tif( $this->_verbose )\n\t\t\t$this->set( '_command', $command );\n\n\t\treturn $command;\n\t}", "public function command()\n\t{\n\t\treturn $this->command;\n\t}", "public function command()\n\t{\n\t\treturn $this->command;\n\t}", "public function getCommand()\n {\n return $this->oCommand;\n }", "public function getCommand()\n {\n return $this->_command;\n }", "public function getCommand()\n {\n return sprintf('use %s', $this->_tube);\n }", "public function getCommand() {\n if($this->isCash)\n return t('Download blankiet');\n else\n return t('Make a money transfer');\n }", "public function getHandlerNameForCommandName(string $commandName): string;", "public function getCommand()\n {\n }", "public function getCommandText();", "public function clientGetname() {\n return $this->returnCommand(['CLIENT', 'GETNAME']);\n }", "public function getCommandParentName(): string\n\t{\n\t\treturn CliCreate::COMMAND_NAME;\n\t}", "public function getControllerCommandName() {}", "public static function getToolName();", "public function getTaskCmd()\n {\n return $this->get(self::TASK_CMD);\n }", "protected function getCommandName(InputInterface $input)\n {\n $name = $input->getFirstArgument('command');\n return $name ? $name : 'project:run';\n }", "protected function resolveCommandMethodName() {}", "protected function getCommandName($name)\n {\n if (!Str::startsWith($name, 'command.')) {\n $name = \"command.$name\";\n }\n\n return str_replace(':', '.', $name);\n }", "public function getCommand()\n {\n return \"{$this->pipe} | {$this->nodeExecutable} \" . $this->script;\n }", "abstract protected function getClassName(CommandInterface $command);", "public function Name()\n {\n return parent::CallMethod(__FUNCTION__, array(), func_get_args());\n }", "public static function getCommandName(): string\n {\n return 'make:graphql:resolver';\n }", "public static function getCommandName(): string\n {\n return 'make:graphql:type';\n }", "public function getName(){\n return $this->game->get_current_turn()->ReturnName();\n }", "public function getName()\n\t{\n\t\tif ($this->frozen) {\n\t\t\treturn $this->__call(__FUNCTION__, func_get_args());\n\t\t}\n\t\treturn $this->name;\n\t}", "public function getCommand(string $command);", "public static function getCommandName(): string\n {\n return 'make:domain:form';\n }", "public function getCommandName(): string\n\t{\n\t\treturn 'post-type';\n\t}", "public function get()\n\t\t{\n\t\t\treturn $this->command;\n\t\t}", "public function latestCommand()\n {\n return $this->request('get', '/api/latest-command')['command'];\n }", "public function getName() {\n\t\treturn $this->current_name;\n\t}", "abstract protected function getCommand();", "public function nameCommand()\n {\n $userName = $this->getFromName();\n if (!empty($this->e->getParams())) {\n $newName = implode(' ', $this->e->getParams());\n $this->reply($userName . ' теперь известен как ' . $newName);\n } else {\n $newName = $userName;\n $this->reply($userName . ' теперь использует имя по-умолчанию');\n }\n $this->setUserName($this->getUserId(), $newName);\n }", "public function getCmdId()\n {\n return $this->get(self::CMD_ID);\n }", "public function getCommandInterface()\n {\n return 'Nerrad\\\\WPCLI\\\\EE\\\\interfaces\\\\' . $this->type . 'CommandInterface';\n }", "public function getCurrentCommand()\n {\n return $this->currentCommand;\n }", "protected function getNameInput()\n {\n switch (trim($this->argument('name'))) {\n case 'repository':\n return 'Repository';\n break;\n case 'service':\n return 'Service';\n break;\n }\n }", "public function getOutputName(): string\n {\n return $this->outputName;\n }", "public function name()\n {\n return $this->getName();\n }", "public function name()\n {\n return $this->getName();\n }", "public function getName()\n {\n return $this->action['name'] ?? null;\n }", "static public function GetCommand() {\n if (isset(self::$command))\n return self::$command;\n else\n return false;\n }", "public function getCommand()\n {\n if (is_null($this->pipe)) {\n return \"{$this->pythonExecutable} {$this->script}\";\n }\n\n return \"{$this->pipe} | {$this->pythonExecutable} {$this->script}\";\n }", "private function n(string $commandName): string\n {\n return '<bold:red>' . $commandName . '</bold:red>';\n }", "function getCommandClass()\r\n\t{\r\n\t\treturn ''; \t\r\n\t}", "protected function _getTaskName()\n {\n $name = explode(':', $this->getName());\n\n return $name[1];\n }", "public function getTargetCmd() {\n if(!$this->isTargetInternal())\n return null;\n\n $c = $this->cutTarget();\n return strtolower($c['cmd']);\n }", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getName() {}", "public function getMethodName() {\r\n\t\treturn($this->method_name);\r\n\t}" ]
[ "0.8789081", "0.77145326", "0.766893", "0.766893", "0.7472216", "0.74321765", "0.7404381", "0.73724306", "0.7348383", "0.7284432", "0.7234175", "0.71961975", "0.71912295", "0.7186373", "0.7179136", "0.7179136", "0.7179136", "0.7179136", "0.7174022", "0.7165678", "0.71537024", "0.71532774", "0.71461487", "0.7131462", "0.71196514", "0.71189445", "0.7108432", "0.7107355", "0.70831436", "0.70628613", "0.70448864", "0.7039397", "0.70329565", "0.7027577", "0.7020296", "0.70182073", "0.7014427", "0.7014427", "0.7011817", "0.70089835", "0.70063233", "0.6999496", "0.6994746", "0.6982981", "0.69740117", "0.69238937", "0.68996704", "0.68622947", "0.6820386", "0.68129337", "0.6780349", "0.67659426", "0.6758114", "0.6756686", "0.67451", "0.67075914", "0.67031544", "0.66860694", "0.665761", "0.66458833", "0.66411614", "0.66261446", "0.6607238", "0.6532137", "0.6531369", "0.6503016", "0.65026313", "0.64976335", "0.64968634", "0.64850783", "0.6478251", "0.6475793", "0.6468069", "0.6465374", "0.6465374", "0.64648163", "0.6457745", "0.6442807", "0.64412814", "0.64407355", "0.64394045", "0.64247173", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.6417026", "0.64167774", "0.64167774", "0.64167774", "0.6415909" ]
0.0
-1
Initialize this module after registration
public function initialize() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n // you may place code here to customize the module or the application\n }", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'yiiauth.models.*',\n\t\t\t'yiiauth.components.*',\n\t\t));\n\t}", "protected function init()\n {\n $this->registerExtensions();\n }", "public function init()\n {\n $this->gmodule = new Zfmodules_Model_GroupModules();\n $this->module = new Zfmodules_Model_Modules();\n }", "public function init() {\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'music.models.*',\n\t\t\t'music.components.*',\n\t\t));\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n \n\t\t$this->setImport(array('my.models.*',));\n\t}", "public function init()\r\n {\r\n $this->admin = Shopware()->Modules()->Admin();\r\n $this->basket = Shopware()->Modules()->Basket();\r\n $this->session = Shopware()->Session();\r\n $this->db = Shopware()->Db();\r\n $this->moduleManager = Shopware()->Modules();\r\n $this->eventManager = Shopware()->Events();\r\n }", "public function initialize()\n {\n $autoloader = $this->registerAutoloader();\n $this->registerPlugins($autoloader);\n }", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'user.models.*',\n\t\t\t'user.components.*',\n\t\t\t'application.modules.system.models.*',\n\t\t\t'application.modules.system.components.*',\n\t\t\t'application.modules.storage.models.*',\n\t\t\t'application.modules.storage.components.*'\n\t\t));\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t\t'admin.models.*',\n\t\t\t\t'admin.components.*',\n\t\t));\n\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'admin.models.*',\n\t\t\t'admin.components.*',\n\t\t));\n\t}", "public function init () {\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array( //'sitemap.models.*',\n\t\t 'sitemap.extensions.sitemap.*',\n\t\t));\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'message.models.*',\n\t\t\t'message.components.*',\n 'message.forms.*',\n\t\t));\n\t}", "public function init() {\n // you may place code here to customize the module or the application\n // import the module-level models and components\n $this->setImport(array(\n 'sys.models.*',\n 'product.models.*',\n 'sys.components.*',\n 'hr.models.*',\n ));\n }", "public function _init(){}", "public function _init() {}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'forum.models.*',\n\t\t\t'forum.components.*',\n 'forum.controllers.*',\n\t\t));\n\t}", "public function init() {\n\t\t// you may place code here to customize the module or the application\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'common.components.*',\n\t\t));\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n parent::init();\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'info.models.*',\n\t\t\t'info.components.*',\n\t\t));\n\t}", "public static function _init()\n {\n \\Module::load('authentication');\n }", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'clinics.models.*',\n\t\t\t'clinics.components.*',\n\t\t));\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'admin.models.*',\n\t\t\t'admin.components.*',\n\t\t));\n\n\t\t$this->_initBootstrap();\n\t\t$this->_initJsCss();\n\t}", "public function init(){}", "public function init(){}", "public static function init() {\n static::registerSettings();\n }", "public function initialize() {\n\t\t$this->registerMethod(\"getSettings\");\n\t\t$this->registerMethod(\"setSettings\");\n\t}", "protected function _init()\n {\n }", "public function init() {\n // you may place code here to customize the module or the application\n\n $endName = Yii::app()->endName;\n $this->setImport(array(\n \"users.models.*\",\n \"points.models.*\",\n \"users.{$endName}.components.*\",\n ));\n Yii::app()->onModuleCreate(new CEvent($this));\n }", "public static function _init() {\n // this is called upon loading the class\n }", "protected function init() {\n }", "protected function init() {\n }", "public function init () {\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t 'comments.models.*',\n\t\t 'comments.components.*'\n\t\t ));\n\t}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public 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() {}", "public function _init() {\r\n\r\n }", "public static function init(){\n \n }", "protected function init()\n {\n\n }", "public function initialize() {\n $this->add_hooks_and_filters();\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function _init()\n {\n }", "public function init()\n {\n $this->ctrlModel = new Admin_Model_Acl_ControllersActions();\n $this->dbCtrl = new Admin_Model_DbTable_Acl_ModuleController();\n }", "public static function initModuleLoading(){\n\n\t}", "public function initialize()\n {\n $this->registerMethod(\"getSettings\");\n $this->registerMethod(\"setSettings\");\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "public function init() {\n\n // Set required classes for import.\n $this->setImport(array(\n $this->id . '.components.*',\n $this->id . '.components.behaviors.*',\n $this->id . '.components.dataproviders.*',\n $this->id . '.controllers.*',\n $this->id . '.models.*',\n ));\n\n // Set the required components.\n $this->setComponents(array(\n 'authorizer' => array(\n 'class' => 'RAuthorizer',\n 'superuserName' => $this->superuserName,\n ),\n 'generator' => array(\n 'class' => 'RGenerator',\n ),\n ));\n }", "public static function init()\n {\n }", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "public function init();", "protected function __onInit()\n\t{\n\t}", "public static function init() {\n }", "public static function init() {\n }", "public static function init() {\n }", "private function init() {\n\n\t\tif ( ! $this->should_load() ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->setup_admin();\n\t\t$this->setup_api();\n\t}", "public function init()\n {\n \t\n }" ]
[ "0.790953", "0.7813118", "0.77576345", "0.7730557", "0.764599", "0.7599441", "0.7588092", "0.75687075", "0.75614464", "0.7556077", "0.75351894", "0.7495451", "0.74800724", "0.74587286", "0.7453867", "0.743545", "0.7426692", "0.73997194", "0.73873234", "0.737496", "0.7373657", "0.73366463", "0.7334985", "0.7334985", "0.7326295", "0.7301439", "0.72976005", "0.72874624", "0.72798604", "0.7279388", "0.7279388", "0.7263193", "0.7262204", "0.7262204", "0.7262204", "0.7262204", "0.7262204", "0.72619236", "0.72619236", "0.72619236", "0.72619236", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.7261623", "0.72611445", "0.72611445", "0.7261144", "0.7261144", "0.7261144", "0.7261144", "0.7261144", "0.7261144", "0.7261122", "0.72602606", "0.72500473", "0.7243321", "0.72388184", "0.72388184", "0.72388184", "0.72354543", "0.72313696", "0.72309667", "0.7228001", "0.7225063", "0.7225063", "0.7225063", "0.7225063", "0.7225063", "0.72085744", "0.7208124", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.71874297", "0.7184412", "0.71837556", "0.71837556", "0.71837556", "0.7177658", "0.71634454" ]
0.0
-1
Display status message Display a message colored either positive or negative
protected function _displayStatusMessage($message, $status) { if ($status) { $fg = 0; $bg = 2; } else { $fg = 15; $bg = 1; } $this->_qis->displayMessage($message, true, $fg, $bg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusColorText()\n {\n $status = $this->status;\n $list = self::getStatusOption();\n\n $color = 'default';\n if ($status == self::STATUS_NEW) {\n $color = 'info';\n }\n if ($status == self::STATUS_USED) {\n $color = 'default';\n }\n if ($status == self::STATUS_DONE) {\n $color = 'primary';\n }\n if ($status == self::STATUS_UNCONFIRMED) {\n $color = 'warning';\n }\n\n if (!empty($status) && in_array($status, array_keys($list))) {\n return '<span class=\"label label-' . $color . '\">' . $list[$status] . '</span>';\n }\n return '<span class=\"label label-' . $color . '\">' . Yii::$app->getModule('billing')->t('Unknown') . '</span>';\n }", "function statusMessage()\n {\n }", "protected function renderAlertStatus() {}", "public function getStatusMessage();", "function outputStatusMessage($message, $status) {\n\t\techo '<div class=\"alert alert-'.$status.'\">'.$message.'</div>';\n\t}", "function formatStatus ($txt, $exit_code = 4)\n{\n\t$green = '#66bb6a';\n\t$red = '#f0666c';\n\t$orange = '#ffe57b';\n\t$grey = '#5f6268';\n\t$white = '#fff';\n\t\n\tif ($exit_code == 0)\n\t\t$output = '<span style=\"background-color:'. $green . '; color: ' . $white . '; padding: 1px 3px;\">'. $txt . '</span>';\n\t\n\telseif ($exit_code == 1)\n\t\t$output = '<span style=\"background-color:'. $orange . '; color: ' . $grey . '; padding: 1px 3px;\">'. $txt . '</span>';\n\t\n\telseif ($exit_code == 2)\n\t\t$output = '<span style=\"background-color:'. $red . '; color: ' . $white . '; padding: 1px 3px;\">'. $txt . '</span>';\n\telse\n\t\t$output = $txt;\n\n\treturn $output;\n}", "public function printStatus()\n {\n switch ($this->status) {\n case $this::STATUS_INACTIVE:\n return \\Yii::t('app', 'Inactive');\n break;\n case $this::STATUS_ACTIVE_LOCKED:\n return \\Yii::t('app', 'Locked');\n break;\n case $this::STATUS_ACTIVE_UNLOCKED:\n return \\Yii::t('app', 'Unlocked');\n break;\n }\n\n return \\Yii::t('app', 'Unknown status');\n }", "public function StatusLabel()\n {\n $html = DBHTMLText::create();\n\n if (strpos($this->Status, FlowStatus::COMPLETED) !== false) {\n $html->setValue('<span style=\"color: #449d44;\">' . $this->Status . '</span>');\n } elseif (strpos($this->Status, FlowStatus::FAILED) !== false) {\n $html->setValue('<span style=\"color: #ff0000;\">' . $this->Status . '</span>');\n } else {\n $html->setValue('<span style=\"color: #ec971f;\">' . $this->Status . '</span>');\n }\n\n return $html;\n }", "public function getStatusDescricao() \n {\n switch ($this->status) {\n case self::SEM_NEGOCIACAO:\n return '<span class=\"label label-warning\">Sem Neg.</span>';\n break;\n case self::EM_NEGOCIACAO:\n return '<span class=\"label label-info\">Em Neg.</span>';\n break;\n }\n }", "protected function status( $status )\n\t{\n\t\techo $status . PHP_EOL;\n\t}", "public function statusMessage(): string;", "public function status() {\n if ($this->getWillLend()) {\n if ($this->isItHome()) {\n return 'green';\n }\n else {\n return 'yellow';\n }\n }\n else {\n return 'red';\n }\n }", "public function getStatusLable()\n {\n $status = __('Cancel');\n if ($this->status == 'process')\n $status = __('Process');\n elseif ($this->status == 'done')\n $status = __('Done');\n\n return $status;\n }", "function megaprojectske_status_messages($variables) {\n $display = $variables['display'];\n $output = '';\n\n $status_heading = array(\n 'status' => t('Status message'),\n 'error' => t('Error message'),\n 'warning' => t('Warning message'),\n );\n\n // Map Drupal message types to their corresponding Bootstrap classes.\n // @see http://twitter.github.com/bootstrap/components.html#alerts\n $status_class = array(\n 'status' => 'success',\n 'error' => 'error',\n 'warning' => 'info',\n );\n\n foreach (drupal_get_messages($display) as $type => $messages) {\n $class = (isset($status_class[$type])) ? ' alert-' . $status_class[$type] : '';\n $output .= \"<div class=\\\"alert alert-block$class\\\">\\n\";\n $output .= \" <a class=\\\"close\\\" data-dismiss=\\\"alert\\\" href=\\\"#\\\">x</a>\\n\";\n\n if (!empty($status_heading[$type])) {\n $output .= '<h2 class=\"element-invisible\">' . $status_heading[$type] . \"</h2>\\n\";\n }\n\n if (count($messages) > 1) {\n $output .= \" <ul>\\n\";\n foreach ($messages as $message) {\n $output .= ' <li>' . $message . \"</li>\\n\";\n }\n $output .= \" </ul>\\n\";\n }\n else {\n $output .= $messages[0];\n }\n\n $output .= \"</div>\\n\";\n }\n\n return $output;\n}", "public function getStatusLabelAttribute()\n {\n //ADAPUN VALUENYA AKAN MENCETAK HTML BERDASARKAN VALUE DARI FIELD STATUS\n if ($this->status == 0) {\n return '<span class=\"badge badge-secondary\">Draft</span>';\n }\n return '<span class=\"badge badge-success\">Aktif</span>';\n }", "public function status($status)\n {\n if ($status == 16) {\n return \"<span class='badge badge-warning'>Order Placed</span>\";\n }\n\n if ($status == 3) {\n return \"<span class='badge badge-danger'>Canceled</span>\";\n }\n\n if ($status == 2) {\n return \"<span class='badge badge-warning'>Pending</span>\";\n }\n\n if ($status == 17) {\n return \"<span class='badge badge-danger'>Delivered</span>\";\n }\n\n return \"<span class='badge badge-danger'>Something Wrong</span>\";\n \n }", "private function getStatusMessage(){\n\t\t$status = array(\n\t\t\t\t100 => 'Continue', \n\t\t\t\t101 => 'Switching Protocols', \n\t\t\t\t200 => 'OK',\n\t\t\t\t201 => 'Created', \n\t\t\t\t202 => 'Accepted', \n\t\t\t\t203 => 'Non-Authoritative Information', \n\t\t\t\t204 => 'No Content', \n\t\t\t\t205 => 'Reset Content', \n\t\t\t\t206 => 'Partial Content', \n\t\t\t\t300 => 'Multiple Choices', \n\t\t\t\t301 => 'Moved Permanently', \n\t\t\t\t302 => 'Found', \n\t\t\t\t303 => 'See Other', \n\t\t\t\t304 => 'Not Modified', \n\t\t\t\t305 => 'Use Proxy', \n\t\t\t\t306 => '(Unused)', \n\t\t\t\t307 => 'Temporary Redirect', \n\t\t\t\t400 => 'Bad Request', \n\t\t\t\t401 => 'Unauthorized', \n\t\t\t\t402 => 'Payment Required', \n\t\t\t\t403 => 'Forbidden', \n\t\t\t\t404 => 'Not Found', \n\t\t\t\t405 => 'Method Not Allowed', \n\t\t\t\t406 => 'Not Acceptable', \n\t\t\t\t407 => 'Proxy Authentication Required', \n\t\t\t\t408 => 'Request Timeout', \n\t\t\t\t409 => 'Conflict', \n\t\t\t\t410 => 'Gone', \n\t\t\t\t411 => 'Length Required', \n\t\t\t\t412 => 'Precondition Failed', \n\t\t\t\t413 => 'Request Entity Too Large', \n\t\t\t\t414 => 'Request-URI Too Long', \n\t\t\t\t415 => 'Unsupported Media Type', \n\t\t\t\t416 => 'Requested Range Not Satisfiable', \n\t\t\t\t417 => 'Expectation Failed', \n\t\t\t\t500 => 'Internal Server Error', \n\t\t\t\t501 => 'Not Implemented', \n\t\t\t\t502 => 'Bad Gateway', \n\t\t\t\t503 => 'Service Unavailable', \n\t\t\t\t504 => 'Gateway Timeout', \n\t\t\t\t505 => 'HTTP Version Not Supported');\n\t\treturn ($status[$this->_code]) ? $status[$this->_code] : $status[500];\n\t}", "function GetStatus() {\n if ($this->buttons['lunch_end']) {\n return \"Out to lunch.\";\n }\n if ($this->buttons['work_start']) {\n return \"Not working.\";\n }\n else {\n return \"Working.\";\n }\n }", "public function getStatusLabelAttribute()\n {\n if ($this->status == 0) {\n return '<span class=\"badge badge-primary\">Draft</span>';\n }\n return '<span class=\"badge badge-success\">Publish</span>';\n \n }", "public function runStatusSuccess(string $message): void\n {\n $this->runStatus('<fg=green>' . $message . '</>');\n }", "public function actionColors()\n {\n \t$this->stdout(\"Waiting on important things to happen...\\n\", Console::BOLD);\n \t$yay = $this->ansiFormat('Yay!', Console::FG_CYAN);\n \techo \"$yay! We're done!\\n\";\n \treturn 0;\n }", "function _showStatus() {\r\n $okMessage = implode('<br />', $this->_okMessage);\r\n $errMessage = implode('<br />', $this->_errMessage);\r\n\r\n if (!empty($errMessage)) {\r\n $this->_objTpl->setVariable('FILEBROWSER_ERROR_MESSAGE', $errMessage);\r\n } else {\r\n $this->_objTpl->hideBlock('errormsg');\r\n }\r\n\r\n if (!empty($okMessage)) {\r\n $this->_objTpl->setVariable('FILEBROWSER_OK_MESSAGE', $okMessage);\r\n } else {\r\n $this->_objTpl->hideBlock('okmsg');\r\n }\r\n }", "public function visualRoundStatus($value)\n {\n switch ($value) {\n case 'X':\n // yes\n\n return \\MUtil_Html::create()->i(['class' => 'fa fa-check', 'style' => 'color: green;', 'title' => $this->_('Yes')]);\n break;\n case 'C':\n // Condition\n return \\MUtil_Html::create()->i(['class' => 'fa fa-question-circle', 'style' => 'color: orange;', 'title' => $this->_('Condition')]);\n break;\n default:\n return null;\n }\n }", "public function getStatus() \n {\n if ($this->status) \n {\n \techo 'user status : присутствует<br><br><br>';\n }\n else\n {\n \techo 'user status : отсутствует<br><br><br>';\t\n }\n }", "function zen_spectre_starterkit_status_messages($variables) {\n $display = $variables['display'];\n $output = '';\n\n $status_heading = array(\n 'status' => t('Status message'),\n 'error' => t('Error message'),\n 'warning' => t('Warning message'),\n );\n foreach (drupal_get_messages($display) as $type => $messages) {\n $output .= \"<div class=\\\"messages messages--$type\\\">\\n\";\n if (!empty($status_heading[$type])) {\n $output .= '<h2 class=\"visually-hidden\">' . $status_heading[$type] . \"</h2>\\n\";\n }\n\n if (count($messages) > 1) {\n $output .= \" <ul class=\\\"messages__list\\\">\\n\";\n foreach ($messages as $message) {\n $output .= ' <li class=\"messages__item\">' . $message . \"</li>\\n\";\n }\n $output .= \" </ul>\\n\";\n }\n else {\n $output .= reset($messages);\n }\n $output .= \"</div>\\n\";\n }\n return $output;\n}", "public function getStatusAdmin()\n {\n switch ($this->status) {\n case 0:\n return '<span class=\"label label-danger\">Open</span>';\n case 1:\n return '<span class=\"label label-success\">Closed</span>';\n }\n }", "public function message(int $status): string\n {\n }", "public function display_status($status){\n\t\tif($status == '1'){\n\t\t\t$st = 'Active';\n\t\t}else{\t\n\t \t\t$st = 'Inactive';\n\t\t}\n\t\treturn $st;\n\t}", "public function statusButton() {\n\t\t$code = $this->status['code'];\n\t\tif ($code === '0'){\n\t\t\treturn '<div class=\"status-button s'.$code.'\">Closed</div>';\n\t\t}else if($code === '1'){\n\t\t\treturn '<div class=\"status-button s'.$code.'\">On Hold</div>';\n\t\t}else if($code === '2'){\n\t\t\treturn '<div class=\"status-button s'.$code.'\">Open</div>';\n\t\t}else if($code === '3'){\n\t\t\t$openingDate = ($this->status['openingdate'] === '') ? 'soon' : date(\"j M\", strtotime($this->status['openingdate']));\n\t\t\treturn '<div class=\"status-button s'.$code.'\">Opening '.$openingDate.'</div>'; \n\t\t}else if($code === '4'){\n\t\t\treturn '<div class=\"status-button s'.$code.'\">Closed <span>For Season</span></div>'; \n\t\t}else if($code === '5'){ \n\t\t\t$updateTime = ($this->status['updatetime'] === '') ? 'No Estimate' : 'Estimated: '.date(\"g:ia\", strtotime($this->status['updatetime']));\n\t\t\treturn '<div class=\"status-button s'.$code.'\">Delayed Opening</div>\n\t\t\t\t\t<div class=\"estimate\">'.$updateTime.'</div>'; \n\t\t}\n\t}", "public function getFormattedStatus(): string;", "function decorate_status($status) {\n\t\t\tswitch (strtolower($status)){\n\t\t\t\t\t\t\tcase 'completed':\n\t\t\t\t\t\t\t\t$status = \"<span class='label label-success'>$status</span>\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'on hold':\n\t\t\t\t\t\t\t\t$status = \"<span class='label label-warning'>$status</span>\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'expired':\n\t\t\t\t\t\t\tcase 'overdue':\n\t\t\t\t\t\t\t\t$status = \"<span class='label label-danger'>$status</span>\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'pending':\n\t\t\t\t\t\t\t\t$status = \"<span class='label label-default'>$status</span>\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\treturn $status;\n}", "function statusColors($statusC)\n{\n\tif ($statusC == 0) return \"#CCC\"; //inactiv\n\tif ($statusC == 1) return \"green\"; //activ\n\tif ($statusC == 2) return \"rgb(245, 160, 3)\"; //waiting\n\tif ($statusC == 3) return \"rgb(221, 36, 3);\"; //not paid\n\t//else return \"\";\n}", "public function getStatusLabelAttribute()\n {\n //ADAPUN VALUENYA AKAN MENCETAK HTML BERDASARKAN VALUE DARI FIELD STATUS\n if ($this->status == 'draft') {\n return '<span class=\"badge badge-secondary\">Draft</span>';\n }\n else {\n return '<span class=\"badge badge-success\">Aktif</span>';\n }\n }", "function getStatusMessage(){\n\t\tif($this->_StatusMessage){ return $this->_StatusMessage; }\n\n\t\t//cerpano z\n\t\t//http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\n\t\t$status = array(\n\t\t\t// Successful 2xx\n\t\t\t\"200\" => \"OK\",\n\t\t\t\"201\" => \"Created\",\n\t\t\t\"202\" => \"Accepted\",\n\t\t\t\"203\" => \"Non-Authoritative Information\",\n\t\t\t\"204\" => \"No Content\",\n\t\t\t\"205\" => \"Reset Content\",\n\t\t\t\"206\" => \"Partial Content\",\n\t\t\t// Redirection 3xx\n\t\t\t\"300\" => \"Multiple Choices\",\n\t\t\t\"301\" => \"Moved Permanently\",\n\t\t\t\"302\" => \"Found\",\n\t\t\t\"303\" => \"See Other\",\n\t\t\t\"304\" => \"Not Modified\",\n\t\t\t\"305\" => \"Use Proxy\",\n\t\t\t// (306 Unused)\n\t\t\t\"307\" => \"Temporary Redirect\",\n\t\t\t// Client Error 4xx\n\t\t\t\"400\" => \"Bad Request\",\n\t\t\t\"401\" => \"Unauthorized\",\n\t\t\t\"402\" => \"Payment Required\",\n\t\t\t\"403\" => \"Forbidden\",\n\t\t\t\"404\" => \"Not Found\",\n\t\t\t\"405\" => \"Method Not Allowed\",\n\t\t\t\"406\" => \"Not Acceptable\",\n\t\t\t\"407\" => \"Proxy Authentication Required\",\n\t\t\t\"408\" => \"Request Timeout\",\n\t\t\t\"409\" => \"Conflict\",\n\t\t\t\"410\" => \"Gone\",\n\t\t\t\"411\" => \"Length Required\",\n\t\t\t\"412\" => \"Precondition Failed\",\n\t\t\t\"413\" => \"Request Entity Too Large\",\n\t\t\t\"414\" => \"Request-URI Too Long\",\n\t\t\t\"415\" => \"Unsupported Media Type\",\n\t\t\t\"416\" => \"Requested Range Not Satisfiable\",\n\t\t\t\"417\" => \"Expectation Failed\",\n\t\t\t\"418\" => \"I'm a teapot\",\n\t\t\t// Server Error 5xx\n\t\t\t\"500\" => \"Internal Server Error\",\n\t\t\t\"501\" => \"Not Implemented\",\n\t\t\t\"502\" => \"Bad Gateway\",\n\t\t\t\"503\" => \"Service Unavailable\",\n\t\t\t\"504\" => \"Gateway Timeout\",\n\t\t\t\"505\" => \"HTTP Version Not Supported\",\n\t\t\t\"506\" => \"Variant Also Negotiates\",\n\t\t\t\"507\" => \"Insufficient Storage\",\n\t\t);\n\t\treturn isset($status[\"$this->_StatusCode\"]) ? $status[\"$this->_StatusCode\"] : \"Unknown\";\n\t}", "public function repStatus()\n\t {\t\n\t\tif($this->rep < 0){\n\t\t\t$rep_status = 'negative';\n\t\t}else{\n\t\t\t$rep_status = 'positive';\n\t\t}\n\t\treturn $rep_status;\n\t }", "public function statusBadge() {\n return \"<label class='badge badge-{$this->status->css_class}'> &bullet; {$this->status->name}</label>\";\n }", "public function getStatusDescription($status = 0){\r\n\t\t$retval=\"gray.gif\";\r\n\t\t\r\n\t\tif($status == 0){\r\n\t\t\t$status = $this->status;\r\n\t\t}\r\n\t\t\r\n\t\tswitch ($status) {\r\n\t\t\tcase 1: $retval = \"Angelegt\";break;\r\n\t\t\tcase 2: $retval = \"Gesendet u. Bestellt\";break;\r\n\t\t\tcase 3: $retval = \"In Bearbeitung\";break;\r\n\t\t\tcase 4: $retval = \"Fertig u. im Versand\";break;\r\n\t\t\tcase 5: $retval = \"Fertig u. Abholbereit\";break;\r\n\t\t\tdefault: $retval=\"...\";\r\n\t\t}\r\n\t\treturn $retval;\r\n\t}", "function dev_cf_display_status( $name, $post_id ) {\n\n\t$status = dev_get_ticket_status( $post_id );\n\n\tif ( 'closed' === $status ) {\n\t\t$label = __( 'Closed', 'awesome-support' );\n\t\t$color = dev_get_option( \"color_$status\", '#dd3333' );\n\t\t$tag = \"<span class='dev-label' style='background-color:$color;'>$label</span>\";\n\t} else {\n\n\t\t$post = get_post( $post_id );\n\t\t$post_status = $post->post_status;\n\t\t$custom_status = DevSupport\\Posts\\Tickets::get_post_status();\n\n\t\tif ( ! array_key_exists( $post_status, $custom_status ) ) {\n\t\t\t$label = __( 'Open', TEXTDOMAIN );\n\t\t\t$color = dev_get_option( \"color_$status\", '#169baa' );\n\t\t\t$tag = \"<span class='dev-label' style='background-color:$color;'>$label</span>\";\n\t\t} else {\n\t\t\t$defaults = array(\n\t\t\t\t'queued' => '#1e73be',\n\t\t\t\t'processing' => '#a01497',\n\t\t\t\t'hold' => '#b56629'\n\t\t\t);\n\t\t\t$label = $custom_status[ $post_status ];\n\t\t\t$color = dev_get_option( \"color_$post_status\", false );\n\n\t\t\tif ( false === $color ) {\n\t\t\t\tif ( isset( $defaults[ $post_status ] ) ) {\n\t\t\t\t\t$color = $defaults[ $post_status ];\n\t\t\t\t} else {\n\t\t\t\t\t$color = '#169baa';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$tag = \"<span class='dev-label' style='background-color:$color;'>$label</span>\";\n\t\t}\n\t}\n\n\techo $tag;\n\n}", "function gwt_drupal_status_messages($variables) {\n $display = $variables['display'];\n $output = '';\n\n $status_heading = array(\n 'status' => t('Status message'),\n 'error' => t('Error message'),\n 'warning' => t('Warning message'),\n );\n foreach (drupal_get_messages($display) as $type => $messages) {\n $output .= \"<div class=\\\"messages--$type messages $type\\\">\\n\";\n if (!empty($status_heading[$type])) {\n $output .= '<h2 class=\"element-invisible\">' . $status_heading[$type] . \"</h2>\\n\";\n }\n if (count($messages) > 1) {\n $output .= \" <ul class=\\\"messages__list\\\">\\n\";\n foreach ($messages as $message) {\n $output .= ' <li class=\\\"messages__item\\\">' . $message . \"</li>\\n\";\n }\n $output .= \" </ul>\\n\";\n }\n else {\n $output .= $messages[0];\n }\n $output .= \"</div>\\n\";\n }\n return $output;\n}", "private function send_status()\n {\n switch ($this->_status) \n {\n case 100: $text = 'Continue'; break;\n case 101: $text = 'Switching Protocols'; break;\n case 200: $text = 'OK'; break;\n case 201: $text = 'Created'; break;\n case 202: $text = 'Accepted'; break;\n case 203: $text = 'Non-Authoritative Information'; break;\n case 204: $text = 'No Content'; break;\n case 205: $text = 'Reset Content'; break;\n case 206: $text = 'Partial Content'; break;\n case 300: $text = 'Multiple Choices'; break;\n case 301: $text = 'Moved Permanently'; break;\n case 302: $text = 'Moved Temporarily'; break;\n case 303: $text = 'See Other'; break;\n case 304: $text = 'Not Modified'; break;\n case 305: $text = 'Use Proxy'; break;\n case 400: $text = 'Bad Request'; break;\n case 401: $text = 'Unauthorized'; break;\n case 402: $text = 'Payment Required'; break;\n case 403: $text = 'Forbidden'; break;\n case 404: $text = 'Not Found'; break;\n case 405: $text = 'Method Not Allowed'; break;\n case 406: $text = 'Not Acceptable'; break;\n case 407: $text = 'Proxy Authentication Required'; break;\n case 408: $text = 'Request Time-out'; break;\n case 409: $text = 'Conflict'; break;\n case 410: $text = 'Gone'; break;\n case 411: $text = 'Length Required'; break;\n case 412: $text = 'Precondition Failed'; break;\n case 413: $text = 'Request Entity Too Large'; break;\n case 414: $text = 'Request-URI Too Large'; break;\n case 415: $text = 'Unsupported Media Type'; break;\n case 500: $text = 'Internal Server Error'; break;\n case 501: $text = 'Not Implemented'; break;\n case 502: $text = 'Bad Gateway'; break;\n case 503: $text = 'Service Unavailable'; break;\n case 504: $text = 'Gateway Time-out'; break;\n case 505: $text = 'HTTP Version not supported'; break;\n default:\n exit('Unknown http status code \"' . htmlentities($this->_status) . '\"');\n break;\n }\n\n $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');\n\n header($protocol . ' ' . $this->_status . ' ' . $text);\n }", "function wimbase_status_messages($variables) {\n $display = $variables['display'];\n $output = '';\n\n $status_heading = [\n 'status' => t('Status message'),\n 'error' => t('Error message'),\n 'warning' => t('Warning message'),\n 'info' => t('Informative message'),\n ];\n\n // Map Drupal message types to their corresponding Bootstrap classes.\n // @see http://twitter.github.com/bootstrap/components.html#alerts\n $status_class = [\n 'status' => 'success',\n 'error' => 'danger',\n 'warning' => 'warning',\n // Not supported, but in theory a module could send any type of message.\n // @see drupal_set_message()\n // @see theme_status_messages()\n 'info' => 'info',\n ];\n\n $dismiss_alert = t('Dismiss alert');\n\n // Retrieve messages.\n $message_list = drupal_get_messages($display);\n\n // Allow the disabled_messages module to filter the messages, if enabled.\n if (module_exists('disable_messages') && variable_get('disable_messages_enable', '1')) {\n $message_list = disable_messages_apply_filters($message_list);\n }\n\n foreach ($message_list as $type => $messages) {\n $class = (isset($status_class[$type])) ? ' alert-' . $status_class[$type] : '';\n $output .= \"<div class=\\\"alert alert-block$class messages $type\\\">\\n\";\n $output .= \" <a class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-label=\\\"{$dismiss_alert}\\\" title=\\\"{$dismiss_alert}\\\" href=\\\"#\\\">&times;</a>\\n\";\n\n if (!empty($status_heading[$type])) {\n $output .= '<h4 class=\"element-invisible\">' . _bootstrap_filter_xss($status_heading[$type]) . \"</h4>\\n\";\n }\n\n if (count($messages) > 1) {\n $output .= \" <ul>\\n\";\n foreach ($messages as $message) {\n $attributes = drupal_attributes(['id' => md5($message)]);\n $output .= ' <li ><span ' . $attributes . '>' . _bootstrap_filter_xss($message) . \"</span></li>\\n\";\n }\n $output .= \" </ul>\\n\";\n }\n else {\n $attributes = drupal_attributes(['id' => md5($messages[0])]);\n $output .= '<span ' . $attributes . '>' . _bootstrap_filter_xss($messages[0]) . '</span>';\n }\n\n $output .= \"</div>\\n\";\n }\n return $output;\n}", "public function getStatusLabel()\n {\n return $this->status === 10 ? 'Active' : 'Inactive';\n }", "public static function getStatusText($status)\n {\n switch ($status) {\n case '1':\n return 'Отображается';\n break;\n case '0':\n return 'Скрыта';\n break;\n }\n }", "public static function status($status) {}", "public function runStatusError(string $message): void\n {\n $this->runStatus('<fg=red>' . $message . '</>');\n }", "public function actionColors()\n {\n $this->stdout(\"Waiting on important thing to happen...\\n\", Console::BOLD);\n\n $yay = $this->ansiFormat('Yay', Console::FG_CYAN);\n echo \"$yay! We're done!\\n\";\n return Controller::EXIT_CODE_NORMAL;\n }", "function formatStatus($status)\n{\n\tswitch ($status)\n\t{\n\t\tcase 'Active':\n\t\t\treturn \"<span class=\\\"label label-success\\\">Active</span>\";\n\n\t\tcase 'Inactive':\n\t\t\treturn \"<span class=\\\"label\\\">Inactive</span>\";\n\n\t\tcase 'Suspended':\n\t\t\treturn \"<span class=\\\"label label-warning\\\">Suspended</span>\";\n\n\t\tcase 'Pending':\n\t\t\treturn \"<span class=\\\"label label-warning\\\">Pending</span>\";\n\n\t\tcase 'Online':\n\t\t\treturn \"<span class=\\\"label label-success\\\">Online</span>\";\n\n\t\tcase 'Offline':\n\t\t\treturn \"<span class=\\\"label label-important\\\">Offline</span>\";\n\n\t\tcase 'Started':\n\t\t\treturn \"<span class=\\\"label label-success\\\">Started</span>\";\n\n\t\tcase 'Stopped':\n\t\t\treturn \"<span class=\\\"label label-warning\\\">Stopped</span>\";\n\n\t\tdefault:\n\t\t\treturn \"<span class=\\\"label\\\">Default</span>\";\n\t}\n}", "public function statusClass()\n {\n if ($this->name == 'In Progress') {\n return 'bg-yellow text-white';\n }\n\n if ($this->name == 'Closed') {\n return 'bg-red text-white';\n }\n\n if ($this->name == 'Implemented') {\n return 'bg-green text-white';\n }\n\n if ($this->name == 'Considering') {\n return 'bg-purple text-white';\n }\n\n return 'bg-gray-200';\n }", "function error_message($msg){\n $style='background-color: #FFAAAA; ';\n echo \"\\n\\n<span style='$style'>$msg</span>\\n\\n\";\n}", "public function status($html = false) {\n\t\t\t$msg = $this->run(\"status\");\n\t\t\tif ($html == true) {\n\t\t\t\t$msg = str_replace(\"\\n\", \"<br />\", $msg);\n\t\t\t}\n\t\t\treturn $msg;\n\t\t}", "public static function getStatusMessage()\n {\n switch(self::status())\n {\n case 'PLEXCEL_NO_CREDS':\n return \"no creds\";\n break;\n case 'PLEXCEL_PRINCIPAL_UNKNOW':\n return \"principal unknow\";\n break;\n case 'PLEXCEL_LOGON_FAILED':\n return \"logon failed\";\n break;\n default:\n return \"error :\".self::status();\n }\n }", "public function _summary() {\n $text = $this->_failed ? 'TESTS FAILED!' : 'TESTS PASSED';\n $result = $this->_colors->getColoredString($text, $this->_colorsPalete[!$this->_failed]);\n $this->_log($result);\n }", "public function getHttpStatusMessage() {\n\t}", "function show_what($item) {\n if ( $item->active ==1 ) {\n return sprintf('<span style=\"color: red;\">%s</span>','Remove');\n } else {\n return sprintf('<span style=\"color: green;\">%s</span>','Apply');\n }\n }", "public function status();", "public function status();", "function humanize_status($val)\n{\n if ($val)\n {\n return \"Activa\";\n }\n else \n {\n return \"Inactiva\";\n }\n}", "function _getStatusMessage(){\n $status = array(\n 200 => 'Ok' ,\n 201 => 'Created' ,\n 202 => 'deleted' ,\n 204 => 'No Content' ,\n 400 => 'Bad Request',\n 404 => 'Not Found' ,\n 405 => 'Not Allowed' ,\n 406 => 'Not Acceptable',\n\n );\n return ($status[$this->CodeHTTP] ? $status[$this->CodeHTTP] : $status[500]);\n }", "public function getStatusMessage()\n\t{\n\t\t$actionPhrase = 'Deleting';\n\t\t$typePhrase = 'Add-on data';\n\n\t\t$currentType = ucfirst(str_replace('_', ' ', $this->currentType));\n\n\t\t if ($currentType)\n\t\t{\n\t\t\treturn sprintf('%s... %s (%s)', $actionPhrase, $typePhrase, $currentType);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn sprintf('%s... %s', $actionPhrase, $typePhrase);\n\t\t}\n\t}", "public function status()\n {\n $this->response->text('OK');\n }", "function update_failed($msg1, $msg2)\n{\n\techo \"$msg1<br />\\n\";\n\techo \"<span style=\\\"color:red;\\\">$msg2</span>\\n\";\n\techo \"</p>\\n\\n</div>\\n\\n</body>\\n\\n</html>\\n\";\n\texit(1);\n}", "function print_warning($val) {\n\n\nreturn \"<font color=\\\"red\\\">$val</font>\";\n}", "public function getStatus () {\n\n\t// TODO\n\n\treturn \"invalid\";\n }", "public function howAreYouDoing() \r\n {\r\n $health = $this->healthLevel;\r\n $status = '';\r\n switch (true) {\r\n case ($health >= 70):\r\n $status = \"Awesome\";\r\n break;\r\n case($health < 70 && $health >= 20):\r\n $status = \"Meh\";\r\n break;\r\n case ($health < 20 && $health > 0):\r\n $status = \"Bad\";\r\n break;\r\n case ($health <= 0):\r\n $status = \"El Muerto\";\r\n break;\r\n default:\r\n $status = \"Error\"; // In theory we should never get here\r\n break;\r\n }\r\n return $status;\r\n }", "public function getStatus() {\n\t\t$code = $this->status['code'];\n\t\tif ($code === '0'){\n\t\t\treturn 'Closed';\n\t\t}else if($code === '1'){\n\t\t\treturn 'On Hold';\n\t\t}else if($code === '2'){\n\t\t\treturn 'Open';\n\t\t}else if($code === '3'){\n\t\t\t$openingDate = ($this->status['openingdate'] === '') ? 'soon' : date(\"j M\", strtotime($this->status['openingdate']));\n\t\t\treturn 'Opening '.$openingDate; \n\t\t}else if($code === '4'){\n\t\t\treturn 'Closed For Season'; \n\t\t}else if($code === '5'){ \n\t\t\t$updateTime = ($this->status['updatetime'] === '') ? 'No Estimate' : 'Estimated: '.date(\"g:ia\", strtotime($this->status['updatetime']));\n\t\t\treturn 'Delayed '.$updateTime; \n\t\t}\n\t}", "function displayNoticeWithStyle($arg) {\r\n if ($arg < 3) {\r\n echo '<div class=\"notice success\">';\r\n } else if ($arg == 3) {\r\n echo '<div class=\"notice warning\">';\r\n } else if ($arg > 3) {\r\n echo '<div class=\"notice error\">';\r\n }\r\n echo '<i class=\"icon-ok icon-large\">';\r\n}", "public function getStatusLabelAttribute()\n{\n if ($this->status == 0) {\n return '<span class=\"badge badge-secondary\">Draft</span>';\n }\n return '<span class=\"badge badge-success\">Aktif</span>';\n}", "public function status($price, $paid) {\n if(($price - $paid) > 0){\n return 'PEN';\n }else{\n return 'CLO';\n }\n }", "public function status_label(){\n\t\t$label='';\n\t\t\tswitch($this->status){\n\t\t\t\tCASE '1' : $label = 'label-info';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '2' : $label = 'label-info';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '3' : $label = 'label-info';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '4' : $label = 'label-success';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '5' : $label = 'label-info';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '6' : $label = 'label-info';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '7' : $label = 'label-warning';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '8' : $label = 'label-danger';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '9' : $label = 'label-danger';\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tCASE '11' : $label = 'label-success';\n\t\t\t\t\tbreak;\n\t\t\t\tCASE '15' : $label = 'label-danger';\n\t\t\t\t\tbreak;\t\n\t\t\t}\n\t\treturn $label;\n\t}", "public function display_user_status($status){\n\t\tif($status == '0'){\n\t\t\t$st = 'Active';\n\t\t}elseif($status == '1'){\t\n\t \t\t$st = 'Inactive';\n\t\t}\n\t\treturn $st;\n\t}", "public function getStatusText()\n {\n return $this->statusText;\n }", "public function getStatusText()\r\n {\r\n return $this->status_text;\r\n }", "function display_message($msg,$level) {\n\tswitch($level) {\n\t\tcase 1:\n\t\t\techo \"<div class=\\\"alert alert-success\\\" align=\\\"center\\\">\n\t\t\t\t\t\t\t<strong> $msg </strong>\n\t\t\t\t\t\t </div>\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\techo \"<div class=\\\"alert alert-info\\\" align=\\\"center\\\">\n\t\t\t\t\t\t\t<strong> $msg </strong>\n\t\t\t\t\t\t </div>\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\techo \"<div class=\\\"alert alert-success\\\" align=\\\"center\\\">\n\t\t\t\t\t\t\t<strong> $msg </strong>\n\t\t\t\t\t\t </div>\";\n\t}\n}", "public function getStatusText()\n {\n return $this->statusText;\n }", "public function get_status_text($status)\n\t{\n\t\tif($status == 1)\n\t\t{\n\t\t\t$status_text = 'Active';\n\t\t}\n\t\telseif($status == 0)\n\t\t{\n\t\t\t$status_text = 'Inactive';\n\t\t}\n\t\treturn $status_text;\n\t}", "public function displayLicenseStatus($status, $previousStatus)\n {\n if ($status !== false) {\n if ($status == VALID || $previousStatus == VALID) {\n ?>\n <span style=\"color:green;\"><?php _e('Active', $this->pluginSlug);\n ?></span>\n <?php\n } elseif ($status == EXPIRED || $previousStatus == EXPIRED) {\n ?>\n <span style=\"color:red;\"><?php _e('Expired', $this->pluginSlug);\n ?></span>\n <?php\n } else {\n ?>\n <span style=\"color:red;\"><?php _e('Not Active', $this->pluginSlug) ?></span>\n <?php\n }\n }\n\n if ($status === false) {\n ?>\n <span style=\"color:red;\"><?php _e('Not Active', $this->pluginSlug) ?></span>\n <?php\n }\n }", "function statusCaption($status) {\n\t\tswitch($status) {\n\t\t\tcase KontakteData::$STATUS_ADMIN: return \"Administrator\";\n\t\t\tcase KontakteData::$STATUS_MEMBER: return \"Mitglied\";\n\t\t\tcase KontakteData::$STATUS_EXTERNAL: return \"Externer Mitspieler\";\n\t\t\tcase KontakteData::$STATUS_APPLICANT: return \"Bewerber\";\n\t\t\tdefault: return \"Sonstiger Kontakt\";\n\t\t}\n\t}", "protected function outputSuccessMessage(string $message)\n {\n $this->outputLine(\"<fg=green>$message</>\");\n }", "public function getStatus()\n {\n return 'OK';\n }", "public function status_cls($status){\n\t\tif($status == '1'){\n\t\t $stat = 'success';\n\t\t}else{\t\n\t\t $stat = 'important';\t\n\t\t}\n\t\treturn $stat;\n\t}", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "function getStatus() ;", "function getStatus() ;", "function getStatus() ;", "public function statusToText(){\n\n if($this->trashed()){\n return 'deleted';\n }\n switch($this->status){\n\n case 0:\n return 'unapproved';\n\n case 1:\n return 'pending';\n \n case 2:\n return 'approved';\n\n default:\n return 'unknown';\n\n }\n return 'unknown';\n }", "public function getStatus(): void{\n\n echo json_encode([ 'Undefined','To start','In progress','Stopped','Finished' ]);\n\n }", "function alterarStatus() {\n\n\t\t$codigoParaAlterar = $_GET['codigo'];\n\t\t$statusAutal = $_GET['status'];\n\n\t\tif (true){\n\n\t\t\techo '<div class=\"alert alert-success\"><strong> Status do codigo \"'.$codigoParaAlterar.'\" alterado com sucesso!</strong> </div>';\n\n\t\t}else{\n\n\t\t\techo \"<div class='alert alert-danger espacoForm'><strong>Edição não realizada!</strong> Ocorreu um erro.</div>\";\n\n\t\t}\n\n\n\t}", "function atkActionStatus($status)\n{\n\tswitch ($status)\n\t{\n\t\tcase ACTION_CANCELLED: return \"cancelled\";\n\t\tcase ACTION_FAILED: return \"failed\";\n\t\tcase ACTION_SUCCESS: return \"success\";\n\t}\n}", "public function status()\n {\n //Check for fatality\n if ($this->fatal_state == 'feed') {\n return $this->config::hungryStatusLabel()[5];\n }\n if ($this->fatal_state == 'stroke') {\n return $this->config::happyStatusLabel()[5];\n }\n //Get the current hungry and happy status\n $feed_status = $this->state(\n 'feed', \n $this->config::overfeed(),\n $this->feed_coef,\n $this->config::hungryStatusLabel(),\n $this->config::feedScale()\n );\n $stroke_status = $this->state(\n 'stroke', \n $this->config::overstroke(),\n $this->stroke_coef,\n $this->config::happyStatusLabel(),\n $this->config::strokeScale()\n );\n $return = new \\stdClass();\n $return->feed_status = $feed_status;\n $return->stroke_status = $stroke_status;\n return $return;\n }", "public function approvedBadge() {\n\n if($this->is_approved) {\n $css_class = 'success';\n $text = 'Approved';\n } else {\n $css_class = 'danger';\n $text = 'Unapproved';\n }\n\n return \"<label class='badge badge-{$css_class}'> &bullet; {$text}</label>\";\n }", "public function getStatusText()\n {\n return $this->statusText;\n }" ]
[ "0.7004245", "0.69748497", "0.6930409", "0.68413496", "0.6794599", "0.67059666", "0.6540996", "0.6418441", "0.6410039", "0.63835186", "0.6378963", "0.6374358", "0.6367875", "0.63678426", "0.6346502", "0.6300922", "0.62924993", "0.6289005", "0.62788385", "0.6262082", "0.6244352", "0.6237843", "0.6233112", "0.62238663", "0.62170035", "0.61943936", "0.6189822", "0.6189531", "0.6163051", "0.6154978", "0.61402756", "0.6128069", "0.61264163", "0.61121994", "0.6111811", "0.6063924", "0.6062245", "0.6062165", "0.6061517", "0.60547554", "0.6051214", "0.6048735", "0.604407", "0.60391986", "0.60313976", "0.6017322", "0.59854835", "0.59794956", "0.5969045", "0.59593916", "0.5954947", "0.5954648", "0.59545773", "0.5951682", "0.59426814", "0.59426814", "0.5936581", "0.59120864", "0.5909955", "0.5907506", "0.5892494", "0.5882179", "0.58804953", "0.58735025", "0.5860057", "0.5854539", "0.5827829", "0.5816531", "0.58118534", "0.5805689", "0.58035225", "0.5803384", "0.57995933", "0.57943267", "0.57842946", "0.57806534", "0.5776185", "0.57742417", "0.57739246", "0.57672733", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624406", "0.57624376", "0.5762131", "0.5762131", "0.5761212", "0.57357126", "0.5731508", "0.57278156", "0.57250226", "0.57250047", "0.57176006" ]
0.6488445
7
Get Help message for this module
public function getHelpMessage() { return "Get summary of a module or all modules\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function help()\n {\n // You could include a file and return it here.\n return \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\n }", "public function get_help()\n\t{\n\t\treturn '';\n\t}", "public function help()\r\n\t{\r\n\t\t// You could include a file and return it here.\r\n\t\treturn \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\r\n\t}", "function GetHelp()\n {\n return $this->Lang('help');\n }", "public function getExtendedHelpMessage()\n {\n $out = $this->getHelpMessage() . \"\\n\";\n\n $out .= \"Usage: summary [--short] [module]\\n\"\n . \"Show the summary of the most recent results of each module.\\n\"\n . \"If a module name is provided as an argument, it\\n\"\n . \"will display only the summary for that module.\\n\\n\"\n . \"This is the default module that is run when no\\n\"\n . \"module name is given when running qis.\\n\";\n\n $out .= \"\\nValid Options:\\n\"\n . $this->_qis->getTerminal()->do_setaf(3)\n . \" --short : Show only short information\\n\"\n . $this->_qis->getTerminal()->do_op();\n\n return $out;\n }", "public function getHelp(): string\n {\n return $this->help;\n }", "public function help()\r\n{\r\n // You could include a file and return it here.\r\n return \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\r\n}", "public function get_help_page()\n\t{\n\t\t$this->load_misc_methods();\n\t\treturn cms_module_GetHelpPage($this);\n\t}", "public function getHelp()\n\t{\n\t\treturn $this->run(array('help'));\n\t}", "public function getHelpMessage() { return $this->data['helpMessage']; }", "public function getHelp() {\n\t\treturn $this->help;\n\t}", "public function getHelp() {\n\t\treturn $this->help;\n\t}", "public function getHelp()\n {\n return $this->run(array(\n 'help'\n ));\n }", "public function getHelp()\n\t{\n\t return '<info>Console Tool</info>';\n\t}", "function getHelp()\n {\n return $this->help;\n }", "public function get_help(){\n $tmp=self::_pipeExec('\"'.$this->cmd.'\" --extended-help');\n return $tmp['stdout'];\n }", "public function printHelp();", "public function help();", "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"<h4>Overview</h4>\n\t\t<p>The Inventory module will work like magic. The End!</p>\";\n\t}", "protected function displayHelp()\n {\n return $this->context->smarty->fetch($this->module->getLocalPath().'views/templates/admin/rewards_info.tpl');\n }", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "public function help ()\n {\n $msg = 'databaseデータをdata/fixtures/items.dbへダンプする';\n\n return $msg;\n }", "public function cli_help() {}", "public function getHelp()\n {\n new Help('form');\n }", "public function help() {\r\n return array(\"Success\" => \"Hello World\");\r\n }", "public function getCommandHelp()\n {\n return <<<HELP\n\n\\e[33mOutputs information about PHP's configuration.\\e[0m\n\n\\e[36mUsage:\\e[0m \\e[32mcfg info get [--what WHAT]\\e[0m\n \n Displays information about the current state of PHP.\n The output may be customized by passing constant \\e[30;1mWHAT\\e[0m which corresponds to the appropriate parameter of function phpinfo().\n\nHELP;\n }", "public function getHelp()\n {\n $this->parseDocBlock();\n return $this->help;\n }", "public function getHelp() {\n $help = parent::getHelp();\n $global_options = $this->getGlobalOptions();\n if (!empty($global_options)) {\n $help .= PHP_EOL . 'Global options:';\n foreach ($global_options as $name => $value) {\n $help .= PHP_EOL . ' [' . $name . '=' . $value . ']';\n }\n }\n return $help;\n }", "abstract public function displayHelp();", "protected function renderHelp() {}", "public function getProcessedHelp(): string\n {\n $name = $this->name;\n $isSingleCommand = $this->application?->isSingleCommand();\n\n $placeholders = [\n '%command.name%',\n '%command.full_name%',\n ];\n $replacements = [\n $name,\n $isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'].' '.$name,\n ];\n\n return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription());\n }", "function ShowAdminHelp()\r\n{\r\n\tglobal $txt, $helptxt, $context, $scripturl;\r\n\r\n\tif (!isset($_GET['help']) || !is_string($_GET['help']))\r\n\t\tfatal_lang_error('no_access', false);\r\n\r\n\tif (!isset($helptxt))\r\n\t\t$helptxt = array();\r\n\r\n\t// Load the admin help language file and template.\r\n\tloadLanguage('Help');\r\n\r\n\t// Permission specific help?\r\n\tif (isset($_GET['help']) && substr($_GET['help'], 0, 14) == 'permissionhelp')\r\n\t\tloadLanguage('ManagePermissions');\r\n\r\n\tloadTemplate('Help');\r\n\r\n\t// Set the page title to something relevant.\r\n\t$context['page_title'] = $context['forum_name'] . ' - ' . $txt['help'];\r\n\r\n\t// Don't show any template layers, just the popup sub template.\r\n\t$context['template_layers'] = array();\r\n\t$context['sub_template'] = 'popup';\r\n\r\n\t// What help string should be used?\r\n\tif (isset($helptxt[$_GET['help']]))\r\n\t\t$context['help_text'] = $helptxt[$_GET['help']];\r\n\telseif (isset($txt[$_GET['help']]))\r\n\t\t$context['help_text'] = $txt[$_GET['help']];\r\n\telse\r\n\t\t$context['help_text'] = $_GET['help'];\r\n\r\n\t// Does this text contain a link that we should fill in?\r\n\tif (preg_match('~%([0-9]+\\$)?s\\?~', $context['help_text'], $match))\r\n\t\t$context['help_text'] = sprintf($context['help_text'], $scripturl, $context['session_id'], $context['session_var']);\r\n}", "public function help(ElggEntity $entity) {\n\t\treturn $this->makeLabel($entity, \"{$this->name}:help\");\n\t}", "public function helpAction() {}", "function help()\n\t{\n\t\t/* check if all required plugins are installed */\n\t\t\n\t\t$text = \"<div class='center buttons-bar'><form method='post' action='\".e_SELF.\"?\".e_QUERY.\"' id='core-db-import-form'>\";\n\t\t$text .= e107::getForm()->admin_button('importThemeDemo', 'Install Demo', 'other');\n\t\t$text .= '</form></div>';\n \n\t \treturn $text;\n\t}", "private function getHelpMessage()\n {\n return <<<EOT\nO comando <info>cekurte:group:update</info> atualiza o nome de um grupo na base de dados:\n\n<info>php app/console cekurte:group:update NomeAntigo NovoNome</info>\nEOT;\n }", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t$help [__CLASS__] [\"text\"] [] .= \"Zabbix Interface :\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--zabbix_interface_ip 10.10.10.10 IP du CI\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--zabbix_interface_fqdn ci.client.fr.ghc.local FQDN du CI\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--zabbix_interface_resolv_fqdn IP|FQDN Si l'IP et le FQDN son fourni, permet de connaitre la methode a utiliser pour contacter le CI\";\n\t\t\n\t\treturn $help;\n\t}", "public function getPageHelp()\n {\n switch ($this->_page)\n {\n case 'indexindex':\n return $this->_help['Login']['help'];\n\n case 'queueindex':\n return $this->_help['Rig Selection']['help'];\n\n case 'queuequeuing':\n return $this->_help['Queue']['help'];\n\n case 'bookingsindex':\n return $this->_help['Reservation']['help'];\n\n case 'bookingswaiting':\n return $this->_help['Reservation Waiting']['help'];\n\n case 'bookingsexisting':\n return $this->_help['Existing Reservations']['help'];\n\n case 'sessionindex':\n return $this->_help['Session']['help'];\n\n default:\n return 'This page has no help.';\n }\n }", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t$help [__CLASS__] [\"text\"] [] .= \"Zabbix Host Interface :\";\n\t\t$help = array_merge ( $help, zabbix_common_interface::help () );\n\t\t\n\t\treturn $help;\n\t}", "public function usageHelp() {\r\r\n return <<<USAGE\r\r\nUsage: php -f inventory.php -- [options]\r\r\n php -f inventory.php \r\r\n\r\r\n\r\r\nUSAGE;\r\r\n }", "public function usageHelp() {\r\r\n return <<<USAGE\r\r\nUsage: php -f inventory.php -- [options]\r\r\n php -f inventory.php \r\r\n\r\r\n\r\r\nUSAGE;\r\r\n }", "function GetEventHelp ( $eventname )\n {\n return $this->Lang('event_help_'.$eventname );\n }", "public function getHelpUrl()\n {\n return $this->helpPage;\n }", "public function getHelpDescription(): string\n {\n $inputDefinition = $this->inputDefinition;\n $output = new BufferedOutput();\n\n $name = $this->getFullCommand();\n\n $command = (new Command($name))\n ->setDefinition($inputDefinition)\n ->setDescription($this->getDescription());\n\n $descriptor = new DescriptorHelper();\n $descriptor->describe($output, $command);\n\n return $output->fetch();\n }", "public static function getHelpIndex() {\n return self::$_help_index;\n }", "public function getInfoHelp()\n {\n // what would its help file be named?\n $class = get_class($this);\n $file = str_replace('_', DIRECTORY_SEPARATOR, $class)\n . DIRECTORY_SEPARATOR . 'Info'\n . DIRECTORY_SEPARATOR . 'help.txt';\n \n // does that file exist?\n $file = Solar_File::exists($file);\n if ($file) {\n return file_get_contents($file);\n }\n }", "public function getHelpText()\n {\n if (!$metric_plugin = $this->getMetric()) {\n return false;\n }\n \n $plugin = $metric_plugin->getPlugin();\n\n $file_path = $plugin->getRootDirectory() . '/help_text/' . $this->machine_name . '.md';\n\n if (file_exists($file_path)) {\n return file_get_contents($file_path);\n }\n\n return false;\n }", "public static function add_help_text()\n {\n }", "public function getArgument()\n {\n return 'help';\n }", "public static function getAllHelp()\n {\n return $this->_help;\n }", "protected function help()\n\t{\n\t\t$this->out('Getsocialdata ' . self::VERSION);\n\t\t$this->out();\n\t\t$this->out('Usage: php -f bin/getdata.php -- [switches]');\n\t\t$this->out();\n\t\t$this->out('Switches: -h | --help Prints this usage information.');\n\t\t$this->out();\n\t\t$this->out();\n\t}", "public function getDescription() {\n\t\t\treturn $this->MODULE_DESCRIPTION;\t\n\t\t}", "static function help($command) {\n return 'TO-DO';\n }", "public function usageHelp()\n {\n return <<<USAGE\nGenerates file mappings for a Modman or Composer Magento module\nUsage: php -f modman_files.php -- --module_name=Mage_Catalog --prefix=\"mycustom_dir\"\nOptions:\n--module_name Custom module name (REQUIRED) e.g Namespace_ModuleName\n--prefix Your module module base directory from Magento root directory\n--strip string to strip out of mapping\n \nUSAGE;\n }", "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"<h4> Shipping Service </h4>\";\n\t}", "public function getHelpUrl ()\n {\n $module = $this->context->getModuleName ();\n $action = $this->context->getActionName ();\n\n $requestUrl = $this->context->getRequest()->getPathInfo ();\n foreach (sfConfig::get ('app_help_external', array ()) as $pattern => $url)\n {\n if (preg_match ($pattern, $requestUrl) === 1)\n return $url;\n }\n\n // check if there is a doc file for this module/action\n $url = $this->resolve ($module.'/'.$action);\n\n return ($url !== null ? $this->generateUrl ($url) : null);\n }", "public function getHelp()\n {\n return '\n\t\tThis command line will be executed every day at 4:00AM.\n\n\t\tIt will retrieve files from FTP, then import data files for the campaign\n\n\t\tUsage: FilterImport [campaign.id]';\n }", "public function usageHelp()\n {\n return <<<USAGE\nUsage: php -f packager.php -- [options]\n php -f packager.php --composer\n\n composer Create the package out of composer.json\n help This help\n\nUSAGE;\n }", "public function usageHelp()\n {\n return\n <<<USAGE\n Usage: php generateFeed.php -- [options]\nUSAGE;\n }", "private function displayHelpMessage() {\n $message = \"ClassDumper help:\\n\n -h : displays this help message\\n\n -f (directory 1 directory 2 ... directory n) : \n parses those directories\\n\n -t (xml / yaml) : selects type of serialization\\n\n (no args) : parses working directory in YAML format\\n\";\n\n echo $message;\n die('ShrubRoots ClassDumper v0.991');\n }", "public function help ()\n {\n $msg = 'sassファイルをコンパスコンパイル';\n\n return $msg;\n }", "public static function help() {\r\n\t\treturn self::getInstance()->createResponse(\r\n\t\t\t'<h2>How to use the Yammer extension</h2>'\r\n\t\t\t.'You can use the Yammer functionality in several ways:'\r\n\t\t\t.'<ul>'\r\n\t\t\t.'<li>Show messages with a specific tag #YourTag:'\r\n\t\t\t.' <ul>'\r\n\t\t\t.' <li><code>&lt;yammer&gt;<b><i>YourTag</i></b>&lt;/yammer&gt;</code></li>'\r\n\t\t\t.' <li><code>&lt;yammertag&gt;<b><i>YourTag</i></b>&lt;/yammertag&gt;</code></li>'\r\n\t\t\t.' <li><code>&lt;yammer tag=\"<b><i>YourTag</i></b>\" /&gt;</code></li>'\r\n\t\t\t.' </ul>'\r\n\t\t\t.'</li>'\r\n\t\t\t.'<li>Show message from a specific group:'\r\n\t\t\t.' <ul>'\r\n\t\t\t.' <li><code>&lt;yammergroup&gt;<b><i>YourGroup</i></b>&lt;/yammergroup&gt;</code>'\r\n\t\t\t.' <li><code>&lt;yammer group=\"<b><i>YourGroup</i></b>\" /&gt;</code>'\r\n\t\t\t.' </ul>'\r\n\t\t\t.'</li>'\r\n\t\t\t.'</ul>'\r\n\t\t\t.'In later versions you might be able to use alternative construct to get other types of content from Yammer'\r\n\t\t);\r\n\t}", "private function _getHelp( $options )\n {\n if ( $options->getHelp() ) {\n return '<p class=\"help-block\">'.$options->getHelp().'</p> ';\n } else {\n return '';\n }\n }", "public static function get_basic_help_texts() {\n\t\treturn self::create_variable_help_table( 'basic' );\n\t}", "public function menu_get_active_help()\n {\n return menu_get_active_help();\n }", "public static function help($subtool=null) {\n\t\treturn \n'user - Identify user\n<b>Usage:</b> user\nReturn the currently logged-in user.\n<b>Options:</b> None.\n';\n\t}", "protected function isHelp() {}", "public function usageHelp()\r\n {\r\n return <<<USAGE\r\n Usage: php review_update.php -- [review_id] -- [limit]\r\n review_id Specified review id to start from that onwards.\r\n limit Specified limit to start from that onwards.\r\nUSAGE;\r\n }", "public function help()\n {\n return view('help');\n }", "public function help() {\n $screen = get_current_screen();\n SwpmFbUtils::help($screen);\n }", "public function getHelpLines()\n {\n return array(\n 'Usage: php [function] [full]',\n '[function] - the PHP function you want to search for',\n //'[full] (optional) - add \"full\" after the function name to include the description',\n 'Returns information about the specified PHP function'\n );\n }", "private function getCommandHelp(): string\n {\n return <<<'HELP'\nThe <info>%command.name%</info> command creates a bundle skeleton in /lib:\n\n <info>php %command.full_name%</info> <comment>domain-name bundle-name</comment>\n\nBy default the command creates AcmeFooBundle in /lib/acme/foo-bundle directory.\n\nIf you omit any of the three required arguments, the command will ask you to\nprovide the missing values:\n\n # command will ask you for the domain name\n <info>php %command.full_name%</info> <comment>bundle-name</comment>\n\n # command will ask you for all arguments\n <info>php %command.full_name%</info>\n\nHELP;\n }", "public static function current() {\r\n $help_name = strtolower(str_replace('HW_HELP_','', get_called_class()));\r\n return self::get($help_name)->plugin_help;\r\n }", "public function displayHelp()\n\t{\n\t\t$obj = MpmCommandLineWriter::getInstance();\n\t\t$obj->addText('./migrate.php latest [--force]');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('This command is used to migrate up to the most recent version. No arguments are required.');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('If the --force option is provided, then the script will automatically skip over any migrations which cause errors and continue migrating forward.');\n\t\t$obj->addText(' ');\n\t\t$obj->addText('Valid Examples:');\n\t\t$obj->addText('./migrate.php latest', 4);\n\t\t$obj->addText('./migrate.php latest --force', 4);\n\t\t$obj->write();\n\t}", "public function getHelpURLPath()\n {\n return $this->helpURLPath;\n }", "public function help()\n {\n echo Config::main('help_text');\n if(empty($this->commands))\n render(\"[red] - NONE - [reset]\\r\\n\");\n else\n {\n foreach($this->commands as $key => $ignored)\n render(\"[blue] - {$key}[reset]\\r\\n\");\n }\n echo PHP_EOL;\n\n return 0;\n }", "public function help() {\n $this->say(\"Please let me help!\");\n\n $this->say(\"I'm Martha and I can help you answer questions and find things online. Try asking:\");\n\n $suggestions = $this->suggest(3);\n\n if($this->_context != 'web') {\n foreach($suggestions as $suggestion) {\n $this->say($suggestion);\n }\n $this->say(\"I can talk to all of these APIs thanks to Temboo! https://temboo.com\");\n $this->say(\"You can read my source at https://github.com/temboo/martha\");\n } else {\n foreach($suggestions as $suggestion) {\n $this->say('<p><a href=\"?query=' . htmlentities($suggestion, ENT_COMPAT, 'UTF-8') . '\" class=\"suggestion\">\"' . htmlentities($suggestion, ENT_NOQUOTES, 'UTF-8') . '\"</a></p>', true);\n }\n $this->say('<p>I can talk to all of these APIs thanks to <a href=\"https://temboo.com/\" target=\"_blank\">Temboo</a>!</p>', true);\n $this->say('<p>You can read my source at <a href=\"https://github.com/temboo/martha\" target=\"_blank\">Github</a>.</p>', true);\n }\n }", "function clshowhelp() {\n\tglobal $CLHELP;\n\tforeach ( $CLHELP as $msg) {\n\t\tif ( substr( $msg, strlen( $msg) - 1, 1) != \"\\n\") $msg .= \"\\n\"; \t// no end line in this msg, add one\n\t\techo $msg;\n\t}\n\t\n}", "public static function render_help() {\n\n // Grab the current screen\n $screen = get_current_screen();\n\n }", "public function help(){\n\t\t$screen = get_current_screen();\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/installing\" target=\"_blank\">' . __( 'Installing the Plugin', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/staying-updated\" target=\"_blank\">' . __( 'Staying Updated', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/glossary\" target=\"_blank\">' . __( 'Glossary', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-general-info',\n\t\t\t'title' => __( 'General Info', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-interface\" target=\"_blank\">' . __( 'Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-creating\" target=\"_blank\">' . __( 'Creating a New Form', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-sorting\" target=\"_blank\">' . __( 'Sorting Your Forms', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-building\" target=\"_blank\">' . __( 'Building Your Forms', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-forms',\n\t\t\t'title' => __( 'Forms', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/entries-interface\" target=\"_blank\">' . __( 'Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/entries-managing\" target=\"_blank\">' . __( 'Managing Your Entries', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/entries-searching-filtering\" target=\"_blank\">' . __( 'Searching and Filtering Your Entries', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-entries',\n\t\t\t'title' => __( 'Entries', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/email-design\" target=\"_blank\">' . __( 'Email Design Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/analytics\" target=\"_blank\">' . __( 'Analytics Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-email-analytics',\n\t\t\t'title' => __( 'Email Design &amp; Analytics', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/import\" target=\"_blank\">' . __( 'Import Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/export\" target=\"_blank\">' . __( 'Export Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-import-export',\n\t\t\t'title' => __( 'Import &amp; Export', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/conditional-logic\" target=\"_blank\">' . __( 'Conditional Logic', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/templating\" target=\"_blank\">' . __( 'Templating', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/custom-capabilities\" target=\"_blank\">' . __( 'Custom Capabilities', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/hooks\" target=\"_blank\">' . __( 'Filters and Actions', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-advanced',\n\t\t\t'title' => __( 'Advanced Topics', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<p>' . __( '<strong>Always load CSS</strong> - Force Visual Form Builder Pro CSS to load on every page. Will override \"Disable CSS\" option, if selected.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable CSS</strong> - Disable CSS output for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable Email</strong> - Disable emails from sending for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable Notifications Email</strong> - Disable notification emails from sending for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Skip Empty Fields in Email</strong> - Fields that have no data will not be displayed in the email.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable saving new entry</strong> - Disable new entries from being saved.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable saving entry IP address</strong> - An entry will be saved, but the IP address will be removed.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Place Address labels above fields</strong> - The Address field labels will be placed above the inputs instead of below.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Remove default SPAM Verification</strong> - The default SPAM Verification question will be removed and only a submit button will be visible.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable meta tag version</strong> - Prevent the hidden Visual Form Builder Pro version number from printing in the source code.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Skip PayPal redirect if total is zero</strong> - If PayPal is configured, do not redirect if the total is zero.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Prepend Confirmation</strong> - Always display the form beneath the text confirmation after the form has been submitted.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Max Upload Size</strong> - Restrict the file upload size for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Sender Mail Header</strong> - Control the Sender attribute in the mail header. This is useful for certain server configurations that require an existing email on the domain to be used.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>reCAPTCHA Public Key</strong> - Required if \"Use reCAPTCHA\" option is selected in the Secret field.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>reCAPTCHA Private Key</strong> - Required if \"Use reCAPTCHA\" option is selected in the Secret field.', 'visual-form-builder-pro' ) . '</p>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-settings',\n\t\t\t'title' => __( 'Settings', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t}", "public function help()\n\t{\n\t\t$this\n\t\t\t->output\n\t\t\t->addOverview(\n\t\t\t\t'Store shared configuration variables used by the command line tool.\n\t\t\t\tThese will, for example, be used to fill in docblock stubs when\n\t\t\t\tusing the scaffolding command.'\n\t\t\t)\n\t\t\t->addTasks($this)\n\t\t\t->addArgument(\n\t\t\t\t'--{keyName}',\n\t\t\t\t'Sets the variable keyName to the given value.',\n\t\t\t\t'Example: --name=\"John Doe\"'\n\t\t\t);\n\t}", "function help ( $help='help text', $caption='') {\n\n\t\t$compath = JURI::root() . 'administrator/components/'.JEV_COM_COMPONENT;\n\t\t$imgpath = $compath . '/assets/images';\n\n\t\tif (empty($caption)) $caption = '&nbsp;';\n\n\t\tif (substr($help, 0, 7) == 'http://' || substr($help, 0, 8) == 'https://') {\n\t\t\t//help text is url, open new window\n\t\t\t$onclick_cmd = \"window.open(\\\"$help\\\", \\\"help\\\", \\\"height=700,width=800,resizable=yes,scrollbars\\\");return false\";\n\t\t} else {\n\t\t\t// help text is plain text with html tags\n\t\t\t// prepare text as overlib parameter\n\t\t\t// escape \", replace new line by space\n\t\t\t$help = htmlspecialchars($help, ENT_QUOTES);\n\t\t\t$help = str_replace('&quot;', '\\&quot;', $help);\n\t\t\t$help = str_replace(\"\\n\", \" \", $help);\n\n\t\t\t$ol_cmds = 'RIGHT, ABOVE, VAUTO, WRAP, STICKY, CLOSECLICK, CLOSECOLOR, \"white\"';\n\t\t\t$ol_cmds .= ', CLOSETEXT, \"<span style=\\\"border:solid white 1px;padding:0px;margin:1px;\\\"><b>X</b></span>\"';\n\t\t\t$onclick_cmd = 'return overlib(\"'.$help.'\", ' . $ol_cmds . ', CAPTION, \"'.$caption.'\")';\n\t\t}\n\n\t\t// RSH 10/11/10 - Added float:none for 1.6 compatiblity - The default template was floating images to the left\n\t\t$str = '<img border=\"0\" style=\"float: none; vertical-align:bottom; cursor:help;\" alt=\"'. JText::_('JEV_HELP') . '\"'\n\t\t. ' title=\"' . JText::_('JEV_HELP') .'\"'\n\t\t. ' src=\"' . $imgpath . '/help_ques_inact.gif\"'\n\t\t. ' onmouseover=\\'this.src=\"' . $imgpath . '/help_ques.gif\"\\''\n\t\t. ' onmouseout=\\'this.src=\"' . $imgpath . '/help_ques_inact.gif\"\\''\n\t\t. ' onclick=\\'' . $onclick_cmd . '\\' />';\n\n\t\treturn $str;\n\t}", "function GetAdminDescription()\n {\n return $this->Lang('moddescription');\n }", "function help($message = null) {\n if (!is_null($message))\n echo($message.NL.NL);\n\n $self = baseName($_SERVER['PHP_SELF']);\n\necho <<<HELP\n\n Syntax: $self [symbol ...]\n\n\nHELP;\n}", "function helps()\n\t{\n\t\t$this->ipsclass->input['step']++;\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$object = ( $this->tasks['helps'] == 1 ) ? 'Help File' : 'Help Files';\n\t\t$operation = ( $this->ipsclass->input['un'] ) ? 'removed' : 'created';\n\t\t$helpkeys = array();\n\t\t\n\t\tforeach ( $this->xml_array['helps_group']['help'] as $k => $v )\n\t\t{\n\t\t\t$helpkeys[] = \"'{$v['title']['VALUE']}'\";\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->do_delete( 'faq', \"title IN (\".implode( \",\", $helpkeys ).\")\" );\n\t\t\n\t\tif ( !$this->ipsclass->input['un'] )\n\t\t{\n\t\t\tforeach ( $this->xml_array['helps_group']['help'] as $k => $v )\n\t\t\t{\n\t\t\t\t$this->_add_help( $v );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}{$group}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />{$this->tasks['helps']} {$object} {$operation}....\" );\n\t}", "public function hasHelp() {\n\t\treturn $this->help;\n\t}", "public function help()\n {\n return view('frontEnd.usersPanel.help');\n }", "public function get_event_help($eventname)\n\t{\n\t\treturn '';\n\t}", "protected function getQuickHelp() {\r\n $strOldAction = $this->getAction();\r\n $this->setAction($this->strOriginalAction);\r\n $strQuickhelp = parent::getQuickHelp();\r\n $this->setAction($strOldAction);\r\n return $strQuickhelp;\r\n }", "public function visitHelpPage()\n {\n $this->data .= \"\n /* --- visitHelpPage --- */\n _ra.visitHelpPage = {'visit': true};\n \n if (_ra.ready !== undefined) {\n _ra.visitHelpPage();\n }\n \";\n\n return $this->data;\n }", "public function renderHelp()\n {\n $this->renderHeader();\n\n echo Line::begin('Usage:', Line::YELLOW)->nl();\n echo Line::begin()\n ->indent(2)\n ->text($this->getUsage())\n ->nl(2);\n\n // Options\n echo Line::begin('Options:', Line::YELLOW)->nl();\n echo Line::begin()\n ->indent(2)\n ->text('--help', Line::MAGENTA)\n ->to(21)\n ->text('-h', Line::MAGENTA)\n ->text('Display this help message.')\n ->nl(1);\n\n $attributes = $this->attributeNames();\n $help = $this->attributeHelp();\n\n sort($attributes);\n\n foreach ($attributes as $name) {\n echo Line::begin()\n ->indent(2)\n ->text(\"--$name\", Line::MAGENTA)\n ->to(24)\n ->text(isset($help[$name]) ? $help[$name] : '')\n ->nl();\n }\n\n exit(0);\n }", "public function usageHelp()\n {\n global $argv;\n $self = basename($argv[0]);\n return <<<USAGE\n\nGuardia importer\n\nUpdates orders statuses and add tracking codes loaded from CSV file\n\nUsage: php -f $self -- [options]\n\nOptions:\n\n help This help\n import Import orders statuses and shippings\n\nUSAGE;\n }", "public static function help($name)\n {\n self::create($name)->renderHelp();\n }", "public function get_about()\n\t{\n\t\t$this->load_misc_methods();\n\t\treturn cms_module_GetAbout($this);\n\t}", "public function usageHelp()\t{\r\n\t\treturn <<<USAGE\r\nUsage: php -f export.php -- [options]\r\n\r\n --profile <identifier> Profile ID from System > Import/Export > Profiles\r\n\r\nUSAGE;\r\n\t}", "function showHelp()\n{\n global $cli;\n\n $cli->writeln(sprintf(_(\"Usage: %s [OPTIONS]...\"), basename(__FILE__)));\n $cli->writeln();\n $cli->writeln(_(\"Mandatory arguments to long options are mandatory for short options too.\"));\n $cli->writeln();\n $cli->writeln(_(\"-h, --help Show this help\"));\n $cli->writeln(_(\"-u, --username[=username] Horde login username\"));\n $cli->writeln(_(\"-p, --password[=password] Horde login password\"));\n $cli->writeln(_(\"-t, --type[=type] Export format\"));\n $cli->writeln(_(\"-r, --rpc[=http://example.com/horde/rpc.php] Remote url\"));\n $cli->writeln();\n}", "public function usageHelp()\n {\n return <<<USAGE\nUsage: php -f indexer.php -- [options]\n\n --status <indexer> Show Indexer(s) Status\n --status-reindex_required <indexer> Set status to \"Reindex Required\"\n --mode <indexer> Show Indexer(s) Index Mode\n --mode-realtime <indexer> Set index mode type \"Update on Save\"\n --mode-manual <indexer> Set index mode type \"Manual Update\"\n --mode-queued <indexer> Set index mode type \"Queue Events\"\n --reindex <indexer> Reindex Data\n info Show allowed indexers\n reindexall Reindex Data by all indexers\n help This help\n\n <indexer> Comma separated indexer codes or value \"all\" for all indexers\n\nUSAGE;\n }", "public static function get_advanced_help_texts() {\n\t\treturn self::create_variable_help_table( 'advanced' );\n\t}" ]
[ "0.8388826", "0.82199055", "0.82126147", "0.81169057", "0.8101302", "0.8092861", "0.7854757", "0.7824589", "0.77846324", "0.7784203", "0.77822685", "0.77822685", "0.7762936", "0.775723", "0.77290404", "0.7679998", "0.7658723", "0.7645613", "0.7538306", "0.73526484", "0.73218995", "0.73218995", "0.73218995", "0.72849554", "0.7263206", "0.72476804", "0.72459894", "0.7200969", "0.720083", "0.71928245", "0.7180433", "0.7164518", "0.7134819", "0.7104987", "0.7064418", "0.7016842", "0.70131516", "0.69987243", "0.69981164", "0.6997843", "0.69857377", "0.69799614", "0.69799614", "0.69756114", "0.69727045", "0.696499", "0.6963244", "0.69610333", "0.69598466", "0.6946828", "0.6946714", "0.6942577", "0.69265145", "0.68915355", "0.6858712", "0.6807097", "0.6802344", "0.6799432", "0.67890155", "0.6787709", "0.676135", "0.6740033", "0.6739358", "0.67148435", "0.6699624", "0.6693866", "0.66831523", "0.66829073", "0.66785437", "0.6677489", "0.66736585", "0.6667832", "0.6641626", "0.6638579", "0.6637167", "0.6622992", "0.6608414", "0.66048574", "0.65940845", "0.65882474", "0.65686893", "0.65655655", "0.65636665", "0.65610486", "0.65564156", "0.6551682", "0.654861", "0.65355796", "0.6523938", "0.65144527", "0.6507657", "0.6507283", "0.6498228", "0.6496745", "0.6483082", "0.64744776", "0.6472071", "0.64679873", "0.6464811", "0.64601016" ]
0.86491305
0
Get extended help message
public function getExtendedHelpMessage() { $out = $this->getHelpMessage() . "\n"; $out .= "Usage: summary [--short] [module]\n" . "Show the summary of the most recent results of each module.\n" . "If a module name is provided as an argument, it\n" . "will display only the summary for that module.\n\n" . "This is the default module that is run when no\n" . "module name is given when running qis.\n"; $out .= "\nValid Options:\n" . $this->_qis->getTerminal()->do_setaf(3) . " --short : Show only short information\n" . $this->_qis->getTerminal()->do_op(); return $out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_help(){\n $tmp=self::_pipeExec('\"'.$this->cmd.'\" --extended-help');\n return $tmp['stdout'];\n }", "public function getHelpMessage() { return $this->data['helpMessage']; }", "public function getHelp(): string\n {\n return $this->help;\n }", "public function get_help()\n\t{\n\t\treturn '';\n\t}", "function GetHelp()\n {\n return $this->Lang('help');\n }", "public function getHelp() {\n\t\treturn $this->help;\n\t}", "public function getHelp() {\n\t\treturn $this->help;\n\t}", "public function getHelpMessage()\n {\n return \"Get summary of a module or all modules\\n\";\n }", "function getHelp()\n {\n return $this->help;\n }", "public function getHelp()\n\t{\n\t return '<info>Console Tool</info>';\n\t}", "private function getHelpMessage()\n {\n return <<<EOT\nO comando <info>cekurte:group:update</info> atualiza o nome de um grupo na base de dados:\n\n<info>php app/console cekurte:group:update NomeAntigo NovoNome</info>\nEOT;\n }", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t\n\t\treturn $help;\n\t}", "public function printHelp();", "public function getProcessedHelp(): string\n {\n $name = $this->name;\n $isSingleCommand = $this->application?->isSingleCommand();\n\n $placeholders = [\n '%command.name%',\n '%command.full_name%',\n ];\n $replacements = [\n $name,\n $isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'].' '.$name,\n ];\n\n return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription());\n }", "public function help()\n {\n // You could include a file and return it here.\n return \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\n }", "function writeHelp() {\n\t\t$pt1 = array(\t'title' => 'Valid commands',\n\t\t\t\t\t\t'text' => \"Please enter a request in the following format:\\n/cherwell I ##### for an incident\\n/cherwell T ##### for a task\\n/cherwell C ##### for a change request\",\n\t\t\t\t\t\t'color' => \"#b3003b\");\n\t\t$pt2 = array(\t'fallback'=>\"Help\", 'attachments' => array($pt1));\n\t\treturn json_encode($pt2);\n\t}", "public function getHelp()\n\t{\n\t\treturn $this->run(array('help'));\n\t}", "public function getHelp() {\n $help = parent::getHelp();\n $global_options = $this->getGlobalOptions();\n if (!empty($global_options)) {\n $help .= PHP_EOL . 'Global options:';\n foreach ($global_options as $name => $value) {\n $help .= PHP_EOL . ' [' . $name . '=' . $value . ']';\n }\n }\n return $help;\n }", "public static function help() {\r\n\t\treturn self::getInstance()->createResponse(\r\n\t\t\t'<h2>How to use the Yammer extension</h2>'\r\n\t\t\t.'You can use the Yammer functionality in several ways:'\r\n\t\t\t.'<ul>'\r\n\t\t\t.'<li>Show messages with a specific tag #YourTag:'\r\n\t\t\t.' <ul>'\r\n\t\t\t.' <li><code>&lt;yammer&gt;<b><i>YourTag</i></b>&lt;/yammer&gt;</code></li>'\r\n\t\t\t.' <li><code>&lt;yammertag&gt;<b><i>YourTag</i></b>&lt;/yammertag&gt;</code></li>'\r\n\t\t\t.' <li><code>&lt;yammer tag=\"<b><i>YourTag</i></b>\" /&gt;</code></li>'\r\n\t\t\t.' </ul>'\r\n\t\t\t.'</li>'\r\n\t\t\t.'<li>Show message from a specific group:'\r\n\t\t\t.' <ul>'\r\n\t\t\t.' <li><code>&lt;yammergroup&gt;<b><i>YourGroup</i></b>&lt;/yammergroup&gt;</code>'\r\n\t\t\t.' <li><code>&lt;yammer group=\"<b><i>YourGroup</i></b>\" /&gt;</code>'\r\n\t\t\t.' </ul>'\r\n\t\t\t.'</li>'\r\n\t\t\t.'</ul>'\r\n\t\t\t.'In later versions you might be able to use alternative construct to get other types of content from Yammer'\r\n\t\t);\r\n\t}", "protected function renderHelp() {}", "function GetEventHelp ( $eventname )\n {\n return $this->Lang('event_help_'.$eventname );\n }", "public static function add_help_text()\n {\n }", "public function help()\r\n\t{\r\n\t\t// You could include a file and return it here.\r\n\t\treturn \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\r\n\t}", "public function getHelp()\n {\n return $this->run(array(\n 'help'\n ));\n }", "abstract public function displayHelp();", "public function help(ElggEntity $entity) {\n\t\treturn $this->makeLabel($entity, \"{$this->name}:help\");\n\t}", "protected function displayHelp()\n {\n return $this->context->smarty->fetch($this->module->getLocalPath().'views/templates/admin/rewards_info.tpl');\n }", "public function getCommandHelp()\n {\n return <<<HELP\n\n\\e[33mOutputs information about PHP's configuration.\\e[0m\n\n\\e[36mUsage:\\e[0m \\e[32mcfg info get [--what WHAT]\\e[0m\n \n Displays information about the current state of PHP.\n The output may be customized by passing constant \\e[30;1mWHAT\\e[0m which corresponds to the appropriate parameter of function phpinfo().\n\nHELP;\n }", "public function getHelp()\n {\n $this->parseDocBlock();\n return $this->help;\n }", "public function help();", "public function get_help_page()\n\t{\n\t\t$this->load_misc_methods();\n\t\treturn cms_module_GetHelpPage($this);\n\t}", "function ShowAdminHelp()\r\n{\r\n\tglobal $txt, $helptxt, $context, $scripturl;\r\n\r\n\tif (!isset($_GET['help']) || !is_string($_GET['help']))\r\n\t\tfatal_lang_error('no_access', false);\r\n\r\n\tif (!isset($helptxt))\r\n\t\t$helptxt = array();\r\n\r\n\t// Load the admin help language file and template.\r\n\tloadLanguage('Help');\r\n\r\n\t// Permission specific help?\r\n\tif (isset($_GET['help']) && substr($_GET['help'], 0, 14) == 'permissionhelp')\r\n\t\tloadLanguage('ManagePermissions');\r\n\r\n\tloadTemplate('Help');\r\n\r\n\t// Set the page title to something relevant.\r\n\t$context['page_title'] = $context['forum_name'] . ' - ' . $txt['help'];\r\n\r\n\t// Don't show any template layers, just the popup sub template.\r\n\t$context['template_layers'] = array();\r\n\t$context['sub_template'] = 'popup';\r\n\r\n\t// What help string should be used?\r\n\tif (isset($helptxt[$_GET['help']]))\r\n\t\t$context['help_text'] = $helptxt[$_GET['help']];\r\n\telseif (isset($txt[$_GET['help']]))\r\n\t\t$context['help_text'] = $txt[$_GET['help']];\r\n\telse\r\n\t\t$context['help_text'] = $_GET['help'];\r\n\r\n\t// Does this text contain a link that we should fill in?\r\n\tif (preg_match('~%([0-9]+\\$)?s\\?~', $context['help_text'], $match))\r\n\t\t$context['help_text'] = sprintf($context['help_text'], $scripturl, $context['session_id'], $context['session_var']);\r\n}", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t$help [__CLASS__] [\"text\"] [] .= \"Zabbix Interface :\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--zabbix_interface_ip 10.10.10.10 IP du CI\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--zabbix_interface_fqdn ci.client.fr.ghc.local FQDN du CI\";\n\t\t$help [__CLASS__] [\"text\"] [] .= \"\\t--zabbix_interface_resolv_fqdn IP|FQDN Si l'IP et le FQDN son fourni, permet de connaitre la methode a utiliser pour contacter le CI\";\n\t\t\n\t\treturn $help;\n\t}", "protected function getQuickHelp() {\r\n $strOldAction = $this->getAction();\r\n $this->setAction($this->strOriginalAction);\r\n $strQuickhelp = parent::getQuickHelp();\r\n $this->setAction($strOldAction);\r\n return $strQuickhelp;\r\n }", "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"<h4>Overview</h4>\n\t\t<p>The Inventory module will work like magic. The End!</p>\";\n\t}", "public function getArgument()\n {\n return 'help';\n }", "public function getHelpDescription(): string\n {\n $inputDefinition = $this->inputDefinition;\n $output = new BufferedOutput();\n\n $name = $this->getFullCommand();\n\n $command = (new Command($name))\n ->setDefinition($inputDefinition)\n ->setDescription($this->getDescription());\n\n $descriptor = new DescriptorHelper();\n $descriptor->describe($output, $command);\n\n return $output->fetch();\n }", "public function usageHelp() {\r\r\n return <<<USAGE\r\r\nUsage: php -f inventory.php -- [options]\r\r\n php -f inventory.php \r\r\n\r\r\n\r\r\nUSAGE;\r\r\n }", "public function usageHelp() {\r\r\n return <<<USAGE\r\r\nUsage: php -f inventory.php -- [options]\r\r\n php -f inventory.php \r\r\n\r\r\n\r\r\nUSAGE;\r\r\n }", "function clshowhelp() {\n\tglobal $CLHELP;\n\tforeach ( $CLHELP as $msg) {\n\t\tif ( substr( $msg, strlen( $msg) - 1, 1) != \"\\n\") $msg .= \"\\n\"; \t// no end line in this msg, add one\n\t\techo $msg;\n\t}\n\t\n}", "public static function get_advanced_help_texts() {\n\t\treturn self::create_variable_help_table( 'advanced' );\n\t}", "static public function help() {\n\t\t$help = parent::help ();\n\t\t\n\t\t$help [__CLASS__] [\"text\"] = array ();\n\t\t$help [__CLASS__] [\"text\"] [] .= \"Zabbix Host Interface :\";\n\t\t$help = array_merge ( $help, zabbix_common_interface::help () );\n\t\t\n\t\treturn $help;\n\t}", "function help()\n\t{\n\t\t$help['b'] = array();\n\t\t$help['i'] = array();\n\t\t\n\t\t$help['b'][] = 'Laisser une ligne vide entre chaque bloc <em>de même nature</em>.';\n\t\t$help['b'][] = '<strong>Paragraphe</strong> : du texte et une ligne vide';\n\t\t\n\t\tif ($this->getOpt('active_title')) {\n\t\t\t$help['b'][] = '<strong>Titre</strong> : <code>!!!</code>, <code>!!</code>, '.\n\t\t\t'<code>!</code> pour des titres plus ou moins importants';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_hr')) {\n\t\t\t$help['b'][] = '<strong>Trait horizontal</strong> : <code>----</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_lists')) {\n\t\t\t$help['b'][] = '<strong>Liste</strong> : ligne débutant par <code>*</code> ou '.\n\t\t\t'<code>#</code>. Il est possible de mélanger les listes '.\n\t\t\t'(<code>*#*</code>) pour faire des listes de plusieurs niveaux. '.\n\t\t\t'Respecter le style de chaque niveau';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_pre')) {\n\t\t\t$help['b'][] = '<strong>Texte préformaté</strong> : espace devant chaque ligne de texte';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_quote')) {\n\t\t\t$help['b'][] = '<strong>Bloc de citation</strong> : <code>&gt;</code> ou '.\n\t\t\t'<code>;:</code> devant chaque ligne de texte';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_fr_syntax')) {\n\t\t\t$help['i'][] = 'La correction de ponctuation est active. Un espace '.\n\t\t\t\t\t\t'insécable remplacera automatiquement tout espace '.\n\t\t\t\t\t\t'précédant les marques \";\",\"?\",\":\" et \"!\".';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_em')) {\n\t\t\t$help['i'][] = '<strong>Emphase</strong> : deux apostrophes <code>\\'\\'texte\\'\\'</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_strong')) {\n\t\t\t$help['i'][] = '<strong>Forte emphase</strong> : deux soulignés <code>__texte__</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_br')) {\n\t\t\t$help['i'][] = '<strong>Retour forcé à la ligne</strong> : <code>%%%</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_ins')) {\n\t\t\t$help['i'][] = '<strong>Insertion</strong> : deux plus <code>++texte++</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_del')) {\n\t\t\t$help['i'][] = '<strong>Suppression</strong> : deux moins <code>--texte--</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_urls')) {\n\t\t\t$help['i'][] = '<strong>Lien</strong> : <code>[url]</code>, <code>[nom|url]</code>, '.\n\t\t\t'<code>[nom|url|langue]</code> ou <code>[nom|url|langue|titre]</code>.';\n\t\t\t\n\t\t\t$help['i'][] = '<strong>Image</strong> : comme un lien mais avec une extension d\\'image.'.\n\t\t\t'<br />Pour désactiver la reconnaissance d\\'image mettez 0 dans un dernier '.\n\t\t\t'argument. Par exemple <code>[image|image.gif||0]</code> fera un lien vers l\\'image au '.\n\t\t\t'lieu de l\\'afficher.'.\n\t\t\t'<br />Il est conseillé d\\'utiliser la nouvelle syntaxe.';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_img')) {\n\t\t\t$help['i'][] = '<strong>Image</strong> (nouvelle syntaxe) : '.\n\t\t\t'<code>((url|texte alternatif))</code>, '.\n\t\t\t'<code>((url|texte alternatif|position))</code> ou '.\n\t\t\t'<code>((url|texte alternatif|position|description longue))</code>. '.\n\t\t\t'<br />La position peut prendre les valeur L ou G (gauche), R ou D (droite) ou C (centré).';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_anchor')) {\n\t\t\t$help['i'][] = '<strong>Ancre</strong> : <code>~ancre~</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_acronym')) {\n\t\t\t$help['i'][] = '<strong>Acronyme</strong> : <code>??acronyme??</code> ou '.\n\t\t\t'<code>??acronyme|titre??</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_q')) {\n\t\t\t$help['i'][] = '<strong>Citation</strong> : <code>{{citation}}</code>, '.\n\t\t\t'<code>{{citation|langue}}</code> ou <code>{{citation|langue|url}}</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_code')) {\n\t\t\t$help['i'][] = '<strong>Code</strong> : <code>@@code ici@@</code>';\n\t\t}\n\t\t\n\t\tif ($this->getOpt('active_footnotes')) {\n\t\t\t$help['i'][] = '<strong>Note de bas de page</strong> : <code>$$Corps de la note$$</code>';\n\t\t}\n\t\t\n\t\t$res = '<dl class=\"wikiHelp\">';\n\t\t\n\t\t$res .= '<dt>Blocs</dt><dd>';\n\t\tif (count($help['b']) > 0)\n\t\t{\n\t\t\t$res .= '<ul><li>';\n\t\t\t$res .= implode('&nbsp;;</li><li>', $help['b']);\n\t\t\t$res .= '.</li></ul>';\n\t\t}\n\t\t$res .= '</dd>';\n\t\t\n\t\t$res .= '<dt>Éléments en ligne</dt><dd>';\n\t\tif (count($help['i']) > 0)\n\t\t{\n\t\t\t$res .= '<ul><li>';\n\t\t\t$res .= implode('&nbsp;;</li><li>', $help['i']);\n\t\t\t$res .= '.</li></ul>';\n\t\t}\n\t\t$res .= '</dd>';\n\t\t\n\t\t$res .= '</dl>';\n\t\t\n\t\treturn $res;\t\n\t}", "public function help()\r\n{\r\n // You could include a file and return it here.\r\n return \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\r\n}", "public function getPageHelp()\n {\n switch ($this->_page)\n {\n case 'indexindex':\n return $this->_help['Login']['help'];\n\n case 'queueindex':\n return $this->_help['Rig Selection']['help'];\n\n case 'queuequeuing':\n return $this->_help['Queue']['help'];\n\n case 'bookingsindex':\n return $this->_help['Reservation']['help'];\n\n case 'bookingswaiting':\n return $this->_help['Reservation Waiting']['help'];\n\n case 'bookingsexisting':\n return $this->_help['Existing Reservations']['help'];\n\n case 'sessionindex':\n return $this->_help['Session']['help'];\n\n default:\n return 'This page has no help.';\n }\n }", "function show_excerpts() {\n\treturn 'excerpts';\n}", "public function get_contextual_help() {\n\t\treturn '<p>' . __( 'Hovering over a row in the intrusions list will display action links that allow you to manage the intrusion. You can perform the following actions:', 'mute-screamer' ) . '</p>' .\n\t\t\t'<ul>' .\n\t\t\t'<li>' . __( 'Exclude automatically adds the item to the Exception fields list.', 'mute-screamer' ) . '</li>' .\n\t\t\t'<li>' . __( 'Delete permanently deletes the intrusion.', 'mute-screamer' ) . '</li>' .\n\t\t\t'</ul>';\n\t}", "public static function help_inner () \n { \n $html = null;\n\n $top = __( 'Instruction Manual', 'label' );\n $inner = self::help_center();\n $bottom = self::page_foot();\n\n $html .= self::page_body( 'help', $top, $inner, $bottom );\n\n return $html;\n }", "public static function get_basic_help_texts() {\n\t\treturn self::create_variable_help_table( 'basic' );\n\t}", "public function get_event_help($eventname)\n\t{\n\t\treturn '';\n\t}", "public function cli_help() {}", "public static function help($subtool=null) {\n\t\treturn \n'user - Identify user\n<b>Usage:</b> user\nReturn the currently logged-in user.\n<b>Options:</b> None.\n';\n\t}", "function help($message = null) {\n if (!is_null($message))\n echo($message.NL.NL);\n\n $self = baseName($_SERVER['PHP_SELF']);\n\necho <<<HELP\n\n Syntax: $self [symbol ...]\n\n\nHELP;\n}", "public function getHelp()\n {\n new Help('form');\n }", "public function help() {\r\n return array(\"Success\" => \"Hello World\");\r\n }", "function help ( $help='help text', $caption='') {\n\n\t\t$compath = JURI::root() . 'administrator/components/'.JEV_COM_COMPONENT;\n\t\t$imgpath = $compath . '/assets/images';\n\n\t\tif (empty($caption)) $caption = '&nbsp;';\n\n\t\tif (substr($help, 0, 7) == 'http://' || substr($help, 0, 8) == 'https://') {\n\t\t\t//help text is url, open new window\n\t\t\t$onclick_cmd = \"window.open(\\\"$help\\\", \\\"help\\\", \\\"height=700,width=800,resizable=yes,scrollbars\\\");return false\";\n\t\t} else {\n\t\t\t// help text is plain text with html tags\n\t\t\t// prepare text as overlib parameter\n\t\t\t// escape \", replace new line by space\n\t\t\t$help = htmlspecialchars($help, ENT_QUOTES);\n\t\t\t$help = str_replace('&quot;', '\\&quot;', $help);\n\t\t\t$help = str_replace(\"\\n\", \" \", $help);\n\n\t\t\t$ol_cmds = 'RIGHT, ABOVE, VAUTO, WRAP, STICKY, CLOSECLICK, CLOSECOLOR, \"white\"';\n\t\t\t$ol_cmds .= ', CLOSETEXT, \"<span style=\\\"border:solid white 1px;padding:0px;margin:1px;\\\"><b>X</b></span>\"';\n\t\t\t$onclick_cmd = 'return overlib(\"'.$help.'\", ' . $ol_cmds . ', CAPTION, \"'.$caption.'\")';\n\t\t}\n\n\t\t// RSH 10/11/10 - Added float:none for 1.6 compatiblity - The default template was floating images to the left\n\t\t$str = '<img border=\"0\" style=\"float: none; vertical-align:bottom; cursor:help;\" alt=\"'. JText::_('JEV_HELP') . '\"'\n\t\t. ' title=\"' . JText::_('JEV_HELP') .'\"'\n\t\t. ' src=\"' . $imgpath . '/help_ques_inact.gif\"'\n\t\t. ' onmouseover=\\'this.src=\"' . $imgpath . '/help_ques.gif\"\\''\n\t\t. ' onmouseout=\\'this.src=\"' . $imgpath . '/help_ques_inact.gif\"\\''\n\t\t. ' onclick=\\'' . $onclick_cmd . '\\' />';\n\n\t\treturn $str;\n\t}", "public function getHelpLines()\n {\n return array(\n 'Usage: php [function] [full]',\n '[function] - the PHP function you want to search for',\n //'[full] (optional) - add \"full\" after the function name to include the description',\n 'Returns information about the specified PHP function'\n );\n }", "private function _getHelp( $options )\n {\n if ( $options->getHelp() ) {\n return '<p class=\"help-block\">'.$options->getHelp().'</p> ';\n } else {\n return '';\n }\n }", "private function getCommandHelp(): string\n {\n return <<<'HELP'\nThe <info>%command.name%</info> command creates a bundle skeleton in /lib:\n\n <info>php %command.full_name%</info> <comment>domain-name bundle-name</comment>\n\nBy default the command creates AcmeFooBundle in /lib/acme/foo-bundle directory.\n\nIf you omit any of the three required arguments, the command will ask you to\nprovide the missing values:\n\n # command will ask you for the domain name\n <info>php %command.full_name%</info> <comment>bundle-name</comment>\n\n # command will ask you for all arguments\n <info>php %command.full_name%</info>\n\nHELP;\n }", "function help()\n\t{\n\t\t/* check if all required plugins are installed */\n\t\t\n\t\t$text = \"<div class='center buttons-bar'><form method='post' action='\".e_SELF.\"?\".e_QUERY.\"' id='core-db-import-form'>\";\n\t\t$text .= e107::getForm()->admin_button('importThemeDemo', 'Install Demo', 'other');\n\t\t$text .= '</form></div>';\n \n\t \treturn $text;\n\t}", "protected function getTextHelp()\n {\n return array(\n 'complexidade' => 'O Nível de Complexidade está relacionado diretamente com a natureza da atividade e o esforço necessário para a sua execução ou solução de incidente. Por esforço entende-se tempo que será gasto para execução ou nível de dificuldade da demanda.',\n 'impacto' => 'O Nível de Impacto está relacionado ao efeito nos processos de negócio do Inep ou da DTDIE, o quanto os serviços serão afetados com falha, necessidade de evolução ou adaptação e qual será o transtorno, interno ou externo, pela não realização ou falha na execução da atividade.',\n 'criticidade' => 'O nível de criticidade está relacionado ao tempo de execução considerando que atrasos, na execução das atividades ou na entrega dos artefatos, podem afetar um processo de negócio do Inep ou da DTDIE.',\n 'facim' => 'O Fator de Conhecimento Interno e Maturidade- FACIM- é um indicador que baliza a perspectiva de definição do conhecimento interno e da maturidade para a execução das atividades. Este indicador tem o objetivo de criar um parâmetro que avalia o nível de maturidade e conhecimento do Inep que é transferido para o contexto da necessidade em que a atividade será inserida.'\n );\n }", "public function getHelpText()\n {\n if (!$metric_plugin = $this->getMetric()) {\n return false;\n }\n \n $plugin = $metric_plugin->getPlugin();\n\n $file_path = $plugin->getRootDirectory() . '/help_text/' . $this->machine_name . '.md';\n\n if (file_exists($file_path)) {\n return file_get_contents($file_path);\n }\n\n return false;\n }", "function getHelpText()\n{\n if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {\n return <<<WINDOWSHELP\nJSON5 - JSON for Humans\n\nConverts JSON5 to plain JSON\n\nUsage: json5 [OPTIONS] [FILE]\n\n -h, --help Shows help and usage information\n\n (Reading data from STDIN is not currently supported on Windows)\n\nExamples:\n\n Converting a file named file.json5:\n\n json5 file.json5\n\n Converting a file and saving its output:\n\n json5 file.json5 > file.json\n\nSee https://github.com/colinodell/json5 for more information\n\nWINDOWSHELP;\n }\n\n return <<<HELP\nJSON5 - JSON for Humans\n\nConverts JSON5 to plain JSON\n\nUsage: json5 [OPTIONS] [FILE]\n\n -h, --help Shows help and usage information\n\n If no file is given, input will be read from STDIN\n\nExamples:\n\n Converting a file named file.json5:\n\n json5 file.json5\n\n Converting a file and saving its output:\n\n json5 file.json5 > file.json\n\n Converting from STDIN:\n\n echo -e \"{hello: 'world!'}\" | json5\n\n Converting from STDIN and saving the output:\n\n echo -e \"{hello: 'world!'}\" | json5 > output.json\n\nSee https://github.com/colinodell/json5 for more information\n\nHELP;\n}", "protected function isHelp() {}", "public static function getAllHelp()\n {\n return $this->_help;\n }", "public function getInfoHelp()\n {\n // what would its help file be named?\n $class = get_class($this);\n $file = str_replace('_', DIRECTORY_SEPARATOR, $class)\n . DIRECTORY_SEPARATOR . 'Info'\n . DIRECTORY_SEPARATOR . 'help.txt';\n \n // does that file exist?\n $file = Solar_File::exists($file);\n if ($file) {\n return file_get_contents($file);\n }\n }", "public function usageHelp()\r\n {\r\n return <<<USAGE\r\n Usage: php review_update.php -- [review_id] -- [limit]\r\n review_id Specified review id to start from that onwards.\r\n limit Specified limit to start from that onwards.\r\nUSAGE;\r\n }", "static function help($command) {\n return 'TO-DO';\n }", "public function menu_get_active_help()\n {\n return menu_get_active_help();\n }", "private function displayHelpMessage() {\n $message = \"ClassDumper help:\\n\n -h : displays this help message\\n\n -f (directory 1 directory 2 ... directory n) : \n parses those directories\\n\n -t (xml / yaml) : selects type of serialization\\n\n (no args) : parses working directory in YAML format\\n\";\n\n echo $message;\n die('ShrubRoots ClassDumper v0.991');\n }", "public function help ()\n {\n $msg = 'databaseデータをdata/fixtures/items.dbへダンプする';\n\n return $msg;\n }", "public function getHelpUrl()\n {\n return $this->helpPage;\n }", "public function usageHelp()\n {\n return\n <<<USAGE\n Usage: php generateFeed.php -- [options]\nUSAGE;\n }", "public function usageHelp()\n {\n return <<<USAGE\nUsage: php -f packager.php -- [options]\n php -f packager.php --composer\n\n composer Create the package out of composer.json\n help This help\n\nUSAGE;\n }", "public function getDesciption();", "function help()\n {\n return\n \"\\n -------------------------------------------------------------------------\\n\".\n \" ---- ~ BidVest Data : Assessment Commands ~ -------\\n\".\n \" -------------------------------------------------------------------------\\n\\n\".\n \" All comamnds begin with '\\e[1m\\033[92mphp run.php\\033[0m'\\e[0m\\n\".\n \" Then append of the folling options: \\n\".\n \" -------------------------------------------------------------------------\\n\".\n \"\\n\\n\".\n \" 1. \\e[1m --action=\\033[34madd \\033[0m \\e[0m : \\e[3mThis allows you to add a record.\\e[0m \\n\\n\".\n \" 2. \\e[1m --action=\\033[33medit \\033[0m \\e[1m--id=<vaild_id>\\e[0m \\e[0m : \\e[3mEdit a student record.\\e[0m \\n\\n\".\n \" (leave filed blank to keep previous value)\\n\\n\".\n \" 3. \\e[1m --action=\\033[91mdelete\\033[0m \\e[1m--id=<vaild_id>\\e[0m \\e[0m : \\e[3mDelete a student record (remove file only).\\e[0m \\n\\n\".\n \" 4. \\e[1m --action=\\033[36msearch \\033[0m \\e[0m : \\e[3mSearch for a student record. \\e[0m \\n\\n\".\n \" -------------------------------------------------------------------------\\n\\n\".\n \" Where \\e[1m<valid_id>\\e[0m must be an 8-digit number.\\n\\n\".\n \" -------------------------------------------------------------------------\\n\";\n }", "public function displayHelp()\n {\n $sHelp = \"\nUsage:\n$this->sViewName [options]\n\n$this->sTempalteDesc\n\nOptions:\\n\";\n\n $iMaxLength = 2;\n\n foreach ($this->hOptionList as $hOption)\n {\n if (isset($hOption['long']))\n {\n $iTemp = strlen($hOption['long']);\n\n if ($iTemp > $iMaxLength)\n {\n $iMaxLength = $iTemp;\n }\n }\n }\n\n foreach ($this->hOptionList as $hOption)\n {\n $bShort = isset($hOption['short']);\n $bLong = isset($hOption['long']);\n\n if (!$bShort && !$bLong)\n {\n continue;\n }\n\n if ($bShort && $bLong)\n {\n $sOpt = '-' . $hOption['short'] . ', --' . $hOption['long'];\n }\n elseif ($bShort && !$bLong)\n {\n $sOpt = '-' . $hOption['short'] . \"\\t\";\n }\n elseif (!$bShort && $bLong)\n {\n $sOpt = ' --' . $hOption['long'];\n }\n\n $sOpt = str_pad($sOpt, $iMaxLength + 7);\n $sHelp .= \"\\t$sOpt\\t\\t{$hOption['desc']}\\n\\n\";\n }\n\n die($sHelp . \"\\n\");\n }", "public function getDescriptions()\n {\n return ['help' => 'Show this list'];\n }", "function exampleHelpFunction()\n {\n //用法 >> exampleHelpFunction() \n return '這樣就能使用全域function了!';\n }", "public function longHelp()\n {\n return <<<LONGHELP\n\n __ __ _____ _\n | \\/ | __ _ __ _ ___| ___| | _____ __\n | |\\/| |/ _` |/ _` |/ _ \\ |_ | |/ _ \\ \\ /\\ / /\n | | | | (_| | (_| | __/ _| | | (_) \\ V V /\n |_| |_|\\__,_|\\__, |\\___|_| |_|\\___/ \\_/\\_/\n __ __ |___/_\n | \\/ | ___ __| (_) __ _\n | |\\/| |/ _ \\/ _` | |/ _` |\n | | | | __/ (_| | | (_| |\n |_|_ |_|\\___|\\__,_|_|\\__,_|\n |_ _|_ __ __| | _____ _____ _ __\n | || '_ \\ / _` |/ _ \\ \\/ / _ \\ '__|\n | || | | | (_| | __/> < __/ |\n |___|_| |_|\\__,_|\\___/_/\\_\\___|_|\n\n\n LICENSE AND COPYRIGHT NOTICE\n\n PLEASE READ THIS SOFTWARE LICENSE AGREEMENT (\"LICENSE\") CAREFULLY\n BEFORE USING THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING\n TO BE BOUND BY THE TERMS OF THIS LICENSE.\n IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT USE THE SOFTWARE.\n\n Full text of this license is available @license\n\n @license http://mageflow.com/license/connector/eula.txt MageFlow EULA\n @author MageFlow\n @copyright 2014 MageFlow http://mageflow.com/\n\n GENERAL INFO\n\n This script will create or update Media Index. Media Index is an up-to-date list of\n all media files under WYSIWYG folder in Magento media folder.\n\n\nLONGHELP;\n\n }", "public function help()\n\t{\n\t\t// You could include a file and return it here.\n\t\treturn \"<h4> Shipping Service </h4>\";\n\t}", "function GetAdminDescription()\n {\n return $this->Lang('moddescription');\n }", "public function visitHelpPage()\n {\n $this->data .= \"\n /* --- visitHelpPage --- */\n _ra.visitHelpPage = {'visit': true};\n \n if (_ra.ready !== undefined) {\n _ra.visitHelpPage();\n }\n \";\n\n return $this->data;\n }", "public function help($cmd){\n return $this->bitcoin->help($cmd);\n }", "public static function render_help() {\n\n // Grab the current screen\n $screen = get_current_screen();\n\n }", "public function help(){\n\t\t$screen = get_current_screen();\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/installing\" target=\"_blank\">' . __( 'Installing the Plugin', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/staying-updated\" target=\"_blank\">' . __( 'Staying Updated', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/glossary\" target=\"_blank\">' . __( 'Glossary', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-general-info',\n\t\t\t'title' => __( 'General Info', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-interface\" target=\"_blank\">' . __( 'Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-creating\" target=\"_blank\">' . __( 'Creating a New Form', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-sorting\" target=\"_blank\">' . __( 'Sorting Your Forms', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/forms-building\" target=\"_blank\">' . __( 'Building Your Forms', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-forms',\n\t\t\t'title' => __( 'Forms', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/entries-interface\" target=\"_blank\">' . __( 'Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/entries-managing\" target=\"_blank\">' . __( 'Managing Your Entries', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/entries-searching-filtering\" target=\"_blank\">' . __( 'Searching and Filtering Your Entries', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-entries',\n\t\t\t'title' => __( 'Entries', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/email-design\" target=\"_blank\">' . __( 'Email Design Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/analytics\" target=\"_blank\">' . __( 'Analytics Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-email-analytics',\n\t\t\t'title' => __( 'Email Design &amp; Analytics', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/import\" target=\"_blank\">' . __( 'Import Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/export\" target=\"_blank\">' . __( 'Export Interface Overview', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-import-export',\n\t\t\t'title' => __( 'Import &amp; Export', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<ul>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/conditional-logic\" target=\"_blank\">' . __( 'Conditional Logic', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/templating\" target=\"_blank\">' . __( 'Templating', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/documentation/custom-capabilities\" target=\"_blank\">' . __( 'Custom Capabilities', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '<li><a href=\"http://vfbpro.com/hooks\" target=\"_blank\">' . __( 'Filters and Actions', 'visual-form-builder-pro' ) . '</a></li>';\n\t\t$help .= '</ul>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-advanced',\n\t\t\t'title' => __( 'Advanced Topics', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t\t$help = '<p>' . __( '<strong>Always load CSS</strong> - Force Visual Form Builder Pro CSS to load on every page. Will override \"Disable CSS\" option, if selected.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable CSS</strong> - Disable CSS output for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable Email</strong> - Disable emails from sending for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable Notifications Email</strong> - Disable notification emails from sending for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Skip Empty Fields in Email</strong> - Fields that have no data will not be displayed in the email.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable saving new entry</strong> - Disable new entries from being saved.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable saving entry IP address</strong> - An entry will be saved, but the IP address will be removed.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Place Address labels above fields</strong> - The Address field labels will be placed above the inputs instead of below.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Remove default SPAM Verification</strong> - The default SPAM Verification question will be removed and only a submit button will be visible.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Disable meta tag version</strong> - Prevent the hidden Visual Form Builder Pro version number from printing in the source code.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Skip PayPal redirect if total is zero</strong> - If PayPal is configured, do not redirect if the total is zero.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Prepend Confirmation</strong> - Always display the form beneath the text confirmation after the form has been submitted.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Max Upload Size</strong> - Restrict the file upload size for all forms.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>Sender Mail Header</strong> - Control the Sender attribute in the mail header. This is useful for certain server configurations that require an existing email on the domain to be used.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>reCAPTCHA Public Key</strong> - Required if \"Use reCAPTCHA\" option is selected in the Secret field.', 'visual-form-builder-pro' ) . '</p>';\n\t\t$help .= '<p>' . __( '<strong>reCAPTCHA Private Key</strong> - Required if \"Use reCAPTCHA\" option is selected in the Secret field.', 'visual-form-builder-pro' ) . '</p>';\n\n\t\t$screen->add_help_tab( array(\n\t\t\t'id' => 'vfb-help-tab-settings',\n\t\t\t'title' => __( 'Settings', 'visual-form-builder-pro' ),\n\t\t\t'content' => $help,\n\t\t) );\n\n\t}", "function showHelp()\n{\n global $cli;\n\n $cli->writeln(sprintf(_(\"Usage: %s [OPTIONS]...\"), basename(__FILE__)));\n $cli->writeln();\n $cli->writeln(_(\"Mandatory arguments to long options are mandatory for short options too.\"));\n $cli->writeln();\n $cli->writeln(_(\"-h, --help Show this help\"));\n $cli->writeln(_(\"-u, --username[=username] Horde login username\"));\n $cli->writeln(_(\"-p, --password[=password] Horde login password\"));\n $cli->writeln(_(\"-t, --type[=type] Export format\"));\n $cli->writeln(_(\"-r, --rpc[=http://example.com/horde/rpc.php] Remote url\"));\n $cli->writeln();\n}", "public function get_default_additional_content()\n {\n\n return __('Thanks for reading.', 'subscriptio');\n }", "public function getHelp()\n {\n return '\n\t\tThis command line will be executed every day at 4:00AM.\n\n\t\tIt will retrieve files from FTP, then import data files for the campaign\n\n\t\tUsage: FilterImport [campaign.id]';\n }", "public function customizer_help() {\n\t\techo '\n\t\t<li>\n\t\t\t<p>\n\t\t\t\t' . __( 'Example text:', 'hellish-simplicity' ) . ' <code>' . esc_html( $this->default_header_text ) . '</code>\n\t\t\t</p>\n\t\t</li>';\n\t}", "public static function getHelpIndex() {\n return self::$_help_index;\n }", "function codex_add_help_text( $contextual_help, $screen_id, $screen ) {\n if ( 'action_magnet_trails' == $screen->id ) {\n $contextual_help =\n '<p>' . __('Things to remember when adding or editing a trail:') . '</p>' .\n '<ul>' .\n '<li>' . __('The trail should exist and must be traversed atleast once.') . '</li>' .\n '<li>' . __('Don\\'t forget to add the difficulty level associated with each trail.') . '</li>' .\n '</ul>' .\n '<p><strong>' . __('For more information:') . '</strong></p>' .\n '<p>' . __('<a href=\"http://codex.wordpress.org/Posts_Edit_SubPanel\" target=\"_blank\">Edit Posts Documentation</a>') . '</p>' .\n '<p>' . __('<a href=\"http://wordpress.org/support/\" target=\"_blank\">Support Forums</a>') . '</p>' ;\n } elseif ( 'edit-action_magnet_trails' == $screen->id ) {\n $contextual_help = \n '<p>' . __('This screen displays a list of all trails published by the site user.') . '</p>' ;\n }\n return $contextual_help;\n}", "public function usageHelp()\n {\n return <<<USAGE\nGenerates file mappings for a Modman or Composer Magento module\nUsage: php -f modman_files.php -- --module_name=Mage_Catalog --prefix=\"mycustom_dir\"\nOptions:\n--module_name Custom module name (REQUIRED) e.g Namespace_ModuleName\n--prefix Your module module base directory from Magento root directory\n--strip string to strip out of mapping\n \nUSAGE;\n }", "public static function start_help()\n\t{\n\t\treturn <<<HTML\n<a accesskey=\"0\" class=\"btn btn-link btn-sm\" data-toggle=\"collapse\" href=\"#ajuda-pagina\" aria-expanded=\"false\" aria-controls=\"ajuda-pagina\">\n\t<i class=\"glyphicon glyphicon-info-sign\"></i> <span class=\"sr-only\">Ajuda desta página</span>\n</a>\n<div class=\"collapse\" id=\"ajuda-pagina\">\n\t<div class=\"alert alert-info\" role=\"alert\">\nHTML;\n\t}", "public function attributeHelp()\n {\n return array(\n 'subject' => \"Name for the item that will be generated.\",\n );\n }", "public static function help() {\n\t\tWP_CLI::line( <<<EOB\nusage: wp core update\n or: wp core version [--extra]\n or: wp core install --site_url=example.com --site_title=<site-title> [--admin_name=<username>] --admin_password=<password> --admin_email=<email-address>\nEOB\n\t);\n\t}", "public function renderHelp()\n {\n $this->renderHeader();\n\n echo Line::begin('Usage:', Line::YELLOW)->nl();\n echo Line::begin()\n ->indent(2)\n ->text($this->getUsage())\n ->nl(2);\n\n // Options\n echo Line::begin('Options:', Line::YELLOW)->nl();\n echo Line::begin()\n ->indent(2)\n ->text('--help', Line::MAGENTA)\n ->to(21)\n ->text('-h', Line::MAGENTA)\n ->text('Display this help message.')\n ->nl(1);\n\n $attributes = $this->attributeNames();\n $help = $this->attributeHelp();\n\n sort($attributes);\n\n foreach ($attributes as $name) {\n echo Line::begin()\n ->indent(2)\n ->text(\"--$name\", Line::MAGENTA)\n ->to(24)\n ->text(isset($help[$name]) ? $help[$name] : '')\n ->nl();\n }\n\n exit(0);\n }", "function getHelpUrl()\n{\n global $_CONF;\n\n $retval = '';\n\n $doclang = COM_getLanguageName();\n $docs = 'docs/' . $doclang . '/trackback.html';\n if (file_exists($_CONF['path_html'] . $docs)) {\n $retval = $_CONF['site_url'] . '/' . $docs;\n } else {\n $retval = $_CONF['site_url'] . '/docs/english/trackback.html';\n }\n\n return $retval;\n}" ]
[ "0.8037826", "0.79402626", "0.7801226", "0.7746395", "0.76596934", "0.7446455", "0.7446455", "0.7420929", "0.7363276", "0.73349345", "0.73207104", "0.7192808", "0.7192808", "0.7192808", "0.71767694", "0.71521115", "0.71431315", "0.71131134", "0.7102975", "0.71028584", "0.70876986", "0.7036923", "0.702509", "0.7023572", "0.70235556", "0.70043045", "0.6979941", "0.6948646", "0.6918468", "0.691472", "0.6837456", "0.6830895", "0.6829862", "0.6829355", "0.67970103", "0.6765352", "0.6744635", "0.673814", "0.6728832", "0.6720432", "0.6720432", "0.6710232", "0.67028666", "0.6702117", "0.66951376", "0.6692768", "0.66906136", "0.66579974", "0.663497", "0.66297024", "0.66161066", "0.66009843", "0.6597649", "0.6594931", "0.65733355", "0.65719646", "0.6561331", "0.6559903", "0.6556073", "0.65522027", "0.6538886", "0.65366286", "0.65321493", "0.6522939", "0.65052325", "0.64969504", "0.64847267", "0.64672345", "0.6459839", "0.6442124", "0.6435118", "0.6433529", "0.6428475", "0.6410493", "0.6409017", "0.6406467", "0.6377789", "0.6371714", "0.63589096", "0.6342696", "0.63180274", "0.6317537", "0.6300339", "0.6293201", "0.6292696", "0.62733537", "0.62625897", "0.62441", "0.62379605", "0.62290764", "0.6219476", "0.62025386", "0.61978835", "0.61926794", "0.6178153", "0.61698335", "0.61678064", "0.61661965", "0.61627644", "0.6155763" ]
0.86842835
0
Display a listing of the resource.
public function index() { // $posts = Post::all(); $count = 0; return view('admin.posts.index',compact('posts','count')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->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() { // $categories = Category::pluck('name','id')->all(); return view('admin.posts.create',compact('categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('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 {\n return view('saldo.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\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 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 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 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('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view(\"familiasPrograma.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 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 {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "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 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 return view('student::students.student.create');\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}" ]
[ "0.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.7174025", "0.7149406", "0.71431303", "0.7142905", "0.7136737", "0.712733", "0.7122102", "0.71148264", "0.71148264", "0.71148264", "0.7111841", "0.7092733", "0.70843536", "0.70822084", "0.7079442", "0.70571405", "0.70571405", "0.7055195", "0.70391846", "0.7039114", "0.7035626", "0.7033991", "0.70300245", "0.7026507", "0.7026417", "0.7019451", "0.7017105", "0.7004775", "0.70031846", "0.6999904", "0.6995238", "0.6994825", "0.699354", "0.6988824", "0.6986871", "0.6965804", "0.6965542", "0.69560695", "0.69515944", "0.6950682", "0.6947703", "0.69433117", "0.6941539", "0.6939613", "0.69377476", "0.69377476", "0.693678", "0.69344354", "0.69314486", "0.6927608", "0.69264024", "0.6922966", "0.69181216", "0.69150716", "0.6911192", "0.69095594", "0.69092506", "0.6907887", "0.69018227", "0.69008595", "0.69006085", "0.6900209", "0.68949944", "0.6892768", "0.6891944", "0.6891552", "0.6891552", "0.6891443", "0.68886423", "0.6888326", "0.68856037", "0.68835604", "0.68813664", "0.6878345", "0.6876079", "0.6873206", "0.6873183", "0.687048", "0.687014", "0.686966", "0.68695843" ]
0.0
-1
Store a newly created resource in storage.
public function store(PostsCreateRequest $request) { // $input = $request->all(); $user = Auth::user(); if($file = $request->file('photo_id')) { //grab the file name from client machine and append current dat and time to it, creating an unique name $tempname = time().$file->getClientOriginalName(); //replace any blank spaces $name = str_replace(' ','',$tempname); //move the file to host machine i.e under public/images $file->move('images',$name); //Persist data('name') into Photo database $photo=Photo::create(['name'=>$name]); //grab the photo_id generated while persisting the photo into Photo Database(step above). $input['photo_id'] = $photo->id; } //encrypt the password $input['user_id'] = $user->id; //persist the data into User database Post::create($input); //redirect to view users page return redirect('/admin/posts'); //return $request->all(); }
{ "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) { // }
{ "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) { // $categories = Category::pluck('name','id')->all(); $post = Post::findOrFail($id); return view('admin.posts.edit', compact('post','categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $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
Update the specified resource in storage.
public function update(Request $request, $id) { // return $request->all(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\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 }", "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 }", "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($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "abstract public function put($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 updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\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 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($id, $input);", "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(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($id);", "public function update($id);", "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 put($path, $data = null);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "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 }", "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 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 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, $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.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445", "0.58630455", "0.58540666", "0.58540666", "0.5851948", "0.5816257", "0.58070177", "0.5752376", "0.5752376", "0.57359827", "0.5723941", "0.57152426", "0.56958807", "0.5691061", "0.56881654", "0.5669518", "0.5655434", "0.5651897", "0.56480426", "0.5636727", "0.56354004", "0.5633156", "0.5632135", "0.5629063", "0.5621358", "0.56089175", "0.5602031", "0.55927175", "0.5582773", "0.558176", "0.5581365", "0.5575607", "0.5571989", "0.55672973", "0.5562929", "0.55623275", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55598706", "0.55560726", "0.55558753", "0.5554241", "0.55534166", "0.5552986", "0.55440396", "0.55438566", "0.5540619", "0.55394524", "0.5536144", "0.5535339", "0.5534803", "0.5524157", "0.55188423", "0.55163455", "0.55135876", "0.5509835", "0.5507501", "0.55068344", "0.55034274", "0.5501476", "0.55010915", "0.5499286", "0.5497852", "0.54958415", "0.54958415", "0.5494513", "0.5494261", "0.54935366", "0.54931587", "0.54917634", "0.54836094", "0.5479455", "0.5478885", "0.5478268", "0.54654354", "0.54645413", "0.5461025", "0.54568535" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $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
for PS >= 1.5, sets the $id_shop
public function __construct($id_shop = null) { $this->setIdshop($id_shop); //loads site params $this->loadParams(); //loads webservices URL $this->loadURLs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getShopId() {\n\t\t\treturn $this->shopId;\n\t\t}", "public function setShopId($id)\n\t {\n\t \t $this->json['params'][$this->account]['shopid'] = $id;\n\t \t \n\t \t return $this;\n\t }", "public function setShop(string $shop)\n {\n $this->shop = $shop;\n }", "public function setShopId($id) {\n $this->defaultItemData['shopId'] = $id;\n return $this;\n }", "public function setShopId($value)\n {\n return $this->setParameter('shop_id', $value);\n }", "public function __construct($shop_id)\n {\n $this->shop_id = $shop_id;\n }", "public function getShopId()\n {\n return $this->metaRefreshValues['shopid'];\n }", "public function getShopId()\n {\n return $this->getParameter('shopId');\n }", "public function setIdEShop($idEshop)\n\t{\n\t if ( $this->id_eshop != $idEshop ) {\n\n\t \t// Se resetea el stock de refuerzo\n\t \t$observacion = ( $idEshop ) ? 'Asignacion al eShop de la marca' : 'Asignacion al eShop de Deluxe Buys';\n\t \t$productoItems = $this->getProductoItem();\n\t \tforeach ($productoItems as $productoItem) {\n\t \t\t$productoItem->restaStock( $productoItem->getStockRefuerzo(), producto::ORIGEN_REFUERZO, stockTipo::SISTEMA_RESETEO_REFUERZO, null, $observacion );\n\t \t}\n\n\t \t// Si tiene, se cierra la publicacion en Mercado libre\n\t \tMercadoLibre::getInstance()->cerrarPublicacion($this, true);\n\t }\n\n\t $this->_set('id_eshop', $idEshop);\n\n\t return $this;\n\t}", "public function setIdShop($idShop)\n {\n $this->idShop = $idShop;\n\n return $this;\n }", "public function __construct($id_shop = null)\r\n\t{\r\n\t\t//for PS >= 1.5, sets the $id_shop\r\n\t\t$this->setIdshop($id_shop);\r\n\r\n\t\t//loads site params\r\n\t\t$this->loadParams();\r\n\t\t//loads webservices URL\r\n\t\t$this->loadURLs();\r\n\t}", "private function updateShopInfo($shop = null) {\n // in case something weird happen, wrap in try catch\n try {\n\n $shopify = App::make('ShopifyAPI', [\n 'API_KEY' => env('API_KEY'),\n 'API_SECRET' => env('API_SECRET'),\n 'SHOP_DOMAIN' => $shop->permanent_domain,\n 'ACCESS_TOKEN' => $shop->access_token,\n ]);\n\n $shopData = $shopify->call(['URL' => '/admin/shop.json']);\n\n if($shopData) {\n\n $shop->shopify_id = $shopData->shop->id; // don't know why this would change but just in case\n $shop->public_domain = $shopData->shop->domain;\n $shop->setDomain($shopData->shop->myshopify_domain);\n // $shop->shop_type = $shopData->shop->plan_name (for the future)\n $shop->shop_owner_email = $shopData->shop->email;\n $shop->save();\n }\n\n }\n catch(Exception $e) {\n Log::error('Some weird stuff happened... ' . $e->getMessage());\n }\n }", "function set_default_shop($google_id, $user_id, $shop_id){\n \n include_once 'db_connection.php'; \n $database = new db_connection(); \n $db = $database->getConnection();\n \n include_once 'etsy_user.php';\n $etsy_user=new etsy_user($db);\n \n $etsy_user->reset_default($google_id);\n \n $etsy_user->set_default($google_id, $user_id, $shop_id); \n}", "public function getShoptId()\n {\n return $this->getParameter('shop_id');\n }", "function stal_woo_set_main_shop_page_id( $post_id ) {\n\n\t\tif ( stal_is_woo_page( 'shop' ) || stal_is_woo_page( 'single' ) || stal_is_woo_page( 'category' ) || stal_is_woo_page( 'tag' ) ) {\n\t\t\t$shop_id = stal_woo_get_main_shop_page_id();\n\n\t\t\tif ( ! empty( $shop_id ) ) {\n\t\t\t\t$post_id = $shop_id;\n\t\t\t}\n\t\t}\n\n\t\treturn $post_id;\n\t}", "public function setShopId(string $value)\n {\n return $this->setParameter('shopId', $value);\n }", "public function __construct($shop, $productId)\n {\n $this->productId = $productId;\n $this->shop = $shop;\n }", "public function autoinstaller($shop_id = null)\n {\n if (!empty($shop_id)) {\n $shop = Shop::getShop($shop_id);\n $this->createStore($shop);\n\n return;\n }\n\n $shops = Shop::getShops();\n foreach ($shops as $shop) {\n $this->createStore($shop);\n }\n }", "public function setDefaultConfiguration_2_15($id_shop_group = null, $id_shop = null) {\n\t\tConfiguration::updateValue('pagecache_groups', true, false, $id_shop_group, $id_shop);\n\t}", "public function getWorkshopId(){\n return 1;\n }", "public function setDefaultConfiguration_2_11($id_shop_group = null, $id_shop = null) {\n\t\tConfiguration::updateValue('pagecache_ignored_params', 'utm_campaign,utm_content,utm_medium,utm_source,utm_term,_openstat,cm_cat,cm_ite,cm_pla,cm_ven,owa_ad,owa_ad_type,owa_campaign,owa_medium,owa_source,pk_campaign,pk_kwd,WT.mc_t', false, $id_shop_group, $id_shop);\n\t}", "function stal_woo_get_main_shop_page_id() {\n\t\t// Get page id from options table\n\t\t$shop_id = get_option( 'woocommerce_shop_page_id' );\n\n\t\tif ( ! empty( $shop_id ) ) {\n\t\t\treturn $shop_id;\n\t\t}\n\n\t\treturn false;\n\t}", "public function getShopifyId() {\n return $this->getShopifyProperty('id');\n }", "public function setStoreId($id);", "public function shop_item($id='')\n\t{\n\t\t$data['active_page'] = 'shop';\n\t\t$data['cart_items_count'] = $this->m_cart->get_cart_count();\n\t\t$data['settings'] = $this->m_settings->get_all();\n\t\t$this->load->model('m_sets');\n\t\t\n\t\t// Get set\n\t\t$data['set'] = $this->m_sets->get_sets($id)['items'][0];\n\t\t// Get set Items\n\t\t$data['set_item_list'] = $this->m_sets->get_set_items($id);\n\t\t// Get set attributes\n\t\t$set_attr_list = $this->m_sets->get_set_attrs($id);\n\n\t\t// Make attributes humman readable\n\t\t$attr_result = [];\n\t\tif (!empty($set_attr_list)) {\n\t\t\tforeach ($set_attr_list as $attr) {\n\t\t\t\t$id = $attr['attrgroup_id'];\n\t\t\t\tif (isset($attr_result[$id])) {\n\t\t\t\t\t$attr_result[$id][$attr['attr_id']] = $attr;\n\t\t\t\t} else {\n\t\t\t\t\t$attr_result[$id][$attr['attr_id']] = $attr;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$data['attr_list'] = $attr_result;\n\t\t$this->load->view('frontend/templates/header',$data);\n\t\t$data['sidebar'] ='';// $this->load->view('frontend/templates/sidebar_des_types',$data,true);\n\t\t$this->load->view('frontend/pages/boss/product', $data);\n\t\t$this->load->view('frontend/templates/footer', $data);\n\t}", "function convert_shop( &$obj )\n\t{\n\t\t// set default photo\n\t\t$obj->default_photo = $this->get_default_photo( $obj->id, 'shop' );\n\n\t\t// set default icon \n\t\t$obj->default_icon = $this->get_default_photo( $obj->id, 'shop-icon' );\n\n\t\t// touch count\n\t\t$obj->touch_count = $this->CI->Touch->count_all_by(array(\"type_id\" => $obj->id, \"type_name\" => \"shop\"));\n\n\t\t//rating details \n\t\t\n\t\t// $obj->like_count = $this->CI->Like->count_all_by(array(\"product_id\" => $obj->id));\n\n\t\t\n\t\t$total_rating_count = 0;\n\t\t$total_rating_value = 0;\n\n\t\t$five_star_count = 0;\n\t\t$five_star_percent = 0;\n\n\t\t$four_star_count = 0;\n\t\t$four_star_percent = 0;\n\n\t\t$three_star_count = 0;\n\t\t$three_star_percent = 0;\n\n\t\t$two_star_count = 0;\n\t\t$two_star_percent = 0;\n\n\t\t$one_star_count = 0;\n\t\t$one_star_percent = 0;\n\n\t\t//Rating Total how much ratings for this product\n\t\t$conds_rating['shop_id'] = $obj->id;\n\t\t$total_rating_count = $this->CI->Shop_rate->count_all_by($conds_rating);\n\t\t$sum_rating_value = $this->CI->Shop_rate->sum_all_by($conds_rating)->result()[0]->rating;\n\n\t\t//Rating Value such as 3.5, 4.3 and etc\n\t\tif($total_rating_count > 0) {\n\t\t\t$total_rating_value = number_format((float) ($sum_rating_value / $total_rating_count), 1, '.', '');\n\t\t} else {\n\t\t\t$total_rating_value = 0;\n\t\t}\n\n\t\t//For 5 Stars rating\n\n\t\t$conds_five_star_rating['rating'] = 5;\n\t\t$conds_five_star_rating['shop_id'] = $obj->id;\n\t\t$five_star_count = $this->CI->Shop_rate->count_all_by($conds_five_star_rating);\n\t\tif($total_rating_count > 0) {\n\t\t\t$five_star_percent = number_format((float) ((100 / $total_rating_count) * $five_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$five_star_percent = 0;\n\t\t}\n\n\t\t//For 4 Stars rating\n\t\t$conds_four_star_rating['rating'] = 4;\n\t\t$conds_four_star_rating['shop_id'] = $obj->id;\n\t\t$four_star_count = $this->CI->Shop_rate->count_all_by($conds_four_star_rating);\n\t\tif($total_rating_count > 0) {\n\t\t\t$four_star_percent = number_format((float) ((100 / $total_rating_count) * $four_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$four_star_percent = 0;\n\t\t}\n\n\n\t\t//For 3 Stars rating\n\t\t$conds_three_star_rating['rating'] = 3;\n\t\t$conds_three_star_rating['shop_id'] = $obj->id;\n\t\t$three_star_count = $this->CI->Shop_rate->count_all_by($conds_three_star_rating);\n\t\tif($total_rating_count > 0) {\n\t\t\t$three_star_percent = number_format((float) ((100 / $total_rating_count) * $three_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$three_star_percent = 0;\n\t\t}\n\n\n\t\t//For 2 Stars rating\n\t\t$conds_two_star_rating['rating'] = 2;\n\t\t$conds_two_star_rating['shop_id'] = $obj->id;\n\t\t$two_star_count = $this->CI->Shop_rate->count_all_by($conds_two_star_rating);\n\n\t\tif($total_rating_count > 0) {\n\t\t\t$two_star_percent = number_format((float) ((100 / $total_rating_count) * $two_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$two_star_percent = 0;\n\t\t}\n\n\t\t//For 1 Stars rating\n\t\t$conds_one_star_rating['rating'] = 1;\n\t\t$conds_one_star_rating['shop_id'] = $obj->id;\n\t\t$one_star_count = $this->CI->Shop_rate->count_all_by($conds_one_star_rating);\n\n\t\tif($total_rating_count > 0) {\n\t\t$one_star_percent = number_format((float) ((100 / $total_rating_count) * $one_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$one_star_percent = 0;\n\t\t}\n\n\n\t\t$rating_std = new stdClass();\n\t\t@$rating_std->five_star_count = $five_star_count; \n\t\t$rating_std->five_star_percent = $five_star_percent;\n\n\t\t$rating_std->four_star_count = $four_star_count;\n\t\t$rating_std->four_star_percent = $four_star_percent;\n\n\t\t$rating_std->three_star_count = $three_star_count;\n\t\t$rating_std->three_star_percent = $three_star_percent;\n\n\t\t$rating_std->two_star_count = $two_star_count;\n\t\t$rating_std->two_star_percent = $two_star_percent;\n\n\t\t$rating_std->one_star_count = $one_star_count;\n\t\t$rating_std->one_star_percent = $one_star_percent;\n\n\t\t$rating_std->total_rating_count = $total_rating_count;\n\t\t$rating_std->total_rating_value = $total_rating_value;\n\n\n\t\t$obj->rating_details = $rating_std;\n\n\t\t// grocery branch object\n\t\tif ( isset( $obj->id )) {\n\t\t\t$conds['shop_id'] = $obj->id;\n\t\t\t$tmp_grocery_branch_count = $this->CI->Grocery_branch->count_all_by( $conds );\n\t\t\tif( $tmp_res_branch_count > 0 ) {\n\t\t\t\t$tmp_grocery_branch = $this->CI->Grocery_branch->get_all_by( $conds )->result();\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$tmp_grocery_branch[] = $this->CI->Grocery_branch->get_empty_object();\n\t\t\t}\n\t\t\t$obj->grocery_branch = $tmp_grocery_branch;\n\t\t}\n\n\t\tif($need_return)\n\t\t{\n\t\t\treturn $obj;\n\t\t}\t\n\t}", "public function createSubshop()\n {\n /** @var Connection $dbal */\n $dbal = Shopware()->Container()->get('dbal_connection');\n $dbal->exec('INSERT INTO s_core_shops\n (id, main_id, name, title, position, host, base_path, base_url, hosts, secure, template_id, document_template_id, category_id, locale_id, currency_id, customer_group_id, fallback_id, customer_scope, `default`, active) VALUES\n (\"3\", NULL, \"Export Testshop\", \"Export Testshop\", \"0\", \"' . $this->subShopDomain . '\", NULL, NULL, \"\", \"0\", \"23\", \"23\", \"3\", \"1\", \"1\", \"1\", \"1\", \"0\", \"0\", \"1\");');\n\n $dbal->exec('UPDATE s_export SET languageID=3 WHERE id in (4711, 4712, 4713, 4714)');\n }", "function mixtape_qodef_get_woo_shop_page_id() {\n\t\tif(mixtape_qodef_is_woocommerce_installed()) {\n\t\t\treturn get_option('woocommerce_shop_page_id');\n\t\t}\n\t}", "function jigoshop_upgrade_111() {\n\n\t// Add default setting for shop redirection page\n\t$shop_page = get_option('jigoshop_shop_page_id');\n\tupdate_option( 'jigoshop_shop_redirect_page_id' , $shop_page );\n\tupdate_option( 'jigoshop_enable_related_products' , 'yes' );\n\n}", "public function setShoeID($value) {\n\t\t$this->_shoe_id = $value;\n\t}", "public function getShopNumber()\n {\n return $this->ShopNumber;\n }", "function setOrderPaid($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "public function createStore($shop)\n {\n // Require only on this function to not overload memory with unneeded classes\n require_once _PS_MODULE_DIR_ . 'doofinder/lib/EasyREST.php';\n $client = new EasyREST();\n $apikey = Configuration::getGlobalValue('DF_AI_APIKEY');\n $admin_endpoint = Configuration::getGlobalValue('DF_AI_ADMIN_ENDPOINT');\n $languages = Language::getLanguages(true, $shop['id_shop']);\n $currencies = Currency::getCurrenciesByIdShop($shop['id_shop']);\n $shopId = $shop['id_shop'];\n $shopGroupId = $shop['id_shop_group'];\n $primary_lang = new Language(Configuration::get('PS_LANG_DEFAULT', null, $shopGroupId, $shopId));\n $installationID = null;\n $callbacksUrls = [];\n\n $this->setDefaultShopConfig($shopGroupId, $shopId);\n\n $shop_url = $this->getShopURL($shopId);\n $store_data = [\n 'name' => $shop['name'],\n 'platform' => 'prestashop',\n 'primary_language' => $primary_lang->language_code,\n 'search_engines' => [],\n 'sector' => '',\n ];\n\n foreach ($languages as $lang) {\n foreach ($currencies as $cur) {\n if ($cur['deleted'] == 1) {\n continue;\n }\n $ciso = $cur['iso_code'];\n $lang_code = $lang['language_code'];\n $feed_url = $this->buildFeedUrl($shopId, $lang['iso_code'], $ciso);\n $store_data['search_engines'][] = [\n 'name' => $shop['name'] . ' | Lang:' . $lang['iso_code'] . ' Currency:' . strtoupper($ciso),\n 'language' => $lang_code,\n 'currency' => $ciso,\n 'site_url' => $shop_url,\n 'stopwords' => false,\n 'datatypes' => [\n [\n 'name' => 'product',\n 'preset' => 'product',\n 'datasources' => [\n [\n 'options' => [\n 'url' => $feed_url,\n ],\n 'type' => 'file',\n ],\n ],\n 'options' => [\n 'exclude_out_of_stock_items' => false,\n 'group_variants' => false,\n ],\n ],\n ],\n ];\n $callbacksUrls[$lang_code][$ciso] = $this->getProcessCallbackUrl();\n }\n }\n $store_data['callback_urls'] = $callbacksUrls;\n\n $json_store_data = json_encode($store_data);\n $this->debug('Create Store Start');\n $this->debug(print_r($store_data, true));\n\n $response = $client->post(\n 'https://' . $admin_endpoint . '/plugins/create-store',\n $json_store_data,\n false,\n false,\n 'application/json',\n ['Authorization: Token ' . $apikey]\n );\n\n if ($response->getResponseCode() == 200) {\n $response = json_decode($response->response, true);\n $installationID = @$response['installation_id'];\n $this->debug('Create Store response:');\n $this->debug(print_r($response, true));\n\n if ($installationID) {\n $this->debug(\"Set installation ID: $installationID\");\n Configuration::updateValue('DF_INSTALLATION_ID', $installationID, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_ENABLED_V9', true, false, $shopGroupId, $shopId);\n $this->setSearchEnginesByConfig();\n } else {\n $this->debug('Invalid installation ID');\n exit('ko');\n }\n } else {\n $error_msg = \"Create Store failed with code {$response->getResponseCode()} and message '{$response->getResponseMessage()}'\";\n $response_msg = 'Response: ' . print_r($response->response, true);\n $this->debug($error_msg);\n $this->debug($response_msg);\n echo $response->response;\n exit;\n }\n }", "private function setGlobalStoreOfShopNumber(string $shopNumber)\n {\n if (!$this->registry->isRedirect()) {\n $storeId = $this->sgCoreConfig->getStoreId($shopNumber);\n $this->storeManager->setCurrentStore($storeId);\n }\n }", "public function setDefaultConfiguration_2_7($id_shop_group = null, $id_shop = null) {\n\t\tConfiguration::updateValue('pagecache_logs', false, false, $id_shop_group, $id_shop);\n\t\t// Enable statistics by default\n\t\tConfiguration::updateValue('pagecache_stats', true, false, $id_shop_group, $id_shop);\n\t\t// Default browser cache to 15 minutes\n\t\tforeach (self::$managed_controllers as $controller) {\n\t\t\tConfiguration::updateValue('pagecache_'.$controller.'_expires', 15, false, $id_shop_group, $id_shop);\n\t\t}\n\t}", "private function _setQuantity($idTyre, $idStore, $idShop)\n\t{\n\t\t$qp = new QueryProcessor();\n\t\treturn $qp->query_stocks_quantity($idTyre, $idStore, $idShop);\n\t}", "public function setDefaultConfiguration_2_16($id_shop_group = null, $id_shop = null) {\n\t\tif (!Configuration::get('pagecache_cron_token')) {\n\t\t\tConfiguration::updateValue('pagecache_cron_token', self::generateRandomString(), false, $id_shop_group, $id_shop);\n\t\t}\n\t}", "public function getStoreId(){\r\n\t\t$this->store_id = getValue(\"SELECT store_id FROM tbl_car_to_store WHERE car_id = \".$this->car_id.\" AND store_id!=0\");\r\n\t\treturn $this->store_id;\t\r\n\t}", "public function setStoreId($id)\n {\n $this->store_id = $id;\n }", "public function setStoreId($store);", "function setOrderSend($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "function store_get_shopper_id() {\n\t\tglobal $store_session_con;\n\t\tif (!isset($store_session_con)) {\n\t\t\t$store_session_con = dbConnect();\n\t\t}\n\t\t// First, get the shopper_id from the Session table\n\t\t$query = \"SELECT Shopper_id FROM Session \";\n\t\t$query .= \"WHERE id = ?\";\n\n\t\ttry {\n\t\t\t$statement = $store_session_con->prepare($query);\n\t\t\t\n\t\t\t$statement->execute(array(session_id()));\n\t\t}\n\t\tcatch (PDOException $ex) {\n\t\t\terror_log(\"PDO Exception in file $ex->getFile(), line $ex->getLine(): Code $ex->getCode() - $ex->getMessage()\");\n\t\t\treturn(0);\n\t\t}\n\t\tif ($statement->rowCount() > 0) {\n\t\t\t$row = $statement->fetch(PDO::FETCH_NUM);\n\t\t\treturn($row[0]);\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public function setShopName($shopName)\n {\n $this->shopName = $shopName;\n }", "function setSiteId($value)\n {\n $this->_props['SiteId'] = $value;\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "function updateshops() {\n\n\tif (rand(1,8)<2) {\t// shops replenish too fast - slow them down\n\t\t// for now let's just pick a random inventory item and increase it by 1 (up to max)\n\t\t// FIXME: cant get RAND to work with UPDATE !?!?\n\t\t// $result=mysql_query(\"UPDATE phaos_shop_inventory SET quantity=quantity+1 WHERE quantity<max ORDER BY RAND() LIMIT 1\");\n\n\t\t// this code will do it randomly, but in two steps. MySQL 4.x is needed for UPDATE with RAND\n\t\t$result=mysql_query(\"SELECT shop_id,type,item_id FROM phaos_shop_inventory WHERE quantity<max ORDER BY RAND() LIMIT 1;\");\n\t\tif ($row = mysql_fetch_array($result)) {\n\t\t\t$result=mysql_query(\"UPDATE phaos_shop_inventory\n\t\t\t\tSET quantity=quantity+1\n\t\t\t\tWHERE shop_id='$row[shop_id]' AND type='$row[type]' AND item_id='$row[item_id]' \");\n\t\t}\n\t}\n\n}", "public function getShopNumber()\n {\n if ($this->shop_number === null) {\n $this->shop_number = $this->configHelper->getShopNumber();\n }\n\n return $this->shop_number;\n }", "function addCategory($object) {\n $object->Item->ShopId = 'yourReturnedCategoryIdOnMarketplace_'.rand(1000, 9999); \n}", "public function getShopName()\n {\n return 'oscommerce-2.3.4';\n }", "function setArticle($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "function getID(){ return (int)$this->productInfo['products_id']; }", "private function saveShop($shop, $token)\n {\n Log::debug(\"ShopifyApi.saveShop 1: for shop = $shop and token = $token\");\n\n // check shop in DB\n $count = Authorization::whereRaw('shop = ?', array($shop))->count();\n\n if ($count == 0) {\n Log::info(\"ShopifyApi.saveShop 2: for shop = $shop and token = $token\");\n $authorization = new Authorization;\n $authorization->shop = $shop;\n $authorization->token = $token;\n $authorization->save();\n }\n\n // check insert in DB\n $count2 = Authorization::whereRaw('shop = ?', array($shop))->count();\n Log::debug(\"ShopifyApi.saveShop 3: count1=$count, count2=$count2 for shop = $shop and token = $token\");\n }", "function addVako($object) {\n /* you can itentify the article with $object->reference->ShopId */ \n $object->Item->ShopId = 'yourReturnedVakoIdOnMarketplace_'.rand(1000, 9999); \n}", "public function getFcpoRatepayShopId()\n {\n return $this->getRequestParameter('add_paydata[shop_id]');\n }", "public function hasShopid(){\n return $this->_has(11);\n }", "public function storeSaleProduct($id) {\n\n\t\tif ( Auth::guest() ) {\n\t\t\treturn redirect('login');\n\t\t}\n\n\t\t// get data about product.\n\t\t// $user = Auth::user();\n\n\t\t// get auth user.\n\t\tif ( CheckBranch::isBranch() ) {\n\t\t\t$main_id = CheckBranch::mainShopId();\n\t\t\t$user = Shop::find($main_id);\n\t\t} else {\n\t\t\t$user = Auth::user();\n\t\t}\n\n\t\t$product = $user->products->find($id);\n\t\t$hasPromotion = $product->has_promotion;\n\t\t$isPromotion = false;\n\n\t\t// check if product has promotion or not.\n\t\tif ($hasPromotion) {\n\n\t\t\t// has promotion.\n\t\t\t// get date now, start promotion and end promotion date.\n\t\t\t// compare date, if today is between start promotion and end promotion. then it's promotion time.\n\t\t\t// isPromotion is true if in promotion time.\n\t\t\t$today = Carbon::now()->hour(0)->minute(0)->second(0);\n\t\t\t$promotion_start = Carbon::createFromFormat('Y-m-d', $product->promotion_start)->hour(0)->minute(0)->second(0);\n\t\t\t$promotion_end = Carbon::createFromFormat('Y-m-d', $product->promotion_end)->hour(0)->minute(0)->second(0);\n\t\t\t$isPromotion = $today->between($promotion_start, $promotion_end);\n\n\t\t}\n\n\t\t// retrive data in session about sale products.\n\t\t// if not have, create array for store sale products.\n\t\t$saleProductsArray = Session::get('sales', array());\n\n\t\t// check this product is already has in session or not.\n\t\t$isHas = array_key_exists(strval($product->barcode), $saleProductsArray);\n\n\t\t$saleProduct = new saleProduct();\n\t\t$saleProduct->setProductId($product->id);\n\t\t$saleProduct->setProductBarcode($product->barcode);\n\t\t$saleProduct->setName($product->name);\n\n\t\tif ($isHas) {\n\t\t\t// already has, update quantity of product\n\t\t\t$oldSaleProduct = $saleProductsArray[strval($product->barcode)];\n\t\t\t$oldQuantity = $oldSaleProduct->getQuantity();\n\t\t\t$saleProduct->setQuantity($oldQuantity+1);\n\t\t} else {\n\t\t\t// not has, set quantity to 1\n\t\t\t$saleProduct->setQuantity(1);\n\t\t}\n\n\t\t// set price and point.\n\t\tif ($isPromotion) {\n\n\t\t\t// price\n\t\t\tif (is_null($product->promotion_price)) {\n\t\t\t\t// no promotion_price.\n\t\t\t\t$saleProduct->setPrice($product->price);\n\t\t\t} else {\n\t\t\t\t$saleProduct->setPrice($product->promotion_price);\n\t\t\t\t$saleProduct->setHasPromotionPrice(true);\n\t\t\t}\n\t\t\t// point\n\t\t\tif (is_null($product->promotion_point)) {\n\t\t\t\t// no promotion_point.\n\t\t\t\t$saleProduct->setPoint($product->point);\n\t\t\t} else {\n\t\t\t\t$saleProduct->setPoint($product->promotion_point);\n\t\t\t\t$saleProduct->setHasPromotionPoint(true);\n\t\t\t}\n\n\t\t} else {\n\t\t\t$saleProduct->setPrice($product->price);\n\t\t\t$saleProduct->setPoint($product->point);\n\t\t\t$saleProduct->setHasPromotionPrice(false);\n\t\t\t$saleProduct->setHasPromotionPoint(false);\n\n\t\t}\n\n\t\t$saleProductsArray[strval($saleProduct->getProductBarcode())] = $saleProduct;\n\n\t\tSession::put('sales', $saleProductsArray);\n\n\t\t$summary = $this->calculate();\n\n\t\t$result = array();\n\t\t$result['id'] = $saleProduct->getProductId();\n\t\t$result['barcode'] = $saleProduct->getProductBarcode();\n\t\t$result['name'] = $product->name;\n\t\t$result['price'] = $saleProduct->getPrice();\n\t\t$result['point'] = $saleProduct->getPoint();\n\t\t$result['is_has'] = $isHas;\n\t\t$result['has_promotion_price'] = $saleProduct->getHasPromotionPrice();\n\t\t$result['has_promotion_point'] = $saleProduct->getHasPromotionPoint();\n\t\t$result['total'] = $summary['total'];\n\t\t$result['get_point'] = $summary['get_point'];\n\n\t\treturn Response::json($result);\n\n\t}", "public function edit(Shop $shop)\n {\n //\n }", "function _set_id( $idGrupo ){\n \t\t$this->idGrupo = $idGrupo;\n }", "public function __construct($shop = null)\n {\n $this->setShop($shop);\n $this->setCookiePolicy();\n }", "public function testGetOneShop()\n {\n //Given\n $shop = factory(Shop::class)->create(['user_id' => $this->user->id]);\n\n //When\n $response = $this->actingAs($this->user)->get('api/admin/shop/' . $shop->id);\n\n //Then\n $response->assertStatus(200);\n }", "function get_my_shop($userId)\n {\n $protocol = \"http://\";//(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https://\" : \"http://\";\n $domainName = $_SERVER['HTTP_HOST'];\n $pshop = $link = '';\n $p_userddd = $this->user_model->get('use_id,use_username, use_group, parent_id, use_status', 'use_status = 1 AND use_id = ' . (int)$userId);\n $linksp = '';\n switch ($p_userddd->use_group) {\n case AffiliateStoreUser:\n $checkDomain = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$p_userddd->use_id);\n $domain_p = $checkDomain->sho_link . '.' . $domainName;\n if ($checkDomain->domain != '') {\n $domain_p = $checkDomain->domain;\n }\n $pshop = $checkDomain->sho_link;\n $link = $linksp = $protocol . $domain_p;\n break;\n\n case StaffUser:\n $user_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$p_userddd->parent_id);\n $userID = $user_p->use_id;\n if ($user_p->use_group == BranchUser) {\n $info_parent = 'CN: ' . $user_p->use_username;\n $checkDomain_parent = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$user_p->use_id);\n\n $user_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$user_p->parent_id);\n $userID = $user_p_p->use_id;\n if ($user_p_p->use_group == StaffStoreUser) {\n $info_parent .= ' ,NVGH: ' . $user_p_p->use_username;\n $checkDomain_parent = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$user_p_p->parent_id);\n\n $user_p_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$user_p_p->parent_id);\n $userID = $user_p_p_p->use_id;\n $info_parent .= ', GH: ' . $user_p_p_p->use_username;\n } else {\n $info_parent .= ', GH: ' . $user_p_p->use_username;\n }\n } else {\n $info_parent = 'GH: ' . $user_p->use_username;\n }\n break;\n\n case BranchUser:\n\n $checkDomain = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$p_userddd->use_id);\n $user_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$p_userddd->parent_id);\n $userID = $user_p->use_id;\n $info_parent = 'GH: ' . $user_p->use_username;\n $checkDomain_p = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$user_p->use_id);\n if ($user_p->use_group == StaffStoreUser) {\n $user_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$user_p->parent_id);\n $userID = $user_p_p->use_id;\n $info_parent = 'NVGH: ' . $user_p->use_username . ', GH: ' . $user_p_p->use_username;\n $checkDomain_p = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$user_p_p->use_id);\n }\n $domain_p = $checkDomain_p->sho_link . '.' . $domainName;\n if ($checkDomain_p->domain != '') {\n $domain_p = $checkDomain_p->domain;\n }\n $pshop = $checkDomain->sho_link;\n $link = $protocol . $domain_p . '/' . $checkDomain->sho_link;\n //get link sp, link tin\n $linksp = $protocol . $checkDomain->sho_link . '.' . $domainName;\n if ($checkDomain->domain != '') {\n $linksp = $protocol . $checkDomain->domain;\n }\n break;\n\n case StaffStoreUser:\n $user_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$p_userddd->parent_id);\n $userID = $user_p->use_id;\n $info_parent = 'GH: ' . $user_p->use_username;\n break;\n\n case AffiliateUser: \n $sho_aff = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . (int)$p_userddd->use_id);\n $user_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . (int)$p_userddd->parent_id);\n $userID = $user_p->use_id;\n $info_parent = 'GH: ' . $user_p->use_username;\n switch ($user_p->use_group) {\n case StaffUser:\n $info_parent = 'NV: ' . $user_p->use_username;\n $user_p1 = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . $user_p->parent_id);\n $userID = $user_p1->use_id;\n $checkDomain = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . $user_p1->use_id);\n if ($user_p1->use_group == BranchUser) {\n $info_parent .= ', CN: ' . $user_p1->use_username;\n\n $user_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . $user_p1->parent_id);\n $userID = $user_p_p->use_id;\n if ($user_p_p->use_group == StaffStoreUser) {\n $info_parent .= ' ,NVGH: ' . $user_p_p->use_username;\n\n $user_p_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . $user_p_p->parent_id);\n $userID = $user_p_p_p->use_id;\n $info_parent .= ', GH: ' . $user_p_p_p->use_username;\n } else {\n $info_parent .= ', GH: ' . $user_p_p->use_username;\n }\n } else {\n $info_parent .= ', GH: ' . $user_p1->use_username;;\n }\n break;\n case BranchUser:\n $checkDomain = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . $user_p->use_id);\n $user_p1 = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . $user_p->parent_id);\n $userID = $user_p->use_id;\n $info_parent = 'CN: ' . $user_p->use_username . ', GH: ' . $user_p1->use_username;\n\n if ($user_p1->use_group == StaffStoreUser) {\n $user_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . $user_p1->parent_id);\n $userID = $user_p_p->use_id;\n\n $info_parent = 'CN: ' . $user_p->use_username . ', NVGH: ' . $user_p1->use_username . ', GH: ' . $user_p_p->use_username; \n }\n break;\n case StaffStoreUser:\n $user_p_p = $this->user_model->get(\"use_id,use_username, use_group, parent_id\", \"use_status = 1 AND use_id = \" . $user_p->parent_id);\n $userID = $user_p_p->use_id;\n\n $info_parent = 'NVGH: ' . $user_p->use_username . ', GH: ' . $user_p_p->use_username;\n $checkDomain = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . $user_p_p->use_id);\n break;\n default:\n $checkDomain = $this->shop_model->get('sho_id, sho_link, domain', 'sho_user = ' . $user_p->use_id);\n break;\n }\n\n $pshop = $checkDomain->sho_link;\n $link = $protocol . $checkDomain->sho_link . '.' . $domainName;\n if ($checkDomain->domain != '') {\n $pshop = $checkDomain->domain;\n $link = $protocol . $checkDomain->domain;\n }\n $linksp = $link;\n $link .= '/' . $sho_aff->sho_link;\n\n break;\n\n default:\n\n break;\n }\n $info = array(\n 'info_parent' => $info_parent,\n 'pshop' => $pshop,\n 'link_gh' => $link,\n 'link_sp' => $linksp\n );\n return $info;\n }", "function addArticleCrossselling($object) {\n /* you can itentify the article with $object->reference->ShopId */ \n $object->Item->ShopId = 'yourReturnedCrosssellingIdOnMarketplace_'.rand(1000, 9999); \n \n}", "public function __construct(User $shop)\n {\n $this->shop = $shop;\n }", "public function setShopNumber($var)\n {\n GPBUtil::checkInt32($var);\n $this->ShopNumber = $var;\n\n return $this;\n }", "function set_id( $id ){\n\t\t$this->id = $id;\n\t\t// this is add request. so number is 0\n\t\tif( $this->id == $this->id_base ){\n\t\t\t$this->number = 0;\n\t\t\t$this->is_new = true;\n\t\t}\n\t\t// parse number\n\t\telse{\n\t\t\t$this->number = str_replace($this->id_base.'-', '', $this->id);\n\n\t\t\t// load instance data\n\t\t\t$this->instance = jcf_field_settings_get( $this->id );\n\t\t\tif( !empty($this->instance) ){\n\t\t\t\t$this->slug = $this->instance['slug'];\n\t\t\t}\n\t\t}\n\t}", "function addArticle($object) {\n $object->Item->ShopId = 'yourReturnedArticleIdOnMarketplace_'.rand(1000, 9999); \n}", "public function setId($id)\n {\n $this->setIdSale($id);\n }", "public function getTrustedShopId()\n {\n if ($this->_sTrustedShopId == null) {\n $this->_sTrustedShopId = false;\n $oConfig = $this->getConfig();\n $aTsType = $oConfig->getConfigParam('tsSealType');\n $sTsActive = $oConfig->getConfigParam('tsSealActive');\n $aTrustedShopIds = $oConfig->getConfigParam('iShopID_TrustedShops');\n $iLangId = (int) oxRegistry::getLang()->getBaseLanguage();\n if ($sTsActive && $aTrustedShopIds && $aTsType[$iLangId] == 'CLASSIC') {\n // compatibility to old data\n if (!is_array($aTrustedShopIds) && $iLangId == 0) {\n $this->_sTrustedShopId = $aTrustedShopIds;\n }\n if (is_array($aTrustedShopIds)) {\n $this->_sTrustedShopId = $aTrustedShopIds[$iLangId];\n }\n if (strlen($this->_sTrustedShopId) != 33 || substr($this->_sTrustedShopId, 0, 1) != 'X') {\n $this->_sTrustedShopId = false;\n }\n }\n }\n\n return $this->_sTrustedShopId;\n }", "public function setDefaultShopConfig($shopGroupId, $shopId)\n {\n $apikey = Configuration::getGlobalValue('DF_AI_APIKEY');\n $api_endpoint = Configuration::getGlobalValue('DF_AI_API_ENDPOINT');\n $api_endpoint_array = explode('-', $api_endpoint);\n $region = $api_endpoint_array[0];\n\n Configuration::updateValue('DF_ENABLE_HASH', true, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_GS_DISPLAY_PRICES', true, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_GS_PRICES_USE_TAX', true, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_FEED_FULL_PATH', true, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_SHOW_PRODUCT_VARIATIONS', 0, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_REGION', $region, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_API_KEY', $region . '-' . $apikey, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_GS_DESCRIPTION_TYPE', self::GS_SHORT_DESCRIPTION, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_GS_MPN_FIELD', 'reference', false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_FEED_MAINCATEGORY_PATH', false, false, $shopGroupId, $shopId);\n Configuration::updateValue('DF_GS_IMAGE_SIZE', key(dfTools::getAvailableImageSizes()), false, $shopGroupId, $shopId);\n }", "function setCategory($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "function add_store()\n {\n\tglobal $template;\n\tglobal $connect;\n\n\t$sys_connect = sys_db_connect();\n\t$product_id = $_REQUEST[product_id];\n\t$product_name = addslashes($_REQUEST[product_name]);\n\t$shop_price = $_REQUEST[shop_price];\n\t$options = $_REQUEST[options];\n\t$memo = addslashes($_REQUEST[memo]);\n\n\n\t$sql = \"select product_id from ez_store \n\t\t where domain = '\"._DOMAIN_.\"' \n\t\t and product_id = '$product_id'\";\n\t$list0 = mysql_fetch_array(mysql_query($sql, $sys_connect));\n\n\n\t$sql = \"select * from products where product_id = '$product_id'\";\n\t$list = mysql_fetch_array(mysql_query($sql, $connect));\n\t\n\t////////////////////////////////////////\n\t// make thumb image\n\tif ($list[img_500] && file_exists(_save_dir.$list[img_500]))\n\t{\n\t $img_150 = _save_dir . str_replace(\"_500\", \"_150\", $list[img_500]);\n\t if (!file_exists($img_150))\n\t {\n\t\t$cmd = \"/usr/local/bin/convert -resize 150x150 \"._save_dir.$list[img_500].\" \".$img_150;\n\t\texec($cmd);\n\t }\n\t $img_250 = _save_dir . str_replace(\"_500\", \"_250\", $list[img_500]);\n\t if (!file_exists($img_250))\n\t {\n\t\t$cmd = \"/usr/local/bin/convert -resize 250x250 \"._save_dir.$list[img_500].\" \".$img_250;\n\t\texec($cmd);\n\t }\n\t}\n\n\tif ($list0[product_id])\t\t// update\n\t{\n\t $upd_sql = \"update ez_store set\n\t\t\t\tname = '$product_name',\n\t\t\t\tshop_price = '$shop_price',\n\t\t\t\toptions = '$options',\n\t\t\t\tmemo = '$memo',\n\t\t\t\tis_sale = 1\n\t\t\t where domain = '\"._DOMAIN_.\"'\n\t\t\t and product_id = '$product_id'\";\n\t mysql_query($upd_sql, $sys_connect) or die(mysql_error());\n\t}\n\telse\t\t\t\t// insert\n\t{\n\t ////////////////////////////////////////\n\t $ins_sql = \"insert into ez_store set\n\t\t\tdomain \t\t= '\" . _DOMAIN_ . \"',\n\t\t\tproduct_id \t= '$list[product_id]',\n\t\t\tname\t\t= '$list[name]',\n\t\t\torigin\t\t= '$list[origin]',\n\t\t\tbrand\t\t= '$list[brand]',\n\t\t\toptions\t\t= '$list[options]',\n\t\t\tshop_price\t= '$list[shop_price]',\n\t\t\ttrans_fee\t= '$list[trans_fee]',\n\t\t\tproduct_desc\t= '$list[product_desc]',\n\t\t\timg_500\t\t= '$list[img_500]',\n\t\t\timg_desc1\t= '$list[img_desc1]',\n\t\t\timg_desc2\t= '$list[img_desc2]',\n\t\t\timg_desc3\t= '$list[img_desc3]',\n\t\t\timg_desc4\t= '$list[img_desc4]',\n\t\t\timg_desc5\t= '$list[img_desc5]',\n\t\t\timg_desc6\t= '$list[img_desc6]',\n\t\t\treg_date \t= now(),\n\t\t\treg_time \t= now(),\n\t\t\tis_sale \t= 1\n\t \";\n\t mysql_query($ins_sql, $sys_connect) or die(mysql_error());\n\t}\n\n\t// add by sy.hwang 2007.5.4\n\t$sql = \"select seq from ez_store \n\t\t where domain = '\"._DOMAIN_.\"'\n\t\t and product_id = '$product_id'\";\n\t$list = mysql_fetch_array(mysql_query($sql, $sys_connect));\n\n\t$store_id = sprintf(\"A%05d\", $list[seq]);\n\t$upd_sql = \"update ez_store set store_id = '$store_id' \n\t\t where domain = '\"._DOMAIN_.\"'\n\t\t and product_id = '$product_id'\";\n\tmysql_query($upd_sql, $sys_connect) or die(mysql_error());\n\n\t$upd_sql = \"update products set is_store = 1 where product_id = '$product_id'\";\n\tmysql_query($upd_sql, $connect) or die(mysql_error());\n\t\n $this->redirect(\"popup.htm?template=CK18&product_id=$product_id\");\n exit;\n }", "function getStoreId($id = '')\n\t{\n\t\t$id\t.= ':'.$this->getState('category.id');\n\n\t\treturn parent::getStoreId($id);\n\t}", "function EdenShop01($eden_shop_action){\n\t\n\tglobal $db_shop_basket;\n\tglobal $project;\n\t\n\t$_SESSION['loginid'] = AGet($_SESSION,'loginid');\n\t\n\t/*\n\t$res_setup = mysql_query(\"SELECT * FROM $db_shop_setup WHERE shop_setup_lang='\".mysql_real_escape_string($_GET['lang']).\"'\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_setup = mysql_fetch_array($res_setup);\n\t*/\n\t\n\t$project_session_id = $project.\"_session_id\";\n\tif ($_SESSION['u_status'] == \"user\" || $_SESSION['u_status'] == \"seller\" || $_SESSION['u_status'] == \"admin\"){\n\t\t$where = \"shop_basket_admin_id=\".(integer)$_SESSION['loginid'].\"\";\n\t} else {\n\t\t$where = \"shop_basket_session_id='\".mysql_real_escape_string($_SESSION['sidd']).\"'\";\n\t}\n\t$res = mysql_query(\"SELECT COUNT(*) FROM $db_shop_basket WHERE $where ORDER BY shop_basket_date_added ASC\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$num = mysql_fetch_array($res);\n\tif ($num[0] > 0){\n\t\tif ($action_shop == \"\"){$action_shop = \"shop_user_edit\";}\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\t\techo \"\t\t\t<img src=\\\"images/edenshop_pbar_01_login_en.gif\\\" width=\\\"500\\\" height=\\\"100\\\" alt=\\\"\\\">\\n\";\n\t\techo \"\t\t</div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\techo \"\t</div>\\n\";\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\";\n\t\t\tif ($_SESSION['u_status'] == \"\" || $_SESSION['u_status'] == \"vizitor\"){\n\t\t\tif ($_GET['action_shop'] != \"user_reg\"){\n\t\t\t\techo \"\t<div id=\\\"edenshop_progress_border_mid\\\" style=\\\"min-height:150px;\\\">\\n\";\n\t\t\t\techo \"\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_01_CUSTOMER_LOGIN.\"&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\\\"index.php?action=\"; if ($_SESSION['u_status'] == \"user\" || $_SESSION['u_status'] == \"seller\" || $_SESSION['u_status'] == \"admin\"){echo \"02\";} else {echo \"01\";} echo \"&amp;action_shop=user_reg&amp;mode=reg&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\">\"._SHOP_REG.\"</a></div><br><br>\\n\";\n\t\t\t\techo \"\t<div id=\\\"edenshop_progress_login_login\\\">\\n\";\n\t\t\t\techo \"\t\t<form action=\\\"index.php?action=01&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" method=\\\"post\\\">\\n\";\n\t\t\t\techo \"\t\t<input type=\\\"text\\\" name=\\\"login\\\" id=\\\"login_name\\\" value=\\\"username\\\" onFocus=\\\"if (this.value=='username') this.value='';\\\" onBlur=\\\"if (this.value=='') this.value='username';\\\" onMouseDown=\\\"this.value=''\\\"><br>\\n\";\n\t\t\t\techo \"\t\t<input type=\\\"password\\\" name=\\\"pass\\\" id=\\\"login_pass\\\" value=\\\"password\\\" onFocus=\\\"if (this.value=='password') this.value='';\\\" onBlur=\\\"if (this.value=='') this.value='password';\\\"><br>\\n\";\n\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"login\\\">\\n\";\n\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"action_shop\\\" value=\\\"login\\\">\\n\";\n\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"project\\\" value=\\\"\".$project.\"\\\">\\n\";\n\t\t\t\techo \"\t\t<input type=\\\"submit\\\" value=\\\"\"._SHOP_LOGIN.\"\\\" class=\\\"eden_button\\\">\\n\";\n\t\t\t\techo \"\t\t</form>\\n\";\n\t\t\t\techo \"\t</div>\";\n\t\t\t} else {\n\t\t\t\techo \"\t<div id=\\\"edenshop_progress_border_mid\\\" style=\\\"min-height:900px;\\\">\\n\";\n\t\t\t\techo \"\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_01_CUSTOMER_REG.\"&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\\\"index.php?action=01&amp;action_shop=login&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\">\"._SHOP_01_CUSTOMER_LOGIN.\"</a></div><br><br>\\n\";\n\t\t\t\techo \"\t<div id=\\\"edenshop_progress_login_reg\\\">\".UserEdit(\"reg\").\"</div><br>\";\n\t\t\t}\n\t\t} else {\n\t\t\t//$res = mysql_query(\"SELECT a.*, ac.* FROM $db_admin AS a, $db_admin_contact AS ac WHERE a.admin_id = ac.aid\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t//$ar = mysql_fetch_array($res);\n\t\t\techo \"\t<div id=\\\"edenshop_progress_border_mid\\\">\";\n\t\t\techo \"\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_01_CUSTOMER_LOGIN.\"</div><br><br>\";\n\t\t\techo \"\t<div align=\\\"center\\\">\".UserEdit(\"shop_show\").\"<br></div>\";\n\t\t}\n\t\techo \"\t</div>\\n\";\n\t\techo \"\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\techo \"\t</div><br><br>\";\n \t\tif ($_GET['action_shop'] != \"user_reg\"){\n\t\t\techo \"<div id=\\\"edenshop_but_pos\\\">\";\n\t\t\techo \"<a href=\\\"index.php?action=&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><img src=\\\"images/edenshop_butt_forg_some_en.gif\\\" width=\\\"175\\\" height=\\\"25\\\" alt=\\\"\\\"></a>\";\n \t\t\tif ($_SESSION['u_status'] == \"user\" || $_SESSION['u_status'] == \"seller\" || $_SESSION['u_status'] == \"admin\"){\n\t\t\t\tif ($shop_echo == \"true\"){ echo \"<a href=\\\"index.php?lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"&amp;action=01&amp;msg=reg_fill_all_cells&amp;action_shop=shop_user_edit\\\" target=\\\"_self\\\">\"; } else { echo \"<a href=\\\"index.php?action=\"; if ($_SESSION['u_status'] == \"user\" || $_SESSION['u_status'] == \"seller\" || $_SESSION['u_status'] == \"admin\"){echo \"02\";} else {echo \"01\";} echo \"&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"&amp;action_shop=shop_user_edit\\\" target=\\\"_self\\\">\"; } echo \"<img src=\\\"images/edenshop_butt_checkout_en.gif\\\" width=\\\"128\\\" height=\\\"25\\\" alt=\\\"\\\"></a>\";\n \t\t\t}\n\t\t\techo \"</div>\";\n \t\t}\n\t} else {\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_prev_order_border_top\\\"></div>\\n\";\n\t\techo \"\t\t\t<div id=\\\"edenshop_prev_order_border_mid\\\" style=\\\"\\\">\\n\";\n\t\techo \"\t\t\t\t<div id=\\\"edenshop_prev_order_title\\\">\"._SHOP_BASKET.\"</div><br>\\n\";\n\t\techo \"\t\t\t\t<span style=\\\"color:#FF0000; font-weight:bold;\\\">\"._SHOP_BASKET_EMPTY.\"<br><br>\\n\";\n\t\techo \"\t\t\t\t\"._SHOP_BASKET_EMPTY_PLEASE.\"<br><br></span>\\n\";\n\t\techo \"\t\t\t\t<a href=\\\"index.php?action=&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><img src=\\\"images/edenshop_butt_cont_shop_en.gif\\\" width=\\\"159\\\" height=\\\"25\\\" alt=\\\"\\\"></a>\\n\";\n\t\techo \"\t\t\t</div>\\n\";\n\t\techo \"\t\t\t<div id=\\\"edenshop_prev_order_border_bottom\\\"></div>\\n\";\n\t\techo \"\t</div>\";\n \t}\n}", "public function setShop(Down_UserShop $value)\n {\n return $this->set(self::_SHOP, $value);\n }", "private function _getStoreId() {\n $store_id = 1;\n return $store_id;\n }", "public function setShop(Down_UserShop $value)\n {\n return $this->set(self::_SHOP, $value);\n }", "public function setShop(Down_UserShop $value)\n {\n return $this->set(self::_SHOP, $value);\n }", "public static function removeSubshop()\n {\n /** @var Connection $dbal */\n $dbal = Shopware()->Container()->get('dbal_connection');\n $dbal->exec('DELETE FROM s_core_shops WHERE id=3');\n }", "protected function getShopName()\n {\n return $this->shopName;\n }", "public function resetCurrentCartIdentifier();", "function EdenShop04($eden_shop_action){\n\t\n\tglobal $db_shop_setup,$db_shop_orders,$db_shop_orders_product,$db_category,$db_shop_product,$db_shop_basket,$db_shop_tax_rates,$db_shop_discount_category;\n\tglobal $db_country;\n\tglobal $eden_cfg;\n\tglobal $project;\n\t\n\t$_SESSION['loginid'] = AGet($_SESSION,'loginid');\n\t\n\t$res_setup = mysql_query(\"SELECT shop_setup_paypal_business_account, shop_setup_currency, shop_setup_show_vat_subtotal, shop_setup_04_important FROM $db_shop_setup WHERE shop_setup_lang='\".mysql_real_escape_string($_GET['lang']).\"'\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_setup = mysql_fetch_array($res_setup);\n\t\n\t$res_order = mysql_query(\"SELECT * FROM $db_shop_orders WHERE shop_orders_id=\".(integer)$_GET['id'].\" AND shop_orders_orders_status=1\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_order = mysql_fetch_array($res_order);\n\t$res_basket = mysql_query(\"SELECT shop_basket_products_id, shop_basket_quantity FROM $db_shop_basket WHERE shop_basket_admin_id=\".(integer)$_SESSION['loginid'].\" ORDER BY shop_basket_date_added ASC\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$num_basket = mysql_num_rows($res_basket);\n\t$res_country = mysql_query(\"SELECT country_shortname FROM $db_country WHERE country_name='\".mysql_real_escape_string($ar_order['shop_orders_admin_country']).\"'\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_country = mysql_fetch_array($res_country);\n\techo \"<form action=\\\"\".$eden_cfg['url_edencms'].\"eden_shop_save.php?action=paypal&amp;project=\".$project.\"&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" method=\\\"post\\\">\\n\";\n\techo \"\t\t<!-- PayPal Configuration -->\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"return\\\" value=\\\"\".$eden_cfg['url'].\"index.php?action=05&amp;state=ok&amp;id=\".$ar_order['shop_orders_id'].\"&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"rm\\\" value=\\\"0\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"notify_url\\\" value=\\\"\".$eden_cfg['url_edencms'].\"eden_shop_save.php?action=complete&amp;project=\".$project.\"&amp;oid=\".$ar_order['shop_orders_id'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"cancel_return\\\" value=\\\"\".$eden_cfg['url'].\"index.php?action=05&amp;state=cancel&amp;id=\".$ar_order['shop_orders_id'].\"&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"business\\\" value=\\\"\".$ar_setup['shop_setup_paypal_business_account'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"currency_code\\\" value=\\\"\".$ar_setup['shop_setup_currency'].\"\\\">\\n\";\n\t\t\t\t/* <input type=\\\"hidden\\\" name=\\\"cmd\\\" value=\\\"_cart\\\"> */\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"cmd\\\" value=\\\"_ext-enter\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"redirect_cmd\\\" value=\\\"_cart\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"upload\\\" value=\\\"1\\\">\\n\";\n\t\n\techo \"\t\t<!-- Shipping and Misc Information -->\\n\";\n\t\t\t\t/* <input type=\\\"hidden\\\" name=\\\"shipping\\\" value=\\\"\\\">\\n\";\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"shipping2\\\" value=\\\"\\\">\\n\";\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"handling\\\" value=\\\"\\\">\\n\";\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"tax\\\" value=\\\"\\\">\\n\";\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"custom\\\" value=\\\"\\\"> */\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"invoice\\\" value=\\\"\".$ar_order['shop_orders_invoice_id'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"handling_cart\\\" value=\\\"\".number_format($ar_order['shop_orders_carriage_price'], 2, '.', ',').\"\\\">\\n\";\n\t\n\techo \"\t\t<!-- Customer Information -->\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"email\\\" value=\\\"\".$ar_order['shop_orders_admin_email_address'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"first_name\\\" value=\\\"\".$ar_order['shop_orders_admin_firstname'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"last_name\\\" value=\\\"\".$ar_order['shop_orders_admin_name'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"address1\\\" value=\\\"\".$ar_order['shop_orders_admin_address1'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"address2\\\" value=\\\"\".$ar_order['shop_orders_admin_address2'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"city\\\" value=\\\"\".$ar_order['shop_orders_admin_city'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"zip\\\" value=\\\"\".$ar_order['shop_orders_admin_postcode'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"state\\\" value=\\\"\".$ar_order['shop_orders_admin_state'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"country\\\" value=\\\"\".$ar_country['country_shortname'].\"\\\">\\n\";\n\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"night_phone_a\\\" value=\\\"\".$ar_order['shop_orders_admin_telephone'].\"\\\">\\n\";\n\techo \"\t\t<div align=\\\"center\\\">\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\techo \"\t\t\t\t<img src=\\\"images/edenshop_pbar_04_confirm_en.gif\\\" width=\\\"500\\\" height=\\\"100\\\" alt=\\\"\\\">\\n\";\n\techo \"\t\t\t</div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\techo \"\t\t</div>\\n\";\n\techo \"\t\t<div align=\\\"center\\\">\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\techo \"\t\t\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_04_NOT_YET_CONFIRMED.\"</div><br><br>\\n\";\n\techo \"\t\t\t\t<table id=\\\"edenshop_progress_04\\\">\\n\";\n\tif ($_GET['action_shop'] != \"shop_check_del_address\"){\n\t\techo \"<tr>\\n\";\n\t\techo \"\t<td id=\\\"edenshop_progress_04_customer\\\" valign=\\\"top\\\">\\n\";\n\t\techo \"\t\t<table id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_main_title\\\" colspan=\\\"2\\\"><strong>\"._SHOP_04_CUSTOMER_ADDRESS.\"</strong></td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_NAME.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\";\tif ($ar_order['shop_orders_admin_title'] != \"\"){echo $ar_order['shop_orders_admin_title'].\" \";} echo $ar_order['shop_orders_admin_firstname'].\" \".$ar_order['shop_orders_admin_name'].\"</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_ADDRESS.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$ar_order['shop_orders_admin_address1'].\"<br>\\n\";\n\t\t\t \t\t\t\t\tif ($ar_order['shop_orders_admin_address2'] != \"\"){echo $ar_order['shop_orders_admin_address2'].\"<br>\";}\n\t\techo \"\t\t\t\t</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_CITY.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$ar_order['shop_orders_admin_city'].\"</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_POSTCODE.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$ar_order['shop_orders_admin_postcode'].\"</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_COUNTRY.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$ar_order['shop_orders_admin_country'].\"</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_EMAIL.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$ar_order['shop_orders_admin_email_address'].\"</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_TELEPHONE.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$ar_order['shop_orders_admin_telephone'].\"</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t</table>\\n\";\n\t\techo \"\t</td>\\n\";\n\t\techo \"\t<td id=\\\"edenshop_progress_04_customer\\\" valign=\\\"top\\\">\\n\";\n\t\techo \"\t\t<table id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_main_title\\\" colspan=\\\"2\\\"><strong>\"._SHOP_04_DELIVERY_ADDRESS.\"</strong></td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_NAME.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_use'] == 0){\n\t\t\t\t\t\t\t\t\tif ($ar_order['shop_orders_admin_title'] != \"\"){echo $ar_order['shop_orders_admin_title'].\" \";} \n\t\t\t\t\t\t\t\t\techo $ar_order['shop_orders_admin_firstname'].\" \".$ar_order['shop_orders_admin_name'];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_title'] != \"\"){echo $ar_order['admin_contact_shop_title'].\" \";} \n\t\t\t\t\t\t\t\t\techo $ar_order['admin_contact_shop_firstname'].\" \".$ar['admin_contact_shop_name'];\n\t\t\t\t\t\t\t\t}\n\t\techo \"\t\t\t\t</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_ADDRESS.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_use'] == 0){\n\t\t\t\t\t\t\t\t\techo $ar_order['shop_orders_admin_address1'].\"<br>\";\n\t\t\t\t\t\t\t\t\tif ($ar_order['shop_orders_admin_address2'] != \"\"){echo $ar_order['shop_orders_admin_address2'].\"<br>\";}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\techo $ar_order['admin_contact_shop_address_1'].\"<br>\";\n\t\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_address_2'] != \"\"){echo $ar_order['admin_contact_shop_address_2'].\"<br>\";}\n\t\t\t\t\t\t\t\t}\n\t\techo \"\t\t\t\t</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_CITY.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_use'] == 0){\n\t\t\t\t\t\t\t\t\techo $ar_order['shop_orders_admin_city'];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\techo $ar_order['admin_contact_shop_city'];\n\t\t\t\t\t\t\t\t}\n\t\techo \"\t\t\t\t</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_POSTCODE.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_use'] == 0){\n\t\t\t\t\t\t\t\t\techo $ar_order['shop_orders_admin_postcode'];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\techo $ar_order['admin_contact_shop_postcode'];\n\t\t\t\t\t\t\t\t}\n\t\techo \"\t\t\t\t</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_COUNTRY.\"</td>\\n\";\n\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_order['admin_contact_shop_use'] == 0){\n\t\t\t\t\t\t\t\t\techo $ar_order['shop_orders_admin_country'];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\techo $ar_order['admin_contact_shop_country'];\n\t\t\t\t\t\t\t\t}\n\t\techo \"\t\t\t\t</td>\\n\";\n\t\techo \"\t\t\t</tr>\\n\";\n\t\techo \"\t\t</table>\\n\";\n\t\techo \"\t</td>\\n\";\n\t\techo \"</tr>\\n\";\n\t}\n\tif ($_GET['action_shop'] == \"shop_check_del_address\"){\n\t\techo \"<tr>\\n\";\n\t\techo \"\t<td colspan=\\\"2\\\">\\n\";\n\t\techo \"\t\t<a href=\\\"index.php?action=03&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><< \"._SHOP_PROGRESS_BACK.\"</a><br>\\n\";\n\t\techo \t\tUserEdit(\"shop_check_del_address\").\"<br>\\n\";\n\t\techo \"\t</td>\\n\";\n\t\techo \"</tr>\\n\";\n\t}\n\techo \"\t\t\t\t</table>\\n\";\n\techo \"\t\t\t</div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\techo \"\t\t</div>\\n\";\n\techo \"\t\t<div align=\\\"center\\\">\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\techo \"\t\t\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_04_DETAILS.\"</div><br><br>\\n\";\n\techo \"\t\t\t\t<table id=\\\"\\\" cellpadding=\\\"2\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\">\\n\";\n\techo \"\t\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\"><strong>\"._SHOP_CONFIRM_INV_NUM.\"</strong></td>\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\"><strong>\"._SHOP_CONFIRM_ACC_NUM.\"</strong></td>\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\"><strong>\"._SHOP_CONFIRM_INV_DATE.\"</strong></td>\\n\";\n\techo \"\t\t\t\t\t<!-- <td align=\\\"center\\\"><strong>\"._SHOP_CONFIRM_EST_DEL_DATE.\"</strong></td> -->\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\"><strong>\"._SHOP_CONFIRM_IP.\"</strong></td>\\n\";\n\techo \"\t\t\t\t</tr>\\n\";\n\techo \"\t\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\">\".$ar_order['shop_orders_invoice_id'].\"</td>\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\">\".$ar_order['shop_orders_admin_id'].\"</td>\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\">\".date(\"d.m.Y\").\"</td>\\n\";\n\techo \"\t\t\t\t\t<!-- <td align=\\\"center\\\">d</td> -->\\n\";\n\techo \"\t\t\t\t\t<td align=\\\"center\\\">\".$eden_cfg['ip'].\"</td>\\n\";\n\techo \"\t\t\t\t</tr>\\n\";\n\techo \"\t\t\t</table>\\n\";\n\techo \"\t\t\t\t</div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\techo \"\t\t</div>\\n\";\n\techo \"\t\t<div align=\\\"center\\\">\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\techo \"\t\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_04_BASKET_CONTENTS.\"</div><br><br>\\n\";\n\techo \"\t\t\t\t<table id=\\\"edenshop_progress_basket_headline\\\" cellpadding=\\\"2\\\" cellspacing=\\\"1\\\" border=\\\"0\\\">\\n\";\n\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_basket_name\\\">\\n\";\n\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_basket_name_qty\\\">\"._SHOP_QTY.\"</td>\\n\";\n\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_basket_name_code\\\">\"._SHOP_CODE.\"</td>\\n\";\n\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_basket_name_title\\\">\"._SHOP_TITLE.\"</td>\\n\";\n\t\t\t\t\t\t\tif ($ar_setup['shop_setup_show_vat_subtotal'] == 1){ echo \"<td id=\\\"edenshop_progress_basket_name_ex_vat\\\">\"._SHOP_PRICE_EX_VAT_S.\"</td>\";}\n\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_basket_name_inc_vat\\\">\"._SHOP_PRICE_INC_VAT_S.\"</td>\\n\";\n\techo \"\t\t\t\t</tr>\";\n\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t/* Nacteme vsechny slevove kategorie pro prodejce */\n\t\t$res_discount = mysql_query(\"\n\t\tSELECT shop_discount_category_id, shop_discount_category_name \n\t\tFROM $db_shop_discount_category \n\t\tWHERE shop_discount_category_parent_id=0 AND shop_discount_category_type < 30\"\n\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t$i=0;\n\t\t/* Ty pak ulozime do vicerozmerneho pole spolu s mnozstvim - na zacatku je mnozstvi 0 */\n\t\twhile ($ar_discount = mysql_fetch_array($res_discount)){\n\t\t\t/* array (discount kategorie, mnozstvi vyrobku) */\n\t\t\t$discount[$i] = array($ar_discount['shop_discount_category_id'],0);\n\t\t\t$i++;\n\t\t}\n\t\t/* Spocitame mnozstvi slevovych kategorii v poli - nize pouzijeme pro iteraci */\n\t\t$pocet_disc = count($discount);\n\t\t/* Projdeme vsechny polozky v kosiku */\n\t\twhile($ar_basket = mysql_fetch_array($res_basket)){\n\t\t\t$res_product = mysql_query(\"\n\t\t\tSELECT shop_product_discount_cat_seller_id \n\t\t\tFROM $db_shop_product \n\t\t\tWHERE shop_product_id=\".(integer)$ar_basket['shop_basket_products_id'].\" \n\t\t\tGROUP BY shop_product_discount_cat_seller_id\"\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t/* Projdeme vsehchny produkty v kosiku a patrame po tom jestli maji ulozen zaznam o slevove kategorii */\n\t\t\twhile ($ar_product = mysql_fetch_array($res_product)){\n\t\t\t\t$y = 0;\n\t\t\t\t/* Projdeme vsechny slevove kategorie pro obchodniky */\n\t\t\t\twhile ($y < $pocet_disc){\n\t\t\t\t\t/* A kdyz nalezneme zaznam pripocteme mnozstvi kusu daneho produktu do vicerozmerneho pole se slevovymi kategoriemi */\n\t\t\t\t\tif ($discount[$y][0] == $ar_product['shop_product_discount_cat_seller_id']){$discount[$y][1] = $discount[$y][1] + (integer)$ar_basket['shop_basket_quantity'];}\n\t\t\t\t\t$y++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* Do vicerozmerneho pole vlozime ID discount kategorie, mnozstvi vyrobku a cenu za jeden vyrobek*/\n\t\t$y = 0;\n\t\twhile ($y < $pocet_disc){\n\t\t\t//echo \"Discount Cat ID = \".$discount[$y][0].\" - Qty = \".$discount[$y][1].\"<br>\";\n\t\t\t$res_dc_price = mysql_query(\"\n\t\t\tSELECT shop_discount_category_discount_price \n\t\t\tFROM $db_shop_discount_category \n\t\t\tWHERE shop_discount_category_parent_id=\".$discount[$y][0].\" AND \".$discount[$y][1].\" BETWEEN shop_discount_category_discounted_from_amount AND shop_discount_category_discounted_to_amount\"\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$ar_dc_price = mysql_fetch_array($res_dc_price);\n\t\t\t/* $discount_cat[ID discount kategorie][0 = mnozstvi vyrobku/1 = cena] */\n\t\t\t$discount_cat[$discount[$y][0]] = array($discount[$y][1],$ar_dc_price['shop_discount_category_discount_price']);\n\t\t\t$y++;\n\t\t}\n\t}\n\t$i_basket = 0;\n\t$i = 1;\n\tmysql_data_seek($res_basket, 0);\n\twhile($ar_basket = mysql_fetch_array($res_basket)){\n\t\t$res_product = mysql_query(\"\n\t\tSELECT p.shop_product_id, p.shop_product_name, p.shop_product_selling_price, p.shop_product_product_code, p.shop_product_vat_class_id, p.shop_product_discount_cat_seller_id, c.category_name \n\t\tFROM $db_shop_product AS p, $db_category AS c \n\t\tWHERE shop_product_id=\".(integer)$ar_basket['shop_basket_products_id'].\" AND c.category_id = p.shop_product_master_category\"\n\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t$ar_product = mysql_fetch_array($res_product);\n\t\t\n\t\t$res_product_tax_rate = mysql_query(\"\n\t\tSELECT shop_tax_rates_rate \n\t\tFROM $db_shop_tax_rates \n\t\tWHERE shop_tax_rates_class_id=\".(integer)$ar_product['shop_product_vat_class_id'].\" \n\t\tORDER BY shop_tax_rates_priority DESC\"\n\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t$ar_product_tax_rate = mysql_fetch_array($res_product_tax_rate);\n\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t \t/* Cena za jednotku vynasobena mnozstvim */\n\t\t\t$price_inc_vat = $discount_cat[$ar_product['shop_product_discount_cat_seller_id']][1] * $ar_basket['shop_basket_quantity'];\n\t\t\t$selling_price = $discount_cat[$ar_product['shop_product_discount_cat_seller_id']][1];\n\t\t} else {\n\t\t\t/* Cena za jednotku vynasobena mnozstvim */\n\t\t\t$price_inc_vat = $ar_product['shop_product_selling_price'] * $ar_basket['shop_basket_quantity'];\n\t\t\t$selling_price = $ar_product['shop_product_selling_price'];\n\t\t}\n\t\t$price_ex_vat = $price_inc_vat / ($ar_product_tax_rate['shop_tax_rates_rate']/100+1);\n\t\t$price_vat = ($price_inc_vat - $price_ex_vat);\n\t\t\n\t\t$basket_ex_vat = TepRound($price_ex_vat,2);\n\t\t$basket_inc_vat = TepRound($price_inc_vat,2);\n\t\techo \"\t<tr id=\\\"edenshop_progress_basket\\\">\\n\";\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_qty\\\">\".$ar_basket['shop_basket_quantity'].\"</td>\\n\";\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_code\\\"><a href=\\\"index.php?action=\".strtolower($ar_product['category_name']).\"&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"&amp;prod_id=\".$ar_product['shop_product_id'].\"&amp;spec=1\\\">\".$ar_product['shop_product_product_code'].\"</a></td>\\n\";\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_title\\\">\".$ar_product['shop_product_name'].\"</td>\\n\";\n\t\t\t\t\tif ($ar_setup['shop_setup_show_vat_subtotal'] == 1){echo \"<td id=\\\"edenshop_progress_basket_ex_vat\\\">\".PriceFormat($basket_ex_vat).\"</td>\"; }\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_inc_vat\\\">\".PriceFormat($basket_inc_vat).\"</td>\\n\";\n\t\techo \"\t</tr>\";\n\t\t$total_nett_price = $price_ex_vat + $total_nett_price;\n\t\t$total_vat = $price_vat + $total_vat;\n\t\t$i_basket++;\n\t\t$subtotal = $price_inc_vat + $subtotal;\n\t\techo \"<input type=\\\"hidden\\\" name=\\\"item_name_\".$i.\"\\\" value=\\\"\".$ar_product['shop_product_name'].\"\\\">\";\n\t\techo \"<input type=\\\"hidden\\\" name=\\\"item_number_\".$i.\"\\\" value=\\\"\".$i.\"\\\">\";\n\t\techo \"<input type=\\\"hidden\\\" name=\\\"amount_\".$i.\"\\\" value=\\\"\".number_format($selling_price, 2, '.', ',').\"\\\" \"; /*$vat = ($ar2[shop_orders_shop_product_price] * ($ar2[shop_orders_shop_product_tax] / 100)); $amount = $ar2[shop_orders_shop_product_price] - $vat; echo number_format($amount, 2, '.', ',');*/ echo \">\";\n\t\techo \"<input type=\\\"hidden\\\" name=\\\"quantity_\".$i.\"\\\" value=\\\"\".$ar_basket['shop_basket_quantity'].\"\\\">\";\n\t\techo \"<input type=\\\"hidden\\\" name=\\\"tax_\".$i.\"\\\" value=\\\"\".$ar_product_tax_rate['shop_tax_rates_rate'].\"\\\">\";;\n\t\t$i++;\n\t}\n\t$total_total = $total_nett_price + $total_vat + $ar_order['shop_orders_carriage_price'];\n\techo \"\t\t</table>\\n\";\n\techo \"\t\t<table id=\\\"edenshop_progress_basket_headline\\\" cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\techo \"\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t<td id=\\\"edenshop_progress_basket_recalculate\\\"><br></td>\\n\";\n\techo \"\t\t\t\t<td id=\\\"edenshop_progress_basket_total\\\">\\n\";\n\techo \"\t\t\t\t\t<table width=\\\"100%\\\" cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_setup['shop_setup_show_vat_subtotal'] == 1){\n\t\t\t\t\t\t\t\t\techo \"<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_NETT_TOTAL.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_total_price\\\">\".PriceFormat(TepRound($total_nett_price)).\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td colspan=\\\"2\\\" id=\\\"edenshop_progress_basket_dotted\\\"></td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_TOTAL_VAT.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_total_price\\\">\"; $basket_total_vat = TepRound($total_vat,2); echo PriceFormat($basket_total_vat).\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td colspan=\\\"2\\\" id=\\\"edenshop_progress_basket_dotted\\\"></td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\techo \"<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_SUBTOTAL.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_total_price\\\">\".PriceFormat(TepRound($subtotal,2)).\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t<td colspan=\\\"2\\\" id=\\\"edenshop_basket_dotted\\\"></td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"</tr>\\n\";\n\t\t\t\t\t\t\t\t}\n\techo \"\t\t\t\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_CARRIAGE.\"</td>\\n\";\n\techo \"\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total_price\\\">\\n\";\n\t\t\t\t\t\t\t\t\t\tif ($ar_order['shop_orders_carriage_price'] == 0){\n\t\t\t\t\t\t\t\t\t\t\techo \"FREE\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\techo PriceFormat(TepRound($ar_order['shop_orders_carriage_price'],2));\n\t\t\t\t\t\t\t\t\t\t}\n\techo \"\t\t\t\t\t\t\t</td>\\n\";\n\techo \"\t\t\t\t\t\t</tr>\\n\";\n\techo \"\t\t\t\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t\t\t\t<td colspan=\\\"2\\\" id=\\\"edenshop_progress_basket_dotted\\\"></td>\\n\";\n\techo \"\t\t\t\t\t\t</tr>\\n\";\n\techo \"\t\t\t\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_TOTAL.\"</td>\\n\";\n\techo \"\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total_total\\\">\".PriceFormat(TepRound($total_total)).\"</td>\\n\";\n\techo \"\t\t\t\t\t\t</tr>\\n\";\n\techo \"\t\t\t\t\t</table>\\n\";\n\techo \"\t\t\t\t</td>\\n\";\n\techo \"\t\t\t</tr>\\n\";\n\techo \"\t\t</table>\\n\";\n\techo \"</div>\\n\";\n\techo \"<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\techo \"</div>\\n\";\n\techo \"<div align=\\\"center\\\">\\n\";\n\techo \"\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\techo \"\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\techo \"\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_04_CONFIRM_ORDER.\"</div><br><br>\\n\";\n\techo \"\t\t<table id=\\\"edenshop_progress_04\\\" border=\\\"0\\\">\\n\";\n\techo \"\t\t\t<tr>\\n\";\n\techo \"\t\t\t\t<td id=\\\"edenshop_progress_04_info\\\">\\n\";\n\t\t\t\t\t\t\tif ($ar_setup['shop_setup_04_important'] != \"\"){ echo \"<strong>\"._SHOP_04_IMPORTANT_INFO.\"</strong><br>\".$ar_setup['shop_setup_04_important']; }\n\techo \"\t\t\t\t</td>\\n\";\n\techo \"\t\t\t\t<td id=\\\"edenshop_progress_04_confirm\\\">\\n\";\n\techo \"\t\t\t\t\t\t<input type=\\\"hidden\\\" name=\\\"orders_id\\\" value=\\\"\".$ar_order['shop_orders_id'].\"\\\">\\n\";\n\techo \"\t\t\t\t\t\t<input type=\\\"submit\\\" id=\\\"edenshop_progress_04_confirm\\\" value=\\\"\\\">\\n\";\n\techo \"\t\t\t\t\t</form><br><br>\\n\";\n\techo \"\t\t\t\t\t<form action=\\\"\".$eden_cfg['url_edencms'].\"eden_shop_save.php?lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" method=\\\"post\\\">\\n\";\n\techo \"\t\t\t\t\t\t<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"cancel_order\\\">\\n\";\n\techo \"\t\t\t\t\t\t<input type=\\\"hidden\\\" name=\\\"oid\\\" value=\\\"\".$ar_order['shop_orders_id'].\"\\\">\\n\";\n\techo \"\t\t\t\t\t\t<input type=\\\"hidden\\\" name=\\\"project\\\" value=\\\"\".$project.\"\\\">\\n\";\n\techo \"\t\t\t\t\t\t<input type=\\\"submit\\\" id=\\\"edenshop_progress_04_cancel\\\" value=\\\"\\\">\\n\";\n\techo \"\t\t\t\t\t</form>\\n\";\n\techo \"\t\t\t\t</td>\\n\";\n\techo \"\t\t\t</tr>\\n\";\n\techo \"\t\t</table>\\n\";\n\techo \"\t</div>\\n\";\n\techo \"\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\techo \"</div>\";\n}", "public function suppProduct($id) {\n\n $shopping = Session()->get('shopping');\n $quantity = ($shopping[$id]);\n unset($shopping[$id]);\n Session()->put('shopping', $shopping);\n\n $number = Session()->get('nbrProduct');\n $number -= $quantity;\n Session()->put('nbrProduct', $number);\n\n return redirect('shopping');\n }", "public function setSshop(Down_StarShop $value)\n {\n return $this->set(self::_SSHOP, $value);\n }", "public function setSshop(Down_StarShop $value)\n {\n return $this->set(self::_SSHOP, $value);\n }", "public function setSshop(Down_StarShop $value)\n {\n return $this->set(self::_SSHOP, $value);\n }", "public function getStoreId(){\n $this->getStore()->getId();\n }", "public function updateProductAttributeShop($data)\n {\n $where = array(1);\n $where_sql = '';\n if (isset($data['id_product_attribute'])) {\n $where[] = 'id_product_attribute = '.(int) $data['id_product_attribute'];\n }\n if (isset($data['id_shop'])) {\n $where[] = 'id_shop = '.(int) $data['id_shop'];\n }\n if (!empty($where)) {\n $where_sql = implode(' AND ', $where);\n }\n $db = Db::getInstance();\n $sql = \"SELECT id_product_attribute \";\n $sql .= ' FROM '._DB_PREFIX_.'product_attribute_shop';\n $sql .= ' WHERE '.$where_sql;\n $id_product_attribute = $db->getValue($sql, false);\n if (empty($id_product_attribute)) {\n $db->insert('product_attribute_shop', $data);\n } else {\n $db->update('product_attribute_shop', $data, $where_sql);\n }\n return true;\n }", "public function initialize($shop)\n {\n $result = false;\n Log::debug(\"ShopifyApi.initialize for shop = $shop\");\n\n if (!empty($shop)) {\n $dbShop = Authorization::whereRaw('shop = ?', array($shop))->get()->first();\n if ($dbShop != null) {\n $token = $dbShop->token;\n $this->shopifyClient = new ShopifyClient($shop, $token, $this->shopifyApiKey, $this->shopifySecret);\n Log::info(\"ShopifyApi.initialize create ShopifyClient instance\");\n $result = true;\n } else {\n Log::error(\"ShopifyApi.initialize: dbShop is null for shop = $shop\");\n }\n } else {\n Log::error(\"ShopifyApi.initialize: shop is empty\");\n }\n return $result;\n }", "function EdenShop03($eden_shop_action){\n\t\n\tglobal $db_shop_setup,$db_admin,$db_shop_basket,$db_admin_contact,$db_admin_contact_shop,$db_shop_carriage,$db_shop_product,$db_shop_product_clothes,$db_shop_clothes_style,$db_shop_clothes_style_parents,$db_shop_clothes_colors;\n\tglobal $db_shop_tax_rates,$db_category,$db_shop_payment_methods,$db_shop_sellers,$db_shop_discount_category;\n\tglobal $url_shop_payments;\n\tglobal $project;\n\tglobal $eden_cfg;\n\t\n\t$_SESSION['loginid'] = AGet($_SESSION,'loginid');\n\t\n\t$res_setup = mysql_query(\"\n\tSELECT shop_setup_show_vat_subtotal, shop_setup_carriage_id, shop_setup_delivery_free_amount_active, shop_setup_delivery_free_amount, shop_setup_delivery_free_num_active, shop_setup_delivery_free_num \n\tFROM $db_shop_setup \n\tWHERE shop_setup_lang='\".mysql_real_escape_string($_GET['lang']).\"'\"\n\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_setup = mysql_fetch_array($res_setup);\n\t\n\t$res = mysql_query(\"SELECT COUNT(*) FROM $db_shop_basket WHERE shop_basket_admin_id=\".(integer)$_SESSION['loginid']) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$num = mysql_fetch_array($res);\n\tif ($num[0] > 0){\n\t\t/* Kdyz je zakaznik user/admin */\n\t\tif ($_SESSION['u_status'] != \"seller\"){\n\t\t\t$res = mysql_query(\"SELECT a.admin_firstname,\n\t\t\ta.admin_name,\n\t\t\ta.admin_email,\n\t\t\ta.admin_title,\n\t\t\tac.admin_contact_address_1,\n\t\t\tac.admin_contact_address_2,\n\t\t\tac.admin_contact_city,\n\t\t\tac.admin_contact_postcode,\n\t\t\tac.admin_contact_country,\n\t\t\tac.admin_contact_companyname,\n\t\t\tac.admin_contact_telefon,\n\t\t\tac.admin_contact_mobil,\n\t\t\tacs.admin_contact_shop_use,\n\t\t\tacs.admin_contact_shop_firstname,\n\t\t\tacs.admin_contact_shop_name,\n\t\t\tacs.admin_contact_shop_companyname,\n\t\t\tacs.admin_contact_shop_title,\n\t\t\tacs.admin_contact_shop_address_1,\n\t\t\tacs.admin_contact_shop_address_2,\n\t\t\tacs.admin_contact_shop_city,\n\t\t\tacs.admin_contact_shop_country,\n\t\t\tacs.admin_contact_shop_postcode\n\t\t\tFROM $db_admin AS a, $db_admin_contact AS ac, $db_admin_contact_shop AS acs \n\t\t\tWHERE a.admin_id=\".(integer)$_SESSION['loginid'].\" AND ac.aid=\".(integer)$_SESSION['loginid'].\" AND acs.aid=\".(integer)$_SESSION['loginid']\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$ar = mysql_fetch_array($res);\n\t\t\t$company_name = \"none\"; // Zabrani zobrazeni vyzvy k doplneni nazvu firmy - zobrazeni firmy je dulezite jen pro prodejce\n\t\t\t$contact_firstname = $ar['admin_firstname'];\n\t\t\t$contact_surname = $ar['admin_name'];\n\t\t\t$contact_address_1 = $ar['admin_contact_address_1'];\n\t\t\t$contact_address_2 = $ar['admin_contact_address_2'];\n\t\t\t$contact_city = $ar['admin_contact_city'];\n\t\t\t$contact_postcode = $ar['admin_contact_postcode'];\n\t\t\t$contact_country = $ar['admin_contact_country'];\n\t\t\t$contact_email = $ar['admin_email'];\n\t\t\t$contact_telefon = $ar['admin_contact_telefon'];\n\t\t\t$contact_mobil = $ar['admin_contact_mobil'];\n\t\t\t$company_shop_name = \"none\";\n\t\t\t$contact_shop_title = $ar['admin_contact_shop_title'];\n\t\t\t$contact_shop_firstname = $ar['admin_contact_shop_firstname'];\n\t\t\t$contact_shop_name = $ar['admin_contact_shop_name'];\n\t\t\t$contact_shop_address_1 = $ar['admin_contact_shop_address_1'];\n\t\t\t$contact_shop_address_2 = $ar['admin_contact_shop_address_2'];\n\t\t\t$contact_shop_city = $ar['admin_contact_shop_city'];\n\t\t\t$contact_shop_postcode = $ar['admin_contact_shop_postcode'];\n\t\t\t$contact_shop_country = $ar['admin_contact_shop_country'];\n\t\t} else {\n\t\t/* Kdyz je zakaznik prodejce */\n\t\t\t$res = mysql_query(\"SELECT a.admin_firstname,\n\t\t\ta.admin_name,\n\t\t\ta.admin_email,\n\t\t\ta.admin_title,\n\t\t\tss.shop_seller_phone_1,\n\t\t\tss.shop_seller_mobile,\n\t\t\tss.shop_seller_delivery_country_id,\n\t\t\tss.shop_seller_delivery_city,\n\t\t\tss.shop_seller_delivery_address_1,\n\t\t\tss.shop_seller_delivery_address_2,\n\t\t\tss.shop_seller_delivery_postcode,\n\t\t\tss.shop_seller_invoice_country_id,\n\t\t\tss.shop_seller_invoice_city,\n\t\t\tss.shop_seller_invoice_address_1,\n\t\t\tss.shop_seller_invoice_address_2,\n\t\t\tss.shop_seller_invoice_postcode \n\t\t\tFROM $db_admin AS a, $db_shop_sellers AS ss \n\t\t\tWHERE a.admin_id=\".(integer)$_SESSION['loginid'].\" AND ss.shop_seller_admin_id=\".(integer)$_SESSION['loginid']\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$ar = mysql_fetch_array($res);\n\t\t\t$company_name = $ar['shop_seller_company_name'];\n\t\t\t$contact_firstname = $ar['admin_firstname'];\n\t\t\t$contact_surname = $ar['admin_name'];\n\t\t\t$contact_address_1 = $ar['shop_seller_invoice_address_1'];\n\t\t\t$contact_address_2 = $ar['shop_seller_invoice_address_2'];\n\t\t\t$contact_city = $ar['shop_seller_invoice_city'];\n\t\t\t$contact_postcode = $ar['shop_seller_invoice_postcode'];\n\t\t\t$contact_country = $ar['shop_seller_invoice_country_id'];\n\t\t\t$contact_email = $ar['admin_email'];\n\t\t\t$contact_telefon = $ar['shop_seller_phone_1'];\n\t\t\t$contact_mobil = $ar['shop_seller_mobile'];\n\t\t\t$company_shop_name = $ar['shop_seller_company_name'];\n\t\t\t$contact_shop_title = $ar['admin_title'];\n\t\t\t$contact_shop_firstname = $ar['admin_firstname'];\n\t\t\t$contact_shop_name = $ar['admin_name'];\n\t\t\t$contact_shop_address_1 = $ar['shop_seller_delivery_address_1'];\n\t\t\t$contact_shop_address_2 = $ar['shop_seller_delivery_address_2'];\n\t\t\t$contact_shop_city = $ar['shop_seller_delivery_city'];\n\t\t\t$contact_shop_postcode = $ar['shop_seller_delivery_postcode'];\n\t\t\t$contact_shop_country = $ar['shop_seller_delivery_country_id'];\n\t\t}\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\t\techo \"\t\t\t<img src=\\\"images/edenshop_pbar_03_delivery_en.gif\\\" width=\\\"500\\\" height=\\\"100\\\" alt=\\\"\\\">\\n\";\n\t\techo \"\t\t</div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\techo \"\t</div>\\n\";\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\t\techo \"\t\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_03_CUSTOMER_AND_DELIVERY.\"</div><br><br>\\n\";\n\t\techo \"\t\t\t<table id=\\\"edenshop_progress_03\\\">\";\n\t\t// Pokud se edituje uzivatel, nezobrazi se cela tato cast\n\t\tif ($_GET['action_shop'] != \"shop_check_del_address\"){\n\t\t\t// Pokud chybi nejaka polozka z adresy uzivatele zobrazi se vyzva\n\t\t\tif ($company_name = \"\" || $contact_firstname == \"\" || $contact_surname == \"\" || $contact_address_1 == \"\" || $contact_city == \"\" || $contact_postcode == \"\" || $contact_email == \"\"){\n\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\techo \"\t\t<td colspan=\\\"3\\\">\\n\";\n\t\t\t\techo \"\t\t\t<table id=\\\"edenshop_progress_address_error\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address_error\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_error\\\">\"._SHOP_CUSTOMER_FILL_FIELD.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\t\techo \"\t\t\t</table>\\n\";\n\t\t\t\techo \"\t\t</td>\\n\";\n\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t}\n\t\t\techo \"\t<tr>\\n\";\n\t\t\techo \"\t\t<td id=\\\"edenshop_progress_03_customer\\\" valign=\\\"top\\\">\\n\";\n\t\t\techo \"\t\t\t<table id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_main_title\\\" colspan=\\\"2\\\"><strong>\"._SHOP_03_CUSTOMER_ADDRESS.\"</strong> <a href=\\\"index.php?action=03&amp;action_shop=shop_check_del_address&amp;mode=edit_user&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><< \"._SHOP_PROGRESS_CHANGE.\"</a></td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\t\t\t\t\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t\t\t\t\t\t\t\techo \" \t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\t\t\t\t\t\techo \" \t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_COMPANY_NAME.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \" \t\t<td id=\\\"edenshop_progress_address_address\\\">\".$company_name.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \" \t</tr>\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_NAME.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; if($contact_firstname == \"\" || $contact_surname == \"\"){echo \"<span class=\\\"edenshop_error\\\">*</span>\"; } else { if ($ar['admin_title'] != \"\"){echo $ar['admin_title'].\" \";} echo $contact_firstname.\" \".$contact_surname;} echo \"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_ADDRESS.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; \n\t\t\t\t\t\t\t\t\t\tif ($contact_address_1 == \"\"){\n\t\t\t\t\t\t\t\t\t\t\techo \"<span class=\\\"edenshop_error\\\">*</span>\"; \n\t\t\t\t\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\t\t\t\t\techo $contact_address_1.\"<br>\\n\";\n\t\t\t\t\t\t\t\t\t \t\tif ($contact_address_2 != \"\"){\n\t\t\t\t\t\t\t\t\t \t\t\techo $contact_address_2.\"<br>\";\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\techo \"\t\t\t\t\t</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_CITY.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; if($contact_city == \"\"){echo \"<span class=\\\"edenshop_error\\\">*</span>\"; } else { echo $contact_city;} echo \"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_POSTCODE.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; if ($contact_postcode == \"\"){echo \"<span class=\\\"edenshop_error\\\">*</span>\"; } else { echo $contact_postcode;} echo \"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_COUNTRY.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; if ($contact_country == \"\"){echo \"<span class=\\\"edenshop_error\\\">*</span>\"; } else { echo ShowCountryName($contact_country);} echo \"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_EMAIL.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; if ($contact_email == \"\"){echo \"<span class=\\\"edenshop_error\\\">*</span>\"; } else { echo $contact_email;} echo \"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_TELEPHONE.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$contact_telefon.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_MOBILE.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$contact_mobil.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t</table>\\n\";\n\t\t\techo \"\t\t</td>\\n\";\n\t\t\techo \"\t\t<td id=\\\"edenshop_progress_03_delivery\\\" valign=\\\"top\\\">\";\n\t\t\tif ($ar['admin_contact_shop_use'] == 0){\n\t\t\t\techo \"<a href=\\\"index.php?action=03&amp;action_shop=shop_check_del_address&amp;mode=edit_user&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\">\"._SHOP_PROGRESS_ADD_DELIVERY.\"</a>\";\n\t\t\t} elseif ($ar['admin_contact_shop_firstname'] == \"\" && $ar['admin_contact_shop_name'] == \"\"){\n\t\t\t\techo \"<a href=\\\"index.php?action=03&amp;action_shop=shop_check_del_address&amp;mode=edit_user&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\">\"._SHOP_PROGRESS_ADD_DELIVERY.\"</a><br>\";\n\t\t\t\techo _ADMIN_INFO_CONTACT_SHOP_HELP;\n\t\t\t} else {\n\t\t\t\techo \"\t\t<table id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_title\\\" colspan=\\\"2\\\"><strong>\"._SHOP_03_DELIVERY_ADDRESS.\"</strong> <a href=\\\"index.php?action=03&amp;action_shop=shop_check_del_address&amp;mode=edit_user&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><< \"._SHOP_PROGRESS_CHANGE.\"</a></td>\\n\";\n\t\t\t\techo \"\t\t\t</tr>\\n\";\n\t\t\t\t\t\t\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t\t\t\t\t\t\t\techo \"\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_COMPANY_NAME.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$company_shop_name.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_NAME.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\"; if ($ar['admin_title'] != \"\"){echo $ar['admin_title'].\" \";} echo $contact_firstname.\" \".$contact_surname.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t</tr>\\n\";\n\t\t\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_ADDRESS.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$contact_shop_address_1.\"<br>\\n\";\n\t\t\t\t\t\t\t\t\t\tif ($contact_shop_address_2 != \"\"){echo $contact_shop_address_2.\"<br>\"; }\n\t\t\t\techo \"\t\t\t\t</td>\\n\";\n\t\t\t\techo \"\t\t\t</tr>\\n\";\n\t\t\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_CITY.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$contact_shop_city.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t</tr>\\n\";\n\t\t\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_POSTCODE.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".$contact_shop_postcode.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t</tr>\\n\";\n\t\t\t\techo \"\t\t\t<tr id=\\\"edenshop_progress_address\\\">\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_sub_title\\\">\"._SHOP_CUSTOMER_COUNTRY.\"</td>\\n\";\n\t\t\t\techo \"\t\t\t\t<td id=\\\"edenshop_progress_address_address\\\">\".ShowCountryName($contact_shop_country).\"</td>\\n\";\n\t\t\t\techo \"\t\t\t</tr>\\n\";\n\t\t\t\techo \"\t\t</table>\\n\";\n\t\t\t}\n\t\t\techo \"\t\t</td>\\n\";\n\t\t\techo \"\t</tr>\";\n\t\t}\n\t\tif ($_GET['action_shop'] == \"shop_check_del_address\"){\n\t\t\techo \"<tr>\";\n\t\t\techo \"\t<td>\";\n\t\t\techo \"\t\t<a href=\\\"index.php?action=03&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><< \"._SHOP_PROGRESS_BACK.\"</a><br>\";\n \t\t\techo UserEdit(\"shop_check_del_address\").\"<br>\";\n\t\t\techo \"\t</td>\";\n\t\t\techo \"\t</tr>\";\n\t\t}\n\t\techo \"\t\t\t</table>\\n\";\n\t\techo \"\t\t</div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\techo \"\t</div>\";\n\t// Pokud se edituje uzivatel, nezobrazi se cela tato cast\n\tif ($_GET['action_shop'] != \"shop_check_del_address\"){\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\t\techo \"\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_03_BASKET_CONTENTS.\"</div><br><br>\";\n \t\t$res_basket = mysql_query(\"\n\t\tSELECT shop_basket_products_id, shop_basket_quantity \n\t\tFROM $db_shop_basket \n\t\tWHERE shop_basket_admin_id=\".(integer)$_SESSION['loginid'].\" \n\t\tORDER BY shop_basket_date_added ASC\"\n\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t$num_basket = mysql_num_rows($res_basket);\n\t\techo \"\t<table id=\\\"edenshop_progress_basket_headline\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" border=\\\"1\\\">\\n\";\n\t\techo \"\t<tr id=\\\"edenshop_progress_basket_name\\\">\\n\";\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_name_qty\\\">\"._SHOP_QTY.\"</td>\\n\";\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_name_code\\\">\"._SHOP_CODE.\"</td>\\n\";\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_name_title\\\">\"._SHOP_TITLE.\"</td>\\n\";\n\t\t\t\t\tif ($ar_setup['shop_setup_show_vat_subtotal'] == 1){ echo \"<td id=\\\"edenshop_progress_basket_name_ex_vat\\\">\"._SHOP_PRICE_EX_VAT_S.\"</td>\"; }\n\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_name_inc_vat\\\">\"._SHOP_PRICE_INC_VAT_S.\"</td>\\n\";\n\t\techo \"\t</tr>\";\n\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t\t/* Nacteme vsechny slevove kategorie pro prodejce */\n\t\t\t$res_discount = mysql_query(\"\n\t\t\tSELECT shop_discount_category_id, shop_discount_category_name \n\t\t\tFROM $db_shop_discount_category \n\t\t\tWHERE shop_discount_category_parent_id=0 AND shop_discount_category_type < 30\"\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$i=0;\n\t\t\t/* Ty pak ulozime do vicerozmerneho pole spolu s mnozstvim - na zacatku je mnozstvi 0 */\n\t\t\twhile ($ar_discount = mysql_fetch_array($res_discount)){\n\t\t\t\t/* array (discount kategorie, mnozstvi vyrobku) */\n\t\t\t\t$discount[$i] = array($ar_discount['shop_discount_category_id'],0);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t/* Spocitame mnozstvi slevovych kategorii v poli - nize pouzijeme pro iteraci */\n\t\t\t$pocet_disc = count($discount);\n\t\t\t/* Projdeme vsechny polozky v kosiku */\n\t\t\twhile($ar_basket = mysql_fetch_array($res_basket)){\n\t\t\t\t$res_product = mysql_query(\"\n\t\t\t\tSELECT shop_product_discount_cat_seller_id \n\t\t\t\tFROM $db_shop_product \n\t\t\t\tWHERE shop_product_id=\".(integer)$ar_basket['shop_basket_products_id'].\" \n\t\t\t\tGROUP BY shop_product_discount_cat_seller_id\"\n\t\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t\t/* Projdeme vsehchny produkty v kosiku a patrame po tom jestli maji ulozen zaznam o slevove kategorii */\n\t\t\t\twhile ($ar_product = mysql_fetch_array($res_product)){\n\t\t\t\t\t$y = 0;\n\t\t\t\t\t/* Projdeme vsechny slevove kategorie pro obchodniky */\n\t\t\t\t\twhile ($y < $pocet_disc){\n\t\t\t\t\t\t/* A kdyz nalezneme zaznam pripocteme mnozstvi kusu daneho produktu do vicerozmerneho pole se slevovymi kategoriemi */\n\t\t\t\t\t\tif ($discount[$y][0] == $ar_product['shop_product_discount_cat_seller_id']){$discount[$y][1] = $discount[$y][1] + (integer)$ar_basket['shop_basket_quantity'];}\n\t\t\t\t\t\t$y++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Do vicerozmerneho pole vlozime ID discount kategorie, mnozstvi vyrobku a cenu za jeden vyrobek*/\n\t\t\t$y = 0;\n\t\t\twhile ($y < $pocet_disc){\n\t\t\t\t//echo \"Discount Cat ID = \".$discount[$y][0].\" - Qty = \".$discount[$y][1].\"<br>\";\n\t\t\t\t$res_dc_price = mysql_query(\"\n\t\t\t\tSELECT shop_discount_category_discount_price \n\t\t\t\tFROM $db_shop_discount_category \n\t\t\t\tWHERE shop_discount_category_parent_id=\".$discount[$y][0].\" AND \".$discount[$y][1].\" BETWEEN shop_discount_category_discounted_from_amount AND shop_discount_category_discounted_to_amount\"\n\t\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t\t$ar_dc_price = mysql_fetch_array($res_dc_price);\n\t\t\t\t/* $discount_cat[ID discount kategorie][0 = mnozstvi vyrobku/1 = cena] */\n\t\t\t\t$discount_cat[$discount[$y][0]] = array($discount[$y][1],$ar_dc_price['shop_discount_category_discount_price']);\n\t\t\t\t$y++;\n\t\t\t}\n\t\t}\n\t\t$i_basket = 0;\n\t\tmysql_data_seek($res_basket, 0);\n\t\twhile($ar_basket = mysql_fetch_array($res_basket)){\n\t\t\t$res_product = mysql_query(\"\n\t\t\tSELECT p.shop_product_selling_price, p.shop_product_id, p.shop_product_product_code, p.shop_product_name, p.shop_product_vat_class_id, p.shop_product_discount_cat_seller_id, \n\t\t\tp.shop_product_discount_cat_cust_id, c.category_name, cstp.shop_clothes_style_parents_title, cc.shop_clothes_colors_title, pc.shop_product_clothes_size \n\t\t\tFROM $db_shop_product AS p \n\t\t\tJOIN $db_shop_product_clothes AS pc ON shop_product_clothes_product_id=\".(integer)$ar_basket['shop_basket_products_id'].\" \n\t\t\tJOIN $db_shop_clothes_style AS cst ON cst.shop_clothes_style_parent_id=pc.shop_product_clothes_style_id \n\t\t\tJOIN $db_shop_clothes_style_parents AS cstp ON cstp.shop_clothes_style_parents_id=cst.shop_clothes_style_parent_id \n\t\t\tJOIN $db_shop_clothes_colors AS cc ON cc.shop_clothes_colors_id=pc.shop_product_clothes_color_id \n\t\t\tJOIN $db_category AS c ON c.category_id=p.shop_product_master_category \n\t\t\tWHERE shop_product_id=\".(integer)$ar_basket['shop_basket_products_id']\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t\n\t\t\t$ar_product = mysql_fetch_array($res_product);\n\t\t\t$res_product_tax_rate = mysql_query(\"\n\t\t\tSELECT shop_tax_rates_rate \n\t\t\tFROM $db_shop_tax_rates \n\t\t\tWHERE shop_tax_rates_class_id=\".(integer)$ar_product['shop_product_vat_class_id'].\" \n\t\t\tORDER BY shop_tax_rates_priority DESC\"\n\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$ar_product_tax_rate = mysql_fetch_array($res_product_tax_rate);\n\t\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t\t \t/* Cena za jednotku vynasobena mnozstvim */\n\t\t\t\t$price_inc_vat = $discount_cat[$ar_product['shop_product_discount_cat_seller_id']][1] * $ar_basket['shop_basket_quantity'];\n\t\t\t} else {\n\t\t\t\t/* Cena za jednotku vynasobena mnozstvim */\n\t\t\t\t$price_inc_vat = $ar_product['shop_product_selling_price'] * $ar_basket['shop_basket_quantity'];\n\t\t\t}\n\t\t\t$price_ex_vat = $price_inc_vat / ($ar_product_tax_rate['shop_tax_rates_rate']/100+1);\n\t\t\t$price_vat = ($price_inc_vat - $price_ex_vat);\n\t\t\techo \"<tr id=\\\"edenshop_progress_basket\\\">\\n\";\n\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_qty\\\">\".$ar_basket['shop_basket_quantity'].\"</td>\\n\";\n\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_code\\\"><a href=\\\"index.php?action=\".strtolower($ar_product['category_name']).\"&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"&amp;prod_id=\".$ar_product['shop_product_id'].\"&amp;spec=1\\\">\".$ar_product['shop_product_product_code'].\"</a></td>\\n\";\n\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_title\\\"><strong>\".$ar_product['shop_product_name'].\"</strong><br>\".$ar_product['shop_clothes_style_parents_title'].\", \".$ar_product['shop_clothes_colors_title'].\", \".$ar_product['shop_product_clothes_size'].\"</td>\\n\";\n\t\t\t\t\t if ($ar_setup['shop_setup_show_vat_subtotal'] == 1){ echo \"<td id=\\\"edenshop_progress_basket_ex_vat\\\">\".PriceFormat($price_ex_vat).\"</td>\";}\n\t\t\techo \"\t<td id=\\\"edenshop_progress_basket_inc_vat\\\">\".PriceFormat($price_inc_vat).\"</td>\\n\";\n\t\t\techo \"</tr>\";\n\t\t\t$quantity = $quantity + $ar_basket['shop_basket_quantity'];\n\t\t\t$total_nett_price = $price_ex_vat + $total_nett_price;\n\t\t\t$total_vat = $price_vat + $total_vat;\n\t\t\t$subtotal = $price_inc_vat + $subtotal;\n\t\t\t$i_basket++;\n\t\t}\n\t\t\n\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t\t$res_carr = mysql_query(\"SELECT shop_carriage_price FROM $db_shop_carriage WHERE shop_carriage_wholesale=1\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$ar_carr = mysql_fetch_array($res_carr);\n\t\t\t$carriage_price = $ar_carr['shop_carriage_price'];\n\t\t} else {\n\t\t\t$res_carr = mysql_query(\"SELECT shop_carriage_price FROM $db_shop_carriage WHERE shop_carriage_id=\".(integer)$ar_setup['shop_setup_carriage_id']) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t$ar_carr = mysql_fetch_array($res_carr);\n\t\t\t/* Kdyz je pocet nebo castka vetsi nez aktivni zadane veliciny tak je doprava FREE */\n\t\t\tif ($ar_setup['shop_setup_delivery_free_amount_active'] == 1 && $total_nett_price > $ar_setup['shop_setup_delivery_free_amount']){\n\t\t\t\t$carriage_price = 0;\n\t\t\t} elseif ($ar_setup['shop_setup_delivery_free_num_active'] == 1 && $quantity > $ar_setup['shop_setup_delivery_free_num']){\n\t\t\t\t$carriage_price = 0;\n\t\t\t} else {\n\t\t\t\t$carriage_price = $ar_carr['shop_carriage_price'];\n\t\t\t}\n\t\t}\n\t\t$total_total = $total_nett_price + $total_vat + $carriage_price;\n\t\t\techo \"\t\t\t\t</table>\\n\";\n\t\t\techo \"\t\t\t\t<table id=\\\"edenshop_progress_basket_headline\\\" cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t<tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_recalculate\\\"><br></td>\\n\";\n\t\t\techo \"\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total\\\">\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t<table width=\\\"100%\\\" cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\tif ($ar_setup['shop_setup_show_vat_subtotal'] == 1 || $_SESSION['u_status'] == \"seller\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \" \t<tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \" \t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_NETT_TOTAL.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_total_price\\\">\".PriceFormat(TepRound($total_nett_price,2)).\"</td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td colspan=\\\"2\\\" id=\\\"edenshop_basket_dotted\\\"></td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_TOTAL_VAT.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_total_price\\\">\".PriceFormat(TepRound($total_vat,2)).\"</td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td colspan=\\\"2\\\" id=\\\"edenshop_basket_dotted\\\"></td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_SUBTOTAL.\"</td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_basket_total_price\\\">\".PriceFormat(TepRound($subtotal,2)).\"</td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t\t<td colspan=\\\"2\\\" id=\\\"edenshop_basket_dotted\\\"></td>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\techo \"\t\t\t\t\t\t\t\t<tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_CARRIAGE.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total_price\\\">\\n\";\n\t\t \t\t\t\t\t\t\t\t\t\t\tif ($carriage_price == 0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"FREE\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\techo PriceFormat(TepRound($carriage_price,2));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\techo \"\t\t\t\t\t\t\t\t\t</td>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t<tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t\t<td colspan=\\\"2\\\" id=\\\"edenshop_progress_basket_dotted\\\"></td>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t<tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total\\\">\"._SHOP_TOTAL.\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t\t<td id=\\\"edenshop_progress_basket_total_total\\\">\".PriceFormat(TepRound($total_total)).\"</td>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t\t\t\t</table>\\n\";\n\t\t\techo \"\t\t\t\t\t\t</td>\\n\";\n\t\t\techo \"\t\t\t\t\t</tr>\\n\";\n\t\t\techo \"\t\t\t\t</table>\\n\";\n\t\t\techo \"\t\t</div>\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\t\techo \"\t</div>\\n\";\n\t\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_03_DELIVERY_OPTIONS.\"</div><br><br>\\n\";\n\t\t\techo \"\t\t\t<table width=\\\"100%\\\" cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\t\t\t\t\t\t// Zabezpeceni aby nebyl zobrazen formular pokud chybi nektery z kontaktnich udaju\n\t\t\t\t\t\t \tif ($contact_firstname != \"\" && $contact_surname != \"\" && $contact_address_1 != \"\" && $contact_city != \"\" && $contact_postcode != \"\" && $contact_email != \"\"){\n\t\t\t\t\t\t\t\techo \"<form action=\\\"\".$eden_cfg['url_edencms'].\"eden_shop_save.php?lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" method=\\\"post\\\">\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ($carriage_price == 0){\n\t\t\t\t\t\t\t\tif ($_SESSION['u_status'] == \"seller\"){\n\t\t\t\t\t\t\t\t\t$where = \"shop_carriage_wholesale=1\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$where = \"shop_carriage_price=0\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$res_carr = mysql_query(\"SELECT shop_carriage_id, shop_carriage_title, shop_carriage_description FROM $db_shop_carriage WHERE $where\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t\t\t\t\t\t$ar_carr = mysql_fetch_array($res_carr);\n\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_delivery_radio\\\"><input type=\\\"hidden\\\" name=\\\"shop_carriage_id\\\" id=\\\"edenshop_progress_carriage\\\" value=\\\"\".$ar_carr['shop_carriage_id'].\"\\\"></td>\\n\";\n\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_delivery_title\\\">\".$ar_carr['shop_carriage_description'].\" - <strong>FREE</strong></td>\\n\";\n\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_delivery_price\\\">\"._SHOP_PROGRESS_TOTAL_PRICE; $price = $total_nett_price + $total_vat; echo \"<strong>\".PriceFormat($price).\"</strong>&nbsp;</td>\\n\";\n\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// V pripade ze Delivery adresa neni vyplnena pouzije se jako delivery adresa adresa normalni\n\t\t\t\t\t\t\t\tif ($ar['admin_contact_shop_country'] == \"\"){$delivery_zone = RoyalMailWorldZone($ar['admin_contact_country']);} else {$delivery_zone = RoyalMailWorldZone($ar['admin_contact_shop_country']);}\n\t\t\t\t\t\t\t\t$res_carr = mysql_query(\"\n\t\t\t\t\t\t\t\tSELECT shop_carriage_id, shop_carriage_title, shop_carriage_price \n\t\t\t\t\t\t\t\tFROM $db_shop_carriage \n\t\t\t\t\t\t\t\tWHERE shop_carriage_category='\".$delivery_zone.\"' \n\t\t\t\t\t\t\t\tORDER BY shop_carriage_price ASC, shop_carriage_category ASC\"\n\t\t\t\t\t\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t\t\t\t\t\t$i = 1;\n\t\t\t\t\t\t\t\twhile($ar_carr = mysql_fetch_array($res_carr)){\n\t\t\t\t\t\t\t\t\techo \"\t<tr>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_delivery_radio\\\"><input type=\\\"radio\\\" name=\\\"shop_carriage_id\\\" id=\\\"edenshop_progress_carriage\\\" value=\\\"\".$ar_carr['shop_carriage_id'].\"\\\" \"; if ($ar_carr['shop_carriage_id'] == $ar_setup['shop_setup_carriage_id']){ echo 'checked=\\\"checked\\\"';} echo \"></td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_delivery_title\\\">\".$ar_carr['shop_carriage_title'].\" - <strong>\".PriceFormat($ar_carr['shop_carriage_price']).\"</strong></td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t\t<td id=\\\"edenshop_progress_delivery_price\\\">\"._SHOP_PROGRESS_TOTAL_PRICE; $price = $total_nett_price + $total_vat + $ar_carr['shop_carriage_price']; echo \"<strong>\".PriceFormat($price).\"</strong>&nbsp;</td>\\n\";\n\t\t\t\t\t\t\t\t\techo \"\t</tr>\\n\";\n\t\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\techo \"\t\t\t</table>\\n\";\n\t\t\techo \"\t\t</div>\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\t\techo \"\t</div>\\n\";\n\t\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_top\\\"></div>\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_mid\\\">\\n\";\n\t\t\techo \"\t\t\t<div id=\\\"edenshop_progress_title\\\">\"._SHOP_03_PAYMENT_METHOD.\"</div><br><br>\\n\";\n\t\t\techo \"\t\t\t<table width=\\\"100%\\\" cellpadding=\\\"2\\\" cellspacing=\\\"0\\\" border=\\\"0\\\">\\n\";\n\t\t\t\t\t\t\t$res_pay = mysql_query(\"\n\t\t\t\t\t\t\tSELECT shop_payment_methods_id, shop_payment_methods_publish, shop_payment_methods_title, shop_payment_methods_descriptions, shop_payment_methods_picture \n\t\t\t\t\t\t\tFROM $db_shop_payment_methods \n\t\t\t\t\t\t\tWHERE shop_payment_methods_publish=1 \n\t\t\t\t\t\t\tORDER BY shop_payment_methods_id ASC\"\n\t\t\t\t\t\t\t) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t\t\t\t\t\t$num_pay = mysql_num_rows($res_pay);\n\t\t\t\t\t\t\twhile($ar_pay = mysql_fetch_array($res_pay)){\n\t\t\t\t\t\t\t\techo \" \t<tr>\\n\";\n\t\t\t\t\t\t\t\techo \" \t\t<td align=\\\"left\\\" valign=\\\"top\\\" width=\\\"20\\\">\"; if ($num_pay < 2){ echo \"<input type=\\\"hidden\\\" name=\\\"shop_payment_methods_id\\\" value=\\\"\".$ar_pay['shop_payment_methods_id'].\"\\\">\"; } else { echo \"<input type=\\\"radio\\\" name=\\\"shop_payment_methods_id\\\" id=\\\"edenshop_progress_carriage\\\" value=\\\"\".$ar_pay['shop_payment_methods_id'].\"\\\" \"; if ($ar_pay['shop_payment_methods_publish'] == 0){echo \" disabled=\\\"disabled\\\" \";} echo \">\"; } echo \"</td>\\n\";\n\t\t\t\t\t\t\t\techo \" \t\t<td align=\\\"left\\\" valign=\\\"top\\\" width=\\\"700\\\" class=\\\"edenshop_progress_03_payment\\\">\\n\";\n\t\t\t\t\t\t\t\tif ($ar_pay['shop_payment_methods_publish'] == 0){ echo \"<strong class=\\\"edenshop_disabled\\\">\".$ar_pay['shop_payment_methods_title'].\"</strong>\"; } else { echo \"<strong>\".$ar_pay['shop_payment_methods_title'].\"</strong>\"; } echo \"<br>\\n\";\n\t\t\t\t\t\t\t\techo \"\t \t\".$ar_pay['shop_payment_methods_descriptions'].\"<br>\\n\";\n\t\t\t\t\t\t\t\techo \"\t \t<img src=\\\"\".$url_shop_payments.$ar_pay['shop_payment_methods_picture'].\"\\\" alt=\\\"\".$ar_pay['shop_payment_methods_title'].\"\\\"><br><br>\\n\";\n\t\t\t\t\t\t\t\techo \"\t \t</td>\\n\";\n\t\t\t\t\t\t\t\techo \"\t </tr>\\n\";\n\t\t\t\t\t\t\t}\n\t\t\techo \"\t\t\t</table>\\n\";\n\t\t\techo \"\t\t</div>\\n\";\n\t\t\techo \"\t\t<div id=\\\"edenshop_progress_border_bottom\\\"></div>\\n\";\n\t\t\techo \"\t</div><br>\\n\";\n\t\t\techo \"\t<div id=\\\"edenshop_but_pos\\\">\\n\";\n\t\t\t// Zabezpeceni aby nebyl zobrazen formular pokud chybi nektery z kontaktnich udaju\n\t\t\t\tif ($contact_firstname != \"\" && $contact_surname != \"\" && $contact_address_1 != \"\" && $contact_city != \"\" && $contact_postcode != \"\" && $contact_email != \"\"){\n\t\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"add_order\\\">\\n\";\n\t\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"oaid\\\" value=\\\"\".$_SESSION['loginid'].\"\\\">\\n\";\n\t\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"orders_shop_ip\\\" value=\\\"\".$eden_cfg['ip'].\"\\\">\\n\";\n\t\t\t\t\techo \"\t\t<input type=\\\"hidden\\\" name=\\\"project\\\" value=\\\"\".$project.\"\\\">\\n\";\n\t\t\t\t\techo \"\t\t<input type=\\\"Submit\\\" id=\\\"edenshop_progress_proceed\\\" value=\\\"\\\">\\n\";\n\t\t\t\t\techo \"\t</form>\\n\";\n\t\t\t\t}\n\t\t\t\techo \"\t</div>\\n\";\n\t \t}\n\t} else {\n\t\techo \"\t<div align=\\\"center\\\">\\n\";\n\t\techo _SHOP_BASKET_EMPTY.\"<br>\\n\";\n\t\techo _SHOP_BASKET_EMPTY_PLEASE.\"<br>\\n\";\n\t\techo \"\t\t<a href=\\\"index.php?action=&amp;lang=\".$_GET['lang'].\"&amp;filter=\".$_GET['filter'].\"\\\" target=\\\"_self\\\"><img src=\\\"images/edenshop_butt_cont_shop_en.gif\\\" width=\\\"159\\\" height=\\\"25\\\" alt=\\\"\\\"></a>\\n\";\n\t\techo \"\t</div>\";\n\t}\n}", "public function obterArrayIds(Shop $shop);", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "function wpcoupon_wc_change_number_products(){\r\n $shop_id = wc_get_page_id( 'shop' );\r\n $number = absint( get_post_meta( $shop_id, '_wpc_shop_number_products', true ) );\r\n if ( ! $number ) {\r\n $number = 12;\r\n }\r\n return $number;\r\n}", "function update_shipto($shipto_id,$params){\n $this->company_db->update('tbl_shipto', $params,array(\"id\"=>$shipto_id)); \n }", "public function update($id, UpdateShopRequest $request)\n {\n \\DB::beginTransaction();\n $this->shopRepository->pushCriteria(new ShopsOfUserCriteria(auth()->id()));\n $oldShop = $this->shopRepository->findWithoutFail($id);\n\n if (empty($oldShop)) {\n Flash::error('Shop not found');\n return redirect(route('shops.index'));\n }\n $input = $request->all();\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->shopRepository->model());\n try {\n $oldShop = $this->shopRepository->find($id);\n $shop = $this->shopRepository->update($input, $id);\n\n $this->shopCategoryShopRepository->where('shop_id', $shop->id)->delete();\n if(isset($input['shopCategory']))\n foreach($input['shopCategory'] as $shopCategory){\n $this->shopCategoryShopRepository->create(array(\n 'shop_id' => $shop->id,\n 'shop_category_id' => $shopCategory\n ));\n }\n\n if (isset($input['image']) && $input['image']) {\n $cacheUpload = $this->uploadRepository->getByUuid($input['image']);\n // return $cacheUpload;\n $mediaItem = $cacheUpload->getMedia('image')->first();\n $mediaItem->copy($shop, 'image');\n }\n foreach (getCustomFieldsValues($customFields, $request) as $value) {\n $shop->customFieldsValues()\n ->updateOrCreate(['custom_field_id' => $value['custom_field_id']], $value);\n }\n event(new ShopChangedEvent($shop, $oldShop));\n \\DB::commit();\n } catch (ValidatorException $e) {\n \\DB::rollBack();\n Flash::error($e->getMessage());\n }\n\n Flash::success(__('lang.updated_successfully', ['operator' => __('lang.shop')]));\n\n return redirect(route('shops.index'));\n }", "public function update(Request $request, int $shop)\n\t{\n\t\ttry {\n\t\t\t$data = $request->except('_token');\n\t\t\t$data['socials'] = json_encode($data['socials']);\n\t\t\t$shop = Shop::findOrFail($shop);\n\t\t\t$shop->update($data);\n\t\t\t\n\t\t\treturn response()->json(['message' => \"Shop updated successfully.\", 'shop' => $shop]);\n\t\t} catch (\\Exception $e) {\n\t\t\treturn response()->json(['message' => \"An error occurred during shop update.\", 'exception' => $e->getMessage()], 500);\n\t\t}\n\t}", "public function getShopName()\n {\n return $this->shopName;\n }", "function getStoreId($id = '')\n\t{\n\t\t$id\t.= ':'.$this->getState('filter.search');\n\n\t\treturn parent::getStoreId($id);\n\t}", "public function actionShopUpdate()\n\t{\n\t\t$model = Shop::model()->findByPk( (int)$_POST['shop_id'] );\n\t\t\n\t\t$result = array ('success' => 0, 'info' => '不能为空' );\n\t\tif ($_POST) {\n\t\t\t$_POST = daddslashes(dstrip_tags($_POST));\n\t\t\t$model->shop_name = $_POST['shop_name'];\n\t\t\t$model->shop_address = $_POST['shop_address'];\t\t\t\n\t\t\t$model->shop_province = $_POST['shop_province'];\n\t\t\t$model->shop_city = $_POST['shop_city'];\n\t\t\t$model->shop_region = $_POST['shop_region'];\n\t\t\t$model->shop_area = $_POST['shop_area'];\n\t\t\t$model->shop_section = $_POST['shop_section'];\n\t\t\t$model->coupon = (int)$_POST['coupon'];\n\t\t\t$model->status = (int)$_POST['status'];\n\t\t\t$model->ordering = (int)$_POST['ordering'];\n\t\t\tif ($model->save ()) {\n\t\t\t\t$result ['success'] = $model->shop_id;\n\t\t\t\t$result ['info'] = '创建成功';\n\t\t\t}\n\t\t\n\t\t}\n\t\theader ( \"Content-type: text/json; charset=utf-8\" );\n\t\texit ( json_encode ( $result ) );\t\n\n\t}", "public function getStoreId(): int\n {\n return (int)$this->options['store_id'];\n }", "function setVako($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n /* you can itentify the article with $object->reference->ShopId */ \n}" ]
[ "0.7516985", "0.7272931", "0.70258486", "0.6994701", "0.69685423", "0.6890607", "0.68718934", "0.6690591", "0.66408473", "0.655182", "0.65389574", "0.65249896", "0.65148884", "0.6485231", "0.64278626", "0.63136154", "0.6305182", "0.62861323", "0.6161083", "0.6125782", "0.6102543", "0.60560757", "0.6053784", "0.60187113", "0.6010384", "0.5989278", "0.5975518", "0.5975126", "0.5971869", "0.59646136", "0.5946369", "0.59428585", "0.59183913", "0.5862222", "0.58609515", "0.5854194", "0.58269817", "0.5806501", "0.5795355", "0.5757612", "0.57345444", "0.5731193", "0.572508", "0.57103187", "0.56891876", "0.56734747", "0.5661558", "0.5659306", "0.5655102", "0.56546324", "0.5646408", "0.56381875", "0.563188", "0.5624444", "0.5608927", "0.5602998", "0.5602814", "0.55991864", "0.559863", "0.55920404", "0.5584507", "0.5578386", "0.5576268", "0.55720943", "0.556831", "0.5510889", "0.5503566", "0.54952145", "0.54702026", "0.5452168", "0.5447243", "0.5443196", "0.5439627", "0.54291403", "0.542887", "0.5423416", "0.5423416", "0.54176325", "0.5385815", "0.53797245", "0.53773105", "0.53696936", "0.5361755", "0.5359699", "0.5359699", "0.5347895", "0.5347279", "0.5333891", "0.5328094", "0.5319339", "0.53176534", "0.5310971", "0.5302317", "0.52968216", "0.529417", "0.5292254", "0.52831334", "0.5279547", "0.5274669", "0.5267636" ]
0.6182539
18
loads site params from the file given in param
private function loadParams() { foreach ($this->_param_names as $param_name) { $funcname = 'set'.$param_name; if (_PS_VERSION_ < '1.5') $this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name))); else $this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name), null, null, $this->getIdshop())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ppom_load_file($file_path, $variables=array('')){\n\n\tif( is_array($variables))\n extract( $variables );\n \n if( file_exists($file_path))\n \tinclude ($file_path);\n else\n \tdie('File not found'.$file_path);\n}", "function loadConfig(){\n $file = file_get_contents($this->config_dir, FILE_USE_INCLUDE_PATH);\n $urls = json_decode($file,TRUE);\n //not the best way but error handling\n if ($file == NULL || $urls == NUll ){\n print(\"Error reading the config file or it it is empty\");\n }\n else{\n $this->config_data = $urls;\n\n }\n }", "function Load($path,$mode='',$parser=array())\n{\n\tif(count($parser)>0)\n\t{\n\t\tforeach($parser as $key=>$value)\n\t\t{\n\t\t\t$_REQUEST['CFVars'][$key] = $value;\n\t\t}\n\t}\n\tif(isset($_REQUEST['CFVars']))\n\t\t$params = $_REQUEST['CFVars'];\n\telse\n\t\t$params = array();\n\n\tif(is_array($params))\n\textract($params, EXTR_OVERWRITE);\n\tif($mode=='apps')\n\t{\n\t\tif(file_exists(ROOTPATH.$_REQUEST['CFSystem']['application'].DIRECTORY_SEPARATOR.$path.'.php'))\n\t\tinclude_once(ROOTPATH.$_REQUEST['CFSystem']['application'].DIRECTORY_SEPARATOR.$path.'.php');\n\t}\n\telse\n\t{\n\t\tif(file_exists($path.'.php'))\n\t\tinclude_once($path.'.php');\n\t}\n}", "public function loadParams()\r\n\t{\r\n\t\tforeach ($this->param_names as $param_name)\r\n\t\t{\r\n\t\t\t$funcname = 'set'.$param_name;\r\n\t\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name)));\r\n\t\t\telse\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t\t}\r\n\t}", "function loadSite($file, $tryCache=true, $replace=false) {\n\n // if we dont have a reader yet, make it\n if ($this->cfgReader == NULL) {\n global $SM_rootDir;\n $this->cfgReader = SM_loadConfigReader('SMCONFIG', $this, $SM_rootDir.SM_SMCONFIG_READER_FILE);\n }\n\n // set replace\n $this->cfgReader->addDirective('replace',$replace);\n $tryCache = $tryCache && $this->cfgReader->useCache(); \n\n if ($tryCache) {\n\n // XXX this may not return the correct results if you have two different config objects that load the \n // same base file, and then the same consecutive file where one objects uses replace and one doesn't\n // we never do that so i'm ignoreing that case\n $this->fileLoadList .= $file;\n if (xcache_isset($this->fileLoadList)) {\n $this->debugLog(\"loading cached xsm file: {$this->fileLoadList}\");\n $this->sectionList = unserialize(xcache_get($this->fileLoadList));\n if ($this->sectionList)\n return;\n // if we get here, we couldn't unserialize, so fall through\n }\n\n }\n\n // fall through. either caching is off, cache didn't exist, or cache was stale\n // read in config, setting my properties at the same time\n $this->cfgReader->readConfigXML($file);\n \n // should we cache the config file?\n if ($tryCache) {\n xcache_set($this->fileLoadList, serialize($this->sectionList), $this->cfgReader->directive['cacheTTL']);\n }\n\n }", "function module_fileLoad($val, $data)\n{\n\t$ext\t= explode('.', $data);\n\t$ext\t= end($ext);\n\t$ext\t= strtolower($ext);\n\tswitch($ext){\n\tcase 'js':\treturn module_scriptLoad($val, $data);\n\tcase 'css':\treturn module_styleLoad($val, $data);\n\t}\n}", "private function loadGetParams()\n {\n if(isset($_GET)) {\n $this->getParams = $_GET;\n }\n }", "public function getVars()\n {\n $this->vars['db']['db'] = (isset($_GET['db']) && !empty($_GET['db'])) ? $_GET['db'] : $this->vars['db']['db'];\n\n if (!isset($_GET['fn'])) {\n trigger_error('Filename not set');\n } else {\n $this->vars['ifn'] = urldecode($_GET['fn']);\n }\n\n if (!file_exists($this->vars['ifn'])) {\n trigger_error($this->vars['ifn'] . ' doesn\\'t exist');\n }\n $this->vars['ifn'] = realpath($this->vars['ifn']);\n\n // Get a bunch of settings.\n $this->vars['chunks'] = (isset($_GET[\"chunks\"])) ? intval($_GET[\"chunks\"]) : 1000;\n $this->vars['limit'] = (isset($_GET[\"limit\"])) ? intval($_GET[\"limit\"]) : INF;\n $this->vars['replace'] = (isset($_GET[\"replace\"])) ? filter_var($_GET[\"replace\"],FILTER_VALIDATE_BOOLEAN) : false;\n $this->vars['delimiter'] = (isset($_GET[\"delimiter\"]) && $_GET[\"delimiter\"] !== '') ? $_GET[\"delimiter\"] : ',';\n $this->vars['quotechar'] = (isset($_GET[\"quotechar\"]) && $_GET[\"quotechar\"] !== '') ? $_GET[\"quotechar\"] : '\"';\n $this->vars['escapechar'] = (isset($_GET[\"escapechar\"]) && $_GET[\"escapechar\"] !== '') ? $_GET[\"escapechar\"] : '\\\\';\n // has headers\n $this->vars['hh'] = (isset($_GET[\"hh\"])) ? filter_var($_GET[\"hh\"], FILTER_VALIDATE_BOOLEAN) :false;\n $this->vars['aa'] = (isset($_GET[\"aa\"])) ? filter_var($_GET[\"aa\"], FILTER_VALIDATE_BOOLEAN) :true;\n // 'just processing'\n $this->vars['jp'] = (isset($_GET[\"jp\"])) ? filter_var($_GET[\"jp\"], FILTER_VALIDATE_BOOLEAN) : false;\n // Processors\n $this->vars['rowProcessor'] = (isset($_GET[\"processor\"])) ? \"Processor_Row_\" . $_GET[\"processor\"] : false;\n $this->vars['dbProcessor'] = (isset($_GET[\"processor\"])) ? \"Processor_DB_\" . $_GET[\"processor\"] : false;\n\n $this->vars['method'] = ($this->vars['hh']) ? 1 : 2;\n\n // This is the output filename, used as a temporary file for dumping to DB\n if(!is_dir(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'var')){\n mkdir(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'var');\n }\n $this->vars['ofn'] = APPLICATION_PATH . '/var/output-' . (int) (rand() * 1000) . '.csv';\n\n // Gets the table name\n $this->vars['db']['table'] = (isset($_GET['table']) && !empty($_GET['table'])) ? $_GET['table'] : CSVRunner::getDBName($this->vars['ifn']);\n\n // Gets the column types as defined by the user\n $this->vars['columnTypes'] = json_decode($_GET['columnTypes']);\n\n $this->vars['characterSet'] = isset($_GET['characterSet']) ? $_GET['characterSet'] : $this->vars['characterSet'];\n $this->vars['collation'] = isset($_GET['collation']) ? $_GET['collation'] : $this->vars['collation'];\n\n return $this;\n }", "function _load_get_params(&$app, &$c) {\n\t\t$params =& $c->param('app.view_http.request.params');\n\t\tif (is_array($params)) {\n\t\t\tforeach($params as $p_name => $p_value) {\n\t\t\t\t$this->_http->addQueryString($p_name, $p_value);\n\t\t\t}\n\t\t}\n\t}", "public function load($file);", "public function load($file);", "public function load($file);", "function SM_config($file, $tryCache=true) {\n\n // configure\n $this->_smoConfigure();\n\n // load the config file\n $this->loadSite($file, $tryCache);\n \n }", "abstract protected function loadSettings();", "private function load_settings() {\n\t\t\n\t}", "public function load() {\n\t\t$this->copyFromTemplateIfNeeded();\n\t\trequire $this->filePath;\n\t\t$this->vars = $vars;\n\t}", "public function loadConfig(){\n\t\t\n\t\t$opt[] = [\n\t\t\t'method' => 'setFormParams',\n\t\t\t'value'=>$this->paramsLoad(3, \\sevian\\s::getReq('command_idx'), \\sevian\\s::getReq('unit_idx'))\n\t\t\t\n\t\t];\n\t\t$this->info = $opt;//$form->getInfo();\n\t}", "public abstract function loadConfig($fileName);", "private function load()\n {\n if ($this->sites) {\n return;\n }\n $data = Yaml::parse(file_get_contents($this->file));\n $this->sites = $data['sites'];\n }", "public static function loadSiteConfig($event) {\n\t\t$site = Yii::app()->urlManager->currentSite;\n\t\t\n\t\t$sitesParams = self::includeArray('sites-params.php', Yii::getPathOfAlias('approot.config'));\n\t\tif (isset($sitesParams[$site]))\n\t\t\tYii::app()->params->mergeWith($sitesParams[$site]);\n\t\t\n\t\t$localSiteParams = self::findLocalFile($site.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'params.php');\n\t\tif ($localSiteParams)\n\t\t\tYii::app()->params->mergeWith(include($localSiteParams));\n\t\t\n\t\t$siteConfig = self::findLocalFile($site.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'main.php');\n\t\tif ($siteConfig)\n\t\t\tYii::app()->configure(include($siteConfig));\n\t}", "function loadConf($id, $file=CONFERENCES)\n{\n\t$confs = getJSON($file);\n\t$index = searchIndex($confs, $id);\n\t$result = NULL;\n\t\n\tif($index >= 0){\n\t\t$result = $confs[$index];\n\t}\n\treturn $result;\n}", "protected function loadConfig() {\n $json = new JSON();\n $viewConfig = $json->readFile(__SITE_PATH . \"\\\\config\\\\view.json\");\n $this->meta_info = $viewConfig['meta'];\n $this->js_files = $viewConfig['javascript'];\n $this->css_files = $viewConfig['css'];\n }", "function loadSettings() {\n\tsetupSiteURLs();\n}", "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}", "protected function loadSettings() {}", "protected function loadSettings() {}", "public function load()\n {\n $data = array(\n 'get' => (isset($_GET)) ? $_GET : null, \n 'post' => (isset($_POST)) ? $_POST : null,\n 'request' => (isset($_REQUEST)) ? $_REQUEST : null,\n 'files' => (isset($_FILES)) ? $_FILES : null,\n 'server' => (isset($_SERVER)) ? $_SERVER : null,\n 'session' => (isset($_SESSION)) ? $_SESSION : null\n );\n\n foreach ($data as $name => $value) {\n if ($value !== null) {\n $this->$name = $value;\n $global = strtoupper($name);\n unset($$global);\n }\n }\n }", "protected function loadSettings() {}", "function load(&$render, &$params)\n {\n }", "public function setSiteParameters($params);", "abstract protected function loadConfig();", "static function loadConfig() {\n\t\t$config = self::file($_SERVER[\"DOCUMENT_ROOT\"] . \"/../config.json\");\n\t\tif (!is_null($config))\n\t\t\tself::$config = json_decode($config);\n\t}", "function loadView($file, $params = array()) {\n \n if(!empty($params)) {\n extract($params);\n } \n \n include realpath(dirname(__FILE__)).'/../view/'.$file.'.php';\n}", "public static function init()\n {\n if (file_exists(\"parametre.ini\"))\n {//appel habituel depuis index\n $fic = \"parametre.ini\";\n }\n else\n // si l'API est appelé, l'appel ce fait depuis le dossier Controller, il faut repartir à la racine\n if (file_exists(\"../../parametre.ini\"))\n {\n $fic = \"../../parametre.ini\";\n }\n else\n {\n echo \"Pas de fichier de paramètres\";\n }\n\n $flux = fopen($fic, \"r\"); //on ouvre le fichier en lecture\n //tant qu'il y a des lignes\n while (!feof($flux))\n {\n $ligne = fgets($flux, 4096);\n if ($ligne) // si la ligne n'est pas vide\n {\n $info = explode(\":\", $ligne); // on sépare la ligne selon le ;\n $param[$info[0]] = rtrim($info[1]); //on remplit un tableau associatif avec la 1ere partie en clé, la 2nde en valeur\n }\n }\n // on remplie les attributs de la classe\n self::$_host = $param[\"Host\"];\n self::$_port = $param[\"Port\"];\n self::$_dbName = $param[\"DbName\"];\n self::$_login = $param[\"Login\"];\n self::$_pwd = $param[\"Pwd\"];\n\n }", "function loadParams(&$params, &$elements)\n\t{\n\t\t$this->params = $params;\n\t\t$this->xaElements=$elements;\n\t}", "public static function load()\n {\n $files = glob(BASEDIR . '/config/*.php');\n foreach ($files as $file){\n $key = str_replace('.php', '', basename($file));\n static::$values[$key] = include $file;\n }\n }", "public function set_file_params($params)\n {\n }", "function getParams() {\n global $id;\n global $file;\n global $teg;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n\n\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n\n}", "abstract protected function load();", "abstract protected function load();", "abstract protected function load();", "abstract protected function load();", "private function _loadGlobalSettings(){\r\n\r\n $settings = ROOT.DS.'site'.DS.'content'.DS.'global_settings.json';\r\n\r\n if(file_exists($settings)){\r\n $this->globalSettings = json_decode(file_get_contents($settings));\r\n } else {\r\n $globalSettings = new stdClass();\r\n $globalSettings->website_name = '';\r\n $globalSettings->global_script = '';\r\n file_put_contents($settings, json_encode($globalSettings));\r\n }\r\n\r\n }", "function loadSiteReplace($file, $tryCache=true) {\n $this->loadSite($file, $tryCache, true);\n }", "public function loadFromFile($file)\n {\n \n }", "function getParameters() {\n $ar = split(\";\", $GLOBALS[\"pagedata\"][\"module\"]);\n for ($c = 0; $c < sizeof($ar); $c++) {\n $a = split(\"=\", $ar[$c]);\n $this->module_param[$a[0]] = $a[1];\n }\n }", "function getParameters() {\n $ar = split(\";\", $GLOBALS[\"pagedata\"][\"module\"]);\n for ($c = 0; $c < sizeof($ar); $c++) {\n $a = split(\"=\", $ar[$c]);\n $this->module_param[$a[0]] = $a[1];\n }\n }", "function load_configs($file, $is_global = true)\n{\n\n if (substr($file, -5) != '.json') {\n throw new Exception('Invalid config file found in configs folder.');\n }\n\n $fname = strtolower(substr(basename($file), 0, - (strlen('.json'))));\n\n $GLOBALS[\"__CONFIG__{$fname}__\"] = json_decode(file_get_contents($file), true);\n}", "public function get_file_params()\n {\n }", "function LoadConfiguration()\r\n\t{\r\n\t\t$cinfFilePath = Site::GetConfigFilePath ();\r\n\t\t$config = simplexml_load_file ( $cinfFilePath );\r\n\t\t\r\n\t\t// load languages\r\n\t\tif (isset ( $config->languages ))\r\n\t\t{\r\n\t\t\t$langs = ( array ) $config->languages;\r\n\t\t\t$langsA = $langs ['language'];\r\n\t\t\t\r\n\t\t\tif (! is_array ( $langsA ))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t$linkID = ( string ) $langsA->linkID;\r\n\t\t\t\t$linkName = ( string ) $langsA->linkName;\r\n\t\t\t\t$this->m_languages [$linkID] = $linkName;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tforeach ( $langsA as $lang )\r\n\t\t\t\t{\r\n\t\t\t\t\t$linkID = ( string ) $lang->linkID;\r\n\t\t\t\t\t$linkName = ( string ) $lang->linkName;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->m_languages [$linkID] = $linkName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$langKes = array_keys ( $this->m_languages );\r\n\t\t\t$this->m_languageDefault = $langKes [0];\r\n\t\t}\r\n\t\t\r\n\t\t// load templates\r\n\t\tif (isset ( $config->templates ))\r\n\t\t{\r\n\t\t\t$templates = ( array ) $config->templates;\r\n\t\t\t$langsA = $templates ['template'];\r\n\t\t\t\r\n\t\t\tif (! is_array ( $langsA ))\r\n\t\t\t{\r\n\t\t\t\t$this->m_templates = null;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->m_templates = array ();\r\n\t\t\t\t\r\n\t\t\t\tforeach ( $langsA as $lang )\r\n\t\t\t\t{\r\n\t\t\t\t\t$fileName = ( string ) $lang;\r\n\t\t\t\t\tarray_push ( $this->m_templates, $fileName );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// load siteURL\r\n\t\tif (isset ( $config->url ))\r\n\t\t{\r\n\t\t\t$this->m_URL = ( string ) $config->url;\r\n\t\t\t$this->m_URL = trim ( $this->m_URL );\r\n\t\t}\r\n\t\t\r\n\t\t// load siteURL\r\n\t\tif (isset ( $config->maxImageWidth ))\r\n\t\t{\r\n\t\t\t$this->m_maxImageWidth = ( int ) $config->maxImageWidth;\r\n\t\t}\r\n\t\t\r\n\t\t// secuirity-file root\r\n\t\tif (isset ( $config->securFolder ))\r\n\t\t{\r\n\t\t\t$this->m_sfRoot = ( string ) $config->securFolder;\r\n\t\t\t$this->m_sfRoot = trim ( $this->m_sfRoot );\r\n\t\t}\r\n\t\t\r\n\t\t// boxes\r\n\t\tif (isset ( $config->boxes ))\r\n\t\t{\r\n\t\t\t$boxes = ( array ) $config->boxes;\r\n\t\t\t$boxes = $boxes ['box'];\r\n\t\t\tif (! is_array ( $boxes ))\r\n\t\t\t{\r\n\t\t\t\t$this->m_boxes = array ($boxes );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->m_boxes = $boxes;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// product image root\r\n\t\tif (isset ( $config->productImageRoot ))\r\n\t\t{\r\n\t\t\t$str = ( string ) $config->productImageRoot;\r\n\t\t\t$this->m_prodImagRoot = trim ( $str );\r\n\t\t}\r\n\t\t\r\n\t\t// product image root\r\n\t\tif (isset ( $config->galleryRoot ))\r\n\t\t{\r\n\t\t\t$str = ( string ) $config->galleryRoot;\r\n\t\t\t$this->m_galleryImageRoot = trim ( $str );\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public function init() {\n\t\tparent::init();\n\t\t//Yii::app()->request->setHostInfo('http://love.allwomenstalk.com');\n\t\t/*echo 'BaseUrl'; var_dump(Yii::app()->request->getBaseUrl());\n\t\techo 'HostInfo'; var_dump(Yii::app()->request->getHostInfo());\n\t\techo 'PathInfo'; var_dump(Yii::app()->request->getPathInfo());\n\t\techo 'QueryString'; var_dump(Yii::app()->request->getQueryString());\n\t\techo 'RequestUri'; var_dump(Yii::app()->request->getRequestUri());\n\t\techo 'ScriptFile'; var_dump(Yii::app()->request->getScriptFile());\n\t\techo 'ScriptUrl'; var_dump(Yii::app()->request->getScriptUrl());\n\t\techo 'ServerName'; var_dump(Yii::app()->request->getServerName());*/\n\t\t\n\t\tYii::app()->params['site'] = $this->_currentSite = $this->detectSite();\n\t}", "public function loadFile($file)\n\t{\n\t\t$file = str_replace('..', '', $file);\n\t\t$syspath = SYSPATH.'ee/EllisLab/ExpressionEngine/Config/'.$file.'.php';\n\t\t$userpath = SYSPATH.'user/config/'.$file.'.php';\n\n\t\t$out = array();\n\n\t\tif (file_exists($syspath))\n\t\t{\n\t\t\t$out = include $syspath;\n\t\t}\n\n\t\tif (file_exists($userpath))\n\t\t{\n\t\t\t$userout = include $userpath;\n\t\t\t$out = array_replace_recursive($out, $userout);\n\t\t}\n\n\t\treturn $out;\n\t}", "public function loadConfig($data);", "function getParam($str)\r\n\t{\r\n\t\t$pos =strpos($str, $this->_BASEURL);\r\n\r\n\t\tif ($pos < 0)\r\n\t\t\treturn null;\r\n\r\n\t\t$temp = explode($this->_BASEURL.\"index.php\", $str);\r\n\r\n\t\tif (count($temp) == 2)\r\n\t\t{\r\n\t\t\t$p = $temp[1];\r\n\r\n\t\t\t//file check\r\n\t\t\tif (strpos(strtolower($p), \".\") > -1)\r\n\t\t\t\treturn null;\r\n\r\n\t\t\tif (strlen($p) == 0)\r\n\t\t\t\treturn \"Default\";\r\n\r\n\t\t\t$p = substr($p, -1,1) == \"/\" ? substr($p, 0, -1):$p;\r\n\t\t\t\r\n\t\t\treturn substr($p, 0, 1) == \"/\" ? substr($p, 1):$p;\r\n\t\t}\r\n\r\n\t}", "function loadIniFiles()\n {\n \n $ff = HTML_FlexyFramework::get();\n $ff->generateDataobjectsCache(true);\n $this->dburl = parse_url($ff->database);\n \n \n $dbini = 'ini_'. basename($this->dburl['path']);\n \n \n $iniCache = isset( $ff->PDO_DataObject) ? $ff->PDO_DataObject['schema_location'] : $ff->DB_DataObject[$dbini];\n if (!file_exists($iniCache)) {\n return;\n }\n \n $this->schema = parse_ini_file($iniCache, true);\n $this->links = parse_ini_file(preg_replace('/\\.ini$/', '.links.ini', $iniCache), true);\n \n\n \n }", "protected function Init() \n {\n // Load the APP config.php and add the defined vars\n $this->load($this->files['app']['file_path'], 'app');\n \n // Load the core.config.php and add the defined vars\n $this->load($this->files['core']['file_path'], 'core', 'config');\n \n // Load the database.config.php and add the defined vars\n $this->load($this->files['db']['file_path'], 'db', 'DB_configs');\n }", "private function loadIni(){\n if(file_exists($this->fullPath.$this->iniFile)) {\n $arCfg = parse_ini_file($this->fullPath.$this->iniFile);\n $this->loadConfigs($arCfg);\n }\n }", "function loadFile($src){\n if(file_exists($src) && is_readable($src))\n {\n include $src;\n if(isset($CONFIG)) $this->add($CONFIG);\n }\n }", "function public_load() {\n\n\t}", "private function _load_assets()\r\n {\r\n //set default page title\r\n $this->data['title'] = \"\";\r\n\r\n $this->data['base'] = $this->config->item(\"base_url\");\r\n \r\n if(count($this->config->item('assets')) > 1):\r\n foreach($this->config->item('assets') as $asset_name => $location): \r\n $this->data[$asset_name] = base_url($location);\r\n endforeach;\r\n endif;\r\n\r\n //load Simer variables\r\n if($user_details = $this->session->userdata('user_details')):\r\n\r\n //then user is logged in\r\n $this->user_details = $user_details;\r\n $this->user_id = $user_details->id;\r\n $this->data['user_details'] =$user_details;//setup user details globally for views\r\n $this->data['custom_nav'] = $this->build_nav();\r\n\r\n endif;\r\n }", "function module_scriptLoad($val, $data)\n{\n\tif (!$data) return;\n\tsetCacheData(\"scriptLoad\", $data);\n\t\n\t$store\t= config::get(':scripts', array());\n\tif ($store[$data]) return;\n\n\t$store[$data] = $data;\n\tconfig::set(':scripts', $store);\n}", "protected function getParameterFileContent() {\n $files = $this->getParameterFiles();\n foreach ($files as $parameter_file) {\n if (file_exists($this->basePath . $parameter_file)) {\n $this->event->getIO()->write(\"Create the settings file from the $parameter_file file\");\n return file_get_contents($this->basePath . $parameter_file);\n }\n else {\n $this->event->getIO()->write(\"Parameter file $parameter_file doesn't exists\" . (($next = next($files)) ? ', trying with ' . $next : ''));\n }\n }\n return null;\n }", "abstract public function load($filename);", "public abstract function load();", "abstract public function load();", "abstract public function load();", "function load_config() {\n $config_file = \"scripts/i-erp.conf\";\n $comment = \"#\";\n // open the config file\n $fp = fopen($config_file, \"r\");\n if (!$fp) {\n echo(\"Failed to open file\");\n return 0;\n }\n // loop through the file lines and pull out variables\n while (!feof($fp)) {\n $line = trim(fgets($fp));\n if ($line && $line[0] != $comment) {\n $pieces = explode(\"=\", $line);\n $option = trim($pieces[0]);\n $value = trim($pieces[1]);\n $config_values[$option] = $value;\n }\n }\n fclose($fp);\n $_SESSION['install_lib'] = $config_values['install_lib'];\n $_SESSION['server'] = $config_values['server'];\n $_SESSION['timeout'] = $config_values['timeout'];\n $_SESSION['appname'] = $config_values['appname'];\n $_SESSION['h_logo'] = $config_values['h_logo'];\n $_SESSION['si_logo'] = $config_values['si_logo'];\n $_SESSION['copyr'] = $config_values['copyr'];\n return 1;\n}", "private function _loadPageSettings(){\r\n\r\n $uri = $this->_getContentURI();\r\n $settings = ROOT.DS.'site'.DS.'content'.DS.$uri.DS.'settings.json';\r\n\r\n if(file_exists($settings)){\r\n $this->pageSettings = json_decode(file_get_contents($settings));\r\n } else {\r\n $page_dir = ROOT.DS.'site'.DS.'content';\r\n foreach(explode('/', $uri) as $dir){\r\n $page_dir .= DS.$dir;\r\n if(!file_exists($page_dir)){\r\n mkdir($page_dir);\r\n }\r\n }\r\n $pageSettings = new stdClass();\r\n $pageSettings->page_title = '';\r\n $pageSettings->page_script = '';\r\n file_put_contents($settings, json_encode($pageSettings));\r\n }\r\n\r\n }", "private static function load_settings($settings_file) {\n self::$settings = spyc_load_file($settings_file);\n }", "public static function __in_load($params)\n\t{\n\t\n\t\t$tmp_views_array = array();\n\t\n\t\t// need load specific libraries\n\t\tif(isset($params['help'])){\n foreach($params['help'] as $needed){\n\t\t\t\tself::loadHelper($needed, FALSE);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($params['core'])){\n\t\t\tforeach($params['core'] as $needed){\n\t\t\t\tself::initCoreComponent($needed);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isset($params['libs'])){\n\t\t\tforeach($params['libs'] as $needed){\n \t\tself::loadLibrary($needed, TRUE);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($params['models'])){\n\t\t\n\t\t\tif(!self::$_db){\n\t\t\t\tSHIN_Core::show_error('You are try to load some model without database layer. Pls add in your required core components <b>SHIN_Database</b>');\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tforeach($params['models'] as $needed){\n\t\t\t\tself::loadModel($needed, TRUE);\n\t\t\t}\n\t\t}\n\t\t\t\t\t\n\t\tif(isset($params['views'])){\n\t\t\tforeach($params['views'] as $needed){\n\t\t\t\tself::loadModel($needed, TRUE);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isset($params['workers'])){\n\t\t\tforeach($params['workers'] as $needed){\n \t\tself::loadWorker($needed, TRUE);\n\t\t\t}\n\t\t}\n }", "public function readFileFromParam() {\n\t\tglobal $argv;\n\t\t$myArr = array();\n $myString = \"\";\n $len = 0;\n \n\t\tif (($file = fopen($argv[1], \"r\") or exit (\"Sorry - file not found.\")) != FALSE) {\n\t\t\twhile (($data = fgets($file)) != FALSE) {\n\t\t\t $myArr[$len] = $data;\n $len++; \n\t\t\t}\n\t\t}\t\n\t\tfclose($file);\n \n // make sure that we have input that we are expecting \n if ($len >= 2) {\n $this->width = intval($myArr[0]);\n for ($i = 1; $i < $len; $i++) {\n $myString.=$myArr[$i];\n }\n $this->originalArray = explode(\" \", $myString);\n } else die(\"Bad input - exiting.\");\n\n \n\t}", "function get_settings($in)\n{\n if (is_file($in))\n return include $in;\n return false;\n}", "function loadContent($where, $default='') {\n // Sanitize it for security reasons\n $content = filter_input(INPUT_GET, $where, FILTER_SANITIZE_STRING);\n $default = filter_var($default, FILTER_SANITIZE_STRING);\n // If there wasn't anything on the url, then use the default\n $content = (empty($content)) ? $default : $content;\n // If you found have content, then get it and pass it back\n if ($content) {\n\t// sanitize the data to prevent hacking.\n\t$html = include 'content/'.$content.'.php';\n\treturn $html;\n }\n}", "private function LoadConfigFile(){\n $a = file_get_contents($this->RootDIR . 'config/main.json');\n $this->Config = json_decode($a, true);\n }", "private function readKioskParamsIni() {\n $content = Storage::get('parameters.ini');\n $params = parse_ini_string($content, true);\n return $params;\n }", "function _load_oldway_params(&$app, &$c) {\n\t\t$app_view_http_request_uri = $c->param('app.view_http.request.uri');\n\t\t$uri = $app_view_http_request_uri;\n\t\t$params = '';\n\t\tif (strpos($app_view_http_request_uri, '?') !== false)\n\t\t\tlist($uri, $params) = explode('?', $app_view_http_request_uri, 2);\n\n\t\t$uri = preg_replace('/(\\{([^}]+)})/i', '<?php echo($params[\\'$2\\'])?>', $uri);\n\t\t$url = $uri;\n\t\tif ($params) {\n\t\t\t$params = preg_replace('/(\\{([^}]+)})/i', '<?php echo(urlencode($params[\\'$2\\']))?>', $params);\n\t\t\t$url .= '?' . $params;\n\t\t}\n\n\t\t$c->param('app.view.template.inline', $url);\n\n\t\t$app_view_response_output_aux = $c->param('app.view.response.output');\n\t\t$c->param_delete('app.view.response.output');\n\t\t$app->forward('/app::view::render_php/', $c);\n\n\t\t$c->param('app.view_http.request.uri', $c->param('app.view.response.output'));\n\n\t\t$c->param_delete('app.view.template.inline');\n\t\tif (is_null($app_view_response_output_aux))\n\t\t\t$c->param_delete('app.view.response.output');\n\t\telse\n\t\t\t$c->param('app.view.response.output', $app_view_response_output_aux);\n\t}", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "private function getDataByGet($params){\n \tforeach($params as $key=>$val){\n \t\t$s .= \"&\".$key.\"=\".$val;\n \t}\n \t$val = file_get_contents($this->url.\"?\".substr($s,1));\n \treturn $val;\n }", "private static function loadUrl(){\n\n $uri = $_SERVER['REQUEST_URI'];\n\n if (ENCRYPTURL == '1')\n $uri = CR::decrypt($uri);\n\n BASEDIR == '/' || $uri = str_replace(BASEDIR,'', $uri);\n $uri = explode('/', $uri);\n\n array_walk($uri, function(&$item){\n strpos($item, '?') == false ||\n $item = substr($item, 0, strpos($item, '?'));\n });\n\n return $uri;\n }", "public static function load($file, $vars = null)\n\t{\n\t\t$base_dir = dirname(__DIR__);\n\t\t$path = $base_dir.'/'.$file.'.php';\n\t\tif(!is_file($path)) die(\"$path does not exist.\");\n\t\tob_start();\n\t\tif($vars) extract($vars);\n\t\tinclude($path);\n\t\treturn ob_get_clean();\t\n\t}", "function _load($name, $_page=[]){\n if(strpos($name, '.php') === false)\n\t include_once(ROOT.\"/html/$name/.index.php\");\n else\n include_once(ROOT.\"/html/$name\");\n}", "function loadDefaultSite($content_pack, $load_default = 1) {\n \n $content_siteFileObj = OBJECTS_FOLDER . \"/site/site.obj\";\n $content_site = file_load_object($content_siteFileObj);\n $content_pack[\"site\"] = $content_site;\n \n $default=$content_site->getDefault();\n \n \n if ($load_default == 1 and !isset($content_pack[\"page\"])) {\n $content_pack[\"page\"] = $content_site->getContent();\n }\n return $content_pack;\n}", "public function web_load(){\n\t\t$this->common();\n\t}", "function load_default_vars()\r\n {\r\n parent::load_default_vars();\r\n $this->vars['URL_REPOS'] = '//your-private-repos-server/repos/'; // Unnecessary\r\n $this->vars['URL_RSC'] = $this->vars['URL_ASSETS'] . $this->manifest['activity_current'] . '/';\r\n }", "function load() {\n\n\t}", "abstract public function load($file, $context);", "private function readCurrentSite() {\n\t\t\tif ( isset($_GET['s']) ) {\n\t\t\t\t$this->site = mysql_real_escape_string($_GET['s']);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->site = 'start';\n\t\t\t}\n\n\t\t\t// get current page and extend content template if it's set\n\t\t\tif ( isset($_GET['p']) ) {\n\t\t\t\t$this->page = '_'.mysql_real_escape_string($_GET['p']);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->page = '';\n\t\t\t}\n\t\t\t\n\t\t\t$this->contentTemplate = new Template();\n\t\t\t$this->contentTemplate->readTpl($this->site.$this->page);\n\t\t\t$this->registerTemplate = new Template();\n\t\t\t$this->registerTemplate->readTpl('register');\n\t\t\t$this->registerTemplate->tplReplace('site', $this->site);\n\n\t\t\t// handle register popup\n\t\t\tinclude('register.inc.php');\n\t\t}", "function pi_loadLL($file=null)\t{\n\t\tif (!$this->LOCAL_LANG_loaded && $this->scriptRelPath &&!$file)\t{\n\t\t\t$basePath = PATH_site . t3lib_extMgm::siteRelPath($this->extKey).dirname($this->scriptRelPath).'/locallang.php';\n\t\t\tif (@is_file($basePath))\t{\n\t\t\t\tinclude('./'.$basePath);\n\t\t\t\t$this->LOCAL_LANG = $LOCAL_LANG;\n\t\t\t\tif (is_array($this->conf['_LOCAL_LANG.']))\t{\n\t\t\t\t\treset($this->conf['_LOCAL_LANG.']);\n\t\t\t\t\twhile(list($k,$lA)=each($this->conf['_LOCAL_LANG.']))\t{\n\t\t\t\t\t\tif (is_array($lA))\t{\n\t\t\t\t\t\t\t$k = substr($k,0,-1);\n\t\t\t\t\t\t\t$this->LOCAL_LANG[$k] = t3lib_div::array_merge_recursive_overrule(is_array($this->LOCAL_LANG[$k])?$this->LOCAL_LANG[$k]:array(), $lA);\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}else if(!$this->LOCAL_LANG_loaded && $file){\n\t\t\tif (@is_file($file))\t{\n\t\t\t\tinclude($file);\n\t\t\t\t$this->LOCAL_LANG = $LOCAL_LANG;\n\t\t\t\tif (is_array($this->conf['_LOCAL_LANG.']))\t{\n\t\t\t\t\treset($this->conf['_LOCAL_LANG.']);\n\t\t\t\t\twhile(list($k,$lA)=each($this->conf['_LOCAL_LANG.']))\t{\n\t\t\t\t\t\tif (is_array($lA))\t{\n\t\t\t\t\t\t\t$k = substr($k,0,-1);\n\t\t\t\t\t\t\t$this->LOCAL_LANG[$k] = t3lib_div::array_merge_recursive_overrule(is_array($this->LOCAL_LANG[$k])?$this->LOCAL_LANG[$k]:array(), $lA);\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\t$this->LOCAL_LANG_loaded = 1;\n\t}" ]
[ "0.6018682", "0.5853855", "0.58028007", "0.5766411", "0.57496685", "0.5647814", "0.5628877", "0.56158787", "0.5611297", "0.55761707", "0.55761707", "0.55761707", "0.5556815", "0.5546447", "0.554393", "0.55390316", "0.5538574", "0.5516352", "0.5479706", "0.54572374", "0.5442759", "0.54415786", "0.5438607", "0.54293984", "0.540252", "0.540252", "0.5402337", "0.5401385", "0.53983945", "0.5387667", "0.5384231", "0.53565377", "0.53451073", "0.5332252", "0.53189206", "0.53134304", "0.530837", "0.52857006", "0.5282742", "0.5282742", "0.5282742", "0.5282742", "0.5280711", "0.5270387", "0.5266253", "0.52538085", "0.52538085", "0.5216625", "0.5215117", "0.51992655", "0.5159281", "0.5157563", "0.51567376", "0.5153609", "0.5143598", "0.5142307", "0.51393324", "0.512637", "0.51246446", "0.5123303", "0.5122232", "0.5120777", "0.51122975", "0.50934505", "0.50932413", "0.50932413", "0.5093092", "0.5082951", "0.5082057", "0.5076454", "0.50729364", "0.5071261", "0.50696397", "0.5068755", "0.5065026", "0.5061643", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.5043947", "0.50372833", "0.50359315", "0.50277567", "0.5020319", "0.5018577", "0.50144726", "0.5012256", "0.5010047", "0.5008911", "0.50070345", "0.50065523" ]
0.54774815
19
loads scripts URL according to the current status if status defined and active
private function loadURLs() { $status = $this->statusIsAvailable($this->getStatus()) ? $this->getStatus() : 'test'; foreach ($this->_url as $scriptname => $modes) { $this->url[$scriptname] = $modes[$status]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadURLs()\r\n\t{\r\n\t\t$status = $this->statusIsAvailable($this->getStatus()) ? $this->getStatus() : 'test';\r\n\r\n\t\tforeach ($this->url as $scriptname => $modes)\r\n\t\t\t$this->url_script[$scriptname] = $modes[$status];\r\n\t}", "public function setIsLoadScript($status)\n {\n $this->isLoadScript = $status;\n }", "protected function determineScriptUrl() {}", "protected function determineScriptUrl() {}", "protected function determineScriptUrl() {}", "private function fn_load_scripts() {\n\n\t\t/**\n\t\t * Load Common CSS and JS for a blank Page\n\t\t */\n\n\t\t$fixed_version = $this->fixed_version;\n\t\t$common_css_version = '0.3';\n\t\t$common_js_version = '0.1';\n\t\t$custom_css_version = '0.4';\n\t\t$custom_js_version = '0.4';\n\n\t\t$registered_styles = $this->registered_css;\n\t\t$registered_scripts = $this->registered_js;\n\n\t\t/**\n\t\t * Load CSS--------------------------------------------------------------\n\t\t */\n\n /** Load Google Fonts */\n\t\t$this->google_fonts['google_opensans'] = $registered_styles['google_opensans'];\n\n\t\t/** Load CSS Assets @todo Move the components in their containers */\n\t\t\n\t\t$this->css_assets['bootstrap'] = $registered_styles['bootstrap'].\"?ver=\".$fixed_version;\n\t\t$this->css_assets['fontawesome'] = $registered_styles['fontawesome'].\"?ver=\".$fixed_version;\n\t\t\n\t\t/**\n\t\t * Load JS--------------------------------------------------------------\n\t\t */\n\t\t\n\t\t/** Load footer js **/\n\t\t$this->footer_js['jquery'] = $registered_scripts['jquery'].\"?ver=\".$fixed_version;\t\t\n\t\t$this->footer_js['jquery-ui'] = $registered_scripts['jquery-ui'].\"?ver=\".$fixed_version;\n\n\t\t$this->footer_js['bootstrap'] = $registered_scripts['bootstrap'].\"?ver=\".$fixed_version;\n\t\t/**let other controllers load their own css/js files **/\n\t}", "private function loadScripts() {\n\t\tif(isset($this->scripts) && $this->scripts != \"\") {\n\t\t\tforeach (explode(\",\", $this->scripts) as $script) {\n\t\t\t\tOCP\\Util::addscript('ocDashboard', 'widgets/'.$this->id.'/'.$script);\n\t\t\t}\n\t\t}\n\t}", "protected function initScripts() {\n\t\t$scripts = array();\n\t\t\n\t\tif(isset($this->config['scripts']['script'])) {\n\t\t\tforeach($this->config['scripts']['script'] as $moduleScripts) {\n\t\t\t\t$scripts[] = $this->layout->baseUrl('scripts/' . $moduleScripts);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(isset($this->config['scripts'][$this->request->getControllerName()])) {\n\t\t\tforeach($this->config['scripts'][$this->request->getControllerName()] as $action => $internalScripts) {\n\t\t\t\t\n\t\t\t\tif(is_array($internalScripts) && $action == 'script') {\n\t\t\t\t\tforeach($internalScripts as $sc) {\n\t\t\t\t\t\tif(preg_match(\"/http:/i\", $sc)) {\n\t\t\t\t\t\t\t$scripts[] = $sc;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$scripts[] = $this->layout->baseUrl('scripts/' . $sc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if(is_array($internalScripts) && $action == $this->request->getActionName()) {\n\t\t\t\t\tforeach($internalScripts as $sc) {\n\t\t\t\t\t\tif(preg_match(\"/http:/i\", $sc)) {\n\t\t\t\t\t\t\t$scripts[] = $sc;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$scripts[] = $this->layout->baseUrl('scripts/' . $sc);\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\t$this->layout->setScript($scripts);\n\t}", "public function loadScripts() {\n $graphcss = $this->getProperty('graphcss');\n $customcss = $this->getProperty('customcss');\n $loadjquery = $this->getProperty('loadjquery');\n\n $cssUrl = $this->sekug->config['cssUrl'].'web/';\n $jsUrl = $this->sekug->config['jsUrl'].'web/';\n\n if($loadjquery == 1){\n $this->modx->regClientStartupScript($jsUrl.'libs/'.$this->sekug->config['jqueryFile']);\n }\n if($customcss>''){\n $this->modx->regClientCSS($this->modx->getOption('assets_url').$customcss);\n } else {\n $this->modx->regClientCSS($cssUrl.'gallery.structure.css');\n }\n if($graphcss>''){\n $this->modx->regClientCSS($this->modx->getOption('assets_url').$graphcss);\n } else {\n $this->modx->regClientCSS($cssUrl.'directory.graph.css');\n }\n }", "protected function determineScriptUrl()\n {\n if ($routePath = GeneralUtility::_GP('route')) {\n $router = GeneralUtility::makeInstance(Router::class);\n $route = $router->match($routePath);\n $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);\n $this->thisScript = (string)$uriBuilder->buildUriFromRoute($route->getOption('_identifier'));\n } elseif ($moduleName = GeneralUtility::_GP('M')) {\n $this->thisScript = BackendUtility::getModuleUrl($moduleName);\n } else {\n $this->thisScript = GeneralUtility::getIndpEnv('SCRIPT_NAME');\n }\n }", "protected function determineScriptUrl()\n {\n if ($routePath = GeneralUtility::_GP('route')) {\n $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);\n $this->thisScript = (string)$uriBuilder->buildUriFromRoutePath($routePath);\n } else {\n $this->thisScript = GeneralUtility::getIndpEnv('SCRIPT_NAME');\n }\n }", "protected function load_script($script_name = null)\n {\n if ($this->script_name !== null) {\n return 0;\n }\n\n $list = $this->list_scripts();\n $master = $this->rc->config->get('managesieve_kolab_master');\n $included = array();\n\n $this->script_name = false;\n\n // first try the active script(s)...\n if (!empty($this->active)) {\n // Note: there can be more than one active script on KEP:14-enabled server\n foreach ($this->active as $script) {\n if ($this->sieve->load($script)) {\n foreach ($this->sieve->script->as_array() as $rule) {\n if (!empty($rule['actions'])) {\n if ($rule['actions'][0]['type'] == 'vacation') {\n $this->script_name = $script;\n return 0;\n }\n else if (empty($master) && $rule['actions'][0]['type'] == 'include') {\n $included[] = $rule['actions'][0]['target'];\n }\n }\n }\n }\n }\n\n // ...else try scripts included in active script (not for KEP:14)\n foreach ($included as $script) {\n if ($this->sieve->load($script)) {\n foreach ($this->sieve->script->as_array() as $rule) {\n if (!empty($rule['actions']) && $rule['actions'][0]['type'] == 'vacation') {\n $this->script_name = $script;\n return 0;\n }\n }\n }\n }\n }\n\n // try all other scripts\n if (!empty($list)) {\n // else try included scripts\n foreach (array_diff($list, $included, $this->active) as $script) {\n if ($this->sieve->load($script)) {\n foreach ($this->sieve->script->as_array() as $rule) {\n if (!empty($rule['actions']) && $rule['actions'][0]['type'] == 'vacation') {\n $this->script_name = $script;\n return 0;\n }\n }\n }\n }\n\n // none of the scripts contains existing vacation rule\n // use any (first) active or just existing script (in that order)\n if (!empty($this->active)) {\n $this->sieve->load($this->script_name = $this->active[0]);\n }\n else {\n $this->sieve->load($this->script_name = $list[0]);\n }\n }\n\n return $this->sieve->error();\n }", "function load_scripts($scripts_to_load)\r\n\t{\r\n\t\tglobal $available_scripts;\r\n\r\n\t\t$scripts_to_load = array_unique($scripts_to_load);\r\n\r\n\t\tforeach($scripts_to_load as $script_key => $script_to_load)\r\n\t\t{\r\n\t\t\tif (is_array($available_scripts[$script_to_load]))\r\n\t\t\t{\r\n\t\t\t\tforeach ($available_scripts[$script_to_load] as $child_key => $child_to_load)\r\n\t\t\t\t{\r\n\t\t\t\t\tsubstr($available_scripts[$script_to_load][$child_key], 0, 4) == 'http' ? $root_path = '' : $root_path = ROOT_PATH;\r\n\t\t\t\t\techo '<script type=\"text/javascript\" src=\"' . $root_path . $available_scripts[$script_to_load][$child_key] . '\"></script>' . \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsubstr($available_scripts[$script_to_load], 0, 4) == 'http' ? $root_path = '' : $root_path = ROOT_PATH;\r\n\t\t\t\techo '<script type=\"text/javascript\" src=\"' . $root_path . $available_scripts[$script_to_load] . '\"></script>' . \"\\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "public function scripts()\n {\n foreach ($this->controller->scripts as $value)\n echo \"\\t<script src='\" . DOMAIN . $value . \"' ></script>\\n\";\n echo \"</body>\\n</html>\";\n }", "function TS_VCSC_DetermineLoadingStatus() {\r\n\t\t\t// Retrieve Current Browser URL\r\n\t\t\t$TS_VCSC_Extension_Browser\t\t\t\t\t\t\t= 'http://';\r\n\t\t\tif (isset($_SERVER['SERVER_NAME'])) {\r\n\t\t\t\t$TS_VCSC_Extension_Browser\t\t\t\t\t\t.= $_SERVER['SERVER_NAME'];\r\n\t\t\t} else if (isset($_SERVER['HTTP_HOST'])) {\r\n\t\t\t\t$TS_VCSC_Extension_Browser\t\t\t\t\t\t.= $_SERVER['HTTP_HOST'];\r\n\t\t\t}\t\t\t\r\n\t\t\tif (isset($_SERVER['REQUEST_URI'])) {\r\n\t\t\t\t$TS_VCSC_Extension_Browser \t\t\t\t\t\t.= $_SERVER['REQUEST_URI'];\r\n\t\t\t}\r\n\t\t\t// Check for Plugin Specific Pages\r\n\t\t\t$this->TS_VCSC_PluginFontSummary\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Extender') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginFontSummary\t\t\t\t= \"true\";\r\n\t\t\t} else if (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_System') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginFontSummary\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_GoggleFontSummary\t\t\t\t\t= \"false\";\r\n\t\t\tif ((strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_GoogleFonts') !== false) || (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_System') !== false)) {\r\n\t\t\t\t$this->TS_VCSC_GoggleFontSummary\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginSettingsTransfer\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Transfers') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginSettingsTransfer\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginEnlighterTheme\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_EnlighterJS') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginEnlighterTheme\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginDownTimeManager\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Downtime') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginDownTimeManager\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginIconFontImport\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Uploader') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginIconFontImport\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginUsageCompiler\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Usage') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginUsageCompiler\t\t\t\t= \"true\";\r\n\t\t\t}\r\n $this->TS_VCSC_PluginIconGenerator = \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Generator') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginIconGenerator\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_Icons_Compliant_Loading\t\t\t\t= \"false\";\r\n\t\t\tif ((strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Previews') !== false) || (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Generator') !== false)) {\r\n\t\t\t\t$this->TS_VCSC_Icons_Compliant_Loading\t\t\t= \"true\";\r\n\t\t\t}\r\n // Check for Composium Custom Post Types\r\n $this->TS_VCSC_CustomPostTypesPresent = \"false\";\r\n if (strpos($TS_VCSC_Extension_Browser, '?post_type=ts_timeline') !== false) {\r\n $this->TS_VCSC_CustomPostTypesPresent = \"true\";\r\n }\r\n\t\t\t// Check for WP Bakery Page Builder Roles Manager\t\t\t\r\n\t\t\t$this->TS_VCSC_Extension_RoleManager\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=vc-roles') !== false) {\r\n\t\t\t\t$this->TS_VCSC_Extension_RoleManager\t\t\t= \"true\";\t\t\r\n\t\t\t}\r\n\t\t\t// Check for Elements for Users - Addon for WP Bakery Page Builder\r\n\t\t\t$this->TS_VCSC_Extension_ElementsUser\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=mcw_elements_for_users') !== false) {\r\n\t\t\t\t$this->TS_VCSC_Extension_ElementsUser\t\t\t= \"true\";\t\t\r\n\t\t\t}\r\n\t\t\t// Check for Toolsets Template Editor\r\n\t\t\t$this->TS_VCSC_Extension_ToolsetsUser\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=ct-editor') !== false) {\r\n\t\t\t\t$this->TS_VCSC_Extension_ToolsetsUser\t\t\t= \"true\";\t\t\r\n\t\t\t}\r\n\t\t\t// Determine if WP Bakery Page Builder Form Request\r\n\t\t\tif (array_key_exists('action', $_REQUEST)) {\r\n\t\t\t\t$TS_VCSC_Extension_Request\t\t\t\t\t\t= ($_REQUEST[\"action\"] != \"vc_edit_form\" ? \"false\" : \"true\");\r\n\t\t\t} else {\r\n\t\t\t\t$TS_VCSC_Extension_Request\t\t\t\t\t\t= \"false\";\r\n\t\t\t}\r\n\t\t\t// Determine Standard Page Editor\r\n\t\t\t$this->TS_VCSC_VCStandardEditMode\t\t\t\t\t= (TS_VCSC_IsEditPagePost() == 1 ? \"true\" : \"false\");\r\n\t\t\t// Determine Frontend Editor Status\r\n\t\t\tif (function_exists('vc_is_inline')){\r\n\t\t\t\tif (vc_is_inline() == true) {\r\n\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t\t\t= \"true\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ((vc_is_inline() == NULL) || (vc_is_inline() == '')) {\r\n\t\t\t\t\t\tif (TS_VCSC_CheckFrontEndEditor() == true) {\r\n\t\t\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t= \"true\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t= \"false\";\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t\t= \"false\";\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$this->TS_VCSC_VCFrontEditMode \t\t\t\t\t= \"false\";\r\n\t\t\t}\r\n\t\t\t// Check AJAX Request Status\r\n\t\t\t$this->TS_VCSC_PluginAJAX\t\t\t\t\t\t\t= ($this->TS_VCSC_RequestIsFrontendAJAX() == 1 ? \"true\" : \"false\");\r\n\t\t\t// Set Global Load Status\r\n\t\t\t$this->TS_VCSC_VisualComposer_Loading\t\t\t\t= \"false\"; \r\n $this->TS_VCSC_Gutenberg_Classic = (TS_VCSC_CheckGBClassicEditor() == true ? \"true\" : \"false\");\r\n\t\t\tif ((defined('WPB_VC_VERSION')) && (($TS_VCSC_Extension_Request == \"true\") || ($this->TS_VCSC_VCFrontEditMode == \"true\") || ($this->TS_VCSC_VCStandardEditMode == \"true\") || ($this->TS_VCSC_PluginAJAX == \"true\")) || ($this->TS_VCSC_Extension_ToolsetsUser == \"true\")) {\r\n $this->TS_VCSC_VisualComposer_Loading = \"true\";\r\n\t\t\t}\r\n // Check for In-Compatible WP Bakery WEBSITE Builder\r\n $this->TS_VCSC_WebsiteBuilder_Instead = \"false\";\r\n $this->TS_VCSC_WebsiteBuilder_Instead = (TS_VCSC_CheckVCWebsiteEditor() === true ? \"true\" : \"false\");\r\n\t\t\t// Register Global Data/Functions As Needed\r\n\t\t\t$this->TS_VCSC_RegisterGlobalData();\r\n\t\t}", "function getScriptUrl() ;", "function init_scripts() {\n\t\t\t$curpath = str_replace( basename( __FILE__ ), '', realpath( __FILE__ ) );\n\t\t\tif( file_exists( $curpath . '/post-revision-workflow.admin.js' ) )\n\t\t\t\t$script_loc = plugins_url( '/post-revision-workflow.admin.js', __FILE__ );\n\t\t\telseif( file_exists( $curpath . '/post-revision-workflow/post-revision-workflow.admin.js' ) )\n\t\t\t\t$script_loc = plugins_url( '/post-revision-workflow/post-revision-workflow.admin.js', __FILE__ );\n\t\t\tif( !empty( $script_loc ) ) {\n\t\t\t\twp_register_script( 'post-revision-workflow', $script_loc, array( 'post' ), '0.2a', true );\n\t\t\t\twp_enqueue_script( 'post-revision-workflow' );\n\t\t\t\twp_localize_script( 'post-revision-workflow', 'post_revision_workflow', array(\n\t\t\t\t\t'no_notifications'\t=> __( 'No notifications', $this->text_domain ),\n\t\t\t\t\t'draft_notify' \t\t=> __( 'Draft &amp; notify', $this->text_domain ),\n\t\t\t\t\t'publish_notify'\t=> __( 'Publish &amp; notify', $this->text_domain ),\n\t\t\t\t\t'draft_only'\t\t=> __( 'Draft - no notifications', $this->text_domain )\n\t\t\t\t) );\n\t\t\t/*} else {\n\t\t\t\twp_die( 'The post-revision-workflow script could not be located in ' . $curpath . '/post-revision-workflow.admin.js' . ' or ' . $curpath . '/post-revision-workflow/post-revision-workflow.admin.js' );*/\n\t\t\t}\n\t\t}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getStatusUrl()\n {\n return Mage::helper('oro_ajax')->getAjaxStatusUrl($this->_urlParams);\n }", "private function callStatus() {\n try {\n $this->status = $this->client->request('GET', $this->url->full_url, [\n 'allow_redirects' => false\n ]);\n } catch (\\Exception $ex) {\n $this->status = $ex->getResponse();\n }\n }", "function asc_default_scripts( &$scripts ) {\n\tinclude ABSPATH . ASC_CORE . '/version.php'; // include an unmodified $asc_version\n\n\t$develop_src = false !== strpos( $asc_version, '-src' );\n\n\tif ( ! defined( 'SCRIPT_DEBUG' ) ) {\n\t\tdefine( 'SCRIPT_DEBUG', $develop_src );\n\t}\n\n\tif ( ! $guessurl = admin_storefront_url() ) {\n\t\t$guessed_url = true;\n\t\t$guessurl = site_url();\n\t}\n\n\t$scripts->base_url = $guessurl;\n\t$scripts->content_url = defined('ASC_CONTENT_URL')? ASC_CONTENT_URL : '';\n\t$scripts->default_version = PRODUCT_VERSION_NUMBER;\n\t$scripts->default_dirs = array('avactis-system/admin/js/', 'includes/js/');\n\n\t$suffix = SCRIPT_DEBUG ? '' : '.min';\n\t$dev_suffix = $develop_src ? '' : '.min';\n\n\t$scripts->add( 'prototype', '//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1');\n\t$scripts->add( 'scriptaculous-root', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array('prototype'), '1.9.0');\n\t$scripts->add( 'scriptaculous-builder', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array('scriptaculous-root'), '1.9.0');\n\t$scripts->add( 'scriptaculous-dragdrop', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');\n\t$scripts->add( 'scriptaculous-effects', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array('scriptaculous-root'), '1.9.0');\n\t$scripts->add( 'scriptaculous-slider', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array('scriptaculous-effects'), '1.9.0');\n\t$scripts->add( 'scriptaculous-sound', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );\n\t$scripts->add( 'scriptaculous-controls', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array('scriptaculous-root'), '1.9.0');\n\t$scripts->add( 'scriptaculous', false, array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls') );\n\n\t// jQuery\n\t$scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.11.0' );\n\t$scripts->add( 'jquery-core', 'includes/jquery/jquery.js', array(), '1.11.0' );\n\t$scripts->add( 'jquery-migrate', \"includes/jquery/jquery-migrate$suffix.js\", array(), '1.2.1' );\n\n\t// full jQuery UI\n\t$scripts->add( 'jquery-ui-core', 'includes/jquery/ui/jquery.ui.core.min.js', array('jquery'), '1.10.4');\n\t$scripts->add( 'jquery-effects-core', 'includes/jquery/ui/jquery.ui.effect.min.js', array('jquery'), '1.10.4', 1 );\n\n\t$scripts->add( 'jquery-effects-blind', 'includes/jquery/ui/jquery.ui.effect-blind.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-bounce', 'includes/jquery/ui/jquery.ui.effect-bounce.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-clip', 'includes/jquery/ui/jquery.ui.effect-clip.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-drop', 'includes/jquery/ui/jquery.ui.effect-drop.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-explode', 'includes/jquery/ui/jquery.ui.effect-explode.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-fade', 'includes/jquery/ui/jquery.ui.effect-fade.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-fold', 'includes/jquery/ui/jquery.ui.effect-fold.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-highlight', 'includes/jquery/ui/jquery.ui.effect-highlight.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-pulsate', 'includes/jquery/ui/jquery.ui.effect-pulsate.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-scale', 'includes/jquery/ui/jquery.ui.effect-scale.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-shake', 'includes/jquery/ui/jquery.ui.effect-shake.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-slide', 'includes/jquery/ui/jquery.ui.effect-slide.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-effects-transfer', 'includes/jquery/ui/jquery.ui.effect-transfer.min.js', array('jquery-effects-core'), '1.10.4', 1 );\n\n\t$scripts->add( 'jquery-ui-accordion', 'includes/jquery/ui/jquery.ui.accordion.min.js', array('jquery-ui-core', 'jquery-ui-widget'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-autocomplete', 'includes/jquery/ui/jquery.ui.autocomplete.min.js', array('jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position', 'jquery-ui-menu'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-button', 'includes/jquery/ui/jquery.ui.button.min.js', array('jquery-ui-core', 'jquery-ui-widget'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-datepicker', 'includes/jquery/ui/jquery.ui.datepicker.min.js', array('jquery-ui-core'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-dialog', 'includes/jquery/ui/jquery.ui.dialog.min.js', array('jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button', 'jquery-ui-position'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-draggable', 'includes/jquery/ui/jquery.ui.draggable.min.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.10.4');\n\t$scripts->add( 'jquery-ui-droppable', 'includes/jquery/ui/jquery.ui.droppable.min.js', array('jquery-ui-draggable'), '1.10.4');\n\t$scripts->add( 'jquery-ui-menu', 'includes/jquery/ui/jquery.ui.menu.min.js', array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position' ), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-mouse', 'includes/jquery/ui/jquery.ui.mouse.min.js', array('jquery-ui-widget'), '1.10.4');\n\t$scripts->add( 'jquery-ui-position', 'includes/jquery/ui/jquery.ui.position.min.js', array('jquery'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-progressbar', 'includes/jquery/ui/jquery.ui.progressbar.min.js', array('jquery-ui-widget'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-resizable', 'includes/jquery/ui/jquery.ui.resizable.min.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-selectable', 'includes/jquery/ui/jquery.ui.selectable.min.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-slider', 'includes/jquery/ui/jquery.ui.slider.min.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-sortable', 'includes/jquery/ui/jquery.ui.sortable.min.js', array('jquery-ui-core', 'jquery-ui-mouse'), '1.10.4');\n\t$scripts->add( 'jquery-ui-spinner', 'includes/jquery/ui/jquery.ui.spinner.min.js', array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-button' ), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-tabs', 'includes/jquery/ui/jquery.ui.tabs.min.js', array('jquery-ui-core', 'jquery-ui-widget'), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-tooltip', 'includes/jquery/ui/jquery.ui.tooltip.min.js', array( 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position' ), '1.10.4', 1 );\n\t$scripts->add( 'jquery-ui-widget', 'includes/jquery/ui/jquery.ui.widget.min.js', array('jquery'), '1.10.4');\n\n\t// deprecated, not used in core, most functionality is included in jQuery 1.3\n\t$scripts->add( 'jquery-form', \"includes/jquery/jquery.form$suffix.js\", array('jquery'), '3.37.0', 1 );\n\n\t// jQuery plugins\n\t$scripts->add( 'jquery-color', \"includes/jquery/jquery.color.min.js\", array('jquery'), '2.1.1', 1 );\n\t$scripts->add( 'suggest', \"includes/jquery/suggest$suffix.js\", array('jquery'), '1.1-20110113', 1 );\n\t$scripts->add( 'schedule', 'includes/jquery/jquery.schedule.js', array('jquery'), '20m', 1 );\n\t$scripts->add( 'jquery-query', \"includes/jquery/jquery.query.js\", array('jquery'), '2.1.7', 1 );\n\t$scripts->add( 'jquery-serialize-object', \"includes/jquery/jquery.serialize-object.js\", array('jquery'), '0.2', 1 );\n\t$scripts->add( 'jquery-hotkeys', \"includes/jquery/jquery.hotkeys$suffix.js\", array('jquery'), '0.0.2m', 1 );\n\t$scripts->add( 'jquery-table-hotkeys', \"includes/jquery/jquery.table-hotkeys$suffix.js\", array('jquery', 'jquery-hotkeys'), false, 1 );\n\t$scripts->add( 'jquery-touch-punch', \"includes/jquery/jquery.ui.touch-punch.js\", array('jquery-ui-widget', 'jquery-ui-mouse'), '0.2.2', 1 );\n\n/*\t$scripts->add( 'thickbox', \"/wp-includes/js/thickbox/thickbox.js\", array('jquery'), '3.1-20121105', 1 );\n\tdid_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(\n\t\t\t'next' => __('Next &gt;'),\n\t\t\t'prev' => __('&lt; Prev'),\n\t\t\t'image' => __('Image'),\n\t\t\t'of' => __('of'),\n\t\t\t'close' => __('Close'),\n\t\t\t'noiframes' => __('This feature requires inline frames. You have iframes disabled or your browser does not support them.'),\n\t\t\t'loadingAnimation' => includes_url('js/thickbox/loadingAnimation.gif'),\n\t) );*/\n\n\t// common bits for both uploaders\n\t$max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;\n\n\tif ( empty($max_upload_size) )\n\t\t$max_upload_size = __('not configured');\n/*\n\t// error message for both plupload and swfupload\n\t$uploader_l10n = array(\n\t\t'queue_limit_exceeded' => __('You have attempted to queue too many files.'),\n\t\t'file_exceeds_size_limit' => __('%s exceeds the maximum upload size for this site.'),\n\t\t'zero_byte_file' => __('This file is empty. Please try another.'),\n\t\t'invalid_filetype' => __('This file type is not allowed. Please try another.'),\n\t\t'not_an_image' => __('This file is not an image. Please try another.'),\n\t\t'image_memory_exceeded' => __('Memory exceeded. Please try another smaller file.'),\n\t\t'image_dimensions_exceeded' => __('This is larger than the maximum size. Please try another.'),\n\t\t'default_error' => __('An error occurred in the upload. Please try again later.'),\n\t\t'missing_upload_url' => __('There was a configuration error. Please contact the server administrator.'),\n\t\t'upload_limit_exceeded' => __('You may only upload 1 file.'),\n\t\t'http_error' => __('HTTP error.'),\n\t\t'upload_failed' => __('Upload failed.'),\n\t\t'big_upload_failed' => __('Please try uploading this file with the %1$sbrowser uploader%2$s.'),\n\t\t'big_upload_queued' => __('%s exceeds the maximum upload size for the multi-file uploader when used in your browser.'),\n\t\t'io_error' => __('IO error.'),\n\t\t'security_error' => __('Security error.'),\n\t\t'file_cancelled' => __('File canceled.'),\n\t\t'upload_stopped' => __('Upload stopped.'),\n\t\t'dismiss' => __('Dismiss'),\n\t\t'crunching' => __('Crunching&hellip;'),\n\t\t'deleted' => __('moved to the trash.'),\n\t\t'error_uploading' => __('&#8220;%s&#8221; has failed to upload.')\n\t);\n*/\n\n/**\n\tAvactis additional js\n*/\n\t\t$scripts->add( 'bootstrap', 'includes/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '3.2.0');\n\t\t$scripts->add( 'bootstrap-switch', 'includes/bootstrap-switch/js/bootstrap-switch.min.js', array( 'bootstrap' ), false);\n\t\t$scripts->add( 'bootstrap-hover-dropdown', 'includes/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js', array( 'bootstrap' ), false);\n\t\t$scripts->add( 'jquery-ui-custom', 'includes/jquery-ui/jquery-ui-1.10.3.custom.min.js', array( 'jquery' ), '1.10.3');\n\t\t$scripts->add( 'jquery-slimscroll', 'includes/jquery-slimscroll/jquery.slimscroll.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-blockui', 'includes/jquery/jquery.blockui.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-cokie', 'includes/jquery/jquery.cokie.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-uniform', 'includes/uniform/jquery.uniform.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-pulsate', 'includes/jquery/jquery.pulsate.min.js', array( 'jquery' ), false);\n\n\t\t$scripts->add( 'flot', 'includes/flot/jquery.flot.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'flot-categories', 'includes/flot/jquery.flot.categories.min.js', array( 'flot' ), false);\n\t\t$scripts->add( 'flot-resize', 'includes/flot/jquery.flot.resize.min.js', array( 'flot' ), false);\n\n\t\t$scripts->add( 'daterangepicker', 'includes/bootstrap-daterangepicker/daterangepicker.js', array( 'bootstrap' ), false);\n\t\t$scripts->add( 'moment', 'includes/bootstrap-daterangepicker/moment.min.js', array(), false);\n\t\t$scripts->add( 'bootstrap-datepicker', 'includes/bootstrap-datepicker/js/bootstrap-datepicker.js', array( 'bootstrap' ), false);\n $scripts->add( 'bootstrap-datetimepicker','includes/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js',array( 'bootstrap' ), false);\n\t\t$scripts->add( 'bootstrap-dataTables', 'includes/datatables/plugins/bootstrap/dataTables.bootstrap.js', array( 'bootstrap' ), false);\n\t\t$scripts->add( 'bootstrap-toastr', 'includes/bootstrap-toastr/toastr.min.js', array( 'bootstrap' ), false);\n\t\t$scripts->add( 'jquery-dataTables', 'includes/datatables/media/js/jquery.dataTables.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'dataTables', 'includes/datatable.js', array(), false);\n\t\t$scripts->add( 'bootbox', 'includes/bootbox/bootbox.min.js', array(), false);\n\n\t\t$scripts->add( 'fullcalendar', 'includes/fullcalendar/fullcalendar.min.js', array( 'jquery-ui-resizable', 'jquery-ui-draggable' ), false);\n\t\t$scripts->add( 'jquery-easypiechart', 'includes/jquery-easypiechart/jquery.easypiechart.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-sparkline', 'includes/jquery/jquery.sparkline.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-gritter', 'includes/gritter/js/jquery.gritter.min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'jquery-colorbox', 'includes/colorbox/jquery.colorbox-min.js', array( 'jquery' ), false);\n\t\t$scripts->add( 'asc-admin', 'includes/asc-admin.js', array(), false);\n $scripts->add( 'component-pickers', 'includes/components-pickers.js', array(), false);\n\n\t\t$scripts->add( 'ie9-excanvas', 'includes/excanvas.min.js', array(), false);\n\t\t$scripts->add( 'ie9-respond', 'includes/respond.min.js', array(), false);\n\n\t\t$scripts->add( 'jquery.validate', 'includes/jquery-validation/jquery.validate.min.js', array('jquery'), false);\n\t\t$scripts->add( 'validate-additional-methods', 'includes/jquery-validation/additional-methods.min.js', array('jquery'), false);\n\t\t$scripts->add( 'jquery-bootstrap-wizard', 'includes/bootstrap-wizard/jquery.bootstrap.wizard.min.js', array('jquery'), false);\n\t\t$scripts->add( 'jquery-backstretch', 'includes/backstretch/jquery.backstretch.min.js', array('jquery'), false);\n\t\t$scripts->add( 'select2', 'includes/select2/select2.min.js', array(), false);\n\n\t\t$scripts->add( 'jquery-iframe-transport', 'avactis-system/admin/js/jquery.iframe-transport.js', array(), false);\n\t\t$scripts->add( 'sanitize_tags', 'avactis-system/admin/js/sanitize_tags.js', array(), false);\n\t\t$scripts->add( 'admin-index', 'avactis-system/admin/js/index.js', array(), false);\n\t\t$scripts->add( 'admin-tasks', 'avactis-system/admin/js/tasks.js', array(), false);\n\t\t$scripts->add( 'admin-layout', 'avactis-system/admin/js/layout.js', array(), false);\n\t\t$scripts->add( 'form-wizard', 'avactis-system/admin/js/form-wizard.js', array('jquery'), false);\n\t\t$scripts->add( 'admin-login-soft', 'avactis-system/admin/js/login-soft.js', array(), false);\n\n\t\t$scripts->add( 'admin-avactis-main', 'avactis-system/admin/js/main.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-md5', 'avactis-system/admin/templates/modules/users/md5.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-dtree', 'avactis-system/admin/dtree/dtree.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-validate', 'avactis-system/admin/js/validate.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-new-window', 'avactis-system/admin/js/new_window.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-countries-states', 'avactis-system/admin/js/countries_states.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-tree-css', 'avactis-system/admin/jstree/css.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-tree-component', 'avactis-system/admin/jstree/tree_component.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-categories', 'avactis-system/admin/js/categories.js', array(), false);\n\t\t$scripts->add( 'admin-avactis-utility', 'avactis-system/admin/js/utility.js', array(), false);\n $scripts->add( 'admin-toastr-notification', 'avactis-system/admin/js/toastr-notification.js', array(), false);\n\t}", "function script_url() {\n return $this->request()->script_url();\n }", "public function load_assets() {\n\t\t\t// get_template_directory_uri() . '/assets/js/scripts-bundled.js',\n\n\t\tif ( strstr( $_SERVER['SERVER_NAME'], 'one.wordpress.test' ) ) {\n\t\t\twp_enqueue_script(\n\t\t\t\t'university-javascript',\n\t\t\t\t'http://localhost:3000/bundled.js',\n\t\t\t\tnull,\n\t\t\t\t1,\n\t\t\t\ttrue\n\t\t\t);\n\t\t} else {\n\t\t\twp_enqueue_script(\n\t\t\t\t'university-vendor-js',\n\t\t\t\tget_theme_file_uri( '/bundled-assets/vendors~scripts.8c97d901916ad616a264.js' ),\n\t\t\t\tnull,\n\t\t\t\t1,\n\t\t\t\ttrue\n\t\t\t);\n\t\t\twp_enqueue_script(\n\t\t\t\t'university-script-js',\n\t\t\t\tget_theme_file_uri( ' / bundled - assets / scripts.9407ba0c9e80d0b7c41d.js' ),\n\t\t\t\tnull,\n\t\t\t\t1,\n\t\t\t\ttrue\n\t\t\t);\n\n\t\t\twp_enqueue_style(\n\t\t\t\t'main-style',\n\t\t\t\tget_theme_file_uri( ' / bundled - assets / styles.9407ba0c9e80d0b7c41d.css' ),\n\t\t\t\tnull,\n\t\t\t\t1,\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\n\t\twp_enqueue_style(\n\t\t\t'font-awesome-style',\n\t\t\t'//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',\n\t\t\tarray(),\n\t\t\t'4.7.0',\n\t\t\tfalse\n\t\t);\n\n\t\twp_enqueue_style(\n\t\t\t'roboto-font-style',\n\t\t\t'//fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700,700i|Roboto:100,300,400,400i,700,700i',\n\t\t\tarray(),\n\t\t\t'1.0.0',\n\t\t\tfalse\n\t\t);\n\n\t}", "protected function getUrl() {\r\n $url = \\Nette\\Utils\\Strings::endsWith($this->url, \"/\") ? $this->url : $this->url . \"/\"; \r\n $script = \\Nette\\Utils\\Strings::startsWith($this->script, \"/\") ? $this->script : \"/\" . $this->script; \r\n \r\n return $url . $script;\r\n }", "private function readScriptsConfig(){\r\n\t\tif($this->CI->config->item(\"zt_head_scripts\")){\r\n\t\t\t$configScripts = $this->CI->config->item(\"zt_head_scripts\");\r\r\n\t\t\tforeach($configScripts as $configScript){\r\n\t\t\t\t$script = new Script();\r\r\n\t\t\t\tif(isset($configScript[\"type\"])){\r\n\t\t\t\t\t$script->SetType($configScript[\"type\"]);\r\n\t\t\t\t}\r\r\n\t\t\t\tif(isset($configScript[\"src\"])){\r\n\t\t\t\t\tif(isset($configScript[\"lang\"]) && $configScript[\"lang\"] && !empty($this->langService)){\r\t\t\t\t\t\t$pathParts = pathinfo($configScript[\"src\"]);\r\t\t\t\t\t\t$scriptPath = \r\t\t\t\t\t\t\t$pathParts[\"dirname\"] .\r\t\t\t\t\t\t\t\"/\" .\r\t\t\t\t\t\t\t$pathParts[\"filename\"] .\r\t\t\t\t\t\t\t\"_\" .\r\t\t\t\t\t\t\t$this->langService->GetLangCode() .\r\t\t\t\t\t\t\t\".\" .\r\t\t\t\t\t\t\t$pathParts[\"extension\"];\r\t\t\t\t\t\t$script->SetSrc($scriptPath);\r\t\t\t\t\t} else {\r\t\t\t\t\t\t$script->SetSrc($configScript[\"src\"]);\t\r\t\t\t\t\t}\t\r\n\t\t\t\t}\r\r\n\t\t\t\tif(isset($configScript[\"content\"])){\r\n\t\t\t\t\t$script->SetContent($configScript[\"content\"]);\t\r\n\t\t\t\t}\r\r\n\t\t\t\t$this->head->AddScript($script);\r\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected function getScriptUrl()\n {\n return $this->getBaseUrl() . '/' . $this->baseUrl;\n }", "function init_scripts() {\n return true;\n}", "public function script($script) {\n\t\tif (strpos($script, 'http') === false) {\n\t\t\techo \"<script src='http://\".Config::$baseurl.\"js/{$script}'></script>\";\n\t\t} else {\n\t\t\techo \"<script src='{$script}'></script>\";\n\t\t}\n\t}", "protected function loadJavascript() {}", "function LoadScripts(array $scripts) : string\n{\n $html = '';\n foreach($scripts as $script) {\n $loadScript = 'view/static/js/'.$script.'.js';\n if (is_file($loadScript)) {\n $html .= \"<script src='$loadScript'></script>\";\n // echo $html;\n } else {\n die(\"Script not found: $loadScript\");\n // show 404 here\n }\n }\n\n return $html;\n}", "function XT_load_js($params){\n if(empty($params['file'])) {\n return false;\n } else {\n if(empty($GLOBALS['loadedscripts'][$params['file']])){\n // js ausgeben und als geladen merken\n $GLOBALS['loadedscripts'][$params['file']] = '<script type=\"text/javascript\" src=\"' . SCRIPTS_DIR . $params['file'] . '\"></script>';\n return NULL;\n }else{\n return false;\n }\n }\n}", "private function load_admin_scripts() {\n\n\t}", "public function loadInitScript() {\n //di(forum()->getCategory());\n include_once forum()->locateTemplate('init');\n //exit;\n }", "private function load_public_scripts() {\n\n\t}", "function antica_conditional_scripts()\n{\n $theme_version = wp_get_theme()->get( 'Version' );\n\n // Conditional script(s)\n if ( is_home() || is_page( ['intro'] ) ) {\n wp_register_script('anticaintro', get_stylesheet_directory_uri() . '/js/antica_intro.js', array('jquery'), $theme_version, false );\n wp_enqueue_script('anticaintro'); // Enqueue it!\n } else {\n // All Pages\n wp_register_script('anticascripts', get_stylesheet_directory_uri() . '/js/antica_scripts.js', array('jquery'), $theme_version, false );\n wp_enqueue_script('anticascripts'); // Enqueue it!\n\n wp_register_script('nivoslider', get_stylesheet_directory_uri() . '/js/lib/jquery.nivo.slider.js', array('jquery'), '1.3', false );\n wp_enqueue_script('nivoslider'); // Enqueue it!\n }\n\n // Example of specific Pages\n if ( is_page(['servicios','mision']) ) {\n }\n\n}", "function module_scriptLoad($val, $data)\n{\n\tif (!$data) return;\n\tsetCacheData(\"scriptLoad\", $data);\n\t\n\t$store\t= config::get(':scripts', array());\n\tif ($store[$data]) return;\n\n\t$store[$data] = $data;\n\tconfig::set(':scripts', $store);\n}", "public function load_php_files()\n {\n // Load Template function\n require_once self::$plugin_path . '/template-function.php';\n\n /**\n * Load Custom UI Ajax Loading Component\n *\n * 1) Overhang.js | https://paulkr.github.io/overhang.js/\n * 2) PlaceHolder Loading | https://github.com/zalog/placeholder-loading\n * 3) Jquery Confirm | https://craftpip.github.io/jquery-confirm/\n * 4) Box Cover Modal\n */\n if (apply_filters('rewrite_api_request_ui_component', true) === true) {\n require_once self::$plugin_path . '/ui-component.php';\n }\n }", "public static function maybe_enqueue_scripts() {\n\n\t\tif ( self::contains_grunion_shortcode() ){\n\t\t\t$grunion_handle = 'grunion-ajax';\n\n\t\t\twp_enqueue_script( $grunion_handle, self::$grunion_dir_url . '/grunion-ajax.js', array( 'jquery' ) );\n\t\t\t$object_name = 'grunionAjax';\n\t\t\t$script_data = array( \n\t\t\t\t'loadingImageUri' => self::$grunion_dir_url . '/loader.gif',\n\t\t\t\t'ajaxUri' => admin_url( 'admin-ajax.php' )\n\t\t\t);\n\n\t\t\twp_localize_script( $grunion_handle, $object_name, $script_data );\n\t\t}\n\t}", "private function check_url() {\n\t\t$check_url_object = new Router();\n\t\t$this->loader->add_action( 'init', $check_url_object, 'boot' );\n\t}", "function header_scripts_handler() {\n\t\t\t\t\t\t\n\t\t\t$this->make_compatible();\n\t\t\t$scripts = false;\n\t\t\t\n\t\t\t// Request via template function\n\t\t\tif ( $this->scriptsflag == \"true\" && $this->theSettings['disable_template_tag'] == \"false\" ) {\n\t\t\t\t$scripts = true;\n\t\t\t}\n\t\t\t\n\t\t\t// Check widgets\n\t\t\t$allowed_widget = $this->has_allowed_widget( \"mp3-jplayer-widget\" ); //echo \"<br />is allowed widget: \" . $allowed_widget . \"<br />\";\n\t\t\t$allowed_widget_B = $this->has_allowed_widget( \"mp3mi-widget\" ); //echo \"<br />is allowed widgetB: \" . $allowed_widget_B . \"<br />\"; \n\t\t\t\n\t\t\t// On index pages\n\t\t\tif ( is_home() || is_archive() ) {\n\t\t\t\tif ( $allowed_widget || $allowed_widget_B || $this->theSettings['player_onblog'] == \"true\" ) {\n\t\t\t\t\t$scripts = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// On singulars\n\t\t\tif ( is_singular() ) {\t\n\t\t\t\tif ( $this->grab_Custom_Meta() > 0 ) { // mode 1 widget \n\t\t\t\t\t$this->PlayerPlaylist = $this->generate_playlist( $this->postMetaKeys, $this->postMetaValues, 1 );\n\t\t\t\t}\n\t\t\t\tif ( $allowed_widget || $allowed_widget_B || $this->has_shortcodes() ) {\n\t\t\t\t\t$scripts = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t// On search pages\n\t\t\tif ( is_search() ) {\n\t\t\t\tif ( $allowed_widget || $allowed_widget_B ) {\n\t\t\t\t\t$scripts = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Add the scripts\n\t\t\tif ( $scripts ) {\n\t\t\t\t$style = ( $this->stylesheet == \"\" ) ? $this->theSettings['player_theme'] : $this->stylesheet;\n\t\t\t\t$this->add_Scripts( $style );\n\t\t\t}\n\t\t\treturn;\n\t\t}", "public function getScriptUrl()\n {\n return '//script.i-parcel.com/';\n }", "protected function loadJavaScripts() {}", "function profile_scripts() {\n\n // Load Profile Schemes.\n wp_enqueue_style( 'yz-schemes' );\n\n // Load Profile Style\n wp_enqueue_style( 'yz-profile', YZ_PA . 'css/yz-profile-style.min.css', array(), YZ_Version );\n\n // Load Profile Script.\n\t wp_enqueue_script( 'yz-profile', YZ_PA . 'js/yz-profile.min.js', array( 'jquery', 'jquery-effects-fade' ), YZ_Version, true );\n\n // If Effects are enabled active effects scripts.\n if ( 'on' == yz_option( 'yz_use_effects', 'off' ) ) {\n // Profile Animation CSS\n wp_enqueue_style( 'yz-animation', YZ_PA . 'css/animate.min.css', array(), YZ_Version );\n\t // Load View Port Checker Script\n\t wp_enqueue_script( 'yz-viewchecker', YZ_PA . 'js/yz-viewportChecker.min.js', array( 'jquery' ), YZ_Version, true );\n }\n\n\t}", "public static function load_scripts() {\n\t\tif ( is_checkout() ) {\n\t\t\t$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';\n\n\t\t\twp_enqueue_script( 'wc-eu-vat', WC_EU_VAT_PLUGIN_URL . '/assets/js/eu-vat' . $suffix . '.js', array( 'jquery', 'wc-checkout' ), WC_EU_VAT_VERSION, true );\n\t\t\twp_localize_script(\n\t\t\t\t'wc-eu-vat',\n\t\t\t\t'wc_eu_vat_params',\n\t\t\t\tarray(\n\t\t\t\t\t'eu_countries' => self::get_eu_countries(),\n\t\t\t\t\t'b2b_required' => get_option( 'woocommerce_eu_vat_number_b2b', 'false' ),\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "public function enqueueScripts(){}", "function script_loader_filter ($src) {\n if (FALSE === strpos ($src, 'ajax.googleapis.com')) {\n\treturn $src;\n }\n\n $new_src = explode('?', $src);\n return $new_src[0];\n\n}", "function ManageTheScripts() {\n if (!defined('SLPLUS_SCRIPTS_MANAGED') || !SLPLUS_SCRIPTS_MANAGED) {\n\n // If no shortcode rendered, remove scripts\n //\n if (!defined('SLPLUS_SHORTCODE_RENDERED') || !SLPLUS_SHORTCODE_RENDERED) {\n wp_dequeue_script('google_maps');\n wp_deregister_script('google_maps');\n wp_dequeue_script('csl_script');\n wp_deregister_script('csl_script');\n }\n define('SLPLUS_SCRIPTS_MANAGED',true);\n }\n }", "public function loadScript(){\n \t\treturn null;\n \t}", "private function autoload_scripts() {\n\t\t\n\t}", "public function localizeScripts() {\n $this->localizeScriptsCommon();\n \n if(is_admin()) {\n $this->localizeScriptsAdmin();\n } else {\n $this->localizeScriptsFrontend();\n }\n }", "public function loadPublicSideScripts()\n\t{\n\t\t$localizationArray = array(\n\t\t\t'ajax_url'\t\t=> public_url('public-ajax.php'),\n\t\t);\n\n\t\twp_enqueue_script('cit-boilerplate-public-script', CIT_PLUGIN_PUBLIC_URL.'js/cit-boilerplate-public.js', array('jquery'), CIT_PLUGIN_VERSION);\n\n\t\twp_localize_script('cit-boilerplate-public-script', '$citBoilerplate', $localizationArray);\n\t}", "protected function initCurrentUrl() {}", "protected function initCurrentUrl() {}", "public static function localize_results_scripts() {\n\t\t\t$protocol = isset( $_SERVER['HTTPS'] ) ? 'https://' : 'http://';\n\t\t\t// Output admin-ajax.php URL with same protocol as current page\n\n\t\t\t$vars = array(\n\t\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php', $protocol ),\n\t\t\t\t'imagesUrl' => GFCommon::get_base_url() . '/images'\n\t\t\t);\n\n\t\t\twp_localize_script( 'gaddon_results_js', 'gresultsVars', $vars );\n\n\t\t\t$strings = array(\n\t\t\t\t'ajaxError' => wp_strip_all_tags( __( 'Error retrieving results. If the problem persists, please contact support.', 'gravityforms' ) )\n\t\t\t);\n\n\t\t\twp_localize_script( 'gaddon_results_js', 'gresultsStrings', $strings );\n\n\t\t}", "function okr_load_js(){\n $CI = &get_instance();\n $viewuri = $_SERVER['REQUEST_URI'];\n if (!(strpos($viewuri,'/admin/okr') === false)) {\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/js/okr.js').'?v=' . VERSION_OKR.'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/jquery-circle-progress/circle-progress.min.js').'?v=' . VERSION_OKR.'\"></script>';\n }\n if (!(strpos($viewuri,'/admin/okr/setting') === false)) {\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/js/setting/setting.js').'?v=' . VERSION_OKR.'\"></script>';\n }\n if (!(strpos($viewuri,'/admin/okr/okrs') === false) || !(strpos($viewuri,'admin/okr/checkin') === false) || !(strpos($viewuri,'/admin/okr/checkin_detailt') === false) || !(strpos($viewuri,'/admin/okr/show_detail_node' ) === false) ) {\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/dist/jstree.min.js').'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/dist/js/jquery.treegrid.min.js').'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/paging.js').'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/Chart/js/jQuery.jHTree.js').'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/demo.js').'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/jquery.rate.min.js').'\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/OrgChart-master/jquery.orgchart.js').'\"></script>';\n }\n if (!(strpos($viewuri,'/admin/okr/checkin_detailt') === false) || !(strpos($viewuri,'/admin/okr/view_details' ) === false) || !(strpos($viewuri,'/admin/okr/show_detail_node' ) === false)) {\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/highcharts.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/variable-pie.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/export-data.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/accessibility.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/exporting.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/highcharts-3d.js') . '\"></script>';\n echo '<script src=\"'.module_dir_url(OKR_MODULE_NAME, 'assets/plugin/jquery.lineProgressbar.js').'\"></script>';\n }\n\n if (!(strpos($viewuri,'/admin/okr/dashboard') === false)) {\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/highcharts.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/variable-pie.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/export-data.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/accessibility.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/modules/exporting.js') . '\"></script>';\n echo '<script src=\"' . module_dir_url(OKR_MODULE_NAME, 'assets/plugin/highcharts/highcharts-3d.js') . '\"></script>';\n }\n}", "function setCheckScript($value){\n $this->_options['checkScript']=CHtml::normalizeUrl($value);\n }", "function vida_scripts_init() {\n\t\n}", "function wp_ajax_health_check_site_status_result()\n {\n }", "public function automaticScript()\n \t{\t\n \t\t$scripts = array();\n \t\tif (isset($this->pluginPath)) {\n\t \t\t# JS Plugin Path\n\t\t\t$js_path_plugin = $this->pluginPath . $this->constant['webroot'] . DS . $this->constant['jsBaseUrl'];\n\n\t\t\tif (is_file($js_path_plugin . $this->controller . '.js')) {\n\t\t \t$scripts[] = $this->plugin.'.'.$this->controller;\n\t\t \t}\n\n\t\t \tif (is_file($js_path_plugin . $this->controller . DS . $this->action . '.js')) {\n\t\t \t$scripts[] = $this->plugin . '.' . $this->controller . '/' . $this->action;\n\t\t \t}\n \t\t}\n \t\t\n \t\t$js_path = $this->constant['www_root'] . $this->constant['jsBaseUrl'];\n \t\tif (is_file($js_path . $this->controller . '.js')) {\n\t \t$scripts[] = $this->controller;\n\t\t}\n\n\t \tif (is_file($js_path . $this->controller . DS . $this->action . '.js')) {\n\t \t$scripts[] = $this->controller . '/' . $this->action;\n\t\t}\n\t\treturn $this->script($scripts);\n \t}", "public function generatePage_whichScript() {}", "function current_script()\n{\n // Strip down current URL so we can do a simple compare\n global $WHAT_IS_RUNNING_CACHE;\n if ($WHAT_IS_RUNNING_CACHE === null) {\n $script_name = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : (isset($_ENV['SCRIPT_NAME']) ? $_ENV['SCRIPT_NAME'] : '');\n $stripped_current_url = basename($script_name);\n $WHAT_IS_RUNNING_CACHE = substr($stripped_current_url, 0, strpos($stripped_current_url, '.'));\n }\n return $WHAT_IS_RUNNING_CACHE;\n}", "function trx_addons_localize_scripts_admin() {\n\t\twp_localize_script( 'trx_addons-admin', 'TRX_ADDONS_STORAGE', apply_filters('trx_addons_localize_script_admin', array(\n\t\t\t// AJAX parameters\n\t\t\t'ajax_url'\t=> esc_url(admin_url('admin-ajax.php')),\n\t\t\t'ajax_nonce'=> esc_attr(wp_create_nonce(admin_url('admin-ajax.php'))),\n\t\t\t// Site base url\n\t\t\t'site_url'\t=> esc_url(get_site_url())\n\t\t\t) )\n\t\t);\n\t}", "public function script() {\r\n\t\tif ($this->scriptable === true || $this->scriptable === 'true') {\r\n\t\t\t$page = pzk_page();\r\n\t\t\tif ($page) {\r\n\t\t\t\t$page->addJsInst($this->toArray());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function web_load(){\n\t\t$this->common();\n\t}", "public function setIsLoadRequiredFiles($status)\n {\n $this->isLoadRequiredFiles = $status;\n }", "public function getUrl($script) {\r\n if (!array_key_exists($script, $this->url)) {\r\n $msg = \"L'url pour le script $script n'existe pas ou n'est pas chargée. Vérifiez le paramétrage.\";\r\n insertLogKwixo(__METHOD__ . ' : ' . __LINE__, $msg);\r\n return false;\r\n }\r\n\r\n return $this->url[$script];\r\n }", "function preLoad() {\n if ( ! $this->useThemes() ) {\n $this->doneAndExit( 'do_not_use_themes' );\n }\n $method = strtoupper( filter_input( INPUT_SERVER, 'REQUEST_METHOD' ) );\n if ( 'HEAD' === $method && apply_filters( 'exit_on_http_head', TRUE ) ) {\n $this->doneAndExit( 'on_http_head' );\n }\n if ( is_robots() ) {\n do_action( 'do_robots' );\n $this->doneAndExit( 'is_robots' );\n } elseif ( is_feed() ) {\n do_feed();\n $this->doneAndExit( 'is_feed' );\n } elseif ( is_trackback() ) {\n include( ABSPATH . 'wp-trackback.php' );\n $this->doneAndExit( 'is_trackback' );\n }\n return TRUE;\n }", "function bulledev_scripts_and_styles() {\n\n // Only on stage\n if( !strpos($_SERVER['SERVER_NAME'], 'bulledev.com') ){\n wp_enqueue_style( 'bulledev-v9-style', get_stylesheet_uri() );\n }\n\t\n // jQuery\n if( is_page(203) || is_page(1485) ){\n wp_enqueue_script( 'jquery' ); \n }\n}", "function load_scripts() {\n\t\tglobal $redux_options;\n\t\twp_enqueue_script(\"jquery\");\n\n\t\t$bs = $redux_options['opt-bootstrap'];\n\n\t\tif ( $bs == 1 ) {\n\t\t\t//Load from CDN//\n\t\t\twp_enqueue_script( 'bootstrap-script', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js', array( 'jquery' ), '3.3.2', true );\n\t\t} elseif ( $bs == 2 ) {\n\t\t\t//Load from plugin//\n\t\t\twp_enqueue_script( 'bootstrap-script', dirname( __FILE__ ).'/assets/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '3.3.2', true );\n\t\t} elseif ( $bs == 3 ) {\n\t\t\t//load from nowhere... They have it loaded elsewhere... lets check to be sure though\n\t\t} else {\n\t\t\t//load from plugin. (fallback)//\n\t\t\twp_enqueue_script( 'bootstrap-script', dirname( __FILE__ ).'/assets/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '3.3.2', true );\n\t\t}\n\t\t\n\t\twp_enqueue_script( 'google-maps-api', 'http://maps.google.com/maps/api/js?sensor=false', array(), '3', false );\n\t}", "public function init() {\n\t\t\n\t\t$class = $this->className();\n\t\t$config = $this->wire('config');\n\t\n\t\t$file = $config->paths->$class . \"$class.css\";\n\t\tif($this->loadStyles && is_file($file)) {\n\t\t\t$mtime = filemtime($file);\n\t\t\t$this->config->styles->add($config->urls->$class . \"$class.css?v=$mtime\");\n\t\t}\n\t\t\n\t\t$file = $config->paths->$class . \"$class.js\"; \n\t\t$mtime = 0;\n\t\tif($this->loadScripts && is_file($file)) {\n\t\t\t$minFile = $config->paths->$class . \"$class.min.js\";\n\t\t\tif(!$config->debug && is_file($minFile)) {\n\t\t\t\t$mtime = filemtime($minFile);\n\t\t\t\t$config->scripts->add($config->urls->$class . \"$class.min.js?v=$mtime\");\n\t\t\t} else {\n\t\t\t\t$mtime = filemtime($file);\n\t\t\t\t$config->scripts->add($config->urls->$class . \"$class.js?v=$mtime\");\n\t\t\t}\n\t\t}\n\n\t\tif(count($this->requested)) {\n\t\t\tforeach($this->requested as $name) {\n\t\t\t\t$url = $this->components[$name]; \n\t\t\t\tif(strpos($url, '/') === false) {\n\t\t\t\t\t$mtime = filemtime($config->paths->$class . $url);\n\t\t\t\t\t$url = $config->urls->$class . $url;\n\t\t\t\t}\n\t\t\t\t$url .= \"?v=$mtime\";\n\t\t\t\t$this->wire('config')->scripts->add($url);\n\t\t\t}\n\t\t\t$this->requested = array();\n\t\t}\n\n\t\t$this->initialized = true;\n\t}", "function enqueue_script($hook){\n\t\t\t\tif( strpos($hook, 'page_' . $this->settings['slug']) !== false ){\n\t\t\t\t\t\t\n\t\t\t\t\tgdlr_core_include_utility_script();\n\n\t\t\t\t\t// include the admin style\n\t\t\t\t\twp_enqueue_style('font-awesome', GDLR_CORE_URL . '/plugins/font-awesome/css/font-awesome.min.css');\n\t\t\t\t\twp_enqueue_style('gdlr-core-getting-start', GDLR_CORE_URL . '/framework/css/getting-start.css');\n\t\t\t\t\twp_enqueue_style('open-sans-css', 'https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic&subset=latin,latin-ext');\n\t\t\t\t\t\n\t\t\t\t\t// include the admin script\n\t\t\t\t\twp_enqueue_script('gdlr-core-getting-start', GDLR_CORE_URL . '/framework/js/getting-start.js', array('jquery'), false, true);\n\t\t\t\t\twp_localize_script('gdlr-core-getting-start', 'gdlr_core_ajax_message', array(\n\t\t\t\t\t\t'ajaxurl' => GDLR_CORE_AJAX_URL,\n\t\t\t\t\t\t'error_head' => esc_html__('An error occurs', 'goodlayers-core'),\n\t\t\t\t\t\t'error_message' => esc_html__('Please try again. If the problem still persists, please contact administrator for this.', 'goodlayers-core'),\n\t\t\t\t\t\t'nonce' => wp_create_nonce('gdlr_core_demo_import'),\n\n\t\t\t\t\t\t'importing_head' => esc_html__('Importing demo content. Please wait...', 'goodlayers-core'),\n\t\t\t\t\t\t'importing_content' => esc_html__('If you choose to download images from demo site, it can take up to 7-8 minutes so please be patient.', 'goodlayers-core'),\n\t\t\t\t\t));\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "public function scripts()\n\t\t{\n\t\t}", "static function include_scripts(){\n\t\t//self::include_css();\n\t\tself::include_js();\n\t}", "public function global_script(){\r\n\r\n echo ISSET($this->globalSettings->global_script)?$this->globalSettings->global_script:'';\r\n\r\n }", "function onetyone_scripts() {\n wp_enqueue_script('wpestate_ajaxcalls', '/wp-content/themes/onetyone'.'/js/ajaxcalls.js',array('jquery'), '1.0', true);\n wp_enqueue_script('wpestate_property', '/wp-content/themes/onetyone'.'/js/property.js',array('jquery'), '1.0', true);\n if(is_page(2081) || is_page(254))\n {\n // wp_enqueue_script( 'map-script', 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBN2tzJmAQ_r3QTeWKT23Mw3rB-v5Y5zBU', array(), null, true );\n wp_enqueue_script( 'map-js-script', '/wp-content/themes/onetyone' . '/js/map.js', array(), null, true );\n }\n}", "function loadup_scripts() {\n $key = get_option('google_api_key');\n wp_enqueue_script( 'mapStyle-js', get_template_directory_uri().'/js/map-styles.js', array('jquery'), '1.0.0', true );\n if(is_front_page() || is_page_template('templates/template-property.php')){\n wp_enqueue_script( 'google-map-api', 'https://maps.googleapis.com/maps/api/js?key='.$key, array('jquery'), '1.0.0', true );\n //wp_enqueue_script( 'mapfull-js', get_template_directory_uri().'/js/home-map.js', array('jquery'), '1.0.0', true );\n \n }\n\n if(is_front_page()){\n wp_enqueue_script( 'mapfull-js', get_template_directory_uri().'/js/home-map.js', array('jquery'), '1.0.0', true );\n }\n\n if(is_page_template('templates/template-property.php')){\n wp_enqueue_script( 'singlemap-js', get_template_directory_uri().'/js/single-map.js', array('jquery'), '1.0.0', true );\n }\n //wp_enqueue_script( 'vue-js', '//cdnjs.cloudflare.com/ajax/libs/vue/2.4.4/vue.js', array('jquery'), '1.0.0', true );\n //wp_enqueue_script( 'smoothstate-js', '//cdnjs.cloudflare.com/ajax/libs/smoothState.js/0.7.2/jquery.smoothState.min.js', array('jquery'), '1.0.0', true );\n wp_enqueue_script( 'slick-js', get_template_directory_uri().'/js/slick.min.js', array('jquery'), '1.0.0', true );\n\twp_enqueue_script( 'theme-js', get_template_directory_uri().'/js/mesh.js', array('jquery'), '1.0.0', true );\n\n wp_enqueue_style( 'slick-css', get_template_directory_uri().'/css/slick.css', '1.0.0', true );\n wp_enqueue_style( 'slick-theme-css', get_template_directory_uri().'/css/slick-theme.css', '1.0.0', true ); \n}", "protected function getLocalActive()\n {\n if($this->isPage()) return $this->isPageActive();\n return $this->isUrlActive();\n }", "function inject_js() {\nglobal $wp;\n$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );\nif($current_url == 'url zeljene stranice stranice'){\n\techo '<script src=\"'. esc_url( plugins_url( __FILE__ ) ).'/imeJSfajlaGdeSeNalazi.js\"></script>';\n \t }\n}", "private function add_script( scripts $script ) {\n\n\t\t\t// check if script is enqueued\n\t\t\tif($script->get_is_enqueued()) {\n\t\t\t\t// check is script isn't loaded already and not disabled\n\t\t\t\tif ($this->check_for_enqueue($script)) {\n\t\t\t\t\t// set as loaded\n\t\t\t\t\t$script->set_is_loaded();\n\t\t\t\t\tself::$scripts_by_handle[$script->get_handle()]\t= $script;\n\n\t\t\t\t\t// CSS or JS\n\t\t\t\t\tswitch ($script->get_type()) {\n\t\t\t\t\t\tcase 'css':\n\t\t\t\t\t\t\t$module = $script->get_parent();\n\n\t\t\t\t\t\t\t// get settings object for build css later\n\t\t\t\t\t\t\tif($script->get_ID() == 'config') {\n\t\t\t\t\t\t\t\tif($script->get_parent()->get_css_cache_active()) {\n\t\t\t\t\t\t\t\t\t$script->cache_css();\n\t\t\t\t\t\t\t\t\t$script->get_parent()->get_script('common')->set_is_enqueued(false);\n\t\t\t\t\t\t\t\t\t$script->get_parent()->get_script('default')->set_is_enqueued(false);\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t// legacy\n\t\t\t\t\t\t\t\t\t$_s = $script->get_parent()->get_settings();\n\t\t\t\t\t\t\t\t\t$_s = reset($_s);\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// check if inline per settings (higher prio) or per parameter (lower prio)\n\t\t\t\t\t\t\tif ( static::$list[$script->get_UID()][ 'attached' ] && // checks if null - Dennis\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\tstatic::$list[$script->get_UID()][ 'attached' ]->get_data() === 'inline'\n\t\t\t\t\t\t\t\t\t|| (\n\t\t\t\t\t\t\t\t\t\tstatic::$list[$script->get_UID()][ 'attached' ]->get_data() === 'default'\n\t\t\t\t\t\t\t\t\t\t&& $script->get_inline()\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&& ! $script->get_is_backend()\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tif(is_file($script->get_path())) {\n\t\t\t\t\t\t\t\t\tob_start();\n\t\t\t\t\t\t\t\t\trequire($script->get_path());\n\t\t\t\t\t\t\t\t\t$css = ob_get_clean();\n\n\t\t\t\t\t\t\t\t\twp_add_inline_style('sv_core_init_style', $css);\n\t\t\t\t\t\t\t\t\twp_add_inline_style('sv_core_gutenberg_style', $css);\n\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\terror_log(__('Script \"'.$script->get_handle().'\" in path \"'.$script->get_path().'\" not found.'));\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\tif(!is_admin()) {\n\t\t\t\t\t\t\t\t\tif($script->get_path() && filesize($script->get_path()) === 0){\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\twp_enqueue_style(\n\t\t\t\t\t\t\t\t\t\t$script->get_handle(),\t\t\t\t\t\t // script handle\n\t\t\t\t\t\t\t\t\t\t$script->get_url(),\t\t\t\t\t\t\t// script url\n\t\t\t\t\t\t\t\t\t\t$script->get_deps(),\t\t\t\t\t\t\t// script dependencies\n\t\t\t\t\t\t\t\t\t\t($this->is_external() ? md5($script->get_url()) : filemtime($script->get_path())),\t // script version, generated by last filechange time\n\t\t\t\t\t\t\t\t\t\t$script->get_media()\t\t\t\t\t\t\t// The media for which this stylesheet has been defined. Accepts media types like 'all', 'print' and 'screen', or media queries like '(orientation: portrait)' and '(max-width: 640px)'.\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\tif($script->get_is_gutenberg()){\n\t\t\t\t\t\t\t\t\t\tif(is_file($script->get_path())) {\n\t\t\t\t\t\t\t\t\t\t\tob_start();\n\t\t\t\t\t\t\t\t\t\t\trequire($script->get_path());\n\t\t\t\t\t\t\t\t\t\t\t$css = ob_get_clean();\n\n\t\t\t\t\t\t\t\t\t\t\twp_add_inline_style('sv_core_gutenberg_style', $css);\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\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'js':\n\t\t\t\t\t\t\tif(strlen($script->get_inline()) > 0){\n\t\t\t\t\t\t\t\tob_start();\n\t\t\t\t\t\t\t\trequire($script->get_path());\n\t\t\t\t\t\t\t\t$js = ob_get_clean();\n\n\t\t\t\t\t\t\t\twp_add_inline_script($script->get_inline(), $js, 'before');\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\twp_enqueue_script(\n\t\t\t\t\t\t\t\t\t$script->get_handle(),\t\t\t\t\t\t\t // script handle\n\t\t\t\t\t\t\t\t\t$script->get_url(),\t\t\t\t\t\t\t // script url\n\t\t\t\t\t\t\t\t\t$script->get_deps(),\t\t\t\t\t\t\t\t// script dependencies\n\t\t\t\t\t\t\t\t\t($this->is_external() ? md5($script->get_url()) : filemtime($script->get_path())),\t\t // script version, generated by last filechange time\n\t\t\t\t\t\t\t\t\t$script->get_load_in_header() ? false : true\t\t\t\t\t\t\t\t\t // print in footer\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\tif ($script->is_localized()) {\n\t\t\t\t\t\t\t\twp_localize_script($script->get_handle(), $script->get_uid(), $script->get_localized());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tself::$scripts_active[]\t\t\t\t\t\t\t\t= $script;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function load_script($name)\n{\n\tif(check_filename_security($name)) return \"\";\n\treturn comp_file_get_contents(\"scripts/$name\");\n}", "public function getUrl($script)\r\n\t{\r\n\t\tif (!array_key_exists($script, $this->url_script))\r\n\t\t{\r\n\t\t\t$msg = \"L'url pour le script $script n'existe pas ou n'est pas chargée. Vérifiez le paramétrage.\";\r\n\t\t\tCertissimLogger::insertLog(__METHOD__.' : '.__LINE__, $msg);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn $this->url_script[$script];\r\n\t}", "function hook_print_scripts() {\r\n\t\t$key = $this->get_array_option('api_key_developer', 'foliamaptool_options');\r\n\r\n\t\t// Only load for non-admin, non-feed\r\n\t\tif (is_admin() || is_feed())\r\n\t\t\treturn;\r\n\r\n\t\t// Only load if API key isn't empty'\r\n\t\tif (empty($key))\r\n\t\t\treturn;\r\n\r\n\t\t// Only load scripts if at least one post has map coordinates (we don't check if map shortcode is present, though)\r\n\t\tif (!$this->has_maps())\r\n\t\t\treturn;\r\n\r\n\t\t//wp_enqueue_script('googlemaps', \"http://maps.google.com/maps?file=api&v=2&key=$key&hl=$lang\");\r\n\r\n\t\tif (substr($this->debug, 0, 4) == 'http')\r\n\t\t\t$script = $this->debug;\r\n\r\n\r\n\r\n //wp_enqueue_script('foliamaptool', $script);\r\n\r\n\t\t// Stylesheet\r\n\t\twp_enqueue_style('foliamaptool', plugins_url('foliamaptool.css', __FILE__));\r\n\r\n\t\t// Localize script texts\r\n\t\twp_localize_script('foliamaptool', 'mappressl10n', array(\r\n\t\t\t'go' => __('Go', 'foliamaptool')\r\n\t\t));\r\n\t}", "function wa_wcc_load_scripts($jquery_true) {\n\n\t\twp_register_style('wa_wcc_mtree_css_file', get_template_directory_uri().'/plugin/collapse/assets/css/mtree.css');\n\t\twp_enqueue_style('wa_wcc_mtree_css_file');\n\n\n\t\tif($this->options['configuration']['load_velocity'] === TRUE) {\n\n\t wp_register_script('wa_wcc_velocity',get_template_directory_uri().'/plugin/collapse/assets/js/jquery.velocity.min.js',array('jquery'),'',($this->options['configuration']['loading_place'] === 'header' ? false : true));\n\t wp_enqueue_script('wa_wcc_velocity'); \n\n\t\t}\n\n\t}", "public function enqueue_scripts() {\n\t\t\n\t\twp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/sanoa-links-linter-public.js', '', $this->version, true ); // Put in footer\n\n // Grab all options\n\t\t$options = get_option($this->plugin_name);\n\t\t\n $urlparts = parse_url(site_url());\n $domain = $urlparts [host];\n\n\t\t$input_hostname = \n\t\t\t(empty($options['input-hostname'])) ? $domain : $options['input-hostname'];\t\n\n\t\t// Localize the script with new data\t\n\t\t$searchArgs = array(\n\t\t\t'input_hostname' => $input_hostname,\n\t\t\t$this->plugin_name\n\t\t);\n\t\twp_localize_script( $this->plugin_name, 'php_vars', $searchArgs );\n\n\t\twp_enqueue_script( $this->plugin_name );\n\n\t}", "function scripts() {\n\twp_register_script(\n\t\t'bootstrap',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/bootstrap/dist/js/bootstrap.min.js\",\n\t\tarray( 'jquery' ),\n\t\tVINCENTRAGOSTA_COM_VERSION,\n\t\ttrue\n\t);\n\n\twp_enqueue_script(\n\t\t'vincentragosta_com',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/js/vincentragosta---twenty-seventeen.js\",\n\t\tarray( 'jquery', 'bootstrap' ),\n\t\tVINCENTRAGOSTA_COM_VERSION,\n\t\ttrue\n\t);\n\n\twp_localize_script( 'vincentragosta_com', 'themeUrl', VINCENTRAGOSTA_COM_TEMPLATE_URL );\n}", "public function load_settings_page() {\n\t\tglobal $pagenow, $socialflow;\n\n\t\t$allowed_page = array(\n\t\t\t'post.php',\n\t\t\t'post-new.php',\n\t\t\t'admin.php',\n\t\t\t'edit.php', // posts list.\n\t\t\t'options-general.php',\n\t\t\t'upload.php', // uploads list.\n\t\t);\n\n\t\tif ( in_array( $pagenow, $allowed_page, true ) ) {\n\n\t\t\t// Enqueue neccessary scripts.\n\t\t\twp_enqueue_script( 'timepicker', plugins_url( 'assets/js/jquery.timepicker.js', SF_FILE ), array( 'jquery', 'jquery-ui-slider', 'jquery-ui-datepicker' ), true );\n\t\t\twp_enqueue_script( 'jquery.maxlength', plugins_url( 'assets/js/jquery.maxlength.js', SF_FILE ), array( 'jquery' ), '1.0.5', true );\n\n\t\t\twp_enqueue_script( 'socialflow-categories', plugins_url( 'assets/js/sf-categories.js', SF_FILE ), array( 'jquery' ), '2.0', true );\n\t\t\twp_enqueue_script( 'twitter-text', plugins_url( 'assets/js/twitter-text.js', SF_FILE ), array( 'jquery' ), '1.0', true );\n\n\t\t\twp_localize_script(\n\t\t\t\t'socialflow-admin', 'socialFlowData', array(\n\t\t\t\t\t'homeUrl' => home_url(),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tif ( in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php', 'upload.php' ), true ) ) {\n\t\t\t\twp_enqueue_script( 'socialflow-common', plugins_url( 'assets/js/angular/common.js', SF_FILE ), array( 'jquery' ), '1.0', true );\n\t\t\t\twp_enqueue_script( 'angular', plugins_url( 'assets/js/angular/lib/angular.js', SF_FILE ), array(), '1.0', true );\n\t\t\t\twp_enqueue_script( 'socialflow-angular', plugins_url( 'assets/js/angular/module.js', SF_FILE ), array( 'angular' ), '1.0', true );\n\t\t\t\twp_localize_script( 'socialflow-angular', 'sfPostFormTmpls', SocialFlow_Post_Form_Data::get_templates() );\n\t\t\t}\n\n\t\t\t// Enqeue styles.\n\t\t\twp_enqueue_style( 'socialflow-admin', plugins_url( 'assets/css/styles.min.css', SF_FILE ) );\n\t\t\twp_enqueue_style( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/smoothness/jquery-ui.css', false, '1.8.1', false );\n\n\t\t\twp_enqueue_media();\n\n\t\t\t// Thickbox scripts for compose now post action.\n\t\t\twp_enqueue_script( 'thickbox' );\n\t\t\twp_enqueue_style( 'thickbox' );\n\n\t\t\tif ( $socialflow->is_localhost() ) {\n\t\t\t\twp_enqueue_script( 'live-reload', '//localhost:35729/livereload.js', false, '1', false );\n\t\t\t}\n\t\t}\n\t}", "function pp_load_scripts(){\n \t\n \t$path_js = get_template_directory_uri() . '/assets/js/min/';\n \t$path_css = get_template_directory_uri() . '/assets/css/';\n\n \tif (!is_admin()){\n \t\t\n\t\twp_enqueue_script('jquery');\t\n\t\t\t\t\t\t\n\t\twp_enqueue_script('pp-libs', $path_js . 'libs-min.js', ['jquery'], false);\t\t\n\t\twp_enqueue_script('pp-common', $path_js . 'common-min.js', ['jquery'], false, true);\n\t\t\t\t\t\n\t\t// wp_localize_script( 'jquery', 'siteVars', [] );\n\t \t\n\t \twp_enqueue_style( 'bootstrap', $path_css . 'bootstrap.css');\n\t \twp_enqueue_style( 'libs', $path_css . 'libs.css');\n\t \twp_enqueue_style( 'main', $path_css . 'main.css');\n\n } else {\n\n\t \twp_enqueue_style( 'custom_wp_admin_css', $path_css. 'admin-style.css', false, '1.0.0' );\n \t\n }\n\n}", "protected function getSuhosinLoadedStatus() {}", "function main()\n{\n\t\t$version = $_GET[\"version\"];\n\t\t$jsfile = DIR.\"/mxClient-$version.js\";\n\t\t\n\t\tdeliver(getScript($jsfile));\n}", "public function scripts()\n {\n $scripts = array(\n array(\n 'handler' => 'yatri-google-fonts',\n 'style' => esc_url('//fonts.googleapis.com/css?family=Poppins:300,400,400i,500,600,700|Rubik:400,500,700,900'),\n 'absolute' => true\n ),\n\n array(\n 'handler' => 'yatri-style',\n 'style' => get_stylesheet_uri(),\n 'absolute' => true,\n ), array(\n 'handler' => 'yatri-main',\n 'style' => get_theme_file_uri('/assets/css/yatri.css'),\n 'absolute' => true,\n 'version' => YATRI_THEME_VERSION\n ),\n array(\n 'handler' => 'yatri-script',\n 'script' => get_theme_file_uri('/assets/js/yatri.js'),\n 'absolute' => true,\n 'prefix' => '',\n 'dependency' => array('jquery')\n )\n );\n\n\n Mantrabrain_Theme_Helper_Typo::render_fonts();\n\n $this->yatri_enqueue(apply_filters('yatri_scripts_styles', $scripts));\n\n $locale = apply_filters('yatri_localize_var', array(\n\n 'is_admin_bar' => is_admin_bar_showing() ? true : false,\n\n ));\n\n wp_localize_script('yatri-script', 'yatri_obj', $locale);\n\n if (is_singular() && comments_open()) {\n wp_enqueue_script('comment-reply');\n }\n }", "function getScript()\n {\n $script = \"\n <!-- main scripts -->\n <script src=\\\"/inelcom/js/jquery-3.1.1.min.js\\\"></script>\n <script src=\\\"/inelcom/js/bootstrap.min.js\\\"></script>\n <script src=\\\"/inelcom/js/plugins/metisMenu/jquery.metisMenu.js\\\"></script>\n <script src=\\\"/inelcom/js/plugins/slimscroll/jquery.slimscroll.min.js\\\"></script>\n <!-- Date picker -->\n <script src=\\\"/inelcom/js/plugins/datapicker/bootstrap-datepicker.js\\\"></script> \n <!-- Date range use moment.js same as full calendar plugin -->\n <script src=\\\"/inelcom/js/plugins/fullcalendar/moment.min.js\\\"></script> \n <!-- Date range picker -->\n <script src=\\\"/inelcom/js/plugins/daterangepicker/daterangepicker.js\\\"></script>\n <!-- Datatable -->\n <script src=\\\"/inelcom/js/plugins/dataTables/datatables.min.js\\\"></script> \n <!-- Custom and plugin javascript -->\n <script src=\\\"/inelcom/js/inspinia.js\\\"></script>\n <script src=\\\"/inelcom/js/plugins/pace/pace.min.js\\\"></script>\n \";\n\n return $script;\n }", "public function admin_script() {\n\n\t\tglobal $itsec_globals;\n\n\t\tif ( isset( get_current_screen()->id ) && strpos( get_current_screen()->id, 'security_page_toplevel_page_itsec_settings' ) !== false ) {\n\n\t\t\twp_enqueue_script( 'itsec_away_mode_js', $this->module_path . 'js/admin-away-mode.js', array( 'jquery' ), $itsec_globals['plugin_build'] );\n\t\t\twp_enqueue_script( 'jquery-ui-datepicker' );\n\t\t\twp_enqueue_style( 'jquery-datepicker-style', $this->module_path . 'css/smoothness/jquery-ui-1.10.4.custom.css', array(), $itsec_globals['plugin_build'] );\n\n\t\t}\n\n\t}", "function hook_head() {\r\n\t\t$key = $this->get_array_option('api_key_developer', 'foliamaptool_options');\r\n\r\n\t\t// For non-admin pages ONLY: load scripts only if at least one post has map coordinates (we don't check if map shortcode is present, though)\r\n\t\tif (!is_admin() && !$this->has_maps())\r\n\t\t\treturn;\r\n\r\n\t\t// Do nothing if no API key available\r\n\t\tif (empty($key))\r\n\t\t\treturn;\r\n\r\n\t\t// Load geocoder\r\n\r\n\t}" ]
[ "0.74690664", "0.64585596", "0.6164367", "0.61609364", "0.61609364", "0.5987267", "0.5932925", "0.59215367", "0.5880918", "0.5813071", "0.5799872", "0.57987654", "0.5779275", "0.57524407", "0.5731462", "0.57255983", "0.565822", "0.5654437", "0.5654437", "0.5654437", "0.5654437", "0.5654437", "0.5654437", "0.5654437", "0.5654437", "0.5632385", "0.5572075", "0.55533516", "0.5475696", "0.54159516", "0.5403713", "0.5377541", "0.53270364", "0.53254944", "0.5323683", "0.53071964", "0.5302438", "0.5236999", "0.52336043", "0.52335036", "0.5221786", "0.52171177", "0.5206175", "0.5205645", "0.51983076", "0.5193631", "0.5189071", "0.51691425", "0.5168164", "0.51613224", "0.5161318", "0.5151694", "0.5148506", "0.5144713", "0.51396567", "0.5134446", "0.5130019", "0.5126761", "0.5114538", "0.5114538", "0.51018757", "0.5096286", "0.5079172", "0.50765264", "0.50749785", "0.5068468", "0.50553256", "0.5054323", "0.505078", "0.5048496", "0.50400555", "0.5034397", "0.5031745", "0.5026635", "0.50258225", "0.50237757", "0.5010845", "0.50065595", "0.50023633", "0.5001866", "0.50006837", "0.5000556", "0.5000282", "0.49889618", "0.49871182", "0.4986035", "0.498495", "0.49832368", "0.496844", "0.49656564", "0.49633273", "0.4960027", "0.49587888", "0.4958544", "0.49568385", "0.49519518", "0.49514696", "0.49477443", "0.493831", "0.4934982" ]
0.7261437
1
returns the URL of the script given in param if it exists, false otherwise
public function getUrl($script) { if (!array_key_exists($script, $this->url)) { $msg = "L'url pour le script $script n'existe pas ou n'est pas chargée. Vérifiez le paramétrage."; insertLogKwixo(__METHOD__ . ' : ' . __LINE__, $msg); return false; } return $this->url[$script]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUrl($script)\r\n\t{\r\n\t\tif (!array_key_exists($script, $this->url_script))\r\n\t\t{\r\n\t\t\t$msg = \"L'url pour le script $script n'existe pas ou n'est pas chargée. Vérifiez le paramétrage.\";\r\n\t\t\tCertissimLogger::insertLog(__METHOD__.' : '.__LINE__, $msg);\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn $this->url_script[$script];\r\n\t}", "protected function determineScriptUrl() {}", "protected function determineScriptUrl() {}", "protected function determineScriptUrl() {}", "function getScriptUrl() ;", "protected function determineScriptUrl()\n {\n if ($routePath = GeneralUtility::_GP('route')) {\n $router = GeneralUtility::makeInstance(Router::class);\n $route = $router->match($routePath);\n $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);\n $this->thisScript = (string)$uriBuilder->buildUriFromRoute($route->getOption('_identifier'));\n } elseif ($moduleName = GeneralUtility::_GP('M')) {\n $this->thisScript = BackendUtility::getModuleUrl($moduleName);\n } else {\n $this->thisScript = GeneralUtility::getIndpEnv('SCRIPT_NAME');\n }\n }", "protected function determineScriptUrl()\n {\n if ($routePath = GeneralUtility::_GP('route')) {\n $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);\n $this->thisScript = (string)$uriBuilder->buildUriFromRoutePath($routePath);\n } else {\n $this->thisScript = GeneralUtility::getIndpEnv('SCRIPT_NAME');\n }\n }", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "public function getScriptUrl() {}", "protected function getUrl() {\r\n $url = \\Nette\\Utils\\Strings::endsWith($this->url, \"/\") ? $this->url : $this->url . \"/\"; \r\n $script = \\Nette\\Utils\\Strings::startsWith($this->script, \"/\") ? $this->script : \"/\" . $this->script; \r\n \r\n return $url . $script;\r\n }", "function scr_is($script)\n{\n return ROUTE[WEBSITE_REQUEST] == $script;\n}", "public function isDynamicUrl();", "function script_url() {\n return $this->request()->script_url();\n }", "public function url_exists( $src ) {\n\n\t\t// Make arguments supplied are valid\n\t\tif( !is_string( $src ) ) {\n\t\t\texit( '$src is an invalid argument' );\n\t\t}\n\n\t\t// Isolate path to file from URL\n\t\t$url_parts = parse_url( $src );\n\t\t$path = $url_parts['path'];\n\n\t\t// Check if file exists from reassembled path\n\t\tif( file_exists( $_SERVER['DOCUMENT_ROOT'] . $path ) ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "public function hasScript()\n {\n return (isset($this->data[\"script\"]));\n }", "function url_exist($url)\r\n\t\t{\r\n\t\t\r\n\t\t}", "public function exists( $url );", "private function getUrl(){\r\n\t\tif ($GLOBALS['TSFE']->absRefPrefix) {\r\n\t\t\t$this->url = $GLOBALS['TSFE']->absRefPrefix;\r\n\t\t\treturn true;\r\n\t\t} else if ($GLOBALS['TSFE']->config['config']['baseURL']) {\r\n\t\t\t$this->url = $GLOBALS['TSFE']->config['config']['baseURL'];\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function abp01_wrapper_should_serve_script($requestUriPath) {\n return preg_match('/^(\\/wp-content\\/plugins\\/)([^\\/]+)(\\/media\\/js\\/3rdParty\\/leaflet-plugins\\/)(.*)\\/([^\\/]+)\\.js(\\?ver=([a-zA-Z0-9.]+))?$/i', \n $requestUriPath);\n}", "function url_for($script_path){\r\n // return the absolute path\r\n if($script_path[0] != '/'){\r\n $script_path = \"/\" . $script_path;\r\n }\r\n return WWW_ROOT . $script_path;\r\n}", "function url_for($script_path) {\n\t// adds the leading '/' if it isn't already passed through the argument\n\tif($script_path[0] != '/') {\n\t\t$script_path = \"/\" . $script_path;\n\t}\n\treturn WWW_ROOT . $script_path;\n}", "public function hasRemoteUrl();", "function url_for($script_path) {\r\n // add the leading '/' if not present\r\n if($script_path[0] != '/') {\r\n $script_path = \"/\" . $script_path;\r\n }\r\n return WWW_ROOT . $script_path;\r\n}", "function url_exists($url) {\n if(@file_get_contents($url,0,NULL,0,1)) {\n return true;\n } else {\n return false;\n }\n}", "function url_for($script_path)\n{\n // Add a leading \"/\" if not present\n if ($script_path[0] != '/') {\n $script_path = '/' . $script_path;\n }\n return WWW_ROOT . $script_path;\n}", "function url_for($script_path){\n\n if ($script_path[0] != '/') {\n $script_path = '/' . $script_path;\n }\n \n return WWW_ROOT . $script_path;\n \n}", "function is_script($path)\n{\n\n\t$erreur = 0;\n\n if (fopen($path,\"r\")) {\n while (!feof($path) OR $erreur == 0) {\n\n $buffer = fgets($path);\n\n switch (true) {\n case strstr($buffer,'<'):\n $erreur += 1;\n break;\n\n case strstr($buffer,'>'):\n $erreur += 1;\n break;\n\n case strstr($buffer,';'):\n $erreur += 1;\n break;\n\n case strstr($buffer,'&'):\n $erreur += 1;\n break;\n\n case strstr($buffer,'?'):\n $erreur += 1;\n break;\n }\n }\n fclose($path);\n }else{\n $erreur=1;\n }\n\n if ($erreur==0) {\n \treturn FALSE;\n }else{\n \treturn TRUE;\n }\n\n}", "function url_for($script_path){\n\nif($script_path[0] != '/'){\n \n $script_path = \"/\" . $script_path;\n}\n\n//echo WWW_ROOT .$script_path;\n\n\nreturn WWW_ROOT . $script_path;\n\n}", "public function getScriptUrl()\n {\n return '//script.i-parcel.com/';\n }", "function ajax_action_check_url() {\n\n\t\t$hadError = true;\n\n\t\t$url = isset( $_REQUEST['url'] ) ? $_REQUEST['url'] : '';\n\n\t\tif ( strlen( $url ) > 0 && function_exists( 'get_headers' ) ) {\n\t\t\t\t\n\t\t\t$file_headers = @get_headers( $url );\n\t\t\t$exists = $file_headers && $file_headers[0] != 'HTTP/1.1 404 Not Found';\n\t\t\t$hadError = false;\n\t\t}\n\n\t\techo '{ \"exists\": '. ($exists ? '1' : '0') . ($hadError ? ', \"error\" : 1 ' : '') . ' }';\n\n\t\tdie();\n\t}", "function script_loader_filter ($src) {\n if (FALSE === strpos ($src, 'ajax.googleapis.com')) {\n\treturn $src;\n }\n\n $new_src = explode('?', $src);\n return $new_src[0];\n\n}", "protected function getScriptUrl()\n {\n return $this->getBaseUrl() . '/' . $this->baseUrl;\n }", "function url_for($script_path) {\n if($script_path[0] != '/') {\n $script_path = \"/\" . $script_path;\n }\n return WWW_ROOT . $script_path;\n}", "function url_for($script_path) {\n //add the leading '/' if not present\n if ($script_path[0] != '/') {\n $script_path = \"/\" . $script_path;\n }\n return WWW_ROOT . $script_path;\n }", "public function script($script) {\n\t\tif (strpos($script, 'http') === false) {\n\t\t\techo \"<script src='http://\".Config::$baseurl.\"js/{$script}'></script>\";\n\t\t} else {\n\t\t\techo \"<script src='{$script}'></script>\";\n\t\t}\n\t}", "function current_script()\n{\n // Strip down current URL so we can do a simple compare\n global $WHAT_IS_RUNNING_CACHE;\n if ($WHAT_IS_RUNNING_CACHE === null) {\n $script_name = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : (isset($_ENV['SCRIPT_NAME']) ? $_ENV['SCRIPT_NAME'] : '');\n $stripped_current_url = basename($script_name);\n $WHAT_IS_RUNNING_CACHE = substr($stripped_current_url, 0, strpos($stripped_current_url, '.'));\n }\n return $WHAT_IS_RUNNING_CACHE;\n}", "public function exists()\n {\n if (file_exists($this->getDestination()))\n {\n try\n {\n // Do a redirect to the file on filesystem - don't load contents in - that costs memory\n $url = str_replace(sfImagePoolPluginConfiguration::getBaseDir(), sfImagePoolPluginConfiguration::getBaseUrl(), $this->getDestination());\n \n sfContext::getInstance()->getController()->redirect($url, 0, 301);\n \n return $url;\n }\n catch (Exception $e)\n {\n return false;\n }\n }\n else\n {\n return false;\n }\n }", "public function getAssetPath()\n {\n $url_frags = parse_url($_SERVER['REQUEST_URI']);\n \n if (!array_key_exists('path', $url_frags)) {\n return false;\n }\n\n $file_name = basename($url_frags['path']);\n \n if (!preg_match('/^(.+)\\.([a-z]+)$/', $file_name)) {\n return false;\n }\n\n // this is the path after the common path prefix\n $path_everything_after = substr(\n $url_frags['path'],\n strpos($url_frags['path'], $this->common_path_prefix)\n );\n\n $file_name = $this->actual_path.'/'.$path_everything_after;\n if (file_exists($file_name)) {\n return $file_name;\n }\n return false;\n }", "public function getScriptUrl()\n {\n return $this->thisScript;\n }", "private function script_url($matches){\r\n\t\tif(strpos($matches[1],'.png')!==false || strpos($matches[1],'.jpg')!==false || strpos($matches[1],'.webp')!==false){\r\n\t\t\treturn str_replace($matches[1], whole_url($matches[1], $this->base_url), $matches[0]);\r\n\t\t}\r\n\r\n\t\treturn str_replace($matches[1], proxify_url($matches[1], $this->base_url), $matches[0]);\r\n\t}", "function load_script($name)\n{\n\tif(check_filename_security($name)) return \"\";\n\treturn comp_file_get_contents(\"scripts/$name\");\n}", "public function url($style = null)\n\t{\n\t\tif($this->exists()) {\n\t\t\t$template = $this->_options['url'];\n\t\t\treturn $this->_parseTemplateString($template, $style);\n\t\t} else {\n\t\t\tif(isset($this->_options['default_url'])) {\n\t\t\t\tif(is_array($this->_options['default_url'])) {\n\t\t\t\t\tif(is_null($style))\n\t\t\t\t\t\treturn !isset($this->_options['default_url']['default']) ? false : $this->_options['default_url']['default'];\n\t\t\t\t\telse \n\t\t\t\t\t\treturn !isset($this->_options['default_url'][$style]) ? false : $this->_options['default_url'][$style];\n\t\t\t\t} else {\n\t\t\t\t\treturn $this->_options['default_url'];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function hasUrlGenerator(): bool;", "function checkIfExistingBaseUrl($url)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true); // set to HEAD request\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // don't output the response\n curl_setopt($ch,CURLOPT_CONNECTTIMEOUT, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 400);\n curl_exec($ch);\n $result = curl_getinfo($ch, CURLINFO_HTTP_CODE) == 200;\n curl_close($ch);\n\n return $result;\n }", "function is_source_static($src)\n\t{\n\t\t// @since 1.3.0 check for query string in `$src`\n\t\tif (false !== strpos($src, '?'))\n\t\t{\n\t\t\t$src = explode('?', $src);\n\t\t\t$src = $src[0];\n\t\t}\n\n\t\t// Source that doesn't have .css or .js extesion is dynamic\n\t\tif (!preg_match('#.*\\.(css|js)$#ui', $src))\n\t\t\treturn false;\n\n\t\t// Source that contains =, & is dynamic\n\t\t// @since 1.3.0 ? is considered static\n\t\tif (strpos($src, '=') === false && strpos($src, '&') === false)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public function generatePage_whichScript() {}", "function _bellcom_check_if_file_in_url_exists($file_url) {\n $file_headers = @get_headers($file_url);\n\n if ($file_headers[0] == 'HTTP/1.1 404 Not Found') {\n return FALSE;\n }\n else {\n return TRUE;\n }\n}", "public function isScriptFileAvailable() {\n return false;\n }", "public function getWidgetScript() {\n //$vIsHasLHCAccount = $vCurrentSession->getValue('isHasLHCAccount');\n //if (!$vIsHasLHCAccount) {\n $script = $this->fillChatWidget();\n // }\n return isset($script) === true ? $script: false ;\n }", "public function exists() {\n if (is_null($this->sourceexists)) {\n $this->sourceexists = file_exists($this->sourcepath);\n if ($this->cat === \"url\" && !$this->sourceexists) $this->sourceexists = Path::exists($this->name);\n }\n return $this->sourceexists;\n }", "public function isScriptAllowed()\n {\n return $this->allowScript;\n }", "function url_for($script_path) {\n\t\t// add the leading '/' if not present\n\t\tif($script_path[0] != '/') {\n\t\t\t$script_path = '/'. $script_path;\n\t\t}\n\t\treturn WWW_ROOT . $script_path;\n\t}", "function wp_script_is( $handle, $list = 'queue' ) {\r\n\tglobal $wp_scripts;\r\n\tif ( !is_a($wp_scripts, 'WP_Scripts') )\r\n\t\t$wp_scripts = new WP_Scripts();\r\n\r\n\t$query = $wp_scripts->query( $handle, $list );\r\n\r\n\tif ( is_object( $query ) )\r\n\t\treturn true;\r\n\r\n\treturn $query;\r\n}", "function url_exists($pageURL){\n\t if ((strpos($pageURL, \"https\")) === false){ $pageURL = \"https://\" . $pageURL;} //pos8etei https an leipei\n\t\t \n\t\t \n\t\t \n\t if (is_array(@get_headers($pageURL)) && ((strpos($pageURL, \"facebook\")) !== false))\t//an to header request itan epituxes kai to page itan kapoio fb page\n\t return true;\n\t else\n\t\t {return true;}\n\t}", "function check_url($url){\n\n $data = file_get_contents($url);\n\n if (empty($data)) {\n return \"false\";\n } else {\n return \"true\";\n }\n\n\n \n}", "function urlForPath($script_path)\n{\n // Add the leading '/' if not present\n if ($script_path[0] != '/') {\n $script_path = '/' . $script_path;\n }\n return WWW_ROOT . $script_path;\n}", "public static function url_exists($url) {\r\n \r\n // Too slow\r\n return true;\r\n \r\n /*\r\n \r\n $ch = curl_init($url);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\r\n $response = curl_exec($ch);\r\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\r\n \r\n if ($httpCode == 404) {\r\n return false;\r\n }\r\n \r\n return true;\r\n \r\n $file_headers = @get_headers($url);\r\n if ($file_headers[0] == 'HTTP/1.1 404 Not Found') {\r\n return false;\r\n }\r\n \r\n return true;\r\n */\r\n \r\n }", "function wp_script_is( $handle, $list = 'enqueued' ) {\n\t_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );\n\n\treturn (bool) wp_scripts()->query( $handle, $list );\n}", "function request_uri() {\n\n if (isset($_SERVER[\"REQUEST_URI\"])) {\n $uri = $_SERVER[\"REQUEST_URI\"];\n }\n else {\n $uri = $_SERVER[\"PHP_SELF\"] .\"?\". $_SERVER[\"argv\"][0];\n }\n\n return check_url($uri);\n}", "public function hasUrl()\n {\n return ! empty($this->url);\n }", "function does_url_exist($url) {\n\t$fd = fopen(\"$url\", \"r\");\n\tif ($fd) {\n\t\tfclose($fd);\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "private function urlExist() {\n if (!$this->webhook->url) {\n // throw an exception\n $this->missingEx('url');\n }\n }", "function url_exists($url){ \r\n $url_data = parse_url($url); // scheme, host, port, path, query\r\n if(!fsockopen($url_data['host'], isset($url_data['port']) ? $url_data['port'] : 80)){\r\n $this->set_message('url_exists', 'The URL you entered is not accessible.');\r\n return FALSE;\r\n } \r\n \r\n return TRUE;\r\n }", "private function checkIfUrlExists($url) {\n $headers = get_headers($url);\n return ((int) substr($headers[0], 9, 3)) === 200;\n }", "function XT_load_js($params){\n if(empty($params['file'])) {\n return false;\n } else {\n if(empty($GLOBALS['loadedscripts'][$params['file']])){\n // js ausgeben und als geladen merken\n $GLOBALS['loadedscripts'][$params['file']] = '<script type=\"text/javascript\" src=\"' . SCRIPTS_DIR . $params['file'] . '\"></script>';\n return NULL;\n }else{\n return false;\n }\n }\n}", "function getComponentFromURL($url, $component){\n\t$url_parts = parse_url($url);\n\tif($url_parts !== false && isset($url_parts[$component])){\n\t\treturn $url_parts[$component];\n\t}\n\n\treturn false;\n}", "public function is_valid_url()\r\n {\r\n return (!empty($this->internal_params['url']) &&\r\n piplapi_is_valid_url($this->internal_params['url']));\r\n }", "public function checkIfExternal($url)\n {\n $baseUrlTrimmed = str_replace(['http://', 'https://'], '', $this->baseUrl);\n if (preg_match(\"@http(s)?\\://$baseUrlTrimmed@\", $url)) {\n return false;\n } else {\n return true;\n }\n }", "function validate_url(&$tag, $out)\n\t{\n\t\t$url = trim($tag[1] ? $tag[1] : $out);\n\t\tif ('javascript:' == substr($url, 0, 11))\n\t\t\treturn false;\n\n\t\t// add a http to argument if there isn't one\n\t\tif ($tag[1]) {\n\t\t\tif (!preg_match('/^(\\w+:\\/\\/)/', $tag[1]))\n\t\t\t\t$tag[1] = 'http://'.$tag[1];\n\t\t} else {\n\t\t\t// no argument, append http to body\n\t\t\tif (is_string($tag[2]) &&\t\n\t\t\t\t!preg_match('/^(\\w+:\\/\\/)/', $tag[2])) \n\t\t\t{\n\t\t\t\t$tag[2] = 'http://'.$tag[2];\n\t\t\t}\n\t\t}\n\n\n\t\treturn true;\n\t}", "function get_exists($parameter){\n return key_exists($parameter, $_GET) && strlen(trim($_GET[$parameter])) > 0;\n}", "public function isRelative()\n {\n if (preg_match('~^https?:\\/\\/~i', $this->url) OR preg_match('~^\\/\\/~i', $this->url)) {\n return false;\n } else {\n return true;\n }\n }", "public function isStartingURL($value=null) {\r\n\t\tif (isset($value)) { $this->is_starting_point = $value ? true : false; }\r\n\t\treturn $this->is_starting_point;\r\n\t}", "public static function get_from_url()\n\t{\n\t\t//获取域内url get参数的解码后url\n\t\tif($url = sf\\getGPC('url', 'g'))\n\t\t{\n\t\t\t$url = sf\\decrypt_url($url);\n\t\t\t$from = parse_url(urldecode(rtrim($url, '?'))); \n\t\t\t\n\t\t\t//若url参数与当前文件同域则为登录/登录状态查询\n\t\t\tif($from['host'] == $_SERVER['HTTP_HOST'])\n\t\t\t{\n\t\t\t\treturn sf\\build_url($from);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function isTypo3Url() {\n\t\t// always uses the absRefPrefix in TSFE whereas for the URL generation itself\n\t\t// a proper absRefPrefix is always required by using getAbsRefPrefix\n\t\t$prefix = $this->tsfe->absRefPrefix . 'index.php';\n\t\treturn substr($this->urlToEncode, 0, strlen($prefix)) === $prefix;\n\t}", "function find_script($name, $append_keep = false, $base_url_code = 0)\n{\n $append = '';\n if ($append_keep) {\n $keep = symbol_tempcode('KEEP', array('1'));\n $append .= $keep->evaluate();\n }\n\n global $FIND_SCRIPT_CACHE;\n if ($FIND_SCRIPT_CACHE === array()) {\n if (function_exists('persistent_cache_get')) {\n $FIND_SCRIPT_CACHE = persistent_cache_get('SCRIPT_PLACES');\n }\n if ($FIND_SCRIPT_CACHE === null) {\n $FIND_SCRIPT_CACHE = array();\n }\n }\n if (isset($FIND_SCRIPT_CACHE[$name][$append_keep][$base_url_code])) {\n return $FIND_SCRIPT_CACHE[$name][$append_keep][$base_url_code] . $append;\n }\n\n $zones = array(get_zone_name());\n if (!in_safe_mode()) {\n $zones[] = 'data_custom';\n }\n $zones[] = 'data';\n $zones = array_merge($zones, find_all_zones());\n foreach ($zones as $zone) {\n if (is_file(get_file_base() . '/' . $zone . (($zone == '') ? '' : '/') . $name . '.php')) {\n $ret = get_base_url() . '/' . $zone . (($zone == '') ? '' : '/') . $name . '.php';\n $FIND_SCRIPT_CACHE[$name][$append_keep][$base_url_code] = $ret;\n if (function_exists('persistent_cache_set')) {\n persistent_cache_set('SCRIPT_PLACES', $FIND_SCRIPT_CACHE);\n }\n return $ret . $append;\n }\n }\n $ret = get_base_url(($base_url_code == 0) ? null : ($base_url_code == 2)) . '/site/' . $name . '.php';\n $FIND_SCRIPT_CACHE[$name][$append_keep][$base_url_code] = $ret;\n if (function_exists('persistent_cache_set')) {\n persistent_cache_set('SCRIPT_PLACES', $FIND_SCRIPT_CACHE);\n }\n return $ret . $append;\n}", "function existsInDatabase($url) {\n global $conn;\n\n $query = $conn->prepare(\"SELECT * FROM sites WHERE url = :url\");\n\n // avoid sql injections\n $query->bindParam(\":url\", $url);\n $query->execute();\n\n return $query->rowCount() != 0; // returns true if url exists in db\n}", "function script_name() {\n $protocol = 'http';\n if ( ( isset($_SERVER['HTTPS']) &&\n\t ($_SERVER['HTTPS'] == 'on') ) ||\n\t ( $_SERVER['SERVER_PORT'] == '443' ) ) {\n $protocol = 'https';\n }\n // return $protocol.'://' . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];\n return $protocol.'://www.oulunetelaisenpuuyritykset.com' . $_SERVER['SCRIPT_NAME'];\n}", "public function test_url_exist($url) {\n\n\t\t$headers = @get_headers($url);\n\n\t\tif ($headers === FALSE) {\n\n\t\t\treturn FALSE;\n\t\t} else {\n\n\t\t\treturn TRUE;\n\t\t}\n\t}", "public function urlExists($url) {\n\t\t$headers = @get_headers($url);\n\t\treturn is_array($headers) ? true : false;\n\t}", "function _has_protocol(string $url)\n {\n return preg_match('#^([a-z]+:)?//#i', $url);\n }", "public function getNotFoundScriptPath()\n {\n if (isset($this->raw->{'not-found'})) {\n return $this->raw->{'not-found'};\n }\n\n return null;\n }", "private function isCustomUrl()\n {\n return substr($this->baseUrl, 0, strlen(self::GCS_BASE_URL)) !== self::GCS_BASE_URL;\n }", "public function getOnLoadScript(): ?string;", "function getScript($id) {\n\n\tglobal $dbh;\n\t\n\t$authQuery = $dbh->prepare(\"\n\t\tSELECT * FROM SCRIPTS s\n\t\tWHERE s.id = :id\n\t\");\n\n $authQuery->bindParam(':id', $id);\n $authQuery->execute();\n $authRows = $authQuery->rowCount();\n\n if($authRows == 1) {\n \treturn $authQuery->fetch(PDO::FETCH_ASSOC);\n }\n\n}", "function urlcontains($string) {\n if (strpos('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'],$string) == true) {\n return true;\n }\n }", "private function isRemoteAsset($asset)\n {\n // Regex for 'http://' or 'https://'or '//'\n $re = '/^https?:\\/\\/.+|^\\/\\/.+/';\n // Return number of matches\n return preg_match($re, $asset);\n }", "public function getScriptFile()\n {\n if (file_exists($this->getFolder() . '/script.php')) {\n return $this->getFolder() . '/script.php';\n } elseif (file_exists($this->getFolder() . '/script.html')) {\n return $this->getFolder() . '/script.html';\n } elseif (file_exists($this->getFolder() . '/script.js')) {\n return $this->getFolder() . '/script.js';\n }\n return null;\n }", "public static function get_asset_relative_path( $base_url, $item_url ) {\n\t\t$base_url = preg_replace( '/^(https?:\\/\\/|\\/\\/)/i', '', $base_url );\n\n\t\t// Check if this is a local asset which we can include\n\t\t$src_parts = explode( $base_url, $item_url );\n\n\t\t// Get the trailing part of the local URL\n\t\t$maybe_relative = end( $src_parts );\n\n\t\tif ( ! file_exists( ABSPATH . $maybe_relative ) )\n\t\t\treturn false;\n\n\t\treturn $maybe_relative;\n\n\t}", "public static function locate_file_url($filename) {\r\n //$path = '/tpl/' . $dir . '/' . $file;\r\n $located = FALSE;\r\n if (file_exists(get_stylesheet_directory() . '/' . $filename)):\r\n $file = get_stylesheet_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(get_template_directory() . '/' . $filename)):\r\n $file = get_template_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(get_stylesheet_directory() . $filename)):\r\n $file = get_stylesheet_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(get_template_directory() . '/' . $filename)):\r\n $file = get_template_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(get_stylesheet_directory() . '/' . $filename)):\r\n $file = get_stylesheet_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(get_template_directory() . '/' . $filename)):\r\n $file = get_template_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(STYLESHEETPATH . '/' . $filename)):\r\n $file = get_stylesheet_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(TEMPLATEPATH . '/' . $filename)):\r\n $file = get_template_directory_uri() . '/' . $filename;\r\n return $located = true;\r\n elseif (file_exists(CWP_URL . '/' . $filename)):\r\n $file = CWP_URL . '/' . $filename;\r\n return $file;\r\n endif;\r\n if (!$located):\r\n return false;\r\n else :\r\n return $file;\r\n endif;\r\n }", "public function test_scripts_exists_on_unpkg() {\n\t\t$scripts = wp_scripts();\n\t\tforeach ( Use_unpkg::get_instance()->unpkg_scripts as $handle => $data ) {\n\t\t\tif ( in_array( $handle, array( 'twentysixteen-html5', 'html5', 'jquery-scrollto' ) ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$script = $scripts->query( $handle );\n\t\t\t$response = wp_remote_get( $script->src );\n\t\t\t$response_code = wp_remote_retrieve_response_code( $response );\n\t\t\t$this->assertEquals(\n\t\t\t\t200,\n\t\t\t\t$response_code,\n\t\t\t\t$handle . ' should exists on unpkg'\n\t\t\t);\n\t\t}\n\t}", "function remove_asset_version($src) {\n return $src ? esc_url(remove_query_arg('ver', $src)) : false;\n }", "public static function includeScriptDef($name)\n {\n $name = strtolower($name);\n $path = __DIR__ . \"/script/$name.php\";\n if (file_exists($path))\n {\n require_once($path);\n return true;\n }\n else\n {\n return false;\n }\n }", "private function extractCurrentScriptname(){\n $reg = '/^(http|https):\\/\\/(www\\.)?(.*\\/)*(?<script>[\\w]*.php|html|htm).*$/';\n preg_match( $reg, $this->url, $match );\n $this->scriptName = $match['script'];\n $this->urlNoScript = $this->protocol . '://' . $match[3];\n //kint::dump($match);\n return $this;\n }", "function get_url()\n {\n }" ]
[ "0.7383174", "0.68795043", "0.687784", "0.687784", "0.67987496", "0.65201247", "0.6308316", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6233022", "0.61503166", "0.6085929", "0.6025426", "0.5986629", "0.5985298", "0.5956962", "0.58710766", "0.5774096", "0.5733027", "0.57178074", "0.5689286", "0.5680649", "0.56731415", "0.56724346", "0.5662347", "0.5654161", "0.5626551", "0.5605647", "0.5596356", "0.5586127", "0.55670685", "0.5535821", "0.55276406", "0.55140483", "0.54909366", "0.5479429", "0.54776585", "0.5477631", "0.54700094", "0.5454718", "0.5439562", "0.5412877", "0.53997344", "0.53930795", "0.53915155", "0.534457", "0.5343033", "0.53296775", "0.5315583", "0.53040475", "0.52996963", "0.5280296", "0.527558", "0.5275036", "0.52748924", "0.5266388", "0.5241882", "0.52370137", "0.52066815", "0.5195501", "0.51890284", "0.5170607", "0.51588976", "0.5155194", "0.51464814", "0.5134787", "0.5129272", "0.5119822", "0.5113502", "0.5105982", "0.51041526", "0.50912744", "0.5081728", "0.50779897", "0.5076126", "0.50750065", "0.50735027", "0.5070713", "0.50597125", "0.50561965", "0.5042882", "0.5040874", "0.5039357", "0.5034268", "0.50264907", "0.5021934", "0.50190574", "0.50159043", "0.50148314", "0.50095254", "0.49963257", "0.49900362", "0.49766794", "0.49752864" ]
0.7406418
0
switches status to $mode and reload URL if available, returns false otherwise
public function switchMode($mode) { if (!$this->statusIsAvailable($mode)) { CertissimLogger::insertLogKwixo(__FILE__, "Le mode '$mode' n'est pas reconnu. 'test' défini à la place."); $mode = 'test'; } //switch the status to $mode $this->setStatus($mode); //reload URLs $this->loadURLs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMode($mode)\n {\n $this->_isLiveMode = ($mode == self::LIVE);\n }", "public static function checkoutMode() {\n\n \tif ( file_exists(PassThru::$_realPath.'/checkoutmode') ) {\n \t\tLog::out(\"passthru - checkoutMode positive\");\n \t\treturn true;\n \t}\n \n \treturn false;\n \n }", "private function loadURLs() {\r\n $status = $this->statusIsAvailable($this->getStatus()) ? $this->getStatus() : 'test';\r\n\r\n\tforeach ($this->_url as $scriptname => $modes)\r\n\t{\r\n\t\t$this->url[$scriptname] = $modes[$status];\r\n\t}\r\n }", "function api_mode($ask_mode) {\n\tif(trim(strtolower(chevereto_config('api_mode'))) == $ask_mode) return true;\n}", "function _owp_process_save() { // cause I really like function named \"%process%\", so accurate...\n\n\t$opt = (int) get_option( 'owp_toggle_offline_mod' );\n\n\t/**\n\t * You could say, what the hell !\n\t * offline mod && nonce ?\n\t * Yes Sir. Don't ask don't tell !\n\t */\n\tif ( isset( $_GET['toggle-offline-nonce'] ) && wp_verify_nonce( $_GET['toggle-offline-nonce'], 'toggle-offline' ) ) {\n\t\tswitch ( $opt ) {\n\t\t\tcase 0:\n\t\t\t\tupdate_option( 'owp_toggle_offline_mod', 1, 'no' );\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tupdate_option( 'owp_toggle_offline_mod', 0, 'no' );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\n\t\t$params = [ 'toggle-offline', 'toggle-offline-nonce' ]; // avoid the annoying part, like if you have to reload page for other purpose\n\t\twp_safe_redirect( remove_query_arg( $params ) );\n\t\texit;\n\t}\n\n\treturn false;\n}", "public function checkUrl()\n\t{\n\t\t$url = $this->input->get('url', '', 'raw');\n\n\t\t/** @var \\Akeeba\\Backup\\Admin\\Model\\Transfer $model */\n\t\t$model = $this->getModel();\n\t\t$model->savestate(true);\n\t\t$result = $model->checkAndCleanUrl($url);\n\n\t\t$this->container->platform->setSessionVar('transfer.url', $result['url'], 'akeeba');\n\t\t$this->container->platform->setSessionVar('transfer.url_status', $result['status'], 'akeeba');\n\n\t\t@ob_end_clean();\n\t\techo '###' . json_encode($result) . '###';\n\t\t$this->container->platform->closeApplication();\n\t}", "public function isActive($mode = null)\n {\n if ($mode !== null && isset($_GET[$this->name])) {\n return $_GET[$this->name] == $mode;\n }\n\n return isset($_GET[$this->name]) ? $_GET[$this->name] : false;\n }", "function devmode($test_mode=null)\n{\n\t$ci =& get_instance();\n $servers = $ci->config->item('servers');\n\n // To make testing more accurate, get rid of the http://, etc.\n $current_server = strtolower(trim(base_url(), ' /'));\n $current_server = str_replace('http://', '', $current_server);\n $current_server = str_replace('https://', '', $current_server);\n\n\n //$current_mode = array_search($current_server, $servers);\n \n $current_mode = '';\n \n // Because the server name could contain www. or subdomains,\n // we need to search each item to see if it contains the string.\n foreach ($servers as $name => $domain)\n {\n if (!empty($domain))\n { \n if (strpos($current_server, $domain) !== FALSE) {\n $current_mode = $name;\n break;\n }\n }\n }\n \n\n // Time to figure out what to return.\n if (empty($test_mode))\n {\n // Not performing a check, so just return the current value\n return $current_mode;\n } else\n {\n return $current_mode == $test_mode;\n }\n \n}", "public function reload()\n {\n if ($this->config['server_type'] == 'process') {\n $pid = $this->getPid('worker');\n } else {\n $pid = $this->getPid('master');\n }\n\n if (empty($pid)) {\n echo \"{$this->config['process_name']} has not process\" . PHP_EOL;\n return false;\n }\n\n exec(\"kill -USR1 \" . implode(' ', $pid), $output, $return);\n\n if ($return === false) {\n echo \"{$this->config['process_name']} reload fail\" . PHP_EOL;\n return false;\n }\n echo \"{$this->config['process_name']} reload success\" . PHP_EOL;\n return true;\n }", "public static function reloadDataSite(): bool\n {\n }", "public function reload() {\n $this->init();\n redirect('./');\n }", "public function changeStatusToActive($modeID){\n try{\n $stmt = $this->db->prepare(\"UPDATE Modes\n Set Modestatus = 1\n WHERE ModeID=:modeID\");\n if($stmt->execute(array(':modeID'=>$modeID))){\n return true;\n }else{\n return false;\n }\n }catch(PDOException $e){\n echo $e->getMessage();\n }\n }", "function Get_Mode($url)\n\t{\n\t\t\n\t\tif (preg_match('/\\.ds(\\d+)\\.tss/', $url))\n\t\t{\n\t\t\t$mode = MODE_LOCAL;\n\t\t}\n\t\telseif (preg_match('/^rc\\./', $url))\n\t\t{\n\t\t\t$mode = MODE_RC;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$mode = MODE_LIVE;\n\t\t}\n\t\t\n\t\treturn($mode);\n\t\t\n\t}", "function sendRequest(){\n $this->fpopened = $this->fopen($this->urltoopen);\n if ($this->fpopened!==false) return true;\n return false;\n }", "private function loadURLs()\r\n\t{\r\n\t\t$status = $this->statusIsAvailable($this->getStatus()) ? $this->getStatus() : 'test';\r\n\r\n\t\tforeach ($this->url as $scriptname => $modes)\r\n\t\t\t$this->url_script[$scriptname] = $modes[$status];\r\n\t}", "function ltiLaunchCheck() {\n global $CFG, $PDO;\n if ( ! ltiIsRequest() ) return false;\n $session_id = ltiSetupSession($PDO);\n if ( $session_id === false ) return false;\n\n // Redirect back to ourselves...\n $url = curPageURL();\n $query = false;\n if ( isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0) {\n $query = true;\n $url .= '?' . $_SERVER['QUERY_STRING'];\n }\n\n $location = sessionize($url);\n session_write_close(); // To avoid any race conditions...\n\n if ( headers_sent() ) {\n echo('<p><a href=\"'.$url.'\">Click to continue</a></p>');\n } else { \n header('Location: '.$location);\n }\n exit();\n}", "public function changeMode($path, $mode);", "private function checkUrlStatus()\n {\n $request = curl_init($this->url);\n\n curl_setopt($request, CURLOPT_HEADER, true);\n curl_setopt($request, CURLOPT_NOBODY, true);\n curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($request, CURLOPT_TIMEOUT, 10);\n\n curl_exec($request);\n $httpCode = curl_getinfo($request, CURLINFO_HTTP_CODE);\n curl_close($request);\n\n if ($httpCode >= 200 && $httpCode < 400) {\n return true;\n }\n\n return false;\n }", "public function changeStatus(): void\n {\n if ('online' === $this->online_status) {\n if ($this->reference_id > 0) {\n $query = 'UPDATE '. rex::getTablePrefix() .'d2u_references_references '\n .\"SET online_status = 'offline' \"\n .'WHERE reference_id = '. $this->reference_id;\n $result = rex_sql::factory();\n $result->setQuery($query);\n }\n $this->online_status = 'offline';\n } else {\n if ($this->reference_id > 0) {\n $query = 'UPDATE '. rex::getTablePrefix() .'d2u_references_references '\n .\"SET online_status = 'online' \"\n .'WHERE reference_id = '. $this->reference_id;\n $result = rex_sql::factory();\n $result->setQuery($query);\n }\n $this->online_status = 'online';\n }\n\n // Don't forget to regenerate URL cache to make online machine available\n if (rex_addon::get('url')->isAvailable()) {\n d2u_addon_backend_helper::generateUrlCache('reference_id');\n d2u_addon_backend_helper::generateUrlCache('tag_id');\n }\n }", "function canHandleCurrentUrl() ;", "protected final function reload() {\n\t\treturn $this->redirect(Router::getPath());\n\t}", "public function isMode($mode);", "private function _checkServerIsOnline($url){\n\t\treturn true;\n\t\tini_set(\"default_socket_timeout\",\"05\");\n set_time_limit(5);\n $f=fopen($url,\"r\");\n $r=fread($f,1000);\n fclose($f);\n return (strlen($r)>1) ? true : false;\n\t}", "public function reload()\n {\n $ui = $this->getEnvironment()->getModule('ui');\n\n if (is_object($ui) && $ui instanceof GridGallery_Ui_Module) {\n $this->load($ui);\n\n return true;\n }\n\n return false;\n }", "public function canHandleCurrentUrl() {}", "public function setBootloaderMode($mode)\n {\n $payload = '';\n $payload .= pack('C', $mode);\n\n $data = $this->sendRequest(self::FUNCTION_SET_BOOTLOADER_MODE, $payload);\n\n $payload = unpack('C1status', $data);\n\n return $payload['status'];\n }", "public function loadSettings() {\n $this->serverURL = Yii::$app->getModule('rocketchat')->settings->get('serverURL');\n return true;\n }", "public function changeStatusToInactive($modeID){\n try{\n $stmt = $this->db->prepare(\"UPDATE Modes\n Set Modestatus = 0\n WHERE ModeID=:modeID\");\n if($stmt->execute(array(':modeID'=>$modeID))){\n return true;\n }else{\n return false;\n }\n }catch(PDOException $e){\n echo $e->getMessage();\n }\n }", "public function check_request($mode = rcube_ui::INPUT_POST)\n {\n $token = rcube_ui::get_input_value('_token', $mode);\n $sess_id = $_COOKIE[ini_get('session.name')];\n return !empty($sess_id) && $token == $this->get_request_token();\n }", "private function toggleTunnel(){\n\t\tif(isset($_POST['tunnelid']) && is_numeric($_POST['tunnelid'])){\n\t\t\tforeach($this->data->tunnels->tunnel as $tunnel){\n\t\t\t\tif((string)$tunnel['id'] == $_POST['tunnelid']){\n\t\t\t\t\t\n\t\t\t\t\tif((string)$tunnel['enable'] == 'true'){\n\t\t\t\t\t\t$tunnel['enable'] = 'false';\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$tunnel['enable'] = 'true';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->config->saveConfig();\n\t\t\t\t\techo '<reply action=\"ok\"/>';\n\t\t\t\t\treturn true;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthrow new Exception('The specified tunnel could not be found');\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('An invalid tunnel identifier was submitted');\n\t\t}\n\t}", "public function setReloadOnUpdate($flag = true)\n {\n $this->reloadOnUpdate = (boolean)$flag;\n }", "public function onUpdate( $mode, $link_id, $forum_id, $topic_id, $post_id = 0 ) {\n\t\treturn true;\n\t}", "function reload_firewall_process() {\n $cmdStart = \"/etc/init.d/firewall reload\";\n exec($cmdStart, $output, $return_reload);\n\n\texec(\"logger -t web -p 7 \\\"\".$cmdStart.\"\\\"\");\n if((0 === $return_reload)){\n return true;\n }else{\n return false;\n }\n}", "private function reloadConfig($mdlCP)\n {\n $backend = new Backend();\n \n // generate captive portal config\n $bckresult = trim($backend->configdRun('template reload OPNsense/Captiveportal'));\n if ($bckresult == \"OK\") {\n if ($mdlCP->isEnabled()) {\n $bckresult = trim($backend->configdRun(\"captiveportal restart\"));\n if ($bckresult == \"OK\") {\n return true;\n }\n }\n } \n\n return false;\n }", "private function check_url() {\n\t\t$check_url_object = new Router();\n\t\t$this->loader->add_action( 'init', $check_url_object, 'boot' );\n\t}", "function setDisplayMode($a_mode)\n\t{\n\t\t// security\n\t\tif ($a_mode != \"view\" and $a_mode != \"setup\")\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->display_mode = $a_mode;\n\t\t$_SESSION[\"display_mode\"] = $this->display_mode;\n\n\t\treturn true;\n\t}", "public function reInit(): bool {}", "public function action_switch_mode()\n {\n $session = Session::instance();\n $session->set('mode', ($session->get('mode') == 'daily' ? 'monthly' : 'daily'));\n }", "function url($url, $mode) {\n\tglobal $gfe_url, $nice_url, $root_filename, $sort_by, $sort_order;\n\t$temp_url = '';\n\t$temp_url_nice = '';\n\t$GET_sortby = trim($_GET['by']);\n\t$GET_sortorder = trim($_GET['order']);\n\t$url = urldecode($url);\n\t$url = urlencode($url);\n\t$url = str_replace('%2F', '/', $url);\n\tswitch($mode) {\n\t\tcase 'dir':\n\t\t\tif($url == 'home') {\n\t\t\t\t$temp_url = $gfe_url.'/'.$root_filename;\n\t\t\t\t$temp_url_nice = $gfe_url.'/';\n\t\t\t} else {\n\t\t\t\t$temp_url = \"$gfe_url/$root_filename?dir=$url\";\n\t\t\t\t$temp_url_nice = \"$gfe_url/browse/$url/\";\n\t\t\t}\n\t\t\tif(!empty($GET_sortby)) {\n\t\t\t\tif(strpos($temp_url, '?') === false) {\n\t\t\t\t\t$temp_url .= \"?by=$sort_by&amp;order=$GET_sortorder\";\n\t\t\t\t} else {\n\t\t\t\t\t$temp_url .= \"&amp;by=$sort_by&amp;order=$GET_sortorder\";\n\t\t\t\t}\n\t\t\t\t$temp_url_nice .= \"sortby/$sort_by/sortorder/$GET_sortorder/\";\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'file':\n\t\t\t$temp_url = \"$gfe_url/view.php?file=$url\";\n\t\t\t$temp_url_nice = \"$gfe_url/viewing/$url/\";\n\t\t\tbreak;\n\t\tcase 'download';\n\t\t\t$temp_url = \"$gfe_url/view.php?file=$url&amp;dl=1\";\n\t\t\t$temp_url_nice = \"$gfe_url/download/$url/\";\n\t\t\tbreak;\n\t}\n\tif($nice_url) {\n\t\treturn $temp_url_nice;\n\t} else {\n\t\treturn $temp_url;\n\t}\n}", "private function callStatus() {\n try {\n $this->status = $this->client->request('GET', $this->url->full_url, [\n 'allow_redirects' => false\n ]);\n } catch (\\Exception $ex) {\n $this->status = $ex->getResponse();\n }\n }", "public static function isLiveMode()\n {\n return static::getInstance()->blnLiveMode ? true : false;\n }", "public function doesReloadOnChange(): bool\n {\n return $this->config['onChange'] === 'reload';\n }", "public function isAvailable()\n {\n if (empty($this->_url)) {\n return false;\n } // if\n\n try {\n $this->sendrequest('status', null);\n } catch (Exception $e) {\n return false;\n }\n\n return true;\n }", "protected function conn_open($url) {\n\t\t$this->url = $url;\n\n\t\t$conn = static::conn_get($url);\n\t\tif ($conn === false) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->conn = $conn;\n\t\treturn true;\n\t}", "private function updateStatus()\n {\n $this->setStatus(\n socket_get_status(pfsockopen($this->uri, $this->port))\n );\n }", "public function setIsLoadScript($status)\n {\n $this->isLoadScript = $status;\n }", "function is_failing($url)\n{\n global $SITE_INFO;\n if ($SITE_INFO['failover_mode'] == 'auto_off') {\n set_failover_mode('auto_on');\n\n $scan_url = $SITE_INFO['base_url'] . '/data/failover_script.php';\n\n $base_url = parse_url($SITE_INFO['base_url']);\n $subject = 'Failover mode activated for ' . $base_url['host'];\n $message = \"Failover mode activated when running the following check:\\n\" . $url . \"\\n\\nWhen the problem has been corrected it will automatically disable.\\nIf this is a false alarm somehow you can force failover mode off manually by setting \\$SITE_INFO['failover_mode']='off'; in _config.php\\n\\nYou xan force an immediate rescan from:\\n{$scan_url}\";\n send_failover_email($subject, $message);\n }\n\n exit();\n}", "public function initialize($isEditMode)\n {\n if($this->version() !== '0.0.0' && $isEditMode === false)\n return true;\n\n // simpledb-base.php sets $status\n $status = $this->executeScript(sprintf('%s/upgrade/db/simpledb/simpledb-base.php', $this->config->paths->configs), 'simpledb');\n return $status;\n }", "function setServerMode($servermode = 'live'){\n\t\t$this->PAYU_BASE_URL = $servermode == 'test' ? 'https://test.payu.in/_payment' : 'https://secure.payu.in/_payment';\n\t}", "function page_manager_poll_enable($cache, $status) {\n variable_set('page_manager_poll_disabled', $status);\n // Set a global flag so that the menu routine knows it needs\n // to set a message if enabling cannot be done.\n if (!$status) {\n $GLOBALS['page_manager_enabling_poll'] = TRUE;\n }\n}", "public function set_mode($mode, $userid = false) {\n global $SESSION, $USER;\n\n $possiblemodes = $this->get_possible_modes();\n if (in_array($mode, $possiblemodes)) {\n $SESSION->homeworkblockmode = $mode;\n\n if ($userid) {\n $SESSION->homeworkblockuser = $userid;\n } else {\n $SESSION->homeworkblockuser = $USER->id;\n }\n\n return true;\n }\n return false;\n }", "function reload () {\n\t\t\t$cmd = \"sh \".NEXUS.\"/core/bin/scripts/exec.sh /bin/bash /etc/squid3/squid.reload\";\n\t\t\t$ret = shell_exec(html_entity_decode($cmd)).\"\\n\";\n\t\t}", "public function testChangeMode()\n {\n $client = new Client($this->options);\n\n $this->assertTrue($client->setMode('production'));\n\n $this->assertTrue(($client->getMode() === 'production'));\n }", "protected function isUrlActive()\n {\n $route = Url::route($this->url);\n if($route) return App::router()->getCurrent()->matches($route);\n return false;\n }", "public function setMode($mode)\n {\n if (Router::isMode($mode)) {\n $this->_mode = $mode;\n }\n\n return $this->_mode;\n }", "public function runAPI (\n\t)\t\t\t\t\t// RETURNS <bool> TRUE on success, FALSE on failure.\n\t\n\t// $this->runAPI()\n\t{\n\t\t// Update the network connection data\n\t\tif(Network::setData($this->data['handle'], $this->data['name'], $this->data['url'], $this->data['key']))\n\t\t{\n\t\t\t// Update the network clearance level\n\t\t\tif(Network::setClearance($this->data['handle'], (int) $this->data['clearance']))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private function setMode() {\r\n\t\t$this->mode = substr($this->mode, -1);\r\n\t}", "public function run() : bool\n {\n $uri = $this->getURI();\n \n $result = $this->setRouting($uri, $this->routerEntity->getRoutes());\n \n if ($result){\n return true;\n }else{\n return false;\n }\n }", "public function setMode($isLocal){\n $this->isLocalMode = (bool)$isLocal;\n }", "function toggleActivated () {\n if (!isset($_SESSION['admin_auth']) OR empty($_SESSION['admin_auth']))\n\treturn false;\n\n // get name and type\n $type = (isset($_GET['type']) and $_GET['type'] == 'app')\n\t? 'app' : 'style';\n $name = (isset($_GET['name'])) ? $_GET['name'] : '';\n if (empty($name)) {\n\t$_SESSION['admin_error'] = 'TOGGLEACTIVATED__ERROR';\n\treturn false;\n }\n\n // get object\n $Obj = NULL;\n switch ($type) {\n case 'app':\n\t$Obj = new App($name);\n\tbreak;\n case 'style':\n\t$Obj = new Style($name);\n\tbreak;\n default:\n\t$_SESSION['admin_error'] = 'TOGGLEACTIVATED__ERROR';\n\treturn false;\n }\n\n // Toggle\n if (!$Obj->toggleActivated()) {\n\t// error\n\t$_SESSION['admin_error'] = 'TOGGLEACTIVATED__ERROR';\n\treturn false;\n }\n\n $_SESSION['admin_info'] = 'TOGGLEACTIVATED__INFO';\n header('Location:?event=show'.(($type == 'app') ? 'Apps' : 'Styles'));\n exit;\n}", "function is_connected(){\n\t\tif (!isset($_SESSION['statut'])) {\n\t\t\t?>\n <script>\n window.location=\"index.php\";\n </script>\n <?php\n\t\t}\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}", "private function getUrl(){\r\n\t\tif ($GLOBALS['TSFE']->absRefPrefix) {\r\n\t\t\t$this->url = $GLOBALS['TSFE']->absRefPrefix;\r\n\t\t\treturn true;\r\n\t\t} else if ($GLOBALS['TSFE']->config['config']['baseURL']) {\r\n\t\t\t$this->url = $GLOBALS['TSFE']->config['config']['baseURL'];\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function update_status();", "function setMode($mode)\n {\n $this->mode = $mode;\n $this->determineRequiredPermission();\n }", "public function init($fspath /* can be string or handle*/, $mode = 'r+') : bool\n {\n $mode = str_replace('b', '', $mode);\n $idx = array_search($mode, ['r','r+', 'w', 'w+', 'a', 'a+','+']);\n if ($idx === false)\n return false; // unknown mode\n\n if (!is_string($fspath))\n {\n $this->file = $fspath;\n return true;\n }\n\n $exists = file_exists($fspath);\n if (IS_DEBUG())\n $this->file = fopen($fspath, $mode . 'b');\n else\n $this->file = @fopen($fspath, $mode . 'b');\n\n if ($exists)\n fseek($this->file, 0, SEEK_SET);\n\n return true;\n }", "function reload();", "public function isModeActive($key)\n {\n $params = request()->input();\n\n if (isset($params['mode']) && $key == $params['mode'])\n return true;\n\n return false;\n }", "public function isAutoReload()\n {\n return $this->autoReload;\n }", "public function open() {\n $user = Auth::user();\n // check authority\n if (!$user->operation(16)) {\n return false;\n }\n\n // change question status\n $this->status = 1;\n $this->save();\n\n return true;\n }", "function set_failover_mode($new_mode)\n{\n global $FILE_BASE, $SITE_INFO;\n\n $path = $FILE_BASE . '/_config.php';\n $config_contents = file_get_contents($path);\n $orig_config_contents = $config_contents;\n $config_contents = preg_replace('#^(\\$SITE_INFO\\[\\'failover_mode\\'\\]\\s*=\\s*\\')[^\\']+(\\';)#m', '$1' . addslashes($new_mode) . '$2', $config_contents);\n\n if ($orig_config_contents == $config_contents) { // No change needed\n return;\n }\n\n file_put_contents($path, $config_contents);\n\n $SITE_INFO['failover_mode'] = $new_mode;\n\n if ((!empty($SITE_INFO['failover_apache_rewritemap_file'])) && (is_file($FILE_BASE . '/data_custom/failover_rewritemap.txt'))) {\n $htaccess_contents = file_get_contents($FILE_BASE . '/.htaccess');\n\n $htaccess_contents = preg_replace('#^RewriteMap.*\\n+#s', '', $htaccess_contents);\n\n $new_code = '#FAILOVER STARTS' . \"\\n\";\n if ($new_mode == 'auto_on' || $new_mode == 'on') {\n $new_code .= 'RewriteEngine on' . \"\\n\";\n $new_code .= 'RewriteRule ^((caches|themes|uploads|data|data_custom)/.*) \\$1 [L]' . \"\\n\";\n\n if ($SITE_INFO['failover_apache_rewritemap_file'] == '-') {\n $new_code .= 'RewriteCond %{QUERY_STRING} !keep_failover [NC]' . \"\\n\";\n $new_code .= 'RewriteRule ^(.*) sources/static_cache.php [L,QSA]' . \"\\n\";\n } else {\n // The set of browsers\n $browsers = array(\n // Implication by technology claims\n 'WML',\n 'WAP',\n 'Wap',\n 'MIDP', // Mobile Information Device Profile\n\n // Generics\n 'Mobile',\n 'Smartphone',\n 'WebTV',\n\n // Well known/important browsers/brands\n 'Mobile Safari', // Usually Android\n 'Android',\n 'iPhone',\n 'iPod',\n 'Opera Mobi',\n 'Opera Mini',\n 'BlackBerry',\n 'Windows Phone',\n 'nook browser', // Barnes and Noble\n );\n $regexp = '(' . str_replace(' ', '\\ ', implode('|', $browsers)) . ')';\n\n //$new_code .= 'RewriteMap failover_mode txt:' . $FILE_BASE . '/data_custom/failover_rewritemap.txt' . \"\\n\"; Has to be defined in main Apache config\n $new_code .= 'RewriteCond %{QUERY_STRING} !keep_failover [NC]' . \"\\n\";\n $new_code .= 'RewriteRule ^(.*) ${failover_mode:\\$1} [L,QSA]' . \"\\n\";\n //$new_code .= 'RewriteMap failover_mode__mobile txt:' . $FILE_BASE . '/data_custom/failover_rewritemap__mobile.txt' . \"\\n\";\n $new_code .= 'RewriteCond %{QUERY_STRING} !keep_failover [NC]' . \"\\n\";\n $new_code .= 'RewriteCond %{HTTP_USER_AGENT} ' . $regexp . \"\\n\";\n $new_code .= 'RewriteRule ^(.*) ${failover_mode__mobile:\\$1} [L,QSA]' . \"\\n\";\n }\n }\n $new_code .= '#FAILOVER ENDS' . \"\\n\\n\";\n\n $htaccess_contents = preg_replace('/#FAILOVER STARTS.*#FAILOVER ENDS\\n+/s', $new_code, $htaccess_contents);\n\n file_put_contents($FILE_BASE . '/.htaccess', $htaccess_contents);\n }\n}", "private function setStatus($status)\n {\n $this->request->request(\n \"sites/{$this->site->id}/settings\",\n ['method' => 'put', 'form_params' => ['allow_cacheserver' => $status,],]\n );\n }", "public function devmode() {\n\n\t\t// Only proceed if URL querystring cotnains \"devmode=true\"\n\t\tif ( isset($_GET['devmode']) && 'true' == $_GET['devmode'] ) {\n\n\t\t\t// Output user history if URL querystring contains 'output=history'\n\t\t\tif ( isset($_GET['output']) && 'history' == $_GET['output'] )\n\t\t\t\tprint_r( $this->get_user_history() );\n\n\t\t\t// Output user $_SESSION contents if URL querystring contains 'output=session'\n\t\t\tif ( isset($_GET['output']) && 'session' == $_GET['output'] )\n\t\t\t\tprint_r( it_exchange_get_session() );\n\n\t\t\t// Clear user_history and dump us back at the homepage if URL querystring contains 'history=reset'\n\t\t\tif ( isset($_GET['history']) && 'reset' == $_GET['history'] ) {\n\t\t\t\tit_exchange_clear_session_data( 'user_history' );\n\t\t\t\twp_redirect( site_url() );\n\t\t\t\texit;\n\t\t\t}\n\n\t\t}\n\n\t}", "private function setMode($mode)\n {\n $this->mode = $mode;\n }", "public function toggleViewmode()\n {\n $viewmode = ee()->input->cookie('ee_cp_viewmode');\n\n // If it doesn't exist, or it's set to classic, flip the sidebar off.\n if (empty($viewmode) || $viewmode == 'classic') {\n $viewmode = 'jumpmenu';\n } else {\n $viewmode = 'classic';\n }\n\n ee()->input->set_cookie('ee_cp_viewmode', $viewmode, 31104000);\n\n ee()->functions->redirect(ee('CP/URL')->make('homepage'));\n }", "protected function _checkAndReopen()\n\t{\n\t\t$streamMeta = stream_get_meta_data( $this->_stream );\n\t\t$uri = $streamMeta[ 'uri' ];\n\t\tif ( $uri[ 0 ] == '/' )\n\t\t{\n\t\t\tclearstatcache( false, $streamMeta[ 'uri' ] );\n\t\t\tif ( !file_exists( $streamMeta[ 'uri' ] ) )\n\t\t\t{\n\t\t\t\t$this->_open( $uri );\n\t\t\t}\n\t\t}\n\t}", "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}", "private function isAliveRequest() : bool {\n return\n $_SERVER['REQUEST_METHOD'] === \"GET\"\n &&\n $_SERVER['DOCUMENT_URI'] === '/status';\n }", "public function save() {\n Yii::$app->getModule('rocketchat')->settings->set('serverURL', rtrim($this->serverURL, '/'));\n return true;\n }", "public function setViewmode()\n {\n $viewmode = ee()->input->post('ee_cp_viewmode');\n if (in_array($viewmode, ['classic', 'jumpmenu'])) {\n ee()->input->set_cookie('ee_cp_viewmode', $viewmode, 31104000);\n }\n ee()->functions->redirect(ee('CP/URL')->make('homepage'));\n }", "private function checkConnection(){\n\t\t\t\n\t\t\t$request = $this->url.$this->getMode(\"version\").\"?\".$this->key_string;\n\t\t\t$this->http->setURL($request);\n\t\t\t$response = $this->http->send();\n\t\t\t//echo $this->http->HTMLizeErrlog();\n\t\t\t$this->bn_version = str_replace(\"_\", \".\", $response[\"version\"]);\n\n\t\t\treturn $this->http->status;\n\t\t}", "function TogglePlanStatus()\n\t{\n\t\t// Check user authorization and permissions\n\t\tAuthenticatedUser()->CheckAuth();\n\t\tAuthenticatedUser()->PermissionOrDie(PERMISSION_RATE_MANAGEMENT | PERMISSION_ADMIN);\n\n\t\t$bolGOD\t= AuthenticatedUser()->UserHasPerm(PERMISSION_GOD);\n\n\t\tif (!DBO()->RatePlan->Load())\n\t\t{\n\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: Could not find RatePlan with Id: \". DBO()->RatePlan->Id->Value);\n\t\t\treturn TRUE;\n\t\t}\n\n\t\tTransactionStart();\n\n\n\t\t// The status of a RatePlan is stored in the Archived property of the RatePlan table\n\t\tswitch (DBO()->RatePlan->Archived->Value)\n\t\t{\n\t\t\tcase RATE_STATUS_ACTIVE:\n\t\t\t\tDBO()->RatePlan->Archived = RATE_STATUS_ARCHIVED;\n\n\t\t\t\t// Deactivate the Plan Brochure & Auth Script\n\t\t\t\tbreak;\n\n\t\t\tcase RATE_STATUS_ARCHIVED:\n\t\t\t\tDBO()->RatePlan->Archived = RATE_STATUS_ACTIVE;\n\n\t\t\t\t// Reactivate the Plan Brochure & Auth Script\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t// Cannot toggle from whatever the status currently is\n\t\t\t\tTransactionRollback();\n\t\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: The RatePlan's status cannot be changed\");\n\t\t\t\treturn TRUE;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\t// Re/Activate the Plan Brochure & Auth Script\n\t\t\tif (DBO()->RatePlan->brochure_document_id->Value)\n\t\t\t{\n\t\t\t\t$objBrochure\t= new Document(array('id'=>DBO()->RatePlan->brochure_document_id->Value), true);\n\t\t\t\tif ($objBrochure->status_id !== STATUS_ACTIVE)\n\t\t\t\t{\n\t\t\t\t\t$objBrochure->setStatus(STATUS_ACTIVE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (DBO()->RatePlan->auth_script_document_id->Value)\n\t\t\t{\n\t\t\t\t$objAuthScript\t= new Document(array('id'=>DBO()->RatePlan->auth_script_document_id->Value), true);\n\t\t\t\tif ($objAuthScript->status_id !== STATUS_ACTIVE)\n\t\t\t\t{\n\t\t\t\t\t$objAuthScript->setStatus(STATUS_ACTIVE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $eException)\n\t\t{\n\t\t\tTransactionRollback();\n\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: Unable to modify the Plan's Brochure and Auth Script\".($bolGOD ? \"\\n\".$eException->__toString() : ''));\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t// Check that the plan isn't one of the default plans for the Customer Group\n\t\tDBL()->default_rate_plan->rate_plan = DBO()->RatePlan->Id->Value;\n\t\tDBL()->default_rate_plan->Load();\n\t\tif (DBL()->default_rate_plan->RecordCount() > 0)\n\t\t{\n\t\t\tTransactionRollback();\n\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: This Plan is being used as a default rate plan and cannot have its status changed\");\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t// Save the changes\n\t\tif (!DBO()->RatePlan->Save())\n\t\t{\n\t\t\tTransactionRollback();\n\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: Saving the status change failed, unexpectedly. Please notify your system administrator\");\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t$strSuccessMsg = \"Status change was successful\";\n\n\t\tif (DBO()->AlternateRatePlan->Id->Value && DBO()->RatePlan->Archived->Value == RATE_STATUS_ARCHIVED)\n\t\t{\n\t\t\t// Associate the Alternate RatePlan with all the dealers that are associated with the rate plan which was just archived\n\t\t\t$intArchivedPlanId\t= DBO()->RatePlan->Id->Value;\n\t\t\t$intAlternatePlanId\t= DBO()->AlternateRatePlan->Id->Value;\n\n\t\t\t$objQuery = new Query();\n\n\t\t\t$strQuery = \"\tINSERT INTO dealer_rate_plan (dealer_id, rate_plan_id)\n\t\t\t\t\t\t\tSELECT DISTINCT drp.dealer_id, $intAlternatePlanId\n\t\t\t\t\t\t\tFROM (\tSELECT dealer_id\n\t\t\t\t\t\t\t\t\tFROM dealer_rate_plan\n\t\t\t\t\t\t\t\t\tWHERE dealer_id IN (SELECT dealer_id FROM dealer_rate_plan WHERE rate_plan_id = $intArchivedPlanId)\n\t\t\t\t\t\t\t\t\tAND dealer_id NOT IN (SELECT dealer_id FROM dealer_rate_plan WHERE rate_plan_id = $intAlternatePlanId)\n\t\t\t\t\t\t\t\t) AS drp;\n\t\t\t\t\t\t\t\";\n\t\t\tif ($objQuery->Execute($strQuery) === FALSE)\n\t\t\t{\n\t\t\t\tTransactionRollback();\n\t\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: Could not add records to the dealer_rate_plan table to associate the alternate plan\");\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\n\t\tTransactionCommit();\n\n\t\t// Update the status of the RatePlan in the Sales database, if there is one\n\t\tif (Flex_Module::isActive(FLEX_MODULE_SALES_PORTAL))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tCli_App_Sales::pushAll();\n\t\t\t}\n\t\t\tcatch (Exception $e)\n\t\t\t{\n\t\t\t\t// Pushing the data failed\n\t\t\t\t$strSuccessMsg .= \"<br /><span class='warning'>WARNING: Pushing the data from Flex to the Sales database, failed. Contact your system administrators to have them manually trigger the data push.<br />Error message: \". htmlspecialchars($e->getMessage()) .\"</span>\";\n\t\t\t}\n\t\t}\n\n\t\t// Everything worked\n\t\tAjax()->AddCommand(\"AlertReload\", $strSuccessMsg);\n\n\t\treturn TRUE;\n\t}", "public function user_mode() {\n if( (!isset($_SESSION[\"admin\"][\"user_mode\"])) || ($_SESSION[\"admin\"][\"user_mode\"] != 1) ) {\n $_SESSION[\"admin\"][\"user_mode\"] = 1;\n } elseif($_SESSION[\"admin\"][\"user_mode\"] == 1) {\n $_SESSION[\"admin\"][\"user_mode\"] = 0;\n }\n }", "public function testRunningInSafeMode()\n\t{\n\t\t$_GET['safe_mode'] = '1';\n\n\t\t$this->restartApplication();\n\n\t\t$this->call('orchestra::credential@login', array(), 'GET');\n\t\t$this->assertEquals('Y', \\Session::get('safe_mode'));\n\n\t\t$_GET['safe_mode'] = '0';\n\n\t\t$this->restartApplication();\n\n\t\t$this->call('orchestra::credential@login', array(), 'GET');\n\t\t$this->assertNull(\\Session::get('safe_mode'));\n\t}", "public function stream_open(string $path, string $mode): bool\n {\n $this->content = '';\n $this->position = 0;\n return true;\n }", "public function changeOperationMode($mode) {\n\t\t$modes = ['forwarding', 'operational', 'service'];\n\t\tif (!in_array($mode, $modes, true)) {\n\t\t\treturn null;\n\t\t\t// throw new \\Exception();\n\t\t}\n\t\t$array = [\n\t\t\t'ctype' => 'conf',\n\t\t\t'type' => 'mode',\n\t\t\t'cmd' => $mode,\n\t\t];\n\t\treturn $this->sendCommand($array);\n\t}", "public function isRedirection() {\n return (3 === $this->getStatusClass());\n }", "public function isMode($mode)\n {\n return $this->mode == $mode;\n }", "public function iN_UpdateRazorPaySendBoxMode($userID, $mode) {\n\t\tif ($this->iN_CheckIsAdmin($userID) == 1) {\n\t\t\tmysqli_query($this->db, \"UPDATE i_payment_methods SET razorpay_payment_mode = '$mode' WHERE payment_method_id = '1'\") or die(mysqli_error($this->db));\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function isActive(): bool {\n if (App::getClassStatus() == App::STATUS_INITIALIZING) {\n return true;\n }\n\n $routeUri = Router::getUriObjByURL(Request::getRequestedURI());\n\n if ($routeUri !== null) {\n $routeType = $routeUri->getType();\n } else {\n $routeType = Router::VIEW_ROUTE;\n }\n\n return $routeType == Router::API_ROUTE || (defined('API_CALL') && API_CALL === true);\n }", "protected function enableToggle()\n\t{\n\t\t$loginMethod = \\IPS\\Login\\Handler::load( \\IPS\\Request::i()->id );\n\t\t\n\t\tif ( \\IPS\\Request::i()->status )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$loginMethod->testSettings();\n\t\t\t}\n\t\t\tcatch ( \\Exception $e )\n\t\t\t{\n\t\t\t\t\\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( \"app=core&module=settings&controller=login&do=form&id={$loginMethod->id}\" ) );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_disableCheck( $loginMethod );\n\t\t}\n\n\t\t/* Clear caches */\n\t\tunset( \\IPS\\Data\\Store::i()->loginMethods );\n\t\t\\IPS\\Data\\Cache::i()->clearAll();\n\n\t\t/* Toggle */\n\t\treturn parent::enableToggle();\n\t}", "private function checkStatus()\n {\n $res = $this->parseBoolean(\n json_encode($this->getStatus()[\"timed_out\"])\n );\n\n if ($this->getStatus() == null)\n $this->setOnline(false);\n else if ($res)\n $this->setOnline(false);\n else\n $this->setOnline(true);\n }", "public function actionStatus($info){\n \n $infoedit = Task::getInfo($info);\n Task::changeStatus($info);\n header('Location: http://youtask/index');\n return true;\n \n }", "function switchFavoriteSensorStatus()\n{\n if ($_GET[\"sensor_status\"] == \"OFF\")\n {\n sensorStatusUpdate($_GET[\"id_sensor\"], \"ON\");\n }\n \n else\n {\n sensorStatusUpdate($_GET[\"id_sensor\"], \"OFF\");\n }\n \n seeHomePage();\n}", "function download($rempath, $locpath, $mode = 'auto')\n\t{\n\t\tif ( ! $this->_is_conn())\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Set the mode if not specified\n\t\tif ($mode == 'auto')\n\t\t{\n\t\t\t// Get the file extension so we can set the upload type\n\t\t\t$ext = $this->_getext($rempath);\n\t\t\t$mode = $this->_settype($ext);\n\t\t}\n\n\t\t$mode = ($mode == 'ascii') ? FTP_ASCII : FTP_BINARY;\n\n\t\t$result = @ftp_get($this->conn_id, $locpath, $rempath, $mode);\n\n\t\tif ($result === FALSE)\n\t\t{\n\t\t\tif ($this->debug == TRUE)\n\t\t\t{\n\t\t\t\t$this->_error('ftp_unable_to_download');\n\t\t\t} \n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "public function isLive()\n\t{\n\t\tif($this->use_demo_mode === 'Y') return FALSE;\n\t\treturn TRUE;\n\t}", "public function allowsNewStreamOpening()\n {\n return $this->base != 'r';\n }", "private function set_last_run($status) {\n\t\tif($this->get_last_run() != $status) { \n\t\t\t// transitions cannot go from 'working' to 'connected' if wp-united is enabled OK.\n\t\t\tif( ($this->lastRun == 'working') && ($status == 'connected') && $this->is_enabled() ) {\n\t\t\t\treturn;\n\t\t\t} \n\t\t\t$this->lastRun = $status;\n\t\t\tupdate_option('wpu-last-run', $status);\n\t\t}\n\t}", "public function is_reload_preview_required() {\n\t\treturn true;\n\t}", "public function is_reload_preview_required() {\n\t\treturn true;\n\t}", "public function actionCheckUserMode() {\n $this->redirect(array('blogTaskInboxView'));\n }" ]
[ "0.5831286", "0.56028324", "0.5570128", "0.5548321", "0.54579395", "0.54401827", "0.54332304", "0.54330504", "0.54071337", "0.540272", "0.5399163", "0.5360786", "0.53475314", "0.53228694", "0.5302009", "0.52995867", "0.52206594", "0.51932627", "0.51803845", "0.5147062", "0.51408035", "0.5138394", "0.5130489", "0.50375664", "0.50322205", "0.5028327", "0.50241685", "0.5019161", "0.50087655", "0.49938527", "0.49888536", "0.49870732", "0.49850425", "0.49800745", "0.49797153", "0.49595505", "0.49595004", "0.49540386", "0.4946298", "0.4936597", "0.4927952", "0.4927906", "0.49269047", "0.49263173", "0.4915212", "0.49092588", "0.4904705", "0.4895204", "0.48868835", "0.48848134", "0.48802707", "0.48791742", "0.48727962", "0.48717976", "0.486856", "0.48641443", "0.48626816", "0.485654", "0.4853595", "0.48531362", "0.48529723", "0.484784", "0.48440987", "0.48394865", "0.48374638", "0.4833322", "0.48324665", "0.483075", "0.48297513", "0.48173687", "0.48157609", "0.48122805", "0.48103774", "0.4805341", "0.48029897", "0.48006436", "0.47981247", "0.47929913", "0.47921833", "0.4784651", "0.4782182", "0.47797072", "0.4777613", "0.4770438", "0.47692156", "0.4761583", "0.47562668", "0.47510427", "0.47489882", "0.47441438", "0.4744132", "0.4742682", "0.47362158", "0.47314447", "0.47261328", "0.47167763", "0.4710273", "0.47078007", "0.47078007", "0.4707377" ]
0.6953161
0
saves params into the param YAML file and returns true if save succeed, false otherwise
public function saveParamInFile() { foreach ($this->_param_names as $param_name) { $funcname = 'get'.$param_name; if (_PS_VERSION_ < '1.5') Configuration::updateValue('KWIXO_'.strtoupper($param_name), $this->$funcname()); else Configuration::updateValue('KWIXO_'.strtoupper($param_name), $this->$funcname(), false, null, $this->getIdshop()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveSettings($params) {\n\t\tif (!$this->canEdit()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// plugin hook handlers should return true to indicate the settings have\n\t\t// been saved so that default code does not run\n\t\t$hook_params = array(\n\t\t\t'widget' => $this,\n\t\t\t'params' => $params\n\t\t);\n\t\tif (elgg_trigger_plugin_hook('widget_settings', $this->handler, $hook_params, false) == true) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (is_array($params) && count($params) > 0) {\n\t\t\tforeach ($params as $name => $value) {\n\t\t\t\tif (is_array($value)) {\n\t\t\t\t\t// private settings cannot handle arrays\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\t$this->$name = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->save();\n\t\t}\n\n\t\treturn true;\n\t}", "function saveParams($params)\n{\n\t$config = \"<?php\\n\";\n\t$config .= \"\\$appsConfig = \".var_export($params, true).\";\\n\";\n\t$config .= \"?>\";\n\n\tfile_put_contents(__DIR__.\"/config.php\", $config);\n\n\treturn true;\n}", "public function save(): bool;", "public function save(): bool;", "protected function save()\n {\n // Add the version to the map\n $this->map['version'] = $this->version;\n\n // try to serialize into the known path\n if (file_put_contents($this->mapPath, serialize((array) $this->map)) >= 0) {\n // Remove the version entry and return the result\n unset($this->map['version']);\n\n return true;\n\n } else {\n // Remove the version entry and return the result\n unset($this->map['version']);\n\n return false;\n }\n }", "public function savePreferences()\n {\n $result = false;\n $request = request()->toArray();\n $changes = array();\n \n if($request['description'] !== \"\"){\n $changes['description'] = $request['description'];\n }\n \n $params = array_slice($request, 2);\n foreach(array_keys($params) as $key){\n if($params[$key]!==null && $params[$key]>0){\n $changes[$key] = $params[$key];\n }\n }\n\n if($changes){\n $this->update($changes);\n $result = true;\n }\n return $result;\n }", "function saveParams($params)\r\n{\r\n\t$config = \"<?php\\n\";\r\n\t$config .= \"\\$appsConfig = \".var_export($params, true).\";\\n\";\r\n\t$config .= \"?>\";\r\n\r\n\tfile_put_contents(__DIR__.\"/config.php\", $config);\r\n\r\n\treturn true;\r\n}", "public function save()\n\t{\n\t\t// -> means the file was never loaded because no setting was changed\n\t\t// -> means no need to save\n\t\tif ($this->settings === null) return;\n\t\t\n\t\t$yaml = Spyc::YAMLDump($this->settings);\n\t}", "public function save() {\t\t\t\t\n\t\tif (file_put_contents($this->filename, $this->objects)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function saveSettings($params)\n {\n\n // SettingsModel param assignment\n $settingsModel = new SettingsModel();\n $settingsModel->allow_registration = isset($params[\"allow_registration\"]) ? $params[\"allow_registration\"] : null;\n $settingsModel->redirect_after_login = isset($params[\"redirect_after_login\"]) ? $params[\"redirect_after_login\"] : null;\n\n // Validate\n if(!$settingsModel->validate()){\n Craft::$app->getSession()->setError(\"Form validation failed. Empty or incorrect values\");\n return false;\n }\n\n $settingsRecord = $this->getSettings();\n $currentDate = new DateTime();\n\n $settingsRecord->allow_registration = $params[\"allow_registration\"];\n $settingsRecord->dateUpdated = $currentDate;\n $settingsRecord->redirect_after_login = $params[\"redirect_after_login\"];\n\n if(!$settingsRecord->save()){\n Craft::$app->getSession()->setError(\"Database error\");\n return false;\n }\n\n return true;\n\n }", "public function save(): bool\n {\n\n $bytes_written = file_put_contents($this->file_name, json_encode($this->getData()));\n\n if ($bytes_written === FALSE) {\n return false;\n }\n\n return true;\n }", "public function save($data)\r\n\t{\r\n\t\tif (isset($data['params']) && is_array($data['params'])) {\r\n\t\t\t$params = new JRegistry;\r\n\t\t\t$params->loadArray($data['params']);\r\n\t\t\t$data['params'] = (string)$params;\r\n\r\n\t\t}\r\n\t\t\r\n\t\tif (parent::save($data)) {\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\r\n\t\treturn false;\r\n\t}", "public function save()\n {\n return FALSE;\n }", "function saveConfig($data) {\n\t$isValid = false;\n\tif(strip_tags($data) == $data) {\n\t\t$isValid = true;\n\t}\n\n\tif ($isValid) {\n\t\treturn file_put_contents(\"config.yml\", stripslashes($data));\n\t}\n\t{\n\t\treturn false;\n\t}\n}", "public function save()\n\t{\n\n\t\tif (!$this->saveAttributeGroup()) return false;\n\n\t\tif (!$this->saveAttributes()) return false;\n\n\t\treturn true;\n\t}", "public function save($params);", "function save() {\r\n\t\t$this->log .= \"save() called<br />\";\r\n\t\tif (count($this->data) < 1) {\r\n\t\t\t$this->log .= \"Nothing to save.<br />\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t//create file pointer\r\n\t\tif (!$fp=@fopen($this->filename,\"w\")) {\r\n\t\t\t$this->log .= \"Could not create or open \".$this->filename.\"<br />\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t//write to file\r\n\t\tif (!@fwrite($fp,serialize($this->data))) {\r\n\t\t\t$this->log .= \"Could not write to \".$this->filename.\"<br />\";\r\n\t\t\tfclose($fp);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t//close file pointer\r\n\t\tfclose($fp);\r\n\t\treturn true;\r\n\t}", "function save() {\n $this->log .= \"save() called<br />\";\n if (count($this->data) < 1) {\n $this->log .= \"Nothing to save.<br />\";\n return false;\n }\n //create file pointer\n $this->log .= \"Save file name: \".$this->filename.\"<br />\";\n if (!$fp=@fopen($this->filename,\"w\")) {\n $this->log .= \"Could not create or open \".$this->filename.\"<br />\";\n return false;\n }\n //write to file\n if (!@fwrite($fp,serialize($this->data))) {\n $this->log .= \"Could not write to \".$this->filename.\"<br />\";\n fclose($fp);\n return false;\n }\n //close file pointer\n fclose($fp);\n return true;\n }", "public function saveLog()\n {\n // now loop over the properties of each post array...\n foreach ($this->params as $property => $value) {\n // create a setter\n $method = sprintf('set%s', ucwords($property));\n $this->log->$method($value);\n }\n\n try {\n // saving my new Log\n $this->em->persist($this->log);\n $this->em->flush();\n return true;\n } catch(Exception $e) {\n // TODO : we should manage this exception somedays\n return false;\n }\n \n }", "public function save()\n {\n Logger::getInstance()->po_log(\"PO:save \" . get_class($this));\n\n if (!$this->validate(true)) return false;\n \n //Logger::getInstance()->po_log(\"PO:save post validate\");\n\n $this->executeBeforeSave();\n\n //Logger::getInstance()->on();\n try\n {\n //Logger::getInstance()->po_log(\"PO:save BEGIN\");\n $pm = PersistentManager::getInstance();\n $pm->withTransaction();\n $pm->save($this);\n $pm->commitTransaction();\n //Logger::getInstance()->po_log(\"PO:save COMMIT\");\n }\n catch(Exception $e)\n {\n // TODO: log de $e\n Logger::getInstance()->po_log(\"PO:save ROLLBACK \". $e->getMessage() .\" <pre>\". $e->getTraceAsString() .\"</pre>\");\n \n $pm->rollbackTransaction();\n return false;\n }\n //Logger::getInstance()->off();\n\n $this->executeAfterSave();\n \n // Validacion\n return true;\n }", "protected function canSave()\n {\n if( $this->ticket != null and\n $this->filename != null)\n {\n return true;\n }\n else\n return false;\n }", "private function _saveConfVars()\n {\n $config = $this->getConfig();\n\n $this->resetContentCache();\n\n $this->_sModuleId = $this->getEditObjectId();\n $shopId = $config->getShopId();\n\n $moduleId = $this->_getModuleForConfigVars();\n\n foreach ($this->_aConfParams as $type => $param) {\n $confVars = $config->getRequestParameter($param);\n\n if (is_array($confVars)) {\n foreach ($confVars as $name => $value) {\n if (preg_match('/^[A-Z0-9]{32}$/', $value) || empty($value)) {\n $dbType = $this->_getDbConfigTypeName($type);\n $config->saveShopConfVar(\n $dbType,\n $name,\n $this->_serializeConfVar($dbType, $name, $value),\n $shopId,\n $moduleId\n );\n } else {\n return false;\n }\n }\n }\n }\n\n return true;\n }", "public function save()\n {\n\n // Create config folder if it does not exist.\n $fs = new Filesystem();\n $dumper = new Dumper();\n\n if (!$fs->exists(getenv('HOME').'/.talos')) {\n try {\n $fs->mkdir(getenv('HOME').'/.talos/apps');\n } catch (IOExceptionInterface $e) {\n return false;\n }\n }\n\n try {\n $fs->dumpFile(getenv('HOME').'/.talos/talos.yml', $dumper->dump($this->config, 10));\n\n return true;\n } catch (IOExceptionInterface $e) {\n return false;\n }\n }", "public function save(array $data) : bool;", "protected function save(): bool\n\t{\n\t\t$res = JobTable::update(\n\t\t\t$this->id,\n\t\t\t[\n\t\t\t\t'STATUS' => $this->status,\n\t\t\t\t'STATUS_MESSAGE' => $this->statusMessage,\n\t\t\t\t'STATE' => $this->state,\n\t\t\t\t'STEP' => $this->step,\n\t\t\t]\n\t\t);\n\n\t\treturn $res->isSuccess();\n\t}", "public function save() {\n\t\tif ($this->data) {\n\t\t\treturn $this->repo->addPost($this->data);\n\t\t}\n\t\treturn false;\n\t}", "private function saveFile(): bool\n {\n return (file_put_contents($this->envPath, implode($this->env)) !== false);\n }", "protected abstract function canSave();", "function do_save(){\n\t\t// check that number and post_ID is set\n\t\tif( empty($this->post_ID) || empty($this->number) ) return false;\n\t\t\n\t\t// check that we have data in POST\n\t\tif( $this->id_base != 'checkbox' && (\n\t\t\t\tempty($_POST['field-'.$this->id_base][$this->number]) ||\n\t\t\t\t!is_array($_POST['field-'.$this->id_base][$this->number])\n\t\t\t)\n\t\t )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$input = @$_POST['field-'.$this->id_base][$this->number];\n\t\t// get real values\n\t\t$values = $this->save( $input );\n\t\t// save to post meta\n\t\tupdate_post_meta($this->post_ID, $this->slug, $values);\n\t\treturn true;\n\t}", "public static function save($data): bool\n {\n $storage_data = serialize($data);\n file_put_contents(self::$path.self::$filename, $storage_data);\n return true;\n }", "public function save()\n\t{\n\t\tglobal $tpl, $lng, $ilCtrl;\n\t\n\t\t$pl = $this->getPluginObject();\n\t\t\n\t\t$form = $this->initConfigurationForm();\n\t\tif ($form->checkInput())\n\t\t{\n\t\t\t$set1 = $form->getInput(\"setting_1\");\n\t\t\t$set2 = $form->getInput(\"setting_2\");\n\t\n\t\t\t// @todo: implement saving to db\n\t\t\t\n\t\t\tilUtil::sendSuccess($pl->txt(\"saving_invoked\"), true);\n\t\t\t$ilCtrl->redirect($this, \"configure\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$form->setValuesByPost();\n\t\t\t$tpl->setContent($form->getHtml());\n\t\t}\n\t}", "public function save()\n {\n return false;\n }", "public function save ()\n {\n $this->url = \"{$this->getBaseUrl()}/{$this->getMethod()}{$this->getQueryStrParams()}\";\n return true;\n }", "public function save()\n\t{\n\t\treturn false;\n\t}", "public function save()\n {\n if(!$this->canSave())\n return false;\n\n try\n {\n if ($this->id == null) //new object\n {\n $stmt = $this->connection->prepare(\"insert into \" . self::$table_name . \"(ticketID, filename) values(?, ?)\");\n $stmt->execute([$this->ticket->id, $this->filename]);\n $this->id = $this->connection->lastInsertId();\n }\n else //updating is not possible\n {\n return false;\n }\n\n return true;\n }\n catch (\\PDOException $e)\n {\n print_r($e->errorInfo);\n return false;\n }\n }", "public function save() {\n\t\t\ttry {\n\t\t\t\t$this->presave();\n\t\t\t\tif (!$this->validate()) { return FALSE; }\n\t\t\t} catch (Exception $ex) {\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\tif (!$this->hasChanged()) { return TRUE; }\n\n\t\t\t$keys = [];\n\t\t\t$placeholders = [];\n\t\t\t$sets = [];\n\t\t\t$params = [];\n\n\t\t\tforeach (array_keys(static::$_fields) as $key) {\n\t\t\t\tif ($key == static::$_key) { continue; }\n\n\t\t\t\t$keys[] = '`' . $key . '`';\n\t\t\t\t$placeholders[] = ':' . $key;\n\t\t\t\t$sets[] = '`' . $key . '` = :' . $key;\n\n\t\t\t\t$params[':' . $key] = $this->getData($key);\n\t\t\t\tif (is_bool($params[':' . $key])) { $params[':' . $key] = $params[':' . $key] ? 'true' : 'false'; }\n\t\t\t\tif (in_array($key, static::$_json_fields)) { $params[':' . $key] = json_encode($params[':' . $key]); }\n\t\t\t}\n\n\t\t\tif ($this->isKnown()) {\n\t\t\t\t$keyKey = '`' . static::$_key . '`';\n\t\t\t\t$keyPlaceholder = ':' . static::$_key;\n\t\t\t\t$params[$keyPlaceholder] = $this->getData(static::$_key);\n\n\t\t\t\t$query = sprintf('UPDATE `%s` SET %s WHERE %s = %s', static::$_table, implode(', ', $sets), $keyKey, $keyPlaceholder);\n\t\t\t} else {\n\t\t\t\t$query = sprintf('INSERT INTO `%s` (%s) VALUES (%s)', static::$_table, implode(', ', $keys), implode(', ', $placeholders));\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t$statement = $this->myDB->getPDO()->prepare($query);\n\t\t\t\t$result = $statement->execute($params);\n\t\t\t} catch (\\PDOException $t) {\n\t\t\t\t$result = FALSE;\n\t\t\t}\n\t\t\tif ($result) {\n\t\t\t\tif (!$this->isKnown()) {\n\t\t\t\t\t$this->setData(static::$_key, $this->myDB->getPDO()->lastInsertId());\n\t\t\t\t}\n\t\t\t\t$this->postSave($result);\n\t\t\t\t$this->setChanged(false);\n\t\t\t\treturn TRUE;\n\t\t\t} else {\n\t\t\t\t$this->lastError = $statement->errorInfo();\n\t\t\t\t$this->postSave($result);\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\treturn FALSE;\n\t\t}", "public function Save()\r\n {\r\n return false;\r\n }", "public function saveSettings()\n {\n return $this->config->saveFile();\n }", "public function save()\n {\n $temp = [];\n foreach ($this as $prop => $value) {\n $temp[$prop] = $value;\n }\n\n self::update($temp);\n if (isset($temp[(new static)->key])) {\n self::where((new static)->key, '=', $temp[(new static)->key]);\n }\n if (self::execute()->errno == 0) {\n return true;\n }\n return false;\n }", "public function save()\n {\n if(!parent::save()) {\n return false;\n }\n \n if($this->_rebuildSearchIndex) {\n $this->_rebuildSearchIndex = false;\n MazelabVpopqmail_Model_DiFactory::getIndexManager()->setRobot($this->getId());\n }\n \n return true;\n }", "function config_save($data) {\n $module = 'project/lpr';\n\n foreach ($data as $name => $value) {\n set_config($name, $value, $module);\n }\n\n return true;\n }", "public function save()\n {\n $values = array('company_name', 'website_name', 'website_description');\n foreach ($values as $value) \n ConfigHelper::save($value, Input::get($value));\n ConfigHelper::save_file('favicon');\n ConfigHelper::save_file('logo');\n ConfigHelper::save_file('login-logo');\n\n return Redirect::route('view_config')->with('message_title', 'Successful!')->with('message', 'Successfully updated the config!');\n }", "public function canSave()\n {\n return $this->save;\n }", "public function save_settings(stdClass $data) {\n $this->set_config('circleci_token', $data->assignsubmission_circleci_token);\n $this->set_config('circleci_url', $data->assignsubmission_circleci_url);\n $this->set_config('circleci_job', $data->assignsubmission_circleci_job);\n\n return true;\n }", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function Save()\n {\n $content = \"\";\n foreach ($this->vars as $key => $elem) {\n $content .= \"[\".$key.\"]\\n\";\n foreach ($elem as $key2 => $elem2) {\n $content .= $key2.\" = \\\"\".$elem2.\"\\\"\\n\";\n }\n $content .= \"\\n\";\n }\n if (!$handle = @fopen($this->fileName, 'w')) {\n error_log(\"Config::Save() - Could not open file('\".$this->fileName.\"') for writing, error.\");\n }\n if (!fwrite($handle, $content)) {\n error_log(\"Config::Save() - Could not write to open file('\" . $this->fileName .\"'), error.\");\n }\n fclose($handle);\n }", "public function save()\n {\n if(!$this->validate()) {\n return false;\n }\n\n return CustomGallery::getDb()->transaction(function() {\n $this->updateVisibility();\n return $this->instance->save();\n });\n }", "private function saveConfig(){\n\t\tif(!isset($_POST['services_ipsec_settings_enabled'])){\n\t\t\t$this->data['enable'] = 'false';\n\t\t}\n\t\telseif($_POST['services_ipsec_settings_enabled'] == 'true'){\n\t\t\t$this->data['enable'] = 'true';\n\t\t}\n\t\t\n\t\t$this->config->saveConfig();\n\t\t$this->returnConfig();\n\t}", "function beforesave(){\n\t\t// if it returns true, the item will be saved; if it returns false, it won't\n\t\treturn true;\n\t}", "public function saveSettings()\n\t{\n\t\t$this->ensureAuthed();\n\t\t$input = Input::getInstance();\n\t\t$settings = $input->getInput('settings');\n\t\t$settingsManager = Settings::getInstance();\n\t\t$settingsManager->setSettings($this->username, $settings);\n\t\treturn true;\n\t}", "public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr)=> \":$attr\", $attributes);\n\n $st = self::prepare(\n \"INSERT INTO $tableName (\".implode(',', $attributes).\")\n VALUES(\".implode(',', $params).\")\"\n );\n\n foreach($attributes as $attribute){\n $st->bindValue(\":$attribute\", $this->{$attribute});\n }\n\n $st->execute();\n return true;\n }", "public abstract function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "abstract public function save();", "public function save(){\n $tableName = $this->tableName();\n $attributes = $this->attributes();\n $params = array_map(fn($attr) => \":$attr\", $attributes);\n $statement = self::prepare(\"INSERT INTO $tableName (\".implode(',', $attributes).\") \n VALUES (\".implode(',', $params).\")\");\n \n foreach($attributes as $attribute){\n $statement->bindValue(\":$attribute\", $this->{$attribute});\n }\n \n $statement->execute();\n return true;\n }", "public function save()\n {\n // Initialize getID3 engine\n $getID3 = new \\getID3;\n $getID3->setOption(array('encoding' => $this->options['tag_encoding']));\n\n $tagWriter = new \\getid3_writetags();\n\n foreach ($this->options as $optionName => $optionValue) {\n $tagWriter->$optionName = $optionValue;\n }\n\n $tagWriter->tag_data = $this->tagData;\n\n if ($tagWriter->WriteTags()) {\n return true;\n }\n\n return $tagWriter->errors;\n }", "public function save()\n\t{\n\t\t$this->componentConfig->save();\n\t}", "protected function _save()\n\t{\n\t\t$_file = $this->_storagePath . DIRECTORY_SEPARATOR . $this->_fileName;\n\n\t\t$_data = json_encode( $this->contents() );\n\n\t\tif ( $this->_compressStore )\n\t\t{\n\t\t\t$_data = Utility\\Storage::freeze( $this->contents() );\n\t\t}\n\n\t\tif ( false === file_put_contents( $_file, $_data ) )\n\t\t{\n\t\t\tUtility\\Log::error( 'Unable to store Oasys data in \"' . $_file . '\". System error.' );\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public function addStickerToSet(array $params): bool\n {\n return $this->uploadFile('addStickerToSet', $params, 'png_sticker')->getResult();\n }", "public function save() {}", "public function save() {}", "public function save() {}", "public function save()\n {\n $config_content = file_get_contents($this->config_path);\n\n foreach ($this->fields as $configuration => $value) {\n $config_content = str_replace(str_replace('\\\\', '\\\\\\\\', $value['default']), str_replace('\\\\', '\\\\\\\\', $this->configurations[$configuration]), $config_content);\n config([$value['config'] => str_replace('\\\\', '\\\\\\\\', $this->configurations[$configuration])]); //Reset the config value\n }\n\n file_put_contents($this->config_path, $config_content);\n }", "public function save(): bool\n {\n return $this->id > 0\n ? $this->actionHandler->update()\n : $this->actionHandler->insert();\n }", "public function save()\n\t{\n\n\t}", "public function save():void;", "public function save()\n {\n // For V2.0\n }", "public function save($data): bool\n {\n return (bool) file_put_contents($this->path, json_encode($data, JSON_PRETTY_PRINT));\n }", "public function save()\n {\n $success = $this->obj->save();\n\n if (! $success)\n {\n if ($this->obj->valid)\n {\n $this->_set_error('Failed to save data!');\n }\n else\n {\n //Validation error\n $this->_set_error();\n }\n }\n\n return $success;\n }", "public function save(): bool\n {\n $data = [\n 'date' => $this->getDate(),\n 'type' => $this->getType(),\n 'recorded' => $this->getRecorded(),\n 'route' => $this->getRoute(),\n 'place' => $this->getPlace(),\n 'mileage' => $this->getMileage(),\n 'place_manual' => $this->getPlaceManual(),\n 'description' => $this->getDescription()\n ];\n if ($this->getId()) {\n if ((new db\\Update('event', $data, $this->getId()))->run() !== false) {\n return true;\n }\n } else {\n if ($newId = (new db\\Insert('event', $data))->run()) {\n $this->setId($newId);\n return true;\n }\n }\n return false;\n }", "public final function save() {\n }", "function saveParams($data = 1)\n {\n $p = array();\n if (IsSet($this->id)) {\n $p[\"id\"] = $this->id;\n }\n if (IsSet($this->view_mode)) {\n $p[\"view_mode\"] = $this->view_mode;\n }\n if (IsSet($this->edit_mode)) {\n $p[\"edit_mode\"] = $this->edit_mode;\n }\n if (IsSet($this->tab)) {\n $p[\"tab\"] = $this->tab;\n }\n return parent::saveParams($p);\n }", "function SaveAfspraak()\n{\n //zoniet, return false\n\n //afspraak opslaan en return true\n\n}", "public function config_save() {\n }", "public function save_game(){\n\n\t\t$query = \"UPDATE `games`\n\t \tSET `title` = '$this->title', `user_count` = '$this->user_count', `api` = '$this->api',\n\t \t`info` = '$this->info', `bgimage` = '$this->bgimage', `banner` = '$this->banner', `level` = '$this->level'\n\t \tWHERE `id` = '$this->id'\";\n\n\t\tif(DB::sql($query)){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\n\t}", "public function save() {\r\n if(isset($this->id)) {\r\n // Really just to update the caption\r\n $this->update();\r\n } else {\r\n // Make sure there are no errors\r\n if(!empty($this->errors)) { return FALSE; }\r\n\r\n // Can't save without filename and temp location\r\n if(empty($this->passport_path) || empty($this->temp_path)) {\r\n $this->errors[] = \"The file location was not available.\";\r\n return FALSE;\r\n }\r\n\r\n // Determine the target_path\r\n $target_path = SITE_ROOT.DS.'public'.DS.$this->upload_dir.DS.$this->passport_path;\r\n\r\n // Make sure a file doesn't already exist in the target location\r\n if(file_exists($target_path)) {\r\n $this->errors[] = \"The file {$this->passport_path} already exists.\";\r\n return FALSE;\r\n }\r\n\r\n // Attempt to move the file\r\n if(move_uploaded_file($this->temp_path, $target_path)) {\r\n // Success\r\n // Save a corresponding entry to the database\r\n if($this->create()){\r\n // We are done with temp_path, the file isn't there anymore\r\n unset($this->temp_path);\r\n return TRUE;\r\n }\r\n } else {\r\n // File was not saved.\r\n $this->errors[] = \"The file upload failed, possible due to incorrect permissions on the upload folder.\";\r\n return FALSE;\r\n }\r\n\r\n }\r\n\r\n }", "public function test_save() {\n global $DB;\n\n $this->resetAfterTest();\n\n // Create data object for default assignment settings.\n $data = new stdClass();\n $data->turnitinenabled = 1;\n $data->reportgenoptions['reportgeneration'] = TURNITINSIM_REPORT_GEN_DUEDATE;\n $data->queuedrafts = 1;\n $data->indexoptions['addtoindex'] = 0;\n $data->excludeoptions['excludequotes'] = 0;\n $data->excludeoptions['excludebiblio'] = 1;\n $data->accessoptions['accessstudents'] = 1;\n\n // Save Module Settings.\n $form = new plagiarism_turnitinsim_defaults_form();\n $form->save($data);\n\n // Check settings have been saved.\n $settings = $DB->get_record('plagiarism_turnitinsim_mod', array('cm' => 0));\n\n $this->assertEquals(1, $settings->turnitinenabled);\n $this->assertEquals(TURNITINSIM_REPORT_GEN_DUEDATE, $settings->reportgeneration);\n $this->assertEquals(1, $settings->queuedrafts);\n $this->assertEquals(0, $settings->addtoindex);\n $this->assertEquals(0, $settings->excludequotes);\n $this->assertEquals(1, $settings->excludebiblio);\n $this->assertEquals(1, $settings->accessstudents);\n }", "public function save()\n {\n try {\n $instanceState = $this->toArray();\n if (empty($instanceState['id'])) {\n unset($instanceState['id']);\n Db::getInstance()->insert($this->getTableName(), $instanceState);\n } else {\n Db::getInstance()->update($this->getTableName(), $instanceState, ['id' => $instanceState['id']]);\n }\n\n return true;\n } catch (DbException $e) {\n return false;\n }\n }", "public function Save()\n {\n if ($this->OSName != '' || $this->OSPlatform != '' || $this->OSRelease != '' || $this->OSVersion != '') {\n if (empty($this->BuildId)) {\n return false;\n }\n\n // Check if we already have a buildinformation for that build. If yes we just skip it\n $query = pdo_query('SELECT buildid FROM buildinformation WHERE buildid=' . qnum($this->BuildId));\n add_last_sql_error('BuildInformation Insert', 0, $this->BuildId);\n if (pdo_num_rows($query) == 0) {\n pdo_query('INSERT INTO buildinformation (buildid,osname,osrelease,osversion,osplatform,compilername,compilerversion)\n VALUES (' . qnum($this->BuildId) . \",'$this->OSName','$this->OSRelease',\n '$this->OSVersion','$this->OSPlatform','$this->CompilerName','$this->CompilerVersion')\");\n add_last_sql_error('BuildInformation Insert', 0, $this->BuildId);\n }\n return true;\n }\n }", "function isSaveAllowed() {\n\t\t\treturn $this->isAllowedAction( 'save' );\n\t\t}" ]
[ "0.64108926", "0.640945", "0.6371725", "0.6371725", "0.6342447", "0.6318787", "0.63069403", "0.62696314", "0.616305", "0.6103602", "0.60905653", "0.6059621", "0.60124564", "0.5955392", "0.59506476", "0.59328645", "0.5925509", "0.5903811", "0.58850455", "0.58722234", "0.58378863", "0.58378386", "0.5817255", "0.5808036", "0.5801387", "0.573342", "0.57164717", "0.5716142", "0.57000875", "0.5639305", "0.56231797", "0.5622926", "0.5611256", "0.5603599", "0.55936587", "0.55754197", "0.5564066", "0.55558795", "0.5553995", "0.5550429", "0.55427027", "0.5541937", "0.5540421", "0.55351585", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.55335295", "0.5511089", "0.55021167", "0.54990995", "0.54940426", "0.5483692", "0.5479919", "0.54724497", "0.54720414", "0.54720414", "0.54720414", "0.54720414", "0.54720414", "0.54714906", "0.54644436", "0.54629433", "0.5456298", "0.54554147", "0.5446726", "0.54463917", "0.54463917", "0.5436969", "0.5436703", "0.5406126", "0.5405249", "0.5402395", "0.5397563", "0.53911114", "0.5382435", "0.5374775", "0.5370828", "0.53616506", "0.53493476", "0.53459895", "0.5343776", "0.5340001", "0.5337254", "0.5335553", "0.5325789" ]
0.5424183
84
Display a listing of the resource.
public function index() { $carts = Cart::with('crop')->where('vendor_id', Auth::user()->id)->get(); $total_bill_amount = 0; foreach ($carts as $cart) { if ($cart->crop->available_quantity == 0) { $cart->delete(); } $total_bill_amount += ($cart->crop->price * $cart->quantity); } // re-run so that removed items doesn't show up in cart page $carts = Cart::with('crop')->where('vendor_id', Auth::user()->id)->get(); return view('carts.index', compact('carts', 'total_bill_amount')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->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 {\n $modules = Module::all();\n return Resource::collection($modules);\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 // 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 CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\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 index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\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 $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 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 $this->indexPage('list-product', 'List Product');\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "function listing() {\r\n\r\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\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 index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\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 return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "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}", "public function _index(){\n\t $this->_list();\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 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 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 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 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 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 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 $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\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.7446377", "0.7361922", "0.72984487", "0.7248631", "0.7162871", "0.7148215", "0.7131838", "0.71028054", "0.7102395", "0.70988023", "0.7048243", "0.6993516", "0.6989079", "0.69341344", "0.69001913", "0.6899167", "0.68920904", "0.6887188", "0.68661547", "0.6849159", "0.683002", "0.6801792", "0.6796645", "0.67952746", "0.678579", "0.6760132", "0.6741144", "0.67304057", "0.6726034", "0.6723304", "0.6723304", "0.6723304", "0.67188966", "0.67061126", "0.67046595", "0.67042124", "0.6664004", "0.6663109", "0.66603667", "0.66595376", "0.6656908", "0.66536283", "0.6648508", "0.6619696", "0.66191936", "0.66145146", "0.66056865", "0.6600895", "0.66007215", "0.6593214", "0.6587006", "0.6585572", "0.6584028", "0.65802413", "0.65751636", "0.6574276", "0.6572553", "0.65703243", "0.6569474", "0.6563628", "0.6563418", "0.65516967", "0.655156", "0.65460885", "0.65367365", "0.6533626", "0.6533064", "0.6527408", "0.65251255", "0.6524834", "0.65202224", "0.6517302", "0.65167385", "0.6516062", "0.65148616", "0.6506742", "0.65018", "0.6501768", "0.6494415", "0.64921784", "0.6486631", "0.6485237", "0.6484199", "0.64841217", "0.6479556", "0.6478558", "0.6469807", "0.646858", "0.64683306", "0.6466808", "0.64637285", "0.64616066", "0.6458575", "0.6457558", "0.64535207", "0.64534074", "0.64524984", "0.64491946", "0.6448726", "0.6447211", "0.64461327" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $cart = Cart::where('vendor_id', Auth::user()->id)->where('crop_id', $request->crop_id)->first(); if ($cart) { return redirect()->back()->withError('Already in cart'); } $data = $request->all(); $data['vendor_id'] = Auth::user()->id; $data['seller_id'] = Crop::find($request->crop_id)->user_id; Cart::create($data); return redirect()->back()->withSuccess('Cart updated'); }
{ "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
Update the specified resource in storage.
public function update(Request $request, Cart $cart) { $data = $request->all(); $cart->update($data); return redirect()->back()->with('success', 'cart updated'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\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(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(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(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);", "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 }", "public function update($request, $id);", "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 }", "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 }", "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 }", "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 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 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 abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "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($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "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() {\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 }", "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() {\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 //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(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 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 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, $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.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Adds the specified component to the IComponentContainer.
public function addComponent(/*Nette\*/IComponent $component, $name, $insertBefore = NULL) { parent::addComponent($component, $name, $insertBefore); if ($this->currentGroup !== NULL /*&& $component instanceof IFormControl*/) { //5.11.2009 Novak $this->currentGroup->add($component); } return $component; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(ComponentInterface $component);", "public function addComponent($component);", "public function addComponent(ComponentInterface $component);", "public function addComponent(Base $component) {\n $this->_components[] = $component;\n }", "public function addComponent($component) {\n if(!array_key_exists($component->getId(), $this->components)) {\n $this->components[$component->getId()] = $component;\n }\n else {\n Logger::getInstance()->writeMessage('Duplicate id found in form: ' . $this->id);\n }\n }", "public function addComponent($component, $name) {\n $this->components[$name] = $component;\n }", "public function AddComponent(Writable $component) {\n \t\t$this->_components[] = $component;\n \t}", "function insertComponent($acomponent)\r\n {\r\n //Adds a component to the components list\r\n $acomponent->owner=$this;\r\n\r\n $this->_childnames[ $acomponent->_name ] = $acomponent;\r\n\r\n $this->components->add($acomponent);\r\n }", "public function addComponent($name, ComponentInterface $component) {\n if(isset($this->components[$name])) throw new Exception(\"Component $name exists\");\n if(!$component->isLoaded()) $component->createDefaults();\n $this->components[$name] = $component;\n }", "public function register_component( sn\\base\\component\\I_Component $component );", "public function add_component($p_itservice_id, $p_component_id)\n {\n if ($this->get_assigned_object($p_itservice_id, $p_component_id)\n ->num_rows() <= 0\n )\n {\n return $this->create(\n $p_itservice_id,\n C__RECORD_STATUS__NORMAL,\n $p_component_id,\n \"\"\n );\n } // if\n\n return false;\n }", "public function addComponent(ComponentInterface $component) : EnvironmentInterface;", "public function addComponents($components);", "function addComponent($data);", "public function attach($component);", "public function addComponentToAssemblage( $component, $assemblage )\r\n\t{\r\n\t\t$this->debug->guard( );\r\n\r\n\t\t$sql = \"INSERT INTO game_assemblage_components(assemblagecomponent_component, assemblagecomponent_assemblage) \";\r\n\t\t$sql .= \"VALUES('\" . $component . \"', '\" . $assemblage . \"')\";\r\n\t\t$res = $this->database->query( $sql );\r\n\t\tif ( !$res )\r\n\t\t{\r\n\t\t\t$this->debug->write( 'Problem adding a new component to an assemblage: could not insert data into database', 'warning' );\r\n\t\t\t$this->messages->setMessage( 'Problem adding a new component to an assemblage: could not insert data into database', 'warning' );\r\n\t\t\t$this->debug->unguard( false );\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$this->debug->unguard( true );\r\n\t\treturn true;\r\n\t}", "public function attach($component)\n\t{\n\t}", "public function register(TwigComponent $component)\n {\n $component->setRenderer($this);\n $component->setComponentsRoot($this->componentDirectory);\n\n $this->store->add($component);\n }", "public function addAddressComponent(GeocoderAddressComponent $addressComponent)\n {\n $this->addressComponents[] = $addressComponent;\n }", "public function component(Component $component)\n {\n }", "public function component($component)\n {\n return $this->registerField(FormFacade::getField('component'), $component);\n\n if ($this->inWrapper()) {\n parent::component($component->comp);\n }\n\n return $component;\n }", "function addHtmlComponent($htmlComponent) {\n $this->components[] = $htmlComponent;\n }", "public function addContainer(&$container)\n {\n parent::addContainer($container);\n \n if (ObjectIntrospector::isA($container, 'TabPage') && $this->activeTabPagePersistor->getValue() == '')\n $this->activeTabPagePersistor->setValue($container->getName());\n }", "public function add(ContainerInterface $container, $name = null)\n {\n if ($name !== null) {\n $this->containers[$name] = $container;\n } else {\n array_push($this->containers, $container);\n }\n }", "protected function push(Component $item)\n\t{\n\t\t$this->items[] = $item;\n\t}", "public function addComponent($component, $value)\n {\n // We need to make sure the value we're given isn't empty before adding it into our components.\n if (! empty($value)) {\n $component = strtoupper($component);\n if ($this->validateComponent($component)) {\n $this->components[$component][] = $value;\n } else {\n throw new \\UnexpectedValueException(\"The RDN component '$component' is invalid.\");\n }\n } else {\n throw new \\InvalidArgumentException('The $value cannot be empty');\n }\n\n return $this;\n }", "public function setComponent($component);", "public function aclAdapterMemoryAddComponentObject(UnitTester $I)\n {\n $I->wantToTest('Acl\\Adapter\\Memory - addComponent() - object');\n\n $acl = new Memory();\n $component = new Component('Customer', 'Customer component');\n $actual = $acl->addComponent($component, ['index']);\n\n $I->assertTrue($actual);\n }", "public function addCompactor(CompactorInterface $compactor)\n {\n $this->compactors->attach($compactor);\n }", "public static function register(ContainerInterface $c);", "function TestCase_add_component($case_id, $component_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.add_component', array(new xmlrpcval($case_id, \"int\"), new xmlrpcval($component_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "protected function addClassToComponents($component, $class)\n {\n $this->components[$component][] = $class;\n }", "public function add($field)\n {\n /** @var EntityFormTrait|UI\\Form $this */\n\n $fields = is_array($field) ? $field : func_get_args();\n $this->getBuilder()->buildFields($fields);\n\n return $this->getComponent(reset($fields));\n }", "public function add($element);", "public function add($element);", "public function add($element);", "public function registerSubCommand(ComponentInterface $component)\n {\n //if the component isn't for this type or is not a command then no registration.\n if (! $this->shouldRunCommand($component)) {\n return;\n }\n WP_CLI::add_command($this->subCommandTrigger($component), $this->subCommandCallback($component));\n }", "function AddComponent( $cid, &$kfrel, $raCompConfig = array() )\r\n {\r\n return( $this->raComps[$cid] = $this->factory_SEEDFormUIComponent( $cid, $kfrel, $raCompConfig ) );\r\n }", "public function process(ContainerBuilder $container)\n {\n if (!$container->has(ComponentStore::class)) {\n return;\n }\n\n $renderer = $container->findDefinition(ComponentRenderer::class);\n $store = $container->findDefinition(ComponentStore::class);\n\n $taggedServices = $container->findTaggedServiceIds('olveneer.component');\n\n foreach ($taggedServices as $id => $tags) {\n $renderer->addMethodCall('register', [new Reference($id)]);\n }\n\n $taggedServices = $container->findTaggedServiceIds('olveneer.mixin');\n\n foreach ($taggedServices as $id => $tags) {\n $store->addMethodCall('registerMixin', [new Reference($id)]);\n }\n }", "public function addComponent($name, $file) {\n\t\t$this->components[$name] = $file;\n\t\treturn $this;\n\t}", "public function add($item);", "public function add($item);", "protected function registerComponent( $abstract ) {\n\t\t$this->components[ $abstract ] = new $abstract();\n\t}", "function add($c){\n\t\tif($c=='jUI')return $this->add('jJoomla');\n\t\t$args=func_get_args();\n\t\treturn call_user_func_array(array('parent','add'), $args);\n\t}", "protected function putComponentObject($componentName, $componentObject)\n {\n if (is_object($componentObject)) {\n $this->componentObjects[$componentName] = $componentObject;\n }\n }", "public function add(CollectionItemInterface $item);", "public function addAppend(ContainerInterface $container, $name = null)\n {\n $this->add($container, $name);\n }", "public function add( $item )\n\t\t{\n\t\t\tarray_push( $this->items, $item );\n\t\t}", "public function addContainer(ContainerInterface $container): void\n {\n\n if ($container instanceof self) {\n throw new ContainerError(sprintf('%s instances cannot be stacked.', self::class));\n }\n\n if ($this->hasContainer($container)) {\n throw new ContainerError(sprintf('Cannot stack the same container (%s#%d) twice.', get_class($container), spl_object_id($container)));\n }\n\n if ($this->container) {\n $next = new static($this->container);\n $next->next = $this->next;\n $this->next = $next;\n }\n $this->container = $container;\n }", "public function addComponents(array $components) {\n\t\t$this->components = array_merge($this->components, $components);\n\t\treturn $this;\n\t}", "public function add($item) {\n $this->items[$item->id()] = $item;\n }", "protected function registerComponent(string $component, $class = null)\n {\n Blade::component('sunfire::components.' . $component, 'sunfire-' . $component, $class);\n }", "public function addContainer( $container, $index=false )\n\t\t{\n\t\t\t$container->setTabSlug( $this->_slug );\n\n\t\t\tif( $index === false ) {\n\t\t\t\t$this->_containers->insert( $container );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->_containers->insertAt( $container, $index );\n\t\t\t}\n\n\t\t\treturn $container;\n\t\t}", "public function addItem(ItemInterface $item);", "public function addItem(ItemInterface $item);", "public function add(ColumnInterface $column)\n {\n $this->items[$column->getAlias()] = $column;\n }", "private function addComponent($name, $type, $c)\n\t{\n\t\tif (!isset(self::$m_components[$type]))\n\t\t\tself::$m_components[$type] = array();\n\n\t\tself::$m_components[$type][$name] = $c;\n\n\t\treturn $this;\n\t}", "public function addContainer( $container, $index = false )\n\t\t{\n\t\t\treturn $this->getTab( '_options_tab' )->addContainer( $container, $index );\n\t\t}", "public function add($value);", "public function add($value);", "public function addChildElement(HtmlElementInterface $element);", "public function setComponent($component)\n {\n $this->component = $component;\n return $this;\n }", "public function go(Widget $container) {\n\t\t$container->add($this->asWidget());\n\t}", "public function handle(AddComponentGroupCommand $command)\n {\n $group = ComponentGroup::create([\n 'name' => $command->name,\n 'order' => $command->order,\n 'collapsed' => $command->collapsed,\n 'visible' => $command->visible,\n ]);\n\n event(new ComponentGroupWasAddedEvent($this->auth->user(), $group));\n\n return $group;\n }", "public function register(Container $container): void;", "protected function attached($component)\n\t{\n\t\tif ($component instanceof DataGrid\\DataGrid) {\n\t\t\t$this->setParent($component);\n\n\t\t\tif ($this->caption === NULL) {\n\t\t\t\t$this->caption = $this->getName();\n\t\t\t}\n\t\t}\n\t}", "abstract public function inject(AbstractComponent $component);", "public function add($item)\n {\n $this->addArray('content', $item, array('ButtonContainer', 'Container', 'Form', 'Heading', 'HTML', 'Image', 'Checkbox', 'Email', 'HiddenField', 'Label', 'Password', 'Phone', 'RadioButtons', 'SelectMenu', 'TextInput', 'TextArea', 'Upload', 'XList', 'Table'));\n }", "public function addCategory(CategoryElementInterface $category);", "public function addElement($item)\n {\n $this->items[$this->itemsCount] = $item;\n $this->itemsCount++;\n }", "public function add($element) {\n //debug('Form->add() ; START');\n //debug('Form->add() : '.get_class($element).' -- '.$element->getName().' -- '.$element->getId());\n if(is_object($element)) {\n if(false == $this->idIsAvailable($element)) {\n throw new Exception('Element name ('.$element->getId().') already exist');\n } else {\n $this->elements[] = $element;\n $this->aIds[] = $element->getId();\n $this->nbElements++;\n\n //debug('Form->add() : fireEvent(\\'addedToParent\\')');\n //debug('Form->add() : $this->errorMethod : '.$this->errorMethod);\n $element->fireEvent('addedToParent', array(\n 'parent' => $this,\n 'showError' => $this->errorMethod\n ));\n\n //~ $element->setParent($this);\n }\n } else {\n throw new Exception('Can\\'t add element : it must be an object');\n }\n\n //debug('Form->add() ; END');\n return $element;\n }", "public function add(Attribute $attribute)\n {\n $this->items[$attribute->getName()] = $attribute;\n }", "public function addRequirement($name, $component)\n {\n if (is_object($component)) {\n self::$INJECTS[$name] = $component;\n } else {\n self::$CONFIG[$name] = $component;\n }\n }", "function add($item) {\n\t\t\tif(!$this->contains($items)) {\n\t\t\t\tarray_push($this->items, $item);\n\t\t\t}\n\t\t}", "public function add(Category $category);", "public function addItem($item){\n $this->items[] = $item;\n }", "public function addItem($content = null) {\n\t\t$ctrl = new BlockControl($this->itemTag);\n\t\t$ctrl->setContent($content);\n\t\t$this->AddControl($ctrl);\n\t\treturn $ctrl;\n\t}", "public function addAction()\n {\n $manager = $this->getDI()->get('core_category_manager');\n $this->view->form = $manager->getForm();\n }", "public function add()\n\t{\n\n\t}", "public function add()\n\t{\n\n\t}", "public function add(SymfonyCommand $command)\n {\n if ($command instanceof Command) {\n $command->setContainer($this->container);\n }\n\n return $this->addToParent($command);\n }", "public function addCard($card)\n {\n $this->cards[] = $card;\n }", "public function testContainerAddAcceptsServiceProvider()\n {\n $c = new Container;\n\n $c->add((new Asset\\ServiceProviderFake));\n\n $this->assertInstanceOf('League\\Container\\Test\\Asset\\Baz', $c->get('test'));\n $this->assertInstanceOf('stdClass', $c->get('test.instance'));\n }", "public function addContainerServices()\n {\n $this->replaceParamsObject();\n\n $this->addCommonServices();\n\n if ( $this->container->platform->isBackend() )\n {\n $this->addAdminServices();\n }\n else\n {\n $this->addSiteServices();\n }\n }", "public function add(ModInterface $mod): self\n {\n $this->container[] = $mod;\n\n return $this;\n }", "public function addElement(TestInterface $element);", "public function add($item)\n {\n $this->addArray('content', $item, 'Element');\n }", "public function addItem($item)\n\t{\n\t\t$this->_items[] = $item;\n\t}", "public function addComponent(GridFieldComponent $component, $insertBefore = 'GridFieldLimitItems') {\n return parent::addComponent($component, $insertBefore);\n }", "function add($item);", "public function add(SymfonyCommand $command)\r\n {\r\n if ($command instanceof Command) {\r\n $command->setContainer($this->yuga);\r\n }\r\n\r\n return $this->addToParent($command);\r\n }", "protected function add() {\n\t}", "public function addObject(ObjectInterface $object)\n {\n $id = ++$this->objectCount;\n $this->objects[$id] = $object;\n $this->indirectObjects[$object] = new IndirectObject($id, 0, $this);\n }", "public function add($value)\n {\n $value = (string) $value;\n if (!in_array($value, $this->items)) {\n $this->items[] = $value;\n }\n }", "public function addWidget()\r\n {\r\n }", "public function setComponent(string $component)\n\t{\n\t\t$this->component = $component;\n\n\t\treturn $this;\n\t}", "public function add($item, $id = null);", "public function AddModule(IModule $module) {\n\t\t$this->modules[] = $module;\n\t}", "public function Add($aObject)\n\t{\n\t\tif (is_array($aObject) && safe_count($aObject) > 0) {\n\t\t\t$cl = $aObject[0];\n\t\t\tif (($cl instanceof Plot\\IconPlot)) {\n\t\t\t\t$this->AddIcon($aObject);\n\t\t\t} elseif (($cl instanceof Text\\Text)) {\n\t\t\t\t$this->AddText($aObject);\n\t\t\t} else {\n\t\t\t\t$n = safe_count($aObject);\n\t\t\t\tfor ($i = 0; $i < $n; ++$i) {\n\t\t\t\t\t$this->iObj[] = $aObject[$i];\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (($aObject instanceof Plot\\IconPlot)) {\n\t\t\t\t$this->AddIcon($aObject);\n\t\t\t} elseif (($aObject instanceof Text\\Text)) {\n\t\t\t\t$this->AddText($aObject);\n\t\t\t} else {\n\t\t\t\t$this->iObj[] = $aObject;\n\t\t\t}\n\t\t}\n\t}", "public function addAction() {\t\t\n\t\t$arUser = $this->authenticate();\n\t\tif( !$this->_request->isPost()) {\n\t\t\t$this->view->channel_id = $this->_getParam('channel_id');\n\t\t\t$this->view->formAction = $this->getRequest()->getBaseUrl().'/item/add';\n\t\t} else {\n\t\t\t$channelID = (int)$this->_getParam('channel_id');\n\t\t\t$item = new Items();\t\t\t\n\t\t\t$item->addItem($channelID, $this->_getParam('title'), $arUser['id']);\n\t\t\t$this->_helper->redirector->goto('add', 'item', null, array('channel_id'=>$channelID));\n\t\t}\t\t\n\t}" ]
[ "0.7784538", "0.77816904", "0.7690919", "0.69832504", "0.68490547", "0.6720029", "0.651199", "0.63161254", "0.62592995", "0.61905617", "0.60582817", "0.60511184", "0.5950936", "0.58821976", "0.57395196", "0.5710805", "0.5705764", "0.5678352", "0.56743646", "0.5671025", "0.5557354", "0.55299824", "0.5521574", "0.5511466", "0.5435618", "0.54285216", "0.53411573", "0.53022945", "0.52905196", "0.5205091", "0.51985145", "0.5171008", "0.51075613", "0.50764126", "0.50764126", "0.50764126", "0.50623554", "0.5059248", "0.50366455", "0.5021169", "0.5012037", "0.5012037", "0.49962828", "0.49955398", "0.49870378", "0.4973456", "0.49677292", "0.49574912", "0.48993072", "0.4893348", "0.48787445", "0.4875622", "0.4864407", "0.48621058", "0.48621058", "0.48507005", "0.4845296", "0.48434332", "0.48360977", "0.48360977", "0.4796656", "0.47926593", "0.47842404", "0.47748938", "0.47648326", "0.47639754", "0.47634467", "0.47561666", "0.47411686", "0.47396597", "0.47337508", "0.47279507", "0.47274676", "0.47261587", "0.47061333", "0.4698486", "0.46934173", "0.46912885", "0.46784195", "0.46784195", "0.4675264", "0.46703315", "0.46688083", "0.46664336", "0.46456257", "0.4623728", "0.4617726", "0.4614229", "0.46040377", "0.4593858", "0.4588783", "0.45799986", "0.4577968", "0.45745853", "0.4566325", "0.45661014", "0.45624638", "0.4560025", "0.45559454", "0.4545551" ]
0.599527
12
Iterates over all form controls.
public function getControls() { return $this->getComponents(TRUE, 'Nette\Forms\IFormControl'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllControls();", "protected function regenerateFormControls()\n\t{\n\t\t$form = $this->getForm();\n\n\t\t// regenerate checker's checkbox controls\n\t\tif ($this->hasOperations()) {\n\t\t\t$values = $form->getValues();\n\n\t\t\t$form->removeComponent($form['checker']);\n\t\t\t$sub = $form->addContainer('checker');\n\t\t\tforeach ($this->getRows() as $row) {\n\t\t\t\t$sub->addCheckbox($row[$this->keyName], $row[$this->keyName]);\n\t\t\t}\n\n\t\t\tif (!empty($values['checker'])) {\n\t\t\t\t$form->setDefaults(array('checker' => $values['checker']));\n\t\t\t}\n\t\t}\n\n\t\t// for selectbox filter controls update values if was filtered over column\n\t\tif ($this->hasFilters()) {\n\t\t\tparse_str($this->filters, $list);\n\n\t\t\tforeach ($this->getFilters() as $filter) {\n\t\t\t\tif ($filter instanceof SelectboxFilter) {\n\t\t\t\t\t$filter->generateItems();\n\t\t\t\t}\n\n\t\t\t\tif ($this->filters === $this->defaultFilters && ($filter->value !== NULL || $filter->value !== '')) {\n\t\t\t\t\tif (!in_array($filter->getName(), array_keys($list))) $filter->value = NULL;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// page input & items selectbox\n\t\t$form['page']->setValue($this->paginator->page); // intentionally page from paginator\n\t\t$form['items']->setValue($this->paginator->itemsPerPage);\n\t}", "function RenderChildren() {\n if ($this->HasControls()) {\n foreach($this->Controls as $control) {\n $control->Render();\n }\n }\n }", "public function getControls()\n\t{\n\t\t$this->ensureChildControls();\n\t\treturn $this->_container->getControls();\n\t}", "public function getControls();", "public function selectAllForms();", "public function getControls()\n {\n return $this->controls;\n }", "public function controls()\n {\n }", "protected function _handle_forms()\n\t{\n\t\tif (!strlen($this->_form_posted)) return;\n\t\t$method = 'on_'.$this->_form_posted.'_submit';\n\n\t\tif (method_exists($this, $method))\n\t\t{\n\t\t\tcall_user_func(array($this, $method), $this->_form_action);\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ($this->controls as $k=>$v)\n\t\t{\n\t\t\t$ctl = $this->controls[$k];\n\n\t\t\tif (method_exists($ctl, $method))\n\t\t\t{\n\t\t\t\t$ctl->page = $this;\n\t\t\t\tcall_user_func(array($ctl, $method), $this->_form_action);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (DEBUG) dwrite(\"Method '$method' not defined\");\n\t}", "protected function _register_controls() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore\n\n\t\t$this->register_controls();\n\t}", "public function BuildControls() {\n\n $this->EncType= $this->GetOption('EncType');\n\n // convert array of arrays into array of objects\n foreach($this->Controls as $Name=>&$Control) {\n // skip already builded controls\n if (is_object($Control)) {\n continue;\n }\n // find classname\n if (!isset($Control['Type'])) {\n $Control += array('Type'=>'text', 'Attributes'=>array('UNKNOWNTYPE'=>'YES'));\n }\n if (strpos($Control['Type'], '\\\\') === false) { // short name, ex.: \"select\"\n $Type= ucfirst($Control['Type']);\n $Class= '\\\\Accent\\\\Form\\\\Control\\\\'.$Type.'Control';\n } else { // it is fully qualified class name\n $Class= $Control['Type'];\n }\n if (!class_exists($Class)) {\n $this->Error('Class \"'.$Class.'\" not found.');\n $Class= '\\\\Accent\\\\Form\\\\Control\\\\TextControl'; // fallback to any primitive control\n }\n // copy this array into $Options and append few more items\n // and append common options to allow usage of services\n $Options= $Control + array(\n 'Name'=> $Name,\n 'Form'=> $this,\n 'Book'=> $this->GetOption('Book')\n ) + $this->GetCommonOptions();\n $Control= new $Class($Options);\n // switch to multipart encoding if any control require that\n if ($Control->GetMultipartEncoding()) {\n $this->EncType= 'multipart/form-data';\n }\n }\n $this->Builded= true;\n }", "private function GetAllForms() {\n $tmp_word_info = $this->word->GetGramInfo();\n $result = array();\n foreach ($tmp_word_info as $info) {\n $result[] = $this->GenerateForms($this->CleanGrammaInfo($info));\n }\n $this->word->SetForms($result);\n }", "protected function _register_controls() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore \n\n\t\t$this->register_general_content_controls();\n\n\t\t$this->register_count_content_controls();\n\n\t\t$this->register_helpful_information();\n\t}", "public function GetControlsList() {\n\n return array_keys($this->Controls);\n }", "protected abstract function printFormElements();", "protected function forms()\r\n {\r\n $metaFileInfo = $this->getFormObj()->GetMetaFileInfo();\r\n $modulePath = $metaFileInfo['modules_path'];\r\n $modulePath = substr($modulePath,0,strlen($modulePath)-1);\r\n global $g_MetaFiles;\r\n php_grep(\"<EasyForm\", $modulePath);\r\n \r\n for ($i=0; $i<count($g_MetaFiles); $i++)\r\n {\r\n $g_MetaFiles[$i] = str_replace('/','.',str_replace(array($modulePath.'/','.xml'),'', $g_MetaFiles[$i]));\r\n $list[$i]['val'] = $g_MetaFiles[$i];\r\n $list[$i]['txt'] = $g_MetaFiles[$i];\r\n }\r\n\r\n return $list; \r\n }", "function fetchAllForms () {\n global $wpdb;\n $table_name = $wpdb->prefix . \"dx_forms_meta_data\";\n $dbResults = $wpdb->get_results( \"SELECT * FROM $table_name\" );\n\n echo \"<h1>All forms</h1>\";\n\n // loop through all forms\n foreach ($dbResults as $row) {\n ?>\n <div>Last updated on: <?= date(\"F j, Y. g:i A\",strtotime($row->timestamp)) ?></div>\n <div><?= $row->form_name ?></div>\n <h3>Form submissions</h3>\n <?php\n // get field mappings (ID to name) from DB row\n $field_mappings = json_decode($row->field_mappings, true);\n \n $this->fetchFormSubmissions($row->form_id, $field_mappings);\n }\n\n echo \"<hr>\";\n }", "public function iterateAllElements()\n {\n return $this->getIterator();\n }", "protected function Form_Run() {}", "function initChildrenRecursive() {\n $this->initChildControls();\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count = count($this->Controls);\n for ($i = 0; $i < $count; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n $control->initChildrenRecursive();\n }\n }\n\n }", "public function listForms();", "public function Populate() {\r\n\t\t$form_instance = $this->form_instance;\r\n\t\t// Retrieve the field data\r\n\t\t$_els = vcff_parse_container_data($form_instance->form_content);\r\n\t\t// If an error has been detected, return out\r\n\t\tif (!$_els || !is_array($_els)) { return; }\r\n\t\t// Retrieve the form instance\r\n\t\t$form_instance = $this->form_instance; \r\n\t\t// Loop through each of the containers\r\n\t\tforeach ($_els as $k => $_el) {\r\n\t\t\t// Retrieve the container instance\r\n\t\t\t$container_instance = $this->_Get_Container_Instance($_el);\r\n\t\t\t// Add the container to the form instance\r\n\t\t\t$form_instance->Add_Container($container_instance);\r\n\t\t}\r\n\t}", "protected function traverseFields(): void\n {\n $columns = $this->definition->tca['columns'] ?? [];\n foreach ($this->definition->data as $fieldName => $value) {\n if (! is_array($columns[$fieldName])) {\n continue;\n }\n \n $this->registerHandlerDefinitions($fieldName, $columns[$fieldName], [$fieldName]);\n \n // Handle flex form fields\n if (isset($columns[$fieldName]['config']['type']) && $columns[$fieldName]['config']['type'] === 'flex') {\n $this->flexFormTraverser->initialize($this->definition, [$fieldName])->traverse();\n }\n }\n }", "public function getElements() : array\n {\n return $this->formElements;\n }", "public function getForms()\n {\n return $this->form;\n }", "function get_forms()\n {\n $forms = array();\n $form_manager = C_Form_Manager::get_instance();\n foreach ($form_manager->get_forms($this->object->get_form_type()) as $form) {\n $forms[] = $this->get_registry()->get_utility('I_Form', $form);\n }\n return $forms;\n }", "public function show_forms() {\n ?>\n <div class=\"metabox-holder\">\n <?php foreach ( $this->settings_tabs as $tab ) { ?>\n <div id=\"<?php echo $tab['id']; ?>\" class=\"group\" style=\"display: none;\">\n <form method=\"post\" action=\"options.php\">\n <?php\n do_action( $this->settings_prefix . '_settings_form_top_' . $tab['id'], $tab );\n settings_fields( $tab['id'] );\n\n $this->do_settings_sections( $tab['id'] );\n\n do_action( $this->settings_prefix . '_settings_form_bottom_' . $tab['id'], $tab );\n ?>\n <div>\n <?php submit_button(); ?>\n </div>\n </form>\n </div>\n <?php } ?>\n </div>\n <?php\n $this->script();\n }", "protected function _register_controls()\n {\n $this->tab_content();\n $this->tab_style();\n }", "public function iterateChildren();", "function dumpChildrenFormItems($return_contents=false)\r\n {\r\n //Iterates through components, dumping all form items\r\n reset($this->components->items);\r\n\r\n if ($return_contents) ob_start();\r\n while (list($k,$v)=each($this->components->items))\r\n {\r\n if ($v->inheritsFrom('Control'))\r\n {\r\n if ($v->canShow())\r\n {\r\n $v->dumpFormItems();\r\n }\r\n }\r\n else $v->dumpFormItems();\r\n }\r\n if ($return_contents)\r\n {\r\n $contents=ob_get_contents();\r\n ob_end_clean();\r\n return($contents);\r\n }\r\n }", "function controls()\n\t{\n\t}", "public function register_controls()\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 }", "public function getControlNames();", "public function updateForms()\n {\n $this->updateSubmitForms();\n $this->updateSearchForms();\n $this->updateSearchFields();\n $this->updateFeaturedFormFields();\n $this->updateTitlesFormFields();\n $this->updateShortFormFields();\n $this->updateSortingFormFields();\n }", "public function forms(): array\n {\n return HOMMFormViewer::$plugin->formViewerService->getForms();\n }", "protected function setupForms()\n {\n if (null === $this->forms) {\n $configuration = $this->getConfiguration();\n foreach ($configuration['routes'] as $name => $conf) {\n $this->forms[$name] = $this->setupForm($name, $conf);\n }\n }\n }", "protected function _register_controls() {\n\t}", "protected function findAllTextFields()\n {\n return $this->findAll(\n 'css',\n 'input:not([type=button])'\n .':not([type=checkbox])'\n .':not([type=hidden])'\n .':not([type=image])'\n .':not([type=radio])'\n .':not([type=reset])'\n .':not([type=submit])'\n );\n }", "public function getControlFields()\n {\n $fields = array();\n $query = 'response > record > marcRecord > controlfield';\n $controlFields = $this->domCrawler->filter($query)->each(function(Crawler $node) {\n return new ControlField($node);\n });\n\n\n return $controlFields;\n }", "public function prepare_controls()\n {\n }", "protected function processFields()\n\t{\n\t\t// Check for existence of a model\n\t\tif (NULL === ($model = $this->getModel())) {\n\t\t\tthrow new Scil_Services_Model_Decorator_Exception(__METHOD__.' no model available to process!');\n\t\t}\n\n\t\t// Get the fields\n\t\t$fields = $model->getFieldsAsContainer();\n\n\t\t// Create output array\n\t\t$zendFormElements = array();\n\n\t\t// Process each form field\n\t\tforeach ($fields as $key => $value) {\n\t\t\tif (FALSE === $this->_selectSpecificFields or in_array($key, $this->_selectSpecificFields)) {\n\t\t\t\t$zendFormElements[$key] = $this->createZendFormElement($value);\n\t\t\t}\n\t\t}\n\n\t\t// Return the rendered elements\n\t\treturn $zendFormElements;\n\t}", "public function all_forms() {\n $searched = isset($_REQUEST['s']) && !empty($_REQUEST['s']) ? true : false;\n global $wpdb, $forms_list;\n require( SWPM_FORM_BUILDER_PATH . 'views/all_forms.php' );\n\t$gen_settings= new SwpmFbSettings();\n\t$gen_settings->render_settings_page();\n }", "function loadRecursive() {\n $this->ControlOnLoad();\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count = count($this->Controls);\n for ($i = 0; $i < $count ; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n $control->loadRecursive();\n }\n }\n $this->_state = WEB_CONTROL_LOADED;\n }", "protected function renderFields(): void\n {\n foreach ($this->getFields() as $field) {\n $fieldId = $this->getFieldId($field->getSlug());\n $value = $this->wpOptions->getByPage($this, $field->getSlug());\n\n $field->renderConfig($fieldId, $value);\n }\n }", "abstract public function forms();", "protected function get_controls()\n\t{\n\t\treturn array\n\t\t(\n\t\t\tself::CONTROL_PERMISSION => Module::PERMISSION_CREATE,\n\t\t\tself::CONTROL_RECORD => true,\n\t\t\tself::CONTROL_OWNERSHIP => true,\n\t\t\tself::CONTROL_FORM => true\n\t\t)\n\n\t\t+ parent::get_controls();\n\t}", "public function form_fields() {\n\t\treturn apply_filters( \"appthemes_{$this->box_id}_metabox_fields\", $this->form() );\n\t}", "function createChildrenRecursive() {\n $this->CreateChildControls();\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count = count($this->Controls);\n for ($i = 0; $i < $count; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n $control->createChildrenRecursive();\n }\n }\n $this->initChildrenRecursive();\n }", "public function all_forms() {\n\t\tglobal $wpdb, $current_user, $forms_order, $forms_list;\n\n\t\tget_currentuserinfo();\n\n\t\t// Save current user ID\n\t\t$user_id = $current_user->ID;\n\n\t\t// Get the Form Order type settings, if any\n\t\t$user_form_order_type = get_user_meta( $user_id, 'vfb-form-order-type', true );\n\n\t\t// Get the Form Order settings, if any\n\t\t$user_form_order = get_user_meta( $user_id, 'vfb-form-order' );\n\t\tforeach ( $user_form_order as $form_order ) {\n\t\t\t$form_order = implode( ',', $form_order );\n\t\t}\n\n\t\t// List view is default sorting\n\t\t$order = sanitize_sql_orderby( 'form_title ASC' );\n\n\t\t// Sort based on custom order, if mode is selected\n\t\tif ( in_array( $user_form_order_type, array( 'order' ) ) )\n\t\t\t$order = ( isset( $form_order ) ) ? \"FIELD( form_id, $form_order )\" : sanitize_sql_orderby( 'form_id DESC' );\n\n\t\t$where = apply_filters( 'vfb_pre_get_forms', '' );\n\t\t$forms = $wpdb->get_results( \"SELECT form_id, form_title, form_paypal_setting FROM {$this->form_table_name} WHERE 1=1 $where ORDER BY $order\" );\n\n\t\tif ( !$forms ) :\n\t\t\techo '<div class=\"vfb-form-alpha-list\"><h3 id=\"vfb-no-forms\">You currently do not have any forms. <a href=\"' . esc_url( admin_url( 'admin.php?page=vfb-add-new' ) ) . '\">Click here to get started</a>.</h3></div>';\n\t\t\treturn;\n\t\tendif;\n\n\t\techo '<form id=\"forms-filter\" method=\"post\" action=\"\">';\n\n\t\t// List view\n\t\tif ( in_array( $user_form_order_type, array( 'list', '' ) ) ) :\n\t\t\t$forms_list->views();\n\t\t\t$forms_list->prepare_items();\n\n \t$forms_list->search_box( 'search', 'search_id' );\n \t$forms_list->display();\n\t\t// Ordered view\n\t\telse :\n\t\t\t$forms_order->views();\n\t\t\t$forms_order->prepare_items();\n\n\t\t\t$forms_order->search_box( 'search', 'search_id' );\n\t\t\t$forms_order->display();\n\n\t\tendif;\n\n\t\techo '</form>';\n\t}", "protected function controlActiveElements() {}", "public function getForms()\n { return craft()->coalescentForms->getAllForms();\n }", "public function meta_box_form_items() {\n include_once (SWPM_FORM_BUILDER_PATH . 'views/button_palette_metabox.php');\n }", "function HasControls() {\n return (count($this->Controls) > 0);\n }", "public function testFindComplexControl()\n {\n $names = ['hello', 10, 0, '0', '0.0'];\n\n foreach ($names as $name)\n {\n $form = $this->setupFormFind('', $name);\n\n $control = $form->findFormControlByName($name);\n $this->assertNotEmpty($control);\n $this->assertEquals($name, $control->getLocalName());\n }\n }", "public function getForm(): array\n {\n return $this->form;\n }", "protected function _register_controls()\n\t{\n\n\t\t$this->start_controls_section(\n\t\t\t'section_settings',\n\t\t\t[\n\t\t\t\t'label' => __('Settings', 'algolia-wp-plugin'),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'index_name',\n\t\t\t[\n\t\t\t\t'label' => __('Search Index', 'algolia-wp-plugin'),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'show_label' => true,\n\t\t\t\t'default' => 'wp_searchable_posts',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'facet_filters',\n\t\t\t[\n\t\t\t\t'label' => __('Facet Filters', 'algolia-wp-plugin'),\n\t\t\t\t'type' => Controls_Manager::CODE,\n\t\t\t\t'show_label' => true,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hits_per_page',\n\t\t\t[\n\t\t\t\t'label' => __('Hits Per Page', 'algolia-wp-plugin'),\n\t\t\t\t'show_label' => true,\n\t\t\t\t'type' => Controls_Manager::NUMBER,\n\t\t\t\t'default' => 5,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'localize',\n\t\t\t[\n\t\t\t\t'label' => __('Localize', 'algolia-wp-plugin'),\n\t\t\t\t'type' => Controls_Manager::SWITCHER,\n\t\t\t\t'default' => true,\n\t\t\t\t'frontend_available' => true,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}", "public function iterate()\n {\n collect($this)->each([ $this, 'assign' ]);\n }", "public function setupDefaultClasses($form) {\n\t\tif ($form->getElementPrototype()->class)\n\t\t\t$form->getElementPrototype()->class = [$form->getElementPrototype()->class];\n\n\t\t$form->getElementPrototype()->class[] = 'form-horizontal';\n\n\t\t$this->classButtons($form);\n\n\t\tforeach ($form->getControls() as $control) {\n\t\t\tif ($control instanceof Controls\\TextBase || $control instanceof Controls\\SelectBox || $control instanceof Controls\\MultiSelectBox || $control instanceof \\Vodacek\\Forms\\Controls\\DateInput || $control instanceof Controls\\UploadControl) {\n\t\t\t\tif ($control instanceof Controls\\UploadControl) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($control->getControlPrototype()->class) {\n\t\t\t\t\t$control->getControlPrototype()->class = [$control->getControlPrototype()->class];\n\t\t\t\t}\n\n\t\t\t\tif (!$control->getOption('no-form-control')) {\n\t\t\t\t\t$control->getControlPrototype()->class[] = 'form-control';\n\t\t\t\t}\n\n\t\t\t\tif ($control->isRequired()) {\n\t\t\t\t\t$control->getControlPrototype()->class[] = 'required';\n\t\t\t\t}\n\t\t\t} elseif ($control instanceof Controls\\CheckboxList || $control instanceof Controls\\RadioList) {\n\t\t\t\t$control->getSeparatorPrototype()->setName('div')->class($control->getControlPrototype()->type);\n\t\t\t} elseif ($control instanceof Controls\\Checkbox) {\n\t\t\t\t$control->getLabelPrototype()->class[] = 'checkbox';\n\t\t\t}\n\t\t}\n\t}", "protected function render_children( WP_Form $form ) {\n\t\t$children = '';\n\t\tforeach ( $form->get_children() as $child ) {\n\t\t\t$children .= $this->render_child($child);\n\t\t}\n\t\treturn $children;\n\t}", "public function form_elements() {\n\n\t\t\t// Instantiate Widget Inputs\n\t\t\t$form_elements = new Layers_Form_Elements();\n\n\t\t\t// Return design bar\n\t\t\treturn $form_elements;\n\n\t\t}", "protected function _readFormFields() {}", "abstract function performCountAll(Form $arg0);", "protected function addFormFieldNamesToViewHelperVariableContainer() {}", "function theme_children(&$form) {\n\n\t\tforeach (element_children($form) as $key => $value) {\n\n\t\t\t$item = $form[$value];\n\t\t\t$type = $item[\"#type\"];\n\t\n\t\t\t$required = !empty($item['#required']) ? \n\t\t\t\t'<span class=\"reg-form-required\" title=\"' \n\t\t\t\t. t('This field is required.') . '\"> *</span>' : '';\n\n\t\t\t$valign = \"\";\n\t\t\tif ($type == \"radios\") {\n\t\t\t\t$valign = \"valign=\\\"top\\\" \";\n\t\t\t}\n\n\t\t\t$attrib = drupal_attributes($item[\"#attributes\"]);\n\t\t\t$retval .= \"<tr >\"\n\t\t\t\t. \"<td $valign align=\\\"right\\\" class=\\\"reg-name\\\">\";\n\n\t\t\t//\n\t\t\t// If we don't know how to render this item, let Drupal render it.\n\t\t\t//\n\t\t\tif ($type != \"textfield\"\n\t\t\t\t&& $type != \"select\"\n\t\t\t\t&& $type != \"checkbox\"\n\t\t\t\t&& $type != \"date\"\n\t\t\t\t&& $type != \"radios\"\n\t\t\t\t&& $type != \"cc_exp\"\n\t\t\t\t&& $type != \"item\"\n\t\t\t\t) {\n\t\t\t\t//print $type; // Debugging\n\t\t\t\t//print \"<pre>\"; print_r($item); print \"</pre>\"; // Debugging\n\t\t\t\t$retval .= drupal_render($item);\n\n\t\t\t} else {\n\t\t\t\t$retval .= '<div class=\"reg-form-item\">' . \"\\n\";\n\t\t\t\t$retval .= \"<label>\" . $item[\"#title\"] . \": \" . \"</label>\";\n\t\t\t\t$retval .= \"</div>\";\n\t\t\n\t\t\t\t$retval .= \"</td>\\n\";\n\n\t\t\t\t//\n\t\t\t\t// Radio buttons get a colspan of 2, since they're for our \n\t\t\t\t// membership types.\n\t\t\t\t//\n\t\t\t\t$colspan = \"\";\n\t\t\t\tif ($type == \"radios\") {\n\t\t\t\t\t$colspan = \"colspan=\\\"2\\\"\";\n\t\t\t\t}\n\n\t\t\t\t//\n\t\t\t\t// This form generation code was ripped from theme_textfield().\n\t\t\t\t// If you need more functionality for generating text fields, \n\t\t\t\t// you'll have to rip it from there. :-P\n\t\t\t\t//\n\t\t\t\t$retval .= \"<td class=\\\"reg-value\\\" $colspan>\";\n\t\t\t\t$retval .= '<div class=\"reg-form-item\">' . \"\\n\";\n\n\t\t\t\t$retval .= $this->render_item($item);\n\n\t\t\t\t$retval .= $required;\n\n\t\t\t\t$retval .= \"</div></td>\\n\";\n\n\t\t\t\t//\n\t\t\t\t// Ripped from theme_form_element\n\t\t\t\t//\n\t\t\t\tif ($type != \"radios\") {\n\t\t\t\t\t$retval .= $this->get_description($item);\n\t\t\t\t}\n\n\t\t\t} \n\n\t\t\t$retval .= \"</tr>\\n\";\n\n\t\t} // End of foreach()\n\n\t\treturn($retval);\n\n\t}", "public function build_controls()\n\t{\n\t\t$this->add_control( 'title', [\n\t\t\t'label' => __( 'Title' )\n\t\t] );\n\t\t$this->add_control( 'content', [\n\t\t\t'label' => __( 'Content' ),\n\t\t\t'type' => 'textarea'\n\t\t] );\n\t\t$this->add_control( 'link_url', [\n\t\t\t'label' => __( 'URL' )\n\t\t] );\n\t\t$this->add_control( 'link_text', [\n\t\t\t'label' => __( 'Link Text' )\n\t\t] );\n\t\t$this->add_control( 'link_target', [\n\t\t\t'label' => __( 'Open link in a new window/tab' ),\n\t\t\t'type' => 'checkbox',\n\t\t\t'value' => '1'\n\t\t] );\n\t}", "public function getElements(WebformInterface $webform, $langcode = NULL, $reset = FALSE);", "public function submission_form_fields() {\n\n\t\t$fields = $this->get_custom_fields();\n\n\t\tif ( ! empty( $fields ) ) {\n\n\t\t\tforeach ( $fields as $name => $field ) {\n\n\t\t\t\t/* Do not display core fields */\n\t\t\t\tif ( true === $field['args']['core'] ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this_field = new CustomField( $name, $field );\n\t\t\t\t$output = $this_field->get_output();\n\n\t\t\t\techo $output;\n\n\t\t\t}\n\n\t\t}\n\n\t}", "static function get_elements( $form ) {\n\t\t$elements = array();\n\n\t\tforeach( $form as $key => &$element ) {\n\t\t\tif( $key[0] == '#' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$element += self::$element_defaults;\n\n\t\t\tif( !is_array( $element['#class'] ) ) {\n\t\t\t\t$element['#class'] = array( $element['#class'] );\n\t\t\t}\n\n\t\t\t// Default some properties to $key\n\t\t\tforeach( array( '#key', '#slug', '#name' ) as $field ) {\n\t\t\t\tif( empty( $element[$field] ) ) {\n\t\t\t\t\t$element[$field] = $key;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$elements[$key] = &$element;\n\t\t}\n\n\t\treturn $elements;\n\t}", "protected function register_controls() {\n\n\t\t$this->render_team_member_content_control();\n\t\t$this->register_content_separator();\n\t\t$this->register_content_social_icons_controls();\n\t\t$this->register_helpful_information();\n\n\t\t/* Style */\n\t\t$this->register_style_team_member_image();\n\t\t$this->register_style_team_member_name();\n\t\t$this->register_style_team_member_designation();\n\t\t$this->register_style_team_member_desc();\n\t\t$this->register_style_team_member_icon();\n\t\t$this->register_content_spacing_control();\n\t}", "public function getFormInputs($table = null)\n {\n return (null == $table)? $this->forminputs : $this->forminputs[$table];\n }", "function dumpChildrenJavascript()\r\n {\r\n //Iterates through components, dumping all javascript\r\n $this->dumpJavascript();\r\n reset($this->components->items);\r\n while (list($k,$v)=each($this->components->items))\r\n {\r\n if ($v->inheritsFrom('Control'))\r\n {\r\n if ($v->canShow())\r\n {\r\n $v->dumpJavascript();\r\n }\r\n }\r\n else $v->dumpJavascript();\r\n }\r\n }", "public function customize_controls_init()\n {\n }", "public function listforms()\n {\n\t\t\n }", "function InitChildControls() {\n }", "function show_forms()\n {\n }", "public function getFormFields()\n {\n return $this->form->getFields();\n }", "public function output_widget_control_templates()\n {\n }", "function initRecursive() {\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count = count($this->Controls);\n for ($i = 0; $i < $count; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n @$control->Page = &$this->Page;\n $control->initRecursive();\n }\n }\n $this->_state = WEB_CONTROL_INITIALIZED;\n $this->ControlOnInit();\n }", "abstract function performQueryAll(Form $arg0, $fields = '');", "abstract public function get_gateway_form_fields();", "public function all()\n {\n $endpoint = 'https://api.hubapi.com/forms/v2/forms';\n\n return $this->client->request('get', $endpoint);\n }", "public function getControlList(): array;", "protected function form()\n {\n return [];\n }", "protected function form()\n {\n return [];\n }", "public function populateForm() {}", "public function registerFormWidgets()\n {\n return [];\n }", "function getFormFieldNames() {\n\t\t\tif ($this->hasForm( )) {\n\t\t\t\treturn $this->getForm( )->getFieldNames( );\n\t\t\t}\n\n\t\t\treturn array( );\n\t\t}", "public function cs_generate_form() {\n global $post;\n }", "function CreateChildControls(){\n\t for($i=0; $i<sizeof($this->libs); $i++){\n\t\tif(!$this->error[$this->libs[$i]]){\n\t\t\t$this->AddControl(new ItemsListControl(\"ItemsList_\".$this->libs[$i], \"list\", $this->Storage));\n\t\t\t //Add control to controls\n\t\t\t$extra_url=\"\"; // Clearing ExtraUrl\n\t\t\tfor($j=0; $j<sizeof($this->libs); $j++){ // MAking ExtraUrl based on current controls state\n\t\t\t\t $extra_url .= \"&amp;\".$this->libs[$j].\"_start=\".$this->start[$this->libs[$j]].\"&amp;\".$this->libs[$j].\"_order_by=\".$this->order_by[$this->libs[$j]].($this->is_context_frame ? \"&amp;contextframe=1\" : \"\");\n\t\t\t}\n\t\t\t// Adding ItemsList control\n\t\t\t$this->Controls[\"ItemsList_\".$this->libs[$i]]->InitControl(array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t //\"fields\" => $this->fields,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"library_ID\" => $this->libs[$i],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"self\" => $this->self.\"\".$extra_url,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"handler\" =>$this->handler,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"package\" =>$this->Package,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"order_by\" => $this->order_by[$this->libs[$i]],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"start\" => $this->start[$this->libs[$i]],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"data_extractor\" => $this->extractor_method,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"parent_id\" => $this->parent_id[$this->libs[$i]],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"data\" => $this->data[$this->libs[$i]]\n\t\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t // Getting list of subcategories\n\t\t $sub_categories = $this->Controls[\"ItemsList_\".$this->libs[$i]]->GetSubCategories();\n\t\t $tree_control = $this->Controls[\"ItemsList_\".$this->libs[$i]]->GetTreeControl();\n\t\t $nodelevels = $this->Controls[\"ItemsList_\".$this->libs[$i]]->GetNodeLevels();\n\t\t // Geting current level in catalog\n\t\t $nodelevel = (empty($nodelevels) ? 0 : $nodelevels[$this->parent_id[$this->libs[$i]]]+1);\n\t\t if($sub_categories !== false){\n\t\t\t for($k=0; $k<sizeof($sub_categories); $k++){\n\t\t\t\t if((!empty($sub_categories[$k][\"levels\"]) && in_array($nodelevel, $sub_categories[$k][\"levels\"])) ||\n\t\t\t\t\t(empty($sub_categories[$k][\"levels\"]))\n\t\t\t\t ) {\n\t\t\t\t // Preparing data for Sub-categories controls\n\t\t\t\t $sub_start=\"\";\n\t\t\t\t $sub_order_by=\"\";\n\t\t\t\t $append_str=\"\";\n\t\t\t\t // Building parts of url to preserve host-catalog sorting orders and paging\n\t\t\t\t for($l=0; $l<sizeof($sub_categories); $l++){\n\t\t\t\t\t $sub_start[$l] = $this->Request->ToNumber($sub_categories[$l][\"library\"].\"_start\",0);\n\t\t\t\t\t $sub_order_by[$l] = $this->Request->ToString($sub_categories[$l][\"library\"].\"_order_by\",\"\");\n\t\t\t\t\t $append_str .= \"&amp;\".$sub_categories[$l][\"library\"].\"_start=\".$sub_start[$l].\"&amp;\".$sub_categories[$l][\"library\"].\"_order_by=\".$sub_order_by[$l];\n\t\t\t\t }\n\t\t\t\t $host_extra_url = \"&amp;\".$this->libs[$i].\"_parent_id=\".$this->parent_id[$this->libs[$i]].\"&amp;\".$this->libs[$i].\"_start=\".$this->start[$this->libs[$i]].\"&amp;\".$this->libs[$i].\"_order_by=\".$this->order_by[$this->libs[$i]];\n\t\t\t\t // Appending built extra url to host-catalog control\n\t\t\t\t $this->Controls[\"ItemsList_\".$this->libs[$i]]->AppendSelfString($append_str);\n\t\t\t\t // Adding Child catalog to current host\n\t\t\t\t $this->AddControl(new ItemsListControl(\"ItemsList_sub_\".$sub_categories[$k][\"library\"], \"list\", $this->Storage));\n\t\t\t\t $this->Controls[\"ItemsList_sub_\".$sub_categories[$k][\"library\"]]->InitControl(array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"library_ID\" => $sub_categories[$k][\"library\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"host_library_ID\" => $this->libs[$i],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"self\" => $this->self.\"\".$extra_url.\"\".$host_extra_url.$append_str,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"handler\" =>$this->handler,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"package\" =>$this->Package,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"order_by\" => $sub_order_by[$k],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"start\" => $sub_start[$k],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"data_extractor\" => $this->extractor_method,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"parent_id\" => $this->parent_id[$this->libs[$i]],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"data\" => array($sub_categories[$k][\"link_field\"] => $this->parent_id[$this->libs[$i]]),\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"custom_var\" => $sub_categories[$k][\"link_field\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"custom_val\" => $this->parent_id[$this->libs[$i]],\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"tree_control\" => $tree_control,\n\t\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\t\t}// if\n\t\t\t } // for k\n\n\t\t } // if sub_categories\n\t\t} // if !error\n\t\t} // for i\n\t}", "function add_specific_settings_controls() {\n\n\t\t$this->add_control(\n\t\t\t'success_message',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Success message', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Your message has been sent!', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'error_message',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Error message', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Oops! I cannot send this email!', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'to_send_email',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Send to', 'themeisle-companion' ),\n\t\t\t\t'default' => get_bloginfo( 'admin_email' ),\n\t\t\t\t'description' => esc_html__( 'Where should we send the email?', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'submit_label',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Submit', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Submit', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'align_submit',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Alignment', 'themeisle-companion' ),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'toggle' => false,\n\t\t\t\t'default' => 'left',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'left' => array(\n\t\t\t\t\t\t'title' => __( 'Left', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t),\n\t\t\t\t\t'center' => array(\n\t\t\t\t\t\t'title' => __( 'Center', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t),\n\t\t\t\t\t'right' => array(\n\t\t\t\t\t\t'title' => __( 'Right', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .content-form .submit-form' => 'text-align: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "function _setFormElements() {\n\t\t$jobCategories = $this->Job->JobCategory->find('list');\n\t\t$jobLocations = $this->Job->JobLocation->find('list');\n\t\t$this->set(compact('jobCategories', 'jobLocations'));\n\t}", "public function getPotentialForms()\n {\n return array_keys($this->getForm()->getSubForms());\n }", "protected function getFormList()\n {\n $formList = [];\n foreach ($this->availableAuthenticators as $key => $className) {\n /** @var BootstrapMFAAuthenticator $class */\n $class = Injector::inst()->get($className);\n $formList[] = $class->getMFAForm($this, static::VERIFICATION_METHOD);\n }\n\n return $formList;\n }", "private function _createContainerForms() {\n $forms = [\n [\n 'name' => 'inline',\n 'classname' => 'App\\Models\\Backoffice\\ContainerForms\\Inline'\n ],\n [\n 'name' => 'popup',\n 'classname' => 'App\\Models\\Backoffice\\ContainerForms\\Popup'\n ]\n ];\n\n foreach ($forms as $form) {\n $newForm = new ContainerForm;\n $newForm->fill($form);\n $newForm->save();\n }\n }", "function process_form()\n {\n }", "function CreateChildControls()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"::CreateChildControls();\" . \"<HR>\";\n if ($this->listSettings->GetCount()) {\n if ($this->listSettings->HasItem(\"MAIN\", \"TABLE\")) {\n $this->Table = $this->listSettings->GetItem(\"MAIN\", \"TABLE\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_TABLE_SETTINGS\", array(), true);\n }\n if (! $this->error) {\n\n //parse library file\n \t$this->InitLibraryData();\n \t//reinitilize database columns definitions\n $this->ReInitTableColumns();\n //create validator\n $this->validator = new Validate($this, $this->Storage->columns, $this->library_ID);\n $this->Kernel->ImportClass(\"web.controls.\" . $this->editcontrol, $this->editcontrol);\n $_editControl = new $this->editcontrol(\"ItemsEdit\", \"edit\", $this->Storage);\n $this->AddControl($_editControl);\n }\n } // if\n else {\n $this->AddEditErrorMessage(\"EMPTY_LIBRARY_SETTINGS\", array(), true);\n }\n }", "protected function _register_controls() {\n\t\t$this->start_controls_section(\n\t\t\t'main_clients_settings',\n\t\t\t[\n\t\t\t\t'label' => __( 'Clients Settings', 'elementor-main-clients' ),\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t 'clients-columns',\n\t\t \t[\n\t\t \t'label' \t=> esc_html__( 'Column', 'essential-addons-elementor' ),\n\t\t \t'type' \t\t\t=> Controls_Manager::SELECT,\n\t\t \t'default' \t\t=> '2',\n\t\t \t'options' \t\t=> [\t\t\t\t\n\t\t\t\t\t'1' => esc_html__('1 Column', 'baldiyaat'),\n\t\t\t\t\t'2' => esc_html__('2 Column', 'baldiyaat'),\n\t\t\t\t\t'3' => esc_html__('3 Column', 'baldiyaat'),\n\t\t\t\t\t'4' => esc_html__('4 Column', 'baldiyaat'),\n\t\t\t\t\t'6' => esc_html__('6 Column', 'baldiyaat')\n\t\t \t],\n\t\t \t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'thumbnail-size',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Thumbnail Size', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t'label_block' \t=> false,\n\t\t\t\t'default' => esc_html__( 'hide', 'essential-addons-elementor' ),\n\t\t \t'options' => wpha_get_thumbnail_list(),\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'num-fetch',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Num Fetch', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'label_block' => false,\n\t\t\t\t'default' => 10,\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_section();\n\t\t\n\t\t/**\n\t\t * Clients Text Settings\n\t\t */\n\t\t$this->start_controls_section(\n\t\t\t'main_clients_config_settings',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Clients Images', 'essential-addons-elementor' ),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'slider',\n\t\t\t[\n\t\t\t\t'type' => Controls_Manager::REPEATER,\n\t\t\t\t'seperator' => 'before',\n\t\t\t\t'default' => [\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t\t[ 'main_clients_settings_slide' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png' ],\n\t\t\t\t],\n\t\t\t\t'fields' => [\n\t\t\t\t\t[\n\t\t\t\t\t\t'name' => 'main_clients_settings_slide',\n\t\t\t\t\t\t'label' => esc_html__( 'Image', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'type' => Controls_Manager::MEDIA,\n\t\t\t\t\t\t'default' => [\n\t\t\t\t\t\t\t'url' => KODEFOREST_MAIN_URL . 'assets/clients/simple-clients.png',\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\t'name' => 'main_clients_settings_slide_title',\n\t\t\t\t\t\t'label' => esc_html__( 'Image Title', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t\t\t'label_block' => true,\n\t\t\t\t\t\t'default' => esc_html__( '', 'essential-addons-elementor' )\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'name' => 'main_clients_settings_slide_caption',\n\t\t\t\t\t\t'label' => esc_html__( 'Image Caption', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t\t\t'label_block' => true,\n\t\t\t\t\t\t'default' => esc_html__( '', 'essential-addons-elementor' )\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'name' => 'main_clients_settings_enable_slide_link',\n\t\t\t\t\t\t'label' => __( 'Enable Image Link', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'type' => Controls_Manager::SWITCHER,\n\t\t\t\t\t\t'default' => 'false',\n\t\t\t\t\t\t'label_on' => esc_html__( 'Yes', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'label_off' => esc_html__( 'No', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'return_value' => 'true',\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\t'name' => 'main_clients_settings_slide_link',\n\t\t\t\t\t\t'label' => esc_html__( 'Image Link', 'essential-addons-elementor' ),\n\t\t\t\t\t\t'type' => Controls_Manager::URL,\n\t\t\t\t\t\t'label_block' => true,\n\t\t\t\t\t\t'default' => [\n\t\t \t\t\t'url' => '#',\n\t\t \t\t\t'is_external' => '',\n\t\t \t\t\t],\n\t\t \t\t\t'show_external' => true,\n\t\t \t\t\t'condition' => [\n\t\t \t\t\t\t'main_clients_settings_enable_slide_link' => 'true'\n\t\t \t\t\t]\n\t\t\t\t\t]\n\t\t\t\t],\n\t\t\t\t'title_field' => '{{main_clients_settings_slide_title}}',\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t\t\n\t\t/**\n\t\t * Clients Text Settings\n\t\t */\n\t\t$this->start_controls_section(\n\t\t\t'main_clients_color_settings',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Color & Design', 'essential-addons-elementor' ),\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'main_clients_sub_title_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Image Sub Title Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#f4f4f4',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .slide-item .slide-caption .kode-sub-title' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'main_clients_title_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Image Title Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#f4f4f4',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .slide-item .slide-caption .slide-caption-title' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'main_clients_caption_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Image Caption Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#f4f4f4',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .slide-item .slide-caption .slide-caption-des' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'main_clients_button_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Image Button Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#f4f4f4',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .slide-item .slide-caption .banner_text_btn .bg-color' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'main_clients_button_bg_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__( 'Image Button BG Color', 'essential-addons-elementor' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'default' => '#f4f4f4',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .slide-item .slide-caption .banner_text_btn .bg-color' => 'background-color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t\n\t\t$this->end_controls_section();\n\t\t\n\t\t\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 getFormValues()\n {\n return $this->form->getValues();\n }" ]
[ "0.66396", "0.6395155", "0.59987897", "0.596678", "0.5901082", "0.57954496", "0.56972945", "0.564723", "0.55539083", "0.5546584", "0.55002546", "0.5441837", "0.5419653", "0.5410239", "0.5365661", "0.53204435", "0.52822644", "0.5257858", "0.5224224", "0.5213241", "0.5209556", "0.5183386", "0.51816815", "0.517382", "0.5167605", "0.5136436", "0.5115764", "0.5090955", "0.5090716", "0.5084539", "0.5067071", "0.5057142", "0.5053507", "0.5028505", "0.50240815", "0.49691492", "0.49553034", "0.49371788", "0.49329078", "0.49327666", "0.493118", "0.49273965", "0.49178088", "0.4911517", "0.49021292", "0.48960713", "0.48818427", "0.48674852", "0.48587462", "0.48373404", "0.48241702", "0.48230776", "0.48181078", "0.48131895", "0.4804303", "0.47998613", "0.47844252", "0.47762588", "0.4770425", "0.4769914", "0.47518286", "0.4750166", "0.47353482", "0.4733935", "0.47322756", "0.471709", "0.47165483", "0.47158754", "0.47084218", "0.47019142", "0.47010684", "0.46960968", "0.46865997", "0.4679496", "0.46794948", "0.46740708", "0.4669779", "0.4659665", "0.46569487", "0.46558148", "0.46525455", "0.4651757", "0.46506873", "0.46354157", "0.46354157", "0.46305653", "0.46293184", "0.46084714", "0.4602607", "0.46001837", "0.4599179", "0.45987839", "0.4594814", "0.45893508", "0.4579774", "0.45787433", "0.457679", "0.4574808", "0.45681268", "0.45656624" ]
0.6429766
1
Pro pripad containeru ve formu
public function setRendered($value = TRUE) { $this->setOption('rendered', $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Populate() {\r\n\t\t$form_instance = $this->form_instance;\r\n\t\t// Retrieve the field data\r\n\t\t$_els = vcff_parse_container_data($form_instance->form_content);\r\n\t\t// If an error has been detected, return out\r\n\t\tif (!$_els || !is_array($_els)) { return; }\r\n\t\t// Retrieve the form instance\r\n\t\t$form_instance = $this->form_instance; \r\n\t\t// Loop through each of the containers\r\n\t\tforeach ($_els as $k => $_el) {\r\n\t\t\t// Retrieve the container instance\r\n\t\t\t$container_instance = $this->_Get_Container_Instance($_el);\r\n\t\t\t// Add the container to the form instance\r\n\t\t\t$form_instance->Add_Container($container_instance);\r\n\t\t}\r\n\t}", "private function _createContainerForms() {\n $forms = [\n [\n 'name' => 'inline',\n 'classname' => 'App\\Models\\Backoffice\\ContainerForms\\Inline'\n ],\n [\n 'name' => 'popup',\n 'classname' => 'App\\Models\\Backoffice\\ContainerForms\\Popup'\n ]\n ];\n\n foreach ($forms as $form) {\n $newForm = new ContainerForm;\n $newForm->fill($form);\n $newForm->save();\n }\n }", "public function getFormContainerContent(Form $form)\n {\n $form->addHidden($this->idElement);\n\n parent::getFormContainerContent($form); // last position\n }", "public function createComponentEditForm()\n\t{\n\t\t$form = new Form;\n\t\t$form->addGroup();\n\t\t$form->addHidden('ID_leku');\n\t\t$form->addText('nazev_leku', 'Názov lieku')\n\t\t\t->addRule(Form::FILLED, 'Zadajte názov lieku');\n\t\t$form->addSelect('typ_leku', 'Typ lieku', self::MEDICINE_TYPE)\n\t\t\t->setPrompt('Zvoľte typ lieku')\n\t\t\t->setRequired(TRUE)\n\t\t\t->setAttribute('class', 'form-control');\n\n\t\t$form->addGroup(\"Poisťovne\");\n\t\t$removeEvent = [$this, 'removeElementClicked'];\n\t\t$insurences = $form->addDynamic(\n\t\t\t'insurences',\n\t\t\tfunction (Container $insurence) use ($removeEvent) {\n\t\t\t\t$insurence->addHidden('ID_leku');\n\t\t\t\t$insurence->addSelect('ID_pojistovny', 'Poisťovňa', $this->insurenceManager->getInsurenceToSelectBox())\n\t\t\t\t\t->setRequired(TRUE)\n\t\t\t\t\t->setPrompt('Zvoľte poisťovňu')\n\t\t\t\t\t->setAttribute('class', 'form-control');\n\t\t\t\t$insurence->addText('cena', 'Cena lieku')\n\t\t\t\t\t->setRequired(FALSE)\n\t\t\t\t\t->setDefaultValue('0')\n\t\t\t\t\t->addRule(Form::FLOAT, 'Cena musí byť číslo');\n\t\t\t\t$insurence->addText('doplatek', 'Doplatok na liek')\n\t\t\t\t\t->setRequired(FALSE)\n\t\t\t\t\t->setDefaultValue('0')\n\t\t\t\t\t->addRule(Form::FLOAT, 'Doplatok musí byť číslo');\n\t\t\t\t$insurence->addSelect('hradene', 'Typ lieku', array('hradene' => 'Hradený', 'nehradene' => 'Nehradený', 'doplatok' => 'Liek s doplatkom'))\n\t\t\t\t\t->setPrompt('Zvoľte typ lieku')\n\t\t\t\t\t->setRequired(TRUE)\n\t\t\t\t\t->setAttribute('class', 'form-control');\n\t\t\t\t$removeBtn = $insurence->addSubmit('remove', 'Odstrániť poisťovňu')\n\t\t\t\t\t->setAttribute('class', 'btn-danger')\n\t\t\t\t\t->setValidationScope(false);\n\t\t\t\t$removeBtn->onClick[] = $removeEvent;\n\t\t\t}, 1\n\t\t);\n\n\t\t$insurences->addSubmit('add', 'Pridať poisťovňu')\n\t\t\t->setAttribute('class', 'btn-success')\n\t\t\t->setValidationScope(false)\n\t\t\t->onClick[] = [$this, 'addElementClicked'];\n\n\t\t$form->addGroup(\"Pobočky\");\n\t\t$offices = $form->addDynamic(\n\t\t\t'offices',\n\t\t\tfunction (Container $office) use ($removeEvent) {\n\t\t\t\t$office->addHidden('ID_leku');\n\t\t\t\t$office->addSelect('ID_pobocky', 'Pobočka', $this->officeManager->getOfficesToSelectBox())\n\t\t\t\t\t->setRequired(TRUE)\n\t\t\t\t\t->setPrompt('Zvoľte pobočku')\n\t\t\t\t\t->setAttribute('class', 'form-control');\n\t\t\t\t$office->addText('pocet_na_sklade', 'Počet kusov')\n\t\t\t\t\t->setRequired(TRUE)\n\t\t\t\t\t->setDefaultValue('1')\n\t\t\t\t\t->addRule(Form::INTEGER, 'Počet kusov musí byť číslo')\n\t\t\t\t\t->addRule(Form::RANGE, 'Počet kusov musí byť kladné číslo', array(0, null));\n\n\t\t\t\t$removeBtn = $office->addSubmit('remove', 'Odstrániť pobočku')\n\t\t\t\t\t->setAttribute('class', 'btn-danger')\n\t\t\t\t\t->setValidationScope(false);\n\t\t\t\t$removeBtn->onClick[] = $removeEvent;\n\t\t\t}, 1\n\t\t);\n\n\t\t$offices->addSubmit('add', 'Pridať pobočku')\n\t\t\t->setAttribute('class', 'btn-success')\n\t\t\t->setValidationScope(false)\n\t\t\t->onClick[] = [$this, 'addElementClicked'];\n\n\t\t$form->addGroup('');\n\t\t$form->addSubmit('submit', 'Uložiť liek')\n\t\t\t->setAttribute('class', 'btn-primary')\n\t\t\t->onClick[] = [$this, 'submitElementClicked'];\n\n\t\treturn $this->bootstrapFormRender($form);\n\t}", "protected function createComponentAddGroupForm()\r\n\t{\r\n\t\t$form = new Form;\r\n\t\t$tar = new Tarif;\r\n\t\t$id_set_tarifu = $this->getParam('id');\r\n\t\t$data = $tar->getTypesTarif($id_set_tarifu)->fetchAll();\r\n\t\t$container = $form->addContainer('mpole');\r\n\t\t$i = 0;\r\n\t\tforeach($data as $k => $v){\r\n\t\t\t$i++;\r\n\t\t\t$container->addText('tarif_'.$i, 'Tarifní sazba:')->setValue($v['tarif'])\r\n\t\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t\t->controlPrototype\r\n\t\t\t\t\t\t->autocomplete('off')\r\n\t\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t\t->addRule($form::FLOAT, 'Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\t$container->addText('hodnota_'.$i, 'Kalk. hodnota:')->setValue($v['hodnota'])\r\n\t\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t\t->controlPrototype\r\n\t\t\t\t\t\t->autocomplete('off')\r\n\t\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t\t->addRule($form::FLOAT, 'Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\t\r\n\t\t\t$container->addHidden('tarf_'.$i)->setValue($v['tarif']);\r\n\t\t\t$container->addHidden('hodn_'.$i)->setValue($v['hodnota']);\r\n\t\t\t$container->addHidden('idto_'.$i)->setValue($v['idto']);\r\n\t\t\t$container->addHidden('idso_'.$i)->setValue($v['idso']);\r\n\t\t}\r\n\t\t$form->addHidden('id_set_tarifu')->setValue($id_set_tarifu);\r\n\t\t$form->addSubmit('save', 'Uložit')->setAttribute('class', 'default');\r\n\t\t$form->addSubmit('saveas', 'Uložit jako kopii');\r\n\t\t$form->addSubmit('cancel', 'Storno')->setValidationScope(FALSE);\r\n\t\t$form->onSuccess[] = callback($this, 'groupoFormSubmitted');\r\n\r\n\t\t$form->addProtection(self::MESS_PROTECT);\r\n\t\treturn $form;\r\n\t}", "abstract public function forms();", "protected function createComponentItemForm()\r\n\t{\r\n\t\t$form = new Form;\r\n \r\n\t\t$form->addText('nazev', 'Název:', 60)\r\n\t\t\t\t->setRequired('Uveďte název.');\r\n\r\n\t\t$form->addDate('platnost_od', 'Platnost od:', DateInput::TYPE_DATE)\r\n\t\t\t\t->setRequired('Uveďte platnost od.');\r\n\r\n\t\t$form->addDate('platnost_do', 'Platnost do:', DateInput::TYPE_DATE);\r\n\r\n $form->addText('dny_pracovni', 'Počet pracovních dnů:', 3)\r\n\t\t\t->setRequired('Uveďte počet pracovních dnů v aktuálním roce.')\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setOption('description', '[dnů/rok]')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Počet pracovních dnů: Hodnota musí být celé číslo.');\r\n\t\t\r\n $form->addText('dny_dovolena', 'Počet dnů dovolené:', 3)\r\n\t\t\t->setRequired('Uveďte počet dnů dovolené v aktuálním roce.')\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setOption('description', '[dnů/rok]')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Počet dnů dovolené: Hodnota musí být celé číslo.');\r\n\t\t\r\n $form->addText('dny_svatky', 'Počet dnů svátků:', 3)\r\n\t\t\t->setRequired('Uveďte počet dnů svátků v aktuálním roce.')\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setOption('description', '[dnů/rok]')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Počet dnů svátků: Hodnota musí být celé číslo.');\r\n\t\t\r\n $form->addText('dny_nemoc', 'Prům. počet dnů nemoci:', 3)\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setOption('description', '[dnů/rok]')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Prům. počet dnů nemoci: Hodnota musí být celé číslo.');\r\n\t\t\r\n $form->addText('dny_odstavky', 'Počet dnů odstávky strojů:', 3)\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setOption('description', '[dnů/rok]')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Počet dnů odstávky strojů: Hodnota musí být celé číslo.');\r\n\r\n\t\t$form->addText('podil_prescasu', 'Podíl přesčasů:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[% z ročního fondu]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Podíl přesčasů: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n $form->addText('doch_bonus', 'Docházkový bonus:', 3)\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setOption('description', '[Kč/měsíc]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Docházkový bonus: Hodnota musí být celé nebo reálné číslo.');\r\n\r\n\t\t$form->addText('priplatky', 'Příplatky / náhrady:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[% z Tarif. mzdy], za přečasy, směny, náhrady za nemoc')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Příplatky / náhrady: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('stravne', 'Stravné:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[Kč/den], příspěvek zaměstnavatele')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Stravné: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('penzijni_poj', 'Penzijní připojištění:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[%], příspěvek zaměstnavatele')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Penzijní připojištění: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('odmeny', 'Násobek platu na odměny:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[ks/rok], počet platů na odměny v roce')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Násobek platu na odměny: Hodnota musí být celé nebo reálné číslo.');\r\n\r\n\t\t$form->addText('navyseni_prumeru', 'Navýšení průměru:')\r\n\t\t\t->setRequired('Uveďte navýšení průměrné hodinové sazby pro náhrady za dovolenou a svátky z titulu ročních odměn.')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[Kč/h] (z titulu výplaty ročních odměn za minulý rok)')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Odvody SZP: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('odvody', 'Odvody SZP:')\r\n\t\t\t->setRequired('Uveďte sazbu sociálního a zdravotního pojištění.')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[%]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Odvody SZP: Hodnota musí být celé nebo reálné číslo.');\r\n\r\n\t\t$form->addText('stroj_kapcita_sm', 'Strojní kapacita:',3)\r\n\t\t\t->setAttribute('class', 'tcislo')\r\n\t\t\t->setRequired('Uveďte plánovanou roční kapacitu stroje v jednosměnném provoze.')\r\n\t\t\t->setOption('description', '[hod/směna/rok]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::INTEGER, 'Strojní kapacita: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('smennost_strojni', 'Plán. strojní směnnost:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[směn/den], počet směn za den (1 až 3)')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Strojní kapacita: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('rucni_smena', 'Délka směny:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[hod/směna], (pro výpočet počtu pracovníků)')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Délka směny: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('naklady_plochy', 'Náklady na plochu:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[Kč/m2], (odpisy/údržba/opravy ploch)')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Náklady na m2 plochy: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addText('cena_elekriny', 'Cena elektřiny:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[Kč/kWh]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Cena elektřiny: Hodnota musí být celé nebo reálné číslo.');\r\n\r\n\t\t$form->addText('cena_dusiku', 'Cena dusíku:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[Kč/m3]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Cena dusíku: Hodnota musí být celé nebo reálné číslo.');\r\n\r\n\t\t$form->addText('urokova_mira', 'Úroková míra:')\r\n\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t->setOption('description', '[%]')\r\n\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t->controlPrototype\r\n\t\t\t\t\t->autocomplete('off')\r\n\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t->addRule($form::FLOAT, 'Úroková míra: Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\r\n\t\t$form->addSubmit('save', 'Uložit')->setAttribute('class', 'default');\r\n\t\t$form->addSubmit('cancel', 'Storno')->setValidationScope(FALSE);\r\n\t\t$form->onSuccess[] = callback($this, 'itemFormSubmitted');\r\n\r\n\t\t$form->addProtection(self::MESS_PROTECT);\r\n\t\treturn $form;\r\n\t}", "function form_init_elements() \r\n {\r\n //we want an confirmation page for this form.\r\n //$this->set_confirm();\r\n\r\n //Crea una caja de texto llamada nombre y longitud 50\r\n $elemT = new FEText(\"Asunto\", FALSE, 50);\r\n //$elemT->set_style_attribute('align', 'right');\r\n //Le asignamos el id nombre y la tecla de acceso n (ctrl+n)\r\n $elemT->set_attribute(\"id\",\"asunto\");\r\n $elemT->set_attribute(\"accesskey\",\"n\"); \r\n //Añade en el contenedor formulario el elemento creado e inicializado\r\n $this->add_element($elemT);\r\n\t\r\n //Creamos un Area de Texto llamada comentario\r\n $elemTA = new FETextArea(\"Comentario\", FALSE, 10, 60,\"500px\", \"100px\");\r\n $elemTA->set_attribute('wrap', 'physical');\r\n //Le asignamos el id email y la tecla de acceso c (ctrl+c) \r\n $elemTA->set_attribute(\"id\",\"comentario\");\r\n $elemTA->set_attribute(\"accesskey\",\"d\");\r\n //Añade en el contenedor formulario el elemento creado e inicializado\r\n $this->add_element($elemTA);\r\n\r\n //Añade un campo oculto llamado id. En ocasiones este campo se utiliza para indicar ciertas operaciones.\r\n //OJO!! es un punto sensible porque el usuario podría cambiar su valor de forma inexperada para el código.\r\n// $this->add_hidden_element(\"id\");\r\n\r\n //Añade un boton con la acción submit\r\n $submit = $this->_formatElem(\"base_SubmitButton\", \"Aceptar\", \"submit\", agt(\"miguel_Enter\"));\r\n //$submit->set_attribute('id',''); \r\n $submit->set_attribute('accesskey','e'); \r\n $this->add_element($submit); \r\n\t\t\t\t\r\n\t\t\t\t$this->add_hidden_element('status');\r\n \t\t$this->set_hidden_element_value('status', 'new');\r\n }", "abstract function form();", "public function container();", "public function buildForm()\n {\n }", "public function __construct()\n {\n parent::__construct();\n\n // creates the form\n $this->form = new BootstrapFormBuilder(self::$formName);\n\n // define the form title\n $this->form->setFormTitle('Avaliações');\n\n $inscricao_evento_id = new TDBUniqueSearch('inscricao_evento_id', 'eventtus', 'Evento', 'id', 'id','nome asc' );\n\n $inscricao_evento_id->setSize('100%');\n $inscricao_evento_id->setMinLength(0);\n $inscricao_evento_id->setMask('{nome}');\n\n $row1 = $this->form->addFields([new TLabel('Evento', null, '14px', null),$inscricao_evento_id]);\n $row1->layout = ['col-sm-6'];\n\n // keep the form filled during navigation with session data\n $this->form->setData( TSession::getValue(__CLASS__.'_filter_data') );\n\n $btn_ongenerate = $this->form->addAction('Gerar', new TAction([$this, 'onGenerate']), 'fa:search #ffffff');\n $btn_ongenerate->addStyleClass('btn-primary'); \n\n // vertical box container\n $container = new TVBox;\n $container->style = 'width: 100%';\n $container->add(TBreadCrumb::create(['Cadastros','Avaliações']));\n $container->add($this->form);\n\n parent::add($container);\n\n }", "public function getFormContainerContent(Form $form)\n {\n // textarea element\n $form->addTextArea($this->idElement, $this->getTranslateNameContent());\n\n // set fileslist\n if (isset($this->configure['fileslist'])) {\n $form[$this->idElement]->setOption('fileslist', $this->configure['fileslist']);\n $webDir = $this->wrapperSection->getConfigureParameterByIndex('webDir');\n $path = $webDir . FileSystem::FILES_DIR;\n $form[$this->idElement]->setOption('list', FileSystem::getListFiles($path));\n $form[$this->idElement]->setOption('path', '../' . FileSystem::FILES_DIR);\n $form[$this->idElement]->setOption('isImage', Callback::closure(FileSystem::class . '::isImage'));\n }\n\n parent::getFormContainerContent($form); // last position\n }", "public function valiteForm();", "function geraClasseDadosFormulario(){\n # Abre o template da classe basica e armazena conteudo do modelo\n $modelo1 = Util::getConteudoTemplate('class.Modelo.DadosFormulario.tpl');\n $modelo2 = Util::getConteudoTemplate('metodoDadosFormularioCadastro.tpl');\n\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n $nomeClasse = ucfirst($this->getCamelMode($aTabela['NOME']));\n\n $copiaModelo1 = $modelo1;\n $copiaModelo2 = $modelo2;\n\n # varre a estrutura dos campos da tabela em questao\n $camposForm = $aModeloFinal = array();\n foreach($aTabela as $oCampo){\n # recupera campo e tabela e campos (chave estrangeira)\n $nomeCampoOriginal = (string)$oCampo->NOME;\n $nomeCampo \t = $nomeCampoOriginal;\n //$nomeCampo \t = $nomeCampoOriginal;\n\n # monta parametros a serem substituidos posteriormente\n switch ((string)$oCampo->TIPO) {\n case 'date':\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataDataFormBanco(strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"]))));\";\n break;\n\n case 'datetime':\n case 'timestamp':\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataDataHoraFormBanco(strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"]))));\";\n break;\n\n default:\n if((int)$oCampo->CHAVE == 1)\n if((string)$aTabela['TIPO_TABELA'] != 'NORMAL')\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"])));\";\n else\n $camposForm[] = \"if(\\$acao == 2){\\n\\t\\t\\t\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"])));\\n\\t\\t}\";\n else\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"])));\";\n break;\n }\n }\n # monta demais valores a serem substituidos\n $camposForm = join($camposForm,\"\\n\\t\\t\");\n\n # substitui todas os parametros pelas variaveis ja processadas\n $copiaModelo2 = str_replace('%%NOME_CLASSE%%', $nomeClasse, $copiaModelo2);\n $copiaModelo2 = str_replace('%%ATRIBUICAO%%', $camposForm, $copiaModelo2);\n\n $aModeloFinal[] = $copiaModelo2;\n }\n\n $modeloFinal = str_replace('%%FUNCOES%%', join(\"\\n\\n\", $aModeloFinal), $copiaModelo1);\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\n if(!file_exists($dir)) \n mkdir($dir);\n\n $fp = fopen(\"$dir/class.DadosFormulario.php\",\"w\");\n fputs($fp, $modeloFinal);\n fclose($fp);\n return true;\t\n }", "protected function createComponentNastaveniUraduForm()\n {\n\n $client_config = GlobalVariables::get('client_config');\n $Urad = $client_config->urad;\n $stat_select = Subjekt::stat();\n\n\n $form1 = new Form();\n $form1->addText('nazev', 'Název:', 50, 100)\n ->setValue($Urad->nazev)\n ->addRule(Nette\\Forms\\Form::FILLED, 'Název úřadu musí být vyplněn.');\n $form1->addText('plny_nazev', 'Plný název:', 50, 200)\n ->setValue($Urad->plny_nazev);\n $form1->addText('zkratka', 'Zkratka:', 15, 30)\n ->setValue($Urad->zkratka)\n ->addRule(Nette\\Forms\\Form::FILLED, 'Zkratka úřadu musí být vyplněna.');\n\n $form1->addText('ulice', 'Ulice:', 50, 100)\n ->setValue($Urad->adresa->ulice);\n $form1->addText('mesto', 'Město:', 50, 100)\n ->setValue($Urad->adresa->mesto);\n $form1->addText('psc', 'PSČ:', 12, 50)\n ->setValue($Urad->adresa->psc);\n $form1->addSelect('stat', 'Stát:', $stat_select)\n ->setValue($Urad->adresa->stat);\n\n $form1->addText('ic', 'IČ:', 20, 50)\n ->setValue($Urad->firma->ico);\n $form1->addText('dic', 'DIČ:', 20, 50)\n ->setValue($Urad->firma->dic);\n\n $form1->addText('telefon', 'Telefon:', 50, 100)\n ->setValue($Urad->kontakt->telefon);\n $form1->addText('email', 'E-mail:', 50, 100)\n ->setValue($Urad->kontakt->email);\n $form1->addText('www', 'URL:', 50, 150)\n ->setValue($Urad->kontakt->www);\n\n\n $form1->addSubmit('upravit', 'Uložit')\n ->onClick[] = array($this, 'nastavitUradClicked');\n $form1->addSubmit('storno', 'Zrušit')\n ->setValidationScope(FALSE)\n ->onClick[] = array($this, 'stornoClicked');\n\n return $form1;\n }", "function __construct()\n {\n parent::__construct();\n\n $usuario_logado = TSession::getValue('login');\n \n // creates the form\n $this->form = new BootstrapFormBuilder('form_Equipe');\n $this->form->setFormTitle('Inscrição');\n \n // master fields\n $id = new TEntry('id');\n $nome = new TEntry('nome');\n $ref_campeonato = new TDBCombo('ref_campeonato', 'futapp', 'Campeonato', 'id', '{nome}','id asc' );\n $ref_categoria = new TCombo('ref_categoria');\n $escudo = new TFile('escudo');\n $usuario = new THidden('usuario');\n \n // detail fields\n $id_atleta = new THidden('id_atleta');\n $nome_atleta = new TEntry('nome_atleta');\n $cpf = new TEntry('cpf');\n\n if(TSession::getValue('login') == 'J30EVENTOS' || TSession::getValue('login') == 'admin' || TSession::getValue('login') == 'Roni')\n {\n $ja_jogou = new TCombo('ja_jogou');\n\n $ja_jogou->addItems( [ 't' => 'Sim', 'f' => 'Não' ] ); \n $label_ja = new TLabel('Já Jogou ?'); \n }\n else\n {\n $ja_jogou = new THidden('ja_jogou');\n $label_ja = new TLabel(' ');\n }\n\n\n $ref_campeonato->setChangeAction(new TAction([$this,'onMudaCampeonato']));\n $usuario->setValue($usuario_logado);\n\n $ref_campeonato->setEditable(false);\n \n // adjust field properties\n $id->setEditable(false);\n $id_atleta->setEditable(false);\n $nome->setSize('100%');\n $nome_atleta->setSize('100%');\n $cpf->setSize('100%');\n $cpf->setMask('99999999999');\n\n // allow just these extensions\n $escudo->setAllowedExtensions( ['png', 'jpg', 'jpeg'] );\n \n // enable progress bar, preview, and file remove actions\n $escudo->enableFileHandling();\n \n // add validations\n $nome->addValidation('Nome', new TRequiredValidator);\n \n // add master form fields\n $this->form->addFields( [new TLabel('ID')], [$id]);\n $this->form->addFields( [new TLabel('Nome da Equipe')], [$nome ] );\n $this->form->addFields( [new TLabel('Campeonato')], [$ref_campeonato ] );\n $this->form->addFields( [new TLabel('Categoria')], [$ref_categoria ] );\n $this->form->addFields( [new TLabel('Escudo')], [$escudo] );\n $this->form->addFields( [new TLabel('')], [$usuario] );\n \n \n $add_atleta = TButton::create('add_atleta', [$this, 'onProductAdd'], 'Adicionar', 'fa:save');\n \n $Label_id = new TLabel('');\n $Label_nome = new TLabel('Nome Completo (*)');\n $label_cpf = new TLabel('CPF (*)');\n\n $Label_nome->setFontColor('#FF0000');\n $label_cpf->setFontColor('#FF0000');\n \n $this->form->addContent( ['<h4>Atletas</h4><hr>'] );\n $this->form->addContent( ['Digite o Nome e CPF do atleta e clique em ADICIONAR para inserir o atleta na equipe.'] );\n $this->form->addContent( ['Para editar os dados do atleta clique no icone do lapis azul.'] );\n $this->form->addContent( ['Para remover o atleta clique no icone da lixeira vermelha.'] );\n $this->form->addFields( [$Label_id], [$id_atleta]);\n $this->form->addFields( [$Label_nome], [$nome_atleta]);\n $this->form->addFields( [$label_cpf], [$cpf]);\n $this->form->addFields( [$label_ja], [$ja_jogou]);\n $this->form->addFields( [], [$add_atleta] )->style = 'background: whitesmoke; padding: 5px; margin: 1px;';\n \n $this->product_list = new BootstrapDatagridWrapper(new TDataGrid);\n $this->product_list->setId('products_list');\n $this->product_list->style = \"min-width: 700px; width:100%;margin-bottom: 10px\";\n \n $col_id = new TDataGridColumn( 'id_atleta', 'ID', 'left', '10%');\n $col_nome = new TDataGridColumn( 'nome_atleta', 'Nome', 'left', '45%');\n $col_cpf = new TDataGridColumn( 'cpf', 'CPF', 'left', '45%');\n $col_jogou = new TDataGridColumn( 'ja_jogou', 'Já Jogou?', 'left', '45%');\n \n $this->product_list->addColumn($col_id);\n $this->product_list->addColumn($col_nome);\n $this->product_list->addColumn($col_cpf);\n $this->product_list->addColumn($col_jogou);\n\n $col_jogou->setTransformer( function($ja_jogou) \n {\n if ($ja_jogou == 't') \n {\n return 'Sim';\n }\n else\n {\n return 'Não';\n }\n });\n \n // creates two datagrid actions\n $action1 = new TDataGridAction([$this, 'onEditItemProduto']);\n $action1->setLabel('Editar');\n $action1->setImage('fa:edit blue');\n $action1->setField('id_atleta');\n $action1->setField('nome_atleta');\n $action1->setField('cpf');\n $action1->setField('ja_jogou');\n \n $action2 = new TDataGridAction([$this, 'onDeleteItem']);\n $action2->setLabel('Excluir');\n $action2->setImage('fa:trash red');\n $action2->setField('id_atleta');\n // $action2->setField('nome_atleta');\n // $action2->setField('cpf');\n \n // add the actions to the datagrid\n $this->product_list->addAction($action1);\n $this->product_list->addAction($action2);\n \n $this->product_list->createModel();\n \n $panel = new TPanelGroup;\n $panel->add($this->product_list);\n $panel->getBody()->style = 'overflow-x:auto';\n $this->form->addContent( [$panel] );\n \n $this->form->addAction( 'Salvar', new TAction([$this, 'onSave']), 'fa:save green');\n // $this->form->addAction( 'Clear', new TAction([$this, 'onClear']), 'fa:eraser red');\n \n // create the page container\n $container = new TVBox;\n $container->style = 'width: 100%';\n // $container->add(new TXMLBreadCrumb('menu.xml', __CLASS__));\n $container->add($this->form);\n parent::add($container);\n }", "abstract public function createForm();", "abstract public function createForm();", "protected function createComponentEditForm() {\r\n\t\t$form = new Form;\r\n\t\t$form->getElementPrototype()->class(\"formWide\");\r\n\t\t$options = array(0 => \"Default\", 1 => \"Odkaz na obsah\", 3 => \"Odkaz na položku menu\");\r\n\t\t// easy way how to create url slug\r\n\t\t$form->addText(\"title\", \"Název:\")\r\n\t\t\t\t->setAttribute('onchange', '\r\n\t\t\t\t\t\t\tvar nodiac = { \"á\": \"a\", \"č\": \"c\", \"ď\": \"d\", \"é\": \"e\", \"ě\": \"e\", \"í\": \"i\", \"ň\": \"n\", \"ó\": \"o\", \"ř\": \"r\", \"š\": \"s\", \"ť\": \"t\", \"ú\": \"u\", \"ů\": \"u\", \"ý\": \"y\", \"ž\": \"z\" };\r\n\t\t\t\t\t\t\ts = $(\"#frmeditForm-title\").val().toLowerCase();\r\n\t\t\t\t\t\t\tvar s2 = \"\";\r\n\t\t\t\t\t\t\tfor (var i=0; i < s.length; i++) {\r\n\t\t\t\t\t\t\t\ts2 += (typeof nodiac[s.charAt(i)] != \"undefined\" ? nodiac[s.charAt(i)] : s.charAt(i));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tresult=s2.replace(/[^a-z0-9_]+/g, \"-\").replace(/^-|-$/g, \"\");\r\n\t\t\t\t\t\t\t$(\"#frmeditForm-url\").val(result);\r\n\t\t\t\t\t\t');\r\n\t\t$form->addText(\"url\", \"url:\")->setAttribute(\"readonly\", \"readonly\");\r\n\t\tif (!$this->onlyTree) {\r\n\t\t\t$form->addSelect(\"target_type\", \"Cíl:\", $options);\r\n\t\t\t$content = $this->prepareContentSelectBox();\r\n\t\t\t$menuContent = $this->prepareMenuContentSelectBox();\r\n\t\t\t$form->addSelect(\"target_id\", \"Odkazovaný obsah:\", $content)->setPrompt(\"Pouze při zvolení výše\");\r\n\t\t\t$form->addSelect(\"target_menu\", \"Odk. položka menu:\", $menuContent)->setPrompt(\"Pouze při zvolení výše\");\r\n\t\t}\r\n\t\t$form->addHidden(\"parent_id\", $this->parent_id);\r\n\t\t$form->addHidden(\"edit_id\", $this->edit_id);\r\n\t\t//filling form\r\n\t\tif ($this->edit_id or $this->edit_id === \"0\") {\r\n\t\t\t$defFromDb = $this->closureModel->getItemById($this->edit_id);\r\n\t\t\t$defaults = new \\Nette\\ArrayHash;\r\n\t\t\tforeach ($defFromDb as $key => $value) {\r\n\t\t\t\t$defaults->$key = $value;\r\n\t\t\t}\r\n\t\t\tif ($this->edit_id === \"0\") {\r\n\t\t\t\t$form[\"title\"]->setDisabled();\r\n\t\t\t}\r\n\t\t\tif (!$this->onlyTree) {\r\n\t\t\t\t$t = $defaults->target;\r\n\t\t\t\tif (!Validators::isNumericInt($t)) {\r\n\t\t\t\t\t$menuItem = $this->checkTargetMenuItemExists($t);\r\n\t\t\t\t\tif ($menuItem) {\r\n\t\t\t\t\t\t$defaults->target_type = 3;\r\n\t\t\t\t\t\t$defaults->target_menu = $menuItem;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$contentId = $this->checkTargetContentExists($t);\r\n\t\t\t\t\t\t$defaults->target_type = 1;\r\n\t\t\t\t\t\t$defaults->target_id = $contentId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$form[\"target_menu\"]->getControlPrototype()->addClass(\"formFieldInvisible\");\r\n\t\t\t\t} elseif ($t <= 0) {\r\n\t\t\t\t\t$defaults->target_type = 0;\r\n\t\t\t\t\t$form[\"target_menu\"]->getControlPrototype()->addClass(\"formFieldInvisible\");\r\n\t\t\t\t\t$form[\"target_id\"]->getControlPrototype()->addClass(\"formFieldInvisible\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$defaults->target = null;\r\n\t\t\t$form->setDefaults($defaults);\r\n\t\t}\r\n\r\n\t\t$form->addSubmit('save', 'Save')\r\n\t\t\t\t\t\t->setAttribute('onclick', '$(\"#frmeditForm-title\").trigger(\"change\")')\r\n\t\t\t\t->onClick[] = callback($this, 'editFormSubmitted');\r\n\t\t$form->setRenderer(new \\Kdyby\\BootstrapFormRenderer\\BootstrapRenderer());\r\n\t\treturn $form;\r\n\t}", "function _container($instance) {\n $output = '<div id=\"' . $this->CI->ciwy->component_config[$instance]['outerContainer'] . '\">' . $this->new_line;\n $output .= ' '. form_input($this->CI->ciwy->component_config[$instance]['inputAttributes']) . $this->new_line;\n $output .= ' <div id=\"' . $this->CI->ciwy->component_config[$instance]['containerId'] . '\"></div>' . $this->new_line;\n $output .= '</div>' . $this->new_line;\n return $output;\n }", "public function createComponentEditForm(){\n $frm = $this->formFactory->create();\n $listingID = $this->hlp->sess(\"listing\")->listingID;\n \n //query database for listing type\n $FE = $this->listings->isFE($listingID);\n $MS = $this->listings->isMultisig($listingID);\n \n //checkbox value rendering logic\n $checkVal = array();\n \n if ($MS){\n $checkVal[\"ms\"] = \"ms\";\n }\n \n if ($FE){\n $checkVal[\"fe\"] = \"fe\";\n }\n \n $this->lHelp->constructCheckboxList($frm)->setValue($checkVal);\n \n //discard option array\n unset($checkVal);\n\n $cnt = count ($this->postageOptions); \n $session = $this->hlp->sess(\"postage\");\n\n \n for ($i = 0; $i<$cnt; $i++){\n\n $frm->addText(\"postage\" . $i, \"Doprava\");\n $frm->addText(\"pprice\" . $i, \"Cena dopravy\");\n\n }\n \n //additional postage textboxes logic\n $counter = $session->counterEdit;\n $values = $session->values;\n \n if (!is_null($counter)){\n \n $frm->addGroup(\"Postage\");\n \n for ($i =0; $i<$counter; $i++){\n $frm->addText(\"postage\" .$i. \"X\", \"Doprava\"); \n $frm->addText(\"pprice\" .$i. \"X\", \"Cena\");\n }\n }\n \n $frm->addSubmit(\"submit\", \"Upravit\");\n $frm->addSubmit(\"add_postage\", \"Přidat dopravu\")->onClick[] = \n \n function() use($listingID) {\n \n //inline onlclick handler, that counts postage options\n $session = $this->hlp->sess(\"postage\");\n $counter = &$session->counterEdit;\n \n if ($counter <= self::MAX_POSTAGE_OPTIONS){\n $counter++;\n } else {\n $this->flashMessage(\"Dosáhli jste maxima poštovních možností.\");\n }\n \n $form = $this->getComponent(\"editForm\");\n $session->values = $form->getValues(TRUE);\n \n $this->redirect(\"Listings:editListing\", $listingID);\n };\n \n $this->lHelp->fillForm($frm, $values); \n $frm->onSuccess[] = array($this, 'editSuccess');\n $frm->onValidate[] = array($this, 'editValidate');\n \n return $frm; \n }", "abstract function setupform();", "public function getFormaPago();", "public function processContainer()\n {\n $class = \"container\";\n if ($this->hasFluid()) $class .= \"-fluid\";\n $this->add($this->createWrapper('div', ['class' => $class], $this->stringifyHeader() . $this->stringifyCollapse()));\n }", "public function populateForm() {}", "public function form_elements() {\n\n\t\t\t// Instantiate Widget Inputs\n\t\t\t$form_elements = new Layers_Form_Elements();\n\n\t\t\t// Return design bar\n\t\t\treturn $form_elements;\n\n\t\t}", "protected function form()\n {\n $form = new Form(new City());\n\n $form->tab('Основная', function ($form) {\n $form->switch('show', __('Активен'));\n $form->date('date', __('Дата'));\n $form->text('name', __('Наименование'));\n $form->myimage('image', __('Image'));\n $form->ckeditor('text', 'Описание')\n ->options(\n [\n 'filebrowserBrowseUrl' => '/ckfinder/browser',\n 'filebrowserImageBrowseUrl' => '/ckfinder/browser',\n 'filebrowserUploadUrl' => '/ckfinder/browser?type=Files',\n 'filebrowserImageUploadUrl' => '/ckfinder/browser?command=QuickUpload&type=Images',\n 'lang' => 'ru',\n 'height' => 500,\n 'filebrowserWindowWidth' => '1000',\n 'filebrowserWindowHeight' => '700'\n ])->default('-');\n\n $form->number('orders', __('Очередность'))->default(1);\n })->tab('Координаты', function ($form) {\n $form->text('xcoord', 'Долгота')->default('1');\n $form->text('ycoord', 'Широта')->default('1');\n $form->text('content', 'Ссылка');\n $form->text('header', 'Заголовок');\n $form->text('body', 'Описание');\n $form->text('hint', 'Подсказка');\n });\n return $form;\n }", "public function __construct()\n {\n parent::__construct('ServicioForm');\n $this->setAttribute('method', 'post');\n \n $this->add(array(\n 'name' => 'servicio_nombre',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Nombre',\n ),\n ));\n $this->add(array(\n 'name' => 'servicio_descripcion',\n 'type' => 'textarea',\n 'options' => array(\n 'label' => 'Descripcion',\n ),\n ));\n \n $this->add(array(\n 'name' => 'servicio_costo',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Costo',\n ),\n ));\n \n $this->add(array(\n 'name' => 'servicio_precio',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Precio',\n ),\n ));\n \n $this->add(array(\n 'name' => 'servicio_iva',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'IVA',\n ),\n ));\n \n\n\n }", "private function viewFormulario()\n {\n if (count($camposDefinidos = array_map('trim', explode(';', $this->camposForm))) > 0) {\n $campo_formulario = File::get(base_path($this->templates['campo']));\n $form = File::get(base_path($this->templates['form']));\n $stringCampos = \"\";\n foreach ($camposDefinidos as $c) {\n if (count($c_ = array_map('trim', explode(':', $c))) == 2) {\n $stringCampos .= $campo_formulario;\n $stringCampos = str_replace('[{campo}]', $c_[0], $stringCampos);\n $stringCampos = str_replace('[{label}]', $c_[1], $stringCampos);\n $stringCampos = str_replace('[{tabela}]', $this->tabela, $stringCampos);\n } else {\n echo \"#FORMULARIO# Campo {$c} ignorado, por nao estar descrito corretamente... forma correta -> campo:label\\n\";\n }\n }\n\n $form = str_replace('[{campos_formulario}]', $stringCampos, $form);\n $form = str_replace('[{route_as}]', $this->routeAs, $form);\n $form = str_replace('[{tabela}]', $this->tabela, $form);\n File::put(base_path('resources/views/' . $this->tabela . \"/form.blade.php\"), $form);\n }\n }", "public function getAddForm();", "abstract protected function getForm();", "abstract public function getForm() : void;", "abstract function getForm();", "public function createComponentListingForm(){\n \n $form = $this->formFactory->create();\n \n $this->lHelp->constructCheckboxList($form); \n $form->addSubmit(\"submit\", \"Vytvořit\");\n $form->addSubmit(\"add_postage\", \"Přidat dopravu\")->onClick[] = \n function (){\n \n //set up postage counter\n $session = $this->getSession()->getSection(\"postage\");\n $counter = &$session->counter;\n \n if ($counter <= self::MAX_POSTAGE_OPTIONS){\n $counter++;\n } else {\n $this->flashMessage(\"Dosáhli jste maxima poštovních možností.\");\n }\n \n //get form component and its values after click\n //and set up session with values\n $form = $this->getComponent(\"listingForm\");\n $values = $form->getValues(TRUE);\n $session->values = $values;\n \n //redirect is a must to re-render new form\n $this->redirect(\"Listings:create\"); \n };\n \n $session = $this->hlp->sess(\"postage\");\n $counter = $session->counter;\n $values = $session->values;\n \n //additional postage textboxes logic\n if (!is_null($counter)){\n \n $form->addGroup(\"Postage\");\n \n for ($i =0; $i<$counter; $i++){\n $form->addText(\"postage\" .$i, \"Doprava\");\n $form->addText(\"pprice\" .$i, \"Cena\");\n }\n }\n \n //fill form with values from session upon creation\n $this->lHelp->fillForm($form, $values);\n \n $form->addProtection('Vypršel časový limit, odešlete formulář znovu'); \n $form->onSuccess[] = array($this, 'listingCreate');\n $form->onValidate[] = array($this, 'listingValidate');\n \n return $form;\n }", "protected function _Get_Container_Instance($_el) {\r\n\t\t$form_instance = $this->form_instance;\r\n // Retrieve the container name\r\n\t\t$type = $_el['type'];\r\n // Retrieve the global vcff forms class\r\n $vcff_containers = vcff_get_library('vcff_containers');\r\n // If the context does not exist\r\n if (!isset($vcff_containers->contexts[$type])) { return; }\r\n // Retrieve the context\r\n $_context = $vcff_containers->contexts[$type]; \r\n // Retrieve the container name\r\n\t\t$machine_code = $_el['name'];\r\n // If no form instance was found\r\n\t\tif (!$machine_code) { return; }\r\n\t\t// Create the field item classname\r\n\t\t$container_classname = $_context['class'];\r\n\t\t// If no form instance was found\r\n\t\tif (!$container_classname) { return; } \r\n\t\t// Create a new item instance for this field\r\n\t\t$container_instance = new $container_classname();\r\n\t\t// Populate the container form\r\n\t\t$container_instance->form_instance = $this->form_instance;\r\n\t\t$container_instance->machine_code = $machine_code;\r\n\t\t$container_instance->container_type = $_context['type'];\r\n\t\t$container_instance->context = $_context;\r\n\t\t$container_instance->attributes = $_el['attributes'];\r\n // Populate the handler object\r\n\t\t$container_instance->el = $_el['el'];\r\n\t\t$container_instance->el_children = $_el['children'];\r\n // Add any child fields\r\n $this->_Add_Child_Fields($container_instance);\r\n $this->_Add_Child_Supports($container_instance);\r\n // If the field has a sanitize method\r\n if (method_exists($container_instance,'On_Create')) { $container_instance->On_Create(); }\r\n // Do any create actions\r\n $container_instance->Do_Action('create');\r\n // Do a wordpress hook\r\n do_action('vcff_container_create',$container_instance);\r\n\t\t// Return the generated field instance\r\n\t\treturn $container_instance;\r\n\t}", "function ToonFormulierAfspraak()\n{\n\n}", "public function createForm();", "public function createForm();", "function buildForm(){\n\t\t# menampilkan form\n\t}", "public function formulario()\n {\n //\n }", "protected function addElements() \n { \n // Add \"nom\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'nom_parent',\n 'attributes' => [\n 'id' => 'nom_parent',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'Nom de famille:',\n ],\n ]);\n \n // Add \"prenom\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'prenom_parent',\n 'attributes' => [\n 'id' => 'prenom_parent',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'Prénom parent:',\n ],\n ]);\n \n // Add \"domicile\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'domicile',\n 'attributes' => [\n 'id' => 'domicile',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'Domicile:',\n ],\n ]);\n \n // Add \"telephone_number\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'telephone1',\n 'attributes' => [\n 'id' => 'telephone1'\n ],\n 'options' => [\n 'label' => 'Téléphone 1',\n ],\n ]);\n \n // Add \"telephone_number\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'telephone2',\n 'attributes' => [\n 'id' => 'telephone2'\n ],\n 'options' => [\n 'label' => 'Téléphone 2',\n ],\n ]);\n \n // Add \"code eleve \" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'email_parent',\n 'attributes' => [\n 'id' => 'email_parent',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'E-mail:',\n ],\n ]);\n \n // Add \"comment\" field\n $this->add([ \n 'type' => 'textarea',\n 'name' => 'commentaire',\n 'options' =>[\n 'label' => 'Commentaires:',\n ],\n 'attributes' => [\n 'id' => 'commentaire',\n 'style' => 'width: 50%'\n ], \n ]);\n \n // Add the submit button\n $this->add([\n 'type' => 'submit',\n 'name' => 'submit',\n 'attributes' => [ \n 'value' => 'Enregistrer',\n 'id' => 'submitbutton',\n ],\n ]); \n \n }", "protected function form()\n { \n \n $form = new Form(new Blog);\n $lab = Lab::all();\n $labs = [];\n foreach($lab as $v) {\n $labs[$v['id']] = $v->lab_name;\n }\n $cat = Cat::all();\n // dd($cat); \n $cats = [];\n foreach($cat as $v)\n {\n $cats[$v['id']] = $v->cat_name;\n }\n $date = date('Ymd');\n $x = 194;\n $y = 121;\n $form->text('title', '标题')->rules('required');\n $form->select('lab_id', '标签')->options($labs); \n $form->select('cat_id', '分类')->options($cats); \n $form->simplemde('content', '内容')->rules('required');\n // $form->image('logo', '图片')->rules('required|image')->move('/upload/',$date)->crop($x, $y)->removable();\n $form->image('logo', '图片')->move('/image')->resize(300, 200);\n \n\n\n return $form;\n }", "public function addform() {\n require_once 'modeles/etudiant_modele.php';\n require_once 'vues/etudiants/etudiants_addform_vue.php';\n }", "public function init()\n {\n $this->addAttribs(array(\"class\" => \"form-horizontal\"))\n ->setDecorators(array(\n 'FormElements',\n 'Form'\n )); \n $this->addElement('hidden','idarticles'); \n \n $article_title = $this->createElement('text','article_title');\n $article_title->setLabel(\"Họ tên :\")\n ->setRequired()\n ->setAttribs(array(\"class\"=>\"large\"))\n ->addDecorators(array(\n array(\"Label\",array(\"tag\"=>\"div\",\"tagClass\"=>\"label-dt\")),\n array(\"HtmlTag\",array(\"tag\"=>\"div\", \"class\"=>\"input\" ))\n )); \n $this->addElement($article_title); \n \n $article_alias = $this->createElement('text','article_alias');\n $article_alias->setLabel(\"Yahoo :\")\n ->setRequired()\n ->setAttribs(array(\"class\"=>\"large\"))\n ->addDecorators(array(\n array(\"Label\",array(\"tag\"=>\"div\",\"tagClass\"=>\"label-dt\")),\n array(\"HtmlTag\",array(\"tag\"=>\"div\", \"class\"=>\"input\" ))\n )); \n $this->addElement($article_alias); \n\t\t\n\t\t\n $article_detail = $this->createElement('text','article_detail');\n $article_detail->setLabel(\"Skype :\")\n ->setRequired()\n ->setAttribs(array(\"class\"=>\"large\"))\n ->addDecorators(array(\n array(\"Label\",array(\"tag\"=>\"div\",\"tagClass\"=>\"label-dt\")),\n array(\"HtmlTag\",array(\"tag\"=>\"div\", \"class\"=>\"input\" ))\n )); \n $this->addElement($article_detail); \n\t\t\n $article_description = $this->createElement('text','article_description');\n $article_description->setLabel(\"Số điện thoại :\")\n ->setRequired()\n ->setAttribs(array(\"class\"=>\"large\"))\n ->addDecorators(array(\n array(\"Label\",array(\"tag\"=>\"div\",\"tagClass\"=>\"label-dt\")),\n array(\"HtmlTag\",array(\"tag\"=>\"div\", \"class\"=>\"input\" ))\n )); \n $this->addElement($article_description); \n \n $submit = $this->createElement(\"submit\",\"submit\");\n $submit->setLabel(\"Thêm\"); \n $this->addElement($submit); \n }", "public function buildFormLayout()\n {\n $this->addColumn(6, function(FormLayoutColumn $column) {\n $column->withSingleField('title');\n })->addColumn(6, function(FormLayoutColumn $column) {\n $column->withSingleField('cover');\n $column->withSingleField('description');\n $column->withSingleField('price');\n $column->withSingleField('tags');\n });\n }", "public function createForm()\n {\n }", "function form() \r\n {\r\n \t //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario\r\n $table = &html_table($this->_width,0,2,2);\r\n $table->add_row($this->_showElement(\"Asunto\", '6', \"asunto_de_usuario\", 'Asunto', \"Asunto\", \"left\" )); \r\n $table->add_row($this->_showElement(\"Comentario\", '7', \"comentario\", 'Texto', \"Comentario\", \"left\" )); \r\n \r\n $this->set_form_tabindex(\"Aceptar\", '10'); \r\n $label = html_label( \"submit\" );\r\n $label->add($this->element_form(\"Aceptar\"));\r\n $table->add_row(html_td(\"\", \"left\", $label));\r\n \r\n return $table; \r\n }", "public function getRender(){\n //Adiciona a funcionalidade para definir o campo que deve receber o foco inicial\n if($this->getCampoFoco() != null){\n $sFuncao = View::campoFocus($this->getCampoFoco()->getId());\n $this->addListener(Base::EVENTO_APOS_MONTAR, $sFuncao);\n }\n \n //Adiciona a funcionalidade que centraliza o formulário na tela\n if($this->getCentraliza()){\n $sFuncao = Base::getFuncaoCentraliza();\n $this->addListener(Base::EVENTO_MONTAR, $sFuncao);\n }\n \n //Adiciona a funcionalidade que indica que será possível arrastar o formulário\n if($this->getPermiteArrastar()){\n $sFuncao = Base::getFuncaoLimitaArrasto($this->getId(),$this->getRenderTo());\n $this->addListener(Base::EVENTO_MONTAR, $sFuncao);\n }\n \n $aRender = array(\n \"animCollapse\" => true,\n \"autoScroll\" => true,\n \"waitMsgTarget\" => true,\n \"bodyPadding\" => 10,\n \"iconCls\" => 'icon-form',\n \"border\" => $this->getAdicionaBorda(),\n //\"glyph\" => 36,\n \"layout\" => $this->getLayout(),\n \"id\" => $this->getId(),\n \"title\" => $this->getTitulo(),\n \"closable\" => $this->getPermiteFechar(),\n \"resizable\" => $this->getPermiteRedimensionar(),\n \"draggable\" => $this->getPermiteArrastar(),\n \"collapsible\" => $this->getPermiteRecolher(),\n \"height\" => $this->getAltura(),\n \"width\" => $this->getLargura(),\n \"html\" => $this->getHtml(),\n \"items\" => $this->getStringItemsLayout(),\n \"buttons\" => $this->getBotoes(),\n \"listeners\" => $this->getListeners(),\n \"reloadPreviousOnClose\" => $this->getReloadPreviousOnClose()\n );\n \n $oForm = \"Ext.create('Ext.panel.Panel', {\".Base::getRender($aRender).\"})\";\n \n return Base::addObj($oForm,$this->getRenderTo());\n }", "public function getForm();", "public function init()\n {\n \t\n \t$this->setAttrib('enctype', 'multipart/form-data');\n \t \t\n \t$this->setName('FormularioOcorrencia');\n $id = new Zend_Form_Element_Hidden('id_ocorrencia');\n $id->addFilter('Int');\n \n \n \n\t\t$descricao = new Zend_Form_Element_Textarea('descricao');\n $descricao->setLabel('Descricao')\n ->setRequired(true);\n\t\t$descricao->removeDecorator('DtDdWrapper')\n ->removeDecorator('HtmlTag')\n ->removeDecorator('Label')\n ->setAttrib('class', 'form-control')\n \t->setAttrib('rows', '5');\n \n\t\t\n\t\t\n\t\t\n $submit = new Zend_Form_Element_Submit('submit');\n $submit->setLabel(\"Adiconar\");\n $submit->setAttrib('id', 'submitbutton');\n $submit->removeDecorator('DtDdWrapper')\n ->setAttrib('class', 'btn btn-primary')\n ->removeDecorator('HtmlTag')\n ->removeDecorator('Label');\n \n \n \n \n $this->addElements(array($id,$descricao,$submit)); \n \n $this->setDecorators( array( array('ViewScript', array('viewScript' => 'formularioOcorrencia.phtml'))));\n }", "function Contenido(){\n \n $sql = 'SELECT id_planta codigo, descripcion from plantas WHERE activo = 1';\n $arrPlantas = $this->Consulta($sql);\n \n $html= '<section class=\"main-content-wrapper\">\n <div class=\"pageheader\">\n <h1>'.$this->_titulo.'</h1>\n <p class=\"description\">'.$this->_subTitulo.'</p>\n <div class=\"breadcrumb-wrapper hidden-xs\">\n <span class=\"label\">Estas Aqu&iacute;:</span>\n <ol class=\"breadcrumb\">\n <li class=\"active\">Administrar Componentes</li>\n </ol>\n </div>\n </div>\n \n <div class=\"col-md-8\">\n <div class=\"panel panel-default panelCrear\">\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">COMPONENTES</h3>\n <div class=\"actions pull-right\">\n <i class=\"fa fa-expand\"></i>\n <i class=\"fa fa-chevron-down\"></i>\n <i class=\"fa fa-times\"></i>\n </div>\n </div>\n <div class=\"panel-body\">\n <form id=\"formCrear\" role=\"form\">\n <div class=\"form-group\">\n <label for=\"nombre\">Nombre Componente:</label>\n '.\n \n $this->create_input('text','descripcion','descripcion','Nombre del componente',false,'form-control required').\n $this->create_input('hidden',$this->PrimaryKey,$this->PrimaryKey,false,'0').\n $this->create_input('hidden','id_usuario','id_usuario',false,$_SESSION['id_usuario']).\n '\n \n </div>\n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Planta:</label>\n '.$this->crearSelect('id_planta','id_planta',$arrPlantas,false,false,false,'class=\"form-control required\" onchange=\"traerCombo(this.value,\\'combo_id_secciones\\',\\'comboSeccion\\')\"').'\n \n \n </div>\n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Seccion:</label>\n <span id=\"combo_id_secciones\"> -- </span>\n \n </div> \n \n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Equipos:</label>\n <span id=\"combo_id_equipos\"> -- </span>\n </div>\n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Codigo Empresa:</label>\n '.$this->create_input('text','codigo_empresa','codigo_empresa','Codigo de la empresa',false,'form-control required').'\n \n </div> \n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Consecutivo:</label>\n '.$this->create_input('text','consecutivo','consecutivo','escriba consecutivo',false,'form-control required').'\n \n </div>\n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Fabricante:</label>\n '.$this->create_input('text','id_fabricante','id_fabricante','cod fabricante',false,'form-control required').'\n \n </div>\n \n <div class=\"form-group\">\n <label for=\"id_cursos\">Temperatura Maxima:</label>\n '.$this->create_input('text','tempmaxima','tempmaxima','Temperatura Maxima ',false,'form-control required').'\n \n </div>'; \n if(\t$_SESSION[\"tipo_usuario\"]<>3){\n $html.='<button type=\"button\" id=\"guardarCurso\" class=\"btn btn-primary\">Guardar Componente</button>';\n }\n $html.='<div id=\"Resultado\" style=\"display:none\">RESULTADO</div>\n </form>\n </div>\n </div>\n </div> '.$this->tablaDatos().'\n \n </div>\n </div>\n </div> \n\n </section> '; \n return $html;\n \n }", "protected function form()\n {\n $form = new Form(new Information);\n \n \n\n $form->text('name', __('项目名称'))->autofocus()->placeholder('例:上汽大众新能源汽车工厂项目')->required();\n $form->text('industry', __('行业类别'))->required();\n $form->currency('investment', __('投资金额'))->icon('fa-usd')->required(); \n $form->text('cont_name', __('资方联系人'))->placeholder('选填内容,可为空');\n $form->text('cont_phone', __('资方联系方式'))->placeholder('选填内容,可为空');\n $form->text('staff_name', __('工作人员姓名'));\n $form->text('staff_phone', __('工作人员电话'));\n $form->hidden('adminuser_id', __('adminuser_id'))->value(Admin::user()->id);\n $form->textarea('content', __('项目情况'))->required()->placeholder('请填写项目介绍(包括项目投资额度、产业类别等)、项目需求(如土地、排放、能耗等)、谈判进度等......');\n\n\n\n $form->tools(function (Form\\Tools $tools) {\n\n // 去掉`列表`按钮\n $tools->disableList();\n\n });\n\n $form->footer(function ($footer) {\n\n // 去掉`重置`按钮\n $footer->disableReset();\n\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n\n });\n\n $form->setAction('../admin/myinfo');\n\n return $form;\n }", "public function buildFormFields()\n {\n $this->addFormField(\n SharpTextFormFieldConfig::create(\"titre\")\n ->setLabel(\"Titre\")\n );\n\n $this->addFormField(\n SharpTextFormFieldConfig::create(\"soustitre\")\n ->setLabel(\"Sous-titre\")\n );\n\n $this->addFormField(\n SharpTextFormFieldConfig::create(\"slug\")\n ->setLabel(\"Slug\")\n );\n\n $this->addFormField(\n SharpTextFormFieldConfig::create(\"url\")\n ->setLabel(\"URL du projet\")\n );\n\n $this->addFormField(\n SharpMarkdownFormFieldConfig::create(\"texte\")\n ->setLabel(\"Texte\")\n ->showToolbar(true)\n );\n\n $this->addFormField(\n SharpCheckFormFieldConfig::create(\"is_open_source\")\n ->setText(\"Projet Open-source\")\n );\n\n $this->addFormField(\n SharpPivotFormFieldConfig::create(\"technos\", SharpTechnoRepository::class)\n ->setLabel(\"Technologies\")\n ->setAddable(true)\n ->setSortable(true)\n ->setOrderAttribute(\"ordre\")\n ->setCreateAttribute(\"nom\")\n );\n\n $this->addFormField(\n SharpListFormFieldConfig::create(\"screenshots\")\n ->setLabel(\"Screenshots\")\n ->setSortable(true)->setOrderAttribute(\"ordre\")\n ->setAddable(true)->setAddButtonText(\"Ajouter un screenshot\")\n ->setRemovable(true)->setRemoveButtonText(\"Supprimer\")\n ->addItemFormField(\n SharpFileFormFieldConfig::create(\"fichier\")\n ->setFileFilterImages()\n ->setMaxFileSize(5)\n ->setThumbnail(\"100x100\")\n ->addGeneratedThumbnail(\"600x\"))\n ->addItemFormField(\n SharpTextFormFieldConfig::create(\"tag\")\n ->addAttribute(\"placeholder\", \"Tag\"))\n ->addItemFormField(\n SharpTextareaFormFieldConfig::create(\"legende\")\n ->setRows(3))\n ->setItemFormTemplate(\n SharpListItemFormTemplateConfig::create()\n ->addField(\"fichier\")\n ->addField(\"tag\")\n ->addField(\"legende\")\n )\n );\n\n $this->addFormTemplateColumn(\n SharpFormTemplateColumnConfig::create(7)\n ->addField(\"titre\")\n ->addField(\"soustitre\")\n ->addField([\"slug:5\", \"url:7\"])\n ->addField(\"technos\")\n ->addField(\"is_open_source\")\n\n )->addFormTemplateColumn(\n SharpFormTemplateColumnConfig::create(5)\n ->addField(\"texte\")\n ->addField(\"screenshots\")\n );\n }", "public function form() {\n\t\treturn array();\n\t}", "public function getContainer() {}", "protected function generaCamposFormulario($datosIniciales)\n\t\t{\n\t\t\tif(empty($datosIniciales)){\n\t\t\t\t$html = '<fieldset>';\n\t\t\t\t$html.= '<legend>Rellene los datos para finalizar su compra: </legend>';\n\t\t\t\t$html.= '<p>Nombre: <input type=\"text\" name=\"nombre\" required>';\n\t\t\t\t$html.= ' Apellidos: <input type=\"text\" name=\"apellido\" required></p>';\n\t\t\t\t$html.= '<p>País: <input type=\"text\" name=\"pais\" required></p>';\n\t\t\t\t$html.= '<p>Dirección: <input type=\"text\" name=\"direccion\" required>';\n\t\t\t\t$html.=' Código postal: <input type=\"text\" name=\"cp\" required></p>';\n\t\t\t\t$html.= '<p>Localidad/Ciudad: <input type=\"text\" name=\"localidad\" required>';\n\t\t\t\t$html.= ' Provincia: <input type=\"text\" name=\"provincia\" required></p>';\n\t\t\t\t$html.= '<p>Teléfono: <input type=\"text\" name=\"telefono\" required></p>';\n\t\t\t\t$html.= '<p>Dirección de correo electrónico: <input type=\"text\" name=\"correo\" required></p>';\n\t\t\t\t$html.= '</fieldset>';\n\t\t\t\t$html .= '<div id=\"fc\"><fieldset>';\n\t\t\t\t$html.= '<legend> Rellene los datos de pago: </legend>';\n\t\t\t\t$html .='<p><input type=\"checkbox\" id=\"tipoV\" name=\"tipoT\" value=\"Visa\" >';\n\t\t\t\t$html .='<img src=\"img/visa.jpg\" class=\"visa\" style=\"width:8%; height:6%;\"/>';\n\t\t\t\t$html .='<input type=\"checkbox\" id=\"tipoMC\" name=\"tipoT\" value=\"MasterCard\" >';\n\t\t\t\t$html .='<img src=\"img/mastercard.png\" class=\"MasterCard\" style=\"width:5%; height:3%;\"/></p>';\n\t\t\t\t$html .='<p>Numero de tarjeta: <input type=\"text\" name=\"tarjeta\" required></p>';\n\t\t\t\t$html .='<p>Fecha de caducidad: <input type=\"text\" name=\"mesC\" required> / <input type=\"text\" name=\"añoC\" required> </p>';\n\t\t\t\t$html .='<p>CVV: <input type=\"text\" name=\"cvv\" required></p>';\n\t\t\t\t$html .='<?php echo \"La cantidad total a pagar es \"'. $_SESSION[\"totalCompra\"] .'\"€.\" ?>';\n\t\t\t\t$html.= '<p><input type=\"submit\" name=\"aceptar\" value=\"PAGAR\"></p>';\n\t\t\t $html.= '</fieldset></div>';\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$html = '<fieldset>';\n\t\t\t\t$html.= '<legend> Rellene los datos para finalizar su compra: </legend>';\n\t\t\t\t$html.= '<p>Nombre: <input type=\"text\" name=\"nombre\" value=\"'.$datosIniciales['nombre'].'\" required>';\n\t\t\t\t$html.= ' Apellido: <input type=\"text\" name=\"apellido\" value=\"'.$datosIniciales['apellido'].'\" required></p>';\n\t\t\t\t$html.= '<p>País: <input type=\"text\" name=\"pais\" value=\"'.$datosIniciales['pais'].'\" required></p>';\n\t\t\t\t$html.= '<p>Dirección: <input type=\"text\" name=\"direccion\" value=\"'.$datosIniciales['direccion'].'\" required>';\n\t\t\t\t$html.=' Código postal: <input type=\"text\" name=\"cp\" value=\"'.$datosIniciales['cp'].'\" required></p>';\n\t\t\t\t$html.= '<p>Localidad/Ciudad: <input type=\"text\" name=\"localidad\" value=\"'.$datosIniciales['localidad'].'\" required>';\n\t\t\t\t$html.= ' Provincia: <input type=\"text\" name=\"provincia\" value=\"'.$datosIniciales['provincia'].'\" required></p>';\n\t\t\t\t$html.= '<p>Teléfono: <input type=\"text\" name=\"telefono\" value=\"'.$datosIniciales['telefono'].'\" required></p>';\n\t\t\t\t$html.= '<p>Dirección de correo electrónico: <input type=\"text\" name=\"correo\" value=\"'.$datosIniciales['correo'].'\" required></p>';\n\t\t\t $html.= '</fieldset>';\n\t\t\t\t$html .= '<div id=\"fc\"><fieldset>';\n\t\t\t\t$html.= '<legend> Rellene los datos de pago: </legend>';\n\t\t\t\t$html .='<p><input type=\"checkbox\" id=\"tipoV\" name=\"tipoT\" value=\"Visa\" >';\n\t\t\t\t$html .='<img src=\"img/visa.jpg\" class=\"visa\" style=\"width:8%; height:6%;\"/>';\n\t\t\t\t$html .='<input type=\"checkbox\" id=\"tipoMC\" name=\"tipoT\" value=\"MasterCard\" >';\n\t\t\t\t$html .='<img src=\"img/mastercard.png\" class=\"MasterCard\" style=\"width:5%; height:3%;\"/></p>';\n\t\t\t\t$html .='<p>Numero de tarjeta: <input type=\"text\" name=\"tarjeta\" required></p>';\n\t\t\t\t$html .='<p>Fecha de caducidad: <input type=\"text\" name=\"mesC\" required> / <input type=\"text\" name=\"añoC\" required> </p>';\n\t\t\t\t$html .='<p>CVV: <input type=\"text\" name=\"cvv\" required></p>';\n\t\t\t\t$html .='<?php echo \"La cantidad total a pagar es \"'. $_SESSION[\"totalCompra\"] .'\"€.\" ?>';\n\t\t\t\t$html.= '<p><input type=\"submit\" name=\"aceptar\" value=\"PAGAR\"></p>';\n\t\t\t $html.= '</fieldset></div>';\n\t\t\t}\n\t\t\treturn $html;\n\t\t}", "function createForm(){\n\t\t$this->createFormBase();\n\t\t$this->addElement('reset','reset','Reset');\t\t\t\n\t\t$tab['seeker_0'] = '0';\n\t\t$this->setDefaults($tab);\n\t\t$this->addElement('submit','bouton_add_pi','Add a contact',array('onclick' => \"document.getElementById('frmvadataset').action += '#a_contact'\"));\n\t\t$this->createVaFormResolution();\n\t\t$this->createFormGeoCoverage();\n\t\t$this->createFormGrid();\t\n\t\t//Required format\n\t\t$dformat = new data_format;\n\t\t$dformat_select = $dformat->chargeFormDestFormat($this,'required_data_format','Required data format','NetCDF');\n\t\t$this->addElement($dformat_select);\n\t\t$this->getElement('organism_0')->setLabel(\"Organism short name\");\n\t\t$this->getElement('project_0')->setLabel(\"Useful in the framework of\");\n\t\t$this->getElement('dats_abstract')->setLabel(\"Abstract \");\n\t\t$this->getElement('dats_purpose')->setLabel(\"Purpose\");\n\t\t$this->getElement('database')->setLabel(\"Data center\");\n\t\t$this->getElement('new_db_url')->setLabel(\"Data center url\");\n\t\t$this->getElement('dats_use_constraints')->setLabel(\"Access and use constraints\");\t\t\t\n\t\t$this->getElement('sensor_resol_tmp')->setLabel('Temporal (hh:mm:ss)');\t\t\t\n\t\t$this->getElement('place_alt_min_0')->setLabel(\"Altitude min\");\n\t\t$this->getElement('place_alt_max_0')->setLabel(\"Altitude max\");\n\t\t$this->getElement('data_format_0')->setLabel(\"Original data format\");\n\t\t$this->addElement('file','upload_doc','Attached document');\n\t\t$this->addElement('submit','upload','Upload');\n\t\t$this->addElement('submit','delete','Delete');\n\t\t\n\t\tfor ($i = 0; $i < $this->dataset->nbVars; $i++){\n\t\t\t$this->getElement('methode_acq_'.$i)->setLabel(\"Parameter processing related information\");\n\t\t}\n\t\t$this->addElement('submit','bouton_add_variable','Add a parameter',array('onclick' => \"document.getElementById('frmvadataset').action += '#a_param'\"));\n\t\t\n\t\t$this->addElement('submit','bouton_add_projet','Add a project',array('onclick' => \"document.getElementById('frmvadataset').action += '#a_general'\"));\n\t\t$option = array();\n\t\t$option['default'] = \"\";\n\t\t$option['model'] = \"Model\";\n\t\t$option['instrument'] = \"Instrument\";\n\t\t$option['satellite'] = \"Satellite\";\n\t\t$this->addElement('select','source_type','source type :',$option,array('onchange' => \"DeactivateButtonAddSource()\",'onclick' => \"DeactivateButtonAddSource();\",'onmouseover' => 'DeactivateButtonAddSource();' ));\n\t\t$this->addElement('submit','bouton_add_source','Add a source',array('disabled' => 'true','onclick' => \"document.getElementById('frmvadataset').action += '#a_source'\",'onmouseout' => 'DeactivateButtonAddSource();'));\n\t\t\n\t\tif (isset ( $this->dataset->dats_sensors ) && ! empty ( $this->dataset->dats_sensors )) {\n\t\t\t$this->dats_sensors = array();\n\t\t\t$this->dats_sensors = $this->dataset->dats_sensors ;\n\t\t}\n\t\tif (isset ( $this->dataset->sites ) && ! empty ( $this->dataset->sites )) {\n\t\t\t$this->sites = array();\n\t\t\t$this->sites = $this->dataset->sites;\n\t\t}\n\t\t\n\t\tif ( isset ( $this->dataset->dats_id ) && $this->dataset->dats_id > 0) {\n\t\t\tif (isset ( $this->dataset->nbModFormSensor )){\n\t\t\t\tif($this->dataset->nbModForm <= $this->dataset->nbModFormSensor ){\n\t\t\t\t\t$this->dataset->nbModForm = $this->dataset->nbModFormSensor;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isset ( $this->dataset->nbSatFormSensor )){\n\t\t\t\t//$this->dataset->nbSatFormSensor = $this->dataset->nbSatFormSensor - 1;\n\t\t\t\tif($this->dataset->nbSatForm <= $this->dataset->nbSatFormSensor){\n\t\t\t\t\t$this->dataset->nbSatForm = $this->dataset->nbSatFormSensor;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isset ( $this->dataset->nbInstruFormSensor )){\n\t\t\t\tif($this->dataset->nbInstruForm <= $this->dataset->nbInstruFormSensor){\n\t\t\t\t\t$this->dataset->nbInstruForm = $this->dataset->nbInstruFormSensor;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($this->dataset->nbModForm > 0)\n\t\t\t$this->addMod();\n\t\tif($this->dataset->nbInstruForm > 0)\n\t\t\t$this->addInstru();\t\n\t\tif($this->dataset->nbSatForm > 0)\n\t\t\t$this->addSat();\n\t\t\n\t\t$this->dataset->dats_sensors = null ;\n\t\t$this->dataset->sites = null;\n\t}", "public function buildForm()\n {\n $this\n ->addMeasureList()\n ->addAscendingList()\n ->addTitles(['class' => 'indicator_title_title_narrative', 'narrative_true' => true])\n ->addDescriptions(['class' => 'indicator_description_title_narrative'])\n ->addCollection('reference', 'Activity\\Reference', 'reference', [], trans('elementForm.reference'))\n ->addAddMoreButton('add_reference', 'reference')\n ->addBaselines()\n ->addPeriods()\n ->addAddMoreButton('add_period', 'period')\n ->addRemoveThisButton('remove_indicator');\n }", "abstract protected function _setNewForm();", "protected function form()\n {\n $form = new Form(new Poster);\n $form->setTitle('生成海报【请在务必按照模板底图要求上传海报底图】');\n $form->setAction('/admin/poster');\n $form->text('title', '海报名称')->rules('required');\n\n $form->image('bg_image','海报底图')->uniqueName();\n $form->multipleImage('code_image','二维码图片')->uniqueName();\n $form->select('template_id','合成模板')->options(function($id){\n $template=Template::find($id);\n if($template){\n return [$template->id=>$template->title];\n }\n })->ajax('/admin/template/allTemplates');\n $form->disableViewCheck();\n $form->disableCreatingCheck();\n $form->disableEditingCheck();\n $form->submitted(function(Form $form){\n $form->model()->poster_image='';\n });\n\n $form->saving(function(Form $form){\n $template=Template::find($form->template_id);\n $bg=Image::make($form->bg_image);\n $poster_image=[];\n //获取背景图\n foreach ($form->code_image as $item){\n $co=Image::make($item)->resize($template->code_width,$template->code_height);\n $bg->insert($co,'top-left',$template->code_start_x,$template->code_start_y);\n $image_name=date('YmdHis').uniqid().'.png';\n $bg->save(storage_path('app/public/images').DIRECTORY_SEPARATOR.$image_name);\n Storage::disk('qiniu')->put($image_name,file_get_contents(storage_path('app/public/images').DIRECTORY_SEPARATOR.$image_name));\n $poster_image[]=$image_name;\n }\n $form->model()->poster_image=json_encode($poster_image);\n //\n });\n\n\n\n\n return $form;\n }", "function configurar_formulario (toba_ei_formulario $form){\n switch ($this->s__tipo){\n case \"Definitiva\" : $this->cargar_form_definitivo($form); break;\n case \"Periodo\" : $this->cargar_form_periodo($form); break;\n }\n }", "private function createAddForm() {\n return $this->createFormBuilder\n ->setAction($this->generateUrl('nn_genie_infos_mat_proprietaire_add'))\n ->setMethod('POST')\n ->getForm()\n ;\n }", "public function beforeHtml() {\n $form_name = $this->getAttribute('id');\n\n if ($this->getAttribute('method') == 'post') {\n\n $uni = session::getInstance()->createToken($form_name);\n\n $this->addHidden('token')->setValue($uni)->setId('token_' . $form_name);\n $this->addHidden('token_name')->setId('token_name' . $form_name)->setValue($form_name);\n }\n\n $classe = 'form';\n\n if ($this->getAttribute('class'))\n $classe = $this->getAttribute('class') . ' ' . $classe;\n\n $this->setAttribute('class',$classe);\n\n\t\treturn parent::beforeHtml(array(), 'form_' . $form_name);\n //return $this->processElementsWrap();\n\n\n //Old process code!!\n\n $hidden = array();\n\n $wrap_class = 'form_output_handler_' . $this->_wrapper;\n $wrapper = new $wrap_class($form_name);\n\n foreach ($this->_elements as $element) {\n if (!is_object($element))\n $wrapper->wrap($element,true);\n else {\n switch ($element->type) {\n case 'hidden':\n if ($element->getAttribute('name') == 'MAX_FILE_SIZE')\n $wrapper->wrap($element,true);\n else\n $hidden[] = $element->html();\n break;\n case 'submit':\n case 'reset':\n $wrapper->wrapSubmit($element);\n break;\n default:\n $wrapper->wrap($element);\n }\n }\n }\n\n return array(\n 'elements' => $wrapper->output($form_name) .\n implode(\"\\n\",$hidden)\n );\n }", "protected function form()\n {\n return WebItem::form(function (Form $form) {\n $form->text('title', '標題')->rules('required');\n $form->text('tag', 'TAG');\n $form->image('picture', '封面照')->rules('required|dimensions:ratio=57/28')->help('封面照比例限制為1140:560 (寬:高)');\n $form->wangEditor('content', '內容');\n $states = [\n 'on' => ['value' => 1, 'text' => '開啟', 'color' => 'success'],\n 'off' => ['value' => 0, 'text' => '關閉', 'color' => 'default'],\n ];\n $form->switch('display', '是否顯示')->states($states);\n $form->display('created_at', trans('admin.created_at'));\n $form->display('updated_at', trans('admin.updated_at'));\n $form->disableReset();\n });\n }", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function criarHtml()\n {\n ;\n $form = \"\n <div class='row'>\n <div class='col-md-12 col-sm-12 col-xs-12'>\n <div class='x_panel'>\n <div class='x_content'>\n<form id='form' class='form-horizontal form-label-left' data-parsley-validate enctype='multipart/form-data' method='POST' >\n \" . $this->conteudo . \"\n <div class='ln_solid'></div>\n <div class='form-group'>\n <div class='col-md-3 col-sm-3 col-xs-12 col-md-offset-9'>\n <button class='btn btn-primary' type='submit'>Cancel</button>\n <a class='btn btn-success' onclick='$this->action'>Salvar</a>\n </div>\n </div>\n</form>\n</div>\n</div>\n</div>\n</div>\n\";\n return $form;\n }", "protected function _prepareForm()\n {\n $form = new Varien_Data_Form(array(\n 'id' => 'add_form',\n 'action' => $this->getUrl('*/faq/save', array(\n 'ret' => Mage::registry('ret'),\n 'id' => $this->getRequest()->getParam('id')\n )\n ),\n 'method' => 'post'\n ));\n\n $fieldset = $form->addFieldset('faq_new_question', array(\n 'legend' => $this->__('New Question'),\n 'class' => 'fieldset-wide'\n ));\n\n $fieldset->addField('new_question', 'text', array(\n 'label' => Mage::helper('inchoo_faq')->__('New Question'),\n 'required' => true,\n 'name' => 'question'\n ));\n\n $fieldset->addField('new_answer', 'textarea', array(\n 'label' => Mage::helper('inchoo_faq')->__('Answer'),\n 'required' => false,\n 'name' => 'answer',\n 'style' => 'height:12em;',\n ));\n\n $form->setUseContainer(true);\n// $form->setValues();\n $this->setForm($form);\n\n// echo \"_prepareForm()\";\n\n return parent::_prepareForm();\n\n\n }", "function getForm(){\r\n\t\t$data = [\r\n\t\t\t'EFORM' => [\r\n\t\t\t\t'formName' => $this->formName,\r\n\t\t\t\t'scope' => $this->scope,\r\n\t\t\t\t'_uid' => $this->uid,\r\n\t\t\t\t'elements' => $this->fields->getFormViewFields($this),\r\n\t\t\t\t'errors' => $this->errors,\r\n\t\t\t\t'buttons' => $this->buttons->get()\r\n\t\t\t]\r\n\t\t];\r\n\r\n\t\tif($this->actions){\r\n\t\t\t$data['EFORM']['actions'] = $this->actions->getForSmarty();\r\n\t\t}\r\n\t\tif(!empty($this->statuses)){\r\n\t\t\t$data['EFORM']['fieldStatuses'] = $this->statuses;\r\n\t\t}\r\n\r\n\t\t$view = new ViewElementClass();\r\n\t\t$view->type = 'form_start';\r\n\t\t$view->data = $data;\r\n\t\treturn $view;\r\n\t}", "protected function form()\n {\n $form = new Form(new Carousel);\n\n $form->select('carousel_category_id', __('carousel::carousel.carousel_category_id'))\n ->options(CarouselCategory::all()->pluck('name', 'id'));\n $form->text('title', __('carousel::carousel.title'));\n $form->text('url', __('carousel::carousel.url'));\n $form->image('img_src', __('carousel::carousel.img_src'))\n ->removable()\n ->uniqueName()\n ->move('carousel');\n $form->text('alt', __('carousel::carousel.alt'));\n $form->textarea('remark', __('carousel::carousel.remark'));\n $form->select('status', __('carousel::carousel.status.label'))\n ->default(1)\n ->options(__('carousel::carousel.status.value'));\n $form->datetime('start_time', __('carousel::carousel.start_time'))\n ->default(date('Y-m-d H:i:s'));\n $form->datetime('end_time', __('carousel::carousel.end_time'))\n ->default(date('Y-m-d H:i:s'));\n\n return $form;\n }", "protected function addFormObjectToViewHelperVariableContainer() {}", "public function __construct\n (\n $clientes_array = array(),\n $productosvariante_array = array(),\n $productos_generales_array = array()\n )\n {\n parent::__construct('PedidoMayoristaForm');\n $this->setAttribute('method', 'post');\n \n $this->add(array(\n 'name' => 'idpedido',\n 'type' => 'Hidden',\n ));\n \n\n\n $this->add(array(\n 'name' => 'pedidomayorista_fechasolicitud',\n 'type' => 'Date',\n 'attributes' => array(\n 'required' => true,\n 'class' => 'form-control infput-thick',\n 'tabindex' =>1,\n\n ),\n ));\n\n $this->add(array(\n 'name' => 'pedidomayorista_fechaentrega',\n 'type' => 'Date',\n 'attributes' => array(\n 'required' => true,\n 'class' => 'form-control infput-thick',\n 'tabindex' =>2,\n\n ),\n ));\n\n\n $this->add(array(\n 'name' => 'pedidomayorista_nota',\n 'type' => 'TextArea',\n 'attributes' => array(\n 'required' => true,\n 'class' => 'form-control infput-thick',\n 'tabindex' => 5\n ),\n ));\n\n\n\n $this->add(array(\n 'name' => 'pedidomayorista_estatus',\n 'type' => 'Select',\n 'options' => array(\n \n 'value_options' => array(\n 'pendiente' => 'Pendiente',\n 'solicitado' => 'Solicitado',\n 'completado' => 'Completado',\n 'transito' => 'En tránsito',\n 'cancelado' => 'Cancelado',\n\n ),\n ),\n 'attributes' => array(\n 'required' => true,\n 'class' => 'form-control infput-thick',\n 'tabindex' =>4,\n\n ),\n ));\n\n\n $this->add(array(\n 'name' => 'idcliente',\n 'type' => 'Select',\n 'options' => array(\n \n 'value_options' => $clientes_array,\n ),\n 'attributes' => array(\n 'required' => true,\n 'class' => 'form-control infput-thick',\n 'tabindex' =>3,\n ),\n ));\n\n\n \n\n\n $this->add(array(\n 'name' => 'idproductovariante[]',\n 'type' => 'Select',\n 'options' => array(\n \n 'value_options' => $productosvariante_array, \n ),\n 'attributes' => array(\n 'required' => false,\n 'class' => '',\n \n\n \n ),\n ));\n\n $this->add(array(\n 'name' => 'productos_generales',\n 'type' => 'Select',\n 'options' => array(\n \n 'value_options' => $productos_generales_array, \n ),\n 'attributes' => array(\n 'required' => true,\n 'class' => 'form-control infput-thick',\n\n\n \n ),\n ));\n \n\n \n }", "function render(){\n\t\tinclude 'Header.php';\n?>\n<h2 style=\"color:white;\">Añadir partido:</h2>\n\t\t\t\t<div style=\"overflow-x:auto;color:white;\">\n\t\t\t\t\t<form name=\"anadirPARTIDO\" id=\"anadirCategoria\" action=\"./PARTIDOS_Controller.php?action=ADD\" method=\"POST\" enctype=\"multipart/form-data\" onsubmit=\"return encriptar()\">\n\t\t\t\t\t\t <table>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>Fecha:</td>\n\t\t\t\t\t\t\t\t<td><input class=\"form-est\" type=\"date\" id=\"fecha\" name=\"fecha\" placeholder=\"01/01/2018\" required></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>Pista:</td>\n\t\t\t\t\t\t\t\t<td><select class=\"form-est\" id=\"pista\" name=\"pista\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tfor($j=0;$j<count($this->pistas);$j++){\n\t\t\t\t\t\t\t\t\t\techo \"<option value=\".$this->pistas[$j][\"nombre\"].\" >\".$this->pistas[$j][\"nombre\"].\"</option>\";\t\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\t</select></td>\n\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan=\"2\" align=\"center\"><input class=\"form-est\" type=\"submit\" id=\"insertar\" name=\"insertar\" value=\"Insertar\" ></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <p><a href=\"<?php echo $this->volver; ?>\"><img src=\"../Views/images/atras.png\" title=\"Atrás\" alt=\"Atrás\"></a></p>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\n\n<?php\t\t\n\tinclude 'Footer.php';\n\t}", "private function makeform() {\n\n\t$form=new llform($this);\n\t$form->addFieldset('upload','Upload a New Image');\n\t$form->addFieldset('filter','Filter Images');\n\t$form->addFieldset('sort','Sort Order');\n\t$form->addFieldset('boundingbox','Bounding Box');\n\t$form->addFieldset('display','Display Options');\n\t$form->addFieldset('gotopage','Go to page');\n\t\n\t$form->addControl('upload',new ll_edit($form,'imagename',25,40,'Image name (leave blank for file name)'));\n\t$form->addControl('upload',new ll_file($form,'file',5*1024*1024));\n\t$form->addControl('upload',new ll_button($form,'upload','Upload'));\n\t\n\t$form->addControl('filter',$rgf=new ll_radiogroup($form,'filter'));\n\t$rgf->setOptionArrayDual(array('showall','byname'),array('Show All Entries','Show those whose name starts ...'));\n\t$form->addControl('filter',new ll_edit($form,'filterstring',12,20,'... with the following string:'));\n\t$form->addControl('sort',$rgs=new ll_radiogroup($form,'sorttype'));\n\t$rgs->setOptionArrayDual(array('newestfirst','oldestfirst','name'),array('Newest First','Oldest First','By Name'));\n\t$form->addControl('display',new ll_edit($form,'numperpage',3,3,'Number of images per page'));\n\t$form->addControl('display',new ll_button($form,'update','Update Display'));\n\t$form->addControl('display',new ll_button($form,'defaults','Restore Defaults'));\n\t$form->addControl('boundingbox',new ll_edit($form,'maxwidth',3,3,'Max Width'));\n\t$form->addControl('boundingbox',new ll_edit($form,'maxheight',3,3,'Max Height'));\n\t\n\t$form->addControl('gotopage',new ll_button($form,'firstpage','<<< First Page'));\n\t$form->addControl('gotopage',new ll_button($form,'prevpage','<< Prev Page'));\n\t$form->addControl('gotopage',new ll_dropdown($form,'pagenum'));\n\t$form->addControl('gotopage',new ll_button($form,'nextpage','Next Page >>'));\n\t$form->addControl('gotopage',new ll_button($form,'lastpage','Last Page >>>'));\n\t\n\treturn $form;\n}", "public function __construct($name = null) {\n parent::__construct('about');\n\n $this->add(array(\n 'name' => 'id',\n 'type' => 'Hidden',\n ));\n $this->add(array(\n 'name' => 'name',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Наименование предприятия',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'id' => 'name',\n 'placeholder' => 'Наименование предприятия',\n ),\n ));\n \n $this->add(array(\n 'name' => 'tel',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Телефон',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Контактный номер телефона',\n ),\n ));\n \n $this->add(array(\n 'name' => 'address',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Адрес',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Адрес',\n ),\n ));\n \n $this->add(array(\n 'name' => 'current_account',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'РАСЧЕТНЫЙ СЧЕТ',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'РАСЧЕТНЫЙ СЧЕТ',\n ),\n ));\n \n $this->add(array(\n 'name' => 'unp',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'УНП',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'УНП',\n ),\n ));\n $this->add(array(\n 'name' => 'bank_info',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Информация о банке',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Информация о банке',\n ),\n ));\n \n $this->add(array(\n 'name' => 'okpo',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'ОКПО',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'ОКПО',\n ),\n ));\n \n $this->add(array(\n 'name' => 'director',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Директор',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'ФИО',\n ),\n ));\n \n $this->add(array(\n 'name' => 'email',\n 'type' => 'Email',\n 'options' => array(\n 'label' => 'Email',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Электронный адрес',\n ),\n ));\n \n $this->add(array(\n 'name' => 'description',\n 'type' => 'Zend\\Form\\Element\\Textarea',\n 'options' => array(\n 'label' => 'О предприятии',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'О предприятии',\n ),\n ));\n \n $this->add(array(\n 'name' => 'submit',\n 'type' => 'Submit',\n 'attributes' => array(\n 'value' => 'Сохранить',\n 'id' => 'submitbutton',\n ),\n 'attributes' => array(\n 'class' => 'btn btn-danger',\n ),\n ));\n }", "function readForm() {\n\t\t$this->FiscaalGroepID = $this->formHelper(\"FiscaalGroepID\", 0);\n\t\t$this->FiscaalGroupType = $this->formHelper(\"FiscaalGroupType\", 0);\n\t\t$this->GewijzigdDoor = $this->formHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->formHelper(\"GewijzigdOp\", \"\");\n\t}", "public function buildForm()\n {\n $this\n ->add(\n 'new_organization_group',\n 'collection',\n [\n 'type' => 'form',\n 'options' => [\n 'class' => 'App\\SuperAdmin\\Forms\\OrganizationGroupInformation',\n 'label' => false,\n ]\n ]\n )\n ->add(\n 'group_admin_information',\n 'collection',\n [\n 'type' => 'form',\n 'options' => [\n 'class' => 'App\\SuperAdmin\\Forms\\GroupAdmin',\n 'label' => false,\n ]\n ]\n )\n ->addSaveButton();\n }", "public function formularioNuevo(){\n\t\t$template = file_get_contents('tpl/proyecto_form_tpl.html');\n\t\t$tipos = $this->listaTipos();\n\t\t$tipos_proy = '<select name=\"tipo_proyecto\" size=\"1\" size=\"10\" id=\"tipo_proyecto\">';\n\t\tforeach($tipos as $key => $tipo){\n\t\t\t$tipos_proy = $tipos_proy.'<option value=\"'.utf8_encode($tipo['gral_param_propios']['GRAL_PAR_PRO_COD']).'\">'.\n\t\t\t\t\t\t utf8_encode($tipo['gral_param_propios']['GRAL_PAR_PRO_DESC']).'</option>';\n\t\t}\n\t\t$tipos_proy = $tipos_proy.'</select >';\n\t\t$template = str_replace('{proyecto_tipo}', $tipos_proy, $template);\n print($template);\n\t}", "protected function createComponentTarifForm()\r\n\t{\r\n\t\t$form = new Form;\r\n\t\t$form->addText('name', 'Jméno:')\r\n\t\t\t->setRequired('Zadej jméno.');\r\n\r\n\t\t$form->addText('apicode', 'API Code:');\r\n\r\n\t\t$form->addText('price', 'Cena:')\r\n\t\t ->addRule(Form::INTEGER, 'Cena musí být číslo')\r\n\t\t\t->setRequired('Zadej cenu.');\r\n\t\t\r\n\t\t$form->addText('description', 'Popis:');\r\n\t\t\t\r\n\t\t$form->addSubmit('save', 'Uložit')\r\n\t\t\t->setAttribute('class', 'default')\r\n\t\t\t->onClick[] = $this->tarifFormSucceeded;\r\n\r\n\t\t$form->addSubmit('cancel', 'Cancel')\r\n\t\t\t->setValidationScope(NULL)\r\n\t\t\t->onClick[] = $this->formCancelled;\r\n\r\n\t\t$form->addProtection();\r\n\t\treturn $form;\r\n\t}", "protected function form()\n {\n $form = new Form(new Category);\n\n// dump(Category::root(request()->segment(3)));\n\n $form->tab('Конструктор страницы', function($form){\n $form->sortable('source','Страница');\n $form->select('blocks','Добавить блок')->options(Block::where('static',0)->pluck('name','url'))->attribute(['rel' => 'blocks']);\n $form->select('static','Добавить статический блок')->options(Block::where('static',1)->pluck('name','url'))->attribute(['rel' => 'static']);\n });\n $form->tab('Настройки', function($form){\n $form->display('id');\n $form->alias('alias','Алиас');\n $form->text('link');\n $form->select('hook')->options(Resource::all()->pluck('name','id'));\n $form->text('name','Название');\n });\n $form->tab('SEO', function($form){\n $form->textarea('seo_title','seo title');\n $form->textarea('seo_desc','seo description');\n $form->textarea('seo_key','seo keywords');\n\n });\n\n return $form;\n }", "public function form()\n {\n $this->setData();\n }", "public function form( $instace ){\n echo '<p><strong>Widget ini belum bisa diubag secara Manual!</strong><br> Hubungi developer untuk melakukan perubahan</p>'; \n }", "function smarty_block_form($params, $content, &$view)\n{\t\n\t//OBS: se o nome do modelo que o cara colocou como parametro não existir testar para não dar merda!!\n\t\n\t//QUANDO FECHA O BLOCO:\n\t\n if ( isset($content) ) \n {\n\t\t//Passa os parametros inúteis para o processamento direto para a tag\n\t\t$output = '<fieldset';\n\t\tforeach($params as $name => $value){\n\t\t\t$output .= \" $name='$value'\";\n\t\t}\n\t\t$output .= '>';\n \t$output .= $content; //joga os inputs na saida\n\t\t$output .= '</fieldset>';\n\n $modelArr = $view->getTemp('form_modelName');\n array_shift($modelArr);\n $view->unsetTemp('form_modelName');\n $view->setTemp('form_modelName', $modelArr); //unseta essa variavel temporária (nome do modelo)\n\n\t\treturn $output;\n }\n\t\n\t\n\t//QUANDO ABRE O BLOCO:\n\t\n\t//passa o nome do modelo para o input\n\n\tif ( isset($params['model']) ) \n\t{\n $modelArr = $view->getTemp('form_modelName');\n if ( substr($params['model'], 0, 1) == '/' ) $params['model'] = $modelArr[0].$params['model'];\n array_unshift($modelArr, $params['model']);\n\n $view->unsetTemp('form_modelName');\n\t\t$view->setTemp('form_modelName', $modelArr);\n\t\tunset($params['model']);\n\t}\n}", "protected function createComponentPrihozForm()\n {\n $id = (int) $this->getParameter('id');\n $form = new Nette\\Application\\UI\\Form;\n \n $form->addText('id_uzivatel')\n ->setAttribute('style', 'display:none')\n ->setDefaultValue($this->user->id);\n\n $form->addText('id_nemovitost')\n ->setAttribute('style', 'display:none')\n ->setDefaultValue($id);\n \n $form->addText('pocet')\n ->setAttribute('style', 'display:none');\n \n $form->addText('vkladana_castka', 'Přihazovaná částka:')\n ->setType('number')\n ->setRequired('Prosím vložte částku, kterou chcete přihodit.')\n ->addRule(Nette\\Application\\UI\\Form::MIN, 'Prosím vložte vyšší částku. Minimální příhoz je 5,000 Kč.', 5000)\n ->setAttribute('placeholder', 'Sem vložte částku v Kč.')\n ->setAttribute('class', 'castka')\n ->setAttribute('step', '1');\n\n $form->addSubmit('send', 'Odeslat formulář')\n ->setAttribute('class', 'btn btn-primary');\n\n $form->onSuccess[] = $this->prihozFormSucceeded;\n return $form;\n }", "public function __construct()\n {\n parent::__construct();\n // creates the form\n $this->form = new BootstrapFormBuilder(self::$formName);\n\n // define the form title\n $this->form->setFormTitle(\"Listagem de emprestimos\");\n\n $exemplar_id = new TDBUniqueSearch('exemplar_id', 'biblioteca', 'Exemplar', 'id', 'codigo_barras','id asc' );\n $leitor_id = new TDBUniqueSearch('leitor_id', 'biblioteca', 'Leitor', 'id', 'nome','nome asc' );\n $dt_emprestimo = new TDate('dt_emprestimo');\n $dt_emprestimo_final = new TDate('dt_emprestimo_final');\n $dt_previsao = new TDate('dt_previsao');\n $dt_prevista_final = new TDate('dt_prevista_final');\n $dt_devolucao = new TDate('dt_devolucao');\n $dt_devolucao_final = new TDate('dt_devolucao_final');\n\n $leitor_id->setMinLength(2);\n $exemplar_id->setMinLength(1);\n\n $dt_previsao->setDatabaseMask('yyyy-mm-dd');\n $dt_devolucao->setDatabaseMask('yyyy-mm-dd');\n $dt_emprestimo->setDatabaseMask('yyyy-mm-dd');\n $dt_prevista_final->setDatabaseMask('yyyy-mm-dd');\n $dt_devolucao_final->setDatabaseMask('yyyy-mm-dd');\n $dt_emprestimo_final->setDatabaseMask('yyyy-mm-dd');\n\n $leitor_id->setSize('70%');\n $dt_previsao->setSize(100);\n $dt_devolucao->setSize(100);\n $exemplar_id->setSize('70%');\n $dt_emprestimo->setSize(100);\n $dt_prevista_final->setSize(100);\n $dt_devolucao_final->setSize(100);\n $dt_emprestimo_final->setSize(100);\n\n $leitor_id->setMask('{nome}');\n $dt_previsao->setMask('dd/mm/yyyy');\n $dt_devolucao->setMask('dd/mm/yyyy');\n $dt_emprestimo->setMask('dd/mm/yyyy');\n $exemplar_id->setMask('{livro->titulo}');\n $dt_prevista_final->setMask('dd/mm/yyyy');\n $dt_devolucao_final->setMask('dd/mm/yyyy');\n $dt_emprestimo_final->setMask('dd/mm/yyyy');\n\n $row1 = $this->form->addFields([new TLabel(\"Exemplar:\", null, '14px', null)],[$exemplar_id]);\n $row2 = $this->form->addFields([new TLabel(\"Leitor:\", null, '14px', null)],[$leitor_id]);\n $row3 = $this->form->addFields([new TLabel(\"Data de empréstimo inicial:\", null, '14px', null)],[$dt_emprestimo],[new TLabel(\"Data de empréstimo final:\", null, '14px', null)],[$dt_emprestimo_final]);\n $row4 = $this->form->addFields([new TLabel(\"Data prevista de devolução inicial:\", null, '14px', null)],[$dt_previsao],[new TLabel(\"Data prevista de devolução final:\", null, '14px', null)],[$dt_prevista_final]);\n $row5 = $this->form->addFields([new TLabel(\"Data de devolução inicial:\", null, '14px', null)],[$dt_devolucao],[new TLabel(\"Data de devolução final:\", null, '14px', null)],[$dt_devolucao_final]);\n\n // keep the form filled during navigation with session data\n $this->form->setData( TSession::getValue(__CLASS__.'_filter_data') );\n\n $btn_onsearch = $this->form->addAction(\"Buscar\", new TAction([$this, 'onSearch']), 'fas:search #ffffff');\n $btn_onsearch->addStyleClass('btn-primary'); \n\n $btn_onexportcsv = $this->form->addAction(\"Exportar como CSV\", new TAction([$this, 'onExportCsv']), 'far:file-alt #000000');\n\n $btn_onshow = $this->form->addAction(\"Novo emprestimo\", new TAction(['EmprestimoLivroForm', 'onShow']), 'fas:plus #69aa46');\n\n // creates a Datagrid\n $this->datagrid = new TDataGrid;\n $this->datagrid->disableHtmlConversion();\n $this->datagrid = new BootstrapDatagridWrapper($this->datagrid);\n $this->filter_criteria = new TCriteria;\n\n $this->datagrid->style = 'width: 100%';\n $this->datagrid->setHeight(320);\n\n $column_id = new TDataGridColumn('id', \"Id\", 'left' , '69px');\n $column_exemplar_livro_titulo = new TDataGridColumn('exemplar->livro->titulo', \"Exemplar\", 'left');\n $column_leitor_nome = new TDataGridColumn('leitor->nome', \"Leitor\", 'left');\n $column_dt_emprestimo_transformed = new TDataGridColumn('dt_emprestimo', \"Emprestado em\", 'left');\n $column_dt_previsao_transformed = new TDataGridColumn('dt_previsao', \"Previsão de devolução\", 'left');\n $column_dt_devolucao_transformed = new TDataGridColumn('dt_devolucao', \"Devolvido em\", 'left');\n\n $column_dt_emprestimo_transformed->setTransformer(function($value, $object, $row) \n {\n if(!empty(trim($value)))\n {\n try\n {\n $date = new DateTime($value);\n return $date->format('d/m/Y');\n }\n catch (Exception $e)\n {\n return $value;\n }\n }\n });\n\n $column_dt_previsao_transformed->setTransformer(function($value, $object, $row) \n {\n if(!empty(trim($value)))\n {\n try\n {\n $date = new DateTime($value);\n return $date->format('d/m/Y');\n }\n catch (Exception $e)\n {\n return $value;\n }\n }\n });\n\n $column_dt_devolucao_transformed->setTransformer(function($value, $object, $row) \n {\n if(!empty(trim($value)))\n {\n try\n {\n $date = new DateTime($value);\n return $date->format('d/m/Y');\n }\n catch (Exception $e)\n {\n return $value;\n }\n }\n }); \n\n $order_id = new TAction(array($this, 'onReload'));\n $order_id->setParameter('order', 'id');\n $column_id->setAction($order_id);\n $order_dt_emprestimo_transformed = new TAction(array($this, 'onReload'));\n $order_dt_emprestimo_transformed->setParameter('order', 'dt_emprestimo');\n $column_dt_emprestimo_transformed->setAction($order_dt_emprestimo_transformed);\n $order_dt_previsao_transformed = new TAction(array($this, 'onReload'));\n $order_dt_previsao_transformed->setParameter('order', 'dt_previsao');\n $column_dt_previsao_transformed->setAction($order_dt_previsao_transformed);\n $order_dt_devolucao_transformed = new TAction(array($this, 'onReload'));\n $order_dt_devolucao_transformed->setParameter('order', 'dt_devolucao');\n $column_dt_devolucao_transformed->setAction($order_dt_devolucao_transformed);\n\n $this->datagrid->addColumn($column_id);\n $this->datagrid->addColumn($column_exemplar_livro_titulo);\n $this->datagrid->addColumn($column_leitor_nome);\n $this->datagrid->addColumn($column_dt_emprestimo_transformed);\n $this->datagrid->addColumn($column_dt_previsao_transformed);\n $this->datagrid->addColumn($column_dt_devolucao_transformed);\n\n $action_onDevolver = new TDataGridAction(array('EmprestimoList', 'onDevolver'));\n $action_onDevolver->setUseButton(true);\n $action_onDevolver->setButtonClass('btn btn-default btn-sm');\n $action_onDevolver->setLabel(\"Devolver\");\n $action_onDevolver->setImage('fa:arrow-up #000000');\n $action_onDevolver->setField(self::$primaryKey);\n $action_onDevolver->setDisplayCondition('EmprestimoList::onExibirDevolver');\n\n $this->datagrid->addAction($action_onDevolver);\n\n // create the datagrid model\n $this->datagrid->createModel();\n\n // creates the page navigation\n $this->pageNavigation = new TPageNavigation;\n $this->pageNavigation->setAction(new TAction(array($this, 'onReload')));\n $this->pageNavigation->setWidth($this->datagrid->getWidth());\n\n $panel = new TPanelGroup;\n $panel->add($this->datagrid);\n\n $panel->addFooter($this->pageNavigation);\n\n // vertical box container\n $container = new TVBox;\n $container->style = 'width: 100%';\n // $container->add(new TXMLBreadCrumb('menu.xml', __CLASS__));\n $container->add($this->form);\n $container->add($panel);\n\n parent::add($container);\n\n }", "function frmContinut() {\n\t\t$out = '';\n\t\t$out .= '\n\t\t<div id=\"div_info_produs\" style=\" font-weight:bold;color:red;\">&nbsp;</div>\n\t\t'. $this -> continut_id() .'\n\t\t'. $this -> produs_id() .'\n\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t<tr>\n\t\t\t<td>Cantitate</td>\n\t\t\t<td align=\"left\" >'. $this -> cantitate() .' </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=\"left\" >UM:</td>\n\t\t\t<td align=\"left\" >\n\t\t\t<span id=\"div_frm_unitate_masura\"></span>\n\t\t\t</td>\n\t\t</tr>\t \t \n\t\t</table>\n\t\t<div align=\"right\">\n<input type=\"button\" name=\"btnSalveaza\" id=\"btnSalveazaComp\" value=\"Salveaza\" onClick=\"xajax_saveComponenta(xajax.getFormValues(\\'frm_bonuri_consum_continut\\'), $(\\'#bon_consum_id\\').val())\">\n\t\t<input type=\"button\" name=\"btnAnuleaza\" id=\"btnAnuleaza\" value=\"Anuleaza\" onClick=\"xajax_frmComponenta(0, $(\\'#bon_consum_id\\').val())\">\t\t</div>\n\t\t';\n\t\treturn $this -> frmInnerHtml($out);\n\t}", "function __construct()\n {\n parent::__construct();\n \n // creates the form\n $this->form = new TQuickForm('form_historicotrabalho');\n $this->form->class = 'tform'; // change CSS class\n \n $this->form->style = 'display: table;width:100%'; // change style\n \n // Define Título da página\n $this->form->setFormTitle('Banco de Horas - Lançamento de Escalas');\n // Inicía ferramentas auxiliares\n $fer = new TFerramentas(); // Ferramentas diversas\n $sicad = new TSicadDados(); // Ferramentas de acesso ao SICAD\n //Realiza definições iniciais de acesso\n $profile = TSession::getValue('profile'); //Profile da Conta do usuário\n if ($this->opm_operador==false) //Carrega OPM do usuário\n {\n //Confere se já foi carregado a OPM, senão carrega...ou se o ambiente for de desenvolvimento usa a OPM = 140\n $this->opm_operador = ($fer->is_dev()==true) ? 140 : $profile['unidade']['id'];\n }\n if (!$this->nivel_sistema || $this->config_load == false) //Carrega OPMs que tem acesso\n {\n $this->nivel_sistema = $fer->getnivel (get_class($this));//Verifica qual nível de acesso do usuário\n $this->listas = $sicad->get_OpmsRegiao($this->opm_operador);//Carregas as OPMs que o usuário administra\n $this->config = $fer->getConfig($this->sistema); //Busca o Nível de acesso que o usuário tem para a Classe\n $this->config_load = true; //Informa que configuração foi carregada\n }\n \n // Cria os Itens do Formulário\n $rgmilitar = new TEntry('rgmilitar');\n \n //Monta ComboBox com OPMs que o Operador pode ver\n //echo $this->nivel_sistema.'---'.$this->opm_operador;\n if ($this->nivel_sistema>=80) //Adm e Gestor\n {\n $criteria = null;\n }\n else if ($this->nivel_sistema>=50 ) //Nível Operador (carrega OPM e subOPMs)\n {\n $criteria = new TCriteria;\n //Se não há lista de OPM, carrega só a OPM do usuário\n $lista = ($this->listas['valores']!='') ? $this->listas['valores'] : $profile['unidade']['id'];\n $query = \"(SELECT DISTINCT id FROM g_geral.opm WHERE id IN (\".$lista.\"))\";\n $criteria->add (new TFilter ('id','IN',$query));\n }\n else if ($this->nivel_sistema<50) //nível de visitante (só a própria OPM)\n {\n $criteria = new TCriteria;\n $query = \"(SELECT DISTINCT id FROM g_geral.opm WHERE id IN (\".$this->opm_operador.\"))\";\n $criteria->add (new TFilter ('id','IN',$query));\n }\n $opm = new TDBCombo('opm','sicad','OPM','id','nome','nome',$criteria);\n \n $ativo = new TCombo('ativo');\n $lista_opm = new TSelect('lista_opm');\n $lista_slc = new TSelect('lista_slc');\n //Critério para os Turnos de Serviço (Deve-se excluir os ocultos e o item id=13)\n $criteria = new TCriteria; \n $criteria->add(new TFilter('oculto', '=', 'f'));\n $criteria->add(new TFilter('id', '!=', 13));\n $turno = new TDBCombo('turno','sicad','turnos','id','nome','nome',$criteria);\n \n $datainicial = new TDate('dataInicial');\n $datafinal = new TDate('dataFinal');\n $horaIncialOrdinario = new TEntry('horaInicialOrdinario');\n $opm_id_info = new TDBCombo('opm_id_info','sicad','OPM','id','sigla','sigla');\n $opm_info_atual = new TCombo('OPM_info_Atual');\n $diasExtra = new TEntry('diasExtra');\n $mesExtra = new TCombo('mesExtra');\n $anoExtra = new TCombo('anoExtra');\n $horaInicioExtra = new TEntry('horaInicioExtra');\n $horasTrabalhadas = new TEntry('horasTrabalhadas');\n $tipoExtra = new TCombo('tipoExtra');\n $afasta_id = new TDBCombo('afasta_id','sicad','afastamentos','id','nome','nome');\n $dtinicioaf = new TDate('dtinicioaf');\n $dtfimaf = new TDate('dtfimaf');\n $bgaf = new TEntry('bgaf');\n $anobgaf = new TEntry('anobgaf');\n \n //Formatar Itens\n $rgmilitar->setSize(80);\n $opm->setSize(300);\n $lista_opm->setSize(280,256);\n $lista_slc->setSize(280,256);\n $turno->setSize(200);\n $datainicial->setSize(80);\n $datafinal->setSize(80);\n $horaIncialOrdinario->setSize(50);\n $opm_id_info->setSize(150);\n $opm_info_atual->setSize(80);\n $diasExtra->setSize(200);\n $mesExtra->setSize(80);\n $anoExtra->setSize(80);\n $horaInicioExtra->setSize(50);\n $horasTrabalhadas->setSize(50);\n $tipoExtra->setSize(120);\n $afasta_id->setSize(150);\n $dtinicioaf->setSize(80);\n $dtfimaf->setSize(80);\n $bgaf->setSize(80);\n $anobgaf->setSize(80);\n $ativo->setSize(80);\n //Style\n $lista_opm->style = \"font-size: 12px;\";\n $lista_slc->style = \"font-size: 12px;\";\n\n //Mascaras\n $datainicial->setMask('dd-mm-yyyy');\n $datafinal->setMask('dd-mm-yyyy');\n $dtinicioaf->setMask('dd-mm-yyyy');\n $dtfimaf->setMask('dd-mm-yyyy');\n $horaIncialOrdinario->setMask('99:99');\n $horaInicioExtra->setMask('99:99');\n $horasTrabalhadas->setMask('99');\n\n //Dados\n $opm_info_atual->addItems($fer->lista_sim_nao());//($item);\n $opm_info_atual->setValue('N');\n $ativo->addItems($fer->lista_sim_nao());//($item);\n $ativo->setValue('N');\n //\n $item = array (\"S\"=>\"Remunerada\",\"N\"=>\"Administrativa\");\n $tipoExtra->addItems($item);\n $tipoExtra->setValue('N');\n //\n $fer = new TFerramentas;\n $mesExtra->addItems($fer->lista_meses());\n $anoExtra->addItems($fer->lista_anos());\n //Tips\n $rgmilitar->setTip('Preencha com o RG do Militar pretendido...');\n $opm->setTip('Selecione a OPM para que possa preencher o campo de Lista da OPM com os componentes da Unidade.');\n $lista_opm->setTip('Lista dos Militares pertencente à Unidade Selecionada acima.<br>'.\n 'Vale lembrar que esta lista é atualizada diáriamente, assim os que estão aqui reflete as listas do SICAD.<br>' .\n 'Outro ponto a se considerar é a possibilidade de selecionar vários PMs, para isso basta usar<br>'.\n 'as teclas Control (ctrl) ou shift (seta pra cima);');\n $lista_slc->setTip('Militares Selecionados. Todos que estão nesta lista serão afetados, quer por uma escala ou por afastamentos...');\n $turno->setTip('Selecione uma Escala conforme a necessidade.');\n $datainicial->setTip('Selecione a data inicial da Escala Ordinária.');\n $datafinal->setTip('Selecione a data final da Escala Ordinária');\n $horaIncialOrdinario->setTip('Informe a hora de inicio do primeiro turno da Escala Ordinária.');\n $opm_id_info->setTip('Selecione qual foi a OPM informante da Escala.<br>É útil quando o militar está prestando serviços em uma OPM diferente da sua.');\n $opm_info_atual->setTip('A unidade Informante é a Unidade Atual? Se SIM, irei substituir a unidade que por ventura está na ficha do militar pela que foi informada...');\n $diasExtra->setTip('Defina os dias que o militar trabalhou podendo ser:<br> - Um dia apenas (Ex: 1);<br>- Alguns dias separados por vírgula(Ex: 2,5,8);<br>- Um intervalo de dias ligados por traço (Ex: 2-10);<br>- Um misto de combinações (Ex: 1,3-5,8,15-25). ');\n $mesExtra->setTip('Mês que ocorreu o serviço extra.');\n $anoExtra->setTip('Ano que ocorreu o serviço extra.');\n $horaInicioExtra->setTip('Hora que o serviço extra iniciou.');\n $horasTrabalhadas->setTip('Quantas horas foram trabalhadas neste serviço extra.');\n $tipoExtra->setTip('Defina se a escala foi Administrativa (sem remuneração AC-4) ou Remunerada (com pagamento de AC-4).');\n $afasta_id->setTip('Qual tipo de afastamento o militar fez jus.');\n $dtinicioaf->setTip('Data inicial do afastamento.');\n $dtfimaf->setTip('Data final do afastamento.');\n $bgaf->setTip('Numero do BG onde foi publicado o afastamento(Opcional).');\n $anobgaf->setTip('Ano de publicação do BG de Afastamento (Opcional).');\n $ativo->setTip('Se desejar que os militares inativos façam parte da seleção, marque como SIM para seleciona-los.'.\n '<br>Caso troque esta opção, não haverá a limpeza dos já selecionados.');\n //Ações\n //$change_action = new TAction(array($this, 'onSelectOpm_old'));//Ação de Popular lista de PMs\n //$opm->setChangeAction($change_action);\n //$ativo->setChangeAction($change_action);\n \n //Controle de Nível\n if ($this->nivel_sistema<$this->config[$this->cfg_chg_opm])\n {\n $opm_id_info->setEditable(FALSE);\n $opm_info_atual->setEditable(FALSE);\n }\n //Botões\n //Seleciona PMs\n $addPM = new TButton('addPM');\n $addPM->setImage('fa:arrow-down black');\n $addPM->class = 'btn btn-primary btn-sm';\n $Action = new TAction(array($this, 'onSelectMilitar'));\n $addPM->setAction($Action);\n $addPM->setLabel('Seleciona');\n \n //Botão Gera Escala Ordinária\n $runOrd = new TButton('runOrd');\n $runOrd->setImage('fa:floppy-o red');\n $runOrd->class = 'btn btn-primary btn-sm';\n $Action = ($this->nivel_sistema>=$this->config[$this->cfg_ord]) ? new TAction(array($this, 'onGeraOrdinaria')) : new TAction(array($this, 'NoAcess'));\n $runOrd->setAction($Action);\n $runOrd->setLabel('Gera Escala');\n \n //Botão Gera Escala Extra\n $runExt = new TButton('runExt');\n $runExt->setImage('fa:floppy-o red');\n $runExt->class = 'btn btn-primary btn-sm';\n $Action = ($this->nivel_sistema>=$this->config[$this->cfg_ext]) ? new TAction(array($this, 'onGeraExtra')) : new TAction(array($this, 'NoAcess'));\n $runExt->setAction($Action);\n $runExt->setLabel('Gera Escala');\n \n //Botão Gera Afastamento\n $runAfa = new TButton('runAfa');\n $runAfa->setImage('fa:floppy-o red');\n $runAfa->class = 'btn btn-primary btn-sm';\n $Action = ($this->nivel_sistema>=$this->config[$this->cfg_afa]) ? new TAction(array($this, 'onGeraAfastamento')) : new TAction(array($this, 'NoAcess'));\n $runAfa->setAction($Action);\n $runAfa->setLabel('Gera Afastamento');\n \n //Botão Limpa Afastamento\n $runCls = new TButton('runCls');\n $runCls->setImage('fa:trash black');\n $runCls->class = 'btn btn-danger btn-sm';\n $Action = ($this->nivel_sistema>=$this->config[$this->cfg_cls_afa]) ? new TAction(array($this, 'onLimpaAfastamento')) : new TAction(array($this, 'NoAcess'));\n $runCls->setAction($Action);\n $runCls->setLabel('Limpa Afastamento');\n \n //Botão Verifica Escala\n $runVer = new TButton('runVer');\n $runVer->setImage('fa:eye black');\n $runVer->class = 'btn btn-info btn-sm';\n $Action = new TAction(array($this, 'onListaEscala'));\n $runVer->setAction($Action);\n $runVer->setLabel('Ver Escala');\n \n //Botão limpa Escalas\n $runLmp = new TButton('runLmp');\n $runLmp->setImage('fa:trash black');\n $runLmp->class = 'btn btn-danger btn-sm';\n $Action = ($this->nivel_sistema>=$this->config[$this->cfg_cls_esc]) ? new TAction(array($this, 'onLimpaEscala')) : new TAction(array($this, 'NoAcess'));\n $runLmp->setAction($Action);\n $runLmp->setLabel('Limpa Escala');\n \n //Botão Carrega OPM na Lista da OPM\n $runOpm = new TButton('runOpm');\n $runOpm->setImage('fa:retweet');\n $runOpm->class = 'btn btn-success btn-sm';\n $Action = new TAction(array($this, 'onSelectOpm_old'));\n $runOpm->setAction($Action);\n $runOpm->setLabel('Carrega OPM');\n \n $table = new TTable();\n $table-> border = '0';\n $table-> cellpadding = '4';\n $table-> style = 'border-collapse:collapse; text-align: center;';\n\n //Monta selecionador\n $hbox1 = new THBox;\n $hbox1->addRowSet( new TLabel('RG:'),$rgmilitar,$addPM,new TLabel('Unidade:'),$opm,new TLabel('Seleciona Inativos?'),$ativo,$runOpm);\n $frame1 = new TFrame;\n $frame1->setLegend('Selecione os PMs ou a OPM');\n $frame1->add($hbox1);\n //Monta Labels das tabelas de distribuição\n $title4 = new TLabel('Listagem da OPM');\n $title4->setFontSize(12);\n $title4->setFontFace('Arial');\n $title4->setFontColor('black');\n $title4->setFontStyle('b');\n \n $title3 = new TLabel('Comandos');\n $title3->setFontSize(12);\n $title3->setFontFace('Arial');\n $title3->setFontColor('black');\n $title3->setFontStyle('b');\n \n $title2 = new TLabel('PMs Selecionados');\n $title2->setFontSize(12);\n $title2->setFontFace('Arial');\n $title2->setFontColor('black');\n $title2->setFontStyle('b');\n \n $title1 = new TLabel('Gestão da Escala');\n $title1->setFontSize(12);\n $title1->setFontFace('Arial');\n $title1->setFontColor('black');\n $title1->setFontStyle('b');\n \n //Botões de Serviço\n $add = new TButton('add_opm');\n $del = new TButton('del_opm');\n $cls = new TButton('clear');\n $ret = new TButton('return');\n \n //Tabelas Auxiliares de Cadastro\n $table_ord = new TTable;//Escalas Ordinárias\n $table_ext = new TTable;//Escalas Extras\n $table_afa = new TTable;//Afastamentos\n\n //Cria no Notebook \n $notebook = new TNotebook(200, 220);\n // Crias as Abas no notebook\n $notebook->appendPage('Ordinária' , $table_ord);\n $notebook->appendPage('Extra' , $table_ext);\n $notebook->appendPage('Afastamento', $table_afa);\n\n //Itens: Escala Ordinária\n $table_ord->addRowSet(array(new TLabel('Escala'),$turno));\n $table_ord->addRowSet(array(new TLabel('De'),$datainicial,new TLabel('A'),$datafinal));\n $table_ord->addRowSet(array(new TLabel('Hora Inicial'),$horaIncialOrdinario));\n $table_ord->addRowSet(array(new TLabel('OPM Informante'),$opm_id_info));\n $table_ord->addRowSet(array(new TLabel('Usar Informante com Atual'),$opm_info_atual));\n $table_ord->addRowSet(array($runLmp,$runOrd));\n //Itens: Escala Extra\n $table_ext->addRowSet(array(new TLabel('Dias'),$diasExtra));\n $table_ext->addRowSet(array(new TLabel('Mês'),$mesExtra,new TLabel('Ano'),$anoExtra));\n $table_ext->addRowSet(array(new TLabel('Hr Início'),$horaInicioExtra,new TLabel('Hrs. Trab.'),$horasTrabalhadas));\n $table_ext->addRowSet(array(new TLabel('Tipo Escala'),$tipoExtra));\n $table_ext->addRowSet($runExt);\n //Itens: Afastamento\n $table_afa->addRowSet(array(new TLabel('Afastamento'),$afasta_id));\n $table_afa->addRowSet(array(new TLabel('De'),$dtinicioaf,new TLabel('A'),$dtfimaf));\n $table_afa->addRowSet(array(new TLabel('BG'),$bgaf,new TLabel('/'),$anobgaf));\n $table_afa->addRowSet(array($runCls,$runAfa));\n\n //Ações\n $add->setAction(new TAction(array($this, 'onAddPMSelect')));\n $del->setAction(new TAction(array($this, 'onDelPMSelect')));\n $cls->setAction(new TAction(array($this, 'onClearSelect')));\n $ret->setAction(new TAction(array($this, 'onReturn')));\n //Labels\n $add->setLabel('Adiciona');\n $del->setLabel('Remove');\n $cls->setLabel('Limpa');\n $ret->setLabel('Volta ao Gerenciador');\n //Icones\n $add->setImage('fa:plus green');\n $del->setImage('fa:minus red');\n $cls->setImage('fa:file-o black');\n $ret->setImage('fa:backward black');\n //Classes\n $ret->class = 'btn btn-warning';\n //PopUps\n if ($this->popAtivo)\n {\n $addPM->popover = 'true';\n $addPM->popside = 'top';\n $addPM->poptitle = 'Seleciona Militar';\n $addPM->popcontent = 'Clique aqui ou tecle ENTER para selecionar o militar.';\n //\n $add->popover = 'true';\n $add->popside = 'top';\n $add->poptitle = 'Adiciona Seleção de Militares';\n $add->popcontent = 'Adiciona o(s) Militar(es) selecionado(s) da caixa Lista da OPM.';\n //\n $del->popover = 'true';\n $del->popside = 'top';\n $del->poptitle = 'Remove Seleção de Militares';\n $del->popcontent = 'Remove o(s) Militar(es) selecionado(s) da caixa Selecionados.';\n //\n $cls->popover = 'true';\n $cls->popside = 'top';\n $cls->poptitle = 'Limpa toda Seleção de Militares';\n $cls->popcontent = 'Remove TODOS os Militares selecionados da caixa Selecionados.';\n //\n $ret->popover = 'true';\n $ret->popside = 'top';\n $ret->poptitle = 'Retorno à Tela de Gerenciamento';\n $ret->popcontent = 'Retorna para a Tela de Gerenciamento do Banco de Horas.<br>A lista e Militares já selecionados permanecerá até o fechamento do sistema.';\n //\n $runOrd->popover = 'true';\n $runOrd->popside = 'top';\n $runOrd->poptitle = 'Gera Escala Ordinária.';\n $runOrd->popcontent = 'São campos necessários:<br>- Turno;<br>- Data inicial e final;<br>- Hora de Início da Escala.';//.\n //\n $runExt->popover = 'true';\n $runExt->popside = 'top';\n $runExt->poptitle = 'Gera Escala Extra';\n $runExt->popcontent = 'São Campos necessários:<br>- Dias (preencher com um ou mais);<br>- Mês e Ano;<br>- Hora Início;<br>'.\n '- Horas Trabalhadas;<br>- Tipo Escala.';\n //\n $runCls->popover = 'true';\n $runCls->popside = 'top';\n $runCls->poptitle = 'Limpa Afastamentos e Restrições (apenas)';\n $runCls->popcontent = 'Use os campos acima como filtro.';\n //\n $runAfa->popover = 'true';\n $runAfa->popside = 'top';\n $runAfa->poptitle = 'Gera Afastamentos e Restrições';\n $runAfa->popcontent = 'São Campos necessários:<br>- Afastamento;<br>- O intervalo de datas.';\n //\n $runVer->popover = 'true';\n $runVer->popside = 'top';\n $runVer->poptitle = 'Verifica a Escala';\n $runVer->popcontent = 'É necessário escolher um militar (um apenas) quer no Campo Lista da OPM quer no Campo Selecionados.';\n //\n $runLmp->popover = 'true';\n $runLmp->popside = 'top';\n $runLmp->poptitle = 'Limpa as Escalas e Afastamentos';\n $runLmp->popcontent = 'Limpa Escalas (ordinária e Extra) e Afastamentos dos militares Selecionados e no intervalo de datas';\n \n $runOpm->popover = 'true';\n $runOpm->popside = 'top';\n $runOpm->poptitle = 'Carrega os militares da Unidade';\n $runOpm->popcontent = 'Carrega os Militares da unidade escolhida filtrando os ativos e inativos conforme se escolhe Sim ou Não no campo Seleciona inativos:';\n }\n //Tabela com Comandos\n $frame_tempo = new TFrame();\n $hboxc = new THBox;\n $hboxc->addRowSet($add);\n $hboxc->addRowSet($del);\n $hboxc->addRowSet($cls);\n $hboxc->addRowSet($runVer);\n $hboxc->addRowSet($ret);\n\n $frame1->add($hboxc);\n $frame1->style = \"width: 100%; display: table-cell; vertical-align: top; text-align: center;\";\n\n //Frame com Lista da OPM\n $vbox2 = new TVBox;\n $frame4 = new TFrame(260,330);\n $frame4->setLegend('Lista de Militares da OPM');\n $frame4->add($lista_opm);\n $frame4->style = \"width: 280px; display: table-cell; vertical-align: top;\";\n $vbox2->add($frame4);\n //Frame de Seleção\n $vbox4 = new TVBox;\n $frame6 = new TFrame(260,330);\n $frame6->setLegend('Militares Selecionados');\n $frame6->add($lista_slc);\n $frame6->style = \"width: 280px; display: table-cell; vertical-align: top;\";\n $vbox4->add($frame6);\n //Frame de Geração\n $vbox5 = new TVBox;\n $frame3 = new TFrame(280,330);\n $frame3->setLegend('Funções de Geração');\n $frame3->add($notebook);\n $frame3->style = \"width: 280px; display: table-cell; vertical-align: top;\";\n $vbox5->add($frame3);\n \n $frame2 = new TFrame;\n $frame2->style = \"width: 100%; display: table-cell; vertical-align: top;\";\n $frame2->add($vbox2);\n $frame2->add($vbox4);\n $frame2->add($vbox5);\n\n $this->form->setFields(array($rgmilitar,$opm,$addPM,$lista_opm,$lista_slc,$opm_info_atual,$opm_id_info,$turno,\n $datafinal,$datainicial,$dtinicioaf,$dtfimaf,$horaIncialOrdinario,$horaInicioExtra,$horasTrabalhadas,\n $diasExtra,$mesExtra,$anoExtra,$bgaf,$anobgaf,$tipoExtra,$afasta_id,$ativo,\n $add,$del,$cls,$ret,$runOrd,$runExt,$runAfa,$runCls,$runVer,$runLmp,$runOpm)); \n // vertical box container\n $container = new TVBox;\n $container->style = 'width: 90%';\n $container->add(new TXMLBreadCrumb('menu.xml', 'bdhManagerForm'));\n $container->add($frame1);\n //$container->add($frame_tempo);\n $container->add($frame2);\n $this->form->add($container);\n\n //parent::add($container);\n parent::add($this->form);\n if ($opm->getValue())\n {\n self::onSelectOpm_old(array('opm'=>$opm->getValue(),'ativo'=>$ativo->getValue()));\n }\n $lista_slc = TSession::getValue(__CLASS__.'_lista_slc');\n self::onLoadPMSelect();\n self::popula_escalas();\n\n }", "public function createComponentBuyForm(){ \n $form = new Nette\\Application\\UI\\Form;\n \n $session = $this->hlp->sess(\"listing\");\n $listingID = $session->listingDetails->id;\n $postageOptionsDB = $this->listings->getPostageOptions($listingID);\n $postageOptions = array();\n $postageIDs = array();\n \n foreach($postageOptionsDB as $option){\n array_push($postageOptions, $option[\"option\"] . \" +\" . $option[\"price\"] . \"Kč\");\n array_push($postageIDs, $option[\"postage_id\"]);\n }\n \n asort($postageIDs);\n \n //store for later check, that selectbox was not maliciously altered\n $session->postageIDs = $postageIDs;\n \n $form->addSelect(\"postage\", \"Možnosti zásilky:\")->setItems($postageOptions, FALSE);\n // ->addRule($form::FILLED, \"Vyberte prosím některou z možností zásilky.\");\n \n $form->addText('quantity', 'Množství:')\n ->addRule($form::FILLED, \"Vyplňte prosím množství.\")\n ->addRule($form::INTEGER, \"Množství musí být číslo\")\n ->addRule($form::RANGE, \"Množství 1 až 99 maximum.\", array(1, 99));\n \n $form->addSubmit(\"koupit\", \"Koupit\");\n \n $form->onSuccess[] = array($this, \"buyFormOnSuccess\");\n $form->onValidate[] = array($this, \"buyFormValidate\");\n \n return $form;\n }", "protected function addElements() \n {\n \n // Add \"usuario\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'nombre',\n 'options' => [\n 'label' => 'Usuario Adicional',\n ],\n ]);\n \n \n // Add \"telefono\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'telefono',\n 'options' => [\n 'label' => 'Teléfono',\n ],\n ]);\n \n // Add \"email\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'email',\n 'options' => [\n 'label' => 'Mail',\n ],\n ]);\n \n // Add \"usuario\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'skype',\n 'options' => [\n 'label' => 'Skype',\n ],\n ]);\n \n // Add \"id\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'id',\n 'options' => [\n 'label' => 'id',\n ],\n ]);\n \n \n // Add the Submit button\n $this->add([\n 'type' => 'submit',\n 'name' => 'submit',\n 'attributes' => [\n 'value' => 'Create'\n ],\n ]);\n\n }", "public function form(){\n\n }", "protected function form()\n {\n $form = new Form(new StationBannerImage());\n\n $form->select('station_id', __('測站'))->options(Station::all()->pluck('station_name', 'id'))->rules('required');\n $form->image('image', __('輪播圖'))->help('圖片尺寸:2297*1583')->rules('required');\n $form->url('url', __('連結'))->placeholder('例:http://www.cwb.gov.tw');\n $form->text('order', __('排序'));\n $form->datetime('valid_at', __('有效日期'))->default(date('Y-m-d H:i:s'));\n $form->text('mod_user', __('異動人員'))->default(Admin::user()->name)->readonly();\n $form->saving(function (Form $form) {\n $form->mod_user = Admin::user()->name;\n });\n\n return $form;\n }", "protected function form()\n {\n $form = new Form(new Category());\n\n $parents = Category::where('parent_id', 0)->get()->toArray();\n $select_ = array_prepend($parents, ['id' => 0, 'name_cn' => '顶级']);\n $select_array = array_column($select_, 'name_cn', 'id');\n //创建select\n $form->select('parent_id', '上级')->options($select_array);\n\n $form->text('name_cn', __('Name cn'))->rules('required');\n $form->text('name_en', __('Name en'))->rules('required');\n $form->multipleImage('top_image', __('置顶图'))->sortable()->removable()->help('按数字大小正序长宽建议比列(178:174|177:87),请按照建议比例顺序上传图片');\n $form->image('image', __('Image'))->help('按数字大小正序长宽建议比列(710:295)');\n $form->text('description', __('Description'))->rules('required');\n $form->ueditor('content', __('Content'));\n $states = [\n 'on' => ['value' => 1, 'text' => '是', 'color' => 'success'],\n 'off' => ['value' => 0, 'text' => '否', 'color' => 'danger'],\n ];\n $form->switch('is_top', __('Is top'))->states($states)->default(0);\n $form->number('sort_order', __('Sort order'))->default(99);\n\n return $form;\n }", "function form_mostrar($conp,$nreg,$pg,$bo,$filtro,$arc,$pefedi,$pefeli){\n\t\t$mempresa = new mempresa();\n\t\t$pa = new mpaginacion();\n\t\t$txt = '';\n\t\t//Creamos el cuadro de buscar (filtros-Busquedas)\n\t\t$txt .= \"<table>\";\n\t\t\t//Una Fila\n\t\t\t$txt .= \"<tr>\";\n\t\t\t\t//1ra Columna - Formulario buscar\n\t\t\t\t$txt .= '<td>';\n\t\t\t\t$txt .= '<form id=\"formfil\" name=\"frmfil\" method=\"GET\" action=\"'.$arc.'\" class=\"txtbold\">';\n\t\t\t\t$txt .= '<input name=\"pg\" type=\"hidden\" value=\"'.$pg.'\" />';\n\t\t\t$txt .= '<input class=\"search-box\" type=\"text\" name=\"filtro\" value=\"'.$filtro.'\" placeholder=\"Nombre De Empresa\"\n\t\t\t\t\tonChange=\"this.form.submit();\">';\n\t\t\t\t\t$txt .= '<label for=\"search-box\"><span class=\"glyphicon fas fa-search search-icon\"></span></label>';\n\t\t\t\t$txt .= '</form>';\n\t\t\t$txt .= '</td>';\n\t\t\t\t//2da Columna control de paginacion\n\t\t\t\t$txt .= \"<td align='right' style='padding-left: 10px;'>\";\n\t\t\t\t\t$bo = \"<input type='hidden' name='filtro' value='\".$filtro.\"' />\";\n\t\t\t\t\t//Llamamos el metodo de contar la cantida de paginas\n\t\t\t\t\t$txt .= $pa->spag($conp,$nreg,$pg,$bo,$arc);\n\t\t\t\t\t//Llamar los datos para completar la paginacion\n\t\t\t\t\t$result = $mempresa->sel_empresa($filtro,$pa->rvalini(),$pa->rvalfin());\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t//Cierre Fila\n\t\t\t$txt .= \"</tr>\";\n\t\t$txt .= \"</table>\";\n\t\t\n\t\tif($result){\n\t\t$txt .= '<div class=\"cuad1\" style=\"width: 90%; \">';\n\t\t\t$txt .= '<table1 width=\"100%\" cellspacing=\"0px\" align=\"center\">';\n\t\t\t\t\t\t\t$txt .= \"<table class='table table-hover'>\";\n\t\t\t\t//Inicio de la (Cabecera_Tb)\t\t\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Foto';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Empresa';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre de la (Cabecera_Tb)\n\t\t\t\tforeach ($result as $f) {\n\t\t\t\t//Inicio ROW - Datos de la tabla\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\n\t\t\t\t\t$txt .= '<img src=\"'.$f['logemp'].'\" width=\"25px\" />';\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= \"<td class='active lefi'>\";\n\t\t\t\t\t$txt .= \"<span style='font-size: 20px;'><strong>\".$f['nitemp'].\" - \".$f['razsocialemp'].\"</strong></span>\";\n\t\t\t\t\t$txt .= \"<br><strong>Sede: </strong>\".$f['sedecentemp'];\n\t\t\t\t\t$txt .= \"<br><strong>Email: </strong>\".$f['emailemp'];\n\t\t\t\t\t$txt .= \"<br><strong>Telefono: </strong>\".$f['telemp'];\n\t\t\t\t\t$txt .= \"</td>\";\n\t\t\t\t\t\t//ICONOS-MOdificar (Boton)\n\t\t\t\t\t\t$txt .= \"<td class='warning' align='center'>\";\n\t\t\t\t\t\t$txt .= \"<a href='home.php?pg=002&idemp=\".$f['idemp'].\"'><ul class='social-icons icon-circle icon-zoom list-unstyled list-inline'><li><i class='fas fa-pen' title='Actualizar'></i></li></ul></a>\";\n\t\t\t\t\t\t//ICONOS-Eliminar (Boton)\n\t\t\t\t\t\t$txt .= \"<a href='home.php?pg=002&del=\".$f['idemp'].\"'><ul class='social-icons icon-circle icon-zoom list-unstyled list-inline'><li><i class='fas fa-times' title='Eliminar'></i></li></ul></td></a>\";\t\n\t\t\t\t\t\t$txt .= \"</td>\";\n\n\t\t\t\t//Cierre ROW - Datos de la tabla\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t}\n\t\t\t$txt .= '</table>';\n\t\t\t$txt .= '<BR>';\n\t\t\t\t\t$txt .= '<BR>';\n\t\t\t\t\t$txt .= '<BR>';\n\t\t$txt .= '</div>';\n\t\t}else{\n\t\t$txt .= '<div class=\"cuad\" style=\"width: 90%;\">';\n\t\t$txt .= '<h3>No existen datos registrado en la base de datos...</h3>';\n\t\t$txt .= '</div>';\t\t\n\t}\n\t\techo $txt;\n\t}", "protected function form()\n {\n $form = new Form(new Goods);\n $form->display('id', 'ID');\n $form->text('name', '名称');\n $arr = (new AdminModel('goods_type'))->getAll('',['type','id']);\n $array = [];\n foreach ($arr as $key => $value) {\n\n $array[$value['id']] = $value['type'];\n }\n $form->select('type', '分类')->options($array);\n $form->text('stock', '库存');\n $form->text('price', '积分价格');\n $form->textarea('desc', '详情');\n $form->switch('status', '是否上架')->value(0);\n $form->image('cover','封面图')->uniqueName()->move('goods_img')->options(['overwriteInitial' => true]);\n $form->multipleImage('image','内容图片')->help('请上传多张内容图')->removable()->uniqueName()->move('goods_img')->options(['overwriteInitial' => true]);\n $form->footer(function ($footer) {\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n\n });\n return $form;\n }", "function form_mostrar($conp,$nreg,$pg,$bo,$filtro,$arc){\n\t\t$mtipo_documento = new mtipo_documento();\n\t\t //Instanciamos en [$pa] la clase mpagina\n\t\t$pa = new mpaginacion();\n\t\t$txt = '';\n\t\t//Creamos el cuadro de buscar (filtros-Busquedas)\n\t\t$txt .= \"<table>\";\n\t\t\t//Una Fila\n\t\t\t$txt .= \"<tr>\";\n\t\t\t\t//1ra Columna - Formulario buscar\n\t\t\t\t$txt .= \"<td>\";\n\t\t\t\t\t$txt .= \"<form name='forfil' method='GET' action='\".$arc.\"'>\";\n\t\t\t\t\t\t$txt .= \"<input type='hidden' name='pg' value='\".$pg.\"' />\";\n\t\t\t\t\t\t//Campo de texto para escribir el dato a buscar\n\t\t\t\t\t\t$txt .= \"Buscar:<input type='text' name='filtro' value='\".$filtro.\"' placeholder='Ingrese El Nombre Del Empleado' onChange= 'this.form.submit();' />\";\n\t\t\t\t\t$txt .= \"</form>\";\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t\t//2da Columna control de paginacion\n\t\t\t\t$txt .= \"<td align='right' style='padding-left: 10px;'>\";\n\t\t\t\t\t$bo = \"<input type='hidden' name='filtro' value='\".$filtro.\"' />\";\n\t\t\t\t\t//Llamamos el metodo de contar la cantida de paginas\n\t\t\t\t\t$txt .= $pa->spag($conp,$nreg,$pg,$bo,$arc);\n\t\t\t\t\t//Llamar los datos para completar la paginacion\n\t\t\t\t\t$result = $mtipo_documento->sel_tipo_documento($filtro,$pa->rvalini(),$pa->rvalfin());\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t//Cierre Fila\n\t\t\t$txt .= \"</tr>\";\n\t\t$txt .= \"</table>\";\n\t\tif ($result) {\n\n\t\t$txt .= '<div class=\"cuad1\" style=\"width: 90%;\">';\n\t\t\t$txt .= '<table width=\"100%\" cellspacing=\"0px\" align=\"center\">';\n\t\t\t\t//Inicio de la (Cabecera_Tb)\t\t\t\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'id_tpdoc(s)';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Tipo de Documento';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'extencion';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre de la (Cabecera_Tb)\n\t\t\t\tforeach ($result as $f) {\n\t\t\t\t//Inicio ROW - Datos de la tabla\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"id_tpdoc\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"nom_tpdoc\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"extencion\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t//ICONOS-MOdificar (Boton)\n\t\t\t\t\t$txt .= '<td align=\"center\"><a href=\"home.php?pg=010&id_tpdoc='.$f[\"id_tpdoc\"].'\">\n\t\t\t\t\t\t<img src=\"img/actua.png\" title=\"Actualizar\"</a></td>';\n\t\t\t\t\t//ICONOS-Eliminar (Boton)\n\t\t\t\t\t$txt .= '<td align=\"center\"><a href=\"home.php?pg=010&del='.$f[\"id_tpdoc\"].'\">\n\t\t\t\t\t\t<img src=\"img/elemi.png\" title=\"Eliminar\"</a></td>';\n\t\t\t\t//Cierre ROW - Datos de la tabla\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t}\n\t\t\t$txt .= '</table>';\n\t\t$txt .= '</div>';\n\t\t}else{\n\t\t$txt.= '<div class=\"cuad\" style=\" width\": 90%;\">';\n\t\t $txt.= '<h3> No existen datos registrado en la base de datos...</h3>';\n\t\t $txt.='</div>';\n }\n\t\techo $txt;\n\t}", "function minorite_container($variables) {\n $element = $variables['element'];\n\n // Special handling for form elements.\n if (isset($element['#array_parents'])) {\n // Add the 'rw' and 'form-rw' class.\n $element['#attributes']['class'][] = 'rw';\n\n switch ($element['#type']) {\n case 'actions':\n break;\n\n default:\n $element['#attributes']['class'][] = 'form-rw';\n }\n }\n\n // Add the grid when specified.\n if (isset($element['#grid'])) {\n $element['#children'] = '<p class=\"' . $element['#grid'] . '\">' . $element['#children'] . '</p>';\n }\n\n return '<div' . drupal_attributes($element['#attributes']) . '>' . $element['#children'] . '</div>';\n}", "public function CreateForm();" ]
[ "0.6700675", "0.6567247", "0.6557318", "0.6434189", "0.63164485", "0.62855655", "0.62853134", "0.6205848", "0.62014663", "0.6183196", "0.61718696", "0.6167281", "0.6131445", "0.6114598", "0.60905504", "0.60885453", "0.6073631", "0.60344213", "0.60344213", "0.6029508", "0.60127455", "0.59842736", "0.59819716", "0.5964958", "0.5940188", "0.59244335", "0.5923313", "0.5916414", "0.58974576", "0.589464", "0.5894634", "0.5892194", "0.5890265", "0.5885777", "0.58814466", "0.5863495", "0.5859524", "0.58545893", "0.58545893", "0.5843833", "0.58317006", "0.58225805", "0.5810615", "0.5806945", "0.58048475", "0.5802429", "0.579424", "0.57915264", "0.5787401", "0.5775047", "0.5773461", "0.57445747", "0.5742641", "0.5734824", "0.57284385", "0.5700556", "0.56961805", "0.56920326", "0.5690007", "0.5683306", "0.5682545", "0.5681737", "0.5675636", "0.56737316", "0.56691206", "0.56690866", "0.56690866", "0.56690866", "0.56690866", "0.56690866", "0.565376", "0.56416315", "0.563947", "0.5637007", "0.5634377", "0.56337917", "0.5633754", "0.56297123", "0.56231093", "0.56183505", "0.56173867", "0.56151414", "0.56089616", "0.5606368", "0.5598492", "0.55955166", "0.5589178", "0.55885506", "0.55871147", "0.5583455", "0.5580765", "0.5578952", "0.5575928", "0.55753535", "0.55737704", "0.556546", "0.55637544", "0.55565166", "0.555473", "0.5546175", "0.5542052" ]
0.0
-1
Pridano kvuli kontejnerum Sets userspecific option. Common options: 'rendered' indicate if method getControl() have been called 'required' indicate if ':required' rule has been applied 'description' textual or Html object description (recognized by ConventionalRenderer)
public function setOption($key, $value) { if ($value === NULL) { unset($this->options[$key]); } else { $this->options[$key] = $value; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCustomOption() {\n // Add the boolean field handler to the test view.\n $view = Views::getView('test_view');\n $view->setDisplay();\n\n $view->displayHandlers->get('default')->overrideOption('fields', [\n 'age' => [\n 'id' => 'age',\n 'table' => 'views_test_data',\n 'field' => 'age',\n 'relationship' => 'none',\n 'plugin_id' => 'boolean',\n ],\n ]);\n $view->save();\n\n $this->executeView($view);\n\n $custom_true = 'Yay';\n $custom_false = 'Nay';\n\n // Set up some custom value mappings for different types.\n $custom_values = [\n 'plain' => [\n 'true' => $custom_true,\n 'false' => $custom_false,\n 'test' => 'assertStringContainsString',\n ],\n 'allowed tag' => [\n 'true' => '<p>' . $custom_true . '</p>',\n 'false' => '<p>' . $custom_false . '</p>',\n 'test' => 'assertStringContainsString',\n ],\n 'disallowed tag' => [\n 'true' => '<script>' . $custom_true . '</script>',\n 'false' => '<script>' . $custom_false . '</script>',\n 'test' => 'assertStringNotContainsString',\n ],\n ];\n\n // Run the same tests on each type.\n foreach ($custom_values as $type => $values) {\n $options = [\n 'options[type]' => 'custom',\n 'options[type_custom_true]' => $values['true'],\n 'options[type_custom_false]' => $values['false'],\n ];\n $this->drupalGet('admin/structure/views/nojs/handler/test_view/default/field/age');\n $this->submitForm($options, 'Apply');\n\n // Save the view.\n $this->drupalGet('admin/structure/views/view/test_view');\n $this->submitForm([], 'Save');\n\n $view = Views::getView('test_view');\n $output = $view->preview();\n $output = \\Drupal::service('renderer')->renderRoot($output);\n $this->{$values['test']}($values['true'], (string) $output, new FormattableMarkup('Expected custom boolean TRUE value %value in output for %type', ['%value' => $values['true'], '%type' => $type]));\n $this->{$values['test']}($values['false'], (string) $output, new FormattableMarkup('Expected custom boolean FALSE value %value in output for %type', ['%value' => $values['false'], '%type' => $type]));\n }\n }", "public function testCustomOptionTemplate() {\n // Install theme to test with template system.\n \\Drupal::service('theme_installer')->install(['views_test_theme']);\n\n // Set the default theme for Views preview.\n $this->config('system.theme')\n ->set('default', 'views_test_theme')\n ->save();\n $this->assertEquals('views_test_theme', $this->config('system.theme')->get('default'));\n\n // Add the boolean field handler to the test view.\n $view = Views::getView('test_view');\n $view->setDisplay();\n\n $view->displayHandlers->get('default')->overrideOption('fields', [\n 'age' => [\n 'id' => 'age',\n 'table' => 'views_test_data',\n 'field' => 'age',\n 'relationship' => 'none',\n 'plugin_id' => 'boolean',\n ],\n ]);\n $view->save();\n\n $this->executeView($view);\n\n $custom_true = 'Yay';\n $custom_false = 'Nay';\n\n // Set up some custom value mappings for different types.\n $custom_values = [\n 'plain' => [\n 'true' => $custom_true,\n 'false' => $custom_false,\n 'test' => 'assertStringContainsString',\n ],\n 'allowed tag' => [\n 'true' => '<p>' . $custom_true . '</p>',\n 'false' => '<p>' . $custom_false . '</p>',\n 'test' => 'assertStringContainsString',\n ],\n 'disallowed tag' => [\n 'true' => '<script>' . $custom_true . '</script>',\n 'false' => '<script>' . $custom_false . '</script>',\n 'test' => 'assertStringNotContainsString',\n ],\n ];\n\n // Run the same tests on each type.\n foreach ($custom_values as $type => $values) {\n $options = [\n 'options[type]' => 'custom',\n 'options[type_custom_true]' => $values['true'],\n 'options[type_custom_false]' => $values['false'],\n ];\n $this->drupalGet('admin/structure/views/nojs/handler/test_view/default/field/age');\n $this->submitForm($options, 'Apply');\n\n // Save the view.\n $this->drupalGet('admin/structure/views/view/test_view');\n $this->submitForm([], 'Save');\n\n $view = Views::getView('test_view');\n $output = $view->preview();\n $output = \\Drupal::service('renderer')->renderRoot($output);\n $this->{$values['test']}($values['true'], (string) $output, new FormattableMarkup('Expected custom boolean TRUE value %value in output for %type', ['%value' => $values['true'], '%type' => $type]));\n $this->{$values['test']}($values['false'], (string) $output, new FormattableMarkup('Expected custom boolean FALSE value %value in output for %type', ['%value' => $values['false'], '%type' => $type]));\n\n // Assert that we are using the correct template.\n $this->assertStringContainsString('llama', (string) $output);\n }\n }", "public function setupOptions() {\n $this->data = array('' => '') + $this->data;\n\n if (!isset($this->htmlOptions['class'])) {\n $this->htmlOptions['class'] = '';\n }\n\n // Include the base css if required\n if ($this->includeBaseCss) {\n\n if (stripos($this->htmlOptions['class'], 'yii-selectize') === false) {\n $this->htmlOptions['class'] .= ' yii-selectize';\n }\n\n // Add the full width class if fullWidth option is set to true\n if ($this->fullWidth && stripos($this->htmlOptions['class'], 'full-width') === false) {\n $this->htmlOptions['class'] .= ' full-width';\n }\n } else if ($this->fullWidth) { // if full with is required but the base css is not included\n if (!isset($this->htmlOptions['style'])) {\n $this->htmlOptions['style'] = '';\n }\n\n // we add the style attribute\n if (stripos($this->htmlOptions['style'], 'width:') === false) {\n $this->htmlOptions['style'] .= ' width: 100%;';\n }\n }\n\n // If the placeholder property is set we'll overwrite the htmlOptions attribute\n if (!empty($this->placeholder)) {\n $this->htmlOptions['placeholder'] = $this->placeholder;\n }\n\n // If the multiple property is set we'll overwrite the htmlOptions attribute\n if (!empty($this->multiple)) {\n $this->htmlOptions['multiple'] = $this->multiple;\n }\n\n // Set the selected attributed to the given options\n if (!empty($this->selectedValues)) {\n foreach ($this->selectedValues as $valueId) {\n $this->htmlOptions['options'][$valueId]['selected'] = true;\n }\n }\n\n }", "function form_init_elements()\r\n {\r\n parent::form_init_elements() ;\r\n\r\n $override = new FECheckBox('Override Z0 Record Validation') ;\r\n $this->add_element($override) ;\r\n }", "public function setupControl()\n\t{\n\t\t$this->addText('referenceNumber', 'Reference number:');\n\t\t$this->addSelect('priority', 'Priority:', PriorityEnum::getOptions());\n\t\t$this->addTextArea('symptoms', 'Symptoms:', 40, 8)\n\t\t\t->addRule(Form::FILLED, 'Symptoms are required.');\n\t\t$this->addText('problemOwner', 'Problem owner:');\n\t\t$this->addSelect('status', 'State:', array(\n\t\t\tOperationProblem::STATUS_NEW => 'new',\n\t\t\tOperationProblem::STATUS_INVESTIGATED => 'investigated',\n\t\t\tOperationProblem::STATUS_RESOLVED => 'resolved',\n\t\t\tOperationProblem::STATUS_CLOSED => 'closed'\n\t\t));\n\n\t\t$this->addSelect('category', 'Category:', array('' => $this->noCategoryText) + $this->getCategoriesOptions());\n\n\t\t$this->addTextArea('onEventRaw', 'onEvent:');\n\n\t\t$this->addSubmit('save', 'Save problem');\n\n\t\t$this->onValidate[] = $this->onValidateForm;\n\t}", "function option_definition() {\r\n $options = parent::option_definition();\r\n $options['allow']['contains']['expose_imagestyle'] = array('default' => FALSE);\r\n\r\n return $options;\r\n }", "abstract function fields_options();", "public function init()\n {\n $this->addElement('select', 'personal_title', array(\n 'label' => 'Title',\n 'required' => true,\n 'multiOptions' => array(\n // This value must be empty to force a validation failure\n '' => 'Not Known',\n 'Mr' => 'Mr',\n 'Ms' => 'Ms',\n 'Mrs' => 'Mrs',\n 'Miss' => 'Miss',\n 'Dr' => 'Dr',\n 'Prof' => 'Professor',\n 'Sir' => 'Sir'\n ),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please select the title',\n 'notEmptyInvalid' => 'Please select a valid title'\n )\n )\n )\n ),\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n \n //First name entry\n $this->addElement('text', 'first_name', array(\n 'label' => 'First name',\n 'required' => true,\n 'filters' => array('StringTrim'),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter a first name'\n )\n )\n )\n ),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'data-required' => 'required',\n 'data-validate' => 'validate',\n 'data-type' => 'name',\n 'class' => 'form-control',\n )\n ));\n \n //Middle name entry\n $this->addElement('text', 'middle_name', array(\n 'label' => 'Middle name',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter a middle name'\n )\n )\n )\n ),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'class' => 'form-control',\n )\n ));\n\n //Last name entry\n $this->addElement('text', 'last_name', array(\n 'label' => 'Last name',\n 'required' => true,\n 'filters' => array('StringTrim'),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter a last name'\n )\n )\n )\n ),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'data-required' => 'required',\n 'data-validate' => 'validate',\n 'data-type' => 'name',\n 'class' => 'form-control',\n )\n ));\n\n //Other name entry\n $this->addElement('text', 'other_name', array(\n 'label' => 'Other name which known by',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'class' => 'form-control',\n )\n ));\n \n //Phone number entry\n $this->addElement('text', 'telephone_day', array(\n 'label' => 'Daytime telephone number',\n 'required' => true,\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter a daytime phone number'\n )\n )\n ),\n array(\n 'regex', true, array(\n 'pattern' => '/^((\\+44\\s?\\(0\\)\\s?\\d{2,4})|(\\+44\\s?(01|02|03|07|08)\\d{2,3})|(\\+44\\s?(1|2|3|7|8)\\d{2,3})|(\\(\\+44\\)\\s?\\d{3,4})|(\\(\\d{5}\\))|((01|02|03|07|08)\\d{2,3})|(\\d{5}))(\\s|-|.)(((\\d{3,4})(\\s|-)(\\d{3,4}))|((\\d{6,7})))$/',\n 'messages' => 'Not a valid phone number'\n )\n )\n ),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'data-required' => 'required',\n 'data-validate' => 'validate',\n 'data-type' => 'phone',\n 'class' => 'form-control',\n )\n ));\n \n //Evening phone number\n $this->addElement('text', 'mobile_number', array(\n 'label' => 'Mobile number',\n 'required' => true,\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter a mobile phone number'\n )\n )\n ),\n array(\n 'regex', true, array(\n 'pattern' => '/^((\\+44\\s?\\(0\\)\\s?\\d{2,4})|(\\+44\\s?(01|02|03|07|08)\\d{2,3})|(\\+44\\s?(1|2|3|7|8)\\d{2,3})|(\\(\\+44\\)\\s?\\d{3,4})|(\\(\\d{5}\\))|((01|02|03|07|08)\\d{2,3})|(\\d{5}))(\\s|-|.)(((\\d{3,4})(\\s|-)(\\d{3,4}))|((\\d{6,7})))$/',\n 'messages' => 'Not a valid phone number'\n )\n )\n ),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'class' => 'form-control',\n )\n ));\n \n // Email entry\n $this->addElement('text', 'email', array(\n 'label' => 'Email address',\n 'required' => false,\n 'filters' => array('StringTrim'),\n 'attribs' => array(\n 'data-ctfilter' => 'yes',\n 'class' => 'form-control',\n )\n ));\n \n $emailValidator = new Zend_Validate_EmailAddress();\n $emailValidator->setMessages(\n array(\n Zend_Validate_EmailAddress::INVALID_HOSTNAME => \"Domain name invalid in email address\",\n Zend_Validate_EmailAddress::INVALID_FORMAT => \"Invalid email address\"\n )\n );\n $this->getElement('email')->addValidator($emailValidator);\n \n //Date of birth. Use the 'tenancy start date' dropdowns for now, then re-purpose later.\n $this->addElement('text', 'tenancy_start_date', array(\n 'label' => 'Date of birth',\n 'required' => true,\n 'filters' => array('StringTrim'),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter a date of birth'\n )\n )\n ),\n )\n ));\n \n //Grab view and add the date picker JavaScript files into the page head\n $view = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view'); \n $view->headLink()->appendStylesheet(\n '/assets/vendor/bootstrap-datepicker/css/bootstrap-datepicker.min.css',\n 'screen'\n );\n \n $view->headScript()->appendFile(\n '/assets/vendor/jquery-date/js/date.js',\n 'text/javascript'\n )->appendFile(\n '/assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js',\n 'text/javascript'\n )->appendFile(\n '/assets/landlords-referencing/js/referencingBirthDatePicker.js',\n 'text/javascript'\n );\n\n // Add bank account number element\n $this->addElement('text', 'bank_account_number', array(\n 'label' => 'Bank account number',\n 'required' => false,\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n\n // Add bank sort code element\n $this->addElement('text', 'bank_sortcode_number', array(\n 'label' => 'Bank sort code',\n 'required' => false,\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n\n //Residential status element\n $this->addElement('select', 'residential_status', array(\n 'label' => 'Current residential status',\n 'required' => true,\n 'multiOptions' => array(\n '' => 'Please Select',\n Model_Referencing_ResidenceStatus::OWNER => 'Home Owner',\n Model_Referencing_ResidenceStatus::TENANT => 'Tenant',\n Model_Referencing_ResidenceStatus::LIVING_WITH_RELATIVES => 'Living with Relatives'),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please select the residential status',\n 'notEmptyInvalid' => 'Please select a valid residential status'\n )\n )\n )\n ),\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n \n //Occupational status element\n $this->addElement('select', 'occupational_type', array(\n 'label' => 'Current occupation status',\n 'required' => true,\n 'multiOptions' => array(\n '' => 'Please Select',\n Model_Referencing_OccupationTypes::EMPLOYMENT => 'Permanently Employed',\n Model_Referencing_OccupationTypes::CONTRACT => 'On Contract',\n Model_Referencing_OccupationTypes::SELFEMPLOYMENT => 'Self Employed',\n Model_Referencing_OccupationTypes::RETIREMENT => 'Pensioner',\n Model_Referencing_OccupationTypes::STUDENT => 'Student',\n Model_Referencing_OccupationTypes::UNEMPLOYMENT => 'Unemployed',\n Model_Referencing_OccupationTypes::INDEPENDENT => 'Of Independant Means',\n ),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please select the occupational status',\n 'notEmptyInvalid' => 'Please select a valid occupational status'\n )\n )\n )\n ),\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n\n //Drop down displayed only when applicant is Unemployed or a Student.\n $this->addElement('select', 'is_future_employment_secured', array(\n 'label' => 'Will the applicant start a new employed position during the tenancy term?',\n 'required' => false,\n 'multiOptions' => array(\n '' => 'Please Select',\n 'Yes' => 'Yes',\n 'No' => 'No',\n ),\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n\n //Add total gross annual income\n $this->addElement('text', 'total_annual_income', array(\n 'label' => 'Total gross annual income (&pound;)',\n 'required' => true,\n 'filters' => array('StringTrim'),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please enter the total gross annual income'\n )\n )\n ),\n array(\n 'Digits', true, array(\n 'messages' => array(\n 'notDigits' => 'Total gross annual income can only contain digits',\n 'digitsStringEmpty' => 'Total gross annual income can only contain digits'\n )\n )\n )\n ),\n 'attribs' => array(\n 'data-required' => 'required',\n 'data-validate' => 'validate',\n 'data-type' => 'currency',\n 'class' => 'currency form-control',\n )\n ));\n\n //Occupation will change element\n $this->addElement('select', 'occupation_will_change', array(\n 'label' => 'Is occupation about to change?',\n 'required' => true,\n 'multiOptions' => array(\n '' => 'Please Select',\n 'Yes' => 'Yes',\n 'No' => 'No'\n ),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please select if this occupation is about to change',\n 'notEmptyInvalid' => 'Please select if this occupation is about to change'\n )\n )\n )\n ),\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n\n //Has adverse credit history\n $this->addElement('select', 'has_adverse_credit', array(\n 'label' => 'Does the applicant have CCJs or adverse credit history?',\n 'required' => true,\n 'multiOptions' => array(\n '' => 'Please Select',\n 'Yes' => 'Yes',\n 'No' => 'No'\n ),\n 'validators' => array(\n array(\n 'NotEmpty', true, array(\n 'messages' => array(\n 'isEmpty' => 'Please select if there is adverse credit history',\n 'notEmptyInvalid' => 'Please select if there is adverse credit history'\n )\n )\n )\n ),\n 'attribs' => array(\n 'class' => 'form-control',\n )\n ));\n\n // Set custom subform decorator\n $this->setDecorators(array(\n array('ViewScript', array('viewScript' => 'landlords-referencing/reference-subject.phtml'))\n ));\n \n // Strip all tags to prevent XSS errors\n $this->setElementFilters(array('StripTags'));\n \n $this->setElementDecorators(array(\n array('ViewHelper', array('escape' => false)),\n array('Label', array('escape' => false))\n ));\n }", "function drawOptionAutomatic() {\r\n global $automaticRunPlanning,$displayWidthPlan;?>\r\n <div style=\"white-space:nowrap;\">\r\n <?php if (isNewGui()) htmlDrawSwitch('automaticRunPlan',$automaticRunPlanning);?>\r\n <span title=\"<?php echo i18n('automaticRunPlanHelp');?>\" dojoType=\"dijit.form.CheckBox\" \r\n <?php if (isNewGui()) echo 'style=\"display:none\"';?>\r\n type=\"checkbox\" id=\"automaticRunPlan\" name=\"automaticRunPlan\" id=\"automaticRunPlan\" class=\"whiteCheck\"\r\n <?php if ( $automaticRunPlanning) {echo 'checked=\"checked\"'; } ?> > \r\n <script type=\"dojo/connect\" event=\"onChange\" args=\"evt\">\r\n saveUserParameter('automaticRunPlanning',((this.checked)?'1':'0'));\r\n </script> \r\n </span>&nbsp;<?php if ($displayWidthPlan>1250) echo i18n('automaticRunPlan'); else echo i18n('automaticRunPlanShort');?>\r\n </div>\r\n<?php \r\n}", "public function __construct()\r\n\t{\r\n\t\tparent::__construct(HtmlTagOptgroup::__tagName());\r\n\t}", "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 options_form(&$form, &$form_state) {\r\n // It is very important to call the parent function here:\r\n parent::options_form($form, $form_state);\r\n\r\n switch ($form_state['section']) {\r\n // Only add if section is allow because this is called for all sections for some reason.\r\n case 'allow':\r\n // Add allow option to the form.\r\n $form['allow']['#options']['expose_imagestyle'] = t('Expose imagestyle settings');\r\n break;\r\n }\r\n }", "public function admin_options(){\r\n \r\n if(!get_option('woocommerce_flow_api_key_valid'))\r\n $this->add_error('La llave de api es obligatoria.');\r\n\r\n if(!get_option('woocommerce_flow_secret_key_valid')){\r\n $this->add_error('La llave secreta es obligatoria.');\r\n }\r\n\r\n if($this->is_valid_for_use()){\r\n $this->display_errors();\r\n parent::admin_options();\r\n }\r\n else{\r\n ?>\r\n <div class=\"inline error\">\r\n <p>\r\n <strong><?php esc_html_e( 'Gateway disabled', 'woocommerce' ); ?></strong>: <?php esc_html_e( 'Flow no soporta el tipo de moneda (' .get_woocommerce_currency() .').', 'woocommerce' ); ?>\r\n </p>\r\n </div>\r\n <?php\r\n }\r\n \r\n }", "function setfield( $field_name, $options ) {\n\n//if( $this->debug ) {\n//print \"<pre>\";\n//print \"Options:\\n-----------------------------\\n\";\n//print_r( $options );\n//print $options['name'];\n//print $options['value'];\n//print \"\\n--------------------------------------\\n\";\n//print \"</pre>\";\n//}\n\n/*\n Options (to this function, not an HTML menu option) is an associative array, which gives\n you great flexibility in setting any number\n of options you want.\n \n\tarray(\n\t\t'name' => 'email',\n\t\t'value'\t=> '[email protected]',\n\t\t'label' => 'Email Address',\n\t\t'required' => 1\n\t\t);\n */\n \n$this->fields[$field_name]['name'] = ( $options['name'] ) ? $options['name'] : '';\n\n$this->fields[$field_name]['value'] = ( $options['value'] )\t? $options['value'] : '';\n\nif( $this->debug ) {\nprint \"<pre>\";\nprint \"Value (option): \" . $options['value'] . \"\\n\";\nprint \"Value: \" . $this->fields[$field_name]['value'] . \"\\n\";\nprint \"</pre>\";\n}\n\n$this->fields[$field_name]['label'] = ( $options['label'] )\t? $options['label'] : '';\n\n$this->fields[$field_name]['required'] = ( $options['required'] ) ? $options['required'] : '';\n\n/*\nthe short circuit are a little space saving, but not too much, perl is much more elegant\nthis might be clearest\n \tif( $options['name'] ) {\n\t\t$this->fields[$field_name][name] = $options['name'];\n\t}\n\tif( $options['value'] ) {\n\t\t$this->fields[$field_name][value] = $options['name']\n\t}\n \tif( $options['name'] ) {\n\t\t$this->fields[$field_name][label] = $options['name']\n\t}\n\tif( $options['name'] ) {\n\t\t$this->fields[$field_name][is_required] = $options['name']\n\t}\n \tif( $options['name'] ) {\n\t\t$this->fields[$field_name][invalid] = $options['name']\n\t}\n*/\n\t//$this->fields[$field_name][error] ???\n\n}", "function settings_html() {\n $this->render_setting( 'label_any' );\n }", "public function init()\n {\n parent::init();\n\n //customize the form\n $this->getElement('passwd')->setRequired(false);\n $this->getElement('passwdVerify')->setRequired(false);\n $this->getElement('submit')->setLabel('Save User');\n }", "public function setHtml();", "protected function renderSimulateUserSelectAndLabel() {}", "function testOptionsFunction(){\n\t\t#mdx:OptionsFunction\n\t\t$choice = new SimpleChoice(\"category\");\n\t\t$choice->options(function(){\n\t\t\t// pretend this was fetched from the db\n\t\t\t$rows = [\n\t\t\t\t['id'=>1,'name'=>'Action'],\n\t\t\t\t['id'=>2,'name'=>'Drama'],\n\t\t\t\t['id'=>3,'name'=>'Sci-fi']\n\t\t\t];\n\n\t\t\treturn $rows;\n\n\t\t})->context(['category'=>3]); // selects category 3\n\t\t#/mdx echo $choice\n\t\t$this->assertContains(\"<b>3 - Sci-fi\",\"$choice\");\n\n\t}", "public function render() {\n $this->checkValue();\n $html = NULL;\n\n $html .= '<select id=\"'.$this->id.'\" name=\"'.$this->name.'\"';\n $html .= (bool)$this->multiple ? ' multiple' : NULL;\n $html .= (bool)$this->size ? ' size=\"'.$this->size.'\"' : NULL;\n $html .= \">\\n\";\n\n foreach($this->options as $option) {\n $html .= '<option value=\"'.$option['optionValue'].'\"';\n\n if($this->form->isSubmitted()) {\n $html .= ($_REQUEST[$this->name] == $option['optionValue']) ? ' selected' : NULL;\n } else {\n $html .= (isset($option['selected']) && (bool)$option['selected']) ? ' selected' : NULL;\n }\n\n $html .= '>'.$option['optionTitle'].\"</option>\\n\";\n }\n\n if($this->required\n && $this->form->isSubmitted()\n && !$this->checkValue()) {\n $this->error = TRUE;\n }\n\n $html .= '</select>';\n $this->html = $this->wrap($html);\n }", "function of_option_setup()\t{\n\t\n\tglobal $of_options, $options_machine;\n\t\n\t$options_machine = new Options_Machine($of_options);\n\t\t\n\tif (!get_option(OPTIONS)){\n\t\t\n\t\t$defaults = (array) $options_machine->Defaults;\n\t\tupdate_option(OPTIONS,$defaults);\n\t\tgenerate_options_css($defaults); \n\t\t\n\t}\n\t\n\t\n}", "public function option_definition() {\n $options = parent::option_definition();\n $options['render_link'] = array('default' => FALSE);\n return $options;\n }", "function setOptions() {\n\n\t\t\t/*\n\t\t\t\tOPTION TYPES:\n\t\t\t\t- checkbox: name, id, desc, std, type\n\t\t\t\t- radio: name, id, desc, std, type, options\n\t\t\t\t- text: name, id, desc, std, type\n\t\t\t\t- colorpicker: name, id, desc, std, type\n\t\t\t\t- select: name, id, desc, std, type, options\n\t\t\t\t- textarea: name, id, desc, std, type, options\n\t\t\t*/\n\n\t\t\t$this->options = array(\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Custom Logo Image <span>insert your custom logo image in the header</span>', 'titan'),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Enable custom logo image', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_logo\",\n\t\t\t\t\t\"desc\" => __('Check to use a custom logo in the header.', 'titan'),\n\t\t\t\t\t\"std\" => \"false\",\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Logo URL', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_logo_img\",\n\t\t\t\t\t\"desc\" => sprintf( __( 'Upload an image or enter an URL for your image.', 'titan' ), '<code>' . STYLESHEETPATH . '/images/</code>' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"upload\" => true,\n\t\t\t\t\t\"class\" => \"logo-image-input\",\n\t\t\t\t\t\"type\" => \"upload\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Logo image <code>&lt;alt&gt;</code> tag', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_logo_img_alt\",\n\t\t\t\t\t\"desc\" => __('Specify the <code>&lt;alt&gt;</code> tag for your logo image.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Display tagline', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_tagline\",\n\t\t\t\t\t\"desc\" => __('Check to show your tagline below your logo.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Follow Icons <span>control the follow icons in the top right of your header</span>', 'titan' ),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Twitter', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_twitter_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Hip to Twitter? Check this box.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Facebook', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_facebook_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to show a link to your Facebook page.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable Flickr', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_flickr_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to show a link to Flickr.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Enable email', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_email_toggle\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to show a link to email updates.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Disable all', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_follow_disable\",\n\t\t\t\t\t\"desc\" => __( 'Check this box to hide all follow icons (including RSS). This option overrides any other settings.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Twitter link', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_follow_twitter\",\n\t\t\t\t\t\"desc\" => __( 'Enter your twitter link here.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Facebook link', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_follow_facebook\",\n\t\t\t\t\t\"desc\" => __( 'Enter your Facebook link.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Flickr link', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_follow_flickr\",\n\t\t\t\t\t\"desc\" => __( 'Enter your Flickr link.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Email link', 'titan' ),\n\t\t\t\t\t\"id\" => $this->shortname.\"_feed_email\",\n\t\t\t\t\t\"desc\" => __( 'Enter your email updates link.', 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Homepage Notice <span>display a notice on your homepage</span>', 'titan'),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Enable homepage notice', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_custom_notice\",\n\t\t\t\t\t\"desc\" => __('Check this box to use a custom notice on the home page.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Custom notice', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_notice_content\",\n\t\t\t\t\t\"desc\" =>\t __('The content of your custom notice.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"textarea\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"rows\" => \"3\",\n\t\t\t\t\t\t\"cols\" => \"50\") ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Sidebar Sidebox <span>customize your sidebox</span>', 'titan'),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Disable sidebox', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_sidebox\",\n\t\t\t\t\t\"desc\" => __('Check this box to disable the sidebar sidebox.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Custom code', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_sidebox_custom_code\",\n\t\t\t\t\t\"desc\" => __('Check this box to use custom code for the sidebox.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Custom code content', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_sidebox_custom_code_content\",\n\t\t\t\t\t\"desc\" => __('Must use properly formatted XHTML/HTML.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"textarea\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"rows\" => \"7\",\n\t\t\t\t\t\t\"cols\" => \"70\") ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Sidebar Adbox <span>control ads in your sidebar</span>', 'titan'),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Enable adbox', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adbox\",\n\t\t\t\t\t\"desc\" => __('Check this box to enable the sidebar adbox.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"checkbox\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Ad 1 file name', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adurl_1\",\n\t\t\t\t\t\"desc\" => __( sprintf( __( 'Upload your image to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/sidebar/</code>' ), 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Ad 1 link', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adlink_1\",\n\t\t\t\t\t\"desc\" => __('Link for the first ad', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Ad 1 alt tag', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adalt_1\",\n\t\t\t\t\t\"desc\" => __('Alt tag for the first ad', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Ad 2 file name', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adurl_2\",\n\t\t\t\t\t\"desc\" => __( sprintf( __( 'Upload your image to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/sidebar/</code>' ), 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Ad 2 link', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adlink_2\",\n\t\t\t\t\t\"desc\" => __('Link for the second ad', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Ad 2 alt tag', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_adalt_2\",\n\t\t\t\t\t\"desc\" => __('Alt tag for the second ad', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Footer <span>customize your footer</span>', 'titan'),\n\t\t\t\t\t\"type\" => \"subhead\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('About', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_about\",\n\t\t\t\t\t\"desc\" => __('Something about you or your business.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"textarea\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"rows\" => \"6\",\n\t\t\t\t\t\t\"cols\" => \"80\") ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Flickr link', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_flickr\",\n\t\t\t\t\t\"desc\" => __('Create a Flickr badge. At the end of the process extract the URL and paste here.', 'titan'),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"pro\" => 'true',\n\t\t\t\t\t\"type\" => \"textarea\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"rows\" => \"2\",\n\t\t\t\t\t\t\"cols\" => \"80\") ),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Copyright notice', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_copyright_name\",\n\t\t\t\t\t\"desc\" => __('Your name or the name of your business.', 'titan'),\n\t\t\t\t\t\"std\" => __('Your Name Here', 'titan'),\n\t\t\t\t\t\"type\" => \"text\"),\n\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __('Stats code', 'titan'),\n\t\t\t\t\t\"id\" => $this->shortname.\"_stats_code\",\n\t\t\t\t\t\"desc\" => __( sprintf( __( 'If you would like to use Google Analytics or any other tracking script in your footer just paste it here. The script will be inserted before the closing %s tag.' ), '<code>&#60;/body&#62;</code>' ), 'titan' ),\n\t\t\t\t\t\"std\" => '',\n\t\t\t\t\t\"type\" => \"textarea\",\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t\"rows\" => \"5\",\n\t\t\t\t\t\t\"cols\" => \"40\") ),\n\n\t\t\t);\n\t\t}", "public function setHtml($value,$options=array('required'=>true)){ \n \n $options['listOptions']=array('N'=>'Não','S'=>'Sim','S'=>'S','E'=>'E','N'=>'N','Z'=>'Z','N'=>'Não','S'=>'Sim');\n $this->_data['html'] = new ZendT_Type_Default($value,$options);\n if ($options['db'])\n $this->_data['html']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'html');\n \n $valid = new Zend_Validate_StringLength(array ( 'max' => 1, ) );\n $valueValid = $this->_data['html']->getValueToDb();\n if ($valueValid && !$valid->isValid($valueValid)){\n throw new ZendT_Exception_Business(implode(\"\\n\",$valid->getMessages()));\n }\n \n }\n return $this;\n }", "function testOptionsRows(){\n\t\t#mdx:OptionsRows\n\t\t$choice = new SimpleChoice(\"category\");\n\t\t$choice->options([\n\t\t\t['id'=>1,'name'=>'Action'],\n\t\t\t['id'=>2,'name'=>'Drama'],\n\t\t\t['id'=>3,'name'=>'Sci-fi']\n\t\t])->context(['category'=>2]); // selects category 2\n\t\t\n\t\t#/mdx echo $choice\n\t\t$this->assertContains(\"1 - Action\",\"$choice\");\n\t\t$this->assertContains(\"<b>2 - Drama\",\"$choice\");\n\n\t}", "public function get_option_label_html(){\n\t\t$html = \"\";\n\t\t$classes = $this->get_label_html_classes();\n\t\t$required = $this->required ? \"*\" : \"\";\n\t\t$html .= \"<{$this->element} class='$classes' for='{$this->id}'>{$this->label}{$required}</{$this->element}>\";\n\t\treturn $html;\n\t}", "public function render(){\n\t\t$this->clearAttribute(\"value\");\n\t\t$inner = \"\\n\";\n\t\tforeach($this->options as $value => $option){\n\t\t\tif(in_array($value, $this->selected)){\n\t\t\t\t$option->addAttribute(\"selected\", \"selected\");\n\t\t\t}\n\t\t\t$inner .= \"\\t\" . $option->render() . \"\\n\";\n\t\t}\n\t\t$this->setInnerText($inner);\n\t\treturn parent::render();\n\t}", "public function setRequired(bool $require) : OptionMetadataInterface;", "function setHTMLoptions($fieldname, $value)\n\t{\n\t\t$this->setFieldParam($fieldname, \"html\", $value);\n\t}", "public function admin_options() {\n\n\t\t?>\n\t\t<h3><?php _e( 'PayU standard', 'woocommerce' ); ?></h3>\n\t\t<p><?php _e( 'PayU standard works by sending the user to PayU to enter their payment information.', 'woocommerce' ); ?></p>\n\n \t<?php if ( $this->is_valid_for_use() ) : ?>\n\n\t\t\t<table class=\"form-table\">\n\t\t\t<?php $this->generate_settings_html(); ?>\n\t\t\t</table><!--/.form-table-->\n\n\t\t<?php else : ?>\n <div class=\"inline error\"><p><strong><?php _e( 'Gateway Disabled', 'woocommerce' ); ?></strong>: <?php _e( 'PayU does not support your store currency.', 'woocommerce' ); ?></p></div>\n\t\t<?php\n\t\t\tendif;\n\t}", "public function beforeSet() {\n $name = $this->getProperty('name');\n if (empty($name)) {\n $this->addFieldError('name',$this->modx->lexicon('required'));\n }\n\n $test = $this->getProperty('test');\n if (empty($test)) {\n $this->addFieldError('name','Required parameter test is not specified.');\n }\n\n $testObject = $this->modx->getObject('sabTest', $test);\n if (!$testObject) {\n $this->addFieldError('name','Parent test not found.');\n }\n\n $element = $this->getProperty('element');\n $elementType = $testObject->get('type');\n $elementObj = $this->modx->getObject($elementType, $element);\n if (!$elementObj) {\n $this->addFieldError('element', 'Element does not exist.');\n }\n\n /* Set checkbox */\n $this->setCheckbox('active', true);\n return parent::beforeSet();\n }", "public function initOptions() {\n parent::initOptions();\n $this->_options->setOpt(\"WTPSI Company ID\",'wtpsicpnyid','text',array('compulsory'=>false), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI XML ID\",'wtpsixmlid','text',array('compulsory'=>false), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI UserName\",'wtpsiusername','text',array('compulsory'=>false), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI Password\",'wtpsixmlpasswd','text',array('compulsory'=>false), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI WTP Login\",'wtpsiwtplogin','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI User Contact\",'wtpsicontactuser','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI Contact Password \",'wtpsicontactpasswd','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI POSNO \",'wtpsiposno','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"Utiliser le login company\",'wtpsiusecpny','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI WSDL \",'wtpsiwsdl','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"WTPSI Add-Ons WSDL \",'wtpsiaddonswsdl','text',array('compulsory'=>true), NULL ,'EPassLibre');\n $this->_options->setOpt(\"VALIDATION des WTP : allproj\",'wtpvalidationallproj','boolean',array('compulsory'=>true), false ,'EPassLibre');\n $this->_options->setOpt(\"VALIDATION des WTP 64 bits\", 'wtp64bits', 'boolean',array('compulsory'=>true), false ,'EPassLibre');\n }", "function settings_html() {\n $this->render_setting( 'label_any' );\n $this->render_setting( 'modifiers' );\n $this->render_setting( 'orderby' );\n $this->render_setting( 'count' );\n }", "protected function _setOptions()\r\n {\r\n $this->addValidator('Extension',false, array('jpeg', 'jpg', 'png', 'case' => FALSE));\r\n \r\n $this->addValidator('MimeType', false, \r\n array('application/octet-stream', \r\n 'image/jpeg', 'image/png', 'headerCheck'=>TRUE));\r\n \r\n }", "function testRender(){\n\t\t#mdx:Render\n\t\t$choice = new SimpleChoice('color');\n\t\t$choice->options([\n\t\t\t1 => 'Black',\n\t\t\t2 => 'White',\n\t\t\t3 => 'Gray'\n\t\t]);\n\t\t#/mdx echo $choice\n\t\t$this->assertContains(\"input\",\"$choice\");\n\t\t$this->assertContains(\"1 - Black\",\"$choice\");\n\t\t$this->assertContains(\"3 - Gray\",\"$choice\");\n\t}", "public function render() {\n /* verify all fields except checkbox */\n if($this->required\n && $this->form->isSubmitted()\n && !$this->checkValue()) {\n $this->error = TRUE;\n $this->cssClass = 'error';\n }\n\n /* verify checkbox */\n $tempName = str_replace('[]', NULL, $this->name);\n\n if($this->required\n && $this->form->isSubmitted()\n && $this->type == 'checkbox'\n && !isset($_REQUEST[$tempName])) {\n $this->error = TRUE;\n $this->cssClass = 'error';\n }\n\n $html = NULL;\n $this->value = htmlspecialchars($this->value);\n\n $html .= '<input type=\"'.$this->type.'\" id=\"'.$this->id.'\" name=\"'.$this->name.'\" value=\"'.$this->value.'\"';\n $html .= (bool)$this->size ? ' size= \"'.$this->size.'\"' : NULL;\n $html .= (bool)$this->maxlength ? ' maxlength= \"'.$this->maxlength.'\"' : NULL;\n $html .= (bool)$this->size ? ' size=\"'.$this->size.'\"' : NULL;\n $html .= ($this->type == 'text' || $this->type == 'password') ? ' class=\"' . $this->cssClass .'\"' : NULL;\n $html .= ($this->type == 'submit') ? ' class=\"submit ' . $this->cssClass .'\"' : NULL;\n $html .= ($this->type == 'checkbox') ? ' class=\"checkbox ' . $this->cssClass .'\"' : NULL;\n $html .= ($this->type == 'radio') ? ' class=\"radio ' . $this->cssClass .'\"' : NULL;\n $html .= ($this->type == 'image') ? ' source=\"'.$this->source.'\"' : NULL;\n $html .= ($this->type == 'image' && (bool)$this->width && (bool)$this->height) ? ' style=\"width:'.$this->width.'px; height:'.$this->height.'px;\"' : NULL;\n $html .= (bool)$this->checked ? ' checked' : NULL;\n $html .= ' />';\n\n if (isset($this->label)) {\n $html .= '<span class=\"label\">' . $this->label . '</span>';\n }\n\n $this->html = ($this->type == 'hidden') ? $html : $this->wrap($html);\n }", "function getSetupForm($options = array()){\n $form = parent::getSetupForm($options);\n $form->setLegend('Category Options');\n \n $set = $form->createElement('select', 'set');\n $set->setLabel('Set: ');\n $set->setRequired('true');\n \n $service = new Content_Model_CategorySet_Service();\n $results = $service->getObjects();\n\n $options = array();\n foreach($results as $value){\n $options[$value->id] = $value->title;\n }\n\n //$template->addMultiOption('None','');\n $set->setMultiOptions($options);\n $form->addElement($set);\n \n return $form;\n }", "public function testDefaultRequired()\n {\n $form = $this->factory->create('ckeditor');\n $view = $form->createView();\n $required = $view->get('required');\n \n $this->assertFalse($required);\n }", "function setHTMLoption($fieldname, $innername, $value)\n\t{\n\t\t$this->setFieldInnerParam($fieldname, \"html\", $innername, $value);\n\t}", "function definition(){\n parent::definition();\n $mform =& $this->_form;\n $mform->addRule('questiontext', null, 'required', null, 'client');\n \n // Remove meaningless defaultgrade field.\n $mform->removeElement('defaultgrade');\n }", "public function Option1()\n {\n $this->CallJqUiMethod(\"option\");\n }", "function WidgetMeteoControl() {\n\t\t\n\t\t\t$options = get_option('widget_trebimeteo');\n\t\t\tif ( !is_array($options) )\t{ $options = array('title' => 'Previsioni Meteo', 'trebiregione' => '1', 'trebilocalita' => '6', 'trebicuno' => 'ffffff','trebicdue' => 'ffffff', 'trebictre' => 'ffffff', 'trebibuno' => '93c1db', 'trebibdue' => '3a8ebd', 'trebibtre' => 'ffffff', 'trebilarghezza' => '190', 'trebialtezza' => '240', 'trebitipo' => 'xssmall'); }\n\n\t\t\tif ( $_POST['trebimeteo-submit'] )\n\t\t\t{\n\t\t\t\t// Remember to sanitize and format use input appropriately.\n\t\t\t\t$options['trebimeteotitle'] = strip_tags(stripslashes($_POST['trebimeteotitle']));\n\t\t\t\t$options['trebiregione'] = strip_tags(stripslashes($_POST['trebiregione']));\n\t\t\t\t$options['trebilocalita'] = strip_tags(stripslashes($_POST['trebilocalita']));\n\t\t\t\t$options['trebicuno'] = strip_tags(stripslashes($_POST['trebicuno']));\n\t\t\t\t$options['trebicdue'] = strip_tags(stripslashes($_POST['trebicdue']));\n\t\t\t\t$options['trebictre'] = strip_tags(stripslashes($_POST['trebictre']));\n\t\t\t\t$options['trebibuno'] = strip_tags(stripslashes($_POST['trebibuno']));\n\t\t\t\t$options['trebibdue'] = strip_tags(stripslashes($_POST['trebibdue']));\n\t\t\t\t$options['trebibtre'] = strip_tags(stripslashes($_POST['trebibtre']));\n\t\t\t\t$options['trebialtezza'] = strip_tags(stripslashes($_POST['trebialtezza']));\n\t\t\t\t$options['trebilarghezza'] = strip_tags(stripslashes($_POST['trebilarghezza']));\n\t\t\t\t$options['trebitipo'] = strip_tags(stripslashes($_POST['trebitipo']));\n\n\t\t\t\tupdate_option('widget_trebimeteo', $options);\n\t\t\t}\n\n\t\t\t$trebimeteotitle = htmlspecialchars($options['trebimeteotitle'], ENT_QUOTES);\n\t\t\t$trebiregione = htmlspecialchars($options['trebiregione'], ENT_QUOTES);\n\t\t\t$trebilocalita = htmlspecialchars($options['trebilocalita'], ENT_QUOTES);\n\t\t\t$trebicuno = htmlspecialchars($options['trebicuno'], ENT_QUOTES);\n\t\t\t$trebicdue = htmlspecialchars($options['trebicdue'], ENT_QUOTES);\n\t\t\t$trebictre = htmlspecialchars($options['trebictre'], ENT_QUOTES);\n\t\t\t$trebibuno = htmlspecialchars($options['trebibuno'], ENT_QUOTES);\n\t\t\t$trebibdue = htmlspecialchars($options['trebibdue'], ENT_QUOTES);\n\t\t\t$trebibtre = htmlspecialchars($options['trebibtre'], ENT_QUOTES);\n\t\t\t$trebialtezza = htmlspecialchars($options['trebialtezza'], ENT_QUOTES);\n\t\t\t$trebilarghezza = htmlspecialchars($options['trebilarghezza'], ENT_QUOTES);\n\t\t\t$trebitipo = htmlspecialchars($options['trebitipo'], ENT_QUOTES);\n\n\t\t\t$xpath = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),\"\",plugin_basename(__FILE__));\n\t\t\t\n\t\t\t?>\n \n\t<p style=\"text-align:right;\"><label for=\"trebimeteo-title\">Titolo <input id=\"trebimeteotitle\" name=\"trebimeteotitle\" type=\"text\" value=\"<?php echo $trebimeteotitle;?>\" /></label></p>\n <p style=\"text-align:right;\"><label for=\"trebiregione\">ID Regione (<a target=\"_blank\" href=\"<?php echo home_url().'/wp-admin/options-general.php?page=3bmeteo.php'; ?>\">?</a>) <input id=\"trebiregione\" name=\"trebiregione\" type=\"text\" value=\"<?php echo $trebiregione;?>\"/></label></p>\n\t<p style=\"text-align:right;\"><label for=\"trebilocalita\">ID Localit&agrave; (<a target=\"_blank\" href=\"<?php echo home_url().'/wp-admin/options-general.php?page=3bmeteo.php';?>\">?</a>) <input id=\"trebilocalita\" name=\"trebilocalita\" type=\"text\" value=\"<?php echo $trebilocalita;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebialtezza\">Altezza <input id=\"trebialtezza\" name=\"trebialtezza\" type=\"text\" value=\"<?php echo $trebialtezza;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebilarghezza\">Larghezza <input id=\"trebilarghezza\" name=\"trebilarghezza\" type=\"text\" value=\"<?php echo $trebilarghezza;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebibuno\">B1 <input id=\"trebibuno\" name=\"trebibuno\" type=\"text\" value=\"<?php echo $trebibuno;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebibdue\">B2 <input id=\"trebibdue\" name=\"trebibdue\" type=\"text\" value=\"<?php echo $trebibdue;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebibtre\">B3 <input id=\"trebibtre\" name=\"trebibtre\" type=\"text\" value=\"<?php echo $trebibtre;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebicuno\">C1 <input id=\"trebicuno\" name=\"trebicuno\" type=\"text\" value=\"<?php echo $trebicuno;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebicdue\">C2 <input id=\"trebicdue\" name=\"trebicdue\" type=\"text\" value=\"<?php echo $trebicdue;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebictre\">C3 <input id=\"trebictre\" name=\"trebictre\" type=\"text\" value=\"<?php echo $trebictre;?>\"/></label></p>\n <p style=\"text-align:right;\"><label for=\"trebitipo\">Tipo\n <select id=\"trebitipo\" name=\"trebitipo\"> \n\t\t<option label=\"Localit&agrave; Compatti 1 giorno\" value=\"xssmall\"<?php if ($trebitipo=='xssmall') echo ' selected=\"selected\"';?>>Localit&agrave; Compatti 1 giorno</option> \n\t\t<option label=\"Localit&agrave; Compatti 6 giorni\" value=\"lsmall\"<?php if ($trebitipo=='lsmall') echo ' selected=\"selected\"';?>>Localit&agrave; Compatti 6 giorni</option> \n\t\t<option label=\"Localit&agrave; Compatti 7 giorni\" value=\"lbigor\"<?php if ($trebitipo=='lbigor') echo ' selected=\"selected\"';?>>Localit&agrave; Compatti 7 giorni</option> \n\t\t<option label=\"Localit&agrave; Dati in Diretta\" value=\"treale\"<?php if ($trebitipo=='treale') echo ' selected=\"selected\"';?>>Localit&agrave; Dati in Diretta</option> \n\t\t<option label=\"Tutte le Localit&agrave;\" value=\"ssmall\"<?php if ($trebitipo=='ssmall') echo ' selected=\"selected\"';?>>Tutte le Localit&agrave;</option> \n\t\t<option label=\"Localit&agrave; estese 7 giorni\" value=\"lbig\"<?php if ($trebitipo=='lbig') echo ' selected=\"selected\"';?>>Localit&agrave; estese 7 giorni</option> \n\t\t<option label=\"Localit&agrave; estese orario\" value=\"oraxora\"<?php if ($trebitipo=='oraxora') echo ' selected=\"selected\"';?>>Localit&agrave; estese orario</option> \n\t\t<option label=\"Regionali compatto\" value=\"msmall\"<?php if ($trebitipo=='msmall') echo ' selected=\"selected\"';?>>Regionali compatto</option> \n\t\t<option label=\"Regionali 7 giorni\" value=\"msmacro\"<?php if ($trebitipo=='msmacro') echo ' selected=\"selected\"';?>>Regionali 7 giorni</option> \n\t\t<option label=\"Localit&agrave; Marine 1 giorno\" value=\"lsmari\"<?php if ($trebitipo=='lsmari') echo ' selected=\"selected\"';?>>Localit&agrave; Marine 1 giorno</option> \n\t\t<option label=\"Localit&agrave; Marine 7 giorno\" value=\"lmari\"<?php if ($trebitipo=='lmari') echo ' selected=\"selected\"';?>>Localit&agrave; Marine 7 giorno</option> \n\t\t<option label=\"Regionali Marine 7 giorni\" value=\"mmari\"<?php if ($trebitipo=='mmari') echo ' selected=\"selected\"';?>>Regionali Marine 7 giorni</option> \n\t\t<option label=\"Neve 1 giorno\" value=\"lsneve\"<?php if ($trebitipo=='lsneve') echo ' selected=\"selected\"';?>>Neve 1 giorno</option> \n\t\t<option label=\"Neve 7 giorni\" value=\"lneve\"<?php if ($trebitipo=='lneve') echo ' selected=\"selected\"';?>>Neve 7 giorni</option>\n\t</select>\n </label>\n\t</p>\n <!--<p style=\"text-align:right;\">\n <select id=\"trebimeteoregione\" name=\"trebimeteoregione\"> \n\t\t<option label=\"Abruzzo (idreg=1)\" value=\"1\">Abruzzo (idreg=1)</option> \n\t\t<option label=\"Basilicata (idreg=2)\" value=\"2\">Basilicata (idreg=2)</option> \n\t\t<option label=\"Calabria (idreg=3)\" value=\"3\">Calabria (idreg=3)</option> \n\t\t<option label=\"Campania (idreg=4)\" value=\"4\">Campania (idreg=4)</option> \n\t\t<option label=\"Emilia (idreg=5)\" value=\"5\">Emilia (idreg=5)</option> \n\t\t<option label=\"Friuli (idreg=6)\" value=\"6\">Friuli (idreg=6)</option> \n\t\t<option label=\"Lazio (idreg=7)\" value=\"7\">Lazio (idreg=7)</option> \n\t\t<option label=\"Liguria (idreg=8)\" value=\"8\">Liguria (idreg=8)</option> \n\t\t<option label=\"Lombardia (idreg=9)\" value=\"9\">Lombardia (idreg=9)</option> \n\t\t<option label=\"Marche (idreg=10)\" value=\"10\">Marche (idreg=10)</option> \n\t\t<option label=\"Molise (idreg=11)\" value=\"11\">Molise (idreg=11)</option> \n\t\t<option label=\"Piemonte (idreg=12)\" value=\"12\">Piemonte (idreg=12)</option> \n\t\t<option label=\"Puglia (idreg=13)\" value=\"13\">Puglia (idreg=13)</option> \n\t\t<option label=\"Sardegna (idreg=14)\" value=\"14\">Sardegna (idreg=14)</option> \n\t\t<option label=\"Sicilia (idreg=15)\" value=\"15\">Sicilia (idreg=15)</option> \n\t\t<option label=\"Toscana (idreg=16)\" value=\"16\">Toscana (idreg=16)</option> \n\t\t<option label=\"Trentino (idreg=17)\" value=\"17\">Trentino (idreg=17)</option> \n\t\t<option label=\"Umbria (idreg=18)\" value=\"18\">Umbria (idreg=18)</option> \n\t\t<option label=\"Valle aosta (idreg=19)\" value=\"19\">Valle d'aosta (idreg=19)</option> \n\t\t<option label=\"Veneto (idreg=20)\" value=\"20\">Veneto (idreg=20)</option> \n\t</select> \n\t</p>-->\n <!-- <p style=\"text-align:right;\"> \n\t<select name=\"trebimeteolocalita\" id=\"trebimeteolocalita\"> \n\t\t<option label=\"Seleziona Localit&agrave;\" value=\"01\">Seleziona Localit&agrave;</option> \n\t</select> \n <p style=\"text-align:right;\"><label for=\"trebiloc\">Localit&agrave; <input style=\"width: 200px;\" id=\"trebiloc\" name=\"trebiloc\" type=\"text\" value=\"<?php //echo $loc;?>\" /></label></p>-->\n <p><input type=\"hidden\" id=\"trebimeteo-submit\" name=\"trebimeteo-submit\" value=\"1\" /></p> \n<?php\n\t\t}", "public function testDefaultRequired()\n {\n $form = $this->factory->create('ckeditor');\n $view = $form->createView();\n $required = $view->get('required');\n\n $this->assertFalse($required);\n }", "public function testSetRequired()\n {\n $option = new Option('f');\n $option->setNeeds('foo');\n\n $this->assertTrue(in_array('foo', $option->getNeeds()));\n }", "public function init(){\n\t\t\n\t\tparent::init();\n\t\t\n\t\t$this->_html .= $this->get_label();\n\t\t\n\t\t$this->_html .= '<input type=\"submit\" ';\n\t\t\n\t\tif(isset($this->_options['id'])){\n\t\t\t$this->_html .= 'id=\"'.$this->_options['id'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['class'])){\n\t\t\t$this->_html .= 'class=\"'.$this->_options['class'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['value'])){\n\t\t\t$this->_html .= 'value=\"'.$this->_options['value'].'\" ';\n\t\t}\t\n\t\t\n\t\tif(isset($this->_options['name'])){\n\t\t\t$this->_html .= 'name=\"'.esc_attr($this->_options['name']).'\" ';\n\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\n\t\t$this->_html .= ' />';\n\t}", "protected function get_options()\n\t{}", "private function showOptions() : void\n {\n $selectedOption = $this->console->choice(__('Please cheoose your option:'), $this->getAllOptions() );\n $this->setSelectedOption($selectedOption);\n $this->handleOption();\n }", "public function setup_display_rule_controls()\n {\n $setup_display_control_args =\n array(\n 'activate_optin' => apply_filters('mo_optin_form_customizer_activate_optin_args',\n array(\n 'type' => 'checkbox',\n 'label' => __('Activate optin', 'mailoptin'),\n 'section' => $this->customizerClassInstance->setup_display_rule_section_id,\n 'settings' => $this->option_prefix . '[activate_optin]',\n 'description' => __('The optin will not be displayed unless this setting is checked.', 'mailoptin'),\n 'priority' => 10\n )\n )\n );\n\n if (defined('MAILOPTIN_DISPLAY_RULES_FLAG')) {\n $setup_display_control_args['load_optin_globally'] = apply_filters('mo_optin_form_customizer_load_optin_globally_args',\n array(\n 'type' => 'checkbox',\n 'label' => __('Globally load optin', 'mailoptin'),\n 'section' => $this->customizerClassInstance->setup_display_rule_section_id,\n 'settings' => $this->option_prefix . '[load_optin_globally]',\n 'description' => __('The optin will be loaded on all pages of your website if checked.', 'mailoptin'),\n 'priority' => 20\n )\n );\n $setup_display_control_args['hide_logged_in'] = apply_filters('mo_optin_form_customizer_hide_logged_in_args', array(\n 'type' => 'checkbox',\n 'label' => __('Hide for Logged-in Users', 'mailoptin'),\n 'description' => __('Check to hide the optin for users logged into your website.', 'mailoptin'),\n 'section' => $this->customizerClassInstance->setup_display_rule_section_id,\n 'settings' => $this->option_prefix . '[hide_logged_in]',\n 'priority' => 25,\n )\n );\n }\n\n $setup_display_control_args = apply_filters(\n \"mo_optin_form_customizer_setup_display_rule_controls\",\n $setup_display_control_args,\n $this->wp_customize,\n $this->option_prefix,\n $this->customizerClassInstance\n );\n\n do_action('mailoptin_before_setup_display_rule_controls_addition');\n\n foreach ($setup_display_control_args as $id => $args) {\n if (is_object($args)) {\n $this->wp_customize->add_control($args);\n } else {\n $this->wp_customize->add_control($this->option_prefix . '[' . $id . ']', $args);\n }\n }\n\n do_action('mailoptin_after_setup_display_rule_controls_addition');\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 }", "function seun_edit_user_options() {\n\n\t\t\tglobal $user_id;\n\n\t\t\t$user_id = isset($user_id) ? (int) $user_id : 0;\n\n\t\t\tif ( ! current_user_can('edit_users') )\n\t\t\t\treturn;\n\n\t\t\tif ( ! ($userdata = get_userdata( $user_id ) ) )\n\t\t\t\treturn;\n\n\t\t\t$default_user_nicename = sanitize_title( $userdata->user_login );\n\n\t\t\techo '<h3>'.__('User Nicename', 'seun').'</h3>'\n\t\t\t\t.'<table class=\"form-table\">'.\"\\n\"\n\t\t\t\t\t.'<tr>'.\"\\n\"\n\t\t\t\t\t\t.'<th><label for=\"user_nicename\">'.__('User nicename/slug', 'seun').'</label></th>'.\"\\n\"\n\t\t\t\t\t\t.'<td>'\n\t\t\t\t\t\t\t.'<input id=\"user_nicename\" name=\"user_nicename\" class=\"regular-text code\" type=\"text\" value=\"'.sanitize_title($userdata->user_nicename, $default_user_nicename).'\"/> '\n\t\t\t\t\t\t\t.'<span class=\"description\">('.sprintf(__('Leave empty for default value: %s', 'seun'), $default_user_nicename).')</span> '\n\t\t\t\t\t\t\t.'<a href=\"'.get_author_posts_url($user_id).'\">'.__('Your Profile').'</a> '\n\t\t\t\t\t\t.\"</td>\\n\"\n\t\t\t\t\t.'</tr>'.\"\\n\"\n\t\t\t\t.'</table>'.\"\\n\";\n\n\t\t}", "protected function renderReadOnly()\n {\n $languageService = $this->getLanguageService();\n\n $parameterArray = $this->data['parameterArray'];\n $config = $parameterArray['fieldConf']['config'];\n $fieldName = $parameterArray['itemFormElName'];\n\n $possibleItems = $config['items'];\n $selectedItems = $parameterArray['itemFormElValue'] ?: [];\n if (!is_array($selectedItems)) {\n $selectedItems = GeneralUtility::trimExplode(',', $selectedItems, true);\n }\n $selectedItemsCount = count($selectedItems);\n\n $autoSizeMax = MathUtility::forceIntegerInRange($config['autoSizeMax'], 0);\n $size = 2;\n if (isset($config['size'])) {\n $size = (int)$config['size'];\n }\n if ($autoSizeMax >= 1) {\n $size = MathUtility::forceIntegerInRange($selectedItemsCount + 1, MathUtility::forceIntegerInRange($size, 1), $autoSizeMax);\n }\n $multiple = '';\n if ($size !== 1) {\n $multiple = ' multiple=\"multiple\"';\n }\n\n $listOfSelectedValues = [];\n $optionsHtml = [];\n foreach ($selectedItems as $itemValue) {\n foreach ($possibleItems as $possibleItem) {\n if ($possibleItem[1] == $itemValue) {\n $title = $possibleItem[0];\n $listOfSelectedValues[] = $itemValue;\n $optionsHtml[] = '<option value=\"' . htmlspecialchars($itemValue) . '\" title=\"' . htmlspecialchars($title) . '\">' . htmlspecialchars($title) . '</option>';\n break;\n }\n }\n }\n\n $html = [];\n $html[] = '<div class=\"formengine-field-item t3js-formengine-field-item\">';\n $html[] = '<div class=\"form-wizards-wrap\">';\n $html[] = '<div class=\"form-wizards-element\">';\n $html[] = '<label>';\n $html[] = htmlspecialchars($languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.selected'));\n $html[] = '</label>';\n $html[] = '<div class=\"form-wizards-wrap form-wizards-aside\">';\n $html[] = '<div class=\"form-wizards-element\">';\n $html[] = '<select';\n $html[] = ' id=\"' . StringUtility::getUniqueId('tceforms-multiselect-') . '\"';\n $html[] = ' size=\"' . $size . '\"';\n $html[] = ' class=\"form-control tceforms-multiselect\"';\n $html[] = $multiple;\n $html[] = ' data-formengine-input-name=\"' . htmlspecialchars($fieldName) . '\"';\n $html[] = ' disabled=\"disabled\">';\n $html[] = '/>';\n $html[] = implode(LF, $optionsHtml);\n $html[] = '</select>';\n $html[] = '</div>';\n $html[] = '</div>';\n $html[] = '<input type=\"hidden\" name=\"' . htmlspecialchars($fieldName) . '\" value=\"' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '\" />';\n $html[] = '</div>';\n $html[] = '</div>';\n $html[] = '</div>';\n\n $resultArray = $this->initializeResultArray();\n $resultArray['html'] = implode(LF, $html);\n return $resultArray;\n }", "function testOptionsObjects(){\n\t\n\t\t#mdx:OptionsObjects\n\t\t$choice = new SimpleChoice(\"category\");\n\t\n\t\t$option1 = new StdClass();\n\t\t$option1->id = 1;\n\t\t$option1->name = 'Action';\n\t\n\t\t$option2 = new StdClass();\n\t\t$option2->id = 2;\n\t\t$option2->name = 'Drama';\n\n\t\t$choice->options([$option1, $option2])\n\t\t\t->context(['category'=>2]); // selects category 2\n\t\t\n\t\t#/mdx echo $choice\n\t\t$this->assertContains(\"1 - Action\",\"$choice\");\n\t\t$this->assertContains(\"<b>2 - Drama\",\"$choice\");\n\n\t}", "protected function initOptions()\n {\n Html::addCssClass($this->options, 'uk-alert uk-alert-'.$this->type);\n $this->options['uk-alert'] = true;\n }", "public function testGetHtmlWithAttributes()\n {\n $option = new Option('foo', 'bar');\n\n self::assertSame('<option value=\"foo\" class=\"baz\" id=\"foo-bar\">bar</option>', $option->getHtml(['class' => 'baz', 'id' => 'foo-bar']));\n }", "function hundope_select_field_render() { \n\t\n}", "public function render() {\n\t\tif ($this->getPage()) {\n\t\t\t$options = $this->getPage()->getOptions();\n\t\t} else {\n\t\t\t$options = [];\n\t\t}\n\t\techo $this->field->render($options);\n\t}", "private function build_select_field($_meta, $_ptype = \"wccpf\", $_class = \"\", $_index, $_show_as_value = \"no\", $_readonly = \"\", $_cloneable = \"\", $_wrapper = true, $_has_pricing_rules = \"no\") {\r\n $html = ''; \r\n $has_field_rules = isset( $_meta[\"field_rules\"] ) && is_array( $_meta[\"field_rules\"] ) && count( $_meta[\"field_rules\"] ) != 0 ? \"yes\" : \"no\";\r\n if ($_show_as_value == \"no\") {\r\n $html = '<select data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' >';\r\n \r\n $choices = explode(\";\", ((isset($_meta[\"choices\"]) && ! empty($_meta[\"choices\"])) ? $_meta[\"choices\"] : \"\"));\r\n $_meta[\"default_value\"] = (isset($_meta[\"default_value\"]) && ! empty($_meta[\"default_value\"])) ? trim($_meta[\"default_value\"]) : \"\";\r\n \r\n /* Placeholder option */\r\n if (isset($_meta[\"placeholder\"]) && !empty($_meta[\"placeholder\"])) {\r\n $html .= '<option value=\"wccpf_none\">' . esc_html($_meta[\"placeholder\"]) . '</option>';\r\n }\r\n $choices = apply_filters( \"wcff_select_option_before_rendering\", $choices, $_meta[\"key\"] );\r\n foreach ($choices as $choice) {\r\n $attr = '';\r\n $key_val = explode(\"|\", $choice);\r\n /* It has to be two items ( Value => Label ), otherwise don't proceed */\r\n if (count($key_val) == 2) {\r\n if ($_ptype != \"wccaf\") {\r\n /* Since version 2.0.0 - Default value will be absolute value, not as key|val pair */\r\n if (strpos($_meta[\"default_value\"], \"|\") !== false) {\r\n /* Compatibility for <= V 1.4.0 */\r\n if ($choice == $_meta[\"default_value\"]) {\r\n $attr = 'selected';\r\n }\r\n } else {\r\n /*\r\n * For product fields from V 2.0.0\r\n * For admin fields, which will be displyed as Product Fields\r\n */\r\n if (trim($key_val[0]) == $_meta[\"default_value\"]) {\r\n $attr = 'selected';\r\n }\r\n }\r\n } else {\r\n if ($key_val[0] == $_meta[\"value\"]) {\r\n $attr = 'selected';\r\n }\r\n }\r\n $html .= '<option value=\"' . esc_attr(trim($key_val[0])) . '\" ' . $attr . '>' . esc_html(trim($key_val[1])) . '</option>';\r\n }\r\n }\r\n $html .= '</select>';\r\n } else {\r\n /*\r\n * Show the raw value instead of as a field\r\n * Used for the Admin Field showing on product page\r\n */\r\n $html = '<p class=\"wcff-wccaf-value-para-tag\">' . $_meta[\"default_value\"] . '</p>';\r\n }\r\n /* Add wrapper around the field, based on the user options */\r\n if ($_wrapper) {\r\n $html = $this->built_field_wrapper($html, $_meta, $_ptype, $_index);\r\n }\r\n return $html;\r\n }", "public function render($name, $value = null, $attributes = array(), $errors = array())\n {\n if (!is_null($value) && $value !== false && $value !== 0 && $value != 2)\n {\n $attributes['checked'] = 'checked';\n } \n\n if (!isset($attributes['value']) && !is_null($this->getOption('value_attribute_value'))) {\n $attributes['value'] = $this->getOption('value_attribute_value');\n }\n\n return parent::render($name, null, $attributes, $errors);\n }", "public static function apply_template($template, $options) {\n global $indicia_templates;\n // Don't need the extraParams - they are just for service communication.\n $options['extraParams'] = NULL;\n // Set default validation error output mode.\n if (!array_key_exists('validation_mode', $options)) {\n $options['validation_mode'] = self::$validation_mode;\n }\n // Decide if the main control has an error. If so, highlight with the error\n // class and set it's title.\n $error = '';\n if (self::$validation_errors !== NULL) {\n if (array_key_exists('fieldname', $options)) {\n $error = self::check_errors($options['fieldname'], TRUE);\n }\n }\n // Add a hint to the control if there is an error and this option is set,\n // or a hint option.\n if (($error && in_array('hint', $options['validation_mode'])) || isset($options['hint'])) {\n $hint = ($error && in_array('hint', $options['validation_mode'])) ? [$error] : [];\n if (isset($options['hint'])) {\n $hint[] = $options['hint'];\n }\n $options['title'] = 'title=\"' . implode(' : ', $hint) . '\"';\n }\n else {\n $options['title'] = '';\n }\n $options = array_merge([\n 'class' => '',\n 'disabled' => '',\n 'readonly' => '',\n 'wrapClasses' => [],\n ], $options);\n $options['wrapClasses'] = empty($options['wrapClasses']) ? '' : ' ' . implode(' ', $options['wrapClasses']);\n if (array_key_exists('maxlength', $options)) {\n $options['maxlength'] = \"maxlength=\\\"$options[maxlength]\\\"\";\n }\n else {\n $options['maxlength'] = '';\n }\n // Add an error class to colour the control if there is an error and this\n // option is set.\n if ($error && in_array('colour', $options['validation_mode'])) {\n $options['class'] .= ' ui-state-error';\n if (array_key_exists('outerClass', $options)) {\n $options['outerClass'] .= ' ui-state-error';\n }\n else {\n $options['outerClass'] = 'ui-state-error';\n }\n }\n // Allows a form control to have a class specific to the base theme.\n if (isset($options['isFormControl'])) {\n $options['class'] .= \" $indicia_templates[formControlClass]\";\n }\n // Add validation metadata to the control if specified, as long as control\n // has a fieldname.\n if (array_key_exists('fieldname', $options)) {\n $validationClasses = self::build_validation_class($options);\n $options['class'] .= \" $validationClasses\";\n }\n\n // Replace html attributes with their wrapped versions, e.g. a class\n // becomes class=\"...\".\n foreach (self::$html_attributes as $name => $attr) {\n if (!empty($options[$name])) {\n $options[$name] = ' ' . $attr . '=\"' . $options[$name] . '\"';\n }\n }\n\n // If options contain a help text, output it at the end if that is the\n // preferred position.\n $r = self::get_help_text($options, 'before');\n // Add prefix.\n $r .= self::apply_static_template('prefix', $options);\n\n // Add a label only if specified in the options array. Link the label to\n // the inputId if available, otherwise the fieldname (as the fieldname\n // control could be a hidden control).\n if (!empty($options['label'])) {\n $labelTemplate = isset($options['labelTemplate']) ? $indicia_templates[$options['labelTemplate']] :\n \t(substr($options['label'], -1) == '?' ? $indicia_templates['labelNoColon'] : $indicia_templates['label']);\n $label = str_replace(\n ['{label}', '{id}', '{labelClass}'],\n [\n $options['label'],\n $options['inputId'] ?? $options['id'] ?? '',\n array_key_exists('labelClass', $options) ? \" class=\\\"$options[labelClass]\\\"\" : '',\n ],\n $labelTemplate\n );\n }\n if (!empty($options['label']) && (!isset($options['labelPosition']) || $options['labelPosition'] != 'after')) {\n $r .= $label;\n }\n // Output the main control.\n $control = self::apply_replacements_to_template($indicia_templates[$template], $options);\n $addons = '';\n\n if (isset($options['afterControl'])) {\n $addons .= $options['afterControl'];\n }\n // Add a lock icon to the control if the lockable option is set to true.\n if (array_key_exists('lockable', $options) && $options['lockable'] === TRUE) {\n $addons .= self::apply_replacements_to_template($indicia_templates['lock_icon'], $options);\n if (!self::$using_locking) {\n self::$using_locking = TRUE;\n $options['lock_form_mode'] = self::$form_mode ? self::$form_mode : 'NEW';\n // Write lock javascript at the start of the late javascript so after\n // control setup but before any other late javascript.\n self::$late_javascript = self::apply_replacements_to_template($indicia_templates['lock_javascript'], $options) . self::$late_javascript;\n self::add_resource('indicia_locks');\n }\n }\n if (isset($validationClasses) && !empty($validationClasses) && strpos($validationClasses, 'required') !== FALSE) {\n $addons .= self::apply_static_template('requiredsuffix', $options);\n }\n // Add an error icon to the control if there is an error and this option\n // set.\n if ($error && in_array('icon', $options['validation_mode'])) {\n $addons .= $indicia_templates['validation_icon'];\n }\n // If addons are going to be placed after the control, give the template a\n // chance to wrap them together with the main control in an element.\n if ($addons) {\n $r .= self::apply_replacements_to_template($indicia_templates['controlAddonsWrap'], [\n 'control' => $control,\n 'addons' => $addons,\n ]);\n }\n else {\n $r .= $control;\n }\n // Label can sometimes be placed after the control.\n if (!empty($options['label']) && isset($options['labelPosition']) && $options['labelPosition'] == 'after') {\n $r .= $label;\n }\n // Add a message to the control if there is an error and this option is\n // set.\n if ($error && in_array('message', $options['validation_mode'])) {\n $r .= self::apply_error_template($error, $options['fieldname']);\n }\n\n // Add suffix\n $r .= self::apply_static_template('suffix', $options);\n\n // If options contain a help text, output it at the end if that is the\n // preferred position.\n $r .= self::get_help_text($options, 'after');\n if (isset($options['id'])) {\n $wrap = empty($options['controlWrapTemplate']) ? $indicia_templates['controlWrap'] : $indicia_templates[$options['controlWrapTemplate']];\n $r = str_replace([\n '{control}',\n '{id}',\n '{wrapClasses}',\n ], [\n \"\\n$r\",\n str_replace(':', '-', $options['id']),\n $options['wrapClasses'],\n ], $wrap);\n }\n if (!empty($options['tooltip'])) {\n // preliminary support for\n $id = str_replace(':', '\\\\\\\\:', array_key_exists('inputId', $options) ? $options['inputId'] : $options['id']);\n $options['tooltip'] = addcslashes($options['tooltip'], \"'\");\n self::$javascript .= \"$('#$id').attr('title', '$options[tooltip]');\\n\";\n }\n return $r;\n }", "function drawOptionCriticalPath() {\r\n?>\r\n <div style=\"white-space:nowrap; <?php echo (isNewGui())?'margin-right:6px;margin-top:5px;':'position:absolute; bottom:5px;left:10px;'; ?>\" class=\"checkboxLabel\">\r\n <?php if (isNewGui()) {?><?php echo ucfirst(i18n('criticalPath'));?>&nbsp;<?php }?>\r\n <span title=\"<?php echo ucfirst(i18n('criticalPath'));?>\" dojoType=\"dijit.form.CheckBox\"\r\n type=\"checkbox\" id=\"criticalPathPlanning\" name=\"criticalPathPlanning\" class=\"whiteCheck\"\r\n <?php if ( Parameter::getUserParameter('criticalPathPlanning')=='1') {echo 'checked=\"checked\"'; } ?> > \r\n <script type=\"dojo/connect\" event=\"onChange\" args=\"evt\">\r\n saveUserParameter('criticalPathPlanning',((this.checked)?'1':'0'));\r\n refreshJsonPlanning();\r\n </script> \r\n </span>\r\n <?php if (!isNewGui()) {?>&nbsp;<?php echo i18n('criticalPath');?><?php }?>\r\n </div>\r\n<?php \r\n}", "public function options_update() {\n\t\tregister_setting( $this->plugin_name, $this->plugin_name, array($this, 'validate', 'default' => array( \"url_nerd_instance\" => \"\", \"category_weight\" => \"0.04\", \"entity_weight\" => \"0.7\" ) ) );\n\t}", "private function build_factory_meta_option_field($_meta, $_ptype = \"wccpf\") {\r\n \t$name = ($_meta[\"type\"] == \"radio\") ? 'name=\"options-'. $_meta[\"param\"] .'\"' : '';\r\n \t$html = '<ul class=\"wcff-field-layout-' . $_meta[\"layout\"] . '\">';\r\n \tforeach ($_meta[\"options\"] as $option) {\r\n \t\t$checked = '';\r\n \t\tif ($this->fields_values && isset($this->fields_values[$_meta[\"param\"]])) {\r\n \t\t\tif ($_meta[\"type\"] == \"checkbox\") {\r\n \t\t\t\t/* We have an array situation here */\r\n \t\t\t\tif (in_array($option[\"value\"], $this->fields_values[$_meta[\"param\"]])) {\r\n \t\t\t\t\t$checked = 'checked';\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t/* Straight forward comparision */\r\n \t\t\t\tif ($option[\"value\"] == $this->fields_values[$_meta[\"param\"]]) {\r\n \t\t\t\t\t$checked = 'checked';\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tif (isset($option[\"selected\"]) && $option[\"selected\"]) {\r\n \t\t\t\t$checked = 'checked';\r\n \t\t\t}\r\n \t\t}\r\n \t\t$html .= '<li><label><input '. $name .' type=\"' . $_meta[\"type\"] . '\" class=\"wcff-field-type-meta-' . $_meta[\"param\"] . '\" value=\"' . $option[\"value\"] . '\" ' . $checked . ' /> ' . $option[\"label\"] . '</label></li>';\r\n \t}\r\n \t$html .= '</ul>';\r\n \treturn $html;\r\n }", "public function getHTML() {\t\n\t\t$html = '';\n\t\tif ($this->type != 'title') $html.= '<p>'.\"\\n\";\n\t\tif ($this->type != 'info' && $this->type != 'system' && $this->type != 'title') \n\t\t\t{\t\t\t\n\t\t\t$html.= '<label id=\"label_for_'. $this->name . '\" name=\"label_for_'. $this->name . '\" for=\"'. $this->name . '\">';\n\t\t\t// special check for files item\n\t\t\tif ($this->type == 'file')\n\t\t\t\t{\n\t\t\t\tif (file_exists($_SERVER['DOCUMENT_ROOT'].'/uploads/' . $this->name))\n\t\t\t\t\t{\n\t\t\t\t\t$html.= '<a href = \"/uploads/'. $this->name .'\">'.$this->label.'</a> \n\t\t\t\t\t\t(<a href=\"javascript:void Messi.ask(\\''.DELETE.' ' .$this->name.' ?\\', \n\t\t\t\t\t\tfunction(val) { if(val==\\'Y\\') formSubmit(\\'delete\\',\\'' . $this->name . '\\');});\">'.DELETE.'</a>)';\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t$html.= $this->label.' ('.NONE.')';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\t$html.= $this->label;\n\t\t\t\t}\n\t\t\t$html.= '</label>'.\"\\n\";\n\t\t\t}\n\t\t// add dependence of the item for js managing in user interface\n\t\tif ($this->depend != 'none' or $this->depend != '') {\n\t\t\t$html.= '<input type=\"hidden\" id=\"dependance_for_'. $this->name . '\" value=\"'. $this->depend . '\" />'.\"\\n\";\n\t\t}\t\n\t\t$html.= '<input type=\"hidden\" id=\"title_for_'. $this->name . '\" value=\"'. $this->title . '\" />'.\"\\n\";\n\t\tswitch ($this->type)\n\t\t\t{\n\t\t\tcase 'text' : \n\t\t\t\t$html.= '<input id=\"'. $this->name . '\" name=\"'. $this->name . '\" value=\"'. $this->value . '\" \n\t\t\t\t\tonchange=\"display_dependance();\" />'.\"\\n\";\n\t\t\t\tbreak;\n\n\t\t\tcase 'password' : \n\t\t\t\t$html.= '<input type=\"password\" id=\"'. $this->name . '\" name=\"'. $this->name . '\" value=\"'. $this->value . '\" \n\t\t\t\t\tonchange=\"display_dependance();\" />'.\"\\n\";\n\t\t\t\tbreak;\n\n\t\t\tcase 'checkbox' : \n\t\t\t\t$html.= '<input type=\"checkbox\" id=\"'. $this->name . '\" name=\"'. $this->name . '\"' . ( ($this->value == 'on') ? \" \n\t\t\t\t\tchecked \" : \"\") . ' onchange=\"display_dependance();\" />'.\"\\n\";\n\t\t\t\tbreak;\n\n\t\t\tcase 'file' : \n\t\t\t\t$html.= '<input type=\"file\" id=\"'. $this->name . '\" name=\"'. $this->name . '\" value=\"'. $this->value . '\" />'.\"\\n\";\n\t\t\t\tbreak;\n\n\t\t\tcase 'select' :\n\t\t\t\t$html.= '<select id=\"'. $this->name . '\" name=\"'. $this->name . '\" onchange=\"display_dependance();\" >'.\"\\n\";\n\t\t\t\t$valuesPossible = explode(',',$this->values);\n\t\t\t\tforeach ($valuesPossible as $valuePossible){\n\t\t\t\t\t$html.= '<option value=\"'. $valuePossible . '\" ' . (($valuePossible == $this->value) ? \" selected \" : \"\") . '>'.\n\t\t\t\t\t(($valuePossible == \"none\") ? NONE : $valuePossible) . '</option>'.\"\\n\";\n\t\t\t\t\t}\n\t\t\t\t$html.= '</select><div style=\"clear:both\"></div>'.\"\\n\";\n\t\t\t\tbreak; \n\n\t\t\tcase 'title' : \n\t\t\t\t$html.= \"\\n\". '<h2>'.$this->label.'</h2><hr />'.\"\\n\\n\";\t\t\t\n\t\t\t\tbreak;\n\n\t\t\t// system action items\n\t\t\tcase 'system' : \n\t\t\t\t// a system item will render a button that submit the form with the configured action name in the config-map.php\n\t\t\t\t$html.= '<label></label><input class=\"button\" type=\"button\" id=\"'. $this->name . '\" name=\"'. $this->name . '\" value=\"'.$this->label.'\" \n\t\t\t\tonclick=\"new Messi(\\''.addslashes($this->help).'\\', {\n\t\t\t\t\ttitle: \\''.addslashes($this->label).'?\\', \n\t\t\t\t\tmodal: true, buttons: [{id: 0, label: \\''.YES.'\\', val: \\'Y\\'}, {id: 1, label: \\''.NO.'\\', val: \\'N\\'}], \n\t\t\t\t\tcallback: function(val) { if(val==\\'Y\\') {openTerminal();formSubmit(\\''.$this->values.'\\');}}});\" />';\n\t\t\t\tbreak;\n\n\t\t\tcase 'html' : \n\t\t\t\t// this is only arbitrary html code to display\n\t\t\t\t$html.= $this->value;\t\t\t\n\t\t\t\tbreak;\n\n\t\t\t/**\n\t\t\t * HERE YOU CAN ADD THE TYPE RENDERER YOU NEED\n\t\t\t *\n\t\t\t * case 'YOUR_TYPE' : \n\t\t\t *\t$html.= 'ANY_HTML_CODE_TO_RENDER';\n\t\t\t *\tbreak;\n\t\t\t */\n\n\t\t\tdefault : \n\t\t\t\t$html.= '<b>'.NO_METHOD_TO_RENDER_THIS_ITEM .'</b><br />Item : '.$this->name. '<br />Type : '.$this->type. '<br />'.\"\\n\"; \n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\tif ($this->type != 'title') $html.= '</p>'.\"\\n\"; \t\t\n\t\treturn $html;\n\t}", "function addOptionControl($params, $section = null) {\n // otherwise add it to the element root\n if ($section) {\n $l = $section;\n } else {\n $l = $this->El;\n }\n\n $control_type = $params['type'];\n\n if (isset($params['name'])) {\n $control_label = $params['name'];\n } else {\n throw new Exception(\"addOptionControl params['name'] must be set\");\n }\n\n // generate a unique slug for the control based on the name\n if (isset($params['slug'])) {\n $control_slug = $params['slug'];\n } else {\n $control_slug = str_replace(\" \", \"-\", $params['name']);\n $control_slug = 'slug_'.preg_replace(\"/[^A-Za-z0-9 ]/\", \"\", $control_slug);\n }\n\n $Control = $l->addControl($control_type, $control_slug, __($control_label));\n\n // option controls is not a style controls, make those auto rebuild element to avoid \"Apply param\" button\n /*$rebuild_element = isset($params['rebuild_element']) ? $params['rebuild_element'] : true; \n if ($rebuild_element) {\n $Control->rebuildElementOnChange();\n }*/\n\n if (isset($params['condition'])) {\n $Control->setCondition($params['condition']);\n }\n\n if (isset($params['value'])) {\n $Control->setValue($params['value']);\n }\n\n if (isset($params['default'])) {\n $Control->setDefaultValue($params['default']);\n }\n\n if (isset($params['base64']) && $params['base64'] == true) {\n $Control->base64();\n }\n\n return $Control;\n\n }", "public function render(Varien_Data_Form_Element_Abstract $element) {\n $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();\n return parent::render($element);\n }", "function cmh_add_options_page() {\r\n\tadd_options_page('Correct My Headings Options Page', 'Correct My Headings', 'manage_options', __FILE__, 'cmh_render_form');\r\n}", "public function example3() {\n\t\t$data = array(\n\t\t\t'Example' => array(\n\t\t\t\t'first_field' => 0,\n\t\t\t\t'second_field' => true\n\t\t\t)\n\t\t);\n\t\t$this->ExampleForm->addOptions(array('user_id' => $this->Auth->user('id')));\n\t\tif ($this->ExampleForm->validates($data)) {\n\t\t\techo 'true validations';\n\t\t} else {\n\t\t\techo 'false validation';\n\t\t}\n\t}", "public function setModifyMode() {\n $this->getElement('submit')->setLabel('Edit Test');\n }", "public function getControlHtml()\n {\n if ( isset( $this->_arrProperties['value'] ) \n && $this->_arrProperties['value'] == 1 ) {\n $this->arrAttributes['checked'] = 'checked';\n }\n \n $this->arrAttributes['type'] = 'checkbox';\n \n return parent::getControlHtml();\n }", "public function showValidation(Html $control): Html;", "public function test_create__set_options_for_element()\n {\n $options = [\n uniqid() => uniqid(),\n ];\n $elementSpec = [\n 'attributes' => [\n 'type' => 'text',\n 'name' => 'foo',\n ],\n 'options' => $options\n ];\n\n $elements = (new ElementFactory())->create($elementSpec);\n\n static::assertEquals($options, $elements->options());\n }", "public function setAutoResponderHtml($value) { $this->_autoResponderHtml = self::forceBool($value); }", "public function admin_options() {\n\n\t\t\t?>\n\t\t\t<h3>ATOS</h3>\n\t\t\t<p><?php _e('Acceptez les paiements par carte bleue grâce à Atos.', 'woothemes'); ?></p>\n\t\t\t<p><?php _e('Plugin créé par David Fiaty', 'woothemes'); ?> - <a href=\"http://www.cmsbox.fr\">http://www.cmsbox.fr</a></p>\n\t\t\t<table class=\"form-table\">\n\t\t\t<?php\n\t\t\t\t// Generate the HTML For the settings form.\n\t\t\t\t$this->generate_settings_html();\n\t\t\t?>\n\t\t\t</table><!--/.form-table-->\n\t\t\t<?php\n\t\t}", "public function metaform()\n {\n $validation = $this->getValidationData();\n $validation['extension'] = array(\n 'args' => array(\n 'extension',\n '3gp|aaf|asf|avchd|avi|cam|dat|dsh|fla|flr|flv|m1v|m2v|m4v|mng|mp4|mxf|nsv|ogg|rm|roq|smi|sol|svi|swf|wmv|wrap|mkv|mov|mpe|mpeg|mpg',\n ),\n 'message' => __( 'You can add only video.', 'wpv-views' ),\n );\n $this->setValidationData($validation);\n return parent::metaform(); \n }", "public function init()\r\n\t{\r\n\t\t$cssClass = $this->stacked ? 'form-stacked' : '';\r\n\r\n\t\tif (!isset($this->htmlOptions['class']))\r\n\t\t\t$this->htmlOptions['class'] = $cssClass;\r\n\t\telse\r\n\t\t\t$this->htmlOptions['class'] .= ' '.$cssClass;\r\n\r\n\t\tif ($this->errorMessageType === 'inline')\r\n\t\t\t$this->errorMessageCssClass = 'help-inline';\r\n\t\telse\r\n\t\t\t$this->errorMessageCssClass = 'help-block';\r\n\r\n\t\tparent::init();\r\n\t\techo BootHtml::openTag('fieldset');\r\n\r\n\t\tif ($this->legend !== null)\r\n\t\t{\r\n\t\t\techo BootHtml::openTag('legend');\r\n\t\t\techo BootHtml::encode($this->legend);\r\n\t\t\techo BootHtml::closeTag('legend');\r\n\t\t}\r\n\t}", "abstract function options();", "function uultra_update_user_widget_customization()\r\n\t{\r\n\t\tglobal $xoouserultra;\t\t\r\n\t\t\r\n\t\t$html =\"\";\r\n\t\t$user_id = get_current_user_id();\r\n\t\t\r\n\t\t$widget_id = $_POST[\"widget_id\"];\r\n\t\t$widget_custom_text = $_POST[\"widget_custom_text\"];\r\n\t\t$custom_user_optons = 'uultra_custom_user_widget_id_' .$widget_id;\r\n\t\t\r\n\t}", "public function field_field_option_form( $field, $display, $values )\n {\n }", "public function render_screen_options()\n {\n }", "public function configure()\n {\n $this->widgetSchema->setHelp('rate', 'Your contact email address');\n $this->widgetSchema->setOption('form_formatter', 'list2');\n }", "function option_definition() {\n $options = parent::option_definition();\n $options['make_autocompletable'] = array('default' => array());\n return $options;\n }", "public function testConfigureOptions()\n {\n $multiLanguagesManager = $this->multiLanguagesManager;\n $resolverMock = Phake::mock('Symfony\\Component\\OptionsResolver\\OptionsResolver');\n\n $this->form->configureOptions($resolverMock);\n\n Phake::verify($resolverMock)->setDefaults(array(\n 'embedded' => true,\n 'class' => $this->statusClass,\n 'choice_label' => function ($choice) use ($multiLanguagesManager) {\n return $multiLanguagesManager->choose($choice->getLabels());\n },\n ));\n }", "public function build_user_field($_meta, $_ptype = \"wccpf\", $_global_clonable = \"no\", $_group_clonable = \"no\", $_wrapper = true) { \r\n $html = ''; \r\n /* Load the config option object */\r\n $wccpf_options = wcff()->option->get_options();\r\n \r\n /* Whether to add numeric index to the name attribute ( yes incase of fields cloning enabled ) */\r\n $name_index = $_global_clonable == \"yes\" ? \"_1\" : \"\"; \r\n \r\n $readonly = isset($_meta[\"show_as_read_only\"]) ? $_meta[\"show_as_read_only\"] : \"no\";\r\n $readonly = ($readonly == \"yes\") ? \"disabled\" : \"\";\r\n $cloneable = isset($_meta[\"cloneable\"]) ? $_meta[\"cloneable\"] : \"yes\";\r\n $cloneable = ($_group_clonable == \"yes\") ? ('data-cloneable=\"'. $cloneable .'\"') : '';\r\n $show_as_value = isset($_meta[\"showin_value\"]) ? $_meta[\"showin_value\"] : \"no\";\r\n $is_private = isset($_meta[\"login_user_field\"]) ? $_meta[\"login_user_field\"] : \"no\";\r\n $field_class = isset($_meta[\"field_class\"]) ? $_meta[\"field_class\"] : \"\";\r\n /* check is pricing rules is availbe */\r\n $has_pricing_rule = isset( $_meta[\"pricing_rules\"] ) && isset($wccpf_options[\"enable_ajax_pricing_rules\"]) && $wccpf_options[\"enable_ajax_pricing_rules\"] == \"enable\" ? \"yes\" : \"no\";\r\n if ($is_private == \"yes\" && ! is_user_logged_in()) {\r\n /* Well looks like this field is available only for logged in users */\r\n return \"\";\r\n }\r\n \r\n /* Check for roles */\r\n if ($is_private == \"yes\" && (isset($_meta[\"show_for_roles\"]) && is_array($_meta[\"show_for_roles\"]) && !empty($_meta[\"show_for_roles\"]))) {\r\n $can = false;\r\n foreach ($_meta[\"show_for_roles\"] as $role) {\r\n if (current_user_can($role)) {\r\n $can = true;\r\n }\r\n }\r\n if (!$can) {\r\n /* User not have the role */\r\n return \"\";\r\n }\r\n }\r\n \r\n /* Identify the field's type and start rendering */\r\n if ($_meta[\"type\"] == \"text\" || $_meta[\"type\"] == \"email\" || $_meta[\"type\"] == \"number\" || $_meta[\"type\"] == \"datepicker\" || $_meta[\"type\"] == \"colorpicker\") {\r\n $html = $this->build_input_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper, $has_pricing_rule);\r\n } else if ($_meta[\"type\"] == \"textarea\") {\r\n $html = $this->build_textarea_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper, $has_pricing_rule);\r\n } else if ($_meta[\"type\"] == \"radio\") {\r\n $html = $this->build_radio_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper, $has_pricing_rule);\r\n } else if ($_meta[\"type\"] == \"checkbox\") {\r\n $html = $this->build_checkbox_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper, $has_pricing_rule);\r\n } else if ($_meta[\"type\"] == \"select\") {\r\n $html = $this->build_select_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper, $has_pricing_rule);\r\n } else if ($_meta[\"type\"] == \"file\") {\r\n $html = $this->build_file_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper, $has_pricing_rule);\r\n } else if ($_meta[\"type\"] == \"hidden\") {\r\n $html = $this->build_input_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, false);\r\n } else if ($_meta[\"type\"] == \"url\") {\r\n $html = $this->build_url_field($_meta, $_ptype, $field_class, $name_index, $show_as_value, $readonly, $cloneable, $_wrapper);\r\n } else if ($_meta[\"type\"] == \"label\") {\r\n $html = $this->build_label_field($_meta, $_ptype, $field_class, $name_index, $cloneable);\r\n } else if ($_meta[\"type\"] == \"html\") {\r\n $html = $_meta[\"html\"];\r\n } else {\r\n /* Unlikely */\r\n $html = '';\r\n }\r\n \r\n /* Final html tag */\r\n return $html;\r\n }", "private function renderOptions(): string\n {\n $str = '';\n if ($this->defaultText !== false) {\n $option = new OptionElement();\n $option->text = $this->defaultText;\n $option->value = $this->defaultValue;\n $str .= $option->render();\n }\n foreach ($this->arrOption as $option) {\n $this->setAutoOptionTitle($option);\n $str .= $option->render();\n }\n\n return $str;\n }", "function checkbox_control_display($form, $mform, $customdata, $field, $as_filter = false, $contextname = 'system') {\n if (!($form instanceof moodleform)) {\n $mform = $form;\n $form->_customdata = null;\n }\n $manual = new field_owner($field->owners['manual']);\n $manual_params = unserialize($manual->params);\n if (!empty($manual_params['options_source']) || !empty($manual_params['options'])) {\n if ($as_filter || $field->multivalued) {\n// require_once(CURMAN_DIRLOCATION.'/plugins/manual/field_controls/menu.php');\n require_once elis::plugin_file('elisfields_manual', 'field_controls/menu.php');\n return menu_control_display($form, $mform, $customdata, $field, $as_filter);\n }\n $options = array();\n if (!empty($manual_params['options'])) {\n $options = explode(\"\\n\", $manual_params['options']);\n }\n $source = '';\n if (!empty($manual_params['options_source'])) {\n $source = $manual_params['options_source'];\n }\n if (!empty($source)) {\n $srcfile = elis::plugin_file('elisfields_manual', \"sources/{$source}.php\");\n if (file_exists($srcfile)) {\n require_once elis::plugin_file('elisfields_manual','sources.php');\n require_once($srcfile);\n $classname = \"manual_options_{$source}\";\n $plugin = new $classname();\n if ($plugin && $plugin->is_applicable($contextname)) {\n $options = $plugin->get_options($customdata);\n }\n }\n }\n $controls = array();\n foreach ($options as $option) {\n $option = trim($option);\n if ($field->multivalued) {\n // FIXME: this doesn't work\n $cb = $controls[] = &$mform->createElement('checkbox', \"field_{$field->shortname}\", null, $option);\n $cb->updateAttributes(array('value'=>$option));\n } else {\n $controls[] = &$mform->createElement('radio', \"field_{$field->shortname}\", null, $option, $option);\n }\n }\n $mform->addGroup($controls, \"field_{$field->shortname}\", $field->name, '<br />', false);\n } else {\n $checkbox = $mform->addElement('advcheckbox', \"field_{$field->shortname}\", $field->name);\n }\n manual_field_add_help_button($mform, \"field_{$field->shortname}\", $field);\n}", "function ajb_options_init(){\n\tregister_setting( 'ajb_option_group', 'ajb_options', 'ajb_options_validate' );\n}", "public function display_option_generator() {\n\n\t\t$desc = __( 'If our plugin\\'s shortcode generator causes any unwanted clutter or doesn\\'t fully jive with your WordPress setup, you can disable it here.', 'theme-blvd-shortcodes' );\n\t\t$this->display_yes_no( 'themeblvd_shortcode_generator', $desc, 'yes' );\n\n\t}", "function faculty_create_options($compare, $type) {\n \n switch($type) {\n case \"border\":\n // border styles\n $options = array(\n array('None', 'none'),\n array('Solid', 'solid'),\n array('Dashed', 'dashed'),\n array('Dotted', 'dotted'),\n array('Double', 'double'),\n array('Groove', 'groove'),\n array('Ridge', 'ridge'),\n array('Inset', 'inset'),\n array('Outset', 'outset')\n );\n break;\n case \"family\":\n //font-family sets\n $options = array(\n array('Arial', 'Arial, Helvetica, sans-serif'),\n array('Arial Black', \"'Arial Black', Gadget, sans-serif\"),\n array('Century Gothic', \"'Century Gothic', sans-serif\"),\n array('Courier New', \"'Courier New', Courier, monospace\"),\n array('Georgia', 'Georgia, serif'),\n array('Lucida Console', \"'Lucida Console', Monaco, monospace\"),\n array('Lucida Sans Unicode', \"'Lucida Sans Unicode', 'Lucida Grande', sans-serif\"),\n array('Palatino Linotype', \"'Palatino Linotype', 'Book Antiqua', Palatino, serif\"),\n array('Tahoma', 'Tahoma, Geneva, sans-serif'),\n array('Times New Roman', \"'Times New Roman', serif\"),\n array('Trebuchet MS', \"'Trebuchet MS', Helvetica, sans-serif\"),\n array('Verdana', 'Verdana, Geneva, sans-serif')\n );\n $options = apply_filters('faculty_font_family_options', $options);\n sort($options);\n array_unshift($options, array('Inherit', 'inherit')); // Adds Inherit option as first option.\n break;\n case \"style\":\n // font-style options\n $options = array(\n array('Normal', 'normal'),\n array('Italic', 'italic')\n );\n break;\n case \"variant\":\n // font-variant options\n $options = array(\n array('Normal', 'normal'),\n array('Small-Caps', 'small-caps')\n );\n break;\n case \"weight\":\n // font-weight options\n $options = array(\n array('Normal', 'normal'),\n array('Bold', 'bold')\n );\n break;\n case \"align\":\n // text-align options\n $options = array(\n array('Left', 'left'),\n array('Center', 'center'),\n array('Right', 'right'),\n array('Justify', 'justify')\n );\n break;\n case \"decoration\":\n // text-decoration options\n $options = array(\n array('None', 'none'),\n array('Underline', 'underline'),\n array('Overline', 'overline')\n // Include line-through?\n );\n break;\n case \"transform\":\n // text-transform options\n $options = array(\n array('None', 'none'),\n array('Capitalize', 'capitalize'),\n array('Lowercase', 'lowercase'),\n array('Uppercase', 'uppercase')\n );\n break;\n case \"background\":\n // background color options\n $options = array(\n array('Color (Hex)', 'hex'),\n array('Inherit', 'inherit'),\n array('Transparent', 'transparent')\n );\n break;\n case \"color\":\n // font color options\n $options = array(\n array('Color (Hex)', 'hex'),\n array('Inherit', 'inherit')\n );\n break;\n default:\n $options = '';\n }\n if ( is_array($options) ) {\n $output = '';\n foreach ($options as $option) {\n $output .= '<option value=\"'. esc_attr($option[1]) . '\" title=\"' . esc_attr($option[1]) . '\" ' . selected(esc_attr($option[1]), esc_attr($compare), false) . '>' . __($option[0], FACULTY_DOMAIN) . '</option>';\n }\n } else {\n $output = '<option>'.__('Select type was not valid.', FACULTY_DOMAIN).'</option>';\n }\n return $output;\n}", "private function _generateOptions(array $options, $isLabel)\n {\n $this->_htmlContent = '';\n\n for ($i = 0; $i < count($options); $i++) {\n\n if ($i > 0) {\n $this->_htmlContent .= '<li class=\"componentLanguageChangerOptionGlue\"><p>' . $this->_glue . '</p></li>';\n }\n\n $selectedClass = WebConstants::getLanTag() == WebConfigurationBase::$LOCALES[$i] ? ' componentLanguageChangerOptionSelected' : '';\n\n if ($isLabel) {\n $label = '<p>' . $options[$i] . '</p>';\n } else {\n $label = '<img src=\"' . $options[$i] . '\">';\n }\n\n // Get the language\n $lan = substr(WebConfigurationBase::$LOCALES[$i], 0, 2);\n\n $this->_htmlContent .= '<li class=\"componentLanguageChangerOption' . $selectedClass . '\" ';\n $this->_htmlContent .= 'locale=\"' . $lan . '\">';\n $this->_htmlContent .= '<a href=\"' . UtilsHttp::getSectionUrl(WebConstants::getSectionName(), UtilsHttp::getEncodedParamsArray(), UtilsHttp::getDummy(), substr(WebConfigurationBase::$LOCALES[$i], 0, 2)) . '\">' . $label . '</a></li>';\n }\n }", "function __construct($label='', $options=array(), $value='', $attr=NULL) {\n parent::__construct($label, $value, False, $attr);\n $this->options = $options;\n }", "public function setIdUsuAlt($value,$options=array('required'=>true)){ \n $this->_data['id_usu_alt'] = new ZendT_Type_Number($value,array('numDecimal'=>null));\n if ($options['db'])\n $this->_data['id_usu_alt']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function testGetUserOptions()\n\t{\n\t}", "protected function configure($options = array(), $attributes = array())\n {\n parent::configure($options, $attributes);\n\n $this->setOption('type', 'hidden');\n $this->addOption('edit_mode', true);\n $this->addOption('no_file_label', '<span>No file selected.</span>');\n $this->addOption('set_label', 'Choose a file');\n $this->addOption('with_replace', true);\n $this->addOption('replace_label', 'Choose a different file');\n $this->addOption('with_delete', true);\n $this->addOption('delete_label', 'Remove file');\n $this->addOption('template', '%file%<br />%input% %replace% %delete%<br /><br />');\n }", "public function getControl(): Html\n {\n $html = parent::getControl();\n $classNames = $html->getAttribute('class');\n $classNames['custom-select'] = true;\n $html->setAttribute('class', $classNames);\n return $html;\n }", "public function postOptionsAction()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t$userModel = new Application_Model_User;\r\n\t\t\t$user = $userModel->getAuth();\r\n\r\n\t\t\tif ($user == null || !$user['is_admin'])\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('You are not authorized to access this action');\r\n\t\t\t}\r\n\r\n\t\t\t$user_id = $this->_request->getParam('user_id');\r\n\r\n\t\t\tif (!v::optional(v::intVal())->validate($user_id))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect user ID value');\r\n\t\t\t}\r\n\r\n\t\t\tif (trim($user_id) !== '')\r\n\t\t\t{\r\n\t\t\t\tif (!$userModel->checkId($user_id, $customUser))\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new RuntimeException('Incorrect user ID: ' .\r\n\t\t\t\t\t\tvar_export($user_id, true));\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->view->customUser = $customUser;\r\n\t\t\t}\r\n\r\n\t\t\t$this->view->layout()->setLayout('iframe');\r\n\t\t\t$this->view->headLink()->appendStylesheet(My_Layout::assetUrl(\r\n\t\t\t\t'bower_components/jquery-ui/themes/base/jquery-ui.min.css'));\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\tdie($e instanceof RuntimeException ? $e->getMessage() :\r\n\t\t\t\t'Internal Server Error');\r\n\t\t}\r\n\t}", "public function setRequired($required = true) {}", "public function modalContent() {\n\n $fields = array( __( 'Template Rule Settings', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ) => array() );\n $sKey = key( $fields );\n\n //------------------------------------------------------------------\n // GENERIC PARAM\n //------------------------------------------------------------------\n\n $helpContent = $this->helpContent( __( 'Choose the value of this generic param.', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ),\n __( 'Choose the value of this generic param. It is set only for process flowing, and it is not used anywhere in your WordPress environment.', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ) );\n\n $fields[$sKey][] = array(\n array(\n 'type' => WPDKUIControlType::CUSTOM,\n 'content' => $helpContent\n )\n );\n\n $fields[$sKey][] = array(\n array(\n 'type' => WPDKUIControlType::TEXT,\n 'name' => $this->_model->id() . '-generic-param',\n 'value' => $this->_model->genericParam(),\n 'label' => array(\n 'value' => __( 'Generic Param', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN ),\n 'data' => array( 'placement' => 'right' )\n ),\n 'size' => 24,\n 'title' => __( 'Enter the value of this generic param. It is set only for process flowing, and it is not used anywhere in your WordPress environment.', WPXDEFLECTOREXTENSIONTEMPLATE_TEXTDOMAIN )\n )\n );\n\n $layout = new WPDKUIControlsLayout( $fields );\n\n // Build output buffer\n $outputBuffer = '<form name=\"' . $this->_model->id() . '-form\" method=\"POST\" action=\"\">' .\n $layout->html() .\n '</form>';\n\n return $outputBuffer;\n\n }", "public function setRequired($required = true) {}", "function option_string($label, $name, $value='', $size='', $comment='', $class='') {\r\n\t\tif (!empty($class))\r\n\t\t\t$class = \"class='$class'\";\r\n\r\n\t\techo \"<tr valign='top'><th scope='row'>\" . $label . \"</th>\";\r\n\t\techo \"<td $class><input type='text' id='$name' name='$name' value='$value' size='$size'/> $comment</td>\";\r\n\t\techo \"</tr>\";\r\n\t}", "function drawOptionResource() {\r\n global $saveShowNullAssignment, $saveShowProject;?>\r\n <table width=\"100%\">\r\n <tr class=\"checkboxLabel\">\r\n <td style=\"min-width:80px;<?php if (!isNewGui()) echo 'text-align:right;padding-right:10px;';?>\"><?php echo ucfirst(i18n(\"labelShowAssignmentWithoutWork\".((isNewGui())?'':'Short')));?></td>\r\n <td style=\"width:36px\">\r\n <div title=\"<?php echo i18n('titleShowAssignmentWithoutWork')?>\" dojoType=\"dijit.form.CheckBox\" \r\n type=\"checkbox\" id=\"listShowNullAssignment\" name=\"listShowNullAssignment\" class=\"whiteCheck\" \r\n <?php if ($saveShowNullAssignment=='1') { echo ' checked=\"checked\" '; }?> >\r\n <script type=\"dojo/method\" event=\"onChange\" >\r\n saveUserParameter('listShowNullAssignment',((this.checked)?'1':'0'));\r\n refreshJsonPlanning();\r\n </script>\r\n </div>&nbsp;\r\n </td>\r\n </tr>\r\n <tr class=\"checkboxLabel\">\r\n <td style=\"min-width:80px;<?php if (!isNewGui()) echo 'text-align:right;padding-right:10px;';?>\"><?php echo ucfirst(i18n(\"labelShowProjectLevel\".((isNewGui())?'':'Short')));?></td>\r\n <td tyle=\"width:36px\">\r\n <div title=\"<?php echo i18n('showProjectLevel')?>\" dojoType=\"dijit.form.CheckBox\" \r\n type=\"checkbox\" id=\"listShowProject\" name=\"listShowProject\" class=\"whiteCheck\"\r\n <?php if ($saveShowProject=='1') { echo ' checked=\"checked\" '; }?> >\r\n <script type=\"dojo/method\" event=\"onChange\" >\r\n saveUserParameter('planningShowProject',((this.checked)?'1':'0'));\r\n refreshJsonPlanning();\r\n </script>\r\n </div>&nbsp;\r\n </td>\r\n </table>\r\n<?php \r\n}", "protected function applyCustomSettings()\n {\n $this->disable(array('read_counter', 'edit_counter', 'deleted_at', 'version', 'creator_user_id', 'created_at'));\n \n $this['updated_at']->setMetaWidgetClassName('ullMetaWidgetDate');\n \n //configure subject\n $this['subject']\n ->setLabel('Subject')\n ->setWidgetAttribute('size', 50)\n ->setMetaWidgetClassName('ullMetaWidgetLink');\n \n //configure body\n $this['body']\n ->setMetaWidgetClassName('ullMetaWidgetFCKEditor')\n ->setLabel('Text');\n \n // configure access level\n $this['ull_wiki_access_level_id']->setLabel(__('Access level', null, 'ullWikiMessages'));\n \n $this['is_outdated']->setLabel(__('Is outdated', null, 'ullWikiMessages'));\n \n // configure tags\n $this['duplicate_tags_for_search']\n ->setLabel('Tags')\n ->setMetaWidgetClassName('ullMetaWidgetTaggable');\n \n if ($this->isCreateOrEditAction())\n {\n $this->disable(array('id', 'updator_user_id', 'updated_at'));\n } \n\n if ($this->isListAction())\n {\n $this->disableAllExcept(array('id', 'subject'));\n $this->enable(array('updator_user_id', 'updated_at'));\n } \n }" ]
[ "0.6084597", "0.58542883", "0.57687765", "0.55652785", "0.5563979", "0.5489098", "0.5446164", "0.54012877", "0.5399815", "0.5393554", "0.53650963", "0.536326", "0.53500986", "0.53425664", "0.5330611", "0.53249204", "0.5296109", "0.5295393", "0.5295367", "0.52951366", "0.528529", "0.528512", "0.5277559", "0.5271399", "0.52700865", "0.52688414", "0.5260862", "0.52547616", "0.52532953", "0.5253161", "0.525158", "0.52247244", "0.5223488", "0.52225274", "0.5219592", "0.5217536", "0.51964915", "0.5189288", "0.5182408", "0.5164325", "0.51599365", "0.5155617", "0.5144458", "0.5143453", "0.51398045", "0.5137519", "0.5134295", "0.51126033", "0.5111345", "0.511054", "0.51064855", "0.5102926", "0.5101234", "0.5096345", "0.509152", "0.5082631", "0.5073624", "0.5069265", "0.5062157", "0.50552934", "0.504909", "0.50487155", "0.5048451", "0.5047244", "0.50441045", "0.5038892", "0.5028626", "0.5027599", "0.5024378", "0.500999", "0.500823", "0.5003311", "0.50008404", "0.4998508", "0.49981788", "0.4986167", "0.49849433", "0.4983378", "0.4977316", "0.49744877", "0.49736542", "0.49736285", "0.4972366", "0.49722576", "0.49680465", "0.4966912", "0.49645936", "0.49639434", "0.49629495", "0.49617", "0.4959011", "0.49554825", "0.49547148", "0.495357", "0.49514666", "0.494699", "0.49465126", "0.49458948", "0.4944521", "0.49423647", "0.4940592" ]
0.0
-1
Generates label's HTML element.
public function getLabel() { return $this->label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render_label() {\n return xFormTemplate::apply($this->template_label, $this->options);\n }", "public function label(){\n\t\treturn '<label class=\"control-label\" for=\"'.$this->name.'\">'.$this->label.'</label>';\n\t}", "function label() {\n return \"<label>\".$this->label.\": </label>\";\n }", "private function renderLabel(): string\n {\n $str = '';\n if ($this->label) {\n $str .= '<label for=\"'.$this->getId().'\" '.$this->renderCssClass().'>'.$this->getLabel().'</label>';\n }\n\n return $str;\n }", "protected function getLabel()\n\t{\n\t\t$html = array();\n\t\t$class = $this->element['class'] ? (string) $this->element['class'] : '';\n\n\t\t$html[] = '<span class=\"spacer\">';\n\t\t$html[] = '<span class=\"before\"></span>';\n\t\t$html[] = '<span class=\"' . $class . '\">';\n\t\tif ((string) $this->element['hr'] == 'true')\n\t\t{\n\t\t\t$html[] = '<hr class=\"' . $class . '\" />';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$label = '';\n\n\t\t\t// Get the label text from the XML element, defaulting to the element name.\n\t\t\t$text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];\n\t\t\t$text = $this->translateLabel ? App::get('language')->txt($text) : $text;\n\n\t\t\t// Build the class for the label.\n\t\t\t$class = !empty($this->description) ? 'hasTip' : '';\n\t\t\t$class = $this->required == true ? $class . ' required' : $class;\n\n\t\t\t// Add the opening label tag and main attributes attributes.\n\t\t\t$label .= '<label id=\"' . $this->id . '-lbl\" class=\"' . $class . '\"';\n\n\t\t\t// If a description is specified, use it to build a tooltip.\n\t\t\tif (!empty($this->description))\n\t\t\t{\n\t\t\t\t$label .= ' title=\"'\n\t\t\t\t\t. htmlspecialchars(\n\t\t\t\t\ttrim($text, ':') . '::' . ($this->translateDescription ? App::get('language')->txt($this->description) : $this->description),\n\t\t\t\t\tENT_COMPAT, 'UTF-8'\n\t\t\t\t) . '\"';\n\t\t\t}\n\n\t\t\t// Add the label text and closing tag.\n\t\t\t$label .= '>' . $text . '</label>';\n\t\t\t$html[] = $label;\n\t\t}\n\t\t$html[] = '</span>';\n\t\t$html[] = '<span class=\"after\"></span>';\n\t\t$html[] = '</span>';\n\n\t\treturn implode('', $html);\n\t}", "public function renderLabel(){\n $row = '';\n $row .= \"<div class=\\\"$this->div_class\\\">\";\n $row .= \"<label for=\\\"$this->id\\\" class=\\\"$this->label_class\\\">$this->label</label>\";\n return $row;\n }", "public function get_option_label_html(){\n\t\t$html = \"\";\n\t\t$classes = $this->get_label_html_classes();\n\t\t$required = $this->required ? \"*\" : \"\";\n\t\t$html .= \"<{$this->element} class='$classes' for='{$this->id}'>{$this->label}{$required}</{$this->element}>\";\n\t\treturn $html;\n\t}", "protected function getLabelHtml()\n {\n $classAttribute = $this->getCustomAttributes()->getLabelClass();\n $classAttribute = $classAttribute ? ' class=\"' . $classAttribute . '\"' : \"\";\n\n $forAttribute = sprintf(' for=\"%s\"', $this->getIdAttribute());\n\n $output = '<label' . $classAttribute . $forAttribute . '>';\n $output .= $this->getLabel();\n $output .= '</label>';\n $output .= PHP_EOL;\n\n return $output;\n }", "public function generate($inside = '')\n {\n if(!empty($this->labelNote))\n {\n $labelNote = ' <span>' . $this->labelNote . '</span>';\n }\n \n return \"<label>\\n<strong>\" . $this->label . \":</strong>\\n\" . $inside . $labelNote . \"</label>\\n\";\n }", "public function generateLabels();", "public function generateLabel()\n\t{\n\t\tif ($this->strLabel == '')\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\treturn sprintf('<label for=\"ctrl_%s\" class=\"mandatory%s\"><span class=\"invisible\">%s </span>%s<span class=\"mandatory\">*</span><span class=\"invisible\"> %s</span></label>',\n\t\t\t\t\t\t$this->strId,\n\t\t\t\t\t\t(($this->strClass != '') ? ' ' . $this->strClass : ''),\n\t\t\t\t\t\t$GLOBALS['TL_LANG']['MSC']['mandatory'],\n\t\t\t\t\t\t$this->strLabel,\n\t\t\t\t\t\t$this->getQuestion());\n\t}", "public function labelTag($args) {\n $name = $this->orEq($args,'name');\n $content = $this->orEq($args,'label');\n $classes = $this->orEq($args,'classes','');\n return \"<label for='\" . esc_attr( $name ) . \"' for='\" . esc_attr( $classes ) . \"'>\" . esc_html( $content ) . \"</label>\";\n }", "public function labelTag($args) {\n $name = $this->orEq($args,'name');\n $content = $this->orEq($args,'label');\n $classes = $this->orEq($args,'classes','');\n return \"<label for='\" . esc_attr( $name ) . \"' for='\" . esc_attr( $classes ) . \"'>\" . esc_html( $content ) . \"</label>\";\n }", "public function createLabel($arrLabel){\r\n\t\treturn '<label class=\"'.$arrLabel['class'].'\">'.$arrLabel['message'].'</label>';\t\r\n\t}", "function addLabel ($for, $label, $attributes = array ())\n\t{\n\t\t$html = \"<label for=\\\"$for\\\"\";\n\t\tif ($attributes) {\n\t\t\t$html .= $this -> addAttributes($attributes);\n\t\t}\n\t\t$html .= \">$label</label>\";\n\n\t\treturn $html;\n\t}", "public function generateLabel(generateLabel $request);", "abstract function add_label();", "public function label() { }", "function label($name, $label) {\n echo \"<label for = \\\"$name\\\">$label</label>\";\n echo '<br>';\n}", "protected function getLabel()\n\t{\n\t\t$label = '';\n\n\t\tif ($this->hidden)\n\t\t{\n\t\t\treturn $label;\n\t\t}\n\n\t\t// Get the label text from the XML element, defaulting to the element name.\n\t\t$text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];\n\t\t$text = $this->translateLabel ? JText::_($text) : $text;\n\n\t\t// Build the class for the label.\n\t\t$class = !empty($this->description) ? 'hasTip hasTooltip hasTooltip' : '';\n\t\t$class = $this->required == true ? $class . ' required' : $class;\n\t\t$class = !empty($this->labelClass) ? $class . ' ' . $this->labelClass : $class;\n\n\t\t// Add the opening label tag and main attributes attributes.\n\t\t$label .= '<label id=\"' . $this->id . '-lbl\" for=\"' . $this->id . '\" class=\"' . $class . '\"';\n\n\t\t// If a description is specified, use it to build a tooltip.\n\t\tif (!empty($this->description))\n\t\t{\n\t\t\t$label .= ' title=\"'\n\t\t\t\t. htmlspecialchars(\n\t\t\t\ttrim($text, ':') . '<br />' . ($this->translateDescription ? JText::_($this->description) : $this->description),\n\t\t\t\tENT_COMPAT, 'UTF-8'\n\t\t\t) . '\"';\n\t\t}\n $width = $this->element['labelwidth'] ? $this->element['labelwidth'] : '150px';\n $styles = ' style=\"min-width:'.$width.';max-width:'.$width.';width:'.$width.';\"';\n\t\t// Add the label text and closing tag.\n\t\tif ($this->required)\n\t\t{\n\t\t\t$label .= $styles.'>' . $text . '<span class=\"star\">&#160;*</span></label>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$label .= $styles.'>' . $text . '</label>';\n\t\t}\n\n\t\treturn $label;\n\t}", "function getLabel($label, $id, $required=false, $style='float:left;width:250px;') {\r\n if($required) $star = \"*\";\r\n return \"<label for='\".$id.\"' id='\".$id.\"_label' style='\".$style.\"'>\".$label.$star.\"</label>\";\r\n }", "public function get_label_input()\n\t{\n\t\t$s = $this->get_html();\n\t\tif ( !empty($s) ){\n\t\t\tif ( BBN_IS_DEV ){\n\t\t\t\t$title = str_replace('\"','',print_r($this->cfg,true));\n\t\t\t}\n\t\t\telse if ( isset($this->options['title']) ){\n\t\t\t\t$title = $this->options['title'];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$title = '';\n\t\t\t}\n\t\t\t$s = '<label class=\"appui-form-label\" title=\"'.$title.'\">'.$this->label.'</label><div class=\"appui-form-field\">'.$s.'</div>';\n\t\t}\n\t\treturn $s;\n\t}", "public function getLabel() {}", "public function getLabel() {}", "public function get_label();", "public function get_label();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel()\n\t{\n\t\t$label = parent::getLabel();\n\t\t$label->for = $this->getId();\n\t\treturn $label;\n\t}", "public function label();", "public function label();", "public function label();", "public function label();", "public function label();", "public function label();", "public function label();", "public function label();", "public abstract function label();", "function addLabelFor($forID, $text, $attr_ar = array() ) { \n $str = \"<label for=\\\"$forID\\\"\"; \n if ($attr_ar) { \n $str .= addAttributes( $attr_ar ); \n } \n $str .= \">$text</label>\"; \n return $str; \n }", "function getLabel()\n\t{\n\t\treturn '';\n\t}", "public function getLabel()\n {\n }", "public function getLabel()\n {\n }", "public static function label($label_text='', $for_id='', $attributes='') {\n\t\t\t$output = HtmlHelper::label_open($for_id, $attributes);\n\t\t\t$output .= $label_text;\n\t\t\t$output .= HtmlHelper::label_close();\n\t\t\treturn $output;\n\t\t}", "public function create()\n {\n $html = $this->createHorizontalLabels();\n $html .= $this->createVerticalLabels();\n\n return $html;\n }", "public function setLabel($label) {\n return $this->setAttribute('label', $label);\n }", "abstract public function getLabel();", "public function testGetLabelHtml() {\r\n\t\t$this->testObject->setLabel ( 'hello' );\r\n\t\t\r\n\t\t$expectedHtml = '<label id=\"' . self::TEST_CONTROL_ID . '_label\" for=\"' . self::TEST_CONTROL_ID . '\">hello</label>';\r\n\t\t$actualHtml = $this->testObject->getLabelHtml ();\r\n\t\t\r\n\t\techo \"\\nACTUAL LABEL HTML:\\n$actualHtml\";\r\n\t\t\r\n\t\t$this->assertTrue ( $expectedHtml == $this->testObject->getLabelHtml (), 'incorrect label html found' );\r\n\t}", "public function label()\n {\n $result = $this->title;\n if ($this->tags) {\n $tags = '[' . implode('] [', preg_split('/\\s*,\\s*/', $this->tags)) . ']';\n $result .= ' <span style=\"font-weight:bold;padding-left:20px;float:right;\">' . $tags . '</span>';\n }\n return $result;\n }", "public function getLabel() {\n\t}", "public function setLabel($label) {\r\n\t\t$node = new Larc_Html_Element($this->labelTag, $label, array('class' => $this->labelClass), $this);\r\n\t\tif(!$this->labelNode) {\r\n\t\t\t$this->labelNode = $this->insertFirst($node);\r\n\t\t} else {\r\n\t\t\t$this->labelNode->nodeValue = $label;\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->labelNode;\r\n\t}", "abstract protected function label(): string;", "protected function accessibility_label() {\n global $OUTPUT;\n $label = html_writer::span($this->field->name, 'accesshide');\n if ($this->field->required) {\n $icon = $OUTPUT->pix_icon('req', get_string('requiredelement', 'form'));\n $label .= html_writer::div($icon, 'inline-req');\n }\n return html_writer::tag('label', $label, array('for' => 'field_'.$this->field->id));\n }", "public static function label($model,$attribute,$caption,$properties=array()) {\n $attr = self::getNameID($model, $attribute,false,true);\n $label_attributes = self::getInputAttributes($attr,$properties);\n $label = '<label ' . $label_attributes . '>';\n $label.= $caption .'</label>';\n return $label;\n }", "public static function label()\n {\n }", "function getLabel(): string;", "public function __toString()\n\t{\n\t\t$spaceLeft = 12 - $this->getLabelWidth();\n\t\t$missingWidth = array();\n\n\t\tforeach ($this->_inputs as $input)\n\t\t{\n\t\t\t$width = $input->getWidth();\n\n\t\t\tif (isset($width))\n\t\t\t\t$spaceLeft -= $width;\n\t\t\telse\n\t\t\t\tarray_push($missingWidth, $input);\n\t\t}\n\n\t\tforeach ($missingWidth as $input)\n\t\t\t$input->setWidth($spaceLeft / count($missingWidth));\n\n\t\t$target = $this->_labelTarget->getName();\n\t\t$inputs = implode('', $this->_inputs);\n\t\t$help = isset($this->_help) ? '<div class=\"col-sm-'. (12 - $this->getLabelWidth()) .' col-sm-offset-'. $this->getLabelWidth() .'\"><span class=\"help-block\">'. gettext($this->_help). '</span></div>' : '';\n\n\t\treturn <<<EOT\n\t<div {$this->getHtmlClass()}>\n\t\t<label for=\"{$target}\" class=\"col-sm-{$this->getLabelWidth()} control-label\">\n\t\t\t{$this->_title}\n\t\t</label>\n\n\t\t{$inputs}\n\t\t{$help}\n\t</div>\nEOT;\n\t}", "public function GetLabel();", "function build_label($labels, $noLimit = false, $customTemplate = '')\n {\n $tags = '';\n\n if (count($labels) > 0) {\n foreach ($labels as $key => $label) {\n if (!$customTemplate) {\n $tags .= '#' . $label . ' ';\n\n if ($key > 1 && !$noLimit) {\n break;\n }\n } else {\n $tags .= str_replace(':name', $label, $customTemplate);\n }\n }\n } else {\n\n if ($customTemplate) {\n $tags = str_replace(':name', 'NoTag', $customTemplate);\n } else {\n $tags = '#NoTag';\n }\n\n }\n\n return $tags;\n }", "public function testCreateLabel()\n {\n $label = Tag::label();\n $this->assertEquals(trim((string) $label), \"<label>\\n</label>\");\n $this->assertEquals($label->getJson(), '[[\"label\",\"\",\"\",[]]]');\n\n $label->setAttribute('title', 'Click me');\n $this->assertEquals(trim((string) $label), \"<label title=\\\"Click me\\\">\\n</label>\");\n $this->assertEquals($label->getJson(), '[[\"label\",\" title=\\\"Click me\\\"\",\"\",[]]]');\n $this->assertEquals($label->getAttribute('title'), 'Click me');\n\n $label = Tag::label();\n $label->setAttributes(['title' => 'Click me']);\n $this->assertEquals(trim((string) $label), \"<label title=\\\"Click me\\\">\\n</label>\");\n $this->assertEquals($label->getAttributes(), ['title' => 'Click me']);\n\n $label->input(['value' => 'test']);\n $this->assertEquals(trim((string) $label), \"<label title=\\\"Click me\\\">\\n <input value=\\\"test\\\"/>\\n</label>\");\n $this->assertEquals($label->getJson(), '[[\"label\",\" title=\\\"Click me\\\"\",\"\",[[\"<input value=\\\"test\\\"\\/>\"]]]]');\n\n $this->assertEquals($label->getJson(['ignore_tags' => 'label']), '[[\"<input value=\\\"test\\\"\\/>\"]]');\n }", "function minorite_form_element_label($variables) {\n $element = $variables['element'];\n\n // If title and required marker are both empty, output no label.\n if ((!isset($element['#title']) || $element['#title'] === '')) {\n return '';\n }\n\n // If the element is required, a required marker is appended to the label.\n $required = !empty($element['#required']) ? theme('form_required_marker', array('element' => $element)) : '';\n\n $title = !empty($element['#title']) ? filter_xss_admin($element['#title']) : '';\n\n $attributes = array();\n if (!empty($element['#id'])) {\n $attributes['for'] = $element['#id'];\n }\n // Add a class for required elements to facilitate cross-browser styling.\n if (!empty($element['#required'])) {\n $attributes['class'] = array('form-required');\n }\n\n return '<label' . drupal_attributes($attributes) . '>' . $title . $required . '</label>';\n}", "function getLabel() {\r\n\t\treturn $this->requiredBold&&$this->isRequired()?div::htm_bold(ucfirst($this->label)):ucfirst($this->label);\r\n\t}", "public function label()\n {\n\n }", "public function render()\n {\n return view('components.forms.label');\n }", "public function get_label(){ return $this->label; }", "public function advanceLabel ()\r\n {\r\n $return = '\r\n </div>';\r\n if (++$this->label_column > $this->number_of_columns)\r\n {\r\n $this->label_column = 1;\r\n $return .= '\r\n </div>';\r\n if (++$this->label_row > $this->number_of_rows)\r\n {\r\n $this->label_row =1;\r\n ++$this->label_page;\r\n $return .= '\r\n </div>\r\n <div class=\"labelpage\">';\r\n }\r\n $return .= '\r\n <div class=\"labelrow\">';\r\n }\r\n $return .= '\r\n <div class=\"labelbody\">';\r\n return $return;\r\n }", "function custom_field_label_tag($name, $custom_value) {\n $out = sprintf('<label for=\"%s\" class=\"%s\">%s', \n $name.'_custom_field_values_'.$custom_value['CustomField']['id'],\n empty($this->validationErrors[Inflector::camelize($name)]['custom_field_values'][$custom_value['CustomField']['id']]) ? \"\" : \"error\",\n $custom_value['CustomField']['name']\n );\n if($custom_value['CustomField']['is_required']) {\n $out .= \" <span class=\\\"required\\\">*</span>\";\n }\n $out .= \"</label>\";\n return $out;\n }", "function buildLabel($label) {\n return check_plain($label);\n }", "public function setLabel();", "public function label()\n {\n $this->load(['trackingNumber', 'company', 'destination']);\n\n return view('labels/default', [\n 'dropoff' => $this->destination,\n 'trackingNumber' => $this->trackingNumber,\n 'company' => $this->company,\n ])->render();\n }", "private function _createLabels ()\n {\n $content = '';\n\n foreach ($this->dayLabels as $label)\n {\n $content .= Html::tag('td', $label);\n }\n\n return Html::tag('tr', $content).\"\\n\";\n }", "public abstract function printLabel($label);", "public function __toString()\n {\n return sprintf('Label: %s', $this->name);\n }", "function Field() {\n\t\t$attributes = array(\n\t\t\t'class' => $this->extraClass(),\n\t\t\t'id' => $this->id()\n\t\t);\n\t\treturn $this->createTag(\n\t\t\t'label',\n\t\t\t$attributes,\n\t\t\t($this->getAllowHTML() ? $this->title : Convert::raw2xml($this->title))\n\t\t);\n\t}", "function getLabel()\n\t{\n\t\treturn str_replace(' for=\"', ' data-for=\"', parent::getLabel());\n\t}", "public function beginLabelSheet ()\r\n {\r\n $this->label_column = 1;\r\n $this->label_row = 1;\r\n return '\r\n <div class=\"labelpage\">\r\n <div class=\"labelrow\">\r\n <div class=\"labelbody\">';\r\n }", "public function getLabel()\n\t{\n\t\techo '<div class=\"clr\"></div>';\n\t\tif ((string)$this->element['hr'] == 'true') {\n\t\t\treturn '<hr />';\n\t\t} else {\n\t\t\treturn parent::getLabel();\n\t\t}\n\t\techo '<div class=\"clr\"></div>';\n\t}", "public function getElementLabelHtml()\r\n {\r\n $element = $this->getElement();\r\n $label = $element->getLabel();\r\n if (!empty($label)) {\r\n $element->setLabel($this->__($label));\r\n }\r\n return $element->getLabelHtml();\r\n }", "public function writeLabel(\n $tag,\n Labels $labels,\n $prop,\n ?Attributes $attrs = null,\n $options = []\n ) {\n if (is_array($prop)) {\n $labelName = array_key_first($prop);\n $purpose = $prop[$labelName];\n } else {\n $labelName = $prop;\n $purpose = $prop;\n }\n if (!$labels->has($labelName)) {\n // In horizontal layouts we always generate an element\n if (\n $this->showState['form']['layout'] === 'horizontal'\n && $purpose === 'headingAttributes'\n ) {\n $text = '&nbsp;';\n } else {\n return '';\n }\n } else {\n $text = $labels->getEscaped($labelName);\n if (\\is_array($text)) {\n // Don't make a single element array a list.\n if (\\count($text) === 1) {\n $text = \\array_shift($text);\n } else {\n $text = self::writeList($text, ['escape' => false]);\n }\n }\n }\n if (isset($this->showState['form'][$purpose])) {\n $attrs = $attrs ?? new Attributes();\n $attrs = $attrs->merge($this->showState['form'][$purpose]);\n }\n $breakTag = $options['break'] ?? false;\n $html = static::writeTag($tag, $attrs)\n . $text\n . '</' . $tag . '>' . ($breakTag ? \"\\n\" : '')\n ;\n // Check to see if we should wrap this in a div.\n if (isset($options['div'])) {\n $html = '<div class=\"' . $options['div'] . '\">' . \"\\n\"\n . $html . ($breakTag ? '' : \"\\n\") . \"</div>\\n\";\n }\n return $html;\n }", "public function getFrontendLabel();", "public function getLabel(): string;", "public function getLabel(): string;", "function label_text_combo($label, $value) {\n\n// function \\k1lib\\html\\input_label_combo(&$field_name, &$value, &$table_config_array, &$error_msg = \"\") {\n// $label_object = new html_classes\\label($label, \"\", \"right inline\");\n\n $html_template = load_html_template(\"label-input-combo\");\n $html_code = sprintf($html_template, $label, $value);\n\n return $html_code;\n}", "public function testLabelWithNamedElement()\n {\n $input = new Formulaic\\Text('test');\n $label = new Formulaic\\Label('Label', $input);\n yield assert(\"$label\" == <<<EOT\n<label for=\"test\">Label</label>\n<input id=\"test\" name=\"test\" type=\"text\">\nEOT\n );\n }", "public function makeLabel($label)\n {\n return $this->client->makeLabel($label);\n }", "public function renderLabel(IControl $control): Html\n {\n $suffix = $this->getValue('label suffix') . ($control->isRequired()\n ? $this->getValue('label requiredsuffix')\n : '');\n $label = $control->getLabel();\n if ($label instanceof Html) {\n $label->addHtml($suffix);\n if ($control->isRequired()) {\n $label->class($this->getValue('control .required'), true);\n }\n } elseif ($label !== null) { // @intentionally ==\n $label .= $suffix;\n }\n return $this->getWrapper('label container')->setHtml((string)$label);\n }", "public function label($value) {\n return $this->setProperty('label', $value);\n }", "public function testLabelWithElement()\n {\n $input = new Formulaic\\Text;\n $label = new Formulaic\\Label('Label', $input);\n yield assert(\"$label\" == <<<EOT\n<label>Label</label>\n<input type=\"text\">\nEOT\n );\n }", "public function setLabel() {\n }" ]
[ "0.7675705", "0.7674529", "0.761245", "0.76109695", "0.76002926", "0.75068545", "0.74875414", "0.7418551", "0.7385298", "0.73430866", "0.73090625", "0.72741884", "0.72741884", "0.72613966", "0.7246132", "0.71121913", "0.70153755", "0.70085955", "0.7001925", "0.69974893", "0.6952295", "0.68384635", "0.68020916", "0.68020916", "0.678892", "0.678892", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.6771955", "0.67640233", "0.6745405", "0.6745405", "0.6745405", "0.6745405", "0.6745405", "0.6745405", "0.6745405", "0.6745405", "0.6738002", "0.6737577", "0.67366934", "0.6702884", "0.6702884", "0.67023915", "0.6699125", "0.669354", "0.6684818", "0.66708034", "0.6659158", "0.66475564", "0.66383564", "0.66319615", "0.66177547", "0.66125596", "0.66098577", "0.6592315", "0.65916073", "0.6579157", "0.6569265", "0.6564776", "0.65617734", "0.6551205", "0.65498984", "0.65472955", "0.65375906", "0.6525979", "0.650731", "0.6495566", "0.6494916", "0.649203", "0.6480571", "0.647424", "0.64693296", "0.64615285", "0.64267236", "0.6423134", "0.64217556", "0.6420306", "0.6375227", "0.63668764", "0.6342867", "0.6342867", "0.63388366", "0.6337723", "0.632959", "0.6314282", "0.63139385", "0.63132876", "0.63104784" ]
0.0
-1
interface \ArrayAccess dg Adds the component to the container.
final public function offsetSet($name, $component) { $this->addComponent($component, $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function &container() : array ;", "function addComponent($data);", "public function addComponent($component);", "public function add(ComponentInterface $component);", "public function getComponents();", "public function getComponents();", "public function __clone() {\n $this->components = Arrays::copy($this->components);\n }", "protected function add() {\n\t}", "function componentBuilder() { $this->__construct(); }", "public function addComponent(ComponentInterface $component);", "public function add()\n\t{\n\n\t}", "public function add()\n\t{\n\n\t}", "function insertComponent($acomponent)\r\n {\r\n //Adds a component to the components list\r\n $acomponent->owner=$this;\r\n\r\n $this->_childnames[ $acomponent->_name ] = $acomponent;\r\n\r\n $this->components->add($acomponent);\r\n }", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer() {}", "public function add()\n {\n }", "public function add()\n {\n }", "public function add()\n {\n }", "protected function registerExtDirectComponents() {}", "public function getComponent()\n {\n }", "function add($object){if(is_array($this->arrayObj))\n \n {$tmp = count($this->arrayObj);$this->arrayObj[$tmp]=$object;\n\n }else{$this->arrayObj[0]=$object;}\n }", "function add($object){if(is_array($this->arrayObj))\n \n {$tmp = count($this->arrayObj);$this->arrayObj[$tmp]=$object;\n\n }else{$this->arrayObj[0]=$object;}\n }", "function getComponent()\n {\n }", "public function aclAdapterMemoryAddComponentObject(UnitTester $I)\n {\n $I->wantToTest('Acl\\Adapter\\Memory - addComponent() - object');\n\n $acl = new Memory();\n $component = new Component('Customer', 'Customer component');\n $actual = $acl->addComponent($component, ['index']);\n\n $I->assertTrue($actual);\n }", "public function createComponentDataGrid() {\n\n\t\tif(empty($this->dateRange)) {\n\t\t\t$source = $this->db->table('project')\n\t\t\t\t\t->where('project_institute:institute_id', $this->institute_id);\n\t\t} else {\n\t\t\t$source = $this->db->table('project')\n\t\t\t\t\t->where('project_institute:institute_id', $this->institute_id)\n\t\t\t\t\t->where('project_institute:project_institute_date:start >= ?', $this->dateRange->from)\n\t\t\t\t\t->where('project_institute:project_institute_date:end <= ?', $this->dateRange->to)\n\t\t\t\t\t->select('\n\t\t\t\t\t\tDISTINCT project.id,\n\t\t\t\t\t\tproject.name,\n\t\t\t\t\t\tproject.cost,\n\t\t\t\t\t\tproject.approved_cost,\n\t\t\t\t\t\tproject.participation,\n\t\t\t\t\t\tproject.approved_participation,\n\t\t\t\t\t\tproject.hr,\n\t\t\t\t\t\tproject.approved_hr\n\t\t\t\t\t');\n\t\t}\n\n\t\tif($source->count('*') <= 0) {\n\t\t\t\n\t\t\t$dg = new DataGrid();\n\t\t\t$dg->setDataSource($source);\n\n\t\t\t$dg->template->empty = true;\n\t\t\treturn $dg;\n\t\t}\n\t\t\n $dg = new DataGrid();\n $dg->setDataSource($source);\n\t\t\n $dg->addAction('edit', 'Uprav', ':Projects:Projects:edit', array('id'));\n\n $dg->addColumn('id', 'No.')->setIntFilter('project.id')->setStyle('width: 50px');\n $dg->addColumn('name', 'Name')->setTextFilter('project.name')->setStyle('text-align: left');\n\t\t$dg->addCustomColumn('cost', 'Fin. zdroje')->setIntFilter('project.cost')->setHtml(create_function('$row', '$helper = new EmptyPrice(); return $helper->process($row->cost);')); \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\n\t\t$dg->addCustomColumn('approved_cost', 'Schválené fin.zdroje')->setIntFilter('project.approved_cost')->setHtml(create_function('$row', '$helper = new EmptyPrice(); return $helper->process($row->approved_cost);'));\n\t\t$dg->addCustomColumn('participation', 'Spoluúčasť')->setIntFilter('project.participation')->setHtml(create_function('$row', '$helper = new EmptyPrice(); return $helper->process($row->participation);'));\n\t\t$dg->addCustomColumn('approved_participation', 'Schválená spoluúčasť')->setIntFilter('project.approved_participation')->setHtml(create_function('$row', '$helper = new EmptyPrice(); return $helper->process($row->approved_participation);'));\n\t\t$dg->addCustomColumn('hr', 'Ľudské zdroje')->setIntFilter('project.hr')->setHtml(create_function('$row', '$helper = new EmptyNumber(); return $helper->process($row->hr);'));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$dg->addCustomColumn('approved_hr', 'Schválené ľudské zdroje')->setIntFilter('project.approved_hr')->setHtml(create_function('$row', '$helper = new EmptyNumber(); return $helper->process($row->approved_hr);'));\n\t\treturn $dg;\n\t}", "public function createComponentProductsDatagrid()\n\t{\n\t\treturn $this->productsDatagridFactory->create();\n\t}", "function addHtmlComponent($htmlComponent) {\n $this->components[] = $htmlComponent;\n }", "public function container();", "function AddComponent( $cid, &$kfrel, $raCompConfig = array() )\r\n {\r\n return( $this->raComps[$cid] = $this->factory_SEEDFormUIComponent( $cid, $kfrel, $raCompConfig ) );\r\n }", "public function addContainer($data) {\n try {\n $client = new Zend_Soap_Client($this->CONTAINER_WSDL_URI);\n $options = array('soap_version' => SOAP_1_1,\n 'encoding' => 'ISO-8859-1',\n );\n $client->setOptions($options);\n $client->action = 'createContainer';\n $result = $client->createContainer(\n $this->toXml(\n array(\n 'backgroundColor' => $data['backgroundColor'],\n 'borderBottom' => $data['borderBottom'],\n 'borderBottomColor' => $data['borderBottomColor'],\n 'borderBottomStyle' => $data['borderBottomStyle'],\n 'borderBottomUnit ' => $data['borderBottomUnit'],\n 'borderLeft' => $data['borderLeft'],\n 'borderLeftColor' => $data['borderLeftColor'],\n 'borderLeftStyle' => $data['borderLeftStyle'],\n 'borderLeftUnit' => $data['borderLeftUnit'],\n 'borderRight' => $data['borderRight'],\n 'borderRightColor' => $data['borderRightColor'],\n 'borderRightStyle' => $data['borderRightStyle'],\n 'borderRightUnit' => $data['borderRightUnit'],\n 'borderTop' => $data['borderTop'],\n 'borderTopColor' => $data['borderTopColor'],\n 'borderTopStyle' => $data['borderTopStyle'],\n 'borderTopUnit' => $data['borderTopUnit'],\n 'bottomMargin' => $data['bottomMargin'],\n 'bottomMarginUnit' => $data['bottomMarginUnit'],\n 'bottomPadding' => $data['bottomPadding'],\n 'bottomPaddingUnit' => $data['bottomPaddingUnit'],\n 'containerHeight' => $data['containerHeight'],\n 'containerId' => $data['containerId'],\n 'containerName' => $data['containerName'],\n 'containerWidth' => $data['containerWidth'],\n 'containerXaxis' => $data['containerXaxis'],\n 'containerYaxis' => $data['containerYaxis'],\n 'css' => $data['css'],\n 'font' => $data['font'],\n 'fontAlignment' => $data['fontAlignment'],\n 'fontColor' => $data['fontColor'],\n 'fontSize' => $data['fontSize'],\n 'isActive' => true,\n 'isBold' => $data['isBold'],\n 'isBorderColorSameForAll' => $data['isBorderColorSameForAll'],\n 'isBorderStyleSameForAll' => $data['isBorderStyleSameForAll'],\n 'isBorderWidthSameForAll' => $data['isBorderWidthSameForAll'],\n 'isItalic' => $data['isItalic'],\n 'isMargineSameForAll' => $data['isMargineSameForAll'],\n 'isPaddingSameForAll' => $data['isPaddingSameForAll'],\n 'leftMargin' => $data['leftMargin'],\n 'leftMarginUnit' => $data['leftMarginUnit'],\n 'leftPadding' => $data['leftPadding'],\n 'leftPaddingUnit' => $data['leftPaddingUnit'],\n 'letterSpacing' => $data['letterSpacing'],\n 'lineHeight' => $data['lineHeight'],\n 'primaryKey' => 0,\n 'rightMargin' => $data['rightMargin'],\n 'rightMarginUnit' => $data['rightMarginUnit'],\n 'rightPadding' => $data['rightPadding'],\n 'rightPaddingUnit' => $data['rightPaddingUnit'],\n 'textDecoration' => $data['textDecoration'],\n 'topMargin' => $data['topMargin'],\n 'topMarginUnit' => $data['topMarginUnit'],\n 'topPadding' => $data['topPadding'],\n 'topPaddingUnit' => $data['topPaddingUnit'],\n 'updatedby' => $_SESSION['Username'],\n 'updatedt' => date('Y-m-d') . 'T' . date('H:i:s') . 'Z',\n 'wordSpacing' => $data['wordSpacing'],\n )\n ,$rootNodeName = 'AddContainer')\n );\n return $result;\n } catch (Exception $e) {\n // print_r($e);\n }\n }", "function addChild(&$abstractframe)\n {\n $this->m_childs[] = &$abstractframe;\n }", "public function getDggContainer()\n\t{\n\t\treturn $this->_dggContainer;\n\t}", "public function add();", "public function add();", "private function createArrayable()\n {\n $this->data = $this->data->toArray();\n\n $this->createArray();\n }", "public function asExposedChangedIndexedArray(): array;", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function __construct($content) {\n if ($content instanceof Traversable || is_array($content)) {\n foreach ($content as $key => $value) {\n $this->components[$key] = $value;\n }\n } else {\n $this->components[] = $content;\n }\n }", "public function getDatagridViewBuilder();", "public function bound () :array\n {\n return [\n\n ];\n }", "private function prepareObjectArray(){\n\t//scorro l' array $this->objarr settando su ciascun oggetto gli attributi children\n\tforeach($this->objarr as $key=>$object){\n\t\t//echo \"-\".$object->getAppendToIndex().\"<br />\";\n\t\t\n\t\tif(($appind=$object->getAppendToIndex()) != \"\"){\n\t\t\n\t\t$object->setIntegrated(true); //indico che l' oggetto è stato incluso come figlio di un altro.\t\n\t\t\n\t\t $objparent=$this->objarr[$appind];\n\t\t\t$objparent->appendChild($object);\t\n\t\t\t//echo $objparent->getIndex();\n\t\t}\n\t}\n}", "public function AddComponent(Writable $component) {\n \t\t$this->_components[] = $component;\n \t}", "public function gpDataProvider() {}", "public function addWidget()\r\n {\r\n }", "public function attach($component);", "public function attach($component)\n\t{\n\t}", "public function addRows()\n {\n }", "public function add(DiagramInterface $element);", "private function addGrids(ContainerBuilder $container)\n {\n if (!$container->has('prezent_grid.grid_factory')) {\n return;\n }\n\n $grids = [];\n foreach ($container->findTaggedServiceIds('prezent_grid.grid') as $id => $tags) {\n foreach ($tags as $tag) {\n $grids[$tag['alias']] = new Reference($id);\n }\n }\n\n $container\n ->findDefinition('prezent_grid.grid_factory')\n ->replaceArgument(1, $grids);\n }", "abstract protected function draggable_item($mform);", "public function addComponents($components);", "public function Panier() \n {\n $this->CollProduit = new Collection;\n }", "public function gpMergedDataProvider() {}", "public function Add($aObject)\n\t{\n\t\tif (is_array($aObject) && safe_count($aObject) > 0) {\n\t\t\t$cl = $aObject[0];\n\t\t\tif (($cl instanceof Plot\\IconPlot)) {\n\t\t\t\t$this->AddIcon($aObject);\n\t\t\t} elseif (($cl instanceof Text\\Text)) {\n\t\t\t\t$this->AddText($aObject);\n\t\t\t} else {\n\t\t\t\t$n = safe_count($aObject);\n\t\t\t\tfor ($i = 0; $i < $n; ++$i) {\n\t\t\t\t\t$this->iObj[] = $aObject[$i];\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (($aObject instanceof Plot\\IconPlot)) {\n\t\t\t\t$this->AddIcon($aObject);\n\t\t\t} elseif (($aObject instanceof Text\\Text)) {\n\t\t\t\t$this->AddText($aObject);\n\t\t\t} else {\n\t\t\t\t$this->iObj[] = $aObject;\n\t\t\t}\n\t\t}\n\t}", "function addComplexType($name,$typeClass='complexType',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType='')\n {\n $this->_server->wsdl->addComplexType($name,$typeClass, $phpType,$compositor,$restrictionBase,$elements,$attrs,$arrayType);\n }", "public function push($el){\r\n\r\n array_push($this->data,$el);\r\n\r\n }", "public function addComponent(Base $component) {\n $this->_components[] = $component;\n }", "public function addMetaboxes() {}", "public function getElArray() {\n\treturn $this->_elArray;\n}", "public function getControlList(): array;", "protected function renderArray() {}", "public function toContainer(): array\n {\n return $this->container;\n }", "abstract protected function getNewChildren(): array ;", "public function substituteSubpartArrayDataProvider() {}", "public function __construct() {\n parent::__construct(array(\n 'Id' => array(\n \t \t\t'name' => 'id', 'type' => 'integer', 'readonly' => true),\n 'Alias' => array('name' => 'alias', 'type' => 'string'),\n 'Language' => array('name' => 'language', 'type' => 'string'),\n 'Name' => array('name' => 'name', 'type' => 'string'),\n 'Description' => array('name' => 'description', 'type' => 'string'),\n 'Groupables' => array(\n 'name' => 'groupables', 'type' => 'ArrayAccess'),\n ));\n \n $this->groupables = new ArrayObject();\n }", "public function addContainer( $container, $index = false )\n\t\t{\n\t\t\treturn $this->getTab( '_options_tab' )->addContainer( $container, $index );\n\t\t}", "public function create()\n {\n //<Grid container xs={12}>\n \n }", "function carrinho(){\n\t\t\t$this->items = array();\n\t\t}", "abstract public function add_item();", "public function __construct()\n\t{\n\t\t$this->container \t = array();\n\t\t$this->hiddenContainer = array();\n\t}", "public function testAccessArray()\n {\n $data = [\n 'foobar' => 'barfoo',\n ];\n $cell = $this->createFactory()->createCell('foobar', PropertyColumn::class, $data, []);\n }", "function Add($name, $value)\r\n\t{\r\n\t\tif (is_array($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data[$name] = $value;\t\r\n\t\t}\t\r\n\t\telse if (is_object($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data->$name = $value;\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error(\"A DataRow of base type, cannot have fields added.\",E_USER_ERROR);\t\r\n\t\t}\r\n\t\t\r\n\t}", "public function addContainer($name, $label = NULL, $required = FALSE)\n\t{\n\t\t$control = new FormContainer;\n\t\t$control->label = $label;\n\t\t//$control->setOption('inline') = TRUE; // vnoreny container\n\t\tif($required) $control->setOption('required', TRUE);\n\t\t//$control->currentGroup = $this->currentGroup;\n\t\treturn $this[$name] = $control;\n\t}", "function add() {\n }", "public function addData(array $arr);", "abstract protected function draggable_items_repeated_options();", "public function addGalleryColumn()\n {\n if (! $this->checkGalleryColumn()) {\n $item = new \\stdClass();\n $item->id = $this->id;\n $item->gallery = '{gallery}'.$this->id.'{/gallery}';\n return $this->db->updateObject('#__k2_items', $item, 'id');\n }\n }", "public function inArrayDataProvider() {}", "public function registerComponents()\n {\n return [];\n }", "public function registerComponents()\n {\n return [];\n }", "public function registerComponents()\n {\n return [];\n }", "public function buildListDataContainers(): void\n {\n $this->addDataContainer(\n EntityListDataContainer::make('name')\n ->setLabel('Nom')\n ->setSortable()\n )->addDataContainer(\n EntityListDataContainer::make('pseudo')\n ->setLabel('Pseudo')\n ->setSortable()\n )->addDataContainer(\n EntityListDataContainer::make('role_id')\n ->setLabel('Rôle')\n ->setSortable()\n )->addDataContainer(\n EntityListDataContainer::make('created_at')\n ->setLabel('Inscrit le')\n ->setSortable()\n );\n }", "public function createComponent()\n {\n return $this->createEmotionComponent(array(\n 'name' => 'Bilder',\n 'xtype' => 'emotion-media-widget',\n 'template' => 'image_widget',\n 'cls' => 'emotion-image-widget',\n 'description' => 'Einfaches Einkaufswelten-Element für Bilder' \n ));\n }", "public function get_container() { return $this->container; }", "protected static function getFacadeAccessor()\n {\n return 'ImageLayerBuilder';\n }", "public function containers()\n {\n }", "function addContainerInfo($a_obj_id)\n\t{\n\t\t$refs = $this->getReadableRefIds($a_obj_id);\n\t\t$ref_id = current($refs);\n\t\tif (count($refs) == 1 && $ref_id > 0)\n\t\t{\n\t\t\t$tree = $this->tree;\n\t\t\t$f = $this->ui->factory();\n\t\t\t$r = $this->ui->renderer();\n\n\t\t\t//parent course or group title\n\t\t\t$cont_ref_id = $tree->checkForParentType($ref_id, 'grp');\n\t\t\tif ($cont_ref_id == 0)\n\t\t\t{\n\t\t\t\t$cont_ref_id = $tree->checkForParentType($ref_id, 'crs');\n\t\t\t}\n\n\t\t\tif ($cont_ref_id > 0)\n\t\t\t{\n\t\t\t\t$type = ilObject::_lookupType($cont_ref_id, true);\n\t\t\t\t$href = ilLink::_getStaticLink($cont_ref_id);\n\t\t\t\t$parent_title = ilObject::_lookupTitle(ilObject::_lookupObjectId($cont_ref_id));\n\t\t\t\t$this->addInfoProperty($this->lng->txt(\"obj_\" . $type), $r->render($f->button()->shy($parent_title, $href)));\n\t\t\t\t$this->addListItemProperty($this->lng->txt(\"obj_\" . $type), $r->render($f->button()->shy($parent_title, $href)));\n\t\t\t}\n\t\t}\n\t}", "function AddCol($field=-1,$width=-1,$caption='',$align='')\r\n{\r\n if($field==-1)\r\n $field=count($this->aCols);\r\n $this->aCols[]=array('f'=>$field,'c'=>$caption,'w'=>$width,'a'=>$align);\r\n}", "abstract protected function _generateDataCollection();", "public function add(){\n $this->edit();\n }", "public function __construct() {\n $this->columnas = new ArrayCollection();\n }", "public function getComponentImplementation();", "public function grid() : array\r\n {\r\n return [];\r\n }", "public function aArray() {}", "protected function OnCreateElements() {}", "protected function OnCreateElements() {}" ]
[ "0.5959098", "0.59548026", "0.53048533", "0.5243955", "0.51854277", "0.51854277", "0.51234835", "0.50712514", "0.50314486", "0.5016016", "0.5013318", "0.5013318", "0.4999213", "0.49635437", "0.49635437", "0.49635437", "0.49635437", "0.49635437", "0.49613196", "0.49608856", "0.49608856", "0.49608856", "0.49472538", "0.49448526", "0.49444205", "0.49444205", "0.49224788", "0.4921248", "0.4919148", "0.4884506", "0.48672038", "0.48607263", "0.4842276", "0.4816986", "0.48110333", "0.48073414", "0.48022076", "0.48022076", "0.4785161", "0.47610784", "0.4742337", "0.47415856", "0.47338417", "0.47227633", "0.47155878", "0.47145578", "0.47107595", "0.47036654", "0.46927652", "0.4691318", "0.4676156", "0.46749198", "0.46722883", "0.46444985", "0.46436483", "0.46252817", "0.46072537", "0.46057668", "0.4603412", "0.45902961", "0.45874655", "0.458265", "0.45802101", "0.4574382", "0.45711023", "0.45705944", "0.45548114", "0.45547393", "0.45455915", "0.45358983", "0.4533742", "0.4525832", "0.45209795", "0.45199427", "0.4517178", "0.451702", "0.45152855", "0.45136", "0.45117053", "0.45114872", "0.45024", "0.44923693", "0.4492324", "0.4492324", "0.4492324", "0.44793785", "0.4479109", "0.4472597", "0.44718483", "0.4471782", "0.44702795", "0.44664878", "0.44643855", "0.44614464", "0.44590884", "0.4458767", "0.44552505", "0.44480342", "0.4447686", "0.4447686" ]
0.47208315
44
Returns component specified by name. Throws exception if component doesn't exist.
final public function offsetGet($name) { return $this->getComponent($name, TRUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getComponent($name) {\n if(!isset($this->components[$name])) throw new Exception(\"Component $name not exists\");\n\n return $this->components[$name];\n }", "public function getComponent($name) {\n return $this->components[$name];\n }", "public function getComponent($name) {\n\t\treturn $this->registry->get($name);\n\t}", "public function getComponent($name);", "public function getComponentByName($name);", "private function getComponent($name, $type = '')\n\t{\n\t\t$c_name = ucfirst($name) . ($type ? '_' . $type : '') . '_Component';\n\n\t\tif ($type == '')\n\t\t\t$c_type = 'default';\n\t\telse\n\t\t\t$c_type = strtolower($type);\n\n\t\tif (!isset(self::$m_components[$c_type]))\n\t\t\tself::$m_components[$c_type] = array();\n\n\t\tif (isset(self::$m_components[$c_type][$name]))\n\t\t\treturn self::$m_components[$c_type][$name];\n\n\t\t//TODO: Try to check class file existence before create instance of class.\n\t\t//If this will be implemented, we'll can safely handle controller errors (404).\n\n\t\t$c_name = str_replace('-', '', $c_name);\n\t\t$component = new $c_name($c_name, $this->core); // \n\n\t\t$this->addComponent($name, $c_type, $component);\n\n\t\treturn $component->initialize()->setInitialized(true);\n\t}", "public function getComponent (string $key) : Component\n {\n if (!isset($this->components[$key]))\n {\n throw new ComponentNotFoundException($key, $this->key);\n }\n\n return $this->components[$key];\n }", "public function get_registered_component( $name );", "function getComponentName()\n {\n $p = get_class($this);\n\n $reflector = new ReflectionClass($p);\n $path = dirname($reflector->getFileName());\n\n $component = str_replace(BW_PATH_COMPONENTS . DS, '', $path);\n $component = str_replace(DS . 'models', '', $component);\n\n if (bwFolder::is(BW_PATH_COMPONENTS . DS . $component)) {\n return $component;\n } else {\n return NULL;\n }\n }", "public function getComponent($componentName)\n {\n\n //Avoid component manager creating multiple instances of itself:\n if (get_class($this) == $componentName) {\n return $this;\n }\n\n if (!is_array($this->classFiles)) {\n $this->classFiles = [];\n }\n /*if ($this->componentObjectExists($componentName)) {\n $componentObject = $this->componentObjects[$componentName];\n } else */\n if (!array_key_exists($componentName, $this->classFiles)) {\n $this->loadClass($componentName);\n $componentObject = $this->createComponentObject($componentName, []);\n $this->putComponentObject($componentName, $componentObject);\n } else {\n $arguments = array_slice(func_get_args(), 1, null, true); // array keys are preserved (TRUE) -> argument array starts with key=1\n $componentObject = $this->createComponentObject($componentName, $arguments);\n }\n return $componentObject;\n }", "public function getComponent(string $type): IComponent;", "function &getComponent( $name, $strict = false )\n\t{\n\t\t$result = null;\n\t\t$components = JComponentHelper::_load();\n\n\t\tif (isset( $components[$name] ))\n\t\t{\n\t\t\t$result = &$components[$name];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result\t\t\t\t= new stdClass();\n\t\t\t$result->enabled\t= $strict ? false : true;\n\t\t\t$result->params\t\t= null;\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getPricingComponentWithName($name) {\n\t\t$properties = array(\n\t\t\t'name' => $name\n\t\t\t);\n\t\treturn $this->getPricingComponentWithProperties($properties);\n\t}", "public function getComponent ($moduleName, $componentName)\n {\n return $this->getController($moduleName, $componentName, 'component');\n }", "public function component(string $name): self\n {\n $this->setCurrent(\n $this->ensureComponentExists($name)\n );\n return $this;\n }", "public function getComponentName(): string;", "public function c($name, $type = '')\n\t{\n\t\treturn $this->getComponent($name, $type);\n\t}", "function getComponentFromURL($url, $component){\n\t$url_parts = parse_url($url);\n\tif($url_parts !== false && isset($url_parts[$component])){\n\t\treturn $url_parts[$component];\n\t}\n\n\treturn false;\n}", "public function getComponent()\n\t{\n\t\treturn $this->component;\n\t}", "function post_layouts_fll_get_plugin_component( $name, $args ) {\r\n return require( COMPONENTS . \"/$name.php\" );\r\n}", "function getComponent($id) \n\t{\n\t\t$db\t=& JFactory::getDBO();\n\t\t// Joomla! 1.5\n\t\tif (WF_JOOMLA15) {\n\t\t\t$query = 'SELECT * FROM #__components'\n\t\t\t. ' WHERE id = '.(int) $id\n\t\t\t;\n\t\t\t$db->setQuery($query);\n\t\t\treturn $db->loadObject();\n\t\t\t// Joomla! 1.6\n\t\t} else {\n\t\t\t$query = 'SELECT * FROM #__extensions'\n\t\t\t. ' WHERE extension_id = '.(int) $id\n\t\t\t. ' AND type = '. $db->Quote('component')\n\t\t\t;\n\t\t\t$db->setQuery($query);\n\t\t\t\n\t\t\t$component = $db->loadObject();\n\t\t\t$component->option = $component->element;\n\t\t\t\n\t\t\treturn $component;\n\t\t}\n\t}", "protected function getComponent($component)\n\t{\n\t\tif (!Yii::app() instanceof CWebApplication) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ($instance = Yii::app()->getComponent($component)) {\n\t\t\treturn $instance;\n\t\t}\n\n\t\treturn null;\n\t}", "public function getComponentName()\n {\n $component = $this->argument('component') ?: app('components')->getUsedNow();\n\n $component = app('components')->findOrFail($component);\n\n return $component->getStudlyName();\n }", "public function getComponentName()\n {\n return $this->_componentName;\n }", "public function getComponent($key)\n {\n $this->parseResponse();\n\n if (isset($this->components[$key])) {\n return $this->components[$key];\n }\n\n return null;\n }", "public function get(string $name)\n {\n if (isset($data[$name])) {\n return $data[$name];\n }\n throw new NotFoundException('Dependency Not Found');\n }", "public function get($name)\r\n {\r\n try {\r\n return $this->adapter->getService($name);\r\n } catch (NotFoundException $e) {\r\n $errorMessage = sprintf('The service \\'%s\\' could not be found', $name);\r\n\r\n $this->logger->error($errorMessage, ['exception' => $e, 'name' => $name]);\r\n\r\n throw new Exception\\NotFoundException($errorMessage, $e->getCode(), $e);\r\n } catch (AdapterException $e) {\r\n $errorMessage = sprintf('The get() failed for service \\'%s\\' : %s', $name, $e->getMessage());\r\n\r\n $this->logger->error($errorMessage, ['exception' => $e, 'name' => $name]);\r\n\r\n throw new Exception\\ContainerException($errorMessage, $e->getCode(), $e);\r\n }\r\n }", "public function createComponent($name) {\n if (preg_match('([a-zA-Z0-9]+Form)', $name)) {\n \n // detect forms \n $classname = \"FrontModule\\\\Components\\\\Forms\\\\\" . ucfirst($name);\n if (class_exists($classname)) {\n $form = new $classname($this, $name);\n //$form->setTranslator($this->context->translator);\n return $form;\n }\n } else if (preg_match('([a-zA-Z0-9]+DataGrid)', $name)) {\n // detect datagrids\n $classname = \"FrontModule\\\\Components\\\\DataGrids\\\\\" . ucfirst($name);\n if (class_exists($classname)) {\n $datagrid = new $classname($this, $name);\n //$datagrid->setTranslator($this->context->translator);\n return $datagrid;\n }\n } else if (preg_match('([a-zA-Z0-9]+ConfirmDialog)', $name)) {\n // detect confrim dialogs\n $classname = \"FrontModule\\\\Components\\\\Dialogs\\\\\" . ucfirst($name);\n if (class_exists($classname)) {\n $dialog = new $classname($this, $name);\n //$dialog->setTranslator($this->context->translator);\n return $dialog;\n }\n } else {\n return parent::createComponent($name);\n }\n }", "public function getByControllerName($name)\n {\n $result = $this->_module->get(array('modulo'=>$name));\n\n if(!$result)\n return false;\n return $result[0];\n }", "protected function get($name)\n {\n return $this->container->get($name);\n }", "protected function get(string $name)\n {\n return $this->getContainer()->get($name);\n }", "private function createComponent($name) {\n\t\trequire_once(\"component/\".$name.\"/\".$name.\".inc\");\n\t\t$c = new $name($name);\n\t\t$this->components[$name] = &$c;\n\t\t$this->{$name} = &$c;\n\t}", "private function getComponentName($id)\n {\n if ($id === 0) {\n return '';\n }\n if (array_key_exists($id, $this->componentCache)) {\n return $this->componentCache[$id];\n }\n\n $component = getContents($this->getURI() . '/api/v1/components/' . $id);\n $component = json_decode($component);\n if ($component === null) {\n return '';\n }\n return $component->data->name;\n }", "public function __get($name)\n\t{\n\t\tif($this->contains($name))\n\t\t\treturn $this->itemAt($name);\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn $this->loadParam($name);\n\t\t\t}\n\t\t\tcatch (CException $e)\n\t\t\t{\n\t\t\t\treturn parent::__get($name);\n\t\t\t}\n\t\t}\n\t}", "protected function createComponent($name)\n {\n $plugins = $this->context->plugins->getPlugins();\n if (in_array($name, $plugins)) {\n return new $name();\n }\n\n return parent::createComponent($name);\n }", "public function getComponent()\n {\n return $this->hasOne(Component::class, ['id' => 'component_id']);\n }", "public function get_control($name)\n\t{\n\t\tif (!array_key_exists($name, $this->controls)) throw new Exception(\"Control '$name' not found\");\n\t\treturn $this->controls[$name];\n\t}", "public function get(string $name = null)\n {\n $name = $name ?? $this->default;\n\n if ($this->exists($name)) {\n return $this->connections[$name];\n }\n\n throw new ContainerException(\"The connection connection '$name' does not exist.\");\n }", "function Component_get($component_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('Component.get', array(new xmlrpcval($component_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function getComponent() {\r\n\t\t$parameters = func_get_args();\r\n\t\tif (count($paramters) < 1) {\r\n\t\t\tthrow new tx_auxo_exception('component parameter is missing');\r\n\t\t}\r\n\t\t\r\n\t\t$path = sprintf('%s/class.tx_%s.php', $this->interfaceLibraryPath, $this->interfaceExtension, $parameters[0]);\r\n\t\tif (!is_readable($path)) {\r\n\t\t\tthrow new tx_auxo_presentationException(sprintf('presentation component %s not supported', $parameters[0]));\r\n\t\t}\r\n\t\t\r\n\t\t$className = 'tx_' . $this->interfaceExtension . '_' . $parameters[0];\r\n\t\tunset($parameters[0]);\r\n\t\t\r\n\t\trequire_once($path);\r\n\t\t\r\n\t\tif (!class_exists($className)) {\r\n\t\t\tthrow new tx_auxo_presentationException(sprintf('presentation class %s is missing', $className));\r\n\t\t}\r\n\t\t\r\n\t\t$object = new $className();\r\n\t\t\r\n\t\tif (method_exists($object, '__construct')) {\r\n\t\t\treturn call_user_func_array($object, '__construct', $parameters);\r\n\t\t}\r\n\t\t\r\n\t\treturn $object;\r\n\t}", "public function getPlugin( $name ) {\n if ( is_null($this->_plugins) ) $this->getPlugins();\n if (isset($this->_plugins[ $name ])) {\n return $this->_plugins[ $name ];\n } else {\n throw new \\OutOfBoundsException(\n 'Undefined plugin : ' . $name\n );\n }\n }", "public function __get(string $name)\n {\n if ($this->builder()->hasResource($resource = $this->path . '.' . Str::snake($name))) {\n if ($this->builder()->canRequest($resource, 'index')) {\n return $this->adopt(\n $this->builder()->request($resource, 'index', ...$this->ids())\n );\n }\n\n if ($this->builder()->canRequest($resource, 'create')) {\n return $this->adopt(\n (new Collection)->setPath($resource)\n );\n }\n\n throw new Exception(sprintf(\n 'API does not support listing \"%s\" on %s',\n $name,\n get_class($this)\n ));\n }\n\n return $this->container[$name] ?? null;\n }", "function getComponent()\n {\n }", "protected function get($name)\n {\n return $this->drivers[$name] ?? $this->resolve($name);\n }", "public function getEngine($name) {\n try {\n return $this->dependencyInjector->get('ride\\\\library\\\\template\\\\engine\\\\Engine', $name);\n } catch (DependencyNotFoundException $exception) {\n throw new EngineNotFoundException($name, $exception);\n }\n }", "public static function get($name) {\r\n return self::getInstance()->getService($name);\r\n }", "public static function Get($name);", "protected function get(string $name)\n {\n return $this->drivers[$name] ?? $this->resolve($name);\n }", "public function getComponent()\n {\n }", "public function get($name)\n {\n $canonicalName = $this->getCanonicalName($name);\n\n if (isset($this->instances[$canonicalName])) {\n return $this->instances[$canonicalName];\n }\n\n if (isset($this->invokableClasses[$canonicalName])) {\n $instance = $this->createFromInvokable($canonicalName);\n $this->instances[$canonicalName] = $instance;\n return $instance;\n }\n\n $object = $this->serviceLocator->get($name);\n if ($object !== null) {\n return $object;\n }\n\n return null;\n }", "public function getComponent()\n {\n return $this->hasOne(Component::className(), ['id' => 'component_id']);\n }", "protected function get($name)\n {\n return isset($this->drivers[$name]) ? $this->drivers[$name] : $this->resolve($name);\n }", "public static function get(string $name)\n {\n return static::$services[$name] ?? null;\n }", "final public static function load($component_id) {\n $db = Database::getInstance();\n $mysqli = $db->getConnection();\n \n $sql_query = 'SELECT * ';\n $sql_query .= 'FROM fresco_costing_component_array ';\n $sql_query .= 'WHERE component_id = \"' . (int) $component_id . '\" ';\n \n $result = $mysqli->query($sql_query);\n if ($row = $result->fetch_assoc()) {\n return self::getInstance($row['component_type_id'], $row);\n }\n throw new Exception('Component not found.');\n }", "protected function getPrimaryComponent(string $calendarData, string $componentName): Component {\n\t\t$vCalendar = Reader::read($calendarData, Reader::OPTION_FORGIVING);\n\n\t\t$components = $vCalendar->select($componentName);\n\t\tif (count($components) === 1) {\n\t\t\treturn $components[0];\n\t\t}\n\n\t\t// If it's a recurrence-set, take the primary element\n\t\tforeach ($components as $component) {\n\t\t\t/** @var Component $component */\n\t\t\tif (!$component->{'RECURRENCE-ID'}) {\n\t\t\t\treturn $component;\n\t\t\t}\n\t\t}\n\n\t\t// In case of error, just fallback to the first element in the set\n\t\treturn $components[0];\n\t}", "public function getComponentId(string $name, int $formId): ?int\n\t{\n\t\t$query = $this->db->getQuery(true)\n\t\t\t->select($this->db->quoteName('properties.ComponentId'))\n\t\t\t->from($this->db->quoteName('#__rsform_properties', 'properties'))\n\t\t\t->leftJoin(\n\t\t\t\t$this->db->quoteName('#__rsform_components', 'components')\n\t\t\t\t. ' ON ' .\n\t\t\t\t$this->db->quoteName('properties.ComponentId') . ' = '\n\t\t\t\t. $this->db->quoteName('components.ComponentId')\n\t\t\t)\n\t\t\t->where(\n\t\t\t\t$this->db->quoteName('properties.PropertyValue') . ' = '\n\t\t\t\t. $this->db->quote($name)\n\t\t\t)\n\t\t\t->where(\n\t\t\t\t$this->db->quoteName('properties.PropertyName') . ' = '\n\t\t\t\t. $this->db->quote('NAME')\n\t\t\t)\n\t\t\t->where(\n\t\t\t\t$this->db->quoteName('components.FormId') . ' = ' . $formId\n\t\t\t);\n\t\t$this->db->setQuery($query);\n\n\t\treturn $this->db->loadResult();\n\t}", "public function component()\n {\n return $this->component;\n }", "public function get_component() : string\n {\n return $this->component;\n }", "public function testComponentReturnsNullForUnknownComponent() {\n $node = self::nodeStub();\n $webform = new Webform($node);\n $this->assertNull($webform->component(12));\n }", "public function loadComponent()\r\n {\r\n return $this->selectVersion($this->currentVersion);\r\n }", "public function get($name)\n\t{\n\t\tforeach ($this->getItems() as $field) {\n\t\t\tif ($field->getName() === $name) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\InvalidArgumentException(\"Could not find the field '{$name}'\");\n\t}", "public static function getOnComponentsName($name){\n\t\tif(isset(self::$components[$name])){\n\t\t\treturn self::$components[$name];\n\t\t}\n\t\treturn [];\n\t}", "public static function getService($name)\n {\n global $container;\n $service = $container->getByType($name, false);\n if (!$service) {\n $service = $container->getService($name);\n }\n return $service;\n }", "public static function &getModule($name)\n\t{\n\t\t$result\t\t= null;\n\t\t$modules\t= self::_load();\n\t\tforeach ($modules AS $module) {\n\t\t\t// Match the name of the module\n\t\t\tif ($module->position == $name)\n\t\t\t{\n\t\t\t\treturn $module;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getComponent( $abstract ) {\n\t\treturn $this->components[ $abstract ];\n\t}", "public function Component($component,$type){\r\n $fullpath=cf(\"BASE/MVCPATH\").$type.DS.\"components\".DS.ucwords($component).EXT;\r\n if($this->Load($fullpath)){\r\n return new $component();\r\n }\r\n else {\r\n return null;\r\n } \r\n }", "public function __get($name)\n {\n return $this->container->get($name);\n }", "public function __get($name)\n {\n return $this->container->get($name);\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);", "static final function getPlugin($pluginname)\n {\n self::initPlugins();\n \n $pluginname = mb_strtolower($pluginname);\n if(isset(self::$plugins[$pluginname])){\n return self::$plugins[$pluginname];\n }\n else{\n throw new NoExistPluginException($pluginname);\n }\n }", "public function getComponent($key)\n {\n return $this->result->getComponents($key);\n }", "protected function get(string $name): string {\n\t\treturn $this->app->getContainer()->get($name);\n\t}", "public function get(string $name);", "protected function component($component, $vars = [])\n {\n list($module, $component) = explode('/', $component, 2);\n return $this->getComponent($module, $component, $vars);\n }", "static public function get($name) {}", "public function get_attr_by_name( $name ) {\n\t\tforeach ( $this->component as $item ) {\n\t\t\tif ( ( $item['name'] == $name ) ) {\n\t\t\t\treturn $item;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getComponentImplementation();", "public static function render_component($name)\n {\n self::module_js('automount', true);\n self::module_js($name, true);\n\n return sprintf(\n '<div data-component=\"%s\"></div>',\n $name\n );\n }", "function loadComponent($component) {\n\tglobal $_base;\n\n\t$component = \"./include/core/\" . $component . \".php\";\n\t// component exists?\n\tif (file_exists($component)) {\n\t\trequire_once($component);\n\t}\n}", "public function getService($name)\n {\n return $this->getServiceLocator()->get($name);\n }", "public function __get($name)\n\t{\n\t\ttry {\n\t\t\treturn parent::__get($name);\n\t\t}catch (\\Exception $e) {\n\t\t\tif($this->getApp()->$name) {\n\t\t\t\treturn $this->app->$name;\n\t\t\t}else{\n\t\t\t\tthrow $e->getPrevious();\n\t\t\t}\n\t\t}\n\t}", "protected function getComponentConfiguration($componentName)\n {\n $componentNameParts = explode('_', $componentName, 3);\n if (($componentNameParts[0] !== self::PACKAGE_PREFIX) || !isset($componentNameParts[1])) {\n throw new Exception('Invalid component name. Component name \"' . $componentName . '\" must be prefixed by \"' . self::PACKAGE_PREFIX . '_\".');\n }\n if (isset($GLOBALS['TSFE']->tmpl->setup['plugin.'][self::PACKAGE_PREFIX . '_' . $componentNameParts[1] . '.']['components.'][$componentName . '.'])) {\n $componentConfiguration = $GLOBALS['TSFE']->tmpl->setup['plugin.'][self::PACKAGE_PREFIX . '_' . $componentNameParts[1] . '.']['components.'][$componentName . '.'];\n } elseif (isset($GLOBALS['TSFE']->tmpl->setup['plugin.'][self::PACKAGE_PREFIX . '_' . ucfirst(self::THIS_PACKAGE_KEY) . '.']['components.'][$componentName . '.'])) {\n $componentConfiguration = $GLOBALS['TSFE']->tmpl->setup['plugin.'][self::PACKAGE_PREFIX . '_' . ucfirst(self::THIS_PACKAGE_KEY) . '.']['components.'][$componentName . '.'];\n } else {\n $componentConfiguration = null;\n }\n return $componentConfiguration;\n }", "protected function fetchController($name)\n {\n // Derive the controller class name.\n $class = $this->controllerPrefix . ucfirst($name);\n\n // If the controller class does not exist panic.\n if (!class_exists($class) || !is_subclass_of($class, 'Joomla\\\\Controller\\\\ControllerInterface'))\n {\n throw new \\RuntimeException(sprintf('Unable to locate controller `%s`.', $class), 404);\n }\n\n // Instantiate the controller.\n $controller = new $class($this->input, $this->app);\n\n return $controller;\n }", "public function __get($name)\n {\n global $DB;\n\n if (isset($this->_cache[$name]))\n return $this->_cache[$name];\n\n switch ($name) {\n case 'user':\n return $this->_cache[$name] = $DB->get_record('user', array('id' => $this->userid), '*', MUST_EXIST);\n case 'courseware':\n return $this->_cache[$name] = courseware::from_id($this->coursewareid, MUST_EXIST);\n }\n throw new \\InvalidArgumentException();\n }", "public static function get($name)\n {\n return static::getInstance()->offsetGet($name);\n }", "public function __get($name)\n\t{\n\t\t$available_resources = ColoCrossing_Resource_Factory::getAvailableResources();\n\n\t\tif (isset($available_resources[$name]))\n\t\t{\n\t\t\treturn $this->getResource($name);\n\t\t}\n\t}", "public function createComponent($name)\n\t{\n\t\tif (substr($name, 0, 17) == \"contentExtension_\") {\n\t\t\t$this->context->eventManager->dispatchEvent(\\Venne\\ContentExtension\\Events::onContentExtensionRender);\n\t\t} else {\n\t\t\treturn parent::createComponent($name);\n\t\t}\n\t}", "public function get( $name );", "private function getByNameInCache($name)\n {\n $modulesResult = $this->getModulesResult();\n foreach($modulesResult as $module)\n {\n if($name == $module['modulo'])\n {\n return $module;\n }\n }\n }" ]
[ "0.861294", "0.8147452", "0.79454845", "0.7896916", "0.78829867", "0.7095062", "0.7069661", "0.7033262", "0.6466447", "0.6386398", "0.63575816", "0.6308349", "0.6182937", "0.61809206", "0.61430746", "0.60704243", "0.6035982", "0.59779614", "0.5965816", "0.59588087", "0.5940812", "0.5937313", "0.59366626", "0.5933603", "0.59012926", "0.58866316", "0.587344", "0.58701175", "0.58663684", "0.5851088", "0.58066773", "0.57936656", "0.5769134", "0.57569325", "0.57474893", "0.5739608", "0.57380515", "0.5731191", "0.5729028", "0.57080805", "0.5688705", "0.5660094", "0.56525606", "0.56390446", "0.56316674", "0.5623902", "0.5623471", "0.5616687", "0.56149447", "0.56137586", "0.561305", "0.55986196", "0.5593845", "0.5592663", "0.55920213", "0.5590578", "0.5581048", "0.5559417", "0.5544431", "0.5530471", "0.55273813", "0.55106133", "0.5507556", "0.55074906", "0.55061376", "0.5494104", "0.54863226", "0.54863226", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5482135", "0.5481662", "0.5481053", "0.54792887", "0.54780984", "0.54527044", "0.5441675", "0.54187244", "0.5404817", "0.54037994", "0.54026914", "0.53740466", "0.5371639", "0.53459156", "0.5342896", "0.53366715", "0.53350735", "0.5331417", "0.5331213", "0.53300697", "0.5318666" ]
0.6707944
8
Does component specified by name exists?
final public function offsetExists($name) { return $this->getComponent($name, FALSE) !== NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function componentDoesNotExist() : bool\n\t{\n\t\treturn ! method_exists($this->className(), $this->component);\n\t}", "public static function componentExist($component)\n {\n return isset(self::$commands[$component]);\n }", "protected function componentExists()\n {\n return $this->files->exists($this->componentPath());\n }", "public function hasComponent(string $type): bool;", "public function hasComponent (string $key) : bool\n {\n return \\array_key_exists($key, $this->components);\n }", "public function componentExists ($moduleName, $componentName)\n {\n return $this->controllerExists($moduleName, $componentName, 'component', false);\n }", "public function exists($id)\n {\n if (array_key_exists($id, $this->components)) {\n return true;\n }\n\n if (isset($this->instances[$id])) {\n return true;\n }\n\n return false;\n }", "public function checkProductExistsByName()\n {\n $category = $this::find()\n ->select('id')\n ->where(['name' => $this->name])\n ->one();\n if($category !== NULL) {\n return true;\n }\n return false;\n }", "public function checkControlExists($name);", "public function is_correct_component() {\n\t\t$name = false;\n\t\t$at_least_one_element = false;\n\t\tforeach ( $this->component as $item ) {\n\t\t\tif ( is_array( $item ) AND isset( $item['name'] ) AND isset( $item['val'] ) ) {\n\t\t\t\tif ( ( $item['name'] == 'Name' ) AND $item['val'] ) {\n\t\t\t\t\t$name = true;\n\t\t\t\t} elseif (\n\t\t\t\t\t$item['val'] !== ''\n\t\t\t\t\tAND $item['name'] != 'Name'\n\t\t\t\t\t AND $item['name'] != 'Thumbnail'\n\t\t\t\t\t AND $item['name'] != 'Preview'\n\t\t\t\t\t AND $item['name'] != 'Global Component Rules'\n\t\t\t\t\tOR ( $item['name'] === 'Global Component Rules' AND $item['val'] != '0' )\n\t\t\t\t) {\n\t\t\t\t\t$at_least_one_element = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( $name AND $at_least_one_element ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getComponentByName($name);", "public function exists($name)\n {\n return ($this->isBasic($name) || $this->isDynamic($name));\n }", "public function exists($name);", "public function exists($name);", "public function exists($name);", "public function exists($name);", "public function exists($name);", "public function exists($name);", "public function isInstalled()\n\t{\n\t\t$db = JFactory::getDBO();\n\t\t$q = sprintf(\"SELECT * FROM jos_components WHERE parent = 0 AND `option` LIKE 'com_%s' LIMIT 1\",str_replace('_','',$this->name));\n\t\t$db->execute($q);\n\t\treturn ($object = $db->loadObject()) ? $object->id : false;\n\t}", "public function moduleExists($name) {\n }", "function has($name);", "function has($name);", "function has($name);", "public function getComponent($name);", "public function exists($name)\n {\n return isset($this->services[$name]);\n }", "public function hasNamed(string $name): bool;", "public static function Exists($name);", "public function has($name)\n {\n return $this->pluginManager->has($name);\n }", "function exists($name) {\n return isset($this->store[$name]);\n }", "final public function exists(string $name): bool {\n\t\ttry {\n\t\t\t$this->_findModulePath($name);\n\t\t\treturn true;\n\t\t} catch (Throwable) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_registered_component( $name );", "public function has(string $name): bool;", "public function has(string $name): bool;", "public function has(string $name): bool;", "public function has(string $name): bool;", "public function has(string $name): bool;", "protected function existsComponentFile(string $name)\n {\n $exists = $this->files->exists(\"{$this->getComponentsPath()}/$name\");\n\n if ($exists) {\n $this->components->error('This file is exists!');\n exit;\n }\n\n $this->components->info('Component is created!');\n }", "public function exists(string $name): bool\n {\n return isset($this->commands[$name]);\n }", "public function hasComponent($id)\n {\n return (bool)$this->getComponents()->findByProperty('id', $id, true);\n }", "public static function commandExist($component, $command)\n {\n return isset(self::$commands[$component][$command]);\n }", "public function instanceIsset($componentName)\n {\n return isset($this->{$componentName});\n }", "protected function alreadyExists($name)\r\n {\r\n return class_exists($name);\r\n }", "public function has($name)\n {\n return array_has($this->widgets, $name);\n }", "public function has($name)\n {\n return isset($this->helpers[$name]);\n }", "public static function module_exists($name) {\n\n\t\tif ($name == 'nos' || $name == 'app') {\n\t\t\treturn true;\n\t\t}\n\n\t\t\\Config::load(APPPATH.'data'.DS.'config'.DS.'app_installed.php', 'app_installed');\n\t\t$app_installed = \\Config::get('app_installed', array());\n\n\t\tif (isset($app_installed[$name])) {\n\t\t\treturn parent::module_exists($name);\n\t\t}\n\t\treturn false;\n\t}", "public function alreadyExists($name) {\r\n if ($this->classKey == 'modTemplate') {\r\n $c = array('templatename' => $name);\r\n } else {\r\n $c = array('name' => $name);\r\n }\r\n return $this->modx->getCount($this->classKey,$c) > 0;\r\n }", "public function hasModule($name);", "public function exists(string $name): bool\n {\n return $this->blade->exists($name);\n }", "public function elementExistsInApp(string $name): bool\n {\n return (bool)$this->_getElementFileName($name, false);\n }", "public function exists($name)\n {\n return true;\n }", "public function has($name);", "public function has($name);", "public function has($name);", "public function has($name);", "public function has($name);", "public function has($name);", "public function has($name);", "public function has($name);", "public function has($name): bool\r\n {\r\n try {\r\n return $this->adapter->hasService($name);\r\n } catch (AdapterException $e) {\r\n $errorMessage = sprintf('The has() failed for service \\'%s\\' : %s', $name, $e->getMessage());\r\n\r\n $this->logger->debug($errorMessage, ['exception' => $e, 'name' => $name]);\r\n\r\n throw new Exception\\ContainerException($errorMessage, $e->getCode(), $e);\r\n }\r\n }", "static public function has($name) {}", "public function __isset($name)\n {\n return $this->container->has($name);\n }", "protected function componentObjectExists($componentName)\n {\n if (!is_string($componentName)) {\n throw new InvalidArgumentException('The component name must be of type string, ' . gettype($componentName) . ' given.');\n }\n return array_key_exists($componentName, $this->componentObjects);\n }", "public function exist()\n {\n return $this->_info && app()->getModule($this->_info['name']) ? TRUE : FALSE;\n }", "function is_registered($name) {\n if ($this->registered_objects[$name] == true)\n return true;\n return false;\n }", "function isRegistered($name)\n {\n return isset($this->directives[$name]);\n }", "public function hasPlugin( string $name ) : bool\n {\n if( count( $this->plugins ) > 0 )\n {\n foreach( $this->plugins as $plugin )\n {\n if( $plugin->getName() == $name )\n {\n return true;\n }\n }\n }\n return false;\n }", "function _pgsql_object_exists($name) {\n $sql = \"select relname from pg_class where relname = '$name'\";\n $r = db_query($sql);\n if($r['rows'] == 1) {\n return true;\n }\n return false;\n}", "static public function hasInstance($name = 'main')\n {\n return isset(self::$instances[$name]);\n }", "final public function hasService($name)\n {\n $services = $this->getServices();\n return isset($services[$name]);\n }", "public function has($name)\n {\n return true;\n }", "public function offsetExists(mixed $name) : bool\n\t{\n\t\tif ($this->state === self::STATE_INITIAL) {\n\t\t\t$this->boot();\n\t\t}\n\t\treturn $this->instanceInjector->has($name) || \n\t\t $this->providerInjector->has($name . 'Provider');\n\t}", "public function exists($name)\n {\n return $name === $this->_name || strpos($name, $this->_name . '#~#') === 0;\n }", "public function exists($name) {\r\n\t return $this->_data->exists($name);\r\n\t}", "function exists()\n {\n return false;\n }", "public static function validate($name) {\n\t\treturn file_exists(TH_PLUGINS.$name.'/plugin.php');\n\t}", "public function getIsComponent()\n {\n return $this->_blIsComponent;\n }", "public function has($name)\n {\n if (!is_string($name)) {\n throw new \\InvalidArgumentException(sprintf(\n 'The name parameter must be of type string, %s given',\n is_object($name) ? get_class($name) : gettype($name)\n ));\n }\n\n $serviceName = strtolower($name);\n\n if ($this->hasAlias($serviceName)) {\n $serviceName = $this->aliasDefinitions[$serviceName];\n }\n\n return isset($this->services[$serviceName]) || array_key_exists($serviceName, $this->services);\n }", "public static function isRegistered($name)\n {\n return array_key_exists($name, self::$registry);\n }", "protected function isBasic($name)\n {\n return class_exists($this->getBasicPath($name));\n }", "public function isRegistered($objectName)\n {\n return class_exists($objectName, true);\n }", "public function offsetExists($name) {\n return isset($this->providers[$name]);\n }", "public function has($name)\n\t{\n\t\treturn in_array($name, $this->_elementNames);\n\t}", "function isExists($selector);", "public function hasInstance(string $name): bool\n {\n return array_key_exists($name, $this->instances);\n }", "protected function isDynamic($name)\n {\n return class_exists($this->getDynamicPath($name));\n }", "public function hasModule($name): bool\n {\n return in_array($name, $this->listModules()) &&\n class_exists('\\\\' . $name . '\\ServiceProvider');\n }", "public function existName($name)\n { # add new\n $result = TfUserImageType::where('name', $name)->count();\n return ($result > 0) ? true : false;\n }", "public function hasDependency(string $name): bool;", "public function has(string $name)\n {\n return isset($this->configuration['menu'][$name]) ?? false ;\n }", "function atkexists($type, $name)\n{\n\treturn file_exists(atkgetinclude($type, $name));\n}", "public function has($name)\n {\n return isset($this->slots[$name]);\n }", "public function offsetExists(mixed $name): bool\n {\n return isset($this->children[$name]);\n }", "final public function loaded(string $name): bool {\n\t\treturn $this->modules->offsetExists($name);\n\t}", "public function module_exists($name,$type)\n\t{\n\t\t$module_path=$this->_ci->config->item('module_path');\n\t\treturn file_exists($module_path.'/'.$type.'/'.$name.'/'.$name.'.php');\n\t}", "protected function validateComponent($component)\n {\n return array_key_exists($component, $this->components);\n }", "public function hasName()\n {\n return $this->get(self::NAME) !== null;\n }", "public function exist(string $name)\n {\n return isset($this->validModular[$this->sanitizeModularName($name)]);\n }", "public function has(string $name): bool\n {\n return \\array_key_exists($name, $this->elements);\n }", "public function exists(string $section): bool;", "public function hasCommand($name)\n {\n return isset($this->commands[$name]);\n }" ]
[ "0.76943374", "0.7299006", "0.72213", "0.7066352", "0.69838613", "0.6910292", "0.68467486", "0.67281383", "0.6707455", "0.6697272", "0.66873926", "0.65667886", "0.6561768", "0.6561768", "0.6561768", "0.6561768", "0.6561768", "0.6561768", "0.64136606", "0.6403604", "0.6380898", "0.6380898", "0.6380898", "0.6378892", "0.63780755", "0.63767964", "0.6355316", "0.6334477", "0.63151854", "0.631471", "0.6313277", "0.6306949", "0.6306949", "0.6306949", "0.6306949", "0.6306949", "0.63029045", "0.62912226", "0.62885475", "0.6283934", "0.62797976", "0.62725246", "0.62631506", "0.62331927", "0.6213476", "0.6210026", "0.62081134", "0.6205747", "0.61956394", "0.61700636", "0.6164468", "0.6164468", "0.6164468", "0.6164468", "0.6164468", "0.6164468", "0.6164468", "0.6164468", "0.61521655", "0.614097", "0.6123934", "0.6113158", "0.6100889", "0.6082673", "0.60767335", "0.60714585", "0.6068968", "0.60628563", "0.6052977", "0.60497206", "0.60413444", "0.6040212", "0.6031573", "0.60268617", "0.6022979", "0.60186", "0.6012706", "0.6007772", "0.59982115", "0.5997896", "0.59771144", "0.59728384", "0.59695065", "0.59581643", "0.5954064", "0.5939831", "0.59247446", "0.59217274", "0.59208876", "0.5916057", "0.5913216", "0.590988", "0.5908327", "0.59061366", "0.5902041", "0.5895531", "0.5893572", "0.5876739", "0.586798", "0.58645815" ]
0.7247689
2
Removes component from the container. Throws exception if component doesn't exist.
final public function offsetUnset($name) { $component = $this->getComponent($name, FALSE); if ($component !== NULL) { $this->removeComponent($component); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function removeComponent()\n {\n (new Filesystem)->deleteDirectory(\n resource_path('assets/js/components')\n );\n }", "public function detach($component);", "function removeComponent($acomponent)\r\n {\r\n //Removes a component from the component's list\r\n $this->components->remove($acomponent);\r\n\r\n unset( $this->_childnames[ $acomponent->_name ] );\r\n }", "public function detach($component)\n\t{\n\t}", "public function testRemove()\n {\n $this->container->remove('foo');\n $this->assertEmpty($this->container->all());\n }", "function delComponent($id);", "public function remove() {}", "public function remove() {}", "public function deleteComponent( $component )\r\n\t{\r\n\t\t$this->debug->guard( );\r\n\r\n\r\n\t\t$sql = \"DELETE FROM game_components WHERE component_id='\" . $component . \"'\";\r\n\t\t$res = $this->database->query( $sql );\r\n\t\tif ( !$res )\r\n\t\t{\r\n\t\t\t$this->debug->write( 'Problem deleting component: could not delete component from database', 'warning' );\r\n\t\t\t$this->messages->setMessage( 'Problem deleting component: could not delete component from database', 'warning' );\r\n\t\t\t$this->debug->unguard( false );\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$sql = \"DROP TABLE game_component_\" . $component . \" \";\r\n\t\t$res = $this->database->query( $sql );\r\n\t\tif ( !$res )\r\n\t\t{\r\n\t\t\t$this->debug->write( 'Problem deleting component: could not delete component table', 'warning' );\r\n\t\t\t$this->messages->setMessage( 'Problem deleting component: could not delete component table', 'warning' );\r\n\t\t\t$this->debug->unguard( false );\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$this->debug->unguard( true );\r\n\t\treturn true;\r\n\t}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public function __destruct() {\n unset($this->components);\n }", "public function removeComponent($component, $value)\n {\n $component = strtoupper($component);\n if ($this->validateComponent($component)) {\n $this->components[$component] = array_diff($this->components[$component], [$value]);\n } else {\n throw new \\UnexpectedValueException(\"The RDN component '$component' is invalid.\");\n }\n\n return $this;\n }", "public function remove(string $path) : void\n {\n if (!$this->exists($path)) {\n throw new \\RuntimeException(sprintf('The provided child path %s does not exist on path %s (component %s).', $path, $this->get_path(), $this->get_component() ));\n }\n unset($this->children[$path]);\n }", "public function removeComponentFromAssemblage( $component, $assemblage )\r\n\t{\r\n\t\t$this->debug->guard( );\r\n\r\n\t\t$sql = \"DELETE FROM game_assemblage_components WHERE \";\r\n\t\t$sql .= \"assemblagecomponent_component='\" . $component . \"' AND \";\r\n\t\t$sql .= \"assemblagecomponent_assemblage='\" . $assemblage . \"'\";\r\n\t\t$res = $this->database->query( $sql );\r\n\t\tif ( !$res )\r\n\t\t{\r\n\t\t\t$this->debug->write( 'Problem removing a component from an assemblage: could not delete component data', 'warning' );\r\n\t\t\t$this->messages->setMessage( 'Problem removing a component from an assemblage: could not delete component data', 'warning' );\r\n\t\t\t$this->debug->unguard( false );\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$this->debug->unguard( true );\r\n\t\treturn true;\r\n\t}", "public function remove() {\n }", "function TestCase_remove_component($case_id, $component_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.remove_component', array(new xmlrpcval($case_id, \"int\"), new xmlrpcval($component_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "abstract public function remove();", "abstract public function remove();", "abstract public function remove();", "public function destroy(Component $component)\n {\n $component->delete();\n return redirect()->route('components.index');\n }", "public function uninstall()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'component', 'delete')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\t$component = $this->podb->from('component')->where('id_component', $this->postring->valid($_GET['id'], 'sql'))->limit(1)->fetch();\n\t\t$componentType = $component['type'];\n\t\tif ($componentType == 'component') {\n\t\t\t$folderinstall = 'component';\n\t\t} else {\n\t\t\t$folderinstall = 'widget';\n\t\t}\n\t\tif (file_exists('../'.DIR_CON.'/'.$folderinstall.'/'.$_GET['folder'].'/uninstall.php')) {\n\t\t\tinclude_once '../'.DIR_CON.'/'.$folderinstall.'/'.$_GET['folder'].'/uninstall.php';\n\t\t} else {\n\t\t\t$dir_ori = realpath(dirname(__FILE__));\n\t\t\t$dir_exp = explode('component', $dir_ori);\n\t\t\t$dir_ren = reset($dir_exp).$folderinstall.DIRECTORY_SEPARATOR.$_GET['folder'];\n\t\t\t$dir_new = reset($dir_exp).$folderinstall.DIRECTORY_SEPARATOR.'_'.$_GET['folder'];\n\t\t\tif (rename($dir_ren, $dir_new)) {\n\t\t\t\t$query_component = $this->podb->update('component')\n\t\t\t\t\t->set(array('active' => 'N'))\n\t\t\t\t\t->where('id_component', $this->postring->valid($_GET['id'], 'sql'));\n\t\t\t\t$query_component->execute();\n\t\t\t\t$this->poflash->success($GLOBALS['_']['component_message_7'], 'admin.php?mod=component');\n\t\t\t} else {\n\t\t\t\t$this->poflash->error($GLOBALS['_']['component_message_8'], 'admin.php?mod=component');\n\t\t\t}\n\t\t}\n\t}", "public function delete()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'component', 'delete')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\tif (!empty($_POST)) {\n\t\t\t$component = $this->podb->from('component')->where('id_component', $this->postring->valid($_POST['id'], 'sql'))->limit(1)->fetch();\n\t\t\t$componentType = $component['type'];\n\t\t\tif ($componentType == 'component') {\n\t\t\t\t$folderinstall = 'component';\n\t\t\t} else {\n\t\t\t\t$folderinstall = 'widget';\n\t\t\t}\n\t\t\tif (file_exists('../'.DIR_CON.'/'.$folderinstall.'/'.$component['component'].'/uninstall.php')) {\n\t\t\t\theader('location:admin.php?mod=component&act=uninstall&folder='.$component['component']);\n\t\t\t} else {\n\t\t\t\t$delete_dir = new PoDirectory();\n\t\t\t\tif ($component['active'] == 'Y') {\n\t\t\t\t\t$delete_folder = $delete_dir->deleteDir('../'.DIR_CON.'/'.$folderinstall.'/'.$component['component']);\n\t\t\t\t} else {\n\t\t\t\t\t$delete_folder = $delete_dir->deleteDir('../'.DIR_CON.'/'.$folderinstall.'/_'.$component['component']);\n\t\t\t\t}\n\t\t\t\tif ($delete_folder) {\n\t\t\t\t\t$query = $this->podb->deleteFrom('component')->where('id_component', $this->postring->valid($_POST['id'], 'sql'));\n\t\t\t\t\t$query->execute();\n\t\t\t\t\t$this->poflash->success($GLOBALS['_']['component_message_2'], 'admin.php?mod=component');\n\t\t\t\t} else {\n\t\t\t\t\t$this->poflash->error($GLOBALS['_']['component_message_4'], 'admin.php?mod=component');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function forceDeleted(Component $component): void\n {\n $this->deleted($component);\n }", "public function remove()\n {\n }", "public function remove($element);", "public function remove() {\n\t\t$this->setRemoved(TRUE);\n\t}", "static public function dropContainer(): void {\n self::$instance = null;\n }", "public function restored(Component $component): void\n {\n $this->deleted($component);\n }", "protected function removeInstance() {}", "final public function delete() {\n $db = Database::getInstance();\n $mysqli = $db->getConnection();\n\t\n $sql_query = 'DELETE FROM fresco_costing_component_array WHERE component_id ='.$this->_component_id;\n \n $result = $mysqli->query($sql_query);\n if (!$result) {\n trigger_error('Unable to delete from database : SQL query : ' . $sql_query);\n }\n\treturn;\n }", "public function remove($item);", "public function remove()\n {\n\n }", "function cleanComponentCache() {\r\n\t\t$cache = & JFactory::getCache($this->component);\r\n\t\t$cache->clean($this->component);\r\n\t}", "public function removeElement($element);", "final public function removeChild(CtkBuildable $node) {\n\t\tthrow new CakeException(sprintf('Unknown child %s', get_class($node)));\n\t}", "public function remove($value);", "public function Delete ()\n {\n try {\n \n $office = new Office($this->parameters);\n \n if (OfficeRepository::getInstance()->find($office->getId()) == null) {\n throw new Exception(\"Office with id ( \" . $office->getId() . \" ) does not exist\");\n }\n \n OfficeRepository::getInstance()->remove($office);\n \n $this->container->setMsg(\"Office successfully removed\")\n ->setSuccess(true)\n ->getData(array(\n \"office\" => $office\n ));\n ;\n } catch (Exception $e) {\n $this->container->setMsg($e->getMessage())\n ->setSuccess(false);\n }\n \n return $this->container;\n }", "public function onRemove();", "public function doRemove(SectionComponent $component) {\n if (!$this->isTemporary() && $this->exoComponentManager->entityAllowCleanup($this->entity)) {\n $configuration = $component->get('configuration');\n if (!empty($configuration['block_revision_id'])) {\n $entity_for_removal = $this->exoComponentManager->entityLoadByRevisionId($configuration['block_revision_id']);\n if ($entity_for_removal) {\n $entity_for_removal->delete();\n }\n }\n }\n return $this;\n }", "public function containerRemove($container, $v = false, $force = false)\n {\n return $this->browser->delete(\n $this->uri->expand(\n 'containers/{container}{?v,force}',\n array(\n 'container' => $container,\n 'v' => $this->boolArg($v),\n 'force' => $this->boolArg($force)\n )\n )\n )->then(array($this->parser, 'expectEmpty'));\n }", "public function remove($parameter);", "public function __unset($offset)\n {\n if (empty($this->containerPointer ?? null)) {\n throw new \\Exception('No container pointer provided!', 1);\n }\n\n $method = 'unset' . ucfirst($offset);\n if (method_exists($this, $method)) {\n return call_user_func([$this, $method]);\n }\n\n unset($this->{$this->containerPointer}[$offset]);\n }", "public function remove($item) {\n $index = self::IndexOf($item);\n self::RemoveAt($index);\n }", "public function remove(ProductInterface $product);", "public function remove($resourceable, $id, Section $section, Content $content)\n {\n\n $section->components()->detach([$content->id]);\n\n log_activity(' Component Removed',\n 'A Section Content was successfully removed from the Sections', $content);\n\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public function remove($item)\n {\n $this->gridField->setRecord(null);\n $config = $this->gridField->getConfig();\n $config->addComponent(new GridFieldAddNewButton('buttons-before-right'));\n $config->addComponent(new GridFieldAddExistingAutocompleter('buttons-before-left'));\n }", "static function remove() {\n }", "public function remove($value)\n {\n $value = (string) $value;\n if (($key = array_search($value, $this->items)) !== false) {\n unset($this->items[$key]);\n }\n }", "public function testRemoveItem()\n {\n $item = $this->addItem();\n\n $this->laracart->removeItem($item->getHash());\n\n $this->assertEmpty($this->laracart->getItem($item->getHash()));\n }", "public function testRemoveElementFromBag()\n {\n $this->populateBag();\n $this->assertEquals(3, $this->bag->count());\n $this->bag->remove('var2');\n $this->assertEquals(2, $this->bag->count());\n }", "public function remove(string $name);", "public function removeAction()\r\n {\r\n $modelNavBlock = $this->getServiceLocator()->get('DotsNavBlock\\Db\\Model\\NavigationBlock');\r\n $QUERY = $this->getRequest()->getQuery()->toArray();\r\n $nav_id = $QUERY['id'];\r\n $nav = $modelNavBlock->getById($nav_id);\r\n $nav->delete();\r\n return $this->jsonResponse(array('success' => true, 'id' => $nav_id));\r\n }", "public function remove($key)\n {\n if (!$this->has($key)) {\n throw new BagKeyNotFoundException();\n }\n\n unset($this->bag[$key]);\n }", "static function remove($item){\n\t\tself::init();\n\t\tif( is_array($item)){\n\t\t\tforeach($item as $i)\n\t\t\t\tself::remove($i);\n\t\t\treturn;\n\t\t}\n\t\tself::$backend->removeItem($item);\n\t\tcacheItem::dropInstance($item);\n\t}", "public function removeMessage(MessageRepositoryInterface $message): PodiumResponse;", "public function remove($name);", "public function remove($name);", "public function remove($name);", "public function remove($name);", "public function remove($name);", "public function remove($name);", "public function remove(Article $article);", "public function remove(StorableLocator $storableLocator): void;", "public function testRemoveUnsetElement()\n {\n $success = $this->collection->remove(7);\n\n $this->assertFalse($success);\n }", "protected function remove($entity)\n {\n if (!$this->em()->isOpen()) {\n $this->getDoctrine()->resetManager();\n }\n\n $this->em()->remove($entity);\n $this->em()->flush();\n }", "abstract public function removeItem($name);", "public static function remove() : void\n {\n static::clear();\n \n }", "protected function flagForRemoval(SectionComponent $component) {\n $this->appendTemporaryValue('remove', $component);\n return $this;\n }", "public function remove($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "protected function componentDoesNotExist() : bool\n\t{\n\t\treturn ! method_exists($this->className(), $this->component);\n\t}", "public function remove(LabelTemplate $labelTemplate);", "public function remove($label) {\n\t\tif ($this->_has($label)) {\n\t\t\tunset($this->_register[$label]);\n\t\t}\n\t}", "public function Remove()\n {\n $file = __DIR__ . \\Extensions\\PHPImageWorkshop\\ImageWorkshop::UPLOAD_PATH . \"/banners/\" . $this->getSrc();\n if (file_exists($file)) {\n unlink($file);\n }\n parent::Remove();\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof CastleType) {\n $key = (string) $value->getId();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or CastleType object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(CastleTypePeer::$instances[$key]);\n }\n }", "protected function RemovalObject()\n {\n $id = Request::PostData('delete');\n return $id ? new Container($id) : null;\n }", "protected function removeFormObjectFromViewHelperVariableContainer() {}", "protected function removeOldInstanceIfExists() {}", "public static function Remove($name);", "public function remove($item) {\n unset($this->items[$item->id()]);\n }", "public function removeContact(ContactInterface $contact);", "public function deleted(Component $component): void\n {\n $this->componentService->calculateVendorSummaryData($component);\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof AsignacionSc) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or AsignacionSc object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function remove($object): void;", "public function remove_category() {\n\t\t$this->use_layout=false;\n\t\t$this->model = new $this->model_class(WaxUrl::get(\"id\"));\n\t\t$category = new CmsCategory(Request::get(\"cat\"));\n\t\t$this->model->categories->unlink($category);\n if(!$this->attached_categories = $this->model->categories) $this->attached_categories= array();\n\t\t$cat = new CmsCategory;\n\t\tif(!$this->all_categories = $cat->all() ) $this->all_categories=array();\t\t\n\t\t$this->cat_partial = $this->render_partial(\"list_categories\");\t\n\t}", "function RemoveControl(&$object) {\n\n \t//echo 'here';\n\n if (!is_object($object) || !is_object($this->FindControl($object->Name)))\n return;\n unset($object->Parent);\n unset($this->Controls[$object->Name]);\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Course) {\n\t\t\t\t$key = (string) $value->getCode();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Course object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function remove($name)\n {\n if (!$this->has($name)) {\n throw new \\InvalidArgumentException(sprintf('The action collection \"%s\" does not exist.', $name));\n }\n\n unset($this->actionCollections[$name]);\n }", "public function removeCard($card) : void\n {\n if ($this->isEmpty()) {\n throw new \\Exception('Empty deck nothing to remove');\n }\n\n $cards = array_filter($this->cards, function (Card $c) use ($card) {\n return !$c->isEqual($card);\n });\n\n $this->cards = array_values($cards);\n }", "function removeCollection()\n {\n $collection = eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );\n $collection->remove();\n }", "public function removeAction() {\r\n if (empty($_POST['photo_id']))\r\n die('error');\r\n //GET PHOTO ID AND ITEM\r\n $photo_id = (int) $this->_getParam('photo_id');\r\n $photo = Engine_Api::_()->getItem('sesvideo_chanelphoto', $photo_id);\r\n $db = Engine_Api::_()->getDbTable('chanelphotos', 'sesvideo')->getAdapter();\r\n $db->beginTransaction();\r\n try {\r\n $photo->delete();\r\n $db->commit();\r\n } catch (Exception $e) {\r\n $db->rollBack();\r\n throw $e;\r\n }\r\n }", "public function getComponent($name) {\n if(!isset($this->components[$name])) throw new Exception(\"Component $name not exists\");\n\n return $this->components[$name];\n }", "public function remove($event, $listener);", "public function remove_image($item)\n\t{\n\t\tthrow new Exception('Not implemented yet.');\n\t}", "public static function from(&$container, $path)\n {\n // defensive programming!\n RequireAnyOneOf::check([new IsAssignable, new IsIndexable], [$container], E4xx_UnsupportedType::class);\n RequireDotNotationPath::check($path);\n\n // find the point where we want to remove the data from\n list ($firstPart, $finalPart) = self::splitPathInTwo($path);\n $leaf =& DescendDotNotationPath::into($container, $firstPart);\n\n // remove it\n RemoveProperty::from($leaf, $finalPart);\n }", "public function remove(string $location): void;" ]
[ "0.6303586", "0.6252472", "0.62159735", "0.5895183", "0.57278365", "0.57058316", "0.54859275", "0.54854727", "0.5463962", "0.54206836", "0.54206836", "0.54206836", "0.54206836", "0.53785497", "0.53687453", "0.536179", "0.5360531", "0.534296", "0.5317966", "0.52575356", "0.5251192", "0.5251192", "0.5251192", "0.5201039", "0.5186603", "0.515386", "0.5097686", "0.5092393", "0.50590676", "0.50434434", "0.50283796", "0.5025224", "0.50204396", "0.4995314", "0.49844337", "0.48989213", "0.48850566", "0.48756906", "0.48715985", "0.48484853", "0.48402333", "0.48277873", "0.48115352", "0.47975668", "0.4797073", "0.47804114", "0.47756195", "0.4758003", "0.47464472", "0.47355905", "0.4721688", "0.47133604", "0.4710291", "0.467529", "0.46614864", "0.46525982", "0.46513638", "0.4647343", "0.46408823", "0.46345887", "0.46318427", "0.46318427", "0.46318427", "0.46318427", "0.46318427", "0.46318427", "0.46292976", "0.46281138", "0.46264434", "0.46263102", "0.46195006", "0.4607759", "0.46003684", "0.45962024", "0.45936358", "0.45815054", "0.45788416", "0.45774555", "0.45766708", "0.45700106", "0.45679575", "0.45654687", "0.45566776", "0.45400345", "0.45252946", "0.4519084", "0.45075542", "0.45052406", "0.45013395", "0.45011872", "0.44924903", "0.44909772", "0.44889387", "0.44811612", "0.44759688", "0.4470083", "0.4467539", "0.4462607", "0.44623193", "0.4456456" ]
0.5348527
17
control factories dg Adds singleline text input control to the form.
public function addText($name, $label = '', $cols = NULL, $maxLength = NULL) { return $this[$name] = new TextInput($label, $cols, $maxLength); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function txtCilindrada_Create($strControlId = null) {\n\t\t\t$this->txtCilindrada = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCilindrada->Name = QApplication::Translate('Cilindrada');\n\t\t\t$this->txtCilindrada->Text = $this->objFichas->Cilindrada;\n\t\t\t$this->txtCilindrada->MaxLength = Fichas::CilindradaMaxLength;\n\t\t\treturn $this->txtCilindrada;\n\t\t}", "function make_form_row(){\n\t\t$index = $this->col_index;\n\t\t# remove the * at the start of the first line\n\t\t$this->col_data = preg_replace(\"/^\\*/\",\"\",$this->col_data);\n\t\t# split the lines and remove the * from each. The value in each line goes into the array $values\n\t\t$values = preg_split(\"/\\n\\*?/\", $this->col_data);\n\t\t# pad the values array to make sure there are 3 entries\n\t\t$values = array_pad($values, 3, \"\");\n\t\t\n\t\t/*\n\t\tmake three input boxes. TableEdit takes row input from an input array named field a \n\t\tvalue for a particular field[$index] can be an array\n\t\t\tfield[$index][] is the field name\n\t\t\t40 is the length of the box\n\t\t\t$value is the value for the ith line\n\t\t \n\t\t */\n\t\t $form = ''; #initialize\n\t\t foreach($values as $i => $value){\n\t\t\t$form .= \"$i:\".XML::input(\"field[$index][]\",40,$value, array('maxlength'=>255)).\"<br>\\n\";\n\t\t}\n\t\treturn $form;\n\t\n\t}", "function wc_custom_add_custom_fields() {\n woocommerce_wp_textarea_input( \n\tarray( \n\t\t'id' => '_custom_text_field', \n\t\t'label' => __( 'Ingredient and Nutrition values', 'woocommerce' ), \n\t\t'placeholder' => 'If you add text here, a new tab will appear.'\n\t\n ) );\n}", "public function txtNeumaticos_Create($strControlId = null) {\n\t\t\t$this->txtNeumaticos = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtNeumaticos->Name = QApplication::Translate('Neumaticos');\n\t\t\t$this->txtNeumaticos->Text = $this->objFichas->Neumaticos;\n\t\t\t$this->txtNeumaticos->MaxLength = Fichas::NeumaticosMaxLength;\n\t\t\treturn $this->txtNeumaticos;\n\t\t}", "public function txtSeccion_Create($strControlId = null) {\n\t\t\t$this->txtSeccion = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtSeccion->Name = QApplication::Translate('Seccion');\n\t\t\t$this->txtSeccion->MaxLength = Seccion::SeccionMaxLength;\n\t\t\t$this->txtSeccion->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtSeccion->LinkedNode = QQN::Seccion()->Seccion;\n\t\t\t$this->txtSeccion->Text = $this->objSeccion->Seccion;\n\t\t\treturn $this->txtSeccion;\n\t\t}", "public function txtAlimentacion_Create($strControlId = null) {\n\t\t\t$this->txtAlimentacion = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtAlimentacion->Name = QApplication::Translate('Alimentacion');\n\t\t\t$this->txtAlimentacion->Text = $this->objFichas->Alimentacion;\n\t\t\t$this->txtAlimentacion->MaxLength = Fichas::AlimentacionMaxLength;\n\t\t\treturn $this->txtAlimentacion;\n\t\t}", "public function txtFilasDeAsientos_Create($strControlId = null) {\n\t\t\t$this->txtFilasDeAsientos = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtFilasDeAsientos->Name = QApplication::Translate('Filas De Asientos');\n\t\t\t$this->txtFilasDeAsientos->Text = $this->objFichas->FilasDeAsientos;\n\t\t\t$this->txtFilasDeAsientos->MaxLength = Fichas::FilasDeAsientosMaxLength;\n\t\t\treturn $this->txtFilasDeAsientos;\n\t\t}", "public function txtMoneda_Create($strControlId = null) {\n $this->txtMoneda = new QTextBox($this->objParentObject, $strControlId);\n $this->txtMoneda->Name = QApplication::Translate('Moneda');\n $this->txtMoneda->Text = $this->objFichas->Moneda;\n $this->txtMoneda->Required = false;\n $this->txtMoneda->TextMode = QTextMode::MultiLine;\n return $this->txtMoneda;\n }", "public function txtCreateby_Create($strControlId = null) {\n\t\t\t$this->txtCreateby = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCreateby->Name = QApplication::Translate('Createby');\n\t\t\t$this->txtCreateby->MaxLength = Seccion::CreatebyMaxLength;\n\t\t\t$this->txtCreateby->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtCreateby->LinkedNode = QQN::Seccion()->Createby;\n\t\t\t$this->txtCreateby->Text = $this->objSeccion->Createby;\n\t\t\treturn $this->txtCreateby;\n\t\t}", "public function txtCreateby_Create($strControlId = null) {\n\t\t\t$this->txtCreateby = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCreateby->Name = QApplication::Translate('Createby');\n\t\t\t$this->txtCreateby->MaxLength = ListaCurso::CreatebyMaxLength;\n\t\t\t$this->txtCreateby->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtCreateby->LinkedNode = QQN::ListaCurso()->Createby;\n\t\t\t$this->txtCreateby->Text = $this->objListaCurso->Createby;\n\t\t\treturn $this->txtCreateby;\n\t\t}", "public function txtPlazas_Create($strControlId = null) {\n\t\t\t$this->txtPlazas = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPlazas->Name = QApplication::Translate('Plazas');\n\t\t\t$this->txtPlazas->Text = $this->objFichas->Plazas;\n\t\t\t$this->txtPlazas->MaxLength = Fichas::PlazasMaxLength;\n\t\t\treturn $this->txtPlazas;\n\t\t}", "public function txtContent_Create($strControlId = null) {\n\t\t\t$this->txtContent = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtContent->Name = QApplication::Translate('Content');\n\t\t\t$this->txtContent->Text = $this->objClassifiedPost->Content;\n\t\t\t$this->txtContent->TextMode = QTextMode::MultiLine;\n\t\t\treturn $this->txtContent;\n\t\t}", "public function txtCilindros_Create($strControlId = null) {\n\t\t\t$this->txtCilindros = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCilindros->Name = QApplication::Translate('Cilindros');\n\t\t\t$this->txtCilindros->Text = $this->objFichas->Cilindros;\n\t\t\t$this->txtCilindros->MaxLength = Fichas::CilindrosMaxLength;\n\t\t\treturn $this->txtCilindros;\n\t\t}", "public function txtCreateby_Create($strControlId = null) {\n\t\t\t$this->txtCreateby = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCreateby->Name = QApplication::Translate('Createby');\n\t\t\t$this->txtCreateby->MaxLength = Docente::CreatebyMaxLength;\n\t\t\t$this->txtCreateby->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtCreateby->LinkedNode = QQN::Docente()->Createby;\n\t\t\t$this->txtCreateby->Text = $this->objDocente->Createby;\n\t\t\treturn $this->txtCreateby;\n\t\t}", "public function txtAceleracion0100_Create($strControlId = null) {\n\t\t\t$this->txtAceleracion0100 = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtAceleracion0100->Name = QApplication::Translate('Aceleracion 0100');\n\t\t\t$this->txtAceleracion0100->Text = $this->objFichas->Aceleracion0100;\n\t\t\t$this->txtAceleracion0100->MaxLength = Fichas::Aceleracion0100MaxLength;\n\t\t\treturn $this->txtAceleracion0100;\n\t\t}", "public function txtFrenosTraseros_Create($strControlId = null) {\n\t\t\t$this->txtFrenosTraseros = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtFrenosTraseros->Name = QApplication::Translate('Frenos Traseros');\n\t\t\t$this->txtFrenosTraseros->Text = $this->objFichas->FrenosTraseros;\n\t\t\t$this->txtFrenosTraseros->MaxLength = Fichas::FrenosTraserosMaxLength;\n\t\t\treturn $this->txtFrenosTraseros;\n\t\t}", "public function textbox($text)\n {\n return new TextBox($text);\n }", "public function getAddForm();", "public function txtConsumoInterurbano_Create($strControlId = null) {\n\t\t\t$this->txtConsumoInterurbano = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtConsumoInterurbano->Name = QApplication::Translate('Consumo Interurbano');\n\t\t\t$this->txtConsumoInterurbano->Text = $this->objFichas->ConsumoInterurbano;\n\t\t\t$this->txtConsumoInterurbano->MaxLength = Fichas::ConsumoInterurbanoMaxLength;\n\t\t\treturn $this->txtConsumoInterurbano;\n\t\t}", "function getInputForm() {\n\t\treturn new \\Flux\\LeadSplit();\n\t}", "public function createForm();", "public function createForm();", "public function txtFrenosDelanteros_Create($strControlId = null) {\n\t\t\t$this->txtFrenosDelanteros = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtFrenosDelanteros->Name = QApplication::Translate('Frenos Delanteros');\n\t\t\t$this->txtFrenosDelanteros->Text = $this->objFichas->FrenosDelanteros;\n\t\t\t$this->txtFrenosDelanteros->MaxLength = Fichas::FrenosDelanterosMaxLength;\n\t\t\treturn $this->txtFrenosDelanteros;\n\t\t}", "function OnBeforeCreateEditControl(){\n }", "public function txtPosicion_Create($strControlId = null) {\n\t\t\t$this->txtPosicion = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPosicion->Name = QApplication::Translate('Posicion');\n\t\t\t$this->txtPosicion->Text = $this->objFichas->Posicion;\n\t\t\t$this->txtPosicion->MaxLength = Fichas::PosicionMaxLength;\n\t\t\treturn $this->txtPosicion;\n\t\t}", "public function txtTraccion_Create($strControlId = null) {\n\t\t\t$this->txtTraccion = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtTraccion->Name = QApplication::Translate('Traccion');\n\t\t\t$this->txtTraccion->Text = $this->objFichas->Traccion;\n\t\t\t$this->txtTraccion->MaxLength = Fichas::TraccionMaxLength;\n\t\t\treturn $this->txtTraccion;\n\t\t}", "protected function createInputText($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/input/text.php'\n );\n \n $config['name'] = $this->getDefaultName($config);\n \n if (!isset($config['value'])) {\n $config['value'] = '';\n if (\n isset($config['property']) \n && isset($this->record[$config['property']])\n ) {\n $config['value'] = $this->record[$config['property']];\n }\n }\n return new \\Arch\\Registry\\View($tmpl, $config);\n }", "public function txtDescripcion_Create($strControlId = null) {\n\t\t\t$this->txtDescripcion = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtDescripcion->Name = QApplication::Translate('Descripcion');\n\t\t\t$this->txtDescripcion->Text = $this->objFichas->Descripcion;\n\t\t\t$this->txtDescripcion->Required = true;\n\t\t\t$this->txtDescripcion->TextMode = QTextMode::MultiLine;\n\t\t\treturn $this->txtDescripcion;\n\t\t}", "public function txtInfoEjes_Create($strControlId = null) {\n\t\t\t$this->txtInfoEjes = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtInfoEjes->Name = QApplication::Translate('Info Ejes');\n\t\t\t$this->txtInfoEjes->Text = $this->objFichas->InfoEjes;\n\t\t\t$this->txtInfoEjes->MaxLength = Fichas::InfoEjesMaxLength;\n\t\t\treturn $this->txtInfoEjes;\n\t\t}", "public function txtTipo_Create($strControlId = null) {\n\t\t\t$this->txtTipo = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtTipo->Name = QApplication::Translate('Tipo');\n\t\t\t$this->txtTipo->Text = $this->objFichas->Tipo;\n\t\t\t$this->txtTipo->MaxLength = Fichas::TipoMaxLength;\n\t\t\treturn $this->txtTipo;\n\t\t}", "public function txtAnio_Create($strControlId = null) {\n\t\t\t$this->txtAnio = new QIntegerTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtAnio->Name = QApplication::Translate('Anio');\n\t\t\t$this->txtAnio->Text = $this->objFichas->Anio;\n\t\t\treturn $this->txtAnio;\n\t\t}", "public function setupControl()\n\t{\n\t\t$this->addText('referenceNumber', 'Reference number:');\n\t\t$this->addSelect('priority', 'Priority:', PriorityEnum::getOptions());\n\t\t$this->addTextArea('symptoms', 'Symptoms:', 40, 8)\n\t\t\t->addRule(Form::FILLED, 'Symptoms are required.');\n\t\t$this->addText('problemOwner', 'Problem owner:');\n\t\t$this->addSelect('status', 'State:', array(\n\t\t\tOperationProblem::STATUS_NEW => 'new',\n\t\t\tOperationProblem::STATUS_INVESTIGATED => 'investigated',\n\t\t\tOperationProblem::STATUS_RESOLVED => 'resolved',\n\t\t\tOperationProblem::STATUS_CLOSED => 'closed'\n\t\t));\n\n\t\t$this->addSelect('category', 'Category:', array('' => $this->noCategoryText) + $this->getCategoriesOptions());\n\n\t\t$this->addTextArea('onEventRaw', 'onEvent:');\n\n\t\t$this->addSubmit('save', 'Save problem');\n\n\t\t$this->onValidate[] = $this->onValidateForm;\n\t}", "function ptf_code_integration_controls_fields( $fields ) {\n \n // Custom CSS\n $fields[] = array(\n 'type' => 'textarea',\n 'settings' => 'ptf_custom_css',\n 'label' => __( 'Custom CSS', 'artcore' ),\n 'description' => __( 'Enter your custom css code below.', 'artcore' ),\n 'help' => '',\n 'section' => 'ptf_custom_code_options',\n 'default' => '',\n 'priority' => 10,\n );\n \n return $fields;\n}", "public function addInput($LableText = null, $NewLine = false , $InputPrams = array(), $InputValue = array()) \n{\n $this->showElment($this->processInput($LableText, $NewLine, $InputPrams, $InputValue ));\n}", "function text($args) {\r\n\t\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\t\techo \"<input type='text' size='57' style='\" . $this->width($args['width']) . \"' \" . $this->placeholder($args['placeholder']) . \" name='\" . $args['formname'] . \"' value='\" . $args['value'] . \"'/>\";\t\t\t\t\t\r\n\t\t\t$this->description($args['description']);\r\n\t\t}", "public function CreateForm();", "abstract public function createForm();", "abstract public function createForm();", "public function txtContactPerson_Create($strControlId = null) {\n\t\t\t$this->txtContactPerson = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtContactPerson->Name = QApplication::Translate('Contact Person');\n\t\t\t$this->txtContactPerson->Text = $this->objCharityPartner->ContactPerson;\n\t\t\t$this->txtContactPerson->MaxLength = CharityPartner::ContactPersonMaxLength;\n\t\t\treturn $this->txtContactPerson;\n\t\t}", "public function setAsStaticForm() {\n\t\treturn $this->form_tag(implode('<br />', $this->_elements));\n\t}", "public function txtPeso_Create($strControlId = null) {\n\t\t\t$this->txtPeso = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPeso->Name = QApplication::Translate('Peso');\n\t\t\t$this->txtPeso->Text = $this->objFichas->Peso;\n\t\t\t$this->txtPeso->MaxLength = Fichas::PesoMaxLength;\n\t\t\treturn $this->txtPeso;\n\t\t}", "public function form()\n {\n $this->switch('auto_df_switch', __('message.tikuanconfig.auto_df_switch'));\n $this->timeRange('auto_df_stime', 'auto_df_etime', '开启时间');\n $this->text('auto_df_maxmoney', __('message.tikuanconfig.auto_df_maxmoney'))->setWidth(2);\n $this->text('auto_df_max_count', __('message.tikuanconfig.auto_df_max_count'))->setWidth(2);\n $this->text('auto_df_max_sum', __('message.tikuanconfig.auto_df_max_sum'))->setWidth(2);\n\n }", "public function testTextfieldWidgets() {\n $this->_testTextfieldWidgets('string', 'string_textfield');\n $this->_testTextfieldWidgets('string_long', 'string_textarea');\n }", "public function txtLetra_Create($strControlId = null) {\n\t\t\t$this->txtLetra = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtLetra->Name = QApplication::Translate('Letra');\n\t\t\t$this->txtLetra->MaxLength = Seccion::LetraMaxLength;\n\t\t\t$this->txtLetra->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtLetra->LinkedNode = QQN::Seccion()->Letra;\n\t\t\t$this->txtLetra->Text = $this->objSeccion->Letra;\n\t\t\treturn $this->txtLetra;\n\t\t}", "public function txtPrecio_Create($strControlId = null) {\n\t\t\t$this->txtPrecio = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPrecio->Name = QApplication::Translate('Precio');\n\t\t\t$this->txtPrecio->Text = $this->objFichas->Precio;\n\t\t\t$this->txtPrecio->Required = true;\n\t\t\t$this->txtPrecio->MaxLength = Fichas::PrecioMaxLength;\n\t\t\treturn $this->txtPrecio;\n\t\t}", "protected function Form_Create() {\n\t\t\t$this->txtValue1 = new QTextBox($this);\n\t\t\t\n\t\t\t$this->txtValue2 = new QTextBox($this);\n\t\t\t\n\t\t\t$this->lstOperation = new QListBox($this);\n\t\t\t$this->lstOperation->AddItem('+', 'add');\n\t\t\t$this->lstOperation->AddItem('-', 'subtract');\n\t\t\t$this->lstOperation->AddItem('*', 'multiply');\n\t\t\t$this->lstOperation->AddItem('/', 'divide');\n\t\t\t\n\t\t\t$this->btnCalculate = new QButton($this);\n\t\t\t$this->btnCalculate->Text = 'Calculate';\n\t\t\t$this->btnCalculate->AddAction(new QClickEvent(), new QServerAction('btnCalculate_Click'));\n\t\t\t\n\t\t\t$this->lblResult = new QLabel($this);\n\t\t\t$this->lblResult->HtmlEntities = false;\n\t\t}", "function makeTextInputField() {\n for ($i = 8; i<= ($i+6); $i++){\n echo \"\n <label for='input' . $i></label>\n <input type='text' name='input' . $i />\n \";\n }\n\n }", "function acf_textarea_input($attrs = array())\n{\n}", "public function txtDescription_Create($strControlId = null) {\n\t\t\t$this->txtDescription = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtDescription->Name = QApplication::Translate('Description');\n\t\t\t$this->txtDescription->Text = $this->objStewardshipBatch->Description;\n\t\t\t$this->txtDescription->MaxLength = StewardshipBatch::DescriptionMaxLength;\n\t\t\treturn $this->txtDescription;\n\t\t}", "public function getInputfields() {\n\n\t\t// get module getInputfields set config class\n \t$inputfields = parent::getInputfields();\n\n\t\t// get InputfieldText module\n \t$f = $this->modules->get('InputfieldText');\n \t$f->attr('name', 'findStr');\n \t$f->label = 'Find in text';\n\t\t$f->description = 'Add a word or pattern to find and replace within your text.';\n\n\t\t// add User role input to form config\n\t\t$inputfields->add($f);\n\n\n\t\t// get new InputfieldText module\n\t\t$f = $this->modules->get('InputfieldText');\n\t $f->attr('name', 'replaceStr');\n\t $f->label = 'Replace text';\n\t\t$f->description = 'text to show on the front end.';\n\n\t\t// add Page redirect input to form config\n\t $inputfields->add($f);\n\n\t\t// return module config inputs\n\t return $inputfields;\n \t}", "public function txtBatchLabel_Create($strControlId = null) {\n\t\t\t$this->txtBatchLabel = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtBatchLabel->Name = QApplication::Translate('Batch Label');\n\t\t\t$this->txtBatchLabel->Text = $this->objStewardshipBatch->BatchLabel;\n\t\t\t$this->txtBatchLabel->Required = true;\n\t\t\t$this->txtBatchLabel->MaxLength = StewardshipBatch::BatchLabelMaxLength;\n\t\t\treturn $this->txtBatchLabel;\n\t\t}", "function render_text() {\n\t\t?><input type=\"text\" id=\"<?php echo $this->slug ?>\" name=\"<?php echo $this->settings_page ?>[<?php echo $this->slug ?>]\" value=\"<?php echo $this->value ?>\" ><?php\n\t}", "public function txtIdSeguro_Create($strControlId = null) {\n\t\t\t$this->txtIdSeguro = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtIdSeguro->Name = QApplication::Translate('Id Seguro');\n\t\t\t$this->txtIdSeguro->Text = $this->objFichas->IdSeguro;\n\t\t\t$this->txtIdSeguro->MaxLength = Fichas::IdSeguroMaxLength;\n\t\t\treturn $this->txtIdSeguro;\n\t\t}", "public function txtStreet_Create($strControlId = null) {\n\t\t\t$this->txtStreet = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtStreet->Name = QApplication::Translate('Street');\n\t\t\t$this->txtStreet->Text = $this->objCharityPartner->Street;\n\t\t\t$this->txtStreet->MaxLength = CharityPartner::StreetMaxLength;\n\t\t\treturn $this->txtStreet;\n\t\t}", "public function txtMarchas_Create($strControlId = null) {\n\t\t\t$this->txtMarchas = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtMarchas->Name = QApplication::Translate('Marchas');\n\t\t\t$this->txtMarchas->Text = $this->objFichas->Marchas;\n\t\t\t$this->txtMarchas->MaxLength = Fichas::MarchasMaxLength;\n\t\t\treturn $this->txtMarchas;\n\t\t}", "public function txtPredeterminada_Create($strControlId = null) {\n\t\t\t$this->txtPredeterminada = new QIntegerTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPredeterminada->Name = QApplication::Translate('Predeterminada');\n\t\t\t$this->txtPredeterminada->Text = $this->objNotasImagenes->Predeterminada;\n\t\t\t$this->txtPredeterminada->Required = true;\n\t\t\treturn $this->txtPredeterminada;\n\t\t}", "public function txtCapacidadBaul_Create($strControlId = null) {\n\t\t\t$this->txtCapacidadBaul = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCapacidadBaul->Name = QApplication::Translate('Capacidad Baul');\n\t\t\t$this->txtCapacidadBaul->Text = $this->objFichas->CapacidadBaul;\n\t\t\t$this->txtCapacidadBaul->MaxLength = Fichas::CapacidadBaulMaxLength;\n\t\t\treturn $this->txtCapacidadBaul;\n\t\t}", "static function dt_edit_text($title,$name,$value,$default = '',$size = 60,$rows = 1,$editor = 0,$comment='',$sub_item = '',$class_col1='col-md-2',$class_col2='col-md-10'){\n\t\tif(!isset($value))\n\t\t\t$value = $default;\n\t\t$value = html_entity_decode(stripslashes($value),ENT_COMPAT,'UTF-8');\n $html = '';\n\t\techo '<div class=\"form-group\">\n <label class=\"'.$class_col1.' col-xs-12 control-label\">'.$title.'</label>\n <div class=\"'.$class_col2.' col-xs-12\">\n ';\n\t\tif($rows > 1){\n\t\t\tif(!$editor){\n\t\t\t\techo '<textarea class=\"form-control\" rows=\"'.$rows.'\" cols=\"'.$size.'\" name=\"'.$name.'\" id=\"'.$name.'\" >'.$value.'</textarea>';\n\t\t\t} else {\n//\t\t\t\techo '<textarea rows=\"10\" cols=\"10\" name=\"'.$name.'\" id=\"'.$name.'\" >'.$value.'</textarea>';\n//\t\t\t\techo \"<script>CKEDITOR.replace( '\".$name.\"');</script>\";\n\t\t\t\t$k = 'oFCKeditor_'.$name;\n\t\t\t\t$oFCKeditor[$k] = new FCKeditor($name) ;\n\t\t\t\t$oFCKeditor[$k]->BasePath\t= '../libraries/wysiwyg_editor/' ;\n\t\t\t\t$oFCKeditor[$k]->Value\t\t= stripslashes(@$value);\n\t\t\t\t$oFCKeditor[$k]->Width = $size;\n\t\t\t\t$oFCKeditor[$k]->Height = $rows;\n\t\t\t\t$oFCKeditor[$k]->Create() ;\n\t\t\t}\n\t\t}else{\n\t\t\tif($name == 'price' || $name=='price_old'|| $name=='discount'){\n\t\t\t\tif($value)\n\t\t\t\t echo'<input type=\"text\" class=\"form-control\" name=\"'.$name.'\" id=\"'.$name.'\" value=\"'.format_money($value,'').'\" size=\"'.$size.'\"/>';\n\t\t\t\telse\n\t\t\t\t\t echo '<input type=\"text\" class=\"form-control\" name=\"'.$name.'\" id=\"'.$name.'\" value=\"'.htmlspecialchars($value).'\" size=\"'.$size.'\"/>';\n\t\t\t}else{\n\t\t\t\t\techo '<input type=\"text\" class=\"form-control\" name=\"'.$name.'\" id=\"'.$name.'\" value=\"'.htmlspecialchars($value).'\" size=\"'.$size.'\"/>'; \t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif($sub_item)\n\t\t\techo $sub_item;\n\t\tif($comment)\n\t\t\techo '<p class=\"help-block\">'.$comment.'</p>';\n\t\techo '</div></div>';\n //echo $html;\n\t}", "static public function createTextArea($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/textarea.php\";\n }", "function acf_text_input($attrs = array())\n{\n}", "public function txtIdServicio_Create($strControlId = null) {\n\t\t\t$this->txtIdServicio = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtIdServicio->Name = QApplication::Translate('Id Servicio');\n\t\t\t$this->txtIdServicio->Text = $this->objFichas->IdServicio;\n\t\t\t$this->txtIdServicio->MaxLength = Fichas::IdServicioMaxLength;\n\t\t\treturn $this->txtIdServicio;\n\t\t}", "function ctools_export_form($form, &$form_state, $code, $title = '') {\r\n $lines = substr_count($code, \"\\n\");\r\n $form['code'] = array(\r\n '#type' => 'textarea',\r\n '#title' => $title,\r\n '#default_value' => $code,\r\n '#rows' => $lines,\r\n );\r\n\r\n return $form;\r\n}", "public function txtPeso_Create($strControlId = null) {\n\t\t\t$this->txtPeso = new QFloatTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPeso->Name = QApplication::Translate('Peso');\n\t\t\t$this->txtPeso->Text = $this->objComandoRiscoPeca->Peso;\n\t\t\t$this->txtPeso->Required = true;\n\t\t\treturn $this->txtPeso;\n\t\t}", "public function txtEmail_Create($strControlId = null) {\n\t\t\t$this->txtEmail = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtEmail->Name = QApplication::Translate('Email');\n\t\t\t$this->txtEmail->Text = $this->objCharityPartner->Email;\n\t\t\t$this->txtEmail->MaxLength = CharityPartner::EmailMaxLength;\n\t\t\treturn $this->txtEmail;\n\t\t}", "public function generate()\n {\n switch ($this->sColumn) {\n case 'description':\n $this->oForm->addElement(\n new Textarea(\n t('Description:'),\n $this->sColumn,\n [\n 'id' => $this->getFieldId('str'),\n 'onblur' => 'CValid(this.value,this.id,20,4000)',\n 'value' => $this->sVal,\n 'validation' => new Str(20, 4000),\n 'required' => 1\n ]\n )\n );\n $this->addCheckErrSpan('str');\n break;\n\n case 'punchline':\n $this->oForm->addElement(\n new Textbox(\n t('Punchline/Headline:'),\n 'punchline',\n [\n 'id' => $this->getFieldId('str'),\n 'onblur' => 'CValid(this.value,this.id,5,150)',\n 'value' => $this->sVal,\n 'validation' => new Str(5, 150)\n ]\n )\n );\n $this->addCheckErrSpan('str');\n break;\n\n case 'country':\n $this->oForm->addElement(\n new Country(\n t('Country:'),\n $this->sColumn,\n [\n 'id' => $this->getFieldId('str'),\n 'value' => $this->sVal,\n 'required' => 1\n ]\n )\n );\n break;\n\n case 'city':\n $this->oForm->addElement(\n new Textbox(\n t('City:'),\n $this->sColumn,\n [\n 'id' => $this->getFieldId('str'),\n 'onblur' => 'CValid(this.value,this.id,2,150)',\n 'value' => $this->sVal,\n 'validation' => new Str(2, 150),\n 'required' => 1\n ]\n )\n );\n $this->addCheckErrSpan('str');\n break;\n\n case 'state':\n $this->oForm->addElement(\n new Textbox(\n t('State/Province:'),\n $this->sColumn,\n [\n 'id' => $this->getFieldId('str'),\n 'onblur' => 'CValid(this.value,this.id,2,150)',\n 'value' => $this->sVal,\n 'validation' => new Str(2, 150)\n ]\n )\n );\n $this->addCheckErrSpan('str');\n break;\n\n case 'zipCode':\n $this->oForm->addElement(\n new Textbox(\n t('Postal Code:'),\n $this->sColumn,\n [\n 'id' => $this->getFieldId('str'),\n 'onblur' => 'CValid(this.value,this.id,2,15)',\n 'value' => $this->sVal,\n 'validation' => new Str(2, 15)\n ]\n )\n );\n $this->addCheckErrSpan('str');\n break;\n\n case 'middleName':\n $this->oForm->addElement(\n new Textbox(\n t('Middle Name:'),\n $this->sColumn,\n [\n 'id' => $this->getFieldId('name'),\n 'onblur' => 'CValid(this.value,this.id)',\n 'value' => $this->sVal,\n 'validation' => new Name\n ]\n )\n );\n $this->addCheckErrSpan('name');\n break;\n\n case 'height':\n $this->oForm->addElement(\n new Height(\n t('Height:'),\n $this->sColumn,\n [\n 'value' => $this->sVal\n ]\n )\n );\n break;\n\n case 'weight':\n $this->oForm->addElement(\n new Weight(\n t('Weight:'),\n $this->sColumn,\n [\n 'value' => $this->sVal\n ]\n )\n );\n break;\n\n case 'website':\n case 'socialNetworkSite':\n $sLabel = $this->sColumn === 'socialNetworkSite' ? t('Social Media Profile:') : t('Website:');\n $sDesc = $this->sColumn === 'socialNetworkSite' ? t('The URL of your social profile, such as Facebook, Instagram, Snapchat, LinkedIn, ...') : t('Your Personal Website/Blog (any promotional/affiliated contents will be removed)');\n $this->oForm->addElement(\n new Url(\n $sLabel,\n $this->sColumn, [\n 'id' => $this->getFieldId('url'),\n 'onblur' => 'CValid(this.value,this.id)',\n 'description' => $sDesc,\n 'value' => $this->sVal\n ]\n )\n );\n $this->addCheckErrSpan('url');\n break;\n\n case 'phone':\n $this->oForm->addElement(\n new Phone(\n t('Phone Number:'),\n $this->sColumn,\n array_merge(\n [\n 'id' => $this->getFieldId('phone'),\n 'onblur' => 'CValid(this.value, this.id)',\n 'value' => $this->sVal,\n ],\n self::setCustomValidity(\n t('Enter full number with area code.')\n ),\n )\n )\n );\n $this->addCheckErrSpan('phone');\n break;\n\n default:\n $sLangKey = strtolower($this->sColumn);\n $sClass = '\\PFBC\\Element\\\\' . $this->getFieldType();\n $this->oForm->addElement(new $sClass(t($sLangKey), $this->sColumn, ['value' => $this->sVal]));\n }\n\n return $this->oForm;\n }", "public function txtCombustible_Create($strControlId = null) {\n\t\t\t$this->txtCombustible = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCombustible->Name = QApplication::Translate('Combustible');\n\t\t\t$this->txtCombustible->Text = $this->objFichas->Combustible;\n\t\t\t$this->txtCombustible->MaxLength = Fichas::CombustibleMaxLength;\n\t\t\treturn $this->txtCombustible;\n\t\t}", "public function createForm()\n {\n }", "public function txtValvulas_Create($strControlId = null) {\n\t\t\t$this->txtValvulas = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtValvulas->Name = QApplication::Translate('Valvulas');\n\t\t\t$this->txtValvulas->Text = $this->objFichas->Valvulas;\n\t\t\t$this->txtValvulas->MaxLength = Fichas::ValvulasMaxLength;\n\t\t\treturn $this->txtValvulas;\n\t\t}", "function _field_text($fval) \n {\n $fval = (empty($fval) && !empty($this->opts))? $this->opts : $fval;\n if (is_array($fval) && !empty($this->attribs['multi']))\n $fval = ''; // we can't handle this here. Don't put \"Array\"\n\n return sprintf(\"<input type=\\\"text\\\" id=\\\"%s\\\" name=\\\"%s%s\\\" value=\\\"%s\\\" size=\\\"%d\\\" maxlength=\\\"%d\\\" class=\\\"%s\\\" %s />\\n\",\n $this->fname, \n $this->fname, \n (!empty($this->attribs['multi']))? '[]':'', \n $this->_htmlentities($fval), \n $this->_get_field_size(), \n $this->attribs['maxlength'], \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n }", "public function txtEmail_Create($strControlId = null) {\n\t\t\t$this->txtEmail = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtEmail->Name = QApplication::Translate('Email');\n\t\t\t$this->txtEmail->Text = $this->objClassifiedPost->Email;\n\t\t\t$this->txtEmail->MaxLength = ClassifiedPost::EmailMaxLength;\n\t\t\treturn $this->txtEmail;\n\t\t}", "public function txtUpdateby_Create($strControlId = null) {\n\t\t\t$this->txtUpdateby = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtUpdateby->Name = QApplication::Translate('Updateby');\n\t\t\t$this->txtUpdateby->MaxLength = Seccion::UpdatebyMaxLength;\n\t\t\t$this->txtUpdateby->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtUpdateby->LinkedNode = QQN::Seccion()->Updateby;\n\t\t\t$this->txtUpdateby->Text = $this->objSeccion->Updateby;\n\t\t\treturn $this->txtUpdateby;\n\t\t}", "public function getFormFiller() {}", "public function getFormFiller() {}", "function addText($name,$display=null,$value=null, $disabled=null, $maxlength=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\t\"type\" => \"text\", //defines the type of the input\r\n\t\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\t\"maxlength\" => $maxlength,\r\n\t\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\t\"id\" => $id\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = ucfirst($name) . \":\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "abstract function setupform();", "public function txtConsumoMixto_Create($strControlId = null) {\n\t\t\t$this->txtConsumoMixto = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtConsumoMixto->Name = QApplication::Translate('Consumo Mixto');\n\t\t\t$this->txtConsumoMixto->Text = $this->objFichas->ConsumoMixto;\n\t\t\t$this->txtConsumoMixto->MaxLength = Fichas::ConsumoMixtoMaxLength;\n\t\t\treturn $this->txtConsumoMixto;\n\t\t}", "function acf_get_textarea_input($attrs = array())\n{\n}", "public function txtPuertas_Create($strControlId = null) {\n\t\t\t$this->txtPuertas = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPuertas->Name = QApplication::Translate('Puertas');\n\t\t\t$this->txtPuertas->Text = $this->objFichas->Puertas;\n\t\t\t$this->txtPuertas->MaxLength = Fichas::PuertasMaxLength;\n\t\t\treturn $this->txtPuertas;\n\t\t}", "protected function createFormFields() {\n\t}", "public function onAddField()\n {\n return $this->makePartial('create_field_form');\n }", "public function txtPhone_Create($strControlId = null) {\n\t\t\t$this->txtPhone = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPhone->Name = QApplication::Translate('Phone');\n\t\t\t$this->txtPhone->Text = $this->objClassifiedPost->Phone;\n\t\t\t$this->txtPhone->MaxLength = ClassifiedPost::PhoneMaxLength;\n\t\t\treturn $this->txtPhone;\n\t\t}", "function AttribTextline( $id, $value, $name )\n\t{\n\t\t$success = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\treturn $success;\n\t}", "public function txtUpdateby_Create($strControlId = null) {\n\t\t\t$this->txtUpdateby = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtUpdateby->Name = QApplication::Translate('Updateby');\n\t\t\t$this->txtUpdateby->MaxLength = ListaCurso::UpdatebyMaxLength;\n\t\t\t$this->txtUpdateby->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtUpdateby->LinkedNode = QQN::ListaCurso()->Updateby;\n\t\t\t$this->txtUpdateby->Text = $this->objListaCurso->Updateby;\n\t\t\treturn $this->txtUpdateby;\n\t\t}", "public function txtDescription_Create($strControlId = null) {\n\t\t\t$this->txtDescription = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtDescription->Name = QApplication::Translate('Description');\n\t\t\t$this->txtDescription->Text = $this->objCharityPartner->Description;\n\t\t\t$this->txtDescription->MaxLength = CharityPartner::DescriptionMaxLength;\n\t\t\treturn $this->txtDescription;\n\t\t}", "public function txtPhone_Create($strControlId = null) {\n\t\t\t$this->txtPhone = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPhone->Name = QApplication::Translate('Phone');\n\t\t\t$this->txtPhone->Text = $this->objCharityPartner->Phone;\n\t\t\t$this->txtPhone->MaxLength = CharityPartner::PhoneMaxLength;\n\t\t\treturn $this->txtPhone;\n\t\t}", "public function txtConsumoUrbano_Create($strControlId = null) {\n\t\t\t$this->txtConsumoUrbano = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtConsumoUrbano->Name = QApplication::Translate('Consumo Urbano');\n\t\t\t$this->txtConsumoUrbano->Text = $this->objFichas->ConsumoUrbano;\n\t\t\t$this->txtConsumoUrbano->MaxLength = Fichas::ConsumoUrbanoMaxLength;\n\t\t\treturn $this->txtConsumoUrbano;\n\t\t}", "function fluid_edge_contact_form7_text_styles_1() {\n\t\t$selector = array(\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-text',\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-number',\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-date',\n\t\t\t'.cf7_custom_style_1 textarea.wpcf7-form-control.wpcf7-textarea',\n\t\t\t'.cf7_custom_style_1 select.wpcf7-form-control.wpcf7-select',\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-quiz'\n\t\t);\n\t\t\n\t\t$styles = fluid_edge_get_typography_styles('cf7_style_1_text');\n\n\t\t$placeholder_color = fluid_edge_options()->getOptionValue('cf7_style_1_text_color');\n\t\tif(!empty($placeholder_color)) {\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_1 input.wpcf7-text::-webkit-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_1 textarea.wpcf7-textarea::-webkit-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $placeholder_color)\n\t\t\t);\n\t\t}\n\n\t\t$background_color = fluid_edge_options()->getOptionValue('cf7_style_1_background_color');\n\t\t$background_opacity = 1;\n\t\tif($background_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_1_background_transparency') !== ''){\n\t\t\t\t$background_opacity = fluid_edge_options()->getOptionValue('cf7_style_1_background_transparency');\n\t\t\t}\n\t\t\t$styles['background-color'] = fluid_edge_rgba_color($background_color,$background_opacity);\n\t\t}\n\n\t\t$border_color = fluid_edge_options()->getOptionValue('cf7_style_1_border_color');\n\t\t$border_opacity = 1;\n\t\tif($border_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_1_border_transparency') !== ''){\n\t\t\t\t$border_opacity = fluid_edge_options()->getOptionValue('cf7_style_1_border_transparency');\n\t\t\t}\n\t\t\t$styles['border-color'] = fluid_edge_rgba_color($border_color,$border_opacity);\n\t\t}\n\n\t\t$border_width = fluid_edge_options()->getOptionValue('cf7_style_1_border_width');\n\t\tif($border_width !== ''){\n\t\t\t$styles['border-width'] = fluid_edge_filter_px($border_width) . 'px';\n\t\t}\n\n\t\t$border_radius = fluid_edge_options()->getOptionValue('cf7_style_1_border_radius');\n\t\tif($border_radius !== ''){\n\t\t\t$styles['border-radius'] = fluid_edge_filter_px($border_radius) . 'px';\n\t\t}\n\n\t\t$padding_top = fluid_edge_options()->getOptionValue('cf7_style_1_padding_top');\n\t\tif($padding_top !== ''){\n\t\t\t$styles['padding-top'] = fluid_edge_filter_px($padding_top) . 'px';\n\t\t}\n\n\t\t$padding_right = fluid_edge_options()->getOptionValue('cf7_style_1_padding_right');\n\t\tif($padding_right !== ''){\n\t\t\t$styles['padding-right'] = fluid_edge_filter_px($padding_right) . 'px';\n\t\t}\n\n\t\t$padding_bottom = fluid_edge_options()->getOptionValue('cf7_style_1_padding_bottom');\n\t\tif($padding_bottom !== ''){\n\t\t\t$styles['padding-bottom'] = fluid_edge_filter_px($padding_bottom) . 'px';\n\t\t}\n\n\t\t$padding_left = fluid_edge_options()->getOptionValue('cf7_style_1_padding_left');\n\t\tif($padding_left !== ''){\n\t\t\t$styles['padding-left'] = fluid_edge_filter_px($padding_left) . 'px';\n\t\t}\n\n\t\t$margin_top = fluid_edge_options()->getOptionValue('cf7_style_1_margin_top');\n\t\tif($margin_top !== ''){\n\t\t\t$styles['margin-top'] = fluid_edge_filter_px($margin_top) . 'px';\n\t\t}\n\n\t\t$margin_bottom = fluid_edge_options()->getOptionValue('cf7_style_1_margin_bottom');\n\t\tif($margin_bottom !== ''){\n\t\t\t$styles['margin-bottom'] = fluid_edge_filter_px($margin_bottom) . 'px';\n\t\t}\n\n\t\tif(fluid_edge_options()->getOptionValue('cf7_style_1_textarea_height')) {\n\t\t\t$textarea_height = fluid_edge_options()->getOptionValue('cf7_style_1_textarea_height');\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t'.cf7_custom_style_1 textarea.wpcf7-form-control.wpcf7-textarea',\n\t\t\tarray('height' => fluid_edge_filter_px($textarea_height).'px')\n\t\t\t);\n\t\t}\n\n\t\techo fluid_edge_dynamic_css($selector, $styles);\n\t}", "public function txtCapacidadTanque_Create($strControlId = null) {\n\t\t\t$this->txtCapacidadTanque = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCapacidadTanque->Name = QApplication::Translate('Capacidad Tanque');\n\t\t\t$this->txtCapacidadTanque->Text = $this->objFichas->CapacidadTanque;\n\t\t\t$this->txtCapacidadTanque->MaxLength = Fichas::CapacidadTanqueMaxLength;\n\t\t\treturn $this->txtCapacidadTanque;\n\t\t}", "public function txtModel_Create($strControlId = null) {\n\t\t\t$this->txtModel = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtModel->Name = QApplication::Translate('Model');\n\t\t\t$this->txtModel->Text = $this->objReference->Model;\n\t\t\t$this->txtModel->Required = true;\n\t\t\t$this->txtModel->MaxLength = Reference::ModelMaxLength;\n\t\t\treturn $this->txtModel;\n\t\t}", "public function txtUpdateby_Create($strControlId = null) {\n\t\t\t$this->txtUpdateby = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtUpdateby->Name = QApplication::Translate('Updateby');\n\t\t\t$this->txtUpdateby->MaxLength = Docente::UpdatebyMaxLength;\n\t\t\t$this->txtUpdateby->PreferredRenderMethod = 'RenderWithName';\n\t\t\t$this->txtUpdateby->LinkedNode = QQN::Docente()->Updateby;\n\t\t\t$this->txtUpdateby->Text = $this->objDocente->Updateby;\n\t\t\treturn $this->txtUpdateby;\n\t\t}", "public function create()\n {\n return view('lines.create', ['tab'=>'line', 'option'=>'createLine']);\n }", "function getInputForm() {\n\t\treturn new \\Flux\\Lead();\n\t}", "public function txtReferencia_Create($strControlId = null) {\n\t\t\t$this->txtReferencia = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtReferencia->Name = QApplication::Translate('Referencia');\n\t\t\t$this->txtReferencia->Text = $this->objComandoRisco->Referencia;\n\t\t\t$this->txtReferencia->Required = true;\n\t\t\t$this->txtReferencia->MaxLength = ComandoRisco::ReferenciaMaxLength;\n\t\t\treturn $this->txtReferencia;\n\t\t}", "public function txtDescription_Create($strControlId = null) {\n\t\t\t$this->txtDescription = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtDescription->Name = QApplication::Translate('Description');\n\t\t\t$this->txtDescription->Text = $this->objGroupAssessmentList->Description;\n\t\t\t$this->txtDescription->MaxLength = GroupAssessmentList::DescriptionMaxLength;\n\t\t\treturn $this->txtDescription;\n\t\t}", "public function getCreateProductLineFeatureForm()\n {\n $this->productLineFeatureForm->bind(clone $this->getProductLineFeaturePrototype());\n\n return $this->productLineFeatureForm;\n }", "public static function inputText($model,$attribute,$properties=array()) {\n// $attr = self::getNameValueID($model, $attribute);\n// $input_attributes = self::getInputAttributes($attr,$properties);\n// return '<input type=\"text\" ' . $input_attributes . ' />';\n return self::inputTag('text', $model, $attribute,$properties); \n }", "abstract protected function _setNewForm();", "function acf_get_text_input($attrs = array())\n{\n}", "function create_input_field( $args ) {\n\tif( count($args) > 4 ) {\n\t\techo '<input id=\"' . $args[0] . '\" name=\"'. $args[1] .'\" type=\"'. $args[2] .'\" value=\"'. $args[3] .'\" \n\t\t\tplaceholder=\"'. $args[4] .'\" class=\"' . $args[5] . '\" />';\n\t\treturn;\n\t}\n\n\techo '<input name=\"'. $args[0] .'\" type=\"'. $args[1] .'\" value=\"'. $args[2] .'\" \n\t\t\tplaceholder=\"'. $args[3] .'\" />';\n}", "function create_custom_field() {\n $args = array(\n 'id' => 'custom_field_brand',\n 'label' => __( 'Detalhes da Marca'),\n 'class' => 'brand-custom-field',\n 'desc_tip' => true,\n 'description' => __( 'Enter the brand details.'),\n );\n woocommerce_wp_textarea_input( $args );\n}" ]
[ "0.60080916", "0.58642375", "0.58390415", "0.5831949", "0.579809", "0.5759829", "0.5725629", "0.5685612", "0.56668943", "0.56618416", "0.5653067", "0.5648203", "0.56314063", "0.5625685", "0.56221616", "0.5616547", "0.5598755", "0.5592705", "0.5588107", "0.55729187", "0.5560254", "0.5560254", "0.5543112", "0.55351996", "0.5526922", "0.54944766", "0.5490317", "0.54662186", "0.54593754", "0.54534733", "0.5451195", "0.54362464", "0.54362136", "0.54255843", "0.54148126", "0.5410319", "0.54034245", "0.54034245", "0.5397573", "0.5383359", "0.53798294", "0.53757524", "0.53689414", "0.5358455", "0.5351531", "0.53502494", "0.534431", "0.5341895", "0.53323466", "0.53319156", "0.53285843", "0.53165954", "0.53150827", "0.53128785", "0.52928394", "0.5291531", "0.52908045", "0.5290363", "0.5290111", "0.5288923", "0.528832", "0.5280504", "0.5280213", "0.5275485", "0.5273345", "0.5271419", "0.52682126", "0.5267456", "0.5265544", "0.5260437", "0.525373", "0.5251796", "0.5251796", "0.52513325", "0.52495044", "0.5238472", "0.52354383", "0.52331215", "0.5231864", "0.5228723", "0.5226585", "0.52117705", "0.520759", "0.51998186", "0.51984787", "0.5191326", "0.5189978", "0.51863647", "0.5183632", "0.5179284", "0.5177395", "0.5167347", "0.516556", "0.5164013", "0.51415277", "0.5140292", "0.5135286", "0.5124423", "0.511564", "0.51154864" ]
0.52693295
66
Adds singleline text float number input control to the form.
public function addFloat($name, $label = '', $cols = 4, $maxLength = NULL) { return $this[$name] = new FloatInput($label, $cols, $maxLength); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _field_number($fval) \n {\n return $this->_field_text($fval);\n }", "function number( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_NUMBER,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_NUMBER\n );\n\t}", "public function numberInput($options = []) {\n $defaultOptions = [\n 'id' => self::NUMBER_ID,\n 'class' => 'form-control',\n 'autocomplete' => self::AUTO_CC_ATTR,\n 'placeholder' => '•••• •••• •••• ••••',\n 'required' => true,\n 'type' => 'tel',\n 'size' => 20\n ];\n $mergedOptions = array_merge($defaultOptions, $options);\n StripeHelper::secCheck($mergedOptions);\n $mergedOptions['data-stripe'] = self::NUMBER_ID;\n return Html::input('text', null, null, $mergedOptions);\n }", "function input_number($nm_var,$caption,$place,$val=NULL,$ro=NULL){\n?> \n <div class=\"form-group number\">\n <label for=\"<?php echo $nm_var; ?>\" class=\"col-sm-3 control-label\"><?php echo $caption; ?></label>\n <div class=\"col-sm-6\">\n <INPUT type=\"number\" id=\"txtNumber\" placeholder=\"<?php echo $place; ?>\" class=\"form-control\"\n onkeypress=\"return isNumberKey(event)\" value=\"<?php echo set_value($nm_var,$val);?>\" \n name=\"<?php echo $nm_var; ?>\" <?php if($ro!=NULL) echo \"Readonly\";?> > \n <h6><?php echo form_error($nm_var,'<div class=\"text-yellow\">', '</div>'); ?></h6>\n </div>\n </div>\n<?php\n// onkeypress=\"return isNumberKey(event)\" ditulis di jscode bagian awal.\n}", "public static function inputNumber($fieldName, $item)\n\t{\n $uppercaseFieldName = strtoupper($fieldName);\n $fieldValue = $item->$fieldName;\n\n $tooltipTitle = Text::_('COM_CAJOBBOARD_' . $uppercaseFieldName . '_FIELD_TOOLTIP_TITLE');\n $tooltipText = Text::_('COM_CAJOBBOARD_' . $uppercaseFieldName . '_FIELD_TOOLTIP_TEXT');\n $labelText = Text::_('COM_CAJOBBOARD_' . $uppercaseFieldName . '_FIELD_LABEL');\n\n $html = <<<EOT\n<fieldset\n name=\"$fieldName\"\n class=\"control-group hasTip\"\n title=\"$tooltipTitle::$tooltipText\"\n>\n <div class=\"control-label\">\n <label for=\"$fieldName\">\n $labelText\n </label>\n </div>\n <div class=\"controls\">\n <input type=\"number\" step=\"1\" name=\"$fieldName\" id=\"$fieldName\" value=\"$fieldValue\"/>\n </div>\n</fieldset>\nEOT;\n\n\t\treturn $html;\n }", "public static function validateFloat(TextBase $control)\r\n\t{\r\n\t\tforeach ($control->getValue() as $tag) {\r\n\t\t\tif (!Strings::match($tag, '/^-?[0-9]*[.,]?[0-9]+$/')) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn TRUE;\r\n\t}", "public function txtPeso_Create($strControlId = null) {\n\t\t\t$this->txtPeso = new QFloatTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPeso->Name = QApplication::Translate('Peso');\n\t\t\t$this->txtPeso->Text = $this->objComandoRiscoPeca->Peso;\n\t\t\t$this->txtPeso->Required = true;\n\t\t\treturn $this->txtPeso;\n\t\t}", "function Solicitar_Precio_ali($Value){\n echo \"<label for='Precio'><b>Precio</b></label>\";\n echo \"<input type='text' placeholder='Precio del alimento' name='Precio' required maxlength='3' value='\".$Value.\"'\";\n echo \"title='Ingrse un precio de $0.5 o de $1 a $99' pattern='^(\\d{1,2}|0.5)$'>\";\n echo \"<br><br>\";\n}", "function add_invoice_number_field() {\n\t\tif ( get_the_title() == \"Invoice\" ) {\n\t\t\techo '<p<label for=\"invoice_number\">Invoice Number:</label> <input type=\"text\" name=\"invoice_number\" id=\"invoice_number\" value=\"\" /></p>';\n\t\t}\n\t}", "public function it_shows_number_type_input()\n {\n // configure\n $inputs = [\n [\n 'type' => 'number',\n 'name' => 'number_of_tries'\n ]\n ];\n\n $this->configureInputs($inputs);\n\n // assert\n $this->get('/settings')\n ->assertStatus(200)\n ->assertSee('type=\"number\"', false);\n }", "function _field_text($fval) \n {\n $fval = (empty($fval) && !empty($this->opts))? $this->opts : $fval;\n if (is_array($fval) && !empty($this->attribs['multi']))\n $fval = ''; // we can't handle this here. Don't put \"Array\"\n\n return sprintf(\"<input type=\\\"text\\\" id=\\\"%s\\\" name=\\\"%s%s\\\" value=\\\"%s\\\" size=\\\"%d\\\" maxlength=\\\"%d\\\" class=\\\"%s\\\" %s />\\n\",\n $this->fname, \n $this->fname, \n (!empty($this->attribs['multi']))? '[]':'', \n $this->_htmlentities($fval), \n $this->_get_field_size(), \n $this->attribs['maxlength'], \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n }", "function Solicitar_Stock_ali($Value){\n echo \"<label for='Stock'><b>Stock</b></label>\";\n echo \"<input type='text' placeholder='Stock del alimento' name='Stock' required maxlength='100' value='\".$Value.\"'\";\n echo \"title='Ingrse un numero mayor a 1 y menor a 999' pattern='^\\d{1,3}$'>\";\n echo \"<br><br>\";\n}", "function get_input_number($id_campo, $lbl_campo, $value, $arr_err, $class='campo', $min=1, $max=9999, $decimal=false, $placeholder='') {\n $aux_aplicar_decimal = ($decimal == true) ? ' step=\".01\" ' : '';\n \n $o = '<div class=\"'.$class.'\">'; //output\n $o .= $lbl_campo;\n $o .= (isset($arr_err[$id_campo])) ? $arr_err[$id_campo] : '';\n $o .= '<input type=\"number\" max=\"'.$max.'\" min=\"'.$min.'\" id=\"'.$id_campo.'\" name=\"'.$id_campo.'\" '.$aux_aplicar_decimal.' placeholder=\"'.$placeholder.'\" value=\"'.htmlspecialchars(stripslashes($value)).'\" />';\n $o .= '</div>';\n return $o;\n }", "function variation_settings_fields( $loop, $variation_data, $variation ) {\n\n\n echo '<div class=\"options_group\">';\n\n // Number Field\n woocommerce_wp_text_input(\n array(\n 'id' => '_xxl_pricing[' . $variation->ID . ']',\n 'label' => __( 'XXL+ Pricing', 'woocommerce' ),\n 'desc_tip' => 'true',\n 'placeholder' => 'Required!',\n 'description' => __( 'Enter the price of XXL+ t-shirts that will be more expensive than the XS-XL shirts.', 'woocommerce' ),\n 'value' => get_post_meta( $variation->ID, '_xxl_pricing', true )\n )\n );\n\n echo '</div>';\n\n}", "function t_add_texonomy_field() {\n echo '<div class=\"form-field\">\n\t\t<label for=\"taxonomy_displayorder\">' . __('Display Order', 'zci') . '</label>\n\t\t<input type=\"text\" name=\"taxonomy_displayorder\" id=\"taxonomy_displayorder\" value=\"1\" />\n\t</div>';\n}", "public function txtPostedTotalAmount_Create($strControlId = null) {\n\t\t\t$this->txtPostedTotalAmount = new QFloatTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPostedTotalAmount->Name = QApplication::Translate('Posted Total Amount');\n\t\t\t$this->txtPostedTotalAmount->Text = $this->objStewardshipBatch->PostedTotalAmount;\n\t\t\treturn $this->txtPostedTotalAmount;\n\t\t}", "public function addInput($LableText = null, $NewLine = false , $InputPrams = array(), $InputValue = array()) \n{\n $this->showElment($this->processInput($LableText, $NewLine, $InputPrams, $InputValue ));\n}", "function uwwtd_field_num($field) {\n// $field[0]['#markup'] = 'Not provided';\n return uwwtd_format_number($field[0]['#markup'], 1);\n}", "public static function convert_number_field() {\n\n\t\t// Create a new Number field.\n\t\tself::$field = new GF_Field_Number();\n\n\t\t// Add standard properties.\n\t\tself::add_standard_properties();\n\n\t\t// Add Number specific properties.\n\t\tself::$field->rangeMin = rgar( self::$nf_field, 'number_min' );\n\t\tself::$field->rangeMax = rgar( self::$nf_field, 'number_max' );\n\n\t\t// Add currency property if needed.\n\t\tif ( rgar( self::$nf_field, 'mask' ) && 'currency' === self::$nf_field['mask'] ) {\n\t\t\tself::$field->numberFormat = 'currency';\n\t\t}\n\n\t}", "public function txtReportedTotalAmount_Create($strControlId = null) {\n\t\t\t$this->txtReportedTotalAmount = new QFloatTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtReportedTotalAmount->Name = QApplication::Translate('Reported Total Amount');\n\t\t\t$this->txtReportedTotalAmount->Text = $this->objStewardshipBatch->ReportedTotalAmount;\n\t\t\treturn $this->txtReportedTotalAmount;\n\t\t}", "function base_price_box_content($post){\n wp_nonce_field( basename( __FILE__ ), 'base_price_box_content_nonce' );\n\n\n $price = get_post_meta($post ->ID, 'base_price',true);\n\n echo '$ <input type=\"number\" class=\"form-control\" id=\"base_price\" name=\"base_price\" min=\"0.01\" step=\"0.01\" max=\"2500\" value=\"' . $price . '\" required=\"required\">';\n }", "public function float($prompt = 'Float', $message = 'Please enter a floating-point decimal.') {\n return $this->text($prompt, function($result) { \n return filter_var($result, FILTER_VALIDATE_FLOAT); \n }, $message);\n }", "public function txtActualTotalAmount_Create($strControlId = null) {\n\t\t\t$this->txtActualTotalAmount = new QFloatTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtActualTotalAmount->Name = QApplication::Translate('Actual Total Amount');\n\t\t\t$this->txtActualTotalAmount->Text = $this->objStewardshipBatch->ActualTotalAmount;\n\t\t\treturn $this->txtActualTotalAmount;\n\t\t}", "function acf_numval($value)\n{\n}", "function woo_qi_product_fields() {\n global $woocommerce, $post;\n\n \techo '<div class=\"wc_qi_input\">';\n \t\t// woo_qi field will be created here.\n \t\twoocommerce_wp_text_input(\n \t\t\tarray(\n 'type' => 'number',\n \t\t\t\t'id' => '_woo_qi_input',\n \t\t\t\t'label' => __( 'Qty Increment', 'woo_qi' ),\n \t\t\t\t'placeholder' => '',\n \t\t\t\t'desc_tip' => 'true',\n \t\t\t\t'description' => __( 'Enter the quantity increment for this product here.', 'woo_qi' )\n \t\t\t)\n \t\t);\n \techo '</div>';\n }", "public function number($attribute, $label, $options = [])\n {\n $options = static::defaults($options);\n return $this->addSingleField(\n $attribute,\n $options[self::OPTIONS_VALIDATION],\n Widget::getNumberWidget($attribute, $label, $options)\n );\n }", "function number_int( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_NUMBER,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_INTEGER\n );\n\t}", "function printNumberInput($isPro,$options, $label, $id, $description, $type = 'text', $default = '', $url='', $showSave = false) {\r\n $offset = '';\r\n if (ai_startsWith($label, 'i-')) {\r\n $offset = 'class=\"'.substr($label,0, 5).'\" ';\r\n $label = substr($label, 5);\r\n }\r\n \r\n if (!isset($options[$id])) {\r\n $options[$id] = '0';\r\n }\r\n if ($options[$id] == '' && $default != '') {\r\n $options[$id] = $default;\r\n }\r\n if (!isset($options['demo']) || $options['demo'] == 'false') {\r\n $isPro = false;\r\n }\r\n $pro_class = $isPro ? ' class=\"ai-pro\"':'';\r\n\r\n if ($isPro) {\r\n $label = '<span alt=\"Pro feature\" title=\"Pro feature\">'.$label.'</span>';\r\n }\r\n\r\n echo '\r\n <tr'.$pro_class.'>\r\n <th scope=\"row\" '.$offset.'>' . $label . renderExampleIcon($url) . renderExternalWorkaroundIcon($showSave). '</th>\r\n <td><span class=\"hide-print\">\r\n <input name=\"' . $id . '\" type=\"' . $type . '\" id=\"' . $id . '\" style=\"width:150px;\" onblur=\"aiCheckInputNumber(this)\" value=\"' . esc_attr($options[$id]) . '\" /><br></span>\r\n <p class=\"description\">' . $description . '</p></td>\r\n </tr>\r\n ';\r\n}", "public function setNumberAttribute($input)\n {\n $this->attributes['number'] = $input ? $input : null;\n }", "public function setFNumber(?float $value): void {\n $this->getBackingStore()->set('fNumber', $value);\n }", "public function setNumber1(float $number1){\n $this->number1 = $number1;\n }", "public function __construct() {\n\t\t\t$this->field_type = 'number';\n\n\t\t\tparent::__construct();\n\t\t}", "function edit_price_box()\r\n{\r\n\tglobal $post;\r\n\t$price = get_post_meta($post->ID, 'dish_price', true);\r\n\t$price = !$price ? '' : $price;\r\n\t?>\r\n\t<label for=\"dish_price\"><?php _e('Dish Price:')?></label>\r\n <input type=\"text\" id=\"dish_price\" name=\"dish_price\" value=\"<?php echo $price; ?>\" size=\"25\" />\r\n <small><?php _e('(Price example: £14.75)')?></small>\r\n<?php }", "private function display_input_text_field($name, $value, $size = 75) {\n?>\n<input type=\"text\" name=\"<?php echo htmlspecialchars($this->group); ?>[<?php echo htmlspecialchars($name); ?>]\" id=\"http_authentication_<?php echo htmlspecialchars($name); ?>\" value=\"<?php echo htmlspecialchars($value) ?>\" size=\"<?php echo htmlspecialchars($size); ?>\" /><br />\n<?php\n }", "public static function user_floatInput(){\n fscanf(STDIN,\"%f\\n\",$number);\n if(filter_var($number,FILTER_VALIDATE_FLOAT)){\n return $number;\n }\n else{\n echo \"Invalid Input!\\n\";\n return Util::user_floatInput();\n }\n }", "function dblions_footer_text() {\n\t$footertxt = esc_attr( get_option( 'footer_text' ) );\n\tcreate_input_field( array(\n\t\t\t'footer_text', 'text', \n\t\t\t$footertxt, 'Footer Text'\n\t\t) );\n}", "private function numberCustomField(): string\n {\n return Template::build($this->getTemplatePath('number.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'value' => $this->getValue($this->index),\n 'min' => $this->min,\n 'max' => $this->max,\n 'step' => $this->step,\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "public function setFloatField($value)\n {\n return $this->set(self::FLOAT_FIELD, $value);\n }", "function render_text_question($label, $input, $additionaltext=\"\", $numeric=false, $extra=\"\", $current=\"\")\n {\n\t?>\n\t<div class=\"Question\" id = \"pixelwidth\">\n\t\t<label><?php echo $label; ?></label>\n\t\t<div>\n\t\t<?php\n\t\techo \"<input name=\\\"\" . $input . \"\\\" type=\\\"text\\\" \". ($numeric?\"numericinput\":\"\") . \"\\\" value=\\\"\" . $current . \"\\\"\" . $extra . \"/>\\n\";\n\t\t\t\n\t\techo $additionaltext;\n\t\t?>\n\t\t</div>\n\t</div>\n\t<div class=\"clearerleft\"> </div>\n\t<?php\n\t}", "function text()\n {\n ?>\n <input type=\"text\" <?php $this->name_tag(); ?> value=\"<?php echo esc_attr( $this->setting_value ); ?>\" class=\"inferno-setting\" <?php $this->id_tag(\"inferno-concrete-setting-\"); ?> />\n <?php \n if($this->setting['type'] == 'range') {\n $this->range();\n }\n }", "static function numberForm (ViewRegistry $context) {\n $form=\"<form action=\\\"\\\" method=\\\"get\\\" id=\\\"messageNumber\\\" drawer=\\\"Rec\\\"><p>\".l(\"Message\").\"&nbsp;(\".$context->g(\"forumBegin\").\"..\".$context->g(\"forumEnd\").\"): \";\n $form.=\"<input type=\\\"text\\\" name=\\\"begin\\\" style=\\\"width:5em;\\\" value=\\\"\".$context->g(\"begin\").\"\\\" />\";\n $form.=\"<input type=\\\"hidden\\\" name=\\\"length\\\" value=\\\"\".$context->g(\"length\").\"\\\" />\";\n $form.=\"</p></form>\";\n return ($form);\n }", "public function txtQuantidadeReal_Create($strControlId = null) {\n\t\t\t$this->txtQuantidadeReal = new QIntegerTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtQuantidadeReal->Name = QApplication::Translate('Quantidade Real');\n\t\t\t$this->txtQuantidadeReal->Text = $this->objComandoRiscoPeca->QuantidadeReal;\n\t\t\t$this->txtQuantidadeReal->Required = true;\n\t\t\treturn $this->txtQuantidadeReal;\n\t\t}", "public function print_value_input(){\n return false;\n ?>\n <input\n class=\"<?php echo RB_Field_Factory::get_input_class_link(); ?>\"\n rb-control-final-value\n name=\"<?php echo $this->id; ?>\"\n value=\"<?php echo $this->value; ?>\"\n type=\"hidden\"></input>\n <?php\n }", "public static function number($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-number');\n\t\t$css_options += $css_defaults;\n\n\t\t$input = self::input($name, 'number', $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 numberFormatDataProvider() {}", "public function putFloat(string $name, ?float $value): string;", "function print_text_field($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\tif(isset($value['disabled']) && $value['disabled']=='disabled')\n\t\t\t$input_value = $value['std'];\n\t\techo '<input class=\"option-input\" name=\"'.$value['id'].'\" id=\"'.$value['id'].'\" type=\"'.$value['type'].'\" value=\"'.$input_value.'\" '.((isset($value['disabled']) && $value['disabled']=='disabled')?'disabled=\"disabled\"':'').'/>';\n\t\t$this->close_option($value);\n\t}", "function addText($name,$display=null,$value=null, $disabled=null, $maxlength=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\t\"type\" => \"text\", //defines the type of the input\r\n\t\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\t\"maxlength\" => $maxlength,\r\n\t\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\t\"id\" => $id\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = ucfirst($name) . \":\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function render_text() {\n\t\t?><input type=\"text\" id=\"<?php echo $this->slug ?>\" name=\"<?php echo $this->settings_page ?>[<?php echo $this->slug ?>]\" value=\"<?php echo $this->value ?>\" ><?php\n\t}", "function testTextFieldGivenNumberExpectsNumericStringValueReturned() {\n\n\t\t// arrange\n\t\tglobal $post;\n\t\t$TestValidTextField = new TestValidTextField();\n\t\t$TestValidTextField->fields['field']['type'] = 'text';\n\t\t$_POST = array(\n\t\t\t'post_ID' => 1,\n\t\t\t'field' => 1,\n\t\t);\n\t\t$validated = array();\n\n\t\t// act\n\t\t$TestValidTextField->validate($_POST['post_ID'], $TestValidTextField->fields['field'], $validated['field'], array());\n\n\t\t// assert\n\t\t$this->assertEquals('1', $validated['field']);\n\t}", "public function form()\n {\n $this->text('code', '基金代码');\n }", "public function id_number_callback()\n {\n printf(\n '<input type=\"text\" id=\"my_id_number\" name=\"my_id_number\" value=\"%s\" />',\n isset( $this->options['my_id_number'] ) ? esc_attr( $this->options['my_id_number']) : ''\n );\n }", "protected function _setNumeric($name, $value) {}", "function registry_coz_num_meta_box( $object, $box ) { ?>\n\n <?php wp_nonce_field( basename( __FILE__ ), 'registry_coz_num_nonce' ); ?>\n\n <p>\n <label for=\"coz-registry-num\">Input International Cozmeena Registration Number</label>\n <br />\n <input class=\"widefat\" type=\"number\" name=\"coz-registry-num\" id=\"coz-registry-num\" value=\"<?php echo esc_attr( get_post_meta( $object->ID, 'registry_coz_num', true ) ); ?>\" />\n </p> \n \n<?php }", "function addInputValue( $idx, $value );", "public function id_number_callback()\r\n {\r\n printf(\r\n '<input type=\"text\" id=\"id_number\" name=\"theme_option[id_number]\" value=\"%s\" />',\r\n isset($this->options['id_number']) ? esc_attr($this->options['id_number']) : ''\r\n );\r\n }", "public function number(string|int|float $message): self\n {\n return $this->addMessage(new Number($message));\n }", "public function createEmptyField()\r\n {\r\n return CrugeFactory::get()->getICrugeFieldCreate(CRUGEFIELDTYPE_TEXTBOX);\r\n }", "function acf_text_input($attrs = array())\n{\n}", "public function numeric(): static\r\n {\r\n if (!is_numeric($this->field) && !preg_match(\"/^[0-9]*$/\", $this->field)) $this->message(\"should be only numbers\");\r\n return $this;\r\n }", "protected function getForm_Type_NumberService()\n {\n @trigger_error('The \"form.type.number\" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);\n\n return $this->services['form.type.number'] = new \\Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType();\n }", "public function getLabel()\n {\n return 'Number';\n }", "public function txtPeso_Create($strControlId = null) {\n\t\t\t$this->txtPeso = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPeso->Name = QApplication::Translate('Peso');\n\t\t\t$this->txtPeso->Text = $this->objFichas->Peso;\n\t\t\t$this->txtPeso->MaxLength = Fichas::PesoMaxLength;\n\t\t\treturn $this->txtPeso;\n\t\t}", "function output_input_row( string $label, string $key, $val, string $type = 'text' ): void {\n\twp_enqueue_style( 'wpinc-meta-field' );\n\t$val = $val ?? '';\n\t?>\n\t<div class=\"wpinc-meta-field-single <?php echo esc_attr( $type ); ?>\">\n\t\t<label>\n\t\t\t<span><?php echo esc_html( $label ); ?></span>\n\t\t\t<input <?php name_id( $key ); ?> type=\"<?php echo esc_attr( $type ); ?>\" value=\"<?php echo esc_attr( $val ); ?>\" size=\"64\">\n\t\t</label>\n\t</div>\n\t<?php\n}", "function pt_text_speed_render()\n\t\t{ \n\t\t\t$options = get_option( 'pt_settings' );\n\t\t\t?>\n\t\t\t<input type='text' name='pt_settings[pt_text_field_speed]' value='<?php if( @$options['pt_text_field_speed'] > 0) echo $options['pt_text_field_speed']; else echo 5000;?>'> ms\n\t\t\t<?php\n\t\t}", "function dhl_parcel_textbox($reference_field_data, $is_editable) {\n if($is_editable ){\n ?>\n <input id=\"order_dhl_reference_field\" name='dhl_reference_field' type='text' maxlength=\"35\" value='<?php echo esc_attr($reference_field_data) ?>'>\n <button class=\"button wc-reload\"><span>Apply</span></button>\n <?php\n } else {\n ?>\n <input id=\"order_dhl_reference_field\" name='dhl_reference_field' style=\"width:100%\" type='text' value='<?php echo esc_attr($reference_field_data) ?>' readonly>\n <?php\n }\n }", "public function parseFloat()\n {\n if (is_string($this->value)) {\n $this->value = preg_replace('/\\s|`|\\'|,/', \"\", preg_replace('/,{1}/', '.', $this->value));\n }\n $this->value = (float)$this->value;\n return $this;\n }", "function readFloat();", "public function id_number_callback()\n {\n printf(\n '<input type=\"text\" id=\"id_number\" name=\"bpp_setting_options[id_number]\" value=\"%s\" />',\n isset( $this->options['id_number'] ) ? esc_attr( $this->options['id_number']) : ''\n );\n }", "function displayData_Textbox($strInput)\n{\n\t$strInput = convertHTML(stripslashes($strInput));\n\treturn $strInput;\n}", "protected function getInput()\n\t{\n\t\tif ($this->form->getValue('id', 0) == 0)\n\t\t{\n\t\t\treturn '<span class=\"readonly\">' . Lang::txt('COM_MENUS_ITEM_FIELD_ORDERING_TEXT') . '</span>';\n\t\t}\n\n\t\treturn parent::getInput();\n\t}", "public function writeFloat($num){ }", "public function addNumber($str_name)\n {\n return $this->addField($str_name, self::FIELD_NUMBER);\n }", "public static function textField($name,$value='',$option=array()) {\n\t\t$option['name']=$name;\n\t\t$option['type']='text';\n\t\t$option['value']=$value;\n\t\treturn self::htmltag('input',$option);\n\t}", "public function setNtry($value,$options=array('required'=>true)){ \n $this->_data['ntry'] = new ZendT_Type_Number($value,array('numDecimal'=>0));\n if ($options['db'])\n $this->_data['ntry']->setValueFromDb($value);\n \n if (!$options['db']){\n \n }\n return $this;\n }", "public function addMetaFieldsToAddForm()\n\t{\n\t\t$interval = $this->getMetaFields('interval');\n\t\t$animation = $this->getMetaFields('animation');\n\n\t\t?>\n\t\t\t<div class=\"form-field\">\n\t\t\t\t<label for=\"interval\">Tijd tussen slides</label>\n\t\t\t\t<input name=\"interval\" id=\"interval\" type=\"text\" value=\"<?php echo $interval;?>\" size=\"40\">\n\t\t\t\t<p class=\"description\">De tijd tussen slides in milliseconden (1000ms = 1s).</p>\n\t\t\t</div>\n\t\t\t<div class=\"form-field\">\n\t\t\t\t<label for=\"animation\">Animatie</label>\n\t\t\t\t<select name=\"animation\" id=\"animation\">\n\t\t\t\t\t<option <?php selected($animation, 'slide'); ?> value=\"slide\">Slide</option>\n\t\t\t\t\t<option <?php selected($animation, 'fade'); ?> value=\"fade\">Fade</option>\n\t\t\t\t</select>\n\t\t\t\t<p class=\"description\">Selecteer de animatie die gebruikt wordt door de slideshow.</p>\n\t\t\t</div>\n\t\t<?php\n\t}", "public function payment_fields() {\n\t\tparent::payment_fields();\n\t\t?>\n\t\t<p class=\"form-row form-row-wide\">\n\t\t\t<label for=\"social-security-number\">\n\t\t\t\t<?php echo __( 'Social Security Number', 'payex-woocommerce-payments' ); ?>\n\t\t\t\t<abbr class=\"required\">*</abbr>\n\t\t\t</label>\n\t\t\t<input type=\"text\" class=\"input-text required-entry\" name=\"social-security-number\"\n\t\t\t\t id=\"social-security-number\" value=\"\" autocomplete=\"off\">\n\t\t</p>\n\t\t<?php\n\t}", "function minorite_phone($variables) {\n $element = $variables['element'];\n $element['#attributes']['type'] = 'tel';\n element_set_attributes($element, array('id', 'name', 'value', 'size', 'maxlength'));\n _form_set_class($element, array('form-tel'));\n\n // Adds attributes required and readonly.\n if (!empty($element['#required'])) {\n $element['#attributes']['required'] = '';\n }\n if (!empty($element['#readonly'])) {\n $element['#attributes']['readonly'] = 'readonly';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />';\n}", "public function expInput($options = []) {\n $defaultOptions = [\n 'id' => self::EXP_ID,\n 'class' => 'form-control',\n 'autocomplete' => self::AUTO_EXP_ATTR,\n 'placeholder' => 'MM / YY',\n 'required' => true,\n 'type' => 'tel',\n ];\n $mergedOptions = array_merge($defaultOptions, $options);\n StripeHelper::secCheck($mergedOptions);\n $mergedOptions['data-stripe'] = self::EXP_ID;\n $inputs = Html::input('text', null, null, $mergedOptions);\n return $inputs;\n }", "function format_text($p_id, $p_name, $p_value, $p_placeholder = '', $p_class = 'input-xs', $p_style = '', $p_prop = ''){\n\treturn '<input type=\"text\" id=\"' . $p_id . '\" name=\"' . $p_name . '\" class=\"' . $p_class . '\" value=\"' . $p_value . '\" placeholder=\"' . $p_placeholder . '\" style=\"' . $p_style . '\" ' . $p_prop . '/>';\n}", "function productPrice($post)\r\n{\r\n ?>\r\n <p>\r\n <span>Цена: </span>\r\n <input type=\"text\" name='extra[price]' value=\"<?php echo get_post_meta($post->ID, \"price\", 1); ?>\">\r\n </p>\r\n <?php\r\n}", "function mDECIMAL_POSITIVE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DECIMAL_POSITIVE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n $n=null;\n\n // Tokenizer11.g:376:3: ( PLUS n= DECIMAL ) \n // Tokenizer11.g:377:3: PLUS n= DECIMAL \n {\n $this->mPLUS(); \n $nStart1303 = $this->getCharIndex();\n $this->mDECIMAL(); \n $n = new CommonToken($this->input, TokenConst::$INVALID_TOKEN_TYPE, TokenConst::$DEFAULT_CHANNEL, $nStart1303, $this->getCharIndex()-1);\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function multiinput_settings_field( $name, $settings, $value ) {\r\n\t$input_name = $name;\r\n\t$type = isset( $settings['type'] ) ? $settings['type'] : '';\r\n\t$class = isset( $settings['class'] ) ? $settings['class'] : '';\r\n\t$options = isset( $settings['options'] ) ? $settings['options'] : '';\r\n\r\n\t$suffix = isset( $settings['suffix'] ) ? $settings['suffix'] : '';\r\n\t$min = isset( $settings['min'] ) ? $settings['min'] : '';\r\n\t$max = isset( $settings['max'] ) ? $settings['max'] : '';\r\n\t$map_style = isset( $settings['map_style'] ) ? wp_json_encode( $settings['map_style'] ) : '';\r\n\r\n\t$output = '<div class=\"cp-multiinput-container\" data-id=\"' . $input_name . '\" data-units=\"' . $suffix . '\">\r\n\t\t\t\t\t<div class=\"cp-fields-param-units\">\r\n\t\t\t\t\t\t<span class=\"cp-units cp-unit-px\">' . __( 'PX', 'convertpro' ) . '</span>\r\n\t\t\t\t\t\t<span class=\"cp-units cp-unit-em\">' . __( 'EM', 'convertpro' ) . '</span>\r\n\t\t\t\t\t\t<span class=\"cp-units cp-unit-per\">' . __( '%', 'convertpro' ) . '</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<input type=\"hidden\" data-type=\"multiinput\" data-mapstyle=\"' . htmlspecialchars( $map_style, ENT_QUOTES, 'UTF-8' ) . '\" name=\"' . $input_name . '\" id=\"' . $input_name . '\" value=\"' . $value . '\" min=\"' . $min . '\" max=\"' . $max . '\" class=\"form-control cp-input cp-select ' . $input_name . ' ' . $type . ' \" for=\"\" data-type=\"' . $type . '\" />\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<div class=\"cp-multiinput-param-field-wrap\">\r\n\t\t\t\t\t\t\t<input type=\"number\" class=\"cp-multiinput-param-fields multiinput-top\" min=\"0\" data-multiinput=\"0\" />\r\n\t\t\t\t\t\t\t<span>' . __( 'TOP', 'convertpro' ) . '</span>\r\n\t\t\t\t\t\t</div><div class=\"cp-multiinput-param-field-wrap\">\r\n\t\t\t\t\t\t\t<input type=\"number\" class=\"cp-multiinput-param-fields multiinput-right\" min=\"0\" data-multiinput=\"1\" />\r\n\t\t\t\t\t\t\t<span>' . __( 'RIGHT', 'convertpro' ) . '</span>\r\n\t\t\t\t\t\t</div><div class=\"cp-multiinput-param-field-wrap\">\r\n\t\t\t\t\t\t\t<input type=\"number\" class=\"cp-multiinput-param-fields multiinput-bottom\" min=\"0\" data-multiinput=\"2\" />\r\n\t\t\t\t\t\t\t<span>' . __( 'BOTTOM', 'convertpro' ) . '</span>\r\n\t\t\t\t\t\t</div><div class=\"cp-multiinput-param-field-wrap\">\r\n\t\t\t\t\t\t\t<input type=\"number\" class=\"cp-multiinput-param-fields multiinput-left\" min=\"0\" data-multiinput=\"3\" />\r\n\t\t\t\t\t\t\t<span>' . __( 'LEFT', 'convertpro' ) . '</span>\r\n\t\t\t\t\t\t</div><div class=\"cp-multiinput-param-field-wrap\">\r\n\t\t\t\t\t\t\t<button class=\"cp-multiinput-toggle\">\r\n\t\t\t\t\t\t\t\t<span class=\"cp-multiinput-linked\"><i class=\"dashicons dashicons-admin-links\"></i></span>\r\n\t\t\t\t\t\t\t\t<span class=\"cp-multiinput-unlinked\"><i class=\"dashicons dashicons-editor-unlink\"></i></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t</div></p>';\r\n\treturn $output;\r\n}", "public function takingnuminput()\n {\n fscanf(STDIN, \"%s\\n\",$num);\n while((Utility::validating_float($num)))\n {\n echo \"Warning :the num should not be decimal and it should not contain char\\n\";\n fscanf(STDIN, \"%s\\n\",$num);\n\n }\n return $num;\n }", "private static function renderFloat($value)\n {\n return Yii::$app->formatter->asDecimal($value);\n }", "public function txtPrecio_Create($strControlId = null) {\n\t\t\t$this->txtPrecio = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPrecio->Name = QApplication::Translate('Precio');\n\t\t\t$this->txtPrecio->Text = $this->objFichas->Precio;\n\t\t\t$this->txtPrecio->Required = true;\n\t\t\t$this->txtPrecio->MaxLength = Fichas::PrecioMaxLength;\n\t\t\treturn $this->txtPrecio;\n\t\t}", "private function formatFNumber($input) {\n $leader = \"f/\"; // input in format f/16; trim \"f/\" leader\n if (strpos($input, $leader) === 0) {\n $input = substr($input, strpos($input, $leader) + strlen($leader));\n }\n\n if (!is_numeric($input)) {\n assert(\"is_numeric('$input') && \\$input = '$input'\");\n return \"\";\n }\n \n if ((int)$input <= 0) {\n assert(\"(int)'$input' > 0 && \\$input = '$input'\");\n return \"\";\n }\n \n return \"ƒ/\".$input;\n }", "public function settings_field_input_text($args)\n {\n $field = $args['field'];\n $default = $args['default'];\n\n // Get the value of this setting\n $value = get_option('master_link_plugin-' . $field, $default);\n\n // echo a proper input type=\"text\"\n echo sprintf('<input type=\"text\" name=\"master_link_plugin-%s\" id=\"master_link_plugin-%s\" value=\"%s\" />', $field, $field, $value);\n }", "function cmdeals_wp_text_input( $field ) {\n\tglobal $thepostid, $post;\n\t\n\tif (!$thepostid) $thepostid = $post->ID;\n\tif (!isset($field['placeholder'])) $field['placeholder'] = '';\n\tif (!isset($field['class'])) $field['class'] = 'short';\n\tif (!isset($field['value'])) $field['value'] = get_post_meta($thepostid, $field['id'], true);\n\t\n\techo '<p class=\"form-field '.$field['id'].'_field\"><label for=\"'.$field['id'].'\">'.$field['label'].'</label><input type=\"text\" class=\"'.$field['class'].'\" name=\"'.$field['id'].'\" id=\"'.$field['id'].'\" value=\"'.esc_attr( $field['value'] ).'\" placeholder=\"'.$field['placeholder'].'\" /> ';\n\t\n\tif (isset($field['description'])) echo '<span class=\"description\">' .$field['description'] . '</span>';\n\t\t\n\techo '</p>';\n}", "public function testIncreaseWithWithFloat()\n {\n $box = $this->box->increase(20.1);\n static::assertEquals(120, $box->getHeight());\n static::assertEquals(120, $box->getWidth());\n }", "private function add_new_line() {\n\n\t\t$this->fields[] = array( 'newline' => true );\n\n\t}", "function create_input_field( $args ) {\n\tif( count($args) > 4 ) {\n\t\techo '<input id=\"' . $args[0] . '\" name=\"'. $args[1] .'\" type=\"'. $args[2] .'\" value=\"'. $args[3] .'\" \n\t\t\tplaceholder=\"'. $args[4] .'\" class=\"' . $args[5] . '\" />';\n\t\treturn;\n\t}\n\n\techo '<input name=\"'. $args[0] .'\" type=\"'. $args[1] .'\" value=\"'. $args[2] .'\" \n\t\t\tplaceholder=\"'. $args[3] .'\" />';\n}", "public function add_input($type,$name,$value=NULL,$class=NULL)\n {\n echo '<input class=\"' . $class . '\" type=\"'.$type.'\" name=\"'.$name.'\" value=\"'.$value.'\" placeholder=\"'.ucfirst($name).'\" />' ;\n }", "public function ov_number($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('number', $name, $value, true, $args);\n }", "function f3f_order_meta_box( $post ) { ?>\r\n\t<?php wp_nonce_field( plugin_basename( __FILE__ ), 'f3f_feature_options' ); ?>\r\n\t<p><strong><?php _e('Order') ?></strong></p>\r\n\t<p><label class=\"screen-reader-text\" for=\"feature_order\"><?php _e('Order') ?></label><input name=\"feature_order\" type=\"text\" size=\"4\" id=\"feature_order\" value=\"<?php echo get_post_meta($post->ID, 'feature_order', true )?>\" /></p>\r\n<?php }", "function wc_custom_add_custom_fields() {\n woocommerce_wp_textarea_input( \n\tarray( \n\t\t'id' => '_custom_text_field', \n\t\t'label' => __( 'Ingredient and Nutrition values', 'woocommerce' ), \n\t\t'placeholder' => 'If you add text here, a new tab will appear.'\n\t\n ) );\n}", "public function provide_formNumber ( )\n {\n return array(\n 'simple test' => array(\n 'expected' => '<input type=\"number\" name=\"test_name\" id=\"test_name\" value=\"test-value\" />',\n 'name' => 'test_name',\n 'value' => 'test-value',\n ),\n\n 'disabled attribute test' => array(\n 'expected' => '<input type=\"number\" name=\"test_name\" id=\"test_name\" value=\"test-value\" disabled=\"disabled\" />',\n 'name' => 'test_name',\n 'value' => 'test-value',\n array(\n 'disable' => true,\n )\n ),\n );\n\n }", "private function build_input_field($_meta, $_ptype = \"wccpf\", $_class = \"\", $_index = \"\", $_show_as_value = \"no\", $_readonly = \"\", $_cloneable = \"\", $_wrapper = true, $_has_pricing_rules = \"no\") {\r\n $html = '';\r\n $placeholder = '';\r\n $value = ($_ptype != \"wccaf\") ? (isset($_meta[\"default_value\"]) ? esc_attr($_meta[\"default_value\"]) : \"\") : ((isset($_meta['value'])) ? esc_attr($_meta['value']) : \"\");\r\n $has_field_rules = isset( $_meta[\"field_rules\"] ) && is_array( $_meta[\"field_rules\"] ) && count( $_meta[\"field_rules\"] ) != 0 ? \"yes\" : \"no\";\r\n if (isset($_meta[\"placeholder\"]) && (! empty($_meta[\"placeholder\"]))) {\r\n if (isset($_meta[\"required\"]) && $_meta[\"required\"] == \"yes\") {\r\n $placeholder = 'placeholder=\"' . esc_attr($_meta[\"placeholder\"]) . '\"';\r\n } else {\r\n $placeholder = 'placeholder=\"' . esc_attr($_meta[\"placeholder\"]) . '\"';\r\n }\r\n }\r\n \r\n $maxlength = (isset($_meta[\"maxlength\"]) && ! empty($_meta[\"maxlength\"])) ? ('maxlength=\"' . esc_attr($_meta[\"maxlength\"]) . '\"') : '';\r\n $min = (isset($_meta[\"min\"]) && ! empty($_meta[\"min\"])) ? ('min=\"' . esc_attr($_meta[\"min\"]) . '\"') : '';\r\n $max = (isset($_meta[\"max\"]) && ! empty($_meta[\"max\"])) ? ('max=\"' . esc_attr($_meta[\"max\"]) . '\"') : '';\r\n $step = (isset($_meta[\"step\"]) && ! empty($_meta[\"step\"])) ? ('step=\"' . esc_attr($_meta[\"step\"]) . '\"') : '';\r\n /* Some fields doesn't has required config option */\r\n $_meta[\"required\"] = isset($_meta[\"required\"]) ? $_meta[\"required\"] : \"no\";\r\n \r\n /* Construct the input field */\r\n if ($_show_as_value == \"no\") {\r\n if ($_meta[\"type\"] == \"text\") {\r\n if ($_ptype != \"wccaf\") {\r\n $value = esc_attr($_meta[\"default_value\"]);\r\n } else {\r\n $_meta['placeholder'] = isset($_meta['placeholder']) ? $_meta['placeholder'] : '';\r\n $_meta['key'] = isset($_meta['key']) ? $_meta['key'] : $_meta['id'];\r\n $_meta['value_type'] = isset($_meta['value_type']) ? $_meta['value_type'] : 'text';\r\n $data_type = empty($_meta['data_type']) ? '' : $_meta['data_type'];\r\n switch ($data_type) {\r\n case 'price':\r\n $_class .= ' wc_input_price';\r\n $value = wc_format_localized_price($_meta['value']);\r\n break;\r\n case 'decimal':\r\n $_class .= ' wc_input_decimal';\r\n $value = wc_format_localized_decimal($_meta['value']);\r\n break;\r\n case 'stock':\r\n $_class .= ' wc_input_stock';\r\n $value = wc_stock_amount($_meta['value']);\r\n break;\r\n case 'url':\r\n $_class .= ' wc_input_url';\r\n $value = esc_url($_meta['value']);\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n $html = '<input type=\"text\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" value=\"' . $value . '\" ' . $placeholder . ' ' . $maxlength . ' data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' />';\r\n } else if ($_meta[\"type\"] == \"number\") {\r\n $html = '<input type=\"number\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" value=\"' . $value . '\" ' . $placeholder . ' ' . $min . ' ' . $max . ' ' . $step . ' data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"number\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' />';\r\n } else if ($_meta[\"type\"] == \"email\") {\r\n $html = '<input type=\"email\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" ' . $placeholder . ' data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"email\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' value=\"' . $value . '\" />';\r\n } else if ($_meta[\"type\"] == \"datepicker\") {\r\n $dformat = \"\";\r\n if (isset($_meta[\"date_format\"]) && $_meta[\"date_format\"] != \"\") {\r\n $dformat = $this->convert_php_jquery_datepicker_format(esc_attr($_meta[\"date_format\"]));\r\n } else {\r\n $dformat = $this->convert_php_jquery_datepicker_format(\"d-m-Y\");\r\n }\t\r\n $html = '<input type=\"text\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" class=\"' . $_ptype . '-field ' . $_ptype . '-datepicker ' . $_ptype . '-datepicker-' . esc_attr( isset( $_meta[\"admin_class\"] ) ? $_meta[\"admin_class\"] : \"\" ) . ' ' . $_class . '\" ' . $placeholder . ' data-date-format=\"'. $dformat .'\" value=\"' . $value . '\" ' . (($_meta[\"readonly\"] == \"yes\") ? \"readonly\" : \"\") . ' data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' />';\r\n //$html .= $this->initialize_datepicker_field($_meta, $_ptype);\r\n } else if ($_meta[\"type\"] == \"colorpicker\") {\r\n if ($_meta[\"admin_class\"] == \"\") {\r\n $_meta[\"admin_class\"] = esc_attr($_meta[\"key\"]);\r\n } \r\n $defaultcolor = ($value && $value != \"\") ? $value : \"#000\";\r\n $html = '<input type=\"text\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_ptype . '-color ' . $_class . ' ' . $_ptype . '-color-' . esc_attr(isset( $_meta[\"admin_class\"] ) ? $_meta[\"admin_class\"] : \"\") . '\" value=\"' . $defaultcolor . '\" data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' />';\r\n if ($_ptype == \"wccaf\") {\r\n $html .= $this->initialize_color_picker_field($_meta);\r\n }\r\n } else if ($_meta[\"type\"] == \"password\") {\r\n $html = '<input type=\"password\" data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" ' . $placeholder . ' data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"password\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' value=\"' . $value . '\" />';\r\n } else if ($_meta[\"type\"] == \"hidden\") {\r\n $html = '<input type=\"hidden\" data-fkey=\"'. $_meta[\"key\"] .'\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" ' . $_cloneable . ' value=\"' . (isset($_meta[\"placeholder\"]) ? esc_attr($_meta[\"placeholder\"]) : \"\") . '\" />';\r\n } else {\r\n $html = '';\r\n }\r\n } else {\r\n /*\r\n * Show the raw value instead of as a field\r\n * Used for the Admin Field showing on product page\r\n * Its safe to assume that this option is not available for Admin Fields\r\n */\r\n if ($_meta[\"type\"] != \"colorpicker\") {\r\n $html = '<p class=\"wcff-wccaf-value-para-tag\">' . $_meta[\"default_value\"] . '</p>';\r\n } else {\r\n $defaultcolor = isset($_meta[\"default_value\"]) ? $_meta[\"default_value\"] : \"#000\";\r\n $html = ($_meta[\"hex_color_show_in\"] == \"yes\") ? '<span class=\"wcff-color-picker-color-show\" color-code=\"' . $defaultcolor . '\" style=\"padding: 0px 15px;background-color: ' . $defaultcolor . '\"; ></span>' : $defaultcolor;\r\n }\r\n }\r\n \r\n /* Add wrapper around the field, based on the user options */\r\n if ($_wrapper) {\r\n $html = $this->built_field_wrapper($html, $_meta, $_ptype, $_index);\r\n }\r\n return $html;\r\n }", "public function field_preview( $field ) {\n\n\t\t// Label.\n\t\t$this->field_preview_option( 'label', $field );\n\n\t\t// Primary field.\n\t\techo '<div>' . wpforms_format_amount( 0, true ) . '</div>';\n\n\t\t// Description.\n\t\t$this->field_preview_option( 'description', $field );\n\t}", "public function postFloat(string $field, string $input_culture = 'pt-br', int $decimal_digits = 2)\n {\n return $this->field_float(INPUT_POST, $field, $decimal_digits, $input_culture);\n }" ]
[ "0.60248977", "0.58514655", "0.554682", "0.55460733", "0.5416546", "0.5413518", "0.53914297", "0.5375392", "0.5374889", "0.5293773", "0.5264965", "0.52462184", "0.5220956", "0.5207607", "0.52015626", "0.517828", "0.5169786", "0.51286143", "0.5123235", "0.51062554", "0.50976527", "0.505491", "0.50506496", "0.5050205", "0.5032361", "0.503073", "0.50207174", "0.4976351", "0.4973513", "0.49700758", "0.4948452", "0.49363583", "0.49292195", "0.4925254", "0.49233449", "0.49170026", "0.49108008", "0.49028152", "0.4892763", "0.48911977", "0.48871052", "0.48863018", "0.48737234", "0.48480895", "0.4827382", "0.48269454", "0.4803027", "0.47872254", "0.47762904", "0.47734758", "0.4768082", "0.47673744", "0.47670275", "0.47616643", "0.47499043", "0.4749788", "0.47447667", "0.47376716", "0.47266594", "0.47254658", "0.47164282", "0.47114608", "0.47099525", "0.47086984", "0.46972302", "0.46963298", "0.46923482", "0.46806952", "0.46775234", "0.46651906", "0.4661724", "0.4658844", "0.4651862", "0.4649807", "0.46467635", "0.46431062", "0.46399015", "0.46322653", "0.4618343", "0.4611647", "0.46066388", "0.4604469", "0.4596995", "0.45911857", "0.45894948", "0.45860523", "0.45827895", "0.45822525", "0.45758578", "0.45742652", "0.45660052", "0.45618418", "0.45570838", "0.45526394", "0.45468578", "0.45465893", "0.45450178", "0.4533117", "0.45203164", "0.45134962" ]
0.5860399
1
Adds singleline text input control used for sensitive input such as passwords.
public function addPassword($name, $label, $cols = NULL, $maxLength = NULL) { $control = new TextInput($label, $cols, $maxLength); $control->setPasswordMode(TRUE); $this->addComponent($control, $name); return $control; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function display_input_text_field($name, $value, $size = 75) {\n?>\n<input type=\"text\" name=\"<?php echo htmlspecialchars($this->group); ?>[<?php echo htmlspecialchars($name); ?>]\" id=\"http_authentication_<?php echo htmlspecialchars($name); ?>\" value=\"<?php echo htmlspecialchars($value) ?>\" size=\"<?php echo htmlspecialchars($size); ?>\" /><br />\n<?php\n }", "function AttribTextline( $id, $value, $name )\n\t{\n\t\t$success = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\treturn $success;\n\t}", "public function addInput($LableText = null, $NewLine = false , $InputPrams = array(), $InputValue = array()) \n{\n $this->showElment($this->processInput($LableText, $NewLine, $InputPrams, $InputValue ));\n}", "function render_text() {\n\t\t?><input type=\"text\" id=\"<?php echo $this->slug ?>\" name=\"<?php echo $this->settings_page ?>[<?php echo $this->slug ?>]\" value=\"<?php echo $this->value ?>\" ><?php\n\t}", "function InputTextBox($VariableName,$default,$maxlength,$size,$autres=\"\")\t{\n\t\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t\t$cache=\"readonly disabled\";\n\t\t\t$res=\"\";\n\t\t\t$res.=\"<input type=\\\"text\\\" name=\\\"$VariableName\\\" id=\\\"$VariableName\\\" maxlength=\\\"$maxlength\\\" size=\\\"$size\\\" value=\\\"$default\\\" $autres $cache>\";\n\t\t\treturn $res;\n\t}", "public function render() : string\r\n {\r\n return '<input type=\"text\" />';\r\n }", "protected function getInput()\n\t{\n\t\treturn ' ';\n\t}", "public function password($text){\n\t\t$text['label'] = isset($text['label']) ? $text['label'] : 'Enter Text Here: ';\n\t\t$text['value'] = isset($text['value']) ? $text['value'] : '';\n\t\t$text['name'] = isset($text['name']) ? $text['name'] : '';\n\t\t$text['class'] = isset($text['class']) ? 'input_text '.trim($text['class']) : 'input_text';\n $text['onlyField'] = isset($text['onlyField']) ? $text['onlyField'] : false;\n $text['extraAtt'] = isset($text['extraAtt']) ? $text['extraAtt'] : '';\n\t\tif($text[\"onlyField\"]==true){\n return '<input type=\"password\" class=\"'.$text['class'].'\" name=\"'.$text['name'].'\" id=\"'.$text['name'].'\" value=\"'.$text['value'].'\" '.$text['extraAtt'].' />';\n }\n else{\n return '<div class=\"flclear clearfix\"></div>\n\t\t\t\t<label for=\"'.$text['name'].'\">'.$text['label'].'&nbsp;</label>\n \t<input type=\"password\" class=\"'.$text['class'].'\" name=\"'.$text['name'].'\" id=\"'.$text['name'].'\" value=\"'.$text['value'].'\" '.$text['extraAtt'].' />';\n }\n\n\t}", "public function setUserTextInput($input)\n {\n $this->userInput = trim($input);\n }", "public function encryption()\n {\n add_settings_field(\n 'encryption',\n apply_filters($this->plugin_name . 'label-encryption', esc_html__('Encryption', $this->plugin_name)),\n [$this->builder, 'textarea'],\n $this->plugin_name,\n $this->plugin_name . '-directives',\n [\n 'description' => 'Your GPG public key. (Optional)',\n 'id' => 'encryption',\n 'class' => 'large-text hide-when-disabled',\n 'value' => isset($this->options['encryption']) ? $this->options['encryption'] : false,\n 'rows' => 5,\n ]\n );\n }", "public function getInput()\n\t{\n\t\treturn ' ';\n\t}", "function form_textfield($forms){\r\n\t$type = isset($forms['type']) ? $forms['type'] : \"text\" ;\r\n\t$name = isset($forms['name'])? $forms['name'] : rand(1000 , 9999 ) ;\r\n\t$class = isset( $forms['class'] ) ? $forms['class'] : $forms['name'] ;\r\n\t$value = isset( $forms['value'] ) ? $forms['value'] : \"\" ;\r\n\t$id = isset( $forms['id'] ) ? $forms['id'] : $forms['name'] ;\r\n\t$text = ( $type ==\"password\") ? \"password\" : $type;\r\n\t\r\n\t$input = '<input onkeypress=\"return handleEnter(this, event)\" type=\"'.$text.'\" size=\"65\" ';\r\n\t$input .= ' name=\"'.$name.'\" ';\r\n\t$input .= ' class=\"'.$class.'\" ';\r\n\t$input .= ' id=\"'.$id.'\" ';\r\n\t$input .= ' value=\"'.$value.'\" '; \r\n\t$input .= ' />';\r\n\r\n\treturn $input;\r\n}", "public function textArea($text){\n $text['label'] = isset($text['label']) ? $text['label'] : 'Enter Password Here: ';\n\t\t$text['value'] = isset($text['value']) ? $text['value'] : '';\n\t\t$text['name'] = isset($text['name']) ? $text['name'] : '';\n\t\t$text['class'] = isset($text['class']) ?\"textarea \".$text['class'] : 'textarea';\n $text['extraAtt'] = isset($text['extraAtt']) ? ' '.$text['extraAtt'] : '';\n $text['onlyField'] = isset($text['onlyField']) ? $text['onlyField'] : false;\n\n if($text[\"onlyField\"]== true){\n return '<textarea class=\"'.$text['class'].'\" name=\"'.$text['name'].'\" id=\"'.$text['name'].'\" '.$text['extraAtt'].' >'.$text['value'].'</textarea>';\n }\n else{\n\t\t\treturn '<div class=\"flclear clearfix\"></div>\n\t\t\t\t<label for=\"'.$text['name'].'\">'.$text['label'].'&nbsp;</label>\n \t <textarea class=\"'.$text['class'].'\" name=\"'.$text['name'].'\" id=\"'.$text['name'].'\" '.$text['extraAtt'].' >'.$text['value'].'</textarea>';\n\t\t}\n\t}", "public function dbs_client_secret_html()\r\n\t{\r\n\t\t?>\r\n\t <input type=\"text\" name=\"dbs_client_secret\" value=\"<?php echo get_option('dbs_client_secret')?>\" style=\"\r\n width: 600px !important;\"/>\r\n\r\n\t <?php\r\n\t}", "protected function getInput()\n\t{\n\t\treturn '';\n\t}", "public function renderInput(): string\n {\n return FormFacade::textarea(\n $this->getKey(),\n $this->getInputValue(),\n $this->getInputAttributes(),\n )->toHtml();\n }", "public function form_field_text ( $args ) {\n\t\t$options = $this->get_settings();\n\t\techo '<input id=\"' . esc_attr( $args['key'] ) . '\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" size=\"40\" type=\"text\" value=\"' . esc_attr( $options[$args['key']] ) . '\" />' . \"\\n\";\n\t\tif ( isset( $args['data']['description'] ) ) {\n\t\t\techo '<span class=\"description\">' . $args['data']['description'] . '</span>' . \"\\n\";\n\t\t}\n\t}", "function text($args) {\r\n\t\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\t\techo \"<input type='text' size='57' style='\" . $this->width($args['width']) . \"' \" . $this->placeholder($args['placeholder']) . \" name='\" . $args['formname'] . \"' value='\" . $args['value'] . \"'/>\";\t\t\t\t\t\r\n\t\t\t$this->description($args['description']);\r\n\t\t}", "public function showApiKeyInput()\n\t{\n\t\t$id = 'revendless-api-key';\n\t\t$option = 'api_key';\n\n\t\t$value = (isset($this->options[$option]) && $this->options[$option]) ? ' value=\"'.esc_attr($this->options[$option]).'\"' : '';\n\n\t\tsettings_errors($id);\n\n\t\tprint '<input type=\"text\" name=\"'.self::OPTION_NAME.'['.$option.']\"'.$value.' id=\"'.$id.'\" maxlength=\"40\" size=\"45\" autocomplete=\"off\" pattern=\"[a-zA-Z0-9]+\" />';\n\t\tprint '<p class=\"description\">'.esc_html( __('An API Key associates your product integrations with your personal Revendless account.', 'revendless')).'</p>';\n\t}", "function INPUTpasse($champs,$valeur,$style,$taille)\n{\n html('<input type=\"password\" name=\"'.$champs.'\" size=\"'.$taille.'\"'\n .' maxlenght=\"40\" class=\"'.$style.'\" value=\"'.$valeur.'\">');\n}", "function text( \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_TEXT,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_STRING\n );\n\t}", "function draw_input($s_type, $s_name_prefix, $s_name, $wt_default_value) {\n\tif ($s_type == 'textbox') {\n\t\t\treturn '<input type=\\'textbox\\' size=\\'20\\' name=\\''.$s_name_prefix.$s_name.'\\' value=\\''.$wt_default_value.'\\' />';\n\t} else if ($s_type == 'checkbox') {\n\t\t\treturn '<input type=\\'checkbox\\' name=\\''.$s_name_prefix.$s_name.'\\' '.($wt_default_value ? 'CHECKED' : '').'/>';\n\t}\n}", "public function cli_keyboardInput() {}", "private function regularField()\n {\n return '\n <div class=\"form-group\">\n <label>Password</label>\n <input type=\"password\"\n name=\"fields[password]\"\n class=\"form-control\"\n value=\"\" />\n </div>\n\n <div class=\"form-group\">\n <label>Confirm Password</label>\n <input type=\"password\"\n name=\"fields[password_confirm]\"\n class=\"form-control\"\n value=\"\" />\n </div>\n ';\n }", "function access_key_gui() {\n $access_key = get_option('amazon_polly_access_key');\n echo '<input type=\"text\" class=\"regular-text\" name=\"amazon_polly_access_key\" id=\"amazon_polly_access_key\" value=\"' . esc_attr($access_key) . '\" autocomplete=\"off\"> ';\n echo '<p class=\"description\" id=\"amazon_polly_access_key\">Required only if you aren\\'t using IAM roles</p>';\n }", "public static function inputText($model,$attribute,$properties=array()) {\n// $attr = self::getNameValueID($model, $attribute);\n// $input_attributes = self::getInputAttributes($attr,$properties);\n// return '<input type=\"text\" ' . $input_attributes . ' />';\n return self::inputTag('text', $model, $attribute,$properties); \n }", "public function setText(string $input) {\n $this->inputText = $input;\n }", "function zen_draw_password_field($name, $value = '', $parameters = 'maxlength=\"40\"') {\n return zen_draw_input_field($name, $value, $parameters, 'password', true);\n }", "public function settings_field_private_key() {\n\t\t?>\n\t\t<input name=\"theme_my_login_recaptcha[private_key]\" type=\"text\" id=\"theme_my_login_recaptcha_private_key\" value=\"<?php echo esc_attr( $this->get_option( 'private_key' ) ); ?>\" class=\"regular-text\" />\n\t\t<?php\n\t}", "private function username()\n {\n $element = new Text('username');\n $element->setLabel('Username');\n $element->setAttribute('class', 'form-control');\n $element->setAttribute('placeholder', 'Username');\n $element->addValidators(array(\n new PresenceOf(array('message' => 'Username is required'))\n ));\n $this->add($element);\n }", "function setNoteText(){\n $html = \"\";\n \n $this->aFields[\"note\"]->editable = true;\n $this->aFields[\"note\"]->value = $html;\n }", "function mitext($name, $size = 20) {\n\treturn \"<input type=\\\"text\\\" name=\\\"$name\\\" value=\\\"[{\" . $name . \"}]\\\" size=\\\"$size\\\" />[{\" . $name . \"_MOD}]\";\n}", "public function createTokenInput(){\n $this->generateToken();\n return '<input type=\"hidden\" name=\"_once\" value=\"' . $_SESSION['token'] . '\">';\n }", "public function input($text,$name,$type){\r\n\t\treturn $this->surround('<input type=\"text\" name=\"'.$name.'\" > ');\r\n\r\n\t}", "public static function textField($name,$value='',$option=array()) {\n\t\t$option['name']=$name;\n\t\t$option['type']='text';\n\t\t$option['value']=$value;\n\t\treturn self::htmltag('input',$option);\n\t}", "public function ov_text($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('text', $name, $value, true, $args);\n }", "function text()\n {\n ?>\n <input type=\"text\" <?php $this->name_tag(); ?> value=\"<?php echo esc_attr( $this->setting_value ); ?>\" class=\"inferno-setting\" <?php $this->id_tag(\"inferno-concrete-setting-\"); ?> />\n <?php \n if($this->setting['type'] == 'range') {\n $this->range();\n }\n }", "function secret_key_gui() {\n $secret_key = get_option('amazon_polly_secret_key');\n echo '<input type=\"password\" class=\"regular-text\" name=\"amazon_polly_secret_key\" id=\"amazon_polly_secret_key\" value=\"' . esc_attr($secret_key) . '\" autocomplete=\"off\"> ';\n echo '<p class=\"description\" id=\"amazon_polly_access_key\">Required only if you aren\\'t using IAM roles</p>';\n }", "public static function text($input=array()){\n $html = null; \n $input_res = null; \n \n $end_length = end(self::$length);\n \n if( is_array($input)){\n if( count( $input)>=1){\n\n foreach($input as $input_key => $input_var ){\n $key_value = $input[$input_key]; \n if( !empty($input[$input_key])) $input_res .= $input_key.\"='\".($key_value) . \"' \";\n }\n\n $html .= \"<input type='text' \".__( $input_res ). \" />\";\n \n }\n }\n \n return $html;\n \n }", "public function generate()\n\t{\n\t\treturn sprintf('<input type=\"text\" name=\"%s\" id=\"ctrl_%s\" class=\"captcha mandatory%s\" value=\"\"%s%s',\n\t\t\t\t\t\t$this->strCaptchaKey,\n\t\t\t\t\t\t$this->strId,\n\t\t\t\t\t\t(($this->strClass != '') ? ' ' . $this->strClass : ''),\n\t\t\t\t\t\t$this->getAttributes(),\n\t\t\t\t\t\t$this->strTagEnding) . $this->addSubmit();\n\t}", "protected function input()\n {\n return '<input type=\"' . $this->property->input_type . '\" placeholder=\"Значение\" ' .\n 'name=\"property[' . $this->property->id . ']\" class=\"form-control\">';\n }", "function input_password($errors, $name, $label, $pattern, $title) {\n //create div belonging to the class 'required_field'\n echo '<div class=\"required_field\">';\n //create the label for the input\n label($name, $label);\n //create the password field with attributes matching the parameters (value from previous post is filled in)\n echo \"<input type=\\\"password\\\" name=\\\"$name\\\" pattern=\\\"$pattern\\\"\".\n \" title=\\\"$title\\\" onkeypress=\\\"hide_error_message('$name')\\\" required>\";\n //create error message span\n error_label($errors, $name);\n //close the div\n echo '</div>';\n}", "function API_key_field_markup($args)\n {\n $setting = get_option('widget_meteo_settings');\n $value = $setting['API_key'] ?: '';\n?>\n <input class=\"regular-text\" type=\"text\" name=\"widget_meteo_settings[API_key]\" value=\"<?= esc_attr($value); ?>\">\n\n <?php\n }", "function wc_custom_add_custom_fields() {\n woocommerce_wp_textarea_input( \n\tarray( \n\t\t'id' => '_custom_text_field', \n\t\t'label' => __( 'Ingredient and Nutrition values', 'woocommerce' ), \n\t\t'placeholder' => 'If you add text here, a new tab will appear.'\n\t\n ) );\n}", "public function input2($champs){\n echo \"<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12 form-row'>\n <input type='password' name='$champs' placeholder='$champs' class='form-control normal'>\n \n </div>\";\n }", "function dblions_footer_text() {\n\t$footertxt = esc_attr( get_option( 'footer_text' ) );\n\tcreate_input_field( array(\n\t\t\t'footer_text', 'text', \n\t\t\t$footertxt, 'Footer Text'\n\t\t) );\n}", "function j2_yt_textbox_callback($args) {\n $option = get_option($args[0]);\n echo '<input type=\"text\" id=\"'. $args[0] .'\" name=\"'. $args[0] .'\" value=\"' . $option . '\" />';\n }", "function print_text_field($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\tif(isset($value['disabled']) && $value['disabled']=='disabled')\n\t\t\t$input_value = $value['std'];\n\t\techo '<input class=\"option-input\" name=\"'.$value['id'].'\" id=\"'.$value['id'].'\" type=\"'.$value['type'].'\" value=\"'.$input_value.'\" '.((isset($value['disabled']) && $value['disabled']=='disabled')?'disabled=\"disabled\"':'').'/>';\n\t\t$this->close_option($value);\n\t}", "static public function createTextArea($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/textarea.php\";\n }", "public function doRender(){\r\n\t\t$label = ($this->label != '') ? Label::get($this)->doRender() : '';\r\n\t\t$javascriptValidationCode = $this->printJavascriptValidationCode();\r\n\r\n\t\treturn\r\n\t\t\t '<div class=\"'.$this->printWrapperClasses().'\">'\r\n\t\t\t\t.$label\r\n\t\t\t\t.'<div class=\"'.parent::WIDGETCLASS.(!empty($printJavascriptValidationCode) ? ' '.parent::JSENABLEDCLASS : '').'\">'\r\n\t\t\t\t\t.'<input'\r\n\t\t\t\t\t\t.$this->printId()\r\n\t\t\t\t\t\t.$this->printName()\r\n\t\t\t\t\t\t.' type=\"password\"'\r\n\t\t\t\t\t\t.' value=\"'.HtmlFormTools::auto_htmlspecialchars($this->text, $this->needsUtf8Safety()).'\"'\r\n\t\t\t\t\t\t.$this->printTitle()\r\n\t\t\t\t\t\t.$this->printSize()\r\n\t\t\t\t\t\t.$this->printMaxLength()\r\n\t\t\t\t\t\t.$this->printCssClasses()\r\n\t\t\t\t\t\t.$this->printJavascriptEventHandler()\r\n\t\t\t\t\t\t.$this->printTabindex()\r\n\t\t\t\t\t\t.$this->printReadonly()\r\n\t\t\t\t\t\t.$this->printDisabled()\r\n\t\t\t\t\t\t.$this->masterForm->printSlash()\r\n\t\t\t\t\t.'>'\r\n\t\t\t\t.'</div>'\r\n\t\t\t\t.$this->masterForm->printFloatBreak()\r\n\t\t\t.'</div>'\r\n\t\t\t.$javascriptValidationCode\r\n\t\t;\r\n\t}", "public static function option_neopress_password() {\n printf(\n '<input type=\"password\" id=\"neopress_password\" name=\"neopress_password\" value=\"%s\" />',\n get_option('neopress_password')\n );\n }", "public function display_option_client_key() {\n $client_key = $this->options['client_key'];\n $this->display_input_text_field('client_key', $client_key);\n?>\nThe key that the server requires for authentication, passed in the <code><?php esc_attr_e($this->plugin->query_var()); ?></code> parameter.\n<?php\n }", "function text_box() {\n\t\t$args = func_get_args();\n\n\t\t$this->explode_args($args);\n\t\t$this->buffer = \"<input type=\\\"text\\\" class=\\\"txtSearch\\\" \";\n\n\t\twhile (list($name,$val) = each($this->vars)) {\n\t\t\tif ($name != 'id')\n\t\t\t\t$this->buffer .= $name.($val !== NULL ? \"=\\\"$val\\\"\" : NULL).\" \";\n\n\t\t\tif ($name == \"name\" && !$id)\n\t\t\t\t$id = \" id=\\\"$val\\\"\";\n\t\t\tif ($name == \"id\")\n\t\t\t\t$id = \" id=\\\"$val\\\"\";\n\t\t}\n\t\t$this->buffer .= $id;\n\t\t$this->buffer .= \" />\";\n\t\treturn $this->output();\n\t}", "public function settings_field_input_text($args)\n {\n $field = $args['field'];\n $default = $args['default'];\n\n // Get the value of this setting\n $value = get_option('master_link_plugin-' . $field, $default);\n\n // echo a proper input type=\"text\"\n echo sprintf('<input type=\"text\" name=\"master_link_plugin-%s\" id=\"master_link_plugin-%s\" value=\"%s\" />', $field, $field, $value);\n }", "function CreateKeyCodeBox($keyCode, $enabled)\n\t{\n\t\tCreateRowHeader();\n\t\techo \"\t<div class=\\\"col-6\\\">\\n\";\n\t\techo \"\t\t<p class=\\\"lead\\\">ESE Code:</p>\\n\";\n\t\techo \"\t</div>\\n\";\n\t\techo \"\t<div class=\\\"col-6\\\">\\n\";\n\t\techo \"\t\t<input class=\\\"form-control\\\" type=\\\"text\\\" id=\\\"keyCode\\\" name=\\\"keyCode\\\" value=\\\"\" . $keyCode . \"\\\" required\";\n\t\tif (!$enabled)\n\t\t\techo \" readonly\";\n\t\techo \"/>\\n\";\n\t\techo \"\t</div>\\n\";\n\t\techo \"</div>\\n\";\n\t}", "function render_text_question($label, $input, $additionaltext=\"\", $numeric=false, $extra=\"\", $current=\"\")\n {\n\t?>\n\t<div class=\"Question\" id = \"pixelwidth\">\n\t\t<label><?php echo $label; ?></label>\n\t\t<div>\n\t\t<?php\n\t\techo \"<input name=\\\"\" . $input . \"\\\" type=\\\"text\\\" \". ($numeric?\"numericinput\":\"\") . \"\\\" value=\\\"\" . $current . \"\\\"\" . $extra . \"/>\\n\";\n\t\t\t\n\t\techo $additionaltext;\n\t\t?>\n\t\t</div>\n\t</div>\n\t<div class=\"clearerleft\"> </div>\n\t<?php\n\t}", "public function input(){\n\t\treturn '<input '.\n\t\t\t\t\t'type=\"'. $this->tipo .'\" '.\n\t\t\t\t\t'id=\"'. $this->name .'\" '.\n\t\t\t\t\t'name=\"'. $this->name .'\" '.\n\t\t\t\t\t'class=\"form-control\" '.\n\t\t\t\t\t'value=\"'.( isset($_POST[$this->name]) ? $_POST[$this->name] : '').'\"'.\n\t\t\t\t'/>';\n\t}", "public static function inputPassword($model,$attribute,$properties=array()) {\n// $attr = self::getNameValueID($model, $attribute);\n// $input_attributes = self::getInputAttributes($attr,$properties);\n// return '<input type=\"password\" ' . $input_attributes . ' />';\n return self::inputTag('password', $model, $attribute,$properties); \n }", "public function create_textfield( $args=array() ) {\n $settings = get_option( 'bii_instagram' );\n $classes = ( isset( $args['code'] ) && $args['code'] ? 'regular-text code' : '' );\n $type = ( isset( $args['type'] ) && $args['type'] ? $args['type'] : 'text' );\n $default = ( isset( $args['default'] ) ? $args['default'] : '' );\n printf( '<input name=\"bii_instagram[%s]\" type=\"%s\" value=\"%s\" class=\"%s\" />', $args['name'], $type, ( isset( $settings[ $args['name'] ] ) ? $settings[ $args['name'] ] : $default ), $classes );\n }", "public function getEditableText() {}", "public function settings_field_public_key() {\n\t\t?>\n\t\t<input name=\"theme_my_login_recaptcha[public_key]\" type=\"text\" id=\"theme_my_login_recaptcha_public_key\" value=\"<?php echo esc_attr( $this->get_option( 'public_key' ) ); ?>\" class=\"regular-text\" />\n\t\t<?php\n\t}", "public static function renderPassword();", "function create_textbox($name, $maxlength=20, $size=20, $email=false) {\n echo '<input type=\"';\n // Check if e-mail\n if (!$email) echo 'text'; else echo 'email';\n // Continue building textbox\n echo '\" name=\"' . $name\n . '\" size=\"' . $size . '\" maxlength=\"' . $maxlength .'\" value=\"';\n // Check for stickiness\n if (isset($_POST[$name])) echo $_POST[$name];\n echo '\"/>';\n}", "function secure_input($input) {\n\t\t\t$input = trim($input);\n\t\t\t$input = htmlspecialchars($input);\n\t\t\treturn $input;\n\t\t}", "public function textFieldBlock($model, $attribute, $htmlOptions = array())\r\n\t{\r\n\t\treturn $this->inputBlock('textfield', $model, $attribute, null, $htmlOptions);\r\n\t}", "function displayData_Textbox($strInput)\n{\n\t$strInput = convertHTML(stripslashes($strInput));\n\treturn $strInput;\n}", "private function textCustomField(): string\n {\n return Template::build($this->getTemplatePath('text.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'value' => $this->getValue($this->index),\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "function training_security_display_text($form, &$form_state) {\n $output = check_plain($form_state['values']['markup_security']['text_security']);\n $form['markup_security']['#markup'] = $output;\n\n return $form['markup_security'];\n}", "static function pre ($in = '', $data = []) {\n\t\treturn static::textarea_common($in, $data, __FUNCTION__);\n\t}", "function getSingleField_typeInput($fieldConf, $tcaFieldConf) {\n\n\t\t\t// Add the various parameters according to TCA configuration:\n\t\t$params = array(\n\t\t\t'type' => stristr($tcaFieldConf['eval'], 'password') ? 'password' : 'text',\n\t\t\t'name' => isset ($fieldConf['overridename']) ? $fieldConf['overridename'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']',\n\t\t\t'id' => isset ($fieldConf['overrideid']) ? $fieldConf['overrideid'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']',\n\t\t\t'value' => htmlspecialchars($this->sessionData['data'][$fieldConf['table']][$fieldConf['name']]),\n\t\t\t'size' => ($tcaFieldConf['size'] ? $tcaFieldConf['size'] : 30),\n\t\t\t'maxlength' => ($fieldTCACfon['max'] ? $tcaFieldConf['max'] : 255),\n\t\t\t'tabindex' => ($this->fieldTabIndex += 10),\n\t\t\t'class' => 'tx-frontendformslib-field tx-frontendformslib-field-' . (intval($fieldConf['config']['tx_frontendformslib_swaphorizontally']) ? 'switched': 'normal'),\n\t\t);\n\n\t\t$output = '<input '.$this->implode_assoc_r('=\"', '\" ', $params).'\" />';\n\n\t\treturn $output;\n\t}", "function text( $element )\n\t\t{\t\n\t\t\t$extraClass = \"\";\n\t\t\tif(isset($element['class_on_value']) && !empty($element['std'])) $extraClass = \" \".$element['class_on_value'];\n\t\t\t\n\t\t\t$text = '<input type=\"text\" class=\"'.$element['class'].$extraClass.'\" value=\"'.$element['std'].'\" id=\"'.$element['id'].'\" name=\"'.$element['id'].'\"/>';\n\t\t\t\n\t\t\tif(isset($element['simple'])) return $text;\n\t\t\treturn '<span class=\"ace_style_wrap\">'.$text.'</span>';\n\t\t}", "function tep_cfg_textarea($text) {\n return tep_draw_textarea_field('configuration_value', false, 35, 5, $text);\n}", "function input_readonly_text($element_name, $values) {\r\n print '<input type=\"text\" name=\"'.$element_name.'\"id=\"'.$element_name.'\" value=\"';\r\n print html_entity_decode($values[$element_name], ENT_NOQUOTES) . '\" readonly>';\r\n}", "function acf_text_input($attrs = array())\n{\n}", "static public function text($name,$opts=[]) {\n return self::input($name,$opts);\n }", "public function authenticationWithValidAsciiSpecialCharClassPassword() {}", "public function authenticationWithValidAsciiSpecialCharClassPassword() {}", "public function authenticationWithValidAsciiSpecialCharClassPassword() {}", "public function text($name,$value=null,$options=null)\n\t{\n\t\t$options = ($options!=null) ? array_merge(array('size'=>15),$options) : $options;\n\t\treturn $this->input('text',$name,$value,$options);\n\t}", "public function settings_field_input_text( $args ) {\r\n\t\t\t\t// Get the field name from the $args array.\r\n\t\t\t\t$field = $args['field'];\r\n\t\t\t\t$default = $args['default'];\r\n\t\t\t\t$help_text = $args['help_text'];\r\n\t\t\t\t// Get the value of this setting.\r\n\t\t\t\t$value = get_option( $field, $default );\r\n\t\t\t\techo sprintf(\r\n\t\t\t\t\t'<input type=\"text\" name=\"%s\" id=\"%s\" value=\"%s\" /> <span>%s</span>',\r\n\t\t\t\t\tesc_attr( $field ),\r\n\t\t\t\t\tesc_attr( $field ),\r\n\t\t\t\t\tesc_attr( $value ),\r\n\t\t\t\t\tesc_html( $help_text )\r\n\t\t\t\t);\r\n\t\t}", "public function dbs_authorization_html()\r\n\t{\r\n\t\t?>\r\n\t\t<input type=\"text\" name=\"dbs_authorization\" value=\"<?php echo get_option('dbs_authorization')?>\" style=\"\r\n width: 600px !important;\"/>\r\n\r\n\t <?php\r\n\t}", "function tep_cfg_textarea($text, $key = '') {\n $name = tep_not_null($key) ? 'configuration[' . $key . ']' : 'configuration_value';\n\n return HTML::textareaField($name, 35, 5, $text);\n }", "function password( \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_PASSWORD,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_STRING\n );\n\t}", "function addText($name,$display=null,$value=null, $disabled=null, $maxlength=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\t\"type\" => \"text\", //defines the type of the input\r\n\t\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\t\"maxlength\" => $maxlength,\r\n\t\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\t\"id\" => $id\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = ucfirst($name) . \":\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public function render_license_key_settings_field() {\n\t\t$settings_field_name = $this->get_settings_field_name();\n\t\t$options = get_option( $settings_field_name );\n\t\t?>\n\t\t<input type='text' name='<?php echo $settings_field_name; ?>[license_key]' value='<?php echo $options['license_key']; ?>' class='regular-text' />\n\t<?php\n\t}", "function input_text($errors, $name, $label, $pattern, $title, $required) {\n //create div belonging to the class 'required_field'\n echo '<div class=\"required_field\">';\n //create the label for the input\n label($name, $label);\n //get the value from previous post\n $value = posted_value($name);\n //create the text input with attributes matching the outlined variables (value from previous post is filled in)\n echo \"<input type=\\\"text\\\" name=\\\"$name\\\" pattern=\\\"$pattern\\\"\".\n \" title=\\\"$title\\\" value=\\\"$value\\\" onkeypress=\\\"hide_error_message('$name')\\\" $required>\";\n //create error message span\n error_label($errors, $name);\n //close the div\n echo '</div>';\n}", "function form_text($field, $options) {\n $defaults = array(\n 'wrap' => true,\n 'label' => true,\n 'class' => array('input', 'text')\n );\n\n $options = array_merge($defaults, $options);\n\n $field = strtolower($field);\n\n $output = '<input type=\"text\" name=\"' . $field . '\" id=\"' . form__field_id($field) . '\"';\n\n if(!empty($_POST[$field])) {\n $output .= ' value=\"'. $_POST[$field] . '\"';\n }\n\n $output .= ' />';\n\n if($options['wrap']) {\n $options['field'] = $field;\n $output = form__wrap($output, $options);\n }\n\n $error = form_error_message($field);\n if(!empty($error)) {\n $output .= $error;\n }\n\n return html__output($output);\n}", "public function render()\n {\n return view('sendportal::components.text-field');\n }", "function form_text_one_col ($size, $display, $key='', $maxsize=0, $required=FALSE)\n{\n // If not specified, fill in default values\n\n if ('' == $key)\n $key = $display;\n\n if (0 == $maxsize)\n $maxsize = $size;\n\n if (\"\" != $display)\n $display .= \":\";\n\n // If this is a required field, make sure it has a leading '*'\n\n if ($required)\n $display = '<FONT COLOR=RED>*</FONT>&nbsp;' . $display;\n\n // If magic quotes are on, strip off the slashes\n\n if (! array_key_exists ($key, $_POST))\n $text = '';\n else\n {\n if (1 == get_magic_quotes_gpc())\n $text = stripslashes ($_POST[$key]);\n else\n $text = $_POST[$key];\n }\n\n // Spit out the HTML\n\n echo \" <TR>\\n\";\n echo \" <TD COLSPAN=2>\\n\";\n echo \" &nbsp;<BR>$display<BR>\\n\";\n printf (\" <INPUT TYPE=TEXT NAME=%s SIZE=%d MAXLENGTH=%d VALUE=\\\"%s\\\">\\n\",\n\t $key,\n\t $size,\n\t $maxsize,\n\t $text);\n echo \" </TD>\\n\";\n echo \" </tr>\\n\";\n}", "function textBoxMaker($txtBoxName){\n\t\t$textBoxString = '';\n\t\t$textBoxString = $textBoxString . '<input type=\"text\" id=\"'.$txtBoxName->name.'\" name=\"'.$txtBoxName->name.'\" size=\"'.$txtBoxName->size.'\" value=\"'.$txtBoxName->value.'\" class=\"'.$txtBoxName->class.'\">';\n\t\t\n\t\treturn $textBoxString;\n\t}", "function ic_add_register_field() {\n\t?>\n\t<p>\n\t\t<label for=\"invite_code\"><?php echo esc_html( 'Invite Code' ); ?></label>\n\t\t<input type=\"text\" name=\"invite_code\" id=\"invite_code\" class=\"input\" size=\"25\" />\n\t</p>\n\t<?php\n}", "function pqurc_display_extra()\n {\n $extra_fi = get_option('pqurcode_extra');\n printf(\"<input type='text' id='%s' name='%s' value='%s' />\", 'pqurcode_extra', 'pqurcode_extra', $extra_fi);\n }", "public function testUpdatePasswordOnlyLowerCase(): void { }", "public function renderInput(){\n $row = '';\n $row .= \"<input type=\\\"$this->type\\\" id=\\\"$this->id\\\" name=\\\"$this->name\\\" $this->required \";\n\n return $row;\n }", "static public function input($name, $value = \"\", $attrib = \"\")\n {\n return \"<input type='text' name='$name' id='$name' value='$value' $attrib />\\n\";\n }", "private function encryptedField()\n {\n return 'Password is encrypted. <a href=\"\" class=\"btn btn-xs btn-primary\">Change</a>';\n }", "public function pre_out()\n\t{\n\t\t$out = '';\n\t\tif ( !FormControlTextMulti::$outpre ) {\n\t\t\tFormControlTextMulti::$outpre = true;\n\t\t\tif(is_array($this->value)) {\n\t\t\t\t$fieldcount = count($this->value);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$fieldcount = 0;\n\t\t\t}\n\t\t\t// translatable strings\n\t\t\t// very bad practice but the below code is just horrible to read already and heredoc does not support method calls\n\t\t\t$removeitem = _t( 'Remove item' );\n\t\t\t$remove = _t( '[remove]' );\n\t\t\t$removethisitem = _t( 'Remove this item?' );\n\t\t\t$out .= <<< JSCODE\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\tcontrols.textmulti = {\n\t\t\t\t\tadd: function(e, controlname){\n\t\t\t\t\t\t$(e).before('<div><input type=\"text\" name=\"' + controlname + '[]\"> <a href=\"#\" onclick=\"return controls.textmulti.remove(this);\" title=\"{$removeitem}\" class=\"textmulti_remove\">{$remove}</a></div>');\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t\tremove: function(e) {\n\t\t\t\t\t\tvar item = $(e).prev();\n\t\t\t\t\t\tif (confirm(\"{$removethisitem} \" + item.val())) {\n\t\t\t\t\t\t\titem.parent().remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\t</script>\nJSCODE;\n\t\t}\n\t\treturn $this->controls_js($out);\n\t}", "function initialize () {\n $this->set_openingtag ( \"<LABEL>\" );\n\t$this->set_closingtag ( \"</LABEL><INPUT TYPE=\\\"password\\\"[attributes]>\" );\n\t$this->set_type (\"password\");\n }", "protected function createInputText($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/input/text.php'\n );\n \n $config['name'] = $this->getDefaultName($config);\n \n if (!isset($config['value'])) {\n $config['value'] = '';\n if (\n isset($config['property']) \n && isset($this->record[$config['property']])\n ) {\n $config['value'] = $this->record[$config['property']];\n }\n }\n return new \\Arch\\Registry\\View($tmpl, $config);\n }", "public function setPlaceholderText($text);" ]
[ "0.58270127", "0.57235605", "0.56712186", "0.5646344", "0.5646307", "0.55887866", "0.5576606", "0.55710655", "0.5553509", "0.5549198", "0.5539813", "0.5506856", "0.550645", "0.5460097", "0.5429501", "0.5424558", "0.5397142", "0.5395577", "0.53597313", "0.5347745", "0.5319015", "0.53124374", "0.5311892", "0.53081375", "0.53032976", "0.52672464", "0.525444", "0.525279", "0.5249155", "0.523587", "0.5224665", "0.5210754", "0.5210196", "0.5204811", "0.51889884", "0.5162907", "0.51624554", "0.51488197", "0.514484", "0.51383233", "0.5123946", "0.5122999", "0.51194596", "0.5110709", "0.51055783", "0.5104387", "0.5088587", "0.5078587", "0.50777006", "0.50704485", "0.5066748", "0.5060303", "0.50601053", "0.5054723", "0.5047717", "0.5045719", "0.5044544", "0.50439173", "0.5040048", "0.50302404", "0.502233", "0.5011879", "0.5002128", "0.4998754", "0.49954832", "0.49905992", "0.4983164", "0.4976506", "0.49742544", "0.49739757", "0.4968644", "0.49629447", "0.4961479", "0.49590114", "0.49567652", "0.49499285", "0.49499285", "0.49499285", "0.49496463", "0.49476767", "0.49454027", "0.49451283", "0.4918777", "0.49186283", "0.49173057", "0.49164736", "0.4915206", "0.49146456", "0.49047655", "0.49034056", "0.49031103", "0.49025252", "0.4900577", "0.48920277", "0.48857847", "0.48847798", "0.48803532", "0.4876693", "0.48744333", "0.48733366" ]
0.54459465
14
Adds multiline text input control to the form.
public function addTextArea($name, $label, $cols = 40, $rows = 10) { return $this[$name] = new TextArea($label, $cols, $rows); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function add_new_line() {\n\n\t\t$this->fields[] = array( 'newline' => true );\n\n\t}", "public function setMultiline($multiline = true) {}", "public function addInput($LableText = null, $NewLine = false , $InputPrams = array(), $InputValue = array()) \n{\n $this->showElment($this->processInput($LableText, $NewLine, $InputPrams, $InputValue ));\n}", "public function multilingualTextarea($options = [])\n {\n $options = array_merge($this->inputOptions, $options);\n $this->adjustLabelFor($options);\n $content = '';\n foreach (Yii::$app->lang->getLanguages() as $langKey => $langTitle) {\n $htmlOptions = $options;\n $htmlOptions['data-ml-language'] = $langTitle;\n if ($langKey != Yii::$app->lang->get()){\n $htmlOptions['class'] .= ' hidden';\n $attributeName = $this->attribute . '_' . $langKey;\n } else {\n $attributeName = $this->attribute;\n }\n\n $content .= Html::activeTextarea($this->model, $attributeName , $htmlOptions);\n }\n $groupName = str_replace('\\\\','',get_class($this->model) . '_' . $this->attribute . '_' . 'multilang');\n $content = Html::tag('div',$content, [\n 'data-ml-group' => $groupName,\n 'class'=>'ml-group-wrapper',\n ]);\n\n $this->parts['{input}'] = $content;\n\n Yii::$app->view->registerJs('$.fn.m22Multilang.register(\\'[data-ml-group=\"' . $groupName . '\"]\\')', View::POS_READY);\n\n return $this;\n }", "public function setMultiline($value)\n {\n $this->multiline = $value;\n }", "public function getTextMode()\n\t{\n\t\treturn 'MultiLine';\n\t}", "function output_textarea_row( string $label, string $key, $val, int $rows = 2 ): void {\n\twp_enqueue_style( 'wpinc-meta-field' );\n\t$val = $val ?? '';\n\t?>\n\t<div class=\"wpinc-meta-field-single textarea\">\n\t\t<label>\n\t\t\t<span><?php echo esc_html( $label ); ?></span>\n\t\t\t<textarea <?php name_id( $key ); ?> cols=\"64\" rows=\"<?php echo esc_attr( $rows ); ?>\"><?php echo esc_attr( $val ); ?></textarea>\n\t\t</label>\n\t</div>\n\t<?php\n}", "function addTextarea($name,$display=null,$value=null, $disabled=null, $rows=3, $cols=25, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\"type\" => \"textarea\", //defines the type of the input\r\n\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\"rows\" => $rows,\r\n\t\t\t\t\"cols\" => $cols,\r\n\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\"id\" => $id\r\n\t\t\t);\t\t\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = ucfirst($name) . \":\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "static public function createTextArea($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/textarea.php\";\n }", "public function addTextArea($sLabel, $sName, $rows=5, $cols=50, \n $sOptions=\"\")\n {\n $formControl= \"<div class='form-group'>\"\n . \"<label class='col-sm-offset-1 control-label col-sm-2'>\"\n . \"$sLabel</label>\"\n . \"<textarea cols='$cols' rows='$rows'\"\n . \"id='$sName' name='$sName' $sOptions></textarea>\"\n . \"</div>\";\n \n $this->formBody .= $formControl;\n }", "public function i_set_the_multiline_field_to($field, $value) {\n $string = str_replace('\\n', \"\\n\", $value);\n $this->execute('behat_forms::set_field_value', [$field, (string)$string]);\n }", "public function addTextarea($name, $label, array $options=array()) {\n $options['type'] = 'textarea';\n return $this->addInput($name, $label, $options);\n }", "public function it_shows_textarea_input()\n {\n // configure\n $inputs = [\n [\n 'type' => 'textarea',\n 'name' => 'message'\n ]\n ];\n\n $this->configureInputs($inputs);\n\n // assert\n $this->get('/settings')\n ->assertStatus(200)\n ->assertSee('textarea')\n ->assertSee('message');\n }", "public function textArea ( \\r8\\Form\\TextArea $field )\n {\n $this->addField( \"textarea\", $field );\n }", "function acf_textarea_input($attrs = array())\n{\n}", "public function textarea($options = []){\n\t\t// Set default attributes.\n\t\tHtml::setAttribute($options, [\n\t\t\t'id' => $this->name,\n\t\t\t'class' => $this->getDefaultClass('input')\n\t\t]);\n\t\t// On error, add error class if error classes are enabled.\n\t\tif($this->hasError && $this->errorClasses){\n\t\t\tHtml::addToAttribute($options, 'class', $this->getDefaultClass('error'));\n\t\t}\n\t\t// Create and store the element.\n\t\t$this->elements['control'] = Html::textarea(\n\t\t\thtml_entity_decode($this->model->{$this->name}),\n\t\t\t$this->name,\n\t\t\t$options\n\t\t);\n\t\t// Return object to method chain.\n\t\treturn $this;\n\t}", "function wc_custom_add_custom_fields() {\n woocommerce_wp_textarea_input( \n\tarray( \n\t\t'id' => '_custom_text_field', \n\t\t'label' => __( 'Ingredient and Nutrition values', 'woocommerce' ), \n\t\t'placeholder' => 'If you add text here, a new tab will appear.'\n\t\n ) );\n}", "public function multilingualTextInput($options = [])\n {\n $options = array_merge($this->inputOptions, $options);\n $this->adjustLabelFor($options);\n $content = '';\n foreach (Yii::$app->lang->getLanguages() as $langKey => $langTitle) {\n $htmlOptions = $options;\n $htmlOptions['data-ml-language'] = $langTitle;\n if ($langKey != Yii::$app->lang->get()){\n $htmlOptions['class'] .= ' hidden';\n $attributeName = $this->attribute . '_' . $langKey;\n } else {\n $attributeName = $this->attribute;\n }\n\n $content .= Html::activeTextInput($this->model, $attributeName , $htmlOptions);\n }\n $groupName = str_replace('\\\\','',get_class($this->model) . '_' . $this->attribute . '_' . 'multilang');\n $content = Html::tag('div',$content, [\n 'data-ml-group' => $groupName,\n 'class'=>'ml-group-wrapper',\n ]);\n\n $this->parts['{input}'] = $content;\n\n Yii::$app->view->registerJs('$.fn.m22Multilang.register(\\'[data-ml-group=\"' . $groupName . '\"]\\')', View::POS_READY);\n\n return $this;\n }", "public function textAreaBlock($model, $attribute, $htmlOptions = array())\r\n\t{\r\n\t\treturn $this->inputBlock('textarea', $model, $attribute, null, $htmlOptions);\r\n\t}", "protected function new_line()\n {\n }", "function output_textarea_row( string $label, string $key, $val, int $rows = 2 ): void {\n\t\t\\wpinc\\meta\\output_textarea_row( $label, $key, $val, $rows );\n\t}", "public function isMultiline() {}", "public function textFieldBlock($model, $attribute, $htmlOptions = array())\r\n\t{\r\n\t\treturn $this->inputBlock('textfield', $model, $attribute, null, $htmlOptions);\r\n\t}", "function textarea( \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_TEXTAREA,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_STRING\n );\n\t}", "function acf_get_textarea_input($attrs = array())\n{\n}", "public function textarea($attribute, $label, $options = [])\n {\n $options = static::defaults($options);\n return $this->addSingleField(\n $attribute,\n $options[self::OPTIONS_VALIDATION],\n Widget::getTextareaWidget($attribute, $label, $options)\n );\n }", "function minorite_textarea($variables) {\n $element = $variables['element'];\n element_set_attributes($element, array('id', 'name', 'cols', 'rows'));\n _form_set_class($element, array('form-textarea'));\n\n $wrapper_attributes = array(\n 'class' => array('form-textarea-wrapper'),\n );\n\n // Add resizable behavior.\n if (!empty($element['#resizable'])) {\n drupal_add_library('system', 'drupal.textarea');\n $wrapper_attributes['class'][] = 'resizable';\n }\n\n // Add required attribute.\n if (!empty($element['#required'])) {\n $element['#attributes']['required'] = '';\n }\n\n $output = '<div' . drupal_attributes($wrapper_attributes) . '>';\n $output .= '<textarea' . drupal_attributes($element['#attributes']) . '>' . check_plain($element['#value']) . '</textarea>';\n $output .= '</div>';\n return $output;\n}", "public function add_text($content)\n\t{\n\t\tarray_push($this->form_elements, array($content, 0, 'text'));\n\t}", "public static function renderTextarea();", "public function addRichText($name, $label) {\n\t\t$this->form->addTextArea($name, $label);\n\t\t$this->richTexts[] = $name;\n\t}", "public function textarea()\n {\n return $this->content(false, false, false, true);\n }", "function AttribTextline( $id, $value, $name )\n\t{\n\t\t$success = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\treturn $success;\n\t}", "public function renderTextArea( $label, $key, $attributes = array() )\n {\n echo \"<div class=\\\"form-field\\\">\\n\";\n $id = 'field-' . $this->formId . '-' . $key;\n $this->renderLabel( $label, $key, $id );\n $this->renderTag( 'textarea', array_merge( array( 'name' => $key, 'id' => $id ), $attributes ), $this->getValue( $key ) );\n $this->renderError( $key );\n echo \"</div>\\n\";\n\n if ( isset( $this->viewState[ $key ] ) )\n $this->viewState[ $key ] = null;\n }", "function textarea($fieldName, $options = array(), $tinyoptions = array()) {\n\t\treturn $this->Form->textarea($fieldName, $options) . $this->_build($fieldName, $tinyoptions);\n\t}", "public static function form_textarea($message_id, $fieldname, $value, $rows = 5, $required = false, $readonly = false, $use_wysiwyg = true): void\n {\n echo '<dl class=\"rex-form-group form-group\" id=\"'. $fieldname .'\">';\n echo '<dt><label>' . rex_i18n::msg($message_id) . '</label></dt>';\n $wysiwyg_class = ' ';\n if ($use_wysiwyg) {\n $wysiwyg_class .= self::getWYSIWYGEditorClass();\n }\n if ($readonly) {\n echo '<dd><div class=\"form-control\" style=\"height: 100px;overflow-y: scroll\">'. $value .'</div>'\n . '<input type=\"hidden\" name=\"' . $fieldname . '\" value=\"'. str_replace('\"', \"'\", $value) .'\"></dd>';\n } else {\n echo '<dd><textarea cols=\"1\" rows=\"' . $rows . '\" class=\"form-control' . $wysiwyg_class . '\" name=\"' . $fieldname . '\" data-lang=\"de\"';\n // Required can only be activated if WYSIWYG Editor is not activated\n if ($required && !$use_wysiwyg) {\n echo ' required';\n }\n echo '>' . $value . '</textarea></dd>';\n }\n echo '</dl>';\n }", "function input($fieldName, $options = array(), $tinyoptions = array()) {\n\t\t$options['type'] = 'textarea';\n\t\treturn $this->Form->input($fieldName, $options) . $this->_build($fieldName, $tinyoptions);\n\t}", "public function getMultiline()\n {\n return $this->multiline;\n }", "function hudson_textarea($variables) {\n $element = $variables['element'];\n element_set_attributes($element, array('id', 'name', 'cols', 'rows'));\n _form_set_class($element, array('form-textarea'));\n\n $wrapper_attributes = array(\n 'class' => array('form-textarea-wrapper'),\n );\n\n $output = '<div' . drupal_attributes($wrapper_attributes) . '>';\n $output .= '<textarea' . drupal_attributes($element['#attributes']) . '>' . check_plain($element['#value']) . '</textarea>';\n $output .= '</div>';\n return $output;\n}", "function renderFormTextarea($model){\n ob_start();\n $form = ActiveForm::begin([\n 'action' => ['update','id'=>$model->id]\n ]);\n $out = ob_get_contents();\n ob_end_clean();\n\n $out .= $form->field($model, 'value', ['inputOptions' => [\n 'id' => $model->id.'-parameter-value',\n 'class' => 'form-control'\n ]])\n ->textarea(['rows'=>2])->label(false);\n $out .= Html::submitButton();\n\n ob_start();\n $form->end();\n $out .= ob_get_contents();\n ob_end_clean();\n\n return $out;\n}", "function addText($name,$display=null,$value=null, $disabled=null, $maxlength=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\t\"type\" => \"text\", //defines the type of the input\r\n\t\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\t\"maxlength\" => $maxlength,\r\n\t\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\t\"id\" => $id\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = ucfirst($name) . \":\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function textAreaNewlinesToSimpleNewline($string)\n {\n $string = str_replace([\"\\n\", \"\\r\\n\", \"\\r\"],\"\\n\",$string);\n return $string;\n }", "public function isMultiLine(): bool;", "public function textarea($name, $options = [])\n {\n $field = new TextAreaField($name);\n $this->fields[$name] = $this->setFields($field, $options);\n }", "function ctools_export_form($form, &$form_state, $code, $title = '') {\r\n $lines = substr_count($code, \"\\n\");\r\n $form['code'] = array(\r\n '#type' => 'textarea',\r\n '#title' => $title,\r\n '#default_value' => $code,\r\n '#rows' => $lines,\r\n );\r\n\r\n return $form;\r\n}", "public function txtMoneda_Create($strControlId = null) {\n $this->txtMoneda = new QTextBox($this->objParentObject, $strControlId);\n $this->txtMoneda->Name = QApplication::Translate('Moneda');\n $this->txtMoneda->Text = $this->objFichas->Moneda;\n $this->txtMoneda->Required = false;\n $this->txtMoneda->TextMode = QTextMode::MultiLine;\n return $this->txtMoneda;\n }", "private function addEmailText(){\n\t\t$element = 'body';\n\t\t$opts = array('label'=>'emailMessage','required'=>true,'validators' => array( array('stringLength', false, array(1, 1000) )\t));\n\t\t$this->addElement('textarea',$element,$opts);\n\t\t$this->getElement($element)->setAttribs(array('rows'=>20,'cols'=>30));\n\t\t//$prefix = array();\n\t\t//$decorator = array('DivForm');\n\t\t//$this->addCustomDecorator($prefix,$decorator,$element);\n\t\t$this->applyDecorator($element,false);\n\t\t$this->addToGroup($element);\n\t}", "public function addRowText($text)\n {\n return $this->withMeta(['addRowText' => $text]);\n }", "public function addRowText($text)\n {\n return $this->withMeta(['addRowText' => $text]);\n }", "protected function createTextArea($config)\n {\n $view = $this->createInputText($config);\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/textarea.php'\n );\n $view->setTemplate($tmpl);\n return $view;\n }", "function addTextarea ($name, $value, $rows = NULL, $cols = NULL, $attributes = array ())\n\t{\n\t\t$rows = (empty($rows) ? '' : ' rows=\"' . $rows . '\"');\n\t\t$cols = (empty($cols) ? '' : ' cols=\"' . $cols . '\"');\n\n\t\t$html = \"<textarea name=\\\"$name\\\"\" . $rows . $cols . \"\";\n\t\tif ($attributes) {\n\t\t\t$html .= $this -> addAttributes($attributes);\n\t\t}\n\t\t$html .= \">$value</textarea>\";\n\n\t\treturn $html;\n\t}", "public function txtContent_Create($strControlId = null) {\n\t\t\t$this->txtContent = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtContent->Name = QApplication::Translate('Content');\n\t\t\t$this->txtContent->Text = $this->objClassifiedPost->Content;\n\t\t\t$this->txtContent->TextMode = QTextMode::MultiLine;\n\t\t\treturn $this->txtContent;\n\t\t}", "public function textarea($fieldName, $options = array())\n {\n $options = $this->addClass($options, 'materialize-textarea');\n\n // Validate\n $validate = $this->_extractOption('validate', $options, true);\n unset($options['validate']);\n\n if($validate) {\n $options = $this->addClass($options, 'validate');\n if($this->isFieldError($fieldName)) {\n $options = $this->addClass($options, 'invalid');\n }\n }\n\n return parent::textarea($fieldName, $options);\n }", "public function textarea($name, $body = '', array $attributes = NULL, $double_encode = TRUE) {\n $this->load_values($name, $body, $attributes);\n $result = '<li>'.Kohana_Form::textarea($name, $body, $attributes, $double_encode);\n // add error span\n if (isset($this->errors[$name])) {\n $result .= '<span class=\"error\">'.ucfirst($this->errors[$name]).'</span>';\n } else if (isset($attributes['info'])) {\n // else add info span\n $result .= '<span class=\"info\">'.$attributes['info'].'</span>';\n }\n $result .= '</li>';\n return $result;\n\t}", "public function action_block_form_text( $form, $block )\n\t{\n\t\t$form->append( FormControlLabel::wrap( _t( 'Content:',\n\t\t\tFormControlTextArea::create( 'content', $block, array( 'rows' => 5 ) ) )\n\t\t));\n\t}", "public function pre_out()\n\t{\n\t\t$out = '';\n\t\tif ( !FormControlTextMulti::$outpre ) {\n\t\t\tFormControlTextMulti::$outpre = true;\n\t\t\tif(is_array($this->value)) {\n\t\t\t\t$fieldcount = count($this->value);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$fieldcount = 0;\n\t\t\t}\n\t\t\t// translatable strings\n\t\t\t// very bad practice but the below code is just horrible to read already and heredoc does not support method calls\n\t\t\t$removeitem = _t( 'Remove item' );\n\t\t\t$remove = _t( '[remove]' );\n\t\t\t$removethisitem = _t( 'Remove this item?' );\n\t\t\t$out .= <<< JSCODE\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\tcontrols.textmulti = {\n\t\t\t\t\tadd: function(e, controlname){\n\t\t\t\t\t\t$(e).before('<div><input type=\"text\" name=\"' + controlname + '[]\"> <a href=\"#\" onclick=\"return controls.textmulti.remove(this);\" title=\"{$removeitem}\" class=\"textmulti_remove\">{$remove}</a></div>');\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t\tremove: function(e) {\n\t\t\t\t\t\tvar item = $(e).prev();\n\t\t\t\t\t\tif (confirm(\"{$removethisitem} \" + item.val())) {\n\t\t\t\t\t\t\titem.parent().remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\t</script>\nJSCODE;\n\t\t}\n\t\treturn $this->controls_js($out);\n\t}", "private function textareaCustomField(): string\n {\n return Template::build($this->getTemplatePath('textarea.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'value' => $this->getValue($this->index),\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "function gtags_add_tags_form() {\n\tglobal $show_group_add_form;\n\tif ($show_group_add_form) return;\n\t$show_group_add_form = true;\n\t?>\n\t<p class=\"editfield\">\n\t\t<label for=\"group-tags\">Mots-clés</label>\n\t\t<input type=\"text\" name=\"group-tags\" id=\"group-tags\" value=\"<?php gtags_group_tags() ?>\" />\n\t\tSéparez les mots-clés par des virgules\n\t\t<?php gtags_show_tags_chooser(); ?>\n\t\t\n\t</p>\n\t<?php\n}", "public function add_textarea_field_to_group($group_name,$field_name,$rows,$columns) {\n foreach(array_keys($this->page_fields) as $i) {\n if ($this->page_fields[$i]['sub_heading']==$group_name) {\n $this->page_fields[$i]['fields'][]=array('field_name'=>$field_name,'field_type'=>'textarea','rows'=>$rows,'columns'=>$columns);\n return true;\n }\n }\n error_log(\"BasicForm: add_textarea_field_to_group: Attempt was made to add a textarea field ($field_name) to a group which couldnt be found ($group_name)\");\n return false;\n }", "public function setAsStaticForm() {\n\t\treturn $this->form_tag(implode('<br />', $this->_elements));\n\t}", "function form_input_textarea( $name, $currentValue, $render=false, $internalExtra='', $valueNullDisplay='')\n\t{\n\t\t$this->name = $name;\n\t\t$this->currentValue = $currentValue;\n\t\t$this->inputType = 'textarea';\n\t\t$this->internalExtra = $internalExtra;\n\t\t$this->displayArray = $displayArray;\n\t\t$this->valueArray = $valueArray;\n\t\t$this->valueNullDisplay = $valueNullDisplay;\n\t\tif($render) {\n\t\t\treturn $this->render_element();\n\t\t}\n\t}", "public function addText($name, $label = '', $cols = NULL, $maxLength = NULL)\n\t{\n\t\treturn $this[$name] = new TextInput($label, $cols, $maxLength);\n\t}", "public static function textarea($form, $model, $field) {\n $options = [];\n $template =\"{label}\\n{input}\\n{hint}\\n{error}\";\n\n if (!isset($field['name'])) return; \n\n foreach (['placeholder', 'value', 'id', 'class'] as $key => $value) {\n if (isset($field[$value])) {\n $options[$value] = $field[$value];\n }\n }\n\n $text_area = $form->field($model, $field['name'])->textArea($options);\n $text_area->label($field['label'] ?? false);\n\n return $text_area;\n }", "private function makeLineBreaksHTML(): void {\n\t\t$this->setMsg(str_replace([PHP_EOL, '\\r\\n'], '<br />', $this->getMsg()));\n\n\t\tif($this->getMaxLineLength()) {\n\t\t\t$this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), '<br />' . PHP_EOL));\n\t\t}\n\t}", "private function add_line($text = \"\", $should_wordwrap = true)\n {\n $text = $should_wordwrap ? wordwrap($text, $this->printer_width) : $text;\n $this->printer->text($text . \"\\n\");\n }", "public function form_field_textarea ( $args ) {\n\t\t$options = $this->get_settings();\n\n\t\techo '<textarea id=\"' . esc_attr( $args['key'] ) . '\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" cols=\"42\" rows=\"5\">' . esc_html( $options[$args['key']] ) . '</textarea>' . \"\\n\";\n\t\tif ( isset( $args['data']['description'] ) ) {\n\t\t\techo '<p><span class=\"description\">' . $args['data']['description'] . '</span></p>' . \"\\n\";\n\t\t}\n\t}", "private function add_line($text = \"\", $should_wordwrap = true)\n {\n $text = $should_wordwrap ? wordwrap($text, $this->printer_width) : $text;\n $this->printer->text($text.\"\\n\");\n }", "public function callback_textarea( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';\n\n $html = sprintf( '<textarea rows=\"5\" cols=\"55\" class=\"%1$s-text\" id=\"%2$s\" name=\"%2$s\" %4$s>%3$s</textarea>', $size, $name_id, $value, $disable );\n $html .= $this->get_field_description( $args );\n\n echo $html;\n }", "function make_form_row(){\n\t\t$index = $this->col_index;\n\t\t# remove the * at the start of the first line\n\t\t$this->col_data = preg_replace(\"/^\\*/\",\"\",$this->col_data);\n\t\t# split the lines and remove the * from each. The value in each line goes into the array $values\n\t\t$values = preg_split(\"/\\n\\*?/\", $this->col_data);\n\t\t# pad the values array to make sure there are 3 entries\n\t\t$values = array_pad($values, 3, \"\");\n\t\t\n\t\t/*\n\t\tmake three input boxes. TableEdit takes row input from an input array named field a \n\t\tvalue for a particular field[$index] can be an array\n\t\t\tfield[$index][] is the field name\n\t\t\t40 is the length of the box\n\t\t\t$value is the value for the ith line\n\t\t \n\t\t */\n\t\t $form = ''; #initialize\n\t\t foreach($values as $i => $value){\n\t\t\t$form .= \"$i:\".XML::input(\"field[$index][]\",40,$value, array('maxlength'=>255)).\"<br>\\n\";\n\t\t}\n\t\treturn $form;\n\t\n\t}", "public function newLine() {\n\t\t$this->_section=0;\n\t\t$this->_lineNumber++;\n\t\t$this->_text[$this->_lineNumber]=array();\n\t\t$this->_text[$this->_lineNumber][0]['text']='';\n\t\t$this->_text[$this->_lineNumber][0]['encoding']='';\n\t\t$this->_text[$this->_lineNumber][0]['font']=$this->_font;\n\t\t$this->_text[$this->_lineNumber][0]['fontSize']=$this->_fontSize;\n\t\t$this->_text[$this->_lineNumber][0]['width']=0;\n\n\t\t\n\t\t$this->_initializeLine();\n\t\t\n\t\t$this->_text[$this->_lineNumber]['alignment']=$this->_text[$this->_lineNumber-1]['alignment'];\n\t\t//add the last cell's height to the auto height if we have an auto-height box.\n\t\tif ($this->isAutoHeight()) {\n\t\t\t$this->_autoHeight+=$this->_text[$this->_lineNumber-1]['height'];\n\t\t}\n\t}", "public function renderInput(): string\n {\n return FormFacade::textarea(\n $this->getKey(),\n $this->getInputValue(),\n $this->getInputAttributes(),\n )->toHtml();\n }", "function form_textarea($name, $cols='30', $rows='5', $value='', $to_array='', $override = NULL, $extra='', $disabled='') {\n\n\t$value = html_form_escape($value, $override);\n\n\tif ($disabled) {\n\t\t$extra .= ' disabled=\"disabled\"';\n\t}\n\tif (is_numeric($cols)) {\n\t\t$cols = \"cols=\\\"$cols\\\"\";\n\t} elseif ($cols == '' OR $cols == 0) {\n\t\t$cols = \"cols=\\\"60\\\"\";\n\t} else {\n\t\t$cols = \"style=\\\"width:$cols\\\"\";\n\t}\n\tif ($rows == '' OR $rows == 0) {\n\t\t$rows = 5;\n\t}\n\tif ($to_array != \"\") {\n\t\t$name = $to_array . \"[\" . $name . \"]\";\n\t}\n\t$temp = \"<textarea onfocus=\\\"this.select()\\\" name=\\\"$name\\\" id=\\\"$name\\\" $cols rows=\\\"$rows\\\" $extra>$value</textarea>\\n\";\n\treturn $temp;\n}", "function uc_order_pane_line_items_add($form, &$form_state) {\n $order = &$form_state['order'];\n $type = $form_state['values']['li_type_select'];\n\n uc_order_line_item_add($order->order_id, $type, _uc_line_item_data($type, 'title'), 0);\n $order->line_items = uc_order_load_line_items($order);\n\n $form_state['rebuild'] = TRUE;\n}", "function displayLine($a_dbc, $a_lineCount)\n\t{\n\t\tif($this->lineID)\n\t\t\techo \"<textarea>{$this->text}</textarea>\\n\";\n\t\telse\n\t\t \techo \"<textarea class='newLine'>{$this->text}</textarea>\\n\";\n\n\t\treturn null;\n\t}", "protected function lineBreaks() {\n\t\t$this->text = $this->removeUnneccesaryLinebreaks($this->text);\n\t\t$this->text = nl2br($this->text);\n\t\tReturn $this;\n\t}", "function tep_cfg_textarea($text, $key = '') {\n $name = tep_not_null($key) ? 'configuration[' . $key . ']' : 'configuration_value';\n\n return HTML::textareaField($name, 35, 5, $text);\n }", "public function ov_textarea($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('textarea', $name, $value, false, $args);\n }", "public function textarea($name, $value = null, $options = array())\n\t{\n\t\tif ( ! isset($options['name'])) $options['name'] = $name;\n\n\t\tif ( ! isset($options['label'])) $options['label'] = null;\n\n\t\tif ( ! isset($options['class'])) $options['class'] = 'form-control';\n\n\t\tif ( ! isset($options['id'])) $options['id'] = $name;\n\n\t\t$input = parent::textarea($name, $value, $options);\n\n\t\treturn $this->wrapFields($name, $input, $options);\n\t}", "private function setNewLine() {\n $extension = pathinfo($this->path, PATHINFO_EXTENSION);\n if ($extension === Lexer::LINUX_FILE_EXTENSION) {\n $this->newLine = \"\\n\";\n } else {\n $this->newLine = \"\\r\\n\";\n }\n }", "function setAppend($text) {\n\n $this->field['append'] = $text;\n return $this;\n\n }", "public function break(): FormHelper\n {\n $this->html .= \"<br>\";\n return $this;\n }", "function setNoteText(){\n $html = \"\";\n \n $this->aFields[\"note\"]->editable = true;\n $this->aFields[\"note\"]->value = $html;\n }", "public function textarea($fieldName, $options = array())\n {\n $default = array('class' => 'form-control');\n if (isset($options['class']) && $options['class'] == \"\") {\n $default['class'] = \"\";\n }\n $options = array_merge_recursive($default, $options);\n\n return FormHelper::textarea($fieldName, $options);\n }", "function tep_cfg_textarea($text) {\n return tep_draw_textarea_field('configuration_value', false, 35, 5, $text);\n}", "function form($config)\r\n\t{\r\n\t\t$html_text = $config['html_text'];\r\n\t?>\r\n\t\t<label for=\"<?php echo $this->get_field_id(\"html_text\"); ?>\">\r\n\t\t<p>HTML Text: \r\n\t\t\t<textarea rows=\"5\" cols=\"50\" name=\"<?php echo $this->get_field_name(\"html_text\"); ?>\" id=\"<?php echo $this->get_field_id(\"html_text\") ?>\">\r\n\t\t\t\t<?php echo $html_text; ?>\r\n\t\t\t</textarea>\r\n\t\t</p>\r\n\t\t</label>\r\n\t<?php \r\n\t}", "function create_custom_field() {\n $args = array(\n 'id' => 'custom_field_brand',\n 'label' => __( 'Detalhes da Marca'),\n 'class' => 'brand-custom-field',\n 'desc_tip' => true,\n 'description' => __( 'Enter the brand details.'),\n );\n woocommerce_wp_textarea_input( $args );\n}", "function echo_textarea($array) {\n if (!isset($array[\"prefill\"])) $array[\"prefill\"] = \"\";\n if (!isset($array[\"height\"])) $array[\"height\"] = \"\";\n echo '<div class=\"form-group\"><label for=\"' . hsc($array[\"id\"]) . '\">' . $array[\"title\"] . '</label>';\n if (isset($array[\"width\"]) and $array[\"width\"] != \"\") echo '<div class=\"input-group\" style=\"width:' . hsc($array[\"width\"]) . 'em;\">';\n else echo '<div class=\"input-group\">';\n if ($array[\"height\"] == \"\") $array[\"height\"] = \"5\";\n echo '<textarea id=\"' . hsc($array[\"id\"]) . '\" name=\"' . hsc($array[\"name\"]) . '\" rows=\"' . hsc($array[\"height\"]) . '\" class=\"form-control\"';\n if (isset($array[\"showcounter\"]) and $array[\"showcounter\"]) echo ' onkeyup=\"show_length(value, &quot;' . hsc($array[\"id\"]) . '-counter&quot;);\"';\n if (isset($array[\"disabled\"]) and $array[\"disabled\"]) echo ' disabled=\"disabled\"';\n if (isset($array[\"jspart\"]) and $array[\"jspart\"] != \"\") echo ' ' . $array[\"jspart\"];\n echo \">\";\n echo hsc($array[\"prefill\"]) . '</textarea>';\n echo '</div>';\n if (isset($array[\"showcounter\"]) and $array[\"showcounter\"]) echo '<div id=\"' . hsc($array[\"id\"]) . '-counter\" class=\"small text-right text-md-left text-muted\">現在 - 文字</div>';\n echo '<div id=\"' . hsc($array[\"id\"]) . '-errortext\" class=\"system-form-error\"></div>';\n if (isset($array[\"detail\"])) echo '<small class=\"form-text\">' . $array[\"detail\"] . '</small>';\n echo '</div>';\n}", "public static function onRichTextEditorFieldCreate($event)\r\n {\r\n\r\n if(static::validateEditorSender($event)) {\r\n $event->result .= widgets\\Editor::widget([\r\n 'richtextId' => $event->sender->id,\r\n 'record' => $event->sender->model\r\n ]);\r\n }\r\n }", "public function textLine($value)\n {\n }", "function text_area($object, $field, $options = array()) {\n $form = new FormHelper($object, $field);\n return $form->to_text_area_tag($options);\n}", "public static function inputText($model,$attribute,$properties=array()) {\n// $attr = self::getNameValueID($model, $attribute);\n// $input_attributes = self::getInputAttributes($attr,$properties);\n// return '<input type=\"text\" ' . $input_attributes . ' />';\n return self::inputTag('text', $model, $attribute,$properties); \n }", "function olc_cfg_textarea($text) {\n\treturn olc_draw_textarea_field('configuration_value', false, 50, 5, $text);\n}", "public function wktGenerateMultilinestring();", "private function display_input_text_field($name, $value, $size = 75) {\n?>\n<input type=\"text\" name=\"<?php echo htmlspecialchars($this->group); ?>[<?php echo htmlspecialchars($name); ?>]\" id=\"http_authentication_<?php echo htmlspecialchars($name); ?>\" value=\"<?php echo htmlspecialchars($value) ?>\" size=\"<?php echo htmlspecialchars($size); ?>\" /><br />\n<?php\n }", "public function nl() {\n $this->contexts[$this->current][self::TEXT] .= \"\\n\";\n return $this;\n }", "public function appendLine($value = \"\")\r\n {\r\n $this->addElement($value.PHP_EOL);\r\n }", "public function it_can_create_a_textarea(): void\n {\n static::assertHtmlStringEqualsHtmlString(\n '<textarea></textarea>',\n $this->html->textarea()\n );\n }", "public function render_text_field( array $attr ) {\n ?>\n <tr>\n <td class=\"first\"><label for=\"<?php echo esc_attr( $attr['id'] ); ?>\"><?php echo esc_attr( $attr['label'] ); ?></label></td>\n <td><input type=\"text\" name=\"meta_input[<?php echo esc_attr( $attr['name'] ); ?>]\" size=\"<?php echo esc_attr( $attr['size'] ); ?>\" value=\"<?php echo esc_attr( $attr['value'] ); ?>\" id=\"<?php echo esc_attr( $attr['name'] ); ?>\"></td>\n </tr>\n <?php\n }", "static function textarea ($in = '', $data = []) {\n\t\treturn static::textarea_common($in, $data, __FUNCTION__);\n\t}", "public function newLine()\n {\n echo \"\\n\";\n }", "function line_break_shortcode() {\n\treturn '<br />';\n}" ]
[ "0.6259633", "0.60663223", "0.58223933", "0.57378006", "0.5722647", "0.5617135", "0.5590648", "0.5588035", "0.55347943", "0.55201703", "0.54850054", "0.5469688", "0.5463095", "0.5431389", "0.5426543", "0.5407463", "0.53909963", "0.5377414", "0.5349583", "0.5341112", "0.5334197", "0.5327042", "0.5243273", "0.5227839", "0.52159506", "0.51857924", "0.51843154", "0.5115981", "0.5100593", "0.50979805", "0.5084703", "0.50795555", "0.50785327", "0.50782233", "0.5070883", "0.50695777", "0.5063646", "0.5046867", "0.5042171", "0.50352424", "0.5030111", "0.502413", "0.5018063", "0.5014373", "0.5003343", "0.49980935", "0.49806997", "0.49806997", "0.4968486", "0.49639574", "0.495477", "0.4937552", "0.49171898", "0.49146414", "0.4913273", "0.49014375", "0.48973075", "0.48951074", "0.48940328", "0.48895562", "0.4887231", "0.4882835", "0.48806947", "0.48784035", "0.48761854", "0.48460877", "0.48453435", "0.483172", "0.48196682", "0.48155907", "0.4804299", "0.47935006", "0.47806555", "0.4774267", "0.4767253", "0.47638428", "0.4760285", "0.475955", "0.47547698", "0.47489303", "0.4744786", "0.4732086", "0.47274", "0.47265807", "0.47161946", "0.47130302", "0.47113857", "0.4709521", "0.47088066", "0.4699129", "0.46978402", "0.46973985", "0.46940455", "0.46919018", "0.4680651", "0.46734416", "0.4672069", "0.46687338", "0.46602246", "0.46492675" ]
0.5123269
27
Adds control that allows the user to upload files.
public function addFile($name, $label) { return $this[$name] = new FileUpload($label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _pagelet_upload_control($options = array())\n {\n $default_options = array(\n 'message' => 'Supports multiple file selection, drag&amp;drop, progress bar, cross-domain, chunked and resumable file uploads.',\n\n 'id' => 'file-upload',\n 'is_multiple' => TRUE,\n 'form_data' => array(),\n 'success_callback' => 'false',\n\n 'parent' => '.upload-control',\n 'progress_target' => '.progress',\n 'holder_target' => '.holder',\n 'image_holder_target' => FALSE,\n );\n $options = array_merge($default_options, $options);\n\n // Load templates if not set\n foreach (array('progress', 'holder', 'item', 'error') as $template_name)\n {\n if ( ! isset($options[$template_name . '_template']))\n {\n $template = $this->load->view('photo/upload_control/template_' . $template_name, FALSE, TRUE);\n $options[$template_name . '_template'] = $template;\n }\n }\n\n // Upload control HTML\n $this->load->view('photo/pagelet_upload_control', $options);\n\n // Load script to setup the upload control\n $fileupload_js = assets_url('js/fileupload.js');\n $upload_id = '#' . $options['id'];\n $upload_url = site_url('photo/photo_ajax/upload');\n $form_data = json_encode($options['form_data']);\n $script = <<< JS\n$(function() {\n CIS.Script.require('{$fileupload_js}', function() {\n CIS.FileUpload.init($('{$upload_id}'), {\n url: '{$upload_url}',\n formData: {$form_data},\n successCallback: {$options['success_callback']}\n });\n });\n});\nJS;\n $this->_load_script($script);\n }", "public function step_2_manage_upload()\n {\n }", "function _vip_contrib_add_upload_cap() {\n\tif ( ! is_admin() && ! defined( 'XMLRPC_REQUEST' ) )\n\t\treturn;\n\n\twpcom_vip_add_role_caps( 'contributor', array( 'upload_files' ) );\n}", "public function renderUploadForm() {}", "public function uploadfiles()\n {\n return view ('filemanager.uploadfile'); \n }", "function uploadFiles () {\n\n}", "public function uploadAction()\n {\n // default file URI\n $defaultUri = $this->_config->urlBase . 'files/';\n\n // store for sparql queries\n $store = $this->_owApp->erfurt->getStore();\n\n // DMS NS var\n $dmsNs = $this->_privateConfig->DMS_NS;\n\n // check if DMS needs to be imported\n if ($store->isModelAvailable($dmsNs) && $this->_privateConfig->import_DMS) {\n $this->_checkDMS();\n }\n\n $url = new OntoWiki_Url(\n array('controller' => 'files', 'action' => 'upload'),\n array()\n );\n\n // check for POST'ed data\n if ($this->_request->isPost()) {\n $event = new Erfurt_Event('onFilesExtensionUploadFile');\n $event->request = $this->_request;\n $event->defaultUri = $defaultUri;\n // process upload in plugin\n $eventResult = $event->trigger();\n if ($eventResult === true) {\n if (isset($this->_request->setResource)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('File attachment added', OntoWiki_Message::SUCCESS)\n );\n $resourceUri = new OntoWiki_Url(array('route' => 'properties'), array('r'));\n $resourceUri->setParam('r', $this->_request->setResource, true);\n $this->_redirect((string)$resourceUri);\n } else {\n $url->action = 'manage';\n $this->_redirect((string)$url);\n }\n }\n }\n\n $this->view->placeholder('main.window.title')->set($this->_owApp->translate->_('Upload File'));\n OntoWiki::getInstance()->getNavigation()->disableNavigation();\n\n $toolbar = $this->_owApp->toolbar;\n $url->action = 'manage';\n $toolbar->appendButton(\n OntoWiki_Toolbar::SUBMIT, array('name' => 'Upload File')\n );\n $toolbar->appendButton(\n OntoWiki_Toolbar::EDIT, array('name' => 'File Manager', 'class' => '', 'url' => (string)$url)\n );\n\n $this->view->defaultUri = $defaultUri;\n $this->view->placeholder('main.window.toolbar')->set($toolbar);\n\n $url->action = 'upload';\n $this->view->formActionUrl = (string)$url;\n $this->view->formMethod = 'post';\n $this->view->formClass = 'simple-input input-justify-left';\n $this->view->formName = 'fileupload';\n $this->view->formEncoding = 'multipart/form-data';\n if (isset($this->_request->setResource)) {\n // forward URI to form so we can redirect later\n $this->view->setResource = $this->_request->setResource;\n }\n\n if (!is_writable($this->_privateConfig->path)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('Uploads folder is not writable.', OntoWiki_Message::WARNING)\n );\n return;\n }\n\n // FIX: http://www.webmasterworld.com/macintosh_webmaster/3300569.htm\n header('Connection: close');\n }", "public function fileUpload()\n {\n return View::make('file-upload.create');\n }", "public function upload();", "public function uploadFileForm()\n {\n return view('admin.file.uploadFile');\n }", "function ft_hook_upload($dir, $file) {}", "function _setUploadForm()\r\n {\r\n global $_ARRAYLANG, $_CONFIG;\r\n\r\n\r\n //data we want to remember for handling the uploaded files\r\n\t\t$data = array();\r\n if (array_key_exists($this->_mediaType, $this->mediaTypePaths)) {\r\n $data['path'] = $this->mediaTypePaths[$this->_mediaType][0].$this->_path;\r\n $data['webPath'] = $this->mediaTypePaths[$this->_mediaType][1].$this->_path;\r\n } else {\r\n $data['path'] = ASCMS_CONTENT_IMAGE_PATH.$this->_path;\r\n $data['webPath'] = ASCMS_CONTENT_IMAGE_WEB_PATH.$this->_path;\r\n }\r\n\r\n $comboUp = \\Cx\\Core_Modules\\Upload\\Controller\\UploadFactory::getInstance()->newUploader('exposedCombo');\r\n $comboUp->setFinishedCallback(array(ASCMS_CORE_MODULE_PATH.'/FileBrowser/Controller/FileBrowser.class.php','\\Cx\\Core_Modules\\FileBrowser\\Controller\\FileBrowser','uploadFinished'));\r\n $comboUp->setData($data);\r\n //set instance name to combo_uploader so we are able to catch the instance with js\r\n $comboUp->setJsInstanceName('exposed_combo_uploader');\r\n\r\n $this->_objTpl->setVariable(array(\r\n 'COMBO_UPLOADER_CODE' => $comboUp->getXHtml(true),\r\n ));\r\n //end of uploader button handling\r\n //check if a finished upload caused reloading of the page.\r\n //if yes, we know the added files and want to highlight them\r\n if (!empty($_GET['highlightUploadId'])) {\r\n $key = 'filebrowser_upload_files_'.intval($_GET['highlightUploadId']);\r\n if (isset($_SESSION[$key])) {\r\n $sessionHighlightCandidates = $_SESSION[$key]; //an array with the filenames, set in FileBrowser::uploadFinished\r\n }\r\n //clean up session; we do only highlight once\r\n unset($_SESSION[$key]);\r\n\r\n if(is_array($sessionHighlightCandidates)) //make sure we don't cause any unexpected behaviour if we lost the session data\r\n $this->highlightedFiles = $sessionHighlightCandidates;\r\n }\r\n\r\n $objFWSystem = new \\FWSystem();\r\n \r\n // cannot upload or mkdir in webpages view\r\n if ($this->_mediaType == \"webpages\") {\r\n return;\r\n }\r\n $this->_objTpl->addBlockfile('FILEBROWSER_UPLOAD', 'fileBrowser_upload', 'module_fileBrowser_upload.html');\r\n $this->_objTpl->setVariable(array(\r\n 'FILEBROWSER_UPLOAD_TYPE' => $this->_mediaType,\r\n 'FILEBROWSER_UPLOAD_PATH' => $this->_path,\r\n 'FILEBROWSER_MAX_FILE_SIZE' => $objFWSystem->getMaxUploadFileSize(),\r\n 'TXT_CREATE_DIRECTORY' => $_ARRAYLANG['TXT_FILEBROWSER_CREATE_DIRECTORY'],\r\n 'TXT_UPLOAD_FILE' => $_ARRAYLANG['TXT_FILEBROWSER_UPLOAD_FILE'],\r\n 'JAVASCRIPT' \t=> \\JS::getCode(),\r\n ));\r\n\r\n $this->_objTpl->parse('fileBrowser_upload');\r\n }", "public function handle_upload()\n {\n }", "public function uploadAction() {\n $imgId = $this->getInput('imgId');\n $this->assign('imgId', $imgId);\n $this->getView()\n ->display('common/upload.phtml');\n }", "private function filesSection() {\n $this->_form->addElement('header', 'files', 'Files'); \n\n \n $this->_form->addElement(\n 'filemanager', \n 'files_student', \n get_string('files_student', 'codeactivity'), \n null,\n self::$fileoptions\n );\n $this->_form->addHelpButton(\n 'files_student',\n 'files_student',\n 'codeactivity'); \n \n \n $this->_form->addElement(\n 'filemanager',\n 'files_readonly',\n get_string('files_readonly', 'codeactivity'),\n null,\n self::$fileoptions\n );\n $this->_form->addHelpButton(\n 'files_readonly',\n 'files_readonly',\n 'codeactivity');\n \n $this->_form->addElement(\n 'filemanager',\n 'files_extra',\n get_string('files_extra', 'codeactivity'),\n null,\n self::$fileoptions\n );\n $this->_form->addHelpButton(\n 'files_extra',\n 'files_extra',\n 'codeactivity'); \n }", "public function uploadAction() {\r\n\t\t$imgId = $this->getInput('imgId');\r\n\t\t$this->assign('imgId', $imgId);\r\n\t\t$this->getView()->display('common/upload.phtml');\r\n\t\texit;\r\n\t}", "public function uploadAction() {\r\n\t\t$imgId = $this->getInput('imgId');\r\n\t\t$this->assign('imgId', $imgId);\r\n\t\t$this->getView()->display('common/upload.phtml');\r\n\t\texit;\r\n\t}", "public function uploadAction() {\n\t\t$imgId = $this->getInput('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "public function uploadAction() {\n\t\t$imgId = $this->getInput('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "public function uploadAction() {\n\t\t$imgId = $this->getInput('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "public function uploadAction() {\n\t\t$imgId = $this->getInput('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "public function uploadAction() {\n\t\t$imgId = $this->getInput('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "public function uploadAction() {\n\t\t$imgId = $this->getInput('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "public function upload()\n\t{\n\t}", "public function upload()\n {\n }", "public function addform()\n\t{\n \n\t\t$this->setMethod('post');\n\t\t $this->setAttrib('enctype', 'multipart/form-data');\n\n\t\t$this->addElement('file', 'upload_image', array( \n\t\t\t'label' => '',\n 'required' => false\n ));\n\n // Add the submit button\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Submit',\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hash', 'csrf', array(\n 'ignore' => true,\n ));\n\n\n\t}", "function definition() {\n global $FILEPICKER_OPTIONS;\n\n $mform =& $this->_form;\n\n // Determine permissions from evidence\n $topicitemid = $this->_customdata['topicitemid'];\n $userid = $this->_customdata['userid'];\n $fileoptions = isset($this->_customdata['fileoptions']) ? $this->_customdata['fileoptions'] : $FILEPICKER_OPTIONS;\n\n $mform->addElement('hidden', 'tiid', $topicitemid);\n $mform->setType('tiid', PARAM_INT);\n\n $mform->addElement('hidden', 'userid', $userid);\n $mform->setType('userid', PARAM_INT);\n\n $mform->addElement('filemanager', 'topicitemfiles_filemanager',\n get_string('topicitemfiles', 'ojt'), null, $fileoptions);\n\n $this->add_action_buttons(true, get_string('updatefiles', 'ojt'));\n }", "function training_modal_load_files_form($form, &$form_state) {\n $form = array(\n 'file_upload' => array(\n '#type' => 'managed_file',\n '#title' => 'Upload file',\n '#upload_location' => 'private://upload',\n '#upload_validators' => array(\n 'file_validate_extensions' => array(),\n ),\n ),\n 'submit_upload' => array(\n '#type' => 'submit',\n '#value' => 'Submit',\n ),\n );\n\n return $form;\n}", "public function it_shows_file_input_on_type_of_file()\n {\n // configure\n $inputs = [\n [\n 'type' => 'file',\n 'name' => 'tc',\n 'label' => 'Upload Terms and Conditions'\n ]\n ];\n\n $this->configureInputs($inputs);\n\n // assert\n $this->get('/settings')\n ->assertStatus(200)\n ->assertSee('type=\"file\"', false);\n }", "public function append_media_upload_form() {\n \n ?>\n <!-- Add from Media Library -->\n <a href=\"#\" class=\"envira-media-library button\" title=\"<?php _e( 'Click Here to Insert from Other Image Sources', 'envira-gallery' ); ?>\" style=\"vertical-align: baseline;\">\n <?php _e( 'Select Files from Other Sources', 'envira-gallery' ); ?>\n </a>\n\n <!-- Progress Bar -->\n <div class=\"envira-progress-bar\">\n <div class=\"envira-progress-bar-inner\"></div>\n <div class=\"envira-progress-bar-status\">\n <span class=\"uploading\">\n <?php _e( 'Uploading Image', 'envira-gallery' ); ?>\n <span class=\"current\">1</span>\n <?php _e( 'of', 'envira-gallery' ); ?>\n <span class=\"total\">3</span>\n </span>\n\n <span class=\"done\"><?php _e( 'All images uploaded.', 'envira-gallery' ); ?></span>\n </div>\n </div>\n <?php\n\n }", "public function file($options = []){\n\t\t// Set default attributes.\n\t\tHtml::setAttribute($options, [\n\t\t\t'id' => $this->name,\n\t\t\t'class' => $this->getDefaultClass('file')\n\t\t]);\n\t\t// On error, add error class if error classes are enabled.\n\t\tif($this->hasError && $this->errorClasses){\n\t\t\tHtml::addToAttribute($options, 'class', $this->getDefaultClass('error'));\n\t\t}\n\t\t// Create and store the element.\n\t\t$this->elements['control'] = Html::file(\n\t\t\t$this->name,\n\t\t\t$options\n\t\t);\n\t\t// Return object to method chain.\n\t\treturn $this;\n\t}", "public function getUploadEventHandler();", "public function upload_files_page(){\r\n\t\t$max_filesize = $this->get_max_filesize();\r\n\t\t$max_file = $this->get_max_files();\r\n\t\tinclude($this->admin_url . 'view/market-reports-upload-files.php');\r\n\t}", "protected function checkFileUploadEnabled() {}", "public function lifecycleFileUpload() {\n $this->upload();\n}", "function\nwidget_upload ($name, $upload_path, $max_file_size, $mime_type, $submit_button_html, $uploaded_html)\n{\n $debug = 0;\n $p = '';\n\n if (!$_FILES)\n return '<form action=\"'\n .$_SERVER['PHP_SELF']\n .'\" method=\"POST\" enctype=\"multipart/form-data\"'\n// .' style=\"margin:0;\"'\n .' style=\"display:inline;\"'\n .'>'\n .'<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"'\n .$max_file_size\n .'\">'\n .'<input type=\"file\"'\n .' name=\"'.$name.'\"'\n// .' title=\"'\n// .$tooltip\n// .'\"'\n .($max_file_size ? ' maxlength=\"'.$max_file_size.'\"' : '')\n .($mime_type ? ' accept=\"'.$mime_type.'\"' : '')\n .'>'\n .($submit_button_html ? $submit_button_html :\n '<input type=\"submit\" name=\"'.$name.'\" value=\"Upload\"'\n// .' tooltip=\"'\n// .$tooltip\n// .'\"'\n)\n .'>'\n .'</form>'\n;\n\n if ($debug)\n {\n $p .= '<pre><tt>'\n .sprint_r ($_FILES);\n }\n\n $d = $upload_path.'/'\n// .str_replace (' ', '_', basename($_FILES[''.$name.'']['name']));\n .basename($_FILES[''.$name.'']['name']);\n\n if (file_exists ($d))\n $p .= 'ERROR: file already exists';\n else if (move_uploaded_file ($_FILES[''.$name.'']['tmp_name'], $d) == FALSE)\n $p .= 'ERROR: move_uploaded_file() failed';\n\n $s = Array (\n UPLOAD_ERR_OK => 'OK',\n UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive ('\n .ini_get ('upload_max_filesize')\n .') in php.ini',\n UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive ('\n .$max_file_size\n .') that was specified in the HTML form',\n UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded',\n UPLOAD_ERR_NO_FILE => 'No file was uploaded',\n UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder',\n// UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk',\n// UPLOAD_ERR_EXTENSION => 'File upload stopped by extension'\n );\n\n if (!empty ($_FILES[''.$name.'']) &&\n $_FILES[''.$name.'']['error'] == UPLOAD_ERR_OK)\n {\n $p .= $uploaded_html;\n }\n else\n {\n $e = $s[$_FILES[''.$name.'']['error']];\n if (!$e)\n $e .= 'An unknown error occured';\n $p .= 'ERROR: '.$e;\n }\n\n if ($debug)\n {\n $p .= '<pre><tt>'\n .sprint_r ($s)\n .sprint_r ($_FILES);\n }\n\n return $p;\n}", "public function callback_file( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';\n $id = $args['section'] . '[' . $args['id'] . ']';\n $label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File' );\n $mime_type = isset( $args['options']['mime'] ) ? $args['options']['mime'] : 'image';\n\n $html = '<fieldset>';\n $html .= sprintf( '<input type=\"text\" class=\"%1$s-text wpsa-url\" id=\"%2$s\" name=\"%2$s\" value=\"%3$s\" %4$s/>', $size, $name_id, $value, $disable );\n $html .= '<input type=\"button\" class=\"button wpsa-browse\" value=\"' . $label . '\" ' . $disable . '/>';\n $html .= '<input type=\"hidden\" class=\"wpsa-mime\" value=\"' . $mime_type . '\" />';\n $html .= $this->get_field_description( $args );\n $html .= '</fieldset>';\n\n echo $html;\n }", "public function handleUploadFile() {\n\t\t$this->templateName = 'Upload.latte';\n\n\t\t$this->storage->addFile($_FILES['upload']['tmp_name'], $_FILES['upload']['name']);\n\n\t\t$this->template->url = $this->template->basePath . '/' . $this->storage->getBaseUrl() . '/' . $_FILES['upload']['name'];\n\t\t$this->template->message = 'Soubor byl nahrán';\n\t\t$this->template->setFile(__DIR__ . '/templates/' . $this->templateName);\n\t\t$this->template->render();\n\t\t$this->getPresenter()->terminate();\n\t}", "function khLess_field_pill_cb($args)\n{\n $options = get_option('khLess_options');\n // output the field\n ?>\n <input type=\"file\" name=\"file\">\n\n <input type=\"submit\" name=\"open_file\" value=\"Загрузить расписание\"/>\n\n\n <?php\n}", "public function add_file_upload_html( $field, $form_data ) {\n\n\t\tif ( empty( $field['type'] ) || 'file-upload' !== $field['type'] ) {\n\t\t\treturn;\n\t\t}\n\t\t?>\n\t\t<label class=\"wpforms-field-file-upload-label wpforms-conversational-btn\" for=\"<?php echo \\esc_attr( $field['properties']['inputs']['primary']['id'] ); ?>\">\n\t\t\t<?php esc_html_e( 'Choose File', 'wpforms-conversational-forms' ); ?>\n\t\t</label>\n\t\t<span class=\"wpforms-field-file-upload-file-name wpforms-conversational-form-btn-desc\">\n\t\t\t<?php esc_html_e( 'No file chosen', 'wpforms-conversational-forms' ); ?>\n\t\t</span>\n\t\t<?php\n\t}", "function generate($name, $value, $attributes = array()){\r\n \t\t$this->init($name, $value, $attributes);\r\n\r\n \t\tif(!isset($this->attributes['class'])){\r\n\t\t\t$this->attributes['class'] = 'file_upload '.$name;\r\n\t\t}else{\r\n\t\t\t$this->attributes['class'] .= ' file_upload '.$name;\r\n\t\t}\r\n\t\t$perm = '';\r\n\t\tif(isset($this->attributes['perm'])){\r\n\t\t\t$perm = $this->attributes['perm']; unset($this->attributes['perm']);\r\n\t\t}\r\n\t\t$max = '';\r\n\t\tif(isset($this->attributes['max'])){\r\n\t\t\t$max = $this->attributes['max']; unset($this->attributes['max']);\r\n\t\t}\r\n\t\t$dir = '';\r\n\t\tif(isset($this->attributes['dir'])){\r\n\t\t\t$dir = $this->attributes['dir']; unset($this->attributes['dir']);\r\n \t\t}\r\n\t\t$tpl = BASIC::init()->ini_get('root_virtual').BASIC::init()->ini_get('basic_path').'scripts/svincs/controls/upload/skin.css';\r\n\t\tif(isset($this->attributes['template'])){\r\n\t\t\t$tpl = $this->attributes['template'];\r\n\t\t\tunset($this->attributes['template']);\r\n\t\t}\r\n\t\t$size = '';\r\n\t\tif(isset($this->attributes['size'])){\r\n\t\t\t$size = $this->attributes['size'];\r\n\t\t\tunset($this->attributes['size']);\r\n\t\t}\r\n \t\t$disabled = false;\r\n\t\tif(isset($this->attributes['disabled'])){\r\n\t\t\t$disabled = $this->attributes['disabled'];\r\n\t\t\tunset($this->attributes['disabled']);\r\n\t\t}\r\n\t\tBASIC_GENERATOR::init()->head('file_control','link','href='.$tpl);\r\n\r\n\t\tif(isset($this->attributes['rand'])) unset($this->attributes['rand']);\r\n\t\tif(isset($this->attributes['as'])) unset($this->attributes['as']);\r\n\r\n\t\tif(isset($this->attributes['onComplete'])) unset($this->attributes['onComplete']);\r\n\t\tif(isset($this->attributes['onDelete'])) unset($this->attributes['onDelete']);\r\n\t\tif(isset($this->attributes['onError'])) unset($this->attributes['onError']);\r\n\r\n \t\t$tmp = BASIC_GENERATOR::init()->createCloseTag('input', 'type=file|class=control|name='.$name.'|id='.$name.'|'.($disabled ? 'disabled=disabled|' : '').'title=types:'.$perm.' max:'.$max.($size ? '|size='.$size : ''));\r\n\t\t\r\n\t\tif(isset($this->attributes['delete_btn']) && isset($this->attributes['delete_btn']['text']) && $value){\r\n\t\t $delete_btn = BASIC_GENERATOR::init()->convertStringAtt($this->attributes['delete_btn']);\r\n\t\t $text = $delete_btn['text']; \r\n\t\t \r\n\t\t unset($delete_btn['text']);\r\n\t\t unset($this->attributes['delete_btn']);\r\n\t\t \r\n\t\t\tif($disabled){\r\n\t\t \t$delete_btn['disabled'] = 'disabled';\r\n\t\t \t$delete_btn['href'] = '#';\r\n\t\t }\r\n\t\t $tmp .= BASIC_GENERATOR::init()->createTag('a', $delete_btn, $text);\r\n\t\t}\r\n \t \tif(isset($this->attributes['upload_btn']) && $value){\r\n\t\t $btn = BASIC_GENERATOR::init()->convertStringAtt($this->attributes['upload_btn']);\r\n\t\t $text = $btn['text']; \r\n\t\t \r\n\t\t unset($btn['text']);\r\n\t\t unset($this->attributes['upload_btn']);\r\n\t\t \r\n\t\t if($disabled){\r\n\t\t \t$btn['disabled'] = 'disabled';\r\n\t\t \t$btn['href'] = '#';\r\n\t\t }else{\r\n\t\t \t$btn['href'] = BASIC::init()->ini_get('root_virtual').$dir.$value;\r\n\t\t }\r\n\t\t \r\n\t\t $tmp .= BASIC_GENERATOR::init()->createTag('a', $btn, $text);\r\n\t\t}\r\n\t\tif(isset($this->attributes['preview']) && $this->attributes['preview'] && $value){\r\n\t\t\t$ex = explode(\",\",$this->attributes['preview']);\r\n\t\t\t$t = BASIC_GENERATOR::init()->image($value, ($dir ? '|folder='.$dir : '').\r\n\t\t\t\t(isset($ex[0]) ? '|width='.$ex[0] : '').\r\n\t\t\t\t(isset($ex[1]) ? '|height='.$ex[1] : ''));\r\n\t\t\t\t\r\n\t\t\tif($t) $tmp .= BASIC_GENERATOR::init()->create('div', 'class=window', $t);\r\n\t\t\tunset($this->attributes['preview']);\r\n\t\t}\r\n\t\t//$tmp .= $GLOBALS['BASIC_PAGE']->input(\"hidden\",$name.\"_old\",$value,'id='.$name.'_old');\r\n\r\n\t\treturn BASIC_GENERATOR::init()->create('div', $this->attributes, $tmp);\r\n \t}", "public function upload()\n {\n return view('pages/uploadFiles');\n }", "public function add_upload_files_page() {\r\n\t add_submenu_page( \r\n\t // 'edit.php?post_type=market-reports', //or 'options.php'\r\n\t null,\r\n\t 'Upload Files',\r\n\t 'Upload Files',\r\n\t 'publish_market_reports',\r\n\t 'upload-files',\r\n \tarray($this,'upload_files_page')\r\n\t );\r\n\t}", "public function setUploadFile($value)\n {\n return $this->set('UploadFile', $value);\n }", "function os_selectfile_add_meta_box() {\n\t//for general\n\tadd_meta_box('os_selectfile_meta_box', 'Select File', 'os_selectfile_meta_box_html', '', 'side');\n}", "public function upload()\n {\n set_time_limit(0);\n //Clear error messages\n Registry::getMessages();\n //Config\n $config = Registry::getConfig();\n //Upload Handler\n new UploadHandler(\n array(\n 'upload_dir' => $config->get(\"path\").\"/files/videos/\",\n 'upload_url' => Url::site(\"files/videos\").\"/\",\n \"maxNumberOfFiles\" => 1,\n \"accept_file_types\" => \"/\\.(mp4|mpg|flv|mpeg|avi)$/i\",\n )\n );\n }", "function procMenuAdminUploadButton()\n\t{\n\t\t$menu_srl = Context::get('menu_srl');\n\t\t$menu_item_srl = Context::get('menu_item_srl');\n\t\t$target = Context::get('target');\n\t\t$target_file = Context::get($target);\n\t\t// Error occurs when the target is neither a uploaded file nor a valid file\n\t\tif(!$menu_srl || !$menu_item_srl)\n\t\t{\n\t\t\tContext::set('error_messge', Context::getLang('msg_invalid_request'));\n\n\t\t}\n\t\telse if(!$target_file || !is_uploaded_file($target_file['tmp_name']) || !preg_match('/\\.(gif|jpeg|jpg|png)$/i',$target_file['name']) || !checkUploadedFile($target_file['tmp_name']))\n\t\t{\n\t\t\tContext::set('error_messge', Context::getLang('msg_invalid_request'));\n\t\t}\n\n\t\t// Move the file to a specific director if the uploaded file meets requirement\n\t\telse\n\t\t{\n\t\t\t$tmp_arr = explode('.',$target_file['name']);\n\t\t\t$ext = $tmp_arr[count($tmp_arr)-1];\n\n\t\t\t$path = sprintf('./files/attach/menu_button/%d/', $menu_srl);\n\t\t\t$filename = sprintf('%s%d.%s.%s', $path, $menu_item_srl, $target, $ext);\n\n\t\t\tif(!is_dir($path)) FileHandler::makeDir($path);\n\n\t\t\tmove_uploaded_file($target_file['tmp_name'], $filename);\n\t\t\tContext::set('filename', $filename);\n\t\t}\n\n\t\t$this->setTemplatePath($this->module_path.'tpl');\n\t\t$this->setTemplateFile('menu_file_uploaded');\n\t}", "public function fileUpload()\n {\n return view('fileUpload');\n }", "static public function configureFileField() {}", "abstract protected function doUpload();", "public function requires_file_upload_message() {\n\n\t\t// Generate form editor URL.\n\t\t$url = add_query_arg( array( 'view' => null, 'subview' => null ) );\n\n\t\treturn sprintf(\n\t\t\tesc_html__( \"You must add a File Upload field to your form before creating a feed. Let's go %sadd one%s!\", 'gravityformsdropbox' ),\n\t\t\t'<a href=\"' . esc_url( $url ) . '\">', '</a>'\n\t\t);\n\n\t}", "function Trigger_FileUpload(&$tNG) {\n $uploadObj = new tNG_FileUpload($tNG);\n $uploadObj->setFormFieldName(\"taptinquangcao\");\n $uploadObj->setDbFieldName(\"taptinquangcao\");\n $uploadObj->setFolder(\"../images/quangcao/\");\n $uploadObj->setMaxSize(5000);\n $uploadObj->setAllowedExtensions(\"jpg, gif, png, swf\");\n $uploadObj->setRename(\"auto\");\n return $uploadObj->Execute();\n}", "function media_upload_file()\n {\n }", "function bab_pm_file_upload_form($label, $pophelp, $step, $id = '')\n{\n global $file_max_upload_size;\n\n if (!$file_max_upload_size || intval($file_max_upload_size) == 0) {\n $file_max_upload_size = 2*(1024*1024);\n }\n\n $max_file_size = (intval($file_max_upload_size) == 0) ? '' : intval($file_max_upload_size);\n\n $label_id = (@$label_id) ? $label_id : 'postmaster-upload';\n\n return '<form method=\"post\" enctype=\"multipart/form-data\" action=\"index.php\">'\n . '<div>'\n . (!empty($max_file_size)? n.hInput('MAX_FILE_SIZE', $max_file_size): '')\n . eInput('postmaster')\n . sInput('import')\n . graf(\n '<label for=\"'.$label_id.'\">'.$label.'</label>'.sp.\n fInput('file', 'thefile', '', 'edit', '', '', '', '', $label_id).sp.\n fInput('submit', '', gTxt('upload'), 'smallerbox')\n )\n . '<br /><input type=\"checkbox\" name=\"overwrite\" /> Overwrite subscribers that already exist'\n . '<br /><input type=\"checkbox\" name=\"dump_first\" /> Empty subscribers list before import'\n . '</div></form>';\n ;\n}", "public function add() {\n $this->usePostRequest();\n //$this->dbFileModel->add_file();\n }", "public function ieditor_upload () {\n\t\t\tif (!empty($_FILES)) {\n\t\t\t\t$oUploadedFile = umiImageFile::upload('eip-ieditor-upload-fileinput', 0, CURRENT_WORKING_DIR . '/images/cms/data');\n\t\t\t\t// Переопределение стандартного вывода, чтобы выводилась просто строка с путем к файлу в plain text, без json.\n\t\t\t\t// Это нужно для обхода особенностей работы IE, который при выводе в hidden iframe валидного JSON предлагает его сохранить как файл.\n\t\t\t\t$buffer = new HTTPOutputBuffer();\n\t\t\t\t$buffer->push($oUploadedFile->getFilePath(true));\n\t\t\t\t$buffer->send();\n\t\t\t\texit();\n\t\t\t}\n\t\t}", "public function upload(array $files);", "public function upload($file) {\n /*\n ** is there some file to upload\n */\n if (isset($file))\n FileLoaderController::setFiles($file);\n else\n API::error('No file found.');\n\n /*\n ** Upload the current media\n */\n FileLoaderController::upload($this);\n\n }", "public function init(){\n\t\t\n\t\tparent::init();\n\t\t\n\t\t$this->_html .= '<input type=\"file\" ';\n\t\t\n\t\tif(isset($this->_options['id'])){\n\t\t\t$this->_html .= 'id=\"'.$this->_options['id'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['class'])){\n\t\t\t$this->_html .= 'class=\"'.$this->_options['class'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['name'])){\n\t\t\t$this->_html .= 'name=\"'.$this->_options['name'].'\" ';\n\t\t}\n \n if(isset($this->_options['placeholder'])){\n\t\t\t$this->_html .= 'placeholder=\"'.$this->_options['placeholder'].'\" ';\n\t\t}\n\t\t\n\t\t$this->_html .= ' />';\n\t\tif(isset($this->_options['max']) && $this->_options['max'] == true){\n if(isset($this->_options['max_value'])){\n $this->_html .= '<input type=\"hidden\" name=\"MAX\" value=\"'.$this->_options['max_value'].'\" />';\n }else{\n $this->_html .= '<input type=\"hidden\" name=\"MAX\" value=\"10240\" />';\n }\n }else{\n $this->_html .= '<input type=\"hidden\" name=\"MAX\" value=\"10240\" />';\n }\n \n if(isset($this->_options['action'])){\n $this->_html .= '<input type=\"hidden\" name=\"action\" value=\"'.$this->_options['action'].'\" />';\n }else{\n $this->_html .= '<input type=\"hidden\" name=\"action\" value=\"wp_handle_upload\" />';\n }\n\t}", "function wp_import_handle_upload()\n {\n }", "function vip_contrib_add_upload_cap() {\n\tadd_action( 'init', '_vip_contrib_add_upload_cap');\n\tadd_action( 'xmlrpc_call', '_vip_contrib_add_upload_cap' ); // User is logged in after 'init' for XMLRPC\n}", "function media_upload_form_handler()\n {\n }", "public function media_upload()\n\t{\n\t\t$this->api->check_authentication();\n\n\t\twp_iframe(array(&$this, 'media_upload_content'));\n\t}", "public function lifecycleFileUpload(): void\n {\n $this->upload();\n }", "public function upload($input);", "public function upload()\n {\n if (!Request::hasPost('requestToken') || !RequestToken::validate(Request::getPost('requestToken'))) {\n $objResponse = new ResponseError();\n $objResponse->setMessage('Invalid Request Token!');\n $objResponse->output();\n }\n\n if (!Request::getInstance()->files->has($this->name)) {\n return;\n }\n\n $objTmpFolder = new \\Folder(MultiFileUpload::UPLOAD_TMP);\n\n // contao 4 support, create tmp dir symlink\n if (version_compare(VERSION, '4.0', '>=')) {\n // tmp directory is not public, mandatory for preview images\n if (!file_exists(System::getContainer()->getParameter('contao.web_dir') . DIRECTORY_SEPARATOR . MultiFileUpload::UPLOAD_TMP)) {\n $objTmpFolder->unprotect();\n $command = new SymlinksCommand();\n $command->setContainer(System::getContainer());\n $input = new ArrayInput([]);\n $output = new NullOutput();\n $command->run($input, $output);\n }\n }\n\n $strField = $this->name;\n $varFile = Request::getInstance()->files->get($strField);\n // Multi-files upload at once\n if (is_array($varFile)) {\n // prevent disk flooding\n if (count($varFile) > $this->maxFiles) {\n $objResponse = new ResponseError();\n $objResponse->setMessage('Bulk file upload violation.');\n $objResponse->output();\n }\n\n /**\n * @var UploadedFile $objFile\n */\n foreach ($varFile as $strKey => $objFile) {\n $arrFile = $this->uploadFile($objFile, $objTmpFolder->path, $strField);\n $varReturn[] = $arrFile;\n\n if (\\Validator::isUuid($arrFile['uuid'])) {\n $arrUuids[] = $arrFile['uuid'];\n }\n }\n } // Single-file upload\n else {\n /**\n * @var UploadedFile $varFile\n */\n $varReturn = $this->uploadFile($varFile, $objTmpFolder->path, $strField);\n\n if (\\Validator::isUuid($varReturn['uuid'])) {\n $arrUuids[] = $varReturn['uuid'];\n }\n }\n\n if ($varReturn !== null) {\n $this->varValue = $arrUuids;\n $objResponse = new ResponseSuccess();\n $objResult = new ResponseData();\n $objResult->setData($varReturn);\n $objResponse->setResult($objResult);\n\n return $objResponse;\n }\n }", "public function lifecycleFileUpload()\n {\n $this->upload();\n }", "public function lifecycleFileUpload()\n {\n $this->upload();\n }", "public function actionUpload1()\n {\n $upload_handler = new UploadHandler();\n }", "public function uploadFile()\n {\n $isWidget = Input::get('w', 0);\n $file = Input::file('file');\n\n if ($file->isValid())\n {\n if (bytes2mb($file->getSize()) <= 10)\n {\n if (in_array($file->getClientOriginalExtension(), ['pdf', 'doc', 'docx'])) {\n $path = 'files/' . date('Y') . '/' . date('m');\n $destination = File::makeDirectory(public_path($path), 0755, true);\n $filename = File::nameGenerate($file->getClientOriginalName(), $destination);\n $file->move($destination, $filename);\n\n $file = FileLibrary::create(['author_id' => $this->user->id]);\n $file_path = $path . '/' . $filename;\n foreach (array_keys(Lang::allLocales()) as $lang) {\n FileLibraryLanguage::create(['lang' => $lang, 'file_id' => $file->id, 'file_path' => $file_path]);\n }\n\n $action = $isWidget ? 'view' : 'edit';\n $output['result'] = ['thumb_url' => thumb_url('files/icon.png', 130), 'file_url' => admin_url('files-library/' . $action, $file->id)];\n } else {\n $output['error'] = 'This file is not an file file.';\n }\n } else {\n $output['error'] = 'This file size is too large. It should be less than 10 MB.';\n }\n } else {\n $output['error'] = 'File not found.';\n }\n\n return Response::json($output);\n }", "public function lifecycleFileUpload() {\n $this->upload();\n }", "public function ajaxfileupload() {\n\t\t\t$this->Fileuploader->ajaxfileupload();\n\t\t}", "public function ajaxfileupload() {\n\t\t\t$this->Fileuploader->ajaxfileupload();\n\t\t}", "public function upload()\n {\n App::import('Lib', 'Uploads.file_receiver/FileReceiver');\n App::import('Lib', 'Uploads.file_dispatcher/FileDispatcher');\n App::import('Lib', 'Uploads.file_binder/FileBinder');\n App::import('Lib', 'Uploads.UploadedFile');\n\n $this->cleanParams();\n $Receiver = new FileReceiver($this->params['url']['extensions'], $this->params['url']['limit']);\n $Dispatcher = new FileDispatcher(\n Configure::read('Uploads.base'),\n Configure::read('Uploads.private')\n );\n $Binder = new FileBinder($Dispatcher, $this->params['url']);\n try {\n $File = $Receiver->save(Configure::read('Uploads.tmp'));\n $Binder->bind($File);\n $this->set('response', $File->getResponse());\n file_put_contents(LOGS.'mh-uploads.log', date('Y-m-d H:i > ').'Uploaded '.$File->getName().chr(10), FILE_APPEND);\n } catch (RuntimeException $e) {\n file_put_contents(LOGS.'mh-uploads.log', date('Y-m-d H:i > ').$e->getMessage().chr(10), FILE_APPEND);\n $this->set('response', $this->failedResponse($e));\n }\n $this->layout = 'ajax';\n $this->RequestHandler->respondAs('js');\n }", "public function inputfile($name, $display, $classlabel=\"control-label\", $classselect=\"\"){\n return $this->surround('\n <label for=\"'.$name.'\" class='.$classlabel.'>'.$display.'</label>\n <input id=\"'.$name.'\" type=\"file\" name=\"'.$name.'\" class=\"file \"'.$classselect.'>');\n }", "function upload_img()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '上传图片';\n $this->global['pageName'] = 'carousel_upload';\n $data['ret_Url'] = 'carousel_edit';\n\n $this->loadViews(\"uploading_img\", $this->global, $data, NULL);\n }\n }", "public function selectUploadAction ()\n {\n throw new Exception('Deprecated');\n }", "function acf_upload_files($ancestors = array())\n{\n}", "public function upload()\n {\n // The file property can be empty if the field is not required\n if (null === $this->file) {\n return;\n }\n\n // Use the original file name here but you should\n // sanitize it at least to avoid any security issues\n\n // move takes the target directory and then the\n // target filename to move to\n $this->file->move(\n $this->getUploadRootDir(),\n $this->path\n );\n\n // Set the path property to the filename where you've saved the file\n $this->path = $this->file->getClientOriginalName();\n\n // Clean up the file property as you won't need it anymore\n $this->file = null;\n }", "public function do_upload()\n {\n if (!class_exists('WPCP_UploadHandler')) {\n require USEYOURDRIVE_ROOTDIR.'/vendors/jquery-file-upload/server/UploadHandler.php';\n }\n\n if ('1' === $this->get_processor()->get_shortcode_option('demo')) {\n // TO DO LOG + FAIL ERROR\n exit(-1);\n }\n\n $shortcode_max_file_size = $this->get_processor()->get_shortcode_option('maxfilesize');\n $shortcode_min_file_size = $this->get_processor()->get_shortcode_option('minfilesize');\n $accept_file_types = '/.('.$this->get_processor()->get_shortcode_option('upload_ext').')$/i';\n $post_max_size_bytes = min(Helpers::return_bytes(ini_get('post_max_size')), Helpers::return_bytes(ini_get('upload_max_filesize')));\n $max_file_size = ('0' !== $shortcode_max_file_size) ? Helpers::return_bytes($shortcode_max_file_size) : $post_max_size_bytes;\n $min_file_size = (!empty($shortcode_min_file_size)) ? Helpers::return_bytes($shortcode_min_file_size) : -1;\n $use_upload_encryption = ('1' === $this->get_processor()->get_shortcode_option('upload_encryption') && (version_compare(phpversion(), '7.1.0', '<=')));\n\n $options = [\n 'access_control_allow_methods' => ['POST', 'PUT'],\n 'accept_file_types' => $accept_file_types,\n 'inline_file_types' => '/\\.____$/i',\n 'orient_image' => false,\n 'image_versions' => [],\n 'max_file_size' => $max_file_size,\n 'min_file_size' => $min_file_size,\n 'print_response' => false,\n ];\n\n $error_messages = [\n 1 => esc_html__('The uploaded file exceeds the upload_max_filesize directive in php.ini', 'wpcloudplugins'),\n 2 => esc_html__('The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form', 'wpcloudplugins'),\n 3 => esc_html__('The uploaded file was only partially uploaded', 'wpcloudplugins'),\n 4 => esc_html__('No file was uploaded', 'wpcloudplugins'),\n 6 => esc_html__('Missing a temporary folder', 'wpcloudplugins'),\n 7 => esc_html__('Failed to write file to disk', 'wpcloudplugins'),\n 8 => esc_html__('A PHP extension stopped the file upload', 'wpcloudplugins'),\n 'post_max_size' => esc_html__('The uploaded file exceeds the post_max_size directive in php.ini', 'wpcloudplugins'),\n 'max_file_size' => esc_html__('File is too big', 'wpcloudplugins'),\n 'min_file_size' => esc_html__('File is too small', 'wpcloudplugins'),\n 'accept_file_types' => esc_html__('Filetype not allowed', 'wpcloudplugins'),\n 'max_number_of_files' => esc_html__('Maximum number of files exceeded', 'wpcloudplugins'),\n 'max_width' => esc_html__('Image exceeds maximum width', 'wpcloudplugins'),\n 'min_width' => esc_html__('Image requires a minimum width', 'wpcloudplugins'),\n 'max_height' => esc_html__('Image exceeds maximum height', 'wpcloudplugins'),\n 'min_height' => esc_html__('Image requires a minimum height', 'wpcloudplugins'),\n ];\n\n $this->upload_handler = new \\WPCP_UploadHandler($options, false, $error_messages);\n $response = @$this->upload_handler->post(false);\n\n // Upload files to Google\n foreach ($response['files'] as &$file) {\n // Set return Object\n $file->listtoken = $this->get_processor()->get_listtoken();\n $file->name = Helpers::filter_filename(stripslashes(rawurldecode($file->name)), false);\n $file->hash = $_POST['hash'];\n $file->path = $_REQUEST['file_path'];\n $file->description = sanitize_textarea_field(wp_unslash($_REQUEST['file_description']));\n\n // Set Progress\n $return = ['file' => $file, 'status' => ['bytes_up_so_far' => 0, 'total_bytes_up_expected' => $file->size, 'percentage' => 0, 'progress' => 'starting']];\n self::set_upload_progress($file->hash, $return);\n\n if (isset($file->error)) {\n $file->error = esc_html__('Uploading failed', 'wpcloudplugins').': '.$file->error;\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Uploading failed: %s', $file->error));\n\n exit();\n }\n\n if ($use_upload_encryption) {\n $return['status']['progress'] = 'encrypting';\n self::set_upload_progress($file->hash, $return);\n\n $result = $this->do_encryption($file);\n\n if ($result) {\n $file->name .= '.aes';\n clearstatcache();\n $file->size = filesize($file->tmp_path);\n }\n }\n\n // Create Folders if needed\n $upload_folder_id = $this->get_processor()->get_last_folder();\n if (!empty($file->path)) {\n $upload_folder_id = $this->create_folder_structure($file->path);\n }\n\n // Write file\n $chunkSizeBytes = 1 * 1024 * 1024;\n\n // Update Mime-type if needed (for IE8 and lower?)\n $fileExtension = pathinfo($file->name, PATHINFO_EXTENSION);\n $file->type = Helpers::get_mimetype($fileExtension);\n\n // Overwrite if needed\n $current_entry_id = false;\n if ('1' === $this->get_processor()->get_shortcode_option('overwrite')) {\n $parent_folder = $this->get_client()->get_folder($upload_folder_id);\n $current_entry = $this->get_client()->get_cache()->get_node_by_name($file->name, $parent_folder['folder']);\n\n if (!empty($current_entry)) {\n $current_entry_id = $current_entry->get_id();\n }\n }\n\n // Create new Google File\n $googledrive_file = new \\UYDGoogle_Service_Drive_DriveFile();\n $googledrive_file->setName($file->name);\n $googledrive_file->setMimeType($file->type);\n $googledrive_file->setDescription($file->description);\n\n if ('1' === $this->get_processor()->get_shortcode_option('upload_keep_filedate') && isset($_REQUEST['last_modified'])) {\n $last_modified = date('c', ($_REQUEST['last_modified'] / 1000)); // Javascript provides UNIX time in milliseconds, RFC 3339 required\n $googledrive_file->setModifiedTime($last_modified);\n }\n\n // Convert file if needed\n $file->convert = false;\n if ('1' === $this->get_processor()->get_shortcode_option('convert')) {\n $importformats = $this->get_processor()->get_import_formats();\n $convertformats = $this->get_processor()->get_shortcode_option('convert_formats');\n if ('all' === $convertformats[0] || in_array($file->type, $convertformats)) {\n if (isset($importformats[$file->type])) {\n $file->convert = $importformats[$file->type];\n $filename = pathinfo($file->name, PATHINFO_FILENAME);\n $googledrive_file->setName($filename);\n }\n }\n }\n\n // Call the API with the media upload, defer so it doesn't immediately return.\n $this->get_app()->get_client()->setDefer(true);\n\n try {\n if (false === $current_entry_id) {\n $googledrive_file->setParents([$upload_folder_id]);\n $request = $this->get_app()->get_drive()->files->create($googledrive_file, ['supportsAllDrives' => true, 'enforceSingleParent' => true]);\n } else {\n $request = $this->get_app()->get_drive()->files->update($current_entry_id, $googledrive_file, ['supportsAllDrives' => true, 'enforceSingleParent' => true]);\n }\n } catch (\\Exception $ex) {\n $file->error = esc_html__('Not uploaded to the cloud', 'wpcloudplugins').': '.$ex->getMessage();\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Not uploaded to the cloud on line %s: %s', __LINE__, $ex->getMessage()));\n\n exit();\n }\n\n // Create a media file upload to represent our upload process.\n $media = new \\UYDGoogle_Http_MediaFileUpload(\n $this->get_app()->get_client(),\n $request,\n $file->type,\n null,\n true,\n $chunkSizeBytes\n );\n\n $filesize = filesize($file->tmp_path);\n $media->setFileSize($filesize);\n\n /* Start partialy upload\n Upload the various chunks. $status will be false until the process is\n complete. */\n try {\n $upload_status = false;\n $bytesup = 0;\n $handle = fopen($file->tmp_path, 'rb');\n while (!$upload_status && !feof($handle)) {\n @set_time_limit(60);\n $chunk = fread($handle, $chunkSizeBytes);\n $upload_status = $media->nextChunk($chunk);\n $bytesup += $chunkSizeBytes;\n\n // Update progress\n // Update the progress\n $status = [\n 'bytes_up_so_far' => $bytesup,\n 'total_bytes_up_expected' => $file->size,\n 'percentage' => (round(($bytesup / $file->size) * 100)),\n 'progress' => 'uploading-to-cloud',\n ];\n\n $current = self::get_upload_progress($file->hash);\n $current['status'] = $status;\n self::set_upload_progress($file->hash, $current);\n }\n\n fclose($handle);\n } catch (\\Exception $ex) {\n $file->error = esc_html__('Not uploaded to the cloud', 'wpcloudplugins').': '.$ex->getMessage();\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Not uploaded to the cloud on line %s: %s', __LINE__, $ex->getMessage()));\n\n exit();\n }\n\n $this->get_app()->get_client()->setDefer(false);\n\n if (empty($upload_status)) {\n $file->error = esc_html__('Not uploaded to the cloud', 'wpcloudplugins');\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-failed';\n self::set_upload_progress($file->hash, $return);\n echo json_encode($return);\n\n error_log('[WP Cloud Plugin message]: '.sprintf('Not uploaded to the cloud'));\n\n exit();\n }\n\n // check if uploaded file has size\n usleep(500000); // wait a 0.5 sec so Google can create a thumbnail.\n $api_entry = $this->get_app()->get_drive()->files->get($upload_status->getId(), ['fields' => $this->get_client()->apifilefields, 'supportsAllDrives' => true]);\n\n if ((0 === $api_entry->getSize()) && (false === strpos($api_entry->getMimetype(), 'google-apps'))) {\n $deletedentry = $this->get_app()->get_drive()->files->delete($api_entry->getId(), ['supportsAllDrives' => true]);\n $file->error = esc_html__('Not succesfully uploaded to the cloud', 'wpcloudplugins');\n $return['status']['progress'] = 'upload-failed';\n\n return;\n }\n\n // Add new file to our Cache\n $entry = new Entry($api_entry);\n $cachedentry = $this->get_processor()->get_cache()->add_to_cache($entry);\n $file->completepath = $cachedentry->get_path($this->get_processor()->get_root_folder());\n $file->account_id = $this->get_processor()->get_current_account()->get_id();\n $file->fileid = $cachedentry->get_id();\n $file->filesize = Helpers::bytes_to_size_1024($file->size);\n $file->link = urlencode($cachedentry->get_entry()->get_preview_link());\n $file->folderurl = false;\n\n $folderurl = $cachedentry->get_parent()->get_entry()->get_preview_link();\n $file->folderurl = urlencode($folderurl);\n }\n\n $return['file'] = $file;\n $return['status']['progress'] = 'upload-finished';\n $return['status']['percentage'] = '100';\n self::set_upload_progress($file->hash, $return);\n\n // Create response\n echo json_encode($return);\n\n exit();\n }", "public function formUpload(Request $request){\n $response = $request->user()->authorizeRoles(['user', 'admin']);\n if($response) {\n if ($request->isMethod('post')) {\n return view('elements/formularios/formUpload')->with(array(\n 'filesPermited' => $request->filesPermited,\n 'nameUpload' => $request->nameUpload,\n 'numberFiles' => $request->numberFiles\n ));\n }\n }\n return view('errors/permission');\n }", "public function testAddFieldVisualisationFile() {\n $new_field_label = 'Testing visualisation file field';\n $new_field_name = 'testing_vis_file_field';\n $storage_type = 'dvf_file';\n\n $this->addNewFieldToPage($new_field_label, $new_field_name, $storage_type);\n }", "public function upload()\n {\n if (null === $this->file) {\n return;\n }\n\n // use the original file name here but you should\n // sanitize it at least to avoid any security issues\n\n // move takes the target directory and then the\n // target filename to move to\n $this->file->move(\n $this->getUploadRootDir(),\n $this->id . '.' .$this->ext\n );\n\n // set the ext property to the filename where you've saved the file\n //$this->ext = $this->file->getClientOriginalName();\n\n // clean up the file property as you won't need it anymore\n $this->file = null;\n }", "function upload_form ($folder_id) {\n\t\t$txt_file = __ ( 'File' ) ;\n\t\t$txt_desc = __ ( 'The file that should be uploaded' ) ;\n\t\t$txt_save = __ ( \"Upload\" ) ;\n\t\t$action\t= admin::get_callback(array('files', 'admin_files'), array(\n\t\t\t'folder' => $folder_id,\n\t\t\t'mode' => 'save'\n\t\t));\n\t\t$content = <<<CONTENT\n\t\t <form enctype=\"multipart/form-data\" action=\"$action\" class=\"upload\" method=\"post\">\n\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\t<td width=\"70%\">\n\t\t\t\t\t\t<strong>$txt_file</strong><br />\n\t\t\t\t\t\t$txt_desc\n\t\t\t\t\t</td>\n\t\t\t\t\t\n\t\t\t\t\t<td width=\"30%\">\n\t\t\t\t\t\t<input name=\"file\" id=\"file\" type=\"file\" />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t<input type=\"submit\" value=\"$txt_save\" />\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</form>\nCONTENT;\n\t\techo $content ;\n\t\treturn ;\n\t}", "public function authorize()\n {\n return true;//everybody can upload a file\n }", "public function uploadAction($file) {\n\t\t\n\t\t$renderPartial = $this->request->hasArgument('renderPartial') ? $this->request->getArgument('renderPartial') : '';\n\t\t$mode = $this->request->hasArgument('mode') ? $this->request->getArgument('mode') : '';\n\t\t$filetype = $this->request->hasArgument('filetype') ? $this->request->getArgument('filetype') : 'file';\n\t\tif ($filetype == 'pdf') {\n\t\t\tif ($file->getOriginalResource()->getFileextension() !== 'pdf') {\n\t\t\t\t$this->forward('new', NULL, NULL, array('file' => $file,'mode'=>$mode,'renderPartial'=>$renderPartial, 'filetype' => $filetype));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($this->persistenceManager->isNewObject($file)) {\n\t\t\t$this->fileResourceRepository->add($file);\n\t\t} else {\n\t\t\t$this->fileResourceRepository->update($file);\n\t\t}\n\t\t\n\t\t$this->forward('edit', NULL, NULL, array('file' => $file,'mode'=>$mode,'renderPartial'=>$renderPartial, 'filetype' => $filetype));\n\t}", "public function xuploadedfiles() {\n\t\t\n\t\t/* Load Model */\n\t\t$files = $this->getModel ( 'file' );\n\t\t\n\t\t/* Get all rows */\n\t\t$files->getAll ( $this->_getFormId () );\n\t\t\n\t\t/* set the view file (optional) */\n\t\t$this->setView ( 'uploadedfiles' );\n\t\t\n\t\t/* set last view into session */\n\t\t$this->session->returnto ( $this->getView () );\n\t}", "public function fileinput(){\n $this->load->view('admin/fileinput');\n }", "public function getAction(): string\n {\n return 'file/upload';\n }", "public function can_manage_files() {\n return true;\n }", "public function index()\n {\n return view('files.upload')->render();\n }", "public function testFileUpload() {\n $user1 = $this->drupalCreateUser([\n 'access content',\n \"create $this->referencingType content\",\n ]);\n $this->drupalLogin($user1);\n\n $test_file = current($this->getTestFiles('text'));\n $edit['files[file_field_0]'] = \\Drupal::service('file_system')->realpath($test_file->uri);\n $this->drupalGet('node/add/' . $this->referencingType);\n $this->submitForm($edit, 'Upload');\n $this->assertSession()->statusCodeEquals(200);\n $edit = [\n 'title[0][value]' => $this->randomMachineName(),\n 'test_field[0][target_id]' => $this->nodeId,\n ];\n $this->submitForm($edit, 'Save');\n $this->assertSession()->statusCodeEquals(200);\n }", "public function create()\n {\n //加载文件上传模板\n return view(\"Admin.Req.files\");\n }", "protected function printUploadInput()\n {\n $accepts = \"\";\n\n if (sizeof($this->filters) > 0) {\n $accepts = \" accept=\\\"\" . implode(\",\", $this->filters) . \"\\\"\";\n }\n\n ?>\n <input type=\"file\" name=\"<?= $this->getIndexedPresenterPath(); ?>\" id=\"<?= $this->getIndexedPresenterPath(); ?>\"\n presenter-name=\"<?= $this->presenterName ?>\"<?= $accepts . $this->getHtmlAttributeTags() . $this->getClassTag() ?>/>\n <?php\n }", "public function upload()\n {\n $path = $this->file_path;\n if (!file_exists($path)) {\n mkdir($path, 0777, true);\n }\n\n // Upload file. \n $file_name = strtolower(basename($_FILES['uploaded_file']['name']));\n $file_name = str_replace(' ', '-', $file_name); // Replace spaces with dashes.\n $path = $path . $file_name;\n\n $acceptable = array(\n 'image/jpeg',\n 'image/jpg',\n 'image/gif',\n 'image/png'\n );\n\n if(in_array($_FILES['uploaded_file']['type'], $acceptable)) {\n\n if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $path)) {\n\n $file_msg = 'The file '. $path . ' has been uploaded';\n \n // Not ideal but good for now\n \n // Refresh parent on upload.\n echo \"<script>window.parent.location.reload(true);</script>\";\n\n } else {\n\n $file_msg = 'There was a problem with the upload.';\n }\n }\n else {\n\n $file_msg = 'Bad file uploaded.';\n }\n return $file_msg;\n }", "function showUploadPhoto() {\n\t\t$this->setCacheLevelNone();\n\t\t$event = $this->getModel()->getEvent();\n\t\t$source = $this->getModel()->getSource();\n\t\t\n\t\tif ( $event->getID() == $source->getEventID() ) {\n\t\t\t$this->getEngine()->assign('event', utilityOutputWrapper::wrap($event));\n\t\t\t$this->getEngine()->assign('source', utilityOutputWrapper::wrap($source));\n\n\t\t\t$this->addJavascriptResource(new mvcViewJavascript('multifile', mvcViewJavascript::TYPE_FILE, '/libraries/mofilm/jquery.MultiFile.js'));\n\t\t\t$this->addJavascriptResource(new mvcViewJavascript('photoupload', mvcViewJavascript::TYPE_FILE, '/libraries/mofilm/mofilmphotoupload.js'));\n\t\t\t$this->addJavascriptResource(new mvcViewJavascript('blockui', mvcViewJavascript::TYPE_FILE, '/libraries/mofilm/jquery.blockUI.js'));\n\t\t\t$this->getEngine()->assign('error', FALSE);\n\t\t} else {\n\t\t\t$this->getEngine()->assign('error', TRUE);\n\t\t}\n\t\t\n\t\t$this->render($this->getTpl('uploadPhoto', '/account'));\n\t}", "function photo_reference_import_add_form() {\r\n \r\n global $base_url;\r\n $languageArray = get_languages();\r\n \r\n $adminRenamePath = ((variable_get('rename_admin_path') != NULL) ? variable_get('rename_admin_path_value') : 'admin');\r\n\r\n $form = array('#attributes' => array('enctype' => \"multipart/form-data\", \"class\" => \"ghpForm\"));\r\n\r\n $form['photo_reference_csv'] = array(\r\n '#type' => 'file',\r\n '#title' => t('Upload Photo Other Reference: <span title=\"This field is required.\" class=\"form-required\">*</span>'),\r\n '#description' => t('Allowed file .csv only.').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"'.$base_url.'/'.$adminRenamePath.'/download_sample_csv/photo_reference_content_import\">Download Sample CSV</a>',\r\n '#size' => 20,\r\n );\r\n\r\n $form['submit'] = array('#type' => 'submit',\r\n '#value' => t('Save'),\r\n );\r\n return $form;\r\n}", "public function registerClientScript()\n {\n $view = $this->getView();\n\n if ($this->plus) {\n FileUploadPlusAsset::register($view);\n } else {\n FileUploadAsset::register($view);\n }\n\n $options = Json::encode($this->clientOptions);\n $id = $this->options['id'];\n\n $js[] = \";jQuery('#$id').fileupload($options);\";\n if (!empty($this->clientEvents)) {\n foreach ($this->clientEvents as $event => $handler) {\n $js[] = \"jQuery('#$id').on('$event', $handler);\";\n }\n }\n $view->registerJs(implode(\"\\n\", $js));\n }", "function newPlatformForm()\n{\n echo '<form action=\"./platform.php?action=add\" method=\"post\" enctype=\"multipart/form-data\" id=\"editForm\">\n <label>Platform Name :</label><input type=\"text\" name=\"name\" /><br />\n <label>Platform Icon :</label><input type=\"file\" value=\"upload\" name=\"icon\" /><br />\n <input type=\"submit\" name=\"submit\" value=\"submit\" />\n </form>';\n}", "public function upload()\n {\n $callback = 'null';\n $url = '';\n $get = array();\n \n // for form action, pull CKEditorFuncNum from GET string. e.g., 4 from\n // /form/upload?CKEditor=content&CKEditorFuncNum=4&langCode=en\n // Convert GET parameters to PHP variables\n $qry = $_SERVER['REQUEST_URI'];\n parse_str(substr($qry, strpos($qry, '?') + 1), $get);\n \n if (!isset($_POST) || !isset($get['CKEditorFuncNum'])) {\n $msg = 'CKEditor instance not defined. Cannot upload image.';\n } else {\n $callback = $get['CKEditorFuncNum'];\n \n try {\n $url = $this->_move_image($_FILES['upload']);\n $msg = \"File uploaded successfully to: {$url}\";\n \n // Persist additions to file manager CMS here.\n \n } catch (Exception $e) {\n $url = '';\n $msg = $e->getMessage();\n }\n }\n \n // Callback function that will insert image into the correct CKEditor instance\n $output = '<html><body><script type=\"text/javascript\">' .\n 'window.parent.CKEDITOR.tools.callFunction(' .\n $callback .\n ', \"' .\n $url .\n '\", \"' .\n $msg .\n '\");</script></body></html>';\n \n echo $output;\n }", "function setTypeAsUploadFile($showExistingFile = false, $validIfValue = false) \n\t{\n\t\t$this->showExistingFile = $showExistingFile;\t\t\n\t\t$this->validIfValue \t= $validIfValue;\n\t\t$this->type \t\t\t= \"uploadfile\";\n\t}" ]
[ "0.6936367", "0.67394733", "0.66048294", "0.65882486", "0.6426651", "0.6406239", "0.6398911", "0.6394184", "0.6365227", "0.6350249", "0.6342652", "0.63355553", "0.63181186", "0.628697", "0.62754506", "0.6189443", "0.6189443", "0.6188568", "0.6188568", "0.6188568", "0.6188568", "0.6188568", "0.6188568", "0.618522", "0.6153477", "0.609441", "0.6090475", "0.6065882", "0.60585606", "0.6049876", "0.604792", "0.6034728", "0.601961", "0.60150146", "0.59990525", "0.59938145", "0.5984284", "0.5969255", "0.59635526", "0.59621865", "0.5961487", "0.5942848", "0.5920348", "0.5915839", "0.59057957", "0.5901014", "0.58960587", "0.5892889", "0.5871866", "0.5851275", "0.58453506", "0.583977", "0.5838729", "0.5827409", "0.5826045", "0.582013", "0.5819255", "0.57969564", "0.57959366", "0.5795414", "0.5793464", "0.5793462", "0.5789646", "0.57819796", "0.577865", "0.577494", "0.5774764", "0.5774764", "0.5773777", "0.5763087", "0.5760057", "0.5757168", "0.5757168", "0.5753119", "0.5718868", "0.571231", "0.5710059", "0.5702496", "0.5693839", "0.5689826", "0.56896925", "0.5680834", "0.5680059", "0.56765556", "0.5667287", "0.56561774", "0.5652413", "0.5646578", "0.5635028", "0.56327623", "0.5631778", "0.5627138", "0.5626204", "0.56249", "0.56211483", "0.56121624", "0.561131", "0.5609712", "0.56046784", "0.5604419", "0.5602181" ]
0.0
-1
Adds hidden form control used to store a nondisplayed value.
public function addHidden($name, $value = NULL) { return $this[$name] = new HiddenField($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHidden($value = TRUE);", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHiddenField($name,$value) {\n $this->formLines[] = '<input type=\"hidden\" name=\"'.$name.'\" value=\"'.$value.'\">';\n }", "function form_element_hidden( $name, $value )\n{\n\treturn sprintf( \"<input type=\\\"hidden\\\" name=\\\"%s\\\" value=\\\"%s\\\" />\\n\",\n\t\t$name, $value );\n}", "function render_element_hidden() {\n\t\t\t$inputString = '<INPUT ';\n\t\t\t$inputString .= 'TYPE=\"hidden\" ';\n\t\t\t$inputString .= 'NAME=\"' . $this->name . '\" ';\n\t\t\t$inputString .= 'VALUE=\"' . $this->currentValue . '\" ';\n\t\t\t$inputString .= $this->internalExtra;\n\t\t\t$inputString .= '>';\n\t\t\t\n\t\t\treturn $this->returnSwitch($inputString);\n\t\t}", "public function setHidden(){\n $this->_hidden = true;\n }", "function mihidden($name, $value = null) {\n\tif ($value === null) {\n\t\treturn \"<input type=\\\"hidden\\\" name=\\\"$name\\\" value=\\\"[{\" . $name . \"}]\\\" />\";\n\t} else {\n\t\treturn \"<input type=\\\"hidden\\\" name=\\\"$name\\\" value=\\\"$value\\\" />\";\n\t}\n}", "protected function addHiddenField(Form $form, $name, $value)\n {\n $form->add(\n array(\n 'name' => $name,\n 'type' => 'Zend\\Form\\Element\\Hidden',\n 'attributes' => array(\n 'value' => $value\n )\n )\n );\n }", "public static function hiddenField($name,$value='',$option=array()) {\n\t\t$option['name']=$name;\n\t\t$option['type']='hidden';\n\t\t$option['value']=$value;\n\t return self::htmltag('input',$option);\n\t}", "function _field_hidden($fval) \n {\n\n $myval = (empty($fval) && !empty($this->opts))? $this->opts : $fval;\n\n return sprintf(\"<input type=\\\"hidden\\\" name=\\\"%s\\\" id=\\\"%s\\\" class=\\\"%s\\\" value=\\\"%s\\\" />\",\n $this->fname,\n $this->fname,\n (!empty($this->attribs['class']))? $this->attribs['class'] : '',\n $this->_htmlentities($myval)\n ) ;\n }", "function addHiddenField( &$editpage, &$output ) {\r\n\t\t\r\n\t\t$output->addHTML(\tHtml::input( 'egHidden', '', 'hidden', array(\r\n\t\t\t\t\t\t\t\t'id' => 'egHidden'\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "function createHiddenField( $name, $value = '' ) {\n\t\t$nameAttr = $this->makePiVar(htmlspecialchars($name));\n\t\treturn '<input type=\"hidden\" name=\"' . $nameAttr . '\" value=\"' . $value . '\" />';\n\t}", "public function hidden(string $name, string $value): FormHelper\n {\n $this->html .= \"<input type=\\\"hidden\\\" name=\\\"${name}\\\" value=\\\"${value}\\\">\";\n return $this;\n }", "protected function renderHiddenFieldForEmptyValue() {}", "public function setHiddenFlag($hidden = true) {}", "protected function printHiddenFormField($nameField, $value){\n ?>\n <input type=\"hidden\" name=\"<?php echo $nameField ?>\" value=\"<?php echo $value ?>\" />\n <?php\n }", "public function setHidden($value)\n {\n return $this->set('Hidden', $value);\n }", "function form_hidden($field, $options) {\n $defaults = array(\n 'class' => array('input', 'hidden'),\n );\n\n $options = array_merge($defaults, $options);\n\n $field = strtolower($field);\n\n $output = '<input type=\"hidden\" name=\"' . $field . '\" id=\"' . form__field_id($field) . '\"';\n\n if(!empty($_POST[$field])) {\n $output .= ' value=\"'. $_POST[$field] . '\"';\n }\n\n $output .= ' />';\n\n return html__output($output);\n}", "public function ov_hidden($name, $value = '', $id = null){\n $hidden = new fe_hidden(array('name' => $name, 'value' => $value));\n $hidden->setId($id);\n \n if( isset($this->openForm) && is_array($this->openForm) )\n $this->openForm['fields'][] = $hidden;\n \n if( !$this->echoOff ) echo $hidden;\n return $hidden;\n }", "function _getHiddenField( $name, $value, $id )\r\n\t{\r\n\t\treturn \"<input class='fabrikinput inputbox' type='hidden' name='$name' value='$value' id='$id' />\\n\";\r\n\t}", "public function withHidden($hidden=true);", "function setTypeAsHidden() {\n\t\t$this->type = \"hidden\";\n\t}", "public function hidden($options = []){\n\t\t$this->elements['label'] = false;\n\t\t$this->elements['error'] = false;\n\t\t$this->elements['wrap'] = false;\n\t\t// Set default attributes.\n\t\tHtml::setAttribute($options, ['id' => $this->name]);\n\t\t// Create and store the element.\n\t\t$this->elements['control'] = Html::input(\n\t\t\t'hidden',\n\t\t\t$this->name,\n\t\t\tHtml::selectAttribute('value', $options, $this->model->{$this->name}),\n\t\t\t$options\n\t\t);\n\t\t// Return object to method chain.\n\t\treturn $this;\n\t}", "private static function _fetchHiddenField($value, $name){\r\n return '<input type=\"hidden\" id=\"'.$name.'\" name=\"'.$name.'\" value=\"'.$value.'\" />';\r\n }", "function INPUThid($champs,$valeur)\n{ // Gestion des INPUT HIDDEN\n html('<input type=\"hidden\" name=\"'.$champs.'\" value=\"'.$valeur.'\">');\n}", "public function hidden($element) {\n $element['#type'] = 'hidden';\n $element = $this->_setRender($element);\n $output = '<input type=\"hidden\" id=\"' . $element['#id'] . '\" name=\"'\n . $element['#name'] . '\" value=\"';\n $output .= isset($element['#value']) ? $element['#value'] : 1;\n $output .= '\"' . $element['_attributes_string'] . $this->_getDataWptId($element) . ' />';\n return $output;\n }", "protected function addSecuredHiddenFieldsRenderedToViewHelperVariableContainer() {}", "static public function hidden($name, $value = \"\", $attrib = \"\")\n {\n return \"<input type='hidden' name='$name' id='$name' value='$value' $attrib />\\n\";\n }", "static public function asHidden( $aName, $aValue )\n\t{\n\t\treturn self::withNameAndType( $aName, self::INPUT_TYPE_HIDDEN )\n\t\t\t\t->setValue($aValue);\n\t}", "function form_hidden($name, $value='', $arrayto='', $override = NULL) {\n\n\tif ($arrayto) {\n\t\t$name = $arrayto . \"[\" . $name . \"]\";\n\t}\n\n\t$value = html_form_escape($value, $override);\n\n\treturn \"<input type=\\\"hidden\\\" name=\\\"$name\\\" id=\\\"$name\\\" value=\\\"$value\\\" />\\n\";\n}", "function block_editor_meta_box_hidden_fields()\n {\n }", "public function coconutHidden($name,$value) {\necho \"<input type=hidden name='$name' value='$value'>\";\n}", "function MakeInputRowHidden($id, $name, $title, $value)\n{\n echo <<<EOT\n<div class=\"form-group\" hidden>\n <label for=\"$id\">$title</label>\n <input id=\"$id\" type=\"text\" name=\"$name\" class=\"form-control\" value=\"$value\" novalidate>\n</div>\nEOT;\n}", "function hidden_field($object, $field, $options = array()) {\n $form = new FormHelper($object, $field);\n return $form->to_input_field_tag(\"hidden\", $options);\n}", "public function hidden($name, $value = NULL, array $attributes = NULL) {\n $this->load_values($name, $value, $attributes);\n\t\treturn Kohana_Form::hidden($name, $value, $attributes);\n\t}", "function barnelli_wp_hidden_input( $field ) {\n\tglobal $thepostid, $post;\n\n\t$thepostid = empty( $thepostid ) ? $post->ID : $thepostid;\n\t$field['value'] = isset( $field['value'] ) ? $field['value'] : get_post_meta( $thepostid, $field['id'], true );\n\t$field['class'] = isset( $field['class'] ) ? $field['class'] : '';\n\n\techo '<input type=\"hidden\" class=\"' . esc_attr( $field['class'] ) . '\" name=\"' . esc_attr( $field['id'] ) . '\" id=\"' . esc_attr( $field['id'] ) . '\" value=\"' . esc_attr( $field['value'] ) . '\" /> ';\n}", "public function setHidden($hidden) {\n\t\t$this->hidden = $hidden;\n\t}", "public function setHidden($hidden) {\n\t\t$this->hidden = $hidden;\n\t}", "public function hidden($name, $value = null, $options = array())\n {\n return $this->form->input('hidden', $name, $value, $options);\n }", "public function hidden ( \\r8\\Form\\Hidden $field )\n {\n $this->addField( \"hidden\", $field );\n }", "public static function form_field_hidden( $field, $key, $args, $value ) {\n\t\t$field .= '<input type=\"hidden\" class=\"input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '\" name=\"' . esc_attr( $key ) . '\" id=\"' . esc_attr( $args['id'] ) . '\" placeholder=\"' . esc_attr( $args['placeholder'] ) . '\" value=\"' . esc_attr( $value ) . '\" />';\n\n\t\treturn $field;\n\t}", "public function RenderHidden() {\n\n $List= $this->Hidden;\n $List['_FormName']= $this->Name;\n $Result= array();\n foreach($List as $k=>$v) {\n $Result[]= $this->RenderTag('input', array(\n 'type'=> 'hidden',\n 'name'=> $k,\n 'value'=> $v\n ));\n }\n return implode('', $Result);\n }", "public function hiddenTag($name = NULL, $value = NULL, $options = NULL)\n {\n return '<input type=\"hidden\" name=\"' . $name . '\" value=\"' . $value . '\" ' . $this->options2str($options) . '/>';\n }", "function ffw_port_hidden_callback( $args ) {\n global $ffw_port_settings;\n\n $hidden = isset($args['hidden']) ? $args['hidden'] : false;\n\n if ( isset( $ffw_port_settings[ $args['id'] ] ) )\n $value = $ffw_port_settings[ $args['id'] ];\n else\n $value = isset( $args['std'] ) ? $args['std'] : '';\n\n $size = ( isset( $args['size'] ) && ! is_null( $args['size'] ) ) ? $args['size'] : 'regular';\n $html = '<input type=\"hidden\" class=\"' . $size . '-text\" id=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\" name=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\" value=\"' . esc_attr( stripslashes( $value ) ) . '\"/>';\n $html .= '<label for=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\"> ' . $args['std'] . '</label>';\n\n echo $html;\n}", "public function hidden($name, $value = NULL, $attr = array())\n\t{\n\t\t$attr['type'] = 'hidden';\n\t\t\n\t\treturn $this->input($name, $value, $attr);\n\t}", "protected function setHideAmount()\n {\n \tif (isset($_POST['hide_amount']) && !empty($_POST['hide_amount'])) {\n \t\t$this->data['hide_amount'] = 1;\n \t} else {\n \t\t$this->data['hide_amount'] = 0;\n \t}\n }", "function hidden ($nomes = '') {\n\tglobal $resultado;\n\t$nomes = explode(', ', $nomes);\n\t\n\tforeach ($nomes as $valor) {\n\t\tif (isset($resultado['variables'][$valor])) {\n\t\t\t$hidden .= '<input type=\"hidden\" name=\"'.$valor.'\" value=\"'.$resultado['variables'][$valor].'\" />';\n\t\t}\n\t}\n\treturn $hidden;\n}", "function input_hidden($element_name, $value){\r\n\tprint '<input type=\"hidden\" name=\"'.$element_name.'\" value=\"'.htmlentities($value, ENT_NOQUOTES, 'UTF-8').'\">';\r\n}", "public static function hidden($name, $value = NULL, array $attributes = NULL)\n\t{\n\t\t$attributes['type'] = 'hidden';\n\n\t\treturn Form::input($name, $value, $attributes);\n\t}", "static function renderHiddenField($name, $value = null, $attributes = null)\n {\n if (!is_array($attributes)) $attributes = array();\n if (!isset($attributes['id'])) $attributes['id'] = $name;\n $attributes['type'] = 'hidden';\n $attributes['name'] = $name;\n $attributes['value'] = $value;\n self::renderSingleTag('input', $attributes);\n }", "function AttribHidden( $id, $value, $name, $site )\n\t{\n\t\tswitch ($site) \n\t\t{\n\t\t\tcase \"frontend\":\n\t\t\t\t$success = '<input type=\"hidden\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\t\t break;\n\t\t\tcase \"admin\": \n\t\t\tdefault:\t\n\t\t\t\t$success = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\t\t break;\t\n\t\t}\n\t\t\t\n\t\treturn $success;\n\t}", "public function print_value_input(){\n return false;\n ?>\n <input\n class=\"<?php echo RB_Field_Factory::get_input_class_link(); ?>\"\n rb-control-final-value\n name=\"<?php echo $this->id; ?>\"\n value=\"<?php echo $this->value; ?>\"\n type=\"hidden\"></input>\n <?php\n }", "function hidden() {\n\t\t$args = func_get_args();\n\n\t\twhile (list($name,$val) = each($args[0]))\n\t\t\t$this->buffer .= \"<input type=\\\"hidden\\\" name=\\\"$name\\\" value=\\\"$val\\\" id=\\\"$name\\\" />\";\n\n\t\treturn $this->output();\n\t}", "private function _createHiddenIdField()\n {\n $idField = new Zend_Form_Element_Hidden('id');\n $idField->removeDecorator('DtDdWrapper')\n ->removeDecorator('HtmlTag')\n ->removeDecorator('Label');\n\n return $idField;\n }", "function hidden()\n{\n if(last(request()->segments()) === 'show')\n {\n // if yes, add the style to hide the control\n return \"style=\\\"display:none\\\"\";\n }\n}", "protected function renderHiddenInput()\n {\n $options = $this->hiddenInputOptions;\n if (!isset($options['name'])) {\n $options['name'] = Html::getInputName($this->model, $this->attribute);\n }\n if (!isset($options['value'])) {\n $options['value'] = $this->_context()->postParamStoragePrefix . $this->_file()->getData();\n }\n return Html::activeHiddenInput($this->model, $this->attribute, $options);\n }", "function hidden( $element )\n\t\t{\t\t\t\n\t\t\t$output = '<div class=\"ace_section ace_hidden\"><input type=\"hidden\" value=\"'.$element['std'].'\" id=\"'.$element['id'].'\" name=\"'.$element['id'].'\"/></div>';\n\t\t\treturn $output;\n\t\t}", "public function hidden ($name, $value, $opts=[])\n {\n $input = new \\SimpleXMLElement('<input/>');\n $input->addAttribute('type', 'hidden');\n $input->addAttribute('id', $name);\n $input->addAttribute('name', $name);\n $input->addAttribute('value', $value);\n return $this->return_value($input, $opts);\n }", "function jabHtmlHidden($name, $value)\n{\n\t$value=htmlspecialchars($value);\n\techo \"<input type=\\\"hidden\\\" id=\\\"$name\\\" name=\\\"$name\\\" value=\\\"$value\\\">\\n\";\n}", "public function hidden($attribute, $value=null, $options = [])\n {\n $options = static::defaults($options);\n return $this->addSingleField(\n $attribute,\n $options[self::OPTIONS_VALIDATION],\n Widget::getHiddenWidget($attribute, $value, $options)\n );\n }", "public static function hidden_field_tag($name, $value = null, $html_attributes = array())\n {\n return self::text_field_tag($name, $value, array_merge(array('type' => 'hidden'), $html_attributes));\n }", "function format_input_hidden($p_id, $p_value){\n\treturn '<input type=\"hidden\" id=\"' . $p_id . '\" name=\"' . $p_id . '\" value=\"' . $p_value . '\"/>';\n}", "protected function generateHidden($options, $currentValue)\n {\n $value = is_null($currentValue) ? $options['value'] : $currentValue;\n\n unset($options[\"id\"]);\n unset($options[\"value\"]);\n\n if (!array_key_exists(\"type\", $options)) {\n $options[\"type\"] = \"hidden\";\n }\n\n if (is_array($value)) {\n $returnHtml = \"\";\n foreach ($value as $key => $val) {\n $returnHtml .= sprintf('<input %s value=\"%s\">', $this->arrayToHtmlAttributes($options), $val);\n }\n return $returnHtml;\n } else {\n return sprintf('<input %s value=\"%s\">', $this->arrayToHtmlAttributes($options), $value);\n }\n }", "public static function inputHidden($model,$attribute,$properties=array()) {\n return self::inputTag('hidden', $model, $attribute,$properties); \n }", "function testHiddenCanUnsecureTheValue() {\n\t\tMock::generatePartial('FormHelper', 'MockFormHelperSecure', array('__secure'));\n\t\t$this->helper->Form = new MockFormHelperSecure();\n\n\t\t$this->helper->hidden('Test.foo', array('secureValue'));\n\t\t$this->helper->Form->expectOnce('__secure', array());\n\t}", "public function getHidden(){\n return $this->_hidden;\n }", "public function isHidden() {\n return false;\n }", "function InputHiddenBox($VariableName,$default)\t{\n\t\t\t$res=\"\";\n\t\t\t$res.=\"<input type=\\\"hidden\\\" name=\\\"$VariableName\\\" id=\\\"$VariableName\\\" value=\\\"$default\\\">\";\n\t\t\treturn $res;\n\t}", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "function zen_draw_hidden_field($name, $value = '', $parameters = '') {\n $field = '<input type=\"hidden\" name=\"' . zen_sanitize_string(zen_output_string($name)) . '\"';\n\n if (zen_not_null($value)) {\n $field .= ' value=\"' . zen_output_string($value) . '\"';\n } elseif (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) {\n $field .= ' value=\"' . zen_output_string(stripslashes($GLOBALS[$name])) . '\"';\n }\n\n if (zen_not_null($parameters)) $field .= ' ' . $parameters;\n\n $field .= ' />';\n\n return $field;\n }", "public function isHidden() {\r\n return false;\r\n }", "public function isHidden() {\r\n return false;\r\n }", "function hideField($fieldName){\n\n\t\t$this->hidden[$fieldName] = \"hide\";\n\n\t}", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "function hide($record=\"\")\n {\n $languages = $this->getLanguages();\n /* hidden values */\n for ($i = 0; $i < sizeof($languages); $i++)\n {\n $result .= '<input type=\"hidden\" name=\"'.$this->formName().'['.$languages[$i].']\"'.\n ' value=\"'.htmlspecialchars($record[$this->fieldName()][$languages[$i]]).'\">';\n }\n return $result;\n }", "protected function removeSecuredHiddenFieldsRenderedFromViewHelperVariableContainer() {}", "private function renderHidden($def)\n {\n $def = implode(' ', $def);\n\n $tpl = \"<input type='hidden' ng-model='record.{$this->name}' $def />\";\n\n return $tpl;\n }", "public function getHiddenFlag() {}", "public function elementHidden($binding, $value)\n {\n $block = new Block();\n $baseId = $binding->getId();\n $nameOnForm = $binding->getNameOnForm(true);\n $attrs = new Attributes('type', 'hidden');\n if ($binding instanceof \\Abivia\\NextForm\\Form\\Binding\\FieldBinding) {\n $attrs->setIfNotNull(\n '*data-nf-sidecar',\n $binding->getDataProperty()->getPopulation()->sidecar\n );\n }\n if (\\is_array($value)) {\n $optId = 0;\n foreach ($value as $key => $entry) {\n $attrs->set('id', $baseId . '_opt' . $optId);\n ++$optId;\n $attrs->set('name', $nameOnForm . '[' . \\htmlspecialchars($key) . ']');\n $attrs->set('value', $entry);\n $block->body .= static::writeTag('input', $attrs) . \"\\n\";\n }\n } else {\n $attrs->set('id', $baseId);\n $attrs->set('name', $nameOnForm);\n $attrs->setIfNotNull('value', $value);\n $block->body .= static::writeTag('input', $attrs) . \"\\n\";\n }\n return $block;\n }" ]
[ "0.7301332", "0.7145171", "0.7145171", "0.7079056", "0.6877635", "0.68513304", "0.6792379", "0.67562985", "0.67296726", "0.6680702", "0.6680008", "0.6629704", "0.6618299", "0.660649", "0.6576404", "0.65714693", "0.6538914", "0.6536696", "0.6470416", "0.64232326", "0.638504", "0.63638717", "0.6353812", "0.6338764", "0.6333318", "0.6293865", "0.6249165", "0.62267864", "0.6219898", "0.6189794", "0.6184367", "0.6163017", "0.61594456", "0.61586463", "0.61365646", "0.61363006", "0.61333907", "0.61332697", "0.61332697", "0.6130202", "0.6126203", "0.61246437", "0.61042917", "0.6098889", "0.60790783", "0.6074607", "0.6066567", "0.6038113", "0.6034853", "0.60344815", "0.60310596", "0.60127276", "0.6002275", "0.5994504", "0.59699464", "0.59684175", "0.59683627", "0.5963477", "0.5961098", "0.59493655", "0.5938256", "0.59284085", "0.592687", "0.5904925", "0.5903173", "0.5887728", "0.5883376", "0.58521366", "0.58432215", "0.5828969", "0.58236337", "0.58236337", "0.58236337", "0.5822685", "0.5820006", "0.5820006", "0.5818836", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.579699", "0.5785753", "0.5784696", "0.57687384", "0.5767819", "0.5756189" ]
0.6719676
9
Adds hidden form control used to store a nondisplayed value.
public function addValue($name, $value) { return $this[$name] = new ValueField($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHidden($value = TRUE);", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHiddenField($name,$value) {\n $this->formLines[] = '<input type=\"hidden\" name=\"'.$name.'\" value=\"'.$value.'\">';\n }", "function form_element_hidden( $name, $value )\n{\n\treturn sprintf( \"<input type=\\\"hidden\\\" name=\\\"%s\\\" value=\\\"%s\\\" />\\n\",\n\t\t$name, $value );\n}", "function render_element_hidden() {\n\t\t\t$inputString = '<INPUT ';\n\t\t\t$inputString .= 'TYPE=\"hidden\" ';\n\t\t\t$inputString .= 'NAME=\"' . $this->name . '\" ';\n\t\t\t$inputString .= 'VALUE=\"' . $this->currentValue . '\" ';\n\t\t\t$inputString .= $this->internalExtra;\n\t\t\t$inputString .= '>';\n\t\t\t\n\t\t\treturn $this->returnSwitch($inputString);\n\t\t}", "public function setHidden(){\n $this->_hidden = true;\n }", "function mihidden($name, $value = null) {\n\tif ($value === null) {\n\t\treturn \"<input type=\\\"hidden\\\" name=\\\"$name\\\" value=\\\"[{\" . $name . \"}]\\\" />\";\n\t} else {\n\t\treturn \"<input type=\\\"hidden\\\" name=\\\"$name\\\" value=\\\"$value\\\" />\";\n\t}\n}", "protected function addHiddenField(Form $form, $name, $value)\n {\n $form->add(\n array(\n 'name' => $name,\n 'type' => 'Zend\\Form\\Element\\Hidden',\n 'attributes' => array(\n 'value' => $value\n )\n )\n );\n }", "public function addHidden($name, $value = NULL)\n\t{\n\t\treturn $this[$name] = new HiddenField($value);\n\t}", "function _field_hidden($fval) \n {\n\n $myval = (empty($fval) && !empty($this->opts))? $this->opts : $fval;\n\n return sprintf(\"<input type=\\\"hidden\\\" name=\\\"%s\\\" id=\\\"%s\\\" class=\\\"%s\\\" value=\\\"%s\\\" />\",\n $this->fname,\n $this->fname,\n (!empty($this->attribs['class']))? $this->attribs['class'] : '',\n $this->_htmlentities($myval)\n ) ;\n }", "public static function hiddenField($name,$value='',$option=array()) {\n\t\t$option['name']=$name;\n\t\t$option['type']='hidden';\n\t\t$option['value']=$value;\n\t return self::htmltag('input',$option);\n\t}", "function addHiddenField( &$editpage, &$output ) {\r\n\t\t\r\n\t\t$output->addHTML(\tHtml::input( 'egHidden', '', 'hidden', array(\r\n\t\t\t\t\t\t\t\t'id' => 'egHidden'\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "function createHiddenField( $name, $value = '' ) {\n\t\t$nameAttr = $this->makePiVar(htmlspecialchars($name));\n\t\treturn '<input type=\"hidden\" name=\"' . $nameAttr . '\" value=\"' . $value . '\" />';\n\t}", "public function hidden(string $name, string $value): FormHelper\n {\n $this->html .= \"<input type=\\\"hidden\\\" name=\\\"${name}\\\" value=\\\"${value}\\\">\";\n return $this;\n }", "protected function renderHiddenFieldForEmptyValue() {}", "public function setHiddenFlag($hidden = true) {}", "protected function printHiddenFormField($nameField, $value){\n ?>\n <input type=\"hidden\" name=\"<?php echo $nameField ?>\" value=\"<?php echo $value ?>\" />\n <?php\n }", "public function setHidden($value)\n {\n return $this->set('Hidden', $value);\n }", "function form_hidden($field, $options) {\n $defaults = array(\n 'class' => array('input', 'hidden'),\n );\n\n $options = array_merge($defaults, $options);\n\n $field = strtolower($field);\n\n $output = '<input type=\"hidden\" name=\"' . $field . '\" id=\"' . form__field_id($field) . '\"';\n\n if(!empty($_POST[$field])) {\n $output .= ' value=\"'. $_POST[$field] . '\"';\n }\n\n $output .= ' />';\n\n return html__output($output);\n}", "public function ov_hidden($name, $value = '', $id = null){\n $hidden = new fe_hidden(array('name' => $name, 'value' => $value));\n $hidden->setId($id);\n \n if( isset($this->openForm) && is_array($this->openForm) )\n $this->openForm['fields'][] = $hidden;\n \n if( !$this->echoOff ) echo $hidden;\n return $hidden;\n }", "function _getHiddenField( $name, $value, $id )\r\n\t{\r\n\t\treturn \"<input class='fabrikinput inputbox' type='hidden' name='$name' value='$value' id='$id' />\\n\";\r\n\t}", "public function withHidden($hidden=true);", "function setTypeAsHidden() {\n\t\t$this->type = \"hidden\";\n\t}", "public function hidden($options = []){\n\t\t$this->elements['label'] = false;\n\t\t$this->elements['error'] = false;\n\t\t$this->elements['wrap'] = false;\n\t\t// Set default attributes.\n\t\tHtml::setAttribute($options, ['id' => $this->name]);\n\t\t// Create and store the element.\n\t\t$this->elements['control'] = Html::input(\n\t\t\t'hidden',\n\t\t\t$this->name,\n\t\t\tHtml::selectAttribute('value', $options, $this->model->{$this->name}),\n\t\t\t$options\n\t\t);\n\t\t// Return object to method chain.\n\t\treturn $this;\n\t}", "private static function _fetchHiddenField($value, $name){\r\n return '<input type=\"hidden\" id=\"'.$name.'\" name=\"'.$name.'\" value=\"'.$value.'\" />';\r\n }", "function INPUThid($champs,$valeur)\n{ // Gestion des INPUT HIDDEN\n html('<input type=\"hidden\" name=\"'.$champs.'\" value=\"'.$valeur.'\">');\n}", "public function hidden($element) {\n $element['#type'] = 'hidden';\n $element = $this->_setRender($element);\n $output = '<input type=\"hidden\" id=\"' . $element['#id'] . '\" name=\"'\n . $element['#name'] . '\" value=\"';\n $output .= isset($element['#value']) ? $element['#value'] : 1;\n $output .= '\"' . $element['_attributes_string'] . $this->_getDataWptId($element) . ' />';\n return $output;\n }", "protected function addSecuredHiddenFieldsRenderedToViewHelperVariableContainer() {}", "static public function hidden($name, $value = \"\", $attrib = \"\")\n {\n return \"<input type='hidden' name='$name' id='$name' value='$value' $attrib />\\n\";\n }", "static public function asHidden( $aName, $aValue )\n\t{\n\t\treturn self::withNameAndType( $aName, self::INPUT_TYPE_HIDDEN )\n\t\t\t\t->setValue($aValue);\n\t}", "function form_hidden($name, $value='', $arrayto='', $override = NULL) {\n\n\tif ($arrayto) {\n\t\t$name = $arrayto . \"[\" . $name . \"]\";\n\t}\n\n\t$value = html_form_escape($value, $override);\n\n\treturn \"<input type=\\\"hidden\\\" name=\\\"$name\\\" id=\\\"$name\\\" value=\\\"$value\\\" />\\n\";\n}", "function block_editor_meta_box_hidden_fields()\n {\n }", "public function coconutHidden($name,$value) {\necho \"<input type=hidden name='$name' value='$value'>\";\n}", "function MakeInputRowHidden($id, $name, $title, $value)\n{\n echo <<<EOT\n<div class=\"form-group\" hidden>\n <label for=\"$id\">$title</label>\n <input id=\"$id\" type=\"text\" name=\"$name\" class=\"form-control\" value=\"$value\" novalidate>\n</div>\nEOT;\n}", "public function hidden($name, $value = NULL, array $attributes = NULL) {\n $this->load_values($name, $value, $attributes);\n\t\treturn Kohana_Form::hidden($name, $value, $attributes);\n\t}", "function hidden_field($object, $field, $options = array()) {\n $form = new FormHelper($object, $field);\n return $form->to_input_field_tag(\"hidden\", $options);\n}", "public function setHidden($hidden) {\n\t\t$this->hidden = $hidden;\n\t}", "public function setHidden($hidden) {\n\t\t$this->hidden = $hidden;\n\t}", "function barnelli_wp_hidden_input( $field ) {\n\tglobal $thepostid, $post;\n\n\t$thepostid = empty( $thepostid ) ? $post->ID : $thepostid;\n\t$field['value'] = isset( $field['value'] ) ? $field['value'] : get_post_meta( $thepostid, $field['id'], true );\n\t$field['class'] = isset( $field['class'] ) ? $field['class'] : '';\n\n\techo '<input type=\"hidden\" class=\"' . esc_attr( $field['class'] ) . '\" name=\"' . esc_attr( $field['id'] ) . '\" id=\"' . esc_attr( $field['id'] ) . '\" value=\"' . esc_attr( $field['value'] ) . '\" /> ';\n}", "public function hidden($name, $value = null, $options = array())\n {\n return $this->form->input('hidden', $name, $value, $options);\n }", "public function hidden ( \\r8\\Form\\Hidden $field )\n {\n $this->addField( \"hidden\", $field );\n }", "public static function form_field_hidden( $field, $key, $args, $value ) {\n\t\t$field .= '<input type=\"hidden\" class=\"input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '\" name=\"' . esc_attr( $key ) . '\" id=\"' . esc_attr( $args['id'] ) . '\" placeholder=\"' . esc_attr( $args['placeholder'] ) . '\" value=\"' . esc_attr( $value ) . '\" />';\n\n\t\treturn $field;\n\t}", "public function RenderHidden() {\n\n $List= $this->Hidden;\n $List['_FormName']= $this->Name;\n $Result= array();\n foreach($List as $k=>$v) {\n $Result[]= $this->RenderTag('input', array(\n 'type'=> 'hidden',\n 'name'=> $k,\n 'value'=> $v\n ));\n }\n return implode('', $Result);\n }", "public function hiddenTag($name = NULL, $value = NULL, $options = NULL)\n {\n return '<input type=\"hidden\" name=\"' . $name . '\" value=\"' . $value . '\" ' . $this->options2str($options) . '/>';\n }", "function ffw_port_hidden_callback( $args ) {\n global $ffw_port_settings;\n\n $hidden = isset($args['hidden']) ? $args['hidden'] : false;\n\n if ( isset( $ffw_port_settings[ $args['id'] ] ) )\n $value = $ffw_port_settings[ $args['id'] ];\n else\n $value = isset( $args['std'] ) ? $args['std'] : '';\n\n $size = ( isset( $args['size'] ) && ! is_null( $args['size'] ) ) ? $args['size'] : 'regular';\n $html = '<input type=\"hidden\" class=\"' . $size . '-text\" id=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\" name=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\" value=\"' . esc_attr( stripslashes( $value ) ) . '\"/>';\n $html .= '<label for=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\"> ' . $args['std'] . '</label>';\n\n echo $html;\n}", "public function hidden($name, $value = NULL, $attr = array())\n\t{\n\t\t$attr['type'] = 'hidden';\n\t\t\n\t\treturn $this->input($name, $value, $attr);\n\t}", "protected function setHideAmount()\n {\n \tif (isset($_POST['hide_amount']) && !empty($_POST['hide_amount'])) {\n \t\t$this->data['hide_amount'] = 1;\n \t} else {\n \t\t$this->data['hide_amount'] = 0;\n \t}\n }", "function hidden ($nomes = '') {\n\tglobal $resultado;\n\t$nomes = explode(', ', $nomes);\n\t\n\tforeach ($nomes as $valor) {\n\t\tif (isset($resultado['variables'][$valor])) {\n\t\t\t$hidden .= '<input type=\"hidden\" name=\"'.$valor.'\" value=\"'.$resultado['variables'][$valor].'\" />';\n\t\t}\n\t}\n\treturn $hidden;\n}", "public static function hidden($name, $value = NULL, array $attributes = NULL)\n\t{\n\t\t$attributes['type'] = 'hidden';\n\n\t\treturn Form::input($name, $value, $attributes);\n\t}", "function input_hidden($element_name, $value){\r\n\tprint '<input type=\"hidden\" name=\"'.$element_name.'\" value=\"'.htmlentities($value, ENT_NOQUOTES, 'UTF-8').'\">';\r\n}", "static function renderHiddenField($name, $value = null, $attributes = null)\n {\n if (!is_array($attributes)) $attributes = array();\n if (!isset($attributes['id'])) $attributes['id'] = $name;\n $attributes['type'] = 'hidden';\n $attributes['name'] = $name;\n $attributes['value'] = $value;\n self::renderSingleTag('input', $attributes);\n }", "function AttribHidden( $id, $value, $name, $site )\n\t{\n\t\tswitch ($site) \n\t\t{\n\t\t\tcase \"frontend\":\n\t\t\t\t$success = '<input type=\"hidden\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\t\t break;\n\t\t\tcase \"admin\": \n\t\t\tdefault:\t\n\t\t\t\t$success = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$name.'\" />';\n\t\t\t break;\t\n\t\t}\n\t\t\t\n\t\treturn $success;\n\t}", "public function print_value_input(){\n return false;\n ?>\n <input\n class=\"<?php echo RB_Field_Factory::get_input_class_link(); ?>\"\n rb-control-final-value\n name=\"<?php echo $this->id; ?>\"\n value=\"<?php echo $this->value; ?>\"\n type=\"hidden\"></input>\n <?php\n }", "function hidden() {\n\t\t$args = func_get_args();\n\n\t\twhile (list($name,$val) = each($args[0]))\n\t\t\t$this->buffer .= \"<input type=\\\"hidden\\\" name=\\\"$name\\\" value=\\\"$val\\\" id=\\\"$name\\\" />\";\n\n\t\treturn $this->output();\n\t}", "private function _createHiddenIdField()\n {\n $idField = new Zend_Form_Element_Hidden('id');\n $idField->removeDecorator('DtDdWrapper')\n ->removeDecorator('HtmlTag')\n ->removeDecorator('Label');\n\n return $idField;\n }", "protected function renderHiddenInput()\n {\n $options = $this->hiddenInputOptions;\n if (!isset($options['name'])) {\n $options['name'] = Html::getInputName($this->model, $this->attribute);\n }\n if (!isset($options['value'])) {\n $options['value'] = $this->_context()->postParamStoragePrefix . $this->_file()->getData();\n }\n return Html::activeHiddenInput($this->model, $this->attribute, $options);\n }", "function hidden()\n{\n if(last(request()->segments()) === 'show')\n {\n // if yes, add the style to hide the control\n return \"style=\\\"display:none\\\"\";\n }\n}", "function hidden( $element )\n\t\t{\t\t\t\n\t\t\t$output = '<div class=\"ace_section ace_hidden\"><input type=\"hidden\" value=\"'.$element['std'].'\" id=\"'.$element['id'].'\" name=\"'.$element['id'].'\"/></div>';\n\t\t\treturn $output;\n\t\t}", "public function hidden ($name, $value, $opts=[])\n {\n $input = new \\SimpleXMLElement('<input/>');\n $input->addAttribute('type', 'hidden');\n $input->addAttribute('id', $name);\n $input->addAttribute('name', $name);\n $input->addAttribute('value', $value);\n return $this->return_value($input, $opts);\n }", "function jabHtmlHidden($name, $value)\n{\n\t$value=htmlspecialchars($value);\n\techo \"<input type=\\\"hidden\\\" id=\\\"$name\\\" name=\\\"$name\\\" value=\\\"$value\\\">\\n\";\n}", "public function hidden($attribute, $value=null, $options = [])\n {\n $options = static::defaults($options);\n return $this->addSingleField(\n $attribute,\n $options[self::OPTIONS_VALIDATION],\n Widget::getHiddenWidget($attribute, $value, $options)\n );\n }", "public static function hidden_field_tag($name, $value = null, $html_attributes = array())\n {\n return self::text_field_tag($name, $value, array_merge(array('type' => 'hidden'), $html_attributes));\n }", "function format_input_hidden($p_id, $p_value){\n\treturn '<input type=\"hidden\" id=\"' . $p_id . '\" name=\"' . $p_id . '\" value=\"' . $p_value . '\"/>';\n}", "protected function generateHidden($options, $currentValue)\n {\n $value = is_null($currentValue) ? $options['value'] : $currentValue;\n\n unset($options[\"id\"]);\n unset($options[\"value\"]);\n\n if (!array_key_exists(\"type\", $options)) {\n $options[\"type\"] = \"hidden\";\n }\n\n if (is_array($value)) {\n $returnHtml = \"\";\n foreach ($value as $key => $val) {\n $returnHtml .= sprintf('<input %s value=\"%s\">', $this->arrayToHtmlAttributes($options), $val);\n }\n return $returnHtml;\n } else {\n return sprintf('<input %s value=\"%s\">', $this->arrayToHtmlAttributes($options), $value);\n }\n }", "public static function inputHidden($model,$attribute,$properties=array()) {\n return self::inputTag('hidden', $model, $attribute,$properties); \n }", "function testHiddenCanUnsecureTheValue() {\n\t\tMock::generatePartial('FormHelper', 'MockFormHelperSecure', array('__secure'));\n\t\t$this->helper->Form = new MockFormHelperSecure();\n\n\t\t$this->helper->hidden('Test.foo', array('secureValue'));\n\t\t$this->helper->Form->expectOnce('__secure', array());\n\t}", "public function getHidden(){\n return $this->_hidden;\n }", "public function isHidden() {\n return false;\n }", "function InputHiddenBox($VariableName,$default)\t{\n\t\t\t$res=\"\";\n\t\t\t$res.=\"<input type=\\\"hidden\\\" name=\\\"$VariableName\\\" id=\\\"$VariableName\\\" value=\\\"$default\\\">\";\n\t\t\treturn $res;\n\t}", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "public function isHidden()\r\n {\r\n return false;\r\n }", "function zen_draw_hidden_field($name, $value = '', $parameters = '') {\n $field = '<input type=\"hidden\" name=\"' . zen_sanitize_string(zen_output_string($name)) . '\"';\n\n if (zen_not_null($value)) {\n $field .= ' value=\"' . zen_output_string($value) . '\"';\n } elseif (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) {\n $field .= ' value=\"' . zen_output_string(stripslashes($GLOBALS[$name])) . '\"';\n }\n\n if (zen_not_null($parameters)) $field .= ' ' . $parameters;\n\n $field .= ' />';\n\n return $field;\n }", "public function isHidden() {\r\n return false;\r\n }", "public function isHidden() {\r\n return false;\r\n }", "function hideField($fieldName){\n\n\t\t$this->hidden[$fieldName] = \"hide\";\n\n\t}", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n return false;\n }", "function hide($record=\"\")\n {\n $languages = $this->getLanguages();\n /* hidden values */\n for ($i = 0; $i < sizeof($languages); $i++)\n {\n $result .= '<input type=\"hidden\" name=\"'.$this->formName().'['.$languages[$i].']\"'.\n ' value=\"'.htmlspecialchars($record[$this->fieldName()][$languages[$i]]).'\">';\n }\n return $result;\n }", "protected function removeSecuredHiddenFieldsRenderedFromViewHelperVariableContainer() {}", "private function renderHidden($def)\n {\n $def = implode(' ', $def);\n\n $tpl = \"<input type='hidden' ng-model='record.{$this->name}' $def />\";\n\n return $tpl;\n }", "public function getHiddenFlag() {}", "public static function convert_hidden_field() {\n\n\t\t// Create a new Hidden field.\n\t\tself::$field = new GF_Field_Hidden();\n\n\t\t// Add standard properties.\n\t\tself::add_standard_properties();\n\n\t}" ]
[ "0.73015505", "0.7144775", "0.7144775", "0.70782787", "0.6877923", "0.6852996", "0.6793453", "0.67567563", "0.67288584", "0.67192256", "0.66809565", "0.66802484", "0.66293144", "0.6618184", "0.66063243", "0.657766", "0.65727735", "0.65387404", "0.65365434", "0.647034", "0.6423238", "0.6385294", "0.6364517", "0.6355292", "0.6338905", "0.63336205", "0.6294145", "0.62506723", "0.6227246", "0.62201864", "0.61905485", "0.61848366", "0.6163915", "0.6159735", "0.6158943", "0.61370635", "0.6136483", "0.61344635", "0.61344635", "0.6133711", "0.6130047", "0.6126679", "0.61249185", "0.61060107", "0.60986346", "0.6079932", "0.6075083", "0.6067214", "0.60394335", "0.6035093", "0.6035039", "0.6031527", "0.6013323", "0.6002068", "0.5995458", "0.59701544", "0.59695685", "0.59687376", "0.59648067", "0.5961641", "0.59492755", "0.5938275", "0.59291697", "0.59262663", "0.59055346", "0.59043676", "0.5888357", "0.58846843", "0.5853467", "0.584358", "0.58302253", "0.5824905", "0.5824905", "0.5824905", "0.5823023", "0.5821345", "0.5821345", "0.5821022", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.57982254", "0.5787906", "0.5786064", "0.5771165", "0.5768888", "0.5756689" ]
0.0
-1
Adds check box control to the form.
public function addCheckbox($name, $caption, $items = array(1 => 1, 0 => 0)) { return $this[$name] = new Checkbox($caption, $items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AddCheckboxToRegistrationForm()\n\t{\n\t\tif ( ! is_user_logged_in())\n\t\t{\n\t\t\t$checked = get_option($this->GrOptionDbPrefix . 'registration_checked');\n\t\t\t?>\n\t\t\t<p class=\"form-row form-row-wide\">\n\t\t\t\t<input class=\"input-checkbox GR_registrationbox\" value=\"1\" id=\"gr_registration_checkbox\" type=\"checkbox\"\n\t\t\t\t name=\"gr_registration_checkbox\" <?php if ($checked)\n\t\t\t\t { ?>checked=\"checked\"<?php } ?> />\n\t\t\t\t<label for=\"gr_registration_checkbox\" class=\"checkbox\">\n\t\t\t\t\t<?php echo get_option($this->GrOptionDbPrefix . 'registration_label'); ?>\n\t\t\t\t</label>\n\t\t\t</p><br/>\n\t\t\t<?php\n\t\t}\n\t}", "public function AddCheckboxToCheckoutPage()\n\t{\n\t\t$checked = get_option($this->GrOptionDbPrefix . 'checkout_checked');\n\t\t?>\n\t\t<p class=\"form-row form-row-wide\">\n\t\t\t<input class=\"input-checkbox GR_checkoutbox\" value=\"1\" id=\"gr_checkout_checkbox\" type=\"checkbox\"\n\t\t\t name=\"gr_checkout_checkbox\" <?php if ($checked)\n\t\t\t { ?>checked=\"checked\"<?php } ?> />\n\t\t\t<label for=\"gr_checkout_checkbox\" class=\"checkbox\">\n\t\t\t\t<?php echo get_option($this->GrOptionDbPrefix . 'checkout_label'); ?>\n\t\t\t</label>\n\t\t</p>\n\t\t<?php\n\t}", "public function AddCheckboxToBpRegistrationPage()\n\t{\n\t\t$bp_checked = get_option($this->GrOptionDbPrefix . 'bp_registration_checked');\n\t\t?>\n\t\t<div class=\"gr_bp_register_checkbox\">\n\t\t\t<label>\n\t\t\t\t<input class=\"input-checkbox GR_bpbox\" value=\"1\" id=\"gr_bp_checkbox\" type=\"checkbox\"\n\t\t\t\t name=\"gr_bp_checkbox\" <?php if ($bp_checked)\n\t\t\t\t{ ?> checked=\"checked\"<?php } ?> />\n\t\t\t\t<span\n\t\t\t\t\tclass=\"gr_bp_register_label\"><?php echo get_option($this->GrOptionDbPrefix . 'bp_registration_label'); ?></span>\n\t\t\t</label>\n\t\t</div>\n\t\t<?php\n\t}", "public function AddCheckboxToComment()\n\t{\n\t\t$checked = get_option($this->GrOptionDbPrefix . 'comment_checked');\n\t\t?>\n\t\t<p>\n\t\t\t<input class=\"GR_checkbox\" value=\"1\" id=\"gr_comment_checkbox\" type=\"checkbox\" name=\"gr_comment_checkbox\"\n\t\t\t\t <?php if ($checked)\n\t\t\t\t { ?>checked=\"checked\"<?php } ?>/>\n\t\t\t<?php echo get_option($this->GrOptionDbPrefix . 'comment_label'); ?>\n\t\t</p><br/>\n\t\t<?php\n\t}", "function checkbox()\n {\n ?>\n <input type=\"hidden\" <?php $this->name_tag(); ?> value=\"0\" />\n <input type=\"checkbox\" <?php $this->name_tag(); ?> value=\"1\" class=\"inferno-setting\" <?php $this->id_tag('inferno-concrete-setting-'); if($this->setting_value) echo ' checked'; ?> />\n <label <?php $this->for_tag('inferno-concrete-setting-'); ?> data-true=\"<?php _e('On'); ?>\" data-false=\"<?php _e('Off'); ?>\"><?php if($this->setting_value) _e('On'); else _e('Off'); ?></label>\n <?php \n }", "function checkbox( \n\t $name, $title, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_CHECKBOX,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "function checkbox($args) {\r\n\t\t$args = $this->apply_default_args($args) ;\r\n\t\techo \"<input name='$this->options_name[\" . $args['id'] . \"]' type='checkbox' value='1' \";\r\n\t\tchecked('1', $this->options[$args['id']]); \r\n\t\techo \" /> <span class='description'>\" . $args['description'] . \"</span>\" ;\r\n\t\t\r\n\t}", "private function display_checkbox_field($name, $value) {\n?>\n<input type=\"checkbox\" name=\"<?php echo htmlspecialchars($this->group); ?>[<?php echo htmlspecialchars($name); ?>]\" id=\"http_authentication_<?php echo htmlspecialchars($name); ?>\"<?php if ($value) echo ' checked=\"checked\"' ?> value=\"1\" /><br />\n<?php\n }", "public function checkbox($options = [], $enclosedByLabel = null)\n {\n return $this->getToggleField(self::TYPE_CHECKBOX, $options, $enclosedByLabel);\n }", "public static function renderCheckbox();", "public function form_field_checkbox ( $args ) {\n\t\t$options = $this->get_settings();\n\n\t\t$has_description = false;\n\t\tif ( isset( $args['data']['description'] ) ) {\n\t\t\t$has_description = true;\n\t\t\techo '<label for=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\">' . \"\\n\";\n\t\t}\n\t\techo '<input id=\"' . $args['key'] . '\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" type=\"checkbox\" value=\"1\"' . checked( esc_attr( $options[$args['key']] ), '1', false ) . ' />' . \"\\n\";\n\t\tif ( $has_description ) {\n\t\t\techo $args['data']['description'] . '</label>' . \"\\n\";\n\t\t}\n\t}", "public function add_checkbox_control( $name, $label, $section ) {\n\t\t\t$this->customizer->add_setting(\n\t\t\t\t'april_' . $name,\n\t\t\t\tarray(\n\t\t\t\t\t'sanitize_callback' => 'esc_attr',\n\t\t\t\t\t'transport' => 'postMessage',\n\t\t\t\t)\n\t\t\t);\n\t\t\t// control\n\t\t\t$this->customizer->add_control(\n\t\t\t\t'april_' . $name,\n\t\t\t\tarray(\n\t\t\t\t\t'label' => $label,\n\t\t\t\t\t'section' => 'april_' . $section,\n\t\t\t\t\t'settings' => 'april_' . $name,\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t'value' => 1\n\t\t\t\t)\n\t\t\t);\n\t\t}", "function output_checkbox_row( string $label, string $key, bool $checked = false ): void {\n\twp_enqueue_style( 'wpinc-meta-field' );\n\t?>\n\t<div class=\"wpinc-meta-field-single checkbox\">\n\t\t<label>\n\t\t\t<span class=\"checkbox\"><input <?php name_id( $key ); ?> type=\"checkbox\" <?php echo esc_attr( $checked ? 'checked' : '' ); ?>></span>\n\t\t\t<span><?php echo esc_html( $label ); ?></span>\n\t\t</label>\n\t</div>\n\t<?php\n}", "function theme_checkbox(&$item) {\n\n\t\t$class = array('form-checkbox');\n\t\t_form_set_class($item, $class);\n\n\t\t$checked = \"\";\n\t\tif (!empty($item[\"#value\"])) {\n\t\t\t$checked = \"checked=\\\"checked\\\" \";\n\t\t}\n\n\t\t$retval = '<input '\n\t\t\t. 'type=\"checkbox\" '\n\t\t\t. 'name=\"'. $item['#name'] .'\" '\n\t\t\t. 'id=\"'. $item['#id'].'\" ' \n\t\t\t. 'value=\"'. $item['#return_value'] .'\" '\n\t\t\t. $checked\n\t\t\t. drupal_attributes($item['#attributes']) \n\t\t\t. ' />';\n\n\t\treturn($retval);\n\n\t}", "function form_checkbox($field, $options) {\n $defaults = array(\n 'wrap' => true,\n 'label' => true,\n 'class' => array('input', 'checkbox')\n );\n\n $options = array_merge($defaults, $options);\n\n $field = strtolower($field);\n\n $output = '<input type=\"checkbox\" name=\"' . $field . '\" id=\"' . form__field_id($field) . '\"';\n\n if(!empty($_POST[$field])) {\n $output .= ' value=\"'. $_POST[$field] . '\"';\n }\n\n $output .= ' />';\n\n if($options['wrap']) {\n $options['field'] = $field;\n $output = form__wrap($output, $options);\n }\n\n $error = form_error_message($field);\n if(!empty($error)) {\n $output .= $error;\n }\n\n return html__output($output);\n}", "public function settings_field_input_checkbox( $args ) {\r\n\t\t\t\t// Get the field name and default value from the $args array.\r\n\t\t\t\t$field = $args['field'];\r\n\t\t\t\t$default = $args['default'];\r\n\t\t\t\t$help_text = $args['help_text'];\r\n\t\t\t\t// Get the value of this setting, using default.\r\n\t\t\t\t$value = get_option( $field, $default );\r\n\t\t\t\t// Get the 'checked' string.\r\n\t\t\t\t$checked = checked( '1', $value, false );\r\n\t\t\t\t//error_log( \"value: $value, field: $field, default: $default, checked: $checked\" );\r\n\t\t\t\t// Echo a proper input type=\"checkbox\".\r\n\t\t\t\techo sprintf(\r\n\t\t\t\t\t'<input type=\"checkbox\" name=\"%s\" id=\"%s\" value=\"%s\" %s /> <span>%s</span>',\r\n\t\t\t\t\tesc_attr( $field ),\r\n\t\t\t\t\tesc_attr( $field ),\r\n\t\t\t\t\t'1',\r\n\t\t\t\t\tesc_attr( $checked ),\r\n\t\t\t\t\tesc_html( $help_text )\r\n\t\t\t\t);\r\n\t\t}", "function zen_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {\n return zen_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);\n }", "function check_box($object, $field, $options = array(), $checked_value = \"1\", $unchecked_value = \"0\") {\n $form = new FormHelper($object, $field);\n return $form->to_check_box_tag($options, $checked_value, $unchecked_value);\n}", "public function checkbox($options = []){\n\t\t$value = Html::selectAttribute('value', $options, '1');\n\t\t// Set default attributes.\n\t\tHtml::setAttribute($options, [\n\t\t\t'id' => $this->name,\n\t\t\t'class' => $this->getDefaultClass('checkbox'),\n\t\t]);\n\t\t// Checked state.\n\t\tif($this->checkModelValue($value, $this->name)) Html::setAttribute($options, ['checked' => 'checked']);\n\t\t// On error, add error class if error classes are enabled.\n\t\tif($this->hasError && $this->errorClasses){\n\t\t\tHtml::addToAttribute($options, 'class', $this->getDefaultClass('error'));\n\t\t}\n\t\t// Create unchecked hidden value's element.\n\t\t$hidden = '';\n\t\tif(isset($options['unchecked'])){\n\t\t\t$hidden = Html::input('hidden', $this->name, $options['unchecked']);\n\t\t\tunset($options['unchecked']);\n\t\t}\n\t\t// Create and store the element.\n\t\t$this->elements['control'] = $hidden . Html::checkbox(\n\t\t\t$this->name,\n\t\t\t$value,\n\t\t\t$options\n\t\t);\n\t\t// Return object to method chain.\n\t\treturn $this;\n\t}", "function form_checkbox($forms){\r\n\t$name = isset($forms['name']) ? $forms['name'] : rand(1000 , 9999 ) ;\r\n\t$class = isset( $forms['class'] ) ? $forms['class'] : $forms['name'] ;\r\n\t$checked = $forms['value'] == '1' ? \"checked\" : \"\" ;\r\n\t$id = isset( $forms['id'] ) ? $forms['id'] : $forms['name'] ;\r\n\r\n\t$input = '<input onkeypress=\"return handleEnter(this, event)\" type=\"checkbox\" ';\r\n\t$input .= ' name=\"'.$name.'\" ';\r\n\t$input .= ' class=\"'.$class.'\" ';\r\n\t$input .= ' id=\"'.$id.'\" ';\r\n\t$input .= ' value=\"1\" '; \r\n\t$input .= ' '.$checked.' />';\r\n\r\n\treturn $input;\r\n\r\n}", "function AttribCheckbox( $id, $value, $name )\n\t{\n\t\t$checkbox = \"\";\n\t\t$checked = \"\";\n if ($value == 'on')\n {\n \t$checked = \"checked='checked'\";\n }\n $checkbox .= \"<input type='checkbox' name='\".$name.\"' \" . $checked . \" />\";\n\t\treturn $checkbox;\n\t}", "function checkbox ($params) {\n\t\tif (!$params['id']) $params['id'] = $params['name'];\n if (!$params['y_value']) $params['y_value'] = 1;\n if (!$params['n_value']) $params['n_value'] = 0;\n?>\n\t\t<input type=\"hidden\" name=\"<?=$params['name']?>\" value=\"<?=$params['n_value']?>\" />\n\t\t<input\n\t\t\ttype=\"checkbox\" \n\t\t\tname=\"<?=$params['name']?>\" \n\t\t\tvalue=\"<?=$params['y_value']?>\"\n\t\t\tid=\"<?=$params['id']?>\" \n\t\t\tonclick=\"<?=$params['onclick']?>\"\n\t\t\t<? if ($params['checked']) echo 'checked=\"checked\"'; ?> \n\t\t\t<? if ($params['disabled']) echo 'disabled=\"disabled\"'; ?> \n\t\t\tstyle=\"display:inline;\"\n\t\t/>\n\t\t<label for=\"<?=$params['id']?>\" class=\"checkbox-label\"><?=$params['label']?></label>\n\t\t\n<?\n\t}", "function micheckbox($name, $form = array()) {\n\tif (isset($form[$name]) && $form[$name]) {\n\t\t$checked = \"checked=\\\"checked\\\" \";\n\t} else {\n\t\t$checked = \"\";\n\t}\n\treturn \"<input type=\\\"checkbox\\\" name=\\\"$name\\\" $checked />\";\n}", "function question_category_form_checkbox($name, $checked) {\n echo '<div><input type=\"hidden\" id=\"' . $name . '_off\" name=\"' . $name . '\" value=\"0\" />';\n echo '<input type=\"checkbox\" id=\"' . $name . '_on\" name=\"' . $name . '\" value=\"1\"';\n if ($checked) {\n echo ' checked=\"checked\"';\n }\n echo ' onchange=\"getElementById(\\'displayoptions\\').submit(); return true;\" />';\n echo '<label for=\"' . $name . '_on\">';\n print_string($name, 'quiz');\n echo \"</label></div>\\n\";\n}", "abstract public function checkboxOnClick();", "function setTypeAsCheckbox($labeltext = false)\n\t{\n\t\t$this->type = \"checkbox\";\n\t\t$this->checkbox_label = $labeltext;\n\t\t\n\t\t// Formfield doesn't work if a checkbox\n\t\t$this->isformfield = false;\n\t}", "static public function checkbox($name,$opts=[]) {\n $f3 = Base::instance();\n if ($f3->exists('POST.'.$name) && $f3->get('POST.'.$name)) {\n $opts[] = 'checked';\n }\n if (!isset($opts['value'])) $opts['value'] = 1;\n if (!isset($opts['type'])) $opts['type'] = 'checkbox';\n return self::input($name,$opts);\n }", "public function checkbox ( \\r8\\Form\\Checkbox $field )\n {\n $this->addField( \"checkbox\", $field );\n }", "function options_form(&$form, &$form_state) {\n parent::options_form($form, $form_state);\n\n $form['responsive_tables_add_awesomesauce'] = array(\n '#type' => 'checkbox',\n '#title' => t(\"Add awesomesauce?\"),\n '#default_value' => $this->options['responsive_tables_add_awesomesauce'],\n '#description' => t(\"A demo of a checkbox that can be used in a views plugin form.\"),\n );\n }", "public function callback_checkbox( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n\n $html_condtions = '';\n\n if ( isset($args['conditions']) && $args['conditions'] === true ) {\n $name_id .= '[value]';\n $value = isset($value['value']) ? $value['value'] : 'off';\n $args['name_id'] .= '[options]';\n $html_condtions = $this->get_field_conditions_modal( $args );\n }\n\n $html = '<fieldset>';\n $html .= sprintf( '<label for=\"wpuf-%1$s\">', $name_id );\n $html .= sprintf( '<input type=\"hidden\" name=\"%1$s\" value=\"off\" />', $name_id );\n $html .= sprintf( '<input type=\"checkbox\" class=\"checkbox\" id=\"wpuf-%1$s\" name=\"%1$s\" value=\"on\" %2$s %3$s/>', $name_id, checked( $value, 'on', false ), $disable );\n $html .= sprintf( '%1$s</label>', $args['desc'] );\n $html .= $html_condtions;\n $html .= '</fieldset>';\n\n echo $html;\n }", "public static function convert_checkbox_field() {\n\n\t\t// Create a new Checkbox field.\n\t\tself::$field = new GF_Field_Checkbox();\n\n\t\t// Add standard properties.\n\t\tself::add_standard_properties();\n\n\t\t// Add choices property.\n\t\tself::$field->choices = array();\n\n\t\t// Loop through field options.\n\t\tforeach ( self::$nf_field['list']['options'] as $i => $option ) {\n\n\t\t\t// Get checkbox ID.\n\t\t\t$id = $i + 1;\n\n\t\t\t// Skip multiple of 10 on checkbox ID.\n\t\t\tif ( 0 === $id % 10 ) {\n\t\t\t\t$id++;\n\t\t\t}\n\n\t\t\t// Add option choices.\n\t\t\tself::$field->choices[] = array(\n\t\t\t\t'text' => $option['label'],\n\t\t\t\t'value' => $option['value'],\n\t\t\t\t'isSelected' => $option['selected'],\n\t\t\t);\n\n\t\t\t// Add option input.\n\t\t\tself::$field->inputs[] = array(\n\t\t\t\t'id' => self::$field->id . '.' . $id,\n\t\t\t\t'label' => $option['label'],\n\t\t\t);\n\n\t\t}\n\n\t}", "function _field_checkbox($fval) \n {\n return sprintf(\"<input type=\\\"checkbox\\\" name=\\\"%s\\\" id=\\\"%s\\\" %s class=\\\"%s\\\" %s %s />\",\n $this->fname,\n $this->fname,\n ($this->opts)? 'value=\"' . $this->opts . '\"' : '',\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n (!empty($fval) && $fval != '0000-00-00')? \"checked\" : \"\",\n $this->extra_attribs);\n }", "public function checkbox($options = [], $enclosedByLabel = true)\n {\n\n if($enclosedByLabel && $this->form->isHorizontal){\n $this->parts['{input}'] = Html::activeCheckbox($this->model, $this->attribute, $options);\n $this->parts['{label}'] = '<div class=\"col-md-2\"></div>';\n\n $this->adjustLabelFor($options);\n return $this;\n } else {\n return parent::checkbox($options, $enclosedByLabel);\n }\n }", "public function getControlHtml()\n {\n if ( isset( $this->_arrProperties['value'] ) \n && $this->_arrProperties['value'] == 1 ) {\n $this->arrAttributes['checked'] = 'checked';\n }\n \n $this->arrAttributes['type'] = 'checkbox';\n \n return parent::getControlHtml();\n }", "function checkbox($args = '', $checked = false) {\r\n $defaults = array('name' => '', 'id' => false, 'class' => false, 'group' => '', 'special' => '', 'value' => '', 'label' => false, 'maxlength' => false);\r\n extract(wp_parse_args($args, $defaults), EXTR_SKIP);\r\n\r\n $return = '';\r\n // Get rid of all brackets\r\n if (strpos(\"$name\", '[') || strpos(\"$name\", ']')) {\r\n $replace_variables = array('][', ']', '[');\r\n $class_from_name = $name;\r\n $class_from_name = \"wpi_\" . str_replace($replace_variables, '_', $class_from_name);\r\n } else {\r\n $class_from_name = \"wpi_\" . $name;\r\n }\r\n // Setup Group\r\n $group_string = '';\r\n if ($group) {\r\n if (strpos($group, '|')) {\r\n $group_array = explode(\"|\", $group);\r\n $count = 0;\r\n foreach ($group_array as $group_member) {\r\n $count++;\r\n if ($count == 1) {\r\n $group_string .= \"$group_member\";\r\n } else {\r\n $group_string .= \"[$group_member]\";\r\n }\r\n }\r\n } else {\r\n $group_string = \"$group\";\r\n }\r\n }\r\n // Use $checked to determine if we should check the box\r\n $checked = strtolower($checked);\r\n if ($checked == 'yes' ||\r\n $checked == 'on' ||\r\n $checked == 'true' ||\r\n ($checked == true && $checked != 'false' && $checked != '0')) {\r\n $checked = true;\r\n } else {\r\n $checked = false;\r\n }\r\n $id = ($id ? $id : $class_from_name);\r\n $insert_id = ($id ? \" id='$id' \" : \" id='$class_from_name' \");\r\n $insert_name = ($group_string ? \" name='\" . $group_string . \"[$name]' \" : \" name='$name' \");\r\n $insert_checked = ($checked ? \" checked='checked' \" : \" \");\r\n $insert_value = \" value=\\\"$value\\\" \";\r\n $insert_class = \" class='$class_from_name $class wpi_checkbox' \";\r\n $insert_maxlength = ($maxlength ? \" maxlength='$maxlength' \" : \" \");\r\n // Determine oppositve value\r\n switch ($value) {\r\n case 'yes':\r\n $opposite_value = 'no';\r\n break;\r\n case 'true':\r\n $opposite_value = 'false';\r\n break;\r\n }\r\n // Print label if one is set\r\n if ($label)\r\n $return .= \"<label for='$id'>\";\r\n // Print hidden checkbox\r\n $return .= \"<input type='hidden' value='$opposite_value' $insert_name />\";\r\n // Print checkbox\r\n $return .= \"<input type='checkbox' $insert_name $insert_id $insert_class $insert_checked $insert_maxlength $insert_value $special />\";\r\n if ($label)\r\n $return .= \" $label</label>\";\r\n return $return;\r\n }", "function option_checkbox($label, $name, $value='', $comment='') {\r\n\t\tif ($value)\r\n\t\t\t$checked = \"checked='checked'\";\r\n\t\telse\r\n\t\t\t$checked = \"\";\r\n\t\techo \"<tr valign='top'><th scope='row'>\" . $label . \"</th>\";\r\n\t\techo \"<td><input type='hidden' id='$name' name='$name' value='0' /><input type='checkbox' name='$name' value='1' $checked />\";\r\n\t\techo \" $comment</td></tr>\";\r\n\t}", "public function checkbox()\n {\n $this->getElement()->addAttribute('data-toggle', 'buttons-checkbox');\n\n return $this;\n }", "function checkbox_init(){\n add_meta_box(\"closing\", \"Closed ?\", \"closing\", \"closings\", \"normal\", \"high\");\n add_meta_box(\"delayed\", \"Delayed / Message ?\", \"delayed\", \"closings\", \"normal\", \"high\");\n add_meta_box(\"message_delayed\", \"Message:\", \"message_delayed\", \"closings\", \"normal\", \"high\");\n}", "function acf_checkbox_input($attrs = array())\n{\n}", "function form_checkbox($name='', $value, $checked=NULL, $arrayto='', $override = NULL, $js='', $id='') {\n\n\t$value = html_form_escape($value, $override);\n\n\tif ($arrayto) {\n\t\t$name = $arrayto . \"[\" . $name . \"]\";\n\t}\n\n\tif (!$id) {\n\t\t$id = $name;\n\t}\n\n\tif ($checked) {\n\t\treturn \"<input type=\\\"checkbox\\\" name=\\\"$name\\\" id=\\\"$id\\\" value=\\\"$value\\\" checked $js />\";\n\t} else {\n\t\treturn \"<input type=\\\"checkbox\\\" name=\\\"$name\\\" id=\\\"$id\\\" value=\\\"$value\\\" $js />\";\n\t}\n\n}", "function checkbox()\n {\n //if (isset($_POST['accept_terms_checkbox']))\n if ($this->input->post('checkbox'))\n {\n return TRUE;\n }\n else\n {\n $error = 'Please read and accept our terms and conditions.';\n $this->form_validation->set_message('checkbox', $error);\n return FALSE;\n }\n }", "protected function markAsChecked()\n {\n if ($this->isArrayInput()) {\n if (old()) {\n if (old($this->arrayInputBaseName())) {\n $this->addHtmlAttribute('checked', in_array($this->value, old($this->arrayInputBaseName())));\n } else {\n $this->addHtmlAttribute('checked', false);\n }\n } else {\n $this->addHtmlAttribute('checked', $this->checked);\n }\n } else {\n if (old()) {\n if (old($this->name)) {\n $this->addHtmlAttribute('checked', true);\n } else {\n $this->addHtmlAttribute('checked', false);\n }\n } else {\n $this->addHtmlAttribute('checked', $this->checked);\n }\n }\n }", "protected function markAsChecked()\n {\n if ($this->isArrayInput()) {\n if (old()) {\n if (old($this->arrayInputBaseName())) {\n $this->addHtmlAttribute('checked', in_array($this->value, old($this->arrayInputBaseName())));\n } else {\n $this->addHtmlAttribute('checked', false);\n }\n } else {\n $this->addHtmlAttribute('checked', $this->checked);\n }\n } else {\n if (old()) {\n if (old($this->name)) {\n $this->addHtmlAttribute('checked', true);\n } else {\n $this->addHtmlAttribute('checked', false);\n }\n } else {\n $this->addHtmlAttribute('checked', $this->checked);\n }\n }\n }", "function checkBoxChecked($chkName, $optional){\n\t\t$checkBoxString = '';\n\t\t$chkText = '';\n\t\t\tif ( $_GET[$chkName->value]== 'on'){\n\t\t\t\t$chkText = 'checked';\n\t\t\t}\n\t\t\t $checkBoxString = $checkBoxString . '<input ' .$chkText. ' type=\"checkbox\" id=\"' .$chkName->value. '\" name=\"' .$chkName->value. '\" class=\"' .$chkName->class. '\" ' . $optional . '>' .$chkName->label. ' ';\n\t\t\n\t\treturn $checkBoxString;\n\t}", "function render_field_checkbox($field)\n {\n }", "public function show_checkbox( $name = \"ids[]\" ) {\n\t\t?>\n\t\t<input type=\"checkbox\" name=\"<?php echo $name; ?>\" value=\"<?php echo $this->get_ID(); ?>\"/>\n\t\t<?php\n\t}", "public static function convert_single_checkbox_field() {\n\n\t\t// Create a new Checkbox field.\n\t\tself::$field = new GF_Field_Checkbox();\n\n\t\t// Add standard properties.\n\t\tself::add_standard_properties();\n\n\t\t// Add choices property.\n\t\tself::$field->choices = array(\n\t\t\tarray(\n\t\t\t\t'text' => self::$nf_field['label'],\n\t\t\t\t'value' => '',\n\t\t\t\t'isSelected' => 'unchecked' === self::$nf_field['default_value'] ? '0' : '1',\n\t\t\t),\n\t\t);\n\n\t}", "public function checkbox($name, $value = NULL, $checked = FALSE, array $attributes = NULL) {\n $this->load_values($name, $value, $attributes);\n $result = '<li>'.Kohana_Form::checkbox($name, $value, $checked, $attributes);\n // add error span\n if (isset($this->errors[$name])) {\n $result .= '<span class=\"error\">'.ucfirst($this->errors[$name]).'</span>';\n } else if (isset($attributes['info'])) {\n // else add info span\n $result .= '<span class=\"info\">'.$attributes['info'].'</span>';\n }\n $result .= '</li>';\n return $result;\n\t}", "function sb_slideshow_checkbox( $value, $key, $name, $checked = array() ) {\n\treturn '<input type=\"checkbox\" name=\"sb_' . esc_attr( $name ) . '[]\" id=\"' . esc_attr( $name . '_' . $value ) . '\"\n\t\tvalue=\"' . esc_attr( $value ) . '\"' . (in_array( $value, (array)$checked ) ? 'checked=\"checked\"' : '') . ' />\n\t\t<label for=\"' . esc_attr( $name . '_' . $value ) . '\">' . $key . '</label><br />';\n}", "function input_checkbox($errors, $name, $label, $onclick) {\n echo '<div class=\"required_field\">';\n //create the label for the input\n echo \"<label for = \\\"$name\\\">$label</label>\";\n //Create checkbox\n echo \"<input type = \\\"checkbox\\\" name=\\\"$name\\\" onclick='$onclick'>\";\n //create error message span\n error_label($errors, $name);\n //close the div\n echo '</div>';\n}", "function form_checkbox_group($field, $options) {\n\n}", "private function option_checkbox($name, $on, $label) {\n if ($on) {\n $checked = ' checked=\"checked\"';\n } else {\n $checked = '';\n }\n $name = 'userselector_' . $name;\n // For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.\n // It seems that document.getElementById('frog') in IE will return and element with name=\"frog\".\n $output = '<div class=\"form-check\"><input type=\"hidden\" name=\"' . $name . '\" value=\"0\" />' .\n '<label class=\"form-check-label\" for=\"' . $name . 'id\">' .\n '<input class=\"form-check-input\" type=\"checkbox\" id=\"' . $name . 'id\" name=\"' . $name .\n '\" value=\"1\"' . $checked . ' /> ' . $label .\n \"</label>\n </div>\\n\";\n user_preference_allow_ajax_update($name, PARAM_BOOL);\n return $output;\n }", "function acf_get_checkbox_input($attrs = array())\n{\n}", "public function createCheckBox($name, $value = false, $checked = false, $attr = array())\r\n {\r\n $checked = ($this->getFieldValue($name) !== false && in_array($value, (array)$this->getFieldValue($name)) ? true : ($this->getFieldValue($name) !== false ? false : $checked));\r\n if ($checked == true) {\r\n $attr = array_merge((array)$attr, array('checked' => 'checked'));\r\n }\r\n return $this->input($name, $value, $attr);\r\n }", "private function check_Check_Box($sorce){\r\n\r\n if (!isset($sorce['checkbox'])){\r\n\r\n $this->_flag = false;\r\n\r\n Session::put('e_checkbox','You must accept rules');\r\n\r\n Session::delete('w_checkbox');\r\n }\r\n\r\n #Save our choice\r\n else Session::put('w_checkbox',\"checked\");\r\n }", "function render_checkbox( $args ) {\n\t\t\t$optionValue = Link_WP_LinkID::get_option_value( $args['key'] );\n\t\t\t$checked = $optionValue === null ? '' : checked( 1, $optionValue, false );\n\n\t\t\t?>\n\t\t\t<input type=\"checkbox\" value=\"1\"\n\t\t\t name=\"<?php echo \"link_linkid_settings[\" . $args['key'] . \"]\" ?>\" <?php echo $checked ?>>\n\t\t\t<p class=\"description\"><?php echo $args[\"description\"] ?></p>\n\t\t\t<?php\n\t\t}", "function checkbox_control_display($form, $mform, $customdata, $field, $as_filter = false, $contextname = 'system') {\n if (!($form instanceof moodleform)) {\n $mform = $form;\n $form->_customdata = null;\n }\n $manual = new field_owner($field->owners['manual']);\n $manual_params = unserialize($manual->params);\n if (!empty($manual_params['options_source']) || !empty($manual_params['options'])) {\n if ($as_filter || $field->multivalued) {\n// require_once(CURMAN_DIRLOCATION.'/plugins/manual/field_controls/menu.php');\n require_once elis::plugin_file('elisfields_manual', 'field_controls/menu.php');\n return menu_control_display($form, $mform, $customdata, $field, $as_filter);\n }\n $options = array();\n if (!empty($manual_params['options'])) {\n $options = explode(\"\\n\", $manual_params['options']);\n }\n $source = '';\n if (!empty($manual_params['options_source'])) {\n $source = $manual_params['options_source'];\n }\n if (!empty($source)) {\n $srcfile = elis::plugin_file('elisfields_manual', \"sources/{$source}.php\");\n if (file_exists($srcfile)) {\n require_once elis::plugin_file('elisfields_manual','sources.php');\n require_once($srcfile);\n $classname = \"manual_options_{$source}\";\n $plugin = new $classname();\n if ($plugin && $plugin->is_applicable($contextname)) {\n $options = $plugin->get_options($customdata);\n }\n }\n }\n $controls = array();\n foreach ($options as $option) {\n $option = trim($option);\n if ($field->multivalued) {\n // FIXME: this doesn't work\n $cb = $controls[] = &$mform->createElement('checkbox', \"field_{$field->shortname}\", null, $option);\n $cb->updateAttributes(array('value'=>$option));\n } else {\n $controls[] = &$mform->createElement('radio', \"field_{$field->shortname}\", null, $option, $option);\n }\n }\n $mform->addGroup($controls, \"field_{$field->shortname}\", $field->name, '<br />', false);\n } else {\n $checkbox = $mform->addElement('advcheckbox', \"field_{$field->shortname}\", $field->name);\n }\n manual_field_add_help_button($mform, \"field_{$field->shortname}\", $field);\n}", "public static function checkbox($name='', $value='', $label_text='', $attributes='') {\n\t\t\t$output = HtmlHelper::label_open();\n\t\t\t$output .= HtmlHelper::input_checkbox($name, $value, $attributes);\n\t\t\t$output .= ' ' . $label_text;\n\t\t\t$output .= HtmlHelper::label_close();\n\t\t\treturn $output;\n\t\t}", "function print_checkbox($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\techo '<div class=\"on-off\"><span></span></div>';\n\t\tif($input_value=='true'){\n\t\t\t$input_value='on';\n\t\t}\n\t\tif($input_value=='false'){\n\t\t\t$input_value='off';\n\t\t}\n\t\techo '<input name=\"'.$value['id'].'\" id=\"'.$value['id'].'\" type=\"hidden\" value=\"'.$input_value.'\" />';\n\t\t$this->close_option($value);\n\t}", "static public function createCheckboxRadio($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/radiocheckbox.php\";\n }", "public static function checkbox($name, $value = NULL, $checked = FALSE, array $attributes = NULL)\n\t{\n\t\t$attributes['type'] = 'checkbox';\n\n\t\tif ($checked === TRUE)\n\t\t{\n\t\t\t// Make the checkbox active\n\t\t\t$attributes['checked'] = 'checked';\n\t\t}\n\n\t\treturn Form::input($name, $value, $attributes);\n\t}", "protected function getForm_Type_CheckboxService()\n {\n @trigger_error('The \"form.type.checkbox\" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);\n\n return $this->services['form.type.checkbox'] = new \\Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType();\n }", "function object_checkbox_tag($object, $method, $options = array(), $default_value = null)\r\n{\r\n $options = _parse_attributes($options);\r\n\r\n $checked = (boolean) _get_object_value($object, $method, $default_value);\r\n\r\n return checkbox_tag(_convert_method_to_name($method, $options), isset($options['value']) ? $options['value'] : 1, $checked, $options);\r\n}", "private function option_checkbox($name, $on, $label) {\n if ($on) {\n $checked = ' checked=\"checked\"';\n } else {\n $checked = '';\n }\n $name = 'userselector_' . $name;\n $output = '<p><input type=\"hidden\" name=\"' . $name . '\" value=\"0\" />' .\n // For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.\n // It seems that document.getElementById('frog') in IE will return and element with name=\"frog\".\n '<input type=\"checkbox\" id=\"' . $name . 'id\" name=\"' . $name . '\" value=\"1\"' . $checked . ' /> ' .\n '<label for=\"' . $name . 'id\">' . $label . \"</label></p>\\n\";\n user_preference_allow_ajax_update($name, PARAM_BOOL);\n return $output;\n }", "private function checkboxCustomField(): string\n {\n return Template::build($this->getTemplatePath('checkbox.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'checked' => $this->getValue($this->index) ? 'checked' : '',\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "public function hookConfigForm()\n {\n?>\n<div class=\"field\">\n <label for=\"collection_tree_alpha_order\">Order the collection tree alphabetically?</label>\n <div class=\"inputs\">\n <?php echo __v()->formCheckbox('collection_tree_alpha_order', \n null, \n array('checked' => (bool) get_option('collection_tree_alpha_order'))); ?>\n <p class=\"explanation\">This does not affect the order of the collections \n browse page.</p>\n </div>\n</div>\n<?php\n }", "function form_checkbox($input_name, $label = '', $input_value = '0', array $options = []) {\n\n $locale = fusion_get_locale('', LOCALE.LOCALESET.'global.php');\n\n $default_options = [\n 'input_id' => $input_name,\n 'inline' => FALSE,\n 'inline_options' => FALSE,\n 'required' => FALSE,\n 'deactivate' => FALSE,\n 'class' => '',\n 'type' => 'checkbox',\n 'toggle' => FALSE,\n 'toggle_text' => [$locale['no'], $locale['yes']],\n 'options' => [],\n 'options_value' => [],\n 'delimiter' => ',',\n 'safemode' => FALSE,\n 'keyflip' => FALSE,\n 'error_text' => $locale['error_input_checkbox'],\n 'value' => 1,\n 'tip' => '',\n 'ext_tip' => '',\n 'inner_width' => '',\n 'reverse_label' => FALSE,\n 'deactivate_key' => NULL,\n 'onclick' => ''\n ];\n\n $options += $default_options;\n\n\t$error_class = '';\n\n\t$option_value = [];\n\n\t$default_checked = FALSE;\n\n\t$switch_class = '';\n\n if ($options['toggle']) {\n \t$switch_class = 'is-bootstrap-switch ';\n\t if (!defined(\"BOOTSTRAP_SWITCH_ASSETS\")) {\n\t\t define(\"BOOTSTRAP_SWITCH_ASSETS\", TRUE);\n\t\t // http://www.bootstrap-switch.org\n\t\t add_to_head(\"<link href='\".DYNAMICS.\"assets/switch/css/bootstrap-switch.min.css' rel='stylesheet' />\");\n\t\t add_to_footer(\"<script src='\".DYNAMICS.\"assets/switch/js/bootstrap-switch.min.js'></script>\");\n\t\t add_to_jquery(\"$('.is-bootstrap-switch input[type=checkbox]').bootstrapSwitch();\");\n\t }\n }\n\n $title = $label ? stripinput($label) : ucfirst(strtolower(str_replace(\"_\", \" \", $input_name)));\n\n // 'input_id[]' becomes 'input_id-', due to foreach has multiple options, and these DOM selectors are needed\n $options['input_id'] = trim(str_replace('[', '-', $options['input_id']), \"]\");\n\n if (\\defender::inputHasError($input_name)) {\n $error_class = \" has-error\";\n if (!empty($options['error_text'])) {\n $new_error_text = \\defender::getErrorText($input_name);\n if (!empty($new_error_text)) {\n $options['error_text'] = $new_error_text;\n }\n addNotice(\"danger\", \"<strong>$title</strong> - \".$options['error_text']);\n }\n }\n\n //@todo: this can use ksort/uksort\n\t$on_label = $options['toggle_text'][1];\n\t$off_label = $options['toggle_text'][0];\n\tif ($options['keyflip']) {\n\t\t$on_label = $options['toggle_text'][0];\n\t\t$off_label = $options['toggle_text'][1];\n\t}\n\n if (!empty($options['options']) && is_array($options['options'])) {\n\n $options['toggle'] = FALSE; // force toggle to be false if options existed\n\n if (!empty($input_value)) {\n\n $option_value = array_flip(explode($options['delimiter'], (string)$input_value)); // require key to value\n\n }\n\n // if there are options, and i want the options to be having input value.\n // options_value\n $input_value = [];\n\n $default_checked = empty($option_value) ? TRUE : FALSE;\n\n foreach (array_keys($options['options']) as $key) {\n $input_value[$key] = isset($option_value[$key]) ? (!empty($options['options_value'][$key]) ? $options['options_value'][$key] : 1) : 0;\n }\n }\n\n $checkbox = $options['inline'] ? \"<div class='col-xs-12 col-sm-12 col-md-9 col-lg-9'>\\n\" : \"\\n\";\n\n if (!empty($options['options']) && is_array($options['options'])) {\n\n foreach ($options['options'] as $key => $value) {\n\n if ($options['deactivate_key'] !== NULL && $options['deactivate_key'] == $key) {\n $checkbox .= form_hidden($input_name, '', $key);\n }\n\n $checkbox .= \"<div class='\".($options['type'] == 'radio' ? 'radio' : 'checkbox').($options['inline_options'] ? ' display-inline-block m-r-5' : '').\"'>\\n\";\n\n $checkbox .= \"<label class='control-label m-r-10' for='\".$options['input_id'].\"-$key'\".($options['inner_width'] ? \" style='width: \".$options['inner_width'].\"'\" : '').\">\";\n\n $checkbox .= \"<input id='\".$options['input_id'].\"-$key' name='$input_name' value='$key' type='\".$options['type'].\"'\n \n \".($options['deactivate'] || $options['deactivate_key'] === $key ? 'disabled' : '').($options['onclick'] ? ' onclick=\"'.$options['onclick'].'\"' : '').($input_value[$key] == TRUE || $default_checked && $key == FALSE ? ' checked' : '').\" />\\n\";\n\n $checkbox .= $value;\n\n $checkbox .= \"</label>\\n\";\n\n $checkbox .= \"</div>\\n\";\n }\n\n } else {\n\n $checkbox .= \"<div class='\".(!empty($label) ? 'pull-left' : 'text-center').\" m-r-10'>\\n<input id='\".$options['input_id'].\"'\".($options['toggle'] ? \" data-on-text='\".$on_label.\"' data-off-text='\".$off_label.\"'\" : \"\").\" style='margin: 0; vertical-align: middle' name='$input_name' value='\".$options['value'].\"' type='\".$options['type'].\"'\".($options['deactivate'] ? ' disabled' : '').($options['onclick'] ? ' onclick=\"'.$options['onclick'].'\"' : '').($input_value == $options['value'] ? ' checked' : '').\" />\\n</div>\\n\";\n\n }\n\n $html = \"<div id='\".$options['input_id'].\"-field' class='$switch_class form-group clearfix\".($options['inline'] ? ' display-block overflow-hide' : '').($error_class ? $error_class : '').($options['class'] ? ' '.$options['class'] : '').\"'>\\n\";\n\n $html .= (!empty($label)) ? \"<label class='control-label\".($options['inline'] ? \" col-xs-12 col-sm-12 col-md-3 col-lg-3\" : '').\"' data-checked='\".(!empty($input_value) ? \"1\" : \"0\").\"' for='\".$options['input_id'].\"'\".($options['inner_width'] ? \" style='width: \".$options['inner_width'].\"'\" : '').\">\\n\" : \"\";\n\n $html .= ($options['reverse_label'] == TRUE) ? $checkbox : \"\";\n\n $html .= (!empty($label)) ? \"<div class='overflow-hide'>\\n\".$label.($options['required'] ? \"<span class='required'>&nbsp;*</span>\" : '').($options['tip'] ? \" <i class='pointer fa fa-question-circle text-lighter' title='\".$options['tip'].\"'></i>\" : '').\"</div>\\n</label>\\n\" : \"\";\n\n $html .= ($options['reverse_label'] == FALSE) ? $checkbox : \"\";\n\n $html .= $options['ext_tip'] ? \"<br/>\\n<span class='tip'><i>\".$options['ext_tip'].\"</i></span>\" : \"\";\n\n $html .= \\defender::inputHasError($input_name) ? \"<span class='m-l-10'></span>\" : \"\";\n\n $html .= \\defender::inputHasError($input_name) ? \"<div id='\".$options['input_id'].\"-help' class='label label-danger p-5 display-inline-block'>\".$options['error_text'].\"</div>\" : \"\";\n\n $html .= $options['inline'] ? \"</div>\\n\" : \"\";\n\n $html .= \"</div>\\n\";\n\n \\defender::add_field_session([\n 'input_name' => str_replace(\"[]\", \"\", $input_name),\n 'title' => trim($title, '[]'),\n 'id' => $options['input_id'],\n 'type' => $options['type'],\n 'required' => $options['required'],\n 'safemode' => $options['safemode'],\n 'error_text' => $options['error_text'],\n 'delimiter' => $options['delimiter'],\n ]);\n\n return (string)$html;\n}", "function format_checkbox($p_id, $p_name, $p_checked = false, $p_class = 'input-xs', $p_style = '', $p_prop = ''){\n\treturn \t'<input type=\"checkbox\" id=\"' . $p_id . '\" name=\"' . $p_name . '\" class=\"ace ' . $p_class . '\" style=\"' . $p_style . '\" ' . $p_prop . ' ' . ($p_checked ? ' checked' : '') . '/>';\n}", "public function checkbox($name, $inputValue = 1, $checkByDefault = false)\n {\n $value = $this->value($name);\n\n // Define the state for the checkbox, when $value is null then we\n // use the $checkByDefault value directly, otherwise the checkbox will\n // be checked only if the $value is equal to the $inputValue.\n if (is_null($value)) {\n $checked = $checkByDefault;\n } else {\n $checked = $value == $inputValue;\n }\n\n $name = e($name);\n $inputValue = e($inputValue);\n $checked = $checked ? ' checked' : '';\n\n return \"name=\\\"$name\\\" value=\\\"$inputValue\\\"$checked\";\n }", "function checkboxes(){\n if($this->ChkReal->Checked){\n $this->avance_real = 'Si';\n }else{\n $this->avance_real = 'No';\n }\n if($this->ChkProg->Checked){\n $this->avance_prog = 'Si';\n }else{\n $this->avance_prog = 'No';\n }\n if($this->ChkComent->Checked){\n $this->comentario = 'Si';\n }else{\n $this->comentario = 'No';\n }\n if($this->ChkPermiso->Checked){\n $this->permiso = 'Si';\n }else{\n $this->permiso = 'No';\n }\n if($this->ChkTipoA->Checked){\n $this->tipo_admon = 'Si';\n }else{\n $this->tipo_admon = 'No';\n }\n }", "function checkbox( $element )\n\t\t{\t\n\t\t\t$checked = \"\";\n\t\t\tif( $element['std'] != \"\" ) { $checked = 'checked = \"checked\"'; }\n\t\t\t\t\n\t\t\t$output = '<input '.$checked.' type=\"checkbox\" class=\"'.$element['class'].'\" ';\n\t\t\t$output .= 'value=\"'.$element['id'].'\" id=\"'.$element['id'].'\" name=\"'.$element['id'].'\"/>';\n\t\t\t\n\t\t\treturn $output;\n\t\t}", "function drawOptionLeftWork() {\r\n global $saveShowWork;?>\r\n <table width=\"100%\">\r\n <tr class=\"checkboxLabel\">\r\n <td >\r\n <?php echo ucfirst(i18n(\"labelShowLeftWork\".((isNewGui()?'':'Short'))));?>\r\n </td>\r\n <td style=\"width:36px\">\r\n <div title=\"<?php echo i18n('showLeftWork')?>\" dojoType=\"dijit.form.CheckBox\" \r\n type=\"checkbox\" id=\"listShowLeftWork\" name=\"listShowLeftWork\" class=\"whiteCheck\"\r\n <?php if ($saveShowWork=='1') { echo ' checked=\"checked\" '; }?> >\r\n <script type=\"dojo/method\" event=\"onChange\" >\r\n saveUserParameter('planningShowWork',((this.checked)?'1':'0'));\r\n refreshJsonPlanning();\r\n </script>\r\n </div>&nbsp;\r\n </td>\r\n </tr>\r\n </table>\r\n<?php \r\n}", "static function renderBooleanField($name, $value = false, $label = null, $attributes = null)\n {\n echo '<li>';\n self::renderHiddenField($name, ($value) ? '1' : '0', array('id' => $name));\n if ($label) echo '<label for=\"_wcmBox' . $name . '\">'.textH8($label).'</label>';\n echo '<input type=\"checkbox\"';\n if ($value) echo ' checked=\"checked\"';\n echo ' onclick=\"$(\\''.$name.'\\').value=(this.checked)?\\'1\\':\\'0\\';\"';\n echo 'name=\"_wcmBox' . $name . '\" id=\"_wcmBox' . $name . '\"';\n self::renderAttributes($attributes);\n echo '/>';\n echo '</li>';\n }", "function GetCheckBoxField($title, $value)\r\n\t{\r\n\t\t$AddStr = \"\";\r\n\t\tif($value==\"1\")\r\n\t\t{\r\n\t\t\t$AddStr = \"checked\";\r\n\t\t}\r\n\t\treturn \"<input name=\\\"$title\\\" type=\\\"checkbox\\\" $AddStr value=\\\"1\\\" size=\\\"40\\\">\";\r\n\t}", "public function render()\n {\n return view('components.form.check-box');\n }", "function barnelli_wp_checkbox( $field ) {\n\tglobal $thepostid, $post;\n\n\t$thepostid \t\t\t\t= empty( $thepostid ) ? $post->ID : $thepostid;\n\t$field['class'] \t\t= isset( $field['class'] ) ? $field['class'] : 'checkbox';\n\t$field['wrapper_class'] = isset( $field['wrapper_class'] ) ? $field['wrapper_class'] : '';\n\t$field['value'] \t\t= isset( $field['value'] ) ? $field['value'] : get_post_meta( $thepostid, $field['id'], true );\n\t$field['cbvalue'] \t\t= isset( $field['cbvalue'] ) ? $field['cbvalue'] : 'yes';\n\n\techo '<p class=\"form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '\"><label for=\"' . esc_attr( $field['id'] ) . '\">' . wp_kses_post( $field['label'] ) . '</label><input type=\"checkbox\" class=\"' . esc_attr( $field['class'] ) . '\" name=\"' . esc_attr( $field['id'] ) . '\" id=\"' . esc_attr( $field['id'] ) . '\" value=\"' . esc_attr( $field['cbvalue'] ) . '\" ' . checked( $field['value'], $field['cbvalue'], false ) . ' /> ';\n\n\tif ( ! empty( $field['description'] ) ) echo '<span class=\"description\">' . wp_kses_post( $field['description'] ) . '</span>';\n\n\techo '</p>';\n}", "public function checkBoxBlock($model, $attribute, $htmlOptions = array())\r\n\t{\r\n\t\treturn $this->inputBlock('checkbox', $model, $attribute, null, $htmlOptions);\r\n\t}", "public static function form_checkbox($message_id, $fieldname, $value, $checked = false, $readonly = false): void\n {\n echo '<dl class=\"rex-form-group form-group\" id=\"'. $fieldname .'\">';\n echo '<dt><input class=\"form-control d2u_helper_toggle\" type=\"checkbox\" name=\"' . $fieldname . '\" value=\"' . $value . '\"'\n .($checked ? ' checked=\"checked\"' : '') . ($readonly ? ' disabled' : '') .' />';\n if ($readonly && $checked) {\n echo '<input type=\"hidden\" name=\"'. $fieldname .'\" value=\"' . $value . '\">';\n }\n echo '</dt>';\n echo '<dd><label>' . rex_i18n::msg($message_id) . '</label></dd>';\n echo '</dl>';\n }", "function createCheckboxGroup($data) {\n foreach($data as $key => $value) {\n echo '<div class=\"form-check mb-2\">';\n echo \"<label class=\\\"form-check-label font-weight-bold\\\">\";\n echo \"<input type=\\\"checkbox\\\" class=\\\"form-check-input\\\" name=\\\"$value\\\" value=\\\"$value\\\"\";\n if(isset($_POST[$value]) && $_POST[$value]){\n echo \" checked=\\\"checked\\\"\";\n }\n echo \"> $key</label></div>\";\n }\n }", "public function checkbox($element) {\n $element['#type'] = 'checkbox';\n $element = $this->_setRender($element);\n $element['_render']['element'] = '<input type=\"checkbox\"';\n foreach (array('id', 'name') as $key) {\n $element['_render']['element'] .= sprintf(' %s=\"%s\"', $key, $element['#' . $key]);\n }\n /**\n * type and data_id\n */\n $element['_render']['element'] .= sprintf(' data-wpt-type=\"%s\"', __FUNCTION__);\n $element['_render']['element'] .= $this->_getDataWptId($element);\n\n $element['_render']['element'] .= ' value=\"';\n /**\n * Specific: if value is empty force 1 to be rendered\n * but if is defined default value, use default\n */\n $value = 1;\n if (array_key_exists('#default_value', $element)) {\n $value = $element['#default_value'];\n }\n $element['_render']['element'] .= ( empty($element['#value']) && !preg_match('/^0$/', $element['#value']) ) ? $value : esc_attr($element['#value']);\n $element['_render']['element'] .= '\"' . $element['_attributes_string'];\n if (\n (\n !$this->isSubmitted() && (\n (!empty($element['#default_value']) && $element['#default_value'] == $element['#value'] ) || ( isset($element['#checked']) && $element['#checked'] )\n )\n ) || ($this->isSubmitted() && !empty($element['#value']))\n ) {\n $element['_render']['element'] .= ' checked=\"checked\"';\n }\n if (!empty($element['#attributes']['disabled']) || !empty($element['#disable'])) {\n $element['_render']['element'] .= ' onclick=\"javascript:return false; if(this.checked == 1){this.checked=1; return true;}else{this.checked=0; return false;}\"';\n }\n $element['_render']['element'] .= ' />';\n\n $pattern = $this->_getStatndardPatern($element, '<BEFORE><PREFIX><ELEMENT>&nbsp;<LABEL><ERROR><SUFFIX><DESCRIPTION><AFTER>');\n $output = $this->_pattern($pattern, $element);\n $output = $this->_wrapElement($element, $output);\n return $output . \"\\r\\n\";\n }", "public function formCheckbox($name, $value = null, $attribs = null, array $checkedOptions = null)\n {\n $info = $this->_getInfo($name, $value, $attribs);\n extract($info); // name, id, value, attribs, options, listsep, disable\n\n // get label\n $label = isset($attribs['label']) ? $attribs['label'] : null;\n unset($attribs['label']);\n\n // retrieve attributes for labels (prefixed with 'label_' or 'label')\n $label_attribs = array('class' => '');\n foreach ($attribs as $key => $val) {\n $tmp = false;\n $keyLen = strlen($key);\n if ((6 < $keyLen) && (substr($key, 0, 6) == 'label_')) {\n $tmp = substr($key, 6);\n } elseif ((5 < $keyLen) && (substr($key, 0, 5) == 'label')) {\n $tmp = substr($key, 5);\n }\n\n if ($tmp) {\n // make sure first char is lowercase\n $tmp[0] = strtolower($tmp[0]);\n\n if ($tmp == 'class') {\n $label_attribs[$tmp] = $val . ' ' . $label_attribs[$tmp];\n } else {\n $label_attribs[$tmp] = $val;\n }\n\n unset($attribs[$key]);\n }\n }\n\n $checked = false;\n if (isset($attribs['checked']) && $attribs['checked']) {\n $checked = true;\n unset($attribs['checked']);\n } elseif (isset($attribs['checked'])) {\n $checked = false;\n unset($attribs['checked']);\n }\n\n $checkedOptions = self::determineCheckboxInfo($value, $checked, $checkedOptions);\n\n // is the element disabled?\n $disabled = '';\n if ($disable) {\n $disabled = ' disabled=\"disabled\"';\n }\n\n // XHTML or HTML end tag?\n $endTag = ' />';\n if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {\n $endTag= '>';\n }\n\n // build the element\n $xhtml = '';\n if (!strstr($name, '[]')) {\n //$xhtml = $this->_hidden($name, $checkedOptions['unCheckedValue']);\n }\n $xhtml .= '<label'\n . $this->_htmlAttribs($label_attribs)\n . ' for=\"' . $this->view->escape($name) . '\">'\n . '<input type=\"checkbox\"'\n . ' name=\"' . $this->view->escape($name) . '\"'\n . ' id=\"' . $this->view->escape($id) . '\"'\n . ' value=\"' . $this->view->escape($checkedOptions['checkedValue']) . '\"'\n . $checkedOptions['checkedString']\n . $disabled\n . $this->_htmlAttribs($attribs)\n . $endTag\n . $this->view->escape($label)\n . '</label>';\n\n return $xhtml;\n }", "static function renderRelaxBooleanField($name, $value = false, $label = null, $attributes = null)\n {\n echo '<li class=\"boolean\">';\n if ($label) echo '<label class=\"checkbox\" for=\"_wcmBox' . $name . '\">'.textH8($label).'</label>';\n self::renderHiddenField($name, ($value) ? '1' : '0', array('id' => $name));\n echo '<input type=\"checkbox\"';\n if ($value) echo ' checked=\"checked\"';\n echo ' onclick=\"$(\\''.$name.'\\').value=(this.checked)?\\'1\\':\\'0\\';\"';\n echo 'name=\"_wcmBox' . $name . '\" id=\"_wcmBox' . $name . '\"';\n self::renderAttributes($attributes);\n echo '/>';\n echo '</li>';\n }", "function ffw_port_checkbox_callback( $args ) {\n global $ffw_port_settings;\n\n $checked = isset($ffw_port_settings[$args['id']]) ? checked(1, $ffw_port_settings[$args['id']], false) : '';\n $html = '<input type=\"checkbox\" id=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\" name=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\" value=\"1\" ' . $checked . '/>';\n $html .= '<label for=\"ffw_port_settings_' . $args['section'] . '[' . $args['id'] . ']\"> ' . $args['desc'] . '</label>';\n\n echo $html;\n}", "public function checkBox($model, $attribute, $htmlOptions = array())\n {\n return ZurmoHtml::activeCheckBox($model, $attribute, $htmlOptions);\n }", "function check ( $id , $texto , $plus = \"\" , $size = 3 ) {\r\n if ( is_numeric ( $plus ) ) {\r\n $size = $plus;\r\n $plus = '';\r\n }\r\n conf::$pkj_uid_comp ++;\r\n\r\n $idREF = \"pkj\" . conf::$pkj_uid_comp;\r\n $value = \"value = '$texto'\";\r\n\r\n if ( contains ( $plus , \"value\" ) ) {\r\n $value = \"\"; //melhor ficar quieto\r\n }\r\n $html = \"<label onclick='$(\\\"input[data-pkj-id=\\\\\\\"{$idREF}\\\\\\\"]\\\").trigger(\\\"click\\\")' style='margin-top:5px'><input data-pkj-id='$idREF' name='$id' type='checkbox' $value $plus /> {$texto}</label>\";\r\n echo div ( $html , $size );\r\n}", "function initialize () {\n $this->set_openingtag ( \"<INPUT TYPE=\\\"checkbox\\\" value=\\\"\" );\n\t$this->set_closingtag ( \"\\\"[attributes]>\" );\n\t$this->set_type (\"checkbox\");\n }", "public function checkbox($name, $value = 1, $checked = null, $options = array())\n {\n $label = $this->getFormattedLabel($options, $name);\n unset($options['label']);\n $label = \\Lang::get($label);\n\n return '<div class=\"checkbox\"><label>' . $this->form->checkbox(\n $name,\n $value,\n $checked,\n $options\n ) . $label . '</label></div>';\n }", "public function add_terms_of_use_field() {\n\t?>\n\t\t<p style=\"width:100%; margin-bottom:1em;\">\n\t\t<input name=\"rcp_terms_agreement\" id=\"rcp_terms_agreement\" class=\"required\" type=\"checkbox\"/>\n\t\t<label style=\"width:90%\" for=\"rcp_terms_agreement\">Read and Agree to <a href=\"/terms-of-service\" target=\"_blank\">Our Terms, Conditions and Privacy Policy</a> <em>(required)</em></label>\n\t\t</p>\n\t<?php\n\t}", "public function ov_checkbox($name, $checked = false, $value = null){\n $args = func_get_args(); array_shift($args); array_shift($args); array_shift($args);\n $off = $this->echoOff; $this->echoOff = true;\n $chk = $this->generate_input('checkbox', $name, $value, false, $args);\n $chk->setCheckedState($checked);\n $this->echoOff = $off;\n if( !$this->echoOff ) echo $chk;\n return $chk;\n }", "public static function chkGoonEdit()\n {\n $params = JComponentHelper::getParams('com_easycreator');\n $goon_edit = JRequest::getInt('goon_edit', $params->get('goon_edit'));\n $checked =($goon_edit) ? ' checked=\"checked\"' : '';\n\n $html = '';\n $html .= '<input type=\"checkbox\" name=\"goon_edit\" id=\"goon_edit\" value=\"1\"'.$checked.' />';\n $html .= '<label for=\"goon_edit\">'.jgettext('Continue editing').'</label>';\n echo $html;\n }", "public function checkbox($name, $value = 1, $options = null, $checked = false)\r\n {\r\n $checked = $checked ? ' checked' : '';\r\n if (true == ($poz = strpos($value, ':'))) {\r\n $name .= '['. substr($value, 0, $poz) .']';\r\n $value = substr($value, $poz + 1);\r\n } else {\r\n $name .= '[]';\r\n }\r\n return '<input type=\"checkbox\" name=\"' . $name . '\" value=\"' . $value . '\"' . $checked . $this->_options($options) . ' />';\r\n }", "function makeCheckbox( $value, $column )\n{\n\treturn $value ? _( 'Yes' ) : _( 'No' );\n}", "function idem_pop_up_inner_meta_box_cb( $post )\n{ \n $checked = ($post->ID == getDefault() ) ? \"checked\" : \"\";\n $check = \"<label>Par default</label><input type='checkbox' \" . $checked . \" name='idem_pop_up_default' value='1' >\";\n echo $check;\n}", "public static function checkbox_tag($name, $value = \"1\", $checked = false, $html_attributes = array())\n {\n $checked = $checked ? \"checked\" : null;\n\n return TagHelper::tag('input', array_merge(array('type' => 'checkbox', 'name' => $name, 'value' => $value, 'checked' => $checked, 'id' => self::sanitize_id($name)), $html_attributes));\n }", "function _field_toggle($fval) \n {\n // most of this is to avoid E_NOTICEs\n $has_check = (!empty($fval) && \n ($fval != '0000-00-00') &&\n (\n $fval == $this->opts || \n (is_array($this->opts) && isset($this->opts[1]) && $fval == $this->opts[1]) ||\n (empty($this->opts) && $fval == 1)\n )\n );\n\n return sprintf(\"<input type=\\\"checkbox\\\" name=\\\"%s\\\" id=\\\"%s\\\" %s class=\\\"%s\\\" %s %s />&nbsp;<span class=\\\"%s\\\">%s</span>\",\n $this->fname,\n $this->fname,\n ($this->opts)? 'value=\"' . $this->opts . '\"' : '',\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n ($has_check)? \"checked\" : \"\",\n $this->extra_attribs,\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n (isset($this->attribs['after_text']))? $this->attribs['after_text'] : '(Check for yes)' \n );\n }", "function build_xoops_js_checkall($form_name)\n{\n\t$value = '';\n\t$checked = '';\n\n\t$checkall = $form_name.'_checkall';\n\t$xoops_checkall = \"xoopsCheckAll('\".$form_name.\"', '\".$checkall.\"')\";\n\t$extra = ' onclick=\"'.$xoops_checkall.'\" ';\n\t$text = $this->build_html_input_checkbox($checkall, $value, $checked, $extra);\n\treturn $text;\n}", "function output_checkbox_row( string $label, string $key, bool $checked = false ): void {\n\t\t\\wpinc\\meta\\output_checkbox_row( $label, $key, $checked );\n\t}", "public function drawCheckbox(Poll $poll)\r\n {\r\n $options = $poll->options->pluck('name', 'id');\r\n $this->startForm($poll->id);\r\n $this->drawStartHeaderPanel();\r\n $this->drawHeader($poll->question);\r\n $this->drawEndHeaderPanel();\r\n\r\n foreach($options as $id => $name){\r\n $this->drawOptionCheckbox($id, $name);\r\n }\r\n $this->endForm();\r\n }", "function callback_checkbox(array $args)\n {\n }", "public function __construct($label, $options=[])\n {\n parent::__construct($label, $options);\n $this->widget = new CheckboxWidget();\n $this->type = 'checkbox';\n }" ]
[ "0.7454603", "0.7389858", "0.6982826", "0.6882469", "0.6685229", "0.6657663", "0.6641693", "0.6528659", "0.64803743", "0.6473123", "0.6449235", "0.6446762", "0.64463395", "0.6446009", "0.6422478", "0.6420715", "0.64072657", "0.6369788", "0.6364608", "0.63480324", "0.633413", "0.6332161", "0.6307505", "0.6293362", "0.62606966", "0.6254344", "0.624619", "0.6232734", "0.62253565", "0.6222307", "0.6221729", "0.6203737", "0.6192419", "0.618783", "0.61816984", "0.6167106", "0.6159712", "0.61594796", "0.615329", "0.6136912", "0.611753", "0.6116087", "0.6116087", "0.6111708", "0.60820335", "0.60711384", "0.6068337", "0.6035362", "0.60317814", "0.60175335", "0.6011471", "0.598392", "0.59653455", "0.59516186", "0.5914373", "0.5908621", "0.59073704", "0.5902558", "0.59014934", "0.5894202", "0.5893174", "0.588704", "0.5885699", "0.58799154", "0.5872914", "0.58491284", "0.5847096", "0.5837889", "0.5780188", "0.57703304", "0.57653606", "0.57598794", "0.57546794", "0.57438594", "0.5737946", "0.5729065", "0.57222944", "0.5715409", "0.5709863", "0.57033", "0.5701853", "0.5701761", "0.56871575", "0.5683632", "0.5681295", "0.56706095", "0.56630194", "0.56619513", "0.56475973", "0.5644299", "0.5634312", "0.56316525", "0.5621707", "0.5614126", "0.5598557", "0.5573203", "0.557192", "0.5566082", "0.55644506", "0.5563409" ]
0.62034607
32
Adds set of radio button controls to the form.
public function addRadioList($name, $label, array $items = NULL) { return $this[$name] = new RadioList($label, $items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UpdateRadioFields(){\n $_tabs = array_keys($this->form_fields);\n foreach ($_tabs as $_tab) {\n $sizeof = sizeof($this->form_fields[$_tab]);\n for ($j = 0; $j < $sizeof; $j ++) {\n if ($this->form_fields[$_tab][$j][\"control\"] == \"checkbox\") {\n $valueOn = $this->form_fields[$_tab][$j][\"checkOn\"];\n $valueOff = $this->form_fields[$_tab][$j][\"checkOff\"];\n $isRadio = $this->form_fields[$_tab][$j][\"is_radio\"];\n if ($isRadio) {\n if ($this->_data[$this->form_fields[$_tab][$j][\"field_name\"]] == $valueOn) {\n $this->Storage->GroupUpdate($this->custom_var, array(\n $this->custom_val), array(\n $this->form_fields[$_tab][$j][\"field_name\"] => $valueOff));\n }\n }\n }\n }\n } // foreach\n }", "public function getControlType()\n {\n return 'radio';\n }", "function form_init_elements()\r\n {\r\n // Swimmer handling\r\n $swimmer = new FERadioGroup(\"Swimmers\",\r\n array(\r\n ucfirst(FT_CREATE) => FT_CREATE\r\n ,ucfirst(FT_IGNORE) => FT_IGNORE)) ;\r\n $swimmer->set_br_flag(false) ;\r\n $this->add_element($swimmer) ;\r\n\r\n // Swim Meets handling\r\n $swimmeets = new FERadioGroup(\"Swim Meets\",\r\n array(\r\n ucfirst(FT_CREATE) => FT_CREATE\r\n ,ucfirst(FT_IGNORE) => FT_IGNORE)) ;\r\n $swimmeets->set_br_flag(false) ;\r\n $this->add_element($swimmeets) ;\r\n\r\n // Swim Teams handling\r\n $swimteams = new FERadioGroup(\"Swim Teams\",\r\n array(\r\n ucfirst(FT_CREATE) => FT_CREATE\r\n ,ucfirst(FT_IGNORE) => FT_IGNORE)) ;\r\n $swimteams->set_br_flag(false) ;\r\n $this->add_element($swimteams) ;\r\n }", "function form_radio_group($field, $options) {\n\n}", "public function addform()\n\t{\n\t\t\t$this->setMethod('post');\n\n\t\t\t\n\t\t\t$this->addElement('radio', 'status', array(\n\t\t\t\t'required' => true,\n\t\t\t\t'multiOptions' => array(\n\t\t\t\t\t'1' => IN_PROGRESS,\n\t\t\t\t\t'2' => 'Closed'\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t\t'value' => '1' //key of multiOption\n\t\t\t));\n\t\t\n\t\t\n\n\t\t\t$this->addElement('textarea', 'Comment', array( \n\t\t\t\t\t'required' => true,\n\t\t\t\t\t'maxlength' =>'50',\n\t\t\t\t\t\n\t\t\t\t\t'class' => 'validate[required] text-input',\n\t\t\t\t\t'decorators'=>Array(\n\t\t\t\t\t\t'ViewHelper','Errors'\n\t\t\t\t\t),\t\t \n\t\t\t));\n\n\t\t\t\n\n\t\t\t\n\n\n\t\n\t\t\t\t\n\t\t\t$this->addElement('submit', 'submit', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t\t\t'label' => 'Submit',\n\t\t\t));\n\t\t\t\n\t\t\t// And finally add some CSRF protection\n\t\t\t$this->addElement('hash', 'csrf', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t));\t\n\t}", "function guifi_radio_add_radio_form($edit) {\n $cr = 0; $tr = 0; $firewall=FALSE;\n $maxradios = db_fetch_object(db_query('SELECT radiodev_max FROM {guifi_model_specs} WHERE mid=%d',$edit[variable][model_id]));\n\n if (isset($edit[radios]))\n foreach ($edit[radios] as $k => $radio) {\n $tr++;\n if (!$radio['deleted'])\n $cr++;\n if ($radio['mode'] == 'client')\n $firewall = TRUE;\n } // foreach $radio\n\n // print \"Max radios: \".$maxradios->radiodev_max.\" Current: $cr Total: $tr Firewall: $firewall Edit details: $edit[edit_details]\\n<br />\";\n $modes_arr = guifi_types('mode');\n // print_r($modes_arr);\n\n if ($cr>0)\n\t if (!$firewall)\n\t\t $modes_arr = array_diff_key($modes_arr,array('client' => 0));\n\t else\n\t\t $modes_arr = array_intersect_key($modes_arr,array('client' => 0));\n\n $form['newradio_mode'] = array(\n '#type' => 'select',\n '#parents' => array('newradio_mode'),\n '#required' => FALSE,\n '#default_value' => 'client',\n '#options' => $modes_arr,\n '#prefix' => '<table style=\"width: 100%\"><th colspan=\"0\">'.t('New radio (mode)').'</th><tr><td style=\"width: 0\" align=\"right\">',\n '#suffix' => '</td>',\n// '#weight' => 20\n );\n $form['AddRadio'] = array(\n '#type' => 'button',\n '#parents' => array('AddRadio'),\n '#default_value' => t('Add new radio'),\n '#executes_submit_callback' => TRUE,\n '#submit' => array(guifi_radio_add_radio_submit),\n '#prefix' => '<td style=\"width: 10em\" align=\"left\">',\n '#suffix' => '</td><td style=\"width: 100%\" align=\"right\">&nbsp</td></tr>',\n// '#weight' => 21,\n );\n $form['help_addradio'] = array(\n '#type' => 'item',\n '#description' => t('Usage:<br />Choose <strong>wireless client</strong> mode for a normal station with full access to the network. That\\'s the right choice in general.<br />Use the other available options only for the appropiate cases and being sure of what you are doing and what does it means. Note that you might require to be authorized by networks administrators for doing this.<br />Youwill not be able to define you link and get connected to the network until you add at least one radio.'),\n '#prefix' => '<tr><td colspan=\"3\">',\n '#suffix' => '</td></tr></table>',\n// '#weight' => 22,\n );\n return $form;\n}", "protected static function radio()\n {\n }", "public function radioGroup(string $name, string $label, array $radios): FormHelper\n {\n $this->html .= '<div>';\n $this->html .= \"<p>${label}</p>\";\n foreach ($radios as $label => $value) {\n $this->html .= \"<input type=\\\"radio\\\" id=\\\"${name}-${value}\\\" name=\\\"${name}\\\" value=\\\"${value}\\\">\";\n $this->html .= \"<label for=\\\"${name}-${value}\\\">${label}</label><br>\";\n }\n $this->html .= '</div>';\n return $this;\n }", "function acf_radio_input($attrs = array())\n{\n}", "function acf_get_radio_input($attrs = array())\n{\n}", "public function radio()\n {\n $this->getElement()->addAttribute('data-toggle', 'buttons-radio');\n\n return $this;\n }", "public static function renderRadio();", "public function getDomObject()\n\t\t{\n\t\t\t$fieldset = new \\System\\XML\\DomObject( 'fieldset' );\n\t\t\t$fieldset->setAttribute( 'id', $this->getHTMLControlId() );\n//\t\t\t$fieldset->setAttribute( 'class', ' radiobuttonlist' );\n\n\t\t\tif( !$this->visible )\n\t\t\t{\n\t\t\t\t$fieldset->setAttribute( 'style', 'display:none;' );\n\t\t\t}\n\n\t\t\tfor( $i = 0, $count = $this->items->count; $i < $count; $i++ )\n\t\t\t{\n\t\t\t\t$input = $this->createDomObject( 'input' );\n\t\t\t\t$input->setAttribute( 'id', $this->getHTMLControlId() . '__' . $i );\n//\t\t\t\t$input->setAttribute( 'class', 'radiobuttonlist_input' );\n\t\t\t\t$input->setAttribute( 'value', $this->items->itemAt( $i ));\n\t\t\t\t$input->setAttribute( 'title', $this->tooltip );\n\n\t\t\t\tif( $this->submitted && !$this->validate() )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'class', 'invalid' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->autoPostBack )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'onclick', 'Rum.id(\\''.$this->getParentByType('\\System\\Web\\WebControls\\Form')->getHTMLControlId().'\\').submit();' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->ajaxPostBack )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'onclick', 'Rum.evalAsync(\\'' . $this->ajaxCallback . '\\',\\''.$this->getHTMLControlId().'=\\'+encodeURIComponent(this.value)+\\'&'.$this->getRequestData().'\\',\\'POST\\','.\\addslashes($this->ajaxStartHandler).','.\\addslashes($this->ajaxCompletionHandler).');' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->readonly )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'readonly', 'readonly' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->disabled )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'disabled', 'disabled' );\n\t\t\t\t}\n\n\t\t\t\tif( $this->multiple )\n\t\t\t\t{\n\t\t\t\t\t$input->setAttribute( 'type', 'checkbox' );\n\t\t\t\t\t$input->setAttribute( 'name', $this->getHTMLControlId() .'[]' );\n\n\t\t\t\t\tif( in_array( $this->items->itemAt( $i ), $this->value, false ))\n\t\t\t\t\t{\n\t\t\t\t\t\t$input->setAttribute( 'checked', 'checked' );\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$input->setAttribute( 'type', 'radio' );\n\t\t\t\t\t$input->setAttribute( 'name', $this->getHTMLControlId() );\n\n\t\t\t\t\tif( $this->value === $this->items->itemAt( $i ))\n\t\t\t\t\t{\n\t\t\t\t\t\t$input->setAttribute( 'checked', 'checked' );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$input->setAttribute( 'onclick',\tstr_replace( '%value%', $this->items->itemAt( $i ), $this->onclick ));\n\t\t\t\t$input->setAttribute( 'ondblclick', str_replace( '%value%', $this->items->itemAt( $i ), $this->ondblclick ));\n\n\t\t\t\t$label = new \\System\\XML\\DomObject( 'label' );\n\t\t\t\t$label->addChild( $input );\n\t\t\t\t$label->addChild( new \\System\\XML\\TextNode( $this->items->keyAt( $i )) );\n\t\t\t\t$fieldset->addChild( $label );\n\t\t\t}\n\n\t\t\treturn $fieldset;\n\t\t}", "public function testRadioGroup()\n {\n $form = new class extends Formulaic\\Post {};\n $form[] = (new Formulaic\\Radio\\Group(\n 'test',\n [1 => 'foo', 2 => 'bar']\n ))->isRequired();\n yield assert($form->valid() != true);\n $_POST['test'] = 1;\n $form = new class extends Formulaic\\Post {};\n $form[] = (new Formulaic\\Radio\\Group(\n 'test',\n [1 => 'foo', 2 => 'bar']\n ))->isRequired();\n yield assert($form->valid());\n yield assert(\"$form\" == <<<EOT\n<form action=\"\" method=\"post\">\n<div>\n<label for=\"test-1\"><input checked id=\"test-1\" name=\"test\" required=\"1\" type=\"radio\" value=\"1\"> foo</label>\n<label for=\"test-2\"><input id=\"test-2\" name=\"test\" required=\"1\" type=\"radio\" value=\"2\"> bar</label>\n</div>\n</form>\nEOT\n );\n }", "function setTypeAsRadioButtons($itemList) {\n\t\t$this->type = \"radio\";\n\t\t$this->seleu_itemlist = $itemList;\n\t}", "private function addElements(): void\n {\n // Add additional form fields\n $this->add([\n 'name' => 'masterFile',\n 'type' => Checkbox::class,\n 'attributes' => [\n 'id' => 'masterFile',\n 'class' => 'form-check-input',\n ],\n 'options' => [\n 'label' => 'Create master export file',\n 'label_attributes' => [\n 'class' => 'form-check-label',\n ],\n ],\n ]);\n\n $this->add([\n 'name' => 'debugTranslations',\n 'type' => Checkbox::class,\n 'attributes' => [\n 'id' => 'debugTranslations',\n 'class' => 'form-check-input',\n ],\n 'options' => [\n 'label' => 'Create debug translations',\n 'label_attributes' => [\n 'class' => 'form-check-label',\n ],\n ],\n ]);\n }", "function AddControls($controls)\r\n {\r\n $this->Controls = $controls;\r\n }", "function createRadios($hiddenName, $outerIndex)\n{\n\t// Loop through and generate all radio buttons, giving unique names \n\tfor($i = 1; $i <= 4; $i++)\n\t{\n\t\t$id = \"radio\" . $outerIndex . $i;\n\t\t$name = \"radio\" . $outerIndex;\n\t\t\n\t\tif(isset($_REQUEST[$name]))\n\t\t\t$currentSelected = $_REQUEST[$name];\n\t\telse\n\t\t\t$currentSelected = \"\";\n\t\t\n\t\techo \"<p>\\n\";\n\t\t$checked = (strcmp($currentSelected, $id) == 0) ? \"checked\" : \"\";\n\t\techo \"<input type=\\\"radio\\\" id=\\\"$id\\\" name=\\\"$name\\\" value=\\\"$id\\\" $checked>\\n\";\n\t\t\n\t\tif($i == 1)\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/egypt.jpg\\\"/>\\n\";\n\t\telse if($i == 2)\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/disney.jpg\\\"/>\\n\";\n\t\telse if($i == 3)\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/theater_masks.jpg\\\"/>\\n\";\n\t\telse\n\t\t\techo \"<img class=\\\"thumb\\\" src=\\\"pictures/wookie.jpg\\\"/>\\n\";\n\t\t\n\t\techo \"</p>\\n\";\n\t}\n}", "function minorite_radio($variables) {\n $element = $variables['element'];\n $element['#attributes']['type'] = 'radio';\n element_set_attributes($element, array('id', 'name', '#return_value' => 'value'));\n\n if (isset($element['#return_value']) && $element['#value'] !== FALSE && $element['#value'] == $element['#return_value']) {\n $element['#attributes']['checked'] = 'checked';\n }\n _form_set_class($element, array('form-custom-radio'));\n\n drupal_add_js(\"\n jQuery('.form-custom-radio').iCheck({\n checkboxClass: 'icheckbox_square-blue',\n radioClass: 'iradio_square-blue',\n increaseArea: '20%' // optional\n });\", array('type' => 'inline', 'scope' => 'footer', 'group' => JS_THEME));\n\n return '<label for=\"' . $element['#id'] . '\"><input' . drupal_attributes($element['#attributes']) . '><span>' . $element['#title'] . '</span></label>';\n}", "protected function getInput()\n\t{\n\t\t// Initialize variables.\n\t\t$html = array();\n\t\t\n\t\t// Initialize some field attributes.\n\t\t$classfs = $this->element['class'] ? ' class=\"radio ' . (string) $this->element['class'] . '\"' : ' class=\"radio\"';\n\t\n\t\t$values = $this->getValues();\n\t\t\n\t\t// Get the field options.\n\t\t$options = $this->getOptions();\n\t\n\t\tforeach ($values as $v => $value)\n\t\t{\n\t\t\t// Start the radio field output.\n\t\t\t$html[] = '<div class=\"control-group\">';\n\t\t\t$html[] = '<div class=\"control-label\">';\n\t\t\t$html[] = '<label id=\"'.$value->value.'\" class=\"hasTip\" title=\"\" for=\"jform_tools\">'.$value->text.'</label>';\n\t\t\t$html[] = '</div>';\n\t\t\t$html[] = '<div class=\"controls\">';\n\t\t\t$html[] = '<fieldset id=\"' . $this->id . $value->value . '\"' . $classfs . '>';\n\t\t\t\n\t\t\t// Build the radio field output.\n\t\t\tforeach ($options as $i => $option)\n\t\t\t{\n\t\t\t\t// Initialize some option attributes.\n\t\t\t\t$checked = ((string) $option->value == (string) $this->value) ? ' checked=\"checked\"' : '';\n\t\t\t\t$class = !empty($option->class) ? ' class=\"' . $option->class . '\"' : '';\n\t\t\t\t$disabled = !empty($option->disable) ? ' disabled=\"disabled\"' : '';\n\t\n\t\t\t\t// Initialize some JavaScript option attributes.\n\t\t\t\t$onclick = !empty($option->onclick) ? ' onclick=\"' . $option->onclick . '\"' : '';\n\t\t\t\t\n\t\t\t\t$html[] = '<input type=\"radio\" id=\"' . $this->id . $value->value . $i . '\" name=\"' . $this->name . '\"' . ' value=\"'\n\t\t\t\t\t. htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '\"' . $checked . $class . $onclick . $disabled . '/>';\n\t\n\t\t\t\t$html[] = '<label for=\"' . $this->id . $value->value . $i . '\"' . $class . '>'\n\t\t\t\t. JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $value->value)) . '</label>';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// End the radio field output.\n\t\t\t$html[] = '</div>';\n\t\t\t$html[] = '</fieldset>';\n\t\t\t$html[] = '</div>';\n\t\t}\n\t\n\t\treturn implode($html);\n\t}", "function guifi_radio_add_radio_submit(&$form, &$form_state) {\n guifi_log(GUIFILOG_TRACE, \"function guifi_radio_add_radio_submit()\",$form_state['values']);\n\n // wrong form navigation, can't do anything\n if ($form_state['values']['newradio_mode'] == NULL) {\n return TRUE;\n }\n\n $edit = $form_state['values'];\n\n $radio = _guifi_radio_prepare_add_radio($edit);\n\n $radio['unfold'] = TRUE;\n $radio['unfold_main'] = TRUE;\n $radio['unfold_antenna'] = TRUE;\n\n $form_state['rebuild'] = TRUE;\n $form_state['values']['radios'][] = $radio;\n\n drupal_set_message(t('Radio %ssid added in mode %mode.',\n array('%ssid' => $radio['ssid'],\n '%mode' => $radio['mode'])));\n\n return;\n}", "function minorite_radios($variables) {\n $element = $variables['element'];\n $attributes = array();\n if (isset($element['#id'])) {\n $attributes['id'] = $element['#id'];\n }\n\n return '<span class=\"form-frame form-input-group\">' . $element['#children'] . '</span>';\n}", "public function radio($options = [], $enclosedByLabel = null)\n {\n return $this->getToggleField(self::TYPE_RADIO, $options, $enclosedByLabel);\n }", "public function setForm() {\n\t\t$translator = Zend_Registry::get('Zend_Translate');\n\t\t$this->setMethod('post');\n\t\t \n\t\t$this->addEnabled();\n\t\t$this->addRentDueDay();\n\t\t$this->addProrationType();\n\t\t$this->addProrationApplyMonth();\n\t\t$this->addSecondMonthDue();\n\t\t$this->addSubmitButton();\n\n\t\t$this->addDisplayGroup( $this->displayGroupArray, 'updateRentProrationSetting',array('legend' => 'rentProrationSettings'));\n\t\t$this->getDisplayGroup('updateRentProrationSetting')->setDecorators(array(\n 'FormElements',\n 'Fieldset', \n\t\t));\n\t}", "function radio_button($object, $field, $tag_value, $options = array()) {\n $form = new FormHelper($object, $field);\n return $form->to_radio_button_tag($tag_value, $options);\n}", "function _setupForm(){\n\n //Defines the call back function for HTML Quickform to use when validating the form.\n $this->form->addFormRule(array(&$this,'XINValidate'));\n\n // display test name\n $this->form->addElement('header', 'instrument_title', \"Radiology Review Form\");\n\n // automatically adds examiner & date of administration\n $this->_addMetadataFields();\n\n $yes_no_option= array(NULL=>\"\", \"no\"=>\"No\", \"yes\"=>\"Yes\", \"not_answered\"=>\"Not Answered\");\n \t$normal_option= array(NULL=>\"\", \"normal\"=>\"Normal\",\"abnormal\"=>\"Abnormal\", \"atypical\"=>\"Atypical\", \"not_answered\"=>\"Not Answered\");\n \t$exclusionaryOrNot = array(NULL=>\"\", \"exclusionary\"=>\"Exclusionary\", \"non_exclusionary\"=>\"Non-Exclusionary\", \"not_answered\"=>\"Not Answered\");\n\n $this->form->addElement('header', null, '3D T1 MP-Rage');\n $this->form->addElement('select', 'Scan_done', 'Was an MRI performed?', $yes_no_option);\n \t$this->form->addElement('static', null, 'If Yes?'); \n\n \t//These date fields were first not added to $this->dateTimeFields so they weren't saving.\n// $this->form->addElement('date', 'MRI_date', 'Date of MRI acquisition');\n//\t $this->form->addElement('date', 'Review_date', 'Date of local radiology review');\n\n $this->addDateElement('MRI', 'Date of MRI acquisition');\n $this->XINRegisterRule(\"MRI_date\", array(\"Scan_done{@}=={@}yes\"), \"Please enter the scan information\", \"MRI_date_group\");\n $this->addDateElement('Review', 'Date of local radiology review');\n $this->XINRegisterRule(\"Review_date\", array(\"Scan_done{@}=={@}yes\"), \"Please enter the scan information\", \"Review_date_group\");\n\n $this->form->addElement('select', 'Review_results', 'Results of local radiology review?', $normal_option);\n $this->XINRegisterRule(\"Review_results\", array(\"Scan_done{@}=={@}yes\"), \"Please enter the scan information\");\n\n $this->form->addElement('select', 'abnormal_atypical_exclusionary', $this->indent . \"If the results are ABNORMAL or ATYPICAL:\", $exclusionaryOrNot);\n $this->XINRegisterRule('abnormal_atypical_exclusionary', array('Review_results{@}=={@}abnormal|atypical'), \"Please indicate if the Abnormal or Atypical review is Exclusionary or Not.\");\n \n \t$this->form->addElement('static', null, $this->indent . $this->indent . 'If Abnormal or Atypical, describe incidental finding(s)'); \n// $this->form->addElement('textarea', 'Incidental_findings', 'Description of incidental findings:');\n $this->addTextAreaElement('Incidental_findings', $this->indent . $this->indent . 'Description of incidental findings:', array(\"Review_results{@}=={@}abnormal\"), \"Please describe the abnormality\");\n }", "protected function _register_controls() {\n\n\t\t\t\t$this->start_controls_section(\n\t\t\t\t\t'section_sc_booked',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'ThemeREX Booked Calendar', 'trx_addons' ),\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'style',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Layout', 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t\t\t'options' => [\n\t\t\t\t\t\t\t\t\t'calendar' => esc_html__('Calendar', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t'list' => esc_html__('List', 'trx_addons')\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t'default' => 'calendar'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'calendar',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Calendar', 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t\t\t'options' => trx_addons_array_merge(array(0 => esc_html__('- Select calendar -', 'trx_addons')), trx_addons_get_list_terms(false, 'booked_custom_calendars')),\n\t\t\t\t\t\t'default' => '0'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'month',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Month', 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t\t\t'options' => trx_addons_array_merge(array(0 => esc_html__('- Current month -', 'trx_addons')), trx_addons_get_list_months()),\n\t\t\t\t\t\t'default' => '0'\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$this->add_control(\n\t\t\t\t\t'year',\n\t\t\t\t\t[\n\t\t\t\t\t\t'label' => __( 'Year', 'trx_addons' ),\n\t\t\t\t\t\t'label_block' => false,\n\t\t\t\t\t\t'type' => \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t\t\t'options' => trx_addons_array_merge(array(0 => esc_html__('- Current year -', 'trx_addons')), trx_addons_get_list_range(date('Y'), date('Y')+25)),\n\t\t\t\t\t\t'default' => '0'\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->end_controls_section();\n\t\t\t}", "public function addform()\n\t{\n\t\t\t$this->setMethod('get');\n\n\t\t\t//echo \"<pre>\";\n\t\t\t//print_r($_GET);\n\t\t\t//echo \"</pre>\";\n\t\t\t$this->addElement('radio', 'Status', array(\n\t\t\t\t'required' => true,\n 'separator' => '&nbsp;',\n\t\t\t\t'multiOptions' => array(\n\t\t\t\t\t'1' => IN_PROGRESS,\n\t\t\t\t\t'2' => 'Closed'\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t\t\t'separator' => '',\n\t\t\t\t'value' => '1' //key of multiOption\n\t\t\t));\n\n\t\t\n\t\t\n\t\t$this->addElement ( \n 'multiCheckbox', 'Functional_type', \n array (\n \n\t\t//'setrequired' => true,\n 'multiOptions' => array(\n '1' => 'Pre Installation',\n '2' => 'Installation',\n '3' => 'Post Installation'\n \n ),\n 'separator' => '',\n\t\t\t\t\t//'value' => '2' // select these 2 values\n )\n);\n\t\n\t\t\t\t\n\t\t\t$this->addElement('submit', 'submit', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t\t\t'label' => 'Submit',\n\t\t\t));\n\t\t\t\n\t\t\t// And finally add some CSRF protection\n\t\t\t$this->addElement('hash', 'csrf', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t));\t\n\t}", "public function radioButtonGroup($items, $options = [])\n {\n return $this->getToggleFieldList(self::TYPE_RADIO, $items, $options, true);\n }", "function __construct()\n {\n parent::__construct();\n \n // create the form\n $this->form = new BootstrapFormBuilder;\n $this->form->setFormTitle(_t('Selection breaks'));\n \n // create the form fields\n $radio = new TRadioGroup('radio');\n $radio2 = new TRadioGroup('radio2');\n $check = new TCheckGroup('check');\n $check2 = new TCheckGroup('check2');\n \n $radio->setLayout('horizontal');\n $radio2->setLayout('horizontal');\n $check->setLayout('horizontal');\n $check2->setLayout('horizontal');\n \n $radio2->setUseButton();\n $check2->setUseButton();\n \n $radio->setBreakItems(5);\n $radio2->setBreakItems(5);\n $check->setBreakItems(5);\n $check2->setBreakItems(5);\n \n $items = array();\n for ($n=1; $n<=20; $n++)\n {\n $items[$n] = $n;\n }\n \n $radio->addItems($items);\n $check->addItems($items);\n $radio2->addItems($items);\n $check2->addItems($items);\n \n foreach ($radio->getLabels() as $key => $label)\n {\n $label->setTip(\"Radio $key\");\n $label->setSize(50);\n }\n foreach ($radio2->getLabels() as $key => $label)\n {\n $label->setTip(\"Radio $key\");\n $label->setSize(50);\n }\n foreach ($check->getLabels() as $key => $label)\n {\n $label->setTip(\"Check $key\");\n $label->setSize(50);\n }\n foreach ($check2->getLabels() as $key => $label)\n {\n $label->setTip(\"Check $key\");\n $label->setSize(50);\n }\n \n // add the fields to the table\n $this->form->addFields( [new TLabel('TRadioGroup:')], [$radio] );\n $this->form->addFields( [new TLabel('TCheckGroup:')], [$check] );\n $this->form->addFields( [new TLabel('TRadioGroup (use button):')], [$radio2] );\n $this->form->addFields( [new TLabel('TCheckGroup (use button):')], [$check2] );\n \n $this->form->addAction( 'Save', new TAction(array($this, 'onSave')), 'fa:save green');\n \n // wrap the page content using vertical box\n $vbox = new TVBox;\n $vbox->style = 'width: 100%';\n $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__));\n $vbox->add($this->form);\n\n parent::add($vbox);\n }", "function form_radio($field, $options) {\n $defaults = array(\n 'wrap' => true,\n 'label' => true,\n 'class' => array('input', 'radio')\n );\n\n $options = array_merge($defaults, $options);\n\n $field = strtolower($field);\n\n $output = '<input type=\"radio\" name=\"' . $field . '\" id=\"' . form__field_id($field) . '\"';\n \n if(!empty($_POST[$field])) {\n $output .= ' value=\"'. $_POST[$field] . '\"';\n }\n\n $output .= ' />';\n\n if($options['wrap']) {\n $options['field'] = $field;\n $output = form__wrap($output, $options);\n }\n\n $error = form_error_message($field);\n if(!empty($error)) {\n $output .= $error;\n }\n\n return html__output($output);\n}", "public function radios()\n {\n $this->items(func_get_args());\n }", "protected function _register_controls()\n {\n\n global $rand_num;\n $rand_num = rand(10000000, 99909999);\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => __('Section Heading Settings', 'careerfy-frame'),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n $this->add_control(\n 'view',\n [\n 'label' => __('Style', 'careerfy-frame'),\n 'type' => Controls_Manager::SELECT2,\n 'default' => 'view1',\n 'options' => [\n 'view1' => __('Style 1', 'careerfy-frame'),\n 'view2' => __('Style 2', 'careerfy-frame'),\n 'view3' => __('Style 3', 'careerfy-frame'),\n 'view4' => __('Style 4', 'careerfy-frame'),\n 'view5' => __('Style 5', 'careerfy-frame'),\n 'view6' => __('Style 6', 'careerfy-frame'),\n 'view7' => __('Style 7', 'careerfy-frame'),\n 'view8' => __('Style 8', 'careerfy-frame'),\n 'view9' => __('Style 9', 'careerfy-frame'),\n 'view10' => __('Style 10', 'careerfy-frame'),\n 'view11' => __('Style 11', 'careerfy-frame'),\n 'view12' => __('Style 12', 'careerfy-frame'),\n 'view13' => __('Style 13', 'careerfy-frame'),\n 'view14' => __('Style 14', 'careerfy-frame'),\n 'view15' => __('Style 15', 'careerfy-frame'),\n 'view16' => __('Style 16', 'careerfy-frame'),\n 'view17' => __('Style 17', 'careerfy-frame'),\n 'view18' => __('Style 18', 'careerfy-frame'),\n ],\n ]\n );\n $this->add_control(\n 's_title',\n [\n 'label' => __('Small Title', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'condition' => [\n 'view' => ['view6','view18']\n ],\n ]\n );\n $this->add_control(\n 'heading_img',\n [\n 'label' => __('Image', 'careerfy-frame'),\n 'type' => Controls_Manager::MEDIA,\n 'dynamic' => [\n 'active' => true,\n ],\n 'default' => [\n 'url' => Utils::get_placeholder_image_src(),\n ],\n 'condition' => [\n 'view' => array('view8', 'view15')\n ],\n ]\n );\n $this->add_control(\n 'h_title',\n [\n 'label' => __('Title', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n\n ]\n );\n $this->add_control(\n 'num_title',\n [\n 'label' => __('Title Number', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'condition' => [\n 'view' => 'view6'\n ],\n ]\n );\n $this->add_control(\n 'h_fancy_title',\n [\n 'label' => __('Fancy Title', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'condition' => [\n 'view' => array('view1', 'view2', 'view3', 'view4', 'view5')\n ],\n ]\n );\n\n $this->add_control(\n 'hc_icon',\n [\n 'label' => __('Icon', 'careerfy-frame'),\n 'type' => Controls_Manager::ICONS,\n 'description' => __(\"This will apply to heading style 3 only.\", \"careerfy-frame\"),\n 'condition' => [\n 'view' => array('view1', 'view2', 'view3', 'view4', 'view5')\n ],\n ]\n );\n $this->add_control(\n 'h_desc',\n [\n 'label' => __('Description', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXTAREA,\n ]\n );\n\n $this->add_control(\n 'text_align',\n [\n 'label' => __('Text Align', 'careerfy-frame'),\n 'type' => Controls_Manager::SELECT2,\n 'default' => 'center',\n 'options' => [\n 'center' => __('Center', 'careerfy-frame'),\n 'left' => __('Left', 'careerfy-frame'),\n\n ],\n 'condition' => [\n 'view' => array('view7', 'view8', 'view17','view18')\n ],\n ]\n );\n $this->end_controls_section();\n\n $this->start_controls_section(\n 'section_style',\n [\n 'label' => __('Heading Style', 'careerfy-frame'),\n 'tab' => Controls_Manager::TAB_STYLE,\n ]\n );\n\n $this->add_control(\n 'hc_title',\n [\n 'label' => __('Color Title', 'careerfy-frame'),\n 'type' => Controls_Manager::COLOR,\n 'condition' => [\n 'view' => array('view1', 'view2', 'view3', 'view4', 'view5')\n ],\n ]\n );\n $this->add_control(\n 's_title_clr',\n [\n 'label' => __('Choose Small Title Color', 'careerfy-frame'),\n 'type' => Controls_Manager::COLOR,\n 'condition' => [\n 'view' => ['view6','view18']\n ],\n ]\n );\n $this->add_control(\n 'hc_title_clr',\n [\n 'label' => __('Choose Title Color', 'careerfy-frame'),\n 'type' => Controls_Manager::COLOR,\n 'description' => __(\"This Color will apply to 'Color Title'.\", \"careerfy-frame\"),\n\n ]\n );\n $this->add_control(\n 'desc_clr',\n [\n 'label' => __('Choose Description Color', 'careerfy-frame'),\n 'type' => Controls_Manager::COLOR,\n 'condition' => [\n 'view' => 'view6'\n ],\n ]\n );\n $this->add_control(\n 'proc_num_clr',\n [\n 'label' => __('Choose Process Number Color', 'careerfy-frame'),\n 'type' => Controls_Manager::COLOR,\n 'condition' => [\n 'view' => 'view6'\n ],\n ]\n );\n $this->add_control(\n 'hc_dcolor',\n [\n 'label' => __('Description Color', 'careerfy-frame'),\n 'type' => Controls_Manager::COLOR,\n 'description' => __(\"This will apply to the description only.\", \"careerfy-frame\"),\n\n ]\n );\n\n\n $this->end_controls_section();\n }", "function addRadio ($name, $value, $checked = NULL, $id = NULL, $class = NULL, $attributes = array ())\n\t{\n\n\t\t$id = (empty($id) ? ' id=\"' . $name . '\"' : ' id=\"' . $id . '\"');\n\t\t$class = (empty($class) ? '' : ' class=\"' . $class . '\"');\n\n\t\t$html = \"<input type=\\\"radio\\\" name=\\\"\" . $name . '\"' . $id . $class . ' value=\"' . $value . '\"' . \"\";\n\n\t\tif (is_bool($checked)) {\n\t\t\tif ($checked === TRUE) {\n\t\t\t\t$html .= \" checked=\\\"checked\\\"\";\n\t\t\t}\n\t\t}\n\n\t\tif ($attributes) {\n\t\t\t$html .= $this -> addAttributes($attributes);\n\t\t}\n\t\t$html .= ' >';\n\n\t\treturn $html;\n\t}", "public function radioGroup($list, $options = []){\n\t\t$group = '';\n\t\t// Loop through content.\n\t\tforeach($list as $key => $value){\n\t\t\t// Create radio.\n\t\t\t$id = $this->name . '_' . $key;\n\t\t\t$elementOptions = [\n\t\t\t\t'id' => $id,\n\t\t\t\t'class' => Html::selectAttribute('class', $options, $this->getDefaultClass('radio'))\n\t\t\t];\n\t\t\tif($this->checkModelValue($key, $this->name)) $elementOptions['checked'] = 'checked';\n\t\t\t$radio = Html::radio($this->name . '[]', $key, $elementOptions);\n\t\t\t// Create label.\n\t\t\t$labelOptions = ['class' => Html::selectAttribute('labelClass', $options, $this->getDefaultClass('checkLabel'))];\n\t\t\t$label = Html::label($value, $id, $labelOptions);\n\t\t\t// Create and fill div wrapper.\n\t\t\t$div = Html::div($radio . $label, ['class' => Html::selectAttribute('wrapClass', $options, $this->getDefaultClass('checkDiv'))]);\n\t\t\t$group .= $div;\n\t\t}\n\t\t// Store element group.\n\t\t$this->elements['control'] = $group;\n\t\t// Return object to method chain.\n\t\treturn $this;\n\t}", "public function addQuestionAndAnswers () {\n global $tpl, $ilTabs;\n $ilTabs->activateTab(\"editQuiz\");\n $this->initAddQuestionAndAnswersForm();\n }", "public function radio ( \\r8\\Form\\Radio $field )\n {\n $this->addField( \"radio\", $field );\n }", "public function initAddQuestionAndAnswersForm () {\n global $tpl, $ilCtrl;\n\n $my_tpl = new ilTemplate(\"tpl.question_and_answers.html\", true, true,\n \"Customizing/global/plugins/Services/Repository/RepositoryObject/MobileQuiz\");\n $rtokenFactory = new ilCtrl();\n $my_tpl->setVariable(\"ACTION_URL\",$this->ctrl->getFormAction($this));\n $my_tpl->setVariable(\"SUBMIT_BUTTON\", $this->txt(\"save\"));\n $my_tpl->setVariable(\"NEW_QUESTION\", $this->txt(\"question_add_head\"));\n $my_tpl->setVariable(\"QUESTION\", $this->txt(\"question_add_text\"));\n $my_tpl->setVariable(\"QUESTION_TYPE\", $this->txt(\"question_add_type\"));\n $my_tpl->setVariable(\"CHOICES\", $this->txt(\"choice_add_texts\"));\n $my_tpl->setVariable(\"VAR_1\", \"value1\");\n $my_tpl->setVariable(\"COMMAND\", \"cmd[createQuestionAndAnswers]\");\n $my_tpl->setVariable(\"MINIMUM\", $this->txt(\"choice_add_numeric_minimum\"));\n $my_tpl->setVariable(\"MAXIMUM\", $this->txt(\"choice_add_numeric_maximum\"));\n $my_tpl->setVariable(\"STEP\", $this->txt(\"choice_add_numeric_steprange\"));\n $my_tpl->setVariable(\"CORRECT_VALUE\", $this->txt(\"choice_add_numeric_correctvalue\"));\n $my_tpl->setVariable(\"TOLERANCE_RANGE\", $this->txt(\"choice_add_numeric_tolerenace_range\"));\n $my_tpl->setVariable(\"SELECTED_SINGLE\", 'selected=\"selected\"');\n\n $my_tpl->setVariable(\"HIDE_NUMERIC_BLOCK\", 'style=\"display:none;\"');\n $my_tpl->setVariable(\"HIDE_SINGLE_CHOICE_BLOCK\", 'style=\"display:none;\"');\n\n $html = $my_tpl->get();\n $tpl->setContent($html);\n }", "protected function regenerateFormControls()\n\t{\n\t\t$form = $this->getForm();\n\n\t\t// regenerate checker's checkbox controls\n\t\tif ($this->hasOperations()) {\n\t\t\t$values = $form->getValues();\n\n\t\t\t$form->removeComponent($form['checker']);\n\t\t\t$sub = $form->addContainer('checker');\n\t\t\tforeach ($this->getRows() as $row) {\n\t\t\t\t$sub->addCheckbox($row[$this->keyName], $row[$this->keyName]);\n\t\t\t}\n\n\t\t\tif (!empty($values['checker'])) {\n\t\t\t\t$form->setDefaults(array('checker' => $values['checker']));\n\t\t\t}\n\t\t}\n\n\t\t// for selectbox filter controls update values if was filtered over column\n\t\tif ($this->hasFilters()) {\n\t\t\tparse_str($this->filters, $list);\n\n\t\t\tforeach ($this->getFilters() as $filter) {\n\t\t\t\tif ($filter instanceof SelectboxFilter) {\n\t\t\t\t\t$filter->generateItems();\n\t\t\t\t}\n\n\t\t\t\tif ($this->filters === $this->defaultFilters && ($filter->value !== NULL || $filter->value !== '')) {\n\t\t\t\t\tif (!in_array($filter->getName(), array_keys($list))) $filter->value = NULL;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// page input & items selectbox\n\t\t$form['page']->setValue($this->paginator->page); // intentionally page from paginator\n\t\t$form['items']->setValue($this->paginator->itemsPerPage);\n\t}", "public function __construct($name, array $values, $checked = null, $indent = null)\n {\n parent::__construct('fieldset');\n\n $this->setName($name);\n $this->setAttribute('class', 'radio-fieldset');\n\n if (null !== $checked) {\n $this->setValue($checked);\n }\n\n if (null !== $indent) {\n $this->setIndent($indent);\n }\n\n // Create the radio elements and related span elements.\n $i = null;\n foreach ($values as $k => $v) {\n $radio = new Input\\Radio($name, null, $indent);\n $radio->setAttributes([\n 'class' => 'radio',\n 'id' => ($name . $i),\n 'value' => $k\n ]);\n\n if (is_array($v) && isset($v['value']) && isset($v['attributes'])) {\n $nodeValue = $v['value'];\n $radio->setAttributes($v['attributes']);\n } else {\n $nodeValue = $v;\n }\n\n // Determine if the current radio element is checked.\n if ((null !== $this->checked) && ($k == $this->checked)) {\n $radio->check();\n }\n\n $span = new Child('span');\n if (null !== $indent) {\n $span->setIndent($indent);\n }\n $span->setAttribute('class', 'radio-span');\n $span->setNodeValue($nodeValue);\n $this->addChildren([$radio, $span]);\n $this->radios[] = $radio;\n $i++;\n }\n }", "function form_radio($name, $value, $start='', $extra='', $array='', $id='') {\n\n\t$value = html_form_escape($value, $override);\n\n\tif ($array != \"\") {\n\t\t$name = $array . \"[\" . $name . \"]\";\n\t}\n\n\tif (!$id) {\n\t\t$id = $name;\n\t}\n\n\tif ($start) {\n\t\treturn \"<input type=\\\"radio\\\" name=\\\"$name\\\" id=\\\"$id\\\" value=\\\"$value\\\" checked=\\\"checked\\\" $extra />\";\n\t} else {\n\t\treturn \"<input type=\\\"radio\\\" name=\\\"$name\\\" id=\\\"$id\\\" value=\\\"$value\\\" $extra />\";\n\t}\n}", "protected function _register_controls() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore\n\n\t\t$this->register_controls();\n\t}", "public function radio($fieldName, $options = array(), $attributes = array())\n {\n // Inline\n $inline = $this->_extractOption('inline', $attributes, false);\n unset($attributes['inline']);\n\n // Gap\n $gap = $this->_extractOption('gap', $attributes, false);\n unset($attributes['gap']);\n\n if($gap) {\n $attributes = $this->addClass($attributes, 'with-gap');\n }\n\n // Legend\n $legend = $this->_extractOption('legend', $attributes, __(Inflector::humanize($this->field())));\n $attributes['legend'] = false;\n\n // Between\n $between = null;\n if (isset($attributes['between'])) {\n $between = $attributes['between'];\n unset($attributes['between']);\n }\n\n // Add Separator attributes\n if(!$inline) {\n $attributes['separator'] = '</p>' . $this->_extractOption('separator', $attributes, '') . '<p>';\n }\n\n $out = parent::radio($fieldName, $options, $attributes);\n\n if(!$inline) {\n $out = $this->Html->tag('p', $out, array('escape'=>false));\n }\n\n if ($legend) {\n $out = $this->Html->useTag('fieldset', '', $this->Html->useTag('legend', $legend) . $between . $out);\n }\n\n return $out;\n }", "function radio( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_RADIO,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "function operator_form(&$form, &$form_state) {\n $form['operator'] = array(\n '#type' => 'radios',\n '#title' => t('On empty input'),\n '#default_value' => $this->operator,\n '#options' => array(\n 'optional' => t('Show All'),\n 'required' => t('Show None'),\n ),\n );\n }", "function create_radio($values = array('16', '24'), $name = 'pace') {\n\n\t// Start the element:\n\tforeach ($values as $value) {\n\t\techo '<input type=\"radio\" name=\"' . $name .'\" value=\"' . $value . '\"';\n\n\t\t// Check for stickiness:\n\t\tif (isset($_POST[$name]) && ($_POST[$name] == $value)) {\n\t\t\techo ' checked=\"checked\"';\n\t\t}\n\n\t// Complete the element:\n\techo \"> $value hrs/week \";\n\t} // End of foreach loop.\n\n}", "public static function radio($form, $model, $field) {\n\n $items = [];\n $checked = [];\n\n foreach ($field['items'] as $key => $value) {\n $items[$value['value']] = $value['text'];\n if (isset( $value['checked'] )) {\n $checked[] = $key+1;\n }\n }\n\n $model-> {$field['name']} = $checked;\n $radio_list = $form->field($model, $field['name'])->radioList($items);\n\n $label = (isset($field['label'])) ? $field['label'] : '';\n\n $radio_list->label($label, ['class' => 'bold']);\n\n return $radio_list;\n }", "public static function convert_radio_field() {\n\n\t\t// Create a new Radio field.\n\t\tself::$field = new GF_Field_Radio();\n\n\t\t// Add standard properties.\n\t\tself::add_standard_properties();\n\n\t\t// Add choices property.\n\t\tself::$field->choices = array();\n\n\t\t// Loop through field options.\n\t\tforeach ( self::$nf_field['list']['options'] as $option ) {\n\n\t\t\t// Add option choice.\n\t\t\tself::$field->choices[] = array(\n\t\t\t\t'text' => $option['label'],\n\t\t\t\t'value' => $option['value'],\n\t\t\t);\n\n\t\t\t// If option is selected, set as default value.\n\t\t\tif ( '1' === $option['selected'] ) {\n\t\t\t\tself::$field->defaultValue = ! empty( $option['value'] ) ? $option['value'] : $option['text'];\n\t\t\t}\n\n\t\t}\n\n\t}", "public function form_field_radio ( $args ) {\n\t\t$options = $this->get_settings();\n\t\t\n\t\tif ( isset( $args['data']['options'] ) && ( count( (array)$args['data']['options'] ) > 0 ) ) {\n\t\t\t$html = '';\n\t\t\tforeach ( $args['data']['options'] as $k => $v ) {\n\t\t\t\t$html .= '<input type=\"radio\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" value=\"' . esc_attr( $k ) . '\"' . checked( esc_attr( $options[$args['key']] ), $k, false ) . ' /> ' . $v . '<br />' . \"\\n\";\n\t\t\t}\n\t\t\techo $html;\n\t\t\t\n\t\t\tif ( isset( $args['data']['description'] ) ) {\n\t\t\t\techo '<span class=\"description\">' . $args['data']['description'] . '</span>' . \"\\n\";\n\t\t\t}\n\t\t}\n\t}", "public function callback_radio( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $html = '<fieldset>';\n\n foreach ( $args['options'] as $key => $label ) {\n $html .= sprintf( '<label for=\"wpuf-%1$s[%2$s]\">', $name_id, $key );\n $html .= sprintf( '<input type=\"radio\" class=\"radio\" id=\"wpuf-%1$s[%2$s]\" name=\"%1$s\" value=\"%2$s\" %3$s %4$s/>', $name_id, $key, checked( $value, $key, false ), $disable );\n $html .= sprintf( '%1$s</label><br>', $label );\n }\n\n $html .= $this->get_field_description( $args );\n $html .= '</fieldset>';\n\n echo $html;\n }", "function radio($name='',$value='',$id='',$attrib='',$rows=''){\n\t\t$n = ''; \n\t\t$brekz = 0;\n\t\t$fldname = str_replace(' ', '_', $name);\n\t\t$radio = '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>';\n\t\tif(isset($_SESSION[$fldname])) $n = $_SESSION[$fldname];\n\t\tif(isset($_POST[$fldname])) $n = $_POST[$fldname]; \n\t\tif(empty($rows)){\n\t\t\t$rows = 4;\n\t\t}\n\t\tforeach($value as $radVal){\n\t\t\t$cndtn = ($n == $radVal)? 'checked=\"checked\"' : '';\n\t\t\tif($brekz == $rows) {\n\t\t\t\t$radio .= '</tr><tr>';\n\t\t\t\t$brekz = 0; \n\t\t\t}\n\t\t\t$radio .= '<td><input type=\"radio\" name=\"'.$fldname.'\" value=\"'.$radVal.'\" '.$cndtn.' id=\"'.$id.'\" '.$attrib.'>'.'<span style=\"font-weight:normal; color:#000;\">'.$radVal.'</span></td>'.\"\\n\";\n\t\t\t$brekz++;\n\t\t}\n\t\t$radio .= \"</tr></table>\";\n\t\techo $radio;\n\t}", "public function __construct(array $attributes){\n parent::__construct($attributes);\n $this->type = 'radio';\n }", "protected function _register_controls() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore \n\n\t\t$this->register_general_content_controls();\n\n\t\t$this->register_count_content_controls();\n\n\t\t$this->register_helpful_information();\n\t}", "public function init(){\n $this->setMethod('post');\n $this->setAttrib('enctype', Zend_Form::ENCTYPE_MULTIPART);\n //'multipart/form-data'\n $this->addPrefixPath('PAP_Form_Element_', 'PAP/Form/Element/', 'Element');\n $this->addDecorators(array('FormElements', 'Form'));\n \n $decorators = array(\n array('ViewHelper'),\n array('Label', array(\n 'class' => 'leftalign ui-button-text'\n )),\n );\n \n //$allowWhiteSpace = new Zend_Validate_Alnum(array('allowWhiteSpace' => true));\n $decoratorsButton = array(\n array('ViewHelper'),\n array('HtmlTag', array('tag' => 'div')),\n );\n \n $control = new Zend_Form_Element_Radio('reportType');\n $control->setLabel('Tipo de Reporte')\n ->setMultiOptions(array(\n 'actual' => 'Período Actual',\n 'pendientes' => 'Cargos Pendientes',\n 'ultimos' => 'Últimos períodos'\n ))\n ->setOptions(array('id' => 'reportType'))\n ->setSeparator('')\n ->setAttrib('label_class', 'leftalign ui-button-text')\n ->setDecorators($decorators);\n $this->addElement($control);\n \n $this->addElement('submit', 'search', array(\n 'ignore' => true,\n 'label' => 'Buscar',\n ));\n $this->search->setAttrib('class', 'buttons')\n ->setDecorators($decoratorsButton);\n \n $this->addElement('button', 'pay', array(\n 'ignore' => true,\n 'label' => 'Informar Pago',\n ));\n $this->pay->setAttrib('class', 'buttons')\n ->setAttrib('onClick', 'showPaymentInfo()')\n ->setDecorators($decoratorsButton);\n \n $this->addElement('button', 'payMP', array(\n 'ignore' => true,\n 'label' => 'Pagar con Mercado Pago',\n ));\n $this->payMP->setAttrib('class', 'buttons')\n ->setAttrib('onClick', 'showMercadoPago()')\n ->setDecorators($decoratorsButton);\n \n $this->addElement('hidden', 'data');\n }", "protected function _register_controls()\n {\n $this->tab_content();\n $this->tab_style();\n }", "public function register_controls()\n {\n }", "function add_specific_settings_controls() {\n\n\t\t$this->add_control(\n\t\t\t'success_message',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Success message', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Your message has been sent!', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'error_message',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Error message', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Oops! I cannot send this email!', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'to_send_email',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Send to', 'themeisle-companion' ),\n\t\t\t\t'default' => get_bloginfo( 'admin_email' ),\n\t\t\t\t'description' => esc_html__( 'Where should we send the email?', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'submit_label',\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Submit', 'themeisle-companion' ),\n\t\t\t\t'default' => esc_html__( 'Submit', 'themeisle-companion' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_responsive_control(\n\t\t\t'align_submit',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Alignment', 'themeisle-companion' ),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'toggle' => false,\n\t\t\t\t'default' => 'left',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'left' => array(\n\t\t\t\t\t\t'title' => __( 'Left', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t),\n\t\t\t\t\t'center' => array(\n\t\t\t\t\t\t'title' => __( 'Center', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t),\n\t\t\t\t\t'right' => array(\n\t\t\t\t\t\t'title' => __( 'Right', 'themeisle-companion' ),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .content-form .submit-form' => 'text-align: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "protected function _register_controls() {\n\n\t\t$this->start_controls_section(\n\t\t\t'content_section',\n\t\t\tarray(\n\t\t\t\t'label' => 'Slider Revolution 6',\n\t\t\t\t'tab' => \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'revslidertitle',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Selected Module:', 'revslider' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'render_type' => 'none',\n\t\t\t\t'placeholder' => '',\n\t\t\t\t'default' => '',\n\t\t\t\t'event' => 'themepunch.selectslider',\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'shortcode',\n\t\t\tarray(\n\t\t\t\t//'type' => \\Elementor\\Controls_Manager::HIDDEN,\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'label' => __( 'Shortcode', 'revslider' ),\n\t\t\t\t'dynamic' => ['active' => true],\n\t\t\t\t'placeholder' => '',\n\t\t\t\t'default' => '',\n\t\t\t)\n\t\t);\n\n\t\t// Advanced \t\t\n\t\t$this->add_control(\n\t\t\t'select_slider',\n\t\t\tarray(\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::BUTTON,\n\t\t\t\t'button_type' => 'default',\n\t\t\t\t'text' => __( '<i type=\"button\" class=\"material-icons\">cached</i> Select Module', 'revslider' ),\n\t\t\t\t'event' => 'themepunch.selectslider',\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->add_control(\n\t\t\t'edit_slider',\n\t\t\tarray(\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::BUTTON,\n\t\t\t\t'button_type' => 'default',\n\t\t\t\t'text' => __( '<i type=\"button\" class=\"material-icons\">edit</i> Edit Module', 'revslider' ),\n\t\t\t\t'event' => 'themepunch.editslider',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'settings_slider',\n\t\t\tarray(\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::BUTTON,\n\t\t\t\t'button_type' => 'default',\n\t\t\t\t'text' => __( '<i type=\"button\" class=\"material-icons\">tune</i> Block Settings', 'revslider' ),\n\t\t\t\t'event' => 'themepunch.settingsslider',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'optimize_slider',\n\t\t\tarray(\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::BUTTON,\n\t\t\t\t'button_type' => 'default',\n\t\t\t\t'text' => __( '<i type=\"button\" class=\"material-icons\">flash_on</i> Optimize File Sizes', 'revslider' ),\n\t\t\t\t'event' => 'themepunch.optimizeslider',\n\t\t\t)\n\t\t);\n\t\t$this->end_controls_section();\t\n\t}", "function guifi_radio_add_wds_form(&$form,&$form_state) {\n guifi_log(GUIFILOG_TRACE,\"function guifi_radio_add_wds_form\",$form_state['newInterface']);\n\n $form_weight = 0;\n $form_state['values']['newInterface']=$form_state['newInterface'];\n\n // store all the form_stat values\n guifi_form_hidden($form,$form_state['values'],$form_weight);\n\n // Initialize filters\n if (empty($form_state['values']['filters']))\n $form_state['values']['filters'] = $form_state['filters'];\n\n drupal_set_title(t(\n 'Choose an AP from the list to link with %ssid',\n array(\n '%ssid'=> $form_state['values']['radios']\n [$form_state['filters']['from_radio']]['ssid'])));\n\n // Filter form\n $form['filters_region'] = guifi_devices_select_filter($form_state, 'guifi_radio_add_wds_confirm_submit');\n\n $form['list-devices'] = guifi_devices_select($form_state['values']['filters'], 'guifi_radio_add_wds_confirm_submit');\n\n return FALSE;\n}", "public function addsButtons() {}", "public function Render(){\n\t\t$disabled = '';\n\t\tif($this->disabled) {\n\t\t\t$disabled = 'disabled=\"disabled\"';\n\t\t}\n\t\t\n\t\t$ratingControl = '';\n\t\tforeach ($this->ratingValues as $key => $ratingValue){\n\t\t\t$class = $this->inputClass;\n\t\t\tif($this->halfRatings > 1){\n\t\t\t\t$class .= ' {split:' . $this->halfRatings . '}'; \n\t\t\t}\n\t\t\t\n\t\t\t$title = '';\n\t\t\tif($this->ratingNames != null){\n\t\t\t\tif($this->isRatingNamesPlusOne){\n\t\t\t\t\t$title = 'title=\"' . $this->ratingNames[$key+1] . '\"';\t\n\t\t\t\t} else {\n\t\t\t\t\t$title = 'title=\"' . $this->ratingNames[$key] . '\"';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$checked = '';\n\t\t\tif($ratingValue == $this->rating){\n\t\t\t\t$checked = 'checked=\"checked\"';\n\t\t\t}\n\t\t\t\n\t\t\t$ratingControl .= '<input name=\"' . $this->inputName . '\" class=\"' . $class . '\" type=\"radio\" value=\"' . $ratingValue . '\" ' . $title . ' ' . $checked . ' ' . $disabled .' />'; \n\t\t}\n\t\t\n\t\treturn $ratingControl;\n\t}", "function theme_radios(&$item) {\n\n\t\t$retval = \"\";\n\n\t\t//\n\t\t// Get a list of our current membership levels for later use.\n\t\t//\n\t\t$levels = $this->get_valid_levels();\n\n\t\t$class = 'form-radios';\n\t\tif (isset($item['#attributes']['class'])) {\n\t\t\t$class .= ' '. $item['#attributes']['class'];\n\t\t}\n\n\t\t//\n\t\t// Do a pre-liminary loop through our values, and set a flag\n\t\t// if we find any default values from a past form submission.\n\t\t//\n\t\t$value_found = false;\n\t\tforeach ($item[\"#options\"] as $key => $value) {\n\t\t\tif (!empty($item[\"#value\"])) {\n\t\t\t\t$value_found = true;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($item[\"#options\"] as $key => $value) {\n\n\t\t\t//\n\t\t\t// If we did not find any radio buttons that were set, then set\n\t\t\t// the first one in the list.\n\t\t\t//\n\t\t\tif (empty($value_found)) {\n\t\t\t\t$item[\"#value\"] = $key;\n\t\t\t\t$value_found = true;\n\t\t\t}\n\n\t\t\t$retval .= $this->radio($item, $item[\"#value\"], $key, $value);\n\n\t\t\t$price = $levels[$key][\"price\"];\n\n\t\t\t//\n\t\t\t// Create a span tag that contains the price for this level, for\n\t\t\t// later use by jQuery.\n\t\t\t//\n\t\t\t$retval .= \"<span id=\\\"reg-level-id-$key\\\" \"\n\t\t\t\t. \"style=\\\"display: none; \\\" \"\n\t\t\t\t. \">$price</span>\\n\";\n\n\t\t}\n\n\t\treturn($retval);\n\n\t}", "function radio( $args ) {\n $current = Premium_Posts::get_settings( $args['key'] ) ? Premium_Posts::get_settings( $args['key'] ) : $args['default'];\n foreach( $args['options'] as $value => $label ) {\n printf(\n '<input type=\"radio\" name=\"%1$s\" value=\"%2$s\" %3$s /> %4$s<br />',\n esc_attr( $args['id'] ),\n esc_attr( $value ),\n $checked = checked( $current, $value, $echo = false ),\n esc_attr( $label )\n );\n }\n }", "public function QuestionnaireForm(){\n\t\t$fields = new FieldList();\n\n\t\t$options = array(\n\t\t\t'Information' => \"I'm trying to find a specific piece of information\",\n\t\t\t'Question' => \"I'm looking for the answer to a particular question\",\n\t\t\t'Topic' => \"I'm researching a particular topic\",\n\t\t\t\"I'm just browsing\"\n\t\t\t);\n\n\t\t$fields->push(new OptionsetField('Purpose', 'What is the purpose of your visit to the IGF website today?', $options));\n\n\t\t// $fields->push()\n\n\t\t$fields->push($field = new TextAreaField('Information', 'What information are you looking for?'));\n\t\t$fields->push($field = new TextAreaField('Question', 'What question are you trying to find an answer to?'));\n\t\t$fields->push($field = new TextAreaField('Topic', 'What topic are you researching?'));\n\t\t$fields->push($field = new TextAreaField('Research', 'What is the purpose of your research?'));\n\t\t\n\n\t\t$actions = new FieldList(new FormAction('submit', 'Next'));\n\n\t\treturn new Form($this, 'QuestionnaireForm', $fields, $actions);\n\t}", "public function getAllControls();", "protected function _register_controls()\n {\n\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => __('Video Testimonials Settings', 'careerfy-frame'),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'vid_testimonial_view',\n [\n 'label' => __('Style', 'careerfy-frame'),\n 'type' => Controls_Manager::SELECT2,\n 'default' => 'view1',\n 'options' => [\n 'view1' => __('Style 1', 'careerfy-frame'),\n 'view2' => __('Style 2', 'careerfy-frame'),\n 'view3' => __('Style 3', 'careerfy-frame'),\n ],\n ]\n );\n\n $repeater = new \\Elementor\\Repeater();\n $repeater->add_control(\n 'vid_testimonial_img', [\n 'label' => __('Image', 'careerfy-frame'),\n 'type' => Controls_Manager::MEDIA,\n 'label_block' => true,\n 'dynamic' => [\n 'active' => true,\n ],\n 'default' => [\n 'url' => Utils::get_placeholder_image_src(),\n ],\n ]\n );\n\n $repeater->add_control(\n 'vid_url', [\n 'label' => __('Video URL', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n \"description\" => __(\"Put Video URL of Vimeo, Youtube.\", \"careerfy-frame\")\n ]\n );\n\n $repeater->add_control(\n 'client_title', [\n 'label' => __('Client Name', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'label_block' => true,\n \"description\" => __('client Title will be applied on style 1 and style 3.', \"careerfy-frame\")\n ]\n );\n\n\n $repeater->add_control(\n 'rank_title', [\n 'label' => __('Client Rank', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'label_block' => true,\n \"description\" => __('Client Rank will be applied on style 1 and style 3.', \"careerfy-frame\")\n ]\n );\n\n $repeater->add_control(\n 'company_title', [\n 'label' => __('Client Company', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'label_block' => true,\n \"description\" => __(\"Client Company will be applied to style 1 and style 2.\", \"careerfy-frame\")\n ]\n );\n\n $repeater->add_control(\n 'testimonial_desc', [\n 'label' => __('Description', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXTAREA,\n 'label_block' => true,\n \"description\" => __(\"Testimonial Description will be applied to style 3 only.\", \"careerfy-frame\")\n ]\n );\n\n $repeater->add_control(\n 'client_location', [\n 'label' => __('Client Location', 'careerfy-frame'),\n 'type' => Controls_Manager::TEXT,\n 'label_block' => true,\n \"description\" => __(\"Client Location will be applied to style 3 only.\", \"careerfy-frame\")\n ]\n );\n $this->add_control(\n 'careerfy_video_testimonial_item',\n [\n 'label' => __('Add video testimonial item', 'careerfy-frame'),\n 'type' => Controls_Manager::REPEATER,\n 'fields' => $repeater->get_controls(),\n 'title_field' => '{{{ company_title }}}',\n ]\n );\n $this->end_controls_section();\n }", "protected function _register_controls()\n\t{\n\n\t\t$this->start_controls_section(\n\t\t\t'section_settings',\n\t\t\t[\n\t\t\t\t'label' => __('Settings', 'algolia-wp-plugin'),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'index_name',\n\t\t\t[\n\t\t\t\t'label' => __('Search Index', 'algolia-wp-plugin'),\n\t\t\t\t'type' => Controls_Manager::TEXT,\n\t\t\t\t'show_label' => true,\n\t\t\t\t'default' => 'wp_searchable_posts',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'facet_filters',\n\t\t\t[\n\t\t\t\t'label' => __('Facet Filters', 'algolia-wp-plugin'),\n\t\t\t\t'type' => Controls_Manager::CODE,\n\t\t\t\t'show_label' => true,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hits_per_page',\n\t\t\t[\n\t\t\t\t'label' => __('Hits Per Page', 'algolia-wp-plugin'),\n\t\t\t\t'show_label' => true,\n\t\t\t\t'type' => Controls_Manager::NUMBER,\n\t\t\t\t'default' => 5,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'localize',\n\t\t\t[\n\t\t\t\t'label' => __('Localize', 'algolia-wp-plugin'),\n\t\t\t\t'type' => Controls_Manager::SWITCHER,\n\t\t\t\t'default' => true,\n\t\t\t\t'frontend_available' => true,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}", "protected function _register_controls()\n\t{\n\t\t// Heading\n\t\t$this->start_controls_section(\n\t\t\t'heading_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Heading', 'elementor'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'heading_typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-additional-fields > h3',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'heading_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Color', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields > h3' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'heading_align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'prefix_class' => '',\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields > h3' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\n\t\t// label\n\t\t$this->start_controls_section(\n\t\t\t'label_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Label', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'label_typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-additional-fields .form-row label',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'label_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Label Color', 'webt'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields .form-row label' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'label_align',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Alignment', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::CHOOSE,\n\t\t\t\t'options' => [\n\t\t\t\t\t'left' => [\n\t\t\t\t\t\t'title' => esc_html__('Left', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-left',\n\t\t\t\t\t],\n\t\t\t\t\t'center' => [\n\t\t\t\t\t\t'title' => esc_html__('Center', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-center',\n\t\t\t\t\t],\n\t\t\t\t\t'right' => [\n\t\t\t\t\t\t'title' => esc_html__('Right', 'elementor'),\n\t\t\t\t\t\t'icon' => 'fa fa-align-right',\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t'prefix_class' => '',\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields .form-row label' => 'text-align: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_section();\n\n\t\t// Input Fields\n\t\t$this->start_controls_section(\n\t\t\t'input_style',\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__('Input Fields', 'webt'),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'input_typography',\n\t\t\t\t'label' => esc_html__('Typography', 'elementor'),\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-additional-fields input , {{WRAPPER}} .woocommerce-additional-fields textarea',\n\t\t\t)\n\t\t);\n\t\t$this->add_control(\n\t\t\t'input_placeholder_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Field Placeholder Input Color', 'webt'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input::placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input::-webkit-input-placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input::-moz-placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input:-ms-input-placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields textarea::placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields textarea::-webkit-input-placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields textarea::-moz-placeholder' => 'color: {{VALUE}};',\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields textarea:-ms-input-placeholder' => 'color: {{VALUE}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_responsive_control(\n\t\t\t'input_padding',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Padding', 'elementor'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', 'em'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input, {{WRAPPER}} .woocommerce-additional-fields textarea' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\n\t\t$this->start_controls_tabs('tabs_input_style');\n\t\t$this->start_controls_tab(\n\t\t\t'tab_input_normal',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Normal', 'webt'),\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'input_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Text Color', 'webt'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input, {{WRAPPER}} .woocommerce-additional-fields textarea' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'input_border',\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-additional-fields input, {{WRAPPER}} .woocommerce-additional-fields textarea',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'input_bg_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Background Color', 'webt'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input, {{WRAPPER}} .woocommerce-additional-fields textarea' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'input_border_radius',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Radius', 'webt'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', '%'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} woocommerce-additional-fields input, {{WRAPPER}} .woocommerce-additional-fields textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Box_Shadow::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'input_box_shadow',\n\t\t\t\t'selector' => '{{WRAPPER}} woocommerce-additional-fields input, {{WRAPPER}} .woocommerce-additional-fields textarea',\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_tab();\n\n\t\t$this->start_controls_tab(\n\t\t\t'tab_input_focus',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Focus', 'webt'),\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'input_focus_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Text Color', 'webt'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input:focus, {{WRAPPER}} .woocommerce-additional-fields textarea:focus' => 'color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Border::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'input_focus_border',\n\t\t\t\t'selector' => '{{WRAPPER}} .woocommerce-additional-fields input:focus, {{WRAPPER}} .woocommerce-additional-fields textarea:focus',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'input_focus_bg_color',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Background Color', 'webt'),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} .woocommerce-additional-fields input:focus, {{WRAPPER}} .woocommerce-additional-fields textarea:focus' => 'background-color: {{VALUE}}',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t\t$this->add_control(\n\t\t\t'input_focus_border_radius',\n\t\t\t[\n\t\t\t\t'label' => esc_html__('Radius', 'webt'),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => ['px', '%'],\n\t\t\t\t'selectors' => [\n\t\t\t\t\t'{{WRAPPER}} woocommerce-additional-fields input:focus, {{WRAPPER}} .woocommerce-additional-fields textarea:focus' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Box_Shadow::get_type(),\n\t\t\t[\n\t\t\t\t'name' => 'input_focus_box_shadow',\n\t\t\t\t'selector' => '{{WRAPPER}} woocommerce-additional-fields input:focus, {{WRAPPER}} .woocommerce-additional-fields textarea:focus',\n\t\t\t]\n\t\t);\n\t\t$this->end_controls_tab();\n\t\t$this->end_controls_tabs();\n\n\t\t$this->end_controls_section();\n\t}", "protected function createRadioList($config)\n {\n if (empty($config['tmpl'])) {\n $config['tmpl'] = ARCH_PATH.'/theme/form/radiolist.php';\n }\n $config['class'] = empty($config['class']) ? \n 'radio' : $config['class'];\n return $this->createCheckList($config);\n }", "public function add_per_input_feedback_fields(): void {\n $qtype = new qtype_recordrtc();\n $mform = $this->_form;\n\n // Work out what widgets we have.\n $widgets = $qtype->get_widget_placeholders($this->get_current_question_text());\n if (!$widgets) {\n // No widgets. Nothing to do.\n return;\n }\n\n // Add them to the form.\n $mform->addElement('header', 'feedbackheader', get_string('feedbackheader', 'qtype_recordrtc'));\n\n foreach ($widgets as $widget) {\n $mform->addElement('editor', $this->feedback_field_name($widget->name),\n get_string('feedbackfor', 'qtype_recordrtc', $widget->name),\n ['rows' => 3], $this->editoroptions);\n $mform->setType($widget->name, PARAM_RAW);\n }\n }", "protected function _register_controls() {\n\t}", "protected function set_up()\n {\n $this->element = new Zend_Form_Element_Radio('foo');\n }", "public function radioButtonBlock($model, $attribute, $htmlOptions = array())\r\n\t{\r\n\t\treturn $this->inputBlock('radiobutton', $model, $attribute, null, $htmlOptions);\r\n\t}", "public function getRadioInput($key)\n\t{\n\t\t$control = parent::getControl();\n\t\t$id = $control->id;\n\t\t$value = $this->value === NULL ? NULL : (string) $this->getValue();\n\t\t$control->id = $id . '-' . $key;\n\t\t$control->checked = (string) $key == $value;\n\t\t$control->value = $key;\n\t\treturn $control;\n\t}", "public function add_meta_box() {\r\n\r\n\t\tif( ! is_wp_error( $this->tax_obj ) && isset($this->tax_obj->object_type ) ) foreach ( $this->tax_obj->object_type as $post_type ):\r\n\t\t\t$label = $this->tax_obj->labels->name;\r\n\t\t\t$id = ! is_taxonomy_hierarchical( $this->taxonomy ) ? 'radio-tagsdiv-'.$this->taxonomy : 'radio-' .$this->taxonomy .'div' ;\r\n\t\t\tadd_meta_box( $id, $label ,array( $this,'metabox' ), $post_type ,'side','core', array( 'taxonomy'=>$this->taxonomy ) );\r\n\t\tendforeach;\r\n\t}", "public function create_input_radio_group($id, $name, $items, $selectedvalue='', $addttext='', $delimiter='', $html_id = '')\n\t{\n\t\t$this->load_form_methods();\n\t\treturn cms_module_CreateInputRadioGroup($this, $id, $name, $items, $selectedvalue, $addttext, $delimiter, $html_id);\n\t}", "protected function _register_controls() {\n\t\t$this->start_controls_section(\n\t\t\t'settings',\n\t\t\t[\n\t\t\t\t'label' => __( 'Brand list Settings', 'xstore-core' ),\n\t\t\t\t'tab' \t=> \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'ids',\n\t\t\t[\n\t\t\t\t'label' \t=>\t__( 'Select Brand', 'xstore-core' ),\n\t\t\t\t'type' \t\t=>\t\\Elementor\\Controls_Manager::SELECT2,\n\t\t\t\t'multiple' \t=>\ttrue,\n\t\t\t\t'options' \t=>\tElementor::get_terms('brand'),\n\t\t\t\t'label_block'\t=> 'true',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hide_a_z',\n\t\t\t[\n\t\t\t\t'label' => __( 'Display A-Z filter', 'xstore-core' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'description' => __( 'Do not forget switch on Customize -> Speed Optimization -> Masonry Scripts', 'xstore-core' ),\n\t\t\t\t'label_on' => __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' => __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' => 'yes',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'columns',\n\t\t\t[\n\t\t\t\t'label' \t=> __( 'Columns', 'xstore-core' ),\n\t\t\t\t'type' \t\t=> \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t'default' \t=> '',\n\t\t\t\t'options' \t=> [\n\t\t\t\t\t'1' => esc_attr__( '1', 'xstore' ),\n\t\t\t\t\t'2' => esc_attr__( '2', 'xstore' ),\n\t\t\t\t\t'3' => esc_attr__( '3', 'xstore' ),\n\t\t\t\t\t'4' => esc_attr__( '4', 'xstore' ),\n\t\t\t\t\t'5' => esc_attr__( '5', 'xstore' ),\n\t\t\t\t\t'6' => esc_attr__( '6', 'xstore' ),\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'alignment',\n\t\t\t[\n\t\t\t\t'label' \t => __( 'Alignment', 'xstore-core' ),\n\t\t\t\t'type' \t\t => \\Elementor\\Controls_Manager::SELECT,\n\t\t\t\t'options' \t => [\n\t\t\t\t\t'left' \t => esc_html__('Left', 'xstore-core') , \n\t\t\t\t\t'center' => esc_html__('Center', 'xstore-core') , \n\t\t\t\t\t'right'\t => esc_html__('Right', 'xstore-core') \n\t\t\t\t],\n\t\t\t\t'default'\t => 'left'\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'capital_letter',\n\t\t\t[\n\t\t\t\t'label' => __( 'Display brands capital letter', 'xstore-core' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' => __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' => __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' => 'yes',\n\t\t\t\t'default' => '',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'brand_image',\n\t\t\t[\n\t\t\t\t'label' => __( 'Brand image', 'xstore-core' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' => __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' => __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' => 'yes',\n\t\t\t\t'default' => '',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'size',\n\t\t\t[\n\t\t\t\t'label' \t=>\t__( 'Images size', 'xstore-core' ),\n\t\t\t\t'type' \t\t=>\t\\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t'condition' => ['brand_image' => 'yes'],\n\t\t\t\t'default' \t=>\t'',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'brand_title',\n\t\t\t[\n\t\t\t\t'label' \t\t=> __( 'Brand title', 'xstore-core' ),\n\t\t\t\t'type'\t\t\t=> \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' \t\t=> __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' \t=> __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' \t=> 'yes',\n\t\t\t\t'default' \t\t=> 'yes',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'tooltip',\n\t\t\t[\n\t\t\t\t'label' \t\t=> __( 'Title with tooltip', 'xstore-core' ),\n\t\t\t\t'type'\t\t\t=> \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' \t\t=> __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' \t=> __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' \t=> 'yes',\n\t\t\t\t'default' \t\t=> '',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'brand_desc',\n\t\t\t[\n\t\t\t\t'label' \t\t=> __( 'Brand description', 'xstore-core' ),\n\t\t\t\t'type'\t\t\t=> \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' \t\t=> __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' \t=> __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' \t=> 'yes',\n\t\t\t\t'default' \t\t=> '',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'hide_empty',\n\t\t\t[\n\t\t\t\t'label' \t\t=> __( 'Hide empty', 'xstore-core' ),\n\t\t\t\t'type'\t\t\t=> \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' \t\t=> __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' \t=> __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' \t=> 'yes',\n\t\t\t\t'default' \t\t=> '',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'show_product_counts',\n\t\t\t[\n\t\t\t\t'label' \t\t=> __( 'Show Product Counts', 'xstore-core' ),\n\t\t\t\t'type'\t\t\t=> \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' \t\t=> __( 'Yes', 'xstore-cores' ),\n\t\t\t\t'label_off' \t=> __( 'No', 'xstore-cores' ),\n\t\t\t\t'return_value' \t=> 'yes',\n\t\t\t\t'default' \t\t=> '',\n\t\t\t]\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'class',\n\t\t\t[\n\t\t\t\t'label' \t=>\t__( 'Extra Class', 'xstore-core' ),\n\t\t\t\t'type' \t\t=>\t\\Elementor\\Controls_Manager::TEXT,\n\t\t\t]\n\t\t);\n\n\t\t$this->end_controls_section();\n\n\t}", "public function buildForm()\n {\n $this\n ->addMeasureList()\n ->addAscendingList()\n ->addTitles(['class' => 'indicator_title_title_narrative', 'narrative_true' => true])\n ->addDescriptions(['class' => 'indicator_description_title_narrative'])\n ->addCollection('reference', 'Activity\\Reference', 'reference', [], trans('elementForm.reference'))\n ->addAddMoreButton('add_reference', 'reference')\n ->addBaselines()\n ->addPeriods()\n ->addAddMoreButton('add_period', 'period')\n ->addRemoveThisButton('remove_indicator');\n }", "public function build_controls()\n\t{\n\t\t$this->add_control( 'title', [\n\t\t\t'label' => __( 'Title' )\n\t\t] );\n\t\t$this->add_control( 'content', [\n\t\t\t'label' => __( 'Content' ),\n\t\t\t'type' => 'textarea'\n\t\t] );\n\t\t$this->add_control( 'link_url', [\n\t\t\t'label' => __( 'URL' )\n\t\t] );\n\t\t$this->add_control( 'link_text', [\n\t\t\t'label' => __( 'Link Text' )\n\t\t] );\n\t\t$this->add_control( 'link_target', [\n\t\t\t'label' => __( 'Open link in a new window/tab' ),\n\t\t\t'type' => 'checkbox',\n\t\t\t'value' => '1'\n\t\t] );\n\t}", "protected function _register_controls()\n {\n $this->start_controls_section(\n 'section_content',\n [\n 'label' => __('Content', 'uap-uganda'),\n ]\n );\n\n $this->add_control(\n 'posts',\n [\n 'label' => __('Number of Posts', 'uap-uganda'),\n 'type' => Controls_Manager::NUMBER,\n 'default' => 2\n ]\n );\n\n $this->add_control(\n 'posts_per_page',\n [\n 'label' => __('Posts Per Page', 'uap-uganda'),\n 'type' => Controls_Manager::NUMBER,\n 'default' => 2\n ]\n );\n\n $this->end_controls_section();\n }", "protected function buildRubricForm($use_scores = false, $has_results = false)\n {\n $translator = Translation::getInstance();\n $this->addElement('category', $translator->getTranslation('Properties'));\n $el = $this->addElement(\n 'checkbox', Rubric::PROPERTY_RUBRIC_USE_SCORES,\n $translator->getTranslation('RubricUseScores')\n );\n $el->setChecked($use_scores);\n if ($has_results) {\n $el->setAttribute('disabled', true);\n $this->add_warning_message('', '', $translator->getTranslation('RubricUseScoresDisabled'));\n }\n\n if ($this->form_type == self::TYPE_CREATE)\n {\n $el = $this->addElement(\n 'checkbox', Rubric::PROPERTY_RUBRIC_USE_RELATIVE_WEIGHTS,\n $translator->getTranslation('RubricUseRelativeWeights')\n );\n $el->setChecked(false);\n if ($has_results) {\n $el->setAttribute('disabled', true);\n $this->add_warning_message('', '', $translator->getTranslation('RubricUseScoresDisabled'));\n }\n\n $this->addElement(\n 'html',\n sprintf(\"<script type=\\\"text/javascript\\\">\n $(document).ready(function() {\n const useScoresInput = $('input[name=%s]');\n const useRelativeWeightsRow = $('.form-row:has(input[name=%s])');\n useScoresInput.on('click', function() {\n if (useScoresInput.is(':checked')) {\n useRelativeWeightsRow.show();\n } else {\n useRelativeWeightsRow.hide();\n }\n });\n if (!useScoresInput.is(':checked')) {\n useRelativeWeightsRow.hide();\n }\n });\n </script>\\n\",\n Rubric::PROPERTY_RUBRIC_USE_SCORES, Rubric::PROPERTY_RUBRIC_USE_RELATIVE_WEIGHTS));\n }\n }", "protected function setGroupType() {\r\n $this->group_type = 'radio';\r\n $this->option_name = $this->name;\r\n }", "function radio( $element )\n\t\t{\t\n\t\t\t$output = \"\";\n\t\t\t$counter = 1;\n\t\t\tforeach($element['buttons'] as $radiobutton)\n\t\t\t{\t\n\t\t\t\t$checked = \"\";\n\t\t\t\tif( $element['std'] == $counter ) { $checked = 'checked = \"checked\"'; }\n\t\t\t\t\n\t\t\t\t$output .= '<span class=\"ace_radio_wrap\">';\n\t\t\t\t$output .= '<input '.$checked.' type=\"radio\" class=\"'.$element['class'].'\" ';\n\t\t\t\t$output .= 'value=\"'.$counter.'\" id=\"'.$element['id'].$counter.'\" name=\"'.$element['id'].'\"/>';\n\t\t\t\t\n\t\t\t\t$output .= '<label for=\"'.$element['id'].$counter.'\">'.$radiobutton.'</label>';\n\t\t\t\t$output .= '</span>';\n\t\t\t\t\n\t\t\t\t$counter++;\n\t\t\t}\t\n\t\t\t\t\n\t\t\treturn $output;\n\t\t}", "function process() {\n // We always call the parent's method\n parent::process();\n $d = $this->getDocument();\n \n // We pass the form our request object and the location of us so the form\n // will make us handle the input (as actually we take care of processing\n // this form) - it could link to any other action as long as it is aware\n // of the form\n $form = new Form($this->getRequest(), new Location($this), Request::METHOD_POST);\n \n // This is how you prepare values for the radio buttons\n $radios = array('visa', 'master');\n \n // This is how we prepare the fields\n $form->addField('text1', new TextInputField('Your name here please', \n new RegexValidator('^[[:alpha:]]+[[:space:]][[:alpha:]]+$')));\n $form->addField('pass1', \n new TextInputField('', new RegexValidator('^[[:digit:]]{16}$'), TextInputField::PASSWORD));\n $form->addField('text2', new TextInputField('', null, TextInputField::TEXTAREA));\n $form->addField('check1', new CheckBoxInputField());\n $form->addField('payment', new RadioButtonInputField('visa', $radios));\n \n // Here we test if the form was correctly submitted\n if($form->isValidSubmission()) {\n // Normally, we would do something useful here and redirect to another page\n // since this form uses the POST method\n $d->setVariable('success', true);\n }\n \n // Here we place the form into the document variable so it can process it\n $d->setVariable('form', $form);\n }", "function GetRateGroupsForm()\n\t{\n\t\t// We do not need to authorise the user as this only draws a subsection of one of the forms\n\n\t\tif (!DBO()->RatePlan->ServiceType->Value)\n\t\t{\n\t\t\t// A service type was not actually chosen\n\t\t\tAjax()->RenderHtmlTemplate(\"PlanAdd\", HTML_CONTEXT_RATE_GROUPS_EMPTY, \"RateGroupsDiv\");\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t// Find all RecordTypes belonging to this ServiceType\n\t\tDBL()->RecordType->ServiceType = DBO()->RatePlan->ServiceType->Value;\n\t\tDBL()->RecordType->OrderBy(\"Name\");\n\t\tDBL()->RecordType->Load();\n\n\t\t// Find all Rate Groups for this ServiceType that aren't archived (archived can equal, 0 (not archived), 1 (archived) or 2 (not yet committed/draft))\n\t\t$strWhere = \"ServiceType = <ServiceType> AND Archived != \" . RATE_STATUS_ARCHIVED;\n\t\tDBL()->RateGroup->Where->Set($strWhere, Array('ServiceType' => DBO()->RatePlan->ServiceType->Value));\n\t\tDBL()->RateGroup->OrderBy(\"Description\");\n\t\tDBL()->RateGroup->Load();\n\n\t\t// If a RatePlan.Id xor BaseRatePlan.Id has been specified then we want to mark which of these rate groups belong to it\n\t\tif (DBO()->RatePlan->Id->Value)\n\t\t{\n\t\t\t$intRatePlanId = DBO()->RatePlan->Id->Value;\n\t\t}\n\t\telseif (DBO()->BaseRatePlan->Id->Value)\n\t\t{\n\t\t\t$intRatePlanId = DBO()->BaseRatePlan->Id->Value;\n\t\t}\n\t\tif (IsSet($intRatePlanId))\n\t\t{\n\t\t\t// Find all the RateGroups currently used by this RatePlan\n\t\t\tDBL()->RatePlanRateGroup->RatePlan = $intRatePlanId;\n\t\t\tDBL()->RatePlanRateGroup->Load();\n\n\t\t\t// Mark the RateGroups that are currently used\n\t\t\tforeach (DBL()->RatePlanRateGroup as $dboRatePlanRateGroup)\n\t\t\t{\n\t\t\t\tforeach (DBL()->RateGroup as $dboRateGroup)\n\t\t\t\t{\n\t\t\t\t\tif ($dboRatePlanRateGroup->RateGroup->Value == $dboRateGroup->Id->Value)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Mark this rate group as being selected\n\t\t\t\t\t\t$dboRateGroup->Selected = TRUE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Render the html template\n\t\tAjax()->RenderHtmlTemplate(\"PlanAdd\", HTML_CONTEXT_RATE_GROUPS, \"RateGroupsDiv\");\n\n\t\t// Set the focus to the Rate Group combobox of the first RecordType to display\n\t\t/* This is not done anymore and can be removed\n\t\tif (DBL()->RecordType->RecordCount() > 0)\n\t\t{\n\t\t\tDBL()->RecordType->rewind();\n\t\t\t$dboFirstRecordType = DBL()->RecordType->current();\n\t\t\t$strElement = \"RateGroup\" . $dboFirstRecordType->Id->Value . \".RateGroupId\";\n\t\t\tAjax()->AddCommand(\"SetFocus\", $strElement);\n\t\t}\n\t\t*/\n\t\treturn TRUE;\n\t}", "public function orderRadio()\n {\n $order = get_site_option($this->orderOption);\n\n if (!is_string($order)) {\n $order = 'DESC';\n }\n ?>\n <p>\n <label>\n <input id=\"<?php echo $this->orderOption; ?>\" <?php echo $order === 'DESC'\n ? 'checked'\n : ''; ?> name=\"<?php echo $this->orderOption; ?>\" type=\"radio\" value=\"DESC\">DESC\n </label><br>\n\n <label>\n <input id=\"<?php echo $this->orderOption; ?>\" <?php echo $order === 'ASC'\n ? 'checked'\n : ''; ?> name=\"<?php echo $this->orderOption; ?>\" type=\"radio\" value=\"ASC\">ASC\n </label>\n </p>\n <?php\n }", "protected function _register_controls() {\n\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => esc_html__( 'Content', 'Alita-extensions' ),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'title',\n [\n 'label' => esc_html__( 'Title', 'Alita-extensions' ),\n 'type' => Controls_Manager::TEXT,\n 'default' => '',\n 'placeholder' => esc_html__( 'Enter title', 'Alita-extensions' ),\n ]\n );\n\n $this->add_control(\n 'show_savings',\n [\n 'label' => esc_html__( 'Show Savings Details', 'Alita-extensions' ),\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => esc_html__( 'Enable', 'Alita-extensions' ),\n 'label_off' => esc_html__( 'Disable', 'Alita-extensions' ),\n 'return_value' => true,\n 'default' => false,\n ]\n );\n\n $this->add_control(\n 'savings_in',\n [\n 'label' => esc_html__( 'Savings in', 'Alita-extensions' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n\n 'amount' => esc_html__( 'Amount', 'Alita-extensions' ),\n 'percentage' => esc_html__( 'Percentage', 'Alita-extensions' ),\n ],\n 'default'=> 'amount',\n ]\n );\n\n $this->add_control(\n 'savings_text',\n [\n 'label' => esc_html__('Savings Text', 'Alita-extensions'),\n 'type' => Controls_Manager::TEXT,\n ]\n );\n\n $this->add_control(\n 'limit',\n [\n 'label' => esc_html__( 'Number of Products to display', 'Alita-extensions' ),\n 'type' => Controls_Manager::TEXT,\n 'description' => esc_html__('Enter the number of products to display', 'Alita-extensions'),\n ]\n );\n\n $this->add_control(\n 'product_choice',\n [\n 'label' => esc_html__( 'Product Choice', 'Alita-extensions' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n\n 'recent' =>esc_html__( 'Recent', 'Alita-extensions' ),\n 'random' =>esc_html__( 'Random', 'Alita-extensions' ),\n 'specific' =>esc_html__( 'Specific', 'Alita-extensions' ),\n ],\n 'default'=> 'recent',\n ]\n );\n\n\n $this->add_control(\n 'product_id',\n [\n 'label' => esc_html__('Product ID', 'Alita-extensions'),\n 'type' => Controls_Manager::TEXT,\n 'description' => esc_html__('Enter the product id seperate by comma(,).', 'Alita-extensions'),\n ]\n );\n\n $this->end_controls_section();\n\n }", "function option_radiobutton($label, $name, $value='', $keys, $comment='') {\r\n\t\techo \"<tr valign='top'><th scope='row'>\" . $label . \"</th>\";\r\n\t\techo \"<td>\";\r\n\r\n\t\tforeach ((array)$keys as $key => $description) {\r\n\t\t\tif ($key == $value)\r\n\t\t\t\t$checked = \"checked\";\r\n\t\t\telse\r\n\t\t\t\t$checked = \"\";\r\n\t\t\techo \"<input type='radio' id='$name' name='$name' value='\" . htmlentities($key, ENT_QUOTES, 'UTF-8') . \"' $checked />\" . $description . \"<br>\";\r\n\t\t}\r\n\t\techo $comment . \"<br>\";\r\n\t\techo \"</td></tr>\";\r\n\t}", "protected function _register_controls()\n {\n \n // start_controls_section -----\n $this->start_controls_section(\n 'general_settings_section',\n [\n 'label' => __('General Settings', 'elementor-hello-world'),\n ]\n );\n $this->add_control(\n 'title',\n [\n 'label' => __('Title', 'elementor-hello-world'),\n 'type' => Controls_Manager::TEXTAREA,\n 'default' => ''\n ]\n );\n $this->add_control(\n 'description',\n [\n 'label' => 'Description',\n 'type' => Controls_Manager::WYSIWYG,\n 'default' => ''\n ]\n );\n \n $this->add_control(\n 'extra_classes',\n [\n 'label' => __('Extra Classes', 'elementor-hello-world'),\n 'type' => Controls_Manager::TEXT,\n 'default' => ''\n ]\n );\n $this->end_controls_section();\n \n $oRepeater = new \\Elementor\\Repeater();\n $this->start_controls_section(\n 'tab_name',\n [\n 'label' => __('Tab Name', 'elementor-hello-world'),\n ]\n );\n $oRepeater->add_control(\n 'tab_name',\n [\n 'label' => __('Tab Name', 'hslanding-elementor'),\n 'type' => \\Elementor\\Controls_Manager::TEXT,\n 'label_block' => true,\n ]\n );\n \n $oRepeater->add_control(\n 'tab_description',\n [\n 'label' => __('Tab Description', 'hslanding-elementor'),\n 'type' => \\Elementor\\Controls_Manager::WYSIWYG,\n 'label_block' => true,\n ]\n );\n \n $oRepeater->add_control(\n 'right_image',\n [\n 'label' => __('Right Image', 'hslanding-elementor'),\n 'type' => \\Elementor\\Controls_Manager::MEDIA,\n 'label_block' => true,\n ]\n );\n $oRepeater->add_control(\n 'right_content',\n [\n 'label' => __('Right Content', 'hslanding-elementor'),\n 'type' => \\Elementor\\Controls_Manager::WYSIWYG,\n 'label_block' => true,\n ]\n );\n $this->add_control(\n 'tabs',\n [\n 'label' => __('Tab Settings', 'plugin-domain'),\n 'type' => \\Elementor\\Controls_Manager::REPEATER,\n 'fields' => $oRepeater->get_controls()\n ]\n );\n \n // end_controls_section -----\n $this->end_controls_section();\n }", "public static function radio($name, $value = NULL, $checked = FALSE, array $attributes = NULL)\n\t{\n\t\t$attributes['type'] = 'radio';\n\n\t\tif ($checked === TRUE)\n\t\t{\n\t\t\t// Make the radio active\n\t\t\t$attributes['checked'] = 'checked';\n\t\t}\n\n\t\treturn Form::input($name, $value, $attributes);\n\t}", "protected function buildCheckboxes(array $options)\n {\n return new Checkbox\\RadioGroup($options);\n }", "function radioButtonList($name,$values,$labels,$selected=\"\",$ids)\n\t{\n\t\t$name = $name;\n\n\t\t$str = '<div class=\"radioButton-list\" >';\n\n\t\tfor($i = 0; $i < sizeof($values); $i++){\n\t\t\tif($values[$i] == $selected){\n\t\t\t\t$str .= FormComponent::radioButton($name, $values[$i], $values[$i], $ids[$i], $labels[$i]);\n\t\t\t}else{\n\t\t\t\t$str .= FormComponent::radioButton($name, $values[$i], \"\", $ids[$i], $labels[$i]);\n\t\t\t}\n\t\t}\n\n\t\t$str .= '</div>';\n\n\t\treturn $str;\n\t}", "public function postController_beforeFormInputs_handler($sender, $args) {\n $sender->ShowCategorySelector = false;\n $categories = CategoryModel::getByPermission();\n\n $categories = array_column($categories, 'Name', 'CategoryID');\n\n echo '<div class=\"P\">';\n echo '<div class=\"Category\">';\n echo $sender->Form->label('Category', 'CategoryID');\n foreach ($categories as $categoryID => $categoryName) {\n $id = 'CategoryID'.$categoryID;\n echo $sender->Form->radio(\n 'CategoryID',\n '',\n [\n 'value' => $categoryID,\n 'class' => 'Hidden',\n 'id' => $id\n ]\n );\n echo $sender->Form->label(\n $categoryName,\n '',\n [\n 'class' => 'CategoryButton',\n 'for' => $id\n ]\n );\n }\n echo '</div></div>';\n }", "public function radio($name, $value = NULL, $checked = FALSE, array $attributes = NULL) {\n $this->load_values($name, $value, $attributes);\n $result = '<li>'.Kohana_Form::radio($name, $value, $checked, $attributes);\n // add error span\n if (isset($this->errors[$name])) {\n $result .= '<span class=\"error\">'.ucfirst($this->errors[$name]).'</span>';\n } else if (isset($attributes['info'])) {\n // else add info span\n $result .= '<span class=\"info\">'.$attributes['info'].'</span>';\n }\n if (isset($attributes['label'])) {\n $result .= ' '.$attributes['label'];\n }\n $result .= '</li>';\n return $result;\n\t}", "public function addRadioF ($fieldname, $value = NULL, $id = NULL, $checked = NULL, array $attributes = array ())\n\t{\n\t\tif (is_array($fieldname)) {\n\t\t\t$attributes = $fieldname;\n\t\t} else {\n\t\t\tis_array($checked) and $attributes = $checked;\n\t\t\t$attributes['name'] = (string)$fieldname;\n\t\t\t$attributes['value'] = (string)$value;\n\n\t\t\t# Added for 1.2 to allow checked true/false. in 3rd argument, used to be attributes\n\t\t\tif (!is_array($checked)) {\n\t\t\t\t// If it's true, then go for it\n\t\t\t\tif (is_bool($checked)) {\n\t\t\t\t\tif ($checked === TRUE) {\n\t\t\t\t\t\t$attributes['checked'] = 'checked';\n\t\t\t\t\t}\n\t\t\t\t} // Otherwise, if the string/number/whatever matches then do it\n\t\t\t\telseif (is_scalar($checked) and $checked == $value) {\n\t\t\t\t\t$attributes['checked'] = 'checked';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (empty($id)) {\n\t\t\t$attributes['id'] = $fieldname;\n\t\t} else {\n\t\t\t$attributes['id'] = $id;\n\t\t}\n\n\t\t$attributes['type'] = 'radio';\n\n\t\treturn html_tag('input', $this -> attr_to_string($attributes));\n\t}", "function miradio($name, $opts, $form = array()) {\n\t$output = \"\";\n\tforeach ($opts as $key => $content) {\n\t\tif (isset($form[$name]) && $form[$name] == $key) {\n\t\t\t// this is the default\n\t\t\t$checked = \"checked=\\\"checked\\\" \";\n\t\t} else {\n\t\t\t$checked = \"\";\n\t\t}\n\t\tif (empty($output)) { // first row\n\t\t\t$output .= \"<input type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$key\\\" $checked/>$content [{\" . $name . \"_MOD}]<br />\";\n\t\t} else {\n\t\t\t$output .= \"<input type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$key\\\" $checked/>$content<br />\";\n\t\t}\n\t}\n\n\treturn $output;\n}", "public function getControls();", "function zen_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {\n return zen_draw_selection_field($name, 'radio', $value, $checked, $parameters);\n }", "function form_radio_yn($name, $array='', $yes='0', $empty='0', $extra='', $value_y = 1, $value_n = 0) {\n\n\tif ($array) {\n\t\t$name = $array . \"[\" . $name . \"]\";\n\t}\n\n\t$id = 'radio_yn' . $name . $array;\n\n\t$html = \"<div style=\\\"white-space: nowrap;\\\">\";\n\n\tif ($empty) {\n\t\tif ($yes == \"1\") {\n\t\t\t$html .= \"<label for=\\\"either_$id\\\">Either:</label> <input id=\\\"either_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"xxxNULLxxx\\\" $extra>\\n\";\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" $extra />\\n\";\n\t\t} elseif ($yes == \"0\") {\n\t\t\t$html .= \"<label for=\\\"either_$id\\\">Either:</label> <input id=\\\"either_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"xxxNULLxxx\\\" $extra>\\n\";\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t} else {\n\t\t\t$html .= \"<label for=\\\"either_$id\\\">Either:</label> <input id=\\\"either_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"xxxNULLxxx\\\" checked=\\\"checked\\\" $extra>\\n\";\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" $extra />\\n\";\n\t\t}\n\t} else {\n\t\tif ($yes) {\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" $extra />\\n\";\n\t\t} else {\n\t\t\t$html .= \"<label for=\\\"yes_$id\\\">Yes:</label> <input id=\\\"yes_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_y\\\" $extra />\\n\";\n\t\t\t$html .= \"<label for=\\\"no_$id\\\">No:</label> <input id=\\\"no_$id\\\" type=\\\"radio\\\" name=\\\"$name\\\" value=\\\"$value_n\\\" checked=\\\"checked\\\" $extra />\\n\";\n\t\t}\n\t}\n\n\t$html .= \"</div>\";\n\n\treturn $html;\n}", "protected function _register_controls() {\n\n $this->start_controls_section(\n 'content_section',\n [\n 'label' => esc_html__( 'Content', 'electro-extensions' ),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n\n $this->add_control(\n 'title',\n [\n 'label' => esc_html__( 'Title', 'electro-extensions' ),\n 'type' => Controls_Manager::TEXT,\n 'default' => '',\n 'placeholder' => esc_html__( 'Enter title', 'electro-extensions' ),\n ]\n );\n\n $this->add_control(\n 'show_savings',\n [\n 'label' => esc_html__( 'Show Savings Details', 'electro-extensions' ),\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => esc_html__( 'Enable', 'electro-extensions' ),\n 'label_off' => esc_html__( 'Disable', 'electro-extensions' ),\n 'return_value' => 'true',\n 'default' => 'false',\n ]\n );\n\n $this->add_control(\n 'savings_in',\n [\n 'label' => esc_html__( 'Savings in', 'electro-extensions' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n\n 'amount' => esc_html__( 'Amount', 'electro-extensions' ),\n 'percentage' => esc_html__( 'Percentage', 'electro-extensions' ),\n ],\n 'default'=> 'amount',\n ]\n );\n\n $this->add_control(\n 'savings_text',\n [\n 'label' => esc_html__('Savings Text', 'electro-extensions'),\n 'type' => Controls_Manager::TEXT,\n ]\n );\n\n $this->add_control(\n 'limit',\n [\n 'label' => esc_html__( 'Number of Products to display', 'electro-extensions' ),\n 'type' => Controls_Manager::TEXT,\n 'description' => esc_html__('Enter the number of products to display', 'electro-extensions'),\n ]\n );\n\n $this->add_control(\n 'product_choice',\n [\n 'label' => esc_html__( 'Product Choice', 'electro-extensions' ),\n 'type' => Controls_Manager::SELECT,\n 'options' => [\n\n 'recent' =>esc_html__( 'Recent', 'electro-extensions' ),\n 'random' =>esc_html__( 'Random', 'electro-extensions' ),\n 'specific' =>esc_html__( 'Specific', 'electro-extensions' ),\n ],\n 'default'=> 'recent',\n ]\n );\n\n\n $this->add_control(\n 'product_id',\n [\n 'label' => esc_html__('Product ID', 'electro-extensions'),\n 'type' => Controls_Manager::TEXT,\n 'description' => esc_html__('Enter the product id seperate by comma(,).', 'electro-extensions'),\n ]\n );\n\n $this->end_controls_section();\n\n }", "function publicRender( $form = null ){\n\t\tif(!empty($this->input->values)):\n\t\t\t$count = 0;\n\t\t\tforeach( $this->input->values as $valueindex => $option):\n\t\t\t$choiceForId = \"choice-{$this->fieldID}-{$count}\";\n\t\t\t$selectOption = $option->value;\n\t\t\tif(isset($this->input->settings->for_admin_email)):\n\t\t\t\t$selectOption = \"{$valueindex}:{$selectOption}\";\n\t\t\tendif;\n\t\t\t?>\n\t\t\t\t<div id=\"<?php echo (\"field-{$choiceForId}\");?>\"><input type=\"radio\" value=\"<?php echo ($selectOption); ?>\" name=\"<?php echo (afFieldName($this->fieldname));?>\" id=\"<?php echo ($choiceForId);?>\" <?php $this->fieldRequired();?>><label for=\"<?php echo ($choiceForId);?>\"><?php echo ($option->display);?></label></div>\n\t\t\t<?php\n\t\t\t$count++;\n\t\t\tendforeach;\n\t\tendif;;\n\t}" ]
[ "0.59776", "0.5916462", "0.5895254", "0.58163023", "0.57622683", "0.56680363", "0.5667913", "0.566016", "0.5640825", "0.5637338", "0.56247836", "0.55170906", "0.5512662", "0.54879177", "0.5462033", "0.5442074", "0.5402858", "0.5401478", "0.5373421", "0.53691757", "0.5365172", "0.5358595", "0.53203773", "0.5307764", "0.5301008", "0.52557135", "0.5254816", "0.5248884", "0.5238795", "0.52381736", "0.52300346", "0.5196761", "0.5177147", "0.5172054", "0.51720256", "0.51698315", "0.5156679", "0.51541895", "0.5144132", "0.5136242", "0.51266325", "0.5126536", "0.51261777", "0.51249033", "0.5115124", "0.51062465", "0.5104458", "0.50957537", "0.5094238", "0.50919783", "0.50854313", "0.50800526", "0.5071097", "0.5066595", "0.5063736", "0.5046088", "0.5028145", "0.50177336", "0.50173223", "0.4999652", "0.49899492", "0.49620843", "0.49584672", "0.4952283", "0.4951229", "0.49474674", "0.4933456", "0.4931745", "0.4928435", "0.49235532", "0.4920002", "0.49184862", "0.4918268", "0.49166873", "0.4910546", "0.4910221", "0.49070323", "0.49000958", "0.48986974", "0.48973644", "0.4893719", "0.48832536", "0.4864434", "0.48622417", "0.48588136", "0.48571384", "0.48505765", "0.4847912", "0.48463702", "0.4843873", "0.48407274", "0.48363614", "0.48336974", "0.48313165", "0.48191324", "0.48131797", "0.4800892", "0.47988042", "0.47973922", "0.47950208", "0.47902521" ]
0.0
-1
Adds select box control that allows single item selection.
public function addSelect($name, $label, $items = NULL, $size = NULL) { return $this[$name] = new SelectBox($label, $items, $size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function theme_select(&$item) {\n\n\t\t$class = array('form-select');\n\t\t_form_set_class($item, $class);\n\n\t\t$size = $item['#size'] ? ' size=\"' . $item['#size'] . '\"' : '';\n\t\t$multiple = isset($item['#multiple']) && $item['#multiple'];\n\n\t\t$retval .= '<select name=\"'\n\t\t\t. $item['#name'] . ''. ($multiple ? '[]' : '') . '\"' \n\t\t\t. ($multiple ? ' multiple=\"multiple\" ' : '') \n\t\t\t. drupal_attributes($item['#attributes']) \n\t\t\t. ' id=\"' . $item['#id'] . '\" ' . $size . '>' \n\t\t\t. form_select_options($item) . '</select>';\n\t\treturn($retval);\n\n\t}", "function select_option()\r\n{}", "function select( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_SELECT,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "public static function renderSelect();", "public function getControl()\n\t{\n\t\t$items = $this->getPrompt() === FALSE ? array() : array('' => $this->translate($this->getPrompt()));\n\t\tforeach ($this->options as $key => $value) {\n\t\t\t$items[is_array($value) ? $key : $key] = $value;\n\t\t}\n\n\t\treturn Nette\\Forms\\Helpers::createSelectBox(\n\t\t\t$items,\n\t\t\tarray(\n\t\t\t\t'selected?' => $this->value,\n\t\t\t\t'disabled:' => is_array($this->disabled) ? $this->disabled : NULL\n\t\t\t)\n\t\t)->addAttributes(BaseControl::getControl()->attrs);\n\t}", "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "public function addTcaSelectItemDataProvider() {}", "private function selectCustomField(): string\n {\n $value = $this->getValue($this->index);\n foreach($this->options as &$option) {\n if($option['key'] == $value) {\n $option['selected'] = true;\n break;\n }\n }\n\n return Template::build($this->getTemplatePath('select.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'options' => $this->options,\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "function build_selection_box($select_name,$select_text,$select_types,$selected_option)\n\t{\n\t\tglobal $template, $lang;\n\t\n\t\t$select = \"<select name='\".$select_name.\"'>\";\n\t\tif (empty($selected_option))\n\t\t{\n\t\t\t$select .= \"<option value=''>\".$lang['Select_A_Option'].\"</option>\";\n\t\t\t$select .= \"<option value=''>------</option>\";\n\t\t}\n\t\n\t\tfor($i = 0; $i < count($select_text); $i++)\n\t\t{\n\t\t\t$selected = ( $selected_option == $select_types[$i] ) ? ' selected=\"selected\"' : '';\n\t\t\t$select .= '<option value=\"' . $select_types[$i] . '\"' . $selected . '>' . $select_text[$i] . '</option>';\n\t\t}\n\t\n\t\t$select .= '</select>';\n\t\n\t\treturn $select;\n\t}", "public function getSelectable() {}", "function select_box($selected, $options, $input_name, $input_id = FALSE, $use_lang = TRUE, $key_is_value = TRUE, $attributes = array())\n\t{\n\t\tglobal $LANG;\n\n\t\t$input_id = ($input_id === FALSE) ? str_replace(array(\"[\", \"]\"), array(\"_\", \"\"), $input_name) : $input_id;\n\n\t\t$attributes = array_merge(array(\n\t\t\t\"name\" => $input_name,\n\t\t\t\"id\" => strtolower($input_id)\n\t\t), $attributes);\n\n\t\t$attributes_str = \"\";\n\t\tforeach ($attributes as $key => $value)\n\t\t{\n\t\t\t$attributes_str .= \" {$key}='{$value}' \";\n\t\t}\n\n\t\t$ret = \"<select{$attributes_str}>\";\n\n\t\tforeach($options as $option_value => $option_label)\n\t\t{\n\t\t\tif (!is_int($option_value))\n\t\t\t\t$option_value = $option_value;\n\t\t\telse\n\t\t\t\t$option_value = ($key_is_value === TRUE) ? $option_value : $option_label;\n\n\t\t\t$option_label = ($use_lang === TRUE) ? $LANG->line($option_label) : $option_label;\n\t\t\t$checked = ($selected == $option_value) ? \" selected='selected' \" : \"\";\n\t\t\t$ret .= \"<option value='{$option_value}'{$checked}>{$option_label}</option>\";\n\t\t}\n\n\t\t$ret .= \"</select>\";\n\t\treturn $ret;\n\t}", "public function enableSelectmenu ()\n {\n $baseUrl = \\Zend_Controller_Front::getInstance()->getBaseUrl();\n $this->view->headScript()->prependFile($baseUrl . '/gems/js/jquery-ui-selectmenu.js');\n $this->view->headLink()->appendStylesheet($baseUrl . '/gems/css/jquery-ui.css');\n $this->view->headLink()->appendStylesheet($baseUrl . '/gems/css/jquery-ui-selectmenu.css');\n \n $js = sprintf(\"jQuery(document).ready(function($) {\n $('#%s').iconselectmenu({width: null}).iconselectmenu('menuWidget').addClass('ui-menu-icons avatar overflow');\n });\",\n $this->id\n );\n \n $this->view->headScript()->appendScript($js);\n }", "protected function createSelectbox($key, $items, $type)\n {\n // Remove dot\n $key = substr($key, 0, -1);\n $selectbox = '<div class=\"col-xs-12 col-sm-4 col-md-3 col-lg-2\">'.LF;\n $selectbox .= '<div class=\"form-control-wrap\">'.LF;\n $selectbox .= '<select name=\"'.$key.'\" class=\"form-control form-control-adapt input-sm\">'.LF;\n $activeKey = '';\n foreach ($items as $itemKey => $itemValue) {\n if ($activeKey == '') {\n $activeKey = $key.'-'.$itemKey;\n }\n $selected = '';\n if (isset($this->valuesFlipped[$key.'-'.$itemKey])) {\n $activeKey = $key.'-'.$itemKey;\n $selected = 'selected=\"selected\"';\n }\n $label = $this->getLanguageService()->sL($itemValue);\n $selectbox .= '<option value=\"'.$key.'-'.$itemKey.'\" '.$selected.'>'.$label.'</option>'.LF;\n }\n $selectbox .= '</select>'.LF;\n $selectbox .= '</div>'.LF;\n $selectbox .= '</div>'.LF;\n $this->valuesAvailable[] = $activeKey;\n $this->checkboxesArray[$type][] = $selectbox;\n }", "public function getSelect();", "public function getSelect();", "public function Do_select_Example1(){\n\n\t}", "function meta_box_select( $args = array(), $value = false ) {\n\t\t\t$name = preg_replace( \"/[^A-Za-z_-]/\", '-', $args['name'] ); ?>\n\t\t\t<p>\n\t\t\t\t<label for=\"<?php echo $name; ?>\"><?php echo $args['title']; ?></label>\n\t\t\t\t<?php if ( !empty( $args['sep'] ) ) echo '<br />'; ?>\n\t\t\t\t<select name=\"<?php echo $name; ?>\" id=\"<?php echo $name; ?>\" style=\"width:60px\">\n\t\t\t\t\t<?php // echo '<option value=\"\"></option>'; ?>\n\t\t\t\t\t<?php $i = 0; foreach ( $args['options'] as $option => $val ) { $i++; ?>\n\t\t\t\t\t\t<option value=\"<?php echo esc_attr( $val ); ?>\" <?php selected( esc_attr( $value ), esc_attr( $val ) ); //if ( $i == 1 ) echo 'selected=\"selected\"'; ?>><?php echo ( !empty( $args['use_key_and_value'] ) ? $option : $val ); ?></option>\n\t\t\t\t\t<?php } ?>\n\t\t\t\t</select>\n\t\t\t\t<?php if ( !empty( $args['description'] ) ) echo '<br /><span class=\"howto\">' . $args['description'] . '</span>'; ?>\n\t\t\t</p>\n\t\t\t<?php\n\t\t}", "private function _select_v1()\n\t{\n\t\t// load custom language file\n\t\t$this->lang->load('select_v1');\n\n\t\t// set default template layout\n\t\t$this->template->set_layout('sales_funnel');\n\n\t\t// set default title\n\t\t$this->template->title($this->lang->line('hosting_title'));\n\n\t\t// prepend javascript and video\n\t\t$this->template->prepend_footermeta('\n\n\t\t\t<script type=\"text/javascript\" src=\"/resources/modules/domain/assets/js/domain_spin.js\"></script>\n\n\t\t\t<script type=\"text/javascript\" src=\"/resources/brainhost/js/flowplayer/flowplayer-3.2.10.min.js\"></script>\n\t\t\t<!-- this will install flowplayer inside previous A- tag. -->\n\t\t\t<script>\n\t\t\t\tflowplayer(\"player\", \"/resources/brainhost/js/flowplayer/flowplayer-3.2.5.swf\", {\n\t\t\t\t\tplugins: {\n\t\t\t\t\t\tcontrols: null,\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t</script>\n\t\t');\n\n\t\t$data['errors'] = $this->_errors;\n\t\t$this->template->build('select_v1', $data);\n\t}", "public function isMultiSelect() {}", "public function select ( \\r8\\Form\\Select $field )\n {\n $this->addField( \"select\", $field );\n }", "function create_selectbox($name, $data, $default='', $param=''){\r\n $out='<select id=\"'.$name.'\" name=\"'.$name.'\"'. (!empty($param)?' '.$param:'') .\">\\n\";\r\n\r\n foreach($data as $key=>$val) {\r\n $out.='<option value=\"' .$key. '\"'. ($default==$key?' selected=\"selected\"':'') .'>';\r\n $out.=$val;\r\n $out.=\"</option>\\n\";\r\n }\r\n $out.=\"</select>\\n\";\r\n\r\n return $out;\r\n}", "function SelectBox($name)\n {\n $this -> name = $name;\n }", "function formulize_inner_custom_box($post) {\n\tglobal $post;\n\t$values = get_post_custom($post->ID);\n\t$selected = isset($values['formulize_select']) ? esc_attr($values['formulize_select']) : ''; \n\t// We'll use this nonce field later on when saving. \n wp_nonce_field( 'my_formulize_nonce', 'formulize_nonce' );\n ?>\n <label for =\"formulize_select\">Choose screen: </label>\n <select name=\"formulize_select\" id=\"formulize_select\">\n <option value=\"test one\" <?php selected($selected, 'test one'); ?>>Test One </option>\n <option value=\"test two\" <?php selected($selected, 'test two'); ?>>Test Two </option>\n </select>\n <?php\n}", "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}", "protected function getSelectedValue() {}", "function ItemSelect($class, $name, $selected=\"\")\r\n\t{\r\n\t\tif(isset($this->MyClasses[$class]['db']['title']))\r\n\t\t{\r\n\t\t\t$Order = array(\"title\"=>\"ASC\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$Order = array();\r\n\t\t}\r\n\t\t$Items = $this->GetRecords($class, array(), $Order, \"\");\r\n\t\t// make options from data\r\n\t\t$Options['0'] = \"...\";\r\n\t\t// check if we have parent_id, make list with children\r\n\t\tif(isset($this->MyClasses[$class]['db']['parent']))\r\n\t\t{\r\n\t\t\t$finarr = array();\r\n\t\t\t$finarr = $this->GetListRecursive($class, \"0\", $finarr, \"\");\r\n\t\t\tforeach($finarr as $burat)\r\n\t\t\t{\r\n\t\t\t\t$BoriArr = explode(\"|:|\", $burat);\r\n\t\t\t\t$Options[$BoriArr[0]] = $BoriArr[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tforeach($Items as $item)\r\n\t\t\t{\r\n\t\t\t\t$Options[$item['id']] = $item['title'];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->makeDropDown($Options, $name, $selected);\r\n\t}", "public function getSelected() {}", "public function getSelected() {}", "function makeSelectElement($list, $pre_selected='', $fullinfo=false, $extra=array())\n{\n $select_elem = '';\n foreach ( $list as $item ) {\n if ( $item->getId() == $pre_selected ) {\n $selected = ' selected';\n } else {\n $selected = '';\n }\n $name = htmlspecialchars($item->getFullName());\n $id = htmlspecialchars($item->getId());\n if ( $fullinfo ) {\n $id = \"{$name} ({$id})\";\n $name = $id;\n }\n $select_elem .= <<<HTML\n <option value=\"{$id}\"{$selected}>{$name}</option>\n\nHTML;\n }\n if ( !empty($extra) ) {\n $select_elem .= <<<HTML\n <option value=\"{$extra['id']}\">{$extra['name']}</option>\nHTML;\n\n }\n return $select_elem;\n}", "public function getIsMultipleSelect(){\n return true;\n }", "static function createSelect($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/select.php\";\n }", "function productSelect($placeholder, $field, $style = 'custom-select', $selected = '')\n {\n return _helperSelect(\n \\App\\Models\\NewProduct::pluck('name', 'slug'),\n $placeholder,\n $field,\n $style,\n $selected\n );\n }", "public function callback_select( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';\n $html = sprintf( '<select class=\"%1$s\" name=\"%2$s\" id=\"%2$s\" %3$s>', $size, $name_id, $disable );\n\n foreach ( $args['options'] as $key => $label ) {\n $html .= sprintf( '<option value=\"%s\" %s>%s</option>', $key, selected( $value, $key, false ), $label );\n }\n\n $html .= sprintf( '</select>' );\n $html .= $this->get_field_description( $args );\n\n echo $html;\n }", "public function select($element) {\n $element = $this->_setRender($element);\n\n $element['_render']['element'] = '';\n $element['_render']['element'] .= '<select id=\"' . $element['#id'] . '\" ';\n $element['_render']['element'] .= $element['_attributes_string'];\n $element['_render']['element'] .= sprintf(' data-wpt-type=\"%s\"', __FUNCTION__);\n /**\n * multiple\n */\n if (array_key_exists('#multiple', $element) && $element['#multiple']) {\n $element['_render']['element'] .= ' multiple=\"multiple\"';\n $element['_render']['element'] .= ' name=\"' . $element['#name'] . '[]\"';\n } else {\n $element['_render']['element'] .= ' name=\"' . $element['#name'] . '\"';\n }\n $element['_render']['element'] .= \">\\r\\n\";\n $count = 1;\n foreach ($element['#options'] as $id => $value) {\n if (!is_array($value)) {\n $value = array('#title' => $id, '#value' => $value, '#type' => 'option');\n }\n $value['#type'] = 'option';\n if (!isset($value['#value'])) {\n $value['#value'] = $this->_count['select'] . '-' . $count;\n $count += 1;\n }\n $element['_render']['element'] .= '<option value=\"' . htmlspecialchars($value['#value']) . '\"';\n $element['_render']['element'] .= $this->_setElementAttributes($value);\n if (array_key_exists('#types-value', $value)) {\n $element['_render']['element'] .= sprintf(' data-types-value=\"%s\"', $value['#types-value']);\n }\n /**\n * type and data_id\n */\n $element['_render']['element'] .= ' data-wpt-type=\"option\"';\n $element['_render']['element'] .= $this->_getDataWptId($element);\n /**\n * selected\n */\n if (array_key_exists('#multiple', $element) && $element['#multiple']) {\n if (is_array($element['#default_value']) && in_array($value['#value'], $element['#default_value'])) {\n $element['_render']['element'] .= ' selected=\"selected\"';\n }\n } elseif ($element['#default_value'] == $value['#value']) {\n $element['_render']['element'] .= ' selected=\"selected\"';\n }\n $element['_render']['element'] .= '>';\n $element['_render']['element'] .= isset($value['#title']) ? $value['#title'] : $value['#value'];\n $element['_render']['element'] .= \"</option>\\r\\n\";\n }\n $element['_render']['element'] .= '</select>';\n $element['_render']['element'] .= PHP_EOL;\n\n $pattern = $this->_getStatndardPatern($element);\n $output = $this->_pattern($pattern, $element);\n $output = $this->_wrapElement($element, $output);\n\n return $output;\n }", "function albumselect($id=\"album\")\r\n{\r\n global $xoopsDB, $myts;\r\n static $select = \"\";\r\n\r\n if ($select == \"\"){\r\n $sql = \"SELECT aid, title, category \".\r\n \"FROM \".$xoopsDB->prefix(\"xcgal_albums\").\" \".\r\n \"ORDER BY title\";\r\n $result = $xoopsDB->query($sql);\r\n $user_handler =& xoops_gethandler('member');\r\n while ($row = $xoopsDB->fetchArray($result)) {\r\n $alb_owner =& $user_handler->getUser($row['category']-FIRST_USER_CAT);\r\n if (is_object ($alb_owner)) $row[\"title\"]= \"- (\".$alb_owner->uname().\")\".$row[\"title\"];\r\n $select .= \"<option value=\\\"\" . $row[\"aid\"] . \"\\\">\" . $myts->makeTboxData4Show($row[\"title\"]) . \"</option>\";\r\n }\r\n $xoopsDB->freeRecordSet($result);\r\n }\r\n\r\n return \"<select name=\\\"$id\\\" class=\\\"listbox\\\">\".$select.\"</select>\";\r\n}", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "public function getDropDown() {}", "public function getDropDown() {}", "function get_operation_type_select_box($operation_type_id)\n {\n $query = \"SELECT * FROM \" . DB_PREFIX . \"_operation_type order by `operation_type_id` \";\n $DBC = DBC::getInstance();\n $stmt = $DBC->query($query);\n $rs = '<select name=\"operation_type_id\">';\n if ($stmt) {\n while ($ar = $DBC->fetch($stmt)) {\n if ($operation_type_id == $ar['operation_type_id']) {\n $selected = 'selected';\n } else {\n $selected = '';\n }\n $rs .= '<option value=\"' . $ar['operation_type_id'] . '\" ' . $selected . '>' . $ar['name'] . '</option>';\n }\n }\n $rs .= '</select>';\n return $rs;\n }", "public function selected()\n {\n parent::selected();\n $this->name = '';\n }", "public function getSelect(): ?Select;", "function getSingleField_typeSelect($fieldConf, $tcaFieldConf) {\n\n\t\t$itemsArr = is_array ($tcaFieldConf['items']) ? $tcaFieldConf['items'] : array();\n\t\tif (isset ($tcaFieldConf['itemsProcFunc'])) {\n\t\t\t$params=array();\n\t\t\t$params['items'] = &$itemsArr;\n\t\t\t\t// NOTE: Some important parameters are missing (table, fieldname etc.), so this won't work with every userfunction like expected. \n\t\t\tt3lib_div::callUserFunction($tcaFieldConf['itemsProcFunc'], $params, $this);\n\t\t}\n\n\t\t\t// Create list of options:\n\t\t$optionsArr = array();\n\t\tforeach ($itemsArr as $keyValueArr) {\n\t\t\tif (is_array ($keyValueArr)) {\n\t\t\t\t$selected = ($this->sessionData['data'][$fieldConf['table']][$fieldConf['name']] == $keyValueArr[1]) ? ' selected=\"selected\"' : '';\n\t\t\t\t$optionsArr[] = '<option value=\"'.htmlspecialchars($keyValueArr[1]).'\"'.$selected.'>'.htmlspecialchars($this->LANG->sL($keyValueArr[0])).'</option>';\t\n\t\t\t}\n\t\t}\t\n\n\t\t\t// Add the various parameters according to TCA configuration:\n\t\t$params = array(\n\t\t\t'name' => isset ($fieldConf['overridename']) ? $fieldConf['overridename'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']',\n\t\t\t'id' => isset ($fieldConf['overrideid']) ? $fieldConf['overrideid'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']',\n\t\t\t'tabindex' => ($this->fieldTabIndex += 10),\n\t\t\t'class' => 'tx-frontendformslib-field tx-frontendformslib-field-' . (intval($fieldConf['config']['tx_frontendformslib_swaphorizontally']) ? 'switched': 'normal'),\n\t\t);\n\n\t\t$output = '\n\t\t\t<select '.$this->implode_assoc_r('=\"', '\" ', $params).'\">\n\t\t\t\t'.implode(chr(10), $optionsArr).'\n\t\t\t</select>\n\t\t';\n\n\t\treturn $output;\n\t}", "public function select_option($id, $value)\n\t{\n\t\t$this->connection()->post(\"element/$id/selected\", array('value' => $value));\n\t}", "function PKG_multiPackageSelectionsSelection($selName,$first,$addFirstEntry=\"\")\n{\n\t$selections = HELPER_array2AssociativeArray(PKG_getAllPackageSelections($addFirstEntry));\n\treturn(HTML_selection($selName,$selections, SELTYPE_selection, true, $first, false, \"\", 5));\n}", "public function setup_selected() {\n\t}", "function os_selectfile_add_meta_box() {\n\t//for general\n\tadd_meta_box('os_selectfile_meta_box', 'Select File', 'os_selectfile_meta_box_html', '', 'side');\n}", "function template_select($name = 'tmpl', $selected = null) {\n echo '<select name=\"'.$name.'\">';\n foreach (array('default', 'lite') as $tmpl) {\n // Print the option\n echo '<option value=\"'.html_entities($tmpl).'\"';\n if ($selected == $tmpl)\n echo ' SELECTED';\n echo '>'.html_entities(str_replace('_', ' ', $tmpl)).'</option>';\n }\n echo '</select>';\n }", "function select($args) {\r\n\t\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\t\tif ($args['multiple']) {\r\n\t\t\t\techo \"<select class='optselect chzn-select' multiple='true' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"\" . \"[]'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . (array_search($value , $args['value']) === false ? '' : 'selected' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t} else {\r\n\t\t\t\techo \"<select class='optselect chzn-select' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . ($args['value'] == $key ? 'selected' : '' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t}\r\n\t\t\t$this->description($args['description']);\r\n\t\t}", "public function setSelect($select);", "function setTypeAsComboBox($itemList) {\n\t\t$this->type = \"select\";\n\t\t$this->seleu_itemlist = $itemList;\n\t}", "public function addSelectBind($name, $label, $items = NULL, $parent, $size = NULL)\n\t{\n\t\treturn $this[$name] = new SelectBoxBind($label, $items, $parent, $size);\n\t}", "public function displayAddFormOption() {\n $L = $this->getLangStrings();\n\n $LANG = Core::$L;\n $root_url = Core::getRootUrl();\n\n $select = mb_strtoupper($LANG[\"word_select\"]);\n\n echo <<< END\n <table width=\"100%\">\n <tr>\n <td width=\"49%\" valign=\"top\">\n <div class=\"grey_box add_form_select\">\n <span style=\"float:right\">\n <input type=\"button\" name=\"form_builder\" class=\"blue bold\" value=\"$select\"\n onclick=\"window.location='$root_url/modules/form_builder/admin/add_form.php'\" />\n </span>\n <div class=\"bold\">{$L[\"module_name\"]}</div>\n <div class=\"medium_grey\">{$L[\"text_form_builder_add_form_section\"]}</div>\n </div>\n </td>\n <td width=\"2%\"> </td>\n <td width=\"49%\"></td>\n </tr>\n </table>\nEND;\n }", "function testSelectedOption(){\n\t\t#mdx:SelectedOption\n\t\t$select = new HtSelect('id_category');\n\t\t$select->options([1=>'Category1',2=>'Category2',3=>'Category3']);\n\t\t$select->context(['id_category'=>2]);\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/option.*?2.*selected/\");\n\t\techo $select;\n\t}", "public function single(){\n $this->debugBacktrace();\n $this->selectModifier = \"single\";\n return $this;\n }", "protected function renderSimulateUserSelectAndLabel() {}", "public function coconutComboBoxStart_long($name) {\necho \"<select name='$name' class='comboBox'>\";\n}", "public function select($value)\n {\n if (is_string($value)) {\n $value = new JavaScriptFunction($value);\n }\n\n return $this->setProperty('select', $value);\n }", "private function addValueToSelectedItems($value){\n if(strlen($value) > 0) {\n $this->selectedItems[] = $value;\n }\n }", "public function addMultiSelect($name, $label, array $items = NULL, $size = NULL)\n\t{\n\t\treturn $this[$name] = new MultiSelectBox($label, $items, $size);\n\t}", "public function getIsSingleSelect(): bool\n {\n return (bool) $this->Type()->getField('SingleSelect');\n }", "function hundope_select_field_render() { \n\t\n}", "function select_tag($name, $options, array $attributes = array())\r\n{\r\n $attributes['name'] = isset($attributes['multiple']) && $attributes['multiple'] === true ? $name.'[]' : $name;\r\n $attributes['id'] = @$attributes['id'] ?: $name;\r\n\r\n if (isset($attributes['include_blank'])) {\r\n $include_blank = array_take($attributes, 'include_blank');\r\n\r\n if ($include_blank) {\r\n $options = tag('option', array(), '').$options;\r\n }\r\n }\r\n\r\n return tag('select', $attributes, $options);\r\n}", "public function __construct() {\n\t\tparent::__construct();\n\n\t\t$this->category = _x( 'Multi Fields', 'xprofile field type category', 'buddypress' );\n\t\t$this->name = _x( 'Drop Down Select Box', 'xprofile field type', 'buddypress' );\n\n\t\t$this->supports_options = true;\n\n\t\t$this->set_format( '/^.+$/', 'replace' );\n\t\tdo_action( 'bp_xprofile_field_type_selectbox', $this );\n\t}", "public function addSelectBox($sLabel, $sName, $aOptions)\n {\n $formControl= \"<div class='form-group'>\"\n .\"<label class='col-sm-offset-1 control-label col-sm-2'>\"\n . \"$sLabel</label>\\n\"\n .\"<div class='col-sm-6'>\\n\"\n . \"<select class='form-control' id='$sName' name='$sName'>\";\n foreach ($aOptions as $option) {\n $formControl.=\"<option value='\".$option['Value'].\"'>\".\n $option['Name'].\"</option>\";\n }\n \n $formControl.= \"</select>\"\n . \"</div>\\n\"\n .\"</div>\\n\";\n \n $this->formBody .= $formControl;\n }", "function widget_select($ddbbtable,$ddbbid,$ddbbname,$selectname,$defaultid=NULL,$condition=NULL) {\n\t\n\t\tglobal $db; \n\n\t\tif (is_array($ddbbname )) $NAME = implode(\",\",$ddbbname);\n\t\telse $NAME = $ddbbname;\n\n\t\tif ($condition != NULL) $where = \" where $condition \";\n\t\telse $where = \"\";\n\n\t\t$retorno = \"<div id='div$selectname' style='display:inline'>\n\t\t \t\t<select class='select' name='$selectname' id='$selectname' required>\n\t\t\t\t <option value=''>Seleccione una opción</option>\";\n\t\n\t\t$sql = \"select $ddbbid,$NAME from $ddbbtable $where order by $NAME\";\n\t\tforeach ($db-> f_sql($sql) as $fila){\n\t\t\t$id = $fila[$ddbbid];\n\t\t\tif ($id == $defaultid) $select = \"selected\";\n\t\t\telse $select = \"\";\n\t\t\tif (is_array($ddbbname )) {\n\t\t\t\tfor ($j=0; $j<count($ddbbname); $j++) {\n\t\t\t\t\t$n = $ddbbname[$j];\n\t\t\t\t\t$NOMBRE .= \" \".$fila[$n];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse $NOMBRE = $fila[$ddbbname];\n\t\t\t$retorno .= \"<option value='$id' $select>\".$NOMBRE.\"</option>\";\t\n\t\t}\n\n\t\t$retorno .= \"</select></div>\";\n\t\treturn $retorno;\n\t}", "function form_element_select( $name, $options, $selected=null )\n{\n\t$out = sprintf( \"<select name=\\\"%s\\\">\\n\", $name );\n\tforeach( $options as $k=>$v )\n\t{\n\t\t$s = ($k==$selected) ? 'selected ' : '';\n\t\t$out .= sprintf( \" <option %svalue=\\\"%s\\\">%s</option>\\n\", $s, $k, $v );\n\t}\n\t$out .= \"</select>\\n\";\n\n\treturn $out;\n}", "public function render()\n {\n return view('components.select');\n }", "public function select($value = null)\n {\n $this->select = $value;\n\n return $this;\n }", "protected function get_model_kenaikan_select(){\n $name = $this->get_model_name();\n $default = array( \"class\" => \"selectpicker col-md-12\" , \"name\" => $name , \"id\" => $name , 'selected' => $this->get_value($name) );\n $items = array(\"Persen\" , \"Peringkat\");\n return $this->get_select( $items , $default);\n }", "function form_select($field, $options) {\n $defaults = array(\n 'wrap' => true,\n 'label' => true,\n 'class' => array('input', 'select'),\n 'options' => array()\n );\n\n $options = array_merge($defaults, $options);\n\n $output = '<select name=\"' . $field . '\" id=\"' . form__field_id($field) . '\">';\n foreach($options['options'] as $value => $text) {\n $output .= '<option value=\"' . $value . '\"';\n if(!empty($_POST[$field]) && $_POST[$field] == $value) {\n $output .= ' selected=\"selected\"';\n }\n $output .= '>' . $text . '</option>';\n }\n $output .= '</select>';\n\n if($options['wrap']) {\n $options['field'] = $field;\n $output = form__wrap($output, $options);\n }\n\n $error = form_error_message($field);\n if(!empty($error)) {\n $output .= $error;\n }\n \n return html__output($output);\n}", "protected function createSelect($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/select.php'\n );\n \n $config['name'] = $this->getDefaultName($config);\n $config['items'] = $this->getListItems($config);\n \n if (!isset($config['selected'])) {\n $config['selected'] = array();\n if ($this->record && !empty($config['items_table'])) {\n $fk = $this->driver->getRelationColumn(\n (string) $this->config['table'],\n (string) $config['items_table']\n );\n if (isset($this->record[$fk])) {\n $config['selected'][] = $this->record[$fk];\n }\n }\n }\n return new \\Arch\\Registry\\View($tmpl, $config);\n }", "function get_selected()\n {\n }", "public function registerClientScript()\n\t{\n\t\t$view = $this->getView ();\n\t\tSimpleDualListboxAsset::register ( $view );\n\t\t$options = Json::encode ( empty ( $this->clientOptions ) ? [ ] : $this->clientOptions );\n\t\t$data = Json::encode ( $this->items_nosel );\n\t\t$view->registerJs ( \"$('#$this->id').listboxdual($options, $data);\" );\n\t}", "public function run() {\n $this->htmlOptions['multiple'] = true;\n if($this->model) {\n $name_id = $this->resolveNameID();\n $input_id = $name_id[1];\n $select_html = CHtml::activeDropDownList($this->model, $this->attribute, $this->data, $this->htmlOptions);\n } else {\n $input_id = $this->attribute;\n $select_html = CHtml::dropDownList($this->attribute, $this->value, $this->data, $this->htmlOptions);\n }\n \n $options=CJavaScript::encode($this->options);\n Yii::app()->clientScript->registerScript('kendoui-multiselect-'.$input_id,\n 'var '.$input_id.' = jQuery(\"#'.$input_id.'\").kendoMultiSelect('.$options.').data(\"kendoMultiSelect\");'\n );\n \n echo $select_html;\n }", "function taskIDSelectBox($a_dbc, $a_specID)\n\t{\n//varDump(__FUNCTION__, 'a_specID', $a_specID);\n \t\t$div = (int)($a_specID/1000);\n\n \t\tif($div == 0)\n \t\t\t$div = 1;\n//varDump(__FUNCTION__, 'div', $div);\n\n \t\t$sql = \"SELECT * FROM `task` WHERE `taskDivision`=\" . $div;\n \t\t$result = @mysqli_query($a_dbc, $sql);\n//varDump(__FUNCTION__, 'result', $result);\n\n\t\techo \"<select class='taskIDSelect'>\\n\";\n\n \t\twhile($row = @mysqli_fetch_array($result))\n \t\t{\n \t\t\t// if current value, make it selected.\n \t\t\tif($row['TaskID'] == $a_specID){\n \t\t\t\techo \"<option value='\" . $row['TaskID'] . \"' selected>\" . $row['TaskID']. \"-\" . htmlspecialchars($row['TaskName'], ENT_QUOTES) . \"</option>\\n\";\n \t\t\t}\n\t\t\telse\n \t\t\t\techo \"<option value='\" . $row['TaskID'] . \"'>\" . $row['TaskID']. \"-\" . htmlspecialchars($row['TaskName'], ENT_QUOTES) . \"</option>\\n\";\n\t\t}\n\t\techo \"</select>\\n\";\n \t\techo \"<span class='ui-icon ui-icon-info' title='\" . htmlspecialchars($row['TaskDescription'], ENT_QUOTES) . \"'></span>\";\n\t}", "function iselect($name, $values_array, $selected_item = false, $label = false, $mode = false,\r\n $id = false)\r\n{\r\n\r\n $number = use_key($name);\r\n $id_attribute = id_attribute($id, $number);\r\n if ($label === false)\r\n $label = $name;\r\n\r\n echo '<label>' . $label . '<select name=\"' . $name . '\" ' . $id_attribute . '>';\r\n foreach ($values_array as $label => $value) {\r\n switch ($mode) {\r\n case \"key\":\r\n $value = $label;\r\n break;\r\n case \"value\":\r\n $label = $value;\r\n break;\r\n }\r\n $selected_item = ($selected_item === $label) ? \" selected \" : \"\";\r\n if (!trim($label)) {\r\n $label = \" -- Select -- \";\r\n }\r\n echo '<option ' . $selected_item . ' value=\"' . $value . '\">' . $label .\r\n '</option>';\r\n }\r\n echo '</select></label>';\r\n return $id;\r\n\r\n}", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "function barnelli_wp_select( $field ) {\n\tglobal $thepostid, $post, $vision;\n\n\t$thepostid \t\t\t\t= empty( $thepostid ) ? $post->ID : $thepostid;\n\t$field['class'] \t\t= isset( $field['class'] ) ? $field['class'] : 'select short';\n\t$field['wrapper_class'] = isset( $field['wrapper_class'] ) ? $field['wrapper_class'] : '';\n\t$field['value'] \t\t= isset( $field['value'] ) ? $field['value'] : get_post_meta( $thepostid, $field['id'], true );\n\n\techo '<p class=\"form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '\"><label for=\"' . esc_attr( $field['id'] ) . '\">' . wp_kses_post( $field['label'] ) . '</label><select id=\"' . esc_attr( $field['id'] ) . '\" name=\"' . esc_attr( $field['id'] ) . '\" class=\"' . esc_attr( $field['class'] ) . '\">';\n\n\tforeach ( $field['options'] as $key => $value ) {\n\n\t\techo '<option value=\"' . esc_attr( $key ) . '\" ' . selected( esc_attr( $field['value'] ), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>';\n\n\t}\n\n\techo '</select> ';\n\n\tif ( ! empty( $field['description'] ) ) {\n\n\t\tif ( isset( $field['desc_tip'] ) ) {\n\t\t\techo '<img class=\"help_tip\" data-tip=\"' . esc_attr( $field['description'] ) . '\" src=\"' . $vision->plugin_url() . '/assets/images/help.png\" height=\"16\" width=\"16\" />';\n\t\t} else {\n\t\t\techo '<span class=\"description\">' . wp_kses_post( $field['description'] ) . '</span>';\n\t\t}\n\n\t}\n\techo '</p>';\n}", "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}", "public function draw_product_selection() {\n\n // Get products in the wooCommerce store\n $products = $this->getProducts();\n\n echo \"<select name='product'>\";\n /** @var Product $product */\n foreach ($products as $product) {\n echo \"<option value='\".$product->getId().\"'>\".$product->getTitle().\"</option>\";\n }\n echo \"</select>\";\n }", "public function addSelect($column);", "public function get_select() {\r\n\t\t$html = '';\r\n\t\tforeach ( $this->taxonomies as $tax ) {\r\n\t\t\t$options = sprintf( '<option value=\"\">%s %s</option>', __('View All', 'themify-portfolio-posts'),\r\n\t\t\tget_taxonomy($tax)->label );\r\n\t\t\t$class = is_taxonomy_hierarchical( $tax ) ? ' class=\"level-0\"' : '';\r\n\t\t\tforeach ( get_terms( $tax ) as $taxon ) {\r\n\t\t\t\t$options .= sprintf( '<option %s%s value=\"%s\">%s%s</option>', isset( $_GET[$tax] ) ? selected( $taxon->slug, $_GET[$tax], false ) : '', '0' !== $taxon->parent ? ' class=\"level-1\"' : $class, $taxon->slug, '0' !== $taxon->parent ? str_repeat( '&nbsp;', 3 ) : '', \"{$taxon->name} ({$taxon->count})\" );\r\n\t\t\t}\r\n\t\t\t$html .= sprintf( '<select name=\"%s\" id=\"%s\" class=\"postform\">%s</select>', esc_attr( $tax ), esc_attr( $tax ), $options );\r\n\t\t}\r\n\t\techo $html;\r\n\t}", "function lahb_custom_select( $settings ) {\n\n\t$title\t\t\t= isset( $settings['title'] ) ? $settings['title'] : '';\n\t$id\t\t\t\t= isset( $settings['id'] ) ? $settings['id'] : '';\n\t$default\t\t= isset( $settings['default'] ) ? $settings['default'] : '';\n\t$options\t\t= isset( $settings['options'] ) ? $settings['options'] : '';\n\t$option\t\t\t= '';\n\n\tif ( $options ) :\n\t\tforeach ( $options as $opt_value => $opt_name ) :\n\t\t\t$active = ( $opt_value == $default ) ? ' class=\"lahb-active\"' : '' ;\n\t\t\t$option .= '<span data-value=\"' . esc_attr( $opt_value ) . '\"' . $active . '>' . $opt_name . '</span>';\n\t\tendforeach;\n\telse :\n\t\t$option .= '<span>' . esc_html__( 'Empty', 'lastudio-header-builder' ) . '</span>';\n\tendif;\n\n\t$output = '\n\t\t<div class=\"lahb-field w-col-sm-12\">\n\t\t\t<h5>' . $title . '</h5>\n\t\t\t<div class=\"lahb-custom-select wp-clearfix\">\n\t\t\t\t<div class=\"lahb-opts wp-clearfix\">\n\t\t\t\t' . $option . '\n\t\t\t\t</div>\n\t\t\t\t<input type=\"text\" class=\"lahb-field-input lahb-field-custom-select\" data-field-name=\"' . esc_attr( $id ) . '\" data-field-std=\"' . esc_attr( $default ) . '\" placeholder=\"' . esc_html__( 'Custom', 'lastudio-header-builder' ) . '\">\n\t\t\t</div>\n\t\t</div>\n\t';\n\n\tif ( ! isset( $settings['get'] ) ) :\n\t\techo '' . $output;\n\telse :\n\t\treturn $output;\n\tendif;\n\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}", "function select($name = \"txt\", $alttext = \"\", $selecttype = \"array\", $lookup = \"\", $value = \"\", $event = \"\", $cssid = \"\", $readonly = false, $nochoose = true) {\n\n if (isset($_REQUEST[$name])) {\n if ($value == \"\") {\n $value = $_REQUEST[$name];\n }\n }\n $lookuplist = [];\n if ($selecttype == \"array\" || $selecttype == \"multiarray\") {\n\n if (is_array($lookup)) {\n $lookuplist = $lookup;\n } else {\n $lookuplist = explode(\"|\", $lookup);\n }\n } else if ($selecttype == \"sql\" || $selecttype == \"multisql\") {\n $lookuprow = $this->DEB->getRows($lookup, DEB_ARRAY); //format [0] = NAME\n\n\n foreach ($lookuprow as $irow => $row) {\n $lookuplist[$irow] = $row[0] . \",\" . $row[1]; //make it in the form of array\n }\n }\n //make options for the type of select etc .....\n if ($selecttype == \"multiarray\" || $selecttype == \"multisql\") {\n $options = \"multiple=\\\"multiple\\\"\";\n } else {\n $options = \"\";\n }\n if ($readonly == true) {\n $disabled = \"disabled=\\\"disabled\\\"\";\n } else {\n $disabled = \"\";\n }\n //default text\n if ($alttext == \"\") {\n $alttext = \"Choose\";\n }\n if ($cssid != \"\") {\n $cssid = \"id=\\\"{$cssid}\\\"\";\n } else {\n $cssid = \"\";\n }\n $html = \"<select class=\\\"form-control\\\" $cssid name=\\\"{$name}\\\" $options {$event} $disabled >\";\n\n if (!$nochoose) {\n $html .= \"<option value=\\\"\\\">{$alttext}</option>\";\n }\n\n foreach ($lookuplist as $lid => $option) {\n\n $toption = explode(\",\", $option);\n if (count($toption) != 2) {\n $toption[0] = $lid;\n $toption[1] = $option;\n }\n\n $option = $toption;\n\n if (trim($value) == trim($option[0])) {\n $html .= \"<option selected=\\\"selected\\\" value=\\\"{$option[0]}\\\">{$option[1]}</option>\";\n } else {\n $html .= \"<option value=\\\"{$option[0]}\\\">{$option[1]}</option>\";\n }\n }\n $html .= \"</select>\";\n return $html;\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 function select($value) {\n if (is_string($value)) {\n $value = new \\Kendo\\JavaScriptFunction($value);\n }\n\n return $this->setProperty('select', $value);\n }", "public function select($value) {\n if (is_string($value)) {\n $value = new \\Kendo\\JavaScriptFunction($value);\n }\n\n return $this->setProperty('select', $value);\n }", "static public function select($name = '', $options = array(), $selectedItems = \"\", $attrib = \"\")\n {\n $options = (array)($options);\n if(!is_array($options) or empty($options)) return false;\n\n /* The begin. */\n $id = $name;\n if(strpos($name, '[') !== false) $id = trim(str_replace(']', '', str_replace('[', '', $name)));\n $string = \"<select name='$name' id='$id' $attrib>\\n\";\n\n /* The options. */\n $selectedItems = \",$selectedItems,\";\n foreach($options as $key => $value)\n {\n $key = str_replace('item', '', $key);\n $selected = strpos($selectedItems, \",$key,\") !== false ? \" selected='selected'\" : '';\n $string .= \"<option value='$key'$selected>$value</option>\\n\";\n }\n\n /* End. */\n return $string .= \"</select>\\n\";\n }", "public function select($name, $id = '')\n\t{\n\t\treturn sprintf('<select name=\"pets\" id= \"pet-select\">', $name, $id);\n\t}", "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 get_meta_select( $args = array(), $value = false ) { \r\r\n extract($args);\r\r\n ?>\r\r\n\t<tr>\r\r\n\t\t<th style=\"width:10%;\"><label for=\"<?php\t \t echo $args['name']; ?>\"><?php\t \t echo $args['title']; ?></label></th>\r\r\n\t\t<td>\r\r\n\t\t\t<select name=\"<?php\t \t echo $args['name']; ?>\" id=\"<?php\t \t echo $args['name']; ?>\">\r\r\n\t\t\t\t<option value=\"\"></option>\r\r\n\t\t\t\t<?php\t \t foreach ( $args['options'] as $option => $val ) : ?>\r\r\n\t\t\t\t\t<option <?php\t \t if ( htmlentities( $value, ENT_QUOTES ) == $val ) echo ' selected=\"selected\"'; ?> value=\"<?php\t \t echo $val; ?>\"><?php\t \t if ( __( 'Template:', 'hybrid') == $args['title'] ) echo $option; else echo $val; ?></option>\r\r\n\t\t\t\t<?php\t \t endforeach; ?>\r\r\n\t\t\t</select>\r\r\n\t\t\t<br /><small><?php\t \t echo $args['description']; ?></small>\r\r\n\t\t</td>\r\r\n\t</tr>\r\r\n\t<?php\t \t\r\r\n}", "function create_application_select($id = null, $editable = true)\n{\n $disabled = $editable? '' : 'disabled';\n\n $applicationIds = get_all_applications();\n\n echo '<select class=\"form-control\" name=\"application\" id=\"application\" required ' . $disabled . '>';\n\n foreach ($applicationIds as $applicationId => $applicationName)\n {\n $selected = ($applicationId == $id) ? 'selected' : '';\n\n echo '<option value=\"' . $applicationId . '\" ' . $selected . '>' . $applicationName . '</option>';\n }\n\n echo '</select>';\n}", "public function select() {\n return $this->getActionByName('Select');\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 testNewSelect()\n {\n $this->todo('stub');\n }", "public function smtp_secure_select( $args ) {\n $field_id = $args['label_for'];\n $options = $args['options'];\n $value = get_option( $field_id, $args['default'] );\n \n printf( \"<select name='%s' id='%s'>\", $field_id, $field_id );\n\n foreach ( $options as $option ) {\n $selected = '';\n\n if ( $value == $option ) {\n $selected = 'selected';\n }\n\n printf( \"<option value=%s %s>%s</option>\", $option, $selected, $option );\n }\n \n printf( \"</select>\" );\n }", "public function makeElement()\r\n\t{\r\n\t\t$selected = $this->value;\r\n\t\tif (empty($selected)) {\r\n\t\t\t$selected = $this->default;\r\n\t\t}\r\n\t\t$id = (isset($this->attributes['id'])) ? $this->attributes['id'] : $this->name;\r\n\t\t$class = (isset($this->attributes['class'])) ? $this->attributes['class'] : 'selectbox';\r\n\t\t$out = \"<select name='{$this->name}' id='{$id}' class='{$class}'\";\r\n\t\t$out .= $this->renderAttributes() . \">\\n\";\r\n\t\tforeach ($this->options as $value => $option) {\r\n\t\t\t$out .= \"\\t<option value='$value'\";\r\n\t\t\t// Triple equals required here. 0 == 'some string' evaluates to true in PHP.\r\n\t\t\tif ($value === $selected) {\r\n\t\t\t\t$out .= \" selected='selected'\";\r\n\t\t\t}\r\n\t\t\t$out .= \">$option</option>\\n\";\r\n\t\t}\r\n\t\t$out .= \"</select>\\n\";\r\n\r\n\t\treturn $out;\r\n\t}", "function selMethod($selmethid, $methval) {\n\techo \"<SELECT ID=$selmethid CLASS=selmeth>\\n\";\n\techo \"<OPTION VALUE='PUT'\";\n\tif ($methval == \"PUT\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">PUT</OPTION>\\n\";\n\techo \"<OPTION VALUE='POST'\";\n\tif ($methval == \"POST\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">POST</OPTION>\\n\";\n\techo \"<OPTION VALUE='DELETE'\";\n\tif ($methval == \"DELETE\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">DELETE</OPTION>\\n\";\n\techo \"</SELECT>\\n\";\n\t\n\techo \"<SCRIPT>\\$(\\\"#$selmethid\\\").selectmenu({width : 'auto'});</SCRIPT>\\n\";\n}" ]
[ "0.61533844", "0.59298015", "0.5775667", "0.5734499", "0.573293", "0.5730076", "0.563047", "0.56237876", "0.5499041", "0.54006255", "0.5398956", "0.5361821", "0.53601706", "0.53517205", "0.53517205", "0.534616", "0.53427726", "0.53275657", "0.5317555", "0.52860355", "0.5257607", "0.5253265", "0.52491635", "0.5230172", "0.5228084", "0.5213846", "0.5209276", "0.5209276", "0.5192122", "0.51899403", "0.5183839", "0.517638", "0.5169504", "0.51693135", "0.51638263", "0.51296914", "0.51119804", "0.51119804", "0.5105097", "0.50868475", "0.508667", "0.5071595", "0.5070973", "0.506044", "0.50591755", "0.50506717", "0.5042699", "0.50313956", "0.50210905", "0.5011326", "0.4997179", "0.49948075", "0.4988987", "0.49832153", "0.49765977", "0.49753287", "0.49745724", "0.49708158", "0.49630627", "0.49625927", "0.49623907", "0.49599978", "0.49597478", "0.49539784", "0.49525693", "0.49511206", "0.49491626", "0.49487057", "0.49457112", "0.49415582", "0.49334213", "0.49281108", "0.49177817", "0.49124318", "0.4911779", "0.49091926", "0.4904923", "0.4904923", "0.4897344", "0.4896285", "0.48894954", "0.4888196", "0.48864695", "0.48602444", "0.4858065", "0.4844804", "0.48379043", "0.483109", "0.483109", "0.48308358", "0.48267743", "0.4826097", "0.48227975", "0.48196384", "0.48189822", "0.48180717", "0.4813658", "0.4810913", "0.47964185", "0.47942883" ]
0.5868407
2
Adds select box control that allows single item selection with bind to parent Select.
public function addSelectBind($name, $label, $items = NULL, $parent, $size = NULL) { return $this[$name] = new SelectBoxBind($label, $items, $parent, $size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "public function addSelect($name, $label, $items = NULL, $size = NULL)\n\t{\n\t\treturn $this[$name] = new SelectBox($label, $items, $size);\n\t}", "function theme_select(&$item) {\n\n\t\t$class = array('form-select');\n\t\t_form_set_class($item, $class);\n\n\t\t$size = $item['#size'] ? ' size=\"' . $item['#size'] . '\"' : '';\n\t\t$multiple = isset($item['#multiple']) && $item['#multiple'];\n\n\t\t$retval .= '<select name=\"'\n\t\t\t. $item['#name'] . ''. ($multiple ? '[]' : '') . '\"' \n\t\t\t. ($multiple ? ' multiple=\"multiple\" ' : '') \n\t\t\t. drupal_attributes($item['#attributes']) \n\t\t\t. ' id=\"' . $item['#id'] . '\" ' . $size . '>' \n\t\t\t. form_select_options($item) . '</select>';\n\t\treturn($retval);\n\n\t}", "public static function renderSelect();", "function select( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_SELECT,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "public function callback_select( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';\n $html = sprintf( '<select class=\"%1$s\" name=\"%2$s\" id=\"%2$s\" %3$s>', $size, $name_id, $disable );\n\n foreach ( $args['options'] as $key => $label ) {\n $html .= sprintf( '<option value=\"%s\" %s>%s</option>', $key, selected( $value, $key, false ), $label );\n }\n\n $html .= sprintf( '</select>' );\n $html .= $this->get_field_description( $args );\n\n echo $html;\n }", "public function getControl()\n\t{\n\t\t$items = $this->getPrompt() === FALSE ? array() : array('' => $this->translate($this->getPrompt()));\n\t\tforeach ($this->options as $key => $value) {\n\t\t\t$items[is_array($value) ? $key : $key] = $value;\n\t\t}\n\n\t\treturn Nette\\Forms\\Helpers::createSelectBox(\n\t\t\t$items,\n\t\t\tarray(\n\t\t\t\t'selected?' => $this->value,\n\t\t\t\t'disabled:' => is_array($this->disabled) ? $this->disabled : NULL\n\t\t\t)\n\t\t)->addAttributes(BaseControl::getControl()->attrs);\n\t}", "public function addTcaSelectItemDataProvider() {}", "public function select ( \\r8\\Form\\Select $field )\n {\n $this->addField( \"select\", $field );\n }", "function ItemSelect($class, $name, $selected=\"\")\r\n\t{\r\n\t\tif(isset($this->MyClasses[$class]['db']['title']))\r\n\t\t{\r\n\t\t\t$Order = array(\"title\"=>\"ASC\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$Order = array();\r\n\t\t}\r\n\t\t$Items = $this->GetRecords($class, array(), $Order, \"\");\r\n\t\t// make options from data\r\n\t\t$Options['0'] = \"...\";\r\n\t\t// check if we have parent_id, make list with children\r\n\t\tif(isset($this->MyClasses[$class]['db']['parent']))\r\n\t\t{\r\n\t\t\t$finarr = array();\r\n\t\t\t$finarr = $this->GetListRecursive($class, \"0\", $finarr, \"\");\r\n\t\t\tforeach($finarr as $burat)\r\n\t\t\t{\r\n\t\t\t\t$BoriArr = explode(\"|:|\", $burat);\r\n\t\t\t\t$Options[$BoriArr[0]] = $BoriArr[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tforeach($Items as $item)\r\n\t\t\t{\r\n\t\t\t\t$Options[$item['id']] = $item['title'];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->makeDropDown($Options, $name, $selected);\r\n\t}", "static function createSelect($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/select.php\";\n }", "function select_box($selected, $options, $input_name, $input_id = FALSE, $use_lang = TRUE, $key_is_value = TRUE, $attributes = array())\n\t{\n\t\tglobal $LANG;\n\n\t\t$input_id = ($input_id === FALSE) ? str_replace(array(\"[\", \"]\"), array(\"_\", \"\"), $input_name) : $input_id;\n\n\t\t$attributes = array_merge(array(\n\t\t\t\"name\" => $input_name,\n\t\t\t\"id\" => strtolower($input_id)\n\t\t), $attributes);\n\n\t\t$attributes_str = \"\";\n\t\tforeach ($attributes as $key => $value)\n\t\t{\n\t\t\t$attributes_str .= \" {$key}='{$value}' \";\n\t\t}\n\n\t\t$ret = \"<select{$attributes_str}>\";\n\n\t\tforeach($options as $option_value => $option_label)\n\t\t{\n\t\t\tif (!is_int($option_value))\n\t\t\t\t$option_value = $option_value;\n\t\t\telse\n\t\t\t\t$option_value = ($key_is_value === TRUE) ? $option_value : $option_label;\n\n\t\t\t$option_label = ($use_lang === TRUE) ? $LANG->line($option_label) : $option_label;\n\t\t\t$checked = ($selected == $option_value) ? \" selected='selected' \" : \"\";\n\t\t\t$ret .= \"<option value='{$option_value}'{$checked}>{$option_label}</option>\";\n\t\t}\n\n\t\t$ret .= \"</select>\";\n\t\treturn $ret;\n\t}", "public function getSelect(): ?Select;", "public function getSelect();", "public function getSelect();", "public function enableSelectmenu ()\n {\n $baseUrl = \\Zend_Controller_Front::getInstance()->getBaseUrl();\n $this->view->headScript()->prependFile($baseUrl . '/gems/js/jquery-ui-selectmenu.js');\n $this->view->headLink()->appendStylesheet($baseUrl . '/gems/css/jquery-ui.css');\n $this->view->headLink()->appendStylesheet($baseUrl . '/gems/css/jquery-ui-selectmenu.css');\n \n $js = sprintf(\"jQuery(document).ready(function($) {\n $('#%s').iconselectmenu({width: null}).iconselectmenu('menuWidget').addClass('ui-menu-icons avatar overflow');\n });\",\n $this->id\n );\n \n $this->view->headScript()->appendScript($js);\n }", "public function select($value = null)\n {\n $this->select = $value;\n\n return $this;\n }", "public function buildSelectBox( $name, NavWidgetLink $parent_link=null, $selectedId=null, array $attributes=array(), array $instructionOption=array())\n\t {\n\t\t $data = $this->buildComboBox( $parent_link, $this->get_parent_links(), $selectedId);\n\n\t\t $dom = new \\DOMDocument;\n\t\t $select = $dom->createElement('select');\n\t\t $select->setAttribute( 'name', sprintf( '%s[parent]', $name ) );\n\n\t\t foreach ($attributes as $attrName => $attrValue)\n\t\t {\n\t\t\t $select->setAttribute($attrName, $attrValue);\n\t\t }\n\n\t\t if (count($instructionOption) > 0)\n\t\t {\n\t\t\t if (isset($instructionOption['text']))\n\t\t\t {\n\t\t\t\t $option = $dom->createElement('option');\n\t\t\t\t $option->appendChild( $dom->createTextNode($instructionOption['text']) );\n\t\t\t\t if (isset($instructionOption['value']))\n\t\t\t\t {\n\t\t\t\t\t $option->setAttribute('value', $instructionOption['value']);\n\t\t\t\t }\n\t\t\t\t $select->appendChild($option);\n\t\t\t }\n\t\t }\n\n\t\t // add No Parent item to lists\n\t\t $option = $dom->createElement('option');\n\t\t $option->appendChild( $dom->createTextNode( 'No Parent') );\n\t\t\t$option->setAttribute('value', 0);\n\n\t\t $select->appendChild($option);\n\n\t\t foreach ($data as $node)\n\t\t {\n\t\t\t $option = $dom->createElement('option');\n\t\t\t $option->setAttribute('value', $node['value']);\n\t\t\t $option->appendChild( $dom->createTextNode($node['text']));\n\t\t\t if (isset($node['selected']) && $node['selected'])\n\t\t\t {\n\t\t\t\t $option->setAttribute('selected', 'selected');\n\t\t\t }\n\t\t\t $select->appendChild( $option );\n\t\t }\n\n\t\t $dom->appendChild($select);\n\t\t return $dom->saveHTML();\n\t }", "function SelectBox($name)\n {\n $this -> name = $name;\n }", "function select_option()\r\n{}", "private function selectCustomField(): string\n {\n $value = $this->getValue($this->index);\n foreach($this->options as &$option) {\n if($option['key'] == $value) {\n $option['selected'] = true;\n break;\n }\n }\n\n return Template::build($this->getTemplatePath('select.html'), [\n 'id' => uniqid(\"{$this->id}-\", true),\n 'name' => $this->id,\n 'label' => $this->label,\n 'options' => $this->options,\n 'index' => isset($this->index) ? $this->index : false\n ]);\n }", "public function select($element) {\n $element = $this->_setRender($element);\n\n $element['_render']['element'] = '';\n $element['_render']['element'] .= '<select id=\"' . $element['#id'] . '\" ';\n $element['_render']['element'] .= $element['_attributes_string'];\n $element['_render']['element'] .= sprintf(' data-wpt-type=\"%s\"', __FUNCTION__);\n /**\n * multiple\n */\n if (array_key_exists('#multiple', $element) && $element['#multiple']) {\n $element['_render']['element'] .= ' multiple=\"multiple\"';\n $element['_render']['element'] .= ' name=\"' . $element['#name'] . '[]\"';\n } else {\n $element['_render']['element'] .= ' name=\"' . $element['#name'] . '\"';\n }\n $element['_render']['element'] .= \">\\r\\n\";\n $count = 1;\n foreach ($element['#options'] as $id => $value) {\n if (!is_array($value)) {\n $value = array('#title' => $id, '#value' => $value, '#type' => 'option');\n }\n $value['#type'] = 'option';\n if (!isset($value['#value'])) {\n $value['#value'] = $this->_count['select'] . '-' . $count;\n $count += 1;\n }\n $element['_render']['element'] .= '<option value=\"' . htmlspecialchars($value['#value']) . '\"';\n $element['_render']['element'] .= $this->_setElementAttributes($value);\n if (array_key_exists('#types-value', $value)) {\n $element['_render']['element'] .= sprintf(' data-types-value=\"%s\"', $value['#types-value']);\n }\n /**\n * type and data_id\n */\n $element['_render']['element'] .= ' data-wpt-type=\"option\"';\n $element['_render']['element'] .= $this->_getDataWptId($element);\n /**\n * selected\n */\n if (array_key_exists('#multiple', $element) && $element['#multiple']) {\n if (is_array($element['#default_value']) && in_array($value['#value'], $element['#default_value'])) {\n $element['_render']['element'] .= ' selected=\"selected\"';\n }\n } elseif ($element['#default_value'] == $value['#value']) {\n $element['_render']['element'] .= ' selected=\"selected\"';\n }\n $element['_render']['element'] .= '>';\n $element['_render']['element'] .= isset($value['#title']) ? $value['#title'] : $value['#value'];\n $element['_render']['element'] .= \"</option>\\r\\n\";\n }\n $element['_render']['element'] .= '</select>';\n $element['_render']['element'] .= PHP_EOL;\n\n $pattern = $this->_getStatndardPatern($element);\n $output = $this->_pattern($pattern, $element);\n $output = $this->_wrapElement($element, $output);\n\n return $output;\n }", "public function __construct()\n {\n parent::__construct();\n $this->init('oxselectlist');\n }", "protected function createSelectbox($key, $items, $type)\n {\n // Remove dot\n $key = substr($key, 0, -1);\n $selectbox = '<div class=\"col-xs-12 col-sm-4 col-md-3 col-lg-2\">'.LF;\n $selectbox .= '<div class=\"form-control-wrap\">'.LF;\n $selectbox .= '<select name=\"'.$key.'\" class=\"form-control form-control-adapt input-sm\">'.LF;\n $activeKey = '';\n foreach ($items as $itemKey => $itemValue) {\n if ($activeKey == '') {\n $activeKey = $key.'-'.$itemKey;\n }\n $selected = '';\n if (isset($this->valuesFlipped[$key.'-'.$itemKey])) {\n $activeKey = $key.'-'.$itemKey;\n $selected = 'selected=\"selected\"';\n }\n $label = $this->getLanguageService()->sL($itemValue);\n $selectbox .= '<option value=\"'.$key.'-'.$itemKey.'\" '.$selected.'>'.$label.'</option>'.LF;\n }\n $selectbox .= '</select>'.LF;\n $selectbox .= '</div>'.LF;\n $selectbox .= '</div>'.LF;\n $this->valuesAvailable[] = $activeKey;\n $this->checkboxesArray[$type][] = $selectbox;\n }", "public function getNewChildSelectOptions()\n {\n return array('value' => $this->getType(),\n 'label' => Mage::helper('bronto_reminder')->__('SKU'));\n }", "function build_selection_box($select_name,$select_text,$select_types,$selected_option)\n\t{\n\t\tglobal $template, $lang;\n\t\n\t\t$select = \"<select name='\".$select_name.\"'>\";\n\t\tif (empty($selected_option))\n\t\t{\n\t\t\t$select .= \"<option value=''>\".$lang['Select_A_Option'].\"</option>\";\n\t\t\t$select .= \"<option value=''>------</option>\";\n\t\t}\n\t\n\t\tfor($i = 0; $i < count($select_text); $i++)\n\t\t{\n\t\t\t$selected = ( $selected_option == $select_types[$i] ) ? ' selected=\"selected\"' : '';\n\t\t\t$select .= '<option value=\"' . $select_types[$i] . '\"' . $selected . '>' . $select_text[$i] . '</option>';\n\t\t}\n\t\n\t\t$select .= '</select>';\n\t\n\t\treturn $select;\n\t}", "public function addSelect($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, true);\n }", "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}", "function hundope_select_field_render() { \n\t\n}", "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}", "public function setSelect($select);", "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 getDropDown() {}", "public function getDropDown() {}", "function create_selectbox($name, $data, $default='', $param=''){\r\n $out='<select id=\"'.$name.'\" name=\"'.$name.'\"'. (!empty($param)?' '.$param:'') .\">\\n\";\r\n\r\n foreach($data as $key=>$val) {\r\n $out.='<option value=\"' .$key. '\"'. ($default==$key?' selected=\"selected\"':'') .'>';\r\n $out.=$val;\r\n $out.=\"</option>\\n\";\r\n }\r\n $out.=\"</select>\\n\";\r\n\r\n return $out;\r\n}", "function form_select($field, $options) {\n $defaults = array(\n 'wrap' => true,\n 'label' => true,\n 'class' => array('input', 'select'),\n 'options' => array()\n );\n\n $options = array_merge($defaults, $options);\n\n $output = '<select name=\"' . $field . '\" id=\"' . form__field_id($field) . '\">';\n foreach($options['options'] as $value => $text) {\n $output .= '<option value=\"' . $value . '\"';\n if(!empty($_POST[$field]) && $_POST[$field] == $value) {\n $output .= ' selected=\"selected\"';\n }\n $output .= '>' . $text . '</option>';\n }\n $output .= '</select>';\n\n if($options['wrap']) {\n $options['field'] = $field;\n $output = form__wrap($output, $options);\n }\n\n $error = form_error_message($field);\n if(!empty($error)) {\n $output .= $error;\n }\n \n return html__output($output);\n}", "public function render()\n {\n return view('components.select');\n }", "function getServiceTypesTree_selectBox($select_name, $current_servicetype_id)\n {\n //echo '$current_category_id = '.$current_category_id;\n $service_type_array = $this->getServiceTypeTree_array(0, 0);\n $level = 1;\n $rs = '';\n $rs .= '<div id=\"parent_id_div\">';\n $rs .= '<select name=\"' . $select_name . '\">';\n $rs .= '<option value=\"0\">..</option>';\n\n $rs .= $this->getServiceTypesTree_optionItems($service_type_array, $current_servicetype_id);\n $rs .= '</select>';\n $rs .= '</div>';\n return $rs;\n }", "public function selected()\n {\n parent::selected();\n $this->name = '';\n }", "protected function _initSelect()\n {\n $this->getSelect()->from(['main_table' => $this->getResource()->getMainTable()])\n ->where(\n 'main_table.entity_type_id=?',\n $this->eavConfig->getEntityType(SellerInterface::ENTITY)->getId()\n );\n\n return $this;\n }", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "protected function createSelect($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/select.php'\n );\n \n $config['name'] = $this->getDefaultName($config);\n $config['items'] = $this->getListItems($config);\n \n if (!isset($config['selected'])) {\n $config['selected'] = array();\n if ($this->record && !empty($config['items_table'])) {\n $fk = $this->driver->getRelationColumn(\n (string) $this->config['table'],\n (string) $config['items_table']\n );\n if (isset($this->record[$fk])) {\n $config['selected'][] = $this->record[$fk];\n }\n }\n }\n return new \\Arch\\Registry\\View($tmpl, $config);\n }", "public function getSelectable() {}", "protected function get_model_kenaikan_select(){\n $name = $this->get_model_name();\n $default = array( \"class\" => \"selectpicker col-md-12\" , \"name\" => $name , \"id\" => $name , 'selected' => $this->get_value($name) );\n $items = array(\"Persen\" , \"Peringkat\");\n return $this->get_select( $items , $default);\n }", "function makeSelectElement($list, $pre_selected='', $fullinfo=false, $extra=array())\n{\n $select_elem = '';\n foreach ( $list as $item ) {\n if ( $item->getId() == $pre_selected ) {\n $selected = ' selected';\n } else {\n $selected = '';\n }\n $name = htmlspecialchars($item->getFullName());\n $id = htmlspecialchars($item->getId());\n if ( $fullinfo ) {\n $id = \"{$name} ({$id})\";\n $name = $id;\n }\n $select_elem .= <<<HTML\n <option value=\"{$id}\"{$selected}>{$name}</option>\n\nHTML;\n }\n if ( !empty($extra) ) {\n $select_elem .= <<<HTML\n <option value=\"{$extra['id']}\">{$extra['name']}</option>\nHTML;\n\n }\n return $select_elem;\n}", "protected function select(): Select\n {\n return $this->select;\n }", "function productSelect($placeholder, $field, $style = 'custom-select', $selected = '')\n {\n return _helperSelect(\n \\App\\Models\\NewProduct::pluck('name', 'slug'),\n $placeholder,\n $field,\n $style,\n $selected\n );\n }", "function getSingleField_typeSelect($fieldConf, $tcaFieldConf) {\n\n\t\t$itemsArr = is_array ($tcaFieldConf['items']) ? $tcaFieldConf['items'] : array();\n\t\tif (isset ($tcaFieldConf['itemsProcFunc'])) {\n\t\t\t$params=array();\n\t\t\t$params['items'] = &$itemsArr;\n\t\t\t\t// NOTE: Some important parameters are missing (table, fieldname etc.), so this won't work with every userfunction like expected. \n\t\t\tt3lib_div::callUserFunction($tcaFieldConf['itemsProcFunc'], $params, $this);\n\t\t}\n\n\t\t\t// Create list of options:\n\t\t$optionsArr = array();\n\t\tforeach ($itemsArr as $keyValueArr) {\n\t\t\tif (is_array ($keyValueArr)) {\n\t\t\t\t$selected = ($this->sessionData['data'][$fieldConf['table']][$fieldConf['name']] == $keyValueArr[1]) ? ' selected=\"selected\"' : '';\n\t\t\t\t$optionsArr[] = '<option value=\"'.htmlspecialchars($keyValueArr[1]).'\"'.$selected.'>'.htmlspecialchars($this->LANG->sL($keyValueArr[0])).'</option>';\t\n\t\t\t}\n\t\t}\t\n\n\t\t\t// Add the various parameters according to TCA configuration:\n\t\t$params = array(\n\t\t\t'name' => isset ($fieldConf['overridename']) ? $fieldConf['overridename'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']',\n\t\t\t'id' => isset ($fieldConf['overrideid']) ? $fieldConf['overrideid'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']',\n\t\t\t'tabindex' => ($this->fieldTabIndex += 10),\n\t\t\t'class' => 'tx-frontendformslib-field tx-frontendformslib-field-' . (intval($fieldConf['config']['tx_frontendformslib_swaphorizontally']) ? 'switched': 'normal'),\n\t\t);\n\n\t\t$output = '\n\t\t\t<select '.$this->implode_assoc_r('=\"', '\" ', $params).'\">\n\t\t\t\t'.implode(chr(10), $optionsArr).'\n\t\t\t</select>\n\t\t';\n\n\t\treturn $output;\n\t}", "function widget_select($ddbbtable,$ddbbid,$ddbbname,$selectname,$defaultid=NULL,$condition=NULL) {\n\t\n\t\tglobal $db; \n\n\t\tif (is_array($ddbbname )) $NAME = implode(\",\",$ddbbname);\n\t\telse $NAME = $ddbbname;\n\n\t\tif ($condition != NULL) $where = \" where $condition \";\n\t\telse $where = \"\";\n\n\t\t$retorno = \"<div id='div$selectname' style='display:inline'>\n\t\t \t\t<select class='select' name='$selectname' id='$selectname' required>\n\t\t\t\t <option value=''>Seleccione una opción</option>\";\n\t\n\t\t$sql = \"select $ddbbid,$NAME from $ddbbtable $where order by $NAME\";\n\t\tforeach ($db-> f_sql($sql) as $fila){\n\t\t\t$id = $fila[$ddbbid];\n\t\t\tif ($id == $defaultid) $select = \"selected\";\n\t\t\telse $select = \"\";\n\t\t\tif (is_array($ddbbname )) {\n\t\t\t\tfor ($j=0; $j<count($ddbbname); $j++) {\n\t\t\t\t\t$n = $ddbbname[$j];\n\t\t\t\t\t$NOMBRE .= \" \".$fila[$n];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse $NOMBRE = $fila[$ddbbname];\n\t\t\t$retorno .= \"<option value='$id' $select>\".$NOMBRE.\"</option>\";\t\n\t\t}\n\n\t\t$retorno .= \"</select></div>\";\n\t\treturn $retorno;\n\t}", "public function addSelectBox($sLabel, $sName, $aOptions)\n {\n $formControl= \"<div class='form-group'>\"\n .\"<label class='col-sm-offset-1 control-label col-sm-2'>\"\n . \"$sLabel</label>\\n\"\n .\"<div class='col-sm-6'>\\n\"\n . \"<select class='form-control' id='$sName' name='$sName'>\";\n foreach ($aOptions as $option) {\n $formControl.=\"<option value='\".$option['Value'].\"'>\".\n $option['Name'].\"</option>\";\n }\n \n $formControl.= \"</select>\"\n . \"</div>\\n\"\n .\"</div>\\n\";\n \n $this->formBody .= $formControl;\n }", "public function select($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, false);\n }", "protected function get_pelajaran_select( $attributes , $additional_item = array()){\n $default = array( \"class\" => \"selectpicker\",\n \"name\" => '',\n 'id' => '' , \n 'selected' => '',\n\t\t\t\t\t\t );\n\t\t//! transfer to default array\n\t\t$default = $this->array_combine($default , $attributes);\n $hasil = array();\n\t\t//@ additioanl item\n foreach($additional_item as $item){ $hasil [] = $item ; }\n\t\t//@ \n $sessions = new Ujian_Model();\n foreach($sessions->get_names_of_pelajaran() as $item){\n $hasil [] = $item->name ;\n }\n return $this->get_select( $hasil , $default);\t\t\n\t}", "public function Do_select_Example1(){\n\n\t}", "function select_tag($name, $options, array $attributes = array())\r\n{\r\n $attributes['name'] = isset($attributes['multiple']) && $attributes['multiple'] === true ? $name.'[]' : $name;\r\n $attributes['id'] = @$attributes['id'] ?: $name;\r\n\r\n if (isset($attributes['include_blank'])) {\r\n $include_blank = array_take($attributes, 'include_blank');\r\n\r\n if ($include_blank) {\r\n $options = tag('option', array(), '').$options;\r\n }\r\n }\r\n\r\n return tag('select', $attributes, $options);\r\n}", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "public function getControl(): Html\n {\n $html = parent::getControl();\n $classNames = $html->getAttribute('class');\n $classNames['custom-select'] = true;\n $html->setAttribute('class', $classNames);\n return $html;\n }", "public function coconutComboBoxStart_long($name) {\necho \"<select name='$name' class='comboBox'>\";\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 getMultiLevelDropdownWrapper($item)\n {\n }", "public function __construct() {\n\t\tparent::__construct();\n\n\t\t$this->category = _x( 'Multi Fields', 'xprofile field type category', 'buddypress' );\n\t\t$this->name = _x( 'Drop Down Select Box', 'xprofile field type', 'buddypress' );\n\n\t\t$this->supports_options = true;\n\n\t\t$this->set_format( '/^.+$/', 'replace' );\n\t\tdo_action( 'bp_xprofile_field_type_selectbox', $this );\n\t}", "public function addMultiSelect($name, $label, array $items = NULL, $size = NULL)\n\t{\n\t\treturn $this[$name] = new MultiSelectBox($label, $items, $size);\n\t}", "private function _select_v1()\n\t{\n\t\t// load custom language file\n\t\t$this->lang->load('select_v1');\n\n\t\t// set default template layout\n\t\t$this->template->set_layout('sales_funnel');\n\n\t\t// set default title\n\t\t$this->template->title($this->lang->line('hosting_title'));\n\n\t\t// prepend javascript and video\n\t\t$this->template->prepend_footermeta('\n\n\t\t\t<script type=\"text/javascript\" src=\"/resources/modules/domain/assets/js/domain_spin.js\"></script>\n\n\t\t\t<script type=\"text/javascript\" src=\"/resources/brainhost/js/flowplayer/flowplayer-3.2.10.min.js\"></script>\n\t\t\t<!-- this will install flowplayer inside previous A- tag. -->\n\t\t\t<script>\n\t\t\t\tflowplayer(\"player\", \"/resources/brainhost/js/flowplayer/flowplayer-3.2.5.swf\", {\n\t\t\t\t\tplugins: {\n\t\t\t\t\t\tcontrols: null,\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t</script>\n\t\t');\n\n\t\t$data['errors'] = $this->_errors;\n\t\t$this->template->build('select_v1', $data);\n\t}", "public function get_select() {\r\n\t\t$html = '';\r\n\t\tforeach ( $this->taxonomies as $tax ) {\r\n\t\t\t$options = sprintf( '<option value=\"\">%s %s</option>', __('View All', 'themify-portfolio-posts'),\r\n\t\t\tget_taxonomy($tax)->label );\r\n\t\t\t$class = is_taxonomy_hierarchical( $tax ) ? ' class=\"level-0\"' : '';\r\n\t\t\tforeach ( get_terms( $tax ) as $taxon ) {\r\n\t\t\t\t$options .= sprintf( '<option %s%s value=\"%s\">%s%s</option>', isset( $_GET[$tax] ) ? selected( $taxon->slug, $_GET[$tax], false ) : '', '0' !== $taxon->parent ? ' class=\"level-1\"' : $class, $taxon->slug, '0' !== $taxon->parent ? str_repeat( '&nbsp;', 3 ) : '', \"{$taxon->name} ({$taxon->count})\" );\r\n\t\t\t}\r\n\t\t\t$html .= sprintf( '<select name=\"%s\" id=\"%s\" class=\"postform\">%s</select>', esc_attr( $tax ), esc_attr( $tax ), $options );\r\n\t\t}\r\n\t\techo $html;\r\n\t}", "function get_flat_modification_select_box($model_id, $current_modification_id)\n {\n $modification_structure = $this->load_modification_structure();\n $rs = '';\n $rs .= '<div id=\"modification_id_div\">';\n $rs .= '<select name=\"modification_id\" id=\"modification_id\">';\n $rs .= '<option value=\"0\">' . Multilanguage::_('L_CHOOSE_MODIFICATION') . '</option>';\n if (is_array($modification_structure['childs'][$model_id])) {\n foreach ($modification_structure['childs'][$model_id] as $modification_id) {\n if ($current_modification_id == $modification_id) {\n $selected = \" selected \";\n } else {\n $selected = \"\";\n }\n $rs .= '<option value=\"' . $modification_id . '\" ' . $selected . '>' . $modification_structure['modification'][$modification_id]['name'] . '</option>';\n //$rs .= '<option value=\"'.$model_id.'\" '.$selected.'>'.str_repeat(' _ ', $level+1).$model_id.'</option>';\n //$rs .= $this->get_model_option_items( $model_structure, $current_model_id );\n }\n }\n $rs .= '</select>';\n $rs .= '</div>';\n return $rs;\n }", "public function getSelect() {\r\n return $this->_select;\r\n }", "private function renderSelect(): string\n {\n $str = '<select'.($this->id ? ' id=\"'.$this->getId().'\"' : '').($this->name ? ' name=\"'.$this->name.'\"' : '');\n if ($this->multiple) {\n $str .= ' multiple=\"multiple\"';\n }\n if ($this->size > 1) {\n $str .= ' size=\"'.$this->size.'\"';\n }\n if ($this->disabled) {\n $str .= ' disabled=\"disabled\"';\n }\n if ($this->tabIndex) {\n $str .= ' tabindex=\"'.$this->tabIndex.'\"';\n }\n $str .= $this->renderCssClass();\n if ($this->required) {\n $str .= ' required=\"required\"';\n }\n $str .= '>';\n\n return $str;\n }", "function __construct() {\r\n $this->addValidAttributes(array(\r\n 'selected',\r\n 'value',\r\n 'label'\r\n ));\r\n\r\n $this->setAttribute( 'selected', false );\r\n }", "public function isMultiSelect() {}", "public function addSelect($column)\n {\n return $this;\n }", "public function addSelect($select = null)\n {\n return $this->queryBuilder->addSelect($select);\n }", "public function select($name, $id = '')\n\t{\n\t\treturn sprintf('<select name=\"pets\" id= \"pet-select\">', $name, $id);\n\t}", "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 nf_makeDropDownWithSelected($idCol, $displayCol, $table, $matchvalue,$where='',$suppressSelectTag=0){\n $retval = '';\n $matched = 0;\n $result = DB_query( \"SELECT $idCol,$displayCol FROM $table $where\" );\n $nrows = DB_numRows( $result );\n\n for( $i = 0; $i < $nrows; $i++ ){\n $A = DB_fetchArray($result);\n $retval .='<option value=\"' . $A[0] . '\"';\n if($matchvalue == $A[0]){\n $retval .=\" selected=\\\"selected\\\" \";\n $matched=1;\n }\n $retval .='>' . $A[1] . '</option>';\n }\n if(!$suppressSelectTag){\n $retval .= '</select>';\n }\n if($matched){\n if(!$suppressSelectTag){\n $retval = '<select name=\"' . str_replace(\".\",\"\",$idCol . $displayCol) . '\"><option value=\"' . $value . '\" >' . $label . '</option>' . $retval;\n } else {\n $retval = '<option value=\"' . $value . '\" >' . $label . '</option>' . $retval;\n }\n } else{\n if(!$suppressSelectTag){\n $retval = '<select name=\"' . str_replace(\".\",\"\",$idCol . $displayCol) . '\"><option value=\"' . $value . '\" >' . $label . '</option>' . $retval;\n } else {\n $retval = '<option value=\"' . $value . '\" >' . $label . '</option>' . $retval;\n }\n }\n return $retval;\n}", "function lsGetSelect($default, $current = null, $attrs = [], $forceOptionVal = false, $return = false ) {\n\t$el \t\t= LayerSlider\\DOM::newDocumentHTML('<select>')->children();\n\t$attributes = [];\n\t$options \t= [];\n\t$listItems = [];\n\n\t$name = is_string($default['keys']) ? $default['keys'] : $default['keys'][0];\n\n\t$attributes['value'] \t\t= $value = $default['value'];\n\t$attributes['name'] \t\t= $name;\n\t$attributes['data-prop'] \t= $name;\n\n\tif( ! empty( $default['name'] ) ) {\n\t\t$attributes['data-search-name'] = $default['name'];\n\t}\n\n\t// Attributes\n\t$attrs = isset($default['attrs']) ? array_merge($default['attrs'], $attrs) : $attrs;\n\tif( ! empty($attrs) && is_array( $attrs ) ) {\n\t\t$attributes = array_merge($attributes, $attrs);\n\t}\n\n\t// Get options\n\tif(isset($default['options']) && is_array($default['options'])) {\n\t\t$options = $default['options'];\n\t} elseif(isset($attrs['options']) && is_array($attrs['options'])) {\n\t\t$options = $attrs['options'];\n\t}\n\n\t// Override the default\n\tif(isset($current[$name]) && $current[$name] !== '') {\n\t\t$attributes['value'] = $value = $current[$name];\n\t}\n\n\t// Add options\n\tforeach($options as $name => $val) {\n\n\t\t$name = (is_string($name) || $forceOptionVal) ? $name : $val;\n\t\t$name = ($name === 'zero') ? 0 : $name;\n\n\n\t\t$checked = ($name == $value) ? ' selected=\"selected\"' : '';\n\t\t$listItems[] = \"<option value=\\\"$name\\\" $checked>$val</option>\";\n\t}\n\n\t$attributes['data-default'] = $default['value'];\n\t$el->append( implode('', $listItems) )->attr($attributes);\n\n\t// License registration check\n\tif( ! empty( $default['premium'] ) ) {\n\t\tif( ! LS_Config::isActivatedSite() ) {\n\t\t\t$el->addClass('locked');\n\t\t\t$el->attr('disabled', 'disabled');\n\t\t}\n\t}\n\n\t$ret = (string) $el;\n\tLayerSlider\\DOM::unloadDocuments();\n\n\tif( $return ) { return $ret; } else { echo $ret; }\n}", "function albumselect($id=\"album\")\r\n{\r\n global $xoopsDB, $myts;\r\n static $select = \"\";\r\n\r\n if ($select == \"\"){\r\n $sql = \"SELECT aid, title, category \".\r\n \"FROM \".$xoopsDB->prefix(\"xcgal_albums\").\" \".\r\n \"ORDER BY title\";\r\n $result = $xoopsDB->query($sql);\r\n $user_handler =& xoops_gethandler('member');\r\n while ($row = $xoopsDB->fetchArray($result)) {\r\n $alb_owner =& $user_handler->getUser($row['category']-FIRST_USER_CAT);\r\n if (is_object ($alb_owner)) $row[\"title\"]= \"- (\".$alb_owner->uname().\")\".$row[\"title\"];\r\n $select .= \"<option value=\\\"\" . $row[\"aid\"] . \"\\\">\" . $myts->makeTboxData4Show($row[\"title\"]) . \"</option>\";\r\n }\r\n $xoopsDB->freeRecordSet($result);\r\n }\r\n\r\n return \"<select name=\\\"$id\\\" class=\\\"listbox\\\">\".$select.\"</select>\";\r\n}", "public function build_parent_link_select( $name, NavWidgetLink $parent_link = null )\n {\n\t if( $parent_link )\n\t return $this->buildSelectBox( $name, $parent_link, $parent_link->get_parent_ID() );\n\t else\n\t\t return $this->buildSelectBox( $name, $parent_link );\n }", "public function getSelect()\n {\n return $this->select;\n }", "public function getSelect()\n {\n return $this->select;\n }", "protected function get_select_kelas( $attributes , $additional_item = array()){\n $default = array( \"class\" => \"selectpicker\",\n \"name\" => '',\n 'id' => '' , \n 'selected' => '',\n\t\t\t\t\t\t );\n\t\t//! transfer to default array\n\t\t$default = $this->array_combine($default , $attributes);\n $hasil = array();\n $sessions = Kelas_Model::orderby('nama' , 'ASC')->get();\n foreach($sessions as $item){\n $hasil [] = $item->nama ;\n }\t\t\n\t\t//@ additioanl item\n foreach($additional_item as $item){ $hasil [] = $item ; }\t\t\n return $this->get_select( $hasil , $default);\t\t\n\t}", "protected function init()\n {\n if (count($this->aSelected) > 0)\n {\n foreach ($this->aContent as $iKey => $xData)\n {\n $sValue = $xData->getRawParam('value');\n\n if (self::isOption($xData) && in_array($sValue, $this->aSelected))\n {\n $this->aContent[$iKey]->setParam('selected', 'selected');\n }\n }\n }\n\n return parent::init();\n }", "public function run() {\n $this->htmlOptions['multiple'] = true;\n if($this->model) {\n $name_id = $this->resolveNameID();\n $input_id = $name_id[1];\n $select_html = CHtml::activeDropDownList($this->model, $this->attribute, $this->data, $this->htmlOptions);\n } else {\n $input_id = $this->attribute;\n $select_html = CHtml::dropDownList($this->attribute, $this->value, $this->data, $this->htmlOptions);\n }\n \n $options=CJavaScript::encode($this->options);\n Yii::app()->clientScript->registerScript('kendoui-multiselect-'.$input_id,\n 'var '.$input_id.' = jQuery(\"#'.$input_id.'\").kendoMultiSelect('.$options.').data(\"kendoMultiSelect\");'\n );\n \n echo $select_html;\n }", "public function getSelect() {\n return $this->select;\n }", "public function createSelect()\n {\n return $this->getConnection()->select();\n }", "function select($key, $echo = true, $sel = false, $attrs = array()) {\n\t\t\t$options = $this->translate($key, false);\n\t\t\tif ( is_array($options) ) {\n\t\t\t\t$attr_text = '';\n\t\t\t\tforeach ($attrs as $attr => $value) {\n\t\t\t\t\t$attr_text .= sprintf(' %s=\"%s\"', $attr, $value);\n\t\t\t\t}\n\t\t\t\t$ret = sprintf('<select%s>', $attr_text);\n\t\t\t\tforeach ($options as $option => $name) {\n\t\t\t\t\t$ret .= '<option '.($sel !== false && $option == $sel ? 'selected=\"selected\" ' : '').'value=\"'.$option.'\">'.$name.'</option>';\n\t\t\t\t}\n\t\t\t\t$ret .= '</select>';\n\t\t\t} else {\n\t\t\t\t$ret = $key;\n\t\t\t}\n\t\t\tif ($echo) {\n\t\t\t\techo $ret;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}", "public function renderSelect( $label, $key, $items, $attributes = array() )\n {\n echo \"<div class=\\\"form-field\\\">\\n\";\n $id = 'field-' . $this->formId . '-' . $key;\n $currentValue = $this->getValue( $key );\n $this->renderLabel( $label, $key, $id );\n $this->renderTag( 'select', array_merge( array( 'name' => $key, 'id' => $id ), $attributes ), true );\n foreach ( $items as $itemKey => $itemValue ) {\n if ( is_array( $itemValue ) || is_object( $itemValue ) && is_a( $itemValue, 'Iterator' ) ) {\n $this->renderTag( 'optgroup', array( 'label' => $itemKey ), true );\n foreach ( $itemValue as $subItemKey => $subItemValue )\n $this->renderTag( 'option', array( 'value' => $subItemKey, 'selected' => !strcmp( $currentValue, $subItemKey ) ), $subItemValue );\n echo \"</optgroup>\\n\";\n } else {\n $this->renderTag( 'option', array( 'value' => $itemKey, 'selected' => !strcmp( $currentValue, $itemKey ) ), $itemValue );\n }\n }\n echo \"</select>\\n\";\n $this->renderError( $key );\n echo \"</div>\\n\";\n\n if ( isset( $this->viewState[ $key ] ) )\n $this->viewState[ $key ] = null;\n }", "function select($args) {\r\n\t\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\t\tif ($args['multiple']) {\r\n\t\t\t\techo \"<select class='optselect chzn-select' multiple='true' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"\" . \"[]'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . (array_search($value , $args['value']) === false ? '' : 'selected' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t} else {\r\n\t\t\t\techo \"<select class='optselect chzn-select' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . ($args['value'] == $key ? 'selected' : '' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t}\r\n\t\t\t$this->description($args['description']);\r\n\t\t}", "public function addSelect($column);", "public function sublistcombo()\n\t{\n\t\techo'\n\t\t\t<select name=\"sublistcombo\" style=\"width: 180px;\">\n\t\t\t\t\t\n\t\t\t <option value=\"None\">None</option>\n\t\t\t <option value=\"Hindi\">Hindi</option>\n\t\t\t <option value=\"English\">English</option>\n\t\t\t <option value=\"Maths\">Maths</option>\n\t\t\t <option value=\"Social Science\">Social Science</option>\n\t\t\t <option value=\"General Science\">General Science</option>\n\t\t\t <option value=\"Sanscrit\">Sanscrit</option>\n\t\t\t <option value=\"Computer Science\">Computer Science</option>\n\t\t\t <option value=\"Physics\">Physics</option>\n\t\t\t <option value=\"Chemistry\">Chemistry</option>\n\t\t\t <option value=\"Higher Math\">Higher Math</option>\n\t\t\t <option value=\"Biology\">Biology</option>\n\t\t\t <option value=\"Sociology\">Sociology</option>\n\t\t\t <option value=\"Economics\">Economics</option>\n\t\t\t <option value=\"Accounts\">Accounts</option>\n\t\t\t <option value=\"History\">History</option>\n\t\t\t <option value=\"Finance\">Finance</option>\n\t\t\t <option value=\"Statistics\">Statistics</option>\n\t\t\t <option value=\"Civics\">Civics</option>\n\t\t\t <option value=\"Music\">Music</option>\n\t\t\t</select>\n\n\n\t\t';\n\t}", "function formulize_inner_custom_box($post) {\n\tglobal $post;\n\t$values = get_post_custom($post->ID);\n\t$selected = isset($values['formulize_select']) ? esc_attr($values['formulize_select']) : ''; \n\t// We'll use this nonce field later on when saving. \n wp_nonce_field( 'my_formulize_nonce', 'formulize_nonce' );\n ?>\n <label for =\"formulize_select\">Choose screen: </label>\n <select name=\"formulize_select\" id=\"formulize_select\">\n <option value=\"test one\" <?php selected($selected, 'test one'); ?>>Test One </option>\n <option value=\"test two\" <?php selected($selected, 'test two'); ?>>Test Two </option>\n </select>\n <?php\n}", "function getWidget() {\n // just override the template being used.\n $bHasErrors = false; \n if (count($this->aErrors) != 0) { $bHasErrors = true; }\n\n // at this last moment we pick the template to use \n $total = count($this->aVocab);\n if ($this->bUseSimple === true) {\n $this->sTemplate = 'ktcore/forms/widgets/simple_selection'; \n } else if ($this->bUseSimple === false) {\n $this->sTemplate = 'ktcore/forms/widgets/selection'; \n } else if (is_null($this->bUseSimple) && ($total <= $this->USE_SIMPLE)) {\n $this->sTemplate = 'ktcore/forms/widgets/simple_selection';\n } else {\n $this->sTemplate = 'ktcore/forms/widgets/selection';\n }\n \n $oTemplating =& KTTemplating::getSingleton(); \n $oTemplate = $oTemplating->loadTemplate($this->sTemplate);\n\n // have to do this here, and not in \"configure\" since it breaks \n // entity-select.\n $unselected = KTUtil::arrayGet($this->aOptions, 'unselected_label');\n if (!empty($unselected)) {\n // NBM: we get really, really nasty interactions if we try merge\n // NBM: items with numeric (but important) key values and other\n // NBM: numerically / null keyed items\n $vocab = array();\n $vocab[] = $unselected;\n foreach ($this->aVocab as $k => $v) {\n $vocab[$k] = $v;\n }\n \n $this->aVocab = $vocab;\n\n // make sure its the selected one if there's no value specified.\n if (empty($this->value)) {\n $this->value = 0;\n }\n }\n\n // performance optimisation for large selected sets.\n if ($this->bMulti) {\n $this->_valuesearch = array();\n $value = (array) $this->value;\n foreach ($value as $v) {\n $this->_valuesearch[$v] = true;\n }\n }\n \n $aTemplateData = array(\n \"context\" => $this,\n \"name\" => $this->sName,\n \"has_id\" => ($this->sId !== null),\n \"id\" => $this->sId,\n \"has_value\" => ($this->value !== null),\n \"value\" => $this->value,\n \"options\" => $this->aOptions,\n 'vocab' => $this->aVocab,\n );\n return $oTemplate->render($aTemplateData);\n }", "public static function select(): DBSelect\n {\n $select = new DBSelect(\n static::$schema,\n self::fields(),\n get_called_class()\n );\n\n return $select;\n }", "public function select()\n {\n return $this->_db->factory('select', $this);\n }", "function meta_box_select( $args = array(), $value = false ) {\n\t\t\t$name = preg_replace( \"/[^A-Za-z_-]/\", '-', $args['name'] ); ?>\n\t\t\t<p>\n\t\t\t\t<label for=\"<?php echo $name; ?>\"><?php echo $args['title']; ?></label>\n\t\t\t\t<?php if ( !empty( $args['sep'] ) ) echo '<br />'; ?>\n\t\t\t\t<select name=\"<?php echo $name; ?>\" id=\"<?php echo $name; ?>\" style=\"width:60px\">\n\t\t\t\t\t<?php // echo '<option value=\"\"></option>'; ?>\n\t\t\t\t\t<?php $i = 0; foreach ( $args['options'] as $option => $val ) { $i++; ?>\n\t\t\t\t\t\t<option value=\"<?php echo esc_attr( $val ); ?>\" <?php selected( esc_attr( $value ), esc_attr( $val ) ); //if ( $i == 1 ) echo 'selected=\"selected\"'; ?>><?php echo ( !empty( $args['use_key_and_value'] ) ? $option : $val ); ?></option>\n\t\t\t\t\t<?php } ?>\n\t\t\t\t</select>\n\t\t\t\t<?php if ( !empty( $args['description'] ) ) echo '<br /><span class=\"howto\">' . $args['description'] . '</span>'; ?>\n\t\t\t</p>\n\t\t\t<?php\n\t\t}", "function iselect($name, $values_array, $selected_item = false, $label = false, $mode = false,\r\n $id = false)\r\n{\r\n\r\n $number = use_key($name);\r\n $id_attribute = id_attribute($id, $number);\r\n if ($label === false)\r\n $label = $name;\r\n\r\n echo '<label>' . $label . '<select name=\"' . $name . '\" ' . $id_attribute . '>';\r\n foreach ($values_array as $label => $value) {\r\n switch ($mode) {\r\n case \"key\":\r\n $value = $label;\r\n break;\r\n case \"value\":\r\n $label = $value;\r\n break;\r\n }\r\n $selected_item = ($selected_item === $label) ? \" selected \" : \"\";\r\n if (!trim($label)) {\r\n $label = \" -- Select -- \";\r\n }\r\n echo '<option ' . $selected_item . ' value=\"' . $value . '\">' . $label .\r\n '</option>';\r\n }\r\n echo '</select></label>';\r\n return $id;\r\n\r\n}", "public function dropdown() {\n $this->getSubmit()\n ->getControlPrototype()\n ->data('dropdown', 'toolbar[' . $this->name . ']');\n return $this;\n }", "function setTypeAsComboBox($itemList) {\n\t\t$this->type = \"select\";\n\t\t$this->seleu_itemlist = $itemList;\n\t}", "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 select()\n {\n return new geoTableSelect($this->_name);\n }", "public function render()\n {\n return view('components.admin.form-fields.select');\n }" ]
[ "0.61773527", "0.5996655", "0.59589136", "0.5743725", "0.56297994", "0.558627", "0.554805", "0.54564553", "0.5319266", "0.53090584", "0.5299444", "0.5279626", "0.5270832", "0.5232853", "0.5232853", "0.52327496", "0.521464", "0.5212312", "0.52074", "0.5206586", "0.51899594", "0.5186708", "0.5149882", "0.51493174", "0.5140792", "0.51349914", "0.5103094", "0.5092823", "0.5089775", "0.50844944", "0.50728077", "0.50571007", "0.50508714", "0.50508714", "0.5049948", "0.50466126", "0.50354975", "0.503519", "0.50349784", "0.5026686", "0.5023071", "0.5023071", "0.50230503", "0.50145864", "0.5010724", "0.5002005", "0.49690628", "0.49673265", "0.496082", "0.4959754", "0.4945193", "0.49439767", "0.49427617", "0.49414062", "0.4932764", "0.4925204", "0.49240232", "0.49224082", "0.49189594", "0.49122244", "0.49111587", "0.49096894", "0.4907335", "0.49016368", "0.49015635", "0.4900379", "0.48987204", "0.48953947", "0.48896092", "0.48883986", "0.48857877", "0.48672417", "0.48630878", "0.48606175", "0.48593098", "0.485149", "0.48492157", "0.48419908", "0.48419908", "0.48387536", "0.48321337", "0.4830696", "0.48045754", "0.47960082", "0.47924852", "0.47856107", "0.4784781", "0.47843215", "0.4783578", "0.4780882", "0.4777721", "0.47746846", "0.4769885", "0.47696626", "0.4763451", "0.47632325", "0.4757589", "0.4752813", "0.47524834", "0.47519946" ]
0.6500639
0
Adds select box control that allows multiple item selection.
public function addMultiSelect($name, $label, array $items = NULL, $size = NULL) { return $this[$name] = new MultiSelectBox($label, $items, $size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsMultipleSelect(){\n return true;\n }", "public function isMultiSelect() {}", "public function setMultiSelect($multiSelect = true) {}", "function _field_select_multiple($fval) \n {\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_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 }", "public function callback_multiselect( $args ) {\n\n $name_id = $args['name_id'];\n $elment_id = str_replace( '.', '--', $name_id );\n $elment_id = str_replace( '[', '_', $elment_id );\n $elment_id = str_replace( ']', '', $elment_id );\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $placeholder = isset( $args['placeholder'] ) ? $args['placeholder'] : '';\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';\n\n //$html = sprintf('<input type=\"hidden\" name=\"%1$s[]\" value=\"\">', $name_id);\n $html = sprintf( '<select data-placeholder=\"%1$s\" multiple=\"multiple\" class=\"%2$s-text %3$s-chosen-field\" name=\"%4$s[]\" id=\"%5$s\" %6$s>', $placeholder, $size, $this->settings_prefix, $name_id, $elment_id, $disable );\n\n foreach ( $args['options'] as $key => $label ) {\n $selected = (is_array($value) && in_array( $key, $value )) ? $key : $value;\n $selected = is_array($selected) ? $selected[0] : $selected;\n $html .= sprintf( '<option value=\"%s\" %s>%s</option>', $key, selected( $selected, $key, false ), $label );\n }\n\n $html .= sprintf( '</select>' );\n $html .= $this->get_field_description( $args );\n\n echo $html;\n }", "function theme_select(&$item) {\n\n\t\t$class = array('form-select');\n\t\t_form_set_class($item, $class);\n\n\t\t$size = $item['#size'] ? ' size=\"' . $item['#size'] . '\"' : '';\n\t\t$multiple = isset($item['#multiple']) && $item['#multiple'];\n\n\t\t$retval .= '<select name=\"'\n\t\t\t. $item['#name'] . ''. ($multiple ? '[]' : '') . '\"' \n\t\t\t. ($multiple ? ' multiple=\"multiple\" ' : '') \n\t\t\t. drupal_attributes($item['#attributes']) \n\t\t\t. ' id=\"' . $item['#id'] . '\" ' . $size . '>' \n\t\t\t. form_select_options($item) . '</select>';\n\t\treturn($retval);\n\n\t}", "public function addSelect($name, $label, $items = NULL, $size = NULL)\n\t{\n\t\treturn $this[$name] = new SelectBox($label, $items, $size);\n\t}", "public function enableMultipleSelection($multiple = false)\n {\n $this->ensureSelection();\n $this->data['selection']['multiple'] = $multiple;\n return $this;\n }", "public function setMultiple($value)\n {\n if (trim(strtoupper($value)) == \"Y\") {\n $this->internalMultiSelect = true;\n } else {\n $this->internalMultiSelect = false;\n }\n }", "public function addTcaSelectItemDataProvider() {}", "public function multiselect($items, $options = [])\n {\n $opts = $options;\n $this->initDisability($opts);\n $opts['encode'] = false;\n $height = ArrayHelper::remove($opts, 'height', self::MULTI_SELECT_HEIGHT);\n $selector = ArrayHelper::remove($opts, 'selector', self::TYPE_CHECKBOX);\n $container = ArrayHelper::remove($opts, 'container', []);\n Html::addCssStyle($container, 'height:'.$height, true);\n Html::addCssClass($container, $this->addClass.' input-multiselect');\n $container['tabindex'] = 0;\n $this->_multiselect = Html::tag('div', '{input}', $container);\n\n return $selector == self::TYPE_RADIO ? $this->radioList($items, $opts) : $this->checkboxList($items, $opts);\n }", "private function addValueToSelectedItems($value){\n if(strlen($value) > 0) {\n $this->selectedItems[] = $value;\n }\n }", "public function getFormType(){\n return 'multiselect';\n }", "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 run() {\n $this->htmlOptions['multiple'] = true;\n if($this->model) {\n $name_id = $this->resolveNameID();\n $input_id = $name_id[1];\n $select_html = CHtml::activeDropDownList($this->model, $this->attribute, $this->data, $this->htmlOptions);\n } else {\n $input_id = $this->attribute;\n $select_html = CHtml::dropDownList($this->attribute, $this->value, $this->data, $this->htmlOptions);\n }\n \n $options=CJavaScript::encode($this->options);\n Yii::app()->clientScript->registerScript('kendoui-multiselect-'.$input_id,\n 'var '.$input_id.' = jQuery(\"#'.$input_id.'\").kendoMultiSelect('.$options.').data(\"kendoMultiSelect\");'\n );\n \n echo $select_html;\n }", "protected function createUserAndGroupListForSelectOptions() {}", "public function multiple($multiple = 'multiple') {\r\n\t\t$this->setAttribute('multiple',$multiple);\r\n\t\treturn $this;\r\n\t}", "public static function multipleSelectList($name,$values,$labels,$selected=\"\",$id=\"\",$class=\"\",$selectAll=0)\n\t{\n\t\t# Convert selected to array\n\t\t$selectedItems = $selected;\n\t\tif(!is_array($selectedItems) && strlen(trim($selectedItems))){\n\t\t\t$selectedItems[] = $selectedItems;\n\t\t}\n\n\t\treturn FormComponent::dropDownList($name.'[]', $values, $labels, $selectedItems, $id, $class, 1, $selectAll);\n\t}", "public static function renderSelect();", "public function multi_select($attribute, $label, $values = [], $selected = [], $options = [])\n {\n if (!Input::has($attribute)) Input::merge([$attribute => []]);\n $options = static::defaults($options);\n return $this->addSingleField(\n $attribute,\n $options[self::OPTIONS_VALIDATION],\n Widget::getMultiSelectWidget($attribute, $label, $values, $selected, $options),\n function ($value) {\n return json_encode($value);\n }\n );\n }", "public function containingMultiSelectBlock($name, $options = null)\n {\n return $this->containingBlock('Select', func_get_args())->multiple();\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 }", "function add_multi_select_checkbox_to_checkout_ps_sms($field, $key, $args, $value)\n{\n if ((!empty($args['clear'])))\n $after = '<div class=\"clear\"></div>';\n else\n $after = '';\n if ($args['required']) {\n $args['class'][] = 'validate-required';\n $required = ' <abbr class=\"required\" title=\"' . esc_attr__('required', 'persian_woo_sms') . '\">*</abbr>';\n } else\n $required = '';\n $custom_attributes = array();\n if (! empty($args['custom_attributes']) && is_array($args['custom_attributes'])) {\n foreach ($args['custom_attributes'] as $attribute => $attribute_value) {\n $custom_attributes[] = esc_attr($attribute) . '=\"' . esc_attr($attribute_value) . '\"';\n }\n }\n if ($args['type'] == \"persian_woo_sms_multiselect\") {\n $value = is_array($value) ? $value : array($value);\n if (!empty($args['options'])) {\n $options = '';\n foreach ($args['options'] as $option_key => $option_text ) {\n $options .= '<option value=\"' . esc_attr($option_key) . '\" '. selected(in_array($option_key, $value), 1, false) . '>' . esc_attr($option_text) .'</option>';\n }\n $field = '<p class=\"form-row ' . esc_attr(implode(' ', $args['class'])) .'\" id=\"' . esc_attr($key) . '_field\">';\n if ($args['label']) {\n $field .= '<label for=\"' . esc_attr($key) . '\" class=\"' . implode(' ', $args['label_class']) .'\">' . $args['label']. $required . '</label>';\n }\n $field .= '<select name=\"' . esc_attr($key) . '[]\" id=\"' . esc_attr($key) . '\" class=\"select\" multiple=\"multiple\" ' . implode(' ', $custom_attributes) . '>'\n . $options\n . ' </select>';\n if ($args['description']) {\n $field .= '<span class=\"description\">' . ( $args['description'] ) . '</span>';\n }\n $field .= '</p>'. $after;\n }\n }\n if ($args['type'] == \"persian_woo_sms_multicheckbox\") {\n $value = is_array($value) ? $value : array($value);\n if (!empty($args['options'])) {\n $field .= '<p class=\"form-row ' . esc_attr(implode(' ', $args['class'])) .'\" id=\"' . esc_attr($key) . '_field\">';\n if ($args['label']) {\n $field .= '<label for=\"' . esc_attr(current(array_keys($args['options']))) . '\" class=\"' . implode(' ', $args['label_class']) .'\">' . $args['label']. $required . '</label>';\n }\n foreach ($args['options'] as $option_key => $option_text) {\n $field .= '<input type=\"checkbox\" class=\"input-checkbox\" value=\"' . esc_attr($option_key) . '\" name=\"' . esc_attr($key) . '[]\" id=\"' . esc_attr($key) . '_' . esc_attr($option_key) . '\"' . checked(in_array($option_key, $value), 1, false) . ' />';\n $field .= '<label for=\"' . esc_attr($key) . '_' . esc_attr($option_key) . '\" class=\"checkbox ' . implode(' ', $args['label_class']) .'\">' . $option_text . '</label><br>';\n }\n if ($args['description']) {\n $field .= '<span class=\"description\">' . ( $args['description'] ) . '</span>';\n }\n $field .= '</p>' . $after;\n }\n }\n return $field;\n}", "public function selectMultiple($name, $options = [])\n {\n $field = new SelectMultipleField($name);\n $this->fields[$name] = $this->setFields($field, $options);\n return $field;\n }", "function createSelectFromDb($config, $table, $name, \n\t\t$valueColumn, $labelColumn, $data, $multiple=FALSE)\n{\t\n\n\tif($multiple===FALSE)\n\t\t$html=\"<select name=\\\"\".$name.\"\\\">\";\n\telse\n\t\t$html=\"<select multiple name=\\\"\".$name.\"[]\\\">\";\n\n\n\t$cnx=connectDB($config);\n\t$query = \"SELECT * FROM \".$table;\n\t$result=mysqli_query($cnx,$query);\n\twhile ($row = mysqli_fetch_assoc($result)) \n\t{\t\n\t\t$html.=\"<option value=\\\"\".$row[$valueColumn].\"\\\"\"; \n\t\t\t\t//if (isset($data[$name])&&$data[$name]==\".$row[$valueColumn].\")\n\t\t\t\tif (in_array($row[$valueColumn],$data))\n\t\t\t\t\t$html.='selected';\n\t\t\t\telse \n\t\t\t\t\t$html.='';\n\t\t$html.=\">\".$row[$labelColumn].\"</option>\";\t\t\n\n\t}\n\t$html.=\"</select>\";\n\n\treturn $html;\n}", "public function getSelectedList() {}", "function select_option()\r\n{}", "private function renderMultiples() {\n\n $tpl = \"\";\n foreach ($this->_selectoresOpcion as $id => $selector) {\n $input = $selector->render(TRUE);\n\n $data = [\n 'input' => $input,\n 'label' => $selector->labelOpcion,\n 'type' => $selector->type,\n\n ];\n if ($this->inline) {\n $tpl .= $this->_obtTemplate($this->estructura('MultiplesInline'), $data);\n } else {\n $data['class'] = Estructura::$cssMultiples;\n $tpl .= $this->_obtTemplate($this->estructura('controlMultiple'), $data);\n }\n\n\n }\n\n return $tpl;\n }", "protected function _getHtmlMultiselect(Varien_Object $row)\n {\n $html = '<select multiple name=\"' . $this->escapeHtml($this->_getInputName()) . '\" ' . $this->getColumn()->getValidateClass() . '>';\r\n $value = $row->getData($this->getColumn()->getIndex());\r\n foreach ($this->_getOptions() as $val => $label){\r\n $selected = ( ($val == $value && (!is_null($value))) ? ' selected=\"selected\"' : '' );\r\n $html .= '<option value=\"' .\n $this->escapeHtml($val) . '\"' .\n ( $this->_isOptionSet($row, $val) ? ' selected=\"selected\"' : '' ) .\n '>' .\n $this->escapeHtml($label) . '</option>';\r\n }\r\n $html.='</select>';\r\n return $html;\n }", "function SelectValuesUnidad($db_conx) {\r\n $sql = \"SELECT uni_codigo, uni_descrip FROM tunidad ORDER BY uni_descrip ASC\";\r\n $query = mysqli_query($db_conx, $sql);\r\n\r\n $n_filas = $query->num_rows;\r\n $data = '<select class=\"unidadmedico\" multiple=\"multiple\" id=\"cmbunidad\">';\r\n $c = 0;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n $c++;\r\n }\r\n $data .= '</select>';\r\n echo $data;\r\n}", "function select_tag($name, $options, array $attributes = array())\r\n{\r\n $attributes['name'] = isset($attributes['multiple']) && $attributes['multiple'] === true ? $name.'[]' : $name;\r\n $attributes['id'] = @$attributes['id'] ?: $name;\r\n\r\n if (isset($attributes['include_blank'])) {\r\n $include_blank = array_take($attributes, 'include_blank');\r\n\r\n if ($include_blank) {\r\n $options = tag('option', array(), '').$options;\r\n }\r\n }\r\n\r\n return tag('select', $attributes, $options);\r\n}", "function select($args) {\r\n\t\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\t\tif ($args['multiple']) {\r\n\t\t\t\techo \"<select class='optselect chzn-select' multiple='true' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"\" . \"[]'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . (array_search($value , $args['value']) === false ? '' : 'selected' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t} else {\r\n\t\t\t\techo \"<select class='optselect chzn-select' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . ($args['value'] == $key ? 'selected' : '' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t}\r\n\t\t\t$this->description($args['description']);\r\n\t\t}", "public function getSelectable() {}", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "function wppb_check_multiple_select_value( $message, $field, $request_data, $form_location ){\r\n\tif( $field['field'] == 'Select (Multiple)' && $field['required'] == 'Yes' ){\r\n\t\tif ( isset( $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) ){\r\n\r\n\t\t\t$selected_values = '';\r\n\t\t\tforeach ( $request_data[wppb_handle_meta_name( $field['meta-name'] )] as $key => $value )\r\n\t\t\t\t$selected_values .= $value.',';\r\n\r\n\t\t\tif ( trim( $selected_values, ',' ) == '' ){\r\n\t\t\t\treturn wppb_required_field_error($field[\"field-title\"]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n return $message;\r\n}", "public function multiple()\n {\n /** @var self $elt */\n $elt = with(clone $this)->attribute('multiple');\n $name = $elt->getAttribute('name');\n\n return $elt->if($name && ! Str::endsWith($name->value(), '[]'), function (self $elt) use ($name) {\n return $elt->name($name->value().'[]');\n })->applyValueToOptions();\n }", "public function registerClientScript()\n\t{\n\t\t$view = $this->getView ();\n\t\tSimpleDualListboxAsset::register ( $view );\n\t\t$options = Json::encode ( empty ( $this->clientOptions ) ? [ ] : $this->clientOptions );\n\t\t$data = Json::encode ( $this->items_nosel );\n\t\t$view->registerJs ( \"$('#$this->id').listboxdual($options, $data);\" );\n\t}", "public function set_multiselect($multiselect) {\n $this->multiselect = $multiselect;\n }", "function build_selection_box($select_name,$select_text,$select_types,$selected_option)\n\t{\n\t\tglobal $template, $lang;\n\t\n\t\t$select = \"<select name='\".$select_name.\"'>\";\n\t\tif (empty($selected_option))\n\t\t{\n\t\t\t$select .= \"<option value=''>\".$lang['Select_A_Option'].\"</option>\";\n\t\t\t$select .= \"<option value=''>------</option>\";\n\t\t}\n\t\n\t\tfor($i = 0; $i < count($select_text); $i++)\n\t\t{\n\t\t\t$selected = ( $selected_option == $select_types[$i] ) ? ' selected=\"selected\"' : '';\n\t\t\t$select .= '<option value=\"' . $select_types[$i] . '\"' . $selected . '>' . $select_text[$i] . '</option>';\n\t\t}\n\t\n\t\t$select .= '</select>';\n\t\n\t\treturn $select;\n\t}", "function PKG_multiPackageSelectionsSelection($selName,$first,$addFirstEntry=\"\")\n{\n\t$selections = HELPER_array2AssociativeArray(PKG_getAllPackageSelections($addFirstEntry));\n\treturn(HTML_selection($selName,$selections, SELTYPE_selection, true, $first, false, \"\", 5));\n}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "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}", "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "function fill_select_multiple($name, $value, array $object = null, $default = null)\n{\n if (old($name) !== null) {\n if (in_array((string) $value, old($name) ?: [], true)) {\n return 'selected';\n }\n } elseif (in_array((string) $value, $object ?: [], true)) {\n return 'selected';\n }\n\n return $value === $default ? 'selected' : '';\n}", "protected function createSelectbox($key, $items, $type)\n {\n // Remove dot\n $key = substr($key, 0, -1);\n $selectbox = '<div class=\"col-xs-12 col-sm-4 col-md-3 col-lg-2\">'.LF;\n $selectbox .= '<div class=\"form-control-wrap\">'.LF;\n $selectbox .= '<select name=\"'.$key.'\" class=\"form-control form-control-adapt input-sm\">'.LF;\n $activeKey = '';\n foreach ($items as $itemKey => $itemValue) {\n if ($activeKey == '') {\n $activeKey = $key.'-'.$itemKey;\n }\n $selected = '';\n if (isset($this->valuesFlipped[$key.'-'.$itemKey])) {\n $activeKey = $key.'-'.$itemKey;\n $selected = 'selected=\"selected\"';\n }\n $label = $this->getLanguageService()->sL($itemValue);\n $selectbox .= '<option value=\"'.$key.'-'.$itemKey.'\" '.$selected.'>'.$label.'</option>'.LF;\n }\n $selectbox .= '</select>'.LF;\n $selectbox .= '</div>'.LF;\n $selectbox .= '</div>'.LF;\n $this->valuesAvailable[] = $activeKey;\n $this->checkboxesArray[$type][] = $selectbox;\n }", "function select($name = \"txt\", $alttext = \"\", $selecttype = \"array\", $lookup = \"\", $value = \"\", $event = \"\", $cssid = \"\", $readonly = false, $nochoose = true) {\n\n if (isset($_REQUEST[$name])) {\n if ($value == \"\") {\n $value = $_REQUEST[$name];\n }\n }\n $lookuplist = [];\n if ($selecttype == \"array\" || $selecttype == \"multiarray\") {\n\n if (is_array($lookup)) {\n $lookuplist = $lookup;\n } else {\n $lookuplist = explode(\"|\", $lookup);\n }\n } else if ($selecttype == \"sql\" || $selecttype == \"multisql\") {\n $lookuprow = $this->DEB->getRows($lookup, DEB_ARRAY); //format [0] = NAME\n\n\n foreach ($lookuprow as $irow => $row) {\n $lookuplist[$irow] = $row[0] . \",\" . $row[1]; //make it in the form of array\n }\n }\n //make options for the type of select etc .....\n if ($selecttype == \"multiarray\" || $selecttype == \"multisql\") {\n $options = \"multiple=\\\"multiple\\\"\";\n } else {\n $options = \"\";\n }\n if ($readonly == true) {\n $disabled = \"disabled=\\\"disabled\\\"\";\n } else {\n $disabled = \"\";\n }\n //default text\n if ($alttext == \"\") {\n $alttext = \"Choose\";\n }\n if ($cssid != \"\") {\n $cssid = \"id=\\\"{$cssid}\\\"\";\n } else {\n $cssid = \"\";\n }\n $html = \"<select class=\\\"form-control\\\" $cssid name=\\\"{$name}\\\" $options {$event} $disabled >\";\n\n if (!$nochoose) {\n $html .= \"<option value=\\\"\\\">{$alttext}</option>\";\n }\n\n foreach ($lookuplist as $lid => $option) {\n\n $toption = explode(\",\", $option);\n if (count($toption) != 2) {\n $toption[0] = $lid;\n $toption[1] = $option;\n }\n\n $option = $toption;\n\n if (trim($value) == trim($option[0])) {\n $html .= \"<option selected=\\\"selected\\\" value=\\\"{$option[0]}\\\">{$option[1]}</option>\";\n } else {\n $html .= \"<option value=\\\"{$option[0]}\\\">{$option[1]}</option>\";\n }\n }\n $html .= \"</select>\";\n return $html;\n }", "public static function dropDownList($name,$values,$labels,$selected=\"\",$id=\"\",$class=\"\",$multiple=0,$selectAll=0)\n\t{\n\t\t# Begin Select\n\t\t$str = '<select name=\"'.$name.'\" id=\"'.$id.'\" title=\"Nothing Selected\" class=\"selectpicker '.$class.'\" '.(($multiple)? 'multiple=\"multiple\"': '').' '.(($selectAll)? 'data-actions-box=\"true\"': '').'>';\n\n\t\t# Create Empty Option\n\t\t//$str .= '<option value=\"0\"></option>';\n\n\t\t# Iterate through option values\n\t\tfor($i = 0; $i < sizeof($values); $i++){\n\n\t\t\t# If nested Array - Opt groups\n\t\t\tif(is_array($values[$i])){\n\n\t\t\t\t# Label\n\t\t\t\t$label = (strlen(trim($labels[$i][0])))? $labels[$i][0] : \"&nbsp;\";\n\n\t\t\t\t# Create Opt-group\n\t\t\t\t$str.= '<optgroup label=\"'.$label.'\">';\n\n\t\t\t\t# Iterate through options for this Opt-group\n\t\t\t\tfor($j = 0; $j < sizeof($values[$i][1]); $j++){\n\t\t\t\t\t# Label\n\t\t\t\t\t$label = (strlen(trim($labels[$i][1][$j])))? $labels[$i][1][$j] : \"&nbsp;\";\n\n\t\t\t\t\t# Selected\n\t\t\t\t\tif(is_array($selected)){\n\t\t\t\t\t\t$selectedClass = (in_array(trim($values[$i][1][$j]), $selected) && $selected != \"\")? 'selected=\"selected\"' : '';\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$selectedClass = ($selected == $values[$i][1][$j] && $selected != \"\")? 'selected=\"selected\"' : '';\n\t\t\t\t\t}\n\n\t\t\t\t\t# Create Option\n\t\t\t\t\t$str .= '<option value=\"'.$values[$i][1][$j].'\" '.$selectedClass.'>'.$label.'</option>';\n\t\t\t\t}\n\n\t\t\t\t#Close Obt-group\n\t\t\t\t$str.= '</optgroup>';\n\n\t\t\t}\n\n\t\t\t# Else - Regular Dropdown\n\t\t\telse{\n\n\t\t\t\t# Label\n\t\t\t\t$label = (strlen(trim($labels[$i])))? $labels[$i] : \"&nbsp;\";\n\n\t\t\t\t# Selected\n\t\t\t\tif(is_array($selected)){\n\t\t\t\t\t$selectedClass = (in_array(trim($values[$i]), $selected) && $selected != \"\")? 'selected=\"selected\"' : '';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$selectedClass = ($selected == $values[$i] && $selected != \"\")? 'selected=\"selected\"' : '';\n\t\t\t\t}\n\n\t\t\t\t# Create Option\n\t\t\t\t$str .= '<option value=\"'.$values[$i].'\" '.$selectedClass.'>'.$label.'</option>';\n\t\t\t}\n\n\t\t}\n\n\t\t# End Select\n\t\t$str .= '</select>';\n\n\t\tob_start(); ?>\n\n\t\t<script type=\"text/javascript\">\n\t\t\t$(function(){\n\t\t\t\t$('.selectpicker').selectpicker();\n\t\t\t});\n\t\t</script>\n\n\t\t<?php\n\t\t$str .= ob_get_clean();\n\t\treturn $str;\n\t}", "function afficherListeMultiple($tbObjets, $name, $size, $idSelect) {\n\t\tif (count($tbObjets) && (empty($idSelect))) { \n\t\t\t$idSelect = $tbObjets[0]->identifiant; \n\t\t\t// alors $idSelect est l'identifiant du premier objet du tableau \n\t\t}\n\t\techo '<select name=\"'.$name.'[]\" id=\"'.$name.'[]\" size='.$size.' multiple>';\n\n\t\tforeach ($tbObjets as $objet) { \n\t\t\t// l'élément en paramètre est présélectionné \n\t\t\tif ($objet->identifiant != $idSelect) { \n\t\t\t\t// si l'identifiant de l'objet n'est pas l'identifiant présélectionné \n\t\t\t\techo '<option value='.$objet->identifiant.'>'.$objet->libelle.'</option>';\n\t\t\t} \n\t\t\telse { \n\t\t\t\techo '<option selected value='.$idSelect.'>'.$objet->libelle.'</option>';\n\t\t\t}\n\t\t}\n\t\techo '</select>';\n\t\treturn ($idSelect); \n\t}", "public function getSelect();", "public function getSelect();", "public function enqueue_wc_multiselect() {\n wp_enqueue_script( 'wc-enhanced-select' ) ;\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}", "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 }", "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 meta_box_select( $args = array(), $value = false ) {\n\t\t\t$name = preg_replace( \"/[^A-Za-z_-]/\", '-', $args['name'] ); ?>\n\t\t\t<p>\n\t\t\t\t<label for=\"<?php echo $name; ?>\"><?php echo $args['title']; ?></label>\n\t\t\t\t<?php if ( !empty( $args['sep'] ) ) echo '<br />'; ?>\n\t\t\t\t<select name=\"<?php echo $name; ?>\" id=\"<?php echo $name; ?>\" style=\"width:60px\">\n\t\t\t\t\t<?php // echo '<option value=\"\"></option>'; ?>\n\t\t\t\t\t<?php $i = 0; foreach ( $args['options'] as $option => $val ) { $i++; ?>\n\t\t\t\t\t\t<option value=\"<?php echo esc_attr( $val ); ?>\" <?php selected( esc_attr( $value ), esc_attr( $val ) ); //if ( $i == 1 ) echo 'selected=\"selected\"'; ?>><?php echo ( !empty( $args['use_key_and_value'] ) ? $option : $val ); ?></option>\n\t\t\t\t\t<?php } ?>\n\t\t\t\t</select>\n\t\t\t\t<?php if ( !empty( $args['description'] ) ) echo '<br /><span class=\"howto\">' . $args['description'] . '</span>'; ?>\n\t\t\t</p>\n\t\t\t<?php\n\t\t}", "function LUPE_option_lista_rs($rs, $NomeCombo, $size = '', $JS = '', $Style = '', $multiple = true)\r\n{\r\n\r\n $multiple = $multiple ? 'multiple' : '';\r\n $tam_lst = $size == '' ? mssql_num_rows($rs) : $size;\r\n\r\n if ($size == '') {\r\n $tam_lst = $tam_lst < 6 ? 6 : $tam_lst;\r\n $tam_lst = $tam_lst > 15 ? 15 : $tam_lst;\r\n }\r\n\r\n $option = '<select id=\"'.$NomeCombo.'\" name=\"'.$NomeCombo.'\" size=\"'.$tam_lst.'\" '.$multiple.' '.$JS.' style=\"'.$Style.'\">';\r\n\r\n if (mssql_num_rows($rs) > 0) {\r\n mssql_data_seek($rs, 0);\r\n\r\n While ($row = mssql_fetch_array($rs)) {\r\n $option .= '<option value=\"'.$row[0].'\">';\r\n\r\n for ($x = 1; $x < mssql_num_fields($rs); $x++) {\r\n $option .= htmlentities($row[$x]);\r\n if ($x < mssql_num_fields($rs) - 1)\r\n $option .= \" - \";\r\n }\r\n $option .= \"</option>\";\r\n }\r\n }\r\n\r\n $option .= \"</select>\";\r\n\r\n return $option;\r\n}", "public static function selectList($name,$values,$labels,$selected=\"\",$id=\"\",$class=\"\")\n\t{\n\t\treturn FormComponent::dropDownList($name, $values, $labels, $selected, $id, $class, 0);\n\t}", "public static function addListSelection($label, $name, $options, $noDefault = false)\r\n\t{\r\n\t\tarray_push(static::$ListSelection, array('label' => $label, 'name' => $name, 'options' => $options, 'noDefault' => $noDefault));\r\n\t}", "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 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 select( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_SELECT,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "function select_box($selected, $options, $input_name, $input_id = FALSE, $use_lang = TRUE, $key_is_value = TRUE, $attributes = array())\n\t{\n\t\tglobal $LANG;\n\n\t\t$input_id = ($input_id === FALSE) ? str_replace(array(\"[\", \"]\"), array(\"_\", \"\"), $input_name) : $input_id;\n\n\t\t$attributes = array_merge(array(\n\t\t\t\"name\" => $input_name,\n\t\t\t\"id\" => strtolower($input_id)\n\t\t), $attributes);\n\n\t\t$attributes_str = \"\";\n\t\tforeach ($attributes as $key => $value)\n\t\t{\n\t\t\t$attributes_str .= \" {$key}='{$value}' \";\n\t\t}\n\n\t\t$ret = \"<select{$attributes_str}>\";\n\n\t\tforeach($options as $option_value => $option_label)\n\t\t{\n\t\t\tif (!is_int($option_value))\n\t\t\t\t$option_value = $option_value;\n\t\t\telse\n\t\t\t\t$option_value = ($key_is_value === TRUE) ? $option_value : $option_label;\n\n\t\t\t$option_label = ($use_lang === TRUE) ? $LANG->line($option_label) : $option_label;\n\t\t\t$checked = ($selected == $option_value) ? \" selected='selected' \" : \"\";\n\t\t\t$ret .= \"<option value='{$option_value}'{$checked}>{$option_label}</option>\";\n\t\t}\n\n\t\t$ret .= \"</select>\";\n\t\treturn $ret;\n\t}", "public function isMultiSelection()\n {\n if ($this->getType() == 'checkbox' || $this->getType() == 'multi') {\n return true;\n } else {\n return false;\n }\n }", "function get_name_select_list()\n\t{\n\t\treturn $this->get_name_select_edit();\n\t}", "public function addSelectBind($name, $label, $items = NULL, $parent, $size = NULL)\n\t{\n\t\treturn $this[$name] = new SelectBoxBind($label, $items, $parent, $size);\n\t}", "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 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 }", "function SelectValuesServicios_MReferenciado($db_conx, $table, $multiple = NULL) {\r\n $sql = \"\";\r\n $script = \"\";\r\n\r\n if ($table == \"servicios\") {\r\n $sql = \"SELECT * FROM tservicios ORDER BY ser_descrip ASC\";\r\n $script = 'onchange=\"getMedicoxServicios(\\'medicos\\');\"';\r\n } else {\r\n $sql = \"SELECT * FROM tmedicoreferenciado WHERE mer_estado = 'activo' ORDER BY mer_sape ASC\";\r\n $script = 'onchange=\"getMedicoxServicios(\\'servicios\\');\"';\r\n }\r\n\r\n if ($multiple == NULL) {\r\n if ($table == \"servicios\") {\r\n $data = '<select ' . $script . ' size=\"30\" style=\"width: 90%;\" class=\"cmb' . $table . 'x\" id=\"cmb' . $table . 'x\">\r\n <option value=\"\">Ninguno</option>';\r\n } else {\r\n $data = '<select ' . $script . ' size=\"30\" style=\"width: 90%;\" class=\"cmb' . $table . '\" id=\"cmb' . $table . '\">\r\n <option value=\"\">Ninguno</option>';\r\n }\r\n } else {\r\n if ($table == \"servicios\") {\r\n $data = '<select size=\"30\" style=\"width: 90%; float:right;\" multiple=\"multiple\" class=\"cmb' . $table . '\" id=\"cmb' . $table . '\">\r\n <option value=\"\">Ninguno</option>';\r\n } else {\r\n $data = '<select size=\"30\" style=\"width: 90%; float:right;\" multiple=\"multiple\" class=\"cmb' . $table . 'x\" id=\"cmb' . $table . 'x\">\r\n <option value=\"\">Ninguno</option>';\r\n }\r\n }\r\n $c = 0;\r\n $query = mysqli_query($db_conx, $sql);\r\n $n_filas = $query->num_rows;\r\n while ($c < $n_filas) {\r\n $row = mysqli_fetch_array($query);\r\n if ($table == \"servicios\") {\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[1] . '</option>';\r\n } else {\r\n $data .= '<option value=\"' . $row[0] . '\">' . $row[7] . \" \" . $row[8] . \" \" . $row[5] . \" \" . $row[6] . '</option>';\r\n }\r\n $c++;\r\n }\r\n $data .= '</select>';\r\n echo $data;\r\n}", "function wppb_multiple_select_handler( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){\r\n\tif ( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$item_title = apply_filters( 'wppb_'.$form_location.'_multiple_select_custom_field_'.$field['id'].'_item_title', wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_title_translation', $field['field-title'] ) );\r\n\t\t$item_description = wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_description_translation', $field['description'] );\r\n\t\t$item_option_labels = wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_option_labels_translation', $field['labels'] );\r\n\r\n\t\t$select_labels = explode( ',', $item_option_labels );\r\n\t\t$select_values = explode( ',', $field['options'] );\r\n\r\n\t\t$extra_attr = apply_filters( 'wppb_extra_attribute', '', $field, $form_location );\r\n\r\n if( $form_location != 'register' )\r\n\t\t $input_value = ( ( wppb_user_meta_exists ( $user_id, $field['meta-name'] ) != null ) ? array_map( 'trim', explode( ',', get_user_meta( $user_id, $field['meta-name'], true ) ) ) : array_map( 'trim', explode( ',', $field['default-options'] ) ) );\r\n\t\telse\r\n $input_value = ( isset( $field['default-options'] ) ? array_map( 'trim', explode( ',', $field['default-options'] ) ) : array() );\r\n\r\n $input_value = ( isset( $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) ? array_map( 'trim', $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) : $input_value );\r\n\r\n\t\tif ( $form_location != 'back_end' ){\r\n\t\t\t$error_mark = ( ( $field['required'] == 'Yes' ) ? '<span class=\"wppb-required\" title=\"'.wppb_required_field_error($field[\"field-title\"]).'\">*</span>' : '' );\r\n\t\t\t\t\t\t\r\n\t\t\tif ( array_key_exists( $field['id'], $field_check_errors ) )\r\n\t\t\t\t$error_mark = '<img src=\"'.WPPB_PLUGIN_URL.'assets/images/pencil_delete.png\" title=\"'.wppb_required_field_error($field[\"field-title\"]).'\"/>';\r\n\r\n\t\t\t$output = '\r\n\t\t\t\t<label for=\"'.$field['meta-name'].'\">'.$item_title.$error_mark.'</label>\r\n\t\t\t\t<select name=\"'.$field['meta-name'].'[]\" id=\"'.$field['meta-name'].'\" size=\"'.( count( $select_values ) > 10 ? count( $select_values ) / 2 : count( $select_values ) ).'\" class=\"custom_field_multiple_select '. apply_filters( 'wppb_fields_extra_css_class', '', $field ) .'\" multiple=\"multiple\" '. $extra_attr .'>';\r\n\r\n\t\t\t\tforeach( $select_values as $key => $value){\r\n\t\t\t\t\t$output .= '<option value=\"'.trim( $value ).'\" class=\"custom_field_multiple_select_option\" name=\"'.trim( $value ).'_'.$field['id'].'\" id=\"'.trim( $value ).'_'.$field['id'].'\"';\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( in_array( trim( $value ), $input_value ) )\r\n\t\t\t\t\t\t$output .= ' selected';\r\n\r\n\t\t\t\t\t$output .= '>'.( ( !isset( $select_labels[$key] ) || !$select_labels[$key] ) ? trim( $select_values[$key] ) : trim( $select_labels[$key] ) ).'</option>';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$output .= '\r\n\t\t\t\t</select>';\r\n if( !empty( $item_description ) )\r\n $output .= '<span class=\"wppb-description-delimiter\">'.$item_description.'</span>';\r\n\r\n\t\t}else{\r\n $item_title = ( ( $field['required'] == 'Yes' ) ? $item_title .' <span class=\"description\">('. __( 'required', 'profile-builder' ) .')</span>' : $item_title );\r\n\t\t\t$output = '\r\n\t\t\t\t<table class=\"form-table\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th><label for=\"'.$field['meta-name'].'\">'.$item_title.'</label></th>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<select name=\"'.$field['meta-name'].'[]\" class=\"custom_field_multiple_select\" id=\"'.$field['meta-name'].'\" multiple=\"multiple\" '. $extra_attr .'>';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tforeach( $select_values as $key => $value){\r\n\t\t\t\t\t\t\t\t$output .= '<option value=\"'.trim( $value ).'\" size=\"'.( count( $select_values ) > 10 ? count( $select_values ) / 2 : count( $select_values ) ).'\" class=\"custom_field_multiple_select_option\" id=\"'.trim( $value ).'_'.$field['id'].'\"';\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif ( in_array( trim( $value ), $input_value ) )\r\n\t\t\t\t\t\t\t\t\t$output .= ' selected';\r\n\r\n\t\t\t\t\t\t\t\t$output .= '>'.( ( !isset( $select_labels[$key] ) || !$select_labels[$key] ) ? trim( $select_values[$key] ) : trim( $select_labels[$key] ) ).'</option>';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$output .= '</select>\r\n\t\t\t\t\t\t\t<span class=\"description\">'.$item_description.'</span>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>';\r\n\t\t}\r\n\t\t\t\r\n\t\treturn apply_filters( 'wppb_'.$form_location.'_multiple_select_custom_field_'.$field['id'], $output, $form_location, $field, $user_id, $field_check_errors, $request_data, $input_value );\r\n\t}\r\n}", "static function createSelect($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/select.php\";\n }", "public function enableSelectmenu ()\n {\n $baseUrl = \\Zend_Controller_Front::getInstance()->getBaseUrl();\n $this->view->headScript()->prependFile($baseUrl . '/gems/js/jquery-ui-selectmenu.js');\n $this->view->headLink()->appendStylesheet($baseUrl . '/gems/css/jquery-ui.css');\n $this->view->headLink()->appendStylesheet($baseUrl . '/gems/css/jquery-ui-selectmenu.css');\n \n $js = sprintf(\"jQuery(document).ready(function($) {\n $('#%s').iconselectmenu({width: null}).iconselectmenu('menuWidget').addClass('ui-menu-icons avatar overflow');\n });\",\n $this->id\n );\n \n $this->view->headScript()->appendScript($js);\n }", "public function rolesAsSelect2()\r\n {\r\n $data['roles'] = $this->AdminRoleModel->getAll();\r\n echo $this->load->view('admin/users/roles-bulk-assign', $data, TRUE);\r\n }", "function select_list_from_array($name, $data_array, $default_value = \"\", $allow_empty = FALSE, $class = \"\", $id = \"\", $select_message = 'Select an option') {\n $select_object = new html_classes\\select($name);\n $select_object->set_attrib(\"class\", $class, TRUE);\n $select_object->set_attrib(\"id\", $id);\n\n if ($allow_empty) {\n $select_object->append_option(\"\", $select_message);\n }\n\n foreach ($data_array as $value => $label) {\n $select_object->append_option($value, $label, (($value === $default_value) ? TRUE : FALSE));\n }\n return $select_object;\n}", "function iselect($name, $values_array, $selected_item = false, $label = false, $mode = false,\r\n $id = false)\r\n{\r\n\r\n $number = use_key($name);\r\n $id_attribute = id_attribute($id, $number);\r\n if ($label === false)\r\n $label = $name;\r\n\r\n echo '<label>' . $label . '<select name=\"' . $name . '\" ' . $id_attribute . '>';\r\n foreach ($values_array as $label => $value) {\r\n switch ($mode) {\r\n case \"key\":\r\n $value = $label;\r\n break;\r\n case \"value\":\r\n $label = $value;\r\n break;\r\n }\r\n $selected_item = ($selected_item === $label) ? \" selected \" : \"\";\r\n if (!trim($label)) {\r\n $label = \" -- Select -- \";\r\n }\r\n echo '<option ' . $selected_item . ' value=\"' . $value . '\">' . $label .\r\n '</option>';\r\n }\r\n echo '</select></label>';\r\n return $id;\r\n\r\n}", "public function __construct() {\n\t\tparent::__construct();\n\n\t\t$this->category = _x( 'Multi Fields', 'xprofile field type category', 'buddypress' );\n\t\t$this->name = _x( 'Multi Select Box', 'xprofile field type', 'buddypress' );\n\n\t\t$this->supports_multiple_defaults = true;\n\t\t$this->accepts_null_value = true;\n\t\t$this->supports_options = true;\n\n\t\t$this->set_format( '/^.+$/', 'replace' );\n\t\tdo_action( 'bp_xprofile_field_type_multiselectbox', $this );\n\t}", "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}", "function listadoSelect();", "function create_selectbox($name, $data, $default='', $param=''){\r\n $out='<select id=\"'.$name.'\" name=\"'.$name.'\"'. (!empty($param)?' '.$param:'') .\">\\n\";\r\n\r\n foreach($data as $key=>$val) {\r\n $out.='<option value=\"' .$key. '\"'. ($default==$key?' selected=\"selected\"':'') .'>';\r\n $out.=$val;\r\n $out.=\"</option>\\n\";\r\n }\r\n $out.=\"</select>\\n\";\r\n\r\n return $out;\r\n}", "function get_multiselect_from_table ($tpl,$table,\n $nom_select,\n $classe_select,\n $extra_attrs,\n $value_option,$texte_option,\n $option_tous,$texte_tous,\n $values_selected,\n $size=10) {\n global $CFG;\n\n $modele=<<<EOT\n<!-- START BLOCK : select -->\n<select\n name=\"{nom_select}[]\" id=\"{nom_select}\" multiple=\"multiple\" size=\"$size\"\n class=\"{classe_select}\"\n {extra_attrs}>\n <!-- START BLOCK : option_neutre -->\n <option value=\"{value_neutre}\">{texte_neutre}</option>\n <!-- END BLOCK : option_neutre -->\n <!-- START BLOCK : option -->\n <option value=\"{value_option}\" {selected}>{texte_option}</option>\n <!-- END BLOCK : option -->\n</select>\n<!-- END BLOCK : select -->\n\nEOT;\n $tmptpl= new SubTemplatePower($modele,T_BYVAR); //cr�er une instance\n // a le meme chemin que le template porteur si existe\n if (!$tpl) $tmptpl->prepare($CFG->chemin);\n else $tmptpl->prepare($tpl->chemin);\n $tmptpl->newBlock(\"select\");\n $tmptpl->assign(\"nom_select\",$nom_select);\n $tmptpl->assign(\"classe_select\",$classe_select?$classe_select:'saisie');\n $tmptpl->assign(\"extra_attrs\",$extra_attrs?$extra_attrs:'');\n if ($option_tous) { // item sans valeur au d�but ?\n $tmptpl->newBlock(\"option_neutre\");\n $tmptpl->assign(\"value_neutre\",$option_tous);\n $tmptpl->assign(\"texte_neutre\",$texte_tous);\n }\n if ($table)\n foreach($table as $option) {\n $tmptpl->newBlock(\"option\");\n $tmptpl->assign(\"value_option\",$option->$value_option);\n $tmptpl->assign(\"texte_option\",$option->$texte_option);\n // print ($values_selected[$option->$value_option]);\n $tmptpl->setSelected (!empty($values_selected[$option->$value_option]));\n }\n return $tmptpl->getOutputContent();\n}", "public function callback_select( $args ) {\n\n $name_id = $args['name_id'];\n if ($args['parent']) {\n $value = $this->get_option( $args['parent']['id'], $args['section'], $args['std'], $args['global'] );\n $value = isset($value[$args['id']]) ? $value[$args['id']] : $args['std'];\n $args['disable'] = (isset( $args['parent']['disable'])) ? $args['parent']['disable'] : false;\n }else {\n $value = $this->get_option( $args['id'], $args['section'], $args['std'], $args['global'] );\n }\n\n $disable = (isset( $args['disable'] ) && $args['disable'] === true) ? 'disabled' : '';\n $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';\n $html = sprintf( '<select class=\"%1$s\" name=\"%2$s\" id=\"%2$s\" %3$s>', $size, $name_id, $disable );\n\n foreach ( $args['options'] as $key => $label ) {\n $html .= sprintf( '<option value=\"%s\" %s>%s</option>', $key, selected( $value, $key, false ), $label );\n }\n\n $html .= sprintf( '</select>' );\n $html .= $this->get_field_description( $args );\n\n echo $html;\n }", "public function getSelectList() {\n\treturn $this->selectList;\n }", "public function getMultiOptions() {\n\t\treturn $this->_multioption;\n\t}", "function SelectBox($name)\n {\n $this -> name = $name;\n }", "public function Do_select_Example1(){\n\n\t}", "protected function get_select_kelas( $attributes , $additional_item = array()){\n $default = array( \"class\" => \"selectpicker\",\n \"name\" => '',\n 'id' => '' , \n 'selected' => '',\n\t\t\t\t\t\t );\n\t\t//! transfer to default array\n\t\t$default = $this->array_combine($default , $attributes);\n $hasil = array();\n $sessions = Kelas_Model::orderby('nama' , 'ASC')->get();\n foreach($sessions as $item){\n $hasil [] = $item->nama ;\n }\t\t\n\t\t//@ additioanl item\n foreach($additional_item as $item){ $hasil [] = $item ; }\t\t\n return $this->get_select( $hasil , $default);\t\t\n\t}", "function team_products_metaboxes() {\n add_meta_box(\n 'team_products',\n 'Choose Products',\n 'team_products_list_html',\n 'team',\n 'normal',\n 'default'\n );\n}", "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}", "function dropDown($array,$multi,$size,$name,$result)\r\n{\r\n /**\r\n *Format the select option\r\n */\r\n echo \"<select name=\\\"$name\";\r\n \r\n if ($multi == 1)\r\n {\r\n echo \"[]\\\" size=\\\"$size\\\" multiple=\\\"multiple\\\">\";\r\n }\r\n else\r\n {\r\n echo \"\\\">\\n\";\r\n }\r\n \r\n if($multi == 0)\r\n {\r\n /**\r\n * Loop through non-multi array.\r\n * */\r\n foreach($array as $field => $value)\r\n {\r\n echo \"<option value=\\\"$value\\\"\";\r\n if($value == $result[$name]){echo \" selected=\\\"selected\\\" \";}\r\n echo \">$field</option>\\n\";\r\n } \r\n }\r\n else\r\n {\r\n /**\r\n * Loop through a multi-array\r\n * */\r\n \r\n ## Save the current value\r\n $value_count = $result[$name];\r\n ## SOME SELECT ALLS = -1, SO NEED TO OFFSET THAT\r\n if ($value_count == -1){ $value_count = max($array);}\r\n \r\n foreach($array as $field => $value)\r\n {\r\n echo \"<option value=\\\"$value\\\"\";\r\n if($value == $value_count)\r\n {\r\n echo \" selected=\\\"selected\\\" \";\r\n $value_count -= $value_count;\r\n }\r\n echo \">$field</option>\\n\";\r\n }\r\n }\r\n echo \"</select>\\n\";\r\n \r\n}", "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 }", "function form_element_select( $name, $options, $selected=null )\n{\n\t$out = sprintf( \"<select name=\\\"%s\\\">\\n\", $name );\n\tforeach( $options as $k=>$v )\n\t{\n\t\t$s = ($k==$selected) ? 'selected ' : '';\n\t\t$out .= sprintf( \" <option %svalue=\\\"%s\\\">%s</option>\\n\", $s, $k, $v );\n\t}\n\t$out .= \"</select>\\n\";\n\n\treturn $out;\n}", "public function registerClientScript()\n {\n $id = $this->list->options['id'];\n $view = $this->list->getView();\n $js = <<<js\n var {$this->name}_checkBox_all=$(\"#$id .select-on-check-all\");var {$this->name}_checkBox=$(\"#$id .select-on-check\");{$this->name}_checkBox_all.change(function(){{$this->name}_checkBox.prop('checked',$(this).prop('checked'))});{$this->name}_checkBox.change(function(){var checkAll=$(\"#$id .select-on-check\").length===$(\"#$id .select-on-check:checked\").length;{$this->name}_checkBox_all.prop('checked',checkAll)});\njs;\n $view->registerJs($js);\n }", "function productSelect($placeholder, $field, $style = 'custom-select', $selected = '')\n {\n return _helperSelect(\n \\App\\Models\\NewProduct::pluck('name', 'slug'),\n $placeholder,\n $field,\n $style,\n $selected\n );\n }", "function os_selectfile_add_meta_box() {\n\t//for general\n\tadd_meta_box('os_selectfile_meta_box', 'Select File', 'os_selectfile_meta_box_html', '', 'side');\n}", "public function Do_Allselect_Example1(){\n\n\t}", "function makeSelectElement($list, $pre_selected='', $fullinfo=false, $extra=array())\n{\n $select_elem = '';\n foreach ( $list as $item ) {\n if ( $item->getId() == $pre_selected ) {\n $selected = ' selected';\n } else {\n $selected = '';\n }\n $name = htmlspecialchars($item->getFullName());\n $id = htmlspecialchars($item->getId());\n if ( $fullinfo ) {\n $id = \"{$name} ({$id})\";\n $name = $id;\n }\n $select_elem .= <<<HTML\n <option value=\"{$id}\"{$selected}>{$name}</option>\n\nHTML;\n }\n if ( !empty($extra) ) {\n $select_elem .= <<<HTML\n <option value=\"{$extra['id']}\">{$extra['name']}</option>\nHTML;\n\n }\n return $select_elem;\n}", "function setTypeAsComboBox($itemList) {\n\t\t$this->type = \"select\";\n\t\t$this->seleu_itemlist = $itemList;\n\t}", "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 addSelectBox($sLabel, $sName, $aOptions)\n {\n $formControl= \"<div class='form-group'>\"\n .\"<label class='col-sm-offset-1 control-label col-sm-2'>\"\n . \"$sLabel</label>\\n\"\n .\"<div class='col-sm-6'>\\n\"\n . \"<select class='form-control' id='$sName' name='$sName'>\";\n foreach ($aOptions as $option) {\n $formControl.=\"<option value='\".$option['Value'].\"'>\".\n $option['Name'].\"</option>\";\n }\n \n $formControl.= \"</select>\"\n . \"</div>\\n\"\n .\"</div>\\n\";\n \n $this->formBody .= $formControl;\n }", "public function is_multiselect() {\n return $this->multiselect;\n }", "public function formSelectHtml($name, $value = null, $attribs = null,\n $options = null, $listsep = \"<br />\\n\")\n {\n $this->id = $name;\n \n return parent::formSelect($name, $value, $attribs, $options, $listsep);\n }" ]
[ "0.6525376", "0.6503853", "0.62403095", "0.6169399", "0.5858537", "0.5840415", "0.5753206", "0.57342625", "0.5710295", "0.56461644", "0.55983347", "0.5573511", "0.55563337", "0.55393684", "0.54650736", "0.5417635", "0.54041463", "0.53747773", "0.5374175", "0.5371663", "0.53413105", "0.5319347", "0.5317853", "0.5316196", "0.5293889", "0.5282111", "0.5258331", "0.5223901", "0.5221492", "0.5191474", "0.5174166", "0.51716", "0.51639766", "0.51630324", "0.5160934", "0.515861", "0.51224965", "0.5112678", "0.5111964", "0.5109107", "0.51015484", "0.50920963", "0.508787", "0.50823104", "0.5062944", "0.50593376", "0.5056013", "0.5049885", "0.504952", "0.504952", "0.5040644", "0.5029636", "0.5021624", "0.5011076", "0.5003292", "0.5001814", "0.49909753", "0.4986424", "0.4983463", "0.49766773", "0.4971952", "0.49717292", "0.49694908", "0.4962376", "0.49571332", "0.49507096", "0.49409962", "0.49409023", "0.49347633", "0.49337062", "0.49028018", "0.48996893", "0.48988688", "0.489657", "0.48958495", "0.48824796", "0.48824456", "0.48629022", "0.48593184", "0.48506886", "0.48437852", "0.4833974", "0.48253146", "0.4823255", "0.48172495", "0.48168838", "0.48126426", "0.47968856", "0.47895977", "0.47853154", "0.47755733", "0.47733265", "0.4762807", "0.47622323", "0.47589064", "0.4743588", "0.47434193", "0.474205", "0.4741801", "0.4740427" ]
0.64239657
2
Adds button used to submit form.
public function addSubmit($name, $caption) { return $this[$name] = new SubmitButton($caption); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function submitButton(){\n\t\t\n\t\t$this->addElement('button', 'bttnsubmit', array (\n\t\t\t\t'class' => 'btn blue ',\n\t\t\t\t'ignore'=>true,\n\t\t\t\t'type'=>'submit',\n \t\t\t\t'label'=>'<i class=\"fa fa-check\"></i> Save',\n\t\t\t\t'escape'=>false\n\t\t));\n\t\t$this->bttnsubmit->setDecorators(array('ViewHelper',array(array('controls' => 'HtmlTag'), array('tag' => 'div', 'class' =>'form-actions text-right'))\t));\n\t\t\n\t}", "function tac_form_submit_button( $button, $form ) {\n\treturn \"<button id='gform_submit_button_{$form['id']}'>Submit form</button>\";\n}", "private function _createSubmitButton()\n {\n $submit = new Zend_Form_Element_Submit('submit');\n $submit->setLabel('saveAction');\n\n return $submit;\n }", "public function submit(){\n return $this->surround('<button type=\"submit\">Envoyer</button>');\n }", "private function submit()\n {\n $element = new Zend_Form_Element_Submit('submit');\n $element->setLabel('Save')\n ->setAttrib('class', 'reg_input_btn');\n\n return $element;\n }", "function voyage_mikado_comment_form_submit_button() {\n\n $comment_form_button = voyage_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'voyage'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "public function buildSubmitButton()\n {\n $this->submitButton->setAttributes($this->submitButtonAttr);\n return $this->submitButton->render($this->submitButtonName);\n }", "function medigroup_mikado_comment_form_submit_button() {\n\n $comment_form_button = medigroup_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'medigroup'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "public function getSubmitButton()\n {\n return $this->submitButton;\n }", "public function addElementClicked(SubmitButton $button)\n\t{\n\t\t$button->parent->createOne();\n\t}", "function addSubmitButton($name,$display=null,$value=null, $disabled=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\"type\" => \"submit\", //defines the type of the input\r\n\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\"id\" => $id\r\n\t\t\t);\t\t\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = \"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function createAccountButton(){\n\t\techo '<form name=\"accounts\" method=\"post\" action=\"CheckBook.php/:Add\">';\n\t\techo '<button type=\"submit\">Add an Account</button>';\n\t\techo '</form>';\n\t}", "public function generate_submit_button( $field ) {\n\n\t\tsubmit_button( $field['name'] );\n\t}", "function shortcode_insert_button()\n\t\t{\n\t\t\t$this->config['name']\t\t= __('Job Submit Form', 'avia_framework' );\n\t\t\t$this->config['tab']\t\t= __('Plugin Additions', 'avia_framework' );\n\t\t\t$this->config['icon']\t\t= AviaBuilder::$path['imagesURL'].\"sc-comments.png\";\n\t\t\t$this->config['order']\t\t= 2;\n\t\t\t$this->config['target']\t\t= 'avia-target-insert';\n\t\t\t$this->config['shortcode'] \t= 'av_jobs_submit_form';\n\t\t\t$this->config['tooltip'] \t= __('Display the job submission form for WP Job Manager', 'avia_framework' );\n\t\t\t$this->config['drag-level'] = 3;\n\t\t}", "public function addButton(\\SetaPDF_FormFiller_Field_Button $button) {}", "function render_submit_button( $form, $args ) {\n $button_attributes = array();\n\n $button_attributes['class'] = 'acf-button af-submit-button';\n\n $button_attributes = apply_filters( 'af/form/button_attributes', $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/id=' . $form['post_id'], $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/key=' . $form['key'], $button_attributes, $form, $args );\n\n echo '<div class=\"af-submit acf-form-submit\">';\n echo sprintf( '<button type=\"submit\" %s>%s</button>', acf_esc_atts( $button_attributes ), $args['submit_text'] );\n echo '<span class=\"acf-spinner af-spinner\"></span>';\n echo '</div>';\n }", "function submit_button($text = \\null, $type = 'primary', $name = 'submit', $wrap = \\true, $other_attributes = \\null)\n {\n }", "function form_element_submit( $name, $buttonlabel )\n{\n\treturn sprintf(\"<input type=\\\"submit\\\" name=\\\"%s\\\" value=\\\"%s\\\" />\\n\", $name, $buttonlabel );\n}", "public static function renderSubmit();", "public function render()\n {\n return view('sendportal::components.submit-button');\n }", "function on_submit_button($button, $form) {\n\t\tif ($form['id'] != $this->form_id) {\n\t\t\treturn $button;\n\t\t}\n\t\treturn '';\n\t}", "public function endForm()\r\n {\r\n echo '<div class=\"panel-footer\">\r\n <input type=\"submit\" class=\"btn btn-primary btn-sm\" value=\"Vote\" />\r\n </div>\r\n </form>';\r\n }", "public function submit($options = array())\n {\n $options[\"type\"] = \"submit\";\n return $this->button($this->keys['POST_KEY_SUBMIT'], $options);\n }", "function form_button($data = '', $content = '', $extra = '')\n {\n $ci =& get_instance();\n $ci->load->library('user_agent');\n\n $defaults = array('name' => ((! is_array($data)) ? $data : ''), 'type' => 'submit');\n\n if (is_array($data) and isset($data['content'])) {\n $content = $data['content'];\n $data['value'] = $data['content'];\n unset($data['content']); // content is not an attribute\n }\n\n /*\n * if a user has IE 7, we need to show them an input tag instead of a button tag\n * because of the way IE 7 handles submitting multiple buttons (it send the\n * innerHTML instead of the value in the key=>value pair)\n */\n if ($ci->agent->browser() == 'Internet Explorer' && $ci->agent->version() < 8) {\n return \"<input \"._parse_form_attributes($data, $defaults).$extra.\" />\";\n } else {\n return \"<button \"._parse_form_attributes($data, $defaults).$extra.\"><span>\".$content.\"</span></button>\\n\";\n }\n }", "public function add_media_button(){\n\t\tif ( current_user_can( 'vfb_view_entries' ) ) :\n?>\n\t\t\t<a href=\"<?php echo add_query_arg( array( 'action' => 'visual_form_builder_media_button', 'width' => '450' ), admin_url( 'admin-ajax.php' ) ); ?>\" class=\"button add_media thickbox\" title=\"Add Visual Form Builder form\">\n\t\t\t\t<img width=\"18\" height=\"18\" src=\"<?php echo plugins_url( 'visual-form-builder-pro/images/vfb_icon.png' ); ?>\" alt=\"<?php _e( 'Add Visual Form Builder form', 'visual-form-builder-pro' ); ?>\" style=\"vertical-align: middle; margin-left: -8px; margin-top: -2px;\" /> <?php _e( 'Add Form', 'visual-form-builder-pro' ); ?>\n\t\t\t</a>\n<?php\n\t\tendif;\n\t}", "public function addSubmitButton(Zend_Form_SubForm $subForm)\r\n {\r\n $subForm->addElement(new Zend_Form_Element_Submit('save',array('label' => 'Save and continue',\r\n 'required' => false,\r\n 'ignore' => true,\r\n )\r\n ));\r\n return $this;\r\n }", "public function addBtnSubmit($text){\n parent::_addBtn(ExtyButton::BUTTON_FILTER_SUBMIT, $text);\n return $this;\n }", "public static function submitButton($name,$value='',$option=array()) {\n $option['name']=$name;\n\t\t$option['type']='submit';\n\t\t$option['value']=$value;\n\t return self::htmltag('input',$option);\n }", "function get_submit_button($text = '', $type = 'primary large', $name = 'submit', $wrap = \\true, $other_attributes = '')\n {\n }", "public function render()\n {\n return view('itlogiko::components.submit-button');\n }", "public function addSubmitF ($fieldname = 'submit', $value = 'Submit', array $attributes = array ())\n\t{\n\t\tif (is_array($fieldname)) {\n\t\t\t$attributes = $fieldname;\n\t\t} else {\n\t\t\t$attributes['name'] = (string)$fieldname;\n\t\t\t$attributes['value'] = (string)$value;\n\t\t}\n\t\t$attributes['type'] = 'submit';\n\n\t\treturn html_tag('button', $this -> attr_to_string($attributes), $value);\n\t}", "public static function submit($data) {\n return Html::submitButton($data['label'], ['class' => 'btn '.$data['backgroundcolor'] ]);\n }", "function add_action_buttons($cancel=true, $submitlabel=null, $submit2label=null) {\n if (is_null($submitlabel)) {\n $submitlabel = get_string('savechangesanddisplay');\n }\n\n if (is_null($submit2label)) {\n $submit2label = get_string('savechangesandreturntocourse');\n }\n\n $mform =& $this->_form;\n\n // elements in a row need a group\n $buttonarray = array();\n\n if ($submit2label !== false) {\n $buttonarray[] = &$mform->createElement('submit', 'submitbutton2', $submit2label);\n }\n\n if ($submitlabel !== false) {\n $buttonarray[] = &$mform->createElement('submit', 'submitbutton', $submitlabel);\n }\n\n if ($cancel) {\n $buttonarray[] = &$mform->createElement('cancel');\n }\n\n $mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);\n $mform->setType('buttonar', PARAM_RAW);\n $mform->closeHeaderBefore('buttonar');\n }", "function renderSubmitButtons() {\n\t\t$output = '';\n\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"display:none;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1000\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->showCancelButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitcancel]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_cancel'])).'\" tabindex=\"1030\" />';\n\t\t}\n\t\tif ($this->currentStep > 1 && $this->showPreviousButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitback]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_back'])).'\" tabindex=\"1020\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->currentStep == count($this->steps) && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitsubmit]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_submit'])).'\" tabindex=\"1000\" />';\n\t\t}\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1010\" />';\n\t\t}\n\t\treturn '<div class=\"tx-frontendformslib-submitbuttons\">'.$output.'</div>';\n\t}", "function sexy_submit_tag($value = 'Save changes', $options = array())\n{\n return sexy_button_to_function( $value, \"var form = this; \".\n \"while(null != (form = form.parentNode)) if( form.nodeName == 'FORM') \".\n \"if( (form.onsubmit && form.onsubmit()) || (!(form.onsubmit)) ) form.submit();\",\n $options );\n}", "public function addSubmit($value, $name = \"\", $attr = array()){\n $field = new Form_Field_Submit($name);\n $field->setDefaultValue($value);\n foreach($attr as $key => $value) $field->attr->add($key, $value);\n $this->buttons[] = $field;\n return $field;\n }", "function protocol_button($element) {\n if (isset($element['#attributes']['class'])) {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'] . ' ' . $element['#attributes']['class'];\n }\n else {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'];\n }\n\n return '<div class=\"button-wrapper-outer\"><div class=\"button-wrapper\"><input type=\"submit\" ' . (empty($element['#name']) ? '' : 'name=\"' . $element['#name'] . '\" ') . 'id=\"' . $element['#id'] . '\" value=\"' . check_plain($element['#value']) . '\" ' . drupal_attributes($element['#attributes']) . \" /></div></div>\\n\";\n}", "function training_modal_form($form, &$form_state) {\n $form = array(\n 'submit_modal' => array(\n '#type' => 'submit',\n '#value' => t('Sample button'),\n ),\n );\n\n return $form;\n}", "function form_submit($text = 'Submit', $options = array()) {\n $defaults = array(\n 'wrap' => true,\n 'class' => 'submit'\n );\n\n $options = array_merge($defaults, $options);\n\n $string = '<input type=\"submit\" value=\"' . $text . '\" />';\n\n if($options['wrap']) {\n $string = form__wrap(\n $string,\n array(\n 'label' => false\n )\n );\n }\n\n return html__output($string);\n}", "function minorite_button($variables) {\n $element = $variables['element'];\n element_set_attributes($element, array('id', 'name', 'title', 'value'));\n\n if ($element['#type'] == 'submit') {\n $element['#attributes']['type'] = 'submit';\n }\n\n // Adds CSS selector on icon button.\n if (isset($element['#icon'])) {\n $element['#value'] = '<i></i>' . $element['#value'];\n $element['#attributes']['class'][] = $element['#icon'];\n }\n\n return '<button' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</button>';\n}", "public function addButton($form, $record, $action, $display, $text=false, $active=false, $included=false){\n $button_text = $display;\n $button_name = $form . '-' . $action;\n $if_active = '';\n $disabled = '';\n \n if($active){\n $if_active = \" active\";\n $disabled = ' disabled=\"disabled\"';\n }\n \n // \"included\" for use in tables where the cell name is preprocessed\n if($included == false){\n $button_id = $form.'['.$record.']['. $button_name.']';\n }else{\n $button_id = $record . '['. $button_name.']';\n }\n if ($text){ $button_content = ucwords($display);}\n else {$button_content = '<span class=\"glyphicon '. $display . '\"></span>';}\n if ($text === true){\n $output = '<button type=\"submit\" class=\"btn btn-primary edit-icon btn-xs'. $if_active.'\"';\n } elseif ($text === \"large\"){\n $output = '<button type=\"submit\" class=\"btn btn-primary edit-icon'. $if_active.'\"';\n } else {\n $output = '<button type=\"submit\" class=\"btn btn-primary edit-icon btn-sm'. $if_active.'\"';\n }\n $output.= ' id=\"' . $button_id .'\" name=\"' . $button_name .'\" value=\"';\n $output.= $record .'\"'. $disabled . '>' . $button_content .\"</button>\";\n $this->_buttons[] = $output;\n \n }", "protected function _setAddButton()\n {\n $this->setChild('add_button',\n $this->getLayout()->createBlock('adminhtml/widget_button')\n ->setData(array('id' => \"add_tax_\" . $this->getElement()->getHtmlId(),\n 'label' => Mage::helper('catalog')->__('Add Tax'),\n 'onclick' => \"weeeTaxControl.addItem('\" . $this->getElement()->getHtmlId() . \"')\",\n 'class' => 'add'\n )));\n }", "public function add_modal_form() {\n\t\t$current_screen = get_current_screen();\n\t\tif ( ! isset( $current_screen->parent_base ) || $current_screen->parent_base != 'edit' ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine if we should use CMB or generic form callback\n\t\t$callback = $this->form_callback();\n\t\t$cmb_config = $this->get_cmb_config();\n\t\t$is_callable = is_callable( $callback );\n\t\t$is_cmb = ! empty( $cmb_config );\n\n\t\tif ( ! $is_callable && ! $is_cmb ) {\n\t\t\treturn;\n\t\t}\n\n\t\t?>\n\t\t<div class=\"wp-sc-buttons-form\" style=\"display: none; padding: 0 10px 20px;\" id=\"<?php echo esc_attr( $this->button_slug ); ?>-form\" title=\"<?php echo esc_attr( $this->button_data['button_tooltip'] ); ?>\">\n\t\t\t<?php if ( $is_cmb ) {\n\t\t\t\t$this->do_cmb_form();\n\t\t\t} else {\n\t\t\t\techo call_user_func( $callback, $this->button_data, $this->args );\n\t\t\t} ?>\n\t\t</div>\n\t\t<?php\n\t}", "public function submitElementClicked(SubmitButton $button)\n\t{\n\t\t$this->medicineManager->saveMedicine($button->getForm()->getValues(true));\n\t\t$this->flashMessage('Liek bol uložený.');\n\t\t$this->redirect('Medicine:list');\n\t}", "public function addButtonSubmit ($name = 'submit', $value = 'Submit', $id = NULL, $class = NULL, $attributes = array ())\n\t{\n\t\t$name = (empty($name) ? '' : ' name=\"' . $name . '\"');\n\t\t$value = (empty($value) ? '' : $value);\n\t\t$id = (empty($id) ? '' : ' id=\"' . $id . '\"');\n\t\t$class = (empty($class) ? '' : ' class=\"' . $class . '\"');\n\n\t\t$html = \"<button type=\\\"submit\\\"\" . $name . $id . $class . \"\";\n\t\tif ($attributes) {\n\t\t\t$html .= $this -> addAttributes($attributes);\n\t\t}\n\t\t$html .= \">\" . $value . \"</button>\";\n\n\t\treturn $html;\n\t}", "protected function createButtonSubmit($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/submit.php'\n );\n $config['label'] = empty($config['label']) ? '' : $config['label'];\n $config['class'] = empty($config['class']) ? '' : $config['class'];\n $v = new \\Arch\\Registry\\View($tmpl, $config);\n return $v;\n }", "function submitAddStok()\n\t{\n\t\t# code...\n\t}", "private function _addSubmitElement($xml)\n {\n return $xml->addChild('submit');\n }", "function addButton($label='Continue'){\n if(!is_array($label)){\n $label=array($label, 'icon-r'=>'right-big');\n }\n return $this->add('Button',null,'Button')\n ->set($label);\n }", "function _renderSubmit($element) {\n $elementClasses = \"btn btn-default \" . $element->getAttribute(\"class\", \"\");\n $element->setAttribute(\"class\", $elementClasses);\n $html = $this->render($element->getName());\n return $html;\n }", "private function createButton() {\n $fv = new filterVars;\n $phpSelf = $fv->phpSelf();\n\t$addButton = \"<A HREF='$phpSelf?action=crf'><button title='Create Row'>Create Row</button></A>\"; \n return $addButton; \n }", "function add_record_button($action_title, $file_name, $button_text)\n{\n ?>\n <p style=\"font-size:21px\"><?= ucwords($action_title) ?></p>\n <p>\n <a href=\"<?= $_SERVER['SCRIPT_NAME'] ?>?p=<?= $file_name ?>\" class=\"btn btn-primary\" role=\"button\">\n <span class=\"glyphicon glyphicon-plus-sign\"></span> Add <?= ucwords($button_text) ?></a>\n </p>\n <?php\n}", "function displayCreateButton() {\r\n\t \t\r\n\t \techo \"<a href='create.php' class='btn btn-success'>Create a New Question!!</a><br />\";\r\n\t \t\r\n\t }", "public function addform()\n\t{\n\t\t\t$this->setMethod('post');\n\n\t\t\t\n\t\t\t$this->addElement('radio', 'status', array(\n\t\t\t\t'required' => true,\n\t\t\t\t'multiOptions' => array(\n\t\t\t\t\t'1' => IN_PROGRESS,\n\t\t\t\t\t'2' => 'Closed'\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t\t'value' => '1' //key of multiOption\n\t\t\t));\n\t\t\n\t\t\n\n\t\t\t$this->addElement('textarea', 'Comment', array( \n\t\t\t\t\t'required' => true,\n\t\t\t\t\t'maxlength' =>'50',\n\t\t\t\t\t\n\t\t\t\t\t'class' => 'validate[required] text-input',\n\t\t\t\t\t'decorators'=>Array(\n\t\t\t\t\t\t'ViewHelper','Errors'\n\t\t\t\t\t),\t\t \n\t\t\t));\n\n\t\t\t\n\n\t\t\t\n\n\n\t\n\t\t\t\t\n\t\t\t$this->addElement('submit', 'submit', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t\t\t'label' => 'Submit',\n\t\t\t));\n\t\t\t\n\t\t\t// And finally add some CSRF protection\n\t\t\t$this->addElement('hash', 'csrf', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t));\t\n\t}", "public function addButton($name, $value, $type = 'submit', $class = null)\n\t{\n\t\t$name = (string) $name;\n\t\t$value = (string) $value;\n\t\t$type = (string) $type;\n\t\t$class = ($class !== null) ? (string) $class : 'inputText inputButton';\n\n\t\t// do a check, only enable this if we use forms that are submitted with javascript\n\t\tif($type == 'submit' && $name == 'submit') throw new FrontendException('You can\\'t add buttons with the name submit. JS freaks out when we replace the buttons with a link and use that link to submit the form.');\n\n\t\t// create and return a button\n\t\treturn parent::addButton($name, $value, $type, $class);\n\t}", "protected static function getSubmitButtons($args) {\r\n $r = '';\r\n global $indicia_templates;\r\n $r .= '<input type=\"submit\" class=\"' . $indicia_templates['buttonDefaultClass'] . '\" id=\"save-button\" value=\"'.lang::get('Submit').\"\\\" />\\n\";\r\n if (!empty($_GET['location_id'])) {\r\n //Don't display delete if in view only mode\r\n if (empty($_GET['summary_mode']) || $_GET['summary_mode']=='false') {\r\n // use a button here, not input, as Chrome does not post the input value\r\n $r .= '<button type=\"submit\" class=\"' . $indicia_templates['buttonWarningClass'] . '\" id=\"delete-button\" name=\"delete-button\" value=\"delete\" >'.lang::get('Delete').\"</button>\\n\";\r\n data_entry_helper::$javascript .= \"$('#delete-button').click(function(e) {\r\n if (!confirm(\\\"Are you sure you want to delete this location?\\\")) {\r\n e.preventDefault();\r\n return false;\r\n }\r\n });\\n\";\r\n }\r\n }\r\n return $r;\r\n }", "public function submitButton($name, $value = '')\n {\n $button = new SubmitButton($this, $value);\n $button->setName($name);\n return $button;\n }", "public function addForm() {\n $this->view->displayForm();\n }", "protected function getButtonSubmitHTML($item){\n\n return '<div class=\"col-12\"><button type=\"submit\" class=\"'.$this->styles['button-classes'].'\">'.$item->title->{$this->language}.'</button></div>';\n\n }", "public function init(){\n\t\t\n\t\tparent::init();\n\t\t\n\t\t$this->_html .= $this->get_label();\n\t\t\n\t\t$this->_html .= '<input type=\"submit\" ';\n\t\t\n\t\tif(isset($this->_options['id'])){\n\t\t\t$this->_html .= 'id=\"'.$this->_options['id'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['class'])){\n\t\t\t$this->_html .= 'class=\"'.$this->_options['class'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['value'])){\n\t\t\t$this->_html .= 'value=\"'.$this->_options['value'].'\" ';\n\t\t}\t\n\t\t\n\t\tif(isset($this->_options['name'])){\n\t\t\t$this->_html .= 'name=\"'.esc_attr($this->_options['name']).'\" ';\n\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\n\t\t$this->_html .= ' />';\n\t}", "public function submit()\n {\n $this->find('css', '.filter-update')->click();\n }", "function shortcode_insert_button()\n {\n $this->config['self_closing'] = 'yes';\n\n $this->config['name'] = __('Download Button', 'avia_framework');\n $this->config['tab'] = __('Content Elements', 'avia_framework');\n $this->config['icon'] = AviaBuilder::$path['imagesURL'] . \"sc-button.png\";\n $this->config['order'] = 1;\n $this->config['target'] = 'avia-target-insert';\n $this->config['shortcode'] = 'avia_download_button';\n $this->config['tooltip'] = __('Creates a download button', 'avia_framework');\n $this->config['tinyMCE'] = ['tiny_always' => true];\n $this->config['preview'] = true;\n }", "protected function getSearchButton()\n {\n $out = $this->getFormTool()->createSubmit(\n $this->getSearcherId().'Search',\n $GLOBALS['LANG']->getLL('label_button_update')\n );\n\n return $out;\n }", "protected function _addButtons()\r\n\t{\r\n\t\t$model = $this->getModel();\r\n\t\t$params\t= $model->getParams();\r\n\t\t$this->showEmail = $params->get('email', 0);\r\n\t\t$this->emailLink = '';\r\n\t\t$this->printLink = '';\r\n\t\t$this->pdfLink = '';\r\n\t\t$this->showPrint = $params->get('print', 0);\r\n\r\n\t\tif ($this->showPrint) {\r\n\t\t\t$text = JHTML::_('image.site', 'printButton.png', '/images/', NULL, NULL, JText::_('Print'));\r\n\t\t\t$this->printLink = '<a href=\"#\" onclick=\"window.print();return false;\">'.$text.'</a>';\r\n\t\t}\r\n\r\n\t\tif (JRequest::getVar('tmpl') != 'component') {\r\n\t\t\tif ($this->showEmail) {\r\n\t\t\t\t$this->emailLink = FabrikHelperHTML::emailIcon($model, $params);\r\n\t\t\t}\r\n\r\n\t\t\tif ($this->showPrint) {\r\n\t\t\t\t$this->printLink = FabrikHelperHTML::printIcon($model, $params, $model->_rowId);\r\n\t\t\t}\r\n\r\n\t\t\t$this->showPDF = $params->get('pdf', 0);\r\n\t\t\tif ($this->showPDF) {\r\n\t\t\t\t$this->pdfLink = FabrikHelperHTML::pdfIcon($model, $params, $model->_rowId);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->showPDF = false;\r\n\t\t}\r\n\t}", "function atkButton($text, $url=\"\", $sessionstatus=SESSION_DEFAULT, $embedded=true, $cssclass=\"\")\n{\n\t$page = &atkPage::getInstance();\n\t$page->register_script(atkconfig(\"atkroot\").\"atk/javascript/formsubmit.js\");\n\tstatic $cnt=0;\n\n\tif ($cssclass == \"\")\n\t$cssclass = \"btn\";\n\n\t$cssclass = ' class=\"'.$cssclass.'\"';\n\t$script = 'atkSubmit(\"'.atkurlencode(session_url($url,$sessionstatus)).'\")';\n\t$button = '<input type=\"button\" name=\"atkbtn'.(++$cnt).'\" value=\"'.$text.'\" onClick=\\''.$script.'\\''.$cssclass.'>';\n\n\tif (!$embedded)\n\t{\n\t\t$res = '<form name=\"entryform\">';\n\t\t$res.= session_form();\n\t\t$res.= $button.'</form>';\n\t\treturn $res;\n\t}\n\telse\n\t{\n\t\treturn $button;\n\t}\n}", "public function renderSubmit( $label, $key, $attributes = array() )\n {\n $this->renderInput( 'submit', $key . 'Submit', $label, array_merge( array( 'class' => 'form-button' ), $attributes ) );\n }", "function addsubmit() \n\t{\n // on the action being rendered\n $this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\n \n // Use the add action's post form variables and the current precise time to insert an article.\n // validate all post variables before inserting them to avoid a\n // SQL Injection attack and ensure that we've working with clean data. \n\t\t$email=$_POST['email'];\n\t\t$password=$_POST['password'];\n\t\ttry\n\t\t{\n\t\t if (!empty($_POST['username'])&& !empty($_POST['firstname'])&& !empty( $_POST['role']) && !empty($_POST['email']) && !empty($_POST['password']))\n\t\t { \n\t\t\t$result= UserModel::Create()->InsertUser($_POST['username'],$_POST['email'], $password, $_POST['firstname'],$_POST['middlename'],$_POST['lastname'],$_POST['role'], $_POST['phoneres'], $_POST['phonecell'], $_POST['status'], $_POST['comments']);\n\t\t\t\n\t\t\tif(empty($result))\n\t\t\t{\n\t\t\t\t$this->viewData['module']=\"Add User\";\n\t\t\t\t$this->viewData['error']= \"Failed to Add the user\";\n\t\t\t\t$this->renderWithTemplate('common/error', 'AdminPageBaseTemplate');\n\t\t\t}\n\t\t\telse // invite the user by sending email \n\t\t\t{\n\t\t\t\tMailModel::SendInvitation($_POST['email'], $_POST['firstname'],$result);\n\t\t\t\t$this->renderWithTemplate('users/addsubmit', 'AdminPageBaseTemplate');\n\t\t\t}\n\t\t }\n\t\t}\n\t\tcatch (Exception $ex)\n\t\t{\n\t\t\t$this->viewData['module']=\"Add User\";\n\t\t\t$this->viewData['error']= $ex->getMessage();\n\t\t\t$this->renderWithTemplate('common/error', 'AdminPageBaseTemplate');\n\t\t}\n\t\t\n\t}", "public function renderAdd()\r\n\t{\r\n\t\t$this['tarifForm']['save']->caption = 'Přidat';\r\n\t}", "public function submitByFormBtn($formBtn)\n {\n $this->driver->findElement(WebDriverBy::name($formBtn))->click();\n }", "public function insert_form_tinymce_buttons( $context ) {\n global $pagenow;\n\n if( ! in_array( $pagenow, array( 'post.php', 'post-new.php' ) ) ){\n return $context;\n }\n $html = '<style>\n span.nf-insert-form {\n color:#888;\n font: 400 18px/1 dashicons;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n width: 18px;\n height: 18px;\n vertical-align: text-top;\n margin: 0 2px 0 0;\n }\n </style>';\n $html .= '<a href=\"#\" class=\"button nf-insert-form\"><span class=\"nf-insert-form dashicons dashicons-feedback\"></span> ' . __( 'Add Form', 'ninja-forms' ) . '</a>';\n\n wp_enqueue_script( 'nf-combobox', Ninja_Forms::$url . 'assets/js/lib/combobox.min.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-autocomplete' ) );\n\n wp_enqueue_script( 'jBox', Ninja_Forms::$url . 'assets/js/lib/jBox.min.js', array( 'jquery' ) );\n wp_enqueue_style( 'jBox', Ninja_Forms::$url . 'assets/css/jBox.css' );\n\n // wp_enqueue_style( 'jquery-smoothness', NINJA_FORMS_URL .'css/smoothness/jquery-smoothness.css' );\n ?>\n <div id=\"nf-insert-form-modal\" style=\"display:none;\">\n <p>\n <?php\n $all_forms = Ninja_Forms()->form()->get_forms();\n $first_option = __( 'Select a form or type to search', 'ninja-forms' );\n echo '<select class=\"nf-forms-combobox\" id=\"nf-form-select\" data-first-option=\"\">';\n echo '<option value=\"\"></option>';\n foreach( $all_forms as $form ) {\n // $form = Ninja_Forms()->form( $form_id )->get();\n $label = $form->get_setting( 'title' );\n $form_id = $form->get_id();\n if ( strlen( $label ) > 30 )\n $label = substr( $label, 0, 30 ) . '...';\n\n echo '<option value=\"' . intval( $form_id ) . '\">' . $label . ' - ID: ' . $form_id . '</option>';\n }\n echo '</select>';\n ?>\n </p>\n <p>\n <input type=\"button\" id=\"nf-insert-form\" class=\"button-primary\" value=\"<?php _e( 'Insert', 'ninja-forms' )?>\" />\n </p>\n </div>\n <?php\n add_action( 'admin_footer', array( $this, 'output_tinymce_button_js' ) );\n return $context . ' ' . $html;\n }", "public function insert_form_tinymce_buttons( $context ) {\n global $pagenow;\n\n if ( 'post.php' != $pagenow ) {\n return $context;\n }\n $html = '<style>\n span.nf-insert-form {\n color:#888;\n font: 400 18px/1 dashicons;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n width: 18px;\n height: 18px;\n vertical-align: text-top;\n margin: 0 2px 0 0;\n }\n </style>';\n $html .= '<a href=\"#\" class=\"button-secondary nf-insert-form\"><span class=\"nf-insert-form dashicons dashicons-feedback\"></span> ' . __( 'Add Form', 'ninja-forms' ) . '</a>';\n\n wp_enqueue_script( 'nf-combobox',\n NF_PLUGIN_URL . 'assets/js/min/combobox.min.js',\n array( 'jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-autocomplete', 'nf-admin-modal' ) );\n\n wp_enqueue_style( 'nf-combobox',\n NF_PLUGIN_URL . 'assets/css/combobox.css' );\n\n wp_enqueue_style( 'nf-admin-modal',\n NF_PLUGIN_URL . 'assets/css/admin-modal.css' );\n\n wp_enqueue_style( 'jquery-smoothness', NINJA_FORMS_URL .'css/smoothness/jquery-smoothness.css' );\n\n add_action( 'admin_footer', array( $this, 'output_tinymce_button_js' ) );\n return $context . ' ' . $html;\n }", "protected function getFormButtons() : array\n {\n $result = parent::getFormButtons();\n\n $result['submit'] = new Submit(\n [\n AButton::PARAM_LABEL => 'Sign up',\n AButton::PARAM_BTN_TYPE => 'btn regular-main-button submit',\n ]\n );\n\n return $result;\n }", "function lbcb_print_option_buttons(){\n?>\n\t<input class=\"button-primary\" type=\"submit\" name=\"lbcb_options[save]\" id=\"lbcb_options[save]\" value=\"<?php _e( 'Save Options', 'lbcb_textdomain' ); ?>\"/>\n\t<input class=\"button-secondary\" type=\"submit\" name=\"lbcb_options[reset]\" id=\"lbcb_options[reset]\" value=\"<?php _e( 'Reset To Defaults', 'lbcb_textdomain' ); ?>\"/>\n\n<?php\n}", "function dapper_button($variables) {\n $element = $variables['element'];\n\n $element['#attributes']['type'] = 'submit';\n if ($element['#type'] == \"button\") {\n element_set_attributes($element, array('id', 'name', 'title'));\n return '<button' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</button>';\n\n } else {\n element_set_attributes($element, array('id', 'name', 'value'));\n\n $element['#attributes']['class'][] = 'form-' . $element['#button_type'];\n if (!empty($element['#attributes']['disabled'])) {\n $element['#attributes']['class'][] = 'form-button-disabled';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />';\n\n }\n}", "protected function Form_Create() {\n\t\t\t// Define the Label\n\t\t\t$this->lblMessage = new QLabel($this);\n\t\t\t$this->lblMessage->Text = 'Click the button to change my message.';\n\n\t\t\t// Define the Button\n\t\t\t$this->btnButton = new QButton($this);\n\t\t\t$this->btnButton->Text = 'Click Me!';\n\n\t\t\t// Add a Click event handler to the button\n\t\t\t$this->btnButton->AddAction(new QClickEvent(), new QServerAction('btnButton_Click'));\n\t\t}", "public function addsButtons() {}", "public function render()\n {\n return view('components.submit-form', [\n 'buttonName' => $this->buttonName\n ]);\n }", "function backend_button($caption, $attributes = array(), $ajaxHandler=null, $ajaxParams = null, $formElement = null)\n\t{\n\t\treturn Backend_Html::button($caption, $attributes, $ajaxHandler, $ajaxParams, $formElement);\n\t}", "public function addform()\n\t{\n \n\t\t$this->setMethod('post');\n\t\t $this->setAttrib('enctype', 'multipart/form-data');\n\n\t\t$this->addElement('file', 'upload_image', array( \n\t\t\t'label' => '',\n 'required' => false\n ));\n\n // Add the submit button\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Submit',\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hash', 'csrf', array(\n 'ignore' => true,\n ));\n\n\n\t}", "public function render_submit(\\renderable $page) {\n return $this->render_from_template('mod_cfp/submit', $page->export_for_template($this));\n }", "public function addForm()\n {\n $this->getState()->template = 'displaygroup-form-add';\n $this->getState()->setData([\n 'help' => $this->getHelp()->link('DisplayGroup', 'Add')\n ]);\n }", "protected function add_footer()\n {\n // separated uplaod and check behaviour into independent javascript files\n $this->addElement(\n 'html',\n ResourceManager::getInstance()->get_resource_html(\n Path::getInstance()->getJavascriptPath('Chamilo\\Core\\Repository', true) . 'ContentObjectFormUpload.js'\n )\n );\n // added platform option 'omit_content_object_title_check'\n // when NULL (platform option not set) or FALSE (platform option set to false)\n // check title duplicates of content objects; when it is both set and true,\n // omit this check. (this way, the platform setting is unobtrusive).\n\n $omitContentObjectTitleCheck = Configuration::getInstance()->get_setting(\n array('Chamilo\\Core\\Repository', 'omit_content_object_title_check')\n );\n\n if ($omitContentObjectTitleCheck != 1)\n {\n $this->addElement(\n 'html',\n ResourceManager::getInstance()->get_resource_html(\n Path::getInstance()->getJavascriptPath('Chamilo\\Core\\Repository', true) .\n 'ContentObjectFormCheck.js'\n )\n );\n }\n\n $this->addElement(\n 'html',\n ResourceManager::getInstance()->get_resource_html(\n Path::getInstance()->getJavascriptPath('Chamilo\\Libraries', true) . 'HeartBeat.js'\n )\n );\n\n $buttons = array();\n\n // should not call your button submit as it is a function on the\n // javascrip file\n switch ($this->form_type)\n {\n case self::TYPE_COMPARE :\n $buttons[] = $this->createElement(\n 'style_submit_button',\n 'submit_button',\n Translation::get('Compare', null, Utilities::COMMON_LIBRARIES),\n null,\n null,\n 'transfer'\n );\n break;\n case self::TYPE_CREATE :\n $buttons[] = $this->createElement(\n 'style_submit_button',\n 'submit_button',\n Translation::get('Create', null, Utilities::COMMON_LIBRARIES)\n );\n break;\n case self::TYPE_EDIT :\n $buttons[] = $this->createElement(\n 'style_submit_button',\n 'submit_button',\n Translation::get('Update', null, Utilities::COMMON_LIBRARIES),\n null,\n null,\n 'arrow-right'\n );\n break;\n case self::TYPE_REPLY :\n $buttons[] = $this->createElement(\n 'style_submit_button',\n 'submit_button',\n Translation::get('Reply', null, Utilities::COMMON_LIBRARIES),\n null,\n null,\n 'envelope'\n );\n break;\n default :\n $buttons[] = $this->createElement(\n 'style_submit_button',\n 'submit_button',\n Translation::get('Create', null, Utilities::COMMON_LIBRARIES)\n );\n break;\n }\n\n $buttons[] = $this->createElement(\n 'style_reset_button',\n 'reset',\n Translation::get('Reset', null, Utilities::COMMON_LIBRARIES)\n );\n $this->addGroup($buttons, 'buttons', null, '&nbsp;', false);\n }", "function HTMLSubmit ($params) {\n if (!isset($params['name'])) {\n if (isset($params['id'])) {\n $params['name'] = $params['id'];\n }\n }\n $val = $params['value'];\n unset($params['value']);\n $str = '';\n foreach ($params as $k=>$v) {\n $str .= \" {$k}=\\\"{$v}\\\"\";\n }\n return \"<button type='submit' {$str} >{$val}</button>\";\n }", "public function __toString() {\n if ( ! isset( $this['value'] ) ) {\n $this['value'] = 'Save';\n }\n\n return\n \"<div class=\\\"form-field field-type-submit\\\">\n <input type=\\\"submit\\\" value=\\\"{$this['value']}\\\" />\n </div>\";\n }", "function returnbutton()\n\t\t\t{\n\t\t\t\techo \"<body>\";\n\t\t\t\techo \"<form method='post' action='searchstatusform.php'>\";\n\t\t\t\techo \"<br />\";\n\t\t\t\techo \"<center><input type='submit' value='return' /></center>\";\n\t\t\t\techo \"</form>\";\n\t\t\t\techo \"</body>\"; \n\t\t\t}", "public function saveButton(){\n\n\t\t//get the properties of this column:\n\t\tif( !isset( $this->properties['buttonText'] ) )\n\t\t\t$this->getProperties();\n\n\t\techo '<a class=\"lightbox-modal-close\" href=\"#\">';\n\t\t\techo '<span class=\"media-modal-icon\"></span>';\n\t\techo '</a>';\n\n\t\techo '<div class=\"save-btn-container\">';\n\n\t\t\techo '<span class=\"spinner\"></span>';\n\n\t\t\techo '<button id=\"save-column\" class=\"save-btn section-btn\">';\n\t\t\t\techo esc_html( $this->properties['buttonText'] );\n\t\t\techo '</button>';\n\n\t\techo '</div>';\n\n\t}", "function botaoPesquisasAvancadas(){\n echo \"\n <form method='post'>\n <button type='submit' class='btn btn-secondary btn-lg btn-block botao' name='pesquisasAvancadas' value='pesquisar'>Pesquisar</button>\n </form>\";//só irá existir um botão iserir que vai executar a mesma função por isso o valor 'Inserir'\n }", "function input_submit_account($value) {\n //create submit button of class 'submit_button_holder'\n echo \"<div class=\\\"submit_button_holder\\\">\";\n echo \"<input name=\\\"$value\\\" type=\\\"submit\\\" class=\\\"submit_account\\\" value=\\\"$value\\\">\";\n echo '</div>';\n}", "static function pmpro_checkout_default_submit_button($show)\n\t\t{\n\t\t\tglobal $gateway, $pmpro_requirebilling;\n\t\t\t\n\t\t\t//show our submit buttons\n\t\t?>\n\t\t\n\t\t<span id=\"pmpro_fondy_checkout\" <?php if(($gateway != \"fondy\") || !$pmpro_requirebilling) { ?>style=\"display: none;\"<?php } ?>>\n\t\t\t\t<input type=\"hidden\" name=\"submit-checkout\" value=\"1\" />\t\t\n\t\t\t\t<input type=\"submit\" class=\"pmpro_btn pmpro_btn-submit-checkout\" value=\"<?php if($pmpro_requirebilling) { _e('Submit and Check Out', 'pmpro'); } else { _e('Submit and Confirm', 'pmpro');}?> &raquo;\" />\t\n\t\t</span>\n\t\t\t<?php\n\t\t\n\t\t\t//don't show the default\n\t\t\treturn false;\n\t\t}", "public static function add() {\n\t\tif (\n\t\t\t( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) ||\n\t\t\t'true' !== get_user_option( 'rich_editing' )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\techo '<a href=\"#\" id=\"sgdg-tinymce-button\" class=\"button\"><img class=\"sgdg-tinymce-button-icon\" src=\"' .\n\t\t\tesc_attr( plugins_url( '/skaut-google-drive-gallery/admin/icon.png' ) ) .\n\t\t\t'\">' .\n\t\t\tesc_html__( 'Google Drive gallery', 'skaut-google-drive-gallery' ) .\n\t\t\t'</a>';\n\t\tadd_thickbox();\n\t}", "public function add_submit()\n\t{\n\t\t// Run validation\n\t\tif (!$this->validate_percentile(TRUE)) {\n\t\t\t// If not succeeded, show form again with error messages\n\t\t\t$this->add($this->input->post('test'), $this->input->post('testcat'));\n\t\t}\n\t\telse {\n\t\t\t// If succeeded, insert data into database\n\t\t\t$percentile = $this->post_percentile(TRUE);\n\t\t\t$percentile_id = $this->percentileModel->add_percentile($percentile);\n\n\t\t\t$s = $this->percentileModel->get_percentile_by_id($percentile_id);\n\t\t\tflashdata(lang('percentile_added'));\n\t\t\tredirect('/percentile/', 'refresh');\n\t\t}\n\t}", "public function addButton($name, $value, $type = 'submit', $class = null)\n {\n $name = (string) $name;\n $value = (string) $value;\n $type = (string) $type;\n $class = ($class !== null) ? (string) $class : 'btn btn-primary';\n\n // do a check\n if ($type == 'submit' && $name == 'submit') {\n throw new Exception(\n 'You can\\'t add buttons with the name submit. JS freaks out when we\n replace the buttons with a link and use that link to submit the form.'\n );\n }\n\n // create and return a button\n return parent::addButton($name, $value, $type, $class);\n }", "function module_specific_buttons($cmid, $cmoptions) {\n global $OUTPUT;\n $params = array(\n 'type' => 'submit',\n 'name' => 'add',\n 'value' => $OUTPUT->larrow() . ' ' . get_string('addtoquiz', 'quiz'),\n );\n $cmoptions->hasattempts = false;\n if ($cmoptions->hasattempts) {// Prior attempts donít matter with IPAL.\n $params['disabled'] = 'disabled';\n }\n return html_writer::empty_tag('input', $params);\n}", "public function addAction()\n {\n $post_request = (array) $this->postZingRequest();\n\n /** Handle the request */\n $errors = $this->_handleRequest($post_request);\n\n return $this->renderAdmin('ZingComponentGoogleMapsBundle:Default:form.html.twig', array_merge(\n array(\n 'zing_form_action' => 'Create',\n 'zing_form_errors' => $errors\n ),\n $post_request\n ));\n\n }", "function form_button($buttons = \"\") {\n\t\tif ($this->block == true)\n\t\t\t$buttons = \"fehler\";\n\n\t\t$btn['submit'] = \"<input accesskey='8' value=\\\"OK, Speichern\\\" class=\\\"submitbutton buttons\\\" type=\\\"submit\\\" />\";\n\t\t$btn['reset'] = \"<input accesskey='9' value=\\\"Eingaben l&ouml;schen\\\" class=\\\"resetbutton buttons\\\" type=\\\"reset\\\" />\";\n\t\t$btn['ex'] = \"<input accesskey='7' value=\\\"Beispiel..\\\" type=\\\"button\\\" class=\\\"examplebutton buttons\\\" onClick=\\\"set_examples();\\\" />\";\n\n\t\tswitch ($buttons) {\n\t\t\tdefault :\n\t\t\tcase 'ok_reset' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\tbreak;\n\t\t\tcase 'ex__ok_reset' :\n\t\t\t\t$r = \"<td>\".$btn['ex'].\"</td><td colspan=\\\"2\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\t$this->add_hidden_field(\"hiddenexample\", 0); // for examplebutton\n\t\t\t\t$this->special_form = \"onChange=\\\"document.myform.hiddenexample.value=0\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase 'fehler' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"center\\\" class=\\\"error\\\">Ich konnte notwendige Daten f&uuml;r dieses Formular nicht laden. <br />L&ouml;sung: \".$this->block.\"</td>\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn \"<tr>\".$r.\"</tr>\";\n\t}", "public function renderCreateButton()\n {\n return new Tools\\CreateButton($this);\n }", "function submit()\n {\n }", "function submit()\n {\n }", "function submit()\n {\n }", "protected function add_header_button( $add_param = '' ) {\n\n\t\t\tif ( 'off' === $this->allow_insert ) {\n\t\t\t\tif ( null !== $this->wpda_import ) {\n\t\t\t\t\t$this->wpda_import->add_button();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ( WPDA::is_wpda_table( $this->table_name ) ||\n\t\t\t\t ( 'on' === WPDA::get_option( WPDA::OPTION_BE_ALLOW_INSERT ) &&\n\t\t\t\t count( $this->wpda_list_columns->get_table_primary_key() ) ) > 0\n\t\t\t\t) {\n\n\t\t\t\t\t?>\n\n\t\t\t\t\t<form\n\t\t\t\t\t\t\tmethod=\"post\"\n\t\t\t\t\t\t\taction=\"?page=<?php echo esc_attr( $this->page ); ?><?php echo '' === $this->schema_name ? '' : '&schema_name=' . esc_attr( $this->schema_name ); ?>&table_name=<?php echo esc_attr( $this->table_name ); ?><?php echo esc_attr( $add_param ); ?>\"\n\t\t\t\t\t\t\tstyle=\"display: inline-block; vertical-align: baseline;\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"new\">\n\t\t\t\t\t\t\t<input type=\"submit\" value=\"<?php echo __( 'Add New', 'wp-data-access' ); ?>\"\n\t\t\t\t\t\t\t\t class=\"page-title-action\">\n\n\t\t\t\t\t\t\t<?php\n\n\t\t\t\t\t\t\t// Add import button to title.\n\t\t\t\t\t\t\tif ( null !== $this->wpda_import ) {\n\t\t\t\t\t\t\t\t$this->wpda_import->add_button();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t?>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\n\t\t\t\t\t<?php\n\n\t\t\t\t} else {\n\n\t\t\t\t\t// Add import button to title.\n\t\t\t\t\tif ( null !== $this->wpda_import ) {\n\t\t\t\t\t\t$this->wpda_import->add_button();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}" ]
[ "0.84699076", "0.7593174", "0.758997", "0.748885", "0.7197006", "0.71176434", "0.70549077", "0.70335966", "0.7012711", "0.69435924", "0.69188786", "0.6909819", "0.6883306", "0.68592334", "0.6795127", "0.6776371", "0.67741555", "0.66996545", "0.66522", "0.6612889", "0.6604895", "0.65943974", "0.65733993", "0.65720797", "0.6560735", "0.653662", "0.6534185", "0.6524746", "0.6501508", "0.6499673", "0.64611685", "0.64528626", "0.64496005", "0.6400617", "0.63852113", "0.63799554", "0.6371747", "0.6340326", "0.63272345", "0.6321541", "0.6310439", "0.63078785", "0.6305387", "0.63026655", "0.6293076", "0.62823385", "0.6279285", "0.6266742", "0.6259658", "0.62576526", "0.62379885", "0.62370723", "0.6220936", "0.62049544", "0.6200252", "0.61954826", "0.6189118", "0.6179223", "0.61760664", "0.61754286", "0.6171143", "0.61538595", "0.6150446", "0.6130073", "0.612333", "0.61036664", "0.6078493", "0.6075641", "0.60754824", "0.606147", "0.60600114", "0.60561967", "0.60433406", "0.60394245", "0.60368425", "0.6036238", "0.6030794", "0.60291594", "0.60253716", "0.60136366", "0.6013406", "0.60071373", "0.6004621", "0.60043734", "0.59859896", "0.598", "0.59731245", "0.59681624", "0.5961511", "0.59597623", "0.59410554", "0.5938909", "0.593826", "0.59214455", "0.59193736", "0.59193385", "0.5918123", "0.5918123", "0.5918123", "0.59154034" ]
0.5968258
87
Adds push buttons with no default behavior.
public function addButton($name, $caption) { return $this[$name] = new Button($caption); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addsButtons() {}", "protected function registerButtons() {}", "protected function registerButtons() {}", "private function loadButtons()\n {\n $objAdd = $this->addButtonNew(_FEST);\n $objAdd->setInline();\n }", "protected function initDefaultButtons()\n {\n if (!isset($this->buttons['create'])) {\n $this->buttons['create'] = function ($url, $model, $key) {\n return Html::a('<span class=\"glyphicon glyphicon-plus\"></span>', $url, [\n 'title' => Yii::t('app','create'),\n 'class' => 'btn btn-default btn-xs'\n ]);\n };\n }\n if (!isset($this->buttons['view'])) {\n $this->buttons['view'] = function ($url, $model, $key) {\n return Html::a('<span class=\"glyphicon glyphicon-eye-open\"></span>', $url, [\n 'title' => Yii::t('app','Look'),\n 'class' => 'btn btn-default btn-xs'\n ]);\n };\n }\n if (!isset($this->buttons['update'])) {\n $this->buttons['update'] = function ($url, $model, $key) {\n return Html::a('<span class=\"glyphicon glyphicon-pencil\"></span>', $url, [\n 'title' => Yii::t('app','Update User'),\n 'class' => 'btn btn-default btn-xs'\n ]);\n };\n }\n if (!isset($this->buttons['delete'])) {\n $this->buttons['delete'] = function ($url, $model, $key) {\n return Html::a('<span class=\"glyphicon glyphicon-trash\"></span>', $url, [\n 'title' => Yii::t('app','Delete'),\n 'data-method' => 'post',\n 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'),\n 'class' => 'btn btn-default btn-xs'\n ]);\n };\n }\n }", "protected function initDefaultButtons()\n {\n if (!isset($this->buttons['view'])) {\n $this->buttons['view'] = function ($url, $model, $key) {\n $options = array_merge([\n 'title' => Yii::t('yii', 'View'),\n 'aria-label' => Yii::t('yii', 'View'),\n 'data-pjax' => yii::$app->controller->isPjaxAction,\n ], $this->buttonOptions);\n return Html::a(Html::icon('eye') . '----', $url, $options);\n };\n }\n if (!isset($this->buttons['update'])) {\n $this->buttons['update'] = function ($url, $model, $key) {\n $options = array_merge([\n 'title' => Yii::t('yii', 'Update'),\n 'aria-label' => Yii::t('yii', 'Update'),\n 'data-pjax' => yii::$app->controller->isPjaxAction,\n ], $this->buttonOptions);\n return Html::a(Html::icon('pencil'), $url, $options);\n };\n }\n if (!isset($this->buttons['delete'])) {\n $this->buttons['delete'] = function ($url, $model, $key) {\n $options = array_merge([\n 'title' => Yii::t('yii', 'Delete'),\n 'aria-label' => Yii::t('yii', 'Delete'),\n 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'),\n 'data-method' => 'post',\n 'data-pjax' => yii::$app->controller->isPjaxAction,\n ], $this->buttonOptions);\n return Html::a(Html::icon('delete'), $url, $options);\n };\n }\n }", "protected function initDefaultButtons()\r\n {\r\n if (!isset($this->buttons['view']) && !$this->hideViewButton) {\r\n $this->buttons['view'] = function ($url, $model, $key) {\r\n $options = array_merge([\r\n 'title' => Yii::t('yii', 'View'),\r\n 'aria-label' => Yii::t('yii', 'View'),\r\n 'data-pjax' => '0',\r\n ], $this->buttonOptions);\r\n return Html::a('<span class=\"fa fa-lg fa-eye\"></span>', $url, $options);\r\n };\r\n }\r\n if (!isset($this->buttons['update'])) {\r\n $this->buttons['update'] = function ($url, $model, $key) {\r\n $options = array_merge([\r\n 'title' => Yii::t('yii', 'Update'),\r\n 'aria-label' => Yii::t('yii', 'Update'),\r\n 'data-pjax' => '0',\r\n ], $this->buttonOptions);\r\n return Html::a('<span class=\"fa fa-lg fa-edit\"></span>', $url, $options);\r\n };\r\n }\r\n if (!isset($this->buttons['delete'])) {\r\n $this->buttons['delete'] = function ($url, $model, $key) {\r\n $options = array_merge([\r\n 'title' => Yii::t('yii', 'Delete'),\r\n 'aria-label' => Yii::t('yii', 'Delete'),\r\n 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'),\r\n 'data-method' => 'post',\r\n 'data-pjax' => '0',\r\n ], $this->buttonOptions);\r\n return Html::a('<span class=\"fa fa-lg fa-trash\"></span>', $url, $options);\r\n };\r\n }\r\n }", "protected function generateButtons() {}", "public function getDefaultButton() {}", "public function no_button() { $this->button = NULL; }", "protected function changeButtons()\n {\n $helper = Mage::helper('fraisrconnect/data');\n $urlModel = Mage::getModel('adminhtml/url');\n \n $this->_removeButton('add');\n\n //Add cause sync button\n $this->_addButton('cause_synchronisation', array(\n 'label' => $helper->__('Synchronize causes'),\n 'onclick' => 'setLocation(\\'' . $urlModel->getUrl('fraisrconnect/adminhtml_synchronisation/cause') .'\\')',\n 'class' => 'add',\n ));\n\n //Add category sync button\n $this->_addButton('category_synchronisation', array(\n 'label' => $helper->__('Synchronize categories'),\n 'onclick' => 'setLocation(\\'' . $urlModel->getUrl('fraisrconnect/adminhtml_synchronisation/category') .'\\')',\n 'class' => 'add',\n ));\n\n //Add mark products to sync button\n $this->_addButton('product_mark_to_synchronisation', array(\n 'label' => $helper->__('Mark products as to synchronize'),\n 'onclick' => 'setLocation(\\'' . $urlModel->getUrl('fraisrconnect/adminhtml_synchronisation/markProduct') .'\\')',\n 'class' => 'add',\n ));\n\n //Add product sync button\n $this->_addButton('product_synchronisation', array(\n 'label' => $helper->__('Synchronize products'),\n 'onclick' => 'setLocation(\\'' . $urlModel->getUrl('fraisrconnect/adminhtml_synchronisation/product') .'\\')',\n 'class' => 'add',\n ));\n\n //Add order sync button\n $this->_addButton('order_synchronisation', array(\n 'label' => $helper->__('Synchronize orders'),\n 'onclick' => 'setLocation(\\'' . $urlModel->getUrl('fraisrconnect/adminhtml_synchronisation/order') .'\\')',\n 'class' => 'add',\n ));\n }", "protected function initDefaultButtons()\n {\n $this->buttons = ArrayHelper::merge(\n [\n 'first' => [\n 'icon' => 'triangle-top',\n 'visible' => function ($model) {\n /* @var $model \\yii\\db\\BaseActiveRecord */\n if ($this->attribute !== null && isset($model[$this->attribute])) {\n return $model[$this->attribute] > 1;\n }\n return true;\n },\n 'options' => [\n 'title' => Yii::t('yii2tech-admin', 'Move top'),\n 'aria-label' => Yii::t('yii2tech-admin', 'Move top'),\n ],\n ],\n 'last' => [\n 'icon' => 'triangle-bottom',\n 'visible' => function ($model) {\n /* @var $model \\yii\\db\\BaseActiveRecord */\n if ($this->attribute !== null && isset($model[$this->attribute])) {\n return $model[$this->attribute] < $this->grid->dataProvider->getTotalCount();\n }\n return true;\n },\n 'options' => [\n 'title' => Yii::t('yii2tech-admin', 'Move bottom'),\n 'aria-label' => Yii::t('yii2tech-admin', 'Move bottom'),\n ],\n ],\n 'prev' => [\n 'icon' => 'arrow-up',\n 'visible' => function ($model) {\n /* @var $model \\yii\\db\\BaseActiveRecord */\n if ($this->attribute !== null && isset($model[$this->attribute])) {\n return $model[$this->attribute] > 1;\n }\n return true;\n },\n 'options' => [\n 'title' => Yii::t('yii2tech-admin', 'Move up'),\n 'aria-label' => Yii::t('yii2tech-admin', 'Move up'),\n ],\n ],\n 'next' => [\n 'icon' => 'arrow-down',\n 'visible' => function ($model) {\n /* @var $model \\yii\\db\\BaseActiveRecord */\n if ($this->attribute !== null && isset($model[$this->attribute])) {\n return $model[$this->attribute] < $this->grid->dataProvider->getTotalCount();\n }\n return true;\n },\n 'options' => [\n 'title' => Yii::t('yii2tech-admin', 'Move down'),\n 'aria-label' => Yii::t('yii2tech-admin', 'Move down'),\n ],\n ],\n ],\n $this->buttons\n );\n }", "function add_ind_button($buttons) {\n\tarray_push($buttons, 'Indizar');\n\treturn $buttons;\n}", "public function addButtons()\n {\n if (!Mage::getSingleton('sheep_subscription/adminhtml_acl')->canEditSubscription()) {\n return;\n }\n\n /** @var Sheep_Subscription_Model_Subscription $subscription */\n $subscription = $this->_getModel();\n /** @var Sheep_Subscription_Model_Service $service */\n $service = Mage::getSingleton('sheep_subscription/service');\n\n if ($service->canBeCancelled($subscription)) {\n $this->addButton('cancel', array(\n 'label' => 'Cancel',\n 'onclick' => \"window.setLocation('{$this->getCancelUrl()}')\"\n ));\n }\n\n if ($service->canBePaused($subscription)) {\n $this->addButton('pause', array(\n 'label' => $this->__('Pause'),\n 'onclick' => \"window.setLocation('{$this->getPauseUrl()}')\"\n ));\n }\n\n if ($service->canBeResumed($subscription)) {\n $this->addButton('resume', array(\n 'label' => 'Resume',\n 'onclick' => \"window.setLocation('{$this->getResumeUrl()}')\"\n ));\n }\n }", "public function makeShortcutButton() {}", "public function disableButtons()\n\t{\n\t}", "protected function _addButtons()\r\n\t{\r\n\t\t$model = $this->getModel();\r\n\t\t$params\t= $model->getParams();\r\n\t\t$this->showEmail = $params->get('email', 0);\r\n\t\t$this->emailLink = '';\r\n\t\t$this->printLink = '';\r\n\t\t$this->pdfLink = '';\r\n\t\t$this->showPrint = $params->get('print', 0);\r\n\r\n\t\tif ($this->showPrint) {\r\n\t\t\t$text = JHTML::_('image.site', 'printButton.png', '/images/', NULL, NULL, JText::_('Print'));\r\n\t\t\t$this->printLink = '<a href=\"#\" onclick=\"window.print();return false;\">'.$text.'</a>';\r\n\t\t}\r\n\r\n\t\tif (JRequest::getVar('tmpl') != 'component') {\r\n\t\t\tif ($this->showEmail) {\r\n\t\t\t\t$this->emailLink = FabrikHelperHTML::emailIcon($model, $params);\r\n\t\t\t}\r\n\r\n\t\t\tif ($this->showPrint) {\r\n\t\t\t\t$this->printLink = FabrikHelperHTML::printIcon($model, $params, $model->_rowId);\r\n\t\t\t}\r\n\r\n\t\t\t$this->showPDF = $params->get('pdf', 0);\r\n\t\t\tif ($this->showPDF) {\r\n\t\t\t\t$this->pdfLink = FabrikHelperHTML::pdfIcon($model, $params, $model->_rowId);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->showPDF = false;\r\n\t\t}\r\n\t}", "function ind_add_buttons() {\n\t// Don't bother doing this stuff if the current user lacks permissions\n\tif( !current_user_can('edit_posts') && !current_user_can('edit_pages') ) return;\n\n\t// Add only in Rich Editor mode\n\tif( get_user_option('rich_editing') == 'true') {\n\t\n\t\t// add the button for wp21 in a new way\n\t\tadd_filter('mce_external_plugins', 'add_ind_script');\n\t\tadd_filter('mce_buttons', 'add_ind_button');\n\t}\n}", "function register_rich_buttons( $buttons )\n\t{\n\t\tarray_push( $buttons, \"|\", 'nymble_button' );\n\t\treturn $buttons;\n\t}", "public function decorate()\n {\n\n $this->element->addItemButton\n ->addClass('btn-sm push-top')\n ->appendContent(' <i class=\"btr bt-plus btn-no-anim\"></i>')\n ;\n\n $this->element->removeItemButton->content->clear();\n $this->element->removeItemButton->content('<i class=\"btr bt-trash\" style=\"margin:0\"></i>');\n\n }", "public function addButtons(array $buttons, UiComponentInterface $component);", "function addButton($a_button_name)\n\t{\n\t\tarray_push($this->buttons, $a_button_name);\n\t}", "function bg_AddBeyondGrammarButton($buttons){\n array_push($buttons, \"separator\", \"BeyondGrammar\");\n return $buttons;\n}", "function register_button($buttons) {\n\t\t\t/*print( \"\\n<!-- Preparing to add the umw_widget_short MCE button. -->\\n\" );\n\t\t\tprint( \"\\n<!-- The current buttons array looks like:\\n\" . print_r( $buttons, true ) . \"\\n-->\\n\" );*/\n\t\t\tarray_push($buttons, 'umw_widget_short');\n\t\t\t/*print( \"\\n<!-- The updated buttons array looks like:\\n\" . print_r( $buttons, true ) . \"\\n-->\\n\" );*/\n\t\t\treturn $buttons;\n\t\t}", "function remove_classic_editor_buttons($btns){\r\n\t\t// add a button to remove\r\n\t\t// array_push($btns, 'ct_shortcode');\r\n\t\treturn $btns;\r\n\t}", "protected function initDefaultButtons()\n\t{\n\t\tif($this->inputFieldName===null)\n\t\t\t$this->inputFieldName='priority[]';\n\t\tif($this->upButtonLabel===null)\n\t\t\t$this->upButtonLabel=Yii::t('zii','Up');\n\t\tif($this->downButtonLabel===null)\n\t\t\t$this->downButtonLabel=Yii::t('zii','Down');\n\t\tif($this->upButtonImageUrl===null)\n\t\t\t$this->upButtonImageUrl=$this->grid->enhancedScriptUrl.'/up.png';\n\t\tif($this->downButtonImageUrl===null)\n\t\t\t$this->downButtonImageUrl=$this->grid->enhancedScriptUrl.'/down.png';\n\t\t\n\t\t// input text\n\t\tforeach(array('input') as $id)\n\t\t{\n\t\t\t$button=array(\n\t\t\t\t'name'=>$this->{$id.'FieldName'},\n\t\t\t\t'options'=>$this->{$id.'FieldOptions'},\n\t\t\t);\n\t\t\tif(isset($this->buttons[$id]))\n\t\t\t\t$this->buttons[$id]=array_merge($button,$this->buttons[$id]);\n\t\t\telse\n\t\t\t\t$this->buttons[$id]=$button;\n\t\t}\n\t\t// image button\n\t\tforeach(array('up','down') as $id)\n\t\t{\n\t\t\t$button=array(\n\t\t\t\t'label'=>$this->{$id.'ButtonLabel'},\n\t\t\t\t'url'=>$this->{$id.'ButtonUrl'},\n\t\t\t\t'imageUrl'=>$this->{$id.'ButtonImageUrl'},\n\t\t\t\t'options'=>$this->{$id.'ButtonOptions'},\n\t\t\t);\n\t\t\tif(isset($this->buttons[$id]))\n\t\t\t\t$this->buttons[$id]=array_merge($button,$this->buttons[$id]);\n\t\t\telse\n\t\t\t\t$this->buttons[$id]=$button;\n\t\t}\n\t}", "function register_lp_button($buttons) {\n array_push($buttons, \"separator\", \"listingpress\", \"listingpress_vis\");\n return $buttons;\n}", "public function makeSplitButton() {}", "public function addButtons()\n {\n if ($this->isCreateButtonRequired()) {\n $this->getToolbar()->addChild('bluemedia_return', Button::class, [\n 'label' => __('Return BM'),\n 'onclick' => 'BlueMedia.BluePayment.showPopup();'\n ]);\n }\n\n return $this;\n }", "protected function _setAddButton()\n {\n $this->setChild('add_button',\n $this->getLayout()->createBlock('adminhtml/widget_button')\n ->setData(array('id' => \"add_tax_\" . $this->getElement()->getHtmlId(),\n 'label' => Mage::helper('catalog')->__('Add Tax'),\n 'onclick' => \"weeeTaxControl.addItem('\" . $this->getElement()->getHtmlId() . \"')\",\n 'class' => 'add'\n )));\n }", "function listButtons() {\n\t}", "public function removeAllButtons()\n {\n $this->mixButtons = array();\n $this->blnValidationArray = array();\n $this->blnModified = true;\n }", "protected function buildButtonsAddMode() {\n $moduleHandler = \\Drupal::service('module_handler');\n $add_mode = $this->getSetting('add_mode');\n $add_more_elements = parent::buildButtonsAddMode();\n\n if ($moduleHandler->moduleExists('micon_paragraphs')) {\n $options = $this->getAccessibleOptions();\n foreach ($options as $machine_name => $label) {\n $button_key = 'add_more_button_' . $machine_name;\n $add_more_elements[$button_key]['#type'] = 'ux_button';\n $add_more_elements[$button_key]['#ajax']['event'] = 'click';\n $add_more_elements[$button_key]['#attributes']['data-uxaside-close'] = '';\n if ($add_mode != 'modal') {\n $add_more_elements[$button_key]['#wrapper_attributes']['class'][] = 'button';\n }\n if ($icon = micon($label)->addMatchPrefix('paragraphs')) {\n $add_more_elements[$button_key]['#label'] = $icon;\n }\n\n }\n }\n\n if ($add_mode == 'modal') {\n unset($add_more_elements['add_modal_form_area']);\n $add_more_elements['#type'] = 'ux_aside_container';\n }\n\n return $add_more_elements;\n }", "function wpua_add_buttons() {\n // Add only in Rich Editor mode\n if(get_user_option('rich_editing') == 'true') {\n add_filter('mce_external_plugins', 'wpua_add_tinymce_plugin');\n add_filter('mce_buttons', 'wpua_register_button');\n }\n}", "function composeL1EditForm_buttonsDiv() {\n\n\n return;\n}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function createButtons()\n {\n $buttonBar = $this->view->getModuleTemplate()->getDocHeaderComponent()->getButtonBar();\n\n $uriBuilder = $this->objectManager->get(UriBuilder::class);\n $uriBuilder->setRequest($this->request);\n\n if ($this->request->getControllerActionName() === 'index') {\n $toggleButton = $buttonBar->makeLinkButton()\n ->setHref('#')\n ->setDataAttributes([\n 'togglelink' => '1',\n 'toggle' => 'tooltip',\n 'placement' => 'bottom',\n ])\n ->setTitle($this->getLanguageService()->sL('LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.toggleForm'))\n ->setIcon($this->iconFactory->getIcon('actions-filter', Icon::SIZE_SMALL));\n $buttonBar->addButton($toggleButton, ButtonBar::BUTTON_POSITION_LEFT, 1);\n }\n\n $buttons = [\n [\n 'table' => 'tx_news_domain_model_news',\n 'label' => 'module.createNewNewsRecord',\n 'action' => 'newNews',\n 'icon' => 'ext-news-type-default'\n ],\n [\n 'table' => 'tx_news_domain_model_tag',\n 'label' => 'module.createNewTag',\n 'action' => 'newTag',\n 'icon' => 'ext-news-tag'\n ],\n [\n 'table' => 'sys_category',\n 'label' => 'module.createNewCategory',\n 'action' => 'newCategory',\n 'icon' => 'mimetypes-x-sys_category'\n ]\n ];\n foreach ($buttons as $key => $tableConfiguration) {\n if ($this->showButton($tableConfiguration['table'])) {\n $title = $this->getLanguageService()->sL('LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:' . $tableConfiguration['label']);\n $viewButton = $buttonBar->makeLinkButton()\n ->setHref($uriBuilder->reset()->setRequest($this->request)->uriFor($tableConfiguration['action'],\n [], 'Administration'))\n ->setDataAttributes([\n 'toggle' => 'tooltip',\n 'placement' => 'bottom',\n 'title' => $title])\n ->setTitle($title)\n ->setIcon($this->iconFactory->getIcon($tableConfiguration['icon'], Icon::SIZE_SMALL, 'overlay-new'));\n $buttonBar->addButton($viewButton, ButtonBar::BUTTON_POSITION_LEFT, 2);\n }\n }\n\n $clipBoard = GeneralUtility::makeInstance(Clipboard::class);\n $clipBoard->initializeClipboard();\n $elFromTable = $clipBoard->elFromTable('tx_news_domain_model_news');\n if (!empty($elFromTable)) {\n $viewButton = $buttonBar->makeLinkButton()\n ->setHref($clipBoard->pasteUrl('', $this->pageUid))\n ->setOnClick('return ' . $clipBoard->confirmMsg('pages',\n BackendUtilityCore::getRecord('pages', $this->pageUid), 'into',\n $elFromTable))\n ->setTitle($this->getLanguageService()->sL('LLL:EXT:lang/locallang_mod_web_list.xlf:clip_pasteInto'))\n ->setIcon($this->iconFactory->getIcon('actions-document-paste-into', Icon::SIZE_SMALL));\n $buttonBar->addButton($viewButton, ButtonBar::BUTTON_POSITION_LEFT, 4);\n }\n\n // Refresh\n $path = VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= VersionNumberUtility::convertVersionNumberToInteger('8.6') ? 'Resources/Private/Language/' : '';\n $refreshButton = $buttonBar->makeLinkButton()\n ->setHref(GeneralUtility::getIndpEnv('REQUEST_URI'))\n ->setTitle($this->getLanguageService()->sL('LLL:EXT:lang/' . $path . 'locallang_core.xlf:labels.reload'))\n ->setIcon($this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL));\n $buttonBar->addButton($refreshButton, ButtonBar::BUTTON_POSITION_RIGHT);\n }", "public function addButton(TDProject_Core_Interfaces_Block_Widget_Button $block);", "public function getDefaultButtonsOptions()\n {\n return array( 'preContent' => '<div class=\"buttons-spacer\"></div><div class=\"buttons-wrap\">', 'postContent' => '</div>' );\n }", "function addButton($label='Continue'){\n if(!is_array($label)){\n $label=array($label, 'icon-r'=>'right-big');\n }\n return $this->add('Button',null,'Button')\n ->set($label);\n }", "public function getPluginButtons() {}", "function gwtb_register_buttons_editor($buttons)\n{\n array_push($buttons, \"gwtb_button\");\n return $buttons;\n}", "function butns_plugin_addbutton() {\n\n // Don't bother doing this stuff if the current user lacks permissions\n if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )\n return;\n \n // Add only in Rich Editor mode\n if ( get_user_option('rich_editing') == 'true') {\n add_filter(\"mce_external_plugins\", \"add_butns_tinymce_plugin\");\n add_filter('mce_buttons', 'register_butns_button');\n }\n}", "function travelogue_buttons() {\n add_filter( \"mce_external_plugins\", \"travelogue_add_buttons\" );\n // add new buttons\n add_filter( 'mce_buttons', 'travelogue_register_buttons' );\n}", "public static function add_button() {\r\n\t\tif (current_user_can('edit_posts') || current_user_can('edit_pages')) {\r\n\t\t\tadd_filter('mce_external_plugins', 'TpsShortCodes::add_plugin');\r\n\t\t\tadd_filter('mce_buttons', 'TpsShortCodes::register_button');\r\n\t\t}\r\n\t}", "function shortcode_insert_button()\n\t\t\t{\n\t\t\t\t$this->config['self_closing']\t=\t'no';\n\t\t\t\t\n\t\t\t\t$this->config['name']\t\t= __('Notification', 'avia_framework' );\n\t\t\t\t$this->config['tab']\t\t= __('Content Elements', 'avia_framework' );\n\t\t\t\t$this->config['icon']\t\t= AviaBuilder::$path['imagesURL'].\"sc-notification.png\";\n\t\t\t\t$this->config['order']\t\t= 80;\n\t\t\t\t$this->config['target']\t\t= 'avia-target-insert';\n\t\t\t\t$this->config['shortcode'] \t= 'av_notification';\n\t\t\t\t$this->config['tooltip'] \t= __('Creates a notification box to inform visitors', 'avia_framework' );\n\t\t\t\t$this->config['tinyMCE'] = array('tiny_always'=>true);\t\n\t\t\t\t$this->config['preview'] \t= true;\n\t\t\t}", "protected function makeButtons()\n {\n if ($this->MOD_SETTINGS['function'] == 1 || $this->MOD_SETTINGS['function'] == 2) {\n // Add CSH (Context Sensitive Help) icon to tool bar\n $contextSensitiveHelpButton = $this->buttonBar->makeHelpButton()\n ->setModuleName($this->descrTable)\n ->setFieldName('columns_' . $this->MOD_SETTINGS['function']);\n $this->buttonBar->addButton($contextSensitiveHelpButton);\n }\n $lang = $this->getLanguageService();\n // View page\n if (!VersionState::cast($this->pageinfo['t3ver_state'])->equals(VersionState::DELETE_PLACEHOLDER)) {\n $viewButton = $this->buttonBar->makeLinkButton()\n ->setOnClick(BackendUtility::viewOnClick($this->pageinfo['uid'], '', BackendUtility::BEgetRootLine($this->pageinfo['uid'])))\n ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.showPage'))\n ->setIcon($this->iconFactory->getIcon('actions-document-view', Icon::SIZE_SMALL))\n ->setHref('#');\n\n $this->buttonBar->addButton($viewButton, ButtonBar::BUTTON_POSITION_LEFT, 3);\n }\n // Shortcut\n $shortcutButton = $this->buttonBar->makeShortcutButton()\n ->setModuleName($this->moduleName)\n ->setGetVariables([\n 'id',\n 'M',\n 'edit_record',\n 'pointer',\n 'new_unique_uid',\n 'search_field',\n 'search_levels',\n 'showLimit'\n ])\n ->setSetVariables(array_keys($this->MOD_MENU));\n $this->buttonBar->addButton($shortcutButton);\n\n // Cache\n if (empty($this->modTSconfig['properties']['disableAdvanced'])) {\n $clearCacheButton = $this->buttonBar->makeLinkButton()\n ->setHref(BackendUtility::getModuleUrl($this->moduleName, ['id' => $this->pageinfo['uid'], 'clear_cache' => '1']))\n ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.clear_cache'))\n ->setIcon($this->iconFactory->getIcon('actions-system-cache-clear', Icon::SIZE_SMALL));\n $this->buttonBar->addButton($clearCacheButton, ButtonBar::BUTTON_POSITION_RIGHT, 1);\n }\n if (empty($this->modTSconfig['properties']['disableIconToolbar'])) {\n // Edit page properties and page language overlay icons\n if ($this->pageIsNotLockedForEditors() && $this->getBackendUser()->checkLanguageAccess(0)) {\n // Edit localized page_language_overlay only when one specific language is selected\n if ($this->MOD_SETTINGS['function'] == 1 && $this->current_sys_language > 0) {\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)\n ->getQueryBuilderForTable('pages_language_overlay');\n $queryBuilder->getRestrictions()\n ->removeAll()\n ->add(GeneralUtility::makeInstance(DeletedRestriction::class))\n ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));\n $overlayRecord = $queryBuilder\n ->select('uid')\n ->from('pages_language_overlay')\n ->where(\n $queryBuilder->expr()->eq(\n 'pid',\n $queryBuilder->createNamedParameter($this->id, \\PDO::PARAM_INT)\n ),\n $queryBuilder->expr()->eq(\n 'sys_language_uid',\n $queryBuilder->createNamedParameter($this->current_sys_language, \\PDO::PARAM_INT)\n )\n )\n ->setMaxResults(1)\n ->execute()\n ->fetch();\n // Edit button\n $urlParameters = [\n 'edit' => [\n 'pages_language_overlay' => [\n $overlayRecord['uid'] => 'edit'\n ]\n ],\n 'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')\n ];\n $url = BackendUtility::getModuleUrl('record_edit', $urlParameters);\n $editLanguageButton = $this->buttonBar->makeLinkButton()\n ->setHref($url)\n ->setTitle($lang->getLL('editPageLanguageOverlayProperties'))\n ->setIcon($this->iconFactory->getIcon('mimetypes-x-content-page-language-overlay', Icon::SIZE_SMALL));\n $this->buttonBar->addButton($editLanguageButton, ButtonBar::BUTTON_POSITION_LEFT, 3);\n }\n $urlParameters = [\n 'edit' => [\n 'pages' => [\n $this->id => 'edit'\n ]\n ],\n 'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')\n ];\n $url = BackendUtility::getModuleUrl('record_edit', $urlParameters);\n $editPageButton = $this->buttonBar->makeLinkButton()\n ->setHref($url)\n ->setTitle($lang->getLL('editPageProperties'))\n ->setIcon($this->iconFactory->getIcon('actions-page-open', Icon::SIZE_SMALL));\n $this->buttonBar->addButton($editPageButton, ButtonBar::BUTTON_POSITION_LEFT, 3);\n }\n }\n }", "public function getButtons() {}", "public function getButtons() {}", "public function getButtons() {}", "public function getButtons() {}", "function register_tinyMCE_button( $buttons ) {\n\n\t\t// Removes the default blockquote button\n\t\tif ( false !== ( $key = array_search( 'blockquote', $buttons ) ) ) {\n\t\t\tunset( $buttons[$key] );\n\t\t}\n\n\t // Add the custom blockquotes button\n\t array_push( $buttons, 'better_blockquote' );\n\n\t return $buttons;\n\t}", "function add_tinymce_toolbar_button( $buttons ) {\n \n array_push( $buttons, '|', 'custom_link_class' );\n return $buttons;\n }", "function register_friendly_toggles($buttons) {\n\t// inserts a separator between existing buttons and our new one\n\t// \"friendly_button\" is the ID of our button\n\tarray_push($buttons, \"friendly_toggle\");\n\treturn $buttons;\n}", "function add_buttons() {\n\t\t // Don't bother doing this stuff if the current user lacks permissions\n\t\t if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )\n\t\t\t return;\n\t\t \n\t\t // Add only in Rich Editor mode\n\t\t if ( get_user_option('rich_editing') == 'true') {\n\t\t\t add_filter('mce_external_plugins', array( $this, 'add_tinymce_plugin' ) );\n\t\t\t add_filter('mce_buttons_2', array( $this, 'register_button' ) );\n\t\t }\n\t\t}", "function register_wpsc_button($buttons) {\n\n\tarray_push($buttons, \"separator\", \"WPSC\");\n\n\treturn $buttons;\n}", "private function add_buttons(&$data)\n\t{\n\t\t$data['action'] = $this->url->link(\n\t\t\t\"extension/payment/{$this->gateway_name}\",\n\t\t\t'user_token=' . $this->session->data['user_token'],\n\t\t\ttrue\n\t\t);\n\n\t\t$data['cancel'] = $this->url->link(\n\t\t\t'marketplace/extension',\n\t\t\t'user_token=' . $this->session->data['user_token'] . '&type=payment',\n\t\t\ttrue\n\t\t);\n\t}", "function add_buttons ($modid, $removeable) {\n if (SESSION_STATUS != 'ok' || !$modid) {\n return false;\n }\n \n global $design;\n global $profile;\n\tif($profile['module_size_'.$modid] == '2') {\n $design_size_img = $design['maximize_img'];\n } else {\n $design_size_img = $design['minimize_img'];\n }\n global $self;\n if($profile['module_size_'.$modid] != 2) { $minmax = 'min'; } else { $minmax = 'max'; }\n $buttons = get_image_tag($design_size_img, '', $self.'docinput['.$minmax.'_module]='.$modid);\n if($removeable == 1) {\n\t\t$buttons .= get_image_tag($design['close_img'], '', $self.'docinput[rem_module]='.$modid);\n \t}\n return($buttons);\n }", "public function inventoryplus_inventory_stock_action_buttons($observer) {\n $actionsObject = $observer->getEvent()->getData('stock_actions_object');\n $actions = $actionsObject->getActions();\n $actions['purchase_stock'] = array('params' => array(\n 'label' => Mage::helper('inventorypurchasing')->__('Purchase Stock'),\n 'onclick' => 'location.href=\\'' . Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/inpu_purchaseorders/new') . '\\'',\n 'class' => 'add',\n ),\n 'position' => -300\n );\n\n $actionsObject->setActions($actions);\n }", "function btn_register_mce_button( $buttons ) {\n\tarray_push( $buttons, 'btn_mce_button' );\n\treturn $buttons;\n}", "function nav_buttons()\n\t{\n\t\t?>\n\t\t<input type=\"button\" value=\"Create New Preorder &gt;\" onclick=\"document.location='/admin/utilities/preorder.php?act=new'\" class=\"btn\">\n\t\t<p />\n\t\t<?php\n\t}", "public function makeHelpButton() {}", "protected function getButtons()\n {\n $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();\n // Shortcut\n $shortcutButton = $buttonBar->makeShortcutButton()\n ->setModuleName($this->MCONF['name'])\n ->setGetVariables(array('id', 'M'));\n $buttonBar->addButton($shortcutButton);\n }", "function register_shortcodes_buttons( $buttons )\n {\n array_push( $buttons, \"|\", 'zebra_button' );\n return $buttons;\n }", "protected function buttons()\r\n\t{\r\n\t\t$this->buttons = new stdClass();\r\n\t\t$buttonProperties = array('class' => 'fabrikTip', 'opts' => \"{notice:true}\", 'title' => '<span>'.JText::_('COM_FABRIK_EXPORT_TO_CSV').'</span>');\r\n\t\t$this->buttons->csvexport = FabrikHelperHTML::image('csv-export.png', 'list', $this->tmpl, $buttonProperties);\r\n\t\t$buttonProperties['title'] = '<span>'.JText::_('COM_FABRIK_IMPORT_FROM_CSV').'</span>';\r\n\t\t$this->buttons->csvimport = FabrikHelperHTML::image('csv-import.png', 'list', $this->tmpl, $buttonProperties);\r\n\t\t$buttonProperties['title'] = '<span>'.JText::_('COM_FABRIK_SUBSCRIBE_RSS').'</span>';\r\n\t\t$this->buttons->feed = FabrikHelperHTML::image('feed.png', 'list', $this->tmpl, $buttonProperties);\r\n\t\t$buttonProperties['title'] = '<span>'.JText::_('COM_FABRIK_EMPTY').'</span>';\r\n\t\t$this->buttons->empty = FabrikHelperHTML::image('trash.png', 'list', $this->tmpl, $buttonProperties);\r\n\r\n\t\t$buttonProperties['title'] = '<span>'.JText::_('COM_FABRIK_GROUP_BY').'</span>';\r\n\t\t$this->buttons->groupby = FabrikHelperHTML::image('group_by.png', 'list', $this->tmpl, $buttonProperties);\r\n\r\n\t\t$buttonProperties['title'] = '<span>'.JText::_('COM_FABRIK_FILTER').'</span>';\r\n\t\t$this->buttons->filter = FabrikHelperHTML::image('filter.png', 'list', $this->tmpl, $buttonProperties);\r\n\r\n\t\t$buttonProperties['title'] = '<span>'.JText::_('COM_FABRIK_ADD').'</span>';\r\n\t\t$this->buttons->add = FabrikHelperHTML::image('add.png', 'list', $this->tmpl, $buttonProperties);\r\n\t}", "private function createButtonsTab()\n {\n $tab = $this->createTab(\n 'buttons_tab',\n '__responsive_tab_buttons__',\n [\n 'attributes' => [\n 'autoScroll' => true,\n ],\n ]\n );\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 90]);\n $fieldSetButtons = $this->createFieldSet(\n 'buttons_fieldset',\n '__responsive_tab_buttons_fieldset_global__',\n ['attributes' => $attributes]\n );\n\n $fieldSetButtons->addElement(\n $this->createTextField(\n 'btn-font-size',\n '@btn-font-size',\n $this->themeFontDefaults['btn-font-size']\n )\n );\n $fieldSetButtons->addElement(\n $this->createTextField(\n 'btn-icon-size',\n '@btn-icon-size',\n $this->themeFontDefaults['btn-icon-size']\n )\n );\n\n $tab->addElement($fieldSetButtons);\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 200]);\n $fieldSetDefaultButtons = $this->createFieldSet(\n 'buttons_default_fieldset',\n '__responsive_tab_buttons_fieldset_default__',\n ['attributes' => $attributes]\n );\n\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-top-bg',\n '@btn-default-top-bg',\n $this->themeColorDefaults['btn-default-top-bg']\n )\n );\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-bottom-bg',\n '@btn-default-bottom-bg',\n $this->themeColorDefaults['btn-default-bottom-bg']\n )\n );\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-hover-bg',\n '@btn-default-hover-bg',\n $this->themeColorDefaults['btn-default-hover-bg']\n )\n );\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-text-color',\n '@btn-default-text-color',\n $this->themeColorDefaults['btn-default-text-color']\n )\n );\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-hover-text-color',\n '@btn-default-hover-text-color',\n $this->themeColorDefaults['btn-default-hover-text-color']\n )\n );\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-border-color',\n '@btn-default-border-color',\n $this->themeColorDefaults['btn-default-border-color']\n )\n );\n $fieldSetDefaultButtons->addElement(\n $this->createColorPickerField(\n 'btn-default-hover-border-color',\n '@btn-default-hover-border-color',\n $this->themeColorDefaults['btn-default-hover-border-color']\n )\n );\n\n $tab->addElement($fieldSetDefaultButtons);\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 170]);\n $fieldSetPrimaryButtons = $this->createFieldSet(\n 'buttons_primary_fieldset',\n '__responsive_tab_buttons_fieldset_primary__',\n ['attributes' => $attributes]\n );\n\n $fieldSetPrimaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-primary-top-bg',\n '@btn-primary-top-bg',\n $this->themeColorDefaults['btn-primary-top-bg']\n )\n );\n $fieldSetPrimaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-primary-bottom-bg',\n '@btn-primary-bottom-bg',\n $this->themeColorDefaults['btn-primary-bottom-bg']\n )\n );\n $fieldSetPrimaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-primary-hover-bg',\n '@btn-primary-hover-bg',\n $this->themeColorDefaults['btn-primary-hover-bg']\n )\n );\n $fieldSetPrimaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-primary-text-color',\n '@btn-primary-text-color',\n $this->themeColorDefaults['btn-primary-text-color']\n )\n );\n $fieldSetPrimaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-primary-hover-text-color',\n '@btn-primary-hover-text-color',\n $this->themeColorDefaults['btn-primary-hover-text-color']\n )\n );\n\n $tab->addElement($fieldSetPrimaryButtons);\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 170]);\n $fieldSetSecondaryButtons = $this->createFieldSet(\n 'buttons_secondary_fieldset',\n '__responsive_tab_buttons_fieldset_secondary__',\n ['attributes' => $attributes]\n );\n\n $fieldSetSecondaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-secondary-top-bg',\n '@btn-secondary-top-bg',\n $this->themeColorDefaults['btn-secondary-top-bg']\n )\n );\n $fieldSetSecondaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-secondary-bottom-bg',\n '@btn-secondary-bottom-bg',\n $this->themeColorDefaults['btn-secondary-bottom-bg']\n )\n );\n $fieldSetSecondaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-secondary-hover-bg',\n '@btn-secondary-hover-bg',\n $this->themeColorDefaults['btn-secondary-hover-bg']\n )\n );\n $fieldSetSecondaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-secondary-text-color',\n '@btn-secondary-text-color',\n $this->themeColorDefaults['btn-secondary-text-color']\n )\n );\n $fieldSetSecondaryButtons->addElement(\n $this->createColorPickerField(\n 'btn-secondary-hover-text-color',\n '@btn-secondary-hover-text-color',\n $this->themeColorDefaults['btn-secondary-hover-text-color']\n )\n );\n\n $tab->addElement($fieldSetSecondaryButtons);\n\n $attributes = array_merge($this->fieldSetDefaults, ['height' => 170]);\n $fieldSetPanels = $this->createFieldSet(\n 'panels_fieldset',\n '__responsive_tab_buttons_fieldset_panels__',\n ['attributes' => $attributes]\n );\n\n $fieldSetPanels->addElement(\n $this->createColorPickerField(\n 'panel-header-bg',\n '@panel-header-bg',\n $this->themeColorDefaults['panel-header-bg']\n )\n );\n $fieldSetPanels->addElement(\n $this->createTextField(\n 'panel-header-font-size',\n '@panel-header-font-size',\n $this->themeFontDefaults['panel-header-font-size']\n )\n );\n $fieldSetPanels->addElement(\n $this->createColorPickerField(\n 'panel-header-color',\n '@panel-header-color',\n $this->themeColorDefaults['panel-header-color']\n )\n );\n $fieldSetPanels->addElement(\n $this->createColorPickerField(\n 'panel-border',\n '@panel-border',\n $this->themeColorDefaults['panel-border']\n )\n );\n $fieldSetPanels->addElement(\n $this->createColorPickerField(\n 'panel-bg',\n '@panel-bg',\n $this->themeColorDefaults['panel-bg']\n )\n );\n\n $tab->addElement($fieldSetPanels);\n\n return $tab;\n }", "public function defineHeaderButton(){\r\n $this->addnewctrl='';\r\n $this->searchctrl='';\r\n }", "protected function generateButtons()\n {\n $arrButtons = array();\n\n // Add \"update cart\" button\n $arrButtons['update'] = array(\n 'type' => 'submit',\n 'name' => 'button_update',\n 'label' => $GLOBALS['TL_LANG']['MSC']['updateCartBT'],\n );\n\n // Add button to cart button (usually if not on the cart page)\n if ($this->iso_cart_jumpTo > 0) {\n $objJumpToCart = \\PageModel::findByPk($this->iso_cart_jumpTo);\n\n if (null !== $objJumpToCart) {\n $arrButtons['cart'] = array(\n 'type' => 'submit',\n 'name' => 'button_cart',\n 'label' => $GLOBALS['TL_LANG']['MSC']['cartBT'],\n 'href' => \\Controller::generateFrontendUrl($objJumpToCart->row()),\n );\n\n if (\\Input::post('FORM_SUBMIT') == $this->strFormId && \\Input::post('button_cart') != '') {\n $this->jumpToOrReload($this->iso_cart_jumpTo);\n }\n }\n }\n\n // Add button to checkout page\n if ($this->iso_checkout_jumpTo > 0 && !Isotope::getCart()->hasErrors()) {\n $objJumpToCheckout = \\PageModel::findByPk($this->iso_checkout_jumpTo);\n\n if (null !== $objJumpToCheckout) {\n $arrButtons['checkout'] = array(\n 'type' => 'submit',\n 'name' => 'button_checkout',\n 'label' => $GLOBALS['TL_LANG']['MSC']['checkoutBT'],\n 'href' => \\Controller::generateFrontendUrl($objJumpToCheckout->row()),\n );\n\n if (\\Input::post('FORM_SUBMIT') == $this->strFormId && \\Input::post('button_checkout') != '') {\n $this->jumpToOrReload($this->iso_checkout_jumpTo);\n }\n }\n }\n\n if ($this->iso_continueShopping && $this->Input->get('continue') != '') {\n $arrButtons['continue'] = array(\n 'type' => 'submit',\n 'name' => 'button_continue',\n 'label' => $GLOBALS['TL_LANG']['MSC']['continueShoppingBT'],\n 'href' => ampersand(base64_decode($this->Input->get('continue', true))),\n );\n\n if (\\Input::post('FORM_SUBMIT') == $this->strFormId && \\Input::post('button_continue') != '') {\n \\Controller::redirect($arrButtons['continue']['href']);\n }\n }\n\n return $arrButtons;\n }", "public function constructArrayButton()\n { \n //- récupération des boutons par défaut\n $arra_bouton=parent::constructArrayButton();\n \n //- suppression des boutons superflus\n unset($arra_bouton['actionNew']);\n \n //- récupération du modèle\n $obj_model=$this->getModel();\n \n //- s'il n'y a pas d'historique de déplacement \n if(!$obj_model->getHasHisto())\n {\n unset($arra_bouton['actionBack']);\n } \n \n return $arra_bouton;\n }", "function learn_press_single_quiz_buttons() {\n\t\tlearn_press_get_template( 'content-quiz/buttons.php' );\n\t}", "public function showEnableInstallToolButtonAction() {}", "public function add_wishlist_button_default() {\n\n\t\t\t$widget_settings = array(\n\t\t\t\t'button_icon_position' => 'left',\n\t\t\t\t'use_button_icon' => false,\n\t\t\t\t'button_icon_normal' => '',\n\t\t\t\t'button_label_normal' => __( 'Add To Wishlist', 'jet-cw' ),\n\t\t\t\t'use_as_remove_button' => false,\n\t\t\t\t'button_icon_added' => '',\n\t\t\t\t'button_label_added' => __( 'View Wishlist', 'jet-cw' ),\n\t\t\t\t'_widget_id' => 'default',\n\t\t\t);\n\n\t\t\tjet_cw()->wishlist_render->render_wishlist_button( $widget_settings );\n\n\t\t}", "function drum_mce_buttons($buttons) {\n\tarray_unshift($buttons, 'styleselect');\n\treturn $buttons;\n}", "function wpshop_register_buttons_editor( $buttons ) {\n array_push(\n $buttons,\n //'col_6',\n //'col_4',\n 'blockquote_warning',\n 'blockquote_info',\n 'blockquote_danger',\n 'blockquote_check',\n 'blockquote_quote',\n 'content_btn',\n 'spoiler_btn',\n 'mark_btn',\n 'mask_link'\n );\n return $buttons;\n}", "protected function addToolbar()\n\t{\t\t\n\t\t// Set toolbar items for the page\n\t\t$edit=JRequest::getVar('edit',true);\n\t\t$text=!$edit ? JText::_('COM_JOOMLEAGUE_GLOBAL_NEW') : JText::_('COM_JOOMLEAGUE_GLOBAL_EDIT');\n\t\tJLToolBarHelper::save('playground.save');\n\t\tif (!$edit)\n\t\t{\n\t\t\tJToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PLAYGROUND_ADD_NEW'),'playground');\n\t\t\tJToolBarHelper::divider();\n\t\t\tJLToolBarHelper::cancel('playground.cancel');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// for existing items the button is renamed `close` and the apply button is showed\n\t\t\tJToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PLAYGROUND_EDIT'),'playground');\n\t\t\tJLToolBarHelper::apply('playground.apply');\n\t\t\tJToolBarHelper::divider();\n\t\t\tJLToolBarHelper::cancel('playground.cancel','COM_JOOMLEAGUE_GLOBAL_CLOSE');\n\t\t}\n\t\tJToolBarHelper::divider();\n\t\tJLToolBarHelper::onlinehelp();\t\n\t}", "function topctr_mce_buttons($buttons) {\n array_unshift($buttons, 'styleselect');\n return $buttons;\n}", "function echotheme_register_shortcode_button($buttons) {\n\tarray_push($buttons, \"|\", \"echotheme_shortcodes_button\");\n\treturn $buttons;\n}", "public function initPageHeaderToolbar()\n {\n if (empty($this->display)){\n $this->page_header_toolbar_btn = array(\n 'new' => array(\n 'href' => self::$currentIndex.'&addwpproductcarousels&token='.$this->token,\n 'desc' => $this->l('Add New Carousel', null, null, false),\n 'icon' => 'process-icon-new'\n ),\n 'options' => array(\n 'href' => $this->context->link->getAdminLink('AdminModules') . '&configure=wpproductcarousels',\n 'desc' => $this->l('Options'),\n 'icon' => 'process-icon-cogs'\n )\n );\n }\n\n parent::initPageHeaderToolbar();\n }", "public static function add(&$buttons = array()) : bool\n\t{\n\t\t$buttons['utility'][] = self::button(\n\t\t\tarray(\n\t\t\t\t'name' => 'filemanager',\n\t\t\t\t'title' => 'file_manager',\n\t\t\t\t'default' => 'File manager',\n\t\t\t\t'id' => 'icon_filemanager',\n\t\t\t\t'icon' => 'folder-open',\n\t\t\t\t'task' => 'fnPluginButtonFileManager'\n\t\t\t)\n\t\t);\n\n\t\treturn true;\n\t}", "public function makeFullyRenderedButton() {}", "public function add_media_buttons() {\n\t\t\t// Make sure to don't output white space between these buttons.\n\t\t\techo '<a href=\"#TB_inline?width=480&height=600&inlineId=wpseo_add_map\" class=\"thickbox button\" id=\"wpseo_add_map_button\"><span class=\"wpseo_media_icon wpseo_icon_map\"></span> ' . esc_html__( 'Map', 'yoast-local-seo' ) . '</a>';\n\n\t\t\techo '<a href=\"#TB_inline?width=480&inlineId=wpseo_add_address\" class=\"thickbox button\" id=\"wpseo_add_address_button\"><span class=\"wpseo_media_icon wpseo_icon_address\"></span> ' . esc_html__( 'Address', 'yoast-local-seo' ) . '</a>';\n\n\t\t\techo '<a href=\"#TB_inline?width=480&inlineId=wpseo_add_opening_hours\" class=\"thickbox button\" id=\"wpseo_add_opening_hours_button\"><span class=\"wpseo_media_icon wpseo_icon_opening_hours\"></span> ' . esc_html__( 'Opening hours', 'yoast-local-seo' ) . '</a>';\n\n\t\t\tif ( wpseo_has_multiple_locations() ) {\n\t\t\t\techo '<a href=\"#TB_inline?width=480&height=510&inlineId=wpseo_add_storelocator\" class=\"thickbox button\" id=\"wpseo_add_storelocator_button\"><span class=\"wpseo_media_icon wpseo_icon_storelocator\"></span> ' . esc_html__( 'Store locator', 'yoast-local-seo' ) . '</a>';\n\t\t\t}\n\t\t}", "function removeButton($index) {\r\n\t\tif(!$index>(count($this->buttons)-1)) {\r\n\t\t\tif($index == \"last\") { $index = $this->buttons[count($this->buttons)-1]; }\r\n\t\t\telseif($index == \"first\") { $index = 0; }\r\n\r\n\t\t\t$i=$index;\r\n\t\t\twhile($i>$index) {\r\n\t\t\t\t$this->buttons[$i]=$this->buttons[$i+1];\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tunset($this->buttons[count($this->buttons)-1]);\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function drawButtonsDefault() {\r\n global $objectClass, $planningType, $showListFilter;\r\n ?>\r\n <table style=\"width:10px\">\r\n <tr>\r\n <?php \r\n if ($planningType=='planning' or $planningType=='resource' or $planningType=='global' or $planningType=='version') {?>\r\n <td colspan=\"1\" width=\"51px\" style=\"<?php if (isNewGui()) echo 'padding-right: 5px;';?>\">\r\n <?php // ================================================================= NEW ?>\r\n <?php if ($planningType=='version') {?><div id =\"addNewActivity\" style=\"visibility:<?php echo ($showListFilter=='true')?'visible':'hidden';?>;\"><?php } ?>\r\n <div dojoType=\"dijit.form.DropDownButton\"\r\n class=\"comboButton\" \r\n id=\"planningNewItem\" jsId=\"planningNewItem\" name=\"planningNewItem\" \r\n showlabel=\"false\" class=\"\" iconClass=\"dijitButtonIcon dijitButtonIconNew\"\r\n title=\"<?php echo i18n('comboNewButton');?>\">\r\n <span>title</span>\r\n <div dojoType=\"dijit.TooltipDialog\" class=\"white\" style=\"width:200px;\"> \r\n <div style=\"font-weight:bold; height:25px;text-align:center\"><?php echo i18n('comboNewButton');?> </div>\r\n <?php \r\n $arrayItems=array('Project','Activity','Milestone','Meeting','PeriodicMeeting','TestSession');\r\n if ($planningType=='resource' or $planningType=='version') $arrayItems=array('Activity');\r\n if ($planningType=='global') $arrayItems=array_merge($arrayItems,array('Ticket','Action','Decision','Delivery','Risk','Issue','Opportunity','Question'));\r\n foreach($arrayItems as $item) {\r\n $canCreate=securityGetAccessRightYesNo('menu' . $item,'create');\r\n if ($canCreate=='YES') {\r\n if (! securityCheckDisplayMenu(null,$item) ) {\r\n $canCreate='NO';\r\n }\r\n }\r\n if ($canCreate=='YES') {?>\r\n <div style=\"vertical-align:top;cursor:pointer;\" class=\"newGuiIconText\"\r\n onClick=\"addNewItem('<?php echo $item;?>');\" >\r\n <table width:\"100%\"><tr style=\"height:22px\" >\r\n <td style=\"vertical-align:top; width: 30px;padding-left:5px\"><?php echo formatIcon($item, 22, null, false);;?></td> \r\n <td style=\"vertical-align:top;padding-top:2px\"><?php echo i18n($item)?></td>\r\n </tr></table> \r\n </div>\r\n <div style=\"height:5px;\"></div>\r\n <?php \r\n } \r\n }?>\r\n </div>\r\n </div>\r\n <?php if ($planningType=='version') {?></div><?php } ?> \r\n </td> \r\n <?php\r\n } \r\n if ($planningType=='global') {?>\r\n <td colspan=\"1\" width=\"51px\" style=\"<?php if (isNewGui()) echo 'padding-right: 5px;';?>\">\r\n <?php drawGlobalItemsSelector();?>\r\n </td> \r\n <?php \r\n } \r\n $activeFilter=false;\r\n if (is_array(getSessionUser()->_arrayFilters)) {\r\n if (array_key_exists('Planning', getSessionUser()->_arrayFilters)) {\r\n if (count(getSessionUser()->_arrayFilters['Planning'])>0) {\r\n \t foreach (getSessionUser()->_arrayFilters['Planning'] as $filter) {\r\n \t\t if (!isset($filter['isDynamic']) or $filter['isDynamic']==\"0\") {\r\n \t\t\t $activeFilter=true;\r\n \t\t }\r\n \t }\r\n }\r\n }\r\n }\r\n ?>\r\n <?php \r\n if ($planningType=='planning' or $planningType=='resource' or $planningType=='version') {?>\r\n <td colspan=\"1\" width=\"55px\" style=\"padding-left:1px\";>\r\n <?php // ================================================================= FILTER ?>\r\n <?php if ($planningType=='version') {?><div id=\"listFilterAdvanced\" style=\"visibility:<?php echo ($showListFilter=='true')?'visible':'hidden';?>;\"><?php }?>\r\n <button title=\"<?php echo i18n('advancedFilter')?>\" \r\n class=\"comboButton\"\r\n dojoType=\"dijit.form.DropDownButton\" \r\n id=\"listFilterFilter\" name=\"listFilterFilter\"\r\n iconClass=\"dijitButtonIcon icon<?php echo($activeFilter)?'Active':'';?>Filter\" showLabel=\"false\">\r\n <?php \r\n if(!isNewGui()){?>\r\n <script type=\"dojo/connect\" event=\"onClick\" args=\"evt\">\r\n showFilterDialog();\r\n </script>\r\n <script type=\"dojo/method\" event=\"onMouseEnter\" args=\"evt\">\r\n clearTimeout(closeFilterListTimeout);\r\n clearTimeout(openFilterListTimeout);\r\n openFilterListTimeout=setTimeout(\"dijit.byId('listFilterFilter').openDropDown();\",popupOpenDelay);\r\n </script>\r\n <script type=\"dojo/method\" event=\"onMouseLeave\" args=\"evt\">\r\n clearTimeout(openFilterListTimeout);\r\n closeFilterListTimeout=setTimeout(\"dijit.byId('listFilterFilter').closeDropDown();\",2000);\r\n </script>\r\n <?php \r\n }?>\r\n <div dojoType=\"dijit.TooltipDialog\" id=\"directFilterList\" style=\"z-index: 999999;<!-- display:none; --> position: absolute;\">\r\n <?php \r\n $objectClass='Planning';\r\n $dontDisplay=true;\r\n if(isNewGui())include \"../tool/displayQuickFilterList.php\";\r\n include \"../tool/displayFilterList.php\";\r\n if(!isNewGui()){?>\r\n <script type=\"dojo/method\" event=\"onMouseEnter\" args=\"evt\">\r\n clearTimeout(closeFilterListTimeout);\r\n clearTimeout(openFilterListTimeout);\r\n </script>\r\n <script type=\"dojo/method\" event=\"onMouseLeave\" args=\"evt\">\r\n dijit.byId('listFilterFilter').closeDropDown();\r\n </script>\r\n <?php \r\n }?>\r\n </div> \r\n </button>\r\n <?php if ($planningType=='version') {?></div><?php }?>\r\n </td>\r\n <?php \r\n }?> \r\n <td colspan=\"1\">\r\n <?php // ================================================================= COLUMNS SELECTOR ?> \r\n <div dojoType=\"dijit.form.DropDownButton\"\r\n id=\"planningColumnSelector\" jsId=\"planningColumnSelector\" name=\"planningColumnSelector\" \r\n showlabel=\"false\" class=\"comboButton\" iconClass=\"dijitButtonIcon dijitButtonIconColumn\" \r\n title=\"<?php echo i18n('columnSelector');?>\">\r\n <span>title</span>\r\n <?php \r\n $screenHeight=getSessionValue('screenHeight','1080');\r\n $columnSelectHeight=intval($screenHeight*0.6);?>\r\n <div dojoType=\"dijit.TooltipDialog\" id=\"planningColumnSelectorDialog\" class=\"white\" style=\"width:300px;\"> \r\n <script type=\"dojo/connect\" event=\"onHide\" data-dojo-args=\"evt\">\r\n if (dndMoveInProgress) { setTimeout('dijit.byId(\"planningColumnSelector\").openDropDown();',1); }\r\n </script>\r\n <div id=\"dndPlanningColumnSelector\" jsId=\"dndPlanningColumnSelector\" dojotype=\"dojo.dnd.Source\" \r\n dndType=\"column\" style=\"overflow-y:auto; max-height:<?php echo $columnSelectHeight;?>px; position:relative\"\r\n withhandles=\"true\" class=\"container\"> \r\n <?php \r\n if ($planningType=='portfolio') $portfolioPlanning=true;\r\n if ($planningType=='contract') $contractGantt=true;\r\n if ($planningType=='version') $versionPlanning=true;\r\n include('../tool/planningColumnSelector.php');?>\r\n </div>\r\n <div style=\"height:5px;\"></div> \r\n <div style=\"text-align: center;\"> \r\n <button title=\"\" dojoType=\"dijit.form.Button\" \r\n id=\"\" name=\"\" showLabel=\"true\"><?php echo i18n('buttonOK');?>\r\n <script type=\"dojo/connect\" event=\"onClick\" args=\"evt\">\r\n validatePlanningColumn();\r\n </script>\r\n </button>\r\n </div> \r\n </div>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n<?php \r\n}", "function my_register_mce_button( $buttons ) {\n\tarray_push( $buttons, 'my_mce_button' );\n\treturn $buttons;\n}", "function my_register_mce_button( $buttons ) {\n\tarray_push( $buttons, 'my_mce_button' );\n\treturn $buttons;\n}" ]
[ "0.73389184", "0.6615263", "0.6614784", "0.63576406", "0.6288947", "0.6274591", "0.6253501", "0.6251194", "0.6133152", "0.6126957", "0.6113874", "0.6075283", "0.5978185", "0.5939329", "0.5921935", "0.5903775", "0.58980894", "0.5860916", "0.58281064", "0.57993114", "0.5794356", "0.57695943", "0.57287836", "0.56891775", "0.56742513", "0.5664694", "0.56525666", "0.56477314", "0.5638287", "0.5637031", "0.56348944", "0.5627834", "0.56271213", "0.56257534", "0.5615075", "0.56016695", "0.56016695", "0.56016695", "0.56016695", "0.56012714", "0.56012714", "0.56012714", "0.56012714", "0.56012714", "0.5600717", "0.5600717", "0.5600717", "0.5600717", "0.5600717", "0.5600717", "0.5600717", "0.5600717", "0.55783176", "0.5564404", "0.555175", "0.5538986", "0.5534649", "0.5534314", "0.5516433", "0.5497035", "0.5492851", "0.5488468", "0.5481969", "0.5477053", "0.5477053", "0.5477053", "0.5475729", "0.5473937", "0.54642487", "0.54405683", "0.5422229", "0.5408376", "0.5407495", "0.53977257", "0.53920996", "0.5389539", "0.53726584", "0.5367712", "0.5366202", "0.5358212", "0.53545374", "0.53168845", "0.53130364", "0.53076965", "0.53019404", "0.5301719", "0.5301128", "0.5289556", "0.52721095", "0.526255", "0.525603", "0.5241653", "0.523456", "0.52329546", "0.5229253", "0.522848", "0.52121735", "0.52039856", "0.5203232", "0.5200915", "0.5200915" ]
0.0
-1
Adds graphical button used to submit form.
public function addImage($name, $src = NULL, $alt = NULL) { return $this[$name] = new ImageButton($src, $alt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function submitButton(){\n\t\t\n\t\t$this->addElement('button', 'bttnsubmit', array (\n\t\t\t\t'class' => 'btn blue ',\n\t\t\t\t'ignore'=>true,\n\t\t\t\t'type'=>'submit',\n \t\t\t\t'label'=>'<i class=\"fa fa-check\"></i> Save',\n\t\t\t\t'escape'=>false\n\t\t));\n\t\t$this->bttnsubmit->setDecorators(array('ViewHelper',array(array('controls' => 'HtmlTag'), array('tag' => 'div', 'class' =>'form-actions text-right'))\t));\n\t\t\n\t}", "function tac_form_submit_button( $button, $form ) {\n\treturn \"<button id='gform_submit_button_{$form['id']}'>Submit form</button>\";\n}", "private function _createSubmitButton()\n {\n $submit = new Zend_Form_Element_Submit('submit');\n $submit->setLabel('saveAction');\n\n return $submit;\n }", "public function submit(){\n return $this->surround('<button type=\"submit\">Envoyer</button>');\n }", "public function buildSubmitButton()\n {\n $this->submitButton->setAttributes($this->submitButtonAttr);\n return $this->submitButton->render($this->submitButtonName);\n }", "function voyage_mikado_comment_form_submit_button() {\n\n $comment_form_button = voyage_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'voyage'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "private function submit()\n {\n $element = new Zend_Form_Element_Submit('submit');\n $element->setLabel('Save')\n ->setAttrib('class', 'reg_input_btn');\n\n return $element;\n }", "function medigroup_mikado_comment_form_submit_button() {\n\n $comment_form_button = medigroup_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'medigroup'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "public static function renderSubmit();", "public function generate_submit_button( $field ) {\n\n\t\tsubmit_button( $field['name'] );\n\t}", "public function getSubmitButton()\n {\n return $this->submitButton;\n }", "function submit_button($text = \\null, $type = 'primary', $name = 'submit', $wrap = \\true, $other_attributes = \\null)\n {\n }", "function form_element_submit( $name, $buttonlabel )\n{\n\treturn sprintf(\"<input type=\\\"submit\\\" name=\\\"%s\\\" value=\\\"%s\\\" />\\n\", $name, $buttonlabel );\n}", "function addSubmitButton($name,$display=null,$value=null, $disabled=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\"type\" => \"submit\", //defines the type of the input\r\n\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\"id\" => $id\r\n\t\t\t);\t\t\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = \"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function renderSubmitButtons() {\n\t\t$output = '';\n\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"display:none;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1000\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->showCancelButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitcancel]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_cancel'])).'\" tabindex=\"1030\" />';\n\t\t}\n\t\tif ($this->currentStep > 1 && $this->showPreviousButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitback]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_back'])).'\" tabindex=\"1020\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->currentStep == count($this->steps) && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitsubmit]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_submit'])).'\" tabindex=\"1000\" />';\n\t\t}\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1010\" />';\n\t\t}\n\t\treturn '<div class=\"tx-frontendformslib-submitbuttons\">'.$output.'</div>';\n\t}", "public function render()\n {\n return view('sendportal::components.submit-button');\n }", "public function render()\n {\n return view('itlogiko::components.submit-button');\n }", "function shortcode_insert_button()\n\t\t{\n\t\t\t$this->config['name']\t\t= __('Job Submit Form', 'avia_framework' );\n\t\t\t$this->config['tab']\t\t= __('Plugin Additions', 'avia_framework' );\n\t\t\t$this->config['icon']\t\t= AviaBuilder::$path['imagesURL'].\"sc-comments.png\";\n\t\t\t$this->config['order']\t\t= 2;\n\t\t\t$this->config['target']\t\t= 'avia-target-insert';\n\t\t\t$this->config['shortcode'] \t= 'av_jobs_submit_form';\n\t\t\t$this->config['tooltip'] \t= __('Display the job submission form for WP Job Manager', 'avia_framework' );\n\t\t\t$this->config['drag-level'] = 3;\n\t\t}", "function get_submit_button($text = '', $type = 'primary large', $name = 'submit', $wrap = \\true, $other_attributes = '')\n {\n }", "public function addElementClicked(SubmitButton $button)\n\t{\n\t\t$button->parent->createOne();\n\t}", "public function addButton(\\SetaPDF_FormFiller_Field_Button $button) {}", "function render_submit_button( $form, $args ) {\n $button_attributes = array();\n\n $button_attributes['class'] = 'acf-button af-submit-button';\n\n $button_attributes = apply_filters( 'af/form/button_attributes', $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/id=' . $form['post_id'], $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/key=' . $form['key'], $button_attributes, $form, $args );\n\n echo '<div class=\"af-submit acf-form-submit\">';\n echo sprintf( '<button type=\"submit\" %s>%s</button>', acf_esc_atts( $button_attributes ), $args['submit_text'] );\n echo '<span class=\"acf-spinner af-spinner\"></span>';\n echo '</div>';\n }", "function protocol_button($element) {\n if (isset($element['#attributes']['class'])) {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'] . ' ' . $element['#attributes']['class'];\n }\n else {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'];\n }\n\n return '<div class=\"button-wrapper-outer\"><div class=\"button-wrapper\"><input type=\"submit\" ' . (empty($element['#name']) ? '' : 'name=\"' . $element['#name'] . '\" ') . 'id=\"' . $element['#id'] . '\" value=\"' . check_plain($element['#value']) . '\" ' . drupal_attributes($element['#attributes']) . \" /></div></div>\\n\";\n}", "function createAccountButton(){\n\t\techo '<form name=\"accounts\" method=\"post\" action=\"CheckBook.php/:Add\">';\n\t\techo '<button type=\"submit\">Add an Account</button>';\n\t\techo '</form>';\n\t}", "function form_button($data = '', $content = '', $extra = '')\n {\n $ci =& get_instance();\n $ci->load->library('user_agent');\n\n $defaults = array('name' => ((! is_array($data)) ? $data : ''), 'type' => 'submit');\n\n if (is_array($data) and isset($data['content'])) {\n $content = $data['content'];\n $data['value'] = $data['content'];\n unset($data['content']); // content is not an attribute\n }\n\n /*\n * if a user has IE 7, we need to show them an input tag instead of a button tag\n * because of the way IE 7 handles submitting multiple buttons (it send the\n * innerHTML instead of the value in the key=>value pair)\n */\n if ($ci->agent->browser() == 'Internet Explorer' && $ci->agent->version() < 8) {\n return \"<input \"._parse_form_attributes($data, $defaults).$extra.\" />\";\n } else {\n return \"<button \"._parse_form_attributes($data, $defaults).$extra.\"><span>\".$content.\"</span></button>\\n\";\n }\n }", "function on_submit_button($button, $form) {\n\t\tif ($form['id'] != $this->form_id) {\n\t\t\treturn $button;\n\t\t}\n\t\treturn '';\n\t}", "public static function submitButton($name,$value='',$option=array()) {\n $option['name']=$name;\n\t\t$option['type']='submit';\n\t\t$option['value']=$value;\n\t return self::htmltag('input',$option);\n }", "public function addSubmitF ($fieldname = 'submit', $value = 'Submit', array $attributes = array ())\n\t{\n\t\tif (is_array($fieldname)) {\n\t\t\t$attributes = $fieldname;\n\t\t} else {\n\t\t\t$attributes['name'] = (string)$fieldname;\n\t\t\t$attributes['value'] = (string)$value;\n\t\t}\n\t\t$attributes['type'] = 'submit';\n\n\t\treturn html_tag('button', $this -> attr_to_string($attributes), $value);\n\t}", "function sexy_submit_tag($value = 'Save changes', $options = array())\n{\n return sexy_button_to_function( $value, \"var form = this; \".\n \"while(null != (form = form.parentNode)) if( form.nodeName == 'FORM') \".\n \"if( (form.onsubmit && form.onsubmit()) || (!(form.onsubmit)) ) form.submit();\",\n $options );\n}", "function form_submit($text = 'Submit', $options = array()) {\n $defaults = array(\n 'wrap' => true,\n 'class' => 'submit'\n );\n\n $options = array_merge($defaults, $options);\n\n $string = '<input type=\"submit\" value=\"' . $text . '\" />';\n\n if($options['wrap']) {\n $string = form__wrap(\n $string,\n array(\n 'label' => false\n )\n );\n }\n\n return html__output($string);\n}", "public static function submit($data) {\n return Html::submitButton($data['label'], ['class' => 'btn '.$data['backgroundcolor'] ]);\n }", "public function submit($options = array())\n {\n $options[\"type\"] = \"submit\";\n return $this->button($this->keys['POST_KEY_SUBMIT'], $options);\n }", "public function addBtnSubmit($text){\n parent::_addBtn(ExtyButton::BUTTON_FILTER_SUBMIT, $text);\n return $this;\n }", "function minorite_button($variables) {\n $element = $variables['element'];\n element_set_attributes($element, array('id', 'name', 'title', 'value'));\n\n if ($element['#type'] == 'submit') {\n $element['#attributes']['type'] = 'submit';\n }\n\n // Adds CSS selector on icon button.\n if (isset($element['#icon'])) {\n $element['#value'] = '<i></i>' . $element['#value'];\n $element['#attributes']['class'][] = $element['#icon'];\n }\n\n return '<button' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</button>';\n}", "function _renderSubmit($element) {\n $elementClasses = \"btn btn-default \" . $element->getAttribute(\"class\", \"\");\n $element->setAttribute(\"class\", $elementClasses);\n $html = $this->render($element->getName());\n return $html;\n }", "function add_action_buttons($cancel=true, $submitlabel=null, $submit2label=null) {\n if (is_null($submitlabel)) {\n $submitlabel = get_string('savechangesanddisplay');\n }\n\n if (is_null($submit2label)) {\n $submit2label = get_string('savechangesandreturntocourse');\n }\n\n $mform =& $this->_form;\n\n // elements in a row need a group\n $buttonarray = array();\n\n if ($submit2label !== false) {\n $buttonarray[] = &$mform->createElement('submit', 'submitbutton2', $submit2label);\n }\n\n if ($submitlabel !== false) {\n $buttonarray[] = &$mform->createElement('submit', 'submitbutton', $submitlabel);\n }\n\n if ($cancel) {\n $buttonarray[] = &$mform->createElement('cancel');\n }\n\n $mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);\n $mform->setType('buttonar', PARAM_RAW);\n $mform->closeHeaderBefore('buttonar');\n }", "protected function createButtonSubmit($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/submit.php'\n );\n $config['label'] = empty($config['label']) ? '' : $config['label'];\n $config['class'] = empty($config['class']) ? '' : $config['class'];\n $v = new \\Arch\\Registry\\View($tmpl, $config);\n return $v;\n }", "public function addSubmit($value, $name = \"\", $attr = array()){\n $field = new Form_Field_Submit($name);\n $field->setDefaultValue($value);\n foreach($attr as $key => $value) $field->attr->add($key, $value);\n $this->buttons[] = $field;\n return $field;\n }", "public function renderSubmit( $label, $key, $attributes = array() )\n {\n $this->renderInput( 'submit', $key . 'Submit', $label, array_merge( array( 'class' => 'form-button' ), $attributes ) );\n }", "function atkButton($text, $url=\"\", $sessionstatus=SESSION_DEFAULT, $embedded=true, $cssclass=\"\")\n{\n\t$page = &atkPage::getInstance();\n\t$page->register_script(atkconfig(\"atkroot\").\"atk/javascript/formsubmit.js\");\n\tstatic $cnt=0;\n\n\tif ($cssclass == \"\")\n\t$cssclass = \"btn\";\n\n\t$cssclass = ' class=\"'.$cssclass.'\"';\n\t$script = 'atkSubmit(\"'.atkurlencode(session_url($url,$sessionstatus)).'\")';\n\t$button = '<input type=\"button\" name=\"atkbtn'.(++$cnt).'\" value=\"'.$text.'\" onClick=\\''.$script.'\\''.$cssclass.'>';\n\n\tif (!$embedded)\n\t{\n\t\t$res = '<form name=\"entryform\">';\n\t\t$res.= session_form();\n\t\t$res.= $button.'</form>';\n\t\treturn $res;\n\t}\n\telse\n\t{\n\t\treturn $button;\n\t}\n}", "public function init(){\n\t\t\n\t\tparent::init();\n\t\t\n\t\t$this->_html .= $this->get_label();\n\t\t\n\t\t$this->_html .= '<input type=\"submit\" ';\n\t\t\n\t\tif(isset($this->_options['id'])){\n\t\t\t$this->_html .= 'id=\"'.$this->_options['id'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['class'])){\n\t\t\t$this->_html .= 'class=\"'.$this->_options['class'].'\" ';\n\t\t}\n\t\t\n\t\tif(isset($this->_options['value'])){\n\t\t\t$this->_html .= 'value=\"'.$this->_options['value'].'\" ';\n\t\t}\t\n\t\t\n\t\tif(isset($this->_options['name'])){\n\t\t\t$this->_html .= 'name=\"'.esc_attr($this->_options['name']).'\" ';\n\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\n\t\t$this->_html .= ' />';\n\t}", "public function add_media_button(){\n\t\tif ( current_user_can( 'vfb_view_entries' ) ) :\n?>\n\t\t\t<a href=\"<?php echo add_query_arg( array( 'action' => 'visual_form_builder_media_button', 'width' => '450' ), admin_url( 'admin-ajax.php' ) ); ?>\" class=\"button add_media thickbox\" title=\"Add Visual Form Builder form\">\n\t\t\t\t<img width=\"18\" height=\"18\" src=\"<?php echo plugins_url( 'visual-form-builder-pro/images/vfb_icon.png' ); ?>\" alt=\"<?php _e( 'Add Visual Form Builder form', 'visual-form-builder-pro' ); ?>\" style=\"vertical-align: middle; margin-left: -8px; margin-top: -2px;\" /> <?php _e( 'Add Form', 'visual-form-builder-pro' ); ?>\n\t\t\t</a>\n<?php\n\t\tendif;\n\t}", "public function addButton($form, $record, $action, $display, $text=false, $active=false, $included=false){\n $button_text = $display;\n $button_name = $form . '-' . $action;\n $if_active = '';\n $disabled = '';\n \n if($active){\n $if_active = \" active\";\n $disabled = ' disabled=\"disabled\"';\n }\n \n // \"included\" for use in tables where the cell name is preprocessed\n if($included == false){\n $button_id = $form.'['.$record.']['. $button_name.']';\n }else{\n $button_id = $record . '['. $button_name.']';\n }\n if ($text){ $button_content = ucwords($display);}\n else {$button_content = '<span class=\"glyphicon '. $display . '\"></span>';}\n if ($text === true){\n $output = '<button type=\"submit\" class=\"btn btn-primary edit-icon btn-xs'. $if_active.'\"';\n } elseif ($text === \"large\"){\n $output = '<button type=\"submit\" class=\"btn btn-primary edit-icon'. $if_active.'\"';\n } else {\n $output = '<button type=\"submit\" class=\"btn btn-primary edit-icon btn-sm'. $if_active.'\"';\n }\n $output.= ' id=\"' . $button_id .'\" name=\"' . $button_name .'\" value=\"';\n $output.= $record .'\"'. $disabled . '>' . $button_content .\"</button>\";\n $this->_buttons[] = $output;\n \n }", "protected function _addButtons()\r\n\t{\r\n\t\t$model = $this->getModel();\r\n\t\t$params\t= $model->getParams();\r\n\t\t$this->showEmail = $params->get('email', 0);\r\n\t\t$this->emailLink = '';\r\n\t\t$this->printLink = '';\r\n\t\t$this->pdfLink = '';\r\n\t\t$this->showPrint = $params->get('print', 0);\r\n\r\n\t\tif ($this->showPrint) {\r\n\t\t\t$text = JHTML::_('image.site', 'printButton.png', '/images/', NULL, NULL, JText::_('Print'));\r\n\t\t\t$this->printLink = '<a href=\"#\" onclick=\"window.print();return false;\">'.$text.'</a>';\r\n\t\t}\r\n\r\n\t\tif (JRequest::getVar('tmpl') != 'component') {\r\n\t\t\tif ($this->showEmail) {\r\n\t\t\t\t$this->emailLink = FabrikHelperHTML::emailIcon($model, $params);\r\n\t\t\t}\r\n\r\n\t\t\tif ($this->showPrint) {\r\n\t\t\t\t$this->printLink = FabrikHelperHTML::printIcon($model, $params, $model->_rowId);\r\n\t\t\t}\r\n\r\n\t\t\t$this->showPDF = $params->get('pdf', 0);\r\n\t\t\tif ($this->showPDF) {\r\n\t\t\t\t$this->pdfLink = FabrikHelperHTML::pdfIcon($model, $params, $model->_rowId);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->showPDF = false;\r\n\t\t}\r\n\t}", "public function __toString() {\n if ( ! isset( $this['value'] ) ) {\n $this['value'] = 'Save';\n }\n\n return\n \"<div class=\\\"form-field field-type-submit\\\">\n <input type=\\\"submit\\\" value=\\\"{$this['value']}\\\" />\n </div>\";\n }", "function reply_button() {\n\t\t\n\t\treturn \" <input type=image name=submit src=\\\"images/reply.jpg\\\" \n\t\twidth=45 height=23 border=0 align=middle>\";\n}", "public function endForm()\r\n {\r\n echo '<div class=\"panel-footer\">\r\n <input type=\"submit\" class=\"btn btn-primary btn-sm\" value=\"Vote\" />\r\n </div>\r\n </form>';\r\n }", "public function add_modal_form() {\n\t\t$current_screen = get_current_screen();\n\t\tif ( ! isset( $current_screen->parent_base ) || $current_screen->parent_base != 'edit' ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine if we should use CMB or generic form callback\n\t\t$callback = $this->form_callback();\n\t\t$cmb_config = $this->get_cmb_config();\n\t\t$is_callable = is_callable( $callback );\n\t\t$is_cmb = ! empty( $cmb_config );\n\n\t\tif ( ! $is_callable && ! $is_cmb ) {\n\t\t\treturn;\n\t\t}\n\n\t\t?>\n\t\t<div class=\"wp-sc-buttons-form\" style=\"display: none; padding: 0 10px 20px;\" id=\"<?php echo esc_attr( $this->button_slug ); ?>-form\" title=\"<?php echo esc_attr( $this->button_data['button_tooltip'] ); ?>\">\n\t\t\t<?php if ( $is_cmb ) {\n\t\t\t\t$this->do_cmb_form();\n\t\t\t} else {\n\t\t\t\techo call_user_func( $callback, $this->button_data, $this->args );\n\t\t\t} ?>\n\t\t</div>\n\t\t<?php\n\t}", "function addButton($label='Continue'){\n if(!is_array($label)){\n $label=array($label, 'icon-r'=>'right-big');\n }\n return $this->add('Button',null,'Button')\n ->set($label);\n }", "public function &draw_add_button($in_tag, $in_value = false)\n {\n $text = \"\";\n $text .= '<TD>';\n $text .= '<input class=\"' . $this->query->getBootstrapStyle('design_ok') . 'reportico-maintain-button reportico-submit\" type=\"submit\" name=\"submit_' . $in_tag . '_ADD\" value=\"' . ReporticoLang::templateXlate(\"ADD\") . '\">';\n $text .= '</TD>';\n\n // Show Import/Link options\n // We allow import and linking to reports for criteria items\n // We import only for main query assignments\n $importtype = false;\n switch ($in_tag) {\n case \"mainquercrit\":$importtype = \"LINKANDIMPORT\";\n break;\n case \"mainquerassg\":$importtype = \"IMPORT\";\n break;\n case \"mainqueroutppghd\":$importtype = \"IMPORT\";\n break;\n case \"mainqueroutppgft\":$importtype = \"IMPORT\";\n break;\n default;\n $importtype = false;\n }\n\n if ($importtype) {\n $text .= $this->draw_report_link_panel($importtype, $in_tag, $in_value, $this->query->reportlink_report);\n }\n\n return $text;\n }", "protected function _setAddButton()\n {\n $this->setChild('add_button',\n $this->getLayout()->createBlock('adminhtml/widget_button')\n ->setData(array('id' => \"add_tax_\" . $this->getElement()->getHtmlId(),\n 'label' => Mage::helper('catalog')->__('Add Tax'),\n 'onclick' => \"weeeTaxControl.addItem('\" . $this->getElement()->getHtmlId() . \"')\",\n 'class' => 'add'\n )));\n }", "function HTMLSubmit ($params) {\n if (!isset($params['name'])) {\n if (isset($params['id'])) {\n $params['name'] = $params['id'];\n }\n }\n $val = $params['value'];\n unset($params['value']);\n $str = '';\n foreach ($params as $k=>$v) {\n $str .= \" {$k}=\\\"{$v}\\\"\";\n }\n return \"<button type='submit' {$str} >{$val}</button>\";\n }", "protected function getSearchButton()\n {\n $out = $this->getFormTool()->createSubmit(\n $this->getSearcherId().'Search',\n $GLOBALS['LANG']->getLL('label_button_update')\n );\n\n return $out;\n }", "public function addSubmitButton(Zend_Form_SubForm $subForm)\r\n {\r\n $subForm->addElement(new Zend_Form_Element_Submit('save',array('label' => 'Save and continue',\r\n 'required' => false,\r\n 'ignore' => true,\r\n )\r\n ));\r\n return $this;\r\n }", "function backend_button($caption, $attributes = array(), $ajaxHandler=null, $ajaxParams = null, $formElement = null)\n\t{\n\t\treturn Backend_Html::button($caption, $attributes, $ajaxHandler, $ajaxParams, $formElement);\n\t}", "public function submitElementClicked(SubmitButton $button)\n\t{\n\t\t$this->medicineManager->saveMedicine($button->getForm()->getValues(true));\n\t\t$this->flashMessage('Liek bol uložený.');\n\t\t$this->redirect('Medicine:list');\n\t}", "public function addButtonSubmit ($name = 'submit', $value = 'Submit', $id = NULL, $class = NULL, $attributes = array ())\n\t{\n\t\t$name = (empty($name) ? '' : ' name=\"' . $name . '\"');\n\t\t$value = (empty($value) ? '' : $value);\n\t\t$id = (empty($id) ? '' : ' id=\"' . $id . '\"');\n\t\t$class = (empty($class) ? '' : ' class=\"' . $class . '\"');\n\n\t\t$html = \"<button type=\\\"submit\\\"\" . $name . $id . $class . \"\";\n\t\tif ($attributes) {\n\t\t\t$html .= $this -> addAttributes($attributes);\n\t\t}\n\t\t$html .= \">\" . $value . \"</button>\";\n\n\t\treturn $html;\n\t}", "function training_modal_form($form, &$form_state) {\n $form = array(\n 'submit_modal' => array(\n '#type' => 'submit',\n '#value' => t('Sample button'),\n ),\n );\n\n return $form;\n}", "private function _addSubmitElement($xml)\n {\n return $xml->addChild('submit');\n }", "public function render()\n {\n return view('components.submit-form', [\n 'buttonName' => $this->buttonName\n ]);\n }", "static function renderSubmitButton($name, $value = null, $attributes = null)\n {\n if (!is_array($attributes)) $attributes = array();\n $attributes['type'] = 'submit';\n $attributes['name'] = $name;\n $attributes['value'] = $value;\n\n self::renderSingleTag('input', $attributes);\n }", "public function addform()\n\t{\n\t\t\t$this->setMethod('post');\n\n\t\t\t\n\t\t\t$this->addElement('radio', 'status', array(\n\t\t\t\t'required' => true,\n\t\t\t\t'multiOptions' => array(\n\t\t\t\t\t'1' => IN_PROGRESS,\n\t\t\t\t\t'2' => 'Closed'\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t\t'value' => '1' //key of multiOption\n\t\t\t));\n\t\t\n\t\t\n\n\t\t\t$this->addElement('textarea', 'Comment', array( \n\t\t\t\t\t'required' => true,\n\t\t\t\t\t'maxlength' =>'50',\n\t\t\t\t\t\n\t\t\t\t\t'class' => 'validate[required] text-input',\n\t\t\t\t\t'decorators'=>Array(\n\t\t\t\t\t\t'ViewHelper','Errors'\n\t\t\t\t\t),\t\t \n\t\t\t));\n\n\t\t\t\n\n\t\t\t\n\n\n\t\n\t\t\t\t\n\t\t\t$this->addElement('submit', 'submit', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t\t\t'label' => 'Submit',\n\t\t\t));\n\t\t\t\n\t\t\t// And finally add some CSRF protection\n\t\t\t$this->addElement('hash', 'csrf', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t));\t\n\t}", "function submitAddStok()\n\t{\n\t\t# code...\n\t}", "protected function Form_Create() {\n\t\t\t// Define the Label\n\t\t\t$this->lblMessage = new QLabel($this);\n\t\t\t$this->lblMessage->Text = 'Click the button to change my message.';\n\n\t\t\t// Define the Button\n\t\t\t$this->btnButton = new QButton($this);\n\t\t\t$this->btnButton->Text = 'Click Me!';\n\n\t\t\t// Add a Click event handler to the button\n\t\t\t$this->btnButton->AddAction(new QClickEvent(), new QServerAction('btnButton_Click'));\n\t\t}", "protected static function getSubmitButtons($args) {\r\n $r = '';\r\n global $indicia_templates;\r\n $r .= '<input type=\"submit\" class=\"' . $indicia_templates['buttonDefaultClass'] . '\" id=\"save-button\" value=\"'.lang::get('Submit').\"\\\" />\\n\";\r\n if (!empty($_GET['location_id'])) {\r\n //Don't display delete if in view only mode\r\n if (empty($_GET['summary_mode']) || $_GET['summary_mode']=='false') {\r\n // use a button here, not input, as Chrome does not post the input value\r\n $r .= '<button type=\"submit\" class=\"' . $indicia_templates['buttonWarningClass'] . '\" id=\"delete-button\" name=\"delete-button\" value=\"delete\" >'.lang::get('Delete').\"</button>\\n\";\r\n data_entry_helper::$javascript .= \"$('#delete-button').click(function(e) {\r\n if (!confirm(\\\"Are you sure you want to delete this location?\\\")) {\r\n e.preventDefault();\r\n return false;\r\n }\r\n });\\n\";\r\n }\r\n }\r\n return $r;\r\n }", "protected function getButtonSubmitHTML($item){\n\n return '<div class=\"col-12\"><button type=\"submit\" class=\"'.$this->styles['button-classes'].'\">'.$item->title->{$this->language}.'</button></div>';\n\n }", "function submit()\n {\n }", "function submit()\n {\n }", "function submit()\n {\n }", "function zen_image_submit($image, $alt = '', $parameters = '', $sec_class = '') {\n global $template, $current_page_base, $zco_notifier;\n if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class, $parameters);\n $zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');\n\n $image_submit = '<input type=\"image\" src=\"' . zen_output_string($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '\" alt=\"' . zen_output_string($alt) . '\"';\n\n if (zen_not_null($alt)) $image_submit .= ' title=\" ' . zen_output_string($alt) . ' \"';\n\n if (zen_not_null($parameters)) $image_submit .= ' ' . $parameters;\n\n $image_submit .= ' />';\n\n return $image_submit;\n }", "public function addsButtons() {}", "public function submitButton($name, $value = '')\n {\n $button = new SubmitButton($this, $value);\n $button->setName($name);\n return $button;\n }", "public function render_submit(\\renderable $page) {\n return $this->render_from_template('mod_cfp/submit', $page->export_for_template($this));\n }", "public function print_form_and_button($url, $buttontext) {\n $html = '';\n\n $attributes = array('method' => 'POST', 'action' => $url);\n\n $html .= html_writer::start_tag('form', $attributes);\n $html .= html_writer::empty_tag('br');\n $html .= html_writer::empty_tag('br');\n $html .= html_writer::start_tag('center');\n\n $params = array('type' => 'submit', 'value' => $buttontext, 'class' => 'submitbtns adaptivequizbtn');\n $html .= html_writer::empty_tag('input', $params);\n $html .= html_writer::end_tag('center');\n $html .= html_writer::end_tag('form');\n\n return $html;\n }", "public function addButton($name, $value, $type = 'submit', $class = null)\n\t{\n\t\t$name = (string) $name;\n\t\t$value = (string) $value;\n\t\t$type = (string) $type;\n\t\t$class = ($class !== null) ? (string) $class : 'inputText inputButton';\n\n\t\t// do a check, only enable this if we use forms that are submitted with javascript\n\t\tif($type == 'submit' && $name == 'submit') throw new FrontendException('You can\\'t add buttons with the name submit. JS freaks out when we replace the buttons with a link and use that link to submit the form.');\n\n\t\t// create and return a button\n\t\treturn parent::addButton($name, $value, $type, $class);\n\t}", "protected function getFormButtons() : array\n {\n $result = parent::getFormButtons();\n\n $result['submit'] = new Submit(\n [\n AButton::PARAM_LABEL => 'Sign up',\n AButton::PARAM_BTN_TYPE => 'btn regular-main-button submit',\n ]\n );\n\n return $result;\n }", "function initialize () {\n $this->set_openingtag ( \"<INPUT TYPE=\\\"submit\\\" value=\\\"\" );\n\t$this->set_closingtag ( \"\\\"[attributes]>\" );\n\t$this->set_type (\"button\");\n }", "protected function getSubmitButtonLabel()\n {\n return $GLOBALS['LANG']->getLL('generalMailForm_sendButton');\n }", "public function BuildEndForm($action) {\n echo \"<INPUT TYPE='hidden' NAME='action' VALUE='$action'>\"; // this is coded in \n echo \"<p class='submit'> <input type='submit' value='Submit' /></p>\"; \n echo \"</fieldset>\"; \n echo \"</FORM>\"; \n }", "function displayCreateButton() {\r\n\t \t\r\n\t \techo \"<a href='create.php' class='btn btn-success'>Create a New Question!!</a><br />\";\r\n\t \t\r\n\t }", "static function pmpro_checkout_default_submit_button($show)\n\t\t{\n\t\t\tglobal $gateway, $pmpro_requirebilling;\n\t\t\t\n\t\t\t//show our submit buttons\n\t\t?>\n\t\t\n\t\t<span id=\"pmpro_fondy_checkout\" <?php if(($gateway != \"fondy\") || !$pmpro_requirebilling) { ?>style=\"display: none;\"<?php } ?>>\n\t\t\t\t<input type=\"hidden\" name=\"submit-checkout\" value=\"1\" />\t\t\n\t\t\t\t<input type=\"submit\" class=\"pmpro_btn pmpro_btn-submit-checkout\" value=\"<?php if($pmpro_requirebilling) { _e('Submit and Check Out', 'pmpro'); } else { _e('Submit and Confirm', 'pmpro');}?> &raquo;\" />\t\n\t\t</span>\n\t\t\t<?php\n\t\t\n\t\t\t//don't show the default\n\t\t\treturn false;\n\t\t}", "public function renderCreateButton()\n {\n return new Tools\\CreateButton($this);\n }", "function krnEmit_button_editSubmit($caption, $value) {\n // used twice in set security\n // submit for editing - so all are consistent - (design choices:Edit button - caption - caption button that looks like link)\n //?????????? if report should not be coded as button ??????????????????????\n //$cellClass = empty($cellClass) ? '' : ' class=\"'.$class.'\"';\n return '<button type=\"submit\" class=\"kcmKrn-button-editLink\" name=\"submit\" value=\"'.$value.'\">' . $caption . '</button>';\n}", "function display_add() {\n $this->_addform->display();\n }", "public function addForm() {\n $this->view->displayForm();\n }", "function dapper_button($variables) {\n $element = $variables['element'];\n\n $element['#attributes']['type'] = 'submit';\n if ($element['#type'] == \"button\") {\n element_set_attributes($element, array('id', 'name', 'title'));\n return '<button' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</button>';\n\n } else {\n element_set_attributes($element, array('id', 'name', 'value'));\n\n $element['#attributes']['class'][] = 'form-' . $element['#button_type'];\n if (!empty($element['#attributes']['disabled'])) {\n $element['#attributes']['class'][] = 'form-button-disabled';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />';\n\n }\n}", "private function createButton() {\n $fv = new filterVars;\n $phpSelf = $fv->phpSelf();\n\t$addButton = \"<A HREF='$phpSelf?action=crf'><button title='Create Row'>Create Row</button></A>\"; \n return $addButton; \n }", "function jabHtmlSubmitButton($caption, $id, $class=\"\", $name=\"\")\n{\n\tif ($name==\"\")\n\t\t$name=$id;\n\tif ($class!=\"\")\n\t\t$class=\" class=\\\"\".$class.\"\\\"\";\n\techo \"<input type=\\\"submit\\\" id=\\\"$id\\\" name=\\\"$name\\\" value=\\\"$caption\\\"/>\\n\";\n}", "public function addform()\n\t{\n \n\t\t$this->setMethod('post');\n\t\t $this->setAttrib('enctype', 'multipart/form-data');\n\n\t\t$this->addElement('file', 'upload_image', array( \n\t\t\t'label' => '',\n 'required' => false\n ));\n\n // Add the submit button\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Submit',\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hash', 'csrf', array(\n 'ignore' => true,\n ));\n\n\n\t}", "function returnbutton()\n\t\t\t{\n\t\t\t\techo \"<body>\";\n\t\t\t\techo \"<form method='post' action='searchstatusform.php'>\";\n\t\t\t\techo \"<br />\";\n\t\t\t\techo \"<center><input type='submit' value='return' /></center>\";\n\t\t\t\techo \"</form>\";\n\t\t\t\techo \"</body>\"; \n\t\t\t}", "public function addSubmit($name, $caption)\n\t{\n\t\treturn $this[$name] = new SubmitButton($caption);\n\t}", "function input_submit($element_name, $label) {\r\n print '<input type=\"submit\" name=\"' . $element_name .'\"id=\"'.$element_name.'\" value=\"';\r\n print htmlentities($label, ENT_NOQUOTES, 'UTF-8') .'\"/>';\r\n}", "function input_submit_account($value) {\n //create submit button of class 'submit_button_holder'\n echo \"<div class=\\\"submit_button_holder\\\">\";\n echo \"<input name=\\\"$value\\\" type=\\\"submit\\\" class=\\\"submit_account\\\" value=\\\"$value\\\">\";\n echo '</div>';\n}", "private function show_connect_button() {\n\t\t?>\n\t\t<div class=\"text-center wp-core-ui rank-math-ui\" style=\"margin-top: 30px;\">\n\t\t\t<button type=\"submit\" class=\"button button-primary button-animated\" name=\"rank_math_activate\"><?php echo esc_attr__( 'Connect Your Account', 'rank-math' ); ?></button>\n\t\t</div>\n\t\t<?php\n\t}", "public function makeInputButton() {}", "public function submit()\n {\n $this->find('css', '.filter-update')->click();\n }", "static function Field_button($sysForm, $fieldId) {\n self::emLine($sysForm->getHtml_Button($fieldId));\n}", "function form_button($buttons = \"\") {\n\t\tif ($this->block == true)\n\t\t\t$buttons = \"fehler\";\n\n\t\t$btn['submit'] = \"<input accesskey='8' value=\\\"OK, Speichern\\\" class=\\\"submitbutton buttons\\\" type=\\\"submit\\\" />\";\n\t\t$btn['reset'] = \"<input accesskey='9' value=\\\"Eingaben l&ouml;schen\\\" class=\\\"resetbutton buttons\\\" type=\\\"reset\\\" />\";\n\t\t$btn['ex'] = \"<input accesskey='7' value=\\\"Beispiel..\\\" type=\\\"button\\\" class=\\\"examplebutton buttons\\\" onClick=\\\"set_examples();\\\" />\";\n\n\t\tswitch ($buttons) {\n\t\t\tdefault :\n\t\t\tcase 'ok_reset' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\tbreak;\n\t\t\tcase 'ex__ok_reset' :\n\t\t\t\t$r = \"<td>\".$btn['ex'].\"</td><td colspan=\\\"2\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\t$this->add_hidden_field(\"hiddenexample\", 0); // for examplebutton\n\t\t\t\t$this->special_form = \"onChange=\\\"document.myform.hiddenexample.value=0\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase 'fehler' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"center\\\" class=\\\"error\\\">Ich konnte notwendige Daten f&uuml;r dieses Formular nicht laden. <br />L&ouml;sung: \".$this->block.\"</td>\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn \"<tr>\".$r.\"</tr>\";\n\t}", "public function submit() {\n\tparent::submit();\n\tif( $this->notify() ) {\n\t echo '<div class=\"alert alert-success\">' . $this->message_form_send . '</div>';\n\t}\n }", "function openlayers_component_form_start_submit($form, &$form_state) {\n $class = new Drupal\\openlayers\\UI\\OpenlayersComponents();\n $class->init($form_state['plugin']);\n $class->edit_form_submit($form, $form_state);\n}", "public function renderSubmit($title = 'Send', array $htmlOptions = array())\n\t{\n\t\tif (!array_key_exists('class', $htmlOptions)) {\n\t\t\t$htmlOptions['class'] = 'btn btn-primary';\n\t\t}\n\t\techo Html::submitButton($title, $htmlOptions);\n\t}" ]
[ "0.82290155", "0.7514475", "0.74319243", "0.7288254", "0.718673", "0.71389425", "0.7090933", "0.70408356", "0.7039002", "0.6978259", "0.68786705", "0.6855424", "0.680552", "0.6783935", "0.6705324", "0.6659817", "0.66512287", "0.6624086", "0.6585579", "0.6559926", "0.65396136", "0.65122074", "0.65114886", "0.6508545", "0.64915514", "0.64064115", "0.6390222", "0.6386389", "0.63753504", "0.63724077", "0.63715106", "0.6368319", "0.6352565", "0.6344491", "0.63315916", "0.6324462", "0.6313798", "0.62900543", "0.625603", "0.62392586", "0.6214888", "0.6198836", "0.61943597", "0.61911285", "0.6174211", "0.61692345", "0.6145768", "0.61448604", "0.61208904", "0.6114035", "0.6102905", "0.61020976", "0.610189", "0.6097095", "0.60960895", "0.60830563", "0.6078638", "0.6073328", "0.6070544", "0.60636246", "0.6062603", "0.6061923", "0.6059862", "0.60574764", "0.60253817", "0.6025041", "0.6018979", "0.6018979", "0.6018979", "0.601254", "0.6011995", "0.59967947", "0.5995814", "0.5992241", "0.5983389", "0.59826523", "0.59773195", "0.5976846", "0.5974938", "0.59746695", "0.5971869", "0.5952655", "0.59489334", "0.59420115", "0.5935336", "0.5930425", "0.5925372", "0.59186196", "0.59149504", "0.5906963", "0.59055626", "0.5904835", "0.5898583", "0.5888109", "0.5871922", "0.587075", "0.5862103", "0.5853436", "0.58528996", "0.58510214", "0.58489203" ]
0.0
-1
Adds naming container to the form.
public function addContainer($name, $label = NULL, $required = FALSE) { $control = new FormContainer; $control->label = $label; //$control->setOption('inline') = TRUE; // vnoreny container if($required) $control->setOption('required', TRUE); //$control->currentGroup = $this->currentGroup; return $this[$name] = $control; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addFormFieldNamesToViewHelperVariableContainer() {}", "protected function addFormObjectNameToViewHelperVariableContainer() {}", "static function add_name(): void {\r\n\t\tself::add_acf_inner_field(self::divisions, self::name, [\r\n\t\t\t'label' => 'Name',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => 'The name of the division.',\r\n\t\t\t'required' => 1,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '30',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t]\r\n\t\t]);\r\n\t}", "protected function addName()\n {\n $this->add(array(\n 'name' => 'name',\n 'required' => true,\n 'validators' => array(\n array(\n 'name' => 'Zend\\Validator\\StringLength',\n 'options' => array(\n 'min' => 4,\n 'max' => 128,\n ),\n ),\n ),\n 'filters' => array(\n array('name' => 'Zend\\Filter\\HtmlEntities'),\n array('name' => 'Zend\\Filter\\StringTrim'),\n array('name' => 'Zend\\Filter\\StripTags'),\n ),\n ));\n \n return $this;\n }", "protected function addNamesLabelsValues() {\n foreach ($this->__fields() as $field) {\n $this->$field->__name = $field;\n if (!$this->$field->label && $this->$field->label !== '') $this->$field->label = strtoupper($field[0]) . substr ($field, 1);\n $this->setFieldValue($field);\n $this->$field->setForm($this);\n }\n }", "public function setFormName($name){\n\t\t$this->_form_name = $name;\t\n\t}", "public function __construct($name = null)\n {\n parent::__construct('serviceform');\n\n $this->add(array(\n 'name' => 'id',\n 'type' => 'Hidden',\n ));\n $this->add(array(\n 'name' => 'name',\n 'type' => 'Text',\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n\n $this->add(array(\n 'name' => 'composition',\n 'type' => 'Text',\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n $this->add(array(\n 'name' => 'description',\n 'type' => 'Text',\n\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n\n $this->add(array(\n 'name' => 'url',\n 'type' => 'Text',\n\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n\n $this->add(array(\n 'name' => 'input',\n 'type' => 'Text',\n\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n\n $this->add(array(\n 'name' => 'output',\n 'type' => 'Text',\n\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n\n $this->add(array(\n 'name' => 'categories',\n 'type' => 'Text',\n\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n\n $this->add(array(\n 'name' => 'submit',\n 'type' => 'Submit',\n 'attributes' => array(\n 'value' => 'Create',\n 'id' => 'submit',\n 'class' => 'btn btn-success',\n ),\n ));\n $this->setAttribute('class','form-horizontal');\n\n }", "public function getName()\n {\n return 'form';\n }", "public function addToFormContainer(Nette\\Forms\\Container $container)\n\t{\n\t\t$container = $container->addContainer($this->key);\n\n\t\t$container->addText('from', $this->name);\n\n\t\t$container->addText('to', $this->name_second);\n\n\t\t$this->addAttributes($container['from']);\n\t\t$this->addAttributes($container['to']);\n\n\t\tif ($placeholder_array = $this->getPlaceholder()) {\n\t\t\t$text_from = reset($placeholder_array);\n\n\t\t\tif ($text_from) {\n\t\t\t\t$container['from']->setAttribute('placeholder', $text_from);\n\t\t\t}\n\n\t\t\t$text_to = end($placeholder_array);\n\n\t\t\tif ($text_to && ($text_to != $text_from)) {\n\t\t\t\t$container['to']->setAttribute('placeholder', $text_to);\n\t\t\t}\n\t\t}\n\t}", "public function getName()\n {\n return 'category_form';\n }", "public function addForm()\n {\n $this->getState()->template = 'displaygroup-form-add';\n $this->getState()->setData([\n 'help' => $this->getHelp()->link('DisplayGroup', 'Add')\n ]);\n }", "public function getName()\n {\n return 'snide_extra_form';\n }", "public function getName() {\n return 'form';\n }", "protected function removeFormFieldNamesFromViewHelperVariableContainer() {}", "public function getName() {\n return 'form_parking_add';\n }", "public function addMetaFieldsToAddForm()\n\t{\n\t\t$interval = $this->getMetaFields('interval');\n\t\t$animation = $this->getMetaFields('animation');\n\n\t\t?>\n\t\t\t<div class=\"form-field\">\n\t\t\t\t<label for=\"interval\">Tijd tussen slides</label>\n\t\t\t\t<input name=\"interval\" id=\"interval\" type=\"text\" value=\"<?php echo $interval;?>\" size=\"40\">\n\t\t\t\t<p class=\"description\">De tijd tussen slides in milliseconden (1000ms = 1s).</p>\n\t\t\t</div>\n\t\t\t<div class=\"form-field\">\n\t\t\t\t<label for=\"animation\">Animatie</label>\n\t\t\t\t<select name=\"animation\" id=\"animation\">\n\t\t\t\t\t<option <?php selected($animation, 'slide'); ?> value=\"slide\">Slide</option>\n\t\t\t\t\t<option <?php selected($animation, 'fade'); ?> value=\"fade\">Fade</option>\n\t\t\t\t</select>\n\t\t\t\t<p class=\"description\">Selecteer de animatie die gebruikt wordt door de slideshow.</p>\n\t\t\t</div>\n\t\t<?php\n\t}", "private function _createContainerForms() {\n $forms = [\n [\n 'name' => 'inline',\n 'classname' => 'App\\Models\\Backoffice\\ContainerForms\\Inline'\n ],\n [\n 'name' => 'popup',\n 'classname' => 'App\\Models\\Backoffice\\ContainerForms\\Popup'\n ]\n ];\n\n foreach ($forms as $form) {\n $newForm = new ContainerForm;\n $newForm->fill($form);\n $newForm->save();\n }\n }", "public function set_formname($name) {\n $this->form_name=$name;\n }", "protected function addFieldNamePrefixToViewHelperVariableContainer() {}", "abstract protected function getFormName();", "public function getName()\n {\n return 'content_form';\n }", "public function addControl($name)\n {\n return $this->qform->addControl($name);\n }", "protected function defineNameId(){\n list($name,$id)=$this->resolveNameID();\n $this->_id=$this->htmlOptions['id']=$id;\n\t\t$this->_name=$this->htmlOptions['name']=$name;\n }", "protected function addFormObjectToViewHelperVariableContainer() {}", "private function AddNameField()\n {\n $name = 'Name';\n $this->AddField(Input::Text($name, $this->user->GetName()));\n $this->SetRequired($name);\n $this->AddValidator($name, DatabaseCount::UniqueField($this->user, 'Name'));\n }", "protected function removeFormObjectNameFromViewHelperVariableContainer() {}", "protected function getFormObjectName() {}", "public function setNameAdd($name = NULL ){\n\t\t$this->nameAddNew = $name ? $name : \"Adicionar \".$this->name;\n\t}", "public function name() {\n\t\treturn __( 'Option Container', 'thrive-cb' );\n\t}", "function addForm()\n {\n $content = '';\n $template['job_bank_add'] = $this->cObj->getSubpart($this->__getTemplateCode(),\"###ADD_JOB_PLACEHOLDER###\"); \n\n $subPartArray['###CAREERLEVEL###'] = $this->createDropDown($this->job_careerlevel);\n $subPartArray['###FORMNAMEEXTENSIONJOB###'] = $this->prefixId;\n $subPartArray['###FORMNAMEEXTENSION###'] = $this->prefixId;\n $subPartArray[\"###HELP_IMAGE###\"] = t3lib_extMgm::siteRelPath($this->extKey).'images/help.gif';\n $subPartArray['###JOB_BANK_LOCATION###'] = $this->getCountryZone();\n $subPartArray['###QUALIFICATION###'] = $this->createDropDown($this->job_qualifiacation);\n $subPartArray['###SCRIPTNAME_POPUP_HELP_JS###'] = t3lib_extMgm::siteRelPath($this->extKey).'styles/overlib.js';\n $subPartArray[\"###SPONSOR_ID###\"] = $this->sponsorId;\n $subPartArray['###STATUS###'] = $this->createDropDown($this->job_status);\n\n $content .= $this->cObj->substituteMarkerArrayCached($template['job_bank_add'],$subPartArray,array(),array());\n \n return $this->pi_wrapInBaseClass($content);\n\n }", "private function createFormDefinition()\n {\n $id = $this->getServiceId('form_type');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('form'));\n $definition\n ->setArguments([$this->options['entity']])\n ->addTag('form.type', [\n 'alias' => sprintf('%s_%s', $this->prefix, $this->resourceName)]\n )\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "private function addElements(): void\n {\n // Add additional form fields\n $this->add([\n 'name' => 'masterFile',\n 'type' => Checkbox::class,\n 'attributes' => [\n 'id' => 'masterFile',\n 'class' => 'form-check-input',\n ],\n 'options' => [\n 'label' => 'Create master export file',\n 'label_attributes' => [\n 'class' => 'form-check-label',\n ],\n ],\n ]);\n\n $this->add([\n 'name' => 'debugTranslations',\n 'type' => Checkbox::class,\n 'attributes' => [\n 'id' => 'debugTranslations',\n 'class' => 'form-check-input',\n ],\n 'options' => [\n 'label' => 'Create debug translations',\n 'label_attributes' => [\n 'class' => 'form-check-label',\n ],\n ],\n ]);\n }", "public function addElements()\n {\n $this->add(array(\n 'name' => 'place',\n 'type' => 'Zend\\Form\\Element\\Text',\n 'attributes' => array(\n 'required' => true,\n 'id' => 'name',\n 'class' => 'form-control',\n 'placeholder' => 'Enter type name'\n ),\n 'options' => array(\n 'label' => 'Name',\n 'label_attributes' => array(\n 'class' => 'control-label'\n ),\n\n ),\n ));\n }", "public function container(string $name);", "public function getName()\n {\n return \"event_form\";\n }", "public function buildForm()\n {\n $this\n ->add(\n 'new_organization_group',\n 'collection',\n [\n 'type' => 'form',\n 'options' => [\n 'class' => 'App\\SuperAdmin\\Forms\\OrganizationGroupInformation',\n 'label' => false,\n ]\n ]\n )\n ->add(\n 'group_admin_information',\n 'collection',\n [\n 'type' => 'form',\n 'options' => [\n 'class' => 'App\\SuperAdmin\\Forms\\GroupAdmin',\n 'label' => false,\n ]\n ]\n )\n ->addSaveButton();\n }", "public function addform()\n\t{\n \n\t\t$this->setMethod('post');\n\t\t $this->setAttrib('enctype', 'multipart/form-data');\n\n\t\t$this->addElement('file', 'upload_image', array( \n\t\t\t'label' => '',\n 'required' => false\n ));\n\n // Add the submit button\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Submit',\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hash', 'csrf', array(\n 'ignore' => true,\n ));\n\n\n\t}", "function ZervWizard(&$container, $name)\r\n {\r\n if (!is_array($container)) {\r\n $this->addError('container', 'Container not valid');\r\n return;\r\n }\r\n\r\n $containerKey = $this->_containerPrefix . $name;\r\n if (!array_key_exists($containerKey, $container))\r\n $container[$containerKey] = array();\r\n\r\n $this->container = &$container[$containerKey];\r\n\r\n if (!array_key_exists('_errors', $this->container))\r\n $this->container['_errors'] = array();\r\n $this->_errors = &$this->container['_errors'];\r\n }", "protected function addElements() \n {\n \n // Add \"usuario\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'nombre',\n 'options' => [\n 'label' => 'Usuario Adicional',\n ],\n ]);\n \n \n // Add \"telefono\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'telefono',\n 'options' => [\n 'label' => 'Teléfono',\n ],\n ]);\n \n // Add \"email\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'email',\n 'options' => [\n 'label' => 'Mail',\n ],\n ]);\n \n // Add \"usuario\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'skype',\n 'options' => [\n 'label' => 'Skype',\n ],\n ]);\n \n // Add \"id\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'id',\n 'options' => [\n 'label' => 'id',\n ],\n ]);\n \n \n // Add the Submit button\n $this->add([\n 'type' => 'submit',\n 'name' => 'submit',\n 'attributes' => [\n 'value' => 'Create'\n ],\n ]);\n\n }", "function scfnode_form_add_association(&$form_state, $nid, $name) {\n $form = array();\n /*$form['cancel'] = array(\n '#type' => 'image_button',\n '#src' => drupal_get_path('module', 'scf') . '/images/icon-x.gif',\n '#attributes' => array(\n 'onclick' => \"$('#association-addtermdiv-\" . $name . \"').slideUp('slow');return false;\"\n ),\n '#executes_submit_callback' => FALSE,\n '#title' => 'Close'\n );*/\n \n /*$form['caption'] = array(\n '#type' => 'markup',\n '#value' => t('Add new term:')\n );*/\n \n $form['textfield'] = array(\n '#type' => 'textfield',\n '#autocomplete_path' => $name . '/autocomplete/title',\n '#size' => 20,\n '#id' => 'association-' . $name . '-text',\n '#name' => 'textfield',\n );\n $form['add'] = array(\n '#type' => 'button',\n '#value' => t('Add'),\n '#ahah' => array(\n 'path' => 'association/ajax/add/' . $nid . '/' . $name . '/',\n 'wrapper' => 'association-list-' . $name,\n 'event' => 'click',\n 'effect' => 'slide',\n 'method' => 'append',\n 'progress' => 'none',\n ),\n '#executes_submit_callback' => FALSE\n );\n \n $form['nid'] = array(\n '#type' => 'value',\n '#value' => $nid\n );\n return $form;\n }", "public function getAddForm();", "public function Populate() {\r\n\t\t$form_instance = $this->form_instance;\r\n\t\t// Retrieve the field data\r\n\t\t$_els = vcff_parse_container_data($form_instance->form_content);\r\n\t\t// If an error has been detected, return out\r\n\t\tif (!$_els || !is_array($_els)) { return; }\r\n\t\t// Retrieve the form instance\r\n\t\t$form_instance = $this->form_instance; \r\n\t\t// Loop through each of the containers\r\n\t\tforeach ($_els as $k => $_el) {\r\n\t\t\t// Retrieve the container instance\r\n\t\t\t$container_instance = $this->_Get_Container_Instance($_el);\r\n\t\t\t// Add the container to the form instance\r\n\t\t\t$form_instance->Add_Container($container_instance);\r\n\t\t}\r\n\t}", "public function addform()\n\t{\n\t\t\t$this->setMethod('post');\n\n\t\t\t\n\t\t\t$this->addElement('radio', 'status', array(\n\t\t\t\t'required' => true,\n\t\t\t\t'multiOptions' => array(\n\t\t\t\t\t'1' => IN_PROGRESS,\n\t\t\t\t\t'2' => 'Closed'\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t\t'value' => '1' //key of multiOption\n\t\t\t));\n\t\t\n\t\t\n\n\t\t\t$this->addElement('textarea', 'Comment', array( \n\t\t\t\t\t'required' => true,\n\t\t\t\t\t'maxlength' =>'50',\n\t\t\t\t\t\n\t\t\t\t\t'class' => 'validate[required] text-input',\n\t\t\t\t\t'decorators'=>Array(\n\t\t\t\t\t\t'ViewHelper','Errors'\n\t\t\t\t\t),\t\t \n\t\t\t));\n\n\t\t\t\n\n\t\t\t\n\n\n\t\n\t\t\t\t\n\t\t\t$this->addElement('submit', 'submit', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t\t\t'label' => 'Submit',\n\t\t\t));\n\t\t\t\n\t\t\t// And finally add some CSRF protection\n\t\t\t$this->addElement('hash', 'csrf', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t));\t\n\t}", "public function init()\n {\n\n $this->setMethod('post');\n\n // Add the name element\n $this->addElement('text','name', array(\n 'label' => 'Sub-Section Name'\n , 'size' => 50\n , 'required' => true\n , 'filters' => array('StringTrim')\n ));\n\n My_Plugin_Form::setDefaultLayout($this->getElement('name'));\n\n // Add the submit button\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Save Changes',\n 'disableLoadDefaultDecorators' => true,\n ));\n\n $label = $this->getElement('submit');\n $label->addDecorators(array(\n array('ViewHelper'),\n array('HtmlTag')\n ));\n\n // Add a hidden field to handle the application id\n $this->addElement('hidden','application_id');\n\n // Add a hidden field to handle the sub-section id\n $this->addElement('hidden','id');\n\n // And finally, add some CSRF protection\n $this->addElement('hash','csrf', array(\n 'ignore' => 'true',\n ));\n\n }", "public function getFormName();", "public function getFormName();", "public function insertFormLabel()\r\n {\r\n\r\n $formfield = new FormFields();\r\n $formfield->setName('name');\r\n $formfield->setLabel('name');\r\n $formfield1 = new FormFields();\r\n $formfield1->setName('surname');\r\n $formfield1->setLabel('surname');\r\n $formfield2 = new FormFields();\r\n $formfield2->setName('email');\r\n $formfield2->setLabel('email');\r\n $formfield3 = new FormFields();\r\n $formfield3->setName('telephone');\r\n $formfield3->setLabel('telephone');\r\n\r\n $this->entityManage->persist($formfield);\r\n $this->entityManage->persist($formfield1);\r\n $this->entityManage->persist($formfield2);\r\n $this->entityManage->persist($formfield3);\r\n $this->entityManage->flush();\r\n\r\n }", "public function renderAdd()\r\n\t{\r\n\t\t$this['tarifForm']['save']->caption = 'Přidat';\r\n\t}", "protected function getNameFormFileIn()\n {\n $formName = str_replace(' ', '', ucwords(str_replace('-', ' ', $this->owner->id)));\n return \"Form\" . $formName . ucfirst($this->owner->action->actionMethod) . 'In';\n }", "public function name($name) {\n\t\t$this->options['name'] = $name;\n\t\t//$this->data['name'] = $name;\n\t\treturn $this;\n\t}", "protected function addNameToView($view) {\n // Pokud je name nastaveno ve form data, vezme se z nich\n $view->name = arr::get($this->form_data, 'name', '');\n\n //Pokud je name stale prazdne, zkusime ho nacit z modelu pomoci preview()\n //select ocekavam na atributu, ktery odpovida nazvu ciziho klice - tedy\n //[object]id\n $relobject = $this->virtual\n ? $this->config['relobject']\n : substr($this->attr, 0, -2);\n\n //pokud ma byt umozneno pridat relacni zaznam v ramci tohoto form. prvku\n //tak se zobrazi tlacitko pro to\n $view->new = arr::get($this->config, 'new', '');\n $view->new_label = arr::get($this->config, 'new_label', __($relobject.'.new_'.$relobject));\n\n //nazvy atributu musi vzdy jit pres metodu itemAttr rodicovske tridy Form\n $view->name_attr = $this->form->itemAttr($this->attr.'[name]');\n $view->value_attr = $this->form->itemAttr($this->attr.'[value]');\n\n // Pokud je specifikovano preview pro tento formItem, pouzijeme ho\n $preview = arr::get($this->config, 'preview', '');\n // A prelozime ho, jinak se pouzije defaultni preview modelu - viz ORM::preview()\n $preview = $preview != '' ? __($preview) : NULL;\n\n if ($this->virtual)\n {\n $relobject = ORM::factory($relobject, arr::get($this->form_data, 'value'));\n\n $view->name = $relobject->preview();\n }\n else\n {\n if ($this->model->{$relobject}->loaded())\n {\n $view->name = $this->model->{$relobject}->preview($preview);\n }\n //pokud neni relacni zaznam podle hodnoty PK nalezen, tak uz neexistuje\n //a do prvku se musi propsat prazdna hodnota\n else\n {\n $view->name = $view->value = NULL;\n }\n }\n\n // Pokud je name stale prazdne, vlozime watermark, pokud je specifikovan\n if (empty($view->name) and ($watermark = arr::get($this->config, 'watermark', '')) != '') {\n $view->name = $watermark;\n $view->watermark = TRUE; // rika ze se ma inputu pridat class watermark\n }\n $view->input_class = arr::get($this->config, 'input_class', 'input-block-level');\n }", "public function buildForm()\n {\n $this\n ->addNarrative('location_description_narrative')\n ->addAddMoreButton('add', 'location_description_narrative');\n }", "function SelectBox($name)\n {\n $this -> name = $name;\n }", "public function addForm() {\n $this->view->displayForm();\n }", "public function __construct($_name)\n { \n\t\t$this->widget_name = $_name;\n }", "public function __construct($name = null) {\n parent::__construct('Events');\n $this->setAttribute('method', 'post');\n \t\n\t\t$this->add(array(\n 'name' => 'id',\n 'type' => 'Hidden',\n ));\n\n $this->add(array(\n 'name' => 'event_name',\n 'attributes' => array(\n 'type' => 'text',\n 'class' => 'form-control',\n 'id'=>'event_name'\n ),\n 'options' => array(\n 'label' => 'Event Title',\n ),\n ));\n\n $this->add(array(\n 'name' => 'sponser_name',\n 'attributes' => array(\n 'type' => 'text',\n 'class' => 'form-control',\n 'id'=>'sponser_name'\n ),\n 'options' => array(\n 'label' => 'Sponser Name',\n ),\n ));\n\n $this->add(array(\n 'name' => 'sponser_contact',\n 'attributes' => array(\n 'type' => 'number',\n 'class' => 'form-control',\n 'id'=>'sponser_contact'\n ),\n 'options' => array(\n 'label' => 'Sponser Contact',\n ),\n ));\n\n $this->add(array(\n 'name' => 'event_organiser',\n 'attributes' => array(\n 'type' => 'text',\n 'class' => 'form-control',\n 'id'=>'event_organiser'\n ),\n 'options' => array(\n 'label' => 'Organiser Name',\n ),\n ));\n\n $this->add(array(\n 'name' => 'organiser_contact',\n 'attributes' => array(\n 'type' => 'number',\n 'class' => 'form-control',\n 'id'=>'organiser_contact'\n ),\n 'options' => array(\n 'label' => 'Organiser Contact',\n ),\n ));\n\n\n $this->add(array(\n 'name' => 'sponser_photo',\n 'attributes' => array(\n 'type' => 'file',\n 'class' => 'thisnot',\n 'id'=>'sponser_photo'\n ),\n 'options' => array(\n 'label' => 'Sponser Photo',\n ),\n ));\n\n $this->add(array(\n 'name' => 'organiser_photo',\n 'attributes' => array(\n 'type' => 'file',\n 'class' => 'thisnot',\n 'id'=>'organiser_photo'\n ),\n 'options' => array(\n 'label' => 'Organiser Photo',\n ),\n ));\n\n $this->add(array(\n 'type' => 'Hidden',\n 'name' => 'event_desc',\n 'attributes' => array(\n 'class' => 'form-control',\n 'id'=>'event_desc'\n ),\n 'options' => array(\n 'label' => 'Event Description',\n )\n ));\n\n $this->add(array(\n 'name' => 'image',\n 'attributes' => array(\n 'type' => 'file',\n 'class' => 'form-control',\n 'id'=>'image'\n ),\n 'options' => array(\n 'label' => 'Upload Event Image',\n ),\n ));\n\n \n $this->add(array(\n 'type' => 'Zend\\Form\\Element\\Select',\n 'name' => 'country_id',\n 'attributes' => array(\n 'class' => 'form-control',\n 'id'=>'country_id'\n ),\n 'options' => array(\n 'label' => 'Country Name',\n 'empty_option' => 'Please Select Country Name',\n 'value_options' => self::$country_nameList,\n )\n ));\n\n $this->add(array(\n 'type' => 'Zend\\Form\\Element\\Select',\n 'name' => 'state_id',\n 'attributes' => array(\n 'class' => 'form-control',\n 'id'=>'state_id'\n ),\n 'options' => array(\n 'label' => 'State Name',\n 'empty_option' => 'Please Select State Name',\n 'value_options' => self::$state_nameList,\n )\n ));\n\n $this->add(array(\n 'type' => 'Zend\\Form\\Element\\Select',\n 'name' => 'city_id',\n 'attributes' => array(\n 'class' => 'form-control',\n 'id'=>'city_id'\n ),\n 'options' => array(\n 'label' => 'City Name',\n 'empty_option' => 'Please Select City Name',\n 'value_options' => self::$city_nameList,\n )\n ));\n\n\n $this->add(array(\n 'name' => 'venue',\n 'attributes' => array(\n 'type' => 'textarea',\n 'class' => 'form-control',\n 'id'=>'venue'\n ),\n 'options' => array(\n 'label' => 'venue',\n ),\n ));\n\n $this->add(array(\n 'name' => 'event_date',\n 'attributes' => array(\n 'type' => 'text',\n 'class' => 'form-control',\n 'id'=>'event_date'\n ),\n 'options' => array(\n 'label' => 'Start Date',\n ),\n ));\n\n $this->add(array(\n 'name' => 'end_date',\n 'attributes' => array(\n 'type' => 'text',\n 'class' => 'form-control',\n 'id'=>'end_date'\n ),\n 'options' => array(\n 'label' => 'End Date',\n ),\n ));\n\n $this->add(array(\n 'name' => 'start_time',\n 'attributes' => array(\n 'type' => 'time',\n 'class' => 'form-control timepicker',\n 'id'=>'start_time'\n ),\n 'options' => array(\n 'label' => 'Start Time',\n ),\n ));\n\n $this->add(array(\n 'name' => 'end_time',\n 'attributes' => array(\n 'type' => 'time',\n 'class' => 'form-control timepicker',\n 'id'=>'end_time'\n ),\n 'options' => array(\n 'label' => 'End Time',\n ),\n ));\n\n\n $this->add(array(\n 'name' => 'event_cost',\n 'attributes' => array(\n 'type' => 'number',\n 'class' => 'form-control',\n 'id'=>'event_cost'\n ),\n 'options' => array(\n 'label' => 'Event Cost',\n ),\n ));\n $this->add(array(\n 'name' => 'event_members',\n 'attributes' => array(\n 'type' => 'number',\n 'class' => 'form-control',\n 'id'=>'event_members'\n ),\n 'options' => array(\n 'label' => 'Event Members',\n ),\n ));\n\n $this->add(array(\n 'type' => 'Zend\\Form\\Element\\Select',\n 'name' => 'IsActive',\n 'attributes' => array(\n 'class' => 'form-control',\n 'id'=>'IsActive'\n ),\n 'options' => array(\n 'label' => 'Status',\n 'empty_option' => 'Please Select Status',\n 'value_options' => array(\n '1'=>'Active',\n '0'=>'In Active'),\n )\n ));\n\n\t\t$this->add(array(\n 'name' => 'submit',\n 'attributes' => array(\n 'type' => 'submit',\n 'value' => 'Contact Us',\n 'id' => 'submit',\n 'class' => 'btn btn-default'\n ),\n )); \n \n }", "public function onAddField()\n {\n return $this->makePartial('create_field_form');\n }", "function ajax_example_add_more_add_one($form, &$form_state) {\n $form_state['num_names']++;\n $form_state['rebuild'] = TRUE;\n}", "static function add_eb_w_name(): void {\r\n\t\tself::add_acf_inner_field(self::eb_ws, self::eb_w_name, [\r\n\t\t\t'label' => 'Winning candidate',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => 'Enter a name.',\r\n\t\t\t'required' => 1,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t]);\r\n\t}", "public function buildForm()\n {\n $this\n ->addMeasureList()\n ->addAscendingList()\n ->addTitles(['class' => 'indicator_title_title_narrative', 'narrative_true' => true])\n ->addDescriptions(['class' => 'indicator_description_title_narrative'])\n ->addCollection('reference', 'Activity\\Reference', 'reference', [], trans('elementForm.reference'))\n ->addAddMoreButton('add_reference', 'reference')\n ->addBaselines()\n ->addPeriods()\n ->addAddMoreButton('add_period', 'period')\n ->addRemoveThisButton('remove_indicator');\n }", "public function appendControl($name, $template);", "public function __construct($name = null)\n {\n parent::__construct('movies');\n\n $this->add([\n 'name' => 'id',\n 'type' => 'hidden',\n ]);\n // name\n $this->add([\n 'name' => 'name',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Name',\n ],\n ]);\n // image\n $this->add([\n 'name' => 'image',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Image',\n ],\n ]);\n // summary\n $this->add([\n 'name' => 'summary',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Summary',\n ],\n ]);\n // title\n $this->add([\n 'name' => 'title',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Title',\n ],\n ]);\n // link\n $this->add([\n 'name' => 'link',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Link',\n ],\n ]);\n // artist\n $this->add([\n 'name' => 'artist',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Artist',\n ],\n ]);\n // category\n $this->add([\n 'name' => 'category',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Category',\n ],\n ]);\n // date\n $this->add([\n 'name' => 'date',\n 'type' => 'text', \n 'options' => [\n 'label' => 'Date',\n ],\n ]);\n // duree\n $this->add([\n 'name' => 'duree',\n 'type' => 'text',\n 'options' => [\n 'label' => 'duree',\n ],\n ]);\n // submit\n $this->add([\n 'name' => 'submit',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n \n \n }", "private function StartForm(){\r\n\t\t\t$this->formHTML .= \"<form method=\\\"{$this->method}\\\" action=\\\"{$this->action}\\\"\";\r\n\t\t\tif($this->enctype){\r\n\t\t\t\t$this->formHTML .= \" enctype=\\\"{$this->enctype}\\\"\";\r\n\t\t\t}\r\n\t\t\t$this->formHTML .= \" name=\\\"{$this->formName}\\\" class=\\\"c{$this->formName}\\\" id=\\\"i{$this->formName}\\\"\";\r\n\t\t\t$this->formHTML .= \">\";\r\n\t\t}", "public function __construct($name = null) {\n parent::__construct('about');\n\n $this->add(array(\n 'name' => 'id',\n 'type' => 'Hidden',\n ));\n $this->add(array(\n 'name' => 'name',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Наименование предприятия',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'id' => 'name',\n 'placeholder' => 'Наименование предприятия',\n ),\n ));\n \n $this->add(array(\n 'name' => 'tel',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Телефон',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Контактный номер телефона',\n ),\n ));\n \n $this->add(array(\n 'name' => 'address',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Адрес',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Адрес',\n ),\n ));\n \n $this->add(array(\n 'name' => 'current_account',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'РАСЧЕТНЫЙ СЧЕТ',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'РАСЧЕТНЫЙ СЧЕТ',\n ),\n ));\n \n $this->add(array(\n 'name' => 'unp',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'УНП',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'УНП',\n ),\n ));\n $this->add(array(\n 'name' => 'bank_info',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Информация о банке',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Информация о банке',\n ),\n ));\n \n $this->add(array(\n 'name' => 'okpo',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'ОКПО',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'ОКПО',\n ),\n ));\n \n $this->add(array(\n 'name' => 'director',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Директор',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'ФИО',\n ),\n ));\n \n $this->add(array(\n 'name' => 'email',\n 'type' => 'Email',\n 'options' => array(\n 'label' => 'Email',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'Электронный адрес',\n ),\n ));\n \n $this->add(array(\n 'name' => 'description',\n 'type' => 'Zend\\Form\\Element\\Textarea',\n 'options' => array(\n 'label' => 'О предприятии',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n 'placeholder' => 'О предприятии',\n ),\n ));\n \n $this->add(array(\n 'name' => 'submit',\n 'type' => 'Submit',\n 'attributes' => array(\n 'value' => 'Сохранить',\n 'id' => 'submitbutton',\n ),\n 'attributes' => array(\n 'class' => 'btn btn-danger',\n ),\n ));\n }", "protected function addElements() \n { \n // Add \"nom\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'nom_parent',\n 'attributes' => [\n 'id' => 'nom_parent',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'Nom de famille:',\n ],\n ]);\n \n // Add \"prenom\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'prenom_parent',\n 'attributes' => [\n 'id' => 'prenom_parent',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'Prénom parent:',\n ],\n ]);\n \n // Add \"domicile\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'domicile',\n 'attributes' => [\n 'id' => 'domicile',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'Domicile:',\n ],\n ]);\n \n // Add \"telephone_number\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'telephone1',\n 'attributes' => [\n 'id' => 'telephone1'\n ],\n 'options' => [\n 'label' => 'Téléphone 1',\n ],\n ]);\n \n // Add \"telephone_number\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'telephone2',\n 'attributes' => [\n 'id' => 'telephone2'\n ],\n 'options' => [\n 'label' => 'Téléphone 2',\n ],\n ]);\n \n // Add \"code eleve \" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'email_parent',\n 'attributes' => [\n 'id' => 'email_parent',\n 'style' => 'width: 50%'\n ],\n 'options' => [\n 'label' => 'E-mail:',\n ],\n ]);\n \n // Add \"comment\" field\n $this->add([ \n 'type' => 'textarea',\n 'name' => 'commentaire',\n 'options' =>[\n 'label' => 'Commentaires:',\n ],\n 'attributes' => [\n 'id' => 'commentaire',\n 'style' => 'width: 50%'\n ], \n ]);\n \n // Add the submit button\n $this->add([\n 'type' => 'submit',\n 'name' => 'submit',\n 'attributes' => [ \n 'value' => 'Enregistrer',\n 'id' => 'submitbutton',\n ],\n ]); \n \n }", "public function __construct($name = null)\n {\n parent::__construct('application');\n $this->setAttribute('method', 'post');\n $this->add(array(\n 'name' => 'id',\n 'type' => 'Hidden',\n ));\n $this->add(array(\n 'name' => 'nombre',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'nombre',\n ),\n ));\n $this->add(array(\n 'name' => 'apellido',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'apellidos',\n ),\n ));\n $this->add(array(\n 'name' => 'pass',\n 'type' => 'password',\n 'options' => array(\n 'label' => 'contrasenia',\n ),\n ));\n $this->add(array(\n 'name' => 'email',\n 'type' => 'Email',\n 'options' => array(\n 'label' => 'correo',\n ),\n ));\n $form = new Form('rol');\n $form->add(array(\n 'type' => 'Zend\\Form\\Element\\Select',\n 'name' => 'rol',\n 'options' => array(\n 'label' => 'selecccione el rol?',\n 'value_options' => array(\n '1' => 'Administrador',\n '2' => 'editor'\n ),\n )\n ));\n $this->add(array(\n 'name' => 'submit',\n 'type' => 'Submit',\n 'attributes' => array(\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ),\n ));\n }", "public function getHtmlName(): string {\n\t\treturn parent::getHtmlName() . ( $this->control->multiple ? '[]' : '' );\n\t}", "function gotravel_mikado_add_admin_container($attributes) {\n\t\t$name = '';\n\t\t$parent = '';\n\t\t$hidden_property = '';\n\t\t$hidden_value = '';\n\t\t$hidden_values = array();\n\n\t\textract($attributes);\n\n\t\tif(!empty($name) && is_object($parent)) {\n\t\t\t$container = new GoTravelMikadoContainer($name, $hidden_property, $hidden_value, $hidden_values);\n\t\t\t$parent->addChild($name, $container);\n\n\t\t\treturn $container;\n\t\t}\n\n\t\treturn false;\n\t}", "public function getFormName()\n {\n return $this->getModelSimpleName() .'Form';\n }", "public function getName()\n {\n return 'search_form';\n }", "function gtags_add_tags_form() {\n\tglobal $show_group_add_form;\n\tif ($show_group_add_form) return;\n\t$show_group_add_form = true;\n\t?>\n\t<p class=\"editfield\">\n\t\t<label for=\"group-tags\">Mots-clés</label>\n\t\t<input type=\"text\" name=\"group-tags\" id=\"group-tags\" value=\"<?php gtags_group_tags() ?>\" />\n\t\tSéparez les mots-clés par des virgules\n\t\t<?php gtags_show_tags_chooser(); ?>\n\t\t\n\t</p>\n\t<?php\n}", "public function add($name);", "function add_form_key($form_name)\n{\n\tglobal $config, $template, $user;\n\n\t$now = time();\n\t$token_sid = ($user->data['user_id'] == ANONYMOUS && !empty($config['form_token_sid_guests'])) ? $user->session_id : '';\n\t$token = sha1($now . $user->data['user_form_salt'] . $form_name . $token_sid);\n\n\t$s_fields = build_hidden_fields(array(\n\t\t'creation_time' => $now,\n\t\t'form_token'\t=> $token,\n\t));\n\n\t$template->assign_vars(array(\n\t\t'S_FORM_TOKEN'\t=> $s_fields,\n\t));\n}", "final public function getFormName(): string\n {\n\n return str_replace('.', '__', $this->getName());\n }", "public function getFormName(){\n return $this->form_name ?? 'form';\n }", "public function addChild($name)\n\t{\n\t\treturn $this->_auth->addItemChild($this->_calendarId,$this->_name,$name);\n\t}", "public function buildForm()\n {\n $this\n ->add('group_name', 'text')\n ->add(\n 'organizations',\n 'choice',\n [\n 'choices' => $this->getOrganizationName(),\n 'attr' => ['style' => 'height:100px'],\n 'multiple' => true\n ]\n )\n ->add(\n 'group_identifier',\n 'text',\n [\n 'attr' => [\n 'id' => 'group_identifier'\n ],\n 'help_block' => [\n 'text' => \"Your group identifier will be used as a prefix for your organisation group. We recommend that you use a short abbreviation that uniquely identifies your organisation group. If your group identifier is 'abc' the username for the group created with this registration will be 'abc_group'.\",\n 'tag' => 'p',\n 'attr' => ['class' => 'help-block']\n ],\n 'label' => 'Group Identifier'\n ]\n );\n }", "public function setNameNewItem($name = NULL){\n\t\t$this->nameNewItem = $name ? $name : $this->nameAddNew;\n\t}", "public function setControllerName()\n {\n $this->name = \"tagui\";\n }", "public function setFormName($_name=NULL){\n return $this->_name = (\n (\n $_name!==NULL &&\n is_string($_name) &&\n strlen(trim($_name))\n )\n ?$_name\n :(self::NAME_DEFAULT)\n );\n }", "public function fieldset_start($name = '', $extra = [])\n {\n if (is_array($name)) {\n $extra = (array) $extra + $name;\n $name = '';\n }\n $extra['name'] = ($extra['name'] ?? null) ?: $name;\n $func = function ($extra, $r, $form) {\n if ($form->_fieldset_mode_on) {\n $body = '</fieldset>' . PHP_EOL;\n } else {\n $form->_fieldset_mode_on = true;\n }\n $body .= '<fieldset' . _attrs($extra, ['class', 'style', 'id', 'name']) . '>';\n if ($extra['legend']) {\n $body .= PHP_EOL . '<legend>' . _htmlchars(t($extra['legend'])) . '</legend>' . PHP_EOL;\n }\n return $body;\n };\n if ($this->_chained_mode || $extra['chained_mode']) {\n $this->_body[] = ['func' => $func, 'extra' => $extra, 'replace' => $replace, 'name' => __FUNCTION__];\n return $this;\n }\n return $func((array) $extra + (array) $this->_extra, (array) $replace + (array) $this->_replace, $this);\n }", "public function init()\n {\n $this->add(array(\n 'name' => 'name',\n 'options' => array(\n 'label' => __('Name*'),\n ),\n 'attributes' => array(\n 'type' => 'text',\n ),\n ));\n\n $this->add(array(\n 'name' => 'title',\n 'options' => array(\n 'label' => __('Title*'),\n ),\n 'attributes' => array(\n 'type' => 'text',\n ),\n ));\n $this->add(array(\n 'name' => 'company',\n 'options' => array(\n 'label' => __('Company*'),\n ),\n 'attributes' => array(\n 'type' => 'text',\n ),\n ));\n $this->add(array(\n 'name' => 'email',\n 'options' => array(\n 'label' => __('Email*'),\n ),\n 'attributes' => array(\n\n 'type' => 'text',\n ),\n ));\n $this->add(array(\n 'name' => 'phone',\n 'options' => array(\n 'label' => __('Phone*'),\n ),\n 'attributes' => array(\n 'type' => 'text',\n ),\n ));\n $this->add(array(\n 'name' => 'submit',\n 'attributes' => array(\n 'value' => __('Freetrial'),\n ),\n 'type' => 'submit',\n ));\n }", "public function __construct($name = null)\n {\n parent::__construct('user_sign_up');\n $this->setAttribute('method', 'post');\n\t\t$this->setAttribute('id', 'formid'); \n $this->add(array(\n 'name' => 'email',\n 'attributes' => array(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'id'\t=> 'email',\t\t\t\t\t\t\t\n ),\n 'options' => array(\n 'label' => 'Email',\n\t\t\t\t\n ),\n ));\n $this->add(array(\n 'name' => 'password',\n 'attributes' => array(\n 'type' => 'password',\n\t\t\t\t'id'\t=> 'password',\n ),\n 'options' => array(\n 'label' => 'Password',\n ),\n ));\n $this->add(array(\n 'name' => 'confirm_password',\n 'attributes' => array(\n 'type' => 'password',\n\t\t\t\t'id'\t=> 'confirm_password',\n ),\n 'options' => array(\n 'label' => 'Confirm Password',\n ),\n ));\n \n $this->add(array(\n 'name' => 'submit',\n 'attributes' => array(\n 'type' => 'submit',\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ),\n ));\n }", "function setName($value)\n {\n $this->setAttribute(\"name\", $value);\n return $this;\n }", "public function getName()\r\n {\r\n return 'context_form';\r\n }", "protected function register_style_team_member_name() {\n\t\t$this->start_controls_section(\n\t\t\t'section_team_member_name_style',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Name', 'uael' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t\t'condition' => array(\n\t\t\t\t\t'team_member_name!' => '',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'name_size',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'HTML Tag', 'uael' ),\n\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t'options' => array(\n\t\t\t\t\t'h1' => 'H1',\n\t\t\t\t\t'h2' => 'H2',\n\t\t\t\t\t'h3' => 'H3',\n\t\t\t\t\t'h4' => 'H4',\n\t\t\t\t\t'h5' => 'H5',\n\t\t\t\t\t'h6' => 'H6',\n\t\t\t\t\t'div' => 'div',\n\t\t\t\t\t'span' => 'span',\n\t\t\t\t\t'p' => 'p',\n\t\t\t\t),\n\t\t\t\t'default' => 'h3',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_group_control(\n\t\t\tGroup_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => 'name_typography',\n\t\t\t\t'scheme' => Scheme_Typography::TYPOGRAPHY_1,\n\t\t\t\t'selector' => '{{WRAPPER}} .uael-team-name',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'name_color',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Color', 'uael' ),\n\t\t\t\t'type' => Controls_Manager::COLOR,\n\t\t\t\t'scheme' => array(\n\t\t\t\t\t'type' => Scheme_Color::get_type(),\n\t\t\t\t\t'value' => Scheme_Color::COLOR_1,\n\t\t\t\t),\n\t\t\t\t'default' => '',\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .uael-team-name' => 'color: {{VALUE}};',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\t$this->end_controls_section();\n\t}", "public function setAddForm($addForm=true);", "public function __construct($name = null)\n {\n parent::__construct('ponto');\n \n $this->setAttribute('method', 'post');\n $this->add(array(\n 'name' => 'id',\n 'attributes' => array(\n 'type' => 'hidden',\n ),\n ));\n\n $this->add(array(\n 'name' => 'manha_ini',\n 'attributes' => array(\n 'type' => 'text',\n ),\n 'options' => array(\n 'label' => 'Manha - Entrada',\n ),\n ));\n\n $this->add(array(\n 'name' => 'manha_fim',\n 'attributes' => array(\n 'type' => 'text',\n ),\n 'options' => array(\n 'label' => utf8_encode('Manha - Saida'),\n ),\n ));\n\n $this->add(array(\n 'name' => 'tarde_ini',\n 'attributes' => array(\n 'type' => 'text',\n ),\n 'options' => array(\n 'label' => 'Tarde - Entrada',\n ),\n ));\n\n $this->add(array(\n 'name' => 'tarde_fim',\n 'attributes' => array(\n 'type' => 'text',\n ),\n 'options' => array(\n 'label' => utf8_encode('Tarde - Saida'),\n ),\n ));\n\n $this->add(array(\n 'name' => 'data',\n 'attributes' => array(\n 'type' => 'text',\n ),\n 'options' => array(\n 'label' => 'Dia',\n ),\n ));\n\n $this->add(array(\n 'name' => 'submit',\n 'attributes' => array(\n 'type' => 'submit',\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ),\n ));\n\n }", "public function addContainer(&$container)\n {\n parent::addContainer($container);\n \n if (ObjectIntrospector::isA($container, 'TabPage') && $this->activeTabPagePersistor->getValue() == '')\n $this->activeTabPagePersistor->setValue($container->getName());\n }", "function add_my_forms( $forms ) {\n $forms['form_slug'] = \"Coinwink\";\n return $forms;\n}", "public function buildForm()\n {\n $this->add('organization_identifier_code', 'text', ['label' => trans('elementForm.organisation_identifier_code')])\n ->add('provider_activity_id', 'text', ['label' => trans('elementForm.provider_activity_id')])\n ->addSelect('type', $this->getCodeList('OrganisationType', 'Activity'), trans('elementForm.type'), $this->addHelpText('Activity_ParticipatingOrg-type'))\n ->addNarrative('provider_org_narrative')\n ->addAddMoreButton('add_provider_org_narrative', 'provider_org_narrative');\n }", "public function __construct($name = null, $options = array()) {\n parent::__construct($name, $options);\n \n //telling fieldset to hydrate its data into an Sermon-object. However, the form itself doesn’t know that it \n //has to return an object\n $this->setHydrator(new ClassMethods(false));\n $this->setObject(new Sermon());\n \n $this->add(array(\n 'type' => 'hidden',\n 'name' => 'id'\n ));\n\n $this->add(array(\n 'type' => 'text',\n 'name' => 'description',\n 'options' => array(\n 'label' => 'The description'\n )\n ));\n\n $this->add(array(\n 'type' => 'text',\n 'name' => 'title',\n 'options' => array(\n 'label' => 'Sermon Title'\n )\n ));\n }", "public function __construct($name = null)\n {\n // we want to ignore the name passed\n parent::__construct('user');\n\n $this->add(array(\n 'name' => 'username',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Username',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n $this->add(array(\n 'name' => 'password',\n 'type' => 'Password',\n 'options' => array(\n 'label' => 'Password',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n $this->add(array(\n 'name' => 'password_confirmation',\n 'type' => 'Password',\n 'options' => array(\n 'label' => 'Password Confirmation',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n $this->add(array(\n 'name' => 'email',\n 'type' => 'Text',\n 'options' => array(\n 'label' => 'Email',\n ),\n 'attributes' => array(\n 'class' => 'form-control',\n ),\n ));\n $this->add(array(\n 'name' => 'file_upload',\n 'type' => 'File',\n 'options' => array(\n 'label' => 'Avatar (only .jpg, .jpeg and .png file)',\n ),\n ));\n $this->add(array(\n 'name' => 'submit',\n 'type' => 'Submit',\n 'attributes' => array(\n 'value' => 'Save',\n 'id' => 'submitbutton',\n 'class' => 'btn btn-success',\n ),\n ));\n }", "protected function createComponentAddGroupForm()\r\n\t{\r\n\t\t$form = new Form;\r\n\t\t$tar = new Tarif;\r\n\t\t$id_set_tarifu = $this->getParam('id');\r\n\t\t$data = $tar->getTypesTarif($id_set_tarifu)->fetchAll();\r\n\t\t$container = $form->addContainer('mpole');\r\n\t\t$i = 0;\r\n\t\tforeach($data as $k => $v){\r\n\t\t\t$i++;\r\n\t\t\t$container->addText('tarif_'.$i, 'Tarifní sazba:')->setValue($v['tarif'])\r\n\t\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t\t->controlPrototype\r\n\t\t\t\t\t\t->autocomplete('off')\r\n\t\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t\t->addRule($form::FLOAT, 'Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\t$container->addText('hodnota_'.$i, 'Kalk. hodnota:')->setValue($v['hodnota'])\r\n\t\t\t\t->setAttribute('class', 'cislo')\r\n\t\t\t\t->addFilter(array('Nette\\Forms\\Controls\\TextBase', 'filterFloat'))\r\n\t\t\t\t\t->controlPrototype\r\n\t\t\t\t\t\t->autocomplete('off')\r\n\t\t\t\t->addCondition($form::FILLED)\r\n\t\t\t\t\t\t->addRule($form::FLOAT, 'Hodnota musí být celé nebo reálné číslo.');\r\n\t\t\t\r\n\t\t\t$container->addHidden('tarf_'.$i)->setValue($v['tarif']);\r\n\t\t\t$container->addHidden('hodn_'.$i)->setValue($v['hodnota']);\r\n\t\t\t$container->addHidden('idto_'.$i)->setValue($v['idto']);\r\n\t\t\t$container->addHidden('idso_'.$i)->setValue($v['idso']);\r\n\t\t}\r\n\t\t$form->addHidden('id_set_tarifu')->setValue($id_set_tarifu);\r\n\t\t$form->addSubmit('save', 'Uložit')->setAttribute('class', 'default');\r\n\t\t$form->addSubmit('saveas', 'Uložit jako kopii');\r\n\t\t$form->addSubmit('cancel', 'Storno')->setValidationScope(FALSE);\r\n\t\t$form->onSuccess[] = callback($this, 'groupoFormSubmitted');\r\n\r\n\t\t$form->addProtection(self::MESS_PROTECT);\r\n\t\treturn $form;\r\n\t}", "private function addTo(){\n\t\t$element = 'to';\n\t\t$options = array('required'=>false,'readonly' => true,'filters'=>array('StringTrim'),'label'=>'to');\n\t\t$this->addElement('text',$element,$options);\n\t\t//$prefix = array();\n\t\t//$decorator = array('DivForm');\n\t\t//$this->addCustomDecorator($prefix,$decorator,$element);\n\t\t$this->applyDecorator($element,true);\n\t\t$this->addToGroup($element);\n\t}", "public function init()\n {\n // Top-level parent\n parent::init();\n $this->applyOmekaStyles();\n $this->setAutoApplyOmekaStyles(false);\n $this->setAttrib('id', 'new_collection');\n $this->setAttrib('method', 'POST');\n // Target collection\n $this->addElement('text', 'name', array(\n 'label' => __(\"Collection Name\"),\n 'description' => __(\"Name of the new collection to import into.\"),\n 'required' => true,\n ));\n }", "public function enterName()\n {\n }", "function buildForm(){\n\t\t# menampilkan form\n\t}", "public function createAddForm()\n {\n $this->song = new Song();\n $form = new Form();\n $this->addCommonFields($form);\n $form->onValidate[] = $this->songFormValidate;\n $form->onSuccess[] = $this->songFormSuccess;\n return $form;\n }", "function setName($value) {\n $this->name = $value;\n }" ]
[ "0.7250471", "0.7218297", "0.6471057", "0.6232313", "0.612205", "0.60906875", "0.6070127", "0.5884168", "0.5876493", "0.5841931", "0.5830083", "0.5827782", "0.5811157", "0.5806719", "0.5796147", "0.5723983", "0.57142645", "0.5696318", "0.5661079", "0.5653174", "0.564546", "0.5640169", "0.5626674", "0.5625381", "0.56118476", "0.55944645", "0.5588965", "0.5569786", "0.5568313", "0.5566686", "0.55272007", "0.55263835", "0.5523919", "0.5519171", "0.5516671", "0.5507066", "0.5486407", "0.5483968", "0.54661685", "0.5462306", "0.5451941", "0.54515994", "0.54158545", "0.5396299", "0.5382899", "0.5382899", "0.5381527", "0.5370686", "0.5352292", "0.53509575", "0.5342982", "0.5331382", "0.53311664", "0.5329643", "0.5327097", "0.5306732", "0.52840906", "0.5274943", "0.52704686", "0.5269859", "0.5268817", "0.5235999", "0.52286464", "0.5224152", "0.5220232", "0.52200145", "0.5212294", "0.5210452", "0.5207584", "0.5207452", "0.5206411", "0.5202137", "0.5194666", "0.51925", "0.51910156", "0.51907814", "0.5190238", "0.5189193", "0.5180291", "0.51793754", "0.5175812", "0.51733077", "0.5165689", "0.51571554", "0.51542145", "0.51421297", "0.51413417", "0.51408833", "0.51385987", "0.5137132", "0.5135095", "0.5132579", "0.51310366", "0.512998", "0.51277673", "0.5119906", "0.5106489", "0.51053923", "0.5105064", "0.51033735" ]
0.62937677
3
Get all user for Admin .
public function users() { return $this->hasMany('App\User'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_admin_users(){\n \n global $db;\n \n $query = \"SELECT * FROM users \";\n $query .= \"WHERE user_role = 'admin'\";\n \n $result = User::makeQuery($query);\n \n return $result;\n }", "public function getAllUser()\n\t{\n\t\t$data = $this->db->get('admin');\n\t\treturn $data->result_array();\n\t}", "public static function admins()\n {\n return User::all()->where('idpapel', 1)->where('stusuario', 'ati')->toArray();\n }", "public function indexAdmin ()\n {\n $listOfUsers = $this->userRequest->usersIndexForAdmin();\n return $listOfUsers;\n }", "public function users(){\n\t\t$user = $this->ion_auth->user()->row();\n\n\t\t$query = $this->db->select()\n\t\t\t\t\t\t\t\t\t\t\t ->from('users')\n\t\t\t\t\t\t\t\t\t\t\t ->where('admin_id',$user->id)\n\t\t\t\t\t\t\t\t\t\t\t ->order_by('id', 'asc')\n\t\t\t\t\t\t\t\t\t\t\t ->get();\n\t\t\treturn $query;\n\t}", "public function getAllUsers() {\n $sql = 'SELECT id, firstname, mail, role, isAdmin FROM user';\n $sth = $this->db->prepare($sql);\n $sth-> execute(array());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n }", "public function listUsersAdmin(){\n $sql=\"SELECT id_people,dni,first_name,last_name,adress,email,is_active FROM people WHERE is_user=1\";\n $rs=$this->con->prepare($sql);\n $rs->execute();\n return $rs->fetchAll(PDO::FETCH_OBJ);\n }", "function getAllAdmins(){\n $sql = self::$connection->prepare(\"SELECT * FROM `user` WHERE role_id = 1\");\n $sql->execute();//return an object\n $items = array();\n $items = $sql->get_result()->fetch_all(MYSQLI_ASSOC);\n return $items; //return an array\n }", "function allAdmin(){\n \t$con = new mysqli('localhost','heng','@powell135','200ok');\n \tif ($con -> connect_errno){\n \t\treturn CONNECTION_FAIL;\n \t}\n\t$permission = ADMIN;\n \t$query = \"select lastLogin, username, email, suspended, lastUpdate from jnjn_user where permission = '$permission'\";\n \t$result = $con -> query($query);\n \t$users = array();\n \twhile($row = mysqli_fetch_array($result)){\n\t\t$users[] = new User($row['username'],$row['email'],$row['lastLogin'],$row['suspended'],$row['lastUpdate']);\n \t}\n \t$result -> close();\n \treturn $users;\n }", "public function getUsers()\n\t{\n\t\t$sql = 'SELECT * FROM admins WHERE deleted = 0';\n\t\t$query = $this->db->prepare($sql);\n\t\t$query->execute();\n\t\treturn $query->fetchAll(PDO::FETCH_OBJ);\n\t}", "function adminUserList()\n {\n $arrClms = array(\n 'pkAdminID',\n 'AdminUserName',\n 'AdminCountry',\n 'AdminRegion'\n );\n $varWhr = \"AdminType = 'user-admin'\";\n $varOrderBy = 'AdminUserName ASC ';\n $arrRes = $this->select(TABLE_ADMIN, $arrClms, $varWhr);\n //pre($arrRes);\n return $arrRes;\n }", "public static function getAdminsList()\n {\n $data_to_load = [];\n if(DatabaseManager::fetchInto(\"main\", $data_to_load, \"SELECT * FROM `admin_users`\") === false)\n Status::message(Status::ERROR, \"Couldn't retrieve `admin_users` from DB\");\n \n Status::message(Status::SUCCESS, $data_to_load);\n }", "public function admins()\n {\n return $this->newQuery('getUsers', ['type' => 'AdminUsers']);\n }", "public function getAllUsers(){\n\t\treturn $this->user;\n\t}", "public function getAllUser(){\n return $this->users;\n }", "public function index()\n {\n return $this->user->all();\n }", "public function getUsers();", "public function getUsers();", "public function getUsers();", "public function get_list_admin()\n {\n $this->db->where('type', 1);\n $query = $this->db->get('user');\n return $query->result();\n }", "public function getUsers()\n {\n return Security::getUserList();\n }", "public function allUser(){\n\n\t\t\t$data=$this->all('oops');\n\t\t\treturn $data;\n\t\t}", "public function getAdmins() {\n $sql = 'SELECT id, mail, firstname, role FROM user WHERE isAdmin=1 ORDER BY role DESC';\n $sth = $this->db->prepare($sql);\n $sth-> execute(array());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n }", "public function index()\n {\n $this->authorize('read_users');\n return User::withOutSuperAdmin()->with('roles')->get();\n }", "function admin_get_users()\n{\n global $app;\n\n $users = $app->bbs->users();\n $app->render('admin_users.html', [\n 'page' => mkPage(getMessageString('admin_users'), 0, 2),\n 'users' => $users,\n 'isadmin' => is_admin()]);\n}", "public function getAllUsers()\n {\n return \"users from mongo\";\n }", "function getUsers(){\n }", "function getUsers(){\n }", "function get_users()\n\t{\n\n\t\trequire_once('modules/Users/User.php');\n\t\t\n\t\t$query = \"SELECT user_id as id FROM roles_users WHERE role_id='$this->id' AND deleted=0\";\n\t\t\n\t\treturn $this->build_related_list($query, new User());\n\t}", "public function getList()\r\n {\r\n $result = $this->query(\r\n \"SHOW USERS\",\r\n $this->getValueBuilder('Aviogram\\InfluxDB\\Entity\\Admin\\User')\r\n ->addField('user', 'getName', 'setName')\r\n ->addField('admin', 'isAdmin', 'setAdmin')\r\n );\r\n\r\n $return = new Collection\\Admin\\User();\r\n\r\n foreach ($result->getSeries() as $serie) {\r\n foreach($serie->getValues() as $value) {\r\n $return->append($value);\r\n }\r\n }\r\n\r\n return $return;\r\n }", "public function index()\n {\n $query = [];\n if(!$this->user->is_admin){\n array_push($query,['user_id','=',$this->user->id]);\n }\n return $this->helper->get(null,$query);\n }", "public function allUsers()\n {\n $users = $this->user->findAll();\n $this->show('admin/allusers', ['users' => $users]);\n }", "public function getUserList() {\n $where = [];\n $this->usersModel->setTableName(\"cvd_users\");\n\n $role_name = $this->request->input(\"role_name\");\n if ($role_name) {\n $where[] = [\"roles.role_name\", \"=\", $role_name];\n }\n\n $user_id = $this->request->input(\"user_id\");\n if ($user_id) {\n $where[] = [\"users.user_id\", \"=\", $user_id];\n }\n $orderBy = \"users.user_id\";\n $this->usersModel->setWhere($where);\n $users = $this->usersModel->getUsers($orderBy);\n\n return $users;\n }", "public function getAllUsers() {\n $conn = new DBConnect();\n $dbObj = $conn->getDBConnect();\n $this->DAO = new SecurityDAO($dbObj);\n return $this->DAO->getAllUsers();\n }", "static function getAllUsers(){\n $users = User::where('email','<>','admin')->paginate(4);\n\n if(count($users) != 0){\n return view('partials.adminUsersList')->with('users',$users);\n } else {\n echo \"Aún no hay usuarios registrados.\";\n }\n\n }", "public function getUsers() {\n\n $users = $this->users_model->getallusers();\n exit;\n }", "public static function all() {\n try {\n $db = Database::getInstance();\n $sql = \"SELECT username, is_admin, token, token_expiration FROM `User`\";\n $stmt = $db->prepare($sql);\n $stmt->execute();\n \n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n exitError(500, \"Internal error.\");\n }\n }", "public function getUsersList()\n {\n }", "public function adminlogin(){\n\n \t return json_encode(User::All());\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM users WHERE role_id = 2;\";\n $stm = App::$db->prepare($sql);\n $stm->setFetchMode(\\PDO::FETCH_OBJ);\n $stm->execute();\n return $stm->fetchAll();\n }", "public function index_get()\n {\n $response = $this->UserM->all_user();\n $this->response($response);\n }", "public function getAllUser(){\n $users = $this->bdd->query('SELECT * FROM users');\n $users->execute();\n\t\treturn $users->fetchALL(\\PDO::FETCH_ASSOC);\n }", "public static function get_admins();", "public function getUsers(){\n $query = \"SELECT * FROM usuario \";\n return self::getInstance()->consulta($query);\n }", "public function memberList()\n {\n return User::where('status', 1)->where('role_id', 2)->get();\n }", "public function getUsers(){\n if($this->get_request_method() != \"GET\"){\n $this->response('',406);\n }\n $role = $_REQUEST[\"role\"];\n\n $query=\"SELECT * FROM `usuario` WHERE `rol` = \" . $role;\n\n $this->db->get($query);\n }", "function getUsuarios(){\n\t\n\t\treturn conectar()->query( \"SELECT * FROM usuarios\");\n\t}", "protected function getUsers() {\n //Get admin user for testing\n $admin = \\App\\User::whereHas('roles', function($query) {\n $query->where('name', 'admin');\n })->get()[0];\n //Get regular user for testing\n $user = \\App\\User::orderBy('id', 'desc')->first();\n\n return compact('admin', 'user');\n }", "public function getAllUsers()\n {\n $sql = \"SELECT `user_id`, `user_fname`, `user_lname`, `user_password_hash`, `user_email`, `user_role` FROM users\";\n $query = $this->db->prepare($sql);\n $query->execute();\n return $query->fetchAll();\n }", "public function allUsers()\n {\n // $sql = 'SELECT * FROM '.$db_name;\n return $this->queryAll();\n }", "function adminUsers()\n {\n $userLogged = Auth::check(['administrateur']);\n \n $userManager = new UserManager();\n $listUsers = $userManager->getListUsers();\n require'../app/Views/backViews/user/backAdminUsersView.php';\n }", "public function getAllUsers(){\n\t\n\t\t$db = new Database();\n\t\t$conn= $db->getConn();\n\t\t$rs = $conn->query(\"select * from login\");\n\t\t$num_of_row = $rs->num_rows;\n\t\tif($num_of_row >0){\n\t\t\twhile($row = $rs->fetch_assoc()){\n\t\t\t\t$users[]=array('username'=>$row['username'],'password'=>sha1($row['password']),'email'=>$row['email'],'user_type'=>$row['user_type']);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $users;\n\t}", "function getAdminUsers(){\n\tglobal $connection, $roles;\n\t$sql = \"SELECT * FROM Accounts WHERE role IS NOT NULL\";\n\t$result = mysqli_query($connection, $sql);\n\t$users = mysqli_fetch_all($result, MYSQLI_ASSOC);\n\n\treturn $users;\n}", "public static function getUsers(){\n return self::find()->all();\n }", "public function admins() {\n $data = array();\n // verify user has priviledges\n if($this->User->isLoggedIn() && $this->User->isAdmin()) {\n $flash = null;\n \n if (isset($_POST['delete_admin'])) {\n if ($this->User->removeAdminRights($_POST['user_id'])) {\n $flash = \"Admin user removed\";\n }\n }\n \n if (isset($_POST['email'])) {\n $user_id = $this->User->getByEmail($_POST['email']);\n if(isset($user_id['id'])) {\n if($this->User->bestowAdminRights($user_id['id'])) {\n $flash = \"{$_POST['email']} added as an admin.\";\n }\n }\n }\n \n // fetch admin users\n $users = $this->User->getAdmins();\n \n //set the title\n $data = array(\n 'users' => $users,\n 'flash' => $flash,\n 'title' => 'Manage Admin Users'\n );\n \n } else {\n header(\"Location: \".app::site_url(array('users','login')));\n exit(0);\n }\n return $data;\n }", "public function getAllUsers() {\n //Example of the auth class (you have to change the functionality for yourself)\n AuthHandler::needsAuth(array(\n 'auth' => true\n ));\n\n return ModelLoader::getModel('UserData')->getMultipleUsers(array(\n 1, 2, 3\n ));\n }", "function getUser(){\n $db=new connect();\n $select=\"select * from users\";\n return $db->getList($select);\n }", "protected function queryUserAll()\n {\n $queryBuilder = $this->db->createQueryBuilder();\n\n return $queryBuilder->select('*')\n ->from('User', 'u')\n ->innerJoin('u', 'Role','r','u.Role_ID = r.Role_ID' );\n }", "public static function getAllUser()\n\t{\n\t\treturn array(self::_getDao()->count(), self::_getDao()->getAll());\n\t}", "private function getUserList()\n {\n $users = User::getUsers();\n $users = ArrayHelper::map($users, 'id', 'username');\n \n return $users;\n }", "public static function getAllAdmins()\n\t{\n\t\t$admins = self::where('users_role',UserRole::ADMIN_ROLE_ID)->get();\n\t\treturn $admins;\n\t}", "public function getUsers()\n {\n return User::where('user_status', 1)->get();\n }", "public function all_user()\n {\n $this->res->SetObject(RCD::SC, RCD::SC, FALSE, $this->db->get('user')->result());\n }", "function findAllAdministrators() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM admins;'));\r\n\r\n\t}", "function listUsers() {\n return $this->users;\n }", "public static function allUser() {\n $listado = DB::table('users')->join('role_user', 'role_user.user_id', '=', 'users.id')\n ->join('roles', 'roles.id', '=', 'role_user.role_id')\n ->select('users.*', 'roles.description')\n ->get();\n\n return $listado;\n }", "static function getAllAdmin()\n {\n\n $con=Database::getConnection();\n $req=$con->prepare('SELECT * FROM admin a, partners p WHERE a.idPart=p._idPart');\n $req->execute(array());\n return $req->fetchAll();\n }", "function getUsersAdmin() {\n $usuarios = [];\n\n $con = crearConexion();\n\n $query = \"SELECT `username` FROM `usuario` WHERE `tipo`='0'\";\n\n $result = mysqli_query($con, $query);\n\n while ($row = mysqli_fetch_array($result)) {\n $usuarios[] = $row['username'];\n }\n\n cerrarConexion($con);\n return $usuarios;\n}", "function find_all_admins() {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$query = \"SELECT * \";\r\n\t\t$query .= \"FROM admins \";\r\n\t\t$query .= \"ORDER BY username ASC\";\r\n\t\t$admins_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($db);\r\n\t\treturn $admins_set;\r\n\t}", "function getAllAdmins(){\n $sql = \"SELECT * FROM admin\";\n return getALl($sql);\n}", "public function getAllUsers()\n {\n $result = self::$dbInterface -> query(\"SELECT userID, userName, email FROM user\");\n return $result;\n }", "public function index()\n {\n return user::get();\n }", "public function index()\n {\n\n return User::all();\n }", "public function getListUser()\n {\n $db = $this->dblocal;\n try\n {\n $stmt = $db->prepare(\"select * from m_user where username<>'admin' order by username desc\");\n $stmt->execute();\n $stat[0] = true;\n $stat[1] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $stat;\n }\n catch(PDOException $ex)\n {\n $stat[0] = false;\n $stat[1] = $ex->getMessage();\n return $stat;\n }\n }", "public function index()\n {\n $user = $this->permission(User::all(), 'id');\n\n return $this->showAll($user,User::class);\n }", "public function getAllUserById($id);", "function find_all_admins() {\n\t\tglobal $connection;\n\n\t\t$query = \"SELECT * FROM admins ORDER BY username ASC\";\n\t\t$admin_list = mysqli_query($connection, $query);\n\t\tconfirm_query($admin_list);\n\t\treturn $admin_list;\n\t}", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "public function index()\n {\n return User::all();\n }", "function list_user()\n {\n return DB::table(\"users\")->get(); \n }", "public function getUsers(){\n return self::getModel(\"users\", \"*\");\n }", "public static function retrieveAllUsers() {\n return R::getAll('SELECT * FROM user');\n }", "public function getUserList()\n {\n return $this->userDao->getUserList();\n }", "function list_users() {\n $status = session_status();\n if($status == PHP_SESSION_NONE){\n session_start(); /// initialize session\n }\n $user_name = check_logged(); /// function checks if visitor is logged in.\n if (!$user_name)\n return;\n\n $allowed = false;\n if (!check_role( \"admin\" )) {\n return false;\n }\n\n // read the permissions database\n $d = loadDB();\n return $d[\"users\"];\n }", "public function getAll(){\n $users = UserResource::collection($this->userRepo->getAll());\n return $users;\n }", "public static function allUser()\n {\n $self = new self();\n\n $sql = \"SELECT * FROM user\";\n\n $result = $self->db->query($sql);\n\n $result = $result->fetchAll();\n\n return $result;\n }", "function findAllUsers() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM users;'));\r\n\r\n\t}", "function get_users()\n {\n //Unimplemented\n }", "public function listarUser() {\n if(IDUSER) {\n $eval = \"SELECT id,nombre,apellidos,email FROM users\";\n $peticion = $this->db->prepare($eval);\n $peticion->execute();\n $resultado = $peticion->fetchAll(PDO::FETCH_OBJ);\n exit(json_encode($resultado));\n } else {\n http_response_code(401);\n exit(json_encode([\"error\" => \"Fallo de autorizacion\"])); \n }\n }", "public function index()\n {\n //\n return User::all();\n }", "public function showAllUsers()\n {\n // añadir condicion de if para admins y clients\n $tipo = request()->get('tipo');\n if (isset($tipo))\n {\n if ($tipo == 'administradores') {\n $users = User::all()->where('is_admin', 1);\n } else {\n $users = User::all()->where('is_admin', 0);\n }\n } else {\n $users = User::all();\n }\n return view('users.list', compact('users'));\n }", "public function index()\n {\n return response()->responseUtil(User::all(['id', 'name', 'realName', 'openId', 'nickName', 'avatarUrl', 'cellphone', 'officephone','regTime', 'email']));\n }", "public function get_users()\n\t{\n\t\t$sql=\"SELECT * FROM waf_users WHERE 1=1\";\n\t\t$result=$this->db->LIST_Q($sql);\n\t\treturn $result;\n\t}", "public static function getAdmin() {\n\t\t$conn = Connection::get ();\n\t\t\n\t\t$select = $conn->query ( \"SELECT id_admin, identifiant_admin, mdp_admin, nom_admin, prenom_admin FROM admin\" );\n\t\t$result = array ();\n\t\t\n\t\twhile ( $row = $select->fetch () ) {\n\t\t\t$result [] = $row;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function getAdmins()\n {\n $role = Role::where('name', 'admin')->first();\n return $role->users;\n }" ]
[ "0.8308036", "0.8210048", "0.81195223", "0.7987607", "0.79301286", "0.79023147", "0.7875496", "0.77465343", "0.7740218", "0.77277166", "0.7708714", "0.7686165", "0.7684998", "0.7679398", "0.7669034", "0.7633594", "0.7632804", "0.7632804", "0.7632804", "0.7605881", "0.75637835", "0.7560235", "0.7550019", "0.75402963", "0.7517986", "0.7510025", "0.749985", "0.749985", "0.7499644", "0.74952793", "0.7454237", "0.7438851", "0.74246156", "0.7418284", "0.7393617", "0.7390785", "0.7380626", "0.7376763", "0.73736954", "0.7364203", "0.73558664", "0.73540443", "0.7349105", "0.7347032", "0.733494", "0.73295397", "0.7323394", "0.7320474", "0.7313255", "0.73130405", "0.7312649", "0.7308701", "0.7296409", "0.72931993", "0.72920305", "0.72828907", "0.7276815", "0.7264286", "0.7260462", "0.72556114", "0.7254755", "0.724779", "0.7233973", "0.72227496", "0.72161454", "0.7208697", "0.720065", "0.72005254", "0.71987516", "0.7198709", "0.7189102", "0.7184623", "0.71829027", "0.7176157", "0.7172885", "0.7167842", "0.7159258", "0.71590334", "0.71590334", "0.71590334", "0.71590334", "0.71590334", "0.71590334", "0.71590334", "0.71590334", "0.7158921", "0.71584815", "0.7152742", "0.71512973", "0.7144233", "0.7143352", "0.7142219", "0.71420884", "0.71401614", "0.7139632", "0.7135644", "0.7135165", "0.7131987", "0.71319246", "0.7131822", "0.7127406" ]
0.0
-1
Get all film for Admin.
public function films() { return $this->hasMany('App\Film'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Film::all();\n }", "public function index()\n {\n //\n return Film::all();\n }", "public function index() // Filmleri listeler\n {\n $films = Film::all();\n return $films;\n }", "public function index()\n {\n return FilmResource::collection(Film::paginate(5));\n }", "public function index()\n {\n $films = Film::orderBy('created_at', 'desc')->paginate(9);\n\n return view('admin.list', [\n 'films' => $films\n ]);\n }", "public function listmovies() {\n $movies = Movie::all();\n require_once('view/admin/movie/listmovies.php');\n }", "public function index()\n {\n return \\App\\Movie::all();\n }", "public function showAllActionGet() : object\n {\n $title = \"Movie database | oophp\";\n\n $this->app->db->connect();\n $sql = \"SELECT * FROM movie;\";\n $res = $this->app->db->executeFetchAll($sql);\n\n $this->app->page->add(\"movie/show-all\", [\n \"res\" => $res,\n ]);\n\n return $this->app->page->render([\n \"title\" => $title,\n ]);\n }", "public function index()\n {\n return MovieResource::collection(Movie::get());\n }", "public function index()\n {\n $films = Film::orderBy('sort', 'desc')->orderBy('id', 'desc')->get();\n return view('film.index', ['films' => $films]);\n }", "public function index()\n {\n $films = Film::with('image','categories','genres','countries','tags')\n ->orderByDesc('id')\n ->get();\n\n return response_success([\n 'films' => $films\n ],'get data success');\n }", "public function listFilms(){\n $dbc = $this->connexionBDD();\n $req = $dbc->prepare('SELECT * FROM films');\n $req->execute();\n $films = $req->fetchAll(PDO::FETCH_OBJ);\n return $films;\n }", "private function get_all_films() {\r\n $all_films = array();\r\n $args = array (\r\n 'post_type' => 'film',\r\n );\r\n\r\n $the_query = new WP_Query($args);\r\n if ($the_query->have_posts()) {\r\n while ($the_query->have_posts()) {\r\n $the_query->the_post();\r\n array_push($all_films, $the_query->post);\r\n }\r\n\r\n return $all_films;\r\n }\r\n \r\n wp_reset_postdata();\r\n }", "public function index()\n {\n $movies = Movie::paginate(15);\n return MovieResource::collection($movies);\n }", "public function index()\n {\n\n $film = Films::query();\n $film->latest();\n if (request()->has(\"search\") && strlen(request()->query(\"search\")) >= 1) {\n $film->where(\n \"films.name\", \"like\", \"%\" . request()->query(\"search\") . \"%\"\n );\n }\n $counter = 1;\n $pagination = 5;\n $film = $film->paginate($pagination);\n if( request()->has('page') && request()->get('page') > 1){\n $counter += (request()->get('page')- 1) * $pagination;\n }\n\n $genre = Genres::all();\n $studio = Studios::all();\n return view('film',\n compact('film',\n 'genre',\n 'studio',\n 'counter'\n ));\n }", "public function index()\n {\n $films = Film::with(['genre','country'])->orderBy('created_at','desc')->get() ;\n return view('films.index', compact('films'));\n }", "public function index()\n {\n $items = Film::all();\n return response()->json($items);\n }", "public function index()\n {\n $movies = Movie::with(['actors', 'studio'])->get();\n return new MovieCollection($movies);\n }", "public function index()\n {\n\n // $movies->all();\n $movies = post::all();\n // if(isset(Auth::user()->role) && (Auth::user()->role=='admin')){\n \n return view('page.admin', ['movies' => $movies]);\n // }\n\n // return view('home', ['movies' => $movies]);\n \n }", "static function loadListaFilm() : string\n {\n return \"SELECT users.*\n FROM film, users\n WHERE films.name_film = :id AND films.name = users.id;\";\n\t\t\t\t//da correggere questa query\n }", "public function listByFilmId($film_id);", "public function index()\n {\n if (!empty(request()->get('category_id'))){\n $category = \\request()->get('category_id');\n $films = Film::whereHas('categories', function ($query) use($category) {\n return $query->where('category_id', $category);\n })->with('categories','comments')->get();\n return json_encode($films);\n\n }\n $films = Film::with('categories','comments')->get();\n return json_encode($films);\n }", "public function getAllMovies()\n {\n return DB::table('movies')->get();\n }", "public function getFilms(){\n\n try{\n \n //get all films\n $filmData = Film::all()->toArray();\n //return response\n return response()->json($filmData,200);\n\n }catch(\\Exception $e){\n \\Log::info(\"getFilms api message:: \".$e->getMessage());\n return response()->json($e->getMessage(),500);\n } \n }", "public function actionIndex()\n {\n $criteria = new CDbCriteria();\n\n $count = Film::model()->count($criteria);\n\n $pages = new CPagination($count);\n $pages->pageSize = self::PER_PAGE;\n $pages->applyLimit($criteria);\n\n $films = Film::model()->findAll($criteria);\n $this->render('index', ['films' => $films, 'pages' => $pages]);\n }", "public function index()\n {\n return Admins::all();\n }", "public function index()\n {\n $admins = Admin::paginate(5);\n return AdminResourceCollection::collection($admins);\n }", "public function index($req, $res){\n $this->isLogged(array(\"redirect\" => \"/admin/login\"));\n\n $film = new Film();\n $rows = $film->find();\n\n $res->html(\"admin/index.php\", array(\"films\" => $rows));\n }", "public function getMovies()\n {\n $movie = Movie::with('genres', 'cast', 'crew', 'licensors', 'producers', 'studios', 'reviews');\n $getters = Input::get();\n \n // Add offset/limit\n $movie->offset( (@$getters['index'] * @$getters['pageSize']) ?: 0);\n $movie->limit(@$getters['pageSize'] ?: 15);\n\n // Return items\n return $movie->get();\n }", "public function getFilm(): array\n {\n return $this->film;\n }", "public function index()\n {\n return Movie::paginate();\n }", "public function index()\n {\n return $this->showList(ObjectMuseum::where('deleted','=',ObjectMuseum::ACTIVE)->get());\n }", "public function index()\n { \n $movies = Movie::fetchMovies();\n return view('pages.admin.movie.viewMovies', compact('movies'));\n\n }", "public function accessMediasAll()\n {\n return true;\n }", "public function Allmovies()\n {\n // $movie = Movies::all();\n\n // return response()->json(\n // [\n // 'status' => 'success',\n // 'movie' => $movie->toArray()\n // ], 200);\n $movie = Movies::select('id', 'name', 'genre')\n ->orderBy('id', 'desc')\n ->get();\n return $movie;\n }", "public function index() {\n $periodo = $this->formatPeriodoFromRequest();\n\n $query = Movimientos::with(['Cuenta.TipoCuenta','Categoria'])\n ->filtrarPeriodo($periodo->año,$periodo->mes)\n ->whereOrWhere($this->mode,$this->appendModeCredito);\n\n return $query->get();\n }", "public function index()\n {\n $result=film::join('pozoristes','predstavas.pozoriste_id','=','pozoristes.id')\n ->get(['predstavas.*','pozoristes.ime','pozoristes.lokacija']);\n \n return $result;\n }", "public function indexAction()\n {\n \n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('CineminoSiteBundle:Film')->findAll();\n \n return $this->render('CineminoSiteBundle:Film:index.html.twig', array(\n 'entities' => $entities\n ));\n }", "public function index()\n\t{\n\t\tif(!Auth::user()->hasPermission('showType')){\n\t\t\treturn redirect()->route('admin.getHome')->with('flash_message_error', '403! Không thể Show Type');\n\t\t}\n\t\t//\n\t\t// $film_type = FilmType::all();\n\t\treturn view('admin.type.list');\n\t}", "public function index()\n {\n /**\n * Mengambil data movie yang ada di tabel movie_users\n * Berdasarkan user_id dari user yang sedang log in\n * redirect ke halaman saved_movie dengan mengirimkan data tersebut\n */\n $user = auth()->user()->id;\n\n $movies = MovieUser::where('user_id', $user)->paginate(10);\n\n return view('saved_movie')->with(compact('movies'));\n }", "public function getAll()\n {\n return \\App\\Movie::all()->load('genre');\n }", "public function index() {\n\t $this->template->content = View::instance('v_films_index');\n\t $this->template->title = \"DER | Films\";\n\t\n\t # Build the query\n\t $q = 'SELECT\n\t\t\tfilms.unique_id, \n\t\t\tfilms.title,\n\t\t\tfilms.alt_title,\n\t\t\tfilms.director_1,\n\t\t\tfilms.director_2,\n\t\t\tfilms.producer_1,\n\t\t\tfilms.producer_2,\n\t\t\tfilms.color,\n\t\t\tfilms.running_time_1,\n\t\t\tfilms.running_time_2,\n\t\t\tfilms.year_released,\n\t\t\tfilms.image\n\t\t\t\tFROM films\n\t\t\t\tORDER BY films.title ASC';\n\t\n\t # Run the query\n\t $films = DB::instance(DB_NAME)->select_rows($q);\n\t\n\t # Pass data to the View\n\t $this->template->content->films = $films;\n\t\n\t # Render the View\n\t echo $this->template;\n\t}", "public function index()\n {\n //retornar todos los registros\n return Directorio::all();\n }", "public function index()\n {\n $films=Film::all();\n \n return view('gallery',['films'=>$films]); \n \n // $comments=Commentaire::all();\n\n }", "public function showMovies()\n {\n $context = $this->session->get('movie_data');\n $page = $this->getQueryParam(\n 'page'\n ); // if there is no session data or nobody tried to go to a different page, show existing data\n if (is_null($context) || !is_null($page) || !empty($page)) {\n return $this->getFilteredMovies();\n } else {\n $html = $this->render('index', array('context' => $context));\n $this->session->set('movie_data', null);\n\n return $html;\n }\n }", "public function index() {\n return response()->json( movies::all() );\n }", "public function index()\n {\n return Movie::latest('id')->with('genres')->get()->toJson();\n }", "public function index()\n {\n $medicina = medicina::all();\n return $medicina;\n }", "public function index()\n {\n $perfiles = Perfil::with('modulos')->get(); \n return $perfiles;\n }", "public function index()\n {\n $autor=Autor::all();\n return $autor;\n }", "public function index()\n {\n //\n $users = User::orderBy('id','desc')->get();\n $albums = album::all();\n $admins = Admin::orderBy('id','desc')->get();\n return view('admin.admins',compact('users','albums','admins'));\n }", "public function index()\n {\n return Filmes::all();\n }", "public function index()\n {\n return Pensamientos::where('user_id',auth()->id())->get();\n }", "public function index()\n {\n $movie = Movie::all();\n return view('movie.movie', compact('movie'));\n }", "public function index()\n {\n $result = Tutor::all();\n return $result;\n }", "public function index()\n {\n $movies = Movie::with('genre')->with('reactions')->paginate(10);\n return response()->json($movies, 200);\n }", "public function index()\n {\n return response()->json(\n Movie::where('user_id', Auth::guard('token')->id())->get()\n );\n }", "public function show($id)\n {\n $genre = Genres::all();\n $studio = Studios::all();\n $film = Films::findOrFail($id);\n return view('film_edit',\n compact('film','genre','studio'));\n }", "public function staffAllDataShow()\n\t\t{\n\t\t\t$sql = \"SELECT * FROM staffs\";\n\t\t\t$data = parent::dbConnection() -> query($sql);\n\t\t\treturn $data;\n\t\t}", "public function index()\n {\n //\n // $movie=movie::paginate(10);\n // return view(\"insert_movie\")->with('movie',$movie);\n return Movie::latest()->get();\n }", "public function movie_list() {\n $data[\"movies\"] = $this->Movie->findAll();\n\n // Capa de la Vista\n $view['body'] = $this->load->view(\"core/movies/list\", $data, TRUE);\n $view['title'] = \"Listado de películas\";\n $this->parser->parse('core/templates/body', $view);\n }", "public static function get_admins();", "public function all()\n {\n if (!$this->isLogged())\n {\n header('Location: ' . ROOT_URL);\n exit; \n }\n else{\n\n $this->oUtil->oAdd_Admins = $this->oModel->getAll();\n\n $this->oUtil->getView('admin');\n }\n }", "public function index()\n {\n $patients = User::role('patient')->orderBy('created_at','DESC')->with('dews')->paginate(5);\n return response(view('admin.patient.patients',compact('patients')));\n }", "public static function getMovies()\n {\n // Instantiate Movie model\n $model = new Movie();\n\n // Get all movies from table\n self::$return_array['movies'] = $model::orderby('movie_title', 'asc')->get();\n\n // Return movies view with list of all movies\n return view('movies', ['return_array' => self::$return_array]);\n }", "public function show(Film $film)\n {\n //\n }", "public function show(Film $film)\n {\n //\n }", "public function index()\n {\n return MonitoreoResource::collection(Monitoreo::all());\n //return MonitoreoResource::collection(Conexione::orderBy('ipe_id', 'asc')->get());\n }", "public function index() {\n return response()->json(Movie::all());\n }", "public function index()\n {\n return 'This is list of all the movies';\n }", "public function index()\n {\n //\n return Artikel::all();\n }", "public function getAllMovies()\n {\n $query = $this->db->get(\"Movies\");\n return $query->result();\n }", "public function index()\n {\n //$this->authorize('view',Patient::class);\n return new PatientCollection(Patient::paginate(10));\n }", "public function index()\n {\n $movies = Movie::paginate(10);\n return view('movies',compact('movies'));\n }", "public function listar()\n {\n return $this->request('GET', 'unidadesmedida');\n }", "public function getAll()\n {\n return Admin::paginate($this->pagination);\n }", "public function index()\n {\n $alumnos = Alumno::all();\n return $alumnos;\n }", "public function index()\n {\n $user = Auth::user();\n if($user->rol_vp == 'admin'){\n $id = 0;\n }else{\n $id = 1;\n }\n request()->merge(['id' => $id]);\n $list = $this->funGetList(request())->data;\n return view('admin.index');\n }", "public function index()\n {\n return $permissions = $this->permission->all();\n }", "public static function getAdminList()\n {\n \t$type = \"text/html\";\n \t$terms = array(\n \t\t\t'isapproved' => 1\n \t);\n \t$data = self::getListByFilter($terms);\n \n \treturn response()->view('adminlist', [ 'data' => $data, 'isadmin' => self::isAdmin()])->header('Content-Type', $type);\n }", "public function index()\n {\n return Accessories::all();\n }", "public function index()\n\t{\n //ambil data lalu simpan di var data\n $data=$this->mymodel-> Get (\"film\");\n $data= array('data' => $data);\n //var data diubah menjadi var tipe data\n\t\t$this->load->view('hal_depan', $data);\n }", "public function index()\n {\n //$allStaff = Staff::all();\n\n\n $office = EloquentUser::find(Sentinel::getUser()->id)->office; //GET OFFICE OF MANAGER LOGGED IN\n $allStaff = Office::find($office->id)->staff; //GET ALL STAFF OF OFFICE OF MANAGER LOGGED IN\n return view('manager.staff.index')->with('allStaff',$allStaff);\n }", "public function showAdmins() { \n\t\n return View('admin.admins');\n\t\t\t\n }", "public function index()\n {\n $admin = Admin::simplePaginate(25);\n \n return new AdminResourceCollection($admin);\n }", "public function index()\n {\n $this->allowedAdminAction();\n\n return $this->showAll(Organizador::all());\n }", "public function index()\r\n {\r\n // Case movie detail\r\n if (!empty($_GET['id'])) {\r\n $this->model->id['col'] = 'id_movie';\r\n $this->model->id['val'] = $_GET['id'];\r\n \r\n $detail = $this->model->read();\r\n \r\n if (!empty($detail)) {\r\n $detail[0]->id_genre = $this->model->hasOne(Genre::class, $detail[0]->id_genre)[0]->name;\r\n $detail[0]->id_publisher = $this->model->hasOne(publisher::class, $detail[0]->id_publisher)[0]->name;\r\n }\r\n\r\n $this->render('detail', ['movie' => !empty($detail) ? $detail[0] : 'id is invalid']);\r\n exit;\r\n }\r\n \r\n // Case searoching for movie\r\n if (!empty($this->params['search'])) {\r\n\r\n // time to pagination\r\n\r\n // to serach for a movie\r\n // get query \r\n // display results\r\n // if search result is one then go to detail page (by redirecting) else go to index page\r\n // $this->model->params['WHERE'] => \"title LIKE '%\" . $this->model->params['search'] . \"%'\";\r\n\r\n $this->render('index', ['movies' => $this->model->read()]);\r\n exit;\r\n } \r\n\r\n \r\n \r\n // pagination\r\n $offset = 20;\r\n $p = isset($_GET['p']) ? ($_GET['p'] - 1) * $offset : 0;\r\n $this->model->params = [\r\n 'LIMIT' => $p . ', ' . $offset\r\n ];\r\n\r\n $this->render('index', ['movies' => $this->model->read()]);\r\n }", "public function allAdmin()\n {\n $user = auth()->user();\n\n $productos = Venta::where('estado', 1)->get();\n\n $arrProductos = array();\n foreach ($productos as $producto) {\n $arrProductos[] = array(\n $producto->nombre,\n ($producto->estado) ? 'Activo' : 'Inactivo',\n $producto->id,\n );\n }\n\n $response = array('draw' => 1, 'recordsTotal' => count($arrProductos), 'recordsFiltered' => count($arrProductos), 'data' => $arrProductos);\n\n return response()->json($response, 200);\n }", "public function index()\n {\n $rooms = Room::all();\n return RoomResource::collection($rooms);\n }", "public function index()\n {\n return GenreResource::collection(Genre::all());\n }", "public function index()\n {\n $alumniMeet = AlumniMeet::latest();\n\n if (request()->year) $alumniMeet->where('year', request()->year);\n\n return AlumniMeetResource::collection($alumniMeet->get());\n }", "public function index()\n\t{\n\t\treturn $this->room->all();\n\t}", "public function index() {\n $medfac_lists = MedicalFacility::where('status', '!=', 2)->orderBy('name','asc')->get();\n //echo \"<pre>\"; print_r($medfac_lists); die;\n return view('admin.medicalfacility.index',compact('medfac_lists'));\n }", "public function index()\n {\n $user = $this->permission(User::all(), 'id');\n\n return $this->showAll($user,User::class);\n }", "public function index()\n {\n if (\\Gate::allows('isAdmin') || \\Gate::allows('isSKAdmin')) {\n return Role::latest()->paginate(5);\n }\n }", "static function getAllAdmin()\n {\n\n $con=Database::getConnection();\n $req=$con->prepare('SELECT * FROM admin a, partners p WHERE a.idPart=p._idPart');\n $req->execute(array());\n return $req->fetchAll();\n }", "public function index()\n {\n //\n $admins = Admin::all();\n return view ('theme.admin.admin_manager')->with(['admins'=>$admins]);\n }", "public static function &getList(&$params)\n\t{\n\t\tJModelLegacy::addIncludePath(JPATH_ROOT . '/components/com_tvshows/models', 'TvshowsModel');\n\n\t\t$document = JFactory::getDocument();\n\t\t$app = JFactory::getApplication();\n\n\t\t$model = JModelLegacy::getInstance('Films', 'TvshowsModel');\n\t\t$model->setState('filter.published', 1);\n\n\t\t$films = $model->getItems();\n\n\t\treturn $films;\n\t}", "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 }", "public function index()\n {\n $data = Movie::all();\n return view('pages.backend.movie.index', compact('data'));\n }" ]
[ "0.7514433", "0.74798524", "0.72230995", "0.70703864", "0.69863576", "0.68395275", "0.68037426", "0.6707274", "0.66107804", "0.6608386", "0.6602657", "0.6563492", "0.6532715", "0.6527472", "0.6486995", "0.64767766", "0.64310926", "0.64255327", "0.6425025", "0.64202005", "0.6416128", "0.6382141", "0.63643396", "0.6352277", "0.63518083", "0.6338779", "0.6256767", "0.6251896", "0.6245775", "0.6243168", "0.6235191", "0.6228443", "0.6219673", "0.62070566", "0.61804086", "0.6176113", "0.6153253", "0.6140402", "0.613467", "0.6127352", "0.6126674", "0.60757005", "0.60506785", "0.60476536", "0.6042335", "0.60393655", "0.6021525", "0.60060555", "0.59950626", "0.5994561", "0.5994194", "0.5989235", "0.5975678", "0.597334", "0.596753", "0.5964288", "0.59612316", "0.59583366", "0.5954607", "0.5953488", "0.5948521", "0.59423983", "0.5936866", "0.5926031", "0.5921478", "0.59210616", "0.59210616", "0.5905469", "0.59019506", "0.58989936", "0.5877892", "0.5877112", "0.587529", "0.5871046", "0.5871019", "0.5870482", "0.5852595", "0.5849339", "0.58492553", "0.584912", "0.5846746", "0.5846271", "0.5844865", "0.5844173", "0.584262", "0.584196", "0.583719", "0.58230764", "0.5822115", "0.5821344", "0.5817282", "0.58145535", "0.581415", "0.5806814", "0.58062243", "0.5803468", "0.5801948", "0.5799045", "0.5797376", "0.57952935" ]
0.58992195
69
Test get messages from previous request
public function testGetMessagesFromPrevRequest() { $storage = ['slimFlash' => ['Test']]; $flash = new Messages($storage); $this->assertEquals(['Test'], $flash->getMessages()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetEmptyMessagesFromPrevRequest()\n {\n $storage = [];\n $flash = new Messages($storage);\n\n $this->assertEquals([], $flash->getMessages());\n }", "public function testMessages()\n {\n $response = $this->json('GET', '/api/messages');\n $response->assertJsonStructure([\n 'messages'=>[\n 'current_page',\n 'data' => [\n [\n 'uid',\n 'sender',\n 'subject',\n 'message',\n 'time_sent',\n 'archived',\n 'read'\n ]\n ],\n 'first_page_url',\n 'from',\n 'last_page',\n 'last_page_url',\n 'next_page_url',\n 'path',\n 'per_page',\n 'prev_page_url',\n 'to',\n 'total'\n ]\n ]);\n }", "public function testMessageThreadsV2GetMessages()\n {\n }", "public function getMessages() {}", "public function getMessages() {}", "public function testMessageThreadsV2GetMessages0()\n {\n }", "public function testSetMessagesForNextRequest()\n {\n $storage = [];\n \n $flash = new Messages($storage);\n $flash->addMessage('Test', 'Test');\n $flash->addMessage('Test', 'Test2');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['Test', 'Test2'], $storage['slimFlash']['Test']);\n }", "public function getMessages(){ }", "public function test_getAllMessages() {\n\n }", "public function testGetMessage()\n {\n // Configure HTTP basic authorization: basicAuth\n $config = Configuration::getDefaultConfiguration()\n ->setUsername('YOUR_USERNAME')\n ->setPassword('YOUR_PASSWORD');\n\n $expected_code = 200;\n // Create a mock response\n $expected = new \\Karix\\Model\\MessageListResponse();\n // Create a mock handler\n $mock = new \\GuzzleHttp\\Handler\\MockHandler([\n new \\GuzzleHttp\\Psr7\\Response($expected_code, [], $expected),\n ]);\n $handler = \\GuzzleHttp\\HandlerStack::create($mock);\n $client = new \\GuzzleHttp\\Client(['handler' => $handler]);\n\n $apiInstance = new Api\\MessageApi(\n $client,\n $config\n );\n $direction = \"direction_example\";\n $account_uid = \"account_uid_example\";\n $state = \"state_example\";\n $offset = 0;\n $limit = 10;\n\n try {\n $result = $apiInstance->getMessage($direction, $account_uid, $state, $offset, $limit);\n $this->assertEquals($expected, $result);\n } catch (Exception $e) {\n $this->fail(\"Exception when calling MessageApi->getMessage: \".$e->getMessage());\n }\n }", "public function testProtosGet()\n {\n }", "final public function onTest()\n {\n // identical to a GET request without the body output.\n // shodul proxy to the get method\n return array(); // MUST NOT return a message-body in the response\n }", "public function testGetMessageFromKeyIncludingCurrent()\n {\n $storage = ['slimFlash' => [ 'Test' => ['Test', 'Test2']]];\n $flash = new Messages($storage);\n $flash->addMessageNow('Test', 'Test3');\n\n $messages = $flash->getMessages();\n\n $this->assertEquals(['Test', 'Test2','Test3'], $flash->getMessage('Test'));\n }", "public function testMessage()\r\n {\r\n\r\n $this->flash->message(\"testMessage\");\r\n $this->assertEquals(\"testMessage\", $_SESSION[\"flash\"][\"messages\"][\"message\"][0]);\r\n\r\n }", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function testSetMessagesForCurrentRequest()\n {\n $storage = ['slimFlash' => [ 'error' => ['An error']]];\n\n $flash = new Messages($storage);\n $flash->addMessageNow('error', 'Another error');\n $flash->addMessageNow('success', 'A success');\n $flash->addMessageNow('info', 'An info');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['An error', 'Another error'], $messages['error']);\n $this->assertEquals(['A success'], $messages['success']);\n $this->assertEquals(['An info'], $messages['info']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty([], $storage['slimFlash']);\n }", "public function getResponseMessage();", "public function test_peekMessage() {\n\n }", "abstract public function get_message();", "public function testPostVoicemailMessages()\n {\n }", "public function test_get_user_messages(): void\n {\n $request = GroupRequest::ofUserName(self::DEFAULT_GROUP_DEEPLINK);\n $this->resolve($request, function (?int $groupId, ?int $accessHash) {\n $count = 0;\n $handler = function (?MessageModel $message = null) use (&$count) {\n if ($message) {\n $this->assertEquals('qweq', $message->getText());\n $count++;\n }\n };\n $client = new GroupMessagesScenario(\n new GroupId($groupId, $accessHash),\n $this->clientGenerator,\n new OptionalDateRange(),\n $handler,\n self::USERNAME\n );\n $client->setTimeout(self::TIMEOUT);\n $client->startActions();\n $this->assertEquals(1, $count);\n });\n }", "public function testGetValidMessageByMessageText(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "public function testAddMessageFromArrayForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessage('old', $formData);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals($formData, $storage['slimFlash']['old'][0]);\n }", "public function test_request(){\n\n return $this->send_request( 'en', 'es', array( 'about' ) );\n\n }", "public function testValidReturnOfUserSentMessages()\n {\n\n $senderuser = User::storeUser([\n 'username' => 'testo',\n 'email' => '[email protected]',\n 'password' => '123456789'\n ]);\n\n $token = auth()->login($senderuser);\n $headers = [$token];\n\n $receiveruser1 = User::storeUser([\n 'username' => 'testoo',\n 'email' => '[email protected]',\n 'password' => '123456789'\n ]);\n\n $receiveruser2 = User::storeUser([\n 'username' => 'testooo',\n 'email' => '[email protected]',\n 'password' => '123456789'\n ]);\n\n\n \n $message1= Message::createDummyMessage($senderuser->username, $receiveruser1->username, 'test_hii1', 'test_subject');\n\n\n $message2= Message::createDummyMessage($senderuser->username, $receiveruser2->username, 'test_hii2', 'test_subject');\n\n\n\n $this->json('GET', 'api/v1/auth/viewUserSentMessages', [], $headers)\n ->assertStatus(200)\n ->assertJson([\n \"success\" => \"true\",\n \"messages\" => [[\n \t\"receiver_name\" => \"testoo\",\n \t \"receiver_photo\" => null,\n \"message_subject\" => 'test_subject',\n \t \"message_content\" => \"test_hii1\",\n \"message_id\" => $message1->message_id,\n \"duration\" => link::duration($message1->message_date)\n\n ],[\n \t\"receiver_name\" => \"testooo\",\n \t \"receiver_photo\" => null,\n \"message_subject\" => 'test_subject',\n \t \"message_content\" => \"test_hii2\",\n \"message_id\" => $message2->message_id,\n \"duration\" => link::duration($message2->message_date)\n\n ]]\n ]);\n\n\n\n $senderuser->delete();\n $receiveruser1->delete();\n $receiveruser2->delete();\n }", "public function testGetRequest()\n {\n $response= $this->apiObject->getRequest();\n $request=$response->getBody()->getContents();\n $this->assertMatchesJsonSnapshot($request);\n echo('\n El request recibido:\n '.$request);\n }", "public function testMessageThreadsV2Get()\n {\n }", "public function testGetMessages()\n {\n $config = new Configuration();\n// $config->setHost(\"http://127.0.0.1:8080\");\n $apiInstance = new DaDaPushMessageApi(\n // If you want use custom http client, pass your client which implements `GuzzleHttp\\ClientInterface`.\n // This is optional, `GuzzleHttp\\Client` will be used as default.\n new \\GuzzleHttp\\Client(),\n $config\n );\n\n $channel_token = 'ctb3lwO6AeiZOwqZgp8BE8980FdNgp0cp6MCf';\n $page=1;\n $page_size=10;\n\n $result = $apiInstance->getMessages($page,$page_size, $channel_token);\n print_r($result);\n self::assertTrue($result->getCode()==0);\n }", "public function getMessageAction() {\n\n //this will return One message which is inserted first of All exist in Current Queue\n $result = $this->messageQueue->Get();\n $this->code = ($result)? 200 : 404;\n return new \\Symfony\\Component\\HttpFoundation\\Response(json_encode(array('result'=>$result)), $this->code , array(\n 'Content-Type' => 'application/json'\n ));\n }", "public function testGetVoicemailQueueMessages()\n {\n }", "public function testAddMessageFromArrayForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessageNow('old', $formData);\n\n $messages = $flash->getMessages();\n $this->assertEquals($formData, $messages['old'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "function getMessages(){\r\n return $this->messages;\r\n }", "public function test_refreshMessageTimeout() {\n\n }", "public function getTestMessages()\n {\n return $this->_testMessages;\n }", "public function testGetVoicemailMeMessages()\n {\n }", "public function testAddMessageFromStringForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 'value');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['value'], $messages['key']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testListFirstMessage()\n {\n $data = self::$ctnClient1->listMessages([\n 'startDate' => self::$testStartDate\n ], 1);\n\n $this->assertEquals(1, $data->msgCount);\n $this->assertTrue($data->hasMore);\n }", "public function test_get_user_messages_filtered(): void\n {\n $request = GroupRequest::ofUserName(self::DEFAULT_GROUP_DEEPLINK);\n $this->resolve($request, function (?int $groupId, ?int $accessHash) {\n $count = 0;\n $handler = function (?MessageModel $message = null) use (&$count) {\n if ($message) {\n $this->assertEquals('qweq', $message->getText());\n $count++;\n }\n };\n $client = new GroupMessagesScenario(\n new GroupId($groupId, $accessHash),\n $this->clientGenerator,\n new OptionalDateRange(time()),\n $handler,\n self::USERNAME\n );\n $client->setTimeout(self::TIMEOUT);\n $client->startActions();\n $this->assertEquals(0, $count);\n });\n }", "public function getNextMessage(){\r\n }", "public function testAddMessageFromAnIntegerForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 46);\n $flash->addMessageNow('key', 48);\n\n $messages = $flash->getMessages();\n $this->assertEquals(['46','48'], $messages['key']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testListAllMessages()\n {\n $data = self::$ctnClient1->listMessages([\n 'startDate' => self::$testStartDate\n ]);\n\n $this->assertGreaterThanOrEqual(2, $data->msgCount);\n $this->assertFalse($data->hasMore);\n }", "public function testGetMessageRequiredParams()\n {\n // Configure HTTP basic authorization: basicAuth\n $config = Configuration::getDefaultConfiguration()\n ->setUsername('YOUR_USERNAME')\n ->setPassword('YOUR_PASSWORD');\n\n $expected_code = 200;\n // Create a mock response\n $expected = new \\Karix\\Model\\MessageListResponse();\n // Create a mock handler\n $mock = new \\GuzzleHttp\\Handler\\MockHandler([\n new \\GuzzleHttp\\Psr7\\Response($expected_code, [], $expected),\n ]);\n $handler = \\GuzzleHttp\\HandlerStack::create($mock);\n $client = new \\GuzzleHttp\\Client(['handler' => $handler]);\n\n $apiInstance = new Api\\MessageApi(\n $client,\n $config\n );\n $direction = \"direction_example\";\n $account_uid = \"account_uid_example\";\n $state = \"state_example\";\n $offset = 0;\n $limit = 10;\n\n }", "static function getMessages(){\n if(key_exists(MESSAGES, $_REQUEST)){\n return $_REQUEST[MESSAGES];\n }else{\n return array();\n }\n }", "public function testMessages() {\n $result = new Hostingcheck_Result_Info();\n $this->assertEquals(array(), $result->messages());\n $this->assertFalse($result->hasMessages());\n\n $messages = array(\n new Hostingcheck_Message('Foo message'),\n new Hostingcheck_Message('Bar Message'),\n );\n $result = new Hostingcheck_Result_Info($messages);\n $this->assertEquals($messages, $result->messages());\n\n $this->assertTrue($result->hasMessages());\n }", "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 getMessagesAndFlush() {}", "public function testAddMessageFromStringForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 'value');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['value'], $storage['slimFlash']['key']);\n }", "public function testGetValidMessageByListingId(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "public function testRelatedRequests()\n {\n $firstResponse = $this->http->send(\n new Request('GET', '/visit-counter.php')\n );\n\n $secondResponse = $this->http->send(\n new Request('GET', '/visit-counter.php', $this->prepareSessionHeader($firstResponse))\n );\n\n $this->assertSame('1', (string) $firstResponse->getBody());\n $this->assertSame('2', (string) $secondResponse->getBody());\n\n $this->assertCreatedNewSession($firstResponse);\n $this->assertFalse($secondResponse->hasHeader('Set-Cookie'));\n\n $this->assertSame(1, $this->redis->dbSize());\n }", "public function testMessageThreadsV2Get0()\n {\n }", "public function testGetVoicemailMessages()\n {\n }", "public function getMessages(): array;", "public function getMessages(): array;", "public function getMessages(): array;", "public function get_messages() {\n\t\t$messages = $this->_read_messages();\n\t\t$this->clear_messages();\n\t\treturn apply_filters( 'tn_get_messages', $messages );\t\n\t}", "public function messages();", "public function messages();", "public function messages();", "public function testMessages()\n {\n $message = new PrivateMessage();\n $conversation = new Conversation();\n $this->assertEmpty($conversation->getMessages());\n\n $conversation->addMessage($message);\n $this->assertEquals(new ArrayCollection([$message]), $conversation->getMessages());\n\n $conversation->removeMessage($message);\n $this->assertEmpty($conversation->getMessages());\n }", "public function test_onHook_ok() {\n\t\t\t$request = array(\n\t\t\t\t'post' => array(\n\t\t\t\t\t'payload' => json_encode(array(\n\t\t\t\t\t\t'revision' => \"r126299\",\n\t\t\t\t\t\t'author' => 'ph',\n\t\t\t\t\t\t'log' => 'commit message',\n\t\t\t\t\t), true),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$ret = $this->instance->onHook($request);\n\n\t\t\t$this->assertTrue($ret['ok']);\n\n\t\t\t$expected = array(array(\n\t\t\t\t'channel' => '#test',\n\t\t\t\t'message' => array('text' => 'r126299: ph - commit message', 'mrkdwn' => false)\n\t\t\t));\n\t\t\t$this->assertEquals($expected, $this->instance->posted_messages);\n\t\t}", "public function doRequest()\n {\n $this->post('/api_v1/webhook/log/1',\n json_decode('{\n \"transaction_time\": \"1603711958\",\n \"id\": \"e0c523cd-3dfd-4206-83b4-9c0dc32dd77e\",\n \"event\": \"in-store-txn\",\n \"value\": 13.98,\n \"status\": \"complete\",\n \"customer_id\": \"e0c523cd-3dfd-4206-83b4-9c0dc32dd77e\"\n }'),\n [\n \"Accept\" => \"application/json\"\n ]\n );\n\n $this->assertEquals(\n 200, $this->response->getStatusCode()\n );\n }", "public function testSendFirstMessage()\n {\n $data = [\n 'message' => Str::random('50'),\n ];\n\n $this->post(route('api.send.message'), $data)\n ->assertStatus(201)\n ->assertJson(['success' => true, 'text' => $data['text']]);\n }", "public function retrieveMessengers()\n {\n return $this->start()->uri(\"/api/messenger\")\n ->get()\n ->go();\n }", "public function testIfShowMethodReturnsMessages()\n {\n // Create our topics for testing\n factory(\\App\\Models\\Topic::class, 3)->create();\n factory(\\App\\Models\\Message::class, 50)->create();\n\n $class = App::make(TopicThreadController::class);\n\n // Retrieve a topic to test against\n $topic = \\App\\Models\\Topic::inRandomOrder()->first();\n\n $messages = $class->show($topic);\n\n $this->assertInternalType('array', $messages);\n }", "public function testSmsCampaignsGet()\n {\n }", "public function testGetValidMessagebyMessageId(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "function tn_messages() {\n\tdo_action( 'tn_messages' );\n}", "public function testFetchMessages()\r\n\t\t{\r\n\t\t\r\n\t\t\t$db_host = \"localhost\"; //Host address (most likely localhost)\r\n\t\t\t$db_name = \"website_test\"; //Name of Database\r\n\t\t\t$db_user = \"websiteUser\"; //Name of database user\r\n\t\t\t$db_pass = \"4WPXGzCUm2y2TeG7\"; //Password for database user\r\n\t\t\t$db_table_prefix = \"apt_\";\r\n\t\t\t$GLOBALS['db_table_prefix'] = $db_table_prefix;\r\n\r\n\t\t\t$errors = array();\r\n\t\t\t$successes = array();\r\n\t\t\t$GLOBALS['errors'] = $errors;\r\n\t\t\t$GLOBALS['successes'] = $successes;\r\n\r\n\t\t\t//Create a new mysqli object with database connection parameters\r\n\t\t\t$mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name);\r\n\t\t\t$GLOBALS['mysqli'] = $mysqli;\r\n\r\n\t\t\tif(mysqli_connect_errno())\r\n\t\t\t{\r\n\t\t\t\techo \"Connection Failed: \" . mysqli_connect_errno();\r\n\t\t\t\t$this->assertTrue(false);\r\n\t\t\t\texit();\r\n\t\t\t}\r\n\r\n\t\t\t$messages = fetchMessages(1, \"inbox\");\r\n\t\t\t\r\n\t\t\t$result = true;\r\n\t\t\t\r\n\t\t\tif(!isset($messages) || count($messages) != 4)\r\n\t\t\t{\r\n\t\t\t\t$result = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->assertTrue($result);\r\n\t\t}", "static private function _getMsgs()\n\t{\n\t\t$msgs = Factory::getInstance( 'Session' )->get( self::$var_name );\n\n\t\tif ( $msgs )\n\t\t{\n\t\t\treturn $msgs;\n\t\t}\n\n\t\treturn array();\n\t}", "public function testGetWebhookQueueTemplateMessage()\n {\n $container = [];\n $sw = $this->createMockedSmartwaiver($container, APISuccessResponses::webhookQueueTemplateMessage(), 3);\n\n $webhook = $sw->getWebhookQueueTemplateMessage('TestingGUID');\n $this->assertInstanceOf(SmartwaiverWebhookMessage::class, $webhook);\n\n $webhook = $sw->getWebhookQueueTemplateMessage('TestingGUID', false);\n $this->assertInstanceOf(SmartwaiverWebhookMessage::class, $webhook);\n\n $webhook = $sw->getWebhookQueueTemplateMessage('TestingGUID', true);\n $this->assertInstanceOf(SmartwaiverWebhookMessage::class, $webhook);\n\n $this->checkGetRequests($container, [\n '/v4/webhooks/queues/template/TestingGUID?delete=false',\n '/v4/webhooks/queues/template/TestingGUID?delete=false',\n '/v4/webhooks/queues/template/TestingGUID?delete=true'\n ]);\n }", "public function testAddMessageFromObjectForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessageNow('user', $user);\n\n $messages = $flash->getMessages();\n $this->assertInstanceOf(\\stdClass::class, $messages['user'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testReportsBouncedGet()\n {\n }", "public function testFlashAssertionMultipleRequests(): void\n {\n $this->enableRetainFlashMessages();\n $this->disableErrorHandlerMiddleware();\n\n $this->get('/posts/index/with_flash');\n $this->assertResponseCode(200);\n $this->assertFlashMessage('An error message');\n\n $this->get('/posts/someRedirect');\n $this->assertResponseCode(302);\n $this->assertFlashMessage('A success message');\n }", "public function testValidGetById() {\n\t\t//create a new message, and insert ino the database\n\t\t$newMessage = new Message(null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//send the get request to the API\n\t\t$response = $this->guzzle=get('http://bootcamp-coders.cnm.edu/~cberaun2/bread-basket/public_html/php/api/message/' . $newMessage->getMessageId(), ['headers' => ['XRSF-TOKEN' => $this->token]]);\n\n\t\t//ensure the response was sent, and the api returned a positive status\n\t\t$this->assertSame($response->getStatusCode(), 200);\n\t\t$body = $response->getBody();\n\t\t$retrievedMass = json_encode($body);\n\t\t$this->AssertSame(200, $retrievedMass->status);\n\n\t\t//ensure the returned values meet expectations (just clicking enough to make sure the right thing was obtained)\n\t\t$this->assertSame($retrievedMass->data->messageId, $newMessage->getMessageId());\n\t\t$this->assertSame($retrievedMass->data->orgId, $this->VALID_ORG_ID);\n\t}", "public function testAntBackendGetMessage()\r\n\t{\r\n\t\t// Create new mail object and save it to ANT\r\n\t\t$obj = CAntObject::factory($this->dbh, \"email_message\", null, $this->user);\r\n\t\t$obj->setGroup(\"Inbox\");\r\n\t\t$obj->setValue(\"flag_seen\", 'f');\r\n\t\t$obj->setHeader(\"Subject\", \"UnitTest EmailSubject\");\r\n\t\t$obj->setHeader(\"From\", \"[email protected]\");\r\n\t\t$obj->setHeader(\"To\", \"[email protected]\");\r\n\t\t$obj->setBody(\"UnitTest EmailBody\", \"plain\");\r\n\t\t$eid = $obj->save();\r\n\r\n\t\t$contentParams = new ContentParameters();\r\n $email = $this->backend->getEmail($eid, $contentParams);\r\n $this->assertEquals($obj->getValue(\"subject\"), $email->subject);\r\n $this->assertEquals($obj->getValue(\"sent_from\"), $email->from); \r\n \r\n // Cleanup\r\n $obj->removeHard();\r\n\t}", "public function testGetAllMessages()\n {\n // Récupération des containers\n $appartmentRepository = $this->getContainer()->get(AppartmentRepository::class);\n $messageRepository = $this->getContainer()->get(MessageRepository::class);\n $entityManager = $this->getContainer()->get(EntityManagerInterface::class);\n $notificationService = $this->getContainer()->get(NotificationService::class);\n $templating = $this->getContainer()->get(\\Twig_Environment::class);\n\n $MessageService = new MessageService($appartmentRepository, $messageRepository, $entityManager, $notificationService, $templating);\n\n $result = $MessageService->getAllMessages($this->getUser());\n\n $this->assertArrayHasKey('appartments', $result);\n $this->assertArrayHasKey('count', $result);\n $this->assertEquals(0, $result['count']);\n }", "public function testPostInvalidMessage(){\n\t\t//test to make sure non-admin can not post\n\t\t//sign out as admin, log-in as a voulenteer\n\t\t$logout = $this->guzzle-get('https://bootcamp-coders.cnm.edu/~cberaun2/bread-basket/public_html/php/controllers/sign-out-controller.php');\n\n\t\t$volLogin = new stdClass();\n\t\t$volLogin->email = \"[email protected]\";\n\t\t$volLogin->password = \"passwordabc\";\n\t\t$login = $this->guzzle->post('https://bootcamp-coders.cnm,edu/~cberaun2/bread-basket/public_html/php/controllers/sign-out-controller.php', ['allow_redirects' => ['strict' => true], 'json' => $volLogin, 'headers' => ['X-XSRF_TOKEN' => $this->token]]);\n\n\t\t$message = new Message(null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$response = $this->guzzle->post('https://bootcamp-coders.cnm,edu/~cberaun2/bread-basket/public_html/php/api/message', ['allow_redirects' => ['strict' => true], 'json' => $volLogin, 'headers' => ['X-XSRF_TOKEN' => $this->token]]);\n\n\t\t$this->assertSame($response->getStatusCode(), 200);\n\t\t$body = $response->getBody();\n\t\t$retrievedMess = json_decode($body);\n\n\t\t//Make sure the organization was not entered into the databaase\n\t\t$shouldNotExist = Message::getMessageByMessageId($this->getPDO(), $this->VALID_MESSAGE_ID);\n\t\t$this->assertSame($shouldNotExist->getSize(), 0);\n\n\t\t//makeSure 401 error is returned for trying to access an admin method as a volunteer\n\t\t$this->asserSame(401, $retrievedMess->status);\n\t}", "public function test_getMessage() {\n\n }", "public function testAddWithMultipleMessages()\n {\n Phlash::add(\"info\", \"Please log in to continue\");\n Phlash::add(\"error\", \"There was a problem processing your request\");\n\n $flashMessages = Phlash::get();\n\n $this->assertNotEmpty($flashMessages);\n $this->assertEquals(count($flashMessages), 2);\n $this->assertEquals($flashMessages[0]->id, 0);\n $this->assertEquals($flashMessages[0]->type, \"info\");\n $this->assertEquals($flashMessages[0]->message, \"Please log in to continue\");\n $this->assertEquals($flashMessages[1]->id, 1);\n $this->assertEquals($flashMessages[1]->type, \"error\");\n $this->assertEquals($flashMessages[1]->message, \"There was a problem processing your request\");\n\n Phlash::clear();\n }", "public function testAddMessageFromAnIntegerForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 46);\n $flash->addMessage('key', 48);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['46', '48'], $storage['slimFlash']['key']);\n }", "public function testGetInvalidMessageByMessageText(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "function check_message_status($messageId){\n global $platform;\n try {\n $endpoint = \"/restapi/v1.0/account/~/extension/~/message-store/\".$messageId;\n $resp = $platform->get($endpoint);\n $jsonObj = $resp->json();\n print(\"Message status: \" . $jsonObj->messageStatus . PHP_EOL);\n if ($jsonObj->messageStatus == \"Queued\"){\n sleep(2);\n check_message_status($jsonObj->id);\n }\n } catch (\\RingCentral\\SDK\\Http\\ApiException $e) {\n exit(\"Error message: \" . $e->message . PHP_EOL);\n }\n}", "public function testAssertMessagePrevious()\n {\n $this->expectException(AssertionFailedError::class);\n $this->expectExceptionMessage('Caused by `RuntimeException`');\n\n $this->get('/posts/throw_chained');\n $this->assertContentType('test');\n }", "public function testUnauthorizedReturnOfUserSentMessages()\n {\n\n $senderuser = User::storeUser([\n 'username' => 'testo',\n 'email' => '[email protected]',\n 'password' => '123456789'\n ]);\n\n $token = auth()->login($senderuser);\n $headers = [$token];\n auth()->logout();\n\n $receiveruser1 = User::storeUser([\n 'username' => 'testoo',\n 'email' => '[email protected]',\n 'password' => '123456789'\n ]);\n\n $receiveruser2 = User::storeUser([\n 'username' => 'testooo',\n 'email' => '[email protected]',\n 'password' => '123456789'\n ]);\n\n\n $message1= Message::createDummyMessage($senderuser->username, $receiveruser1->username, 'test_hii1', 'test_subject');\n\n\n $message2= Message::createDummyMessage($senderuser->username, $receiveruser2->username, 'test_hii2', 'test_subject');\n\n\n\n $this->json('GET', 'api/v1/auth/viewUserSentMessages', [], $headers)\n ->assertStatus(401)\n ->assertJson([\n \"success\" => \"false\",\n \"error\" => \"UnAuthorized\"\n ]);\n\n $senderuser->delete();\n $receiveruser1->delete();\n $receiveruser2->delete();\n }", "public function testGetValidMessageByOrgId(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "public function getMessages(): array\n {\n }", "public function testGetMessageAsync()\n {\n // Configure HTTP basic authorization: basicAuth\n $config = Configuration::getDefaultConfiguration()\n ->setUsername('YOUR_USERNAME')\n ->setPassword('YOUR_PASSWORD');\n\n $expected_code = 200;\n // Create a mock response\n $expected = new \\Karix\\Model\\MessageListResponse();\n // Create a mock handler\n $mock = new \\GuzzleHttp\\Handler\\MockHandler([\n new \\GuzzleHttp\\Psr7\\Response($expected_code, [], $expected),\n ]);\n $handler = \\GuzzleHttp\\HandlerStack::create($mock);\n $client = new \\GuzzleHttp\\Client(['handler' => $handler]);\n\n $apiInstance = new Api\\MessageApi(\n $client,\n $config\n );\n $direction = \"direction_example\";\n $account_uid = \"account_uid_example\";\n $state = \"state_example\";\n $offset = 0;\n $limit = 10;\n\n $promise = $apiInstance->getMessageAsync($direction, $account_uid, $state, $offset, $limit)->then(function ($result) use( &$expected) {\n $this->assertEquals($expected, $result);\n }, function ($exception) {\n $this->fail(\"Exception when calling MessageApi->getMessage: \".$e->getMessage());\n });\n $promise->wait();\n }", "public function testReceiveNotification()\n {\n Config::set('xchainqueue.jobClass', 'MockXchainHandlerJob');\n\n $xchain_queue_helper = app('XchainQueueHelper')->mockWebhookReceiver();\n $request = $xchain_queue_helper->buildReceiveRequest();\n\n // receive the request\n $response = $xchain_queue_helper->receiveRequest($request);\n\n // check the events\n $called_events = MockXchainHandlerJob::getCalledEvents();\n PHPUnit::assertCount(1, $called_events);\n }", "public function getMessages() {\r\n \t$this->getForm()->getMessages();\r\n }", "public function testReportsSpamchecksHistoryGet()\n {\n }", "public function get_messages(){\n return $this->messages;\n }", "public function testGetQuickInboxMessages() {\n \t$this->assertInternalType('array',$this->chatModel->getQuickInboxMessages());\n }", "public function test_message_can_be_responded_to() {\n\n $response = Message::create('a thoughtful response', $this->user, $this->message);\n $this->assertEquals($this->message, $response->getParentMessage());\n\n $response = Message::findById($response->getId());\n $this->assertEquals($this->message, $response->getParentMessage()->loadDependencies());\n\n }", "public function testPutValidMessage () {\n\n\t\t//create a new message\n\t\t$newMessage = new Message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//run a get request to establish session tokens\n\t\t$this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/');\n\n\t\t//grab the data from guzzle and enforce the status match our expectations\n\t\t$response = $this->guzzle->put('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage->getMessage(),['headers' => ['X-XRF-TOKEN' => $this->getXsrfToken()], 'json' => $newMessage] );\n\t\t$this->assertSame($response->getStatusCode(), 200);\n\t\t$body = $response->getBpdy();\n\t\t$alertLevel = json_decode($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\n\t}" ]
[ "0.6963384", "0.6546446", "0.63883805", "0.6366512", "0.6366512", "0.6299762", "0.62522984", "0.61525875", "0.6126471", "0.6036581", "0.6027699", "0.60088867", "0.60025966", "0.5976435", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.5959818", "0.5947915", "0.59442437", "0.5929224", "0.5912315", "0.5887194", "0.58819515", "0.5880776", "0.58785117", "0.58781403", "0.5862293", "0.58525515", "0.5838523", "0.58060414", "0.5789739", "0.57548493", "0.5749003", "0.57434595", "0.5732184", "0.5728034", "0.57273906", "0.5721924", "0.57159233", "0.57073724", "0.5703665", "0.5703494", "0.5695203", "0.5674957", "0.56558794", "0.56502324", "0.5648365", "0.56462574", "0.5644007", "0.56391996", "0.56332725", "0.5626531", "0.56261325", "0.56261325", "0.56261325", "0.56132466", "0.5610149", "0.5610149", "0.5610149", "0.5600595", "0.55932635", "0.5581574", "0.5553728", "0.55521446", "0.55519575", "0.5536539", "0.5534162", "0.553103", "0.5530548", "0.5528843", "0.5528194", "0.55269676", "0.55222136", "0.5515408", "0.5502833", "0.54924047", "0.54919225", "0.5488762", "0.54789424", "0.5473849", "0.54622805", "0.5459757", "0.5457585", "0.5447779", "0.5447223", "0.5441155", "0.5438682", "0.54379034", "0.5431926", "0.54309", "0.5427145", "0.5422739", "0.5420787", "0.5415594", "0.54128826" ]
0.7407301
0
Test a string can be added to a message array for the current request
public function testAddMessageFromAnIntegerForCurrentRequest() { $storage = ['slimFlash' => []]; $flash = new Messages($storage); $flash->addMessageNow('key', 46); $flash->addMessageNow('key', 48); $messages = $flash->getMessages(); $this->assertEquals(['46','48'], $messages['key']); $this->assertArrayHasKey('slimFlash', $storage); $this->assertEmpty($storage['slimFlash']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddMessageFromStringForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 'value');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['value'], $messages['key']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testAddMessageFromStringForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 'value');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['value'], $storage['slimFlash']['key']);\n }", "function check_for_querystrings() {\r\n\t\t\tif ( isset( $_REQUEST['message'] ) ) {\r\n\t\t\t\tUM()->shortcodes()->message_mode = true;\r\n\t\t\t}\r\n\t\t}", "public function testAddMessageFromArrayForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessageNow('old', $formData);\n\n $messages = $flash->getMessages();\n $this->assertEquals($formData, $messages['old'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testAddMessageFromArrayForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessage('old', $formData);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals($formData, $storage['slimFlash']['old'][0]);\n }", "public function add_request($request='') {\n $request = JsonParser::decode($request);\n if (is_array($request) === false) {\n $request = array($request);\n }\n $this->__requests[] = $request;\n return (true);\n }", "function add($message) { return; }", "function isValid(&$inMessage = '');", "public function testSetMessagesForNextRequest()\n {\n $storage = [];\n \n $flash = new Messages($storage);\n $flash->addMessage('Test', 'Test');\n $flash->addMessage('Test', 'Test2');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['Test', 'Test2'], $storage['slimFlash']['Test']);\n }", "public function testGetValidMessageByMessageText(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "function setMessage($message, $type, &$array)\n{\n array_push($array, array(\n 'Message' => $message,\n 'Type' => $type\n ));\n}", "private function correctRequest($msg){\n return array(\"error\" => false,\"msg\" => $msg);\n }", "static function hasMessage()\n {\n foreach (self::TYPES as $type)\n {\n if (self::has($type)) return true;\n }\n return false;\n }", "public function add(string $data): bool {}", "function getMsg($param) {\n global $msg;\n $msg = \"\";\n $msgCount = 1;\n for($i = 0; $i < strlen('$str'); $i++) {\n if($str[$i] != \"*\" && $msgCount == $param && $activeMsg) {\n $msg .= $str[$i];\n } else if($str[$i] == \"*\") {\n $msgCount++;\n $activeAuthor = true;\n $activeMsg = false;\n } else if($str[$i] == \":\") {\n $activeAuthor = false;\n $activeMsg = true;\n }\n }\n }", "function add_message($messages){\n global $messages;\n $messages[] = $messages;\n}", "public static function addMessage($message, $type){\n if (in_array($type, self::$typesArray)) {\n $_SESSION['flashMessages'][$type][] = $message;\n return true;\n }\n return false;\n }", "public function addMessage($message);", "public function add_message( $string, $error = false ) {\n\t\tif ( $error ) {\n\t\t\t$this->admin_error[] = (string) $string;\n\t\t} else {\n\t\t\t$this->admin_message[] = (string) $string;\n\t\t}\n\t}", "public function hasMsg(){\n return $this->_has(18);\n }", "public function messageProvider()\n {\n return [[\"a string\"]];\n }", "public function hasMessage(): bool\n {\n return $this->hasJson('message');\n }", "function add_message($msg, $msg_type = MSG_TYPE_SUCCESS) {\n if (!isset($_SESSION['message']))\n $_SESSION['message'] = [];\n $_SESSION['message'][] = ['type' => $msg_type, 'message' => htmlentities($msg, ENT_QUOTES)];\n}", "function filterRequest($msg){\n if(isset($_GET['type'])){\n $type = $_GET['type'];\n\n // Verify data type\n if($type == 'data'){\n handleDataRequest($msg);\n }else if($type == 'multiple'){\n handleMultipleData($msg);\n }else if($type == 'station'){\n handleStationsRequest($msg);\n }else{\n $msg->message = 'Requested type not existing!';\n $msg->toJson();\n }\n }else{\n $msg->message = 'Type not set!';\n $msg->toJson();\n }\n}", "public function testAddMessageFromAnIntegerForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 46);\n $flash->addMessage('key', 48);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['46', '48'], $storage['slimFlash']['key']);\n }", "abstract protected function processMessage(array $data, array $message) : bool;", "public function testSetMessagesForCurrentRequest()\n {\n $storage = ['slimFlash' => [ 'error' => ['An error']]];\n\n $flash = new Messages($storage);\n $flash->addMessageNow('error', 'Another error');\n $flash->addMessageNow('success', 'A success');\n $flash->addMessageNow('info', 'An info');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['An error', 'Another error'], $messages['error']);\n $this->assertEquals(['A success'], $messages['success']);\n $this->assertEquals(['An info'], $messages['info']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty([], $storage['slimFlash']);\n }", "function get_request_contains($request_url,$search_string) {\n //get the current url\n $string = $search_string;\n $url = $request_url;\n //~ echo $request_url;\n //check for string in url\n $lookup = strpos($url, $string);\n\n\n //If string is found, set the value of found_context\n if($lookup > 1 || $lookup !== false) {\n //~ echo 'is_component request';\n return true;\n }\n\n //If not found, set UNSET the value of found_context\n else {\n //~ echo 'is_not component request';\n return false; \n }\n}", "protected abstract function _message();", "function array_contains_part_of_string ($string, $array) {\n\tforeach ($array as $value) {\n\t\t//if (strstr($string, $url)) { // mine version\n\t\tif (strpos($string, $value) !== FALSE) { // Yoshi version\n\t\t\treturn true;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}\n return false;\n\t\n}", "private function validate_strings(array &$string_arr) {\n foreach ($string_arr as $string) {\n if (self::getChar($string, 0) !== '-' || \n self::testArgExists($string) === false ||\n self::testSubArg($string) === false) {\n trigger_error(\"Malformed string $string found via\n validate_strings.\");\n }\n }\n }", "public function parseRequest($message);", "public function match($message);", "public function testAddMessageFromObjectForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessageNow('user', $user);\n\n $messages = $flash->getMessages();\n $this->assertInstanceOf(\\stdClass::class, $messages['user'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "function addMessage($txt = \"\"){\t$this->mMessages\t.= $txt;\t}", "public function testGetInvalidMessageByMessageText(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "public function setMessage ($msg, $clearPrevious = false) {\n\t\n\t\tif ($msg != \"\") {\n\t\t\n\t\t\t// convert it to an array\n\t\t\tif (!is_array($msg)) {\n\t\t\t\t$msg = array($msg);\n\t\t\t}\n\t\t\t\n\t\t\t// should we reset it first?\n\t\t\tif ($clearPrevious) {\n\t\t\t\t$this->message = \"\";\n\t\t\t}\n\t\t\t\n\t\t\t// loop through elements\n\t\t\tforeach ($msg as $str) {\n\t\t\t\n\t\t\t\tif (is_array($this->message)) {\n\t\t\t\t\t$this->message[] = $str;\n\t\t\t\t} elseif ($this->message != \"\") {\n\t\t\t\t\t$this->message = array($this->message, $str);\n\t\t\t\t} else {\n\t\t\t\t\t$this->message = $str;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\n\t}", "public function validArrayForStringConfigurationProvider() {}", "function thrive_dashboard_add_message($message)\n{\n $messages = get_option('td_messages', array());\n\n if (is_string($message)) {\n $message = array(\n 'text' => $message,\n 'css_class' => 'info'\n );\n }\n\n $messages[] = $message;\n update_option('td_messages', $messages);\n}", "public function testIsActionName(): void\n {\n foreach (['delete', 'edit', 'index', 'view'] as $action) {\n $this->assertFalse($this->Request->is($action));\n }\n\n $this->assertTrue($this->Request->is('add'));\n $this->assertTrue($this->Request->is(['add', 'edit']));\n $this->assertFalse($this->Request->is(['delete', 'edit']));\n }", "static function getMessages(){\n if(key_exists(MESSAGES, $_REQUEST)){\n return $_REQUEST[MESSAGES];\n }else{\n return array();\n }\n }", "public function validate_request() {\r\n\t\tif ($this->request != null && sizeof($this->request) != 1)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public function test_array_returns_false_when_optional_and_input_string() {\n\t\t$optional = true;\n\n\t\t$result = self::$validator->validate( 'string val', $optional );\n\t\t$this->assertFalse( $result );\n\t}", "public function setMessage() {\n $numArgs = func_num_args();\n\n switch ($numArgs) {\n default:\n return false;\n break;\n\n // A global rule error message\n case 2:\n foreach ($this->post(null) as $key => $val) {\n $this->_errorPhraseOverrides[$key][func_get_arg(0)] = func_get_arg(1);\n }\n break;\n\n // Field specific rule error message\n case 3:\n $this->_errorPhraseOverrides[func_get_arg(1)][func_get_arg(0)] = func_get_arg(2);\n break;\n }\n\n return true;\n }", "public function hasSendername(){\n return $this->_has(5);\n }", "public function testValidationByKeynameAddl()\n {\n $init = 'test';\n $str = new \\Pv\\PString($init);\n $str->addValidation('length[1]', 'test1');\n\n $valid = $str->getValidation();\n $this->assertTrue(isset($valid['test1']));\n }", "function messages_can_edit($hook_name, $entity_type, $return_value, $parameters) {\n\n\tglobal $messagesendflag;\n\n\tif ($messagesendflag == 1) {\n\t\t$entity = $parameters['entity'];\n\t\tif ($entity->getSubtype() == \"messages\") {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn $return_value;\n}", "protected function has($string)\n {\n if (stripos($this->message, $string) !== false) {\n return true;\n }\n return false;\n }", "static function message($message)\n {\n global $template_vars;\n $template_vars['messages'][] = $message;\n }", "public function getEventadd($messages = \"\");", "public function needsVerificationMessage ();", "public function isMessage()\n {\n return !empty(self::$message);\n }", "public function vxMessageCreateCheck() {\n\t\t$rt = array();\n\t\t\n\t\t$rt['errors'] = 0;\n\t\t\n\t\t$rt['msg_receivers_value'] = '';\n\t\t/* receivers: raw */\n\t\t$rt['msg_receivers_a'] = array();\n\t\t/* receivers: validated */\n\t\t$rt['msg_receivers_v'] = array();\n\t\t/* receivers: validated names */\n\t\t$rt['msg_receivers_n'] = array();\n\t\t/* msg_receivers_error:\n\t\t0 => no error\n\t\t1 => empty\n\t\t2 => not exist\n\t\t999 => unspecific */\n\t\t$rt['msg_receivers_error'] = 0;\n\t\t$rt['msg_receivers_error_msg'] = array(1 => '你忘记写收件人了', 2 => '你写的一位或多位收件人不存在');\n\t\t\n\t\tif (isset($_POST['msg_receivers'])) {\n\t\t\t$rt['msg_receivers_value'] = make_single_safe($_POST['msg_receivers']);\n\t\t\tif (strlen($rt['msg_receivers_value']) > 0) {\n\t\t\t\t$rt['msg_receivers_a'] = explode(',', $rt['msg_receivers_value']);\n\t\t\t\tforeach ($rt['msg_receivers_a'] as $msg_receiver) {\n\t\t\t\t\t$msg_receiver = trim($msg_receiver);\n\t\t\t\t\t$sql = \"SELECT usr_id, usr_nick FROM babel_user WHERE usr_nick = '{$msg_receiver}'\";\n\t\t\t\t\t$rs = mysql_query($sql, $this->db);\n\t\t\t\t\tif (mysql_num_rows($rs) == 1) {\n\t\t\t\t\t\t$User = mysql_fetch_object($rs);\n\t\t\t\t\t\tmysql_free_result($rs);\n\t\t\t\t\t\tif ($User->usr_id != $this->User->usr_id) {\n\t\t\t\t\t\t\tif (!in_array($User->usr_id, $rt['msg_receivers_v'])) {\n\t\t\t\t\t\t\t\t$rt['msg_receivers_v'][] = $User->usr_id;\n\t\t\t\t\t\t\t\t$rt['msg_receivers_n'][] = $User->usr_nick;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmysql_free_result($rs);\n\t\t\t\t\t\t$rt['msg_receivers_error'] = 2;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($rt['msg_receivers_error'] == 0) {\n\t\t\t\t\tif (count($rt['msg_receivers_v']) == 0) {\n\t\t\t\t\t\t$rt['msg_receivers_value'] = '';\n\t\t\t\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$rt['msg_receivers_value'] = implode(',', $rt['msg_receivers_n']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\t$rt['msg_body_value'] = '';\n\t\t$rt['msg_body_error'] = 0;\n\t\t$rt['msg_body_error_msg'] = array(1 => '你忘记写消息内容了', 2 => '你写的消息内容超出长度限制了');\n\t\t\n\t\tif (isset($_POST['msg_body'])) {\n\t\t\t$rt['msg_body_value'] = make_multi_safe($_POST['msg_body']);\n\t\t\t$rt['msg_body_length'] = mb_strlen($rt['msg_body_value'], 'UTF-8');\n\t\t\tif ($rt['msg_body_length'] > 0) {\n\t\t\t\tif ($rt['msg_body_length'] > 200) {\n\t\t\t\t\t$rt['msg_body_error'] = 2;\n\t\t\t\t\t$rt['errors']++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$rt['msg_body_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['msg_body_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\treturn $rt;\n\t}", "public function testAssertResponseContainsWithIgnoreCaseFlag(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withStringBody('Some content');\n\n $this->assertResponseContains('some', 'Failed asserting that the body contains given content', true);\n }", "public function validArrayForStringConfigurationIgnoreCaseProvider() {}", "public function test_array_returns_false_when_not_optional_and_input_string() {\n\t\t$optional = false;\n\n\t\t$result = self::$validator->validate( 'string val', $optional );\n\t\t$this->assertFalse( $result );\n\t}", "function addMessage( $message )\n {\n if ( isset($message['errorMessage']) )\n {\n $this->messages[] = array_merge($this->empty_message,$message);\n } else if ( isset($message[0]) && isset($message[0]['errorMessage']) ) {\n foreach ( $message as $m )\n {\n $this->messages[] = array_merge($this->empty_message,$m);\n }\n }\n }", "function sample_spam_check(&$string, &$name, &$email, &$url, &$ip)\n{\n $words = array('boob', 'titty', 'teenage', 'viagra');\n foreach ( $words as $word )\n {\n if ( stristr($string, $word) )\n return false;\n }\n // This name always means trouble.\n if ( $name == 'Pojo' )\n return false;\n // Block hotmail e-mail addresses\n if ( preg_match('/@hotmail\\.com$/', $email) )\n return false;\n // Check URL for bad words\n foreach ( $words as $word )\n {\n if ( stristr($url, $word) )\n return false;\n }\n // block IPs\n if ( $ip == '127.0.1.1') \n return false;\n \n // Always return true if all checks pass!\n return true;\n}", "public function testAddWithMultipleMessages()\n {\n Phlash::add(\"info\", \"Please log in to continue\");\n Phlash::add(\"error\", \"There was a problem processing your request\");\n\n $flashMessages = Phlash::get();\n\n $this->assertNotEmpty($flashMessages);\n $this->assertEquals(count($flashMessages), 2);\n $this->assertEquals($flashMessages[0]->id, 0);\n $this->assertEquals($flashMessages[0]->type, \"info\");\n $this->assertEquals($flashMessages[0]->message, \"Please log in to continue\");\n $this->assertEquals($flashMessages[1]->id, 1);\n $this->assertEquals($flashMessages[1]->type, \"error\");\n $this->assertEquals($flashMessages[1]->message, \"There was a problem processing your request\");\n\n Phlash::clear();\n }", "public function testSetMessages()\n {\n $this->_validator->setMessages(\n [\n Zend_Validate_StringLength::TOO_LONG => 'Your value is too long',\n Zend_Validate_StringLength::TOO_SHORT => 'Your value is too short'\n ]\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n\n $this->assertFalse($this->_validator->isValid('abc'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too short', current($messages));\n }", "public function testWarningsMessageIsStringAndNotEmpty(): void\n {\n $value = $this->get_reflection_property_value('warnings')[0];\n\n $this->assertIsString($value['message']);\n $this->assertNotEmpty($value['message']);\n }", "#[@test]\n public function stringArrayNotAssignableFromString() {\n $this->assertFalse(ArrayType::forName('string[]')->isAssignableFrom('string'));\n }", "function addMessage($texte)\n {\n $this->errorData[][\"message\"] = $texte;\n }", "public function testGetMessageFromKeyIncludingCurrent()\n {\n $storage = ['slimFlash' => [ 'Test' => ['Test', 'Test2']]];\n $flash = new Messages($storage);\n $flash->addMessageNow('Test', 'Test3');\n\n $messages = $flash->getMessages();\n\n $this->assertEquals(['Test', 'Test2','Test3'], $flash->getMessage('Test'));\n }", "public function isMessage() {\n return (bool) !empty(self::$message);\n }", "final protected function addLog(string $string) : bool\n {\n $return = call_user_func($this->logger, $string);\n return $return;\n }", "function areSet($submit, $arr) {\n if(empty($submit)) return false;\n $json = json_encode($submit);\n foreach ($arr as $variable) {\n if (strpos($json, $variable)==-1) return false;\n }\n return true;\n}", "function is_request($meta = array())\n {\n }", "function testf(Request $request)\n {\n return $this->sendSubsriptionSmsToSubscriber($request->str, $request->str1, $request->str2);\n }", "public function testAddMessage()\n {\n $message1 = new Hostingcheck_Message('Foo message');\n $result = new Hostingcheck_Result_Info();\n $result->addMessage($message1);\n $this->assertEquals(array($message1), $result->messages());\n\n $message2 = new Hostingcheck_Message('Bar message');\n $result->addMessage($message2);\n $this->assertEquals(array($message1, $message2), $result->messages());\n\n $this->assertTrue($result->hasMessages());\n }", "function record_message($message) {\n global $messages;\n array_push($messages, $message);\n}", "function processReqString ($req) {\r\n\r\n\t$question = explode(\"|\", $req);\r\n\tif(sizeof($req) ==0 ) {\r\n\t\techo 'error: The provided string is incorrect';\r\n\t\treturn null;\r\n\t}\r\n\t$arr = array_map(\"splitQuestions\", $question);\r\n\treturn $arr;\r\n\r\n\r\n}", "public function testAddString() {\n $head = Head::getInstance();\n $head->add('Invalid head string');\n }", "public function testGetFlashArray()\n {\n $expected = array('my_test_flash' => 'flash value', \n 'my_other_flash' => 'flash stuff');\n $this->assertEquals($expected, $this->_req->getFlash());\n }", "public function matches(MessageReceived $message): bool\n {\n $haystack = $this->values;\n\n if ($haystack instanceof Collection) {\n $haystack = $haystack->toArray();\n }\n\n return in_array($message->getText(), $haystack, false);\n }", "public function hasRequest(string $name): bool {}", "public function doesSupportRichMessage()\n {\n return in_array($this->requestSource, $this->supportedRichMessagePlatforms);\n }", "public function testAddMessageFromObjectForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessage('user', $user);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertInstanceOf(\\stdClass::class, $storage['slimFlash']['user'][0]);\n }", "public function isMessage() {\n return (bool) (!empty(self::$message));\n }", "static function checkTweetMessage($message) {\n if(strlen($message) <= 140) {\n return true;\n }\n return false;\n }", "function testMakeNeatArray() {\r\n\t\t$this->Toolbar->makeNeatArray(array(1,2,3));\r\n\t\t$result = $this->firecake->sentHeaders;\r\n\t\t$this->assertTrue(isset($result['X-Wf-1-1-1-1']));\r\n\t\t$this->assertPattern('/\\[1,2,3\\]/', $result['X-Wf-1-1-1-1']);\r\n\t}", "public function isSent() {}", "function cis_login_message($msg) {\n\tglobal $cis_login_message;\n\t$cis_login_message[] = $msg;\n}", "public static function checkRequest($request)\n {\n $request = json_decode($request);\n\n $isMessaging = isset($request->activities[0]);\n if ($isMessaging && count($request->activities)) {\n return true;\n }\n return false;\n }", "public function invalidArrayForStringConfigurationIgnoreCaseProvider() {}", "private function checkMessageSanity(string $message, DataObject $context): bool\n {\n try {\n $replaced = $this->placeholderProcessor->process($message, $context, true);\n if (strpos($replaced, $this->placeholderProcessor->getUnknownText()) !== false) {\n return false;\n }\n } catch (Exception $e) {\n return false;\n }\n\n return true;\n }", "function isTheseParametersAvailable($required_fields)\n{\n $error = false;\n $error_fields = \"\";\n $request_params = $_REQUEST;\n\n foreach ($required_fields as $field) {\n if (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\n $error = true;\n $error_fields .= $field . ', ';\n }\n }\n\n if ($error) {\n $response = array();\n $response[\"error\"] = true;\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n echo json_encode($response);\n return false;\n }\n return true;\n}", "#[@test]\n public function stringArrayNotAssignableFromStringMap() {\n $this->assertFalse(ArrayType::forName('string[]')->isAssignableFrom('[:string]'));\n }", "private function check_message ()\n\t{\t\tif (isset($_SESSION['message']))\n\t\t{\n\t\t\t// Add it as an attribute and erase the stored version\n\t\t\t$this->message = $_SESSION['message'];\n\t\t\tunset($_SESSION['message']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->message = \"\";\n\t\t}\n\t}", "#[@test]\n public function stringArrayAssignableFromStringArray() {\n $this->assertTrue(ArrayType::forName('string[]')->isAssignableFrom('string[]'));\n }", "public function testSetMessage()\n {\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals(\"'$inputInvalid' is more than 8 characters long\", current($messages));\n\n $this->_validator->setMessage(\n 'Your value is too long',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n }", "function arrayContains($str, array $arr)\t{\r\n\t\t//write_log(\"Function Fired.\");\r\n\t\t$result = array_intersect($arr,explode(\" \",$str));\r\n\t\tif (count($result)==1) $result = true;\r\n\t\tif (count($result)==0) $result = false;\r\n\t\treturn $result;\r\n\t}", "function canHandleRequest() ;", "public function isRequest();", "public function _check_request_info() {\n\t\t$msg = '';\n\t\tif ($this->generate_invoice_request) {\n\t\t\tif (($this->generate_request_amount < 1) || ($this->generate_request_amount > 100)) {\n\t\t\t\t$msg .= \"Invoice request amount must be between 1 and 100.<br />\";\n\t\t\t}\n\t\t\tif (!$this->generate_request_recipients) {\n\t\t\t\t$msg .= \"You must select a user as a recipient for the invoice request.<br />\";\n\t\t\t}\n\t\t}\n\t\treturn $msg;\n\t}", "static function assertStringStartsNotWith($prefix, $string, $message = '')\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::assertStringStartsNotWith', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function testContains2()\n {\n $this->assertTrue(Str::contains('foo', ['y', 'o']));\n }", "public function match($request) {\n $requestArr = $this->explodeRequest($request);\n /*if (count($requestArr) < $this->countPatternArr) {\n return false;\n }*/\n for ($i = 0; $i < $this->countPatternArr; $i++) {\n if ($this->isParam($this->patternArr[$i])) {\n continue;\n }\n if (0 !== strcasecmp($this->patternArr[$i], $requestArr[$i])) {\n return false;\n }\n }\n return true;\n }", "public function allowMessage()\n {\n $this->_data['Mensaje'] = 1;\n }", "protected function addMessage(string $message, $type = self::MESSAGE_INFO) {\n\t\t$this->messages[$type][] = $message;\n\t}" ]
[ "0.63396215", "0.6315442", "0.5907559", "0.58490497", "0.58008903", "0.5735759", "0.5543733", "0.5439099", "0.53641605", "0.5336792", "0.5280305", "0.526865", "0.5263324", "0.52414083", "0.52326226", "0.5206398", "0.52054787", "0.51950544", "0.5192795", "0.5176214", "0.5148472", "0.5122962", "0.51049644", "0.50982314", "0.50963503", "0.5096123", "0.50943255", "0.5076997", "0.5063564", "0.5056241", "0.50465584", "0.5044714", "0.5037546", "0.5035765", "0.50282156", "0.5021724", "0.5015227", "0.50010985", "0.49952915", "0.49935466", "0.49914533", "0.4960497", "0.4957945", "0.4954491", "0.4950263", "0.49498418", "0.49472302", "0.49467027", "0.49330312", "0.49200395", "0.49183592", "0.4918285", "0.49145058", "0.49115178", "0.4906762", "0.49027076", "0.49006507", "0.48988274", "0.48973513", "0.48957375", "0.48945343", "0.48920113", "0.48895895", "0.48835066", "0.48706663", "0.48686698", "0.4866836", "0.48662418", "0.48550454", "0.48465428", "0.48461488", "0.4837291", "0.48358575", "0.4832653", "0.48314372", "0.4821571", "0.4818591", "0.4809613", "0.4800816", "0.48005804", "0.47947618", "0.47938976", "0.47917634", "0.47901392", "0.4789383", "0.47816867", "0.47798637", "0.47793546", "0.4779256", "0.47758812", "0.47722703", "0.47713012", "0.47703952", "0.47650868", "0.47646007", "0.47639427", "0.47619876", "0.47543865", "0.47540772", "0.4751003" ]
0.5324709
10
Test a string can be added to a message array for the current request
public function testAddMessageFromStringForCurrentRequest() { $storage = ['slimFlash' => []]; $flash = new Messages($storage); $flash->addMessageNow('key', 'value'); $messages = $flash->getMessages(); $this->assertEquals(['value'], $messages['key']); $this->assertArrayHasKey('slimFlash', $storage); $this->assertEmpty($storage['slimFlash']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddMessageFromStringForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 'value');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['value'], $storage['slimFlash']['key']);\n }", "function check_for_querystrings() {\r\n\t\t\tif ( isset( $_REQUEST['message'] ) ) {\r\n\t\t\t\tUM()->shortcodes()->message_mode = true;\r\n\t\t\t}\r\n\t\t}", "public function testAddMessageFromArrayForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessageNow('old', $formData);\n\n $messages = $flash->getMessages();\n $this->assertEquals($formData, $messages['old'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testAddMessageFromArrayForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessage('old', $formData);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals($formData, $storage['slimFlash']['old'][0]);\n }", "public function add_request($request='') {\n $request = JsonParser::decode($request);\n if (is_array($request) === false) {\n $request = array($request);\n }\n $this->__requests[] = $request;\n return (true);\n }", "function add($message) { return; }", "function isValid(&$inMessage = '');", "public function testSetMessagesForNextRequest()\n {\n $storage = [];\n \n $flash = new Messages($storage);\n $flash->addMessage('Test', 'Test');\n $flash->addMessage('Test', 'Test2');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['Test', 'Test2'], $storage['slimFlash']['Test']);\n }", "public function testGetValidMessageByMessageText(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "public function testAddMessageFromAnIntegerForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 46);\n $flash->addMessageNow('key', 48);\n\n $messages = $flash->getMessages();\n $this->assertEquals(['46','48'], $messages['key']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "function setMessage($message, $type, &$array)\n{\n array_push($array, array(\n 'Message' => $message,\n 'Type' => $type\n ));\n}", "private function correctRequest($msg){\n return array(\"error\" => false,\"msg\" => $msg);\n }", "static function hasMessage()\n {\n foreach (self::TYPES as $type)\n {\n if (self::has($type)) return true;\n }\n return false;\n }", "public function add(string $data): bool {}", "function getMsg($param) {\n global $msg;\n $msg = \"\";\n $msgCount = 1;\n for($i = 0; $i < strlen('$str'); $i++) {\n if($str[$i] != \"*\" && $msgCount == $param && $activeMsg) {\n $msg .= $str[$i];\n } else if($str[$i] == \"*\") {\n $msgCount++;\n $activeAuthor = true;\n $activeMsg = false;\n } else if($str[$i] == \":\") {\n $activeAuthor = false;\n $activeMsg = true;\n }\n }\n }", "function add_message($messages){\n global $messages;\n $messages[] = $messages;\n}", "public static function addMessage($message, $type){\n if (in_array($type, self::$typesArray)) {\n $_SESSION['flashMessages'][$type][] = $message;\n return true;\n }\n return false;\n }", "public function addMessage($message);", "public function add_message( $string, $error = false ) {\n\t\tif ( $error ) {\n\t\t\t$this->admin_error[] = (string) $string;\n\t\t} else {\n\t\t\t$this->admin_message[] = (string) $string;\n\t\t}\n\t}", "public function hasMsg(){\n return $this->_has(18);\n }", "public function messageProvider()\n {\n return [[\"a string\"]];\n }", "public function hasMessage(): bool\n {\n return $this->hasJson('message');\n }", "function add_message($msg, $msg_type = MSG_TYPE_SUCCESS) {\n if (!isset($_SESSION['message']))\n $_SESSION['message'] = [];\n $_SESSION['message'][] = ['type' => $msg_type, 'message' => htmlentities($msg, ENT_QUOTES)];\n}", "function filterRequest($msg){\n if(isset($_GET['type'])){\n $type = $_GET['type'];\n\n // Verify data type\n if($type == 'data'){\n handleDataRequest($msg);\n }else if($type == 'multiple'){\n handleMultipleData($msg);\n }else if($type == 'station'){\n handleStationsRequest($msg);\n }else{\n $msg->message = 'Requested type not existing!';\n $msg->toJson();\n }\n }else{\n $msg->message = 'Type not set!';\n $msg->toJson();\n }\n}", "public function testAddMessageFromAnIntegerForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 46);\n $flash->addMessage('key', 48);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['46', '48'], $storage['slimFlash']['key']);\n }", "public function testSetMessagesForCurrentRequest()\n {\n $storage = ['slimFlash' => [ 'error' => ['An error']]];\n\n $flash = new Messages($storage);\n $flash->addMessageNow('error', 'Another error');\n $flash->addMessageNow('success', 'A success');\n $flash->addMessageNow('info', 'An info');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['An error', 'Another error'], $messages['error']);\n $this->assertEquals(['A success'], $messages['success']);\n $this->assertEquals(['An info'], $messages['info']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty([], $storage['slimFlash']);\n }", "abstract protected function processMessage(array $data, array $message) : bool;", "function get_request_contains($request_url,$search_string) {\n //get the current url\n $string = $search_string;\n $url = $request_url;\n //~ echo $request_url;\n //check for string in url\n $lookup = strpos($url, $string);\n\n\n //If string is found, set the value of found_context\n if($lookup > 1 || $lookup !== false) {\n //~ echo 'is_component request';\n return true;\n }\n\n //If not found, set UNSET the value of found_context\n else {\n //~ echo 'is_not component request';\n return false; \n }\n}", "protected abstract function _message();", "function array_contains_part_of_string ($string, $array) {\n\tforeach ($array as $value) {\n\t\t//if (strstr($string, $url)) { // mine version\n\t\tif (strpos($string, $value) !== FALSE) { // Yoshi version\n\t\t\treturn true;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}\n return false;\n\t\n}", "public function parseRequest($message);", "private function validate_strings(array &$string_arr) {\n foreach ($string_arr as $string) {\n if (self::getChar($string, 0) !== '-' || \n self::testArgExists($string) === false ||\n self::testSubArg($string) === false) {\n trigger_error(\"Malformed string $string found via\n validate_strings.\");\n }\n }\n }", "public function match($message);", "public function testAddMessageFromObjectForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessageNow('user', $user);\n\n $messages = $flash->getMessages();\n $this->assertInstanceOf(\\stdClass::class, $messages['user'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "function addMessage($txt = \"\"){\t$this->mMessages\t.= $txt;\t}", "public function testGetInvalidMessageByMessageText(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}", "public function setMessage ($msg, $clearPrevious = false) {\n\t\n\t\tif ($msg != \"\") {\n\t\t\n\t\t\t// convert it to an array\n\t\t\tif (!is_array($msg)) {\n\t\t\t\t$msg = array($msg);\n\t\t\t}\n\t\t\t\n\t\t\t// should we reset it first?\n\t\t\tif ($clearPrevious) {\n\t\t\t\t$this->message = \"\";\n\t\t\t}\n\t\t\t\n\t\t\t// loop through elements\n\t\t\tforeach ($msg as $str) {\n\t\t\t\n\t\t\t\tif (is_array($this->message)) {\n\t\t\t\t\t$this->message[] = $str;\n\t\t\t\t} elseif ($this->message != \"\") {\n\t\t\t\t\t$this->message = array($this->message, $str);\n\t\t\t\t} else {\n\t\t\t\t\t$this->message = $str;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\n\t}", "public function validArrayForStringConfigurationProvider() {}", "function thrive_dashboard_add_message($message)\n{\n $messages = get_option('td_messages', array());\n\n if (is_string($message)) {\n $message = array(\n 'text' => $message,\n 'css_class' => 'info'\n );\n }\n\n $messages[] = $message;\n update_option('td_messages', $messages);\n}", "static function getMessages(){\n if(key_exists(MESSAGES, $_REQUEST)){\n return $_REQUEST[MESSAGES];\n }else{\n return array();\n }\n }", "public function testIsActionName(): void\n {\n foreach (['delete', 'edit', 'index', 'view'] as $action) {\n $this->assertFalse($this->Request->is($action));\n }\n\n $this->assertTrue($this->Request->is('add'));\n $this->assertTrue($this->Request->is(['add', 'edit']));\n $this->assertFalse($this->Request->is(['delete', 'edit']));\n }", "public function validate_request() {\r\n\t\tif ($this->request != null && sizeof($this->request) != 1)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public function test_array_returns_false_when_optional_and_input_string() {\n\t\t$optional = true;\n\n\t\t$result = self::$validator->validate( 'string val', $optional );\n\t\t$this->assertFalse( $result );\n\t}", "public function setMessage() {\n $numArgs = func_num_args();\n\n switch ($numArgs) {\n default:\n return false;\n break;\n\n // A global rule error message\n case 2:\n foreach ($this->post(null) as $key => $val) {\n $this->_errorPhraseOverrides[$key][func_get_arg(0)] = func_get_arg(1);\n }\n break;\n\n // Field specific rule error message\n case 3:\n $this->_errorPhraseOverrides[func_get_arg(1)][func_get_arg(0)] = func_get_arg(2);\n break;\n }\n\n return true;\n }", "public function hasSendername(){\n return $this->_has(5);\n }", "public function testValidationByKeynameAddl()\n {\n $init = 'test';\n $str = new \\Pv\\PString($init);\n $str->addValidation('length[1]', 'test1');\n\n $valid = $str->getValidation();\n $this->assertTrue(isset($valid['test1']));\n }", "function messages_can_edit($hook_name, $entity_type, $return_value, $parameters) {\n\n\tglobal $messagesendflag;\n\n\tif ($messagesendflag == 1) {\n\t\t$entity = $parameters['entity'];\n\t\tif ($entity->getSubtype() == \"messages\") {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn $return_value;\n}", "protected function has($string)\n {\n if (stripos($this->message, $string) !== false) {\n return true;\n }\n return false;\n }", "static function message($message)\n {\n global $template_vars;\n $template_vars['messages'][] = $message;\n }", "public function getEventadd($messages = \"\");", "public function isMessage()\n {\n return !empty(self::$message);\n }", "public function needsVerificationMessage ();", "public function vxMessageCreateCheck() {\n\t\t$rt = array();\n\t\t\n\t\t$rt['errors'] = 0;\n\t\t\n\t\t$rt['msg_receivers_value'] = '';\n\t\t/* receivers: raw */\n\t\t$rt['msg_receivers_a'] = array();\n\t\t/* receivers: validated */\n\t\t$rt['msg_receivers_v'] = array();\n\t\t/* receivers: validated names */\n\t\t$rt['msg_receivers_n'] = array();\n\t\t/* msg_receivers_error:\n\t\t0 => no error\n\t\t1 => empty\n\t\t2 => not exist\n\t\t999 => unspecific */\n\t\t$rt['msg_receivers_error'] = 0;\n\t\t$rt['msg_receivers_error_msg'] = array(1 => '你忘记写收件人了', 2 => '你写的一位或多位收件人不存在');\n\t\t\n\t\tif (isset($_POST['msg_receivers'])) {\n\t\t\t$rt['msg_receivers_value'] = make_single_safe($_POST['msg_receivers']);\n\t\t\tif (strlen($rt['msg_receivers_value']) > 0) {\n\t\t\t\t$rt['msg_receivers_a'] = explode(',', $rt['msg_receivers_value']);\n\t\t\t\tforeach ($rt['msg_receivers_a'] as $msg_receiver) {\n\t\t\t\t\t$msg_receiver = trim($msg_receiver);\n\t\t\t\t\t$sql = \"SELECT usr_id, usr_nick FROM babel_user WHERE usr_nick = '{$msg_receiver}'\";\n\t\t\t\t\t$rs = mysql_query($sql, $this->db);\n\t\t\t\t\tif (mysql_num_rows($rs) == 1) {\n\t\t\t\t\t\t$User = mysql_fetch_object($rs);\n\t\t\t\t\t\tmysql_free_result($rs);\n\t\t\t\t\t\tif ($User->usr_id != $this->User->usr_id) {\n\t\t\t\t\t\t\tif (!in_array($User->usr_id, $rt['msg_receivers_v'])) {\n\t\t\t\t\t\t\t\t$rt['msg_receivers_v'][] = $User->usr_id;\n\t\t\t\t\t\t\t\t$rt['msg_receivers_n'][] = $User->usr_nick;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmysql_free_result($rs);\n\t\t\t\t\t\t$rt['msg_receivers_error'] = 2;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($rt['msg_receivers_error'] == 0) {\n\t\t\t\t\tif (count($rt['msg_receivers_v']) == 0) {\n\t\t\t\t\t\t$rt['msg_receivers_value'] = '';\n\t\t\t\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$rt['msg_receivers_value'] = implode(',', $rt['msg_receivers_n']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\t$rt['msg_body_value'] = '';\n\t\t$rt['msg_body_error'] = 0;\n\t\t$rt['msg_body_error_msg'] = array(1 => '你忘记写消息内容了', 2 => '你写的消息内容超出长度限制了');\n\t\t\n\t\tif (isset($_POST['msg_body'])) {\n\t\t\t$rt['msg_body_value'] = make_multi_safe($_POST['msg_body']);\n\t\t\t$rt['msg_body_length'] = mb_strlen($rt['msg_body_value'], 'UTF-8');\n\t\t\tif ($rt['msg_body_length'] > 0) {\n\t\t\t\tif ($rt['msg_body_length'] > 200) {\n\t\t\t\t\t$rt['msg_body_error'] = 2;\n\t\t\t\t\t$rt['errors']++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$rt['msg_body_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['msg_body_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\treturn $rt;\n\t}", "public function testAssertResponseContainsWithIgnoreCaseFlag(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withStringBody('Some content');\n\n $this->assertResponseContains('some', 'Failed asserting that the body contains given content', true);\n }", "public function validArrayForStringConfigurationIgnoreCaseProvider() {}", "function addMessage( $message )\n {\n if ( isset($message['errorMessage']) )\n {\n $this->messages[] = array_merge($this->empty_message,$message);\n } else if ( isset($message[0]) && isset($message[0]['errorMessage']) ) {\n foreach ( $message as $m )\n {\n $this->messages[] = array_merge($this->empty_message,$m);\n }\n }\n }", "public function test_array_returns_false_when_not_optional_and_input_string() {\n\t\t$optional = false;\n\n\t\t$result = self::$validator->validate( 'string val', $optional );\n\t\t$this->assertFalse( $result );\n\t}", "function sample_spam_check(&$string, &$name, &$email, &$url, &$ip)\n{\n $words = array('boob', 'titty', 'teenage', 'viagra');\n foreach ( $words as $word )\n {\n if ( stristr($string, $word) )\n return false;\n }\n // This name always means trouble.\n if ( $name == 'Pojo' )\n return false;\n // Block hotmail e-mail addresses\n if ( preg_match('/@hotmail\\.com$/', $email) )\n return false;\n // Check URL for bad words\n foreach ( $words as $word )\n {\n if ( stristr($url, $word) )\n return false;\n }\n // block IPs\n if ( $ip == '127.0.1.1') \n return false;\n \n // Always return true if all checks pass!\n return true;\n}", "public function testAddWithMultipleMessages()\n {\n Phlash::add(\"info\", \"Please log in to continue\");\n Phlash::add(\"error\", \"There was a problem processing your request\");\n\n $flashMessages = Phlash::get();\n\n $this->assertNotEmpty($flashMessages);\n $this->assertEquals(count($flashMessages), 2);\n $this->assertEquals($flashMessages[0]->id, 0);\n $this->assertEquals($flashMessages[0]->type, \"info\");\n $this->assertEquals($flashMessages[0]->message, \"Please log in to continue\");\n $this->assertEquals($flashMessages[1]->id, 1);\n $this->assertEquals($flashMessages[1]->type, \"error\");\n $this->assertEquals($flashMessages[1]->message, \"There was a problem processing your request\");\n\n Phlash::clear();\n }", "public function testSetMessages()\n {\n $this->_validator->setMessages(\n [\n Zend_Validate_StringLength::TOO_LONG => 'Your value is too long',\n Zend_Validate_StringLength::TOO_SHORT => 'Your value is too short'\n ]\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n\n $this->assertFalse($this->_validator->isValid('abc'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too short', current($messages));\n }", "public function testWarningsMessageIsStringAndNotEmpty(): void\n {\n $value = $this->get_reflection_property_value('warnings')[0];\n\n $this->assertIsString($value['message']);\n $this->assertNotEmpty($value['message']);\n }", "function addMessage($texte)\n {\n $this->errorData[][\"message\"] = $texte;\n }", "#[@test]\n public function stringArrayNotAssignableFromString() {\n $this->assertFalse(ArrayType::forName('string[]')->isAssignableFrom('string'));\n }", "public function testGetMessageFromKeyIncludingCurrent()\n {\n $storage = ['slimFlash' => [ 'Test' => ['Test', 'Test2']]];\n $flash = new Messages($storage);\n $flash->addMessageNow('Test', 'Test3');\n\n $messages = $flash->getMessages();\n\n $this->assertEquals(['Test', 'Test2','Test3'], $flash->getMessage('Test'));\n }", "public function isMessage() {\n return (bool) !empty(self::$message);\n }", "final protected function addLog(string $string) : bool\n {\n $return = call_user_func($this->logger, $string);\n return $return;\n }", "function is_request($meta = array())\n {\n }", "function areSet($submit, $arr) {\n if(empty($submit)) return false;\n $json = json_encode($submit);\n foreach ($arr as $variable) {\n if (strpos($json, $variable)==-1) return false;\n }\n return true;\n}", "function testf(Request $request)\n {\n return $this->sendSubsriptionSmsToSubscriber($request->str, $request->str1, $request->str2);\n }", "function record_message($message) {\n global $messages;\n array_push($messages, $message);\n}", "public function testAddMessage()\n {\n $message1 = new Hostingcheck_Message('Foo message');\n $result = new Hostingcheck_Result_Info();\n $result->addMessage($message1);\n $this->assertEquals(array($message1), $result->messages());\n\n $message2 = new Hostingcheck_Message('Bar message');\n $result->addMessage($message2);\n $this->assertEquals(array($message1, $message2), $result->messages());\n\n $this->assertTrue($result->hasMessages());\n }", "function processReqString ($req) {\r\n\r\n\t$question = explode(\"|\", $req);\r\n\tif(sizeof($req) ==0 ) {\r\n\t\techo 'error: The provided string is incorrect';\r\n\t\treturn null;\r\n\t}\r\n\t$arr = array_map(\"splitQuestions\", $question);\r\n\treturn $arr;\r\n\r\n\r\n}", "public function testAddString() {\n $head = Head::getInstance();\n $head->add('Invalid head string');\n }", "public function testGetFlashArray()\n {\n $expected = array('my_test_flash' => 'flash value', \n 'my_other_flash' => 'flash stuff');\n $this->assertEquals($expected, $this->_req->getFlash());\n }", "public function matches(MessageReceived $message): bool\n {\n $haystack = $this->values;\n\n if ($haystack instanceof Collection) {\n $haystack = $haystack->toArray();\n }\n\n return in_array($message->getText(), $haystack, false);\n }", "public function hasRequest(string $name): bool {}", "public function doesSupportRichMessage()\n {\n return in_array($this->requestSource, $this->supportedRichMessagePlatforms);\n }", "public function testAddMessageFromObjectForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessage('user', $user);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertInstanceOf(\\stdClass::class, $storage['slimFlash']['user'][0]);\n }", "public function isMessage() {\n return (bool) (!empty(self::$message));\n }", "static function checkTweetMessage($message) {\n if(strlen($message) <= 140) {\n return true;\n }\n return false;\n }", "function cis_login_message($msg) {\n\tglobal $cis_login_message;\n\t$cis_login_message[] = $msg;\n}", "public function isSent() {}", "function testMakeNeatArray() {\r\n\t\t$this->Toolbar->makeNeatArray(array(1,2,3));\r\n\t\t$result = $this->firecake->sentHeaders;\r\n\t\t$this->assertTrue(isset($result['X-Wf-1-1-1-1']));\r\n\t\t$this->assertPattern('/\\[1,2,3\\]/', $result['X-Wf-1-1-1-1']);\r\n\t}", "public function invalidArrayForStringConfigurationIgnoreCaseProvider() {}", "public static function checkRequest($request)\n {\n $request = json_decode($request);\n\n $isMessaging = isset($request->activities[0]);\n if ($isMessaging && count($request->activities)) {\n return true;\n }\n return false;\n }", "private function check_message ()\n\t{\t\tif (isset($_SESSION['message']))\n\t\t{\n\t\t\t// Add it as an attribute and erase the stored version\n\t\t\t$this->message = $_SESSION['message'];\n\t\t\tunset($_SESSION['message']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->message = \"\";\n\t\t}\n\t}", "private function checkMessageSanity(string $message, DataObject $context): bool\n {\n try {\n $replaced = $this->placeholderProcessor->process($message, $context, true);\n if (strpos($replaced, $this->placeholderProcessor->getUnknownText()) !== false) {\n return false;\n }\n } catch (Exception $e) {\n return false;\n }\n\n return true;\n }", "function isTheseParametersAvailable($required_fields)\n{\n $error = false;\n $error_fields = \"\";\n $request_params = $_REQUEST;\n\n foreach ($required_fields as $field) {\n if (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\n $error = true;\n $error_fields .= $field . ', ';\n }\n }\n\n if ($error) {\n $response = array();\n $response[\"error\"] = true;\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n echo json_encode($response);\n return false;\n }\n return true;\n}", "#[@test]\n public function stringArrayNotAssignableFromStringMap() {\n $this->assertFalse(ArrayType::forName('string[]')->isAssignableFrom('[:string]'));\n }", "#[@test]\n public function stringArrayAssignableFromStringArray() {\n $this->assertTrue(ArrayType::forName('string[]')->isAssignableFrom('string[]'));\n }", "public function testSetMessage()\n {\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals(\"'$inputInvalid' is more than 8 characters long\", current($messages));\n\n $this->_validator->setMessage(\n 'Your value is too long',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n }", "function arrayContains($str, array $arr)\t{\r\n\t\t//write_log(\"Function Fired.\");\r\n\t\t$result = array_intersect($arr,explode(\" \",$str));\r\n\t\tif (count($result)==1) $result = true;\r\n\t\tif (count($result)==0) $result = false;\r\n\t\treturn $result;\r\n\t}", "function canHandleRequest() ;", "public function isRequest();", "static function assertStringStartsNotWith($prefix, $string, $message = '')\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::assertStringStartsNotWith', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function _check_request_info() {\n\t\t$msg = '';\n\t\tif ($this->generate_invoice_request) {\n\t\t\tif (($this->generate_request_amount < 1) || ($this->generate_request_amount > 100)) {\n\t\t\t\t$msg .= \"Invoice request amount must be between 1 and 100.<br />\";\n\t\t\t}\n\t\t\tif (!$this->generate_request_recipients) {\n\t\t\t\t$msg .= \"You must select a user as a recipient for the invoice request.<br />\";\n\t\t\t}\n\t\t}\n\t\treturn $msg;\n\t}", "public function testContains2()\n {\n $this->assertTrue(Str::contains('foo', ['y', 'o']));\n }", "public function allowMessage()\n {\n $this->_data['Mensaje'] = 1;\n }", "protected function addMessage(string $message, $type = self::MESSAGE_INFO) {\n\t\t$this->messages[$type][] = $message;\n\t}", "public function match($request) {\n $requestArr = $this->explodeRequest($request);\n /*if (count($requestArr) < $this->countPatternArr) {\n return false;\n }*/\n for ($i = 0; $i < $this->countPatternArr; $i++) {\n if ($this->isParam($this->patternArr[$i])) {\n continue;\n }\n if (0 !== strcasecmp($this->patternArr[$i], $requestArr[$i])) {\n return false;\n }\n }\n return true;\n }" ]
[ "0.63160044", "0.590883", "0.5850043", "0.58008045", "0.57348406", "0.5544945", "0.54400766", "0.536486", "0.53373414", "0.5325601", "0.5282629", "0.52709055", "0.526223", "0.5238714", "0.5234709", "0.5207915", "0.5205427", "0.5196832", "0.51946807", "0.51754576", "0.51515394", "0.51218134", "0.5107395", "0.510044", "0.5095987", "0.50958306", "0.5095294", "0.5077019", "0.50669515", "0.5054355", "0.5047882", "0.50465924", "0.5038135", "0.5037066", "0.50305843", "0.5022147", "0.5016032", "0.49994674", "0.49980584", "0.49936384", "0.49922448", "0.49586445", "0.49552703", "0.4955232", "0.49498627", "0.49483442", "0.4947929", "0.494708", "0.49361274", "0.49218222", "0.4918503", "0.4918436", "0.49161083", "0.49117297", "0.49055982", "0.49012643", "0.4899962", "0.48988366", "0.48964164", "0.48961785", "0.4893789", "0.48907894", "0.488999", "0.48840147", "0.4871138", "0.48684627", "0.4865449", "0.4863816", "0.48562777", "0.48487127", "0.48458317", "0.48382127", "0.48355868", "0.4831233", "0.48299947", "0.4820587", "0.48178172", "0.48099336", "0.480135", "0.48006776", "0.47943282", "0.4794301", "0.47930297", "0.47892606", "0.4788761", "0.47817746", "0.4781127", "0.47776505", "0.47772774", "0.47740805", "0.4773368", "0.47697628", "0.4769622", "0.4765818", "0.4765525", "0.4764931", "0.4759631", "0.4756647", "0.47531682", "0.47518492" ]
0.6341585
0
Test an array can be added to a message array for the current request
public function testAddMessageFromArrayForCurrentRequest() { $storage = ['slimFlash' => []]; $flash = new Messages($storage); $formData = [ 'username' => 'Scooby Doo', 'emailAddress' => '[email protected]', ]; $flash->addMessageNow('old', $formData); $messages = $flash->getMessages(); $this->assertEquals($formData, $messages['old'][0]); $this->assertArrayHasKey('slimFlash', $storage); $this->assertEmpty($storage['slimFlash']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddMessageFromArrayForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => '[email protected]',\n ];\n\n $flash->addMessage('old', $formData);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals($formData, $storage['slimFlash']['old'][0]);\n }", "public function check_meta_is_array($value, $request, $param)\n {\n }", "function testMakeNeatArray() {\r\n\t\t$this->Toolbar->makeNeatArray(array(1,2,3));\r\n\t\t$result = $this->firecake->sentHeaders;\r\n\t\t$this->assertTrue(isset($result['X-Wf-1-1-1-1']));\r\n\t\t$this->assertPattern('/\\[1,2,3\\]/', $result['X-Wf-1-1-1-1']);\r\n\t}", "public function add_request($request='') {\n $request = JsonParser::decode($request);\n if (is_array($request) === false) {\n $request = array($request);\n }\n $this->__requests[] = $request;\n return (true);\n }", "public function testGetFlashArray()\n {\n $expected = array('my_test_flash' => 'flash value', \n 'my_other_flash' => 'flash stuff');\n $this->assertEquals($expected, $this->_req->getFlash());\n }", "public function testSetMessagesForNextRequest()\n {\n $storage = [];\n \n $flash = new Messages($storage);\n $flash->addMessage('Test', 'Test');\n $flash->addMessage('Test', 'Test2');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['Test', 'Test2'], $storage['slimFlash']['Test']);\n }", "public function testGetQuickInboxMessages() {\n \t$this->assertInternalType('array',$this->chatModel->getQuickInboxMessages());\n }", "public function testInArray() {\n\t\t$array = array(\"a\", \"b\", \"c\");\n\t\t$this->assertTrue(permissionInPermissions($array, \"a\"));\n\t\t$this->assertTrue(permissionInPermissions($array, \"b\"));\n\t\t$this->assertTrue(permissionInPermissions($array, \"c\"));\n\t}", "function setMessage($message, $type, &$array)\n{\n array_push($array, array(\n 'Message' => $message,\n 'Type' => $type\n ));\n}", "function messages( $array ) {\n\t\t$this->messages_list = $array;\n\t\t}", "public static function inArray($value, array $values, $message = '');", "public function testAddWithMultipleMessages()\n {\n Phlash::add(\"info\", \"Please log in to continue\");\n Phlash::add(\"error\", \"There was a problem processing your request\");\n\n $flashMessages = Phlash::get();\n\n $this->assertNotEmpty($flashMessages);\n $this->assertEquals(count($flashMessages), 2);\n $this->assertEquals($flashMessages[0]->id, 0);\n $this->assertEquals($flashMessages[0]->type, \"info\");\n $this->assertEquals($flashMessages[0]->message, \"Please log in to continue\");\n $this->assertEquals($flashMessages[1]->id, 1);\n $this->assertEquals($flashMessages[1]->type, \"error\");\n $this->assertEquals($flashMessages[1]->message, \"There was a problem processing your request\");\n\n Phlash::clear();\n }", "function add_message($messages){\n global $messages;\n $messages[] = $messages;\n}", "public function testCheckArray() {\n\t\t$iniFile = CAKE . 'Test' . DS . 'test_app' . DS . 'Config'. DS . 'acl.ini.php';\n\n\t\t$Ini = new IniAcl();\n\t\t$Ini->config = $Ini->readConfigFile($iniFile);\n\t\t$Ini->userPath = 'User.username';\n\n\t\t$user = array(\n\t\t\t'User' => array('username' => 'admin')\n\t\t);\n\t\t$this->assertTrue($Ini->check($user, 'posts'));\n\t}", "private function is_param_array($param){\n\t\tif(!is_array($param)){\n\t\t\t$this->text(\"Invalid parameter, cannot reply with appropriate message\");\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public function testAddMessageFromStringForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 'value');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['value'], $storage['slimFlash']['key']);\n }", "public function validArrayForArrayConfigurationProvider() {}", "public function testArrayContainsAnElement()\n {\n $fixture = array();\n \n // Add an element to the Array fixture.\n $fixture[] = 'Element';\n \n // Assert that the size of the Array fixture is 1.\n $this->assertEquals(1, sizeof($fixture));\n }", "public function testAddMessageFromAnIntegerForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 46);\n $flash->addMessageNow('key', 48);\n\n $messages = $flash->getMessages();\n $this->assertEquals(['46','48'], $messages['key']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testMessages() {\n $result = new Hostingcheck_Result_Info();\n $this->assertEquals(array(), $result->messages());\n $this->assertFalse($result->hasMessages());\n\n $messages = array(\n new Hostingcheck_Message('Foo message'),\n new Hostingcheck_Message('Bar Message'),\n );\n $result = new Hostingcheck_Result_Info($messages);\n $this->assertEquals($messages, $result->messages());\n\n $this->assertTrue($result->hasMessages());\n }", "abstract protected function processMessage(array $data, array $message) : bool;", "public function test_array_returns_true_when_optional_and_input_array() {\n\t\t$optional = true;\n\n\t\t$result = self::$validator->validate( array('test','test2'), $optional );\n\t\t$this->assertTrue( $result );\n\t}", "public function test_array_returns_true_when_not_optional_and_input_array() {\n\t\t$optional = false;\n\n\t\t$result = self::$validator->validate( array('test','test2'), $optional );\n\t\t$this->assertTrue( $result );\n\t}", "public function testSetMessagesForCurrentRequest()\n {\n $storage = ['slimFlash' => [ 'error' => ['An error']]];\n\n $flash = new Messages($storage);\n $flash->addMessageNow('error', 'Another error');\n $flash->addMessageNow('success', 'A success');\n $flash->addMessageNow('info', 'An info');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['An error', 'Another error'], $messages['error']);\n $this->assertEquals(['A success'], $messages['success']);\n $this->assertEquals(['An info'], $messages['info']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty([], $storage['slimFlash']);\n }", "function arrayMessage($array){\n $l = \"[\";\n $x = 0;\n while($x < count($array)){\n $l = $l.$array[$x];\n $x++;\n if($x != count($array)){\n $l = $l.\",\";\n }\n }\n $l = $l.\"]\";\n \n $messArray = array('message'=>$l,'mess_type'=>'user_array');\n $json = json_encode($messArray);\n return $json;\n }", "private function process_array($value) {\n return is_array($value);\n }", "public static function hasItems(array $message) : bool\n {\n return isset($message['Messages']) ? (empty($message['Messages']) ? false : true) : false;\n }", "public function assertInArray($arg, array $arr, $message = '')\n {\n return $this->recordTest(in_array($arg, $arr), $message);\n }", "public function testAddMessageFromAnIntegerForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 46);\n $flash->addMessage('key', 48);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['46', '48'], $storage['slimFlash']['key']);\n }", "public function testGetEmptyMessagesFromPrevRequest()\n {\n $storage = [];\n $flash = new Messages($storage);\n\n $this->assertEquals([], $flash->getMessages());\n }", "public function testAddMessageFromObjectForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessageNow('user', $user);\n\n $messages = $flash->getMessages();\n $this->assertInstanceOf(\\stdClass::class, $messages['user'][0]);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function testAddMessageFromStringForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 'value');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['value'], $messages['key']);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEmpty($storage['slimFlash']);\n }", "public function isArray(string|int|float $message): self\n {\n return $this->addMessage(new IsArray($message));\n }", "public function testIsArray() {\n\t\t$array = array('one' => 1, 'two' => 2);\n\t\t$result = _::isArray($array);\n\t\t$this->assertTrue($result);\n\n\t\t// test that an object is not an array\n\t\t$object = (object)$array;\n\t\t$result = _::isArray($object);\n\t\t$this->assertFalse($result);\n\t}", "public function testPostAuthorizationSubjectBulkadd()\n {\n }", "public function testNotInArray() {\n\t\t$array = array(\"a\", \"b\", \"c\");\n\t\t$this->assertFalse(permissionInPermissions($array, \"d\"));\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 }", "static function assertArrayHasKey($key, $array, $message = '')\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::assertArrayHasKey', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public function willProcessRequest(array $data) {\n }", "public function getMessages(): array\n {\n }", "public function testAddMessageFromObjectForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $user = new \\stdClass();\n $user->name = 'Scooby Doo';\n $user->emailAddress = '[email protected]';\n\n $flash->addMessage('user', $user);\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertInstanceOf(\\stdClass::class, $storage['slimFlash']['user'][0]);\n }", "public function testSendWithRequestSendMany()\n {\n $service = $this->getStubForTest(file_get_contents(__DIR__ . '/TestAsset/Response/send_many.txt'));\n\n $recipients = array(\n new Request\\Recipient('regl4jtwe8flmf23knfsd', 10000),\n new Request\\Recipient('23dskflsfuo2u4ourjsd', 20000),\n new Request\\Recipient('34tfskdlfcvkdjhvkjwehf', 30000),\n );\n\n $request = new Request\\SendMany();\n\n $request->setRecipients($recipients);\n\n /* @var $response Response\\Send */\n $response = $service->send($request);\n\n $this->assertEquals('Sent To Multiple Recipients', $response->getMessage());\n $this->assertEquals(\n 'f322d01ad784e5deeb25464a5781c3b20971c1863679ca506e702e3e33c18e9c',\n $response->getTxHash()\n );\n\n $this->assertEquals(\n $this->getLastRawRequestExpected(__DIR__ . '/TestAsset/Request/send_many.txt'),\n $this->getLastRawRequest($service),\n 'Requests does not match'\n );\n }", "public function testMagicCall()\n {\n $client = new Client($this->options);\n $emails = $client->emails();\n\n $this->assertTrue(is_array($emails));\n }", "public function getMessages(): array;", "public function getMessages(): array;", "public function getMessages(): array;", "public function testWarningsIsArrayWithLengthOfTwo(): void\n {\n $this->get_accessible_reflection_property('warnings');\n $value = $this->get_reflection_property_value('warnings');\n\n $this->assertIsArray($value);\n $this->assertEquals(2, count($value));\n }", "function add_success(&$log, $message){\n if(!is_array($log)) return;\n\n $log[] = array(\n \"type\" => \"success\",\n \"message\" => $message\n );\n}", "public function invalidArrayForArrayConfigurationProvider() {}", "function check_all_incomming_vars($request_array, $save_name = null) {\n//checks all the incomming vars\n// V0.8 forces the use of an non empty array\n// if (empty($request_array)) {\n// $request_array = $_REQUEST;\n// } else {\n if (!is_array($request_array)) {\n die(__FUNCTION__ . \" need an array to work\");\n }\n// }\n $form = array();\n foreach ($request_array as $index => $value) {\n if (!is_array($value)) {\n $form[$index] = \\k1lib\\forms\\check_single_incomming_var($value);\n } else {\n $form[$index] = check_all_incomming_vars($value);\n }\n }\n if (!empty($save_name)) {\n \\k1lib\\common\\serialize_var($form, $save_name);\n }\n return $form;\n}", "public static function validArrayKey($value, $message = '');", "public function testEmptyArray() {\n\t\t$array = array(\"a\", \"b\", \"c\");\n\t\t$notInArray = \"\";\n\n\t\t$this->assertFalse(permissionInPermissions($array, $notInArray));\n\t\t$this->assertFalse(permissionInPermissions($array, null));\n\t}", "public function isArray(): bool\n {\n return false;\n }", "public function isArray(): bool\n {\n return false;\n }", "public function testGetMessagesFromPrevRequest()\n {\n $storage = ['slimFlash' => ['Test']];\n $flash = new Messages($storage);\n\n $this->assertEquals(['Test'], $flash->getMessages());\n }", "public function toMessage(): array;", "protected function validateArray($value){\n\t\treturn is_array($value);\n\t}", "public function hasMsg(){\n return $this->_has(18);\n }", "public function hasRepeatedField()\n {\n return count($this->get(self::REPEATED_FIELD)) !== 0;\n }", "public function testBasicPreconditionFail2()\n {\n $this->typeSafetyTestClass->iNeedArrays('test', array());\n }", "public function vxMessageCreateCheck() {\n\t\t$rt = array();\n\t\t\n\t\t$rt['errors'] = 0;\n\t\t\n\t\t$rt['msg_receivers_value'] = '';\n\t\t/* receivers: raw */\n\t\t$rt['msg_receivers_a'] = array();\n\t\t/* receivers: validated */\n\t\t$rt['msg_receivers_v'] = array();\n\t\t/* receivers: validated names */\n\t\t$rt['msg_receivers_n'] = array();\n\t\t/* msg_receivers_error:\n\t\t0 => no error\n\t\t1 => empty\n\t\t2 => not exist\n\t\t999 => unspecific */\n\t\t$rt['msg_receivers_error'] = 0;\n\t\t$rt['msg_receivers_error_msg'] = array(1 => '你忘记写收件人了', 2 => '你写的一位或多位收件人不存在');\n\t\t\n\t\tif (isset($_POST['msg_receivers'])) {\n\t\t\t$rt['msg_receivers_value'] = make_single_safe($_POST['msg_receivers']);\n\t\t\tif (strlen($rt['msg_receivers_value']) > 0) {\n\t\t\t\t$rt['msg_receivers_a'] = explode(',', $rt['msg_receivers_value']);\n\t\t\t\tforeach ($rt['msg_receivers_a'] as $msg_receiver) {\n\t\t\t\t\t$msg_receiver = trim($msg_receiver);\n\t\t\t\t\t$sql = \"SELECT usr_id, usr_nick FROM babel_user WHERE usr_nick = '{$msg_receiver}'\";\n\t\t\t\t\t$rs = mysql_query($sql, $this->db);\n\t\t\t\t\tif (mysql_num_rows($rs) == 1) {\n\t\t\t\t\t\t$User = mysql_fetch_object($rs);\n\t\t\t\t\t\tmysql_free_result($rs);\n\t\t\t\t\t\tif ($User->usr_id != $this->User->usr_id) {\n\t\t\t\t\t\t\tif (!in_array($User->usr_id, $rt['msg_receivers_v'])) {\n\t\t\t\t\t\t\t\t$rt['msg_receivers_v'][] = $User->usr_id;\n\t\t\t\t\t\t\t\t$rt['msg_receivers_n'][] = $User->usr_nick;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmysql_free_result($rs);\n\t\t\t\t\t\t$rt['msg_receivers_error'] = 2;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($rt['msg_receivers_error'] == 0) {\n\t\t\t\t\tif (count($rt['msg_receivers_v']) == 0) {\n\t\t\t\t\t\t$rt['msg_receivers_value'] = '';\n\t\t\t\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$rt['msg_receivers_value'] = implode(',', $rt['msg_receivers_n']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['msg_receivers_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\t$rt['msg_body_value'] = '';\n\t\t$rt['msg_body_error'] = 0;\n\t\t$rt['msg_body_error_msg'] = array(1 => '你忘记写消息内容了', 2 => '你写的消息内容超出长度限制了');\n\t\t\n\t\tif (isset($_POST['msg_body'])) {\n\t\t\t$rt['msg_body_value'] = make_multi_safe($_POST['msg_body']);\n\t\t\t$rt['msg_body_length'] = mb_strlen($rt['msg_body_value'], 'UTF-8');\n\t\t\tif ($rt['msg_body_length'] > 0) {\n\t\t\t\tif ($rt['msg_body_length'] > 200) {\n\t\t\t\t\t$rt['msg_body_error'] = 2;\n\t\t\t\t\t$rt['errors']++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$rt['msg_body_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['msg_body_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\treturn $rt;\n\t}", "abstract protected function setValidationMessages(): array;", "protected function defineMessages()\n {\n return [];\n }", "public function testFailUpdateEntriesNotInArray()\n {\n $this->expectExceptionMessage('Cannot update entry translation');\n $this->parser->read(TEST_DATA_PATH . '/general.po');\n\n $this->parser->updateEntries('NOT IN PO', ['Ist nicht in Po']);\n }", "public function provideMessageParameters()\n {\n $type = \"application/json\";\n\n $data[] = array('{\"foo\":\"bar\",\"baz\":[1,2,3]}', $type);\n $data[] = array('{\"foo\":\"bar\",\"baz\":[]}', $type);\n\n return $data;\n }", "public function testToArray(): void\n {\n $file = new FileObject();\n $url = new UrlObject();\n $formParameter = new FormParameterObject();\n\n $body = new RequestBodyObject([\n 'disabled' => false,\n 'file' => $file,\n 'form_parameter' => $formParameter,\n 'mode' => 'file',\n 'raw' => 'test-raw',\n 'url' => $url\n ]);\n\n self::assertEquals([\n 'disabled' => false,\n 'file' => $file,\n 'formdata' => $formParameter,\n 'mode' => 'file',\n 'raw' => 'test-raw',\n 'urlencoded' => $url\n ], $body->toArray());\n }", "function addMessage( $message )\n {\n if ( isset($message['errorMessage']) )\n {\n $this->messages[] = array_merge($this->empty_message,$message);\n } else if ( isset($message[0]) && isset($message[0]['errorMessage']) ) {\n foreach ( $message as $m )\n {\n $this->messages[] = array_merge($this->empty_message,$m);\n }\n }\n }", "public function validate_request() {\r\n\t\tif ($this->request != null && sizeof($this->request) != 1)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "function rest_is_array($maybe_array)\n {\n }", "private static function setArray() {\n\tself::$requests = explode(\"/\", self::$uri);\n if(self::$requests[0] == 'api') {\n array_shift(self::$requests);\n self::$api = True;\n }\n }", "function attrite($request, $data, $is_response = false){\n if (is_array($request))\n {\n foreach ($request as $key => $value)\n {\n if (is_array($value))\n {\n $request[$key] = attrite($value, $data);\n }\n else\n {\n $translated = handleDefaultValue($data, $value);\n if ($is_response && $translated == $value)\n {\n // Raise error -\n throw new InvalidResponseException('Invalid Response Exception.');\n }\n $request[$key] = $translated;\n }\n }\n }\n return $request;\n }", "public function testAppendArray() {\n\t\t\t$arr = [\"Hairy\", \"Bees\"];\n\t\t\t$builder = new StringBuilder();\n\t\t\t$builder->append($arr, \"Help\");\n\n\t\t\t$this->assertEquals(\"HairyBeesHelp\", $builder->__toString());\n\t\t\tunset($builder, $arr);\n\t\t}", "public function testMoveMessageNoarray()\n {\n $this->assertSame($this->funcForTestMove(\"noarray\"), \"noarray\");\n }", "public function canTransformArrayToResponse()\n {\n $resourceTransformer = new DummyResourceTransformer();\n\n $dummyArray = [\n [\n 'id' => 'test'\n ],\n [\n 'id' => 'super'\n ]\n ];\n\n $transformed = $resourceTransformer->transformToResponse($dummyArray);\n\n $decoded = json_decode($transformed->getContent());\n\n $this->assertEquals(2, count($decoded->data));\n }", "public function testAddMessage()\n {\n $message1 = new Hostingcheck_Message('Foo message');\n $result = new Hostingcheck_Result_Info();\n $result->addMessage($message1);\n $this->assertEquals(array($message1), $result->messages());\n\n $message2 = new Hostingcheck_Message('Bar message');\n $result->addMessage($message2);\n $this->assertEquals(array($message1, $message2), $result->messages());\n\n $this->assertTrue($result->hasMessages());\n }", "public function hook_before_add(&$arr) {\n\n }", "function acf_is_array($array)\n{\n}", "public function validArrayForStringConfigurationProvider() {}", "public function testAssertIsArrayNotEmpty()\n {\n $this->assertIsArrayNotEmpty(['value']);\n\n foreach ([\n [],\n [[]],\n [false],\n [null],\n [''],\n ] as $array) {\n $this->assertException(AssertionFailedError::class, function () use ($array) {\n $this->assertIsArrayNotEmpty($array);\n });\n }\n }", "public function test_entry_items_isInitiallyArray()\n\t{\n\t\t$entry_collection_property = $this->entry_collection_reflection->getProperty('entry_items');\n\t\t$entry_collection_property->setAccessible(true);\n\t\t\n\t\t$this->assertInternalType('array', $entry_collection_property->getValue($this->entry_collection_object));\n\t}", "public function testMessages()\n {\n $message = new PrivateMessage();\n $conversation = new Conversation();\n $this->assertEmpty($conversation->getMessages());\n\n $conversation->addMessage($message);\n $this->assertEquals(new ArrayCollection([$message]), $conversation->getMessages());\n\n $conversation->removeMessage($message);\n $this->assertEmpty($conversation->getMessages());\n }", "public function testValueMissingArrKeys() {\n $errors = $this->getValidator()->validate([]);\n\n $this->assertNotEmpty($errors);\n $this->assertCount(2, $errors);\n $this->assertEquals('VALIDATION.ARRAY_MISSING_KEY', $errors[0]['__CODE'] );\n $this->assertEquals('VALIDATION.ARRAY_MISSING_KEY', $errors[1]['__CODE'] );\n }", "public function test_array_returns_true_when_optional_and_input_empty() {\n\t\t$optional = true;\n\n\t\t$result = self::$validator->validate( null, $optional );\n\t\t$this->assertTrue( $result );\n\t}", "public function testConsumeArray()\n {\n $config = ['plugin' => null, 'controller' => 'Groups', 'action' => 'index'];\n $result = Hash::consume($config, ['controller', 0]);\n\n $this->assertEquals(['controller' => 'Groups', 0 => null], $result);\n $this->assertEquals(['plugin' => null, 'action' => 'index'], $config);\n }", "private function isInvalidArray($input) {\n\n return !is_array($input) || empty($input);\n }", "function rest_validate_array_contains_unique_items($input_array)\n {\n }", "public function testCanReturnAnArrayOfStatusUpdates()\n {\n $t = M::mock('Example\\FacebookFeedReader');\n $t->shouldReceive('getMessages')\n ->once()\n ->andReturn(array('foo', 'bar', 'baz', 'boo', 'bop'));\n $s = new SocialFeed($t);\n $v = $s->getArray();\n $this->assertCount(5, $v);\n $this->assertEquals($v[0], 'foo');\n $this->assertEquals($v[1], 'bar');\n $this->assertEquals($v[2], 'baz');\n $this->assertEquals($v[3], 'boo');\n $this->assertEquals($v[4], 'bop');\n }", "public function testToArrayReturnsOnlyFilledEntries(): void\n {\n $result = DiscordMessage::create()\n ->content('Content')\n ->username('UnitTest')\n ->toArray();\n\n $this->assertArrayHasKey('content', $result);\n $this->assertArrayHasKey('username', $result);\n $this->assertArrayNotHasKey('avatar_url', $result);\n $this->assertArrayNotHasKey('tts', $result);\n }", "public static function has_array_access($input)\n {\n }", "private function message_data() {\n\t\treturn array_intersect_key($this->request->data, array_flip(['content']));\n\t}", "static function getMessages(){\n if(key_exists(MESSAGES, $_REQUEST)){\n return $_REQUEST[MESSAGES];\n }else{\n return array();\n }\n }", "private function validPayload()\n {\n return [\n 'name' => 'Chefaa pharmacy',\n 'address' => 'Maadi',\n ];\n }", "public function isMultipleObjectsInRequest(Request $request)\n {\n $keys = array_keys($request->request->all());\n if (is_array($keys) && count($keys) >= 1 && $keys[0] === 0) {\n return true;\n }\n return false;\n }", "function requestRequires($fields, $request){\n \treturn !array_diff_key(array_flip($fields), $request);\n }", "private function correctRequest($msg){\n return array(\"error\" => false,\"msg\" => $msg);\n }", "public function testFetchArray()\n {\n $this->todo('stub');\n }", "public function validArrayForArrayConfigurationIgnoreCaseProvider() {}", "public function messages(): array\n {\n return [\n //\n ];\n }", "public function test_getTransactionParamsArray(){\n $this->assertNull($this->transaction->getTransactionParamsArray());\n\n //Now set an arbitrary param\n $paramsArray = ['test'=>'test'];\n $this->transaction->setParams($paramsArray);\n $this->assertNotNull($this->transaction->getTransactionParamsArray());\n $this->assertSame($paramsArray, $this->transaction->getTransactionParamsArray());\n }", "function record_message($message) {\n global $messages;\n array_push($messages, $message);\n}" ]
[ "0.66719", "0.6004601", "0.5933607", "0.5913529", "0.587468", "0.5841768", "0.5825768", "0.5692597", "0.56697255", "0.56646067", "0.5588559", "0.5534701", "0.5519163", "0.54959625", "0.54949576", "0.5475062", "0.5463661", "0.5442685", "0.5425069", "0.5421461", "0.5415065", "0.54056996", "0.5404739", "0.53966975", "0.53919244", "0.53697306", "0.53644514", "0.5347811", "0.5345002", "0.53396547", "0.53093547", "0.53080976", "0.5284219", "0.52589935", "0.5240303", "0.52340543", "0.52226263", "0.5185839", "0.51858294", "0.5177292", "0.51749265", "0.51735294", "0.51728016", "0.51687247", "0.51687247", "0.51687247", "0.5160708", "0.51579475", "0.51496565", "0.51484704", "0.514398", "0.51318187", "0.5126332", "0.5126332", "0.51207477", "0.51114523", "0.5110434", "0.5109316", "0.5107864", "0.51054066", "0.510373", "0.5099411", "0.50935775", "0.5093345", "0.5079939", "0.50695616", "0.5067609", "0.50632674", "0.5060146", "0.5060146", "0.5041724", "0.5039788", "0.5036115", "0.50307435", "0.5019036", "0.5011897", "0.5009788", "0.5007299", "0.50047624", "0.49990177", "0.4989441", "0.49875546", "0.49861908", "0.4983089", "0.4979183", "0.49791688", "0.49783206", "0.4969685", "0.49667084", "0.4964986", "0.49608737", "0.4952534", "0.49494302", "0.49411747", "0.49320024", "0.49290186", "0.4927701", "0.4927073", "0.49190786", "0.49180362" ]
0.6700288
0