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
For deleting the respective model from storage
public function delete(Questionbank $questionbank) { if ($questionbank->delete()) { return true; } throw new GeneralException(trans('exceptions.backend.questionbanks.delete_error')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "protected function performDeleteOnModel()\n {\n $this->newQuery()->delete($this->fileName);\n }", "public function delete($model);", "public function deleting($model)\n\t{\n\t}", "public abstract function deleteModel(\\MPF\\Db\\Model $model);", "public function deleteModel($entity){\n $this->entityManager->remove($entity);\n $this->entityManager->flush();\n }", "public function delete(Model $model);", "public function delete(Model $model);", "public function delete(Identifiable $model);", "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 delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public function delete(){\n $record = actualite::find($this->selectedId);\n $record->delete();\n\n /* update image file */\n Storage::delete('public/_actualite/'.$this->selectedId.'.png');\n /* $this->photo->storePubliclyAs('public/_actualite/'.$this->selectedId.'.png'); */\n\n session()->flash('message', 'actualite modifié avec succès');\n $this->emit('Deleted');\n $this->dispatchBrowserEvent('Deleted');\n $this->resetFields();\n }", "public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}", "public function delete()\n {\n $this->repository->delete($this->id);\n }", "protected function deleteStore() {\n $keys = ['entity_type', 'entity_id', 'export_type'];\n foreach ($keys as $key) {\n $this->store->delete($key);\n }\n }", "public function destroy($id)\n {\n\n\n $data = SoftwareMedia::find($id);\n $isDeleted =$data->delete();\n $value = $data->screenshots;\n if(strpos($value, \"+\") !== false){\n $data->screenshots = (explode(\"+\",$value));\n foreach($data->screenshots as $one){\n //$one= substr($one,42);\n $one = str_replace('http://localhost:8000/storage/screenshots/','',$one);\n unlink(storage_path('app/public/screenshots/'.$one));\n }\n }else{\n $value = str_replace('http://localhost:8000/storage/screenshots/','',$value);\n unlink(storage_path('app/public/screenshots/'.$value));\n }\n\n if($data->ebooks != null){\n $value = $data->ebooks;\n if(strpos($value, \"+\") !== false){\n $data->ebooks = (explode(\"+\",$value));\n foreach($data->ebooks as $ebook){\n $ebook = str_replace('http://localhost:8000/storage/ebooks/','',$ebook);\n unlink(storage_path('app/public/ebooks/'.$ebook));\n }\n }else{\n $value = str_replace('http://localhost:8000/storage/ebooks/','',$value);\n unlink(storage_path('app/public/ebooks/'.$value));\n }\n }\n if($data->whitepapers != null){\n $value = $data->whitepapers;\n if(strpos($value, \"+\") !== false){\n $data->whitepapers = (explode(\"+\",$value));\n foreach($data->whitepapers as $whitepaper){\n $whitepaper = str_replace('http://localhost:8000/storage/whitepapers/','',$whitepaper);\n unlink(storage_path('app/public/whitepapers/'.$whitepaper));\n }\n }else{\n $value = str_replace('http://localhost:8000/storage/whitepapers/','',$value);\n unlink(storage_path('app/public/whitepapers/'.$value));\n }\n }\n if($data->pdf != null){\n $value = $data->pdf;\n if(strpos($value, \"+\") !== false){\n $data->pdf = (explode(\"+\",$value));\n foreach($data->pdf as $one){\n $one = str_replace('http://localhost:8000/storage/pdf/','',$one);\n unlink(storage_path('app/public/pdf/'.$one));\n }\n }else{\n $value = str_replace('http://localhost:8000/storage/pdf/','',$value);\n unlink(storage_path('app/public/pdf/'.$value));\n }\n }\n if($data->guides != null){\n $value = $data->guides;\n if(strpos($value, \"+\") !== false){\n $data->guides = (explode(\"+\",$value));\n foreach($data->guides as $guide){\n $guide = str_replace('http://localhost:8000/storage/guides/','',$guide);\n unlink(storage_path('app/public/guides/'.$guide));\n }\n }else{\n $value = str_replace('http://localhost:8000/storage/guides/','',$value);\n unlink(storage_path('app/public/guides/'.$value));\n }\n }\n if($isDeleted == true){\n return response()->json(['message'=>'Deleted successfully','isdeleted'=>$isDeleted],200 );\n }else{\n return response()->json(['message'=>'Cannot delete something went wrong']);\n }\n }", "function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}", "protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }", "protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }", "public function delete(Model $model)\n {\n }", "public function delete()\n {\n DB::beginTransaction();\n $res=parent::delete();\n \n if($res==true)\n {\n $relations=$this->morphMany('App\\Models\\Image', 'imageable');\n\n \n $relations->delete(); \n }\n\n DB::commit(); \n }", "public function delete(){\n\t $this->model->clear()->filter(array('preview_master_id' => WaxUrl::get(\"id\")))->delete();\n\t parent::delete();\n\t}", "public final function delete() {\n }", "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}", "protected function delete() {\n\t}", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public function deletedModel(Model &$model)\n {\n }", "public function delete()\n {\n \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 delete()\n {\n \n }", "public abstract function delete();", "public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }", "public function delete() {\r\n }", "public function delete($record_id, Request $request){\n if(Ahkam::findOrFail($record_id)->first() != \" \" ) { \n $file = Ahkam::findOrFail($record_id);\n $deleted = new AhkamDeleted;\n\n \n /////////////////////////////////////////////\n\n\n $deleted->crida_number = $file->crida_number;\n $deleted->database_id = $file->id;\n $deleted->date_of_archiving = $file->date_of_archiving; \n $deleted->type_of_document = $file->type_of_document; \n $deleted->number_of_document = $file->number_of_document;\n $deleted->date_of_document = $file->date_of_document; \n $deleted->kholasmatlab = $file->kholasmatlab;\n $deleted->molahezat = $file->molahezat; \n $deleted->more = $file->more; \n $deleted->file = $file->file; \n $deleted->uuid = $file->uuid; \n\n\n $del_comment = AhkamComment::where('ahkam_id', $record_id);\n $del_access = AhkamUser::where('ahkam_id',$record_id);\n $del_notis = Noti::where('file_id', $record_id);\n \n DB::beginTransaction();\n try {\n $deleted->save();\n\n //to move a file in the (deleted) folder\n if(file_exists(storage_path('app/files/Ahkam/'. $file->file))){ \n $old = storage_path('app/files/Ahkam/'. $file->file);\n $new = storage_path('app/deleted/Ahkam/'. $file->file);\n $move = File::move($old, $new);\n }\n\n //to delete its comments\n if($del_comment){\n $del_comment->delete();\n } \n \n //to delete its user access\n if($del_access){\n $del_access->delete();\n }\n //to delete its notifications\n if($del_notis){\n $del_notis->delete();\n }\n $file->delete();\n DB::commit();\n $result = \"success\";\n } catch (\\Exception $e) {\n $result = \"failed\";\n DB::rollback();\n }\n\n return response()->json(['result' => $result]);\n }\n }", "public function deleted(Request $model)\n {\n $models = [\n 'engagement',\n 'address',\n ];\n\n foreach($models as $relation){\n $model->$relation()->delete();\n }\n }", "public function deleting()\n {\n # code...\n }", "public function destroy(Request $request, object $model): bool;", "abstract public function delete();", "abstract public function delete();", "abstract public function delete();", "abstract public function delete();", "public function destroy($id)\n {\n $album=Album::find($id);\n //finding the photos related to that model\n $photos=DB::table('photos')->where('album_id',$id)->get();\n //fetching each photos to the variable photo\n foreach($photos as $photo)\n {\n //finding the photo in photo model\n $p=Photo::find($photo->id);\n //deleting photo from the storage as well as form the database \n if(Storage::delete('public/photos/'.$photo->album_id.'/'.$photo->photo));\n $p->delete();\n }\n //deleting the album\n if(Storage::delete('public/photos/'.$album->album_id.'/'.$album->cover_image));\n $album->delete();\n return redirect('/')->with('success','Album Deleted Sucessfully'); \n }", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "public function delete() {\n\n }", "public function delete() {\n\t\t$this->deleted = true;\n\t}", "public function delete() { // Page::destroy($this->pages()->select('id')->get());\n $this->pages()->detach();\n parent::delete();\n }", "function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }", "protected function deleteStore() {\n $keys = ['community', 'address', 'state', 'city', 'country','attention_to','company','promocode','is_student','payment_type','name_card','card_number'];\n foreach ($keys as $key) {\n $this->store->delete($key);\n }\n }", "public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delete() {\r\n $this->db->delete(\"assets_permissions\", $this->db->quoteInto(\"id = ?\", $this->model->getId()));\r\n }", "public function delete(Model $parent);", "public function delete()\n {\n $input = $this->getRelativeLocation($this->input_location);\n if ($this->getStorage()->exists($input)) {\n $this->getStorage()->delete($input);\n }\n $output = $this->getRelativeLocation($this->output_location);\n if ($this->getStorage()->exists($output)) {\n $this->getStorage()->delete($output);\n }\n\n return $this->performDeleteOnModel();\n }", "protected function deleteStore()\n {\n $keys = ['name', 'email'];\n foreach ($keys as $key) {\n $this->store->delete($key);\n }\n }", "public function DeleteSupplier($id){\n\n $delete=DB::table('suppliers')\n ->where('id',$id)\n ->first();\n $photo=$delete->photo;\n unlink($photo);\n $dltuser=DB::table('suppliers')\n ->where('id',$id)\n ->delete(); \n\n return Redirect()->route('all.supplier')->with('message','Deleted Successfully.');\n\n \n}", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function delete(){\n }", "public function delete()\n {\n foreach ($this->versions as $version)\n {\n $version->delete();\n }\n\n parent::delete();\n }", "public function forceDelete();", "public function deleteProcuct($productModel) {\n\n }", "public function delete()\n {\n //\n }", "public function delete()\n {\n // TODO: Implement delete() method.\n }", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "public function deleted(Storage $storage)\n {\n //\n }", "public function delete() {\n // Deleting microarticles.\n $microarticles = $this->getMicroarticles();\n if (!empty($microarticles)) {\n foreach ($microarticles as $microarticle) {\n $microarticle->delete();\n }\n }\n\n // Deleting selfservices.\n $selfServices = $this->getSelfservices();\n if (!empty($selfServices)) {\n foreach ($selfServices as $selfService) {\n $selfService->delete();\n }\n }\n\n parent::delete();\n }", "public abstract function delete($model, $useTransaction);", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public static function delete() {\n\n\n\t\t}", "public function deleted($model)\n {\n if (static::syncingDisabledFor($model)) {\n return;\n }\n $model->unsearchable();\n }", "public function delete()\n {\n\n }", "public function uninstall() {\r\n\tforeach ($this->getModel() AS $model) {\r\n\t $this->getEntity($model->getName())->deleteTable();\r\n\t}\r\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }" ]
[ "0.74152046", "0.72333366", "0.72318393", "0.72096205", "0.71944743", "0.7173847", "0.7116503", "0.7116503", "0.70894504", "0.6969402", "0.6969402", "0.6969039", "0.6967573", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69650006", "0.69515127", "0.69458973", "0.6945449", "0.69339496", "0.69249344", "0.6914243", "0.69026595", "0.6891406", "0.6889859", "0.6887996", "0.6881094", "0.6879762", "0.68663484", "0.6842789", "0.68321973", "0.6824551", "0.68144816", "0.678245", "0.6776698", "0.67731255", "0.6772204", "0.67471457", "0.6745427", "0.6738178", "0.6729078", "0.6724179", "0.67085004", "0.66968584", "0.66968584", "0.66968584", "0.66968584", "0.66942847", "0.66932774", "0.66837037", "0.6666984", "0.6663336", "0.66620106", "0.6646029", "0.66422224", "0.6639708", "0.66389483", "0.6623856", "0.6616286", "0.6613104", "0.6612483", "0.6609296", "0.66072387", "0.6606402", "0.6605444", "0.6589189", "0.6582674", "0.6580794", "0.65770245", "0.6575911", "0.655178", "0.6546905", "0.65448236", "0.65434694", "0.65434694", "0.654176", "0.653824", "0.6532061", "0.65252936", "0.65185726", "0.65185726", "0.65185726", "0.65185726", "0.65185726", "0.65185726", "0.65185726", "0.65185726", "0.65185726", "0.65185726" ]
0.0
-1
Display a listing of the resource.
public function index() { $attributes = $this->showAttribute->getTopAttributesWithSite( app('veer')->siteId ); return $this->viewIndex('attributes', $attributes); }
{ "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, $childId = null) { $attribute = $this->showAttribute->getAttribute($id, $childId); if(!is_object($attribute)) { return \Redirect::route('index'); } $data = array( "attribute" => $attribute, "template" => $this->template ); if(!empty($childId)) { $page_sort = get_paginator_and_sorting(); array_set($data, 'products', $this->showAttribute->withProducts(app('veer')->siteId, $childId, $page_sort)); array_set($data, 'pages', $this->showAttribute->withPages(app('veer')->siteId, $childId, $page_sort)); array_set($data, 'tags', $this->showAttribute->withTags($attribute->name, $attribute->val, app('veer')->siteId)); array_set($data, 'categories', $this->showAttribute->withCategories($attribute->name, $attribute->val, app('veer')->siteId)); } $view = viewx($this->template.'.attribute', $data); $this->view = $view; return $view; }
{ "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
used by select dropdown list
function read(){ //select all data $query = "SELECT id, name, status FROM " . $this->table_name . " ORDER BY id DESC"; $stmt = $this->conn->prepare( $query ); $stmt->execute(); return $stmt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function select_option()\r\n{}", "function hundope_select_field_render() { \n\t\n}", "function getDropDown() ;", "public static function renderSelect();", "public function getDropDown() {}", "public function getDropDown() {}", "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 actionSelect(){\n $select = $this->select('Pilih donk akhh..', ['kopi'=>'kopi', 'susu'=>'susu']);\n echo \"Pilihan nya adalah : $select\";\n }", "function listadoSelect();", "public function getSelect();", "public function getSelect();", "public function Do_select_Example1(){\n\n\t}", "public function tipoContacto($parametro)\n{\n if($parametro==NULL)\n {\n $parametro=9999;\n }\n\techo '<select class=\"form-control select\" name=\"tipoContacto\" required=\"\" required onchange=\"showmeDatosFacturacion(this.value)\" >\n\t\t <option value=\"\" '.$this->selected($parametro, 99999).'>Selecciona Uno</option>\n <option value=\"0\" '.$this->selected($parametro, 0).' >Cliente</option>\n <option value=\"1\" '.$this->selected($parametro, 1).'>Provedor</option>\n <option value=\"2\" '.$this->selected($parametro, 2).'>Cliente y Provedor</option>\n </select>';\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 }", "protected function getSelectedValue() {}", "function get_name_select_list()\n\t{\n\t\treturn $this->get_name_select_edit();\n\t}", "function render_field_select($field)\n {\n }", "public function setup_selected() {\n\t}", "public function selected()\n {\n parent::selected();\n $this->name = '';\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 }", "function print_select($value){\n\t\techo $this->before_option_title.$value['name'].$this->after_option_title;\n\t\t$input_value = $this->get_field_value($value['id']);\n\t\t\t\n\t\techo '<select class=\"option-select'.((isset($value['conditional']) && $value['conditional'])?' option-conditional':'').'\" name=\"'.$value['id'].'\" id=\"'.$value['id'].'\">';\n\t\t\n\t\tforeach ($value['options'] as $option) {\n\t\t\t$attr='';\t\n\t\t\t if ( get_option( $value['id'] ) == $option['id']) {\n\t\t\t\t$attr = ' selected=\"selected\"';\n\t\t\t }\n\t\t \t if ( $option['id'] == 'disabled') {\n\t\t\t\t$attr.= ' disabled=\"disabled\"';\n\t\t\t }\n\t\t\t if($option['class']){\n\t\t\t\t$attr.=' class=\"'.$option['class'].'\"';\t\t\t \t\n\t\t\t }\n\t\t\techo '<option '.$attr.' value=\"'.$option['id'].'\">'.$option['name'].'</option>'; \n\t\t} \n\t\n\t\techo '</select>';\n\t\t$this->close_option($value);\n\t}", "function montar_select_sexo(&$select_sexos, $objSexoPaciente, $objSexoPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_sexos = $objSexoPacienteRN->listar($objSexoPaciente);\n\n $select_sexos = '<select onfocus=\"this.selectedIndex=0;\" onchange=\"val_sexo()\" '\n . 'class=\"form-control selectpicker\" id=\"select-country idSexo\" data-live-search=\"true\" '\n . 'name=\"sel_sexo\">'\n . '<option data-tokens=\"\"></option>';\n\n foreach ($arr_sexos as $sexo) {\n $selected = '';\n if ($sexo->getIdSexo() == $objPaciente->getIdSexo_fk()) {\n $selected = 'selected';\n }\n $select_sexos .= '<option ' . $selected . ' value=\"' . $sexo->getIdSexo() . '\" data-tokens=\"' . $sexo->getSexo() . '\">' . $sexo->getSexo() . '</option>';\n }\n $select_sexos .= '</select>';\n}", "public function coconutComboBoxStart_long($name) {\necho \"<select name='$name' class='comboBox'>\";\n}", "function colores_drop_list(){\n\n$sql =\"SELECT * FROM colores ;\";\n$result = $this->database->query($sql);\n$result = $this->database->result;\nwhile($row = mysql_fetch_array($result)){\n$id= $row['id_color'];\n$name= $row['nombre_color'];\necho '<option value='.$id.'>'.$name.'</option>';\n}\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 }", "function selectList($name,$table,$option_name,$value_name,$curr_id,$script=\"\",$cond=\"\",$empty_option=0,$empty_value=\"\",$empty_str=\"\") {\n\n\t\tglobal $db, $db;\n\n\t\t$output\t\t = \"<select name=\\\"$name\\\" id=\\\"$name\\\" $script>\\n\";\n\t\tif ($empty_option) $output\t\t.= \"<option value=\\\"$empty_value\\\">$empty_str</option>\\n\";\n\n\t\tif(eregi(\"\\|\",$curr_id)){\n\t\t\t$curr_id_array=split(\"\\|\",$curr_id);\n\t\t}\n\n\t\tif(eregi(\"\\|\",$value_name)){\n\t\t\t$value_array=split(\"\\|\",$value_name);\n\t\t\t$value_query=preg_replace(\"#\\|#\",\",\",$value_name);\n\t\t}else{\n\t\t\t$value_query=$value_name;\n\t\t\t#echo\"<h1>value: $value_query | $value_name</h1>\";\n\t\t}\n\t\t$value_query=preg_replace(\"#,$#\",\"\",$value_query);\n\n\t\t$sql=\"select $option_name,$value_query from \".$table.\" $cond\";\n \n\t\t$result = $db->Execute(\"$sql\");\n\t\tif (!$result){\n\t\t\techo\"$sql\";\n\t\t\tprint $conn->ErrorMsg();\n\n\t\t}\n\t\twhile ( $row = $result->FetchRow() ) {\n\t\t\t//echo $curr_id.\"|\".$row[$this->fmtCase($option_name)].\"<br>\\n\";\n\t\t\tif(eregi(\"\\|\",$curr_id)){\n\t\t\t\t$selected= ((in_array($row[$this->fmtCase($option_name)],$curr_id_array))?\"selected \":\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$selected= (($curr_id==$row[$this->fmtCase($option_name)])?\"selected \":\"\");\n\t\t\t}\n\t\t\tif(eregi(\"\\|\",$value_name)){\n\n\t\t\t\tfor($i=0;$i<count($value_array);$i++){\n\t\t\t\t\t$each_value=strtolower($value_array[$i]);\n\t\t\t\t\t$_value .= $row[$each_value].\" -\";\n\t\t\t\t}\n\t\t\t\t$_value=preg_replace(\"#-$#\",\"\",$_value);\n\t\t\t}else{\n\t\t\t\t$value_name=strtolower($value_name);\n\t\t\t\t$_value=$row[$value_name];\n\t\t\t}\n\n\n\t\t\t$output .= \"<option value=\\\"\".$row[$this->fmtCase($option_name)].\"\\\" $selected>$_value</option>\\n\";\n\t\t\tunset($selected);\n\t\t\tunset($_value);\n\t\t}\n\t\t$result->Close();\n\n\t\t$output .= \"</SELECT>\\n\";\n\n\t\treturn $output;\n\t}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "public function fieldSelect($sId=\"\",$sNome=\"\",$aValue=\"\",$sLunghezza=0,$sTag=\"\", $jolly=\"\"){\r\n\t\t\r\n\t\tif($sTag==\"\"){\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\">\";\r\n\t\t}else{\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\"\" . $sTag . \">\";\r\n\t\t}\r\n\r\n\t\tforeach($aValue as $key=>$value){\r\n\t\t\tif(substr($value,0,1)==$jolly){\r\n\t\t\t\techo \"<option style=\\\"font-weight:bold;\\\" value=\\\"\" . $key . \"\\\">Gruppo: \" . substr($value,1) . \"</option>\";\r\n\t\t\t}else{\r\n\t\t\t\techo \"<option value=\\\"\" . $key . \"\\\">\" . $value . \"</option>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\techo \"</select>\";\r\n\t\t\r\n\t}", "function getEmployeesListCtrl() {\n $accounts = getEmployeesList();\n echo \"<select class='form-control' required name='id_comptes'>\";\n foreach ($accounts as $a) {\n if ($id === $a['id_compte']) {\n echo \"<option value='\".$a[\"id_compte\"].\"' selected>\".$a[\"nom\"].\" \".$a[\"prenom\"].\"</option>\";\n } else {\n echo \"<option value='\".$a[\"id_compte\"].\"'>\".$a[\"nom\"].\" \".$a[\"prenom\"].\"</option>\";\n }\n }\n echo \"</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 render()\n {\n $fromList = array();\n $this->getFromList($fromList);\n $value = $this->getValue()!==null?$this->getValue():$this->getDefaultValue();\n $valueArray = explode(',', $value);\n \n $disabledStr = ($this->getEnabled() == \"N\") ? \"DISABLED=\\\"true\\\"\" : \"\";\n $style = $this->getStyle();\n $func = $this->getFunction();\n\n //$sHTML = \"<SELECT NAME=\\\"\" . $this->objectName . \"[]\\\" ID=\\\"\" . $this->objectName .\"\\\" $disabledStr $this->htmlAttr $style $func>\";\n $sHTML = \"<SELECT NAME=\\\"\" . $this->objectName . \"\\\" ID=\\\"\" . $this->objectName .\"\\\" $disabledStr $this->htmlAttr $style $func>\";\n\n if ($this->blankOption) // ADD a blank option\n {\n $entry = explode(\",\",$this->blankOption);\n $text = $entry[0];\n $value = ($entry[1]!= \"\") ? $entry[1] : null;\n $entryList = array(array(\"val\" => $value, \"txt\" => $text ));\n $fromList = array_merge($entryList, $fromList);\n }\n\n $defaultValue = null;\n foreach ($fromList as $option)\n {\n $test = array_search($option['val'], $valueArray);\n if ($test === false)\n {\n $selectedStr = '';\n }\n else\n {\n $selectedStr = \"SELECTED\";\n $defaultValue = $option['val']; \n }\n $sHTML .= \"<OPTION VALUE=\\\"\" . $option['val'] . \"\\\" $selectedStr>\" . $option['txt'] . \"</OPTION>\";\n }\n if($defaultValue == null){\n \t$defaultOpt = array_shift($fromList);\n \t$defaultValue = $defaultOpt['val'];\n \tarray_unshift($fromList,$defaultOpt);\n }\n \n \n $this->setValue($defaultValue);\n $sHTML .= \"</SELECT>\";\n return $sHTML;\n }", "public function brandForm(){\n $table = \"brands\";\n $cresults = $this->getAllrecords($table);\n foreach($cresults as $brand){\n echo('<option value=\"'.$brand[\"brand_id\"].'\">'.$brand[\"brand_name\"].'</option>');\n }\n\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 }", "function dropdown_perusahaan() {\n $result = $this->db->get('tbl_perusahaan');\n\n // bikin array\n // please select berikut ini merupakan tambahan saja agar saat pertama\n // diload akan ditampilkan text please select.\n $dd[''] = 'Please Select';\n if ($result->num_rows() > 0) {\n foreach ($result->result() as $row) {\n // tentukan value (sebelah kiri) dan labelnya (sebelah kanan)\n $dd[$row->id_perusahaan] = $row->nama_perusahaan;\n }\n }\n return $dd;\n }", "public function formSelect($sId=\"\",$sNome=\"\",$sValore=\"\",$sLunghezza=0,$sTag=\"\", $jolly=\"\"){\r\n\r\n $sValore=split(\";\",htmlentities($sValore));\r\n\t\t\r\n\t\tif($sTag==\"\"){\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\">\";\r\n\t\t}else{\r\n\t\t\techo \"<select name=\\\"\" . $sNome . \"\\\"\" . $sTag . \">\";\r\n\t\t}\r\n\r\n\t\tforeach($sValore as $value){\r\n\t\t\t$sRecord=split(\",\",$value);\r\n\t\t\tif(substr($sRecord[1],0,1)==$jolly){\r\n\t\t\t\techo \"<option style=\\\"font-weight:bold;\\\" value=\\\"\" . $sRecord[0] . \"\\\">Gruppo: \" . substr($sRecord[1],1) . \"</option>\";\r\n\t\t\t}else{\r\n\t\t\t\techo \"<option value=\\\"\" . $sRecord[0] . \"\\\">\" . $sRecord[1] . \"</option>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\techo \"</select>\";\r\n\t\t\r\n\t}", "function form_dropdown($forms , $datas){\r\n\t$name = isset($forms['name']) ? $forms['name'] : rand(1000 , 9999 ) ;\r\n\t$class \t= isset( $forms['class'] ) ? $forms['class'] : $forms['name'] ;\r\n\t$value \t= isset( $forms['value'] ) ? $forms['value'] : \"\" ;\r\n\t$id \t= isset( $forms['id'] ) ? $forms['id'] : $forms['name'] ;\r\n\t$style\t= isset( $forms['style'] ) ? $forms['style'] : \"\" ;\r\n\t$multiple = isset($forms['multiple']) ? $forms['multiple'] : 0 ;\r\n\t\r\n\t$input = '<select onkeypress=\"return handleEnter(this, event)\" ';\r\n\t$input .= ' name=\"'.$name.'\" ';\r\n\t$input .= ' class=\"'.$class.'\" ';\r\n\t$input .= ' id=\"'.$id.'\" ';\r\n\t//$input .= ' style=\"'.$style.'\"';\r\n\tif(isset($forms['onchange'])){\r\n\t\t$input .= ' onchange=\"'.$forms['onchange'].'\" ';\r\n\t}\r\n\tif((int) $multiple > 0 ){\r\n\t\t$input .= ' scrolling=\"yes\" multiple=\"multiple\" size=\"'.$multiple.'\" ';\r\n\t}\r\n\t$input .= '>';\r\n\t$input .= '<option value=\"0\" selected ></option>\r\n\t\t\t\t';\r\n\t//$input .= '<option value=\"\">- - - - - Pilih - - - - -</option>';\r\n\tif( is_array($datas) ){\r\n\t\tforeach($datas as $option_value => $option ){\r\n\t\t\tif( $option_value == $value )\r\n\t\t\t\t$input .= '<option value=\"'.$option_value.'\" selected>'.$option.'</option>\r\n\t\t\t\t';\r\n\t\t\telse\r\n\t\t\t\t$input .= '<option value=\"'.$option_value.'\">'.$option.'</option>\r\n\t\t\t\t';\r\n\t\t} \r\n\t}\r\n\t$input .= '</select>';\r\n\t\r\n\treturn $input;\r\n\r\n}", "function language_select() {\n echo '<select name=\"language\">';\n foreach (Translate::$Languages as $lang => $details) {\n // Print the option\n echo '<option value=\"'.html_entities($lang).'\"';\n if ($_SESSION['language'] == $lang)\n echo ' SELECTED';\n echo '>'.$details[0].'</option>';\n }\n echo '</select>';\n }", "function InputOptSelect($Listes,$VariableName,$default,$taille=\"\",$autres=\"\")\t{\n\t\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t\t$cache=\"disabled\";\n\t\t\tif ($taille > 1)\n\t\t\t\t$_taille=\"WIDTH='$taille' STYLE='width: \".$taille.\"px'\";\n\t\t\t\n\t\t \t$res= \"<select $_taille name=\".$VariableName.\" id=\".$VariableName.\" $autres $cache>\";\n\t\t \t\n\t\t \tif(count($Listes) > 1 ){\n\t\t\t\t$res.= \"<option value='' selected>Selectionnez</option>\";\n\t\t\t}\n\t\t\t// boucle sur chaque OPT group\n\t\t\t$compteur=0;\n\t\t\tforeach ($Listes as $key => $value)\n\t\t\t{\n\t\t\t\t//fermer l'ancien opt group\n\t\t\t\tif($compteur > 0)\n\t\t\t\t\t$res.=\"</optgroup>\"; \n\t\t\t\t$compteur++;\n\t\t\t\t//ouverutre d'un nouveau opt group\t\n\t\t\t\t$res.=\"<optgroup label='\".$key.\"'>\"; \n\t\t\t\t$modelname=$value;\t\t\t\t\n\t\t\t \tfor($i=0;$i < count($modelname);$i++){\n\t\t\t \t\tlist($val,$libelle)=explode(\"|\",$modelname[$i]);\n\t\n\t\t\t \t\tif ($default==$val)\n\t\t\t\t \t\t$res.= \"<option value='$val' selected>\".htmlentities($libelle).\"</option>\";\n\t\t\t\t \telse\n\t\t\t\t \t\t$res.= \"<option value='$val' >\".htmlentities($libelle).\"</option>\";\n\t\t\t\t \t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//fermer le dernière opt group\n\t\t\tif($compteur > 0)\n\t\t\t\t$res.=\"</optgroup>\"; \n\t \t\t$res.= \"</select>\";\n\t\t\treturn $res;\n\t}", "function montar_select_perfilPaciente(&$select_perfis, $objPerfilPaciente, $objPerfilPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_perfis = $objPerfilPacienteRN->listar($objPerfilPaciente);\n\n $select_perfis = '<select class=\"form-control selectpicker\" onchange=\"val()\" id=\"select-country idSel_perfil\"'\n . ' data-live-search=\"true\" name=\"sel_perfil\">'\n . '<option data-tokens=\"\" ></option>';\n\n foreach ($arr_perfis as $perfil) {\n $selected = '';\n if ($perfil->getIdPerfilPaciente() == $objPaciente->getIdPerfilPaciente_fk()) {\n $selected = 'selected';\n }\n\n $select_perfis .= '<option ' . $selected . ' value=\"' . $perfil->getIdPerfilPaciente() . '\" data-tokens=\"' . $perfil->getPerfil() . '\">' . $perfil->getPerfil() . '</option>';\n }\n $select_perfis .= '</select>';\n}", "function select($name='',$class='',$optName='',$id='',$attrib='') {\n\t\t$n = '';\n\t\t$option = '';\n\t\t$fldname = str_replace(' ', '_', $name);\n\t\tif(isset($_SESSION[$fldname])) $n = $_SESSION[$fldname];\n\t\tif(isset($_POST[$fldname])) $n = $_POST[$fldname]; \n\t\tforeach($optName as $optVal){\n\t\t\t$cndtn = ($n == $optVal)? 'selected=\"selected\"' : '';\n\t\t\t$option .= '<option value=\"'.$optVal.'\" '.$cndtn.'>'.$optVal.'</option>';\t\t\n\t\t}\n\t\t$select = '<select name=\"'.$fldname.'\" class=\"'.$class.'\" id=\"'.$id.'\" '.$attrib.'>'.$option.'</select>';\n\t\techo $select;\n\t}", "public function dropDownPostStatus($selected = \"\")\n{\n \n $name = 'post_status';\n \n $posts_status = array('publish' => 'Publish', 'draft' => 'Draft');\n \t\n if ($selected != '') {\n \n $selected = $selected;\n\n }\n \t\n return dropdown($name, $posts_status, $selected);\n \t\n}", "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}", "public function select()\n {\n\n }", "function\tdropdown_list($dbconn) {\n\t$sqlcom=\"select distinct spec_id,name from info;\";\n\t$dbres = pg_exec($dbconn, $sqlcom );\n\tif ( ! $dbres ) {echo \"Error : \" + pg_errormessage( $dbconn ); exit();} \n\t$row=0;\n\t$rowmax=pg_NumRows($dbres);\n\tprint \"<form method=\\\"post\\\" action=\\\"libSpec.php\\\"><select name=\\\"organism\\\" onchange=\\\"this.form.submit();\\\">\\n<option value=\\\"select\\\">Select an organism...</option>\\n\"; \n\twhile ($row<$rowmax) {\n\t $do = pg_Fetch_Object($dbres, $row);\n\t $name=$do->name;\n\t print \"<option value=\\\"$name\\\">$name</option>\\n\";\n\t $row++;\n\t}\n\tprint(\"</select></form>\\n\\n\");\n}", "public function form()\r\n {\r\n $this->switch('field_select_create', Support::trans('main.select_create'))\r\n ->default(admin_setting('field_select_create'));\r\n }", "function DependantDropdown(){\r\n }", "function rdisplay()\r\n\t{\r\n\t\t$select = $this->open_select().\"\\n\";\r\n\t\tforeach ($this->m_array_options as $options )\r\n\t\t{\r\n\t\t\t\t$selected = ($options['selected'] == true ) ? \"selected\" : \"\";\r\n\t\t\t\t\r\n\t\t\t\t$select .= \"<option value=\\\"\".$options['value'].\"\\\" $selected >\".$options['text'].\"</option> \\n\";\r\n\t\t}\r\n\t\t$select .= $this->close_select().\"\\n\";\r\n\t\treturn $select;\r\n\t}", "public function degreelist(){\n\t\t\t$pgcatname = $this->input->post('stu_prgcate');\n\t\t\t$list = $this->commodel->get_listspfic2('program','','prg_name,prg_id,prg_branch','prg_category',$pgcatname,'prg_name,prg_branch');\n\t\techo \"<select>\";\n\t\techo \"<option disabled selcted>Select Programe</option>\";\n\t\tforeach($list as $datas): \n \t\t \techo \"<option id='degree' value='$datas->prg_id'> \" .\"$datas->prg_name\".'('.$datas->prg_branch.')'.\"</option>\";\n \t\tendforeach;\n\t\techo \"</select>\";\n\t }", "function cmdSinceS($name, $caption) {\n $optsinceS = array\n (\n array(\"\", \"\"),\n array(\"Delivery Order\", \"1\"),\n array(\"Sales Invoice\", \"2\"),\n );\n ?>\n <tr>\n <td>Hari</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:120\"\n disabled=true\n >\n <?php\n foreach ($optsinceS as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "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 llenarCombo()\n {\n\n \n \t$area_destino = $_POST[\"dir\"];\n\n \t$options=\"\";\n \t\n \t$deptos = $this ->Modelo_direccion->obtenerCorreoDepto($area_destino);\n\n \tforeach ($deptos as $row){\n \t\t$options= '\n \t\t<option value='.$row->email.'>'.$row->email.'</option>\n \t\t'; \n \t\techo $options; \n \t}\n \t\n\n }", "function selectzone() {\n if (isset($_POST['isactive'])) {\n $data = Zone::model()->isactive()->findAllByAttributes(array('country_id' => (int) $_POST['country_name']));\n } else {\n $data = Zone::model()->findAllByAttributes(array('country_id' => (int) $_POST['country_name']));\n }\n $data = CHtml::listData($data, 'zone_id', 'zone_Name');\n if (count($data)) {\n foreach ($data as $value => $name) {\n echo CHtml::tag('option', array('value' => $value), CHtml::encode($name), true);\n }\n } else {\n echo CHtml::tag('option', array('value' => '0'), CHtml::encode('No Zone available'), true);\n }\n }", "function dropdown_ijin() {\n $result = $this->db->get('tbl_ijin');\n\n // bikin array\n // please select berikut ini merupakan tambahan saja agar saat pertama\n // diload akan ditampilkan text please select.\n $dd[''] = 'Please Select';\n if ($result->num_rows() > 0) {\n foreach ($result->result() as $row) {\n // tentukan value (sebelah kiri) dan labelnya (sebelah kanan)\n $dd[$row->id_ijin] = $row->nomor . \"/KODE KANTOR/\" . $row->id_seksi . \"/\" . $row->tahun;\n }\n }\n return $dd;\n }", "function option_dropdown($label, $name, $value, $keys, $comment='') {\r\n\t\techo \"<tr valign='top'><th scope='row'>\" . $label . \"</th>\";\r\n\t\techo \"<td><select name='$name'>\";\r\n\r\n\t\tforeach ((array)$keys as $key => $description) {\r\n\t\t\tif ($key == $value)\r\n\t\t\t\t$selected = \"selected\";\r\n\t\t\telse\r\n\t\t\t\t$selected = \"\";\r\n\r\n\t\t\techo \"<option value='\" . htmlentities($key, ENT_QUOTES, 'UTF-8') . \"' $selected>$description</option>\";\r\n\t\t}\r\n\t\techo \"</select>\";\r\n\t\techo \" $comment</td></tr>\";\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}", "function okrs_related_to_select($value)\n{\n\n $selected = '';\n if($value == 'okrs'){\n $selected = 'selected';\n }\n echo \"<option value='okrs' \".$selected.\">\".\n _l('okrs').\"\n </option>\";\n\n}", "function 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 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 cmdCustType($name, $caption) {\n $optcust_type = array\n (\n array(\"\", \"\"),\n array(\"End User\", \"1\"),\n array(\"Dealer / Reseller\", \"2\"),\n array(\"Goverment / BUMN\", \"3\"),\n );\n ?>\n <tr>\n <td><?php getCaption($caption); ?> :</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:200\"\n disabled=true\n >\n <?php\n foreach ($optcust_type as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "static function html_select(array $input,$name,$sled=''){\n\t\t$ret='';\n\t\t\t$ret.='<select name=\"'.$name.'\">';\n\t\tforeach($input as $k=>$v){\n\t\t\t$tmp_def = $sled == $k ? 'selected=\"selected\"':'';\n\t\t\t$ret.='<option value=\"'.$k.'\" '.$tmp_def.'>'.$v.'</option>';\n\n\t\t}\n\t\t$ret.='</select>';\n\t\treturn $ret;\n\t}", "public function bitorondropdown(){\n\t\tif(!empty($_REQUEST['id'])){\n\t\t\t$this->layout='ajax';\n\t\t\t//$this->loadModel('Maincategory');\n\t\t\t$childCatIds = $this->Childcategory->find('list',array('fields'=>array('id','name'),\n\t\t\t\t'conditions' =>array('maincategory_id' =>$_REQUEST['id'])));\n\n\t\t\t$this->set(compact('childCatIds'));\n\t\t}\n\n\t}", "function fg_write_stato($id_stato=0)\n{\n echo \"<select class=\\\"form_field_enabled\\\" id=\\\"select_stato\\\" name=\\\"id_stato\\\">\";\n\n $yes_selected = \"selected=\\\"selected\\\"\";\n $no_selected = \"\";\n\n $ss = DB::newSelect(\"location_stati\");\n $ss->add(\"id_stato\");\n $ss->add(\"nome\");\n $ss->addOrdering(\"nome\");\n\n $result = $ss->exec();\n $selected = $id_stato>0 ? $no_selected : $yes_selected;\n echo \"<option value=\\\"-1\\\" \".$selected.\">(Seleziona uno stato)</option>\\n\";\n while ($row = mysql_fetch_assoc($result))\n {\n if ($row['id_stato']==$id_stato)\n $selected = $yes_selected;\n else\n $selected = $no_selected;\n echo \"<option value=\\\"\".$row['id_stato'].\"\\\" $selected>\".$row['nome'].\"</option>\\n\";\n }\n mysql_free_result($result);\n\n echo \"</select>\";\n}", "public function dd_selreqcategory() {\n $reqtypeid = $this->input->post('sRequestID');\n $ddSelReqcategory = $this->Requestproc_mdl->selreqcategory($reqtypeid);\n //KONDISI JIKA REQUEST TYPENYA SAMA DENGAN 2/PROJECT MAKA ONCHANGE Tidak BELAKU-------------------/\n if ($reqtypeid == 2 || $reqtypeid == 5) {\n echo \"<select class='form-control' name='ReqCategoryID' id='ReqCategoryID' onchange='loadGridItemList()'>\";\n } else {\n echo \"<select class='form-control' name='ReqCategoryID' id='ReqCategoryID' onchange='loadGridItemList()'>\";\n }\n echo \"<option value='' disabled='' selected=''>--Select--</option>\";\n foreach ($ddSelReqcategory as $row) {\n if ($row->BudgetUsed != 0) {\n $RestofBudget = $row->BudgetValue - $row->BudgetUsed;\n } else {\n $RestofBudget = $row->BudgetValue - $row->BudgetUsed;\n }\n echo \"<option value='$RestofBudget>$row->BudgetCOA--$row->ReqCategoryID'>$row->BudgetCOA - $row->ReqCategoryName</option>\";\n// $options .= \"<option value='\" . $k->DivisionID . \"'>\" . $k->DivisionName . \"</option>\";\n }\n echo \"</select>\";\n// $this->load->view('procurement/popupitem_list.js.php');\n }", "function _generateSelection()\n {\n $i = 0;\n foreach ($_POST as $key=>$value) {\n echo \"<input type='hidden' name=$key value=$value required>\";\n echo \"<div class='form-group'>\";\n if (isset($value) && $this->\n _childexists($value, $this->_getRubriekFromDb())) {\n echo $this->_generateRubriekVerkoopList($value, $this->_getRubriekFromDb(), \"subrubriek\" . $i);\n echo \"<script type='text/javascript'>\n document.getElementById('$key').disabled = true;\n </script>\";\n }\n echo \"</div>\";\n echo \"<script type='text/javascript'>\n document.getElementById('$key').value= $value \n </script>\";\n $i++;\n }\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 InputSelect($modelname1,$VariableName,$default,$taille=\"\",$autres=\"\")\t{\n\n\t\t$modelname=&$modelname1;\n\n\t\t// gestion readonly\n\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t$cache=\"disabled\";\n\n\t\t// check taille \n\t\tif ($taille > 1)\n\t\t\t$_taille=\"WIDTH='$taille' STYLE='width: \".$taille.\"px'\";\n\t\t\n\t \t$res= \"<select $_taille name='\".$VariableName.\"' id='\".$VariableName.\"' $autres $cache>\";\n\n\t\t// check nbr elements et proposee selectionne par default\t \t\n\t \tif(count($modelname) >1 ){\n\t\t\t$res.= \"<option value='' selected>Selectionnez</option>\";\n\t\t}\n\t \tfor($i=0;$i < count($modelname);$i++){\n\t \t\tlist($val,$libelle)=explode(\"|\",$modelname[$i]);\n\n\t \t\tif ($default==$val)\n\t\t \t\t$res.= \"<option value='$val' selected>\".htmlentities($libelle).\"</option>\";\n\t\t \telse\n\t\t \t\t$res.= \"<option value='$val' >\".htmlentities($libelle).\"</option>\";\n\t\t \t\n\t\t}\n\t\t \t\t$res.= \"</select>\";\n\t\treturn $res;\n\t}", "public function actionSetDropdownPegawai($encode=false,$model_nama='',$attr='')\n {\n if(Yii::app()->request->isAjaxRequest) {\n $modDokter = new DokterV;\n if($model_nama !=='' && $attr == ''){\n $ruangan_id = $_POST[\"$model_nama\"]['ruangan_id'];\n }\n elseif ($model_nama == '' && $attr !== '') {\n $ruangan_id = $_POST[\"$attr\"];\n }\n elseif ($model_nama !== '' && $attr !== '') {\n $ruangan_id = $_POST[\"$model_nama\"][\"$attr\"];\n }\n $dokter = null;\n if($ruangan_id){\n $dokter = $modDokter->getDokter($ruangan_id);\n $dokter = CHtml::listData($dokter,'pegawai_id','NamaLengkap');\n }\n\n if($encode){\n echo CJSON::encode($dokter);\n } else {\n if(empty($dokter)){\n echo CHtml::tag('option', array('value'=>''),CHtml::encode('-- Pilih --'),true);\n }else{\n echo CHtml::tag('option', array('value'=>''),CHtml::encode('-- Pilih --'),true);\n foreach($dokter as $value=>$name)\n {\n echo CHtml::tag('option', array('value'=>$value),CHtml::encode($name),true);\n }\n }\n }\n }\n Yii::app()->end();\n }", "function listcolores($value, $opc){\r\n if($opc == 1){\r\n $funcion = 'showResult(this.value, 5, 3)';\r\n $funcion2 = '';\r\n $disabled = '';\r\n \r\n }else if($opc == 2){\r\n $funcion = '';\r\n $funcion2 = 'selobjeto(this,'.$value.')';\r\n $disabled = ''; \r\n }else if($opc == 3){\r\n $funcion = 'showResult(this.value, 5, 4)';\r\n $funcion2 = '';\r\n $disabled = ''; \r\n }else if($opc == 4){\r\n $funcion = 'showResult(this.value, 5, 6)';\r\n $funcion2 = '';\r\n $disabled = ''; \r\n }else\r\n $disabled = 'disabled';\r\n ?>\r\n \r\n<select class=\"select-css\" id=\"<? echo \"COLOR_ID\".$value;?>\" onclick=\"<? echo $funcion2;?>\" style=\"font-size: medium; font-weight: bold;\" title=\"COLORES\" \r\n onchange=\"<? echo $funcion;?>\" class=\"form-control col-lg-12 col-12 col-sm-12 sinpadding \" <? echo $disabled;?> >\r\n <? objcolor(1);?>\r\n </select>\r\n<?}", "public function Do_Allselect_Example1(){\n\n\t}", "public function renderLanguageSelect() {}", "public function client_option()\n {\n $this->load->model('m_contacts');\n $resultat = $this->m_contacts->liste_option();\n $results = json_decode(json_encode($resultat), true);\n\n echo \"<option value='' selected='selected'>(choisissez)</option>\";\n foreach ($results as $row) {\n echo \"<option value='\" . $row['id'] . \"'>\" . $row['value'] . \"</option>\";\n }\n }", "public function 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 drop_down()\n\t{\n\t\t$args = func_get_args();\n\n\t\tif(count($args) == 2)\n\t\t{\n\t\t\tlist($key, $value) = $args;\n\t\t}\n\t\telse {\n\t\t\t$key = $this->primary_key;\n\t\t\t$value = $args[0];\n\t\t}\n\n\t\t$this->trigger('before_dropdown', array($key, $value));\n\n\t\t$result = $this->db->select(array($key, $value))\n\t\t\t\t\t\t ->get($this->_table)\n\t\t\t\t\t\t ->result();\n\n\t\t$options = array();\n\n\t\tforeach($result as $row) \n\t\t{\n\t\t\t$options[$row->{$key}] = $row->{$value};\n\t\t}\n\n\n\t\t$options = $this->trigger('after_dropdown', $options);\n\n\t\treturn $options;\n\t}", "public function getSelectDataFields();", "function ninja_forms_list_field_type_dropdown( $selected ){\r\n\t$output = '<option value=\"\" disabled>' . __( 'List', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-dropdown' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-dropdown\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Dropdown (Select)', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-radio' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-radio\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Radio', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-checkbox' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-checkbox\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Checkboxes', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-multi' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-multi\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Multi-Select', 'ninja-forms-style' ) . '</option>';\r\n\r\n\treturn $output;\r\n}", "function caldol_add_options_members_filter(){\n\techo '<option value=\"TomChoice\">doggie</option>';\n\t\t\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 comboRecompensas($id_recompensa = 0, $filter = \"\", $name_control = \"id_recompensa\"){\n\t$elements = recompensasController::getListAction(9999, $filter); ?>\n\t<select name=\"<?php echo $name_control;?>\" id=\"<?php echo $name_control;?>\" class=\"form-control\">\n\t\t<option value=\"0\"> ---- Selecciona una recompensa ---- </option>\n\t\t<?php foreach($elements['items'] as $element):?>\n\t\t<option value=\"<?php echo $element['id_recompensa'];?>\" <?php if ($id_recompensa == $element['id_recompensa']) echo ' selected=\"selected\" ';?>><?php echo $element['recompensa_name'];?></option>\n\t\t<?php endforeach;?>\n\t</select>\n<?php }", "function recorre_tabla_anidada($nombreta, $nombretp, $selectDestino){\r\n$sql_query= \"Select * From $nombreta Where universidad = '$nombretp'\";\t\r\n$consulta=pg_query($sql_query);\r\necho \"<div><select name='$selectDestino' id='$selectDestino' onChange='cargaContenido(this.id)'>\";\r\necho \"<option value='0'>Seleccione $nombreta</option>\";\r\nwhile($fila=pg_fetch_row($consulta)){\r\n\techo \"<option value='\".$fila[0].\"'>\".$fila[0].\"</option>\";}\t\t\t\r\necho \"</select></div>\";\t\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 }", "public function categoryForm(){\n $table = \"categories\";\n $cresults = $this->getAllrecords($table);\n foreach($cresults as $category){\n echo('<option value=\"'.$category[\"cat_id\"].'\">'.$category[\"cat_name\"].'</option>');\n }\n\n\n }", "function get_selected()\n {\n }", "public function consumablesDropdown()\n {\n $sql = \"SELECT `materials`.`material_id`,`materials`.`material_name`,`materials`.`material_grade`\n FROM `materials`\n\t\t\t\tWHERE `injection` = 1 AND `consumables` = 1\n ORDER BY `materials`.`material_name`;\";\n if($stmt = $this->_db->prepare($sql))\n {\n $stmt->execute();\n while($row = $stmt->fetch())\n {\n $ID = $row['material_id'];\n $NAME = $row['material_name'];\n $GRADE = $row['material_grade'];\n echo '<li><a id=\"'. $NAME .'\" onclick=\"selectConsumable(\\''. $ID .'\\',\\''. $NAME .'\\')\">'. $NAME .'</a></li>'; \n }\n $stmt->closeCursor();\n }\n else\n {\n echo '<li>Something went wrong.'. $db->errorInfo .'</li>'; \n }\n }", "private function status() {\n $element = new Select('status');\n $element->setLabel('Status');\n $element->setAttribute('class', 'custom-select col-12');\n $element->setOptions(User::getStatuses());\n $element->setUserOption('lblRequired', true);\n $this->add($element);\n }", "function SelectBox($name)\n {\n $this -> name = $name;\n }", "function recorre_tabla_anidada($nombreta, $nombretp, $selectDestino){\r\n$sql_query= \"Select * From $nombreta Where universidad = '$nombretp'\";\t\r\n$consulta=pg_query($sql_query);\r\necho \"<div><select name='$selectDestino' id='$selectDestino' onChange='cargaContenido(this.id)'>\";\r\necho \"<option value='0'>Seleccione $nombreta</option>\";\r\nwhile($fila=pg_fetch_row($consulta)){\r\n\techo \"<option value='\".$fila[0].\"'>\".$fila[1].\"</option>\";}\t\t\t\r\necho \"</select></div>\";\t\r\n}", "public function brandsSearchDrop(){\n $table = \"brands\";\n $cresults = $this->getAllrecords($table);\n if($cresults == \"NO_RECORDS_FOUND\"){\n echo(\"NO_PRODUCT_FOUND\");\n }\n else{\n foreach($cresults as $brands){\n echo('<option value=\"'.$brands[\"brand_id\"].'\">'.$brands[\"brand_name\"].'</option>');\n }\n\n\n }\n\n \n}", "function getSelect($label, $name, $id, $options) {\r\n $return .= $this->getLabel($label, $id, $true);\r\n $return .= \"<select name='\".$name.\"' id='\".$id.\"'>\";\r\n if($this->getConfigurationValue($name) AND !$value){\r\n $value = $this->getConfigurationValue($name);\r\n }elseif($_POST[$name]){\r\n $data = $this->getFormData(array($name));\r\n $value = $data[$name];\r\n } \r\n foreach($options as $key=>$option){\r\n $selected = \"\";\r\n if($option==$value) $selected=\" selected='selected'\";\r\n $return .= \"<option value='\".$option.\"'\".$selected.\">\".$option.\"</option>\"; \r\n }\r\n $return .= \"</select>\";\r\n return $return;\r\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 }", "public function ambil_dropdown(){\n\t\treturn $this->db->get('daftar_akun')->result();\n\t}", "function pqrc_display_select_field()\n {\n global $pqrc_countries;\n $option = get_option('pqrc_select');\n\n printf('<select id=\"%s\" name=\"%s\">', 'pqrc_select', 'pqrc_select');\n foreach ($pqrc_countries as $country) {\n $selected = '';\n if ($option == $country) {\n $selected = 'selected';\n }\n printf('<option value=\"%s\" %s>%s</option>', $country, $selected, $country);\n }\n echo \"</select>\";\n }", "public function resultat_option()\n {\n $resultat = $this->m_feuille_controle->resultat_liste_option();\n $results = json_decode(json_encode($resultat), true);\n\n echo \"<option value='' selected='selected'>(choisissez)</option>\";\n foreach ($results as $row) {\n echo \"<option value='\" . $row['id'] . \"'>\" . $row['value'] . \"</option>\";\n }\n }", "function populate_list_array($objname, $array_list, $value_array, $display_array, $defaultvalue=-1,$disable=false){\nGLOBAL $g_obj_select_default_text;\n?>\t\n<select name=\"<?php echo $objname; ?>\" <?php if ($disable == true){?> disabled=\"true\"<?php } ?> >\n\t<option selected=\"selected\" value=\"-1\"><?php echo $g_obj_select_default_text ?></option>\n\t<?php foreach ($array_list as $value) { ?><option <?php if( $defaultvalue == $value[$value_array]){ ?> selected=\"selected\"<?php } ?> value=\"<?php echo $value[$value_array]; ?>\"><?php echo $value[$display_array]; ?></option>\n\t<?php } //--end for ?>\n\n</select>\n\t\n<?php }", "function output_query_in_select($index) {\n\techo '<select class=\"form-control\" name=\"'.$index.'\" id=\"'.$index.'\">';\n\t$pdo = CDatabase::connect();\n\t$sql = \"SELECT * from $index ORDER BY $index ASC\";\n\tforeach ($pdo->query($sql) as $row) {\n\t\techo '<option value=\"'.$row[$index].'\">'.$row[$index].'</option>';\n\t}\n\tCDatabase::disconnect();\n\techo '</select>';\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}", "function cmdMarital($name, $caption) {\n $optmarital = array\n (\n array(\"\", \"\"),\n array(\"Single\", \"1\"),\n array(\"Married\", \"2\"),\n );\n ?>\n <tr>\n <td><?php getCaption($caption); ?> :</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:200\"\n disabled=true\n >\n <?php\n foreach ($optmarital as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\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 }", "function getNameOptions(){\n $db = JFactory::getDBO();\n $query = $db->getQuery(true);\n \n // Select some fields\n //$query->select('DISTINCT name');\n $query->select('name');\n // From the hello table\n $query->from('#__helloworld_message');\n\t\t\t\t\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$result = $db->loadObjectList();\n\t\t\t\n\t\t\tforeach($result as $item){\n\t\t\t\t$name = $item->name;\n\t\t\t\t$filter_name_options[] = JHTML::_('select.option', $name , $name);\n\t\t\t\t}\n\t\t\treturn $filter_name_options;\n\t\t\t\n\t\t\t}", "function get_name_select_edit()\n\t{\n\t\treturn $this->name;\n\t}", "function getjsOnSelect () { return $this->readjsOnSelect(); }", "public function empty_unit_dropdown_select()\n {\n $empty_select = '<select name=\"iUnitID\" class=\"chosen-select\" data-placeholder=\"Select Unit\" style=\"width: 300px; display: none;\">';\n $empty_select_closed = '</select>';\n //GET THE ID OF THE LISTING USING URI\n $listingID = $this->uri->segment(5);\n \n //LOAD GCRUD AND GET THE STATE\n $crud = new grocery_CRUD();\n $state = $crud->getState();\n \n //CHECK FOR A URI VALUE AND MAKE SURE ITS ON THE EDIT STATE\n if(isset($listingID) && $state == \"edit\") {\n //GET THE STORED STATE ID\n $this->db->select('companyID, divisionID, deptID, iUnitID, iGroupApprovalId')\n ->from('tbl_apv_group_approval')\n ->where('iGroupApprovalId', $listingID);\n $db = $this->db->get();\n $row = $db->row(0);\n $divisionID = $row->divisionID;\n $deptID = $row->deptID;\n $unitID = $row->iUnitID;\n \n //GET THE CITIES PER STATE ID\n $this->db->select('*')\n ->from('tbl_unit')\n ->where('deptID', $deptID);\n $db = $this->db->get();\n \n //APPEND THE OPTION FIELDS WITH VALUES FROM THE STATES PER THE COUNTRY ID\n foreach($db->result() as $row):\n if($row->unitID == $unitID) {\n $empty_select .= '<option value=\"'.$row->unitID.'\" selected=\"selected\">'.$row->NamaUnit.'</option>';\n } else {\n $empty_select .= '<option value=\"'.$row->unitID.'\">'.$row->NamaUnit.'</option>';\n }\n endforeach;\n \n //RETURN SELECTION COMBO\n return $empty_select.$empty_select_closed;\n } else {\n //RETURN SELECTION COMBO\n return $empty_select.$empty_select_closed; \n }\n }" ]
[ "0.7486098", "0.73576593", "0.72264445", "0.70925325", "0.7079501", "0.7079501", "0.696074", "0.692876", "0.6914811", "0.6907395", "0.6907395", "0.68755406", "0.6704296", "0.67016107", "0.6674178", "0.66357315", "0.65783453", "0.65446454", "0.65177053", "0.6516232", "0.651407", "0.64776117", "0.646738", "0.6462882", "0.6436848", "0.6436757", "0.6426587", "0.63734037", "0.6357069", "0.6356692", "0.6355232", "0.6350479", "0.6348331", "0.63475776", "0.6344192", "0.6341843", "0.63258094", "0.63256586", "0.6322802", "0.6319137", "0.6317926", "0.63103366", "0.63070583", "0.6306094", "0.6304083", "0.62974167", "0.62876546", "0.6285672", "0.6283303", "0.62768126", "0.6275259", "0.6247405", "0.62317765", "0.623111", "0.6220635", "0.6215637", "0.6202093", "0.61965615", "0.61942154", "0.6191108", "0.6189059", "0.6183084", "0.61802894", "0.61786807", "0.6169713", "0.61654884", "0.6162017", "0.6161671", "0.61559963", "0.6153985", "0.6153112", "0.6147333", "0.6145055", "0.6136245", "0.61275804", "0.61249363", "0.6114134", "0.6111455", "0.60937387", "0.60896724", "0.6088699", "0.60864615", "0.607887", "0.6076887", "0.6075374", "0.6070393", "0.60649353", "0.6064362", "0.60598516", "0.6051594", "0.60486454", "0.6047288", "0.6045048", "0.60428166", "0.6041907", "0.60292655", "0.60273445", "0.6027223", "0.6026535", "0.6023723", "0.602349" ]
0.0
-1
used to read category name by its ID
function readName(){ $query = "SELECT id, name, status FROM " . $this->table_name . " WHERE id = ? limit 0,1"; $stmt = $this->conn->prepare($query); $stmt->bindParam(1, $this->id); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); $this->name = $row['name']; $this->status = $row['status']; $this->id = $row['id']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCategoryNameById($id = null){\n\t}", "function readCategoryName ()\n {\n $query = \"SELECT name FROM \" . $this->table_name . \" WHERE id = ? limit 0,1\";\n $stmt = $this->connection->prepare($query);\n $stmt->bindParam(1, $this->id);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n $this->name = $row['name'];\n }", "function getCategoryNameById($cat_id) {\n $ci = & get_instance();\n $category = $ci->crud->get(ES_PRODUCT_CATEGORIES, array('id' => $cat_id));\n if (count($category) > 0) {\n return $category['name'];\n } else {\n return \"Not available\";\n }\n}", "function get_cat_name($cat_id)\n {\n }", "function get_catname($cat_id)\n {\n }", "function cat_id_to_name($id) {\r\n\tforeach((array)(get_categories()) as $category) {\r\n \tif ($id == $category->cat_ID) { return $category->cat_name; break; }\r\n\t}\r\n}", "function getCategoryName($id){\n\t\t$conn \t= connectDB();\n\t\t$sth \t= $conn -> prepare(\"\tSELECT name\n\t\t\t\t\t\t\t\t\t\tFROM `category`\n\t\t\t\t\t\t\t\t\t\tWHERE `id` = ?\");\n\t\t$sth \t-> execute(array($id));\n\n\t\treturn \t$sth;\n\t}", "function cah_news_get_category_name($cat_ID) {\r\n $response = cah_news_get_rest_body('categories/' . $cat_ID);\r\n if ($response) {\r\n return $response->name;\r\n }\r\n}", "public static function get_category_name($id){\n $res = DB::select(DB_COLUMN_CATEGORY_NAME)\n ->from(DB_TABLE_CATEGORY)\n ->where(DB_COLUMN_CATEGORY_ID, $id)\n ->and_where(DB_COLUMN_CATEGORY_DELETE_FLAG, 0)\n ->execute();\n $arr = $res->as_array();\n return $arr[0][\"name\"];\n }", "function getCategoryNameById($id) {\n // Connect To Blog DB\n $db = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_DATABASE);\n\n $sql = \"SELECT `name` FROM categories WHERE id='$id'\";\n $result = mysqli_query($db, $sql);\n $category = mysqli_fetch_assoc($result);\n\n // Close Connection\n $db -> close();\n\n return $category['name'];\n}", "function get_category_by_id($cate_id) {\n App::import(\"Model\", \"Category\");\n $model = new Category();\n $categoryInfo = $model->findById($cate_id);\n return $categoryInfo['Category']['title'];\n }", "function getCategoryById($categoryId){\n\n\t\tglobal $conn;\n\n\t\t$query = \"SELECT name FROM Category WHERE id='\". $categoryId . \"'\";\n\n\t\t$result = $conn->query($query);\n\n\t\tif($result->num_rows != 1){\n\t\t\techo \"Error selecting \" . $categoryId . \" details\";\n\t\t}else{\n\t\t\treturn $result->fetch_assoc()['name'];\n\t\t}\n\n\t}", "function TestCase_lookup_category_name_by_id($category_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.lookup_category_name_by_id', array(new xmlrpcval($category_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "function get_category_by_id($cate_id) {\n App::import(\"Model\", \"Category\");\n $model = new Category();\n $categoryInfo = $model->findById($cate_id);\n return (!empty($categoryInfo['Category']['title']))?$categoryInfo['Category']['title']:\"\";\n }", "function getCategoryName($catId) {\n\t\t\n // Function to connect to the DB\n $link = connectToDB();\n\n\t//Retrieve the data\n\t$strSQL = \"SELECT CategoryName FROM FC_Categories where CategoryID=\" . $catId;\n $result = mysql_query($strSQL) or die(mysql_error());\n if ($result) {\n if (mysql_num_rows($result) > 0) {\n $ors = mysql_fetch_array($result);\n $category = $ors['CategoryName'];\n } else {\n $category = \" \";\n }\n }\n mysql_close($link);\n\n return $category;\n}", "function getCategoryName($id = null) {\n\t\t// import Category db\n\t\tApp::import('Model','Category');\n\t\t$this->Category = & new Category();\n\t\t# fetch list of active departments \n\t\t$category_name = $this->Category->find('all',array('conditions'=>array('Category.status'=>'1' , 'Category.id'=>$id),'fields'=>array('id','cat_name')));\n\t\treturn $category_name;\n\t}", "function getCategoryName($categoryID)\n {\n return $this->data->getCategoryName($categoryID);\n }", "function getName($category_id)\n {\n $query = \"SELECT name FROM categories WHERE active = '1' and categories_id = '$category_id' \";\n $data = $this->db->select($query);\n $result = [];\n if (!empty($data)) {\n $result = $data->fetch_assoc();\n }\n // $cat = new category($result[0],$result[1],$result[2],$result[3],$result[4],$result[5]);\n return $result;\n }", "function get_linkcatname($id = 0)\n {\n }", "public static function getCatName($id){\n $m = PostCategory::findOne($id);\n if(isset($m)){\n return $m->name;\n }\n }", "function getname($category_id){\n\t\t\t\t\n\n\t\t\t\t$Q = $this->db->query('SELECT name\n\t\t\t\t\t\t\t\tFROM customize_apparel_category\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tWHERE apparel_category_id = '.$category_id.'');\n\t\t\t\tif ($Q-> num_rows() > 0){\n\t\t\t\tforeach ($Q->result_array() as $row){\n\t\t\t\t$type_name= $row['name'];\n\t\t\t\t}\n\t\t\t\treturn $type_name;\n\t\t\t\t}\n\t\t\t\t}", "function get_category_by_id($category_id)\n\t\t{\n\t\t\tif(!$category_id)\n\t\t\t\treturn \"\";\n\t\t\t$query = \" SELECT id,name,name_display,is_comment, alias, display_tags,display_title,display_sharing,display_comment,display_category,display_created_time,display_related,updated_time\n\t\t\t\t\t\tFROM \".$this->table_category .\" \n\t\t\t\t\t\tWHERE id = $category_id \";\n\t\t\tglobal $db;\n\t\t\t$sql = $db->query($query);\n\t\t\t$result = $db->getObject();\n\t\t\treturn $result;\n\t\t}", "function get_category_name($category_id) {\n global $db;\n $query = \n ' SELECT * FROM categories\n WHERE cat_categoryID = :category_id'; \n $statement = $db->prepare($query);\n $statement->bindValue(':category_id', $category_id);\n $statement->execute(); \n $category = $statement->fetch();\n $statement->closeCursor(); \n $category_name = $category['cat_categoryName'];\n return $category_name;\n}", "function get_categoria($id){\t\n\t\t$sql=\"SELECT nombre_cat FROM categoria WHERE id_cat='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_cat'];\n\t}", "public function getCategoryName() {\n try {\n // connect to db\n $pdo = $this->_db->connect();\n\n // set up SQL\n $sql = \"SELECT categoryName FROM category WHERE categoryId = \" . $_GET[\"categoryId\"];\n $stmt = $pdo->prepare($sql);\n\n // execuet SQL\n $rows = $this->_db->executeSQL($stmt);\n\n return $rows;\n } catch (PDOException $e) {\n throw $e;\n }\n }", "function get_cat($cat_id){\n\tglobal $connection;\n\t$get_cat= mysqli_query($connection,\"SELECT * FROM kp_category WHERE cat_id='$cat_id'\");\n\t$n = mysqli_fetch_assoc($get_cat);\n\t$name = $n['name']; \n\treturn $name;\n}", "function getCategory($id_category){\n $db = db();\n $db->begin();\n $data = $db->exec('SELECT * FROM m_song WHERE fk_id_category = '.$id_category);\n\n return $data;\n }", "function category(){\n\t\trequire('quizrooDB.php');\n\t\t$query = sprintf(\"SELECT cat_name FROM q_quiz_cat WHERE cat_id = %d\", GetSQLValueString($this->fk_quiz_cat, \"int\"));\n\t\t$getQuery = mysql_query($query, $quizroo) or die(mysql_error());\n\t\t$row_getQuery = mysql_fetch_assoc($getQuery);\n\t\treturn $row_getQuery['cat_name'];\n\t}", "public function fetchCategoriesName() {\n $sql = \"SELECT id, category FROM category\";\n return $this->getAllColumns($sql, 'id');\n }", "function get_cat_ID($cat_name)\n {\n }", "function categoryIdToName($catId)\n\t{\n\t\t$table = 'categories';\n\t\t$fields = 'category_name';\n\t\t$id = $catId;\n\t\t$key = 'category_id';\n\t\t$limit=1;\n\t\t$fetchUser = $this->get_record_by_ID($table,$key,$id,$fields,$limit);\t\t\n\t\treturn $fetchUser[0]['category_name'];\n\t}", "function fs_get_category_id( $cat_name ) {\r\n\t$term = get_term_by( 'name', $cat_name, 'category' );\r\n\treturn $term->term_id;\r\n}", "public function getCategory($id) {\n\t\treturn $this->query ( \"SELECT * FROM categorie WHERE cat_id = $id\" );\n\t}", "function getCategoryName($categoryId)\n {\n // include the name retriever class and retrieve the category name\n require_once(\"class_libraries/NameRetriever.php\");\n $nameRetriever = new NameRetriever(\"category_id\");\n \n // retrieve the name\n $categoryName = $nameRetriever -> getName($categoryId);\n \n return $categoryName;\n }", "public function getCategory($id){\n $category = Product::find($id)->category_id;\n return $category;\n }", "function wp_getCategoryName($catID){\n\n\t$catOptions=get_option('rss_import_categories');\n\tif(!empty($catOptions)){\n\t\t$idnum='cat_name_'.$catID;\n\t\t$rssmi_cat_name=(isset($catOptions[$idnum]) ? $catOptions[$idnum] : null);\t\n\t\treturn\t$rssmi_cat_name;\n\t}\n}", "function _get_cat($id) {\r\n $qry = $this->db->where('cat_id', $id)\r\n ->get($this->_cat);\r\n return $qry->row();\r\n }", "public function giveNomeCatEvent($id){\r\n $id = self::$conn->real_escape_string($id);\r\n $query = \"SELECT nome FROM \".$this->tables['categTable'].\r\n \" WHERE id = $id\";\r\n\t\t$result = self::$conn->query($query);\r\n if(!$result || $result->num_rows != 1)\r\n return ''; \r\n $row = $result->fetch_array(MYSQLI_NUM);\r\n return $row[0];\r\n }", "function getDbCategoryName($connect, $cate_id)\n\t{\n\t\t$cate_name = \"\";\n\t\t$sql = \"SELECT Name_XML from qpkg_category WHERE ID = $cate_id\";\n\t\t$result = mysqli_query($connect, $sql);\n\t\twhile ($row = mysqli_fetch_array($result)) {\n\t\t\t$cate_name = $row['Name_XML'];\n\t\t}\n\n\t\treturn $cate_name;\n\t}", "function get_category_id( $cat_name ){\n\t$term = get_term_by( 'name', $cat_name, 'category' );\n\treturn $term->term_id;\n}", "function get_category_id( $cat_name ){\n\t$term = get_term_by( 'name', $cat_name, 'category' );\n\treturn $term->term_id;\n}", "public function getCategory(int $id)\n {\n }", "function getCategoryID($name){\r\n $query=\"SELECT id FROM categorias WHERE nombre='$name'\";\r\n $sql= mysqli_query($_SESSION['connection'], $query);\r\n $categoryID= mysqli_fetch_assoc($sql);\r\n return $categoryID['id'];\r\n }", "public function categoryName($id)\n {\n $categoryString = '';\n $category = Category::with('parent_category')->find($id);\n if (!empty($category->parent_category)) {\n $categoryString = $category->parent_category->title . ',';\n }\n $categoryString .= $category->title;\n return $categoryString;\n }", "public function get($category_id);", "public function getCategory($name);", "public function getCategoryById($id){ //print_r($id); die;\n $query = $this->db->get_where('category',array('id' => $id));\n return $query->row(); // print_r($query);\n }", "public function get_link2($id){\t\n\t\t$sql=\"SELECT nombre_cat FROM link WHERE id_cat='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_cat'];\n\t}", "public function get_cat_by_id($id) {\n $query = $this->query(\"SELECT `name` FROM `categories` WHERE id = '\" . $id . \"'\");\n if ($query->num_rows > 0) {\n $row = $query->fetch_row();\n return $row[0];\n } else\n return null;\n }", "static function get_category_by_id($category){\n\t\treturn self::$db->where('id',$category)->get('categories')->results();\n\t}", "public function getCategoryName()\n {\n return $this->cat->title;\n }", "public function get_link2($id){\n $sql=\"SELECT nombre_cat FROM link WHERE id_cat='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['nombre_cat'];\n }", "public function lookupNameFilter($id, $categoryName)\n {\n return Lookup::getInstance()->findById($categoryName, $id)->getName();\n }", "public function getCategoryUrl($id)\n {\n\t return $category = $this->_categoryFactory->create()->load($id);\n }", "public function getCatName($id) {\n $this->db->select('cat_name');\n $this->db->from('category');\n $this->db->where('cat_id', $id);\n $query = $this->db->get();\n return $query->result();\n}", "function theme_moove_get_course_category($id){\n\n global $DB;\n\n $sql_query = \"SELECT category\n FROM {course}\n WHERE id = $id\";\n\n $categoryid = $DB->get_record_sql($sql_query)->category;\n\n return $categoryid;\n }", "public function getCategoryById($id) {\n $query = \"SELECT * FROM \" . self::$TABLE . \" WHERE id = $id LIMIT 1\";\n $resultSet = parent::executeQuery($query);\n \n $array = $this->getRecordAsArray($resultSet);\n return $this->arrayToObject($array);\n }", "function getCategory_details($category_name)\n\t\t{\n\t\t\t$details = $this->manage_content->getValue_where('vertical_navbar','*','menu_name',$category_name);\n\t\t\techo '<div class=\"category_header\">'.$details[0]['menu_name'].'</div>\n <br /><br/>\n <div class=\"category_description\">'.$details[0]['description'].'</div>';\n\t\t}", "public function retrieveCategory($id) {\n return $this->categoriesDB->retrieveByCategoryId($id);\n }", "public function getById($id)//вернуть категории по id\n {\n if(is_numeric($id)){\n $sql = \"SELECT `title` FROM `category` WHERE `id`=\".intval($id);\n return $this->mysql->query($sql);\n }else{\n return 'ERROR';\n }\n\n }", "function alaya_cat_name($cate_ID){\n\t$current_cat = get_category($cate_ID);\n\t$cate_name = $current_cat->name;\n\t$cate_name = apply_filters('alaya_cat_name', $cate_name);\n\treturn $cate_name;\n}", "function _BuscarCategoriaPorId($id)\n\t\t{\n\t\t\tR::begin();\n\t\t\t try{\n\t\t\t \t$query = 'SELECT * from sgcategoriamaquina where id=?';\n\t\t\t $cat = R::getRow($query,[$id]);\n\t\t\t R::commit();\n\t\t\t }\n\t\t\t catch(Exception $e) {\n\t\t\t $cat = R::rollback();\n\t\t\t $cat = \"error\";\n\t\t\t }\n\t\t\tR::close();\n\t\t\treturn $cat;\n\t\t}", "public static function getCategory($id)\n {\n \t$query = \"SELECT * FROM categories WHERE id = :id\";\n \t$result = DB::select($query, ['id' => $id]);\n\n \treturn $result;\n }", "public function getCategory() {}", "public function getCategorysByQuestion($id){\n $question = $this::find()->with('subcategory')->where(['id' => $id])->one();\n $category = '';\n $last_key = end(array_keys($question->subcategory));\n foreach ($question->subcategory as $key => $value) {\n if ($key == $last_key) {\n $category .= $value['name'];\n } else {\n $category .= $value['name'].\", \";\n }\n }\n return $category;\n }", "public static function getCategoryTitle($id) {\n\t\t\t$conn = parent::connect();\n\t\t\t$sql = \"SELECT title, alias FROM \" . TBL_CATEGORY . \" WHERE id = :id\";\n\n\t\t\ttry {\n\t\t\t\t$st = $conn->prepare($sql);\n\t\t\t\t$st->bindValue(\":id\", $id, PDO::PARAM_INT);\n\t\t\t\t$st->execute();\n\t\t\t\t$row = $st->fetch();\n\t\t\t\tparent::disconnect($conn);\n\t\t\t\tif ($row) {\n\t\t\t\t\treturn new SiteCategory($row);\n\t\t\t\t}\n\t\t\t} catch (PDOException $e) {\n\t\t\t\tparent::disconnect($conn);\n\t\t\t\tdie (\"Query failed: \" . $e->getMessage());\n\t\t\t}\n\t\t}", "public function getCategory($id){\n\t\t\t$q = $this->mysqlRow('SELECT * FROM `'.$GLOBALS['db']['db_prefix'].'category` WHERE c_id=\"'.mysql_real_escape_string($id).'\"');\n\t\t\tif($q != ''){\n\t\t\t\treturn new CatCategory($q['c_id'], $q['name'], $q['webname'], $q['status'], $q['desc'], $q['img'], $q['service_root']);\n\t\t\t} else return null;\n\t\t}", "function retrieve_category_id($name) {\n\tglobal $wpdb;\n\t\n\t// Query the term_id of the category needed\n\t$query = \"SELECT wpt.term_id FROM `wp_terms` AS wpt\"\n \t\t. \" JOIN `wp_term_taxonomy` AS wptt\"\n \t\t. \"\t\tON wpt.term_id = wptt.term_id\"\n \t\t. \" WHERE wptt.taxonomy = 'category' AND name = %s\";\n\t$sql = $wpdb->prepare($query, $name);\n\t$id = $wpdb->get_results($sql)[0]->term_id;\n\treturn $id;\n\t\n}", "public function getCategory($id)\n {\n if (($id != '') && ctype_digit((string)$id)) {\n $query = 'SELECT category_id, `category_name`\n FROM categories\n WHERE category_id= :id';\n $statement = $this->db->prepare($query);\n $statement->bindValue('id', $id, \\PDO::PARAM_INT);\n $statement->execute();\n $result = $statement->fetchAll(\\PDO::FETCH_ASSOC);\n return !$result ? array() : current($result);\n } else {\n return array();\n }\n }", "function primary_category_name() {\n\n\tglobal $post_id;\n\t$term = get_the_terms( $post_id, 'primary-category' );\n\tif ( ! $term ) {\n\t\treturn;\n\t} else {\n\t\techo $term[0]->name;\n\t}\n\n}", "public function get_form_category_name($form_id,$hierarchy_id){\n $sql = 'SELECT fc.cat_id,c.category_name from form_category as fc\n JOIN category as c ON c.cat_id = fc.cat_id\n where fc.form_id = '.$form_id.' and fc.form_hierarchy_id = '.$hierarchy_id.' and c.status = 1';\n $res = $this->db->query($sql);\n return $res->row();\n }", "public function getCategory();", "public function getCategory();", "public static function getName($category_id, $justTheName = false)\n\t{\r\n\t\t//need to clean up a little\n\t\t$category_id = intval($category_id);\r\n\t\tif (!$category_id) return 'Main';\n\t\t$db = DataAccess::getInstance();\r\n\t\t\n\t\t$sql = \"select category_name,description from \".geoTables::categories_languages_table.\" where category_id = \".$category_id.\" and language_id = \".$db->getLanguage();\n\t\t$r = $db->getrow($sql);\n\t\tif (!$r) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($justTheName) {\n\t\t\treturn geoString::fromDB($r['category_name']);\n\t\t}\n\t\t$show = new stdClass();\n\t\t$show->CATEGORY_NAME = geoString::fromDB($r['category_name']);\n\t\t$show->DESCRIPTION = geoString::fromDB($r['description']);\n\t\treturn $show;\n\t}", "function L_getCatSlug($cat_id) {\n\t\n\t\t$cat_id = (int) $cat_id;\n\t\t$category = &get_category($cat_id);\n\t\treturn $category->slug;\n\t\n\t}", "function TestCase_lookup_category_id_by_name($name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.lookup_category_id_by_name', array(new xmlrpcval($name, \"string\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function getCategory(): string;", "private function parseCategoryUrl() {\n $sql = \"SELECT\n id,\n name\n FROM\n categories\";\n if(!$stmt = $this->db->prepare($sql)){return $this->db->error;}\n if(!$stmt->execute()) {return $result->error;}\n $stmt->bind_result($id, $name);\n while($stmt->fetch()) {\n $name = lowerCat($name);\n if($this->cat == $name) {\n $this->catId = $id;\n break;\n }\n }\n $stmt->close();\n if($this->catId !== -1) {\n $this->parsedUrl = '/'.$this->catId.'/'.$this->cat;\n }\n }", "function customcats_category($id)\n\t{\n\t\tglobal $db, $Categories;\n\n\t\t$class_tpl = new Template('customcats');\n\t\t$sSQL = 'SELECT ccTemplate FROM '.PREFIX.'categories WHERE id='.(int)$id;\n\t\t$result=$db->query($sSQL);\n\t\t$rs=$result->fetch();\n\t\tif($rs['ccTemplate'] <> '')\n\t\t{\n\t\t\treturn FILESYSTEM_PATH .'modules/customcats/templates/cattemplates/'.$rs['ccTemplate'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_link($id){\t\n\t\t$sql=\"SELECT etiqueta_cat FROM link WHERE id_cat='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_cat'];\n\t}", "function getSubCategoryName($subCatId)\n {\n $categoryResult = $this->findById($subCatId);\n return $categoryResult;\n }", "public function findCategoryById($id)\n {\n $category = Category::select('id', 'name')\n ->with([\n 'bookshelf' => function($q) {\n $q->select('id', 'name', 'category_id');\n }\n ])\n ->where('id', $id)\n ->first();\n\n // return data yang di cari\n return $category;\n }", "public function get_cat_name() {\n $c = $this->cat;\n $tmp = \"\";\n switch($c) {\n case 1:\n $tmp = \"News\";\n break;\n case 2:\n $tmp = \"Eventi\";\n break;\n case 3:\n $tmp = \"Pubblicazioni\";\n break;\n }\n return $tmp;\n }", "private function getCategoryNameById($categoryId)\n {\n if (!isset($this->categories[$categoryId])) {\n throw new Exception('No such category found.');\n }\n\n return $this->categories[$categoryId];\n }", "public function category_by_id($id)\n {\n $query = \"SELECT *\n FROM \" . $this->db_table_prefix . \"categories\n \t WHERE id = $id\";\n $result = $this->commonDatabaseAction($query);\n// if (mysql_num_rows($result) > 0)\n if ($this->rowCount > 0)\n {\n// return mysql_fetch_assoc($result);\n return $this->sqlAssoc;\n }\n else\n {\n return array();\n }\n }", "function get_by_cat($id)\n {\n $this->db->where('cat_id', $id);\n return $this->db->get($this->table)->result();\n }", "function find_category($db, $id){\n\n\t$ID_cat = (int)$id;\n\n\t$sql = \"SELECT * FROM categories WHERE ID_cat = $ID_cat\";\n\n\t$category = mysqli_query($db, $sql);\n\n\t$result = mysqli_fetch_assoc($category);\n\n\treturn $result;\n}", "public function getCategoryDetailsById($cat_id){\n\t\n\t\t$termDetails=NeCategory::model()->find(array(\n\t\t\t'select'=>'*',\n\t\t\t'condition'=>'cat_id=:id',\n\t\t\t'params'=>array(':id'=>$cat_id),\n\t\t));\n\t\tif($termDetails) {\n\t\t\treturn $termDetails;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getCatbyId($cat_id){\n $query = \"SELECT * FROM shop_category WHERE catID = '$cat_id'\";\n $result = $this->db->select($query);\n\n return $result;\n }", "public function getCategory($_ID)\n {\n $return = $this->getUnique(\"categories\", $_ID);\n return $return;\n }", "public function actionGet($id) {\n\t\treturn $this->txget ( $id, \"app\\models\\Category\" );\n\t}", "function get_subcategoria($id){\t\n\t\t$sql=\"SELECT nombre_sub FROM subcategoria WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_sub'];\n\t}", "public function getCategoryName($categoryId) {\n\t\ttry {\n\t\t\t$categoryName = DB::select('SELECT categoryName from categories WHERE categoryId=' . $categoryId);\n\t\t\treturn $categoryName[0]->categoryName;\n\n\t\t} catch (\\Exception $ex) {\n\t\t\tprint_r($ex->getMessage());\n\n\t\t} catch (Exception $ex) {\n\t\t\tprint_r($ex->getMessage());\n\n\t\t}\n\t}", "function L_getCatId($cat_name) {\n\t\t\n\t\t$term = get_term_by('name', $cat_name, 'category');\n\t\treturn $term->term_id;\n\t\n\t}", "public function infoCategory($category_id){\n\n \t$ch = curl_init();\n //getting specific orders after $time\n $encode = $this->urlPath.\"/rest/V1/categories/\" . $category_id;\n\t\t\n curl_setopt($ch, CURLOPT_URL, $encode);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n $headers = array();\n $headers[] = 'Authorization: Bearer '.$this->apiKey;\n $headers[] = 'Content-Type: application/json';\n //$headers[] = 'Accept: application/json';\n\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n $result = curl_exec($ch);\n\n curl_close ($ch);\n\n\n\n\n return $result;\n\t\t\t \n }", "public function getAliasByID($categoryID){\n\n\t}", "public function getCategory($id){\n $file = $this->com->callApi(\"products\");\n $data = json_decode($file);\n\n foreach($data as $arrayInf) {\n if((int)$arrayInf->id == (int)$id) {\n return intval($arrayInf->category);\n }\n }\n return null;\n }", "public function getCategory() {\r\n return $this->catList->find('id', $this->categoryId)[0];\r\n }", "function getCategory() {\n\t\t$categoryId = JRequest::getInt('category_id', 0) ;\n\t\t$sql = 'SELECT * FROM #__eb_categories WHERE id='.$categoryId;\n\t\t$this->_db->setQuery($sql) ;\n\t\treturn $this->_db->loadObject();\t\t\t\n\t}", "public function getCategory($catId) {\n return Mage::getModel ( 'catalog/category' )->load ( $catId );\n }", "public function getCategoryName()\n {\n return ($this->category !== null?$this->category->name:'-');\n }" ]
[ "0.8111061", "0.7917211", "0.7877273", "0.7776956", "0.7758787", "0.77232206", "0.770558", "0.76871425", "0.7660406", "0.7650876", "0.7619128", "0.7573651", "0.750564", "0.74878937", "0.74533266", "0.7451373", "0.7422692", "0.7414026", "0.74097264", "0.74030364", "0.7398122", "0.73449177", "0.7341434", "0.7288729", "0.72536075", "0.7250245", "0.72405386", "0.7227608", "0.72162896", "0.7179678", "0.7097851", "0.70683426", "0.70550466", "0.7017547", "0.7012117", "0.69936615", "0.6967781", "0.6966959", "0.6964159", "0.69565374", "0.69565374", "0.6940626", "0.691152", "0.6895889", "0.688716", "0.6872938", "0.6868959", "0.6836408", "0.68318945", "0.68317574", "0.681089", "0.67981625", "0.67874646", "0.67529625", "0.6752372", "0.674987", "0.6743462", "0.67412364", "0.6708596", "0.6706715", "0.66901153", "0.6686575", "0.66859144", "0.66725135", "0.6671078", "0.66654265", "0.6649307", "0.66469353", "0.6642647", "0.6637383", "0.6635696", "0.6632529", "0.6632529", "0.6616498", "0.66159683", "0.660521", "0.6592644", "0.6575522", "0.65720075", "0.65709364", "0.6561847", "0.6553367", "0.65462655", "0.6543191", "0.65203077", "0.65181965", "0.651789", "0.65075225", "0.6506509", "0.65020585", "0.64951724", "0.64888567", "0.6484758", "0.64846617", "0.6481518", "0.6470114", "0.646026", "0.6452767", "0.64404947", "0.6425801", "0.6421551" ]
0.0
-1
Create a new message instance.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createMessage()\n {\n $message = new Message(new Swift_Message);\n\n\n // If a global from address has been specified we will set it on every message\n // instances so the developer does not have to repeat themselves every time\n // they create a new message. We will just go ahead and push the address.\n if (isset($this->from['address'])) {\n $message->from($this->from['address'], $this->from['name']);\n }\n\n return $message;\n }", "protected function createMessage() {\n $config = $this->messageConfig;\n if (!array_key_exists('class', $config)) {\n $config['class'] = $this->messageClass;\n }\n $config['smser'] = $this;\n return Yii::createObject($config);\n }", "protected static function newMessage()\n {\n self::$message = \\Swift_Message::newInstance();\n }", "public function create()\n {\n //\n $this->message->sendMessage();\n }", "private function newMessage()\n {\n /* @var $config ModuleOptions */\n $config = $this->serviceLocator->get('EscoMail\\Options');\n\n $this->message = new Message();\n $this->message->setFrom($config->getMailSendFrom(), $config->getMailSendFromName());\n\n return $this->message;\n }", "protected function createMessage()\n\t{\n\t\t$config = $this->messageConfig;\n\t\tif (!array_key_exists('class', $config)) {\n\t\t\t$config['class'] = $this->messageClass;\n\t\t}\n\t\t$config['mailer'] = $this;\n\n\t\treturn Yii::createObject($config);\n\t}", "public function createMessage(): MessageInterface;", "public function create(string $message = ''): BusMessageInterface;", "public function createInstance()\n {\n $mock = $this->mock(static::TEST_SUBJECT_CLASSNAME)\n ->getMessage();\n\n return $mock->new();\n }", "public static function createInstance()\n {\n return new MailMessage('[email protected]');\n }", "public static function init( $_id )\n {\n $message = new Message();\n $message->get( $_id );\n return $message;\n }", "public function createMessage(string $typeName): MessageInterface;", "public function createMailMessage();", "static public function factory($messageType = 3) {\n\t\treturn new self($messageType);\n\t}", "public function createMessage(array $parameters = []);", "public function user_message_create() {\n\t\t$this->onDebug ( __METHOD__, 1 );\n\t\tif ($this->valide_userid () == false) {\n\t\t\treturn $this;\n\t\t}\n\t\t$message_created = $this->getObjetO365Wsclient ()\n\t\t\t->jsonPostMethod ( '/users/' . $this->getUserId () . '/messages', $this->getEmailContent () );\n\t\t$this->onDebug ( $message_created, 2 );\n\t\tif (isset ( $message_created->id ) && ! empty ( $message_created->id )) {\n\t\t\treturn $this->setO356MessageRef ( $message_created )\n\t\t\t\t->setMessageId ( $message_created->id );\n\t\t}\n\t\treturn $this->onError ( 'Pas d\\'ID durant la creation du message de O365', $message_created, 1 );\n\t}", "private function newMessage(array $data)\n {\n\n $message = Message::create([\n 'channel_id' => $data['channel_id'],\n 'user_id' => Auth::guard()->user()->id,\n 'message' => $data['message']\n ]);\n if ($message) {\n $this->notifyChannelUsers($data['channel_id']);\n }\n return $message;\n }", "public function initMessage() {}", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "public function __construct(Message $message)\n {\n $this->message = $message;\n }", "private function createMessageObject(string $type, string $message): Notification\n {\n $msg = new Notification();\n\n $msg->setType($type);\n $msg->setMessage($message);\n\n $this->handler->add($msg);\n\n return $msg;\n }", "protected static function newFactory()\n {\n return MessageFactory::new();\n }", "public function message(mixed $data = null)\n {\n $message = new Message((string) $data);\n\n return $message;\n }", "public static function createFromString($raw)\n {\n $message = new self(array('raw' => $raw));\n return $message;\n }", "public static function create(string $text = null): GoogleChatMessage\n {\n $message = new static;\n\n if ($text) {\n $message->text($text);\n }\n\n return $message;\n }", "public function create() {\n\t\t$user = $this->current_user();\n\t\t$message = $this->discussion->create_message($this->message_data() + ['creator' => ['id' => $user->_id, 'name' => $user->name]]);\n\n\t\tif ($this->discussion->push_message($message)) {\n\t\t\treturn $this->redirect(['Discussions::show', 'id' => $this->discussion->_id, 'project_id' => $this->discussion->project_id]);\n\t\t}\n\n\t\treturn compact('message');\n\t}", "public static function createFromArray($fields) \n\t{\n\t\t$message = new Message();\n\t\tself::populate($message,$fields);\n\t\treturn $message;\n\t}", "public function addMessage()\n {\n if(null === $this->obj_message) {\n $this->obj_message = new Message();\n }\n return $this->obj_message;\n }", "public function createMimeMessage();", "public function testCreateMethodReturnsNewInstance(): void\n {\n $message = DiscordMessage::create();\n $this->assertInstanceOf(DiscordMessage::class, $message);\n }", "function createMessage($email) {\n $message = new Google_Service_Gmail_Message();\n $message->setRaw(base64_encode($email));\n return $message;\n}", "protected function createMessage(Swift_Message $message)\n {\n $mimeEntity = new Swift_Message('', $message->getBody(), $message->getContentType(), $message->getCharset());\n $mimeEntity->setChildren($message->getChildren());\n\n $messageHeaders = $mimeEntity->getHeaders();\n $messageHeaders->remove('Message-ID');\n $messageHeaders->remove('Date');\n $messageHeaders->remove('Subject');\n $messageHeaders->remove('MIME-Version');\n $messageHeaders->remove('To');\n $messageHeaders->remove('From');\n\n return $mimeEntity;\n }", "public function __construct($message)\n {\n // $this->message = $message;\n }", "function createMessage($object) {\n\tglobal $USER;\n\t\n\t$message = new \\core\\message\\message();\n\t$message->component = 'local_littlehelpers';\n\t$message->name = 'paragraph52notification';\n\t$message->userfrom = $USER;\n\t\n\t// Get user\n\t$message->userto = core_user::get_user($object->useridto);\n\t\n\t// force email sending\n\t$message->userto->emailstop = 0;\n\t\n\t$message->subject = $object->subject;\n\t$message->fullmessage = $object->fullmessage;\n\t$message->fullmessageformat = FORMAT_MARKDOWN;\n\t$message->fullmessagehtml = $object->fullmessagehtml;\n\t$message->smallmessage = $object->smallmessage;\n\t$message->notification = '0';\n\t\n\t$message->contexturl = 'https://moodle.tu-darmstadt.de/local/littlehelpers/paragraph52';\n\t$message->contexturlname = 'Paragraph52';\n\t$message->replyto = \"[email protected]\";\n\n\treturn $message;\n}", "public function __construct($message)\r\n {\r\n $this->message = $message;\r\n\r\n }", "public function createMessage($content, $options = array('content_type' => 'application/json', 'delivery_mode' => 2))\n {\n if (!empty($options['content_type']) && $options['content_type'] == 'application/json')\n $content = json_encode($content);\n return new AMQPMessage($content, $options);\n }", "public function __construct($message) {\n $this->message= $message;\n }", "public function __construct($msg)\n {\n $this->message = $msg;\n }", "public function __construct(Message $message)\n {\n parent::__construct($message);\n }", "public function __construct($messageDefinition)\n {\n $this->messageDefintion = $messageDefinition;\n }", "public function testCreateMessage()\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 $actions = [\n new Action($data = array(\"name\" => \"view\", \"url\" => \"https://www.dadapush.com/\", \"type\" => \"link\"))\n ];\n\n $body = new MessagePushRequest($data = array(\"title\" => \"Good News!\",\n \"content\" => \"Good News! DaDaPush releasing new version\",\n \"need_push\" => true,\n \"actions\" => $actions\n ));\n\n $channel_token = 'ctb3lwO6AeiZOwqZgp8BE8980FdNgp0cp6MCf';\n\n $result = $apiInstance->createMessage($body, $channel_token);\n print_r($result);\n self::assertTrue($result->getCode()==0);\n }", "public static function create( $msg, $code = null, array $data = null ) {\n\t\tif ( $msg instanceof IApiMessage ) {\n\t\t\treturn $msg;\n\t\t} elseif ( $msg instanceof RawMessage ) {\n\t\t\treturn new ApiRawMessage( $msg, $code, $data );\n\t\t} else {\n\t\t\treturn new ApiMessage( $msg, $code, $data );\n\t\t}\n\t}", "public static function create($message, $type = '', $title = '', $icon = '')\n {\n return new self($message, $type, $title, $icon);\n }", "public function newEntity(array $attributes = [])\n {\n return new MessageContent($attributes);\n }", "public function create()\n {\n return view('materialadmin::message.create');\n }", "public static function factory($raw_message = null, $class_name = null) {}", "public function __construct($message = null) {}", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public function __construct($message)\n {\n $this->message = $message;\n }", "public static function createFromFile($filename)\n {\n $message = new self(array('file' => $filename));\n\n return $message;\n }", "public function create()\n\t{\n\t\treturn View::make('messages.create');\n\t}", "public function actionCreate()\n {\n $model = new Message();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "private function createMessage(InputInterface $input)\n {\n $message = new \\Swift_Message(\n $input->getOption('subject'),\n $input->getOption('body'),\n $input->getOption('content-type'),\n $input->getOption('charset')\n );\n $message->setFrom($input->getOption('from'));\n $message->setTo($input->getOption('to'));\n\n return $message;\n }", "public function test_message_can_be_created() {\n\n $this->assertInstanceOf(Message::class, $this->message);\n $this->assertDatabaseHasMessageWithPublicId($this->message->getPublicId());\n\n }", "protected function getMessage()\n {\n //return new \\Swift_Message('Test subject', 'Test body.');\n }", "public function testConstructorAndGetters() \r\n \t{\r\n \t\t// create a message with complete constructor args\r\n \t\t$message = new Message( Message::NORMAL, \r\n \t\t\t\t\t\t\t\t(object)array( 'testProp' => 'testval' ),\r\n \t\t\t\t\t\t\t\tsimplexml_load_string('<testMessage testAtt=\"Hello\" testAtt2=\"world\"/>'),\r\n \t\t\t\t\t\t\t\tMessage::PRIORITY_HIGH);\r\n \t\t\r\n \t\t// test assertions\r\n \t\t$this->assertTrue( $message instanceof Message, \"Expecting \\$message is Message\" );\r\n \t\t$this->assertTrue( $message->getType() == Message::NORMAL, \"Expecting \\$message->getType() == Message::NORMAL\" );\r\n \t\t$this->assertTrue( $message->getHeader()->testProp == 'testval', \"Expecting \\$message->getHeader()->testProp == 'testval'\" );\r\n \t\t$this->assertTrue( $message->getBody()->attributes()->testAtt == 'Hello', \"Expecting \\$message->getBody()->attributes()->testAtt == 'Hello'\" );\r\n \t\t$this->assertTrue( $message->getPriority() == Message::PRIORITY_HIGH, \"Expecting \\$message->getPriority() == Message::PRIORITY_HIGH\" );\r\n \t\t\r\n \t}", "public function __construct($data)\n {\n $this->message = $data;\n }", "public function __construct($data)\n {\n $this->message = $data;\n }", "public static function getInstance($messageClass = '\\PEIP\\Message\\GenericMessage')\n {\n return new self($messageClass);\n }", "public function __construct(NewMessageEvent $event)\n {\n $this->event = $event;\n }", "public static function createFromFile(string $path) : CommitMessage\n {\n if (!file_exists($path)) {\n throw new \\RuntimeException('Commit message file not found');\n }\n return new CommitMessage(file_get_contents($path));\n }", "public function testCreateWithoutId()\n {\n $faker = Factory::create();\n $messageAttributes = [\n 'body' => $faker->sentence(15),\n 'subject' => $faker->sentence(5),\n 'name' => $faker->name(),\n 'email' => $faker->email(),\n 'custom_info' => $faker->sentence(3)\n\n ];\n $response = $this->client->messages()->create($messageAttributes);\n $this->assertEquals($messageAttributes['body'], $response['message']['body']);\n $this->assertEquals($messageAttributes['subject'], $response['message']['subject']);\n\n return $response;\n }", "public function create(Message $message): void\n {\n $this->items[$message->getEventName()][$message->getId()] = $message;\n }", "public function __construct($message, $type)\n\t{\n\t\t$this->message = $message;\n\t\t$this->type = $type;\n\t}", "public function __construct(MimeMessage $message = null) {\n $this->htmlBody = new MimePart();\n $this->htmlBody->type = Mime::TYPE_HTML;\n $this->htmlBody->charset = 'utf-8';\n $this->htmlBody->encoding = Mime::ENCODING_QUOTEDPRINTABLE;\n\n $this->textBody = new MimePart();\n $this->textBody->type = Mime::TYPE_TEXT;\n $this->textBody->charset = 'utf-8';\n $this->textBody->encoding = Mime::ENCODING_QUOTEDPRINTABLE;\n }", "public function create(){}", "public function actionCreate() {\n if (isset($_POST['Message'])) {\n $resp = array(\n 'color' => '#FF6600',\n 'background_color' => '#FFFFCC',\n 'position' => 'top',\n 'removebutton' => 0,\n 'translation' => $_POST['Message']['translation']\n );\n $model = new Message();\n $model->setAttributes($_POST['Message']);\n if ($model->save()) {\n $resp['message'] = Yii::t('translate', 'Message successfully saved');\n $resp['id'] = $model->id;\n } else {\n $errors = $this->errors($model);\n $resp['message'] = Yii::t('translate', '<p>Unable to save the message. Something went wrong!<p/>' . implode('<br/>', $errors));\n }\n echo $this->je($resp);\n Yii::app()->end();\n }\n $id = (int)Yii::app()->request->getParam('id');\n $lang = Yii::app()->request->getParam('lang');\n if ($id && $lang) {\n $model = MessageSource::model()->findByPk($id);\n if ($model) {\n $message = $model->loadMessage();\n $message->id = $model->id;\n $message->language = $lang;\n $this->renderPartial('form', array(\n 'model' => $message\n ));\n } else throw new CHttpException(400);\n } else throw new CHttpException(404, 'The requested page does not exist.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "protected static function newFactory(): Factory\n {\n return MessageFactory::new();\n }", "public function __construct(string $message)\n {\n $this->message = $message;\n }", "public function create()\n {\n return view('message');\n }", "public function newAction()\n {\n $entity = new Message();\n $form = $this->createForm(new MessageType(), $entity);\n\n return $this->render('CoreMarketingBundle:Message:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "protected function createDocument(\\TYPO3\\Jobqueue\\Common\\Queue\\Message $message) {\n\t\t$properties = ObjectAccess::getGettableProperties($message);\n\t\t$messageDocument = new Message($message->getPayload(), $message->getIdentifier());\n\n\t\tforeach ($properties as $propertyName => $propertyValue) {\n\t\t\tObjectAccess::setProperty($messageDocument, $propertyName, $propertyValue);\n\t\t}\n\n\t\treturn $messageDocument;\n\t}", "public function __construct($message = '', $type = 'info') {\n $this->message = $message;\n }", "protected function render(): Message\n {\n $headers = '';\n foreach ($this->buildHeaders() as $header => $value) {\n $headers .= \"{$header}: {$value}\" . self::CRLF;\n }\n $message = implode(self::CRLF, $this->buildMessage());\n\n return new Message($headers, $message);\n }", "public function create()\n\t{\n\t\t$form = \\View::make('message.form');\n\t\t$form->project_id = \\Session::get('active_project');\n\t\t$form->action = array('action' => 'Toomdrix\\Pm\\MessageController@store', 'class'=>'form-signup');\n\t\treturn $form;\n\t}", "public static function getInstance($context=null) {\n return new Messages($context);\n }", "public function create_post() {\n\t\t$data['uid'] = $this->input->get('uid');\n\t\t$data['to'] = $this->input->get('to');\n\t\t$data['text'] = $this->input->get('text');\n\t\t$data['ts'] = now();\n\n\t\t$this->Messages_model->create($data);\n\t}", "public function getGeneratedMessage()\n {\n # Force the template to render\n (string) $this->prepareTemplate();\n\n $m = $this->template->__message;\n\n if (!$m->getFrom()) {\n trigger_error(\"You should add 'from' information.\", E_USER_WARNING);\n }\n\n if (!$m->getSubject()) {\n trigger_error(\"You should add 'subject'.\", E_USER_WARNING);\n }\n\n if (!$m->getHeader('To')) {\n trigger_error(\"You should add recipients.\", E_USER_WARNING);\n }\n\n foreach ($this->attachments as $attachment) {\n list($filename, $content, $type) = $attachment;\n $m->addAttachment($filename, $content, $type);\n }\n\n return $m;\n }", "public function __construct($message='1111222333',$type='2222')\n {\n $this->type = $type;\n $this->message = $message;\n }", "public static function new()\n {\n if ( ! empty($_REQUEST['mgb_rating_message']) ) Database::insert([\n 'message' => $_REQUEST['mgb_rating_message'],\n 'author' => self::author(),\n 'state' => (!json_decode($_REQUEST['mgb_rating_moderation'])) ? true : false\n ]);\n }", "public function create() {}", "public function compose() {\n return $this->createMessage();\n }", "public function create()\n {\n // die('here');\n return view('message.create');\n }", "public function create()\n {\n return view('messages.create');\n }", "public function create()\n {\n return view('messages.create');\n }", "public function actionCreate()\n {\n $model = new Message();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save())\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model\n ]);\n }\n }", "public static function getInstanceFromMessage(\\PEIP\\INF\\Message\\Message $message)\n {\n return new self(get_class($message));\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'body' => 'required|max:5000',\n 'user_id' => ['required', new NotSelfId(), 'exists:users,id'],\n ]);\n\n $message = Auth::user()->messages()->create([\n 'data' => [\n 'text' => request('body'),\n ],\n ]);\n\n Auth::user()->conversations()->attach($message, [\n 'contact_id' => $request->user_id,\n ]);\n\n if (!$this->isAuthUserBlockedToContact($request->user_id, Auth::user()->id)) {\n User::find($request->user_id)->conversations()->attach($message, [\n 'contact_id' => Auth::id(),\n ]);\n\n // broadcast the message to the other person\n event(new MessageCreated($message, $request->user_id, Auth::user()->id));\n }\n\n $message->owner = Auth::user();\n\n return new MessageResource($message);\n }", "public function create()\n {\n return view('admin.messages.create');\n }", "public function __construct($message) {\r\n parent::__construct($message);\r\n }", "public function __construct($messageData)\n {\n $this->messageData = $messageData;\n }" ]
[ "0.81376195", "0.7959614", "0.77619994", "0.7713793", "0.76559645", "0.7553059", "0.7458076", "0.71510184", "0.6852663", "0.68347865", "0.67154217", "0.6689976", "0.6683088", "0.6644564", "0.6628052", "0.6549025", "0.6514292", "0.6501647", "0.645071", "0.645071", "0.645071", "0.645071", "0.645071", "0.64457685", "0.63510966", "0.6340597", "0.633213", "0.6326836", "0.6310014", "0.6258695", "0.6234698", "0.62195796", "0.62077796", "0.620518", "0.6204953", "0.6198459", "0.6177945", "0.61717975", "0.617064", "0.6150332", "0.61301666", "0.6109668", "0.61057645", "0.60924155", "0.6081678", "0.60787344", "0.60670817", "0.6049224", "0.60457045", "0.60438704", "0.6036989", "0.6036989", "0.6036989", "0.6036989", "0.6036989", "0.6036989", "0.6026595", "0.6025895", "0.6022185", "0.6005734", "0.6002389", "0.6000802", "0.59941816", "0.59808266", "0.59808266", "0.59678143", "0.5966462", "0.59593695", "0.594777", "0.5938714", "0.5910345", "0.5893692", "0.5880708", "0.5878038", "0.58748907", "0.58748907", "0.58748907", "0.5873998", "0.5869665", "0.5864223", "0.5860705", "0.5858159", "0.5854505", "0.5845474", "0.5842933", "0.58327615", "0.58256036", "0.58199257", "0.58134514", "0.57909477", "0.5787155", "0.57835746", "0.5783115", "0.57801926", "0.57801926", "0.5779767", "0.57784975", "0.57596684", "0.5748547", "0.5746673", "0.57461363" ]
0.0
-1
Turn this item object into a generic array
public static function transform(Article $article): ?array { return [ 'product_uid' => $article->oxarticles__oxid->value, 'stock' => $article->oxarticles__oxstock->value, 'price' => money_format('%.2n', $article->getPrice()->getBruttoPrice()), 'vat' => $article->getArticleVat(), 'imageUrl' => self::getMasterImageUrl($article), 'thumbUrl' => $article->getThumbnailUrl(), 'description' => $article->getShortDescription(), 'category' => $article->oxarticles__oxsearchkeys->value, 'rating' => $article->oxarticles__oxrating->value, 'title' => $article->oxarticles__oxtitle->value, 'brand' => $article->getManufacturerName(), 'active' => $article->oxarticles__oxactive->value, 'description_full' => $article->getLongDesc(), 'parent' => $article->oxarticles__oxvarcount->value > 0 ? true : false, 'buyable' => $article->isBuyable(), 'variant_keys' => $article->getVariantKeys(), 'priceNet' => money_format('%.2n', $article->getPrice()->getNettoPrice()), 'persParams' => self::getPersParams($article->oxarticles__oxpersparam->value), 'artnum' => $article->oxarticles__oxartnum->value, 'url' => $article->getLink(), 'sold_amount' => $article->oxarticles__oxsoldamount->value ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function convertItemArray() {}", "public function toArray(): array {\n return $this->items;\n }", "public function toArray(): array\n {\n return (array) $this->items;\n }", "abstract protected function toArray();", "public function getItemsAsArray()\n {\n $map = function ($item) {\n return $item->toArray();\n };\n return array_map($map, $this['ITEMS']);\n }", "public function toArray(){\n return $this->items;\n }", "public function toArray()\n {\n $items = array();\n $results = $this->get()->items;\n \n if (!$results) {\n return array();\n }\n\n foreach($results as $key => $item) {\n $items[$key] = $this->isAok($item) ? $item->toArray() : $item;\n }\n\n return (array)$items;\n }", "public function toArray(): array\n {\n return $this->items;\n }", "public function toArray(): array\n {\n return $this->items;\n }", "public function toArray()\n {\n $itemArray = [];\n foreach ($this->storage as $item) {\n $itemArray[] = $item;\n }\n return [\n 'uid' => $this->getIdentifier(),\n 'title' => $this->getTitle(),\n 'description' => $this->getDescription(),\n 'table_name' => $this->getItemTableName(),\n 'items' => $itemArray\n ];\n }", "public function getItemsArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "public function asArray() {\n return $this->items;\n }", "public function toArray() {\n return $this->_items;\n }", "public function toArray(): array\n {\n return $this->items->toArray();\n }", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray()\n {\n return [\n 'id' => $this->items->first()->getKey(), //eventually change ow this works\n 'ids' => $this->items->pluck('id'),\n 'grocery_list_id' => $this->items->first()->grocery_list_id,\n 'department' => $this->department(),\n 'department_id' => $this->departmentId(),\n 'quantity' => $this->quantity(),\n 'description' => $this->description(),\n 'implicitQty' => $this->hasImplicitQuantity(),\n ];\n }", "function asArray(){\n\t\t\t$array = $this->toArray( $this );\n\t\t\treturn $array;\n\t\t}", "public function toArray()\n {\n return $this->items;\n }", "public function toArray()\n {\n return $this->items;\n }", "public function toArray()\n {\n return $this->items;\n }", "public function toArray()\n {\n return array_map(\n function ($value) {\n return $value instanceof Entity ? $value->toArray() : $value;\n\n }, $this->items\n );\n }", "public function toArray()\n\t{\n\t\treturn $this->items;\n\t}", "public function toArray()\n\t{\n\t\treturn $this->items;\n\t}", "public function asArray()\n {\n return $this->items();\n }", "public function toArray()\n {\n return array_map(function ($value) {\n return method_exists($value, 'toArray') ? $value->toArray() : $value;\n }, $this->items);\n }", "public function toArray()\n {\n return $this->cast('array');\n }", "abstract public function to_array();", "public function toArray()\n {\n $data = parent::toArray();\n if (isset($this->type)) {\n $data['type'] = $this->type;\n }\n return $data;\n }", "public function getAsArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function getItemArray()\n {\n return $this->itemArray;\n }", "public function toArray(): array\n {\n $output = $this->data;\n $output = $this->filterNotItems($output);\n $output = $this->filterOnlyItems($output);\n $output = $this->filterEmpty($output);\n $output = $this->executeConvertEmpty($output);\n $output = $this->filterTemplate($output);\n return $this->pluckItems($output);\n }", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function toArray(): array\n {\n return $this->getAllItems();\n }", "public function toArray()\n {\n return [\n 'id' => $this->getRowId(),\n 'data' => $this->item\n ];\n }", "public function toArray(): array\n {\n return $this->items->map(function ($item) {\n return $item->toArray();\n })->toArray();\n }", "public function toArray()\n {\n $_data = array();\n \n foreach ($this->_data as $key=>$val) {\n $_data[$key] = method_exists($val, 'toArray') ? $val->toArray() : $val;\n }\n \n return $_data;\n }" ]
[ "0.8215638", "0.7369313", "0.72756594", "0.72397596", "0.7219428", "0.7183687", "0.714448", "0.71435165", "0.71435165", "0.7130484", "0.7113554", "0.7002409", "0.7002409", "0.7002409", "0.7002409", "0.7002409", "0.6983335", "0.69709265", "0.69534105", "0.6944703", "0.6944703", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.6943475", "0.694343", "0.694343", "0.694343", "0.694343", "0.6942137", "0.6940098", "0.6935327", "0.6935327", "0.6935327", "0.6935033", "0.6911271", "0.6911271", "0.68938345", "0.6875772", "0.68507165", "0.68469024", "0.6805262", "0.6804466", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6801088", "0.6796365", "0.67761415", "0.67755824", "0.67755824", "0.67755824", "0.67755824", "0.67755824", "0.67755824", "0.67749906", "0.67718166", "0.6761341", "0.67565185" ]
0.0
-1
Returns absolute URL to master image otherwise transforms OXID false into null
protected static function getMasterImageUrl($oArticle) { $masterImageUrl = $oArticle->getMasterZoomPictureUrl(1); return $masterImageUrl ? $masterImageUrl : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mainImageURL()\n {\n if ($this->image) {\n $imageLocation = $this->image->location;\n } else {\n // If the image cannot be displayed, show a generic image.\n $imageLocation = 'generic/generic1.jpg';\n }\n\n return Storage::url($imageLocation);\n }", "public function mainImage():string\n {\n return ($this->image_1) ? url( $this->image_1 ) : url( env('NO_IMAGE_PRODUCT_DEFAULT','') );\n }", "public function getImgMainSrcAttribute()\n {\n if (strpos($this->main_img, 'http') !== false) {\n return $this->main_img;\n } else if ($this->main_img) {\n return url(\"/api/images/catalogs/$this->id/main?ver=\" . rand(0, 1000000));\n }\n\n return null;\n }", "public function cover_image_absolute_url() {\n // If the URL does not already start with http, assume it's stored locally and add the app URL\n if(!preg_match('/^https?:\\/\\//', $this->cover_image))\n return env('APP_URL').$this->cover_image;\n\n return $this->cover_image;\n }", "function getLocalImageURL() {\n\t\tglobal $MAIN_ROOT;\n\t\t$returnVal = false;\n\t\tif($this->intTableKeyValue != \"\") {\n\t\t\t\t\t\n\t\t\tif(strpos($this->arrObjInfo['imageurl'], \"http://\") === false) {\n\t\t\t\t\n\t\t\t\t$returnVal = $this->arrObjInfo['imageurl'];\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t\treturn $returnVal;\n\t}", "public function getLogoAbsolute() \n {\n return NULL === $this->getLogo()\n ? NULL\n : $this->getAbsolutePath() . '/' . $this->getFilename();\n }", "protected function _getLogoUrl() {\n return ($this->_getFromConfig('pop_up_logo')) ? $this->getSkinUrl(Mage::getStoreConfig('design/header/logo_src'), array(\"_area\" => \"frontend\")) : \"\";\n }", "public function getImageUrl(bool $dummy = true)\n {\n $link = $this->link;\n return empty( $this->owner->$link ) ? ( $dummy ? $this->dummy_path : null ) : '/storage/' . $this->directory . '/' . $this->owner->$link;\n }", "public function getAbsoluteSrc();", "public function get_image_url(){\n\t\tglobal $CFG;\n\n\t\trequire_once $CFG->libdir . \"/filelib.php\";\n\n\t\t$course = get_course($this->_courseid);\n\n\t\tif ($course instanceof stdClass) {\n\t\t\trequire_once $CFG->libdir . '/coursecatlib.php';\n\t\t\t$course = new course_in_list($course);\n\t\t}\n\n\t\tforeach ($course->get_course_overviewfiles() as $file) {\n\t\t\t$isImage = $file->is_valid_image();\n\n\t\t\tif ($isImage) {\n\t\t\t\treturn file_encode_url(\"$CFG->wwwroot/pluginfile.php\",\n\t\t\t\t\t'/' . $file->get_contextid() . '/' . $file->get_component() . '/' .\n\t\t\t\t\t$file->get_filearea() . $file->get_filepath() . $file->get_filename(), !$isImage);\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "protected function _getUrl()\n {\n $url = false;\n if ($this->getValue()) {\n $url = $this->_imageModel->getBaseUrl().$this->getValue();\n }\n return $url;\n }", "public function getImage() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('image'));\n }", "public function getRelativeLinkToImg()\n {\n return ImgUpload::getRelativeLinkToImg($this);\n }", "public function getImageBaseURL()\r\n {\r\n return $this->base_url;\r\n }", "public function getShareImage() {\n if ($this->item_image == null) {\n return Yii::app()->request->baseUrl . \"/images/box/fbdefault.jpg\";\n } else {\n return Yii::app()->request->baseUrl . \"/images/box/\" . $this->item_image;\n }\n }", "function _adRenderBuildImageUrlPrefix()\n{\n $conf = $GLOBALS['_MAX']['CONF'];\n return $GLOBALS['_MAX']['SSL_REQUEST'] ? 'https://' . $conf['webpath']['imagesSSL'] : 'http://' . $conf['webpath']['images'];\n}", "public function getLogoAbsolutePath()\n {\n return null === $this -> logoPath\n ? null\n : $this->getUploadRootPicDir().'/'.$this->logoPath;\n }", "public function getAbsolutePicture();", "public function getImageUrl() {\n if ($this->_getData('image_url')) {\n if (strpos($this->_getData('image_url'), 'http://') === false) {\n $this->setImageUrl(Mage::getBaseUrl() . ltrim($this->_getData('image_url'), '/ '));\n }\n }\n\n return $this->_getData('image_url');\n }", "public function getImage() {\n if ($this->item_image == null) {\n return Yii::app()->request->baseUrl . \"/images/box/default.jpg\";\n } else {\n return Yii::app()->request->baseUrl . \"/images/box/\" . $this->item_image;\n }\n }", "public function getUrlImage(): ?string\n {\n return $this->url_image;\n }", "public function imageUrl()\n\t{\n\t\treturn \"/storage/$this->image\";\n\t}", "public function get_image_link()\n {\n }", "public function getBaseImageSource()\n {\n $baseImage = $this->_rootElement->find($this->baseImage);\n return $baseImage->isVisible() ? $baseImage->getAttribute('src') : '';\n }", "public function getImageUrl() \n {\n // return a default image placeholder if your source avatar is not found\n $imagen = isset($this->imagen) ? $this->imagen : 'default_product.jpg';\n return Url::to('@web/img/producto/'). $imagen;\n }", "function wpex_header_logo_img() {\n\n\t// Get logo from theme mod\n\t$logo = wpex_get_translated_theme_mod( 'custom_logo' );\n\n\t// Apply filters for child theme mods\n\t$logo = apply_filters( 'wpex_header_logo_img_url', $logo );\n\n\t// Sanitize return\n\t$logo = $logo ? set_url_scheme( $logo ) : false;\n\n\t// Return logo\n\treturn $logo;\n\n}", "public function getLogoUriAttribute()\n\t{\n\t\tif($this->clan)\n\t\t\treturn $this->clan->logoUri;\n\t\telseif($this->leader)\n\t\t\treturn $this->leader->gamer->avatar;\n\n\t\treturn null;\n\t}", "public function getBrandlogoimageurl(){\n\t\treturn Mage::helper('brand')->brandLogoImageUrl();\n\t}", "public function getImageUrl();", "protected function defaultLogoUrl()\n {\n return config('constants.ui_avatars_url').''.urlencode($this->name);\n }", "public function getImageUrl()\n {\n $baseUrl = $this->getBaseImageUrl();\n if ($baseUrl) {\n $dimensions = $this->getImageDimensions();\n $imageData = $this->getImageData();\n $width = Kwf_Media_Image::getResponsiveWidthStep($dimensions['width'],\n Kwf_Media_Image::getResponsiveWidthSteps($dimensions, $imageData['file']));\n $ret = str_replace('{width}', $width, $baseUrl);\n $ev = new Kwf_Component_Event_CreateMediaUrl($this->getData()->componentClass, $this->getData(), $ret);\n Kwf_Events_Dispatcher::fireEvent($ev);\n return $ev->url;\n }\n return null;\n }", "public function get_image_url()\n {\n }", "function getUrlImg(){\n\t\treturn $this->url_img;\n\t}", "public function getDefaultFileUrl()\n { \n return $this->baseUrl.'/default_image.png';\n }", "function vt_prod_cat_get_masthead_url() {\n\n\t$image_id = get_field( 'prod_cat_masthead_image', get_queried_object() );\n\n\tif ( false === $image_id ) {\n\n\t\t//Get fallback image from options\n\t\t$image_id = get_field( 'product_category_masthead_fallback', 'option' );\n\n\t}\n\n\t$image_url = wp_get_attachment_image_url( $image_id, 'cl_product_cat_masthead' );\n\n\treturn $image_url;\n}", "public function getImageUrl()\n {\n return isset($this->image_url) ? $this->image_url : null;\n }", "public function url()\n\t{\n\t\t$this->buildImage();\n\t\treturn $this->buildCachedFileNameUrl;\n\t}", "public function getLogoAttribute($val){\n return ($val !== null)? 'http://localhost/ecommerce/public/'.$val : \"\";\n }", "function get_custom_logo_url( $echo = true ){\n $custom_logo_id = get_theme_mod( 'custom_logo' );\n $image = wp_get_attachment_image_src( $custom_logo_id , 'full' );\n\n if(!$echo){\n return $image[0];\n }\n\n echo $image[0];\n}", "function get_site_logo( $mode = '' ) {\n\n if ( $mode == 'alternative' ) {\n $site_logo = get_field( 'site_logo_alternative', 'option' );\n } else {\n $site_logo = get_field( 'site_logo', 'option' );\n }\n\n $result = empty( $site_logo ) ? null : wp_get_attachment_url( $site_logo );\n\n return $result;\n}", "public function getLogoUrlAttribute()\n {\n return $this->logo_path\n ? asset(Storage::url($this->logo_path))\n : $this->defaultLogoUrl();\n }", "public function getHostImageUrl() {\n return $this->objectManager->get ( 'Magento\\Store\\Model\\StoreManagerInterface' )->getStore ()->getBaseUrl ( \\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA ) . 'Airhotels/Customerprofileimage/Resized';\n }", "public function getLogo()\n {\n $logoUrl = '';\n if ($this->helper->getLogoConfig()) {\n $logoUrl = $this->logo->getLogoSrc();\n }\n return $logoUrl;\n }", "public function getImageUrl(){\n return $this->image_url;\n }", "public function getImageUrl()\n {\n return $this->info->thumbnail_url ? $this->info->thumbnail_url : null;\n }", "public function getLogo($absolute_path = FALSE)\n {\n if ($absolute_path)\n return asset('/storage/images/companies/'.$this->logo);\n\n return '/storage/images/companies/'.$this->logo;\n }", "function wpex_overlay_header_logo_img() {\n\n\t// No custom overlay logo by default\n\t$logo = false;\n\n\t// Get logo via custom field\n\t$logo = get_post_meta( wpex_get_current_post_id(), 'wpex_overlay_header_logo', true );\n\n\t// Check old method\n\tif ( is_array( $logo ) ) {\n\t\tif ( ! empty( $logo['url'] ) ) {\n\t\t\t$logo = $logo['url'];\n\t\t} else {\n\t\t\t$logo = false;\n\t\t}\n\t}\n\n\t// Apply filters for child theming\n\t$logo = apply_filters( 'wpex_header_overlay_logo', $logo );\n\n\t// If numeric logo is an attachment ID so lets get the URL\n\tif ( is_numeric( $logo ) ) {\n\t\t$logo = wp_get_attachment_image_src( $logo, 'full' );\n\t\t$logo = $logo[0];\n\t}\n\n\t// Sanitize\n\t$logo = $logo ? set_url_scheme( $logo ) : false;\n\n\t// Return logo\n\treturn $logo;\n}", "function ImageSRC()\n\t{\treturn $this->imagelocation . (int)$this->id . \".jpg\";\n\t}", "function getEditLogoUrl() {\n return assemble_url('people_company_edit_logo', array('company_id' => $this->getId())); \n }", "public function getAbsoluteURL()\n {\n return null;\n }", "static public function getImageURL() {\n\t\treturn self::$image_url;\n\t}", "public function getImgSubSrcAttribute()\n {\n if (strpos($this->sub_img, 'http') !== false) {\n return $this->sub_img;\n } else if ($this->sub_img) {\n return url(\"/api/images/catalogs/$this->id/sub?ver=\" . rand(0, 1000000));\n }\n\n return null;\n }", "public function getBrandimageurl(){\n\t\treturn Mage::helper('brand')->brandBaseImageUrl();\n\t}", "public function getProjectBigLogo() {\n $logo = Yii::$app->request->baseUrl . \"/themes/assets/images/logo-img/logo-big.png\";\n return $logo;\n }", "public function getImageUrl() {\n return $this->image_url;\n\n }", "function getLogoUrl($large = false) { \n $size = $large ? '40x40' : '16x16';\n $mtime = filemtime($this->getLogoPath($size));\n \n if($mtime === false) {\n return ROOT_URL . \"/logos/default.$size.gif\";\n } else {\n return ROOT_URL . '/logos/' . $this->getId() . \".$size.jpg?updated_on=$mtime\";\n } // if\n }", "public function resolveThumbnailUrl();", "public function getImageUrl()\n\t{\n\t\treturn $this->image_url;\n\t}", "public function getUrlAttribute(){\n if(substr($this->image,0,4)=== \"http\"){\n return $this->image;\n }\n //o si viene de la carpeta public\n return '/images/products/' . $this->image;\n }", "public function getImageURL() {\n\n return $this->image_url;\n }", "public function getImageUrl()\n {\n return $this->image_url;\n }", "public function getImageUrl()\n {\n return $this->image_url;\n }", "public function getSolutionImgAttribute()\n {\n $logo = $this->image()->first();\n\n if ($this->is_company_logo) {\n $company_logo = $this->company()->first();\n if ($company_logo) {\n return $company_logo->logo;\n }\n } else if ($logo) {\n return $logo->image_location;\n }\n\n return null;\n }", "static public function getCurrentImageURL() {\n\t\tif (self::checkSSL()) {\n\t\t\treturn self::getSecureImageURL();\n\t\t} else {\n\t\t\treturn self::getImageURL();\n\t\t}\n\t}", "public function getRootImagePath()\n {\n return \"{$this->filename}\";\n }", "public function getThumbnail() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('thumbnail'));\n }", "public function image()\n {\n if (isset($this->object->entities->media) && ! empty($this->object->entities->media)) {\n return $this->object->entities->media[0]->media_url;\n }\n }", "public function getPlaceholderImage(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $storeManager = $objectManager->get(\"\\Magento\\Store\\Model\\StoreManagerInterface\");\n $mediaUrl = $storeManager->getStore()->getBaseUrl(\\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA );\n return $mediaUrl.'catalog/product/placeholder/'.\\Magento\\Framework\\App\\ObjectManager::getInstance()\n ->get('Magento\\Framework\\App\\Config\\ScopeConfigInterface')\n ->getValue('catalog/placeholder/thumbnail_placeholder');\n }", "public function getImage(){\n\t\t//Message is absent\n\t\tif(!$this->thumbnail){\n\t\t\treturn false;\n\t\t}\n\t\treturn asset(\"downloads/{$this->thumbnail}\");\n\t}", "public function getPreviewImageUrl(): string\n {\n $previewPath = $this->getConfigValue('previewImage', 'assets/img/skin-preview.png');\n if (File::exists($this->getPath() . '/' . $previewPath)) {\n return Url::asset('plugins/summer/login/skins/' . $this->getDirName() . '/' . $previewPath);\n }\n return Url::asset('modules/cms/assets/images/default-theme-preview.png');\n }", "public function getLogoWeb() \n {\n return NULL === $this->getFilename()\n ? NULL\n : $this->getUploadPath() . '/' . $this->getFilename();\n }", "public function getAbsolutePath()\n {\n return null === $this->image\n ? null\n : $this->getUploadRootDir() . '/' . $this->image;\n }", "function culturefeed_entry_ui_collaboration_get_image_from_url($image) {\n\n // See if the image is stored on the local url.\n $base_path = $GLOBALS['base_url'] . '/' . variable_get('file_public_path', conf_path() . '/files') . '/';\n $parts = explode($base_path, $image);\n if (count($parts) == 2 && $parts[1]) {\n\n $files = entity_load('file', FALSE, array('uri' => 'public://' . $parts[1]));\n if (!empty($files)) {\n return reset($files);\n }\n\n }\n\n}", "public function getBaseUrl()\n {\n return $this->storeManager\n ->getStore()\n ->getBaseUrl(\\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA) . '/' . self::MEDIA_PATH;\n }", "public function getMediaImageUrl() {\n return $this->objectManager->get ( 'Magento\\Store\\Model\\StoreManagerInterface' )->getStore ()->getBaseUrl ( \\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA ) . 'catalog/product';\n }", "protected function getImageUrl() {\r\n\t\treturn $this->imageUrl;\r\n\t}", "public function getBaseUrl()\n {\n return $this->_urlBuilder->getBaseUrl(['_type' => \\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA]).'/'.self::MEDIA_PATH;\n }", "public function getImageUrl()\n {\n if($this->imageUrl === null) {\n if (!empty($this->external_image_url)) {\n $this->imageUrl = $this->external_image_url;\n } elseif (isset($this->files[0]) && !empty($this->files[0]->path)) {\n $this->imageUrl = $this->filesByZone('bannerImage')->first()->path_string;\n }\n }\n\n return $this->imageUrl;\n }", "public function getImageUrl(): string\n {\n return $this->imageUrl;\n }", "public function getLogo()\n {\n if ($this->hasLogo()) {\n return $this->getLogoUrl();\n }\n\n return '/images/no_avatar.png';\n }", "public function getMetaImage() {\n return (isset($this->metaImage) && $this->metaImage!='') ? $this->metaImage : LOGO;\n }", "public function getMainImagePath() {\n $mainImage = $this->getMainImage();\n if ($mainImage != null) {\n return $mainImage->path;\n }\n else {\n return \"\";\n }\n }", "public function getLogoURL()\n {\n return $this->logoURL;\n }", "public function getLogoURL()\n {\n return $this->logoURL;\n }", "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 getImageFile()\n {\n $link = $this->link;\n return empty( $this->owner->$link ) ? null : \\Yii::getAlias(\n '@storage/' . $this->directory . '/' . $this->owner->$link\n );\n }", "public function getPhotoUrlAttribute()\n {\n return asset(env('FRONTEND_IMAGES_PATH') . $this->image);\n }", "public function getLogoUrl()\n {\n return $this->logo_url;\n }", "public function getFullAvatarUrl() {\n return $this->imageUrl . '_full.jpg';\n }", "function theme_logo()\n{\n $logo = get_theme_option('Logo');\n if ($logo) {\n $storage = Zend_Registry::get('storage');\n $uri = $storage->getUri($storage->getPathByType($logo, 'theme_uploads'));\n return '<img src=\"' . $uri . '\" alt=\"' . option('site_title') . '\" />';\n }\n}", "public function renderUri() {\n\t\tif ($this->isThumbnailPossible($this->getFile()->getExtension())) {\n\t\t\t$this->processedFile = $this->getFile()->process($this->getProcessingType(), $this->getConfiguration());\n\t\t\t$result = $this->processedFile->getPublicUrl(TRUE);\n\n\t\t\t// Update time stamp of processed image at this stage. This is needed for the browser to get new version of the thumbnail.\n\t\t\tif ($this->processedFile->getProperty('originalfilesha1') != $this->getFile()->getProperty('sha1')) {\n\t\t\t\t$this->processedFile->updateProperties(array('tstamp' => $this->getFile()->getProperty('tstamp')));\n\t\t\t}\n\t\t} else {\n\t\t\t$result = $this->getIcon($this->getFile()->getExtension());\n\t\t}\n\t\treturn $result;\n\t}", "public function getImg()\n {\n return $this->imgLink;\n }", "public function getImageUrl()\n {\n try {\n $product = $this->itemResolver->getFinalProduct($this->itemOptionsLocator->getOptions($this->getItem()));\n $imageUrl = $this->imageHelper->getDefaultPlaceholderUrl('thumbnail');\n if ($product !== null) {\n $imageUrl = $this->imageHelper->init($product, 'product_thumbnail_image')->getUrl();\n }\n return $imageUrl;\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n }", "public function getLinkToImg()\n {\n return ImgUpload::getLinkToImg($this);\n }", "public function getCoverAttribute(): string\n {\n if ($this->hasMedia('image') && $this->relationLoaded('media') && config('filesystems.default') !== 'public') {\n return $this->getFirstTemporaryUrl(Carbon::now()->addHour(), 'image', 'sm');\n }\n\n if ($this->getFirstMediaUrl('image', 'sm')) {\n return $this->getFirstMediaUrl('image', 'sm');\n }\n\n return \\Storage::url('images/not-found.jpg');\n }", "public function src(){\n return $this->imageFirstInContent;\n }", "public function getRecAreaImageUrl(): ?string {\n\t\treturn $this->recAreaImageUrl;\n\t}", "public function getImagePathAttribute()\n {\n $defaultFileStorage= Config::get('filesystems.default');\n $imagefolderUrl= Config::get('filesystems.disks.' . $defaultFileStorage . '.folderUrl') ;\n return $imagefolderUrl . '/' . $this->image;\n }", "public function storeLoginImageUrl()\r\n\t{\r\n\t\t$baseUrl = Mage::getBaseUrl();\r\n\t\t\r\n\t\tif(strpos($baseUrl, 'index.php') !== false)\r\n\t\t{\r\n\t\t\t$url = explode('index.php', $baseUrl);\r\n\t\t\r\n\t\t\t$storeUrl =\t$url[0];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$storeUrl =\t$baseUrl;\r\n\t\t}\r\n\t\t\r\n\t\treturn $storeUrl;\r\n\t}", "public function getPhotoURL(){\r\n\t\t$photo = $this->getPhoto();\r\n\r\n\t\treturn $photo != null ? \"https://maps.googleapis.com/maps/api/place/photo?maxwidth=800&photoreference=\" . $photo . \"&key=\" . GOOGLE_MAPS_API_KEY_PRIVATE : null;\r\n\t}" ]
[ "0.70274717", "0.68613935", "0.67954427", "0.6747177", "0.6676173", "0.66071075", "0.6560915", "0.64241153", "0.64233774", "0.64129317", "0.6393591", "0.63915026", "0.63722175", "0.6359381", "0.6276505", "0.6269279", "0.62575024", "0.6229864", "0.6188078", "0.61579025", "0.6146595", "0.61405957", "0.61169076", "0.6105882", "0.6097716", "0.60970783", "0.60484844", "0.6047894", "0.6041874", "0.60252154", "0.6023637", "0.60163987", "0.60089296", "0.5990197", "0.5976716", "0.5975587", "0.59648734", "0.59583163", "0.5958236", "0.5957018", "0.5955875", "0.59539086", "0.5951087", "0.5923779", "0.5915787", "0.5915557", "0.59127015", "0.5908633", "0.5906191", "0.5895021", "0.5891481", "0.5889154", "0.588875", "0.58720225", "0.58593947", "0.5855953", "0.5845869", "0.5844128", "0.5842081", "0.5841552", "0.58366203", "0.58366203", "0.5829195", "0.5829001", "0.58268946", "0.5824461", "0.58238727", "0.5820339", "0.58171654", "0.5815754", "0.58118665", "0.58074677", "0.5802958", "0.58028257", "0.5802314", "0.57883924", "0.57881755", "0.5785059", "0.5783187", "0.57819915", "0.5780581", "0.57738906", "0.57615775", "0.57615775", "0.57614887", "0.57585716", "0.57571244", "0.57555574", "0.575538", "0.5752889", "0.57450175", "0.57396996", "0.57388705", "0.5737292", "0.5734314", "0.5732754", "0.57324046", "0.5732049", "0.5726758", "0.5718413" ]
0.65090936
7
Converts OXPERSPARAM to an array as per apidefinition an array is required
protected function getPersParams($sPersParam) { if (empty($sPersParam)) { return []; } return [$sPersParam]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function getAsArray();", "public function AsArray();", "private function toArray()\n {\n \treturn array(\n \t\t'Locus'\t\t\t\t=> $this->getLoucs(),\n \t\t'Length'\t\t\t=> $this->getLength(),\n \t\t'Strandedness'\t\t=> $this->getStrandedness(),\n \t\t'mulType'\t\t\t=> $this->getMulType(),\n \t\t'Topology'\t\t\t=> $this->getTopology(),\n \t\t'PriAccession'\t\t=> $this->getPriAccession(),\n \t\t'AccessionVersion'\t=> $this->getAccessionVersion(),\n \t\t'OtherSeqIds'\t\t=> $this->getOtherSeqIds(),\n \t\t'Organism'\t\t\t=> $this->getOrganism(),\n \t\t'Taxonomy'\t\t\t=> $this->getTaxonomy(),\n \t\t'Source'\t\t\t=> $this->getSource(),\n \t\t'Refferences'\t\t=> $this->getRefs(),\n \t\t'Comment'\t\t\t=> $this->getComment(),\n \t\t'Features'\t\t\t=> $this->getFeatures(),\n \t\t'Sequence'\t\t\t=> $this->getSequence()\n \t);\n }", "function to_array() \n {\n $d = array();\n $d[\"vocab\"] = $this->vocab;\n $d[\"meta_name\"] = $this->meta_name;\n $d[\"text\"] = $this->text;\n $d[\"lang\"] = $this->lang;\n foreach($this->attrs as $key => $value) {\n $d[$key] = $value;\n }\n return $d;\n }", "function toArray() ;", "function toArray() ;", "public function getDataprotArray() {\n\t\t$arr = array();\n\t\t$ds = $this->getDataprotXML();\n\t\tif (strlen($ds) > 1) {\n\t\t\t$arr = GeneralUtility::xml2array($ds);\n\t\t}\n\n\t\treturn $arr;\n\t}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "abstract protected function toArray();", "abstract public function to_array();", "public function convertItemArray() {}", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toSitemapArray();", "public function toArray():array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function getQueryAsArray();", "public function toArray() {\n\t\treturn array(\n\t\t\tself::FIELD_CODI_ESPECTACLE=>$this->getCodiEspectacle(),\n\t\t\tself::FIELD_DATA=>$this->getData(),\n\t\t\tself::FIELD_HORA=>$this->getHora());\n\t}", "abstract public function data2Array($data);" ]
[ "0.6610058", "0.6610058", "0.6610058", "0.6610058", "0.6610058", "0.6610058", "0.63780737", "0.63600695", "0.6290569", "0.62802523", "0.62292093", "0.62292093", "0.6223689", "0.61402774", "0.61402774", "0.61402774", "0.61402774", "0.6140034", "0.6140034", "0.613968", "0.613968", "0.613968", "0.613968", "0.613968", "0.613968", "0.613968", "0.613968", "0.613968", "0.613968", "0.61183", "0.610081", "0.60990375", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.60974103", "0.6095379", "0.6088295", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.60677373", "0.6041158", "0.60274255", "0.60270417" ]
0.0
-1
Login dan mendapatkan token
public function login_admin(Request $request) { $status = TRUE; $mesasge = "Berhasil login"; $currentUser = array(); $credentials = $request->only('username', 'password'); try { if (!$token = JWTAuth::attempt($credentials)) { $status = FALSE; $mesasge = "Invalid username or password"; } else { $currentUser = JWTAuth::user(); Admin::where('id', $currentUser['id'])->update(["remember_token" => $token]); } } catch (JWTException $e) { $status = FALSE; $mesasge = "Something wrong in communicating with API or JWT"; } return response()->json(array("status" => $status, "message" => $mesasge, "user" => $currentUser, "token" => $token)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db fpr this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token\n FROM users\n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the db, it means login failed\n if(!$token) {\n\n Router::redirect(\"/users/login/error\");\n \n\n # But if we did, login succeeded!\n } else {\n\n \n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cookie (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n \n\n # Send them to the main page - or wherevr you want them to go\n Router::redirect(\"/\");\n # Send them back to the login page\n }\n }", "public function p_login() {\n\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\t\n\t# Search the db for this email and password\n\t# Retrieve the token if it's available\n\t$q = \"SELECT token \n\t\tFROM users \n\t\tWHERE email = '\".$_POST['email'].\"' \n\t\tAND password = '\".$_POST['password'].\"'\";\n\t\n\t$token = DB::instance(DB_NAME)->select_field($q);\t\n\t\t\t\t\n\t# If we didn't get a token back, login failed\n\tif(!$token) {\n\t\t\t\n\t\t# Send them back to the login page\n\n\t\tRouter::redirect(\"/users/login/error\");\n\n\t\t\n\t# But if we did, login succeeded! \n\t} else {\n\t\t\t\n\t\t# Store this token in a cookie\n\t\t@setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\t\t\n\t\tRouter::redirect(\"/users/profile\");\n\t\t\t\t\t\n\t}\n }", "public function attemptLogin($token);", "private function login(){\n \n }", "public function login($username, $password, $token);", "public function singkronisasi_login(){\n $url = env(\"KLOLA_BASE_URL\").\"/api/auth/login\";\n $header = array();\n $param_body = [\n \"email\"=> env(\"KLOLA_LOGIN_USER\"),\n \"password\"=> env(\"KLOLA_LOGIN_PASSWORD\")\n ];\n $result_curl = Utils::curl_post($url, $header, $param_body);\n\n if($result_curl[\"code\"] == 200) {\n $deSerialise = json_decode($result_curl[\"result\"], true);\n if(array_key_exists(\"access_token\", $deSerialise)) {\n Session::set(\"klola_access_token\", $deSerialise[\"access_token\"]);\n }\n\n return [\n \"status\" => true,\n \"result\" => $deSerialise\n ];\n }\n\n return [\n \"status\" => false\n ];\n }", "public function login();", "public function login();", "public function LoginToken()\n {\n\n $tokenData['id'] = '1';\n $tokenData['name'] = 'alomgir';\n $tokenData['timeStamp'] = Date('Y-m-d h:i:s');\n $tokenPass = password_hash(\"rasmuslerdorf\", PASSWORD_DEFAULT);\n\n $encData = md5('kdsfjkskdfsdfkjsdf');\n\n $password = 'abcdefg';\n $salt = 'anythingyouwant_';\n $pw_hash = md5($salt.$password);\n\n $data = password_hash(\"rasmuslerdorf\", PASSWORD_DEFAULT);\n\n //echo password_hash(\"rasmuslerdorf\", PASSWORD_BCRYPT, $options);\n\n $jwtToken = $this->objOfJwt->GenerateToken($tokenData);\n\n $jwtTokenTest = static::encode_token($jwtToken);\n\n echo json_encode(array('Token'=> $jwtToken));\n\n\n }", "public function p_login() {\n\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t# Prevent SQL injection attacks by sanitizing user entered data\n\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t$q = \"SELECT token\n\tFROM users\n\tWHERE email = '\".$_POST['email'].\"'\n\tAND password = '\".$_POST['password'].\"'\n\t\";\n\n\t$token = DB::instance(DB_NAME)->select_field($q);\n\n\t#login failed\n\tif($token == \"\" || $_POST['email'] == \"\" || $_POST['password'] == \"\"){\n\n\n\n\tRouter::redirect(\"/users/login/error\");\n\t# send back to login page - should add indication what went wrong\n\t}\n\t#login successful\n\telse{\t\n\n\t\techo \"if we find a token, the user is logged in. Token:\".$token;\n\n\t\t#store token in a cookie\n\t\tsetcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\n\t\t#send them to the main page\n\t\tRouter::redirect(\"/issues\");\n\n\t\t#token name value and how long should last\n\t\t#send back to index page\n\t\t#authenticate baked into base controller\n\t\t#gets users credentials this->user->firstname\n\t}\n}", "public function p_login() {\n\n\t\t# Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t\t# Hash submitted password so we can compare it against one in the db\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n\t\t# Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \"SELECT token \n\t\t\tFROM users \n\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\tAND password = '\".$_POST['password'].\"'\";\n\n\t\t$token = DB::instance(DB_NAME)->select_field($q);\n\n\t\t# If we didn't find a matching token in the database, it means login failed\n\t\tif(!$token) {\n\n\t\t\t# Send them back to the login page\n\t\t\tRouter::redirect(\"/users/login/error\");\n\n\t\t# But if we did, login succeeded! \n\t\t} else {\n\t\t\tsetcookie(\"token\", $token, strtotime('+1 year'), '/');\n\t\t\t# Send them to the main page - or whever you want them to go\n\t\t\tRouter::redirect(\"/\");\n\t\t}\n\t}", "function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db for this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the database, it means login failed\n if(!$token) {\n\n # Send them back to the login page\n Router::redirect(\"/users/login/error\");\n\n # But if we did, login succeeded! \n } else {\n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cookie (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+1 year'), '/');\n\n # update the last_login time for the user\n/* $_POST['last_login'] = Time::now();\n\n $user_id = DB::instance(DB_NAME)->update('users', $_POST); */\n\n # Send them to the main page - or whever you want them to go\n Router::redirect(\"/\");\n }\n }", "function login() {\n if ($this->getRequestMethod() != 'POST') {\n $this->response('', 406);\n }\n \n $user = json_decode(file_get_contents('php://input'),true);\n if (!self::validateUser($user['username'], $user['password'])) {\n $this->response('', 406);\n }\n $user['password'] = self::getHash($user['username'], $user['password']);\n $keys = array_keys($user);\n\n $query = \"select id from users where username = '\" . $user['username'] . \"' and password = '\" .\n $user['password'] . \"';\";\n \n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n \n if ($r->num_rows > 0) {\n $response = $r->fetch_assoc(); \n $userId = $response['id'];\n $query = \"select content, expire_date from tokens where user_id = $userId ;\";\n\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $hasToken = false;\n // check if the token expired\n if ($r->num_rows > 0) {\n $hasToken = true;\n $response = $r->fetch_assoc();\n if ( strtotime('now') > (int)$response['expire_date']) {\n $query = \"delete from tokens where user_id = $userId\";\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $hasToken = false; \n }\n }\n if ($hasToken) {\n $jwt = $response[\"content\"];\n $resp = array('token' =>$jwt, 'id' => $userId);\n $this->response(json_encode($resp), 200);\n } else {\n $key = self::nextToken();\n $token = array(\n \"iss\" => \"tubeapi\"\n );\n $jwt = 'Bearer ' .JWT::encode($token, $key); \n\n $expireDate = strtotime(\"+1 hour\"); \n $query = \"insert into tokens (user_id, content, expire_date) values('$userId',\" .\n \"'$jwt','$expireDate');\";\n\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $resp = array('token' => $jwt, 'id' => $userId);\n $this->response(json_encode($resp), 200);\n }\n } else {\n $this->response('',204);\n }\n }", "public function login(){\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\" && isset($_POST[\"Anmelden\"]) && $_POST[\"Anmelden\"] == \"Anmelden\") {\n if ($this->error == false) {\n $datenbank = new DatenbankAufrufe;\n #Prüfung ob der Benutzer bereits existiert\n $result = $datenbank->existBenutzer();\n if ($result == true) {\n $dbPasswort = $datenbank->passwortAuslesen();\n $pwKrypto = new PasswortSpeichern;\n $result2 = $pwKrypto->passwortAbgleich($_POST['passwort'], $dbPasswort);\n if ($result2 == true) {\n #SESSION\n $session = new sessionClass;\n $name = $datenbank->benutzernameAuslesen();\n $session->SessionStart($name, $datenbank);\n\n header(\"Location: index.php?site=main\");\n }\n else {\n echo \"Das Passwort ist nicht korrekt\";\n }\n } else {\n echo \"Bitte zuerst Registrieren\";\n }\n }\n }\n }", "protected function LoginAuthentification()\n {\n \n $tokenHeader = apache_request_headers();\n\n //isset Determina si una variable esta definida y no es NULL\n\n if(isset($tokenHeader['token']))\n { \n $token = $tokenHeader['token'];\n $datosUsers = JWT::decode($token, $this->key, $this->algorithm); \n //var_dump($datosUsers);\n if(isset($datosUsers->nombre) and isset($datosUsers->password))\n { \n $user = Model_users::find('all', array\n (\n 'where' => array\n (\n array('nombre'=>$datosUsers->nombre),\n array('password'=>$datosUsers->password)\n )\n ));\n if(!empty($user))\n {\n foreach ($user as $key => $value)\n {\n $id = $user[$key]->id;\n $username = $user[$key]->nombre;\n $password = $user[$key]->password;\n }\n }\n else\n {\n return false;\n }\n }\n else\n {\n return false;\n }\n\n if($username == $datosUsers->nombre and $password == $datosUsers->password)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n else\n {\n return false;\n } \n \n }", "public function login() {\n parent::conectarBD();\n\n $queri = parent::query(sprintf(\"select usu_id as codigo, usu_password as senha, \"\n . \"usu_token_sessao as token_sessao, usu_login as login from \"\n . table_prefix . \"usuario where usu_login = '%s' and \"\n . \"usu_password = '%s'\", $this->usu_login, $this->usu_password));\n\n if ($queri) {\n $dados = $queri->fetch_assoc();\n if ($dados) {\n $new_session_id = hash('sha256', $dados['senha'] . time());\n $queri2 = parent::query(\"update \" . table_prefix . \"usuario set usu_token_sessao = '$new_session_id' where usu_id = \" . $dados['codigo']);\n\n if ($queri2) {\n $dados['token_sessao'] = $new_session_id;\n parent::commit();\n parent::desconectarBD();\n return $dados;\n } else {\n parent::rollback();\n parent::desconectarBD();\n return false;\n }\n } else {\n parent::desconectarBD();\n return false;\n }\n } else {\n parent::desconectarBD();\n return false;\n }\n }", "public function hacerLogin() {\n $user = json_decode(file_get_contents(\"php://input\"));\n\n if(!isset($user->email) || !isset($user->password)) {\n http_response_code(400);\n exit(json_encode([\"error\" => \"No se han enviado todos los parametros\"]));\n }\n \n //Primero busca si existe el usuario, si existe que obtener el id y la password.\n $peticion = $this->db->prepare(\"SELECT id,idRol,password FROM users WHERE email = ?\");\n $peticion->execute([$user->email]);\n $resultado = $peticion->fetchObject();\n \n if($resultado) {\n \n //Si existe un usuario con ese email comprobamos que la contraseña sea correcta.\n if(password_verify($user->password, $resultado->password)) {\n \n //Preparamos el token.\n $iat = time();\n $exp = $iat + 3600*24*2;\n $token = array(\n \"id\" => $resultado->id,\n \"iat\" => $iat,\n \"exp\" => $exp\n );\n \n //Calculamos el token JWT y lo devolvemos.\n $jwt = JWT::encode($token, CJWT);\n http_response_code(200);\n exit(json_encode($jwt . \"?\" . $resultado->idRol));\n \n } else {\n http_response_code(401);\n exit(json_encode([\"error\" => \"Password incorrecta\"]));\n }\n \n } else {\n http_response_code(404);\n exit(json_encode([\"error\" => \"No existe el usuario\"])); \n }\n }", "public function login(){\n\n }", "private function login(): void\n {\n try {\n $promise = $this->client->requestAsync('POST', 'https://api.jamef.com.br/login',\n ['json' => ['username' => $this->username, 'password' => $this->password]]\n )->then(function ($response) {\n $json = json_decode($response->getBody());\n $this->token = $json->access_token;\n });\n $promise->wait();\n } catch (RequestException $e) {\n $this->result->status = 'ERROR';\n $this->result->errors[] = 'Curl Error: ' . $e->getMessage();\n }\n }", "public function login() {\n\n $user_login = trim(in('id'));\n $user_pass = in('password');\n $remember_me = 1;\n\n $credits = array(\n 'user_login' => $user_login,\n 'user_password' => $user_pass,\n 'rememberme' => $remember_me\n );\n\n $re = wp_signon( $credits, false );\n\n if ( is_wp_error($re) ) {\n $user = user( $user_login );\n if ( $user->exists() ) ferror( -40132, \"Wrong password\" );\n else ferror( -40131, \"Wrong username\" );\n }\n else if ( in('response') == 'ajax' ) {\n // $this->response( user($user_login)->session() ); // 여기서 부터..\n }\n else {\n $this->response( ['data' => $this->get_button_user( $user_login ) ] );\n }\n\n }", "public function loginprofesor_post() //INICIAR SESION = http://localhost/foxweb/Api/login\n {\n $matricula = $this->post('matricula');\n $password = $this->post('password');\n $type = $this->post('type');\n\n $datauser = $this->ApiModel->flogin($matricula, $password, $type);\n\n if ($datauser != false) {\n foreach ($datauser as $data) {\n $matricula = $data['matricula'];\n $nombre = $data['nombre'];\n $apellidos = $data['apellidos'];\n }\n\n $response = ['error' => false, 'status' => parent::HTTP_OK, \"matricula\" => $matricula, \"nombre\" => $nombre, \"apellidos\" => $apellidos];\n\n $this->response($response, parent::HTTP_OK);\n\n } else {\n\n $response = ['error' => true,'status' => parent::HTTP_NOT_FOUND, 'msg' => 'Usuario o Contraseña Invalidos!'];\n\n $this->response($response, parent::HTTP_NOT_FOUND);\n\n }\n }", "public function login_post()\n {\n # XSS Filtering (https://codeigniter.com/user_guide/libraries/security.html?highlight=security)\n $_POST = $this->security->xss_clean($_POST); \n\n # Form Validation\n $this->form_validation->set_rules('email', 'Email', 'trim|required');\n $this->form_validation->set_rules('password', 'Password', 'trim|required');\n \n $this->form_validation->set_message('required', '{field} Tidak Boleh kosong');\n \n if ($this->form_validation->run() == FALSE)\n {\n // Form validation errors\n $message = array(\n 'status'=> false,\n 'errors'=> $this->form_validation->error_array(),\n 'message'=> 'validation errors',\n );\n \n $this->response($message, REST_Controller::HTTP_NOT_FOUND);\n }\n else\n {\n // load Login Function\n $output = $this->app_login->__user_login($this->input->post('email'), $this->input->post('password'));\n\n if (!empty($output) AND $output != FALSE) \n { \n if ($output->status == 0 ) {\n $message = array(\n 'status'=> false,\n 'message'=> 'Kamu sudah tidak aktif',\n );\n $this->response($message, REST_Controller::HTTP_NOT_FOUND);\n } else {\n \n $token_data['id'] = $output->id;\n $token_data['nama'] = $output->nama;\n $token_data['username'] = $output->username;\n $token_data['email'] = $output->email;\n $token_data['level'] = $output->level;\n $token_data['status'] = $output->status;\n $token_data['time'] = time();\n \n $user_token = $this->authorization_token->generateToken($token_data);\n \n // print_r($this->authorization_token->userData()); exit;\n // Login success\n $return_data = [\n 'id'=>$output->id,\n 'nama'=>$output->nama,\n 'username'=>$output->username,\n 'email'=>$output->email,\n 'level'=>$output->level,\n 'token' => $user_token\n ];\n $message = array(\n 'status'=> true,\n 'data'=> $return_data,\n 'message'=> 'User Login successful',\n );\n $this->response($message, REST_Controller::HTTP_OK);\n }\n // generate token\n }else{\n\n // Login Error\n $message = array(\n 'status'=> false,\n 'message'=> 'Invalid username or password',\n );\n $this->response($message, REST_Controller::HTTP_NOT_FOUND);\n }\n }\n }", "public function login_post()\n {\n if( isset( $_SERVER['CONTENT_TYPE'] ) && strpos( $_SERVER['CONTENT_TYPE'], \"application/json\" ) !== false ){ \n $i = json_decode( trim( file_get_contents( 'php://input' ) ), true );\n }else{\n $i = $this->input->post();\n }\n // print_r($i);\n $u = $i['username']; //Username Posted\n $p = md5($i['password']); //Pasword Posted\n $q = array('usr_loginname' => $u); //For where query condition\n $kunci = $this->config->item('thekey');\n // print_r($this->config->item('thekey')); die();\n $invalidLogin = ['status' => 'Invalid Login']; //Respon if login invalid\n $val = $this->M_user->get_user_full($q); \n if($this->M_user->get_user($q)->num_rows() == 0){\n $this->response($invalidLogin, REST_Controller::HTTP_NOT_FOUND);}\n\t \t$match = $val->usr_password; //Get password for user from database\n if($p == $match){ //Condition if password matched\n \t $token['id'] = $val->usr_id; //From here\n $token['username'] = $u;\n $date = new DateTime();\n $token['iat'] = $date->getTimestamp();\n $token['exp'] = $date->getTimestamp() + 60*60*5; //To here is to generate token\n $output['token'] = JWT::encode($token,$kunci); //This is the output token\n $output['username'] = $val->usr_name;\n $output['id'] = $val->usr_id;\n $output['role'] = $val->rol_name;\n $output['id_dep'] = $val->id_dep;\n $this->set_response($output, REST_Controller::HTTP_OK); //This is the respon if success\n }else{\n $this->set_response($invalidLogin, REST_Controller::HTTP_NOT_FOUND); //This is the respon if failed\n }\n }", "public function login()\n {\n\t\t$login = Input::get('login');\n\t\t$password = Input::get('password');\n\t\ttry{\n\t\t\n\t\t\t$user = Auth::authenticate([\n\t\t\t\t'login' => $login,\n\t\t\t\t'password' => $password\n\t\t\t]);\n\t\t\t$this->setToken($user);\n\t\t\treturn $this->sendResponse('You are now logged in');\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\treturn $this->sendResponse($e->getMessage());\n\t\t}\n }", "public function login() {\n if (isset($_POST['password'])) {\n $hash = $this->manager->getPassword();\n\n if (password_verify($_POST['password'], $hash)) {\n // On ouvre une session\n $_SESSION['admin-connected'] = true;\n // et on affiche la page pour l'administrateur\n header('Location:' . env(\"URL_PREFIX\") . '/admin');\n }\n else {\n // Si le mot de passe est incorrect,\n // on redirige sur la page de connexion avec un message d'erreur\n $this->response('login', [\n 'error' => \"invalid-password\"\n ]);\n }\n }\n }", "public function login()\n {\n }", "public function login()\n {\n }", "public function login()\n {\n $this->load->model('User_model');\n if ($this->input->post()) {\n if ($this->input->post('token') == $this->session->userdata('token')) {\n $dataUsuario = $this->User_model->login($this->input->post('username'), md5($this->input->post('pass'))); \n \n if (is_array($dataUsuario) && count($dataUsuario) > 0 ) {\n $data = array (\n 'admin' => $dataUsuario,\n );\n $this->saveSession($data);\n redirect('admin/dashboard');\n }else {\n redirect('admin/index');\n } \n } else {\n redirect('admin/index'); // echo \"token incorrecto\";\n } \n } \n }", "public function getToken( $token = null )\n\t{\n if (is_null($token)) $this->app->abort(404);\n foreach($this->app['fluentkit.messages']->all() as $m){\n echo $m; \n }\n echo $this->app['form']->open(array('url' => 'login/token'));\n echo $this->app['form']->hidden('token', $token);\n echo $this->app['form']->label('email', 'Email Address');\n echo $this->app['form']->email('email', $this->app['request']->get('email'));\n echo $this->app['form']->label('password', 'Password');\n echo $this->app['form']->password('password', $this->app['request']->get('password'));\n echo $this->app['form']->label('password_confirmation', 'Password Confirmation');\n echo $this->app['form']->password('password_confirmation', $this->app['request']->get('password_confirmation'));\n echo $this->app['form']->submit('Reset Password');\n echo $this->app['form']->close();\n\t}", "public function getLogin();", "public function getLogin();", "public function getLogin();", "public function login (Request $request) {\n $validator = Validator::make($request->all(), [\n 'email' => 'required|email',\n 'password' => 'required'\n ]);\n if ($validator->fails())\n return response()->json(['errors' => $validator->errors()], 400);\n $user = User::where('email', $request->email)->first();\n if (is_null($user) || !Hash::check($request->password, $user->password))\n return response()->json(['error'=>'نام کاربری یا رمز عبور نادرست است'], 403);\n $token = $user->createToken(now())->plainTextToken;\n return response()->json(['message'=>'خوش آمدید', 'token'=>$token]);\n }", "function login_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['login_token'] = $token;\n return $token;\n }", "public function requestLoginToken(): Response\n {\n // Get dependencies\n $session = $this->container->sessionHandler;\n $emailHandler = $this->container->emailHandler;\n $security = $this->container->accessHandler;\n $userMapper = ($this->container->dataMapper)('UserMapper');\n $email = trim($this->request->getParsedBodyParam('email'));\n\n // Fetch users\n $user = $userMapper->findActiveUserByEmail($email);\n\n // Did we find a match?\n if ($user === null) {\n // No, log and silently redirect to home\n $this->container->logger->info('PitonCMS: Failed login attempt: ' . $email);\n\n return $this->redirect('home');\n }\n\n // Belt and braces/suspenders double check\n if ($user->email === $email) {\n // Get and set token, and user ID\n $token = $security->generateLoginToken();\n $session->setData([\n $this->loginTokenKey => $token,\n $this->loginTokenExpiresKey => time() + 15*60,\n 'user_id' => $user->id,\n 'email' => $user->email,\n 'role' => $user->role,\n 'first_name' => $user->first_name,\n 'last_name' => $user->last_name,\n ]);\n\n // Get request details to create login link and email to user\n $link = $this->request->getUri()->getBaseUrl();\n $link .= $this->container->router->pathFor('adminProcessLoginToken', ['token' => $token]);\n\n // Send message\n $emailHandler->setTo($user->email, '')\n ->setSubject('PitonCMS Login')\n ->setMessage(\"Click to login\\n\\n $link\")\n ->send();\n }\n\n // Direct to home page\n return $this->redirect('home');\n }", "public function login()\n {\n $credentials = request(['email', 'password']);\n\n// if (!$token = auth('api')->attempt($credentials)) {\n if (!$token = JWTAuth::attempt($credentials)) {\n return response()->json(['error' => 'Unauthorized'], 401);\n }\n\n return $this->respondWithToken($token);\n }", "public function login()\n {\n $credentials = request(['email', 'password']);\n if (!$token = auth()->attempt($credentials)) {\n return response()->json(['error' => 'Unauthorized'], 401);\n }\n /*echo json_encode(auth()->user());\n echo json_encode($this->respondWithToken($token));*/\n\t $response = array();\n\t if(auth()->user()->privilegios == '1'){\n\t\t \n\t\t\t$response = $this->allAccess($token);\t\t\n\t\t\n\t }else{\n\t\t \n\t\t $response = $this->ConfigurableAccess($token);\n\t\t \n\t }\t \n //return $this->respondWithToken($token);\n return response()->json($response);\n }", "public function authenticate()\n {\n $this->data['message'] = lang_check('Something is wrong with request');\n $POST = $this->input->get_post(NULL, TRUE);\n //$this->data['parameters'] = $POST;\n\n if(isset($POST['key'], $POST['username'], $POST['password']) && $POST['key'] == $this->key)\n {\n $this->load->library('session');\n \n // Check if user exists\n if($this->user_m->login($POST['username'], $POST['password']) === TRUE)\n {\n $this->data['user_data'] = $this->user_m->user_session_data;\n \n // Generate, return token\n $token = $this->user_m->hash_token($POST['username'].$POST['password'].time().rand(1,9999));\n $this->data['token'] = $token;\n \n $ip = '';\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } else {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n \n // Delete all previous user token logs\n $this->db->where('user_id', $this->data['user_data']['id']);\n $this->db->delete('token_api');\n \n // Save token\n $data = array();\n $data['date_last_access'] = date('Y-m-d H:i:s');\n $data['ip'] = $ip;\n $data['username'] = $POST['username'];\n $data['user_id'] = $this->data['user_data']['id'];\n $data['token'] = $this->data['token'];\n $data['other'] = '';\n $this->token_m->save($data);\n \n $this->data['message'] = lang_check('Results available');\n }\n }\n \n echo json_encode($this->data);\n exit();\n }", "public function login()\n {\n /* validation requirement */\n $validator = $this->validation('login', request());\n\n if ($validator->fails()) {\n\n return $this->core->setResponse('error', $validator->messages()->first(), NULL, false , 400 );\n }\n\n $credentials = request(['email', 'password']);\n\n if (! $token = auth()->attempt($credentials)) {\n\n return $this->core->setResponse('error', 'Please check your email or password !', NULL, false , 400 );\n }\n\n return $this->respondWithToken($token, 'login');\n }", "function login($username, $authtoken) {\n\t\t$this->login = ( $this->send(\"login $username\\npk=$authtoken\\n\\0\") ? true : true );\n\t}", "function do_login() {\r\n $this->form_validation->set_rules('username', 'إسم المستخدم', 'required|trim|xss_clean');\r\n $this->form_validation->set_rules('password', 'كلمة المرور', 'required|trim|xss_clean');\r\n if ($this->form_validation->run() == FALSE) {\r\n $errorMsg = validation_errors();\r\n echo json_encode(array('status' => 'false', 'msg' => $errorMsg));\r\n } else {\r\n $data['username'] = $this->input->post('username');\r\n $data['password'] = $this->auth->addSalt($this->input->post('password'));\r\n $info = $this->user_model->do_login($data);\r\n if ($info) {\r\n $this->auth->fill_session($info);\r\n echo json_encode(array('status' => 'true', 'msg' => 'تم تسجيل الدخول بنجاح'));\r\n } else {\r\n echo json_encode(array('status' => 'false', 'msg' => 'خطأ في إسم المستخدم أو كلمة المرور'));\r\n }\r\n }\r\n }", "function action_login(){\n \n if($this->request->method()==='POST'){\n \n $login = arr::get($_POST,'username');\n $password = arr::get($_POST,'password');\n if (Auth::instance()->login($login, $password )){\n $user = Auth::instance()->get_user();\n $this->redirect(Route::get('admin')->uri());\n }else{\n echo 'не залогинен';\n \n \n }\n \n \n \n }\n \n }", "function login()\n\t{\n\t\t$url = $this->url;\n\t\t$url = $url . \"/oauth2/token\";\n\n\t\t$oauth2_token_parameters = array(\n\t\t\t\"grant_type\" => \"password\",\n\t\t\t\"client_id\" => \"sugar\",\n\t\t\t\"client_secret\" => \"\",\n\t\t\t\"username\" => $this->username,\n\t\t\t\"password\" => $this->password,\n\t\t\t\"platform\" => \"base\"\n\t\t);\n\n\t\t$oauth2_token_result = self::call($url, '', 'POST', $oauth2_token_parameters);\n\n\t\tif ( empty( $oauth2_token_result->access_token ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $oauth2_token_result->access_token;\n\t}", "public function p_login() {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n # Hash submitted password so we can compare it against one in the db\n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\n # Search the db for this email and password\n # Retrieve the token if it's available\n $q = \"SELECT token \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $token = DB::instance(DB_NAME)->select_field($q);\n\n # If we didn't find a matching token in the database, it means login failed\n if(!$token) {\n\n # Send them back to the login page with an error message\n Router::redirect(\"/users/login/?error=true\"); \n\n # But if we did, login succeeded! \n } \n # Login passed\n else {\n\n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cooke (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\n # Send them to the main page - or whever you want them to go\n Router::redirect(\"/\");\n\n }\n\n // Check if email address is empty\n $q = \"SELECT email \n FROM users \n WHERE email = '\".$_POST['email'].\"' \n AND password = '\".$_POST['password'].\"'\";\n\n $email = DB::instance(DB_NAME)->select_field($q);\n\n if(!$email) {\n\n # Send them back to the login page with an error message\n Router::redirect(\"/users/login/?error=true\"); \n\n # But if we did, login succeeded! \n } \n # Login passed\n else {\n\n /* \n Store this token in a cookie using setcookie()\n Important Note: *Nothing* else can echo to the page before setcookie is called\n Not even one single white space.\n param 1 = name of the cookie\n param 2 = the value of the cookie\n param 3 = when to expire\n param 4 = the path of the cooke (a single forward slash sets it for the entire domain)\n */\n setcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\n # Send them to the main page - or whever you want them to go\n Router::redirect(\"/\");\n\n }\n\n }", "function login(){\n\n\t\t$email \t\t = $this -> input -> post('email');\n\t\t$password \t \t= $this -> input -> post('password');\n\t\t$ceklogin \t\t= $this -> mlogin -> login($email, $password);\n\n\t\tif($ceklogin){\n\n\t\t\tforeach ($ceklogin as $row);\n\t\t\t$this -> session -> set_userdata('id', $row -> id);\n\t\t\t$this -> session -> set_userdata('nama', $row -> nama);\n\t\t\t$this -> session -> set_userdata('email', $row -> email);\n\t\t\t$this -> session -> set_userdata('is_admin', $row -> is_admin);\n\n\t\t\tredirect('dashboard');\n\t\t\t\t\t\n\t\t}else{\n\n\t\t\t$this -> session -> set_flashdata('pesan','\n\t\t\t\t\t\t\t\t<div class=\"alert alert-danger alert-dismissible\">\n\t\t\t\t\t\t\t\t<i class=\"icon fa fa-warning\"></i>\n\t\t\t\t\t\t\t\tUsername / Password tidak sesuai\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t');\n\t\t\tredirect(base_url());\n\n\t\t}\n }", "public function setLogin(){\n \n\t\t\t$obUser = Model::getUserByEmail($this->table, $this->camp,$this->email);\n\t\t\tif (!$obUser instanceof Model) {\n\t\t\t\t$this->message = 'Usuario ou Senha incorretos';\n return false;\n\t\t\t}\n\t\t\tif (!password_verify($this->password, $obUser->senha)) {\n\t\t\t\t$this->message = 'Usuario ou Senha incorretos';\n return false;\n\t\t\t}\n\t\t\t\n\t\t\t$this->session($obUser);\n\n\t\t\theader('location: '.$this->location);\n\t\t\texit;\n\n\t\t}", "public function postLogin()\n {\n\n // If login correct\n $userId = 1;\n Auth::loginUsingId($userId);\n\n\n // Todo Before Return\n\n// $data = Input::all();\n// $chkToken = BF::checktoken($data['timestamp'],$data['token']) ;\n// if(!$chkToken){\n// return BF::result(false, 'token invalid');\n// }\n// try {\n// if (empty($data['email'])) {\n// return BF::result(false, 'ไม่พบ email');\n// }\n// $status = User::where('email', $data['email'])->first();\n// if ($status === NULL ) {\n// return BF::result(false, 'ไม่พบ email นี้ในระบบ');\n// }\n// if ($data['password'] != $status->password) {\n// return BF::result(false, \"กรุณากรอก Password ให้ถูกต้องค่ะ\");\n// }\n// return BF::result(true, ['action' => 'create', 'name' => $status->name]);\n//\n// } catch (\\Illuminate\\Database\\QueryException $e) {\n// if ($e->getCode() == 23000) {\n// return BF::result(false, \"email นี้มีในระบบอยู่แล้วค่ะ\");\n// }\n// return BF::result(false, $e->getMessage());\n// }\n }", "public function actionLogin()\n {\n $model = new LoginForm();\n\n if ($model->load(\\Yii::$app->getRequest()->post(), '')) {\n $token = $model->login();\n if ($token) {\n return $this->success([\n \"access_token\" => $token,\n \"token_type\" => \"Bearer\",\n ]);\n } else {\n return $this->error($model->getErrors());\n }\n } else {\n throw new BadRequestHttpException(\"Please send your mobile number and password.\");\n }\n }", "public function login(){\n\n }", "public function login() {\n $email = $this->input->post('email');\n $pass = $this->input->post('password');\n if (!empty($email) && !empty($pass)) {\n $user = $this->users_model->login($email, $pass);\n if (!$user) {\n return $this->send_error('ERROR');\n }\n $this->event_log();\n return $this->send_response(array(\n 'privatekey' => $user->privatekey,\n 'user_id' => $user->id,\n 'is_coach' => (bool) $this->ion_auth->in_group('coach', $user->id)\n ));\n }\n return $this->send_error('LOGIN_FAIL');\n }", "private function login(){\n\t\tif ($_SERVER['REQUEST_METHOD'] != \"POST\") {\n\t\t\t# no se envian los usuarios, se envia un error\n\t\t\t$this->mostrarRespuesta($this->convertirJson($this->devolverError(1)), 405);\n\t\t} //es una peticion POST\n\t\tif(isset($this->datosPeticion['email'], $this->datosPeticion['pwd'])){\n\t\t\t#el constructor padre se encarga de procesar los datos de entrada\n\t\t\t$email = $this->datosPeticion['email']; \n \t\t$pwd = $this->datosPeticion['pwd'];\n \t\t//si los datos de la solicitud no es tan vacios se procesa\n \t\tif (!empty($email) and !empty($pwd)){\n \t\t\t//se valida el email\n \t\t\tif (filter_var($email, FILTER_VALIDATE_EMAIL)) { \n \t\t\t//consulta preparada mysqli_real_escape()\n \t\t\t\t$query = $this->_conn->prepare(\n \t\t\t\t\t\"SELECT id, nombre, email, fRegistro \n \t\t\t\t\t FROM usuario \n \t\t\t\t\t WHERE email=:email AND password=:pwd \");\n \t\t\t\t//se le prestan los valores a la query\n \t\t\t\t$query->bindValue(\":email\", $email); \n \t\t\t$query->bindValue(\":pwd\", sha1($pwd)); \n \t\t\t$query->execute(); //se ejecuta la consulta\n \t\t\t//Se devuelve un respuesta a partir del resultado\n \t\t\tif ($fila = $query->fetch(PDO::FETCH_ASSOC)){ \n\t\t\t $respuesta['estado'] = 'correcto'; \n\t\t\t $respuesta['msg'] = 'Los datos pertenecen a un usuario registrado';\n\t\t\t //Datos del usuario \n\t\t\t $respuesta['usuario']['id'] = $fila['id']; \n\t\t\t $respuesta['usuario']['nombre'] = $fila['nombre']; \n\t\t\t $respuesta['usuario']['email'] = $fila['email']; \n\t\t\t $this->mostrarRespuesta($this->convertirJson($respuesta), 200); \n\t\t\t } \n \t\t\t}\n \t\t} \n\t\t} // se envia un mensaje de error\n\t\t$this->mostrarRespuesta($this->convertirJson($this->devolverError(3)), 400);\n\t}", "public function login()\n {\n\t\tif(isset($_POST['email']) && isset($_POST['senha'])){\n\t\t\t\n\t\t\t//verifica se os $_POST estão vazios\n\t\t\tif(empty($_POST['email']) && empty($_POST['senha'])){\n\t\t\t\theader('Location: /admin?inputvazio=true');\n\t\t\t\treturn true;\n }\n \n $login = Container::getModel('admin');\n $login->setEmail($_POST['email']);\n $login->setSenha($_POST['senha']);\n\n //se a senha e o e-mail é o mesmo do banco\n if($login->login()){\n //cria as sessões\n session_start();\n $_SESSION['logado'] = true;\n $_SESSION['id'] \t= $login->getId();\n $_SESSION['nome'] \t= $login->getNome();\n $_SESSION['nivelAcesso'] \t= $login->geNivelAcesso();\n header('Location: /dashboard');\n }else{\n header('Location: /admin?logado=false');\n }\n }\n }", "public function login(Request $request){\n $user = User::where('email', $request->email)->get();\n\n //Comprobar que email y password de user son iguales\n $data = ['email' => $request->email];\n\n $user = User::where($data)->first();\n\n if($user->password == $request->password)\n {\n //Si son iguales codifico el token\n $token = new Token($data);\n $tokenEncode = $token->encode();\n\n //Devolver la respuesta en formato JSON con el token y código 200\n return response()->json([\n \"token\" => $tokenEncode\n ],200);\n var_dump('Login correcto');\n }\n return response()->json([\n \"error\" => \"Usuario incorrecto\"\n ],401);\n }", "public function login(){\n\t\t$post = $this->input->post(NULL, TRUE);\n\t\t\n\t\tif(isset($post['nik']) ){ \n\t\t\t$this->user_detail = $this->user_model->get_by(array('nik' => $post['nik'], 'group' => 'Admin'), 1, NULL, TRUE);\n\t\t}\n\n\t\t$this->form_validation->set_message('required', '%s kosong, tolong diisi!');\n\n\t\t$rules = $this->user_model->rules;\n\t\t$this->form_validation->set_rules($rules);\t\n\n\t\tif($this->form_validation->run() == FALSE){\t\n\t\t\t$this->site->view('login');\n }\n else{\n\t\t\t$login_data = array(\n\t\t\t\t\t'id_user' => $this->user_detail->id_user,\n\t\t\t 'nik' => $post['nik'],\t\t\n\t\t\t 'nama_user' => $this->user_detail->nama_lengkap,\n\t\t\t 'group' => $this->user_detail->group,\n\t\t\t 'email' => $this->user_detail->email,\t \n\t\t\t 'logged_in' => TRUE,\n\t\t\t 'last_login' => date('Y m d')\n\t\t\t);\t\t\t\t\t\t\n\n\t\t\t$this->session->set_userdata($login_data);\n\n\t\t\tif(isset($post['remember']) ){\n\t\t\t\t$expire = time() + (86400 * 7);\n\t\t\t\tset_cookie('nik', $post['nik'], $expire , \"/\");\n\t\t\t\tset_cookie('password', $post['password'], $expire , \"/\" );\n\t\t\t}\n\t\t\t\n\t\t\tredirect(set_url('dashboard'));\n }\n }", "public function login(){\n\t\t$this->user = $this->user->checkCredentials();\n\t\t$this->user = array_pop($this->user);\n\t\tif($this->user) {\n\t\t\t$_SESSION['id'] = $this->user['id'];\n\t\t\t$_SESSION['name'] = $this->user['name'];\n\t\t\t$_SESSION['admin'] = $this->user['admin'];\n\t\t\t$this->isAdmin();\n\t \t\theader('location: ../view/home.php');\n\t \t\texit;\n\t \t}\n\t\t$dados = array('msg' => 'Usuário ou senha incorreto!', 'type' => parent::$error);\n\t\t$_SESSION['data'] = $dados;\n\t\theader('location: ../view/login.php');\n \t\texit;\n\t}", "function login() {\n $token = $this->getchallenge();\n $curl = curl_init();\n// $accesskey = '55kt1mJbtDFpsw1t';\n// $accessKey = md5($token + $accesskey);\n// echo $token;\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://develop.datacrm.la/datacrm/pruebatecnica/webservice.php\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"operation=login&username=prueba&accessKey=\" . $token,\n CURLOPT_HTTPHEADER => array(\n \"Accept: */*\",\n \"Accept-Encoding: gzip, deflate\",\n \"Cache-Control: no-cache\",\n \"Connection: keep-alive\",\n \"Content-Length: 74\",\n \"Content-Type: application/x-www-form-urlencoded\",\n \"Host: develop.datacrm.la\",\n \"Postman-Token: 3b714da7-abbd-4fd6-8e8b-0afa4d40bde2,5bd84e36-16d2-4609-b2af-58b243590dd6\",\n \"User-Agent: PostmanRuntime/7.19.0\",\n \"cache-control: no-cache\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n $arrayJson = json_decode($response);\n// $sessionName = $arrayJson->result->sessionName;\n if ($err) {\n echo \"cURL Error #:\" . $err;\n } else {\n echo $response; \n }\n }", "public function login()\n {\n $result = [\n 'success' => true,\n 'message' => 'Login Airlock successfully.'\n ];\n $airlockUserId = 2;\n\n if (!empty(request('token'))) {\n // Eject any requests from outside on production\n if (config('app.env') !== 'local') {\n return response()->json([\n 'success' => false,\n 'message' => 'Sorry, TVQhub is not allowed any requests that not come from our side.'\n ]);\n } else {\n $token = User::find($airlockUserId)->createToken('token-airlock');\n $result['token'] = $token->plainTextToken;\n }\n } else {\n Auth::loginUsingId($airlockUserId);\n }\n\n return response()->json($result);\n }", "public function actionLogin() {\n \n }", "public function login(){\n \n $this->data[\"title_tag\"]=\"Lobster | Accounts | Login\";\n \n $this->view(\"accounts/login\",$this->data);\n }", "public function actionLogin()\n {\n \\Yii::$app->response->format = Response::FORMAT_JSON;\n\n if(Yii::$app->request->isPost) {\n\n $model = new LoginForm();\n\n\n if ($model->load(Yii::$app->getRequest()->getBodyParams(), '') && $model->login()) {\n\n return ['status'=> 'success', 'access_token' => Yii::$app->user->identity->getAuthKey()];\n } else {\n\n return ['status' => 'error', 'message' => 'Wrong username or password'];;\n }\n\n }\n\n\n return ['status' => 'wrong', 'message' => 'Wrong HTTP method, POST needed'];\n }", "public function login() {\r\n if (!empty($_POST)) {\r\n $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);\r\n $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\r\n\r\n $hash = hash('sha512', $password . Configuration::USER_SALT);\r\n unset($password);\r\n\r\n $user = UserModel::getByUsernameAndPasswordHash($username, $hash);\r\n unset($hash);\r\n\r\n if ($user) {\r\n Session::set('user_id', $user->user_id);\r\n Session::set('username', $username);\r\n Session::set('ip', filter_input(INPUT_SERVER, 'REMOTE_ADDR'));\r\n Session::set('ua', filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_STRING));\r\n\r\n Misc::redirect('');\r\n } else {\r\n $this->set('message', 'Nisu dobri login parametri.');\r\n sleep(1);\r\n }\r\n }\r\n }", "public function login()\n {\n $recaptchaSiteKey = request('recaptchaToken');\n if (trim($recaptchaSiteKey)) {\n $recaptchaSecret = \"6LdLMzgUAAAAAEs_42BvtJiTWpGOYw0L1UmhsJDa\";\n $apiCall = \"https://www.google.com/recaptcha/api/siteverify?secret=$recaptchaSecret&response=$recaptchaSiteKey\";\n $response = file_get_contents($apiCall);\n $responseKeys = json_decode($response, true);\n if(intval($responseKeys[\"success\"]) !== 1) {\n return response()->json(['error' => 'Recaptcha no valido'], 401);\n }\n }\n\n $credentials = request(['email', 'password']);\n\n if (! $token = auth('api')->attempt($credentials)) {\n return response()->json(['error' => 'Email o contraseña incorrectas'], 401);\n }\n\n return $this->respondWithToken($token);\n }", "public function login(Request $request){\n //membuat validasi untuk emal dan password\n try{\n $request->validate([\n 'email'=>'email|required',\n 'password'=>'required'\n ]);\n\n //untuk mengetahui apakah password dan email benar atau salah dengan di tampung di variable $credentials\n $credentials=request(['email','password']);\n //jika emailnya salah akan dijalankan yang di bawah berikut ini dan akan di kembalikan \n if(!Auth::attempt($credentials)){\n return ResponseFormatter::error([\n 'message'=>'Unauthorized' \n ], 'Authentication Failed', 500);\n }\n //jika emailnya benar akna dijalankan variable tersebut \n $user=User::where('email', $request->email)->first();\n\n //pengecekan apakah passwordnya sesuai atau tidak\n if(!Hash::check($request->password, $user->password,[])){\n //akan masuk ke catca jika tidak berhasil\n throw new \\Exception('invalid credentials');\n }\n //jika berhasil maka akan di jalankan $tokenResult dan mengembalikan plainTextToken\n $tokenResult=$user->createToken('authToken')->plainTextToken;\n\n return ResponseFormatter::success([\n 'access_token'=>$tokenResult,\n 'token_type'=>'Bearer',\n 'user'=>$user\n ],'Authenticated');\n }catch(Exception $error){\n return ResponseFormatter::error([\n 'message'=>'something went erong',\n 'error'=>$error,\n ], 'Authentication Failed', 500);\n }\n }", "private function doLogin()\n {\n if (!isset($this->token)) {\n $this->createToken();\n $this->redis->set('cookie_'.$this->token, '[]');\n }\n\n $loginResponse = $this->httpRequest(\n 'POST',\n 'https://sceneaccess.eu/login',\n [\n 'form_params' => [\n 'username' => $this->username,\n 'password' => $this->password,\n 'submit' => 'come on in',\n ],\n ],\n $this->token\n );\n\n $this->getTorrentsFromHTML($loginResponse);\n }", "public function login()\n {\n $this->navegador\n ->findElement(WebDriverBy::cssSelector('.hide-on-med-and-down a[data-target=\"signinbox\"]'))\n ->click();\n // Digitar julio0001 em #signinbox input[name=\"login\"]\n $this->navegador\n ->findElement(WebDriverBy::cssSelector('#signinbox input[name=\"login\"]'))\n ->sendKeys('bruno.prado');\n // Digitar 123456 em #signinbox input[name=\"password\"]\n $this->navegador\n ->findElement(WebDriverBy::cssSelector('#signinbox input[name=\"password\"]'))\n ->sendKeys('1234');\n // Clicar em SIGN IN\n \n $this->navegador\n ->findElement(WebDriverBy::id('signinbox'))\n ->findElement(WebDriverBy::linkText('SIGN IN'))\n ->click(); \n \n }", "public function login(Request $request){\n // if (Auth::attempt(\n // [\n // 'email' => $request->input('email'),\n // 'password' => $request->input('password')\n // ], \n // $request->has('remember_me'))\n // ) {\n // return redirect()->route('index');\n // }else\n // return redirect()->route('login')->withErrors(['msg', \"L'adresse email et le mot de passe ne correspondent pas !\"]);\n\n \n if (Auth::attempt(['email' => $request->input('email'), 'password' => $request->input('password')])) { \n $oClient = DB::table('oauth_clients')->where('password_client', 1)->first();\n $data = [\n 'username' => $request->input('email'),\n 'password' => $request->input('password'),\n 'client_id' => $oClient->id,\n 'client_secret' => $oClient->secret,\n 'grant_type' => 'password',\n ];\n $request = app('request')->create('/oauth/token', 'POST', $data);\n $response = app('router')->prepareResponse($request, app()->handle($request));\n $result = json_decode((string) $response->content(), true);\n $user = Auth::user();\n if(!$user->deleted){\n $user->poste = Role::find($user->role_id) == null ? 'Poste introuvable' : Role::find($user->role_id)->intitule;\n $tabdata=array('code' => 200, 'tokens' => $result, 'user' => $user);\n return response()->json($tabdata, $this->successStatus);\n }else{\n return response()->json(['code' => 403], 200);\n }\n } \n else { \n return response()->json(['code' => 401], 200);\n }\n\n\n // return response()->json(DB::table('oauth_clients')->where('password_client', 1)->first(), 200);\n\n // if (auth()->attempt(['email' => $request->input('email'), 'password' => $request->input('password')])) {\n // $token = auth()->user()->createToken('access_token')->accessToken;\n // $user = auth()->user();\n // $user->poste = Role::find($user->role_id) == null ? 'Poste introuvable' : Role::find($user->role_id)->intitule;\n // return response()->json(['code' => 200, 'access_token' => $token, 'user' => $user], 200);\n // } else {\n // return response()->json(['code' => 401], 200);\n // }\n\n // $http = new Client(['verify' => false]);\n // $response = $http->post('http://localhost:8000/oauth/token', [\n // 'form_params' => [\n // 'username' => $request->input('email'),\n // 'password' => $request->input('password'),\n // 'client_id' => '4',\n // 'client_secret' => 'kde9SZ7Dc08NUpB6vZHR2b1HAkhE8xwiQmyPG8VL',\n // 'grant_type' => 'password',\n // 'scope' => '',\n // ],\n // ]);\n // return json_decode((string) $response->getBody(), true);\n }", "public function executeLogin()\n {\n }", "public function loginWithPassword() {\n \n // validate input\n $this->form_validation->set_rules('email', 'Email', 'required');\n $this->form_validation->set_rules('password', 'Passwort', 'required');\n $this->form_validation->set_rules('uuid', 'UUID', 'required');\n \n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n // load User\n $this->loadUser();\n\t\t\t\n // verify password\n\t\tif (! $this->verify_password()) {\n\t\t\t$this->error(404, 'Verification error');\n\t\t}\n\t\t\n \tif ($this->user_model->getValue('confirmed') == 0) {\n \t\t$this->sendConfirmationMail($this->input->post('email'));\n \t\t$this->error(206, 'Please confirm the account');\n \t}\t\t\n\t\t\n\t\t// refresh token\n\t\t$refresh_token = $this->generateToken();\n\t\t$this->user_model->setValue('refresh_token', $refresh_token);\n\t\t\n\t\t/*\n\t\tIf logging in from a new device for the first time, loadUser will set uuid to null,\n\t\tas there is no entry for the uuid in the db.\n\t\t*/\n\t\tif ($this->user_model->getValue('uuid') == null) {\n\t\t\t$this->user_model->setValue('uuid', $this->input->post('uuid'));\n\t\t\tif (! $this->user_model->insertToken()) {\n\t\t\t\t$this->error(400, 'Error while creating token');\n\t\t\t}\n\t\t} else {\n\t\t\tif (! $this->user_model->updateToken()) {\n\t\t\t\t$this->error(400, 'Error while creating token');\n\t\t\t}\n\t\t}\n\n\t\t// save userid into session and send token\n\t\t$this->session->userid = $this->user_model->getValue('id');\n\t\t$data['refresh_token'] = $refresh_token;\n\t\t$this->response($data);\n }", "public function login() {\n $this->db->sql = 'SELECT * FROM '.$this->db->dbTbl['users'].' WHERE username = :username LIMIT 1';\n\n $user = $this->db->fetch(array(\n ':username' => $this->getData('un')\n ));\n\n if($user['hash'] === $this->hashPw($user['salt'], $this->getData('pw'))) {\n $this->sessionId = md5($user['id']);\n $_SESSION['user'] = $user['username'];\n $_SESSION['valid'] = true;\n $this->output = array(\n 'success' => true,\n 'sKey' => $this->sessionId\n );\n } else {\n $this->logout();\n $this->output = array(\n 'success' => false,\n 'key' => 'WfzBq'\n );\n }\n\n $this->renderOutput();\n }", "function login() {\n\t\t$this->getModule('Laravel4')->seeCurrentUrlEquals('/libraries/login');\n\t\t$this->getModule('Laravel4')->fillField('Bibliotek', 'Eksempelbiblioteket');\n\t\t$this->getModule('Laravel4')->fillField('Passord', 'admin');\n\t\t$this->getModule('Laravel4')->click('Logg inn');\n }", "public function login()\n {\n $response = $this->response();\n $config = [\n ['field' => 'username', 'label' => '', 'rules' => 'trim|required|min_length[4]|max_length[100]|valid_email'],\n ['field' => 'password', 'label' => '', 'rules' => 'trim|required|min_length[8]|max_length[50]'],\n ['field' => 'keepmeconnected', 'label' => '', 'rules' => 'trim|integer'],\n ];\n $this->form_validation->set_rules($config);\n if ($this->form_validation->run() === false) {\n $response[\"errors\"] = $this->form_validation->error_array();\n $this->output->set_output(json_encode($response));\n return false;\n }\n $redirect = false;\n $username = $this->input->post('username');\n $password = $this->input->post('password');\n $keepmeconnected = $this->input->post('keepmeconnected');\n\n $oaut2auth = $this->oauth_server->user_credentials(true);\n if ($oaut2auth->getStatusCode() == 200 && $this->oauth_web->login($username, $password, $oaut2auth->getParameters(), $keepmeconnected == true)) {\n $response = array_merge($response, $oaut2auth->getParameters());\n // if success\n $response[\"msg\"] = \"Successful\";\n $response[\"status\"] = true;\n $response[\"redirect\"] = site_url();\n } else {\n $response[\"errors\"][\"username\"] = $this->lang->line(\"bad_user_pass_combinaison\");\n }\n $this->output->set_output(json_encode($response));\n }", "public function loginTraitement(){\n\n $identifiant = $this->verifierSaisie(\"identifiant\");\n $password = $this->verifierSaisie(\"password\");\n\n //securite\n if (($identifiant != \"\") && ($password != \"\")){\n\n //on crée un objet de la classe \\W\\Security\\AuthentificationModel\n //ce qui nous permet d'utiliser la methode isValidLoginInfo\n $objetAuthentificationModel = new \\W\\Security\\AuthentificationModel;\n\n $idUser = $objetAuthentificationModel->isValidLoginInfo($identifiant, $password);\n\n if($idUser > 0){\n\n // recuperer les infos de l'utilisateur\n //requete base de donnée pour les recuperer\n //je crée un objet de la classe \\W\\Model\\UsersModel\n $objetUsersModel = new \\W\\Model\\UsersModel;\n // je retrouve les infos de la ligne grace à la colonne ID\n // La classe UsersModel herite de la classe Model je peu donc faire un find pour recupeerr les infos\n $tabUser = $objetUsersModel->find($idUser);\n\n // Je vais ajouter des infos dans la session\n $objetAuthentificationModel->logUserIn($tabUser);\n\n // recuperer l'username\n $username = $tabUser[\"username\"];\n\n\n $GLOBALS[\"loginRetour\"] = \"Bienvenue $username\";\n\n $this->redirectToRoute(\"admin_accueil\");\n }\n else{\n $GLOBALS[\"loginRetour\"] = \"Identifiant incorrects \";\n }\n }else{\n\n $GLOBALS[\"loginRetour\"] = \"Identifiant incorrects \";\n }\n }", "public function login() {\r\n $email = filter_input(INPUT_POST, \"email\");\r\n $password = filter_input(INPUT_POST, \"p\");\r\n\r\n if (isset($email, $password) && $email !== false && $password !== false) {\r\n\r\n if ($this->auth->login($email, $password)) {\r\n echo json_encode(\"ok\");\r\n return true;\r\n }\r\n }\r\n echo json_encode(\"zle prihlasovacie udaje\");\r\n return false;\r\n }", "public function userLogin(Request $request){\n if(Auth::attempt(['email' => request('email'), 'password' => request('password')])){\n $content = $this->generateToken($request,'password');\n $result = json_decode($content, 1);\n return $this->sendResponse($result, 'User loggedin successfully.');\n }\n else{\n return response()->json(['error'=>'Unauthorised'], 401);\n }\n }", "private function getoken()\n {\n $data=[\n \"username\"=> $this->chronos_user,\n \"password\"=> $this->chronos_password\n ];\n $client = $this->httpClientFactory->create();\n $client->setUri($this->chronos_url.'login/');\n $client->setMethod(\\Zend_Http_Client::POST);\n $client->setHeaders(['Content-Type: application/json', 'Accept: application/json']);\n $client->setRawData(json_encode($data));\n try {\n $response = $client->request();\n $body = $response->getBody();\n $string = json_decode(json_encode($body),true);\n $token_data=json_decode($string);\n if (property_exists($token_data,'non_field_errors')) {\n return false;\n }else{\n return $token_data->token;\n }\n } catch (\\Zend_Http_Client_Exception $e) {\n $this->logger->addInfo('Chronos Product save helper', [\"error\"=>$e->getMessage()]);\n return false;\n }\n }", "public function login(Request $request){\n $credentials = $request->only('cpf_cnpj', 'password');\n $token = null;\n try {\n if (!$token = JWTAuth::attempt($credentials)) {\n return response()->json(['login_ou_senha_invalido'], 422);\n }\n } catch (JWTAuthException $e) {\n return response()->json(['falha_ao_criar_token'], 500);\n }\n return response()->json(compact('token'));\n }", "public function login(){\n\n $this->checkOptionsAndEnableCors();\n\n $email = $this->input->post('email');\n $password = $this->input->post('password');\n $user = $this->repository->findByEmailAndPassword($email, $password);\n\n if($user){\n echo json_encode($user);\n } else {\n http_response_code(401);\n }\n }", "public function login()\n {\n if (isset($_POST['signIn'])) {\n $userExist = $this->checkIfUserExist($_POST['login']);\n var_dump($userExist);\n \n if ($userExist === false) {\n header('Location: auth&alert=NotUser');\n exit();\n } else {\n $authUser = $this->usersManager->getAuthUser($_POST['login']);\n if (password_verify($_POST['password'], $authUser[0]->userPassword())) {\n $this->usersManager->setLastConnexionUser($authUser[0]->userId());\n $this->openSession($authUser[0]);\n } else {\n header('Location: auth&alert=Login');\n exit();\n }\n }\n } else {\n throw new Exception($this->datasError);\n }\n }", "public function login($data)\n {\n $data['access_level'] = 2;\n $time = microtime();\n $key = Config::get('app.key');\n \n //these are the columns selected\n $columns = ['*'];\n\n $login_with = isset($data['use']) ? $data['use'] : 'email';\n\n if($this->validation->isValidForLogin($data)) {\n \n //$user = $this->authRepository->findByEmail($data, $columns);\n $user = $this->authRepository->findByUsername($data, $columns);\n\n\n if( empty($user) ) {\n return ['valid'=>false,'error'=>'Invalid Email or Password.'];\n }\n\n $user_id = $user->id;\n\n if( $this->hasher->check($data['password'], $user->getAuthPassword()) ) {\n\n $token = base64_encode((\"$time-$user_id-$key\") );\n\n\n $event_data = [\n 'user_id' => $user_id,\n 'api_token' => $token,\n 'expired_at' => Carbon::now()->addDays(Config::get('app.expiration')),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ];\n\n //fire the event \"auth.login\" this will register the API token details\n Event::fire('auth.login', [$event_data]);\n $this->authRepository->update(['status' => 1], $user_id);\n return ['valid' => true, 'token' => $token];\n } else {\n return ['valid'=>false,'error'=>'Invalid Email or Password.'];\n }\n\n } else {\n $errors = $this->validation->errors()->first();\n return ['valid'=>false,'error'=>$errors];\n }\n\n\n \n }", "public function validateLogin_post() {\n $params = $this->_args; //get POST params\n log_message('debug', 'validate login: params: ' . print_r($params, true));\n \n $id = $params['_id'];\n $token = $params['token'];\n try {\n $user = new User($id);\n } catch(Exception $e) {\n //INVALID TOKEN\n $this->response(null, 401);\n }\n \n $storedToken = $user->getLoginToken();\n if ($storedToken == $token) {\n //VALID TOKEN\n $this->response(null, 204);\n }\n \n //INVALID TOKEN\n $this->response(null, 401);\n }", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "public function login()\n {\n// в качестве проверемого именпи можно использовать name или email\n $credentials = request(['email', 'password']);\n\n if (! $token = auth()->attempt($credentials)) {\n return response()->json(['error' => 'Unauthorized'], 401);\n }\n\n $this->setBindExchangeRabbitMQ($credentials['email'], 'bind');\n return $this->respondWithToken($token);\n }", "private function _login() {\n if( !$this->_connection->getCookieJar()->getCookie( $this->_baseUrl,\n 'auth_tkt', Zend_Http_CookieJar::COOKIE_OBJECT ) ) {\n $this->_connection->setUri( $this->_baseUrl . self::URL_LOGIN );\n $this->_connection->setParameterPost( array(\n 'login_username' => $this->_username,\n 'login_password' => $this->_password,\n 'back' => $this->_baseUrl,\n 'login' => 'Log In' ) );\n $this->_doRequest( Zend_Http_Client::POST );\n if( !$this->_connection->getCookieJar()->getCookie( $this->_baseUrl,\n 'auth_tkt', Zend_Http_CookieJar::COOKIE_OBJECT ) ) {\n throw new Opsview_Remote_Exception( 'Login failed for unknown reason' );\n }\n }\n }", "public function token()\n {\n if( !isset( $this->config['oauth_id'] ) || !isset( $this->config['oauth_secret'] ) )\n $this->redirect( 'oauth' );\n\n // Skip if we're already set up\n if( isset( $this->config['oauth_id'] ) && isset( $this->config['oauth_secret'] ) && isset( $this->config['oauth_token'] ) )\n $this->redirect( '' );\n \n \n $this->url = $_SERVER['HTTP_HOST'].$this->baseURL;\n }", "public function login()\n\t{\n\n\t\tif ( ( $this->get_access_key() === null || $this->get_access_secret() === null ) )\n\t\t{\n echo 'case 1';\n $oauth = new \\OAuth( $this->tokens['consumer_key'], $this->tokens['consumer_secret'] );\n\n $request_token_info = $oauth->getRequestToken( $this->request_token_url, $this->get_callback() );\n\n if ($request_token_info)\n {\n\n $this->set_request_tokens( $request_token_info );\n }\n\n // Now we have the temp credentials, let's get the real ones.\n\n // Now let's get the OAuth token\n\t\t\t\\Response::redirect( $this->get_auth_url() );\n return;\n\t\t}\n\n\t\treturn $this->check_login();\n\t}", "public function login()\n {\n $authorized = $this->authorize( $_POST );\n if( !empty( $authorized ) && $authorized !== false ){\n $this->register_login_datetime( $authorized );\n ( new Events() )->trigger( 1, true );\n } else {\n ( new Events() )->trigger( 2, true );\n }\n }", "public function loginWithRefreshToken() {\n $this->form_validation->set_rules('email', 'Email', 'required');\n $this->form_validation->set_rules('refresh_token', 'Token', 'required');\n $this->form_validation->set_rules('uuid', 'UUID', 'required');\n \n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n $this->loadUser();\n \n // verify token\n if ($this->user_model->getValue('refresh_token') != $this->input->post('refresh_token')) {\n \tlog_message('debug', 'token provided: ' . $this->input->post('refresh_token') . ' local: ' . $this->user_model->getValue('refresh_token'));\n \t$this->error(404, 'Verification error');\n }\n \n \tif ($this->user_model->getValue('confirmed') == 0) {\n \t\t$this->error(206, 'Please confirm the account');\n \t}\n \n\t\t// refresh token\n\t\t$refresh_token = $this->generateToken();\n\t\t$this->user_model->setValue('refresh_token', $refresh_token);\n\t\t\n\t\t// update refresh token\n\t\tif (! $this->user_model->updateToken($this->input->post('refresh_token'))) {\n\t\t\t$this->error(400, 'Error while creating token');\n\t\t}\n\n\t\t// save userid into session and send token\n\t\t$this->session->userid = $this->user_model->getValue('id');\n\t\t$data['refresh_token'] = $refresh_token;\n\t\t$this->response($data);\n }", "function login();", "function loggedin_data()\n {\n\n\n try {\n\n if (isset($_REQUEST['AuthToken'])) {\n $AuthToken = $_REQUEST['AuthToken'];\n } else {\n $AuthToken = '';\n }\n \n $masterloging = DB::table('master_token')->select('master.id', 'master.fname', 'master.lname', 'master.email', 'master_token.token', 'master_token.expires_at')->join(\"master\", \"master.id\", '=', 'master_token.master_id')->where('token', $AuthToken)->where('expires_at', '>', date('Y-m-d H:i:s'))->first();\n $setting = DB::table('setting')->first();\n\n if (isset($masterloging->id)) {\n return response([\n 'message' => \"Successfully Login\",\n 'token' => $masterloging->token,\n 'user' => $masterloging,\n 'setting' => $setting,\n 'expires_at' => $masterloging->expires_at,\n 'server_time_at_now' => date('Y-m-d H:i:s'),\n ], 200);\n } else {\n return response([\n 'message' => \"Token Expired\",\n 'status' => 'TokenExpired',\n 'server_time_at_now' => date('Y-m-d H:i:s'),\n\n ], 400);\n }\n } catch (Exception $e) {\n return response([\n 'message' => $e->getMessage(),\n 'ball' => 'chater problem'\n ], 400);\n }\n }", "public function login_post()\n\t{\n\t\t$name = $this->post('username',true);\n $pass = $this->post('password',true);\n\n $user = $this->db->get_where('user',['username' =>$name])->row_array();\n\n if ($user) \n {\n if (password_verify($pass,$user['password'])) \n {\n $this->response([\n 'error' => false,\n 'message' => 'Login successfull',\n 'user' => $user\n ],200);\n }\n else\n {\n $this->response([\n 'error' => true,\n 'message' => 'Password salah'\n ],200);\n }\n }\n else\n {\n $this->response([\n\n 'error'=>true,\n 'message'=>\"Username dan Password salah\"\n ],200);\n }\n\t}", "public function login()\n {\n request()->validate([\n 'email' => 'required',\n 'password' => 'required',\n ]);\n $credentials = array(\n 'email' => request('email'),\n 'password' => request('password'),\n // 'status' => 'active'\n );\n $token = auth('api')->attempt($credentials);\n if (! $token) {\n return response()->json(['error' => 'Unauthorized','token_res' => 'false'], 401);\n }\n $user=Customer::where('email',request('email'))->first();\n $u_id=$user->cust_id;\n // dd($u_id);\n return $this->respondWithToken($token,$u_id);\n }", "public static function login()\n {\n $email = $_POST['email'] ?? '';\n $password = $_POST['password'] ?? '';\n\n // sanitize data\n $data = [\n 'email' => $email,\n 'password' => $password\n ];\n\n $filters = [\n 'email' => 'trim|escape|lowercase',\n 'password' => 'trim'\n ];\n\n $sanitizer = new Sanitizer($data, $filters);\n $sanitized = $sanitizer->sanitize();\n $email = $sanitized['email'];\n $password = $sanitized['password'];\n \n // get the user data from the database\n $conn = Database::connect();\n\n $query = \"SELECT id, password FROM users WHERE email = '$email'\";\n $stmt = $conn->prepare($query);\n $stmt->execute();\n\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $response = $stmt->fetchAll();\n\n $dbPasswordHash = $response[0]['password'];\n\n // compare db password hash with the submitted password\n if (Auth::verifyPassword($password, $dbPasswordHash) == true) {\n // if true,\n // prepare jwt token\n $token = Auth::encode($response[0]['id']);\n\n // return success response with jwt token\n Response::success(message: 'Login successful.', data: ['jwt-token' => $token]);\n } else {\n // else return response error\n Response::error(message: 'Login failed. Please try again.');\n }\n }", "public function login()\n {\n $this->vista->index();\n }", "public function authenticate($token);", "public function postLogin()\n {\n $data = [\n 'username' => Input::get('username'),\n 'password' => Input::get('password')\n ];\n \n if (Auth::attempt($data)) // Como segundo parámetro pasámos el checkbox para sabes si queremos recordar la contraseña\n {\n // Si nuestros datos son correctos mostramos la página de inicio\n return Redirect::intended('/cbtis');\n }\n // En caso de que la autenticación haya fallado manda un mensaje al formulario de login y también regresamos los valores enviados con withInput().\n return Redirect::to('/')\n ->with('mensaje_error', 'Tus datos son incorrectos')\n ->withInput();\n }", "function login() {\n /**\n * This array will hold the errors we found\n */\n $errors = [];\n\n /**\n * Check whether a POST request was made\n * If a POST request was made, we can authorize and authenticate the user\n */\n if($_POST) {\n /**\n * Decode the received data to associative array\n */\n $data = json_decode($_POST[\"data\"], true);\n\n /**\n * Check whether user name and password were inputed\n */\n if(!$data[\"userName\"]) {\n $errors[] = \"Моля, въведете потребителско име.\";\n }\n\n if(!$data[\"password\"]) {\n $errors[] = \"Моля, въведете парола.\";\n }\n\n /** \n * If the user name and password were inputed we can validate them\n */\n if($data[\"userName\"] && $data[\"password\"]) {\n $user = new User($data[\"userName\"], $data[\"password\"]);\n $isValid = $user->isValid();\n\n /**\n * If the inputed user name and password were valid, we can store the to the session\n */\n if($isValid[\"success\"]){\n $_SESSION[\"userName\"] = $user->getUsername();\n $_SESSION[\"password\"] = $user->getPassword();\n } else {\n $errors[] = $isValid[\"error\"];\n }\n }\n \n $response;\n\n if($errors) {\n $response = [\"success\" => false, \"data\" => $errors];\n } else {\n $response = [\"success\" => true];\n }\n\n /**\n * Return response to the user\n */\n echo json_encode($response);\n } else {\n echo json_encode(array(\"succes\" => false, \"error\" => \"Не е изпратена правилна заявка\"));\n }\n }", "private function setToken() {\n\n /* valid register */\n $request = $this->post('/v1/register', [\n 'firstname' => 'John',\n 'lastname' => 'Doe',\n 'email' => '[email protected]',\n 'password' => 'secret',\n ]);\n\n /* valid login */\n $this->post('/v1/login', [\n 'email' => '[email protected]',\n 'password' => 'secret',\n ]);\n\n }", "public function login()\n {\n $result = $this->mylib->restlogin($this->input->post('username'), $this->input->post('password'));\n $result['isLogin'] = true;\n $this->session->set_userdata($result);\n redirect('dashboard/index');\n }", "public function doLogin()\n {\n $rules = array(\n 'email' => 'required|email',\n 'password' => 'required|alphaNum|min:3'\n );\n \n // validate inputs from the form\n $validator = Validator::make(Input::all(), $rules);\n \n // if the validator fails, redirect back to the form\n if ($validator->fails()) {\n return Redirect::to('/')\n ->withErrors($validator)\n ->withInput(Input::except('password'));\n } else {\n // create our user data for the authentication\n $userdata = array(\n 'email' => Input::get('email'),\n 'password' => Input::get('password')\n );\n \n // attempt to do the login\n $response = $this->requestLoginApi($userdata);\n\n if ($response->status == true) {\n // validation successful, save cookie!\n return Redirect::to('showsearch')\n ->withCookie(Cookie::make('accessToken', $response->data->accessToken, 60))\n ->with('message', 'Auth OK! (Token created)');\n \n } else {\n // validation fail, send back to login form\n return Redirect::to('/')\n ->withErrors(\"Invalid credentials\")\n ->withInput(Input::except('password'));\n }\n }\n }", "public function login()\n {\n $rules = ['email' => 'bail|email|required|min:2|max:60',\n 'password' => 'bail|required|min:6|max:30'];\n $validator = Validator::make(request(['email', 'password']),$rules);\n if ($validator->fails()){\n return response()->json(array(\n 'success' => false,\n 'errors' => $validator->getMessageBag()->toArray()\n\n ), 400); // 400 being the HTTP code for an invalid request.\n }\n $credentials = request(['email', 'password']);\n\n if (! $token =auth()->attempt($credentials)) {\n return response()->json(['error' => 'Unauthorized ,You need to register first'], 401);\n }\n\n $user =User::where('email','=',$credentials['email'])->first();\n if (!$user->verified){\n $v = $user->verify_token;\n $v->token=$token;\n $v->save();\n Mail::to($user->email)->send(new Verification_Token($user,$token));\n return response()->json(\"Verification Mail sent to Activate Your Account \",400);\n\n }\n\n return $this->respondWithToken($token);\n }", "public function login(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'username' => 'required|email',\n 'password' => 'required',\n ]);\n if ($validator->fails()) {\n return $this->sendError('Username dan Password tidak sesuai');\n }\n if(!Auth::attempt(['email' => $request->username, 'password' => $request->password])){\n return $this->sendError('username dan password tidak sesuai');\n }\n \n $user = Auth::user()->makeVisible('api_token');\n return $this->sendData($user);\n }" ]
[ "0.77151346", "0.7690799", "0.7525846", "0.74654305", "0.74281216", "0.7427368", "0.7408794", "0.7408794", "0.73675805", "0.73368496", "0.72624767", "0.7250791", "0.71710867", "0.7158363", "0.71438223", "0.71239537", "0.7110031", "0.7109658", "0.7084286", "0.7072495", "0.7067926", "0.70508945", "0.70481855", "0.7027377", "0.6955081", "0.69377935", "0.69377935", "0.68996036", "0.6877713", "0.6876415", "0.6876415", "0.6876415", "0.6831137", "0.68283623", "0.68081415", "0.6807327", "0.6804348", "0.67970145", "0.6796712", "0.67751306", "0.6770132", "0.6761064", "0.67501247", "0.67447484", "0.6734072", "0.67280215", "0.6714102", "0.6705931", "0.6702102", "0.670196", "0.66983265", "0.66874915", "0.66849905", "0.6676064", "0.6673582", "0.6671087", "0.66696453", "0.6668451", "0.66651946", "0.6663513", "0.66573125", "0.665673", "0.6655608", "0.6654112", "0.66514826", "0.6650723", "0.6649529", "0.6644624", "0.66329986", "0.6627042", "0.6625277", "0.6623058", "0.6619435", "0.6618577", "0.66128415", "0.66088355", "0.66046286", "0.66038066", "0.6601988", "0.65842015", "0.6581611", "0.6580138", "0.6577322", "0.6575872", "0.656826", "0.6560386", "0.65593976", "0.6558725", "0.6558311", "0.6557988", "0.6557782", "0.6555242", "0.6553775", "0.65526354", "0.65526193", "0.65497637", "0.6546861", "0.65403014", "0.65397924", "0.6539317", "0.65364915" ]
0.0
-1
test if input is submit
public function is_submit() { if( $this->taintedInputs->isAutogenerated()){ return false; } else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSubmit() {\n return Tools::isSubmit($this->key());\n }", "public function has_submit() {\n\t\treturn false;\n\t}", "public static function is_submitting(){\n\t\treturn (strcasecmp('POST', $_SERVER['REQUEST_METHOD'] ) == 0);\n\t}", "public function canSubmit(): bool\n {\n\t\treturn\n ($this instanceof InputElement && isset($this->attributes['type']) && $this->attributes['type'] === 'submit') ||\n\t\t\t$this instanceof ImageElement ||\n\t\t\t$this instanceof SubmitInputElement ||\n ($this instanceof ButtonElement && $this->attributes['type'] === 'submit');\n\t}", "public function isPostSubmit(){\n if( strtolower($this->__method) == \"post\" ){\n return true;\n }\n return false;\n }", "public function is_form_submit() {\n\n\t if (isset($_POST['foodbakery_restaurant_title'])) {\n\t\treturn true;\n\t }\n\t return false;\n\t}", "public function isSubmitted();", "public function isSubmitted()\n\t{\n\t\tif( $this->method == 'post' )\n\t\t{\n\t\t\treturn $this->request->getMethod() == 'post';\n\t\t}\n\n\t\t$arr = $this->request->getQueryString();\n\t\treturn ! empty( $arr );\n\t}", "public function formSubmitted() {\n return $_SERVER[\"REQUEST_METHOD\"] == 'POST';\n }", "function isSubmitted()\r\n\t\t{\r\n\t\t\tif( isset($_POST[$this->form_id.'-issubmitted'] ) )\r\n\t\t\t\treturn TRUE;\r\n\t\t\telse\r\n\t\t\t\treturn FALSE;\r\n\r\n\t\t}", "function check_submit_form()\n {\n }", "function form_submitted()\n{\n return isset($_POST['Submit']);\n}", "function isFormSubmitted($submitButtonParamName) {\n $requestService = RequestService::instance();\n if ($requestService->getParam($submitButtonParamName)) {\n return TRUE;\n }\n\n return FALSE;\n}", "public function isSubmittedWith( $key )\n {\n return $this->request->getFormField( $key . 'Submit' ) != null;\n }", "public function isPosted()\n\t{\n\t\treturn (! empty($_POST['change_password']));\n\t}", "function formSubmitted()\n\t{\n\t\t// Do we have a form name? If so, if we have this form name, then this\n\t\t// particular form has been submitted.\n\t\tif ($this->formName) {\n\t\t\treturn (isset($_POST['update']) && $_POST['update'] == $this->formName);\t\n\t\t} \n\t\t// No form name, just detect our hidden field.\n\t\telse {\n\t\t\treturn (isset($_POST['update']));\n\t\t}\n\t}", "public function isSubmitted()\n\t{\n\t\tif ($this->http_method == 'get') {\n\t\t\t// GET form is always submitted\n\t\t\treturn TRUE;\n\t\t} else if (isset($this->raw_input['__'])) {\n\t\t\t$__ = $this->raw_input['__'];\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t\tforeach ((array) $__ as $token => $x) {\n\t\t\t$t = static::validateFormToken($token, $this->id);\n\t\t\tif ($t !== FALSE) {\n\t\t\t\t// Submitted\n\t\t\t\tif ($this->form_ttl > 0 && time() - $t > $this->form_ttl) {\n\t\t\t\t\t$this->form_errors[self::E_FORM_EXPIRED] = array(\n\t\t\t\t\t\t'message' => _('The form has expired, please check entered data and submit it again.')\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\treturn FALSE;\n\t}", "static function is_button( $element ) {\n\t\treturn preg_match( '/^button|submit$/', $element['#type'] );\n\t}", "public function isPost()\n {\n $request = $this->getRequest();\n return $request->isPost();\n }", "public static function isPosted()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'POST') {\n return true;\n } else {\n return false;\n }\n }", "function isSubmittedBy();", "public function isPost();", "public function isSubmitted() {\n return $this->submitted;\n }", "public function isPost()\n {\n return $this->getRequestMethod() === 'POST';\n }", "public function isPost() {\n\t\treturn (isset($_SERVER['REQUEST_METHOD']) AND $_SERVER['REQUEST_METHOD']=='POST');\n\t}", "public static function isPost()\n {\n return !empty($_POST);\n }", "public function isPost() {\n return $this->method == self::METHOD_POST;\n }", "function Match($Type , $Var)\n{\n if($Type == \"SUBMIT\")\n {\n if($Var == \"Submit\")\n return true ;\n }\n\n\n return false ;\n}", "public static function is_postback() {\n return (strtolower($_SERVER['REQUEST_METHOD']) == 'post');\n }", "public function isPost()\n {\n return ( mb_strtoupper($_SERVER['REQUEST_METHOD']) === 'POST' );\n }", "public function IsSubmitted() {\n\n if ($this->HttpValues === null) {\n // HTTP submision's data are not imported? import them now from Request service.\n $this->SetHttpValues();\n }\n return isset($this->HttpValues['_FormName'])\n && $this->HttpValues['_FormName'] === $this->Name;\n }", "public function isPost()\n {\n return (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') ? true : false;\n }", "public static function renderSubmit();", "function submit()\n {\n }", "function submit()\n {\n }", "function submit()\n {\n }", "public function isPost()\n {\n return ($this->_array['method'] == \"POST\");\n }", "public function isSubmitted() {\n return $this->submitted;\n }", "public function isPost() {\n return $this->method == 'POST';\n }", "public function isPost()\n {\n return (strtoupper($this->method) === self::METHOD_POST);\n }", "public function isPostRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST' );\r\n }", "public function post()\n {\n return count($_POST) > 0;\n }", "public function isPost()\n {\n return $this->method === self::METHOD_POST;\n }", "public function isSubmitted()\n {\n return $this->isSubmitted;\n }", "public function isSubmitted()\n {\n return $this->isSubmitted;\n }", "public static function posted() {\n\t\treturn isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST';\n\t}", "public function is_post() {\n return $this->method == 'post';\n }", "public function isPost(): bool {}", "function isPost()\n\t{\n\t\tif(strtolower($_SERVER['REQUEST_METHOD']) == \"post\")\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public function isPost()\n {\n if ($this->getRequestMethod() === 'POST') {\n return true;\n }\n\n return false;\n }", "public function checkSubmitStep($h)\n {\n // get functions\n $funcs = new SubmitFunctions();\n\n switch ($h->pageName)\n {\n // SUBMIT STEP 1\n case 'submit':\n case 'submit1':\n // set properties\n $h->pageName = 'submit1';\n $h->pageType = 'submit';\n $h->pageTitle = $h->lang[\"submit_step1\"];\n $this->doSubmit1($h, $funcs);\n break;\n \n // SUBMIT STEP 2 \n case 'submit2':\n // set properties\n $h->pageType = 'submit';\n $h->pageTitle = $h->lang[\"submit_step2\"];\n $this->doSubmit2($h, $funcs);\n break;\n \n // SUBMIT STEP 3\n case 'submit3':\n $h->pageType = 'submit';\n $h->pageTitle = $h->lang[\"submit_step3\"];\n $this->doSubmit3($h, $funcs);\n break;\n \n // SUBMIT CONFIRM\n case 'submit_confirm':\n $this->doSubmitConfirm($h, $funcs);\n break;\n \n // EDIT POST (after submission)\n case 'edit_post':\n $h->pageType = 'submit';\n $h->pageTitle = $h->lang[\"submit_edit_title\"];\n $this->doSubmitEdit($h, $funcs);\n break;\n }\n }", "function isPostRequest() {\n\n return(filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST');\n\n }", "public function submit()\n\t{\n\t\t$error = $this->validate();\n\n\t\tif (sizeof($error))\n\t\t{\n\t\t\treturn $error;\n\t\t}\n\n\t\tif (!$this->post_id)\n\t\t{\n\t\t\t$this->post();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->edit();\n\t\t}\n\n\t\treturn true;\n\t}", "public function isPost()\n {\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n return true;\n }\n\n return false;\n }", "function is_post() {\n\treturn $_SERVER['REQUEST_METHOD'] == 'POST';\n}", "public function isPost() {\n return strtoupper($this->requestMethod) == \"POST\";\n }", "public function isPost() {\r\n return isset($_POST) && count($_POST) > 0;\r\n }", "private function doSomethingIfSubmit($model, $request)\n {\n if ($request->submitted === true) {\n\n }\n }", "public function isPost(): bool {\n return $this->method === self::POST;\n }", "function isPostBack(){\n return ($_SERVER['REQUEST_METHOD'] == 'POST');\n}", "function is_post()\n {\n\t \n return $_SERVER['REQUEST_METHOD'] == 'POST';\n }", "public static function isPost()\n {\n return !empty($_POST) && isset($_POST);\n }", "function isPostRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST' );\r\n}", "function isPostRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST' );\r\n}", "function isPostRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST' );\r\n}", "public function isPost(): bool \r\n {\r\n return $this -> method() === 'POST' ? true : false;\r\n }", "public function is_empty()\r\n {\r\n if( $this->is_submit() && ($this->taintedInputs->length()=== 0))\r\n return true; \r\n else\r\n return false;\r\n }", "public function isPostLeeg()\n {\n return empty($_POST);\n }", "public function isPost()\n {\n return $this->getMethod() == 'POST';\n }", "public function isPost()\n {\n return $this->getMethod() === self::METHOD_POST;\n }", "public static function isPost()\n {\n return $_SERVER['REQUEST_METHOD'] === 'POST';\n }", "public function isPost(): bool\n {\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n return true;\n }\n\n return false;\n }", "public function isPost() : bool {\n return 'POST' === $_SERVER['REQUEST_METHOD'];\n }", "function FormPosted()\n{\n //en return true of false\n\n}", "public function isPost()\n {\n return $this->isMethod('POST');\n }", "public function isPost()\n {\n return $this->isMethod('POST');\n }", "public function isPost(): bool\n {\n return $this->getMethod() === self::METHOD_POST;\n }", "private function _hasPostContents($input)\n {\n return isset($_FILES[$input]) || isset($_POST[$input]);\n }", "public function isPost()\n\t{\n\t\treturn $this->httpMethod() == self::MethodPost;\n\t}", "public function isSubmitted(&$reason = null)\n {\n $reason = '';\n\n // if we did not yet detect before if this field was submitted, then analyze the submitted values.\n if ($this->submitted === null) {\n $this->submitted = true;\n\n // first check if the request method is the same..\n if (empty($_SERVER['REQUEST_METHOD'])) {\n $this->submitted = false;\n $reason = 'No request method is known (should be GET or POST)';\n } elseif ($this->getMethod() == Form::METHOD_GET && $_SERVER['REQUEST_METHOD'] != 'GET') {\n $reason = 'Request method is incorrect (should be GET).';\n $this->submitted = false;\n } elseif ($this->getMethod() == Form::METHOD_POST && $_SERVER['REQUEST_METHOD'] != 'POST') {\n $reason = 'Request method is incorrect (should be POST).';\n $this->submitted = false;\n }\n\n $list = ($this->getMethod() == Form::METHOD_GET ? $_GET : $_POST);\n\n // Get our number of buttons in the form.\n // If there are multiple buttons, then the form should accept submissions which does not include\n // the button, but then we expect only 1 button (we ignore disabled buttons and buttons without a name)\n $buttonCount = 0;\n foreach ($this->fields as $field) {\n if ($field instanceof AbstractFormButton) {\n if (!$field->isDisabled() && $field->getName()) {\n $buttonCount++;\n }\n }\n }\n\n\n // if still \"true\", check the fields\n if ($this->submitted) {\n // keep track of how many buttons we have found in our form.\n $buttonsFound = 0;\n\n foreach ($this->fields as $field) {\n // ignore disabled fields/buttons and without a name\n if ($field->isDisabled() || !$field->getName()) {\n continue;\n }\n\n $name = $field->getName();\n\n // remove possible brackets\n if (($i = strpos($name, '[')) !== false) {\n $name = substr($name, 0, $i);\n }\n\n // Upload field ?\n // Then we expect the name of the field in the $_FILES array\n if ($field instanceof UploadField) {\n if (!array_key_exists($name, $_FILES)) {\n $reason = 'Upload field \"' . $name . '\" does not exists in $_FILES array.';\n $this->submitted = false;\n }\n } // Selectfields are not in the \"_POST\" array when they are \"multiple\" selectable and\n // nothing is selected.\n elseif ($field instanceof SelectField && true) {\n if (sizeof($field->getOptions()) == 0 && !array_key_exists($name, $list)) {\n // form can still be submitted.\n // An empty select with no options is not included in the POST field\n } // If only 1 option can be selected, it should be in the submitted values!\n elseif (!$field->isMultiple() && !array_key_exists($name, $list)) {\n $reason = 'Selectfield \"' . $name . '\" does not exists in submited data array.';\n $this->submitted = false;\n }\n } // Submit button?\n // Then it should exists but only if there is just 1 button\n elseif ($field instanceof SubmitButton && true) {\n if (array_key_exists($field->getName(), $list)) {\n $buttonsFound++;\n } elseif ($buttonCount == 1) {\n $reason = sprintf(\n 'Submitbutton \"%s\" does not exists in submited data array.',\n $field->getName()\n );\n $this->submitted = false;\n }\n } // Image button? Then the name_x and name_y values should exists!\n // (but only if its the only 1 button)\n elseif ($field instanceof ImageButton && true) {\n if (array_key_exists($field->getName() . '_x', $list) &&\n array_key_exists($field->getName() . '_y', $list)\n ) {\n $buttonsFound++;\n } elseif ($buttonCount == 1) {\n $reason = sprintf(\n 'Imagebutton \"%s\" should submit a _x and _y values,' .\n 'but they are not in the data array.',\n $field->getName()\n );\n $this->submitted = false;\n }\n } // For all other fields, it should just exists in the $_POST or $_GET array.\n // If not, the form is not submitted.\n elseif (!$field instanceof CheckBox && !$field instanceof RadioButton &&\n !array_key_exists($name, $list)\n ) {\n $reason = 'Field \"' . $name . '\" does not exists in submited data array.';\n $this->submitted = false;\n }\n }\n\n // if here, and the field is still \"submitted\", then do our final button check\n if ($this->submitted && $buttonCount > 0 && $buttonsFound == 0) {\n $reason = sprintf(\n 'We have found %d buttons in the form, but we did not found any ' .\n 'of the buttons in the data array ($_GET or $_POST)',\n $buttonCount\n );\n\n $this->submitted = false;\n }\n }\n } else {\n $reason = 'The form is invalid because of a previous check which failed. We did not re-analyze the ' .\n 'submitted form. If you want this, please call clearCache() first.';\n }\n\n return $this->submitted;\n }", "public function requireFilterSubmit()\n\t{\n\t}", "function qa_is_http_post()\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\treturn $_SERVER['REQUEST_METHOD'] === 'POST' || !empty($_POST);\n}", "function isConfirmation()\n {\n if (empty($_POST)) return false;\n else return true;\n }", "public function getSubmitVar() { return $this->_submitVar; }", "public function isAction()\n {\n $args = func_get_args();\n foreach ($args as $arg)\n {\n // Check if action is set and exists\n if ($_POST['action'] == $arg || $_GET['action'] == $arg)\n {\n // quit here\n return true;\n }\n }\n\n return false;\n }", "public function isPost() {\n if($this->method === 'POST') {\n return true;\n } else {\n return false;\n }\n }", "public function submit($text);", "public function callbackSubmit()\n {\n // Get values from the submitted form\n $text = $this->form->value(\"text\");\n\n if (!$this->di->get('session')->has(\"user\")) {\n $this->form->addOutput(\"Du behöver logga in\");\n return false;\n }\n\n $user = new User($this->di->get(\"db\"));\n if ($user->controlAuthority($this->di->get('session')->get(\"user\"), $this->post->user) != true) {\n $this->form->addOutput(\"Du får inte redigera denna.\");\n return false;\n }\n\n if ($text == \"\") {\n $this->form->addOutput(\"Du skrev aldrig något. Skriv gärna något.\");\n return false;\n }\n\n $this->post->text = $text;\n $this->post->save();\n $this->form->addOutput(\"Du har uppdaterat inlägget\");\n return true;\n }", "public static function isPost() {\n\n if (empty(self::$_requestType))\n self::_initRequestType();\n\n return (self::$_requestType == 'POST');\n }", "function ajan_is_post_request() {\n\treturn (bool) ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) );\n}", "public static function isPostMethod() {\n return isset($_SERVER['REQUEST_METHOD']) && self::POST == $_SERVER['REQUEST_METHOD'];\n }", "protected function isPostRequest() {\n return $_SERVER['REQUEST_METHOD'] == 'POST';\n }", "public function testCreateSubmit()\n {\n }", "public function isPost(){\n\t\treturn (strtoupper($this->getHeader('REQUEST_METHOD'))=='POST')? true : false;\n\t}", "public function isPost()\n {\n return ($this->getMethod() == 'POST') ? true : false;\n }", "public function isPost()\n {\n return $this->getMethod() === 'POST';\n }", "public function isPost()\n {\n return $this->getMethod() === 'POST';\n }", "public function isSubmited(): bool\n {\n return (bool) $this->values();\n }", "public function check_step_submit() {\n\t\t$available_gateways = WC()->payment_gateways->get_available_payment_gateways();\n\n\t\tif ( isset( $_POST[ 'wc_gzdp_step_submit' ] ) && ! empty( $_POST[ 'wc_gzdp_step_submit' ] ) ) {\n\n\t\t\t$action = ( isset( $_POST[ 'wc_gzdp_step_refresh' ] ) ? 'refresh' : 'submit' );\n\n\t\t\tif ( $step = $this->get_step( sanitize_text_field( $_POST[ 'wc_gzdp_step_submit' ] ) ) )\n\t\t\t\tdo_action( 'woocommerce_gzdp_checkout_step_' . $step->get_id() . '_' . $action );\n\t\t}\n\t}", "public static function isPost(): bool {\r\n return static :: isMethod('post');\r\n }" ]
[ "0.769213", "0.76298267", "0.7531143", "0.7357879", "0.73345697", "0.72739327", "0.72684723", "0.693697", "0.6921913", "0.6915062", "0.682642", "0.6763867", "0.6613829", "0.6568472", "0.65449667", "0.6441842", "0.63441294", "0.6329457", "0.6314148", "0.62510103", "0.62400603", "0.62137204", "0.6160866", "0.6137477", "0.6137423", "0.61166954", "0.6104376", "0.610379", "0.6083654", "0.60798043", "0.60747313", "0.6065347", "0.60558677", "0.6047498", "0.6047498", "0.6047498", "0.6037852", "0.602963", "0.6021282", "0.6016132", "0.6012748", "0.60032845", "0.5991695", "0.59827626", "0.59827626", "0.59805894", "0.5978601", "0.5974363", "0.5966501", "0.59647024", "0.5959513", "0.5957623", "0.59550744", "0.59530467", "0.59504694", "0.595039", "0.5948618", "0.59434897", "0.59399843", "0.5934265", "0.5926823", "0.59228957", "0.5920338", "0.5920338", "0.5920338", "0.5919173", "0.5911249", "0.5907576", "0.5899178", "0.58972013", "0.58956057", "0.58800566", "0.5876963", "0.5876566", "0.58750665", "0.58750665", "0.5873628", "0.5857158", "0.58460265", "0.583133", "0.5829344", "0.58186364", "0.58149815", "0.5813161", "0.58072704", "0.5804362", "0.58037794", "0.5798745", "0.5778276", "0.575998", "0.5757711", "0.57551175", "0.5752293", "0.57522684", "0.5751919", "0.5748671", "0.5748671", "0.57410276", "0.5740276", "0.5737295" ]
0.7467477
3
test if value is submit but is empty
public function is_empty() { if( $this->is_submit() && ($this->taintedInputs->length()=== 0)) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkEmpty(){\n\t\tif(!empty($_POST)){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "function fieldsEmpty() {\n if(empty($_POST['title']) || empty($_POST['date']) || empty($_POST['location'])) {\n return true;\n } else {\n return false;\n }\n}", "function not_empty($tableau) {\n\tforeach ($tableau as $champ) {\n\t\tif(empty($_POST[$champ]) || trim($_POST[$champ])==\"\" ){\n\t\t\treturn false;\n\t\t# code.\n\t\t}\n\n\t}\n\treturn true;\n}", "function not_empty($fields = [])\r\n{\r\n if (count($fields) !=0) {\r\n foreach ($fields as $field) {\r\n if (empty($_POST [$field]) || trim($_POST[$field]) == \"\") { //trim escape all spaces. If empty : false\r\n return false;\r\n }\r\n }\r\n return true ; //fields filled\r\n }\r\n}", "function blankCheck() {\n\tfor($i = 0; $i < func_num_args(); $i++) {\n\t\tif (($_POST[func_get_arg($i)] == '') OR ($_POST[func_get_arg($i)] === 0)) {\n\t\t\tresponse(1, '必填项中含有空值');\n\t\t\texit(0);\n\t\t}\n\t}\n}", "public function has_submit() {\n\t\treturn false;\n\t}", "function filled_out($form_vars) {\n foreach ($form_vars as $key => $value) {\n if ((!isset($key)) || ($value == '')) {\n return false;\n }\n }\n return true;\n}", "function filled_out($form_vars)\r\n{\r\n foreach ($form_vars as $key => $value)\r\n {\r\n if (!isset($key) || ($value == \"\"))\r\n return true;\r\n }\r\n return true;\r\n}", "public function isPosted()\n\t{\n\t\treturn (! empty($_POST['change_password']));\n\t}", "public function is_form_submit() {\n\n\t if (isset($_POST['foodbakery_restaurant_title'])) {\n\t\treturn true;\n\t }\n\t return false;\n\t}", "public function isSubmitted()\n\t{\n\t\tif( $this->method == 'post' )\n\t\t{\n\t\t\treturn $this->request->getMethod() == 'post';\n\t\t}\n\n\t\t$arr = $this->request->getQueryString();\n\t\treturn ! empty( $arr );\n\t}", "public function isEmpty()\n {\n return $this->_value === '' || $this->_value === null;\n }", "function empty_field_check() {\n $all_full =\n isset($_POST['email']) &&\n isset($_POST['username']) &&\n isset($_POST['password']) &&\n isset($_POST['name']) &&\n isset($_POST['surname']);\n \n if(!$all_full)\n launch_error(\"Some fields are empty.\");\n}", "public function is_submit()\r\n {\r\n if( $this->taintedInputs->isAutogenerated()){\r\n return false;\r\n }\r\n else{\r\n return true;\r\n }\r\n }", "function not_empty(array $fields) { // création tableau\r\n\t\r\n\r\n\t\tif (count($fields)!=0)\t{ // verif.si il y a des elements dans le tableau\r\n\t\t\r\n\r\n\t\t\tforeach ($fields as $field) {\r\n\r\n\t\t\t\tif (empty($_POST[$field]) || trim($_POST[$field])==\"\") {\r\n\r\n\t\t\t\t\r\n\t\t\t\t\t\treturn false; // verif.que tous les champs soient remplis, sinon \"false\"\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\r\n\t\t\t}\t\r\n\r\n\r\n\t\t}", "public function testFormSubmitWithoutAnyValue()\n {\n $this->actingAs($this->user)\n ->visit('/employees/create')\n ->see('Create a new Employee')\n ->dontSee('Create a new Company')\n ->press('Create')\n ->seePageIs('/employees/create')\n ->see('The First Name field is required.')\n ->see('The Last Name field is required.');\n }", "function emptyInputSignup($gebruikersnaam, $email, $password, $passwordRepeat){\n $result = true;\n if (empty($gebruikersnaam) || empty($email) || empty($password) || empty($passwordRepeat)){\n $result = true;\n }\n else{\n $result = false;\n }\n return $result;\n}", "public function notEmpty($field) {\n\t\treturn ( ! empty($_POST[$field['name']]));\n\t}", "function emptyInputSignup($voornaam, $achternaam, $emailadres, $woonplaats, $postcode, $straatnaam, $huisnummer, $wachtwoord, $wachtwoordbevestiging) {\n\tif (empty($voornaam) || empty($achternaam) || empty($emailadres) || empty($woonplaats) || empty($postcode) || empty($straatnaam) || empty($huisnummer) || empty($wachtwoord) || empty($wachtwoordbevestiging)) {\n\t\t$result = true;\n\t} else {\n\t\t$result = false;\n\t}\n\treturn $result;\n}", "public function isPostLeeg()\n {\n return empty($_POST);\n }", "function acf_is_empty($var)\n{\n}", "function checkPOST() : bool\n {\n if (!(isset($_POST['firstName']) && isset($_POST['secondName'])))\n {\n return false; // not set\n }\n if (trim($_POST['firstName']) == '' && trim($_POST['secondName']) == '')\n {\n return false; // empty\n }\n return true;\n }", "public function isButtonValidBlankCallExpectFalse() {}", "public function isButtonValidBlankCallExpectFalse() {}", "function checkEmptyField($field) {\n\t return isset($field) && $field !== \"\" && $field !== '';\n }", "public function isButtonValidBlankCallExpectFalse() {}", "public function isButtonValidBlankCallExpectFalse() {}", "function is_blank( $value ) {\n return !isset( $value ) || trim( $value ) === '';\n}", "public static function is_empty( $field, $form_id = 0 ) {\n\n\t\tif ( empty( $_POST[ 'is_submit_' . $field->formId ] ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn $field->is_value_submission_empty( $form_id );\n\t}", "function is_blank($value) {\n return !isset($value) || trim($value) === '';\n}", "function filled($value)\n {\n return !blank($value);\n }", "function is_blank($value) {\n return !isset($value) || trim($value) === '';\n}", "function ValidRequiredPost($name) {\n return isset($_POST[$name]) && $_POST[$name] != \"\";\n}", "private function value_exists( $key ) {\n\t\treturn ! empty( $_POST[ $key ] );\n\t}", "function filled_out($form_vars) {\n\t\t// test that if each variable has a value\n\t\tforeach ($form_vars as $key => $value) {\n\t\t\tif ((!isset($key)) || ($value == '')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function req($value)\n {\n return '' != $value || empty($value);\n }", "function acf_not_empty($var)\n{\n}", "public function test_form_submit_emptyname()\n {\n Livewire::test(ConfiguratorForm::class)\n ->set(\"name\",\"\")\n ->set(\"onPullrequest\", true)\n ->call('submitForm')\n ->assertHasErrors('name');\n }", "public function validate_empty($valor)\n {\n if (isset($valor)) {\n $this->form_validation->set_message('validate_empty', 'El campo {field} es requerido.');\n return false;\n } else {\n return true;\n }\n }", "public function isSubmit() {\n return Tools::isSubmit($this->key());\n }", "function check_if_set(){\r\n if(!(isset($_POST['first_name']) && isset($_POST['last_name']) && isset($_POST['email']) && isset($_POST['headline']) && isset($_POST['summary']))){\r\n\treturn false;\r\n }\r\n else{\r\n\treturn true;\r\n }\r\n}", "public function isEmpty() {\r\n\t\treturn $this->getValue() == null || $this->getValue() == '' || $this->getValue() == 0;\r\n\t}", "public function isSubmittedWith( $key )\n {\n return $this->request->getFormField( $key . 'Submit' ) != null;\n }", "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "function filled_out($forms){\n\t\tforeach ($forms as $key => $value) {\n\t\t\tif( (!isset($key)) || ($value == '') ){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "function validate_not_empty($field_input, &$field) {\r\n if ($field_input === '') {\r\n $field['error'] = 'Laukas negali b?ti tuš?ias!';\r\n } else {\r\n return true;\r\n }\r\n}", "public function emptyForm() {\n\t\techo '<div class=\"alert fail\"><span class=\"btnclose\">&times;</span><strong>Tous les champs sont obligatoires !</strong></div>';\n\t}", "public function testSubmitSingleNonExpandedEmptyNoChoices()\n {\n $form = $this->factory->create(static::TESTED_TYPE, null, [\n 'multiple' => false,\n 'expanded' => false,\n 'choices' => [],\n ]);\n\n $form->submit('');\n\n $this->assertNull($form->getData());\n $this->assertSame('', $form->getViewData());\n $this->assertTrue($form->isSynchronized());\n }", "function form_submitted()\n{\n return isset($_POST['Submit']);\n}", "function validateFilled(string $name)\n{\n if (empty($_POST[$name])) {\n return 'Это поле должно быть заполнено';\n };\n}", "function checkContent($data) {\n /* This makes sure user just didn't type spaces in an attempt to make the form valid */\n foreach ($data as $key => $value) {\n $data[$key] = isset($value) ? trim($value) : '';\n }\n /* If there are empty field(s) then set the error array to\n * false otherwise it should be true. I know it sounds like that we should set it to true and\n * I will explain it better when we are all finished coding the validation\n * portion of the script.\n */\n if (in_array(\"\", $data, true)) {\n return FALSE;\n } else {\n return TRUE;\n }\n}", "function empty_field($field)\n{\n return empty($field);\n}", "public function isEmpty()\n {\n return '' === $this->getValue();\n }", "public function testIsInvalidEmptyPost() {\n\t\t$this->assertFalse($this->match->validate(array()));\n\t}", "public static function is_submitting(){\n\t\treturn (strcasecmp('POST', $_SERVER['REQUEST_METHOD'] ) == 0);\n\t}", "public function isSubmitted();", "function emptyInputSignup($email, $firstName, $lastName, $pwd, $pwdrepeat, $phone\n) {\n $result;\n if (empty($email) ||empty($firstName) ||empty($lastName) ||empty($pwd) ||empty($pwdrepeat)) {\n $result = true;\n } else {\n $result = false;\n }\n return $result;\n }", "protected static function isEmptyFileUpload($value) {\n return (\n isset($value['name']) && '' === $value['name'] &&\n isset($value['type']) && '' === $value['type'] &&\n isset($value['tmp_name']) && '' === $value['tmp_name'] &&\n isset($value['error']) && UPLOAD_ERR_NO_FILE === $value['error'] &&\n isset($value['size']) && 0 === $value['size']\n );\n }", "public function isButtonValidBlankCallExpectFalse()\n {\n $button = new InputButton();\n $isValid = $button->isValid();\n $this->assertFalse($isValid);\n }", "function is_empty()\n {\n }", "function formularioRelleno($numCampos){\n \n //Si la variable %_POST tiene menos de 8 campos es que el form no esta relleno\n if(count($_POST)<$numCampos){\n return false;\n }\n else{\n foreach ($_POST as $valor) {\n //Si alguno de los campos esta vacio tampoco cuenta como relleno,\n //esto es para evitar que se manden campos de texto vacios\n if (empty($valor)){\n return false;\n }\n }\n }\n \n return true;\n}", "public static function _empty($value)\n\t{\n\t\treturn (is_null($value) || empty($value) || $value == \"\");\n\t}", "function getCampo($campo)\n{\n if (!empty($_POST[$campo])) {\n return test_input($_POST[$campo]);\n }\n return \"\";\n}", "static function all_Empty()\r\n {\r\n echo PageBuilder::printError(\"Please enter valid data in all the fields, nothing can not be empty.\");\r\n }", "public function isVoid()\n {\n return empty($this->fields);\n }", "function actionfrmcheckrm($var = \"\") {\r\n //echo $_REQUEST[$var].\"$var-->$val\";\r\n if (isset($_REQUEST[$var]) && ($_REQUEST[$var] != \"\")) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}", "function isFormValid(){\n\tif(!isset($_POST['num-input'])){\n\t\treturn false;\n\t}\n\tif(!isset($_POST['job-name'])){\n\t\treturn false;\n\t}\n\treturn true;\n}", "function emptyInputRegister($fname,$lname,$contact,$uname,$pass,$pass2){\n $result = true;\n if(empty($fname) || empty($lname) || empty($contact) || empty($uname) || empty($pass) || empty($pass2)){\n $result = true;\n }else{\n $result = false;\n }\n return $result;\n}", "public static function isPost()\n {\n return !empty($_POST);\n }", "function validate_not_empty($field_input, &$field)\n{\n if (strlen($field_input) == 0) {\n $field['error'] = 'field is empty';\n return false;\n }\n return true;\n}", "function formulaire_rempli(){\n\t\treturn isset($_POST['titre'], $_POST['contenu']);\n\t}", "function isConfirmation()\n {\n if (empty($_POST)) return false;\n else return true;\n }", "public function is_empty_attribute_value( $value ) {\n\t\treturn ! isset( $value ) || '' === $value;\n\t}", "public function validateEmpty($data)\n {\n return true;\n }", "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "public function testIsEmpty()\n {\n $value = new UploadValueStructure();\n $this->assertTrue($this->uut->setValue($value)->isEmpty());\n $this->assertFalse($this->uut->setValue($value->setError(UPLOAD_ERR_OK))->isEmpty());\n $this->assertFalse($this->uut->setValue($value->setError(UPLOAD_ERR_EXTENSION))->isEmpty());\n }", "function validate_empty($val) {\n\tif ($val === NULL || $val === '') {\n\t\treturn true;\n\t}\n\treturn false;\n}", "function is_blank($value) {\n\t\t\n\t\treturn empty($value) && !is_numeric($value);\n\t\t\n\t}", "function _valInput() {\r\n\t\tswitch(TRUE) {\r\n\t\t\tcase (empty($_POST['lynkvp_name'])):\r\n\t\t\t\t$this->note .= __('Please enter a Name.', $this->textdomain_name);\r\n\t\t\t\treturn FALSE; break;\r\n\t\t\tcase (empty($_FILES['lynkvp_file']['size']) && empty($_POST['lynkvp_url'])):\r\n\t\t\t\t$this->note .= __('Please choose a Video or enter an URL.', $this->textdomain_name);\r\n\t\t\t\treturn FALSE; break;\r\n\t\t\tcase (empty($_POST['lynkvp_type'])):\r\n\t\t\t\t$this->note .= __('Please choose a Video Type.', $this->textdomain_name);\r\n\t\t\t\treturn FALSE; break;\r\n\t\t\tcase (empty($_POST['lynkvp_size']) || !isset($this->videosizes[$_POST['lynkvp_size']])):\r\n\t\t\t\tif (empty($_POST['lynkvp_size']) || $_POST['lynkvp_size'] == 0) {\r\n\t\t\t\t\t$this->note .= __('Please select a Size.', $this->textdomain_name);\r\n\t\t\t\t\treturn FALSE;\r\n\t\t\t\t} elseif (preg_match('/[^\\d]/', $_POST['lynkvp_width'])) {\r\n\t\t\t\t\t$this->note .= __('Please enter a Width.', $this->textdomain_name);\r\n\t\t\t\t\treturn FALSE;\r\n\t\t\t\t} elseif(preg_match('/[^\\d]/', $_POST['lynkvp_height'])) {\r\n\t\t\t\t\t$this->note .= __('Please enter a Height.', $this->textdomain_name);\r\n\t\t\t\t\treturn FALSE; break;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn TRUE;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn TRUE; break;\r\n\t\t}\r\n\t}", "function is_field_empty(array $fields) {\n foreach ($fields as $key => $value) {\n $fields[$key] = isset($value) ? trim($value) : '';\n }\n /* If there is nothing a field then valid empty index is false */\n if (in_array(\"\", $fields, true)) {\n return false;\n }\n /* return array */\n return $fields;\n}", "function mwpc_check_register_input(&$errors, $value, $label) {\n if (empty($value) \n || !empty($value) \n && trim($value) == '') {\n $errors->add(\n $label . '_error', \n sprintf(\n '<strong>%s</strong>: %s', \n __('Erro', 'MWPC_DOWMAIN'), \n __('O ' . $label . ' é obrigatório.', 'MWPC_DOWMAIN')\n )\n );\n }\n}", "protected static function validate_not_empty( $value ){\n\t\treturn ( $value !== null && $value !== '' );\n\t}", "function check_submit_form()\n {\n }", "function validateForm($value) {\n\n\tif (!isset($value)) { // ISSET verifie si la value existe et n'est pas null\n\t\treturn false;\n\t}\n\n\tif (empty($value)) { // EMPTY verifie si le champs n'est pas vide\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "function emptyInputLogin($gebruikersnaam, $password){\n $result = true;\n if (empty($gebruikersnaam) || empty($password) ){\n $result = true;\n }\n else{\n $result = false;\n }\n return $result;\n}", "function _ting_boost_field_filter($element) {\n return !(empty($element['field_name']) || empty($element['field_value']));\n}", "function Validateform($email)\n{\n if ($email == null || $email == '') {\n return false;\n } else return true;\n}", "public function post()\n {\n return count($_POST) > 0;\n }", "public function testEmptyFormReturnsError()\n {\n $this->visit('/')\n ->press('Register')\n ->see('The first-name field is required')\n ->see('The last-name field is required')\n ->see('The email field is required');\n }", "private function formKeyHasValue($key, $value) {\n\t\t//'kind' radio button excluded\n\t\t//'submit' submit button excluded\n\t\t//'Token' string excluded\n\t\tif ($key != null && $value != null && $key != 'kind' && $key != 'submit' && $key != 'Token') {\n\t\t\t//second if condition asks if possible value array has any value filled\n\t\t\tif (is_array($value)) {\n\t\t\t\tforeach ($value as $val) {\n\t\t\t\t\t//is_null doesn't return TRUE for *empty* array elements from form element, use != NULL\n\t\t\t\t\tif ($val != NULL) {\n\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn FALSE;\n\t\t\t} else {\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function isSubmitted()\r\n\t\t{\r\n\t\t\tif( isset($_POST[$this->form_id.'-issubmitted'] ) )\r\n\t\t\t\treturn TRUE;\r\n\t\t\telse\r\n\t\t\t\treturn FALSE;\r\n\r\n\t\t}", "function is_empty ($subject) {\n\t\n\t\treturn !(isset($subject) && !is_null($subject) && ($subject!==''));\n\t\n\t}", "function check()\n {\n if (trim($this->monto) == '') {\n $this->setError(JText::_('Debe Ingresar Un Monto a Pagar'));\n return false;\n }\n\n return true;\n }", "function isEmpty($str = null){\n if ($str) {\n $cleanstr = trim($str);\n if (strlen($cleanstr)<=0) {\n echo \"input is Empty<br>\";\n return true;\n }else\n return false;\n}}", "static function processInput($formData) {\t \t\n\t\t\tif ($formData['textfield1'] == '' && $formData['textfield2'] == '' ) {\n\t\t\t\t#return \"Try again\"; \n\t\t\t}\n\t}", "function validate()\n {\n // @hack FIXME @todo\n return true;\n /*\n if (empty($this->POST['subject'])) {\n return false;\n }\n return true;\n */\n }", "function testInputRemplis($fichier){\n if (empty($_POST[$fichier])) {\n return \"<span class='text-danger'>\" .\"Le champ \" .$fichier. \" est vide <br>\" . \"</span>\";\n }\n}", "public static function isBlank($input)\r\n\t{\r\n\t\t$i = trim($input);\r\n\t\treturn strlen($i) == 0;\r\n\t}", "public function isPostSubmit(){\n if( strtolower($this->__method) == \"post\" ){\n return true;\n }\n return false;\n }" ]
[ "0.7227422", "0.6979103", "0.6805974", "0.6757064", "0.67430276", "0.6710216", "0.6621762", "0.66206884", "0.6590798", "0.6555877", "0.63911146", "0.6390588", "0.6387652", "0.63636065", "0.63464504", "0.63461804", "0.63356763", "0.6332535", "0.63195604", "0.6318699", "0.63169587", "0.6312553", "0.6302474", "0.6302474", "0.63003427", "0.63003427", "0.62994003", "0.6280147", "0.62656957", "0.6234561", "0.6200793", "0.6200206", "0.6181024", "0.6142761", "0.6142412", "0.6121502", "0.61184365", "0.61106604", "0.61037105", "0.6102756", "0.61015505", "0.6095814", "0.6081658", "0.6080532", "0.6080532", "0.6074856", "0.60714483", "0.60676914", "0.60672987", "0.6033324", "0.60286045", "0.6019131", "0.60167325", "0.6015354", "0.6000997", "0.5993668", "0.59832454", "0.5975453", "0.59685254", "0.59555995", "0.5952262", "0.59511757", "0.5945152", "0.59354013", "0.59348017", "0.59340954", "0.5926016", "0.5921821", "0.591956", "0.5915819", "0.59110034", "0.589063", "0.58900315", "0.58850586", "0.5884596", "0.58843136", "0.58841115", "0.5873859", "0.58683825", "0.58651537", "0.5863125", "0.58602446", "0.5840924", "0.58385843", "0.5835742", "0.5835595", "0.58083904", "0.5803027", "0.5799439", "0.57980645", "0.5792478", "0.578936", "0.57797533", "0.5772437", "0.5769986", "0.5757429", "0.57545173", "0.57534134", "0.5752889", "0.5747793" ]
0.7660282
0
Registers services on the given app. This method should only be used to configure services and parameters. It should not get services.
public function register(\Silex\Application $app) { parent::register($app); $this->registerFactory($app); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function register(Container $app);", "public function register(Application $app)\n {\n // if console register console providers\n if (php_sapi_name() === 'cli') {\n $app->register(new ConsoleProvider);\n }\n $app->register(new DoctrineOrmManagerRegistryProvider);\n }", "public function register(Container $app)\n {\n }", "public function register(App $app)\n {\n $app->router->get(\"/api/v1/cloudfront/get_config\", function (KSApp $app) {\n $sql = \"SELECT s.serviceId as sid, d.domain as dom \n FROM CloudFrontService AS s\n LEFT JOIN CloudFrontDomain AS d\n ON s.serviceId=d.serviceId \n ORDER BY s.serviceId, domain\";\n $ret = [\n \"services\" => []\n ];\n $app->db->query($sql)->each(function (array $row) use (&$ret) {\n if (changed($sid = $row[\"sid\"])) {\n $s = CloudFrontService::Load($sid);\n $s->domains = [];\n $ret[\"services\"][] = $s;\n }\n\n if (changed($domain = $row[\"dom\"])) {\n $s->domains[] = $domain;\n }\n\n });\n return $ret;\n });\n }", "public function register(Application $app)\n {\n // TODO: Implement register() method.\n }", "public function register(Application $app)\n {\n $app['rest_normalizer.version'] = '0.1.0';\n $app['rest_normalizer.builder'] = $app->protect(\n function ($object = null) use ($app) {\n $version = $app['rest_normalizer.version'];\n $request = $app['request'];\n /** @var $request \\Symfony\\Component\\HttpFoundation\\Request */\n\n $builder = ResponseBuilder::create(\n $version,\n HttpMethod::valueOf($request->getMethod()),\n $object\n );\n\n foreach ($request->request->all() as $key => $value) {\n $parameter = Parameter::create($key, $value);\n $builder->addParameter($parameter);\n }\n\n return $builder;\n }\n );\n }", "public function registerServices()\n {\n $this->app->bind('helpers.lib', function($app) {\n return new LibHelper;\n });\n $this->app->bind('helpers.theme', function($app) {\n return ThemeHelper::instance();\n });\n $this->app->bind('helpers.acf', function($app) {\n $helper = AcfHelper::instance();\n $helper->setThemeHelper($this->app['helpers.theme']);\n $helper->setLib($this->app['helpers.lib']);\n\n return $helper;\n });\n }", "protected function registerServices()\n {\n\n $di = new FactoryDefault();\n\n /**\n * Read services\n */\n include CORE_PATH . \"/config/services.php\";\n\n /**\n * Get config service for use in inline setup below\n */\n $config = $di->getConfig();\n\n\n include CORE_PATH . '/config/loader.php';\n\n \n\n $this->setDI($di);\n }", "public function register(Application $app)\n {\n parent::register($app);\n\n // override this in config to allow a different user entity class to be used.\n if (isset($app['config']['user.entity'])) {\n $app['user.entity'] = $app['config']['user.entity'];\n } else {\n $app['user.entity'] = User::class;\n }\n\n // setup security for cli commands\n if (php_sapi_name() === 'cli') {\n $app['console.configure'] = $app->extend('console.configure', function ($callbacks) {\n $callbacks[] = function (Command $command) {\n if ($command instanceof BaseCommand) {\n $command->addOption('user', 'U', InputOption::VALUE_REQUIRED, 'User ID to run command as');\n }\n };\n return $callbacks;\n });\n $app['console.prerun'] = $app->extend('console.prerun', function ($callbacks) {\n $callbacks[] = function (Command $command, InputInterface $input, OutputInterface $output) {\n if ($command instanceof BaseCommand && $input->getOption('user')) {\n $app = $command->getSilexApplication();\n /** @var EntityManagerInterface $em */\n $em = $app['orm.em'];\n $app['user'] = $em->find($app['user.entity'], $input->getOption('user'));\n }\n };\n return $callbacks;\n });\n }\n\n $app['security.firewalls'] = [];\n $app['security.access_rules'] = [];\n $app->register(new SecurityServiceProvider);\n }", "public function register(Application $app)\n {\n if (!isset($app['serializer.annotations'])) {\n throw new \\RuntimeException(\n 'The configuration service provider depends on the JmsSerializer Service Provider but the '\n . '\"serializer.annotations\" key could not be found in the container.'\n );\n }\n\n $app->extend('console',\n function (ConsoleApplication $console){\n $console->getDefinition()->addOption(\n new InputOption(\n 'config',\n 'c',\n InputOption::VALUE_OPTIONAL,\n 'Location of a custom configuration file'\n )\n );\n\n return $console;\n }\n );\n\n // Add annotations to Jms Serializer\n $annotations = $app['serializer.annotations'];\n $annotations[] = array(\n 'namespace' => 'phpDocumentor\\Configuration\\Merger\\Annotation',\n 'path' => __DIR__ . '/../../'\n );\n $app['serializer.annotations'] = $annotations;\n\n $app['config.merger'] = $app->share(\n function () {\n return new Merger(new AnnotationReader());\n }\n );\n\n $app['config.path.template'] = __DIR__ . '/Resources/phpdoc.tpl.xml';\n $app['config.path.user'] = getcwd()\n . ((file_exists(getcwd() . '/phpdoc.xml')) ? '/phpdoc.xml' : '/phpdoc.dist.xml');\n $app['config.class'] = 'phpDocumentor\\Configuration';\n\n $app['config2'] = $app->share(\n function ($app) {\n /** @var ConsoleApplication $console */\n $console = $app['console'];\n $input = new ArgvInput(null, $console->getDefinition());\n $userConfigFilePath = $input->getOption('config');\n if ($userConfigFilePath && $userConfigFilePath != 'none' && is_readable($userConfigFilePath)) {\n chdir(dirname($userConfigFilePath));\n } else {\n $userConfigFilePath = $userConfigFilePath != 'none' ? null : 'none';\n }\n\n /** @var Serializer $serializer */\n $serializer = $app['serializer'];\n\n $config = $serializer->deserialize(\n file_get_contents($app['config.path.template']),\n $app['config.class'],\n 'xml'\n );\n\n if ($userConfigFilePath != 'none') {\n $userConfigFilePath = $userConfigFilePath ?: $app['config.path.user'];\n $userConfigFile = $serializer->deserialize(\n file_get_contents($userConfigFilePath),\n $app['config.class'],\n 'xml'\n );\n\n /** @var Merger $merger */\n $merger = $app['config.merger'];\n $config = $merger->run($config, $userConfigFile);\n }\n\n return $config;\n }\n );\n\n $app['config'] = $app->share(\n function ($app) {\n $config_files = array($app['config.path.template']);\n if (is_readable($app['config.path.user'])) {\n $config_files[] = $app['config.path.user'];\n }\n\n return Factory::fromFiles($config_files, true);\n }\n );\n }", "function register(Application $app)\n {\n //Register the DoctrineServiceProvider if it's not there\n if (!isset($app['db']) || !$app['db'] instanceof \\Doctrine\\DBAL\\Connection) {\n $app->register(new DoctrineServiceProvider(), isset($app['db.options']) ? $app['db.options'] : array());\n }\n\n $app['dbm'] = $app->share(function () use ($app) {\n $callback = isset($app['dbm.options']['callback']) ? $app['dbm.options']['callback'] : null;\n return new ManagerFactory($app['db'], $app['dbm.options']['format'], $callback);\n });\n }", "private function registerServices() {\n // Modules\n $this->addService('modules', 'MyTravel\\Core\\Service\\Modules::setService');\n // Routing\n $this->addService('routing', 'MyTravel\\Core\\Service\\Routing::setService');\n // Event dispatcher\n $this->serviceContainer\n ->register('events', 'Symfony\\Component\\EventDispatcher\\EventDispatcher');\n // Database\n $this->addService('db', 'MyTravel\\Core\\Service\\Db::setService');\n // Access\n $this->addService('access', 'MyTravel\\Core\\Service\\Access::setService');\n }", "public function registerServices() {\n\t\t$services = Config::inst()->get('FakeManager', 'services');\n\t\tif($services) {\n\t\t\tforeach($services as $origName => $fakeName) {\n\t\t\t\t$fakeObj = Injector::inst()->create($fakeName);\n\t\t\t\tif($this->db && $fakeObj instanceof FakeDatabaseConsumerInterface) {\n\t\t\t\t\t$fakeObj->setDb($this->db);\n\t\t\t\t}\n\t\t\t\t$this->services[$origName] = $fakeObj;\n\t\t\t\tInjector::inst()->registerService($fakeObj, $origName);\n\t\t\t}\n\t\t}\n\t}", "protected function registerServices()\n {\n $this->app->bind(SocialProvidersManager::class, SocialiteProvidersManager::class);\n\n $this->app->singleton(TwoFactor::class, function () {\n return new AuthyTwoFactor(new Client());\n });\n }", "protected function registerServices(): void\n {\n $this->registerKernels();\n $this->registerFactories();\n $this->registerMicroServices();\n }", "public function register(Application $app)\n {\n $this->registerCommon($app);\n $this->registerMiddlewares($app);\n $this->registerWebActions($app);\n $this->registerControllers($app);\n }", "public function register(Application $app) {\r\n\t\tif (!isset($app['path.conf'])) {\r\n\t\t\t$app['path.conf'] = $this->path;\r\n\t\t}\r\n\r\n\t\t$path = $app['path.conf'];\r\n\t\tif (empty($path)) throw new Exception(\"Application value 'path.conf' is not defined.\");\r\n\t\tif (!is_dir($path)) throw new Exception(\"Directory '$path' specified in 'path.conf' does not exists.\");\r\n\r\n\t\t$configuration = array();\r\n\t\tif (file_exists(\"$path/config-defaults.php\")) {\r\n\t\t\t$configuration = require \"$path/config-defaults.php\";\r\n\t\t}\r\n\t\tif (file_exists(\"$path/config.php\")) {\r\n\t\t\t$configuration = mergeArrays(require \"$path/config.php\", $configuration);\r\n\t\t}\r\n\t\t// Loading configuration.\r\n\t\t$root = getValue('.', $configuration);\r\n\t\tif (is_array($root)) {\r\n\t\t\tforeach ($root as $key => $value) {\r\n\t\t\t\t$app[$key] = $value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$instance = Configuration::getInstance();\r\n\t\t$instance->set($configuration);\r\n\r\n\t\t$app['config'] = $app->share(function($app) use ($instance) {\r\n\t\t\treturn $instance;\r\n\t\t});\r\n\t}", "public function register(Container $app)\n {\n $app['pheanstalk.config_default'] = [\n 'host' => '127.0.0.1',\n 'port' => PheanstalkInterface::DEFAULT_PORT,\n 'timeout' => null,\n 'persistent' => false,\n ];\n\n $app['pheanstalk.config_resolver'] = function () use ($app) {\n return array_merge($app['pheanstalk.config_default'], $app['pheanstalk.config'] ?? []);\n };\n\n $app['pheanstalk.client'] = function () use ($app) {\n return new Pheanstalk(\n $app['pheanstalk.config_resolver']['host'],\n $app['pheanstalk.config_resolver']['port'],\n $app['pheanstalk.config_resolver']['timeout'],\n $app['pheanstalk.config_resolver']['persistent']\n );\n };\n }", "public function register(Application $app)\n {\n $this->registerAssemblers($app);\n\n $app['parser'] = $app->extend(\n 'parser',\n function ($parser) use ($app) {\n return $parser->registerBackend(new Document($app['descriptor.analyzer']));\n }\n );\n\n $app[self::TEMPLATE_FOLDER] = realpath(__DIR__ . '/data/templates/');\n $app[self::CONVERTERS] = array(\n '\\phpDocumentor\\Plugin\\Scrybe\\Converter\\RestructuredText\\ToHtml' => array(Format::RST, Format::HTML),\n );\n\n $app[self::FORMATS] = $app->share(\n function () {\n return new Converter\\Format\\Collection();\n }\n );\n $app[self::CONVERTER_DEFINITION_FACTORY] = $app->share(\n function ($container) {\n return new Factory($container[ServiceProvider::FORMATS]);\n }\n );\n $app[self::CONVERTER_FACTORY] = $app->share(\n function ($container) {\n return new Converter\\Factory(\n $container['converters'],\n $container['converter_definition_factory'],\n $container['monolog']\n );\n }\n );\n $app[self::TEMPLATE_FACTORY] = $app->share(\n function ($app) {\n return new Template\\Factory(\n array('twig' => new Template\\Twig($app[ServiceProvider::TEMPLATE_FOLDER]))\n );\n }\n );\n\n $this->addCommands($app);\n }", "protected function registerBindings(Application $app)\n {\n $app->singleton('wit', function ($app) {\n $config = $app['config'];\n\n return new Wit(\n $config->get('wit.access_token', null),\n $config->get('wit.async_requests', false)\n );\n });\n\n $app->alias('wit', Wit::class);\n }", "public function register( Application $app )\n {\n $app['security.apikey.authenticator'] = $app->protect(function () use ($app) {\n return new ApiKeyAuthenticator(\n $app['security.user_provider.apikey'](),\n $app['security.apikey.param'],\n $app['logger']\n );\n });\n\n $app['security.authentication_listener.factory.apikey'] = $app->protect(function ($name, $options) use ($app) {\n\n $app['security.authentication_provider.'.$name.'.apikey'] = $app->share(function () use ($app, $name) {\n return new SimpleAuthenticationProvider(\n $app['security.apikey.authenticator'](),\n $app['security.user_provider.apikey'](),\n $name\n );\n });\n\n $app['security.authentication_listener.' . $name . '.apikey'] = $app->share(function () use ($app, $name, $options) {\n return new SimplePreAuthenticationListener(\n $app['security'],\n $app['security.authentication_manager'],\n $name,\n $app['security.apikey.authenticator'](),\n $app['logger']\n );\n });\n\n return array(\n 'security.authentication_provider.'.$name.'.apikey',\n 'security.authentication_listener.'.$name.'.apikey',\n null, // entrypoint\n 'pre_auth' // position of the listener in the stack\n );\n });\n\n return true;\n }", "protected function registerServiceProviders()\n {\n foreach ($this->providers as $provider) {\n $this->app->register($provider);\n }\n }", "protected function registerServices()\n {\n $this->app->singleton('components', function($app) {\n $path = $app['config']->get('components.paths.components');\n\n return new Repository($app, $path);\n });\n }", "protected function registerProviders(Application $app) { $app->register(new UrlGeneratorServiceProvider());\n // Session Provider.\n $app->register(new SessionServiceProvider());\n\n // Service controllers FTW!\n $app->register(new ServiceControllerServiceProvider());\n // Load the installation-specific configuration file. This should never be in Git.\n $app->register(new ConfigServiceProvider(__DIR__ . \"/../config/settings.json\"));\n // Load environment-specific configuration.\n $app->register(new ConfigServiceProvider(__DIR__ . \"/../config/{$app['environment']}.json\"));\n\n // Doctrine Provider. Needs to come after config.\n $app->register(new DoctrineServiceProvider(), array(\n 'db.options' => $app['database'],\n ));\n }", "public function registerServices(Slim $app, array $serviceConfig = [])\n {\n if (isset($serviceConfig['callables'])) {\n foreach ($serviceConfig['callables'] as $serviceKey => $callable) {\n $this->registerService($app, $serviceKey, function () use ($app, $callable) {\n return call_user_func($callable, $app);\n });\n }\n }\n if (isset($serviceConfig['factories'])) {\n foreach ($serviceConfig['factories'] as $serviceKey => $className) {\n $this->registerService($app, $serviceKey, function () use ($app, $serviceKey, $className) {\n $factory = new $className();\n if ($factory instanceof ServiceFactoryInterface) {\n return $factory->getService($app);\n }\n throw new InvalidFactory(\"Failed to create $serviceKey: $className does not implement \\FzySlimCore\\Factory\\ServiceFactoryInterface\");\n });\n }\n }\n if (isset($serviceConfig['invokables'])) {\n foreach ($serviceConfig['invokables'] as $serviceKey => $className) {\n $this->registerService($app, $serviceKey, $this->createInvokable($app, $className));\n }\n }\n\n }", "public function registerServices() {\n\t\t$services = $this->getServices();\n\t\t$services = array_map( [ $this, 'instantiateServices' ], $services );\n\t\t\n\t\tarray_walk( $services, function ( Service $service ) {\n\t\t\t$service->register();\n\t\t} );\n\t}", "public function register(Application $app)\n {\n if (empty($app[self::AMQP_CONNECTIONS])) {\n $app[self::AMQP_CONNECTIONS] = array(\n 'default' => array(\n 'host' => 'localhost',\n 'port' => 5672,\n 'username' => 'guest',\n 'password' => 'guest',\n 'vhost' => '/',\n ),\n );\n }\n\n $app[self::AMQP_FACTORY] = $app->protect(function (\n $host = 'localhost',\n $port = 5672,\n $username = 'guest',\n $password = 'guest',\n $vhost = '/'\n ) use ($app) {\n return $app[self::AMQP]->createConnection($host, $port, $username, $password, $vhost);\n });\n\n $app[self::AMQP] = $app->share(function () use ($app) {\n return new AmqpConnectionProvider($app[self::AMQP_CONNECTIONS]);\n });\n }", "public function register()\n {\n /**\n * Register additional service\n * providers if they exist.\n */\n foreach ($this->providers as $provider) {\n if (class_exists($provider)) {\n $this->app->register($provider);\n }\n }\n }", "private function registerApp()\n {\n $this->app->bind('utilities', function ($app) {\n return new Utilities($app);\n });\n\n $this->app->alias('utilities', 'RentalManager\\Utilities');\n }", "public static function register_services()\n {\n foreach ( self::get_services() as $class )\n {\n $service = self::instantiate( $class );\n if( method_exists( $service, 'register' ) )\n $service->register();\n }\n }", "public static function register_services()\n {\n foreach ( self::get_services() as $class ) {\n $service = self::instantiate( $class );\n if ( method_exists( $service, 'register' ) ) {\n $service->register();\n }\n }\n }", "public static function register_services()\n {\n foreach (self::get_services() as $class) {\n $service = self::instantiate($class);\n if (method_exists($service, 'register')) {\n $service->register();\n }\n }\n }", "public function register(ContainerInterface $app)\n {\n $app->instance(ContainerInterface::class, $app);\n $app->singleton(KernelInterface::class, Kernel::class);\n $app->set(InputInterface::class, ConsoleInput::class);\n $app->set(OutputInterface::class, ConsoleOutput::class);\n }", "public function register(Container $app)\n {\n // Choose our locator\n $app['command.bus.locator'] = function ($app) {\n $locator = isset($app['tactician.locator']) ? $app['tactician.locator'] : 'default';\n switch ($locator) {\n case 'silex':\n return new SilexHandlerLocator($app);\n case 'in_memory':\n default:\n return new InMemoryLocator();\n }\n\n };\n\n// Choose our method name\n// Choose our Handler naming strategy\n// Create the middleware that executes commands with Handlers\n// Create the command bus, with a list of middleware\n\n $app['command.bus'] = function ($app) {\n $inflector = new HandleInflector();\n $nameExtractor = new ClassNameExtractor();\n $commandHandlerMiddleware = new CommandHandlerMiddleware(\n $nameExtractor,\n $app['command.bus.locator'],\n $inflector\n );\n\n return new CommandBus([$commandHandlerMiddleware]);\n };\n }", "public static function register(Container $app) : void\n {\n if (!isset($app['config']['arangodb'])) {\n throw new \\Exception(\"Connection settings for Arango database are missing\", 1);\n }\n\n $host = sprintf('tcp://%s:%d', $app['config']['arangodb']['host'], $app['config']['arangodb']['port']);\n\n $connectionOptions = array(\n ArangoConnectionOptions::OPTION_DATABASE => $app['config']['arangodb']['database'],\n ArangoConnectionOptions::OPTION_ENDPOINT => $host,\n ArangoConnectionOptions::OPTION_AUTH_TYPE => $app['config']['arangodb']['auth'],\n ArangoConnectionOptions::OPTION_AUTH_USER => $app['config']['arangodb']['user'],\n ArangoConnectionOptions::OPTION_AUTH_PASSWD => $app['config']['arangodb']['password'],\n ArangoConnectionOptions::OPTION_CONNECTION => $app['config']['arangodb']['connection'],\n ArangoConnectionOptions::OPTION_TIMEOUT => $app['config']['arangodb']['timeout'],\n ArangoConnectionOptions::OPTION_RECONNECT => $app['config']['arangodb']['reconnect'],\n ArangoConnectionOptions::OPTION_CREATE => $app['config']['arangodb']['create'],\n ArangoConnectionOptions::OPTION_UPDATE_POLICY => ArangoUpdatePolicy::LAST,\n );\n\n ArangoException::enableLogging();\n\n $app['arango'] = function () use ($connectionOptions) {\n return new ArangoConnection($connectionOptions);\n };\n\n unset($host);\n }", "public function registerServices()\n {\n /**\n * @var $container Container\n */\n $container = $this->getContainer();\n\n $services = $container->settings['services'];\n\n if (is_array($services) && !empty($services)) {\n foreach ($services as $service) {\n /**\n * @var $instance ServiceInterface\n */\n $instance = new $service();\n\n $container[$instance->name()] = $instance->register();\n\n unset($instance);\n }\n }\n\n unset($container, $services, $service);\n }", "private function bindServices()\n {\n // $this->app->singleton('package-blueprint-service', function ($app) {\n // return new FooService();\n // });\n }", "public function register()\n {\n // Only Environment local\n if ($this->app->environment() !== 'production') {\n foreach ($this->services as $serviceClass) {\n $this->registerClass($serviceClass);\n }\n }\n\n // Register Aliases\n $this->registerAliases();\n }", "public function register(Application $app)\n {\n parent::register($app);\n $app['cache'] = $app->share(function ($app) {\n $config = $app['config'];\n if (! array_key_exists('cache.driver', $config)) {\n return new ArrayCache();\n }\n switch ($config['cache.driver']) {\n case 'array':\n return new ArrayCache();\n case 'redis':\n $cache = new RedisCache();\n if (isset($config['cache.redis'])) {\n $redis = new \\Redis();\n $redis->connect($config['cache.redis']['host'], $config['cache.redis']['port']);\n $cache->setRedis($redis);\n } else {\n $cache->setRedis($app['redis']);\n }\n return $cache;\n case 'xcache':\n return new XcacheCache();\n default:\n throw new \\RuntimeException('Unknown cache driver: '.$config['cache.driver']);\n }\n });\n }", "public function register_services() {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( ! empty( $this->services ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$classes = $this->get_service_classes();\n\n\t\t$this->services = array_map(\n\t\t\t[ $this, 'instantiate_service' ],\n\t\t\t$classes\n\t\t);\n\n\t\tarray_walk( $this->services, function ( Service $service ) {\n\t\t\t$service->register();\n\t\t} );\n\t}", "public function withServices(ServicesContract $services): AppContract;", "protected function registerService()\n {\n $this->app->singleton('toolsService', function ($app) {\n return new ToolsService();\n });\n $this->app->alias('hs', ToolsService::class);\n }", "public function register(Container $app)\n {\n switch ($app['params']['storage_system']) {\n case 's3':\n $this->registerStorageSystemS3($app);\n break;\n case 'local':\n default:\n $this->registerStorageSystemLocal($app);\n break;\n }\n }", "public function register(\\Box_App &$app)\n {\n $app->get('/autoticket', 'get_index', array(), get_class($this));\n\t\t$app->get('/autoticket/settings', 'get_settings', array(), get_class($this));\n }", "public static function inject(Container $app)\n {\n self::$injectedApp = $app;\n }", "public static function register_services(): void\n {\n foreach (self::get_services() as $class) {\n $service = self::instantiate($class);\n if (method_exists($class, 'register')) {\n $service->register();\n }\n }\n }", "public function register($app)\n {\n $this->startTime = microtime(true);\n\n return $app->events->listen('*', function ($eventName, $payload) {\n $this->collect($eventName, $payload);\n });\n }", "public function bind($app) {\n $this->apps[] = $app;\n }", "protected function registerServices()\n {\n $this->app->singleton('adminmenu', function () {\n return new Builder();\n });\n }", "public function register(Application $app)\n {\n $app[\"cors.allowOrigin\"] = \"*\"; // Defaults to all\n $app[\"cors.allowMethods\"] = null; // Defaults to all\n $app[\"cors.maxAge\"] = null;\n $app[\"cors.allowCredentials\"] = false;\n $app[\"cors.exposeHeaders\"] = null;\n\n $cors = new Cors();\n\n $app[\"cors\"] = $app->protect(\n function (Request $request, Response $response) use ($cors, $app) {\n $response->headers->add($cors->handle($app, $request, $response));\n }\n );\n }", "public function register(Application $app)\n {\n $app['menu'] = $app->share(\n function ($app) {\n $builder = new MenuBuilder($app);\n\n return $builder;\n }\n );\n }", "protected function registerServices()\n {\n $this->singleton('request', function ($app) {\n return new Request($app);\n });\n\n $this->singleton('response', function ($app) {\n return new Response($app);\n });\n\n $this->singleton('route', function ($app) {\n return new Route($app);\n });\n\n $this->singleton('view', function ($app) {\n return new View($app);\n });\n\n $this->singleton('exception', function ($app) {\n return new Exception($app, $app->exception);\n });\n\n $this->singleton('crypt', function ($app) {\n return new Crypt($app->getSecret());\n });\n\n $this->singleton('cookie', function ($app) {\n return new Cookie($app, $app->getConfig('state')['cookie']);\n });\n\n $this->singleton('session', function ($app) {\n return new Session(new SessionDatabaseHandler($app, $app->getConfig('state')['session']));\n });\n\n return $this->factory();\n }", "public function register()\n\t{\n\t\t$this->app->bindShared('Brenelz\\Craft\\Service', function($app){\n\t\t\t\n\t\t\t$path = $app['config']->get('craft::craft.path');\n\n\t\t\trequire $path.'/app/bootstrap.php';\n\n\t\t\t// Initialize Craft\\WebApp this way so it doesn't cause a syntax error on PHP < 5.3\n\t\t\t$appClass = '\\Craft\\WebApp';\n\t\t\t$app = new $appClass($config);\n\n\t\t\treturn $app;\n\t\t});\n\t}", "public function register()\n { \n // out(\"::registering services::\");\n $this->app->profile_repository = new ProfileRepository(); \n $this->app->page_repository = new PageRepository();\n $this->app->user_repository = new UserRepository(); \n $this->app->entity_repository = new EntityRepositoryImpl();\n $this->app->meal_task_group_member_repo = new MealTaskGroupMemberRepository();\n $this->app->web_config_service = new WebConfigService( $this->app->entity_repository);\n $this->app->entity_service = new EntityService($this->app->entity_repository, $this->app->web_config_service);\n //Repositories//\n $this->app->bind(UserRepository::class, function ($app) {\n return $app->user_repository;\n });\n $this->app->bind(ProfileRepository::class, function ($app) {\n return $app->profile_repository;\n });\n $this->app->bind(PageRepository::class, function ($app) {\n return $app->page_repository;\n });\n $this->app->bind(EntityRepository::class, function ($app) {\n return $app->entity_repository;\n });\n\n //Services//\n $this->app->bind(AccountService::class, function ($app) {\n return new AccountService($app->user_repository);\n });\n $this->app->bind(EntityService::class, function ($app) {\n return ($app->entity_service );\n });\n $this->app->bind(ComponentService::class, function ($app) {\n $service = new ComponentService($app->profile_repository, $app->page_repository, $app->web_config_service, $app->meal_task_group_member_repo);\n $service->setEntityRepoAndEntitySvc($app->entity_repository, $app->entity_service);\n return $service;\n });\n $this->app->bind(WebConfigService::class, function ($app) {\n return $app->web_config_service;\n });\n \n \n }", "public function register()\n {\n App::singleton(UtilsServiceCatalog::CacheService, 'services\\\\utils\\\\RedisCacheService');\n\t App::singleton(UtilsServiceCatalog::TransactionService, 'services\\\\utils\\\\EloquentTransactionService');\n\n App::resolving('redis',function($redis){\n $cache_service = App::make(UtilsServiceCatalog::CacheService);\n $cache_service->boot();\n });\n\n $this->app['serverconfigurationservice'] = App::share(function ($app) {\n return new ServerConfigurationService(App::make(UtilsServiceCatalog::CacheService),App::make(UtilsServiceCatalog::TransactionService));\n });\n\n // Shortcut so developers don't need to add an Alias in app/config/app.php\n App::booting(function () {\n $loader = AliasLoader::getInstance();\n $loader->alias('ServerConfigurationService', 'services\\\\facades\\\\ServerConfigurationService');\n });\n\n App::singleton(UtilsServiceCatalog::LogService, 'services\\\\utils\\\\LogService');\n App::singleton(UtilsServiceCatalog::LockManagerService, 'services\\\\utils\\\\LockManagerService');\n App::singleton(UtilsServiceCatalog::ServerConfigurationService, 'services\\\\utils\\\\ServerConfigurationService');\n App::singleton(UtilsServiceCatalog::BannedIpService, 'services\\\\utils\\\\BannedIPService');\n\n }", "public function register()\n {\n /**\n * Sets third party service providers that are only needed on local environments\n */\n if ($this->app->environment() == 'local') {\n /**\n * Loader for registering facades\n */\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n\n /**\n * Load third party local providers and facades\n */\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n $loader->alias('Debugbar', \\Barryvdh\\Debugbar\\Facade::class);\n\n $this->app->register(\\Laracasts\\Generators\\GeneratorsServiceProvider::class);\n }\n $this->app->bind('soaClient', function ($app,$params) {\n $cloud = SOA::getInstance($params[0]);\n if($cloud->getEnv()){\n return $cloud;\n }\n $cloud->setEncodeType(true, true);\n $config = config('soa.'.$params[0]);\n $cloud->putEnv('app', $config['app']);\n $cloud->putEnv('appKey', $config['appKey']);\n $cloud->setServers($config['hosts']);\n return $cloud;\n });\n $this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');\n }", "protected function registerServices()\n {\n $this->app->singleton(\n 'adminmenu',\n function () {\n return new Builder();\n }\n );\n }", "protected function registerBaseServices()\n {\n $container = $this->getContainer();\n\n $container->share('logger', function () use ($container) {\n return new Logger($container->get('config'));\n });\n\n $this->registerService(new Providers\\ConfigProvider());\n $this->registerService(new Providers\\FileSystemProvider());\n $this->registerService(new Providers\\ParserManagerProvider());\n $this->registerService(new Providers\\BackendProvider());\n }", "public function register()\n {\n foreach ($this->simpleBindings as $contract => $service) {\n $this->app->bind($contract, $service);\n }\n }", "public function registerServices(){\n }", "protected function configureApplication(Application $app)\n {\n //\n }", "public function register(Application $app)\n {\n $app['dialog'] = $this;\n $this->app = $app;\n /** @var Skylab $consoleApp */\n $consoleApp = $this->app['console'];\n $this->dialog = $consoleApp->getHelperSet()->get('question');\n }", "public function register(Application $app)\n {\n /* \\outputImage */\n $app['glide'] = ServerFactory::create(array(\n 'source' => web_path('upload'),\n 'cache' => web_path('upload/.cache'),\n ));\n }", "public function __construct($app)\n {\n parent::__construct($app);\n\n foreach ($this->getConfig('drivers') as $driver => $configs) {\n $this->registerDriver($driver, $configs);\n }\n }", "protected function registerServiceProviders()\n {\n if ($this->active()->has('providers')) {\n $providers = $this->active()->get('providers');\n\n foreach ($providers as $provider) {\n App::register($provider);\n }\n }\n }", "public function register()\n {\n $this->registerBindings($this->app);\n }", "public function register()\r\n {\r\n $this->app->bind(\r\n ViberServiceInterface::class,\r\n ViberService::class\r\n );\r\n\r\n $this->app->bind(\r\n ApplicantServiceInterface::class,\r\n ApplicantService::class\r\n );\r\n }", "public function register()\n {\n foreach (glob(base_path('config/*.php')) as $file) {\n $this->app->configure(explode('.', basename($file))[0]);\n }\n }", "public function register(): void {\n $this->app->bind(ItemAffixService::class, function ($app) {\n return new ItemAffixService();\n });\n\n $this->app->bind(AssignSkillService::class, function ($app) {\n return new AssignSkillService();\n });\n\n $this->app->bind(UpdateCharacterStatsService::class, function ($app) {\n return new UpdateCharacterStatsService();\n });\n\n $this->app->bind(UserService::class, function($app) {\n return new UserService();\n });\n\n $this->app->bind(ItemsService::class, function($app) {\n return new ItemsService();\n });\n\n $this->app->bind(QuestService::class, function() {\n return new QuestService();\n });\n\n $this->app->bind(InfoPageService::class, function() {\n return new InfoPageService();\n });\n\n $this->app->bind(GuideQuestService::class, function() {\n return new GuideQuestService();\n });\n\n $this->app->bind(LocationService::class, function($app) {\n return new LocationService($app->make(CoordinatesCache::class));\n });\n\n $this->commands([CreateAdminAccount::class, GiveKingdomsToNpcs::class]);\n }", "public function register()\n {\n $this->app->bind(\n ClientServiceInterface::class,\n ClientService::class\n );\n\n $this->app->bind(\n ProjectServiceInterface::class,\n ProjectService::class\n );\n\n $this->app->bind(\n ActionServiceInterface::class,\n ActionService::class\n );\n }", "public function register(Container $app)\n {\n $app['problem.details.exception.map'] = function () {\n return new Container(\n include __DIR__ . '/problemDetailsFromExceptionMap.php'\n );\n };\n\n $this->app = $app;\n }", "public function register(Application $app)\n {\n $app['blade.filesystem'] = $app->share(function() {\n return new Filesystem;\n });\n\n $app['blade.compiler'] = $app->share(function() use ($app) {\n return new BladeCompiler($app['blade.filesystem'], $app['blade.settings']['cache']);\n });\n\n $app['blade.compiler_engine'] = $app->share(function() use ($app) {\n return new CompilerEngine($app['blade.compiler'], $app['blade.filesystem']);\n });\n\n $app['blade.resolver'] = $app->share(function() {\n return new EngineResolver;\n });\n\n $app['blade.resolver']->register('blade', function() use ($app) {\n return $app['blade.compiler_engine'];\n });\n\n $app['blade.finder'] = $app->share(function() use ($app) {\n return new FileViewFinder($app['blade.filesystem'], $app['blade.settings']['views']);\n });\n\n $app['blade.dispatcher'] = $app->share(function() {\n return new Dispatcher;\n });\n\n $app['blade'] = $app->share(function($app) {\n $blade = new Environment($app['blade.resolver'], $app['blade.finder'], $app['blade.dispatcher']);\n\n $blade->share('app', $app);\n\n return $blade;\n });\n }", "protected function registerFactory(Application $app)\n {\n //opauth listener for event callbacks\n $app[self::LISTENER] = $app->share(\n function() use ($app) {\n return new OpauthListener(\n $app['security'], \n $app['security.authentication_manager'],\n $app['users'],\n $app['monolog']\n );\n }\n );\n \n $app['security.authentication_listener.factory.opauth'] = $app->protect(function ($name, $options) use ($app) {\n // define the authentication provider object\n $app['security.authentication_provider.'.$name.'.opauth'] = $app->share(function () use ($app) {\n return new PreAuthenticatedAuthenticationProvider(\n $app['users'],\n new UserChecker(),\n 'opauth'\n );\n });\n\n // define the authentication listener object\n $app['security.authentication_listener.'.$name.'.opauth'] = $app->share(function () use ($app) {\n $subscriber = $app[\\Metagist\\OpauthSecurityServiceProvider::LISTENER];\n $dispatcher = $app['dispatcher'];\n /* @var $dispatcher \\Symfony\\Component\\EventDispatcher\\EventDispatcher */\n $dispatcher->addSubscriber($subscriber);\n return $subscriber;\n });\n\n return array(\n // the authentication provider id\n 'security.authentication_provider.'.$name.'.opauth',\n // the authentication listener id\n 'security.authentication_listener.'.$name.'.opauth',\n // the entry point id\n null,\n // the position of the listener in the stack\n 'pre_auth'\n );\n });\n }", "public function register()\n {\n foreach ($this->getBindings() as $interface => $class) {\n $this->app->bind($interface, $class);\n }\n }", "public function register()\n {\n $this->app->bind(\n Services\\UserService::class,\n Services\\Implementations\\UserServiceImplementation::class\n );\n $this->app->bind(\n Services\\FamilyCardService::class,\n Services\\Implementations\\FamilyCardServiceImplementation::class\n );\n }", "public function register()\n {\n // Bind Credential Contract with Service\n $this->app->bind(Credentials::class, function ($app){\n return new CredentialsManger($app->make('filesystem.disk'), $app->make('encrypter'));\n });\n\n // Bind Caption Contract with Service\n $this->app->bind(Configuration::class, function ($app){\n return new ConfigurationManager($app->make('filesystem.disk'));\n });\n\n // Inject dependencies into Auth Service.\n $this->app->singleton(Post::class, function ($app){\n return new PostService(new Instagram(true, true), $app->make(Credentials::class));\n });\n\n // Inject Guzzle Into Reddit Service\n $this->app->singleton(Scraper::class, function ($app){\n return new ScraperService(new Client(['base_uri' => 'http://www.reddit.com']), $app->make(Configuration::class), $app->make('filesystem.disk'));\n });\n\n $this->app->bind(Caption::class, function ($app){\n return new CaptionManager($app->make('filesystem.disk'), $app->make('encrypter'));\n });\n }", "public function register_services(): void {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( \\count( $this->service_container ) > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Add the injector as the very first service.\n\t\t$this->service_container->put(\n\t\t\tstatic::SERVICE_PREFIX . static::INJECTOR_ID,\n\t\t\t$this->injector\n\t\t);\n\n\t\t$services = $this->get_service_classes();\n\n\t\tif ( $this->enable_filters ) {\n\t\t\t/**\n\t\t\t * Filter the default services that make up this plugin.\n\t\t\t *\n\t\t\t * This can be used to add services to the service container for\n\t\t\t * this plugin.\n\t\t\t *\n\t\t\t * @param array<string, string> $services Associative array of identifier =>\n\t\t\t * class mappings. The provided\n\t\t\t * classes need to implement the\n\t\t\t * Service interface.\n\t\t\t */\n\t\t\t$filtered_services = apply_filters(\n\t\t\t\tstatic::HOOK_PREFIX . static::SERVICES_FILTER,\n\t\t\t\t$services\n\t\t\t);\n\n\t\t\t$services = $this->validate_services( $filtered_services );\n\t\t}\n\n\t\twhile ( null !== key( $services ) ) {\n\t\t\t$id = $this->maybe_resolve( key( $services ) );\n\n\t\t\t$class = $this->maybe_resolve( current( $services ) );\n\n\t\t\t// Delay registering the service until all requirements are met.\n\t\t\tif (\n\t\t\t\tis_a( $class, HasRequirements::class, true )\n\t\t\t) {\n\t\t\t\tif ( ! $this->requirements_are_met( $id, $class, $services ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->schedule_potential_service_registration( $id, $class );\n\n\t\t\tnext( $services );\n\t\t}\n\t}", "public function register() : void\n {\n $environment = $this->app->environment();\n\n $providers = $this->app['config']->get('app.' . $environment . '_providers', []);\n\n foreach ($providers as $provider) {\n $this->app->register($provider);\n }\n\n $facades = $this->app['config']->get('app.' . $environment . '_aliases', []);\n\n foreach ($facades as $class => $name) {\n AliasLoader::getInstance()->alias($class, $name);\n }\n }", "protected function registerBaseServices(): ApplicationInterface\n {\n return $this->registerLoggerService()\n ->registerExceptionHandler()\n ->registerRouter();\n }", "public function register()\n {\n $contracts = config(\"api.contracts\");\n $bindings = config('api.bindings');\n foreach($contracts as $contract)\n {\n $this->app->bind($contract, function($app) use ($contract, $bindings)\n {\n $version = Request::segment(2);\n return $app[$bindings[$version][$contract]];\n });\n }\n }", "public function register(): void\n {\n $this->configure();\n $this->registerServices();\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function bootstrap(Container $app)\n {\n foreach ($app->make('config')->get('app.services') as $key => $services) {\n foreach ((array) $services as $service) {\n $app->alias($key, $service);\n }\n }\n \n foreach ($app->make('config')->get('app.theme.services', []) as $key => $services) {\n foreach ((array) $services as $service) {\n $app->alias($key, $service);\n }\n }\n }", "public function register()\n {\n // Register services\n $this->app->singleton(UserService::class, \\App\\Services\\UserService::class);\n $this->app->singleton(RemindService::class, \\App\\Services\\RemindService::class);\n $this->app->singleton(CampaignService::class, \\App\\Services\\CampaignService::class);\n $this->app->singleton(CreditCardService::class, \\App\\Services\\CreditCardService::class);\n $this->app->bind('activity', \\App\\Services\\ActivityService::class);\n\n $this->app->bind(Message::class, function ($app) {\n return new Message(\n Setting::getSetting(Setting::MODULE_CORE, Setting::SETTING_USER_ID),\n Setting::getSetting(Setting::MODULE_CORE, Setting::SETTING_API_TOKEN),\n Setting::getSetting(Setting::MODULE_CORE, Setting::SETTING_API_SECRET)\n );\n });\n\n $this->app->bind(Voice::class, function ($app) {\n return new Voice(\n Setting::getSetting(Setting::MODULE_CORE, Setting::SETTING_USER_ID),\n Setting::getSetting(Setting::MODULE_CORE, Setting::SETTING_API_TOKEN),\n Setting::getSetting(Setting::MODULE_CORE, Setting::SETTING_API_SECRET)\n );\n });\n }", "protected function registerServices()\r\n\t{\r\n\r\n\t\t$di = new FactoryDefault();\r\n\r\n\t\t$loader = new Loader();\r\n\r\n\t\t/**\r\n\t\t * We're a registering a set of directories taken from the configuration file\r\n\t\t */\r\n\t\t$loader->registerDirs(\r\n\t\t\tarray(\r\n\t\t\t\t__DIR__ . '/../apps/library/',\r\n\t\t\t\t__DIR__ . '/../apps/plugins/'\r\n\t\t\t)\r\n\t\t)->register();\r\n\r\n\r\n\r\n\t\t//Registering a router\r\n\t\t$di->set('router', function(){\r\n\r\n\t\t\t$router = new Router();\r\n\r\n\t\t\t$router->setDefaultModule(\"frontend\");\r\n\t\t\t$router->setDefaultController(\"index\");\r\n\t\t\t$router->setDefaultAction(\"index\");\r\n\r\n $router->add(\"/register/recoveryPassword\", array(\r\n 'module' => 'frontend',\r\n 'controller' => 'register',\r\n 'action' => 'recoveryPassword',\r\n ));\r\n $router->add(\"/register/index\", array(\r\n 'module' => 'frontend',\r\n 'controller' => 'register',\r\n 'action' => 'index',\r\n ));\r\n\r\n $router->add(\"/help/about\", array(\r\n 'module' => 'frontend',\r\n 'controller' => 'help',\r\n 'action' => 'about',\r\n ));\r\n\r\n\t\t\t\r\n\t\t\t$router->add(\"/ajax/getlast\", array(\r\n\t\t\t\t'module' => 'frontend',\r\n\t\t\t\t'controller' => 'ajax',\r\n\t\t\t\t'action' => 'getlast',\r\n\t\t\t));\r\n\t\t\t\r\n\t\t\t$router->add(\"/:controller/:action/:params\", array(\r\n\t\t\t\t'module' => 'frontend',\r\n\t\t\t\t'controller' => 1,\r\n\t\t\t\t'action' => 2,\r\n\t\t\t\t'params'=>3\r\n\t\t\t));\r\n\r\n\t\t\t$router->add(\"/admin/:controller/:action/:params\", array(\r\n\t\t\t\t'module' => 'backend',\r\n\t\t\t\t'controller' => 1,\r\n\t\t\t\t'action' => 2,\r\n\t\t\t\t'params'=>3\r\n\t\t\t));\r\n\r\n// $router->add(\"/admin/register\", array(\r\n// 'module' => 'backend',\r\n// 'controller' => 'register',\r\n// 'action' => 'index',\r\n// ));\r\n\r\n\t\t\t$router->add(\"/admin\", array(\r\n\t\t\t\t'module' => 'backend',\r\n\t\t\t\t'controller' => 'login',\r\n\t\t\t\t'action' => 'index',\r\n\t\t\t));\r\n\r\n\t\t\t$router->add(\"/admin/\", array(\r\n\t\t\t\t'module' => 'backend',\r\n\t\t\t\t'controller' => 'login',\r\n\t\t\t\t'action' => 'index',\r\n\t\t\t));\r\n\r\n\t\t\t$router->add(\"/admin/login\", array(\r\n\t\t\t\t'module' => 'backend',\r\n\t\t\t\t'controller' => 'login',\r\n\t\t\t\t'action' => 'index',\r\n\t\t\t));\r\n\r\n\r\n\r\n//\t\t\t$router->notFound(array(\r\n//\t\t\t\t\"controller\" => \"index\",\r\n//\t\t\t\t\"action\" => \"page404\",\r\n//\t\t\t));\r\n\r\n\t\t\treturn $router;\r\n\r\n\t\t});\r\n\r\n\t\t$this->setDI($di);\r\n\t}", "public function boot(Application $app)\n {\n // boot\n }", "public function register(CApplication $app)\n\t{\n\t\tparent::register($app);\n\n\t\t$app['security.user_provider.admin'] = $app->share(function() use ($app) {\n\t\t\treturn new PlatformUserProvider($app->getServiceUsers(), $app->getServiceUsersAuth());\n\t\t});\n\n\t\t$app['security.user_provider.public'] = $app->share(function() use ($app) {\n\t\t\treturn $app['security.user_provider.admin'];\n\t\t});\n\n\t\t$app['security.encoder_factory'] = $app->share(function() use ($app) {\n\t\t\treturn new EncoderFactory(array(\n\t\t\t\t'Symfony\\Component\\Security\\Core\\User\\UserInterface' => new Pbkdf2PasswordEncoder(),\n\t\t\t));\n\t\t});\n\n\t\t$app['security.authentication.success_handler.admin'] =\n\t\t\t$app->share(function() use ($app) {\n\t\t\t\treturn new UserAuthenticationSuccessHandler($app['security.http_utils'], [], $app);\n\t\t\t}\n\t\t);\n\n\t\t$app['security.authentication.failure_handler.admin'] =\n\t\t\t$app->share(function() use ($app) {\n\t\t\t\treturn new UserAuthenticationFailureHandler($app['kernel'], $app['security.http_utils'], [\n\t\t\t\t\t\t'failure_path' => '/login.html',\n\t\t\t\t], $app);\n\t\t\t}\n\t\t);\n\n\t\t/** @var callable $logoutProto */\n\t\t$logoutProto = $app['security.authentication_listener.logout._proto'];\n\t\t$app['security.authentication_listener.logout._proto'] = $app->protect(function($name, $options) use ($app, $logoutProto) {\n\t\t\treturn $app->share(function() use ($app, $name, $options, $logoutProto) {\n\t\t\t\t$prototype = $logoutProto($name, $options);\n\t\t\t\t/** @var LogoutListener $listener */\n\t\t\t\t$listener = $prototype($app);\n\t\t\t\t$listener->addHandler(new UserLogoutHandler());\n\t\t\t\treturn $listener;\n\t\t\t});\n\t\t});\n\n\t\t// Security voters.\n\t\t$app['security.voters.entity_erase'] = $app->share(function($app) {\n\t\t\treturn new EntityEraseVoter($app);\n\t\t});\n\n\t\t$app['security.voters'] = $app->extend('security.voters', function($voters) use ($app) {\n\t\t\tarray_unshift($voters, $app['security.voters.entity_erase']);\n\n\t\t\treturn $voters;\n\t\t});\n\t}", "public function register()\n {\n foreach ($this->bindings as $abstract => $concrete) {\n $this->app->bind($abstract, $concrete);\n }\n }", "public function register(): void\n {\n $this->app->bind(ValidatorServiceInterface::class, ValidatorService::class);\n }", "public function register()\n\t{\n\t\tapp()->bind(UtilityServiceInterface::class, UtilityService::class);\n\t}", "public function register()\n {\n // merge in df config, https://laravel.com/docs/5.4/packages#resources\n $configPath = __DIR__ . '/../config/config.php';\n $this->mergeConfigFrom($configPath, 'df');\n\n // Add our service types.\n $this->app->resolving('df.service', function (ServiceManager $df){\n $df->addType(\n new ServiceType([\n 'name' => 'local_file',\n 'label' => 'Local File Storage',\n 'description' => 'File service supporting the local file system.',\n 'group' => ServiceTypeGroups::FILE,\n 'config_handler' => LocalFileConfig::class,\n 'factory' => function ($config){\n return new LocalFileService($config);\n },\n ])\n );\n\n $df->addType(\n new ServiceType([\n 'name' => 'ftp_file',\n 'label' => 'FTP File Storage',\n 'description' => 'File service supporting the FTP protocol.',\n 'group' => ServiceTypeGroups::FILE,\n 'config_handler' => FTPFileConfig::class,\n 'factory' => function ($config){\n return new FTPFileService($config);\n },\n ])\n );\n\n $df->addType(\n new ServiceType([\n 'name' => 'sftp_file',\n 'label' => 'SFTP File Storage',\n 'description' => 'File service supporting the SFTP protocol.',\n 'group' => ServiceTypeGroups::FILE,\n 'config_handler' => SFTPFileConfig::class,\n 'factory' => function ($config){\n return new SFTPFileService($config);\n },\n ])\n );\n\n $df->addType(\n new ServiceType([\n 'name' => 'webdav_file',\n 'label' => 'WebDAV File Storage',\n 'description' => 'File service supporting WebDAV.',\n 'group' => ServiceTypeGroups::FILE,\n 'config_handler' => WebDAVFileConfig::class,\n 'factory' => function ($config){\n return new WebDAVFileService($config);\n },\n ])\n );\n });\n }", "public function register()\n {\n $configPath = __DIR__ . '/../config/config.php';\n $this->mergeConfigFrom($configPath, 'shopify');\n $this->app->singleton('shopify', function($app) {\n\n if (isset($app['config']['services']['shopify'])) {\n\n $config = array_filter($app['config']['services']['shopify']);\n\n return new \\Shopify\\Client($config);\n\n } else return new \\Shopify\\Client();\n\n });\n\n $app = $this->app;\n }", "public function register(Container $app)\n {\n $app['doctrine.dm'] = DocumentManager::create(\n $this->getConnection($app['doctrine.connection']),\n $this->getConfiguration($app['doctrine.configuration'])\n );\n }", "public function startup($app)\n {\n $this->log = $app->logger;\n $this->db = $app->db;\n $this->guard = $app->guard_model;\n }", "public function register(): void\n {\n // Bind eloquent models to IoC container\n $this->app->singleton('cortex.bookings.service', $serviceModel = $this->app['config']['cortex.bookings.models.service']);\n $serviceModel === Service::class || $this->app->alias('cortex.bookings.service', Service::class);\n\n $this->app->singleton('cortex.bookings.service_availability', $serviceAvailabilityModel = $this->app['config']['cortex.bookings.models.service_availability']);\n $serviceAvailabilityModel === ServiceAvailability::class || $this->app->alias('cortex.bookings.service_availability', ServiceAvailability::class);\n\n $this->app->singleton('cortex.bookings.service_booking', $serviceBookingModel = $this->app['config']['cortex.bookings.models.service_booking']);\n $serviceBookingModel === ServiceBooking::class || $this->app->alias('cortex.bookings.service_booking', ServiceBooking::class);\n\n $this->app->singleton('cortex.bookings.service_rate', $serviceRateModel = $this->app['config']['cortex.bookings.models.service_rate']);\n $serviceRateModel === ServiceRate::class || $this->app->alias('cortex.bookings.service_rate', ServiceRate::class);\n\n $this->app->singleton('cortex.bookings.event', $serviceAvailabilityModel = $this->app['config']['cortex.bookings.models.event']);\n $serviceAvailabilityModel === Event::class || $this->app->alias('cortex.bookings.event', Event::class);\n\n $this->app->singleton('cortex.bookings.event_ticket', $eventTicketModel = $this->app['config']['cortex.bookings.models.event_ticket']);\n $eventTicketModel === EventTicket::class || $this->app->alias('cortex.bookings.event_ticket', EventTicket::class);\n\n $this->app->singleton('cortex.bookings.event_booking', $eventBookingModel = $this->app['config']['cortex.bookings.models.event_booking']);\n $eventBookingModel === EventBooking::class || $this->app->alias('cortex.bookings.event_booking', EventBooking::class);\n\n // Register console commands\n $this->registerCommands($this->commands);\n\n // Bind eloquent models to IoC container\n $this->app->singleton('cortex.bookings.service', $serviceModel = $this->app['config']['cortex.bookings.models.service']);\n $serviceModel === Service::class || $this->app->alias('cortex.bookings.service', Service::class);\n\n $this->app->singleton('cortex.bookings.event', $eventModel = $this->app['config']['cortex.bookings.models.event']);\n $eventModel === Event::class || $this->app->alias('cortex.bookings.event', Event::class);\n }", "public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/services.php', 'services');\n\n $this->app->singleton(Client::class, function ($app) {\n return new Client(\n $this->buildGuzzleClient(),\n Environment::from($app->make('config')->get('services.viva.environment')),\n merchantId: strval($app->make('config')->get('services.viva.merchant_id')),\n apiKey: strval($app->make('config')->get('services.viva.api_key')),\n clientId: strval($app->make('config')->get('services.viva.client_id')),\n clientSecret: strval($app->make('config')->get('services.viva.client_secret')),\n );\n });\n\n $this->app->bind(Services\\OAuth::class, function ($app) {\n return new Services\\OAuth(\n client: $app->make(Client::class),\n clientId: strval($app->make('config')->get('services.viva.client_id')),\n clientSecret: strval($app->make('config')->get('services.viva.client_secret')),\n );\n });\n }", "public function register()\n {\n // register routes\n $this->registerConfigurations();\n\n // https://github.com/laravolt/indonesia\n $this->app->bind('linebot', function() {\n return new LineBotManager(\"ko\");\n });\n \n // $this->app->bind('linebot', function($app){\n \n // $config = $this->app['config']->get('services.linebot', []);\n // // dd($config);\n // $client = new Client(Arr::get($config, 'guzzle', []));\n \n // return new LineBotManager(\"Kiw\");\n // });\n }", "public function register()\n {\n // Mrcore Module Tracking\n Module::trace(get_class(), __function__);\n\n // Register facades\n #class_alias('Mrcore\\Parser\\Facades\\Parser', 'Parser');\n\n // Register configs\n $this->registerConfigs();\n\n // Register IoC bind aliases\n #$this->app->alias(Mrcore\\Parser\\Parser::class, Mrcore\\Parser::class)\n\n // Register other service providers\n #$this->app->register(Mrcore\\Parser\\Providers\\OtherServiceProvider::class);\n\n // Register artisan commands\n $this->registerCommands();\n\n // Register testing environment\n $this->registerTestingEnvironment();\n }", "public function register()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../config/app.php', 'app'\n );\n $this->registerOtherProviders();\n }", "public function registerServices(DiInterface $di): void\n {\n $di->getShared('config')->merge(new Config(require_once self::PATH . \"/config/config.php\"));\n\n require_once self::PATH . \"/config/services.php\";\n }" ]
[ "0.70936173", "0.69585246", "0.6948926", "0.6896024", "0.6868094", "0.6790034", "0.67835665", "0.6748575", "0.67224777", "0.67031777", "0.664835", "0.66165304", "0.6596234", "0.6593159", "0.65621346", "0.65402484", "0.65215915", "0.650128", "0.6488797", "0.6485595", "0.6479649", "0.64647055", "0.6448811", "0.6448509", "0.6435264", "0.64252126", "0.6419991", "0.64169955", "0.64005584", "0.6394581", "0.63919866", "0.63854355", "0.63591796", "0.6354129", "0.63490057", "0.6300008", "0.6295132", "0.62931484", "0.6292124", "0.62809515", "0.6270914", "0.6267616", "0.6258543", "0.6257642", "0.6251679", "0.62440526", "0.623257", "0.6227981", "0.6222138", "0.62085915", "0.6187519", "0.61768377", "0.6174966", "0.6173036", "0.6143981", "0.6140871", "0.61377954", "0.61334044", "0.6131396", "0.6123093", "0.61152357", "0.608462", "0.6070367", "0.60660315", "0.60491824", "0.6040507", "0.6035664", "0.6016813", "0.59911937", "0.5985298", "0.59852827", "0.5969563", "0.594404", "0.5936118", "0.5917243", "0.5905109", "0.58961207", "0.5889873", "0.5888816", "0.587592", "0.58729005", "0.58711404", "0.5868851", "0.58665186", "0.5863693", "0.584349", "0.5840477", "0.58383274", "0.58364767", "0.58329505", "0.5828503", "0.5822615", "0.5820185", "0.57960516", "0.5791583", "0.5791529", "0.5784101", "0.57769024", "0.57707", "0.57657534" ]
0.63959956
29
Registers the opauth security factory.
protected function registerFactory(Application $app) { //opauth listener for event callbacks $app[self::LISTENER] = $app->share( function() use ($app) { return new OpauthListener( $app['security'], $app['security.authentication_manager'], $app['users'], $app['monolog'] ); } ); $app['security.authentication_listener.factory.opauth'] = $app->protect(function ($name, $options) use ($app) { // define the authentication provider object $app['security.authentication_provider.'.$name.'.opauth'] = $app->share(function () use ($app) { return new PreAuthenticatedAuthenticationProvider( $app['users'], new UserChecker(), 'opauth' ); }); // define the authentication listener object $app['security.authentication_listener.'.$name.'.opauth'] = $app->share(function () use ($app) { $subscriber = $app[\Metagist\OpauthSecurityServiceProvider::LISTENER]; $dispatcher = $app['dispatcher']; /* @var $dispatcher \Symfony\Component\EventDispatcher\EventDispatcher */ $dispatcher->addSubscriber($subscriber); return $subscriber; }); return array( // the authentication provider id 'security.authentication_provider.'.$name.'.opauth', // the authentication listener id 'security.authentication_listener.'.$name.'.opauth', // the entry point id null, // the position of the listener in the stack 'pre_auth' ); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n Auth::extend('sso', function ($app, $name, array $config) {\n // 返回一个 Illuminate\\Contracts\\Auth\\Guard 实例...\n return new OaGuard(Auth::createUserProvider($config['provider']),$app->make('request'));\n });\n\n Auth::provider('sso', function ($app, array $config) {\n return new OaUserProvider();\n });\n }", "public function registerAuth()\n {\n $this->container->make(DingoAuth\\Auth::class)->extend('jwt', function($app) {\n return new DingoAuth\\Provider\\JWT($app[\\Antares\\Modules\\Api\\Providers\\Auth\\JWT::class]);\n });\n }", "public static function registerSecurity(\\Silex\\Application $App){\n\n \t$App['security.authentication_listener.factory.wsse'] = $App->protect( function ($name, $options) use ($App) {\n\n\t // define the authentication provider object\n\t $App['security.authentication_provider.'.$name.'.wsse'] = $App->share(function () use ($options) {\n\t return new WsseProvider( new Authentication\\UserProvider(), $options);\n\t });\n\n\t // define the authentication listener object\n\t $App['security.authentication_listener.'.$name.'.wsse'] = $App->share(function () use ($App) {\n\t return new WsseListener($App['security'], $App['security.authentication_manager']);\n\t });\n\n\t return array(\n\t // the authentication provider id\n\t 'security.authentication_provider.'.$name.'.wsse',\n\t // the authentication listener id\n\t 'security.authentication_listener.'.$name.'.wsse',\n\t // the entry point id\n\t null,\n\t // the position of the listener in the stack\n\t 'pre_auth'\n\t );\n\t \n\t\t});\n\n }", "protected function registerSecurityFirewalls(Application $app) {\n $app->register(new SecurityServiceProvider(),[\n 'security.firewalls' => array(\n 'default' => array(\n 'pattern' => '^.*$',\n 'anonymous' => TRUE,\n 'form' => array('login_path' => '/user/login', 'check_path' => '/user/login_check'),\n 'logout' => array('logout_path' => '/user/logout'),\n 'users' => $app->share(function() use ($app) {\n return new UserProvider($app['db']);\n }),\n ),\n\n ),\n 'security.role_hierarchy' => array(\n 'ROLE_ADMIN' => array('ROLE_USER'),\n ),\n 'security.access_rules' => array(\n array('^/login$', 'IS_AUTHENTICATED_ANONYMOUSLY'),\n array('^/admin$', 'ROLE_ADMIN'),\n array('^/user$', 'ROLE_USER'),\n array('^.*$', 'IS_AUTHENTICATED_ANONYMOUSLY'),\n ),\n ]);\n }", "protected function initSecurity()\n {\n $this->di->setShared('security', function () {\n $security = new Security;\n $security->setWorkFactor(12);\n\n return $security;\n });\n }", "public function createAuthenticationProvider(ContainerBuilder $container, array $config): string;", "public function testRegistersListener()\n {\n $this->application[\"security.authentication_providers\"] = array(\n $this->getMock(\"\\Silex\\Provider\\SecurityServiceProvider\")\n );\n $this->application[\"users\"] = $this->getMockBuilder(\"\\Metagist\\UserProvider\")\n ->disableOriginalConstructor()\n ->getMock();\n $this->application[\"monolog\"] = $this->getMock(\"\\Psr\\Log\\LoggerInterface\");\n \n $listener = $this->application[OpauthSecurityServiceProvider::LISTENER];\n $this->assertInstanceOf(\"\\Metagist\\OpauthListener\", $listener);\n }", "public function __construct(Factory $auth)\n {\n $this->auth = $auth;\n }", "public function register( Application $app )\n {\n $app['security.apikey.authenticator'] = $app->protect(function () use ($app) {\n return new ApiKeyAuthenticator(\n $app['security.user_provider.apikey'](),\n $app['security.apikey.param'],\n $app['logger']\n );\n });\n\n $app['security.authentication_listener.factory.apikey'] = $app->protect(function ($name, $options) use ($app) {\n\n $app['security.authentication_provider.'.$name.'.apikey'] = $app->share(function () use ($app, $name) {\n return new SimpleAuthenticationProvider(\n $app['security.apikey.authenticator'](),\n $app['security.user_provider.apikey'](),\n $name\n );\n });\n\n $app['security.authentication_listener.' . $name . '.apikey'] = $app->share(function () use ($app, $name, $options) {\n return new SimplePreAuthenticationListener(\n $app['security'],\n $app['security.authentication_manager'],\n $name,\n $app['security.apikey.authenticator'](),\n $app['logger']\n );\n });\n\n return array(\n 'security.authentication_provider.'.$name.'.apikey',\n 'security.authentication_listener.'.$name.'.apikey',\n null, // entrypoint\n 'pre_auth' // position of the listener in the stack\n );\n });\n\n return true;\n }", "protected function getSecurity_FirewallService()\n {\n return $this->services['security.firewall'] = new \\Symfony\\Component\\Security\\Http\\Firewall(new \\Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap($this, array('security.firewall.map.context.dev' => new \\Symfony\\Component\\HttpFoundation\\RequestMatcher('^/(_(profiler|wdt)|css|images|js)/'), 'security.firewall.map.context.main' => new \\Symfony\\Component\\HttpFoundation\\RequestMatcher('^/'))), $this->get('event_dispatcher'));\n }", "public function __construct(AuthFactory $auth)\n {\n $this->auth = $auth;\n }", "protected function registerAuthenticator()\n {\n $this->app->singleton('auth', function ($app) {\n return new AuthManager($app);\n });\n }", "protected function registerGuard()\n {\n Auth::extend('passport', function ($app, $name, array $config) {\n return tap($this->makeGuard($config), function ($guard) {\n $this->app->refresh('request', $guard, 'setRequest');\n });\n });\n }", "protected function getSecurity_EncoderFactoryService()\n {\n return $this->services['security.encoder_factory'] = new \\Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactory(array('Victoire\\\\Bundle\\\\UserBundle\\\\Entity\\\\User' => array('class' => 'Symfony\\\\Component\\\\Security\\\\Core\\\\Encoder\\\\BCryptPasswordEncoder', 'arguments' => array(0 => 13))));\n }", "public function register(CApplication $app)\n\t{\n\t\tparent::register($app);\n\n\t\t$app['security.user_provider.admin'] = $app->share(function() use ($app) {\n\t\t\treturn new PlatformUserProvider($app->getServiceUsers(), $app->getServiceUsersAuth());\n\t\t});\n\n\t\t$app['security.user_provider.public'] = $app->share(function() use ($app) {\n\t\t\treturn $app['security.user_provider.admin'];\n\t\t});\n\n\t\t$app['security.encoder_factory'] = $app->share(function() use ($app) {\n\t\t\treturn new EncoderFactory(array(\n\t\t\t\t'Symfony\\Component\\Security\\Core\\User\\UserInterface' => new Pbkdf2PasswordEncoder(),\n\t\t\t));\n\t\t});\n\n\t\t$app['security.authentication.success_handler.admin'] =\n\t\t\t$app->share(function() use ($app) {\n\t\t\t\treturn new UserAuthenticationSuccessHandler($app['security.http_utils'], [], $app);\n\t\t\t}\n\t\t);\n\n\t\t$app['security.authentication.failure_handler.admin'] =\n\t\t\t$app->share(function() use ($app) {\n\t\t\t\treturn new UserAuthenticationFailureHandler($app['kernel'], $app['security.http_utils'], [\n\t\t\t\t\t\t'failure_path' => '/login.html',\n\t\t\t\t], $app);\n\t\t\t}\n\t\t);\n\n\t\t/** @var callable $logoutProto */\n\t\t$logoutProto = $app['security.authentication_listener.logout._proto'];\n\t\t$app['security.authentication_listener.logout._proto'] = $app->protect(function($name, $options) use ($app, $logoutProto) {\n\t\t\treturn $app->share(function() use ($app, $name, $options, $logoutProto) {\n\t\t\t\t$prototype = $logoutProto($name, $options);\n\t\t\t\t/** @var LogoutListener $listener */\n\t\t\t\t$listener = $prototype($app);\n\t\t\t\t$listener->addHandler(new UserLogoutHandler());\n\t\t\t\treturn $listener;\n\t\t\t});\n\t\t});\n\n\t\t// Security voters.\n\t\t$app['security.voters.entity_erase'] = $app->share(function($app) {\n\t\t\treturn new EntityEraseVoter($app);\n\t\t});\n\n\t\t$app['security.voters'] = $app->extend('security.voters', function($voters) use ($app) {\n\t\t\tarray_unshift($voters, $app['security.voters.entity_erase']);\n\n\t\t\treturn $voters;\n\t\t});\n\t}", "protected function registerFactory()\n {\n $this->app->singleton('fitbit.factory', function () {\n return new FitbitFactory();\n });\n\n $this->app->alias('fitbit.factory', FitbitFactory::class);\n }", "protected function registerFactory()\n {\n $this->app->bindShared('dropbox.factory', function ($app) {\n return new Factories\\DropboxFactory();\n });\n\n $this->app->alias('dropbox.factory', 'GrahamCampbell\\Dropbox\\Factories\\DropboxFactory');\n }", "private function initSecurity()\n {\n // Map user services, factories and values\n $this->di->mapFactory('core.security.user', '\\Core\\Security\\User\\User');\n $this->di->mapValue('core.security.user.current', $this->di->get('core.security.user'));\n $this->di->mapService('core.security.user.handler', '\\Core\\Security\\User\\UserHandler', [\n 'db.default'\n ]);\n\n // Create a security related logger service\n\n /* @var $logger \\Core\\Logger\\Logger */\n $logger = $this->di->get('core.logger');\n $logger->registerStream(new \\Core\\Logger\\Streams\\FileStream(LOGDIR . '/security.log'));\n\n $this->di->mapValue('core.logger.security', $logger);\n\n // Bancheck\n $this->di->mapService('core.security.ban.check', '\\Core\\Security\\Ban\\BanCheck', 'db.default');\n\n $this->bancheck = $this->di->get('core.security.ban.check');\n $this->bancheck->setIp($_SERVER['REMOTE_ADDR']);\n $this->bancheck->setTries($this->config->get('Core', 'security.ban.tries'));\n $this->bancheck->setTtlBanLogEntry($this->config->get('Core', 'security.ban.ttl.log'));\n $this->bancheck->setTtlBan($this->config->get('Core', 'security.ban.ttl.ban'));\n $this->bancheck->setLogger($logger);\n\n if ($this->bancheck->checkBan()) {\n // @TODO Create BanHandler!!!\n die('You\\'ve been banned');\n }\n\n // Create the current user object\n $this->user = $this->di->get('core.security.user.current');\n\n // Get salt from config\n $salt = $this->config->get('Core', 'security.encrypt.salt');\n\n // Handle login\n $this->di->mapService('core.security.login', '\\Core\\Security\\Login\\Login', 'db.default');\n\n /* @var $login \\Core\\Security\\Login\\Login */\n $login = $this->di->get('core.security.login');\n $login->setBan((bool) $this->config->get('Core', 'security.ban.active'));\n $login->setCookieName($this->config->get('Core', 'cookie.name'));\n $login->setRemember($this->config->get('Core', 'security.login.autologin.active'));\n $login->setLogger($logger);\n\n if (!empty($salt)) {\n $login->setSalt($salt);\n }\n\n // Not logged in and active autologin?\n if ($login->loggedIn()) {\n $id = $login->getId();\n }\n elseif ($login->getRemember()) {\n\n $this->di->mapService('core.security.login.autologin', '\\Core\\Security\\Login\\Autologin', 'db.default');\n\n /* @var $autologin \\Core\\Security\\Login\\Autologin */\n $autologin = $this->di->get('core.security.login.autologin');\n $autologin->setExpiresAfter($this->config->get('Core', 'security.login.autologin.expires_after'));\n $autologin->setCookieName($this->config->get('Core', 'cookie.name'));\n $autologin->setLogger($logger);\n\n $id = $autologin->doAutoLogin();\n }\n\n /* @var $userhandler \\Core\\Security\\User\\UserHandler */\n $userhandler = $this->di->get('core.security.user.handler');\n $userhandler->setLogger($logger);\n\n if (!empty($salt)) {\n $userhandler->setSalt($salt);\n }\n\n // Userdata to load?\n if (!empty($id)) {\n $this->user->setId($id);\n $userhandler->loadUser($this->user);\n }\n\n // Generate a session token that can be used for sending data in session context.\n $token = new SessionToken();\n\n if (!$token->exists()) {\n $token->generate();\n }\n\n $this->di->mapValue('core.security.form.token', $token->getToken());\n $this->di->mapValue('core.security.form.token.name', $this->config->get('Core', 'security.form.token'));\n }", "protected function registerFactory()\n {\n $this->app->singleton('sendwithus.factory', function () {\n return new SendWithUsFactory();\n });\n\n $this->app->alias('sendwithus.factory', SendWithUsFactory::class);\n }", "protected function registerServices()\n {\n $this->app->bind(SocialProvidersManager::class, SocialiteProvidersManager::class);\n\n $this->app->singleton(TwoFactor::class, function () {\n return new AuthyTwoFactor(new Client());\n });\n }", "private function registerFirewall()\n {\n $this->app->singleton('firewall', function ($app) {\n $app['firewall.loaded'] = true;\n\n $this->firewall = new Firewall(\n $app['firewall.config'],\n $app['firewall.datarepository'],\n $app['request'],\n $attackBlocker = $app['firewall.attackBlocker'],\n $app['firewall.messages']\n );\n\n $attackBlocker->setFirewall($this->firewall);\n\n return $this->firewall;\n });\n }", "protected function registerHybridAuth()\n\t{\n\t\t$this->app->bind('authentify.hybridauth', function($app, $url)\n\t\t{\n\t\t\treturn new Hybrid_Auth(array(\n\t\t\t\t'base_url' => $url,\n\t\t\t\t'providers' => $app['config']->get('authentify::social.hybridauth')\n\t\t\t)); \n\t\t});\n\t}", "protected function registerAuthorizationServer()\n {\n $this->app->singleton(AuthorizationServer::class, function () {\n return tap($this->makeAuthorizationServer(), function ($server) {\n $server->enableGrantType(\n $this->makeAuthCodeGrant(), Passport::tokensExpireIn()\n );\n\n $server->enableGrantType(\n $this->makeRefreshTokenGrant(), Passport::tokensExpireIn()\n );\n\n $server->enableGrantType(\n $this->makePasswordGrant(), Passport::tokensExpireIn()\n );\n\n $server->enableGrantType(\n new PersonalAccessGrant, new DateInterval('P1D')\n );\n\n $server->enableGrantType(\n new ClientCredentialsGrant, Passport::tokensExpireIn()\n );\n\n if (Passport::$implicitGrantEnabled) {\n $server->enableGrantType(\n $this->makeImplicitGrant(), Passport::tokensExpireIn()\n );\n }\n });\n });\n }", "protected function registerFactory()\n {\n $this->app->singleton('freshdesk.factory', function () {\n return new FreshdeskFactory();\n });\n $this->app->alias('freshdesk.factory', FreshdeskFactory::class);\n }", "public function register()\n {\n //$_SESSION['prov'] = 'this will be called at bootstrapping application, before EventServicesProvider';\n }", "public function register(\\Phalcon\\DiInterface $di)\n {\n $di->set(self::SERVICE_NAME, function() {\n $aclAdapter = new \\Vegas\\Security\\Acl\\Adapter\\Mongo();\n $acl = new \\Vegas\\Security\\Acl($aclAdapter);\n\n return $acl;\n });\n }", "public static function register(): void\n {\n Route::resource('otp', OtpController::class, [\n 'only' => ['create', 'store'],\n 'prefix' => 'otp',\n ])->middleware(['web', 'auth']);\n }", "public function register(ServiceProviderInterface $instance);", "public function registerAuthServices(Container $container)\n {\n static $provider = null;\n\n if ($provider === null) {\n $provider = new AuthServiceProvider();\n }\n\n $provider->register($container);\n }", "protected function registerDigitalOceanFactory()\n {\n $this->app->singleton('digitalocean.factory', function (Container $app) {\n $adapter = $app['digitalocean.adapterfactory'];\n\n return new DigitalOceanFactory($adapter);\n });\n\n $this->app->alias('digitalocean.factory', DigitalOceanFactory::class);\n }", "public function register()\n {\n API::error(function (AuthorizationException $exception)\n {\n //如果出现权限异常,请先检查策略是否有再服务提供者中进行绑定\n abort(403, $exception->getMessage());\n });\n\n API::error(function (AuthenticationException $exception)\n {\n abort(401, $exception->getMessage());\n });\n }", "public function testOrgApacheSlingJcrResourcesecurityImplResourceAccessGateFactory()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/org.apache.sling.jcr.resourcesecurity.impl.ResourceAccessGateFactory';\n\n $crawler = $client->request('POST', $path);\n }", "protected function registerPermissionsToGate()\n {\n if (!$this->app['config']->get('laratrust.permissions_as_gates')) {\n return;\n }\n\n app(Gate::class)->before(function (Authorizable $user, string $ability) {\n if (method_exists($user, 'hasPermission')) {\n return $user->hasPermission($ability) ?: null;\n }\n });\n }", "public function __construct(Factories $factory, bool $getShared = true)\n {\n $this->config = $factory::config('Auth', ['getShared' => $getShared]);\n }", "public function registerFactories()\n {\n if (! app()->environment('production') && $this->app->runningInConsole()) {\n app(Factory::class)->load(module_path('FrontModule', 'Database/factories'));\n }\n }", "public function boot(Guard $auth, ResponseFactory $responseFactory)\n\t{\n $this->publishes([\n __DIR__ . '/../config/nusso.php' => config_path('nusso.php'),\n ]);\n\n // make singleton?\n $this->app->bind('Nusait\\NuSSO\\NuSSO', function($app) use ($auth, $responseFactory) {\n $config = $this->app['config']->get('nusso');\n $config['model'] = $app['config']->get('auth.model');\n $ldap = new NuLdap(\n $app['config']->get('ldap.rdn'),\n $app['config']->get('ldap.password'),\n $app['config']->get('ldap.host'),\n $app['config']->get('ldap.port')\n );\n return new NuSSO($auth, $responseFactory, $ldap, $config);\n });\n\t}", "public function register() {\n $this->app->bindShared('authorizer', function() {\n $config = $this->app['config'];\n\n if ( ! $config->has('authorizer.user')) {\n throw new \\LogicException('A \\'authorizer.user\\' must be defined in the application config.');\n }\n\n $user = $config->get('authorizer.user');\n $config = $config->get('authorizer');\n\n // The `user` option can be a Closure. If it is, get the return value\n if (is_callable($user)) {\n $user = call_user_func($user);\n }\n\n return new Policy($user, $config);\n });\n }", "public function registerFactories()\n {\n if (! app()->environment('production') && $this->app->runningInConsole()) {\n app(Factory::class)->load(module_path($this->moduleName, 'Database/factories'));\n }\n }", "protected function registerAdapterFactory()\n {\n $this->app->singleton('digitalocean.adapterfactory', function () {\n return new AdapterFactory();\n });\n\n $this->app->alias('digitalocean.adapterfactory', AdapterFactory::class);\n }", "public function registerServices(DiInterface $di)\n {\n self::acl($di);\n }", "public function register()\n {\n if ( ! Config::get('oauth2server') )\n {\n throw new Exception('Oauth2Server not configured. See: docs');\n }\n\n $this->app['Oauth2Server'] = $this->app->share(function($app)\n {\n switch ( Config::get('oauth2server.storage_engine', 'pdo') )\n {\n case 'pdo':\n $storage = new OAuth2\\Storage\\Pdo( \n DB::connection(\n Config::get('oauth2server.connection_name', \n Config::get('database.default')) )->getPdo() \n );\n break;\n case 'redis':\n $storage = new OAuth2\\Storage\\Redis( Redis::connection() );\n break;\n default:\n throw new Exception('No valid storage engine specified. Supported engines include: pdo and redis.');\n break;\n }\n\n return new OAuth2\\Server( $storage, Config::get('oauth2server') );\n });\n }", "public function addProvider(AuthenticationProviderInterface $provider, $provider_id, $priority = 0, $global = FALSE);", "protected function getAuthService()\n {\n return $this->services['auth'] = new \\phpbb\\auth\\auth();\n }", "public static function factory($config = array())\n\t{\n\t\treturn new Auth($config);\n\t}", "public function register()\n {\n /**\n * Sets third party service providers that are only needed on local environments\n */\n if ($this->app->environment() == 'local') {\n /**\n * Loader for registering facades\n */\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n\n /**\n * Load third party local providers and facades\n */\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n $loader->alias('Debugbar', \\Barryvdh\\Debugbar\\Facade::class);\n\n $this->app->register(\\Laracasts\\Generators\\GeneratorsServiceProvider::class);\n }\n $this->app->bind('soaClient', function ($app,$params) {\n $cloud = SOA::getInstance($params[0]);\n if($cloud->getEnv()){\n return $cloud;\n }\n $cloud->setEncodeType(true, true);\n $config = config('soa.'.$params[0]);\n $cloud->putEnv('app', $config['app']);\n $cloud->putEnv('appKey', $config['appKey']);\n $cloud->setServers($config['hosts']);\n return $cloud;\n });\n $this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');\n }", "protected function registerServices()\n {\n $this->singleton('request', function ($app) {\n return new Request($app);\n });\n\n $this->singleton('response', function ($app) {\n return new Response($app);\n });\n\n $this->singleton('route', function ($app) {\n return new Route($app);\n });\n\n $this->singleton('view', function ($app) {\n return new View($app);\n });\n\n $this->singleton('exception', function ($app) {\n return new Exception($app, $app->exception);\n });\n\n $this->singleton('crypt', function ($app) {\n return new Crypt($app->getSecret());\n });\n\n $this->singleton('cookie', function ($app) {\n return new Cookie($app, $app->getConfig('state')['cookie']);\n });\n\n $this->singleton('session', function ($app) {\n return new Session(new SessionDatabaseHandler($app, $app->getConfig('state')['session']));\n });\n\n return $this->factory();\n }", "public function register()\n {\n $this->app->singleton('forrest', function ($app) {\n\n // Config options\n $settings = config('forrest');\n $storageType = config('forrest.storage.type');\n $authenticationType = config('forrest.authentication');\n\n // Dependencies\n $httpClient = $this->getClient();\n $input = new LaravelInput(app('request'));\n $event = new LaravelEvent(app('events'));\n $encryptor = new LaravelEncryptor(app('encrypter'));\n $redirect = $this->getRedirect();\n $storage = $this->getStorage($storageType);\n\n $refreshTokenRepo = new RefreshTokenRepository($encryptor, $storage);\n $tokenRepo = new TokenRepository($encryptor, $storage);\n $resourceRepo = new ResourceRepository($storage);\n $versionRepo = new VersionRepository($storage);\n $instanceURLRepo = new InstanceURLRepository($tokenRepo, $settings);\n $stateRepo = new StateRepository($storage);\n\n $formatter = new JSONFormatter($tokenRepo, $settings);\n\n switch ($authenticationType) {\n case 'OAuthJWT':\n $forrest = new OAuthJWT(\n $httpClient,\n $encryptor,\n $event,\n $input,\n $redirect,\n $instanceURLRepo,\n $refreshTokenRepo,\n $resourceRepo,\n $stateRepo,\n $tokenRepo,\n $versionRepo,\n $formatter,\n $settings);\n break;\n case 'WebServer':\n $forrest = new WebServer(\n $httpClient,\n $encryptor,\n $event,\n $input,\n $redirect,\n $instanceURLRepo,\n $refreshTokenRepo,\n $resourceRepo,\n $stateRepo,\n $tokenRepo,\n $versionRepo,\n $formatter,\n $settings);\n break;\n case 'UserPassword':\n $forrest = new UserPassword(\n $httpClient,\n $encryptor,\n $event,\n $input,\n $redirect,\n $instanceURLRepo,\n $refreshTokenRepo,\n $resourceRepo,\n $stateRepo,\n $tokenRepo,\n $versionRepo,\n $formatter,\n $settings);\n break;\n case 'UserPasswordSoap':\n $forrest = new UserPasswordSoap(\n $httpClient,\n $encryptor,\n $event,\n $input,\n $redirect,\n $instanceURLRepo,\n $refreshTokenRepo,\n $resourceRepo,\n $stateRepo,\n $tokenRepo,\n $versionRepo,\n $formatter,\n $settings);\n break;\n default:\n $forrest = new WebServer(\n $httpClient,\n $encryptor,\n $event,\n $input,\n $redirect,\n $instanceURLRepo,\n $refreshTokenRepo,\n $resourceRepo,\n $stateRepo,\n $tokenRepo,\n $versionRepo,\n $formatter,\n $settings);\n break;\n }\n\n return $forrest;\n });\n }", "public function newInstance()\n {\n return new Auth($this->segment);\n }", "public function boot(GateContract $gate){\n\n\n parent::registerPolicies($gate);\n\n\n // je determine une politique d'authorisation sur mon user\n // superadmin est le nom de ma politique de sécurité\n // $user est mon utilisateur connecté\n\n $gate->define('superadmin',function ($user){\n\n return $user->super_admin == 1? true :false;\n\n });\n\n\n $gate->define('hasmovie',function ($user,$movie){\n\n return $movie->administrators_id == $user->id;\n\n });\n\n $gate->define('hasactor',function ($user,$actor){\n\n return $actor->administrators_id == $user->id;\n\n });\n\n $gate->define('date_expire',function ($user){\n\n\n $date = new \\DateTime('now');\n return new\\DateTime($user->date_expire) > $date;\n\n });\n\n\n }", "public function register()\n {\n $this->app->singleton(SamlAuth::class, function () {\n $auth = SamlAuth::loadOneLoginAuthFromIpdConfig(config('samlidp_settings.idp.name'));\n return new SamlAuth($auth);\n });\n }", "public function registerFactories()\n {\n $this->checkModuleName();\n if (! app()->environment('production') && $this->app->runningInConsole()) {\n app(Factory::class)->load(module_path($this->moduleName, 'Database/factories'));\n }\n }", "private function registerAccess()\n {\n $this->app->bind('access', function($app) {\n return new Access($app);\n });\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 boot(GateContract $gate) {\n $this->registerPolicies($gate);\n\n\n// $permissions = Permission::with('role')->get();\n//\n// foreach ($permissions as $permission) {\n// $gate->define($permission->name, function($user) use ($permission) {\n// return $user->hasRole($permission);\n// });\n// }\n }", "public function register()\n {\n $this->registerAuthenticator();\n }", "public static function factory($src) \n {\n return new Oauth($src);\n }", "public function testOrgApacheJackrabbitOakSpiSecurityAuthenticationExternalImplEx()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModuleFactory';\n\n $crawler = $client->request('POST', $path);\n }", "public function boot()\n {\n \n // Aqui você pode definir como deseja que os usuários sejam autenticados para o seu Lumen\n // application. O retorno de chamada que recebe a instância de solicitação recebida\n // deve retornar uma instância do usuário ou nulo. Você é livre para obter\n // a instância do usuário por meio de um token de API ou qualquer outro método necessário.\n\n $this->app['auth']->viaRequest('api', function ($request) {\n return \\App\\Aluno::where('email',$request->input('email'))->first();\n });\n }", "public function registerPlugin(FactoryInterface $factory);", "public function register()\n {\n $this->app->bind(ClientRepositoryInterface::class, function() {\n return new ClientRepository();\n });\n\n $this->app->bind(AccessTokenRepositoryInterface::class, function() {\n return new AccessTokenRepository();\n });\n\n $this->app->bind(ScopeRepositoryInterface::class, function() {\n return new ScopeRepository();\n });\n\n $this->app->bind(ResourceServer::class, function() {\n $accessTokenRespository = new AccessTokenRepository();\n $publicKey = base_path('public.key');\n return new ResourceServer($accessTokenRespository, $publicKey);\n });\n\n $this->app->bind(AuthorizationServer::class, function() {\n\n $clientRepository = new ClientRepository();\n $scopeRepository = new ScopeRepository();\n $accessTokenRepository = new AccessTokenRepository();\n $authCodeRepository = new AuthCodeRepository();\n $refreshTokenRepository = new RefreshTokenRepository();\n\n\n $privateKey = base_path('private.key');\n $publicKey = base_path('public.key');\n $userRepository = new UserRepository();\n $refreshTokenRepository = new RefreshTokenRepository();\n $intervaloPadrao = new \\DateInterval('P12M');\n\n\n $server = new AuthorizationServer($clientRepository, $accessTokenRepository, $scopeRepository, $privateKey, $publicKey);\n $server->enableGrantType(new ClientCredentialsGrant(), $intervaloPadrao);\n $server->enableGrantType(new PasswordGrant($userRepository, $refreshTokenRepository), $intervaloPadrao);\n\n $authGrant = new AuthCodeGrant($authCodeRepository, $refreshTokenRepository, $intervaloPadrao);\n $authGrant->setRefreshTokenTTL(new \\DateInterval('P12M'));\n \n \n $refreshGrant = new \\League\\OAuth2\\Server\\Grant\\RefreshTokenGrant($refreshTokenRepository);\n $refreshGrant->setRefreshTokenTTL(new \\DateInterval('P12M'));\n\n $server->enableGrantType($authGrant, $intervaloPadrao);\n $server->enableGrantType($refreshGrant, $intervaloPadrao);\n\n\n\n return $server;\n\n });\n\n }", "public function boot(): void\n {\n $adapter = $this->app->make(AdapterInterface::class);\n\n /* @phpstan-ignore-next-line */\n $this->app['auth']->viaRequest(\n 'remote-token-auth',\n fn (Request $request): Authenticatable => $adapter->authorize($request)\n );\n }", "public function boot(GateContract $gate)\n {\n $this->registerPolicies($gate);\n\n\n\n #_______________________________ Modulo Proyectos ___________________________\n $gate->define('proyectos', function ($user, $method){\n // $this->verificacion();\n //dd($user->validacionExcepciones($method));\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n });\n #_______________________________ Modulo Roles ___________________________\n $gate->define('roles', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n });\n\n #_______________________________ Modulo Dominios ____________________________\n $gate->define('dominios', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n }); \n #_______________________________ Modulo Clientes ____________________________\n $gate->define('clientes', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n }); \n #___________________________ Modulo Empresas Proveedoras ____________________\n $gate->define('empresasProveedoras', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n }); \n #_________________________________ Modulo Etapas ____________________________\n $gate->define('etapas', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n }); \n #______________________________ Modulo Plantillas ___________________________\n $gate->define('plantillas', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n }); \n #_________________________________ Modulo Tipos de Proyecto ____________________________\n $gate->define('tipo_proyectos', function ($user, $method){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin() || ($user->isSocio() && $user->validacionExcepciones($method));\n });\n #_________________________________ Modulo Etapas ____________________________\n $gate->define('AdministradorUsuarios', function ($user){\n // $this->verificacion();\n return $user->isSuperAdmin() || $user->isAdmin();\n });\n #_________________________________ Modulo Administrar Empresas ____________________________\n $gate->define('admin_empresas', function ($user){\n // $this->verificacion();\n return $user->isSuperAdmin();\n // return $user->isAdmin();\n });\n }", "public function registerAuthorizationServer()\n {\n $this->app['oauth2.authorization-server'] = $this->app->share(function ($app) {\n\n $config = $app['config']->get('oauth2-server-laravel::oauth2');\n\n // TODO: add authcode storage\n $server = $app->make('League\\OAuth2\\Server\\AuthorizationServer')\n ->setClientStorage($app->make('League\\OAuth2\\Server\\Storage\\ClientInterface'))\n ->setSessionStorage($app->make('League\\OAuth2\\Server\\Storage\\SessionInterface'))\n ->setAccessTokenStorage($app->make('League\\OAuth2\\Server\\Storage\\AccessTokenInterface'))\n ->setRefreshTokenStorage($app->make('League\\OAuth2\\Server\\Storage\\RefreshTokenInterface'))\n ->setScopeStorage($app->make('League\\OAuth2\\Server\\Storage\\ScopeInterface'))\n ->requireScopeParam($config['scope_param'])\n ->setDefaultScope($config['default_scope'])\n ->requireStateParam($config['state_param'])\n ->setScopeDelimeter($config['scope_delimiter'])\n ->setAccessTokenTTL($config['access_token_ttl']);\n\n // add the supported grant types to the authorization server\n foreach ($config['grant_types'] as $grantIdentifier => $grantParams) {\n\n $grant = new $grantParams['class'];\n $grant->setAccessTokenTTL($grantParams['access_token_ttl']);\n\n if (array_key_exists('callback', $grantParams)) {\n $grant->setVerifyCredentialsCallback($grantParams['callback']);\n }\n if (array_key_exists('auth_code_ttl', $grantParams)) {\n $grant->setAuthCodeTTL($grantParams['auth_code_ttl']);\n }\n if (array_key_exists('refresh_token_ttl', $grantParams)) {\n $grant->setRefreshTokenTTL($grantParams['refresh_token_ttl']);\n }\n\n $server->addGrantType($grant);\n }\n\n $server->setRequest($app['request']);\n\n return new AuthorizationServerDecorator($server);\n\n return $server;\n\n });\n }", "public function getAuthenticationProvider();", "public function register()\n {\n DB::listen(function ($query) {\n// Log::debug($query->sql, $query->bindings);\n if (env('APP_ENV') == 'local') {\n Log::debug(vsprintf(str_replace(\"?\", \"'%s'\", $query->sql), $query->bindings));//替换sql中的变量\n }\n });\n //\n $this->app->bind(AuthInterface::class, AuthService::class);\n }", "public function register(){}", "protected function getSecurity_Authentication_ManagerService()\n {\n $this->services['security.authentication.manager'] = $instance = new \\Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationProviderManager(array(0 => new \\Symfony\\Component\\Security\\Core\\Authentication\\Provider\\DaoAuthenticationProvider(${($_ = isset($this->services['fos_user.user_provider.username']) ? $this->services['fos_user.user_provider.username'] : $this->getFosUser_UserProvider_UsernameService()) && false ?: '_'}, ${($_ = isset($this->services['security.user_checker']) ? $this->services['security.user_checker'] : $this->getSecurity_UserCheckerService()) && false ?: '_'}, 'main', $this->get('security.encoder_factory'), true), 1 => new \\Symfony\\Component\\Security\\Core\\Authentication\\Provider\\AnonymousAuthenticationProvider('594831ac756863.97507592')), true);\n\n $instance->setEventDispatcher($this->get('event_dispatcher'));\n\n return $instance;\n }", "public function boot()\n {\n require __DIR__ . '/helpers.php';\n\n $this->app['auth']->extend('custom', function ($app, $name, array $config) {\n $guard = new Guard($name, $app['auth']->createUserProvider($config['provider']), $app['session.store']);\n $guard->setCookieJar($app['cookie']);\n $guard->setDispatcher($app['events']);\n $guard->setRequest($app->refresh('request', $guard, 'setRequest'));\n\n return $guard;\n });\n\n $this->app['auth']->provider('custom', function ($app) {\n return new EloquentUserProvider(\n $app[Hasher::class],\n $app[UserRepository::class],\n $app[TeamRepository::class]\n );\n });\n\n $this->registerPolicies();\n }", "public static function factory($config = array())\n\t{\n\t\treturn new Simple_Auth($config);\n\t}", "public function boot()\n {\n app(AuthorizationServer::class)->enableGrantType(\n $this->makeFirebaseGrant(), Passport::tokensExpireIn()\n );\n }", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register();", "public function register()\n\t{\n\t\t$this->registerAuthInstall();\n\t}", "public function register(\\Silex\\Application $app)\n {\n parent::register($app);\n $this->registerFactory($app);\n }", "public function boot(GateContract $gate)\n {\n $this->registerPolicies($gate);\n\n\n $gate->define('auth', function ($user, $role=NULL){\n//dd('ops');\n if($role===NULL){\n\n //dd(Route::current()->getAction());\n\n $actions = Route::current()->getAction();\n\n //dd($actions);\n\n if(! isset($actions['role']))\n return false;\n\n $role = $actions['role'];\n }\n \n $objRole = new Role();\n\n $roles = $objRole->roles($user->id);\n\n //dd($roles);\n\n //dd(in_array($role, $roles));\n\n if(in_array($role, $roles)){\n //dd('1');\n return true;\n }else{\n //dd('2');\n return false;\n }\n\n\n });\n\n //\n }", "protected function getSecurity_FirewallService()\n {\n return $this->services['security.firewall'] = new \\Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener(new \\Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap(new \\Symfony\\Component\\DependencyInjection\\ServiceLocator(array('security.firewall.map.context.api' => function () {\n return ${($_ = isset($this->services['security.firewall.map.context.api']) ? $this->services['security.firewall.map.context.api'] : $this->load('getSecurity_Firewall_Map_Context_ApiService.php')) && false ?: '_'};\n }, 'security.firewall.map.context.login' => function () {\n return ${($_ = isset($this->services['security.firewall.map.context.login']) ? $this->services['security.firewall.map.context.login'] : $this->load('getSecurity_Firewall_Map_Context_LoginService.php')) && false ?: '_'};\n })), new RewindableGenerator(function () {\n yield 'security.firewall.map.context.login' => ${($_ = isset($this->services['security.request_matcher.yg2ff4m']) ? $this->services['security.request_matcher.yg2ff4m'] : $this->services['security.request_matcher.yg2ff4m'] = new \\Symfony\\Component\\HttpFoundation\\RequestMatcher('^/api/login')) && false ?: '_'};\n yield 'security.firewall.map.context.api' => ${($_ = isset($this->services['security.request_matcher.x1icpav']) ? $this->services['security.request_matcher.x1icpav'] : $this->services['security.request_matcher.x1icpav'] = new \\Symfony\\Component\\HttpFoundation\\RequestMatcher('^/api')) && false ?: '_'};\n }, 2)), ${($_ = isset($this->services['event_dispatcher']) ? $this->services['event_dispatcher'] : $this->getEventDispatcherService()) && false ?: '_'}, ${($_ = isset($this->services['security.logout_url_generator']) ? $this->services['security.logout_url_generator'] : $this->getSecurity_LogoutUrlGeneratorService()) && false ?: '_'});\n }", "public function register($provider) : ServiceProvider;", "protected function registerRegistrarObject(){\n $this->app->singleton('Permit\\Registration\\RegistrarInterface', function($app){\n\n $registrar = $app->make('Permit\\Registration\\Registrar');\n\n // Some legacy events. @depracted\n $registrar->onBefore('register', function () {\n $this->app->make('events')->fire('auth.registered', func_get_args());\n });\n\n $registrar->onAfter('register', function () {\n $this->app->make('events')->fire('auth.activation-reserved', func_get_args());\n });\n\n return $registrar;\n\n });\n\n }", "function iarb_extauth()\n{\n\tglobal $context, $modSettings;\n\n\tif (empty($modSettings['extauth_master']))\n\t{\n\t\treturn;\n\t}\n\n\t// Registration Screen ?\n\tif ((!empty($context['site_action']) && $context['site_action'] === 'register')\n\t\t&& (isset($_GET['action']) && $_GET['action'] === 'register'))\n\t{\n\t\t// Load the enabled providers\n\t\trequire_once(SUBSDIR . '/Extauth.subs.php');\n\t\t$context['enabled_providers'] = extauth_enabled_providers();\n\n\t\tif ($modSettings['requireAgreement'] && empty($_POST['accept_agreement']))\n\t\t{\n\t\t\tTemplate_Layers::instance()->addBegin('extauth_register');\n\t\t}\n\t}\n}", "public function boot(GateContract $gate)\n {\n parent::registerPolicies($gate);\n //\n }", "public function register() {}", "public function rest_api_init_action() {\r\n \r\n register_rest_route('api-bearer-auth/v1', '/login', [\r\n 'methods' => 'POST',\r\n 'callback' => [$this, 'callback_login'],\r\n 'args' => [\r\n 'username' => [\r\n 'required' => true,\r\n ],\r\n 'password' => [\r\n 'required' => true,\r\n ],\r\n ]\r\n ]);\r\n \r\n register_rest_route('api-bearer-auth/v1', '/tokens/refresh', [\r\n 'methods' => 'POST',\r\n 'callback' => [$this, 'callback_refresh_token'],\r\n 'args' => [\r\n 'token' => [\r\n 'required' => true\r\n ]\r\n ]\r\n ]);\r\n \r\n }", "public function getServiceConfig()\n {\n return array(\n 'factories' => array(\n 'AuthService' => function($sm) {\n // Make sure database is started.\n $sm->get('Model');\n \n $authService = new AuthenticationService();\n $adapter = new \\Swaggerdile\\Authentication\\Adapter\\Wordpress();\n\n $authService->setAdapter($adapter);\n\n // Get configuration\n $config = $sm->get('config');\n\n $authService->setStorage(new CookieBase(\n $config['cookiebase_short_secret'],\n $config['cookiebase_secret'],\n $config['cookiebase_name'],\n $config['cookiebase_timeout'],\n $config['cookiebase_domain']));\n\n return $authService;\n },\n\n 'IsAdult' => function($sm) {\n $request = $sm->get('Request');\n\n $cookie = $request->getCookie();\n return (is_object($cookie) &&\n $cookie->offsetExists('swaggerdile_opt_in') &&\n (int)$cookie->swaggerdile_opt_in);\n },\n\n 'Model' => function($sm) {\n $dbAdapter = $sm->get('\\Zend\\Db\\Adapter\\Adapter');\n \\Zend\\Db\\TableGateway\\Feature\\GlobalAdapterFeature::setStaticAdapter($dbAdapter);\n\n if($sm->get('IsAdult')) {\n \\Swaggerdile\\Model\\ModelTable::enableAdult();\n } else{\n \\Swaggerdile\\Model\\ModelTable::disableAdult();\n }\n\n return \\Swaggerdile\\Model\\Factory::getInstance();\n },\n\n 'Media' => function($sm) {\n $config = $sm->get('config');\n return new \\Swaggerdile\\Media( $config['media']['publicMediaBasePath'],\n $config['media']['privateMediaBasePath']);\n },\n\n 'Wordpress' => function($sm) {\n $config = $sm->get('config');\n return new \\Swaggerdile\\Wordpress( $config['wordpress_api_url'],\n $config['wordpress_api_key']);\n },\n\n 'Email' => function($sm) {\n $config = $sm->get('config');\n return new \\Swaggerdile\\Mail($config['mail']);\n },\n\n 'Crypto' => function($sm) {\n $config = $sm->get('config');\n return new \\Swaggerdile\\Crypto($config['crypto']);\n },\n\n 'Cache' => function($sm) {\n $config = $sm->get('config');\n\n if(array_key_exists('cloudflare_zone', $config)) {\n return new \\Swaggerdile\\Cache(\n $config['cloudflare_zone'],\n $config['cloudflare_user'],\n $config['cloudflare_key']);\n } else {\n return new \\Swaggerdile\\Cache('', '', '');\n }\n }, \n\n 'SDExceptionStrategy' => function($sm) {\n $strategy = new \\Swaggerdile\\Mvc\\View\\Http\\ExceptionStrategy();\n\n // @TODO : make this configurable\n $strategy->setDisplayExceptions(false);\n $strategy->setExceptionTemplate(\"error/index\");\n\n return $strategy;\n },\n\n 'SDRouteNotFoundStrategy' => function($sm) {\n $strategy = new \\Swaggerdile\\Mvc\\View\\Http\\RouteNotFoundStrategy();\n\n // @TODO : make this configurable\n $strategy->setDisplayExceptions(false);\n $strategy->setNotFoundTemplate(\"error/404\");\n\n return $strategy;\n },\n\n 'User' => function($sm) {\n $authAdapter = $sm->get('AuthService');\n\n if(!$authAdapter->hasIdentity()) {\n return false;\n }\n\n $id = $authAdapter->getIdentity();\n\n if(!is_object($id)) {\n $user = $sm->get('Model')\n ->get('User')\n ->fetchById($id);\n } else {\n $user = $sm->get('Model')\n ->get('User')\n ->fetchById($id->getId());\n }\n\n return $user === null ? false : $user; \n },\n\n 'Jira' => function($sm) {\n return new \\chobie\\Jira\\Api(\n TIGERDILE_JIRA_URL,\n new \\chobie\\Jira\\Api\\Authentication\\Basic(\n TIGERDILE_JIRA_USER,\n TIGERDILE_JIRA_PASSWORD\n )\n );\n },\n\n 'Chat' => function($sm) {\n return new \\Swaggerdile\\Chat();\n },\n ),\n );\n }", "public function registerSecurityType($name, \\Closure $securityTypeClosure)\n\t{\n\t\t$this->securityTypes[] = array('name' => $name, 'closure' => $securityTypeClosure);\n\t}", "public function register(): void\n {\n /* @phpstan-ignore-next-line */\n $this->app->configure('auth');\n /* @phpstan-ignore-next-line */\n $this->app->configure('remote-token-auth');\n\n config([\n 'auth.guards.rta' => array_merge([\n 'driver' => 'remote-token-auth',\n ], config('auth.guards.rta', [])),\n ]);\n\n $this->registerAdapter();\n }", "protected function getAuth_Provider_OauthService()\n {\n return $this->services['auth.provider.oauth'] = new \\phpbb\\auth\\provider\\oauth\\oauth(${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, ${($_ = isset($this->services['auth.provider.db']) ? $this->services['auth.provider.db'] : $this->getAuth_Provider_DbService()) && false ?: '_'}, ${($_ = isset($this->services['dispatcher']) ? $this->services['dispatcher'] : $this->getDispatcherService()) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['request']) ? $this->services['request'] : ($this->services['request'] = new \\phpbb\\request\\request(NULL, true))) && false ?: '_'}, ${($_ = isset($this->services['auth.provider.oauth.service_collection']) ? $this->services['auth.provider.oauth.service_collection'] : $this->getAuth_Provider_Oauth_ServiceCollectionService()) && false ?: '_'}, ${($_ = isset($this->services['user']) ? $this->services['user'] : $this->getUserService()) && false ?: '_'}, 'phpbb_oauth_tokens', 'phpbb_oauth_states', 'phpbb_oauth_accounts', 'phpbb_users', './../', 'php');\n }", "public function register()\n {\n $this->app->bind(Firebase::class, function () {\n $serviceAccount = Firebase\\ServiceAccount::fromJsonFile(base_path('firebase-admin.json'));\n return (new Factory())->withServiceAccount($serviceAccount)->create();\n });\n }", "public function __construct ()\n {\n $this->Sec = new Packages_Security();\n }", "public function register()\n {\n $this->app['crypto'] = $this->app->share(function($app) {\n return new Crypto(Config::get('crypto'));\n });\n }", "public function createProvider();", "protected static function register() {}", "public function boot()\n {\n $this->app->bind(\n AuthorizationInterface::class,\n User::class\n );\n }", "private function registerFileSystem()\n {\n $this->app->singleton('firewall.filesystem', function () {\n return new Filesystem();\n });\n }", "public function boot(GateContract $gate)\n {\n parent::registerPolicies($gate);\n\n // Définition de la politique d'autorisation pour l'utilisateur connecté\n // superadmin est le nom de la politique de sécurité\n $gate->define('superadmin', function($user) {\n\n return $user->super_admin == 1? true : false; // (rappel écriture ternaire)\n });\n\n // Modification possible de l'objet movie que par son créateur\n $gate->define('hasmovie', function($user, $movie) {\n return $user->id == $movie->administrators_id;\n });\n\n $gate->define('notExpired', function($user) {\n\n $now = new \\DateTime('now');\n $expiration = new \\DateTime($user->expiration_date);\n return $expiration >= $now;\n });\n\n }" ]
[ "0.5964114", "0.58091486", "0.5795723", "0.5752426", "0.56555516", "0.54800516", "0.5350494", "0.5330069", "0.5253543", "0.51911646", "0.5127825", "0.51206654", "0.51169145", "0.5104762", "0.5098509", "0.50660956", "0.5059717", "0.50509346", "0.5026287", "0.4990238", "0.49528763", "0.49522406", "0.4937265", "0.49069816", "0.49054012", "0.4903412", "0.48913577", "0.4874838", "0.48595616", "0.48429453", "0.4834713", "0.48111242", "0.48082358", "0.47939825", "0.47819358", "0.47669077", "0.47645587", "0.47471908", "0.4730217", "0.4724588", "0.47173303", "0.47060016", "0.4678814", "0.46713147", "0.46665338", "0.46595612", "0.46577227", "0.46508607", "0.46493202", "0.46453714", "0.46451703", "0.4644957", "0.46431592", "0.4639338", "0.46262145", "0.46214646", "0.46205845", "0.46004325", "0.45936468", "0.4593069", "0.45923615", "0.45763573", "0.45711175", "0.45687893", "0.45629632", "0.4559064", "0.4555795", "0.45497712", "0.45493123", "0.454646", "0.4545249", "0.4545249", "0.4545249", "0.4545249", "0.4545249", "0.4545249", "0.4545249", "0.4545249", "0.45333806", "0.45318395", "0.45289737", "0.45279422", "0.45193985", "0.45165285", "0.4515015", "0.4507708", "0.45067266", "0.45049742", "0.45002392", "0.44993743", "0.44821522", "0.4472724", "0.44659853", "0.4462476", "0.44601902", "0.44587815", "0.44543645", "0.44543245", "0.4451993", "0.44498527" ]
0.67247784
0
Get a validator for an incoming registration request.
protected function validator(array $data) { return Validator::make($data, [ 'name' => 'required|max:255', 'email' => 'required|email|max:255|unique:users', 'password' => 'required|min:6|confirmed', ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValidator() {}", "public function getValidator();", "public function getValidator();", "public function getValidator()\n {\n return $this->validator;\n }", "public function getValidator()\n {\n return $this->validator;\n }", "public function getValidator()\n {\n return $this->validator;\n }", "protected function getValidatorInstance()\n {\n return app(ValidationFactory::class);\n }", "protected function createValidator() {\n return $this->validator;\n }", "public static function getValidatorInstance()\n {\n if (static::$validator === null)\n {\n static::$validator = new Validator();\n }\n\n return static::$validator;\n }", "private function getValidator()\n {\n return Validation::createValidatorBuilder()->enableAnnotationMapping()->getValidator();\n }", "public function getValidator()\n\t{\n\t\treturn $this->validation->validator->validator;\n\t}", "protected function get9c2345652e8ae3f87ba009d0f8fedee27bb751398014908e9ab2fb6d5bf1300f(): \\Viserio\\Component\\Validation\\Validator\n {\n return $this->services[\\Viserio\\Contract\\Validation\\Validator::class] = new \\Viserio\\Component\\Validation\\Validator();\n }", "public function getValidator()\n\t{\n\t\tif (!is_object($this->_validator)) {\n\t\t\t$validatorClass = $this->xpdo->loadClass('validation.xPDOValidator', XPDO_CORE_PATH, true, true);\n\t\t\tif ($derivedClass = $this->getOption(xPDO::OPT_VALIDATOR_CLASS, null, '')) {\n\t\t\t\tif ($derivedClass = $this->xpdo->loadClass($derivedClass, '', false, true)) {\n\t\t\t\t\t$validatorClass = $derivedClass;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($profitClass = $this->getOption('mlmsystem_handler_class_profit_validator', null, '')) {\n\t\t\t\tif ($profitClass = $this->xpdo->loadClass($profitClass, $this->getOption('mlmsystem_core_path', null, MODX_CORE_PATH . 'components/mlmsystem/') . 'handlers/validations/', false, true)) {\n\t\t\t\t\t$validatorClass = $profitClass;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($validatorClass) {\n\t\t\t\t$this->_validator = new $validatorClass($this);\n\t\t\t}\n\t\t}\n\t\treturn $this->_validator;\n\t}", "public function getValidator() {\n return $this->__validator;\n }", "public function getValidator() \n {//--------------->> getValidator()\n return $this->_validator;\n }", "protected function getValidatorInstance()\n {\n $factory = $this->container->make('Illuminate\\Validation\\Factory');\n if (method_exists($this, 'validator')) {\n return $this->container->call([$this, 'validator'], compact('factory'));\n }\n\n $rules = $this->container->call([$this, 'rules']);\n $attributes = $this->attributes();\n $messages = [];\n\n $translationsAttributesKey = $this->getTranslationsAttributesKey();\n\n foreach ($this->requiredLocales() as $localeKey => $locale) {\n $this->localeKey = $localeKey;\n foreach ($this->container->call([$this, 'translationRules']) as $attribute => $rule) {\n $key = $localeKey . '.' . $attribute;\n $rules[$key] = $rule;\n $attributes[$key] = trans($translationsAttributesKey . $attribute);\n }\n\n foreach ($this->container->call([$this, 'translationMessages']) as $attributeAndRule => $message) {\n $messages[$localeKey . '.' . $attributeAndRule] = $message;\n }\n }\n\n return $factory->make(\n $this->all(),\n $rules,\n array_merge($this->messages(), $messages),\n $attributes\n );\n }", "public function validator()\n {\n return $this->validator;\n }", "protected function getValidatorInstance()\n {\n // cause comes json, we need to change it to array to validate it\n $this->request->set('postHashtag', json_decode($this->input()['postHashtag'], true));\n $this->request->set('activeLocales', json_decode($this->input()['activeLocales'], true));\n // clean alias from unnecessary symbols\n $this->request->set('postAlias', Helpers::cleanToOnlyLettersNumbers($this->input()['postAlias']));\n\n\n return parent::getValidatorInstance();\n }", "public function getValidatorService();", "private function getValidator()\n {\n $v = new Validator();\n $v->addRules([\n ['label', 'Label', 'required'],\n ['num_value', 'Number', 'exists type=number'],\n ['comment', 'Comment', 'exists'],\n ]);\n return $v;\n }", "protected function getValidationFactory()\n {\n return app('validator');\n }", "public function getValidator($name = 'default') {\n\t\t\t//\n\t\t\tif ($name == 'default') { return new Validator();}\n\t\t\trequire (VALIDATORS . $name . '_validator.php');\n\t\t\t$name = $name . '_Validator';\n\t\t\treturn new $name();\n\t\t}", "protected function getValidator($request)\n {\n $rules = [\n 'page_title' => 'required',\n 'status' => 'required|integer|between:0,1'\n ];\n \n $customMessages = [\n 'page_title.required' => __('admin.pages.field_validation.title_field_required_msg'),\n 'status.required' => __('admin.pages.field_validation.status_field_required_msg')\n ];\n\n return Validator::make($request->all(), $rules, $customMessages);\n }", "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Atezate\\\\Validator\\Cubos')) {\n\n $this->setValidator(new \\Atezate\\Validator\\Cubos);\n }\n }\n\n return $this->_validator;\n }", "protected function getValidatorService()\n {\n return $this->services['validator'] = $this->get('validator.builder')->getValidator();\n }", "public function createValidator()\n {\n $validator = Validation::createValidatorBuilder()\n ->setMetadataFactory(new ClassMetadataFactory(new StaticMethodLoader()))\n ->setConstraintValidatorFactory(new ConstraintValidatorFactory($this->app))\n ->setTranslator($this->getTranslator())\n ->setApiVersion(Validation::API_VERSION_2_5)\n ->getValidator();\n\n return $validator;\n }", "public function getValidatorService()\n {\n return $this->validatorService;\n }", "public function getCreateTaskValidator()\n : Validators\\ValidatorInterface\n {\n return $this->app->make(\n Validators\\CreateTaskValidator::class\n );\n }", "protected function getValidator()\n {\n if ($form = $this->owner->getForm()) {\n \n if (($validator = $form->getValidator()) && $validator instanceof Validator) {\n return $validator;\n }\n \n }\n }", "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Klikasi\\\\Validator\\Newsletter')) {\n\n $this->setValidator(new \\Klikasi\\Validator\\Newsletter);\n }\n }\n\n return $this->_validator;\n }", "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Klikasi\\\\Validator\\Kanpaina')) {\n\n $this->setValidator(new \\Klikasi\\Validator\\Kanpaina);\n }\n }\n\n return $this->_validator;\n }", "function getCMSValidator()\n {\n return $this->getValidator();\n }", "function validator() {\n if ($this->validator) return $this->validator;\n $options = array();\n foreach ($this->fields_options as $field => $field_options) {\n if (!@$field_options['validation']) continue;\n $options[$field] = $field_options['validation'];\n }\n return $this->validator = new xValidatorStore($options, $_REQUEST);\n }", "function getValidator() {\n\t\tif ( !$this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = new utilityValidator();\n\t\t}\n\t\treturn $this->_Validator;\n\t}", "function getValidator() {\n\t\tif ( !$this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = new utilityValidator();\n\t\t}\n\t\treturn $this->_Validator;\n\t}", "function getValidator() {\n\t\tif ( !$this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = new utilityValidator();\n\t\t}\n\t\treturn $this->_Validator;\n\t}", "protected function getValidatorInstance()\n {\n $validator = parent::getValidatorInstance();\n\n $validator->sometimes('family_member_id.*', 'distinct', function($input)\n {\n return $input->family_member == 1;\n });\n\n $validator->sometimes('family_member_id.*', 'not_in:'. $this->request->get('patriarch'), function($input)\n {\n return $input->family_member == 1;\n });\n\n return $validator;\n }", "public function getDelegatedValidator()\n {\n return $this->validator;\n }", "public function validator()\n {\n\n return UserValidator::class;\n }", "public function validator()\n {\n\n return UserValidator::class;\n }", "public function validator()\n {\n\n return UserValidator::class;\n }", "public function validator()\n {\n\n return UserValidator::class;\n }", "public function validator()\n {\n\n return UserValidator::class;\n }", "public function validator()\n {\n return UserValidator::class;\n }", "public function createValidator();", "protected function getValidatorInstance()\n {\n $validator = parent::getValidatorInstance();\n $validator->setAttributeNames(trans('mconsole::personal.form'));\n\n return $validator;\n }", "public function getValidator($validator)\n {\n $instance = null;\n\n if (strpos($validator, 'iPhorm_Validator_') === false) {\n $validator = 'iPhorm_Validator_' . ucfirst($validator);\n }\n\n $validators = $this->getValidators();\n if (array_key_exists($validator, $validators)) {\n $instance = $validators[$validator];\n }\n\n return $instance;\n }", "public function getValidatorInstance()\n {\n $validator = parent::getValidatorInstance();\n\n\n $validator->after(\n function () use ($validator) {\n $input = $this->all();\n }\n );\n\n return $validator;\n }", "public function get($codename) {\n\t\treturn $this->validators[$codename];\n\t}", "protected function getValidatorInstance()\n {\n // cause comes json, we need to change it to array to validate it\n $this->request->set('categories_names', json_decode($this->input()['categories_names'], true));\n // clean alias from unnecessary symbols\n $this->request->set('category_alias', Helpers::cleanToOnlyLettersNumbers($this->input()['category_alias']));\n\n return parent::getValidatorInstance();\n }", "public static function getValidator($name, array $options = []);", "protected function validator($request)\n {\n $data = $request->all();\n $vcode = $request->session()->get('p'.$data['phone']);\n return Validator::make($data, [\n 'name' => 'required|max:255|unique:users,name',\n 'phone' => 'required|phone|max:255|unique:users,phone',\n 'email' => 'required|email|max:255|unique:users,email',\n 'phonecode' => 'required|regex:/' . $vcode['verifycode'] . '/',\n 'password' => 'required|confirmed|min:6|max:20',\n ]);\n }", "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Atezate\\\\Validator\\Mensajes')) {\n\n $this->setValidator(new \\Atezate\\Validator\\Mensajes);\n }\n }\n\n return $this->_validator;\n }", "public function getValidator()\n {\n if (!isset($this->customValidator)) {\n throw new CertaintyException('Custom class not defined');\n }\n return $this->customValidator;\n }", "public function createFooResponseValidator(): ResponseValidatorInterface\n {\n return new AcmeFooResponseValidator();\n }", "private function createValidator()\n {\n // add custom validation rules\n \\Validator::extend('contains_caps',\n function($field, $value, $params)\n {\n return preg_match('#[A-Z]#', $value);\n }\n );\n\n \\Validator::extend('contains_digit',\n function($field, $value, $params)\n {\n return preg_match('#[0-9]#', $value);\n }\n );\n\n // set array of messages for custom rules\n $messages = array(\n 'contains_caps' => ':attribute must contain at least one capital letter.',\n 'contains_digit' => ':attribute must contain at least one numeric digit.'\n );\n\n // set array of rules to use for validation (many are Laravel's built-ins)\n $rules = array(\n 'email' => 'required|email|max:255',\n 'password' => 'required|between:8,50|contains_caps|contains_digit', // password has some \"strength\" requirements\n 'first_name' => 'required|max:50',\n 'last_name' => 'required|max:50',\n 'city' => 'required|max:100',\n 'state' => 'required|max:2',\n 'zip' => 'required|max:20',\n 'biography' => 'required',\n );\n\n $validator = \\Validator::make(\\Input::all(), $rules, $messages);\n\n return $validator;\n }", "protected function getAjaxValidationFactory()\n {\n return app()->make('validator');\n }", "public function withContext(mixed $context): ValidatorInterface;", "public function getValidatorInstance() {\n $validator = parent::getValidatorInstance();\n\n $validator->after(function() use ($validator) {\n\n // Does the event exist?\n if( !$this->checkEventExists()){\n $validator->errors()->add('event.Exists', 'This event does not longer exist.');\n } else {\n\n // Does the booker is not the creator?\n if( !$this->checkEventNotBookedByCreator()){\n $validator->errors()->add('event.BookedCreator', 'You can\\'t unbook this event because since you are the owner.'); \n }\n\n // Does the event is not already finished/has begun?\n if( !$this->checkEventDateNotDue()){\n $validator->errors()->add('event.DateDue', 'You can\\'t unbook this event because it\\'s already begun or is terminated.'); \n }\n }\n\n });\n\n return $validator;\n }", "protected function getValidator(): void\n {\n // TODO: Implement getValidator() method.\n }", "protected function getValidationFactory()\n {\n return app('Illuminate\\Contracts\\Validation\\Factory');\n }", "public function validator()\n {\n\n return ConfigValidator::class;\n }", "protected function makeValidator()\n {\n $rules = $this->expandUniqueRules($this->rules);\n\n $validator = static::$validator->make($this->getAttributes(), $rules);\n\n event(new ModelValidator($this, $validator));\n\n return $validator;\n }", "public function validator()\n {\n\n return FormInfoValidator::class;\n }", "public function getValidator(): ?ValidatorInterface\n {\n return new CompoundValidator(\n new CzechIbanValidator($this->accountNumber, $this->bankCode),\n new GenericIbanValidator($this)\n );\n }", "public function validator()\n {\n\n return ProvidersValidator::class;\n }", "protected function getForm_TypeGuesser_ValidatorService()\n {\n return $this->services['form.type_guesser.validator'] = new \\Symfony\\Component\\Form\\Extension\\Validator\\ValidatorTypeGuesser($this->get('validator'));\n }", "protected function getValidateRequestListenerService()\n {\n return $this->services['validate_request_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener();\n }", "protected function getValidateRequestListenerService()\n {\n return $this->services['validate_request_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener();\n }", "protected function validator(array $data)\n {\n return self::getValidator($data);\n }", "protected static function validator() {\n\t\tif (empty(self::$validate)) {\n\t\t\tself::$validate = new MpoValidator();\n\t\t}\n\t\treturn self::$validate;\n\t}", "public function makeValidator()\r\n {\r\n if (10 == $this->countDigits($this->string)) {\r\n return new Validator10($this->string);\r\n }\r\n\r\n if (13 == $this->countDigits($this->string)) {\r\n return new Validator13($this->string);\r\n } \r\n }", "public function initValidator()\n {\n if (!is_null($this->_validator)) {\n return $this->_validator;\n }\n $this->_validator = new SurveyManager_Entity_Validator_Survey($this);\n \n return $this->_validator;\n }", "public function make($validator)\n\t{\n\t\tif ($validator instanceof Closure)\n\t\t{\n\t\t\t$validator = new ClosureValidator($validator, $this->request, $this->validatorFactory, $this->router);\n\n\t\t\treturn array($validator->getInput(), $validator->getRules(), $validator->getFailedMessages());\n\t\t}\n\n\t\tif (is_string($validator) AND ! isset($this->validators[$validator]))\n\t\t{\n\t\t\t$this->validators[$validator] = $validator;\n\t\t}\n\n\t\tif (isset($this->validators[$validator]))\n\t\t{\n\t\t\tif ($this->validators[$validator] instanceof Closure)\n\t\t\t{\n\t\t\t\treturn new ClosureValidator($this->validators[$validator], $this->request, $this->validatorFactory);\n\t\t\t}\n\n\t\t\treturn new $this->validators[$validator]($this->request, $this->validatorFactory);\n\t\t}\n\n\t\tthrow new \\InvalidArgumentException('Invalid input validator.');\n\t}", "public function getContractValidator(): ?ContractValidator {\n\n return $this->contractValidator;\n\n }", "protected function validator(Request $request)\n\t{\n\t\treturn Validator::make($request->all(), [\n\t\t\t'title' => 'required',\n\t\t\t]);\n\t}", "protected function validator(Request $request)\n {\n return Validator::make($request, [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'password' => ['required', 'string', 'min:8', 'confirmed'],\n ]);\n }", "public function validator()\n {\n\n return DistribuidorValidator::class;\n }", "protected function getValidatorInstance()\n {\n $validator = parent::getValidatorInstance();\n // $validator->sometimes();\n\n $validator->after(function ($validator) {\n $this->request->remove('is_post');\n $this->request->remove('is_update');\n $this->request->remove('is_editing');\n $this->request->remove('is_delete');\n });\n return $validator;\n }", "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Atezate\\\\Validator\\Tipos')) {\n\n $this->setValidator(new \\Atezate\\Validator\\Tipos);\n }\n }\n\n return $this->_validator;\n }", "public function validator()\n {\n\n return BabyInfoValidator::class;\n }", "protected function getValidator(array $options = [])\n {\n $type = '\\\\marvin255\\\\serviform\\\\validators\\\\Regexp';\n\n return FactoryValidators::initElement($type, $options);\n }", "public function validator()\n {\n return ZhuanTiValidator::class;\n }", "public function validator()\n {\n\n return EmpreValidator::class;\n }", "public function validator()\n {\n\n return OccupationValidator::class;\n }", "public function validator()\n {\n\n return GrupoServicosValidator::class;\n }", "public function validator()\n {\n\n return ScheduleValidator::class;\n }", "protected function validator(Request $request)\n {\n return Validator::make($request, [\n 'first_name' => 'required',\n 'last_name' => 'required',\n 'suburb' => 'required',\n 'zipcode' => 'required',\n\t\t\t\n ]);\n }", "public function validator()\n {\n return NotificationValidator::class;\n }", "public function validator()\n {\n $validator = $this->baseValidator([\n 'stripe_token' => 'required',\n 'vat_id' => 'nullable|max:50|vat_id',\n ]);\n\n if (Spark::collectsBillingAddress()) {\n $this->validateBillingAddress($validator);\n }\n\n return $validator;\n }", "public function validator()\n {\n\n return ProducerValidator::class;\n }", "protected function validation($request)\n {\n\n $validator = Validator::make($request->all(), [\n 'firstname' => 'required',\n 'lastname' => 'required',\n 'email' => 'required',\n 'pocketmoney' => 'required',\n 'password' => 'required',\n 'age' => 'required',\n 'city' => 'required',\n 'state' => 'required',\n 'zip' => 'required',\n 'country' => 'required',\n ]);\n\n return $validator;\n }", "protected function validator(Request $request)\n {\n return Validator::make($request->all(), [\n 'userid' => 'required|max:11',\n 'password' => 'required'\n ]);\n }", "public function getValidator(?string $code) : ?Validator {\n if ($code === null || strlen($code) < 2) { // ensure we can extract the code\n return null;\n }\n\n $key = substr($code, 0, 2);\n\n return $this->validators[$key] ?? null;\n }", "public function validator()\n {\n $validator = validator($this->all(), [\n 'name' => 'required|max:255',\n 'server_provider_id' => ['required', Rule::exists('server_providers', 'id')->where(function ($query) {\n $query->where('user_id', $this->user()->id);\n })],\n 'region' => 'required|string',\n 'source_provider_id' => ['required', Rule::exists('source_providers', 'id')->where(function ($query) {\n $query->where('user_id', $this->user()->id);\n })],\n 'repository' => [\n 'required',\n 'string',\n new ValidRepository(SourceProvider::find($this->source_provider_id))\n ],\n 'database' => 'string|alpha_dash|max:255',\n 'database_size' => 'string',\n ]);\n\n return $this->validateRegionAndSize($validator);\n }", "public function validator()\n {\n return LeaveRequestValidator::class;\n }", "private function validator(Request $request)\n {\n //validate the form...\n }", "protected function createUserValidator($request) {\n \treturn Validator::make($request,[\n 'first_name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'last_name' => 'required',\n 'password' => 'required|min:6',\n 'status' => 'required'\n ]);\n \t}", "public function validator()\n {\n\n return PescariaValidator::class;\n }", "protected function parseRulesFromValidator()\n {\n // First we call needed method with needed container\n $factory = app()->make(ValidationFactory::class);\n $validator = app()->call([$this->getFormRequestInstance(), 'validator'], [$factory]);\n\n // After that we get initialRules property (since plain `rules` prop doesn't contain array rules)\n // and make it public so that later we can get it's value\n $property = (new ReflectionClass($validator))->getProperty('initialRules');\n $property->setAccessible(true);\n\n return $property->getValue($validator);\n }", "protected function validator(Request $request)\n {\n return Validator::make($request->all(), [\n 'userid' => 'required|max:11',\n 'page' => ''\n ]);\n }" ]
[ "0.72186273", "0.7102629", "0.7102629", "0.70492387", "0.70492387", "0.70492387", "0.6924329", "0.6917619", "0.6899377", "0.6854331", "0.68485713", "0.6813546", "0.68022", "0.6797856", "0.67473096", "0.6697816", "0.66884923", "0.66457576", "0.6594956", "0.6565441", "0.6507073", "0.65007204", "0.6492356", "0.64285153", "0.6407369", "0.64013654", "0.63938963", "0.63663244", "0.6347844", "0.6343926", "0.6282693", "0.6253351", "0.6234618", "0.62294203", "0.62294203", "0.62294203", "0.6213584", "0.6202867", "0.61241925", "0.61241925", "0.61241925", "0.61241925", "0.61241925", "0.6106174", "0.6083678", "0.60673666", "0.6038266", "0.5995166", "0.59826493", "0.59807694", "0.5974589", "0.59369576", "0.5927042", "0.5904164", "0.5890963", "0.5888767", "0.58725977", "0.58668774", "0.5866729", "0.58644265", "0.5823127", "0.5815432", "0.5815095", "0.57841873", "0.5781334", "0.5768881", "0.575081", "0.5748708", "0.5748708", "0.57387894", "0.57249963", "0.5717436", "0.5715994", "0.57128465", "0.5673231", "0.5672398", "0.56717795", "0.56693405", "0.5669022", "0.5644286", "0.56366193", "0.5624982", "0.56144357", "0.56132805", "0.55811465", "0.55701774", "0.55691254", "0.5559814", "0.55595195", "0.5552148", "0.55358064", "0.55230343", "0.55229884", "0.5520857", "0.5512458", "0.5509822", "0.55072284", "0.55038613", "0.55034906", "0.54931915", "0.54851764" ]
0.0
-1
Create a new user instance after a valid registration.
protected function create(array $data) { if( URL::previous() == "http://localhost:8000/register/company"){ $type="company"; } if(URL::previous() =="http://localhost:8000/register/user"){ $type="user"; } $user=User::create([ 'name' => $data['name'], 'email' => $data['email'], 'user_type'=> $type, 'password' => bcrypt($data['password']), ]); if($type=="company"){ Company::create([ 'user_id' => $user->id, 'slug' => $this->slugCreator($data['name'],'company'), 'logo'=>'default.png', 'cover_photo'=>'default1.jpg' ]); } // return redirect('/login')->with('status', 'We sent you an activation code. Check your email.'); return $user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _createUser()\n {\n $data = [\n 'email' => '[email protected]',\n 'password' => 'test',\n ];\n\n $user = $this->Users->newEntity($data);\n\n $user->set('active', true);\n $user->set('role_id', 1);\n\n $this->Users->save($user);\n }", "public function createUser()\n {\n $this->user = factory(Easel\\Models\\User::class)->create();\n }", "public function createUser();", "public function createUser();", "public function createUser();", "public function createUser();", "public function createUser()\n {\n $this->user = factory(App\\Models\\User::class)->create();\n }", "public function createUser()\n {\n $this->user = factory(App\\Models\\User::class)->create();\n }", "public function createUser()\n {\n\n $userCurrent = $this->userValidator->validate();\n $userCurrent['password'] = Hash::make($userCurrent['password']);\n $userCurrent = $this->user::create($userCurrent);\n $userCurrent->roles()->attach(Role::where('name', 'user')->first());\n return $this->successResponse('user', $userCurrent, 201);\n }", "public function createUser()\n {\n return User::factory()->create();\n }", "public function create() {\n $username = Input::get('reg_username');\n $email = Input::get('email');\n $password = Input::get('reg_password');\n $confirm_password = Input::get('confirm_password');\n\n // Make sure that both passwords are identical\n if (strcmp($password, $confirm_password) == 0) {\n $hashed_password = Hash::make($password);\n try {\n $user = new User;\n $user -> username = $username;\n $user -> email = $email;\n $user -> password = $hashed_password;\n $user -> save();\n } catch (\\Illuminate\\Database\\QueryException $e) {\n return Redirect::route('register') -> with(array(\n 'alert-message' => 'Error: Failed to register user in database.',\n 'alert-class' => 'alert-danger'\n ));\n }\n\n // Login the new user automatically\n $user = User::where('username', '=', $username) -> first();\n Auth::login($user);\n\n return Redirect::route('home') -> with(array(\n 'alert-message' => 'Welcome! You have successfully created an account, and have been logged in.',\n 'alert-class' => 'alert-success'\n ));\n }\n\n return Redirect::route('register') -> with(array(\n 'alert-message' => 'The attempt to create an account was unsuccessful!',\n 'alert-class' => 'alert-danger'\n ));\n }", "private function newUser()\n {\n return factory(User::class)->create([\n 'name' => 'John Doe',\n 'email' => '[email protected]',\n 'email_verified_at' => '2019-06-01 16:45:00',\n 'password' => Hash::make('test1234'),\n 'photo' => 'https://lorempixel.com/640/480/?65533',\n 'created_at' => '2019-06-01 16:45:00',\n 'updated_at' => '2019-06-01 16:45:00',\n 'deleted_at' => '2019-06-01 16:45:00',\n 'logged_in_at' => '2019-06-01 16:45:00',\n ]);\n }", "public function createAction()\r\n {\r\n $user = new User($_POST);\r\n\r\n if ($user->save()) {\r\n\t\t\t\r\n\t\t\tsession_regenerate_id(true);\r\n\r\n\t\t\t$_SESSION['user_id'] = User::getIdSavedUser($_POST['email']);\r\n\t\t\t\r\n\t\t\tIncome::saveDefaultIncomes($_SESSION['user_id']);\r\n\t\t\tExpense::saveDefaultExpenses($_SESSION['user_id']);\r\n\t\t\tPaymentMethod::saveDefaultPaymentMethods($_SESSION['user_id']);\r\n\t\t\t\r\n\t\t\t$user->sendActivationEmail();\r\n\r\n $this->redirect('/signup/success');\r\n\r\n } else {\r\n\r\n View::renderTemplate('Signup/new.html', [\r\n 'user' => $user\r\n ]);\r\n\r\n }\r\n }", "public function create() {\n\n //Create validator for User registration form with all data sended. Load from model\n $validator = Validator::make(Input::all(), User::$rules_validator);\n \n //Only if request is send by form (post) procces to create user\n if (Request::isMethod('post')) {\n \n //Check fields data sended\n if ($validator->fails()) {\n //Redirecto to form with error\n $messages = $validator->messages()->all(\"<li>:message</li>\");\n $error = \"<ul>\". implode(\"\", $messages).\"</ul>\";\n return Redirect::to('/user/register')->with('error', $error)->withInput(Input::all());\n }\n \n //Pass validator, proccess to create User\n if( $user = User::_save( Input::all() ) ){\n //Auto login user created, is same that attemd method\n Auth::login($user);\n //Redirecto to profile\n return Redirect::intended(action('UserController@profile', array('username' => Auth::user()->username )))->with('notice', trans(\"app.welcome_message\", array(\"user\"=>Auth::user()->username) ));\n }else{\n //Error to try create User, redirecto to Registration form\n return Redirect::to('/user/register')->with('error', trans(\"app.error_creating\"))->withInput(Input::all());\n }\n }\n \n //Return to view\n return View::make('user.register');\n }", "public function create()\n\t{\n\t\tif (!isset($_POST) || empty($_POST))\n\t\t{\n\t\t\theader(\"Location: /myrecipe/users/registry\");\n\t\t\texit;\n\t\t}\n\t\t// TODO need to validate data\n\t\t$data = array('username' => $_POST['username'], 'password' => $_POST['password'], 'cpassword' => $_POST['cpassword'], 'email' => $_POST['email']);\n\t\t// validate the input data\n\t\t$errorArray = User::validates($data);\n\t\tif (count($errorArray))\n\t\t{\n\t\t\t// store errors in session and redirect\n\t\t\t$_SESSION['user'] = $data;\n\t\t\t$_SESSION['user']['errors'] = $errorArray;\n\t\t\theader(\"Location: /myrecipe/users/registry\");\n\t\t\texit;\n\t\t}\n\t\t// create a new user, assume all new users are not staff\n\t\t$values = array('username'=>$_POST['username'],'password'=>$_POST['password'],'email'=>$_POST['email'],'user_type'=>'1');\n\t\t$id = User::createUser($values);\n\t\t// log the user in\n\t\t$_SESSION['user']['id'] = $id;\n\t\t$_SESSION['user']['name'] = $_POST['username'];\n\t\t$_SESSION['user']['type'] = '1';\n\t\techo \"id = \" . $id;\n\t\theader(\"Location: /myrecipe/users/\" . $id);\n\t\texit;\n\t}", "public function registerNewUser()\n\t{\n\t\t# make the call to the API\n\t\t$response = App::make('ApiClient')->post('register', Input::all());\n\n\t\t# if we successfully register a new user\n\t\tif(isset($response['success']))\n\t\t{\n\t\t\tUser::startSession($response['success']['data']['user']);\n\n\t\t\t# grab the data array from the response\n\t\t\tSession::flash('success', $response['success']['data']);\n\n\t\t\t# show the user profile screen\n\t\t\treturn Redirect::route('profile');\n\t\t}\n\t\t# there was a problem registering the user\n\t\telse \n\t\t{\n\t\t\t# save the API response to some flash data\n\t\t\tSession::flash('registration-errors', getErrors($response));\n\n\t\t\t# also flash the input so we can replay it out onto the reg form again\n\t\t\tInput::flash();\n\n\t\t\t# ... and show the sign up form again\n\t\t\treturn Redirect::back();\n\t\t}\n\t}", "public function create(array $data)\n {\n $user = User::isCurrentUser($data);\n\n // If user doesn't exist, attempt to create.\n if (!$user) {\n $user = new User($data);\n\n $validator = $this->validation->make($user->toArray(), [\n 'phone' => 'unique:users',\n 'email' => 'unique:users',\n ]);\n\n if($validator->fails()) {\n throw new ValidationException($validator);\n }\n\n $user->country_code = get_country_code();\n $user->northstar_id = $this->northstar->register($user);\n\n $user->save();\n\n event(new UserRegistered($user));\n }\n\n return $user;\n }", "private function createUser()\n {\n $sl = $this->getServiceManager();\n $userService = $sl->get(\"zfcuser_user_service\");\n $randomness = \"mockuser_\".mt_rand();\n $data = array(\n \"username\" => \"{$randomness}\",\n \"password\" => \"password\",\n \"passwordVerify\" => \"password\",\n \"display_name\" => \"MOCKUSER\",\n \"email\" => \"{$randomness}@google.com\"\n );\n $user = $userService->register($data);\n\n return $user;\n }", "public function postCreate() {\n \t$validator = Validator::make(Input::all(), User::$rules);\n\n \t// i made a user with [email protected], goodbye\n \tif ($validator->passes()) {\n \t\t// validation has passed, save user in DB\n \t\t$user = new User;\n \t\t$user->first_name = Input::get('first_name');\n \t\t$user->last_name = Input::get('last_name');\n \t\t$user->email = Input::get('email');\n \t\t$user->password = Hash::make(Input::get('password'));\n \t\t$user->save();\n\n \t\treturn Redirect::to('users/login')->with('message', '<div class=\"alert alert-success\" role=\"alert\">Thanks for registering!</div>');\n \t}\n \telse {\n \t\t// validation has failed, display error messages\n \t\treturn Redirect::to('users/register')->with('message', '<div class=\"alert alert-warning\" role=\"alert\">The following errors occurred</div>')->withErrors($validator)->withInput();\n \t}\n }", "public function create()\n {\n return $this->userService->create();\n }", "public function createUser()\r\n {\r\n // use sign up in AuthController\r\n }", "public function createUser()\r\n {\r\n // use sign up in AuthController\r\n }", "function register_new_user()\n{\n // alidate the data submited by our user\n $result = _validation([\n 'name' => 'required|string|max:255',\n 'email' => 'required|string|email|unique:users',\n 'password' => 'required|string|equals:password_confirmation'\n ]);\n\n // Get the validated data.\n $validated = $result['validated'];\n\n // _dump(bcrypt_hasher_make($validated['password']), true);\n\n // Create the user\n $user = create_new_user(\n $validated['name'],\n $validated['email'],\n bcrypt_hasher_make($validated['password']) // Always hash your users password\n );\n\n // Redirect back if the user was not created.\n _redirect_back_if($user === false, ['errors' => [\n 'Unable to register user at the moment.'\n ]]);\n\n // log the user in\n login_user($user);\n}", "public function newRegistration() {\n $this->registerModel->getUserRegistrationInput();\n $this->registerView->setUsernameValue($this->registerView->getUsername());\n $this->registerModel->validateRegisterInputIfSubmitted();\n if ($this->registerModel->isValidationOk()) {\n $this->registerModel->hashPassword();\n $this->registerModel->saveUserToDatabase();\n $this->loginView->setUsernameValue($this->registerView->getUsername());\n $this->loginView->setLoginMessage(\"Registered new user.\");\n $this->layoutView->render(false, $this->loginView);\n } else {\n $this->layoutView->render(false, $this->registerView);\n }\n \n }", "public function create()\n {\n $request = (object) $this->request->getPost();\n\n if (! $this->validate(static::rules())) {\n return redirect()->back()->withInput()->with('errors', $this->validator->getErrors());\n }\n\n $user = static::createUser($request);\n\n Auth::login($user);\n\n // Automatic trigger send verify email if user\n // instanceof VerifyEmailInterface.\n if ($user instanceof VerifyEmailInterface) {\n Events::trigger(VerifyEmailInterface::class, $user->email);\n }\n\n return redirect(config('Auth')->home);\n }", "public function createUser()\n {\n }", "private static function create()\n {\n getDb()->putUser(1, self::getDefaultAttributes());\n }", "static private function createNewUserFromPost() {\r\n\t\t$errors = array();\r\n\r\n\t\t$activationHash = (System::isAtLocalhost()) ? '' : self::getRandomHash();\r\n\t\t$newAccountId = DB::getInstance()->insert('account',\r\n\t\t\t\tarray('username', 'name', 'mail', 'password', 'registerdate', 'activation_hash'),\r\n\t\t\t\tarray($_POST['new_username'], $_POST['name'], $_POST['email'], self::passwordToHash($_POST['password']), time(), $activationHash));\r\n\r\n\t\tself::$IS_ON_REGISTER_PROCESS = true;\r\n\t\tself::$NEW_REGISTERED_ID = $newAccountId;\r\n\r\n\t\tif ($newAccountId === false)\r\n\t\t\t$errors[] = __('There went something wrong. Please contact the administrator.');\r\n\t\telse {\r\n\t\t\tself::importEmptyValuesFor($newAccountId);\r\n\t\t\tself::setSpecialConfigValuesFor($newAccountId);\r\n\r\n\t\t\tif ($activationHash != '')\r\n\t\t\t\tself::setAndSendActivationKeyFor($newAccountId, $errors);\r\n\t\t}\r\n\r\n\t\tself::$IS_ON_REGISTER_PROCESS = false;\r\n\t\tself::$NEW_REGISTERED_ID = -1;\r\n\r\n\t\treturn $errors;\r\n\t}", "protected function create(array $data)\n {\n $user = $this->userService->createUser($data);\n if(!$user) \n return redirect()->back()->with([\"status\" => \"error\", \"msg\"=>\"An Error Occured While Creating a user\"]);\n $this->capsuleService->createParty(PartyDto::fromUser($user)); // create a party on capsule crm for representing registered user\n $this->capsuleService->notifySalesHeadOfNewUserSignup($user); // Send a notification to app sales head on user signup\n return $user;\n }", "protected function create(array $data)\n {\n $user = new User();\n $reference = str_random(30).time();\n// $user->generateReference();\n\n $user = $user->create([\n 'firstname' => $data['firstname'],\n 'lastname' => $data['lastname'],\n 'phone' => $data['phone'],\n 'gender' => $data['gender'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n 'activation_code' => $reference\n// 'avatar' => 'public/defaults/avatars/default.png'\n ]);\n\n $user->notify((new sendUserActivation($user))->delay(now()->addSeconds(2)));\n Session::flash('message', 'Welcome. Please complete your profile to continue');\n return $user;\n }", "public function createUser()\n {\n $class = $this->userClass;\n $user = new $class;\n return $user;\n }", "function new_user($firstName,$lastName,$email,$password){\t\n $salt = generate_salt();\n $encPassword = encrypt_password($password,$salt);\n\n //$user = create_user_object($firstName,$lastName,$email,$encPassword,$salt,$userType);\n save_user_info($firstName,$lastName,$email,$encPassword,$salt);\n \n return true;\n}", "private function register(): void\n {\n $user = User::factory()->create();\n $this->actingAs($user);\n }", "protected function createUser ()\n {\n /* Method of the UserFactory class */\n $this->_objUser = UserFactory::createUser(ucfirst($_SESSION[\"userType\"])); \n $this->_objUser->setFirstName($_SESSION[\"emailID\"]);\n }", "public function createUserAction() {\n $this->authService->createUser();\n die();\n }", "protected function create(array $data)\n {\n $user = User::create([\n 'uuid' => Uuid::generate(5,$data['email'], Uuid::NS_DNS),\n 'firstname' => $data['firstname'],\n 'lastname' => $data['lastname'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n ]);\n\n $userObj = User::find($user->id);\n\n if(Event::fire(new WelcomeUser($userObj)))\n {\n return $user;\n }else\n {\n //Redirect to error page and log in the incident\n }\n\n }", "public function register() {\n\t\tif ($this->Session->check('Auth.User')) {\n\t\t\t$this->redirect('/');\n\t\t}\n\t\t\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->User->create();\n\t\t\t$data = $this->request->data;\n\t\t\tif ($this->User->save($data)) {\n\t\t\t\t$this->Session->setFlash(\"User has been created.\", 'default', array(), 'register');\n\t\t\t\t$this->redirect('/login');\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(\"This user couldn't created. Please try again.\");\n\t\t\t}\n\t\t} else\n\t\t\t$this->Session->delete('Message.register');\n\t}", "protected function create(array $data)\n {\n\n // incase the user does not enter the password and exits, then \n // we give give them to re register into the website, so \n // a new email is sent for verification and the old token is regenerated\n if($user = User::where('email', '=', $data['email'])->first()){\n\n $user->verification_token = str_random(30);\n $user->status = User::NOT_VERIFIED;\n $user->save();\n\n return $user;\n }\n\n return User::create([\n 'email' => $data['email'],\n 'name' => $data['name'],\n 'verification_token' => str_random(30)\n ]);\n }", "public function handle_create(RegisterRequest $request)\n {\n $request->validated();\n\n $user = new User;\n\n $user->fullname = $request->fullname;\n $user->username = $request->username;\n $user->email = $request->email;\n\n $user->phone = $request->phone;\n $user->address = $request->address;\n $user->password = Hash::make($request->password);\n\n\n if (\n isset($request->file_img)\n &&\n ($request->file_img->getMimeType() == 'image/png' ||\n $request->file_img->getMimeType() == 'image/jpeg' ||\n $request->file_img->getMimeType() == 'image/jpg')\n && $request->file_img->getSize() <= 5120\n ) {\n $extension = $request->file('file_img')->guessClientExtension();\n $new_name_img = time() . '-' . $request->username . '.' . $extension;\n\n // move image to public images folder\n $request->file_img->move(public_path('images', $new_name_img));\n\n $user->image = $new_name_img;\n }\n $user->create_by = Auth::guard('admin')->user()->username;\n\n $save = $user->save();\n if ($save) {\n return redirect()->route('admin.showuser');\n } else {\n return back()->with('fail', 'an error occurred!');\n }\n }", "public function user_signup_new(Request $request)\n {\n $request->validate([\n 'first_name' => 'required',\n 'email' => 'required|string|unique:users',\n 'other_mobile_number' => 'required|integer|unique:users',\n 'selectType' => 'required',\n 'agree_check' => 'required|boolean',\n 'password' => 'required|string|confirmed'\n ]);\n\n $token = getenv(\"TWILIO_AUTH_TOKEN\");\n $twilio_sid = getenv(\"TWILIO_SID\");\n $twilio_verify_sid = getenv(\"TWILIO_VERIFY_SID\");\n $twilio = new Client($twilio_sid, $token);\n $twilio->verify->v2->services($twilio_verify_sid)\n ->verifications\n ->create(\"+91\".$request->other_mobile_number, \"sms\");\n\n $user = new User([\n 'name' => $request->first_name,\n 'last_name' => $request->last_name,\n 'email' => $request->email,\n 'usertype' => 3,\n 'userSelect_type' => $request->selectType,\n 'other_mobile_number' => $request->other_mobile_number,\n 'password' => bcrypt($request->password)\n ]);\n\n $user->save();\n eventtracker::create(['symbol_code' => '1', 'event' => $request->email.' created a new account as a User']);\n\n return response()->json([\n 'data' => $user,\n 'message' => 'Successfully created user!'\n ], 201);\n }", "public static function create() {\n\t\tif (empty(Validator::$errors)) {\n\t\t\tself::insert(self::$tablename, array(\"email\"=>self::$email, \"password_hash\"=>self::$password_hash));\n\t\t\tSession::setFlash(\"alert-success\",\"You have successfully signed up!\");\n\t\t} else {\n\t\t\tSession::setFlash(\"alert-danger\", self::display(Validator::$errors));\n\t\t\tValidator::$errors = [];\n\t\t}\n\t}", "public function register() {\n\t\tif ($this -> Auth -> loggedIn()) {\n\t\t\t$this -> Session -> setFlash('You are already registered.');\n\t\t\t$this -> redirect($this -> referer());\n\t\t}\n\t\tif ($this -> request -> is('post')) {\n\t\t\t$this -> User -> create();\n\t\t\t$data = $this -> request -> data;\n\t\t\t$data['User']['public_key'] = uniqid();\n\t\t\t$data['User']['role'] = \"user\";\n\t\t\t$data['User']['api_key'] = md5(microtime().rand());\n\t\t\tif ($this -> User -> save($data)) {\n\t\t\t\t$this -> Session -> setFlash(__('You have succesfully registered. Now you can login.'));\n\t\t\t\t$this -> redirect('/users/login');\n\t\t\t} else {\n\t\t\t\t$this -> Session -> setFlash(__('The user could not be saved. Please, try again.'));\n\t\t\t}\n\t\t}\n\n\t\t$this -> set('title_for_layout', 'User Registration');\n\t}", "protected function create()\n {\n// dd(request());\n // create new user in database\n $newUser = User::create([\n 'name' => \\request('name'),\n 'email' => \\request('email'),\n 'student_id' => \\request('student_id'),\n 'phone' => \\request('phone'),\n 'password' => bcrypt(\\request('password')),\n 'remember_token' => \\request('_token'),\n ]);\n\n\n //login the new user\n\n auth()->login($newUser);\n\n }", "private static function register() {\n if ( !self::validatePost() ) {\n return;\n }\n\n if ( !self::validEmail($_POST['email']) ) {\n self::setError('E-Mail Adresse ist nicht g&uuml;ltig!<br>');\n return;\n }\n \n $_POST['email'] = strtolower($_POST['email']);\n \n $password = Helper::hash($_POST['password'].$_POST['email']);\n \n $verified = md5($_POST['email'].$password.microtime(true));\n \n $result = Database::createUser($_POST['email'],$password,$verified);\n \n if ( $result === false || !is_numeric($result) ) {\n return;\n }\n \n $_SESSION['user']['id'] = $result;\n $_SESSION['user']['email'] = $_POST['email'];\n $_SESSION['user']['verified'] = $verified;\n $_SESSION['loggedin'] = true;\n self::$loggedin = true;\n \n self::registerMail($verified);\n }", "public function store()\n {\n // Validate form\n $validator = User::registrationValidation();\n $this->validate(request(), $validator);\n\n // Register user\n $registrationParams = User::registrationParams();\n $user = User::create(request($registrationParams));\n\n // Log in user\n User::loginUser($user);\n\n // Redirect to home page\n return redirect('/');\n }", "function createUser()\n{\n $userCheck = UsersQuery::create()->findOneByUsername($_POST['username']);\n if ($userCheck == \"\") {\n // next add user to db\n $user = new Users();\n $user->setUsername($_POST['username']);\n $user->setPassword($_POST['password']);\n $user->setName($_POST['name']);\n $user->setEmail($_POST['email']);\n $user->setStatus(\"active\");\n $user->setPicture(\"none\");\n $user->setCreated(time());\n $user->setModified(time());\n\n $user->save();\n\n if ($user != null) {\n echo \"user added successfully\";\n }\n } else {\n echo \"user already registered\";\n }\n}", "public function create(array $input)\n {\n Validator::make($input, [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'password' => $this->passwordRules(),\n 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['required', 'accepted'] : '',\n ])->validate();\n\n $user = User::create([\n 'name' => $input['name'],\n 'email' => $input['email'],\n 'password' => Hash::make($input['password']),\n 'timezone_id'=> Timezone::getTimezoneId($input['timezone'] ?? null),\n 'role_id'=> $input['role_id'] ?? Role::getDefaultRoleId()\n ]);\n\n $user->notify(new MyAccountRegistration);\n\n // todo: will require a change on role implementation\n User::where('id', '!=', $user->id)->get()->map(function ($admin) use ($user) {\n $admin->notify(new NewUserRegistration($user));\n });\n\n return $user;\n }", "private function createNewUser():User\n {\n $entityManager = $this->getDoctrine()->getManager();\n\n //create user\n $user = new User();\n $user->setEmail($this->request->request->get('email'));\n $user->setPassword('');\n $entityManager->persist($user);\n $entityManager->flush();\n //create user\n\n //encode user password\n $user->setPassword($user->encodePassword($this->request->request->get('password')));\n $entityManager->persist($user);\n $entityManager->flush();\n //encode user password\n return $user;\n }", "private function create()\n {\n return $this->db->putUser($this->getDefaultAttributes());\n }", "public function newUser($request)\r\n {\r\n /*\r\n * As before we set $params1 'Username'. We need this to check if user exist in database beacuse we don't allow\r\n * two user in database with the same username.\r\n */\r\n $params1 = [\r\n 'Username' => $request['username']\r\n ];\r\n if ($this->existUser($params1) == True) {\r\n /*\r\n * If in the database exits user with the same username then you return false (user must change username)\r\n */\r\n\r\n return False;\r\n } else {\r\n\r\n /*\r\n * Next step is creating a valid activation hash code. We need this for security (in URL you dont want to show UserID\r\n * beacuse in this case attacker has more information about your database)\r\n * Each of users in database has unique activation hash code. Activation hash code we need for activation account and\r\n * reseting password.\r\n *\r\n * Now,follow algorithm for creating unique activation hash code.\r\n */\r\n while (True) {\r\n $params2 = [\r\n 'Activation' => password_hash(rand(), PASSWORD_DEFAULT)\r\n ];\r\n\r\n if ($this->existUser($params2) != True) {\r\n break;\r\n }\r\n }\r\n\r\n /*\r\n * Next step is set params which need to create new user into database.\r\n */\r\n\r\n $params3 = [\r\n 'Username' => $request['username'],\r\n 'Email' => $request['email'],\r\n 'Password' => password_hash($request['password'], PASSWORD_DEFAULT),\r\n 'IsDeleted' => '0',\r\n 'Registration' => (new DateTime('now'))->format('Y-m-d h:s'),\r\n 'Activation' => $params2['Activation']\r\n ];\r\n\r\n $userID = $this->create();\r\n\r\n /*\r\n * Creating link which is send to user mail at registration for activating his account.\r\n */\r\n $link = \"http://www.mdtohtml.com/index.php?activation=\" . $params3['Activation'];\r\n\r\n /*\r\n * Inserting new user in database\r\n */\r\n $this->update($userID, $params3);\r\n\r\n /*\r\n * Now we have to prepare data to send activation mail to user (mail).\r\n */\r\n\r\n $data = [\r\n 'email' => $request['email'],\r\n 'title' => 'Registration support',\r\n 'body' => \"Hello!\\n\\nClick on below link to confirm your registration.\\n\\n$link\",\r\n 'subject' => 'Confirm password',\r\n 'user' => $request['username'],\r\n 'link' => $link,\r\n 'username' => '[email protected]',\r\n 'password' => 'preskok123'\r\n\r\n ];\r\n\r\n /*\r\n * At the end sending activating mail to user.\r\n */\r\n\r\n $this->send_mail($data);\r\n return True;\r\n }\r\n\r\n }", "public function registerUser()\n {\n $request = new Request();\n\n $email = $request->input('email');\n $password = $request->input('password');\n $password_repeat = $request->input('password_repeat');\n\n\n // Check email\n if (!$email) {\n $this->showRegisterForm(['Please enter email']);\n }\n // Check password\n if(!$password){\n $this->showRegisterForm(['Please enter password']);\n }\n if (!$password || !$password_repeat || $password != $password_repeat) {\n $this->showRegisterForm(['Passwords do not match']);\n }\n\n // Check user exist\n if ($this->getUser($email)) {\n $this->showRegisterForm(['User already isset']);\n }\n\n // Save user to DB\n $user = new User();\n $user->email = $email;\n $user->password = md5($password);\n $user->rights = 20;\n\n // Check save process\n if (!$user->save()) {\n $this->showRegisterForm(['Something goes wrong']);\n }\n\n // Redirect to endpoint\n header(\"Location: \" . self::ENDPOINTS['success_register']);\n }", "function createUser(){\n\t\t\tglobal $db;\n\t\t\tglobal $json;\n\t\t\t\n\t\t\t//Check if username meets minimum requirements\n\t\t\tif($this->username == \"\" || $this->username == null || strlen($this->username) < 6){\n\t\t\t\t$json->invalidMinimumRequirements(\"Username\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t//Check if username already exists\n\t\t\t\tif($db->query('SELECT * FROM user WHERE Username = \"'.$this->username.'\"')->rowCount() > 0){\n\t\t\t\t\t$json->exists(\"Username\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if password meets minimum requirements\n\t\t\tif($this->password == \"\" || $this->password == null || strlen($this->password) < 6){\n\t\t\t\t$json->invalidMinimumRequirements(\"Password\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$passHash = generatePassword($this->password);\n\t\t\t\t$this->password = $passHash;\n\t\t\t\t$apiHash = generateApiKey($this->username.\"\".date('Y-m-d'));\n\t\t\t}\n\t\t\t\n\t\t\t//Check if admin is empty or invalid, if so make user non-admin\n\t\t\tif($this->admin == \"\" || $this->admin == null || $this->admin < 0)\n\t\t\t\t$this->admin = 0;\n\t\t\t\n\t\t\tif($this->subject == \"\" || $this->subject == null || $this->subject < 0)\n\t\t\t\t$this->subject = 0;\n\t\t\t\t\n\t\t\t$insert = $db->prepare('INSERT INTO user VALUES (DEFAULT, :username, :password, :subject, :admin, :api)');\n\t\t\t$insert->bindParam(':username', $this->username);\n\t\t\t$insert->bindParam(':password', $this->password);\n\t\t\t$insert->bindParam(':subject', $this->subject);\n\t\t\t$insert->bindParam(':admin', $this->admin);\n\t\t\t$insert->bindParam(':api', $apiHash);\n\t\t\t\n\t\t\tif($insert->execute()){\n\t\t\t\t$json->created(\"User\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$json->server();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "protected function create(array $data)\n {\n $user = User::create([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => Hash::make($data['password']),\n 'verifyToken' => Str::random(40)\n ]);\n\n $thisUser = User::findorFail($user->id);\n $this->sendEmail($thisUser);\n \n Session::flash('status','Registered! but verify your email to active your account');\n\n return $user;\n\n }", "public function newUser() {\n $this->checkValidUser();\n\n $this->db->sql = 'INSERT INTO '.$this->db->dbTbl['users'].' (username, salt, hash) VALUES (:username, :salt, :hash)';\n\n $salt = $this->getNewSalt();\n\n $res = $this->db->execute(array(\n ':username' => $this->getData('username'),\n ':salt' => $salt,\n ':hash' => md5($salt . $this->getData('password'))\n ));\n\n if($res === false) {\n $this->output = array(\n 'success' => false,\n 'key' => 'xxT5r'\n );\n } else {\n $this->output = array(\n 'success' => true,\n 'key' => 'dU4r5'\n );\n }\n\n $this->renderOutput();\n }", "public function createUser () {\n syslog( LOG_INFO, 'Create a Lineberty User \\n' );\n\n $url = '/users';\n\n return $this->runRequest($url, 'POST', null);\n }", "public function test_user_created()\n {\n $this->wrongCredentials = false;\n $credentials = self::DEFAULT_CREDENTIALS;\n $user = $this->registerService->registerUser($credentials);\n $this->assertInstanceOf(User::class, $user);\n $this->assertEquals($credentials['email'], $user->email);\n $this->assertEquals($credentials['name'], $user->name);\n\n }", "public function create_user()\n\t{\n\t\tif (!$this->ion_auth->logged_in())\n\t\t{\n\t\t\t// redirect them to the login page\n\t\t\tredirect('/admin/login', 'refresh');\n\t\t}\n\t\t$this->data['title'] = $this->lang->line('create_user_heading');\n\n\t\t//See the ion_auth config to check if allow_user_registration is TRUE\n\t\tif( ! $this->config->item('allow_user_registration', 'ion_auth')){\n\n\t\t\tif (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())\n\t\t\t{\n\t\t\t\tredirect('/admin', 'refresh');\n\t\t\t}\n\n\t\t}\n\n\n\t\t$tables = $this->config->item('tables', 'ion_auth');\n\t\t$identity_column = $this->config->item('identity', 'ion_auth');\n\t\t$this->data['identity_column'] = $identity_column;\n\n\t\t// validate form input\n\t\t$this->form_validation->set_rules('first_name', $this->lang->line('create_user_validation_fname_label'), 'trim|required');\n\t\t$this->form_validation->set_rules('last_name', $this->lang->line('create_user_validation_lname_label'), 'trim|required');\n\t\tif ($identity_column !== 'email')\n\t\t{\n\t\t\t$this->form_validation->set_rules('identity', $this->lang->line('create_user_validation_identity_label'), 'trim|required|is_unique[' . $tables['users'] . '.' . $identity_column . ']');\n\t\t\t$this->form_validation->set_rules('email', $this->lang->line('create_user_validation_email_label'), 'trim|required|valid_email');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->form_validation->set_rules('email', $this->lang->line('create_user_validation_email_label'), 'trim|required|valid_email|is_unique[' . $tables['users'] . '.email]');\n\t\t}\n\t\t$this->form_validation->set_rules('phone', $this->lang->line('create_user_validation_phone_label'), 'trim');\n\t\t$this->form_validation->set_rules('company', $this->lang->line('create_user_validation_company_label'), 'trim');\n\t\t$this->form_validation->set_rules('password', $this->lang->line('create_user_validation_password_label'), 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]');\n\t\t$this->form_validation->set_rules('password_confirm', $this->lang->line('create_user_validation_password_confirm_label'), 'required');\n\n\t\tif ($this->form_validation->run() === TRUE)\n\t\t{\n\t\t\t$email = strtolower($this->input->post('email'));\n\t\t\t$identity = ($identity_column === 'email') ? $email : $this->input->post('identity');\n\t\t\t$password = $this->input->post('password');\n\n\t\t\t$additional_data = array(\n\t\t\t\t'first_name' => $this->input->post('first_name'),\n\t\t\t\t'last_name' => $this->input->post('last_name'),\n\t\t\t\t'company' => $this->input->post('company'),\n\t\t\t\t'phone' => $this->input->post('phone'),\n\t\t\t);\n\t\t}\n\t\tif ($this->form_validation->run() === TRUE && $this->ion_auth->register($identity, $password, $email, $additional_data))\n\t\t{\n\t\t\t// check to see if we are creating the user\n\t\t\t// redirect them back to the admin page\n\t\t\t$this->session->set_flashdata('message', $this->ion_auth->messages());\n\t\t\tredirect(\"auth\", 'refresh');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// display the create user form\n\t\t\t// set the flash data error message if there is one\n\t\t\t$this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));\n\n\t\t\t$this->data['first_name'] = array(\n\t\t\t\t'name' => 'first_name',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'first_name',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('first_name'),\n\t\t\t);\n\t\t\t$this->data['last_name'] = array(\n\t\t\t\t'name' => 'last_name',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'last_name',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('last_name'),\n\t\t\t);\n\t\t\t$this->data['identity'] = array(\n\t\t\t\t'name' => 'identity',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'identity',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('identity'),\n\t\t\t);\n\t\t\t$this->data['email'] = array(\n\t\t\t\t'name' => 'email',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'email',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('email'),\n\t\t\t);\n\t\t\t$this->data['company'] = array(\n\t\t\t\t'name' => 'company',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'company',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('company'),\n\t\t\t);\n\t\t\t$this->data['phone'] = array(\n\t\t\t\t'name' => 'phone',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'phone',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $this->form_validation->set_value('phone'),\n\t\t\t);\n\t\t\t$this->data['password'] = array(\n\t\t\t\t'name' => 'password',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'password',\n\t\t\t\t'type' => 'password',\n\t\t\t\t'value' => $this->form_validation->set_value('password'),\n\t\t\t);\n\t\t\t$this->data['password_confirm'] = array(\n\t\t\t\t'name' => 'password_confirm',\n\t\t\t\t'class' => 'form-control',\n\t\t\t\t'id' => 'password_confirm',\n\t\t\t\t'type' => 'password',\n\t\t\t\t'value' => $this->form_validation->set_value('password_confirm'),\n\t\t\t);\n\n\n\t\t\t$this->load->view('templates/header',$this->data);\n\t\t\t$this->load->view('/admin/create_user');\n\t\t\t$this->load->view('templates/footer');\n\t\t}\n\t}", "public function signupUser()\n { \n $user = User::findByUserEmail($this->email);\n if($user == null) { \n $user = new User();\n $user->user_full_name = $this->username;\n if(!empty($this->phone)) {\n $user->phone_number = $this->phone;\n }\n if(!empty($this->email)) { \n $user->email = $this->email;\n }\n $user->password_hash = md5($this->password);\n $user->login_method = 'email';\n $user->save();\n } \n return $user;\n }", "protected function _createUser() {\n\t\t$user = System_Locator_TableLocator::getInstance()->get('User')->createRow();\n\t\t$user->username = $this->getUsername();\n\t\t$user->setPassword($this->getPassword());\n\t\t$user->email = $this->getEmail();\n\t\t$user->countryCode = $this->getCountryCode();\n\t\t$user->createdAt = date(DATE_ISO8601); \n\t\treturn $user;\n\t}", "public function registration(UserCreateRequest $request)\n {\n $credentials = request()->all(['phone', 'password']);\n\n if ($token = auth()->attempt($credentials)) {\n return $this->respondWithToken($token);\n }\n if (User::where('phone', $credentials['phone'])->count() > 0) {\n return response()->json([\n 'errors' => [\n 'wrong' => 'Already exist'\n ]\n ], 401);\n }\n\n $user = User::store($request->all());\n auth()->login($user);\n\n $token = auth()->attempt($credentials);\n return $this->respondWithToken($token);\n }", "public function postRegister()\n\t{\n\t\t$user = new \\User;\n\n\t\t$user->email = \\Input::get( 'email' );\n\t\t$user->password = \\Input::get( 'password' );\n\n\t\t// The password confirmation will be removed from model\n\t\t// before saving. This field will be used in Ardent's\n\t\t// auto validation.\n\t\t$user->password_confirmation = \\Input::get( 'password_confirmation' );\n\n\t\t// Save if valid. Password field will be hashed before save\n\t\t$user->save();\n\n\t\tif ( $user->id )\n\t\t{\n\t\t\t//Assign the company role to this person\n\t\t\t$roleId = \\Role::where('name', '=', 'Company')->first()->id;\n\t\t\t$user->attachRole($roleId);\n\n\t\t\t// Redirect with success message, You may replace \"Lang::get(...\" for your custom message.\n\t\t\treturn \\Redirect::action('controllers\\company\\AuthController@getLogin')\n\t\t\t\t->with( 'notice', \\Lang::get('confide::confide.alerts.account_created') );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Get validation errors (see Ardent package)\n\t\t\t$error = $user->errors()->all(':message');\n\n\t\t\treturn \\Redirect::action('controllers\\company\\AuthController@getRegister')\n\t\t\t\t->withInput(\\Input::except('password'))\n\t\t\t\t->with( 'error', $error );\n\n\t\t}\n\n\t}", "public function create()\n {\n $this->validate($this->request, User::createRules());\n\n $user = new User;\n $user->name = $this->request->name;\n $user->phone = $this->request->phone;\n $user->dob = $this->request->dob;\n $user->image = $this->request->image_path;\n $plainPassword = $this->request->password;\n $user->password = app('hash')->make($plainPassword);\n\n $user->save();\n\n //return successful response\n return $this->response(201,\"User\", $user);\n }", "public function store()\n {\n $attributes = request()->validate([\n 'name' => 'required|max:255',\n 'username' => 'required|unique:users,username',\n 'email' => 'required|email|max:255|unique:users,email',\n 'password' => 'required',\n ]);\n $user = User::create($attributes);\n\n // Auth facades\n auth()->login($user);\n }", "public function create()\n {\n // TODO: Algún parámetro para no permitir el registro.\n \n // Es ya un usuario?\n if (Core::isUser())\n {\n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('') . '\\';');\n return;\n }\n \n // Tenemos datos?\n if ($this->request->is('email'))\n {\n // Validamos los datos\n $form = Core::getLib('form.validator');\n $form->setRules(Core::getService('account.signup')->getValidation());\n \n // Si no hay errores procedemos a capturar los datos.\n if ($form->validate())\n {\n // Agregamos usuario\n if (Core::getService('account.process')->add($this->request->getRequest()))\n {\n if (Core::getParam('user.verify_email_at_signup'))\n {\n // Vamos a que verifique su email\n Core::getLib('session')->set('email', $this->request->get('email'));\n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('account.verify') . '\\';');\n }\n else\n {\n // Iniciamos sesión\n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('account.login') . '\\';');\n }\n \n return;\n }\n }\n }\n \n $this->call('window.location.href = \\'' . Core::getLib('url')->makeUrl('account.signup') . '\\';');\n }", "public function store()\n\t{\n\t\t$rules = array(\n\t\t\t'username'=> 'required|alpha_dash|min:3|unique:users,username',\n\t\t\t'display_name'=> 'required',\n\t\t\t'email'=>'email',\n\t\t\t'password'=> 'required',\n\t\t\t'repeat_password'=> 'required|same:password'\n\t\t);\t\n\n\t\t$validation= Validator::make(Input::all(), $rules);\n\n\t\tif ($validation ->fails()) {\n\t\t\treturn Redirect::to('register')\n\t\t\t\t->withErrors($validation)\n\t\t\t\t->withInput(Input::all());\n\t\t}\n\n\t\t$user = new User;\n\t\t$user->username = Input::get('username');\n\t\t$user->password = Hash::make(Input::get('password'));\n\t\t$user->display_name = Input::get('display_name');\n\t\t$user->email = Input::get('email');\n\t\t$user->role = 'user';\n\t\t$user->token = sha1(uniqid());\n\t\t$user->status = 'pending';\n\t\t$user->save();\n\n\t\treturn Redirect::to('/')\n\t\t\t->with('message','User Created, Waiting for Approval');\n\t}", "public function writeNewUser () {\n if (! $this->Writeable()){\n throw new Exception('User object is not writeable, cannot write to DB');\n }\n\n if ($this->exists($this->loginId)) {\n throw new Exception('User already exists, cannot be created');\n }\n\n $i = new folksoDBinteract($this->dbc);\n if ($i->db_error()) {\n throw new Exception('DB connect error: ' . $i->error_info());\n }\n\n $i->sp_query(\n sprintf(\"call create_user(\"\n .\"'%s', '%s', '%s', '%s', '', %d, '%s', '%s', '%s')\",\n $i->dbescape($this->nick),\n $i->dbescape($this->firstName),\n $i->dbescape($this->lastName),\n $i->dbescape($this->email),\n $i->dbescape($this->loginId),\n $i->dbescape($this->institution),\n $i->dbescape($this->pays),\n $i->dbescape($this->fonction)));\n\n if ($i->result_status == 'DBERR') {\n throw new Exception('DB query error on create FB user: ' . $i->error_info());\n }\n }", "public function register()\n {\n if ($this->getIsNewRecord() == false) {\n throw new \\RuntimeException('Calling \"' . __CLASS__ . '::' . __METHOD__ . '\" on existing user');\n }\n\n if ($this->module->enableConfirmation == false) {\n $this->confirmed_at = time();\n }\n\n if ($this->module->enableGeneratingPassword) {\n $this->password = Password::generate(8);\n }\n\n $this->trigger(self::USER_REGISTER_INIT);\n\n if ($this->save(false)) {\n Yii::getLogger()->log($this->getErrors(), Logger::LEVEL_INFO);\n $this->trigger(self::USER_REGISTER_DONE);\n if ($this->module->enableConfirmation) {\n $token = \\Yii::createObject([\n 'class' => \\dektrium\\user\\models\\Token::className(),\n 'type' => \\dektrium\\user\\models\\Token::TYPE_CONFIRMATION,\n ]);\n $token->link('user', $this);\n $this->mailer->sendConfirmationMessage($this, $token);\n } else {\n \\Yii::$app->user->login($this);\n }\n if ($this->module->enableGeneratingPassword) {\n $this->mailer->sendWelcomeMessage($this);\n }\n \\Yii::$app->session->setFlash('info', $this->getFlashMessage());\n \\Yii::getLogger()->log('User has been registered', Logger::LEVEL_INFO);\n return true;\n }\n\n \\Yii::getLogger()->log('An error occurred while registering user account', Logger::LEVEL_ERROR);\n\n return false;\n }", "public function store(UserCreateRequest $request)\n {\n\t\t\t$user = User::create([\n\t\t\t\t'name' \t\t\t\t=> $request->input('name'),\n\t\t\t\t'lastname' \t\t=> $request->input('lastname'),\n\t\t\t\t'idNumber'\t\t=> $request->input('idNumber'),\n\t\t\t\t'email' \t\t\t=> $request->input('email'),\n\t\t\t\t'phone' \t\t\t=> $request->input('phone'),\n\t\t\t\t'address' \t\t=> $request->input('address'),\n\t\t\t\t'birthdate' \t=> $request->input('birthdate'),\n\t\t\t\t'category_id' => $request->input('category_id'),\n\t\t\t\t'password'\t\t=> 'password', // I NEED TO ADD LOGIN FUNCTIONALITY\n\t\t\t\t'is_admin'\t\t=> 0,\n\t\t\t\t'status' \t\t\t=> 'non live' // As default in the db?\n\t\t\t]);\n\n\t\t\treturn redirect('/users')->with('success', 'User Registered');\n }", "public function register()\n {\n $create_from = $this->request->get_body_params();\n\n $input = (object) array_intersect_key( $create_from,\n array_fill_keys(['username', 'password', 'email'], false)\n );\n\n $update = [\n 'first_name',\n 'last_name',\n ];\n\n /** @var \\WP_Error|integer $user */\n $user_id = \\wp_create_user($input->username, $input->password, $input->email);\n\n if (\\is_wp_error($user_id)) {\n throw new UnauthorizedException($user_id->get_error_message());\n }\n\n /** @var \\WP_User $user */\n $user = \\get_userdata($user_id);\n\n foreach ($update as $att) {\n $user->$att = $create_from[$att];\n }\n\n \\wp_update_user($user);\n\n return $this->response->ok([\n 'message' => sprintf(__('Hello %s', PMLD_TD), $user->nickname),\n 'user' => User::make($user),\n ]);\n\n }", "public function create(){\n\n $user = User::create($this->_cleaned);\n return $this->respond($user);\n }", "public function register() {\n \n $this->form_validation->set_rules('email', 'Email', 'required|valid_email');\n $this->form_validation->set_rules('password', 'Passwort', 'required');\n $this->form_validation->set_rules('dataprotection', 'Datenschutz', 'required');\n \n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n if (strtolower($this->input->post('dataprotection')) == 'true') {\n \t// TODO: save acceptance or acceptance date to db, i.e. hand over to model\n } else {\n \t$this->error(404, 'Dataprotection error');\n } \n \n $this->user_model->setValue('email', $this->input->post('email'));\n $this->user_model->setValue(\n \t'hashed_password', \n \tpassword_hash($this->input->post('password'), PASSWORD_DEFAULT));\n\n if (! $this->user_model->newUser()) {\n\t\t\t$this->error(409, 'Duplicate');\n }\n\n\t\t$this->sendConfirmationMail($this->input->post('email'));\n\t\t$data['msg'] = $this->input->post('email') . ' registered.';\n\t\t$this->responseWithCode(201, $data);\n }", "protected function create(array $data)\n {\n $company = Company::create([\n 'name' => $data['company'],\n 'referrer_id' => Session::pull(self::REFERRER_KEY),\n ]);\n\n $user = new User([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n ]);\n\n $user->company()->associate($company);\n\n if (!$user->save()) {\n abort(500, 'User registration failure.');\n }\n\n return $user;\n }", "public function register( CreateUserRequest $request ) {\n // store the user in the database\n $credentials = $request->only( 'name', 'email', 'password');\n $credentials[ 'password' ] = bcrypt( $credentials[ 'password' ] );\n $user = User::create($credentials);\n\n // now wire up the provider account (e.g. facebook) to the user, if provided.\n if ( isset( $request['provider'] ) && isset( $request['provider_id'] ) && isset( $request['provider_token'] ) ) {\n $user->accounts()->save( new Account( [\n 'provider' => $request['provider'],\n 'provider_id' => $request['provider_id'],\n 'access_token' => $request['provider_token'],\n ] ) );\n }\n\n // return the JWT to the user\n $token = JWTAuth::fromUser( $user );\n return response( compact( 'token' ), 200 );\n }", "public function store() \n\t{\n\t\t$input = Input::all();\n\t\t$validation = $this->validator->on('create')->with($input);\n\n\t\tif ($validation->fails())\n\t\t{\n\t\t\treturn Redirect::to(handles(\"orchestra::users/create\"))\n\t\t\t\t\t->withInput()\n\t\t\t\t\t->withErrors($validation);\n\t\t}\n\n\t\t$user = App::make('orchestra.user');\n\t\t$user->status = User::UNVERIFIED;\n\t\t$user->password = $input['password'];\n\n\t\t$this->saving($user, $input, 'create');\n\n\t\treturn Redirect::to(handles('orchestra::users'));\n\t}", "public function createUser(){\n $post = $this->_app->request->post();\n \n // Load the request schema\n $requestSchema = new \\Fortress\\RequestSchema($this->_app->config('schema.path') . \"/forms/user-create.json\");\n \n // Get the alert message stream\n $ms = $this->_app->alerts; \n \n // Access-controlled resource\n if (!$this->_app->user->checkAccess('create_account')){\n $ms->addMessageTranslated(\"danger\", \"ACCESS_DENIED\");\n $this->_app->halt(403);\n }\n\n // Set up Fortress to process the request\n $rf = new \\Fortress\\HTTPRequestFortress($ms, $requestSchema, $post); \n \n // Sanitize data\n $rf->sanitize();\n \n // Validate, and halt on validation errors.\n $error = !$rf->validate(true);\n \n // Get the filtered data\n $data = $rf->data(); \n \n // Remove csrf_token, password confirmation from object data\n $rf->removeFields(['csrf_token, passwordc']);\n \n // Perform desired data transformations on required fields. Is this a feature we could add to Fortress?\n $data['user_name'] = strtolower(trim($data['user_name']));\n $data['display_name'] = trim($data['display_name']);\n $data['email'] = strtolower(trim($data['email']));\n $data['active'] = 1;\n \n // Check if username or email already exists\n if (UserLoader::exists($data['user_name'], 'user_name')){\n $ms->addMessageTranslated(\"danger\", \"ACCOUNT_USERNAME_IN_USE\", $data);\n $error = true;\n }\n\n if (UserLoader::exists($data['email'], 'email')){\n $ms->addMessageTranslated(\"danger\", \"ACCOUNT_EMAIL_IN_USE\", $data);\n $error = true;\n }\n \n // Halt on any validation errors\n if ($error) {\n $this->_app->halt(400);\n }\n \n // Get default primary group (is_default = GROUP_DEFAULT_PRIMARY)\n $primaryGroup = GroupLoader::fetch(GROUP_DEFAULT_PRIMARY, \"is_default\");\n \n // Set default values if not specified or not authorized\n if (!isset($data['locale']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"locale\"]))\n $data['locale'] = $this->_app->site->default_locale;\n \n if (!isset($data['title']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"title\"])) {\n // Set default title for new users\n $data['title'] = $primaryGroup->new_user_title;\n }\n \n if (!isset($data['primary_group_id']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"primary_group_id\"])) {\n $data['primary_group_id'] = $primaryGroup->id;\n }\n \n // Set groups to default groups if not specified or not authorized to set groups\n if (!isset($data['groups']) || !$this->_app->user->checkAccess(\"update_account_setting\", [\"property\" => \"groups\"])) {\n $default_groups = GroupLoader::fetchAll(GROUP_DEFAULT, \"is_default\");\n $data['groups'] = [];\n foreach ($default_groups as $group_id => $group){\n $data['groups'][$group_id] = \"1\";\n }\n }\n \n // Hash password\n $data['password'] = Authentication::hashPassword($data['password']);\n \n // Create the user\n $user = new User($data);\n\n // Add user to groups, including selected primary group\n $user->addGroup($data['primary_group_id']);\n foreach ($data['groups'] as $group_id => $is_member) {\n if ($is_member == \"1\"){ \n $user->addGroup($group_id); \n }\n }\n \n // Store new user to database\n $user->store(); \n \n // Success message\n $ms->addMessageTranslated(\"success\", \"ACCOUNT_CREATION_COMPLETE\", $data);\n }", "private function generateUser()\n {\n \t$user=new User();\n \t$user->scenario = 'registration';\n \t$user->username=$this->user_name_prefix . '_' . time() . ++$this->userNameCounter;\n \t$user->email=time() . ++$this->emailCounter . $this->faker->unique()->email;\n \t$user->language = Yii::$app->language;\n \t$user->status = User::STATUS_ENABLED;\n \t$this->userId = $user->save(false) ? $user->id:false;\n \t$this->data[] = ['id'=>$user->id,'type'=>'user'];\n \treturn true;\n }", "private function registerNewUser()\n {\n if (empty($_POST['user_name'])) {\n $this->errors[] = \"Empty Username\";\n } elseif (empty($_POST['user_password_new']) || empty($_POST['user_password_repeat'])) {\n $this->errors[] = \"Empty Password\";\n } elseif ($_POST['user_password_new'] !== $_POST['user_password_repeat']) {\n $this->errors[] = \"Password and password repeat are not the same\";\n } elseif (strlen($_POST['user_password_new']) < 6) {\n $this->errors[] = \"Password has a minimum length of 6 characters\";\n } elseif (strlen($_POST['user_name']) > 64 || strlen($_POST['user_name']) < 2) {\n $this->errors[] = \"Username cannot be shorter than 2 or longer than 64 characters\";\n } elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['user_name'])) {\n $this->errors[] = \"Username does not fit the name scheme: only a-Z and numbers are allowed, 2 to 64 characters\";\n } elseif (empty($_POST['user_email'])) {\n $this->errors[] = \"Email cannot be empty\";\n } elseif (strlen($_POST['user_email']) > 64) {\n $this->errors[] = \"Email cannot be longer than 64 characters\";\n } elseif (!filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL)) {\n $this->errors[] = \"Your email address is not in a valid email format\";\n } elseif (!empty($_POST['user_name'])\n && strlen($_POST['user_name']) <= 64\n && strlen($_POST['user_name']) >= 2\n && preg_match('/^[a-z\\d]{2,64}$/i', $_POST['user_name'])\n && !empty($_POST['user_email'])\n && strlen($_POST['user_email']) <= 64\n && filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL)\n && !empty($_POST['user_password_new'])\n && !empty($_POST['user_password_repeat'])\n && ($_POST['user_password_new'] === $_POST['user_password_repeat'])\n ) {\n // create a database connection\n $this->db_connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n // change character set to utf8 and check it\n if (!$this->db_connection->set_charset(\"utf8\")) {\n $this->errors[] = $this->db_connection->error;\n }\n\n // if no connection errors (= working database connection)\n if (!$this->db_connection->connect_errno) {\n\n // escaping, additionally removing everything that could be (html/javascript-) code\n $user_name = $this->db_connection->real_escape_string(strip_tags($_POST['user_name'], ENT_QUOTES));\n $user_last = $this->db_connection->real_escape_string(strip_tags($_POST['user_last'], ENT_QUOTES));\n $user_email = $this->db_connection->real_escape_string(strip_tags($_POST['user_email'], ENT_QUOTES));\n\n $user_password = $_POST['user_password_new'];\n\n // crypt the user's password with PHP 5.5's password_hash() function, results in a 60 character\n // hash string. the PASSWORD_DEFAULT constant is defined by the PHP 5.5, or if you are using\n // PHP 5.3/5.4, by the password hashing compatibility library\n $user_password_hash = password_hash($user_password, PASSWORD_DEFAULT);\n\n // check if user or email address already exists\n $sql = \"SELECT * FROM users WHERE user_email = '\" . $user_email . \"';\";\n $query_check_user_name = $this->db_connection->query($sql);\n\n if ($query_check_user_name->num_rows == 1) {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, that username / email address is already taken. </div>\";\n } else {\n // write new user's data into database\n $sql = \"INSERT INTO users (user_name, user_last, user_password_hash, user_email)\n VALUES('\" . $user_name . \"', '\" . $user_last . \"', '\" . $user_password_hash . \"', '\" . $user_email . \"');\";\n $query_new_user_insert = $this->db_connection->query($sql);\n\n // if user has been added successfully\n if ($query_new_user_insert) {\n $this->messages[] = \"<div class='alert alert-success center' role='alert'> Your account has been created successfully. Please check your emails.</div>\";\n\n // Load username and datejoined for verifcation via email hashing\n $sql=\"SELECT `user_id`, `user_name`, `user_date_joined` FROM `users` WHERE `user_email` = '\" . $user_email . \"';\";\n $query_load_hash_verify = $this->db_connection->query($sql);\n\n // if loaded then include send email and display message\n if ( $query_load_hash_verify) {\n $result_row = $query_load_hash_verify -> fetch_object();\n $codeid = $result_row->user_id;\n $code2 = md5($result_row->user_name);\n $code3 = md5($result_row->user_date_joined);\n\n // created a hash of when the user joined split it into two parts\n $cuthashtime = substr($code3, 0, 4);\n $endhashtime = substr($code3, -4); \n\n $hashedname = $code2;\n $middlehashname = substr($hashedname, 0, 4);\n\n include 'Email.php';\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, but we couldn't send your email. Please contact support.</div>\";\n }\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, your registration failed. Please go back and try again. </div>\";\n }\n }\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> Sorry, no database connection. </div>\";\n }\n } else {\n $this->errors[] = \"<div class='alert alert-danger center' role='alert'> An unknown error occurred. </div>\";\n }\n }", "public function registerViaRequest()\n {\n return User::create(array_merge([\n 'password' => bcrypt(input('password')),\n ], only('email', 'name', 'is_public')));\n }", "protected function create(array $data)\n {\n $user = User::create([\n 'firstname' => $data['firstname'],\n 'lastname' => $data['lastname'],\n 'email' => $data['email'],\n 'role_id' => '3',\n 'status' => '0',\n 'territory' => $data['territory'],\n 'password' => bcrypt($data['password']),\n ]);\n $user->assignRole('client');\n try {\n EmailHelper::emailConfigChanges('user');\n Mail::send('emails.confirm-email', ['user' => $user, 'password' => false], function ($message) use ($user) {\n $message->from(config('mail.from.address'), config('mail.from.name'));\n $message->to($user->email);\n $message->bcc(config('site.bcc_users'));\n $message->subject(config('mail.from.name') . ': Verify your online account.');\n });\n } catch (\\Exception $e) {\n Log::info($e);\n }\n return $user;\n }", "public function store(CreateUserRequest $request)\n {\n\n // Try creating new user\n $newUser = User::createUserWithProfile($request->all());\n\n // Event new registered user\n event(new Registered($newUser));\n // Send user registered notification\n $newUser->sendUserRegisteredNotification();\n\n // Check if user need to verify email if not app will try to login the new user\n if (config('access.users.verify_email')) {\n // Send Email for Verification\n $newUser->sendEmailVerificationNotification();\n }\n\n return $newUser->sendResponse();\n }", "protected function create(array $data)\n {\n\n $user = User::create([\n 'first_name' => $data['first_name'],\n 'last_name' => $data['last_name'],\n 'email' => $data['email'],\n 'password' => Hash::make($data['password']),\n 'user_type' => $data['user_type'],\n 'active' => true,\n 'confirmed' => true,\n 'confirmation_code' => md5(uniqid(mt_rand(), true)),\n ]);\n\n // See if adding any additional permissions\n // if (! isset($data['permissions']) || ! count($data['permissions'])) {\n // $data['permissions'] = [];\n // }\n\n if ($user) {\n // User must have at least one role\n // if (! count($data['roles'])) {\n // throw new GeneralException(__('This User Needs atleast One Role'));\n // }\n\n // Add selected roles/permissions\n // $user->syncRoles($data['roles']);\n // $user->syncPermissions($data['permissions']);\n $user->assignRole('Organisation Superadmin');\n $user ->givePermissionTo('View Backend');\n\n //Send confirmation email if requested and account approval is off\n // if (isset($data['confirmation_email']) && $user->confirmed == 0 && ! config('access.users.requires_approval')) {\n // $user->notify(new UserNeedsConfirmation($user->confirmation_code));\n // }\n\n // event(new UserCreated($user));\n\n return $user;\n }\n\n }", "protected function create(array $data)\n {\n return User::create([\n 'first_name' => $data['first_name'],\n 'last_name' => $data['last_name'],\n 'gender'=>$data['gender'],\n 'tel_mobile'=>$data['tel_mobile'],\n 'country_code'=>$data['country_code'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n 'activated' => !config('settings.send_activation_email')\n ]);\n }", "protected function createUser()\n {\n $this->question('Enter your details for the admin user.');\n\n $user = \\App\\User::create([\n 'name' => $this->ask('Name', 'Admin'),\n 'email' => $this->ask('Email address', 'noreply@'.str_replace(['http://', 'https://'], '', config('app.url'))),\n 'password' => Hash::make($this->ask('Password')),\n ]);\n \n $this->info(\"Admin user created successfully. You can log in with username {$user->email}\");\n }", "public function createBlankUser()\r\n {\r\n $user = CrugeFactory::get()->getICrugeStoredUserNewModel();\r\n if ($user != null) {\r\n // asegura que no falle al validar por terminos y condiciones\r\n $user->terminosYCondiciones = true;\r\n // asegura que no falle al validar por captcha\r\n //\tcruge\\models\\data\\CrugeStoredUser.php (bypassCaptcha y _getCaptchaRule)\r\n $user->bypassCaptcha = true;\r\n return $user;\r\n } else {\r\n return null;\r\n }\r\n }", "public function newUser($user)\n\t{\n\t\t$input = $user;\n\t\t$rules = array(\n\t\t\t'username' => 'required|alpha_num|max:25|unique:users',\n\t\t\t'password' => 'required|min:8|max:25|confirmed',\n\t\t\t'dob' => 'required|before:'.date('Y-m-d', strtotime('-13 years')),\n\t\t\t'gender' => 'required|in:M,F',\n\t\t\t'email' => 'required|email|unique:users',\n\t\t\t'location' => 'regex:/[a-zA-Z0-9 \\-_]*/',\n\t\t\t'wug_api' => 'required_with:location|alpha_num'\n\t\t);\n\n\t\t$validation = Validator::make($input, $rules);\n\n\t\tif ($validation->fails())\n\t\t{\n\t\t return $validation->messages();\n\t\t}\n\n\t\t$api = new Api();\n\t\t$key = $api->randomString(40);\n\n\t\t$loc_id = NULL;\n\n\t\tif(!empty($input['location'])) {\n\t\t\t$loc = new Location();\n\t\t\t$loc_id = $loc->insertGetId(array(\n\t\t\t\t'location' => $input['location'],\n\t\t\t\t'wug_api' => $input['wug_api'],\n\t\t\t));\n\t\t}\n\n\t\t$user = new User();\n\t\t$user->api_key = $key;\n\t\t$user->username = $input['username'];\n\t\t$user->password = Hash::make($input['password']);\n\t\t$user->dob = $input['dob'];\n\t\t$user->gender = $input['gender'];\n\t\t$user->location_id = $loc_id;\n\t\t$user->email = $input['email'];\n\n\t\t$user->save();\n\n\t\treturn true;\n\t}", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level', 16 => 'store_owner');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel, 16 => 1);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n }", "public function newAppUser()\n {\n $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_STRING);\n $name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);\n $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\n $role = filter_input(INPUT_POST, 'role', FILTER_SANITIZE_STRING);\n $status = filter_input(INPUT_POST, 'status', FILTER_SANITIZE_NUMBER_INT);\n\n $errorList = [];\n if (empty($email)) {\n $errorList[] = 'Vous devez saisir un email';\n }\n if (empty($name)) {\n $errorList[] = 'Vous devez saisir un nom';\n }\n if (empty($password)) {\n $errorList[] = 'Vous devez saisir un mot de passe';\n }\n if (empty($role)) {\n $errorList[] = 'Vous devez saisir un rôle';\n }\n\n if (empty($errorList)) {\n $user = new AppUser();\n $user->setEmail($email);\n $user->setName($name);\n $user->setPassword($password);\n $user->setRole($role);\n $user->setStatus($status);\n\n $inserted = $user->create();\n\n if ($inserted) {\n global $router;\n header('Location: ' . $router->generate('appusers-list'));\n return;\n } else {\n $errorList[] = 'L\\'insertion des données s\\'est mal passée';\n }\n }\n\n if (!empty($errorList)) {\n $user = new AppUser();\n $user->setEmail($email);\n $user->setName($name);\n $user->setPassword($password);\n $user->setRole($role);\n $user->setStatus($status);\n\n $this->show('users/add', [\n 'errorList' => $errorList,\n 'user' => $user\n ]);\n }\n }", "public function create(UserCreateRequest $request): User\n {\n // TODO: Implement create() method.\n }", "public function execute(array $data) : User\n {\n $data['password'] = Hash::make($data['password']);\n\n //We will create activation code to be used for Email Confirmation\n $data['activation_token'] = QioskApp::createToken('email');\n\n //Now we create the user by adding it to our database\n $user = $this->User::create($data);\n\n //throws an exception if user hasnt yet created\n if (!$user) {\n throw new CustomException('Registration falied!', 500);\n }\n\n //dispatch an event to send confirmation email and log user creation\n event(new $this->signedUpEvent($user));\n\n return $user;\n }", "public function createRegister(){\n\t\t$userRepo = new UserRepository(App::getInstance());\n\n\t\t//check if user exists first. Search user by email.\n\t\t$user = $userRepo->getUserByEmail($_POST['email']);\n\t\tif($user!=null){\n\t\t\t//Error Message\n\t\t\treturn view('newRegForm')->with('error', true);\n\t\t}\n\n\t\telse{\n\t\t\t//Creates a new user and then returns ALL the registers to the view\n\t\t\t$user = new User($_POST);\n\t\t\t$user = $userRepo->create($user);\n\t\t\t$user = $userRepo->selectAll();\n\n\t\t\treturn view('viewRegisters')->with(['users'=>$user,'error'=>false]);\n\t\t}\n\t}", "public function registerAction(Request $request){\n //for the view\n $params = array(\"title\" => _(\"Sign up\"), \"errors\" => array());\n\n $params['username'] = \"\";\n $params['email'] = \"\";\n\n //handle register form\n if ($request->isMethod('post')){\n\n $username = $request->input('username');\n $params['username'] = $username;\n $email = $request->input('email');\n $params['email'] = $email;\n $password = $request->input('password');\n $password_bis = $request->input('password_bis');\n\n //validation\n $validator = new CustomValidator();\n\n $validator->validateUsername($username);\n $validator->validateUniqueUsername($username);\n $validator->validateEmail($email);\n $validator->validateUniqueEmail($email);\n $validator->validatePassword($password);\n $validator->validatePasswordBis($password_bis, $password);\n\n if ($validator->isValid()){\n //hydrate user obj\n $securityHelper = new SH();\n $user = new User();\n \n $user->setNewUuid();\n $user->setUsername( $username );\n $user->setEmail( $email );\n $user->setEmailValidated(false);\n $user->setRole( \"user\" );\n $user->setSalt( SH::randomString() );\n $user->setToken( SH::randomString() );\n $user->setSiteLanguage( 'en' );\n $user->setActive( true );\n\n $hashedPassword = $securityHelper->hashPassword( $password, $user->getSalt() );\n \n $user->setPassword( $hashedPassword );\n// $user->setIpAtRegistration( $_SERVER['REMOTE_ADDR'] );\n $user->setIpAtRegistration($request->ip());\n $user->setDateCreated( time() );\n $user->setDateModified( time() );\n\n //save it\n $userManager = new UserManager();\n $userManager->save($user);\n// @TODO: MAILER\n// send email confirmation message\n// $mailer = new Mailer();\n//\n// $mailerResult = $mailer->sendRegistrationConfirmation($user);\n\n //log user in right now (will redirect home)\n $this->logUser($request, $user);\n// $this->logUser($request, $user);\n $json = new JsonResponse();\n $json->setData(array(\"redirectTo\" => Route('graph')));\n $json->send();\n }\n //not valid\n else {\n $errors = $validator->getErrors();\n $params[\"errors\"] = $errors;\n return response()->json([\n 'error' => $errors\n ],400);\n }\n\n }\n return view('auth.register',['params'=> $params]);\n// $view = new View(\"register.php\", $params);\n// $view->setLayout(\"../View/layouts/modal.php\");\n// $view->send(true);\n }", "public function signup()\n {\n if ($this->validate()) {\n $user = new User();\n $user->username = $this->username;\n $user->first_name = $this->firstName;\n $user->last_name = $this->lastName;\n $user->email = $this->email;\n $user->setPassword($this->password);\n $user->generateAuthKey();\n $user->ip = Yii::$app->request->getUserIP();\n $user->ua = Yii::$app->request->getUserAgent();\n if ($user->save()) {\n $this->user = $user;\n $this->sendMail();\n return $user;\n }\n }\n\n return false;\n }", "protected function create(array $data)\n {\n $userData = Request::all();\n $confirmationCode = str_random(30);\n\n $fields = [\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'password' => bcrypt($data['password']),\n ];\n if (config('auth.providers.users.field', 'email') === 'username' && isset($data['username'])) {\n $fields['username'] = $data['username'];\n }\n\n //return User::create($fields);\n //create user with role and permisssion\n $user = new User;\n $user->name = $userData['name'];\n $user->email = $userData['email'];\n $user->password = Hash::make($userData['password']);\n $user->confirmation_code = $confirmationCode;\n $user->save();\n\n //adding roles to a user\n $user->assignRole('user');\n //adding permissions to a user\n $user->givePermissionTo('edit not allowed');\n //user id $user->id\n //save userlocation info\n $this->SaveUserMeta($user->id, \"182.185.148.11\");\n //send verification email.\n $this->SendActivationEmail($confirmationCode);\n\n return $user;\n\n }", "public function creating(User $user)\n {\n if (empty($user->login)) {\n $user->login = $user->email;\n }\n\n if (null === $user->my_id || empty($user->my_id)) {\n $user->my_id = generateMyId();\n }\n }", "public function registerUser() {\n $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[5]|max_length[12]|is_unique[user.username]',\n array('min_length' => 'Username length has to be between 5 & 12 characters.',\n 'max_length' => 'Username length has to be between 5 & 12 characters.',\n 'is_unique' => 'Username is already in use.'));\n $this->form_validation->set_rules('password', 'Password', 'required|min_length[8]|max_length[16]|matches[confirmPassword]',\n array('min_length' => 'Password length has to be between 8 & 16 characters.',\n 'max_length' => 'Password length has to be between 8 & 16 characters.',\n 'matches' => 'Passwords do not match.'));\n $this->form_validation->set_rules('confirmPassword', 'Password Confirmation', 'required');\n $this->form_validation->set_rules('emailAddress', 'Email Address', 'trim|required|valid_email|is_unique[user.userEmail]',\n array('valid_email' => 'Email is not valid.',\n 'is_unique' => 'Email is already in use.'));\n\n if ($this->form_validation->run() == FALSE) {\n $this->registration();\n\n } else {\n $formUsername = $this->input->post('username');\n $formPassword = $this->input->post('password');\n $formEmailAddress = $this->input->post('emailAddress');\n $this->UserManager->registerUser($formUsername, $formPassword, $formEmailAddress);\n $this->login();\n }\n }", "protected function create(array $data)\n {\n $user = User::create([\n 'email' => $data['registerEmail'],\n 'password' => bcrypt($data['registerPassword']),\n 'status' => 'active'\n ]);\n\n $user->profile()->create($data['profile']);\n $user->travelInformation()->create($data['travel']);\n\n return $user;\n }", "public function createUser()\n {\n $c = $this->getConnectionWithConfig('default');\n\n // First we create the record that we need to update\n $create = 'CREATE (u:User {name: $name, email: $email, username: $username})';\n // The bindings structure is a little weird, I know\n // but this is how they are collected internally\n // so bare with it =)\n $createCypher = $c->getCypherQuery($create, array(\n 'name' => $this->user['name'],\n 'email' => $this->user['email'],\n 'username' => $this->user['username'],\n ));\n\n return $this->client->run($createCypher['statement'], $createCypher['parameters']);\n }", "public function save(CreateUserRequest $request)\n {\n $this->authorize('create', User::class);\n\n $pass = $this->get_password($request);\n $user = User::create([\n 'name' => $request->input('name'),\n 'phone_number' => $request->input('phone_number'),\n 'email' => $request->input('email'),\n 'password' => bcrypt($pass),\n 'role_id' => $request->input('role_id', 3)\n ]);\n\n $user->notify(new AdminUserCreated($user, $pass));\n\n return redirect()->route('active_user', $user->id);\n }", "public function create(CreateUserRequest $request) {\n $user = $request->commit();\n\n //Trigger user edited event\n event(new UserCreated($user));\n\n //Reloads page\n return redirect()->action('Platform\\UserController@edit', $user)->with('alert', [\n 'type' => 'success',\n 'message' => 'User created'\n ]);\n }", "function register_user() {\n\t\tglobal $ID, $lang, $conf, $auth, $yubikey_associations;\n\n\t\tif(!$auth->canDo('addUser')) return false;\n\n\t\t$_POST['login'] = $_POST['nickname'];\n\n\t\t// clean username\n\t\t$_POST['login'] = preg_replace('/.*:/','',$_POST['login']);\n\t\t$_POST['login'] = cleanID($_POST['login']);\n\t\t// clean fullname and email\n\t\t$_POST['fullname'] = trim(preg_replace('/[\\x00-\\x1f:<>&%,;]+/','',$_POST['fullname']));\n\t\t$_POST['email'] = trim(preg_replace('/[\\x00-\\x1f:<>&%,;]+/','',$_POST['email']));\n\n\t\tif (empty($_POST['login']) || empty($_POST['fullname']) || empty($_POST['email'])) {\n\t\t\tmsg($lang['regmissing'], -1);\n\t\t\treturn false;\n\t\t} else if (!mail_isvalid($_POST['email'])) {\n\t\t\tmsg($lang['regbadmail'], -1);\n\t\t\treturn false;\n\t\t}\n\n\t\t// okay try to create the user\n\t\tif (!$auth->createUser($_POST['login'], auth_pwgen(), $_POST['fullname'], $_POST['email'])) {\n\t\t\tmsg($lang['reguexists'], -1);\n\t\t\treturn false;\n\t\t}\n\n\t\t$user = $_POST['login'];\n\t\t$yubikey = $_SERVER['REMOTE_USER'];\n\n\t\t// if our yubikey id is based on a non-registered user, we need to chunk off the \"yubikey:\"\n\t\t// part of it\n\t\tif (preg_match('!^yubikey:!', $yubikey)) {\n\t\t\t$yubikey = substr($yubikey, 8);\n\t\t}\n\n\t\t// we update the YubiKey associations array\n\t\t$this->register_yubikey_association($user, $yubikey);\n\n\t\t$this->update_session($user);\n\n\t\t// account created, everything OK\n\t\t$this->_redirect(wl($ID));\n\t}", "public function store(UserCreateRequest $request): UserResource\n {\n /* Convert request to array */\n $data = $request->all();\n\n /* Hashing password */\n $data['password'] = bcrypt($request->input('password'));\n\n /* Store data to database */\n $user = User::create($data);\n\n /* Send Register email to the user */\n event(new Registered($user));\n\n activity(\"Admin\")\n ->on($user)\n ->withProperties([\n ['IP' => $request->ip()],\n ['user_data' => $request->all()],\n ])\n ->log('Store a user');\n\n return new UserResource($user->loadMissing('plans'));\n }" ]
[ "0.7750602", "0.7489929", "0.7474633", "0.7474633", "0.7474633", "0.7474633", "0.7418831", "0.7418831", "0.7361687", "0.73091877", "0.7290402", "0.7170887", "0.7153413", "0.71367514", "0.7130723", "0.7116712", "0.7107231", "0.7092155", "0.70859027", "0.7084165", "0.706826", "0.706826", "0.70554525", "0.7055291", "0.7033631", "0.7026784", "0.70149404", "0.70132315", "0.69851196", "0.6964616", "0.695086", "0.6941911", "0.6941205", "0.69300467", "0.6901686", "0.68745273", "0.6854613", "0.6849693", "0.68476766", "0.6847447", "0.6837731", "0.682097", "0.6814089", "0.6806235", "0.67993814", "0.67931235", "0.6783314", "0.6782719", "0.678171", "0.6778698", "0.67755586", "0.67709005", "0.67694837", "0.6768079", "0.6756934", "0.67446995", "0.67405665", "0.6738445", "0.673286", "0.67255026", "0.67174953", "0.671197", "0.66984844", "0.66933024", "0.6691878", "0.6691874", "0.669181", "0.66914505", "0.66904813", "0.66883856", "0.6682501", "0.66823685", "0.6680357", "0.66773355", "0.66739744", "0.6673674", "0.6671424", "0.6666521", "0.66582483", "0.6656376", "0.6650788", "0.66468096", "0.6645676", "0.66385514", "0.6634876", "0.6629156", "0.66243297", "0.66243136", "0.66239494", "0.66212934", "0.66176444", "0.6614809", "0.6607175", "0.6601911", "0.66013247", "0.65973485", "0.6595453", "0.65950507", "0.65944815", "0.6586079", "0.65689844" ]
0.0
-1
Overriding default register function vendor/laravel/framework/src/Illuminate/Foundation/Auth/RegistersUsers.php
public function register(Request $request){ $validator = $this->validator($request->all()); Mail::raw('Sending emails with Mailgun and Laravel is easy!', function($message){ $message->to('[email protected]'); }); if ($validator->fails()) { $this->throwValidationException( $request, $validator ); } $user = $this->create($request->all()); $this->activationService->sendActivationMail($user); // Auth::guard($this->getGuard())->login($this->create($request->all())); return redirect('/login')->with('status', 'We sent you an activation code. Check your email.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function overrideRegistration()\n {\n $this->app->instance(\n Spark\\Contracts\\Http\\Requests\\Auth\\RegisterRequest::class,\n RegisterRequest::class\n );\n }", "private function register(): void\n {\n $user = User::factory()->create();\n $this->actingAs($user);\n }", "public function register_user()\n {\n \n return true;\n \n }", "public function register()\n {\n Auth::extend('sso', function ($app, $name, array $config) {\n // 返回一个 Illuminate\\Contracts\\Auth\\Guard 实例...\n return new OaGuard(Auth::createUserProvider($config['provider']),$app->make('request'));\n });\n\n Auth::provider('sso', function ($app, array $config) {\n return new OaUserProvider();\n });\n }", "public function register() {\n\t\tif ($this -> Auth -> loggedIn()) {\n\t\t\t$this -> Session -> setFlash('You are already registered.');\n\t\t\t$this -> redirect($this -> referer());\n\t\t}\n\t\tif ($this -> request -> is('post')) {\n\t\t\t$this -> User -> create();\n\t\t\t$data = $this -> request -> data;\n\t\t\t$data['User']['public_key'] = uniqid();\n\t\t\t$data['User']['role'] = \"user\";\n\t\t\t$data['User']['api_key'] = md5(microtime().rand());\n\t\t\tif ($this -> User -> save($data)) {\n\t\t\t\t$this -> Session -> setFlash(__('You have succesfully registered. Now you can login.'));\n\t\t\t\t$this -> redirect('/users/login');\n\t\t\t} else {\n\t\t\t\t$this -> Session -> setFlash(__('The user could not be saved. Please, try again.'));\n\t\t\t}\n\t\t}\n\n\t\t$this -> set('title_for_layout', 'User Registration');\n\t}", "public function register () : void\n {\n $this->getHttpReferer();\n\n // if the user is already logged in,\n // redirection to the previous page\n if ($this->session->exist(\"auth\")) {\n $url = $this->router->url(\"admin\");\n Url::redirect(301, $url);\n }\n\n $errors = []; // form errors\n $flash = null; // flash message\n\n $tableUser = new UserTable($this->connection);\n $tableRole = new RoleTable($this->connection);\n\n // form validator\n $validator = new RegisterValidator(\"en\", $_POST, $tableUser);\n\n // check that the form is valid and add the new user\n if ($validator->isSubmit()) {\n if ($validator->isValid()) {\n $role = $tableRole->find([\"name\" => \"author\"]);\n\n $user = new User();\n $user\n ->setUsername($_POST[\"username\"])\n ->setPassword($_POST[\"password\"])\n ->setSlug(str_replace(\" \", \"-\", $_POST[\"username\"]))\n ->setRole($role);\n\n $tableUser->createUser($user, $role);\n\n $this->session->setFlash(\"Congratulations {$user->getUsername()}, you are now registered\", \"success\", \"mt-5\");\n $this->session\n ->write(\"auth\", $user->getId())\n ->write(\"role\", $user->getRole());\n\n // set the token csrf\n if (!$this->session->exist(\"token\")) {\n $csrf = new Csrf($this->session);\n $csrf->setSessionToken(175, 658, 5);\n }\n\n $url = $this->router->url(\"admin\") . \"?user=1&create=1\";\n Url::redirect(301, $url);\n } else {\n $errors = $validator->getErrors();\n $errors[\"form\"] = true;\n }\n }\n\n // form\n $form = new RegisterForm($_POST, $errors);\n\n // url of the current page\n $url = $this->router->url(\"register\");\n\n // flash message\n if (array_key_exists(\"form\", $errors)) {\n $this->session->setFlash(\"The form contains errors\", \"danger\", \"mt-5\");\n $flash = $this->session->generateFlash();\n }\n\n $title = App::getInstance()\n ->setTitle(\"Register\")\n ->getTitle();\n\n $this->render(\"security.auth.register\", $this->router, $this->session, compact(\"form\", \"url\", \"title\", \"flash\"));\n }", "public function registerNewUser($fullName,$email,$password);", "public function register(Request $request)\n {\n $id = uniqid();\n\n $validator = Validator::make($request->all(),[\n 'name' => 'required',\n 'email' => 'required|email|unique:users',\n 'password' => 'required',\n 'confirm_password' => 'required|same:password'\n ]);\n\n if ($validator->fails())\n {\n $result['success'] = false;\n $result['message'] = $validator->errors();\n return response()->json($result,462);\n }\n\n //Raise event and send to function for creation\n event(new Registered(\n $user = $this->create($request->all())\n ));\n\n //Create a profile for user as well\n Profile::create([\n 'user_id' => $user->id\n ]);\n\n // $success = $this->login($request);\n $result['token'] = $user->createToken($this->tokenName . $id)->accessToken;\n $result['name'] = $user->name;\n $result['unique_id'] = $this->tokenName . $id;\n $result['profile'] = $user->profile;\n\n return response()->json($result, $this->successStatus);\n }", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'name' => 'required|string|max:50',\n 'email' => 'required|string|email|unique:users',\n 'password' => 'required|string|min:6',\n ]);\n\n if ($validator->fails()) {\n return response()->json(['errors' => $validator->errors()], 422);\n }\n\n $data = $request->only(['name', 'email', 'password']);\n $data['password'] = bcrypt($data['password']);\n\n $user = User::create($data);\n $user->is_admin = 0;\n\n return response()->json([\n 'user' => $user,\n 'token' => $user->createToken('JGalleria')->accessToken,\n ]);\n }", "public function registerUser($data);", "public function postRegister()\n {\n $input = Input::all();\n\n $input = $this->userSanitizer->sanitize($input);\n\n try {\n $this->registerUserValidator->validate($input);\n } catch (FormValidationException $e) {\n return Redirect::back()\n ->withErrors($e->getErrors())\n ->withInput();\n }\n\n $user = $this->users->register($input);\n $this->events->fire('user.registered', array($user));\n\n Notification::success('You are now registered and can login.');\n return Redirect::route('login');\n }", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'password' => ['required', 'string', 'min:8', 'confirmed'],\n ]);\n\n if ($validator->fails()) {\n return redirect('/home')->withInput()->withErrors($validator);\n }\n\n $this->user->createUser($request->all());\n return redirect('/home');\n }", "public function register(Request $request)\n {\n $users = $request->all();\n $validator = Validator::make($request->all(), [\n 'name' => ['required'],\n 'email' => ['required'],\n 'password' => ['required', ' confirmed'],\n 'phone' => ['required'],\n ]);\n\n if ($validator->fails()) {\n return response()->json($validator->errors(), Response::HTTP_UNPROCESSABLE_ENTITY);\n }\n $users['password'] = bcrypt($request->password);\n try {\n $users = User::create($users);\n $token = $users->createToken('token')->plainTextToken;\n $respone = [\n 'status' => Response::HTTP_CREATED,\n 'message' => \"users was created\",\n 'data' => $users,\n 'token' => $token\n ];\n\n return response()->json($respone, Response::HTTP_CREATED);\n } catch (QueryException $e) {\n return response()->json([\n 'status' => Response::HTTP_UNPROCESSABLE_ENTITY,\n 'message' => $e->errorInfo\n ]);\n }\n }", "public function register()\n\t{\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->User->create();\n\n\t\t\t// CakePHP automatically call $this->User->validates() for us before saving it.\n\t\t\tif ($this->User->save($this->request->data)) {\n\t\t\t\t// we set the id of our newly created User to the request->data params\n\t\t\t\t$this->request->data['User']['id'] = $this->User->id;\n\t\t\t\t// so we can log in directly. (We don't use $this->User because the password is now encrypted so it would not match).\n\t\t\t\t$this->Auth->login($this->request->data['User']);\n\t\t\t\treturn $this->redirect(array('controller' => 'messages', 'action' => 'index'));\n\t\t\t}\n\t\t}\n\t}", "public function register(Request $request)\n {\n //validate incoming request \n $this->validate($request, [\n 'username' => 'required|string|unique:users',\n 'password' => 'required|confirmed',\n \n ]);\n\n try \n {\n $user = new User;\n $user->username= $request->input('username');\n $user->password = app('hash')->make($request->input('password'));\n $user->user_ip = $request->ip();\n $user->register_date =Carbon::now();\n $user->isAdmin = true;\n $user->save();\n\n return response()->json( [\n 'entity' => 'users', \n 'action' => 'create', \n 'result' => 'success'\n ], 201);\n\n } \n catch (\\Exception $e) \n {\n return response()->json( [\n 'entity' => 'users', \n 'action' => 'create', \n 'result' => 'failed'\n ], 409);\n }\n }", "public function register(Request $request)\n {\n// 'identity_code' => 'required|numeric',\n// 'name' => 'required|max:30|alpha',\n// 'lastname' => 'required|max:30|alpha',\n// 'email' => 'required|email|max:60',\n// 'password' => 'required|numeric',\n//\n// ]);\n//\n// if ($validator->fails()) {\n// return redirect('/signup')\n// ->withErrors($validator)\n// ->withInput();\n// } else {\n $user = User::create([\n 'phone' => $request->password, 'identity_code' => $request->identity_code, 'name' => $request->name,\n 'lastname' => $request->lastname, 'email' => $request->email, 'roll' => $request->role,\n 'password' => Hash::make($request->password)\n ]);\n// Auth::login($user);\n return redirect('/login');\n }", "public function registerUser()\n {\n $request = new Request();\n\n $email = $request->input('email');\n $password = $request->input('password');\n $password_repeat = $request->input('password_repeat');\n\n\n // Check email\n if (!$email) {\n $this->showRegisterForm(['Please enter email']);\n }\n // Check password\n if(!$password){\n $this->showRegisterForm(['Please enter password']);\n }\n if (!$password || !$password_repeat || $password != $password_repeat) {\n $this->showRegisterForm(['Passwords do not match']);\n }\n\n // Check user exist\n if ($this->getUser($email)) {\n $this->showRegisterForm(['User already isset']);\n }\n\n // Save user to DB\n $user = new User();\n $user->email = $email;\n $user->password = md5($password);\n $user->rights = 20;\n\n // Check save process\n if (!$user->save()) {\n $this->showRegisterForm(['Something goes wrong']);\n }\n\n // Redirect to endpoint\n header(\"Location: \" . self::ENDPOINTS['success_register']);\n }", "public function register()\n {\n\t\tUser::deleting(function ($user) {\n\t\t\tif ($user->id === 1) {\n\t\t\t\treturn redirect()->back();\n\t\t\t}\n\t\t});\n }", "public function register(Request $request)\n {\n $this->validator($request->except('form_type'))->validate();\n\n $user = $this->create($request->except('form_type'));\n $role = Role::findOrFail($request->input('role_id'));\n $user->attachRole($role);\n $form_type = $request->only('form_type');\n switch ($form_type['form_type']){\n case 'admin_create' :\n $this->guard()->login($user);\n $this->registered($request, $user);\n break;\n\n case 'dashboard_create' :\n return redirect()->route('admin.user.index')->with('success', 'User is created !');\n break;\n }\n }", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'first_name' => 'required|between:2,100',\n 'last_name' => 'required|between:2,100',\n 'username' => 'required|between:2,100',\n 'email' => 'required|email|unique:users|max:50',\n 'password' => 'required|string|min:6',\n ]);\n\n if ($validator->fails()) {\n return response()->json($validator->errors(), 200);\n }\n\n $user = User::create(array_merge(\n $validator->validated(),\n ['password' => app('hash')->make($request->password)]\n ));\n $token = auth()->attempt($validator->validated());\n return $this->createNewToken($token, \"register\");\n }", "public function register()\n {\n if ($this->getIsNewRecord() == false) {\n throw new \\RuntimeException('Calling \"' . __CLASS__ . '::' . __METHOD__ . '\" on existing user');\n }\n\n if ($this->module->enableConfirmation == false) {\n $this->confirmed_at = time();\n }\n\n if ($this->module->enableGeneratingPassword) {\n $this->password = Password::generate(8);\n }\n\n $this->trigger(self::USER_REGISTER_INIT);\n\n if ($this->save(false)) {\n Yii::getLogger()->log($this->getErrors(), Logger::LEVEL_INFO);\n $this->trigger(self::USER_REGISTER_DONE);\n if ($this->module->enableConfirmation) {\n $token = \\Yii::createObject([\n 'class' => \\dektrium\\user\\models\\Token::className(),\n 'type' => \\dektrium\\user\\models\\Token::TYPE_CONFIRMATION,\n ]);\n $token->link('user', $this);\n $this->mailer->sendConfirmationMessage($this, $token);\n } else {\n \\Yii::$app->user->login($this);\n }\n if ($this->module->enableGeneratingPassword) {\n $this->mailer->sendWelcomeMessage($this);\n }\n \\Yii::$app->session->setFlash('info', $this->getFlashMessage());\n \\Yii::getLogger()->log('User has been registered', Logger::LEVEL_INFO);\n return true;\n }\n\n \\Yii::getLogger()->log('An error occurred while registering user account', Logger::LEVEL_ERROR);\n\n return false;\n }", "public function register(Request $request) {\n $user_data = $request->all();\n $validator = $this->validator($user_data);\n\n if ($validator->fails())\n return response()->json(['registered' => false]);\n\n $user_data['password'] = bcrypt($user_data['password']);\n $user = \\App\\User::create($user_data);\n $user->roles()->attach(\\App\\Role::where('name', 'user')->get()[0]->id);\n\n return response()->json(['registered' => true]);\n }", "public function register(string $username, string $password, string $email);", "public function register(Request $request)\n {\n $this->validate($request, [\n 'firstName' => 'required',\n 'lastName' => 'required',\n 'email' => 'required|email|unique:users',\n 'password' => 'required|confirmed|min:6',\n ]);\n $user = User::create([\n 'firstName' => $request->firstName,\n 'lastName' => $request->lastName,\n 'email' => $request->email,\n 'password' => bcrypt($request->password),\n 'active' => 0,\n 'role' => 2,\n ]);\n $token = $user->createToken('TutsForWeb')->accessToken;\n return response()->json(['token' => $token], 200);\n }", "public function register() {\n\t\tif ($this->Session->check('Auth.User')) {\n\t\t\t$this->redirect('/');\n\t\t}\n\t\t\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->User->create();\n\t\t\t$data = $this->request->data;\n\t\t\tif ($this->User->save($data)) {\n\t\t\t\t$this->Session->setFlash(\"User has been created.\", 'default', array(), 'register');\n\t\t\t\t$this->redirect('/login');\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(\"This user couldn't created. Please try again.\");\n\t\t\t}\n\t\t} else\n\t\t\t$this->Session->delete('Message.register');\n\t}", "public function register(Request $request)\n {\n //validate incoming request \n $this->validate($request, [\n 'name' => 'required|string',\n 'email' => 'required|email|unique:users',\n 'password' => 'required|confirmed',\n 'rol' => 'required|string',\n ]);\n\n try {\n\n $user = new User;\n $user->name = $request->input('name');\n $user->email = $request->input('email');\n $user->rol = $request->input('rol');\n $plainPassword = $request->input('password');\n $user->password = app('hash')->make($plainPassword);\n\n $user->save();\n\n //return successful response\n return response()->json(['user' => $user, 'message' => 'CREATED'], 201);\n\n } catch (\\Exception $e) {\n //return error message\n return response()->json(['message' => 'User Registration Failed!'], 409);\n }\n\n }", "public function register (Request $request) {\n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n 'email' => 'required|email',\n 'password' => ['required', 'confirmed', new SafePassword()],\n ]);\n if ($validator->fails())\n return response()->json(['errors'=> $validator->errors()], 400);\n if (User::where('email', $request->email)->exists())\n return response()->json(['error' => 'کاربری با این آدرس ایمیل وجود دارد'], 400);\n User::create([\n 'name' => $request->name,\n 'email' => $request->email,\n 'password' => Hash::make($request->password)\n ]);\n return response()->json(['message'=>'کاربر با موفقیت ثبت نام شد']);\n }", "public function register (Request $request) {\n\n\t $validator = $this->validator($request->all());\n\n\t if ($validator->fails()) {\n\t return response(['errors'=>$validator->errors()->all()], 422);\n\t }\n\n\t $request['password'] = Hash::make($request['password']);\n\t \n\t $user = User::create($request->toArray());\n\n\t $token = $user->createToken('Laravel Password Grant Client')->accessToken;\n\t \n\t $response = ['token' => $token];\n\n\t return response($response, 200);\n\n\t}", "public function register()\n\t{\n\t\t// Validation rules\n\t\t$validation = array(\n\t\t\tarray(\n\t\t\t\t'field' => 'first_name',\n\t\t\t\t'label' => lang('user_first_name'),\n\t\t\t\t'rules' => 'required'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'last_name',\n\t\t\t\t'label' => lang('user_last_name'),\n\t\t\t\t'rules' => ($this->settings->require_lastname ? 'required' : '')\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'password',\n\t\t\t\t'label' => lang('user_password'),\n\t\t\t\t'rules' => 'required|min_length[6]|max_length[20]'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'confirm_password',\n\t\t\t\t'label' => lang('user_confirm_password'),\n\t\t\t\t'rules' => 'required|matches[password]'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'email',\n\t\t\t\t'label' => lang('user_email'),\n\t\t\t\t'rules' => 'required|valid_email|callback__email_check'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'confirm_email',\n\t\t\t\t'label' => lang('user_confirm_email'),\n\t\t\t\t'rules' => 'required|valid_email|matches[email]'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'username',\n\t\t\t\t'label' => lang('user_username'),\n\t\t\t\t'rules' => 'required|alpha_numeric|min_length[3]|max_length[20]|callback__username_check'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'display_name',\n\t\t\t\t'label' => lang('user_display_name'),\n\t\t\t\t'rules' => 'required|alpha_numeric|min_length[3]|max_length[50]'\n\t\t\t),\n\t\t);\n\n\t\t// Set the validation rules\n\t\t$this->form_validation->set_rules($validation);\n\n\t\t$email\t\t\t\t= $this->input->post('email');\n\t\t$password\t\t\t= $this->input->post('password');\n\t\t$username\t\t\t= $this->input->post('username');\n\t\t$user_data_array\t= array(\n\t\t\t'first_name'\t\t=> $this->input->post('first_name'),\n\t\t\t'last_name'\t\t\t=> $this->input->post('last_name'),\n\t\t\t'display_name'\t\t=> $this->input->post('display_name'),\n\t\t);\n\n\t\t// Convert the array to an object\n\t\t$user_data\t\t\t\t\t\t= new stdClass();\n\t\t$user_data->first_name \t\t\t= $user_data_array['first_name'];\n\t\t$user_data->last_name\t\t\t= $user_data_array['last_name'];\n\t\t$user_data->display_name\t\t= $user_data_array['display_name'];\n\t\t$user_data->username\t\t\t= $username;\n\t\t$user_data->email\t\t\t\t= $email;\n\t\t$user_data->password \t\t\t= $password;\n\t\t$user_data->confirm_email \t\t= $this->input->post('confirm_email');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\t// Try to create the user\n\t\t\tif ($id = $this->ion_auth->register($username, $password, $email, $user_data_array))\n\t\t\t{\n\t\t\t\t// trigger an event for third party devs\n\t\t\t\tEvents::trigger('post_user_register', $id);\n\n\t\t\t\t$this->session->set_flashdata(array('notice' => $this->ion_auth->messages()));\n\t\t\t\tredirect('users/activate');\n\t\t\t}\n\n\t\t\t// Can't create the user, show why\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->data->error_string = $this->ion_auth->errors();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Return the validation error\n\t\t\t$this->data->error_string = $this->form_validation->error_string();\n\t\t}\n\n\t\tforeach ($user_data as &$data)\n\t\t{\n\t\t\t$data = escape_tags($data);\n\t\t}\n\n\t\t$this->data->user_data =& $user_data;\n\t\t$this->template->title(lang('user_register_title'));\n\t\t$this->template->build('register', $this->data);\n\t}", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'name' => 'required|string|max:100',\n 'surname' => 'required|string|max:255',\n 'email' => 'required|string|email|max:255|unique:users',\n 'password' => 'required|string|min:6'\n ]);\n\n if ($validator->fails()) {\n return response()->json([\n 'code' => 'denegated',\n 'status' => 400,\n 'message' => $validator->errors(),\n ], 400);\n }\n\n $user = new User($request->all());\n $user->email = $request->email;\n $user->name = $request->name;\n $user->surname = $request->surname;\n $user->password = bcrypt($request->password);\n\n $token = JWTAuth::fromUser($user);\n\n $user->save();\n\n return response()->json([\n 'code' => 'success',\n 'status' => 201,\n 'message' => 'Usuario registrado',\n 'token' => $token,\n 'user' => $user\n ], 201);\n }", "public function register(Request $request)\n {\n //validate incoming request\n $this->validate($request, [\n 'first_name' => 'required|string',\n 'last_name' => 'required|string',\n 'email' => 'required|email|unique:users',\n 'password' => 'required|confirmed',\n ]);\n\n try {\n\n $user = new User;\n $user->first_name = $request->input('first_name');\n $user->last_name = $request->input('last_name');\n $user->email = $request->input('email');\n $plainPassword = $request->input('password');\n $user->password = app('hash')->make($plainPassword);\n\n $user->save();\n\n //return successful response\n return response()->json(['user' => $user, 'message' => 'CREATED'], 200);\n\n } catch (\\Exception $e) {\n //return error message\n return response()->json(['message' => 'User Registration Failed!'], 409);\n }\n\n }", "public function doRegister(){\n\t\t\t$requestUser = $this->registerView->getRequestUserName();\n\t\t\t$requestPassword = $this->registerView->getRequestPassword();\n\t\t\t$requestRePassword = $this->registerView->getRequestRePassword();\n\t\t\t\n\t\t\tif($this->registerView->didUserPressRegister() ){\n\t\t\t\ttry{\n\t\t\t\tif($this->checkUsername($requestUser) && $this->checkPassword($requestPassword,$requestRePassword)){\n\t\t\t\t\t//create and add new user\n\t\t\t\t\t$newUser = new User($requestUser,$requestPassword);\n\t\t\t\t\t$this->userList->add($newUser);\n\t\t\t\t\t\n\t\t\t\t\t$this->model->toggleJustRegistered();\n\t\t\t\t\t$this->model->setSessionUsername($requestUser);\n\t\t\t\t\t$this->navView->clearURL();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tcatch (UserFewCharException $ufce){\n\t\t\t\t\t$this->registerView->setErrorUsernameFewChar();\n\t\t\t\t\t$this->registerView->setUsernameField($requestUser);\n\t\t\t\t} \n\t\t\t\tcatch (UserBadCharException $udce){\n\t\t\t\t\t$this->registerView->setErrorUsernameInvalidChar();\n\t\t\t\t\t$this->registerView->setUsernameField(strip_tags($requestUser));\n\t\t\t\t} \n\t\t\t\tcatch (UserExistsException $uee){\n\t\t\t\t\t$this->registerView->setErrorUsernameExists();\n\t\t\t\t\t$this->registerView->setUsernameField($requestUser);\n\t\t\t\t} \n\t\t\t\tcatch (PasswordLenException $ple){\n\t\t\t\t\t$this->registerView->setErrorPasswordFewChar();\n\t\t\t\t\t$this->registerView->setUsernameField($requestUser);\n\t\t\t\t} \n\t\t\t\tcatch (PasswordMissmatchException $pme){\n\t\t\t\t\t$this->registerView->setErrorPasswordMatch();\n\t\t\t\t\t$this->registerView->setUsernameField($requestUser);\n\t\t\t\t}\n\t\t\t\tif(empty($requestUser) && empty($requestPassword) && empty($requestRePassword))\n\t\t\t\t\t$this->registerView->setErrorMissingFields();\t\t\n\t\t\t}\n\t\t}", "public function register()\n\t{\n\t\t// Validation rules\n\t\t$validation = array(\n\t\t\tarray(\n\t\t\t\t'field' => 'first_name',\n\t\t\t\t'label' => lang('user_first_name'),\n\t\t\t\t'rules' => 'required'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'last_name',\n\t\t\t\t'label' => lang('user_last_name'),\n\t\t\t\t'rules' => ($this->settings->require_lastname ? 'required' : '')\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'password',\n\t\t\t\t'label' => lang('user_password'),\n\t\t\t\t'rules' => 'required|min_length[6]|max_length[20]'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'confirm_password',\n\t\t\t\t'label' => lang('user_confirm_password'),\n\t\t\t\t'rules' => 'required|matches[password]'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'email',\n\t\t\t\t'label' => lang('user_email'),\n\t\t\t\t'rules' => 'required|valid_email|callback__email_check'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'confirm_email',\n\t\t\t\t'label' => lang('user_confirm_email'),\n\t\t\t\t'rules' => 'required|valid_email|matches[email]'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'username',\n\t\t\t\t'label' => lang('user_username'),\n\t\t\t\t'rules' => 'required|alphanumeric|min_length[3]|max_length[20]|callback__username_check'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'field' => 'display_name',\n\t\t\t\t'label' => lang('user_display_name'),\n\t\t\t\t'rules' => 'required|alphanumeric|min_length[3]|max_length[50]'\n\t\t\t),\n\t\t);\n\n\t\t// Set the validation rules\n\t\t$this->form_validation->set_rules($validation);\n\n\t\t$email\t\t\t\t= $this->input->post('email');\n\t\t$password\t\t\t= $this->input->post('password');\n\t\t$username\t\t\t= $this->input->post('username');\n\t\t$user_data_array\t= array(\n\t\t\t'first_name'\t\t=> $this->input->post('first_name'),\n\t\t\t'last_name'\t\t\t=> $this->input->post('last_name'),\n\t\t\t'display_name'\t\t=> $this->input->post('display_name'),\n\t\t);\n\n\t\t// Convert the array to an object\n\t\t$user_data\t\t\t\t\t\t= new stdClass();\n\t\t$user_data->first_name \t\t\t= $user_data_array['first_name'];\n\t\t$user_data->last_name\t\t\t= $user_data_array['last_name'];\n\t\t$user_data->display_name\t\t= $user_data_array['display_name'];\n\t\t$user_data->username\t\t\t= $username;\n\t\t$user_data->email\t\t\t\t= $email;\n\t\t$user_data->password \t\t\t= $password;\n\t\t$user_data->confirm_email \t\t= $this->input->post('confirm_email');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\t// Try to create the user\n\t\t\tif ($id = $this->ion_auth->register($username, $password, $email, $user_data_array))\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata(array('notice' => $this->ion_auth->messages()));\n\t\t\t\tredirect('users/activate');\n\t\t\t}\n\n\t\t\t// Can't create the user, show why\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->data->error_string = $this->ion_auth->errors();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Return the validation error\n\t\t\t$this->data->error_string = $this->form_validation->error_string();\n\t\t}\n\n\t\t$this->data->user_data =& $user_data;\n\t\t$this->template->title(lang('user_register_title'));\n\t\t$this->template->build('register', $this->data);\n\t}", "public function register (Request $request) {\n // First, the input fields are passed through validation. All fields are required, the username must be unique, the description can't be over 255 characters, the password must be at least 6 characters and there must be a password_confirmation field in the request that matches the password. If these requirements are not met, appropriate messages are sent to the register page.\n $fields = $request->validate([\n 'username' => 'required|unique:users',\n 'description' => 'required|max:255',\n 'password' => 'required|min:6|confirmed'\n ]);\n \n // If validation is successful, we use the User model to create a new record in the users table. The make function of the Hash facade passes the password through bcrypt encryption. The default options for how many rounds the value is hashed is 10, but we can configure the rounds option to increase the time it takes for the password to be hashed.\n $user = User::create([\n 'username' => $fields['username'],\n 'password' => Hash::make($fields['password'], [\n 'rounds' => 12\n ]),\n 'description' => $fields['description']\n ]);\n \n if($user) {\n return redirect()->route('login')->with('message', 'User registered successfully.');\n } else {\n return back()->with('message', 'Registration error occured.');\n }\n }", "public function register(){\n\t\t//Better to be implemented through db table\n\t\t$userRole = array('Job Seeker'=>'Job Seeker', 'Employer'=>'Employer');\n\t\t$this->set('userRole',$userRole);\n\n\t\tif($this->request->is('post')){\n\t\t\t$this->User->create();\n\t\t\t\n\t\t\tif($this->User->save($this->request->data)){\n\t\t\t\t$this->Session->setFlash(__('You are now registered and may login'));\n\t\t\t\treturn $this->redirect(array('controller'=>'jobs','action'=>'index'));\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('Unable to create new user'));\n\n\t\t\t}\n\t\t}\n\t}", "public function register(Request $request) \n { \n $validator = Validator::make($request->all(), [ \n 'name' => 'required', \n 'company_name' => 'required',\n 'email' => 'required|email|unique:users', \n 'password' => 'required', \n 'c_password' => 'required|same:password', \n 'chapter' => 'required', \n ]);\n if ($validator->fails()) { \n $errors = $validator->errors();\n foreach ($errors->all() as $message) {\n return response()->json([\n 'status'=>0,\n 'base_url' => $this->base_url,\n 'message'=>$message\n ], $this->errorCode);\n }\n }\n $input = $request->all(); \n $input['password'] = $password = Hash::make($input['password']);\n $input['rnumber'] = (isset($input['rnumber']))?$input['rnumber']:'';\n $input['company_name'] = (isset($input['company_name']))?$input['company_name']:'';\n $input['user_role'] = 3;\n $input['status'] = 0;\n $user = (new Users)->createUser($input);\n $success['name'] = $user->name;\n return response()->json([\n 'status'=>1,\n 'base_url' => $this->base_url,\n 'message'=>'User registered successfully. Wait for admin verification',\n 'userDetail' => $user\n ], $this->successCode); \n }", "protected function register(RegisterRequest $request)\n {\n Session::forget('user');\n Session::forget('phone_number');\n\n $username = Str::slug($request->firstname . \"-\" . $request->lastname);\n $userRows = User::whereRaw(\"username REGEXP '^{$username}(-[0-9]*)?$'\")->get();\n $countUser = count($userRows) + 1;\n $username = ($countUser > 1) ? \"{$username}-{$countUser}\" : $username;\n\n $user = new User([\n 'name' => $request->firstname . ' ' . $request->lastname,\n 'firstname' => $request->firstname,\n 'lastname' => $request->lastname,\n 'email' => $request->email,\n 'password' => Hash::make($request->password),\n ]);\n\n $user = $this->createUsername($user, 0);\n\n Session::put('user', $user);\n\n \n return response()->json([\n 'success' => true,\n 'message' => 'Register success.',\n 'user' => $user,\n ], 201);\n }", "public function register(Request $request)\n {\n $validatedData = $request->validate([\n 'name' => 'required|max:55',\n 'email' => 'required|email|unique:users',\n 'telephone' => 'required',\n 'password' => 'required|string|min:8|confirmed',\n 'email_verified_at' => now(),\n 'rank' => 'integer'\n ]);\n //hashpassword\n $validatedData['password'] = Hash::make($validatedData['password']);\n\n //create a new user\n $user = User::create($validatedData);\n //create an access token for the user\n\n if ($user->rank == 0) {\n $accessToken = $user->createToken('authToken')->accessToken;\n } else if ($user->rank == 1) {\n $accessToken = $user->createToken('authToken', ['delete', 'add_product'])->accessToken;\n }\n return response()->json(['user' => $user, 'access_token' => $accessToken, \"status\" => 201]);\n }", "public function register(Request $request) {\n if (!($request->input('name')) || !($request->input('email')) || !($request->input('password')) || !($request->input('password_confirmation')))\n {\n session()->flash('please fill out all fields');\n return redirect(SERVER . '/auth/register');\n } \n\n // make sure user isn't already registered\n $user = User::where(['email' => $request->input('email')]);\n if ($user != null) {\n session()->flash('this user already exists');\n return redirect(SERVER . '/auth/register');\n }\n\n // make sure passwords match\n if ($request->input('password') != $request->input('password_confirmation')) {\n session()->flash('your passwords do not match!');\n return redirect(SERVER . '/auth/register');\n }\n\n $user = new User();\n\n $user->name = $request->input(\"name\");\n $user->email = $request->input(\"email\");\n $user->salt = random_salt();\n $user->password = create_hash($request->input(\"password\"), $user->salt);\n\n $user->save();\n\n session()->flash('congrats on registering!');\n return redirect(SERVER);\n \n }", "protected function register(RegisterRequest $request)\n {\n $credentials = $request->all();\n\n $credentials['password'] = Hash::make($credentials['password']);\n\n try {\n\n $user = User::create($credentials);\n\n $companies = $user->companies;\n \n $credentials['password'] = $credentials['password_confirmation'];\n \n if (auth()->validate($credentials)) {\n // credentials are valid\n $token = auth()->login($user);\n \n return $this->respondWithToken($token, $user, $companies);\n }\n } catch (ValidatorException $e) {\n if ($request->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $e->getMessageBag()\n ]);\n }\n #return redirect()->back()->withErrors($e->getMessageBag())->withInput();\n }\n\n }", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'name' => 'required|string',\n 'email' => 'required|email|unique:users',\n 'password' => 'required|min:3|confirmed',\n ]);\n\n if ($validator->fails()) {\n return response()->json([\n 'error' => true,\n 'message' => $validator->errors(),\n 'data' => []\n ], 422);\n }\n\n try {\n $user = User::create([\n 'name' => $request->get('name'),\n 'email' => $request->get('email'),\n 'password' => Hash::make($request->get('password')),\n 'role' => 'student',\n ]);\n\n return response()->json([\n 'error' => false,\n 'message' => 'Your account already created',\n 'data' => [\n 'name' => $request->get('name'),\n 'email' => $request->get('email'),\n 'role' => 'student',\n ]\n ], 200);\n } catch (\\Throwable $th) {\n return response()->json([\n 'error' => true,\n 'message' => 'Something went wrong at our server',\n 'data' => []\n ], 500);\n }\n }", "public function register() {\n \n $this->form_validation->set_rules('email', 'Email', 'required|valid_email');\n $this->form_validation->set_rules('password', 'Passwort', 'required');\n $this->form_validation->set_rules('dataprotection', 'Datenschutz', 'required');\n \n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n if (strtolower($this->input->post('dataprotection')) == 'true') {\n \t// TODO: save acceptance or acceptance date to db, i.e. hand over to model\n } else {\n \t$this->error(404, 'Dataprotection error');\n } \n \n $this->user_model->setValue('email', $this->input->post('email'));\n $this->user_model->setValue(\n \t'hashed_password', \n \tpassword_hash($this->input->post('password'), PASSWORD_DEFAULT));\n\n if (! $this->user_model->newUser()) {\n\t\t\t$this->error(409, 'Duplicate');\n }\n\n\t\t$this->sendConfirmationMail($this->input->post('email'));\n\t\t$data['msg'] = $this->input->post('email') . ' registered.';\n\t\t$this->responseWithCode(201, $data);\n }", "public function registershop(RegisterRequest $request)\n {\n $emailVerificationRequired = config('settings.mail.email_verification') == 1 && $request->filled('email');\n $phoneVerificationRequired = config('settings.sms.phone_verification') == 1 && $request->filled('phone');\n\n // New User\n $user = new User();\n $input = $request->only($user->getFillable());\n foreach ($input as $key => $value) {\n $user->{$key} = $value;\n }\n\n $user->country_code = config('country.code');\n $user->language_code = config('app.locale');\n $user->password = Hash::make($request->input('password'));\n $user->phone_hidden = $request->input('phone_hidden');\n $user->user_type_id = $request->input('company');\n $user->ip_addr = Ip::get();\n $user->ip_addr = Ip::get();\n $user->verified_email = 1;\n $user->verified_phone = 1;\n\n // Email verification key generation\n if ($emailVerificationRequired) {\n $user->email_token = md5(microtime() . mt_rand());\n $user->verified_email = 0;\n }\n\n // Mobile activation key generation\n if ($phoneVerificationRequired) {\n $user->phone_token = mt_rand(100000, 999999);\n $user->verified_phone = 0;\n }\n\n // Save\n $user->save();\n\n // Message Notification & Redirection\n $request->session()->flash('message', t(\"Your account has been created.\"));\n $nextUrl = config('app.locale') . '/register/finish';\n\n // Send Admin Notification Email\n if (config('settings.mail.admin_notification') == 1) {\n try {\n // Get all admin users\n $admins = User::permission(Permission::getStaffPermissions())->get();\n if ($admins->count() > 0) {\n Notification::send($admins, new UserNotification($user));\n /*\n foreach ($admins as $admin) {\n Notification::route('mail', $admin->email)->notify(new UserNotification($user));\n }\n */\n }\n } catch (\\Exception $e) {\n flash($e->getMessage())->error();\n }\n }\n\n // Send Verification Link or Code\n if ($emailVerificationRequired || $phoneVerificationRequired) {\n\n // Save the Next URL before verification\n session(['userNextUrl' => $nextUrl]);\n\n // Email\n if ($emailVerificationRequired) {\n // Send Verification Link by Email\n $this->sendVerificationEmail($user);\n\n // Show the Re-send link\n $this->showReSendVerificationEmailLink($user, 'user');\n }\n\n // Phone\n if ($phoneVerificationRequired) {\n // Send Verification Code by SMS\n $this->sendVerificationSms($user);\n\n // Show the Re-send link\n $this->showReSendVerificationSmsLink($user, 'user');\n\n // Go to Phone Number verification\n $nextUrl = config('app.locale') . '/verify/user/phone/';\n }\n\n // Send Confirmation Email or SMS,\n // When User clicks on the Verification Link or enters the Verification Code.\n // Done in the \"app/Observers/UserObserver.php\" file.\n\n }\n else\n {\n\n // Send Confirmation Email or SMS\n if (config('settings.mail.confirmation') == 1) {\n try {\n $user->notify(new UserActivated($user));\n } catch (\\Exception $e) {\n flash($e->getMessage())->error();\n }\n }\n\n // Redirect to the user area If Email or Phone verification is not required\n if (Auth::loginUsingId($user->id)) {\n return redirect()->intended(config('app.locale') . '/account');\n }\n\n }\n\n // Redirection\n $success['token'] = $user->createToken('theqqaPassport')->accessToken;\n $success['name'] = $user->name;\n return response()->json([\n 'status' => 'success',\n 'data' => $success,\n ]);\n }", "public function postRegister()\n\t{\n\t\t$user = new \\User;\n\n\t\t$user->email = \\Input::get( 'email' );\n\t\t$user->password = \\Input::get( 'password' );\n\n\t\t// The password confirmation will be removed from model\n\t\t// before saving. This field will be used in Ardent's\n\t\t// auto validation.\n\t\t$user->password_confirmation = \\Input::get( 'password_confirmation' );\n\n\t\t// Save if valid. Password field will be hashed before save\n\t\t$user->save();\n\n\t\tif ( $user->id )\n\t\t{\n\t\t\t//Assign the company role to this person\n\t\t\t$roleId = \\Role::where('name', '=', 'Company')->first()->id;\n\t\t\t$user->attachRole($roleId);\n\n\t\t\t// Redirect with success message, You may replace \"Lang::get(...\" for your custom message.\n\t\t\treturn \\Redirect::action('controllers\\company\\AuthController@getLogin')\n\t\t\t\t->with( 'notice', \\Lang::get('confide::confide.alerts.account_created') );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Get validation errors (see Ardent package)\n\t\t\t$error = $user->errors()->all(':message');\n\n\t\t\treturn \\Redirect::action('controllers\\company\\AuthController@getRegister')\n\t\t\t\t->withInput(\\Input::except('password'))\n\t\t\t\t->with( 'error', $error );\n\n\t\t}\n\n\t}", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'username' => ['required', 'string', 'max:255', 'unique:users'],\n 'password' => ['required', 'string', 'min:8', 'confirmed'],\n ]);\n\n if ($validator->fails()) {\n return response()->json(['error' => $validator->errors()]);\n }\n\n try {\n $user = new User([\n 'username' => $request->username,\n 'password' => Hash::make($request->password),\n ]);\n $user->registerAsLoveReacter();\n return $this->respondWithToken(auth()->login($user));\n } catch (QueryException $e) {\n return response()->json(['error' => 'There was a problem creating your account.']);\n }\n }", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(),[\n 'name'=> 'required',\n 'phone'=> 'required_without:email',\n 'email'=> 'required_without:phone|email',\n 'password'=>'required',\n 'c_password'=>'required|same:password'\n ]);\n if($validator->fails()){\n return response()->json([$validator->errors()], 202);\n }\n $input = $request->all();\n $input['password'] = bcrypt($input['password']);\n\n $user = User::create($input);\n\n $responseArray = [];\n $responseArray['token'] = $user->createToken('MyApp')->accessToken;\n $responseArray['name'] = $user->name;\n $responseArray['phone'] = $user->phone;\n\n return response()->json($responseArray,200);\n }", "public function register()\n {\n $this->overrideRegistration();\n $this->overrideTeamMemberPermissions();\n $this->overrideInvitationRequest();\n }", "protected function postRegister(Request $request)\n {\n $data = $request->all();\n Users::create([\n 'nombre' => $data['nombre'],\n 'ap_pat' => $data['ap_pat'],\n 'ap_mat' => $data['ap_mat'],\n 'email' => $data['email'],\n 'telefono' => $data['telefono'],\n 'direccion' => $data['direccion'],\n 'id_pais' => $data['id_pais'],\n 'id_entidad' => $data['id_entidad'],\n 'id_tipo_usu' => 2,\n 'colonia' => $data['colonia'],\n 'cp' => $data['cp'],\n 'fecha_naci' => $data['fecha_naci'],\n 'username' => $data['username'],\n 'password' => Hash::make($data['password']),\n 'status' => 1,\n ]);\n\n //mandar un correo electronico\n\n return redirect(\"login\");\n }", "public function registerUser()\n {\t\n\t\t/**\n\t\t * Our UserModel will return an error \n\t\t * if the email already exists, \n\t\t * or if the passwords do not match\n\t\t */\n\t\ttry{\n\t\t$user = new UserModel();\n\t\t$user->name = Input::get('name');\n\t\t$user->email = Input::get('email');\n\t\t$user->password = Input::get('password');\n\t\t$user->password_confirmation = Input::get('password_confirmation');\n\t\t$user->save();\t\n\t\t$this->setToken($user);\n\t\treturn $this->sendResponse('You have been registered and are logged in');\n\t\t}\n\t\tcatch(Exeption $e){\n\t\t\treturn $this->sendResponse(false, $e->getMessage());\n\n\t\t}\n }", "public function register(): void\n {\n\n }", "public function register(RegisterRequest $request){\n $credentials = $request->validated();\n $credentials['password'] = Hash::make($request->password);\n \n $user = User::create($credentials);\n $token = $user->createToken($credentials['device_name'] ?? $this->defaultDeviceName);\n\n return [\n 'mesage' => 'Registration successful',\n 'token' => $token->plainTextToken\n ];\n }", "public function register(Request $request)\n {\n $this->validate($request, [\n 'email' => 'required|email|unique:users',\n 'password' => 'required|min:6',\n ]);\n \n $user = User::create([\n 'name' => $request->name,\n 'email' => $request->email,\n 'password' => Hash::make($request->password)\n ]);\n \n $token = JWTAuth::fromUser($user);\n\n return response()->json(compact('user','token'),201);\n }", "public function register(Request $request){\n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n 'email' => 'required|email',\n 'password' => 'required',\n 'c_password' => 'required|same:password',\n ]);\n\n if($validator->fails()){\n return ResponseController::sendError('Validation Error.', $validator->errors());\n }\n if(User::where('email', $request->email)->first()){\n return ResponseController::sendError('User exists.', 'Use diffrent email.');\n }\n else{\n $input = $request->all();\n $input['password'] = bcrypt($input['password']);\n $user = User::create($input);\n $success['token'] = $user->createToken('productApp')->accessToken;\n $success['name'] = $user->name;\n \n return ResponseController::sendResponse($success, 'User register successfully');\n }\n }", "public function register(Request $request)\n {\n \n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n 'email' => 'required|email',\n 'password' => 'required',\n 'c_password' => 'required|same:password'\n ]);\n\n\n if($validator->fails()) {\n return response()->json($validator->errors(), 202);\n }\n $input = $request->all();\n $input['password'] = bcrypt($input['password']);\n\n $user = User::create($input);\n\n $responseArray = [];\n $responseArray['token'] = $user->createToken('ApiFn')->accessToken;\n $responseArray['name'] = $user->name;\n\n return response()->json($responseArray, 200);\n\n }", "public function postRegisterUser()\n {\n $userdata = array(\n 'fullname' => Input::get('fullname'),\n 'email' => Input::get('email'),\n 'password' => Input::get('password')\n );\n // Declare the rules for the form validation.\n $rules = array(\n 'fullname' => 'Required',\n 'email' => 'Required',\n 'password' => 'Required'\n );\n // Validate the inputs.\n $validator = Validator::make($userdata, $rules);\n\n // Check if the form validates with success.\n if ($validator->passes())\n {\n $user = User::where('email' , '=', $userdata['email'])->first();\n if($user == null)\n {\n $user = new User;\n $user->fullname = $userdata['fullname'];\n $user->email = $userdata['email'];\n $user->password = Hash::make($userdata['password']);\n $user->save();\n if ( Auth::attempt($userdata ) ) {\n return Redirect::to('');\n }\n }\n else\n {\n return Redirect::to('register')->withErrors(array('email' => 'Email already has an account'))->withInput(Input::except('password'));\n }\n\n }\n //something went wrong\n return Redirect::to('register')->withErrors($validator)->withInput(Input::except('password'));\n }", "public function register()\n {\n $create_from = $this->request->get_body_params();\n\n $input = (object) array_intersect_key( $create_from,\n array_fill_keys(['username', 'password', 'email'], false)\n );\n\n $update = [\n 'first_name',\n 'last_name',\n ];\n\n /** @var \\WP_Error|integer $user */\n $user_id = \\wp_create_user($input->username, $input->password, $input->email);\n\n if (\\is_wp_error($user_id)) {\n throw new UnauthorizedException($user_id->get_error_message());\n }\n\n /** @var \\WP_User $user */\n $user = \\get_userdata($user_id);\n\n foreach ($update as $att) {\n $user->$att = $create_from[$att];\n }\n\n \\wp_update_user($user);\n\n return $this->response->ok([\n 'message' => sprintf(__('Hello %s', PMLD_TD), $user->nickname),\n 'user' => User::make($user),\n ]);\n\n }", "public function postRegister(Request $request)\n {\n\n $validator = UserService::validator($request->all());\n \n if ($validator->fails())\n {\n $this->throwValidationException(\n $request, $validator\n );\n }\n\n if ($user = UserService::create($request->all()))\n {\n \tAuth::login($user);\n UserService::createOwner($user);\n\n return view('auth.activateAccount')\n ->with('email', $request->input('email'));\n }\n else\n {\n \\Session::flash('message', \\Lang::get('notCreated') );\n return redirect()->back()->withInput();\n }\n }", "public function register(Request $request)\n {\n $input = $request->all();\n\n $validator = Validator::make($input, [\n 'name' => 'required',\n 'email' => 'required|email|unique:users',\n 'password' => 'required',\n ]);\n\n if ($validator->fails()) {\n return back()\n ->withErrors($validator)\n ->withInput($request->except('password'));\n }\n\n $input['password'] = bcrypt($input['password']);\n $user = User::create($input);\n // create a token\n Wallet::create([\n 'user_id' => $user->id,\n 'token' => bcrypt($input['password'])\n ]);\n\n return redirect('/login')->with('status', 'User registered successfully.');\n }", "public function register()\n {\n $name = $this->loginEntry->input('uname');\n $email = $this->loginEntry->input('email');\n $password = $this->commonFunction->generateHash($this->loginEntry->input('pass'));\n $this->userDetail->makeEntry($name, $email, $password);\n \n $info = $this->userDetail->getDetail($email, $password);\n \n $this->commonFunction->setSession($info->id, $info->user_name);\n \n return redirect('/dashboard');\n }", "public function postRegister(Request $request)\n {\n //get the vars from the request\n $email = $request['reg_email'];\n $name = $request['name'];\n $password = bcrypt($request['reg_password']); //hash the password with bcrypt\n\n //create new user and set attributes\n $user = new User();\n $user->email = $email;\n $user->name = $name;\n $user->password = $password;\n\n $user->save(); //save to DB\n\n //log new user in\n Auth::login($user);\n\n return redirect('welcome');\n }", "public function postRegister(RegisterRequest $request)\n {\n //code for registering a user goes here.\n\t\t$this->user->username = $request->username;\n\t\t$password = $request->input('password');\n\t\t$this->user->password = Hash::make($password);\t\n\t\t//$this->user->password = $request->password;\n\t\t//User::up($username,$password);\t\n\t\t$this->user->save();\n $this->auth->login($this->user); \n\t\t\t\n return redirect('/login');\n }", "public function store(RegisterUserRequest $request){\n $validated = $request->validated();\n $existingUserCountWithSameName = DB::table('users')\n ->where('email', '=', $validated['emailRegister'])\n ->orWhere('name', $validated['usernameRegister'])\n ->count();\n $bannedUser = DB::table('banned_users')->where('email', '=', $validated['emailRegister'])->first();\n $isBanned = is_null($bannedUser) == false;\n //Check if username with same email exists\n if($existingUserCountWithSameName > 0){\n return Response::json(['message' => 'The username or email already exists.']);\n }\n else if($isBanned){\n return Response::json(['message' => 'You cannot register. You are banned from using WPP.']);\n }\n //If username with same email does not exist, proceed to register\n $user = new User;\n $user->name = $validated['usernameRegister'];\n $user->email = $validated['emailRegister'];\n $user->password = Hash::make($validated['passwordRegister']);\n $user->role_id = 2;\n $user->save();\n\n return Response::json(['message' => 'Registration successful.']);\n }", "public function registerViaRequest()\n {\n return User::create(array_merge([\n 'password' => bcrypt(input('password')),\n ], only('email', 'name', 'is_public')));\n }", "public function register(Request $request) {\n $rules = array(\n 'email' => 'unique:users|email|required',\n 'password' => 'required|confirmed',\n 'name' => 'required'\n );\n $validator = Validator::make($request->all(), $rules);\n $errors = [];\n $success = true;\n $data = null;\n $user = null;\n if ($validator->fails()) {\n $success = false;\n $messages = $validator->messages()->all();\n $errors = $messages;\n }\n else {\n $request->request->add(['confirmation_token' => str_random(50)]);\n $request->request->add(['active' => false]);\n $user = User::create($request->all());\n\n Mail::send('emails.users.confirm_user', ['user' => $user], function($m) use ($user) {\n $m->from('[email protected]', 'Bienvenido a URTracker');\n $m->to($user->email, $user->name);\n });\n }\n\n return response()->json(array(\n 'success' => $success,\n 'errors' => $errors,\n 'data' => $user\n ));\n }", "public function store(Requests\\RegisterRequest $request)\n {\n $input = $request->all();\n\n $data = [\n 'email' => $input['email'],\n 'password' => $input['password'],\n ];\n\n $input['is_admin'] = $request->get('is_admin') ? true : false;\n $input['password'] = bcrypt($input['password']);\n\n $user = $this->userModel->fill($input);\n $user->save();\n\n\n\n Auth::attempt($data);\n\n return redirect()->route('account.orders');\n }", "public function postRegister(RegisterRequest $request)\n\t{\n\t\t$member = $this->commander->dispatch(RegisterUserCommand::class, null, [\n\t\t\t'TGL\\Members\\Decorators\\UsernameSlugGenerator'\n\t\t]);\n\n\t\t$this->auth->login($member);\n\n\t\tFlash::message('Thank you for signing up!');\n\n\t\treturn redirect()->back();\n\t}", "public function register_post()\n {\n $data = $this->validate(request(), [\n 'name' => 'required',\n 'email' => 'required|email',\n 'password' => 'required',\n ]);\n\n $data['password'] = bcrypt(request('password'));\n User::create($data);\n\n if (Auth::attempt(['email' => request('email'), 'password' => request('password')])) {\n\n return redirect('/');\n\n }\n }", "public function register(Request $request){\n $validator = Validator::make($request->all(), ['firstname' => 'required', 'lastname' => 'required', 'phone' => 'required', 'email' => 'required|email|unique:users','password'=>'required',\n\n ]);\n\n if($validator->fails()){\n return response()->json(['error'=>$validator->errors()], 400);\n }\n\n $input = $request->all();\n $input['verified'] = \"yes\";\n $input['password'] = bcrypt($input['password']);\n $user = User::create($input);\n $success['token'] = $user->createToken('MyApp')->accessToken;\n $success['name'] = ($user->firstname).\" \".($user->lastname);\n return response()->json(['success' => $success], $this->successStatus);\n\n\n }", "public function register(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n 'email' => 'required|email',\n 'password' => 'required',\n 'c_password' => 'required|same:password',\n ]);\n\n if ($validator->fails()) {\n return response()->json(['error' => $validator->errors()], 401);\n }\n\n $input = $request->all();\n $input['password'] = bcrypt($input['password']);\n $user = User::create($input);\n $success['token'] = $user->createToken('TrelloClone')->accessToken;\n $success['name'] = $user->name;\n\n return response()->json(['success' => $success], $this->successStatus);\n }", "public function register(Request $request)\n {\n $this->validator($request->all())->validate();\n\n event(new Registered($user = $this->create($request->all())));\n\n if($request->ajax())\n return response('Utilisateur crée avec success');\n\n return redirect()->route('admin.users.index')->with([\n 'message' => 'Utilisateur crée avec success',\n 'type' => 'success'\n ]);\n }", "public function registerUser($email, array $roles);", "public function registerAction(Request $request){\n //for the view\n $params = array(\"title\" => _(\"Sign up\"), \"errors\" => array());\n\n $params['username'] = \"\";\n $params['email'] = \"\";\n\n //handle register form\n if ($request->isMethod('post')){\n\n $username = $request->input('username');\n $params['username'] = $username;\n $email = $request->input('email');\n $params['email'] = $email;\n $password = $request->input('password');\n $password_bis = $request->input('password_bis');\n\n //validation\n $validator = new CustomValidator();\n\n $validator->validateUsername($username);\n $validator->validateUniqueUsername($username);\n $validator->validateEmail($email);\n $validator->validateUniqueEmail($email);\n $validator->validatePassword($password);\n $validator->validatePasswordBis($password_bis, $password);\n\n if ($validator->isValid()){\n //hydrate user obj\n $securityHelper = new SH();\n $user = new User();\n \n $user->setNewUuid();\n $user->setUsername( $username );\n $user->setEmail( $email );\n $user->setEmailValidated(false);\n $user->setRole( \"user\" );\n $user->setSalt( SH::randomString() );\n $user->setToken( SH::randomString() );\n $user->setSiteLanguage( 'en' );\n $user->setActive( true );\n\n $hashedPassword = $securityHelper->hashPassword( $password, $user->getSalt() );\n \n $user->setPassword( $hashedPassword );\n// $user->setIpAtRegistration( $_SERVER['REMOTE_ADDR'] );\n $user->setIpAtRegistration($request->ip());\n $user->setDateCreated( time() );\n $user->setDateModified( time() );\n\n //save it\n $userManager = new UserManager();\n $userManager->save($user);\n// @TODO: MAILER\n// send email confirmation message\n// $mailer = new Mailer();\n//\n// $mailerResult = $mailer->sendRegistrationConfirmation($user);\n\n //log user in right now (will redirect home)\n $this->logUser($request, $user);\n// $this->logUser($request, $user);\n $json = new JsonResponse();\n $json->setData(array(\"redirectTo\" => Route('graph')));\n $json->send();\n }\n //not valid\n else {\n $errors = $validator->getErrors();\n $params[\"errors\"] = $errors;\n return response()->json([\n 'error' => $errors\n ],400);\n }\n\n }\n return view('auth.register',['params'=> $params]);\n// $view = new View(\"register.php\", $params);\n// $view->setLayout(\"../View/layouts/modal.php\");\n// $view->send(true);\n }", "public function register(Request $request) {\n\n $validation_array = [\n 'first_name' => 'required|string',\n 'last_name' => 'required|string',\n 'email' => 'required|string|email|unique:app_users',\n 'password' => 'required|string|min:8|confirmed'\n ];\n\n $validator = Validator::make($request->all(), $validation_array);\n\n if ($validator->fails()) {\n return response()->json([\n 'success' => 'false',\n 'message' => 'INVALID REQUEST',\n 'data' => [\n 'errors' => $validator->errors()\n ]\n ], 200);\n }\n\n $user = new AppUser();\n $user->first_name = $request->first_name;\n $user->last_name = $request->last_name;\n $user->email = $request->email;\n $user->password = Hash::make($request->password);\n $user->save();\n\n return response()->json([\n 'success' => 'true',\n 'message' => 'USER CREATED'\n ], 201);\n\n }", "public function register(Request $request)\n {\n $this->validator($request->all())->validate();\n $email = $request->email; \n $pass = $request->password; \n\n event(new Registered($user = $this->create($request->all())));\n \n $this->updatePass($email, $pass);\n \n $this->guard()->login($user);\n\n return $this->registered($request, $user)\n ?: redirect(route('officer.dashboard'));\n }", "public function register(Request $request)\n {\n\n $validator = Validator::make($request->all(), [\n 'name' => 'required|string|max:255',\n 'email' => 'required|string|email|max:255|unique:users',\n 'password' => 'required|string|min:8',\n ]);\n\n if ($validator->fails()) {\n return response()->json(['errors'=>$validator->errors()], 422);\n }\n\n $user = User::create([\n 'name' => $request->name,\n 'email' => $request->email,\n 'password' => Hash::make($request->password),\n ]);\n\n $token = Token::create([\n 'token'=>Str::random(60),\n 'user_id'=> $user->id\n ]);\n\n return response()->json([\n 'access_token' => $token,\n 'email' => $user->email\n ]);\n }", "public function register() {\n\n // If it is not a valid password\n if (!$this->valid_password()) {\n return \"Invalid Password. It must be six characters\";\n }\n\n // If the mobile is valid\n if (!$this->valid_mobile()) {\n return \"Mobile Number is Invalid. It must be 10 numeric digits\";\n }\n\n // If there is a user with that username\n if (User::find($this->username, 'username') !== null) {\n return \"Username already taken\";\n }\n\n // Now we create the user on the database\n if ($this->create_record()) {\n echo \"<br><br>Record Created\";\n // We update the sync the object with the database\n if ($this->update_object('username')) {\n return true;\n echo \"<br><br>Object Updated\";\n }\n }\n\n return \"Sorry, an error has ocurred. Try again later\";\n }", "public function register(Request $request)\n\t{\n\t\t$this->validate($request, [\n\t\t\t'username' => 'required|unique:users',\n\t\t\t'password' => 'required|min:10',\n\t\t\t'options' => 'array'\n\t\t]);\n\n\t\t$user = User::make([\n\t\t\t'username' => $request->input('username'),\n\t\t\t'options' => \\json_encode($request->input('options', []))\n\t\t]);\n\t\t$user->password = Hash::make($request->input('password'));\n\t\t$user->generateToken();\n\t\t$user->save();\n\n\t\treturn response()->json([\n\t\t\t'status' => 'Account created',\n\t\t\t'token' => $user->token\n\t\t], 201);\n\t}", "public function register()\n\t{\n\t\t$this->registerAuthInstall();\n\t}", "protected function register(Request $request)\n {\n $validator = $this->validator($request->all());\n if($validator->fails()){\n return back()->withErrors($validator);\n };\n\n $register = User::create([\n 'name' => $request->name,\n 'email' => $request->email,\n 'password' => bcrypt($request->password),\n ]);\n\n if($register){\n Session::flash('success', 'Register successfully');\n return redirect(route('login'));\n }else{\n return back()->withErrors(['message' => 'Error Register']);\n }\n }", "public function store(Requests\\UserRegisterRequest $request)\n {\n $data=array_merge($request->all(),['avatar'=>'/image/default-avatar.jpg','confirm_code'=>str_random(48)]);\n User::register($data);\n //return redirect('/');\n\n return redirect('/success');\n }", "public function register(): void\n {\n //\n }", "public function register(): void\n {\n //\n }", "public function register(): void\n {\n //\n }", "public function register(): void\n {\n //\n }", "public function register(): void\n {\n //\n }", "public function register(Request $request){\n\n $user = $this->user->create([\n 'cpf_cnpj' => $request->cpf_cnpj,\n 'nome_razaosocial' => $request->nome_razaosocial,\n 'tipo_pessoa' => $request->tipo_pessoa,\n 'password' => bcrypt($request->password),\n 'senha' => md5($request->password)\n ]);\n \n return response()->json(['status'=>true,'messagem'=>'Usuário criado com successo','data'=>$user],200);\n }", "public function registerOrFail(Request $request)\n {\n //comprobar si el usuario existe\n //si existe, envíar 409 status error\n //si no existe, enviar 201 status created.\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6',\n ];\n\n $input = $request->only(\n 'name',\n 'email',\n 'password'\n );\n\n $validator = Validator::make($input, $rules);\n\n if($validator->fails())\n {\n $error = $validator->messages()->toJson();\n return response()->json(['success'=> false, 'error'=> $error],\n HttpResponse::HTTP_BAD_REQUEST);\n }\n\n $email = $request->email;\n $name = $request->name;\n $password = bcrypt($request->password);\n\n $user = User::create([\n 'name' => $name,\n 'email' => $email,\n 'password' => $password\n ]);\n\n\n $role = new Role();\n $role->name = 'normie';\n $user->roles()->save($role);\n $user->save();\n\n $token = JWTAuth::fromUser($user);\n\n return response()->json([\n 'success' => true,\n 'data' => ['token' => $token]], HttpResponse::HTTP_CREATED);\n\n\n\n// return response()->json([\n// 'error' => 'User already exists.'],\n// HttpResponse::HTTP_CONFLICT);\n\n\n }", "public function register(Request $request)\n {\n $data = $request->data;\n\n // validate inputs\n $validator = Validator::make($data, [\n \"username\" => \"required|min:3|max:30|unique:users\",\n \"email\" => \"required|email|min:4|max:255|unique:users\",\n \"password\" => \"required|min:6\",\n ]);\n\n\n if ($validator->fails()) {\n // return just the first error\n $error = json_decode($validator->errors(), true);\n return array(\"success\" => false, \"message\" => reset($error)[0]);\n\n } else {\n // Create new user in database\n $guid = Util::getGUID();\n DB::beginTransaction();\n\n $newUser = User::create([\n \"username\" => $data[\"username\"],\n \"email\" => $data[\"email\"],\n \"password\" => bcrypt($data[\"password\"]),\n \"last_login\" => Util::getCurrentDateTime(),\n \"api_token\" => $guid\n ]);\n\n // Create a container for user images\n $success = Azure::createContainer($newUser->user_id);\n\n if ($success == false) {\n DB::rollBack();\n return array(\"success\" => false, \"message\" => \"Error creating new user\");\n } else {\n DB::commit();\n return array(\"success\" => true, \"data\" => $guid);\n }\n }\n }", "public function postRegister(Request $request)\n {\n $user = $this->registrar->create( $request->all() );\n\n if($user['success']) {\n $this->auth->login( $user['response'] );\n return redirect()->intended('/home'); \n } \n\n return Redirect::to('auth/register')\n ->withErrors( $user['errors'] )\n ->withInput();\n }", "public function register() \n {\n \n\n }", "public function register(): void\n {\n }", "public function register(): void\n {\n }", "public function register(): void\n {\n }", "public function register(): void\n {\n }", "public function register(): void\n {\n }", "public function register() {\n\t\t\tif($this->Session->read('Auth.User.id')){\n\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tif(!empty($this->request->data)){\n\n\t\t\t\t\t$this->User->create($this->request->data);\n\t\t\t\t\t// Validation des données\n\t\t\t\t\tif($this->User->validates()) {\n\n\t\t\t\t\t\t$token = md5(time() .' - '. uniqid());\n\n\t\t\t\t\t\t$this->User->create(array(\n\t\t\t\t\t\t\t\"email\" \t\t=> $this->request->data['User']['email'],\n\t\t\t\t\t\t\t\"password\" \t\t=> $this->Auth->password($this->request->data['User']['password']),\n\t\t\t\t\t\t\t\"token\" \t\t=> $token\n\t\t\t\t\t\t\t));\n\n\t\t\t\t\t\t// Si tout est ok, on sauvegarde\n\t\t\t\t\t\t$this->User->save();\n\n\t\t\t\t\t\t// Envoie de l'email d'activation à l'utilisateur\n\t\t\t\t\t\t$CakeEmail = new CakeEmail('default');\n\t\t\t\t\t\t$CakeEmail->to($this->request->data['User']['email']);\n\t\t\t\t\t\t$CakeEmail->subject('Dezordre: Confirmation d\\'inscription');\n\t\t\t\t\t\t$CakeEmail->viewVars($this->request->data['User'] + array(\n\t\t\t\t\t\t\t'token' => $token,\n\t\t\t\t\t\t\t'id'\t=> $this->User->id,\n\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t$CakeEmail->emailFormat('text');\n\t\t\t\t\t\t$CakeEmail->template('register');\n\t\t\t\t\t\t$CakeEmail->send();\n\n\n\t\t\t\t\t\t$this->Session->setFlash(\"Votre compte à bien été créer. Un lien vous à été envoyé par email afin d'activer votre compte.\", 'alert', array('class' => 'success'));\n\t\t\t\t\t\t$this->redirect(array('controller' => 'pages', 'action' => 'display', 'home'));\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\t\t$this->Session->setFlash(\"Erreur, merci de corriger\", 'alert', array('class' => 'danger'));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function register(Request $request){ \n \n $this->validate($request, [\n 'username' => 'required',\n 'fullname' => 'required',\n 'phone_number' => 'required',\n 'password' => 'required|min:6|confirmed',\n ],$messages=[\n 'required' => 'Atribut di atas perlu diisi',\n 'min' => 'Atribut perlu diisi minimal :min karakter',\n 'confirmed' => 'Atribut pada password dan konfirmasi password tidak boleh berbeda'\n ]);\n\n User::create([\n 'username' => request('username'),\n 'fullname' => request('fullname'),\n 'phone_number' => request('phone_number'),\n 'password' => bcrypt(request('password')),\n 'role' => 'mahasiswa',\n ]);\n Alert::success('Success', 'Selamat datang di SimKP');\n return redirect()->route('login');\n }", "public function register(){\n\n\t\t$this->Login_model->register();\t\n\n\t}", "public function register(Request $request) {\n $input = $request->all();\n $user = User::create([\n 'name' => $input['name'],\n 'phone' => $input['phone'],\n 'password' => bcrypt($input['password']),\n 'type' => 1\n ]);\n $token = $user->createToken('auth')-> accessToken;\n return response()->json(['token'=>$token,'user'=>$user]);\n }", "public function register(Request $request)\n {\n\n $validator = $request->validate([\n // 'username' => 'required',\n 'email' => 'required|unique:users',\n 'fullname' => ['required', 'string', 'max:255'],\n 'password' => 'required|min:6|confirmed',\n 'location' => ['required', 'string', 'max:255'], \n 'phone' => ['required', 'string', 'max:255','min:11'],\n ]);\n\n $user = new User();\n\n $user->fullname = $request->input('fullname');\n $user->location = $request->input('location');\n $user->phoneNo =$request->input('phone');\n // $user->username = $request->input('username');\n $user->email = $request->input('email');\n $user->password = Hash::make($request->input('password'));\n $user->save();\n $user->sendEmailVerificationNotification();\n $token = $user->createToken('proptbox-v1')->accessToken;\n\n\n return response()->json(['success' => true,\"access_token\"=>$token], 200);\n }", "public function register(Request $request)\n {\n $email = $request->input(\"email\");\n $password = $request->input(\"password\");\n $username = $request->input(\"username\");\n\n /** @phpstan-ignore-next-line */\n $user = User::where('email', '=', $email)->first();\n\n if ($user) {\n abort(403, 'Email already taken.'); // return?\n }\n\n $newUser = new User();\n $newUser->email = $email;\n $newUser->password = bcrypt($password);\n $newUser->username = $username;\n $newUser->save();\n\n // auto log in\n $request->session()->put('user', $newUser);\n\n return redirect('/tasks');\n }" ]
[ "0.7052437", "0.6950762", "0.694193", "0.68857855", "0.6858675", "0.68544984", "0.67340356", "0.6729897", "0.6708091", "0.6695558", "0.6683645", "0.6681073", "0.6673626", "0.6662636", "0.66473657", "0.6637524", "0.6625367", "0.6625321", "0.6623041", "0.66192216", "0.6583457", "0.65716326", "0.65705204", "0.65669924", "0.6563554", "0.65611446", "0.65539426", "0.655225", "0.65514606", "0.654899", "0.654604", "0.6544111", "0.6543717", "0.65427214", "0.65421", "0.65246224", "0.6501741", "0.6501324", "0.64923936", "0.64902484", "0.64851564", "0.6485094", "0.6476514", "0.6472005", "0.6467074", "0.64546555", "0.64534575", "0.6447662", "0.644477", "0.64416945", "0.6441344", "0.6441337", "0.64362115", "0.6430328", "0.6427675", "0.64261955", "0.64200544", "0.6417293", "0.64163893", "0.64156973", "0.64123243", "0.6403925", "0.6401979", "0.6401821", "0.6394477", "0.6388023", "0.6384289", "0.63821477", "0.6376415", "0.6369532", "0.6367062", "0.636341", "0.6362771", "0.6361597", "0.63597447", "0.6352206", "0.6348934", "0.6344622", "0.6343245", "0.6343057", "0.6338601", "0.6338601", "0.6338601", "0.6338601", "0.6338601", "0.6338323", "0.6328104", "0.6327856", "0.6311156", "0.6305959", "0.63046515", "0.63046515", "0.63046515", "0.63046515", "0.63046515", "0.63028616", "0.6300059", "0.6292902", "0.6291306", "0.6290098", "0.62897676" ]
0.0
-1
Get schedules & timesheets of current date
public function index() { $currentDate = (new Datetime())->format('Y-m-d'); $timesheets = Timesheet::whereDate('start_time','=',$currentDate) ->where('member_id', Auth::user()->id) ->get(); $schedule = Schedule::whereDate('start_date','=',$currentDate) ->where('member_id', Auth::user()->id) ->get(); //Get total time worked $hours = 0; foreach ($timesheets as $timesheet) { $date1 = new Datetime($timesheet->start_time); $date2 = new Datetime($timesheet->end_time); $diff = $date2->diff($date1); $hours = $hours + (($diff->h * 60) + $diff->i); } //Get total breaks $breaks = 0; $first_timesheet = Timesheet::whereDate('start_time','=',$currentDate) ->where('member_id', Auth::user()->id) ->first(); $last_timesheet = Timesheet::whereDate('start_time','=',$currentDate) ->where('member_id', Auth::user()->id) ->latest()->first(); if($first_timesheet){ $date1 = new Datetime($first_timesheet->start_time); $date2 = new Datetime($last_timesheet->end_time); $diff = $date2->diff($date1); $breaks = (($diff->h * 60) + $diff->i) - $hours; } $worked = $this->hoursandmins($hours); $breaks = $this->hoursandmins($breaks); // First Punch In in current day $first_punch_in = Timesheet::whereDate('start_time','=',$currentDate) ->where('member_id', Auth::user()->id) ->first(); return view('attendance/index', ['timesheets'=>$timesheets, 'schedule'=>$schedule, 'first_punch_in'=>$first_punch_in, 'worked'=>$worked, 'breaks'=>$breaks, 'first_timesheet'=>$first_timesheet, 'last_timesheet'=>$last_timesheet]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStationsWithSchedules();", "public function getSchedule() {\n// from schedule\n// ORDER BY gameDate\";\n $sql = \"Select id, opponent, location, stadiumName, homeoraway, byuScore, oppScore,\n gameDate, closeDate, showUntilDate, sysdate() as now\n from schedule\n ORDER BY gameDate\";\n\n try {\n return $this->getFullList($sql);\n } catch (PDOException $e) {\n echo '{\"error\":{\"text\":\"' . $e->getMessage() . '\"\"}}';\n }\n }", "public function schedules()\n {\n $inVacation = config('schedules')['vacation'];\n $weekdays = config('schedules')['tabData']['days'];\n\n if ($inVacation) {\n $schedules = [\n 'sun' => null,\n 'mon' => null,\n 'tue' => null,\n 'wed' => null,\n 'thu' => null,\n 'fri' => null,\n 'sat' => null\n ];\n\n $scheduleMessage = config('schedules')['vacationMessage'] . '<br>...';\n } else {\n $schedules = $this->schedules->getByDay();\n $scheduleMessage = 'Sem horários<br>...';\n }\n\n return [\n 'weekDays' => $weekdays,\n 'currentDay' => \\strtolower(\\date('D')),\n 'schedules' => $schedules,\n 'scheduleEmptyMessage' => $scheduleMessage\n ];\n }", "public function todaySchedules(): HasMany\n {\n return $this->schedules()->whereDate('created_at', today());\n }", "public function listSchedules()\n {\n $data = ['dates' => []];\n $scheduleRepository = $this->getRepository('schedule');\n $schedules = $scheduleRepository->loadSchedulesGrouped('date');\n foreach ($schedules as $key => $schedule) {\n $data['dates'][] = $schedule['date'];\n }\n\n return $this->render('showschedules', $data);\n }", "public function schedulingsDay(Request $request)\n {\n $date = $request->input('date_scheduling');\n $schedulings = Scheduling::where('date_scheduling', $date)->get();\n foreach ($schedulings as $value) {\n $value->room->local;\n }\n\n return SchedulingResource::collection($schedulings);\n }", "public function schedule_by_date(Request $request) {\n //\n $currentDate = $request->segment(2);\n $day = \\Helpers\\DateHelper::getDay($currentDate);\n $weekDays = \\Helpers\\DateHelper::getWeekDays($currentDate, $day); \n $workouts = \\App\\Schedule::getScheduledWorkouts($weekDays);\n \n return view('user/schedule', ['number_of_day' => $day, 'current_date' => $currentDate, 'weekDays' => $weekDays])\n ->with('target_areas', json_decode($this->target_areas, true))\n ->with('movements', json_decode($this->movements, true))\n ->with('workouts', $workouts); \n }", "public function getSchedules()\n {\n return $this->hasMany(Schedule::className(), ['lesson_plan_id' => 'lesson_plan_id']);\n }", "function GetAllSchedules() {\n\tglobal $server;\n\tglobal $user;\n\t$url = \"http://\".$server.\"/api/\".$user.\"/schedules\";\n\t$array = LaunchCurl($url);\n\treturn $array;\n}", "public function fetchSchedules()\n {\n // Prepare a select query.\n $statement = $this->oConnection->prepare(\"\n SELECT\n ts.id, tc.courseCode AS title, ts.coursePrice, ts.fromDate AS start, ts.toDate AS end,\n ts.numSlots, ts.remainingSlots, ts.instructorId, ts.recurrence, ts.numRepetitions,\n tv.id AS venueId, tv.venue,\n CONCAT(tu.firstName, ' ', tu.lastName) AS instructor, tc.id AS courseId, ts.status,\n CASE\n WHEN tv.venue = 'Manila' THEN '#4fa242'\n WHEN tv.venue = 'Makati' THEN '#b169ec'\n END AS color\n FROM tbl_schedules ts\n INNER JOIN tbl_courses tc\n ON ts.courseId = tc.id\n INNER JOIN tbl_venue tv\n ON ts.venueId = tv.id\n INNER JOIN tbl_users tu\n ON ts.instructorId = tu.userId\n \");\n\n // Execute the above statement.\n $statement->execute();\n\n // Return the number of rows returned by the executed query.\n return $statement->fetchAll();\n }", "static function fetchJobSchedules() {\n global $wpdb;\n $resultset = $wpdb->get_results(\n \" SELECT job_id, classname, repeat_time_minutes, repeat_daily_at, active_yn, last_run_date \n FROM job_scheduler\n ORDER BY job_id\");\n\n if($wpdb->last_error) {\n throw new DatabaseException($wpdb->last_error);\n }\n\n $schedule = array();\n foreach( $resultset as $record ) {\n if( false === empty( $record->repeat_time_minutes ) ) {\n $schedule[] = new ScheduledJobRepeat(\n $record->job_id, \n $record->classname, \n $record->repeat_time_minutes, \n $record->active_yn == 'Y',\n $record->last_run_date,\n self::fetchJobScheduleParameters( $record->job_id ));\n }\n else if( false === empty( $record->repeat_daily_at ) ) {\n $schedule[] = new ScheduledJobDaily(\n $record->job_id, \n $record->classname, \n $record->repeat_daily_at,\n $record->active_yn == 'Y',\n $record->last_run_date,\n self::fetchJobScheduleParameters( $record->job_id ));\n }\n }\n return $schedule;\n }", "public function index()\n {\n return Schedule::latest()->get();\n }", "public function getDateSchedule()\n {\n $date = $this->getCustomParam('date');\n $schedulesRepository = $this->getRepository('schedule');\n $moviesRepository = $this->getRepository('movie');\n $roomsRepository = $this->getRepository('room');\n\n $currentSchedules = $schedulesRepository->getSchedulesPerDay($date);\n $currentSchedules = $this->setTimeFormatDisplay($currentSchedules, 'H:i');\n\n $data = array(\n 'schedules' => $currentSchedules,\n );\n\n return $this->application->json($data);\n }", "public function index()\n {\n $schedulings = Scheduling::all();\n foreach ($schedulings as $value) {\n $value->room->local;\n }\n\n return SchedulingResource::collection($schedulings);\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}", "public function listAction()\r\n {\r\n $pid = $this->_getParam('projectid');\r\n $where = array();\r\n if ($pid) {\r\n $where['projectid='] = $pid;\r\n }\r\n $cid = $this->_getParam('clientid');\r\n if ($cid) {\r\n $where['clientid='] = $cid;\r\n }\r\n \r\n $this->view->timesheets = $this->projectService->getTimesheets($where);\r\n \r\n $this->renderView('timesheet/list.php');\r\n }", "public function getScheduleList($filter=null) {\n\t\t$return = array();\n\t\t$users = User::where('organisation_id', Auth::user()->organisation_id)\n\t\t\t->orderBy('name', 'asc')\n\t\t\t->get();\n\t\tforeach ($users as $user) {\n\t\t\t$temp_array = array();\n\t\t\t$temp_array['user'] = array(\n\t\t\t\t'id' => 'u'.$user->id,\n\t\t\t\t'name' => $user->name,\n\t\t\t\t'job_title' => $user->job_title,\n\t\t\t\t'avatar' => $user->avatar,\n\t\t\t);\n\t\t\t$temp_array['schedule'] = array();\n\t\t\t$schedules = DB::table('schedules')\n\t\t\t\t->join('tasks', 'schedules.task_id', '=', 'tasks.id')\n\t\t\t\t->join('projects', 'schedules.project_id', '=', 'projects.id')\n\t\t\t\t->select('schedules.*', 'tasks.name', 'projects.color')\n\t\t\t\t->where([\n\t\t\t\t\t['user_id', $user->id],\n\t\t\t\t\t['start_date', '>=', '2016-04-01'],\n\t\t\t\t\t['start_date', '<=', '2016-04-30'],\n\t\t\t\t])\n\t\t\t\t->orderBy('start_date', 'asc')\n\t\t\t\t->get();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\tforeach($schedules as $schedule){\n\t\t\t\tif(!isset($temp_array['schedule'][$schedule->start_date])){\n\t\t\t\t\t$temp_array['schedule'][$schedule->start_date] = array();\n\t\t\t\t}\n\t\t\t\t$temp_array['schedule'][$schedule->start_date][$schedule->id] = array(\n\t\t\t\t\t'id' => $schedule->id,\n\t\t\t\t\t'project_id' => $schedule->project_id,\n\t\t\t\t\t'color' => $schedule->color,\n\t\t\t\t\t'task_id' => $schedule->task_id,\n\t\t\t\t\t'task_name' => $schedule->name,\n\t\t\t\t\t'user_id' => $schedule->user_id,\n\t\t\t\t\t'start_date' => $schedule->start_date,\n\t\t\t\t\t'end_date' => $schedule->end_date,\n\t\t\t\t\t'num_working_days' => $schedule->num_working_days,\n\t\t\t\t\t'num_non_working_days' => $schedule->num_non_working_days,\n\t\t\t\t\t'daily_hours' => $schedule->daily_hours,\n\t\t\t\t\t'total_hours' => $schedule->total_hours,\n\t\t\t\t);\n\t\t\t}\n\t\t\t$return['u'.$user->id] = $temp_array;\n\t\t}\n\t\treturn $return;\n\t}", "public function getCalendars($params){\n /**\n * @var integer $month 0 last month, 1 current month, 2 next month\n */\n $month = isset($params['month']) ? $params['month'] : 1;\n switch ($month){\n case 0:$date = date(\"Y-m-1\",strtotime(\"-1 month\"));break;\n case 1:$date = date(\"Y-m-1\",time());break;\n case 2:$date = date(\"Y-m-1\",strtotime(\"+1 month\"));break;\n default:$date = date(\"Y-m-1\",time());break;\n }\n $month = intval(date(\"m\",strtotime($date)));\n $week = date(\"w\",strtotime($date));\n $start = strtotime($date) - $week * 24 * 3600;\n $end = $start + 41 * 24 * 3600;\n\n $cser = $this->searchByTime($start,$end); /// 排班表内容\n $data = [];\n for ($i = 0; $i < 42; $i++){\n $i_time = $start + $i * 24 * 3600;\n $i_month = intval(date(\"m\",$i_time));\n $data[$i]['day'] = intval(date(\"d\",$i_time));\n $data[$i]['date'] = date(\"Y-m-d\",$i_time);\n $data[$i]['off'] = $i_month != $month ? true : false;\n $data[$i]['on'] = date(\"Y-m-d\",time()) == $data[$i]['date'] ? true : false;\n $flag = false;\n foreach ($cser as $k => $cs){\n if($cs['time'] == $i_time){\n $data[$i]['name'] = $cs['scheduler']['name'];\n $data[$i]['id'] = $cs['s_id'];\n $flag = true;\n unset($cser[$k]);\n break;\n }\n if($cs['time'] < $i_time){\n break;\n }\n }\n if(!$flag){\n $data[$i]['name'] = '无';\n $data[$i]['id'] = null;\n }\n }\n return $data;\n }", "public function schedules()\n {\n return $this->hasMany('App\\Schedule');\n }", "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n // Da ka Event\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/PunchEvent';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('9:13');\n // Check sprint progress.\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/amChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('10:00');\n // Verify completed tasks\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/doneIssueChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('17:30');\n // volunteer for unassigned task.\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/todoChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n })->weekdays()\n ->everyFiveMinutes()\n ->timezone('Asia/Shanghai')\n ->between('9:50', '22:00');\n }", "public function getSchedari()\n {\n return Schedario::all();\n }", "function create_schedule(){\n\t\tfor ($i=0 ; $i< 6; $i++){\n\t\t\tfor ($j = $this->times[$i] ; $j < $this->times[$i+1] ; $j++){\n\t \t\t\t$this->bedroom[$j] = $this->temps[$this->bedroom_setting[$i]];\n\t\t\t\t$this->bathroom[$j] = $this->temps[$this->bathroom_setting[$i]];\n\t\t\t\t$this->kitchen[$j] = $this->temps[$this->kitchen_setting[$i]];\n\t\t\t\t$this->livingroom[$j] = $this->temps[$this->livingroom_setting[$i]];\n\t\t\t}\n\t\t}\n\t\t$result = [$this->bedroom,$this->bathroom,$this->kitchen, $this->livingroom];\n\t\treturn $result;\n\t}", "public function schedules()\n {\n return $this->hasMany('App\\SchedulesWorked', 'customer_id');\n }", "function list_schedules_screen( $vars ) {\r\n $vars['schedules'] = $this->has_schedules();\r\n $vars['assignments'] = BPSP_Assignments::has_assignments();\r\n \r\n if( empty( $vars['schedules'] ) && empty( $vars['assignments'] ) )\r\n $vars['message'] = __( 'No schedules exist.', 'bpsp' );\r\n \r\n $vars['name'] = 'list_schedules';\r\n $vars['trail'] = array(\r\n __( 'Available Schedules', 'bpsp' ) => ''\r\n );\r\n return $vars;\r\n }", "public function getScheduled()\n {\n $jobs = array();\n \n $scheduled = $this\n ->_em\n ->getRepository($this->_entityClass)\n ->createQueryBuilder('s')\n ->andWhere('s.schedule is not NULL')\n ->andWhere('s.active = :active')\n ->setParameters(array('active' => 0))\n ->getQuery()\n ->getResult(); \n \n foreach ($scheduled as $record) {\n $job = new $this->_jobClass(call_user_func($this->_adapterClass . '::factory', $this->_options, $record, $this->_em, $this->_logger));\n array_push($jobs, $job);\n }\n return $jobs;\n \n }", "function ReadDateSchedules($date)\n {\n $where=$this->UnitEventWhere(array(\"Date\" => $date[ \"ID\" ]));\n\n $rschedules=array();\n foreach ($this->Sql_Select_Hashes($where) as $schedule)\n {\n $schedule=$this->PostProcess($schedule);\n \n $timeid=$schedule[ \"Time\" ];\n $roomid=$schedule[ \"Room\" ];\n \n if (empty($rschedules[ $timeid ])) $rschedules[ $timeid ]=array();\n $rschedules[ $timeid ][ $roomid ]=$schedule;\n\n if (!empty($schedule[ \"Submission\" ]))\n {\n $submissionid=$schedule[ \"Submission\" ];\n }\n }\n \n \n return $rschedules;\n }", "public function index() {\n //\n $currentDate = \\Helpers\\DateHelper::getLocalUserDate(date('Y-m-d H:i:s')); \n $day = \\Helpers\\DateHelper::getDay($currentDate);\n $weekDays = \\Helpers\\DateHelper::getWeekDays($currentDate, $day); \n $workouts = \\App\\Schedule::getScheduledWorkouts($weekDays);\n \n return view('user/schedule', ['number_of_day' => $day, 'current_date' => $currentDate, 'weekDays' => $weekDays])\n ->with('target_areas', json_decode($this->target_areas, true))\n ->with('movements', json_decode($this->movements, true))\n ->with('workouts', $workouts);\n }", "public function get_schedules( $experiment_id ) {\n\t\treturn $this->request( array(\n\t\t\t'function' => 'experiments/' . abs( intval( $experiment_id ) ) . '/schedules',\n\t\t\t'method' => 'GET',\n\t\t) );\n\t}", "function get_cuentadigital_schedule(){\n $next = wp_next_scheduled('cuentadigital_cron_hook');\n $output = '<p>Current Time: ' . current_time('mysql') . '</p>';\n $output .= '<p>Next Scheduled Run: ' . date('Y-m-d H:i:s', $next) . '</p>';\n return $output;\n }", "public function Schedules()\n\t{\n\t\treturn $this->hasMany('App\\Models\\Schedule');\n\t}", "public function schedule() {\n $result = $this->toArray();\n $rehearsal_id = $this->id;\n $songs = $this->songs()->orderBy('pivot_start', 'ASC')->with(['players' => function ($p) use ($rehearsal_id) {\n $p->with(['availabilities' => function ($a) use ($rehearsal_id) {\n $a->where('rehearsal_id', $rehearsal_id);\n }]);\n }]);\n $result['songs'] = $songs->get()->toArray();\n return $result;\n }", "public function getScheduleList($params, $context) {\n\t\treturn \\OMV\\Rpc\\Rpc::call(\"cron\", \"getList\", $params, $context);\n\t}", "public function schedules(): HasMany\n {\n return $this->hasMany(Schedule::class);\n }", "public function getSchedules() {\n $result = DB::select(\"SELECT * FROM schedular,unnest(string_to_array(user_id, ',')) AS s_user_id WHERE s_user_id = ANY ( string_to_array('\".session('user-id').\"', ',') ) AND is_active = true order by created_date desc\" );\n if (count($result) > 0) {\n return $result;\n }\n return array();\n }", "public function getBusySchedules($date,$activity_type,$engineer_id)\n {\n $this->db->where('start_date',$date);\n if($activity_type!='')\n $this->db->where('activity_type', $activity_type); \n if($engineer_id!='')\n $this->db->where('engineer_id', $engineer_id); \n\n $query = $this->db->get('job');\n\n $busy_slots = array();\n\n foreach ($query->result() as $key => $book_detail)\n {\n $busy_slots[] = array(\n \"begin\"=>new DateTime($book_detail->start_time),\n \"end\"=>new DateTime($book_detail->end_time),\n \"engineer_id\"=>$book_detail->engineer_id,\n \"customer_id\"=>$book_detail->customer_id,\n \"req_id\"=>$book_detail->id,\n \"status\"=>$book_detail->status,\n );\n }\n return $busy_slots;\n }", "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 }", "public function listSchedules() {\n\n\t\t$schduleList = array ();\n\n\t\t$sql = \"SELECT * FROM Schedule\";\n\t\t$result = mysqli_query ( $this->db, $sql );\n\n\t\t// loops through all the queries\n\t\t$i = 0;\n\t\twhile ( $row = mysqli_fetch_assoc ( $result ) ) {\n\n\t\t\t$schduleList [$i] = $row ['year'] . \" \" . $row ['program'];\n\t\t\t// echo $schduleList [$i] . \"</br>\";\n\t\t\techo \"<option value='\" . $row ['id'] . \"'>\" . $schduleList [$i] . \"</option>\";\n\t\t\t$i ++;\n\t\t}\n\n\t\treturn;\n\t\t// return $scheduleList;\n\t}", "public function getScheduleDate(){return $this->date;}", "public function weekSchedule(Request $request)\n\t{\n\t\t$doctor = $request->user()->doctor;\n\n\t\t$endDate = new Carbon($request->end_date);\n $startDate = new Carbon($request->start_date);\n $values = Schedule::with(['leave'])\n\t \t->whereDate('date', '>=', $startDate->toDateString())\n\t ->whereDate('date', '<=', $endDate->toDateString())\n\t ->where('doctor_id', $doctor->id)\n\t ->get();\n\n\t\treturn $values;\n\t}", "function dayScheduleA()\n\t{\n\t$scheduleDay = array(45, 60, 90, 120, 150, 180, 210, 240);\n\treturn $scheduleDay;\n\t}", "public static function daily() {return new ScheduleViewMode(1);}", "protected function schedule ( Schedule $schedule )\n {\n\n /** BEGIN: FETCH APPWORKS API DATA ****************************************/\n\n $schedule->command( 'ot-appworks:fetch-events' )\n ->hourlyAt(0)\n ->withoutOverlapping();\n\n $schedule->command( 'ot-appworks:fetch-event-data' )\n ->hourlyAt(5)\n ->withoutOverlapping();\n\n $schedule->command( 'ot-scoreboard:fetch-new-points' )\n ->everyFiveMinutes()\n ->withoutOverlapping();\n\n $schedule->command( 'ot-socialcards:fetch-new-posts' )\n ->everyFiveMinutes()\n ->withoutOverlapping();\n\n /** END: FETCH APPWORKS API DATA ******************************************/\n\n /** BEGIN: FETCH TWITTER API DATA *****************************************/\n\n $schedule->command( 'ot-socialcards:fetch-new-tweets' )\n ->everyMinute()\n ->withoutOverlapping();\n\n /** END: FETCH TWITTER API DATA *******************************************/\n\n }", "function get_schedule($usrid){\r\n\t\r\n}", "public function getDailySchedule()\n {\n return $this->daily_schedule;\n }", "public function getDailySchedule()\n {\n return $this->daily_schedule;\n }", "private function applyCustomSchedule($model, $currentDate)\n\t{\n\t\t$currentYear = date('Y', strtotime($currentDate));\n\t\t$currentMonth = date('m', strtotime($currentDate)); \n\t\t$currentDay = date('d', strtotime('+'.$model->minimum_days_appointment_set.' days', strtotime($currentDate))); \n\t\t\n\t\t$startDate = strtotime($currentYear.'-'.$currentMonth.'-'.$currentDay);\n\t\t$endDate = strtotime('+'. $model->maximum_days_appointment_set.' days', $startDate);\n\t\t\n\t\t$customSchedules = CalendarCustomSchedule::model()->find(array(\n\t\t\t'condition' => 'calendar_id = :calendar_id',\n\t\t\t'params' => array(\n\t\t\t\t':calendar_id' => $model->id,\n\t\t\t),\n\t\t));\n\t\t\n\t\t\n\t\t$timeCtr = 1;\n\n\t\tif($customSchedules)\n\t\t{\n\t\t\t$dates = array();\n\t\t\t\n\t\t\twhile( $startDate <= $endDate ) \n\t\t\t{\t\n\t\t\t\t$existingHolidaySlot = CalendarHoliday::model()->find(array(\n\t\t\t\t\t'condition' => 'calendar_id = :calendar_id AND MONTH(date) = :start_date_month AND DAY(date) = :start_date_day',\n\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t':calendar_id' => $model->id,\n\t\t\t\t\t\t':start_date_month' => date('m', $startDate),\n\t\t\t\t\t\t':start_date_day' => date('d', $startDate),\n\t\t\t\t\t),\n\t\t\t\t));\n\t\t\t\n\t\t\t\tif( empty($existingHolidaySlot) )\n\t\t\t\t{\n\t\t\t\t\t$dates[] = date('Y-m-d', $startDate);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$startDate = strtotime('+1 day', $startDate);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif( $dates )\n\t\t\t{\n\t\t\t\tforeach( $dates as $date )\n\t\t\t\t{\n\t\t\t\t\t$timeCtr = 1;\n\t\t\t\t\t\n\t\t\t\t\t$customSchedules = CalendarCustomSchedule::model()->findAll(array(\n\t\t\t\t\t\t'condition' => 'calendar_id = :calendar_id AND day = :day',\n\t\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t\t':calendar_id' => $model->id,\n\t\t\t\t\t\t\t':day' => date('l', strtotime($date)),\n\t\t\t\t\t\t),\n\t\t\t\t\t));\n\t\t\t\t\t\n\t\t\t\t\tif( $customSchedules )\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($customSchedules as $customSchedule) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif( $timeCtr <= $model->maximum_appointments_per_day )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$start_date = $date.' '.date('H:i:s', strtotime($customSchedule->time));\n\t\t\t\t\t\t\t\t$start_date_year = date('Y', strtotime($start_date));\n\t\t\t\t\t\t\t\t$start_date_month = date('m', strtotime($start_date));\n\t\t\t\t\t\t\t\t$start_date_day = date('d', strtotime($start_date));\n\t\t\t\t\t\t\t\t$start_date_time = date('H:i:s', strtotime($start_date));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$end_date = date('Y-m-d H:i:s', strtotime('+'.$model->appointment_length , strtotime($start_date)));\n\t\t\t\t\t\t\t\t$end_date_year = date('Y', strtotime($end_date));\n\t\t\t\t\t\t\t\t$end_date_month = date('m', strtotime($end_date));\n\t\t\t\t\t\t\t\t$end_date_day = date('d', strtotime($end_date));\n\t\t\t\t\t\t\t\t$end_date_time = date('H:i:s', strtotime($end_date));\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$existingAppointment = CalendarAppointment::model()->find(array(\n\t\t\t\t\t\t\t\t\t'condition' => 'calendar_id = :calendar_id AND start_date = :start_date',\n\t\t\t\t\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t\t\t\t\t':calendar_id' => $model->id,\n\t\t\t\t\t\t\t\t\t\t':start_date' => $start_date,\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\n\t\t\t\t\t\t\t\tif(empty($existingAppointment))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$newAppointment = new CalendarAppointment;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$newAppointment->setAttributes(array(\n\t\t\t\t\t\t\t\t\t\t'calendar_id' => $model->id,\n\t\t\t\t\t\t\t\t\t\t'title' => 'AVAILABLE',\n\t\t\t\t\t\t\t\t\t\t'start_date' => $start_date,\n\t\t\t\t\t\t\t\t\t\t'start_date_year' => $start_date_year,\n\t\t\t\t\t\t\t\t\t\t'start_date_month' => $start_date_month,\n\t\t\t\t\t\t\t\t\t\t'start_date_day' => $start_date_day,\n\t\t\t\t\t\t\t\t\t\t'start_date_time' => $start_date_time,\n\t\t\t\t\t\t\t\t\t\t'end_date' => $end_date,\n\t\t\t\t\t\t\t\t\t\t'end_date_year' => $end_date_year,\n\t\t\t\t\t\t\t\t\t\t'end_date_month' => $end_date_month,\n\t\t\t\t\t\t\t\t\t\t'end_date_day' => $end_date_day,\n\t\t\t\t\t\t\t\t\t\t'end_date_time' => $end_date_time,\n\t\t\t\t\t\t\t\t\t\t'is_custom' => 1,\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\t$newAppointment->save(false);\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$timeCtr++;\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}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function getNewsletterSchedulesForDate($date) {\r\n\t\t\r\n\t\t$result = array();\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getOnceNewsletterSchedulesForDate($date));\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getEveryDayNewsletterSchedulesForDate($date));\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getOnceAWeekNewsletterSchedulesForDate($date));\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getOnceAMonthNewsletterSchedulesForDate($date));\r\n\t\t\t\t\r\n\t\treturn $result;\r\n\t\t\r\n\t}", "private function createSchedule()\n {\n $days = DisplayScheduleDay::singleton()->dbObject('Day')->enumValues();\n foreach ($days as $day) {\n $scheduleDay = DisplayScheduleDay::create();\n $scheduleDay->Day = $day;\n $this->Schedule()->add($scheduleDay);\n }\n }", "public function getSchedules(Request $req)\n {\n\n $data['bookingdate'] = $req->bookingdate;\n $data['schedules'] = Schedule::where('route_id', $req->route)->orderByRaw('CAST(depart_time as time) ASC')->get();\n return view('admin.ticket.getSchedules', $data);\n }", "public function get_schedule($params = [])\n {\n $result = Schedule::where([\n 'event_id' => $params['event_id'], \n 'user_id' => $params['user_id'] \n ])->get();\n\n return to_array($result);\n }", "private function retrieveSchedule($team_id, $start_date, $end_date)\n {\n if (isset($team_id, $start_date, $end_date)) {\n try {\n $start_date = new Carbon($start_date);\n $end_date = new Carbon($end_date);\n $schedule = \\Roster::where('date_start', '=', $start_date->toDateString())->where('team_id', '=', $team_id)->first();\n if (!isset($schedule)) {\n $schedule = new \\Roster;\n $schedule->team_id = $team_id;\n $schedule->date_start = $start_date->toDateString();\n $schedule->date_ending = $end_date->toDateString();\n $schedule->roster_stage = 'pending';\n $schedule->save();\n }\n $schedule = \\Roster::where('date_start', '=', $start_date->toDateString())->where('team_id', '=', $team_id)\n ->with('rosteredshift.task')->with(array('team.user' => function ($query) use ($start_date, $end_date) {\n $query->where('user.active', '=', true)\n ->with(array('availspecific' => function ($query) use ($start_date, $end_date) {\n $query->where(function ($query) use ($start_date, $end_date) {\n $query->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '<=', $start_date->toDateString())\n ->where('end_date', '>=', $start_date->toDateString());\n })->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '>=', $start_date->toDateString())\n ->where('start_date', '<=', $end_date->toDateString());\n })->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '<=', $start_date->toDateString())\n ->where('end_date', '>=', $end_date->toDateString());\n })->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '>=', $start_date->toDateString())\n ->where('end_date', '<=', $end_date->toDateString());\n });\n })\n ->where('user_avail_spec.authorized', '=', 'approved');\n }))\n ->with('availgeneral');\n }))->first();\n } catch (\\Exception $e) {\n return Helper::jsonLoader(EXCEPTION, array(\"message\" => $e->getMessage(), \"line\" => $e->getLine(), \"file\" => $e->getFile()));\n }\n foreach ($schedule->rosteredshift as $key => $shift) {\n if ($shift->rostered_start_time !== '0000-00-00 00:00:00') {\n $temp = Carbon::parse($shift->rostered_start_time)->timezone(Helper::organisationTimezone())->toDateTimeString();\n $schedule->rosteredshift[$key]->rostered_start_time = $temp;\n }\n if ($shift->rostered_end_time !== '0000-00-00 00:00:00') {\n $temp = Carbon::parse($shift->rostered_end_time)->timezone(Helper::organisationTimezone())->toDateTimeString();\n $schedule->rosteredshift[$key]->rostered_end_time = $temp;\n }\n }\n $schedule = $schedule->toArray();\n $schedule['timezone'] = Carbon::now(Helper::organisationTimezone())->offset / 60;\n return $schedule;\n } else {\n return Helper::jsonLoader(INCORRECT_DATA);\n }\n }", "function getCalender(Request $request){\n\n $auth_id=Auth::user()->id;\n\n if((isset($request->start) && $request->start!='') && (isset($request->end) && $request->end!='')){\n \n /*\n * start_date is getting only date like 2017-11-11 in 2017-11-11T9:15:25\n * end_date is getting only date like 2017-11-17 in 2017-11-17T12:35:35 \n */\n $start_date= str_replace(strstr($request->start, 'T') , \"\", $request->start);\n\n $end_date= str_replace(strstr($request->end, 'T') , \"\", $request->end);\n\n $array=array();\n\n /*\n * get_time is getting the record according to user logged id \n */\n $get_time=CalendarAvailability::select('start_time','end_time','reocuuring')\n ->where('user_id',$auth_id)\n ->get();\n \n /*\n * $array[] is getting all dates between two dates 2017-11-11 to 2017-11-17\n * 2017-11-11,\n * 2017-11-12,\n * 2017-11-13,\n * 2017-11-14,\n * 2017-11-15,\n * 2017-11-16,\n * 2017-11-17\n */\n for ($x=strtotime($start_date);$x<strtotime($end_date);$x+=86400){\n \n $array[]=date('Y-m-d',$x);\n\n }\n\n /*\n * $get_time[0]->reocuuring==0 the sunday,saturday schedule is not display\n * $get_time[0]->reocuuring==1 the sunday schedule is not display\n * $get_time[0]->reocuuringis not equal to 0 or 1 then schedule is display for all days means daily\n */\n if(isset($get_time[0]->reocuuring) && $get_time[0]->reocuuring=='0'){\n unset($array[0]);\n unset($array[6]);\n }elseif (isset($get_time[0]->reocuuring) && $get_time[0]->reocuuring=='1') {\n unset($array[0]);\n }\n \n /*\n * get_holiday_days is getting the holiday dates user logged id and all dates \n */\n $get_holiday_days=CalendarHoliday::select('holiday_date')\n ->where('user_id',$auth_id)\n ->whereIn('holiday_date', $array)\n ->get();\n \n /*\n * $array is gettting that dates which is not in CalenderHoliday table\n */\n for ($i=0; $i <count($get_holiday_days) ; $i++) {\n if(array_search ($get_holiday_days[$i]->holiday_date, $array)){\n $array = array_diff($array, [$get_holiday_days[$i]->holiday_date]);\n }\n \n }\n\n /*\n * $arr is getting start date with start time and end date with end time \n */\n $arr = array();\n foreach ($array as $key => $value) {\n $start=$value.'T'.$get_time[0]->start_time;\n $end=$value.'T'.$get_time[0]->end_time;\n $arr[] = array('start' =>$start ,'end' =>$end);\n }\n\n echo json_encode($arr);die;\n \n }\n \n return view('calendar.get_calender');\n }", "public function getScheduling()\n {\n return $this->scheduling;\n }", "public function getSchedules($id)\n {\n $search = request()->all();\n $search['date1'] = isset($search['date1']) ? Carbon::parse($search['date1']) : '';\n $search['date2'] = isset($search['date2']) ? Carbon::parse($search['date2']) : '';\n\n $schedules = $this->scheduleRepo->findAllByDoctorWithoutPagination($id, $search);\n\n return $schedules;\n \n }", "protected function schedule(Schedule $schedule)\n {\n // $configuracao = DB::table('configuracao')->first();\n\n // if($configuracao->frequencia == 'Diária')\n // {\n // $schedule->call(function (){\n // Ente::importar();\n // HistoricoDeAcesso::importar();\n // })->dailyAt($configuracao->horario); \n // }\n // else\n // {\n // $schedule->call(function (){\n // Ente::importar();\n // HistoricoDeAcesso::importar();\n // })->weekly()->fridays()->at($configuracao->horario); \n // }\n \n }", "public function schedule(): Schedule\n {\n return $this->schedule;\n }", "public function getScheduleItems()\n {\n if (array_key_exists(\"scheduleItems\", $this->_propDict)) {\n if (is_a($this->_propDict[\"scheduleItems\"], \"\\Beta\\Microsoft\\Graph\\Model\\ScheduleItem\") || is_null($this->_propDict[\"scheduleItems\"])) {\n return $this->_propDict[\"scheduleItems\"];\n } else {\n $this->_propDict[\"scheduleItems\"] = new ScheduleItem($this->_propDict[\"scheduleItems\"]);\n return $this->_propDict[\"scheduleItems\"];\n }\n }\n return null;\n }", "public function updateSchedule()\n\t{\n\t\t// Removing old days if we have any days\n\t\tif (count(self::$schedule) > 0) {\n\t\t\t$currDate = date('Y/m/d');\n\n\t\t\twhile (isset(self::$schedule[0]) && self::$schedule[0]->date != $currDate) {\n\t\t\t\tarray_shift(self::$schedule);\n\t\t\t}\n\t\t}\n\n\t\t// Building out the schedule if we're missing days\n\t\tif (count(self::$schedule) < 7) $this->build();\n\t}", "public function ga_calendar_time_slots()\n {\n // Timezone\n $timezone = ga_time_zone();\n\n // Service & Provider ID\n $current_date = isset($_POST['current_month']) ? esc_html($_POST['current_month']) : '';\n $service_id = isset($_POST['service_id']) ? (int) $_POST['service_id'] : 0;\n $provider_id = isset($_POST['provider_id']) && 'ga_providers' == get_post_type($_POST['provider_id']) ? (int) $_POST['provider_id'] : 0;\n $form_id = isset($_POST['form_id']) ? (int) $_POST['form_id'] : 0;\n\n if ('ga_services' == get_post_type($service_id) && ga_valid_date_format($current_date)) {\n # ok\n } else {\n wp_die('Something went wrong.');\n }\n\n // Date Caption\n $date = new DateTime($current_date, new DateTimeZone($timezone));\n\n // Generate Slots\n $ga_calendar = new GA_Calendar($form_id, $date->format('n'), $date->format('Y'), $service_id, $provider_id);\n echo $ga_calendar->calendar_time_slots($date);\n wp_die();\n }", "public function indexAction()\r\n {\r\n \tini_set('memory_limit', '64M');\r\n $validFormats = array('weekly');\r\n $format = 'weekly'; // $this->_getParam('format', 'weekly');\r\n \r\n if (!in_array($format, $validFormats)) {\r\n $this->flash('Format not valid');\r\n $this->renderView('error.php');\r\n return;\r\n }\r\n\r\n $reportingOn = 'Dynamic';\r\n \r\n // -1 will mean that by default, just choose all timesheet records\r\n $timesheetid = -1;\r\n\r\n // Okay, so if we were passed in a timesheet, it means we want to view\r\n // the data for that timesheet. However, if that timesheet is locked, \r\n // we want to make sure that the tasks being viewed are ONLY those that\r\n // are found in that locked timesheet.\r\n $timesheet = $this->byId();\r\n\r\n $start = null;\r\n $end = null;\r\n $this->view->showLinks = true;\r\n $cats = array();\r\n\r\n if ($timesheet) {\r\n $this->_setParam('clientid', $timesheet->clientid);\r\n $this->_setParam('projectid', $timesheet->projectid);\r\n if ($timesheet->locked) {\r\n $timesheetid = $timesheet->id;\r\n $reportingOn = $timesheet->title;\r\n } else {\r\n $timesheetid = 0; \r\n $reportingOn = 'Preview: '.$timesheet->title;\r\n }\r\n if (is_array($timesheet->tasktype)) {\r\n \t$cats = $timesheet->tasktype;\r\n } \r\n\r\n $start = date('Y-m-d 00:00:01', strtotime($timesheet->from));\r\n $end = date('Y-m-d 23:59:59', strtotime($timesheet->to)); \r\n $this->view->showLinks = false;\r\n } else if ($this->_getParam('category')){\r\n \t$cats = array($this->_getParam('category'));\r\n }\r\n \r\n \r\n $project = $this->_getParam('projectid') ? $this->byId($this->_getParam('projectid'), 'Project') : null;\r\n\t\t\r\n\t\t$client = null;\r\n\t\tif (!$project) {\r\n \t$client = $this->_getParam('clientid') ? $this->byId($this->_getParam('clientid'), 'Client') : null;\r\n\t\t}\r\n\t\t\r\n $user = $this->_getParam('username') ? $this->userService->getUserByField('username', $this->_getParam('username')) : null;\r\n \r\n\t\t$this->view->user = $user;\r\n\t\t$this->view->project = $project;\r\n\t\t$this->view->client = $client ? $client : ( $project ? $this->byId($project->clientid, 'Client'):null);\r\n\t\t$this->view->category = $this->_getParam('category');\r\n \r\n if (!$start) {\r\n\t // The start date, if not set in the parameters, will be just\r\n\t // the previous monday\r\n\t $start = $this->_getParam('start', $this->calculateDefaultStartDate());\r\n\t // $end = $this->_getParam('end', date('Y-m-d', time()));\r\n\t $end = $this->_getParam('end', date('Y-m-d 23:59:59', strtotime($start) + (6 * 86400)));\r\n }\r\n \r\n // lets normalise the end date to make sure it's of 23:59:59\r\n\t\t$end = date('Y-m-d 23:59:59', strtotime($end));\r\n\r\n $this->view->title = $reportingOn;\r\n \r\n $order = 'endtime desc';\r\n if ($format == 'weekly') {\r\n $order = 'starttime asc';\r\n }\r\n\r\n $this->view->taskInfo = $this->projectService->getTimesheetReport($user, $project, $client, $timesheetid, $start, $end, $cats, $order);\r\n \r\n // get the hierachy for all the tasks in the task info. Make sure to record how 'deep' the hierarchy is too\r\n\t\t$hierarchies = array();\r\n\r\n\t\t$maxHierarchyLength = 0;\r\n\t\tforeach ($this->view->taskInfo as $taskinfo) {\r\n\t\t\tif (!isset($hierarchies[$taskinfo->taskid])) {\r\n\t\t\t\t$task = $this->projectService->getTask($taskinfo->taskid);\r\n\t\t\t\t$taskHierarchy = array();\r\n\t\t\t\tif ($task) {\r\n\t\t\t\t\t$taskHierarchy = $task->getHierarchy();\r\n\t\t\t\t\tif (count($taskHierarchy) > $maxHierarchyLength) {\r\n\t\t\t\t\t\t$maxHierarchyLength = count($taskHierarchy);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$hierarchies[$taskinfo->taskid] = $taskHierarchy;\r\n\t\t\t} \r\n\t\t}\r\n\t\r\n\t\t$this->view->hierarchies = $hierarchies;\r\n\t\t$this->view->maxHierarchyLength = $maxHierarchyLength;\r\n\r\n $this->view->startDate = $start;\r\n $this->view->endDate = $end;\r\n $this->view->params = $this->_getAllParams();\r\n $this->view->dayDivision = za()->getConfig('day_length', 8) / 4; // za()->getConfig('day_division', 2);\r\n $this->view->divisionTolerance = za()->getConfig('division_tolerance', 20);\r\n \r\n $outputformat = $this->_getParam('outputformat');\r\n if ($outputformat == 'csv') {\r\n \t$this->_response->setHeader(\"Content-type\", \"text/csv\");\r\n\t $this->_response->setHeader(\"Content-Disposition\", \"inline; filename=\\\"timesheet.csv\\\"\");\r\n\r\n\t echo $this->renderRawView('timesheet/csv-export.php');\r\n } else {\r\n\t\t\tif ($this->_getParam('_ajax')) {\r\n\t\t\t\t$this->renderRawView('timesheet/'.$format.'-report.php');\r\n\t\t\t} else {\r\n\t\t\t\t$this->renderView('timesheet/'.$format.'-report.php');\r\n\t\t\t}\r\n }\r\n }", "protected function schedule(Schedule $schedule)\n {\n\n /* Funciona */ \n $schedule->command('usuarios:cumples')->timezone('America/Lima')->at('08:00');\n\n $schedule->command('estado:cumples')->timezone('America/Lima')->at('08:00');\n \n $schedule->command('active:cumples')->timezone('America/Lima')->monthly(); \n $schedule->command('deleted:comcumple')->timezone('America/Lima')->monthly(); \n $schedule->command('deleted:tarjeta')->timezone('America/Lima')->monthly(); \n\n\n $schedule->command('estado:conferencias')->timezone('America/Lima')->hourly();\n\n \n }", "protected function schedule(Schedule $schedule)\n {\n \n //$schedule->command('add:winners')->everyMinute();\n \n //$schedule->command('add:winners')->cron('00 18 31 10 * *');\n \n /*$schedule->command('test:test')\n ->everyMinute()\n ->sendOutputTo(base_path() . '/public/output_files/test.txt');\n */\n \n //$schedule->command('add:winners')->cron('52 13 02 11 * *');\n \n $periods = Period::all();\n \n foreach($periods as $period) {\n \n $enddate_month = explode('-', $period->enddate)[1];\n $enddate_day = explode(' ', explode('-', $period->enddate)[2])[0];\n //echo(\"maand: \" . $enddate_month . \" en dag \" . $enddate_day . \"<br>\");\n $schedule->command('add:winners')->cron('40 22 ' . $enddate_day . ' ' . $enddate_month . ' * *');\n }\n \n \n }", "function backup_migrate_drush_schedules() {\n backup_migrate_include('schedules');\n $rows = array(array(dt('ID'), dt('Name')));\n foreach (backup_migrate_get_schedules() as $schedule) {\n $rows[] = array(\n $schedule->get_id(),\n $schedule->get_name(),\n );\n }\n drush_print_table($rows, TRUE, array(32, 32));\n}", "public function actionCalendar()\n {\n // Get current ID of logined user\n $userId = Yii::$app->user->getId() ?: '1000';\n $profile = (new UsersProfile())->getProfile();\n\n // Fill array keyes with [1, .., date(\"t\")].\n // date(\"t\") - count of days in current month\n $calendar = array_fill_keys(range(1, date(\"t\")), []);\n $model = new TaskQuery(Task::class);\n\n foreach ($model->getByCurrentMonth($userId)->all() as $task) {\n // Get current $task->date and create new DateTime object\n // $date->format(\"j\") -- Day of the month: 1, 2, .., 31\n // Fill array $calender with $task objects\n $date = \\DateTime::createFromFormat(\"Y-m-d H:i:s\", $task->deadline);\n $calendar[$date->format(\"j\")][] = $task;\n }\n\n return $this->render('calendar', \\compact('calendar', 'profile'));\n }", "function ScheduleDates()\n {\n $dateids=$this->CGI2Dates();\n\n $dates=array();\n foreach ($this->Dates() as $did => $date)\n {\n if (preg_grep('/^'.$date[ \"ID\" ].'$/',$dateids))\n {\n array_push($dates,$date);\n }\n }\n\n return $dates;\n }", "public function actionIndex($q = '') {\n \n $baseUrl = Yii::app()->baseUrl; \n $cs = Yii::app()->getClientScript();\n $cs->registerCssFile($baseUrl.'/js/fullcalendar/fullcalendar.css');\n $cs->registerScriptFile($baseUrl.'/js/fullcalendar/fullcalendar.min.js');\n \n $calendar = array();\n if ($q){\n \n $schedule = Schedule::model()->with(array('channel', 'show'))\n ->findAllByAttributes(array(),\n array(\"condition\"=>\"day_date > :currenttime AND show.original_title = :original_title AND (show.season IS NOT NULL OR show.episode IS NOT NULL)\",\n //\"order\" => \"channel.active, channel.name\",\n \"order\" => \"start\",\n 'params' => array(':currenttime'=>date(\"y-m-d\",strtotime('-2 weeks')),\n \":original_title\"=>$q)\n ));\n \n \n \n foreach ($schedule as $item){\n //if ($item->channel->slug != 'fox') continue;\n $calendar[$item->channel->slug.\"|\".$item->show->season]\n [date(\"YW\",strtotime($item->day_date))]\n [date(\"N\",strtotime($item->day_date))] = array('id'=>$item->id,'title'=>$item->show->title, 'showslug'=>$item->show->slug, 'channelslug'=>$item->channel->slug, \n 'season'=>$item->show->season, 'episode'=>$item->show->episode, 'date'=>date(\"Y-m-d\",strtotime($item->start)),\n 'original'=>true, \"description\"=> trim_text($item->show->description, 100) );\n }\n \n foreach ($calendar as $key => $item){\n $copy = $this->copyWeek($item,0);\n \n if (isset($item[date(\"YW\")])){\n $now = $item[date(\"YW\")];\n foreach ($copy as $k => $c){\n if (!isset($now[$k])) $now[$k] = $c;\n }\n $calendar[$key][date(\"YW\")] = $now;\n }else $calendar[$key][date(\"YW\")] = $copy;\n \n if ($set = $this->copyWeek($item,1)) $calendar[$key][date(\"YW\",strtotime('+1 week'))] = $set;\n if ($set = $this->copyWeek($item,2)) $calendar[$key][date(\"YW\",strtotime('+2 weeks'))] = $set;\n //break;\n }\n \n \n }\n\n if (!isset($_GET['dev']) && !YII_DEBUG) $calendar = null;\n /*\n $this->pageTitle = \"Koledar nanizank in nadaljevank\";\n $this->pageDesc = \"\";\n $this->keywords = '';*/\n \n $this->render('index', array('calendar'=>$calendar));\n }", "public function scheduler() {\n\n\t\t$user = \\Auth::User();\n\n\t\t$station_id = $user->station->id;\n//\t\t$talk_shows = \\App\\ConnectContent::where('content_type_id', ContentType::GetTalkContentTypeID())\n//\t\t\t->orderBy('start_date')\n//\t\t\t->where('station_id', $station_id)\n//\t\t\t->get();\n\n\t\treturn view('airshrconnect.scheduler')\n\t\t\t->with('WebSocketURL', \\Config::get('app.WebSocketURL'))\n\t\t\t->with('content_type_list', ContentType::$CONTENT_TYPES)\n\t\t\t->with('content_type_list_for_connect', ContentType::$CONTENT_TYPES_FOR_CONNECT)\n\t\t\t->with('content_type_id_for_talkshow', ContentType::GetTalkShowContentTypeID());\n//\t\t\t->with('talk_shows', $talk_shows);\n\n\t}", "public function index()\n {\n $is_current_month = !request()->get('next');\n $days_in_month = date('t', strtotime($is_current_month ? 'now' : '+1 month'));\n $month_number = date('n', strtotime($is_current_month ? 'now' : '+1 month'));\n $year_number = date('y', strtotime($is_current_month ? 'now' : '+1 month'));\n\n $shifts = [];\n\n foreach (range(1,$days_in_month) as $day_number) {\n $date = mktime(0, 0, 0, $month_number, $day_number, $year_number);\n\n $shifts[date('j.n.y', $date)] = [\n 'date_without_year' => date('j.n', $date),\n 'date' => date('j.n.y', $date),\n 'day_of_week' => str_replace(['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'], date('l', $date)),\n 'shift1' => [\n 'saturday' => date('w', $date) == 6,\n 'title' => NULL,\n 'users' => []\n ],\n 'shift2' => [\n 'saturday' => date('w', $date) == 6,\n 'title' => NULL,\n 'users' => []\n ],\n 'shift3' => [\n 'saturday' => date('w', $date) == 5 || date('w', $date) == 6,\n 'title' => NULL,\n 'users' => []\n ],\n ];\n }\n\n $registered = Shift::with('user')\n ->where('date_str', 'LIKE', \"%.$month_number.$year_number\")\n ->get();\n\n foreach ($registered as $register) {\n $shifts[$register['date_str']]['shift'.$register['shift_id']]['users'][] = [\n 'user_id' => $register['user_id'],\n 'status' => $register['status'],\n 'name' => array_get($register, 'user.name', 'משתמש נמחק'),\n ];\n }\n\n $is_admin = request()->get('admin') && Auth::user()->is_admin;\n\n return view('home')\n ->with('shifts', array_values($shifts))\n ->with('current_user_id', Auth::user()->id)\n ->with('is_current_month', $is_current_month)\n ->with('can_admin', Auth::user()->is_admin)\n ->with('users', $is_admin ? User::orderBy('name')->get() : [])\n ->with('is_admin', $is_admin);\n }", "public function getStationWithSchedules($id);", "public function getScheduleTime(){return $this->time_of_day;}", "public function getHourlySchedule()\n {\n return $this->hourly_schedule;\n }", "public function getHourlySchedule()\n {\n return $this->hourly_schedule;\n }", "public function driveSchedules()\n {\n return $this->hasMany(DriveSchedule::class);\n }", "public function run()\n {\n $time = new \\DateTime('now', new DateTimeZone('Asia/Manila'));\n\n App\\Models\\Schedule::create([\n 'team1' => 'USA',\n 'team1_score' => 0,\n 'team2' => 'Australia',\n 'team2_score' => 0,\n 'time_from' => $time->format('Y-m-d H:i:s'),\n 'time_until' => $time->format('Y-m-d H:i:s')\n ]);\n\n App\\Models\\Schedule::create([\n 'team1' => 'Brazil',\n 'team1_score' => 89,\n 'team2' => 'China',\n 'team2_score' => 76,\n 'time_from' => $time->modify('-2 hours')->format('Y-m-d H:i:s'),\n 'time_until' => $time->modify('-1 hour')->format('Y-m-d H:i:s')\n ]);\n\n App\\Models\\Schedule::create([\n 'team1' => 'Russia',\n 'team1_score' => 102,\n 'team2' => 'Japan',\n 'team2_score' => 101,\n 'time_from' => $time->modify('-4 hour')->format('Y-m-d H:i:s'),\n 'time_until' => $time->modify('-2 hours')->format('Y-m-d H:i:s')\n ]);\n\n App\\Models\\Schedule::create([\n 'team1' => 'USA',\n 'team1_score' => 0,\n 'team2' => 'Spain',\n 'team2_score' => 0,\n 'time_from' => $time->modify('+4 hours')->format('Y-m-d H:i:s'),\n 'time_until' => $time->modify('+7 Hours')->format('Y-m-d H:i:s')\n ]); \n }", "public function getEveryDayNewsletterSchedulesForDate($date) {\r\n\t\t\r\n\t\t$criteria = new Criteria();\r\n\t\t$criteria->add(NewsletterSchedulePeer::DELIVERYMODE,NewsletterSchedulePeer::EVERY_DAY_MODE);\r\n\t\t$criteria->add(NewsletterSchedulePeer::ACTIVE,1);\t\t\r\n\t\treturn NewsletterSchedulePeer::doSelect($criteria);\r\n\t\t\r\n\t}", "public function getOnceAWeekNewsletterSchedulesForDate($date) {\r\n\t\t\r\n\t\t//obtenemos el dia de la semana en el cual se debe realizar el envio\r\n\t\t$timestamp = strtotime($date);\r\n\t\t$day = date(\"D\",$timestamp);\r\n\t\t$criteria = new Criteria();\r\n\t\t$criteria->add(NewsletterSchedulePeer::DELIVERYDAY,$day);\r\n\t\t$criteria->add(NewsletterSchedulePeer::ACTIVE,1);\t\t\r\n\t\t$criteria->add(NewsletterSchedulePeer::DELIVERYMODE,NewsletterSchedulePeer::ONCE_A_WEEK_MODE);\r\n\t\treturn NewsletterSchedulePeer::doSelect($criteria);\r\n\t\t\r\n\t}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM timesheet';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "function DatesSchedulesTables($edit)\n {\n $tables=array();\n foreach ($this->ScheduleDates() as $date)\n {\n array_push($tables,$this->DateSchedulesTable($edit,$date));\n }\n\n return $tables;\n }", "public function index(Request $request)\n {\n $cur_user = Auth::user();\n $user_timezone = User::where('id', $cur_user->id)->get()->toArray();\n $coach_timezone = $user_timezone[0]['timezone'];\n\n $user_data = User::where('id', '=', Auth::id())->first();\n if (Auth::user()->is_gratuate == 'n') {\n $free_session = $user_data->is_free_session_booked;\n if ($free_session == 1) {\n return redirect()->route('clients.dashboard.coaching');\n }\n }\n $cur_user = Auth::user();\n $schedule = [];\n $client = Client::where('user_id', '=', $cur_user->id)->with('coach.user')->first();\n if ($request->start != '') {\n $current_month = Carbon::parse($request['start']);\n } else {\n $current_month = Carbon::now();\n }\n $client_current_month = $current_month->copy()->setTimezone($client->user->timezone);\n $client_current_month->month = $current_month->month;\n $client_current_month = $client_current_month->startOfMonth();\n $first_day_this_month = $client_current_month->format('Y-m-d H:i:s');\n $last_day_this_month = $client_current_month->copy()->endOfMonth()->format('Y-m-d H:i:s');\n $current_date=Carbon::now()->setTimezone($client->user->timezone);\n $getdiff=Setting::where('name','allow_booking_hour')->first();\n $setdiff=$getdiff->value;\n if($setdiff>=24)\n {\n $totaldiff=$current_date->addHours($setdiff)->format('Y-m-d h:i:s');\n }\n else\n {\n $totaldiff=$current_date->addHours($setdiff)->format('Y-m-d h:i:s');\n }\n\n if ($client != null) {\n $schedule = CoachSchedule::where(\"deleted\", \"0\")\n ->where(function ($q) {\n $q->where('status', 'available')\n ->orWhere(function ($sq) {\n $sq->where('status', 'booked')\n ->where('booked_for', 'f')\n ->orWhere('slot1', 0)\n ->orWhere('slot2', 0)\n ->orWhere('slot3', 0);\n\n });\n })\n ->where('start_datetime','>=',$totaldiff)\n // ->where('start_datetime', '>=', $first_day_this_month)\n ->where('end_datetime', '<=', $last_day_this_month)\n ->where('created_user_id', '=', $client->coach->user->id)\n ->orderBy('start_datetime', 'ASC')\n ->get(['id', 'start_datetime', 'end_datetime', 'status']);\n }\n if ($cur_user->user_type == 'client') {\n $client_user_timezone = $client->user->timezone;\n\n if ($client_user_timezone == '') {\n $client_user_timezone = 'UTC';\n }\n $coach_user_timezone = ($client->coach->user->timezone);\n if ($coach_user_timezone == '') {\n $coach_user_timezone = 'UTC';\n }\n }\n\n view()->share('coach_user_timezone', $coach_user_timezone);\n $coach_user_time = Carbon::createFromFormat('Y-m-d H:i:s', Carbon::now()->toDateTimeString(), $client_user_timezone)->setTimezone($coach_user_timezone);\n\n view()->share('coach_timezone', $coach_timezone);\n view()->share('coach_user_time', $coach_user_time->toDateTimeString());\n view()->share('coach_user_name', $client->coach->user->name);\n view()->share('client_user_timezone', $client_user_timezone);\n if ($request->ajax()) {\n return response()->json([\n 'success' => 'true', 'schedule' => $schedule,\n ]);\n }\n return view('bookfreeschedule.index', compact('schedule'));\n }", "public static function initiate_schedules() {\n\t\t/** Clearing scheduled hook */\n\t\tif ( wp_next_scheduled( 'xl_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_clear_scheduled_hook( 'xl_maybe_track_usage_scheduled' );\n\t\t}\n\n\t\tif ( ! wp_next_scheduled( 'xl_new_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_schedule_event( current_time( 'timestamp' ), 'weekly_xl', 'xl_new_maybe_track_usage_scheduled' );\n\t\t}\n\t}", "public function workschedules()\n {\n return $this->hasMany('App\\WorkSchedule', 'customer_id');\n }", "public function getServices() {\n $services = Service::active()->get()->toArray();\n $outputArray = array();\n if ($services) {\n foreach ($services as $key => $value) {\n $begin = new DateTime($value['start_date']);\n $end = new DateTime($value['end_date']);\n if ($value['service_type'] == 'daily') {\n\n $interval = DateInterval::createFromDateString('1 day');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"#605ca8\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n if ($value['service_type'] == 'weekly') {\n\n $schedule = Schedule::where('service_id', $value['id'])->get()->toArray();\n\n $weekNumber = array();\n for ($i = 0; $i < count($schedule); $i++) {\n $weekNumber[] = $schedule[$i]['week_number'];\n }\n\n $interval = DateInterval::createFromDateString('1 day');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n if (in_array($dt->format(\"w\"), $weekNumber)) {\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"#f012be\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n }\n\n if ($value['service_type'] == 'monthly') {\n $interval = DateInterval::createFromDateString('1 month');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"#00a65a\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n\n if ($value['service_type'] == 'yearly') {\n $interval = DateInterval::createFromDateString('1 year');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"orange\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n }\n }\n// echo \"<pre>\";\n// print_r($outputArray);\n// echo \"</pre>\";\n echo json_encode($outputArray);\n }", "protected function schedule(Schedule $schedule)\n {\n// $schedule->command('inspire')\n// ->hourly();\n// $schedule->call(function(){\n// $time=date('H');\n $date=date('Y-m-d');\n// $data=[];\n// if($time>0){\n// $reserves=Reserve::where('date',$date)->whereIn('progress',[1,3])->get();\n// foreach($reserves as $k=>$v){\n// $v->progress=2;\n// $v->save();\n// $number=Number::where('reserve_id',$v->id)->where('number_class',1)->first();\n// if($number){\n// $number->number_push=1;\n// $number->number_status=0;\n// $number->save();\n// }\n// }\n// DB::table('reserves')->where('date',$date)->whereIn('progress',[1,3])->where('halt',0)->update('progress',2);\n//// }\n// })->everyMinute();\n\n }", "public function getWeeklySchedule()\n {\n return $this->weekly_schedule;\n }", "public function getWeeklySchedule()\n {\n return $this->weekly_schedule;\n }", "public function timesheetAction()\r\n {\r\n $project = $this->projectService->getProject($this->_getParam('projectid'));\r\n $client = $this->clientService->getClient($this->_getParam('clientid'));\r\n \r\n if (!$project && !$client) {\r\n return;\r\n }\r\n \r\n if ($project) {\r\n $start = date('Y-m-d', strtotime($project->started) - 86400);\r\n $this->view->tasks = $this->projectService->getSummaryTimesheet(null, null, $project->id, null, null, $start, null);\r\n } else {\r\n $start = date('Y-m-d', strtotime($client->created));\r\n $this->view->tasks = $this->projectService->getSummaryTimesheet(null, null, null, $client->id, null, $start, null);\r\n }\r\n\r\n $this->renderRawView('timesheet/ajax-timesheet-summary.php');\r\n }", "function viewStudentSchedule($studentID){\r\n\t \tif($this->userCanViewSchedule('')){\r\n\r\n\t\t\t$course = array();\r\n\t\t\t$schedule = array();\r\n\t\t\t\r\n\t\t\t$query = \"select course_id from `X_PNSY_SCHEDULE` where student_id = '$studentID'\";\r\n\t\t\t$result = mysql_query($query);\r\n\t\t\t\r\n\t\t\tif(mysql_num_rows($result) == 0){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile ($row = mysql_fetch_assoc($result)){\r\n\t\t\t\t$courseID =\t$row['course_id'];\t\t\r\n\t\t\t\t\r\n // course information\t\r\n\t\t\t\t$query = \"select * from `X_PNSY_COURSE` where course_id = '$courseID'\";\r\n\t\t\t\t$courseInfo = mysql_fetch_assoc(mysql_query($query));\r\n\t\t\t\t\r\n // retrieve all the course days/times. note: there can be more than one.\r\n\t\t\t\t$query = \"select * from `X_PNSY_COURSE_DAYS` where course_id = '$courseID'\";\r\n $daysResult = mysql_query($query);\r\n $meetingInfo = array();\r\n while($dayRow = mysql_fetch_assoc($daysResult)){\r\n\t\t\t\t $meetingInfo[] = $dayRow;\r\n }\t\t\t\t\r\n\r\n // retrieve prof\r\n\t\t\t\t$facultyID = $courseInfo['FACULTY_ID'];\r\n if(!empty($facultyID)){\r\n \t\t\t\t$query = \"select * from `X_PNSY_FACULTY` where id = '$facultyID'\";\r\n \t\t\t\t$facultyInfo = mysql_fetch_assoc(mysql_query($query));\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// parse time of day. remember, there can be more than one day/time\r\n $courseDateInfo = '';\r\n for($i = 0; $i < count($meetingInfo); $i++){\r\n if(!empty($meetingInfo[$i]['DAYS'])){\r\n\t\t\t\t $startTime[$i] = explode(' ',$meetingInfo[$i]['START_TIME']);\r\n\t\t\t\t $startTime[$i] = explode(':',$startTime[$i][1]);\r\n\t\t\t\t $startTime[$i] = $startTime[$i][0].':'.$startTime[$i][1];\r\n\t\t\t\t $endTime[$i] = explode(' ',$meetingInfo[$i]['END_TIME']);\r\n\t\t\t\t $endTime[$i] = explode(':',$endTime[$i][1]);\r\n\t\t\t\t $endTime[$i] = $endTime[$i][0].':'.$endTime[$i][1];\r\n\r\n if($i > 0) $courseDateInfo .= '<br>';\r\n \r\n $courseDateInfo .= $meetingInfo[$i]['DAYS'].', '.$startTime[$i].'-'.$endTime[$i].', '.$meetingInfo[$i]['COURSE_BLDG'].' '.$meetingInfo[$i]['COURSE_ROOM'];\r\n }\t\t\t\t\r\n }\r\n\r\n\t\t\t\tunset($course);\t\r\n $course['id'] = 'n/a';\r\n $course['title'] = 'n/a';\r\n $course['info'] = 'n/a';\r\n $course['credits'] = 'n/a';\r\n $course['faculty'] = 'n/a';\r\n $course['email'] = 'n/a';\r\n $course['phone'] = 'n/a';\r\n\r\n\t\t\t\t$course['id'] = $courseID;\r\n\t\t\t\tif(!empty($courseInfo['TITLE'])) $course['title'] = $courseInfo['TITLE'];\r\n if(!empty($courseDateInfo)) $course['info'] = $courseDateInfo;\r\n\t\t\t\tif(!empty($courseInfo['CREDITS'])) $course['credits'] = $courseInfo['CREDITS'];\r\n if(!empty($facultyID)){\r\n\t\t\t\t $course['faculty'] = $facultyInfo['FIRST_NAME'].' '.$facultyInfo['LAST_NAME'];\r\n\t\t\t\t if(!empty($facultyInfo['WOOSTER_EMAIL'])) $course['email'] = $facultyInfo['WOOSTER_EMAIL'];\r\n if(!empty($facultyInfo['CAMPUS_PHONE'])) $course['phone'] = $facultyInfo['CAMPUS_PHONE'];\r\n }\r\n\t\t\t\t\r\n\t\t\t\t$schedule[] = $course;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $schedule;\r\n\t\t}\r\n\t }", "public function listJobschedule()\n {\n $batch_date = $this->getDate();\n\n $data = sprintf(\"GET\\n\\n\\n\\n\\n\\n%s\\n\\n\\n\\n\\n\\n/%s/jobschedules\\napi-version:%s\\ntimeout:20\",\n $batch_date,\n $this->batch_account,\n $this->api_version\n );\n\n $signature = $this->signatureString($data);\n\n $response = Curl::to(sprintf(\"%s/jobschedules?api-version=%s&timeout=20\", $this->batch_url, $this->api_version))\n ->withHeader(sprintf(\"Authorization: SharedKey %s:%s\", $this->batch_account, $signature))\n ->withHeader('Date: ' . $batch_date)\n ->returnResponseObject()\n ->get();\n\n if ($response->status == 200) {\n\n $contents = json_decode($response->content);\n $jobs = $contents->value;\n\n return $jobs;\n\n } else {\n return [];\n }\n }", "public function index(Request $req)\n\t{\n\t\t$dataArr = [];\n\t\t$start_date = $req->start_date;\n\t\t$end_date = $req->end_date;\n\t\t$status = $req->status;\n\n\t\tif($status != 'all' ) {\n\t\t $schedules = RecruiterSchedule::where('fair_id',$req->fair_id)\n\t\t ->where('company_id',$req->company_id)\n\t\t ->where('recruiter_id',$req->recruiter_id)\n\t\t ->where('status',$status)\n\t\t ->orderBy(\"created_at\",'DESC')\n\t\t ->get();\n\t\t}else{\n\t\t\t$schedules = RecruiterSchedule::where('fair_id',$req->fair_id)\n\t\t ->where('company_id',$req->company_id)\n\t\t ->where('recruiter_id',$req->recruiter_id)\n\t\t ->orderBy(\"created_at\",'DESC')\n\t\t ->get();\n\t\t}\n\n\n\t\tif (!empty($start_date) && !empty($end_date)) {\n\t\t\t$filtered = $schedules->filter(function ($value, $key) use ($start_date,$end_date) {\n\t\t\t\t$slotDate = date(\"d-m-Y\",strtotime($value->days));\n\t\t\t\t$start_date = date(\"d-m-Y\",strtotime($start_date));\n\t\t\t\t$end_date = date(\"d-m-Y\",strtotime($end_date));\n\t\t\t if ($slotDate >= $start_date && $slotDate <= $end_date) {\n\t\t\t return true;\n\t\t\t }\n\t\t\t});\n\t\t\t$schedules = $filtered->all();\n\t\t}\n\n\t\tif ($schedules) {\n\t\t\tforeach ($schedules as $key => $row) {\n\t\t\t\t$dataArr[] = [\n\t\t\t\t 'id' => $row->id,\n\t\t\t\t 'fair_id' => $row->fair_id,\n\t\t\t 'company_id' => $row->company_id,\n\t\t\t 'recruiter_id' => $row->recruiter_id,\n\t\t\t 'recruiter_name' => $row->RecruiterDetails->name,\n\t\t\t 'candidate_id' => $row->candidate_id,\n\t\t\t 'start_time' => date('h:i A', strtotime($row->start_time)),\n\t\t\t 'end_time' => date('h:i A', strtotime($row->end_time)),\n\t\t\t 'days' => Carbon::createFromFormat('d-m-Y',$row->days)->format('F j, Y'),\n\t\t\t 'days_arr' => $row->days_arr,\n\t\t\t 'slotStatus' => $row->status\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\n\t\treturn $dataArr;\n\t}", "function get_scheduled_days() {\n\t\treturn Clean::ids( $this->get_option( 'scheduled_day' ) );\n\t}", "protected function schedule(Schedule $schedule)\n { \n //Cambiar el estado de las pasantias a \"Cerrado\" cuando llegue la fecha de fin\n $schedule->call(function(){\n $pasantias = PropuestaPasantia::whereHas('estado', function($q){\n $q->where('nombre', 'Disponible');\n })->get();\n\n foreach($pasantias as $pasantia){\n $estado = Estado::where('nombre', 'Cerrado')->first();\n $today = date('d/m/Y', strtotime(Carbon::now()->toDateString()));\n if($pasantia->fecha_fin == $today){\n $pasantia->estado()->associate($estado);\n $pasantia->save();\n }\n }\n })->timezone('America/Argentina/Salta')->dailyAt('23:59');\n\n // Cambiar estado a 'No regular' de las presentaciones que no fueron regularizadas luego de 6 meses\n $schedule->call(new VerificarRegularidad)->timezone('America/Argentina/Salta')->dailyAt('00:00');\n }", "function getAll() {\r\n\t\t$cond = new Criteria();\r\n\t\t$alls = NewsletterSchedulePeer::doSelect($cond);\r\n\t\treturn $alls;\r\n }", "protected function schedule(Schedule $schedule)\n {\n $date = now();\n\n /**\n * Employees\n * -------------------------------------------------------------------------------------------------------------\n */\n $schedule->command(\\App\\Console\\Commands\\EmployeesHired::class, [\n $date->copy()->subDay()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->dailyAt('05:55'); // Daily for the previous day\n $schedule->command(\\App\\Console\\Commands\\EmployeesHired::class, [\n $date->copy()->subDay()->startOfWeek()->format('Y-m-d') . ',' . $date->copy()->subDay()->endOfWeek()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->weeklyOn(1, '05:56'); // Every monday for the previous week\n $schedule->command(\\App\\Console\\Commands\\EmployeesHired::class, [\n now()->subMonth()->startOfMonth()->format('Y-m-d') . ',' . now()->subMonth()->endOfMonth()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->monthlyOn(1, '05:57'); // Monthly for the previous month\n\n $schedule->command(\\App\\Console\\Commands\\EmployeesTerminated::class, [\n $date->copy()->subDay()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->dailyAt('05:55'); // Daily for the previous day\n $schedule->command(\\App\\Console\\Commands\\EmployeesTerminated::class, [\n $date->copy()->subDay()->startOfWeek()->format('Y-m-d') . ',' . $date->copy()->subDay()->endOfWeek()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->weeklyOn(1, '05:56'); // Every monday for the previous week\n $schedule->command(\\App\\Console\\Commands\\EmployeesTerminated::class, [\n now()->subMonth()->startOfMonth()->format('Y-m-d') . ',' . now()->subMonth()->endOfMonth()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->monthlyOn(1, '05:57'); // Monthly for the previous month\n\n /**\n * Ring Central Commands\n * ---------------------------------------------------------------------------------\n */\n $schedule->command(\\App\\Console\\Commands\\General\\SendGeneralDailyProductionReportCommand::class, ['--team' => 'ECC'])->dailyAt('05:25');\n $schedule->command(\\App\\Console\\Commands\\General\\SendGeneralDailyRawReportCommand::class, ['--team' => 'ECC'])->dailyAt('05:45');\n\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Publishing\\SendPublishingProductionReportCommand::class)->everyThirtyMinutes();\n\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Political\\SendPoliticalFlashReportCommand::class)->hourly();\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Political\\SendPoliticalProductionReportCommand::class)->hourly();\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Political\\SendPoliticalTextCampaignReportCommand::class)->dailyAt('07:20');\n\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\HotelPlanning\\SendHotelPlanningProductionReportCommand::class, ['--date' => now()->format('Y-m-d')])->hourly();\n\n $schedule->command(\\App\\Console\\Commands\\Inbound\\SendDailySummaryCommand::class)->dailyAt('06:20');\n $schedule->command(\\App\\Console\\Commands\\Inbound\\SendWTDSummaryCommand::class)->dailyAt('06:30');\n // check for dispositions\n $schedule->command(\\App\\Console\\Commands\\CheckForDispositionsPendingIdentification::class)->everyThreeHours();\n\n /**\n * Clean up commands\n * ----------------------------------------------------------------------\n */\n $schedule->command(\\Dainsys\\Commands\\ClearLogs\\ClearLogsCommand::class, [\n '--clear',\n '--keep=3',\n ])->dailyAt('02:00');\n\n $schedule->command(\\App\\Console\\Commands\\ClearTempraryFiles::class, [\n // 'remove_files_older_than_days' => 5\n 5,\n ])->dailyAt('20:45');\n\n $schedule->command(\\Spatie\\Backup\\Commands\\BackupCommand::class)->dailyAt('21:15');\n $schedule->command(\\Spatie\\Backup\\Commands\\CleanupCommand::class)->dailyAt('22:15');\n\n $schedule->command(\\App\\Console\\Commands\\UpdateBillableHoursAndRevenue::class, [now()->subDays(1)->format('Y-m-d') . ',' . now()->format('Y-m-d')])->dailyAt('01:15');\n $schedule->command(\\Illuminate\\Database\\Console\\PruneCommand::class, [\n '--model' => [\n \\App\\Models\\Performance::class,\n \\App\\Models\\UserLogin::class,\n \\App\\Models\\Notification::class,\n ],\n ])->dailyAt('02:15');\n\n $schedule->command(\\Laravel\\Telescope\\Console\\PruneCommand::class, ['--hours' => 72])->dailyAt('06:40');\n }", "public function getSchedule()\n\t\t{\n\t\t\tif ($this->schedule === NULL)\n\t\t\t{\n\t\t\t\t$this->schedule = new ECash_Transactions_Schedule($this);\n\t\t\t}\n\n\t\t\treturn $this->schedule;\n\t\t}", "public function actionIndex()\n {\n $searchModel = new ScheduleSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ScheduleSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "function eo_schedule_start($format='d-m-Y',$id=''){\n\techo eo_get_schedule_start($format,$id);\n}", "function get_list_schedules() {\n $this->db->select('hadir.*,\n t_profil.uprof_full_name as tentor,\n m_profil.uprof_full_name as mahasiswa\n ');\n $this->db->from('fis_dservice_consult_attendances hadir');\n $this->db->join('fis_dservice_consult_classes t_kelas','t_kelas.scclass_id = hadir.scattd_scclass_fk');\n $this->db->join('fis_duser_accounts t_akun','t_akun.uacc_id = t_kelas.scclass_mentor_fk'); \n $this->db->join('fis_duser_profiles t_profil','t_profil.uprof_uacc_fk = t_akun.uacc_id');\n\n $this->db->join('fis_dservice_consult_classes m_kelas','m_kelas.scclass_id = hadir.scattd_scclass_fk'); \n $this->db->join('fis_dservice_consult_contracts m_kontrak','m_kontrak.sccontr_id = m_kelas.scclass_sccontr_fk');\n $this->db->join('fis_dservice_consultations m_konsul','m_konsul.scons_id = m_kontrak.sccontr_sconcs_fk'); \n $this->db->join('fis_duser_accounts m_akun','m_akun.uacc_id = m_konsul.scons_uacc_fk');\n $this->db->join('fis_duser_profiles m_profil','m_profil.uprof_uacc_fk = m_akun.uacc_id');\n $this->db->order_by('hadir.scattd_date', 'asc');\n $this->db->order_by('hadir.scattd_time_start', 'asc');\n\n \n $query = $this->db->get()->result();\n return $query;\n }", "public static function getSchedDay($date, $user) {\n\n // Slot defaults\n $schedDay = new SchedDay($date);\n /*\n $sql = SchedDao::SQL_SELECT_SCHED .\n \" WHERE user_id=\" . $user->id . \" AND date=\" . quote($date) .\n \" ORDER BY time_start, client_id\";\n $res = query($sql); \n $scheds = array();\n while ($row = mysql_fetch_array($res, MYSQL_ASSOC)) {\n $sched = SchedDao::buildSched($row);\n $sched->client = SchedDao::getClient($sched->clientId);\n $scheds[] = $sched;\n }\n */\n logit_r('here getschedday');\n $scheds = Scheduling::getAppts($date, $user->id);\n $schedUser = new SchedUser($user->id, $user->uid, $user->name);\n $schedUser->scheds = $scheds;\n $schedDay->users[] = $schedUser;\n return $schedDay;\n }", "public function getIndex()\n\t{\n\t\tif ( Auth::check() )\n\t\t{\n\t\t\tif (Auth::user()->role == 'admin')\n\t\t\t\treturn Redirect::to('admin');\n\n\t\t\tif (Auth::user()->role == 'ta')\n\t\t\t\treturn Redirect::to('ta');\n\t\t}\n\n $week = array(\n \"Sunday\" => array(),\n \"Monday\" => array(),\n \"Tuesday\" => array(),\n \"Wednesday\" => array(),\n \"Thursday\" => array(),\n \"Friday\" => array(),\n \"Saturday\" => array()\n );\n\n $days = array(\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\"\n );\n\n $start = Settings::get(\"availability_start_hour\")->value;\n $start = Time::ToNumber($start);\n $time['start'] = $start;\n\n $end = Settings::get(\"availability_end_hour\")->value;\n $end = Time::ToNumber($end);\n $time['end'] = $end;\n\n $week_start = time() - (date('w') * 24 * 60 * 60);\n $week_start = date('Y-m-d', $week_start);\n $week_end = strtotime($week_start) + (6 * 24 * 60 * 60);\n $week_end = date('Y-m-d', $week_end);\n\n $shifts = Shift::between($week_start,$week_end);\n\n $assigned = array();\n foreach ($shifts as $shift) {\n for ($i=$shift->start; $i < $shift->end; $i+=50){\n $ta = $shift->TA();\n if (isset($ta))\n {\n $day = date('l', strtotime($shift->date));\n $assigned[$day][$i][] = $ta->name;\n }\n }\n }\n\n $courses = Course::all();\n\n\t\treturn View::make('main')\n ->with('courses',$courses)\n ->with('days', $days)\n ->with('week', $week)\n ->with('assigned',$assigned)\n ->with('time', $time);\n\t}" ]
[ "0.7257073", "0.7110655", "0.7099814", "0.6993164", "0.6679632", "0.6627502", "0.6613863", "0.6559386", "0.65200734", "0.63781595", "0.6370736", "0.6368895", "0.6330975", "0.63191515", "0.6252868", "0.6239762", "0.6195127", "0.6193422", "0.6184624", "0.61693406", "0.6165503", "0.6150882", "0.61493546", "0.61407775", "0.6093213", "0.608368", "0.6082231", "0.6075928", "0.6073083", "0.6072698", "0.6041501", "0.6030998", "0.6026086", "0.601985", "0.6017182", "0.60158557", "0.6008941", "0.6003817", "0.600157", "0.5993187", "0.59741074", "0.59713924", "0.5971128", "0.59650064", "0.59650064", "0.5959498", "0.59520227", "0.59497887", "0.5949275", "0.5931846", "0.59271806", "0.5919253", "0.59047633", "0.5898825", "0.5881974", "0.58729863", "0.5856951", "0.58524615", "0.5849566", "0.5848956", "0.5843971", "0.584006", "0.5837172", "0.58296525", "0.5816601", "0.58163404", "0.58121234", "0.58100367", "0.5807404", "0.57982093", "0.5777653", "0.5777653", "0.57709086", "0.5762734", "0.57476455", "0.5734302", "0.5732306", "0.5725133", "0.5714064", "0.570342", "0.5702325", "0.56934166", "0.5692212", "0.5691565", "0.5691565", "0.5690759", "0.5687872", "0.5684596", "0.5682035", "0.56639946", "0.56633943", "0.56546915", "0.5649699", "0.56454134", "0.5642565", "0.5642565", "0.5642411", "0.564049", "0.563489", "0.5632638" ]
0.6317431
14
Get schedules & timesheets of current date
public function add(Request $req, $account) { $currentDate = (new Datetime())->format('Y-m-d'); $schedule = Schedule::whereDate('start_date','=',$currentDate) ->where('member_id', Auth::user()->id) ->get(); //Add timesheet $timesheet = new Timesheet(); $timesheet->start_time = date('Y-m-d H:i:s', strtotime($req->start_time)); $timesheet->end_time = date("Y-m-d H:i:s", strtotime($req->start_time) + $req->seconds); $timesheet->member_id = Auth::user()->id; $timesheet->activity = 'in'; $timesheet->status = 'approved'; $schedule_hours = 0; if(count($schedule)){ $timesheet->schedule_id = $schedule[0]->id; //Update attendance on schedule-to investigate follow $schedule_hours $schedule_date1 = new Datetime($schedule[0]->start_date.' '.$schedule[0]->start_time.':00:00'); $schedule_date2 = new Datetime($schedule[0]->end_date.' '.$schedule[0]->end_time.':00:00'); $schedule_diff = $schedule_date1->diff($schedule_date2); $schedule_hours = $schedule_hours + (($schedule_diff->h * 60) + $schedule_diff->i); } $timesheet->save(); $timesheets = Timesheet::whereDate('start_time','=',$currentDate) ->where('member_id', Auth::user()->id) ->get(); //Get total time worked $hours = 0; foreach ($timesheets as $timesheet) { $date1 = new Datetime($timesheet->start_time); $date2 = new Datetime($timesheet->end_time); $diff = $date2->diff($date1); $hours = $hours + (($diff->h * 60) + $diff->i); } if(count($schedule)){ $schedule_updated = Schedule::find($schedule[0]->id); //More than 30 min still to finish if($schedule_hours-$hours > 30 && $schedule_hours != 0){ $schedule_updated->attendance = 'working'; }elseif ($schedule_hours-$hours <= 30 || $schedule_hours-$hours <= 0) { $schedule_updated->attendance = 'attended'; }//Less than 5 min to finish //late $first_timesheet = Timesheet::whereDate('start_time','=',$currentDate) ->where('member_id', Auth::user()->id) ->first(); $date1 = new Datetime($schedule_updated->start_date.' '.$schedule_updated->start_time.':00:00'); $date2 = new Datetime($first_timesheet->start_time); $diff = $date2->diff($date1); $late = (($diff->h * 60) + $diff->i); // dd($late); if($late > 10){ $schedule_updated->attendance = 'late'; } // $schedule_updated->save(); } //Get total breaks $breaks = 0; $first_timesheet = Timesheet::whereDate('start_time','=',$currentDate)->first(); $last_timesheet = Timesheet::whereDate('start_time','=',$currentDate)->latest()->first(); if($first_timesheet){ $date1 = new Datetime($first_timesheet->start_time); $date2 = new Datetime($last_timesheet->end_time); $diff = $date2->diff($date1); $breaks = (($diff->h * 60) + $diff->i) - $hours; } $worked = $this->hoursandmins($hours); $breaks = $this->hoursandmins($breaks); // First Punch In in current day $first_punch_in = Timesheet::whereDate('start_time','=',$currentDate)->first(); // return view('attendance/index', ['timesheets'=>$timesheets, 'schedule'=>$schedule, 'first_punch_in'=>$first_punch_in, 'worked'=>$worked, 'breaks'=>$breaks, 'first_timesheet'=>$first_timesheet, 'last_timesheet'=>$last_timesheet]); $activities = view('attendance/ajax/activities', ['timesheets'=>$timesheets])->render(); $statistics = view('attendance/ajax/statistics', ['schedule'=>$schedule, 'worked'=>$worked])->render(); return response()->json(['activities'=>$activities, 'statistics'=>$statistics]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStationsWithSchedules();", "public function getSchedule() {\n// from schedule\n// ORDER BY gameDate\";\n $sql = \"Select id, opponent, location, stadiumName, homeoraway, byuScore, oppScore,\n gameDate, closeDate, showUntilDate, sysdate() as now\n from schedule\n ORDER BY gameDate\";\n\n try {\n return $this->getFullList($sql);\n } catch (PDOException $e) {\n echo '{\"error\":{\"text\":\"' . $e->getMessage() . '\"\"}}';\n }\n }", "public function schedules()\n {\n $inVacation = config('schedules')['vacation'];\n $weekdays = config('schedules')['tabData']['days'];\n\n if ($inVacation) {\n $schedules = [\n 'sun' => null,\n 'mon' => null,\n 'tue' => null,\n 'wed' => null,\n 'thu' => null,\n 'fri' => null,\n 'sat' => null\n ];\n\n $scheduleMessage = config('schedules')['vacationMessage'] . '<br>...';\n } else {\n $schedules = $this->schedules->getByDay();\n $scheduleMessage = 'Sem horários<br>...';\n }\n\n return [\n 'weekDays' => $weekdays,\n 'currentDay' => \\strtolower(\\date('D')),\n 'schedules' => $schedules,\n 'scheduleEmptyMessage' => $scheduleMessage\n ];\n }", "public function todaySchedules(): HasMany\n {\n return $this->schedules()->whereDate('created_at', today());\n }", "public function listSchedules()\n {\n $data = ['dates' => []];\n $scheduleRepository = $this->getRepository('schedule');\n $schedules = $scheduleRepository->loadSchedulesGrouped('date');\n foreach ($schedules as $key => $schedule) {\n $data['dates'][] = $schedule['date'];\n }\n\n return $this->render('showschedules', $data);\n }", "public function schedulingsDay(Request $request)\n {\n $date = $request->input('date_scheduling');\n $schedulings = Scheduling::where('date_scheduling', $date)->get();\n foreach ($schedulings as $value) {\n $value->room->local;\n }\n\n return SchedulingResource::collection($schedulings);\n }", "public function schedule_by_date(Request $request) {\n //\n $currentDate = $request->segment(2);\n $day = \\Helpers\\DateHelper::getDay($currentDate);\n $weekDays = \\Helpers\\DateHelper::getWeekDays($currentDate, $day); \n $workouts = \\App\\Schedule::getScheduledWorkouts($weekDays);\n \n return view('user/schedule', ['number_of_day' => $day, 'current_date' => $currentDate, 'weekDays' => $weekDays])\n ->with('target_areas', json_decode($this->target_areas, true))\n ->with('movements', json_decode($this->movements, true))\n ->with('workouts', $workouts); \n }", "public function getSchedules()\n {\n return $this->hasMany(Schedule::className(), ['lesson_plan_id' => 'lesson_plan_id']);\n }", "function GetAllSchedules() {\n\tglobal $server;\n\tglobal $user;\n\t$url = \"http://\".$server.\"/api/\".$user.\"/schedules\";\n\t$array = LaunchCurl($url);\n\treturn $array;\n}", "public function fetchSchedules()\n {\n // Prepare a select query.\n $statement = $this->oConnection->prepare(\"\n SELECT\n ts.id, tc.courseCode AS title, ts.coursePrice, ts.fromDate AS start, ts.toDate AS end,\n ts.numSlots, ts.remainingSlots, ts.instructorId, ts.recurrence, ts.numRepetitions,\n tv.id AS venueId, tv.venue,\n CONCAT(tu.firstName, ' ', tu.lastName) AS instructor, tc.id AS courseId, ts.status,\n CASE\n WHEN tv.venue = 'Manila' THEN '#4fa242'\n WHEN tv.venue = 'Makati' THEN '#b169ec'\n END AS color\n FROM tbl_schedules ts\n INNER JOIN tbl_courses tc\n ON ts.courseId = tc.id\n INNER JOIN tbl_venue tv\n ON ts.venueId = tv.id\n INNER JOIN tbl_users tu\n ON ts.instructorId = tu.userId\n \");\n\n // Execute the above statement.\n $statement->execute();\n\n // Return the number of rows returned by the executed query.\n return $statement->fetchAll();\n }", "static function fetchJobSchedules() {\n global $wpdb;\n $resultset = $wpdb->get_results(\n \" SELECT job_id, classname, repeat_time_minutes, repeat_daily_at, active_yn, last_run_date \n FROM job_scheduler\n ORDER BY job_id\");\n\n if($wpdb->last_error) {\n throw new DatabaseException($wpdb->last_error);\n }\n\n $schedule = array();\n foreach( $resultset as $record ) {\n if( false === empty( $record->repeat_time_minutes ) ) {\n $schedule[] = new ScheduledJobRepeat(\n $record->job_id, \n $record->classname, \n $record->repeat_time_minutes, \n $record->active_yn == 'Y',\n $record->last_run_date,\n self::fetchJobScheduleParameters( $record->job_id ));\n }\n else if( false === empty( $record->repeat_daily_at ) ) {\n $schedule[] = new ScheduledJobDaily(\n $record->job_id, \n $record->classname, \n $record->repeat_daily_at,\n $record->active_yn == 'Y',\n $record->last_run_date,\n self::fetchJobScheduleParameters( $record->job_id ));\n }\n }\n return $schedule;\n }", "public function index()\n {\n return Schedule::latest()->get();\n }", "public function getDateSchedule()\n {\n $date = $this->getCustomParam('date');\n $schedulesRepository = $this->getRepository('schedule');\n $moviesRepository = $this->getRepository('movie');\n $roomsRepository = $this->getRepository('room');\n\n $currentSchedules = $schedulesRepository->getSchedulesPerDay($date);\n $currentSchedules = $this->setTimeFormatDisplay($currentSchedules, 'H:i');\n\n $data = array(\n 'schedules' => $currentSchedules,\n );\n\n return $this->application->json($data);\n }", "public function index()\n {\n $schedulings = Scheduling::all();\n foreach ($schedulings as $value) {\n $value->room->local;\n }\n\n return SchedulingResource::collection($schedulings);\n }", "public function index() {\n $currentDate = (new Datetime())->format('Y-m-d');\n \t$timesheets = Timesheet::whereDate('start_time','=',$currentDate)\n ->where('member_id', Auth::user()->id)\n ->get();\n \t$schedule = Schedule::whereDate('start_date','=',$currentDate)\n ->where('member_id', Auth::user()->id)\n ->get();\n \t//Get total time worked\n \t$hours = 0;\n \tforeach ($timesheets as $timesheet) {\n\t \t$date1 = new Datetime($timesheet->start_time);\n\t\t\t$date2 = new Datetime($timesheet->end_time);\n\t\t\t$diff = $date2->diff($date1);\n\n $hours = $hours + (($diff->h * 60) + $diff->i);\n \t}\n //Get total breaks\n $breaks = 0;\n $first_timesheet = Timesheet::whereDate('start_time','=',$currentDate)\n ->where('member_id', Auth::user()->id)\n ->first();\n $last_timesheet = Timesheet::whereDate('start_time','=',$currentDate)\n ->where('member_id', Auth::user()->id)\n ->latest()->first();\n if($first_timesheet){\n $date1 = new Datetime($first_timesheet->start_time);\n $date2 = new Datetime($last_timesheet->end_time);\n $diff = $date2->diff($date1);\n $breaks = (($diff->h * 60) + $diff->i) - $hours;\n }\n\n $worked = $this->hoursandmins($hours);\n $breaks = $this->hoursandmins($breaks);\n // First Punch In in current day\n $first_punch_in = Timesheet::whereDate('start_time','=',$currentDate)\n ->where('member_id', Auth::user()->id)\n ->first();\n return view('attendance/index', ['timesheets'=>$timesheets, 'schedule'=>$schedule, 'first_punch_in'=>$first_punch_in, 'worked'=>$worked, 'breaks'=>$breaks, 'first_timesheet'=>$first_timesheet, 'last_timesheet'=>$last_timesheet]);\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}", "public function listAction()\r\n {\r\n $pid = $this->_getParam('projectid');\r\n $where = array();\r\n if ($pid) {\r\n $where['projectid='] = $pid;\r\n }\r\n $cid = $this->_getParam('clientid');\r\n if ($cid) {\r\n $where['clientid='] = $cid;\r\n }\r\n \r\n $this->view->timesheets = $this->projectService->getTimesheets($where);\r\n \r\n $this->renderView('timesheet/list.php');\r\n }", "public function getScheduleList($filter=null) {\n\t\t$return = array();\n\t\t$users = User::where('organisation_id', Auth::user()->organisation_id)\n\t\t\t->orderBy('name', 'asc')\n\t\t\t->get();\n\t\tforeach ($users as $user) {\n\t\t\t$temp_array = array();\n\t\t\t$temp_array['user'] = array(\n\t\t\t\t'id' => 'u'.$user->id,\n\t\t\t\t'name' => $user->name,\n\t\t\t\t'job_title' => $user->job_title,\n\t\t\t\t'avatar' => $user->avatar,\n\t\t\t);\n\t\t\t$temp_array['schedule'] = array();\n\t\t\t$schedules = DB::table('schedules')\n\t\t\t\t->join('tasks', 'schedules.task_id', '=', 'tasks.id')\n\t\t\t\t->join('projects', 'schedules.project_id', '=', 'projects.id')\n\t\t\t\t->select('schedules.*', 'tasks.name', 'projects.color')\n\t\t\t\t->where([\n\t\t\t\t\t['user_id', $user->id],\n\t\t\t\t\t['start_date', '>=', '2016-04-01'],\n\t\t\t\t\t['start_date', '<=', '2016-04-30'],\n\t\t\t\t])\n\t\t\t\t->orderBy('start_date', 'asc')\n\t\t\t\t->get();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\tforeach($schedules as $schedule){\n\t\t\t\tif(!isset($temp_array['schedule'][$schedule->start_date])){\n\t\t\t\t\t$temp_array['schedule'][$schedule->start_date] = array();\n\t\t\t\t}\n\t\t\t\t$temp_array['schedule'][$schedule->start_date][$schedule->id] = array(\n\t\t\t\t\t'id' => $schedule->id,\n\t\t\t\t\t'project_id' => $schedule->project_id,\n\t\t\t\t\t'color' => $schedule->color,\n\t\t\t\t\t'task_id' => $schedule->task_id,\n\t\t\t\t\t'task_name' => $schedule->name,\n\t\t\t\t\t'user_id' => $schedule->user_id,\n\t\t\t\t\t'start_date' => $schedule->start_date,\n\t\t\t\t\t'end_date' => $schedule->end_date,\n\t\t\t\t\t'num_working_days' => $schedule->num_working_days,\n\t\t\t\t\t'num_non_working_days' => $schedule->num_non_working_days,\n\t\t\t\t\t'daily_hours' => $schedule->daily_hours,\n\t\t\t\t\t'total_hours' => $schedule->total_hours,\n\t\t\t\t);\n\t\t\t}\n\t\t\t$return['u'.$user->id] = $temp_array;\n\t\t}\n\t\treturn $return;\n\t}", "public function getCalendars($params){\n /**\n * @var integer $month 0 last month, 1 current month, 2 next month\n */\n $month = isset($params['month']) ? $params['month'] : 1;\n switch ($month){\n case 0:$date = date(\"Y-m-1\",strtotime(\"-1 month\"));break;\n case 1:$date = date(\"Y-m-1\",time());break;\n case 2:$date = date(\"Y-m-1\",strtotime(\"+1 month\"));break;\n default:$date = date(\"Y-m-1\",time());break;\n }\n $month = intval(date(\"m\",strtotime($date)));\n $week = date(\"w\",strtotime($date));\n $start = strtotime($date) - $week * 24 * 3600;\n $end = $start + 41 * 24 * 3600;\n\n $cser = $this->searchByTime($start,$end); /// 排班表内容\n $data = [];\n for ($i = 0; $i < 42; $i++){\n $i_time = $start + $i * 24 * 3600;\n $i_month = intval(date(\"m\",$i_time));\n $data[$i]['day'] = intval(date(\"d\",$i_time));\n $data[$i]['date'] = date(\"Y-m-d\",$i_time);\n $data[$i]['off'] = $i_month != $month ? true : false;\n $data[$i]['on'] = date(\"Y-m-d\",time()) == $data[$i]['date'] ? true : false;\n $flag = false;\n foreach ($cser as $k => $cs){\n if($cs['time'] == $i_time){\n $data[$i]['name'] = $cs['scheduler']['name'];\n $data[$i]['id'] = $cs['s_id'];\n $flag = true;\n unset($cser[$k]);\n break;\n }\n if($cs['time'] < $i_time){\n break;\n }\n }\n if(!$flag){\n $data[$i]['name'] = '无';\n $data[$i]['id'] = null;\n }\n }\n return $data;\n }", "public function schedules()\n {\n return $this->hasMany('App\\Schedule');\n }", "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n // Da ka Event\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/PunchEvent';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('9:13');\n // Check sprint progress.\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/amChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('10:00');\n // Verify completed tasks\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/doneIssueChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('17:30');\n // volunteer for unassigned task.\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/todoChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n })->weekdays()\n ->everyFiveMinutes()\n ->timezone('Asia/Shanghai')\n ->between('9:50', '22:00');\n }", "public function getSchedari()\n {\n return Schedario::all();\n }", "function create_schedule(){\n\t\tfor ($i=0 ; $i< 6; $i++){\n\t\t\tfor ($j = $this->times[$i] ; $j < $this->times[$i+1] ; $j++){\n\t \t\t\t$this->bedroom[$j] = $this->temps[$this->bedroom_setting[$i]];\n\t\t\t\t$this->bathroom[$j] = $this->temps[$this->bathroom_setting[$i]];\n\t\t\t\t$this->kitchen[$j] = $this->temps[$this->kitchen_setting[$i]];\n\t\t\t\t$this->livingroom[$j] = $this->temps[$this->livingroom_setting[$i]];\n\t\t\t}\n\t\t}\n\t\t$result = [$this->bedroom,$this->bathroom,$this->kitchen, $this->livingroom];\n\t\treturn $result;\n\t}", "public function schedules()\n {\n return $this->hasMany('App\\SchedulesWorked', 'customer_id');\n }", "function list_schedules_screen( $vars ) {\r\n $vars['schedules'] = $this->has_schedules();\r\n $vars['assignments'] = BPSP_Assignments::has_assignments();\r\n \r\n if( empty( $vars['schedules'] ) && empty( $vars['assignments'] ) )\r\n $vars['message'] = __( 'No schedules exist.', 'bpsp' );\r\n \r\n $vars['name'] = 'list_schedules';\r\n $vars['trail'] = array(\r\n __( 'Available Schedules', 'bpsp' ) => ''\r\n );\r\n return $vars;\r\n }", "public function getScheduled()\n {\n $jobs = array();\n \n $scheduled = $this\n ->_em\n ->getRepository($this->_entityClass)\n ->createQueryBuilder('s')\n ->andWhere('s.schedule is not NULL')\n ->andWhere('s.active = :active')\n ->setParameters(array('active' => 0))\n ->getQuery()\n ->getResult(); \n \n foreach ($scheduled as $record) {\n $job = new $this->_jobClass(call_user_func($this->_adapterClass . '::factory', $this->_options, $record, $this->_em, $this->_logger));\n array_push($jobs, $job);\n }\n return $jobs;\n \n }", "public function index() {\n //\n $currentDate = \\Helpers\\DateHelper::getLocalUserDate(date('Y-m-d H:i:s')); \n $day = \\Helpers\\DateHelper::getDay($currentDate);\n $weekDays = \\Helpers\\DateHelper::getWeekDays($currentDate, $day); \n $workouts = \\App\\Schedule::getScheduledWorkouts($weekDays);\n \n return view('user/schedule', ['number_of_day' => $day, 'current_date' => $currentDate, 'weekDays' => $weekDays])\n ->with('target_areas', json_decode($this->target_areas, true))\n ->with('movements', json_decode($this->movements, true))\n ->with('workouts', $workouts);\n }", "function ReadDateSchedules($date)\n {\n $where=$this->UnitEventWhere(array(\"Date\" => $date[ \"ID\" ]));\n\n $rschedules=array();\n foreach ($this->Sql_Select_Hashes($where) as $schedule)\n {\n $schedule=$this->PostProcess($schedule);\n \n $timeid=$schedule[ \"Time\" ];\n $roomid=$schedule[ \"Room\" ];\n \n if (empty($rschedules[ $timeid ])) $rschedules[ $timeid ]=array();\n $rschedules[ $timeid ][ $roomid ]=$schedule;\n\n if (!empty($schedule[ \"Submission\" ]))\n {\n $submissionid=$schedule[ \"Submission\" ];\n }\n }\n \n \n return $rschedules;\n }", "public function get_schedules( $experiment_id ) {\n\t\treturn $this->request( array(\n\t\t\t'function' => 'experiments/' . abs( intval( $experiment_id ) ) . '/schedules',\n\t\t\t'method' => 'GET',\n\t\t) );\n\t}", "function get_cuentadigital_schedule(){\n $next = wp_next_scheduled('cuentadigital_cron_hook');\n $output = '<p>Current Time: ' . current_time('mysql') . '</p>';\n $output .= '<p>Next Scheduled Run: ' . date('Y-m-d H:i:s', $next) . '</p>';\n return $output;\n }", "public function Schedules()\n\t{\n\t\treturn $this->hasMany('App\\Models\\Schedule');\n\t}", "public function schedule() {\n $result = $this->toArray();\n $rehearsal_id = $this->id;\n $songs = $this->songs()->orderBy('pivot_start', 'ASC')->with(['players' => function ($p) use ($rehearsal_id) {\n $p->with(['availabilities' => function ($a) use ($rehearsal_id) {\n $a->where('rehearsal_id', $rehearsal_id);\n }]);\n }]);\n $result['songs'] = $songs->get()->toArray();\n return $result;\n }", "public function getScheduleList($params, $context) {\n\t\treturn \\OMV\\Rpc\\Rpc::call(\"cron\", \"getList\", $params, $context);\n\t}", "public function schedules(): HasMany\n {\n return $this->hasMany(Schedule::class);\n }", "public function getSchedules() {\n $result = DB::select(\"SELECT * FROM schedular,unnest(string_to_array(user_id, ',')) AS s_user_id WHERE s_user_id = ANY ( string_to_array('\".session('user-id').\"', ',') ) AND is_active = true order by created_date desc\" );\n if (count($result) > 0) {\n return $result;\n }\n return array();\n }", "public function getBusySchedules($date,$activity_type,$engineer_id)\n {\n $this->db->where('start_date',$date);\n if($activity_type!='')\n $this->db->where('activity_type', $activity_type); \n if($engineer_id!='')\n $this->db->where('engineer_id', $engineer_id); \n\n $query = $this->db->get('job');\n\n $busy_slots = array();\n\n foreach ($query->result() as $key => $book_detail)\n {\n $busy_slots[] = array(\n \"begin\"=>new DateTime($book_detail->start_time),\n \"end\"=>new DateTime($book_detail->end_time),\n \"engineer_id\"=>$book_detail->engineer_id,\n \"customer_id\"=>$book_detail->customer_id,\n \"req_id\"=>$book_detail->id,\n \"status\"=>$book_detail->status,\n );\n }\n return $busy_slots;\n }", "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 }", "public function listSchedules() {\n\n\t\t$schduleList = array ();\n\n\t\t$sql = \"SELECT * FROM Schedule\";\n\t\t$result = mysqli_query ( $this->db, $sql );\n\n\t\t// loops through all the queries\n\t\t$i = 0;\n\t\twhile ( $row = mysqli_fetch_assoc ( $result ) ) {\n\n\t\t\t$schduleList [$i] = $row ['year'] . \" \" . $row ['program'];\n\t\t\t// echo $schduleList [$i] . \"</br>\";\n\t\t\techo \"<option value='\" . $row ['id'] . \"'>\" . $schduleList [$i] . \"</option>\";\n\t\t\t$i ++;\n\t\t}\n\n\t\treturn;\n\t\t// return $scheduleList;\n\t}", "public function getScheduleDate(){return $this->date;}", "public function weekSchedule(Request $request)\n\t{\n\t\t$doctor = $request->user()->doctor;\n\n\t\t$endDate = new Carbon($request->end_date);\n $startDate = new Carbon($request->start_date);\n $values = Schedule::with(['leave'])\n\t \t->whereDate('date', '>=', $startDate->toDateString())\n\t ->whereDate('date', '<=', $endDate->toDateString())\n\t ->where('doctor_id', $doctor->id)\n\t ->get();\n\n\t\treturn $values;\n\t}", "function dayScheduleA()\n\t{\n\t$scheduleDay = array(45, 60, 90, 120, 150, 180, 210, 240);\n\treturn $scheduleDay;\n\t}", "public static function daily() {return new ScheduleViewMode(1);}", "protected function schedule ( Schedule $schedule )\n {\n\n /** BEGIN: FETCH APPWORKS API DATA ****************************************/\n\n $schedule->command( 'ot-appworks:fetch-events' )\n ->hourlyAt(0)\n ->withoutOverlapping();\n\n $schedule->command( 'ot-appworks:fetch-event-data' )\n ->hourlyAt(5)\n ->withoutOverlapping();\n\n $schedule->command( 'ot-scoreboard:fetch-new-points' )\n ->everyFiveMinutes()\n ->withoutOverlapping();\n\n $schedule->command( 'ot-socialcards:fetch-new-posts' )\n ->everyFiveMinutes()\n ->withoutOverlapping();\n\n /** END: FETCH APPWORKS API DATA ******************************************/\n\n /** BEGIN: FETCH TWITTER API DATA *****************************************/\n\n $schedule->command( 'ot-socialcards:fetch-new-tweets' )\n ->everyMinute()\n ->withoutOverlapping();\n\n /** END: FETCH TWITTER API DATA *******************************************/\n\n }", "function get_schedule($usrid){\r\n\t\r\n}", "public function getDailySchedule()\n {\n return $this->daily_schedule;\n }", "public function getDailySchedule()\n {\n return $this->daily_schedule;\n }", "private function applyCustomSchedule($model, $currentDate)\n\t{\n\t\t$currentYear = date('Y', strtotime($currentDate));\n\t\t$currentMonth = date('m', strtotime($currentDate)); \n\t\t$currentDay = date('d', strtotime('+'.$model->minimum_days_appointment_set.' days', strtotime($currentDate))); \n\t\t\n\t\t$startDate = strtotime($currentYear.'-'.$currentMonth.'-'.$currentDay);\n\t\t$endDate = strtotime('+'. $model->maximum_days_appointment_set.' days', $startDate);\n\t\t\n\t\t$customSchedules = CalendarCustomSchedule::model()->find(array(\n\t\t\t'condition' => 'calendar_id = :calendar_id',\n\t\t\t'params' => array(\n\t\t\t\t':calendar_id' => $model->id,\n\t\t\t),\n\t\t));\n\t\t\n\t\t\n\t\t$timeCtr = 1;\n\n\t\tif($customSchedules)\n\t\t{\n\t\t\t$dates = array();\n\t\t\t\n\t\t\twhile( $startDate <= $endDate ) \n\t\t\t{\t\n\t\t\t\t$existingHolidaySlot = CalendarHoliday::model()->find(array(\n\t\t\t\t\t'condition' => 'calendar_id = :calendar_id AND MONTH(date) = :start_date_month AND DAY(date) = :start_date_day',\n\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t':calendar_id' => $model->id,\n\t\t\t\t\t\t':start_date_month' => date('m', $startDate),\n\t\t\t\t\t\t':start_date_day' => date('d', $startDate),\n\t\t\t\t\t),\n\t\t\t\t));\n\t\t\t\n\t\t\t\tif( empty($existingHolidaySlot) )\n\t\t\t\t{\n\t\t\t\t\t$dates[] = date('Y-m-d', $startDate);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$startDate = strtotime('+1 day', $startDate);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif( $dates )\n\t\t\t{\n\t\t\t\tforeach( $dates as $date )\n\t\t\t\t{\n\t\t\t\t\t$timeCtr = 1;\n\t\t\t\t\t\n\t\t\t\t\t$customSchedules = CalendarCustomSchedule::model()->findAll(array(\n\t\t\t\t\t\t'condition' => 'calendar_id = :calendar_id AND day = :day',\n\t\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t\t':calendar_id' => $model->id,\n\t\t\t\t\t\t\t':day' => date('l', strtotime($date)),\n\t\t\t\t\t\t),\n\t\t\t\t\t));\n\t\t\t\t\t\n\t\t\t\t\tif( $customSchedules )\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($customSchedules as $customSchedule) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif( $timeCtr <= $model->maximum_appointments_per_day )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$start_date = $date.' '.date('H:i:s', strtotime($customSchedule->time));\n\t\t\t\t\t\t\t\t$start_date_year = date('Y', strtotime($start_date));\n\t\t\t\t\t\t\t\t$start_date_month = date('m', strtotime($start_date));\n\t\t\t\t\t\t\t\t$start_date_day = date('d', strtotime($start_date));\n\t\t\t\t\t\t\t\t$start_date_time = date('H:i:s', strtotime($start_date));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$end_date = date('Y-m-d H:i:s', strtotime('+'.$model->appointment_length , strtotime($start_date)));\n\t\t\t\t\t\t\t\t$end_date_year = date('Y', strtotime($end_date));\n\t\t\t\t\t\t\t\t$end_date_month = date('m', strtotime($end_date));\n\t\t\t\t\t\t\t\t$end_date_day = date('d', strtotime($end_date));\n\t\t\t\t\t\t\t\t$end_date_time = date('H:i:s', strtotime($end_date));\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$existingAppointment = CalendarAppointment::model()->find(array(\n\t\t\t\t\t\t\t\t\t'condition' => 'calendar_id = :calendar_id AND start_date = :start_date',\n\t\t\t\t\t\t\t\t\t'params' => array(\n\t\t\t\t\t\t\t\t\t\t':calendar_id' => $model->id,\n\t\t\t\t\t\t\t\t\t\t':start_date' => $start_date,\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\n\t\t\t\t\t\t\t\tif(empty($existingAppointment))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$newAppointment = new CalendarAppointment;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$newAppointment->setAttributes(array(\n\t\t\t\t\t\t\t\t\t\t'calendar_id' => $model->id,\n\t\t\t\t\t\t\t\t\t\t'title' => 'AVAILABLE',\n\t\t\t\t\t\t\t\t\t\t'start_date' => $start_date,\n\t\t\t\t\t\t\t\t\t\t'start_date_year' => $start_date_year,\n\t\t\t\t\t\t\t\t\t\t'start_date_month' => $start_date_month,\n\t\t\t\t\t\t\t\t\t\t'start_date_day' => $start_date_day,\n\t\t\t\t\t\t\t\t\t\t'start_date_time' => $start_date_time,\n\t\t\t\t\t\t\t\t\t\t'end_date' => $end_date,\n\t\t\t\t\t\t\t\t\t\t'end_date_year' => $end_date_year,\n\t\t\t\t\t\t\t\t\t\t'end_date_month' => $end_date_month,\n\t\t\t\t\t\t\t\t\t\t'end_date_day' => $end_date_day,\n\t\t\t\t\t\t\t\t\t\t'end_date_time' => $end_date_time,\n\t\t\t\t\t\t\t\t\t\t'is_custom' => 1,\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\t$newAppointment->save(false);\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$timeCtr++;\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}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function getNewsletterSchedulesForDate($date) {\r\n\t\t\r\n\t\t$result = array();\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getOnceNewsletterSchedulesForDate($date));\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getEveryDayNewsletterSchedulesForDate($date));\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getOnceAWeekNewsletterSchedulesForDate($date));\r\n\t\t$result = array_merge($result,NewsletterSchedulePeer::getOnceAMonthNewsletterSchedulesForDate($date));\r\n\t\t\t\t\r\n\t\treturn $result;\r\n\t\t\r\n\t}", "private function createSchedule()\n {\n $days = DisplayScheduleDay::singleton()->dbObject('Day')->enumValues();\n foreach ($days as $day) {\n $scheduleDay = DisplayScheduleDay::create();\n $scheduleDay->Day = $day;\n $this->Schedule()->add($scheduleDay);\n }\n }", "public function getSchedules(Request $req)\n {\n\n $data['bookingdate'] = $req->bookingdate;\n $data['schedules'] = Schedule::where('route_id', $req->route)->orderByRaw('CAST(depart_time as time) ASC')->get();\n return view('admin.ticket.getSchedules', $data);\n }", "public function get_schedule($params = [])\n {\n $result = Schedule::where([\n 'event_id' => $params['event_id'], \n 'user_id' => $params['user_id'] \n ])->get();\n\n return to_array($result);\n }", "private function retrieveSchedule($team_id, $start_date, $end_date)\n {\n if (isset($team_id, $start_date, $end_date)) {\n try {\n $start_date = new Carbon($start_date);\n $end_date = new Carbon($end_date);\n $schedule = \\Roster::where('date_start', '=', $start_date->toDateString())->where('team_id', '=', $team_id)->first();\n if (!isset($schedule)) {\n $schedule = new \\Roster;\n $schedule->team_id = $team_id;\n $schedule->date_start = $start_date->toDateString();\n $schedule->date_ending = $end_date->toDateString();\n $schedule->roster_stage = 'pending';\n $schedule->save();\n }\n $schedule = \\Roster::where('date_start', '=', $start_date->toDateString())->where('team_id', '=', $team_id)\n ->with('rosteredshift.task')->with(array('team.user' => function ($query) use ($start_date, $end_date) {\n $query->where('user.active', '=', true)\n ->with(array('availspecific' => function ($query) use ($start_date, $end_date) {\n $query->where(function ($query) use ($start_date, $end_date) {\n $query->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '<=', $start_date->toDateString())\n ->where('end_date', '>=', $start_date->toDateString());\n })->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '>=', $start_date->toDateString())\n ->where('start_date', '<=', $end_date->toDateString());\n })->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '<=', $start_date->toDateString())\n ->where('end_date', '>=', $end_date->toDateString());\n })->orWhere(function ($query) use ($start_date, $end_date) {\n $query->where('start_date', '>=', $start_date->toDateString())\n ->where('end_date', '<=', $end_date->toDateString());\n });\n })\n ->where('user_avail_spec.authorized', '=', 'approved');\n }))\n ->with('availgeneral');\n }))->first();\n } catch (\\Exception $e) {\n return Helper::jsonLoader(EXCEPTION, array(\"message\" => $e->getMessage(), \"line\" => $e->getLine(), \"file\" => $e->getFile()));\n }\n foreach ($schedule->rosteredshift as $key => $shift) {\n if ($shift->rostered_start_time !== '0000-00-00 00:00:00') {\n $temp = Carbon::parse($shift->rostered_start_time)->timezone(Helper::organisationTimezone())->toDateTimeString();\n $schedule->rosteredshift[$key]->rostered_start_time = $temp;\n }\n if ($shift->rostered_end_time !== '0000-00-00 00:00:00') {\n $temp = Carbon::parse($shift->rostered_end_time)->timezone(Helper::organisationTimezone())->toDateTimeString();\n $schedule->rosteredshift[$key]->rostered_end_time = $temp;\n }\n }\n $schedule = $schedule->toArray();\n $schedule['timezone'] = Carbon::now(Helper::organisationTimezone())->offset / 60;\n return $schedule;\n } else {\n return Helper::jsonLoader(INCORRECT_DATA);\n }\n }", "function getCalender(Request $request){\n\n $auth_id=Auth::user()->id;\n\n if((isset($request->start) && $request->start!='') && (isset($request->end) && $request->end!='')){\n \n /*\n * start_date is getting only date like 2017-11-11 in 2017-11-11T9:15:25\n * end_date is getting only date like 2017-11-17 in 2017-11-17T12:35:35 \n */\n $start_date= str_replace(strstr($request->start, 'T') , \"\", $request->start);\n\n $end_date= str_replace(strstr($request->end, 'T') , \"\", $request->end);\n\n $array=array();\n\n /*\n * get_time is getting the record according to user logged id \n */\n $get_time=CalendarAvailability::select('start_time','end_time','reocuuring')\n ->where('user_id',$auth_id)\n ->get();\n \n /*\n * $array[] is getting all dates between two dates 2017-11-11 to 2017-11-17\n * 2017-11-11,\n * 2017-11-12,\n * 2017-11-13,\n * 2017-11-14,\n * 2017-11-15,\n * 2017-11-16,\n * 2017-11-17\n */\n for ($x=strtotime($start_date);$x<strtotime($end_date);$x+=86400){\n \n $array[]=date('Y-m-d',$x);\n\n }\n\n /*\n * $get_time[0]->reocuuring==0 the sunday,saturday schedule is not display\n * $get_time[0]->reocuuring==1 the sunday schedule is not display\n * $get_time[0]->reocuuringis not equal to 0 or 1 then schedule is display for all days means daily\n */\n if(isset($get_time[0]->reocuuring) && $get_time[0]->reocuuring=='0'){\n unset($array[0]);\n unset($array[6]);\n }elseif (isset($get_time[0]->reocuuring) && $get_time[0]->reocuuring=='1') {\n unset($array[0]);\n }\n \n /*\n * get_holiday_days is getting the holiday dates user logged id and all dates \n */\n $get_holiday_days=CalendarHoliday::select('holiday_date')\n ->where('user_id',$auth_id)\n ->whereIn('holiday_date', $array)\n ->get();\n \n /*\n * $array is gettting that dates which is not in CalenderHoliday table\n */\n for ($i=0; $i <count($get_holiday_days) ; $i++) {\n if(array_search ($get_holiday_days[$i]->holiday_date, $array)){\n $array = array_diff($array, [$get_holiday_days[$i]->holiday_date]);\n }\n \n }\n\n /*\n * $arr is getting start date with start time and end date with end time \n */\n $arr = array();\n foreach ($array as $key => $value) {\n $start=$value.'T'.$get_time[0]->start_time;\n $end=$value.'T'.$get_time[0]->end_time;\n $arr[] = array('start' =>$start ,'end' =>$end);\n }\n\n echo json_encode($arr);die;\n \n }\n \n return view('calendar.get_calender');\n }", "public function getScheduling()\n {\n return $this->scheduling;\n }", "public function getSchedules($id)\n {\n $search = request()->all();\n $search['date1'] = isset($search['date1']) ? Carbon::parse($search['date1']) : '';\n $search['date2'] = isset($search['date2']) ? Carbon::parse($search['date2']) : '';\n\n $schedules = $this->scheduleRepo->findAllByDoctorWithoutPagination($id, $search);\n\n return $schedules;\n \n }", "protected function schedule(Schedule $schedule)\n {\n // $configuracao = DB::table('configuracao')->first();\n\n // if($configuracao->frequencia == 'Diária')\n // {\n // $schedule->call(function (){\n // Ente::importar();\n // HistoricoDeAcesso::importar();\n // })->dailyAt($configuracao->horario); \n // }\n // else\n // {\n // $schedule->call(function (){\n // Ente::importar();\n // HistoricoDeAcesso::importar();\n // })->weekly()->fridays()->at($configuracao->horario); \n // }\n \n }", "public function schedule(): Schedule\n {\n return $this->schedule;\n }", "public function getScheduleItems()\n {\n if (array_key_exists(\"scheduleItems\", $this->_propDict)) {\n if (is_a($this->_propDict[\"scheduleItems\"], \"\\Beta\\Microsoft\\Graph\\Model\\ScheduleItem\") || is_null($this->_propDict[\"scheduleItems\"])) {\n return $this->_propDict[\"scheduleItems\"];\n } else {\n $this->_propDict[\"scheduleItems\"] = new ScheduleItem($this->_propDict[\"scheduleItems\"]);\n return $this->_propDict[\"scheduleItems\"];\n }\n }\n return null;\n }", "public function updateSchedule()\n\t{\n\t\t// Removing old days if we have any days\n\t\tif (count(self::$schedule) > 0) {\n\t\t\t$currDate = date('Y/m/d');\n\n\t\t\twhile (isset(self::$schedule[0]) && self::$schedule[0]->date != $currDate) {\n\t\t\t\tarray_shift(self::$schedule);\n\t\t\t}\n\t\t}\n\n\t\t// Building out the schedule if we're missing days\n\t\tif (count(self::$schedule) < 7) $this->build();\n\t}", "public function ga_calendar_time_slots()\n {\n // Timezone\n $timezone = ga_time_zone();\n\n // Service & Provider ID\n $current_date = isset($_POST['current_month']) ? esc_html($_POST['current_month']) : '';\n $service_id = isset($_POST['service_id']) ? (int) $_POST['service_id'] : 0;\n $provider_id = isset($_POST['provider_id']) && 'ga_providers' == get_post_type($_POST['provider_id']) ? (int) $_POST['provider_id'] : 0;\n $form_id = isset($_POST['form_id']) ? (int) $_POST['form_id'] : 0;\n\n if ('ga_services' == get_post_type($service_id) && ga_valid_date_format($current_date)) {\n # ok\n } else {\n wp_die('Something went wrong.');\n }\n\n // Date Caption\n $date = new DateTime($current_date, new DateTimeZone($timezone));\n\n // Generate Slots\n $ga_calendar = new GA_Calendar($form_id, $date->format('n'), $date->format('Y'), $service_id, $provider_id);\n echo $ga_calendar->calendar_time_slots($date);\n wp_die();\n }", "public function indexAction()\r\n {\r\n \tini_set('memory_limit', '64M');\r\n $validFormats = array('weekly');\r\n $format = 'weekly'; // $this->_getParam('format', 'weekly');\r\n \r\n if (!in_array($format, $validFormats)) {\r\n $this->flash('Format not valid');\r\n $this->renderView('error.php');\r\n return;\r\n }\r\n\r\n $reportingOn = 'Dynamic';\r\n \r\n // -1 will mean that by default, just choose all timesheet records\r\n $timesheetid = -1;\r\n\r\n // Okay, so if we were passed in a timesheet, it means we want to view\r\n // the data for that timesheet. However, if that timesheet is locked, \r\n // we want to make sure that the tasks being viewed are ONLY those that\r\n // are found in that locked timesheet.\r\n $timesheet = $this->byId();\r\n\r\n $start = null;\r\n $end = null;\r\n $this->view->showLinks = true;\r\n $cats = array();\r\n\r\n if ($timesheet) {\r\n $this->_setParam('clientid', $timesheet->clientid);\r\n $this->_setParam('projectid', $timesheet->projectid);\r\n if ($timesheet->locked) {\r\n $timesheetid = $timesheet->id;\r\n $reportingOn = $timesheet->title;\r\n } else {\r\n $timesheetid = 0; \r\n $reportingOn = 'Preview: '.$timesheet->title;\r\n }\r\n if (is_array($timesheet->tasktype)) {\r\n \t$cats = $timesheet->tasktype;\r\n } \r\n\r\n $start = date('Y-m-d 00:00:01', strtotime($timesheet->from));\r\n $end = date('Y-m-d 23:59:59', strtotime($timesheet->to)); \r\n $this->view->showLinks = false;\r\n } else if ($this->_getParam('category')){\r\n \t$cats = array($this->_getParam('category'));\r\n }\r\n \r\n \r\n $project = $this->_getParam('projectid') ? $this->byId($this->_getParam('projectid'), 'Project') : null;\r\n\t\t\r\n\t\t$client = null;\r\n\t\tif (!$project) {\r\n \t$client = $this->_getParam('clientid') ? $this->byId($this->_getParam('clientid'), 'Client') : null;\r\n\t\t}\r\n\t\t\r\n $user = $this->_getParam('username') ? $this->userService->getUserByField('username', $this->_getParam('username')) : null;\r\n \r\n\t\t$this->view->user = $user;\r\n\t\t$this->view->project = $project;\r\n\t\t$this->view->client = $client ? $client : ( $project ? $this->byId($project->clientid, 'Client'):null);\r\n\t\t$this->view->category = $this->_getParam('category');\r\n \r\n if (!$start) {\r\n\t // The start date, if not set in the parameters, will be just\r\n\t // the previous monday\r\n\t $start = $this->_getParam('start', $this->calculateDefaultStartDate());\r\n\t // $end = $this->_getParam('end', date('Y-m-d', time()));\r\n\t $end = $this->_getParam('end', date('Y-m-d 23:59:59', strtotime($start) + (6 * 86400)));\r\n }\r\n \r\n // lets normalise the end date to make sure it's of 23:59:59\r\n\t\t$end = date('Y-m-d 23:59:59', strtotime($end));\r\n\r\n $this->view->title = $reportingOn;\r\n \r\n $order = 'endtime desc';\r\n if ($format == 'weekly') {\r\n $order = 'starttime asc';\r\n }\r\n\r\n $this->view->taskInfo = $this->projectService->getTimesheetReport($user, $project, $client, $timesheetid, $start, $end, $cats, $order);\r\n \r\n // get the hierachy for all the tasks in the task info. Make sure to record how 'deep' the hierarchy is too\r\n\t\t$hierarchies = array();\r\n\r\n\t\t$maxHierarchyLength = 0;\r\n\t\tforeach ($this->view->taskInfo as $taskinfo) {\r\n\t\t\tif (!isset($hierarchies[$taskinfo->taskid])) {\r\n\t\t\t\t$task = $this->projectService->getTask($taskinfo->taskid);\r\n\t\t\t\t$taskHierarchy = array();\r\n\t\t\t\tif ($task) {\r\n\t\t\t\t\t$taskHierarchy = $task->getHierarchy();\r\n\t\t\t\t\tif (count($taskHierarchy) > $maxHierarchyLength) {\r\n\t\t\t\t\t\t$maxHierarchyLength = count($taskHierarchy);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$hierarchies[$taskinfo->taskid] = $taskHierarchy;\r\n\t\t\t} \r\n\t\t}\r\n\t\r\n\t\t$this->view->hierarchies = $hierarchies;\r\n\t\t$this->view->maxHierarchyLength = $maxHierarchyLength;\r\n\r\n $this->view->startDate = $start;\r\n $this->view->endDate = $end;\r\n $this->view->params = $this->_getAllParams();\r\n $this->view->dayDivision = za()->getConfig('day_length', 8) / 4; // za()->getConfig('day_division', 2);\r\n $this->view->divisionTolerance = za()->getConfig('division_tolerance', 20);\r\n \r\n $outputformat = $this->_getParam('outputformat');\r\n if ($outputformat == 'csv') {\r\n \t$this->_response->setHeader(\"Content-type\", \"text/csv\");\r\n\t $this->_response->setHeader(\"Content-Disposition\", \"inline; filename=\\\"timesheet.csv\\\"\");\r\n\r\n\t echo $this->renderRawView('timesheet/csv-export.php');\r\n } else {\r\n\t\t\tif ($this->_getParam('_ajax')) {\r\n\t\t\t\t$this->renderRawView('timesheet/'.$format.'-report.php');\r\n\t\t\t} else {\r\n\t\t\t\t$this->renderView('timesheet/'.$format.'-report.php');\r\n\t\t\t}\r\n }\r\n }", "protected function schedule(Schedule $schedule)\n {\n\n /* Funciona */ \n $schedule->command('usuarios:cumples')->timezone('America/Lima')->at('08:00');\n\n $schedule->command('estado:cumples')->timezone('America/Lima')->at('08:00');\n \n $schedule->command('active:cumples')->timezone('America/Lima')->monthly(); \n $schedule->command('deleted:comcumple')->timezone('America/Lima')->monthly(); \n $schedule->command('deleted:tarjeta')->timezone('America/Lima')->monthly(); \n\n\n $schedule->command('estado:conferencias')->timezone('America/Lima')->hourly();\n\n \n }", "protected function schedule(Schedule $schedule)\n {\n \n //$schedule->command('add:winners')->everyMinute();\n \n //$schedule->command('add:winners')->cron('00 18 31 10 * *');\n \n /*$schedule->command('test:test')\n ->everyMinute()\n ->sendOutputTo(base_path() . '/public/output_files/test.txt');\n */\n \n //$schedule->command('add:winners')->cron('52 13 02 11 * *');\n \n $periods = Period::all();\n \n foreach($periods as $period) {\n \n $enddate_month = explode('-', $period->enddate)[1];\n $enddate_day = explode(' ', explode('-', $period->enddate)[2])[0];\n //echo(\"maand: \" . $enddate_month . \" en dag \" . $enddate_day . \"<br>\");\n $schedule->command('add:winners')->cron('40 22 ' . $enddate_day . ' ' . $enddate_month . ' * *');\n }\n \n \n }", "function backup_migrate_drush_schedules() {\n backup_migrate_include('schedules');\n $rows = array(array(dt('ID'), dt('Name')));\n foreach (backup_migrate_get_schedules() as $schedule) {\n $rows[] = array(\n $schedule->get_id(),\n $schedule->get_name(),\n );\n }\n drush_print_table($rows, TRUE, array(32, 32));\n}", "public function actionCalendar()\n {\n // Get current ID of logined user\n $userId = Yii::$app->user->getId() ?: '1000';\n $profile = (new UsersProfile())->getProfile();\n\n // Fill array keyes with [1, .., date(\"t\")].\n // date(\"t\") - count of days in current month\n $calendar = array_fill_keys(range(1, date(\"t\")), []);\n $model = new TaskQuery(Task::class);\n\n foreach ($model->getByCurrentMonth($userId)->all() as $task) {\n // Get current $task->date and create new DateTime object\n // $date->format(\"j\") -- Day of the month: 1, 2, .., 31\n // Fill array $calender with $task objects\n $date = \\DateTime::createFromFormat(\"Y-m-d H:i:s\", $task->deadline);\n $calendar[$date->format(\"j\")][] = $task;\n }\n\n return $this->render('calendar', \\compact('calendar', 'profile'));\n }", "public function actionIndex($q = '') {\n \n $baseUrl = Yii::app()->baseUrl; \n $cs = Yii::app()->getClientScript();\n $cs->registerCssFile($baseUrl.'/js/fullcalendar/fullcalendar.css');\n $cs->registerScriptFile($baseUrl.'/js/fullcalendar/fullcalendar.min.js');\n \n $calendar = array();\n if ($q){\n \n $schedule = Schedule::model()->with(array('channel', 'show'))\n ->findAllByAttributes(array(),\n array(\"condition\"=>\"day_date > :currenttime AND show.original_title = :original_title AND (show.season IS NOT NULL OR show.episode IS NOT NULL)\",\n //\"order\" => \"channel.active, channel.name\",\n \"order\" => \"start\",\n 'params' => array(':currenttime'=>date(\"y-m-d\",strtotime('-2 weeks')),\n \":original_title\"=>$q)\n ));\n \n \n \n foreach ($schedule as $item){\n //if ($item->channel->slug != 'fox') continue;\n $calendar[$item->channel->slug.\"|\".$item->show->season]\n [date(\"YW\",strtotime($item->day_date))]\n [date(\"N\",strtotime($item->day_date))] = array('id'=>$item->id,'title'=>$item->show->title, 'showslug'=>$item->show->slug, 'channelslug'=>$item->channel->slug, \n 'season'=>$item->show->season, 'episode'=>$item->show->episode, 'date'=>date(\"Y-m-d\",strtotime($item->start)),\n 'original'=>true, \"description\"=> trim_text($item->show->description, 100) );\n }\n \n foreach ($calendar as $key => $item){\n $copy = $this->copyWeek($item,0);\n \n if (isset($item[date(\"YW\")])){\n $now = $item[date(\"YW\")];\n foreach ($copy as $k => $c){\n if (!isset($now[$k])) $now[$k] = $c;\n }\n $calendar[$key][date(\"YW\")] = $now;\n }else $calendar[$key][date(\"YW\")] = $copy;\n \n if ($set = $this->copyWeek($item,1)) $calendar[$key][date(\"YW\",strtotime('+1 week'))] = $set;\n if ($set = $this->copyWeek($item,2)) $calendar[$key][date(\"YW\",strtotime('+2 weeks'))] = $set;\n //break;\n }\n \n \n }\n\n if (!isset($_GET['dev']) && !YII_DEBUG) $calendar = null;\n /*\n $this->pageTitle = \"Koledar nanizank in nadaljevank\";\n $this->pageDesc = \"\";\n $this->keywords = '';*/\n \n $this->render('index', array('calendar'=>$calendar));\n }", "function ScheduleDates()\n {\n $dateids=$this->CGI2Dates();\n\n $dates=array();\n foreach ($this->Dates() as $did => $date)\n {\n if (preg_grep('/^'.$date[ \"ID\" ].'$/',$dateids))\n {\n array_push($dates,$date);\n }\n }\n\n return $dates;\n }", "public function scheduler() {\n\n\t\t$user = \\Auth::User();\n\n\t\t$station_id = $user->station->id;\n//\t\t$talk_shows = \\App\\ConnectContent::where('content_type_id', ContentType::GetTalkContentTypeID())\n//\t\t\t->orderBy('start_date')\n//\t\t\t->where('station_id', $station_id)\n//\t\t\t->get();\n\n\t\treturn view('airshrconnect.scheduler')\n\t\t\t->with('WebSocketURL', \\Config::get('app.WebSocketURL'))\n\t\t\t->with('content_type_list', ContentType::$CONTENT_TYPES)\n\t\t\t->with('content_type_list_for_connect', ContentType::$CONTENT_TYPES_FOR_CONNECT)\n\t\t\t->with('content_type_id_for_talkshow', ContentType::GetTalkShowContentTypeID());\n//\t\t\t->with('talk_shows', $talk_shows);\n\n\t}", "public function index()\n {\n $is_current_month = !request()->get('next');\n $days_in_month = date('t', strtotime($is_current_month ? 'now' : '+1 month'));\n $month_number = date('n', strtotime($is_current_month ? 'now' : '+1 month'));\n $year_number = date('y', strtotime($is_current_month ? 'now' : '+1 month'));\n\n $shifts = [];\n\n foreach (range(1,$days_in_month) as $day_number) {\n $date = mktime(0, 0, 0, $month_number, $day_number, $year_number);\n\n $shifts[date('j.n.y', $date)] = [\n 'date_without_year' => date('j.n', $date),\n 'date' => date('j.n.y', $date),\n 'day_of_week' => str_replace(['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'], date('l', $date)),\n 'shift1' => [\n 'saturday' => date('w', $date) == 6,\n 'title' => NULL,\n 'users' => []\n ],\n 'shift2' => [\n 'saturday' => date('w', $date) == 6,\n 'title' => NULL,\n 'users' => []\n ],\n 'shift3' => [\n 'saturday' => date('w', $date) == 5 || date('w', $date) == 6,\n 'title' => NULL,\n 'users' => []\n ],\n ];\n }\n\n $registered = Shift::with('user')\n ->where('date_str', 'LIKE', \"%.$month_number.$year_number\")\n ->get();\n\n foreach ($registered as $register) {\n $shifts[$register['date_str']]['shift'.$register['shift_id']]['users'][] = [\n 'user_id' => $register['user_id'],\n 'status' => $register['status'],\n 'name' => array_get($register, 'user.name', 'משתמש נמחק'),\n ];\n }\n\n $is_admin = request()->get('admin') && Auth::user()->is_admin;\n\n return view('home')\n ->with('shifts', array_values($shifts))\n ->with('current_user_id', Auth::user()->id)\n ->with('is_current_month', $is_current_month)\n ->with('can_admin', Auth::user()->is_admin)\n ->with('users', $is_admin ? User::orderBy('name')->get() : [])\n ->with('is_admin', $is_admin);\n }", "public function getStationWithSchedules($id);", "public function getScheduleTime(){return $this->time_of_day;}", "public function getHourlySchedule()\n {\n return $this->hourly_schedule;\n }", "public function getHourlySchedule()\n {\n return $this->hourly_schedule;\n }", "public function driveSchedules()\n {\n return $this->hasMany(DriveSchedule::class);\n }", "public function run()\n {\n $time = new \\DateTime('now', new DateTimeZone('Asia/Manila'));\n\n App\\Models\\Schedule::create([\n 'team1' => 'USA',\n 'team1_score' => 0,\n 'team2' => 'Australia',\n 'team2_score' => 0,\n 'time_from' => $time->format('Y-m-d H:i:s'),\n 'time_until' => $time->format('Y-m-d H:i:s')\n ]);\n\n App\\Models\\Schedule::create([\n 'team1' => 'Brazil',\n 'team1_score' => 89,\n 'team2' => 'China',\n 'team2_score' => 76,\n 'time_from' => $time->modify('-2 hours')->format('Y-m-d H:i:s'),\n 'time_until' => $time->modify('-1 hour')->format('Y-m-d H:i:s')\n ]);\n\n App\\Models\\Schedule::create([\n 'team1' => 'Russia',\n 'team1_score' => 102,\n 'team2' => 'Japan',\n 'team2_score' => 101,\n 'time_from' => $time->modify('-4 hour')->format('Y-m-d H:i:s'),\n 'time_until' => $time->modify('-2 hours')->format('Y-m-d H:i:s')\n ]);\n\n App\\Models\\Schedule::create([\n 'team1' => 'USA',\n 'team1_score' => 0,\n 'team2' => 'Spain',\n 'team2_score' => 0,\n 'time_from' => $time->modify('+4 hours')->format('Y-m-d H:i:s'),\n 'time_until' => $time->modify('+7 Hours')->format('Y-m-d H:i:s')\n ]); \n }", "public function getEveryDayNewsletterSchedulesForDate($date) {\r\n\t\t\r\n\t\t$criteria = new Criteria();\r\n\t\t$criteria->add(NewsletterSchedulePeer::DELIVERYMODE,NewsletterSchedulePeer::EVERY_DAY_MODE);\r\n\t\t$criteria->add(NewsletterSchedulePeer::ACTIVE,1);\t\t\r\n\t\treturn NewsletterSchedulePeer::doSelect($criteria);\r\n\t\t\r\n\t}", "public function getOnceAWeekNewsletterSchedulesForDate($date) {\r\n\t\t\r\n\t\t//obtenemos el dia de la semana en el cual se debe realizar el envio\r\n\t\t$timestamp = strtotime($date);\r\n\t\t$day = date(\"D\",$timestamp);\r\n\t\t$criteria = new Criteria();\r\n\t\t$criteria->add(NewsletterSchedulePeer::DELIVERYDAY,$day);\r\n\t\t$criteria->add(NewsletterSchedulePeer::ACTIVE,1);\t\t\r\n\t\t$criteria->add(NewsletterSchedulePeer::DELIVERYMODE,NewsletterSchedulePeer::ONCE_A_WEEK_MODE);\r\n\t\treturn NewsletterSchedulePeer::doSelect($criteria);\r\n\t\t\r\n\t}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM timesheet';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "function DatesSchedulesTables($edit)\n {\n $tables=array();\n foreach ($this->ScheduleDates() as $date)\n {\n array_push($tables,$this->DateSchedulesTable($edit,$date));\n }\n\n return $tables;\n }", "public function index(Request $request)\n {\n $cur_user = Auth::user();\n $user_timezone = User::where('id', $cur_user->id)->get()->toArray();\n $coach_timezone = $user_timezone[0]['timezone'];\n\n $user_data = User::where('id', '=', Auth::id())->first();\n if (Auth::user()->is_gratuate == 'n') {\n $free_session = $user_data->is_free_session_booked;\n if ($free_session == 1) {\n return redirect()->route('clients.dashboard.coaching');\n }\n }\n $cur_user = Auth::user();\n $schedule = [];\n $client = Client::where('user_id', '=', $cur_user->id)->with('coach.user')->first();\n if ($request->start != '') {\n $current_month = Carbon::parse($request['start']);\n } else {\n $current_month = Carbon::now();\n }\n $client_current_month = $current_month->copy()->setTimezone($client->user->timezone);\n $client_current_month->month = $current_month->month;\n $client_current_month = $client_current_month->startOfMonth();\n $first_day_this_month = $client_current_month->format('Y-m-d H:i:s');\n $last_day_this_month = $client_current_month->copy()->endOfMonth()->format('Y-m-d H:i:s');\n $current_date=Carbon::now()->setTimezone($client->user->timezone);\n $getdiff=Setting::where('name','allow_booking_hour')->first();\n $setdiff=$getdiff->value;\n if($setdiff>=24)\n {\n $totaldiff=$current_date->addHours($setdiff)->format('Y-m-d h:i:s');\n }\n else\n {\n $totaldiff=$current_date->addHours($setdiff)->format('Y-m-d h:i:s');\n }\n\n if ($client != null) {\n $schedule = CoachSchedule::where(\"deleted\", \"0\")\n ->where(function ($q) {\n $q->where('status', 'available')\n ->orWhere(function ($sq) {\n $sq->where('status', 'booked')\n ->where('booked_for', 'f')\n ->orWhere('slot1', 0)\n ->orWhere('slot2', 0)\n ->orWhere('slot3', 0);\n\n });\n })\n ->where('start_datetime','>=',$totaldiff)\n // ->where('start_datetime', '>=', $first_day_this_month)\n ->where('end_datetime', '<=', $last_day_this_month)\n ->where('created_user_id', '=', $client->coach->user->id)\n ->orderBy('start_datetime', 'ASC')\n ->get(['id', 'start_datetime', 'end_datetime', 'status']);\n }\n if ($cur_user->user_type == 'client') {\n $client_user_timezone = $client->user->timezone;\n\n if ($client_user_timezone == '') {\n $client_user_timezone = 'UTC';\n }\n $coach_user_timezone = ($client->coach->user->timezone);\n if ($coach_user_timezone == '') {\n $coach_user_timezone = 'UTC';\n }\n }\n\n view()->share('coach_user_timezone', $coach_user_timezone);\n $coach_user_time = Carbon::createFromFormat('Y-m-d H:i:s', Carbon::now()->toDateTimeString(), $client_user_timezone)->setTimezone($coach_user_timezone);\n\n view()->share('coach_timezone', $coach_timezone);\n view()->share('coach_user_time', $coach_user_time->toDateTimeString());\n view()->share('coach_user_name', $client->coach->user->name);\n view()->share('client_user_timezone', $client_user_timezone);\n if ($request->ajax()) {\n return response()->json([\n 'success' => 'true', 'schedule' => $schedule,\n ]);\n }\n return view('bookfreeschedule.index', compact('schedule'));\n }", "public static function initiate_schedules() {\n\t\t/** Clearing scheduled hook */\n\t\tif ( wp_next_scheduled( 'xl_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_clear_scheduled_hook( 'xl_maybe_track_usage_scheduled' );\n\t\t}\n\n\t\tif ( ! wp_next_scheduled( 'xl_new_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_schedule_event( current_time( 'timestamp' ), 'weekly_xl', 'xl_new_maybe_track_usage_scheduled' );\n\t\t}\n\t}", "public function workschedules()\n {\n return $this->hasMany('App\\WorkSchedule', 'customer_id');\n }", "protected function schedule(Schedule $schedule)\n {\n// $schedule->command('inspire')\n// ->hourly();\n// $schedule->call(function(){\n// $time=date('H');\n $date=date('Y-m-d');\n// $data=[];\n// if($time>0){\n// $reserves=Reserve::where('date',$date)->whereIn('progress',[1,3])->get();\n// foreach($reserves as $k=>$v){\n// $v->progress=2;\n// $v->save();\n// $number=Number::where('reserve_id',$v->id)->where('number_class',1)->first();\n// if($number){\n// $number->number_push=1;\n// $number->number_status=0;\n// $number->save();\n// }\n// }\n// DB::table('reserves')->where('date',$date)->whereIn('progress',[1,3])->where('halt',0)->update('progress',2);\n//// }\n// })->everyMinute();\n\n }", "public function getServices() {\n $services = Service::active()->get()->toArray();\n $outputArray = array();\n if ($services) {\n foreach ($services as $key => $value) {\n $begin = new DateTime($value['start_date']);\n $end = new DateTime($value['end_date']);\n if ($value['service_type'] == 'daily') {\n\n $interval = DateInterval::createFromDateString('1 day');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"#605ca8\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n if ($value['service_type'] == 'weekly') {\n\n $schedule = Schedule::where('service_id', $value['id'])->get()->toArray();\n\n $weekNumber = array();\n for ($i = 0; $i < count($schedule); $i++) {\n $weekNumber[] = $schedule[$i]['week_number'];\n }\n\n $interval = DateInterval::createFromDateString('1 day');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n if (in_array($dt->format(\"w\"), $weekNumber)) {\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"#f012be\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n }\n\n if ($value['service_type'] == 'monthly') {\n $interval = DateInterval::createFromDateString('1 month');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"#00a65a\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n\n if ($value['service_type'] == 'yearly') {\n $interval = DateInterval::createFromDateString('1 year');\n $period = new DatePeriod($begin, $interval, $end);\n\n foreach ($period as $key => $dt) {\n $timestamp = strtotime($dt->format(\"Y-m-d\"));\n $myobj = new \\stdClass();\n $myobj->title = $value['title'];\n $myobj->start = $dt->format(\"Y-m-d\");\n \n $scheduleArray = $this->getScheduleService($value['id'], $timestamp);\n \n if (date(\"Y-m-d\") <= $dt->format(\"Y-m-d\") && !empty($scheduleArray['availability'])) {\n $myobj->color = \"orange\";\n $myobj->url = url(\"/reservation/\" . $value['id'] . '/' . $timestamp);\n } else {\n $myobj->color = \"gray\";\n }\n array_push($outputArray, $myobj);\n }\n }\n }\n }\n// echo \"<pre>\";\n// print_r($outputArray);\n// echo \"</pre>\";\n echo json_encode($outputArray);\n }", "public function getWeeklySchedule()\n {\n return $this->weekly_schedule;\n }", "public function getWeeklySchedule()\n {\n return $this->weekly_schedule;\n }", "public function timesheetAction()\r\n {\r\n $project = $this->projectService->getProject($this->_getParam('projectid'));\r\n $client = $this->clientService->getClient($this->_getParam('clientid'));\r\n \r\n if (!$project && !$client) {\r\n return;\r\n }\r\n \r\n if ($project) {\r\n $start = date('Y-m-d', strtotime($project->started) - 86400);\r\n $this->view->tasks = $this->projectService->getSummaryTimesheet(null, null, $project->id, null, null, $start, null);\r\n } else {\r\n $start = date('Y-m-d', strtotime($client->created));\r\n $this->view->tasks = $this->projectService->getSummaryTimesheet(null, null, null, $client->id, null, $start, null);\r\n }\r\n\r\n $this->renderRawView('timesheet/ajax-timesheet-summary.php');\r\n }", "function viewStudentSchedule($studentID){\r\n\t \tif($this->userCanViewSchedule('')){\r\n\r\n\t\t\t$course = array();\r\n\t\t\t$schedule = array();\r\n\t\t\t\r\n\t\t\t$query = \"select course_id from `X_PNSY_SCHEDULE` where student_id = '$studentID'\";\r\n\t\t\t$result = mysql_query($query);\r\n\t\t\t\r\n\t\t\tif(mysql_num_rows($result) == 0){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile ($row = mysql_fetch_assoc($result)){\r\n\t\t\t\t$courseID =\t$row['course_id'];\t\t\r\n\t\t\t\t\r\n // course information\t\r\n\t\t\t\t$query = \"select * from `X_PNSY_COURSE` where course_id = '$courseID'\";\r\n\t\t\t\t$courseInfo = mysql_fetch_assoc(mysql_query($query));\r\n\t\t\t\t\r\n // retrieve all the course days/times. note: there can be more than one.\r\n\t\t\t\t$query = \"select * from `X_PNSY_COURSE_DAYS` where course_id = '$courseID'\";\r\n $daysResult = mysql_query($query);\r\n $meetingInfo = array();\r\n while($dayRow = mysql_fetch_assoc($daysResult)){\r\n\t\t\t\t $meetingInfo[] = $dayRow;\r\n }\t\t\t\t\r\n\r\n // retrieve prof\r\n\t\t\t\t$facultyID = $courseInfo['FACULTY_ID'];\r\n if(!empty($facultyID)){\r\n \t\t\t\t$query = \"select * from `X_PNSY_FACULTY` where id = '$facultyID'\";\r\n \t\t\t\t$facultyInfo = mysql_fetch_assoc(mysql_query($query));\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// parse time of day. remember, there can be more than one day/time\r\n $courseDateInfo = '';\r\n for($i = 0; $i < count($meetingInfo); $i++){\r\n if(!empty($meetingInfo[$i]['DAYS'])){\r\n\t\t\t\t $startTime[$i] = explode(' ',$meetingInfo[$i]['START_TIME']);\r\n\t\t\t\t $startTime[$i] = explode(':',$startTime[$i][1]);\r\n\t\t\t\t $startTime[$i] = $startTime[$i][0].':'.$startTime[$i][1];\r\n\t\t\t\t $endTime[$i] = explode(' ',$meetingInfo[$i]['END_TIME']);\r\n\t\t\t\t $endTime[$i] = explode(':',$endTime[$i][1]);\r\n\t\t\t\t $endTime[$i] = $endTime[$i][0].':'.$endTime[$i][1];\r\n\r\n if($i > 0) $courseDateInfo .= '<br>';\r\n \r\n $courseDateInfo .= $meetingInfo[$i]['DAYS'].', '.$startTime[$i].'-'.$endTime[$i].', '.$meetingInfo[$i]['COURSE_BLDG'].' '.$meetingInfo[$i]['COURSE_ROOM'];\r\n }\t\t\t\t\r\n }\r\n\r\n\t\t\t\tunset($course);\t\r\n $course['id'] = 'n/a';\r\n $course['title'] = 'n/a';\r\n $course['info'] = 'n/a';\r\n $course['credits'] = 'n/a';\r\n $course['faculty'] = 'n/a';\r\n $course['email'] = 'n/a';\r\n $course['phone'] = 'n/a';\r\n\r\n\t\t\t\t$course['id'] = $courseID;\r\n\t\t\t\tif(!empty($courseInfo['TITLE'])) $course['title'] = $courseInfo['TITLE'];\r\n if(!empty($courseDateInfo)) $course['info'] = $courseDateInfo;\r\n\t\t\t\tif(!empty($courseInfo['CREDITS'])) $course['credits'] = $courseInfo['CREDITS'];\r\n if(!empty($facultyID)){\r\n\t\t\t\t $course['faculty'] = $facultyInfo['FIRST_NAME'].' '.$facultyInfo['LAST_NAME'];\r\n\t\t\t\t if(!empty($facultyInfo['WOOSTER_EMAIL'])) $course['email'] = $facultyInfo['WOOSTER_EMAIL'];\r\n if(!empty($facultyInfo['CAMPUS_PHONE'])) $course['phone'] = $facultyInfo['CAMPUS_PHONE'];\r\n }\r\n\t\t\t\t\r\n\t\t\t\t$schedule[] = $course;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $schedule;\r\n\t\t}\r\n\t }", "public function listJobschedule()\n {\n $batch_date = $this->getDate();\n\n $data = sprintf(\"GET\\n\\n\\n\\n\\n\\n%s\\n\\n\\n\\n\\n\\n/%s/jobschedules\\napi-version:%s\\ntimeout:20\",\n $batch_date,\n $this->batch_account,\n $this->api_version\n );\n\n $signature = $this->signatureString($data);\n\n $response = Curl::to(sprintf(\"%s/jobschedules?api-version=%s&timeout=20\", $this->batch_url, $this->api_version))\n ->withHeader(sprintf(\"Authorization: SharedKey %s:%s\", $this->batch_account, $signature))\n ->withHeader('Date: ' . $batch_date)\n ->returnResponseObject()\n ->get();\n\n if ($response->status == 200) {\n\n $contents = json_decode($response->content);\n $jobs = $contents->value;\n\n return $jobs;\n\n } else {\n return [];\n }\n }", "public function index(Request $req)\n\t{\n\t\t$dataArr = [];\n\t\t$start_date = $req->start_date;\n\t\t$end_date = $req->end_date;\n\t\t$status = $req->status;\n\n\t\tif($status != 'all' ) {\n\t\t $schedules = RecruiterSchedule::where('fair_id',$req->fair_id)\n\t\t ->where('company_id',$req->company_id)\n\t\t ->where('recruiter_id',$req->recruiter_id)\n\t\t ->where('status',$status)\n\t\t ->orderBy(\"created_at\",'DESC')\n\t\t ->get();\n\t\t}else{\n\t\t\t$schedules = RecruiterSchedule::where('fair_id',$req->fair_id)\n\t\t ->where('company_id',$req->company_id)\n\t\t ->where('recruiter_id',$req->recruiter_id)\n\t\t ->orderBy(\"created_at\",'DESC')\n\t\t ->get();\n\t\t}\n\n\n\t\tif (!empty($start_date) && !empty($end_date)) {\n\t\t\t$filtered = $schedules->filter(function ($value, $key) use ($start_date,$end_date) {\n\t\t\t\t$slotDate = date(\"d-m-Y\",strtotime($value->days));\n\t\t\t\t$start_date = date(\"d-m-Y\",strtotime($start_date));\n\t\t\t\t$end_date = date(\"d-m-Y\",strtotime($end_date));\n\t\t\t if ($slotDate >= $start_date && $slotDate <= $end_date) {\n\t\t\t return true;\n\t\t\t }\n\t\t\t});\n\t\t\t$schedules = $filtered->all();\n\t\t}\n\n\t\tif ($schedules) {\n\t\t\tforeach ($schedules as $key => $row) {\n\t\t\t\t$dataArr[] = [\n\t\t\t\t 'id' => $row->id,\n\t\t\t\t 'fair_id' => $row->fair_id,\n\t\t\t 'company_id' => $row->company_id,\n\t\t\t 'recruiter_id' => $row->recruiter_id,\n\t\t\t 'recruiter_name' => $row->RecruiterDetails->name,\n\t\t\t 'candidate_id' => $row->candidate_id,\n\t\t\t 'start_time' => date('h:i A', strtotime($row->start_time)),\n\t\t\t 'end_time' => date('h:i A', strtotime($row->end_time)),\n\t\t\t 'days' => Carbon::createFromFormat('d-m-Y',$row->days)->format('F j, Y'),\n\t\t\t 'days_arr' => $row->days_arr,\n\t\t\t 'slotStatus' => $row->status\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\n\t\treturn $dataArr;\n\t}", "protected function schedule(Schedule $schedule)\n { \n //Cambiar el estado de las pasantias a \"Cerrado\" cuando llegue la fecha de fin\n $schedule->call(function(){\n $pasantias = PropuestaPasantia::whereHas('estado', function($q){\n $q->where('nombre', 'Disponible');\n })->get();\n\n foreach($pasantias as $pasantia){\n $estado = Estado::where('nombre', 'Cerrado')->first();\n $today = date('d/m/Y', strtotime(Carbon::now()->toDateString()));\n if($pasantia->fecha_fin == $today){\n $pasantia->estado()->associate($estado);\n $pasantia->save();\n }\n }\n })->timezone('America/Argentina/Salta')->dailyAt('23:59');\n\n // Cambiar estado a 'No regular' de las presentaciones que no fueron regularizadas luego de 6 meses\n $schedule->call(new VerificarRegularidad)->timezone('America/Argentina/Salta')->dailyAt('00:00');\n }", "function get_scheduled_days() {\n\t\treturn Clean::ids( $this->get_option( 'scheduled_day' ) );\n\t}", "function getAll() {\r\n\t\t$cond = new Criteria();\r\n\t\t$alls = NewsletterSchedulePeer::doSelect($cond);\r\n\t\treturn $alls;\r\n }", "protected function schedule(Schedule $schedule)\n {\n $date = now();\n\n /**\n * Employees\n * -------------------------------------------------------------------------------------------------------------\n */\n $schedule->command(\\App\\Console\\Commands\\EmployeesHired::class, [\n $date->copy()->subDay()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->dailyAt('05:55'); // Daily for the previous day\n $schedule->command(\\App\\Console\\Commands\\EmployeesHired::class, [\n $date->copy()->subDay()->startOfWeek()->format('Y-m-d') . ',' . $date->copy()->subDay()->endOfWeek()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->weeklyOn(1, '05:56'); // Every monday for the previous week\n $schedule->command(\\App\\Console\\Commands\\EmployeesHired::class, [\n now()->subMonth()->startOfMonth()->format('Y-m-d') . ',' . now()->subMonth()->endOfMonth()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->monthlyOn(1, '05:57'); // Monthly for the previous month\n\n $schedule->command(\\App\\Console\\Commands\\EmployeesTerminated::class, [\n $date->copy()->subDay()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->dailyAt('05:55'); // Daily for the previous day\n $schedule->command(\\App\\Console\\Commands\\EmployeesTerminated::class, [\n $date->copy()->subDay()->startOfWeek()->format('Y-m-d') . ',' . $date->copy()->subDay()->endOfWeek()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->weeklyOn(1, '05:56'); // Every monday for the previous week\n $schedule->command(\\App\\Console\\Commands\\EmployeesTerminated::class, [\n now()->subMonth()->startOfMonth()->format('Y-m-d') . ',' . now()->subMonth()->endOfMonth()->format('Y-m-d'),\n '--site' => 'santiago-hq',\n ])->monthlyOn(1, '05:57'); // Monthly for the previous month\n\n /**\n * Ring Central Commands\n * ---------------------------------------------------------------------------------\n */\n $schedule->command(\\App\\Console\\Commands\\General\\SendGeneralDailyProductionReportCommand::class, ['--team' => 'ECC'])->dailyAt('05:25');\n $schedule->command(\\App\\Console\\Commands\\General\\SendGeneralDailyRawReportCommand::class, ['--team' => 'ECC'])->dailyAt('05:45');\n\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Publishing\\SendPublishingProductionReportCommand::class)->everyThirtyMinutes();\n\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Political\\SendPoliticalFlashReportCommand::class)->hourly();\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Political\\SendPoliticalProductionReportCommand::class)->hourly();\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\Political\\SendPoliticalTextCampaignReportCommand::class)->dailyAt('07:20');\n\n $schedule->command(\\App\\Console\\Commands\\RingCentralReports\\Commands\\HotelPlanning\\SendHotelPlanningProductionReportCommand::class, ['--date' => now()->format('Y-m-d')])->hourly();\n\n $schedule->command(\\App\\Console\\Commands\\Inbound\\SendDailySummaryCommand::class)->dailyAt('06:20');\n $schedule->command(\\App\\Console\\Commands\\Inbound\\SendWTDSummaryCommand::class)->dailyAt('06:30');\n // check for dispositions\n $schedule->command(\\App\\Console\\Commands\\CheckForDispositionsPendingIdentification::class)->everyThreeHours();\n\n /**\n * Clean up commands\n * ----------------------------------------------------------------------\n */\n $schedule->command(\\Dainsys\\Commands\\ClearLogs\\ClearLogsCommand::class, [\n '--clear',\n '--keep=3',\n ])->dailyAt('02:00');\n\n $schedule->command(\\App\\Console\\Commands\\ClearTempraryFiles::class, [\n // 'remove_files_older_than_days' => 5\n 5,\n ])->dailyAt('20:45');\n\n $schedule->command(\\Spatie\\Backup\\Commands\\BackupCommand::class)->dailyAt('21:15');\n $schedule->command(\\Spatie\\Backup\\Commands\\CleanupCommand::class)->dailyAt('22:15');\n\n $schedule->command(\\App\\Console\\Commands\\UpdateBillableHoursAndRevenue::class, [now()->subDays(1)->format('Y-m-d') . ',' . now()->format('Y-m-d')])->dailyAt('01:15');\n $schedule->command(\\Illuminate\\Database\\Console\\PruneCommand::class, [\n '--model' => [\n \\App\\Models\\Performance::class,\n \\App\\Models\\UserLogin::class,\n \\App\\Models\\Notification::class,\n ],\n ])->dailyAt('02:15');\n\n $schedule->command(\\Laravel\\Telescope\\Console\\PruneCommand::class, ['--hours' => 72])->dailyAt('06:40');\n }", "public function getSchedule()\n\t\t{\n\t\t\tif ($this->schedule === NULL)\n\t\t\t{\n\t\t\t\t$this->schedule = new ECash_Transactions_Schedule($this);\n\t\t\t}\n\n\t\t\treturn $this->schedule;\n\t\t}", "public function actionIndex()\n {\n $searchModel = new ScheduleSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ScheduleSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "function eo_schedule_start($format='d-m-Y',$id=''){\n\techo eo_get_schedule_start($format,$id);\n}", "function get_list_schedules() {\n $this->db->select('hadir.*,\n t_profil.uprof_full_name as tentor,\n m_profil.uprof_full_name as mahasiswa\n ');\n $this->db->from('fis_dservice_consult_attendances hadir');\n $this->db->join('fis_dservice_consult_classes t_kelas','t_kelas.scclass_id = hadir.scattd_scclass_fk');\n $this->db->join('fis_duser_accounts t_akun','t_akun.uacc_id = t_kelas.scclass_mentor_fk'); \n $this->db->join('fis_duser_profiles t_profil','t_profil.uprof_uacc_fk = t_akun.uacc_id');\n\n $this->db->join('fis_dservice_consult_classes m_kelas','m_kelas.scclass_id = hadir.scattd_scclass_fk'); \n $this->db->join('fis_dservice_consult_contracts m_kontrak','m_kontrak.sccontr_id = m_kelas.scclass_sccontr_fk');\n $this->db->join('fis_dservice_consultations m_konsul','m_konsul.scons_id = m_kontrak.sccontr_sconcs_fk'); \n $this->db->join('fis_duser_accounts m_akun','m_akun.uacc_id = m_konsul.scons_uacc_fk');\n $this->db->join('fis_duser_profiles m_profil','m_profil.uprof_uacc_fk = m_akun.uacc_id');\n $this->db->order_by('hadir.scattd_date', 'asc');\n $this->db->order_by('hadir.scattd_time_start', 'asc');\n\n \n $query = $this->db->get()->result();\n return $query;\n }", "public static function getSchedDay($date, $user) {\n\n // Slot defaults\n $schedDay = new SchedDay($date);\n /*\n $sql = SchedDao::SQL_SELECT_SCHED .\n \" WHERE user_id=\" . $user->id . \" AND date=\" . quote($date) .\n \" ORDER BY time_start, client_id\";\n $res = query($sql); \n $scheds = array();\n while ($row = mysql_fetch_array($res, MYSQL_ASSOC)) {\n $sched = SchedDao::buildSched($row);\n $sched->client = SchedDao::getClient($sched->clientId);\n $scheds[] = $sched;\n }\n */\n logit_r('here getschedday');\n $scheds = Scheduling::getAppts($date, $user->id);\n $schedUser = new SchedUser($user->id, $user->uid, $user->name);\n $schedUser->scheds = $scheds;\n $schedDay->users[] = $schedUser;\n return $schedDay;\n }", "public function getIndex()\n\t{\n\t\tif ( Auth::check() )\n\t\t{\n\t\t\tif (Auth::user()->role == 'admin')\n\t\t\t\treturn Redirect::to('admin');\n\n\t\t\tif (Auth::user()->role == 'ta')\n\t\t\t\treturn Redirect::to('ta');\n\t\t}\n\n $week = array(\n \"Sunday\" => array(),\n \"Monday\" => array(),\n \"Tuesday\" => array(),\n \"Wednesday\" => array(),\n \"Thursday\" => array(),\n \"Friday\" => array(),\n \"Saturday\" => array()\n );\n\n $days = array(\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\"\n );\n\n $start = Settings::get(\"availability_start_hour\")->value;\n $start = Time::ToNumber($start);\n $time['start'] = $start;\n\n $end = Settings::get(\"availability_end_hour\")->value;\n $end = Time::ToNumber($end);\n $time['end'] = $end;\n\n $week_start = time() - (date('w') * 24 * 60 * 60);\n $week_start = date('Y-m-d', $week_start);\n $week_end = strtotime($week_start) + (6 * 24 * 60 * 60);\n $week_end = date('Y-m-d', $week_end);\n\n $shifts = Shift::between($week_start,$week_end);\n\n $assigned = array();\n foreach ($shifts as $shift) {\n for ($i=$shift->start; $i < $shift->end; $i+=50){\n $ta = $shift->TA();\n if (isset($ta))\n {\n $day = date('l', strtotime($shift->date));\n $assigned[$day][$i][] = $ta->name;\n }\n }\n }\n\n $courses = Course::all();\n\n\t\treturn View::make('main')\n ->with('courses',$courses)\n ->with('days', $days)\n ->with('week', $week)\n ->with('assigned',$assigned)\n ->with('time', $time);\n\t}" ]
[ "0.7256374", "0.71105003", "0.7100954", "0.69936794", "0.6679812", "0.662617", "0.66140044", "0.6559951", "0.65200895", "0.6378182", "0.63710755", "0.63694805", "0.6331583", "0.63183326", "0.63179296", "0.6252371", "0.62396836", "0.6194984", "0.61937284", "0.6185281", "0.6171033", "0.61662465", "0.61513126", "0.6150134", "0.6140663", "0.6093497", "0.60829324", "0.60820913", "0.6076439", "0.60741967", "0.6073323", "0.60424006", "0.60316235", "0.6026962", "0.60191536", "0.6016921", "0.6015557", "0.6009328", "0.60038525", "0.6001574", "0.59931266", "0.5973819", "0.5972751", "0.5970642", "0.5964555", "0.5964555", "0.596087", "0.5951446", "0.59514046", "0.5949405", "0.59319735", "0.5926454", "0.5919761", "0.59043777", "0.5898553", "0.58833414", "0.5873307", "0.5857186", "0.58535326", "0.585057", "0.5849676", "0.5845816", "0.5841487", "0.58385104", "0.5830735", "0.58176726", "0.58152694", "0.5813496", "0.5810538", "0.58074784", "0.579893", "0.57776004", "0.57776004", "0.57717407", "0.57631963", "0.5746791", "0.57337373", "0.5731819", "0.57245064", "0.5714243", "0.57039034", "0.5703118", "0.5693909", "0.56926847", "0.5692142", "0.5692142", "0.5691767", "0.5688363", "0.56850433", "0.5682448", "0.56648666", "0.5663346", "0.5654649", "0.5650777", "0.5646076", "0.5643464", "0.5643464", "0.56430215", "0.5640732", "0.563483", "0.5633335" ]
0.0
-1
Liste distinct etats d'un devis
public function get_etats() { $q = $this->db->query('SELECT DISTINCT vef_etat FROM `t_factures` LEFT JOIN `v_etats_factures` ON `vef_id` = `fac_etat` ORDER BY fac_etat ASC '); if ($q->num_rows() > 0) { $resultat = $q->result(); return $resultat; } else { return array(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function distinct();", "public static function distinct();", "public function distinct($distinct = TRUE);", "public function getAllDecoupage() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.etatDecoupage != ' . TypeEtat::SUPPRIME);\n // ->orderBy('e.typeDecoupage', 'ASC');\n return $qb->getQuery()->getResult();\n }", "public function getTousLesVisiteurs()\n {\n return Visiteur::all();\n }", "public function getListeVisiteurs(){\n\t\t$req = \"select * from visiteur order by VIS_MATRICULE\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}", "public function getDistinct()\n {\n return $this->distinct;\n }", "private function listado_obras(){\n \treturn Sesion::where(\"inicio\",\">\",Carbon::now())->distinct()->get(['nombre_obra']);\n }", "public abstract function distinct(): Stream;", "public function distinct(): Base;", "public function distinct() {\n return $this->attribute('distinct', true);\n }", "public function getAllVisiteurs(){\r\n\t\t$req =\"select * from visiteur where comptable=0\";\r\n\t\t\r\n\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t$lesVisiteurs =array();\r\n\t\t$laLigne = $res->fetch();\r\n\t\twhile($laLigne != null)\t{\r\n\t\t\t$selection = $laLigne['id'];\r\n $nom=$laLigne['nom'];\r\n $prenom=$laLigne['prenom'];\r\n\t\t\t$lesVisiteurs[\"$selection\"]=array(\r\n \"id\"=>\"$selection\",\r\n \"nom\"=>\"$nom\",\r\n \"prenom\"=>\"$prenom\"\r\n );\r\n\t\t\t$laLigne = $res->fetch(); \t\t\r\n\t\t}\r\n\t\treturn $lesVisiteurs;\r\n\t}", "static function listHiddenExhibit(){\n\t\t$res = requete_sql(\"SELECT id FROM exhibit WHERE visible = FALSE ORDER BY creation_date ASC\");\n\t\t$res = $res->fetchAll(PDO::FETCH_ASSOC);\n\t\t$list = array();\n\t\tforeach ($res as $exhibit) {\n\t\t\t$exhibit = new Exhibit($exhibit['id']);\n\t\t\tarray_push($list, $exhibit);\n\t\t}\n\t\treturn $list;\n\t}", "public function getChoisirVisiteur() //cette fonction permet au comptable de choisir un visiteur\n {\n $requetePrepare = PdoGSB::$monPdo->prepare(\n 'SELECT *'\n . 'FROM visiteur'\n //. 'ORDER BY nom'\n );\n $requetePrepare->execute();\n return $requetePrepare->fetchAll();\n\n }", "public function getAllActifDecoupage() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.etatDecoupage = ' . TypeEtat::ACTIF);\n // ->orderBy('e.typeDecoupage', 'ASC');\n return $qb->getQuery()->getResult();\n }", "function boucle_EVENEMENTS_dist($id_boucle, &$boucles) {\r\n $boucle = &$boucles[$id_boucle];\r\n $id_table = $boucle->id_table;\r\n\t$mstatut = $id_table.'.statut';\r\n \r\n if (!isset($boucle->modificateur['criteres']['statut'])) {\r\n // On n'est pas en mode pré-visualisation\r\n if (!$GLOBALS['var_preview']) {\r\n // Le critère {tout} est absent de la boucle\r\n if (!isset($boucle->modificateur['tout'])) {\r\n // on rajoute la condition \"statut = publie\"\r\n array_unshift($boucle->where, array(\"'='\", \"'$mstatut'\", \"'\\\\'publie\\\\''\"));\r\n }\r\n } \r\n \r\n // On est en mode pré-visualisation\r\n else {\r\n array_unshift($boucle->where,array(\"'IN'\", \"'$mstatut'\", \"'(\\\\'publie\\\\',\\\\'prop\\\\')'\"));\r\n }\r\n }\r\n return calculer_boucle($id_boucle, $boucles); \r\n}", "public function isDistinct()\n {\n return $this->distinct;\n }", "public function getListeSousVisiteurs($reg){\n\t\t$req = \"select distinct REG_CODE,v.VIS_MATRICULE as visiteurmat, v.VIS_NOM as nom from visiteur v, travailler t where t.TRA_ROLE ='visiteur' and REG_CODE='$reg' order by v.VIS_MATRICULE\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\treturn $rs;\n\t}", "public function idsDescripcionesBorrar($datos){\n $idsDescripciones = $this->descripciones()->distinct()->get()->pluck('id')->all();\n $idsDescripcionesActuales = collect($datos['dimensiones_actuales'])->pluck('id')->all();\n $dimeniones = array();\n\n foreach ($idsDescripciones as $idDescripcion)\n if (!in_array($idDescripcion, $idsDescripcionesActuales)) array_push($dimeniones, $idDescripcion);\n \n return $dimeniones;\n }", "public function listaDelitos(){\n\t $ofen=0;\n\t $indi=0;\n\t $arreglo = array();\n\n if (count($this->getOfeindis())>0){\n $ldelitos= Load::model('ofeindis')->find(\"ordenes_id = \".$this->id,\"order: indiciados_id,ofendidos_id,delitos_id\");\n }\n\n foreach ($ldelitos as $key) { // aqui se escoge a los imputados y victimas que no se repiten\n if($key->ofendidos_id !=$ofen || $key->indiciados_id !=$indi){\n array_push($arreglo,array('idel'=>$key->id,'ofendido'=>$key->getOfendidos(), 'indiciado'=>$key->getIndiciados()));\n }\n $ofen=$key->ofendidos_id;\n $indi=$key->indiciados_id;\n }\n\n for ($i=0; $i <count($arreglo) ; $i++) { // aqui voy metiendo un arreglo de delitos para cada uno\n $delitos=array();\n foreach ($ldelitos as $key) {\n if($key->ofendidos_id==$arreglo[$i]['ofendido']->id && $key->indiciados_id==$arreglo[$i]['indiciado']->id ){\n array_push($delitos,array('delito'=>$key->getDelitos(),'iddeli'=>$key->id,'principal'=>$key->esprincipal)); \n }\n } \n $arreglo[$i]['delitos']=$delitos; \n }\n return $arreglo;\n\n\t\n\t}", "public function listaVisitantes(){\n \n }", "public function listVisuels()\n {\n $result = DB::table('panneauxes')\n ->join('clients', 'clients.code', '=', 'panneauxes.idclient')\n ->join('campagnes', 'campagnes.code', '=', 'panneauxes.idcampagne')\n ->join('coms', 'coms.id', '=', 'panneauxes.idcommune')\n ->join('regies', 'regies.code', '=', 'panneauxes.idregie')\n ->select(\n 'panneauxes.idPanneaux as id',\n 'panneauxes.emplacement as emplacement',\n 'panneauxes.partdevoix as partdevoix',\n 'panneauxes.latittude as latitude',\n 'panneauxes.longitude',\n 'panneauxes.image',\n 'clients.Raison_Soc as client',\n 'campagnes.libelle as campagne',\n 'coms.name as commune',\n 'regies.Raison_Soc as regie'\n )\n ->get();\n return $result;\n }", "public function ciutats() {\n $sql =\"SELECT DISTINCT ciutat FROM hotels ORDER BY ciutat ASC\";\n $query=$this->db->prepare($sql);\n $query->execute();\n $res=$query->fetchAll();\n \n return $res;\n }", "public function listerDemandes() {\n $q = $this->db->prepare('SELECT * FROM DemandeMain WHERE proj_id = :id AND datetime < NOW() - INTERVAL 30 SECOND LIMIT 1');\n $q->bindValue(':id', $this->id, PDO::PARAM_INT);\n $q->execute();\n $row = $q->fetch();\n if(!empty($row)) {\n $this->donnerMain($row['ut_id']);\n $this->deleteDemande($row['ut_id']);\n }\n \n // Then, removing old requests\n $q = $this->db->prepare('DELETE FROM DemandeMain WHERE proj_id = :id AND datetime < NOW() - INTERVAL 30 SECOND');\n $q->bindValue(':id', $this->id, PDO::PARAM_INT);\n $q->execute();\n \n // Now listing current requests\n $q = $this->db->prepare('SELECT * FROM DemandeMain WHERE proj_id = :id');\n $q->bindValue(':id', $this->id, PDO::PARAM_INT);\n $q->execute();\n \n $demandes = array();\n foreach ($q->fetchAll() as $qdemande) {\n $membre = Utilisateur::getM($this->db, intval($qdemande['ut_id']));\n $demande = array($membre,$qdemande['datetime']);\n $demandes[] = $membre;\n }\n return $demandes;\n }", "public function getdepositorDeatils() {\n $select = $this->select()\n ->from(array('wr' => 'withdrawal_request'))\n ->setIntegrityCheck(false)\n ->join(array('u' => 'users'), 'u.user_id = wr.user_id', array(\"u.user_name\"))\n ->where('wr.status =?', '1');\n\n $result = $this->getAdapter()->fetchAll($select);\n if ($result) :\n return $result;\n endif;\n }", "public function dohvati_najaktuelnije_ideje()\n {\n $ideje= $this->findAll();\n usort($ideje,function ($i1,$i2)\n {\n //proveriti je l' ovo tranzitivno, idejno jeste, samo da li sam napravio gresku\n $dat1= strtotime($i1->DatumEvaluacije); \n $dat2= strtotime($i2->DatumEvaluacije); \n $danas= strtotime(date(\"Y-m-d H:i:s\"));\n if ($dat1==$dat2)\n {\n return 0;\n }\n if ($dat1>$danas)\n {\n if ($dat2<$danas)//dat2 nije aktuelno, jer je vec proslo, a d1 jeste te ide ispred\n {\n return -1;\n }\n else//oba tek treba da se dogode aktuelnije je ono sto ce pre da se dogodi\n {\n if ($dat1<$dat2)\n {\n return -1;\n }\n else\n {\n return 1;\n }\n }\n }\n else//dat1 nije aktuelno\n {\n if ($dat2>$danas)//dat2 ide ispred\n {\n return 1;\n }\n else//nijedan nije aktuelan zato zelimo da bude ispred onaj sa vecim datumom jer je on blizi sadasnjosti\n {\n if ($dat1<$dat2)\n {\n return 1;\n }\n else \n {\n return -1;\n \n }\n }\n \n }\n });\n return $ideje;\n \n }", "public function distinct(array $fields, $as = null);", "function visites_pre_traitement($prev_visites) {\r\n\r\n\t# pour page hier\r\n\tif (!is_array($prev_visites)) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t$temps = $prev_visites[0];\r\n\t$visites = $prev_visites[1];\r\n\t$visites_a = $prev_visites[2];\r\n\r\n\tif (count($temps)) {\r\n\t\tsort($temps);\r\n\t}\r\n\r\n\t$aff = '';\r\n\tif ($nb_articles = count($visites_a)) {\r\n\t\t$heure_f = date('H\\hi', $temps[0]);\r\n\t\t$date_f = date('d/m/Y', $temps[0]);\r\n\r\n\t\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t\t. _T('actijour:depuis_date_visites_pg',\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'heure' => $heure_f,\r\n\t\t\t\t\t'date' => $date_f == date('d/m/Y') ? '' : '(' . $date_f . ')',\r\n\t\t\t\t\t'nb_visite' => $visites,\r\n\t\t\t\t\t'nb_articles' => $nb_articles\r\n\t\t\t\t))\r\n\t\t\t. \"\\n</div>\\n\";\r\n\t}\r\n\r\n\treturn $aff;\r\n}", "public function unique();", "public function unique();", "public function listeDesEmprunts()\n\t\t{\n\t\t$liste = '';\n\t\tforeach ($this->lesEmprunts as $unEmprunt)\n\t\t\t{\t$unSupport=$unEmprunt->getLeSupport();\n\t\t\t\t$leClient=$unEmprunt->getLeClient();\n\t\t\t $liste = $liste.'Emprunt N° : \"'.$unEmprunt->getIdEmprunt().' -> Support : '.$unSupport->getIdSupport().' - '.$unSupport->getTitreSupport().' -> Client : '.$leClient->getNomClient().' ->Date Emprunt : '.$unEmprunt->getDateEmprunt().'><br>';\n\t\t\t}\n\t\treturn $liste;\n\t\t}", "function exec_visiteurs_dist()\n{\n\t$tri = preg_replace('/\\W/', '', _request('tri'));\n\tif (!$tri) $tri='nom'; \n\t$statut = _request('statut');\n\tif (!$statut) $statut = \"!\" . AUTEURS_MIN_REDAC;\n\t$debut = intval(_request('debut'));\n\n\t$recherche = NULL;\n\tif ($cherche = _request('recherche')) {\n\t\tinclude_spip('inc/rechercher');\n\t\t$tables = liste_des_champs();\n\t\t$tables = array('auteur'=>$tables['auteur']);\n\t\t$recherche = recherche_en_base($cherche, $tables,array('toutvoir'=>true));\n\t\tif ($recherche['auteur'])\n\t\t\t$recherche = sql_in('aut.id_auteur', array_keys($recherche['auteur']));\n\t\telse {\n\t\t\t$recherche = \"aut.id_auteur=0\"; // rien trouve !\n\t\t}\n\t}\n\t$form = formulaire_recherche(\"auteurs\",(($s=_request('statut'))?\"<input type='hidden' name='statut' value='$s' />\":\"\"));\n\texec_auteurs_args($statut, $tri, $debut, $recherche,$form, $cherche);\n}", "function prix_objets_devises_disponibles() {\n\t$devises = array();\n\tforeach (prix_lister_devises() as $cle => $valeur) {\n\t\t$devises[$cle] = $valeur['symbole'];\n\t}\n\treturn $devises;\n}", "public function filterNotNull(): Set;", "public function cleanDuplicates( );", "protected function buildItemsList()\n {\n $creances = $this->entityManager->getRepository('OvescoFacturationBundle:Creance')\n ->findBy(['debiteurId' => $this->getParameter('debiteurId')]);\n return array_filter($creances, function(Creance $creance) { return $creance->getFacture() === null; });\n }", "function spiplistes_listes_auteurs_elligibles ($id_liste, $statut_liste = '', $faire = '') {\n\t$nb_auteurs = 0;\n\t$auteurs_array = array();\n\tif($lister_moderateurs = ($faire == 'moderer')) {\n\t\t// recupere la liste des moderateurs\n\t\t$ids_already = spiplistes_mod_listes_get_id_auteur($id_liste);\n\t\t$ids_already = (isset($ids_already[$id_liste]) ? $ids_already[$id_liste] : array());\n\t\t$sql_where[] = 'statut='.sql_quote('0minirezo');\n\t}\n\telse {\n\t\t// recupere la liste des abonnes\n\t\t$ids_already = spiplistes_listes_liste_abo_ids($id_liste);\n\t\t// prepare la liste des non-abonnes elligibles\n\t\t$sql_where = array(\"email <> ''\"); // email obligatoire !\n\t\t// si liste privee, ne prend que l'equipe de redacs\n\t\tif($statut_liste == _SPIPLISTES_LIST_PRIVATE) {\n\t\t\t$sql_where[] = \"(statut=\".sql_quote('0minirezo').\" OR statut=\".sql_quote('1comite').\")\";\n\t\t}\n\t}\n\t$sql_from = array(\"spip_auteurs\");\n\t// demande la liste des elligibles\n\t$sql_result = sql_select(\"nom,id_auteur,statut\", $sql_from, $sql_where, '', array('statut','nom'));\n\tif(sql_count($sql_result)) {\n\t\twhile($row = sql_fetch($sql_result)) {\n\t\t\t// ne pas prendre ceux deja abonnes\n\t\t\tif(in_array($row['id_auteur'], $ids_already)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(!isset($auteurs_array[$row['statut']])) {\n\t\t\t\t$auteurs_array[$row['statut']] = array();\n\t\t\t}\n\t\t\t$auteurs_array[$row['statut']][$row['id_auteur']] = $row['nom'];\n\t\t\t$nb_auteurs++;\n\t\t}\n\t}\n\treturn(array($auteurs_array, $nb_auteurs));\n}", "function liste_utilisateur(){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->prepare(\"SELECT id_utilisateur, pseudo FROM utilisateur WHERE status_utilisateur = ? AND fqdn_blog NOT LIKE 'supprimer'\");\n\t\t$req->execute(array(0));\n\t\t$result = $req->fetchAll();\n\t\t\n\t\t$req->closeCursor();\n\t\treturn $result;\n\t}", "function elementosRepetidos($array, $devolverTodos =false) {\n $repetidos=[];\n foreach ((array)$array as $value) {\n $inArray = false;\n foreach ($repetidos as $key => $v) {\n if($v['value']===$value){\n $inArray=true;\n ++$repetidos[$key]['numero'];\n }\n }\n if (false === $inArray){\n //$key= count($repetidos);\n //$repetidos[$key]=[];\n array_push($repetidos,[\n 'value'=>$value,\n 'numero'=>1\n ]);\n //$repetidos[$key]['value']=$value;\n //$repetidos[$key]['numero'] = 1;\n }\n }\n \n if (!$devolverTodos){\n foreach ($repetidos as $i => $vItem) {\n if($vItem['numero'] === 1){\n unset($repetidos[$i]);\n }\n }\n }\n \n sort($repetidos);\n return $repetidos;\n}", "static public function showOnlyNotTargetVisits(){\n $registro = static::leftJoin(\"users\",\"visitors.user_id\",\"=\",\"users.id\")\n ->join('handling_times',\"visitors.handling_time_id\",\"=\",\"handling_times.id\")\n ->join('direction_tickets',\"visitors.direction_ticket_id\",\"=\",\"direction_tickets.id\")\n ->join('directions',\"direction_tickets.direction_id\",\"=\",\"directions.id\")\n ->join('sectors',\"directions.sector_id\",\"=\",\"sectors.id\")\n ->select('visitors.id','first_name','last_name','identification_card','phone','sector','input')\n ->where('output','=',null)\n ->orderBy('visitors.id', 'DESC')\n ->paginate(30);;\n return $registro;\n }", "function spiplistes_listes_boite_elligibles ($id_liste, $statut_liste, $tri, $debut) {\n\t\n\t$result = '';\n\t\n\t// proposer les elligibles si id_liste (liste_gerer)\n\tif($id_liste > 0) {\n\t\tlist($elligibles, $nb_elligibles) = spiplistes_listes_auteurs_elligibles($id_liste, $statut_liste);\n\t\tif($nb_elligibles > 0) {\n\t\t\t$result = spiplistes_listes_selectionner_elligibles(\n\t\t\t\t$elligibles\n\t\t\t\t, $nb_elligibles\n\t\t\t\t, $id_liste\n\t\t\t\t, $tri\n\t\t\t\t, _SPIPLISTES_ACTION_ABONNER_AUTEUR\n\t\t\t\t, _SPIPLISTES_EXEC_LISTE_GERER\n\t\t\t\t, _SPIPLISTES_ID_GROSSE_BOITE\n\t\t\t);\n\t\t}\n\t}\n\treturn($result);\n}", "public function VerDetallesVentas()\n{\n\tself::SetNames();\n\t$sql = \" SELECT * FROM detalleventas LEFT JOIN categorias ON detalleventas.codcategoria = categorias.codcategoria WHERE detalleventas.codventa = ?\";\t\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindValue(1, trim(base64_decode($_GET[\"codventa\"])));\n\t$stmt->execute();\n\t$num = $stmt->rowCount();\n\n\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t$this->p[]=$row;\n\t\t}\n\t\treturn $this->p;\n\t\t$this->dbh=null;\n\t}", "public function ListarDetallesCompras()\n{\n\tself::SetNames();\n\n\tif($_SESSION['acceso'] == \"administrador\") {\n\n\t\t$sql = \" SELECT * FROM detallecompras LEFT JOIN categorias ON detallecompras.categoria = categorias.codcategoria\";\n\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t{\n\t\t\t$this->p[] = $row;\n\t\t}\n\t\treturn $this->p;\n\t\t$this->dbh=null;\n\t}\n\telse {\n\n\t\t$sql = \" SELECT * FROM detallecompras LEFT JOIN categorias ON detallecompras.categoria = categorias.codcategoria WHERE detallecompras.codigo = \".$_SESSION[\"codigo\"].\"\";\n\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t{\n\t\t\t$this->p[] = $row;\n\t\t}\n\t\treturn $this->p;\n\t\t$this->dbh=null;\n\t}\n}", "function get_designaciones_ocupa_reserva($anio){\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($anio);\n $udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($anio);\n \n $sql=\"select distinct t_d.id_designacion,\"\n // . \" case when t_d.id_norma is null then (t_d1.apellido||', '||t_d1.nombre||'('||'id:'||t_d.id_designacion||'-'||t_d.cat_mapuche||')') else t_d1.apellido||', '||t_d1.nombre||'('||'id:'||t_d.id_designacion||'-'||t_d.cat_mapuche||'-'||t_no.nro_norma||'/'|| extract(year from t_no.fecha)||')' end as descripcion \"\n . \" trim(t_d1.apellido)||', '||trim(t_d1.nombre)||' '||t_d.cat_estat||t_d.dedic||'-'||t_d.carac||'(id:'||t_d.id_designacion||') '||' desde: '||to_char(t_d.desde,'DD/MM/YYYY')||' '||coalesce(t_no.emite_norma,'')||case when t_no.nro_norma is not null then ': ' else '' end||coalesce(cast(t_no.nro_norma as text),'')||case when t_no.nro_norma is not null then '/' else '' end||coalesce(cast(extract(year from t_no.fecha) as text),'') as descripcion\"\n . \" from designacion t_d \"\n . \" LEFT OUTER JOIN norma t_no ON (t_d.id_norma=t_no.id_norma), docente t_d1, unidad_acad t_u\"\n . \" where t_d.id_docente=t_d1.id_docente \"\n . \" and t_d.uni_acad=t_u.sigla \"\n . \" and not(t_d.hasta is not null and t_d.desde>t_d.hasta)\"//descarto que se anulo\n . \" and t_d.desde<'\".$udia.\"' and (t_d.hasta>'\".$pdia.\"' or t_d.hasta is null)\"\n . \" and t_d.carac='I' \"\n . \" and not exists (select * from novedad t_no where t_no.id_designacion=t_d.id_designacion\"\n . \" and t_no.tipo_nov in (2,5) \"\n . \" and t_no.desde<'\".$udia.\"' and t_no.hasta>'\".$pdia.\"')\"\n . \" order by descripcion\";\n \n $sql = toba::perfil_de_datos()->filtrar($sql);//aplico el perfil de datos\n return toba::db('designa')->consultar($sql);\n }", "public function materiasHabilitadas(){\n\t\t$connection = Connection::getInstance();\n\t\t$result \t= $connection->query(\"SELECT distinct materias.id \n\t\t\t\t\t\t\t\t\t\t FROM materias, grupos \n\t\t\t\t\t\t\t\t\t\t WHERE grupos.materia_id = materias.id AND \n\t\t\t\t\t\t\t\t\t\t materias.id NOT IN \n\t\t\t\t\t\t\t\t\t\t (SELECT grupos.materia_id \n\t\t\t\t\t\t\t\t\t\t FROM usuarios, inscripciones, grupos \n\t\t\t\t\t\t\t\t\t\t WHERE tipo_usuario = \".Usuario::ESTUDIANTE.\" AND \n\t\t\t\t\t\t\t\t\t\t usuarios.id = $this->id AND \n\t\t\t\t\t\t\t\t\t\t usuarios.id = inscripciones.usuario_id AND \n\t\t\t\t\t\t\t\t\t\t grupos.id = inscripciones.grupo_id)\");\n\t\t$res \t\t= array();\n\t\t\n\t\twhile ($id = pg_fetch_array($result)[0]){\n\t\t\t$res[] = new Materia($id);\n\t\t}\n\t\t\n\t\treturn $res;\n\t}", "public function getViajesAbiertosDe() {\n $sql = \"select estado_viaje.nombre as estadonombre, viaje.id, viaje.asientos, viaje.origen, viaje.destino, viaje.monto, usuarios.nombre, usuarios.apellido, usuarios.foto\n from viaje \n inner join estado_viaje on viaje.id_estado = estado_viaje.id\n inner join usuarios on viaje.id_chofer = usuarios.id\n where viaje.id_estado in (1, 4)\";\n $this->_db->execute($sql);\n return $this->_db->fetchAll();\n }", "public function getDistinctOn()\n {\n return $this->distinct_on;\n }", "public function traerDocentesActivos(){\n $docentes = DB::select('SELECT docente.idDocente, CONCAT(docente.apPaterno, \" \",docente.apMaterno,\" \", docente.nombres) as nombre_completo from docente where not exists (select docente_grupo.idDocente from docente_grupo where docente_grupo.idDocente = docente.idDocente) AND docente.estatus = 1 AND docente.tipo <> 1 AND docente.tipo <>4 AND docente.tipo <>5 ORDER BY nombre_completo ASC');\n \n\n return $docentes;\n }", "public static function getVinculosMasculinos() {\n return array_values(array_unique(self::$vinculosMasculinos));\n }", "function buscarEspaciosVistos(){\r\n $i=0;\r\n $espacios_vistos=isset($espacios_vistos)?$espacios_vistos:'';\r\n $espacios=isset($reprobados)?$reprobados:'';\r\n \r\n if(is_array($this->espaciosCursados)){\r\n foreach ($this->espaciosCursados as $espacio) {\r\n $espacios[$i]=$espacio[0];\r\n $i++;\r\n }\r\n }\r\n \r\n if(is_array($espacios)){\r\n $espacios= array_unique($espacios);\r\n if($this->datosEstudiante['IND_CRED']=='S'){\r\n foreach ($espacios as $key => $espacio) {\r\n foreach ($this->espaciosCursados as $cursado) {\r\n if($espacio==$cursado['CODIGO']){\r\n $espacios_vistos[$key]['CODIGO']=$cursado['CODIGO'];\r\n $espacios_vistos[$key]['CREDITOS']=(isset($cursado['CREDITOS'])?$cursado['CREDITOS']:0);\r\n }\r\n }\r\n }\r\n }else{\r\n $espacios_vistos=$espacios;\r\n }\r\n \r\n }\r\n return $espacios_vistos;\r\n }", "public function selectAllDemande()\n {\n $requete = \"SELECT * FROM \n $this->table p, \".self::TDEMANDEUR.\" d, \".self::TDETPRESTA.\" dp, \".self::TLIEU.\" l, \".self::TCATDEMANDEUR.\" cd\n WHERE p.id_demandeur=d.id AND p.id_lieu=l.id AND dp.id_prestation=p.id AND d.id_cat_demandeur=cd.id limit 10\";\n\n return $this->pdo->query($requete)->fetchAll();\n }", "public function demandeListeTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Demande\");//type array\n\t}", "function retourneListeAdministrateurs(){\n\tglobal $connexion; // on définie la variables globale de connection dans la fonction\n\t\n\t$utilisateurs = array();\n\t$requete = $connexion->query(\"SELECT * FROM utilisateur WHERE type='1' OR type='2'\");\n\t$requete->setFetchMode(PDO::FETCH_OBJ);\n\twhile($enregistrement = $requete->fetch()){\n\t\t$utilisateurs[] = $enregistrement; // on ajoute à $utilisateurs[n+1] un objet utilisateur\n\t}\n\treturn $utilisateurs;\n}", "private function requete_deja_choisi()\r\n\t{\r\n\t\t$liste_eleves = array();\r\n\t\t$req = mysql_query(\"SELECT * FROM binome WHERE nom2 = '\" . $this->login . \"'\");\r\n\t\twhile($data = mysql_fetch_array($req)) {\r\n\t\t\tarray_push($liste_eleves, $data['nom1']);\r\n\t\t}\r\n\t\treturn $liste_eleves;\r\n\t}", "public function nequal_vencimiento($insumos){\n\n\t\t$errores = [];\n\n\t\tforeach($insumos as $insumo){\n\n\t\t\tif(!isset($insumo['lote']) || empty($insumo['lote']))\n\t\t\t\tcontinue;\n\n if(isset($insumo['fecha']) && !empty($insumo['fecha'])){\n\n $vencimiento = Lote::where('insumo', $insumo['id'])\n ->where('codigo', $insumo['lote'])\n ->where('deposito', Auth::user()->deposito)\n ->orderBy('id', 'desc')\n ->value('vencimiento');\n\n if($vencimiento and $vencimiento->ne(new Carbon($insumo['fecha']))){\n \tarray_push($errores, $insumo['id']);\n }\n }\n\t }\n\n\t return $errores;\n\t}", "public function getGiorniNonLavorativi() {\r\n $giorniNonLavorativi = Array();\r\n foreach ($this->getArrayWorkingPlanClinica()as $key => $value) {\r\n if ($value === NULL) {\r\n $giorniNonLavorativi[] = $key;\r\n }\r\n }\r\n return $giorniNonLavorativi;\r\n }", "public function distinctActivity()\n {\n return $this->hasMany('App\\Activity')->distinct('from_address');\n }", "public final function isDistinct()\n {\n $this->distinct = true;\n return $this;\n }", "public function VerDetallesCreditos()\n{\n\tself::SetNames();\n\t$sql = \" select * FROM abonoscreditos INNER JOIN ventas ON abonoscreditos.codventa = ventas.codventa WHERE abonoscreditos.codventa = ?\";\t\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindValue(1, trim(base64_decode($_GET[\"codventa\"])));\n\t$stmt->execute();\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"<div class='alert alert-danger'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<center><span class='fa fa-info-circle'></span> NO EXISTEN ABONOS PARA CR&Eacute;DITOS ACTUALMENTE</center>\";\n\t\techo \"</div>\";\n\t\texit;\n\t}\n\telse\n\t{\n\n\t\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[]=$row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "public function listDemarcaciones()\n {\n $list_demarcaciones = \\common\\models\\autenticacion\\Demarcaciones::find()->all();\n\n return $list_demarcaciones;\n }", "function dedupe_using_hollis_id($docs) {\n $deduped_docs = array();\n foreach ($docs as $doc) {\n $in_array = False;\n foreach ($deduped_docs as $deduped_doc) {\n if ($deduped_doc['name'] == $doc['name']) {\n $in_array= True;\n }\n }\n if (!$in_array) {\n $deduped_docs[] = $doc;\n }\n }\n return $deduped_docs;\n }", "public function distinct() {\n $this->distinctValues = true;\n return $this;\n }", "function getListe( $num_commande=0, $liste_exclusion='', $tri='commande_erreur.date_creation', $ordre='ASC') {\n\t\t$commande = new commande();\n\t\t\n\t\tif ( $tri == \"\" ) $tri = \"commande.date_creation\";\n\t\tif ( $ordre == \"\" ) $ordre = \"ASC\";\n\t\t\n\t\t$requete = \"SELECT * FROM commande_erreur\";\n\t\t$requete .= \" INNER JOIN client ON client.num_commande = commande.num_commande\";\n\t\t$requete .= \" WHERE num_commande_erreur > 0\";\n\t\t\n\t\tif ( intval( $num_commande ) > 0 ) $requete .= \" AND commande.num_commande = '\" . $num_commande . \"'\";\n\t\tif ( $liste_exclusion != \"\" ) $requete .= \" AND commande.num_commande_erreur NOT IN (\" . $liste_exclusion . \")\";\n\t\tif ( $supprime != \"\" ) $requete .= \" AND supprime = \" . $supprime;\n\t\t$requete .= \" ORDER BY \" . $tri . \" \" . $ordre;\n\t\t//echo $requete . \"<br><br>\";\n\t\t$liste = mysql_query($requete);\n\t\t\n\t\t// Retourne un tableau\n\t\t$tableau_commande = array();\n\t\t\n\t\tif (mysql_num_rows($liste) != 0) {\n\t\t\t$i = 0;\n\t\t\twhile($data = mysql_fetch_assoc($liste)) {\n\t\t\t\t\n\t\t\t\t// Tentative de chargement\n\t\t\t\tif ( $commande->load( $data[\"num_commande_erreur\"] ) ) {\n\t\t\t\t\t//echo \"-->\" . $this->num_commande . \"<br>\";\n\t\t\t\t\t$tableau_commande[$i] = new commande();\n\t\t\t\t\t\n\t\t\t\t\t$tableau_commande[$i]->num_commande_erreur = $commande->num_commande_erreur;\n\t\t\t\t\t$tableau_commande[$i]->num_commande = $commande->num_commande;\n\t\t\t\t\t$tableau_commande[$i]->texte = $commande->texte;\n\t\t\t\t\t$tableau_commande[$i]->date_creation = $commande->date_creation;\n\t\t\t\t\t\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $tableau_commande;\n\t}", "public function distinct($distinct = true) {\n\t\t$this->distinct = $distinct;\n\t}", "public function listeDerniereCotation(){\n //$demandes est utilisee a la page d'accueil apres l'authentification\n //donc necessaires pour toutes les fonction qui utilse cette page\n\n $demandes = nonConsult();\n\n $commandes=DB::table('fournisseurs')\n ->join('commandes','fournisseurs.id','=','commandes.fournisseurs_id')\n ->join('cotations', 'cotations.id', '=', 'commandes.cotations_id')\n ->select('fournisseurs.nomSociete','fournisseurs.nomDuContact','fournisseurs.prenomDuContact','fournisseurs.telephoneDuContact',\n 'cotations.codeCotation','commandes.*')\n ->where([\n ['commandes.cotations_id','=',Cotation::max('id')],\n ['commandes.etat','=',1]\n ])\n ->get();\n\n $comm = 0;\n return view('commandes.liste',compact('commandes', 'demandes','comm'));\n }", "public function findDetalleRecolectado()\r\n\t\t{\r\n\t\t\t$findModel = self::findDetalleRecaudacionModel();\r\n\t\t\treturn $findModel->orderBy([\r\n\t\t\t\t\t\t\t\t\t'lapso' => SORT_ASC,\r\n\t\t\t\t\t\t\t\t\t'fecha_pago' => SORT_ASC,\r\n\t\t\t\t\t\t\t\t\t'codigo' => SORT_ASC,\r\n\t\t\t\t\t\t\t\t])\r\n\t\t\t\t\t\t\t ->asArray()\r\n\t\t\t\t \t\t ->all();\r\n\t\t}", "function getUtentiFromUfficio($pdo, $ufficio_id){\n\n $statement = $pdo->prepare(\"\n SELECT DISTINCT CONCAT(A.nome,' ',A.cognome) as utente\n FROM richiesta A\n WHERE A.ufficio_id = $ufficio_id\n ORDER BY utente\n \");\n\n $statement->execute();\n return $statement->fetchAll(PDO::FETCH_OBJ);\n\n}", "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 }", "public function findPagoDetalleVario()\r\n\t\t{\r\n\t\t\t$codigoPresupuestario = [\r\n\t\t\t\t'301034900',\r\n\t\t\t\t'301035900',\r\n\t\t\t];\r\n\r\n\t\t\t$impuesto = [\r\n\t\t\t\t5, 8, 9, 10, 11\r\n\t\t\t];\r\n\r\n\t\t\t$registers = self::findPagoDetalleVarioModel($impuesto, $codigoPresupuestario, 'NOT IN');\r\n\t\t\tif ( !self::guardarConsultaRecaudacion($registers) ) {\r\n\t\t\t\tself::errorCargarData(Yii::t('backend', 'Otros conceptos'));\r\n\t\t\t}\r\n\r\n\r\n\t\t\t// Deuda Morora por Tasa.\r\n\t\t\tif ( date('Y-m-d') > date('Y-m-d', strtotime('2014-03-01')) ) {\r\n\t\t\t\t$codigoPresupuestario = ['301035900'];\r\n\t\t\t\t$impuesto = [9];\r\n\r\n\t\t\t\t$registers = self::findPagoDetalleVarioModel($impuesto, $codigoPresupuestario, 'IN');\r\n\t\t\t\tif ( !self::guardarConsultaRecaudacion($registers) ) {\r\n\t\t\t\t\tself::errorCargarData(Yii::t('backend', 'Deuda Morosa por Tasa'));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t\t// Certificacion y solvencia.\r\n\t\t\t$codigoPresupuestario = ['301034900'];\r\n\t\t\t$impuesto = [4, 5, 6, 7, 8, 9, 10, 11, 12];\t// impuesto > 3\r\n\r\n\t\t\t$registers = self::findPagoDetalleVarioModel($impuesto, $codigoPresupuestario, 'IN');\r\n\t\t\tif ( !self::guardarConsultaRecaudacion($registers) ) {\r\n\t\t\t\tself::errorCargarData(Yii::t('backend', 'Certificacion y Solvencia'));\r\n\t\t\t}\r\n\r\n\t\t}", "public static function distinctTriplets($n)\n {\n $arr = array();\n echo \"enter the elements \\n\";\n\n //enter the elements to array\n for ($i = 0; $i < $n; $i++) {\n $arr[$i] = Utility::readInt();\n }\n $totalDistinct = 0;\n\n for ($i = 0; $i < sizeof($arr); $i++) {\n for ($j = $i + 1; $j < sizeof($arr); $j++) {\n for ($k = $j + 1; $k < sizeof($arr); $k++) {\n\n //sum of three values of arry is equal to 0\n if (($arr[$i] + $arr[$j] + $arr[$k]) == 0) {\n echo $arr[$i] . \" \", $arr[$j] . \" \" . $arr[$k] . \" \";\n $totalDistinct++;\n }\n }\n }\n }\n echo \"\\n total distinct triplets are \" . $totalDistinct . \"\\n\";\n }", "public function eventisegnalati(){\r\n $query = \"SELECT DISTINCT idev FROM segnalazione \";\r\n\t\t$result = self::$conn->query($query);\r\n $id = array();\r\n if($result){\r\n while($row = $result->fetch_assoc()){\r\n $id[] = $row['idev']; \r\n }\r\n }\r\n return $id;\r\n }", "public function get_distinct_dates($date){\n $this->load->database();\n\n $query = $this->db->select('distinct(date)')->order_by('date')\n ->get_where('tbl_transactions',array('left(date,7)' => $date));\n return $query->result_array();\n }", "public function hasDistinct()\n\t\t{\n\t\t\treturn $this->hasDistinct;\n\t\t}", "public function findDistinctUrlPics()\n {\n return $this->createStandardQueryBuilder()->distinct('pics.url')->sort('public_date', 1)->getQuery()->execute();\n }", "final public function getDistinctUserCriteria() {\n return [\n 'FIELDS' => [\n User::getTable() . '.id AS users_id',\n User::getTable() . '.language AS language'\n ],\n 'DISTINCT' => true,\n ];\n }", "private function eliminarEmpleadoRepetido()\n {\n //Sino me los trata como strings\n $this->empleados = array_unique($this->empleados, SORT_REGULAR);\n }", "function liste_demande_star(){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->prepare(\"SELECT id_utilisateur,pseudo FROM utilisateur WHERE devenir_star = TRUE\");\n\t\t$req->execute(array(0));\n\t\t$result = $req->fetchAll();\n\t\t\n\t\t$req->closeCursor();\n\t\treturn $result;\n\t}", "static function unique($list){\n\t\treturn array_values(array_unique($list, SORT_REGULAR));\n\t}", "function getKats($akt) {\r\n $katAR = array();\r\n $kats = '';\r\n $erg = db_query(\"SELECT DISTINCT `news_kat` FROM `prefix_news`\");\r\n while ($row = db_fetch_object($erg)) {\r\n $katAr[ ] = $row->news_kat;\r\n }\r\n $katAr[ ] = 'Allgemein';\r\n $katAr = array_unique($katAr);\r\n foreach ($katAr as $a) {\r\n if (trim($a) == trim($akt)) {\r\n $sel = ' selected';\r\n } else {\r\n $sel = '';\r\n }\r\n $kats .= '<option' . $sel . '>' . $a . '</option>';\r\n }\r\n return ($kats);\r\n}", "public function listarDeportestodo(){\n $sql = \"SELECT `Sport`.`id` as iddeporte, `Sport`.`nombre` FROM `sporte`.`coaches` AS `Coach` LEFT JOIN `sporte`.`users` AS `User` ON (`Coach`.`user_id` = `User`.`id`) LEFT JOIN `sporte`.`ligas` AS `Liga` ON (`Coach`.`liga_id` = `Liga`.`id`) LEFT JOIN `sporte`.`sports` AS `Sport` ON (`Liga`.`sport_id` = `Sport`.`id`) WHERE 1=1\";\n $sentencia = $this->dblink->prepare($sql);\n $sentencia->execute(); \n return $sentencia->fetchAll(PDO::FETCH_OBJ);\n }", "public function getListDemandesEnvoyees($idUser){\n\t\t$tabDemandesEnvoyees = array();\n\t\t$q = $this->pdo->prepare('SELECT * FROM demande WHERE idUtilisateur = :idUtilisateur');\n\t\t$q->bindValue(':idUtilisateur', $idUser, PDO::PARAM_INT);\n\t\t$q->execute();\n\t\twhile ($donnee = $q->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$tabDemandesEnvoyees[] = new Demande($donnee);\n\t\t}\n\t\treturn $tabDemandesEnvoyees;\n\t}", "private function getSuppressionList($state) {\n $sql = \"SELECT * FROM suppressionList\n WHERE state = '{$state}' \n GROUP BY number\";\n $results=$this->db->query($sql,2);\n return $results;\n }", "public static function reporteEstadosDesignaciones()\n {\n $sql =\"SELECT sed.abreviacion as sede, fac.nombre as facultad, edes.descripcion as estado, COUNT(DISTINCT des.iddesignacion) as cantidad\n FROM designaciones des \n JOIN estados_designaciones edes ON des.idestadodesignacion = edes.idestadodesignacion\n JOIN profesores prof ON des.idprofesor = prof.idprofesor\n JOIN personas per ON prof.idpersona = per.idpersona \n JOIN dedicaciones ded ON des.iddedicacion = ded.iddedicacion\n JOIN catedras cat ON des.idcatedra = cat.idcatedra \n JOIN sedes sed ON cat.idsede = sed.idsede \n JOIN materias_planes mp ON cat.idmateriaplan = mp.idmateriaplan\n JOIN materias m ON mp.idmateria = m.idmateria\n JOIN planes_estudios pe ON mp.idplanestudio = pe.idplanestudio\n JOIN carreras car ON pe.idcarrera = car.idcarrera \n JOIN facultades fac ON car.idfacultad = fac.idfacultad \n JOIN tipos_designaciones td ON des.idtipodesignacion = td.idtipodesignacion\n JOIN categoria_designaciones cd ON td.idcategoriadesignacion= cd.idcategoriadesignacion\n WHERE YEAR(des.inicio)= YEAR(now()) \n GROUP BY car.idfacultad, sed.idsede, edes.idestadodesignacion\n ORDER BY sed.idsede, car.nombre; \";\n \n \n $q = Doctrine_Manager::getInstance()->getCurrentConnection()->fetchAssoc($sql);\n \n return $q;\n }", "public function view(){\n $email = Auth::guard('admin')->user()->email;\n $qds=Marts_Products::select('product_id')->where('email',$email)->pluck('product_id');\n $sel = Marts_Products::select('product_id')->where('email',$email)->get();\n \n if(isset($sel)){\n foreach($sel as $sels){\n $ang=Products::select('category')->where('id',$sels->product_id)->first();\n \n \n $this->rec[]=[\n \"categories\"=>$ang->category\n ];\n \n }\n\n if($this->rec){\n $cat=array_unique($this->rec,SORT_REGULAR);\n }\n else{\n \n return view('layouts.my_products')->with(\"err\",\"No Category Left to Show\")->with('categorie','');\n }\n\n$categorie= DB::table('Products')->get()->whereIn('id', $qds)->unique('subcategory')->groupBy('category');\n\n\nreturn view('layouts.my_products')->with('cat',$cat)->with('categorie',$categorie); \n}\nelse{\n dd(\"NOT REGISTERED\");\n}\n\n\n\n //$myvue[]=\n \n \n \n \n }", "public function getVakterInnenDogn()\n {\n $vakterInnenDogn = array();\n if ($this->harVakt()) {\n foreach (VaktListe::medBrukerId($this->brukerId) as $vakt) {\n if (floor((strtotime($vakt->getDato()) - time()) / (60 * 60 * 24)) <= 1 && !$vakt->erFerdig()) {\n $vakterInnenDogn[] = $vakt;\n }\n }\n }\n return $vakterInnenDogn;\n }", "function get_listado_estactual($filtro=array())\n\t{ \n $concat='';\n if (isset($filtro['anio']['valor'])) {\n \t$udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n\t\t} \n //que sea una designacion correspondiente al periodo seleccionado o anulada dentro del periodo \n $where=\" WHERE ((a.desde <= '\".$udia.\"' and (a.hasta >= '\".$pdia.\"' or a.hasta is null)) or (a.desde='\".$pdia.\"' and a.hasta is not null and a.hasta<a.desde))\";\n $where2=\" WHERE 1=1 \";//es para filtrar por estado. Lo hago al final de todo\n if (isset($filtro['uni_acad'])) {\n $concat=quote($filtro['uni_acad']['valor']);\n switch ($filtro['uni_acad']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.uni_acad = \".quote($filtro['uni_acad']['valor']);break;\n case 'es_distinto_de': $where.= \" AND a.uni_acad <> \".quote($filtro['uni_acad']['valor']);break;\n }\n }\n //si el usuario esta asociado a un perfil de datos le aplica igual a su UA\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and a.uni_acad = \".quote($resul[0]['sigla']);\n $concat=quote($resul[0]['sigla']);//para hacer el update de baja\n }\n if (isset($filtro['iddepto'])) {\n switch ($filtro['iddepto']['condicion']) {\n case 'es_igual_a': $where.= \" AND iddepto =\" .$filtro['iddepto']['valor'];break;\n case 'es_distinto_de': $where.= \" AND iddepto <>\" .$filtro['iddepto']['valor'];break;\n }\n }\n if (isset($filtro['por_permuta'])) {\n switch ($filtro['por_permuta']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.por_permuta =\" .$filtro['por_permuta']['valor'];break;\n case 'es_distinto_de': $where.= \" AND a.por_permuta <>\" .$filtro['por_permuta']['valor'];break;\n }\n }\n if (isset($filtro['carac']['valor'])) {\n switch ($filtro['carac']['valor']) {\n case 'R':$c=\"'Regular'\";break;\n case 'O':$c=\"'Otro'\";break;\n case 'I':$c=\"'Interino'\";break;\n case 'S':$c=\"'Suplente'\";break;\n default:\n break;\n }\n switch ($filtro['carac']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.carac=\".$c;break;\n case 'es_distinto_de': $where.= \" AND a.carac<>\".$c;break;\n }\t\n }\n if (isset($filtro['estado'])) {\n switch ($filtro['estado']['condicion']) {\n case 'es_igual_a': $where2.= \" and est like '\".$filtro['estado']['valor'].\"%'\";break;\n case 'es_distinto_de': $where2.= \" and est not like '\".$filtro['estado']['valor'].\"%'\";break;\n }\n }\n if (isset($filtro['legajo'])) {\n switch ($filtro['legajo']['condicion']) {\n case 'es_igual_a': $where.= \" and legajo = \".$filtro['legajo']['valor'];break;\n case 'es_mayor_que': $where.= \" and legajo > \".$filtro['legajo']['valor'];break;\n case 'es_mayor_igual_que': $where.= \" and legajo >= \".$filtro['legajo']['valor'];break;\n case 'es_menor_que': $where.= \" and legajo < \".$filtro['legajo']['valor'];break;\n case 'es_menor_igual_que': $where.= \" and legajo <= \".$filtro['legajo']['valor'];break;\n case 'es_distinto_de': $where.= \" and legajo <> \".$filtro['legajo']['valor'];break;\n case 'entre': $where.= \" and legajo >= \".$filtro['legajo']['valor']['desde'].\" and legajo <=\".$filtro['legajo']['valor']['hasta'];break;\n }\n } \n if (isset($filtro['docente_nombre'])) {\n switch ($filtro['docente_nombre']['condicion']) {\n case 'contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'no_contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) not like LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'comienza_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'termina_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_igual': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) == LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_distinto': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) <> LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n }\n } \n if (isset($filtro['programa'])) {\n $sql=\"select * from mocovi_programa where id_programa=\".$filtro['programa']['valor'];\n $resul=toba::db('designa')->consultar($sql);\n switch ($filtro['programa']['condicion']) {\n case 'es_igual_a': $where.= \" AND programa =\".quote($resul[0]['nombre']);break;\n case 'es_distinto_de': $where.= \" AND programa <>\".quote($resul[0]['nombre']);break;\n }\n } \n if (isset($filtro['tipo_desig'])) {\n switch ($filtro['tipo_desig']['condicion']) {\n case 'es_igual_a': $where.=\" AND a.tipo_desig=\".$filtro['tipo_desig']['valor'];break;\n case 'es_distinto_de': $where.=\" AND a.tipo_desig <>\".$filtro['tipo_desig']['valor'];break;\n }\n }\n if (isset($filtro['anulada'])) {\n switch ($filtro['anulada']['valor']) {\n case '0': $where.=\" AND not (a.hasta is not null and a.hasta<a.desde)\";break;\n case '1': $where.=\" AND a.hasta is not null and a.hasta<a.desde \";break;\n }\n } \n if (isset($filtro['cat_estat'])) {\n switch ($filtro['cat_estat']['condicion']) {\n case 'es_igual_a': $where2.= \" and cat_estat=\".quote($filtro['cat_estat']['valor']);break;\n case 'es_distinto_de': $where2.= \" and cat_estat <>\".quote($filtro['cat_estat']['valor']);break;\n }\n }\n if (isset($filtro['dedic'])) {\n switch ($filtro['dedic']['condicion']) {\n case 'es_igual_a': $where2.= \" and dedic=\".$filtro['dedic']['valor'];break;\n case 'es_distinto_de': $where2.= \" and dedic<>\".$filtro['dedic']['valor'];break;\n }\n } \n //me aseguro de colocar en estado B todas las designaciones que tienen baja\n if($concat!=''){ \n $sql2=\" update designacion a set estado ='B' \"\n . \" where estado<>'B' and a.uni_acad=\".$concat\n .\" and exists (select * from novedad b\n where a.id_designacion=b.id_designacion \n and (b.tipo_nov=1 or b.tipo_nov=4))\";\n }\n \n //designaciones sin licencia UNION designaciones c/licencia sin norma UNION designaciones c/licencia c norma UNION reservas\n $sql=$this->armar_consulta($pdia,$udia,$filtro['anio']['valor']);\n\t\t//si el estado de la designacion es B entonces le pone estado B, si es <>B se fija si tiene licencia sin goce o cese\n// $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n// . \"select sub2.*,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n// . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n// . \"from (\"\n// .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n// .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n// .\" from (\"\n// .\" select a.id_designacion,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,b.a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,check_presup,licencia,a.dias_des,a.dias_lic\".\n// \" from (\".$sql.\") a\"\n// .$where \n// .\") b \"\n// . \" )sub\"\n// . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n// . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n// . \")sub2\"//obtengo el id_novedad maximo\n// . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n// .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n// .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n// .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n// . \")sub3\"\n// .$where2\n// . \" order by docente_nombre,desde\"; \n $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,tkd,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n . \"select sub2.*,sub2.nro_540||'/'||t_i.anio as tkd,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n . \"from (\"\n .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n .\" from (\"\n .\" select a.id_designacion,a.por_permuta,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,t.iddepto,a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,a.check_presup,licencia,a.dias_des,a.dias_lic\".\n \" from (\".$sql.\") a\"\n . \" INNER JOIN designacion d ON (a.id_designacion=d.id_designacion)\"\n . \" LEFT OUTER JOIN departamento t ON (t.iddepto=d.id_departamento)\"\n .$where \n .\") b \"\n . \" )sub\"\n . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n . \")sub2\"//obtengo el id_novedad maximo\n . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n . \")sub3\"\n .$where2\n . \" order by docente_nombre,desde\"; \n return toba::db('designa')->consultar($sql);\n\t}", "public function getUniqueList() {\n $listQuery = $this->app->dbConn->raw(\"SELECT \".static::$TABLE.\".id, \".static::$TABLE.\".\".static::$TYPE_ID.\", \".static::$TABLE.\".time, \".static::$TABLE.\".score, \".static::$TABLE.\".status, \".static::$TABLE.\".\".static::$PART_NAME.\" FROM \".static::$TABLE.\"\n LEFT OUTER JOIN \".static::$TABLE.\" \".static::$TABLE.\"2 ON \".static::$TABLE.\".user_id = \".static::$TABLE.\"2.user_id\n AND \".static::$TABLE.\".\".static::$TYPE_ID.\" = \".static::$TABLE.\"2.\".static::$TYPE_ID.\"\n AND \".static::$TABLE.\".time < \".static::$TABLE.\"2.time\n WHERE \".static::$TABLE.\".user_id = \".intval($this->user_id).\"\n AND \".static::$TABLE.\"2.time IS NULL\n AND \".static::$TABLE.\".status != 0\n ORDER BY status ASC, score DESC\");\n $this->uniqueListAvg = $this->uniqueListStdDev = $uniqueListSum = $uniqueListCount = $uniqueListStdDev = 0;\n $returnList = [];\n while ($row = $listQuery->fetch()) {\n if ($row['score'] != 0) {\n $uniqueListCount++;\n $uniqueListSum += round(floatval($row['score']), 2);\n $uniqueListStdDev += pow(round(floatval($row['score']), 2) - $this->uniqueListAvg, 2);\n }\n $returnList[$row[static::$TYPE_ID]] = [\n strtolower(static::$LIST_TYPE) => new static::$LIST_TYPE($this->app, intval($row[static::$TYPE_ID])),\n 'id' => $row['id'],\n 'time' => $row['time'],\n 'score' => $row['score'],\n 'status' => $row['status'],\n static::$PART_NAME => $row[static::$PART_NAME]\n ];\n }\n $this->uniqueListAvg = ($uniqueListCount === 0) ? 0 : $uniqueListSum / $uniqueListCount;\n $this->uniqueListStdDev = ($uniqueListCount <= 1) ? 0 : pow($uniqueListStdDev / ($uniqueListCount - 1), 0.5);\n return $returnList;\n }", "public function VerDetallesCompras()\n{\n\tself::SetNames();\n\t$sql = \" SELECT * FROM detallecompras LEFT JOIN categorias ON detallecompras.categoria = categorias.codcategoria WHERE detallecompras.codcompra = ?\";\t\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindValue(1, trim(base64_decode($_GET[\"codcompra\"])));\n\t$stmt->execute();\n\t$num = $stmt->rowCount();\n\n\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t{\n\t\t$this->p[]=$row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}", "function spausdinti(array $ar)\n{\n\n if (isset($_COOKIE['filteredmasinos'])){\n $ar = unserialize($_COOKIE['filteredmasinos']);\n }\n\n\n usort($ar, function ($p1, $p2) {\n if ($p1->greitis() == $p2->greitis()) {\n return 0;\n } elseif ($p1->greitis() > $p2->greitis()) {\n return -1;\n }\n\n return 1;\n });\n\n\n\n\n foreach ($ar as $elem) {\n echo 'Data ir laikas: ' . $elem->date->format('Y-m-d H:i:s') . '<br>';\n echo 'Automobilio numeris: ' . $elem->number . '<br>';\n echo 'Nuvaziuotas atstumas metrais: ' . $elem->distance . '<br>';\n echo 'Sugaistas laikas sekundemis: ' . $elem->time . '<br>';\n echo '<b>Greitis: ' . $elem->greitis() . ' km/h </b><br>';\n echo '<br><br>';\n }\n\n}", "public function distinct()\n {\n $this->distinct = true;\n return $this;\n }", "public function get_list_utiliseoutil_utilisateur($visibility){\n if($visibility == null):\n $conditions =array('1=1');\n elseif ($visibility!=''):\n $conditions = array('Utilisateur.id > 1','Utilisateur.profil_id > 0','Utilisateur.section_id IN ('.$visibility.')');\n else:\n $conditions =array('Utilisateur.id > 1','Utilisateur.profil_id > 0','Utilisateur.section_id ='.userAuth('section_id'));\n endif; \n $utilisateurs = $this->Materielinformatique->Dotation->Utilisateur->find('list',array('fields' => array('id','NOMLONG'),'conditions'=>$conditions,'order'=>array('Utilisateur.NOMLONG'=>'asc'),'group'=>'Utilisateur.id','recursive'=>-1));\n return $utilisateurs;\n }", "function formulaires_moderation_lieu_charger_dist($id_lieu)\n{\n\t$valeurs = array();\n\n\t$valeurs['id_lieu'] = $id_lieu;\n\n\t$row = sql_fetsel(\n\t\tarray('nom','ville','adresse','tel','email','site_web'),\n\t\tarray('spip_lieux'),\n\t\tarray('id_lieu = '.$valeurs['id_lieu'])\n\t\t);\n\n\t$valeurs['nom'] = $row['nom'];\n\t$valeurs['adresse'] = $row['adresse'];\n\t$valeurs['tel'] = $row['tel'];\n\t$valeurs['email'] = $row['email'];\n\t$valeurs['ville'] = $row['ville'];\n\t$valeurs['site_web'] = $row['site_web'];\n\n\treturn $valeurs;\n}", "public function unidades()\n {\n return $this->em->createQuery('\n SELECT\n e.id, e.codigo, e.nome, e.mensagemImpressao\n FROM\n Novosga\\Model\\Unidade e\n WHERE\n e.status = 1\n ORDER BY\n e.nome ASC\n ')->getResult();\n }", "public function getDistinct() {\n\t\tif(is_null($this->distinct)) {\n\t\t\t$query = \"\";\n\t\t\t$query .= 'SELECT DISTINCT ';\n\t\t\t$query .= $this->getCodeField() . ' AS code, ';\n\t\t\t$query .= $this->getLabelField() . ' AS label';\n\t\t\t$query .= ' FROM ' . $this->getDatasourceName();\n\t\t\t$has_where = false;\n\t\t\tif(is_array($this->filter_value) && !in_array('-1', $this->filter_value)) {\n\t\t\t\t$select = \"\";\n\t\t\t\t$first = true;\n\t\t\t\tforeach($this->filter_value as $value) {\n\t\t\t\t\t$first ? $first = false : $select .= \",\";\n\t\t\t\t\t$select .= \"'\" . $value . \"'\";\n\t\t\t\t}\n\t\t\t\t$query .= ' WHERE ' . $this->getCodeField() . ' IN (' . $select . ')';\n\t\t\t\t$has_where = true;\n\t\t\t}\n\t\t\t$query .= ' ORDER BY ' . $this->getLabelField();\n\t\t\t$this->exploitResultset($this->execute($query));\n\t\t}\n\t\treturn $this->distinct;\n\t}", "function obtenerNotasEstudiante($codigo_estudiante){\n $notas_estudiante=array();\n if(count($this->notas>0)&&!empty($this->notas))\n {\n foreach ($this->notas as $key => $row) {\n if($row['COD_ESTUDIANTE']==$codigo_estudiante){\n $notas_estudiante[]=$row;\n unset($this->notas[$key]);\n }\n }\n }\n return $notas_estudiante;\n }", "function listaCompromissos($dia=\"\",$mes=\"\",$ano=\"\") {\n if (empty($dia)) {\n $data = getDate();\n $dia = $data[mday];\n $mes = $data[mon];\n $ano = $data[year];\n }\n\n $data_0_0 = strtotime(\"$mes/$dia/$ano 00:00\");\n $data_23_59 = strtotime(\"$mes/$dia/$ano 23:59:59\");\n $chaves = array();\n $chaves[] = opVal(\"timeData\",$data_0_0,\"\",\">=\");\n $chaves[] = opVal(\"timeData\",$data_23_59,\"\",\"<=\");\n $chaves[] = opVal(\"codUser\",$this->codUser);\n $ordem = \"timeData desc\";\n\n $compromissos = new RDLista(\"RDCompromisso\",$chaves,$ordem);\n return $compromissos;\n }", "function listaAprovados($nota){\n return $aprovados = array_filter($nota, validaMedia);\n}", "public function list_requerimientos_eliminados($cite_id){\n $sql = 'select *\n from insumo_delete id\n Inner Join insumos_historial as ih On ih.insh_id=id.insh_id\n Inner Join partidas as pa On pa.par_id=ih.par_id\n Inner Join vista_temporalidad_insumo_historial as temp On temp.insh_id=ih.insh_id\n Inner Join _productos as p On p.prod_id=ih.id\n where id.cite_id='.$cite_id.' and ih.ins_estado!=\\'3\\' and ih.aper_id!=\\'0\\' and p.estado!=\\'3\\' and id.estado!=\\'3\\'';\n\n $query = $this->db->query($sql);\n return $query->result_array();\n }", "function unique_Category() {\n\t\t\n\t\tglobal $gesamt;\n\t\t\n\t\t$result = array_unique($gesamt);\n\t\tforeach ($result as $element){\n\t\t\techo \"<a href=\\\"load_page.php?cat=\" . $element .\"\\\">\". $element . \"</a><br>\";\n\t\t}\n\t}", "function obtenirListeEmailPersonnesAJourDeCotisation()\n {\n $timestamp = time() - 60 * 86400;\n // Personne physique seule\n $requete = \"SELECT group_concat(DISTINCT email SEPARATOR ';')\n FROM (\n SELECT app.email\n FROM afup_cotisations ac\n INNER JOIN afup_personnes_physiques app ON app.id = ac.id_personne\n WHERE date_fin >= \" . $timestamp . \"\n AND type_personne = 0\n AND etat = 1\n UNION\n SELECT app.email\n FROM afup_cotisations ac\n INNER JOIN afup_personnes_physiques app ON app.id_personne_morale = ac.id_personne\n WHERE date_fin >= \" . $timestamp . \"\n AND type_personne = 1\n AND etat = 1 ) tmp\";\n return $this->_bdd->obtenirUn($requete);\n }", "private function telaPerfilGerente()\r\n {\r\n //Carregando as lojas do banco de dados\r\n $repositorio = $this->getDoctrine()->getRepository('DCPBundle:Quebra');\r\n\r\n $sql = $repositorio->createQueryBuilder('l')\r\n ->select('l.id')\r\n ->groupby('l.id')\r\n ->getquery();\r\n\r\n $resultado = $sql->getResult();\r\n\r\n $loja = array();\r\n $contLoja = 0;\r\n foreach($resultado as $data)\r\n {\r\n if (!in_array($data, $loja))\r\n {\r\n $loja[$contLoja] = $data[\"id\"];\r\n $contLoja++;\r\n }\r\n }\r\n \r\n return $loja;\r\n }" ]
[ "0.7054337", "0.69479585", "0.6070929", "0.5809279", "0.57638013", "0.5729196", "0.57240325", "0.5675078", "0.5649254", "0.5609112", "0.55991715", "0.5586681", "0.5474495", "0.54269713", "0.5387184", "0.53556687", "0.53295255", "0.5291401", "0.52845657", "0.5275648", "0.5273646", "0.5263898", "0.5245926", "0.52249396", "0.5207017", "0.5158974", "0.5150856", "0.51451087", "0.51374507", "0.51374507", "0.5133886", "0.5120877", "0.51137316", "0.5108739", "0.5088394", "0.5074337", "0.5062076", "0.50608975", "0.5057789", "0.5041534", "0.50396574", "0.5033247", "0.5032991", "0.50323623", "0.5023392", "0.5022071", "0.5004305", "0.500098", "0.49834952", "0.49676853", "0.4962527", "0.49600658", "0.4950237", "0.49452022", "0.4934182", "0.4925733", "0.4917905", "0.4910838", "0.4908757", "0.49077103", "0.4903193", "0.48961198", "0.48824617", "0.48809922", "0.48762876", "0.48656523", "0.48650095", "0.48618454", "0.4861161", "0.48559976", "0.48535243", "0.4846552", "0.48245513", "0.48245475", "0.4823749", "0.48220065", "0.4819405", "0.4818406", "0.48126373", "0.4808378", "0.4805391", "0.48049304", "0.47832888", "0.47758657", "0.47746468", "0.4774052", "0.4769692", "0.47621956", "0.47600633", "0.47573712", "0.47551864", "0.47501707", "0.47489962", "0.47487503", "0.47473362", "0.47448727", "0.4744793", "0.47435656", "0.47369492", "0.47363135", "0.4733186" ]
0.0
-1
Liste des factures for DataTables
public function liste($id = 0, $limit = 0, $offset = 1, $filters = null, $ordercol = 2, $ordering = "asc") { /* PHP Logic replaced by query: ==================================================================================== SELECT fac_id AS RowID, fac_id, fac_date, fac_tva, ctc_nom, dvi_correspondant, cor_nom, fac_transmise, fac_relance, fac_contentieux, fac_notes, vef_etat, fac_couleur, fac_masque, fac_fichier, fac_reference, scv_nom, dvi_reference, fac_reprise, fac_montant_htnr, fac_montant_ht, fac_montant_tva, fac_montant_ttc, fac_regle, fac_reste, fac_reste AS solde_du, fac_etat, IF( fac_reste>=0.01 AND fac_etat=2, 1, 0) AS due, ipu_facture, ipu_reglements, rgl_references, dvi_client, dvi_id_comptable, IF( dvi_client=0, dvi_id_comptable, ctc_id_comptable) AS ctc_id_comptable, cor_email, ctc_email, IF( dvi_client=0, '', COALESCE(cor_email, ctc_email,'')) AS mail, cor_telephone1, ctc_telephone, IF( dvi_client=0, '', COALESCE(cor_telephone1, ctc_telephone,'')) AS telephone, cor_telephone2, ctc_mobile, IF( dvi_client=0, '', COALESCE(cor_telephone2, ctc_mobile,'')) AS portable, '' AS texte_rappel, fac_id_rappel, IF(fac_id_rappel=0, '', fac_rappel) AS fac_rappel FROM `t_factures` LEFT JOIN `t_commandes` ON `cmd_id` = `fac_commande` LEFT JOIN `t_devis` ON `dvi_id` = `cmd_devis` LEFT JOIN `t_contacts` ON `ctc_id` = `dvi_client` LEFT JOIN `t_correspondants` ON `cor_id` = `dvi_correspondant` LEFT JOIN `t_societes_vendeuses` ON `scv_id` = `dvi_societe_vendeuse` LEFT JOIN `v_etats_factures` ON `vef_id` = `fac_etat` LEFT JOIN ( SELECT `ipu_facture` , GROUP_CONCAT(`ipu_reglement` SEPARATOR ':') AS ipu_reglements, GROUP_CONCAT(`rgl_reference` SEPARATOR ':') AS rgl_references FROM `t_imputations` LEFT JOIN `t_reglements` ON `rgl_id` = `ipu_reglement` WHERE `ipu_inactif` IS NULL GROUP BY `ipu_facture` ORDER BY `ipu_facture` ) AS REGLEMENTS ON fac_id = ipu_facture WHERE `fac_inactif` IS NULL ORDER BY `fac_date` DESC , `fac_reference` DESC ==================================================================================== */ // première partie du select, mis en cache $this->db->start_cache(); // lecture des informations $this->db->select("*", false); $this->db->stop_cache(); $table = "(SELECT fac_id AS RowID, fac_id, fac_date, fac_tva, ctc_nom, dvi_correspondant, cor_nom, fac_transmise, fac_relance, fac_contentieux, fac_notes, vef_etat, fac_couleur, fac_masque, fac_fichier, fac_reference, scv_nom, dvi_reference, fac_reprise, fac_montant_htnr, fac_montant_ht, fac_montant_tva, fac_montant_ttc, fac_regle, fac_reste, fac_reste AS solde_du, fac_etat, IF( fac_reste>=0.01 AND fac_etat=2, 1, 0) AS due, ipu_facture, ipu_reglements, rgl_references, dvi_client, dvi_id_comptable, IF(dvi_id_comptable > 0, CAST(dvi_id_comptable AS CHAR(30)), idc_id_comptable) AS ctc_id_comptable, cor_email, ctc_email, IF( dvi_client=0, '', COALESCE(cor_email, ctc_email,'')) AS mail, cor_telephone1, ctc_telephone, IF( dvi_client=0, '', COALESCE(cor_telephone1, ctc_telephone,'')) AS telephone, cor_telephone2, ctc_mobile, IF( dvi_client=0, '', COALESCE(cor_telephone2, ctc_mobile,'')) AS portable, '' AS texte_rappel, fac_id_rappel, IF(fac_id_rappel=0, '', fac_rappel) AS fac_rappel FROM `t_factures` LEFT JOIN `t_commandes` ON `cmd_id` = `fac_commande` LEFT JOIN `t_devis` ON `dvi_id` = `cmd_devis` LEFT JOIN `t_id_comptable` ON (`dvi_client` = `idc_contact` AND `dvi_societe_vendeuse` = `idc_societe_vendeuse`) LEFT JOIN `t_contacts` ON `ctc_id` = `dvi_client` LEFT JOIN `t_correspondants` ON `cor_id` = `dvi_correspondant` LEFT JOIN `t_societes_vendeuses` ON `scv_id` = `dvi_societe_vendeuse` LEFT JOIN `v_etats_factures` ON `vef_id` = `fac_etat` LEFT JOIN ( SELECT `ipu_facture` , GROUP_CONCAT(`ipu_reglement` SEPARATOR ':') AS ipu_reglements, GROUP_CONCAT(`rgl_reference` SEPARATOR ':') AS rgl_references FROM `t_imputations` LEFT JOIN `t_reglements` ON `rgl_id` = `ipu_reglement` WHERE `ipu_inactif` IS NULL GROUP BY `ipu_facture` ORDER BY `ipu_facture` ) AS REGLEMENTS ON fac_id = ipu_facture WHERE `fac_inactif` IS NULL AND `fac_masque` = 0 "; if ($id) { $table .= " AND fac_id = " . intval($id); } $table .= " ORDER BY `fac_date` DESC , `fac_reference` DESC )"; // aliases $aliases = array(); $resultat = $this->_filtre($table, $this->get_filterable_columns(), $aliases, $limit, $offset, $filters, $ordercol, $ordering, true); $this->db->flush_cache(); return $resultat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFabricanteDatatablesData () \n {\n return Laratables::recordsOf(Fabricante::class);\n }", "public function dataTable();", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'cCountry_list.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'cdiscount.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'centry_exit_log.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "abstract public function datatables();", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "function tabledata_Cadre_voirlestables ($serveur,$boolSPIP=false)\r\n{\r\n global $connect_statut, $spip_lang, $connect_id_auteur;\r\n\r\n $tables_extra = array();\r\n $tables_spip = array();\r\n $intNbExtra = 0 ;\r\n\r\n $sqlResultTables = sql_showbase('%');\r\n while ($tabNomTable = sql_fetch($sqlResultTables))\r\n {\r\n foreach ($tabNomTable as $key => $val)\r\n {\r\n if (preg_match('#^'.tabledata_table_prefix().'_#', $val))\r\n {\r\n $tables_spip[] = $val;\r\n }\r\n else\r\n {\r\n $tables_extra[] = $val;\r\n ++$intNbExtra ;\r\n }\r\n }\r\n }\r\n\r\n // affichage\r\n echo \"Choisir une table Extra parmis celle ci-dessous:\\n\";\r\n if ($intNbExtra<1)\r\n {\r\n echo \"Aucune table extra ne semble disponible.\";\r\n }\r\n else\r\n {\r\n echo tabledata_table_HTML ($tables_extra);\r\n }\r\n if ($boolSPIP)\r\n {\r\n echo \"<hr/>\";\r\n echo \"Les tables de SPIP :\\n\";\r\n echo tabledata_table_HTML ($tables_spip);\r\n }\r\n return;\r\n}", "public function datatable()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'detailfasilitaskesehatan', 'read')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\t$table = 'detailfasilitaskesehatan';\n\t\t$primarykey = 'id';\n\t\t$columns = array(\n\t\t\tarray('db' => $primarykey, 'dt' => '0', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\n\t\t\t\t\t\t<input type='checkbox' id='titleCheckdel' />\n\t\t\t\t\t\t<input type='hidden' class='deldata' name='item[\".$i.\"][deldata]' value='\".$d.\"' disabled />\n\t\t\t\t\t</div>\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => $primarykey, 'dt' => '1', 'field' => $primarykey),\n\t\t\tarray('db' => 'b.namakategori', 'dt' => '2', 'field' => 'namakategori'),\n\t\t\tarray('db' => 'nama', 'dt' => '3', 'field' => 'nama'),\n\t\t\tarray('db' => 'kodefaskes', 'dt' => '4', 'field' => 'kodefaskes'),\n\t\t\t// array('db' => 'kelas', 'dt' => '5', 'field' => 'kelas'),\n\t\t\t// array('db' => 'direktur', 'dt' => '6', 'field' => 'direktur'),\n\t\t\tarray('db' => 'alamat', 'dt' => '5', 'field' => 'alamat'),\n\t\t\tarray('db' => 'kecamatan', 'dt' => '6', 'field' => 'kecamatan'),\n\t\t\t// array('db' => 'pemilik', 'dt' => '9', 'field' => 'pemilik'),\n\t\t\t// array('db' => 'telpon', 'dt' => '10', 'field' => 'telpon'),\n\t\t\t// array('db' => 'email', 'dt' => '11', 'field' => 'email'),\n\t\t\t// array('db' => 'website', 'dt' => '12', 'field' => 'website'),\n\t\t\t// array('db' => 'fax', 'dt' => '13', 'field' => 'fax'),\n\t\t\t// array('db' => 'ugd', 'dt' => '14', 'field' => 'ugd'),\n\t\t\t// array('db' => 'vip', 'dt' => '15', 'field' => 'vip'),\n\t\t\t// array('db' => 'vvip', 'dt' => '16', 'field' => 'vvip'),\n\t\t\t// array('db' => 'kelas1', 'dt' => '17', 'field' => 'kelas1'),\n\t\t\t// array('db' => 'kelas2', 'dt' => '18', 'field' => 'kelas2'),\n\t\t\t// array('db' => 'kelas3', 'dt' => '19', 'field' => 'kelas3'),\n\t\t\t// array('db' => 'jumdokter', 'dt' => '20', 'field' => 'jumdokter'),\n\t\t\t// array('db' => 'jumperawat', 'dt' => '21', 'field' => 'jumperawat'),\n\t\t\t// array('db' => 'foto', 'dt' => '22', 'field' => 'foto'),\n\t\t\t// array('db' => 'seourl', 'dt' => '7', 'field' => 'seourl'),\n\t\t\tarray('db' => $primarykey, 'dt' => '7', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\n\t\t\t\t\t\t<div class='btn-group btn-group-xs'>\n\t\t\t\t\t\t\t<a href='admin.php?mod=detailfasilitaskesehatan&act=edit&id=\".$d.\"' class='btn btn-xs btn-default' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['action_1']}'><i class='fa fa-pencil'></i></a>\n\t\t\t\t\t\t\t<a class='btn btn-xs btn-danger alertdel' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['action_2']}'><i class='fa fa-times'></i></a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\";\n\t\t\t\t}\n\t\t\t),\n\t\t);\n\t\t$joinquery = \"FROM detailfasilitaskesehatan AS a JOIN katfasilitaskesehatan AS b ON (b.idkategori = a.idkategori)\";\n\t\techo json_encode(SSP::simple($_POST, $this->poconnect, $table, $primarykey, $columns, $joinquery));\n\t}", "public function getListColumns(){\n\treturn \"id, codice_categoria, codice, descrizione\";\n}", "public function data()\n {\n $orders=libro::all();\n foreach ($orders as $key => $value) {\n \n if(count(autor::find($value->id_autor)))\n $value->id_autor=autor::find($value->id_autor)->nombre;\n else $value->id_autor='No asignado';\n \n }\n return \\Datatables::of($orders)->addColumn('action', 'libro.partials.vista')->make(true) ; \n }", "public function tatalFacturas(){\n\t\t\t\t\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"Select count(idFactura) as cantidadFacturas from tb_facturas WHERE estado <> 'Iniciada'\";\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n\t\tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n $resultado = $filas;\n }\n \n /* liberar el conjunto de resultados */\n $res->free();\n \n }\n\n return $resultado['cantidadFacturas'];\t\t\t\n\t\t\n\t}", "public function table()\n\t{\n\t\t$this->datatables->select('testcat.test_id AS test_id, testcat_id, gender, age, score, percentile, percentile.id AS id');\n\t\t$this->datatables->from('percentile');\n\t\t$this->datatables->join('testcat', 'testcat.id = percentile.testcat_id');\n\n\t\t$this->datatables->edit_column('test_id', '$1', 'test_get_link_by_id(test_id)');\n\t\t$this->datatables->edit_column('testcat_id', '$1', 'testcat_get_link_by_id(testcat_id)');\n\t\t$this->datatables->edit_column('gender', '$1', 'gender(gender)');\n\t\t$this->datatables->edit_column('id', '$1', 'percentile_actions(id)');\n\n\t\techo $this->datatables->generate();\n\t}", "public function getAllSuppliersToDataTables();", "public function datatables()\n {\n $param = [\n 'url' => 'prestasi',\n 'action' => ['show', 'edit', 'destroy'],\n 'gambar' => 'prestasi'\n ];\n\n return Datatables::of(Prestasi::query())\n ->addColumn('action', function($data) use ($param) {\n return generateAction($param, $data->slug);\n })\n ->editColumn('gambar', function($data) use ($param) {\n return generateImagePath($param['gambar'], $data->gambar, $data->judul);\n })\n ->editColumn('isi', function($data) {\n return str_limit($data->isi, 100);\n })\n ->rawColumns(['isi', 'gambar', 'action'])\n ->addIndexColumn()\n ->make(true);\n }", "public function getDatatable() {\n \treturn datatables()->of(\\App\\Models\\Class_::all())->make(true);\n }", "public function obtenerFacturas($data) \n {\n $documento = $data['documento']; \n return $this->cnx->query(\n 'SELECT fc.id, fc.correo_electronico, fc.nombres, fc.estado_factura, fc.valor FROM facturas_cabecera fc \n INNER JOIN registro_usuarios ru \n ON ru.id = fc.id_usuario \n WHERE ru.documento = ?', [$documento]); \n }", "function get_columns() {\n\t\t$columns = [\n\t\t\t'jumlahHTTPS' => 'Jumlah Domain HTTPS',\n\t\t\t'totalDomain' => 'Total Domain', \n\t\t\t'jumlahCert' => 'Jumlah Sertifikat Aktif',\n\t\t\t'totalCert' => 'Total Sertifikat'\n\t\t];\n\n\t\treturn $columns;\n\t}", "public function tabla()\n {\n\n \treturn Datatables::eloquent(Encargos::query())->make(true);\n }", "function showDataTable(){\n\t\t$output = \"\";\n\t\t// print the table\n\t\t$output .= \"<table summary=\\\"\".$this->summary.\"\\\">\\n\";\n\t\t// print the caption\n\t\t$output .= \"<caption>\".$this->caption.\"</caption>\\n\";\n\t\t$output .= $this->showHeader();\n\t\t// initialise variables\n\t\t$altCounter = 0;\n\t\t$altClass = \"\";\n\t\t$h = 1;\n\t\t// loop each row\n\t\tfor ($x=0; $x<count($this->rows); $x++) {\n\t\t\t// if it is time to show the header\n\t\t\tif ($h==$this->headerRepeat){\n\t\t\t\t// show the header\n\t\t\t\t$output .= $this->showHeader();\n\t\t\t\t$h = 1;\n\t\t\t}\n\t\t\t$row = $this->rows[$x];\n\t\t\t// alternate the row classes\n\t\t\tif ($this->altClasses){\n\t\t\t\tif ($this->altClasses[$altCounter]!=\"\"){ $altClass = \" class=\\\"\".$this->altClasses[$altCounter].\"\\\"\"; } else { $altClass=\"\"; }\n\t\t\t\tif ($altCounter==count($this->altClasses)-1){ $altCounter=0; } else { $altCounter++; }\n\t\t\t}\n\t\t\t// set the parameters to nothing\n\t\t\t$params = \"\";\n\t\t\t// if there are parameters for this row set\n\t\t\tif (count($this->rowParams[$x])>0){\n\t\t\t\t// loop the parameters\n\t\t\t\twhile (list($attribute, $parameter) = each($this->rowParams[$x])) {\n\t\t\t\t\t// if the parameter is 'class'\n\t\t\t\t\tif (strtolower($attribute)==\"class\"){\n\t\t\t\t\t\t// replace the altClass variable\n\t\t\t\t\t\t$altClass = \" \".strtolower($attribute).\"=\\\"$parameter\\\"\";\n\t\t\t\t\t} else{\n\t\t\t\t\t\t// otherwise build the parameters\n\t\t\t\t\t\t$params .= \" \".strtolower($attribute).\"=\\\"$parameter\\\"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// print the row\n\t\t\t$output .= \"\t<tr$altClass$params>\\n\";\n\t\t\t\t// set the colSpan to 0\n\t\t\t\t$colSpan = 0;\n\t\t\t\t$colSpanAttribute = \"\";\n\t\t\t\t// if this row has less columns than the number of fields\n\t\t\t\tif (count($row)<count($this->fields)){\n\t\t\t\t\t$colSpan = (count($this->fields)-count($row))+1;\n\t\t\t\t}\n\t\t\t\t// loop each cell\n\t\t\t\tfor ($i=0; $i<count($row); $i++) {\n\t\t\t\t\t$value = $row[$i];\n\t\t\t\t\t$value = $this->formatField($i, $x);\n\t\t\t\t\t// make the colspan attribute\n\t\t\t\t\tif ($colSpan>0 && $i==(count($row)-1)){ $colSpanAttribute = \" colspan=\\\"$colSpan\\\"\"; }\n\t\t\t\t\t// print the cell\n\t\t\t\t\t$output .= \"\t\t<td$colSpanAttribute>\".$value.\"</td>\\n\";\n\t\t\t\t}\n\t\t\t// end the row\n\t\t\t$output .= \"\t</tr>\\n\";\n\t\t\t// increment the header repeat variable\n\t\t\t$h++;\n\t\t}\n\t\t// end the table\n\t\t$output .= \"</table>\\n\\n\";\n\t\tprint $output;\n\t}", "private function table_data()\n {\n $data = array();\n $args = array( \n 'post_type' => 'sutabu_ppdb',\n 'post_status' => 'publish',\n 'orderby' => 'title', \n 'order' => 'ASC', \n );\n\n $the_query = new WP_Query( $args );\n\n if($the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();\n $data[] = array(\n 'id' => $dt->ID,\n 'perusahaan' => the_title(),\n 'total_ken' => the_content(),\n 'total_pen' => 'ok',\n 'tanggal' => 'ok'\n ); \n endwhile; endif;\n wp_reset_postdata();\n\n return $data;\n }", "function getDatatables()\r\n {\r\n $this->db->from(\"v_registro\");\r\n $query = $this->db->get();\r\n return $query->result();\r\n }", "public function datatableTables()\n {\n return view('pages.tables.tables_datatable');\n }", "function obtener_facultades (){\n \n //$nombre_usuario=toba::usuario()->get_nombre();\n //$sql=\"SELECT t_s.sigla FROM sede t_s, administrador t_a WHERE t_a.nombre_usuario=$nombre_usuario AND t_s.id_sede=t_a.id_sede\";\n //$sql=\"SELECT t_ua.sigla, t_ua.descripcion FROM unidad_academica t_ua, sede t_s JOIN administrador t_a ON (t_a.nombre_usuario=$nombre_usuario) JOIN (t_a.id_sede=t_s.id_sede) WHERE t_s.sigla=t_ua.id_sede\";\n $sql=\"SELECT sigla, descripcion FROM unidad_academica WHERE sigla <> 'RECT'\";\n return toba::db('gestion_aulas')->consultar($sql);\n \n }", "public function getAll(){\n\t\t$tabDemandes = [];\n\t\t$q = $this->pdo->query(\"SELECT * FROM demande\");\n\t\twhile ($donnee = $q->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$tabDemandes[] = new Demande($donnee);\n\t\t}\n\t\treturn $tabDemandes;\n\t}", "public function summaryColumns();", "function get_all_kelas(){\n $this->datatables->select('kelas_id,kelas_nama')\n ->from('v_kelas');\n return $this->datatables->generate();\n }", "function datatable()\n {\n return $this->table($this->table);\n }", "public function getCategorizedTables() {}", "public function datatable() {\n $this -> datatables -> select(\"Id,AdvertisementTitle,AdvertisementImage,AdvertisementDescription,AdvertisementUrl,StartDate, EndDate, CreatedBy,ModifiedBy,CreatedOn,ModifiedOn,IsActive AS active,IsRemoved\", FALSE)\n -> unset_column('AdverismentImage')\n -> unset_column('Id')\n -> unset_column('active')\n -> from('advertisements') \n -> add_column('Actions', get_action_buttons('$1', 'advertisements'), 'Id');\n\n $cond = array(\n 'IsRemoved' => '0'\n );\n $this -> datatables -> where($cond);\n\n echo $this -> datatables -> generate();\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 describir_campos($tabla_x,$bd_x=\"\"){\r\n\t\tif($bd_x!=\"\"){\r\n\t\t\t$bd = $bd_x.\".\";\r\n\t\t}#end if\r\n\t\t$query_x = \"SHOW FIELDS FROM \".$bd.$tabla_x;\r\n\t\t$result = mysqli_query($this->conexion,$query_x);\r\n\t\tif($result){\r\n\t\t\t$n_filas = mysqli_num_rows($result);\r\n\t\t\t$this->serial[$tabla_x] = \"\";\r\n\t\t\tfor ($i=0;$i<$n_filas;$i++){\r\n\t\t\t\t$row_x = mysqli_fetch_array($result);\r\n\t\t\t\tif($i==0){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t\t$this->nombre[$i] = $row_x[0];\r\n\t\t\t\t$this->tipo[$i] = $row_x[1];\r\n\t\t\t\tif($row_x[\"Key\"] == \"PRI\"){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t}#end next i\r\n\t\t}#end if result\r\n\t}", "public function anyData()\n\t{\n\t return Datatables::collection(goods::all())->make(true);\n\t}", "public function datatable()\n {\n $p = $this->getPermission('vehicle');\n $data = Vehicle::with(['Brand','Dependency'])->get();\n if(isset($p))\n foreach($data as $d)\n $d['p'] = array('a'=>false && $p->u,'e'=>$p->u,'d'=>$p->d);\n return datatables()->of($data)->toJson();\n }", "public function datatable()\n {\n $reportes=Reporte::join('ilustraciones','reportes.id_ilustracion','=','ilustraciones.id_ilustracion')\n ->join('users','reportes.id_user','=','users.id')\n ->select(array('users.name','ilustraciones.name_draw','ilustraciones.estado','reportes.id_reporte'));\n return DataTables::of($reportes)\n ->addColumn('view','IntAdmin.intReportes.botones.revisar')\n ->rawColumns(['view'])\n ->toJson(); \n }", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora decolare</th>\";\n\t\techo \"<th>Destinatia</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_decolare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"destinatia\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "public function DataTables( $cat_id = false ) {\n \n // Carrega a library\n $this->load->library( 'DataTables' );\n\n // Columns\n $columns = array (\n 0 => \n array (\n 'db' => 'id',\n 'dt' => 0,\n ),\n 1 => \n array (\n 'db' => 'midia_id',\n 'dt' => 1,\n 'formatter' => function( $d, $row ) {\n\n // Verifica se existe uma midia\n if ( $d ) {\n\n // Carrega a model\n $this->load->model( 'midia' );\n $midia = $this->Midia->findById( $d );\n if ( $midia ) {\n return \"<img src='\".$midia->path().\"' width='50px'>\";\n } else {\n return \"<img src='\".base_url( 'public/images/empty.jpg' ).\"' width='50px'>\";\n }\n } else {\n return \"<p>Sem imagem</p>\";\n }\n }\n ),\n 2 => \n array (\n 'db' => 'name',\n 'dt' => 2,\n ),\n 3 => \n array (\n 'db' => 'category_id',\n 'dt' => 3,\n 'formatter' => function( $d, $row ) {\n\n // Carrega a model\n\t\t $this->load->model( 'category' );\n $category = $this->Category->findById( $d );\n if ( $category )\n return $category->name;\n else\n return '';\n }\n ),\n 4 => \n array (\n 'db' => 'region_id',\n 'dt' => 4,\n 'formatter' => function( $d, $row ) {\n\n // Carrega a model\n\t\t $this->load->model( 'region' );\n\n $region = $this->Region->findById( $d );\n\n return $region->name;\n }\n ),\n array ( \n 'db' => 'id', \n 'dt' => 6,\n 'formatter' => function( $d, $row ) {\n return '<label class=\"custom-control custom-checkbox\">\n <input value=\"'.$d.'\" type=\"checkbox\" name=\"ids[]\" class=\"custom-control-input bulkCheckbox\">\n <span class=\"custom-control-indicator\"></span>\n </label>';\n }\n )\n );\n $columns[] = \n [ \n 'db' => 'id',\n 'dt' => 5, \n 'formatter' => function( $d, $row ) {\n $catId = $this->__getCategoryIdFromUrl();\n\n // Formata a data\n $del = rmButton( \"gateway/delete/$catId/\".$d );\n $edit = editButton( \"gateway/list/$catId?addModal=true&id=\".$d );\n $list = '<a href=\"'.site_url( 'gateway/last_news/'.$d ).'\" class=\"btn btn-sm btn-primary text-light\">\n <i class=\"fa fa-list\"></i>\n </a>';\n\n // Volta os botões\n return $del.'&nbsp'.$edit.'&nbsp'.$list;\n }\n ];\n\n // Volta o resultado\n return $this->datatables->send( $this->table(), $columns, false, \"category_id = $cat_id\" );\n }", "function consultarFacultades() {\r\n $cadena_sql=$this->sql->cadena_sql(\"datos_facultades\",\"\");\r\n $resultado=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n return $resultado;\r\n }", "function mostrar_tabla()\n {\n return $this->mostrar_tabla_slickgrid();\n /*\n $sPrefs = '';\n $id_usuario= core\\ConfigGlobal::mi_id_usuario();\n $tipo = 'tabla_presentacion';\n $oPref = new usuarios\\Preferencia(array('id_usuario'=>$id_usuario,'tipo'=>$tipo));\n $sPrefs=$oPref->getPreferencia();\n if ($sPrefs == 'html') {\n return $this->mostrar_tabla_html();\n } else {\n return $this->mostrar_tabla_slickgrid();\n }\n */\n }", "function mostrarDetalleProceso(){\r\n ?>\r\n <script type=\"text/javascript\" src=\"<? echo $this->configuracion[\"host\"].$this->configuracion[\"site\"].$this->configuracion[\"javascript\"];?>/datatables/js/jquery.js\"></script>\r\n <script type=\"text/javascript\" src=\"<? echo $this->configuracion[\"host\"].$this->configuracion[\"site\"].$this->configuracion[\"javascript\"];?>/datatables/js/jquery.dataTables.js\"></script>\r\n <script>\r\n $(document).ready(function() { \r\n $('#tabla').dataTable();\r\n })\r\n </script>\r\n <link type=\"text/css\" href=\"<? echo $this->configuracion[\"host\"].$this->configuracion[\"site\"].$this->configuracion[\"javascript\"];?>/datatables/css/jquery.dataTables_themeroller.css\" rel=\"stylesheet\"/>\r\n \r\n <? \r\n echo \"<h1>Detalles de Proceso</h1>\";\r\n $html = \"<table id='tabla' >\";\r\n $html .= \"<thead>\";\r\n $html .= \"<tr>\"; \r\n $html .= \"<td>Código Estudiante</td>\"; \r\n $html .= \"<td>Observación</td>\";\r\n $html .= \"</tr>\";\r\n $html .= \"</thead>\";\r\n $html .= \"<tbody>\";\r\n foreach ($this->mensaje as $key => $estudiante) {\r\n \r\n $html .= \"<tr>\";\r\n $html .= \"<td>\".$key.\"</td>\";\r\n $html .= \"<td>\";\r\n foreach ($estudiante as $key2=>$obs_estudiante) {\r\n if (count($estudiante)>1&&$key2>0)\r\n {\r\n $html.=\"<br>\";\r\n }\r\n $html .= $obs_estudiante;\r\n }\r\n $html .= \"</td>\";\r\n $html .= \"</tr>\";\r\n }\r\n $html .= \"</tbody>\";\r\n \r\n $html .= \"</table>\";\r\n echo $html;\r\n }", "function listTables();", "static function columns($instancia = null) {\n if ($instancia) {\n return fields_of($instancia->_tablename());\n } else {\n return fields_of(self::getInstance()->_tablename());\n }\n }", "public function getListDataTable(){\n $folders = Folder::select(['id', 'name', 'description'])\n ->where('user_id', Auth::user()->id);\n \n return Datatables::of($folders)->make(true);\n }", "public function getTableData()\n\t{\n\t}", "public static function showData() {\n\n\t\tforeach(self::$employee_array as $id => $employee) { // Pour chaque ligne on affiche chaque attribut correspondant au colonne du tableau\n\n\t\t\tif($employee->_entityShortName == null) // Gestion du cas où une entité a été supprimée mais pas l'employé de l'entité\n\t\t\t\techo \"<tr><td>null</td><td>\" . $employee->_lastName . \"</td><td>\" . $employee->_firstName . \"</td><td>\" . $employee->_login . \"</td><td><a href=\\\"user.php?action=modifier&id=\" . $employee->_id . \"\\\">modifier</a></td><td><a href=\\\"user.php?action=supprimer&id=\" . $id . \"\\\">supprimer</a></td></tr>\";\n\t\t\telse\n\t\t\t\techo \"<tr><td>\" . $employee->_entityShortName . \"</td><td>\" . $employee->_lastName . \"</td><td>\" . $employee->_firstName . \"</td><td>\" . $employee->_login . \"</td><td><a href=\\\"user.php?action=modifier&id=\" . $employee->_id . \"\\\">modifier</a></td><td><a href=\\\"user.php?action=supprimer&id=\" . $id . \"\\\">supprimer</a></td></tr>\";\n\t\t}\n\t}", "function getTablas() {\n $tablas['departamento']['id'] = 'departamento';\n $tablas['departamento']['nombre'] = 'Departamentos';\n\n $tablas['departamento_region']['id'] = 'departamento_region';\n $tablas['departamento_region']['nombre'] = 'Departamentos (Region)';\n\n $tablas['municipio']['id'] = 'municipio';\n $tablas['municipio']['nombre'] = 'Municipios';\n\n $tablas['operador']['id'] = 'operador';\n $tablas['operador']['nombre'] = 'Operador';\n\n $tablas['pais']['id'] = 'pais';\n $tablas['pais']['nombre'] = 'Paises';\n\n $tablas['ciudad']['id'] = 'ciudad';\n $tablas['ciudad']['nombre'] = 'Ciudades';\n\n $tablas['familias']['id'] = 'familias';\n $tablas['familias']['nombre'] = 'Familias';\n\n $tablas['monedas']['id'] = 'monedas';\n $tablas['monedas']['nombre'] = 'Monedas';\n\n $tablas['cuentas_financiero']['id'] = 'cuentas_financiero';\n $tablas['cuentas_financiero']['nombre'] = 'Cuentas';\n\n $tablas['cuentas_financiero_ut']['id'] = 'cuentas_financiero_ut';\n $tablas['cuentas_financiero_ut']['nombre'] = 'Cuentas UT';\n\n $tablas['cuentas_financiero_tipo']['id'] = 'cuentas_financiero_tipo';\n $tablas['cuentas_financiero_tipo']['nombre'] = 'Tipos de Cuentas';\n\n $tablas['extracto_movimiento']['id'] = 'extracto_movimiento';\n $tablas['extracto_movimiento']['nombre'] = 'Movimientos';\n\n $tablas['centropoblado']['id'] = 'centropoblado';\n $tablas['centropoblado']['nombre'] = 'Centros Poblados';\n\n $tablas['encuesta_tipo']['id'] = 'encuesta_tipo';\n $tablas['encuesta_tipo']['nombre'] = 'Tipo de Encuesta';\n\n $tablas['actividades_tipo']['id'] = 'actividades_tipo';\n $tablas['actividades_tipo']['nombre'] = 'Planes de Actividades';\n\n $tablas['tipohallazgo']['id'] = 'tipohallazgo';\n $tablas['tipohallazgo']['nombre'] = 'Tipo Hallazgo';\n\n asort($tablas);\n return $tablas;\n }", "public function getFees()\n {\n $fees = Fee::where('archived', '=', 0);\n return Datatables::of($fees)\n ->editColumn('name', function ($fee) {\n return '<a href=\"' . url('admin/products/' . $fee->id . '/edit') . '\">' . $fee->name . '</a>';\n })\n ->editColumn('cost', function ($fee) {\n return \"$\" . number_format($fee->cost, 2);\n })\n ->make(true);\n }", "public function dataTables()\r\r\n {\r\r\n $transfers = $this->transferRepo->findAll();\r\r\n\r\r\n return DataTables::of($transfers)\r\r\n ->addColumn('title', function($row) {\r\r\n return $row->title;\r\r\n })\r\r\n ->addColumn('photo', function($row) {\r\r\n if($row->photo){\r\r\n return '<img src='. asset(\"public/images/transfer/thumb/\" . $row->photo).'/>';\r\r\n } else {\r\r\n return '<strong> No Photo </strong>';\r\r\n }\r\r\n })\r\r\n ->addColumn('edit', function($row) {\r\r\n return '<a href=\"'. url(\"admin-panel/transfers/\" . $row->id . \"/edit\") .'\" type=\"button\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\" aria-hidden=\"true\"></i></a>';\r\r\n })\r\r\n ->addColumn('delete', function ($row) {\r\r\n return '<a href=\"'. url('admin-panel/transfers/delete', $row->id) .'\" class=\"btn btn btn-danger\" data-confirm=\"Are you sure, You want to delete?\" data-method=\"delete\"><i class=\"glyphicon glyphicon-trash\"></i></a>';\r\r\n })\r\r\n ->rawColumns(['delete' => 'delete','edit' => 'edit', 'photo' => 'photo'])\r\r\n ->make(true);\r\r\n }", "public function datatables()\n {\n $query = Laporan::with('user')\n ->with('penempatan')\n ->where('laporans.user_id', '=', auth()->user()->id)\n ->select('laporans.*');\n\n return DataTables::of($query)\n ->addColumn('actions', function ($item) {\n return view('template_pengguna.template_laporan.actions', compact('item'));\n })\n ->addIndexColumn()\n ->rawColumns(['actions', 'created_at'])\n ->make(true);\n }", "function listColumns($tablename);", "public function datatable_rekening_tabungan_setup()\n\t{\n\t\t$aColumns = array( '','mfi_cif.cif_no','mfi_cif.nama','product_name','account_saving_no','');\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower( $_GET['sSearch'] ).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\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$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_rekening_tabungan_setup($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_rekening_tabungan_setup($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_rekening_tabungan_setup(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$rembug='';\n\t\t\tif($aRow['cm_name']!=\"\"){\n\t\t\t\t$rembug=' <a href=\"javascript:void(0);\" class=\"btn mini green-stripe\">'.$aRow['cm_name'].'</a>';\n\t\t\t}\n\t\t\t$row = array();\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['account_saving_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['cif_no'];\n\t\t\t$row[] = $aRow['nama'].$rembug;\n\t\t\t$row[] = $aRow['product_name'];\n\t\t\t$row[] = $aRow['account_saving_no'];\n\t\t\t$row[] = '<div align=\"center\"><a href=\"javascript:;\" class=\"btn mini purple\" account_saving_id=\"'.$aRow['account_saving_id'].'\" id=\"link-edit\"><i class=\"icon-edit\"></i> Edit</a></div>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "function getTablas() {\r\n $tablas['inventario_equipo']['id']='inventario_equipo';\r\n $tablas['inventario_equipo']['nombre']='Inventario (equipo)';\r\n\r\n $tablas['inventario_grupo']['id']='inventario_grupo';\r\n $tablas['inventario_grupo']['nombre']='Inventario (grupo)';\r\n\r\n $tablas['inventario_estado']['id']='inventario_estado';\r\n $tablas['inventario_estado']['nombre']='Inventario (estado)';\r\n\r\n $tablas['inventario_marca']['id']='inventario_marca';\r\n $tablas['inventario_marca']['nombre']='Inventario (marca)';\r\n\r\n $tablas['obligacion_clausula']['id']='obligacion_clausula';\r\n $tablas['obligacion_clausula']['nombre']='Obligacion (clausula)';\r\n\r\n $tablas['obligacion_componente']['id']='obligacion_componente';\r\n $tablas['obligacion_componente']['nombre']='Obligacion (componente)';\r\n\r\n $tablas['documento_tipo']['id']='documento_tipo';\r\n $tablas['documento_tipo']['nombre']='Documento (Tipo)';\r\n\r\n \t\t$tablas['documento_tema']['id']='documento_tema';\r\n \t\t$tablas['documento_tema']['nombre']='Documento (Tema)';\r\n\r\n \t\t$tablas['documento_subtema']['id']='documento_subtema';\r\n \t\t$tablas['documento_subtema']['nombre']='Documento (Subtema)';\r\n\r\n \t\t$tablas['documento_estado']['id']='documento_estado';\r\n \t\t$tablas['documento_estado']['nombre']='Documento (Estado)';\r\n\r\n \t\t$tablas['documento_estado_respuesta']['id']='documento_estado_respuesta';\r\n \t\t$tablas['documento_estado_respuesta']['nombre']='Documento (Estado Respuesta)';\r\n\r\n \t\t$tablas['documento_actor']['id']='documento_actor';\r\n \t\t$tablas['documento_actor']['nombre']='Documento (Responsables)';\r\n\r\n \t\t$tablas['documento_tipo_actor']['id']='documento_tipo_actor';\r\n \t\t$tablas['documento_tipo_actor']['nombre']='Documento (Tipo de Responsable)';\r\n\r\n \t\t$tablas['riesgo_probabilidad']['id']='riesgo_probabilidad';\r\n \t\t$tablas['riesgo_probabilidad']['nombre']='Riesgo (Probabilidad)';\r\n\r\n \t\t$tablas['riesgo_categoria']['id']='riesgo_categoria';\r\n \t\t$tablas['riesgo_categoria']['nombre']='Riesgo (Categoria)';\r\n\r\n \t\t$tablas['riesgo_impacto']['id']='riesgo_impacto';\r\n \t\t$tablas['riesgo_impacto']['nombre']='Riesgo (Impacto)';\r\n\r\n \t\t$tablas['compromiso_estado']['id']='compromiso_estado';\r\n \t\t$tablas['compromiso_estado']['nombre']='Compromisos (Estado)';\r\n\r\n \t\t$tablas['departamento']['id']='departamento';\r\n \t\t$tablas['departamento']['nombre']='Departamentos';\r\n\r\n \t\t$tablas['departamento_region']['id']='departamento_region';\r\n \t\t$tablas['departamento_region']['nombre']='Departamentos (Region)';\r\n\r\n \t\t$tablas['municipio']['id']='municipio';\r\n \t\t$tablas['municipio']['nombre']='Municipios';\r\n\r\n $tablas['operador']['id']='operador';\r\n\t $tablas['operador']['nombre']='Operador';\r\n\r\n asort($tablas);\r\n return $tablas;\r\n }", "public function getTables();", "public function getTables();", "public function getTables();", "public function datatable_deposito_setup()\n\t{\n\t\t/* Array of database columns which should be read and sent back to DataTables. Use a space where\n\t\t * you want to insert a non-database field (for example a counter or static image)\n\t\t */\n\t\t$aColumns = array( '','mfi_cif.cif_no','mfi_cif.nama','account_deposit_no','' );\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(\".$aColumns[$i].\") LIKE '%\".strtolower($_GET['sSearch']).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\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$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(\".$aColumns[$i].\") LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_deposito_setup($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_deposito_setup($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_deposito_setup(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$row = array();\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['account_deposit_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['cif_no'];\n\t\t\t$row[] = $aRow['nama'];\n\t\t\t$row[] = $aRow['account_deposit_no'];\n\t\t\t$row[] = '<a href=\"javascript:;\" account_deposit_id=\"'.$aRow['account_deposit_id'].'\" id=\"link-edit\">Edit</a>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "public function get_columns()\n {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'perusahaan' => 'Name',\n 'total_ken' => 'Total Kendaraan',\n 'total_pen' => 'Total Pengemudi',\n 'tanggal' => 'Created Date' \n );\n return $columns;\n }", "public function getListOfTables() {}", "function listarFactura(){\r\n\t\t$this->procedimiento='tesor.ft_factura_sel';\r\n\t\t$this->transaccion='TSR_FAC_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\t\t\t\t\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_factura','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('nro_factura','int4');\r\n\t\t$this->captura('nombre_emisor','varchar');\t\t\r\n\t\t$this->captura('domicilio_emisor','varchar');\r\n\t\t$this->captura('nit_emisor','int4');\r\n\t\t$this->captura('nombre_cliente','varchar');\t\t\r\n\t\t$this->captura('domicilio_cliente','varchar');\r\n\t\t$this->captura('nit_cliente','int4');\r\n\t\t$this->captura('fecha_emision','date');\r\n\t\t\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\t\t\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "function getTablaDisponibilidadDetalladaFlexible() {\n\t\t$this->extra[\"variable\"] = 'true';\n\t\techo $this->getTablaDisponibilidadDetallada();\n\t}", "private function ObtenerCamposTabla(string $nombteTabla){\n $campos =array(); \n $this->EjecutarSQL(\"DESCRIBE \".$nombteTabla);\n foreach ($this->GetResultados() as $dato) $campos[] = $dato->Field;\n return $campos;\n }", "public function getTableHeaders()\n {\n return ['#', 'Fatura','Ordem Servico'];\n }", "public function tablaProductos () \n\t\t{\t\t\n\t\t\t//Javascript !!!\n\t\t\taddJs('js/products_table.js');\n\t\t\thidden ('iter',0); \n\t\t\t\n\t\t\techo '<table id=\"tabla_productos\" bgColor=#333 cellspacing=1 cellpadding=2 width=700><tbody>';\n\t\t\techo '<tr>'.\n\t\t\t\t\t'<th>Cantidad</th><th>Producto</th><th>Precio<br>sin Iva</th>'.\n\t\t\t\t\t'<th>Precio<br>con Iva</th><th>Total Neto</th><th>Total</th><th></th></tr>';\n\n\t\t\techo '</tbody></table>';\n\n\t\t\techo '<table bgColor=#333 cellspacing=1 cellpadding=2 width=700>';\n\t\t\t$this->tablaSumatoria();\n\t\t\techo '</table>';\t\t\t\n\t\t}", "public function getTableDescription();", "public function datatable()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'component', 'read')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\t$table = 'component';\n\t\t$primarykey = 'id_component';\n\t\t$columns = array(\n\t\t\tarray('db' => $primarykey, 'dt' => '0', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\\n\n\t\t\t\t\t\t<input type='checkbox' id='titleCheckdel' />\\n\n\t\t\t\t\t\t<input type='hidden' class='deldata' name='item[\".$i.\"][deldata]' value='\".$d.\"' disabled />\\n\n\t\t\t\t\t</div>\\n\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => $primarykey, 'dt' => '1', 'field' => $primarykey),\n\t\t\tarray('db' => 'component', 'dt' => '2', 'field' => 'component'),\n\t\t\tarray('db' => 'type', 'dt' => '3', 'field' => 'type',\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\".$d.\"</div>\\n\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => 'datetime', 'dt' => '4', 'field' => 'datetime',\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\".$this->time_ago(strtotime($d)).\"</div>\\n\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => 'active', 'dt' => '5', 'field' => 'active',\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\tif ($d == 'N') {\n\t\t\t\t\t\treturn \"<div class='text-center'>\".$GLOBALS['_']['component_status_uninstall'].\"</div>\\n\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn \"<div class='text-center'>\".$GLOBALS['_']['component_status_install'].\"</div>\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => $primarykey, 'dt' => '6', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\tif ($row['active'] == 'N') {\n\t\t\t\t\t\tif (file_exists('../'.DIR_CON.'/component/'.$row['component'].'/install.php')) {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='admin.php?mod=component&act=install&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-success' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_install']}'><i class='fa fa-plug'></i></a>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='route.php?mod=component&act=install&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-success' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_install']}'><i class='fa fa-plug'></i></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (file_exists('../'.DIR_CON.'/component/'.$row['component'].'/uninstall.php')) {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='admin.php?mod=component&act=uninstall&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-warning' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_uninstall']}'><i class='fa fa-trash-o'></i></a>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='route.php?mod=component&act=uninstall&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-warning' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_uninstall']}'><i class='fa fa-trash-o'></i></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn \"<div class='text-center'>\\n\n\t\t\t\t\t\t<div class='btn-group btn-group-xs'>\\n\n\t\t\t\t\t\t\t\".$tblinstall.\"\n\t\t\t\t\t\t\t<a class='btn btn-xs btn-danger alertdel' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['action_2']}'><i class='fa fa-times'></i></a>\n\t\t\t\t\t\t</div>\\n\n\t\t\t\t\t</div>\\n\";\n\t\t\t\t}\n\t\t\t)\n\t\t);\n\t\techo json_encode(SSP::simple($_POST, $this->poconnect, $table, $primarykey, $columns));\n\t}", "private function table_data(){\n $data = array();\n\n global $wpdb;\n\n $data = $wpdb->get_results(\"SELECT * FROM {$wpdb->prefix}lic_activations ORDER BY ID ASC\", ARRAY_A);\n \n return $data;\n }", "function _showTables() {\n print \"<pre>\";\n print_r($this->_tables);\n print \"</pre>\";\n }", "protected function columns(): array\n {\n return [\n TD::set('geBuecht_id', __('ID'))\n ->sort()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->id; \n }),\n TD::set('geBuecht_firstname', __('Vorname'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->firstname; \n }),\n TD::set('geBuecht_lastname', __('Nachname'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->name; \n }),\n TD::set('geBuecht_email', __('Email'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->email; \n }),\n TD::set('geBuecht_telefon', __('Tel.'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->tel; \n }),\n TD::set('geBuecht_size', __('Tischgrösse'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->size; \n }),\n TD::set('geBuecht_timeslot', __('Zeitfenster'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->timeslot; \n }),\n TD::set('geBuecht_remark', __('Bemerkungen'))\n ->cantHide()\n ->width('150px')\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->remarks; \n }),\n TD::set('geBuecht_day', __('Datum'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->created_at->format('d.m.Y'); \n }),\n ];\n }", "static function getAlumnesTable(){\n $table = 'alumnes';\n\n // Table's primary key\n $primaryKey = 'id';\n\n // Array of database columns which should be read and sent back to DataTables.\n // The `db` parameter represents the column name in the database, while the `dt`\n // parameter represents the DataTables column identifier. In this case simple\n // indexes\n $columns = array(\n array( 'db' => 'id', 'dt' => 0 ),\n array( 'db' => 'primer_cognom', 'dt' => 1 ),\n array( 'db' => 'segon_cognom', 'dt' => 2 ),\n array( 'db' => 'nom', 'dt' => 3 ),\n array( 'db' => 'mobil', 'dt' => 4 ),\n array( 'db' => 'telefon', 'dt' => 5 ),\n array( \n 'db' => 'email', \n 'dt' => 6,\n 'formatter' => function( $d, $row ) {\n return \"<a href='mailto:$d'>$d</a>\";\n }\n ),\n array(\n 'db' => 'data_naixement',\n 'dt' => 7,\n 'formatter' => function( $d, $row ) {\n if ($d) {\n return date( 'd/m/Y', strtotime($d));\n } else{\n return \"\";\n }\n }\n ),\n array(\n 'db' => 'data_ingres',\n 'dt' => 8,\n 'formatter' => function( $d, $row ) {\n if ($d) {\n return date( 'd/m/Y', strtotime($d));\n } else{\n return \"\";\n }\n }\n ) \n );\n header('Content-Type: application/json; charset=utf-8');\n return json_encode(SSP::complex( $_GET, $table, $primaryKey, $columns, null, \"esborrat = 0\" ));\n }", "public function DataTables() {\n \n // Carrega a library\n $this->load->library( 'DataTables' );\n\n // Columns\n $columns = array (\n array (\n 'db' => 'id',\n 'dt' => 0,\n ),\n array (\n 'db' => 'name',\n 'dt' => 1,\n ),\n array (\n 'db' => 'midia_id',\n 'dt' => 2,\n 'formatter' => function( $d, $row ) {\n\n // Verifica se existe uma midia\n if ( $d ) {\n $this->load->model( 'midia' );\n $midia = $this->Midia->findById( $d );\n return \"<img src='\".$midia->path().\"' width='50px'>\";\n }\n\n // Volta o resultado\n return '';\n }\n ),\n array ( \n 'db' => 'id', \n 'dt' => 4,\n 'formatter' => function( $d, $row ) {\n return '<label class=\"custom-control custom-checkbox\">\n <input value=\"'.$d.'\" type=\"checkbox\" name=\"ids[]\" class=\"custom-control-input bulkCheckbox\">\n <span class=\"custom-control-indicator\"></span>\n </label>';\n }\n )\n );\n $columns[] = \n [ \n 'db' => 'id',\n 'dt' => 3, \n 'formatter' => function( $d, $row ) {\n\n // Formata a data\n $del = rmButton( 'category/delete/'.$d );\n $edit = editButton( 'category/list?addModal=true&id='.$d );\n\n // Volta os botões\n return $del.'&nbsp'.$edit;\n }\n ];\n\n // Volta o resultado\n return $this->datatables->send( $this->table(), $columns );\n }", "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT\n C.id_componentes,\n P.descripcion planta,\n S.descripcion secciones,\n E.descripcion Equipo,\n C.`descripcion` Componente\n ,'.$editar.','.$eliminar.' \nFROM\n `componentes` C\nINNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\nINNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\nINNER JOIN\n plantas P ON P.id_planta = S.id_planta\nWHERE\n \n C.`activo` = 1';\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 7, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "protected function _initAllFIeld() \n\t{\n\t\t$sql = 'select COLUMN_NAME from information_schema.COLUMNS where table_name = \"' . $this->table.'\"\n\t\t\t\tAND `TABLE_SCHEMA`=\"'. $this->db .'\";';\n\n\t\t$this->_fields = array_column($this->_getSelectResult($sql), 'COLUMN_NAME');\n\t}", "public function exportUsdaFoodDes()\r\n\t{\r\n\t\t$query = 'SELECT NDB_No, Long_Desc, Shrt_Desc\r\n\t\t\tFROM usdaFoodDes';\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$table = $this->_db->loadAssocList();\r\n\t\treturn $table;\r\n\t}", "public function getData()\n {\n return datatables(Category::all())->addColumn('action', 'backend.category.action')\n ->editColumn('status', function (Category $category) {\n return ($category->status == 1) ? 'نشط' : 'غير نشط';\n })\n ->toJson();\n }", "public static function listAll(){//le todos os dados da tabela\n\n\t\t$sql = new Sql();\n\n\t\treturn $sql->select(\n\t\t\t\"SELECT * FROM tb_products ORDER BY desproduct\" \n\t\t\t);\n\t}", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora aterizare</th>\";\n\t\techo \"<th>De la</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_aterizare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"de_la\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "function getList($tabName, $filterName, $filterValue) {\n global $mysqli;\n\n $header=getColumns($tabName);\n \n $sql=\"SELECT * FROM $tabName WHERE $filterName='$filterValue'\";\n\t$resultado=doQuery($sql);\n\t$noColumnas = count($header);\n\t$html='<thead>';\n\tfor ($i=0; $i < count($header) ; $i++) { \n\t\t$html.=\"<th>\".$header[$i].\"</th>\";\n\t}\n\n\t$html.='</thead>';\n\t\n\tforeach ($resultado->fetch_all(MYSQLI_BOTH) as $key => $value) {\n\t\t\n\t\t$html.='<tr>';\n\t\tfor ($j=0; $j < $noColumnas ; $j++) { \n\t\t\t\n\t\t\t$html.=\"<td>\".$value[$j].\"</td>\";\n\t\t}\n\t\t$html.='</tr>';\n\t}\t\n\n return \"<table class='analyst-list'>\".$html.\"</table>\";\n}", "function camposBD(){\n//\t\tSELECT idFactura, nombreTienda AS tienda, fecha, numfactura AS Factura FROM tblfacturas \n//\t\tINNER JOIN tbltiendas ON tbltiendas.idtblTienda = tblfacturas.idtblTienda\n\t\t$fields = array();\n\t\t$fields[] = 'idFactura';\t\n\t\t$fields[] = 'fecha';\t\n\t\t$fields[] = 'tienda';\t\n\t\t$fields[] = 'numFactura';\t\n\t\t/*$fields[] = 'opcion';\t*/\n\t\t/*$fields[] = 'comentario';*/\t\n\t\treturn $fields;\n\t}", "function listaPrint()\n\t{\n\t\t$dg = new DataGrid(array(\"style\" => \"width:98%;margin:0px auto;\" , \"border\" => \"1\", \"id\" => \"tbl_\". $this -> tbl .\"\", \"cellpadding\" => \"0\", \"cellspacing\" => \"0\"));\n\t\t$nr_r = count($this);\n\t\tif($nr_r) {\n\t\t\t$dg -> addHeadColumn(\"Produs\");\n\t\t\t$dg -> addHeadColumn(\"UM\");\n\t\t\t$dg -> addHeadColumn(\"Cant\");\n\t\t\t$dg -> setHeadAttributes(array());\n\t\t\t\n\t\t\tfor($i=0;$i<$nr_r;$i++)\n\t\t\t\t{\n\t\t\t\t$this -> fromDataSource($i);\n\t\t\t\t$dg -> addColumn($this -> produs -> denumire);\n\t\t\t\t$dg -> addColumn($this -> produs -> unitate_masura -> denumire);\n\t\t\t\t$dg -> addColumn($this -> cantitate);\n\t\t\t\tif($this -> id == $selected) $class=\"rowclick\";\n\t\t\t\telse $class=\"\";\n\t\t\t\t$ck = $this -> stringReplace($click);\n\t\t\t\t$dck = $this -> stringReplace($dblClick);\n\t\t\t\t$dg -> index();\n\t\t\t\t}\n\t\t}\n\t\t$out .= $dg -> getDataGrid();\n\t\treturn $out;\t\n\t}", "public function desparasitantes_tatalDesparasitantes(){ \t\n\n\t\t\t$resultado = array();\n\t\t\t\n\t\t\t$query = \"Select count(idDesparasitanteMascota) as cantidadDesparasitantes from tb_desparasitantesMascotas \";\n\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado['cantidadDesparasitantes'];\t\t\t\n\t\t\t\n\t\t\t\n }", "public function getDataUmum()\n {\n return DataTables::of(DataUmum::with(['Kecamatan'])->select(['id', 'kecamatan_id', 'tipologi', 'luas_wilayah', 'jumlah_penduduk','bts_wil_utara','bts_wil_timur','bts_wil_selatan','bts_wil_barat'])->get())\n ->addColumn( 'action', function ( $data ) {\n $edit_url = route('data.data-umum.edit', $data->id );\n\n $data['edit_url'] = $edit_url;\n\n return view('forms.action', $data);\n })\n ->make();\n }", "public function listRegisterCols(){\n\t\t$this->registerCol('name_hld', self::COL_ANCHO_DETALLE);\n\t}", "function table()\n {\n return array('pattern' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\n }", "public function indexApi(){\n return datatables(Categorie::query())\n ->setRowClass('filasTable')\n ->editColumn('slugCategoria','adminviews.categories.actions')\n ->rawColumns(['slugCategoria'])\n ->toJson();\n }", "public static function data()\n {\n return DB::table('detailgaji')\n ->join('potongan', 'detailgaji.kd_potongan', '=', 'potongan.kd_potongan')\n\t \n ->select('potongan.kd_potongan', 'detailgaji.id', 'detailgaji.nomor', 'detailgaji.jumlah')\n\n ->orderBy('detailgaji.nomor', 'asc')\n\t \n ->paginate(10);\n }", "function prikazi_sqltabelu($sql_tabela) {\n\n\tglobal $db;\n\n\techo \"<table class='dt-table'>\";\n\techo \"<h2>\" . $sql_tabela . \"</h2>\";\n\n\t// generisanje headera tabele (prikaz podataka)\n\n\t$komanda_head = \"SELECT * FROM $sql_tabela LIMIT 1\";\n\t$result_head = mysql_query($komanda_head, $db);\t\n\n\twhile ( $red = mysql_fetch_assoc($result_head) ) :\n\n\t\t$m = 0;\n\n\t\techo \"<tr class='dt-table'>\";\n\n\t\tforeach ($red as $item) {\n\t\n\t\t\t$kolona = mysql_field_name($result_head, $m);\n \t\t\techo \"<td class='dt-table'>\" . $kolona . \"</td>\";\n \t\t\t//echo \"<td>\" . $item . \"</td>\";\n \t\t$m++;\n\n\t\t}\n\n\t\techo \"</tr>\";\n\n\tendwhile;\n\n\t// generisanje tela tabele (prikaz podataka)\n\n\t$komanda_body = \"SELECT * FROM $sql_tabela\";\n\t$result_body = mysql_query($komanda_body, $db);\n\n\n\twhile ( $red = mysql_fetch_assoc($result_body) ) :\n\n\t\t$n = 0;\n\n\t\techo \"<tr class='dt-table'>\";\n\n\t\tforeach ($red as $item) {\n\t\n\t\t\t$kolona = mysql_field_name($result_body, $n);\n \t\t\techo \"<td class='dt-table'>\" . $item . \"</td>\";\n \t\t$n++;\n\n\t\t}\n\n\t\techo \"</tr>\";\n\n\tendwhile;\n\n\techo \"</table>\";\n\n}", "private function _display_datatable_view(){\n\t\t\t/*---------------------------------------*/\n\t\t\t$budget_id = '';\n\t\t\tif( isset( $_GET['budget_id'] ) && $_GET['budget_id'] ){\n\t\t\t\t$budget_id = $_GET['budget_id'];\n\t\t\t}\n\t\t\t\n\t\t\t//SET FILTER QUERY\n\t\t\t$_SESSION[ $this->table_name ][ 'filter' ][ 'where' ] = \" AND `\".$this->table_name.\"`.`\".$this->table_fields[ 'budget_id' ].\"` = '\".$budget_id.\"' \";\n\t\t\t\n\t\t\t$this->class_settings[ 'html' ] = array( 'html-files/templates-1/'.$this->table_name.'/line-items-datatable-view.php' );\n\t\t\t$datatable = $this->_display_data_table();\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['title'] = get_select_option_value( array( 'id' => $budget_id, 'function_name' => 'get_all_budgets' ) ).' All Line Items';\n\t\t\t$this->class_settings[ 'data' ]['form_title'] = 'Add / Edit Line Items';\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['hide_main_title'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_clear_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_details_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_reports_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['html'] = $datatable['html'];\n\t\t\t\n\t\t\t$returning_html_data = $this->_get_html_view();\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html_replacement' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'new-status',\n\t\t\t\t'javascript_functions' => array( 'recreateDataTables', 'set_function_click_event', 'update_column_view_state' ),\n\t\t\t\t'html_replacement_selector' => '#main-table-view',\n\t\t\t);\n\t\t}", "public function get_entries()\n {\n $this->db->select('id_factura,concepto_factura,fec_factura,valor,nombres_socio,tipo_socio,fondos_socio');\n $this->db->from('factura');\n $this->db->join('socio', 'socio.id_socio=factura.id_socio');\n $query = $this->db->get();\n if (count($query->result()) > 0) {\n return $query->result();\n }\n }", "public function getColumnsList(){\n return $this->_get(3);\n }", "public function datatable_verifikasi_insurance_setup()\n\t{\n\t\t/* Array of database columns which should be read and sent back to DataTables. Use a space where\n\t\t * you want to insert a non-database field (for example a counter or static image)\n\t\t */\n\t\t$aColumns = array( '','mfi_account_insurance.account_insurance_no', 'mfi_cif.nama', 'mfi_product_insurance.product_name','mfi_account_insurance.benefit_value','mfi_account_insurance.premium_value','mfi_account_insurance.status_rekening','');\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower( $_GET['sSearch'] ).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sWhere = \"where mfi_account_insurance.status_rekening ='0'\";\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\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$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_verifikasi_insurance_setup($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_verifikasi_insurance_setup($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_verifikasi_insurance_setup(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$row = array();\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['account_insurance_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['account_insurance_no'];\n\t\t\t$row[] = $aRow['nama'];\n\t\t\t$row[] = $aRow['product_name'];\n\t\t\t$row[] = $aRow['benefit_value'];\n\t\t\t$row[] = $aRow['premium_value'];\n\t\t\t$row[] = $aRow['status_rekening'];\n\t\t\t$row[] = '<a href=\"javascript:;\" account_insurance_id=\"'.$aRow['account_insurance_id'].'\" id=\"link-edit\">Verifikasi</a>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "public function getDatatable() {\n $es = Family::select('id', 'family_name', 'description', 'created_at', 'updated_at');\n return Datatables::of($es)->make();\n }", "function generar()\r\n\t{\r\n\t\tforeach($this->columnas as $ef) {\r\n\t\t \t$this->datos->tabla('columnas')->nueva_fila($ef->get_datos());\r\n\t\t}\r\n\t\tparent::generar();\r\n\t}", "function tableData(){\n\t\t$entity_type = in(\"entity_type\");\t\t\n\t\t$table = $entity_type()->getTable();\n\t\t$test = in('test');\n\n\t\t// Table's primary key\n\t\t$primaryKey = 'id';\n\n\t\t// Array of database columns which should be read and sent back to DataTables.\n\t\t// The `db` parameter represents the column name in the database, while the `dt`\n\t\t// parameter represents the DataTables column identifier. In this case simple\n\t\t// indexes\n\t\t$columns = array(\n\t\t\tarray( \t'db' => 'id',\n\t\t\t\t\t'dt' => 0 \n\t\t\t\t ),\n\t\t\tarray( \t'db' => 'created', \n\t\t\t\t\t'dt' => 1, \n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t),\n\t\t\tarray( \t'db' => 'updated',\n\t\t\t\t\t'dt' => 2,\n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\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);\n\t\t\n\t\t$additional_columns = self::getAdditionalFields( $entity_type );\n\t\t\n\t\t$columns = array_merge( $columns, $additional_columns );\n\n\t\t// SQL server connection information\n\t\t$sql_details = array(\n\t\t\t'user' => 'root',\n\t\t\t'pass' => '7777',\n\t\t\t'db' => 'ci3',\n\t\t\t'host' => 'localhost'\n\t\t);\n\t\n\t\trequire( 'theme/admin/scripts/ssp.class.php' );\t\t\n\t\t$date_from = in(\"date_from\");\n\t\t$date_to = in(\"date_to\");\n\t\t$extra_query = null;\n\t\tif( !empty( $date_from ) ){\n\t\t\t$stamp_from = strtotime( $date_from );\n\t\t\t$extra_query .= \"created > $stamp_from\";\n\t\t}\n\t\tif( !empty( $date_to ) ){\n\t\t\t$stamp_to = strtotime( $date_to.\" +1 day\" ) - 1;\n\t\t\tif( !empty( $extra_query ) ) $extra_query .= \" AND \";\n\t\t\t$extra_query .= \"created < $stamp_to\";\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\techo json_encode(\n\t\t\tSSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $extra_query )\n\t\t);\n\t}", "public function getPageData() {\n\t\t//$stat = Statistic::select(array('statistic.id', 'statistic.created_at','category.category_name', 'statistic.ip_address'))\n\t\t//->join('category','statistic.category_id','=','category.id'); \n\t\t$stat = StatView::select(array('id','date','category_name', 'ip_address'));\n\n\t\treturn Datatables::of($stat) \n\t\t-> add_column('actions','<a href=\"{{{ URL::to(\\'admin/blogs/\\' . $id . \\'/delete\\' ) }}}\" class=\"btn btn-xs btn-danger iframe\">{{{ Lang::get(\\'button.delete\\') }}}</a>') \n -> remove_column('id') -> make();\n\n\t}", "public function data()\n {\n $prodi = $this\n ->prodiRepo\n ->getAllData();\n\n return DataTables::of($prodi)\n ->addColumn('action', function($prodi){\n return '<center><a href=\"/dasbor/pengguna/prodi/form-ubah/'.$prodi->id.'\" class=\"btn btn-warning btn-xs\"><i class=\"fa fa-pencil\"></i></a> <a href=\"#hapus\" onclick=\"destroy('.$prodi->id.')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i></a></center>';\n })\n ->rawColumns(['action'])\n ->make(true);\n }", "public function show_table_sturcture()\n\t{\n\t\t$str_input_html = \"\";\n\t\t$table = \"default_module_test\";\n\t\t$table = $this->db->escape_str($table);\n\t\t//$sql = \"DESCRIBE `$table`\";\n\t\t//$desc = $this->db->where('Field','sorts')->query($sql)->row();\n\t\t$desc = Easy_Database_Manage::get_table_desc($table);\n\t\techo \"<pre>\";\n\t\techo print_r($desc);\n\t\techo \"</pre>\";\n\t\n\t}", "public function getTableFields()\n {\n return array(\n array(\"Field\" => \"uid_empresa\", \"Type\" => \"int(10)\", \"Null\" => \"NO\", \"Key\" => \"PRI\", \"Default\" => \"\", \"Extra\" => \"auto_increment\"),\n array(\"Field\" => \"endeve_id\", \"Type\" => \"varchar(60)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_no_obligatorio\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre\", \"Type\" => \"varchar(100)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre_comercial\", \"Type\" => \"varchar(200)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"representante_legal\", \"Type\" => \"varchar(512)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cif\", \"Type\" => \"varchar(20)\", \"Null\" => \"NO\", \"Key\" => \"UNI\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"direccion\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"localidad\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"provincia\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cp\", \"Type\" => \"int(8)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"accion\", \"Type\" => \"timestamp\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"CURRENT_TIMESTAMP\", \"Extra\" => \"\"),\n array(\"Field\" => \"updated\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_provincia\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_municipio\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"convenio\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"created\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"aviso_caducidad_subcontratas\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"color\", \"Type\" => \"varchar(10)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"email\", \"Type\" => \"varchar(255)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_enterprise\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"logo\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"skin\", \"Type\" => \"varchar(300)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"dokify\", \"Extra\" => \"\"),\n array(\"Field\" => \"lang\", \"Type\" => \"varchar(2)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"es\", \"Extra\" => \"\"),\n array(\"Field\" => \"activo_corporacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_aplicacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"receive_summary\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"date_last_summary\", \"Type\" => \"int(16)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"license\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_validation_partner\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price_urgent\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"validation_languages\", \"Type\" => \"varchar(250)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cost\", \"Type\" => \"float\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pay_for_contracts\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_periodicity\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_attached\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_validated\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_rejected\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_expired\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_transfer_pending\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"kind\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"min_app_version\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"2\", \"Extra\" => \"\"),\n array(\"Field\" => \"prevention_service\", \"Type\" => \"varchar(20)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_idle\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"corporation\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirement_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_referrer\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_self_controlled\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"has_custom_login\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"header_img\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"), array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirements_origin_company_cloneables\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n );\n }", "public function getData()\n {\n $reprocesses = Reprocess::where('available', 1)->with([\n 'fruit',\n 'quality',\n 'varieties',\n ]);\n\n return Datatables::of($reprocesses)\n ->addColumn('fruit', function ($reprocess) {\n return $reprocess->fruit->specie;\n })->editColumn('quality', function ($reprocess) {\n return $reprocess->quality->name;\n })->editColumn('varieties', function ($reprocess) {\n return $reprocess->varieties->variety;\n })->make(true);\n }", "public function print_table_description()\n {\n }", "function listPage_tableField(){\n $this->data_view['tableField'] = array(\n array('name'=>'id','title'=>'Mã'),\n array('name'=>'image','title'=>'Hình','type'=>'image','linkDetail'=>true),\n array('name'=>'title','title'=>'Tên','linkDetail'=>true),\n array('name'=>'c_title','title'=>'Loại'),\n array('name'=>'price','title'=>'Giá','type'=>'number'),\n array('name'=>'price_promotion','title'=>'Giá giảm','type'=>'number','hidden'=>true),\n array('name'=>'views','title'=>'Lượt xem','type'=>'number'),\n array('name'=>'is_active','title'=>'Trạng thái','type'=>'status'),\n array('name'=>'is_stock','title'=>'Còn hàng','type'=>'status','hidden'=>true),\n array('name'=>'is_special','title'=>'Nổi bật','type'=>'status','hidden'=>true)\n );\n }", "public function anyData()\n {\n $datatables = $this->datatables();\n #custome datatable yajra in here \n return $datatables->make(true);\n }" ]
[ "0.7059445", "0.6906595", "0.67237484", "0.66691446", "0.64599985", "0.63746053", "0.6253364", "0.6237214", "0.6220534", "0.619548", "0.61886793", "0.6149823", "0.6132348", "0.6101599", "0.6090547", "0.6060537", "0.604652", "0.60460377", "0.60268265", "0.60148716", "0.6008487", "0.5978947", "0.59759223", "0.5947542", "0.59456724", "0.5944691", "0.59245306", "0.58996737", "0.5890184", "0.5874481", "0.58583975", "0.5855384", "0.58481944", "0.5821261", "0.5819652", "0.58090925", "0.5808285", "0.5807208", "0.57961804", "0.5776952", "0.5775221", "0.576554", "0.5763948", "0.57509404", "0.57454383", "0.5745073", "0.57448244", "0.5742666", "0.57397914", "0.57292795", "0.5723661", "0.57209", "0.5718594", "0.5718594", "0.5718594", "0.5715209", "0.570882", "0.57087535", "0.5699796", "0.5698599", "0.56949204", "0.5690531", "0.5688956", "0.56851023", "0.5681869", "0.5669435", "0.5663691", "0.5661808", "0.5658767", "0.56541896", "0.5644941", "0.56444645", "0.5643235", "0.5643002", "0.5642284", "0.56421053", "0.5638072", "0.5635828", "0.5630614", "0.562886", "0.5628058", "0.56277674", "0.562685", "0.5625505", "0.5618479", "0.56164503", "0.5616353", "0.56131184", "0.5612216", "0.5608829", "0.56082726", "0.56025463", "0.5593767", "0.55897003", "0.55887425", "0.5586208", "0.55851823", "0.55791456", "0.557263", "0.5554673", "0.5548841" ]
0.0
-1
Liste des factures for DataTables
public function liste_chunk($limit = 0, $offset = 1, $filters = null, $ordercol = 2, $ordering = "asc") { /* Replace by query: SELECT fac_id AS RowID, fac_id, fac_rappel, fac_id_rappel, fac_date, fac_tva, ctc_id_comptable, dvi_id_comptable, dvi_client, ctc_nom, dvi_correspondant, cor_nom, cor_email, fac_transmise, fac_etat, fac_relance, fac_contentieux, fac_notes, cor_telephone1, vef_etat, cor_telephone2, ctc_email, ctc_telephone, ctc_mobile, fac_couleur, fac_masque, fac_fichier, fac_reference, scv_nom, dvi_reference, fac_reprise, fac_montant_htnr, fac_montant_ht, fac_montant_tva, fac_montant_ttc, fac_regle, fac_reste, --psevdo-php ($v->solde_du >= 0.01 AND $v->fac_etat == 2)? $v->due = 1 : $v->due = 0; fac_reste AS solde_du, IF( fac_reste>=0.01 AND fac_etat=2, 1, 0) AS due FROM `t_factures` LEFT JOIN `t_commandes` ON `cmd_id` = `fac_commande` LEFT JOIN `t_devis` ON `dvi_id` = `cmd_devis` LEFT JOIN `t_contacts` ON `ctc_id` = `dvi_client` LEFT JOIN `t_correspondants` ON `cor_id` = `dvi_correspondant` LEFT JOIN `t_societes_vendeuses` ON `scv_id` = `dvi_societe_vendeuse` LEFT JOIN `v_etats_factures` ON `vef_id` = `fac_etat` WHERE `fac_inactif` IS NULL ORDER BY `fac_date` DESC , `fac_reference` DESC */ $this->load->helper('calcul_factures'); /* Disable query builder // première partie du select, mis en cache $this->db->start_cache(); // lecture des informations $this->db->select("fac_id, fac_id AS RowID,fac_rappel,fac_id_rappel,fac_date,fac_tva,ctc_id_comptable,dvi_id_comptable,dvi_client,ctc_nom," ."dvi_correspondant,cor_nom,cor_email,fac_transmise,fac_etat,fac_relance,fac_contentieux,fac_notes," ."cor_telephone1,vef_etat,cor_telephone2,ctc_email,ctc_telephone,ctc_mobile,fac_couleur,fac_masque," ."fac_fichier,fac_id_rappel,fac_reference,scv_nom,dvi_reference,fac_reprise",false); $this->db->join('t_commandes','cmd_id=fac_commande','left'); $this->db->join('t_devis','dvi_id=cmd_devis','left'); $this->db->join('t_contacts','ctc_id=dvi_client','left'); $this->db->join('t_correspondants','cor_id=dvi_correspondant','left'); $this->db->join('t_societes_vendeuses','scv_id=dvi_societe_vendeuse','left'); $this->db->join('v_etats_factures','vef_id=fac_etat','left'); $this->db->where('fac_inactif is null'); $this->db->order_by('fac_date','DESC'); $this->db->order_by('fac_reference','DESC'); $this->db->stop_cache(); $table = 't_factures'; // aliases $aliases = array( ); $resultat = $this->_filtre($table,$this->get_filterable_columns(),$aliases,$limit,$offset,$filters,0,NULL); $this->db->flush_cache(); */ $resultat = array(); $q = $this->db->query("SELECT fac_id, fac_id AS RowID, fac_rappel, fac_id_rappel, fac_date, fac_tva, IF(dvi_id_comptable > 0, CAST(dvi_id_comptable AS CHAR(30)), idc_id_comptable) AS ctc_id_comptable, dvi_id_comptable, dvi_client, ctc_nom, dvi_correspondant, cor_nom, cor_email, fac_transmise, fac_etat, fac_relance, fac_contentieux, fac_notes, cor_telephone1, vef_etat, cor_telephone2, ctc_email, ctc_telephone, ctc_mobile, fac_couleur, fac_masque, fac_fichier, fac_reference, scv_nom, dvi_reference, fac_reprise FROM `t_factures` LEFT JOIN `t_commandes` ON `cmd_id` = `fac_commande` LEFT JOIN `t_devis` ON `dvi_id` = `cmd_devis` LEFT JOIN `t_id_comptable` ON (`dvi_client` = `idc_contact` AND `dvi_societe_vendeuse` = `idc_societe_vendeuse`) LEFT JOIN `t_contacts` ON `ctc_id` = `dvi_client` LEFT JOIN `t_correspondants` ON `cor_id` = `dvi_correspondant` LEFT JOIN `t_societes_vendeuses` ON `scv_id` = `dvi_societe_vendeuse` LEFT JOIN `v_etats_factures` ON `vef_id` = `fac_etat` WHERE `fac_inactif` IS NULL ORDER BY `fac_date` DESC , `fac_reference` DESC "); if ($q->num_rows() > 0) { $resultat = array("data" => $q->result(), "recordsTotal" => $q->num_rows(), "recordsFiltered" => $q->num_rows(), "recordsOffset" => $offset, "recordsLimit" => $limit, "ordercol" => "fac_date", "ordering" => "desc"); //return $result; } else { $resultat = array("data" => array(), "recordsTotal" => 0, "recordsFiltered" => 0, "recordsOffset" => $offset, "recordsLimit" => $limit); //return $result; } $resultat2 = array(); foreach ($resultat['data'] as $v) { // informations de prix $data = new stdClass(); $data->fac_id = $v->fac_id; $data->fac_tva = $v->fac_tva; $data->fac_etat = $v->fac_etat; $data->vef_etat = $v->vef_etat; $data->fac_reprise = $v->fac_reprise; $data = calcul_factures($data); $v->fac_etat = $data->fac_etat; $v->vef_etat = $data->vef_etat; $v->total_HT = $data->fac_montant_ht; $v->total_TTC = $data->fac_montant_ttc; $v->solde_du = $data->fac_reste; if ($v->solde_du >= 0.01 and $v->fac_etat == 2) { $v->due = 1; } else { $v->due = 0; } // informations de règlement $query = $this->db->where('ipu_facture', $v->fac_id) ->where('ipu_inactif is null') ->select('ipu_reglement,rgl_reference') ->join('t_reglements', 'rgl_id=ipu_reglement', 'left') ->get_compiled_select('t_imputations', false); //log_message('DEBUG', 'M_factures informations de règlement\n '. $query); $q = $this->db->query($query); $reglements = ''; $sep = ''; foreach ($q->result() as $r) { $reglements .= $sep . anchor_popup('reglements/detail/' . $r->ipu_reglement, $r->rgl_reference); $sep = '<br />'; } $v->reglements = $reglements; // autres informations $v->mail = ($v->cor_email != '') ? $v->cor_email : $v->ctc_email; $v->telephone = ($v->cor_telephone1 != '') ? $v->cor_telephone1 : $v->ctc_telephone; $v->portable = ($v->cor_telephone2 != '') ? $v->cor_telephone2 : $v->ctc_mobile; $v->texte_rappel = ''; if ($v->fac_id_rappel == 0) { $v->fac_rappel = ''; } //$v->fac_fichier = construit_lien_fichier("",$v->fac_fichier); // cas des reprises de données if ($v->dvi_client == 0) { $v->ctc_id_comptable = $v->dvi_id_comptable; $v->mail = ''; $v->telephone = ''; $v->portable = ''; } $resultat2[] = $v; } $resultat['data'] = $resultat2; return $resultat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFabricanteDatatablesData () \n {\n return Laratables::recordsOf(Fabricante::class);\n }", "public function dataTable();", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'cCountry_list.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'cdiscount.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'centry_exit_log.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "abstract public function datatables();", "public function makeColumns(){\n $hijosDetalle=$this->\n getReportedetalle()->\n where(['and', \"esdetalle='1'\", \"visiblecampo='1'\"])->\n orderBy('orden')->all();\n //echo count( $hijosDetalle);die();\n $columns=[];\n foreach($hijosDetalle as $fila){\n $columns[]=[\n 'attribute'=>$fila->nombre_campo,\n 'label'=>$fila->aliascampo,\n 'format'=>'raw',\n 'options'=>['width'=>\n $this->sizePercentCampo($fila->nombre_campo).'%'],\n ];\n \n \n }\n return $columns;\n \n }", "function tabledata_Cadre_voirlestables ($serveur,$boolSPIP=false)\r\n{\r\n global $connect_statut, $spip_lang, $connect_id_auteur;\r\n\r\n $tables_extra = array();\r\n $tables_spip = array();\r\n $intNbExtra = 0 ;\r\n\r\n $sqlResultTables = sql_showbase('%');\r\n while ($tabNomTable = sql_fetch($sqlResultTables))\r\n {\r\n foreach ($tabNomTable as $key => $val)\r\n {\r\n if (preg_match('#^'.tabledata_table_prefix().'_#', $val))\r\n {\r\n $tables_spip[] = $val;\r\n }\r\n else\r\n {\r\n $tables_extra[] = $val;\r\n ++$intNbExtra ;\r\n }\r\n }\r\n }\r\n\r\n // affichage\r\n echo \"Choisir une table Extra parmis celle ci-dessous:\\n\";\r\n if ($intNbExtra<1)\r\n {\r\n echo \"Aucune table extra ne semble disponible.\";\r\n }\r\n else\r\n {\r\n echo tabledata_table_HTML ($tables_extra);\r\n }\r\n if ($boolSPIP)\r\n {\r\n echo \"<hr/>\";\r\n echo \"Les tables de SPIP :\\n\";\r\n echo tabledata_table_HTML ($tables_spip);\r\n }\r\n return;\r\n}", "public function datatable()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'detailfasilitaskesehatan', 'read')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\t$table = 'detailfasilitaskesehatan';\n\t\t$primarykey = 'id';\n\t\t$columns = array(\n\t\t\tarray('db' => $primarykey, 'dt' => '0', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\n\t\t\t\t\t\t<input type='checkbox' id='titleCheckdel' />\n\t\t\t\t\t\t<input type='hidden' class='deldata' name='item[\".$i.\"][deldata]' value='\".$d.\"' disabled />\n\t\t\t\t\t</div>\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => $primarykey, 'dt' => '1', 'field' => $primarykey),\n\t\t\tarray('db' => 'b.namakategori', 'dt' => '2', 'field' => 'namakategori'),\n\t\t\tarray('db' => 'nama', 'dt' => '3', 'field' => 'nama'),\n\t\t\tarray('db' => 'kodefaskes', 'dt' => '4', 'field' => 'kodefaskes'),\n\t\t\t// array('db' => 'kelas', 'dt' => '5', 'field' => 'kelas'),\n\t\t\t// array('db' => 'direktur', 'dt' => '6', 'field' => 'direktur'),\n\t\t\tarray('db' => 'alamat', 'dt' => '5', 'field' => 'alamat'),\n\t\t\tarray('db' => 'kecamatan', 'dt' => '6', 'field' => 'kecamatan'),\n\t\t\t// array('db' => 'pemilik', 'dt' => '9', 'field' => 'pemilik'),\n\t\t\t// array('db' => 'telpon', 'dt' => '10', 'field' => 'telpon'),\n\t\t\t// array('db' => 'email', 'dt' => '11', 'field' => 'email'),\n\t\t\t// array('db' => 'website', 'dt' => '12', 'field' => 'website'),\n\t\t\t// array('db' => 'fax', 'dt' => '13', 'field' => 'fax'),\n\t\t\t// array('db' => 'ugd', 'dt' => '14', 'field' => 'ugd'),\n\t\t\t// array('db' => 'vip', 'dt' => '15', 'field' => 'vip'),\n\t\t\t// array('db' => 'vvip', 'dt' => '16', 'field' => 'vvip'),\n\t\t\t// array('db' => 'kelas1', 'dt' => '17', 'field' => 'kelas1'),\n\t\t\t// array('db' => 'kelas2', 'dt' => '18', 'field' => 'kelas2'),\n\t\t\t// array('db' => 'kelas3', 'dt' => '19', 'field' => 'kelas3'),\n\t\t\t// array('db' => 'jumdokter', 'dt' => '20', 'field' => 'jumdokter'),\n\t\t\t// array('db' => 'jumperawat', 'dt' => '21', 'field' => 'jumperawat'),\n\t\t\t// array('db' => 'foto', 'dt' => '22', 'field' => 'foto'),\n\t\t\t// array('db' => 'seourl', 'dt' => '7', 'field' => 'seourl'),\n\t\t\tarray('db' => $primarykey, 'dt' => '7', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\n\t\t\t\t\t\t<div class='btn-group btn-group-xs'>\n\t\t\t\t\t\t\t<a href='admin.php?mod=detailfasilitaskesehatan&act=edit&id=\".$d.\"' class='btn btn-xs btn-default' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['action_1']}'><i class='fa fa-pencil'></i></a>\n\t\t\t\t\t\t\t<a class='btn btn-xs btn-danger alertdel' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['action_2']}'><i class='fa fa-times'></i></a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\";\n\t\t\t\t}\n\t\t\t),\n\t\t);\n\t\t$joinquery = \"FROM detailfasilitaskesehatan AS a JOIN katfasilitaskesehatan AS b ON (b.idkategori = a.idkategori)\";\n\t\techo json_encode(SSP::simple($_POST, $this->poconnect, $table, $primarykey, $columns, $joinquery));\n\t}", "public function getListColumns(){\n\treturn \"id, codice_categoria, codice, descrizione\";\n}", "public function data()\n {\n $orders=libro::all();\n foreach ($orders as $key => $value) {\n \n if(count(autor::find($value->id_autor)))\n $value->id_autor=autor::find($value->id_autor)->nombre;\n else $value->id_autor='No asignado';\n \n }\n return \\Datatables::of($orders)->addColumn('action', 'libro.partials.vista')->make(true) ; \n }", "public function tatalFacturas(){\n\t\t\t\t\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"Select count(idFactura) as cantidadFacturas from tb_facturas WHERE estado <> 'Iniciada'\";\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n\t\tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n $resultado = $filas;\n }\n \n /* liberar el conjunto de resultados */\n $res->free();\n \n }\n\n return $resultado['cantidadFacturas'];\t\t\t\n\t\t\n\t}", "public function table()\n\t{\n\t\t$this->datatables->select('testcat.test_id AS test_id, testcat_id, gender, age, score, percentile, percentile.id AS id');\n\t\t$this->datatables->from('percentile');\n\t\t$this->datatables->join('testcat', 'testcat.id = percentile.testcat_id');\n\n\t\t$this->datatables->edit_column('test_id', '$1', 'test_get_link_by_id(test_id)');\n\t\t$this->datatables->edit_column('testcat_id', '$1', 'testcat_get_link_by_id(testcat_id)');\n\t\t$this->datatables->edit_column('gender', '$1', 'gender(gender)');\n\t\t$this->datatables->edit_column('id', '$1', 'percentile_actions(id)');\n\n\t\techo $this->datatables->generate();\n\t}", "public function getAllSuppliersToDataTables();", "public function datatables()\n {\n $param = [\n 'url' => 'prestasi',\n 'action' => ['show', 'edit', 'destroy'],\n 'gambar' => 'prestasi'\n ];\n\n return Datatables::of(Prestasi::query())\n ->addColumn('action', function($data) use ($param) {\n return generateAction($param, $data->slug);\n })\n ->editColumn('gambar', function($data) use ($param) {\n return generateImagePath($param['gambar'], $data->gambar, $data->judul);\n })\n ->editColumn('isi', function($data) {\n return str_limit($data->isi, 100);\n })\n ->rawColumns(['isi', 'gambar', 'action'])\n ->addIndexColumn()\n ->make(true);\n }", "public function getDatatable() {\n \treturn datatables()->of(\\App\\Models\\Class_::all())->make(true);\n }", "public function obtenerFacturas($data) \n {\n $documento = $data['documento']; \n return $this->cnx->query(\n 'SELECT fc.id, fc.correo_electronico, fc.nombres, fc.estado_factura, fc.valor FROM facturas_cabecera fc \n INNER JOIN registro_usuarios ru \n ON ru.id = fc.id_usuario \n WHERE ru.documento = ?', [$documento]); \n }", "function get_columns() {\n\t\t$columns = [\n\t\t\t'jumlahHTTPS' => 'Jumlah Domain HTTPS',\n\t\t\t'totalDomain' => 'Total Domain', \n\t\t\t'jumlahCert' => 'Jumlah Sertifikat Aktif',\n\t\t\t'totalCert' => 'Total Sertifikat'\n\t\t];\n\n\t\treturn $columns;\n\t}", "public function tabla()\n {\n\n \treturn Datatables::eloquent(Encargos::query())->make(true);\n }", "function showDataTable(){\n\t\t$output = \"\";\n\t\t// print the table\n\t\t$output .= \"<table summary=\\\"\".$this->summary.\"\\\">\\n\";\n\t\t// print the caption\n\t\t$output .= \"<caption>\".$this->caption.\"</caption>\\n\";\n\t\t$output .= $this->showHeader();\n\t\t// initialise variables\n\t\t$altCounter = 0;\n\t\t$altClass = \"\";\n\t\t$h = 1;\n\t\t// loop each row\n\t\tfor ($x=0; $x<count($this->rows); $x++) {\n\t\t\t// if it is time to show the header\n\t\t\tif ($h==$this->headerRepeat){\n\t\t\t\t// show the header\n\t\t\t\t$output .= $this->showHeader();\n\t\t\t\t$h = 1;\n\t\t\t}\n\t\t\t$row = $this->rows[$x];\n\t\t\t// alternate the row classes\n\t\t\tif ($this->altClasses){\n\t\t\t\tif ($this->altClasses[$altCounter]!=\"\"){ $altClass = \" class=\\\"\".$this->altClasses[$altCounter].\"\\\"\"; } else { $altClass=\"\"; }\n\t\t\t\tif ($altCounter==count($this->altClasses)-1){ $altCounter=0; } else { $altCounter++; }\n\t\t\t}\n\t\t\t// set the parameters to nothing\n\t\t\t$params = \"\";\n\t\t\t// if there are parameters for this row set\n\t\t\tif (count($this->rowParams[$x])>0){\n\t\t\t\t// loop the parameters\n\t\t\t\twhile (list($attribute, $parameter) = each($this->rowParams[$x])) {\n\t\t\t\t\t// if the parameter is 'class'\n\t\t\t\t\tif (strtolower($attribute)==\"class\"){\n\t\t\t\t\t\t// replace the altClass variable\n\t\t\t\t\t\t$altClass = \" \".strtolower($attribute).\"=\\\"$parameter\\\"\";\n\t\t\t\t\t} else{\n\t\t\t\t\t\t// otherwise build the parameters\n\t\t\t\t\t\t$params .= \" \".strtolower($attribute).\"=\\\"$parameter\\\"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// print the row\n\t\t\t$output .= \"\t<tr$altClass$params>\\n\";\n\t\t\t\t// set the colSpan to 0\n\t\t\t\t$colSpan = 0;\n\t\t\t\t$colSpanAttribute = \"\";\n\t\t\t\t// if this row has less columns than the number of fields\n\t\t\t\tif (count($row)<count($this->fields)){\n\t\t\t\t\t$colSpan = (count($this->fields)-count($row))+1;\n\t\t\t\t}\n\t\t\t\t// loop each cell\n\t\t\t\tfor ($i=0; $i<count($row); $i++) {\n\t\t\t\t\t$value = $row[$i];\n\t\t\t\t\t$value = $this->formatField($i, $x);\n\t\t\t\t\t// make the colspan attribute\n\t\t\t\t\tif ($colSpan>0 && $i==(count($row)-1)){ $colSpanAttribute = \" colspan=\\\"$colSpan\\\"\"; }\n\t\t\t\t\t// print the cell\n\t\t\t\t\t$output .= \"\t\t<td$colSpanAttribute>\".$value.\"</td>\\n\";\n\t\t\t\t}\n\t\t\t// end the row\n\t\t\t$output .= \"\t</tr>\\n\";\n\t\t\t// increment the header repeat variable\n\t\t\t$h++;\n\t\t}\n\t\t// end the table\n\t\t$output .= \"</table>\\n\\n\";\n\t\tprint $output;\n\t}", "private function table_data()\n {\n $data = array();\n $args = array( \n 'post_type' => 'sutabu_ppdb',\n 'post_status' => 'publish',\n 'orderby' => 'title', \n 'order' => 'ASC', \n );\n\n $the_query = new WP_Query( $args );\n\n if($the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();\n $data[] = array(\n 'id' => $dt->ID,\n 'perusahaan' => the_title(),\n 'total_ken' => the_content(),\n 'total_pen' => 'ok',\n 'tanggal' => 'ok'\n ); \n endwhile; endif;\n wp_reset_postdata();\n\n return $data;\n }", "function getDatatables()\r\n {\r\n $this->db->from(\"v_registro\");\r\n $query = $this->db->get();\r\n return $query->result();\r\n }", "public function datatableTables()\n {\n return view('pages.tables.tables_datatable');\n }", "function obtener_facultades (){\n \n //$nombre_usuario=toba::usuario()->get_nombre();\n //$sql=\"SELECT t_s.sigla FROM sede t_s, administrador t_a WHERE t_a.nombre_usuario=$nombre_usuario AND t_s.id_sede=t_a.id_sede\";\n //$sql=\"SELECT t_ua.sigla, t_ua.descripcion FROM unidad_academica t_ua, sede t_s JOIN administrador t_a ON (t_a.nombre_usuario=$nombre_usuario) JOIN (t_a.id_sede=t_s.id_sede) WHERE t_s.sigla=t_ua.id_sede\";\n $sql=\"SELECT sigla, descripcion FROM unidad_academica WHERE sigla <> 'RECT'\";\n return toba::db('gestion_aulas')->consultar($sql);\n \n }", "public function getAll(){\n\t\t$tabDemandes = [];\n\t\t$q = $this->pdo->query(\"SELECT * FROM demande\");\n\t\twhile ($donnee = $q->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$tabDemandes[] = new Demande($donnee);\n\t\t}\n\t\treturn $tabDemandes;\n\t}", "public function summaryColumns();", "function get_all_kelas(){\n $this->datatables->select('kelas_id,kelas_nama')\n ->from('v_kelas');\n return $this->datatables->generate();\n }", "function datatable()\n {\n return $this->table($this->table);\n }", "public function getCategorizedTables() {}", "public function datatable() {\n $this -> datatables -> select(\"Id,AdvertisementTitle,AdvertisementImage,AdvertisementDescription,AdvertisementUrl,StartDate, EndDate, CreatedBy,ModifiedBy,CreatedOn,ModifiedOn,IsActive AS active,IsRemoved\", FALSE)\n -> unset_column('AdverismentImage')\n -> unset_column('Id')\n -> unset_column('active')\n -> from('advertisements') \n -> add_column('Actions', get_action_buttons('$1', 'advertisements'), 'Id');\n\n $cond = array(\n 'IsRemoved' => '0'\n );\n $this -> datatables -> where($cond);\n\n echo $this -> datatables -> generate();\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 describir_campos($tabla_x,$bd_x=\"\"){\r\n\t\tif($bd_x!=\"\"){\r\n\t\t\t$bd = $bd_x.\".\";\r\n\t\t}#end if\r\n\t\t$query_x = \"SHOW FIELDS FROM \".$bd.$tabla_x;\r\n\t\t$result = mysqli_query($this->conexion,$query_x);\r\n\t\tif($result){\r\n\t\t\t$n_filas = mysqli_num_rows($result);\r\n\t\t\t$this->serial[$tabla_x] = \"\";\r\n\t\t\tfor ($i=0;$i<$n_filas;$i++){\r\n\t\t\t\t$row_x = mysqli_fetch_array($result);\r\n\t\t\t\tif($i==0){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t\t$this->nombre[$i] = $row_x[0];\r\n\t\t\t\t$this->tipo[$i] = $row_x[1];\r\n\t\t\t\tif($row_x[\"Key\"] == \"PRI\"){\r\n\t\t\t\t\t$this->campo_clave = $row_x[0];\r\n\t\t\t\t}#end if\r\n\t\t\t}#end next i\r\n\t\t}#end if result\r\n\t}", "public function anyData()\n\t{\n\t return Datatables::collection(goods::all())->make(true);\n\t}", "public function datatable()\n {\n $p = $this->getPermission('vehicle');\n $data = Vehicle::with(['Brand','Dependency'])->get();\n if(isset($p))\n foreach($data as $d)\n $d['p'] = array('a'=>false && $p->u,'e'=>$p->u,'d'=>$p->d);\n return datatables()->of($data)->toJson();\n }", "public function datatable()\n {\n $reportes=Reporte::join('ilustraciones','reportes.id_ilustracion','=','ilustraciones.id_ilustracion')\n ->join('users','reportes.id_user','=','users.id')\n ->select(array('users.name','ilustraciones.name_draw','ilustraciones.estado','reportes.id_reporte'));\n return DataTables::of($reportes)\n ->addColumn('view','IntAdmin.intReportes.botones.revisar')\n ->rawColumns(['view'])\n ->toJson(); \n }", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora decolare</th>\";\n\t\techo \"<th>Destinatia</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_decolare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"destinatia\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "public function DataTables( $cat_id = false ) {\n \n // Carrega a library\n $this->load->library( 'DataTables' );\n\n // Columns\n $columns = array (\n 0 => \n array (\n 'db' => 'id',\n 'dt' => 0,\n ),\n 1 => \n array (\n 'db' => 'midia_id',\n 'dt' => 1,\n 'formatter' => function( $d, $row ) {\n\n // Verifica se existe uma midia\n if ( $d ) {\n\n // Carrega a model\n $this->load->model( 'midia' );\n $midia = $this->Midia->findById( $d );\n if ( $midia ) {\n return \"<img src='\".$midia->path().\"' width='50px'>\";\n } else {\n return \"<img src='\".base_url( 'public/images/empty.jpg' ).\"' width='50px'>\";\n }\n } else {\n return \"<p>Sem imagem</p>\";\n }\n }\n ),\n 2 => \n array (\n 'db' => 'name',\n 'dt' => 2,\n ),\n 3 => \n array (\n 'db' => 'category_id',\n 'dt' => 3,\n 'formatter' => function( $d, $row ) {\n\n // Carrega a model\n\t\t $this->load->model( 'category' );\n $category = $this->Category->findById( $d );\n if ( $category )\n return $category->name;\n else\n return '';\n }\n ),\n 4 => \n array (\n 'db' => 'region_id',\n 'dt' => 4,\n 'formatter' => function( $d, $row ) {\n\n // Carrega a model\n\t\t $this->load->model( 'region' );\n\n $region = $this->Region->findById( $d );\n\n return $region->name;\n }\n ),\n array ( \n 'db' => 'id', \n 'dt' => 6,\n 'formatter' => function( $d, $row ) {\n return '<label class=\"custom-control custom-checkbox\">\n <input value=\"'.$d.'\" type=\"checkbox\" name=\"ids[]\" class=\"custom-control-input bulkCheckbox\">\n <span class=\"custom-control-indicator\"></span>\n </label>';\n }\n )\n );\n $columns[] = \n [ \n 'db' => 'id',\n 'dt' => 5, \n 'formatter' => function( $d, $row ) {\n $catId = $this->__getCategoryIdFromUrl();\n\n // Formata a data\n $del = rmButton( \"gateway/delete/$catId/\".$d );\n $edit = editButton( \"gateway/list/$catId?addModal=true&id=\".$d );\n $list = '<a href=\"'.site_url( 'gateway/last_news/'.$d ).'\" class=\"btn btn-sm btn-primary text-light\">\n <i class=\"fa fa-list\"></i>\n </a>';\n\n // Volta os botões\n return $del.'&nbsp'.$edit.'&nbsp'.$list;\n }\n ];\n\n // Volta o resultado\n return $this->datatables->send( $this->table(), $columns, false, \"category_id = $cat_id\" );\n }", "function consultarFacultades() {\r\n $cadena_sql=$this->sql->cadena_sql(\"datos_facultades\",\"\");\r\n $resultado=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n return $resultado;\r\n }", "function mostrar_tabla()\n {\n return $this->mostrar_tabla_slickgrid();\n /*\n $sPrefs = '';\n $id_usuario= core\\ConfigGlobal::mi_id_usuario();\n $tipo = 'tabla_presentacion';\n $oPref = new usuarios\\Preferencia(array('id_usuario'=>$id_usuario,'tipo'=>$tipo));\n $sPrefs=$oPref->getPreferencia();\n if ($sPrefs == 'html') {\n return $this->mostrar_tabla_html();\n } else {\n return $this->mostrar_tabla_slickgrid();\n }\n */\n }", "function mostrarDetalleProceso(){\r\n ?>\r\n <script type=\"text/javascript\" src=\"<? echo $this->configuracion[\"host\"].$this->configuracion[\"site\"].$this->configuracion[\"javascript\"];?>/datatables/js/jquery.js\"></script>\r\n <script type=\"text/javascript\" src=\"<? echo $this->configuracion[\"host\"].$this->configuracion[\"site\"].$this->configuracion[\"javascript\"];?>/datatables/js/jquery.dataTables.js\"></script>\r\n <script>\r\n $(document).ready(function() { \r\n $('#tabla').dataTable();\r\n })\r\n </script>\r\n <link type=\"text/css\" href=\"<? echo $this->configuracion[\"host\"].$this->configuracion[\"site\"].$this->configuracion[\"javascript\"];?>/datatables/css/jquery.dataTables_themeroller.css\" rel=\"stylesheet\"/>\r\n \r\n <? \r\n echo \"<h1>Detalles de Proceso</h1>\";\r\n $html = \"<table id='tabla' >\";\r\n $html .= \"<thead>\";\r\n $html .= \"<tr>\"; \r\n $html .= \"<td>Código Estudiante</td>\"; \r\n $html .= \"<td>Observación</td>\";\r\n $html .= \"</tr>\";\r\n $html .= \"</thead>\";\r\n $html .= \"<tbody>\";\r\n foreach ($this->mensaje as $key => $estudiante) {\r\n \r\n $html .= \"<tr>\";\r\n $html .= \"<td>\".$key.\"</td>\";\r\n $html .= \"<td>\";\r\n foreach ($estudiante as $key2=>$obs_estudiante) {\r\n if (count($estudiante)>1&&$key2>0)\r\n {\r\n $html.=\"<br>\";\r\n }\r\n $html .= $obs_estudiante;\r\n }\r\n $html .= \"</td>\";\r\n $html .= \"</tr>\";\r\n }\r\n $html .= \"</tbody>\";\r\n \r\n $html .= \"</table>\";\r\n echo $html;\r\n }", "function listTables();", "static function columns($instancia = null) {\n if ($instancia) {\n return fields_of($instancia->_tablename());\n } else {\n return fields_of(self::getInstance()->_tablename());\n }\n }", "public function getListDataTable(){\n $folders = Folder::select(['id', 'name', 'description'])\n ->where('user_id', Auth::user()->id);\n \n return Datatables::of($folders)->make(true);\n }", "public function getTableData()\n\t{\n\t}", "public static function showData() {\n\n\t\tforeach(self::$employee_array as $id => $employee) { // Pour chaque ligne on affiche chaque attribut correspondant au colonne du tableau\n\n\t\t\tif($employee->_entityShortName == null) // Gestion du cas où une entité a été supprimée mais pas l'employé de l'entité\n\t\t\t\techo \"<tr><td>null</td><td>\" . $employee->_lastName . \"</td><td>\" . $employee->_firstName . \"</td><td>\" . $employee->_login . \"</td><td><a href=\\\"user.php?action=modifier&id=\" . $employee->_id . \"\\\">modifier</a></td><td><a href=\\\"user.php?action=supprimer&id=\" . $id . \"\\\">supprimer</a></td></tr>\";\n\t\t\telse\n\t\t\t\techo \"<tr><td>\" . $employee->_entityShortName . \"</td><td>\" . $employee->_lastName . \"</td><td>\" . $employee->_firstName . \"</td><td>\" . $employee->_login . \"</td><td><a href=\\\"user.php?action=modifier&id=\" . $employee->_id . \"\\\">modifier</a></td><td><a href=\\\"user.php?action=supprimer&id=\" . $id . \"\\\">supprimer</a></td></tr>\";\n\t\t}\n\t}", "function getTablas() {\n $tablas['departamento']['id'] = 'departamento';\n $tablas['departamento']['nombre'] = 'Departamentos';\n\n $tablas['departamento_region']['id'] = 'departamento_region';\n $tablas['departamento_region']['nombre'] = 'Departamentos (Region)';\n\n $tablas['municipio']['id'] = 'municipio';\n $tablas['municipio']['nombre'] = 'Municipios';\n\n $tablas['operador']['id'] = 'operador';\n $tablas['operador']['nombre'] = 'Operador';\n\n $tablas['pais']['id'] = 'pais';\n $tablas['pais']['nombre'] = 'Paises';\n\n $tablas['ciudad']['id'] = 'ciudad';\n $tablas['ciudad']['nombre'] = 'Ciudades';\n\n $tablas['familias']['id'] = 'familias';\n $tablas['familias']['nombre'] = 'Familias';\n\n $tablas['monedas']['id'] = 'monedas';\n $tablas['monedas']['nombre'] = 'Monedas';\n\n $tablas['cuentas_financiero']['id'] = 'cuentas_financiero';\n $tablas['cuentas_financiero']['nombre'] = 'Cuentas';\n\n $tablas['cuentas_financiero_ut']['id'] = 'cuentas_financiero_ut';\n $tablas['cuentas_financiero_ut']['nombre'] = 'Cuentas UT';\n\n $tablas['cuentas_financiero_tipo']['id'] = 'cuentas_financiero_tipo';\n $tablas['cuentas_financiero_tipo']['nombre'] = 'Tipos de Cuentas';\n\n $tablas['extracto_movimiento']['id'] = 'extracto_movimiento';\n $tablas['extracto_movimiento']['nombre'] = 'Movimientos';\n\n $tablas['centropoblado']['id'] = 'centropoblado';\n $tablas['centropoblado']['nombre'] = 'Centros Poblados';\n\n $tablas['encuesta_tipo']['id'] = 'encuesta_tipo';\n $tablas['encuesta_tipo']['nombre'] = 'Tipo de Encuesta';\n\n $tablas['actividades_tipo']['id'] = 'actividades_tipo';\n $tablas['actividades_tipo']['nombre'] = 'Planes de Actividades';\n\n $tablas['tipohallazgo']['id'] = 'tipohallazgo';\n $tablas['tipohallazgo']['nombre'] = 'Tipo Hallazgo';\n\n asort($tablas);\n return $tablas;\n }", "public function getFees()\n {\n $fees = Fee::where('archived', '=', 0);\n return Datatables::of($fees)\n ->editColumn('name', function ($fee) {\n return '<a href=\"' . url('admin/products/' . $fee->id . '/edit') . '\">' . $fee->name . '</a>';\n })\n ->editColumn('cost', function ($fee) {\n return \"$\" . number_format($fee->cost, 2);\n })\n ->make(true);\n }", "public function dataTables()\r\r\n {\r\r\n $transfers = $this->transferRepo->findAll();\r\r\n\r\r\n return DataTables::of($transfers)\r\r\n ->addColumn('title', function($row) {\r\r\n return $row->title;\r\r\n })\r\r\n ->addColumn('photo', function($row) {\r\r\n if($row->photo){\r\r\n return '<img src='. asset(\"public/images/transfer/thumb/\" . $row->photo).'/>';\r\r\n } else {\r\r\n return '<strong> No Photo </strong>';\r\r\n }\r\r\n })\r\r\n ->addColumn('edit', function($row) {\r\r\n return '<a href=\"'. url(\"admin-panel/transfers/\" . $row->id . \"/edit\") .'\" type=\"button\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\" aria-hidden=\"true\"></i></a>';\r\r\n })\r\r\n ->addColumn('delete', function ($row) {\r\r\n return '<a href=\"'. url('admin-panel/transfers/delete', $row->id) .'\" class=\"btn btn btn-danger\" data-confirm=\"Are you sure, You want to delete?\" data-method=\"delete\"><i class=\"glyphicon glyphicon-trash\"></i></a>';\r\r\n })\r\r\n ->rawColumns(['delete' => 'delete','edit' => 'edit', 'photo' => 'photo'])\r\r\n ->make(true);\r\r\n }", "public function datatables()\n {\n $query = Laporan::with('user')\n ->with('penempatan')\n ->where('laporans.user_id', '=', auth()->user()->id)\n ->select('laporans.*');\n\n return DataTables::of($query)\n ->addColumn('actions', function ($item) {\n return view('template_pengguna.template_laporan.actions', compact('item'));\n })\n ->addIndexColumn()\n ->rawColumns(['actions', 'created_at'])\n ->make(true);\n }", "function listColumns($tablename);", "public function datatable_rekening_tabungan_setup()\n\t{\n\t\t$aColumns = array( '','mfi_cif.cif_no','mfi_cif.nama','product_name','account_saving_no','');\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower( $_GET['sSearch'] ).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\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$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_rekening_tabungan_setup($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_rekening_tabungan_setup($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_rekening_tabungan_setup(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$rembug='';\n\t\t\tif($aRow['cm_name']!=\"\"){\n\t\t\t\t$rembug=' <a href=\"javascript:void(0);\" class=\"btn mini green-stripe\">'.$aRow['cm_name'].'</a>';\n\t\t\t}\n\t\t\t$row = array();\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['account_saving_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['cif_no'];\n\t\t\t$row[] = $aRow['nama'].$rembug;\n\t\t\t$row[] = $aRow['product_name'];\n\t\t\t$row[] = $aRow['account_saving_no'];\n\t\t\t$row[] = '<div align=\"center\"><a href=\"javascript:;\" class=\"btn mini purple\" account_saving_id=\"'.$aRow['account_saving_id'].'\" id=\"link-edit\"><i class=\"icon-edit\"></i> Edit</a></div>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "function getTablas() {\r\n $tablas['inventario_equipo']['id']='inventario_equipo';\r\n $tablas['inventario_equipo']['nombre']='Inventario (equipo)';\r\n\r\n $tablas['inventario_grupo']['id']='inventario_grupo';\r\n $tablas['inventario_grupo']['nombre']='Inventario (grupo)';\r\n\r\n $tablas['inventario_estado']['id']='inventario_estado';\r\n $tablas['inventario_estado']['nombre']='Inventario (estado)';\r\n\r\n $tablas['inventario_marca']['id']='inventario_marca';\r\n $tablas['inventario_marca']['nombre']='Inventario (marca)';\r\n\r\n $tablas['obligacion_clausula']['id']='obligacion_clausula';\r\n $tablas['obligacion_clausula']['nombre']='Obligacion (clausula)';\r\n\r\n $tablas['obligacion_componente']['id']='obligacion_componente';\r\n $tablas['obligacion_componente']['nombre']='Obligacion (componente)';\r\n\r\n $tablas['documento_tipo']['id']='documento_tipo';\r\n $tablas['documento_tipo']['nombre']='Documento (Tipo)';\r\n\r\n \t\t$tablas['documento_tema']['id']='documento_tema';\r\n \t\t$tablas['documento_tema']['nombre']='Documento (Tema)';\r\n\r\n \t\t$tablas['documento_subtema']['id']='documento_subtema';\r\n \t\t$tablas['documento_subtema']['nombre']='Documento (Subtema)';\r\n\r\n \t\t$tablas['documento_estado']['id']='documento_estado';\r\n \t\t$tablas['documento_estado']['nombre']='Documento (Estado)';\r\n\r\n \t\t$tablas['documento_estado_respuesta']['id']='documento_estado_respuesta';\r\n \t\t$tablas['documento_estado_respuesta']['nombre']='Documento (Estado Respuesta)';\r\n\r\n \t\t$tablas['documento_actor']['id']='documento_actor';\r\n \t\t$tablas['documento_actor']['nombre']='Documento (Responsables)';\r\n\r\n \t\t$tablas['documento_tipo_actor']['id']='documento_tipo_actor';\r\n \t\t$tablas['documento_tipo_actor']['nombre']='Documento (Tipo de Responsable)';\r\n\r\n \t\t$tablas['riesgo_probabilidad']['id']='riesgo_probabilidad';\r\n \t\t$tablas['riesgo_probabilidad']['nombre']='Riesgo (Probabilidad)';\r\n\r\n \t\t$tablas['riesgo_categoria']['id']='riesgo_categoria';\r\n \t\t$tablas['riesgo_categoria']['nombre']='Riesgo (Categoria)';\r\n\r\n \t\t$tablas['riesgo_impacto']['id']='riesgo_impacto';\r\n \t\t$tablas['riesgo_impacto']['nombre']='Riesgo (Impacto)';\r\n\r\n \t\t$tablas['compromiso_estado']['id']='compromiso_estado';\r\n \t\t$tablas['compromiso_estado']['nombre']='Compromisos (Estado)';\r\n\r\n \t\t$tablas['departamento']['id']='departamento';\r\n \t\t$tablas['departamento']['nombre']='Departamentos';\r\n\r\n \t\t$tablas['departamento_region']['id']='departamento_region';\r\n \t\t$tablas['departamento_region']['nombre']='Departamentos (Region)';\r\n\r\n \t\t$tablas['municipio']['id']='municipio';\r\n \t\t$tablas['municipio']['nombre']='Municipios';\r\n\r\n $tablas['operador']['id']='operador';\r\n\t $tablas['operador']['nombre']='Operador';\r\n\r\n asort($tablas);\r\n return $tablas;\r\n }", "public function getTables();", "public function getTables();", "public function getTables();", "public function datatable_deposito_setup()\n\t{\n\t\t/* Array of database columns which should be read and sent back to DataTables. Use a space where\n\t\t * you want to insert a non-database field (for example a counter or static image)\n\t\t */\n\t\t$aColumns = array( '','mfi_cif.cif_no','mfi_cif.nama','account_deposit_no','' );\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(\".$aColumns[$i].\") LIKE '%\".strtolower($_GET['sSearch']).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\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$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(\".$aColumns[$i].\") LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_deposito_setup($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_deposito_setup($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_deposito_setup(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$row = array();\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['account_deposit_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['cif_no'];\n\t\t\t$row[] = $aRow['nama'];\n\t\t\t$row[] = $aRow['account_deposit_no'];\n\t\t\t$row[] = '<a href=\"javascript:;\" account_deposit_id=\"'.$aRow['account_deposit_id'].'\" id=\"link-edit\">Edit</a>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "public function get_columns()\n {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'perusahaan' => 'Name',\n 'total_ken' => 'Total Kendaraan',\n 'total_pen' => 'Total Pengemudi',\n 'tanggal' => 'Created Date' \n );\n return $columns;\n }", "public function getListOfTables() {}", "function listarFactura(){\r\n\t\t$this->procedimiento='tesor.ft_factura_sel';\r\n\t\t$this->transaccion='TSR_FAC_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\t\t\t\t\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_factura','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('nro_factura','int4');\r\n\t\t$this->captura('nombre_emisor','varchar');\t\t\r\n\t\t$this->captura('domicilio_emisor','varchar');\r\n\t\t$this->captura('nit_emisor','int4');\r\n\t\t$this->captura('nombre_cliente','varchar');\t\t\r\n\t\t$this->captura('domicilio_cliente','varchar');\r\n\t\t$this->captura('nit_cliente','int4');\r\n\t\t$this->captura('fecha_emision','date');\r\n\t\t\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\t\t\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "function getTablaDisponibilidadDetalladaFlexible() {\n\t\t$this->extra[\"variable\"] = 'true';\n\t\techo $this->getTablaDisponibilidadDetallada();\n\t}", "private function ObtenerCamposTabla(string $nombteTabla){\n $campos =array(); \n $this->EjecutarSQL(\"DESCRIBE \".$nombteTabla);\n foreach ($this->GetResultados() as $dato) $campos[] = $dato->Field;\n return $campos;\n }", "public function getTableHeaders()\n {\n return ['#', 'Fatura','Ordem Servico'];\n }", "public function tablaProductos () \n\t\t{\t\t\n\t\t\t//Javascript !!!\n\t\t\taddJs('js/products_table.js');\n\t\t\thidden ('iter',0); \n\t\t\t\n\t\t\techo '<table id=\"tabla_productos\" bgColor=#333 cellspacing=1 cellpadding=2 width=700><tbody>';\n\t\t\techo '<tr>'.\n\t\t\t\t\t'<th>Cantidad</th><th>Producto</th><th>Precio<br>sin Iva</th>'.\n\t\t\t\t\t'<th>Precio<br>con Iva</th><th>Total Neto</th><th>Total</th><th></th></tr>';\n\n\t\t\techo '</tbody></table>';\n\n\t\t\techo '<table bgColor=#333 cellspacing=1 cellpadding=2 width=700>';\n\t\t\t$this->tablaSumatoria();\n\t\t\techo '</table>';\t\t\t\n\t\t}", "public function getTableDescription();", "public function datatable()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'component', 'read')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\t$table = 'component';\n\t\t$primarykey = 'id_component';\n\t\t$columns = array(\n\t\t\tarray('db' => $primarykey, 'dt' => '0', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\\n\n\t\t\t\t\t\t<input type='checkbox' id='titleCheckdel' />\\n\n\t\t\t\t\t\t<input type='hidden' class='deldata' name='item[\".$i.\"][deldata]' value='\".$d.\"' disabled />\\n\n\t\t\t\t\t</div>\\n\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => $primarykey, 'dt' => '1', 'field' => $primarykey),\n\t\t\tarray('db' => 'component', 'dt' => '2', 'field' => 'component'),\n\t\t\tarray('db' => 'type', 'dt' => '3', 'field' => 'type',\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\".$d.\"</div>\\n\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => 'datetime', 'dt' => '4', 'field' => 'datetime',\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\treturn \"<div class='text-center'>\".$this->time_ago(strtotime($d)).\"</div>\\n\";\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => 'active', 'dt' => '5', 'field' => 'active',\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\tif ($d == 'N') {\n\t\t\t\t\t\treturn \"<div class='text-center'>\".$GLOBALS['_']['component_status_uninstall'].\"</div>\\n\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn \"<div class='text-center'>\".$GLOBALS['_']['component_status_install'].\"</div>\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t),\n\t\t\tarray('db' => $primarykey, 'dt' => '6', 'field' => $primarykey,\n\t\t\t\t'formatter' => function($d, $row, $i){\n\t\t\t\t\tif ($row['active'] == 'N') {\n\t\t\t\t\t\tif (file_exists('../'.DIR_CON.'/component/'.$row['component'].'/install.php')) {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='admin.php?mod=component&act=install&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-success' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_install']}'><i class='fa fa-plug'></i></a>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='route.php?mod=component&act=install&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-success' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_install']}'><i class='fa fa-plug'></i></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (file_exists('../'.DIR_CON.'/component/'.$row['component'].'/uninstall.php')) {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='admin.php?mod=component&act=uninstall&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-warning' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_uninstall']}'><i class='fa fa-trash-o'></i></a>\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$tblinstall = \"<a href='route.php?mod=component&act=uninstall&folder=\".$row['component'].\"&id=\".$d.\"' class='btn btn-xs btn-warning' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['component_uninstall']}'><i class='fa fa-trash-o'></i></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn \"<div class='text-center'>\\n\n\t\t\t\t\t\t<div class='btn-group btn-group-xs'>\\n\n\t\t\t\t\t\t\t\".$tblinstall.\"\n\t\t\t\t\t\t\t<a class='btn btn-xs btn-danger alertdel' id='\".$d.\"' data-toggle='tooltip' title='{$GLOBALS['_']['action_2']}'><i class='fa fa-times'></i></a>\n\t\t\t\t\t\t</div>\\n\n\t\t\t\t\t</div>\\n\";\n\t\t\t\t}\n\t\t\t)\n\t\t);\n\t\techo json_encode(SSP::simple($_POST, $this->poconnect, $table, $primarykey, $columns));\n\t}", "private function table_data(){\n $data = array();\n\n global $wpdb;\n\n $data = $wpdb->get_results(\"SELECT * FROM {$wpdb->prefix}lic_activations ORDER BY ID ASC\", ARRAY_A);\n \n return $data;\n }", "function _showTables() {\n print \"<pre>\";\n print_r($this->_tables);\n print \"</pre>\";\n }", "protected function columns(): array\n {\n return [\n TD::set('geBuecht_id', __('ID'))\n ->sort()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->id; \n }),\n TD::set('geBuecht_firstname', __('Vorname'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->firstname; \n }),\n TD::set('geBuecht_lastname', __('Nachname'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->name; \n }),\n TD::set('geBuecht_email', __('Email'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->email; \n }),\n TD::set('geBuecht_telefon', __('Tel.'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->tel; \n }),\n TD::set('geBuecht_size', __('Tischgrösse'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->size; \n }),\n TD::set('geBuecht_timeslot', __('Zeitfenster'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->timeslot; \n }),\n TD::set('geBuecht_remark', __('Bemerkungen'))\n ->cantHide()\n ->width('150px')\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->remarks; \n }),\n TD::set('geBuecht_day', __('Datum'))\n ->cantHide()\n ->render(function (geBuechtGastro $geBuecht) {\n return $geBuecht->created_at->format('d.m.Y'); \n }),\n ];\n }", "static function getAlumnesTable(){\n $table = 'alumnes';\n\n // Table's primary key\n $primaryKey = 'id';\n\n // Array of database columns which should be read and sent back to DataTables.\n // The `db` parameter represents the column name in the database, while the `dt`\n // parameter represents the DataTables column identifier. In this case simple\n // indexes\n $columns = array(\n array( 'db' => 'id', 'dt' => 0 ),\n array( 'db' => 'primer_cognom', 'dt' => 1 ),\n array( 'db' => 'segon_cognom', 'dt' => 2 ),\n array( 'db' => 'nom', 'dt' => 3 ),\n array( 'db' => 'mobil', 'dt' => 4 ),\n array( 'db' => 'telefon', 'dt' => 5 ),\n array( \n 'db' => 'email', \n 'dt' => 6,\n 'formatter' => function( $d, $row ) {\n return \"<a href='mailto:$d'>$d</a>\";\n }\n ),\n array(\n 'db' => 'data_naixement',\n 'dt' => 7,\n 'formatter' => function( $d, $row ) {\n if ($d) {\n return date( 'd/m/Y', strtotime($d));\n } else{\n return \"\";\n }\n }\n ),\n array(\n 'db' => 'data_ingres',\n 'dt' => 8,\n 'formatter' => function( $d, $row ) {\n if ($d) {\n return date( 'd/m/Y', strtotime($d));\n } else{\n return \"\";\n }\n }\n ) \n );\n header('Content-Type: application/json; charset=utf-8');\n return json_encode(SSP::complex( $_GET, $table, $primaryKey, $columns, null, \"esborrat = 0\" ));\n }", "public function DataTables() {\n \n // Carrega a library\n $this->load->library( 'DataTables' );\n\n // Columns\n $columns = array (\n array (\n 'db' => 'id',\n 'dt' => 0,\n ),\n array (\n 'db' => 'name',\n 'dt' => 1,\n ),\n array (\n 'db' => 'midia_id',\n 'dt' => 2,\n 'formatter' => function( $d, $row ) {\n\n // Verifica se existe uma midia\n if ( $d ) {\n $this->load->model( 'midia' );\n $midia = $this->Midia->findById( $d );\n return \"<img src='\".$midia->path().\"' width='50px'>\";\n }\n\n // Volta o resultado\n return '';\n }\n ),\n array ( \n 'db' => 'id', \n 'dt' => 4,\n 'formatter' => function( $d, $row ) {\n return '<label class=\"custom-control custom-checkbox\">\n <input value=\"'.$d.'\" type=\"checkbox\" name=\"ids[]\" class=\"custom-control-input bulkCheckbox\">\n <span class=\"custom-control-indicator\"></span>\n </label>';\n }\n )\n );\n $columns[] = \n [ \n 'db' => 'id',\n 'dt' => 3, \n 'formatter' => function( $d, $row ) {\n\n // Formata a data\n $del = rmButton( 'category/delete/'.$d );\n $edit = editButton( 'category/list?addModal=true&id='.$d );\n\n // Volta os botões\n return $del.'&nbsp'.$edit;\n }\n ];\n\n // Volta o resultado\n return $this->datatables->send( $this->table(), $columns );\n }", "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT\n C.id_componentes,\n P.descripcion planta,\n S.descripcion secciones,\n E.descripcion Equipo,\n C.`descripcion` Componente\n ,'.$editar.','.$eliminar.' \nFROM\n `componentes` C\nINNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\nINNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\nINNER JOIN\n plantas P ON P.id_planta = S.id_planta\nWHERE\n \n C.`activo` = 1';\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 7, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "protected function _initAllFIeld() \n\t{\n\t\t$sql = 'select COLUMN_NAME from information_schema.COLUMNS where table_name = \"' . $this->table.'\"\n\t\t\t\tAND `TABLE_SCHEMA`=\"'. $this->db .'\";';\n\n\t\t$this->_fields = array_column($this->_getSelectResult($sql), 'COLUMN_NAME');\n\t}", "public function exportUsdaFoodDes()\r\n\t{\r\n\t\t$query = 'SELECT NDB_No, Long_Desc, Shrt_Desc\r\n\t\t\tFROM usdaFoodDes';\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$table = $this->_db->loadAssocList();\r\n\t\treturn $table;\r\n\t}", "public function getData()\n {\n return datatables(Category::all())->addColumn('action', 'backend.category.action')\n ->editColumn('status', function (Category $category) {\n return ($category->status == 1) ? 'نشط' : 'غير نشط';\n })\n ->toJson();\n }", "public static function listAll(){//le todos os dados da tabela\n\n\t\t$sql = new Sql();\n\n\t\treturn $sql->select(\n\t\t\t\"SELECT * FROM tb_products ORDER BY desproduct\" \n\t\t\t);\n\t}", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora aterizare</th>\";\n\t\techo \"<th>De la</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_aterizare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"de_la\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "function getList($tabName, $filterName, $filterValue) {\n global $mysqli;\n\n $header=getColumns($tabName);\n \n $sql=\"SELECT * FROM $tabName WHERE $filterName='$filterValue'\";\n\t$resultado=doQuery($sql);\n\t$noColumnas = count($header);\n\t$html='<thead>';\n\tfor ($i=0; $i < count($header) ; $i++) { \n\t\t$html.=\"<th>\".$header[$i].\"</th>\";\n\t}\n\n\t$html.='</thead>';\n\t\n\tforeach ($resultado->fetch_all(MYSQLI_BOTH) as $key => $value) {\n\t\t\n\t\t$html.='<tr>';\n\t\tfor ($j=0; $j < $noColumnas ; $j++) { \n\t\t\t\n\t\t\t$html.=\"<td>\".$value[$j].\"</td>\";\n\t\t}\n\t\t$html.='</tr>';\n\t}\t\n\n return \"<table class='analyst-list'>\".$html.\"</table>\";\n}", "function camposBD(){\n//\t\tSELECT idFactura, nombreTienda AS tienda, fecha, numfactura AS Factura FROM tblfacturas \n//\t\tINNER JOIN tbltiendas ON tbltiendas.idtblTienda = tblfacturas.idtblTienda\n\t\t$fields = array();\n\t\t$fields[] = 'idFactura';\t\n\t\t$fields[] = 'fecha';\t\n\t\t$fields[] = 'tienda';\t\n\t\t$fields[] = 'numFactura';\t\n\t\t/*$fields[] = 'opcion';\t*/\n\t\t/*$fields[] = 'comentario';*/\t\n\t\treturn $fields;\n\t}", "function listaPrint()\n\t{\n\t\t$dg = new DataGrid(array(\"style\" => \"width:98%;margin:0px auto;\" , \"border\" => \"1\", \"id\" => \"tbl_\". $this -> tbl .\"\", \"cellpadding\" => \"0\", \"cellspacing\" => \"0\"));\n\t\t$nr_r = count($this);\n\t\tif($nr_r) {\n\t\t\t$dg -> addHeadColumn(\"Produs\");\n\t\t\t$dg -> addHeadColumn(\"UM\");\n\t\t\t$dg -> addHeadColumn(\"Cant\");\n\t\t\t$dg -> setHeadAttributes(array());\n\t\t\t\n\t\t\tfor($i=0;$i<$nr_r;$i++)\n\t\t\t\t{\n\t\t\t\t$this -> fromDataSource($i);\n\t\t\t\t$dg -> addColumn($this -> produs -> denumire);\n\t\t\t\t$dg -> addColumn($this -> produs -> unitate_masura -> denumire);\n\t\t\t\t$dg -> addColumn($this -> cantitate);\n\t\t\t\tif($this -> id == $selected) $class=\"rowclick\";\n\t\t\t\telse $class=\"\";\n\t\t\t\t$ck = $this -> stringReplace($click);\n\t\t\t\t$dck = $this -> stringReplace($dblClick);\n\t\t\t\t$dg -> index();\n\t\t\t\t}\n\t\t}\n\t\t$out .= $dg -> getDataGrid();\n\t\treturn $out;\t\n\t}", "public function desparasitantes_tatalDesparasitantes(){ \t\n\n\t\t\t$resultado = array();\n\t\t\t\n\t\t\t$query = \"Select count(idDesparasitanteMascota) as cantidadDesparasitantes from tb_desparasitantesMascotas \";\n\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado['cantidadDesparasitantes'];\t\t\t\n\t\t\t\n\t\t\t\n }", "public function getDataUmum()\n {\n return DataTables::of(DataUmum::with(['Kecamatan'])->select(['id', 'kecamatan_id', 'tipologi', 'luas_wilayah', 'jumlah_penduduk','bts_wil_utara','bts_wil_timur','bts_wil_selatan','bts_wil_barat'])->get())\n ->addColumn( 'action', function ( $data ) {\n $edit_url = route('data.data-umum.edit', $data->id );\n\n $data['edit_url'] = $edit_url;\n\n return view('forms.action', $data);\n })\n ->make();\n }", "public function listRegisterCols(){\n\t\t$this->registerCol('name_hld', self::COL_ANCHO_DETALLE);\n\t}", "function table()\n {\n return array('pattern' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\n }", "public function indexApi(){\n return datatables(Categorie::query())\n ->setRowClass('filasTable')\n ->editColumn('slugCategoria','adminviews.categories.actions')\n ->rawColumns(['slugCategoria'])\n ->toJson();\n }", "public static function data()\n {\n return DB::table('detailgaji')\n ->join('potongan', 'detailgaji.kd_potongan', '=', 'potongan.kd_potongan')\n\t \n ->select('potongan.kd_potongan', 'detailgaji.id', 'detailgaji.nomor', 'detailgaji.jumlah')\n\n ->orderBy('detailgaji.nomor', 'asc')\n\t \n ->paginate(10);\n }", "function prikazi_sqltabelu($sql_tabela) {\n\n\tglobal $db;\n\n\techo \"<table class='dt-table'>\";\n\techo \"<h2>\" . $sql_tabela . \"</h2>\";\n\n\t// generisanje headera tabele (prikaz podataka)\n\n\t$komanda_head = \"SELECT * FROM $sql_tabela LIMIT 1\";\n\t$result_head = mysql_query($komanda_head, $db);\t\n\n\twhile ( $red = mysql_fetch_assoc($result_head) ) :\n\n\t\t$m = 0;\n\n\t\techo \"<tr class='dt-table'>\";\n\n\t\tforeach ($red as $item) {\n\t\n\t\t\t$kolona = mysql_field_name($result_head, $m);\n \t\t\techo \"<td class='dt-table'>\" . $kolona . \"</td>\";\n \t\t\t//echo \"<td>\" . $item . \"</td>\";\n \t\t$m++;\n\n\t\t}\n\n\t\techo \"</tr>\";\n\n\tendwhile;\n\n\t// generisanje tela tabele (prikaz podataka)\n\n\t$komanda_body = \"SELECT * FROM $sql_tabela\";\n\t$result_body = mysql_query($komanda_body, $db);\n\n\n\twhile ( $red = mysql_fetch_assoc($result_body) ) :\n\n\t\t$n = 0;\n\n\t\techo \"<tr class='dt-table'>\";\n\n\t\tforeach ($red as $item) {\n\t\n\t\t\t$kolona = mysql_field_name($result_body, $n);\n \t\t\techo \"<td class='dt-table'>\" . $item . \"</td>\";\n \t\t$n++;\n\n\t\t}\n\n\t\techo \"</tr>\";\n\n\tendwhile;\n\n\techo \"</table>\";\n\n}", "private function _display_datatable_view(){\n\t\t\t/*---------------------------------------*/\n\t\t\t$budget_id = '';\n\t\t\tif( isset( $_GET['budget_id'] ) && $_GET['budget_id'] ){\n\t\t\t\t$budget_id = $_GET['budget_id'];\n\t\t\t}\n\t\t\t\n\t\t\t//SET FILTER QUERY\n\t\t\t$_SESSION[ $this->table_name ][ 'filter' ][ 'where' ] = \" AND `\".$this->table_name.\"`.`\".$this->table_fields[ 'budget_id' ].\"` = '\".$budget_id.\"' \";\n\t\t\t\n\t\t\t$this->class_settings[ 'html' ] = array( 'html-files/templates-1/'.$this->table_name.'/line-items-datatable-view.php' );\n\t\t\t$datatable = $this->_display_data_table();\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['title'] = get_select_option_value( array( 'id' => $budget_id, 'function_name' => 'get_all_budgets' ) ).' All Line Items';\n\t\t\t$this->class_settings[ 'data' ]['form_title'] = 'Add / Edit Line Items';\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['hide_main_title'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_clear_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_details_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_reports_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['html'] = $datatable['html'];\n\t\t\t\n\t\t\t$returning_html_data = $this->_get_html_view();\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html_replacement' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'new-status',\n\t\t\t\t'javascript_functions' => array( 'recreateDataTables', 'set_function_click_event', 'update_column_view_state' ),\n\t\t\t\t'html_replacement_selector' => '#main-table-view',\n\t\t\t);\n\t\t}", "public function get_entries()\n {\n $this->db->select('id_factura,concepto_factura,fec_factura,valor,nombres_socio,tipo_socio,fondos_socio');\n $this->db->from('factura');\n $this->db->join('socio', 'socio.id_socio=factura.id_socio');\n $query = $this->db->get();\n if (count($query->result()) > 0) {\n return $query->result();\n }\n }", "public function getColumnsList(){\n return $this->_get(3);\n }", "public function datatable_verifikasi_insurance_setup()\n\t{\n\t\t/* Array of database columns which should be read and sent back to DataTables. Use a space where\n\t\t * you want to insert a non-database field (for example a counter or static image)\n\t\t */\n\t\t$aColumns = array( '','mfi_account_insurance.account_insurance_no', 'mfi_cif.nama', 'mfi_product_insurance.product_name','mfi_account_insurance.benefit_value','mfi_account_insurance.premium_value','mfi_account_insurance.status_rekening','');\n\t\t\t\t\n\t\t/* \n\t\t * Paging\n\t\t */\n\t\t$sLimit = \"\";\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit = \" OFFSET \".intval( $_GET['iDisplayStart'] ).\" LIMIT \".\n\t\t\t\tintval( $_GET['iDisplayLength'] );\n\t\t}\n\t\t\n\t\t/*\n\t\t * Ordering\n\t\t */\n\t\t$sOrder = \"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = \"ORDER BY \";\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder .= \"\".$aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\" \".\n\t\t\t\t\t\t($_GET['sSortDir_'.$i]==='asc' ? 'asc' : 'desc') .\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\n\t\t\tif ( $sOrder == \"ORDER BY\" )\n\t\t\t{\n\t\t\t\t$sOrder = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* \n\t\t * Filtering\n\t\t */\n\t\t$sWhere = \"\";\n\t\tif ( isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t\t$sWhere = \"WHERE (\";\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower( $_GET['sSearch'] ).\"%' OR \";\n\t\t\t}\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\n\t\t\t$sWhere .= ')';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sWhere = \"where mfi_account_insurance.status_rekening ='0'\";\n\t\t}\n\t\t\n\t\t/* Individual column filtering */\n\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t{\n\t\t\tif ( $aColumns[$i] != '' )\n\t\t\t{\n\t\t\t\tif ( isset($_GET['bSearchable_'.$i]) && $_GET['bSearchable_'.$i] == \"true\" && $_GET['sSearch_'.$i] != '' )\n\t\t\t\t{\n\t\t\t\t\tif ( $sWhere == \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sWhere = \"WHERE \";\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$sWhere .= \" AND \";\n\t\t\t\t\t}\n\t\t\t\t\t$sWhere .= \"LOWER(CAST(\".$aColumns[$i].\" AS VARCHAR)) LIKE '%\".strtolower($_GET['sSearch_'.$i]).\"%' \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$rResult \t\t\t= $this->model_transaction->datatable_verifikasi_insurance_setup($sWhere,$sOrder,$sLimit); // query get data to view\n\t\t$rResultFilterTotal = $this->model_transaction->datatable_verifikasi_insurance_setup($sWhere); // get number of filtered data\n\t\t$iFilteredTotal \t= count($rResultFilterTotal); \n\t\t$rResultTotal \t\t= $this->model_transaction->datatable_verifikasi_insurance_setup(); // get number of all data\n\t\t$iTotal \t\t\t= count($rResultTotal);\t\n\t\t\n\t\t/*\n\t\t * Output\n\t\t */\n\t\t$output = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\t\n\t\tforeach($rResult as $aRow)\n\t\t{\n\t\t\t$row = array();\n\t\t\t$row[] = '<input type=\"checkbox\" value=\"'.$aRow['account_insurance_id'].'\" id=\"checkbox\" class=\"checkboxes\" >';\n\t\t\t$row[] = $aRow['account_insurance_no'];\n\t\t\t$row[] = $aRow['nama'];\n\t\t\t$row[] = $aRow['product_name'];\n\t\t\t$row[] = $aRow['benefit_value'];\n\t\t\t$row[] = $aRow['premium_value'];\n\t\t\t$row[] = $aRow['status_rekening'];\n\t\t\t$row[] = '<a href=\"javascript:;\" account_insurance_id=\"'.$aRow['account_insurance_id'].'\" id=\"link-edit\">Verifikasi</a>';\n\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\t\n\t\techo json_encode( $output );\n\t}", "public function getDatatable() {\n $es = Family::select('id', 'family_name', 'description', 'created_at', 'updated_at');\n return Datatables::of($es)->make();\n }", "function generar()\r\n\t{\r\n\t\tforeach($this->columnas as $ef) {\r\n\t\t \t$this->datos->tabla('columnas')->nueva_fila($ef->get_datos());\r\n\t\t}\r\n\t\tparent::generar();\r\n\t}", "function tableData(){\n\t\t$entity_type = in(\"entity_type\");\t\t\n\t\t$table = $entity_type()->getTable();\n\t\t$test = in('test');\n\n\t\t// Table's primary key\n\t\t$primaryKey = 'id';\n\n\t\t// Array of database columns which should be read and sent back to DataTables.\n\t\t// The `db` parameter represents the column name in the database, while the `dt`\n\t\t// parameter represents the DataTables column identifier. In this case simple\n\t\t// indexes\n\t\t$columns = array(\n\t\t\tarray( \t'db' => 'id',\n\t\t\t\t\t'dt' => 0 \n\t\t\t\t ),\n\t\t\tarray( \t'db' => 'created', \n\t\t\t\t\t'dt' => 1, \n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t),\n\t\t\tarray( \t'db' => 'updated',\n\t\t\t\t\t'dt' => 2,\n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\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);\n\t\t\n\t\t$additional_columns = self::getAdditionalFields( $entity_type );\n\t\t\n\t\t$columns = array_merge( $columns, $additional_columns );\n\n\t\t// SQL server connection information\n\t\t$sql_details = array(\n\t\t\t'user' => 'root',\n\t\t\t'pass' => '7777',\n\t\t\t'db' => 'ci3',\n\t\t\t'host' => 'localhost'\n\t\t);\n\t\n\t\trequire( 'theme/admin/scripts/ssp.class.php' );\t\t\n\t\t$date_from = in(\"date_from\");\n\t\t$date_to = in(\"date_to\");\n\t\t$extra_query = null;\n\t\tif( !empty( $date_from ) ){\n\t\t\t$stamp_from = strtotime( $date_from );\n\t\t\t$extra_query .= \"created > $stamp_from\";\n\t\t}\n\t\tif( !empty( $date_to ) ){\n\t\t\t$stamp_to = strtotime( $date_to.\" +1 day\" ) - 1;\n\t\t\tif( !empty( $extra_query ) ) $extra_query .= \" AND \";\n\t\t\t$extra_query .= \"created < $stamp_to\";\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\techo json_encode(\n\t\t\tSSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $extra_query )\n\t\t);\n\t}", "public function getPageData() {\n\t\t//$stat = Statistic::select(array('statistic.id', 'statistic.created_at','category.category_name', 'statistic.ip_address'))\n\t\t//->join('category','statistic.category_id','=','category.id'); \n\t\t$stat = StatView::select(array('id','date','category_name', 'ip_address'));\n\n\t\treturn Datatables::of($stat) \n\t\t-> add_column('actions','<a href=\"{{{ URL::to(\\'admin/blogs/\\' . $id . \\'/delete\\' ) }}}\" class=\"btn btn-xs btn-danger iframe\">{{{ Lang::get(\\'button.delete\\') }}}</a>') \n -> remove_column('id') -> make();\n\n\t}", "public function data()\n {\n $prodi = $this\n ->prodiRepo\n ->getAllData();\n\n return DataTables::of($prodi)\n ->addColumn('action', function($prodi){\n return '<center><a href=\"/dasbor/pengguna/prodi/form-ubah/'.$prodi->id.'\" class=\"btn btn-warning btn-xs\"><i class=\"fa fa-pencil\"></i></a> <a href=\"#hapus\" onclick=\"destroy('.$prodi->id.')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i></a></center>';\n })\n ->rawColumns(['action'])\n ->make(true);\n }", "public function show_table_sturcture()\n\t{\n\t\t$str_input_html = \"\";\n\t\t$table = \"default_module_test\";\n\t\t$table = $this->db->escape_str($table);\n\t\t//$sql = \"DESCRIBE `$table`\";\n\t\t//$desc = $this->db->where('Field','sorts')->query($sql)->row();\n\t\t$desc = Easy_Database_Manage::get_table_desc($table);\n\t\techo \"<pre>\";\n\t\techo print_r($desc);\n\t\techo \"</pre>\";\n\t\n\t}", "public function getTableFields()\n {\n return array(\n array(\"Field\" => \"uid_empresa\", \"Type\" => \"int(10)\", \"Null\" => \"NO\", \"Key\" => \"PRI\", \"Default\" => \"\", \"Extra\" => \"auto_increment\"),\n array(\"Field\" => \"endeve_id\", \"Type\" => \"varchar(60)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_no_obligatorio\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre\", \"Type\" => \"varchar(100)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"nombre_comercial\", \"Type\" => \"varchar(200)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"representante_legal\", \"Type\" => \"varchar(512)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cif\", \"Type\" => \"varchar(20)\", \"Null\" => \"NO\", \"Key\" => \"UNI\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_pais\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"direccion\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"localidad\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"provincia\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cp\", \"Type\" => \"int(8)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"accion\", \"Type\" => \"timestamp\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"CURRENT_TIMESTAMP\", \"Extra\" => \"\"),\n array(\"Field\" => \"updated\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_provincia\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_municipio\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"convenio\", \"Type\" => \"varchar(255)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"created\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"aviso_caducidad_subcontratas\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"color\", \"Type\" => \"varchar(10)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"email\", \"Type\" => \"varchar(255)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_enterprise\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"logo\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"skin\", \"Type\" => \"varchar(300)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"dokify\", \"Extra\" => \"\"),\n array(\"Field\" => \"lang\", \"Type\" => \"varchar(2)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"es\", \"Extra\" => \"\"),\n array(\"Field\" => \"activo_corporacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pago_aplicacion\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"receive_summary\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"date_last_summary\", \"Type\" => \"int(16)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"license\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_validation_partner\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"partner_validation_price_urgent\", \"Type\" => \"float\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"validation_languages\", \"Type\" => \"varchar(250)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"cost\", \"Type\" => \"float\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"pay_for_contracts\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_periodicity\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_attached\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_validated\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_rejected\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"req_expired\", \"Type\" => \"int(9)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_transfer_pending\", \"Type\" => \"int(1)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"kind\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"min_app_version\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"2\", \"Extra\" => \"\"),\n array(\"Field\" => \"prevention_service\", \"Type\" => \"varchar(20)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_idle\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"corporation\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirement_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"invoice_count\", \"Type\" => \"int(11)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_referrer\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"is_self_controlled\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"1\", \"Extra\" => \"\"),\n array(\"Field\" => \"has_custom_login\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n array(\"Field\" => \"header_img\", \"Type\" => \"tinytext\", \"Null\" => \"YES\", \"Key\" => \"\", \"Default\" => \"\", \"Extra\" => \"\"), array(\"Field\" => \"uid_manager\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"uid_referrer\", \"Type\" => \"int(11)\", \"Null\" => \"YES\", \"Key\" => \"MUL\", \"Default\" => \"\", \"Extra\" => \"\"),\n array(\"Field\" => \"requirements_origin_company_cloneables\", \"Type\" => \"int(1)\", \"Null\" => \"NO\", \"Key\" => \"\", \"Default\" => \"0\", \"Extra\" => \"\"),\n );\n }", "public function getData()\n {\n $reprocesses = Reprocess::where('available', 1)->with([\n 'fruit',\n 'quality',\n 'varieties',\n ]);\n\n return Datatables::of($reprocesses)\n ->addColumn('fruit', function ($reprocess) {\n return $reprocess->fruit->specie;\n })->editColumn('quality', function ($reprocess) {\n return $reprocess->quality->name;\n })->editColumn('varieties', function ($reprocess) {\n return $reprocess->varieties->variety;\n })->make(true);\n }", "public function print_table_description()\n {\n }", "function listPage_tableField(){\n $this->data_view['tableField'] = array(\n array('name'=>'id','title'=>'Mã'),\n array('name'=>'image','title'=>'Hình','type'=>'image','linkDetail'=>true),\n array('name'=>'title','title'=>'Tên','linkDetail'=>true),\n array('name'=>'c_title','title'=>'Loại'),\n array('name'=>'price','title'=>'Giá','type'=>'number'),\n array('name'=>'price_promotion','title'=>'Giá giảm','type'=>'number','hidden'=>true),\n array('name'=>'views','title'=>'Lượt xem','type'=>'number'),\n array('name'=>'is_active','title'=>'Trạng thái','type'=>'status'),\n array('name'=>'is_stock','title'=>'Còn hàng','type'=>'status','hidden'=>true),\n array('name'=>'is_special','title'=>'Nổi bật','type'=>'status','hidden'=>true)\n );\n }", "public function anyData()\n {\n $datatables = $this->datatables();\n #custome datatable yajra in here \n return $datatables->make(true);\n }" ]
[ "0.7059445", "0.6906595", "0.67237484", "0.66691446", "0.64599985", "0.63746053", "0.6253364", "0.6237214", "0.6220534", "0.619548", "0.61886793", "0.6149823", "0.6132348", "0.6101599", "0.6090547", "0.6060537", "0.604652", "0.60460377", "0.60268265", "0.60148716", "0.6008487", "0.5978947", "0.59759223", "0.5947542", "0.59456724", "0.5944691", "0.59245306", "0.58996737", "0.5890184", "0.5874481", "0.58583975", "0.5855384", "0.58481944", "0.5821261", "0.5819652", "0.58090925", "0.5808285", "0.5807208", "0.57961804", "0.5776952", "0.5775221", "0.576554", "0.5763948", "0.57509404", "0.57454383", "0.5745073", "0.57448244", "0.5742666", "0.57397914", "0.57292795", "0.5723661", "0.57209", "0.5718594", "0.5718594", "0.5718594", "0.5715209", "0.570882", "0.57087535", "0.5699796", "0.5698599", "0.56949204", "0.5690531", "0.5688956", "0.56851023", "0.5681869", "0.5669435", "0.5663691", "0.5661808", "0.5658767", "0.56541896", "0.5644941", "0.56444645", "0.5643235", "0.5643002", "0.5642284", "0.56421053", "0.5638072", "0.5635828", "0.5630614", "0.562886", "0.5628058", "0.56277674", "0.562685", "0.5625505", "0.5618479", "0.56164503", "0.5616353", "0.56131184", "0.5612216", "0.5608829", "0.56082726", "0.56025463", "0.5593767", "0.55897003", "0.55887425", "0.5586208", "0.55851823", "0.55791456", "0.557263", "0.5554673", "0.5548841" ]
0.0
-1
Envoi de la facture par email
public function envoyer_email($id) { $q = $this->db->where('fac_id', $id) ->where('fac_inactif is null') ->select('t_factures.*,scv_email') ->join('t_commandes', 'cmd_id=fac_commande', 'left') ->join('t_devis', 'dvi_id=cmd_devis', 'left') ->join('t_societes_vendeuses', 'scv_id=dvi_societe_vendeuse', 'left') ->get('t_factures'); if ($q->num_rows() != 1) { throw new MY_Exceptions_NoSuchRecord('Impossible de trouver la facture numéro ' . $id); } $row = $q->row(); // récupération du contact et du correspondant $q = $this->db->select("dvi_client,dvi_correspondant") ->join('t_commandes', 'cmd_id=' . $row->fac_commande, 'left') ->join('t_devis', 'dvi_id=cmd_devis', 'left') ->get('t_factures'); if ($q->num_rows() == 0) { throw new MY_Exceptions_NoSuchUser('Pas de correspondant trouvé pour la facture ' . $id); } $row2 = $q->row(); // récupération de l'adresse email $q = $this->db->where('cor_id', $row2->dvi_correspondant) ->where('LENGTH(cor_email)>0') ->get('t_correspondants'); if ($q->num_rows() == 1) { $email = $q->row()->cor_email; } else { $q = $this->db->where('ctc_id', $row2->dvi_client) ->where('LENGTH(ctc_email)>0') ->get('t_contacts'); if ($q->num_rows() == 1) { $email = $q->row()->ctc_email; } } if (!$email) { throw new MY_Exceptions_NoEmailAddress("Le contact n'a pas d'adresse email"); } // récupération du modèle de document $q = $this->db->where('mod_nom', 'FACTURE') ->get('t_modeles_documents'); if ($q->num_rows() == 0) { throw new MY_Exceptions_NoSuchTemplate("Pas de modèle disponible pour le message email"); } $sujet = $q->row()->mod_sujet; $corps = $q->row()->mod_texte; $fac_fichier = $this->generer_pdf($id); // envoi du mail $this->load->library('email'); $resultat = $this->email->send_one($email, $row->scv_email, $sujet, $corps, $fac_fichier); if (!$resultat) { return false; } // enregistrement de la transmission $transmise = $row->fac_transmise; if ($transmise != '') { $transmise .= '<br />'; } $transmise .= date('d/m/Y') . '&nbsp;Mail'; $data = array( 'fac_transmise' => $transmise, ); return $this->_update('t_factures', $data, $id, 'fac_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function traerPorMail($email) {\n\n}", "private function emailAtLogin() {}", "function envoi_email($email_expediteur, $nom_expediteur, $email_destinataire, $email_retour, $sujet_email, $body_mail)\n{\n\t$mail = new PHPMailer();\n\t$mail->IsMail();\n\t$mail->From = $email_expediteur;\n\t$mail->FromName = $nom_expediteur;\n\t$mail->AddAddress($email_destinataire);\n\t$mail->AddReplyTo($email_retour);\n\t$mail->IsHtml(true);\n\t$mail->Subject = $sujet_email;\n\t$mail->Body= $body_mail;\n\t\n\tif(!$mail->Send())\n\t{ \n\t \treturn FALSE;\n\t}\n\telse\n\t{\t \n\t \treturn TRUE;\n\t}\n}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getMail();", "public function Enviar_Email() : void\n {\n $valor = array();\n $valor['status'] = '';\n $valor['html'] = '';\n $valor['campos'] = $this->campos;\n \n if (empty($this->erros)) {\n if (Email::Enviar_Contato_Anunciante($this->obj_contato_anunciante)) {\n $this->obj_contato_anunciante->set_datahora_envio(date('Y-m-d H:i:s'));\n $this->obj_contato_anunciante->set_lido(false);\n \n DAO_Contato_Anunciante::Inserir($this->obj_contato_anunciante);\n \n $valor['status'] = 'certo';\n $valor['html'] = \"<li>Enviado com Sucesso</li>\";\n } else {\n $valor['status'] = 'erro';\n $valor['html'] = '<li>Erro ao tentar enviar e-mail</li>';\n }\n } else {\n $valor['status'] = 'erro';\n \n foreach ($this->erros as $erro) {\n $valor['html'] .= \"<li>$erro</li>\";\n }\n }\n \n echo json_encode($valor);\n }", "function bank_porteur_email($transaction){\n\t$mail = '';\n\n\t// recuperer l'email\n\tif (!$transaction['id_auteur']\n\t\tOR !$mail = sql_getfetsel('email', 'spip_auteurs', 'id_auteur=' . intval($transaction['id_auteur']))){\n\n\t\tif (strpos($transaction['auteur'], \"@\")!==false\n\t\t\tAND include_spip('inc/filtres')\n\t\t\tAND email_valide($transaction['auteur'])){\n\t\t\t$mail = $transaction['auteur'];\n\t\t} elseif (\n\t\t\t(!isset($GLOBALS['visiteur_session']['id_auteur']) OR $GLOBALS['visiteur_session']['id_auteur']==$transaction['id_auteur'])\n\t\t\tAND isset($GLOBALS['visiteur_session']['session_email'])\n\t\t\tAND $GLOBALS['visiteur_session']['session_email']) {\n\t\t\t$mail = $GLOBALS['visiteur_session']['session_email'];\n\t\t}\n\t}\n\n\t// fallback : utiliser l'email du webmetre du site pour permettre le paiement coute que coute\n\tif (!$mail){\n\t\t$mail = $GLOBALS['meta']['email_webmaster'];\n\t}\n\n\treturn trim($mail);\n}", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function email($email) {\n\t\n\t\n\t\n\t\treturn $email;\n\t\n\t}", "function eMail($string) {\n\n\n\t\t}", "abstract protected function _getEmail($info);", "public function getEmail()\n\t{\n\t\treturn $this->correo;\n\t}", "function envoyer_inscription_mail($values)\n{\n\t$mot = $GLOBALS['mot'];\n\t$phrase = $GLOBALS['phrase'];\n\t$val = FALSE;\n\t\n\t$contenu = array(\t$mot['Cabinet'] => $values['Cabinet'],\n\t\t\t\t\t\t$mot['Nom'] => $values['Nom'],\n\t\t\t\t\t\t$mot['Prenom'] => $values['Prenom'],\n\t\t\t\t\t\t$mot['Adresse'] => $values['Adresse'],\n\t\t\t\t\t\t$mot['CP'] => $values['CP'],\n\t\t\t\t\t\t$mot['Ville'] => $values['Ville'],\n\t\t\t\t\t\t$mot['Tel'] => $values['Tel'],\n\t\t\t\t\t\t$mot['Email'] => $values['Email'],\n\t\t\t\t\t\t$mot['Commentaire'] => $values['Commentaire'] );\n\t$contenu_message = corps_email($contenu);\n\t\n\t// Si le message a bien été envoyé, on affiche un message de validation\n\t// et on enregistre le message dans la base de données\n\tif (envoi_email(EMAIL_ADMIN, NOM_SITE, EMAIL, $values['Email'], $phrase['UneNouvelleInscription'], $contenu_message) == TRUE)\n\t{\n\t\tif (ajouter_inscription_db($values) == TRUE)\n\t\t{\n\t\t\t$val = TRUE;\n\t\t}\n\t}\n\treturn $val;\n}", "function valider_mail($email){\t\n\t\t$_SESSION['form_email'] = $email; //sauvegarder les données du champ en session, en cas de retour en arriére.\n\t\n\t\tif(!preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*\\.([a-zA-Z])+$/', $email)) //expression régulière\n\t\t{\n\t\t\t$_SESSION['erreurform'] = true;\n\t\t\t$_SESSION['erreurform_email'] = '<red>E-mail non valide! ex: [email protected]</red>';\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t$_SESSION['erreurform_email'] = '';\n\t\t}\n\n\t}", "private function verificarEmail(){\n\t \n\t \t\t//Verifica se a requisição é via AJAX\n\t \t\tif(HelperFactory::getInstance()->isAjax()){\n\t \t\t\n\t \t\t\t //Solicita a verificação do E-mail\n\t\t\t\t $this->Delegator('ConcreteCadastro', 'verificarEmail',$this->getPost());\t \t\t\t \n\t \t\t}\t \n\t }", "static function add_email(): void {\r\n\t\tself::add_acf_inner_field(self::roles, self::email, [\r\n\t\t\t'label' => 'Email',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => '(Optional)',\r\n\t\t\t'required' => 0,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '25',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t\t'placeholder' => '[email protected]'\r\n\t\t]);\r\n\t}", "public function email()\n\t{\n\t\t$this->add('email', 'required', true, 'Email is required.');\n\t\t$this->add('email', 'regexp', '#^[^\\W][a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)*\\.[a-zA-Z]{2,4}$#', 'Bad Email format.');\n\t\t$this->add('email', 'max', 30, 'Bad Email length, no more than 30 characters.');\n\n\t\t$this->setInformation('email', 'Email format, no more than 30 characters...');\n\t}", "public function getGiftcardRecipientEmail();", "public function feide_email() {\n\t\t\t$this->feide_email = mb_strtolower($this->attributes['mail'][0]);\n\n\t\t\treturn $this->feide_email;\n\t\t}", "public function getEmailEscolar()\r\n {\r\n return $this->emailEscolar;\r\n }", "public function getEmailAuteur() {\n return $this->emailAuteur;\n }", "public function getGiftcardSenderEmail();", "public function getEmail() { return $this->email; }", "function enviar_email($email,$sujeto, $msj, $headers){\n\treturn mail($email,$sujeto, $msj, $headers);\n\t\n}", "function errorMailExiste(){\n\t\t$content='\n\t\t\t<div><h3>'.htmlspecialchars($this->pi_getLL(\"txt_error_mail\")).'<br/></h3><hr/></div>';\n\t\t$content .=$this->getFormulaireVide();\n\t\treturn $content;\n\t}", "public function isEmail();", "public function getEmail() {\r\n return $this->email;\r\n }", "private function enviarEmail($msg)\n {\n // setando conteudo do email para avisos\n echo 'Envio email';\n }", "function enviaEmail($msgLog) {\n $msgLog = str_replace ( \"<q>\", \"<br>\", $msgLog );\n $assunto = 'Erro no Simec ' . date ( \"d-m-Y H:i:s\" ) . \" - \" . $_SESSION ['ambiente'];\n\n //$aDestinatarios = carregarUsuariosSessao();\n $remetente = array(\"nome\"=>\"SIMEC - \".strtoupper($_SESSION['sisdiretorio']).\" - \" . $_SESSION['usunome'] . \" - \" . $_SESSION['usuorgao'], \"email\"=>\"[email protected]\");\n $destinatarios = !empty($aDestinatarios[$_SESSION['sisid']]) ? $aDestinatarios[$_SESSION['sisid']] : array_keys($aDestinatarios['todos']);\n\n //simec_email($remetente, $destinatarios, $assunto, $msgLog);\n }", "function envoyer_message_mail($values)\n{\n\t$mot = $GLOBALS['mot'];\n\t$phrase = $GLOBALS['phrase'];\n\t$val = FALSE;\n\t\n\tif (verif_email($values['Email']) == TRUE)\n\t{\n\t\t$contenu = array(\t$mot['Message'] => $values['Message'],\n\t\t\t\t\t\t\t\t\t\t\t$mot['Entreprise'] => $values['Entreprise'],\n\t\t\t\t\t\t\t\t\t\t\t$mot['Nom'] => $values['Nom'],\n\t\t\t\t\t\t\t\t\t\t\t$mot['Email'] => $values['Email'] );\n\t\t\t\t\t\t\t\n\t\t$contenu_message = corps_email($contenu);\n\t\t// Si le message a bien été envoyé, on affiche un message de validation\n\t\t// et on enregistre le message dans la base de données\n\t\t\n\t\tif (envoi_email($values['Email'], NOM_SITE, EMAIL, $values['Email'], $phrase['UnNouveauMessage'], $contenu_message) == TRUE)\n\t\t{\n\t\t\tif (ajouter_message_db($values) == TRUE)\n\t\t\t{\n\t\t\t\t$val = TRUE;\n\t\t\t}\n\t\t}\n\t}\n\treturn $val;\n}", "public function column_email($item)\n {\n }", "public function emailJaCadastrado(){\n\t\t$query=$this->con->prepare(\"select email from empresa where email=:email\");\n\t\t//executa o sql e informa o email a ser pesquisado\n\t\t$query->execute(array('email' => $this->email));\n\t\t//retorna resultado com um array assoc\n\t\t$resultado = $query->fetch(PDO::FETCH_ASSOC);\n\t\t//se retorna falso o email não foi cadastrado ainda\n\t\tif($resultado){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "function activationEnvoiMail($login, $jeton,$info) {\n\t\t$headers ='From: \"'.$info['nom'].' '.$info['prenom'].'\"'.$info['email'].''.\"\\n\";\n\t\t$headers .='Reply-To: [email protected]'.\"\\n\";\n\t\t$headers .='Content-Type: text/plain; charset=utf-8\\r\\n';\n\t\t$headers .='Content-Transfer-Encoding: 8bit'; \n\t\t$sujet = \"Activation de l'espace membre pour le site modele2\";\n\t\t$message = 'Bonjour '.$info['nom'].' '.$info['prenom'].','.\"\\n\\n\";\n\t\t$message .= \"Voici votre lien d'activation pour l'espace membre du site modele2 : http://localhost/projet3/activation.php?securite=\".$jeton.\". \";\n\t\t$message .= 'Cliquez sur ce lien ou copier-le et coller-le dans votre navigateur.'.\"\\n\\n\\n\";\n\t\t$message .= 'Cordialement,'.\"\\n\";\n\t\t$message .= 'le site modele2.'.\"\\n\";\n\t\tmail(\"[email protected]\", $sujet, $message, $headers);\n\t}", "public function get_email() \n {\n return $this->email;\n }", "public function column_email($item)\n {\n }", "function comprobaremailunico($email)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT mail FROM users WHERE mail = %s \",\n\t\t GetSQLValueString($email, \"text\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\tif ($totalRows_ConsultaFuncion==0) \n\t\treturn true;\n\telse return false;\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "public function getEmail(): string;", "public function getEmail(): string;", "public function getEmail(): string;", "public function getEmailEmpresa()\n {\n return $this->emailEmpresa;\n }", "public function getEmail()\n {\n \treturn $this->email;\n }", "function invia_email_richiesta_accettata($id_richiesta) {\n $query = \"SELECT U.email as email_fornitore, UU.nome, UU.cognome, UU.telefono, UU.indirizzo, UU.email as email_utente, UU.dati_contatto\n FROM Richieste as R JOIN Users as U ON R.id_fornitore=U.id JOIN Users as UU ON R.id_utente=UU.id\n WHERE R.id=\".$id_richiesta;\n $result = mysql_query($query) or die(mysql_error());\n\n\tif($result){\n $row = mysql_fetch_assoc($result);\n\t} else {\n\t return false;\n\t}\n\n\tif($row['dati_contatto'][0] == 1) {\n\t $indirizzo = $row['indirizzo'];\n\t} else {\n\t $indirizzo = '<i>non visibile</i>';\n\t}\n\tif($row['dati_contatto'][1] == 1) {\n\t $telefono = $row['telefono'];\n\t} else {\n\t $telefono = '<i>non visibile</i>';\n\t}\n\tif($row['dati_contatto'][2] == 1) {\n\t $email = $row['email_utente'];\n\t} else {\n\t $email = '<i>non visibile</i>';\n\t}\n\n $to = $row['email_fornitore'];\n $subject = \"Richiesta Accettata\";\n $message = \"<html><head>\n <title>Hai accettato una richiesta</title>\n </head><body>\n <p>Riepilogo dati utente:</p>\n <p>Nome: \".$row['nome'].\" \".$row['cognome'].\"<br>\n Telefono: \".$telefono.\"<br>\n Email: \".$email.\"<br>\n Indirizzo: \".$indirizzo.\"</p>\n <p>Ricordiamo che per ogni richiesta accettata saranno aggiunti 2€ sul conto aziendale.</p>\n </body></html>\";\n\n $res = sendEmail($to, $subject, $message);\n\n}", "private function generateEmail($intermediair) {\n $this->smarty->assign('user', $intermediair);\n $q = 'SELECT * FROM `Useridemail` WHERE id = ' . $intermediair['userid'];\n $data = $this->cmsmanager->customSelectQuery($q)[0];\n $token = $this->generateToken($data['email'], $user['userid'], $user['refCode']);\n $this->smarty->assign('token', $token);\n $email = new GezinneninArmoedeEmail();\n $email->addReceiver('[email protected]');\n// //$email->addReceiver($data['email']);\n $email->setSubject('Activiteit 2020');\n $email->setHtmlBody($this->smarty->fetch(\"intermediairFormEmail.html\"));\n $email->setSender(\"[email protected]\");\n $email->send();\n }", "function enviarEmail($assunto, $descrição, $emailDe, $nomeDe, $emailPara, $nomePara)\n {\n $mail = new PHPMailer();\n // Define os dados do servidor e tipo de conexão\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->IsSMTP(); // Define que a mensagem será SMTP\n $mail->Host = \"mail.codeboys.pt\"; // Endereço do servidor SMTP\n $mail->SMTPAuth = true; // Autenticação\n $mail->Username = '[email protected]'; // Usuário do servidor SMTP\n $mail->Password = 'codeboys2016'; // Senha da caixa postal utilizada\n // Define o remetente\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->From = $emailDe; // Seu e-mail\n $mail->FromName = $nomeDe; // Seu nome\n // Define os destinatário(s)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n //$mail->AddAddress('[email protected]', 'Luis Filipe');\n $mail->AddAddress($emailPara, $nomePara);\n /* $sql1 = \"select email from utilizador where id='$idMaterial' and hospital='$hospital' and utilizado=0\";\n $resultado1=$this->bd->executarSQL($sql1);\n while ($row = $resultado1->fetch(PDO::FETCH_ASSOC)) {\n\n }*/\n// $mail->AddAddress('[email protected]');\n //$mail->AddCC('[email protected]', 'Ciclano'); // Copia\n //$mail->AddBCC('[email protected]', 'Fulano da Silva'); // Cópia Oculta\n // Define os dados técnicos da Mensagem\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->IsHTML(true); // Define que o e-mail será enviado como HTML\n //$mail->CharSet = 'iso-8859-1'; // Charset da mensagem (opcional)\n // Define a mensagem (Texto e Assunto)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->Subject = utf8_decode($assunto); // Assunto da mensagem\n $mail->Body = utf8_decode($descrição);\n $mail->AltBody = utf8_decode($assunto);\n // Define os anexos (opcional)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n //$mail->AddAttachment(\"c:/temp/documento.pdf\", \"novo_nome.pdf\"); // Insere um anexo\n // Envi a o e-mail\n $enviado = $mail->Send();\n // Limpa os destinatários e os anexos\n $mail->ClearAllRecipients();\n $mail->ClearAttachments();\n // Exibe uma mensagem de resultado\n if ($enviado) {\n// echo \"E-mail enviado com sucesso!\";\n return true;\n } else {\n// echo \"Não foi possível enviar o e-mail.\";\n// echo \"<b>Informações do erro:</b> \" . $mail->ErrorInfo;\n return $mail->ErrorInfo;\n }\n }", "public function getNotificationEmail() {}", "public function getEmail(){\n return $this->email;\n }", "public function getEmail(){\n return $this->email;\n }", "function enviarEmailAdministrador($assunto, $descrição, $emailDe, $nomeDe)\n {\n $mail = new PHPMailer();\n // Define os dados do servidor e tipo de conexão\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n// $mail->IsSMTP(); // Define que a mensagem será SMTP\n// $mail->Host = \"smtp.gmail.com\"; // Endereço do servidor SMTP\n// $mail->SMTPAuth = true; // Usa autenticação SMTP? (opcional)\n// $mail->Username = '[email protected]'; // Usuário do servidor SMTP\n// $mail->Password = 'asdasdasd'; // Senha do servidor SMTP\n // Define o remetente\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->From = $emailDe; // Seu e-mail\n $mail->FromName = $nomeDe; // Seu nome\n // Define os destinatário(s)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->AddAddress('[email protected]', 'Luis Filipe');\n $sql1 = \"select nome,email from utilizador where nivel=1 and activo=1\";\n $resultado1=$this->bd->executarSQL($sql1);\n while ($row1 = $resultado1->fetch(PDO::FETCH_ASSOC)) {\n $mail->AddAddress($row1['email'], $row1['nome']);\n }\n// $mail->AddAddress('[email protected]');\n //$mail->AddCC('[email protected]', 'Ciclano'); // Copia\n //$mail->AddBCC('[email protected]', 'Fulano da Silva'); // Cópia Oculta\n // Define os dados técnicos da Mensagem\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->IsHTML(true); // Define que o e-mail será enviado como HTML\n //$mail->CharSet = 'iso-8859-1'; // Charset da mensagem (opcional)\n // Define a mensagem (Texto e Assunto)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->Subject = utf8_decode($assunto); // Assunto da mensagem\n $mail->Body = utf8_decode($descrição);\n $mail->AltBody = utf8_decode($assunto);\n // Define os anexos (opcional)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n //$mail->AddAttachment(\"c:/temp/documento.pdf\", \"novo_nome.pdf\"); // Insere um anexo\n // Envi a o e-mail\n $enviado = $mail->Send();\n // Limpa os destinatários e os anexos\n $mail->ClearAllRecipients();\n $mail->ClearAttachments();\n // Exibe uma mensagem de resultado\n if ($enviado) {\n// echo \"E-mail enviado com sucesso!\";\n return true;\n } else {\n// echo \"Não foi possível enviar o e-mail.\";\n// echo \"<b>Informações do erro:</b> \" . $mail->ErrorInfo;\n return $mail->ErrorInfo;\n }\n }", "public function getAuthoremail() {}", "public function getEmail(): string\n\t{\n\t\treturn $this->email->getEmail();\n\t}", "public function verificarClienteEmail(ICliente $cliente);", "public function ga_email_callback()\n {\n printf(\n '<input type=\"email\" id=\"ga_email\" name=\"bpp_setting_options[ga_email]\" value=\"%s\" />',\n isset( $this->options['ga_email'] ) ? esc_attr( $this->options['ga_email']) : ''\n );\n }", "public function message()\n {\n return 'Endereço de email já cadastrado para essa lista.';\n }", "public function getEmail(){\n\t\treturn $this->email;\n\t}", "public function setEmail($value) {\n if(!strstr($value, \"@\")){\n throw new Exception(\"Errore in setEmail\");\n }\n // se esiste\n\n $this->email = $value;\n\n //$this->generateUserId();\n }", "function verifica_email ($email)\r\n{\r\n\t$retorno = true;\r\n\r\n\t/* Aqui estaria el codigo para verificar \r\n\tla direccion de correo */\r\n\r\n\treturn $retorno;\r\n}", "function enviarEmail($email, $nombre, $asunto, $cuerpo)\n {\n\n require_once '../../login/PHPMailer/PHPMailerAutoload.php'; //lebreria phpmailer se usa para el funcionamiento del envio de correo\n\n $mail = new PHPMailer();\n $mail->isSMTP(); // protocolo de transferencia de correo\n $mail->SMTPAuth = true;\n $mail->SMTPSecure = 'ssl'; //habilita la encriptacion SSL\n $mail->Host = 'smtp.gmail.com'; // Servidor GMAIL\n $mail->Port = 465; //puerto\n\n $mail->Username = '[email protected]'; //correo emisor\n $mail->Password = 'lapizzeria2019'; //contraseña del correo del emisor\n\n $mail->setFrom('[email protected]', 'La Pizzeria'); //se establece quien envia el correo\n $mail->addAddress($email, $nombre); //email y nombre del receptor guardados en sus respectivas variables\n\n $mail->Subject = $asunto; //se configura cual es el asunto del correo\n $mail->Body = $cuerpo; //se configura cual es el cuerpo del correo\n $mail->IsHTML(true);\n\n if ($mail->send())\n return true;\n else\n return false;\n }", "public function getEmail()\n {\n return $this->email;\n }", "function buscamePorMail($email){\n $usuariosTraidos = traeTodaLaBase();\n //la procesamos para buscar el mail que pasamos como parametro\n //a ver si existe o no\n foreach($usuariosTraidos as $usuario){\n //SI elMailDeLaBase es igualigual al mailPasadoPorParametro\n if($usuario['email'] == $email){\n //returname el usario\n return $usuario;\n }\n }\n //si no, \"returname\" NULL asi uso el dato para validar\n return null;\n }", "function kiemtra_email($email)\n {\n if($this->default_model->getInfoID($this->_table,array(\"Email\" => $email))!=TRUE){ // ko ton tai $email\n return TRUE;\n }\n else{\n $this->form_validation->set_message(\"kiemtra_email\",sprintf($this->lang->line('error_kiemtra_email'),$email));\n return FALSE;\n }\n }", "public function get_email() {\r\n return $this->email;\r\n }", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "abstract public function get_mailto();", "public function getEmail(){\n return $this->email;\n }", "public function getEmail():string\n {\n return $this->email;\n }", "function getEmail($form){\n $email = '';\n \n if (isset($form)\n && $form != ''){\n foreach ($form as $field){\n if ($field['is_email'] == 'true'){\n $email = $field['value'];\n break;\n }\n }\n }\n \n return $email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail(){\r\n\t\t\treturn $this->email;\r\n\t\t}", "public function getEmail() : string\r\n\t{\r\n\t\treturn $this->email;\r\n\t}", "public function getEmail() {\n return $this->email;\n }", "public function enviar_email($asunto, $email, $mensaje)\n\t{\n\t\tif (!$this->ion_auth->logged_in()) {\n\t\t\tredirect('auth/login');\n\t\t}\n\t\t$this->email->from('[email protected]', 'Elearning Edutek');\n\t\t$this->email->to($email);\n\t\t//$this->data['curso'] = 'Excel basico';\n\t\t$this->data['titulo'] = $asunto;\n\t\t$this->data['mensaje'] = $mensaje;\n\t\t$body = $this->load->view('/blades/password/email_template', $this->data, TRUE);\n\n\t\t$this->email->subject($asunto);\n\t\t$this->email->message($body);\n\t\tif ($this->email->send()) {\n\t\t\t//echo\"Your email was sent successfully\";\n\t\t} else {\n\t\t\tshow_error($this->email->print_debugger());\n\t\t}\n\t}", "public function getEmail() \n {\n return $this->email;\n }", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "function sendEmail($forename,$email){\r\n /*sendMail($email,\"Registration to Unicycles\",\" Hey \".$forename.\"! /r/n\r\nThank you for registering for Unicycles! /r/n\r\n\r\nYou can start to hire bikes straight away now! To do so please head over to our website unicycles.ddns.net:156 log in and click on Hire a Bike. It can't be simpler. /r/n\r\n\r\nIf you need to know anything you can look on our website. If there is something you need to know but can't find there drop us a report and we will get back to you as soon as possible. /r/n\r\n\r\nThank you again for your registration. If you have any questions, please let me know. /r/n\r\n\r\nRegards, /r/n\r\nUniCycle Team\r\n\");*/\r\n}", "public function enviarEmailBienvenida(){\n\t\t$params ['url'] = Yii::$app->urlManager->createAbsoluteUrl ( [ \n\t\t\t'ingresar/' . $this->txt_token \n\t\t] );\n\t\t$params ['user'] = $this->nombreCompleto;\n\t\t$params ['usuario'] = $this->txt_email;\n\t\t$params ['password'] = $this->password;\n\t\t\n\t\t\n\t\t\t$email = new Email();\n\t\t\t$email->emailHtml = \"@app/modules/ModUsuarios/email/bienvenida\";\n\t\t\t$email->emailText = \"@app/modules/ModUsuarios/email/layouts/text\";\n\t\t\t$email->to = $this->txt_email;\n\t\t\t$email->subject = \"Bienvenido\";\n\t\t\t$email->params =$params ;\n\t\t\t\n\t\t\t// Envio de correo electronico\n\t\t\t$email->sendEmail();\n\t\t\treturn true;\n\t\t\n\n\t}", "public function getMail():string\n { \n return $this->mail;\n }", "public function getEmail()\n {\n return $this->email;\n\n }", "private function email(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t$email = $this->_request['email'];\n\t\t\t$sql = mysql_query(\"SELECT email FROM accounts WHERE email = '\".$email.\"'\", $this->db);\n\t\t\tif(mysql_num_rows($sql) > 0){\n\t\t\t\t$result = array();\n\t\t\t\twhile($rlt = mysql_fetch_array($sql,MYSQL_ASSOC)){\n\t\t\t\t\t$result[] = $rlt;\n\t\t\t\t}\n\t\t\t\t// If success everythig is good send header as \"OK\" and return list of users in JSON format\n\t\t\t\techo json_encode(array('valid' =>FALSE));\n\t\t\t} else {\n\t\t\t\techo json_encode(array('valid' =>TRUE));\n\t\t\t}\n\t\t\t//$this->response('',204);\t// If no records \"No Content\" status\n\t\t}", "public function getEmail(): string {\n return $this->email;\n }", "public function emails($boletoID, $post);", "public function getEmail(){\n \n return $this->_email;\n \n }" ]
[ "0.73424506", "0.7195795", "0.7187269", "0.71534693", "0.71534693", "0.71534693", "0.7153466", "0.7153466", "0.7123985", "0.7047314", "0.7009211", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.69521254", "0.692847", "0.687268", "0.68302035", "0.68118024", "0.6803924", "0.67915606", "0.67867017", "0.6785639", "0.677408", "0.6769967", "0.67176145", "0.66904026", "0.66750705", "0.6646483", "0.66041756", "0.6598284", "0.65967965", "0.65776896", "0.65766865", "0.6572042", "0.65697825", "0.6562638", "0.6557849", "0.6556566", "0.6554925", "0.6554583", "0.65545446", "0.6535586", "0.6533551", "0.6533551", "0.6533551", "0.65318346", "0.6526109", "0.65214825", "0.65073776", "0.6498016", "0.6491248", "0.6478525", "0.6478525", "0.6476886", "0.6465457", "0.64477444", "0.6446407", "0.6440513", "0.6433719", "0.6431915", "0.642529", "0.64233935", "0.6421349", "0.64181", "0.64179015", "0.6417082", "0.64161515", "0.640924", "0.640849", "0.640849", "0.640849", "0.640849", "0.6406805", "0.64043117", "0.6394966", "0.6394768", "0.6384884", "0.63846874", "0.63763934", "0.63682437", "0.63604987", "0.63572645", "0.63568217", "0.63568217", "0.6353374", "0.635204", "0.63484734", "0.63464046", "0.6345533", "0.63403195", "0.63386035", "0.6336163" ]
0.69109416
23
Marquer "transmise par courrier"
public function marquer_transmise($id) { // enregistrement de la transmission $q = $this->db->where('fac_id', $id) ->get('t_factures'); if ($q->num_rows() == 1) { $transmise = $q->row()->fac_transmise; if ($transmise != '') { $transmise .= '<br />'; } $transmise .= date('d/m/Y') . '&nbsp;Courrier'; $data = array( 'fac_transmise' => $transmise, ); return $this->_update('t_factures', $data, $id, 'fac_id'); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function traerCualquiera()\n {\n }", "public function partirAuTravail(): void\n\t{\n\t}", "function autorizar_esp_pm_acumulado_servicio_tecnico($id_mov){\r\n\r\nglobal $db;\t\r\n \r\n $db->starttrans();\r\n \r\n //traigo el deposito origen\r\n $sql = \"select deposito_origen from movimiento_material where id_movimiento_material = $id_mov\"; \r\n $res = sql($sql) or fin_pagina();\r\n $id_deposito_oriden = $res->fields[\"deposito_origen\"];\r\n \t \r\n //traigo el detalle de los movimientos a liberar \t \r\n $sql=\"select * from detalle_movimiento where id_movimiento_material=$id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\r\n $comentario = \" Autorizacion de PM acumulado de servicio tecnico nro: $id_mov\";\r\n $id_tipo_movimiento = 7;\r\n\r\n //por cada detalle voy liberando las reservas del pm autorizado \r\n for($i=0;$i<$res->recordcount();$i++) {\r\n \t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n $cantidad = $res->fields[\"cantidad\"];\r\n $id_detalle_movimiento = $res->fields[\"id_detalle_movimiento\"];\r\n descontar_reserva($id_prod_esp,$cantidad,$id_deposito_oriden,$comentario,$id_tipo_movimiento,\"\",$id_detalle_movimiento,\"\");\r\n $res->movenext(); \r\n }//del for\r\n \t \r\n \t \r\n //Inserto la Mercaderia entrante en el stock BS AS \r\n \r\n $sql = \"select * from mercaderia_entrante where id_movimiento_material = $id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\t\t\t \r\n\t\t\t \r\n $comentario = \"Producto de lista de mercaderia entrante del PM nro: $id_mov, a travez de una Autorizacion Especial\";\r\n\t\t\t \r\n for($i=0;$i<$res->recordcount();$i++){\r\n\t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n\t $cantidad = $res->fields[\"cantidad\"];\r\n\t $descripcion = $res->fields[\"descripcion\"]; \r\n\t //el deposito origen es Buenos Aires que es igual a 2 segun la tabla general.depositos \r\n\t $deposito_origen='2';\r\n\t //el id_tipo_movimiento le hardcodeo uno de la tabla stock.tipo_movimiento\r\n\t $id_tipo_movimiento='13';\r\n\t //el ingreso del producto es a \"disponible\" por lo tanto la funcion no toma en cuenta los parametros que siguen\r\n\t $a_stock='disponible';\r\n\t agregar_stock($id_prod_esp,$cantidad,$deposito_origen,$comentario,$id_tipo_movimiento,$a_stock,$id_tipo_reserva,\"\",$id_detalle_movimiento,$id_licitacion,$nro_caso);\r\n\t $res->movenext();\r\n }//del for\r\n $db->completetrans();\r\n\r\n }", "function autorizar_esp_ckd_pm_acumulado_servicio_tecnico($id_mov){\r\n\r\nglobal $db;\t\r\n \r\n $db->starttrans();\r\n \r\n //traigo el deposito origen\r\n $sql = \"select deposito_origen from movimiento_material where id_movimiento_material = $id_mov\"; \r\n $res = sql($sql) or fin_pagina();\r\n $id_deposito_oriden = $res->fields[\"deposito_origen\"];\r\n \t \r\n //traigo el detalle de los movimientos a liberar \t \r\n $sql=\"select * from detalle_movimiento where id_movimiento_material=$id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\r\n $comentario = \" Autorizacion de PM acumulado de servicio tecnico nro: $id_mov\";\r\n $id_tipo_movimiento = 7;\r\n\r\n //por cada detalle voy liberando las reservas del pm autorizado \r\n for($i=0;$i<$res->recordcount();$i++) {\r\n \t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n $cantidad = $res->fields[\"cantidad\"];\r\n $id_detalle_movimiento = $res->fields[\"id_detalle_movimiento\"];\r\n descontar_reserva($id_prod_esp,$cantidad,$id_deposito_oriden,$comentario,$id_tipo_movimiento,\"\",$id_detalle_movimiento,\"\");\r\n $res->movenext(); \r\n }//del for\r\n \t \r\n \t \r\n //Inserto la Mercaderia entrante en el stock BS AS \r\n \r\n $sql = \"select * from mercaderia_entrante where id_movimiento_material = $id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\t\t\t \r\n\t\t\t \r\n $comentario = \"Producto de lista de mercaderia entrante del PM nro: $id_mov, a travez de una Autorizacion Especial\";\r\n\t\t\t \r\n for($i=0;$i<$res->recordcount();$i++){\r\n\t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n\t $cantidad = $res->fields[\"cantidad\"];\r\n\t $descripcion = $res->fields[\"descripcion\"]; \r\n\t //el deposito origen es San Luis que es igual a 1 segun la tabla general.depositos \r\n\t $deposito_origen='1';\r\n\t //el id_tipo_movimiento le hardcodeo uno de la tabla stock.tipo_movimiento\r\n\t $id_tipo_movimiento='13';\r\n\t //el ingreso del producto es a \"disponible\" por lo tanto la funcion no toma en cuenta los parametros que siguen\r\n\t $a_stock='disponible';\r\n\t agregar_stock($id_prod_esp,$cantidad,$deposito_origen,$comentario,$id_tipo_movimiento,$a_stock,$id_tipo_reserva,\"\",$id_detalle_movimiento,$id_licitacion,$nro_caso);\r\n\t $res->movenext();\r\n }//del for\r\n $db->completetrans();\r\n\r\n }", "function autorizar_pm_acumulado_servicio_tecnico($id_mov){\r\n\r\nglobal $db;\t\r\n \r\n $db->starttrans();\r\n \r\n //traigo el deposito origen\r\n $sql = \"select deposito_origen from movimiento_material where id_movimiento_material = $id_mov\"; \r\n $res = sql($sql) or fin_pagina();\r\n $id_deposito_oriden = $res->fields[\"deposito_origen\"];\r\n \t \r\n //traigo el detalle de los movimientos a liberar \t \r\n $sql=\"select * from detalle_movimiento where id_movimiento_material=$id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\r\n $comentario = \" Autorizacion de PM acumulado de servicio tecnico nro: $id_mov\";\r\n $id_tipo_movimiento = 7;\r\n\r\n //por cada detalle voy liberando las reservas del pm autorizado \r\n for($i=0;$i<$res->recordcount();$i++) {\r\n \t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n $cantidad = $res->fields[\"cantidad\"];\r\n $id_detalle_movimiento = $res->fields[\"id_detalle_movimiento\"];\r\n descontar_reserva($id_prod_esp,$cantidad,$id_deposito_oriden,$comentario,$id_tipo_movimiento,\"\",$id_detalle_movimiento,\"\");\r\n $res->movenext(); \r\n }//del for\r\n \t \r\n \t \r\n //Inserto la Mercaderia entrante en el stock de RMA \r\n $sql = \"select * from mercaderia_entrante where id_movimiento_material = $id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\t\t\t \r\n\t\t\t \r\n $comentario = \"Producto de lista de mercaderia entrante del PM nro: $id_mov\";\r\n\t\t\t \r\n for($i=0;$i<$res->recordcount();$i++){\r\n\t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n\t $cantidad = $res->fields[\"cantidad\"];\r\n\t $descripcion = $res->fields[\"descripcion\"]; \t\r\n\t incrementar_stock_rma($id_prod_esp,$cantidad,\"\",$comentario,1,\"\",$descripcion,1,\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",$id_mov);\r\n\t $res->movenext();\r\n }//del \r\n $db->completetrans();\r\n\r\n }", "function commandes_bank_traiter_reglement($flux){\r\n\t// Si on est dans le bon cas d'un paiement de commande et qu'il y a un id_commande et que la commande existe toujours\r\n\tif (\r\n\t\t$id_transaction = $flux['args']['id_transaction']\r\n\t\tand $transaction = sql_fetsel(\"*\",\"spip_transactions\",\"id_transaction=\".intval($id_transaction))\r\n\t\tand $id_commande = $transaction['id_commande']\r\n\t\tand $commande = sql_fetsel('id_commande, statut, id_auteur, echeances, reference', 'spip_commandes', 'id_commande='.intval($id_commande))\r\n\t){\r\n\t\t$statut_commande = $commande['statut'];\r\n\t\t$montant_regle = $transaction['montant_regle'];\r\n\t\t$transaction_mode = $transaction['mode'];\r\n\t\t$statut_nouveau = 'paye';\r\n\r\n\r\n\t\t// Si la commande n'a pas d'échéance, le montant attendu est celui du prix de la commande\r\n\t\tinclude_spip('inc/commandes_echeances');\r\n\t\tif (!$commande['echeances']\r\n\t\t\tor !$echeances = unserialize($commande['echeances'])\r\n\t\t or !$desc = commandes_trouver_prochaine_echeance_desc($id_commande, $echeances, true)\r\n\t\t or !isset($desc['montant'])) {\r\n\t\t\t$fonction_prix = charger_fonction('prix', 'inc/');\r\n\t\t\t$montant_attendu = $fonction_prix('commande', $id_commande);\r\n\t\t}\r\n\t\t// Sinon le montant attendu est celui de la prochaine échéance (en ignorant la dernière transaction OK que justement on cherche à tester)\r\n\t\telse {\r\n\t\t\t$montant_attendu = $desc['montant'];\r\n\t\t}\r\n\t\tspip_log(\"commande #$id_commande attendu:$montant_attendu regle:$montant_regle\", 'commandes');\r\n\r\n\t\t// Si le plugin n'était pas déjà en payé et qu'on a pas assez payé\r\n\t\t// (si le plugin était déjà en payé, ce sont possiblement des renouvellements)\r\n\t\tif (\r\n\t\t\t$statut_commande != 'paye'\r\n\t\t\tand (floatval($montant_attendu) - floatval($montant_regle)) >= 0.01\r\n\t\t){\r\n\t\t\t$statut_nouveau = 'partiel';\r\n\t\t}\r\n\t\t\r\n\t\t// S'il y a bien un statut à changer\r\n\t\tif ($statut_nouveau !== $statut_commande){\r\n\t\t\tspip_log(\"commandes_bank_traiter_reglement marquer la commande #$id_commande statut: $statut_commande -> $statut_nouveau mode=$transaction_mode\",'commandes');\r\n\t\t\t// On met a jour la commande\r\n\t\t\tinclude_spip(\"action/editer_commande\");\r\n\t\t\tcommande_modifier($id_commande, array('statut'=>$statut_nouveau, 'mode'=>$transaction_mode));\r\n\t\t}\r\n\r\n\t\t// un message gentil pour l'utilisateur qui vient de payer, on lui rappelle son numero de commande\r\n\t\t$flux['data'] .= \"<br />\"._T('commandes:merci_de_votre_commande_paiement',array('reference'=>$commande['reference']));\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "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 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 }", "function commandes_trig_bank_reglement_en_attente($flux){\r\n\t// Si on est dans le bon cas d'un paiement de commande et qu'il y a un id_commande et que la commande existe toujours\r\n\tif ($id_transaction = $flux['args']['id_transaction']\r\n\t AND $transaction = sql_fetsel(\"*\",\"spip_transactions\",\"id_transaction=\".intval($id_transaction))\r\n\t\tAND $id_commande = $transaction['id_commande']\r\n\t\tAND $commande = sql_fetsel('id_commande, statut, id_auteur, mode', 'spip_commandes', 'id_commande='.intval($id_commande))){\r\n\r\n\t\t$statut_commande = $commande['statut'];\r\n\t\t$transaction_mode = $transaction['mode'];\r\n\t\t$commande_mode = $commande['mode'];\r\n\t\t$statut_nouveau = 'attente';\r\n\t\tif ($statut_nouveau !== $statut_commande OR $transaction_mode !==$commande_mode){\r\n\t\t\tspip_log(\"commandes_trig_bank_reglement_en_attente marquer la commande #$id_commande statut=$statut_nouveau mode=$transaction_mode\",'commandes');\r\n\t\t\t//on met a jour la commande\r\n\t\t\tinclude_spip(\"action/editer_commande\");\r\n\t\t\tcommande_modifier($id_commande,array('statut'=>$statut_nouveau,'mode'=>$transaction_mode));\r\n\t\t}\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "function formidablepaiement_bank_traiter_reglement($flux){\n\n\t// si c'est une transaction associee a un form\n\tif ($id_transaction = $flux['args']['id_transaction']\n\t AND preg_match(\",form\\d+:,\",$flux['args']['avant']['parrain'])\n\t AND $id_formulaires_reponse = $flux['args']['avant']['tracking_id']){\n\n\t\t$reponse = sql_fetsel('*','spip_formulaires_reponses','id_formulaires_reponse='.intval($id_formulaires_reponse));\n\t\t$formulaire = sql_fetsel('*','spip_formulaires','id_formulaire='.intval($reponse['id_formulaire']));\n\n\t\t$traitements = unserialize($formulaire['traitements']);\n\t\tif ($message = trim($traitements['paiement']['message'])){\n\t\t\tinclude_spip(\"inc/texte\");\n\t\t\t$flux['data'] .= propre($message);\n\t\t}\n\t}\n\n\treturn $flux;\n}", "public function cloture()\n {\n // On prépare la modification pour enregistrer la fermeture de la mission\n $sql = 'UPDATE `mission`\n SET `mission_statut` = 0\n WHERE `mission_id` = :mission';\n $query = $this->_link->prepare($sql);\n $query->bindParam(':mission', $this->_data['mission_id'], PDO::PARAM_INT);\n\n // On effectue la modification\n $query->execute();\n }", "function alta_transferencia(){\n\t\t$u= new Cl_pedido();\n\t\t$u->empresas_id=$GLOBALS['empresa_id'];\n\t\t$u->cclientes_id=$GLOBALS['empresa_id'];\n\t\t$u->fecha_alta=date(\"Y-m-d H:i:s\");\n\t\t//Sincronizar con fecha de salida&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->ccl_estatus_pedido_id=2;\n\t\t$u->corigen_pedido_id=3;\n\t\t$u->ccl_tipo_pedido_id=2;\n\t\t// save with the related objects\n\t\tif($_POST['id']>0){\n\t\t\t$u->get_by_id($_POST['id']);\n\t\t\t$insert_traspaso_salida=0;\n\t\t} else {\n\t\t\t$insert_traspaso_salida=1;\n\t\t}\n\t\t$u->trans_begin();\n\t\tif($u->save()) {\n\t\t\t$cl_pedido_id=$u->id;\n\t\t\tif($insert_traspaso_salida==1) {\n\t\t\t\t//Dar de alta el traspaso\n\t\t\t\t$t= new Traspaso();\n\t\t\t\t$t->cl_pedido_id=$cl_pedido_id;\n\t\t\t\t$t->traspaso_estatus=1;\n\t\t\t\t$t->ubicacion_entrada_id=$_POST['ubicacion_entrada_id'];\n\t\t\t\t$t->ubicacion_salida_id=$_POST['ubicacion_salida_id'];\n\t\t\t\t$t->trans_begin();\n\t\t\t\t$t->save();\n\t\t\t\tif ($t->trans_status() === FALSE) {\n\t\t\t\t\t// Transaction failed, rollback\n\t\t\t\t\t$t->trans_rollback();\n\t\t\t\t\t$u->trans_rollback();\n\t\t\t\t\t// Add error message\n\t\t\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\t\t\techo '<button type=\"submit\" style=\"display:none;\" id=\"boton1\">Intentar de nuevo</button><br/>';\n\t\t\t\t\techo \"El alta del traspaso no pudo registrarse, intente de nuevo\";\n\t\t\t\t} else {\n\t\t\t\t\t// Transaction successful, commit\n\t\t\t\t\t$u->trans_commit();\n\t\t\t\t\t$t->trans_commit();\n\t\t\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\t\t\techo '<p id=\"response\">Capturar los detalles del pedido</p><button type=\"submit\" id=\"boton1\" style=\"display:none;\" id=\"boton1\">';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//Actualisar unicamente la tabla de los detalles\n\t\t\t\t$u->trans_commit();\n\t\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\t\techo '<p id=\"response\">Capturar los detalles del pedido</p><button type=\"submit\" id=\"boton1\" style=\"display:none;\" id=\"boton1\">';\n\t\t\t}\n\t\t} else {\n\t\t\t$u->trans_rollback();\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "function commandes_trig_bank_reglement_en_echec($flux){\r\n\t// Si on est dans le bon cas d'un paiement de commande et qu'il y a un id_commande et que la commande existe toujours\r\n\tif ($id_transaction = $flux['args']['id_transaction']\r\n\t AND $transaction = sql_fetsel(\"*\",\"spip_transactions\",\"id_transaction=\".intval($id_transaction))\r\n\t\tAND $id_commande = $transaction['id_commande']\r\n\t\tAND $commande = sql_fetsel('id_commande, statut, id_auteur', 'spip_commandes', 'id_commande='.intval($id_commande))){\r\n\r\n\t\t$statut_commande = $commande['statut'];\r\n\t\t$transaction_mode = $transaction['mode'];\r\n\t\t$statut_nouveau = $statut_commande;\r\n\r\n\t\t// on ne passe la commande en erreur que si le reglement a effectivement echoue,\r\n\t\t// pas si c'est une simple annulation (retour en arriere depuis la page de paiement bancaire)\r\n\t\tif (strncmp($transaction['statut'],\"echec\",5)==0){\r\n\t\t\t$statut_nouveau = 'erreur';\r\n\t\t}\r\n\t\tif ($statut_nouveau !== $statut_commande){\r\n\t\t\tspip_log(\"commandes_trig_bank_reglement_en_attente marquer la commande #$id_commande statut=$statut_nouveau\",'commandes');\r\n\t\t\t//on met a jour la commande\r\n\t\t\tinclude_spip(\"action/editer_commande\");\r\n\t\t\tcommande_modifier($id_commande,array('statut'=>$statut_nouveau,'mode'=>$transaction_mode));\r\n\t\t}\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "public function courriersAction()\n {\n // Les modèles\n $model_membres = new Model_DbTable_CommissionMembre();\n\n // On récupère la liste des membres de la commission\n $this->view->rowset_membres = $model_membres->fetchAll('ID_COMMISSION = '.$this->_request->id_commission);\n }", "function habilitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_HABCONT_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function anular_PM_MM($id_mov)\r\n{\r\n global $db,$_ses_user;\r\n\r\n $db->StartTrans();\r\n $query=\"update movimiento_material set estado=3 where id_movimiento_material=$id_mov\";\r\n sql($query) or fin_pagina();\r\n $usuario=$_ses_user['name'];\r\n $fecha_hoy=date(\"Y-m-d H:i:s\",mktime());\r\n //agregamos el log de anulacion del movimiento\r\n $query=\"insert into log_movimiento(fecha,usuario,tipo,id_movimiento_material)\r\n values('$fecha_hoy','$usuario','anulado',$id_mov)\";\r\n sql($query) or fin_pagina();\r\n\r\n //traemos el deposito de origen del MM o PM\r\n $query=\"select movimiento_material.deposito_origen\r\n \t\t from mov_material.movimiento_material\r\n \t\t where id_movimiento_material=$id_mov\";\r\n $orig=sql($query,\"<br>Error al traer el deposito origen del PM o MM<br>\") or fin_pagina();\r\n\r\n $deposito_origen=$orig->fields['deposito_origen'];\r\n descontar_reservados_mov($id_mov,$deposito_origen,1);\r\n\r\n $db->CompleteTrans();\r\n\r\n return \"El $titulo_pagina Nº $id_mov fue anulado con éxito\";\r\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 transactPartenaire()\n {\n $data['liste_part'] = $this->partenaireModels->getPartenaire();\n $this->views->setData($data);\n $param['part'] = $this->paramPOST['fk_partenaire'];\n\n if (isset($this->paramPOST[\"datedeb\"]) & isset($this->paramPOST[\"datefin\"])) {\n\n $param['datedeb'] = Utils::date_aaaa_mm_jj($this->paramPOST['datedeb']) ;\n $param['datefin'] = Utils::date_aaaa_mm_jj($this->paramPOST['datefin']);\n\n }else{\n $param['datedeb'] = date('Y-m-d');\n $param['datefin'] = date('Y-m-d');\n }\n\n $this->views->setData($param);\n $this->views->getTemplate('reporting/transactPartenaire');\n }", "public function payFacture() {\n $facture = $this->em->selectById('facture', $this->post->payFacture);\n $facture->setPaye(1);\n $facture->setDatePaiement($this->date);\n $this->em->update($facture);\n // Remettre le compteur en marche si coupé\n $conso = $this->em->selectById('consommation', $facture->getId()); \n $compteur = $this->em->selectById('compteur', $conso->getIdCompteur()); \n if($compteur->getIdEtatCompteur()!=1){\n $compteur->setIdEtatCompteur(1);\n $this->em->update($compteur);\n }\n $this->liste();\n $this->handleStatus('Paiement effectué avec succès.');\n }", "function anteriorEstadoCotizacion(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_ANTEST_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n $this->setParametro('operacion','operacion','varchar');\n $this->setParametro('id_estado_wf','id_estado_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 retraitEspeceCarte()\n {\n $fkagence = $this->userConnecter->fk_agence;\n $data['typeagence'] = $this->userConnecter->idtype_agence;\n $data['lang'] = $this->lang->getLangFile($this->getSession()->getAttribut('lang'));\n $telephone = trim(str_replace(\"+\", \"00\", $this->utils->securite_xss($_POST['phone'])));\n $data['benef'] = $this->compteModel->beneficiaireByTelephone1($telephone);\n $data['soldeAgence'] = $this->utils->getSoldeAgence($fkagence);\n\n $typecompte = $this->compteModel->getTypeCompte($telephone);\n if ($typecompte == 0) {\n $username = 'Numherit';\n $userId = 1;\n $token = $this->utils->getToken($userId);\n $response = $this->api_numherit->soldeCompte($username, $token, $telephone);\n $decode_response = json_decode($response);\n if ($decode_response->{'statusCode'} == 000) {\n $data['soldeCarte'] = $decode_response->{'statusMessage'};\n } else $data['soldeCarte'] = 0;\n } else if ($typecompte == 1) {\n $numcarte = $this->compteModel->getNumCarte($telephone);\n $numeroserie = $this->utils->returnCustomerId($numcarte);\n $solde = $this->api_gtp->ConsulterSolde($numeroserie, '6325145878');\n $json = json_decode(\"$solde\");\n $responseData = $json->{'ResponseData'};\n if ($responseData != NULL && is_object($responseData)) {\n if (array_key_exists('ErrorNumber', $responseData)) {\n $message = $responseData->{'ErrorNumber'};\n $data['soldeCarte'] = 0;\n } else {\n $data['soldeCarte'] = $responseData->{'Balance'};\n $currencyCode = $responseData->{'CurrencyCode'};\n }\n } else $data['soldeCarte'] = 0;\n }\n\n $params = array('view' => 'compte/retrait-espece-carte');\n $this->view($params, $data);\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}", "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 autorizar_entregar_pm($id_movimiento_material) {\r\n global $_ses_user,$db,$id_stock_rma;\r\n \r\n\r\n //$db->StartTrans();\r\n $sql=\"select id_deposito from general.depositos where nombre='RMA-Produccion-San Luis' \";\r\n $res = sql($sql) or fin_pagina();\r\n $id_stock_rma = $res->fields[\"id_deposito\"];\r\n \r\n $titulo_pagina = \"Movimiento de Material\";\r\n $fecha_hoy = date(\"Y-m-d H:i:s\",mktime());\r\n \r\n \r\n $sql = \"select deposito_origen,deposito_destino from movimiento_material \r\n where id_movimiento_material = $id_movimiento_material\";\r\n $res = sql($sql) or fin_pagina();\r\n \r\n $deposito_origen = $res->fields[\"deposito_origen\"];\r\n $deposito_destino = $res->fields[\"deposito_destino\"];\r\n \r\n $sql = \" select id_detalle_movimiento,cantidad,id_prod_esp from detalle_movimiento \r\n where id_movimiento_material = $id_movimiento_material\";\r\n $detalle_mov = sql($sql) or fin_pagina();\r\n \r\n for($i=0; $i < $detalle_mov->recordcount(); $i++){ \t \r\n \t $id_detalle_movimiento = $detalle_mov->fields[\"id_detalle_movimiento\"];\t\r\n \t $cantidad = $detalle_mov->fields[\"cantidad\"];\r\n \t $id_prod_esp = $detalle_mov->fields[\"id_prod_esp\"];\r\n $sql = \"select id_recibidos_mov,cantidad\r\n from recibidos_mov where id_detalle_movimiento=$id_detalle_movimiento \r\n and ent_rec=0\";\r\n $detalle_rec = sql($sql) or fin_pagina();\r\n $id_recibido_mov = $detalle_rec->fields[\"id_recibidos_mov\"];\r\n\r\n if($id_recibido_mov==\"\") {\r\n\t \t //insert\r\n\t\t $sql = \"select nextval('recibidos_mov_id_recibidos_mov_seq') as id_recibido_mov\";\r\n\t\t $res_1 = sql($sql) or fin_pagina();\r\n\t\t $id_recibido_mov = $res_1->fields[\"id_recibido_mov\"];\r\n\t\t $sql=\"insert into recibidos_mov(id_recibidos_mov,id_detalle_movimiento,cantidad,ent_rec)\r\n\t\t values($id_recibido_mov,$id_detalle_movimiento,$cantidad,0)\";\r\n }else {\r\n\t //update\r\n\t $sql=\"update recibidos_mov set cantidad=cantidad+$cantidad\r\n\t where id_recibidos_mov=$id_recibido_mov\";\r\n }//del else\r\n sql($sql) or fin_pagina();\r\n $sql =\"insert into log_recibidos_mov(id_recibidos_mov,usuario,fecha,cantidad_recibida,tipo)\r\n values($id_recibido_mov,'\".$_ses_user[\"name\"].\"','$fecha_hoy',$cantidad,'entrega')\";\r\n sql($sql) or fin_pagina();\r\n //eliminamos las reservas hechas para este movimiento\r\n $comentario_stock=\"Utilización de los productos reservados por el $titulo_pagina Nº $id_movimiento\";\r\n $id_tipo_movimiento=7;\r\n descontar_reserva($id_prod_esp,$cantidad,$deposito_origen,$comentario_stock,$id_tipo_movimiento,$id_fila=\"\",$id_detalle_movimiento);\r\n //ahora incremento el stock destino\r\n \r\n if($deposito_destino==$id_stock_rma) {\r\n\t $comentario_rma=\"Ingreso de productos a RMA mediante el $titulo_pagina Nº $id_movimiento\";\r\n $tipo_log=\"Creacion MM Nº $id_movimiento\";\r\n $cb_insertados=array();\r\n $rma_san_luis = 1;\r\n incrementar_stock_rma($id_prod_esp,$cantidad,\"\",$comentario_rma,\"\",$cb_insertados,\"\",1,\"\",\"\",\"\",\"null\",\"\",$nro_caso,\"\",$tipo_log,\"\",$id_movimiento_material,$rma_san_luis);\r\n //guardamos el id de proveedor elegido para RMA, en la fila del PM o MM (en la tabla detalle_movimiento)\r\n /*\r\n $query=\"update mov_material.detalle_movimiento set id_proveedor=$id_proveedor_rma where id_detalle_movimiento=$id_detalle_movimiento\";\r\n sql($query,\"<br>Error al actualizar el proveedor de RMA del producto<br>\") or fin_pagina();\r\n */\r\n }\r\n else { \r\n $comentario = \" Ingreso de Productos mediante PM N°: $id_movimiento_material\";\r\n agregar_stock($id_prod_esp,$cantidad,$deposito_destino,$comentario,13,\"disponible\");\r\n } \r\n \r\n $detalle_mov->movenext(); \r\n }//del for\r\n \r\n}", "public function commandeSpecialFormTraitement(){\n\n // Récupération des informations du formulaire de contact\n $nom = $this->verifierSaisie(\"nom\");\n $prenom = $this->verifierSaisie(\"prenom\");\n $email = $this->verifierSaisie(\"email\");\n $sujet = $this->verifierSaisie(\"sujet\");\n $message = $this->verifierSaisie(\"message\");\n\n // Sécurité\n if ( $this->verifierEmail($email)\n && ($nom != \"\")\n && ($prenom != \"\")\n && ($sujet != \"\")\n && ($message != \"\") ){\n\n \n // message pour l'utilisateur\n // $GLOBALS[\"contactRetour\"] = \"<p class='bg-success'>Merci $prenom, votre message est bien envoyé !</p>\";\n $GLOBALS[\"commandeSpecialRetour\"] = \"<span class='glyphicon glyphicon-ok' aria-hidden='true'></span> Merci $prenom, votre message a bien été envoyé !\";\n }\n\n else{\n // $GLOBALS[\"contactRetour\"] = \"Il manque des informations\";\n $GLOBALS[\"commandeSpecialRetour\"] = \"<span class='glyphicon glyphicon-alert' aria-hidden='true'></span> Il manque des informations !\";\n }\n\n }", "function autorizar_producto_san_luis($id_mov){\r\n\r\nglobal $db;\t\r\n \r\n $db->starttrans();\r\n $fecha_hoy=date(\"Y-m-d H:i:s\",mktime());\r\n \r\n //traigo el deposito origen\r\n $sql = \"select deposito_origen,deposito_destino\r\n from movimiento_material where id_movimiento_material = $id_mov\"; \r\n $res = sql($sql) or fin_pagina();\r\n $id_deposito_origen = $res->fields[\"deposito_origen\"];\r\n $id_deposito_destino = $res->fields[\"deposito_destino\"];\r\n \t \r\n //traigo el detalle de los movimientos a liberar \t \r\n $sql=\"select * from detalle_movimiento where id_movimiento_material=$id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n\r\n $comentario = \" Autorizacion de PM Producto San Luis nro: $id_mov\";\r\n $id_tipo_movimiento = 7;\r\n\r\n //por cada detalle voy liberando las reservas del pm autorizado \r\n for($i=0;$i<$res->recordcount();$i++) {\r\n \t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n $cantidad = $res->fields[\"cantidad\"];\r\n $id_detalle_movimiento = $res->fields[\"id_detalle_movimiento\"]; \r\n ///////////////////////////////////////\r\n $sql = \"select id_recibidos_mov,cantidad\r\n from recibidos_mov where id_detalle_movimiento=$id_detalle_movimiento \r\n and ent_rec=0\";\r\n $detalle_rec = sql($sql) or fin_pagina();\r\n $id_recibido_mov = $detalle_rec->fields[\"id_recibidos_mov\"];\r\n if($id_recibido_mov==\"\") {\r\n\t \t //insert\r\n\t\t $sql = \"select nextval('recibidos_mov_id_recibidos_mov_seq') as id_recibido_mov\";\r\n\t\t $res_1 = sql($sql) or fin_pagina();\r\n\t\t $id_recibido_mov = $res_1->fields[\"id_recibido_mov\"];\r\n\t\t $sql=\"insert into recibidos_mov(id_recibidos_mov,id_detalle_movimiento,cantidad,ent_rec)\r\n\t\t values($id_recibido_mov,$id_detalle_movimiento,$cantidad,0)\";\r\n }else {\r\n\t //update\r\n\t $sql=\"update recibidos_mov set cantidad=cantidad+$cantidad\r\n\t where id_recibidos_mov=$id_recibido_mov\";\r\n }//del else\r\n sql($sql) or fin_pagina();\r\n $sql =\"insert into log_recibidos_mov(id_recibidos_mov,usuario,fecha,cantidad_recibida,tipo)\r\n values($id_recibido_mov,'\".$_ses_user[\"name\"].\"','$fecha_hoy',$cantidad,'entrega')\";\r\n sql($sql) or fin_pagina();\r\n /////////////////////////////////////// \r\n descontar_reserva($id_prod_esp,$cantidad,$id_deposito_origen,$comentario,$id_tipo_movimiento,\"\",$id_detalle_movimiento,\"\");\r\n $res->movenext(); \r\n }//del for\r\n \t \r\n //Inserto la Mercaderia entrante en el stock BS AS \r\n $sql = \"select * from mercaderia_entrante where id_movimiento_material = $id_mov\";\r\n $res = sql($sql) or fin_pagina();\r\n $comentario = \"Producto San Luis perteneciente al PM nro: $id_mov\";\r\n for($i=0;$i<$res->recordcount();$i++){\r\n\t $id_prod_esp = $res->fields[\"id_prod_esp\"];\r\n\t $cantidad = $res->fields[\"cantidad\"];\r\n\t $descripcion = $res->fields[\"descripcion\"]; \r\n\t //el id_tipo_movimiento le hardcodeo uno de la tabla stock.tipo_movimiento\r\n\t $id_tipo_movimiento='13';\r\n\t //el ingreso del producto es a \"disponible\" por lo tanto la funcion no toma en cuenta los parametros que siguen\r\n\t $a_stock='disponible';\r\n\t agregar_stock($id_prod_esp,$cantidad,$id_deposito_destino,$comentario,$id_tipo_movimiento,$a_stock,$id_tipo_reserva,\"\",$id_detalle_movimiento,$id_licitacion,$nro_caso);\r\n\t $res->movenext();\r\n }//del for\r\n $db->completetrans();\r\n\r\n }", "function corpoRelatorio($oPdf, $oFiltros, $oTurma) {\n\n $oPdf->SetXY($oFiltros->iPosicaoX, $oFiltros->iPosicaoY);\n $iAlunosImpressos = 0;\n\n /**\n * Pegamos a data atual para calcular a data de nascimento do aluno\n */\n $dtAtual = date(\"Y-m-d\");\n\n foreach ($oFiltros->aAlunosPorPagina as $oMatricula) {\n\n /**\n * Caso situacao seja troca de turma, nao apresentamos no relatorio\n */\n if ($oMatricula->getSituacao() == 'TROCA DE TURMA') {\n continue;\n }\n\n /**\n * Valida quebra de pagina\n */\n if ($oPdf->GetY() > $oFiltros->iAlturaMaxima) {\n\n $oPdf->AddPage(\"L\");\n cabecalhoRelatorio($oPdf, $oFiltros, $oTurma);\n rodapeRelatorio($oPdf, $oFiltros, $oTurma);\n $iAlunosImpressos = 0;\n }\n\n /**\n * Verificamos se trata-se de um aluno repetente\n */\n $sSituacao = 'NOVO';\n if (($oMatricula->getTipo() == 'R' && $oMatricula->getResultadoFinalAnterior() == 'R')) {\n $sSituacao = 'REPETENTE';\n }\n\n $oData = $oMatricula->getAluno()->getIdadeNaData($dtAtual);\n $oDataNascimento = new DBDate($oMatricula->getAluno()->getDataNascimento());\n $sDataNascimento = $oDataNascimento->convertTo(DBDate::DATA_PTBR);\n\n $oFiltros->sEvadido = '';\n $oFiltros->sTransferido = '';\n\n /**\n * Verificamos se o aluno foi transferido ou evadido, e buscamos o mes para apresentar no relatorio\n */\n if ($oMatricula->getSituacao() == 'TRANSFERIDO FORA' || $oMatricula->getSituacao() == 'TRANSFERIDO REDE') {\n $oFiltros->sEvadido = db_mes($oMatricula->getDataEncerramento()->getMes(), 2);\n } else if ($oMatricula->getSituacao() == 'EVADIDO') {\n $oFiltros->sTransferido = db_mes($oMatricula->getDataEncerramento()->getMes(), 2);\n }\n\n $oPdf->SetFont('arial', '', 6);\n $oPdf->Cell($oFiltros->iColunaNumero, $oFiltros->iAlturaLinhaPadrao, $oMatricula->getNumeroOrdemAluno(), 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaAluno, $oFiltros->iAlturaLinhaPadrao, $oMatricula->getAluno()->getNome(), 1, 0, \"L\");\n $oPdf->Cell($oFiltros->iColunaSexo, $oFiltros->iAlturaLinhaPadrao, $oMatricula->getAluno()->getSexo(), 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaDataNascimento, $oFiltros->iAlturaLinhaPadrao, $sDataNascimento, 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaIdadeMeses, $oFiltros->iAlturaLinhaPadrao, \"{$oData->anos} / {$oData->meses}\", 1, 0, \"C\");\n\n switch ($oFiltros->sTipoModelo) {\n\n /**\n * 1 - Matricula Inicial\n * 2 - Demais Cursos\n */\n case (\"12\"):\n\n $sPreEscola = 'NÃO';\n if ($oMatricula->getAluno()->temPreEscolaNaRede()) {\n $sPreEscola = 'SIM';\n }\n\n $oPdf->Cell($oFiltros->iColunaSituacaoMatricula, $oFiltros->iAlturaLinhaPadrao, $sSituacao, 1, 0, \"C\");\n if ($oFiltros->iPreEscola == 2) {\n $oPdf->Cell($oFiltros->iColunaPreEscola, $oFiltros->iAlturaLinhaPadrao, $sPreEscola, 1, 0, \"C\");\n }\n break;\n\n /**\n * 2 - Matricula Final\n * 1 - Educacao Infantil\n */\n case (\"21\"):\n\n preencheColunasMatriculaFinal($oPdf, $oFiltros, $oMatricula);\n break;\n\n /**\n * 2 - Matricula Final\n * 2 - Demais Cursos\n */\n case (\"22\"):\n\n $oPdf->Cell($oFiltros->iColunaSituacaoMatricula, $oFiltros->iAlturaLinhaPadrao, $sSituacao, 1, 0, \"C\");\n preencheColunasMatriculaFinal($oPdf, $oFiltros, $oMatricula);\n break;\n }\n\n $oPdf->Cell($oFiltros->iColunaCorRaca, $oFiltros->iAlturaLinhaPadrao, $oMatricula->getAluno()->getRaca(), 1, 1, \"C\");\n $iAlunosImpressos++;\n }\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 }", "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}", "public function enfocarCamaraPresidencia() {\n\n self::$presidencia->enfocar();\n\n }", "function wtsProPaiement($ar){\n $p = new XParam($ar, array());\n $orderoid = $p->get('orderoid');\n // verification du client de la commande et du compte connecte\n list($okPaiement, $mess) = $this->paiementEnCompte($orderoid);\n if (!$okPaiement){\n XLogs::critical(get_class($this), 'paiement pro refusé '.$orderoid.' '.$mess);\n XShell::setNext($GLOBALS['TZR_SESSION_MANAGER']::complete_self(true, true).'&alias='.$this->aliasvente.'&moid='.$this->_moid.'&function=wtsLireOffres');\n return;\n }\n // traitement post commande std\n clearSessionVar('caddie');\n XLogs::critical(get_class($this), 'enregistrement paiement en compte '.$orderoid);\n // traitement standards après validation\n $this->postOrderActions($orderoid, true);\n\n // traitement post order - devrait être dans postOrderActions\n $this->proPostOrderActions($orderoid);\n\n // retour \n if (defined('EPL_ALIAS_PAIEMENT_ENCOMPTE')){\n XShell::setNext($GLOBALS['TZR_SESSION_MANAGER']::complete_self().'alias='.EPL_ALIAS_PAIEMENT_ENCOMPTE);} else {\n XShell::setNext($GLOBALS['TZR_SESSION_MANAGER']::complete_self(true, true).'&alias='.$this->aliasvente.'&moid='.$this->_moid.'&function=wtsLireOffres');\n }\n }", "public function getTransmissor()\r\n {\r\n }", "public function changeToOrdine()\n {\n\n //crea la tabella degli ordini verso i fornitori\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_scarico_totale'] ;\n $importo_traslocatore_destinazione = $result['costo_salita_piano_totale'] + $result['costo_montaggio_totale'] + $result['costo_scarico_ricarico_hub_totale'];\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;\n $totaliMC[$this->id_depositario] = $totaliMC[$this->id_depositario] + $mc;\n $totaliMC[$this->id_traslocatore_destinazione] = $totaliMC[$this->id_traslocatore_destinazione] + $mc;\n $totaliMC[$this->id_traslocatore_partenza] = $totaliMC[$this->id_traslocatore_partenza] + $mc;\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\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 $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\n $data_ordine = date('Y-m-d');\n $con = DBUtils::getConnection();\n $sql =\"UPDATE preventivi SET tipo=\".OrdineBusiness::TIPO_ORDINE.\" , data='\".$data_ordine.\"' ,\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 //echo \"\\nSQL: \".$sql;\n DBUtils::closeConnection($con);\n\n return new OrdineCliente($this->id_preventivo);\n }", "function insertarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_ime';\n\t\t$this->transaccion='ADQ_COT_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('estado_reg','estado_reg','varchar');\n\t\t\n\t\t$this->setParametro('lugar_entrega','lugar_entrega','varchar');\n\t\t$this->setParametro('tipo_entrega','tipo_entrega','varchar');\n\t\t$this->setParametro('fecha_coti','fecha_coti','date');\n\t\t$this->setParametro('numero_oc','numero_oc','int4');\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\n\t $this->setParametro('precio_total','precio_total','numeric');\n\t\t$this->setParametro('fecha_entrega','fecha_entrega','date');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('fecha_venc','fecha_venc','date');\n\t\t$this->setParametro('obs','obs','text');\n\t\t$this->setParametro('fecha_adju','fecha_adju','date');\n\t\t$this->setParametro('nro_contrato','nro_contrato','varchar');\n\t\t$this->setParametro('tipo_cambio_conv','tipo_cambio_conv','numeric');\n\t\t$this->setParametro('tiempo_entrega','tiempo_entrega','varchar');\n\t\t$this->setParametro('funcionario_contacto','funcionario_contacto','varchar');\n\t\t$this->setParametro('telefono_contacto','telefono_contacto','varchar');\n\t\t$this->setParametro('correo_contacto','correo_contacto','varchar');\n\t\t$this->setParametro('prellenar_oferta','prellenar_oferta','varchar');\n\t\t\n\t\t$this->setParametro('forma_pago','forma_pago','varchar');\n\t\t\n\t\t\n\t\t\n\t\t\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}", "public function trasnaction(){\n\n\t}", "public function getTransiciones($unParque){\n $this->loadModel('Transicions');\n \n /*Cargo los aeros del parque y las transiciones todos los parques*/\n $aerosParque = $this->Aeros->find('all')->where(['Aeros.id_parque =' => $unParque]);\n $transiciones = $this->Transicions->find('all');\n \n /* Saco las transiciones de los aerogeneradores del parque que pasamos por parámetro*/\n $transicionesParque = array();\n foreach($transiciones as $transicion):\n foreach($aerosParque as $aero):\n if($transicion['systemNumber']==$aero['SystemNumber']){\n array_push($transicionesParque,$transicion);\n }\n endforeach;\n endforeach;\n \n return $transicionesParque;\n }", "function insertarProcesoCompra(){\n\t\t$this->procedimiento='adq.f_proceso_compra_ime';\n\t\t$this->transaccion='ADQ_PROC_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('id_depto','id_depto','int4');\n\t\t$this->setParametro('num_convocatoria','num_convocatoria','varchar');\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_ini_proc','fecha_ini_proc','date');\n\t\t$this->setParametro('obs_proceso','obs_proceso','varchar');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('num_tramite','num_tramite','varchar');\n\t\t$this->setParametro('codigo_proceso','codigo_proceso','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('num_cotizacion','num_cotizacion','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}", "public function cercaReferti() {\r\n $fReferto = USingleton::getInstance(\"FReferto\");\r\n return $fReferto->cercaRefertiClinica($this->getPartitaIVAClinica());\r\n }", "function controlPracticasRelacionadas($clavebeneficiario, $fecha_comprobante, $datosnomenclador) {\r\n\r\n $ctrl['debito'] = false;\r\n $query = \"SELECT *\r\n FROM facturacion.cfg_practicas_relac\r\n WHERE modo=1 and\r\n trim(pracorigen)=trim('$datosnomenclador[3]')\";\r\n $res_origen = sql($query, \"Error 1\") or fin_pagina();\r\n\r\n if ($res_origen->RecordCount() > 0) {\r\n $ctrl['msj_error'] = \"\";\r\n $res_origen->MoveFirst();\r\n while (!$res_origen->EOF) {\r\n $anexo = $res_origen->fields['anexopracrel'];\r\n $nomencladordetalles['tipo'] = $datosnomenclador[2];\r\n $nomencladordetalles['codigo'] = $res_origen->fields['pracrel'];\r\n //busca si ese afiliado se realiza la practica relacionada\r\n $comprobantedelarelacionada = traemeLaPractica($clavebeneficiario, $nomencladordetalles, $fecha_comprobante, $anexo);\r\n if ($comprobantedelarelacionada != null) {\r\n $limite_dias = $res_origen->fields['dias'];\r\n $limite_dias_time = dias_time($limite_dias);\r\n $fecha_comprobante_time = strtotime(date($fecha_comprobante));\r\n $comprobantedelarelacionada_time = strtotime(date($comprobantedelarelacionada));\r\n $resta_time = $fecha_comprobante_time - $comprobantedelarelacionada_time;\r\n if ($resta_time <= $limite_dias_time) {\r\n //una vez que esta comprobado que se realizo la practica dentro de los 30 dias,\r\n //comprueba si existe otra condicion, o si no es obligatoria y sale. \r\n //TODO: no existe while para otras practicas obligatorias\r\n if (($res_origen->fields['otras'] == 'N') || ($res_origen->fields['tipo'] == 'OR')) {\r\n $ctrl['debito'] = false;\r\n break;\r\n }\r\n } else {\r\n if ($ctrl['msj_error'] != \"\") {\r\n $ctrl['msj_error'].=\" y \";\r\n }\r\n $ctrl['debito'] = true;\r\n $ctrl['msj_error'] .= 'No se realizo la practica relacionada [' . $nomencladordetalles['codigo'] . '] dentro del limite de tiempo';\r\n $ctrl['id_error'] = '76';\r\n $ctrl['nomenclador_rel'] = $nomencladordetalles['codigo'];\r\n if ($res_origen->fields['tipo'] == 'AND')\r\n break;\r\n }\r\n } else {\r\n if ($ctrl['msj_error'] != \"\") {\r\n $ctrl['msj_error'].=\" y \";\r\n }\r\n $ctrl['debito'] = true;\r\n $ctrl['msj_error'] .= 'No se realizo la practica relacionada [' . $nomencladordetalles['codigo'] . ']';\r\n $ctrl['id_error'] = '75';\r\n $ctrl['nomenclador_rel'] = $nomencladordetalles['codigo'];\r\n if ($res_origen->fields['tipo'] == 'AND')\r\n break;\r\n }\r\n $res_origen->MoveNext();\r\n }\r\n }\r\n return $ctrl;\r\n}", "function insertarCuce()\n {\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_RSOLCUCE_IME';\n $this->tipo_procedimiento = 'IME';\n\n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion', 'id_cotizacion', 'int4');\n $this->setParametro('cuce', 'cuce', 'varchar');\n $this->setParametro('fecha_conclusion', 'fecha_conclusion', 'date');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function siguienteEstadoCotizacion(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_SIGECOT_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n $this->setParametro('operacion','operacion','varchar');\n \n $this->setParametro('id_tipo_estado','id_tipo_estado','integer');\n $this->setParametro('id_funcionario','id_funcionario','integer');\n $this->setParametro('obs','obs','varchar');\n $this->setParametro('fecha_oc','fecha_oc','date');\n \n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function commissionPartenaire()\n {\n $data['liste_part'] = $this->partenaireModels->getPartenaire();\n $this->views->setData($data);\n\n $this->views->getTemplate('reporting/commissionPartenaire');\n }", "public function rechargeEspeceCarte()\n {\n $fkagence = $this->userConnecter->fk_agence;\n $data['lang'] = $this->lang->getLangFile($this->getSession()->getAttribut('lang'));\n $telephone = trim(str_replace(\"+\", \"00\", $this->utils->securite_xss($_POST['phone'])));\n $data['benef'] = $this->compteModel->beneficiaireByTelephone1($telephone);\n $data['soldeAgence'] = $this->utils->getSoldeAgence($fkagence);\n\n $params = array('view' => 'compte/recharge-espece-carte');\n $this->view($params, $data);\n }", "function dolibarr_regler_facture($id_transaction) {\n\tspip_log(\"regler_facture_dolibarr $id_transaction 1\",'dolibarr' . _LOG_DEBUG);\n\t$transaction = sql_fetsel('*','spip_transactions','id_transaction='.intval($id_transaction));\n\tif(!$transaction or !$id_facture = $transaction['id_facture']) {\n\t\treturn false;\n\t}\n\tspip_log(\"regler_facture_dolibarr $id_transaction fact #$id_facture 2\",'dolibarr' . _LOG_DEBUG);\n\n\t$facture = sql_fetsel('*','spip_factures','id_facture='.intval($id_facture));\n\tif ($facture['no_comptable']) {\n\t\t$factref = $facture['no_comptable'];\n\t\tspip_log(\"regler_facture_dolibarr $id_transaction fact #$id_facture Ref $factref 3\",'dolibarr' . _LOG_DEBUG);\n\n\t\t$facture_doli = dolibarr_recuperer_facture(null, $factref);\n\t\tif (!$facture_doli) {\n\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction ECHEC dolibarr_recuperer_facture\",'dolibarr' . _LOG_ERREUR);\n\t\t}\n\t\telseif (!$factid = $facture_doli->id) {\n\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction ECHEC dolibarr_recuperer_facture pas de factid\",'dolibarr' . _LOG_ERREUR);\n\t\t\tspip_log($facture_doli,'dolibarr' . _LOG_ERREUR);\n\t\t}\n\t\telse {\n\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction 4\",'dolibarr' . _LOG_DEBUG);\n\t\t\t$fact_paye = $facture_doli->paye;\n\t\t\tif ($fact_paye) {\n\t\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction Facture DOLI $factref/#$factid DEJA PAYEE\",'dolibarr' . _LOG_DEBUG);\n\t\t\t}\n\t\t\telseif ($transaction['reglee'] !== 'oui') {\n\t\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction reglee!=oui\",'dolibarr' . _LOG_DEBUG);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// marquer la facture comme payee dans dolibarr (sauf si montant nul, doli ne sait pas faire)\n\t\t\telse {\n\t\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction 5\",'dolibarr' . _LOG_DEBUG);\n\t\t\t\t$libelle = _T('bank:titre_transaction').' #'.$transaction['id_transaction']; //.' | '.$transaction['mode'].' '.$transaction['autorisation_id'];\n\t\t\t\t$paiement = array(\n\t\t\t\t\t\t'date_paiement' => $transaction['date_paiement'],\n\t\t\t\t\t\t'montant' => $facture['montant_regle'],\n\t\t\t\t\t\t'type_paiement' => _DOLIBARR_TYPE_PAIEMENT_CB,\n\t\t\t\t\t\t'id_bank' => _DOLIBARR_ID_BANK_PAIEMENT, /* Banque par defaut */\n\t\t\t\t\t\t'libelle' => trim($libelle),\n\t\t\t\t);\n\n\t\t\t\tif (strncmp($transaction['mode'],'cheque',6) == 0) {\n\t\t\t\t\t$paiement['type_paiement'] = _DOLIBARR_TYPE_PAIEMENT_CHEQUE;\n\t\t\t\t}\n\t\t\t\tif (strncmp($transaction['mode'],'virement',8) == 0) {\n\t\t\t\t\t$paiement['type_paiement'] = _DOLIBARR_TYPE_PAIEMENT_VIREMENT;\n\t\t\t\t}\n\t\t\t\t// un id_bank specifique pour ce presta ?\n\t\t\t\t$presta = explode('/', $transaction['mode']);\n\t\t\t\t$presta = reset($presta);\n\t\t\t\tif (substr($presta, -5) === '_test') {\n\t\t\t\t\t$presta = substr($presta, 0, -5);\n\t\t\t\t}\n\t\t\t\t$constant_id_bank = '_DOLIBARR_ID_BANK_PAIEMENT_' . strtoupper($presta);\n\t\t\t\tif (defined($constant_id_bank)) {\n\t\t\t\t\t$paiement['id_bank'] = constant($constant_id_bank); /* id Compte Banque Specifique pour ce presta */\n\t\t\t\t}\n\t\t\t\t//spip_log(\"paiement $factid presta $presta \".json_encode($paiement),'dolibarr');\n\t\t\t\t$id_paiement = dolibarr_facture_payer($factid, $paiement);\n\t\t\t\tspip_log(\"paiement $factid : $id_paiement\",'dolibarr');\n\n\n\t\t\t\tif ($facture['parrain'] == 'dolibarr' && defined('_DOLIBARR_EMAIL_NOTIF_REGLEMENT_FACTURE')) {\n\t\t\t\t\t$sujet = \"Reglement CB Facture Dolibarr $factref\";\n\t\t\t\t\t$url= generer_url_public('facture',\"id_facture=$id_facture&hash=\".md5($facture['details']),false,false);\n\t\t\t\t\t$url_fac_doli = false;\n\t\t\t\t\tif (defined('_DOLIBARR_PUBLIC_URL')) {\n\t\t\t\t\t\t$url_fac_doli = _DOLIBARR_PUBLIC_URL . \"compta/facture/card.php?facid=$factid\";\n\t\t\t\t\t}\n\t\t\t\t\t$texte =\n\t\t\t\t\t\t\"<html>\n<body>\n<p><a href='$url'>$url</a></p>\"\n. ($url_fac_doli ? \"<p><a href='$url_fac_doli'>$url_fac_doli</a></p>\" : '')\n.\"<div>\" . $facture['client'] . \"<br /></div>\"\n.$facture['details'].\"\n</body>\n</html>\";\n\n\t\t\t\t\t$envoyer_mail = charger_fonction('envoyer_mail','inc');\n\t\t\t\t\t$envoyer_mail(_DOLIBARR_EMAIL_NOTIF_REGLEMENT_FACTURE, $sujet, $texte);\n\t\t\t\t\t//include_spip('inc/notifications');\n\t\t\t\t\t//notifications_envoyer_mails(, $texte, $sujet);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdolibarr_pdfiser_facture($facture['no_comptable']);\n\n\t\t\t// et on envoie un mail de confirm au client de la facture pour qu'il ait une trace\n\t\t\tif ($transaction['contenu'] and $infos = json_decode($transaction['contenu'], true)) {\n\t\t\t\t$email = $infos['email'];\n\n\t\t\t\t$contexte = array_merge($infos, array('id_transaction' => $id_transaction));\n\t\t\t\t$texte = recuperer_fond('notifications/email_reglement_dolibarr', $contexte);\n\n\t\t\t\tinclude_spip('inc/config');\n\t\t\t\t$from = lire_config('bank/email_from_ticket_admin', $GLOBALS['meta']['email_webmaster']);\n\n\t\t\t\tinclude_spip(\"inc/notifications\");\n\t\t\t\tnotifications_envoyer_mails($email, $texte, '', $from);\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\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 autorizar_PM_MM($id_mov,$comentarios)\r\n{\r\n\tglobal $db,$_ses_user;\r\n\t\r\n\t $db->StartTrans();\r\n\r\n\t $query = \"update movimiento_material set comentarios='$comentarios',estado=2 where id_movimiento_material=$id_mov\";\r\n\t //die($query);\r\n\t sql($query) or fin_pagina();\r\n\t $usuario = $_ses_user['name'];\r\n\t $fecha_hoy = date(\"Y-m-d H:i:s\",mktime());\r\n\t //agregamos el log de creción del reclamo de partes\r\n\t $query=\"insert into log_movimiento(fecha,usuario,tipo,id_movimiento_material)\r\n\t values('$fecha_hoy','$usuario','autorización',$id_mov)\";\r\n\t sql($query) or fin_pagina();\r\n\t $datos_mail['Fecha'] = $fecha_hoy;\r\n\t $datos_mail['Usuario'] = $usuario;\r\n\t $datos_mail['Id'] = $id_mov;\r\n\t //variables que utilizo para el mail cuando tiene logistica integrada\r\n\t $datos_mail['id_logistica_integrada'] = $_POST['id_logistica_integrada'];\r\n\t $datos_mail['asociado_a'] = $_POST['asociado_a'];\r\n\t //fin de variables que utilizo cuando hay logistica integrada\r\n\t //enviar_mail_mov($datos_mail);\r\n\r\n\t $db->CompleteTrans();\r\n\r\n\t return \"<b>El $titulo_pagina Nº $id_mov, se autorizó con éxito.</b>\";\r\n\r\n}", "function synchronizeCuentaBancaria(){\n $this->procedimiento='sigep.ft_cuenta_bancaria_ime';\n $this->transaccion='SIGEP_CUEN_BAN_SYNC';\n $this->tipo_procedimiento='IME';\n\n /************************************************ token ************************************************/\n $curl = curl_init();\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://sigep.sigma.gob.bo/rsseguridad/apiseg/token?grant_type=refresh_token&client_id=0&redirect_uri=%2Fmodulo%2Fapiseg%2Fredirect&client_secret=0&refresh_token=FEA520426600:Wk5yBGCh5TeT8jUG5lPkwIT25Jmlwav5XqtxhCrmgr5Yc0iaAMPZgLILZZPC7mjxk5tUgVusBs0RXlSDkIuWq2qNat2KsUM3E4q7\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_HTTPHEADER => array(\n \"cache-control: no-cache\",\n \"content-type: application/x-www-form-urlencoded\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n $token_response = json_decode($response);\n $access_token = $token_response->{'access_token'};\n /************************************************ token ************************************************/\n\n /************************************************ perfil ************************************************/\n //$jsonConverter = new StandardConverter();\n $param_p = array(\"gestion\" => \"2022\", \"perfil\" => \"915\");\n //$param_p = $jsonConverter->encode($param_p);\n $param_p = json_encode($param_p);\n $curl_p = curl_init();\n\n $curl_array_p = array(\n CURLOPT_URL => 'https://sigep.sigma.gob.bo/rsbeneficiarios/api/cambiaperfil',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'PUT',\n CURLOPT_HTTPHEADER => array(\n \"Authorization: bearer \" . $access_token,\n \"Cache-Control: no-cache\",\n \"Content-Type: application/json\"\n ),\n CURLOPT_POSTFIELDS => $param_p\n );\n\n curl_setopt_array($curl_p,$curl_array_p);\n $response_p = curl_exec($curl_p);\n $err_p = curl_error($curl_p);\n $http_code_p = curl_getinfo( $curl_p, CURLINFO_HTTP_CODE );\n curl_close($curl_p);\n /************************************************ perfil ************************************************/\n\n /************************************************ cuentas ************************************************/\n $curl = curl_init();\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://sigep.sigma.gob.bo/rsclasificadores/api/v1/cuentasbancarias/cuentabancaria?idEntidad=494&fechaConsulta=04-07-2022\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => array(\n \"Authorization: bearer \" . $access_token,\n \"Cache-Control: no-cache\",\n \"Postman-Token: 011d15eb-f4ff-48db-85a6-1b380958342b\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n //var_dump('$response',/*curl_getinfo($curl),*/ json_decode($response)->data);exit;\n /************************************************ cuentas ************************************************/\n //$this->objParam->addParametro('jsonData', json_decode($response)->data);\n $this->arreglo['jsonData'] = json_encode(json_decode($response)->data);\n //Define los parametros para la funcion\n $this->setParametro('jsonData','jsonData','jsonb');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n //echo ($this->consulta);exit;\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function transaccion_registrar_alumno($alumno, $matricula_alumno, $antecentes_alumno, $familiares_padre, $familiares_madre, $antecentes_familiares, $jefe_hogar, $apoderado)\n {\n $mensaje = new stdClass();\n $this->db->trans_begin();\n $id_alumno = $this->ingresar_alumno($alumno);\n\n $matricula_alumno[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_matricula_alumno($matricula_alumno);\n $antecentes_alumno[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_antecedentes_alumno($antecentes_alumno);\n $antecentes_familiares[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_antecedentes_familiares_alumno($antecentes_familiares);\n $apoderado[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_apoderado($apoderado);\n // todo --> Datos Opcionales Que pueden venir vacios\n $familiares_padre[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_datos_familiar_alumno($familiares_padre);\n $familiares_madre[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_datos_familiar_alumno($familiares_madre);\n $jefe_hogar[\"TB_ALUMNO_ID\"] = $id_alumno;\n $this->ingresar_jefe_hogar($jefe_hogar);\n // todo --> ----------------------------------------\n if ($this->db->trans_status() === FALSE) {\n $this->db->trans_rollback();\n $mensaje->respuesta = \"N\";\n $mensaje->data = \" No se pudo procesar la transacci�n\";\n } else {\n $this->db->trans_commit();\n }\n return $mensaje;\n }", "function modificarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_ime';\n\t\t$this->transaccion='ADQ_COT_MOD';\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('id_cotizacion','id_cotizacion','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('lugar_entrega','lugar_entrega','varchar');\n\t\t$this->setParametro('tipo_entrega','tipo_entrega','varchar');\n\t\t$this->setParametro('fecha_coti','fecha_coti','date');\n\t\t$this->setParametro('numero_oc','numero_oc','varchar');\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\n\t\t$this->setParametro('precio_total','precio_total','numeric');\n\t\t$this->setParametro('fecha_entrega','fecha_entrega','date');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('fecha_venc','fecha_venc','date');\n\t\t$this->setParametro('obs','obs','text');\n\t\t$this->setParametro('fecha_adju','fecha_adju','date');\n\t\t$this->setParametro('nro_contrato','nro_contrato','varchar');\n\t\t$this->setParametro('tipo_cambio_conv','tipo_cambio_conv','numeric');\n $this->setParametro('tiempo_entrega','tiempo_entrega','varchar');\n\t\t$this->setParametro('funcionario_contacto','funcionario_contacto','varchar');\n\t\t$this->setParametro('telefono_contacto','telefono_contacto','varchar');\n\t\t$this->setParametro('correo_contacto','correo_contacto','varchar');\n\t\t$this->setParametro('prellenar_oferta','prellenar_oferta','varchar');\n\t\t$this->setParametro('forma_pago','forma_pago','varchar');\n\n $this->setParametro('id_solicitud','id_solicitud','int4');\n $this->setParametro('justificacion','justificacion','text');\n\n \n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n //var_dump('llega', $this->respuesta);\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function Cuerpo($acceso,$id_contrato)\n\t{\n\t\t//echo \"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT tarifa_ser FROM vista_tarifa where id_serv='BM00001'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$costo_inst=utf8_decode(trim($row['tarifa_ser']));\n\t\t}\n\t\t//echo \"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\");\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\");\n\t\tif($row=row($acceso)){\n\t\t\n\t\t\t$observacion=utf8_decode(trim($row['observacion']));\n\t\t\t$costo_contrato=utf8_decode(trim($row['costo_contrato']));\n\t\t\t$tipo_cliente=utf8_decode(trim($row['tipo_cliente']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombrecli']));\n\t\t\t$apellidocli=utf8_decode(trim($row['apellido']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombre']));\n\t\t\t$etiqueta=utf8_decode(trim($row['etiqueta']));\n\t\t\t$cedulacli=utf8_decode(trim($row['cedula']));\n\t\t\t\n\t\t\t$fecha=formatofecha(trim($row[\"fecha_contrato\"]));\n\t\t\t$fecha_nac=formatofecha(trim($row[\"fecha_nac\"]));\n\t\t\t\n\t\t\t\n\t\t\t$nro_contrato=trim($row['nro_contrato']);\n\t\t\t$id_contrato=trim($row['id_contrato']);\n\t\t\n\t\t\n\t\t\t$puntos=utf8_decode(trim($row['puntos']));\n\t\t\t$deuda=utf8_decode(trim($row['deuda']));\n\t\t\tif($deuda==\"\"){\n\t\t\t\t$deuda=0;\n\t\t\t}\n\t\t\t\n\t\t\t$deuda=number_format($deuda, 2, ',', '.');\n\t\t\t$nombre_zona=utf8_decode(trim($row['nombre_zona']));\n\t\t\t$nombre_sector=utf8_decode(trim($row['nombre_sector']));\n\t\t\t$nombre_calle=utf8_decode(trim($row['nombre_calle']));\n\t\t\t$numero_casa=utf8_decode(trim($row['numero_casa']));\n\t\t\t$telefono=utf8_decode(trim($row['telefono']));\n\t\t\t$telf_casa=utf8_decode(trim($row['telf_casa']));\n\t\t\t$telf_adic=utf8_decode(trim($row['telf_adic']));\n\t\t\t$email=utf8_decode(trim($row['email']));\n\t\t\t$direc_adicional=utf8_decode(trim($row['direc_adicional']));\n\t\t\t$id_persona=utf8_decode(trim($row['id_persona']));\n\t\t\t$postel=utf8_decode(trim($row['postel']));\n\t\t\t$taps=utf8_decode(trim($row['taps']));\n\t\t\t$pto=utf8_decode(trim($row['pto']));\n\t\t\t$edificio=utf8_decode(trim($row['edificio']));\n\t\t\t$numero_piso=utf8_decode(trim($row['numero_piso']));\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT nombre,apellido FROM persona where id_persona='$id_persona' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$vendedor=utf8_decode(trim($row['nombre'])).\" \".utf8_decode(trim($row['apellido']));\n\t\t\t\n\t\t}\n\n\t\tif($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}\n\t\t\n\t\t\n\t\t$this->Ln();\t\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetXY(10,35);\t\t\n\t\t$this->Cell(195,10,\"Abonado: $nro_contrato\",\"0\",0,\"R\");\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t$this->SetXY(40,50);\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA JURIDICA.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Razón Social.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Actividad.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Telef.\",\"1\",0,\"J\");\n\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Representante Legal\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cargo en la Empresa.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA NATURAL.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: $nombrecli $apellidocli\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: $fecha_nac\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ingreso Mensual: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Deposito en Garantia: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Tipo Vivienda: Propia ___ Alquilado ___ Canon Mensual: ____\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(65,6,\"Vencimiento del Contrato: / / \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DATOS DEL CONYUGUE.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Ingreso Mensual.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DOMICILIO DEL SERVICIO\",\"1\",0,\"C\");\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Apellidos: $apellidocli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Vendedor: $vendedor\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Suscriptor Nº: $nro_contrato\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha: $fecha\",\"1\",0,\"J\");*/\n\t\t\t\t\n\t\n\t\t/*if($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}*/\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I. $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Ocupación: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Grupo Familiar Nº:\",\"1\",0,\"J\");\n\t\tif($fecha_nac=='11/11/1111'){\n\t\t\t$fecha_nac='';\n\t\t}\n\t\t$this->Cell(65,6,\"Fecha de Nacimiento : $fecha_nac\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"DOMICILIO DE SERVICIO\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb o Sector: $nombre_sector\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Calle n°: \",\"1\",0,\"J\");\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Avenida o Calle: $nombre_calle\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Vereda : \",\"1\",0,\"J\");\t\t\n\t\t\n\t\tif($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Piso:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"N° de Casa o Apto: $numero_casa $apto\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Referencia o Zona: $nombre_zona N°Poste:$postel\",\"1\",0,\"J\");\n\t\t//$this->Cell(65,6,\"N° de Poste: $postel\",\"0\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ruta Cuenta: \",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Zona: $nombre_zona\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Manzana: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb.: $nombre_sector\",\"1\",0,\"J\");*/\n\t\t\n\t\t/*if($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Cell(97,6,\"Apto.: $apto\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cod. Postal: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t//Rect( float x, float y, float w, float h [, string style])\n\t\t$this->Cell(98,6,\"Vivienda Alquilada: SI ____ NO ____\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha de Vencimineto de Alquiler: \",\"1\",0,\"J\");\n\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Proveedor de Internet: \",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\");\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"SERVICIOS \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,6,\"CANT.\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"P. UNITARIO \",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"P. TOTAL \",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Instalación Principal\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"1\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Tomas Adicionales\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Cable Coaxial\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Conectores\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Espliter\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\" \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(60,5,\"TOTAL A PAGAR BS\",\"1\",0,\"R\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"FECHA ESTIMADA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"HORA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"TOTAL A\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"$costo_contrato\",\"LRT\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"DE INSTALACION\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"SUGERIDA\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"PAGAR Bs.\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"\",\"LRB\",0,\"C\");*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PROGRAMACIÓN\",\"1\",0,\"C\");\t\t\t\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Descripción.\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Descripción\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Familiar Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Extendido Bs \",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Adulto Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Comercial I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Monto de Contrato: Bs. $costo_inst\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Firma del Abonado:_________________________ \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Puntos Adicionales:_________________________\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Costo Punto Adicional:_______________________\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Tiempo de Instalación:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Total a Cancelar Mensual:\",\"1\",0,\"J\");\n\t\t$this->Cell(30,6,\"Total:\",\"1\",0,\"J\");\n\t\t$this->Cell(35,6,\"Contrato:\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Observaciones.\",\"1\",0,\"J\");\n\t\t\t\t\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"$observacion\",\"1\",0,\"J\");*/\n\t\t\n\t/*\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"RECIBO DE PAGO\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"*EL PRECIO INCLUYE EL IMPUESTO DE LEY\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Efectivo\",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"Cheque\",\"1\",0,\"C\");\n\t\t$this->Cell(65,6,\"Cargo Cta. Cte.\",\"1\",0,\"C\");\n\t\t$this->Cell(60,6,\"Tarjeta de Credito:\",\"1\",0,\"C\");\n\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Bs. $costo_contrato\",\"1\",0,\"L\");\n\t\t$this->Cell(35,6,\"Nº.\",\"1\",0,\"L\");\n\t\t$this->Cell(65,6,\"Cta. Nº Bco.\",\"1\",0,\"L\");\n\t\t$this->Cell(60,6,\"Nombre:\",\"1\",0,\"L\");\n\t\t\n\t\n\t\t\n\t\t\n\t\t$this->Ln(15);\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Nota:\",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"En caso de que el televisor no acepte la señal de todos los canales del cable, es posible que amerite la instalación de un amplificador de sintonia, el cual deberá ser adquirido por el SUSCRIPTOR\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Atención: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"La Empresa. No autoriza el retiro de televisores y/o VHS por el personal de la empresa. El SUSCRIPTOR conoce y acepta las condiciones del contrato del servicio que apacen al dorso del presente\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Aviso: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"Se le informa a todos los suscriptores y publico en general de acuerdo a la Ley Orgánica de Telecomunicaciones, en el Artículo 189, Literal 2: será penado con prisión de uno (1) a cuatro (4) años, el que utilizando equipos o tecnologías de cualquier tipo, proporciones a un tercero el acceso o disfrute en forma fraudulenta o indebida de un serbicio o facilidad de telecomunicaciones \",\"0\",\"J\");\n\t\t\n\t\t\n\t\t\n\t\t$this->Ln(10);\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,5,\"________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"_________________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"__________________________\",\"0\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Firma del Vendedor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Nombre y Apellido del Suscriptor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Firma del Suscriptor\",\"0\",0,\"C\");*/\n\t\t\n\t\t/*$this->Ln(4);\n\t\t\n\t\t$this->SetDrawColor(76,136,206);\n\t\t$this->SetLineWidth(.4);\n\t\t$this->SetFont('times','I',12);\n\t\t$this->SetX(10);\n\t\t$this->MultiCell(195,5,'Av. Perimetral, Centro Comercial Residencial Central. P.B. Local Nº 07. Cúa, Edo. Miranda.\[email protected] / [email protected]',\"TB\",\"C\");*/\n\t\t\n\t\t//$this->clausulas();\n\t\t\n\t\treturn $cad;\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function cercaP() {\r\n $operatore = $_SESSION[\"op\"];\r\n $ruolo = $operatore->getFunzione();\r\n\r\n $ricerca = array();\r\n $ricerca[\"numeroPratica\"] = isset($_REQUEST[\"numeroPratica\"]) ? $_REQUEST[\"numeroPratica\"] : null;\r\n $ricerca[\"statoPratica\"] = isset($_REQUEST[\"statoPratica\"]) ? $_REQUEST[\"statoPratica\"] : null;\r\n $ricerca[\"tipoPratica\"] = isset($_REQUEST[\"tipoPratica\"]) ? $_REQUEST[\"tipoPratica\"] : null;\r\n $ricerca[\"incaricato\"] = isset($_REQUEST[\"incaricato\"]) ? $_REQUEST[\"incaricato\"] : null;\r\n $ricerca[\"flagAllaFirma\"] = isset($_REQUEST[\"flagAllaFirma\"]) ? $_REQUEST[\"flagAllaFirma\"] : null;\r\n $ricerca[\"flagFirmata\"] = isset($_REQUEST[\"flagFirmata\"]) ? $_REQUEST[\"flagFirmata\"] : null;\r\n $ricerca[\"flagInAttesa\"] = isset($_REQUEST[\"flagInAttesa\"]) ? $_REQUEST[\"flagInAttesa\"] : null;\r\n $ricerca[\"flagSoprintendenza\"] = isset($_REQUEST[\"flagSoprintendenza\"]) ? $_REQUEST[\"flagSoprintendenza\"] : null;\r\n $offset = isset($_REQUEST[\"offset\"]) ? $_REQUEST[\"offset\"] : 0;\r\n $numero = isset($_REQUEST[\"numero\"]) ? $_REQUEST[\"numero\"] : 15;\r\n $richiestaFirmate = isset($_REQUEST[\"richiestaFirmate\"]) ? $_REQUEST[\"richiestaFirmate\"] : 0;\r\n\r\n if ($ruolo < 2) {\r\n $ricerca[\"incaricato\"] = $operatore->getId();\r\n }\r\n\r\n //$numeroPratiche = PraticaFactory::numeroTotalePratiche();\r\n $numeroPratiche= PraticaFactory::elencoNumeroP($ricerca);\r\n \r\n if ($offset >= $numeroPratiche) {\r\n $offset = 0;\r\n }\r\n if ($offset < 1) {\r\n $offset = 0;\r\n }\r\n\r\n if ($richiestaFirmate === 0) {\r\n $href = '<a href=\"index.php?page=operatore&cmd=aggiornaP&numeroP=';\r\n } elseif ($ruolo > 2) {\r\n $href = '<a href=\"index.php?page=responsabile&cmd=firmaP&numeroP=';\r\n }\r\n\r\n $pratiche = PraticaFactory::elencoP($ricerca, $offset, $numero);\r\n \r\n $x = count($pratiche);\r\n $data = \"\";\r\n for ($i = 0; $i < $x; $i++) {\r\n $data.= \"<tr class=\\\"\" . ($i % 2 == 1 ? \"a\" : \"b\") . \"\\\"><td>\" . $href\r\n . $pratiche[$i]->getNumeroPratica() . \"\\\">\" . $pratiche[$i]->getNumeroPratica() . \"</a></td>\"\r\n . \"<td>\" . $pratiche[$i]->getDataCaricamento(true) . \"</td>\"\r\n . \"<td>\" . $pratiche[$i]->getRichiedente() . \"</td>\"\r\n . \"<td>\" . PraticaFactory::tipoPratica($pratiche[$i]->getTipoPratica()) . \"</td>\"\r\n . \"<td>\" . PraticaFactory::statoPratica($pratiche[$i]->getStatoPratica()) . \"</td>\"\r\n . \"<td>\" . OperatoreFactory::getOperatore($pratiche[$i]->getIncaricato())->getNominativo() . \"</td>\"\r\n . \"</tr>\";\r\n }\r\n\r\n header('Cache-Control: no-cache, must-revalidate');\r\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\r\n header('Content-type: application/json');\r\n $json = array();\r\n $json[\"testo\"] = $data;\r\n $json[\"numeroPratiche\"] = $numeroPratiche;\r\n $json[\"numRow\"] = $x;\r\n echo json_encode($json);\r\n }", "public function avisoSubirRecibo()\n {\n if (Auth::user()->paymenttype->tipopago !== 'Domiciliación a mi cuenta') {\n if (!Auth::user()->corrientepago) {\n $fecha = Carbon::now()->format('Y-m-d');\n $codigo = 'WIMPRECI';\n $aviso = 'Por favor, Ud. debe hacernos llegar el recibo o justificante del pago de\n su cuota de socio.';\n $solucion = 'Escanéelo en formato pdf y realice una de las siguientes acciones: a)\n Súbalo a esta aplicación. Si desea optar por esta solución abra el desplegable con su\n nombre en la parte superior de la página y acceda a su perfil donde encontrará la opción\n correspondiente. b) Deposítelo en nuestro buzón. c) Entréguelo personalmente en nuestro\n despacho sito en la planta superior sobre la secretaría del colegio. Le recomendamos que\n domicilie el pago de su cuota, así se evitará recibir este aviso en sucesivas ocasiones.';\n $user_id = Auth::user()->id;\n\n return $this->avisos->crearAviso($codigo, $fecha, $aviso, $solucion, $user_id);\n }\n }\n }", "function getCorrelativoComprobante() {\n\t\tglobal $bd;\n\t\tglobal $x_correlativo_comprobante;\n\t\t/// buscamos el ultimo correlativo\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$correlativo_comprobante = 0; \n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\tif ($x_array_comprobante['idtipo_comprobante'] != \"0\"){ // 0 = ninguno | no imprimir comprobante\n\n\t\n\t\t\t$sql_doc_correlativo=\"select (correlativo + 1) as d1 from tipo_comprobante_serie where idtipo_comprobante_serie = \".$idtipo_comprobante_serie;\t\t\n\t\t\t$correlativo_comprobante = $bd->xDevolverUnDato($sql_doc_correlativo);\n\n\t\t\t// if ($x_array_comprobante['codsunat'] === \"0\") { // si no es factura electronica\n\t\t\t\t// guardamos el correlativo //\n\t\t\t\t$sql_doc_correlativo = \"update tipo_comprobante_serie set correlativo = \".$correlativo_comprobante.\" where idtipo_comprobante_serie = \".$idtipo_comprobante_serie;\n\t\t\t\t$bd->xConsulta_NoReturn($sql_doc_correlativo);\n\t\t\t// } \n\t\t\t// si es factura elctronica guarda despues tigger ce \n\t\t} else {\n\t\t\t$correlativo_comprobante='0';\n\t\t}\n\n\t\t// SI TAMBIEN MODIFICA EN REGISTRO PAGO\n\t\t$x_correlativo_comprobante = $correlativo_comprobante;\n\t\tif ( strrpos($x_from, \"e\") !== false ) { $x_from = str_replace('e','',$x_from); setComprobantePagoARegistroPago(); }\n\n\t\t// print $correlativo_comprobante;\n\t\t$x_respuesta = json_encode(array('correlativo_comprobante' => $correlativo_comprobante));\n\t\tprint $x_respuesta.'|';\n\t}", "function atuOrcreceitaval($codrec,$mes,$valor){\n $msg = \"0|Registro Atualizado !\";\n $clorcreceitaval = new cl_orcreceitaval;\t\t\n $clorcreceita = new cl_orcreceita;\t\t\n if ($mes == 0 || $mes =='0' || $mes === 0){\n // ajusta o saldo previsto\n\t$clorcreceita->o70_valor = $valor;\n\t$clorcreceita->o70_codrec= $codrec;\n\t$clorcreceita->o70_anousu= db_getsession(\"DB_anousu\");\n $rr= $clorcreceita->alterar(db_getsession(\"DB_anousu\"),$codrec);\n\tif ($clorcreceita->erro_status==='0'){\n\t $msg = \"1|\".$clorcreceita->erro_msg;\n\t}else {\n\t $msg = \"0|\".$clorcreceita->erro_msg; \n\t} \n return $msg;\n } \n if ($valor > 0){\n $clorcreceitaval->o71_coddoc = 100; \n }else{\n $clorcreceitaval->o71_coddoc = 101; \n }\n $clorcreceitaval->o71_anousu = db_getsession(\"DB_anousu\"); \n $clorcreceitaval->o71_mes = $mes; \n $clorcreceitaval->o71_codrec = $codrec;\n $clorcreceitaval->o71_valor = $valor; \n\n\n $rr = $clorcreceitaval->sql_record($clorcreceitaval->sql_query_file(db_getsession(\"DB_anousu\"),$codrec,$clorcreceitaval->o71_coddoc,$mes));\n if ($clorcreceitaval->numrows >0){\n $clorcreceitaval->alterar($clorcreceitaval->o71_anousu,$clorcreceitaval->o71_codrec,$clorcreceitaval->o71_coddoc,$clorcreceitaval->o71_mes);\n\n } else { \n $clorcreceitaval->incluir($clorcreceitaval->o71_anousu,$clorcreceitaval->o71_codrec,$clorcreceitaval->o71_coddoc,$clorcreceitaval->o71_mes);\n }\t \n \n $erro = $clorcreceitaval->erro_msg;\n if ($clorcreceitaval->erro_status===0){\n $msg= \"1|\".$erro;\n\treturn $msg;\n } else {\n $msg = \"0|\".$clorcreceitaval->erro_msg;\n return $msg;\n }\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 createIntern(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'receiver.account' => 'required|regex:/^THW[0-9]{6}DZD$/|exists:accounts,number',\n 'amount' => 'required|numeric|min:0',\n 'reason' => 'required|max:255',\n ]);\n $validator->sometimes('justification', 'required', function ($input) {//todo more validation\n return $input->amount > 200000; // Amount \"Depasse\" 200 000\n });\n if ($validator->fails()) {\n return response($validator->errors(), config('code.BAD_REQUEST'));\n }\n\n\n $amount = $request->input('amount');\n $hasEnoughMoney = false;\n /**start transaction**/\n DB::beginTransaction();\n\n try {\n\n $senderAccount = $this->client()->accounts()\n ->courant()->first();//todo check methode first()\n\n //check the amount\n if (!$senderAccount->hasEnoughMoney($amount)) throw new \\Exception;\n $hasEnoughMoney = true;\n\n //create the transfer\n $commission = config('commission.COUR_COUR') * $amount;\n $now = \\Carbon\\Carbon::now();\n $nb = BalanceHistory::count();//todo fix this !all sol tested! re-migrate DB\n //sender history\n BalanceHistory::create([\n 'id' => $nb + 1,\n 'amount' => $amount + $commission,//todo put it negative !!\n 'transaction_type' => 'vir_client',\n 'transaction_direction' => 'out',\n 'account_id' => $senderAccount->number,\n 'created_at' => $now->format('Y-m-d H:i:s'),\n 'updated_at' => $now->format('Y-m-d H:i:s')\n ]);\n if ($amount > 200000) {\n $transferDate = null;\n $creationDate = $now->format('Y-m-d H:i:s');\n $status = 'traitement';\n } else {\n //receiver history\n BalanceHistory::create([\n 'id' => $nb + 2,\n 'amount' => $amount,\n 'transaction_type' => 'vir_client',\n 'transaction_direction' => 'in',\n 'account_id' => $request->input('receiver.account'),\n 'created_at' => $now->format('Y-m-d H:i:s'),\n 'updated_at' => $now->format('Y-m-d H:i:s')\n ]);\n //change the amount of the destination client just in case of < 200 000 else till validation\n $receiverAccount = Account::find($request->input('receiver.account'));\n $receiverAccount->balance = $receiverAccount->balance + $amount;\n $receiverAccount->save();\n\n $status = 'valide';\n $transferDate = $creationDate = $now->format('Y-m-d H:i:s');\n }\n\n InternTransfer::create([\n 'code' => $senderAccount->number . $request->input('receiver.account') . $now->format('YmdHi'),\n 'amount' => $amount,\n 'justification' => $request->input('justification'),\n 'reason' => $request->input('reason'),\n 'transferDate' => $transferDate,\n 'creationDate' => $creationDate,\n 'status' => $status,\n 'transfers_type' => 'vir_client',\n 'commission' => $commission,\n 'source_id' => $senderAccount->number,\n 'destination_id' => $request->input('receiver.account'),\n ]);\n\n //todo send commission to Tharwa account\n //we retrieve the amount from the sender account\n $senderAccount->balance = $senderAccount->balance - $commission - $amount;\n $senderAccount->save();\n\n\n// Mail::to($request->input('email'))\n// ->queue(new ClientRequestValidatedMail($acceptedClient->firstname.' '.$acceptedClient->lastname\n// , $request->input('code')));\n\n // all good\n /**commit - no problems **/\n DB::commit();\n return response([\"saved\" => true], config('code.CREATED'));\n\n } catch (\\Exception $e) {\n\n // something went wrong\n /**rollback every thing - problems **/\n DB::rollback();\n\n if (!$hasEnoughMoney)\n return response([\"amount\" => false], config('code.NOT_FOUND'));\n\n return response([\"saved\" => false], config('code.UNKNOWN_ERROR'));\n }\n\n }", "function ResumenEstadoCC(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_RESESTCC_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n\n $this->setCount(false);\n\n\n $this->setParametro('id_agencia','id_agencia','int4');\n\n\n\n //Definicion de la lista del resultado del query\n $this->captura('id_agencia','int4');\n $this->captura('tipo','varchar');\n $this->captura('moneda','varchar');\n $this->captura('monto','numeric');\n $this->captura('monto_mb','numeric');\n\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n\n\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function envoiCourrielRappel() {\n\t\t\n\t\t$this->log->debug(\"Usager::envoiCourrielRappel() Début\");\n\t\t\n\t\t$succes = 0;\n\t\t\n\t\t// Préparer le code de rappel pour l'utilisateur\n\t\t$this->set(\"code_rappel\", Securite::genererChaineAleatoire(16));\n\t\t$this->enregistrer();\n\t\t\n\t\t// Préparer le courriel\n\t\t$gabaritCourriel = REPERTOIRE_GABARITS_COURRIELS . \"identification-rappel.php\";\n\t\t\n\t\t// Vérifier si le fichier existe, sinon erreur\n\t\tif (!file_exists($gabaritCourriel)) {\n\t\t\t$this->log->erreur(\"Le gabarit du courriel '$gabaritCourriel' ne peut être localisé.\");\n\t\t}\n\t\t\n\t\t// Obtenir le contenu\n\t\t$contenu = Fichiers::getContenuElement($gabaritCourriel , $this);\n\t\t\n\t\t// Envoi du courriel\n\t\t$courriel = new Courriel($this->log);\n\t\t$succes = $courriel->envoiCourriel($this->get(\"courriel\"), TXT_COURRIEL_RAPPEL_OBJET, $contenu);\n\t\t\t\t \n\t\t$this->log->debug(\"Usager::envoiCourrielRappel() Début\");\n\t\t\n\t\treturn $succes;\n\t}", "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 proses(){\n\t\t$this->db->trans_start();\t\n\t\t$id_courier = $this->input->post('id_courier',true);\t\n\t\t$post['name']= $this->input->post('name',true);\t\n\t\t$post['tracking_url']= $this->input->post('url',true);\n\t\t$post['delay']= $this->input->post('delay',true);\n\t\t$post['is_free']= (empty($this->input->post('isfree',true))) ? 0 : 1;\t\n\t\t$post['fixed_cost']= (empty($this->input->post('fixed',true))) ? 0 : 1;\n\t\t$post['active']= (empty($this->input->post('active',true))) ? 0 : 1;\n\t\t$post['display']= (empty($this->input->post('display',true))) ? 0 : 1;\n\t\t$post['date_update']=$this->datenow;\n\t\t$post['update_by']=$this->addby;\n\t\t$default = (empty($this->input->post('default',true))) ? 0 : 1;\n\t\t$post['default_courier'] = $default;\t\t\n\t\t$payment = $this->input->post('payment',true);\n\t\tforeach ($payment as $id){\n\t\t\t$batch[] = array_merge(array('id_courier'=>$id_courier),array('id_payment_type'=>$id));\n\t\t}\n\t\t$filename = $_FILES['logo']['name'];\n\t\tif ($filename != '')\n\t\t{\n\t\t\t//proses upload gambar\n\t\t\t$setting['upload_path'] = './assets/images/courier/';\n\t\t\t$setting['file_name'] = $filename;\n\t\t\t$setting['var_name'] = 'logo';\n\t\t\t$this->m_admin->upload_image($setting);\n\t\t\t$post['image'] = $filename;\n\t\t}\n\t\tif ($default == 1){\n\t\t\t$res = $this->m_admin->editdata($this->table,array('default_courier'=>0));\t\t\t\n\t\t}\n\t\tif (!empty($id_courier)){\t\t\t\n\t\t\t$res = $this->m_admin->editdata($this->table,$post,array('id_courier'=>$id_courier));\n\t\t\t$res = $this->m_admin->deletedata('tb_courier_payment',array('id_courier'=>$id_courier));\n\t\t\t$alert = 'Edit data '.__CLASS__.' successfull';\n\t\t}else{\n\t\t\t//addnew\t\t\t\t\n\t\t\t$post['date_add']=$this->datenow;\n\t\t\t$post['add_by']=$this->addby;\n\t\t\t$res = $this->m_admin->insertdata($this->table,$post);\n\t\t\t$alert = 'Add new data '.__CLASS__.' successfull';\t\n\t\t\t\t\t\t\n\t\t}\n\t\t//insert new payment type\n\t\tif (!empty($payment)){\n\t\t\t$res = $this->db->insert_batch('tb_courier_payment',$batch);\n\t\t}\n\t\tif ($this->db->trans_status() === FALSE){\n\t\t\t$this->db->trans_rollback();\n\t\t}else{\n\t\t\tif ($res > 0){\n\t\t\t\t$this->db->trans_complete();\n\t\t\t\t$this->session->set_flashdata('success',$alert);\n\t\t\t\techo json_encode(array('csrf_token'=>csrf_token()['hash'],'error'=>0,'msg'=>$alert,'type'=>'save','redirect'=>base_url($this->session->userdata('links'))));\n\t\t\t}\n\t\t}\t\t\n\t}", "function finalizarRegistro(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_FINREGC_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function createTrancheOld()\n {\n $uniqueId = str_replace(\".\",\"\",microtime(true)).rand(000,999);\n\n if($this->type == 1){\n\n TranchesPoidsPc::create([\n 'nom' => $this->minPoids.\" - \".$this->maxPoids,\n 'min_poids' => $this->minPoids,\n 'max_poids' => $this->maxPoids,\n 'uid' => \"PP\".$uniqueId,\n ]);\n\n\n\n }else{\n TranchesKgPc::create([\n 'nom' => $this->nom,\n 'uid' => \"KP\".$uniqueId,\n ]);\n\n }\n session()->flash('message', 'Tranche \"'.$this->nom. '\" a été crée ');\n\n\n\n $this->reset(['nom','minPoids','maxPoids']);\n\n $this->emit('saved');\n }", "public function cercaPrenotazioni() {\r\n $fPrenotazioni = USingleton::getInstance('FPrenotazione');\r\n return $fPrenotazioni->cercaPrenotazioniClinica($this->_partitaIVA);\r\n }", "public function encaisser_facture_stylimmo($facture_id, Request $request )\n {\n\n\n\n $facture = Facture::where('id', $facture_id)->first();\n \n if($facture->encaissee == true) return \"Déjà encaissée\";\n \n $facture->encaissee = true;\n $facture->date_encaissement = $request->date_encaissement;\n \n \n // Si c'est une facture pub, on marque le mandataire a reglé sa facture\n if($facture->type == \"pack_pub\"){\n \n $facture->reglee = true;\n $facture->date_reglement = $request->date_encaissement;\n \n $mandataire = $facture->user;\n // On met à jour le nombre de factures pub non encaissée du mandataire\n $mandataire->nb_facture_pub_retard = Facture::where([['user_id', $facture->user_id], ['type', 'pack_pub'], ['encaissee', false]])->count() - 1;\n $mandataire->update();\n }\n \n \n $facture->update();\n\n\n if($facture->type != \"stylimmo\"){\n \n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a encaissé la facture $facture->type $facture->numero\";\n $user_id = Auth::user()->id;\n \n \n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n return $facture->numero;\n }\n \n \n \n if($facture->compromis != null){\n Mail::to($facture->compromis->user->email)->send(new EncaissementFacture($facture));\n }\n // Mail::to(\"[email protected]\")->send(new EncaissementFacture($facture));\n\n\n\n\n // ##### CALCUL ET DROIT DE PARRAINAGE \n\n // On determine le compromis lié au compromis\n\n $compromis = $facture->compromis;\n\n\n if($compromis != null)\n {\n \n \n \n // ########## On calucul la note d'hono du Porteur et du partage ##################################################################\n \n if($compromis->agent_id == null){\n \n $compromis->user->sauvegarder_chiffre_affaire_styl(date('Y') . '-01-01', date('Y-m-d'));\n $this->preparer_facture_honoraire_encaissement($compromis->id, true );\n \n }else{\n \n \n $compromis->user->sauvegarder_chiffre_affaire_styl(date('Y') . '-01-01', date('Y-m-d'));\n $compromis->getPartage()->sauvegarder_chiffre_affaire_styl(date('Y') . '-01-01', date('Y-m-d'));\n\n // facture du porteur de l'affaire\n $this->preparer_facture_honoraire_encaissement($compromis->id, true );\n // facture du partage de l'affaire\n $this->preparer_facture_honoraire_encaissement($compromis->id, false );\n \n }\n \n // #############################\n \n \n \n \n \n \n // ######## si l'affaire est partagée, on va vérifier si les mandataires ont un parrain Puis caluler leur commission\n \n $filleul1 = Filleul::where([['user_id',$compromis->user_id],['expire',0]])->first();\n\n $filleul2 = $compromis->agent_id != null ? Filleul::where([['user_id',$compromis->agent_id],['expire',0]])->first() : null;\n \n\n $date_encaissement = $facture->date_encaissement->format('Y-m-d');\n\n // date_12 est la date exacte 1 ans avant la date d'encaissment\n $date_12 = strtotime( $date_encaissement. \" -1 year\"); \n $date_12 = date('Y-m-d',$date_12);\n\n $deb_annee = date(\"Y\").\"-01-01\";\n\n $retour = \"\";\n // Si le porteur de l'affaire à un parrain\n if($filleul1 != null ){\n\n $mandataire1 = $filleul1->user ;\n $parrain1 = User::where('id',$filleul1->parrain_id)->first();\n\n $ca_parrain1 = Compromis::getCAStylimmo($parrain1->id,$date_12 ,$date_encaissement);\n $ca_filleul1 = Compromis::getCAStylimmo($mandataire1->id,$date_12 ,$date_encaissement);\n\n // on calcul le chiffre affaire de parrainage du parrain \n\n\n $comm_parrain1 = unserialize($mandataire1->contrat->comm_parrain);\n\n \n // 1 on determine l'ancieneté du filleul1\n \n $dt_ent = $mandataire1->contrat->date_entree->format('Y-m-d') >= \"2019-01-01\" ? $mandataire1->contrat->date_entree : \"2019-01-01\";\n $date_entree = strtotime($dt_ent); \n\n $today = strtotime (date('Y-m-d'));\n $anciennete_porteur = $today - $date_entree;\n\n if($anciennete_porteur <= 365*86400){\n $seuil_porteur = $comm_parrain1[\"seuil_fill_1\"];\n $seuil_parrain = $comm_parrain1[\"seuil_parr_1\"];\n }\n //si ancienneté est compris entre 1 et 2ans\n elseif($anciennete_porteur > 365*86400 && $anciennete_porteur <= 365*86400*2){\n $seuil_porteur = $comm_parrain1[\"seuil_fill_2\"];\n $seuil_parrain = $comm_parrain1[\"seuil_parr_2\"];\n }\n // ancienneté sup à 2 ans\n else{\n $seuil_porteur = $comm_parrain1[\"seuil_fill_3\"];\n $seuil_parrain = $comm_parrain1[\"seuil_parr_3\"];\n }\n \n \n \n $date_fin = $compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d');\n \n // Vérifier le CA du parrain et du filleul sur les 12 derniers mois précédents la date d'encaissement de la facture STYL et qui respectent les critères et vérifier s'il sont à jour dans le reglèmement de leur factures stylimmo \n // Dans cette partie on détermine le jour exaxt de il y'a 12 mois avant la date d'encaissement de la facture STYL\n \n \n \n // date_fin est la date exacte 1 ans avant la date d'encaissement de la facture STYL\n $date_deb = strtotime( $date_fin. \" -1 year\"); \n $date_deb = date('Y-m-d',$date_deb);\n \n \n \n // calcul du de la comm recu par le parrain de date_deb à date_fin \n \n \n $facts_parrain = Facture::where([['user_id',$parrain1->id],['filleul_id',$filleul1->user->id], ['compromis_id','<>', $compromis->id ]])->whereIn('type',['parrainage','parrainage_partage'])->get();\n $ca_parrain_parrainage = 0;\n \n // dd($date_deb);\n foreach ($facts_parrain as $fact) {\n \n // echo $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d').\"<br>\";\n if($date_fin >= $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') && $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') >= $date_deb ){\n $ca_parrain_parrainage+= $fact->montant_ht;\n }\n }\n \n \n \n \n // On vérifie que le parrain n'a pas démissionné à la date d'encaissement \n $a_demission_parrain = false;\n\n if($parrain1->contrat->a_demission == true ){\n if($parrain1->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_parrain = true;\n }\n }\n\n // On vérifie que le filleul n'a pas démissionné à la date d'encaissement \n $a_demission_filleul = false;\n\n if($mandataire1->contrat->a_demission == true ){\n if($mandataire1->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_filleul = true;\n }\n }\n \n $touch_comm = \"non\";\n // dd(\"$parrain1->id -- \".$filleul1->user->id.\" -- $ca_parrain_parrainage < \".$mandataire1->contrat->seuil_comm );\n // dd(\"$ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false\");\n // On n'a les seuils et les ca on peut maintenant faire les comparaisons ## // on rajoutera les conditions de pack pub \n if($ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false ){\n $compromis->id_valide_parrain_porteur = $parrain1->id;\n $compromis->update();\n $touch_comm = \"oui\";\n }else{\n $compromis->id_valide_parrain_porteur = null;\n $compromis->update();\n }\n\n\n // SI TOUCHE_COMM == OUI ON CALCUL LA COMMISSION DU PARRAIN DU PORTEUR\n // dd(\"$ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false \");\n if($touch_comm == \"oui\"){\n // dd($a_demission_parrain);\n // dd(\"$ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false \");\n $this->store_facture_honoraire_parrainage( $compromis, $filleul1);\n }\n \n // dd(\"ici\");\n \n // ####################################################################\n \n $retour .= \"parrain : \".$parrain1->nom.' '.$parrain1->prenom.\" ca parrain: \".$ca_parrain1.\" \\n filleul porteur: \".$mandataire1->nom.' '.$mandataire1->prenom.\" ca filleul porteur: \".$ca_filleul1.\" \\n parrain touche comm ? : \".$touch_comm;\n \n }\n\n \n\n // Si le partage a un parrain\n if($filleul2!= null){\n\n $mandataire2 = $filleul2->user ;\n $parrain2 = User::where('id',$filleul2->parrain_id)->first();\n\n // Chiffre d'affaire du filleul et son parrain sur 1 ans avant la date d'encaissement, \n $ca_parrain2 = Compromis::getCAStylimmo($parrain2->id,$date_12 ,$date_encaissement);\n $ca_filleul2 = Compromis::getCAStylimmo($mandataire2->id,$date_12 ,$date_encaissement);\n\n $comm_parrain2 = unserialize($mandataire2->contrat->comm_parrain);\n\n \n // 1 on determine l'ancieneté du filleul1\n \n $dt_ent = $mandataire2->contrat->date_entree->format('Y-m-d') >= \"2019-01-01\" ? $mandataire2->contrat->date_entree : \"2019-01-01\";\n $date_entree = strtotime($dt_ent); \n $today = strtotime (date('Y-m-d'));\n $anciennete_partage = $today - $date_entree;\n\n if($anciennete_partage <= 365*86400){\n $seuil_partage = $comm_parrain2[\"seuil_fill_1\"];\n $seuil_parrain = $comm_parrain2[\"seuil_parr_1\"];\n }\n //si ancienneté est compris entre 1 et 2ans\n elseif($anciennete_partage > 365*86400 && $anciennete_partage <= 365*86400*2){\n $seuil_partage = $comm_parrain2[\"seuil_fill_2\"];\n $seuil_parrain = $comm_parrain2[\"seuil_parr_2\"];\n }\n // ancienneté sup à 2 ans\n else{\n $seuil_partage = $comm_parrain2[\"seuil_fill_3\"];\n $seuil_parrain = $comm_parrain2[\"seuil_parr_3\"];\n }\n \n\n \n $date_fin = $compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d');\n \n // Vérifier le CA du parrain et du filleul sur les 12 derniers mois précédents la date d'encaissement de la facture STYL et qui respectent les critères et vérifier s'il sont à jour dans le reglèmement de leur factures stylimmo \n // Dans cette partie on détermine le jour exaxt de il y'a 12 mois avant la date d'encaissement de la facture STYL\n \n \n // date_fin est la date exacte 1 ans avant la date d'encaissement de la facture STYL\n $date_deb = strtotime( $date_fin. \" -1 year\"); \n $date_deb = date('Y-m-d',$date_deb);\n \n \n \n \n \n // calcul du de la comm recu par le parrain de date_deb à date_fin \n $facts_parrain = Facture::where([['user_id',$parrain1->id],['filleul_id',$filleul1->user->id], ['compromis_id','<>', $compromis->id ]])->whereIn('type',['parrainage','parrainage_partage'])->get();\n $ca_parrain_parrainage = 0;\n \n // dd($date_deb);\n foreach ($facts_parrain as $fact) {\n \n // echo $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d').\"<br>\";\n if($date_fin >= $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') && $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') >= $date_deb ){\n $ca_parrain_parrainage+= $fact->montant_ht;\n }\n }\n\n\n\n\n // On vérifie que le parrain n'a pas démissionné à la date d'encaissement \n $a_demission_parrain = false;\n\n if($parrain2->contrat->a_demission == true ){\n if($parrain2->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_parrain = true;\n }\n }\n\n // On vérifie que le filleul n'a pas démissionné à la date d'encaissement \n $a_demission_filleul = false;\n\n if($mandataire2->contrat->a_demission == true ){\n if($mandataire2->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_filleul = true;\n }\n }\n\n\n\n $touch_comm = \"non\";\n // On n'a les seuils et les ca on peut maintenant faire les comparaisons ## // on rajoutera les conditions de pack pub \n if($ca_filleul2 >= $seuil_partage && $ca_parrain2 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire2->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false ){\n $touch_comm = \"oui\";\n \n $compromis->id_valide_parrain_partage = $parrain2->id;\n $compromis->update();\n }else{\n $compromis->id_valide_parrain_partage = null;\n $compromis->update();\n }\n \n \n // SI TOUCHE_COMM == OUI ON CALCUL LA COMMISSION DU PARRAI DU PARTAGE \n \n \n if($touch_comm == \"oui\"){\n \n $this->store_facture_honoraire_parrainage($compromis, $filleul2);\n }\n \n \n // ####################################################################\n $retour .= \"parrain : \".$parrain2->nom.' '.$parrain2->prenom.\" ca parrain: \".$ca_parrain2.\" \\n filleul porteur: \".$mandataire2->nom.' '.$mandataire2->prenom.\" ca filleul porteur: \".$ca_filleul2.\" \\n parrain touche comm ? : \".$touch_comm;\n\n\n }\n\n }\n \n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a encaissé la facture stylimmo $facture->numero\";\n $user_id = Auth::user()->id;\n \n \n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n \n return $facture->numero;\n\n\n\n \n }", "function modificarProcesoCompra(){\n\t\t$this->procedimiento='adq.f_proceso_compra_ime';\n\t\t$this->transaccion='ADQ_PROC_MOD';\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('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('id_depto','id_depto','int4');\n\t\t$this->setParametro('num_convocatoria','num_convocatoria','varchar');\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_ini_proc','fecha_ini_proc','date');\n\t\t$this->setParametro('obs_proceso','obs_proceso','varchar');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('num_tramite','num_tramite','varchar');\n\t\t$this->setParametro('codigo_proceso','codigo_proceso','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('num_cotizacion','num_cotizacion','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}", "function head() {\n global $_lib;\n\n $query = \"select max(RemittanceDaySequence) from invoicein where RemittanceSendtDateTime='\" . $_lib['sess']->get_session('Date') . \"' and Active=1\";\n #print \"Finn h¿yeste dag sekvens: $query\";\n $daysequence = $_lib['storage']->get_row(array('query' => $query));\n\n $query = \"select max(RemittanceSequence) from invoicein where Active=1\";\n #print \"Finn h¿yeste sekvens: $query\";\n $sequence = $_lib['storage']->get_row(array('query' => $query));\n \n #print \"<h2>Her kommer remitteringsfila p&aring; TelePay 2.0.1 formatet</h2>\";\n $transaction = new stdClass();\n $this->transaction->RemittanceSequence = $daysequence->RemittanceSequence + 1; #MŒ kalkuleres og settes\n $this->transaction->RemittanceDaySequence = $daysequence->RemittanceDaySequence; #MŒ kalkuleres og settes\n\n #$this->transaction->BatchID = 99; #MŒ kalkuleres og settes\n $this->transaction->Date = $_lib['sess']->get_session('Date');\n $this->transaction->Datetime = $_lib['sess']->get_session('Datetime');\n $this->transaction->VersionSoftware = '00001.00 LODO';\n \n $old_pattern = array(\"/[^0-9]/\");\n $new_pattern = array(\"\");\n $this->transaction->CustomerOrgNumber = strtolower(preg_replace($old_pattern, $new_pattern , $_lib['sess']->get_companydef('OrgNumber'))); \n $this->transaction->CustomerName = $_lib['sess']->get_companydef('CompanyName');\n $this->transaction->Database = $_SETUP['DB_NAME']['0'];\n \n $this->transaction->NumTransactions = 0;\n $this->transaction->TotalAmount = 0;\n $this->transaction->NumRecords = 0; \n\n if(!$InvoiceO->CustomerBankAccount) { #Sjekke lengde og modulus pŒ kontonummer ogsŒ\n $_lib['message']->Add(\"Betalerkonto mangler\");\n return;\n }\n if(!$this->transaction->CustomerOrgNumber) {\n $_lib['message']->Add(\"Orgnummer/personnummer mangler p&aring; betaler\");\n return;\n }\n }", "public function start_tran();", "function RegistrarNotasAnticipo($tipoCambioFac = 0,$montoAnticipo=0,$tagref, $monedaFactura, $fechaemision, $DebtorNo, $DebtorTransIDFactura, $tieneIVA,$idAnticipo,$ivaFactura, $db, $puntoVenta = 0, $nocuentaPuntoVenta = '', $nomClientePuntoVenta = ''){\n // *********************************************** //\n // ********************************************** //\n // ******** No dejar echo en la funcion *********//\n // ******** Declarar Variables a usar ******** //\n // ******** Afecta al punto de venta ********* //\n // ****************************************** //\n // ***************************************** //\n \n //global $db;\n $systype_doc = 13;\n /*$tipocambio = $_SESSION['Items' . $identifier]->CurrencyRate;\n $montoAnticipo = $LineAnticipo->Monto;\n $moneda = $_SESSION['Items' . $identifier]->CurrAbrev;\n $fecha = split(\"-\", $fechaemision) ;\n $DebtorNo = $_SESSION['Items' . $identifier]->DebtorNo;\n $tagref = $_SESSION['Items' . $identifier]->Tagref;\n $tieneIVA = $tieneIVA;\n $idAnticipo = $LineAnticipo->TransID;*/\n\n //echo \"<br> AnticipoIVA: \".$tieneIVA;\n $tipocambio = $tipoCambioFac;\n $montoAnticipo = $montoAnticipo;\n $monto = $montoAnticipo;\n $moneda = $monedaFactura;\n $fecha = explode(\"-\", $fechaemision) ;\n $DebtorNo = $DebtorNo;\n $tagref = $tagref;\n $tieneIVA = $tieneIVA;\n $idAnticipo = $idAnticipo;\n $ErrMsg = '';\n $DbgMsg = '';\n\n $InputError = 0;\n\n $FromDia = $fecha [2];\n $FromMes = $fecha [1];\n $FromYear = $fecha [0];\n $_POST['aplparcial'] = 2; // PARA TIMBRAR\n $_POST['cmbUsoCfdi'] = 'G02'; \n $_POST['cmbTipoComprobante'] = 'E';\n $_POST['cmbMetodoPago'] = 'PUE';\n $_POST['cmbTipoRelacion'] = '07';\n $_POST['paymentname'] = 'Aplicacion de anticipos';\n $vrcodepay = utf8_decode('Aplicacion de anticipos');\n $concepto = utf8_decode('Aplicacion de anticipos'); \n $vrcodeasat = '30';\n //$idSaldoAnticipo = $LineAnticipo->TransID;\n $DebtorTransID = $DebtorTransIDFactura ;\n\n $SQLDatosFactura= \"SELECT debtortrans.*, name FROM debtortrans\n INNER JOIN debtorsmaster ON debtortrans.debtorno = debtorsmaster.debtorno\n WHERE id =\" .$DebtorTransIDFactura;\n $resultFactura = DB_query($SQLDatosFactura, $db);\n $myrowFactura = DB_fetch_array($resultFactura);\n $TotalFactura = $myrowFactura['ovamount'] + $myrowFactura['ovgst'];\n $typeFactura = $myrowFactura['type'];\n $nombrecliente= $myrowFactura['name'];\n \n\n //echo \"<br> Tipo cambio BIEN\".$tipoCambioFacBIEN;\n\n $_POST ['TaxCat'] = 2;\n if($tieneIVA == '1'){\n $_POST ['TaxCat'] = 4;\n }\n\n $nocuenta = '';\n if ($puntoVenta == 1) {\n $nocuenta = $nocuentaPuntoVenta;\n } else {\n if (isset($_POST ['nocuenta'])) {\n $nocuenta = $_POST ['nocuenta'];\n }\n }\n\n $nomCliente = '';\n if ($puntoVenta == 1) {\n $nomCliente = $nomClientePuntoVenta;\n } else {\n if (isset($nombrecliente)) {\n $nomCliente = $nombrecliente;\n }\n }\n\n $_POST ['nocuenta'] = $nocuenta;\n\n $nombrecliente = $nomCliente;\n\n $SQLSaldoANT = \"SELECT debtortrans.*, bien.rate as cambiobien FROM debtortrans \n INNER JOIN debtortrans bien ON bien.id = debtortrans.ref1\n WHERE debtortrans.id ='\".$idAnticipo.\"'\"; \n\n //echo \"<br> saldo\".$SQLSaldoANT;\n $resultSaldoANT = DB_query($SQLSaldoANT, $db);\n $rowSaldoANT = DB_fetch_array($resultSaldoANT);\n $monedaSaldoANT = $rowSaldoANT['currcode'];\n $rateSaldoANT = $rowSaldoANT['rate'];\n $ivaSaldoANT = $rowSaldoANT['ovgst'];\n $tipoCambioFacBIEN= $rowSaldoANT['cambiobien'];\n \n\n //echo \"<br> Pruebas: \".$rowSaldoANT;\n //echo \"<br> saldo ANt: \".$rateSaldoANT;\n if ($InputError != 1) {\n $Result = DB_Txn_Begin($db);\n \n // Obtiene el trans no que le corsesponde en base al tagref y al $systype_doc\n $transno = GetNextTransNo($systype_doc, $db);\n \n $taxrate = 0;\n $montoiva = 0;\n $rate = ( $tipocambio);\n $DefaultDispatchDate = $FromDia . '/' . $FromMes . '/' . $FromYear;\n $fechaini = rtrim($FromYear) . '-' . rtrim($FromMes) . '-' . rtrim($FromDia);\n $diae = rtrim($FromDia);\n $mese = rtrim($FromMes);\n $anioe = rtrim($FromYear);\n $horax = date('H:i:s');\n $horax = strtotime($horax);\n $hora = date('H');\n $minuto = date('i');\n $segundo = date('s');\n $fechainic = mktime($hora, $minuto, $segundo, rtrim($mese), rtrim($diae), rtrim($anioe));\n $fechaemision = date(\"Y-m-d H:i:s\", $fechainic);\n $PeriodNo = GetPeriod($DefaultDispatchDate, $db, $tagref);\n $DefaultDispatchDate = FormatDateForSQL($DefaultDispatchDate);\n \n if (isset($_POST ['TaxCat']) and $_POST ['TaxCat'] != \"\") {\n $sqliva = \"SELECT taxrate,taxglcode,taxglcodepaid\n FROM taxauthrates, taxauthorities\n WHERE taxauthrates.taxauthority=taxauthorities.taxid\n AND taxauthrates.taxcatid =\" . $_POST ['TaxCat'];\n\n //echo \"<br> SQL IVA\".$sqliva;\n\n $result = DB_query($sqliva, $db);\n $myrow = DB_fetch_row($result);\n $taxrate = $myrow [0];\n $taxglcode = $myrow [1];\n $taxglcodepaid = $myrow [2];\n }\n\n // calcula iva y desglosa de iva\n // $montosiniva = $monto / (1 + $taxrate);\n // $montoiva = $monto - $montosiniva;\n\n $mntIVA = 0;\n if (isset($_POST['mntIVA'])) {\n $mntIVA = $_POST['mntIVA'];\n }\n\n // calcula iva y desglosa de iva\n if (($mntIVA == 0 || empty($mntIVA))) {\n //Iva del categoria impuestos\n $montosiniva = $monto / (1 + $taxrate);\n $montoiva = $monto - $montosiniva;\n }else{\n //Iva agregado manual\n $_SESSION['IvaManualAbonoDirectoClientes'] = 1;\n //\n $montosiniva = $monto - $mntIVA;\n //$montosiniva = $monto;\n $montoiva = $mntIVA;\n } \n // se valida ya que debe de acuerdo al iva de l factura\n //echo \"<br> ivaFactura2: \".$ivaFactura;\n if( (Round($TotalFactura,2) - Round($monto,2) < -.01) AND $tieneIVA ==1 AND $ivaFactura == 0){\n $monto = $montosiniva;\n $montoiva = $montosiniva - ($montosiniva/1.16);\n $montosiniva = ($montosiniva/1.16);\n $montoAnticipo = $monto;\n }\n \n // Datos del Periodo y fecha ***\n // $DefaultDispatchDate=Date($_SESSION['DefaultDateFormat'],CalcEarliestDispatchDate());\n // $PeriodNo = GetPeriod($DefaultDispatchDate, $db);\n \n // $DefaultDispatchDate = FormatDateForSQL($DefaultDispatchDate);\n // *****************************\n if ($_SESSION['MostrarCuentaNC']=='1') {\n $SQL=\"SELECT accountcode,\n concept AS accountname\n FROM chartbridge\n WHERE accountcode='\".$_POST['GLCode'].\"'\n ORDER BY accountcode\";\n $ResultR=DB_query($SQL, $db);\n $rowR=DB_fetch_array($ResultR);\n $concepto.=' '.$rowR['accountname'];\n }\n // Realiza el insert en la tabla de debtortrans\n $SQL = \"INSERT INTO debtortrans (`tagref`,\n `transno`,`type`,\n `debtorno`,`branchcode`,\n `origtrandate`,`trandate`,`prd`,\n `settled`,`reference`,`tpe`,`order_`,\n `rate`,`ovamount`,`ovgst`,`ovfreight`,\n `ovdiscount`,`diffonexch`,`alloc`,`invtext`,\n `shipvia`,`edisent`,`consignment`,`folio`,`ref1`,`ref2`,`currcode`,paymentname,nocuenta,userid)\";\n $SQL .= \" VALUES (\" . $tagref . \",\n \" . $transno . \",\" . $systype_doc . \",\n '\" . $DebtorNo . \"', '\" . $DebtorNo . \"','\" . $fechaemision . \"','\" . $fechaini . \"',\" . $PeriodNo . \",'0','\" . $concepto . \"', '','0','\" . $rate . \"',\" . ($montosiniva * - 1) . \",\" . ($montoiva * - 1) . \",'0','0','0','0','','1','0','', 'FANT','NCR','NCR','\" . $moneda . \"','\" . $_POST ['paymentname'] . \"','\" . $_POST ['nocuenta'] . \"','\".$_SESSION['UserID'].\"')\";\n // echo '<pre>sql NC:'.$SQL;\n $result = DB_query($SQL, $db);\n \n $DebtorTransIDND = DB_Last_Insert_ID($db, 'debtortrans', 'id');\n\n // ***************************************************************************************************\n // **** CFDI Relacionados ****\n // ***************************************************************************************************\n // \n //******************GENERAR NOTA DE CARGO Y SE HACE LA APLICACION YA QUE ES SIN CONTABILIDAD****************** \n $systype_docN = 21;\n $transnoN = GetNextTransNo($systype_docN, $db); \n $SQLN = \"INSERT INTO debtortrans (`tagref`,\n `transno`,`type`,\n `debtorno`,`branchcode`,\n `origtrandate`,`trandate`,`prd`,\n `settled`,`reference`,`tpe`,`order_`,\n `rate`,`ovamount`,`ovgst`,`ovfreight`,\n `ovdiscount`,`diffonexch`,`alloc`,`invtext`,\n `shipvia`,`edisent`,`consignment`,`folio`,`ref1`,`ref2`,`currcode`,paymentname,nocuenta,userid)\";\n $SQLN .= \" VALUES (\" . $tagref . \",\n \" . $transnoN . \",\" . $systype_docN . \",\n '\" . $DebtorNo . \"', '\" . $DebtorNo . \"','\" . $fechaemision . \"','\" . $fechaini . \"',\" . $PeriodNo . \",'0','\" . $concepto . \"', '','0','\" . $rateSaldoANT . \"',\" . ($montosiniva) . \",\" . ($montoiva) . \",'0','0','0','0','','1','0','', 'FANT','NCR','NCR','\" . $moneda . \"','\" . $_POST['paymentname'] . \"','\" . $_POST ['nocuenta'] . \"','\".$_SESSION['UserID'].\"')\";\n //echo '<pre>sql NC:'.$SQLN;\n $result = DB_query($SQLN, $db);\n $DebtorTransIDCargo = DB_Last_Insert_ID($db, 'debtortrans', 'id');\n\n $ISQL = \"INSERT INTO custallocns (datealloc,transid_allocfrom,amt,transid_allocto, rate_to,currcode_to, rate_from, currcode_from)\n VALUES ( NOW(),\" . $idAnticipo . ',' . abs($montoAnticipo) . ',' . $DebtorTransIDCargo . ',\"'.$tipocambio.'\", \"'.$moneda.'\", \"'.$rate.'\", \"'.$moneda.'\" )';\n $Result = DB_query($ISQL, $db, $ErrMsg, $DbgMsg, true);\n\n $ISQL = \"UPDATE debtortrans SET alloc = alloc + \".($montoAnticipo * -1 ).\" WHERE id = '\".$idAnticipo.\"' \" ;\n $Result = DB_query($ISQL, $db, $ErrMsg, $DbgMsg, true);\n\n\n $ISQL = \"UPDATE debtortrans SET alloc = alloc + \".abs($montoAnticipo).\", settled=1 WHERE id = '\".$DebtorTransIDCargo.\"' \" ;\n $Result = DB_query($ISQL, $db, $ErrMsg, $DbgMsg, true);\n\n //********************GENERAR NOTA DE CARGO Y SE HACE LA APLICACION YA QUE ES SIN CONTABILIDAD********************\n $percentDescription=\"\";\n if ($_SESSION['FacturaVersion']==\"3.3\") {\n\n $queryInsert=\"INSERT INTO notesorders_invoice(transid,transid_relacion,monto, tiporelacion_relacion, trandate)\";\n $queryInsert.=\" VALUES ('\".$DebtorTransIDND.\"','\".$DebtorTransID.\"',\".str_replace(\",\", \"\", $monto ).\", '\".$_POST['cmbTipoRelacion'].\"', NOW())\";\n\n\n // echo \" Consulta: <br> notesordes: \".$queryInsert;\n $result = DB_query($queryInsert, $db);\n\n // SE HACE LA RELACION DE FACTURA CON NOTA DE CREDITO\n $ISQL = \"INSERT INTO custallocns (datealloc,transid_allocfrom,amt,transid_allocto, rate_to,currcode_to, rate_from, currcode_from )\n VALUES (NOW(),\" . $DebtorTransIDND . ',' . abs($monto ) . ',' . $DebtorTransID . ', \"'.$tipocambio.'\", \"'.$moneda.'\", \"'.$rate.'\", \"'.$moneda.'\")';\n //echo \"<br> PRUEBAS: \".$ISQL;\n $Result = DB_query($ISQL, $db, $ErrMsg, $DbgMsg, true);\n\n $ISQL = \"UPDATE debtortrans SET alloc = alloc + \". (abs($monto ) * -1 ).\", settled=1 WHERE id = '\".$DebtorTransIDND.\"' \" ;\n //echo \"<br> PRUEBAS: \".$ISQL;\n $Result = DB_query($ISQL, $db, $ErrMsg, $DbgMsg, true);\n $ISQL = \"UPDATE debtortrans SET alloc = alloc + \".abs($monto).\" WHERE id = '\".$DebtorTransID.\"' \" ;\n //echo \"<br> PRUEBAS: \".$ISQL;\n $Result = DB_query($ISQL, $db, $ErrMsg, $DbgMsg, true);\n // SE HACE LA RELACION DE FACTURA CON NOTA DE CREDITO\n \n \n if ($result && 1 == 2) {\n $banderaEx = 0;\n if ($banderaEx > 0) {\n while ($rse = DB_fetch_array($rrr)) {\n $queryFolio=\"SELECT REPLACE(folio,'|','') as folio FROM debtortrans WHERE id = '\".$rse['transid_relacion'].\"'\";\n $resultFolio = DB_query($queryFolio, $db);\n $myrowFolio = DB_fetch_array($resultFolio);\n $percentDescription .= \", aplicado al folio: \" .$myrowFolio['folio'] ;// \", \" . number_format((($rse['monto']/$monto) * 100), '0', '.', '') .\" % al saldo del folio: \" .$myrowFolio['folio'] ;\n }\n } else {\n $queryFolio=\"SELECT REPLACE(folio,'|','') as folio FROM debtortrans WHERE id = '\".$_POST['InvoiceTransId_'.$index].\"'\";\n $resultFolio = DB_query($queryFolio, $db);\n $myrowFolio = DB_fetch_array($resultFolio);\n $percentDescription .= \", aplicado al folio: \" .$myrowFolio['folio'] ;//$percentDescription .= \", \" . number_format((( str_replace(\",\", \"\", $_POST['InvoiceAmount_'.$index])/$monto) * 100), '0', '.', '') .\" % al saldo del folio: \" .$myrowFolio['folio'] ;\n }\n }\n //SE CREA INSERT PARA REGISTRAR LA RELACION DE LA FACTURA CON EL ANTICIPO\n $SQLAnt = \"UPDATE salesinvoiceadvance SET transidncredito = '\".$DebtorTransIDND.\"' , montoncredito = '\".str_replace(\",\", \"\", $monto).\"', transidncargo = '\".$DebtorTransIDCargo.\"' WHERE transidinvoice = '\".$DebtorTransID.\"' AND transidanticipo = '\".$idAnticipo.\"';\";\n $resultado = DB_query($SQLAnt, $db);\n\n //SE CREA INSERT PARA REGISTRAR LA RELACION DE LA FACTURA CON EL ANTICIPO\n\n $querySelect=\"select notesorders_invoice.transid_relacion,(abs(notesorders_invoice.monto)) AS ovamount ,codesat,c_paymentid,paymentname\n from notesorders_invoice\n left join debtortrans on notesorders_invoice.transid_relacion = debtortrans.id\n where notesorders_invoice.transid='\".$DebtorTransIDND.\"'\n order by notesorders_invoice.monto desc limit 1;\";\n $resultSelect = DB_query($querySelect, $db);\n\n if (DB_num_rows($resultSelect)) {\n $myrowResult=DB_fetch_array($resultSelect);\n\n if ($myrowResult['codesat']==null or $myrowResult['codesat']=='') {\n $queryGetCod=\"SELECT debtortrans.paymentname, paymentmethods.codesat\n FROM debtortrans \n INNER JOIN paymentmethods ON paymentmethods.paymentname= debtortrans.paymentname\n WHERE id='\".$myrowResult['transid_relacion'].\"'\n LIMIT 1\";\n $resultGetc = DB_query($queryGetCod, $db);\n if (DB_num_rows($resultGetc)) {\n $myrowGet=DB_fetch_array($resultGetc);\n\n //$vrcodeasat=$myrowGet['codesat'];\n //$vrcodepay=$myrowGet['paymentname'];\n }\n if ($_SESSION['UserID'] == 'desarrollo') {\n //echo '<pre> paymentname:'.$queryGetCod;\n //echo htmlentities($arrayGeneracion['xml']);\n }\n } else {\n //$vrcodeasat=$myrowResult['codesat'];\n //$vrcodepay=$myrowResult['paymentname'];\n }\n\n $vrcodepayid= $_POST['cmbMetodoPago'];\n \n \n $percentDescription = \"\"; // se deja vacio ya que la descripción solo permite 1000 caracteres, si no se timbra, se agrega solo en PDF\n\n $queryUpdate=\"UPDATE debtortrans SET paymentname='\".$vrcodepay.\"',codesat='\".$vrcodeasat.\"',c_TipoDeComprobante='E',c_paymentid='\".$vrcodepayid.\"',c_UsoCFDI='\".$_POST['cmbUsoCfdi'] .\"',invtext=concat(invtext,' ', '\".$percentDescription.\"') WHERE id='\".$DebtorTransIDND.\"'\";\n //echo \"<br>sqlUpdate:<pre>\".$queryUpdate;\n\n $result = DB_query($queryUpdate, $db);\n } else {\n $percentDescription = \"\"; // se deja vacio ya que la descripción solo permite 1000 caracteres, si no se timbra, se agrega solo en PDF\n\n $queryUpdate=\"UPDATE debtortrans SET paymentname='\".$_POST['paymentname'].\"',codesat='\".$vrcodeasat.\"',c_TipoDeComprobante='E',c_paymentid='\".$_POST['cmbMetodoPago'].\"',c_UsoCFDI='\".$_POST['cmbUsoCfdi'] .\"',invtext=concat(invtext,' ', '\".$percentDescription.\"') WHERE id='\".$DebtorTransIDND.\"'\";\n //echo \"<br>sqlUpdate:<pre>\".$queryUpdate;\n\n $result = DB_query($queryUpdate, $db);\n }\n }\n \n \n // ***************************************************************************************************\n // **** AFECTACIONES CONTABLES ****\n // ***************************************************************************************************\n $rmontosiniva = ($montosiniva / $rate);\n $rmontosinivaANT = ($montosiniva / $tipoCambioFacBIEN);\n $rmontoiva = ($montoiva / $rate);\n $rmontoivaP = ($montoiva / $rateSaldoANT);\n $rmonto = ($monto / $rate);\n\n /*echo \"<br> MONTO; TOTAL total: \".$monto.\" \".$rate.\" \".($monto/$rate);\n echo \"<br> MONTO; TOTAL montoiva : \".$montoiva.\" \".$rateSaldoANT.\" \".($montoiva/$rateSaldoANT);\n echo \"<br> MONTO; TOTAL MONTO SIN IVA : \".$montosiniva.\" \".$rate.\" \".($montosiniva/$rate);\n echo \"<br> MONTO; TOTAL MONTO SIN IVA tipoCambioFacBIEN : \".$montosiniva.\" \".$tipoCambioFacBIEN.\" \".($montosiniva/$tipoCambioFacBIEN);*/\n //$montoiva = $ivaNotaCredito/$rate;\n //$rmonto = $montoNotaCredito/$rate;\n \n // Obtiene la cuentas contables que se afectaran\n // *****************************************\n // Se afecta la cuenta de CxC\n // *****************************************\n // $cuenta_cxc=$_SESSION['CompanyRecord']['debtorsact'];\n $SQLClient = \"SELECT typeid FROM debtorsmaster WHERE debtorno='\" . $DebtorNo . \"'\";\n $result_typeclient = DB_query($SQLClient, $db, $ErrMsg, $DbgMsg, true);\n \n if (DB_num_rows($result_typeclient) == 1) {\n $myrowtype = DB_fetch_array($result_typeclient);\n $tipocliente = $myrowtype ['typeid'];\n }\n \n if ($typeFactura == 110 ) {\n \n $cuenta_cxc = ClientAccount($tipocliente, 'gl_accountcontado', $db);\n }else{\n $cuenta_cxc = ClientAccount($tipocliente, 'gl_accountsreceivable', $db);\n }\n\n \n\n $diferenciCambiariaTotal = 0;\n $diferenciCambiariaIVA = 0;\n if($monedaSaldoANT== $moneda aND $moneda!=$_SESSION ['CountryOfOperation'] ){\n\n $diferenciCambiaria=Round( abs((str_replace(\",\", \"\", $montosiniva)/$tipoCambioFacBIEN)) - (str_replace(\",\", \"\", $montosiniva)/$rate),8) ;\n\n $diferenciCambiariaIVA =Round( abs($montosiniva) /$rateSaldoANT - (str_replace(\",\", \"\", $montosiniva)/$rate),8) ;\n }elseif($monedaSaldoANT!=$_SESSION ['CountryOfOperation'] AND $moneda!=$_SESSION ['CountryOfOperation']){\n\n $diferenciCambiaria=Round(abs((str_replace(\",\", \"\", $montosiniva)/$tipoCambioFacBIEN)) - (str_replace(\",\", \"\", $montosiniva)/$rate),8) ;\n $diferenciCambiariaIVA =Round( abs($montoiva) /$rateSaldoANT - (str_replace(\",\", \"\", $montoiva)/$rate),8) ;\n }elseif($monedaSaldoANT!=$_SESSION ['CountryOfOperation'] AND $moneda==$_SESSION ['CountryOfOperation']){\n\n $diferenciCambiaria=Round(abs((str_replace(\",\", \"\", $montosiniva)/$tipoCambioFacBIEN)) - (str_replace(\",\", \"\", $montosiniva)/$rate),8) ;\n $diferenciCambiariaIVA =Round( abs($montoiva) /$rateSaldoANT - (str_replace(\",\", \"\", $montoiva)/$rate),8) ;\n }\n \n \n if ($montoiva != 0) {\n\n $SQL = \"INSERT INTO gltrans (\n type,\n typeno,\n trandate,\n periodno,\n account,\n narrative,\n amount,\n tag\n )\n VALUES (\n '\" . $systype_doc . \"',\n '\" . $transno . \"',\n '\" . $DefaultDispatchDate . \"',\n '\" . $PeriodNo . \"',\n '\" . $taxglcode . \"',\n '\" . $DebtorNo . \" No. de Nota de Credito: \" . $transno . \" @\" . $nombrecliente . \" ',\n '\" . ($rmontoiva) . \"',\n '\" . $tagref . \"'\n )\";\n \n $result = DB_query($SQL, $db);\n\n if( abs($ivaSaldoANT) ==0 ){\n $SQL = \"INSERT INTO gltrans (\n type,\n typeno,\n trandate,\n periodno,\n account,\n narrative,\n amount,\n tag\n )\n VALUES (\n '\" . $systype_doc . \"',\n '\" . $transno . \"',\n '\" . $DefaultDispatchDate . \"',\n '\" . $PeriodNo . \"',\n '\" . $taxglcodepaid . \"',\n '\" . $DebtorNo . \" No. de Nota de Credito: \" . $transno .' @TC:' . (1 / $rateSaldoANT). \" @\" . $nombrecliente . \" ',\n '\" . ($rmontoivaP *-1) . \"',\n '\" . $tagref . \"'\n )\";\n if ($_SESSION ['UserID'] == \"admin\") {\n // echo '<pre>'.$SQL;\n }\n $result = DB_query($SQL, $db);\n\n }else{\n //$diferenciCambiaria = $diferenciCambiaria + $diferenciCambiariaIVA;\n }\n\n\n \n }\n \n // Obtiene la cuentas contables que se afectar�n\n // $cuenta_notacredito=$_SESSION['CompanyRecord']['creditnote'];\n\n $cuenta_notacredito= ClientAccount($tipocliente, 'gl_debtoradvances', $db);\n\n // *****************************************\n // Se afecta la cuenta de CxC\n // *****************************************\n \n $SQL = \"INSERT INTO gltrans (\n type,\n typeno,\n trandate,\n periodno,\n account,\n narrative,\n amount,\n tag\n )\n VALUES (\n '\" . $systype_doc . \"',\n '\" . $transno . \"',\n '\" . $DefaultDispatchDate . \"',\n '\" . $PeriodNo . \"',\n '\" . $cuenta_cxc . \"',\n '\" . $DebtorNo . \" No. de Nota de Credito: \" . $transno .' @TC:' . (1 / $tipoCambioFacBIEN). \" @\" . $nombrecliente . \" ',\n '\" . ($rmonto * - 1) . \"',\n '\" . $tagref . \"'\n )\";\n // echo $SQL;\n if ($_SESSION ['UserID'] == \"admin\") {\n // echo '<pre>'.$SQL;\n }\n $result = DB_query($SQL, $db);\n\n\n\n if(abs($diferenciCambiaria)>0){\n if (($diferenciCambiaria) >= 0) {\n $ctautilidadperdida = $_SESSION ['CompanyRecord'] ['exchangediffact'];\n } else {\n $ctautilidadperdida = $_SESSION ['CompanyRecord'] ['gllink_exchangediffactutil'];\n }\n \n // $PeriodNo = GetPeriod($_SESSION['AllocCustomer']->TransDate, $db, $_SESSION['AllocCustomer']->tagref);\n \n $reference = $DebtorNo . \"@UTIL/PERD CAMBIARIA@\" . $diferenciCambiaria . ' @TC:' . (1 / $rateSaldoANT).' cliente:'.($nombrecliente);\n // extrae porcentaje de iva\n \n //echo \"<br> diferencia cambiaria \".$diferenciCambiaria;\n \n $SQL = \"INSERT INTO gltrans (type,\n typeno,\n trandate,\n periodno,\n account,\n narrative,\n amount,\n tag\n )\n VALUES ('\" . $systype_doc . \"',\n '\" . $transno. \"',\n '\" . $DefaultDispatchDate . \"',\n '\" . $PeriodNo . \"',\n '\" . $ctautilidadperdida . \"',\n '\" . $reference . \"',\n '\" . ($diferenciCambiaria)*(-1) . \"',\n '\" . $tagref . \"')\";\n //echo \"<br>gltrans 510: \".$SQL;\n $ErrMsg = _ ( 'CRITICAL ERROR' ) . '! ' . _ ( 'NOTE DOWN THIS ERROR AND SEEK ASSISTANCE' ) . ': ' . _ ( 'The GL entry for the difference on exchange arising out of this allocation could not be inserted because' );\n $DbgMsg = _ ( 'The following SQL to insert the GLTrans record was used' );\n $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True);\n\n }\n \n \n // *****************************************\n // Se afecta la cuenta de Notas de Credito\n // *****************************************\n \n $DebtorTransIDGL = DB_Last_Insert_ID($db, 'gltrans', 'counterindex');\n \n $SQL = \"INSERT INTO debtortransmovs (`tagref`,`transno`,`type`,`debtorno`,`branchcode`,`origtrandate`,`trandate`,`prd`,`settled`,`reference`,`tpe`,`order_`,`rate`,`ovamount`,`ovgst`,`ovfreight`,`ovdiscount`,`diffonexch`,`alloc`,`invtext`,`shipvia`,`edisent`,`consignment`,`folio`,`ref1`,`ref2`,`currcode`,`idgltrans`,`userid`)\";\n $SQL .= \" VALUES (\" . $tagref . \", \" . $transno . \",\" . $systype_doc . \", '\" . $DebtorNo . \"', '\" . $DebtorNo . \"', now(), '\" . $fechaini . \"',\" . $PeriodNo . \",'0','\" . $concepto . \"', '','0','\" . $rate . \"',\" . ($montosiniva * - 1) . \",\" . ($montoiva * - 1) . \",'0','0','0','0','','1','0','', 'NCR','NCR','NCR','\" . $moneda . \"',\" . $DebtorTransIDGL . \",'\" . $_SESSION ['UserID'] . \"')\";\n $result = DB_query($SQL, $db);\n \n // afecta cuentas de notas de credito\n $SQL = \"INSERT INTO gltrans (\n type,\n typeno,\n trandate,\n periodno,\n account,\n narrative,\n amount,\n tag\n )\n VALUES (\n '\" . $systype_doc . \"',\n '\" . $transno . \"',\n '\" . $DefaultDispatchDate . \"',\n '\" . $PeriodNo . \"',\n '\" . $cuenta_notacredito . \"',\n '\" . $DebtorNo . \" No. de Nota de Credito: \" . $transno . \" @\" . $nombrecliente . \" ',\n '\" . $rmontosinivaANT . \"',\n '\" . $tagref . \"'\n )\";\n if ($_SESSION ['UserID'] == \"admin\") {\n // echo '<pre>'.$SQL;\n }\n $msgexito = '<b>LA NOTA DE CREDITO SE HA GENERADO EXITOSAMENTE...';\n $result = DB_query($SQL, $db, $msgexito);\n \n if ($puntoVenta != 1) {\n prnMsg(_($msgexito), 'success');\n }\n $_SESSION['IvaManualAbonoDirectoClientes'] = 0;\n \n // imprimir datos de la nota de credito\n if (! isset($legaid) or $legaid == '' or ! isset($area) or $area == '') {\n $sql = \"Select legalid,areacode from tags where tagref=\" . $tagref;\n $result = DB_query($sql, $db);\n while ($myrow = DB_fetch_array($result, $db)) {\n $legaid = $myrow ['legalid'];\n $area = $myrow ['areacode'];\n }\n }\n \n // Consulta el rfc y clave de facturacion electronica\n $SQL = \" SELECT l.taxid,l.address5,t.tagname,t.typeinvoice, l.legalname\n FROM legalbusinessunit l, tags t\n WHERE l.legalid=t.legalid AND tagref='\" . $tagref . \"'\";\n \n if ($_SESSION['UserID'] == 'desarrollo')\n echo \"<pre> SQL -> $SQL </pre>\";\n\n $Result = DB_query($SQL, $db);\n if (DB_num_rows($Result) == 1) {\n $myrowtags = DB_fetch_array($Result);\n $rfc = trim($myrowtags ['taxid']);\n $keyfact = trim($myrowtags ['address5']);\n $nombre = trim($myrowtags ['tagname']);\n $tipofacturacionxtag = $myrowtags ['typeinvoice'];\n $legalname = $myrowtags ['legalname'];\n // $nombre=\"SERVILLANTAS DE QUERETARO S.A. DE C.V.\";\n }\n\n if ($_SESSION['UserID'] == 'desarrollo')\n echo \"<pre> tipofacturacionxtag -> $tipofacturacionxtag </pre>\";\n\n if ($tipofacturacionxtag == 0) {\n $InvoiceNoTAG = DocumentNext($systype_doc, $tagref, $area, $legaid, $db);\n } else {\n $InvoiceNoTAG = DocumentNext(11, $tagref, $area, $legaid, $db);\n }\n\n if ($_SESSION['UserID'] == 'desarrollo')\n echo \"<pre> InvoiceNoTAG ->\". print_r($InvoiceNoTAG) .\"</pre>\";\n \n \n $separa = explode('|', $InvoiceNoTAG);\n $serie = $separa [1];\n $folio = $separa [0];\n // echo 'folio:'.$InvoiceNoTAG;\n \n $OrderNo = 0;\n $factelectronica = XSAInvoicingCreditdirect($transno, $OrderNo, $DebtorNo, $systype_doc, $tagref, $serie, $folio, $db);\n // Envia los datos al archivooooo\n $factelectronica = utf8_encode($factelectronica);\n \n if ($_SESSION['UserID'] == 'desarrollo') {\n echo '<pre> cadena de XSAInvoicingCreditdirect:'.$factelectronica;\n //echo htmlentities($arrayGeneracion['xml']);\n }\n \n $empresa = $keyfact . '-' . $rfc;\n $nombre = $nombre;\n $tipo = 'Notas de Credito';\n // if ($ambiente == \"desarrollo\") {\n // $tipo = 'NOTA DE CREDITO';\n // }\n \n // $tipo='NOTA DE CREDITO';\n $myfile = '';\n $factelectronica = $factelectronica;\n // echo '<pre><br>'.$factelectronica;\n $param = array (\n 'in0' => $empresa,\n 'in1' => $nombre,\n 'in2' => $tipo,\n 'in3' => $myfile,\n 'in4' => $factelectronica\n );\n \n // Seccion para validar si selecciono la opcion de timbrar o no\n if ($typeFactura == 119 ) {\n $flagsendfiscal = 0;\n }else{\n $flagsendfiscal = 1;\n }\n \n $ligaN = '';\n\n // Si se va a timbrar el documento entra a esta condicion\n //echo \"<br>tipofacturacionxtag:\". $tipofacturacionxtag;\n if ($flagsendfiscal == 1) {\n if ($tipofacturacionxtag == 1) {\n //echo \"entra1\";\n try {\n $client = new SoapClient($_SESSION ['XSA'] . \"xsamanager/services/FileReceiverService?wsdl\");\n $codigo = $client->guardarDocumento($param);\n } catch (SoapFault $exception) {\n $errorMessage = $exception->getMessage();\n }\n $liga = $_SESSION ['XSA'] . \"xsamanager/downloadCfdWebView?serie=\" . $serie . \"&folio=\" . $folio . \"&tipo=PDF&rfc=\" . $rfc . \"&key=\" . $keyfact;\n $liga = '<p><img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _('Imprimir') . '\" alt=\"\">' . ' ' . '<a target=\"_blank\" href=\"' . $liga . '\">' . _('Imprimir Nota de Credito') . ' (' . _('Laser') . ')' . '</a>';\n } elseif ($tipofacturacionxtag == 2) {\n echo \"entra2\";\n $arrayGeneracion = generaXML($factelectronica, 'egreso', $tagref, $serie, $folio, $DebtorTransIDND, 'NCreditoDirect', $OrderNo, $db);\n $XMLElectronico = $arrayGeneracion [\"xml\"];\n // Se agrega la generacion de xml_intermedio\n\n $array = generaXMLIntermedio($factelectronica, $XMLElectronico, ($arrayGeneracion [\"cadenaOriginal\"]), utf8_encode($arrayGeneracion [\"cantidadLetra\"]), $DebtorTransIDND, $db, 13, $tagref, $systype_doc, $transno);\n $xmlImpresion = ( $array [\"xmlImpresion\"] );\n $rfcEmisor = $array [\"rfcEmisor\"];\n $fechaEmision = $array [\"fechaEmision\"];\n\n $XMLElectronico = caracteresEspecialesFactura($XMLElectronico);\n $xmlImpresion = caracteresEspecialesFactura($xmlImpresion);\n $xmlImpresion =str_replace(\"&\", \"&amp;\", $xmlImpresion);\n \n // Almacenar XML\n $XMLElectronico = str_replace(\"<?xml version='1.0' encoding='UTF-8'?>\", '<?xml version=\"1.0\" encoding=\"UTF-8\"?>', $XMLElectronico);\n $query = \"INSERT INTO Xmls(transNo,type,rfcEmisor,fechaEmision,xmlSat,xmlImpresion,fiscal)\n VALUES(\" . $transno . \",\" . $systype_doc . \",'\" . $rfcEmisor . \"','\" . $fechaemision . \"','\" . utf8_decode(addslashes($XMLElectronico)) . \"','\" . utf8_decode(addslashes($xmlImpresion)) . \"',\" . $flagsendfiscal . \");\";\n $Result = DB_query($query, $db, $ErrMsg, $DbgMsg, true);\n \n if ($_SESSION ['Template_V6'] != '1') {\n $ligaN = \"PDFCreditDirect.php\";\n } else {\n $ligaN = \"PDFInvoice.php\";\n }\n // $liga = \"PDFCreditDirect.php\";\n $ligaN = '<p><img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _('Imprimir') . '\" alt=\"\">' . ' ' . '<a target=\"_blank\" href=\"' . $rootpath . '/' . $ligaN . SID . '?tipo=' . $systype_doc . '&area=' . $area . '&legal=' . $legaid . '&TransNo=' . $transno . '&Type=13&Tagref=' . $tagref . '\">' . _('Imprimir Nota de Credito') . ' (' . _('Laser') . ')' . '</a>';\n } elseif ($tipofacturacionxtag == 3) {\n // $XMLElectronico=generaXML($factelectronica,'egreso',$tagref,$serie,$folio,$DebtorTransIDND,'NCreditoDirect',$OrderNo,$db);\n \n $ligaN = \"PDFNoteCreditDirectTemplate.php\";\n $ligaN = '<p><img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _('Imprimir') . '\" alt=\"\">' . ' ' . '<a target=\"_blank\" href=\"' . $rootpath . '/' . $ligaN . SID . '&tipo=' . $systype_doc . '&area=' . $area . '&legal=' . $legaid . '&TransNo=' . $transno . '&Tagref=' . $tagref . '\">' . _('Imprimir Nota de Credito') . ' (' . _('Laser') . ')' . '</a>';\n } elseif ($tipofacturacionxtag == 4) {\n $success = false;\n $config = $_SESSION;\n //echo \"<br>---\".$_SESSION['FacturaVersion'];\n if ($_SESSION['FacturaVersion'] == \"3.3\") {\n //echo \"<br>generaXMLCFDI3_3:\";\n $arrayGeneracion = generaXMLCFDI3_3($factelectronica, 'egreso', $tagref, $serie, $folio, $DebtorTransIDND, 'NCreditoDirect', $OrderNo, $db);\n } else {\n $arrayGeneracion = generaXMLCFDI($factelectronica, 'egreso', $tagref, $serie, $folio, $DebtorTransIDND, 'NCreditoDirect', $OrderNo, $db);\n }\n \n $XMLElectronico = $arrayGeneracion [\"xml\"];\n $XMLElectronico = str_replace('<?xml version=\"1.0\" encoding=\"UTF-8\"?>', '', $XMLElectronico);\n\n if ($_SESSION['UserID'] == 'aenriquez' or $_SESSION['UserID'] == 'desarrollo') {\n //echo '<pre>'.$factelectronica;\n //echo '<br>XMLElectronico: <br><pre>'.htmlentities($XMLElectronico);\n }\n \n //require_once '../../.././' .'timbradores/TimbradorFactory.php';\n //include_once 'timbradores/TimbradorFactory.php';\n $timbrador = TimbradorFactory::getTimbrador($config);\n if ($timbrador != null) {\n $timbrador->setRfcEmisor($rfc);\n $timbrador->setDb($db);\n $cfdi = $timbrador->timbrarDocumento($XMLElectronico);\n $success = ($timbrador->tieneErrores() == false);\n foreach ($timbrador->getErrores() as $error) {\n if ($puntoVenta != 1) {\n prnMsg($error, 'error');\n }\n }\n } else {\n if ($puntoVenta != 1) {\n prnMsg(_('No hay un timbrador configurado en el sistema'), 'error');\n }\n }\n \n if ($success) {\n if ($_SESSION['UserID'] == \"desarrollo\") {\n echo '<br>success';\n }\n // leemos la informacion del cfdi en un arreglo\n $DatosCFDI = TraeTimbreCFDI($cfdi);\n if (strlen($DatosCFDI ['FechaTimbrado']) > 0) {\n //$cadenatimbre = '||1.1|' . $DatosCFDI ['UUID'] . '|' . $DatosCFDI ['FechaTimbrado'] . '|' . $DatosCFDI ['selloCFD'] . '|' . $DatosCFDI ['noCertificadoSAT'] . '||';\n $cadenatimbre = '||1.1|' . $DatosCFDI ['UUID'] . '|' . $DatosCFDI ['FechaTimbrado'] .'|' . $DatosCFDI ['RfcProvCertif']. '||' . $DatosCFDI ['SelloCFD'] . '|' . $DatosCFDI ['NoCertificadoSAT'] . '||';\n \n // guardamos el timbre fiscal en la base de datos para efectos de impresion de datos\n $sql = \"UPDATE debtortrans\n SET fechatimbrado='\" . $DatosCFDI ['FechaTimbrado'] . \"',\n uuid='\" . $DatosCFDI ['UUID'] . \"',\n timbre='\" . $DatosCFDI ['SelloSAT'] . \"',\n cadenatimbre='\" . $cadenatimbre . \"'\n where id=\" . $DebtorTransIDND;\n \n $ErrMsg = _('El Sql que fallo fue');\n $DbgMsg = _('No se pudo actualizar el sello y cadena del documento');\n $Result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true);\n $XMLElectronico = $cfdi;\n // Guardamos el XML una vez que se agrego el timbre fiscal\n \n $legalname= caracteresEspecialesFactura($legalname);\n \n $carpeta = 'NCreditoDirect';\n\n $dir = \"/var/www/html\" . dirname($_SERVER ['PHP_SELF']) . \"/companies/\" . $_SESSION ['DatabaseName'] . \"/SAT/\" . utf8_decode(addslashes((str_replace('.', '', str_replace(' ', '', $legalname))))) . \"/XML/\" . $carpeta . \"/\";\n\n //$dir=\"/var/www/html/erpdistribucion/companies/\".$_SESSION ['DatabaseName'].\"/SAT/\".utf8_decode(addslashes((str_replace ( '.', '', str_replace ( ' ', '', $legalname ) )))).\"/XML/NCreditoDirect/\";\n \n if ($puntoVenta == 1) {\n // Si es punto de venta quitar carpetas\n $dir = str_replace('mvc/api/v1/', '', $dir);\n }\n\n \n $nufa = $serie . $folio;\n $mitxt = $dir . $nufa . \".xml\";\n if ($puntoVenta != 1) {\n unlink($mitxt);\n }\n \n //echo \"<br>\".$mitxt;\n // Se modifico la fucion\n $fp = fopen($mitxt, \"w\");\n fwrite($fp, $XMLElectronico);\n fclose($fp);\n\n \n $fp = fopen($mitxt . '.COPIA', \"w\");\n fwrite($fp, $XMLElectronico);\n fclose($fp);\n //Se agrega la generacion de xml_intermedio\n \n $XMLElectronico_Impresion=\"\";\n if ($_SESSION['FacturaVersion'] == \"3.3\") {\n $XMLElectronico_Impresion = generaXMLCFDI_Impresion($factelectronica, $XMLElectronico, $tagref, $db);\n }\n \n\n if (!empty($XMLElectronico_Impresion)) {\n $array = generaXMLIntermedio($factelectronica, $XMLElectronico_Impresion, $cadenatimbre, utf8_encode($arrayGeneracion [\"cantidadLetra\"]), $OrderNo, $db, 13, $tagref, $systype_doc, $transno);\n } else {\n $array = generaXMLIntermedio($factelectronica, $XMLElectronico, $cadenatimbre, utf8_encode($arrayGeneracion [\"cantidadLetra\"]), $DebtorTransIDND, $db, 13, $tagref, $systype_doc, $transno);\n }\n \n\n //$array = generaXMLIntermedio ( $factelectronica, $XMLElectronico, $cadenatimbre, utf8_encode ( $arrayGeneracion [\"cantidadLetra\"] ), $DebtorTransIDND, $db, 13, $tagref, $systype_doc, $transno );\n\n $xmlImpresion = ( $array [\"xmlImpresion\"] );\n $rfcEmisor = $array [\"rfcEmisor\"];\n $fechaEmision = $array [\"fechaEmision\"];\n $XMLElectronico = caracteresEspecialesFactura($XMLElectronico);\n $xmlImpresion = caracteresEspecialesFactura($xmlImpresion);\n $xmlImpresion =str_replace(\"&\", \"&amp;\", $xmlImpresion);\n\n if ($_SESSION['UserID']=='desarrollo') {\n echo '<br>XMLElectronico: <br><pre>'.htmlentities($XMLElectronico);\n echo '<br>xmlImpresion: <br><pre>'.htmlentities($xmlImpresion);\n }\n\n // Almacenar XML//\n $XMLElectronico = str_replace(\"<?xml version='1.0' encoding='UTF-8'?>\", '<?xml version=\"1.0\" encoding=\"UTF-8\"?>', $XMLElectronico);\n $query = \"INSERT INTO Xmls(transNo,type,rfcEmisor,fechaEmision,xmlSat,xmlImpresion,fiscal)\n VALUES(\" . $transno . \",\" . $systype_doc . \",'\" . $rfcEmisor . \"','\" . $fechaemision . \"','\" . utf8_decode(addslashes($XMLElectronico)) . \"','\" . utf8_decode(addslashes($xmlImpresion)) . \"',\" . $flagsendfiscal . \");\";\n $Result = DB_query($query, $db, $ErrMsg, $DbgMsg, true);\n \n if ($_SESSION ['Template_V6'] != '1') {\n $ligaN = \"PDFCreditDirect.php\";\n } else {\n $ligaN = \"PDFInvoice.php\";\n }\n \n if ($puntoVenta != 1) {\n $ligaN = '<p><img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _('Imprimir') . '\" alt=\"\">' . ' ' . '<a target=\"_blank\" href=\"' . $rootpath . '/' . $ligaN . SID . '?Type=' . $systype_doc . '&area=' . $area . '&legal=' . $legaid . '&TransNo=' . $transno . '&Tagref=' . $tagref . '\">' . _('Imprimir Nota de Credito') . ' (' . _('Laser') . ')' . '</a>';\n }\n } else {\n prnMsg(_('No fue posible realizar el timbrado del documento, verifique con el administrador; el numero de error es:') . $cfdi, 'error');\n // exit;\n }\n }\n } else {\n $ligaN = GetUrlToPrintNu($tagref, $area, $legaid, $systype_doc, $db);\n $ligaN = '<p><img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _('Imprimir') . '\" alt=\"\">' . ' ' . '<a target=\"_blank\" href=\"' . $rootpath . '/' . $ligaN . SID . '&tipo=' . $systype_doc . '&area=' . $area . '&legal=' . $legaid . '&TransNo=' . $transno . '&Tagref=' . $tagref . '\">' . _('Imprimir Nota de Credito') . ' (' . _('Laser') . ')' . '</a>';\n }\n } else {\n //echo \"<br> flagsendfiscal\";\n // Documento No Fiscal\n $arrayGeneracion = generaXMLCFDI($factelectronica, 'egreso', $tagref, $serie, $folio, $DebtorTransIDND, 'NCreditoDirect', $OrderNo, $db);\n $XMLElectronico = $arrayGeneracion [\"xml\"];\n \n // Se agrega la generacion de xml_intermedio\n $array = generaXMLIntermedio($factelectronica, $XMLElectronico, $arrayGeneracion [\"cadenaOriginal\"], utf8_encode($arrayGeneracion [\"cantidadLetra\"]), $DebtorTransIDND, $db, 13, $tagref, $systype_doc, $transno);\n $xmlImpresion = utf8_decode($array [\"xmlImpresion\"]);\n $rfcEmisor = $array [\"rfcEmisor\"];\n $fechaEmision = $array [\"fechaEmision\"];\n $XMLElectronico = caracteresEspecialesFactura($XMLElectronico);\n $xmlImpresion = caracteresEspecialesFactura($xmlImpresion);\n $xmlImpresion =str_replace(\"&\", \"&amp;\", $xmlImpresion);\n\n \n // Insertar el registro en la tabla de XMLS\n $query = \"INSERT INTO Xmls(transNo,type,rfcEmisor,fechaEmision,xmlSat,xmlImpresion,fiscal)\n VALUES(\" . $transno . \",\" . $systype_doc . \",'\" . $rfcEmisor . \"','\" . $fechaemision . \"','\" . utf8_decode(addslashes($XMLElectronico)) . \"','\" . utf8_decode(addslashes($xmlImpresion)) . \"',\" . $flagsendfiscal . \");\";\n \n $Result = DB_query($query, $db, $ErrMsg, $DbgMsg, true);\n \n if ($_SESSION ['Template_V6'] != '1') {\n $ligaN = \"PDFCreditDirect.php\";\n } else {\n $ligaN = \"PDFInvoice.php\";\n }\n \n $ligaN = '<p><img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _('Imprimir') . '\" alt=\"\">' . ' ' . '<a target=\"_blank\" href=\"' . $rootpath . '/' . $ligaN . SID . '?Type=' . $systype_doc . '&area=' . $area . '&legal=' . $legaid . '&TransNo=' . $transno . '&Tagref=' . $tagref . '\">' . _('Imprimir Nota de Credito') . ' (' . _('Laser') . ')' . '</a>';\n \n /*$PrintDispatchNote = $rootpath . '/' . $liga . '?OrderNo=' . $OrderNo . '&TransNo=' . $BatchNo . '&Type=' . $tipodefacturacion;\n \n echo '<p class=\"page_title_text\">';\n echo '<img src=\"' . $rootpath . '/css/' . $theme . '/images/printer.png\" title=\"' . _ ( 'Imprimir Recibo ' ) . '\" alt=\"\">' . ' ';\n echo '<a href=\"' . $PrintDispatchNote . '\" target=\"_blank\">';\n echo _ ( 'Imprimir Recibo PDF ' ) . '</a></p>';*/\n } // Fin de condicion para timbrar el documento o no\n \n // Actualizar el documento para folio\n $SQL = \"UPDATE debtortrans\n SET folio='\" . $serie . '|' . $folio . \"',\n flagfiscal= '\" . $flagsendfiscal . \"' \n WHERE transno=\" . $transno . \" and type=\" . $systype_doc;\n \n $ErrMsg = _('ERROR CRITICO') . '! ' . _('ANOTE EL ERROR') . ': ' . _('La Actualizacion para saldar la factura, no se pudo realizar');\n $DbgMsg = _('El SQL utilizado para el registro de la fatura es:');\n $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true);\n $Result = DB_Txn_Commit($db);\n\n if ($puntoVenta != 1) {\n echo '<p><div align=\"center\">';\n echo $ligaN;\n echo '</div>';\n }\n\n if (function_exists(\"updateGlTransAccountingInfo\")) {\n $valued = updateGlTransAccountingInfo($systype_doc, $transno, $db);\n }\n \n if ($puntoVenta != 1) {\n echo '<p><div align=\"center\">';\n echo '<a href=\"ReportCustomerInqueryV3.php?CustomerID=' . $DebtorNo . '\">';\n echo '<font size=2 face=\"arial\"><b>';\n echo _('IR AL ESTADO DE CUENTA DEL CLIENTE');\n echo '</b></font>';\n echo '</a>';\n echo '</div>';\n }\n }\n \n // ***************************************************************************************************\n // ***************************************************************************************************\n // ***************************************************************************************************\n}", "public function omTraerCargas(){\n $loSql = new CSql();\n $llOk = $loSql->omConnect();\n if (!$llOk) {\n $this->pcError = $loSql->pcError;\n return false;\n }\n $llOk = $this->mxTraerCargas($loSql);\n $loSql->omDisconnect();\n return $llOk;\n }", "public function store_facture_honoraire_parrainage(Compromis $compromis, Filleul $filleul)\n{\n\n $parrain_id = $filleul->parrain_id ; \n $pourcentage_parrain = $filleul->pourcentage; \n \n $tva = Tva::coefficient_tva();\n $parrain = User::where('id',$parrain_id)->first();\n // On vérifie si filleul est le porteur d'affaire\n if($compromis->user_id == $filleul->user_id){\n // sil y'a partage\n if($compromis->agent_id == null ){\n $pourcentage_partage = 1;\n }else{\n $pourcentage_partage = $compromis->pourcentage_agent/100;\n }\n \n \n \n // On determine les montants ttc et ht du parrain \n $montant_ht = round ( ($compromis->frais_agence() * $pourcentage_partage * $pourcentage_parrain/100 )/Tva::coefficient_tva(),2);\n $montant_ttc = round($montant_ht*$tva,2);\n \n // on determine les droits de parrainage du parrain pour chacun de ses filleuls\n $result = Filleul::droitParrainage($parrain->id, $filleul->user_id, $compromis->id);\n\n // On vérifie que le parrain n'a pas dépassé le plafond de comm sur son filleul \n\n if($result['ca_comm_parr'] >= $filleul->user->contrat->seuil_comm ){\n $montant_ht = 0;\n $montant_ttc = 0;\n }\n else{\n if( $result['ca_comm_parr'] + $montant_ht > $filleul->user->contrat->seuil_comm ){\n $montant_ht = $filleul->user->contrat->seuil_comm - $result['ca_comm_parr'];\n $montant_ttc = $montant_ht*$tva;\n\n }\n } \n \n \n \n \n \n \n // On fait la facture du parrain de celui qui a crée l'affaire\n if($compromis->facture_honoraire_parrainage_cree == false ){\n $tva = Tva::coefficient_tva();\n\n\n\n $facture = Facture::create([\n \"numero\"=> null,\n \"user_id\"=> $parrain->id,\n \"filleul_id\"=> $filleul->user_id,\n \"compromis_id\"=> $compromis->id,\n \"type\"=> \"parrainage\",\n \"encaissee\"=> false,\n \"montant_ht\"=> round ($montant_ht ,2),\n \"montant_ttc\"=> round( $montant_ttc,2),\n ]);\n // dd($facture);\n // on incremente le chiffre d'affaire du parrain\n $parrain->chiffre_affaire += $facture->montant_ttc ; \n $parrain->update(); \n \n $compromis->facture_honoraire_parrainage_cree = true;\n $compromis->update();\n }\n // On vérifie si filleul est le partage\n }elseif($compromis->agent_id == $filleul->user_id){\n // On fait la facture du parrain du partage\n if($compromis->facture_honoraire_parrainage_partage_cree == false ){\n \n \n $pourcentage_partage = (100 - $compromis->pourcentage_agent)/100;\n \n $tva = Tva::coefficient_tva();\n \n // On determine les montants ttc et ht du parrain \n $montant_ht = round ( ($compromis->frais_agence() * $pourcentage_partage * $pourcentage_parrain/100 )/Tva::coefficient_tva(),2);\n $montant_ttc = round($montant_ht*$tva,2);\n \n // on determine les droits de parrainage du parrain pour chacun de ses filleuls\n $result = Filleul::droitParrainage($parrain->id, $filleul->user_id, $compromis->id);\n \n // On vérifie que le parrain n'a pas dépassé le plafond de comm sur son filleul \n \n if($result['ca_comm_parr'] >= $filleul->user->contrat->seuil_comm ){\n $montant_ht = 0;\n $montant_ttc = 0;\n }\n else{\n if( $result['ca_comm_parr'] + $montant_ht > $filleul->user->contrat->seuil_comm ){\n $montant_ht = $filleul->user->contrat->seuil_comm - $result['ca_comm_parr'];\n $montant_ttc = $montant_ht*$tva;\n \n }\n } \n \n \n \n $facture = Facture::create([\n \"numero\"=> null,\n \"user_id\"=> $parrain->id,\n \"filleul_id\"=> $filleul->user_id,\n \"compromis_id\"=> $compromis->id,\n \"type\"=> \"parrainage_partage\",\n \"encaissee\"=> false,\n \"montant_ht\"=> round ($montant_ht,2),\n \"montant_ttc\"=> round( $montant_ttc,2),\n ]);\n // dd($facture);\n // on incremente le chiffre d'affaire du parrain\n // $parrain->chiffre_affaire += $facture->montant_ttc ; \n // $parrain->update(); \n \n $compromis->facture_honoraire_parrainage_partage_cree = true;\n $compromis->update();\n }\n }\n\n \n\n // On fait la facture du parrain de celui qui ne porte pas l'affaire (le partage)\n // facture_honoraire_parrainage_partage_cree\n \n}", "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}", "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 }", "public function get_compte(){retrun($id_local_compte); }", "public function getSimulacionReajuste(){\n //calculando según el IPC acumulado\n //entre el último reajuste realizado y ahora. \n $mes_actual = (int)date(\"m\");\n $agno_actual = (int)date('Y');\n $mes_inicio = $mes_actual - $this->reajusta_meses;\n $agno_inicio = $agno_actual;\n if($mes_inicio <= 0){\n $agno_inicio -= 1;\n $mes_inicio+= 12;\n }\n $ipcs = array();\n if($agno_inicio != $agno_actual){\n $ipcs = Ipc::model()->findAll(array('order'=>'mes','condition'=>'mes >= :m and agno = :a','params'=>array(':m'=>$mes_inicio,':a'=>$agno_inicio)));\n $ipcs_actual = Ipc::model()->findAll(array('order'=>'mes','condition'=>'mes < :m and agno = :a','params'=>array(':m'=>$mes_actual,':a'=>$agno_actual)));\n foreach($ipcs_actual as $ipc){\n $ipcs[] = $ipc;\n }\n }\n else{\n $ipcs = Ipc::model()->findAll(array('condition'=>'mes >= :m1 and mes < :m2 and agno = :a','params'=>array(':m1'=>$mes_inicio,':m2'=>$mes_actual,':a'=>$agno_actual)));\n }\n\n $ipc_acumulado = 0;\n foreach($ipcs as $ipc){\n //sumo los ipcs para generar el ipc acumulado\n $ipc_acumulado+= $ipc->porcentaje;\n }\n //para hacer el cálculo según porcentaje\n $ipc_acumulado /= 100;\n\n //saco el último debe pagar para ver cuánto era lo que tenía que pagar antes\n $debePagars = DebePagar::model()->findAllByAttributes(array('contrato_id'=>$this->id),array('order'=>'id DESC'));\n $debePagar = $debePagars[0];\n \n $debeNuevo = new DebePagar();\n $debeNuevo->agno = $agno_actual;\n $debeNuevo->mes = $mes_actual;\n $debeNuevo->dia = $debePagar->dia;\n $debeNuevo->contrato_id = $this->id;\n //ahora hay que reajustar los montos del contrato dependiendo del ipc_acumulado\n //el precio base debe ser el valor anterior en debe pagar\n $debeNuevo->monto_gastocomun = intval($debePagar->monto_gastocomun*(1+$ipc_acumulado));\n $debeNuevo->monto_gastovariable = intval($debePagar->monto_gastovariable*(1+$ipc_acumulado));\n $debeNuevo->monto_mueble = intval($debePagar->monto_mueble*(1+$ipc_acumulado));\n $debeNuevo->monto_renta = intval($debePagar->monto_renta*(1+$ipc_acumulado));\n \n return array('actual'=>$debePagar, 'nuevo'=>$debeNuevo);\n }", "function traduire($mot,$temps,$type,$personne){\n //type = 1affirm - 2neg - 3question;\n //personne = 1;\n \n \n \n $fin1 = substr($mot, -1);\n $fin2 = substr($mot,-2,1);\n $liaison = \"\";\n $passe = 'd';\n $kconsonne = false;\n $consonne = false;\n switch ($fin1) {\n case 'a':\n case 'ı':\n $voyelle = 'ı';\n $pvoyelle = 'a';\n $dvoyelle = 'ı';\n $liaison = 'y';\n break;\n case 'e':\n case 'i':\n $voyelle = 'i';\n $pvoyelle = 'e';\n $dvoyelle = 'i';\n $liaison = 'y';\n break;\n case 'o':\n case 'u':\n $voyelle = 'u';\n $pvoyelle = 'a';\n $dvoyelle = 'ı';\n $liaison = 'y';\n break;\n case 'ü':\n case 'ö':\n $voyelle = 'ü';\n $pvoyelle = 'e';\n $dvoyelle = 'i';\n $liaison = 'y';\n break;\n case 'k':\n $passe = 't';\n $consonne = 'true';\n $kconsonne ='true';\n break;\n case 't':\n case 'p':\n case 'ç':\n case 'h':\n case 'f':\n case 's':\n case 'ş':\n $passe = 't';\n $consonne = 'true';\n break;\n default : \n $consonne = 'true';\n break;\n \n }\n \n if($consonne == 'true'){\n \n switch ($fin2) {\n case 'a':\n case 'ı':\n $voyelle = 'ı';\n $pvoyelle = 'a';\n $dvoyelle = 'ı';\n \n break;\n case 'e':\n case 'i':\n $voyelle = 'i';\n $pvoyelle = 'e';\n $dvoyelle = 'i';\n \n break;\n case 'o':\n case 'u':\n $voyelle = 'u';\n $pvoyelle = 'a';\n $dvoyelle = 'ı';\n \n break;\n case 'ü':\n case 'ö':\n $voyelle = 'ü';\n $pvoyelle = 'e';\n $dvoyelle = 'i';\n \n break;\n }\n \n }\n \n \n \n switch ($temps) {\n // passé\n case 1 :\n switch($type){\n // passe affirm\n case 1:\n $traduction = $mot;\n switch($personne){\n case 1:\n $traduction = $traduction.$liaison.$passe.$voyelle.\"m\";\n break;\n case 2:\n $traduction = $traduction.$liaison.$passe.$voyelle.\"n\";\n break;\n case 3:\n $traduction = $traduction.$liaison.$passe.$voyelle;\n break;\n case 4:\n $traduction = $traduction.$liaison.$passe.$voyelle.\"k\";\n break;\n case 5:\n $traduction = $traduction.$liaison.$passe.$voyelle.\"n\".$voyelle.\"z\";\n break;\n case 6:\n $traduction = $traduction.\"l\".$pvoyelle.\"r\".\"d\".$dvoyelle;\n break;\n }\n break;\n // passe neg\n case 2:\n $traduction = $mot.\" değil\";\n switch($personne){\n case 1:\n $traduction = $traduction.\"dim\";\n break;\n case 2:\n $traduction = $traduction.\"din\";\n break;\n case 3:\n $traduction = $traduction.\"di\";\n break;\n case 4:\n $traduction = $traduction.\"dik\";\n break;\n case 5:\n $traduction = $traduction.\"diniz\";\n break;\n case 6:\n $traduction = $traduction.\"diler\";\n break;\n }\n break;\n // passe quest\n case 3:\n $traduction = $mot. \" m\".$voyelle.\"yd\".$voyelle;\n switch($personne){\n case 1:\n $traduction = $traduction.\"m\";\n break;\n case 2:\n $traduction = $traduction.\"n\";\n break;\n case 3:\n $traduction = $traduction;\n break;\n case 4:\n $traduction = $traduction.\"k\";\n break;\n case 5:\n $traduction = $traduction.\"n\".$voyelle.\"z\";\n break;\n case 6:\n $traduction = $traduction.\"l\".$pvoyelle.\"r\";\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 $traduction = $mot;\n switch($personne){\n case 1:\n if($kconsonne=='true'){\n $traduction = $traduction.substr($traduction,0,-1);\n $traduction = $traduction.\"ğ\".$voyelle.\"m\";\n }else{\n $traduction = $traduction.$liaison.$voyelle.\"m\";\n }\n \n break;\n case 2:\n $traduction = $traduction.\"s\".$voyelle.\"n\";\n break;\n case 3:\n $traduction = $traduction;\n break;\n case 4:\n if($kconsonne=='true'){\n $traduction = $traduction.substr($traduction,0,-1);\n $traduction = $traduction.\"ğ\".$voyelle.\"z\";\n }else{\n $traduction = $traduction.$liaison.$voyelle.\"z\";\n }\n \n break;\n case 5:\n $traduction = $traduction.\"s\".$voyelle.\"n\".$voyelle.\"z\";\n break;\n case 6:\n $traduction = $traduction.\"l\".$pvoyelle.\"r\";\n break;\n }\n break;\n // present nega\n case 2:\n $traduction = $mot.\" değil\";\n switch($personne){\n case 1:\n $traduction = $traduction.\"im\";\n break;\n case 2:\n $traduction = $traduction.\"sin\";\n break;\n case 3:\n $traduction = $traduction;\n break;\n case 4:\n $traduction = $traduction.\"iz\";\n break;\n case 5:\n $traduction = $traduction.\"siniz\";\n break;\n case 6:\n $traduction = $traduction.\"ler\";\n break;\n }\n break;\n \n //present question\n case 3:\n $traduction = $mot;\n switch($personne){\n case 1:\n $traduction = $traduction. \" m\".$voyelle.\"y\".$voyelle.\"m ?\";\n break;\n case 2:\n $traduction = $traduction. \" m\".$voyelle.\"s\".$voyelle.\"n ?\";\n break;\n case 3:\n $traduction = $traduction. \" m\".$voyelle.\" ?\";\n break;\n case 4:\n $traduction = $traduction. \" m\".$voyelle.\"y\".$voyelle.\"z ?\";\n break;\n case 5:\n $traduction = $traduction. \" m\".$voyelle.\"s\".$voyelle.\"n\".$voyelle.\"z ?\";\n break;\n case 6:\n $traduction = $traduction.\"l\".$pvoyelle.\"r\". \" m\".$voyelle .\" ?\";\n break;\n }\n break;\n }\n break;\n \n //futur\n case 2 :\n switch($type){\n //futur affirm\n case 1:\n $traduction = $mot;\n switch($personne){\n case 1:\n $traduction = $traduction.\" olacağım\";\n break;\n case 2:\n $traduction = $traduction. \" olacaksın\";\n break;\n case 3:\n $traduction = $traduction. \" olacak\";\n break;\n case 4:\n $traduction = $traduction. \" olacağız\";\n break;\n case 5:\n $traduction = $traduction. \" olacaksınız\";\n break;\n case 6:\n $traduction = $traduction. \" olacaklar\";\n break;\n }\n break;\n //futur negation\n case 2:\n $traduction = $mot;\n switch($personne){\n case 1:\n $traduction = $traduction.\" olmayacağım\";\n break;\n case 2:\n $traduction = $traduction. \" olmayacaksın\";\n break;\n case 3:\n $traduction = $traduction. \" olmayacak\";\n break;\n case 4:\n $traduction = $traduction. \" olmayacağız\";\n break;\n case 5:\n $traduction = $traduction. \" olmayacaksınız\";\n break;\n case 6:\n $traduction = $traduction. \" olmayacaklar\";\n break;\n }\n break;\n case 3:\n $traduction = $mot. \" olacak\";\n switch($personne){\n case 1:\n $traduction = $traduction.\" mıyım ?\";\n break;\n case 2:\n $traduction = $traduction. \" mısın ?\";\n break;\n case 3:\n $traduction = $traduction. \" mı ?\";\n break;\n case 4:\n $traduction = $traduction. \" mıyız ?\";\n break;\n case 5:\n $traduction = $traduction. \" mısınız ?\";\n break;\n case 6:\n $traduction = $traduction. \"lar mı ?\";\n break;\n }\n break;\n }\n break;\n }\n return $traduction;\n }", "public function attaquerAdversaire() {\n\n }", "public function Action_TraiterRequete()\n\t{\n\t\tif (isset($_POST[\"requete\"]))\n\t\t{\n\t\t\t$Requete = $this->DecoderJson($_POST[\"requete\"]);\n\t\t\tif (isset($Requete[\"action\"]) && isset($Requete[\"donnees\"]))\n\t\t\t{\n\t\t\t\t$NomMethode = \"Action_\" . $Requete[\"action\"];\n\t\t\t\tif (!in_array($NomMethode, array(\"Action_TraiterRequete\", \"Action_RepondreReussite\", \"Action_RepondreEchec\"))\n\t\t\t\t\t&& method_exists($this, $NomMethode)\n\t\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\teval(\"\\$this->$NomMethode(\\$Requete[\\\"donnees\\\"]);\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->Action_RepondreEchec(\"Action inconnue !\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->Action_RepondreEchec(\"Action non définie ou incorrectement définie !\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->Action_RepondreEchec(\"Requête non définie !\");\n\t\t}\n\t}", "function venta($mysqli,$fecha,$ref,$monto16,$monto0,$iva,$tipo,$factu,$cte){\n\t\t//en todos los casos\n\t\t$table='diario';\n\t\t$tmonto=$monto16+$monto0;\n\t\t$montof=$tmonto+$iva;\n\t\t//inicializa variable resultados\n\t\t\t//calculo del costo de ventas\n\t\t $costoc=$mysqli->query(\"SELECT SUM(haber)FROM inventario WHERE tipomov = 2 AND idoc= $ref\");\n\t\t\t$row=mysqli_fetch_row($costoc);\n\t\t\t$costo=$row[0];\n\t\t\t$costoc->close();\t\n\t\t\t//si existe el costo de ventas?\n\t\t\tif($costo!=''){\n\t\t\t\ttry {\n\t\t\t\t\t$mysqli->autocommit(false);\n\t\t\t\t\t//abono a inventario 115.01\n\t\t\t\t\t$abono=\"115.01\";\n\t\t\t\t\toperdiario($mysqli,$abono,1,1,$ref,$costo,$fecha,$factu);\n\t\t\t\t\t//cargo a costo de ventas 501.01\n\t\t\t\t\t$cargo=\"501.01\";\n\t\t\t\t\toperdiario($mysqli,$cargo,1,0,$ref,$costo,$fecha,$factu);\n\t\t\t\t\t//abono a ventas segun tasa\n\t\t\t\t\t//ventas tasa general \n\t\t\t\t\t\t$abono=\"401.01\";\n\t\t\t\t\t\toperdiario($mysqli,$abono,1,1,$ref,$monto16,$fecha,$factu,$cte);\n\t\t\t\t\t//ventas tasa 0 \n\t\t\t\t\t\t$abono=\"401.04\";\n\t\t\t\t\t\toperdiario($mysqli,$abono,1,1,$ref,$monto0,$fecha,$factu,$cte);\n\t\t\t\t\t//movimientos por tipo de venta\n\t\t\t\t\t\tswitch($tipo){\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t//mostrador- cargo a caja y efectivo 101.01\n\t\t\t\t\t\t\t\t$cargo=\"101.01\";\n\t\t\t\t\t\t\t\toperdiario($mysqli,$cargo,1,0,$ref,$montof,$fecha,$factu);\n\t\t\t\t\t\t\t\t//iva trasladado cobrado 208.01\n\t\t\t\t\t\t\t\t$abono=\"208.01\";\n\t\t\t\t\t\t\t\toperdiario($mysqli,$abono,1,1,$ref,$iva,$fecha,$factu);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t//contado x ahora igual a anterior, luego se manda al cobro\n\t\t\t\t\t\t\t\t//mostrador- cargo a caja y efectivo 101.01\n\t\t\t\t\t\t\t\t$cargo=\"101.01\";\n\t\t\t\t\t\t\t\toperdiario($mysqli,$cargo,1,0,$ref,$montof,$fecha,$factu);\n\t\t\t\t\t\t\t\t//iva trasladado cobrado 208.01\n\t\t\t\t\t\t\t\t$abono=\"208.01\";\n\t\t\t\t\t\t\t\toperdiario($mysqli,$abono,1,1,$ref,$iva,$fecha,$factu);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t//credito cargo a clientes\n\t\t\t\t\t\t\t\t$cargo=\"105.01\";\n\t\t\t\t\t\t\t\toperdiario($mysqli,$cargo,1,0,$ref,$montof,$fecha,$factu,$cte);\n\t\t\t\t\t\t\t\t//iva trasladado no cobrado 209.01\n\t\t\t\t\t\t\t\t$abono=\"209.01\";\n\t\t\t\t\t\t\t\toperdiario($mysqli,$abono,1,1,$ref,$iva,$fecha,$factu);\t\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}\n\t\t\t\t\t\n\t\t\t\t\t//efectuar la operacion\n\t\t\t\t\t$mysqli->commit();\n\t\t\t\t $resul=0;\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t//error en las operaciones de bd\n\t\t\t\t $mysqli->rollback();\n\t\t\t\t \t$resul=-2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t//no hay costo de ventas\n\t\t\t\t$resul=-1;\n\t\t\t}\n\t\t\n\t\t return $resul;\n}", "function reporteCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_sel';\n\t\t$this->transaccion='ADQ_COTREP_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->setCount(false);\n\t\t\n\t\t$this->setParametro('id_cotizacion','id_cotizacion','int4');\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('estado','varchar');\n\t\t$this->captura('fecha_adju','date');\n\t\t$this->captura('fecha_coti','date');\n\t\t$this->captura('fecha_entrega','date');\n\t\t$this->captura('fecha_venc','date');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('moneda','varchar');\n\t\t$this->captura('id_proceso_compra','int4');\n\t\t$this->captura('codigo_proceso','varchar');\n\t\t$this->captura('num_cotizacion','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('id_proveedor','int4');\n\t\t$this->captura('desc_proveedor','varchar');\n\t\t$this->captura('id_persona','int4');\n\t\t$this->captura('id_institucion','int4');\n\t\t$this->captura('dir_per', 'varchar');\n\t\t$this->captura('tel_per1', 'varchar');\n\t\t$this->captura('tel_per2', 'varchar');\n\t\t$this->captura('cel_per','varchar');\n\t\t$this->captura('correo','varchar');\n\t\t$this->captura('nombre_ins','varchar');\n\t\t$this->captura('cel_ins','varchar');\n\t\t$this->captura('dir_ins','varchar');\n\t\t$this->captura('fax','varchar');\n\t\t$this->captura('email_ins','varchar');\n\t\t$this->captura('tel_ins1','varchar');\n\t\t$this->captura('tel_ins2','varchar');\t\t\n\t\t$this->captura('lugar_entrega','varchar');\n\t\t$this->captura('nro_contrato','varchar');\t\t\n\t\t$this->captura('numero_oc','varchar');\n\t\t$this->captura('obs','text');\n\t\t$this->captura('tipo_entrega','varchar');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function descontar_reservados_mov($id_mov,$id_dep,$anular=0)\r\n{\r\nglobal $db,$_ses_user,$titulo_pagina;\r\n\r\n $db->StartTrans();\r\n //por cada producto seleccionado desde el proveedor de tipo stock\r\n //ingresamos la cantidad dada, en la parte de reservados de ese\r\n //producto, en ese stock, bajo ese deposito (todo esto contenido)\r\n //en diferentes variables\r\n $items_stock=get_items_mov($id_mov);\r\n\r\n for($i=0;$i<$items_stock['cantidad'];$i++)\r\n {\r\n $id_prod_esp=$items_stock[$i][\"id_prod_esp\"];\r\n $cantidad=$items_stock[$i][\"cantidad\"];\r\n $id_detalle_movimiento=$items_stock[$i][\"id_detalle_movimiento\"];\r\n if($anular){\r\n $comentario_stock=\"Cancelacion de reserva de productos por anulación del $titulo_pagina Nº $id_mov\";\r\n $id_tipo_movimiento=9;\r\n }\r\n else {\r\n $comentario_stock=\"Utilización de los productos reservados por el $titulo_pagina Nº $id_mov\";\r\n $id_tipo_movimiento=7;\r\n }\r\n\r\n cancelar_reserva($id_prod_esp,$cantidad,$id_dep,$comentario_stock,$id_tipo_movimiento,\"\",$id_detalle_movimiento);\r\n\r\n }//de for($i=0;$i<$items_rma['cantidad'];$i++)\r\n\r\n $db->CompleteTrans();\r\n}", "function adjudicarTodo(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_ADJTODO_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function attaquerPerso(Personnage $otherPerso){\n\n // calculs attaque\n $attaque_name = $this->getTheName();\n $attaque_this = $this->getTheAttac();\n $desAt3 = $this->lancerDes(3)[0];\n $tot_attaque = $attaque_this+$desAt3;\n\n\n // calculs défense\n $defense_name = $otherPerso->getTheName();\n $defense_otherPerso = $otherPerso->getThedefense();\n $desDef3 = $otherPerso->lancerDes(3)[0];\n $tot_defense = $defense_otherPerso+$desDef3;\n\n // Attaque plus forte que la défense\n if($tot_attaque>$tot_defense){\n $blesse = $tot_attaque-$tot_defense;\n $reste_vie = $otherPerso->getTheEndurance()-$blesse;\n $otherPerso->setTheEndurance($reste_vie);\n\n echo \"<p>$defense_name a été blessé par $attaque_name:<br>Défense: $defense_otherPerso + $desDef3 (3 dés de 6) = <strong>$tot_defense</strong> | Contre | Attaque: $attaque_this + $desAt3 (3 dés de 6) = <strong>$tot_attaque</strong> = -$blesse pour $defense_name</p>\";\n\n // le défenseur est mort\n if($otherPerso->getTheEndurance()<=0){\n $otherPerso->estMort($this);\n exit();\n }\n }else{\n echo \"<p>$defense_name n'a pas été blessé par $attaque_name:<br>Défense: $defense_otherPerso + $desDef3 (3 dés de 6) = <strong>$tot_defense</strong> | Contre | Attaque: $attaque_this + $desAt3 (3 dés de 6) = <strong>$tot_attaque</strong></p>\";\n }\n\n }", "function formulaires_publication_ouverte_agenda_traiter_dist()\n{\n\t$message = array();\n\t$values = array();\n\t$values['etape'] \t\t= _request('etape');\t\t\t// etape actuelle\n\t$values['id_article']\t \t= _request('id_article');\t\t// id de l'article temporaire\n\t$values['type']\t\t\t= _request('type');\t\t\t// article ou evenement ?\n\t$values['id_rubrique'] \t\t= _request('id_rubrique');\t\t// rubrique de la contrib\n\t\n\t$values['jour_evenement'] \t= _request('jour_evenement'); \t\t// jour de l'événement\n\t$values['mois_evenement'] \t= _request('mois_evenement'); \t\t// mois de l'événement\n\t$values['annee_evenement'] \t= _request('annee_evenement'); \t\t// annee de l'événement\n\t$values['heure_evenement'] \t= _request('heure_evenement');\t \t// heure de l'événement\n\t$values['date_evenement'] = _request('date_evenement');\n\t$values['lieu_evenement']\t= _request('lieu_evenement');\t\t// lieu de l'evenement\n\t$values['ville_evenement']\t= _request('ville_evenement');\t\t// ville du lieu\n\t$values['adresse_evenement']\t= _request('adresse_evenement');\t// adresse du lieu\n\t$values['tel_evenement']\t= _request('tel_evenement');\t\t// tel du lieu\n\t$values['web_evenement']\t= _request('web_evenement');\t\t// siteweb du lieu\n\t$values['email_evenement']\t= _request('email_evenement');\t\t// email du lieu\n\t$values['lieu_evenement_existe']= _request('lieu_evenement_existe');\t// id du lieu de l'evenement\n\t\n\t$values['titre'] \t\t= _request('titre');\t\t\t// titre de la contrib\n\t$values['texte'] \t\t= _request('texte');\t\t\t// texte de la contrib\n\t$values['pseudo'] \t\t= _request('pseudo');\t\t\t// pseudo ou nom de l'auteur\n\t$values['email'] \t\t= _request('email');\t\t\t// email de l'auteur\n\t$values['mots'] \t\t= _request('mots');\t\t\t// les mots-clés\n\t$values['mise_en_edito'] = _request('mise_en_edito');\n\t$values['edito_complet'] = _request('edito_complet');\n\t// focus\n\t$values['mot_focus'] = _request('mot_focus');\n\t$values['date'] = _request('date');\n\n\t$values = indymedia_traiter_article($values);\n\n\t/*\n\t * Statut : si pré-visualisation, alors l'article est \"en redaction\" (prepa)\n\t *\tsi publication alors l'article est \"proposé\" (prop) ou publié\n\t */\n\t$values['statut'] = indymedia_statut_article($values['id_article']);\t\n\t/*\n\t * tester si nouvel article a publier\n\t */\t\n\tif (($values['statut']==\"prepa\") && _request('publier'))\n\t{\t\t\t\n\t\t/* tester si rubrique en attente activée */\n\t\t$en_attente_defaut = lire_config('indymedia/en_attente_defaut');\n\t\t$en_attente_actif = lire_config('indymedia/en_attente_actif');\n\t\tif ($en_attente_defaut == 'en_attente_defaut' && $en_attente_actif == 'en_attente_actif' ){\n\t\t\t// si rubrique en attente activée\n\t\t\t$values['statut'] = \"prop\";\n\t\t}\n\t\telse{\n\t\t\t// sinon publication directe\n\t\t\t$values['statut'] = \"publie\";\n\t\t}\n\t}\n\n\tsql_updateq(\n\t\t'spip_articles',\n\t\tarray(\n\t\t\t'titre' => $values['titre'],\n\t\t\t'id_rubrique' => $values['id_rubrique'],\n\t\t\t'texte' => $values['texte'],\n\t\t\t'statut' => $values['statut'],\n\t\t\t'lang' => $values['langue'],\n\t\t\t'id_secteur' => $values['id_secteur'],\n\t\t\t'date' => $values['date'],\n\t\t\t'date_debut_indy' => $values['date_debut_indy'],\n\t\t\t'date_modif' => $values['date_modif'],\n\t\t\t'extra' => $values['extra']\n\t\t),\n\t\tarray(\n\t\t\t'id_article = '.$values['id_article']\n\t\t)\n\t);\n\n\tif (_request('publier'))\n\t{\n\t\tindymedia_ajout_mots($values['id_article'],$values['mots']);\n\t\tindymedia_traiter_valeurs_edito($values);\n\n\t\tif ($values['id_lieu'])\tindymedia_ajout_lieu_lien($values['id_article'],$values['id_lieu']);\n\t\telse if ($values['lieu_evenement']) indymedia_ajout_nouveau_lieu($values['id_article'],$values);\n\n\t\t/* Nettoyage d'articles non termines */\n\t\tindymedia_nettoyage();\t\t\t\n\t\t/* Notif admin\t */\n\t\tindymedia_notifier($values);\n\t\t\n\t\tif (lire_config('indymedia/en_attente_defaut') == 'en_attente_defaut' && lire_config('indymedia/en_attente_actif') == 'en_attente_actif' ){\n\t\t\t$message['redirect'] = generer_url_public(\"attente\",\"message_publication=ok\");\n\t\t}\n\t\telse{\n\t\t\t$message['redirect'] = generer_url_public(\"article\",\"id_article=\".$values['id_article'].\"&message_publication=ok&var_mode=recalcul\");\n\t\t}\n\t}\n\n\treturn $message;\n}", "public function rechargeJulaCarte()\n {\n $fkagence = $this->userConnecter->fk_agence;\n $data['lang'] = $this->lang->getLangFile($this->getSession()->getAttribut('lang'));\n $telephone = trim(str_replace(\"+\", \"00\",$this->utils->securite_xss($_POST['phone'])));\n $data['benef']= $this->julaModel->beneficiaireByTelephone1($telephone);\n $data['soldeAgence']= $this->utils->getSoldeAgence($fkagence);\n\n $params = array('view' => 'jula/recharge-jula-carte');\n $this->view($params,$data);\n }", "public function calcul_com($palier, $montant_vnt_ht, $ca, $niveau)\n{\n\n $commission = 0;\n $tab = array();\n \n // on retire l'encaissé actuel parcequ'il fait déjà partir du ca encaissé\n $ca -= $montant_vnt_ht;\n // dd($montant_vnt_ht);\n // à partir du niveau actuel, on avance sur le palier\n for ($i=$niveau; $i<count($palier);$i++){\n if ($ca + $montant_vnt_ht <= ($palier[$i])[3] || $i == count($palier) - 1){\n $commission += ($montant_vnt_ht / 100) * ($palier[$i])[1];\n $tab[] = array($montant_vnt_ht,($palier[$i])[1]);\n break;\n }\n else {\n $diff = ($palier[$i])[3] - $ca;\n $commission += ($diff / 100) * ($palier[$i])[1];\n $montant_vnt_ht -= $diff;\n\n $tab[] = array($diff,($palier[$i])[1]);\n \n // echo(\"Ajout à la commission:\". ($diff / 100) * ($palier[$i])[1]);\n // echo(\"reste:\". $montant_vnt_ht);\n $ca += $diff;\n }\n }\n\n $tabs = array($tab,$commission);\n return $tabs;\n}", "public function trocarCanal($canal);", "function transaccion(){\n\t\t\t$this->conexion = new conexion();\n\t\t\t$this->conn = $this->conexion->enlace();\n\t\t}", "function etape_1(&$repete) {\n global $message,$Dossier,$Cabinet, $deval, $self, $tcabinet, $tville, $t_diab;\n\n $req=\"SELECT cabinet, total_diab2, nom_cab, region \".\n \"FROM account \".\n \"WHERE region!='' and infirmiere!='' \".\n \"GROUP BY nom_cab \".\n \"ORDER BY nom_cab \";\n\n $res=mysql_query($req) or die(\"erreur SQL:\".mysql_error().\"<br>$req\");\n\n $reg=array();\n while(list($cab, $total_diab2, $ville, $region) = mysql_fetch_row($res)) {\n\n $t_diab[$cab]=0;\n\n $tville[$cab]=$ville;\n\n $regions[$cab]=$region;\n $nb_dossiers[$cab]=0;\n $rcva[$cab]=0;\n $nb_dossiers[$region]=0;\n $rcva[$region]=0;\n\n if(!in_array($region, $reg)){\n $reg[]=$region;\n }\n }\n\n $rcva[\"tot\"]=$nb_dossiers[\"tot\"]=0;\n\n $date1an=date(\"Y\");\n $date1an--;\n $date1an=$date1an.\"-\".date(\"m\").\"-\".date(\"d\");\n\n $date3ans=date(\"Y\");\n $date3ans=$date3ans-3;\n $date3ans=$date3ans.\"-\".date(\"m\").\"-\".date(\"d\");\n\n $req=\"SELECT dossier.id, cabinet, sexe, dnaiss, max(dTA) \".\n \"FROM cardio_vasculaire_depart, dossier WHERE dossier.id=cardio_vasculaire_depart.id \".\n \"and dTA>='$date1an' \".\n \"group by dossier.id\";\n $res=mysql_query($req) or die(\"erreur SQL:\".mysql_error().\"<br>$req\");\n\n while(list($id, $cabinet, $sexe, $dnaiss, $dTA)=mysql_fetch_row($res)){\n if(isset($tville[$cabinet])){\n $req2=\"SELECT dChol, Chol, dHDL, HDL, ldl, traitement FROM \".\n \"cardio_vasculaire_depart WHERE id='$id' and dHDL>'0000-00-00' \".\n \"ORDER BY dChol desc limit 0,1\";\n $res2=mysql_query($req2) or die(\"erreur SQL:\".mysql_error().\"<br>$req2\");\n\n list($dChol, $choltot, $dHDL, $hdl, $ldl, $traitement)=mysql_fetch_row($res2);\n\n $ok=0;\n\n if(($traitement=='Aucun')&&($ldl<=1.6)){//chol tous les 3 ans\n if($dChol>=$date3ans){\n $ok=1;\n }\n }\n else{//Chol tous les ans\n if($dChol>=$date1an){\n $ok=1;\n }\n }\n\n if($ok==1){\n $tension=\"\";\n if($dTA>'0000-00-00'){\n $req2=\"SELECT TaSys FROM cardio_vasculaire_depart WHERE id='$id' and dTA='$dTA'\";\n $res2=mysql_query($req2) or die(\"erreur SQL:\".mysql_error().\"<br>$req2\");\n\n list($tension)=mysql_fetch_row($res2);\n\n }\n\n $req2=\"SELECT HVG from cardio_vasculaire_depart WHERE id='$id' and (HVG='oui' or HVG='non') \".\n \"ORDER by date DESC limit 0,1\";\n $res2=mysql_query($req2) or die(\"erreur SQL:\".mysql_error().\"<br>$req2\");\n\n list($ventricule)=mysql_fetch_row($res2);\n\n $req2=\"SELECT surcharge_ventricule from cardio_vasculaire_depart WHERE id='$id' and \".\n \"(surcharge_ventricule='oui' or surcharge_ventricule='non') \".\n \"ORDER by date DESC limit 0,1\";\n $res2=mysql_query($req2) or die(\"erreur SQL:\".mysql_error().\"<br>$req2\");\n\n list($surcharge_ventricule)=mysql_fetch_row($res2);\n\n $req2=\"SELECT tabac from cardio_vasculaire_depart WHERE id='$id' and \".\n \"(tabac='oui' or tabac='non') \".\n \"ORDER by date DESC limit 0,1\";\n $res2=mysql_query($req2) or die(\"erreur SQL:\".mysql_error().\"<br>$req2\");\n\n list($tab)=mysql_fetch_row($res2);\n\n $calcul=1;\n if(($tab!=\"oui\")&&($tab!=\"non\")){\n $calcul=0;\n }\n if($tension==''){\n $calcul=0;\n }\n if($choltot==''){\n $calcul=0;\n }\n if($hdl==''){\n $calcul=0;\n }\n if(($ventricule!=\"oui\")&&($ventricule!=\"non\")&&($surcharge_ventricule!=\"oui\")&&($surcharge_ventricule!=\"non\")){\n $calcul=0;\n }\n\n if($calcul==1){\n $age=get_age($dnaiss, date(\"Y-m-d\"));\n\n $req2=\"SELECT dossier_id from suivi_diabete WHERE dossier_id='$id' \";\n $res2=mysql_query($req2) or die(\"erreur SQL:\".mysql_error().\"<br>$req2\");\n if(mysql_num_rows($res2)>0){\n $diab=1;\n }\n else{\n $diab=0;\n }\n $rcv=get_rcva($sexe, $age, $diab, $tab, $tension, $choltot, $hdl, $ventricule, $surcharge_ventricule);\n $rcva[$cabinet]=$rcva[$cabinet]+$rcv;\n $nb_dossiers[$cabinet]=$nb_dossiers[$cabinet]+1;\n\n $rcva[\"tot\"]=$rcva[\"tot\"]+$rcv;\n $nb_dossiers[\"tot\"]=$nb_dossiers[\"tot\"]+1;\n\n $nb_dossiers[$regions[$cabinet]]=$nb_dossiers[$regions[$cabinet]]+1;\n $rcva[$regions[$cabinet]]=$rcva[$regions[$cabinet]]+$rcv;\n }\n }\n\n }\n }\n\n $mois=array('01'=>'Janvier', '02'=>'Février', '03'=>'Mars', '04'=>'Avril', '05'=>'Mai', '06'=>'Juin', '07'=>'Juillet', '08'=>'Août', '09'=>'Septembre', '10'=>'Octobre',\n '11'=>'Novembre', '12'=>'Décembre');\n\n echo '<b>Données à la date du jour : '.date('d').\" \".$mois[date('m')].\" \".date('Y').\"</b>\";\n\n\n\n echo \"<br><br><table border='1'><td></td><th>Moyenne</th>\";\n\n foreach($reg as $region){\n echo \"<th>$region</th>\";\n }\n\n foreach($tville as $ville){\n echo \"<th>$ville</th>\";\n }\n\n\n echo \"</tr><tr><td>RCV moyen sur l'ensemble du cabinet</td>\";\n\n\n $rcv_moy=round($rcva[\"tot\"]/$nb_dossiers[\"tot\"], 2);\n echo \"<td align='right' nowrap>$rcv_moy %</td>\";\n\n foreach($reg as $region){\n if($nb_dossiers[$region]==0){\n $rcv_moy=\"ND\";\n }\n else{\n $rcv_moy=round($rcva[$region]/$nb_dossiers[$region], 2);\n }\n echo \"<td align='right' nowrap>$rcv_moy %</td>\";\n }\n\n foreach($tville as $cab=>$ville){\n if($nb_dossiers[$cab]==0){\n $rcv_moy=\"ND\";\n }\n else{\n $rcv_moy=round($rcva[$cab]/$nb_dossiers[$cab], 2);\n }\n echo \"<td align='right' nowrap>$rcv_moy %</td>\";\n }\n\n echo \"</tr><tr><td>Nombre de patients</td><td align='right'>\".$nb_dossiers[\"tot\"].\"</td>\";\n foreach($reg as $region){\n echo \"<td align='right'>\".$nb_dossiers[$region].\"</td>\";\n }\n\n foreach($tville as $cab=>$ville){\n echo \"<td align='right'>\".$nb_dossiers[$cab].\"</td>\";\n }\n\n echo \"</tr><tr><td>RCV total</td><td align='right'>\".$rcva[\"tot\"].\"</td>\";\n foreach($reg as $region){\n echo \"<td align='right'>\".$rcva[$region].\"</td>\";\n }\n\n foreach($tville as $cab=>$ville){\n echo \"<td align='right'>\".$rcva[$cab].\"</td>\";\n }\n\n\n echo \"</table><br><br>\";\n\n $annee0=2004;\n $mois0=3;\n\n $annee=date('Y');\n $mois=date('m');\n\n $mois--;\n\n\n if($mois<3)\n {\n $annee--;\n $mois=12;\n }\n elseif(($mois>=3)&&($mois<6))\n {\n $mois=3;\n }\n elseif(($mois>=6)&&($mois<9))\n {\n $mois=6;\n }\n elseif(($mois>=9)&&($mois<12))\n {\n $mois=9;\n }\n\n $jour[3]=$jour[12]=31;\n $jour[6]=$jour[9]=30;\n\n while(($annee>$annee0)||(($annee==$annee0)&&($mois>=$mois0)))\n {\n if($mois<10)\n {\n $date=$annee.'-0'.$mois.'-'.$jour[$mois];\n }\n else\n {\n $date=$annee.'-'.$mois.'-'.$jour[$mois];\n }\n tableau($date, $regions);\n\n $mois=$mois-3;\n\n if($mois<=0)\n {\n $mois=$mois+12;\n $annee--;\n }\n }\n}", "public function transactServicePro__()\n {\n //var_dump($this->paramGET); die();\n $param = [\n \"button\" => [\n \"modal\" => [\n [\"reporting/detailTransactServModal\", \"reporting/detailTransactServModal\", \"fa fa-search\"],\n ],\n \"default\" => [\n ]\n ],\n \"tooltip\" => [\n \"modal\" => [\"Détail\"]\n ],\n \"classCss\" => [\n \"modal\" => [],\n \"default\" => [\"confirm\"]\n ],\n \"attribut\" => [],\n \"args\" => $this->paramGET,\n \"dataVal\" => [\n ],\n \"fonction\" => [\"date_transaction\"=>\"getDateFR\",\"montant\"=>\"getFormatMoney\",\"commission\"=>\"getFormatMoney\"]\n ];\n $this->processing($this->reportingModels, 'getAllTransactionService', $param);\n }", "public function comerce_alignet(Request $request){\n\n if($request->has('authorizationResult')){\n //Obteniendo la autorización de payme\n $authorizationResult = $request->input('authorizationResult');\n $purchaseOperationNumber = $request->input('purchaseOperationNumber');\n\n //Obteniendo la orden de acuerdo a la respuesta de payme\n $order = Order::where('order_code', $purchaseOperationNumber)->first();\n\n // Validacion de respuesta de payme\n // solo si el pago es autorizado se descuenta del inventario y se envía a urbaner\n if($authorizationResult === \"00\"){\n // Se actualiza la orden de compra de acuerdo de acuerdo a si ha elegido\n // delivery o no:\n if($order->delivery){\n //P: Pending, A: Atended, R: Rejected payment, D: Delivery pendiente\n $order->update([\n 'status' => 'D'\n ]);\n\n //Ademas se genera la orden en urbaner\n $this->storeUrbaner($order);\n\n }else{\n $order->update(['status' => 'A']);\n }\n\n //Actualizando el inventario de acuerdo a la compra\n $this->inventory($order);\n }else{\n // Se actualiza la orden de compra de acuerdo como rechazado:\n //P: Pending, A: Atended, R: Rejected payment, D: Delivary pendiente\n $order->update(['status' => 'R']);\n }\n };\n\n return redirect()->away('https://regalalo.pe/mi-cuenta');\n //return redirect()->away('http://localhost:4200/#/mis-pedidos');\n }", "private function reativaMatricula(Matricula $oMatricula) {\n\n $this->atualizarConclusaoDaMatricula($oMatricula, 'N');\n /**\n * Gera Historico do movimento da matricula\n */\n $sDescricaoMovimento = \"ENCERRAMENTO DE AVALIAÇÕES CANCELADO EM \";\n $sDescricaoMovimento .= date(\"d/m/Y\", db_getsession(\"DB_datausu\"));\n\n $oDaoMatriculaMov = db_utils::getDao(\"matriculamov\");\n $oDaoMatriculaMov->ed229_i_matricula = $oMatricula->getCodigo();\n $oDaoMatriculaMov->ed229_i_usuario = db_getsession(\"DB_id_usuario\");\n $oDaoMatriculaMov->ed229_c_procedimento = \"CANCELAR ENCERRAMENTO DE AVALIAÇÕES\";\n $oDaoMatriculaMov->ed229_t_descr = $sDescricaoMovimento;\n $oDaoMatriculaMov->ed229_d_dataevento = date(\"Y-m-d\", db_getsession(\"DB_datausu\"));\n $oDaoMatriculaMov->ed229_c_horaevento = date(\"H:i\");\n $oDaoMatriculaMov->ed229_d_data = date(\"Y-m-d\", db_getsession(\"DB_datausu\"));\n $oDaoMatriculaMov->incluir(null);\n if ($oDaoMatriculaMov->erro_status == 0) {\n\n $sErroMensagem = \"Erro ao salvar dados da movimentação da matrícula.\\n\";\n $sErroMensagem .= \"Erro Técnico: {$oDaoMatriculaMov->erro_msg}\";\n throw new BusinessException($sErroMensagem);\n }\n }", "public function getCouleur()\n {\n return $this->couleur;\n }", "function evt__form_pase__modificacion($datos)\r\n\t{\r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n $datos['id_cargo']=$car['id_cargo'];\r\n \r\n \r\n //print_r($pase_nuevo);exit;\r\n if($this->dep('datos')->tabla('pase')->esta_cargada()){//es modificacion\r\n $pas=$this->dep('datos')->tabla('pase')->get();\r\n if($pas['tipo']<>$datos['tipo']){\r\n toba::notificacion()->agregar('no puede cambiar el tipo del pase', 'info'); \r\n }else{\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n }\r\n }else{//es alta de un pase nuevo\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n $pase_nuevo=$this->dep('datos')->tabla('pase')->get();\r\n $p['id_pase']=$pase_nuevo['id_pase'];\r\n $this->dep('datos')->tabla('pase')->cargar($p);//lo cargo para que se sigan viendo los datos en el formulario\r\n if($datos['tipo']=='T'){//si el pase es temporal\r\n //ingreso un cargo en la unidad destino\r\n //la ingresa con fecha de alta = desde\r\n $nuevo_cargo['id_persona']=$car['id_persona'];\r\n $nuevo_cargo['codc_carac']=$car['codc_carac'];\r\n $nuevo_cargo['codc_categ']=$car['codc_categ'];\r\n $nuevo_cargo['codc_agrup']=$car['codc_agrup'];\r\n $nuevo_cargo['chkstopliq']=$car['chkstopliq'];\r\n $nuevo_cargo['fec_alta']=$datos['desde'];\r\n $nuevo_cargo['pertenece_a']=$datos['destino'];\r\n $nuevo_cargo['generado_x_pase']=$pase_nuevo['id_pase']; \r\n $res=$this->controlador()->dep('datos')->tabla('cargo')->agregar_cargo($nuevo_cargo);\r\n if($res==1){\r\n toba::notificacion()->agregar('Se ha creado un nuevo cargo en el destino del pase', 'info');\r\n }\r\n \r\n }else{//pase definitivo entonces tengo que modificar la fecha del cargo en la unidad destino con la fecha de alta del definitivo\r\n $nuevafecha = strtotime ( '-1 day' , strtotime ( $datos['desde'] ) ) ;\r\n $nuevafecha = date ( 'Y-m-d' , $nuevafecha );\r\n //print_r($nuevafecha);exit;\r\n $salida=$this->controlador()->dep('datos')->tabla('cargo')->modificar_alta($datos['id_cargo'],$datos['destino'],$datos['desde']);\r\n //le coloca fecha de baja al cargo de la unidad origen\r\n $this->controlador()->dep('datos')->tabla('cargo')->finaliza_cargo($datos['id_cargo'],$nuevafecha);\r\n if($salida==1){\r\n toba::notificacion()->agregar('Se ha modificado la fecha del cargo generado a partir del pase temporal', 'info');\r\n }\r\n \r\n } \r\n }\r\n \r\n\t}", "public function contrato()\r\n\t{\r\n\t}", "public function totalcp()\r\n\t{\r\n\t\t$date=date('d/m/Y');\r\n\t\tlist($jour_actuel, $mois_actuel, $annee_actuelle) = explode(\"/\", $date);\r\n\t\t$date_entree = $this->personne->getDate_entree();\r\n\t\tlist( $annee_entree, $mois_entree,$jour_entree) = explode(\"-\", $date_entree);\r\n\t\t$cemule_annees =$annee_actuelle - $annee_entree ;\r\n\t\t$supplument_anciennete =0;\r\n\t\tif (01<=$mois_entree && $mois_entree <=05 && ($annee_actuelle -1 >= $annee_entree) )\r\n\t\t{\r\n\t\t\tif($cemule_annees >=2 )\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 1;\r\n\t\t\t}\r\n\t\t\tif ($cemule_annees >=3 )\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 2;\r\n\t\t\t}\r\n\t\t\tif ($cemule_annees >=5 )\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 3;\r\n\t\t\t}\r\n\t\t\tif ($cemule_annees >=8 )\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 4;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (06<=$mois_entree && $mois_entree <=12 && $cemule_annees >= 3)\r\n\t\t{\r\n\t\t\tif($cemule_annees >=3)\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 1;\r\n\t\t\t}\r\n\t\t\tif ($cemule_annees >=4)\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 2;\r\n\t\t\t}\r\n\t\t\tif ($cemule_annees >=6)\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 3;\r\n\t\t\t}\r\n\t\t\tif ($cemule_annees >=9)\r\n\t\t\t{\r\n\t\t\t\t$supplument_anciennete = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\tif ( $jour_entree <15)\r\n\t\t\t{\r\n\t\t\t$cp = (12-$mois_entree)* 2.25;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$cp = (11-$mois_entree)* 2.25;\r\n\t\t\t}\r\n\t\t\treturn $cp_total = $cp + $supplument_anciennete;\r\n\t}", "function cabecalhoRelatorio($oPdf, $oFiltros, $oTurma) {\n\n $sNomeEscola = $oTurma->getEscola()->getNome();\n $iCodigoReferencia = $oTurma->getEscola()->getCodigoReferencia();\n\n if ( $iCodigoReferencia != null ) {\n $sNomeEscola = \"{$iCodigoReferencia} - {$sNomeEscola}\";\n }\n\n $sDadosCabecalho = $oTurma->getEscola()->getDepartamento()->getInstituicao()->getDescricao().\"\\n\";\n $sDadosCabecalho .= \"SECRETÁRIA MUNICIPAL DE EDUCAÇÃO\".\"\\n\";\n $sDadosCabecalho .= $sNomeEscola.\"\\n\\n\";\n $sDadosCabecalho .= $oFiltros->sTituloCabecalho.\"\\n\";\n $sDadosCabecalho .= $oTurma->getBaseCurricular()->getCurso()->getEnsino()->getNome().\"\\n\\n\\n\";\n\n $oPdf->SetFont('arial', 'b', 8);\n $oPdf->SetXY(90, 10);\n $oPdf->MultiCell(100, 3, $sDadosCabecalho, 0, \"C\");\n\n $iPosicaoY = $oPdf->GetY();\n\n /**\n * Verificamos se existe o logo do municipio para impressao\n */\n if ($oTurma->getEscola()->getLogo() != '') {\n\n $oPdf->SetXY(30, 10);\n $oPdf->Image(\"imagens/files/\".$oTurma->getEscola()->getLogo(), $oPdf->GetX(), $oPdf->GetY()-6, 18);\n }\n\n /**\n * Verificamos se existe o logo da escola para impressao\n */\n if ($oTurma->getEscola()->getLogoEscola() != '') {\n\n $oPdf->SetXY(90, 10);\n $oPdf->Image(\"imagens/\".$oTurma->getEscola()->getLogoEscola(), 230, $oPdf->GetY()-6, 18);\n }\n\n $oPdf->SetXY(30, $iPosicaoY);\n $oPdf->Cell(60, 4, \"Etapa: {$oFiltros->sEtapa}\", 0, 0, \"C\");\n $oPdf->Cell(20, 4, \"Ano: {$oFiltros->iAno}\", 0, 0, \"C\");\n $oPdf->Cell(100, 4, \"Turma: {$oFiltros->sTurma}\", 0, 0, \"C\");\n $oPdf->Cell(30, 4, \"Turno: {$oFiltros->sTurno}\", 0, 1, \"C\");\n\n $oPdf->SetXY(10, 45);\n $oPdf->SetFont('arial', 'b', 7);\n $oPdf->Cell($oFiltros->iColunaNumero, $oFiltros->iAlturaLinhaCabecalho, \"Nº\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaAluno, $oFiltros->iAlturaLinhaCabecalho, \"Nome do Aluno\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaSexo, $oFiltros->iAlturaLinhaCabecalho, \"Sexo\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaDataNascimento, $oFiltros->iAlturaLinhaCabecalho, \"Data de Nascimento\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaIdadeMeses, $oFiltros->iAlturaLinhaCabecalho, \"Idade / Meses\", 1, 0, \"C\");\n\n switch ($oFiltros->sTipoModelo) {\n\n /**\n * 1 - Matricula Inicial\n * 2 - Demais Cursos\n */\n case (\"12\"):\n\n $oPdf->Cell($oFiltros->iColunaSituacaoMatricula, $oFiltros->iAlturaLinhaCabecalho, \"Situação de Matrícula\", 1, 0, \"C\");\n\n if ($oFiltros->iPreEscola == 2) {\n $oPdf->Cell($oFiltros->iColunaPreEscola, $oFiltros->iAlturaLinhaCabecalho, \"Pré-Escola\", 1, 0, \"C\");\n }\n break;\n\n /**\n * 2 - Matricula Final\n * 1 - Educacao Infantil\n */\n case (\"21\"):\n\n colunasMatriculaFinal($oPdf, $oFiltros);\n break;\n\n /**\n * 2 - Matricula Final\n * 2 - Demais Cursos\n */\n case (\"22\"):\n\n $oPdf->MultiCell($oFiltros->iColunaSituacaoMatricula, 6, \"Situação de Matrícula\", 1, \"C\");\n $oPdf->SetXY(163, 45);\n colunasMatriculaFinal($oPdf, $oFiltros);\n break;\n }\n\n $oPdf->Cell($oFiltros->iColunaCorRaca, $oFiltros->iAlturaLinhaCabecalho, \"Cor / Raça\", 1, 1, \"C\");\n\n $oFiltros->iPosicaoX = $oPdf->GetX();\n $oFiltros->iPosicaoY = $oPdf->GetY();\n}", "public function retraitEspeceValidation()\n {\n $telephone = $this->utils->securite_xss($_POST['telephone']);\n $fkcarte = $this->utils->securite_xss($_POST['fkcarte']);\n $montant = $this->utils->securite_xss($_POST['montant']);\n $frais = $this->utils->securite_xss($_POST['frais']);\n $fkagence = $this->utils->securite_xss($_POST['fkagence']);\n $typeagence = $this->utils->securite_xss($_POST['typeagence']);\n $codevalidation = $this->utils->securite_xss($_POST['code']);\n $soldecarte = $this->utils->securite_xss($_POST['soldecarte']);\n $cni = $this->utils->securite_xss($_POST['cni']);\n $user_creation = $this->userConnecter->rowid;\n $service = ID_SERVICE_CASHOUT;\n $json = $this->compteModel->calculFraisab($service, $montant);\n $result = json_decode($json);\n if (is_object($result) && array_key_exists('frais', $result)) {\n $frais = $result->frais;\n }\n $numtransact = $this->utils->Generer_numtransaction();\n $statut = 0;\n $commentaire = 'Cashout';\n if ($typeagence == 3) {\n $montant_total = $montant + $frais;\n $montant_agence = $montant + ($frais * 0.65);\n $montant_commission = $frais * 0.35;\n $commentaire = 'Cashout Partenaire';\n $service = ID_SERVICE_CASHOUTPARTENAIRE;\n } else {\n $montant_total = $montant;\n $montant_agence = $montant;\n }\n if ($codevalidation != '' && $telephone != '' && $montant > 0 && $frais >= 0 && strlen($numtransact) == 15) {\n if ($soldecarte >= $montant_total) {\n $codeValidation = $this->utils->rechercherCodeRetrait($codevalidation, $montant);\n if ($codeValidation > 0) {\n $typecompte = $this->compteModel->getTypeCompte($telephone);\n if ($typecompte == 0) {\n $username = 'Numherit';\n $userId = 1;\n $token = $this->utils->getToken($userId);\n $soldeavant = $this->api_numherit->soldeCompte($username, $token, $telephone);\n $jjs = json_decode($soldeavant);\n $soldeavant = $jjs->{'statusMessage'};\n $response = $this->api_numherit->debiterCompte($username, $token, $telephone, $montant_total, $service, $user_creation, $fkagence);\n $decode_response = json_decode($response);\n if ($decode_response->{'statusCode'} == 000) {\n $soldeapres = $this->api_numherit->soldeCompte($username, $token, $telephone);\n $jjs = json_decode($soldeapres);\n $soldeapres = $jjs->{'statusMessage'};\n @$this->utils->addMouvementCompteClient($numtransact, $soldeavant, $soldeapres, $montant, $telephone, $operation = \"DEBIT\", $commentaire = \"RETRAITESPECE\");\n\n $statut = 1;\n $message = $decode_response->{'statusMessage'};\n $transactId = $decode_response->{'NumTransaction'};\n $this->utils->validerCodeRetrait($codeValidation, $cni);\n $this->agenceModel->crediter_soldeAgence($montant_agence, $fkagence);\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactId);\n\n if ($typeagence == 3) {\n $crediterCarteCommission = $this->utils->crediter_carteParametrable($montant_commission, 1);\n if ($crediterCarteCommission == 1) {\n $observation = 'Commission Retrait Espece';\n $this->utils->addCommission($montant_commission, $service, $fkcarte, $observation, $fkagence);\n } else {\n $observation = 'Commission Retrait Espece à faire';\n $this->utils->addCommission_afaire($montant_commission, $service, $fkcarte, $observation, $fkagence);\n }\n }\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $decode_response->{'statusMessage'}, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('ok') . '/' . base64_encode($telephone) . '/' . base64_encode($montant) . '/' . base64_encode($frais) . '/' . base64_encode($numtransact));\n } else {\n $message = $decode_response->{'statusMessage'};\n $transactId = 0;\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' - ' . $message, $frais, $fkagence, $transactId);\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $decode_response->{'statusMessage'}, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('nok1') . '/' . base64_encode($message));\n }\n } else if ($typecompte == 1) {\n $numcarte = $this->compteModel->getNumCarte($telephone);\n $numeroserie = $this->utils->returnCustomerId($numcarte);\n $last4digitclient = $this->utils->returnLast4Digits($numcarte);\n $statut = 0;\n $json = $this->api_gtp->UnLoadCard($numtransact, $numeroserie, $last4digitclient, $montant_total, 'XOF', 'RetraitEspece');\n $return = json_decode(\"$json\");\n $response = $return->{'ResponseData'};\n if ($response != NULL && is_object($response)) {\n if (array_key_exists('ErrorNumber', $response)) {\n $errorNumber = $response->{'ErrorNumber'};\n $message = $response->{'ErrorMessage'};\n $transactId = 0;\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactId);\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $errorNumber . '-' . $message, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('nok1') . '/' . base64_encode($message));\n } else {\n $transactionId = $response->{'TransactionID'};\n $message = 'Succes';\n if ($transactionId > 0) {\n $statut = 1;\n $this->utils->validerCodeRetrait($codeValidation, $cni);\n $this->agenceModel->crediter_soldeAgence($montant_agence, $fkagence);\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactionId);\n if ($typeagence == 3) {\n $crediterCarteCommission = $this->utils->crediter_carteParametrable($montant_commission, 1);\n if ($crediterCarteCommission == 1) {\n $observation = 'Commission Retrait Espece';\n $this->utils->addCommission($montant_commission, $service, $fkcarte, $observation, $fkagence);\n } else {\n $observation = 'Commission Retrait Espece à faire';\n $this->utils->addCommission_afaire($montant_commission, $service, $fkcarte, $observation, $fkagence);\n }\n }\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $message, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('ok') . '/' . base64_encode($telephone) . '/' . base64_encode($montant) . '/' . base64_encode($frais) . '/' . base64_encode($numtransact));\n }\n }\n } else {\n $message = 'Response GTP not object';\n $transactId = 0;\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactId);\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $message, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('nok1') . '/' . base64_encode($message));\n }\n }\n } else {\n $message = 'Code de validation incorrect';\n $transactId = 0;\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactId);\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $message, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('nok2'));\n }\n } else {\n $message = 'Solde compte insuffisant';\n $transactId = 0;\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactId);\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $message, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('nok3'));\n }\n } else {\n $message = 'Paramétres renseignés incorrects';\n $transactId = 0;\n $this->utils->SaveTransaction($numtransact, $service, $montant, $fkcarte, $user_creation, $statut, $commentaire . ' ' . $message, $frais, $fkagence, $transactId);\n $this->utils->log_journal('Retrait compte', 'Téléphone compte:' . $telephone . ' Montant:' . $montant . ' Frais:' . $frais . ' Numtransact:' . $numtransact, $message, 2, $user_creation);\n $this->rediriger('compte', 'validationRetraitCompte/' . base64_encode('nok4') . '/' . base64_encode($telephone));\n }\n }", "function getCreditosComprometidos(){ return $this->getOEstats()->getTotalCreditosSaldo(); }" ]
[ "0.6171186", "0.60245335", "0.5993337", "0.59451747", "0.5928489", "0.5876128", "0.56914407", "0.56448734", "0.56165874", "0.5615523", "0.561118", "0.5557502", "0.5541933", "0.5539782", "0.55296063", "0.5528142", "0.5507307", "0.55041945", "0.5480178", "0.54512435", "0.54403037", "0.5435834", "0.5431326", "0.53718626", "0.5364964", "0.53618306", "0.5361376", "0.5340768", "0.53346324", "0.53033465", "0.5302861", "0.53013736", "0.5300199", "0.53000116", "0.52976966", "0.52920914", "0.52876854", "0.5270883", "0.52643895", "0.5253791", "0.52454597", "0.5244783", "0.5237332", "0.52339816", "0.5222342", "0.52197415", "0.521321", "0.52112556", "0.520373", "0.5191695", "0.51717824", "0.5163235", "0.5158927", "0.5155996", "0.5153003", "0.5152648", "0.5150936", "0.5143564", "0.51329404", "0.5125805", "0.5120349", "0.51161253", "0.5107114", "0.5099533", "0.50940955", "0.50802565", "0.50703806", "0.5069562", "0.5068473", "0.5064883", "0.5064208", "0.50639343", "0.5063166", "0.50561106", "0.5051666", "0.50515586", "0.504224", "0.5040851", "0.50403804", "0.503808", "0.50354546", "0.50346375", "0.5029546", "0.50285316", "0.50211966", "0.50194573", "0.50165045", "0.50008214", "0.50004196", "0.4992918", "0.4987025", "0.49842593", "0.49790156", "0.49773857", "0.49771395", "0.4976118", "0.4973713", "0.4971279", "0.49677643", "0.49657148" ]
0.54293776
23
Liste des factures (actions de relance)
public function liste_commande($commande) { switch ($commande) { case 'get': $id = $this->input->get('fac_id'); if (empty($id)) { return array(); } $query = "(SELECT fac_id AS RowID, fac_id, fac_date, fac_tva, ctc_nom, dvi_correspondant, cor_nom, fac_transmise, fac_relance, fac_contentieux, fac_notes, vef_etat, fac_couleur, fac_masque, fac_fichier, fac_reference, scv_nom, dvi_reference, fac_reprise, fac_montant_htnr, fac_montant_ht, fac_montant_tva, fac_montant_ttc, fac_regle, fac_reste, fac_reste AS solde_du, fac_etat, IF( fac_reste>=0.01 AND fac_etat=2, 1, 0) AS due, ipu_facture, ipu_reglements, rgl_references, dvi_client, dvi_id_comptable, IF(dvi_id_comptable > 0, CAST(dvi_id_comptable AS CHAR(30)), idc_id_comptable) AS ctc_id_comptable, cor_email, ctc_email, IF( dvi_client=0, '', COALESCE(cor_email, ctc_email,'')) AS mail, cor_telephone1, ctc_telephone, IF( dvi_client=0, '', COALESCE(cor_telephone1, ctc_telephone,'')) AS telephone, cor_telephone2, ctc_mobile, IF( dvi_client=0, '', COALESCE(cor_telephone2, ctc_mobile,'')) AS portable, '' AS texte_rappel, fac_id_rappel, IF(fac_id_rappel=0, '', fac_rappel) AS fac_rappel FROM `t_factures` LEFT JOIN `t_commandes` ON `cmd_id` = `fac_commande` LEFT JOIN `t_devis` ON `dvi_id` = `cmd_devis` LEFT JOIN `t_id_comptable` ON (`idc_contact` = `dvi_client` AND `dvi_societe_vendeuse` = `idc_societe_vendeuse`) LEFT JOIN `t_contacts` ON `ctc_id` = `dvi_client` LEFT JOIN `t_correspondants` ON `cor_id` = `dvi_correspondant` LEFT JOIN `t_societes_vendeuses` ON `scv_id` = `dvi_societe_vendeuse` LEFT JOIN `v_etats_factures` ON `vef_id` = `fac_etat` LEFT JOIN ( SELECT `ipu_facture` , GROUP_CONCAT(`ipu_reglement` SEPARATOR ':') AS ipu_reglements, GROUP_CONCAT(`rgl_reference` SEPARATOR ':') AS rgl_references FROM `t_imputations` LEFT JOIN `t_reglements` ON `rgl_id` = `ipu_reglement` WHERE `ipu_inactif` IS NULL GROUP BY `ipu_facture` ORDER BY `ipu_facture` ) AS REGLEMENTS ON fac_id = ipu_facture WHERE `fac_id` = $id ORDER BY `fac_date` DESC , `fac_reference` DESC )"; $q = $this->db->query($query); if ($q->num_rows() == 1) { return $q->result(); } else { return array(); } break; case 'update': $date_rappel = new DateTime($this->input->get('fac_rappel')); $data = array( 'fac_couleur' => $this->input->get('fac_couleur'), 'fac_masque' => $this->input->get('fac_masque'), 'fac_relance' => $this->input->get('fac_relance'), 'fac_rappel' => $date_rappel->format('Y-m-d H:i:s'), 'fac_id_rappel' => $this->input->get('fac_id_rappel'), 'fac_notes' => $this->input->get('fac_notes'), 'fac_contentieux' => $this->input->get('fac_contentieux'), ); $id = $this->input->get('fac_id'); $res = $this->_update('t_factures', $data, $id, 'fac_id'); if ($res !== false) { return 1; } return 0; break; case 'demasque_all': $res = $this->db->query('UPDATE `t_factures` SET fac_masque=0 WHERE `fac_inactif` IS NULL AND `fac_masque` > 0 '); if ($res !== false) { return 1; } return 0; break; default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listarFactura(){\r\n\t\t$this->procedimiento='tesor.ft_factura_sel';\r\n\t\t$this->transaccion='TSR_FAC_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\t\t\t\t\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_factura','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('nro_factura','int4');\r\n\t\t$this->captura('nombre_emisor','varchar');\t\t\r\n\t\t$this->captura('domicilio_emisor','varchar');\r\n\t\t$this->captura('nit_emisor','int4');\r\n\t\t$this->captura('nombre_cliente','varchar');\t\t\r\n\t\t$this->captura('domicilio_cliente','varchar');\r\n\t\t$this->captura('nit_cliente','int4');\r\n\t\t$this->captura('fecha_emision','date');\r\n\t\t\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\t\t\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $factures = $em->getRepository('DonationBundle:facture')->findAll();\n\n return $this->render('facture/index.html.twig', array(\n 'factures' => $factures,\n ));\n }", "function factures_autoriser(){}", "public function listarFilosofia(){\n \n //percorrer estantes pelas categorias para eliminar a categ desnecessaria\n foreach ($this->estante as $this->) {\n // code...\n \n if ($this->getCategoria() == \"FILOSOFIA\"){\n echo \"<h2> LIVROS DE FILOSOFIA </h2>\";\n echo \"\";\n //listar todos os livros:\n foreach ($this->livros as $livro){\n $livro->mostrarDados(); \n }\n } else {\n echo \"NENHUM LIVRO DE FILOSOFIA\";\n }\n \n } \n }", "public function liste() {\n // Charger la vue liste compteur\n $this->loadView('liste', 'content');\n // Lire les compteurs à partir de la bd et formater\n //$reglements = $this->em->selectAll('reglement');\n //$reglements = $this->em->getRefined($reglements);\n $liste = $this->em->selectAll('facture');\n $html = '';\n foreach ($liste as $key => $entity) {\n $state = 'impayée';\n if ($entity->getPaye()) {\n $state = 'payée';\n }\n $consommation = $this->em->selectById('consommation', $entity->getId());\n $compteur = $this->em->selectById('compteur', $consommation->getIdCompteur());\n $html .= '<tr>';\n $html .= '<td>' . $entity->getId() . '</td>';\n $html .= '<td><a href=\"reglements/facture/' . $entity->getNumero() . '\">' . $entity->getNumero() . '</a></td>';\n $html .= '<td>' . $compteur->getNumero() . '</td>';\n $html .= '<td>' . $consommation->getQuantiteChiffre() . ' litres</td>';\n $html .= '<td>' . $entity->getMontant() . ' FCFA</td>';\n $html .= '<td>' . $state . '</td>';\n $html .= '</tr>';\n }\n // Ajouter les compteurs à la vue\n $this->loadHtml($html, 'list');\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $factures = $em->getRepository('BackendBundle:Facture')->findAll();\n\n return $this->render('facture/index.html.twig', array(\n 'factures' => $factures,\n ));\n }", "public function index_fournisseur()\n {\n \n $factureFournisseurs = Facture::where('type','fournisseur')->latest()->get();\n \n // dd($factureFournisseurs);\n \n return view ('facture.index_fournisseur',compact(['factureFournisseurs']));\n\n \n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $this->getFactures($em);\n\t\t\n\t\t$totalRAP = 0;\n\t\tforeach ($entities as $entity) {\n\t\t\t$totalRAP += $entity->getRAP();\n\t\t}\n\n return $this->render('chevPensionBundle:Facture:index.html.twig', array(\n 'entities' => $entities,\n 'montantRAP' => $totalRAP\n ));\n }", "function listarReenvioFactura(){\n\t\t$this->procedimiento='vef.ft_reenvio_factura_sel';\n\t\t$this->transaccion='VF_REFACOR_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('id_venta', 'id_venta', 'int4');\n\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_reenvio_factura','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_venta','int4');\n\t\t$this->captura('correo','varchar');\n\t\t$this->captura('correo_copia','varchar');\n\t\t$this->captura('observacion','text');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('estado_envio_correo','int4');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function indexfactAction()\n {\n $em = $this->getDoctrine()->getManager();\n $ordenLN = new OrdenLN($em);\n\n $ordenes = $ordenLN->obtenerFacturadasTerminadas();\n $estados = $ordenLN->obtenerEstadosTerminados();\n $usuarios = $em->getRepository('AppBundle:Usuario')->findBy(array(), array('nombre'=>'ASC'));\n $clientes = $em->getRepository('AppBundle:Cliente')->findBy(array(), array('razonsocial'=>'ASC'));\n $tipos = $em->getRepository('AppBundle:OrdenTipo')->findAll();\n $maquinas = $em->getRepository('AppBundle:Maquina')->findAll();\n\n $clonarForms = array();\n foreach ($ordenes as $orden)\n {\n $clonarForm = $this->createClonarForm('orden_clonar2', $orden);\n array_push($clonarForms, $clonarForm->createView());\n }\n\n return $this->render('orden/indexterm.html.twig', array(\n 'ordenes' => $ordenes,\n 'usuarios' => $usuarios,\n 'clientes' => $clientes,\n 'estados' => $estados,\n 'tipos' => $tipos,\n 'maquinas' => $maquinas,\n 'pathedit' => 'orden_editfact',\n 'clonarForms' => $clonarForms,\n 'facturadas' => true\n ));\n }", "public function factureAction()\n {//on stocke la vue à convertir en PDF, en n'oubliant pas les paramètres twig si la vue comporte des données dynamiques\n\t\t$html = $this -> render('GestionAdminBundle:Offre:facture.html.twig');\n\t//le sens de la page \"portrait\" => p ou \"paysage\" => l\n\t\t//le format A4,A5...\n\t\t//la langue du document fr,en,it...\n\t\t$html2pdf = $this -> get('html2pdf_factory') -> create();\n\t\t$html2pdf = $this -> get('html2pdf_factory') -> create('P', 'A4', 'fr', true, 'UTF-8', array(10, 15, 10, 15));\n\t\t//SetDisplayMode définit la manière dont le document PDF va être affiché par l’utilisateur\n\t\t//fullpage : affiche la page entière sur l'écran\n\t\t//fullwidth : utilise la largeur maximum de la fenêtre\n\t\t//real : utilise la taille réelle\n\t\t$html2pdf -> pdf -> SetDisplayMode('real');\n\t\t//writeHTML va tout simplement prendre la vue stocker dans la variable $html pour la convertir en format PDF\n\t\t$html2pdf -> writeHTML($html);\n\t\t//Output envoit le document PDF au navigateur internet avec un nom spécifique qui aura un rapport avec le contenu à convertir (exemple : Facture, Règlement…)\n\t\t$html2pdf -> Output('Factureyy.pdf'); \n \n \n \n\t\treturn new Response();\n }", "private function listarFacturas(request $request)\n {\n $id = $request->get('id');\n $em = $this->getDoctrine()->getManager();\n\n $resu = $this->getDoctrine()\n ->getRepository('SanJorgeBundle:Facturas')\n ->findAll();\n\n $facts = array();\n\n foreach ($resu as $fact)\n {\n //Traigo los items.\n $items = $this->getDoctrine()\n ->getRepository('SanJorgeBundle:Items')\n ->findBy(array('idfactura'=>$fact->getId()));\n\n $cli = null;\n\n if ($fact->getIdcliente()!=null)\n {\n //Traigo los clientes.\n $cli = $this->getDoctrine()\n ->getRepository('SanJorgeBundle:Clientes')\n ->find($fact->getIdcliente());\n }\n\n //Total.\n $total = 0;\n\n foreach ($items as $itemObj)\n $total = $total+$itemObj->getCostoTotal();\n\n array_push($facts,array(\"factura\" => $fact ,\"items\" => $items,\"total\"=>$total,\"cliente\"=>$cli));\n }\n\n return $this->render('SanJorgeBundle:Default:facturas.html.twig',array('mode'=>'list','id'=>$id,'facturas'=>$facts));\n }", "public function getFacultets()\n {\n return $this->hasMany(SpravFacultet::className(), ['institut_id' => 'id']);\n }", "public function show(factura $factura)\n {\n //\n }", "private function _listProductosFactura() {\n// echo\"ll\";\n if (self::$session->validateStartSesion()) {\n if (!self::$session->validateSesion()) {\n $objModelPFactura = new Application_Models_ProductoFacturaModel();\n $objModelPFactura->ListProductosFactura();\n } else {\n self::$session->redirect();\n }\n } else {\n self::$session->redirect();\n }\n }", "public function index()\n {\n $factures = Facture::all();\n\n return view('factures.index',compact('factures'));\n }", "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 obtener_facultades (){\n \n //$nombre_usuario=toba::usuario()->get_nombre();\n //$sql=\"SELECT t_s.sigla FROM sede t_s, administrador t_a WHERE t_a.nombre_usuario=$nombre_usuario AND t_s.id_sede=t_a.id_sede\";\n //$sql=\"SELECT t_ua.sigla, t_ua.descripcion FROM unidad_academica t_ua, sede t_s JOIN administrador t_a ON (t_a.nombre_usuario=$nombre_usuario) JOIN (t_a.id_sede=t_s.id_sede) WHERE t_s.sigla=t_ua.id_sede\";\n $sql=\"SELECT sigla, descripcion FROM unidad_academica WHERE sigla <> 'RECT'\";\n return toba::db('gestion_aulas')->consultar($sql);\n \n }", "public function tatalFacturas(){\n\t\t\t\t\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"Select count(idFactura) as cantidadFacturas from tb_facturas WHERE estado <> 'Iniciada'\";\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n\t\tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n $resultado = $filas;\n }\n \n /* liberar el conjunto de resultados */\n $res->free();\n \n }\n\n return $resultado['cantidadFacturas'];\t\t\t\n\t\t\n\t}", "public function facturas()\n {\n return $this->hasMany('App\\Factura');\n }", "public function fournisseurs()\n {\n $this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');\n\n $repository = $this->getDoctrine()\n ->getRepository(Fournisseur::class);\n\n $fournisseurs = $repository->findBy([],['nom' => 'ASC']);\n\n return $this->render('front/fournisseurs.html.twig', [\n 'fournisseurs' => $fournisseurs]);\n }", "public function index() // MUESTRA UNA VISTA SIMPLE DE FACTURACION\n {\n //\n return view('administracion.facturacion');\n }", "public static function factura($folio){\n\t\t$data['doc'] = Fac::where('numero','=',$folio)->get()->first();\n\t\t$data['cli'] = Cli::where('rut','=',$data['doc']->rutcli)->get()->first();\n\t\t$html = View::make('pdf.factura')->with(compact('data'))->render();\n\t\treturn $html;\n\t}", "public function show(Factura $factura)\n {\n //\n }", "public function index()\n {\n // $compania = Compania::on('ibg_100_7')->get();\n $compania = Compania::on('ibg_100_7')->where('numnit', '890001600')->get();\n $fact = FactRepository::getFacturas();\n\n\n\n // $sucurs = Sucursal::select('nombre', 'personal.nombres')\n // ->join('personal', 'personal.codsucur', '=', 'codigo')\n // ->where('personal.estado','=','A') \n // ->get();\n\n // $sucurs = DB::connection('informix')->table('sucursales')->all();\n\n\n foreach ($fact as $factura) {\n dd($factura->compania->numnit);\n // dd($factura->fact_detalle);\n // echo \"\\n$sucursal->nombres\\n\";\n // die();\n }\n foreach ($compania as $compa) {\n dd($compa);\n // echo \"\\n$sucursal->nombres\\n\";\n // die();\n }\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 }", "static public function ctrRangoFechasFacturas($fechaInicial, $fechaFinal){\n\n\t\t$tabla = \"factura\";\n\n\t\t$respuesta = ModeloFacturas::mdlRangoFechasFacturas($tabla, $fechaInicial, $fechaFinal);\n\n\t\treturn $respuesta;\n\t\t\n\t}", "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 }", "private function factuurAction()\n {\n if (isset($_POST) && !empty($_POST))\n {\n //productenOud zijn de producten die gekozen zijn in de webpagina\n // productenNieuw zijn de producten die gekozen zijn en daarna zijn verkregen van de database.\n $productenOud = $this->model->maakPDF();\n if ($productenOud === 'DUPS')\n {\n $this->model->foutGoedMelding('danger', '<strong> Foutmelding </strong> U heeft 2 dezelfde producten gekozen, gebruik hiervoor het aantal!');\n } else\n {\n $productNieuw = $this->model->geefBesteldeProducten($productenOud);\n $t = 1;\n for ($i = 0; $i < count($productenOud); $i++)\n {\n // van alle producten die zijn gekozen wordt de aantal voorraad gepakt\n $voorraadNieuw[$i] = $productNieuw[$i][0]->geefVoorraad();\n $gekozenAantal[$i] = $productenOud[$i][1];\n //de einde van de producten wordt d.m.v. count verkregen\n $eindeArray = count($productenOud);\n\n if ($voorraadNieuw[$i] > $gekozenAantal[$i])\n {\n $goeieVoorraad = true;\n } else\n {\n $goeieVoorraad = false;\n }\n\n if ($goeieVoorraad !== true)\n {\n $this->model->foutGoedMelding('danger', 'Gekozen product(en) is(zijn) niet op voorraad! Controleer het <a href=\".?action=magazijn&control=admin\">Magazijn <span class=\"glyphicon glyphicon-link\"></span></a>');\n } else\n {\n if ($t === $eindeArray)\n {\n $_SESSION['geselecteerdeProducten'] = $productenOud;\n $this->model->pdfToevoegen();\n $this->forward('factuurVerzend', 'admin');\n }\n }\n\n $goeieVoorraad = false;\n $t++;\n }\n }\n }\n\n $producten = $this->model->geefProducten();\n $this->view->set('producten', $producten);\n $klanten = $this->model->geefKlanten();\n $this->view->set('klanten', $klanten);\n }", "public function AddFraisHorsForfait()\r\n {\r\n $frais = new Frais();\r\n //Get le mois\r\n $mois = $this->GetMois(date('m'));\r\n //Ajoute a LigneFraisHorsForfait les données suivantes\r\n $frais->AddLigneFraisHorsForfait($_SESSION['uid'],$mois,$_POST['nom'],$_POST['prix'],$_POST['date']);\r\n \r\n $this->MainPage();\r\n }", "function consultarFacultades() {\r\n $cadena_sql=$this->sql->cadena_sql(\"datos_facultades\",\"\");\r\n $resultado=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n return $resultado;\r\n }", "public function index_honoraire_all()\n {\n \n $factureHonoraires = Facture::whereIn('type',['honoraire','partage','partage_externe','parrainage','parrainage_partage'])->orWhere('date_facture',null)->latest()->get(); \n return view ('facture.honoraire_all',compact('factureHonoraires'));\n }", "public function getAllActifDecoupage() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.etatDecoupage = ' . TypeEtat::ACTIF);\n // ->orderBy('e.typeDecoupage', 'ASC');\n return $qb->getQuery()->getResult();\n }", "public function obtenerFacturas($data) \n {\n $documento = $data['documento']; \n return $this->cnx->query(\n 'SELECT fc.id, fc.correo_electronico, fc.nombres, fc.estado_factura, fc.valor FROM facturas_cabecera fc \n INNER JOIN registro_usuarios ru \n ON ru.id = fc.id_usuario \n WHERE ru.documento = ?', [$documento]); \n }", "public function fila(): void\n {\n $dados['title'] = 'Fila';\n $dados['procedimentos'] = $this->Procedimentos->porPaciente(['realizado' => '', 'data' => NULL, 'negado_por' => NULL]);\n\n $this->view('regulacao/procedimentos/Fila_view', $dados);\n }", "public function index_all()\n {\n //\n \n \n \n $factureStylimmos = Facture::whereIn('type',['stylimmo','avoir','pack_pub','carte_visite','communication','autre','forfait_entree','cci'])->latest()->get(); \n \n \n \n return view ('facture.index_all',compact('factureStylimmos'));\n }", "public function geefKlantFacturen() {\n $id = $_SESSION['gebruiker']->geefKlant_id();\n $sql = 'SELECT * FROM `facturen` WHERE `klant_id` = :klan_id';\n $stmnt = $this->db->prepare($sql);\n $stmnt->bindParam(':klant_id', $id);\n $stmnt->execute();\n $facturen = $stmnt->fetchAll(\\PDO::FETCH_CLASS, __NAMESPACE__ . '\\Factuur');\n return $facturen;\n }", "public function facturar()\n {\n $detalle[0][\"cantidad\"] = 2;\n $detalle[0][\"unidadMedida\"] = \"UND\";\n $detalle[0][\"codigoProducto\"] = \"001-2011\";\n $detalle[0][\"descripcionProducto\"] = \"Prontuario Tributario\";\n $detalle[0][\"precioUnitario\"] = \"150\";\n $detalle[0][\"montoBruto\"] = \"300\";\n $detalle[0][\"montoDescuento\"] = \"0\";\n $detalle[0][\"importeNetoGravado\"] = \"336\";\n $detalle[0][\"detalleImpuestosIva\"] = \"36\";\n $detalle[0][\"importeExento\"] = \"0\";\n $detalle[0][\"otrosImpuestos\"] = \"0\";\n $detalle[0][\"importeOtrosImpuestos\"] = \"0\";\n $detalle[0][\"importeTotalOperacion\"] = \"336\";\n $detalle[0][\"tipoProducto\"] = \"S\";// B= BIEN, S= SERVICIO\n //-------------------------------------------------------------------------------------------------------\n $detalle[0][\"personalizado_01\"] = \"N/A\";\n $detalle[0][\"personalizado_02\"] = \"N/A\";\n $detalle[0][\"personalizado_03\"] = \"N/A\";\n $detalle[0][\"personalizado_04\"] = \"N/A\";\n $detalle[0][\"personalizado_05\"] = \"N/A\";\n $detalle[0][\"personalizado_06\"] = \"N/A\";\n //--------------------------------------- DETALLE DEL SEGUNDO PRODUCTO ----------------------------------\n $detalle[1][\"cantidad\"] = 1;\n $detalle[1][\"unidadMedida\"] = \"UND\";\n $detalle[1][\"codigoProducto\"] = \"002-2011\";\n $detalle[1][\"descripcionProducto\"] = \"Membresia 6 Meses \";\n $detalle[1][\"precioUnitario\"] = \"1750\";\n $detalle[1][\"montoBruto\"] = \"1750\";\n $detalle[1][\"montoDescuento\"] = \"0\";\n $detalle[1][\"importeNetoGravado\"] = \"1960\";\n $detalle[1][\"detalleImpuestosIva\"] = \"210\";\n $detalle[1][\"importeExento\"] = \"0\";\n $detalle[1][\"otrosImpuestos\"] = \"0\";\n $detalle[1][\"importeOtrosImpuestos\"] = \"0\";\n $detalle[1][\"importeTotalOperacion\"] = \"1960\";\n $detalle[1][\"tipoProducto\"] = \"B\";// B= BIEN, S= SERVICIO\n //-------------------------------------------------------------------------------------------------------\n $detalle[1][\"personalizado_01\"] = \"N/A\";\n $detalle[1][\"personalizado_02\"] = \"N/A\";\n $detalle[1][\"personalizado_03\"] = \"N/A\";\n $detalle[1][\"personalizado_04\"] = \"N/A\";\n $detalle[1][\"personalizado_05\"] = \"N/A\";\n $detalle[1][\"personalizado_06\"] = \"N/A\";\n\n try {\n\n $client = new SoapClient(\"https://www.ingface.net/listener/ingface?wsdl\", array(\"exceptions\" => 1));\n $resultado = $client->registrarDte(array(\"dte\" => array(\"usuario\" => \"GPAUTOS\",\n \"clave\" => \"A3C73DA00A0C49722CACA5AD7B80C6CDD41D8CD98F00B204E9800998ECF8427E\",\n \"validador\" => false,\n \"dte\" => array\n (\n \"codigoEstablecimiento\" => \"2\",\n \"idDispositivo\" => \"001\",\n \"serieAutorizada\" => \"FAC\",\n \"numeroResolucion\" => \"301620181114163\",\n \"fechaResolucion\" => \"2018-11-14\",\n \"tipoDocumento\" => \"FACE\",\n \"serieDocumento\" => \"63\",\n\n \"estadoDocumento\" => \"ACTIVO\",\n \"numeroDocumento\" => \"3\",\n \"fechaDocumento\" => \"2018-11-14\",\n \"codigoMoneda\" => \"GTQ\",\n \"tipoCambio\" => \"1\",\n \"nitComprador\" => str_replace(\"-\", \"\", \"5503407-1\"),\n \"nombreComercialComprador\" => \"CONSUMIDOR FELIZ\",\n \"direccionComercialComprador\" => \"CIUDAD\",\n \"telefonoComprador\" => \"22082208\",\n \"correoComprador\" => \"[email protected]\",\n \"regimen2989\" => false,\n \"departamentoComprador\" => \"N/A\",\n \"municipioComprador\" => \"N/A\",\n\n \"importeBruto\" => 200,\n \"importeDescuento\" => 0,\n \"importeTotalExento\" => 0,\n \"importeOtrosImpuestos\" => 0,\n \"importeNetoGravado\" => 224,\n \"detalleImpuestosIva\" => 24,\n \"montoTotalOperacion\" => 224,\n \"descripcionOtroImpuesto\" => \"N/A\",\n\n \"observaciones\" => \"N/A\",\n \"nitVendedor\" => str_replace(\"-\", \"\", \"136771-4\"),\n \"departamentoVendedor\" => \"GUATEMALA\",\n \"municipioVendedor\" => \"GUATEMALA\",\n \"direccionComercialVendedor\" => \"CIUDAD REFORMA\",\n \"NombreComercialRazonSocialVendedor\" => \"NOMBRE DELA EMPRESA, S.A\",\n \"nombreCompletoVendedor\" => \"NOMBRE DELA EMPRESA, S.A\",\n \"regimenISR\" => \"1\",\n\n \"personalizado_01\" => \"N/A\",\n \"personalizado_02\" => \"N/A\",\n \"personalizado_03\" => \"N/A\",\n \"personalizado_04\" => \"N/A\",\n \"personalizado_05\" => \"N/A\",\n \"personalizado_06\" => \"N/A\",\n \"personalizado_07\" => \"N/A\",\n \"personalizado_08\" => \"N/A\",\n \"personalizado_09\" => \"N/A\",\n \"personalizado_10\" => \"N/A\",\n \"personalizado_11\" => \"N/A\",\n \"personalizado_12\" => \"N/A\",\n \"personalizado_13\" => \"N/A\",\n \"personalizado_14\" => \"N/A\",\n \"personalizado_15\" => \"N/A\",\n \"personalizado_16\" => \"N/A\",\n \"personalizado_17\" => \"N/A\",\n \"personalizado_18\" => \"N/A\",\n \"personalizado_19\" => \"N/A\",\n \"personalizado_20\" => \"N/A\",\n\n \"detalleDte\" => $detalle\n )\n )\n )\n );\n\n if ($resultado->return->valido) {\n echo \"DTE: \" . $resultado->return->numeroDte . \"</br>\";\n echo \"CAE: \" . $resultado->return->cae . \"</br>\";\n } else {\n echo \"ERROR: \" . $resultado->return->descripcion;\n }\n } catch (SoapFault $E) {\n $objResponse->addAlert($E->faultstring);\n }\n }", "public function getFraisHorsForfait($mois) {\n $idVisiteur = Session::get('id');\n $unFrais = new GsbFrais();\n $mesFraisHorsForfait = $unFrais->getLesFraisHorsForfait($idVisiteur, $mois);\n $titreVue = \"Liste des frais hors forfait de la fiche \" . $mois;\n // On affiche la liste des Frais Hors Forfait\n $montantTotal = 0;\n foreach ($mesFraisHorsForfait as $fhf){\n $montantTotal = $montantTotal + $fhf->montant;\n }\n return view('listeFraisHorsForfait', compact('mesFraisHorsForfait', 'mois', 'titreVue','montantTotal'));\n }", "public function index()\n {\n $facturas=factura::all();\n return view('factura.index',compact('facturas'));\n }", "public function index()\n {\n\n return $this->facilitie->all();\n\n }", "static public function ctrHistorial(){\n\n\t\t// FACTURAS\n\t\t$tabla = \"cta\";\n\t\t$respuesta = ModeloVentas::mdlHistorial($tabla);\n\t\t\n\n\t\tforeach ($respuesta as $key => $value) {\n\n\t\t\t// veo los items de la factura\n\t\t\t$tabla = \"ctaart\";\n\t\t\t$repuestos = ModeloVentas::mdlHistorialCta_art($tabla,$value['idcta']);\n\t\t\t\n\t\t\t$productos='';\n\n\t\t\tfor($i = 0; $i < count($repuestos)-1; $i++){\n\t\t\t\t\n\t\t\t\t$productos = '{\"id\":\"'.$repuestos[$i][\"idarticulo\"].'\",\n\t\t\t \"descripcion\":\"'.$repuestos[$i][\"nombre\"].'\",\n\t\t\t \"cantidad\":\"'.$repuestos[$i][\"cantidad\"].'\",\n\t\t\t \"precio\":\"'.$repuestos[$i][\"precio\"].'\",\n\t\t\t \"total\":\"'.$repuestos[$i][\"precio\"].'\"},';\n\t\t\t}\n\n\t\t\t$productos = $productos . '{\"id\":\"'.$repuestos[count($repuestos)-1][\"idarticulo\"].'\",\n\t\t\t \"descripcion\":\"'.$repuestos[count($repuestos)-1][\"nombre\"].'\",\n\t\t\t \"cantidad\":\"'.$repuestos[count($repuestos)-1][\"cantidad\"].'\",\n\t\t\t \"precio\":\"'.$repuestos[count($repuestos)-1][\"precio\"].'\",\n\t\t\t \"total\":\"'.$repuestos[count($repuestos)-1][\"precio\"].'\"}';\n\n\t\t\t$productos =\"[\".$productos.\"]\";\n\t\t\t\n\t\t\techo '<pre>'; print_r($productos); echo '</pre>';\n\t\t\t\n\t\t\t// datos para cargar la factura\n\t\t\t$tabla = \"ventas\";\n\t\t\t$datos = array(\"id_vendedor\"=>1,\n\t\t\t\t\t\t \"fecha\"=>$value['fecha'],\n\t\t\t\t\t\t \"id_cliente\"=>$value[\"idcliente\"],\n\t\t\t\t\t\t \"codigo\"=>$key,\n\t\t\t\t\t\t \"nrofc\"=>$value[\"nrofc\"],\n\t\t\t\t\t\t \"detalle\"=>strtoupper($value[\"obs\"]),\n\t\t\t\t\t\t \"productos\"=>$productos,\n\t\t\t\t\t\t \"impuesto\"=>0,\n\t\t\t\t\t\t \"neto\"=>0,\n\t\t\t\t\t\t \"total\"=>$value[\"importe\"],\n\t\t\t\t\t\t \"adeuda\"=>$value[\"adeuda\"],\n\t\t\t\t\t\t \"obs\"=>\"\",\n\t\t\t\t\t\t \"metodo_pago\"=>$value[\"detallepago\"],\n\t\t\t\t\t\t \"fechapago\"=>$value['fecha']);\n\n\t\t\t$respuesta = ModeloVentas::mdlIngresarVenta($tabla, $datos);\n\t\t\t\n\n\t\t}\n\t\t\n\t\treturn $respuesta;\n\n\t\t\n\t\t\n\t}", "public function indexAction($facture_id)\n {\n $em = $this->get('doctrine.orm.entity_manager');\n $facture = $em->getRepository('TrezLogicielTrezBundle:SousCategorie')->find($facture_id);\n $tvas = $em->getRepository('TrezLogicielTrezBundle:Ligne')->findOneByFacture($facture);\n\n return $this->render('TrezLogicielTrezBundle:Default:index.html.twig', array('tvas' => $tvas));\n }", "public function getAllFranchises(){\n $query = \"SELECT * FROM franchises ORDER BY name\";\n $result = $this->connection->query($query);\n $result = $result->fetchAll(PDO::FETCH_ASSOC);\n $franchises = [];\n foreach($result as $data){\n $franchises[] = new Franchise($data);\n }\n return $franchises;\n }", "public function listarUnaFactura($idFactura){\n\t\t\t\n\t\t\t$idFactura \t\t\t\t\t\t= parent::escaparQueryBDCliente($idFactura);\n\t\t\t\n\t\t\t$resultado = array();\n\t\t\n\t\t\t$query = \" SELECT \n\t\t\t\t\t\t F.idFactura,\n\t\t\t\t\t\t F.numeroFactura,\n\t\t\t\t\t\t F.fecha,\n\t\t\t\t\t\t F.hora,\n\t\t\t\t\t\t F.fechaFin,\n\t\t\t\t\t\t DATE_FORMAT(F.horaFin, '%H:%i') as horaFin,\n\t\t\t\t\t\t F.iva,\n\t\t\t\t\t\t F.valorIva,\n\t\t\t\t\t\t F.descuento,\n\t\t\t\t\t\t F.subtotal,\n\t\t\t\t\t\t F.total,\n\t\t\t\t\t\t F.metodopago,\n\t\t\t\t\t\t F.observaciones,\n\t\t\t\t\t\t F.estado,\n\t\t\t\t\t\t RD.numeroResolucion,\n\t\t\t\t\t\t RD.fechaResolucion,\n\t\t\t\t\t\t FT.identificacion,\n\t\t\t\t\t\t FT.nombre,\n\t\t\t\t\t\t FT.apellido,\n\t\t\t\t\t\t P.identificacion AS identifiacacionPropietario,\n\t\t\t\t\t\t P.nombre AS nombrePropietario,\n\t\t\t\t\t\t P.apellido AS apellidoPropietario,\n\t\t\t\t\t\t P.telefono, \n\t\t\t\t\t\t P.celular,\n\t\t\t\t\t\t P.email,\n\t\t\t\t\t\t P.direccion,\n\t\t\t\t\t\t PFC.idPagoFacturaCaja\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_facturas AS F\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_resolucionDian AS RD ON RD.idResolucionDian = F.idResolucionDian\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_facturadores AS FT ON FT.idFacturador = F.idFacturador\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_propietarios AS P ON P.idPropietario = F.idPropietario\n\t\t\t\t\t\t INNER JOIN\n\t\t\t\t\t\t tb_pago_factura_caja AS PFC ON PFC.idTipoElemento = F.idFactura\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t F.idFactura = '$idFactura'\n\t\t\t\t\t\t AND PFC.tipoElemento = 'Factura'\";\n\t\t\t\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado[] = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public function affichageAction() {\r\n \r\n $em=$this->getDoctrine()->getManager();\r\n $products=$em->getRepository('HologramBundle:Product')->findBy(array('etat'=>'en attente'));\r\n return $this->render('HologramBundle:Back:produitsNonValides.html.twig',array('prod'=>$products));\r\n }", "public function AddFraisForfait()\r\n {\r\n $frais = new Frais();\r\n //Get le mois\r\n $mois = $this->GetMois(date('m'));\r\n //Ajoute a LigneFraisForfait les données suivantes\r\n $frais->AddLigneFraisForfait($_SESSION['uid'],$mois,$_POST['typefrais'],$_POST['quantite']);\r\n\r\n $this->MainPage();\r\n }", "public function index()\n {\n $bon=Bon_de_commande::all();\n\n $info=$bon->toArray();\n\n $montant=array();\n\n for ($i=0; $i <count($info) ; $i++) { \n \n $str=$i.\"\";\n $montant=$montant+array($str=>$info[$i]['MONTANT_TOTAL']);\n }\n return view('pages.Facture.index',[\n \n 'bon'=>$bon,\n 'montant'=>$montant,\n\n\n ]);\n }", "public function demandes_stylimmo()\n {\n \n $compromis = Compromis::where([['demande_facture', 1],['archive',0]])->orderBy('date_demande_facture', 'ASC')->get();\n // dd($compromis);\n return view ('demande_facture.index',compact('compromis'));\n }", "function alta_cl_factura(){\n\t\t$u= new Cl_factura();\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->empresas_id=$GLOBALS['empresaid'];\n\t\t$u->fecha_captura=date(\"Y-m-d H:i:s\");\n\t\t$u->estatus_general_id=1;\n\t\t$related = $u->from_array($_POST);\n\t\tif($u->save($related)) {\n\t\t\t$pr=new Cl_pedido();\n\t\t\t$pr->get_by_id($u->cl_pedido_id);\n\t\t\t$pr->ccl_estatus_pedido_id=3;\n\t\t\t$pr->save();\n\n\n\t\t\t$this->db->query(\"update salidas set cclientes_id=$u->cclientes_id, fecha='$u->fecha' where cl_facturas_id=$u->id\");\n\t\t\techo form_hidden('id', \"$u->id\"); echo '<p></p><button type=\"submit\" id=\"boton1\" style=\"display:none;\">Paso 2. Registrar Factura</button>';\n\t\t} else {\n\t\t\techo form_hidden('id', \"0\"); echo '<p></p><button type=\"submit\" id=\"boton1\" style=\"display:none;\">Paso 2. Registrar Factura</button><h3>El pedido de venta número:'. $u->cl_pedido_id. ', previamente se le ha dado salida, se cancela la salida</h3>';\n\t\t}\n\t}", "public function show(FunFacts $funFacts)\n {\n //\n }", "public function getLesFraisForfait(){\r\n\t\t$req = \"select af_fraisforfait.id as idfrais, libelle, montant from af_fraisforfait order by af_fraisforfait.id\";\r\n\t\t$rs = $this->db->query($req);\r\n\t\t$lesLignes = $rs->result_array();\r\n\t\treturn $lesLignes;\r\n\t}", "function get_fakultas(){\n\t}", "public function showFactura($id)\n {\n //\n $usuario = DB::table('users')\n ->select('*')\n ->where('id', Auth::id())\n ->get();\n\n $reserva = DB::table('reservas')\n ->select('*')\n ->where('id_reservas', $id)\n ->get();\n\n $parqueo = DB::table('parqueos')\n ->select('*')\n ->where('id_parqueos', $reserva[0]->id_parqueos)\n ->get();\n\n return view('factura.index',compact('usuario','reserva','parqueo'));\n }", "public function show($id)\n {\n if($id!=\"---\"){\n $num=Facture::where('ID_FACTURE',$id)\n ->first();\n\n\n \n $nom=Bon_de_commande::selectRaw('fournisseurs.NOM_FRS,bon_de_commandes.TAUX_AVANCE,bon_de_commandes.MONTANT_TOTAL')\n ->where('NUMERO_BON_COMMANDE',$num->NUMERO_BON_COMMANDE)\n ->join('fournisseurs','fournisseurs.MATRICULE_FRS','=','bon_de_commandes.MATRICULE_FRS')\n ->first();\n //dd($num->NUMERO_BON_COMMANDE); \n\n $cal=(($nom->MONTANT_TOTAL*$nom->TAUX_AVANCE)/100); \n \n return view('pages.Facture.show',[\n\n 'num'=>$num->NUMERO_FACTURE,\n 'nom'=>$nom->NOM_FRS,\n 'objet'=>$num->OBJET_FACTURE,\n 'avance'=>$cal,\n 'date'=>substr($num->created_at, 0, 10)\n ]); \n }else{\n\n $alert=\"Pas d'informations\";\n\n return view('pages.Facture.show',[\n\n 'alert'=>$alert\n ]);\n }\n\n }", "function ListaCabeceraFactura() {\n\t$sql = \"SELECT cuentaxcobrar.id, usuario.id, persona.primer_nombre, persona.primer_apellido, persona.cedula,\n\t\t\t\t inmueble.manzana, inmueble.numero_villa FROM cuentaxcobrar\n\t\t\tINNER JOIN usuario ON usuario.id = cuentaxcobrar.usuario_id\n\t\t\tINNER JOIN persona ON persona.id = usuario.persona_id\n\t\t\tINNER JOIN inmueble ON usuario.id = inmueble.id\";\n\n\n\t$db = new conexion();\n\t$result = $db->consulta($sql);\n\t$num = $db->encontradas($result);\n\n\t$respuesta->datos = [];\n\t$respuesta->mensaje = \"\";\n\t$respuesta->codigo = \"\";\n\n\tif ($num != 0) {\n\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t}\n\n\t\t$respuesta->mensaje = \"Ok\";\n\t\t$respuesta->codigo = 1;\n\t} else {\n\t\t$respuesta->mensaje = \"No existen registros de Cabecera Factura!\";\n\t\t$respuesta->codigo = 0;\n\t}\n\n\treturn json_encode($respuesta);\n}", "public function demander_facture($compromis_id)\n {\n \n $compromis = Compromis::where('id',Crypt::decrypt($compromis_id))->first();\n $mandataire = User::where('id',$compromis->user_id)->first();\n $numero = Facture::whereIn('type',['avoir','stylimmo','pack_pub','carte_visite','communication','autre','forfait_entree','cci'])->max('numero') + 1;\n\n return view ('demande_facture.demande',compact('compromis','mandataire','numero')); \n // return redirect()->route('compromis.index')->with('ok', __('compromis modifié') );\n\n }", "public function formationsAction()\n {\n $em = $this->getDoctrine()->getManager();\n $id= $this->getUser()->getProfil();\n $formations = $em->getRepository('ExiaCoreBundle:Formation')->findByProfil($id);\n return $this->render('ExiaCoreBundle:Core:liste-formation.html.twig', array('formations' => $formations));\n }", "public function trigger_lignes_factures($id)\n {\n\n // récupération du taux de TVA\n $q = $this->db->select('fac_tva')\n ->where('fac_id', $id)\n ->get('t_factures');\n $tva = $q->row()->fac_tva;\n\n // récupération des lignes de la facture\n $q = $this->db->select(\"lif_code,lif_prix,lif_quantite,lif_remise_ht\")\n ->where('lif_inactif is null')\n ->where('lif_facture', $id)\n ->get('t_lignes_factures');\n if ($q->num_rows() > 0) {\n $lignes = $q->result();\n\n // calcul des montants HT et TTC\n $ht = 0;\n $remise = 0;\n foreach ($lignes as $l) {\n if ($l->lif_code == 'R') {\n $remise += $l->lif_prix;\n } else {\n $ht += $l->lif_prix * $l->lif_quantite - $l->lif_remise_ht;\n }\n }\n $montant_htnr = $ht;\n $ht = $ht * (1 - $remise);\n $tva = $ht * $tva;\n $ttc = $ht + $tva;\n $montant_ht = $ht;\n $montant_tva = $tva;\n $montant_ttc = $ttc;\n } else {\n $montant_htnr = 0;\n $montant_ht = 0;\n $montant_tva = 0;\n $montant_ttc = 0;\n }\n $data = array(\n 'fac_montant_htnr' => $montant_htnr,\n 'fac_montant_ht' => $montant_ht,\n 'fac_montant_tva' => $montant_tva,\n 'fac_montant_ttc' => $montant_ttc,\n 'fac_regle' => 0,\n 'fac_reste' => $montant_ttc,\n );\n $this->db->where('fac_id', $id)\n ->update('t_factures', $data);\n }", "function tableau_visites_rubriques($date) {\r\n\tglobal $couleur_claire;\r\n\r\n\t$tab_rubart = rubriques_du_jour($date);\r\n\r\n\t$aff = '';\r\n\t$aff .= debut_cadre_relief('rubrique-24.gif', true);\r\n\t$aff .= \"<div class='cart_titre_bold verdana3'>\" . _T('actijour:repartition_visites_secteurs') . \"</div>\";\r\n\r\n\tif ($tab_rubart) {\r\n\t\t// add visites\r\n\t\t$nbr = 0;\r\n\t\tforeach ($tab_rubart as $s => $c) {\r\n\t\t\t$nbr += $c['vis'];\r\n\t\t}\r\n\r\n\t\t$ifond = 0;\r\n\r\n\t\t$aff .= \"<table cellpadding='2' cellspacing='0' width='100%' border='0'>\\n\";\r\n\r\n\t\tforeach ($tab_rubart as $sect => $cat) {\r\n\t\t\t$ifond = $ifond ^ 1;\r\n\t\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\t\t\t$s_titre = typo(info_rubrique($sect));\r\n\t\t\t$prct_s = round(($cat['vis'] / $nbr) * 100, 1);\r\n\r\n\t\t\t$aff .= \"<tr bgcolor='$couleur'>\\n<td colspan='2'>\"\r\n\t\t\t\t. http_img_pack('secteur-12.gif', 'ico', 'align=\\'absmiddle\\'', '') . \"&nbsp;<b>\"\r\n\t\t\t\t. supprimer_numero($s_titre) . \"</b></td>\\n\"\r\n\t\t\t\t. \"<td width='8%'><div align='right'><b>\"\r\n\t\t\t\t. $cat['vis'] . \"</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='12%'><div class='verdana2 bold' align='right'>\"\r\n\t\t\t\t. $prct_s . \"%</div></td>\\n\"\r\n\t\t\t\t. \"</tr>\\n\";\r\n\r\n\t\t\tif ($cat['rub']) {\r\n\t\t\t\tforeach ($cat['rub'] as $idr => $vis) {\r\n\t\t\t\t\t$r_titre = typo(info_rubrique($idr));\r\n\t\t\t\t\t$prct_r = round(($vis / $nbr) * 100, 1);\r\n\r\n\t\t\t\t\t$aff .= \"<tr bgcolor='$couleur'>\\n<td width='2%'>&nbsp;</td>\"\r\n\t\t\t\t\t\t. \"<td>\"\r\n\t\t\t\t\t\t. http_img_pack('rubrique-12.gif', 'ico', 'align=\\'absmiddle\\'', '') . \"&nbsp;\"\r\n\t\t\t\t\t\t. supprimer_numero($r_titre) . \"</td>\\n\"\r\n\t\t\t\t\t\t. \"<td width='8%'><div align='right'>\"\r\n\t\t\t\t\t\t. $vis . \"</div></td>\\n\"\r\n\t\t\t\t\t\t. \"<td width='12%'><div class='verdana1' align='right'>\"\r\n\t\t\t\t\t\t. $prct_r . \"%</div></td>\\n</tr>\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$aff .= \"</table>\\n\";\r\n\t}\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function voirDerniereCommandeAvecFacture(){\n\t$conditions = array();\n\t$order = array();\n\tarray_push($order, array('nameChamps'=>'idFacture','sens'=>'desc'));\n\tarray_push($conditions, array('nameChamps'=>'idFacture','type'=>'is not null','name'=>'','value'=>''));\n\t$req = new myQueryClass('commande',$conditions,$order,'','limit 1');\n\t$r = $req->myQuerySelect();\n\treturn $r[0];\n}", "public function index()\n {\n\n $page_filleul=null;\n if(Route::currentRouteName() == \"compromis.filleul.index\"){\n $page_filleul = \"page_filleul\";\n }\n $parametre = Parametre::first();\n $comm_parrain = unserialize($parametre->comm_parrain) ;\n $nb_jour_max_demande = $parametre->nb_jour_max_demande ;\n\n if(auth::user()->role == \"admin\"){\n $page_filleul = null;\n }\n\n // On réccupère l'id des filleuls pour retrouver leurs affaires\n $filleuls = Filleul::where([['parrain_id',Auth::user()->id],['expire',false]])->select('user_id')->get()->toArray();\n $fill_ids = array();\n foreach ($filleuls as $fill) {\n\n $fill_ids[]= $fill['user_id'];\n }\n\n \n //########## TYPE AFFAIRE\n\n \n $tab_compromisEncaissee_id = array();\n $tab_compromisEnattente_id = array();\n $tab_compromisPrevisionnel_id = array();\n\n $compromisEncaissee_id = Facture::where([['encaissee',1],['type','stylimmo'],['a_avoir',0]])->select('compromis_id')->get();\n $compromisEnattente_id = Facture::where([['encaissee',0],['type','stylimmo'],['a_avoir',0]])->get();\n\n foreach ($compromisEncaissee_id as $encaiss) {\n $tab_compromisEncaissee_id[] = $encaiss[\"compromis_id\"];\n }\n foreach ($compromisEnattente_id as $attente) {\n $tab_compromisEnattente_id[] = $attente[\"compromis_id\"];\n }\n \n// dd($compromisEnattente_id);\n\n if(auth::user()->role == \"admin\"){\n $compromisEncaissee = Compromis::whereIn('id',$tab_compromisEncaissee_id)->where([['archive',false],['cloture_affaire','<',2]])->get();\n $compromisEnattente = Compromis::whereIn('id',$tab_compromisEnattente_id)->where([['archive',false],['cloture_affaire','<',2]])->get();\n $compromisSousOffre = Compromis::where([['demande_facture','<',2],['pdf_compromis',null],['archive',false],['cloture_affaire','<',2]])->get();\n $compromisSousCompromis = Compromis::where([['demande_facture','<',2],['pdf_compromis','<>',null],['archive',false]])->get();\n }else{\n\n // On reccupère les affaires du mandataire ou de ses filleuls\n \n $this->users_id []= auth::user()->id;\n // Si le paramètre filleul existe, alors nous somme sur la page du filleul\n if($page_filleul != \"mes_filleuls\"){\n $this->users_id = $fill_ids;\n }\n \n \n\n $compromisEncaissee = Compromis::whereIn('id',$tab_compromisEncaissee_id)->where([['archive',false],['cloture_affaire','<',2]])->where(function($query){\n $query->where('user_id', auth::user()->id)\n ->orWhere('agent_id', auth::user()->id);\n })->get();\n\n $compromisEnattente = Compromis::whereIn('id',$tab_compromisEnattente_id)->where([['archive',false],['cloture_affaire','<',2]])->where(function($query){\n $query->where('user_id', auth::user()->id)\n ->orWhere('agent_id', auth::user()->id);\n })->get();\n\n\n $compromisSousOffre = Compromis::where([['demande_facture','<',2],['pdf_compromis',null],['archive',false],['cloture_affaire','<',2]])->where(function($query){\n $query->where('user_id', auth::user()->id)\n ->orWhere('agent_id', auth::user()->id);\n })->get();\n\n $compromisSousCompromis = Compromis::where([['demande_facture','<',2],['pdf_compromis','<>',null],['archive',false],['cloture_affaire','<',2]])->where(function($query){\n $query->where('user_id', auth::user()->id)\n ->orWhere('agent_id', auth::user()->id);\n })->get();\n }\n// ############ FIN TYPE AFFAIRE\n\n $compromis = array();\n if(Auth::user()->role ==\"admin\") {\n $compromis = Compromis::where([['je_renseigne_affaire',true],['archive',false],['cloture_affaire','<',2]])->latest()->get();\n $compromisParrain = Compromis::where([['je_renseigne_affaire',true],['archive',false],['cloture_affaire','<',2]])->latest()->get();\n }else{\n $compromis = Compromis::where([['user_id',Auth::user()->id],['je_renseigne_affaire',true],['archive',false],['cloture_affaire','<',2]])->orWhere([['agent_id',Auth::user()->id],['archive',false]])->latest()->get();\n \n \n \n\n\n // ########### Mise en place des conditions de parrainnage ############\n // Vérifier le CA du parrain et du filleul sur les 12 derniers mois précédents la date de vente et qui respectent les critères et vérifier s'il sont à jour dans le reglèmement de leur factures stylimmo \n // Dans cette partie on détermine le jour exaxt de il y'a 12 mois avant la date de vente\n \n \n // $compromisParrain = Compromis::where('archive',false)->where(function($query){\n \n // $filleuls = Filleul::where([['parrain_id',Auth::user()->id],['expire',false]])->select('user_id')->get()->toArray();\n // $fill_ids = array();\n // foreach ($filleuls as $fill) {\n // $fill_ids[]= $fill['user_id'];\n // }\n\n // $query->whereIn('user_id',$fill_ids )\n // ->orWhereIn('agent_id',$fill_ids );\n // })->latest()->get();\n \n $filleuls = Filleul::where([['parrain_id',Auth::user()->id],['expire',false]])->select('user_id')->get()->toArray();\n $fill_ids = array();\n foreach ($filleuls as $fill) {\n $fill_ids[]= $fill['user_id'];\n }\n\n // Les affaires des filleuls qui portent l'affaire \n $filleul1s = Compromis::where('archive',false)->whereIn('user_id',$fill_ids )->get();\n\n // Les affaires des filleuls qui ne portent pas l'affaire \n $filleul2s = Compromis::where('archive',false)->whereIn('agent_id',$fill_ids )->get();\n\n \n $id_fill1 = array();\n foreach ($filleul1s as $fill1) {\n $id_fill1[] = $fill1->id;\n }\n $id_fill2 = array();\n foreach ($filleul2s as $fill2) {\n $id_fill2[] = $fill2->id;\n }\n\n\n $compromisParrain = $filleul2s->concat($filleul1s);\n $compro_ids1 = array_intersect($id_fill1, $id_fill2);\n $compro_ids2 = $compro_ids1;\n // dd($compro_ids2);\n \n\n $valide_compro_id = array();\n \n // foreach ($fill_ids as $fill_id) {\n \n if($compromisParrain != null){\n foreach ($compromisParrain as $compro_parrain) {\n\n if($compro_parrain->id_valide_parrain_porteur == Auth::user()->id || $compro_parrain->id_valide_parrain_partage == Auth::user()->id){\n $valide_compro_id [] = $compro_parrain->id;\n\n }\n\n }\n }\n \n // }\n \n\n\n\n// ###################\n\n\n\n return view ('compromis.index',compact('compromis','compromisParrain','fill_ids','compro_ids1','compro_ids2','valide_compro_id','compromisEncaissee','compromisEnattente','compromisSousOffre','compromisSousCompromis','page_filleul','nb_jour_max_demande'));\n\n }\n // dd($compromis);\n return view ('compromis.index',compact('compromis','compromisParrain','compromisEncaissee','compromisEnattente','compromisSousOffre','compromisSousCompromis','page_filleul','nb_jour_max_demande'));\n }", "public function index()\n {\n $Proveedores=proveedore::All();\n $Materiales=materiaPrima::All();\n $tipoUsuario =DB::select(\"select tipoUser from categoria_users,users where categoria_users.id=users.idCategoria\n and users.id=\".Auth::user()->id.\"\");\n $numFact =DB::select(\"select max(id) as id from factura_compras\");\n return view('AdminTaller.Facturacion.FacturaCompra',compact('Materiales','Proveedores','tipoUsuario','numFact'));\n }", "public function mostrarListado()\n {\n // Get the currently authenticated user's IDEmpleado...\n $id = Auth::user()->idEmpleado; \n $cargo = $this->FacturasQueries->ObtenerCargo($id);\n foreach ($cargo as $row) {\n $rol = $row->idRol;\n }\n if ($rol == 1) {\n $facturas = $this->FacturasQueries->getFacturas($id);\n return view('factura.listado', compact(['facturas', 'rol']));\n }else{\n return redirect()->action('HomeController@error404'); \n }\n }", "public function anularTodosDetallesFactura($idPagoFacturaCaja){\n\t\t\n\t\t\t\t\n\t\t$query = \"UPDATE tb_pago_factura_caja_detalle SET estado = 'Anulado' WHERE idPagoFacturaCaja = '$idPagoFacturaCaja'\";\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n\t\t$res = $conexion->query($query);\t\n\t\t\n\t\t//retornar los productos al inventario \n\t\t$query2 = \"SELECT idTipoDetalle, cantidad, idSucursal \n\t\t\t\t\tFROM tb_pago_factura_caja_detalle \n\t\t\t\t WHERE tipoDetalle = 'Producto' AND idPagoFacturaCaja = '$idPagoFacturaCaja' \";\n\t\t\n\t\tif($res2 = $conexion->query($query2)){\n\t\t\t\n\t\t\twhile ($filas = $res2->fetch_assoc()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t$cantidadAumentar = \t$filas['cantidad'];\t\n\t\t\t\t$id \t\t\t\t=\t$filas['idTipoDetalle'];\n\t\t\t\t$sucursal\t\t\t= \t$filas['idSucursal'];\n\t\t\t\t\n\t\t\t\t$query3 = \"UPDATE tb_productos_sucursal SET cantidad = cantidad + '$cantidadAumentar' \n\t\t\t\t\t\t\tWHERE idSucursal = '$sucursal' AND idProducto = '$id'\";\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t$conexion->query($query3);\n\t\t\t\t\t\n\t\t\t}//fin while\n\t\t\t\n\t\t\t/* liberar el conjunto de resultados */\n\t\t\t$res2->free();\n\t\t\t\n\t\t}//fin if\n\t\t\n\t}", "public function index(){\n\n if( Session::get(\"permisos\")[\"GET\"] ){\n return view(\"errors.error\");\n }\n \n if (Session::get(\"permisos\")[\"GET\"]) {\n return view(\"errors.error\");\n }\n $data = [\n \"page_title\" => \"Ventas\"\n ,\"title\" => \"Facturación\"\n ,\"iva\" => (Session::get('id_rol') != 1 )? Session::get('iva') : 16\n ];\n return self::_load_view( \"ventas.facturaciones\",$data );\n \n }", "public function interventionListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Intervention\");//type array\n\t}", "public function index()\n {\n //nonConsult() est une methode helper qui retourne l'ensemble des comandes non consultees\n //$demandes est utilisee a la page d'accueil apres l'authentification\n //donc necessaires pour toutes les fonction qui utilse cette page\n\n $demandes= nonConsult();\n\n $categories = CategorieFournisseur::all();\n\n return view('categorieFournisseurs.list', compact('categories', 'demandes'));\n }", "public function encaisser_facture_stylimmo($facture_id, Request $request )\n {\n\n\n\n $facture = Facture::where('id', $facture_id)->first();\n \n if($facture->encaissee == true) return \"Déjà encaissée\";\n \n $facture->encaissee = true;\n $facture->date_encaissement = $request->date_encaissement;\n \n \n // Si c'est une facture pub, on marque le mandataire a reglé sa facture\n if($facture->type == \"pack_pub\"){\n \n $facture->reglee = true;\n $facture->date_reglement = $request->date_encaissement;\n \n $mandataire = $facture->user;\n // On met à jour le nombre de factures pub non encaissée du mandataire\n $mandataire->nb_facture_pub_retard = Facture::where([['user_id', $facture->user_id], ['type', 'pack_pub'], ['encaissee', false]])->count() - 1;\n $mandataire->update();\n }\n \n \n $facture->update();\n\n\n if($facture->type != \"stylimmo\"){\n \n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a encaissé la facture $facture->type $facture->numero\";\n $user_id = Auth::user()->id;\n \n \n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n return $facture->numero;\n }\n \n \n \n if($facture->compromis != null){\n Mail::to($facture->compromis->user->email)->send(new EncaissementFacture($facture));\n }\n // Mail::to(\"[email protected]\")->send(new EncaissementFacture($facture));\n\n\n\n\n // ##### CALCUL ET DROIT DE PARRAINAGE \n\n // On determine le compromis lié au compromis\n\n $compromis = $facture->compromis;\n\n\n if($compromis != null)\n {\n \n \n \n // ########## On calucul la note d'hono du Porteur et du partage ##################################################################\n \n if($compromis->agent_id == null){\n \n $compromis->user->sauvegarder_chiffre_affaire_styl(date('Y') . '-01-01', date('Y-m-d'));\n $this->preparer_facture_honoraire_encaissement($compromis->id, true );\n \n }else{\n \n \n $compromis->user->sauvegarder_chiffre_affaire_styl(date('Y') . '-01-01', date('Y-m-d'));\n $compromis->getPartage()->sauvegarder_chiffre_affaire_styl(date('Y') . '-01-01', date('Y-m-d'));\n\n // facture du porteur de l'affaire\n $this->preparer_facture_honoraire_encaissement($compromis->id, true );\n // facture du partage de l'affaire\n $this->preparer_facture_honoraire_encaissement($compromis->id, false );\n \n }\n \n // #############################\n \n \n \n \n \n \n // ######## si l'affaire est partagée, on va vérifier si les mandataires ont un parrain Puis caluler leur commission\n \n $filleul1 = Filleul::where([['user_id',$compromis->user_id],['expire',0]])->first();\n\n $filleul2 = $compromis->agent_id != null ? Filleul::where([['user_id',$compromis->agent_id],['expire',0]])->first() : null;\n \n\n $date_encaissement = $facture->date_encaissement->format('Y-m-d');\n\n // date_12 est la date exacte 1 ans avant la date d'encaissment\n $date_12 = strtotime( $date_encaissement. \" -1 year\"); \n $date_12 = date('Y-m-d',$date_12);\n\n $deb_annee = date(\"Y\").\"-01-01\";\n\n $retour = \"\";\n // Si le porteur de l'affaire à un parrain\n if($filleul1 != null ){\n\n $mandataire1 = $filleul1->user ;\n $parrain1 = User::where('id',$filleul1->parrain_id)->first();\n\n $ca_parrain1 = Compromis::getCAStylimmo($parrain1->id,$date_12 ,$date_encaissement);\n $ca_filleul1 = Compromis::getCAStylimmo($mandataire1->id,$date_12 ,$date_encaissement);\n\n // on calcul le chiffre affaire de parrainage du parrain \n\n\n $comm_parrain1 = unserialize($mandataire1->contrat->comm_parrain);\n\n \n // 1 on determine l'ancieneté du filleul1\n \n $dt_ent = $mandataire1->contrat->date_entree->format('Y-m-d') >= \"2019-01-01\" ? $mandataire1->contrat->date_entree : \"2019-01-01\";\n $date_entree = strtotime($dt_ent); \n\n $today = strtotime (date('Y-m-d'));\n $anciennete_porteur = $today - $date_entree;\n\n if($anciennete_porteur <= 365*86400){\n $seuil_porteur = $comm_parrain1[\"seuil_fill_1\"];\n $seuil_parrain = $comm_parrain1[\"seuil_parr_1\"];\n }\n //si ancienneté est compris entre 1 et 2ans\n elseif($anciennete_porteur > 365*86400 && $anciennete_porteur <= 365*86400*2){\n $seuil_porteur = $comm_parrain1[\"seuil_fill_2\"];\n $seuil_parrain = $comm_parrain1[\"seuil_parr_2\"];\n }\n // ancienneté sup à 2 ans\n else{\n $seuil_porteur = $comm_parrain1[\"seuil_fill_3\"];\n $seuil_parrain = $comm_parrain1[\"seuil_parr_3\"];\n }\n \n \n \n $date_fin = $compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d');\n \n // Vérifier le CA du parrain et du filleul sur les 12 derniers mois précédents la date d'encaissement de la facture STYL et qui respectent les critères et vérifier s'il sont à jour dans le reglèmement de leur factures stylimmo \n // Dans cette partie on détermine le jour exaxt de il y'a 12 mois avant la date d'encaissement de la facture STYL\n \n \n \n // date_fin est la date exacte 1 ans avant la date d'encaissement de la facture STYL\n $date_deb = strtotime( $date_fin. \" -1 year\"); \n $date_deb = date('Y-m-d',$date_deb);\n \n \n \n // calcul du de la comm recu par le parrain de date_deb à date_fin \n \n \n $facts_parrain = Facture::where([['user_id',$parrain1->id],['filleul_id',$filleul1->user->id], ['compromis_id','<>', $compromis->id ]])->whereIn('type',['parrainage','parrainage_partage'])->get();\n $ca_parrain_parrainage = 0;\n \n // dd($date_deb);\n foreach ($facts_parrain as $fact) {\n \n // echo $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d').\"<br>\";\n if($date_fin >= $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') && $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') >= $date_deb ){\n $ca_parrain_parrainage+= $fact->montant_ht;\n }\n }\n \n \n \n \n // On vérifie que le parrain n'a pas démissionné à la date d'encaissement \n $a_demission_parrain = false;\n\n if($parrain1->contrat->a_demission == true ){\n if($parrain1->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_parrain = true;\n }\n }\n\n // On vérifie que le filleul n'a pas démissionné à la date d'encaissement \n $a_demission_filleul = false;\n\n if($mandataire1->contrat->a_demission == true ){\n if($mandataire1->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_filleul = true;\n }\n }\n \n $touch_comm = \"non\";\n // dd(\"$parrain1->id -- \".$filleul1->user->id.\" -- $ca_parrain_parrainage < \".$mandataire1->contrat->seuil_comm );\n // dd(\"$ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false\");\n // On n'a les seuils et les ca on peut maintenant faire les comparaisons ## // on rajoutera les conditions de pack pub \n if($ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false ){\n $compromis->id_valide_parrain_porteur = $parrain1->id;\n $compromis->update();\n $touch_comm = \"oui\";\n }else{\n $compromis->id_valide_parrain_porteur = null;\n $compromis->update();\n }\n\n\n // SI TOUCHE_COMM == OUI ON CALCUL LA COMMISSION DU PARRAIN DU PORTEUR\n // dd(\"$ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false \");\n if($touch_comm == \"oui\"){\n // dd($a_demission_parrain);\n // dd(\"$ca_filleul1 >= $seuil_porteur && $ca_parrain1 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire1->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false \");\n $this->store_facture_honoraire_parrainage( $compromis, $filleul1);\n }\n \n // dd(\"ici\");\n \n // ####################################################################\n \n $retour .= \"parrain : \".$parrain1->nom.' '.$parrain1->prenom.\" ca parrain: \".$ca_parrain1.\" \\n filleul porteur: \".$mandataire1->nom.' '.$mandataire1->prenom.\" ca filleul porteur: \".$ca_filleul1.\" \\n parrain touche comm ? : \".$touch_comm;\n \n }\n\n \n\n // Si le partage a un parrain\n if($filleul2!= null){\n\n $mandataire2 = $filleul2->user ;\n $parrain2 = User::where('id',$filleul2->parrain_id)->first();\n\n // Chiffre d'affaire du filleul et son parrain sur 1 ans avant la date d'encaissement, \n $ca_parrain2 = Compromis::getCAStylimmo($parrain2->id,$date_12 ,$date_encaissement);\n $ca_filleul2 = Compromis::getCAStylimmo($mandataire2->id,$date_12 ,$date_encaissement);\n\n $comm_parrain2 = unserialize($mandataire2->contrat->comm_parrain);\n\n \n // 1 on determine l'ancieneté du filleul1\n \n $dt_ent = $mandataire2->contrat->date_entree->format('Y-m-d') >= \"2019-01-01\" ? $mandataire2->contrat->date_entree : \"2019-01-01\";\n $date_entree = strtotime($dt_ent); \n $today = strtotime (date('Y-m-d'));\n $anciennete_partage = $today - $date_entree;\n\n if($anciennete_partage <= 365*86400){\n $seuil_partage = $comm_parrain2[\"seuil_fill_1\"];\n $seuil_parrain = $comm_parrain2[\"seuil_parr_1\"];\n }\n //si ancienneté est compris entre 1 et 2ans\n elseif($anciennete_partage > 365*86400 && $anciennete_partage <= 365*86400*2){\n $seuil_partage = $comm_parrain2[\"seuil_fill_2\"];\n $seuil_parrain = $comm_parrain2[\"seuil_parr_2\"];\n }\n // ancienneté sup à 2 ans\n else{\n $seuil_partage = $comm_parrain2[\"seuil_fill_3\"];\n $seuil_parrain = $comm_parrain2[\"seuil_parr_3\"];\n }\n \n\n \n $date_fin = $compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d');\n \n // Vérifier le CA du parrain et du filleul sur les 12 derniers mois précédents la date d'encaissement de la facture STYL et qui respectent les critères et vérifier s'il sont à jour dans le reglèmement de leur factures stylimmo \n // Dans cette partie on détermine le jour exaxt de il y'a 12 mois avant la date d'encaissement de la facture STYL\n \n \n // date_fin est la date exacte 1 ans avant la date d'encaissement de la facture STYL\n $date_deb = strtotime( $date_fin. \" -1 year\"); \n $date_deb = date('Y-m-d',$date_deb);\n \n \n \n \n \n // calcul du de la comm recu par le parrain de date_deb à date_fin \n $facts_parrain = Facture::where([['user_id',$parrain1->id],['filleul_id',$filleul1->user->id], ['compromis_id','<>', $compromis->id ]])->whereIn('type',['parrainage','parrainage_partage'])->get();\n $ca_parrain_parrainage = 0;\n \n // dd($date_deb);\n foreach ($facts_parrain as $fact) {\n \n // echo $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d').\"<br>\";\n if($date_fin >= $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') && $fact->compromis->getFactureStylimmo()->date_encaissement->format('Y-m-d') >= $date_deb ){\n $ca_parrain_parrainage+= $fact->montant_ht;\n }\n }\n\n\n\n\n // On vérifie que le parrain n'a pas démissionné à la date d'encaissement \n $a_demission_parrain = false;\n\n if($parrain2->contrat->a_demission == true ){\n if($parrain2->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_parrain = true;\n }\n }\n\n // On vérifie que le filleul n'a pas démissionné à la date d'encaissement \n $a_demission_filleul = false;\n\n if($mandataire2->contrat->a_demission == true ){\n if($mandataire2->contrat->date_demission <= $compromis->getFactureStylimmo()->date_encaissement ){\n $a_demission_filleul = true;\n }\n }\n\n\n\n $touch_comm = \"non\";\n // On n'a les seuils et les ca on peut maintenant faire les comparaisons ## // on rajoutera les conditions de pack pub \n if($ca_filleul2 >= $seuil_partage && $ca_parrain2 >= $seuil_parrain && $ca_parrain_parrainage < $mandataire2->contrat->seuil_comm && $a_demission_parrain == false && $a_demission_filleul == false ){\n $touch_comm = \"oui\";\n \n $compromis->id_valide_parrain_partage = $parrain2->id;\n $compromis->update();\n }else{\n $compromis->id_valide_parrain_partage = null;\n $compromis->update();\n }\n \n \n // SI TOUCHE_COMM == OUI ON CALCUL LA COMMISSION DU PARRAI DU PARTAGE \n \n \n if($touch_comm == \"oui\"){\n \n $this->store_facture_honoraire_parrainage($compromis, $filleul2);\n }\n \n \n // ####################################################################\n $retour .= \"parrain : \".$parrain2->nom.' '.$parrain2->prenom.\" ca parrain: \".$ca_parrain2.\" \\n filleul porteur: \".$mandataire2->nom.' '.$mandataire2->prenom.\" ca filleul porteur: \".$ca_filleul2.\" \\n parrain touche comm ? : \".$touch_comm;\n\n\n }\n\n }\n \n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a encaissé la facture stylimmo $facture->numero\";\n $user_id = Auth::user()->id;\n \n \n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n \n return $facture->numero;\n\n\n\n \n }", "function faireCours ()\n {\n // ECHAUFFEMENT\n echo \"(echauffez-vous d'abord)\";\n\n parent::faireCours();\n\n // RANGER LES SKIS\n echo \"(e)tirez-vous...\";\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $feuils = $em->getRepository('WorldCupRussiaBundle:Feuil')->findAll();\n\n return $this->render('feuil/index.html.twig', array(\n 'feuils' => $feuils,\n ));\n }", "function liste_articles_jour($date_jour, $nb_art_visites_jour, $date_maj_art, $prev_visites = '') {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_art'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\r\n\t//\r\n\t// requete liste article du jour\r\n\t$q = sql_select(\"sva.id_article, sva.date, sva.visites as visites_j, \r\n\t\t\tsa.titre, sa.visites, sa.popularite, sa.statut \r\n\t\t\tFROM spip_visites_articles sva \r\n\t\t\tLEFT JOIN spip_articles sa ON sva.id_article = sa.id_article \r\n\t\t\tWHERE sva.date='$date_jour' \r\n\t\t\tORDER BY visites_j DESC LIMIT $dl,$fl\");\r\n\r\n\t$nbart = sql_count($q);\r\n\r\n\r\n\t$aff = debut_cadre_relief(\"cal-jour.gif\", true);\r\n\r\n\t// bouton relance brut de la page\r\n\t// en attendant de passer a jquery !\r\n\tif ($date_jour == date('Y-m-d', mktime(0, 0, 0, date(\"m\"), date(\"d\"), date(\"Y\")))) {\r\n\t\t$aff .= \"<div class='bouton_maj'>\\n\"\r\n\t\t\t. \"<a href='\" . generer_url_ecrire(\"actijour_pg\") . \"'>\"\r\n\t\t\t. http_img_pack('puce-blanche.gif', 'ico', '', _T('actijour:mise_a_jour')) . \"</a>\\n\"\r\n\t\t\t. \"</div>\\n\";\r\n\t}\r\n\r\n\t// texte entete\r\n\tif (empty($date_maj_art)) {\r\n\t\t# La date du jour passé en 1er arg (jour, hier ...)\r\n\t\t$tbdate = recup_date($date_jour);\r\n\t\t$date_maj_art = date('d/m/y', mktime(0, 0, 0, $tbdate[1], $tbdate[2], $tbdate[0]));\r\n\t}\r\n\t$aff .= \"<div class='verdana3'>\"\r\n\t\t. _T('actijour:entete_tableau_art_jour', array(\r\n\t\t\t'nb_art_visites_jour' => $nb_art_visites_jour,\r\n\t\t\t'aff_date_now' => ' - ' . $date_maj_art\r\n\t\t))\r\n\t\t. \"</div>\\n\";\r\n\r\n\t// affichage tableau\r\n\tif (sql_count($q)) {\r\n\t\t// valeur de tranche affichꥉ\r\n\t\t$nba1 = $dl + 1;\r\n\t\t//\t\r\n\t\t$ifond = 0;\r\n\r\n\t\t// Presenter valeurs de la tranche de la requete\r\n\t\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t\t. tranches_liste_art($nba1, $nb_art_visites_jour, $fl)\r\n\t\t\t. \"\\n</div>\\n\";\r\n\r\n\t\t// tableau\r\n\t\t$aff .= \"<table align='center' border='0' cellpadding='1' cellspacing='1' width='100%'>\\n\"\r\n\t\t\t. \"<tr bgcolor='$couleur_foncee' class='head_tbl'>\\n\"\r\n\t\t\t. \"<td width='7%'>\" . _T('actijour:numero_court') . \"</td>\\n\"\r\n\t\t\t. \"<td width='65%'>\" . _T('actijour:titre_article') . \"</td>\\n\"\r\n\t\t\t. \"<td width=9%>\" . _T('actijour:visites_jour') . \"</td>\\n\"\r\n\t\t\t. \"<td width=11%>\" . _T('actijour:total_visites') . \"</td>\\n\"\r\n\t\t\t. \"<td width=8%>\" . _T('actijour:popularite') . \"</td>\\n\"\r\n\t\t\t. \"</tr>\\n\";\r\n\r\n\t\t// corps du tableau\r\n\t\twhile ($row = sql_fetch($q)) {\r\n\t\t\t$visites_a = $row['visites'];\r\n\t\t\t$visites_j = $row['visites_j'];\r\n\t\t\t$id_art = $row['id_article'];\r\n\t\t\t$titre = $row['titre'];\r\n\t\t\t$etat = $row['statut'];\r\n\t\t\t// round sur popularit鍊\t\t\t$pop = round($row['popularite']);\r\n\t\t\t// Le total-visites de l'article\r\n\t\t\t#$tt_visit = $visit + $ipv;\r\n\r\n\t\t\t$ifond = $ifond ^ 1;\r\n\t\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t\t$aff .= \"<tr bgcolor='$couleur'><td width='7%'>\\n\"\r\n\t\t\t\t. \"<div align='right' class='verdana2'>\"\r\n\t\t\t\t. affiche_lien_graph($id_art, $titre, $etat, 'spip')\r\n\t\t\t\t. \"</div>\\n</td>\"\r\n\t\t\t\t. \"<td width='65%'>\\n\"\r\n\t\t\t\t. \"<div align='left' class='verdana1' style='margin-left:5px;'><b>\"\r\n\t\t\t\t. affiche_lien_graph($id_art, $titre, $etat)\r\n\t\t\t\t. \"</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='9%'>\\n\"\r\n\t\t\t\t. \"<div align='center' class='verdana2'><b>$visites_j</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='11%'>\\n\"\r\n\t\t\t\t. \"<div align='right' class='verdana1' style='margin-right:3px;'><b>$visites_a</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='8%'>\\n\"\r\n\t\t\t\t. \"<div align='center' class='verdana1'>$pop</div>\\n\"\r\n\t\t\t\t. \"</td></tr>\\n\";\r\n\t\t}\r\n\t\t$aff .= \"</table>\";\r\n\t} // aucun articles\r\n\telse {\r\n\t\t$aff .= \"<div align='center' class='iconeoff bold' style='clear:both;'>\"\r\n\t\t\t. _T('actijour:aucun_article_visite') . \"</div><br />\\n\";\r\n\t}\r\n\t$aff .= visites_pre_traitement($prev_visites);\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function index()\n {\n $fees=Fee::where('campus_id',Session::get('campus_id'))->orderBy('class_id','asc')->get();\n return view('admin.fees.index',compact('fees'));\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $fraturas = $em->getRepository('AppBundle:Fratura')->findAll();\n\n return $this->render('fratura/index.html.twig', array(\n 'fraturas' => $fraturas,\n ));\n }", "public function detail($context) {\n if (isset($this->post->compteur)) {\n $arrCompteur = $this->em->selectByAttr('compteur', 'numero', $this->post->compteur);\n $back_btn = '<div class=\"align-content-center\"><a href=\"reglements\" class=\"btn btn-primary\"><i class=\"glyphicon glyphicon-backward\"></i> Retour </a></div>';\n if (empty($arrCompteur)) {\n $this->handleStatus('Compteur introuvable.');\n $this->loadHtml($back_btn, 'content');\n return;\n }\n $compteur = $arrCompteur[0];\n $arrConso = $this->em->selectByAttr('consommation', 'idCompteur', $compteur->getId());\n if (empty($arrConso)) {\n $this->handleStatus('Aucune consommation pour ce compteur.');\n $this->loadHtml($back_btn, 'content');\n return;\n }\n $conso = $arrConso[0];\n //$facture = $this->em->selectById('facture', $conso->getId());\n $condition = 'cs.idCompteur=' . $compteur->getId() . ' AND f.idConsommation=cs.id AND f.paye=0';\n $this->em->entityName = 'facture';\n $arrFacture = $this->em->select('f.*')->from('facture f, consommation cs')->where($condition)->queryExcec();\n //var_dump($arrFacture); exit;\n if (empty($arrFacture)) {\n $facture = $this->em->selectById('facture', $conso->getId());\n if (empty($facture)) {\n $this->handleStatus('Facture non éditée.');\n } else {\n $this->handleStatus('Aucune facture à payer.');\n }\n $this->loadHtml($back_btn, 'content');\n return;\n }\n } elseif (isset($this->post->facture)) {\n $arrFacture = $this->em->selectByAttr('facture', 'numero', $this->post->facture);\n $back_btn = '<div class=\"align-content-center\"><a href=\"reglements\" class=\"btn btn-primary\"><i class=\"glyphicon glyphicon-backward\"></i> Retour </a></div>';\n if (empty($arrFacture)) {\n $this->handleStatus('Facture introuvable.');\n $this->loadHtml($back_btn, 'content');\n return;\n } else {\n $conso = $this->em->selectById('consommation', $arrFacture[0]->getId());\n }\n }\n $facture = $arrFacture[0];\n $this->loadView('detail', 'content');\n $this->dom->getElementById('facture')->innertext = $facture->getNumero();\n $this->dom->getElementById('consommation')->innertext = $conso->getQuantiteChiffre() . ' Litres';\n $this->dom->getElementById('montant')->innertext = $facture->getMontant() . ' FCFA';\n $this->dom->getElementById('dateConso')->innertext = Helper::getDate($conso->getDate());\n $this->dom->getElementById('dateFacturation')->innertext = Helper::getDate($facture->getDateFacturation());\n $this->dom->getElementById('dateLimitePaiement')->innertext = Helper::getDate($facture->getDateLimitePaiement());\n if ($facture->getPaye()) {\n $montant = 'Déja payée';\n } else {\n $montant = $facture->getMontant();\n if ($this->date > $facture->getDateLimitePaiement()) {\n $montant += $montant * 0.05;\n }\n $montant .= ' FCFA';\n $form = '<form method=\"POST\" class=\"margin-20px clearfix align-content-center\">';\n $form .= '<button type=\"submit\" name=\"payFacture\" id=\"payFacture\" value=\"' . $facture->getId() . '\" class=\"btn btn-primary\"><i class=\"glyphicon glyphicon-play\"></i> Payer </button>';\n $form .= '</form>';\n $this->dom->getElementById('payForm')->innertext = $form;\n }\n $this->dom->getElementById('montant2')->innertext = $montant;\n }", "public function getAllActifClasse() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.etatClasse = ' . TypeEtat::ACTIF);\n // ->orderBy('e.typeClasse', 'ASC');\n return $qb->getQuery()->getResult();\n }", "function dolibarr_regler_facture($id_transaction) {\n\tspip_log(\"regler_facture_dolibarr $id_transaction 1\",'dolibarr' . _LOG_DEBUG);\n\t$transaction = sql_fetsel('*','spip_transactions','id_transaction='.intval($id_transaction));\n\tif(!$transaction or !$id_facture = $transaction['id_facture']) {\n\t\treturn false;\n\t}\n\tspip_log(\"regler_facture_dolibarr $id_transaction fact #$id_facture 2\",'dolibarr' . _LOG_DEBUG);\n\n\t$facture = sql_fetsel('*','spip_factures','id_facture='.intval($id_facture));\n\tif ($facture['no_comptable']) {\n\t\t$factref = $facture['no_comptable'];\n\t\tspip_log(\"regler_facture_dolibarr $id_transaction fact #$id_facture Ref $factref 3\",'dolibarr' . _LOG_DEBUG);\n\n\t\t$facture_doli = dolibarr_recuperer_facture(null, $factref);\n\t\tif (!$facture_doli) {\n\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction ECHEC dolibarr_recuperer_facture\",'dolibarr' . _LOG_ERREUR);\n\t\t}\n\t\telseif (!$factid = $facture_doli->id) {\n\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction ECHEC dolibarr_recuperer_facture pas de factid\",'dolibarr' . _LOG_ERREUR);\n\t\t\tspip_log($facture_doli,'dolibarr' . _LOG_ERREUR);\n\t\t}\n\t\telse {\n\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction 4\",'dolibarr' . _LOG_DEBUG);\n\t\t\t$fact_paye = $facture_doli->paye;\n\t\t\tif ($fact_paye) {\n\t\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction Facture DOLI $factref/#$factid DEJA PAYEE\",'dolibarr' . _LOG_DEBUG);\n\t\t\t}\n\t\t\telseif ($transaction['reglee'] !== 'oui') {\n\t\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction reglee!=oui\",'dolibarr' . _LOG_DEBUG);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// marquer la facture comme payee dans dolibarr (sauf si montant nul, doli ne sait pas faire)\n\t\t\telse {\n\t\t\t\tspip_log(\"regler_facture_dolibarr $id_transaction 5\",'dolibarr' . _LOG_DEBUG);\n\t\t\t\t$libelle = _T('bank:titre_transaction').' #'.$transaction['id_transaction']; //.' | '.$transaction['mode'].' '.$transaction['autorisation_id'];\n\t\t\t\t$paiement = array(\n\t\t\t\t\t\t'date_paiement' => $transaction['date_paiement'],\n\t\t\t\t\t\t'montant' => $facture['montant_regle'],\n\t\t\t\t\t\t'type_paiement' => _DOLIBARR_TYPE_PAIEMENT_CB,\n\t\t\t\t\t\t'id_bank' => _DOLIBARR_ID_BANK_PAIEMENT, /* Banque par defaut */\n\t\t\t\t\t\t'libelle' => trim($libelle),\n\t\t\t\t);\n\n\t\t\t\tif (strncmp($transaction['mode'],'cheque',6) == 0) {\n\t\t\t\t\t$paiement['type_paiement'] = _DOLIBARR_TYPE_PAIEMENT_CHEQUE;\n\t\t\t\t}\n\t\t\t\tif (strncmp($transaction['mode'],'virement',8) == 0) {\n\t\t\t\t\t$paiement['type_paiement'] = _DOLIBARR_TYPE_PAIEMENT_VIREMENT;\n\t\t\t\t}\n\t\t\t\t// un id_bank specifique pour ce presta ?\n\t\t\t\t$presta = explode('/', $transaction['mode']);\n\t\t\t\t$presta = reset($presta);\n\t\t\t\tif (substr($presta, -5) === '_test') {\n\t\t\t\t\t$presta = substr($presta, 0, -5);\n\t\t\t\t}\n\t\t\t\t$constant_id_bank = '_DOLIBARR_ID_BANK_PAIEMENT_' . strtoupper($presta);\n\t\t\t\tif (defined($constant_id_bank)) {\n\t\t\t\t\t$paiement['id_bank'] = constant($constant_id_bank); /* id Compte Banque Specifique pour ce presta */\n\t\t\t\t}\n\t\t\t\t//spip_log(\"paiement $factid presta $presta \".json_encode($paiement),'dolibarr');\n\t\t\t\t$id_paiement = dolibarr_facture_payer($factid, $paiement);\n\t\t\t\tspip_log(\"paiement $factid : $id_paiement\",'dolibarr');\n\n\n\t\t\t\tif ($facture['parrain'] == 'dolibarr' && defined('_DOLIBARR_EMAIL_NOTIF_REGLEMENT_FACTURE')) {\n\t\t\t\t\t$sujet = \"Reglement CB Facture Dolibarr $factref\";\n\t\t\t\t\t$url= generer_url_public('facture',\"id_facture=$id_facture&hash=\".md5($facture['details']),false,false);\n\t\t\t\t\t$url_fac_doli = false;\n\t\t\t\t\tif (defined('_DOLIBARR_PUBLIC_URL')) {\n\t\t\t\t\t\t$url_fac_doli = _DOLIBARR_PUBLIC_URL . \"compta/facture/card.php?facid=$factid\";\n\t\t\t\t\t}\n\t\t\t\t\t$texte =\n\t\t\t\t\t\t\"<html>\n<body>\n<p><a href='$url'>$url</a></p>\"\n. ($url_fac_doli ? \"<p><a href='$url_fac_doli'>$url_fac_doli</a></p>\" : '')\n.\"<div>\" . $facture['client'] . \"<br /></div>\"\n.$facture['details'].\"\n</body>\n</html>\";\n\n\t\t\t\t\t$envoyer_mail = charger_fonction('envoyer_mail','inc');\n\t\t\t\t\t$envoyer_mail(_DOLIBARR_EMAIL_NOTIF_REGLEMENT_FACTURE, $sujet, $texte);\n\t\t\t\t\t//include_spip('inc/notifications');\n\t\t\t\t\t//notifications_envoyer_mails(, $texte, $sujet);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdolibarr_pdfiser_facture($facture['no_comptable']);\n\n\t\t\t// et on envoie un mail de confirm au client de la facture pour qu'il ait une trace\n\t\t\tif ($transaction['contenu'] and $infos = json_decode($transaction['contenu'], true)) {\n\t\t\t\t$email = $infos['email'];\n\n\t\t\t\t$contexte = array_merge($infos, array('id_transaction' => $id_transaction));\n\t\t\t\t$texte = recuperer_fond('notifications/email_reglement_dolibarr', $contexte);\n\n\t\t\t\tinclude_spip('inc/config');\n\t\t\t\t$from = lire_config('bank/email_from_ticket_admin', $GLOBALS['meta']['email_webmaster']);\n\n\t\t\t\tinclude_spip(\"inc/notifications\");\n\t\t\t\tnotifications_envoyer_mails($email, $texte, '', $from);\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function hayfactura($factura){\n\t$funcbase = new dbutils;\n/*** conexion a bd ***/\n $mysqli = $funcbase->conecta();\n if (is_object($mysqli)) {\n\t\t $req = \"SELECT idfacturas FROM facturas2 WHERE no_factura = '\" \n \t.$factura.\"'\"; \n\t\t$query=mysqli_query($mysqli, $req);\n\t\t/* determinar el n�mero de filas del resultado */\t\n\t\t$filas = $query->num_rows;\n \t\n } else {\n die (\"<h1>'No se establecio la conexion a bd para revisar facturas'</h1>\");\n }\t\n\n /* liberar la serie de resultados */\n /* cerrar la conexion */\n\t mysqli_close($mysqli);\n\treturn $filas;\n}", "public function getLesJoursCreneauxAteliers(){\r\n\t\t$tab = array(\"jour\"=>1,\"date\"=>\"20/10/2012\",\r\n\t\t\t\t\"creneau\"=> array(\r\n\t\t\t\t\t\t\"num\"=>1,\"debut\"=>\"15h30\",\"fin\"=>\"17h\",\"atelier\"=>array(\r\n\t\t\t\t\t\t\t\t1=>\"le managenent\",\r\n\t\t\t\t\t\t\t\t2=>\"le demenagement\")\r\n\t\t\t\t)\r\n\t\t);\r\n\t\t\t\r\n\t\treturn $tab;\r\n\r\n\r\n\t}", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $froFacTransferencias = $em->getRepository('JHWEBFinancieroBundle:FroFacTransferencia')->findAll();\n\n return $this->render('frofactransferencia/index.html.twig', array(\n 'froFacTransferencias' => $froFacTransferencias,\n ));\n }", "abstract function getEmissionFactors();", "public static function getFactorings($fechai, $fechaf, $tercero)\n {\n $query = Factoring1::query();\n $query->select(DB::raw(\"SUM(factoring3_saldo) AS factoring\"), DB::raw(\"COUNT(factoring1_numero) AS numerofactoring\"));\n $query->join('factoring3', function($join){\n $join->on('factoring3_numero', '=', 'factoring1_numero');\n $join->on('factoring3_sucursal', '=', 'factoring1_sucursal');\n });\n $query->whereRaw(\"factoring3_numero = factoring1_numero\");\n $query->whereRaw(\"factoring3_numero = factoring1_numero\");\n $query->where('factoring3_tercero_cartera', $tercero->tercero_nit)->orWhere('factoring3_tercero_endoso', $tercero->tercero_nit);\n $query->where('factoring1_fecha', '>=', $fechai);\n $query->where('factoring1_fecha', '<', $fechaf);\n return $query->first();\n }", "function modificarFactura(){\r\n\t\t$this->procedimiento='tesor.ft_factura_ime';\r\n\t\t$this->transaccion='TSR_FAC_MOD';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('nro_factura','nro_factura','int4');\r\n\t\t$this->setParametro('nombre_emisor','nombre_emisor','varchar');\r\n\t\t$this->setParametro('domicilio_emisor','domicilio_emisor','varchar');\r\n\t\t$this->setParametro('nit_emisor','nit_emisor','int4');\r\n\t\t$this->setParametro('nombre_cliente','nombre_cliente','varchar');\r\n\t\t$this->setParametro('domicilio_cliente','domicilio_cliente','varchar');\r\n\t\t$this->setParametro('nit_cliente','nit_cliente','int4');\t\t\r\n\t\t$this->setParametro('fecha_emision','fecha_emision','date');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "function detailActeur($nom)\n {\n\n $file_db_acteurs_du_film = new PDO(\"sqlite:../../../BD/base_de_donnes_FILM.sqlite\");\n\n $id_film = $file_db_acteurs_du_film->query(\"SELECT code_film FROM films WHERE titre='$nom'\"); //---> sortie The mask : [2]\n\n $donnee = $id_film->fetch();\n\n //echo $donnee[0];\n\n $films = $file_db_acteurs_du_film->query(\"SELECT * FROM films WHERE code_film ='$donnee[0]'\"); // sortie toute les infos sur le film.\n\n $id_acteur = $file_db_acteurs_du_film ->query(\"SELECT * FROM ACTEURDANSFILM NATURAL JOIN acteurs WHERE ref_code_film ='$donnee[0]' and ref_code_acteur=code_indiv\"); // sort les id des acteurs en fonction de l'id du film au dessus.\n\n echo \"<fieldset id = 'blanc'> \";\n echo \"<h3 id='centrer'> -------------------------- ACTEUR(S) --------------------------</h3>\";\n echo \"<ul id='liste'><br>\";\n while($donnee2 = $id_acteur->fetch()){\n echo \"<a href='../Recherche/reponse_acteur.php?nom_recherche=\" . $donnee2['code_indiv'] . \"' ><li><br><br><h2> \" . $donnee2['prenom'] .\" \".$donnee2['nom'].\"</h2><br><img src = '../images/acteurs/\" . $donnee2['image'] .\" ' style = 'width:50%'><br><br></li></a><br>\";\n }\n $id_acteur->closeCursor();\n echo \"</ul><br>\";\n echo \"</fieldset> \";\n $file_db_acteurs_du_film = null;\n}", "public function listagemAction()\n\t{\n\t\n\t}", "public static function getDifficultiesFR()\n\t\t{\n\t\t\t$connection = Connection::getConnection();\n\t\t\t$statement = $connection->prepare(\"SELECT id,name_fr as name FROM difficulty\");\n\t\t\t$statement->setFetchMode(PDO::FETCH_ASSOC);\n\t\t\t$statement->execute();\n\n\t\t\t$content = [];\n\n\t\t\twhile ($row = $statement->fetch()) {\n\t\t\t\t$content[] = $row;\n\t\t\t\t//$content[$row[\"id\"]] = $row;\n\t\t\t}\n\n\t\t\treturn $content;\n\t\t}", "function DetalleFactura($id) {\n\t$sql = \"SELECT * FROM `conceptopago` WHERE id = '$id'\";\n\n\t$db = new conexion();\n\t$result = $db->consulta($sql);\n\t$num = $db->encontradas($result);\n\n\t$respuesta->datos = [];\n\t$respuesta->mensaje = \"\";\n\t$respuesta->codigo = \"\";\n\n\tif ($num != 0) {\n\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t}\n\n\t\t$respuesta->mensaje = \"Ok\";\n\t\t$respuesta->codigo = 1;\n\t} else {\n\t\t$respuesta->mensaje = \"No existen registros\";\n\t\t$respuesta->codigo = 0;\n\t}\n\n\treturn json_encode($respuesta);\n}", "public function getFrets()\n {\n return $this->frets;\n }", "public function listar() {\n $conexion = new Conexion();\n $consulta = $conexion->prepare('SELECT * FROM facultad');\n $consulta->execute();\n $ces = null;\n\n $tabla_datos = $consulta->fetchAll(PDO::FETCH_ASSOC);\n\n $astraba = array();\n\n\n foreach ($tabla_datos as $con => $valor) {\n $ces = $tabla_datos[$con][\"nombre\"];\n\n array_push($astraba, $ces);\n }\n return $astraba;\n }", "public function index($args) {\n $factionModel = new FactionModel();\n $factions = $factionModel->getFactions();\n foreach ($factions as &$faction) {\n $faction['Url'] = Helpers::makeUrl('faction', 'view', array('id' => $faction['Id']));\n $faction['Score'] = $factionModel->getTotalScore($faction['Id']); // optimize me (use db directly in getFactions to get score)\n }\n\n $this->afk->view('faction/list', \n array(\n 'factions' => $factions\n )\n );\n }", "public function index()\n {\n $fournitures = Fourniture::with('classe')->get();\n if(!Auth::user()->hasRole('parent')){\n return view('fournitures.indextab', compact('fournitures'));\n }\n return view('fournitures.index', compact('fournitures'));\n }", "function visites_mensuelles_chiffres($global_jour) {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t$periode = date('m/y'); // mois /annee en cours (format de $date)\r\n\t$dday = date('j'); // numero du jour\r\n\t$nb_mois = $GLOBALS['actijour']['nbl_mensuel']; // nombre mois affiche\r\n\r\n\t$requete = \"FROM_UNIXTIME(UNIX_TIMESTAMP(date),'%m') AS d_mois, \r\n\t\t\tFROM_UNIXTIME(UNIX_TIMESTAMP(date),'%y') AS d_annee, \r\n\t\t\tFROM_UNIXTIME(UNIX_TIMESTAMP(date),'%m/%y') AS date_unix, \r\n\t\t\tSUM(visites) AS visit_mois \r\n\t\t\tFROM spip_visites WHERE date > DATE_SUB(NOW(),INTERVAL 2700 DAY) \r\n\t\t\tGROUP BY date_unix ORDER BY date DESC LIMIT 0,$nb_mois\";\r\n\r\n\t// calcul du $divis : MAX de visites_mois\r\n\t$r = sql_select($requete);\r\n\t$tblmax = array();\r\n\twhile ($rmx = @sql_fetch($r)) {\r\n\t\t$tblmax[count($tblmax) + 1] = $rmx['visit_mois'];\r\n\t}\r\n\treset($tblmax);\r\n\r\n\tif (count($tblmax) == 0) {\r\n\t\t$tblmax[] = 1;\r\n\t}\r\n\t$divis = max($tblmax) / 100;\r\n\r\n\t//le tableau a jauges horizontales\r\n\t$aff .= debut_cadre_relief(\"\", true)\r\n\t\t. \"<span class='arial2'>\" . _T('actijour:entete_tableau_mois', array('nb_mois' => $nb_mois)) . \"\\n</span>\"\r\n\t\t. \"<table width='100%' cellpadding='2' cellspacing='0' border='0' class='arial2'>\\n\"\r\n\t\t. \"<tr><td align='left'>\" . _T('actijour:mois_pipe')\r\n\t\t. \"</td><td width='50%'>\" . _T('actijour:moyenne_mois') . \"</td>\\n\"\r\n\t\t. \"<td><b>\" . _T('actijour:visites') . \"</b></td></tr>\";\r\n\r\n\t$ra = sql_select($requete);\r\n\twhile ($row = sql_fetch($ra)) {\r\n\t\t$val_m = $row['d_mois'];\r\n\t\t$val_a = $row['d_annee'];\r\n\t\t$date = $row['date_unix'];\r\n\t\t$visit_mois = $row['visit_mois'];\r\n\t\t$idefix = '';\r\n\r\n\t\t//nombre de jours du mois $mois\r\n\t\t$mois = mktime(0, 0, 0, $val_m, 1, $val_a);\r\n\t\t$nbr_jours = intval(date(\"t\", $mois));\r\n\r\n\t\t// nombre de jours, moyenne, si mois en cours\r\n\t\tif ($date != $periode) {\r\n\t\t\t$nbj = $nbr_jours;\r\n\t\t\t$moy_mois = floor($visit_mois / $nbj);\r\n\t\t\t$totvisit = $visit_mois;\r\n\t\t} else {\r\n\t\t\t$nbj = ($dday == 1) ? $dday : $dday - 1;\r\n\t\t\t$moy_mois = floor(($visit_mois - $global_jour) / $nbj);\r\n\t\t\t$totvisit = $visit_mois - $global_jour;\r\n\t\t\t$idefix = \"*\";\r\n\t\t}\r\n\t\t$totvisit = number_format($totvisit, 0, ',', '.');\r\n\r\n\t\t//longeur jauge (ne tiens pas compte du jour en cour)\r\n\t\t$long = floor($visit_mois / $divis);\r\n\r\n\t\t// couleur de jauge pour mois le plus fort\r\n\t\t$color_texte = '';\r\n\t\tif ($long == 100) {\r\n\t\t\t$coul_jauge = $couleur_foncee;\r\n\t\t\t$color_texte = \"style='color:#ffffff;'\";\r\n\t\t} else {\r\n\t\t\t$coul_jauge = $couleur_claire;\r\n\t\t}\r\n\r\n\t\t$aff .= \"<tr><td class='arial2' colspan='3'>\"\r\n\t\t\t. \"<div style='position:relative; z-index:1; width:100%;'>\"\r\n\t\t\t. \"<div class='cell_info_mois'>$date</div>\"\r\n\t\t\t. \"<div class='cell_moymens'>$moy_mois</div>\"\r\n\t\t\t. \"<div class='cell_info_tot' $color_texte><b>$totvisit</b>$idefix</div>\"\r\n\t\t\t. \"</div>\";\r\n\t\t# barre horiz \r\n\t\t$aff .= \"<div class='fond_barre'>\\n\"\r\n\t\t\t. \"<div style='width:\" . $long . \"%; height:11px; background-color:\" . $coul_jauge . \";'></div>\\n\"\r\n\t\t\t. \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"<tr><td colspan='3'><span class='verdana1'>\"\r\n\t\t. _T('actijour:pied_tableau_mois') . \"</span></td></tr>\\n\"\r\n\t\t. \"</table></span>\\n\";\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n\r\n}", "public function facturas(){\nUtils::administador();\n$factura = new Factura();\n$facturas = $factura->todasfacturas();\n\n//MOSTRAR LAS FACTURAS PAGADAS\n$pagada = new PagoFactura();\n$pagadas = $pagada->pagadaall();\n\ninclude_once 'views/administrador/facturas.php';\n}", "static public function ctrMostrarFacturas($item, $valor){\n\n\t\t$tabla = \"factura\";\n\n\t\t$respuesta = ModeloFacturas::mdlMostrarFacturas($tabla, $item, $valor);\n\n\t\treturn $respuesta;\n\n\t}", "public function show(FacturaItem $facturaItem)\n {\n //\n }", "public function get_datos_factura($n_venta_cf,$id_paciente_cf){\n\t$conectar= parent::conexion();\n\tparent::set_names();\n\t$sql=\"select producto from detalle_ventas where numero_venta=? and id_paciente=? order by id_detalle_ventas ASC;\";\n\t$sql=$conectar->prepare($sql);\n\t$sql->bindValue(1,$n_venta_cf);\n $sql->bindValue(2,$id_paciente_cf);\n\t$sql->execute();\n\treturn $resultado= $sql->fetchAll(PDO::FETCH_ASSOC);\n}", "public function index(Request $request)\n {\n //$facturas = $this->facturasRepository->all();\n $facturas = DB::select(\"SELECT f.id_fac,\n f.descuento,\n f.iva,\n SUM(fd.cantidad*fd.precio_unitario) as subt,\n em.sitio_web,\n nom.nombre,\n nom.apellidos,\n procli.razon_social,\n f.numfac\n FROM factura f\n JOIN factura_detalle fd ON f.id_fac=fd.id_fac\n JOIN empresa em ON f.id_empr=em.id_empr\n JOIN nomina nom ON f.id_nomi=nom.id_nomi\n JOIN proveedores_clientes procli ON f.id_procli=procli.id_procli\n GROUP BY f.id_fac \n \");\n\n return view('facturas.index')\n ->with('facturas', $facturas);\n }", "public function index()\n {\n $datosFactura = FacturacionCurso::All();\n return view('facturacionCursos.index', compact('datosFactura'));\n }", "function getCorrectiveActions() {\n\n //sql to return all correctiveAction objects\n $sql = \"SELECT * from corrective_action\";\n $correctiveActions = array();\n $result = mysqli_query($this->plink, $sql);\n\n while ($row = mysqli_fetch_assoc($result)) {\n $correctiveActions[] = $this->correctiveAction($row);\n }\n\n return $correctiveActions;\n }", "public function SelectAllTitresFiches()\n\t{\n\t\t$query = \t'\n\t\t\t\t\tselect \n\t\t\t\t\t\tID_FICHE, \n\t\t\t\t\t\tFICHE_TITRE\n\t\t\t\t\tfrom \n\t\t\t\t\t\tFICHES\n\t\t\t\t\torder by \n\t\t\t\t\t\tFICHE_TITRE\n\t\t\t\t\t';\n\n\t\t$result = $this->conn->prepare($query);\n\n\t\t$result->execute() or die ($this->Error($result));\n \n\t\treturn $result->fetchAll();\n \n\t}", "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\t\t\n $entity = $this->getFactureAM($em, $id);\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Facture entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('chevPensionBundle:Facture:show.html.twig', array(\n 'entity'\t\t\t=> $entity['facture'],\n 'montant' \t\t=> $entity['montant'],\n 'nbJours' \t\t=> $entity['nbJours'],\n 'nbMois'\t \t\t=> $entity['nbMois'],\n 'TVA'\t\t \t\t=> $entity['TVA'],\n 'montantTVA' \t\t=> $entity['montantTVA'],\n 'totalMontantTVA' \t=> $entity['totalMontantTVA'],\n 'delete_form' \t\t=> $deleteForm->createView(), \n\t\t));\n }" ]
[ "0.6688035", "0.66018736", "0.6486235", "0.6442815", "0.63959014", "0.6341493", "0.6336905", "0.627739", "0.62099594", "0.6113848", "0.61048365", "0.60739315", "0.6025713", "0.6021141", "0.60193765", "0.60136425", "0.6013067", "0.5962052", "0.59499896", "0.5919626", "0.59128267", "0.59103984", "0.58802193", "0.5850452", "0.5815906", "0.58101535", "0.57981026", "0.5782234", "0.5768814", "0.5743127", "0.5722013", "0.5715762", "0.5708566", "0.5707654", "0.57066923", "0.5703444", "0.5698371", "0.5677306", "0.567469", "0.56693476", "0.5643913", "0.56422216", "0.5624121", "0.5623468", "0.5597008", "0.55869323", "0.5564673", "0.556188", "0.5553025", "0.55258775", "0.5525469", "0.5522959", "0.5521831", "0.55194145", "0.5517325", "0.5511829", "0.5506844", "0.54893285", "0.54877156", "0.54791933", "0.5473362", "0.5433173", "0.5429078", "0.54276776", "0.5424821", "0.54222274", "0.54114413", "0.539832", "0.5397005", "0.5396463", "0.5395761", "0.53942543", "0.5391962", "0.5390051", "0.538058", "0.53795475", "0.53745115", "0.53492767", "0.5342082", "0.5341969", "0.53347194", "0.533445", "0.5329527", "0.5325077", "0.5312155", "0.53082895", "0.53076035", "0.53067875", "0.5300951", "0.52989703", "0.529832", "0.5297513", "0.5291832", "0.5285557", "0.5280991", "0.5276794", "0.5273821", "0.5268032", "0.5266646", "0.5260884", "0.52594507" ]
0.0
-1
Returns PDF file path for the facture If the PDF file does not already exist, it will attempt to generate it.
public function pdf($id) { $valeurs = $this->detail($id); if (!$valeurs) { throw new MY_Exceptions_NoSuchRecord('Impossible de trouver la facture ' . $id); } /*if ($valeurs->fac_fichier && file_exists($valeurs->fac_fichier)) { return array( 'path' => $valeurs->fac_fichier, 'created' => false, ); }*/ $chemin = $this->generer_pdf($id, true); if ($chemin) { return array( 'path' => $chemin, 'created' => true, ); } return $chemin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "function dolibarr_pdfiser_facture($factref) {\n\n\t// Generer le PDF et le recopier dans SPIP\n\tif ($factref\n\t\tand $pdf_file = dolibarr_facture_pdf(0, $factref)\n\t and file_exists($pdf_file)) {\n\t\t$dir_pdf = sous_repertoire(_DIR_IMG,\"factures\");\n\t\tif (!file_exists($dir_pdf.\".htaccess\"))\n\t\t\tecrire_fichier($dir_pdf.\".htaccess\",\"deny from all\\n\");\n\t\t@copy($pdf_file, $dir_pdf . texte_script($factref) . '.pdf');\n\t}\n\telse {\n\t\tspip_log(\"fichier pdf dolibarr manquant \".$pdf_file,'dolibarr'._LOG_ERREUR);\n\t}\n\n}", "protected function generateFilePaths()\r\n {\r\n $filename = $this->filename;\r\n\r\n $this->validateStoragePath();\r\n\r\n $path = $this->storagePath . DIRECTORY_SEPARATOR;\r\n\r\n $this->htmlPath = $path . uniqid('pdf-', true).'.html';\r\n\r\n $this->pdfPath = $path . $this->filename . '.pdf';\r\n }", "public function getFilePdf(): string\n {\n return (string) $this->filePdf;\n }", "public function getFilename()\n {\n return $this->filename . '.pdf';\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}", "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 }", "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 generatePDF()\n {\n $pdf = App::make('dompdf');\n $pdf = $pdf->loadHTML('<h1>Test</h1>');\n return $pdf->stream('company_background.pdf');\n }", "protected function getUploadRootDirPdf() {\n // guardar los archivos cargados\n return __DIR__ . '/../../../../web/uploads/portafolios/' . $this->getId() . '/pdf';\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 $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 }", "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 }", "function\tcreatePDF( $_key=\"\", $_id=-1, $_pdfName=\"\") {\n\t\t$this->_createPDF( $_key, $_id, $_pdfName) ;\n\t\t$this->printPDF() ;\n\t\treturn $this->myCustomerCommission->getXMLComplete() ;\n\t}", "public function getAcademicAnalyticsPDF()\n {\n\n /*$getUrl = $this->connection->prepare(\"SELECT * FROM `AC_FacultyInfo` WHERE OU_ABBREV = ? AND OUTCOMES_AY = ?\");\n $getUrl->bindParam(1,$this->ouAbbrev,PDO::PARAM_STR);\n $getUrl->bindParam(2,$this->selectedYear,PDO::PARAM_STR);\n $getUrl->execute();\n $data = $getUrl->fetch();\n\n if (!empty($data[\"AC_SUPPL_ACADEMIC_ANALYTICS\"])){\n\n if (file_exists(\"../../uploads/ac_programs/\".$data[\"AC_SUPPL_ACADEMIC_ANALYTICS\"]))\n $this->getSupplementPdf(\"../../uploads/ac_programs/\".$data[\"AC_SUPPL_ACADEMIC_ANALYTICS\"]);\n\n }*/\n\n }", "public function downloadPdf() {\n $file_name = get('name');\n return \\Response::download(temp_path($file_name . '.pdf'));\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 getPdfUrl() {\n $ch = curl_init();\n $timeout = 10;\n curl_setopt($ch, CURLOPT_URL, $this->url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n $response = curl_exec($ch);\n curl_close($ch);\n\n // If you accidentally look at this, I suggest pretending you haven't seen it.\n $matches = array();\n preg_match(\"/\\<span class=\\\"application-pdf\\\"\\>.*\\<\\/span\\>/\", $response, $matches);\n \n // If no PDF URL that means there is no bill to download yet (boo)\n if (!isset($matches[0]))\n return false;\n \n $pdfUrl = $matches[0];\n $pdfUrl = str_replace('<span class=\"application-pdf\"><a href=\"', '', $pdfUrl);\n $pdfUrl = preg_replace(\"/\\\"\\>PDF version,(.*)\\<\\/a\\>\\<\\/span\\>/\", '', $pdfUrl);\n // Forcably fix some incorrectly parsed URLs\n $pdfUrl = preg_replace(\"/^.*http\\:/\", 'http:', $pdfUrl);\n $pdfUrl = preg_replace(\"/\\.pdf.*$/\", '.pdf', $pdfUrl);\n \n return $pdfUrl;\n }", "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 deletePdf()\n {\n \tif(Storage::disk('local')->exists('public/processo_seletivo_pdf/' . $this->url_pdf)) {\n \t\treturn Storage::disk('local')->delete('public/processo_seletivo_pdf/' . $this->url_pdf);\n \t} else {\n \t\treturn false;\n \t}\n }", "public function setFilename($pdfFilename);", "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 }", "private static function getPdfTmpFolder()\n {\n if (ApiPrint::$pdf_tmp_folder === null) {\n $folder = PRINT_TMP.'/pdf';\n if (file_exists($folder) === false || is_dir($folder) === false) {\n if (mkdir($folder, 0777, true) === false) {\n throw new Exception('Impossible to create HTML temp folder');\n }\n }\n ApiPrint::$pdf_tmp_folder = $folder;\n }\n \n return ApiPrint::$pdf_tmp_folder;\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 }", "function\tcreatePDF( $_key=\"\", $_id=-1, $_pdfName=\"\") {\n\t\t$this->_createPDF( $_key, $_id, $_pdfName) ;\n\t\treturn $this->myInv->getXMLComplete() ;\n\t}", "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 }", "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,iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAYAAAAbvPRpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AABecmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWR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24vP/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 }", "public function generatePDF() {\n $this->generateFirstPage();\n // check data barang, if there's more than 1, spawn additional page\n $this->generateNextPage([]);\n }", "public function getPdfPath($storeId, $pdfName)\n {\n $storeCode = $store = Mage::app()->getStore($storeId)->getCode();\n $dir = $this->_pdfBasePath . DIRECTORY_SEPARATOR . $storeCode;\n if(!file_exists($dir)){\n mkdir($dir, 0777, true);\n }\n return $dir . DIRECTORY_SEPARATOR . $pdfName;\n }", "public function getFilePath() {\n\t\t$path = SPREADSHEET_FILES_DIR . \"/\" . $this->file_name;\n\t\tif (file_exists($path)) {\n\t\t\treturn $path;\n\t\t}\n\t}", "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 }", "protected function getPdf($orderId) {\n return Yii::getAlias('@backurl'). '/orders/pdf?id='.$orderId;\n }", "public function store_upload_pdf_honoraire(Request $request , $facture_id)\n{\n // on force le format des dates à cause des vieux navigateurs\n $date = date_create($request->date_facture);\n $date_facture = $date->format('Y-m-d');\n \n\n $numero = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$request->numero_facture) ;\n\n $facture = Facture::where('id', Crypt::decrypt($facture_id))->first();\n\n $check_numero = Facture::where([['user_id',$facture->user_id],['numero',$request->numero_facture]])->first();\n \n $request->validate([\n \"numero_facture\" => \"required\",\n \"date_facture\" => \"required|date\",\n \"montant_ht\" => \"required|numeric\",\n \"file\" => \"required|max:5000\",\n // \"file\" => \"required|mimes:jpeg,png,pdf,doc,docx|max:5000\",\n ]);\n\n\n if($check_numero != null && $facture->numero != $request->numero_facture ){\n return redirect()->route('facture.create_upload_pdf_honoraire',$facture_id)->with('ok',__(\"Le numéro de facture $request->numero_facture existe déjà dans vos factures\"));\n }\n\n\n if(intval($request->montant_ht) != intval($facture->montant_ht) ){\n return redirect()->route('facture.create_upload_pdf_honoraire',$facture_id)->with('ok',__(\"Votre montant HT ( $request->montant_ht € ) ne correspond pas au montant HT ( $facture->montant_ht € ) de la note d'honoraire. Veuillez contacter l'administrateur.\"));\n }\n \n\n\n// dd($check_numero);\n if($file = $request->file('file')){\n\n $name = $file->getClientOriginalName();\n\n // on sauvegarde la facture dans le repertoire du mandataire\n $path = storage_path('app/public/'.$facture->user->id.'/factures');\n\n if(!File::exists($path))\n File::makeDirectory($path, 0755, true);\n \n $nom = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture->user->nom) ;\n $prenom = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture->user->prenom) ;\n\n $filename = strtoupper($nom).\" \".strtoupper(substr($prenom,0,1)).\" F\".$numero.\" \".$request->montant_ht.\"€ F\".$facture->compromis->getFactureStylimmo()->numero ;\n \n $file->move($path,$filename.'.pdf'); \n $path = $path.'/'.$filename.'.pdf';\n \n $facture->url = $path;\n $facture->numero = $request->numero_facture;\n $facture->date_facture = $date_facture;\n $facture->statut = \"en attente de validation\";\n $facture->date_ajout_facture = date('Y-m-d');\n \n $facture->update();\n }\n \n \n // SI YA PARTAGE EXTERNE AVEC UNE AGENCE\n \n if($request->numero_facture_externe != null){\n \n $facture_externe = Facture::where([['user_id', $facture->user_id],['type','partage_externe']])->first(); \n $numero_externe = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$request->numero_facture_externe) ;\n \n \n if($file_externe = $request->file('file_externe')){\n\n $name_externe = $file_externe->getClientOriginalName();\n \n // on sauvegarde la facture dans le repertoire du mandataire\n $path_externe = storage_path('app/public/'.$facture->user->id.'/factures');\n \n if(!File::exists($path_externe))\n File::makeDirectory($path_externe, 0755, true);\n \n $nom_agent = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture_externe->compromis->nom_agent) ;\n \n \n $filename_externe = strtoupper($nom_agent).\" F\".$numero_externe.\" \".$request->montant_ht_externe.\"€ F\".$facture_externe->compromis->getFactureStylimmo()->numero ;\n \n $file_externe->move($path_externe,$filename_externe.'.pdf'); \n $path_externe = $path_externe.'/'.$filename_externe.'.pdf';\n \n $facture_externe->url = $path_externe;\n $facture_externe->numero = $request->numero_facture;\n $facture_externe->date_facture = $request->date_facture_externe;\n $facture_externe->statut = \"en attente de validation\";\n $facture_externe->update();\n }\n \n }\n \n \n // SI ON AJOUTE LE RIB DE L'AGENCE EXTERNE\n if($rib = $request->file('rib')){\n\n $facture_externe = Facture::where([['user_id', $facture->user_id],['type','partage_externe']])->first(); \n $name_externe = $rib->getClientOriginalName();\n\n // on sauvegarde la facture dans le repertoire du mandataire\n $path_rib = storage_path('app/public/'.$facture->user->id.'/rib');\n\n if(!File::exists($path_rib))\n File::makeDirectory($path_rib, 0755, true);\n \n $nom_agent = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture_externe->compromis->nom_agent) ;\n\n $filename_rib = strtoupper($nom_agent).\"_rib_\".$facture_externe->compromis->getFactureStylimmo()->numero ;\n \n $rib->move($path_rib,$filename_rib.'.pdf'); \n $path_rib = $path_rib.'/'.$filename_rib.'.pdf';\n \n $facture_externe->rib = $path_rib;\n\n $facture_externe->update();\n }\n \n \n \n \n if( session('is_switch') == true ){\n $action = \"a ajouté la facture $facture->numero pour \".Auth::user()->nom.\" \".Auth::user()->prenom;\n $user_id = session('admin_id');\n }else{\n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a ajouté la facture $facture->numero\";\n $user_id = Auth::user()->id;\n }\n \n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n\n\n return redirect()->route('facture.index')->with('ok',__(\"Votre facture $facture->numero est attente de validation.\"));\n \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 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 }", "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}", "public function pdf() \n {\n $proveedores = Proveedor::all();\n $coment = 'Reporte de proveedores con los datos sin filtrar';\n $pdf = PDF::loadView('pdf.proveedor', compact('proveedores','coment'))->setPaper('letter');//,'landscape' para cambiar la horientacion de la hoja\n return $pdf->stream('proveedor.pdf');//descargar directa \"dawnload\" en lugar de stream\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,iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAYAAAAbvPRpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AABecmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0i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jnWTCQ101rTawIkNkIi7kd9SzobiCfUwy6XnruT4g3ma16JHnb91uQooK0vK1xhXnqYmqkgnttRZaX7NdFviw7dAdJtKrpH0t4Igx0nAaagpBzpOf2RSNuNynck3IXT4Mnc1da5F3NMJJOstXYjml8bgLRcNiXT+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 }", "public function pdf($value) {\n return $this->setProperty('pdf', $value);\n }", "public function getPdfUrl($option = '')\n {\n return UrlHelper::getActionUrl('market/download/pdf?number=' . $this->number . \"&option=\" . $option);\n }", "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 __createInvoiceReceiptPDF($paper) {\n\n # include our PDF class\n\n App::import('Vendor', 'invoice-receipt-pdf');\n\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 .= $invoice['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\n\n $date = '';\n\n //$date .= date('jS M Y', strtotime($invoice['Invoice']['date'])).'<br/>';\n\n $date .= 'Data: ' . date('d.m.Y', strtotime($invoice['Invoice']['date'])); //.'<br/><br/>';\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($invoice['Invoice']['dueDate']));\n\n // set up class properties.\n\n $pdf->xInvoiceId = $invoice['Invoice']['invoiceId'];\n\n $pdf->xContact = $contact;\n\n $pdf->xClient = $client;\n\n $pdf->xClient2 = $paper['Client']['name'];\n\n $pdf->xNrChitanta = $paper['Invoice']['nr_chitanta'];\n\n $pdf->xRegComert = $paper['Client']['reg_comert'];\n\n $pdf->xCui = $paper['Client']['cui'];\n\n $pdf->xAdresa = $paper['Client']['address'] . ', ' . $paper['Client']['city'] . ', ' . $paper['Client']['state'];\n\n $pdf->xTotal = $paper['Invoice']['total'];\n\n //echo $pdf->xTotal.';';\t\n\n $pdf->xTotal = strval($pdf->xTotal);\n\n $pieces = explode(\".\", $pdf->xTotal);\n\n //echo $pdf->xTotal.';';\t\n //pr($pieces);\n //$pdf->xDecimal = ltrim(($invoice['Invoice']['total'] - floor($invoice['Invoice']['total'])),\"0.\"); // result .3\n //$pdf->xDecimal = ($invoice['Invoice']['total'] - floor($invoice['Invoice']['total'])); // result .3\n //$int = $invoice['Invoice']['total'] > 0 ? floor($invoice['Invoice']['total']) : ceil($invoice['Invoice']['total']);\n //$pdf->xDecimal = $invoice['Invoice']['total'] - $int;\n //echo $pdf->xDecimal;\n //pr($invoice['Invoice']['total']);\n\n $pdf->xTotalLitere = $this->__SumaBani($pieces[0]);\n\n if ($pieces[1] <> '00') {\n\n $pdf->xTotalLitereDecimal = $this->__SumaBani($pieces[1]);\n } else {\n\n $pdf->xTotalLitereDecimal = 0;\n }\n\n\n\n $pdf->xDate = $date;\n\n $pdf->xDateDue = $date_due;\n\n $pdf->xDelegat = $paper['Invoice']['delegat'];\n\n $pdf->xCarteIdentitate = $paper['Invoice']['carte_identitate'];\n\n $pdf->xAuto = $paper['Invoice']['auto'];\n\n $pdf->xDataLivrare = $paper['Invoice']['data_livrare'];\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 $pdf->TotalTable($paper['Invoice']);\n\n //Save file To web root PDF document\n\n $pdf->Output($paper['Invoice']['invoiceId'] . '-receipt.pdf', 'I');\n }", "public function getCheminPDF() {\n\t\treturn $this->chemin_pdf;\n\t}", "public function export()\n {\n \t/*create pdf file here with */\n \t$pdfOutput = \"\";\n \t\n \treturn $pdfOutput;\n }", "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 }", "public function getPersonalizationPreviewPdfUrl()\n {\n $orderHelper = Mage::helper('printscience_personalization/order');\n $data = $orderHelper->getItemData($this->getItem());\n if (empty($data['preview_pdf_url'])) {\n return false;\n }\n return $data['preview_pdf_url'];\n }", "function save_pdf($para = NULL, $file_name = '') {\n include_once APPPATH . '/third_party/mpdf/vendor/autoload.php';\n// $file_name = date(\"Y_m_d_H_i_s\") . '.pdf';\n $file_destination = '';\n $file_name = ((!empty($file_name)) ? $file_name : time()) . '.pdf';\n $ip_address_array = array('127.0.0.1', '::1');\n if (in_array($_SERVER['REMOTE_ADDR'], $ip_address_array)) {\n $file_destination = $_SERVER['DOCUMENT_ROOT'] . '/business_automation/assets/uploads/pdf/' . $file_name;\n } else {\n $file_destination = $_SERVER['DOCUMENT_ROOT'] . '/assets/uploads/pdf/' . $file_name;\n }\n $mpdf = new \\Mpdf\\Mpdf(['mode' => 'utf-8', 'format' => 'A4']);\n $stylesheet = file_get_contents('assets/vendor/bootstrap/css/bootstrap.min.css');\n $stylesheet_1 = file_get_contents('assets/css/style.css');\n $mpdf->SetTitle('PDF');\n $mpdf->WriteHTML($stylesheet, 1);\n $mpdf->WriteHTML($stylesheet_1, 1);\n $mpdf->WriteHTML($para);\n// $mpdf->Output($file_name, 'D'); // make it to download\n $mpdf->Output($file_destination, 'F');\n return $file_destination;\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 }", "public function pdf($form=''){\n $this->load->model('Report');\n $this->Report->downloadpdf($form);\n }", "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 }", "private static function getPdfTmpFilename($md5, $options = array())\n {\n $folder = ApiPrint::getPdfTmpFolder();\n $filename = sha1($md5.serialize($options));\n \n return $folder.'/'.$filename.'.pdf';\n }", "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}", "function pdf()\n {\n $pdf = \\App::make('dompdf.wrapper');\n $pdf->loadHTML($this->convert_pedido_data_to_html());\n $date = Carbon::now();\n return $pdf->stream('Ventas_diarias_'.$date.'.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 }", "public function printPDF()\n {\n $abc = Product::all();\n $data = [\n 'title' => 'Generate PDF',\n 'heading' => 'Invoices from UNILUXX',\n 'content' => 'Product',\n 'abc' => $abc\n ];\n\n $pdf = PDF::loadView('pages.pdf_view', $data);\n return $pdf->download('uni-invoice.pdf');\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}", "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 }", "function download_pdf($para = NULL, $file_name = '') {\n include_once APPPATH . '/third_party/mpdf/vendor/autoload.php';\n// $file_name = date(\"Y_m_d_H_i_s\") . '.pdf';\n $file_name = ((!empty($file_name)) ? $file_name : time()) . '.pdf';\n $ip_address_array = array('127.0.0.1', '::1');\n if (in_array($_SERVER['REMOTE_ADDR'], $ip_address_array)) {\n $file_destination = $_SERVER['DOCUMENT_ROOT'] . '/business_automation/assets/uploads/pdf/' . $file_name;\n } else {\n $file_destination = $_SERVER['DOCUMENT_ROOT'] . '/assets/uploads/pdf/' . $file_name;\n }\n $mpdf = new \\Mpdf\\Mpdf(['mode' => 'utf-8', 'format' => 'A4']);\n $stylesheet = file_get_contents('assets/vendor/bootstrap/css/bootstrap.min.css');\n $stylesheet_1 = file_get_contents('assets/css/style.css');\n $mpdf->SetTitle('PDF');\n $mpdf->WriteHTML($stylesheet, 1);\n $mpdf->WriteHTML($stylesheet_1, 1);\n $mpdf->WriteHTML($para);\n $mpdf->Output($file_destination, 'D'); // make it to download\n return $file_destination;\n }", "function join_pdf()\n\t\t{\n\t\t}", "function generateTicketPDF(string $uuid)\n {\n try {\n $ticket = Ticket::where('unique_id', '=', $uuid)->firstOrFail();\n } catch (\\Throwable $exception) {\n Log::critical('Failed to generate ticket');\n\n return abort(404);\n }\n\n $product = Product::whereJsonContains('variants', ['sku' => $ticket->sku])->firstOrFail();\n\n $productName = $product->name;\n $ticketUuid = $ticket->unique_id;\n $ticketQrCode = $ticket->ticket->image;\n $ticketAdmitQuantity = $ticket->admit_quantity ?? 1;\n $confirmation_code = $ticket->order->confirmation_code;\n\n\n $products = $ticket->order->basket->products;\n $ticketPrice = 0;\n $settings = Settings::firstOrFail();\n $currency = json_decode($settings->settings, true)['currency']['currency_symbol'];\n\n foreach ($products as $product) {\n if ($ticket->sku === $product->sku) {\n $ticketPrice = $product->price;\n break;\n }\n }\n\n // For Testing\n // For some reason SSL was messing with my Image requests....\n $context = stream_context_create([\n 'ssl' => [\n 'verify_peer' => false,\n 'verify_peer_name' => false,\n 'allow_self_signed' => true,\n ]\n ]);\n\n $pdf = PDF::setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => false]);\n $pdf->getDomPDF()->setHttpContext($context);\n\n $pdf->loadView('trapmusicmuseum::ticket',\n compact(\n 'ticketUuid',\n 'ticketQrCode',\n 'ticketPrice',\n 'ticketAdmitQuantity',\n 'currency',\n 'confirmation_code',\n 'productName'\n )\n );\n\n return $pdf->stream();\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 get_new_file($id_progetto) {\n return sys_get_temp_dir() . DIRECTORY_SEPARATOR . \"ReportQuestionariProgetto-\" . str_pad($id_progetto, 4, '0', STR_PAD_LEFT) . \".xlsx\";\n }", "protected function Uploadpdf()\r\n\t\t{\r\n\t\t}", "public static function pdf($request, $response)\n {\n $id = $request->getAttribute('id');\n if (!ModelsRequests::generatePdfForId($id)) {\n return $response->withStatus(404)->withText(\"Il congedo non è stato trovato!\");\n }\n }", "public function getDocumentUrl() {\n Yii::$app->params['uploadUrl'] = Yii::$app->urlManager->baseUrl . '/web/pdf/subproyectos/';\n// return a default image placeholder if your source avatar is not found\n $evidencias = isset($this->evidencias) ? $this->evidencias : null;\n return Yii::$app->params['uploadUrl'] . $evidencias;\n }", "public function generte_pdf(Request $request){\n }", "function addPdfFile($file_path) {\n if (!(filesize($file_path) > 0))\n throw new Error(create_invalid_value_message($file_path, \"file_path\", \"pdf-to-pdf\", \"The file must exist and not be empty.\", \"add_pdf_file\"), 470);\n \n $this->files['f_' . $this->file_id] = $file_path;\n $this->file_id++;\n return $this;\n }", "function my_give_pdf_receipt_filename_changer() {\n $newname = 'YOUR-TEXT-HERE';\n return $newname;\n}", "public function memberUploadPdf (Request $request){\n if(isset($request)){\n $fileName = uniqid().'.pdf';\n $token = md5(uniqid()); \n $companyId = $request->companyId;\n $requestId = $request->requestId;\n $memberID = $request->memberID;\n $firmID = $request->firmID;\n $docType = $request->docType;\n $pdfName = $request->filename; \n $path = 'memberChange/'.$companyId;\n $path= $request->file('uploadFile')->storeAs($path,$fileName,'sftp');\n $docId;\n if($docType=='form18Upload'){\n $docId = Documents::where('key','DIRSEC_CHANGE_FORM18')->value('id');\n $description=NULL;\n }elseif($docType=='form19Upload' || $docType=='form19UploadFirm'){\n $docId = Documents::where('key','DIRSEC_CHANGE_FORM19')->value('id');\n $description=NULL; \n }elseif($docType=='form20Upload'){\n $docId = Documents::where('key','DIRSEC_CHANGE_FORM20')->value('id');\n $description=NULL; \n }elseif($docType=='resignationUpload'){\n $docId = Documents::where('key','DIRSEC_CHANGE_RESIGNATION_LETTER')->value('id');\n $description = $request->description;\n if($description=='undefined'){\n $description=NULL;\n } \n }elseif($docType=='extraUpload'){\n $docId = Documents::where('key','EXTRA_DOCUMENT')->value('id');\n $description = $request->description;\n if($description=='undefined'){\n $description=NULL;\n } \n }\n\n\n $query = CompanyDocuments::query();\n $query->where('company_id', $companyId );\n $query->where('document_id',$docId);\n $query->where('request_id', $requestId);\n\n if ($memberID) {\n $query->where('company_member_id', $memberID );\n $query->delete();\n }\n if ($firmID) {\n $query->where('company_firm_id', $firmID );\n $query->delete();\n }\n if ($docType=='form20Upload') {\n $docId = Documents::where('key','DIRSEC_CHANGE_FORM20')->value('id'); \n $query->where('document_id', $docId );\n $query->delete();\n }\n\n\n $memDoc = new CompanyDocuments;\n $memDoc->company_id = $companyId;\n $memDoc->document_id = $docId;\n $memDoc->no_of_pages = 1;\n $memDoc->name = $pdfName;\n $memDoc->file_description = $description;\n $memDoc->file_token = $token;\n $memDoc->path = $path;\n if($memberID){\n $memDoc->company_member_id = $memberID;\n }else if($firmID){\n $memDoc->company_firm_id = $firmID;\n }\n $memDoc->request_id = $requestId; \n $memDoc->status = $this->settings('DOCUMENT_PENDING','key')->id;\n $memDoc->save(); \n $memdocId = $memDoc->id; \n return response()->json([\n 'message' => 'File uploaded successfully.',\n 'status' =>true,\n 'name' =>basename($path),\n 'doctype' =>$docType,\n 'docid' =>$memdocId, // for delete pdf...\n 'token' =>$token,\n 'memberID' =>$memberID,\n 'firmID' =>$firmID,\n 'pdfname' =>$pdfName,\n ], 200); \n }\n }", "public function saveCompiledPdfTo($pdf_filepath, $overwrite = FALSE);", "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 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}", "protected static function getFacadeAccessor()\n {\n return 'pdf';\n }", "public function getFilepath() {\n\t\treturn RuntimeDirectoryManager::getDocumentRoot().$this->filename;\n\t}", "public function pdf() {\n $anuncios = DB::table('anuncio')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.anuncios', compact('anuncios'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_anuncios.pdf');\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 index()\n \n{\n\n \n\t$this->pdf=new pdf();\n global $title;\n\n\n\n $this->pdf->AddPage('P','A4',0);\n $this->pdf->SetFont('Arial','B',10);\n $hoy=date(\"dmyhis\");\n \n $this->pdf->Cell(180,19,'ESCUELA DE NATACION',0,1,'C');\n //$this->pdf->Image('upload/c1.jpg',10,10,-900);\n $this->pdf->Image('upload/NATA.png',10,10,-800);\n\n /****** FECHA ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,6,'FECHA:',0,1,'L');\n $this->pdf->Ln('0');\n\n $AAA3=$this->input->post('txtPDF3'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(40,4,$AAA3,0,1,'C');\n $this->pdf->Ln('1');\n/****** NOMBRE ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(50,20, 'NOMBRE:',1,0,'C');\n $this->pdf->Ln('0');\n\n $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA,1,1,'C');\n $this->pdf->Ln('1');\n\n/****** CONCEPTO ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(50,20, 'CONCEPTO DE:',1,0,'C');\n $this->pdf->Ln('0');\n\n $AAA2=$this->input->post('txtPDF2'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA2,1,1,'C');\n $this->pdf->Ln('1');\n\n/****** MENSUALIDAD ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(50,20, 'MENSUALIDAD DEL MES:',1,0,'C');\n $this->pdf->Ln('0');\n\n $AAA1=$this->input->post('txtPDF1'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA1,1,1,'C');\n $this->pdf->Ln('8');\n\n\n /********************************/\n \n $this->pdf->Cell(50,20, 'ENTREGADO CONFORME',0,0,'C');\n $this->pdf->Ln('0');\n\n $this->pdf->Cell(250,20,'RECIBIDO CONFORME',0,1,'C');\n $this->pdf->Ln('2');\n\n /*********************************/\n $this->pdf->Cell(180,60,'FECHA:',0,1,'L');\n $this->pdf->Cell(100,1,'FECHA:',0,1,'R');\n //$this->pdf->WriteHTML($AAA,9);\n $this->pdf->Output($pdfFilePath,\"I\");\n/* \n \n $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(200,20,$AAA,0,1,'C');\n $this->pdf->Output($pdfFilePath,\"I\");\n\n\n\n $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(300,30,$AAA,0,1,'R');\n $this->pdf->Output($pdfFilePath,\"I\");\n \n*/\n /* $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA,1,1,'C');\n $this->pdf->Ln('2');\n*/\n \n\n\n\n/*\n //$pdf=new PDF_HTML();\n //$pdf->SetFont('Arial','',12);\n $pdf->AddPage();\n $pdf->WriteHTML($_POST['text']);\n $pdf->Output();\n*/\n/************************HEADER ****************************\n Arial bold 15\n $this->pdf->SetFont('Arial','B',15);\n // Calculamos ancho y posición del título.\n $w = $this->pdf->GetStringWidth($title)+6;\n $this->pdf->SetX((210-$w)/2);\n // Colores de los bordes, fondo y texto\n $this->pdf->SetDrawColor(0,80,180);\n $this->pdf->SetFillColor(230,230,0);\n $this->pdf->SetTextColor(220,50,50);\n // Ancho del borde (1 mm)\n $this->pdf->SetLineWidth(1);\n // Título\n// $this->pdf->Cell($w,9,$title,1,1,'C',true);\n // Salto de línea\n $this->pdf->Ln(10);\n\n\n\n\n$this->$title = '20000 Leguas de Viaje Submarino';\n//$this->$pdf->SetTitle($title);\n//$this->$pdf->SetAuthor('Julio Verne');\n$this->$pdf->PrintChapter(1,'UN RIZO DE HUIDA','20k_c1.txt');\n$this->$pdf->PrintChapter(2,'LOS PROS Y LOS CONTRAS','20k_c2.txt');\n$this->$pdf->Output();\n\n\n\t\n\t\n\t\t$hoy=date(\"dmyhis\"); \n $this->pdf->AddPage();\n $this->pdf->AliasNbPages();\n $this->pdf->SetTitle(\"recibo\");\n $this->pdf->SetAuthor(\"reciboooooooooo\");\n $this->pdf->SetDrawColor(0,80,180);\n $this->pdf->Cell(50);\n $this->pdf->Cell(1,100,'LISTA dddfffffffffffdddddddddddddd',0,1,'C',1);\n $this->pdf->Ln(10);\n $this->load->view('EST_agregarP','data',true);\n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');\n $this->pdf->Output(\"lista.pdf\",'I');\n\n\t*/\n\n\n // $this->pdf->Cell(180,200,$AAA,0,0,'C','http://localhost/MVC4/034interfaz/index.php/usuarios/mensualidad');\n //$this->pdf->Cell(200,20,$AAA,1,1,'http://localhost/MVC4/034interfaz/index.php/usuarios/mensualidad');\n }", "public function scheduled_pdf( Request $request ) {\n\t\t$id = $request->input( 'id' );\n\t\t// $pdf = PDF::loadView(\n\t\t// \t'admin.invoice.Voucher',\n\t\t// \t[\n\t\t// \t\t'user' => $id, // user,\n\t\t// \t]\n\t\t// );\n\t\t$pdf = PDF2::loadView( 'admin.invoice.Voucher', [ 'asdf' => '2' ] )\n\t\t\t->setOption( 'margin-bottom', 0 )\n\t\t\t->setOption( 'page-width', '170' )\n\t\t\t->setOption( 'page-height', '324' );\n\n\t\t// $pdf->save(storage_path().rand().'filename.pdf');\n\t\treturn $pdf->download( 'voucher.pdf' );\n\t}", "public function scheduled_pdf( Request $request ) {\n\t\t$id = $request->input( 'id' );\n\t\t// $pdf = PDF::loadView(\n\t\t// \t'admin.invoice.Voucher',\n\t\t// \t[\n\t\t// \t\t'user' => $id, // user,\n\t\t// \t]\n\t\t// );\n\t\t$pdf = PDF2::loadView( 'admin.invoice.Voucher', [ 'asdf' => '2' ] )\n\t\t\t->setOption( 'margin-bottom', 0 )\n\t\t\t->setOption( 'page-width', '170' )\n\t\t\t->setOption( 'page-height', '324' );\n\n\t\t// $pdf->save(storage_path().rand().'filename.pdf');\n\t\treturn $pdf->download( 'voucher.pdf' );\n\t}", "public function pdf() {\n $arriendos = DB::table('arriendo')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.arriendos', compact('arriendos'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_arriendos.pdf');\n }", "public function generatePDF()\n {\n\n return view('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 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}", "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 downloadPDF(){\n $classrooms_data = $this->getClassesInformation();\n $pdf = PDF::loadView('pdf', compact('classrooms_data'));\n return $pdf->download('Classrooms Information.pdf');\n }", "public function generateMemberPDF (Request $request){\n\n \n\n if($request->type ==='director'){\n if(isset($request->memberId)){\n $directorDetails = CompanyMember::where('id',$request->memberId)->first();\n $fname = $directorDetails['first_name'];\n $lname = $directorDetails['last_name'];\n $fullName = $fname .' '. $lname ;\n $addressId = $directorDetails['address_id'];\n $address = Address::where('id',$addressId)->first();\n if(isset($address)){\n // $address1 = $address['address1'];\n // $address2 = $address['address2'];\n // $city = $address['city'];\n // $rAddress = $address1 .' '. $address2 .' '. $city ;\n\n $address1 = $address['address1'].',<br/>';\n $address2 = ($address['address2']) ? $address['address2'].',<br/>' : '';\n $city = $address['city'].',<br/>';\n $postcode = 'postcode:'.$address['postcode'];\n $rAddress = $address1 . $address2 . $city . $postcode ;\n }else{\n $rAddress = '';\n }\n $companyId = $directorDetails['company_id'];\n\n $companyCertificate = CompanyCertificate::where('company_id', $companyId)\n ->where('is_sealed', 'yes')\n ->first();\n $certificate_no = isset($companyCertificate->registration_no) && $companyCertificate->registration_no ? $companyCertificate->registration_no : '';\n\n $companyDetails = Company::where('id',$companyId)->first();\n $companyName = $companyDetails ->name;\n $occupation = $directorDetails['occupation'];\n $nic = $directorDetails['nic'];\n $passport = $directorDetails['passport_no'];\n $passport_issued_country = $directorDetails['passport_issued_country'];\n $doa = $directorDetails['date_of_appointment'];\n $createdUserId = Company::where('id', $companyId)->value('created_by');\n $createdUserDetails = User::where('id', $createdUserId)->first();\n $loginPeopleId = $createdUserDetails->people_id;\n $usrDetails = People::where('id',$loginPeopleId)->first();\n $ufname = $usrDetails['first_name'];\n $ulname = $usrDetails['last_name'];\n $ufullName = $ufname .' '. $ulname ;\n $uemail = $usrDetails['email'];\n $umobile = $usrDetails['mobile'];\n $utelephone = $usrDetails['telephone'];\n $usrAddressId = $usrDetails->address_id; \n $usrAddress = Address::where('id', $usrAddressId)->first();\n if(isset($usrAddress)){\n $uaddress1 = $usrAddress['address1'].',<br/>';\n $uaddress2 = ($usrAddress['address2']) ? $usrAddress['address2'].',<br/>' : '';\n $ucity = $usrAddress['city'].',<br/>';\n $postcode = 'postcode:'.$usrAddress['postcode'];\n $urAddress = $uaddress1 . $uaddress2 . $ucity . $postcode ;\n }else{\n $urAddress = '';\n }\n $paymentDate= '';\n $payment_row = Order::where('module_id', $companyId)\n ->where('module', $this->settings('MODULE_INCORPORATION','key')->id)\n ->first();\n $paymentDate = isset($payment_row->updated_at) ? strtotime($payment_row->updated_at) : '';\n $data = [\n 'public_path' => public_path(),\n 'eroc_logo' => url('/').'/images/forms/eroc.png',\n 'gov_logo' => url('/').'/images/forms/govlogo.jpg',\n 'css_file' => url('/').'/images/forms/form1/form1.css',\n 'comname' => $companyName,\n 'postfix' => $companyDetails->postfix,\n 'name' => $fullName,\n 'fname' => $fname,\n 'lname' => $lname,\n 'raddress' => $rAddress,\n 'occupation' => $occupation,\n 'nic' => $nic,\n 'passport' => $passport,\n 'passport_issued_country' => $passport_issued_country,\n 'doa' => $doa,\n 'paymentdate' => $paymentDate,\n 'ufullname' => $ufullName,\n 'uemail' => $uemail,\n 'umobile' => $umobile,\n 'utelephone' => $utelephone,\n 'uraddress' => $urAddress, \n 'certificate_no' => $certificate_no ,\n 'directorDetails' => $directorDetails \n ]; \n $pdf = PDF::loadView('diretor-secretary-change/form18', $data);\n return $pdf->stream('form18.pdf'); \n }else{ \n return response()->json([\n 'message' => 'We can \\'t find a director.',\n 'status' =>false,\n ], 200);\n }\n }else if($request->type ==='secretary'){\n if(isset($request->memberId)){\n $secretaryDetails = CompanyMember::where('id',$request->memberId)->first();\n $fname = $secretaryDetails['first_name'];\n $lname = $secretaryDetails['last_name'];\n $fullName = $fname .' '. $lname ;\n $addressId = $secretaryDetails['address_id'];\n $address = Address::where('id',$addressId)->first();\n if(isset($address)){\n //$address1 = $address['address1'];\n // $address2 = $address['address2'];\n // $city = $address['city'];\n // $rAddress = $address1 .' '. $address2 .' '. $city ;\n $address1 = $address['address1'].',<br/>';\n $address2 = ($address['address2']) ? $address['address2'].',<br/>' : '';\n $city = $address['city'].',<br/>';\n $postcode = 'postcode:'.$address['postcode'];\n $rAddress = $address1 . $address2 . $city . $postcode ;\n \n }else{\n $rAddress = '';\n }\n $companyId = $secretaryDetails['company_id'];\n $companyCertificate = CompanyCertificate::where('company_id', $companyId)\n ->where('is_sealed', 'yes')\n ->first();\n $certificate_no = isset($companyCertificate->registration_no) && $companyCertificate->registration_no ? $companyCertificate->registration_no : '';\n $companyDetails = Company::where('id',$companyId)->first();\n $companyName = $companyDetails ->name;\n $doa = $secretaryDetails['date_of_appointment'];\n $regNum = $secretaryDetails['secretary_registration_no'];\n $createdUserId = Company::where('id', $companyId)->value('created_by');\n $createdUserDetails = User::where('id', $createdUserId)->first();\n $loginPeopleId = $createdUserDetails->people_id;\n $usrDetails = People::where('id',$loginPeopleId)->first();\n $ufname = $usrDetails['first_name'];\n $ulname = $usrDetails['last_name'];\n $ufullName = $ufname .' '. $ulname ;\n $uemail = $usrDetails['email'];\n $umobile = $usrDetails['mobile'];\n $utelephone = $usrDetails['telephone'];\n $usrAddressId = $usrDetails->address_id; \n $usrAddress = Address::where('id', $usrAddressId)->first();\n if(isset($usrAddress)){\n // $uaddress1 = $usrAddress['address1'];\n // $uaddress2 = $usrAddress['address2'];\n // $ucity = $usrAddress['city'];\n // $urAddress = $uaddress1 .' '. $uaddress2 .' '. $ucity ;\n $uaddress1 = $usrAddress['address1'].',<br/>';\n $uaddress2 = ($usrAddress['address2']) ? $usrAddress['address2'].',<br/>' : '';\n $ucity = $usrAddress['city'].',<br/>';\n $postcode = 'postcode:'.$usrAddress['postcode'];\n $urAddress = $uaddress1 . $uaddress2 . $ucity . $postcode ;\n }else{\n $urAddress = '';\n }\n $paymentDate= '';\n $payment_row = Order::where('module_id', $companyId)\n ->where('module', $this->settings('MODULE_INCORPORATION','key')->id)\n ->first();\n $paymentDate = isset($payment_row->updated_at) ? strtotime($payment_row->updated_at) : '';\n $data = [\n 'comname' => $companyName,\n 'regnum' => $regNum,\n 'postfix' => $companyDetails->postfix,\n 'name' => $fullName,\n 'fname' => $fname,\n 'lname' => $lname,\n 'raddress' => $rAddress,\n 'doa' => $doa,\n 'paymentdate' => $paymentDate,\n 'ufullname' => $ufullName,\n 'uemail' => $uemail,\n 'umobile' => $umobile,\n 'utelephone' => $utelephone,\n 'uraddress' => $urAddress, \n 'certificate_no' => $certificate_no \n ]; \n $pdf = PDF::loadView('diretor-secretary-change/form19', $data);\n return $pdf->stream('form19.pdf'); \n }else{ \n return response()->json([\n 'message' => 'We can \\'t find a secretary.',\n 'status' =>false,\n ], 200);\n }\n }else if($request->type ==='secretaryFirm'){\n if(isset($request->memberId)){\n $secretaryFirmDetails = CompanyFirms::where('id',$request->memberId)->first();\n $fname = $secretaryFirmDetails['name'];\n $lname = '';\n $fullName = $fname;\n $addressId = $secretaryFirmDetails['address_id'];\n $address = Address::where('id',$addressId)->first();\n if(isset($address)){\n // $address1 = $address['address1'];\n // $address2 = $address['address2'];\n // $city = $address['city'];\n // $rAddress = $address1 .' '. $address2 .' '. $city ;\n\n $address1 = $address['address1'].',<br/>';\n $address2 = ($address['address2']) ? $address['address2'].',<br/>' : '';\n $city = $address['city'].',<br/>';\n $postcode = 'postcode:'.$address['postcode'];\n $rAddress = $address1 . $address2 . $city . $postcode ;\n }else{\n $rAddress = '';\n }\n $companyId = $secretaryFirmDetails['company_id'];\n $companyCertificate = CompanyCertificate::where('company_id', $companyId)\n ->where('is_sealed', 'yes')\n ->first();\n $certificate_no = isset($companyCertificate->registration_no) && $companyCertificate->registration_no ? $companyCertificate->registration_no : '';\n $companyDetails = Company::where('id',$companyId)->first();\n $companyName = $companyDetails->name;\n $doa = $secretaryFirmDetails['date_of_appointment'];\n $regNum = $secretaryFirmDetails['registration_no'];\n $createdUserId = Company::where('id', $companyId)->value('created_by');\n $createdUserDetails = User::where('id', $createdUserId)->first();\n $loginPeopleId = $createdUserDetails->people_id;\n $usrDetails = People::where('id',$loginPeopleId)->first();\n $ufname = $usrDetails['first_name'];\n $ulname = $usrDetails['last_name'];\n $ufullName = $ufname .' '. $ulname;\n $uemail = $usrDetails['email'];\n $umobile = $usrDetails['mobile'];\n $utelephone = $usrDetails['telephone'];\n $usrAddressId = $usrDetails->address_id; \n $usrAddress = Address::where('id', $usrAddressId)->first();\n if(isset($usrAddress)){\n // $uaddress1 = $usrAddress['address1'];\n // $uaddress2 = $usrAddress['address2'];\n // $ucity = $usrAddress['city'];\n // $urAddress = $uaddress1 .' '. $uaddress2 .' '. $ucity ;\n $uaddress1 = $usrAddress['address1'].',<br/>';\n $uaddress2 = ($usrAddress['address2']) ? $usrAddress['address2'].',<br/>' : '';\n $ucity = $usrAddress['city'].',<br/>';\n $postcode = 'postcode:'.$usrAddress['postcode'];\n $urAddress = $uaddress1 . $uaddress2 . $ucity . $postcode ;\n }else{\n $urAddress = '';\n }\n $paymentDate= '';\n $payment_row = Order::where('module_id', $companyId)\n ->where('module', $this->settings('MODULE_INCORPORATION','key')->id)\n ->first();\n $paymentDate = isset($payment_row->updated_at) ? strtotime($payment_row->updated_at) : '';\n $data = [\n 'comname' => $companyName,\n 'regnum' => $regNum,\n 'postfix' => $companyDetails->postfix,\n 'name' => $fullName,\n 'fname' => $fname,\n 'lname' => $lname,\n 'raddress' => $rAddress,\n 'doa' => $doa,\n 'paymentdate' => $paymentDate,\n 'ufullname' => $ufullName,\n 'uemail' => $uemail,\n 'umobile' => $umobile,\n 'utelephone' => $utelephone,\n 'uraddress' => $urAddress, \n 'certificate_no' => $certificate_no \n ]; \n $pdf = PDF::loadView('diretor-secretary-change/form19', $data);\n return $pdf->stream('form19.pdf'); \n }else{ \n return response()->json([\n 'message' => 'We can \\'t find a secretary firm.',\n 'status' =>false,\n ], 200);\n }\n }else if($request->type ==='form20'){\n if(isset($request->memberId) && isset($request->requestId)){\n\n\n\n\n $companyID = $request->memberId;\n $requestID = $request->requestId;\n $companyCertificate = CompanyCertificate::where('company_id', $companyID)\n ->where('is_sealed', 'yes')\n ->first();\n $certificate_no = isset($companyCertificate->registration_no) && $companyCertificate->registration_no ? $companyCertificate->registration_no : '';\n\n // newly added\n $directorListCount = CompanyMember::where('company_id',$companyID)\n ->where('designation_type',$this->settings('DERECTOR','key')->id)\n ->where('status',$this->settings('COMMON_STATUS_PENDING','key')->id)\n ->count();\n\n $secretaryListCount = CompanyMember::where('company_id',$companyID)\n ->where('designation_type',$this->settings('SECRETARY','key')->id)\n ->where('status',$this->settings('COMMON_STATUS_PENDING','key')->id)\n ->count();\n $secretaryFirmListCount = CompanyFirms::where('company_id',$companyID)\n ->where('type_id',$this->settings('SECRETARY','key')->id)\n ->where('status',$this->settings('COMMON_STATUS_PENDING','key')->id)\n ->count();\n\n // changed \n $directorChangeListCount = CompanyMember::where('company_id',$companyID)\n ->where('designation_type',$this->settings('DERECTOR','key')->id)\n ->where('status',$this->settings('COMMON_STATUS_EDIT','key')->id)\n ->count();\n\n $secretaryChangeListCount = CompanyMember::where('company_id',$companyID)\n ->where('designation_type',$this->settings('SECRETARY','key')->id)\n ->where('status',$this->settings('COMMON_STATUS_EDIT','key')->id)\n ->count();\n $secretaryChangeFirmListCount = CompanyFirms::where('company_id',$companyID)\n ->where('type_id',$this->settings('SECRETARY','key')->id)\n ->where('status',$this->settings('COMMON_STATUS_EDIT','key')->id)\n ->count();\n \n // changed detail array bulding\n \n $editedCMitems = CompanyItemChange::where('request_id',$requestID)\n ->where('changes_type',$this->settings('EDIT','key')->id)\n ->where('item_table_type',$this->settings('COMPANY_MEMBERS','key')->id)\n ->get();\n $editedCFitems = CompanyItemChange::where('request_id',$requestID)\n ->where('changes_type',$this->settings('EDIT','key')->id)\n ->where('item_table_type',$this->settings('COMPANY_MEMBER_FIRMS','key')->id)\n ->get(); \n $editedDirectors = array();\n $editedSecs = array();\n $editedSecfirms = array();\n foreach ($editedCMitems as $key => $value) {\n $old = CompanyMember::where('id',$value->old_record_id)\n ->first();\n $oldaddress = Address::where('id',$old->address_id)\n ->first(); \n $new = CompanyMember::where('id',$value->item_id)\n ->first();\n $newaddress = Address::where('id',$new->address_id)\n ->first(); \n\n if($old->designation_type == $this->settings('DERECTOR','key')->id){\n $editedDirectors[] = [\n \"oldid\" => $old->id,\n \"newid\" => $new->id,\n 'type' => 0,\n \"old_title\" => $old->title,\n \"new_title\" => $new->title,\n \"old_firstname\" => $old->first_name,\n \"old_lastname\" => $old->last_name,\n \"new_firstname\" => $new->first_name,\n \"new_lastname\" => $new->last_name,\n \"old_address\" => $oldaddress->address1 . ',' . $oldaddress->address2 . ',' . $oldaddress->city,\n \"new_address\" => $newaddress->address1 . ',' . $newaddress->address2 . ',' . $newaddress->city,\n \"date\" => $new->date_of_change,\n ];\n\n }\n elseif($old->designation_type == $this->settings('SECRETARY','key')->id){\n $editedSecs[] = [\n \"oldid\" => $old->id,\n \"newid\" => $new->id,\n 'type' => 0,\n \"old_title\" => $old->title,\n \"new_title\" => $new->title,\n \"old_firstname\" => $old->first_name,\n \"old_lastname\" => $old->last_name,\n \"new_firstname\" => $new->first_name,\n \"new_lastname\" => $new->last_name,\n \"old_address\" => $oldaddress->address1 . ',' . $oldaddress->address2 . ',' . $oldaddress->city,\n \"new_address\" => $newaddress->address1 . ',' . $newaddress->address2 . ',' . $newaddress->city,\n \"date\" => $new->date_of_change,\n ];\n }\n\n }\n\n foreach ($editedCFitems as $key => $value) {\n $old = CompanyFirms::where('id',$value->old_record_id)\n ->first();\n $oldaddress = Address::where('id',$old->address_id)\n ->first(); \n $new = CompanyFirms::where('id',$value->item_id)\n ->first();\n $newaddress = Address::where('id',$new->address_id)\n ->first(); \n\n if($old->type_id == $this->settings('SECRETARY','key')->id){\n $editedSecfirms[] = [\n \"oldid\" => $old->id,\n \"newid\" => $new->id,\n 'type' => 0,\n \"title\" => $value->title,\n \"old_name\" => $old->name,\n \"new_name\" => $new->name,\n \"old_address\" => $oldaddress->address1 . ',' . $oldaddress->address2 . ',' . $oldaddress->city,\n \"new_address\" => $newaddress->address1 . ',' . $newaddress->address2 . ',' . $newaddress->city,\n \"date\" => $new->date_of_change,\n ];\n\n }\n\n }\n\n /// all directors and secretaries array building\n\n $oldMemberList = CompanyMember::where('company_id',$companyID)\n ->where('designation_type','!=',$this->settings('SHAREHOLDER','key')->id)\n // ->where(function ($query) {\n // $query->where('ceased_reason', '=', '')\n // ->orWhere('ceased_reason', '=', NULL);\n // }) \n ->where('status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->get();\n $oldSecretaryFirmList = CompanyFirms::where('company_id',$companyID)\n ->where('type_id',$this->settings('SECRETARY','key')->id)\n // ->where(function ($query) {\n // $query->where('ceased_reason', '=', '')\n // ->orWhere('ceased_reason', '=', NULL);\n // })\n ->where('status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->get(); \n $activemembers = array(); \n $activesecs_firms = array(); \n foreach($oldMemberList as $member){\n\n $isMemberEdited = CompanyItemChange::where('request_id',$requestID)\n ->where('changes_type',$this->settings('EDIT','key')->id)\n ->where('item_table_type',$this->settings('COMPANY_MEMBERS','key')->id)\n ->where('old_record_id',$member['id'])\n ->first();\n\n $isMemberDeleted = CompanyItemChange::where('request_id',$requestID)\n ->where('changes_type',$this->settings('DELETE','key')->id)\n ->where('item_table_type',$this->settings('COMPANY_MEMBERS','key')->id)\n ->where('item_id',$member['id'])\n ->first(); \n // $directorID = $director['id'];\n // $newdirectorID = null;\n // $isdeleted = null;\n\n if($isMemberEdited){\n\n $newEditedMember = CompanyMember::where('id',$isMemberEdited->item_id)\n ->where('company_id',$companyID)\n ->where(function ($query) {\n $query->where('ceased_reason', '=', '')\n ->orWhere('ceased_reason', '=', NULL);\n }) \n ->where('status',$this->settings('COMMON_STATUS_EDIT','key')->id)\n ->first();\n\n $member = $newEditedMember;\n\n // $directorID = $isDirectorEdited->old_record_id;\n // $newdirectorID = $newEditedDirector->id; \n\n }\n if($isMemberDeleted){\n\n continue; \n\n }\n \n \n $address ='';\n $forAddress = '';\n if( $member->address_id) {\n $address = Address::where('id',$member->address_id)->first();\n }\n if( $member->foreign_address_id) {\n $forAddress = Address::where('id', $member->foreign_address_id)->first();\n }\n\n $rec = array(\n // 'id' => $directorID,\n // 'newid' => $newdirectorID,\n // 'isdeleted' => $isdeleted,\n 'type' => ($member->is_srilankan =='yes' ) ? 'local' : 'foreign', \n 'firstname' => $member->first_name,\n 'lastname' => $member->last_name,\n 'fullname' => $member->first_name . ' ' . $member->last_name,\n 'title' => $member->title, \n 'province' => ( isset($address->province) && $address->province) ? $address->province : '',\n 'district' => ( isset($address->district) && $address->district) ? $address->district : '',\n 'city' => ( isset($address->city) && $address->city) ? $address->city : '',\n 'localAddress1' => ( isset($address->address1) && $address->address1) ? $address->address1 : '',\n 'localAddress2' => ( isset($address->address2) && $address->address2) ? $address->address2 : '',\n 'postcode' => (isset($address->postcode) && $address->postcode) ? $address->postcode : '', \n 'forProvince' => ( isset($forAddress->province) && $forAddress->province) ? $forAddress->province : '',\n 'forCity' => ( isset($forAddress->city) && $forAddress->city) ? $forAddress->city : '',\n 'forAddress1' => ( isset($forAddress->address1) && $forAddress->address1) ? $forAddress->address1 : '',\n 'forAddress2' => ( isset($forAddress->address2) && $forAddress->address2) ? $forAddress->address2 : '',\n 'forPostcode' => (isset($forAddress->postcode) && $forAddress->postcode) ? $forAddress->postcode : '', \n 'resaddress' => $address->address1 . ',' . $address->address2 . ',' . $address->city, \n 'nic' => $member->nic,\n 'passport' => $member->passport_no,\n // 'country' =>($address->country) ? $address->country : '',\n 'country' => ( $member->foreign_address_id) ? $forAddress->country : $address->country,\n 'passport_issued_country' => $member->passport_issued_country,\n // 'share' => $director->no_of_shares, \n 'date' => '1970-01-01' == $member->date_of_appointment ? null : $member->date_of_appointment,\n 'changedate' => '1970-01-01' == $member->date_of_change ? null : $member->date_of_change,\n 'phone' => $member->telephone,\n 'mobile' => $member->mobile,\n 'email' => $member->email,\n 'occupation' => $member->occupation,\n 'designation_type' => ($member->designation_type == $this->settings('SECRETARY','key')->id) ? 'Secretary' : 'Director',\n // 'directors_as_sh' => $directors_as_sh,\n // 'can_director_as_sec' => $can_director_as_sec,\n // 'secRegDate' => $sec_reg_no \n );\n $activemembers[] = $rec;\n }\n foreach($oldSecretaryFirmList as $sec){\n $isSecEdited = CompanyItemChange::where('request_id',$requestID)\n ->where('changes_type',$this->settings('EDIT','key')->id)\n ->where('item_table_type',$this->settings('COMPANY_MEMBER_FIRMS','key')->id)\n ->where('old_record_id',$sec['id'])\n ->first();\n $isSecDeleted = CompanyItemChange::where('request_id',$requestID)\n ->where('changes_type',$this->settings('DELETE','key')->id)\n ->where('item_table_type',$this->settings('COMPANY_MEMBER_FIRMS','key')->id)\n ->where('item_id',$sec['id'])\n ->first(); \n\n // $secID = $sec['id'];\n // $newsecID = null;\n // $isdeleted = null;\n\n if($isSecEdited){\n\n $newEditedSec = CompanyFirms::where('id',$isSecEdited->item_id)\n ->where('company_id',$companyID)\n ->where('type_id',$this->settings('SECRETARY','key')->id)\n ->where(function ($query) {\n $query->where('ceased_reason', '=', '')\n ->orWhere('ceased_reason', '=', NULL);\n }) \n ->where('status',$this->settings('COMMON_STATUS_EDIT','key')->id)\n ->first();\n\n $sec = $newEditedSec;\n\n // $secID = $isSecEdited->old_record_id;\n // $newsecID = $newEditedSec->id; \n\n }\n if($isSecDeleted){\n\n continue; \n\n }\n\n \n\n $address_id = $sec->foreign_address_id ? $sec->foreign_address_id : $sec->address_id;\n if(!$sec->foreign_address_id){\n $address = Address::where('id',$address_id)->first();\n }else{\n $address = Address::where('id',$address_id)->first();\n }\n $rec = array(\n // 'id' => $secID,\n // 'newid' => $newsecID,\n // 'isdeleted' => $isdeleted,\n 'type' => ($address->country != 'Sri Lanka') ? 'foreign' : 'local',\n 'pvNumber' => $sec->registration_no,\n 'firm_name' => $sec->name,\n 'firm_address' => $address->address1 . ',' . $address->address2 . ',' . $address->city,\n 'firm_province' => ( $address->province) ? $address->province : '',\n 'firm_district' => ($address->district) ? $address->district : '',\n 'firm_city' => ( $address->city) ? $address->city : '',\n 'firm_localAddress1' => ($address->address1) ? $address->address1 : '',\n 'firm_localAddress2' => ($address->address2) ? $address->address2 : '',\n 'firm_country' => ($address->country) ? $address->country : '',\n 'firm_postcode' => ($address->postcode) ? $address->postcode : '',\n 'firm_email' => $sec->email,\n 'firm_phone' => $sec->phone,\n 'firm_mobile' => $sec->mobile,\n 'firm_date' => $sec->date_of_appointment,\n 'firm_date_change' => $sec->date_of_change,\n 'secType' => 'Secretary Firm'\n );\n $activesecs_firms[] = $rec;\n } \n /// all directors and secs array end\n \n \n ///signed by member\n $changeRequest = CompanyChangeRequestItem::where('id',$requestID)->first();\n\n if($changeRequest->signed_by_table_type == $this->settings('COMPANY_MEMBERS','key')->id){\n\n $member = CompanyMember::leftJoin('settings','company_members.designation_type','=','settings.id')\n ->where('company_members.id',$changeRequest->signed_by)\n ->get(['company_members.id','company_members.first_name','company_members.last_name','settings.value as designation']);\n\n $date = array();\n \n $date[] = [\n \"id\" => $member[0]['id'],\n \"type\" => 0,\n \"title\" => '',\n \"first_name\" => $member[0]['first_name'],\n \"last_name\" => $member[0]['last_name'],\n \"designation\" => $member[0]['designation'],\n ];\n \n\n }\n else{\n $member = CompanyFirms::leftJoin('settings','company_member_firms.type_id','=','settings.id')\n ->where('company_member_firms.id',$changeRequest->signed_by)\n ->get(['company_member_firms.id','company_member_firms.name','settings.value as designation']);\n\n $date = array();\n \n $date[] = [\n \"id\" => $member[0]['id'],\n \"type\" => 1,\n \"title\" => '',\n \"first_name\" => $member[0]['name'],\n \"last_name\" => '',\n \"designation\" => $member[0]['designation'],\n ];\n\n }\n ///signed by member\n\n $companyDetails = Company::where('id',$companyID)->first();\n $companyName = $companyDetails->name;\n $postfix = $companyDetails->postfix;\n $createdUserId = Company::where('id', $companyID)->value('created_by');\n $createdUserDetails = User::where('id', $createdUserId)->first();\n $loginPeopleId = $createdUserDetails->people_id;\n $usrDetails = People::where('id',$loginPeopleId)->first();\n $ufname = $usrDetails['first_name'];\n $ulname = $usrDetails['last_name'];\n $ufullName = $ufname .' '. $ulname;\n $uemail = $usrDetails['email'];\n $umobile = $usrDetails['mobile'];\n $utelephone = $usrDetails['telephone'];\n $todayDate = date(\"Y-m-d\");\n\n $newMembers = CompanyMember::leftJoin('addresses','company_members.address_id','=','addresses.id')\n ->leftJoin('settings','company_members.designation_type','=','settings.id')\n ->where('company_members.company_id',$companyID)\n ->where('company_members.designation_type','!=',$this->settings('SHAREHOLDER','key')->id)\n ->where('company_members.status',$this->settings('COMMON_STATUS_PENDING','key')->id)\n ->get(['company_members.first_name','company_members.last_name','company_members.email','company_members.date_of_appointment','addresses.address1 as address1','addresses.address2 as address2','addresses.city as city','settings.value as value']);\n\n $newMemberFirms = CompanyFirms::leftJoin('addresses','company_member_firms.address_id','=','addresses.id')\n ->leftJoin('settings','company_member_firms.type_id','=','settings.id')\n ->where('company_member_firms.company_id',$companyID)\n ->where('company_member_firms.type_id','!=',$this->settings('SHAREHOLDER','key')->id)\n ->where('company_member_firms.status',$this->settings('COMMON_STATUS_PENDING','key')->id)\n ->get(['company_member_firms.name','company_member_firms.email','company_member_firms.date_of_appointment','addresses.address1 as address1','addresses.address2 as address2','addresses.city as city','settings.value as value']);\n\n $removedMembers = CompanyMember::leftJoin('company_change_requests','company_members.company_id','=','company_change_requests.company_id')\n ->leftJoin('company_item_changes','company_members.id','=','company_item_changes.item_id')\n ->leftJoin('addresses','company_members.address_id','=','addresses.id')\n ->leftJoin('settings','company_members.designation_type','=','settings.id')\n ->where('company_members.company_id',$companyID)\n ->where('company_item_changes.request_id',$requestID)\n ->where('company_members.ceased_reason','!=','')\n ->where('company_members.status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->where('company_item_changes.changes_type',$this->settings('DELETE','key')->id) \n ->get(['company_members.id','company_members.first_name','company_members.last_name','company_members.ceased_reason','company_members.ceased_date','addresses.address1 as address1','addresses.address2 as address2','addresses.city as city','settings.value as value']);\n \n\n $removedFirms = CompanyFirms::leftJoin('company_change_requests','company_member_firms.company_id','=','company_change_requests.company_id')\n ->leftJoin('company_item_changes','company_member_firms.id','=','company_item_changes.item_id')\n ->leftJoin('addresses','company_member_firms.address_id','=','addresses.id')\n ->leftJoin('settings','company_member_firms.type_id','=','settings.id')\n ->where('company_member_firms.company_id',$companyID)\n ->where('company_item_changes.request_id',$requestID)\n ->where('company_member_firms.ceased_reason','!=','')\n ->where('company_member_firms.status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->where('company_item_changes.changes_type',$this->settings('DELETE','key')->id) \n ->get(['company_member_firms.id','company_member_firms.name','company_member_firms.ceased_reason','company_member_firms.ceased_date','addresses.address1 as address1','addresses.address2 as address2','addresses.city as city','settings.value as value']);\n \n\n $removedDirCount = CompanyMember::leftJoin('company_change_requests','company_members.company_id','=','company_change_requests.company_id')\n ->leftJoin('company_item_changes','company_members.id','=','company_item_changes.item_id')\n ->leftJoin('addresses','company_members.address_id','=','addresses.id')\n ->leftJoin('settings','company_members.designation_type','=','settings.id')\n ->where('company_members.designation_type',$this->settings('DERECTOR','key')->id)\n ->where('company_members.company_id',$companyID)\n ->where('company_item_changes.request_id',$requestID)\n ->where('company_members.ceased_reason','!=','')\n ->where('company_members.status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->where('company_item_changes.changes_type',$this->settings('DELETE','key')->id) \n ->count();\n $removedSecCount = CompanyMember::leftJoin('company_change_requests','company_members.company_id','=','company_change_requests.company_id')\n ->leftJoin('company_item_changes','company_members.id','=','company_item_changes.item_id')\n ->leftJoin('addresses','company_members.address_id','=','addresses.id')\n ->leftJoin('settings','company_members.designation_type','=','settings.id')\n ->where('company_members.designation_type',$this->settings('SECRETARY','key')->id)\n ->where('company_members.company_id',$companyID)\n ->where('company_item_changes.request_id',$requestID)\n ->where('company_members.ceased_reason','!=','')\n ->where('company_members.status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->where('company_item_changes.changes_type',$this->settings('DELETE','key')->id) \n ->count();\n $removedFirmCount = CompanyFirms::leftJoin('company_change_requests','company_member_firms.company_id','=','company_change_requests.company_id')\n ->leftJoin('company_item_changes','company_member_firms.id','=','company_item_changes.item_id')\n ->leftJoin('addresses','company_member_firms.address_id','=','addresses.id')\n ->leftJoin('settings','company_member_firms.type_id','=','settings.id')\n ->where('company_member_firms.type_id',$this->settings('SECRETARY','key')->id)\n ->where('company_member_firms.company_id',$companyID)\n ->where('company_item_changes.request_id',$requestID)\n ->where('company_member_firms.ceased_reason','!=','')\n ->where('company_member_firms.status',$this->settings('COMMON_STATUS_ACTIVE','key')->id)\n ->where('company_item_changes.changes_type',$this->settings('DELETE','key')->id) \n ->count(); \n \n \n \n \n\n $data = [\n 'comname' => $companyName,\n 'postfix' => $postfix,\n 'newMembers' => $newMembers,\n 'member' => $date,\n 'activemembers' => $activemembers,\n 'activesecs_firms' => $activesecs_firms,\n 'todayDate' => $todayDate,\n 'editedDirectors' => $editedDirectors,\n 'editedSecs' => $editedSecs,\n 'editedSecfirms' => $editedSecfirms,\n 'newMemberFirms' => $newMemberFirms,\n 'removedMembers' => $removedMembers,\n 'removedFirms' => $removedFirms,\n 'ufullname' => $ufullName,\n 'uemail' => $uemail,\n 'umobile' => $umobile,\n 'utelephone' => $utelephone,\n 'certificate_no' => $certificate_no,\n 'directorChanged' => ( ($directorListCount + $directorChangeListCount + $removedDirCount) >0 ),\n 'secChagned' => ( ($secretaryListCount + $secretaryChangeListCount + $removedSecCount) > 0 || ($secretaryFirmListCount + $secretaryChangeFirmListCount + $removedFirmCount) > 0 )\n ]; \n $pdf = PDF::loadView('diretor-secretary-change/form20', $data);\n return $pdf->stream('form20.pdf');\n }else{ \n return response()->json([\n 'message' => 'We can \\'t find a secretary firm.',\n 'status' =>false,\n ], 200);\n }\n }\n }", "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 get_pdfs() {\n\t\treturn apply_filters( 'wc_product_catalog_pdfs', $this->pdfs, $this );\n\t}", "public function getDocumentUrl() {\n Yii::$app->params['uploadUrl'] = Yii::$app->urlManager->baseUrl . '/web/pdf/estrategias/';\n// return a default image placeholder if your source avatar is not found\n $evidencias = isset($this->evidencias) ? $this->evidencias : null;\n return Yii::$app->params['uploadUrl'] . $evidencias;\n }", "public function getCovePdf($cove_id, $directory_path, $file_name){\n $path_compare_file = $directory_path.'RespSolCOVE_'.$file_name;\n $compare_file = file_get_contents($path_compare_file);\n $array_compare_file = XmlToArray::convert($compare_file);\n $cove_pdf = $array_compare_file['Body']['solicitarConsultarRespuestaCoveServicioResponse']['respuestasOperaciones']['eDocument'];\n $file_name_cove_pdf = 'ACUSE_DE_VALOR_'.$cove_pdf.'.pdf';\n $bool = $this->storeCovePdf($cove_id, $file_name_cove_pdf);\n return $bool;\n }", "private function verifyPdfIsGenerated()\n {\n if (!isset($this->pdfContent) || $this->pdfContent == '') {\n throw new \\Exception(\"No PDF has been generated. Unable to output to the browser.\");\n }\n }", "function PDF($or = 'L') {\n $this->FPDF($or);\n }", "public function getPdfUrl($baseUrl) {\n return $baseUrl.'instruction/pdf/'.$this->number.'/'.$this->hash.'/';\n }", "function PDF($or = 'L') {\r\n $this->FPDF($or);\r\n }", "function report_pdf_handle($post_id, $submission_id){\n\n error_log('post id:' . $post_id, 0);\n error_log('submission id:' . $submission_id, 0);\n\n\n $report_prefix = '_reports_';\n $pdf_folder = WP_CONTENT_DIR . '/uploads/fastform/';\n $glob_pdf = glob($pdf_folder . $submission_id .'.pdf');\n\n// error_log($pdf_folder . $submission_id .'.pdf', 0);\n\n if(!empty($glob_pdf) && FALSE != $glob_pdf):\n\n $attachment_array = array(\n 'post_title' => $submission_id,\n 'post_content' => '',\n 'post_status' => 'publish',\n 'post_mime_type' => 'pdf',\n );\n\n\n $pdf_attach_id = wp_insert_attachment($attachment_array, $glob_pdf[0]);\n error_log(print_r($pdf_attach_id,true), 0);\n\n\n if($pdf_attach_id != 0):\n\n $pdf_attach_url = wp_get_attachment_url($pdf_attach_id);\n error_log(print_r($pdf_attach_url,true), 0);\n\n update_post_meta($post_id, $report_prefix . 'pdf_id', $pdf_attach_url);\n update_post_meta($post_id, $report_prefix . 'pdf_id_id', $pdf_attach_id);\n error_log('just to be clear, we should be good right here. ');\n //return true;\n\n else:\n\n error_log('unable to create attachment from submission '.$submission_id, 0);\n //return false;\n\n endif;\n\n else:\n\n error_log('unable to find pdf with filename '.$submission_id, 0);\n\n endif;\n}", "function preprocess_pdf_file($ingest_file_location, &$pdfFilePath, &$escapedPdfFile, &$escapedPdfDirPath, &$tmpDir, &$tmpDirPath, &$ocrProcessingRequired, &$ocrMsg) {\n global $base_url;\n foreach ($ingest_file_location as $dsid => $file) {\n if (!strcmp($dsid, 'OBJ')) {\n $pdfFilePath = $file;\n }\n }\n\n $ocrMsg = 'A problem occurred while attempting to OCR the PDF file ' . $pdfFilePath;\n\n if (strlen($pdfFilePath) == 0) {\n drupal_set_message(t($ocrMsg));\n $ocrProcessingRequired = FALSE;\n return FALSE;\n }\n\n $startOfSpecificSite = 7;\n $specificSite = substr($base_url, $startOfSpecificSite);\n $specificSite = str_replace(\"/\", \".\", $specificSite);\n\n switch($specificSite) {\n case \"beta.freshwaterlife.org\":\n $specificSite = \"172.16.0.99.data.local\";\n break;\n case \"mydata.environmentdata.org\":\n $specificSite = \"172.16.0.99.mydata.environmentdata.local\";\n break;\n default:\n $specificSite = $specificSite;\n }\n\n $pdfDirPath = dirname($pdfFilePath);\n $pdfFile = basename($pdfFilePath);\n $escapedPdfFile = escapeshellarg($pdfFile);\n $escapedPdfFile = substr($escapedPdfFile, 1, strlen($escapedPdfFile)-2);\n\n $escapedPdfDirPath = escapeshellarg($pdfDirPath);\n $escapedPdfDirPath = substr($escapedPdfDirPath, 1, strlen($escapedPdfDirPath)-2);\n $escapedPdfFilePath = $escapedPdfDirPath . '/' . $escapedPdfFile;\n\n $ocrMsg = 'A problem occurred while attempting to OCR the PDF file ' . $escapedPdfFile;\n /* Create a temporary directory that contains a randomly\n * generated element. This will ensure that the OCR processing\n * for two users logged in with the same credentials will not\n * conflict.\n */\n $tmpDir = 'extract_ocr_tmp' . '_' . rand(100000, 999999);\n $tmpDirParentDirPath = 'sites/' . $specificSite . '/files';\n $tmpDirPath = $tmpDirParentDirPath . '/' . $tmpDir;\n $errorFlag = 0;\n /*\n * Remove the temporary directory if it already exists.\n */\n if (file_exists($tmpDirPath)) {\n $execCommand = 'rm -rf ' . $tmpDirPath;\n passthru($execCommand, $returnValue); \n if ($returnValue != 0) {\n $errorFlag = 1;\n }\n }\n\n if ($errorFlag == 0) {\n /*\n * Create the temporary directory.\n */\n $execCommand = 'mkdir ' . $tmpDirPath;\n passthru($execCommand, $returnValue); \n if ($returnValue != 0) {\n $errorFlag = 1;\n }\n }\n\n if ($errorFlag == 0) {\n /*\n * Copy the PDF to the temporary directory.\n */\n $execCommand = 'cp \"' . $escapedPdfFilePath . '\" ' . $tmpDirPath;\n passthru($execCommand, $returnValue); \n if ($returnValue != 0) {\n $errorFlag = 1;\n }\n }\n\n if ($errorFlag == 1)\n {\n $ocrProcessingRequired = FALSE;\n drupal_set_message(t($ocrMsg));\n return FALSE;\n }\n }", "public function getOwnerPdfDocument() {}", "public function getOwnerPdfDocument() {}", "public function getOwnerPdfDocument() {}" ]
[ "0.6740762", "0.66286397", "0.6583642", "0.6376451", "0.63649046", "0.6250997", "0.6179405", "0.61252725", "0.6080214", "0.60725754", "0.60463244", "0.60244125", "0.6021199", "0.60163313", "0.60079575", "0.5991282", "0.5987215", "0.5974274", "0.59698224", "0.5969203", "0.59660554", "0.5949583", "0.5941494", "0.5881828", "0.5881039", "0.5874755", "0.585986", "0.5855237", "0.58155924", "0.5805457", "0.5802338", "0.57879937", "0.5770949", "0.5764775", "0.5756835", "0.5753492", "0.57464904", "0.5737847", "0.57283324", "0.5708421", "0.5703338", "0.5690035", "0.5687743", "0.5684308", "0.5673477", "0.56718993", "0.56513023", "0.5649", "0.56369317", "0.56311834", "0.5629996", "0.5625704", "0.5617734", "0.5616337", "0.5610128", "0.5589617", "0.5580602", "0.55721104", "0.5570237", "0.556623", "0.5559593", "0.55521166", "0.5547615", "0.55447", "0.5542512", "0.5524945", "0.5509012", "0.5505695", "0.55001", "0.54990053", "0.5497597", "0.5491809", "0.54724103", "0.5467601", "0.5457111", "0.5445254", "0.54449695", "0.5443715", "0.543814", "0.543814", "0.5435689", "0.5434221", "0.5433182", "0.54321593", "0.5423413", "0.5421022", "0.54105604", "0.5406819", "0.5406746", "0.5403696", "0.5403232", "0.5402141", "0.5394343", "0.53869015", "0.53868306", "0.53832895", "0.53804564", "0.5371332", "0.5371332", "0.5370844" ]
0.5689301
42
Trigger lignes de factures
public function trigger_lignes_factures($id) { // récupération du taux de TVA $q = $this->db->select('fac_tva') ->where('fac_id', $id) ->get('t_factures'); $tva = $q->row()->fac_tva; // récupération des lignes de la facture $q = $this->db->select("lif_code,lif_prix,lif_quantite,lif_remise_ht") ->where('lif_inactif is null') ->where('lif_facture', $id) ->get('t_lignes_factures'); if ($q->num_rows() > 0) { $lignes = $q->result(); // calcul des montants HT et TTC $ht = 0; $remise = 0; foreach ($lignes as $l) { if ($l->lif_code == 'R') { $remise += $l->lif_prix; } else { $ht += $l->lif_prix * $l->lif_quantite - $l->lif_remise_ht; } } $montant_htnr = $ht; $ht = $ht * (1 - $remise); $tva = $ht * $tva; $ttc = $ht + $tva; $montant_ht = $ht; $montant_tva = $tva; $montant_ttc = $ttc; } else { $montant_htnr = 0; $montant_ht = 0; $montant_tva = 0; $montant_ttc = 0; } $data = array( 'fac_montant_htnr' => $montant_htnr, 'fac_montant_ht' => $montant_ht, 'fac_montant_tva' => $montant_tva, 'fac_montant_ttc' => $montant_ttc, 'fac_regle' => 0, 'fac_reste' => $montant_ttc, ); $this->db->where('fac_id', $id) ->update('t_factures', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fly()\n\t {\n\t }", "final function velcom(){\n }", "public function trigger($hook) {\n }", "public function trasnaction(){\n\n\t}", "function awaiting_add_trigger($vars) {\n\t\t$vars[] = 'lepress-student-awaiting';\n \treturn $vars;\n\t}", "abstract public function fire();", "public function hook();", "protected function hook1(): void { }", "function onArrival( $hookParameters, $workflow, $currentStation, $currentStep){return;}", "function awaiting_add_trigger($vars) {\n\t\t$vars[] = 'lepress-teacher-awaiting';\n \treturn $vars;\n\t}", "function run_triggers() {\n// 2. run those triggers that are activated.\n// 3. update locked pins (locked by triggers)\n$trigger1_go = false;\n$trigger_laistisana_go = false;\n$trigger_internets_riits_vakars = false;\n$process_trigger_combined_laistisana = false;\n\n$static_db = open_static_data_db(true);\n$results = $static_db->query('SELECT id FROM `triggers` where state = 1;');\nwhile ($row = $results->fetchArray()) {\n\t\t$trigger_id = $row['id'];\n\t\tif ($trigger_id == 1) $trigger1_go = true;\n\t\tif ($trigger_id == 3) $trigger_laistisana_go = true;\n\t\tif ($trigger_id == 4) $trigger_internets_riits_vakars = true;\n\t\tif ($trigger_id == 5) $process_trigger_combined_laistisana = true;\n\t\t\t//print (\"process trigger $trigger_id\");\n}\n$static_db->close();\n\nif ($trigger1_go) process_trigger_1();\nif ($trigger_laistisana_go) process_trigger_laistisana();\nif ($trigger_internets_riits_vakars) trigger_internets_riits_vakars ();\nif ($process_trigger_combined_laistisana) process_trigger_combined_laistisana ();\n}", "function traiter_raccourci_liens($t) {\n\t$t = preg_replace_callback(_EXTRAIRE_LIENS, 'traiter_autoliens', $t);\n\n\tinclude_spip('inc/ressource');\n\tif (defined('_EXTRAIRE_RESSOURCES'))\n\t$t = preg_replace_callback(_EXTRAIRE_RESSOURCES, 'traiter_ressources', $t);\n\n\t// echapper les autoliens eventuellement inseres (en une seule fois)\n\tif (strpos($t,\"<html>\")!==false)\n\t\t$t = echappe_html($t);\n\treturn $t;\n}", "public function postDown()\n {\n }", "protected function handleTriggerArguments() {}", "public function fly()\n {\n }", "public function fly() {\n }", "function refus($msg) {\n echo \"<b><font color=red>$msg</font></b><br>\";\n echo \"Action non commenc�e; rectifier les conditions initiales avant de reprendre<br>\";\n}", "public function fire() {}", "function bonus_devident() {\n hitungDevident();\n}", "function do_cron()\n{\n\t/*\n\t\t1. check the deadlines of all active pleas\n\t\t\t- if the deadline is past, and status is still active, deactivate and process pledges\n\t\t\t- if the deadline is soon, send warning notification\n\t\t2. other jobs???\n\t*/\n\t$today = date('Y-m-d', time() - (24*60*60));\n\t$tomorrow = date('Y-m-d', time() + 24*60*60);\n\t$expired = Plea::with('pledges.author', 'author')->where('deadline', '>=', $tomorrow)->where('status', '<>', 'expired')->get();\n\t$expiring = Plea::with('pledges.author', 'author')->where('deadline', '=', $today)->where('status', '<>', 'expiring')->get();\n\t\n\t// process expired pleas\n \tforeach ($expired as $plea)\n\t{\n\t\t// label as expired\n\t\t$plea->expire();\n\t\t\t\t\n\t\t// notify all interested parties\n\t\tforeach ($plea->pledges as $pledge)\n\t\t{\n\t\t\t$notification = array(\n\t\t\t\t'object' => $pledge,\n\t\t\t\t'type' => 'pledge',\n\t\t\t\t'reason' => 'expired'\n\t\t\t);\n\t\t\t$pledge->author->notify($notification);\n\t\t}\n\t\t\n\t\t// notify the original author\n\t\t$notification = array(\n\t\t\t'object' => $plea,\n\t\t\t'type' => 'plea',\n\t\t\t'reason' => 'expired'\n\t\t);\n\t\t$plea->author->notify($notification);\t\t\n\t\t\n\t}\n\t\n\t// process expiring pleas\n \tforeach ($expiring as $plea)\n\t{\n\t\t// label as expiring\n\t\t$plea->expiring();\n\t\t\n\t\t// notify all interested parties\n\t\tforeach ($plea->pledges as $pledge)\n\t\t{\n\t\t\t$notification = array(\n\t\t\t\t'object' => $pledge,\n\t\t\t\t'type' => 'pledge',\n\t\t\t\t'reason' => 'expiring'\n\t\t\t);\n\t\t\t$pledge->author->notify($notification);\n\t\t}\n\t\t// notify the original author\n\t\t$notification = array(\n\t\t\t'object' => $plea,\n\t\t\t'type' => 'plea',\n\t\t\t'reason' => 'expiring'\n\t\t);\n\t\t$plea->author->notify($notification);\n\t}\n\treturn Response::json(TRUE);\n}", "abstract protected function after();", "public function trigger($type, $data){}", "public function ApplyChanges() {\n\t\tparent::ApplyChanges();\n\t\t\n\t\t$this->RegisterVariableBoolean(\"vacation\", \"Urlaub\", \"\", 0 );\n\t\t//$this->RegisterEventCyclic(\"UpdateTimer\", \"Automatische aktualisierung\", 15);\n\t}", "public function go()\n {\n $this->log->info(\"We have liftoff.\");\n }", "function faireCours ()\n {\n // ECHAUFFEMENT\n echo \"(echauffez-vous d'abord)\";\n\n parent::faireCours();\n\n // RANGER LES SKIS\n echo \"(e)tirez-vous...\";\n }", "function functions() {\n \n }", "public function fire()\n {\n parent::fire();\n }", "public function fire()\n {\n parent::fire();\n }", "public final function checkTriggers()\n {\n $stmt = self::$globalConnection->prepare('SHOW TRIGGERS FROM `' . self::$database . '`');\n if (! $stmt->execute())\n self::registerErrorOccurence($stmt);\n \n $triggers = array();\n while ($result = $stmt->fetch())\n $triggers[] = $result['trigger'];\n \n if (! in_array('cafet_new_balance_reload', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_balance_reload` \n BEFORE INSERT ON `$this->RELOADS` \n FOR EACH ROW \n BEGIN \t\n SET @user = NEW.user_id;\n UPDATE `$this->CLIENTS` SET balance = balance + NEW.amount WHERE user_id = @user;\n SET NEW.user_balance = (SELECT balance FROM `$this->CLIENTS` WHERE user_id = @user); \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_new_product_edition', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_product_edition` \n BEFORE INSERT ON `$this->PRODUCTS_EDITS` \n FOR EACH ROW \n BEGIN \n SET @count = (SELECT COUNT(*) FROM `$this->PRODUCTS_EDITS` WHERE product = NEW.product);\n IF NEW.price IS NULL THEN\n IF @count <> 0 THEN\n SET NEW.price = (SELECT price FROM `$this->PRODUCTS_EDITS` WHERE product = NEW.product ORDER BY id DESC LIMIT 1);\n ELSE\n SET NEW.price = 0;\n END IF;\n END IF;\n IF NEW.price < 0 THEN\n SET NEW.price = 0;\n END IF;\n IF NEW.name IS NULL AND @count <> 0 THEN\n SET NEW.name = (SELECT name FROM `$this->PRODUCTS_EDITS` WHERE product = NEW.product ORDER BY id DESC LIMIT 1);\n END IF; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_save_product_edition', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_save_product_edition` \n AFTER INSERT ON `$this->PRODUCTS_EDITS` \n FOR EACH ROW \n BEGIN \n UPDATE `$this->PRODUCTS` SET last_edit = NEW.id WHERE id = NEW.product; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_new_product_bought', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_product_bought` \n BEFORE INSERT ON `$this->PRODUCTS_BOUGHT` \n FOR EACH ROW \n BEGIN \n SET NEW.edit_id = (SELECT last_edit FROM `$this->PRODUCTS` WHERE id = NEW.product_id);\n SET @price = (SELECT price FROM `$this->PRODUCTS_EDITS` WHERE id = NEW.edit_id);\n UPDATE `$this->PRODUCTS` SET stock = stock - NEW.quantity WHERE id = NEW.product_id;\n UPDATE `$this->CLIENTS` SET balance = balance-@price*NEW.quantity WHERE user_id = NEW.user_id;\n UPDATE `$this->EXPENSES` SET user_balance = (SELECT balance FROM `$this->CLIENTS` WHERE user_id = NEW.user_id) WHERE id = NEW.expense_id; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_new_replenishment', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_replenishment` \n AFTER INSERT ON `$this->REPLENISHMENTS` \n FOR EACH ROW \n BEGIN \n SET @quantity = NEW.quantity;\n SET @product = NEW.product_id;\n UPDATE `$this->PRODUCTS` SET stock = stock + @quantity WHERE id = @product; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_new_formula_edition', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_formula_edition` \n BEFORE INSERT ON `$this->FORMULAS_EDITS` \n FOR EACH ROW \n BEGIN \n SET @count = (SELECT COUNT(*) FROM `$this->FORMULAS_EDITS` WHERE formula = NEW.formula);\n IF NEW.price IS NULL THEN\n IF @count <> 0 THEN\n SET NEW.price = (SELECT price FROM `$this->FORMULAS_EDITS` WHERE formula = NEW.formula ORDER BY id DESC LIMIT 1);\n ELSE\n SET NEW.price = 0;\n END IF;\n END IF;\n IF NEW.price < 0 THEN\n SET NEW.price = 0;\n END IF;\n IF NEW.name IS NULL AND @count <> 0 THEN\n SET NEW.name = (SELECT name FROM `$this->FORMULAS_EDITS` WHERE formula = NEW.formula ORDER BY id DESC LIMIT 1);\n END IF; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_save_formula_edition', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_save_formula_edition` \n AFTER INSERT ON `$this->FORMULAS_EDITS` \n FOR EACH ROW \n BEGIN \n UPDATE `$this->FORMULAS` SET last_edit = NEW.id WHERE id = NEW.formula; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_new_formula_bought', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_formula_bought` \n BEFORE INSERT ON `$this->FORMULAS_BOUGHT` \n FOR EACH ROW \n BEGIN \n SET NEW.edit_id = (SELECT last_edit FROM `$this->FORMULAS` WHERE id = NEW.formula_id);\n SET @price = (SELECT price FROM `$this->FORMULAS_EDITS` WHERE id = NEW.edit_id);\n UPDATE `$this->CLIENTS` SET balance = balance-@price*NEW.quantity WHERE user_id = NEW.user_id;\n UPDATE `$this->EXPENSES` SET user_balance = (SELECT balance FROM `$this->CLIENTS` WHERE user_id = NEW.user_id) WHERE id = NEW.expense_id; \n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_new_formula_bought_product', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_new_formula_bought_product` \n BEFORE INSERT ON `$this->FORMULAS_BOUGHT_PRODUCTS` \n FOR EACH ROW \n BEGIN \n SET NEW.product_edit = (SELECT last_edit FROM `$this->PRODUCTS` WHERE id = NEW.product_id);\n END\nEOSQL\n );\n }\n \n if (! in_array('cafet_save_formula_bought_product', $triggers)) {\n self::query(\n <<<EOSQL\n CREATE TRIGGER `cafet_save_formula_bought_product` \n AFTER INSERT ON `$this->FORMULAS_BOUGHT_PRODUCTS` \n FOR EACH ROW \n BEGIN \n UPDATE `$this->PRODUCTS` SET stock = stock - 1 WHERE id = NEW.product_id; \n END\nEOSQL\n );\n }\n }", "public function after_run(){}", "public function execute() {\n $currentClassID = $this->id();\n add_action( 'admin_notices', $f = create_function( '',\n '$currentClassID = \\'' . $currentClassID . '\\';'.\n 'echo \\'<div id=\"message\" class=\"error\">\\';' .\n 'echo \\'<h3>DEFLECTOR TEMPLATE RULE EXECUTION!</h3>\\';' .\n 'echo \\'<p>I am executing from class id \\' . $currentClassID . \\' but I do nothing. Deactivate Deflector extension template plugin or deactivate any template rule if you don\\\\\\'t want to see this message anymore!</p>\\';'.\n 'echo \\'</div>\\';' ) );\n }", "public function take_action()\n {\n }", "public function take_action()\n {\n }", "abstract function after();", "function change()\n {\n }", "private function public_hooks()\n\t{\n\t}", "public function trigger($data);", "public function relatorioAction() { \r\n \r\n }", "function fire()\n {\n print \"{$this->name}:I'll clear my desk<br/>\";\n }", "public static function fire()\n {\n\n \n\n }", "public function rollout()\n\t{\n\t}", "protected function after(){}", "protected function after(){}", "protected function after(){}", "public function passes();", "private function warning(){\n $Diff = $this->GetValue('Difference');\n $Hinweis = $this->GetValue('Hint'); //Bool \n $Tin = $this->ReadPropertyInteger(\"TempIndoor\");\n $HumidtyID = $this->ReadPropertyInteger('HumyIndoor');\n $TPi = $this->getvalue(\"DewPointIndoor\");\n $Humidity = getvalue($HumidtyID);\n if (IPS_VariableExists($this->ReadPropertyInteger('FensterKontakt'))){\n $windowId = $this->ReadPropertyInteger('FensterKontakt');\n $window = getValue($windowId);\n if($window){\n //prüfen wie lange das Fenster geöffnet ist - zumachen\n $t_open = IPS_GetVariable($windowId)['VariableChanged']; // Wert in Unix time in Sekunden seit\n \n // wenn Meldung Lüften und Fenster > 5 Minuten offen dann Meldung Lüfen beendet.\n if(($this->getvalue('Auswertung') == 'lüften') & ((time() - $t_open) > 600)){\n $this->SetValue('Auswertung', 'lüften beenden.');\n $this->SetValue('WinOpen', true);\n }\n // wenn draussen zu feucht und Fenster auf dann Alarm\n elseif(!$Hinweis){\n $this->SetValue('Auswertung', 'Fenster schliessen.');\n $this->SetValue('WinOpen', true);\n }\n }\n else{\n $this->SetValue('WinOpen', false);\n // Fenster ist zu . relative Luftfeuchtigkeit >60% und Differenz >50% und Lüften erlaubt\n if($TPi >13 and $Hinweis){\n $this->SetValue('Auswertung', 'Schimmel Alarm');\n } \n elseif (($Humidity > 60) and ($Diff > 50) & $Hinweis){\n $this->SetValue('Auswertung', 'lüften!');\n }\n elseif(($Humidity > 60) and ($Diff > 40) & $Hinweis){\n $this->SetValue('Auswertung', 'gelegentlich lüften!'); \n }\n elseif(($Tin *0.8)<$TPi and $Hinweis){\n $this->SetValue('Auswertung', 'dringend lüften!');\n }\n else{\n $this->SetValue('Auswertung', 'alles OK.');\n } \n }\n // wenn Werte ok dann Meldung zurücksetzen\n if(($Diff < 40)){\n $this->SetValue('Auswertung', 'alles OK.');\n }\n\n }\n else{\n // kein Fensterkontakt vorhanden\n \n // Fenster ist zu . relative Luftfeuchtigkeit >60% und Differenz >50% und Lüften erlaubt\n if($TPi >13 and $Hinweis){\n $this->SetValue('Auswertung', 'Schimmel Alarm');\n } \n elseif (($Humidity > 60) and ($Diff > 50) & $Hinweis){\n $this->SetValue('Auswertung', 'lüften!');\n }\n elseif(($Humidity > 60) and ($Diff > 40) & $Hinweis){\n $this->SetValue('Auswertung', 'gelegentlich lüften!'); \n }\n elseif(($Tin *0.8)<$TPi and $Hinweis){\n $this->SetValue('Auswertung', 'dringend lüften!');\n }\n else{\n $this->SetValue('Auswertung', 'alles OK.');\n } \n if(($Diff < 40)){\n $this->SetValue('Auswertung', 'alles OK.');\n }\n }\n\n }", "public function onRun()\n {\n }", "public function AggiornaPrezzi(){\n\t}", "public function step_3()\n {\n }", "public function performChecks(){\n\t\t\n\t}", "public function leer(){\n }", "public function run() {\n\t\t$this->residentEvals();\n\t\t$this->fellowEvals();\n }", "public function traerCualquiera()\n {\n }", "function hookNotices() {\r\n if (is_array(self::$errors))\r\n foreach (self::$errors as $error) {\r\n\r\n switch ($error['type']) {\r\n case 'fatal':\r\n self::showError(ucfirst(_CL_PLUGIN_NAME_ . \" \" . $error['type']) . ': ' . $error['text'], $error['id']);\r\n die();\r\n break;\r\n case 'settings':\r\n if (CL_Classes_Tools::getOption('ignore_warn') == 1)\r\n break;\r\n\r\n /* switch off option for notifications */\r\n self::$switch_off = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"jQuery.post( ajaxurl, {action: 'cl_warnings_off', nonce: '\" . wp_create_nonce('cl_none') . \"'}, function(data) { if (data) { jQuery('#cl_ignore_warn').attr('checked', true); jQuery('.cl_message').hide(); jQuery('#toplevel_page_cl .awaiting-mod').fadeOut('slow'); } });\\\" >\" . __(\"Turn off warnings!\", _CL_PLUGIN_NAME_) . \"</a>\";\r\n self::showError(ucfirst(_CL_PLUGIN_NAME_) . \" \" . __('Notice: ', _CL_PLUGIN_NAME_) . $error['text'] . \" \" . self::$switch_off, $error['id']);\r\n break;\r\n default:\r\n\r\n self::showError(ucfirst(_CL_PLUGIN_NAME_) . \" \" . __('Note: ', _CL_PLUGIN_NAME_) . $error['text'], $error['id']);\r\n }\r\n }\r\n self::$errors = array();\r\n }", "function pm_demo_deactivate() {\n\t\t\n\t\t//create llog\n\t\t$array = array();\n\t\t\n\t\t//add log to database\n\t\tself::createLog($array);\n }", "public function _exec_trigger($params = [])\n {\n }", "public function hookPropagator()\n {\n $propagations = Mage::getModel('hooks/propagation')->getCollection()\n ->addFieldToFilter('propagated_at', ['null' => true])\n ->addFieldToFilter('backoff_at', ['null' => true]);\n\n $propagations->getSelect()->limit(1);\n\n foreach ($propagations as $propagation) {\n\n $hooks = Mage::getModel('hooks/hook')->getCollection()\n ->addFieldToFilter('event', ['eq' => $propagation->event])\n ->addFieldToFilter('enabled', ['eq' => 1]);\n\n foreach ($hooks as $hook) {\n\n $response = $this->post($hook->getHookUrl(), json_decode($propagation->getData('data'), true), $hook->token);\n\n $propagation->setResponseStatus($response->getStatus().\" - \".$response->getMessage());\n $propagation->setResponseData($response->getBody());\n $propagation->setTries(is_numeric($propagation->getTries()) ? ($propagation->getTries() + 1) : 1);\n\n if ($response->isError()) {\n\n Mage::log('Wdarking_Hooks_Model_Cron::hookPropagator response status: '.$response->getStatus());\n Mage::log('Wdarking_Hooks_Model_Cron::hookPropagator response message: '.$response->getMessage());\n Mage::log('Wdarking_Hooks_Model_Cron::hookPropagator response body: '.$response->getBody());\n\n if ($propagation->getTries() >= 3) {\n $propagation->setBackoffAt(time());\n }\n }\n\n if ($response->isSuccessful()) {\n $propagation->setPropagatedAt(time());\n }\n\n $propagation->save();\n }\n }\n }", "function hookNotices() {\r\n if (is_array(self::$errors))\r\n foreach (self::$errors as $error) {\r\n\r\n switch ($error['type']) {\r\n case 'fatal':\r\n self::showError(ucfirst(_PLUGIN_NAME_ . \" \" . $error['type']) . ': ' . $error['text'], $error['id']);\r\n die();\r\n break;\r\n case 'settings':\r\n if (isset(SQ_Tools::$options['ignore_warn']) && SQ_Tools::$options['ignore_warn'] == 1)\r\n break;\r\n\r\n /* switch off option for notifications */\r\n self::$switch_off = \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"jQuery.post( ajaxurl, {action: 'sq_warnings_off', nonce: '\" . wp_create_nonce('sq_none') . \"'}, function(data) { if (data) { jQuery('#sq_ignore_warn').attr('checked', true); jQuery('.sq_message').hide(); jQuery('#toplevel_page_squirrly .awaiting-mod').fadeOut('slow'); } });\\\" >\" . __(\"Turn off warnings!\", _PLUGIN_NAME_) . \"</a>\";\r\n self::showError(ucfirst(_PLUGIN_NAME_) . \" \" . __('Notice: ', _PLUGIN_NAME_) . $error['text'] . \" \" . self::$switch_off, $error['id']);\r\n break;\r\n default:\r\n\r\n self::showError(ucfirst(_PLUGIN_NAME_) . \" \" . __('Note: ', _PLUGIN_NAME_) . $error['text'], $error['id']);\r\n }\r\n }\r\n self::$errors = array();\r\n }", "protected function add_milestone_hooks() {\n\n\t\tadd_action( 'wc_pip_print', function( $document_type ) {\n\n\t\t\t$milestone_message = null;\n\n\t\t\tif ( 'invoice' === $document_type ) {\n\t\t\t\t$milestone_message = __( 'You have generated your first invoice!', 'woocommerce-pip' );\n\t\t\t} elseif ( 'packing-list' === $document_type ) {\n\t\t\t\t$milestone_message = __( 'You have generated your first packing list!', 'woocommerce-pip' );\n\t\t\t} elseif ( 'pick-list' ) {\n\t\t\t\t$milestone_message = __( 'You have generated your first pick list!', 'woocommerce-pip' );\n\t\t\t}\n\n\t\t\tif ( null !== $milestone_message ) {\n\n\t\t\t\twc_pip()->get_lifecycle_handler()->trigger_milestone(\n\t\t\t\t\t\"{$document_type}-generated\", lcfirst( $milestone_message )\n\t\t\t\t);\n\t\t\t}\n\t\t} );\n\t}", "public function fire()\n {\n \n }", "abstract public function change();", "public function autoLabelNeeded();", "public function step_1()\n {\n }", "function OnAfterApply(){\n }", "function longtermrise(){ //riserate in decimal eg. 1.2\n global $names, $rows, $lastRow, $tax;\n for ($col=1; $col<14; $col++) {\n $new = $rows[$lastRow][$col];\n $old = $rows[0][$col];\n if (($new*$tax > 10*$old) && ($rows[$lastRow-1][$col]*$tax < 10*$old) ) {\n $msg=\"\\\"$names[$col]\\\" rose since the beginning (Org x\".round(($new*$tax/$old),2).\" at a price of \".round($new*$tax,2).\")!\";\n pushbullet(\"CSGO Skin Notification! :)\", $msg);\n }else if (($new*$tax > 5*$old) && ($rows[$lastRow-1][$col]*$tax < 5*$old) ) {\n $msg=\"\\\"$names[$col]\\\" rose since the beginning (Org x\".round(($new*$tax/$old),2).\" at a price of \".round($new*$tax,2).\")!\";\n pushbullet(\"CSGO Skin Notification! :)\", $msg);\n }else if (($new*$tax > 2*$old) && ($rows[$lastRow-1][$col]*$tax < 2*$old) ) {\n $msg=\"\\\"$names[$col]\\\" rose since the beginning (Org x\".round(($new*$tax/$old),2).\" at a price of \".round($new*$tax,2).\")!\";\n pushbullet(\"CSGO Skin Notification! :)\", $msg);\n }\n }\n}", "public function leer(){\n }", "public function leer(){\n }", "public function variationDeadlineJob(){\n\t\tglobal $wpdb;\n\t\t$variations = $wpdb->get_results(\"SELECT * FROM $wpdb->postmeta WHERE meta_key = '_variation_deadline' AND NOT meta_value = '' \");\n\n\t\tforeach ( $variations as $variation ){\n\t\t\t/* if deadline is exceeded and variation is not disabled */\n\t\t\tif ( $variation->meta_value <= date('Y-m-d') AND get_post_status( $variation->meta_id ) != 'private' ){\n\t\t\t\t/* disable variation */\n\t\t\t\twp_update_post(array(\n\t\t\t\t\t'ID' => $variation->post_id,\n\t\t\t\t\t'post_status' => 'private'\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t}", "public function attaquerAdversaire() {\n\n }", "function evt__1__entrada()\r\n\t{\r\n\t\t$this->pasadas_por_solapa[1]++;\r\n\t}", "public function listTriggers($database = null)\n {\n\n }", "function after_update() {}", "public function act()\n\t{\n\t\n\t}", "function __flop(&$tmp) {\r\r\n\t\tasido::trigger_abstract_error(\r\r\n\t\t\t__CLASS__,\r\r\n\t\t\t__FUNCTION__\r\r\n\t\t\t);\r\r\n\t\t}", "private function hooks() {\n // stripe non3ds refund\n add_action( 'dokan_refund_request_created', [ $this, 'process_refund' ] );\n add_filter( 'dokan_refund_approve_vendor_refund_amount', [ $this, 'vendor_refund_amount_non_3ds' ], 10, 3 );\n add_action( 'dokan_refund_approve_before_insert', [ $this, 'add_vendor_withdraw_entry_non_3ds' ], 10, 3 );\n\n // process 3ds refund\n add_action( 'dokan_refund_request_created', [ $this, 'process_3ds_refund' ] );\n add_filter( 'dokan_refund_approve_vendor_refund_amount', [ $this, 'vendor_refund_amount_3ds' ], 10, 3 );\n add_action( 'dokan_refund_approve_before_insert', [ $this, 'add_vendor_withdraw_entry_3ds' ], 10, 3 );\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\tbuche() {\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::buche(): begin\") ;\n\t\t$this->_buche( 1) ;\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::buche(): end\") ;\n\t}", "abstract public function withholdTargets();", "function evt__3__salida()\n\t{\n\t\t$this->dependencia('eventos')->limpiar_seleccion();\n\t}", "public function effect1()\n {\n }", "public function after_insert() {}", "public function do_all_hook(&$args)\n {\n }", "public function __construct() {\t\t\n\t\n\t\t$ci = get_instance();\n\t\t\n\t\t$ci->event->register('red.flare',function(&$input) {\n\t\t\t$input .= ' add some content to $input';\n\t\t});\n\t\t\n\n\t\t/* this is registered first but has a priority of 0 default */\n\t\t$ci->event->register('priority.example',function(&$input) {\n\t\t\t$input .= ' priority.example priority 0 - i\\'m just the default level<br>';\n\t\t}); /* the default is 0 */\n\n\t\t/* this is registered second but has a priority of 10 lower (unix style levels) */\n\t\t$ci->event->register('priority.example',function(&$input) {\n\t\t\t$input .= ' priority.example priority 10 I should go last :( <br>';\n\t\t},10);\n\n\t\t/* this is registered last but has a priority of -23 higher (unix style levels) */\n\t\t$ci->event->register('priority.example',function(&$input) {\n\t\t\t$input .= ' priority.example priority -23 I should get to go first :) !<br>';\n\t\t},-23);\n\n\t\t/*\n\t\tthis is registered first but has a priority of 0 default\n\t\tso this actually goes last\n\t\t*/\n\t\t$ci->event->register('math.boom',function(&$a,&$b,&$c) {\n\t\t\t$c = '$a('.$a.') + $b('.$b.') = '.($a + $b);\t\t\t\n\t\t}); /* the default is 0 */\n\n\t\t/*\n\t\tthis is registered last but has a priority of -23 higher (unix style levels)\n\t\tso remember it goes first\n\t\t*/\n\t\t$ci->event->register('math.boom',function(&$a,&$b,&$c) {\n\t\t\t$c = '$a('.$a.') * $b('.$b.') = '.($a * $b);\t\t\t\n\t\t},-999);\n\n\t\t\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"100\"'; },100);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"-100\"'; },-100);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"23\"'; },23);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"-23\"'; },-23);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"0\"'; },0);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"10\"'; },10);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"-17\"'; },-17);\n\t\t$ci->event->register('orders',function(&$a) { $a .= ' add \"23\"'; },23);\n\t\t\n\t\t\n\t\t/*\n\t\tif you don't set a priority then it is set to 0\n\t\tand the events are triggered in \n\t\tthe order they are registered\n\t\t*/\n\t\t\n\t\t$ci->event->register('user.login',function(&$user_name,&$user_id,&$user_email) {\n\t\t\t$user_name = $user_id.' '.$user_email;\n\t\t});\n\t\t\n\t}", "public function cleanupTriggers() {\n\t\treturn false;\n\t}", "protected function _after()\n\t{\n\t\t\n\t}", "protected function _after()\n\t{\n\t\t\n\t}", "public function __default()\r\n {\r\n if (self::isArg('notifwindow')) {\r\n $this->view = \"common_notifwindow\";\r\n $this->viewArgs['table'] = self::getArg(\"table\", AT_posint, true);\r\n } else {\r\n $this->view = \"lettertycoon_lettertycoon\";\r\n self::trace(\"Complete reinitialization of board game\");\r\n }\r\n }", "public function setGoal()\n {\n }", "public function run()\n\t{\n\t\tif (count($this->liste_attente) > 0)\n\t\t\t$this->analyser_liste_attente();\n\n\t\t// Envoyer une rumeur de temps en temps\n\t\tif ($this->enabled)\n\t\t\t$this->lancer_rumeur();\n\n\t\t// Vérifier les derniers sujets du tobozon\n\t\tif ($this->enabled)\n\t\t\t$this->verifier_tobozon();\n\n\t\t// Vérifier les dernières parties de plouk\n\t\tif ($this->enabled)\n\t\t\t$this->verifier_plouk();\n\n\t\t// On regarde si il faut recharger la config\n\t\tif (file_exists('update_config'))\n\t\t{\n\t\t\t$this->lire_config();\n\t\t\t@unlink('update_config');\n\t\t}\n\t\t\t\n\t\t// On enlève les chut ban qui ont fait leur temps\n\t\t$this->supprimer_chut_bans();\n\t\t\n\t\tif ($this->buffer() === false)\n\t\t\treturn;\n\t\t\t\n\t\tswitch ($this->buffer('event'))\n\t\t{\n\t\t\t// On dit bonjour aux nouveaux arrivants\n\t\t\tcase 'JOIN':\n\t\t\t\tif ($this->buffer('text') == $this->bot->config('chan') && $this->enabled)\n\t\t\t\t{\n\t\t\t\t\tif ($this->autovoice)\n\t\t\t\t\t\t$this->command('MODE '.$this->bot->config('chan').' +v '.$this->buffer('nick'));\n\n\t\t\t\t\t$this->ajouter_bonjour();\n\t\t\t\t\t$this->lignes[$this->buffer('nick')] = '';\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t// On réponds aux messages\n\t\t\tcase 'PRIVMSG':\n\t\t\t\t// Message privé\n\t\t\t\t$params = $this->buffer('params');\n\t\t\t\t\n\t\t\t\tif ($params[0] == $this->bot->config('nick'))\n\t\t\t\t\t$this->analyse_prive();\n\n\t\t\t\t// On analyse les messages publiques\n\t\t\t\telse if ($params[0] == $this->bot->config('chan'))\n\t\t\t\t{\n\t\t\t\t\tif ($this->enabled)\n\t\t\t\t\t\t$this->analyse_publique();\n\n\t\t\t\t\t$this->lignes[$this->buffer('nick')] = $this->buffer('text');\n\t\t\t\t\t$this->analyse_admin();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\t// Notices\n\t\t\tcase 'NOTICE':\n\t\t\t\t$params = $this->buffer('params');\n\n\t\t\t\tif ($params[0] == $this->bot->config('nick'))\n\t\t\t\t\t$this->analyse_admin();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'KICK':\n\t\t\t\t// On rejoint le chan si le bot se fait kicker\n\t\t\t\t$params = $this->buffer('params');\n\t\t\t\t\n\t\t\t\tif ($params[0] == $this->bot->config('chan') && $params[1] == $this->bot->config('nick'))\n\t\t\t\t{\n\t\t\t\t\t$this->bot->join_chan();\n\t\t\t\t\t$this->ajouter_liste_attente('Merci beaucoup '.$this->buffer('nick').'...', 3);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function run_trigger($action, $object, $user, $langs, $conf)\n {\n // Put here code you want to execute when a Dolibarr business events occurs.\n // Data and type of action are stored into $object and $action\n // Users\n \n global $db;\n\t\t\n if ($action === 'BILL_VALIDATE' || $action === 'PROPAL_VALIDATE' || $action === 'ORDER_VALIDATE') {\n \n\t dol_include_once('/product/class/product.class.php');\n\t dol_include_once('/categories/class/categorie.class.php');\n\t\t\t\n\t\t\t$TCategsAndExcludedThird = unserialize($conf->global->WTBC_CATEGS_AND_EXCLUDED_THIRD);\n\t\t\t$TCategsConf = $TCategsAndExcludedThird['TCategs'];\n\t\t\t$TTiersConf = $TCategsAndExcludedThird['TCategTiers'];\n\t\t\t\n\t\t\t$c = new Categorie($db);\n\t\t\t\n\t\t\t// Exclusion par catégorie tiers\n\t\t\t$TCategs = $c->containing($object->socid, 'customer', 'id');\n\t\t\tforeach($TCategs as $id_categ) {\n\t\t\t\tif(!empty($TTiersConf) && in_array($id_categ, $TTiersConf)) return 0;\n\t\t\t}\n\t\t\t\n\t\t\t/* Tableau associatif qui va contenir en clé l'id de la catégorie\n\t\t\t * et en valeur le montant total des produits de cette categ dans le document\n\t\t\t */\n\t\t\t$TQty = array();\n\t\t\t\n\t\t\t// Va contenir tous les id des produits trouvés dans le document (on profite de la boucle)\n\t\t\t$TProductDocument = array();\n\t\t\t\n \tforeach($object->lines as $line) {\n \t\t\n\t\t\t\tif(!empty($line->fk_product)) {\n\t\t\t\t\t\n\t\t\t\t\t// On récupère les catégories du produit\n\t\t\t\t\t$p = new Product($db);\n\t\t\t\t\t$p->fetch($line->fk_product);\n\t\t\t\t\t\n\t\t\t\t\t$TCategs = $c->containing($line->fk_product, 'product', 'id');\n\t\t\t\t\t\n\t\t\t\t\t$TProductDocument[] = $line->fk_product;\n\t\t\t\t\t\n\t\t\t\t\tforeach($TCategsConf as $id_categ=>$TProducts) {\n\t\t\t\t\t\tif(in_array($id_categ, $TCategs)) $TQty[$id_categ] += $line->qty;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n \t}\n\t\t\t\n\t\t\tforeach($TQty as $id_categ => $qty) {\n\t\t\t\t\n\t\t\t\t$service_utilise = $TCategsConf[$id_categ];\n\t\t\t\tif(!in_array($service_utilise, $TProductDocument)) {\n\t\t\t\t\t$srv = new Product($db);\n\t\t\t\t\t$srv->fetch($service_utilise);\n\t\t\t\t\t$object->addline('', $srv->price, $qty, $srv->tva_tx, 0, 0, $srv->id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n }\n\n return 0;\n }", "function scheckAusdruck()\r\n {\r\n foreach ($this->belegschaft as $schluessel=>$wert)\r\n $this->belegschaft[$schluessel]->scheckAusdruck();\r\n }", "public function afterRules(): void\n {\n }", "public function __default()\r\n {\r\n if( self::isArg( 'notifwindow') ) {\r\n $this->view = \"common_notifwindow\";\r\n $this->viewArgs['table'] = self::getArg( \"table\", AT_posint, true );\r\n } else {\r\n $this->view = \"thecrew_thecrew\";\r\n self::trace( \"Complete reinitialization of board game\" );\r\n }\r\n }", "function balise_LIRE_GRIMOIRE_dyn($index, $args, $id_notification) {\n\n // récupération de la page du grimoire\n $entre_grimoire = $GLOBALS['notification_grimoire'][$index];\n\n // S'il n'y a pas de squelette référencé, c'est une chaine de langue\n if (!$GLOBALS['notification_grimoire'][$index]['squelette'])\n // Traduction dans une langue\n $entre_grimoire['text'] = _T($entre_grimoire['text'], $args);\n // Sinon, on récupère le squelette qui correspond\n else {\n $entre_grimoire['text'] = recuperer_fond(\n $GLOBALS['notification_grimoire'][$index]['squelette'],\n $args\n );\n }\n\n return $entre_grimoire['text'];\n}", "public function run()\n {\n \t// Person against person\n \t// Person against self\n \t// Person against nature\n \t// Person against society\n \t// Person against the supernatural\n \t// Person against technology\n\n \t/*\n \t\tIn order to stop a :villainTraitList: :villainOccupation:,\n\t\t\t:mainCharacterName:, a :mainCharacterAge: year-old \n\t\t\t:mainCharacterOccupation: enlists the help of \n\t\t\t:mainCharacterPossessive: :numberOfSupportingCharacters:\n\t\t\tfriends to :resolutionAction: :resolutionNameWithArticle:.\n \t */\n\n $conflicts = [\n \t''\n ];\n }", "protected function set_hooks() {\n\t\t// Compatibility with Cart Notices plugin\n\t\tadd_filter('wc_cart_notices_order_thresholds', array($this, 'wc_cart_notices_order_thresholds'), 20);\n\t\tadd_action('wc_cart_notices_process_notice_before', array($this, 'wc_cart_notices_process_notice_before'), 20);\n\t}", "public function cloudflare_notices() {\n\t\tforeach ( $this->cloudflare_notices as $notice ) {\n\t\t\t$this->cloudflare_admin_notice( $notice );\n\t\t}\n\t}", "public function preDown()\n {\n }", "function notify();", "public function step_2()\n {\n }" ]
[ "0.56260514", "0.5462409", "0.54193556", "0.5403832", "0.5346582", "0.53199923", "0.5278226", "0.5269869", "0.5261898", "0.52120674", "0.51425695", "0.51224446", "0.51133925", "0.5097605", "0.5096836", "0.5089075", "0.5081767", "0.5066548", "0.5037627", "0.50289696", "0.501143", "0.50110614", "0.499972", "0.49726108", "0.49694806", "0.49668384", "0.49632895", "0.49632895", "0.49629703", "0.49598566", "0.49538723", "0.4948684", "0.4948684", "0.4944835", "0.49341515", "0.49198237", "0.491803", "0.49120623", "0.49048623", "0.48884842", "0.48757428", "0.48685652", "0.48685652", "0.48685652", "0.48555106", "0.48431602", "0.48347053", "0.4830358", "0.48298058", "0.48242122", "0.48232174", "0.481869", "0.47888318", "0.47822255", "0.4779842", "0.47797245", "0.4772449", "0.47677845", "0.47583747", "0.47521633", "0.47341692", "0.47332838", "0.4729289", "0.4724994", "0.4723783", "0.47157025", "0.47157025", "0.4713747", "0.47136074", "0.47022203", "0.47001892", "0.46802205", "0.4679768", "0.4679685", "0.4677392", "0.4673277", "0.46710083", "0.46696657", "0.46671575", "0.46588388", "0.46522504", "0.46477115", "0.46473253", "0.46418107", "0.46406004", "0.46406004", "0.4640025", "0.4639155", "0.46388578", "0.4635707", "0.46316144", "0.46293584", "0.46190274", "0.46158603", "0.46085298", "0.4598005", "0.4595018", "0.45920938", "0.45913467", "0.45880976" ]
0.53328156
5
The Account identifier .accounts.v1.Account account = 1;
public function getAccount() { return $this->account; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccount();", "public function setAccount($account);", "public function getAccountID();", "public function getAccount() {\n return $this->account;\n }", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return $this;\n }", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return $this;\n }", "public function account_info() {\r\n return $this->request_info(\"v2/account\");\r\n }", "public static function account($accountId) {\n //Return the information for $accountId\n return self::get('accounts/' . $accountId);\n }", "public function getAccountID()\n {\n return $this->accountID;\n }", "public function getAccountID()\n {\n return $this->accountID;\n }", "public function getAccountID()\n {\n return $this->getKey('AccountID');\n }", "protected function account(): Account\n {\n return $this->account;\n }", "public function setAccount(&$var)\n {\n GPBUtil::checkMessage($var, \\Accounts\\V1\\Account::class);\n $this->account = $var;\n }", "public function getAccountNumber()\n {\n return $this->account_number;\n }", "public function getAccountNumber()\n {\n return $this->account_number;\n }", "public function show(Account $account)\n {\n return $account;\n }", "public function getAccountCode();", "public function getAccountCode();", "public function getAccount(): Account\n {\n return $this->model(Account::class);\n }", "public function getAccountId()\n {\n return $this->account_id;\n }", "public function getAccountId()\n {\n return $this->account_id;\n }", "public function registerAccount($key, Account $account);", "public function getAccountInformation()\n {\n return $this->api->getBinanceApiRequest('v3/account');\n }", "public function __construct(int $id, $account);", "public function accountId(): string\n {\n return $this->accountId;\n }", "public function accountId(): string\n {\n return $this->accountId;\n }", "function setAccount($id)\n\t{\n\t\t$this->accountId = $id;\n\t}", "public function retrieveAccountDetails()\n {\n $segments = \"/account\";\n\n return $this->createRequest($segments);\n }", "public function account(): Account\n {\n return new Account($this);\n }", "public function account()\n {\n return $this->belongsTo(\\App\\Models\\Account::class);\n }", "public function getAccountInfo(): AccountInfo\n\t{\n\t\treturn $this->client->accountService->getAccountInfo($this->token);\n\t}", "public function getAccount_id()\n {\n return $this->fv_account_id;\n }", "public function getUser(): AccountInterface;", "public function getAccount()\n {\n return isset($this->account) ? $this->account : null;\n }", "public function getAccountKey()\n {\n return $this->accountKey;\n }", "public function getAccount()\n {\n return isset($this->Account) ? $this->Account : null;\n }", "public function account()\n {\n return $this->belongsTo(Account::class);\n }", "public function account()\n {\n return $this->belongsTo(Account::class);\n }", "public function getAccount($key = null);", "public function account()\n {\n\n return $this->belongsTo(Account::class);\n }", "private function getResourceAccount()\n\t{\n\t\tif (!$this->account) {\n\t\t\t$payload = [\n\t\t\t\t'onlyReturnExisting' => true,\n\t\t\t];\n\n\t\t\t$this->requestResource('POST', ResourcesDirectory::NEW_ACCOUNT, $payload);\n\t\t\t$this->account = $this->getHttpClient()->getLastLocation();\n\t\t}\n\n\t\treturn $this->account;\n\t}", "public function getSubAccountId(): string;", "public function show(Account $account)\n {\n //\n }", "public function show(Account $account)\n {\n //\n }", "public function show(Account $account)\n {\n //\n }", "public function show(Account $account)\n {\n //\n }", "public function account()\n {\n return $this->belongsTo('App\\Models\\Account','account_id');\n }", "public function account()\n {\n return $this->belongsTo('App\\Account');\n }", "public function account()\n {\n return $this->belongsTo('App\\Account');\n }", "public function account()\n {\n return $this->belongsTo('App\\Account');\n }", "public function getAccountId()\n {\n return $this->accountId;\n }", "public function getAccountId()\n {\n return $this->accountId;\n }", "public function __construct(Account $account)\n {\n $this->account = $account;\n }", "public function __construct(Account $account)\n {\n $this->account = $account;\n }", "function AccountInformation($accountId)\n {\n // set the account id\n $this -> accountId = $accountId;\n \n return;\n }", "public function getClientAccount()\n {\n return $this->account;\n }", "public function __construct($account)\n {\n $this->account = $account;\n }", "public function show(Account $account)\n {\n \n return response()->json($account,200); \n }", "public function getResourceId()\n\t{\n\t\treturn 'Ora\\OrganizationAccount';\n\t}", "public function getAccountReference()\n {\n if (isset($this->data['object']) && 'account' === $this->data['object']) {\n return $this->data['id'];\n }\n\n return null;\n }", "public function getAccount(): ?Account\n\t{\n\t\treturn $this->client()->getAccount($this->accountId);\n\t}", "public function account()\n {\n if ($response = $this->request('account')) {\n if (isset($response->success) && $response->success == true) {\n return $response->account;\n }\n }\n return false;\n }", "public function getAccountId()\n {\n return $this->id;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public static function get ($id) {\n // Retrieve account resources.\n $account = Json::get('account', $id);\n\n // If account resource is not avaiable, internal server error.\n if ($account == 1)\n return 1;\n if ($account == 2)\n return 2;\n\n // Account found.\n return $account;\n }", "function mint_get_account($session, $token, $account_name) {\n // mint needs some info to log in\n $_post = array(\n \"input\" => '[' . json_encode(array(\n \"args\" => array(\n \"types\" => array(\"OTHER_PROPERTY\"),\n ),\n \"id\" => \"115485\",\n \"service\" => \"MintAccountService\",\n \"task\" => \"getAccountsSorted\", \n )) . ']',\n );\n $session->URLFetch(\"https://wwws.mint.com/bundledServiceController.xevent?token=\" . $token, $_post);\n $_obj = json_decode($session->response);\n \n // 115485 seems to be a magic/arbitrary number that mint labels the object in it's return json\n foreach ($_obj->response->{115485}->response as $account) {\n if ($account->name == $account_name) {\n return $account->accountId;\n }\n }\n Debug::trace('could not find an account named ' . $account_name . ' in your mint.com account');\n}", "public function setAccount($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Devtools\\Testing\\V1\\Account::class);\n $this->account = $var;\n\n return $this;\n }", "public function setAccountId($var)\n {\n GPBUtil::checkString($var, True);\n $this->account_id = $var;\n }", "public function getAccountNo()\n {\n return $this->account_no;\n }", "function model()\n {\n return Account::class;\n }", "protected function generateAccount(): Account\n\t{\n\t\t// Generate a random UID\n\t\t$uid = $this->generateUid();\n\n\t\t// Start the entity\n\t\t$account = new Account(get_class(self::$faker), $uid);\n\t\t\n\t\t// Populate the fields\n\t\t$account->id = $uid;\n\t\t$account->name = self::$faker->name;\n\t\t$account->username = self::$faker->userName;\n\t\t$account->email = self::$faker->email;\n\t\t$account->phone = self::$faker->e164PhoneNumber;\n\t\t\n\t\treturn $account;\n\t}", "function get_account() {\n\t\t// $pos = $this->add_request( __FUNCTION__ );\n\t\t$pos = $this->add_request( 'getaccount' );\n\t\t$this->send_request();\n\t\t$r = $this->response_part( $pos );\n\t\tif ( isset( $r->account ) && !is_null( $r->account->email ) )\n\t\t\treturn $r->account;\n\t\treturn false;\n\t}", "public function getAccountInfo() {\n\t\treturn $this->get($this->api_url . 'account/info');\n\n $data = $this->http_oauthed($this->api_url . 'account/info');\n return json_decode($data,true);\n\n }", "public function account()\n {\n return $this->belongsTo(CommunityFacade::getUserClass(), 'account_id');\n }", "public function getAccountId(){\n $value = \\Auth::user()->account_id;\n return $value;\n }", "public function getAccountId()\n {\n return $this->getParameter('accountId');\n }", "public function getAccount(): ?string\n {\n return $this->account;\n }", "public function getAccountNo()\n {\n return $this->accountNo;\n }", "public function getAccountNumber()\n {\n return $this->helper->accountNumber();\n }", "public function setAccount($account = array()) {\n\t\t$this->_account = $account;\n\t}", "public function setAccountCode($value);", "public function GetAccountID () \r\n\t{\r\n\t\treturn ($AccountID);\r\n\t}", "public function getAccountName()\n {\n return $this->accountName;\n }", "function add_account($name) {\n $this_account = new Account;\n $this->list[$name] = $this_account;\n return $this_account;\n }", "public function setAccountId($var)\n {\n GPBUtil::checkInt32($var);\n $this->account_id = $var;\n }", "public function account($id)\n {\n return $this->get(\"ach/relationships/{$id}\");\n }", "public function setAccount(string $account): self\n {\n $this->account = $account;\n\n return $this;\n }", "public function getAccountAddress($account);", "public function account()\n {\n return $this->hasOne(UserAccount::class);\n }", "public function getAccount(array $options = [])\n {\n return $this->getResourceProperty(self::ACCOUNT, Stormpath::ACCOUNT, $options);\n }", "public function account()\n {\n return $this->hasOne(Account::class, 'user_id', 'user_id');\n }", "public function get_account_data() {\n return array(\n 'accountId' => $this->accountId,\n 'email' => $this->email,\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'type' => $this->type,\n 'subscription' => $this->subscription\n );\n }", "public function account(): Relation\n {\n return $this->belongsTo(Account::class);\n }" ]
[ "0.70212007", "0.68139976", "0.6770603", "0.67239463", "0.6561144", "0.6561144", "0.65431345", "0.64482534", "0.64073855", "0.64073855", "0.6404588", "0.63779604", "0.6362563", "0.635606", "0.635606", "0.63256705", "0.6302682", "0.6302682", "0.62722546", "0.626836", "0.626836", "0.6235405", "0.6228775", "0.6224137", "0.62214977", "0.62214977", "0.6211563", "0.6201656", "0.61871", "0.6184953", "0.61797714", "0.61669654", "0.6142213", "0.6135966", "0.6135698", "0.6119303", "0.60829633", "0.60829633", "0.608291", "0.60394484", "0.60288364", "0.60274506", "0.60073185", "0.60073185", "0.60073185", "0.60073185", "0.5998913", "0.5997524", "0.5997524", "0.5997524", "0.59958744", "0.59958744", "0.59905297", "0.59905297", "0.59870005", "0.598155", "0.59797573", "0.59622973", "0.595088", "0.59489447", "0.59320444", "0.59215534", "0.5921328", "0.5913162", "0.5913162", "0.5913162", "0.5906759", "0.59040624", "0.5896182", "0.5891864", "0.58836293", "0.5868936", "0.5866372", "0.58608216", "0.5856875", "0.5854961", "0.5851739", "0.583677", "0.58327997", "0.5829107", "0.5813617", "0.5808753", "0.5808148", "0.58045876", "0.57983696", "0.5795165", "0.5779213", "0.57593876", "0.57510746", "0.574365", "0.5743034", "0.57376707", "0.57287264", "0.5717429", "0.57071614" ]
0.67687607
8
The Account identifier .accounts.v1.Account account = 1;
public function setAccount(&$var) { GPBUtil::checkMessage($var, \Accounts\V1\Account::class); $this->account = $var; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccount();", "public function setAccount($account);", "public function getAccountID();", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount() {\n return $this->account;\n }", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return $this;\n }", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return $this;\n }", "public function account_info() {\r\n return $this->request_info(\"v2/account\");\r\n }", "public static function account($accountId) {\n //Return the information for $accountId\n return self::get('accounts/' . $accountId);\n }", "public function getAccountID()\n {\n return $this->accountID;\n }", "public function getAccountID()\n {\n return $this->accountID;\n }", "public function getAccountID()\n {\n return $this->getKey('AccountID');\n }", "protected function account(): Account\n {\n return $this->account;\n }", "public function getAccountNumber()\n {\n return $this->account_number;\n }", "public function getAccountNumber()\n {\n return $this->account_number;\n }", "public function show(Account $account)\n {\n return $account;\n }", "public function getAccountCode();", "public function getAccountCode();", "public function getAccount(): Account\n {\n return $this->model(Account::class);\n }", "public function getAccountId()\n {\n return $this->account_id;\n }", "public function getAccountId()\n {\n return $this->account_id;\n }", "public function registerAccount($key, Account $account);", "public function getAccountInformation()\n {\n return $this->api->getBinanceApiRequest('v3/account');\n }", "public function __construct(int $id, $account);", "public function accountId(): string\n {\n return $this->accountId;\n }", "public function accountId(): string\n {\n return $this->accountId;\n }", "function setAccount($id)\n\t{\n\t\t$this->accountId = $id;\n\t}", "public function retrieveAccountDetails()\n {\n $segments = \"/account\";\n\n return $this->createRequest($segments);\n }", "public function account(): Account\n {\n return new Account($this);\n }", "public function account()\n {\n return $this->belongsTo(\\App\\Models\\Account::class);\n }", "public function getAccountInfo(): AccountInfo\n\t{\n\t\treturn $this->client->accountService->getAccountInfo($this->token);\n\t}", "public function getAccount_id()\n {\n return $this->fv_account_id;\n }", "public function getUser(): AccountInterface;", "public function getAccount()\n {\n return isset($this->account) ? $this->account : null;\n }", "public function getAccountKey()\n {\n return $this->accountKey;\n }", "public function getAccount()\n {\n return isset($this->Account) ? $this->Account : null;\n }", "public function account()\n {\n return $this->belongsTo(Account::class);\n }", "public function account()\n {\n return $this->belongsTo(Account::class);\n }", "public function getAccount($key = null);", "public function account()\n {\n\n return $this->belongsTo(Account::class);\n }", "private function getResourceAccount()\n\t{\n\t\tif (!$this->account) {\n\t\t\t$payload = [\n\t\t\t\t'onlyReturnExisting' => true,\n\t\t\t];\n\n\t\t\t$this->requestResource('POST', ResourcesDirectory::NEW_ACCOUNT, $payload);\n\t\t\t$this->account = $this->getHttpClient()->getLastLocation();\n\t\t}\n\n\t\treturn $this->account;\n\t}", "public function getSubAccountId(): string;", "public function show(Account $account)\n {\n //\n }", "public function show(Account $account)\n {\n //\n }", "public function show(Account $account)\n {\n //\n }", "public function show(Account $account)\n {\n //\n }", "public function account()\n {\n return $this->belongsTo('App\\Models\\Account','account_id');\n }", "public function account()\n {\n return $this->belongsTo('App\\Account');\n }", "public function account()\n {\n return $this->belongsTo('App\\Account');\n }", "public function account()\n {\n return $this->belongsTo('App\\Account');\n }", "public function getAccountId()\n {\n return $this->accountId;\n }", "public function getAccountId()\n {\n return $this->accountId;\n }", "public function __construct(Account $account)\n {\n $this->account = $account;\n }", "public function __construct(Account $account)\n {\n $this->account = $account;\n }", "function AccountInformation($accountId)\n {\n // set the account id\n $this -> accountId = $accountId;\n \n return;\n }", "public function __construct($account)\n {\n $this->account = $account;\n }", "public function getClientAccount()\n {\n return $this->account;\n }", "public function show(Account $account)\n {\n \n return response()->json($account,200); \n }", "public function getResourceId()\n\t{\n\t\treturn 'Ora\\OrganizationAccount';\n\t}", "public function getAccountReference()\n {\n if (isset($this->data['object']) && 'account' === $this->data['object']) {\n return $this->data['id'];\n }\n\n return null;\n }", "public function getAccount(): ?Account\n\t{\n\t\treturn $this->client()->getAccount($this->accountId);\n\t}", "public function account()\n {\n if ($response = $this->request('account')) {\n if (isset($response->success) && $response->success == true) {\n return $response->account;\n }\n }\n return false;\n }", "public function getAccountId()\n {\n return $this->id;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public static function get ($id) {\n // Retrieve account resources.\n $account = Json::get('account', $id);\n\n // If account resource is not avaiable, internal server error.\n if ($account == 1)\n return 1;\n if ($account == 2)\n return 2;\n\n // Account found.\n return $account;\n }", "function mint_get_account($session, $token, $account_name) {\n // mint needs some info to log in\n $_post = array(\n \"input\" => '[' . json_encode(array(\n \"args\" => array(\n \"types\" => array(\"OTHER_PROPERTY\"),\n ),\n \"id\" => \"115485\",\n \"service\" => \"MintAccountService\",\n \"task\" => \"getAccountsSorted\", \n )) . ']',\n );\n $session->URLFetch(\"https://wwws.mint.com/bundledServiceController.xevent?token=\" . $token, $_post);\n $_obj = json_decode($session->response);\n \n // 115485 seems to be a magic/arbitrary number that mint labels the object in it's return json\n foreach ($_obj->response->{115485}->response as $account) {\n if ($account->name == $account_name) {\n return $account->accountId;\n }\n }\n Debug::trace('could not find an account named ' . $account_name . ' in your mint.com account');\n}", "public function setAccount($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Devtools\\Testing\\V1\\Account::class);\n $this->account = $var;\n\n return $this;\n }", "public function setAccountId($var)\n {\n GPBUtil::checkString($var, True);\n $this->account_id = $var;\n }", "public function getAccountNo()\n {\n return $this->account_no;\n }", "function model()\n {\n return Account::class;\n }", "protected function generateAccount(): Account\n\t{\n\t\t// Generate a random UID\n\t\t$uid = $this->generateUid();\n\n\t\t// Start the entity\n\t\t$account = new Account(get_class(self::$faker), $uid);\n\t\t\n\t\t// Populate the fields\n\t\t$account->id = $uid;\n\t\t$account->name = self::$faker->name;\n\t\t$account->username = self::$faker->userName;\n\t\t$account->email = self::$faker->email;\n\t\t$account->phone = self::$faker->e164PhoneNumber;\n\t\t\n\t\treturn $account;\n\t}", "function get_account() {\n\t\t// $pos = $this->add_request( __FUNCTION__ );\n\t\t$pos = $this->add_request( 'getaccount' );\n\t\t$this->send_request();\n\t\t$r = $this->response_part( $pos );\n\t\tif ( isset( $r->account ) && !is_null( $r->account->email ) )\n\t\t\treturn $r->account;\n\t\treturn false;\n\t}", "public function getAccountInfo() {\n\t\treturn $this->get($this->api_url . 'account/info');\n\n $data = $this->http_oauthed($this->api_url . 'account/info');\n return json_decode($data,true);\n\n }", "public function account()\n {\n return $this->belongsTo(CommunityFacade::getUserClass(), 'account_id');\n }", "public function getAccountId(){\n $value = \\Auth::user()->account_id;\n return $value;\n }", "public function getAccountId()\n {\n return $this->getParameter('accountId');\n }", "public function getAccount(): ?string\n {\n return $this->account;\n }", "public function getAccountNo()\n {\n return $this->accountNo;\n }", "public function getAccountNumber()\n {\n return $this->helper->accountNumber();\n }", "public function setAccount($account = array()) {\n\t\t$this->_account = $account;\n\t}", "public function setAccountCode($value);", "public function GetAccountID () \r\n\t{\r\n\t\treturn ($AccountID);\r\n\t}", "public function getAccountName()\n {\n return $this->accountName;\n }", "function add_account($name) {\n $this_account = new Account;\n $this->list[$name] = $this_account;\n return $this_account;\n }", "public function setAccountId($var)\n {\n GPBUtil::checkInt32($var);\n $this->account_id = $var;\n }", "public function account($id)\n {\n return $this->get(\"ach/relationships/{$id}\");\n }", "public function setAccount(string $account): self\n {\n $this->account = $account;\n\n return $this;\n }", "public function getAccountAddress($account);", "public function account()\n {\n return $this->hasOne(UserAccount::class);\n }", "public function getAccount(array $options = [])\n {\n return $this->getResourceProperty(self::ACCOUNT, Stormpath::ACCOUNT, $options);\n }", "public function account()\n {\n return $this->hasOne(Account::class, 'user_id', 'user_id');\n }", "public function get_account_data() {\n return array(\n 'accountId' => $this->accountId,\n 'email' => $this->email,\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'type' => $this->type,\n 'subscription' => $this->subscription\n );\n }", "public function account(): Relation\n {\n return $this->belongsTo(Account::class);\n }" ]
[ "0.70204073", "0.6817364", "0.67696935", "0.6768164", "0.6768164", "0.6768164", "0.6768164", "0.6768164", "0.6768164", "0.6723405", "0.65639955", "0.65639955", "0.6542415", "0.6448142", "0.64067554", "0.64067554", "0.6403941", "0.6378236", "0.63561636", "0.63561636", "0.6325994", "0.6302185", "0.6302185", "0.6271722", "0.6267205", "0.6267205", "0.62385523", "0.6227712", "0.62250566", "0.6220391", "0.6220391", "0.6212542", "0.62006605", "0.6187079", "0.6184771", "0.6178998", "0.6165945", "0.6141393", "0.613532", "0.6135264", "0.6118439", "0.6082877", "0.6082877", "0.60826284", "0.603927", "0.6028624", "0.60252935", "0.60079074", "0.60079074", "0.60079074", "0.60079074", "0.5998873", "0.59975415", "0.59975415", "0.59975415", "0.5994565", "0.5994565", "0.59932774", "0.59932774", "0.5988274", "0.59822786", "0.59804815", "0.59625536", "0.5950084", "0.5947795", "0.5931882", "0.59212494", "0.5919482", "0.5911892", "0.5911892", "0.5911892", "0.5905411", "0.5903635", "0.58985454", "0.58931744", "0.5883224", "0.5867628", "0.58664167", "0.5860562", "0.58556217", "0.58541477", "0.5850668", "0.58357847", "0.5832873", "0.5828662", "0.5813325", "0.58122087", "0.58101106", "0.5804022", "0.5797009", "0.57958585", "0.5780678", "0.5758281", "0.5754066", "0.57447356", "0.57420397", "0.57370085", "0.57278615", "0.57166576", "0.57070744" ]
0.6365399
18
/ $Module = $Object>Module; $Repository = $Object>Repository; $Function = $Object>Function;
Public Function Harvest(\stdClass $Object) { $Datasource = \SYSTEM\Module\Datasource::Generate_Object('Database\MySQL'); $SubRoutine = \SYSTEM\Library\XML::Convert_to_Object('SYSTEM/Configuration/Database.xml'); If($SubRoutine->Result) { + $Datasource_Configuration = $SubRoutine->Data; } $Datasource->Connection = $Datasource->Generate_Connection($Datasource_Configuration); $Parameters->Database = "SYSTEM"; $Parameters->Table = "Quotes.Repositories"; $Parameters->Fields = Array('Object_ID','Name','URL','Map'); $Parameters->Filters = Array("Harvest" => 1); $Parameters->Limit = 1; Try { $SubRoutine = $Datasource->Retrieve($Datasource->Connection,$Parameters); If($SubRoutine->Result) { $Repository_Count = $SubRoutine->Record_Count; $Repositories = $SubRoutine->Data; For($I=0;$I < $Repository_Count;$I++) { $Repository = $Datasource->Retrieve_Record($Repositories,$I)->Data; // Retrieve Remote Data $SubRoutine = \SYSTEM\Library\XML::Convert_to_Object($Repository->URL); If($SubRoutine->Result) { $Source_Object = $SubRoutine->Data;; } $SubRoutine = \SYSTEM\Library\Serialization\__Main::UnSerialize($Repository->Map); If($SubRoutine->Result) { $Abstraction_Map = $SubRoutine->Data;; } $Target_Object = \SYSTEM\Module\Datasource::Abstraction_Layer($Source_Object,$Abstraction_Map); // Set the Target Paraemeters $Parameters = NULL; $Parameters->Database = "SYSTEM"; $Parameters->Table = "Quotes"; // Crate Interdata Object $SubRoutine = $Datasource->Create($Datasource->Connection,$Parameters,$Target_Object); If($SubRoutine->Result = TRUE) { } } } } Catch (\Exception $Exception) { $Exception->Debug[] = "Unable to harvest."; Throw $Exception; } Return $Result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function someFunction($someObject)\n {\n }", "public function someFunction(object $someObject)\n {\n }", "function getObject();", "function getObject();", "abstract public function object();", "function &object(object $value, string $namespace = 'default'): object\n{\n $var = new Variable\\ObjectVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "function get_all_objects($module = null){ \r\n //to be implemented.\r\n throw new Exception('To be implemented');\r\n }", "public function getObject(): object;", "public function getObj();", "public function getModule();", "public function getModule();", "function describe($object) {\r\n\r\n\r\n\t}", "public function getFunction($obj);", "public function getObject() {}", "public function getObject() {}", "public function getFunction(): string;", "public function getObject();", "public function getObject();", "public function executeModule()\n {\n }", "public function __invoke()\n {\n\n }", "protected function testObject() {\n }", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function __invoke();", "public function publicFunction();", "function xh_finalModules()\r\n\t{\r\n\t}", "function Execute ();", "function &getSubModule($moduleID)\n{\n if( isset($this->SubModules[$moduleID]) ){\n return $this->SubModules[$moduleID];\n } else {\n $submodule_elements = $this->_map->selectChildrenOfFirst('SubModules', null, null);\n if(count($submodule_elements) > 0){\n foreach($submodule_elements as $submodule_element){\n if($submodule_element->getAttr('moduleID', true) == $moduleID){\n $submodule =& $submodule_element->createObject($this->ModuleID);\n break;\n }\n }\n }\n if(empty($submodule)){\n return false;\n } else {\n return $submodule;\n }\n }\n}", "public function getObjectType() : string;", "public function getLinkedObject(): LinkedObject;", "public function getIndirectObject() {}", "public function getIndirectObject() {}", "private function use_by_class($classname)\n {\n $reflection = new ReflectionClass($classname);\n\n //get all methods inside of the new module object\n $methods = $reflection->getMethods();\n\n //for each method in module class\n foreach($methods as $method)\n {\n //if the method isn't public/static, ignore it\n if(!$method->isPublic())\n continue;\n\n //get the minimum and maximum amount of parameters for the method\n $min_args = $method->getNumberOfRequiredParameters();\n $max_args = $method->getNumberOfParameters();\n\n //and get the method's name\n $function_name = $method->getName();\n\n //if the function takes no arguments, assume it's variadic\n if($max_args === 0 && $min_args === 0)\n {\n $num_args = array(-1);\n $positions_by_reference = array();\n } \n else\n {\n //otherwise, assume it may have any amount of arguments between the minimum and maximum, plus the first argument, $self\n $num_args = range($min_args - 1, $max_args - 1);\n\n //Parse each of the arguments for the function; this will allow us to use PHP decorations (like by-reference)\n //to more easily construct mathscript modules.\n //\n //This isn't the cleanest way to do this, but as PHP lacks decorators... this is probably the easiest on the developer.\n $params = $method->getParameters();\n\n //Positions which are marked as \"pass by reference\" are noted specially, as this has a special meaning in mathscript.\n //(\"Pass by name.\")\n $positions_by_reference = array();\n\n //Find any positional argument which is passed by reference.\n //Note that we subtract one; as the first argument should always be $self.\n foreach($params as $position => $param)\n if($param->isPassedByReference()) \n $positions_by_reference[$position - 1] = true;\n\n }\n\n //add the function to our function cache\n $this->function_cache[$function_name] = array\n (\n 'argcount' => $num_args,\n 'signature' => array($classname, $function_name),\n 'reference_positions' => $positions_by_reference,\n 'returns_by_reference' => $method->returnsReference()\n );\n }\n }", "public function getFieldObject() {}", "function aggregate_info($object)\n{\n}", "public function xxxxx(){\n\n }", "public function someStuff()\n {\n \n }", "function assignObject()\n\t{\n\t\tif ($this->id != 0)\n\t\t{\n\t\t\tif ($this->call_by_reference)\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, false);\n\t\t\t}\n\t\t}\n\t}", "function test14(stdClass $user) {\n\n}", "function FetchObj() {}", "function aggregation_info($object)\n{\n}", "public function transform(Module $object)\n {\n $objectArray = [\n 'id' => ($object->id !== null) ? (int) $object->id : $object->id,\n 'category' => ($object->category !== null) ? (int) $object->category : $object->category,\n 'type' => $object->type,\n 'name' => $object->name,\n// 'model_name' => $object->model_name, // shouldn't be available on the API\n 'table_name' => $object->table_name,\n 'icon' => $object->icon,\n 'anchor_text' => $object->anchor_text,\n 'anchor_html' => $object->anchor_html,\n 'slug' => $object->slug,\n 'created_at' => $object->created_at,\n 'updated_at' => $object->updated_at,\n 'lazy_loading' => (bool) $object->lazy_loading,\n 'reporting' => (bool) $object->reporting,\n 'max_depth' => ($object->max_depth !== null) ? (int) $object->max_depth : $object->max_depth,\n ];\n\n $restrictedFields = [];\n foreach ($objectArray as $fieldName => $attribute) {\n if (!PermissionChecker::canEditModuleField($object->getTable(), $fieldName)) {\n $restrictedFields[] = $fieldName;\n }\n }\n $objectArray['permission_control']['edit_restrictions'] = $restrictedFields;\n\n $objectArray['permission_control']['crud'] = [\n 'create' => (PermissionChecker::canModifyModule($object->table_name)) ? PermissionChecker::canCRUDCreate($object->table_name) : false,\n 'update' => (PermissionChecker::canModifyModule($object->table_name)) ? PermissionChecker::canCRUDUpdate($object->table_name) : false,\n 'delete' => (PermissionChecker::canModifyModule($object->table_name)) ? PermissionChecker::canCRUDDelete($object->table_name) : false,\n ];\n\n // Add any relations preloaded with eager loading\n $result = array_merge($objectArray, $object->getRelations());\n\n $this->transformGenericObjects($result);\n\n return $result;\n }", "function CCompLP_Constant_State(array $t_args)\n{\n $className = $t_args['className'];\n?>\nusing namespace arma;\nusing namespace std;\n\nclass <?=$className?>ConstantState {\n private:\n // The current iteration.\n int iteration;\n\n // The number of distinct nodes in the graph.\n int num_nodes;\n\n public:\n friend class <?=$className?>;\n\n <?=$className?>ConstantState()\n : iteration(0),\n num_nodes(0) {\n }\n};\n\n<?\n return [\n 'kind' => 'RESOURCE',\n 'name' => $className . 'ConstantState',\n ];\n}", "function test35(\\stdClass $name, \\stdClass $param2) {\n\n}", "public static function get_object() {\n\t\treturn self::$object;\n\t}", "public function __invoke()\n {\n }", "public function get_object_name() : string ;", "function &getSubModules()\n{\n if(count($this->SubModules) == 0){\n $this->loadSubModules();\n }\n return $this->SubModules;\n}", "public abstract function FetchObject();", "function dumpobject( $thing, $line, $comment=True )\r\n{\r\n if ( isset ( $thing ) ) {\r\n if ( $comment ) {\r\n echo \"<!--\\n\";\r\n } else {\r\n echo \"<pre>\\n\";\r\n }\r\n\r\n echo \"dumpobject() called at\\n\" .\r\n $_SERVER['PHP_SELF'] . \": $line \\n\";\r\n\r\n print_r ($thing);\r\n echo \"\\n\";\r\n\r\n if ( $comment ) {\r\n echo \"-->\\n\";\r\n } else {\r\n echo \"</pre>\\n\";\r\n }\r\n }\r\n}", "function LogModuleCall($module, $action, $request, $response, $processedData, $replaceVars)\n{\n // STUB\n}", "public function access();", "function getContentObject() ;", "public function aObjeto() {\t}", "function loadModletList($module) {\n\n\t//find our object modules if that hasn't been done already for this object type\n\tif (!$_SESSION[\"siteModletList\"][$module] || defined(\"DEV_MODE\")) {\n\n\t \t$siteModList = $_SESSION[\"siteModList\"];\n\t \t$modletArr = array();\n \n\t \t//get the keys of all modules that are objects\n\t \tif (!is_array($siteModList[\"modlet\"])) return false;\n\n\t \t$fields = array_keys($_SESSION[\"siteModList\"]);\n\n\t \t//get all our modlet modules with entries\n\t \t$modletCheck = arrayReduce($siteModList[\"modlet\"]);\n\t \t\n\t \t$num = count($siteModList[\"link_name\"]);\n\t \tfor ($i=0;$i<$num;$i++) {\n\t \t\n\t \t $modlet = $siteModList[\"modlet\"][$i];\n $permError = null;\n \n\t \t //stop here if there is no modlet entry\n\t \t if (!is_array($modlet)) continue;\n\n //if our current module is a modlet for the passed module, store it's info\n if (in_array($module,$modlet)) {\n\n //process our module permissions\n $arr = checkModPerm($siteModList[\"link_name\"][$i],BITSET);\n\n if (is_array($arr)) extract($arr);\n if ($permError) continue;\n \n foreach ($fields AS $field) {\n $modletArr[$field][] = $siteModList[$field][$i];\n }\n }\n\t \t\n\t \t}\n\t \t\n\t\t//so they are displayed in the proper order\n\t\tif (is_array($modletArr[\"modlet_sort\"])) $modletArr = arrayMultiSort($modletArr,\"module_sort\");\n else $modletArr = arrayMultiSort($modletArr,\"module_name\");\n \n\t\t$_SESSION[\"siteModletList\"][$module] = $modletArr;\n\n\t}\n\n\treturn $_SESSION[\"siteModletList\"][$module];\n\n}", "public function _setupObjects()\n {\n if ((count ($this -> _mXoopsModules) == 0) && $handler = opendir (XOOPS_MODULE_PATH)) {\n while (($dir = readdir($handler)) !== false) {\n if (!in_array ($dir, $this -> _mExclusions, true) && is_dir(XOOPS_MODULE_PATH . '/' . $dir)) {\n $module =& $this->get($dir);\n if ($module !== false) {\n $this->_mXoopsModules[] =& $module;\n }\n unset($module);\n }\n }\n }\n }", "public static function RTEgetObj() {}", "function import_STE()\n{\n}", "function getObjectives() {\n return Engine::send('getObjectives');\n}", "public function operations();", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "function handlerFunction($module, $obj, $URI_function){\n //debugECHO($URI_function);\n $functions = simplexml_load_file(MODULES_PATH . $module . \"/resources/functions.xml\");\n $exist=false;\n\n foreach($functions->function as $function){\n if(($URI_function === (String)$function->uri)){\n $exist=true;\n $event=(String)$function->name;\n //debugECHO($event);\n break;\n }//enf if\n\n }//End foreach\n\n if(!$exist){\n //debugECHO(\"entra al exists false\");\n showErrorPage(4,\"\",'HTTP/1.0 400 Bad Request', 400);\n }else{\n //debugECHO($event);\n call_user_func(array($obj,$event));\n }\n}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function fullTransform($object)\n {\n if (!($object instanceof Module)) {\n throw new PhotonException('NOT_INSTANCE_OF_MODULE', ['given' => get_class($object), 'expected' => '\\Photon\\PhotonCms\\Core\\Entities\\Module\\Module']);\n }\n\n return [\n 'id' => ($object->id !== null) ? (int) $object->id : $object->id,\n 'category' => ($object->category !== null) ? (int) $object->category : $object->category,\n 'type' => $object->type,\n 'name' => $object->name,\n 'model_name' => $object->model_name,\n 'table_name' => $object->table_name,\n 'anchor_text' => $object->anchor_text,\n 'anchor_html' => $object->anchor_html,\n 'slug' => $object->slug,\n 'icon' => $object->icon,\n 'created_at' => $object->created_at,\n 'updated_at' => $object->updated_at,\n 'lazy_loading' => (bool) $object->lazy_loading,\n 'reporting' => (int) $object->reporting,\n 'max_depth' => ($object->max_depth !== null) ? (int) $object->max_depth : $object->max_depth,\n ];\n }", "function yy_r17(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }", "public function __CONSTRUCT(){\n\t}", "function processDataAccessObjectInfo( $moduleID ) \n {\n \n $pathToCodeTemplates = $this->values[ ModuleCreator::KEY_PATH_RAD_ROOT ];\n $pathToCodeTemplates .= 'data/code/';\n \n $codeTemplate = new Template( $pathToCodeTemplates );\n \n // open include file to include any created objects\n $includeFileName = $this->values[ ModuleCreator::KEY_PATH_INCLUDE_NAME ];\n $includeFileContents = file_get_contents( $includeFileName );\n \n /* \n * Begin by modifying the tool_setup file\n */\n \n // open tool_setup file\n $setupFileName = $this->values[ ModuleCreator::KEY_PATH_SETUP_NAME ];\n $setupFileContents = file_get_contents( $setupFileName );\n \n // get daObjList object\n $daObjList = new DAObjList( $moduleID );\n \n // for each daObj object\n $daObjList->setFirst();\n while( $daObj = $daObjList->getNext() ) {\n \n // if object not created then\n if (!$daObj->isCreated()) {\n \n $docTableName = ucwords($daObj->getName());\n $docTableDescription = $daObj->getDescription() . \"\\n\";\n $docFieldList = '';\n \n $sqlManagerName = $docTableName;\n $sqlFieldList = '';\n $sqlPrimaryKey = '';\n $fieldLabels = '';\n $tableManagerFieldList = '';\n $primaryKeyFieldName = '';\n $listInitFields = array();\n $labelFieldName = '';\n \n $fieldList = $daObj->getFieldList();\n \n $fieldList->setFirst();\n while ( $field = $fieldList->getNext() ) {\n \n // compile documentation entries\n $docFieldList .= ' * '.$field->getName().' ['.$field->getType().'] '.$field->getDescription().\"\\n\";\n \n // compile sql field(s) \n $sqlFieldList .= $this->getSQLFieldEntry( $field );\n \n if ($field->isPrimaryKey()) {\n $sqlPrimaryKey = ' PRIMARY KEY ('.$field->getName() .\")\\n\";\n $primaryKeyFieldName = $field->getName();\n }\n \n \n // Collect Field Label info\n $fieldLabels .= $this->getFieldLabels( $field );\n \n // collect TableManager field list\n if ($tableManagerFieldList != '') {\n $tableManagerFieldList .= ',';\n }\n $tableManagerFieldList .= $field->getName();\n \n // collect names of any fields used to init the list\n if ( $field->isListInit() ) {\n $listInitFields[] = $field;\n }\n \n // store the field name used for labels display(s)\n // (like Form Grid Rows, or Drop List Labels, etc...)\n if ( $field->isLabelName() ) {\n $labelFieldName = $field->getName();\n }\n \n } // next Field Entry\n \n // combine sqlFieldList with sqlPrimaryKey\n $sqlFieldList .= $sqlPrimaryKey;\n\n $codeTemplate->set( 'tableName' , $docTableName);\n $codeTemplate->set( 'tableDescription', $docTableDescription);\n $codeTemplate->set( 'fieldList', $docFieldList );\n \n $codeTemplate->set( 'tableNameCap', $sqlManagerName );\n $codeTemplate->set( 'dbFieldList', $sqlFieldList );\n \n $setupCode = $codeTemplate->fetch( 'setup_dbTable.php' );\n//echo $setupCode;\n//exit;\n\n \n // insert sql setup code \n $tag = ModuleCreator::TAG_TOOL_DAOBJ_TABLE;\n $data = $setupCode.\"\\n\\n\\n\\n\".$tag;\n $setupFileContents = str_replace($tag, $data, $setupFileContents );\n \n // insert field labels \n $tag = ModuleCreator::TAG_TOOL_FIELDS_LABEL;\n $data = \" //\\n // \".$daObj->getName().\" table\\n //\\n\".$fieldLabels.\"\\n\\n\".$tag;\n $setupFileContents = str_replace($tag, $data, $setupFileContents );\n \n // Now create new Table manager Object\n $tableManagerName = $this->createTableManagerObject( $daObj, $tableManagerFieldList, $primaryKeyFieldName, $labelFieldName, $docFieldList, $sqlFieldList);\n \n // Now create new List Manager Object\n// $listIteratorName = $this->createListIteratorObject( $daObj, $listInitFields );\n \n // Now insert new objects into include file\n $tag = ModuleCreator::TAG_INCLUDE_DA;\n $data = \"require_once( '\".ModuleCreator::PATH_OBJECT_DA.$tableManagerName.\"' );\\n\";\n// $data .= \"require_once( '\".ModuleCreator::PATH_OBJECT_DA.$listIteratorName.\"' );\\n\";\n $data .= $tag;\n $includeFileContents = str_replace($tag, $data, $includeFileContents );\n \n // Now mark this Data Access Object as having been created.\n $daObj->setCreated();\n \n } // end if !created\n \n } // next object\n \n \n // save Setup file contents\n file_put_contents( $setupFileName, $setupFileContents);\n \n \n // save Include File Contents\n file_put_contents( $includeFileName, $includeFileContents);\n \n }", "function repositoryCustom()\n {\n }", "#[Pure]\nfunction spl_object_hash(object $object): string {}", "function Page_Rank_Constant_State(array $t_args)\n{\n $className = $t_args['className'];\n?>\nusing namespace arma;\nusing namespace std;\n\nclass <?=$className?>ConstantState {\n private:\n // The current iteration.\n int iteration;\n\n // The number of distinct nodes in the graph.\n long num_nodes;\n\n wall_clock timer;\n\n public:\n friend class <?=$className?>;\n\n <?=$className?>ConstantState()\n : iteration(0),\n num_nodes(0) {\n timer.tic();\n }\n};\n\n<?\n return [\n 'kind' => 'RESOURCE',\n 'name' => $className . 'ConstantState',\n ];\n}", "function handlerModule($URI_module, $URI_function){\n\n $modules=simplexml_load_file('resources/modules.xml');\n $exist=false;\n\n foreach($modules->module as $module){\n\n if(($URI_module===(String)$module->uri)){\n $exist=true;\n\n $path=MODULES_PATH . $URI_module.\"/controller/controller_\". $URI_module. \".class.php\";\n //debugECHO($path);\n\n if(file_exists($path)){\n //debugECHO(\"Estic al if\");\n\n require($path);\n $controllerClass=\"controller_\". $URI_module;\n //debugECHO($controllerClass);\n\n $obj = new $controllerClass;\n\n\n }else{\n //debugECHO(\"Estic al else\");\n showErrorPage(4,\"\",'HTTP/1.0 400 Bad Request', 400);\n }\n handlerfunction(((String)$module->name), $obj, $URI_function);\n break;\n }\n\n }//end foreach\n\n if(!$exist){\n //debugECHO(\"Estic al !exist\");\n showErrorPage(4,\"\",'HTTP/1.0 400 Bad Request', 400);\n\n }//End of if exist\n\n}", "public function fetchObject();", "public function fetchObject();", "public function fullTransformConverted($object)\n {\n if (!($object instanceof Module)) {\n throw new PhotonException('NOT_INSTANCE_OF_MODULE', ['given' => get_class($object), 'expected' => '\\Photon\\PhotonCms\\Core\\Entities\\Module\\Module']);\n }\n \n $objectArray = [\n 'id' => ($object->id !== null) ? (int) $object->id : $object->id,\n 'category' => ($object->category !== null) ? (int) $object->category : $object->category,\n 'type' => $object->type,\n 'name' => $object->name,\n 'model_name' => $object->model_name,\n 'table_name' => $object->table_name,\n 'anchor_text' => $object->anchor_text,\n 'anchor_html' => $object->anchor_html,\n 'slug' => $object->slug,\n 'icon' => $object->icon,\n 'created_at' => $object->created_at,\n 'updated_at' => $object->updated_at,\n 'lazy_loading' => (bool) $object->lazy_loading,\n 'reporting' => (bool) $object->reporting,\n 'max_depth' => ($object->max_depth !== null) ? (int) $object->max_depth : $object->max_depth,\n ];\n\n $this->transformGenericObjects($objectArray);\n\n return $objectArray;\n }", "function objectAndClass(object|ClassName $var) {}", "function tidy_get_output(tidy $object) {}", "public function getModuleManager();", "public function otherObject(){\n\t\t//Ex : tableau\n\t\t\n\t}", "function &stdClass(stdClass $value, string $namespace = 'default'): stdClass\n{\n $var = new Variable\\StdClassVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "public static function get_module_returns() {\n return glueserver_module::get_class_structure();\n }", "function resolve(){\n $module = ucwords($_GET['module']);\n $controller = ucwords($_GET['controller']);//UsuarioController.php\n $function = ucwords($_GET['function']);\n // Modulo = carpeta\n // Controller = archivo\n // Funcion = metodo del controlador\n\n //La funcion is_dir valida si existe un determinado directorio en la ruta especificada\n if (is_dir(\"../controller/$module\")) {\n \n //La funcion file_exists valida si determinado archivo existe en la ruta especificada\n if (file_exists(\"../controller/$module/\".$controller.\"Controller.php\")) {\n\n //Importacion del controlador\n include_once \"../controller/$module/\".$controller.\"Controller.php\";\n //Asignacion al nombre de la clase\n $nameClass = $controller.\"Controller\";\n //Objeto que instacia la clase\n $object = new $nameClass;\n\n //Funcion que valida si existe una funcion\n if (method_exists( $object, $function )) {\n //Se invoca la funcion\n $object->$function();\n\n } else {\n\n echo \"La funcion especificada no Existe!\";\n \n }\n\n } else {\n \n echo \"El controlador especificado no Existe!\";\n \n }\n \n } else {\n\n echo \"El modulo especificado no Existe!\";\n \n }\n}", "public function getRequestableModule();", "public function getObjectManager() {}", "public function GetMethod ();", "abstract public function repository();", "public function core();", "function get_dependencies();", "public function getFileProcObj() {}", "public function getFileProcObj() {}" ]
[ "0.5870213", "0.57042986", "0.5509055", "0.5509055", "0.54634637", "0.5437314", "0.531605", "0.5279412", "0.527066", "0.51980036", "0.51980036", "0.51730275", "0.5148099", "0.5103402", "0.5103402", "0.5008957", "0.49985433", "0.49985433", "0.49906066", "0.49351576", "0.4931591", "0.49097013", "0.49097013", "0.49097013", "0.49097013", "0.49089918", "0.49062064", "0.4904553", "0.48843718", "0.48835757", "0.4882943", "0.48817274", "0.48817274", "0.48754168", "0.48732808", "0.48558068", "0.4854889", "0.4853749", "0.48508564", "0.48313093", "0.48237243", "0.48151505", "0.4813234", "0.48045823", "0.48041102", "0.4785729", "0.47822887", "0.47804227", "0.4780106", "0.4776961", "0.47758162", "0.4775477", "0.47740674", "0.47727588", "0.47694507", "0.47692025", "0.476835", "0.4762808", "0.47548813", "0.4752624", "0.47510266", "0.4749567", "0.4749567", "0.4749567", "0.4748316", "0.47478974", "0.47478974", "0.47478974", "0.47478974", "0.47478974", "0.47478974", "0.47478974", "0.47478974", "0.47478974", "0.47432223", "0.47394955", "0.47351798", "0.47321963", "0.47309923", "0.47308797", "0.4724663", "0.472434", "0.47223902", "0.47223902", "0.47171113", "0.4716928", "0.47067666", "0.4704691", "0.46956477", "0.4692352", "0.4684046", "0.46790326", "0.46723723", "0.467199", "0.46670306", "0.46666446", "0.4662287", "0.4654832", "0.46537763", "0.4653071" ]
0.4906437
26
Display a listing of the resource.
public function index() { if(\Request::ajax()){ $storages=Storage::where('type_storage_id','=', 2)->get(); return view('agencies.index', compact('storages')); }else{ return Redirect::to('home'); } }
{ "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
Show the form for creating a new resource.
public function create() { if(\Request::ajax()){ $bank=Bank::where('status',1)->pluck('name_bank','id'); $val=2; $country=Country::pluck('name_country','id'); $code=TelephoneOperator::pluck('code','id'); return view('agencies.create',compact('bank','country','code','val')); }else{ return Redirect::to('home'); } }
{ "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 return view('Form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.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 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('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 create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\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 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 }" ]
[ "0.75934863", "0.75934863", "0.7587591", "0.75782615", "0.75711566", "0.74992937", "0.74349296", "0.7432467", "0.7387912", "0.7351958", "0.73380226", "0.73111826", "0.72957826", "0.72812104", "0.72734547", "0.7242778", "0.72294843", "0.7225723", "0.718609", "0.71780044", "0.7173978", "0.71492267", "0.71434265", "0.7143343", "0.71356934", "0.7127626", "0.7122704", "0.71151215", "0.71151215", "0.71151215", "0.711137", "0.7093674", "0.708441", "0.70805633", "0.7079313", "0.70560336", "0.70560336", "0.705535", "0.7038748", "0.7038717", "0.70355713", "0.7033314", "0.70298624", "0.70262384", "0.7025372", "0.70192045", "0.7017566", "0.70037806", "0.70029014", "0.69999987", "0.6995955", "0.6994461", "0.69932437", "0.698907", "0.6985915", "0.69654584", "0.69652516", "0.6956021", "0.6951258", "0.6950627", "0.69471824", "0.69432425", "0.6941303", "0.69406337", "0.6937103", "0.6937103", "0.69363457", "0.6934366", "0.6931313", "0.6927307", "0.6926027", "0.6922591", "0.69176334", "0.69158953", "0.6911744", "0.6910005", "0.6909594", "0.6907657", "0.6902698", "0.6900764", "0.69007087", "0.6900391", "0.68942374", "0.68933", "0.68929493", "0.68912417", "0.68912417", "0.68911326", "0.6888626", "0.6887399", "0.68857414", "0.6884495", "0.6881287", "0.6878567", "0.6875623", "0.687334", "0.68722713", "0.6870009", "0.68697596", "0.6869062", "0.6868769" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
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) { if(\Request::ajax()){ $agency=Storage::find($id); $val=2; return view('agencies.edit',compact('agency','val')); }else{ return Redirect::to('home'); } }
{ "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(Form $form)\n {\n //\n }", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function 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() {\n return view('routes::edit');\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function 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 editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit($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(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\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 edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "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.7855416", "0.769519", "0.72748375", "0.724256", "0.7173659", "0.7064689", "0.70549816", "0.6985127", "0.6949479", "0.69474626", "0.694228", "0.6929372", "0.6903047", "0.6899655", "0.6899655", "0.688039", "0.68649715", "0.68618995", "0.68586665", "0.68477386", "0.68366665", "0.6812782", "0.6807947", "0.68078786", "0.6803727", "0.6796845", "0.67935634", "0.67935634", "0.67894953", "0.67862976", "0.67815566", "0.6777874", "0.67700446", "0.6764179", "0.6747784", "0.6747784", "0.67476946", "0.6746584", "0.67417157", "0.67370653", "0.6727131", "0.6714694", "0.66953164", "0.6693583", "0.6690321", "0.66898996", "0.6689058", "0.66865313", "0.6684526", "0.66717213", "0.6670211", "0.6666833", "0.6666833", "0.66633433", "0.6663041", "0.6661699", "0.6658396", "0.6657984", "0.665473", "0.6644314", "0.66343915", "0.6633082", "0.6629606", "0.6629606", "0.6620677", "0.6620635", "0.66180485", "0.66171867", "0.6612161", "0.6610249", "0.660762", "0.6597593", "0.6596027", "0.6595597", "0.65925545", "0.65920216", "0.65896076", "0.65822965", "0.6581996", "0.65817595", "0.65770084", "0.65768373", "0.6575926", "0.65713066", "0.6569505", "0.656938", "0.65680295", "0.65636957", "0.65636957", "0.65624565", "0.65597314", "0.6559697", "0.65576696", "0.65573514", "0.65564495", "0.6556307", "0.655628", "0.65558994", "0.6549784", "0.6549675", "0.65461886" ]
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 }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update($id);", "public function update($id);", "public function put($path, $data = null);", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7423347", "0.70622426", "0.70568657", "0.6896551", "0.65835553", "0.64519453", "0.6348333", "0.6212436", "0.61450946", "0.6122591", "0.6114199", "0.6101911", "0.60876113", "0.60528636", "0.60177964", "0.6006609", "0.59725446", "0.594558", "0.59395295", "0.5938792", "0.5893703", "0.5862337", "0.58523124", "0.58523124", "0.5851579", "0.5815571", "0.58067423", "0.5750728", "0.5750728", "0.5736541", "0.5723664", "0.5715135", "0.56949675", "0.5691129", "0.56882757", "0.5669375", "0.5655524", "0.56517446", "0.5647158", "0.5636521", "0.563466", "0.5632965", "0.56322825", "0.56291395", "0.56202215", "0.56087196", "0.56020856", "0.5591966", "0.5581127", "0.5581055", "0.558085", "0.5575458", "0.55706805", "0.55670804", "0.55629116", "0.5562565", "0.5558853", "0.5558505", "0.5558505", "0.5558505", "0.5558505", "0.5558505", "0.555572", "0.5555007", "0.5553948", "0.5553837", "0.5553147", "0.55429846", "0.5541925", "0.5540208", "0.5539145", "0.5536157", "0.55350804", "0.5534241", "0.5523782", "0.5518406", "0.55147856", "0.5513397", "0.550961", "0.55072165", "0.55067354", "0.5503418", "0.5501671", "0.55010796", "0.54998124", "0.5497327", "0.54942787", "0.54942036", "0.54942036", "0.54935455", "0.549267", "0.5491964", "0.5489983", "0.54833627", "0.54794145", "0.5478835", "0.5478348", "0.5465178", "0.54648995", "0.54607797", "0.54571307" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "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
Initializes internal state of \Base\FPartenaireQuery object.
public function __construct($dbName = 'appliaviaco', $modelName = '\\FPartenaire', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initQuery()\n {\n $this->_lastSql = null;\n $this->_limit = null;\n $this->_offset = null;\n $this->_order = array();\n $this->_group = array();\n $this->_table = null;\n $this->_stmt = null;\n\n $this->fromStates = array();\n $this->selectFields = array();\n $this->whereStates = array();\n $this->havingStates = array();\n $this->values = array();\n $this->joinStates = array();\n }", "abstract protected function initQuery(): void;", "private function initQuery()\n {\n // reset\n $this->result = false;\n \n $this->errorCode = 0;\n $this->errorMessage = '';\n }", "public function __construct(QueryFactory $entity_query) {\n $this->entityQuery = $entity_query;\n }", "public function __construct()\n {\n parent::__construct();\n $this->query = new Query();\n }", "public function __construct()\n {\n $this->sql_query = SQL_Query::getInstance();\n }", "public function __construct()\n {\n $this->select = new Query_Select();\n $this->from = new Query_From();\n $this->where = new Query_Where();\n }", "abstract protected function initQuery(Query $query): Query;", "function __construct ( $query )\n\t{\n\t\t$this->reset($query) ;\n\t}", "protected function initialize()\n {\n if (!is_array($this->rows)) {\n $this->rows = $this->query->getResult();\n }\n }", "protected function set_up()\n {\n $this->query = new Zend_Dom_Query();\n }", "public function __construct() {\n\t\t\t$this->dbConnection = new dbConnection();\n\t\t\t$this->query = new query();\n\t\t}", "public function __construct()\n {\n $this->query = 'poems';\n }", "public function __construct($query = NULL) {\n\n $this->query = (array) $query;\n\n if (!empty($this->query) && !$this->get('noquery')) {\n $this->processObject();\n }\n }", "public function initialize()\n {\n $this->_db = new Fplanillassal();\n }", "public function __construct() {\n\n $this->_queries = new queries();\n $this->_pagination = new PagePagination();\n }", "public function __construct($query)\n\t{\n $this->query = $query;\n }", "public function __construct($query=''){\n\t\tparent::__construct($query); // Execute partent construction\n\t\t$this->_synth_start_url($query);\n\t\t$this->SOLR = new solrSubmit(); // submit connector\n\t\t\n\t\t// perform some initialization actions here\t\n\t}", "public function __construct(QueryFactory $query_factory) {\n $this->queryFactory = $query_factory;\n }", "public function __construct(QueryFactory $query_factory) {\n $this->entityQueryFactory = $query_factory;\n }", "private function __construct(Query_Result $queryResult)\n {\n $this->_queryResult = $queryResult;\n }", "public function __construct()\n {\n parent::__construct();\n $this->query = $this->createQuery();\n $this->timezone = date_default_timezone_get();\n }", "public function __construct() { \n\t\t$this->Connection = new RDataConnection();\t// connection object\n\t\t$this->buildQuery = array(\n\t\t\t'query' \t=> array(),\n\t\t\t'select' \t=> array(),\n\t\t\t'where' \t=> array(),\n\t\t\t'insert' \t=> array(),\n\t\t\t'update' \t=> array(),\n\t\t\t'join' \t=> array(),\n\t\t\t'orderBy' \t=> array(),\n\t\t\t'limit'\t\t=> array(),\n\t\t\t'groupBy' \t=> array(),\n\t\t\t'having' \t=> array(),\n\t\t\t'from' \t=> array(),\n\t\t\t'delete' \t=> array()\n\t );\t\t\t\t\t\t\t \n\t\t$this->params = array();\t\n\t\t$this->types = array();\t\t\n\t\t$this->customQuery = array();\t\n\t\t$this->customParams = array();\t\n\t\t$this->customTypes = array();\t\n\t\t$this->addFoundRows = false;\t\n\t\t$this->queryType = self::SELECT;\n\t\tself::$inputIdx = 0;\n\t\t//$this->debug = (defined('DEV_MODE') && constant('DEV_MODE') === true); \n\t\t$this->debug = isDevMode(); \n\t\t\t\n\t\t// init connection\n\t\t//$this->Connection->Connect(CONNECTION_TYPE,DATABASE_USERNAME,DATABASE_PASSWORD,DATABASE_NAME,DATABASE_HOST,DATABASE_PORT);\n\t\t$this->Connection->Connect('mysql',DATABASE_USERNAME,DATABASE_PASSWORD,DATABASE_NAME,DATABASE_HOST,DATABASE_PORT);\n\t}", "public function __construct($query = '')\n {\n }", "public function __construct(Query $query)\n {\n $this->query = $query;\n }", "public function __construct($sQuery)\n\t{\n\t\t$this->aParameters['q'] = $sQuery;\n\t}", "public function __construct(QueryFactory $entity_query, PredictionSettingsPluginManager $prediction_output_manager) {\n $this->entityQuery = $entity_query;\n $this->time = time();\n $this->predictionOutputManager = $prediction_output_manager;\n }", "private function init()\n {\n // #41776, dwildt, 1-\n// $this->pObj->objFltr3x->get_tableFields( );\n // #52486, 131005, dwildt, 2+\n // Init radialsearch filter and object\n $this->init_radialsearch();\n\n // RETURN: if there isn't any filter array\n if ( !$this->init_boolIsFilter() )\n {\n return;\n }\n // RETURN: if there isn't any filter array\n // Evaluate TREEVIEW filter\n // #41753, 121012, dwildt, 1+\n $this->eval_treeview();\n\n // #41776, dwildt, 2+\n // Set the array consolidation and the ts property SELECT\n $this->init_consolidationAndSelect();\n\n // Init localisation\n $this->init_localisation();\n\n // Init calendar area\n $this->init_calendarArea();\n\n // Init class var $andWhereFilter\n $this->init_andWhereFilter();\n\n // Set class var markerArray\n $this->set_markerArray();\n\n // Init the data of the cObj\n $this->cObjData_init();\n\n return;\n }", "function __construct()\n\t{\n\t\t$error = 0;\t\n\t\t$dbresult = false;\n\t\t$this->fields = array();\n\t\t$this->tables = array();\n\t\t$this->filters = \"\";\n\t\t$this->groupby = array();\t\t\n\t\t$this->having = \"\";\n\t\t$this->sortfields = array();\n\t\t$this->limit = \"\";\n\t\t$this->values = array();\t\t\n\t}", "public function __construct(ProcurementEloquentBuilder $query) {\n $this->query = $query;\n }", "function __construct()\n {\n //will need to call parent::query($query)\n parent::__construct(self::hn, self::un, self::pw, self::db);\n }", "public function __construct()\n {\n global $wpdb;\n $this->wpdb = $wpdb;\n // index 0 is null, to make results start at 1.\n $this->results = [null];\n }", "protected function init()\r\n {\r\n parent::init();\r\n\r\n foreach ($this->options as $name => $value) {\r\n switch ($name) {\r\n case 'query':\r\n if (!is_array($value)) {\r\n $value = array(array('query' => $value));\r\n }\r\n $this->addQueries($value);\r\n break;\r\n }\r\n }\r\n }", "public function __construct(QueryFactory $entity_query, EntityManagerInterface $entity_manager) {\n $this->entityQuery = $entity_query;\n $this->entityManager = $entity_manager;\n }", "public function __construct(AbstractQuery $query, ParserResult $parserResult, array $queryComponents);", "public function __construct() {\n $this->db = \\Config\\Database::connect();\n // Wir verwenden die Query Builder Klasse über table()\n $this->reiter = $this->db->table('Reiter');\n }", "private function _init( $query )\n {\n # Connect to database\n $params = $this->parameters;\n\n if(!$this->getConnectionStatus()) { $this->connectToDb(); }\n try {\n # Prepare query\n $this->doQuery = $this->pdo->prepare( $query );\n\n # Bind parameters\n $this->bindParams( $params );\n # Execute SQL\n $this->doQuery->execute();\n }\n catch(\\PDOException $e)\n {\n # Exception\n }\n # Reset the parameters array\n $this->parameters = array();\n }", "public function init_save_queries()\n {\n }", "public function __construct(\\morph\\Query $query)\n {\n $this->query = $query;\n $this->constraints = array();\n }", "protected function finalizeQueryObject() {\n // Inject the meta and tax query\n if (count($this->metaQuery) > 1) {\n $this->getContext('query')->set('meta_query', $this->metaQuery);\n }\n\n // Inject the tax and tax query\n if (count($this->taxQuery) > 1) {\n $this->getContext('query')->set('tax_query', $this->taxQuery);\n }\n\n // Refresh the query object\n $this->getContext('query')->query($this->getContext('query')->query_vars);\n\n // Custom data attributes for helping\n // with fancy pagination\n $this->addData('max-pagination', $this->getContext('query')->max_num_pages);\n $this->addData('current-page', max(1, $this->getContext('query')->query_vars['paged']));\n\n // Mark as last page\n if ($this->getData('max-pagination') == $this->getData('current-page')) {\n $this->addContext('lastpage', true);\n }\n\n return $this;\n }", "public function initialize() {\n\t\t# Create structure\n\t\t$parentResult =& $this->getParentResult();\n\t\t# Creating array structures!\n\t\t$parentResult[$this->getTagName()] =& $this->getResult();\n\t}", "public function init(Builder $queryBuilder);", "public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }", "function readQuery() {\n\t\t$this->FiscaalGroepID = $this->queryHelper(\"FiscaalGroepID\", 0);\n\t\t$this->FiscaalGroupType = $this->queryHelper(\"FiscaalGroupType\", 0);\n\t\t$this->GewijzigdDoor = $this->queryHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->queryHelper(\"GewijzigdOp\", \"\");\n\t}", "public function newQuery()\n {\n return new self($this->connection, $this->processor);\n }", "public function initializeObject()\n {\n $this->defaultQuerySettings = $this->objectManager->get(Typo3QuerySettings::class);\n $this->defaultQuerySettings->setRespectStoragePage(false);\n }", "abstract public function newQuery();", "public function initialize(){\n\t\t $db_params = OpenContext_OCConfig::get_db_config();\n\t\t $db = new Zend_Db_Adapter_Pdo_Mysql($db_params);\n\t\t $db->getConnection();\n\t\t $this->setUTFconnection($db);\n\t\t $this->db = $db;\n\t\t $this->checkTableIndex();\n\t\t $this->solrDocArray = false;\n\t\t $this->toDoList = false;\n\t\t $this->toDoCount = 0;\n\t\t $this->errors = array();\n\t\t $this->totalIndexed = 0;\n }", "public function _query()\n {\n }", "public function init()\n {\n $this->logger = GeneralUtility::makeInstance(Logger::class);\n\n $sqlQuerySettings = $this->filterConfig->getSettings('optionsSqlQuery');\n\n foreach ($sqlQuerySettings as $type => $part) {\n if (!is_array($part)) {\n $sqlQuerySettings[$type] = trim($part);\n }\n }\n\n $fromPart = trim(RenderValue::stdWrapIfPlainArray($sqlQuerySettings['from']));\n $items = GeneralUtility::trimExplode(' ', $fromPart);\n\n Assert::isInRange(count($items), 1 ,2 , ['message' => 'baseFromClause of Backend in TS has not the correct values! This should be table name and optional alias added by space! 1280234420']);\n\n $fromTable= trim($items[0]);\n $fromAlias = $items[1] ?? null;\n\n /** @var Connection $connection */\n $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($fromTable);\n $this->queryBuilder = $connection->createQueryBuilder();\n\n if ($sqlQuerySettings['select']) {\n $this->queryBuilder->selectLiteral(RenderValue::stdWrapIfPlainArray($sqlQuerySettings['select']));\n }\n $this->queryBuilder->from($fromTable, $fromAlias);\n\n if ($sqlQuerySettings['join']) {\n foreach ($sqlQuerySettings['join'] as $joinPart) {\n $joinFromAlias = trim($joinPart['fromAlias']);\n $joinTable = trim($joinPart['table']);\n $joinAlias = trim($joinPart['alias']) ?: trim($joinPart['table']);\n $joinOn = trim($joinPart['on']);\n $joinMethod = (strtolower(trim($joinPart['type'])) ?: 'inner') . 'Join';\n $this->queryBuilder->$joinMethod($joinFromAlias, $joinTable, $joinAlias, $joinOn);\n }\n }\n\n\n if ($sqlQuerySettings['where']) {\n $this->queryBuilder->where(RenderValue::stdWrapIfPlainArray($sqlQuerySettings['where']));\n }\n\n if ($sqlQuerySettings['orderBy']) {\n $items = GeneralUtility::trimExplode(' ', $sqlQuerySettings['orderBy']);\n $this->queryBuilder->orderBy($items[0], $items[1] ?? '');\n\n }\n if ($sqlQuerySettings['groupBy']) {\n $this->queryBuilder->groupBy(RenderValue::stdWrapIfPlainArray($sqlQuerySettings['groupBy']));\n }\n if ($sqlQuerySettings['limit']) {\n $items = GeneralUtility::trimExplode(',', RenderValue::stdWrapIfPlainArray($sqlQuerySettings['limit']));\n if ($items > 1) {\n $this->queryBuilder->setFirstResult($items[0]);\n $this->queryBuilder->setMaxResults($items[1]);\n } else {\n $this->queryBuilder->setMaxResults($items[0]);\n }\n }\n\n $this->filterField = trim($this->filterConfig->getSettings('filterField'));\n $this->displayFields = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::trimExplode(',', $this->filterConfig->getSettings('displayFields'));\n\n Assert::isNotEmptyString($this->filterField, ['info' => 'No filter field is given for filter ' . $this->filterConfig->getFilterIdentifier() . ' 1315221957']);\n Assert::isNotEmptyString($sqlQuerySettings['select'], ['info' => 'No Select part is given for filter ' . $this->filterConfig->getFilterIdentifier() . ' 1315221958']);\n Assert::isNotEmptyString($sqlQuerySettings['from'], ['info' => 'No from part is given for filter ' . $this->filterConfig->getFilterIdentifier() . ' 1315221959']);\n }", "public function initializeObject() {\n\t\t$this->defaultQuerySettings = $this->objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\Typo3QuerySettings');\n\t\t$this->defaultQuerySettings->setRespectStoragePage(FALSE);\n\t}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "protected function setUp() {\n\t\t$this->object = QuerySubCondition::create();\n\t}", "public function __construct() {\n\t\t$this->answers = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\n\t\t$this->columns = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\n\t\t$this->subquestions = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\n\t\t$this->sublines = new Tx_Extbase_Persistence_ObjectStorage();\n\t}", "private function makeQuery(){\n\t\t\n\t\t$this->searchQ['select'] = array('l.name','l.summary','l.sum_approach','l.sum_problems','l.address_line_1','l.address_line_2','l.town','l.county','l.postcode','l.country','l.phone','l.latitude','l.longitude','l.publish_address','l.publish_phone','l.approved','p.uri','p.urlname','e.level','y.listing_type');\n\t\t$this->searchQ['select'][] = '(SELECT i.image FROM listing_images i WHERE l.listing_id=i.listing_id ORDER BY i.sort_order ASC LIMIT 1) AS image';\n\t\t$this->searchQ['from'] = 'listing_level e, listing_type y, pages p, listing l '; //should always be the same...\n\t\t$this->searchQ['where'] = array('e.level_id = l.level_id','y.listing_type_id = l.listing_type_id','l.page_id = p.page_id','l.publish = 1');//,'p.publish = 1');\n\t\t\n\t\t// set up the initial search variables\t\t\n\t\t//! location\n\t\tif( strlen($this->vars['location']) ){\n\t\t\n\t\t\t$this->Geocode = new Geolocation( $this->vars['location']. ', UK' );\n\t\t\t$this->Geocode->lookup();\n\t\t\t// using the OS grid as makes calculation simpler than using lng/lat - can use simple pythag rather than calculus functions\n\t\t\t// we shorten the list of rows needing the calculation by the greater / less than in the where\n\t\t\t\n\t\t\t$calculation = ' SQRT(POW(( l.easting - ' . round($this->Geocode->getOSEast()) . '),2) + POW((l.northing - ' . round($this->Geocode->getOSNorth()) . '),2)) ';\n\t\t\t$this->searchQ['select'][] = $calculation . \" AS distance\";\n\t\t\t$this->searchQ['where'][] = \"northing < \" . round( $this->Geocode->getOSNorth() + $this->searchDistance ) ; \n\t\t\t$this->searchQ['where'][] = \"northing > \" . round( $this->Geocode->getOSNorth() - $this->searchDistance ) ;\n\t\t\t$this->searchQ['where'][] = \"easting < \" . round( $this->Geocode->getOSEast() + $this->searchDistance ) ;\n\t\t\t$this->searchQ['where'][] = \"easting > \" . round( $this->Geocode->getOSEast() - $this->searchDistance ) ;\n\t\t//\t$this->searchQ['where'][] = \"(\" . $calculation . \") <= \" . $this->searchDistance ;\n\t\t// use having rather than where\n\t\t\t$this->searchQ['having'][] = \"distance <= \" . $this->searchDistance;\n\t\t\t//$this->searchQ['orderby'][] = '(distance - ((l.level_id-1)*16000)) ASC'; // (x^3 -400^3)^(1/3)\n\t\t\t\n\t\t\t// using a exponential function to order distances based on the listing level and multiplying by 16000 m = 16km = 10 miles\n\t\t\t// then raising to power 3, deleteing the distance cubed and then 1/3 (cube root), so only makes a diffenrce within that area\n\t\t\t\n\t\t\t$this->searchQ['orderby'][] = ' POW( (POW( distance ,3) - POW(((l.level_id-1)*' . $this->levelMultiplier. '),3)),(1/3)) ASC ';\n\t\t\t$this->searchQ['orderby'][] = 'l.level_id DESC';\n\t\t\t$this->doSearch = true;\n\t\t}else{\n\t\t\t$this->searchQ['orderby'][] = 'l.level_id DESC';\n\t\t}\n\t\t\n\t\t//! freetext\n\t\tif( strlen($this->vars['term']) ){\n\t\t\t$this->searchQ['select'][] = \"MATCH(\" . $this->ftfields . \") AGAINST ('\" . $this->booleanAndTerm($this->vars['term']) . \"' IN BOOLEAN MODE) AS score\";\n\t\t\t//$this->searchQ['where'][] = \"MATCH(\" . $ftfields . \") AGAINST ('\" . $this->booleanAndTerm($this->vars['term']) . \"' IN BOOLEAN MODE)\";\n\t\t\t// use having rather than where\n\t\t\t$this->searchQ['having'][] = \"score > 0\";\n\t\t\t$this->searchQ['orderby'][] = 'score DESC';\n\t\t\t$this->doSearch = true;\n\t\t}\n\t\t\n\t\t\n\t\t//! **** FILTERS ****\n\t\t//! profession\n\t\tif( isset($this->vars['profession']) && strlen($this->vars['profession']) ){\n\t\t\n\t\t\t//$this->searchQ['where'][] = \" l.listing_type_id IN (\" . implode(',', $this->vars['profession']) . \") \";\n\t\t\t$this->searchQ['where'][] = \" l.listing_type_id = \" . (int)$this->vars['profession'] . \" \";\n\t\t\t$this->doSearch = true;\n\t\t}\n\t\t//! max price\n\t\tif( isset($this->vars['maxprice']) && is_numeric($this->vars['maxprice']) ){\n\t\t\n\t\t\t$this->searchQ['where'][] = \" l.hourly_rate <= \" . (int)$this->vars['maxprice'] . \" \";\n\t\t\t$this->doSearch = true;\n\t\t}\n\t\t\n\t\t//! gender\n\t\tif( isset($this->vars['gender']) && in_array($this->vars['gender'] , array('M','F')) ){\n\t\t\n\t\t\t$this->searchQ['from'] .= ', listing_to_gender ltg';\n\t\t\t$this->searchQ['where'][] = \" ltg.listing_id = l.listing_id \";\n\t\t\t$this->searchQ['where'][] = \" ltg.gender = '\" . $this->vars['gender'] . \"' \";\n\t\t\t$this->doSearch = true;\n\t\t}\n\t\n\t\t//! speciality\n\t\tif( isset($this->vars['speciality']) && is_numeric($this->vars['speciality']) ){\n\t\t\n\t\t\t$this->searchQ['from'] .= ', listing_to_age ltag';\n\t\t\t$this->searchQ['where'][] = \" ltag.listing_id = l.listing_id \";\n\t\t\t$this->searchQ['where'][] = \" ltag.age_id = \" . (int)$this->vars['speciality'] . \" \";\n\t\t\t$this->doSearch = true;\n\t\t}\n\t\t\n\t\t//! ** build the query **\n\t\t$q = \"SELECT \" . (($this->numRows)?' SQL_CALC_FOUND_ROWS ':'') . implode(',', $this->searchQ['select']). \"\n\t\t\t\tFROM \" . $this->searchQ['from'] . \"\n\t\t\t\tWHERE\n\t\t\t\t\t\" . implode(' AND ', $this->searchQ['where']) ;\n\n\t\tif( isset($this->searchQ['having']) && count($this->searchQ['having']) ){\n\t\t\t$q .= \" HAVING \" . implode(' AND ' , $this->searchQ['having']);\n\t\t}\n\t\t\n\t\t$q .= \"\tORDER BY \" . implode(',', $this->searchQ['orderby']) . \" \";\n\t\t\n\t\t$q .= \"\tLIMIT \" . ( ($this->page-1)* $this->limit) . \",\" . $this->limit . \" \"; \n\t\n\t\treturn $q;\n\t\t\n\t}", "public function initialize()\n {\n $this->setSchema(\"calculadoras\");\n $this->setSource(\"paises\");\n }", "public function initialize()\n {\n\t\t$this->belongsTo('sfafba_partner_id', 'SfAffiliationPartener', 'sfafpa_id', array('alias' => 'sf_affiliation_partener_partner_id'));\n\n parent::initialize();\n }", "public function init()\r\n {\r\n $dbTable = new Application_Model_DbTable_Fournisseur();\r\n $this->mapper = new Application_Model_Mapper_Fournisseur($dbTable);\r\n }", "public function __construct()\n\t{\n\t\t$this->tableObjects = Array();\n\t\t$this->count = 0;\n\t}", "public function init()\n {\n\n // initialize the prepared statements\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_MEDIA_GALLERIES));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_MEDIA_GALLERY));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_MEDIA_GALLERIES_BY_SKU));\n }", "public function _initialize()\n {\n \tparent::_initialize();\n $this->pz\t = D('mru_jfb');\n $this->dp\t = D('Miye_dianpu');\n $this->order = D('Miye_order');\n \n }", "protected function __construct()\n\t\t{\n\t\t\t$this->Connect();\n// \t\t\t$this->Create($this->query); // Czy tak?\n\t\t\t$this->Insert();\n \t\t\t$this->Update('update tabelka ');\n// \t\t\t$this->Delete();\n// \t\t\t$this->Select();\n\t\t}", "public function initialize()\n {\n // Intentionally blank as this will be overloaded by DBAL\n }", "protected function detectQueryObject() {\n\n if (!$this->getContext('query')\n || $this->getContext('query') instanceof WP_Query == false) {\n\n // Fallback to main query\n // Only if not on single page\n if ($this->getContext('queryMain')\n && !is_singular()) {\n\n global $wp_query;\n $this->addContext('query', $wp_query);\n }\n\n // Try to build new query\n elseif ($this->getContext('queryArgs')) {\n\n // Detect if the array is taken directly from query form results\n $this->maybeConvertQueryArgs();\n $this->addContext('query', new WP_Query($this->getContext('queryArgs')));\n }\n }\n\n // Set the id marker to the query object\n // This will be available on pre_get_posts hook.\n if ($this->getContext('id') && $this->getContext('query')) {\n $this->getContext('query')->set('vtcore_queryid', $this->getContext('id'));\n }\n\n // Set the object marker for the query object\n // This will be available on pre_get_posts hook\n if ($this->getContext('query')) {\n $this->getContext('query')->set('vtcore_object', 'wploop');\n }\n\n return $this;\n }", "public function initialize()\n {\n $this->setSchema(\"ieslluis_gestiovfc\");\n $this->setSource(\"lines_comandes\");\n $this->hasMany('ncomanda', 'Comandes', 'numero', ['alias' => 'Comandes']);\n $this->hasMany('producte', 'Productes', 'codi', ['alias' => 'Productes']);\n }", "public function __construct()\n {\n $this->offset = 0;\n $this->rowCount = 0;\n }", "public function initializeObject()\n {\n /** @var $defaultQuerySettings \\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QuerySettingsInterface */\n $defaultQuerySettings = $this->objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QuerySettingsInterface::class);\n $defaultQuerySettings->setRespectStoragePage(false);\n $this->setDefaultQuerySettings($defaultQuerySettings);\n }", "function pre_query() { \r\n // Unset invalid date values before the query runs.\r\n if (!empty($this->view->args) && count($this->view->args) > $this->position) {\r\n $argument = $this->view->args[$this->position];\r\n $parts = $this->date_handler->arg_parts($argument);\r\n if (empty($parts[0]['date']) && empty($parts[0]['period'])) {\r\n unset($this->view->args[$this->position]); \r\n }\r\n }\r\n \r\n $this->get_query_fields();\r\n if (!empty($this->query_fields)) {\r\n foreach ($this->query_fields as $query_field) {\r\n $field = $query_field['field'];\r\n // Explicitly add this table using add_table so Views does not\r\n // remove it if it is a duplicate, since that will break the query.\r\n $this->query->add_table($field['table_name'], NULL, NULL, $field['table_name']);\r\n }\r\n }\r\n }", "public function constructQuery(){\n try {\n // Sparql11query.g:59:3: ( CONSTRUCT constructTemplate ( datasetClause )* whereClause solutionModifier ) \n // Sparql11query.g:60:3: CONSTRUCT constructTemplate ( datasetClause )* whereClause solutionModifier \n {\n $this->match($this->input,$this->getToken('CONSTRUCT'),self::$FOLLOW_CONSTRUCT_in_constructQuery215); \n $this->pushFollow(self::$FOLLOW_constructTemplate_in_constructQuery217);\n $this->constructTemplate();\n\n $this->state->_fsp--;\n\n // Sparql11query.g:60:31: ( datasetClause )* \n //loop8:\n do {\n $alt8=2;\n $LA8_0 = $this->input->LA(1);\n\n if ( ($LA8_0==$this->getToken('FROM')) ) {\n $alt8=1;\n }\n\n\n switch ($alt8) {\n \tcase 1 :\n \t // Sparql11query.g:60:31: datasetClause \n \t {\n \t $this->pushFollow(self::$FOLLOW_datasetClause_in_constructQuery219);\n \t $this->datasetClause();\n\n \t $this->state->_fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break 2;//loop8;\n }\n } while (true);\n\n $this->pushFollow(self::$FOLLOW_whereClause_in_constructQuery222);\n $this->whereClause();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_solutionModifier_in_constructQuery224);\n $this->solutionModifier();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function __construct() {\n $this->setAdvSearch(true);\n }", "protected function initialize()\n {\n $this->data = new stdClass();\n $this->data->ownId = null;\n $this->data->amount = new stdClass();\n $this->data->amount->currency = self::AMOUNT_CURRENCY;\n $this->data->amount->subtotals = new stdClass();\n $this->data->items = [];\n $this->data->receivers = [];\n }", "public function __construct()\n {\n parent::__construct('BaseCanned_query');\n }", "public function __construct()\n {\n parent::__construct();//, $this->fields);\n parent::findTable($this->tableName);\n }", "function __construct($query, $api) {\r\n $this->query = $query;\r\n $this->api = $api;\r\n }", "protected function initResultFields()\r\n {\r\n }", "public function __construct($results = array())\n {\n $this->results = $results;\n $this->current_field = 0;\n $this->num_rows = count($this->results);\n }", "function __construct()\n\t{\n\t\t$this->connection = Application::getDatabaseConnection();\n\t\t$this->connection->SetFetchMode(2);\n\t}", "public function __construct( )\n\t\t{\n\t\t\t$this->state = self::STATE_NULL;\n\t\t\t$this->iCallbacks = new \\stdClass;\n\t\t\tabstractDatasourceBase::__construct();\n\t\t}", "function set_query($query) {\n\t\t\t// it just sets the query with which to get a recordset\n\t\t\t$this->query = $query;\n\t\t}", "public function newQuery()\n {\n return new self($this->connection, $this->grammar, $this->getProcessor());\n }", "protected function setUp() {\n $this->object = new SelectQuery();\n $this->object->setEntity('table t');\n $this->object->addColumn('column');\n $criteria = new SqlCriteria();\n $criteria->add(new SqlFilter('t.id', '=', 5));\n $criteria->setBlockStatus('order', 't.id');\n $criteria->setBlockStatus('limit', 1);\n $criteria->setBlockStatus('offset', 1);\n $this->object->setCriteria($criteria);\n }", "public function __construct(){\n $this->parser = new Parser\\LL1_Parser(CustomQueryColumnGenerator::TOKEN_SYMBOLS, CustomQueryColumnGenerator::GRAMMAR, 'EXPR');\n $this->parser->SetExpressionTreeGenerator(new Parser\\TreeGenerators\\CustomQueryTreeGenerator(CustomQueryColumnGenerator::TOKEN_SYMBOLS));\n $this->context = new ContextEngine();\n }", "public function init()\n {\n $this->hoje = new DateTime('now');\n $this->diasBaseLine = $this->numdiasbaseline;\n $this->diasReal = $this->numdiasrealizados;\n }", "public function _testInitQuery() {\n $view = Views::getView('test_view');\n $view->setDisplay();\n\n $view->initQuery();\n $this->assertInstanceOf(QueryTestPlugin::class, $view->query);\n }", "public function init()\n {\n\n // initialize the prepared statements\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHARS));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHARS_BY_PK_AND_STORE_ID));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_VALUE));\n $this->addFinder($this->finderFactory->createFinder($this, SqlStatementKeys::PRODUCT_VARCHAR_BY_ATTRIBUTE_CODE_AND_ENTITY_TYPE_ID_AND_STORE_ID_AND_PK));\n }", "protected function preQuery(SolariumQueryInterface $solarium_query, QueryInterface $query) {\n }", "public function __construct()\n {\n $this->_idField = $this->getIdField();\n $this->_tableName = $this->getTableName();\n\n if (!static::$_db) {\n static::$_db = Database::getInstance();\n }\n\n if (!static::$_schema) {\n static::$_schema = new Cache();\n }\n }", "public function initQuickSearch()\r\n {\r\n $quickSearchValue = $this->getParamAdapter()->getQuickSearch();\r\n $quickSearchQuery = new \\Zend\\Db\\Sql\\Select();\r\n\r\n if (strlen($quickSearchValue)) {\r\n //Unsecure query (without quote)\r\n $quickSearchQuery->where('name like \"%' . $quickSearchValue . '%\"');\r\n $this->getSource()->setQuickSearchQuery($quickSearchQuery);\r\n }\r\n }", "public function initQueryBody()\n {\n $this->queryBody = [\n 'index' => $this->connection->index(),\n 'type' => $this->connection->type(),\n 'body' => [\n 'query' => [\n 'bool' => [\n 'filter' => [\n\n ]\n ]\n ]\n ]\n ];\n }", "public function initialize()\n {\n //$this->setSchema(\"kierkegaard\");\n $this->setSource(\"produto_core\");\n }", "public function newQuery();", "function __construct($totalRecords,$recPerPg,$adjcnt,$is_search_enabled=false,$input_field=\"\"){\n\t\t$this->records_per_page=$recPerPg;\n\t\t$this->adjacents = $adjcnt;\n\t\t$this->totalRecords = $totalRecords;\n\t\t$this->start = 1;\n\t\t$this->pagination = \"\";\n $this->is_search_enabled = $is_search_enabled;\n $this->input_field = $input_field;\n\t}", "protected function _construct()\n {\n $this->_init(self::TABLE_NAME, self::TABLE_ID);\n }", "protected function setUp()\n {\n parent::setUp();\n $this->query = new Query;\n }", "public function initializeObject()\n {\n $this->setDefaultOrderings(\n [\n 'sorting' => \\TYPO3\\CMS\\Extbase\\Persistence\\QueryInterface::ORDER_ASCENDING,\n ]\n );\n }", "public function reset_query(): self\n\t{\n\t\t$this->selects = [];\n\t\t$this->updates = [];\n\t\t$this->wheres = [];\n\t\t$this->limit = self::DEFAULT_LIMIT;\n\t\t$this->offset = 0;\n\t\t$this->sorts = [];\n\n\t\treturn $this;\n\t}", "function __construct()\n {\n $this->_table = \"invoices\";\n $this->_prefix = \"invoice_\";\n $this->_primary = \"id\";\n $this->date = date('Y-m-d');\n $this->delete = 0;\n $this->terms = 30;\n }", "public function __construct() {\n\t\t$this->longlats = array();\n\t\t$this->countries = array();\n\t\t$this->countries_top = array('label' => '', 'count' => 0);\n\n\t\tself::initialise_remarks_table();\n\t\t$this->populate_city_by_comments();\n\t}" ]
[ "0.69815016", "0.6957141", "0.68892246", "0.644427", "0.63781613", "0.6340685", "0.6301757", "0.6281937", "0.6210236", "0.6206955", "0.61747116", "0.6160726", "0.6122521", "0.6120216", "0.6102252", "0.60429347", "0.6026074", "0.601321", "0.59934163", "0.59687966", "0.5963133", "0.5931446", "0.5920879", "0.5886132", "0.5850682", "0.5834853", "0.5816047", "0.57990503", "0.57735205", "0.57670265", "0.57596517", "0.5755366", "0.5730063", "0.5726419", "0.5714212", "0.56879985", "0.5678219", "0.56765234", "0.5647081", "0.56186604", "0.5609075", "0.5606231", "0.55985314", "0.5595115", "0.5581569", "0.55726796", "0.5566111", "0.5558678", "0.5547219", "0.55366325", "0.55120987", "0.55095226", "0.55095226", "0.55095226", "0.55079365", "0.54902667", "0.54842", "0.5479721", "0.5469502", "0.546937", "0.54641515", "0.54569566", "0.5447201", "0.544665", "0.54381657", "0.543485", "0.5430937", "0.5424817", "0.54230565", "0.5422475", "0.54147637", "0.5406853", "0.5405101", "0.5402254", "0.5399673", "0.5382093", "0.53789985", "0.53776777", "0.5375791", "0.537441", "0.53688055", "0.53673965", "0.5364703", "0.5357748", "0.53563875", "0.5352969", "0.5346961", "0.53464794", "0.5344649", "0.53435934", "0.5343309", "0.53415495", "0.5339714", "0.53352076", "0.5334414", "0.5332997", "0.53327584", "0.5328097", "0.53272426", "0.5326965", "0.53258604" ]
0.0
-1
Returns a new ChildFPartenaireQuery object.
public static function create($modelAlias = null, Criteria $criteria = null) { if ($criteria instanceof ChildFPartenaireQuery) { return $criteria; } $query = new ChildFPartenaireQuery(); if (null !== $modelAlias) { $query->setModelAlias($modelAlias); } if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newQuery()\n {\n return new self($this->connection, $this->processor);\n }", "public function newQuery()\n {\n $builder = $this->newAlfrescoBuilder($this->getConnection());\n $builder->setModel($this);\n return $builder;\n }", "public function newQuery()\n {\n return new self($this->connection, $this->grammar, $this->getProcessor());\n }", "protected function newPivotQuery()\n {\n $query = $this->newPivotStatement ();\n return $query->where ( $this->foreignKey, $this->parent->getKey () );\n }", "public function newQuery()\n {\n return new Builder($this->connection, $this->processor);\n }", "public function createChild()\n {\n if (!$this->id) {\n throw new Exception(sprintf('Cannot create a new child entity for a non-existent %s entity', $this->getName()));\n }\n $child = $this->_model->create($this->getName());\n $child->Parent = $this;\n\n return $child;\n }", "public function getChildrenQuery();", "public function newQuery()\n {\n $builder = new Builder($this->newBaseQueryBuilder());\n\n $builder->setModel($this);\n\n return $builder;\n }", "public function subQuery()\n {\n $subQuery = clone $this;\n $subQuery->builderCache = new Query\\BuilderCache();\n\n $subQuery->isSubQuery = true;\n\n return $subQuery;\n }", "public function newQuery()\n {\n $datasource = $this->getDatasource();\n\n $query = new Builder($datasource, $datasource->getPostProcessor());\n\n return $query->setModel($this);\n }", "public function createChild()\n\t{\n\t\t$obj = new static();\n\t\t$obj['parent'] = $this;\n\n\t\treturn $obj;\n\t}", "public function getFChild()\n {\n return $this->f_child;\n }", "public function getChildrenQuery()\n {\n return null;\n }", "protected function setWhere()\n {\n $foreign = $this->getForeignKey ();\n $this->query->where ( $foreign, '=', $this->parent->getKey () );\n return $this;\n }", "public function subQuery() {\n $query = new SubQuery(Query::SELECT, $this->getRepository());\n $query->fields(func_get_args());\n\n return $query;\n }", "public function newQuery()\n {\n return new Builder($this->connection, $this->grammar, $this->processor);\n }", "public function newQuery() {\n return new Builder($this->connection);\n }", "public function setSubquery()\n {\n $this->isSubQuery = true;\n return $this;\n }", "public function newQuery($excludeDeleted = true)\n {\n $query = parent::newQuery($excludeDeleted = true);\n $query->where('type', 'job');\n return $query;\n }", "public function getQuery(): Query\n {\n $foreignModel = $this->foreignModel;\n $query = new Query(new $foreignModel());\n $this->initQuery($query);\n\n return $query;\n }", "public function newQuery(): Builder\n {\n return new static($this->connection);\n }", "function find_childs($child_schema, $child_table, $fkey_column, $fk_id) {\n\t\t$table = new PgObject($this->gui, $child_schema, $child_table);\n\t\t$this->childs[$child_table] = $table->find_where($fkey_column . \" = '\" . $fk_id. \"'\");\n\t\treturn $this->childs[$child_table];\n\t}", "public static function NewQuery()\r\n\t{\r\n\t\treturn new QSqlQuery();\r\n\t}", "public function getChildren($field = null)\n\t{\n\t\t$criteria = craft()->elements->getCriteria($this->elementType);\n\t\t$criteria->childOf($this);\n\t\t$criteria->childField($field);\n\t\treturn $criteria;\n\t}", "#[ReturnTypeWillChange]\n public function getChildren()\n {\n return new self($this->iterator->getChildren(), $this->excluded);\n }", "public function newQuery()\n {\n return $this->registerGlobalScopes($this->newQueryWithoutScopes());\n }", "public function partidas()\n {\n \treturn $this->hasMany('App\\Presupuesto_Partida', 'tPresupuesto_idPresupuesto', 'idPresupuesto');\n }", "public function newQuery()\n {\n return $this->model->newQueryWithoutScopes();\n }", "public function getPChild()\n {\n return $this->p_child;\n }", "protected function createDerivedQuery(): Query\n {\n return (clone $this->baseQuery);\n }", "public function scopeChild($query, $parent){\n return $query->whereRaw('LENGTH(trim(value2)) > 0')->where('value1', '=', $parent);\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildArticleQuery::create();\n $criteria->add(ArticleTableMap::COL_ARTICLE_ID, $this->article_id);\n\n return $criteria;\n }", "abstract public function newQuery();", "protected function query() {\n\t\treturn new Query($this);\n\t}", "public function createQuery() {\n\t\treturn $this->luceneQueryFactory->create($this);\n\t}", "public function children()\n {\n return $this->hasMany('App\\Models\\Child');\n }", "public function prune($fPartenaire = null)\n {\n if ($fPartenaire) {\n $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $fPartenaire->getIDPart(), Criteria::NOT_EQUAL);\n }\n\n return $this;\n }", "public function setChild($childs): self\n {\n $this->child = $childs;\n\n return $this;\n }", "public function children()\n {\n return $this->hasMany('busRegistration\\Child');\n }", "public function getChild()\n {\n return $this->hasMany(Pages::className(), ['parent_id' => 'id']);\n }", "protected function getSubQuery()\n {\n return $this->db\n ->table(CommentModel::TABLE)\n ->columns(CommentModel::TABLE.'.task_id')\n ->ilike(CommentModel::TABLE.'.comment', '%'.$this->value.'%');\n }", "function child(string $subpath) {\n if (!$subpath)\n return $this;\n $subpath = explode('/', $subpath);\n $typeChildname = array_shift($subpath);\n $pos = strpos($typeChildname, '-');\n $type = substr($typeChildname, 0, $pos);\n $childname = substr($typeChildname, $pos+1);\n if ($type == 'dbServers')\n $child = new DbServer($this->path.'/dbServers-'.$childname, $this->yaml['dbServers'][$childname]);\n elseif ($type == 'views') {\n //echo \"<pre>yaml=\"; print_r($this->yaml);\n //echo \"childname=$childname<br>\\n\";\n $view = $this->yaml['views'][$childname];\n $child = new Table(\n $this->path.\"/views-$childname\",\n $this->yaml['dbServers'][$view['server']]['params'],\n \"$view[schema].$view[table]\",\n isset($view['criteria']) ? $view['criteria'] : []\n );\n }\n elseif ($type == 'ugeojson') {\n $ugeojson = $this->yaml['ugeojson'][$childname];\n $child = new UGeoJSON(\n $this->path.\"/ugeojson-$childname\",\n $ugeojson['url']\n );\n }\n else\n throw new \\Exception(\"Cas non prévu\");\n if (!$subpath)\n return $child;\n else\n return $child->child(implode('/',$subpath));\n }", "public function Child() {\n return $this->belongsTo(Child::class);\n }", "public function newQuery($excludeDeleted = true)\n {\n $builder = new PostBuilder($this->newBaseQueryBuilder());\n $builder->setModel($this)->with($this->with);\n $builder->orderBy('post_date', 'desc');\n\n if (isset($this->postType) and $this->postType) {\n $builder->type($this->postType);\n }\n\n if ($excludeDeleted and $this->softDelete) {\n $builder->whereNull($this->getQualifiedDeletedAtColumn());\n }\n\n return $builder;\n }", "public function newQuery();", "public function query()\n {\n // Provide this objects MySQL connection\n return new Query($this->mysql, $this->parent);\n }", "public function childs($relpath = null, $query = null) {\n\t\tif (!$model = $this->model()) {\n\t\t\tthrow new ConfigException('No bound model.');\n\t\t}\n\t\tif ($query) {\n\t\t\t$this->_childs[$relpath] = $query;\n\t\t\treturn $this;\n\t\t}\n\t\treturn $this->_childs;\n\t}", "public function getDetalleCheques()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('fecha',$this->fecha,true);\n\t\t$criteria->compare('pesificadorId',$this->pesificadorId);\n $criteria->compare('montoAcreditar',$this->montoAcreditar);\n $criteria->compare('montoGastos',$this->montoGastos);\n\t\t$criteria->compare('sucursalId',$this->sucursalId);\n $criteria->compare('estado',$this->estado);\n\t\t$criteria->compare('userStamp',$this->userStamp,true);\n\t\t$criteria->compare('timeStamp',$this->timeStamp,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function getChildren()\n\t{\n\t\treturn new static($this->getInnerIterator()->getChildren(), $this->excludeMasks);\n\t}", "protected function getChildren()\n\t{\n\t\t$listing = $this->modelListing->getListing($this->size, $this->offset);\n\t\treturn $listing;\n\t}", "function getChild($field, $id) {\n// 'conditions' => \"IdTBeli = '$id'\"\n// ));\n //echo \"$this->child_class $field = '$id'\";die();\n $result = call_user_func(array($this->child_class, 'find'), 'all', array(\n 'conditions' => \"$field = '$id'\"\n ));\n return $result;\n }", "public function testCreate_Child()\n {\n $childDAO = new childDAO();\n\n $childTest = new childModel(8, \"Red Ranger\", \"None\", \"Tom\", 1);\n $child_id = $childDAO->insert($childTest);\n\n $childFound=$childDAO->find($child_id);\n\n $this->assertEquals($child_id, $childFound->child_id);\n $this->assertEquals(8, $childFound->parent_id);\n $this->assertEquals(\"Red Ranger\", $childFound->child_name);\n $this->assertEquals(\"None\", $childFound->allergies);\n $this->assertEquals(\"Tom\", $childFound->trusted_parties);\n }", "public function query(): Query\n {\n return new Query($this->getWebservice(), $this);\n }", "public function newQuery($excludeDeleted = true)\n {\n $builder = new EloquentQueryBuilder($this->newBaseQueryBuilder());\n\n // Once we have the query builders, we will set the model instances so the\n // builder can easily access any information it may need from the model\n // while it is constructing and executing various queries against it.\n $builder->setModel($this)->with($this->with);\n\n if ($excludeDeleted and $this->softDelete) {\n $builder->whereNull($this->getQualifiedDeletedAtColumn());\n }\n\n return $builder;\n }", "public function createQuery()\n {\n $query = &atknew(\"atk.db.atk{$this->m_current_clusternode->m_type}query\");\n $query->m_db = $this;\n return $query;\n }", "public function __construct( private WhereSQL $parent ) { }", "public function createMultiQuery()\n {\n $query = new MultiQuery($this->elastic);\n $query->listeners = $this->listeners;\n return $query;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildBiblioQuery::create();\n $criteria->add(BiblioTableMap::COL_BIBLIO_ID, $this->biblio_id);\n\n return $criteria;\n }", "public function child($childName, $joinType = 'LEFT', $additionalCols = Array(), $matching = '=')\n {\n $this->addChild($childName, $joinType, $additionalCols, $matching);\n }", "public function setChildren($children) {\n $this->children = $children;\n\n return $this;\n }", "public function buildPkeyCriteria()\n\t{\n\t\t$criteria = new Criteria(J019tParticipantesPeer::DATABASE_NAME);\n\n\t\t$criteria->add(J019tParticipantesPeer::CO_PARTICIPANTE, $this->co_participante);\n\n\t\treturn $criteria;\n\t}", "public function usePartenaireQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinPartenaire($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'Partenaire', '\\PartenaireQuery');\n }", "public function children(array $query = []): Collection\n {\n $children = static::all(array_merge($query, ['post_parent' => $this->id()]));\n\n return $this->setAttribute(__METHOD__, $children);\n }", "public function query()\n\t{\n\t\treturn new Builder(\n\t\t\t$this, $this->getQueryGrammar(), $this->getPostProcessor()\n\t\t);\n\t}", "public function newQuery()\n {\n $query = parent::newQuery();\n\n if ($this->usesTimestamps()) {\n $table = $this->getTable();\n $columns = ['*'];\n foreach ($this->getDates() as $dateColumn) {\n $columns[] = DB::raw(\"CONCAT($table.$dateColumn) AS $dateColumn\");\n }\n $query->addSelect($columns);\n }\n\n return $query;\n }", "public function children()\n {\n return $this->belongsToMany('App\\Models\\Child');\n }", "public function setChildRelationships($children)\n {\n $this->children = $children;\n return $this;\n }", "public function query() {\n\n // new, more inclusive\n $query = parent::query();\n // Add in book parent child relationships.\n $query->leftJoin('book', 'b', 'n.nid = b.nid');\n $query->addField('b', 'bid', 'book_id');\n $query->leftJoin('menu_links', 'ml', 'b.mlid = ml.mlid');\n $query->addField('ml', 'weight', 'book_weight');\n $query->addField('ml', 'mlid', 'mlid');\n $query->addField('ml', 'plid', 'plid');\n $query->orderBy('mlid');\n\n // dpq($query);\n return $query;\n }", "public static function createQuery()\n\t{\n\t\treturn new ActiveQuery(['modelClass' => get_called_class()]);\n\t}", "public function childs()\n {\n return $this->hasMany(Category::class, 'procreator_id')->orderBy('index');\n }", "public function newQuery()\n {\n return parent::newQuery()->orderBy('created_at', 'DESC');\n }", "public function createQuery()\n {\n $query = parent::createQuery();\n $query->getQuerySettings()->setRespectStoragePage(false);\n return $query;\n }", "public function buildPkeyCriteria()\n {\n $criteria = ChildCommandeQuery::create();\n $criteria->add(CommandeTableMap::COL_ID_COMMANDE, $this->id_commande);\n\n return $criteria;\n }", "public static function query()\n {\n return (new static)->newQuery();\n }", "public static function query()\n {\n return (new static)->newQuery();\n }", "public function children()\n {\n return $this->hasMany(self::class, 'parent_id', 'id');\n }", "protected function createQuery()\n {\n return \\PropelQuery::from($this->class);\n }", "public function makeSearch() \n {\n $this->setSelect($this->qb);\n $this->setAssociations($this->qb);\n $this->setWhere($this->qb);\n $this->setOrderBy($this->qb);\n $this->setLimit($this->qb);\n\n return $this;\n }", "public function usePartenairepieceQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinPartenairepiece($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'Partenairepiece', '\\PartenairepieceQuery');\n }", "public function findClasificadorDerivado(){\n $query = \"call sp_maeMaestrosConsultas(:flag,:criterio);\";\n \n $parms = array(\n \":flag\" => 22,\n \":criterio\" => $this->_idClasificadorDerivado\n );\n $data = $this->queryOne($query,$parms);\n return $data;\n }", "public function findChildren()\n {\n return self::where('code_parrent',$this->id)->get();\n }", "public function hasParentChildFilter() {\n return $this->_has(4);\n }", "function __construct(){\n parent::__construct('drq_father_data');\n }", "public function buildPkeyCriteria()\n {\n $criteria = new Criteria(FeatureCvtermPeer::DATABASE_NAME);\n $criteria->add(FeatureCvtermPeer::FEATURE_CVTERM_ID, $this->feature_cvterm_id);\n\n return $criteria;\n }", "private function getImmediateChilds($parent_identifier_field_value, $extra_condition=\"\", $order_by_phrase=\"\") {\n $sql=\"SELECT * FROM `\".$this->db_table.\"` WHERE `\".$this->parent_identifier_field_name.\"`='\".$parent_identifier_field_value.\"' \".$extra_condition.\" \".$order_by_phrase;\n \n $res=mysql_query($sql);\n $childs=array();\n while($val=mysql_fetch_assoc($res)) {\n array_push($childs,$val);\n }\n return $childs;\t\n }", "public function setIsPartOf($isPartOf) {\n $this->properties['isPartOf'] = $isPartOf;\n\n return $this;\n }", "public function __construct() {\n $this->table = 'child';\n $this->primaryKey = 'id';\n $this->foreinKey = 'person_id';\n $this->columns = array(\n 'id', \n 'person_id', \n 'name', \n 'last_name', \n 'gender',\n 'age', \n 'blood_type'\n );\n $this->randomize = array(\n 'name' => array( //add format options upercase lowercase and capitalize or without format\n 'type' => 'file',\n 'path' => 'files/nameslist.txt',\n 'num_lines' => 200\n ),\n 'last_name' => array( //add format options upercase lowercase and capitalize or without format\n 'type' => 'file',\n 'path' => 'files/lastnameslist.txt',\n 'num_lines' => 200\n ),\n 'gender' => array(\n 'type' => 'in-list',\n 'list' => array('male', 'female')\n ),\n 'age' => array(\n 'type' => 'range-numbers',\n 'min' => 5,\n 'max' => 16 \n ),\n 'blood_type' => array(\n 'type' => 'in-list',\n 'list' => array('A+', 'B+', 'O+', 'O-', 'AB+', 'AB-')\n )\n );\n\n $this->operation = 'generate'; // generate | clone\n\n $this->qty = array(0, 3); // quatity of registerswhen $this->operation is generate\n\n $this->withChild = false;\n }", "public function parent() {\n $db = $this->getDbConnection();\n $criteria = $this->getDbCriteria();\n $alias = $db->quoteColumnName($this->getTableAlias());\n\n $criteria->mergeWith(array(\n 'condition' => $alias . '.' . $db->quoteColumnName($this->leftAttribute) . '<' . $this->{$this->leftAttribute} .\n ' AND ' . $alias . '.' . $db->quoteColumnName($this->rightAttribute) . '>' . $this->{$this->rightAttribute},\n 'order' => $alias . '.' . $db->quoteColumnName($this->rightAttribute),\n ));\n\n if ($this->hasManyRoots) {\n $criteria->addCondition($alias . '.' . $db->quoteColumnName($this->rootAttribute) . '=' . CDbCriteria::PARAM_PREFIX . CDbCriteria::$paramCount);\n $criteria->params[CDbCriteria::PARAM_PREFIX . CDbCriteria::$paramCount++] = $owner->{$this->rootAttribute};\n }\n\n return $this;\n }", "public function selectChildElements ( $F = null ) {\n\n return $this->getStream()->selectChildElements($F);\n }", "public static function query()\n {\n // Create a new model instance for the query to ensure\n // that the model's initialize() method gets called.\n // Otherwise, the property definitions will be incomplete.\n $model = new static();\n\n return new Query($model);\n }", "public function getChildrenField()\n {\n return $this->inheritanceField;\n }", "public function newQuery($excludeDeleted = true)\n {\n $builder = new TermTaxonomyBuilder($this->newBaseQueryBuilder());\n $builder->setModel($this)->with($this->with);\n\n if (isset($this->taxonomy) &&\n !empty($this->taxonomy) &&\n !is_null($this->taxonomy))\n {\n $builder->where('taxonomy', $this->taxonomy);\n }\n return $builder;\n }", "public function query() {\n /** @var Sql $query */\n $query = $this->query;\n\n $configuration = array(\n 'table' => 'node_field_revision',\n 'field' => 'vid',\n 'left_table' => 'node_field_data',\n 'left_field' => 'vid',\n 'operator' => '=',\n 'type'=>'INNER',\n 'left_query' => 'select max(vid) from node_field_revision where nid = nfr.nid',\n 'extra' => 'node_field_data.nid = nfr.nid',\n );\n\n /** @var Subquery $join */\n $join = Views::pluginManager('join')->createInstance('subquery', $configuration);\n\n $query->addRelationship(\"nfr\", $join ,'node_field_revision' );\n $query->addWhere(0, 'nfr.moderation_state', $this->value, 'IN');\n }", "public function childs() {\n return $this->hasMany(Worker::class,'parent_id','id') ;\n }", "public function child(){\n return $this->morphTo(null,'recharge_type','recharge_type_id');\n }", "static function createObject () {\n $query = 'insert into '.Config::getTablePrifix().self::getTableName().' (';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= '\\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ')';\n Database::query($query);\n // update the id feild value\n $lastInsertId = Database::queryAsObject('select max(id) as lastid from '.Config::getTablePrifix().self::getTableName());\n self::setFeildValue(self::getIdFeild(),$lastInsertId->lastid);\n return $this;\n }", "public function get_child($child_id)\n {\n }", "public function setParentCriteria(string $field): self\n {\n $this->parentCriteria = $field;\n\n return $this;\n }", "public function setFId($f_id)\n {\n $this->f_id = $f_id;\n\n return $this;\n }", "abstract protected function _getChildFactory($child, $config);" ]
[ "0.58240664", "0.5667718", "0.56349194", "0.5550315", "0.5487825", "0.54748595", "0.54152554", "0.5399251", "0.53866017", "0.53828245", "0.53617585", "0.53514296", "0.5343655", "0.5331906", "0.5331102", "0.53147566", "0.52597743", "0.52150524", "0.5177173", "0.50612515", "0.5053123", "0.5020234", "0.49506885", "0.4944605", "0.49380314", "0.49262738", "0.4883138", "0.48763448", "0.48301315", "0.48252138", "0.4799801", "0.47902927", "0.478627", "0.47620887", "0.4760001", "0.4751342", "0.47424963", "0.4731133", "0.47243938", "0.47073218", "0.46993947", "0.46897814", "0.46718556", "0.46714333", "0.46677324", "0.46643224", "0.4660763", "0.4654086", "0.46533513", "0.4645883", "0.46434304", "0.46404818", "0.46388152", "0.46270844", "0.46128383", "0.46100435", "0.46051243", "0.46040028", "0.45980242", "0.45924687", "0.45904344", "0.45825458", "0.457818", "0.45605636", "0.45579675", "0.45554692", "0.45521843", "0.454783", "0.4547398", "0.45448735", "0.454308", "0.4538923", "0.45375264", "0.45360935", "0.45360935", "0.4532421", "0.45106563", "0.45090142", "0.4507325", "0.4506815", "0.4501002", "0.44880134", "0.44736582", "0.44659328", "0.44592452", "0.44571856", "0.44559067", "0.44517246", "0.44477117", "0.44394034", "0.44376904", "0.44375384", "0.44342035", "0.44314265", "0.44286913", "0.44262612", "0.44223753", "0.4416055", "0.43958414", "0.4391065" ]
0.5312128
16
Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched. $obj = $c>findPk(12, $con);
public function findPk($key, ConnectionInterface $con = null) { if ($key === null) { return null; } if ((null !== ($obj = FPartenaireTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is already in the instance pool return $obj; } if ($con === null) { $con = Propel::getServiceContainer()->getReadConnection(FPartenaireTableMap::DATABASE_NAME); } $this->basePreSelect($con); if ($this->formatter || $this->modelAlias || $this->with || $this->select || $this->selectColumns || $this->asColumns || $this->selectModifiers || $this->map || $this->having || $this->joins) { return $this->findPkComplex($key, $con); } else { return $this->findPkSimple($key, $con); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_AddressPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_AddressPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AnotacaoCasoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AnotacaoCasoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PeliculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PeliculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AdvogadoAreaAdvocaciaPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AdvogadoAreaAdvocaciaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CastlesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CastlesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = BitacoraAccesoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(BitacoraAccesoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RemoteAppPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(RemoteAppPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = NegocioPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(NegocioPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = PersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = AnakPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(AnakPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsGpkprkhpkWijzigingenPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2], (string) $key[3]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsGpkprkhpkWijzigingenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = UnitPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UnitPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ProveedormarcaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ProveedormarcaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DomainCheckPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_ProductPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_ProductPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = LpPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SearchIndexPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SearchIndexPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PedidoProductoPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PedidoProductoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DropboxPersonPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TbalunomatriculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TbalunomatriculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ZipToCityPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ZipToCityPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PagocontrareciboPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PagocontrareciboPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ArCust3partyFreightTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ArCust3partyFreightTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MonedaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MonedaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(BookTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = BookTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ContactPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ContactPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(MentorTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = MentorTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = afGuardUserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(afGuardUserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DireccionRequerimientoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DireccionRequerimientoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = ClubMeetingsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(ClubMeetingsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MigrationPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MigrationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = TblAdherentPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TblAdherentPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ExpositorFeriaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = OrdencompradetallePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(OrdencompradetallePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MantenimientoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MantenimientoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = FreeShippingPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(FreeShippingPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CardPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CardPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ActividadPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Routes2011Peer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Routes2011Peer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(SocioTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = SocioTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientPrestationsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientPrestationsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MesaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `USER_ID`, `NAME`, `DESCRIPTION`, `BARE_PATH`, `CLONE_PATH`, `FORKED_FROM_ID`, `FORKED_AT`, `CREATED_AT`, `UPDATED_AT` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RemoteHistoryContaoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(RemoteHistoryContaoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(LyricTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = LyricTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ArticlesPropelTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ArticlesPropelTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ProductoPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(BooksByUserTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = BooksByUserTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsDoseringenUitzonderingenOpBasisPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsDoseringenUitzonderingenOpBasisPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AutenticacaoTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AutenticacaoTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsRelatieTussenZinummerHibcPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsRelatieTussenZinummerHibcPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(CustomerTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = CustomerTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AccountTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AccountTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ColaboradorTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ColaboradorTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function returnFindByPK($id);", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(TblentbidTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = TblentbidTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ClientiTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ClientiTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(CustpermTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = CustpermTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1]), (null === $key[2] || is_scalar($key[2]) || is_callable([$key[2], '__toString']) ? (string) $key[2] : $key[2])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\r\n\t{\r\n\t\tif ((null !== ($obj = PersonaCastingPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\r\n\t\t\t// the object is alredy in the instance pool\r\n\t\t\treturn $obj;\r\n\t\t} else {\r\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\r\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\t\t$stmt = $criteria\r\n\t\t\t\t->filterByPrimaryKey($key)\r\n\t\t\t\t->getSelectStatement($con);\r\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\r\n\t\t}\r\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = sfGuardUserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(sfGuardUserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DocumentTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(DocumentTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SchoolPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SchoolPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(TrabajosTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = TrabajosTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(DebaucheTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = DebaucheTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsSuperproduktenPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsSuperproduktenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(EmployeeTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = EmployeeTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(EmployeeTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = EmployeeTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(TorrentTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = TorrentTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_CustomizationPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_CustomizationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PdnTugasPeer::getInstanceFromPool((string)$key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PdnTugasPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `NAME`, `VALUE`, `REMOTE` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsMedischeHulpmiddelenPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsMedischeHulpmiddelenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(BinrsessionTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = BinrsessionTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = GoodsInSalePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MenuPersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PengawasTerdaftarPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PengawasTerdaftarPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = InviteDetailPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(InviteDetailPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = HomeCategoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(HomeCategoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AlunoHasDisciplinaTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AlunoHasDisciplinaTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ActividadTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ActividadTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AliSmbonusTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AliSmbonusTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(RemAanvraagTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = RemAanvraagTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TemplateUnPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TemplateUnPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `CASO_ID`, `TITULO`, `DESCRICAO`, `DATA_CRIACAO` FROM `anotacao_caso` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\t\t\t\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new AnotacaoCaso();\n\t\t\t$obj->hydrate($row);\n\t\t\tAnotacaoCasoPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PlanPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PlanPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(GuildTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = GuildTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsGeneriekeNamenPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsGeneriekeNamenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = sfSimpleCMSSlotPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(sfSimpleCMSSlotPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(WarrantyTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = WarrantyTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RespuestaItemPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AliFmbonusTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AliFmbonusTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null)\n {\n return null;\n }\n if ((null !== ($obj = CollectorProfileArchivePeer::getInstanceFromPool((string) $key))) && !$this->formatter)\n {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null)\n {\n $con = Propel::getConnection(CollectorProfileArchivePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n }\n else\n {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AliGmbonusTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AliGmbonusTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = TorneoCategoriaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TorneoCategoriaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}" ]
[ "0.76266354", "0.76266354", "0.7566684", "0.7547668", "0.7544397", "0.75244606", "0.75094116", "0.74984694", "0.7488985", "0.7463394", "0.7444283", "0.74432284", "0.7435427", "0.74185157", "0.7412812", "0.7412765", "0.740688", "0.7393943", "0.73758215", "0.73715127", "0.7366086", "0.7365841", "0.73633593", "0.73599666", "0.73562366", "0.73465633", "0.7337375", "0.73349816", "0.73297685", "0.7324878", "0.7321966", "0.7321966", "0.7320648", "0.7317465", "0.7316852", "0.730938", "0.73035717", "0.72978574", "0.729769", "0.72967523", "0.72905385", "0.72891605", "0.7288339", "0.72882026", "0.7282862", "0.72822726", "0.72732574", "0.7273194", "0.727139", "0.7261895", "0.7257123", "0.7255438", "0.7255019", "0.7251982", "0.7249862", "0.724939", "0.7246928", "0.7229103", "0.72283924", "0.7223367", "0.72205764", "0.72200626", "0.7204169", "0.72035605", "0.7202658", "0.7193237", "0.7188172", "0.71785057", "0.71760523", "0.71733934", "0.7169733", "0.71626645", "0.71565187", "0.71565187", "0.71560663", "0.71559423", "0.715371", "0.7153639", "0.71518546", "0.7146708", "0.71460205", "0.7145877", "0.7143122", "0.7141885", "0.713691", "0.7131608", "0.71284705", "0.7119885", "0.71110845", "0.71057725", "0.7100116", "0.70948386", "0.708731", "0.7086346", "0.70847756", "0.707951", "0.7077393", "0.70766664", "0.7075316", "0.70741355", "0.7071025" ]
0.0
-1
Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.
protected function findPkSimple($key, ConnectionInterface $con) { $sql = 'SELECT indx_part, abonnement, notes, dte_maj, id_contact FROM finance_part WHERE indx_part = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); $stmt->execute(); } catch (Exception $e) { Propel::log($e->getMessage(), Propel::LOG_ERR); throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); } $obj = null; if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { /** @var ChildFPartenaire $obj */ $obj = new ChildFPartenaire(); $obj->hydrate($row); FPartenaireTableMap::addInstanceToPool($obj, (string) $key); } $stmt->closeCursor(); return $obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function returnFindByPK($id);", "public abstract function find($primary_key, $model);", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\t\t\t\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE lp_id = ?\";\r\n\t\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\t\t\t\t\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->id = $row ['lp_id'];\r\n\t\t\t\t\t$this->userid = $row ['lp_userid'];\r\n\t\t\t\t\t$this->random = $row ['lp_random'];\r\n\t\t\t\t\t$this->deadline = $row ['lp_deadline'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with id ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\t\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function returnDetailFindByPK($id);", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE dsh_id = ?\";\r\n\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\r\n\t\t\t\t\t$this->id = $row ['dsh_id'];\r\n\t\t\t\t\t$this->title = $row ['dsh_title'];\r\n\t\t\t\t\t$this->desc = $row ['dsh_desc'];\r\n\t\t\t\t\t$this->portlet = $row ['dsh_portlet'];\r\n\t\t\t\t\t$this->hide = $row ['dsh_hide'];\r\n\t\t\t\t\t$this->createdBy = $row ['dsh_created_by'];\r\n\t\t\t\t\t$this->modifiedBy = $row ['dsh_modified_by'];\r\n\t\t\t\t\t$this->createdDate = $row ['dsh_created_date'];\r\n\t\t\t\t\t$this->modifiedDate = $row ['dsh_modified_date'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with primary column ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function fetch($primaryKey);", "function findFirst($sql) {\n\t\t$args = func_get_args();\n\t\tarray_shift($args);\n\n\t\t$statement = $this->execute($sql, $args);\n\t\t$obj = $statement->fetchObject($this->resultClass, array($this));\n\t\treturn $obj;\n\t}", "public function find($arg) {\n if ($arg instanceof IFilterable) {\n $condition = $arg->resultFilter();\n } else {\n $condition = $this->getPrimaryKeyCondition($arg);\n }\n \n $this->_dataHandler->select('*', $this->_table, $condition);\n return $this->_dataHandler->fetchObject();\n }", "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DropboxPersonPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public static function find($primary_key)\n {\n return static::select()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fetchOne();\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `USER_ID`, `NAME`, `DESCRIPTION`, `BARE_PATH`, `CLONE_PATH`, `FORKED_FROM_ID`, `FORKED_AT`, `CREATED_AT`, `UPDATED_AT` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `NAME`, `VALUE`, `REMOTE` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AdvogadoAreaAdvocaciaPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AdvogadoAreaAdvocaciaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MesaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "private function _find($id, $lockForUpdate = false)\n {\n $prepSql = \"SELECT {$this->_columnNames} FROM `{$this->_tableName}` \"\n . 'WHERE `id` = ? ';\n \n if ($lockForUpdate) {\n $prepSql .= 'FOR UPDATE ';\n }\n \n $pstmt = $this->_prepare($prepSql);\n $bindings = [$id];\n\n $pstmt->execute($bindings);\n \n $dbRecord = $pstmt->fetch(\\PDO::FETCH_ASSOC);\n $pstmt->closeCursor();\n $entity = $this->_toEntity($dbRecord);\n \n return $entity;\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = PersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function returnMoreFindByPK($id);", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CastlesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CastlesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = LpPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = UnitPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UnitPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = GoodsInSalePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ExpositorFeriaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ProductoPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = AnakPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(AnakPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SearchIndexPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SearchIndexPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findById($primaryKeyValue){\n //Select* From employers Where $this->primaryKey(noemp)=$primaryKeyValue(1000)\n $array = $this->findWhere($this->primaryKey. \"=$primaryKeyValue\");\n if (count($array) != 1 ) die (\"The ID $primaryKeyValue is not valid\");\n return $array[0];\n }", "abstract public function find($id);", "public function selectById()\n {\n $sql = \"SELECT * FROM \" . self::TABLE_NAME . \" WHERE id=?\";\n $stmt = $this->prepare($sql);\n $stmt->bind_param(\"s\", $this->getId());\n $stmt->execute();\n $result = $stmt->get_result();\n $stmt->close();\n return $result->fetch_assoc();\n }", "public function findPk($key, $con = null)\r\n\t{\r\n\t\tif ((null !== ($obj = PersonaCastingPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\r\n\t\t\t// the object is alredy in the instance pool\r\n\t\t\treturn $obj;\r\n\t\t} else {\r\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\r\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\t\t$stmt = $criteria\r\n\t\t\t\t->filterByPrimaryKey($key)\r\n\t\t\t\t->getSelectStatement($con);\r\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\r\n\t\t}\r\n\t}", "public function findByPk($id, $typeResult = self::FETCH_OBJ){\n\t$query = \"SELECT * FROM $this->tableName USE INDEX(PRIMARY) WHERE ID=?\";\n\treturn $this->createResult($query, array($id), $typeResult);\n}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_AddressPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_AddressPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RespuestaItemPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public static function find_by_id($id){\n static::setConnection();\n $table = static::$table;\n $keyColumn = static::$keyColumn;\n $sql = \"SELECT * FROM \".$table.\" WHERE \".$keyColumn.\" = \".$id;\n $res = mysqli_query(static::$conn,$sql);\n $row = mysqli_fetch_object($res,get_called_class());\n return $row;\n }", "function unframed_sql_select_object($pdo, $table, $column, $key) {\n\t$sql = \"SELECT * FROM \".$table.\" WHERE \".$column.\" = ?\";\n\t$st = $pdo->prepare($sql);\n\t$st->bindValue(1, $key);\n\tif ($st->execute()) {\n\t\treturn $st->fetch(PDO::FETCH_ASSOC);\n\t}\n\tthrow new Unframed($st->errorInfo()[2]);\n}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = CalendarPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_ProductPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_ProductPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MonedaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MonedaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "function find($id=true,$fetch_type = \\PDO::FETCH_ASSOC)\n {\n $this->db->table($this->getTableFullName());\n if(is_string($id) || is_numeric($id)){\n $this->where($this->getPk(),'=',$id);\n }\n return $this->db->find($fetch_type);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = sfSimpleCMSSlotPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(sfSimpleCMSSlotPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DomainCheckPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function find($pk = null) {\n\t\t//Prepare the SELECT SQL Query\n\t\t$sql = $this->prepareSelect($pk);\n\t\t\n\t\t//Clear actual dataSet\n\t\t$this->clearDataSet();\n\t\t\n\t\t$modelName = get_class($this->getModel());\n\t\t\n\t\tif($sql != null) {\n\t\t\t$this->execute($sql);\n\t\t\t$this->resultSet = &$this->getModel()->getConnection()->executeSQL($sql);\n\t\t} else {\n\t\t\tPhpBURN_Message::output(\"[!No query found!] - <b>$modelName</b>\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Set cursor at the first position\n\t\t$this->setPointer(0);\n\t\t\n\t\t//Prepare DataSet\n\t\t//$this->setDataSet($dataSet);\n\t\t\n\t\t//Returns the amount result\n\t\treturn $this->getModel()->getConnection()->affected_rows($this->resultSet);\n\t}", "public function find( int $id, string $className, ? string $table = null) //$className parametre de la function, ? parametre optionnel\r\n{\r\n $sql = \"SELECT * FROM {$this->table} WHERE id =:id\";\r\n\r\n if(!empty($table)){\r\n $sql = \"SELECT * FROM $table WHERE id=:id\";\r\n }\r\n\r\n $maRequete = $this->pdo->prepare($sql);\r\n $maRequete->execute(['id' => $id]);\r\n\r\n $item = $maRequete->fetchObject($className); //deja fait pour l'objet il sait qu'on va lui donner une classe;\r\n\r\n return $item;\r\n}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MenuPersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = TblAdherentPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TblAdherentPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public static function find($id, $key = 'id');", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PlanPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PlanPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ActividadPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PengawasTerdaftarPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PengawasTerdaftarPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ZipToCityPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ZipToCityPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `nombre`, `descripcion`, `precio`, `usuarios`, `moneda_id`, `logo_propio`, `quitar_logo`, `correo_masivo`, `correo_info`, `crear_examenes`, `created_by`, `updated_by`, `created_at`, `updated_at` FROM `plan` WHERE `id` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Plan();\n $obj->hydrate($row);\n PlanPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "function findById($db, $table, $primaryKey, $value, $options = '') {\n\t$query = 'SELECT * FROM ' . $table . ' WHERE ' . $primaryKey . '= :value ' . ' ' . $options ;\n\n\t$parameters = [\n\t\t'value' => $value\n\t];\n\n\t$result = runQuery($db, $query, $parameters);\n\n\treturn $result;\n}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT ID, LASTNAME, FIRSTNAME, BIRTHDATE, ADDRESS, CITY, ZIP_CODE, CREATED_AT, UPDATED_AT, CREATED_BY, UPDATED_BY FROM ratp_client WHERE ID = :p0';\n try {\n $stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Client();\n $obj->hydrate($row);\n ClientPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = QuizPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "function find($id);", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsGpkprkhpkWijzigingenPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2], (string) $key[3]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsGpkprkhpkWijzigingenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TbalunomatriculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TbalunomatriculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DireccionRequerimientoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DireccionRequerimientoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID_ADDRESS`, `ID_COUNTRY`, `ID_STATE`, `ID_CUSTOMER`, `ID_MANUFACTURER`, `ID_SUPPLIER`, `ALIAS`, `COMPANY`, `LASTNAME`, `FIRSTNAME`, `ADDRESS1`, `ADDRESS2`, `POSTCODE`, `CITY`, `OTHER`, `PHONE`, `PHONE_MOBILE`, `VAT_NUMBER`, `DNI`, `DATE_ADD`, `DATE_UPD`, `ACTIVE`, `DELETED` FROM `' . _DB_PREFIX_ . 'address` WHERE `ID_ADDRESS` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Oops_Db_Address();\n\t\t\t$obj->hydrate($row);\n\t\t\tOops_Db_AddressPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ProveedormarcaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ProveedormarcaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PeliculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PeliculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `page_id`, `path`, `language_id`, `link_text`, `page_title`, `created_at`, `updated_at`, `created_by`, `updated_by` FROM `search_index` WHERE `id` = :p0 AND `language_id` = :p1';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT);\n $stmt->bindValue(':p1', $key[1], PDO::PARAM_STR);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new SearchIndex();\n $obj->hydrate($row);\n SearchIndexPeer::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1])));\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PedidoProductoPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PedidoProductoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = NegocioPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(NegocioPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsSuperproduktenPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsSuperproduktenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = BitacoraAccesoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(BitacoraAccesoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findByID($id){\n return $this->Find(self::TABLE,$id);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TemplateUnPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TemplateUnPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\r\n\t{\r\n\t\tif ((null !== ($obj = ScoutImportPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\r\n\t\t\t// the object is alredy in the instance pool\r\n\t\t\treturn $obj;\r\n\t\t} else {\r\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\r\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\t\t$stmt = $criteria\r\n\t\t\t\t->filterByPrimaryKey($key)\r\n\t\t\t\t->getSelectStatement($con);\r\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\r\n\t\t}\r\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AnotacaoCasoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AnotacaoCasoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null)\n {\n return null;\n }\n if ((null !== ($obj = CollectorProfileArchivePeer::getInstanceFromPool((string) $key))) && !$this->formatter)\n {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null)\n {\n $con = Propel::getConnection(CollectorProfileArchivePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n }\n else\n {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TranslationContentPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TranslationContentPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RegistrationPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function find($id){\n return parent::find($this->table, $id);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = OrdencompradetallePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(OrdencompradetallePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsMedischeHulpmiddelenPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsMedischeHulpmiddelenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MantenimientoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MantenimientoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function find($id, $primary_key = 'id') {\r\n $this->where(array($primary_key => $id));\r\n\r\n if (!is_array($id)) {\r\n return $this->first();\r\n }\r\n\r\n return $this->execute();\r\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientPrestationsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientPrestationsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `ID`, `DESCRIPCION`, `SIMBOLO`, `CODIGO` FROM `moneda` WHERE `ID` = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Moneda();\n $obj->hydrate($row);\n MonedaPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CardPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CardPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = sfGuardUserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(sfGuardUserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = afGuardUserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(afGuardUserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ArtistPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ArtistPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MigrationPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MigrationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public\tfunction\tfind($primary = NULL)\n\t\t{\n\t\t\t$this->_relate();\n\t\t\t\n\t\t\t$access\t=\t$this->_database->getAccess();\n\t\t\t$query\t=\t$this->getQuery('find');\n\t\t\treturn\t$query;\n\t\t\t$filter\t=\t$this->getQuery('filter');\n\t\t\tvar_dump($filter);\n\t\t\t$access->query($this->getQuery('find'), array());\n\t\t\t\n\t\t\t$output\t=\tarray();\n\t\t\twhile($row = $access->fetch()) {\n\t\t\t\t$output[]\t=\t$this->_fetch($row);\n\t\t\t}\n\t\t\texit();\n\t\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_CustomizationPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_CustomizationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function find($primaryValue);", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PdnTugasPeer::getInstanceFromPool((string)$key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PdnTugasPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT \"pengawas_terdaftar_id\", \"lembaga_id\", \"ptk_id\", \"tahun_ajaran_id\", \"nomor_surat_tugas\", \"tanggal_surat_tugas\", \"tmt_tugas\", \"mata_pelajaran_id\", \"bidang_studi_id\", \"jenjang_kepengawasan_id\", \"aktif_bulan_01\", \"aktif_bulan_02\", \"aktif_bulan_03\", \"aktif_bulan_04\", \"aktif_bulan_05\", \"aktif_bulan_06\", \"aktif_bulan_07\", \"aktif_bulan_08\", \"aktif_bulan_09\", \"aktif_bulan_10\", \"aktif_bulan_11\", \"aktif_bulan_12\", \"jenis_keluar_id\", \"tgl_pengawas_keluar\", \"create_date\", \"last_update\", \"soft_delete\", \"last_sync\", \"updater_id\" FROM \"pengawas_terdaftar\" WHERE \"pengawas_terdaftar_id\" = :p0';\n try {\n $stmt = $con->prepare($sql);\t\t\t\n $stmt->bindValue(':p0', $key, PDO::PARAM_STR);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new PengawasTerdaftar();\n $obj->hydrate($row);\n PengawasTerdaftarPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DocumentTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(DocumentTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }" ]
[ "0.67413396", "0.6730667", "0.6711073", "0.6685281", "0.6598015", "0.64450324", "0.6370154", "0.63644123", "0.6338688", "0.6323882", "0.62813044", "0.62813044", "0.62671226", "0.6254733", "0.62487155", "0.6225053", "0.6199222", "0.6186898", "0.61775994", "0.6174109", "0.61737514", "0.61655664", "0.6165536", "0.61580473", "0.61546355", "0.61363584", "0.6105476", "0.610546", "0.6101961", "0.6098314", "0.6083837", "0.6083713", "0.6063811", "0.6060746", "0.6054554", "0.60517627", "0.60475737", "0.6047139", "0.603778", "0.6026465", "0.602229", "0.6018259", "0.60096", "0.6006378", "0.59991485", "0.59974915", "0.59929806", "0.59925145", "0.5991542", "0.59855425", "0.5979233", "0.5976738", "0.59741324", "0.59694254", "0.5967431", "0.5963128", "0.59592235", "0.5948519", "0.59400195", "0.5938525", "0.5934117", "0.59265333", "0.59234226", "0.5914584", "0.59101", "0.59028465", "0.5899152", "0.5899066", "0.5898369", "0.5894846", "0.5885952", "0.58858496", "0.5885302", "0.5884983", "0.588261", "0.5880565", "0.58746296", "0.58731943", "0.58705676", "0.5869016", "0.5868645", "0.5861923", "0.58595717", "0.58585", "0.5853802", "0.5849933", "0.5848891", "0.5844012", "0.58397543", "0.5833806", "0.58333737", "0.582359", "0.582168", "0.5812869", "0.5808481", "0.5808481", "0.5806483", "0.5806483", "0.5806483", "0.5805934", "0.5805315" ]
0.0
-1
Find object by primary key.
protected function findPkComplex($key, ConnectionInterface $con) { // As the query uses a PK condition, no limit(1) is necessary. $criteria = $this->isKeepQuery() ? clone $this : $this; $dataFetcher = $criteria ->filterByPrimaryKey($key) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function returnFindByPK($id);", "public abstract function find($primary_key, $model);", "public static function find($primary_key)\n {\n return static::select()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fetchOne();\n }", "public static function find($id, $key = 'id');", "public function returnDetailFindByPK($id);", "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "public function findById($primaryKeyValue){\n //Select* From employers Where $this->primaryKey(noemp)=$primaryKeyValue(1000)\n $array = $this->findWhere($this->primaryKey. \"=$primaryKeyValue\");\n if (count($array) != 1 ) die (\"The ID $primaryKeyValue is not valid\");\n return $array[0];\n }", "public static function findByPrimaryKey($primary_key)\n {\n return self::find($primary_key);\n }", "public function find($primaryValue);", "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "public function find($id, $primary_key = 'id') {\r\n $this->where(array($primary_key => $id));\r\n\r\n if (!is_array($id)) {\r\n return $this->first();\r\n }\r\n\r\n return $this->execute();\r\n }", "function find($id);", "public static function find_by_id($id){\n static::setConnection();\n $table = static::$table;\n $keyColumn = static::$keyColumn;\n $sql = \"SELECT * FROM \".$table.\" WHERE \".$keyColumn.\" = \".$id;\n $res = mysqli_query(static::$conn,$sql);\n $row = mysqli_fetch_object($res,get_called_class());\n return $row;\n }", "abstract public function find($id);", "public function fetch($primaryKey);", "public static function find( $primaryKey )\n\t{\n\t\tself::init();\n\t\t\n\t\t// Select one item by primary key in Database\n\t\t$result = Database::selectOne(\"SELECT * FROM `\" . static::$table . \"` WHERE `\" . static::$primaryKey . \"` = ?\", $primaryKey);\t\t\n\t\tif( $result == null )\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Create & return new object of Model\n\t\treturn self::newItem($result);\n\t}", "function findById($id);", "public function find(int $key);", "public static function find($id);", "public function returnMoreFindByPK($id);", "public function findById($id)\n {\n $sql = $this->getSelectStatement() . ' WHERE ' . $this->getPrimaryKeyName() . '=:id';\n \n $statement = DatabaseHelper::runQuery($this->connection, $sql, array(':key'=> $key));\n return $statement->fetch();\n }", "public function findByPk($primary)\n {\n $stmt = $this->Adapter->prepare(\"SELECT * FROM $this->table WHERE $this->primaryName=:id\");\n $stmt->execute(['id' => $primary]);\n return $stmt->fetch($this->pdoFetch);\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `USER_ID`, `NAME`, `DESCRIPTION`, `BARE_PATH`, `CLONE_PATH`, `FORKED_FROM_ID`, `FORKED_AT`, `CREATED_AT`, `UPDATED_AT` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findById() {\n // TODO: Implement findById() method.\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DropboxPersonPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public static function findById($id);", "public function findByID($id){\n return $this->Find(self::TABLE,$id);\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `NAME`, `VALUE`, `REMOTE` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "static function retrieveByPK($id) {\n\t\treturn static::retrieveByPKs($id);\n\t}", "public function find( $id );", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function find($id);", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function find ($key);", "abstract function getPrimaryKey();", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = PersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function find(int $id) ;", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_AddressPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_AddressPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n if ($rs->EOF) {\n return null;\n }\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "public function findFirstByKey($key);", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ExpositorFeriaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = afGuardUserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(afGuardUserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CardPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CardPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PeliculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PeliculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CastlesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CastlesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ProveedormarcaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ProveedormarcaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function find($arg) {\n if ($arg instanceof IFilterable) {\n $condition = $arg->resultFilter();\n } else {\n $condition = $this->getPrimaryKeyCondition($arg);\n }\n \n $this->_dataHandler->select('*', $this->_table, $condition);\n return $this->_dataHandler->fetchObject();\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RemoteAppPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(RemoteAppPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findById ($id);", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Routes2011Peer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Routes2011Peer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MenuPersonaPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SearchIndexPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SearchIndexPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = BitacoraAccesoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(BitacoraAccesoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AdvogadoAreaAdvocaciaPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AdvogadoAreaAdvocaciaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AnotacaoCasoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AnotacaoCasoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = UnitPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UnitPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function find($id){\n return parent::find($this->table, $id);\n }", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `ID_API_ID`, `ID_NAME`, `ID_EMAIL`, `ID_FBID`, `CDATE`, `MDATE`, `ID_TWID`, `ID_IMAGE` FROM `invite_detail` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new InviteDetail();\n\t\t\t$obj->hydrate($row);\n\t\t\tInviteDetailPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ArtistPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ArtistPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RespuestaItemPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = LpPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = AnakPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(AnakPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "public function findEntity($id);", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = ClubMeetingsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(ClubMeetingsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `page_id`, `path`, `language_id`, `link_text`, `page_title`, `created_at`, `updated_at`, `created_by`, `updated_by` FROM `search_index` WHERE `id` = :p0 AND `language_id` = :p1';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT);\n $stmt->bindValue(':p1', $key[1], PDO::PARAM_STR);\n $stmt->execute();\n } catch (Exception $e) {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new SearchIndex();\n $obj->hydrate($row);\n SearchIndexPeer::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1])));\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "public function find($primary)\n {\n if (isset($this->models[$primary])) {\n return $this->models[$primary];\n }\n\n return;\n }", "public function findByPK($id) {\n // prepare SELECT statement\n $statement = $this->pdo->prepare('SELECT id, symbol, company\n FROM stocks\n WHERE id = :id');\n // bind value to the :id parameter\n $stmt->bindValue(':id', $id);\n \n // execute the statement\n $stmt->execute();\n \n // return the result set as an object\n return $stmt->fetchObject();\n }", "public function findByPK($id) {\n // prepare SELECT statement\n $stmt = $this->pdo->prepare('SELECT id, symbol, company\n FROM stocks\n WHERE id = :id');\n // bind value to the :id parameter\n $stmt->bindValue(':id', $id);\n \n // execute the statement\n $stmt->execute();\n \n // return the result set as an object\n return $stmt->fetchObject();\n }", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DomainCheckPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = InviteDetailPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(InviteDetailPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_ProductPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_ProductPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ActividadPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}" ]
[ "0.81539774", "0.7867759", "0.7742976", "0.7725865", "0.7634623", "0.7554392", "0.7401224", "0.7310899", "0.7229907", "0.7208223", "0.7153336", "0.7110828", "0.7093999", "0.707613", "0.70712215", "0.7046294", "0.7036454", "0.70232224", "0.69681656", "0.6949603", "0.69344795", "0.6927912", "0.69063175", "0.68736976", "0.6870698", "0.68536013", "0.68214136", "0.6821119", "0.6817394", "0.6781578", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6778138", "0.6776677", "0.6776677", "0.67640674", "0.67578286", "0.67408067", "0.67408067", "0.6738442", "0.669", "0.6687912", "0.6680633", "0.66550416", "0.6651245", "0.66409177", "0.6625536", "0.66194665", "0.66165847", "0.6615172", "0.6612764", "0.6609358", "0.66090894", "0.6608444", "0.66075665", "0.66075665", "0.66075665", "0.6603161", "0.65901697", "0.65897304", "0.65881985", "0.65873367", "0.658688", "0.6586724", "0.6583685", "0.65821403", "0.65815455", "0.65790266", "0.65765196", "0.65749216", "0.6570416", "0.6569202", "0.65614", "0.6544074", "0.65415436", "0.6541106", "0.6539593", "0.6536723", "0.65362525", "0.6535643", "0.653309" ]
0.0
-1
Find objects by primary key $objs = $c>findPks(array(12, 56, 832), $con);
public function findPks($keys, ConnectionInterface $con = null) { if (null === $con) { $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); } $this->basePreSelect($con); $criteria = $this->isKeepQuery() ? clone $this : $this; $dataFetcher = $criteria ->filterByPrimaryKeys($keys) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->format($dataFetcher); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\t\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\r\n\t{\t\r\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\treturn $this\r\n\t\t\t->filterByPrimaryKeys($keys)\r\n\t\t\t->find($con);\r\n\t}", "public function findPks($keys, $con = null)\r\n\t{\t\r\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\treturn $this\r\n\t\t\t->filterByPrimaryKeys($keys)\r\n\t\t\t->find($con);\r\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\treturn $this\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->find($con);\n\t}", "public function findPks($keys, $con = null)\r\n\t{\r\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\treturn $this\r\n\t\t\t->filterByPrimaryKeys($keys)\r\n\t\t\t->find($con);\r\n\t}", "public function returnMoreFindByPK($id);", "public function findPks($keys, $con = null)\n {\n if ($con === null)\n {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public function findPks($keys, $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t$stmt = $criteria\n\t\t\t->filterByPrimaryKeys($keys)\n\t\t\t->doSelect($con);\n\t\treturn $criteria->getFormatter()->init($criteria)->format($stmt);\n\t}", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n\t{\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(MissionPhotoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$objs = null;\n\t\tif (empty($pks)) {\n\t\t\t$objs = array();\n\t\t} else {\n\t\t\t$criteria = new Criteria(MissionPhotoPeer::DATABASE_NAME);\n\t\t\t$criteria->add(MissionPhotoPeer::ID, $pks, Criteria::IN);\n\t\t\t$objs = MissionPhotoPeer::doSelect($criteria, $con);\n\t\t}\n\t\treturn $objs;\n\t}", "public function returnFindByPK($id);", "public static function retrieveByPKs($pks, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(SertifikasiPdPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $objs = null;\n if (empty($pks)) {\n $objs = array();\n } else {\n $criteria = new Criteria(SertifikasiPdPeer::DATABASE_NAME);\n $criteria->add(SertifikasiPdPeer::ID_SERT_PD, $pks, Criteria::IN);\n $objs = SertifikasiPdPeer::doSelect($criteria, $con);\n }\n\n return $objs;\n }", "public function fetchByPrimaryKey($pk){\n\t\t$sql = \"SELECT * FROM \".$this->_tableName.\" WHERE \".$this->_primaryKeyColumn.\"=?\";\n\n\t\ttry{\n\t\t\t$resultArray = $this->_dbConnection->fetchAssoc($sql, array($pk));\n\t\t} catch (\\Exception $e){\n\t\t\t$resultArray = array();\n\t\t}\n\t\t\n\t\treturn $resultArray;\n\t}", "public function retrieveByPKsTableProxy($pPks) {\n $q = $lInvoker->getQuery()->where('id IN ?', $pPks);\n\n return $q->fetch();\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }", "public function findPks($keys, $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKeys($keys)\n ->doSelect($con);\n\n return $criteria->getFormatter()->init($criteria)->format($stmt);\n }" ]
[ "0.72084314", "0.7026247", "0.7026247", "0.7026247", "0.7026247", "0.7026247", "0.7026247", "0.7026247", "0.7026247", "0.7026247", "0.7009533", "0.7009533", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.6912297", "0.684629", "0.65881944", "0.64995486", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.64906013", "0.63921756", "0.6358361", "0.63117075", "0.6252259", "0.62300146", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658", "0.6223658" ]
0.0
-1
Filter the query by primary key
public function filterByPrimaryKey($key) { return $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $key, Criteria::EQUAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n throw new LogicException('The Egive object has no primary key');\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(MantenimientoPeer::ID_AUTO, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_PERSONA, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(AnotacaoCasoPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $key, Criteria::EQUAL);\n\t}", "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ExpositorFeriaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AlumnoTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(MateriaTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(SocioTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PeliculaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ArticlesPropelTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RespuestaItemPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(UserPeer::UID, $key, Criteria::EQUAL);\n\t}", "protected function sqlKeyFilter()\n\t{\n\t\treturn \"`id` = @id@\";\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(GoodsInSalePeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(afGuardUserPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AutenticacaoTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ProductoPeer::ID_PRODUCTO, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(LyricTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\r\n\t{\r\n\t\treturn $this->addUsingAlias(PersonaCastingPeer::ID, $key, Criteria::EQUAL);\r\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(TrabajosTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AnakPeer::ANAK_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(CardPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(TblAdherentPeer::ID_ADHERENT, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_AddressPeer::ID_ADDRESS, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ProveedormarcaPeer::IDPROVEEDORMARCA, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(UsuarioHorarioPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(DomainCheckPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(BitacoraAccesoPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(CalendarPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(MesaPeer::ID_MESA, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(CastlesPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\r\n\t{\r\n\t\treturn $this->addUsingAlias(ScoutImportPeer::ID, $key, Criteria::EQUAL);\r\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(UserPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(UserPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(EafFormInfoPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(sfGuardUserPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\r\n\t{\r\n\t\treturn $this->addUsingAlias(AdvertisementPeer::ID, $key, Criteria::EQUAL);\r\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientiTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_ProductPeer::ID_PRODUCT, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(MonedaPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ArticleTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n throw new LogicException('The Map object has no primary key');\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(RemAanvraagTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "private static function genPrimaryKeyWhereClause() {\n return \"WHERE \" . self::ID_KEY . \"=\" . self::transformForPreparedStatement(self::ID_KEY);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(EmployeeTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(EmployeeTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(DireccionRequerimientoPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(NegocioPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(UsuarioPerfilPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(PlanPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientPrestationsPeer::CL_PREST_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(InviteDetailPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AbuthInvoicesTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ContactPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AliHoldheadTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ProfessorTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(QuizPeer::ID, $key, Criteria::EQUAL);\n\t}", "abstract function getPrimaryKey();", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RegistrationPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(RemoteAppPeer::ID, $key, Criteria::EQUAL);\n }", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(BookTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function fetch($primaryKey);", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(SettingPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(PlansTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AliFmbonusTableMap::COL_AID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(UnitPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AliSmbonusTableMap::COL_AID, $key, Criteria::EQUAL);\n }", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(OrdencompradetallePeer::IDORDENCOMPRADETALLE, $key, Criteria::EQUAL);\n }", "abstract public function primaryKey(): string;", "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_identification\n\t\t\t\tWHERE idf_id=?\";\n\t\t$this->db->query($sql, array($this->idf_id));\n\t\treturn $query;\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(TemplateUnPeer::TEMPLATE_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(RemoteHistoryContaoPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(MenuPersonaPeer::ID_MENU_PERSONA, $key, Criteria::EQUAL);\n\t}", "function isPrimaryKey(): bool;", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(MentorTableMap::COL_MENTOR_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(UserTableMap::COL_CODE, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ArticleTableMap::COL_ART_NUM, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(DegressifProductsTableMap::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(Routes2011Peer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(TranslationContentPeer::ID, $key, Criteria::EQUAL);\n }", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "public function filterByPrimaryKey($key)\n {\n throw new LogicException('The JaAclUsuariosPerfiles object has no primary key');\n }", "public function returnFindByPK($id);", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FoodTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}" ]
[ "0.69991887", "0.69991887", "0.67881906", "0.67727506", "0.6746357", "0.6727411", "0.6715742", "0.6699015", "0.66762334", "0.66304606", "0.6589114", "0.6561384", "0.65595937", "0.65463", "0.64767", "0.6468148", "0.6443785", "0.6442517", "0.6435018", "0.6431353", "0.64259726", "0.64192474", "0.6419247", "0.64109844", "0.6393937", "0.6388459", "0.63577425", "0.63517517", "0.63433176", "0.6342132", "0.6341357", "0.6334405", "0.633339", "0.63331395", "0.632223", "0.6310688", "0.63028103", "0.6293048", "0.6293048", "0.6292057", "0.6291476", "0.62895477", "0.6284391", "0.6284108", "0.62550724", "0.6246141", "0.6244734", "0.62354136", "0.62246394", "0.6221082", "0.6213213", "0.6213213", "0.6202337", "0.62022495", "0.6200173", "0.61957216", "0.61737573", "0.6171396", "0.6169639", "0.6169162", "0.6162825", "0.6151227", "0.6143391", "0.6130795", "0.6118927", "0.6088307", "0.6076196", "0.6076196", "0.6060527", "0.60425425", "0.60383415", "0.60358864", "0.6032512", "0.60290533", "0.60262406", "0.60242856", "0.6021484", "0.602019", "0.5993752", "0.59926206", "0.59812844", "0.5975016", "0.5964885", "0.5960204", "0.59576505", "0.59446084", "0.5938169", "0.5925637", "0.5925439", "0.5921473", "0.5909171", "0.59085935", "0.5906464", "0.59051675", "0.58945185", "0.5885674", "0.5885674", "0.5885674", "0.58833104", "0.5877784" ]
0.5879483
99
Filter the query by a list of primary keys
public function filterByPrimaryKeys($keys) { return $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $keys, Criteria::IN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RespuestaItemPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(PeliculaPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ExpositorFeriaPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(CastlesPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(GoodsInSalePeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\r\n\t{\r\n\t\treturn $this->addUsingAlias(AdvertisementPeer::ID, $keys, Criteria::IN);\r\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_PERSONA, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(AnotacaoCasoPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ArticlesPropelTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(MateriaTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\r\n\t{\r\n\t\treturn $this->addUsingAlias(PersonaCastingPeer::ID, $keys, Criteria::IN);\r\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(CalendarPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\r\n\t{\r\n\t\treturn $this->addUsingAlias(ScoutImportPeer::ID, $keys, Criteria::IN);\r\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(FoodTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(MantenimientoPeer::ID_AUTO, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AlumnoTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ClientPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_AddressPeer::ID_ADDRESS, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(BookTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(InviteDetailPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(LyricTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(SettingPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(EmployeeTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(EmployeeTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(QuizPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(MonedaPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ArticleTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RegistrationPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(SocioTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ContactPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AutenticacaoTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ClubMeetingsPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ClientiTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(CardPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(PlanPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(afGuardUserPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(TrabajosTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(UserPeer::UID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(DomainCheckPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(UnitPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(PlansTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(MentorTableMap::COL_MENTOR_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ProductoPeer::ID_PRODUCTO, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_ProductPeer::ID_PRODUCT, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(RemAanvraagTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(DireccionRequerimientoPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(CustomerTableMap::COL_CUSTOMER_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(UserPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(UserPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ProveedormarcaPeer::IDPROVEEDORMARCA, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(TblAdherentPeer::ID_ADHERENT, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AbuthInvoicesTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(DegressifProductsTableMap::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(Routes2011Peer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AliHoldheadTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(RemoteAppPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ProfessorTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(UsuarioHorarioPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(BitacoraAccesoPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(PhotosPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(UsuarioPerfilPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(sfGuardUserPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(DebaucheTableMap::COL_DEBAUCHE_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ClientPrestationsPeer::CL_PREST_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(TeamTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(TorrentTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(NegocioPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ZipToCityPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(MesaPeer::ID_MESA, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(TranslationContentPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AnakPeer::ANAK_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(SuitsTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(MigrationPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(GroupTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(EafFormInfoPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(FreeShippingPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(SchoolPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ArticleTableMap::COL_ART_NUM, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AliGmbonusTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AliFmbonusTableMap::COL_AID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(RemoteHistoryContaoPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AliSmbonusTableMap::COL_AID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RoleactionPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ClientStateTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(AccountTableMap::COL_ID_ACCOUNT, $keys, Criteria::IN);\n }", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(OrdencompradetallePeer::IDORDENCOMPRADETALLE, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(TemplateUnPeer::TEMPLATE_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(GuildTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(TestEvalTableMap::COL_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(DocumentTableMap::COL_DOC_NUM, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(VoipTableMap::COL_VOID_ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ForumPostPeer::POST_ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(StartgroupTableMap::COL_ID, $keys, Criteria::IN);\n }" ]
[ "0.71646", "0.71553826", "0.71553826", "0.70211303", "0.69700336", "0.6964152", "0.6959337", "0.6957887", "0.69565123", "0.69475883", "0.6936647", "0.69334376", "0.69142634", "0.68992543", "0.68960387", "0.6879217", "0.6863628", "0.68526083", "0.68505305", "0.6816923", "0.6807811", "0.6807003", "0.6805888", "0.68002754", "0.6797444", "0.6792497", "0.6781825", "0.6781825", "0.67749375", "0.6761975", "0.6757676", "0.67441213", "0.6743103", "0.6740115", "0.67331564", "0.6718832", "0.6706989", "0.6690869", "0.66812307", "0.66771156", "0.6669347", "0.6668749", "0.66646", "0.66559106", "0.6654984", "0.66486484", "0.6647794", "0.66400397", "0.6631641", "0.6628739", "0.6627691", "0.66273695", "0.66273695", "0.6616323", "0.6605562", "0.65831226", "0.65693736", "0.6569003", "0.65599", "0.65579456", "0.6549854", "0.65411043", "0.6539774", "0.65388745", "0.6534443", "0.6531426", "0.65288705", "0.6525048", "0.65177673", "0.65101355", "0.6509609", "0.6503797", "0.6494439", "0.64886063", "0.6486606", "0.6474642", "0.6455945", "0.645156", "0.6449331", "0.6445573", "0.64355814", "0.6428569", "0.6426456", "0.6424233", "0.6422351", "0.64135873", "0.6410783", "0.64007366", "0.6397005", "0.63886636", "0.6377113", "0.6340563", "0.6303224", "0.63005924", "0.62804747", "0.6265898", "0.6264916", "0.6258278", "0.6250696", "0.6248441" ]
0.6345258
91
Filter the query on the indx_part column Example usage: $query>filterByIDPart(1234); // WHERE indx_part = 1234 $query>filterByIDPart(array(12, 34)); // WHERE indx_part IN (12, 34) $query>filterByIDPart(array('min' => 12)); // WHERE indx_part > 12
public function filterByIDPart($iDPart = null, $comparison = null) { if (is_array($iDPart)) { $useMinMax = false; if (isset($iDPart['min'])) { $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $iDPart['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($iDPart['max'])) { $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $iDPart['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $iDPart, $comparison); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index($id, $id_part, $id_match)\n {\n //\n }", "private function getPart($part)\n {\n $result = null;\n\n $array_part = preg_replace('/.*\\[(.*)\\]/', '$1', $part);\n $filters = explode('|',$array_part);\n $array_part = $filters[0]; // Temporary fix for future filters, now only first row will be returned\n\n $part = preg_replace('/\\[.*\\]/', '', $part);\n\n if (is_object($this->result) && property_exists($this->result, $part)) {\n if (preg_match('/\\=/', $array_part)) {\n list($name, $value) = explode('=', $array_part);\n foreach ($this->result->$part as $key => $item) {\n $d = self::load($item);\n if ($d->get($name) == $value) {\n $result = $item;\n break;\n }\n }\n } elseif ($array_part != $part && is_array($this->result->$part)) {\n if (ctype_digit($array_part)) {\n $array = $this->result->$part; // 5.6 compatibility issue\n $result = $array[$array_part];\n }\n } else {\n $result = $this->result->$part;\n }\n }\n return $result;\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $key, Criteria::EQUAL);\n }", "function get_available_parts_nochild($part_id, $version, $relationID = \"NA\") {\n // Database connection \n $conn = database_connection();\n global $GEB_KIND_OF_PART_ID;\n global $VFAT2_TO_GEB;\n global $OPTOHYBRID_TO_GEB;\n\n // as GEB has 25 childs not only 1 ( 24 VFAT & 1 OptoHybrid ) we need to FILTER GEBs and create a specific Query for it\n if ($part_id == $GEB_KIND_OF_PART_ID) {\n // Filtering GEBs that has less than 24 VFATS childs\n if ($relationID != \"NA\" && $relationID == $VFAT2_TO_GEB) {\n $sql = \"SELECT PART_ID , SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS P1\n WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND IS_RECORD_DELETED = 'F'\n AND (select COUNT(PART_PARENT_ID) from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE WHERE PART_PARENT_ID = P1.PART_ID AND RELATIONSHIP_ID ='\".$relationID.\"' ) < 24\n ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\";\n }\n // Filtering GEBs that has less than 1 OptoHybrid Child\n if ($relationID != \"NA\" && $relationID == $OPTOHYBRID_TO_GEB) {\n $sql = \"SELECT PART_ID , SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS P1\n WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND IS_RECORD_DELETED = 'F'\n AND (select COUNT(PART_PARENT_ID) from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE WHERE PART_PARENT_ID = P1.PART_ID AND RELATIONSHIP_ID ='\".$relationID.\"' ) < 1\n ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\";\n }\n } \n // Other part Like Readout ( has only one GEB child ) so check will be only on confirming that \n // there is no current entry for this Readout in Tree table as a parent (i.e: can attatch child to it)\n else { \n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND IS_RECORD_DELETED = 'F' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND PART_ID not in (select PART_PARENT_ID from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE) ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\"; //select data or insert data \n }\n\n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result_arr = array();\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n echo '<li><a href=\"#\" class=\"availablepart\" >' . $row['SERIAL_NUMBER'] . '</a></li>';\n\n// $temp['man_id']= $row['MANUFACTURER_ID'];\n// $temp['man_name']= $row['MANUFACTURER_NAME'];\n// $result_arr[] = $temp;\n }\n return 1;\n}", "public function filterByPart_id_FK($part_id_FK = null, $comparison = null)\n {\n if (is_array($part_id_FK)) {\n $useMinMax = false;\n if (isset($part_id_FK['min'])) {\n $this->addUsingAlias(DocumentTableMap::COL_PART_ID_FK, $part_id_FK['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($part_id_FK['max'])) {\n $this->addUsingAlias(DocumentTableMap::COL_PART_ID_FK, $part_id_FK['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(DocumentTableMap::COL_PART_ID_FK, $part_id_FK, $comparison);\n }", "public function rawFilter($filter) {\n\t\t$query = InventorySummary::orderBy('Client_SKU', 'asc');\n\t\tif(isset($filter['objectID']) && strlen($filter['objectID']) > 3) {\n\t\t\t$query = $query->where('objectID', 'like', $filter['objectID'] . '%');\n\t\t}\n\t\tif(isset($filter['Client_SKU']) && strlen($filter['Client_SKU']) > 3) {\n\t\t\t$query = $query->where('Client_SKU', 'like', $filter['Client_SKU'] . '%');\n\t\t}\n\t\tif(isset($filter['Description']) && strlen($filter['Description']) > 3) {\n\t\t\t$query = $query->where('Description', 'like', $filter['Description'] . '%');\n\t\t}\n\n /*\n * Pick face quantity choices\n */\n if(isset($filter['pickQty_rb'])) {\n if($filter['pickQty_rb'] == 'zero') {\n $query = $query->where('pickQty', '=', '0');\n } elseif($filter['pickQty_rb'] == 'belowMin') {\n $query = $query->where('pickQty', '<', '3');\n } elseif($filter['pickQty_rb'] == 'aboveMin') {\n $query = $query->where('pickQty', '>', '2');\n }\n }\n\n /*\n * Activity location quantity choices\n */\n if(isset($filter['actQty_rb'])) {\n if($filter['actQty_rb'] == 'zero') {\n $query = $query->where('actQty', '=', '0');\n } elseif($filter['actQty_rb'] == 'aboveZero') {\n $query = $query->where('actQty', '>', '0');\n }\n }\n\n /*\n * Reserve quantity choices\n */\n if(isset($filter['resQty_rb'])) {\n if($filter['resQty_rb'] == 'zero') {\n $query = $query->where('resQty', '=', '0');\n } elseif($filter['resQty_rb'] == 'aboveZero') {\n $query = $query->where('resQty', '>', '0');\n }\n }\n\n /*\n * Replen Priority choices\n */\n if(isset($filter['replenPrty_cb_noReplen'])\n or isset($filter['replenPrty_cb_20orBelow'])\n or isset($filter['replenPrty_cb_40orBelow'])\n or isset($filter['replenPrty_cb_60orBelow'])) {\n $query->where(function ($query) use ($filter) {\n if (isset($filter['replenPrty_cb_noReplen']) && $filter['replenPrty_cb_noReplen'] == 'on') {\n $query->orWhereNull('replenPrty')\n ->orWhere('replenPrty', '=', '0');\n }\n if (isset($filter['replenPrty_cb_20orBelow']) && $filter['replenPrty_cb_20orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['1', '20']);\n }\n if (isset($filter['replenPrty_cb_40orBelow']) && $filter['replenPrty_cb_40orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['21', '40']);\n }\n if (isset($filter['replenPrty_cb_60orBelow']) && $filter['replenPrty_cb_60orBelow'] == 'on') {\n $query->orWhereBetween('replenPrty', ['41', '60']);\n }\n });\n }\n //dd(__METHOD__.\"(\".__LINE__.\")\", compact('filter', 'query'));\n\n\t\tif(isset($filter['created_at']) && strlen($filter['created_at']) > 1) {\n\t\t\t$query = $query->where('created_at', 'like', $filter['created_at'] . '%');\n\t\t}\n\t\tif(isset($filter['updated_at']) && strlen($filter['updated_at']) > 1) {\n\t\t\t$query = $query->where('updated_at', 'like', $filter['updated_at'] . '%');\n\t\t}\n return $query;\n }", "public function retrieveWithWorksByPart($id_part,$queryBuilder = false)\n {\n $query = $this->retrieve(true)\n ->select('t,w')\n ->leftjoin('t.works','w')\n ->where('t.part = :id_part')\n ->orderBy('t.rank', 'ASC')\n ->setParameter('id_part',$id_part);\n ;\n\n return $this->dispatch($query, $queryBuilder);\n }", "function accesrestreint_articles_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('NOT IN','$primary','('.sql_get_select('zzza.id_article','spip_articles as zzza',\".accesrestreint_rubriques_accessibles_where('zzza.id_rubrique','',$_publique).\",'','','','',\\$connect).')')\";\r\n\t#return array('SUBSELECT','id_article','spip_articles',array(\".accesrestreint_rubriques_accessibles_where('id_rubrique').\")))\";\r\n}", "function getColumnFilter ( &$where = array(),\n $table,\n $column,\n $columnLogicOpr,\n $minOper,\n $minValue,\n $rangeLogicOper,\n $maxOper,\n $maxValue ) {\n if ( ($minOper != \"\" and $minValue != \"\") and ( $maxValue == \"\" )) {\n $where[] = \"$columnLogicOpr \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue\";\n }\n // Assign just the max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ( $minValue == \"\") ) {\n $where[] = \"$columnLogicOpr \". self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue\";\n }\n\t// Assign both min and max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ($minOper != \"\" and $minValue != \"\") ) {\n $where[] = \"$columnLogicOpr ( \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue $rangeLogicOper \".\n self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue )\";\n }\n }", "public static function tableID_part($tableID, $partID){\n if($partID != false && $partID != 1){\n $tableID = $partID.\"_\".$tableID;\n }\n \n return $tableID;\n }", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "public function checkPartAJAX($id, $pid, $part){\n $query = \"\n SELECT\n `structure_data`.`part`\n FROM\n `structure`,\n `structure_data`\n WHERE\n `structure`.`pid` = '\".$pid.\"' &&\n `structure`.`id` NOT IN ('\".$id.\"') &&\n `structure_data`.`part` = '\".$part.\"' &&\n `structure`.`id` = `structure_data`.`id`\n \";\n\n if(mysql_num_rows(mysql_query($query)) > 0){\n return 'false';\n }else{\n return 'true';\n };\n }", "function accesrestreint_documents_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('IN','$primary','('.sql_get_select('zzz.id_document','spip_documents_liens as zzz',\r\n\tarray(array('OR',\r\n\t\tarray('OR',\r\n\t\t\tarray('AND','zzz.objet=\\'rubrique\\'',\".accesrestreint_rubriques_accessibles_where('zzz.id_objet','NOT',$_publique).\"),\r\n\t\t\tarray('AND','zzz.objet=\\'article\\'',\".accesrestreint_articles_accessibles_where('zzz.id_objet',$_publique).\")\r\n\t\t),\r\n\t\t\tarray('AND','zzz.objet=\\'breve\\'',\".accesrestreint_breves_accessibles_where('zzz.id_objet',$_publique).\")\r\n\t))\"\r\n\t.\",'','','','',\\$connect).')')\";\r\n\t/*return \"array('IN','$primary',array('SUBSELECT','id_document','spip_documents_liens',\r\n\tarray(array('OR',\r\n\t\tarray('OR',\r\n\t\t\tarray('AND','objet=\\'rubrique\\'',\".accesrestreint_rubriques_accessibles_where('id_objet').\"),\r\n\t\t\tarray('AND','objet=\\'article\\'',\".accesrestreint_articles_accessibles_where('id_objet').\")\r\n\t\t),\r\n\t\t\tarray('AND','objet=\\'breve\\'',\".accesrestreint_breves_accessibles_where('id_objet').\")\r\n\t))\r\n\t))\";*/\r\n}", "function accesrestreint_breves_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('NOT IN','$primary','('.sql_get_select('zzzb.id_breve','spip_breves as zzzb',\".accesrestreint_rubriques_accessibles_where('zzzb.id_rubrique','',$_publique).\",'','','','',\\$connect).')')\";\r\n\t#return \"array('IN','$primary',array('SUBSELECT','id_breve','spip_breves',array(\".accesrestreint_rubriques_accessibles_where('id_rubrique').\")))\";\r\n}", "public static function getPartRowSetsByLowerPrice($table = null, $typeid = null, $id = null) {\r\n\t\t$partRowSets = NULL;\r\n\t\ttry {\r\n\t\t\t$db = Database::getDB ();\r\n\t\t\t//$query = \"SELECT * FROM :$table WHERE (\";//= :$id)\";\r\n\t\t\t//$query = \"SELECT * FROM harddrives WHERE (hdriveId = $id)\";\r\n\t\t\t//\"harddrives\", \"hdriveId\", \"1hdd05\"\r\n\t\r\n\t\t\t//if (strcmp($typeid, \"hdriveId\") == 0)\r\n\t\t\t//\t$query = $query.\"hdriveId\";\r\n\t\t\t\t\r\n\t\t\t//$query = $query.\" = :$id)\";\r\n\t\t\t\t\r\n\t\t\t//$query = \"SELECT * FROM harddrives WHERE (hdriveId = '1hdd05')\";\r\n\t\t\t$query = \"SELECT * FROM \".$table.\" WHERE (\".$typeid.\" <= '\".$id.\"')\";\r\n\t\r\n\t\t\t$statement = $db->prepare($query);\r\n\t\t\t//$statement->bindParam(\":$table\", $table);\r\n\t\t\t//$statement->bindParam(\":$typeid\", $typeid);\r\n\t\t\t//$statement->bindParam(\":$id\", $id);\r\n\t\t\t$statement->execute ();\r\n\t\t\t\t\r\n\t\t\t$partRowSets = $statement->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\t$statement->closeCursor ();\r\n\t\t} catch (Exception $e) { // Not permanent error handling\r\n\t\t\techo \"<p>Error getting part rows by $type: \" . $e->getMessage () . \"</p>\";\r\n\t\t}\r\n\t\treturn $partRowSets;\r\n\t}", "function accesrestreint_rubriques_accessibles_where($primary,$not='NOT', $_publique=''){\r\n\tif (!$_publique) $_publique = \"!test_espace_prive()\";\r\n\treturn \"sql_in('$primary', accesrestreint_liste_rubriques_exclues($_publique), '$not')\";\r\n}", "function createObjectFilter($opt) {\n\textract($opt);\n\n\t//make an array if we only have a singular column value\n\tif (is_array($object_filter)) $str = implode(\",\",$object_filter);\n\telse $str = $object_filter;\n\n\t$sql = \"SELECT id FROM docmgr.dm_object WHERE id IN (\".$str.\")\";\n\n\treturn $sql;\n\n}", "function automap_filter_by_ids(&$obj, $params = null) {\n if(isset($params['filter_by_ids']) && $params['filter_by_ids'] != '') {\n $allowed_ids = array_flip(explode(',', $params['filter_by_ids']));\n automap_filter_tree($allowed_ids, $obj);\n }\n}", "function accesrestreint_syndic_articles_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('NOT IN','$primary','('.sql_get_select('zzzs.id_syndic','spip_syndic as zzzs',\".accesrestreint_rubriques_accessibles_where('zzzs.id_rubrique','',$_publique).\",'','','','',\\$connect).')')\";\r\n\t#return \"array('IN','$primary',array('SUBSELECT','id_syndic','spip_syndic',array(\".accesrestreint_rubriques_accessibles_where('id_rubrique').\")))\";\r\n}", "function get_available_parts($part_id, $version) {\n // Database connection \n $conn = database_connection();\n\n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND IS_RECORD_DELETED = 'F' AND PART_ID not in (select PART_ID from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE) ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\"; //select data or insert data \n\n\n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result_arr = array();\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n echo '<li><a href=\"#\" class=\"availablepart\" >' . $row['SERIAL_NUMBER'] . '</a></li>';\n\n// $temp['man_id']= $row['MANUFACTURER_ID'];\n// $temp['man_name']= $row['MANUFACTURER_NAME'];\n// $result_arr[] = $temp;\n }\n return 1;\n}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function getPart($index, PartFilter $filter = null)\n {\n $parts = $this->getAllParts($filter);\n if (!isset($parts[$index])) {\n return null;\n }\n return $parts[$index];\n }", "protected function constructWhereClausePart($queryPart, $values) {\n \n $parameters = array(); \n \n// $where = 'WHERE $X{IN,hs_hr_employee.emp_firstname,firstName} AND $X{IN,hs_hr_employee.emp_lastname,lastName}';\n $pattern = '/\\$X\\{(.*?)\\}/';\n\n $callback = function($matches) use ($values, &$parameters) {\n $val = explode(\",\", $matches[1]);\n \n // $X{VAR,name}\n \n if ((count($val) == 2 && $val[0] == 'VAR')) {\n \n $operator = $val[0];\n $name = $val[1]; \n } else {\n \n if (count($val) < 3) { \n throw new ReportException('Invalid filter definition: ' . $matches[0]);\n }\n \n $operator = $val[0];\n $field = $val[1];\n $name = $val[2]; \n }\n \n // If no value defined for this filter, ignore it (filter is set to true)\n if (!isset($values[$name]) || is_null($values[$name])) {\n return \"true\";\n }\n if ($operator == 'IN') {\n \n $valueArray = $values[$name];\n \n if (!is_array($valueArray) && is_string($valueArray)) {\n $valueArray = explode(',', $valueArray);\n }\n if (!is_array($valueArray) || count($valueArray) == 0) {\n return \"true\";\n } \n\n $placeHolders = rtrim(str_repeat('?,', count($valueArray)), ',');\n $clause = $field . \" IN (\" . $placeHolders . \")\";\n \n $parameters = array_merge($parameters, $valueArray);\n\n } else if ($operator == '=') {\n $clause = $field . ' = ?';\n $parameters[] = $values[$name];\n \n } else if ($operator == 'BETWEEN') {\n $clause = $field . ' BETWEEN ? AND ?';\n $parameters[] = $values[$name]['from'];\n $parameters[] = $values[$name]['to'];\n } else if ($operator == '>') {\n $clause = $field . ' > ?';\n $parameters[] = $values[$name];\n } else if ($operator == '<') {\n $clause = $field . ' < ?';\n $parameters[] = $values[$name];\n } else if ($operator == '>=') {\n $clause = $field . ' >= ?';\n $parameters[] = $values[$name];\n } else if ($operator == '<=') {\n $clause = $field . ' <= ?';\n $parameters[] = $values[$name];\n } else if ($operator == 'IS NOT NULL') {\n if ($values[$name] == 'TRUE') {\n $clause = $field . ' IS NOT NULL';\n } else {\n $clause = 'true';\n }\n } else if ($operator == 'IS NULL') {\n if ($values[$name] == 'TRUE') {\n $clause = $field . ' IS NULL';\n } else {\n $clause = 'true';\n }\n } else if ($operator == 'VAR') {\n $clause = $values[$name];\n } \n\n return $clause;\n };\n\n $str = preg_replace_callback($pattern, $callback, $queryPart);\n\n return array($str, $parameters);\n }", "public function getFirst($questionnaireId, $filterId, $partId, $useSecondLevelRules, ArrayCollection $excluded)\n {\n // If no cache for questionnaire, fill the cache\n if (!isset($this->cache[$questionnaireId])) {\n\n // First we found which geoname is used for the given questionnaire\n $geonameId = $this->getEntityManager()->getRepository('Application\\Model\\Geoname')->getIdByQuestionnaireId($questionnaireId);\n\n // Then we get all data for the geoname\n $qb = $this->createQueryBuilder('filterQuestionnaireUsage')\n ->select('filterQuestionnaireUsage, questionnaire, filter, rule')\n ->join('filterQuestionnaireUsage.questionnaire', 'questionnaire')\n ->join('filterQuestionnaireUsage.filter', 'filter')\n ->join('filterQuestionnaireUsage.rule', 'rule')\n ->andWhere('questionnaire.geoname = :geoname')\n ->orderBy('filterQuestionnaireUsage.isSecondLevel DESC, filterQuestionnaireUsage.sorting, filterQuestionnaireUsage.id')\n ;\n\n $qb->setParameters(array(\n 'geoname' => $geonameId,\n ));\n\n $res = $qb->getQuery()->getResult();\n\n // Ensure that we hit the cache next time, even if we have no results at all\n $this->cache[$questionnaireId] = array();\n\n // Restructure cache to be [questionnaireId => [filterId => [partId => value]]]\n foreach ($res as $filterQuestionnaireUsage) {\n $this->cache[$filterQuestionnaireUsage->getQuestionnaire()->getId()][$filterQuestionnaireUsage->getFilter()->getId()][$filterQuestionnaireUsage->getPart()->getId()][] = $filterQuestionnaireUsage;\n }\n }\n\n if (isset($this->cache[$questionnaireId][$filterId][$partId]))\n $possible = $this->cache[$questionnaireId][$filterId][$partId];\n else\n $possible = array();\n\n // Returns the first non-excluded and according to its level\n foreach ($possible as $filterQuestionnaireUsage) {\n if (($useSecondLevelRules || !$filterQuestionnaireUsage->isSecondLevel()) && !$excluded->contains($filterQuestionnaireUsage))\n return $filterQuestionnaireUsage;\n }\n\n return null;\n }", "function getListFilter($col,$key,$tahun='',$bulan='') {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': \n\t\t\t\t\treturn \"datepart(year,p.tglperolehan) = '$tahun' and datepart(month,p.tglperolehan) = '$bulan' \"; \n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once('m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"infoleft >= \".(int)$row['infoleft'].\" and inforight <= \".(int)$row['inforight'];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "function isPartID($input) {\n return (preg_match(\"/(^(?:[1-9][0-9]+?)(?:[a-z]*\\\\d*[a-z]*\\\\d*)?$)/\", $input));\n }", "public function filterId(int $id): self;", "public static function setParamPartSort(string $separator, int $part)\n {\n // TODO Validation\n // FIXME -> separate Exception message from this class!\n if (! is_numeric($part)) {\n throw new \\InvalidArgumentException('$part MUST be a number');\n }\n if (! is_string($part)) {\n throw new \\InvalidArgumentException('$separator MUST be a string');\n }\n self::$partOfValue = (int) $part;\n self::$partSeparator = $separator;\n }", "private function addPart($part, $data) {\n if (empty($data) || count($data) == 0) return $this;\n\n if ($part == 'andWhere' || $part == 'orWhere') {\n $this->_criteria->__call($part, $data);\n return $this;\n }\n\n if (!in_array($data, $this->_parts[$part])) {\n $this->_parts[$part][] = $data;\n }\n return $this;\n }", "function getFieldId_Filter($id_field, $field_prefix = FALSE) {\n\t\tif( $field_prefix === FALSE )\n\t\t \treturn 'field_filter_'.$id_field;\n\t\telse\n\t\t\treturn $field_prefix.'field_filter_'.$id_field;\n\t }", "public function filtering();", "function PreciosFilter( $Filter )\n {\n $Field = PreciosField( $Filter );\n \n $where = \"\";\n if( !empty($Filter->precMin) ) $where = 'AND '.$Field.'>='.$Filter->precMin.' ';\n if( !empty($Filter->precMax) && $Filter->precMax<150) $where .= 'AND '.$Field.'<='.$Filter->precMax.' ';\n\n if( !empty($where) ) $where .= 'AND '.$Field.'>0 ';\n return $where; \n }", "function qa_request_part($part)\n{\n\t$parts = explode('/', qa_request());\n\treturn @$parts[$part];\n}", "abstract public function filterFields();", "function get_available_parts_nohtml_noversion($part_id) {\n // Database connection \n $conn = database_connection();\n\n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND IS_RECORD_DELETED = 'F' AND PART_ID not in (select PART_ID from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE) ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\"; //select data or insert data \n\n\n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result_arr = array();\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n// echo '<li><a href=\"#\" class=\"availablepart\" >' . $row['SERIAL_NUMBER'] . '</a></li>';\n\n $temp['SERIAL_NUMBER'] = $row['SERIAL_NUMBER'];\n $result_arr[] = $temp;\n }\n return $result_arr;\n}", "public function itemsFilterIds($params){\n\t\tif(empty($params['orderby'])){\n\t\t\t$params['orderby']=$this->leftKeyName;\n\t\t\t}\n\t\treturn parent::itemsFilterIds($params);\n\t\t}", "private function sql_whereAnd_pidList()\n {\n // Get table and field\n list( $table ) = explode( '.', $this->curr_tableField );\n\n if ( empty( $this->pObj->pidList ) )\n {\n // DRS\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'There isn\\'t any pid list for the records of ' . $table . '. Maybe this is an error.';\n t3lib_div::devlog( '[WARN/FILTER+SQL] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // DRS\n return;\n }\n\n $fieldsOfTable = $this->pObj->arr_realTables_arrFields[ $table ];\n if ( !in_array( 'pid', $fieldsOfTable ) )\n {\n // DRS\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = $table . ' shouldn\\'t have any pid field. Maybe this is an error.';\n t3lib_div::devlog( '[WARN/FILTER+SQL] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // DRS\n return;\n }\n\n $andWhere = \" AND \" . $table . \".pid IN (\" . $this->pObj->pidList . \")\";\n\n // RETURN AND WHERE statement\n return $andWhere;\n }", "public function buildWherePermission( array $ids, $field='', $incStarCheck=true );", "public function findInventoryByPart($partno) {\n\n $query = $this->getEntityManager()\n ->createQuery('\n SELECT\n s.rackno, s.diecode, s.heatcode, s.inqty, s.onhold,\n m.dano, m.partno, m.batchno, m.indate,\n l.shipdate\n FROM\n CIRBundle:SumitomoSub s\n JOIN\n s.main m\n JOIN\n s.log l\n WHERE\n m.partno = :partno\n ')->setParameter('partno', $partno);\n\n try {\n return $query->getResult();\n } catch(\\Doctrine\\ORM\\NoResultException $e) {\n return null;\n }\n }", "public function __construct($id, $parts, $useand) {\n $this->id = $id;\n $this->parts = $parts;\n $this->useand = $useand;\n }", "function filterBy_S_A_F_E($SEDE, $AREA, $FACULTAD, $ESCUELA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? \");\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function filterByS_A_F($SEDE, $AREA, $FACULTAD,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ?\");\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(SearchIndexPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(SearchIndexPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SearchIndexPeer::ID, $id, $comparison);\n }", "public function show(InternalPartOrder $internalPartOrder, $id)\n {\n $ipo = InternalPartOrder::find($id);\n return $ipo;\n }", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\tcase 'jenis':\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\treturn \"jnsrate='$key'\";\n\t\t\t}\n\t\t}", "private static function _getFilter() {}", "function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'bulan')\n\t\t\t\treturn \"substring(cast(cast(r.tglkpb as date) as varchar),6,2) = '$key'\";\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglkpb as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'bulankgb')\n\t\t\t\treturn \"substring(cast(cast(r.tglkgb as date) as varchar),6,2) = '$key'\";\n\t\t\tif($col == 'tahunkgb')\n\t\t\t\treturn \"substring(cast(cast(r.tglkgb as date) as varchar),1,4) = '$key'\";\n\t\t}", "private function _event_field_filter($prefix = '')\n\t{\n\t\t// Apply prefix to field if given\n\t\t$field_name = ($prefix ? $prefix.'.' : '') . 'field_id';\n\n\t\t// Check parameter\n\t\tif ($event_field = $this->EE->TMPL->fetch_param('events_field'))\n\t\t{\n\t\t\t// Get fields from parameter\n\t\t\tlist($fields, $in) = low_explode_param($event_field);\n\n\t\t\t// Get id for each field\n\t\t\tforeach ($fields AS &$field)\n\t\t\t{\n\t\t\t\t$field = $this->_get_field_id($field);\n\t\t\t}\n\n\t\t\t$this->EE->db->{($in ? 'where_in' : 'where_not_in')}($field_name, $fields);\n\t\t}\n\t}", "static function getAdminByOrg($idPart)\n {\n\n $con=Database::getConnection();\n $req=$con->prepare('SELECT * FROM admin a, partners p WHERE a.idPart=p._idPart AND idPart=?');\n $req->execute(array($idPart));\n return $req->fetchAll();\n }", "private function checkPart($id, $part, $mode = false){\n if(!$mode){\n $query = \"\n SELECT\n `structure`.`pid`,\n `structure_data`.`part`\n FROM\n `structure`,\n `structure_data`\n WHERE\n `structure`.`id` = '\".$id.\"' &&\n `structure`.`id` = `structure_data`.`id`\n \";\n $result = mysql_fetch_assoc(mysql_query($query));\n\n $query = \"\n SELECT\n `structure_data`.`part`\n FROM\n `structure`,\n `structure_data`\n WHERE\n `structure`.`pid` = '\".$result['pid'].\"' &&\n `structure_data`.`part` = '\".$part.\"' &&\n `structure`.`id` NOT IN ('\".$id.\"') &&\n `structure`.`id` = `structure_data`.`id`\n \";\n }else{\n $query = \"\n SELECT\n `structure_data`.`part`\n FROM\n `structure`,\n `structure_data`\n WHERE\n `structure`.`pid` = '\".$id.\"' &&\n `structure_data`.`part` = '\".$part.\"' &&\n `structure`.`id` = `structure_data`.`id`\n \";\n };\n\n if(mysql_num_rows(mysql_query($query)) > 0){\n $newpart = $part.'_'.rand();\n\n while(!$this->checkSamePart($id, $newpart)){\n $newpart = $part.'_'.rand();\n };\n\n return $newpart;\n }else{\n return $part;\n };\n }", "function get_list_part_ID($part_id) {\n\n // Database connection \n $conn = database_connection();\n\n $sql = \"SELECT PART_ID,SERIAL_NUMBER,RECORD_INSERTION_USER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND IS_RECORD_DELETED = 'F'\"; //select data or insert data\n // Execute query \n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result = array();\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n $result[] = $row;\n foreach ($row as $item) {\n \n }\n }\n\n return $result;\n}", "protected function where(array $filter){\n if (array_key_exists(\"order\", $filter)){\n $order = $filter[\"order\"];\n unset($filter[\"order\"]);\n if (gettype($order) != \"array\")\n $order = [$order];\n }\n\n if (array_key_exists(\"limit\", $filter)){\n $limit = $filter[\"limit\"];\n unset($filter[\"limit\"]);\n if (gettype($limit) != \"integer\")\n throw new appException(\"This is off-limits, literally\");\n }\n\n if (!empty($filter)){\n $query = \" WHERE \";\n\n foreach ($filter as $k => $v){\n if (gettype($v) == \"array\"){\n $query .= $this->genTableVar($k) . \" IN ( \";\n $query .= join(\", \", array_fill(0, count($v), \"?\"));\n $query .= \") AND \";\n }\n else if (gettype($v) == \"object\" && get_class($v) == \"dbContains\"){\n $query .= $v->genSql($this->genTableVar($k)) . \" AND \";\n }\n else {\n $query .= $this->genTableVar($k) . \" = ? AND \";\n }\n $this->args[] = $v;\n }\n\n $query = substr($query, 0, -4);\n\n $this->query .= $query;\n }\n\n if (isset($order))\n $this->orderBy($order);\n\n if (isset($limit))\n $this->limit($limit);\n }", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "public function getRsrvdParts($sender, $param)\n\t{\n\t\t$html = \"No parts found!\";\n\t\ttry\n\t\t{\n\t\t\tif(!isset($param->CallbackParameter->selectedIds) || count($selectedIds = ($param->CallbackParameter->selectedIds)) === 0)\n\t\t\t\tthrow new Exception(\"Please select a request first!\");\n\n\t\t\t$requestId = $selectedIds[0];\n\t\t\t$request = Factory::service(\"FacilityRequest\")->get($requestId);\n\t\t\tif(!$request instanceof FacilityRequest)\n\t\t\t\tthrow new Exception(\"Invalid facility request id provided(=$requestId)!\");\n\n\t\t\t//find all reserved part instances\n\t\t\t$pis = Factory::service(\"PartInstance\")->findByCriteria(\"pi.facilityRequestId = $requestId\");\n\n\t\t\t$html = \"<table class='ResultDataList'>\";\n\t\t\t$html .= \"<thead>\";\n\t\t\t$html .= \"<tr>\";\n\t\t\t$html .= \"<th width='20%'>Barcode</th>\";\n\t\t\t$html .= \"<th>Comments</th>\";\n\t\t\t$html .= \"<th width='8%'>Qty</th>\";\n\t\t\t$html .= \"<th width='5%'>&nbsp</th>\";\n\t\t\t$html .= \"</tr>\";\n\t\t\t$html .= \"</thead>\";\n\t\t\t$html .= \"<tbody>\";\n\t\t\t$html .= \"<tr class='ResultDataListAlterItem' resrpartpan='reservedTr'>\";\n\n\t\t\tif(!in_array($request->getStatus(), FacilityRequest::getStatusesAllowResvPI()))\n\t\t\t\t$html .= \"<td colspan=4 style='color: red; font-weight: bold;'>The status(`\" . $request->getStatus() . \"`) of the selected request does not allow reservation of parts!</td>\";\n\t\t\telse if(!Factory::service(\"FacilityRequest\")->checkOwnership($request, $this->getOwnerWarehouse()))\n\t\t\t\t$html .= \"<td colspan=4 style='color: red; font-weight: bold;'>You don't have access to this request.You need to own the request to proceed.</td>\";\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html .= \"<td><input PlaceHolder='Barcode' resrpartpan='reservedSerialNoSearch' onkeydown=\\\"pageJs.enterEvent(event, $(this).up('tr[resrpartpan=reservedTr]').down('input[resrpartpan=reservedAddBtn]'));\\\"/>\n\t\t\t\t</br>\n\t\t\t\t</br>BL:\n\t\t\t\t<input id='BLNo' PlaceHolder='Barcode:BL' resrpartpan='reservedBLNoSearch' onkeydown=\\\"pageJs.enterEvent(event, $(this).up('tr[resrpartpan=reservedTr]').down('input[resrpartpan=reservedAddBtn]'));\\\"/>\n\t\t\t\t</td>\";\n\t\t\t\t$html .= \"<td>\n\t\t\t\t</br>\n\t\t\t\t(Limit text to 120 Characters)<input PlaceHolder='Comments' resrpartpan='reservedComments' style='width: 98%;'/>\n\t\t\t\t</br>\n\t\t\t\t</td>\";\n\t\t\t\t$html .= \"<td><input id='reservedQty' resrpartpan='reservedQty' value='1' style='width: 30px;'/></th>\";\n\t\t\t\t$html .= \"<td>\";\n\t\t\t\t$html .= \"<input resrpartpan='reservedAddBtn' type='button' value='Add' Onclick=\\\"pageJs.reservePI('$requestId', '\" . $this->rsvPartBtn->getUniqueID() . \"', '\" . $this->unRsvPartBtn->getUniqueID() . \"', this,'\" . $this->checkPartBtn->getUniqueID() .\n\t\t\t\t\"','\" . $this->checkPartType->getClientId() . \"','\" . $this->checkPartErrors->getClientId() . \"','\" . $this->errorBL->getClientId() . \"');\\\"/>\";\n\t\t\t\t$html .= \"<input resrpartpan='bpregex' type='hidden' value='\" . BarcodeService::getBarcodeRegex(BarcodeService::BARCODE_REGEX_CHK_PART_TYPE, null, '^', '$') . \"' />\";\n\t\t\t\t$html .= \"<input resrpartpan='partregex' type='hidden' value='\" . BarcodeService::getBarcodeRegex(BarcodeService::BARCODE_REGEX_CHK_PART, null, '^', '$') . \"' />\";\n\t\t\t\t$html .= \"</td>\";\n\t\t\t}\n\t\t\t$html .= \"</tr>\";\n\t\t\t$rowNo =0;\n\t\t\t$total = 0;\n\t\t\tforeach($pis as $pi)\n\t\t\t{\n\t\t\t\t$piQty = ($pi->getPartType()->getSerialised()==1)? 1:$pi->getQuantity();\n\t\t\t\t$barcode = ($pi->getPartType()->getSerialised()==1)? $pi->getAlias(PartInstanceAliasType::ID_SERIAL_NO):$pi->getPartType()->getAlias(PartTypeAliasType::ID_BP);\n\t\t\t\t$html .= \"<tr rsvdPIId=\\\"\" . $pi->getId() . \"\\\" class='\" . ($rowNo++ % 2 === 0 ? \"ResultDataListItem\" : \"ResultDataListAlterItem\") . \"' >\";\n\t\t\t\t$html .= \"<td>\" . $barcode . \"</td>\";\n\t\t\t\t$html .= \"<td>\" . $pi->getWarehouse()->getBreadCrumbs() . \"</td>\";\n\t\t\t\t$html .= \"<td>\".intval($piQty).\"</td>\";\n\t\t\t\t$html .= \"<td>\";\n\t\t\t\t$html .= \"<input type='image' src='/themes/images/delete_mini.gif' onClick=\\\"pageJs.unresrvPI('$requestId', '\" . $this->unRsvPartBtn->getUniqueID() . \"', this);\\\"/>\";\n\t\t\t\t$html .= \"</td>\";\n\t\t\t\t$html .= \"</tr>\";\n\t\t\t\t$total += intval($piQty);\n\t\t\t}\n\t\t\t$html .= \"</tbody>\";\n\t\t\t$html .= \"<tfoot>\";\n\t\t\t$html .= \"<tr>\";\n\t\t\t$html .= \"<td>Total</td>\";\n\t\t\t$html .= \"<td>&nbsp;</td>\";\n\t\t\t$html .= \"<td><span resrpartpan='reservedTotalQty'>$total</span></td>\";\n\t\t\t$html .= \"<td>&nbsp;</td>\";\n\t\t\t$html .= \"</tr>\";\n\t\t\t$html .= \"</tfoot>\";\n\t\t\t$html .= \"</table>\";\n\n \t\t\tif($this->checkFieldTaskHasAllReservationsFulfilled($request->getFieldTask()))\n \t\t\t{\n \t\t\t\t$html .= \"<select id='titleActionListDropDown'>\";\n \t\t\t\t$html .= \"<option value='pushToAvail' class='fieldtaskoptons'>Push Field Task Avail</option>\";\n \t\t\t\t$html .= \"</select>\";\n \t\t\t\t$html .= \"<input id='titleActionListBtn' value='Go' onclick=\\\"return pageJs.pushFTWrapper($('titleActionListDropDown').value, '\" . $this->changeFTStatusBtn->getUniqueID() . \"',\" . $requestId . \"); return false;\\\" type='button'>\";\n \t\t\t}\n\t\t}\n\t\tcatch(Exception $ex)\n\t\t{\n\t\t\t$html = $this->_getErrorMsg($ex->getMessage());\n\t\t}\n\t\t$this->responseLabel->Text = $html;\n\t}", "private function _simple_filter($param, $attr)\n\t{\n\t\tif ($param = $this->EE->TMPL->fetch_param($param))\n\t\t{\n\t\t\t// Determine which channels to filter by\n\t\t\tlist($param, $in) = low_explode_param($param);\n\n\t\t\t// Adjust query accordingly\n\t\t\t$this->EE->db->{($in ? 'where_in' : 'where_not_in')}($attr, $param);\n\t\t}\n\t}", "function filterBy_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "function GetStartsWithAFilter($FldExpression, $dbid = 0) {\r\n\treturn $FldExpression . Like(\"'A%'\", $dbid);\r\n}", "function seeOnFilter($seeFilter)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT * FROM inscriptions WHERE id_student = %s\",\n\t\t GetSQLValueString($seeFilter, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"id_insc\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "public function scopePart($query)\n\t{\n\t\treturn $query->where('type', 'part');\n\t}", "public function getExtraAvailParts($sender, $param)\n\t{\n\t\t$html = \"No parts found!\";\n\t\ttry{\n\t\t\tif(!isset($param->CallbackParameter->selectedIds) || (($selectedId = $param->CallbackParameter->selectedIds) == '') )\n\t\t\t\tthrow new Exception(\"Please select a request first!\");\n\n\t\t\t$request = Factory::service(\"FacilityRequest\")->get($selectedId);\n\t\t\tif(!$request instanceof FacilityRequest)\n\t\t\t\tthrow new Exception(\"Invalid facility request id provided(={$selectedId})!\");\n\n\n\t\t\t$partType = $request->getPartType();\n\t\t\t$hotMessage = $partType->getAlias(PartTypeAliasType::ID_HOT_MESSAGE);\n\n\t\t\t$goodParts = 1;\n\t\t\tif(isset($param->CallbackParameter->goodParts))\n\t\t\t{\n\t\t\t\t$goodParts = $param->CallbackParameter->goodParts;\n\t\t\t}\n\n\t\t\t$compatibleParts = false;\n\t\t\tif(isset($param->CallbackParameter->compatibleParts))\n\t\t\t{\n\t\t\t\t$compatibleParts = $param->CallbackParameter->compatibleParts;\n\t\t\t}\n\t\t\t$result = $this->_getAvailableParts($request->getPartType()->getId(), false, $goodParts, $compatibleParts);\n\n\t\t\t$html = \"<table class='ResultDataList'>\";\n\t\t\tif($hotMessage)\n\t\t\t{\n\t\t\t\t$html .= \"<tr><td>\". PartTypeLogic::showHotMessageDetail($hotMessage, '', false, false) . \"</td></tr>\";\n\t\t\t}\n\n\t\t\t$html .= \"<tr>\";\n\t\t\tif($compatibleParts)\n\t\t\t\t$html .= \"<td><a href='javascript: void(0);' onClick='pageJs.viewAvailList(\\\"\" . $selectedId . \"\\\", \\\"\" . $this->showAvailListBtn->getUniqueID() . \"\\\", \\\"\" . $goodParts . \"\\\", true)'>View Compatible Parts from \" . $this->_ownerWarehouse->getName() . \"</a></td>\";\n\t\t\telse\n\t\t\t\t$html .= \"<td><a href='javascript: void(0);' onClick='pageJs.viewAvailList(\\\"\" . $selectedId . \"\\\", \\\"\" . $this->showAvailListBtn->getUniqueID() . \"\\\", \\\"\" . $goodParts . \"\\\", false)'>View Parts from \" . $this->_ownerWarehouse->getName() . \"</a></td>\";\n\n\t\t\t$html .= \"<td style='float:right'><input type='image' src='/themes/images/mail.gif' onclick='return pageJs.email(\\\"\" . $selectedId . \"\\\", \\\"\" . $this->showEmailPanelBtn->getUniqueID() . \"\\\", this);' title='Send an email'/></td>\";\n\t\t\t$html .= \"</tr>\";\n\t\t\t$html .= \"<table>\";\n\n\t\t\tif($compatibleParts)\n\t\t\t\t$html .= PartTypeLogic::showCompatiblePartTypeDetail($partType);\n\t\t\telse\n\t\t\t\t$html .= \"<div><br><b>Part Details : </b>\".$partType->getAlias().\" - \".$partType->getName().\"</div><br>\";\n\n\t\t\tif(count($result)=== 0)\n\t\t\t{\n\t\t\t\t$html .= \"<br><b style='color:red'>No parts found!</b>\";\n\t\t\t\t$this->responseLabel->Text = $html;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$html .= \"<table class='ResultDataList'>\";\n\t\t\t$html .= \"<thead>\";\n\t\t\t$html .= \"<tr>\";\n\t\t\t$html .= \"<th>Warehouse</th>\";\n\t\t\tif($compatibleParts){$html .= \"<th>PartCode</th>\";}\n\t\t\t$html .= \"<th>Status</th>\";\n\t\t\t$html .= \"<th>Qty</th>\";\n\t\t\t$html .= \"<th>Reserved For</th>\";\n\t\t\t$html .= \"</tr>\";\n\t\t\t$html .= \"</thead>\";\n\t\t\t$html .= \"<tbody>\";\n\t\t\t$rowNo =0;\n\t\t\t$total = 0;\n\t\t\t$previousState = \"\";\n\t\t\tforeach($result as $r)\n\t\t\t{\n\t\t\t\tif(!($warehouse = Factory::service(\"Warehouse\")->get($r['warehouseId'])) instanceof Warehouse)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif($previousState==\"\" || $previousState!= $r['stateName'])\n\t\t\t\t{\n\t\t\t\t\t$colspan=($compatibleParts?'5':'4');\n\t\t\t\t\t$html .= \"<tr><td colspan=\".$colspan.\" style='color:white;background:black'><b>\" . $r['stateName'] . \"</b></td></tr>\";\n\t\t\t\t}\n\n\t\t\t\t$warehouseName = $warehouse;\n\t\t\t\t$index = strpos ($warehouse, \"|\");\n\t\t\t\tif($index > 0)\n\t\t\t\t{\n\t\t\t\t\t$warehouseName = substr($warehouse , 0, $index);\n\t\t\t\t}\n\n\t\t\t\t$html .= \"<tr class='\" . ($rowNo++ % 2 === 0 ? \"ResultDataListItem\" : \"ResultDataListAlterItem\") . \"' >\";\n\t\t\t\t$html .= \"<td>\" . $warehouseName . \"</td>\";\n\t\t\t\tif($compatibleParts)\n\t\t\t\t{\n\t\t\t\t\t$partcode = Factory::service('PartType')->get($r['partTypeId'])->getAlias();\n\t\t\t\t\t$html .= \"<td>\".$partcode.\"</td>\";\n\t\t\t\t}\n\n\t\t\t\t$html .= \"<td>{$r['status']}</td>\";\n\t\t\t\t$html .= \"<td>{$r['qty']}</td>\";\n\t\t\t\t$html .= \"<td>{$r['fieldTaskId']}</td>\";\n\t\t\t\t$html .= \"</tr>\";\n\t\t\t\t$total +=$r['qty'];\n\t\t\t\t$previousState = $r['stateName'];\n\t\t\t}\n\t\t\t$html .= \"</tbody>\";\n\t\t\t$html .= \"<tfoot>\";\n\t\t\t$html .= \"<tr>\";\n\t\t\t$html .= \"<td>Total</td>\";\n\t\t\t$html .= \"<td>&nbsp;</td>\";\n\t\t\tif($compatibleParts){$html .= \"<td>&nbsp;</td>\";}\n\t\t\t$html .= \"<td>$total</td>\";\n\t\t\t$html .= \"<td>&nbsp;</td>\";\n\t\t\t$html .= \"</tr>\";\n\t\t\t$html .= \"</tfoot>\";\n\t\t\t$html .= \"</table>\";\n\t\t}\n\t\tcatch(Exception $ex)\n\t\t{\n\t\t\t$html = $this->_getErrorMsg($ex->getMessage());\n\t\t}\n\n\t\t$this->responseLabel->Text = $html;\n\t}", "public function getInputFilter(){\n\t\t/*\n\t\t * validate data:\n\t\t * -id\n\t\t * -svg1\n\t\t * -image1\n\t\t * -svg2\n\t\t * -image2\n\t\t * -svg3\n\t\t * -image3\n\t\t **/\n\n\t\tif(!$this->inputFilter){\n\t\t\t$inputFilter = new InputFilter();\n\n\t\t\t//id\n $inputFilter->add(array(\n 'name' => 'id',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int'),\n ),\n ));\n\n\n\t\t}\n\t}", "public function actionIndex($part_id='')\n {\n $searchModel = new OrgDepartmentSearch(['part_id'=>$part_id]);\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "protected function sanitizeSelectPart($selectPart, $table)\n {\n $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($table);\n\n // Pattern matching parts\n $matchStart = '/(^\\\\s*|,\\\\s*|' . $table . '\\\\.)';\n $matchEnd = '(\\\\s*,|\\\\s*$)/';\n $necessaryFields = ['uid', 'pid'];\n $wsFields = ['t3ver_state'];\n if (isset($GLOBALS['TCA'][$table]) && !preg_match(($matchStart . '\\\\*' . $matchEnd), $selectPart) && !preg_match('/(count|max|min|avg|sum)\\\\([^\\\\)]+\\\\)/i', $selectPart)) {\n foreach ($necessaryFields as $field) {\n $match = $matchStart . $field . $matchEnd;\n if (!preg_match($match, $selectPart)) {\n $selectPart .= ', ' . $connection->quoteIdentifier($table . '.' . $field) . ' AS ' . $connection->quoteIdentifier($field);\n }\n }\n if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) {\n foreach ($wsFields as $field) {\n $match = $matchStart . $field . $matchEnd;\n if (!preg_match($match, $selectPart)) {\n $selectPart .= ', ' . $connection->quoteIdentifier($table . '.' . $field) . ' AS ' . $connection->quoteIdentifier($field);\n }\n }\n }\n }\n return $selectPart;\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $keys, Criteria::IN);\n }", "function requetefiltre($num_dep,$insee,$idmare,$interco){\n\t//POUR LES DEPARTEMENT\n\tif($num_dep <> 0){\n\t\t$condition = 'AND LEFT(lg.\"L_ADMIN\",2) = '.\"'\".$num_dep.\"'\".'';\n\t}else{\n\t\t$condition = '';\n\t}\n\t//POUR LES INTERCO\n\tif($interco <> 0){\n\t\t$condition .= 'AND intercommunalite.\"Num_fiscalite\" = '.\"'\".$interco.\"'\".'';\n\t}else{\n\t\t$condition .= '';\n\t}\n\t//POUR LES COMMUNES\n\tif($insee <> 0){\n\t\t$condition .= 'AND lg.\"L_ADMIN\" = '.\"'\".$insee.\"'\".'';\n\t}else{\n\t\t$condition .= '';\n\t}\n\t//POUR LES MARE\n\tif($idmare <> 0){\n\t\t$condition = ' AND lg.\"L_ID\" = '.\"'\".$idmare.\"'\".'';\n\t}else{\n\t\t$condition .= '';\n\t}\n\t\n\treturn $condition;\n\t\n}", "function callback( $item_id ) {\n\t\t$cb = apply_filters( 'customify/product-designer/part', false, $item_id, $this );\n\t\tif ( ! is_callable( $cb ) ) {\n\t\t\t$cb = array( $this, 'product__' . $item_id );\n\t\t}\n\t\tif ( is_callable( $cb ) ) {\n\t\t\treturn $cb;\n\t\t}\n\n\t\treturn false;\n\t}", "function &getRecordsFiltered($start, $limit, $filter = null, $content = null, $order = null, $ordering = \"\", $date_ini = '2009-01-01 00:00:00', $date_fin = NOW){\n global $db;\n\n if(($filter != null) and ($content != null)){\n $sql = \"SELECT * FROM products\"\n .\" WHERE \".$filter.\" like '%\".$content.\"%' \"\n .\" ORDER BY \".$order\n .\" \".$_SESSION['ordering']\n .\" OFFSET $start LIMIT $limit $ordering\";\n $sql2 = \"SELECT * FROM products WHERE \".$filter.\" like '%\".$content.\"%'\";\n }\n $_SESSION['query'] = $sql;\n $_SESSION['query2Excel'] = $sql2;\n //Basic::EventLog(\"products->getRecordsFiltered: \".$sql);\n $res =& $db->query($sql);\n return $res;\n }", "public function filter($id, $filter) {\n // tags whose name begins with $filter.\n $this->index($id, $filter);\n }", "public function setPartIdAttribute($input)\n {\n $this->attributes['part_id'] = $input ? $input : null;\n }", "public function setPartIdAttribute($input)\n {\n $this->attributes['part_id'] = $input ? $input : null;\n }", "protected function rawFilter($filter) {\n //Log::debug('query: ',$filter);\n\t\t// Build a query based on filter $filter\n\t\t$query = Pallet::query()\n ->select('Pallet.objectID', 'Pallet.Pallet_ID', 'Pallet.x', 'Pallet.y', 'Pallet.z', 'Pallet.Status')\n ->orderBy('Pallet_ID', 'asc');\n if(isset($filter['Pallet_ID']) && strlen($filter['Pallet_ID']) > 2) {\n $query->where('Pallet_ID', 'like', ltrim($filter['Pallet_ID'],'0') . '%');\n\t\t}\n\t\tif(isset($filter['Pallet_ID.prefix']) && is_array($filter['Pallet_ID.prefix'])) {\n $query->whereRaw(\"substring(Pallet_ID,1,3) in ('\".implode(\"','\", $filter['Pallet_ID.prefix']).\"')\");\n\t\t}\n if(isset($filter['Status']) && is_array($filter['Status'])) {\n $query->whereRaw(\"Status in ('\".implode(\"','\", $filter['Status']).\"')\");\n }\n elseif(isset($filter['Status']) && strlen($filter['Status']) > 3) {\n $query->where('Status', '=', $filter['Status']);\n }\n /*\n * container.parent should generate this sql request\n * select Pallet.* from Pallet join container plt on plt.objectID = Pallet.objectID where plt.parentID = 6213292055;\n */\n if(isset($filter['container.parent']) && strlen($filter['container.parent']) > 3) {\n $query\n ->join('container as plt', 'plt.objectID', '=', 'Pallet.objectID')\n ->where('plt.parentID',$filter['container.parent']);\n }\n /*\n * container.child should generate this sql request\n * select Pallet.* from Pallet join container gc on gc.parentID = Pallet.objectID where gc.objectID = 6226111054;\n */\n if(isset($filter['container.child']) && strlen($filter['container.child']) > 3) {\n $query\n ->join('container as gc', 'gc.parentID', '=', 'Pallet.objectID')\n ->where('gc.objectID',$filter['container.child']);\n }\n return $query;\n }", "public function getParts(Request $request)\n {\n /*$item = \\App\\WorkItem::find($request->get('item'));\n\n if(!is_null($item))\n $res['res'] = $item->parts()->whereNotIn('id', $request->get('selected'))->pluck('part', 'id');\n else\n $res['res'] = null;*/\n if($request->has('selected'))\n $res['res'] = \\App\\Part::whereNotIn('id', $request->get('selected'))\n ->orderBy('part')\n ->pluck('id', 'part');\n else\n $res['res'] = \\App\\Part::orderBy('part')->pluck('id', 'part');\n\n return $res; \n }", "protected function _prepareSubset() {}", "public function _getFilter($where=null,$attrib=null,$orders=null){\n try{\n //if($where['eid']=='' || $where['oid']=='') return false;\n $select = $this->_db->select();\n if ($attrib=='') $select->from(\"lista_entregable_detalle\");\n else $select->from(\"lista_entregable_detalle\",$attrib);\n foreach ($where as $atri=>$value){\n $select->where(\"$atri = ?\", $value);\n }\n if ($orders<>null || $orders<>\"\") {\n if (is_array($orders))\n $select->order($orders);\n }\n $results = $select->query();\n $rows = $results->fetchAll();\n //print_r($results);\n if ($rows) return $rows;\n return false;\n }catch (Exception $e){\n print \"Error: Read Filter competencia \".$e->getMessage();\n }\n }", "abstract protected function foreignIDFilter($id = null);", "public function getAllParts(PartFilter $filter = null)\n {\n $parts = $this->getAllNonFilteredParts();\n if (!empty($filter)) {\n return array_values(array_filter(\n $parts,\n [ $filter, 'filter' ]\n ));\n }\n return $parts;\n }", "public function get_order_list_by_aid($aid, $offset, $rn,$time_start='',$time_end='',$order_id,$min_fee,$max_fee,$status) {\n // $where = array('aid' => $aid) ;\n $aid = implode(',',$aid);\n $where = \"aid in (\".$aid.\") \";\n if($time_start != '') {\n $where .= \" and create_time >=\".$time_start ;\n }\n if($time_end != '') {\n $where .= \" and create_time <=\".$time_end;\n }\n if($order_id != ''){\n $where .= \" and order_id =\".$order_id;\n }\n if($min_fee != ''){\n $where .= \" and total_fee >=\".$min_fee;\n }\n if($max_fee != ''){\n $where .=\" and total_fee <=\".$max_fee;\n }\n if($status != ''){\n $where .= \" and status =\".$status;\n }\n\n $total = $this->cnt($where) ;\n $select = 'id,order_id, pid, p_type, travel_date, total_fee, unit_price, num, create_time, title ,status' ;\n $order_by = 'order_id DESC' ;\n $data = '';\n //if( $offset < $total) {\n $data = $this->slt_res_arr($where, $select,$rn, $offset, $order_by) ;\n \n //}\n\n return $data;\n }", "function getIntervalLimitsExprs($table, $field, $idx, $isLowerBound)\n{\n\n\n}", "function get_part_ID($part_id, $version = NULL) {\n\n // Database connection \n $conn = database_connection();\n\n //Query string\n if ($version == NULL) {\n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc \"; //select data or insert data\n } else {\n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\"; //select data or insert data \n }\n // Execute query \n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result_rec = 0;\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n\n foreach ($row as $item) {\n //echo \"<li>\" . ($item !== null ? htmlentities($item, ENT_QUOTES) : \"&nbsp;\") . \"</li>\";\n if ($item !== null)\n $result_rec = $item;\n }\n }\n if ($result_rec !== 0) {\n //echo $result_rec ;\n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE SERIAL_NUMBER='\" . $result_rec . \"'\"; //select data or insert data\n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result_rec = 0;\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n\n foreach ($row as $item) {\n //echo \"<li>\" . ($item !== null ? htmlentities($item, ENT_QUOTES) : \"&nbsp;\") . \"</li>\";\n if ($item !== null)\n return $item;\n }\n }\n }\n else {\n return 0;\n }\n}", "public function filterByIDPiece_FK($iDPiece_FK = null, $comparison = null)\n {\n if (is_array($iDPiece_FK)) {\n $useMinMax = false;\n if (isset($iDPiece_FK['min'])) {\n $this->addUsingAlias(COMEnduserTableMap::COL_ID_PIECE_FK, $iDPiece_FK['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($iDPiece_FK['max'])) {\n $this->addUsingAlias(COMEnduserTableMap::COL_ID_PIECE_FK, $iDPiece_FK['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(COMEnduserTableMap::COL_ID_PIECE_FK, $iDPiece_FK, $comparison);\n }", "public function filterByPathattributeid($pathattributeid = null, $comparison = null)\n\t{\n\t\tif (is_array($pathattributeid)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($pathattributeid['min'])) {\n\t\t\t\t$this->addUsingAlias(Routes2011Peer::PATHATTRIBUTEID, $pathattributeid['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($pathattributeid['max'])) {\n\t\t\t\t$this->addUsingAlias(Routes2011Peer::PATHATTRIBUTEID, $pathattributeid['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Routes2011Peer::PATHATTRIBUTEID, $pathattributeid, $comparison);\n\t}", "function retrieveIdsBeginsWith($tableName, $idSearch, $startIndex, $maxItems);", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "function filter($exprs=array(), $gexprs=array())\n\t{\n\t\t$where = array('sql'=>array(), 'args'=>array());\n\t\t$having = array('sql'=>array(), 'args'=>array());\n\t\tforeach($_REQUEST as $k=>$v) {\n\t\t\t$args = array();\n\t\t\t$sql = array();\n\n\t\t\tif($v === '') continue;\n\t\t\tif(!preg_match('|^f_[dts]_|', $k)) continue;\n\t\t\t$t = substr($k, 2, 1);\n\t\t\t$k = substr($k, 4);\n\t\t\t// only alphanumerics allowed\n\t\t\tif(!preg_match('|^[A-z0-9_-]+$|', $k)) continue;\n\t\t\tswitch($t) {\n\t\t\t\tcase 'd': $coltype = 'date'; break;\n\t\t\t\tcase 's': $coltype = 'select'; break;\n\t\t\t\tcase 't':\n\t\t\t\tdefault: $coltype = 'text';\n\t\t\t}\n\n\t\t\t// look for an expression passed to the function first -- this is\n\t\t\t// used for trickier SQL expressions, eg, functions\n\t\t\tif(isset($exprs[$k])) {\n\t\t\t\t$s = $exprs[$k];\n\t\t\t\t$t = 'where';\n\t\t\t} else if(isset($gexprs[$k])) {\n\t\t\t\t$s = $gexprs[$k];\n\t\t\t\t$t = 'having';\n\t\t\t} else {\n\t\t\t\t// use the literal column name\n\t\t\t\t$s = \"\\\"$k\\\"\";\n\t\t\t\t$t = 'where';\n\t\t\t}\n\n\t\t\t$range = explode('<>', $v);\n\t\t\tif(count($range) == 2) {\n\t\t\t\t// double-bounded range\n\t\t\t\t$sql[] = \"($s>='%s' AND $s<='%s')\";\n\t\t\t\t$args[] = $range[0];\n\t\t\t\t$args[] = $range[1];\n\t\t\t} else if(strlen($v) == 1) {\n\t\t\t\t// no range (explicit)\n\t\t\t\t// FYI: this check is needed, as the \"else\" block assumes\n\t\t\t\t// a string length of at least 2\n\t\t\t\t$sql[] = is_numeric($v) ? \"$s='%s'\" : \"$s LIKE '%%s%'\";\n\t\t\t\t$args[] = $v;\n\t\t\t} else {\n\t\t\t\t// everything else: single-bounded range, eq, neq, like, not like\n\t\t\t\t$chop = 0;\n\t\t\t\t$like = false;\n\t\t\t\tswitch(substr($v, 0, 1)) {\n\t\t\t\t\tcase '=': // exactly equals to\n\t\t\t\t\t\t$s .= '=';\n\t\t\t\t\t\t$chop = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '>': // greater than\n\t\t\t\t\t\tif(substr($v, 1, 1) == '=') {\n\t\t\t\t\t\t\t$s .= '>=';\n\t\t\t\t\t\t\t$chop = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$s .= '>';\n\t\t\t\t\t\t\t$chop = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '<': // less than\n\t\t\t\t\t\tif(substr($v, 1, 1) == '=') { \n\t\t\t\t\t\t\t$s .= '<=';\n\t\t\t\t\t\t\t$chop = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$s .= '<';\n\t\t\t\t\t\t\t$chop = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '!': // does not contain\n\t\t\t\t\t\tif(substr($v, 1, 1) == '=') {\n\t\t\t\t\t\t\t$s .= '!=';\n\t\t\t\t\t\t\t$chop = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$s .= ' NOT LIKE ';\n\t\t\t\t\t\t\t$chop = 1;\n\t\t\t\t\t\t\t$like = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: // contains\n\t\t\t\t\t\t$s .= ' LIKE ';\n\t\t\t\t\t\t$like = true;\n\t\t\t\t}\n\t\t\t\t$v = substr($v, $chop);\n\t\t\t\tif($like) {\n\t\t\t\t\t$s .= \"'%%s%'\";\n\t\t\t\t} else {\n\t\t\t\t\t$s .= \"'%s'\";\n\t\t\t\t}\n\t\t\t\t$sql[] = $s;\n\t\t\t\t$args[] = $v;\n\n\t\t\t\t// special handling for various filter types\n\t\t\t\tif($coltype == 'date' && $chop) {\n\t\t\t\t\t// don't include the default '0000-00-00' fields in ranged selections\n\t\t\t\t\t$s = isset($exprs[$k]) ? $exprs[$k] : \"\\\"$k\\\"\";\n\t\t\t\t\t$s .= \"!='0000-00-00'\";\n\t\t\t\t\t$sql[] = $s;\n\t\t\t\t}\n\t\t\t}\n\t\t\tswitch($t) {\n\t\t\t\tcase 'where':\n\t\t\t\t\t$where['sql'] = array_merge($where['sql'], $sql);\n\t\t\t\t\t$where['args'] = array_merge($where['args'], $args);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'having':\n\t\t\t\t\t$having['sql'] = array_merge($having['sql'], $sql);\n\t\t\t\t\t$having['args'] = array_merge($having['args'], $args);\n\t\t\t}\n\t\t}\n\n\t\t// ensure the WHERE clause always has something in it\n\t\t$where['sql'][] = '1=1';\n\n\t\t$final = array(implode(' AND ', $where['sql']), $where['args']);\n\t\tif(!empty($having['sql'])) {\n\t\t\t$final[] = implode(' AND ', $having['sql']);\n\t\t\t$final[] = $having['args'];\n\t\t}\n\n\t\treturn $final;\n\t}", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "private function filterStudentId($factorId, $ebiQuestionPermissions)\n {\n $filteredStudents = array();\n $factorQuestions = $this->factorQuestionsRepository->getFactorQuestionList($factorId);\n if (!empty($factorQuestions)) {\n foreach ($factorQuestions as $factorQuestion) {\n //get the students for those questions\n $factorQuestionId = $factorQuestion['ebi_question_id'];\n\n $ebiStudents = isset($ebiQuestionPermissions[$factorQuestionId]) ? $ebiQuestionPermissions[$factorQuestionId] : array();\n if (!empty($ebiStudents)) {\n $filteredStudents[] = $ebiQuestionPermissions[$factorQuestionId];\n }\n }\n }\n return $filteredStudents;\n }", "static public function sortPartitionKeyByStart($in)\n\t{\n\t\t$vPart = 0;\n\t\t$sortPos = $out = array();\n\t\t\n// \t\tprint(\"\\n------------------\\n------------------\\nsortPartitionKeyByStart\\n------------------\\n------------------\\n\");\n// \t\tprint_r($in);\n\n\t\tforeach ($in as $key => $val)\n\t\t{\n\t\t\t// Check, if it is a vPart\n\t\t\tif (is_numeric($key))\n\t\t\t\t$sortPos[$key] = $in[$key]['start'] + $in[$key]['end'];\n\t\t\telse\n\t\t\t// Copy other keys and values (eg. 'dev', 'size') directly.\n\t\t\t\t$out[$key] = $val;\n\t\t}\n\n// \t\tprint_r($out);\n\n\t\t/*\n\t\t\tBefore sorting eg.:\n\n\t\t\t$sortPos[0] = 500;\n\t\t\t$sortPos[1] = 0;\n\t\t\t$sortPos[2] = 1000;\n\t\t*/\n\n\t\t// Sort the postion array after the start position of the partitions\n\t\tasort($sortPos, SORT_NUMERIC);\n\n\t\t/*\n\t\t\tAfter sorting eg.:\n\n\t\t\t$sortPos[1] = 0;\n\t\t\t$sortPos[0] = 500;\n\t\t\t$sortPos[2] = 1000;\n\t\t*/\n\n\t\t$vPartNew = 0;\n\t\tforeach ($sortPos as $vPartOld => $val)\n\t\t\t$out[$vPartNew++] = $in[$vPartOld];\n\n// \t\tprint_r($out);\n\n\t\treturn($out);\n\t}", "function testFilteredQuery()\n {\n $q1 = MysqlQueryFactory::getInstance(array(\n \"parameters\" => array(\n \"simple\" => array(\"TYPE\" => \"String\"),\n \"number\" => array(\"TYPE\" => \"Integer\"),\n \"number2\" => array(\"TYPE\" => \"Integer\")\n ),\n \"base\" => \"SELECT * FROM MiTest WHERE [[%filter%]] \"\n ));\n $q1->setConnection($this->connection);\n $g=new StorageEngineGetParams(array(\"query\"=>\"test\",\"filter\"=>array(\"FIELD\"=>\"simple\",\"OPERATOR\"=>\"EQUALS\",\"VALUE\"=>\"Ho'la\")));\n $composed=$q1->parse($g);\n $this->assertEquals(\"SELECT * FROM MiTest WHERE simple = 'Ho\\\\'la'\",trim($composed));\n }", "function prepare_get_filtred_course_list($filter = array())\n{\n $tbl_mdb_names = claro_sql_get_main_tbl();\n\n $sqlFilter = array();\n // Prepare filter deal with KEY WORDS classification call\n if (isset($filter['search']))\n $sqlFilter[] = \"( co.`intitule` LIKE '%\". claro_sql_escape(pr_star_replace($filter['search'])) .\"%'\" . \"\\n\"\n . \" OR co.`administrativeNumber` LIKE '%\". claro_sql_escape(pr_star_replace($filter['search'])) .\"%'\" . \"\\n\"\n . \")\";\n \n \n // Create the WHERE clauses\n $sqlFilter = sizeof($sqlFilter) ? \"WHERE \" . implode(\" AND \",$sqlFilter) : \"\";\n \n // Build the complete SQL request\n $sql = \"SELECT co.`cours_id` AS `id`, \" . \"\\n\"\n . \"co.`administrativeNumber` AS `officialCode`, \" . \"\\n\"\n . \"co.`intitule` AS `intitule`, \" . \"\\n\"\n . \"co.`code` AS `sysCode`, \" . \"\\n\"\n . \"co.`sourceCourseId` AS `sourceCourseId`, \" . \"\\n\"\n . \"co.`isSourceCourse` AS `isSourceCourse`, \" . \"\\n\"\n . \"co.`visibility` AS `visibility`, \" . \"\\n\"\n . \"co.`access` AS `access`, \" . \"\\n\"\n . \"co.`registration` AS `registration`, \" . \"\\n\"\n . \"co.`registrationKey` AS `registrationKey`, \" . \"\\n\"\n . \"co.`directory` AS `repository`, \" . \"\\n\"\n . \"co.`status` AS `status` \" . \"\\n\"\n . \"FROM `\" . $tbl_mdb_names['course'] . \"` AS co \" . \"\\n\"\n . $sqlFilter ;\n \n return $sql;\n}", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'p.kodeunit': return \"p.kodeunit = '$key'\";\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'jalurpenerimaan': return \"jalurpenerimaan = '$key'\";\n\t\t\t\tcase 'jenistagihan': return \"jenistagihan = '$key'\";\n\t\t\t\tcase 'isedit': return \"isedit = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"p.sistemkuliah = '$key'\";\n\t\t\t\tcase 'flaglunas': \n\t\t\t\t$key = implode(\"','\", $key);\n\t\t\t\treturn \"flaglunas in ('$key')\";\n\t\t\t\tcase 'unitdesc':\n\t\t\t\t\tglobal $conn;\n\t\t\t\t\t$sql = \"select infoleft,inforight from gate.ms_unit where kodeunit = '$key'\";\n\t\t\t\t\t$row = $conn->GetRow($sql);\n\t\t\t\t\treturn \"infoleft >= \".(int)$row['infoleft'].\" and inforight <= \".(int)$row['inforight'];\n\t\t\t\tcase 'basiskampus':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('sistemkuliah'));\n\t\t\t\t\t$sistem = mSistemkuliah::getIdByBasisKampus($conn,modul::getBasis(),modul::getKampus());\n\t\t\t\t\treturn \" p.sistemkuliah in ('\".implode(\"','\",$sistem).\"') \";\n\t\t\t\t\t\n\t\t\t}\n\t\t}", "protected function create_where($id = '', $filter = []){\n $where = 'WHERE 1 = 1';\n if($id != ''){\n $where .= \" AND {$this->table_name}.id = $id\";\n }\n foreach($filter as $column => $expression){\n // make sure it is in our column list before we add it to the WHERE\n if(in_array($column, $this->column_list)){\n $where .= \" AND $column $expression\";\n }\n }\n return $where;\n }", "function filter_TR_By_S_A_F($SEDE, $AREA, $FACULTAD,$TABLE_R)\n{\n global $mysqli;\n $TRES = $TABLE_R;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,ps,pca,pcg,gatb,verbal,numer,indice FROM \" .$TRES. \" where sede = ? AND area_i = ? AND fac_ia = ?\");\n $parametros = array(\"iii\", &$SEDE, &$AREA, &$FACULTAD);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "private function checkSamePart($id, $part){\n $query = \"\n SELECT\n `structure_data`.`part`\n FROM\n `structure`,\n `structure_data`\n WHERE\n `structure`.`id` = `structure_data`.`id` &&\n `structure`.`pid` = '\".$id.\"' &&\n `structure_data`.`part` = '\".$part.\"'\n \";\n\n if(mysql_num_rows(mysql_query($query)) > 0){\n return false;\n }else{\n return true;\n };\n }", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\tcase 'basiskampus':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('sistemkuliah'));\n\t\t\t\t\t$sistem = mSistemkuliah::getIdByBasisKampus($conn,modul::getBasis(),modul::getKampus());\n\t\t\t\t\treturn \" sistemkuliah in ('\".implode(\"','\",$sistem).\"') \";\n\t\t\t\t\t\n\t\t\t}\n\t\t}" ]
[ "0.52300304", "0.513603", "0.49697256", "0.49450245", "0.48295516", "0.47859487", "0.47576988", "0.45960146", "0.4589348", "0.45866054", "0.45665765", "0.4553718", "0.45532", "0.45393977", "0.4528993", "0.45231795", "0.4443745", "0.44374856", "0.4426183", "0.44222435", "0.44162747", "0.44162747", "0.44162747", "0.44162747", "0.44162747", "0.44162747", "0.44162747", "0.44054514", "0.4396297", "0.43831828", "0.43761685", "0.43665516", "0.43555474", "0.43547276", "0.43490708", "0.43446887", "0.43354523", "0.4311872", "0.43112934", "0.43036285", "0.4294199", "0.42783317", "0.42726725", "0.4269268", "0.42683935", "0.4246546", "0.42444676", "0.4233208", "0.42266625", "0.42265457", "0.42237887", "0.42190883", "0.4212268", "0.4208271", "0.42063355", "0.42037553", "0.41980577", "0.4197355", "0.41871306", "0.41834906", "0.41789982", "0.4173665", "0.41706216", "0.41652387", "0.41624087", "0.41548488", "0.41535482", "0.41464582", "0.4136227", "0.4133329", "0.41268808", "0.41248864", "0.41237244", "0.41215208", "0.41208082", "0.41208082", "0.41202262", "0.41182035", "0.41130057", "0.40925026", "0.40891227", "0.40828654", "0.40797672", "0.40773067", "0.40736136", "0.4069671", "0.4069476", "0.40686396", "0.40660292", "0.4061927", "0.40615785", "0.40575877", "0.4054285", "0.40509605", "0.40431273", "0.40380043", "0.40273032", "0.4026299", "0.4023474", "0.40182316" ]
0.65440524
0
Filter the query on the abonnement column Example usage: $query>filterByisAbonnement(true); // WHERE abonnement = true $query>filterByisAbonnement('yes'); // WHERE abonnement = true
public function filterByisAbonnement($isAbonnement = null, $comparison = null) { if (is_string($isAbonnement)) { $isAbonnement = in_array(strtolower($isAbonnement), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; } return $this->addUsingAlias(FPartenaireTableMap::COL_ABONNEMENT, $isAbonnement, $comparison); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setFiltroBusqueda()\n {\n \tsfLoader::loadHelpers('Date');\n\n \t$parcial = '';\n \t$modulo = $this->getModuleName();\n\n\t\t$this->cajaBsq = $this->getRequestParameter('caja_busqueda');\n\t\t$this->desdeBsq = $this->getRequestParameter('desde_busqueda');\n\t\t$this->hastaBsq = $this->getRequestParameter('hasta_busqueda');\n\t\t$this->ambitoBsq= $this->getRequestParameter('ambito_busqueda');\n\t\t\n\t\tif (!empty($this->cajaBsq)) {\n\t\t\t$parcial .= \" AND (titulo LIKE '%$this->cajaBsq%')\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowcaja', $this->cajaBsq);\n\t\t}\n\t\tif (!empty($this->desdeBsq)) {\n\t\t\t$parcial .= \" AND fecha >= '\".format_date($this->desdeBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowdesde', $this->desdeBsq);\n\t\t}\n\t\tif (!empty($this->hastaBsq)) {\n\t\t\t$parcial .= \" AND fecha <= '\".format_date($this->hastaBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowhasta', $this->hastaBsq);\n\t\t}\n\t\tif (!empty($this->ambitoBsq)) {\n\t\t\t$parcial .= \" AND ambito = '$this->ambitoBsq'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowambito', $this->ambitoBsq);\n\t\t}\n\t\t//\n\t\tif (!empty($parcial)) {\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowfilter', $parcial);\n\t\t} else {\n\t\t\tif ($this->hasRequestParameter('btn_buscar')) {\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowambito');\n\t\t\t} else {\n\t\t\t\t$parcial = $this->getUser()->getAttribute($modulo.'_nowfilter');\n\t\t\t\t$this->cajaBsq = $this->getUser()->getAttribute($modulo.'_nowcaja');\n\t\t\t\t$this->desdeBsq = $this->getUser()->getAttribute($modulo.'_nowdesde');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowhasta');\n\t\t\t\t$this->ambitoBsq= $this->getUser()->getAttribute($modulo.'_nowambito');\n\t\t\t}\n\t\t}\n\t\tif ($this->hasRequestParameter('btn_quitar')){\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowambito');\n\t\t\t$parcial = \"\";\n\t\t\t$this->cajaBsq = '';\n\t\t\t$this->desdeBsq = '';\n\t\t\t$this->hastaBsq = '';\n\t\t\t$this->ambitoBsq= '';\n\t\t}\n\t\t$this->roles = UsuarioRol::getRepository()->getRolesByUser($this->getUser()->getAttribute('userId'),1);\n\t\t$finalFilter = 'deleted = 0'.$parcial;\n\n\t\tif (!Common::array_in_array(array('1'=>'1', '2'=>'2'), $this->roles)) {\n\t\t\t$finalFilter .= ' AND destacada = 1';\n\t\t}\n\t\treturn $finalFilter;\n }", "public function filter()\n {\n list($column, $operator, $value, $boolean) = func_get_args();\n empty($operator) && $operator = null;\n empty($value) && $value = null;\n empty($boolean) && $boolean = null;\n if($this->hasFilter) {\n $this->model = $this->model->where($column, $operator, $value, $boolean);\n } else {\n $this->model = $this->model->newQuery()->where($column, $operator, $value, $boolean);\n $this->hasFilter = true;\n }\n\n return $this;\n }", "private static function _getFilter() {}", "public function filterByAb($ab = null, $comparison = null)\n {\n if (is_array($ab)) {\n $useMinMax = false;\n if (isset($ab['min'])) {\n $this->addUsingAlias(TblShippingEconomyTableMap::COL_AB, $ab['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($ab['max'])) {\n $this->addUsingAlias(TblShippingEconomyTableMap::COL_AB, $ab['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(TblShippingEconomyTableMap::COL_AB, $ab, $comparison);\n }", "public function filter($criteria, $filter, $args=[]);", "protected function setFiltroBusqueda()\n {\n \tsfLoader::loadHelpers('Date');\n \t$parcial = '';\n \t$modulo = $this->getModuleName();\n\n\t\t$this->cajaBsq = $this->getRequestParameter('caja_busqueda');\n\t\t$this->categoriaBsq = $this->getRequestParameter('archivo_d_o[categoria_organismo_id]');\n\t\t$this->subcategoriaBsq = $this->getRequestParameter('archivo_d_o[subcategoria_organismo_id]');\n\t\t$this->organismoBsq = $this->getRequestParameter('archivo_d_o[organismo_id]');\n\t\t$this->documentacionBsq = $this->getRequestParameter('archivo_d_o[documentacion_organismo_id]');\n\t\t$this->desdeBsq = $this->getRequestParameter('desde_busqueda');\n\t\t$this->hastaBsq = $this->getRequestParameter('hasta_busqueda');\n\t\t\n\n\t\tif (!empty($this->cajaBsq)) {\n\t\t\t$parcial .= \" AND (ao.nombre LIKE '%$this->cajaBsq%')\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowcaja', $this->cajaBsq);\n\t\t}\n\t\tif (!empty($this->categoriaBsq)) {\n\t\t\t$parcial .= \" AND ao.categoria_organismo_id =\".$this->categoriaBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowcategoria', $this->categoriaBsq);\n\t\t}\n\t\tif (!empty($this->subcategoriaBsq)) {\n\t\t\t$parcial .= \" AND ao.subcategoria_organismo_id =\".$this->subcategoriaBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowsubcategoria', $this->subcategoriaBsq);\n\t\t}\n\t\tif (!empty($this->organismoBsq)) {\n\t\t\t$parcial .= \" AND ao.organismo_id =\".$this->organismoBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_noworganismos', $this->organismoBsq);\n\t\t}\n\t\tif (!empty($this->documentacionBsq)) {\n\t\t\t$parcial .= \" AND ao.documentacion_organismo_id =\".$this->documentacionBsq ;\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowdocumentacion', $this->documentacionBsq);\n\t\t}\n\t\tif (!empty($this->desdeBsq)) {\n\t\t\t$parcial .= \" AND ao.fecha >= '\".format_date($this->desdeBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowdesde', $this->desdeBsq);\n\t\t}\n\t\tif (!empty($this->hastaBsq)) {\n\t\t\t$parcial .= \" AND ao.fecha <= '\".format_date($this->hastaBsq,'d').\"'\";\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowhasta', $this->hastaBsq);\n\t\t}\n\n\n\t\tif (!empty($parcial)) {\n\t\t\t$this->getUser()->setAttribute($modulo.'_nowfilter', $parcial);\n\t\t} else {\n\t\t\tif ($this->hasRequestParameter('btn_buscar')) {\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcategoria');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowsubcategoria');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_noworganismos');\n\t\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdocumentacion');\n\t\t\t} else {\n\t\t\t\t$parcial = $this->getUser()->getAttribute($modulo.'_nowfilter');\n\t\t\t\t$this->cajaBsq = $this->getUser()->getAttribute($modulo.'_nowcaja');\n\t\t\t\t$this->desdeBsq = $this->getUser()->getAttribute($modulo.'_nowdesde');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowhasta');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowcategoria');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowsubcategoria');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_noworganismos');\n\t\t\t\t$this->hastaBsq = $this->getUser()->getAttribute($modulo.'_nowdocumentacion');\n\t\t\t}\n\t\t} \n\n\t\t\n\t\tif ($this->hasRequestParameter('btn_quitar')){\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowfilter');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcaja');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdesde');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowhasta');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowcategoria');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowsubcategoria');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_noworganismos');\n\t\t\t$this->getUser()->getAttributeHolder()->remove($modulo.'_nowdocumentacion');\n\t\t\t$parcial=\"\";\n\t\t\t$this->cajaBsq = \"\";\n\t\t\t$this->categoriaBsq = '';\n\t\t\t$this->subcategoriaBsq = '';\n\t\t\t$this->organismoBsq = '';\n\t\t\t$this->documentacionBsq = '';\n\t\t\t$this->desdeBsq = '';\n\t\t\t$this->hastaBsq = '';\n\t\t}\n\t\t$organismos = Organismo::IdDeOrganismo($this->getUser()->getAttribute('userId'),1);\n $this->roles = UsuarioRol::getRepository()->getRolesByUser($this->getUser()->getAttribute('userId'),1);\n\t\tif(Common::array_in_array(array('1'=>'1', '2'=>'2', '6'=>'6'), $this->roles))\n\t\t{\n\t\t\treturn \"ao.deleted=0\".$parcial.\" AND (do.owner_id = \".$this->getUser()->getAttribute('userId').\" OR do.estado != 'guardado')\";\n\t\t}\n\t\telse\n\t\t{\n $responsables = ArchivoDO::getUSerREsponsables();\n return \"ao.deleted=0\".$parcial.\" AND ao.organismo_id IN \".$organismos.\" AND (do.owner_id = \".$this->getUser()->getAttribute('userId').\" OR do.estado != 'guardado') AND (ao.owner_id \".$responsables.\" OR do.confidencial != 1 OR ao.owner_id = \".$this->getUser()->getAttribute('userId').\")\";\n }\n\t\t \n\n }", "protected function getFilterField(){\n $aField = parent::getFilterField();\n $oRequest = AMI::getSingleton('env/request');\n if(!$oRequest->get('category', 0)){\n $aField['disableSQL'] = TRUE;\n }\n return $aField;\n }", "function getListFilter($col,$key,$tahun='',$bulan='') {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': \n\t\t\t\t\treturn \"datepart(year,p.tglperolehan) = '$tahun' and datepart(month,p.tglperolehan) = '$bulan' \"; \n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once('m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"infoleft >= \".(int)$row['infoleft'].\" and inforight <= \".(int)$row['inforight'];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public function filterByActivo($activo = null, $comparison = null)\n\t{\n\t\tif (is_string($activo)) {\n\t\t\t$activo = in_array(strtolower($activo), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n\t\t}\n\t\treturn $this->addUsingAlias(ExpositorFeriaPeer::ACTIVO, $activo, $comparison);\n\t}", "public static function getFilter()\n {\n if (isset($conf['kolab']['server']['params']['admin'][self::ATTRIBUTE_SID])) {\n $manager = $conf['kolab']['server']['params']['admin'][self::ATTRIBUTE_SID];\n } else {\n $manager = 'manager';\n }\n\n $criteria = array('AND' => array(\n array('field' => self::ATTRIBUTE_CN,\n 'op' => 'any'),\n array('field' => self::ATTRIBUTE_SN,\n 'op' => 'any'),\n array('field' => self::ATTRIBUTE_OC,\n 'op' => '=',\n 'test' => self::OBJECTCLASS_INETORGPERSON),\n array('NOT' => array(\n array('field' => self::ATTRIBUTE_SID,\n 'op' => '=',\n 'test' => $manager),\n ),\n ),\n ),\n );\n return $criteria;\n }", "public function filtrarListaAlumnos($tipo_filtro, $valor)\n {\n //`al`.`carrera_especialidad`\n $filtro = \"\";\n switch ($tipo_filtro){\n case \"1\":\n //Filtro por sexo\n $filtro = \" AND p.sexo = \".$valor;\n break;\n case \"2\":\n //Filtro por municipio\n $filtro = \" AND al.id_municipio = \".$valor;\n break;\n case \"3\":\n //Filtro por por estatus de la cuenta (activa/inactva)\n $filtro = \" AND p.estatus = \".$valor;\n break;\n case \"4\":\n //Filtro por por Id de iniversidad\n $filtro = \" AND al.id_universidad = \".$valor;\n break;\n case \"5\":\n //Filtro por tipo de procedenceia\n $filtro = \" AND al.tipo_procedencia = \".$valor;\n break;\n case \"6\":\n //Filtro por carrera\n $filtro = \" AND al.carrera_especialidad = \".$valor;\n break;\n default:\n $filtro = \"\";\n break;\n }\n $query = \"SELECT \n al.id_alumno, p.nombre, p.app, \n p.apm, p.telefono, p.sexo, \n p.estatus AS estatus_p, al.id_municipio, \n al.id_universidad, al.id_persona, \n al.matricula, al.nombre_uni, al.carrera_especialidad, \n al.email, al.fecha_registro, al.perfil_image, al.estatus \n AS estatus_al, tp.id_tipo_procedencia, tp.tipo_procedencia\n FROM alumno al,persona p , tipo_procedencia tp\n WHERE al.id_persona = p.id_persona \n AND al.id_tipo_procedencia_fk = tp.id_tipo_procedencia\n AND p.estatus = 1 \".$filtro.\" ORDER BY `p`.`nombre` ASC\";\n $this->connect();\n $result = $this->getData($query);\n $this->close();\n return $result;\n }", "function getArrayListFilterCol() {\n\t\t\t$data['kodeunit'] = 'u.kodeunit';\n\t\t\t\n\t\t\treturn $data;\n\t\t}", "public function searchByFilter() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!empty($this->rekening1_id)) {\n $criteria->addCondition(\"rekening1_id = \" . $this->rekening1_id);\n }\n $criteria->compare('LOWER(kdrekening1)', strtolower($this->kdrekening1), true);\n $criteria->compare('LOWER(nmrekening1)', strtolower($this->nmrekening1), true);\n $criteria->compare('LOWER(nmrekeninglain1)', strtolower($this->nmrekeninglain1), true);\n// $criteria->compare('LOWER(rekening1_nb)', strtolower($this->rekening1_nb), true);\n $criteria->compare('rekening1_aktif', $this->rekening1_aktif);\n if (!empty($this->rekening2_id)) {\n $criteria->addCondition(\"rekening2_id = \" . $this->rekening2_id);\n }\n $criteria->compare('LOWER(kdrekening2)', strtolower($this->kdrekening2), true);\n $criteria->compare('LOWER(nmrekening2)', strtolower($this->nmrekening2), true);\n $criteria->compare('LOWER(nmrekeninglain2)', strtolower($this->nmrekeninglain2), true);\n// $criteria->compare('LOWER(rekening2_nb)', strtolower($this->rekening2_nb), true);\n $criteria->compare('rekening2_aktif', $this->rekening2_aktif);\n if (!empty($this->rekening3_id)) {\n $criteria->addCondition(\"rekening3_id = \" . $this->rekening3_id);\n }\n $criteria->compare('LOWER(kdrekening3)', strtolower($this->kdrekening3), true);\n $criteria->compare('LOWER(nmrekening3)', strtolower($this->nmrekening3), true);\n $criteria->compare('LOWER(nmrekeninglain3)', strtolower($this->nmrekeninglain3), true);\n// $criteria->compare('LOWER(rekening3_nb)', strtolower($this->rekening3_nb), true);\n $criteria->compare('rekening3_aktif', $this->rekening3_aktif);\n if (!empty($this->rekening4_id)) {\n $criteria->addCondition(\"rekening4_id = \" . $this->rekening4_id);\n }\n $criteria->compare('LOWER(kdrekening4)', strtolower($this->kdrekening4), true);\n $criteria->compare('LOWER(nmrekening4)', strtolower($this->nmrekening4), true);\n $criteria->compare('LOWER(nmrekeninglain4)', strtolower($this->nmrekeninglain4), true);\n// $criteria->compare('LOWER(rekening4_nb)', strtolower($this->rekening4_nb), true);\n $criteria->compare('rekening4_aktif', $this->rekening4_aktif);\n if (!empty($this->rekening5_id)) {\n $criteria->addCondition(\"rekening5_id = \" . $this->rekening5_id);\n }\n $criteria->compare('LOWER(kdrekening5)', strtolower($this->kdrekening5), true);\n $criteria->compare('LOWER(nmrekening5)', strtolower($this->nmrekening5), true);\n $criteria->compare('LOWER(nmrekeninglain5)', strtolower($this->nmrekeninglain5), true);\n// $criteria->compare('LOWER(rekening5_nb)', strtolower($this->rekening5_nb), true);\n $criteria->compare('LOWER(keterangan)', strtolower($this->keterangan), true);\n $criteria->compare('nourutrek', $this->nourutrek);\n $criteria->compare('rekening5_aktif', $this->rekening5_aktif);\n $criteria->compare('LOWER(kelompokrek)', strtolower($this->kelompokrek), true);\n $criteria->compare('sak', $this->sak);\n $criteria->compare('LOWER(create_time)', strtolower($this->create_time), true);\n $criteria->compare('LOWER(update_time)', strtolower($this->update_time), true);\n $criteria->compare('LOWER(create_loginpemakai_id)', strtolower($this->create_loginpemakai_id), true);\n $criteria->compare('LOWER(update_loginpemakai_id)', strtolower($this->update_loginpemakai_id), true);\n $criteria->compare('LOWER(create_ruangan)', strtolower($this->create_ruangan), true);\n// $condition = 'rincianobyek_id IS NOT NULL';\n// $criteria->addCondition($condition);\n $criteria->order = 'rekening1_id, rekening2_id, rekening3_id, rekening4_id, nourutrek';\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function getfilterColumns()\n\t{\n\t\treturn array(\"name\",\"last_name\", \"country\");\n\t}", "public function searchAvisos() {\n // should not be searched.\n \n $nombre = \"\";\n $apellido = \"\";\n $nombres = explode(\" \",$this->cliente_nombre);\n if(count($nombres) == 1){\n $nombre = $this->cliente_nombre;\n $apellido = $this->cliente_nombre;\n }\n elseif(count($nombres) == 2){\n $nombre = $nombres[0];\n $apellido = $nombres[1];\n }\n \n $criteria = new CDbCriteria;\n $criteria->with = array('departamento', 'tipoContrato', 'cliente');\n $criteria->join .= 'join departamento as d on d.id = t.departamento_id '\n . ' join propiedad as p on p.id = d.propiedad_id'\n . ' join tipo_contrato as tipo on tipo.id = t.tipo_contrato_id '\n . ' join cliente as c on c.id = t.cliente_id '\n . ' join usuario as u on u.id = c.usuario_id ';\n \n $arreglo = explode(\" \",$this->cliente_nombre);\n $nombreApellido = array();\n foreach($arreglo as $palabra){\n if(trim($palabra)!= ''){\n $nombreApellido[]=$palabra;\n }\n }\n $criteriaNombreUser1 = new CDbCriteria();\n $palabras = count($nombreApellido);\n if($palabras == 1){\n $busqueda = $nombreApellido[0];\n if(trim($busqueda) != ''){\n $criteriaNombreUser1->compare('u.nombre',$busqueda,true);\n $criteriaNombreUser1->compare('u.apellido',$busqueda,true,'OR');\n }\n }\n\n if($palabras == 2){\n $nombre = $nombreApellido[0];\n $apellido = $nombreApellido[1];\n $criteriaNombreUser1->compare('u.nombre',$nombre,true);\n $criteriaNombreUser1->compare('u.apellido',$apellido,true);\n }\n\n $criteria->compare('folio', $this->folio);\n $criteria->mergeWith($criteriaNombreUser1,'AND');\n \n $criteria->compare('fecha_inicio', Tools::fixFecha($this->fecha_inicio), true);\n $criteria->compare('p.nombre', $this->propiedad_nombre, true);\n $criteria->compare('d.numero', $this->depto_nombre, true);\n $criteria->compare('c.rut', $this->cliente_rut, true);\n $criteria->compare('t.vigente', 1);\n \n \n if(Yii::app()->user->rol == 'cliente'){\n $cliente = Cliente::model()->findByAttributes(array('usuario_id'=>Yii::app()->user->id));\n if($cliente!=null){\n $criteria->compare('t.cliente_id',$cliente->id);\n }\n else{\n $criteria->compare('t.cliente_id',-1);\n }\n }\n \n if(Yii::app()->user->rol == 'propietario'){\n $criteriaPropietario = new CDbCriteria();\n $contratos = Contrato::model()->relacionadosConPropietario(Yii::app()->user->id);\n foreach($contratos as $contrato_id){\n $criteriaPropietario->compare('t.id', $contrato_id, false,'OR'); \n }\n $criteria->mergeWith($criteriaPropietario,'AND');\n }\n \n \n \n \n \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'attributes' => array(\n 'depto_nombre' => array(\n 'asc' => 'd.numero',\n 'desc' => 'd.numero DESC',\n ),\n 'tipo_nombre' => array(\n 'asc' => 'tipo.nombre',\n 'desc' => 'tipo.nombre DESC',\n ),\n 'cliente_rut' => array(\n 'asc' => 'c.rut',\n 'desc' => 'c.rut DESC',\n ),\n 'cliente_nombre' => array(\n 'asc' => 'u.apellido,u.nombre',\n 'desc' => 'u.apellido DESC,u.nombre DESC',\n ),\n 'propiedad_nombre' => array(\n 'asc' => 'p.nombre',\n 'desc' => 'p.nombre DESC',\n ),\n '*',\n ),\n ),\n ));\n }", "public function getFilter(): string;", "protected function getWhereClause() {}", "public function addActiveFilter()\n {\n return $this->addFieldToFilter('status', 1);\n }", "public function getAndFilter() {\n\t\treturn $this->db->getAndFilter();\n\t}", "public function getFilter();", "public function getFilter();", "public function getFilter(){ }", "public function filterByActivo($activo = null, $comparison = null)\n\t{\n\t\tif (is_string($activo)) {\n\t\t\t$activo = in_array(strtolower($activo), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n\t\t}\n\t\treturn $this->addUsingAlias(ActividadPeer::ACTIVO, $activo, $comparison);\n\t}", "public function getFilter() :array;", "public function isFiltered() : bool;", "function getFiltroEmpresa($get,$where = \"1 = 1\"){\n \n if(isset($get['cdFilial']) ){\n $CdFilial = $get['cdFilial'];\n if(!empty($CdFilial)){\n return $where .= \" AND CDFILIALENTREGA IN ($CdFilial) \";\n }\n }\n }", "protected function modifyQueryForFilter()\n {\n //the following select includes the mobile number, but overrides\n //the columns with an empty string if the matching boolean is false\n $this->q->getDoctrineQuery()->addSelect(\n 'if(x.is_show_mobile_number_in_phonebook is not FALSE, x.mobile_number, \\'\\') as mobile_number'\n );\n \n if ($this->isLocationView)\n {\n //order results by location name first\n $this->q->addOrderByPrefix('UllLocation->name');\n }\n\n if (!empty($this->phoneSearchFilter))\n {\n $this->q->getDoctrineQuery()->openParenthesisBeforeLastPart();\n \n //we need special handling here because we don't want hidden\n //numbers to be searchable\n $phoneSearchFilterPattern = '%' . $this->phoneSearchFilter . '%';\n \n $this->q->getDoctrineQuery()->orWhere(\n '(is_show_extension_in_phonebook is not FALSE AND phone_extension LIKE ?) ' .\n 'OR (is_show_extension_in_phonebook is FALSE AND alternative_phone_extension LIKE ?)',\n array($phoneSearchFilterPattern, $phoneSearchFilterPattern));\n\n $this->q->orWhere('is_show_mobile_number_in_phonebook is not FALSE ' .\n 'AND mobile_number LIKE ?', $phoneSearchFilterPattern);\n \n $this->q->getDoctrineQuery()->closeParenthesis();\n }\n \n\n if (!empty($this->filter_location_id))\n {\n $this->q->addWhere('ull_location_id = ?', $this->filter_location_id);\n }\n \n //we only want users which are active and have their\n //show-in-phonebook not set to false\n $this->q->addWhere('UllUserStatus->is_active is TRUE and is_show_in_phonebook is not FALSE');\n }", "public function filterByAbilitato($abilitato = null, $comparison = null)\n {\n if (is_string($abilitato)) {\n $abilitato = in_array(strtolower($abilitato), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n }\n\n return $this->addUsingAlias(AccountTableMap::COL_ABILITATO, $abilitato, $comparison);\n }", "public function getSpecialAccommodationsFilter( $queryBuilder , $alias , $field , $value ) {\n\n\t\tif( $value['value'] == '' ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif( $value['value'] == 'Yes' ) {\n\t\t\t$queryBuilder->andWhere( sprintf( '%s.specialAccommodations = :special' , $alias ) );\n\t\t\t$queryBuilder->setParameter( 'special' , 1 );\n\t\t}\n\t\tif( $value['value'] == 'No' ) {\n\t\t\t$queryBuilder->andWhere( sprintf( '%s.specialAccommodations = :special' , $alias ) );\n\t\t\t$queryBuilder->setParameter( 'special' , 0 );\n\t\t}\n\n\t\treturn true;\n\t}", "protected function functionCriteria() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!is_array($this->kunjungan)){\n $this->kunjungan = 0;\n }\n \n $criteria->addBetweenCondition('date(tglmasukpenunjang)', $this->tglAwal, $this->tglAkhir);\n $criteria->compare('kunjungan', $this->kunjungan);\n\t\tif(!empty($this->instalasiasal_id)){\n\t\t\t$criteria->addCondition('instalasiasal_id ='.$this->instalasiasal_id);\n\t\t}\n if (!empty($this->instalasiasal_id)){\n if (!is_array($this->ruanganasal_id)){\n $this->ruanganasal_id = 0;\n }\n }\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('carabayar_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('penjamin_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->ruanganasal_id)){\n\t\t\t$criteria->addCondition('ruanganasal_id ='.$this->ruanganasal_id);\n\t\t}\n $criteria->addCondition('ruanganpenunj_id = '.Yii::app()->user->getState('ruangan_id'));\n\n return $criteria;\n }", "public function search($params,$filtros)\n {\n $query = FdTanquesAlmacenaApscom::find()->alias('a');\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n \n $query->leftJoin('fd_opcion_select b', 'medicion_entrada = b.id_opcion_select');\n $query->leftJoin('fd_opcion_select c', 'material = c.id_opcion_select');\n $query->leftJoin('fd_opcion_select d', 'frecuencia_mantenimiento = d.id_opcion_select');\n $query->leftJoin('fd_opcion_select e', 'estado_tanque = e.id_opcion_select');\n $query->leftJoin('fd_opcion_select f', 'problemas = f.id_opcion_select');\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id_tanquesalmacena' => $this->id_tanquesalmacena,\n 'capacidad_tanque' => $this->capacidad_tanque,\n 'medicion_entrada' => $this->medicion_entrada,\n //'material' => $this->material,\n //'frecuencia_mantenimiento' => $this->frecuencia_mantenimiento,\n //'estado_tanque' => $this->estado_tanque,\n //'problemas' => $this->problemas,\n 'id_conjunto_respuesta' => $this->id_conjunto_respuesta,\n 'id_junta' => $this->id_junta,\n 'id_pregunta' => $this->id_pregunta,\n 'id_respuesta' => $this->id_respuesta,\n 'id_capitulo' => $this->id_capitulo,\n ]);\n $query->andFilterWhere(['like', 'a.especifique', $this->especifique]) \n ->andFilterWhere(['like', 'b.nom_opcion_select', $this->medicion_entrada])\n ->andFilterWhere(['like', 'c.nom_opcion_select', $this->material])\n ->andFilterWhere(['like', 'd.nom_opcion_select', $this->frecuencia_mantenimiento])\n ->andFilterWhere(['like', 'e.nom_opcion_select', $this->estado_tanque])\n ->andFilterWhere(['like', 'f.nom_opcion_select', $this->problemas]);\n \n $query->andFilterWhere([ \n 'id_conjunto_respuesta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_conjunto_respuesta'],\n 'id_pregunta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_pregunta'],\n 'id_respuesta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_respuesta'], \n 'id_junta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_junta'], \n ]);\n\n\n return $dataProvider;\n }", "public function buscarPorFiltros($filters, $personalShopper = 0) {\n// echo \"<pre>\";\n// print_r($filters);\n// echo \"</pre>\";\n// Yii::app()->end();\n\n $criteria = new CDbCriteria;\n \n $criteria->with = array();\n //$criteria->select = array();\n //$criteria->select[] = \"t.*\";\n \n $havingPrecio = '';\n \n for ($i = 0; $i < count($filters['fields']); $i++) {\n \n $column = $filters['fields'][$i];\n $value = $filters['vals'][$i];\n $comparator = $filters['ops'][$i];\n \n if($i == 0){\n $logicOp = 'AND'; \n }else{ \n $logicOp = $filters['rels'][$i-1]; \n } \n \n if($column == 'campana')\n {\n \n $value = ($comparator == '=') ? \"=\".$value.\"\" : $value;\n \n $criteria->compare('campana.nombre', $value,\n true, $logicOp);\n \n \n $criteria->with[] = 'campana';\n \n \n continue;\n }\n \n if($column == 'precio')\n {\n $criteria->addCondition('(select sum(precios.precioDescuento) from `tbl_look_has_producto` `productos_productos`, `tbl_producto` `productos`, `tbl_precio` `precios` \n where `t`.`id`=`productos_productos`.`look_id` and `productos`.`id`=`productos_productos`.`producto_id` and \n `precios`.`tbl_producto_id`=`productos`.`id`) '\n .$comparator.' '.$value.'', $logicOp); \n \n \n continue;\n } \n \n if($column == 'marca')\n { \n \n $criteria->with['productos'] = array(\n 'select'=> false,\n //'joinType'=>'INNER JOIN',\n //'condition'=>'productos.nombres = 8',\n ); \n \n //having\n if(!strpos($criteria->group, \"t.id\")){\n $criteria->group = 't.id';\n }\n \n //agregar condicion marca_id\n $criteria->addCondition('productos.marca_id'\n .$comparator.' '.$value.'', $logicOp); \n \n continue;\n } \n \n if($column == 'prendas')\n {\n $criteria->addCondition('(select count(look_id) \n from `tbl_look_has_producto` `productos_productos`\n where `t`.`id`=`productos_productos`.`look_id`)'\n .$comparator.' '.$value.'', $logicOp);\n \n continue; \n } \n \n if($column == 'cantidad')\n {\n /*\n * Por cada orden se esta contando el look como vendido una \n * sola vez asi aparezca dos veces en la misma orden\n * \n * Luego se debe corregir para que cuente correctamente si \n * el look ha sido pedido mas de una vez en una orden\n */\n \n $criteria->addCondition('\n (select count(distinct(orden.id)) from tbl_orden_has_productotallacolor o_ptc, tbl_orden orden\n where o_ptc.tbl_orden_id = orden.id\n and\n o_ptc.look_id > 0\n and\n o_ptc.look_id = t.id\n and\n orden.estado IN (3, 4, 8))'\n .$comparator.' '.$value.'', $logicOp);\n \n continue; \n } \n \n if($column == 'monto')\n {\n \n $criteria->addCondition('\n (select count(distinct(orden.id)) from tbl_orden_has_productotallacolor o_ptc, tbl_orden orden\n where o_ptc.tbl_orden_id = orden.id\n and\n o_ptc.look_id > 0\n and\n o_ptc.look_id = t.id\n and\n orden.estado IN (3, 4, 8)) \n *\n (select sum(precios.precioDescuento) from `tbl_look_has_producto` `productos_productos`, `tbl_producto` `productos`, `tbl_precio` `precios` \n where `t`.`id`=`productos_productos`.`look_id` and `productos`.`id`=`productos_productos`.`producto_id` and \n `precios`.`tbl_producto_id`=`productos`.`id`)\n '\n .$comparator.' '.$value.'', $logicOp);\n \n continue; \n } \n\n\t\t\t\tif($column == 'ocasion')\n {\n \t\n\t\t\t\t\t$criteria->compare('categoriahaslook.categoria_id', $comparator.\" \".$value,\n\t false, $logicOp);\n\t\t\t\t\t$criteria->with[] = 'categoriahaslook';\n\t\t\t\t\t\n\t\t\t\t\t continue; \n\t\t\t\t \n }\n\n\t\t\t\tif($column == 'activo')\n {\t \n\t\t\t\t\t \t $criteria->compare(\"t.activo\", $comparator.$value, \n\t false, $logicOp);\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t continue; \n\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\tif($column == 'inactivo')\n {\n\t\t\t\t\t$value = ($value == 1) ? 0 : 1; // el contrario\n\t\t\t\t\t\n\t\t\t\t\t $criteria->compare(\"t.activo\", $comparator.$value, \n\t false, $logicOp);\n\t\t\t\t\t\n\t\t\t\t\t continue; \n\t\t\t\t \n } \n \n if($column == 'created_on')\n {\n $value = strtotime($value);\n $value = date('Y-m-d H:i:s', $value);\n }\n\n\n\n $criteria->compare(\"t.\".$column, $comparator.\" \".$value,\n false, $logicOp);\n \n }\n \n// $criteria->select = 't.*';\n $criteria->having .= $havingPrecio;\n //$criteria->with = array('categorias', 'preciotallacolor', 'precios');\n $criteria->together = true;\n \n //si se estan usando los filtros en Mis Looks\n if($personalShopper){\n $criteria->compare('t.user_id', $personalShopper); //siempre los no eliminados\n }\n \n \n// echo \"Criteria:\";\n// \n// echo \"<pre>\";\n// print_r($criteria->toArray());\n// echo \"</pre>\"; \n //exit();\n\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function filtering();", "function getColumnFilter ( &$where = array(),\n $table,\n $column,\n $columnLogicOpr,\n $minOper,\n $minValue,\n $rangeLogicOper,\n $maxOper,\n $maxValue ) {\n if ( ($minOper != \"\" and $minValue != \"\") and ( $maxValue == \"\" )) {\n $where[] = \"$columnLogicOpr \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue\";\n }\n // Assign just the max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ( $minValue == \"\") ) {\n $where[] = \"$columnLogicOpr \". self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue\";\n }\n\t// Assign both min and max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ($minOper != \"\" and $minValue != \"\") ) {\n $where[] = \"$columnLogicOpr ( \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue $rangeLogicOper \".\n self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue )\";\n }\n }", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->exemplar_id) AND ( (is_scalar($data->exemplar_id) AND $data->exemplar_id !== '') OR (is_array($data->exemplar_id) AND (!empty($data->exemplar_id)) )) )\n {\n\n $filters[] = new TFilter('exemplar_id', '=', $data->exemplar_id);// create the filter \n }\n\n if (isset($data->leitor_id) AND ( (is_scalar($data->leitor_id) AND $data->leitor_id !== '') OR (is_array($data->leitor_id) AND (!empty($data->leitor_id)) )) )\n {\n\n $filters[] = new TFilter('leitor_id', '=', $data->leitor_id);// create the filter \n }\n\n if (isset($data->dt_emprestimo) AND ( (is_scalar($data->dt_emprestimo) AND $data->dt_emprestimo !== '') OR (is_array($data->dt_emprestimo) AND (!empty($data->dt_emprestimo)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '>=', $data->dt_emprestimo);// create the filter \n }\n\n if (isset($data->dt_emprestimo_final) AND ( (is_scalar($data->dt_emprestimo_final) AND $data->dt_emprestimo_final !== '') OR (is_array($data->dt_emprestimo_final) AND (!empty($data->dt_emprestimo_final)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '<=', $data->dt_emprestimo_final);// create the filter \n }\n\n if (isset($data->dt_previsao) AND ( (is_scalar($data->dt_previsao) AND $data->dt_previsao !== '') OR (is_array($data->dt_previsao) AND (!empty($data->dt_previsao)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '>=', $data->dt_previsao);// create the filter \n }\n\n if (isset($data->dt_prevista_final) AND ( (is_scalar($data->dt_prevista_final) AND $data->dt_prevista_final !== '') OR (is_array($data->dt_prevista_final) AND (!empty($data->dt_prevista_final)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '<=', $data->dt_prevista_final);// create the filter \n }\n\n if (isset($data->dt_devolucao) AND ( (is_scalar($data->dt_devolucao) AND $data->dt_devolucao !== '') OR (is_array($data->dt_devolucao) AND (!empty($data->dt_devolucao)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '>=', $data->dt_devolucao);// create the filter \n }\n\n if (isset($data->dt_devolucao_final) AND ( (is_scalar($data->dt_devolucao_final) AND $data->dt_devolucao_final !== '') OR (is_array($data->dt_devolucao_final) AND (!empty($data->dt_devolucao_final)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '<=', $data->dt_devolucao_final);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }", "abstract protected function filterField(): string;", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('ID_PERSONA', $this->ID_PERSONA);\n if (!Yii::app()->user->A1()) {\n $criteria->compare('ID_EMPRESA', Yii::app()->getSession()->get('id_empresa'));\n $criteria->compare('DEBAJA', 0);\n } else {\n $criteria->compare('ID_EMPRESA', $this->ID_EMPRESA);\n $criteria->compare('DEBAJA', $this->DEBAJA);\n }\n $criteria->compare('RUT_PERSONA', $this->RUT_PERSONA, true);\n $criteria->compare('NOMBRE_PERSONA', $this->NOMBRE_PERSONA, true);\n $criteria->compare('APELLIDO_PERSONA', $this->APELLIDO_PERSONA, true);\n $criteria->compare('TELEFONO', $this->TELEFONO, true);\n $criteria->compare('EMAIL', $this->EMAIL, true);\n $criteria->compare('ID_CARGO', $this->ID_CARGO);\n $criteria->compare('ID_DEPARTAMENTO', $this->ID_DEPARTAMENTO);\n $criteria->compare('ES_SUPERVISOR', $this->ES_SUPERVISOR, true);\n $criteria->compare('ES_USUARIO', $this->ES_USUARIO);\n $criteria->compare('APRUEBA_DOCS', $this->APRUEBA_DOCS);\n $criteria->compare('ESTADO_TRABAJADOR', $this->ESTADO_TRABAJADOR, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "function filters($filter)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT * FROM appearance WHERE id_appearance = %s\",\n\t\t\t\t\t\t\t\t\t\t GetSQLValueString($filter, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"filters\"];\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idinmueble',$this->idinmueble);\n\t\t$criteria->compare('fechaPublicacion',$this->fechaPublicacion,true);\n\t\t//$criteria->compare('gastosComunes',$this->gastosComunes,true);\n\t\t$criteria->compare('superEdif',$this->superEdif,true);\n\t\t//$criteria->compare('anioConst',$this->anioConst);\n\t\t$criteria->compare('dormitorios',$this->dormitorios);\n\t\t$criteria->compare('banios',$this->banios);\n\t\t//$criteria->compare('cocina',$this->cocina);\n\t\t//$criteria->compare('living',$this->living);\n\t\t//$criteria->compare('comedor',$this->comedor);\n\t\t$criteria->compare('terraza',$this->terraza);\n\t\t//$criteria->compare('piso',$this->piso);\n\t\t$criteria->compare('equipado',$this->equipado);\n\t\t//$criteria->compare('padron',$this->padron);\n\t\t//$criteria->compare('mejoras',$this->mejoras);\n\t\t//$criteria->compare('nivelado',$this->nivelado);\n\t\t//$criteria->compare('agreste',$this->agreste);\n\t\t$criteria->compare('tipo',$this->tipo,true);\n //$criteria->compare('foto',$this->foto,true);\n\t\t//$criteria->compare('foto2',$this->foto2,true);\n\t\t//$criteria->compare('foto3',$this->foto3,true);\n\t\t//$criteria->compare('foto4',$this->foto4,true);\n\t\t//$criteria->compare('foto5',$this->foto5,true);\n $criteria->compare('departamento',$this->departamento,true);\n\t\t$criteria->compare('ciudad',$this->ciudad,true);\n\t\t$criteria->compare('barrio',$this->barrio,true);\n\t\t//$criteria->compare('calle',$this->calle,true);\n\t\t//$criteria->compare('numero',$this->numero);\n\t\t//$criteria->compare('apto',$this->apto);\n\t\t//$criteria->compare('descripcion',$this->descripcion,true);\n\t\t//$criteria->compare('latitud',$this->latitud);\n\t\t//$criteria->compare('longitud',$this->longitud);\n $criteria->compare('precio',$this->precio);\n\t\t$criteria->compare('destacado',$this->destacado);\n\t\t//$criteria->compare('moneda',$this->moneda);\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function applyFilterSearchAgencias($agencias,$filter)\n {\n \n $filter=strtoupper($filter);\n $result=array();\n foreach ($agencias as $a) {\n \n if(preg_match('/'.$filter.'/',strtoupper($a->getNombre())) ||\n preg_match('/'.$filter.'/',strtoupper($a->getRuc())) ||\n preg_match('/'.$filter.'/',strtoupper($a->getEmail())) ||\n preg_match('/'.$filter.'/',strtoupper($a->getTelefono())) || \n preg_match('/'.$filter.'/',strtoupper($a->getCiudad()->getNombre()))) \n \n {\n $result[]= $a;\n }\n \n \n }\n return $result;\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idEstudiante',$this->idEstudiante);\n\t\t$criteria->compare('nomEstudiante',$this->nomEstudiante,true);\n\t\t$criteria->compare('apellEstudiante',$this->apellEstudiante,true);\n\t\t$criteria->compare('secApellEstudante',$this->secApellEstudante,true);\n\t\t$criteria->compare('ciEstudiante',$this->ciEstudiante,true);\n\t\t$criteria->compare('idTutor',$this->idTutor);\n\t\t$criteria->compare('sexEstudiante',$this->sexEstudiante);\n\t\t$criteria->compare('nacEstudiante',$this->nacEstudiante,true);\n\t\t$criteria->compare('cursoEstudiante',$this->cursoEstudiante,true);\n\t\t$criteria->compare('etapaEstudiante',$this->etapaEstudiante,true);\n\t\t$criteria->compare('numCasaEstudiante',$this->numCasaEstudiante,true);\n\t\t$criteria->compare('pisoEstudiante',$this->pisoEstudiante,true);\n\t\t$criteria->compare('provinciaEstudiante',$this->provinciaEstudiante,true);\n\t\t$criteria->compare('LocalidadEst',$this->LocalidadEst,true);\n\t\t$criteria->compare('calleEstudiante',$this->calleEstudiante,true);\n\t\t$criteria->compare('codPostalEst',$this->codPostalEst);\n\t\t$criteria->compare('paisEst',$this->paisEst,true);\n\t\t$criteria->compare('idCentroEst',$this->idCentroEst);\n\t\t$criteria->compare('telEstudiante',$this->telEstudiante);\n\t\t$criteria->compare('emailEstudiante',$this->emailEstudiante,true);\n\t\t$criteria->compare('nroCuentaEst',$this->nroCuentaEst);\n\t\t$criteria->compare('dietaEstudiante',$this->dietaEstudiante,true);\n\t\t$criteria->compare('nutricionEst',$this->nutricionEst,true);\n\t\t$criteria->compare('tel2Estudiante',$this->tel2Estudiante);\n\t\t$criteria->compare('menuEst',$this->menuEst);\n\t\t$criteria->compare('comidaEst',$this->comidaEst);\n\t\t$criteria->compare('desayunoEst',$this->desayunoEst);\n\t\t$criteria->compare('becaEst',$this->becaEst);\n\t\t$criteria->compare('descuentoEst',$this->descuentoEst);\n\t\t$criteria->compare('diasEstudiante',$this->diasEstudiante,true);\n\t\t$criteria->compare('diasEstComida',$this->diasEstudiante,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "protected function user_where_clause() {}", "public function where($column, $operator = null, $value = null, $boolean = 'and');", "public function filter();", "public function getCriteria();", "public function setFilter($filter){ }", "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n return;\n }\n\n $this->query->andWhere(['category' => $this->category]);\n }", "public function getFilter(): array\n {\n return $this->model->getFilter();\n }", "public function lookAdminAprobar()\n\t{\n\t\t\n\t\t$criteria=new CDbCriteria; \n\n\t\t\n\t\t$criteria->compare('status',1,false,'OR');\n\t\t$criteria->compare('status',2,false,'OR');\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->order = 'id DESC';\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\t\t\n\t}", "private function filterByPermission(){\n\n }", "public function searchConsultationCompte($params)\n {\n \n \t$query = Bien::find()->where(['statutbien'=>['areformer','transfere','en réparation','affecte']]);\n \t//\t$query->joinWith(['affecter' => function($query) { $query->from(['affecter' => 'bien']); }]);\n \t$dataProvider = new ActiveDataProvider([\n \n \t\t\t'query' => $query,\n \t\t\t'pagination' => [\n \t\t\t'pageSize' => 10,\n \t\t\t],\n \t\t\t]);\n \n \t$this->load($params);\n \n \tif (!($this->load($params) && $this->validate())) {\n \t\t// uncomment the following line if you do not want to return any records when validation fails\n \t\t// $query->where('0=1');\n \t\t \n \t\treturn $dataProvider;\n \t}\n \n \t$query->andFilterWhere([\n \t\t\t'codebien' => $this->codebien,\n \t\t\t'codesousfamille' => $this->codesousfamille,\n \t\t\t'numfacture' => $this->numfacture,\n \t\t\t'numcmd' => $this->numcmd,\n \t\t\t'prixachat' => $this->prixachat,\n \t\t\t'tauxamort' => $this->tauxamort,\n \t\t\t'dureevie' => $this->dureevie,\n \t\t\t'poids' => $this->poids,\n \t\t\t'garantie' => $this->garantie,\n \t\t\t]);\n \n \t$query->andFilterWhere(['like', 'typebien', $this->typebien])\n \t->andFilterWhere(['like', 'designationbien', $this->designationbien])\n \t->andFilterWhere(['like', 'dateacquisition', $this->dateacquisition])\n \t->andFilterWhere(['like', 'statutbien', $this->statutbien])\n \t->andFilterWhere(['like', 'etatbien', $this->etatbien])\n \t->andFilterWhere(['like', 'typeamort', $this->typeamort])\n \t->andFilterWhere(['like', 'commentaire', $this->commentaire])\n \t->andFilterWhere(['like', 'datedebugarantie', $this->datedebugarantie])\n \t->andFilterWhere(['like', 'dateenr', $this->dateenr]);\n \t//->andFilterWhere(['LIKE', 'designationbureau', $this->bureau.designationbureau]);\n \n \treturn $dataProvider;\n }", "public function filterByEditorial($editorial = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($editorial)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $editorial)) {\n\t\t\t\t$editorial = str_replace('*', '%', $editorial);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(ActividadPeer::EDITORIAL, $editorial, $comparison);\n\t}", "protected function getListQuery() {\n // Create a new query object.\n $db = $this->getDbo();\n $query = $db->getQuery(true);\n\n // Select the required fields from the table.\n $query->select(\n $this->getState(\n 'list.select', 'a.*'\n )\n );\n $query->from('`#__breedable` AS a');\n\n \n\t\t// Join over the users for the checked out user\n\t\t$query->select(\"uc.name AS editor\");\n\t\t$query->join(\"LEFT\", \"#__users AS uc ON uc.id=a.checked_out\");\n\t\t// Join over the category 'breedable_type'\n\t\t$query->select('breedable_type.title AS breedable_type');\n\t\t$query->join('LEFT', '#__categories AS breedable_type ON breedable_type.id = a.breedable_type');\n\t\t// Join over the user field 'created_by'\n\t\t$query->select('created_by.name AS created_by');\n\t\t$query->join('LEFT', '#__users AS created_by ON created_by.id = a.created_by');\n\n \n\n // Filter by search in title\n $search = $this->getState('filter.search');\n if (!empty($search)) {\n if (stripos($search, 'id:') === 0) {\n $query->where('a.id = ' . (int) substr($search, 3));\n } else {\n $search = $db->Quote('%' . $db->escape($search, true) . '%');\n\t\t\t\t$query->where('( a.status LIKE '.$search.' OR a.id LIKE '.$search.' OR a.breedable_name LIKE '.$search.' OR a.mother_name LIKE '.$search.' OR a.father_name LIKE '.$search.' OR a.owner_name LIKE '.$search.' OR a.owner_key LIKE '.$search.' OR a.breedable_gender LIKE '.$search.' )');\n \n }\n }\n\n\t\t//Filtering owner_name\n\t\t$filter_owner_name = $this->state->get(\"filter.owner_name\");\n\t\tif ($filter_owner_name != '') {\n\t\t\t$query->where(\"a.owner_name = '\".$db->escape($filter_owner_name).\"'\");\n\t\t}\n\t\t//Filtering status\n\n\t\t//Filtering generation\n\n\t\t//Filtering breedable_gender\n\t\t$filter_breedable_gender = $this->state->get(\"filter.breedable_gender\");\n\t\tif ($filter_breedable_gender != '') {\n\t\t\t$query->where(\"a.breedable_gender = '\".$db->escape($filter_breedable_gender).\"'\");\n\t\t}\n\n\t\t//Filtering breedable_eyes\n\n\t\t//Filtering breedable_fevor\n\n\t\t//Filtering breedable_pregnant\n\n\n // Add the list ordering clause.\n $orderCol = $this->state->get('list.ordering');\n $orderDirn = $this->state->get('list.direction');\n if ($orderCol && $orderDirn) {\n $query->order($db->escape($orderCol . ' ' . $orderDirn));\n }\n\n return $query;\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->simpanan_id))$criteria->addCondition('simpanan_id = '.$this->simpanan_id);\n\t\t//$criteria->compare('simpanan_id',$this->simpanan_id);\n\t\tif(!empty($this->jenissimpanan_id))$criteria->addCondition('jenissimpanan_id = '.$this->jenissimpanan_id);\n\t\t//$criteria->compare('jenissimpanan_id',$this->jenissimpanan_id);\n\t\tif(!empty($this->buktikasmasukkop_id))$criteria->addCondition('buktikasmasukkop_id = '.$this->buktikasmasukkop_id);\n\t\t//$criteria->compare('buktikasmasukkop_id',$this->buktikasmasukkop_id);\n\t\tif(!empty($this->keanggotaan_id))$criteria->addCondition('keanggotaan_id = '.$this->keanggotaan_id);\n\t\t//$criteria->compare('keanggotaan_id',$this->keanggotaan_id);\n\t\t$criteria->compare('nosimpanan',$this->nosimpanan,true);\n\t\t$criteria->compare('tglsimpanan',$this->tglsimpanan,true);\n\t\t$criteria->compare('satuan',$this->satuan,true);\n\t\t$criteria->compare('jumlahsimpanan',$this->jumlahsimpanan);\n\t\t$criteria->compare('keterangansimpanan',$this->keterangansimpanan,true);\n\t\t$criteria->compare('makstglpenarikan',$this->makstglpenarikan,true);\n\t\t$criteria->compare('jangkawaktusimpanan',$this->jangkawaktusimpanan);\n\t\t$criteria->compare('persenjasa_thn',$this->persenjasa_thn);\n\t\t$criteria->compare('persenpajak_thn',$this->persenpajak_thn);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->compare('create_loginpemakai_id',$this->create_loginpemakai_id,true);\n\t\t$criteria->compare('update_loginpemakai_id',$this->update_loginpemakai_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n $solicitante=Yii::app()->user->getState(\"rut\");\n \n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('fecha_ingreso',$this->fecha_ingreso,true);\n\t\t$criteria->compare('fecha_cambio_estado',$this->fecha_cambio_estado,true);\n\t\t$criteria->compare('rut_empresa',$this->rut_empresa,true);\n\t\t$criteria->compare('nombre_empresa',$this->nombre_empresa,true);\n\t\t$criteria->compare('nombre_contacto_emp',$this->nombre_contacto_emp,true);\n\t\t$criteria->compare('telefono_contacto_emp',$this->telefono_contacto_emp,true);\n\t\t$criteria->compare('cantidad_trabajadores',$this->cantidad_trabajadores);\n\t\t$criteria->compare('fecha_solicitud',$this->fecha_solicitud,true);\n\t\t$criteria->compare('origen_emp',$this->origen_emp,true);\n\t\t$criteria->compare('nombre_ejecutivo',$this->nombre_ejecutivo,true);\n\t\t$criteria->compare('rut_ejecutivo',$this->rut_ejecutivo,true);\n\t\t$criteria->compare('rut_solicitante',$this->rut_solicitante,true);\n\t\t$criteria->compare('estado',$this->estado,true);\n\t\t$criteria->compare('comentario',$this->comentario,true);\n $criteria->compare('rut_jv',$this->rut_jv,true);\n $criteria->compare('nombre_jv',$this->nombre_jv,true);\n $criteria->compare('rut_sup',$this->rut_sup,true);\n $criteria->compare('nombre_sup',$this->nombre_sup,true);\n $criteria->compare('comentario',$this->vigencia,true);\n\t\t$criteria->compare('cantidad_rechazada',$this->cantidad_rechazada);\n $criteria->compare('nro_memo',$this->nro_memo);\n $criteria->compare('codigo_actividad',$this->codigo_actividad);\n $criteria->compare('tipo_contrato',$this->tipo_contrato);\n $criteria->compare('comentario_fech_vali',$this->comentario_fech_vali);\n $criteria->compare('mes_produccion',$this->mes_produccion);\n $criteria->compare('empresa_relacionada',$this->empresa_relacionada);\n \n $criteria->order = 'id desc';\n \n// if(Yii::app()->user->getState(\"tipo\")!=\"administrador\"){\n// $criteria->condition='rut_solicitante=:rut_solicitante';\n// $criteria->params=array(':rut_solicitante'=>$solicitante);\n //}\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "function notifications_where_abo($email, $id_auteur=null){\n\n\tif (!$email AND !$id_auteur){\n\t\treturn \"(0=1)\"; // rien a chercher\n\t}\n\n\t$where = array();\n\tif ($email)\n\t\t$where[] = \"(notification_email=\".sql_quote($email)\n\t\t\t\t\t .\" OR (notification_email=\".sql_quote('').\" AND email_auteur=\".sql_quote($email).\"))\";\n\tif ($id_auteur)\n\t\t$where[] = \"(notification_email=\".sql_quote('').\" AND email_auteur=\".sql_quote('').\" AND id_auteur=\".intval($id_auteur).\")\";\n\n\treturn implode(\" OR \",$where);\n}", "public function filterByEstado($estado = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($estado)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $estado)) {\n\t\t\t\t$estado = str_replace('*', '%', $estado);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(MesaPeer::ESTADO, $estado, $comparison);\n\t}", "function filterByDate($date) {\n $this->setDateFilter(self::DATE_FILTER_SELECTED_DATE);\n $this->setAdditionalProperty('date_filter_on', (string) $date);\n }", "public function filterByPresenteAutor($presenteAutor = null, $comparison = null)\n\t{\n\t\tif (is_string($presenteAutor)) {\n\t\t\t$presente_autor = in_array(strtolower($presenteAutor), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n\t\t}\n\t\treturn $this->addUsingAlias(ActividadPeer::PRESENTE_AUTOR, $presenteAutor, $comparison);\n\t}", "function requetefiltre($num_dep,$insee,$idmare,$interco){\n\t//POUR LES DEPARTEMENT\n\tif($num_dep <> 0){\n\t\t$condition = 'AND LEFT(lg.\"L_ADMIN\",2) = '.\"'\".$num_dep.\"'\".'';\n\t}else{\n\t\t$condition = '';\n\t}\n\t//POUR LES INTERCO\n\tif($interco <> 0){\n\t\t$condition .= 'AND intercommunalite.\"Num_fiscalite\" = '.\"'\".$interco.\"'\".'';\n\t}else{\n\t\t$condition .= '';\n\t}\n\t//POUR LES COMMUNES\n\tif($insee <> 0){\n\t\t$condition .= 'AND lg.\"L_ADMIN\" = '.\"'\".$insee.\"'\".'';\n\t}else{\n\t\t$condition .= '';\n\t}\n\t//POUR LES MARE\n\tif($idmare <> 0){\n\t\t$condition = ' AND lg.\"L_ID\" = '.\"'\".$idmare.\"'\".'';\n\t}else{\n\t\t$condition .= '';\n\t}\n\t\n\treturn $condition;\n\t\n}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $arreglo = explode(\" \",$this->cliente_nombre);\n $nombreApellido = array();\n foreach($arreglo as $palabra){\n if(trim($palabra)!= ''){\n $nombreApellido[]=$palabra;\n }\n }\n $criteriaNombreUser1 = new CDbCriteria();\n $palabras = count($nombreApellido);\n if($palabras == 1){\n $busqueda = $nombreApellido[0];\n if(trim($busqueda) != ''){\n $criteriaNombreUser1->compare('u.nombre',$busqueda,true);\n $criteriaNombreUser1->compare('u.apellido',$busqueda,true,'OR');\n }\n }\n\n if($palabras == 2){\n $nombre = $nombreApellido[0];\n $apellido = $nombreApellido[1];\n $criteriaNombreUser1->compare('u.nombre',$nombre,true);\n $criteriaNombreUser1->compare('u.apellido',$apellido,true);\n }\n\n $criteria->compare('id',$this->id);\n $criteria->mergeWith($criteriaNombreUser1,'AND');\n\n\t\t\n\t\t$criteria->compare('rol',$this->rol,true);\n\t\t$criteria->compare('causa',$this->causa,true);\n\t\t$criteria->compare('contrato_id',$this->contrato_id);\n $criteria->compare('f.nombre',$this->formato,true);\n $criteria->join = \n ' join contrato on contrato.id = t.contrato_id'\n . ' join cliente as c on c.id = contrato.cliente_id '\n . ' join usuario as u on u.id = c.usuario_id '\n . ' join formato_demanda as f on f.id = t.formato_demanda_id';\n $criteria->compare('contrato.folio',$this->folio);\n \n if(Yii::app()->user->rol == 'propietario'){\n $criteriaPropietario = new CDbCriteria();\n $contratos = Contrato::model()->relacionadosConPropietario(Yii::app()->user->id);\n foreach($contratos as $contrato_id){\n $criteriaPropietario->compare('contrato.id', $contrato_id, false,'OR'); \n }\n $criteria->mergeWith($criteriaPropietario,'AND');\n }\n \n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>array(\n\t\t 'attributes'=>array(\n\t\t 'folio'=>array(\n\t\t 'asc'=>'contrato.folio',\n\t\t 'desc'=>'contrato.folio DESC',\n\t\t ),\n 'cliente_rut'=>array(\n\t\t 'asc'=>'c.rut',\n\t\t 'desc'=>'c.rut DESC',\n\t\t ),\n 'cliente_nombre'=>array(\n\t\t 'asc'=>'u.apellido,u.nombre',\n\t\t 'desc'=>'u.apellido DESC,u.nombre DESC',\n\t\t ),\n 'formato'=>array(\n\t\t 'asc'=>'f.nombre',\n\t\t 'desc'=>'f.nombre DESC',\n\t\t ),\n\t\t '*',\n\t\t ),\n\t\t ),\n\t\t));\n\t}", "public function isRowVisible(array $filter, $isSearchable = true, $isStrict = true)\n {\n// $this->search(['name' => $filter['name']]);\n return parent::isRowVisible($filter, $isSearchable, $isStrict);\n }", "protected function filter(&$query)\n {\n if (!empty($this->filterModel)) {\n if (isset($this->filterModel->status_id)) {\n $query->andWhere(['status' => $this->filterModel->status_id]);\n }\n }\n }", "public function selectFilter($categoria, $arrayBairros, $arrayFormPag, $arrayFacilidades, $arrayPlano, $limit, $count = \"not\")\n {\n\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 INNER JOIN Sub_categoria ON Anuncio.anuncio_categoria = Sub_categoria.sub_categoria_id\n INNER JOIN Categoria ON Sub_categoria.sub_categoria_cat_ref = Categoria.tipo_categoria_id\n WHERE \";\n\n\n #se os valores foram setados e não estão vazios, adiciona os mesmos na cláusula WHERE\n if (isset($categoria) && !empty($categoria)) {\n\n #retorna somente registros que atendam a categoria marcada juntamente com as outras cláusulas concatenadas mais abaixo.\n $sql .= \" (Anuncio.anuncio_titulo LIKE '{$categoria}%' OR Anuncio.anuncio_descricao LIKE '{$categoria}%' OR Anuncio.anuncio_breve_descricao LIKE '{$categoria}%' OR Sub_categoria.sub_categoria_descricao LIKE '{$categoria}%' OR Categoria.tipo_categoria_descricao LIKE '{$categoria}%') \"; //verificar a necessidade de emendar com AND\n\n }\n\n #adiciona os bairros no where caso estes sejam selecionados.\n if (isset($arrayBairros) && !empty($arrayBairros)) {\n\n $sql .= \" AND (\";\n\n for ($i = 0; $i < count($arrayBairros); $i++) {\n\n $sql .= \" Endereco.endereco_bairro = '{$arrayBairros[$i]}' \";\n\n #verificar penultima posição para não acrescentar o OR\n if ($i != count($arrayBairros) - 1) {\n $sql .= \" OR \";\n }\n\n }\n\n $sql .= \" ) \";\n\n }\n\n #adiciona as formar de pagamento como obrigatórias no retorno, se tiver sido setada.\n if (isset($arrayFormPag) && !empty($arrayFormPag)) {\n\n $sql .= \" AND \";\n\n for ($i = 0; $i < count($arrayFormPag); $i++) {\n\n switch ($arrayFormPag[$i]) {\n\n case \"boleto\" :\n $sql .= \" Forma_pagamento.forma_pag_boleto = 1 \";\n break;\n case \"credito\" :\n $sql .= \" Forma_pagamento.forma_pag_credito = 1 \";\n break;\n case \"debito\" :\n $sql .= \" Forma_pagamento.forma_pag_debito = 1 \";\n break;\n case \"vale alimentação\" :\n $sql .= \" Forma_pagamento.forma_pag_vale_alimentacao = 1 \";\n break;\n case \"cheque\" :\n $sql .= \" Forma_pagamento.forma_pag_cheque = 1 \";\n break;\n case \"dinheiro\" :\n $sql .= \" Forma_pagamento.forma_pag_dinheiro = 1 \";\n break;\n case \"outrosFormPag\" :\n $sql .= \" Forma_pagamento.forma_pag_outros_formPag = 1 \";\n break;\n default:\n ;\n\n }\n\n #adiciona o AND até antes da penultima iteração\n if ($i < count($arrayFormPag) - 1) {\n\n $sql .= \" AND \";\n\n }\n\n }\n }\n\n #adiciona as facilidades no where\n if (isset($arrayFacilidades) && !empty($arrayFacilidades)) {\n\n $sql .= \" AND \";\n\n for ($i = 0; $i < count($arrayFacilidades); $i++) {\n\n switch ($arrayFacilidades[$i]) {\n\n case \"wifi\":\n $sql .= \" Facilidades.facilidades_wifii = 1 \";\n break;\n case \"reserva\":\n $sql .= \" Facilidades.facilidades_reservar = 1 \";\n break;\n case \"animais\":\n $sql .= \" Facilidades.facilidades_permite_animais = 1 \";\n break;\n case \"cupons\":\n $sql .= \" Facilidades.facilidades_cupons_desconto = 1 \";\n break;\n case \"estacionamento\":\n $sql .= \" Facilidades.facilidades_estacionamento = 1 \";\n break;\n case \"seguranca\":\n $sql .= \" Facilidades.facilidades_seguranca = 1 \";\n break;\n case \"acessibilidades\":\n $sql .= \" Facilidades.facilidades_acessibilidade = 1 \";\n break;\n case \"arCondicionado\":\n $sql .= \" Facilidades.facilidades_ar_condicionado = 1 \";\n break;\n case \"delivery\":\n $sql .= \" Facilidades.facilidades_delivery = 1 \";\n break;\n case \"criancas\":\n $sql .= \" Facilidades.facilidades_criancas = 1 \";\n break;\n default:\n ;\n\n }\n\n #adiciona o AND até antes da penultima iteração\n if ($i < count($arrayFacilidades) - 1) {\n\n $sql .= \" AND \";\n\n }\n\n }\n\n }\n\n #adiciona os planos de saude caso se tratar de uma pesquisa na área da saúde.\n if (isset($arrayPlano) && !empty($arrayPlano)) {\n\n $sql .= \" AND \";\n\n for ($i = 0; $i < count($arrayPlano); $i++) {\n\n switch ($arrayPlano[$i]) {\n\n case \"unimed\":\n $sql .= \" Plano_saude.plano_saude_unimed = 1 \";\n break;\n case \"saudeVida\":\n $sql .= \" Plano_saude.plano_saude_saudevida = 1 \";\n break;\n case \"prontomed\":\n $sql .= \" Plano_saude.plano_saude_prontomed = 1 \";\n break;\n case \"promed\":\n $sql .= \" Plano_saude.plano_saude_promed = 1 \";\n break;\n case \"outros\":\n $sql .= \" Plano_saude.plano_saude_outros = 1 \";\n break;\n\n default:\n ;\n\n }\n\n #adiciona o AND até antes da penultima iteração\n if ($i < count($arrayPlano) - 1) {\n\n $sql .= \" AND \";\n\n }\n\n }\n\n\n }\n\t\n\t //Limita a exibição de anuncios online\n\t $sql .= \" AND Anuncio.anuncio_excluido = 0 AND (Anuncio.anuncio_status = 4 OR Anuncio.anuncio_status = 11 OR Anuncio.anuncio_status = 3) ORDER BY Anuncio.anuncio_titulo ASC, Anuncio.anuncio_id ASC \";\n\n\n #caso não for realizar a contagem, retornar apenas o sql\n if($count == \"not\"){\n\n #adiciona o limite de quantidade de exibição.\n $sql .= \" LIMIT {$limit}\";\n\n echo $sql;\n\n } else {\n\n\n #realiza select no banco de dados\n if($row = $this->runSelect($sql)){\n\n echo count($row);\n\n } else {\n\n echo \"A pesquisa não retornou nenhum resiltado.\";\n\n }\n\n }\n\n\n }", "public function filterByNama($nama = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($nama)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $nama)) {\n $nama = str_replace('*', '%', $nama);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(AnakPeer::NAMA, $nama, $comparison);\n }", "function filterBy_S_A_F_E($SEDE, $AREA, $FACULTAD, $ESCUELA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? \");\n $parametros = array(\"iiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function searchListeReformerAllAmort($params)\n {\n \n \t$query = Bien::find()->where(['statutbien'=>['reformer','reformertransf']]);\n \t$dataProvider = new ActiveDataProvider([\n \n \t\t\t'query' => $query,\n \t\t\t'pagination' => [\n \t\t\t'pageSize' => 20,\n \t\t\t],\n \t\t\t]);\n \n \t$this->load($params);\n \n \tif (!($this->load($params) && $this->validate())) {\n \t\t// uncomment the following line if you do not want to return any records when validation fails\n \t\t// $query->where('0=1');\n \t\t \n \t\treturn $dataProvider;\n \t}\n \n \t$query->andFilterWhere([\n \t\t\t'codebien' => $this->codebien,\n \t\t\t'codesousfamille' => $this->codesousfamille,\n \t\t\t'numfacture' => $this->numfacture,\n \t\t\t'numcmd' => $this->numcmd,\n \t\t\t'prixachat' => $this->prixachat,\n \t\t\t'tauxamort' => $this->tauxamort,\n \t\t\t'dureevie' => $this->dureevie,\n \t\t\t'poids' => $this->poids,\n \t\t\t'garantie' => $this->garantie,\n \t\t\t]);\n \n \t$query->andFilterWhere(['like', 'typebien', $this->typebien])\n \t->andFilterWhere(['like', 'designationbien', $this->designationbien])\n \t->andFilterWhere(['like', 'dateacquisition', $this->dateacquisition])\n \t->andFilterWhere(['like', 'statutbien', $this->statutbien])\n \t->andFilterWhere(['like', 'etatbien', $this->etatbien])\n \t->andFilterWhere(['like', 'typeamort', $this->typeamort])\n \t->andFilterWhere(['like', 'commentaire', $this->commentaire])\n \t->andFilterWhere(['like', 'datedebugarantie', $this->datedebugarantie])\n \t->andFilterWhere(['like', 'dateenr', $this->dateenr]);\n \t//->andFilterWhere(['LIKE', 'designationbureau', $this->bureau.designationbureau]);\n \n \treturn $dataProvider;\n }", "public function getFilterValue(): string;", "private function filter() {\r\n $globalSearch = array();\r\n $columnSearch = array();\r\n\r\n $columns = $this->resource->setDatatableFields(TRUE);\r\n\r\n $dtColumns = $this->pluck($columns, 'dt');\r\n\r\n if (isset($this->resource->requestData['search']) && $this->resource->requestData['search']['value'] != '') {\r\n\r\n $str = $this->resource->requestData['search']['value'];\r\n\r\n for ($i = 0, $ien = count($this->resource->requestData['columns']); $i < $ien; $i++) {\r\n $requestColumn = $this->resource->requestData['columns'][$i];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n if ($requestColumn['searchable'] == 'true') {\r\n\r\n $binding = '%' . $str . '%';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $globalSearch[] = $this->adapter->platform->quoteIdentifierChain([$fld[0], $fld[1]]) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n } else {\r\n $globalSearch[] = $this->adapter->platform->quoteIdentifier($column['db']) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n }\r\n }\r\n }\r\n }\r\n // Individual column filtering\r\n if (isset($this->resource->requestData['columns'])) {\r\n for ($i = 0, $ien = count($this->resource->requestData['columns']); $i < $ien; $i++) {\r\n $requestColumn = $this->resource->requestData['columns'][$i];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n $str = $requestColumn['search']['value'];\r\n if ($requestColumn['searchable'] == 'true' &&\r\n $str != '') {\r\n\r\n $binding = '%' . $str . '%';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $columnSearch[] = $this->adapter->platform->quoteIdentifierChain([$fld[0], $fld[1]]) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n } else {\r\n $columnSearch[] = $this->adapter->platform->quoteIdentifier($column['db']) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n }\r\n }\r\n }\r\n }\r\n // Combine the filters into a single string\r\n $where = '';\r\n if (count($globalSearch)) {\r\n $where = '(' . implode(' OR ', $globalSearch) . ')';\r\n }\r\n if (count($columnSearch)) {\r\n $where = $where === '' ?\r\n implode(' AND ', $columnSearch) :\r\n $where . ' AND ' . implode(' AND ', $columnSearch);\r\n }\r\n\r\n return $where;\r\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n \n // Ensure search is only on user's records\n $criteria->addColumnCondition(array('userId' => Yii::app()->user->id));\n\n\t\t$criteria->compare('uuid',$this->uuid,true);\n\t\t$criteria->compare('pt_age',$this->pt_age);\n\t\t$criteria->compare('pt_sex',$this->pt_sex,true);\n\t\t$criteria->compare('pt_postcode',$this->pt_postcode,true);\n\t\t$criteria->compare('asmt_date',$this->asmt_date,true);\n\t\t$criteria->compare('asmt_date_vision_loss',$this->asmt_date_vision_loss,true);\n\t\t$criteria->compare('asmt_eye',$this->asmt_eye,true);\n\t\t$criteria->compare('asmt_refraction',$this->asmt_refraction,true);\n\t\t$criteria->compare('asmt_acuity',$this->asmt_acuity);\n\t\t$criteria->compare('asmt_lens',$this->asmt_lens,true);\n\t\t$criteria->compare('asmt_iop',$this->asmt_iop);\n\t\t$criteria->compare('asmt_previous_op_date',$this->asmt_previous_op_date,true);\n\t\t$criteria->compare('asmt_vitreous',$this->asmt_vitreous,true);\n\t\t$criteria->compare('asmt_vithaem',$this->asmt_vithaem,true);\n\t\t$criteria->compare('fe_refraction',$this->fe_refraction,true);\n\t\t$criteria->compare('fe_acuity',$this->fe_acuity);\n\t\t$criteria->compare('fe_vitreous',$this->fe_vitreous,true);\n\t\t$criteria->compare('fe_retinal_detachment',$this->fe_retinal_detachment);\n\t\t$criteria->compare('op_date',$this->op_date,true);\n\t\t$criteria->compare('op_surgeon_grade',$this->op_surgeon_grade,true);\n\t\t$criteria->compare('op_cause_of_failure',$this->op_cause_of_failure,true);\n\t\t$criteria->compare('op_foveal_attachment',$this->op_foveal_attachment,true);\n\t\t$criteria->compare('op_extent_st',$this->op_extent_st,true);\n\t\t$criteria->compare('op_extent_sn',$this->op_extent_sn,true);\n\t\t$criteria->compare('op_extent_in',$this->op_extent_in,true);\n\t\t$criteria->compare('op_extent_it',$this->op_extent_it,true);\n\t\t$criteria->compare('op_chronic',$this->op_chronic);\n\t\t$criteria->compare('op_pvr_type',$this->op_pvr_type,true);\n\t\t$criteria->compare('op_pvr_cp',$this->op_pvr_cp,true);\n\t\t$criteria->compare('op_pvr_ca',$this->op_pvr_ca,true);\n\t\t$criteria->compare('op_subretinal_bands',$this->op_subretinal_bands);\n\t\t$criteria->compare('op_choroidals',$this->op_choroidals);\n\t\t$criteria->compare('op_breaks_detached',$this->op_breaks_detached);\n\t\t$criteria->compare('op_breaks_attached',$this->op_breaks_attached);\n\t\t$criteria->compare('op_largest_break_type',$this->op_largest_break_type,true);\n\t\t$criteria->compare('op_largest_break_size',$this->op_largest_break_size,true);\n\t\t$criteria->compare('op_lowest_break_position',$this->op_lowest_break_position,true);\n\t\t$criteria->compare('op_positioning',$this->op_positioning,true);\n\t\t$criteria->compare('as_lens_surgery',$this->as_lens_surgery,true);\n\t\t$criteria->compare('pr_volume',$this->pr_volume,true);\n\t\t$criteria->compare('roo_route',$this->roo_route,true);\n\t\t$criteria->compare('vity_gauge',$this->vity_gauge,true);\n\t\t$criteria->compare('vity_pvd_induced',$this->vity_pvd_induced);\n\t\t$criteria->compare('vity_peel',$this->vity_peel);\n\t\t$criteria->compare('vity_rr',$this->vity_rr);\n\t\t$criteria->compare('sb_drainage',$this->sb_drainage,true);\n\t\t$criteria->compare('rp_cryo',$this->rp_cryo);\n\t\t$criteria->compare('rp_endolaser',$this->rp_endolaser);\n\t\t$criteria->compare('rp_indirect',$this->rp_indirect);\n\t\t$criteria->compare('rp_transcleral_diode',$this->rp_transcleral_diode);\n\t\t$criteria->compare('rp_360',$this->rp_360);\n\t\t$criteria->compare('tamp_type',$this->tamp_type,true);\n\t\t$criteria->compare('tamp_percent',$this->tamp_percent);\n\t\t$criteria->compare('comps_choroidal',$this->comps_choroidal);\n\t\t$criteria->compare('comps_lens_touch',$this->comps_lens_touch);\n\t\t$criteria->compare('comps_esb',$this->comps_esb);\n\t\t$criteria->compare('comps_other_breaks',$this->comps_other_breaks);\n\t\t$criteria->compare('comps_deep_suture',$this->comps_deep_suture);\n\t\t$criteria->compare('comps_drain_haem',$this->comps_drain_haem);\n\t\t$criteria->compare('comps_incarceration',$this->comps_incarceration);\n\t\t$criteria->compare('fu_date',$this->fu_date,true);\n\t\t$criteria->compare('fu_type',$this->fu_type,true);\n\t\t$criteria->compare('fu_man_complete',$this->fu_man_complete);\n\t\t$criteria->compare('fu_readmission',$this->fu_readmission);\n\t\t$criteria->compare('fu_number_ops',$this->fu_number_ops);\n\t\t$criteria->compare('fu_attached',$this->fu_attached);\n\t\t$criteria->compare('fu_oil',$this->fu_oil);\n\t\t$criteria->compare('fu_acuity',$this->fu_acuity);\n\t\t$criteria->compare('fu_lens',$this->fu_lens,true);\n\t\t$criteria->compare('fu_iop_problem',$this->fu_iop_problem);\n\t\t$criteria->compare('fu_foveal_attachment',$this->fu_foveal_attachment,true);\n\t\t$criteria->compare('fu_erm',$this->fu_erm);\n\t\t$criteria->compare('fu_macular_hole',$this->fu_macular_hole);\n\t\t$criteria->compare('fu_macular_fold',$this->fu_macular_fold);\n\t\t$criteria->compare('fu_hypotony',$this->fu_hypotony);\n\t\t$criteria->compare('fu_primary_success',$this->fu_primary_success);\n\t\t\n\t\t// Following sort array returns cases in descending order of op_date (ie most recent cases first)\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'sort'=>array(\n\t\t\t\t'defaultOrder'=>'op_date DESC'\n\t\t\t\t),\n\t\t));\n\t}", "public function testFilterUserByCurrency()\n {\n $expected = $this->usersFilter->filterByCurrency(\"AED\",\"AED\");\n $this->assertTrue($expected);\n }", "public function activeFreemium(): AccountChargebeeQueryContract\n {\n return $this->whereStatus($this->getModel()::NON_PREMIUM);\n }", "public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->nilairujukan_id)){\n\t\t\t$criteria->addCondition('nilairujukan_id = '.$this->nilairujukan_id);\n\t\t}\n\t\tif(!empty($this->kelkumurhasillab_id)){\n\t\t\t$criteria->addCondition('kelkumurhasillab_id = '.$this->kelkumurhasillab_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kelompokdet)',strtolower($this->kelompokdet),true);\n\t\t$criteria->compare('LOWER(namapemeriksaandet)',strtolower($this->namapemeriksaandet),true);\n\t\t$criteria->compare('LOWER(nilairujukan_jeniskelamin)',strtolower($this->nilairujukan_jeniskelamin),true);\n\t\t$criteria->compare('LOWER(nilairujukan_nama)',strtolower($this->nilairujukan_nama),true);\n\t\t$criteria->compare('nilairujukan_min',$this->nilairujukan_min);\n\t\t$criteria->compare('nilairujukan_max',$this->nilairujukan_max);\n\t\t$criteria->compare('LOWER(nilairujukan_satuan)',strtolower($this->nilairujukan_satuan),true);\n\t\t$criteria->compare('LOWER(nilairujukan_metode)',strtolower($this->nilairujukan_metode),true);\n\t\t$criteria->compare('LOWER(nilairujukan_keterangan)',strtolower($this->nilairujukan_keterangan),true);\n\t\t$criteria->compare('nilairujukan_aktif',$this->nilairujukan_aktif);\n\n\t\treturn $criteria;\n\t}", "public function filterByAnio($anio = null, $comparison = null)\r\n\t{\r\n\t\tif (is_array($anio)) {\r\n\t\t\t$useMinMax = false;\r\n\t\t\tif (isset($anio['min'])) {\r\n\t\t\t\t$this->addUsingAlias(ScoutImportPeer::ANIO, $anio['min'], Criteria::GREATER_EQUAL);\r\n\t\t\t\t$useMinMax = true;\r\n\t\t\t}\r\n\t\t\tif (isset($anio['max'])) {\r\n\t\t\t\t$this->addUsingAlias(ScoutImportPeer::ANIO, $anio['max'], Criteria::LESS_EQUAL);\r\n\t\t\t\t$useMinMax = true;\r\n\t\t\t}\r\n\t\t\tif ($useMinMax) {\r\n\t\t\t\treturn $this;\r\n\t\t\t}\r\n\t\t\tif (null === $comparison) {\r\n\t\t\t\t$comparison = Criteria::IN;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->addUsingAlias(ScoutImportPeer::ANIO, $anio, $comparison);\r\n\t}", "function filterBy_S_A_F_E_C($SEDE, $AREA, $FACULTAD, $ESCUELA, $CARRERA,$TABLE_I)\n{\n global $mysqli;\n $TINS = $TABLE_I;\n $query = new Query($mysqli, \"SELECT red,nombre,apellido,CONCAT(provincia,'-',clave,'-',tomo,'-',folio)AS cedula,n_ins,sede,fac_ia,esc_ia,car_ia,fac_iia,esc_iia,car_iia,fac_iiia,esc_iiia,car_iiia\n FROM \" .$TINS. \" where sede = ? AND area_i = ? AND fac_ia = ? AND esc_ia = ? AND car_ia = ? \");\n $parametros = array(\"iiiii\", &$SEDE, &$AREA, &$FACULTAD, &$ESCUELA, &$CARRERA);\n $data = $query->getresults($parametros);\n\n if (isset($data[0])) {\n return $data;\n } else {\n return null;\n }\n\n}", "public function filterByAutor($autor = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($autor)) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t} elseif (preg_match('/[\\%\\*]/', $autor)) {\n\t\t\t\t$autor = str_replace('*', '%', $autor);\n\t\t\t\t$comparison = Criteria::LIKE;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(ActividadPeer::AUTOR, $autor, $comparison);\n\t}", "abstract public function filter(Builder $dataSource);", "protected function getSearchColumnsForFilter()\n {\n return sfConfig::get('app_ull_user_phone_book_search_columns', array(\n 'first_name',\n 'last_name',\n 'UllLocation->name',\n 'UllLocation->short_name',\n 'UllLocation->phone_base_no',\n 'UllDepartment->name',\n 'UllJobTitle->name',\n ));\n }", "public function filter($args = array(), $operator = 'AND')\n {\n }", "public function search($comoDataProvider = true)\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t//$criteria->compare('codliquidacaotitulo',$this->codliquidacaotitulo,false);\n\t\t$criteria->compare('codliquidacaotitulo',Yii::app()->format->numeroLimpo($this->codliquidacaotitulo),false);\n\t\t$criteria->compare('codpessoa',$this->codpessoa,false);\n\t\t$criteria->compare('codportador',$this->codportador,false);\n\t\tswitch ($this->estornado) \n\t\t{\n\t\t\tcase 9:\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$criteria->addCondition('t.estornado IS NOT NULL');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$criteria->addCondition('t.estornado IS NULL');\n\t\t\t\tbreak;\n\t\t}\t\t\n\t\tif ($criacao_de = DateTime::createFromFormat(\"d/m/y\",$this->criacao_de))\n\t\t{\n\t\t\t$criteria->addCondition('t.criacao >= :criacao_de');\n\t\t\t$criteria->params = array_merge($criteria->params, array(':criacao_de' => $criacao_de->format('Y-m-d').' 00:00:00.0'));\n\t\t}\n\t\tif ($criacao_ate = DateTime::createFromFormat(\"d/m/y\",$this->criacao_ate))\n\t\t{\n\t\t\t$criteria->addCondition('t.criacao <= :criacao_ate');\n\t\t\t$criteria->params = array_merge($criteria->params, array(':criacao_ate' => $criacao_ate->format('Y-m-d').' 23:59:59.9'));\n\t\t}\n\t\t\t\t\n\t\t$criteria->compare('codusuariocriacao',$this->codusuariocriacao,false);\n\t\t$criteria->order = 't.criacao DESC';\n\t\t/*\n\t\t$criteria->compare('transacao',$this->transacao,true);\n\t\t$criteria->compare('observacao',$this->observacao,true);\n\t\t$criteria->compare('estornado',$this->estornado,true);\n\t\t$criteria->compare('alteracao',$this->alteracao,true);\n\t\t$criteria->compare('codusuarioalteracao',$this->codusuarioalteracao,true);\n\t\t$criteria->compare('criacao',$this->criacao,true);\n\t\t$criteria->compare('debito',$this->debito,true);\n\t\t$criteria->compare('credito',$this->credito,true);\n\t\t*/\n\t\t\n\t\tif ($comoDataProvider)\n\t\t{\n\t\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria,\n\t\t\t\t'pagination'=>array('pageSize'=>20)\n\t\t\t));\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->findAll($criteria);\n\t\t}\n\t\t\n\t}", "public function _getFilter($where=null,$attrib=null,$orders=null){\n try{\n //if($where['eid']=='' || $where['oid']=='') return false;\n $select = $this->_db->select();\n if ($attrib=='') $select->from(\"lista_entregable_detalle\");\n else $select->from(\"lista_entregable_detalle\",$attrib);\n foreach ($where as $atri=>$value){\n $select->where(\"$atri = ?\", $value);\n }\n if ($orders<>null || $orders<>\"\") {\n if (is_array($orders))\n $select->order($orders);\n }\n $results = $select->query();\n $rows = $results->fetchAll();\n //print_r($results);\n if ($rows) return $rows;\n return false;\n }catch (Exception $e){\n print \"Error: Read Filter competencia \".$e->getMessage();\n }\n }", "public function where($column, $operator = null, $value = null, $boolean = 'and')\n {\n return parent::where(...Factory::resolve(func_get_args()));\n }", "public function getfilterColumns()\n\t{\n\t\treturn array(\"latitude\", \"longitude\", \"address_id\");\n\t}", "public function __call($nm, $a) {\n\t\tif (substr($nm, 0, 8) == 'filterBy') {\n\t\t\t$attrib = Loader::helper('text')->uncamelcase(substr($nm, 8));\n\t\t\tif (count($a) == 2) {\n\t\t\t\t$this->filterByAttribute($attrib, $a[0], $a[1]);\n\t\t\t} else {\n\t\t\t\t$this->filterByAttribute($attrib, $a[0]);\n\t\t\t}\n\t\t}\n\t}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n if($this->pesquisar == ''){\n \t\t$criteria->compare('id',$this->id,true);\n\n\t\t$criteria->compare('tipo_frete',$this->tipo_frete,true);\n\n\t\t$criteria->compare('valor_frete',$this->valor_frete,true);\n\n\t\t$criteria->compare('data_transacao',$this->data_transacao,true);\n\n\t\t$criteria->compare('anotacao',$this->anotacao,true);\n\n\t\t$criteria->compare('id_transaction',$this->id_transaction,true);\n\n\t\t$criteria->compare('taxas_extras',$this->taxas_extras,true);\n\n\t\t$criteria->compare('tipo_pagamento',$this->tipo_pagamento,true);\n\n\t\t$criteria->compare('status_transacao',$this->status_transacao,true);\n\n\t\t$criteria->compare('parcelas',$this->parcelas);\n\n\t\t$criteria->compare('usuarios_id',$this->usuarios_id,true);\n\n }else{\n \n \t\t$criteria->compare('id',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('tipo_frete',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('valor_frete',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('data_transacao',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('anotacao',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('id_transaction',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('taxas_extras',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('tipo_pagamento',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('status_transacao',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('parcelas',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('usuarios_id',$this->pesquisar,true,'OR');\n\n }\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageSize'=>Yii::app()->params['PageSize'],\n ),\n\t\t));\n\t}", "public function searchConsultationBien($params , $idsf)\n {\n \t$query = Bien::find()->where(['statutbien'=>['areformer','transfere','en réparation','affecte'],'codesousfamille'=>$idsf]);\n \t$dataProvider = new ActiveDataProvider([\n \n \t\t\t'query' => $query,\n \t\t\t'pagination' => [\n \t\t\t'pageSize' => 10,\n \t\t\t],\n \t\t\t]);\n \n \t$this->load($params);\n \tif (!($this->load($params) && $this->validate())) {\n \t\t// uncomment the following line if you do not want to return any records when validation fails\n \t\t// $query->where('0=1');\n \t\t \n \t\treturn $dataProvider;\n \t}\n \n \t$query->andFilterWhere([\n \t\t\t'codebien' => $this->codebien,\n \t\t\t'codesousfamille' => $this->codesousfamille,\n \t\t\t'numfacture' => $this->numfacture,\n \t\t\t'numcmd' => $this->numcmd,\n \t\t\t'prixachat' => $this->prixachat,\n \t\t\t'tauxamort' => $this->tauxamort,\n \t\t\t'dureevie' => $this->dureevie,\n \t\t\t'poids' => $this->poids,\n \t\t\t'garantie' => $this->garantie,\n \t\t\t]);\n \n \t$query->andFilterWhere(['like', 'typebien', $this->typebien])\n \t->andFilterWhere(['like', 'designationbien', $this->designationbien])\n \t->andFilterWhere(['like', 'dateacquisition', $this->dateacquisition])\n \t->andFilterWhere(['like', 'statutbien', $this->statutbien])\n \t->andFilterWhere(['like', 'etatbien', $this->etatbien])\n \t->andFilterWhere(['like', 'typeamort', $this->typeamort])\n \t->andFilterWhere(['like', 'commentaire', $this->commentaire])\n \t->andFilterWhere(['like', 'datedebugarantie', $this->datedebugarantie])\n \t->andFilterWhere(['like', 'dateenr', $this->dateenr]);\n \t//->andFilterWhere(['LIKE', 'designationbureau', $this->bureau.designationbureau]);\n \n \treturn $dataProvider;\n }", "public function criteriaSearch()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n if(!empty($this->mcatatandokter_id)){\n $criteria->addCondition('mcatatandokter_id = '.$this->mcatatandokter_id);\n }\n if(!empty($this->pegawai_id)){\n $criteria->addCondition('pegawai_id = '.$this->pegawai_id);\n }\n if(!empty($this->mkategoricatatan_id)){\n $criteria->addCondition('mkategoricatatan_id = '.$this->mkategoricatatan_id);\n }\n $criteria->compare('LOWER(judulcatatan)',strtolower($this->judulcatatan),true);\n $criteria->compare('LOWER(isicatatan)',strtolower($this->isicatatan),true);\n $criteria->compare('LOWER(status_catatan)',strtolower($this->status_catatan),true);\n $criteria->compare('LOWER(tglrencana)',strtolower($this->tglrencana),true);\n $criteria->compare('LOWER(tempat_kegiatan)',strtolower($this->tempat_kegiatan),true);\n $criteria->compare('LOWER(alamat_kegiatan)',strtolower($this->alamat_kegiatan),true);\n $criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n $criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n if(!empty($this->create_loginpemakai_id)){\n $criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n }\n if(!empty($this->update_loginpemakai_id)){\n $criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n }\n\n return $criteria;\n }", "public function searchApplicants()\n {\n $query = Channel::find();\n\n // add conditions that should always apply here\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n // grid filtering conditions\n\n $query->andFilterWhere(['!=', 'om', Yii::$app->user->id]);\n $query->andFilterWhere(['=', 'status', 2]);\n\n return $dataProvider;\n }", "function f_filtro($cadena)\n {\n return $this->conexion->real_escape_string($cadena);\n }", "public function search()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n $criteria->with = array('carabayar', 'penjamin');\n\t\t$criteria->compare('tipepaket_id',$this->tipepaket_id);\n\t\t$criteria->compare('kelaspelayanan_id',$this->kelaspelayanan_id);\n\t\t$criteria->compare('penjamin_id',$this->penjamin_id);\n\t\t$criteria->compare('carabayar_id',$this->carabayar_id);\n\t\t$criteria->compare('LOWER(tipepaket_nama)',strtolower($this->tipepaket_nama),true);\n\t\t$criteria->compare('LOWER(tipepaket_singkatan)',strtolower($this->tipepaket_singkatan),true);\n\t\t$criteria->compare('LOWER(tipepaket_namalainnya)',strtolower($this->tipepaket_namalainnya),true);\n\t\t$criteria->compare('LOWER(tglkesepakatantarif)',strtolower($this->tglkesepakatantarif),true);\n\t\t$criteria->compare('LOWER(nokesepakatantarif)',strtolower($this->nokesepakatantarif),true);\n\t\t$criteria->compare('tarifpaket',$this->tarifpaket);\n\t\t$criteria->compare('paketsubsidiasuransi',$this->paketsubsidiasuransi);\n\t\t$criteria->compare('paketsubsidipemerintah',$this->paketsubsidipemerintah);\n\t\t$criteria->compare('paketsubsidirs',$this->paketsubsidirs);\n\t\t$criteria->compare('paketiurbiaya',$this->paketiurbiaya);\n\t\t$criteria->compare('nourut_tipepaket',$this->nourut_tipepaket);\n\t\t$criteria->compare('LOWER(keterangan_tipepaket)',strtolower($this->keterangan_tipepaket),true);\n\t\t$criteria->compare('tipepaket_aktif',$this->tipepaket_aktif);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "function get_sup_filter($sup_restriction, $table = '') {\n $sup_filters = array();\n foreach ($sup_restriction as $sup) {\n $sup_filters[] = $table . ($table != '' ? '.' : '') . 'supervisor = \"' . $sup . '\"';\n }\n \n if (count($sup_filters) > 0) {\n return '(' . join(' || ', $sup_filters) . ')';\n } else {\n return \"0\";\n }\n}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idBan_tin',$this->idBan_tin,true);\n\t\t$criteria->compare('Chuyen_muc_idChuyen_muc',$this->Chuyen_muc_idChuyen_muc,true);\n\t\t$criteria->compare('Phuong_xa_idPhuong_xa',$this->Phuong_xa_idPhuong_xa,true);\n\t\t$criteria->compare('Quan_huyen_idQuan_huyen',$this->Quan_huyen_idQuan_huyen,true);\n\t\t$criteria->compare('Tinh_thanh_pho_idTinh_thanh_pho',$this->Tinh_thanh_pho_idTinh_thanh_pho,true);\n\t\t$criteria->compare('Khachhang_canhan_idKhachhang_canhan',$this->Khachhang_canhan_idKhachhang_canhan,true);\n\t\t$criteria->compare('Bat_dong_san_idBat_dong_san',$this->Bat_dong_san_idBat_dong_san,true);\n\t\t$criteria->compare('So_nha',$this->So_nha,true);\n\t\t$criteria->compare('Duong_pho',$this->Duong_pho,true);\n\t\t$criteria->compare('Gia',$this->Gia);\n\t\t$criteria->compare('Loai_menh_gia',$this->Loai_menh_gia,true);\n\t\t$criteria->compare('Moi_gioi',$this->Moi_gioi);\n\t\t$criteria->compare('Hoa_hong',$this->Hoa_hong);\n\t\t$criteria->compare('Dien_tich',$this->Dien_tich);\n\t\t$criteria->compare('Chieu_dai_khuon_vien',$this->Chieu_dai_khuon_vien);\n\t\t$criteria->compare('Chieu_rong_khuon_vien',$this->Chieu_rong_khuon_vien);\n\t\t$criteria->compare('No_hau_khuon_vien',$this->No_hau_khuon_vien);\n\t\t$criteria->compare('Chieu_dai_xay_dung',$this->Chieu_dai_xay_dung);\n\t\t$criteria->compare('Chieu_rong_xay_dung',$this->Chieu_rong_xay_dung);\n\t\t$criteria->compare('No_hau_xay_dung',$this->No_hau_xay_dung);\n\t\t$criteria->compare('Huong_tai_san',$this->Huong_tai_san,true);\n\t\t$criteria->compare('Tinh_trang_phap_ly',$this->Tinh_trang_phap_ly,true);\n\t\t$criteria->compare('Duong_truoc_nha',$this->Duong_truoc_nha,true);\n\t\t$criteria->compare('So_lau',$this->So_lau,true);\n\t\t$criteria->compare('So_phong_khach',$this->So_phong_khach,true);\n\t\t$criteria->compare('So_phong_ngu',$this->So_phong_ngu,true);\n\t\t$criteria->compare('So_phong_tam',$this->So_phong_tam,true);\n\t\t$criteria->compare('So_phong_ve_sinh',$this->So_phong_ve_sinh,true);\n\t\t$criteria->compare('So_phong_khac',$this->So_phong_khac,true);\n\t\t$criteria->compare('Tien_ich_khac',$this->Tien_ich_khac,true);\n\t\t$criteria->compare('Chi_tiet_khac',$this->Chi_tiet_khac,true);\n\t\t$criteria->compare('Tieu_de',$this->Tieu_de,true);\n\t\t$criteria->compare('hinh_URL',$this->hinh_URL,true);\n\t\t$criteria->compare('hinh_URL_2',$this->hinh_URL_2,true);\n\t\t$criteria->compare('hinh_URL_3',$this->hinh_URL_3,true);\n\t\t$criteria->compare('hinh_URL_4',$this->hinh_URL_4,true);\n\t\t$criteria->compare('hinh_URL_5',$this->hinh_URL_5,true);\n\t\t$criteria->compare('hinh_URL_6',$this->hinh_URL_6,true);\n\t\t$criteria->compare('hinh_URL_7',$this->hinh_URL_7,true);\n\t\t$criteria->compare('hinh_URL_8',$this->hinh_URL_8,true);\n\t\t$criteria->compare('hinh_URL_9',$this->hinh_URL_9,true);\n\t\t$criteria->compare('hinh_URL_10',$this->hinh_URL_10,true);\n\t\t$criteria->compare('Nguoi_lien_he',$this->Nguoi_lien_he,true);\n\t\t$criteria->compare('Dien_thoai',$this->Dien_thoai,true);\n\t\t$criteria->compare('Di_dong',$this->Di_dong,true);\n\t\t$criteria->compare('Ghi_chu',$this->Ghi_chu,true);\n\t\t$criteria->compare('Dia_chi_nguoi_lien_he',$this->Dia_chi_nguoi_lien_he,true);\n\t\t$criteria->compare('Ten_du_an',$this->Ten_du_an,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function filterVisible(): self;", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(strlen($this->filter_tahun)>0){\n\t\t\t$criteria->AddCondition(\"YEAR(start_date)=\".$this->filter_tahun.\" OR YEAR(end_date)=\".$this->filter_tahun);\n\t\t}\n\n\t\t$criteria->compare('kegiatan',$this->kegiatan,true);\n\t\t$criteria->compare('unit_kerja',$this->unit_kerja);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_an',$this->id_an);\n\t\t$criteria->compare('dolor',$this->dolor);\n\t\t$criteria->compare('empastamiento',$this->empastamiento);\n\t\t$criteria->compare('tamano',$this->tamano);\n\t\t$criteria->compare('tumoraciones',$this->tumoraciones);\n\t\t$criteria->compare('otros',$this->otros);\n\t\t$criteria->compare('observaciones',$this->observaciones,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "abstract public function filters();", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}" ]
[ "0.5510458", "0.5483433", "0.53874505", "0.5380181", "0.5334744", "0.5277825", "0.5277809", "0.5211707", "0.5193127", "0.5193069", "0.5192595", "0.5141807", "0.51237", "0.51216686", "0.5112058", "0.50942326", "0.5081892", "0.5075318", "0.5073921", "0.50569737", "0.50569737", "0.5056245", "0.50516456", "0.50376564", "0.50344104", "0.5021144", "0.50192153", "0.5016195", "0.50147057", "0.5010083", "0.50021183", "0.5001999", "0.49870586", "0.49802133", "0.49784228", "0.49784228", "0.49712166", "0.49616352", "0.49504855", "0.49480987", "0.49463743", "0.4943894", "0.49373463", "0.49288994", "0.49282938", "0.4907242", "0.4898371", "0.48976973", "0.4897304", "0.48795348", "0.48725522", "0.48557442", "0.48536736", "0.4852597", "0.48474854", "0.484613", "0.48453492", "0.48397607", "0.4839343", "0.4834537", "0.48281223", "0.48260325", "0.48193255", "0.48139945", "0.48128974", "0.48071298", "0.4805334", "0.4803116", "0.4800864", "0.48000517", "0.47965452", "0.47955808", "0.4790324", "0.47828925", "0.47738764", "0.47728848", "0.47728738", "0.47711614", "0.47686154", "0.47678536", "0.4766874", "0.47663936", "0.47637367", "0.4763199", "0.47604018", "0.4753852", "0.47533056", "0.4751565", "0.47509557", "0.47509187", "0.47506696", "0.47503254", "0.47484764", "0.4742558", "0.4740793", "0.4740446", "0.4737515", "0.47374475", "0.473645", "0.47326267" ]
0.5719954
0
Filter the query on the notes column Example usage: $query>filterByNotes('fooValue'); // WHERE notes = 'fooValue' $query>filterByNotes('%fooValue%'); // WHERE notes LIKE '%fooValue%'
public function filterByNotes($notes = null, $comparison = null) { if (null === $comparison) { if (is_array($notes)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $notes)) { $notes = str_replace('*', '%', $notes); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(FPartenaireTableMap::COL_NOTES, $notes, $comparison); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByNotes($notes = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($notes)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $notes)) {\n $notes = str_replace('*', '%', $notes);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(RemoteAppPeer::NOTES, $notes, $comparison);\n }", "public function findAllByAmountOfNotesAnywhere($filter)\n {\n return $this->createQueryBuilder('u')\n ->andWhere('u.amountOfNotes LIKE :filter')\n ->setParameter('filter','%'.$filter.'%')\n ->addOrderBy('u.totalAmountOfCreatedObjects','DESC')\n ->getQuery()\n ->execute();\n }", "public function noteIndex(){\n $user = $this->_ap_right_check();\n if(!$user){\n return;\n }\n $items = $this->Notes->index($user);\n }", "public static function retrieveAllNotes() {\n return R::getAll('SELECT * FROM note');\n }", "public function noteIndex(){\n $user = $this->_ap_right_check();\n if(!$user){\n return;\n }\n $items = $this->Notes->index($user); \n }", "function findNotesByUser(UserInterface $user);", "public function filter($criteria, $filter, $args=[]);", "public function get_user_note_by_only_noteID($note_id,$user_id, $validate=true){\n $sql = 'select * from notes AS N';\n $sql .=' JOIN notes_subject AS S';\n $sql .=' ON S.note_id =' .\"'\".self::$database->escape_string($note_id) .\"'\";\n $sql .=' AND N.note_id = S.note_id JOIN notes_tag AS T ON T.note_id = '.\"'\". self::$database->escape_string($note_id) .\"' \";\n // login user can not access notes of other users\n if($validate){\n $sql .='WHERE N.access_type =' . \"'Public' \";\n $sql .='OR N.user_id =' . \"'\".h($user_id).\"'\";\n }\n // echo $sql;\n return static::find_by_sql($sql);\n}", "public function getWhereSQL()\n {\n return \" AND \" . $this->field_where_name . \" LIKE '%\" . $this->field_row->criteria . \"%' \";\n \n }", "function filter_search_columns($columns, $search, $WP_User_Query)\n {\n }", "public function findWhere(String $column, $value, String $operator = '=');", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\t$expr = array_shift($args);\r\n\t\tarray_push($this->_wheres, '(' . $this->_parameterize($expr, $args) . ')');\r\n\t\t$this->_dirty = true;\r\n\t}", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "function getSomeNotes($fieldstosearch) {\n $this->createAutosession();\n\n // format the query first\n $tempFields = array();\n\n // get all notes, we'll use this later to filter our search results\n\n // todo: check to see if we need this anymore, it's used to prevent a note\n // user from seeing notes that aren't his or his account's. Formerly this\n // check wasn't handled on the server side, but it's supposed to be handled\n // there now. Code here left so as not to break anything\n\n\n $orderby = '';\n\n\n $result = $this->_getEntryList($fieldstosearch, $orderby, array());\n\n //echo \"<pre>\"; var_dump($result); echo \"</pre>\";\n\n if( is_array($result) ) {\n // now we'll filter the results to make sure we only show notes that this\n // user is authorized to view\n\n return $result;\n } else {\n return array();\n }\n }", "public function getNotes();", "public function filter_coler($params){\n $this->db->select(\"$this->table_product.text_coler\")\n ->from($this->table_product);\n $this->db->distinct();\n if (!empty($params['keyword'])) $this->db->like(\"$this->table_product.text_coler\", $params['keyword']);\n $query = $this->db->get();//var_dump($this->db->last_query()); exit();\n return $query->result();\n }", "private function get_notes()\n\t{\n\t\t$notes = $this->api->search( Options::get('simplenote__search') );\n\t\t\t\t\n\t\treturn $notes;\n\t}", "function tck_admin_list_where($where) {\n if ( isset($_GET['custom_filter']) ) {\n $mode = $_GET['custom_filter'];\n \n if ( $mode == 1 ) $where .= ' AND `' . TCK_COLUMN . '` = 0';\n if ( $mode == 2 ) $where .= ' AND `' . TCK_COLUMN . '` = 1';\n }\n \n return $where;\n }", "public function get_user_notes(){\n $user_id = (int) $_COOKIE['user_id'];\n $sql = 'SELECT * from '. static::$table_name .' AS N JOIN notes_subject AS S';\n $sql .=' ON N.user_id =' .\"'\". self::$database->escape_string($user_id) .\"'\";\n $sql .= ' AND N.user_id = S.user_id AND N.note_id = S.note_id JOIN notes_tag AS T ON N.user_id = T.user_id AND N.note_id = T.note_id';\n\n return static::find_by_sql($sql);\n }", "public function searchMyNotes(Request $request) {\n $notesService = new NotesService();\n if($request->has('query') == false) {\n $matchedNotes = $notesService->getNotesForQuery(\"\", \"my\");\n } else {\n $matchedNotes = $notesService->getNotesForQuery($request->input('query'), \"my\");\n }\n $notesResponseArray = array();\n foreach ($matchedNotes as $note) {\n $notesResponseArray[] = Util::getNotesResponse($note);\n }\n return json_encode(array('notes' => $notesResponseArray));\n }", "public function search($keywords = '')\n {\n if (!empty($_POST['q'])) {\n $keywords = filter_var($_POST['q'], FILTER_SANITIZE_STRING);\n }\n $result = $this->notesModel->filterNotes($keywords);\n echo json_encode($result);\n }", "private function _sql_filter_postmeta($column, $operator, $value) {\n\n\t\tif ( empty($value) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\tglobal $wpdb;\n\t\t\n\t\t$sub_query = '';\n\t\t$line_item_join_rule = 'OR'; // TODO\n\n\t\tswitch($operator) {\n\t\t\tcase 'starts_with': \n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', $v.'%');\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->postmeta}.meta_value LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND $sub_query)\", $wpdb->prepare('%s',$column));\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', $value.'%');\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s)\", $wpdb->prepare('%s',$column), $value);\n\t\t\t\t}\n\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'ends_with': \n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', '%'.$v);\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->postmeta}.meta_value LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND $sub_query)\", $wpdb->prepare('%s',$column));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', '%'.$value);\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s)\", $wpdb->prepare('%s',$column), $value);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'like': \n // Like's % cause sprintf errors, so we gotta join the query ugly like.\n // https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=508\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t $q = sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND \", $wpdb->prepare('%s',$column));\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', '%'.$v.'%');\n\t\t\t\t\t\t$v = sprintf(\"{$wpdb->postmeta}.meta_value LIKE %s\", $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn $q . '('.implode(\" $line_item_join_rule \", $value) .'))'; // close the sub query\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', '%'.$value.'%');\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s)\", $wpdb->prepare('%s',$column), $value);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'not_like': \n\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', '%'.$v.'%');\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->postmeta}.meta_value NOT LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND $sub_query)\", $wpdb->prepare('%s',$column));\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', '%'.$value.'%');\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value NOT LIKE %s)\", $wpdb->prepare('%s',$column), $value);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\n\t\t\t// Arrays make no sense for these guys:\n\t\t\tcase '>':\n\t\t\tcase '>=':\n\t\t\tcase '<':\n\t\t\tcase '<=':\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\t$this->errors[] = sprintf(__('The %s operator cannot operate on an array of values.', CCTM_TXTDOMAIN), $operator);\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value $operator %s)\", $wpdb->prepare('%s',$column), $wpdb->prepare('%s',$value));\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase '=':\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', $v);\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t$value = '('. implode(',', $value) . ')';\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value IN %s)\", $wpdb->prepare('%s',$column), $value);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value = %s)\", $wpdb->prepare('%s',$column), $wpdb->prepare('%s',$value));\n\t\t\t\t}\n\t\t\t\n\n\t\t\tcase '!=':\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', $v);\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t$value = '('. implode(',', $value) . ')';\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value NOT IN %s)\", $wpdb->prepare('%s',$column), $value);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} ({$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value != %s)\", $wpdb->prepare('%s',$column), $wpdb->prepare('%s',$value));\n\t\t\t\t}\n\t\t}\n\t}", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "private function _sql_filter_posts($column, $operator, $value) {\n\n\t\tif ( empty($value) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\tglobal $wpdb;\n\t\t\n\t\t$sub_query = '1 AND';\n\t\t$line_item_join_rule = 'OR'; // TODO\n\t\t\n\t\tswitch($operator) {\n\t\t\tcase 'starts_with': \n\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', $v.'%');\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->posts}.$column LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn \" {$this->join_rule} ($sub_query)\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', $value.'%');\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column LIKE %s\", $value);\n\t\t\t\t}\n\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'ends_with': \n\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', '%'.$v);\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->posts}.$column LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn \" {$this->join_rule} ($sub_query)\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', '%'.$value);\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column LIKE %s\", $value);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'like': \n\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', '%'.$v.'%');\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->posts}.$column LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn \" {$this->join_rule} ($sub_query)\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', '%'.$value);\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column LIKE %s\", $value);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'not_like': \n\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', '%'.$v.'%');\n\t\t\t\t\t\t$sub_query .= sprint(\" %s {$wpdb->posts}.$column NOT LIKE %s\", $line_item_join_rule, $v);\n\t\t\t\t\t}\n\t\t\t\t\treturn \" {$this->join_rule} ($sub_query)\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$value = $wpdb->prepare('%s', '%'.$value);\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column NOT LIKE %s\", $value);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\n\t\t\t// Arrays make no sense for these guys:\n\t\t\tcase '>':\n\t\t\tcase '>=':\n\t\t\tcase '<':\n\t\t\tcase '<=':\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\t$this->errors[] = sprintf(__('The %s operator cannot operate on an array of values.', CCTM_TXTDOMAIN), $operator);\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column $operator %s\", $wpdb->prepare('%s',$value));\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase '=':\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', $v);\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t$value = '('. implode(',', $value) . ')';\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column IN %s\", $value);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column = %s\", $wpdb->prepare('%s',$value));\n\t\t\t\t}\n\t\t\t\n\n\t\t\tcase '!=':\n\t\t\t\tif ( is_array($value) ) {\n\t\t\t\t\tforeach ($value as &$v) {\n\t\t\t\t\t\t$v = $wpdb->prepare('%s', $v);\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t$value = '('. implode(',', $value) . ')';\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column NOT IN %s\", $value);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn sprintf(\" {$this->join_rule} {$wpdb->posts}.$column != %s\", $wpdb->prepare('%s',$value));\n\t\t\t\t}\n\t\t}\n\t}", "public function setNotes($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->notes !== $v) {\n $this->notes = $v;\n $this->modifiedColumns[BiblioTableMap::COL_NOTES] = true;\n }\n\n return $this;\n }", "public function where($table,$column,$data = \"\");", "public function get_notes($id){\n $this->db->where('user_id', $id);\n $query = $this->db->get('notes');\n return $query->result();\n }", "public function where(array $params)\n {\n }", "private static function filterParams($params=[])\n { \n $where = '';\n if (!empty($params)) {\n $where = 'WHERE ';\n foreach ($params as $index=>$value) {\n $where .= $index.' = ? AND '; \n }\n $where = trim($where,'AND ');//delete and\n }\n $query = \"SELECT * FROM \".static::tableName().\" $where\";\n return $query;\n }", "function map_wheres($where){\n //\n //return field to str\n return $where->to_str();\n }", "private function sql_whereWiHits()\n {\n // Get WHERE statement\n $where = $this->pObj->objSqlInit->statements[ 'listView' ][ 'where' ] .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS();\n // Localise the WHERE statement\n $where = $this->sql_whereWiHitsLL( $where );\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "public function filter($mValue)\n {\n return \\mysql_escape_string($mValue);\n }", "protected function user_where_clause() {}", "public function set_where(array $params) {\n $where = '';\n foreach ($params as $field_name => $field_value) {\n $where .= '`' . $field_name . '` = \\'' . $field_value . '\\' AND ';\n }\n\n $where = rtrim($where, ' AND ');\n $this->where = ' WHERE ' . $where;\n }", "public static function note_find_by_id($note_id){\n\t\t\tglobal $database;\n\n\t\t\t$sql = \"SELECT * FROM \" . self::$db_table . \" WHERE \";\n\t\t\t$sql .= \"id = {$note_id}\";\n\t\t\t$the_result_array = self::find_by_query($sql);\n\t\t\treturn !empty($the_result_array) ? array_shift($the_result_array) : false;\n\t\t}", "public function dtPerformColumnFilter($columns);", "public function filter()\n {\n list($column, $operator, $value, $boolean) = func_get_args();\n empty($operator) && $operator = null;\n empty($value) && $value = null;\n empty($boolean) && $boolean = null;\n if($this->hasFilter) {\n $this->model = $this->model->where($column, $operator, $value, $boolean);\n } else {\n $this->model = $this->model->newQuery()->where($column, $operator, $value, $boolean);\n $this->hasFilter = true;\n }\n\n return $this;\n }", "public function where($column, $operator, $value);", "public function notesByDateAction() {\n \n $this->view->consumer_id = $this->consumer_id;\n \n $searchDate = $this->getRequest()->getParam('date', date(\"Y-m-d\"));\n \n $year = $this->getRequest()->getParam('year', false);\n if($year!= false) {\n $searchDate = $year.\"-\"; \n }\n $month = $this->getRequest()->getParam('month', false);\n if($month!= false) {\n $searchDate = $searchDate.$month.\"-\"; \n }\n $day = $this->getRequest()->getParam('day', false); \n if($day!= false) {\n $searchDate = $searchDate.$day; \n }\n \n \n $this->view->notes = $this->_model->findByConsumerIdAndUserId($this->consumer_id,\n $this->user_id,\n $searchDate);\n \n if( $this->xhr ) {\n $this->_asJson($this->view->notes->toArray()); \n } \n \n \n }", "public function get_notes($id)\n {\n $this->db->select ('notes_id, note_title, note_content, note_date')\n ->where ('tbl_users_user_ID', $id);\n\n $result = $this->db->get ('tbl_notes');\n\n return $result;\n }", "public function index()\n {\n return Notes::all();\n }", "public static function where($column, $value, $operator = '=');", "function findNoteById($id);", "public function setNotes($notes)\n {\n $this->notes = $notes;\n\n return $this;\n }", "public function where($column, $value, $operator = '=')\n {\n }", "abstract public function filterWhere(Builder $dataSource);", "public function Where($key, $value)\n {\n $this->where = \"WHERE $key = '$value'\";\n }", "public function setNotes(?string $notes): self\n {\n $this->initialized['notes'] = true;\n $this->notes = $notes;\n\n return $this;\n }", "public function setNotes($value) {\n\t\tif ($value == NULL) {\n\t\t\t$this->_notes = \"\";\n\t\t} else {\n\t\t\t$this->_notes = $value;\n\t\t}\n\t}", "public function get_notes($uid){\n $sql = \"SELECT * FROM notes WHERE uid = :uid\";\n $stmt = $this->conn->prepare($sql);\n $stmt->execute(\n [\n 'uid'=>$uid\n ]\n );\n\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n\n\n }", "static function filter($model) {\n $cond = Session::get('filter', strtolower($model->source));\n $param = array(\n /* Relaciones */\n 'rel' => array(\n '=' => 'Igual',\n 'LIKE' => 'Parecido',\n '<>' => 'Diferente',\n '<' => 'Menor',\n '>' => 'Mayor'\n ),\n 'col' => array_diff($model->fields, $model->_at, $model->_in, $model->primary_key),\n 'model' => $model,\n 'cond' => $cond\n );\n ob_start();\n View::partial('backend/filter', false, $param);\n return ob_get_clean();\n }", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "public static function getAllNote() : array {\r\n global $config;\r\n $con = new Sql($config[\"host\"], $config[\"database\"], $config[\"username\"], $config[\"password\"]);\r\n $noteGateway = new NoteGateway($con);\r\n return $noteGateway->findAll();\r\n }", "public function actionIndex()\n {\n\n if(!Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId())=='user')\n {\n $auth = Yii::$app->authManager;\n $userRole = $auth->getRole('user');\n $auth->assign($userRole, Yii::$app->user->getId());\n }\n \n $searchModel = new NotetakingNotesSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n if (!Yii::$app->user->isGuest) {\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);}\n else{\n return $this->goBack();\n }\n }", "function setQueryFilter($sType, $sContent) {\n // when receive search type and data\n if(!(is_null($sType) || is_null($sContent))) {\n // when search type is all\n if($sType == 'all') {\n $this->queryFilter = \"WHERE title LIKE '%{$sContent}%'\n OR content LIKE '%{$sContent}%'\n OR user_name LIKE '%{$sContent}%'\";\n } else if($sType == 'writer') {\n $this->queryFilter = \"WHERE writer LIKE '%{$sContent}%'\n OR user_name LIKE '%{$sContent}%'\";\n } else {\n $this->queryFilter = \"WHERE {$sType} LIKE '%{$sContent}%'\";\n }\n } else {\n $this->queryFilter = '';\n }\n }", "public function where(string $key, $value);", "public function where($column, $operator = null, $value = null, $boolean = 'and');", "public function fetchAllNotes(){\n\t\t$fetchAll = $this->userClsObj->fetchAllNotes();\n\t\treturn $fetchAll;\n\t}", "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "public function search(Request $request) {\n $notesService = new NotesService();\n if($request->has('query') == false) {\n return $this->index();\n }\n $matchedNotes = $notesService->getNotesForQuery($request->input('query'));\n $notesResponseArray = array();\n foreach ($matchedNotes as $note) {\n $notesResponseArray[] = Util::getNotesResponse($note);\n }\n return json_encode(array('notes' => $notesResponseArray));\n }", "public function search($params, $column=null)\n\t{\n if (!($column && is_array($column))) {\n $query = FaqHelpfulModel::find()->alias('t');\n } else {\n $query = FaqHelpfulModel::find()->alias('t')->select($column);\n }\n\t\t$query->joinWith([\n\t\t\t'faq faq', \n\t\t\t'faq.questionRltn questionRltn', \n\t\t\t'faq.category.title category', \n\t\t\t'user user',\n\t\t\t'modified modified'\n\t\t]);\n\n\t\t$query->groupBy(['id']);\n\n // add conditions that should always apply here\n\t\t$dataProvider = new ActiveDataProvider([\n\t\t\t'query' => $query,\n\t\t]);\n\n\t\t$attributes = array_keys($this->getTableSchema()->columns);\n\t\t$attributes['category_search'] = [\n\t\t\t'asc' => ['category.message' => SORT_ASC],\n\t\t\t'desc' => ['category.message' => SORT_DESC],\n\t\t];\n\t\t$attributes['faq_search'] = [\n\t\t\t'asc' => ['questionRltn.message' => SORT_ASC],\n\t\t\t'desc' => ['questionRltn.message' => SORT_DESC],\n\t\t];\n\t\t$attributes['userDisplayname'] = [\n\t\t\t'asc' => ['user.displayname' => SORT_ASC],\n\t\t\t'desc' => ['user.displayname' => SORT_DESC],\n\t\t];\n\t\t$attributes['modifiedDisplayname'] = [\n\t\t\t'asc' => ['modified.displayname' => SORT_ASC],\n\t\t\t'desc' => ['modified.displayname' => SORT_DESC],\n\t\t];\n\t\t$dataProvider->setSort([\n\t\t\t'attributes' => $attributes,\n\t\t\t'defaultOrder' => ['id' => SORT_DESC],\n\t\t]);\n\n if (Yii::$app->request->get('id')) {\n unset($params['id']);\n }\n\t\t$this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n\t\t// grid filtering conditions\n\t\t$query->andFilterWhere([\n\t\t\t't.id' => $this->id,\n\t\t\t't.faq_id' => isset($params['faq']) ? $params['faq'] : $this->faq_id,\n\t\t\t't.user_id' => isset($params['user']) ? $params['user'] : $this->user_id,\n\t\t\t't.helpful' => $this->helpful,\n\t\t\t'cast(t.helpful_date as date)' => $this->helpful_date,\n\t\t\t'cast(t.modified_date as date)' => $this->modified_date,\n\t\t\t't.modified_id' => isset($params['modified']) ? $params['modified'] : $this->modified_id,\n\t\t\t'faq.cat_id' => isset($params['category']) ? $params['category'] : $this->category_search,\n\t\t]);\n\n\t\t$query->andFilterWhere(['like', 't.message', $this->message])\n\t\t\t->andFilterWhere(['like', 't.helpful_ip', $this->helpful_ip])\n\t\t\t->andFilterWhere(['like', 'questionRltn.message', $this->faq_search])\n\t\t\t->andFilterWhere(['like', 'user.displayname', $this->userDisplayname])\n\t\t\t->andFilterWhere(['like', 'modified.displayname', $this->modifiedDisplayname]);\n\n\t\treturn $dataProvider;\n\t}", "private function addWhere(&$query, $column, $operator, $value)\n {\n if ($operator == 'in') {\n\n $is_null = false;\n foreach ($value as $key => $val) {\n if ($val === null) {\n $is_null = true;\n unset($value[$key]);\n }\n }\n\n if ($is_null) {\n $query->whereNull($column)->orWhereIn($column, $value);\n } else {\n $query->whereIn($column, $value);\n }\n\n } elseif ($operator == 'not in') {\n $is_null = false;\n foreach ($value as $key => $val) {\n if ($val === null) {\n $is_null = true;\n unset($value[$key]);\n }\n }\n\n $value = array_values($value);\n if ($is_null) {\n $query->whereNotNull($column)->whereNotIn($column, $value);\n } else {\n $query->whereNotIn($column, $value);\n }\n\n } elseif ($operator == 'search') {\n\n $input = mb_strtolower($value);\n $input = Transliterator::transliterate($input, ' ');\n $input = explode(' ', $input);\n $input = array_filter($input);\n\n foreach ($input as $word) {\n $query = $query->where('search', 'LIKE', '%' . $word . '%');\n }\n\n } else {\n $query->where($column, $operator, $value);\n }\n return $query;\n }", "protected function getWhereClause() {}", "abstract protected function filterField(): string;", "public function getUserNotificationsColumns($columns, $where, array $markers = []);", "function modifyNote($note) {\n $tmpArray = $this->_bind($note);\n\n $tmpArray = $this->prepareString($tmpArray);\n\n\t\t$result = $this->_setEntry($tmpArray);\n\n return $result;\n }", "public static function getNotesByClientId(int $clientId) {\n $db = new PDO(DB_SERVER, DB_USER, DB_PW);\n // 2. Prepare the query\n $sql = 'SELECT * FROM notes WHERE clientId = ?';\n $statement = $db->prepare($sql);\n // 3. Run the query\n $success = $statement->execute(\n [$clientId]\n );\n // 4. Handle the results\n $arr = [];\n while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n $notesItem = new Notes($row);\n array_push($arr, $notesItem);\n }\n return $arr;\n }", "public function where($arr){//ex of $arr : ['name' => 'LIKE A%','email' => '= [email protected]']\n $c = \"\";\n $x = 0;\n foreach($arr as $key => $v){//for each param, translate to SQL language\n if($x != 0){\n $c .= \" AND\";\n }\n $x++;\n $c .= \" $key $v\";\n }\n $this->params[\"WHERE\"] = $c;//adding the conditions to the query\n return $this;\n }", "public function where($params = array()) \n {\n $sql = $this->_data['query'] . ' WHERE ';\n if(is_array($params)) {\n $condition = $this->replaceParam($params);\n $sql .= $condition;\n $this->_data['where'] = $condition;\n } else {\n $sql .= $params;\n $this->_data['where'] = $params;\n }\n $this->_data['query'] = $sql;\n return $this;\n }", "function where($s)\n{\n\t$this->tryModify();\n\tif(!isset($this->query['where'])) $this->query['where'] = array();\n\t$this->query['where'][] = $this->setWhereParams($s, func_get_args(), 1);\n\treturn $this;\n}", "function getNotes(){\n\n\n\t\theader('Content-Type: application/json');\n\t\t\n\t\t$id = $_GET['id'];\n\t\t$r = new RESPONSE(0);\n\n\t\t//make sure id is present\n\t\tif ($id == \"\" || $id < 1){\n\t\t\t$r->message = \"No data.\";\n\t\t\techo $r->toJSON();\t\n\t\t\treturn false;\n\t\t}\n\n\t\t//create the db\n\t\t$database = createDb();\t\t\n\n\n\n\t\t//get the admin notes\n\t\t$datas = $database->select(\"Note\", \"*\", [\n\t\t\t\"MainContactId\" => $id \n\t\t]);\n\n\n\t\t//parse and format response\n\t\tif( count($datas) > 0){\n\n\t\t\t$r->html .= '<tbody>';\t\n\n\t\t\t foreach ($datas as $row) {\n\t\t\t\t \t\t\t\t\t\t // process the notes\n\t\t\t\t $notes = $row[\"Notes\"];\n\t\t\t\t \n\t\t\t\t if ($notes != \"\"){\n\t\t\t\t\t$r->html .= sprintf('<tr><td>%s</td><td>%s</td></tr>', $row[\"DateTimeEntered\"], $notes);\t \n\t\t\t\t }\n\n\t\t\t }\n\n\n\n\t\t\t$r->html .= '</tbody>';\t\n\t\t\t$r->status = 1;\n\n\t\t}\n\n\t\t//the response\n\t\techo $r->toJSON();\t\n\n\t}", "public function getWhere() {\r\n return $this->_where;\r\n }", "protected function getSearchColumnsForFilter()\n {\n return sfConfig::get('app_ull_user_phone_book_search_columns', array(\n 'first_name',\n 'last_name',\n 'UllLocation->name',\n 'UllLocation->short_name',\n 'UllLocation->phone_base_no',\n 'UllDepartment->name',\n 'UllJobTitle->name',\n ));\n }", "public function filterByNote($note = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($note)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AssegnamentiPostazioneTableMap::COL_NOTE, $note, $comparison);\n }", "private static function _getFilter() {}", "function getNoteList()\n {\n $stmt = \"SELECT\n cno_id,\n cno_prj_id,\n cno_customer_id,\n cno_note\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"customer_note\n ORDER BY\n cno_customer_id ASC\";\n $res = DB_Helper::getInstance()->getAll($stmt, DB_FETCHMODE_ASSOC);\n if (PEAR::isError($res)) {\n Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);\n return array();\n } else {\n for ($i = 0; $i < count($res); $i++) {\n $res[$i]['customer_title'] = self::getTitle($res[$i]['cno_prj_id'], $res[$i]['cno_customer_id']);\n }\n return $res;\n }\n }", "public function getWhere()\n {\n return $this->where;\n }", "protected function getListQuery()\n\t{\n\t\t$extension = Factory::getApplication()->input->get('extension', '', 'word');\n\t\t$parts = explode('.', $extension);\n\n\t\t// Extract the component name\n\t\t$this->setState('filter.component', $parts[0]);\n\n\t\t// Extract the optional section name\n\t\t$this->setState('filter.section', (count($parts) > 1) ? $parts[1] : null);\n\n\t\t// Initialize variables.\n\t\t$db = Factory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Create the base select statement.\n\t\t$query->select('t.*')\n\t\t\t->from('`#__tj_notification_templates` AS t');\n\n\t\t$search = $this->getState('filter.search');\n\n\t\tif (!empty($search))\n\t\t{\n\t\t\t$like = $db->quote('%' . $search . '%');\n\t\t\t$query->where($db->quoteName('client') . ' LIKE ' . $like . ' OR ' . $db->quoteName('key') . ' LIKE ' . $like . ' OR ' . $db->quoteName('title') . ' LIKE ' . $like);\n\t\t}\n\n\t\tif ($extension)\n\t\t{\n\t\t\t$query->where($db->quoteName('client') . ' = ' . $db->quote($extension));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Filter by client\n\t\t\t$client = $this->getState('filter.client');\n\t\t\t$key = $this->getState('filter.key');\n\n\t\t\tif (!empty($client) && empty($key))\n\t\t\t{\n\t\t\t\t$query->where($db->quoteName('client') . ' = ' . $db->quote($client));\n\t\t\t}\n\t\t}\n\n\t\t// For getting templates\n\t\tif (!empty($client) && !empty($key))\n\t\t{\n\t\t\t$query->where($db->quoteName('client') . ' = ' . $db->quote($client) . ' AND ' . $db->quoteName('key') . ' = ' . $db->quote($key));\n\t\t\t$query->order($db->quoteName('key') . ' ASC');\n\t\t}\n\n\t\t// Filter by language\n\t\t$language = $this->getState('filter.language');\n\n\t\tif ($language !== '')\n\t\t{\n\t\t\t$query->select('ntc.language');\n\t\t\t$query->join('LEFT', '#__tj_notification_template_configs AS ntc ON ntc.template_id = t.id');\n\t\t\t$query->where($db->qn('ntc.language') . '=' . $db->quote($language));\n\t\t}\n\n\t\t$orderCol = $this->getState('list.ordering');\n\t\t$orderDirn = $this->getState('list.direction');\n\n\t\tif ($orderCol && $orderDirn)\n\t\t{\n\t\t\t$query->order($db->quoteName($orderCol) . ' ' . $db->escape($orderDirn));\n\t\t}\n\n\t\treturn $query;\n\t}", "public function getUserNotificationsColumn(string $column, $where, array $markers = []);", "function setNotes($inNotes) {\n\t\tif ( $inNotes !== $this->_Notes ) {\n\t\t\t$this->_Notes = $inNotes;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "protected static function preparar_filtros($variables=false){\n $filtros='';\n if($variables){\n $filtros='WHERE true ';\n foreach ($variables as $clave => $valor):\n $clave=strtolower($clave);\n $filtros .=\" AND \".$clave.\"= ? \"; \n endforeach;\n }\n return $filtros;\n }", "public function setNotes($notes = null)\n {\n $this->notes = $notes;\n\n return $this;\n }", "public function where($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "function getNotes($inpworecnum) {\n $userrole = $_SESSION['userrole'];\n $userid = $_SESSION['user'];\n $userrecnum = $_SESSION['userrecnum'];\n $worecnum = \"'\" . $inpworecnum . \"'\";\n $sql = \"select n.create_date, n.notes, u.userid\n from notes n, user u, work_order w\n where n.notes2wo = w.recnum and\n notes2user = u.recnum and\n w.recnum = $worecnum\";\n $result = mysql_query($sql);\n return $result;\n }", "public function filters() {\n\t\treturn array(\n\t\t TRUE => array(array('trim')),\n\t\t);\n\t}", "public function filterNotesForUser($user, $rights = 0){\n\t\tif($rights > 0)\n\t\t\treturn $this->useUserNoteQuery()->filterByUser($user)->filterByRights(array('min' => $rights))->endUse();\n\t\treturn $this->useUserNoteQuery()->filterByUser($user)->endUse();\n\t}", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id,true);\n $criteria->compare('content_id',$this->content_id,true);\n $criteria->compare('title',$this->title,true);\n $criteria->compare('alias',$this->alias,true);\n $criteria->compare('text',$this->text,true);\n $criteria->compare('user_created',$this->user_created);\n $criteria->compare('user_edited',$this->user_edited);\n $criteria->compare('rec_created',$this->rec_created,true);\n $criteria->compare('rec_modified',$this->rec_modified,true);\n \n //$criteria->condition='is_external=0';\n\n \treturn new CActiveDataProvider(get_class($this), array(\n \t\t'criteria'=>$criteria,\n \t\t'sort'=>array(\n \t\t\t'defaultOrder'=>'rec_created desc',\n \t\t),\n \t\t'pagination'=>array(\n \t\t\t'pageSize'=>30\n \t\t),\n \t));\n }", "function filter($param)\r\n\t{\r\n\r\n\t\t$this->view = false;\r\n\t\t$this->layout_name = false;\r\n\r\n\t\t$_SQL = Singleton::getInstance(SQL_DRIVER);\r\n\r\n\t\t$sql = \"SELECT `\" . $param[1] . \"` FROM `\" . $param[0] . \"` WHERE `\" . $param[1] . \"` LIKE '\" . $_SQL->sql_real_escape_string($_GET['q']) . \"%' \r\n\t\t ORDER BY `\" . $param[1] . \"` LIMIT 0,100\";\r\n\t\t$res = $_SQL->sql_query($sql);\r\n\r\n\t\twhile ( $ob = $_SQL->sql_fetch_object($res) )\r\n\t\t{\r\n\t\t\techo $ob->$param[1] . \"\\n\";\r\n\t\t}\r\n\t}", "public function findAll()\r\n {\r\n $sql = \"SELECT * FROM note\";\r\n try {\r\n $sth=$this->executer($sql);\r\n $rows = $sth->fetchAll(PDO::FETCH_ASSOC);\r\n } catch (PDOException $e) {\r\n die(\"Erreur lors de la requête SQL : \" . $e->getMessage());\r\n }\r\n $les_notes = array();\r\n foreach ($rows as $row) {\r\n $les_notes[] = new Note($row);\r\n }\r\n // Retourne un tableau d'objets \"note\"\r\n return $les_notes;\r\n }", "public function getFilterQuery($key, $condition, $value, $originalValue, $type = 'normal')\n\t{\n\t\t$originalValue = trim($value, \"'\");\n\t\t$this->encryptFieldName($key);\n\t\t$str = ' (' . $key . ' ' . $condition . ' ' . $value . ' OR ' . $key . ' LIKE \\'%\"' . $originalValue . '\"%\\')';\n\t\treturn $str;\n\t}", "public function where($field, $operator, $value);", "public function search( $query )\n\t{\n\t\t$result = $this->api->search( $query, 2000000 );\n\t\t\n\t\t$notes = array();\n\t\t\n\t\tforeach( $result['results'] as $key => $content ) {\n\t\t\t$note = new Note( $key );\n\t\t\t$note->content = $content;\n\t\t\t\n\t\t\t$notes[] = $note;\n\t\t}\n\t\t\n\t\treturn $notes;\n\t}", "function getColumnFilter ( &$where = array(),\n $table,\n $column,\n $columnLogicOpr,\n $minOper,\n $minValue,\n $rangeLogicOper,\n $maxOper,\n $maxValue ) {\n if ( ($minOper != \"\" and $minValue != \"\") and ( $maxValue == \"\" )) {\n $where[] = \"$columnLogicOpr \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue\";\n }\n // Assign just the max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ( $minValue == \"\") ) {\n $where[] = \"$columnLogicOpr \". self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue\";\n }\n\t// Assign both min and max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ($minOper != \"\" and $minValue != \"\") ) {\n $where[] = \"$columnLogicOpr ( \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue $rangeLogicOper \".\n self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue )\";\n }\n }", "private function sql_whereAllItems()\n {\n $where = '1 ' .\n $this->sql_whereAnd_pidList() .\n $this->sql_whereAnd_enableFields() .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS() .\n $this->sql_whereAnd_sysLanguage();\n // Get WHERE statement\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "public function setNotes($value)\n {\n $this->setItemValue('notes', (string)$value);\n }", "public abstract function getCriteriaWhere($criteria);", "public function show(SubjectNotes $subjectNotes)\n {\n //\n }", "public function show(SubjectNotes $subjectNotes)\n {\n //\n }", "protected function _list_items_query()\n\t{\n\t\t$this->filters = (array) $this->filters;\n\t\t$where_or = array();\n\t\t$where_and = array();\n\t\tforeach($this->filters as $key => $val)\n\t\t{\n\t\t\tif (is_int($key))\n\t\t\t{\n\t\t\t\tif (isset($this->filters[$val])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$key = $val;\n\t\t\t\t$val = $this->filter_value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// used for separating table names and fields since periods get translated to underscores\n\t\t\t\t$key = str_replace(':', '.', $key);\n\t\t\t}\n\t\t\t\n\t\t\t$joiner = $this->filter_join;\n\t\t\t\n\t\t\tif (is_array($joiner))\n\t\t\t{\n\t\t\t\tif (isset($joiner[$key]))\n\t\t\t\t{\n\t\t\t\t\t$joiner = $joiner[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$joiner = 'or';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!empty($val)) \n\t\t\t{\n\t\t\t\t$joiner_arr = 'where_'.$joiner;\n\t\t\t\t\n\t\t\t\tif (strpos($key, '.') === FALSE AND strpos($key, '(') === FALSE) $key = $this->table_name.'.'.$key;\n\t\t\t\t\n\t\t\t\t//$method = ($joiner == 'or') ? 'or_where' : 'where';\n\t\t\t\t\n\t\t\t\t// do a direct match if the values are integers and have _id in them\n\t\t\t\tif (preg_match('#_id$#', $key) AND is_numeric($val))\n\t\t\t\t{\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\tarray_push($$joiner_arr, $key.'='.$val);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from imknight https://github.com/daylightstudio/FUEL-CMS/pull/113#commits-pushed-57c156f\n\t\t\t\t//else if (preg_match('#_from#', $key) OR preg_match('#_to#', $key))\n\t\t\t\telse if (preg_match('#_from$#', $key) OR preg_match('#_fromequal$#', $key) OR preg_match('#_to$#', $key) OR preg_match('#_toequal$#', $key) OR preg_match('#_equal$#', $key))\n\t\t\t\t{\n\t\t\t\t\t//$key = strtr($key, array('_from' => ' >', '_fromequal' => ' >=', '_to' => ' <', '_toequal' => ' <='));\n\t\t\t\t\t$key_with_comparison_operator = preg_replace(array('#_from$#', '#_fromequal$#', '#_to$#', '#_toequal$#', '#_equal$#'), array(' >', ' >=', ' <', ' <=', ' ='), $key);\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\t//$where_or[] = $key.'='.$this->db->escape($val);\n\t\t\t\t\tarray_push($$joiner_arr, $key_with_comparison_operator.$this->db->escape($val));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//$method = ($joiner == 'or') ? 'or_like' : 'like';\n\t\t\t\t\t//$this->db->$method('LOWER('.$key.')', strtolower($val), 'both');\n\t\t\t\t\tarray_push($$joiner_arr, 'LOWER('.$key.') LIKE \"%'.strtolower($val).'%\"');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// here we will group the AND and OR separately which should handle most cases me thinks... but if not, you can always overwrite\n\t\t$where = array();\n\t\tif (!empty($where_or))\n\t\t{\n\t\t\t$where[] = '('.implode(' OR ', $where_or).')';\n\t\t}\n\t\tif (!empty($where_and))\n\t\t{\n\t\t\t$where[] = '('.implode(' AND ', $where_and).')';\n\t\t}\n\t\tif (!empty($where))\n\t\t{\n\t\t\t$where_sql = implode(' AND ', $where);\n\t\t\t$this->db->where($where_sql);\n\t\t}\n\t\t\n\t\t\n\t\t// set the table here so that items total will work\n\t\t$this->db->from($this->table_name);\n\t}" ]
[ "0.65479434", "0.53552955", "0.53209394", "0.52974755", "0.5292584", "0.5192094", "0.51822233", "0.5125954", "0.51029927", "0.5094221", "0.5073027", "0.50335497", "0.50330824", "0.5015415", "0.50072765", "0.5005611", "0.5001612", "0.49864164", "0.49557132", "0.49454725", "0.4880133", "0.48743945", "0.48550436", "0.48550436", "0.48506513", "0.48432028", "0.4827001", "0.4819789", "0.48162657", "0.48040724", "0.48009968", "0.4795776", "0.47894835", "0.4777162", "0.47746783", "0.4758127", "0.47539374", "0.47530824", "0.47502798", "0.47466254", "0.47367018", "0.47035363", "0.4699825", "0.4689425", "0.4682785", "0.46791798", "0.46650597", "0.46530533", "0.46349686", "0.46348125", "0.4628286", "0.4625819", "0.46119282", "0.46007356", "0.45978937", "0.45975974", "0.45956972", "0.45903343", "0.45896444", "0.4585379", "0.45781243", "0.45737332", "0.45699066", "0.45664772", "0.45639148", "0.45618457", "0.45596802", "0.4549173", "0.45423698", "0.45411804", "0.45411575", "0.45404288", "0.45390952", "0.45361322", "0.45353365", "0.45286798", "0.4525793", "0.45188478", "0.45162547", "0.4513873", "0.45127392", "0.44973987", "0.44937262", "0.44910556", "0.44889596", "0.4476632", "0.44682333", "0.44619524", "0.4460712", "0.44594333", "0.44590202", "0.44578037", "0.44530767", "0.44503593", "0.44501513", "0.44494995", "0.44414848", "0.44370455", "0.44370455", "0.4435762" ]
0.63811463
1
Filter the query on the dte_maj column Example usage: $query>filterByDateMAJ('20110314'); // WHERE dte_maj = '20110314' $query>filterByDateMAJ('now'); // WHERE dte_maj = '20110314' $query>filterByDateMAJ(array('max' => 'yesterday')); // WHERE dte_maj > '20110313'
public function filterByDateMAJ($dateMAJ = null, $comparison = null) { if (is_array($dateMAJ)) { $useMinMax = false; if (isset($dateMAJ['min'])) { $this->addUsingAlias(FPartenaireTableMap::COL_DTE_MAJ, $dateMAJ['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($dateMAJ['max'])) { $this->addUsingAlias(FPartenaireTableMap::COL_DTE_MAJ, $dateMAJ['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(FPartenaireTableMap::COL_DTE_MAJ, $dateMAJ, $comparison); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function compute_datemaj($data) {\n\n $date_maj = DateTime::createFromFormat('d/m/Y', trim($data['INFO_GENERALES'][0]['DATE_MAJ']))->format('Y-m-d') . ' 00:00:00';\n\n if(array_key_exists('IMAGES', $data)) {\n foreach($data['IMAGES'][0]['IMG'] as $url) {\n $image_raw_date = preg_replace(\"#.+DATEMAJ=#\", \"\", trim($url));\n $image_date = DateTime::createFromFormat('d/m/Y-H:i:s', $image_raw_date)->format('Y-m-d H:i:s');\n\n if($image_date > $date_maj) {\n $date_maj = $image_date;\n }\n }\n }\n\n return DateTime::createFromFormat('Y-m-d H:i:s' ,$date_maj)->format('U');\n }", "public function get_between_january_may() {\n $query = \"SELECT nomor, DATE(created_at) AS created_at FROM bpp_history where nomor REGEXP '/(01|02|03|04|05)/2021?' order by substring(nomor, 9, 2) asc\";\n $result = $this->db->query($query);\n return $result;\n }", "public function max($model, $column, $dateColumn = null)\n {\n return $this->aggregate('max', $model, $column, $dateColumn);\n }", "public function getMaxMedDate()\r\n\t\t{\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$query = \" SELECT max(date_given)\r\n\t\t\t\t\t\t\tFROM med_record\";\r\n\t\t\t\t$result = mysqli_query($link, $query);\r\n\t\t\t\t$m = array();\r\n\t\t\t\t$m_arr = array();\r\n\t\t\t\twhile($row = mysqli_fetch_row($result)){\r\n\t\t\t\t\t$m['mdate'] = $row[0];\r\n\t\t\t\t\t$m_arr[] = $m;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\treturn $m_arr;\r\n\t\t\t\t\r\n\t\t}", "public function maxByMonths($request, $model, $column, $dateColumn = null)\n {\n return $this->aggregate($request, $model, Trend::BY_MONTHS, 'max', $column, $dateColumn);\n }", "private function query_fecha_minima_factura(){\n\n \t$respuesta = false;\n\n\t\ttry {\n\n \t\t\t$this->db->select_min('cao_fatura.data_emissao');\n\t\t\t$this->db->from('cao_fatura');\t\t\n\n\t\t\t$query = $this->db->get();\n\n\t\t if ($query && $query->num_rows() > 0)\n\t\t {\n\t\t\t\t$respuesta = $query->result_array();\n\n\t\t }else{\n\n\t\t throw new Exception('Error al intentar obtener la factura de menor fecha');\n\t\t\t log_message('error', 'Error al intentar obtener la factura de menor fecha');\t\t \n\n\t\t $respuesta = false;\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\n\t\t\t$respuesta = false;\n\t\t}\t\t\t\n\n\t\treturn $respuesta;\n }", "function get_month_max($date, $labels) {\n global $DB;\n\n $fechainicio = new DateTime(\"1-\".$date->month.\"-\".$date->year);\n $maxday = cal_days_in_month(CAL_GREGORIAN, $date->month, $date->year);\n $fechafin = new DateTime($maxday.\"-\".$date->month.\"-\".$date->year);\n $fechafin->setTime(23, 59, 59);\n $result = array();\n foreach ($labels as $label) {\n $result[] = 0;\n }\n\n $sql = \"SELECT id, connectedusers, date FROM {report_user_statistics} WHERE date >= ? AND date <= ? ORDER BY date;\";\n $todaslasconexiones = $DB->get_records_sql($sql, [$fechainicio->getTimestamp(), $fechafin->getTimestamp()]);\n $day = 0;\n $temp = array();\n $i = 1;\n foreach ($todaslasconexiones as $conexiones) {\n $fecha = new DateTime(\"@$conexiones->date\");\n if (($fecha->format('m') == $date->month) && ($fecha->format('Y') == $date->year)) {\n if ($day == 0) {\n $day = $fecha->format('d');\n $temp[] = $conexiones->connectedusers;\n $i++;\n } else if ($day == $fecha->format('d')) {\n $temp[] = $conexiones->connectedusers;\n $i++;\n } else if ($day < $fecha->format('d')) {\n $key = array_search($day, $labels);\n $result[$key] = max($temp);\n $temp = array();\n $day = $fecha->format('d');\n $temp[] = $conexiones->connectedusers;\n }\n if (count($todaslasconexiones) == $i) {\n $key = array_search($day, $labels);\n $result[$key] = max($temp);\n } else if (count($temp) > 1) {\n $key = array_search($day, $labels);\n $result[$key] = max($temp);\n }\n }\n }\n return $result;\n}", "function get_date_where($max_levels=3)\n {\n global $page;\n $date = $page['chronology_date'];\n while (count($date)>$max_levels)\n {\n array_pop($date);\n }\n $res = '';\n if (isset($date[CYEAR]) and $date[CYEAR]!=='any')\n {\n $y = $date[CYEAR];\n $res = \" AND $this->date_field BETWEEN '$y-01-01' AND '$y-12-31 23:59:59'\";\n }\n\n if (isset($date[CWEEK]) and $date[CWEEK]!=='any')\n {\n $res .= ' AND '.$this->calendar_levels[CWEEK]['sql'].'='.$date[CWEEK];\n }\n if (isset($date[CDAY]) and $date[CDAY]!=='any')\n {\n $res .= ' AND '.$this->calendar_levels[CDAY]['sql'].'='.$date[CDAY];\n }\n if (empty($res))\n {\n $res = ' AND '.$this->date_field.' IS NOT NULL';\n }\n return $res;\n }", "function whereQuery() {\n // $arrDate1 = explode(\"-\", $bulantahunpenggajian);\n // $date1 = $arrDate1[0].'-'.$arrDate1[1].'-01';\n // $date2 = $arrDate1[0].'-'.$arrDate1[1].'-'.cal_days_in_month(CAL_GREGORIAN, $arrDate1[1], $arrDate1[0]);\n \n // $wer = \" A.MONTH = '\".$arrDate1[1].\"' AND A.YEAR = \".$arrDate1[0].\"\";\n \n // return $wer;\n return '';\n }", "function analysis($mthArray,$date){\r\n\t// the array is indexed from 1 to 12\r\n\t$d = date_parse_from_format(\"Y-m-d\", $date);\r\n\t\r\n\tif($d[\"month\"]==1){\r\n\t\t// compare january vs. december\r\n\t\t// the greater months in the array must be from the previous year\r\n\t\t$prevMonth=11;\r\n\t}\r\n\telse{\r\n\t\t$prevMonth=$d[\"month\"]-1;\r\n\t}\r\n\t\r\n\tif($mthArray[$d[\"month\"]]>$mthArray[$prevMonth]){\r\n\t\t$msg='We ate MORE meals together this month than last month';\r\n\t}\r\n\telse if($mthArray[$d[\"month\"]]<$mthArray[$prevMonth]){\r\n\t\t$msg='We ate LESS meals together this month than last month';\r\n\t}\r\n\telse{\r\n\t\t$msg='We ate THE SAME NUMBER OF meals together this month than last month';\r\n\t}\t\r\n\t\r\n\treturn $msg;\r\n}", "private function _selectFechas()\n {\n \t$mes = $this->currentYear.'-'.$this->currentMonth;\n\n \t$q = (new Query())->select([\"extract(day from $this->fecha) as \".$this->pre.\"fecha\", \"$this->link as link\"])\n \t->distinct($this->fecha)->from($this->tabla)\n \t->andFilterWhere([\"to_char($this->fecha, 'YYYY-mm')\" => $mes]);\n \tif ($this->where) $q->andFilterWhere($this->where);\n\n \treturn $q->all();\n\n }", "public function getFiltroPrecoMaximoMinimo()\n {\n return Query::fetchFirst('Busca/Filtros/QryBuscarPrecoMaximoMinimo');\n }", "function buscar_mayor_fecha () {\n global $DB;\n $sql = \"SELECT date FROM {report_user_statistics} WHERE id=(SELECT max(id) FROM {report_user_statistics});\";\n $fecha = $DB->get_record_sql($sql);\n return $fecha;\n}", "function get_date_where($max_levels=3)\n {\n global $page;\n\n $date = $page['chronology_date'];\n while (count($date)>$max_levels)\n {\n array_pop($date);\n }\n $res = '';\n if (isset($date[CYEAR]) and $date[CYEAR]!=='any')\n {\n $b = $date[CYEAR] . '-';\n $e = $date[CYEAR] . '-';\n if (isset($date[CMONTH]) and $date[CMONTH]!=='any')\n {\n $b .= sprintf('%02d-', $date[CMONTH]);\n $e .= sprintf('%02d-', $date[CMONTH]);\n if (isset($date[CDAY]) and $date[CDAY]!=='any')\n {\n $b .= sprintf('%02d', $date[CDAY]);\n $e .= sprintf('%02d', $date[CDAY]);\n }\n else\n {\n $b .= '01';\n $e .= $this->get_all_days_in_month($date[CYEAR], $date[CMONTH]);\n }\n }\n else\n {\n $b .= '01-01';\n $e .= '12-31';\n if (isset($date[CMONTH]) and $date[CMONTH]!=='any')\n {\n $res .= ' AND '.$this->calendar_levels[CMONTH]['sql'].'='.$date[CMONTH];\n }\n if (isset($date[CDAY]) and $date[CDAY]!=='any')\n {\n $res .= ' AND '.$this->calendar_levels[CDAY]['sql'].'='.$date[CDAY];\n }\n }\n $res = \" AND $this->date_field BETWEEN '$b' AND '$e 23:59:59'\" . $res;\n }\n else\n {\n $res = ' AND '.$this->date_field.' IS NOT NULL';\n if (isset($date[CMONTH]) and $date[CMONTH]!=='any')\n {\n $res .= ' AND '.$this->calendar_levels[CMONTH]['sql'].'='.$date[CMONTH];\n }\n if (isset($date[CDAY]) and $date[CDAY]!=='any')\n {\n $res .= ' AND '.$this->calendar_levels[CDAY]['sql'].'='.$date[CDAY];\n }\n }\n return $res;\n }", "public function filterByFilterJanee($filterJanee = null, $comparison = null)\n {\n if (is_array($filterJanee)) {\n $useMinMax = false;\n if (isset($filterJanee['min'])) {\n $this->addUsingAlias(GsMedischeHulpmiddelenPeer::FILTER_JANEE, $filterJanee['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($filterJanee['max'])) {\n $this->addUsingAlias(GsMedischeHulpmiddelenPeer::FILTER_JANEE, $filterJanee['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsMedischeHulpmiddelenPeer::FILTER_JANEE, $filterJanee, $comparison);\n }", "function filtersecondary()\r\n\t{\t\r\n\t\t// make date and time variables\r\n\t\t$this->_setModelState();\r\n\t $model = $this->getModel( $this->get( 'suffix' ) );\r\n\t $state = $model->getState();\r\n\t \t\t\r\n\t\t$date->current = $state->filter_date_from; \r\n\t\t\r\n\t\t$date->month = date( 'm', strtotime($date->current) );\r\n\t\t$date->year = date( 'Y', strtotime($date->current) );\r\n\t\t\r\n\t\t// date time variables\r\n\t\t$date->days = $this->getDays( $date->current );\r\n\t\t$date->hours = $this->getHours( );\r\n\t\t\r\n\t\t// datetime matrix\r\n\t\t$datetime = array( );\r\n\t\tfor ( $i = 0; $i < 3; $i++ )\r\n\t\t{\r\n\t\t\tfor ( $j = 0; $j < 24; $j++ )\r\n\t\t\t{\r\n\t\t\t\t$dayskey = $date->days[$i];\r\n\t\t\t\t$hourskey = $date->hours[$j];\r\n\t\t\t\t$datetime[$dayskey][$hourskey] = '';\r\n\t\t\t}\r\n\t\t}\r\n\t\t$date->datetime = $datetime;\r\n\t\t\r\n\t\t// navigation dates\r\n\t\t$date->nextthreedate = date( 'Y-m-d', strtotime( $date->current . ' +3 days' ) );\r\n\t\t$date->nextmonth = date( 'm', strtotime( $date->current . ' +3 days' ) );\r\n\t\t$date->nextyear = date( 'Y', strtotime( $date->current . ' +3 days' ) );\r\n\t\t$date->prevthreedate = date( 'Y-m-d', strtotime( $date->current . ' -3 days' ) );\r\n\t\t$date->prevmonth = date( 'm', strtotime( $date->current . ' -3 days' ) );\r\n\t\t$date->prevyear = date( 'Y', strtotime( $date->current . ' -3 days' ) );\r\n\t\t\r\n\t\t// aditional variables\r\n\t\t$date->startday = date( 'd', strtotime( $date->days[0] ) );\r\n\t\t$date->startmonth = date( 'm', strtotime( $date->days[0] ) );\r\n\t\t$date->startmonthname = date( 'F', strtotime( $date->days[0] ) );\r\n\t\t$date->startyear = date( 'Y', strtotime( $date->days[0] ) );\r\n\t\t$date->endday = date( 'd', strtotime( $date->days[2] ) );\r\n\t\t$date->endmonth = date( 'm', strtotime( $date->days[2] ) );\r\n\t\t$date->endmonthname = date( 'F', strtotime( $date->days[2] ) );\r\n\t\t$date->endyear = date( 'Y', strtotime( $date->days[2] ) );\r\n\t\t$date->nonworkingdays = $this->getNonWorkingDays( );\r\n\t\t\r\n\t\t// get categories for filtering\r\n\t\t\r\n\t\t$filter_category = JRequest::getVar( 'filter_category' );\r\n\t\t$model->setState( 'filter_secondary_category', $filter_category );\r\n\t\t\r\n\t\t$model->setState( 'order', 'tbl.eventinstance_date' );\r\n\t\t$model->setState( 'direction', 'ASC' );\r\n\t\t$query = $model->getQuery( );\r\n\t\t$query->order( 'tbl.eventinstance_time' );\r\n\t\t$model->setQuery( $query );\r\n\t\t\r\n\t\t$vars->date = $date;\r\n\t\t$vars->items = $model->getList( );\r\n\t\t\r\n\t\t$html = $this->getLayout( 'default', $vars, 'three' ); \r\n\t\techo ( json_encode( array('msg'=>$html) ) );\r\n\t}", "public function max(string $unit, $model, $column, $dateColumn = null)\n {\n return $this->aggregate('max', $unit, $model, $column, $dateColumn);\n }", "public function getDataMonth()\n {\n return $this->model()->where('created_at', '>=', Carbon::now()->startOfMonth())->get();\n }", "public function max($request, $model, $unit, $column, $dateColumn = null)\n {\n return $this->aggregate($request, $model, $unit, 'max', $column, $dateColumn);\n }", "function GetLastMonthFilter($FldExpression, $dbid = 0) {\r\n\t$today = getdate();\r\n\t$lastmonth = mktime(0, 0, 0, $today['mon']-1, 1, $today['year']);\r\n\t$val = date(\"Y|m\", $lastmonth);\r\n\t$wrk = $FldExpression . \" BETWEEN \" .\r\n\t\tQuotedValue(DateValue(\"month\", $val, 1, $dbid), DATATYPE_DATE, $dbid) .\r\n\t\t\" AND \" .\r\n\t\tQuotedValue(DateValue(\"month\", $val, 2, $dbid), DATATYPE_DATE, $dbid);\r\n\treturn $wrk;\r\n}", "function _max_date($field, $date)\r\n\t{\r\n\t\treturn (strtotime($this->{$field}) > strtotime($date)) ? FALSE : TRUE;\r\n\t}", "public static function produtosAcimaMaximo ($model)\n {\n return static::produtos($model, 'acimaMaximo');\n }", "function getColumnFilter ( &$where = array(),\n $table,\n $column,\n $columnLogicOpr,\n $minOper,\n $minValue,\n $rangeLogicOper,\n $maxOper,\n $maxValue ) {\n if ( ($minOper != \"\" and $minValue != \"\") and ( $maxValue == \"\" )) {\n $where[] = \"$columnLogicOpr \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue\";\n }\n // Assign just the max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ( $minValue == \"\") ) {\n $where[] = \"$columnLogicOpr \". self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue\";\n }\n\t// Assign both min and max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ($minOper != \"\" and $minValue != \"\") ) {\n $where[] = \"$columnLogicOpr ( \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue $rangeLogicOper \".\n self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue )\";\n }\n }", "function getDebutMois($dateDuJour){\n global $dbHandler;\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT * FROM getdebutmois(date('$dateDuJour'));\";\n $result = $db->query($sql);\n\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n Signalerreur(__FILE__,__LINE__,__FUNCTION__,_(\"DB\").\": \".$result->getMessage());\n }\n\n $date_row = $result->fetchrow(DB_FETCHMODE_ASSOC);\n\n $dbHandler->closeConnection(true);\n return $date_row['getdebutmois'];\n}", "function get_materias_equipo($filtro=array()){\n $where=\" WHERE 1=1 \";\n $where2=\" WHERE 1=1 \";\n if (isset($filtro['anio'])) {\n $where.= \" and anio= \".quote($filtro['anio']['valor']);\n }\n if (isset($filtro['carrera'])) {\n switch ($filtro['carrera']['condicion']) {\n case 'contiene':$where2.= \" and carrera ILIKE \".quote(\"%{$filtro['carrera']['valor']}%\");break;\n case 'no_contiene':$where2.= \" and carrera NOT ILIKE \".quote(\"%{$filtro['carrera']['valor']}%\");break;\n case 'comienza_con':$where2.= \"and carrera ILIKE \".quote(\"{$filtro['carrera']['valor']}%\");break;\n case 'termina_con':$where2.= \"and carrera ILIKE \".quote(\"%{$filtro['carrera']['valor']}\");break;\n case 'es_igual_a':$where2.= \" and carrera = \".quote(\"{$filtro['carrera']['valor']}\");break;\n case 'es_distinto_de':$where2.= \" and carrera <> \".quote(\"{$filtro['carrera']['valor']}\");break;\n }\t\n\t }\n if (isset($filtro['legajo'])) {\n $where2.= \" and legajo = \".quote($filtro['legajo']['valor']);\n }\n if (isset($filtro['vencidas'])) {\n $pdia = dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n $udia = dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n switch ($filtro['vencidas']['valor']) {\n //sin las designaciones vencidas, es decir solo vigentes\n case 1:$where.= \" and desde<='\".$udia.\"' and ( hasta>='\".$pdia.\"' or hasta is null )\";break;\n case 0:$where.= \" and not(desde<='\".$udia.\"' and ( hasta>='\".$pdia.\"' or hasta is null ))\";break;\n }\n }\n// if (isset($filtro['carrera'])) {\n// $where2.= \" and carrera= \".quote($filtro['carrera']['valor']);\n// }\n //si el usuario esta asociado a un perfil de datos\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and uni_acad = \".quote($resul[0]['sigla']);\n }else{\n //print_r($filtro);exit;\n if (isset($filtro['uni_acad'])) {\n $where.= \" and uni_acad= \".quote($filtro['uni_acad']['valor']);\n }\n }\n \n $sql=\"select * from (select \n case when conj='sin_conj' then desc_materia else desc_mat_conj end as materia,\n case when conj='sin_conj' then cod_siu else cod_conj end as cod_siu,\n case when conj='sin_conj' then cod_carrera else car_conj end as carrera,\n case when conj='sin_conj' then ordenanza else ord_conj end as ordenanza,\n docente_nombre,legajo,cat_est,id_designacion,modulo,rol,periodo,id_conjunto\n from(\n select sub5.uni_acad,trim(d.apellido)||', '||trim(d.nombre) as docente_nombre,d.legajo,cat_est,sub5.id_designacion,carac,t_mo.descripcion as modulo,case when trim(rol)='NE' then 'Aux' else 'Resp' end as rol,p.descripcion as periodo,\n case when sub5.desc_materia is not null then 'en_conj' else 'sin_conj' end as conj,id_conjunto,\n m.desc_materia,m.cod_siu,pl.cod_carrera,pl.ordenanza,\n sub5.desc_materia as desc_mat_conj,sub5.cod_siu as cod_conj,sub5.cod_carrera as car_conj,sub5.ordenanza as ord_conj\n from(\n\n select sub2.id_designacion,sub2.id_materia,sub2.id_docente,sub2.id_periodo,sub2.modulo,sub2.carga_horaria,sub2.rol,sub2.observacion,cat_est,dedic,carac,desde,hasta,sub2.uni_acad,sub2.id_departamento,sub2.id_area,sub2.id_orientacion,sub4.desc_materia ,sub4.cod_carrera,sub4.ordenanza,sub4.cod_siu,sub3.id_conjunto\n from (select distinct * from (\n select distinct a.anio,b.id_designacion,b.id_docente,a.id_periodo,a.modulo,a.carga_horaria,a.rol,a.observacion,a.id_materia,b.uni_acad,cat_estat||dedic as cat_est,dedic,carac,desde,hasta,b.id_departamento,b.id_area,b.id_orientacion\n from asignacion_materia a, designacion b\n where a.id_designacion=b.id_designacion\n and not (b.hasta is not null and b.hasta<=b.desde)\n )sub1\n --where uni_acad='CRUB' and anio=2020 \n \".$where .\") sub2 \n left outer join \n ( select t_c.id_conjunto,t_p.anio,t_c.id_periodo,t_c.ua,t_e.id_materia\n from en_conjunto t_e,conjunto t_c, mocovi_periodo_presupuestario t_p\n WHERE t_e.id_conjunto=t_c.id_conjunto and t_p.id_periodo=t_c.id_periodo_pres \n )sub3 on (sub3.ua=sub2.uni_acad and sub3.id_periodo=sub2.id_periodo and sub3.anio=sub2.anio and sub3.id_materia=sub2.id_materia)\n left outer join (select t_e.id_conjunto,t_e.id_materia,t_m.desc_materia,t_m.cod_siu,t_p.cod_carrera,t_p.uni_acad,t_p.ordenanza\n from en_conjunto t_e,materia t_m ,plan_estudio t_p\n where t_e.id_materia=t_m.id_materia\n and t_p.id_plan=t_m.id_plan)sub4 on sub4.id_conjunto=sub3.id_conjunto\n\n\n\n )sub5\n LEFT OUTER JOIN docente d ON d.id_docente=sub5.id_docente\n LEFT OUTER JOIN periodo p ON p.id_periodo=sub5.id_periodo\n LEFT OUTER JOIN modulo t_mo ON sub5.modulo=t_mo.id_modulo\n LEFT OUTER JOIN materia m ON m.id_materia=sub5.id_materia\n LEFT OUTER JOIN plan_estudio pl ON pl.id_plan=m.id_plan\n )sub6)sub\n $where2\n order by id_conjunto,materia,docente_nombre\";\n return toba::db('designa')->consultar($sql);\n }", "public function maxByMinutes($request, $model, $column, $dateColumn = null)\n {\n return $this->aggregate($request, $model, Trend::BY_MINUTES, 'max', $column, $dateColumn);\n }", "public function trie_par_date($date_ajout){\n $marque_page = [];\n if($date_ajout==0){\n $query = $this->db->prepare('SELECT date_a, date_m, description, id_utilisateur, note, somme, logo_choisi, id_marque_page, titre, url, createur FROM ajoute_modifie, marque_page WHERE id_marque_page = id AND createur=1 ORDER BY date_a DESC');\n }else{\n $query = $this->db->prepare('SELECT date_a, date_m, description, id_utilisateur, note, somme, logo_choisi, id_marque_page, titre, url, createur FROM ajoute_modifie, marque_page WHERE id_marque_page = id AND createur=1 AND date_a >= ( CURDATE() - INTERVAL '.$date_ajout.' DAY ) ORDER BY date_a DESC');\n }\n $query->execute();\n\n while ($donnees = $query->fetch(PDO::FETCH_ASSOC)){\n $marque_page[] = $donnees;\n }\n return $marque_page;\n }", "function getLastMvtCpt($id_cpte) {\n global $dbHandler, $global_id_agence;\n $db = $dbHandler->openConnection();\n $sql = \"SELECT MAX(date_comptable) FROM ad_mouvement m,ad_ecriture e WHERE e.id_ag = m.id_ag AND m.id_ag = $global_id_agence AND cpte_interne_cli='$id_cpte' AND m.id_ecriture=e.id_ecriture\";\n $result = $db->query($sql);\n if (DB :: isError($result)) {\n $dbHandler->closeConnection(false);\n signalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n }\n $dbHandler->closeConnection(true);\n $retour = $result->fetchrow();\n return $retour[0];\n}", "function SUELDO_MINIMO($_ARGS) {\r\n\t$sql = \"SELECT\r\n\t\t\t\tMonto\r\n\t\t\tFROM\r\n\t\t\t\tmastsueldosmin\r\n\t\t\tWHERE\r\n\t\t\t\tPeriodo = (SELECT MAX(Periodo) FROM mastsueldosmin WHERE Periodo <= '\".$_ARGS['PERIODO'].\"')\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function\nquery_for_month($language, $target_area, $season, $start_date, $stop_date, $freeze_date, $status)\n{\n $obs_query = \"SELECT ob.frequency, ob.\\\"date\\\", ob.\\\"time\\\", ob.o\"\n .\" FROM parsed_observations ob JOIN ms_use ms USING (stn)\"\n .\" WHERE status='$status'\"\n .\" AND ob.\\\"date\\\" BETWEEN '$start_date' AND '$stop_date'\"\n \t .\" AND ob.\\\"language\\\" = '$language' AND ms.\\\"language\\\" = '$language'\";\n if($freeze_date != \"\")\n $obs_query .= \" AND ob.row_timestamp <= TIMESTAMP '$freeze_date'\";\n\n // this sub query returns the sla targets for the ta, language and month\n $sla_query =\n \"SELECT start_time, min(target) AS target, primary_frequency, secondary_frequency FROM sla\"\n .\" WHERE season = '$season'\".\" AND target_area = '$target_area'\"\n .\" AND valid_from <= '$stop_date'\"\n .\" AND(valid_to IS NULL OR valid_to >= '$start_date')\"\n .\" AND \\\"language\\\" = '$language'\"\n .\" GROUP BY start_time, primary_frequency, secondary_frequency\";\n\n // this sub query collects the obervations into the sla bins and finds the max score for each bin\n return\n \" SELECT s.start_time, target, o.\\\"date\\\", max(o.o) AS o\"\n .\" FROM($sla_query) AS s LEFT JOIN($obs_query) AS o\"\n .\" ON o.\\\"time\\\" BETWEEN s.start_time AND(s.start_time + '00:30:00'::interval)\"\n .\" WHERE (o.frequency = ANY(s.primary_frequency) OR o.frequency = ANY(s.secondary_frequency))\"\n .\" GROUP BY s.start_time, s.target, o.\\\"date\\\"\";\n}", "public function maxByDays($request, $model, $column, $dateColumn = null)\n {\n return $this->aggregate($request, $model, Trend::BY_DAYS, 'max', $column, $dateColumn);\n }", "private function max ($param)\n {\n $v = $this->value;\n if (is_numeric($v) && $v < $param)\n {\n $this->SetError('max', 'The '.$this->SpacedKey.' field must be at least '.$param);\n return false;\n }\n elseif ($this->type == 'date')\n {\n $v = strtotime($v);\n $MaxTime = strtotime($param);\n if ($v > $MaxTime)\n {\n $this->SetError('max', 'The '.$this->SpacedKey.' field must be before '.$param);\n return false;\n }\n }\n elseif (strlen($v) > $param)\n {\n $this->SetError('max', 'The '.$this->SpacedKey.' field must be '.$param.' charcters or less in length');\n return false;\n }\n return true;\n }", "function getListFilter($col,$key,$tahun='',$bulan='') {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': \n\t\t\t\t\treturn \"datepart(year,p.tglperolehan) = '$tahun' and datepart(month,p.tglperolehan) = '$bulan' \"; \n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once('m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"infoleft >= \".(int)$row['infoleft'].\" and inforight <= \".(int)$row['inforight'];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public function filterByGlijmiddelJanee($glijmiddelJanee = null, $comparison = null)\n {\n if (is_array($glijmiddelJanee)) {\n $useMinMax = false;\n if (isset($glijmiddelJanee['min'])) {\n $this->addUsingAlias(GsMedischeHulpmiddelenPeer::GLIJMIDDEL_JANEE, $glijmiddelJanee['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($glijmiddelJanee['max'])) {\n $this->addUsingAlias(GsMedischeHulpmiddelenPeer::GLIJMIDDEL_JANEE, $glijmiddelJanee['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsMedischeHulpmiddelenPeer::GLIJMIDDEL_JANEE, $glijmiddelJanee, $comparison);\n }", "public function maximalVal( string $column = '' )\n {\n return $this->show()->max( $column );\n }", "function filterprimary()\r\n\t{\t\r\n\t\t// make date and time variables\r\n\t\t$this->_setModelState();\r\n\t $model = $this->getModel( $this->get( 'suffix' ) );\r\n\t $state = $model->getState();\r\n\t \t\t\r\n\t\t$date->current = $state->filter_date_from; \r\n\t\t\r\n\t\t$date->month = date( 'm', strtotime($date->current) );\r\n\t\t$date->year = date( 'Y', strtotime($date->current) );\r\n\t\t\r\n\t\t// date time variables\r\n\t\t$date->days = $this->getDays( $date->current );\r\n\t\t$date->hours = $this->getHours( );\r\n\t\t\r\n\t\t// datetime matrix\r\n\t\t$datetime = array( );\r\n\t\tfor ( $i = 0; $i < 3; $i++ )\r\n\t\t{\r\n\t\t\tfor ( $j = 0; $j < 24; $j++ )\r\n\t\t\t{\r\n\t\t\t\t$dayskey = $date->days[$i];\r\n\t\t\t\t$hourskey = $date->hours[$j];\r\n\t\t\t\t$datetime[$dayskey][$hourskey] = '';\r\n\t\t\t}\r\n\t\t}\r\n\t\t$date->datetime = $datetime;\r\n\t\t\r\n\t\t// navigation dates\r\n\t\t$date->nextthreedate = date( 'Y-m-d', strtotime( $date->current . ' +3 days' ) );\r\n\t\t$date->nextmonth = date( 'm', strtotime( $date->current . ' +3 days' ) );\r\n\t\t$date->nextyear = date( 'Y', strtotime( $date->current . ' +3 days' ) );\r\n\t\t$date->prevthreedate = date( 'Y-m-d', strtotime( $date->current . ' -3 days' ) );\r\n\t\t$date->prevmonth = date( 'm', strtotime( $date->current . ' -3 days' ) );\r\n\t\t$date->prevyear = date( 'Y', strtotime( $date->current . ' -3 days' ) );\r\n\t\t\r\n\t\t// aditional variables\r\n\t\t$date->startday = date( 'd', strtotime( $date->days[0] ) );\r\n\t\t$date->startmonth = date( 'm', strtotime( $date->days[0] ) );\r\n\t\t$date->startmonthname = date( 'F', strtotime( $date->days[0] ) );\r\n\t\t$date->startyear = date( 'Y', strtotime( $date->days[0] ) );\r\n\t\t$date->endday = date( 'd', strtotime( $date->days[2] ) );\r\n\t\t$date->endmonth = date( 'm', strtotime( $date->days[2] ) );\r\n\t\t$date->endmonthname = date( 'F', strtotime( $date->days[2] ) );\r\n\t\t$date->endyear = date( 'Y', strtotime( $date->days[2] ) );\r\n\t\t$date->nonworkingdays = $this->getNonWorkingDays( );\r\n\t\t\r\n\t\t// take filter categories and do filtering\r\n\t\t$elements = json_decode( preg_replace('/[\\n\\r]+/', '\\n', JRequest::getVar( 'elements', '', 'post', 'string' ) ) );\r\n\t\t\r\n\t\t$categories = array();\r\n\t\tforeach($elements as $element)\r\n\t\t{\r\n\t\t\tif($element->checked && strpos ( $element->name , 'primary_cat_' ) !== false )\r\n\t\t\t{\r\n\t\t\t\t$categories[$element->name] = $element->value;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$model->setState( 'filter_primary_categories', $categories );\r\n\t\t\r\n\t\t// order event instances by date and time\r\n\t\t$model->setState( 'order', 'tbl.eventinstance_date' );\r\n\t\t$model->setState( 'direction', 'ASC' );\r\n\t\t$query = $model->getQuery( );\r\n\t\t$query->order( 'tbl.eventinstance_start_time' );\r\n\t\t$model->setQuery( $query );\r\n\t\t\r\n\t\t// attach variables to the $vars object\r\n\t\t$vars->date = $date;\r\n\t\t$vars->items = $model->getList( );\r\n\t\t\r\n\t\t// echo output\r\n\t\t$html = $this->getLayout( 'default', $vars, 'three' ); \r\n\t\techo ( json_encode( array('msg'=>$html) ) );\r\n\t}", "public function filterByMdate($mdate = null, $comparison = null)\n\t{\n\t\tif (is_array($mdate)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($mdate['min'])) {\n\t\t\t\t$this->addUsingAlias(InviteDetailPeer::MDATE, $mdate['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($mdate['max'])) {\n\t\t\t\t$this->addUsingAlias(InviteDetailPeer::MDATE, $mdate['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(InviteDetailPeer::MDATE, $mdate, $comparison);\n\t}", "function visites_mensuelles_chiffres($global_jour) {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t$periode = date('m/y'); // mois /annee en cours (format de $date)\r\n\t$dday = date('j'); // numero du jour\r\n\t$nb_mois = $GLOBALS['actijour']['nbl_mensuel']; // nombre mois affiche\r\n\r\n\t$requete = \"FROM_UNIXTIME(UNIX_TIMESTAMP(date),'%m') AS d_mois, \r\n\t\t\tFROM_UNIXTIME(UNIX_TIMESTAMP(date),'%y') AS d_annee, \r\n\t\t\tFROM_UNIXTIME(UNIX_TIMESTAMP(date),'%m/%y') AS date_unix, \r\n\t\t\tSUM(visites) AS visit_mois \r\n\t\t\tFROM spip_visites WHERE date > DATE_SUB(NOW(),INTERVAL 2700 DAY) \r\n\t\t\tGROUP BY date_unix ORDER BY date DESC LIMIT 0,$nb_mois\";\r\n\r\n\t// calcul du $divis : MAX de visites_mois\r\n\t$r = sql_select($requete);\r\n\t$tblmax = array();\r\n\twhile ($rmx = @sql_fetch($r)) {\r\n\t\t$tblmax[count($tblmax) + 1] = $rmx['visit_mois'];\r\n\t}\r\n\treset($tblmax);\r\n\r\n\tif (count($tblmax) == 0) {\r\n\t\t$tblmax[] = 1;\r\n\t}\r\n\t$divis = max($tblmax) / 100;\r\n\r\n\t//le tableau a jauges horizontales\r\n\t$aff .= debut_cadre_relief(\"\", true)\r\n\t\t. \"<span class='arial2'>\" . _T('actijour:entete_tableau_mois', array('nb_mois' => $nb_mois)) . \"\\n</span>\"\r\n\t\t. \"<table width='100%' cellpadding='2' cellspacing='0' border='0' class='arial2'>\\n\"\r\n\t\t. \"<tr><td align='left'>\" . _T('actijour:mois_pipe')\r\n\t\t. \"</td><td width='50%'>\" . _T('actijour:moyenne_mois') . \"</td>\\n\"\r\n\t\t. \"<td><b>\" . _T('actijour:visites') . \"</b></td></tr>\";\r\n\r\n\t$ra = sql_select($requete);\r\n\twhile ($row = sql_fetch($ra)) {\r\n\t\t$val_m = $row['d_mois'];\r\n\t\t$val_a = $row['d_annee'];\r\n\t\t$date = $row['date_unix'];\r\n\t\t$visit_mois = $row['visit_mois'];\r\n\t\t$idefix = '';\r\n\r\n\t\t//nombre de jours du mois $mois\r\n\t\t$mois = mktime(0, 0, 0, $val_m, 1, $val_a);\r\n\t\t$nbr_jours = intval(date(\"t\", $mois));\r\n\r\n\t\t// nombre de jours, moyenne, si mois en cours\r\n\t\tif ($date != $periode) {\r\n\t\t\t$nbj = $nbr_jours;\r\n\t\t\t$moy_mois = floor($visit_mois / $nbj);\r\n\t\t\t$totvisit = $visit_mois;\r\n\t\t} else {\r\n\t\t\t$nbj = ($dday == 1) ? $dday : $dday - 1;\r\n\t\t\t$moy_mois = floor(($visit_mois - $global_jour) / $nbj);\r\n\t\t\t$totvisit = $visit_mois - $global_jour;\r\n\t\t\t$idefix = \"*\";\r\n\t\t}\r\n\t\t$totvisit = number_format($totvisit, 0, ',', '.');\r\n\r\n\t\t//longeur jauge (ne tiens pas compte du jour en cour)\r\n\t\t$long = floor($visit_mois / $divis);\r\n\r\n\t\t// couleur de jauge pour mois le plus fort\r\n\t\t$color_texte = '';\r\n\t\tif ($long == 100) {\r\n\t\t\t$coul_jauge = $couleur_foncee;\r\n\t\t\t$color_texte = \"style='color:#ffffff;'\";\r\n\t\t} else {\r\n\t\t\t$coul_jauge = $couleur_claire;\r\n\t\t}\r\n\r\n\t\t$aff .= \"<tr><td class='arial2' colspan='3'>\"\r\n\t\t\t. \"<div style='position:relative; z-index:1; width:100%;'>\"\r\n\t\t\t. \"<div class='cell_info_mois'>$date</div>\"\r\n\t\t\t. \"<div class='cell_moymens'>$moy_mois</div>\"\r\n\t\t\t. \"<div class='cell_info_tot' $color_texte><b>$totvisit</b>$idefix</div>\"\r\n\t\t\t. \"</div>\";\r\n\t\t# barre horiz \r\n\t\t$aff .= \"<div class='fond_barre'>\\n\"\r\n\t\t\t. \"<div style='width:\" . $long . \"%; height:11px; background-color:\" . $coul_jauge . \";'></div>\\n\"\r\n\t\t\t. \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"<tr><td colspan='3'><span class='verdana1'>\"\r\n\t\t. _T('actijour:pied_tableau_mois') . \"</span></td></tr>\\n\"\r\n\t\t. \"</table></span>\\n\";\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n\r\n}", "public function max($col = '*', $as = NULL) \n {\n $col = $this->clean($col);\n \n // Empty out the old junk\n $this->clear();\n \n // Build our sql statement\n $as = ($as !== NULL) ? \" AS \".$as : \"\";\n $this->sql = \"SELECT MAX(\". $col .\")\". $as;\n return $this;\n }", "public function mes(){\n\n\t\t$date = $this->dia;\n $date = DateTime::createFromFormat('Y-m-d', $date);\n \t \n\t\treturn $date->format('m') - 1;\n\t}", "public function getMaxDateProperty()\n {\n return Carbon::now()->timezone($this->timezome)->format('Y-m-d');\n }", "public function maxByHours($request, $model, $column, $dateColumn = null)\n {\n return $this->aggregate($request, $model, Trend::BY_HOURS, 'max', $column, $dateColumn);\n }", "public static function latestMeasurement($where) {\n if (is_numeric($where)) $where = [ 'station_id' => $where ];\n if (is_object($where)) $where = [ 'station_id' => $where->{static::primaryKey()} ];\n foreach ($where as $key => $value) $wheres[] = '`' . $key . '` = ?';\n return Database::query('SELECT * FROM `measurements` WHERE ' . implode(' AND ', $wheres) . ' ORDER BY `created_at` DESC LIMIT 1', ...array_values($where));\n }", "public function getDateDernJMens() {\n return $this->dateDernJMens;\n }", "public function max($type, $column, IFilterable $filter) {\n return Functions::retype($this->_dataHandler->aggregate('MAX', $column, $this->_table, $filter->resultFilter()), $type);\n }", "protected function get_mes()\n {\n $date = DB::SELECT(\"SELECT TO_CHAR(CURRENT_DATE,'MONTH') AS mes;\");\n foreach($date as $fecha)\n {\n $mes = $fecha->mes;\n }\n return $mes; \n }", "public function filterPublishDate(int $year, ?int $month): self;", "public static function getMax($model)\n { \n $sql=\"SELECT hasil,by_user from $model ORDER BY CONVERT(hasil, UNSIGNED INTEGER) DESC LIMIT 1\";\n $connection=Yii::app()->db; \n $command=$connection->createCommand($sql);\n $dataReader=$command->query(); // execute a query SQL\n $rows=$dataReader->readAll();\n return $rows; \n }", "public function filterByHergebruikMogelijkJanee($hergebruikMogelijkJanee = null, $comparison = null)\n {\n if (is_array($hergebruikMogelijkJanee)) {\n $useMinMax = false;\n if (isset($hergebruikMogelijkJanee['min'])) {\n $this->addUsingAlias(GsMedischeHulpmiddelenPeer::HERGEBRUIK_MOGELIJK_JANEE, $hergebruikMogelijkJanee['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($hergebruikMogelijkJanee['max'])) {\n $this->addUsingAlias(GsMedischeHulpmiddelenPeer::HERGEBRUIK_MOGELIJK_JANEE, $hergebruikMogelijkJanee['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(GsMedischeHulpmiddelenPeer::HERGEBRUIK_MOGELIJK_JANEE, $hergebruikMogelijkJanee, $comparison);\n }", "public function obtener_reservas_mensuales($fecha) //EXCELL\n {\n\n $q_string = \"select fecha, sala, modulo, id_a, nombre_a, carrera_a from reservas where month(fecha) = month('\".$fecha.\"') and eliminada ='0' and estado ='1' group by fecha\";\n\t\t//select fecha, sala, modulo, id_a, nombre_a, carrera_a\n\t\t//from reservas\n\t\t//where month(fecha) = '06' and eliminada ='0' and estado ='1'\n\t\t//group by fecha\n\t \t $data = $this->db->query($q_string);\n\t\t return $data;\n }", "function get_month_to_search() {\n global $DB;\n $sql = \"SELECT date AS fecha FROM {report_user_statistics};\";\n $dates = $DB->get_records_sql($sql);\n $result = array();\n foreach ($dates as $date) {\n $fecha = new DateTime(\"@$date->fecha\");\n $result[$fecha->format('m')] = month_converter($fecha->format('m'));\n }\n return $result;\n}", "function getListPSDuMois($id_emp=null,$empSigle,$dateDebut,$dateFin){\n global $dbHandler;\n $db = $dbHandler->openConnection();\n\n $date_debut = php2pg($dateDebut);\n $date_fin = php2pg($dateFin);\n\n if ($empSigle != 'SOD'){\n $sql = \"SELECT '000000000'||SUBSTRING(b.sigle FROM 1 FOR 3)||rpad(a.matricule,7,' ') AS col1_value,' *FZY90 ' AS col2_value,'0' AS col3_value,' 75E' AS col4_value, '+'||'00000000001' AS col5_value, ' AM' AS col6_value, ' +000000000000' AS col7_value, ' X+'||REPLACE(TO_CHAR(COALESCE(ag.val_nominale_part_sociale,0), '99999999'), ' ', '0')||'000' AS col8_value, ' +000000000000' AS col9_value, ' 00 1' AS col10_value\nFROM ad_cli a\nINNER JOIN adsys_employeur b ON a.pp_partenaire = b.id\nINNER JOIN ad_cpt c ON a.id_client = c.id_titulaire\nINNER JOIN ad_agc ag ON ag.id_ag = a.id_ag\nWHERE c.etat_cpte = 1 AND c.id_prod = 1 AND DATE(a.date_adh) BETWEEN DATE('$date_debut') AND DATE('$date_fin')\";\n }\n else{\n $sql = \"SELECT '000000000'||SUBSTRING(b.sigle FROM 1 FOR 3)||rpad(a.matricule,7,' ') AS col1_value, ' *FZYEL ' AS col2_value, '0001680C'||REPLACE(TO_CHAR(row_number() over (), '999999'),' ','0')||DATE('$date_debut')||DATE('$date_fin') AS col3_value, ' M +000000000000 +'||REPLACE(TO_CHAR(COALESCE(ag.val_nominale_part_sociale,0), '99999999'), ' ', '0')||'000 +000000000000 00 ' AS col4_value\nFROM ad_cli a\nINNER JOIN adsys_employeur b ON a.pp_partenaire = b.id\nINNER JOIN ad_cpt c ON a.id_client = c.id_titulaire\nINNER JOIN ad_agc ag ON ag.id_ag = a.id_ag\nWHERE c.etat_cpte = 1 AND c.id_prod = 1 AND DATE(a.date_adh) BETWEEN DATE('$date_debut') AND DATE('$date_fin')\";\n }\n if ($id_emp != null){\n $sql .= \" AND b.id = \".$id_emp;\n }\n $result = $db->query($sql);\n\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n Signalerreur(__FILE__,__LINE__,__FUNCTION__,_(\"DB\").\": \".$result->getMessage());\n }\n\n $listPS = array();\n $count = 0;\n $nombreCols = $result->numCols();\n\n while ($row = $result->fetchrow(DB_FETCHMODE_ASSOC)){\n $count ++;\n $listPS[$count]=$row;\n }\n $listPS['nbrCols'] = $nombreCols;\n\n $dbHandler->closeConnection(true);\n return $listPS;\n}", "public function getMaxFeedDate()\r\n\t\t{\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$query = \" SELECT max(date_given)\r\n\t\t\t\t\t\t\tFROM feed_transaction\";\r\n\t\t\t\t$result = mysqli_query($link, $query);\r\n\t\t\t\t$f = array();\r\n\t\t\t\t$f_arr = array();\r\n\t\t\t\twhile($row = mysqli_fetch_row($result)){\r\n\t\t\t\t\t$f['fdate'] = $row[0];\r\n\t\t\t\t\t$f_arr[] = $f;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\treturn $f_arr;\r\n\t\t\t\t\r\n\t\t}", "public function scopeMonth($query,$filters){\n if($month = $filters['month']){\n $query->whereMonth('created_at', Carbon::parse($month)->month);\n }\n\n if($year = $filters['year']){\n $query->whereYear('created_at',$year);\n }\n\n }", "public function maxByWeeks($request, $model, $column, $dateColumn = null)\n {\n return $this->aggregate($request, $model, Trend::BY_WEEKS, 'max', $column, $dateColumn);\n }", "public function maxDate()\n {\n $qb = $this->createQueryBuilder('h')->select('h')->orderBy('h.date', 'DESC')->setMaxResults(1);\n /** @var AbstractHistory $last */\n $last = $qb->getQuery()->getOneOrNullResult();\n\n if (is_null($last)) {\n return;\n }\n\n return $last->getDate();\n }", "public static function GetProdutosMaisVendidos($mes, $ano){\n if (($mes == \"9999\") && ($ano == \"9999\")){\n self::$results = self::query(\"SELECT nomeProduto, sum(qtProduto) FROM tbControle as con INNER JOIN tbProduto as pro on con.cdProduto = pro.cdProduto GROUP BY nomeProduto ORDER BY sum(qtProduto) DESC LIMIT 5\");\n } else {\n self::$results = self::query(\"SELECT nomeProduto, sum(qtProduto) FROM tbControle as con INNER JOIN tbProduto as pro on con.cdProduto = pro.cdProduto INNER JOIN tbComanda as comanda on con.cdComanda = comanda.cdComanda WHERE MONTH(dtComanda) = 06 and YEAR(dtComanda) = 2018 GROUP BY nomeProduto ORDER BY sum(qtProduto) DESC LIMIT 5\");\n }\n \n \n self::$resultRetorno = [];\n if (is_array(self::$results) || is_object(self::$results)){\n foreach(self::$results as $result){\n array_push(self::$resultRetorno, $result);\n }\n }\n return self::$resultRetorno;\n }", "public function showLastByDateForLastCategory()//pokazuje wszystkie fotki sprzed miesiaca\n {\n $con = $this->connectDb();\n //pokazuje fotki ze wszystkich kategorii\n $q = $con->query(\"SELECT * FROM `photos` LEFT JOIN `category` ON photos.`category` = category.`c_id` WHERE category.`c_visibility` = '1' AND photos.`p_visibility` = '1' AND DATE(photos.`add_data`) > DATE_SUB(CURRENT_DATE, INTERVAL \".$this->interval.\") ORDER BY photos.`p_id` \".$this->order.\" \");/*zwraca false jesli tablica nie istnieje*/\n $q = $q->fetchAll(PDO::FETCH_ASSOC);\n return $q;\n\t}", "function reportScriptedDatePerMonth($ReportCondition = '1')\r\n{\r\n return reportPerDBColoumn('CaseInfo', \"DATE_FORMAT(ScriptedDate, '%y-%m')\", $ReportCondition . \" AND ScriptedDate <> ''\", '', 'ScriptedDate ASC');\r\n}", "function reportActivatedBugsPerMonth($ReportCondition = '1')\r\n{\r\n global $_CFG;\r\n $TablePrefix = $_CFG['DB']['TablePrefix'];\r\n\r\n $ReportCondition .= \" AND {$TablePrefix}BugInfo.BugID = {$TablePrefix}TestAction.IdValue AND {$TablePrefix}TestAction.ActionTarget='Bug' AND ActionType='Activated'\";\r\n return reportPerDBColoumn('BugInfo,TestAction', \"DATE_FORMAT(ActionDate, '%y-%m')\", $ReportCondition, '', 'ActionDate ASC');\r\n}", "function getDatosNota_max()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nota_max'));\n $oDatosCampo->setEtiqueta(_(\"nota max\"));\n return $oDatosCampo;\n }", "function getDatosNota_max()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nota_max'));\n $oDatosCampo->setEtiqueta(_(\"nota max\"));\n return $oDatosCampo;\n }", "public function getFileFilterByDate($conn, $date){\n\t\t//preparo lo statement che mi ricava tutte le informazioni \n\t\t$sth = $conn->prepare(\"select * from Filmato_Presentazione where data_inizio >= :data_inizio or data_fine >= :data_fine limit 1\");\n\t\t$sth->bindParam(':data_inizio', $date, PDO::PARAM_STR);\n\t\t$sth->bindParam(':data_fine', $date, PDO::PARAM_STR);\n\t\t$sth->execute();\n\t\treturn $sth; \n\t}", "public function filterByEafDate($eafDate = null, $comparison = null)\n\t{\n\t\tif (is_array($eafDate)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($eafDate['min'])) {\n\t\t\t\t$this->addUsingAlias(EafFormInfoPeer::EAF_DATE, $eafDate['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($eafDate['max'])) {\n\t\t\t\t$this->addUsingAlias(EafFormInfoPeer::EAF_DATE, $eafDate['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(EafFormInfoPeer::EAF_DATE, $eafDate, $comparison);\n\t}", "function _getMaxValues($unit, $dateFormat){ // unit = hour, minute, ...\n $res = null;\n if (($res = Cacher::getCache(\"MaxRain_ID_\".$this->sensId.\"_Unit_\".$unit.\"_Format_\".$dateFormat, 30)) == false ){\n $res = $this->connection->fetchQueryResultLine(\"SELECT to_char(ts, '\".$dateFormat.\"') as date, val FROM \".$this->table.\"_\".$unit.\" WHERE sens_id=\".$this->sensId.\" ORDER BY val DESC, ts DESC LIMIT 1\");\n Cacher::setCache(\"MaxRain_ID_\".$this->sensId.\"_Unit_\".$unit.\"_Format_\".$dateFormat, $res);\n }\n return $res;\n }", "public function filterByDateAdhesion($dateAdhesion = null, $comparison = null)\n\t{\n\t\tif (is_array($dateAdhesion)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($dateAdhesion['min'])) {\n\t\t\t\t$this->addUsingAlias(TblAdherentPeer::DATE_ADHESION, $dateAdhesion['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($dateAdhesion['max'])) {\n\t\t\t\t$this->addUsingAlias(TblAdherentPeer::DATE_ADHESION, $dateAdhesion['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(TblAdherentPeer::DATE_ADHESION, $dateAdhesion, $comparison);\n\t}", "public function filterByMensaje($mensaje = null, $comparison = null)\n {\n if (is_array($mensaje)) {\n $useMinMax = false;\n if (isset($mensaje['min'])) {\n $this->addUsingAlias(ColaboradorTableMap::COL_MENSAJE, $mensaje['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($mensaje['max'])) {\n $this->addUsingAlias(ColaboradorTableMap::COL_MENSAJE, $mensaje['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ColaboradorTableMap::COL_MENSAJE, $mensaje, $comparison);\n }", "private function joinDateMdsCheck($ba)\n {\n if ($ba['join_date_mds'] != null && $ba['join_date_mds'] != '0000-00-00') {\n return $this->readableDateFormat($ba['join_date_mds']);\n }\n return '';\n }", "function getFinMois($dateDuJour){\n global $dbHandler;\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT * FROM getfinmois(date('$dateDuJour'));\";\n $result = $db->query($sql);\n\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n Signalerreur(__FILE__,__LINE__,__FUNCTION__,_(\"DB\").\": \".$result->getMessage());\n }\n\n $date_row = $result->fetchrow(DB_FETCHMODE_ASSOC);\n\n $dbHandler->closeConnection(true);\n return $date_row['getfinmois'];\n}", "function getDateFilterSelectedDate() {\n $on = $this->getAdditionalProperty('date_filter_on');\n \n return $on ? new DateValue($on) : null;\n }", "public function max($field = 'id'){\n return $this->model->max($field);\n }", "public static function produtosAbaixoMinimo ($model)\n {\n return static::produtos($model, 'abaixoMinimo');\n }", "public function convert_quater_month($created_date){\n\t\tif(($created_date != '') && ($created_date != '0000-00-00')){\n\t\t\t$c_d = date('M', strtotime($created_date));\n\t\t\treturn $c_d;\n\t\t}\n\t}", "function isExceedCustomLimit($judge_id){\n\t$data = M('customevent');\n\tif((int)$judge_id>=1){\n\t\t$monthly_limit = 3;\n\n\t\t$year = substr(todayDate(),0,4);\n\t\t$month = substr(todayDate(),4,2);\n\t\t$current_month = $year.$month;\n\n\t\t$condition = Array('judge_id' => $judge_id, 'create_date' => Array('like', $current_month.'%'));\n\t\tif(count($data->where($condition)->select()) >= $monthly_limit && (int)lookupAdmin($judge_id) == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}\n}", "function get_month_min($date, $labels) {\n global $DB;\n\n $fechainicio = new DateTime(\"1-\".$date->month.\"-\".$date->year);\n $maxday = cal_days_in_month(CAL_GREGORIAN, $date->month, $date->year);\n $fechafin = new DateTime($maxday.\"-\".$date->month.\"-\".$date->year);\n $fechafin->setTime(23, 59, 59);\n $result = array();\n foreach ($labels as $label) {\n $result[] = 0;\n }\n\n $sql = \"SELECT id, connectedusers, date FROM {report_user_statistics} WHERE date >= ? AND date <= ? ORDER BY date;\";\n $todaslasconexiones = $DB->get_records_sql($sql, [$fechainicio->getTimestamp(), $fechafin->getTimestamp()]);\n $day = 0;\n $temp = array();\n $i = 1;\n foreach ($todaslasconexiones as $conexiones) {\n $fecha = new DateTime(\"@$conexiones->date\");\n if (($fecha->format('m') == $date->month) && ($fecha->format('Y') == $date->year)) {\n if ($day == 0) {\n $day = $fecha->format('d');\n $temp[] = $conexiones->connectedusers;\n } else if ($day == $fecha->format('d')) {\n $temp[] = $conexiones->connectedusers;\n } else if ($day < $fecha->format('d')) {\n foreach ($temp as $tempkey => $tempvalor) {\n if ($tempvalor == 0) {\n unset($temp[$tempkey]);\n }\n }\n $key = array_search($day, $labels);\n $result[$key] = min($temp);\n $temp = array();\n $day = $fecha->format('d');\n $temp[] = $conexiones->connectedusers;\n }\n if (count($todaslasconexiones) == $i) {\n foreach ($temp as $tempkey => $tempvalor) {\n if ($tempvalor == 0) {\n unset($temp[$tempkey]);\n }\n }\n $key = array_search($day, $labels);\n $result[$key] = min($temp);\n } else if (count($temp) > 1) {\n foreach ($temp as $tempkey => $tempvalor) {\n if ($tempvalor == 0) {\n unset($temp[$tempkey]);\n }\n }\n $key = array_search($day, $labels);\n $result[$key] = min($temp);\n }\n $i++;\n }\n }\n return $result;\n}", "public function getMaxDateProperty()\n {\n return Carbon::now()->subDay()->format('Y-m-d');\n }", "public function actionHistoriPresensiByNimAndDate($nim, $date){\n Yii::$app->response->format = Response::FORMAT_JSON;\n $response = null;\n\n if(Yii::$app->request->isGet){\n $sql = \"SELECT tb_presensi_detail.id_presensi, tb_presensi_detail.nim, DATE_FORMAT(tb_presensi_detail.waktu, '%d %b %Y %T') as waktu, tb_presensi_detail.status, \n tb_presensi.pertemuan, tb_ruangan.nama as nama_ruangan, tb_kelas.nama as nama_kelas, tb_matakuliah.nama as nama_matakuliah,\n tb_dosen.nama as nama_dosen FROM tb_presensi_detail \n INNER JOIN tb_presensi, tb_mengajar, tb_matakuliah, tb_dosen, tb_ruangan, tb_kelas \n WHERE tb_presensi_detail.id_presensi = tb_presensi.id_presensi \n AND tb_presensi.id_mengajar = tb_mengajar.id_mengajar \n AND tb_mengajar.id_matakuliah = tb_matakuliah.id_matakuliah \n AND tb_mengajar.nip = tb_dosen.nip \n AND tb_presensi.id_ruangan = tb_ruangan.id_ruangan\n AND tb_mengajar.id_kelas = tb_kelas.id_kelas\n AND tb_presensi_detail.nim = '$nim' \n AND date(tb_presensi_detail.waktu) = '$date'\";\n\n $response['master'] = Yii::$app->db->createCommand($sql)->queryAll();\n }\n\n return $response;\n }", "function this_month()\n{\n global $db; // golbalize db variable:\n $thisMonth = array(\n \"start\" => date('Y-m-d', strtotime('first day of this month', strtotime(date('Y-m-d')))),\n \"end\" => date('Y-m-d', strtotime('last day of this month', strtotime(date('Y-m-d'))))\n );\n $datesIds = $db->getMany(DATES, [\n 'date' => $thisMonth['start'],\n 'dates.date' => $thisMonth['end']\n ], ['id', 'date'], ['date' => '>=', 'dates.date' => '<=']);\n\n if ($db->count > 0) {\n return $datesIds;\n }\n}", "public function getMonthList() \n {\t\t\n $this->db->select(\"to_char(cm_date, 'mm') as cm_mm, to_char(cm_date, 'month') as cm_month\");\n $this->db->from(\"ims_hris.calendar_main\");\n $this->db->group_by(\"to_char(cm_date,'mm'), to_char(cm_date, 'month')\");\n $this->db->order_by(\"to_char(cm_date, 'mm')\");\n $q = $this->db->get();\n\t\t \n return $q->result_case('UPPER');\n }", "public function trie_par_note($date_ajout){\n $marque_page = [];\n if($date_ajout==0){\n $query = $this->db->prepare('SELECT date_a, date_m, description, id_utilisateur, note, somme, logo_choisi, id_marque_page, titre, url, createur,type_droit FROM ajoute_modifie, marque_page WHERE id_marque_page = id AND createur=1 AND type_droit = 1 ORDER BY note DESC');\n }else{\n $query = $this->db->prepare('SELECT date_a, date_m, description, id_utilisateur, note, somme, logo_choisi, id_marque_page, titre, url, createur,type_droit FROM ajoute_modifie, marque_page WHERE id_marque_page = id AND createur=1 AND type_droit = 1 AND date_a >= ( CURDATE() - INTERVAL '.$date_ajout.' DAY ) ORDER BY note DESC');\n }\n $query->execute();\n\n while ($donnees = $query->fetch(PDO::FETCH_ASSOC)){\n $marque_page[] = $donnees;\n }\n return $marque_page;\n }", "public static function data_last_month() {\n\t$month = date('m');\n\t$year = date('Y');\n\t$day = date(\"d\", mktime(0,0,0, $month+1, 0, $year));\n\n\treturn date('Y-m-d', mktime(0,0,0, $month, $day, $year));\n}", "protected function getMonths()\n {\n\t$year = $_REQUEST['year'] ;\n\tif( !$year )\n\t{\n\t print( \"Month query failed: no year has been specified\\n\" ) ;\n\t exit( 0 ) ;\n\t}\n\t$year = trim( $year ) ;\n\n\t// need to connect to the database here in order to run the\n\t// function mysql_real_escape_string\n\t$isconnected = $this->cedarconnect() ;\n\tif( $isconnected != \"good\" )\n\t{\n\t print( \"$isconnected\\n\" ) ;\n\t exit( 0 ) ;\n\t}\n\n\tif( $year )\n\t{\n\t $year = mysql_real_escape_string( $year ) ;\n\t}\n\n\t$params = $_REQUEST['params'] ;\n\tif( $params )\n\t{\n\t $params = trim( $params ) ;\n\t $params = mysql_real_escape_string( $params ) ;\n\t}\n\n\t$kinst = $_REQUEST['kinst'] ;\n\tif( $kinst )\n\t{\n\t $kinst = trim( $kinst ) ;\n\t $kinst = mysql_real_escape_string( $kinst ) ;\n\t}\n\n\t$query = \"SELECT DISTINCT d.MONTH\" ;\n\tif( $kinst && !$params )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif,\" ;\n\t $query .= \" tbl_file_info fi, tbl_record_type rt,\" ;\n\t $query .= \" tbl_record_info ri\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND dif.RECORD_IN_FILE_ID=fi.RECORD_IN_FILE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=rt.RECORD_TYPE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=ri.RECORD_TYPE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t $query .= \" AND rt.KINST=$kinst\" ;\n\t}\n\telse if( $params && !$kinst )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif,\" ;\n\t $query .= \" tbl_file_info fi, tbl_record_info ri\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND dif.RECORD_IN_FILE_ID=fi.RECORD_IN_FILE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=ri.RECORD_TYPE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t $query .= \" AND ri.PARAMETER_ID in ($params)\" ;\n\t}\n\telse if( $params && $kinst )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif,\" ;\n\t $query .= \" tbl_file_info fi, tbl_record_type rt,\" ;\n\t $query .= \" tbl_record_info ri\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND dif.RECORD_IN_FILE_ID=fi.RECORD_IN_FILE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=rt.RECORD_TYPE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=ri.RECORD_TYPE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t $query .= \" AND rt.KINST=$kinst\" ;\n\t $query .= \" AND ri.PARAMETER_ID in ($params)\" ;\n\t}\n\telse if( !$params && !$kinst )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t}\n\n\t$query .= \" ORDER BY d.MONTH ASC\" ;\n\t//print( \"$query\\n\" ) ;\n\n\t$result = parent::dbquery( $query ) ;\n\t$num_rows = mysql_num_rows( $result ) ;\n\tif( $num_rows != 0 )\n\t{\n\t while( $line = mysql_fetch_row( $result ) )\n\t {\n\t\tif( $line )\n\t\t{\n\t\t $colnum = 0 ;\n\t\t foreach( $line as $value )\n\t\t {\n\t\t\tif( $colnum > 0 ) echo \",\" ;\n\t\t\techo $value ;\n\t\t\t$colnum++ ;\n\t\t }\n\t\t echo \"\\n\" ;\n\t\t}\n\t }\n\t}\n\n\tparent::dbclose( $result ) ;\n }", "function last_month()\n{\n global $db; // golbalize db variable:\n $thisMonth = array(\n \"start\" => date('Y-m-d', strtotime('first day of last month', strtotime(date('Y-m-d')))),\n \"end\" => date('Y-m-d', strtotime('last day of last month', strtotime(date('Y-m-d'))))\n );\n $datesIds = $db->getMany(DATES, [\n 'date' => $thisMonth['start'],\n 'dates.date' => $thisMonth['end']\n ], ['id', 'date'], ['date' => '>=', 'dates.date' => '<=']);\n\n if ($db->count > 0) {\n return $datesIds;\n }\n}", "public function DateGreater($time) {\n $this->filter->Greater('udate', $time);\n }", "public function MostraAgendaPorMes ($Mes, $AnoAtual) {\n\t\t$this->db->where('mes_evento', $Mes);\n\t\t$this->db->where('ano_evento', $AnoAtual);\n\t\t$this->db->order_by('hora_evento', 'ASC');\n\t\treturn $this->db->get('evento')->result();\n\t}", "public function SelecionaTudo() {\n try {\n //Monta a Query\n $query = Doctrine_Query::create()\n ->select(\"ws.*, MONTHNAME(ws.data) mes, YEAR(ws.data) ano\")\n ->from($this->table_alias)\n ->orderBy(\"ws.data DESC\")\n ->offset(1)\n ->limit(6)\n ->execute()\n ->toArray();\n\n return $query;\n } catch (Doctrine_Exception $e) {\n echo $e->getMessage();\n }\n }", "public function getMax($field, $table, $where = null, $fieldview = null){\n\t\t// check field to display\n\t\tif( is_array($field) ){\n\t\t\tforeach ($table as $key => $val) {\n\t\t\t\t$dttable[] = $this->prefixTable( $val );\n\t\t\t}\n\t\t\t$field = implode(',', $dttable);\n\t\t}\n\n if(!empty($fieldview)){\n $this->db->select_max($field, $fieldview);\n $fieldview = $fieldview;\n } else {\n $this->db->select_max($field);\n $fieldview = $field;\n }\n\n if(!empty($where)){\n $this->db->where($where);\n }\n\n if( is_array($table) ){\n $dttable = array();\n foreach ($table as $key => $value) {\n $dttable[] = $this->prefixTable( $value );\n }\n $theTable = implode(',', $dttable);\n } else {\n $theTable = $this->prefixTable($table);\n }\n \n $latest = $this->db->get( $theTable )->row_array()[$fieldview];\n return $latest;\n }", "public function filterByDate(&$row)\n {\n $row[3] = Carbon::createFromFormat('j/n/Y', $row[3]);\n return $row[3] >= $this->today;\n }", "public function getLatest($column);", "public function get_max_inward_date()\n {\n $query = $this->db->query(\" SELECT MAX(created) as max_inward_date FROM store_inward \");\n $result = $query->row_array();\n\n if(!empty($result))\n {\n return $result['max_inward_date'];\n }\n else\n {\n return false;\n } \n }", "public function findWithoutArchive()\n {\n $nowmoins = date('y-m-d', strtotime('- 1 month'));\n $todayConvert = DateTime::createFromFormat(\"y-m-d\",$nowmoins,null);\n dump($todayConvert);\n\n $qb = $this->createQueryBuilder('s');\n $qb->andwhere('s.datedebut > :todayConvert')->setParameter('todayConvert',$todayConvert);\n $query = $qb->getQuery();\n return $query->getResult();\n\n }", "public function get_verjaardagen($limit = 3){\n $query = $this->db->query(\n \" SELECT id,naam, DATE_FORMAT(geboortedatum, '%d-%m-%Y') as geboortedatum, DATE_FORMAT(geboortedatum, '%Y') as geboortejaar\n FROM gebruikers \n WHERE DATE_FORMAT(geboortedatum, '%m%d') >= DATE_FORMAT(now(), '%m%d')\n ORDER BY DATE_FORMAT(geboortedatum, '%m%d') ASC\n LIMIT $limit\n \");\n $result = $query->result();\n return $result;\n }", "public function max($args=null,$model=null){\n\n if($this->model==null){\n $this->model=$model;\n }\n if(is_array($args) && array_key_exists(0,$args)){\n $this->max=$args[0];\n }\n else{\n $this->max=$args;\n }\n return $this->get();\n\n }", "public function obtener_fecha_minima_factura()\n {\n \t$query = $this->query_fecha_minima_factura();\n\n\t\tif($query)\n\t\t{\n\t\t\treturn formatear_respuesta($query, 'Fecha minima de factura', 200);\n\n\t\t}else{\n\n\t\t\treturn formatear_respuesta('No se pudo obtnener la fecha minima de factura', 404);\n\t\t}\n }", "public function filterByMonth($month = null, $comparison = null)\n {\n if (is_array($month)) {\n $useMinMax = false;\n if (isset($month['min'])) {\n $this->addUsingAlias(MigrationPeer::MONTH, $month['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($month['max'])) {\n $this->addUsingAlias(MigrationPeer::MONTH, $month['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(MigrationPeer::MONTH, $month, $comparison);\n }", "public function set_export_abs($mois,$annee,$maxday,$indisponibilites,$utilisateurs){\r\n $this->Session->delete('abs_date');\r\n $this->Session->write('abs_date',array($mois,$annee,$maxday));\r\n $this->Session->delete('abs_users');\r\n $this->Session->write('abs_users',$utilisateurs);\r\n $this->Session->delete('abs_abs');\r\n $this->Session->write('abs_abs',$indisponibilites);\r\n }", "public function getMaintainPlanByDate($dateFilter, $workCenterCode, $page, $display)\n\t{\n\t\t// Model\n\t\t$solar = new Qss_Model_Calendar_Solar();\n\t\t\n\t\t// Init\n\t\t$date = date_create($dateFilter);\n\t\t$day = $date->format('d');\n\t\t$month = $date->format('m');\n\t\t$monthNo = $solar->montnhNo[(int) $month];\n\t\t$wday = $date->format('w');\t\t\n\t\t$start = ceil(($page - 1) * $display);\n\t\t\n\t\t$sql = sprintf('\n\t\t\t\tSELECT\n\t\t\t\t\tbtdk.*, ifnull(btdk.BenNgoai, 0) AS BenNgoai,\n\t\t\t\t\tt.GiaTri AS GiaTriThu,\n\t\t\t\t\tk.MaKy\n\t\t\t\tFROM\n\t\t\t\t\tOBaoTriDinhKy AS btdk\n\t\t INNER JOIN OPhanLoaiBaoTri AS plbt on plbt.`IOID` = btdk.`Ref_LoaiBaoTri`\n\t\t INNER JOIN ODanhSachThietBi AS dstb ON dstb.`IOID` = btdk.`Ref_MaThietBi`\n INNER JOIN OKhuVuc as kv1 on kv1.IOID = dstb.Ref_MaKhuVuc\t\t \n\t\t\t\tLEFT JOIN OThu AS t ON t.IOID = btdk.Ref_Thu\n\t\t\t\tLEFT JOIN OKy AS k ON k.IOID = plbt.Ref_KyBaoDuong\n\t\t\t\t\n\t\t\t\tLEFT JOIN (\n\t\t\t\t\tSELECT\n\t\t\t\t\t\t*\n\t\t\t\t\tFROM\n\t\t\t\t\t\tOPhieuBaoTri\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tNgayYeuCau = %1$s \n\t\t\t\t) AS pbt ON pbt.Ref_MaThietBi = btdk.Ref_MaThietBi\n\t\t\t\tAND pbt.Ref_LoaiBaoTri = btdk.Ref_LoaiBaoTri\n AND ifnull(pbt.Ref_BoPhan, 0) = ifnull(btdk.Ref_BoPhan, 0)\n\t\t \n\t\t\t\tLEFT JOIN (\n\t\t\t\t\tSELECT kv3.IOID, lft,rgt \n\t\t\t\t\tFROM OKhuVuc AS kv3 \n\t\t\t\t\tWHERE kv3.NgungHoatDong = 1 \n\t\t\t\t) as khuvucngunghoatdong on kv1.lft >= khuvucngunghoatdong.lft \n\t\t\t\t\tand kv1.rgt <= khuvucngunghoatdong.rgt\t\t \n\t\t\t\tWHERE\n\t\t\t\t\tifnull(dstb.TrangThai, 0) not in (%9$s)\n\t\t\t\t\tAND IFNULL(plbt.DungTaoPhieu , 0) = 0\n\t\t\t\t\tAND khuvucngunghoatdong.IOID is null \t\t \n\t\t\t\tAND pbt.IOID IS NULL\n\t\t\t\tand (%1$s >= btdk.NgayBatDau or btdk.NgayBatDau is null or btdk.NgayBatDau = \\'\\')\n\t \tand (%1$s <= btdk.NgayKetThuc or btdk.NgayKetThuc is null or btdk.NgayKetThuc = \\'\\')\n\t\t\t\tAND (\n\t\t\t\t\t(k.MaKy = \\'D\\' and IFNULL(TIMESTAMPDIFF(DAY,btdk.NgayBatDau,%1$s)%%`LapLai`,0) = 0)\n\t\t\t\t\tOR (k.MaKy = \\'W\\' AND t.GiaTri = %2$d and IFNULL(TIMESTAMPDIFF(WEEK,btdk.NgayBatDau,%1$s)%%`LapLai`,0) = 0)\n\t\t\t\t\tOR (k.MaKy = \\'M\\' AND btdk.Ngay = %3$d and IFNULL(TIMESTAMPDIFF(MONTH,btdk.NgayBatDau,%1$s)%%`LapLai`,0) = 0)\n\t\t\t\t\tOR (\n\t\t\t\t\t\tk.MaKy = \\'Y\\'\n\t\t\t\t\t\tAND btdk.Ngay = %3$d\n\t\t\t\t\t\tAND Thang = %5$d and IFNULL(TIMESTAMPDIFF(YEAR,btdk.NgayBatDau,%1$s)%%`LapLai`,0) = 0\n\t\t\t\t\t)\n\t\t\t\t\t/*\n\t\t\t\t\tOR btdk.IFID_M724 IN (\n\t\t\t\t\t\tSELECT\n\t\t\t\t\t\t\tIFID_M724\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\tOBaoTriTheoNgay\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\tNgay = %1$s\n\t\t\t\t\t)\n\t\t\t\t\t*/\n\t\t\t\t)\n\t\t\t\tAND (\n\t\t\t\t\tifnull(btdk.Ref_DVBT, 0) = 0\n\t\t\t\t\tOR ifnull(btdk.DVBT, \\'\\') = %6$s \n\t\t\t\t)\n\t\t\t\tLIMIT %7$s, %8$s'\n\t\t\t\t, $this->_o_DB->quote($dateFilter)\n\t\t\t\t, $wday\n\t\t\t\t, $day\n\t\t\t\t, $monthNo\n\t\t\t\t, $month\n\t\t\t\t, $this->_o_DB->quote($workCenterCode)\n\t\t\t\t, $start\n\t\t\t\t, $display\n , implode(',',Qss_Lib_Extra_Const::$EQUIP_STATUS_STOP));\n\t\treturn $this->_o_DB->fetchAll($sql);\n\t}", "function work_data_emp($id)\n{\n// selecteaza datele platite deja din salarii\n $query = \"SELECT sum(salarii.prezent) AS lucratez, \n (DATE_FORMAT(LAST_DAY(data),'%d') - sum(salarii.prezent)) AS absent, \n sum(motiv) AS motivat, \n sum(suma) AS salarii, \n DATE_FORMAT(data, '%m') AS data\n FROM cozagro_db.salarii \n WHERE salarii.deleted = 0 AND salarii.id_angajat= $id\n GROUP BY MONTH(data)\";\n $result = Database::getInstance()->getConnection()->query($query);\n if (!$result) {\n die(\"Nu s-a reusit conexiunea la DB selectarea salariilor platite\" . Database::getInstance()->getConnection()->error);\n }\n $zile_lucrate = [];\n while ($x = $result->fetch_assoc()) {\n $zile_lucrate[$x['data']] = array(\"luc\" => $x['lucratez'], \"abs\" => $x['absent'], \"mot\" => $x['motivat'], \"sal\" => $x['salarii']);\n }\n $result->free_result();\n return $zile_lucrate;\n}", "public function setMinMaxDate($minDate = 'null', $maxDate = 'null') {\n \n if($minDate != 'null'){\n $this->_config_mapper(Array('minDate' => \"'\" . $minDate . \"'\")); \n }\n \n if($maxDate != 'null'){\n $this->_config_mapper(Array('maxDate' => \"'\" . $maxDate . \"'\")); \n }\n }", "public function get_transaction_by_month($date){\n $this->load->database();\n\n $query = $this->db->select('date,type,is_of,amount')\n ->get_where('tbl_transactions',array('left(date,7)' => $date));\n return $query->result_array();\n }" ]
[ "0.53664845", "0.4902595", "0.4895765", "0.48171052", "0.48142895", "0.4790387", "0.4750255", "0.47181535", "0.46908593", "0.46673393", "0.46537486", "0.45589516", "0.45520145", "0.4521064", "0.44943503", "0.4493331", "0.4482688", "0.44791892", "0.4469322", "0.44574177", "0.44240838", "0.43899155", "0.43835166", "0.43774462", "0.43723643", "0.43687555", "0.43682483", "0.43537277", "0.4338225", "0.43278477", "0.43254015", "0.43102494", "0.4306493", "0.43017834", "0.42859954", "0.42816895", "0.42392132", "0.42272928", "0.42234555", "0.4222352", "0.42157733", "0.42146385", "0.42141512", "0.42135745", "0.42100158", "0.4205599", "0.41946793", "0.41894746", "0.41839832", "0.4183952", "0.41835076", "0.41586995", "0.41559497", "0.41554648", "0.41536695", "0.41476548", "0.41459635", "0.41438308", "0.41269875", "0.4115066", "0.41136438", "0.41136438", "0.41046423", "0.4102945", "0.4093653", "0.40849108", "0.4079149", "0.4071875", "0.40627408", "0.40622842", "0.40565014", "0.40401593", "0.4040058", "0.40348172", "0.4031676", "0.40257576", "0.40238044", "0.4022978", "0.40191483", "0.4016522", "0.40119657", "0.4010499", "0.40021953", "0.39939785", "0.39915252", "0.39910528", "0.39906856", "0.39827678", "0.39813745", "0.39789203", "0.39737204", "0.39706516", "0.39699122", "0.396873", "0.39656547", "0.3965654", "0.39640337", "0.39567927", "0.3955769", "0.39487386" ]
0.57090414
0
Filter the query on the id_contact column Example usage: $query>filterByIDContact(1234); // WHERE id_contact = 1234 $query>filterByIDContact(array(12, 34)); // WHERE id_contact IN (12, 34) $query>filterByIDContact(array('min' => 12)); // WHERE id_contact > 12
public function filterByIDContact($iDContact = null, $comparison = null) { if (is_array($iDContact)) { $useMinMax = false; if (isset($iDContact['min'])) { $this->addUsingAlias(FPartenaireTableMap::COL_ID_CONTACT, $iDContact['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($iDContact['max'])) { $this->addUsingAlias(FPartenaireTableMap::COL_ID_CONTACT, $iDContact['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(FPartenaireTableMap::COL_ID_CONTACT, $iDContact, $comparison); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function customerContactsSL($filters, $custID){\n\t\t\t$sql = \"SELECT *\n\t\t\t\t\tFROM `customers_contacts`\n\t\t\t\t\tWHERE `id_customer` = '{$custID}'\";\n\t\t\treturn $this->asList($sql, 'id_contact');\n\t\t}", "public function filterByIdCustomer($idCustomer = null, $comparison = null)\n\t{\n\t\tif (is_array($idCustomer)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idCustomer['min'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_AddressPeer::ID_CUSTOMER, $idCustomer['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idCustomer['max'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_AddressPeer::ID_CUSTOMER, $idCustomer['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_AddressPeer::ID_CUSTOMER, $idCustomer, $comparison);\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id) && null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this->addUsingAlias(ContactPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(CardPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(CardPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(CardPeer::ID, $id, $comparison);\n }", "public function filterId(int $id): self;", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(SchoolPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(SchoolPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SchoolPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(SearchIndexPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(SearchIndexPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SearchIndexPeer::ID, $id, $comparison);\n }", "public function filterByServiceId($serviceId = null, $comparison = null)\n {\n if (is_array($serviceId)) {\n $useMinMax = false;\n if (isset($serviceId['min'])) {\n $this->addUsingAlias(ContactPeer::SERVICE_ID, $serviceId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($serviceId['max'])) {\n $this->addUsingAlias(ContactPeer::SERVICE_ID, $serviceId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ContactPeer::SERVICE_ID, $serviceId, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(ZipToCityPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(ZipToCityPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ZipToCityPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(ClientiTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(ClientiTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ClientiTableMap::COL_ID, $id, $comparison);\n }", "public function ByContactID($id)\n\t{\n\t\t$restraint = new DotCoreDALRestraint();\n\t\t$restraint->AddRestraint(\n\t\t\tnew DotCoreFieldRestraint($this->getFieldContactID(), $id));\n\n\t\treturn $this->Restraints($restraint);\n\t}", "public function filterByIdSupplier($idSupplier = null, $comparison = null)\n\t{\n\t\tif (is_array($idSupplier)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idSupplier['min'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_AddressPeer::ID_SUPPLIER, $idSupplier['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idSupplier['max'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_AddressPeer::ID_SUPPLIER, $idSupplier['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_AddressPeer::ID_SUPPLIER, $idSupplier, $comparison);\n\t}", "public function filterByIdCargo($idCargo = null, $comparison = null)\n\t{\n\t\tif (is_array($idCargo)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idCargo['min'])) {\n\t\t\t\t$this->addUsingAlias(PersonaPeer::ID_CARGO, $idCargo['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idCargo['max'])) {\n\t\t\t\t$this->addUsingAlias(PersonaPeer::ID_CARGO, $idCargo['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_CARGO, $idCargo, $comparison);\n\t}", "function getColumnFilter ( &$where = array(),\n $table,\n $column,\n $columnLogicOpr,\n $minOper,\n $minValue,\n $rangeLogicOper,\n $maxOper,\n $maxValue ) {\n if ( ($minOper != \"\" and $minValue != \"\") and ( $maxValue == \"\" )) {\n $where[] = \"$columnLogicOpr \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue\";\n }\n // Assign just the max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ( $minValue == \"\") ) {\n $where[] = \"$columnLogicOpr \". self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue\";\n }\n\t// Assign both min and max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ($minOper != \"\" and $minValue != \"\") ) {\n $where[] = \"$columnLogicOpr ( \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue $rangeLogicOper \".\n self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue )\";\n }\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(FreeShippingPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(FreeShippingPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FreeShippingPeer::ID, $id, $comparison);\n }", "public function filterByIdManufacturer($idManufacturer = null, $comparison = null)\n\t{\n\t\tif (is_array($idManufacturer)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idManufacturer['min'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_AddressPeer::ID_MANUFACTURER, $idManufacturer['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idManufacturer['max'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_AddressPeer::ID_MANUFACTURER, $idManufacturer['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_AddressPeer::ID_MANUFACTURER, $idManufacturer, $comparison);\n\t}", "public function filterByCustomerId($customerId = null, $comparison = null)\n {\n if (is_array($customerId)) {\n $useMinMax = false;\n if (isset($customerId['min'])) {\n $this->addUsingAlias(RemoteAppPeer::CUSTOMER_ID, $customerId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($customerId['max'])) {\n $this->addUsingAlias(RemoteAppPeer::CUSTOMER_ID, $customerId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(RemoteAppPeer::CUSTOMER_ID, $customerId, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n\t{\n\t\tif (is_array($id) && null === $comparison) {\n\t\t\t$comparison = Criteria::IN;\n\t\t}\n\t\treturn $this->addUsingAlias(Routes2011Peer::ID, $id, $comparison);\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(SocioTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(SocioTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SocioTableMap::COL_ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(UserPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(UserPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(UserPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(UserPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(UserPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(UserPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(AlumnoTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(AlumnoTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AlumnoTableMap::COL_ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(RemoteAppPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(RemoteAppPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(RemoteAppPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(TrabajosTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(TrabajosTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(TrabajosTableMap::COL_ID, $id, $comparison);\n }", "function createObjectFilter($opt) {\n\textract($opt);\n\n\t//make an array if we only have a singular column value\n\tif (is_array($object_filter)) $str = implode(\",\",$object_filter);\n\telse $str = $object_filter;\n\n\t$sql = \"SELECT id FROM docmgr.dm_object WHERE id IN (\".$str.\")\";\n\n\treturn $sql;\n\n}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(sfGuardUserPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(sfGuardUserPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(sfGuardUserPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(MateriaTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(MateriaTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(MateriaTableMap::COL_ID, $id, $comparison);\n }", "public function filterByIdPersona($idPersona = null, $comparison = null)\n\t{\n\t\tif (is_array($idPersona)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idPersona['min'])) {\n\t\t\t\t$this->addUsingAlias(MenuPersonaPeer::ID_PERSONA, $idPersona['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idPersona['max'])) {\n\t\t\t\t$this->addUsingAlias(MenuPersonaPeer::ID_PERSONA, $idPersona['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(MenuPersonaPeer::ID_PERSONA, $idPersona, $comparison);\n\t}", "public function filterUser(int $id): self;", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(MapTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(MapTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(MapTableMap::COL_ID, $id, $comparison);\n }", "private function byCustomer($filters, $id, $code, $modifier=NULL){\n\t\t\treturn $this->{\"{$code}List\"}($filters + array('id_customer' => array($id, '=')), $modifier);\n\t\t}", "public function getContactsByCompanyId($id)\n\t{\n\t\t$sql = $this->db->select()->from(array('c'=>'company_contacts'));\n\t\t\n\t\t$sql = $sql->where(array('c.company_id' => $id));\n\t\t$sql = $sql->join(array('u' => 'users'), 'u.id = c.creator', array('creator_first_name' => 'first_name', 'creator_last_name' => 'last_name'), 'left');\n\t\t\n\t\treturn $this->getRows($sql);\t\t\t\n\t}", "abstract protected function foreignIDFilter($id = null);", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(RemoteHistoryContaoPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(RemoteHistoryContaoPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(RemoteHistoryContaoPeer::ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(AutenticacaoTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(AutenticacaoTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AutenticacaoTableMap::COL_ID, $id, $comparison);\n }", "function get_contacts_by_company($id) {\n return get_view_data_where('org_contact_list', $id);\n}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(DegressifProductsTableMap::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(DegressifProductsTableMap::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(DegressifProductsTableMap::ID, $id, $comparison);\n }", "public function filterUser(int|UniqueId $id): self;", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "public function getAllMyContacts($id)\n {\n\n $query = $this->datatables\n ->select('\n ContactId,\n ReceiverId,\n SenderId,\n IF(ReceiverId = ' . $id . ',\n (SELECT first_name\n FROM users\n WHERE users.id = contacts_connectivity.SenderId),\n (SELECT first_name\n FROM users\n WHERE users.id = contacts_connectivity.ReceiverId)) AS FirstName,\n IF(ReceiverId = ' . $id . ',\n (SELECT email\n FROM users\n WHERE users.id = contacts_connectivity.SenderId),\n (SELECT email\n FROM users\n WHERE users.id = contacts_connectivity.ReceiverId)) AS SenderEmail,\n IF(ReceiverId = ' . $id . ',\n (SELECT phone\n FROM users\n WHERE users.id = contacts_connectivity.SenderId),\n (SELECT phone\n FROM users\n WHERE users.id = contacts_connectivity.ReceiverId)) AS SenderPhone,\n IF(ReceiverId = ' . $id . ',\n (SELECT company\n FROM users\n WHERE users.id = contacts_connectivity.SenderId),\n (SELECT company\n FROM users\n WHERE users.id = contacts_connectivity.ReceiverId)) AS SenderCompany,\n ModulesId,\n (SELECT ModuleName FROM modules WHERE ModuleId = contacts_connectivity.ModulesId) AS ModuledName,\n FROM_UNIXTIME(AddedDate, \"%m/%d/%Y\") AddedDate')\n ->from($this->_contactsConnectivity)\n ->where(\"(ReceiverId=$id OR SenderId=$id) AND isApproved = 1\")\n ->add_column('Edit', '<a href=\"' . base_url() . 'editcontact/$1\" target=\"_blank\"><i class=\"fa fa-pencil fa-fw\"></i></a>', 'ContactId')\n ->add_column('Delete', '<a onclick=\"ajaxRemoveFn($1, \\'deletecontact/$1\\')\" href=\"javascript:void(0)\"><i class=\"fa fa-trash-o fa-fw\"></i></a>', 'ContactId');\n $q = $this->datatables->generate();\n return $q;\n }", "public function filterByPathattributeid($pathattributeid = null, $comparison = null)\n\t{\n\t\tif (is_array($pathattributeid)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($pathattributeid['min'])) {\n\t\t\t\t$this->addUsingAlias(Routes2011Peer::PATHATTRIBUTEID, $pathattributeid['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($pathattributeid['max'])) {\n\t\t\t\t$this->addUsingAlias(Routes2011Peer::PATHATTRIBUTEID, $pathattributeid['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Routes2011Peer::PATHATTRIBUTEID, $pathattributeid, $comparison);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ContactPeer::ID, $key, Criteria::EQUAL);\n }", "function getContact($id) {\n\t\t$query = $this->createQuery();\n\t\t$query .= \"WHERE c2.id = $id\";\n\t\t$res = $this->database->getRow($query);\n\t\t\n\t\t// modify status\n\t\t$res[\"status\"] = $this->statusCaption($res[\"status\"]);\n\t\t\n\t\treturn $res;\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(FoodTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(FoodTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(FoodTableMap::COL_ID, $id, $comparison);\n }", "public function filterByContactRelatedById($contact, $comparison = null)\n {\n if ($contact instanceof Contact) {\n return $this\n ->addUsingAlias(ContactPeer::ID, $contact->getParentId(), $comparison);\n } elseif ($contact instanceof PropelObjectCollection) {\n return $this\n ->useContactRelatedByIdQuery()\n ->filterByPrimaryKeys($contact->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByContactRelatedById() only accepts arguments of type Contact or PropelCollection');\n }\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(AliHoldheadTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(AliHoldheadTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliHoldheadTableMap::COL_ID, $id, $comparison);\n }", "public function filterByIdSupplier($idSupplier = null, $comparison = null)\n\t{\n\t\tif (is_array($idSupplier)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idSupplier['min'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_ProductPeer::ID_SUPPLIER, $idSupplier['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idSupplier['max'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_ProductPeer::ID_SUPPLIER, $idSupplier['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_ProductPeer::ID_SUPPLIER, $idSupplier, $comparison);\n\t}", "function where($includeContactIDs = FALSE) {\n $this->getCriteria();\n\n $params = array();\n $where = \"contact_a.contact_type = 'Individual'\";\n $where .= \" AND contact_a.contact_sub_type like '%Pers_Medewerker%'\";\n\n//preferred_language\n if (array_key_exists (\"languages\",$this->formValues)) {\n $lang = implode (\"','\",array_keys($this->formValues[\"languages\"]));\n $where .= \" AND contact_a.preferred_language IN ('$lang')\";\n }\n $count = 1;\n $clause = array();\n\n foreach ($this->criteria as $section) {\n if (!$this->$section) continue;\n $t = array();\n \n foreach ($this->$section as $i) {\n $t [] = $this->column[$section] . \" LIKE '%\". $i .\"%'\";\n }\n $clause[] = \" ( \". implode(\" OR \",$t ). \" ) \";\n $params[$count] = array($this->$section, 'String');\n $count++;\n }\n\n/*\n $params[$count] = array($name, 'String');\n $clause[] = \"contact_a.household_name LIKE %{$count}\";\n $count++;\n*/\n if (!empty($clause)) {\n $where .= ' AND ' . implode(' AND ', $clause);\n }\n return $this->whereClause($where, $params);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(ClientStateTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(ClientStateTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ClientStateTableMap::COL_ID, $id, $comparison);\n }", "public function filterByCivilityId($civilityId = null, $comparison = null)\n {\n if (is_array($civilityId)) {\n $useMinMax = false;\n if (isset($civilityId['min'])) {\n $this->addUsingAlias(ContactPeer::CIVILITY_ID, $civilityId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($civilityId['max'])) {\n $this->addUsingAlias(ContactPeer::CIVILITY_ID, $civilityId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ContactPeer::CIVILITY_ID, $civilityId, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(EmployeeTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(EmployeeTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(EmployeeTableMap::COL_ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(EmployeeTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(EmployeeTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(EmployeeTableMap::COL_ID, $id, $comparison);\n }", "protected static function idToFilter($id)\n {\n return null;\n }", "public function filterByContacts($contacts, $comparison = null)\n {\n if ($contacts instanceof Contacts) {\n return $this\n ->addUsingAlias(ClientSitesPeer::CL_SITE_ID, $contacts->getClSiteId(), $comparison);\n } elseif ($contacts instanceof PropelObjectCollection) {\n return $this\n ->useContactsQuery()\n ->filterByPrimaryKeys($contacts->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByContacts() only accepts arguments of type Contacts or PropelCollection');\n }\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(RemAanvraagTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(RemAanvraagTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(RemAanvraagTableMap::COL_ID, $id, $comparison);\n }", "private static function _getFilter() {}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(MigrationPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(MigrationPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(MigrationPeer::ID, $id, $comparison);\n }", "function where($includeContactIDs = FALSE) {\n \n $withoutGroups = CRM_Utils_Array::value('without_groups',\n $this->_formValues\n );\n $whereWithoutGroups = '';\n if ($withoutGroups){\n $whereWithoutGroups = \"\n AND NOT EXISTS (\n SELECT 1 FROM\n civicrm_group_contact c2\n WHERE c2.contact_id = contact_a.id)\n AND NOT EXISTS (\n SELECT 1 FROM\n civicrm_group_contact_cache c3\n WHERE c3.contact_id = contact_a.id)\n \";\n }\n \n $withoutTags = CRM_Utils_Array::value('without_tags',\n $this->_formValues\n );\n $whereWithoutTags = '';\n if ($withoutTags) {\n $whereWithoutTags .= \"\n AND NOT EXISTS (\n SELECT 1 \n FROM civicrm_entity_tag c4 \n WHERE c4.entity_table = 'civicrm_contact' AND c4.entity_id = contact_a.id\n )\";\n }\n \n $where = \"\n contact_a.contact_type = 'Individual' \n AND contact_a.is_deleted = 0 \".$whereWithoutGroups.$whereWithoutTags;\n\n $params = array();\n return $this->whereClause($where, $params);\n }", "function seeOnFilter($seeFilter)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT * FROM inscriptions WHERE id_student = %s\",\n\t\t GetSQLValueString($seeFilter, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"id_insc\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function findContactBy(array $criteria);", "public function getContactListModalFilter(Request $request, $id)\n {\n // Get\n $data = $this->Service->getPaginationModalFilter($request, $id); \n $layoutData['userType'] = config(\"dashboard_constant.USER_TYPE\");\n $layoutData['userStatus'] = config(\"dashboard_constant.USER_STATUS\"); \n\n $layoutData['data'] = $data['data']; \n // pagination meta value\n $layoutData['meta'] = $data['meta'];\n // pagination links\n $layoutData['links'] = $data['links'];\n \n // Return collection of list as a reosurce\n\t\treturn response()->json($layoutData); \n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(PhotosPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(PhotosPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PhotosPeer::ID, $id, $comparison);\n }", "public function filterByXeroContactId($xeroContactId = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($xeroContactId)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $xeroContactId)) {\n $xeroContactId = str_replace('*', '%', $xeroContactId);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(sfGuardUserPeer::XERO_CONTACT_ID, $xeroContactId, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n\t{\n\t\tif (is_array($id)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($id['min'])) {\n\t\t\t\t$this->addUsingAlias(QuizPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($id['max'])) {\n\t\t\t\t$this->addUsingAlias(QuizPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(QuizPeer::ID, $id, $comparison);\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(StartgroupTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(StartgroupTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(StartgroupTableMap::COL_ID, $id, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(LyricTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(LyricTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(LyricTableMap::COL_ID, $id, $comparison);\n }", "public function filterByRouteid($routeid = null, $comparison = null)\n\t{\n\t\tif (is_array($routeid)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($routeid['min'])) {\n\t\t\t\t$this->addUsingAlias(Routes2011Peer::ROUTEID, $routeid['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($routeid['max'])) {\n\t\t\t\t$this->addUsingAlias(Routes2011Peer::ROUTEID, $routeid['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Routes2011Peer::ROUTEID, $routeid, $comparison);\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(AliGmbonusTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(AliGmbonusTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AliGmbonusTableMap::COL_ID, $id, $comparison);\n }", "public function filterByInfoId($infoId = null, $comparison = null)\n {\n if (is_array($infoId)) {\n $useMinMax = false;\n if (isset($infoId['min'])) {\n $this->addUsingAlias(CustomerTableMap::COL_INFO_ID, $infoId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($infoId['max'])) {\n $this->addUsingAlias(CustomerTableMap::COL_INFO_ID, $infoId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(CustomerTableMap::COL_INFO_ID, $infoId, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n\t{\n\t\tif (is_array($id)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($id['min'])) {\n\t\t\t\t$this->addUsingAlias(ClubMeetingsPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($id['max'])) {\n\t\t\t\t$this->addUsingAlias(ClubMeetingsPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(ClubMeetingsPeer::ID, $id, $comparison);\n\t}", "public function filterByCustomerId($customerId = null, $comparison = null)\n {\n if (is_array($customerId)) {\n $useMinMax = false;\n if (isset($customerId['min'])) {\n $this->addUsingAlias(CustomerTableMap::COL_CUSTOMER_ID, $customerId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($customerId['max'])) {\n $this->addUsingAlias(CustomerTableMap::COL_CUSTOMER_ID, $customerId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(CustomerTableMap::COL_CUSTOMER_ID, $customerId, $comparison);\n }", "public function filterByIdManufacturer($idManufacturer = null, $comparison = null)\n\t{\n\t\tif (is_array($idManufacturer)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idManufacturer['min'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_ProductPeer::ID_MANUFACTURER, $idManufacturer['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idManufacturer['max'])) {\n\t\t\t\t$this->addUsingAlias(Oops_Db_ProductPeer::ID_MANUFACTURER, $idManufacturer['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_ProductPeer::ID_MANUFACTURER, $idManufacturer, $comparison);\n\t}", "public function findContactById($id)\n {\n return $this->getContacts()->findContactById($id);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(PlanPeer::ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(PlanPeer::ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PlanPeer::ID, $id, $comparison);\n }", "public function getContacts($id) {\n\n $contacts = DB::table('contacts')\n ->select('contacts.*', 'social_contacts.*')\n ->join('social_contacts','contacts.id','=','social_contacts.id')\n ->where('social_contacts.id', '=', $id)\n ->first();\n\n return $contacts;\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(SuitsTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(SuitsTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SuitsTableMap::COL_ID, $id, $comparison);\n }", "function get_contacts_by_category($employeeID) {\r\n $db = Database::getDB();\r\n $query = 'SELECT * FROM contact\r\n WHERE contact.employeeID = :employeeID\r\n ORDER BY contactID';\r\n $statement = $db->prepare($query);\r\n $statement->bindValue(':employeeID', $employeeID);\r\n $statement->execute();\r\n $contact = $statement->fetchAll();\r\n $statement->closeCursor();\r\n return $contact;\r\n}", "public function filterByIdApiId($idApiId = null, $comparison = null)\n\t{\n\t\tif (is_array($idApiId)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($idApiId['min'])) {\n\t\t\t\t$this->addUsingAlias(InviteDetailPeer::ID_API_ID, $idApiId['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($idApiId['max'])) {\n\t\t\t\t$this->addUsingAlias(InviteDetailPeer::ID_API_ID, $idApiId['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(InviteDetailPeer::ID_API_ID, $idApiId, $comparison);\n\t}", "public function filterByClId($clId = null, $comparison = null)\n {\n if (is_array($clId)) {\n $useMinMax = false;\n if (isset($clId['min'])) {\n $this->addUsingAlias(ClientPrestationsPeer::CL_ID, $clId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($clId['max'])) {\n $this->addUsingAlias(ClientPrestationsPeer::CL_ID, $clId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ClientPrestationsPeer::CL_ID, $clId, $comparison);\n }", "function InfGetContactDetails($inf_contact_id) {\n $object_type = \"Contact\";\n $class_name = \"Infusionsoft_\" . $object_type;\n $object = new $class_name();\n $objects = Infusionsoft_DataService::query(new $class_name(), array('Id' => $inf_contact_id));\n\n $contact_array = array();\n foreach ($objects as $i => $object) {\n $contact_array[$i] = $object->toArray();\n }\n\treturn $contact_array[0];\n}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(MenuTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(MenuTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(MenuTableMap::COL_ID, $id, $comparison);\n }", "function get_primarybuyercontact($custID, $shiptoID = false, $debug = false) {\n\t\t$q = (new QueryBuilder())->table('custindex');\n\t\t$q->limit(1);\n\t\t$q->where('custid', $custID);\n\t\tif (!empty($shiptoID)) {\n\t\t\t$q->where('shiptoid', $shiptoID);\n\t\t}\n\t\t$q->where('buyingcontact', 'P');\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery($q->params);\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\t$sql->setFetchMode(PDO::FETCH_CLASS, 'Contact');\n\t\t\treturn $sql->fetch();\n\t\t}\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(ArticlesPropelTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(ArticlesPropelTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ArticlesPropelTableMap::COL_ID, $id, $comparison);\n }", "public function getFilter($id)\n {\n return parent::getFilter(strtolower($id));\n }", "public function whereId($id);", "public function filterByClId($clId = null, $comparison = null)\n {\n if (is_array($clId)) {\n $useMinMax = false;\n if (isset($clId['min'])) {\n $this->addUsingAlias(ClientSitesPeer::CL_ID, $clId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($clId['max'])) {\n $this->addUsingAlias(ClientSitesPeer::CL_ID, $clId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ClientSitesPeer::CL_ID, $clId, $comparison);\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(ProfessorTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(ProfessorTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ProfessorTableMap::COL_ID, $id, $comparison);\n }", "protected function create_where($id = '', $filter = []){\n $where = 'WHERE 1 = 1';\n if($id != ''){\n $where .= \" AND {$this->table_name}.id = $id\";\n }\n foreach($filter as $column => $expression){\n // make sure it is in our column list before we add it to the WHERE\n if(in_array($column, $this->column_list)){\n $where .= \" AND $column $expression\";\n }\n }\n return $where;\n }", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(BookTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(BookTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(BookTableMap::COL_ID, $id, $comparison);\n }", "public function filterByType($type = null, $comparison = null)\n {\n if (is_array($type)) {\n $useMinMax = false;\n if (isset($type['min'])) {\n $this->addUsingAlias(ContactPeer::TYPE, $type['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($type['max'])) {\n $this->addUsingAlias(ContactPeer::TYPE, $type['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ContactPeer::TYPE, $type, $comparison);\n }", "function get_customercontacts($custID, $loginID = '', $debug = false) {\n\t\t$loginID = (!empty($loginID)) ? $loginID : DplusWire::wire('user')->loginid;\n\t\t$user = LogmUser::load($loginID);\n\t\t$SHARED_ACCOUNTS = DplusWire::wire('config')->sharedaccounts;\n\n\t\t$q = (new QueryBuilder())->table('custindex');\n\n\t\tif ($user->get_dplusrole() == DplusWire::wire('config')->roles['sales-rep'] && DplusWire::wire('pages')->get('/config/')->restrict_allowedcustomers) {\n\t\t\t$custquery = (new QueryBuilder())->table('custperm')->where('custid', $custID);\n\t\t\t$permquery = (new QueryBuilder())->table($custquery, 'custpermcust');\n\t\t\t$permquery->field('custid, shiptoid');\n\t\t\t$permquery->where('loginid', [$loginID, $SHARED_ACCOUNTS]);\n\t\t\t$q->where('(custid, shiptoid)','in', $permquery);\n\t\t} else {\n\t\t\t$q->where('custid', $custID);\n\t\t}\n\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery($q->params);\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\t$sql->setFetchMode(PDO::FETCH_CLASS, 'Contact');\n\t\t\treturn $sql->fetchAll();\n\t\t}\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id)) {\n $useMinMax = false;\n if (isset($id['min'])) {\n $this->addUsingAlias(AbuthInvoicesTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($id['max'])) {\n $this->addUsingAlias(AbuthInvoicesTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(AbuthInvoicesTableMap::COL_ID, $id, $comparison);\n }", "public function findContactsBy(array $criteria);" ]
[ "0.59569854", "0.5794039", "0.572715", "0.56802535", "0.55793524", "0.55549866", "0.5431466", "0.53855306", "0.53632826", "0.5352048", "0.5304842", "0.52497417", "0.52341574", "0.51872474", "0.51688474", "0.5168229", "0.51607233", "0.51512164", "0.51450753", "0.5132014", "0.5132014", "0.5114834", "0.5093487", "0.50921893", "0.5071959", "0.5065324", "0.5057995", "0.5052899", "0.5050544", "0.5046098", "0.5045516", "0.50173366", "0.50014484", "0.5000699", "0.49985486", "0.49929726", "0.4987796", "0.4986698", "0.49695334", "0.495181", "0.4939938", "0.4936121", "0.49354586", "0.49299604", "0.4924066", "0.49106246", "0.49067068", "0.49019107", "0.48953924", "0.48758814", "0.4874279", "0.4874279", "0.48739517", "0.48676002", "0.48643595", "0.4858126", "0.48579592", "0.485556", "0.48512402", "0.48452732", "0.48452732", "0.48452732", "0.48452732", "0.48452732", "0.48452732", "0.48452732", "0.4844253", "0.484391", "0.4838098", "0.48355308", "0.48224965", "0.48214534", "0.48178294", "0.4806747", "0.4801858", "0.4795532", "0.47824678", "0.47786143", "0.47716656", "0.47712344", "0.4768968", "0.47684836", "0.47677583", "0.4767757", "0.4754051", "0.4753223", "0.4752805", "0.47497863", "0.47487706", "0.47439587", "0.4743067", "0.4742886", "0.47396025", "0.4736731", "0.47272927", "0.4721223", "0.47196558", "0.47129714", "0.47052297", "0.4702303" ]
0.60712636
0
Filter the query by a related \Partenaire object
public function filterByPartenaire($partenaire, $comparison = null) { if ($partenaire instanceof \Partenaire) { return $this ->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $partenaire->getID(), $comparison); } elseif ($partenaire instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $partenaire->toKeyValue('PrimaryKey', 'ID'), $comparison); } else { throw new PropelException('filterByPartenaire() only accepts arguments of type \Partenaire or Collection'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function partidas()\n {\n \treturn $this->hasMany('App\\Presupuesto_Partida', 'tPresupuesto_idPresupuesto', 'idPresupuesto');\n }", "public function relationshipFilter()\n\t{\n\t\tee()->load->add_package_path(PATH_ADDONS.'relationship');\n\t\tee()->load->library('EntryList');\n\t\tee()->output->send_ajax_response(ee()->entrylist->ajaxFilter());\n\t}", "public function filterByPartenairepiece($partenairepiece, $comparison = null)\n {\n if ($partenairepiece instanceof \\Partenairepiece) {\n return $this\n ->addUsingAlias(DocumentTableMap::COL_DATE_ENREG_FK, $partenairepiece->getDateenregistrement(), $comparison);\n } elseif ($partenairepiece instanceof ObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(DocumentTableMap::COL_DATE_ENREG_FK, $partenairepiece->toKeyValue('PrimaryKey', 'Dateenregistrement'), $comparison);\n } else {\n throw new PropelException('filterByPartenairepiece() only accepts arguments of type \\Partenairepiece or Collection');\n }\n }", "public function getFilteredDetails();", "public function searchPrzydzielanie()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\t\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t//$this->relations(array('not_in_hasDomains'=>array(self::HAS_MANY,'KlientHasDomains', 'domains_id', 'condition'=>'not_in_hasDomains.domains_id is not null')));\n\t\t $criteria->together = true;\n\t\t$criteria->with=array('przydzielenies', 'not_in_hasDomains'=>array(\tself::HAS_MANY,'KlientHasDomains', 'domains_id', \n\t\t\t\t'joinType' => 'INNER JOIN',\n\t\t\t\t//'on' => \"(not_in_hasDomains.domains_id is not null)\",\n\t\t\t\t'condition'=>'')\n\t\t );\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('name',$this->name);\n\t\t$criteria->compare('expiry_date',$this->expiry_date,true);\n\t\t$criteria->compare('registrar',$this->registrar,true);\n\t\t$criteria->compare('added_date',$this->added_date,true);\n\t\t$criteria->compare('client',$this->client,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->addBetweenCondition('expiry_date', $this->expiry_date_od, $this->expiry_date_do);\n\t\n\t\tif($this->przydzielone) {\n\t\t$criteria->addCondition('przydzielenies.domains_id is null');\n\t\t}\n\t\t\n\t\t//$criteria->addCondition('klients is null');\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria,\n\t\t\t\t'sort'=>array(\n\t\t\t\t\t\t'defaultOrder'=>array(\n\t\t\t\t\t\t\t\t'expiry_date'=>false\n\t\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'pagination'=>array(\n\t\t\t\t\t\t'pageSize'=>5,\n\t\t\t\t),\n\t\n\t\t));\n\t}", "public function filterByPartenaire($partenaire, $comparison = null)\n {\n if ($partenaire instanceof \\Partenaire) {\n return $this\n ->addUsingAlias(DocumentTableMap::COL_PART_ID_FK, $partenaire->getPartenaire(), $comparison);\n } elseif ($partenaire instanceof ObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(DocumentTableMap::COL_PART_ID_FK, $partenaire->toKeyValue('PrimaryKey', 'Partenaire'), $comparison);\n } else {\n throw new PropelException('filterByPartenaire() only accepts arguments of type \\Partenaire or Collection');\n }\n }", "public function filtering();", "abstract public function filterFields();", "protected abstract function filter();", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n if (count($data->relatorio_id) == 0)\n { \n TTransaction::open('bedevops');\n $conn = TTransaction::get();\n $result = $conn->query('SELECT * FROM relatorio WHERE user_id = '.TSession::getValue(\"userid\").' ORDER BY id DESC LIMIT 4');\n $objects = $result->fetchAll(PDO::FETCH_CLASS, \"stdClass\");\n foreach ($objects as $value) {\n array_push($data->relatorio_id,$value->id);\n }\n TTransaction::close();\n } \n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->categoria_id) AND ( (is_scalar($data->categoria_id) AND $data->categoria_id !== '') OR (is_array($data->categoria_id) AND (!empty($data->categoria_id)) )) )\n {\n\n $filters[] = new TFilter('categoria_id', '=', $data->categoria_id);// create the filter \n }\n\n if (count($data->relatorio_id) <= 4)\n {\n if (isset($data->relatorio_id) AND ( (is_scalar($data->relatorio_id) AND $data->relatorio_id !== '') OR (is_array($data->relatorio_id) AND (!empty($data->relatorio_id)) )) )\n {\n\n $filters[] = new TFilter('relatorio_id', 'in', $data->relatorio_id);// create the filter \n }\n } else {\n throw new Exception('Selecione no máximo 4 relatórios!');\n }\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n }", "abstract protected function foreignIDFilter($id = null);", "public function search($params)\n {\n $query = A2Liquidaciones::find();\n\n //$query->joinWith('operacionInmobiliaria',false, 'INNER JOIN');\n\n $query->joinWith(['operacionInmobiliaria' => function ($q) {\n $q->joinWith(['inmueble', 'cliente']);\n //$q->joinWith('cliente');\n }], false, 'INNER JOIN');\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'sin_vencer') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))<0\");\n }\n\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'por_vencer') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND DATEDIFF(NOW(),CONCAT(`a2_operaciones_inmobiliarias`.`hasta_anio`,'-',\n `a2_operaciones_inmobiliarias`.`hasta_mes`,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))>=-70\");\n }\n\n //VENCIDAS\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'vencidas') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND (DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))>0 AND \n DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))<=30) \");\n }\n\n //VENCIDAS MAS DE UN MES\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'vencidas_mas_mes') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))>30 \");\n }\n\n // add conditions that should always apply here\n if ($params['A2LiquidacionesSearch']['estado'] == 'ACTIVO') {\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'sort' => [\n 'defaultOrder' => [\n 'liq_anio' => SORT_DESC,\n 'liq_mes' => SORT_DESC,\n ]\n ],\n ]);\n } else {\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'sort' => [\n 'defaultOrder' => [\n 'fecha_pago' => SORT_DESC,\n ]\n ],\n ]);\n }\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n if (!empty($this->periodo)) {\n $arreglo_periodo = explode(\"/\", $this->periodo);\n $this->liq_mes = $arreglo_periodo[0];\n $this->liq_anio = $arreglo_periodo[1];\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id_liquidacion' => $this->id_liquidacion,\n 'id_operacion' => $this->id_operacion,\n 'liq_anio' => $this->liq_anio,\n 'liq_mes' => $this->liq_mes,\n 'fecha_pago' => $this->fecha_pago,\n 'monto_pagado' => $this->monto_pagado,\n 'monto_intereses' => $this->monto_intereses,\n 'timestamp' => $this->timestamp,\n ]);\n\n\n $query->andFilterWhere(['like', 'usuario', $this->usuario])\n ->andFilterWhere(['like', 'a2_liquidaciones.estado', $this->estado])\n ->andFilterWhere(['like', 'a2_noticias.direccion', $this->direccion])\n ->andFilterWhere(['like', 'a2_clientes.nombre', $this->cliente]);\n\n\n return $dataProvider;\n }", "protected function rawFilter($filter) {\n //Log::debug('query: ',$filter);\n\t\t// Build a query based on filter $filter\n\t\t$query = Pallet::query()\n ->select('Pallet.objectID', 'Pallet.Pallet_ID', 'Pallet.x', 'Pallet.y', 'Pallet.z', 'Pallet.Status')\n ->orderBy('Pallet_ID', 'asc');\n if(isset($filter['Pallet_ID']) && strlen($filter['Pallet_ID']) > 2) {\n $query->where('Pallet_ID', 'like', ltrim($filter['Pallet_ID'],'0') . '%');\n\t\t}\n\t\tif(isset($filter['Pallet_ID.prefix']) && is_array($filter['Pallet_ID.prefix'])) {\n $query->whereRaw(\"substring(Pallet_ID,1,3) in ('\".implode(\"','\", $filter['Pallet_ID.prefix']).\"')\");\n\t\t}\n if(isset($filter['Status']) && is_array($filter['Status'])) {\n $query->whereRaw(\"Status in ('\".implode(\"','\", $filter['Status']).\"')\");\n }\n elseif(isset($filter['Status']) && strlen($filter['Status']) > 3) {\n $query->where('Status', '=', $filter['Status']);\n }\n /*\n * container.parent should generate this sql request\n * select Pallet.* from Pallet join container plt on plt.objectID = Pallet.objectID where plt.parentID = 6213292055;\n */\n if(isset($filter['container.parent']) && strlen($filter['container.parent']) > 3) {\n $query\n ->join('container as plt', 'plt.objectID', '=', 'Pallet.objectID')\n ->where('plt.parentID',$filter['container.parent']);\n }\n /*\n * container.child should generate this sql request\n * select Pallet.* from Pallet join container gc on gc.parentID = Pallet.objectID where gc.objectID = 6226111054;\n */\n if(isset($filter['container.child']) && strlen($filter['container.child']) > 3) {\n $query\n ->join('container as gc', 'gc.parentID', '=', 'Pallet.objectID')\n ->where('gc.objectID',$filter['container.child']);\n }\n return $query;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PeliculaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ExpositorFeriaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ProveedormarcaPeer::IDPROVEEDORMARCA, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $key, Criteria::EQUAL);\n }", "function relatedProductsSearch($product_type_id, $product_id)\n\t\t\t\t{\n\t\t\t\t$sql= 'SELECT product. *\n\t\t\t\tFROM product\n\t\t\t\tWHERE product.product_type_id = '.$product_type_id.'\n\t\t\t\tAND product.product_id != '.$product_id.'\n\t\t\t\tORDER BY product.product_id DESC';\n\t\t\t\t\n\t\t\t\t$Q = $this-> db-> query($sql);\n\t\t\t\tforeach ($Q-> result_array() as $row){\n\t\t\t\t}\n\t\t\t\treturn $Q;\n\t\t\t\t}", "public function filterVisible(): self;", "public function filter();", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_PERSONA, $key, Criteria::EQUAL);\n\t}", "protected function filter(&$query)\n {\n if (!empty($this->filterModel)) {\n if (isset($this->filterModel->status_id)) {\n $query->andWhere(['status' => $this->filterModel->status_id]);\n }\n }\n }", "public function filtroProvincia($provincia){\n $path = '../python_scraper/ofertas_trabajo.json';\n $json = file_get_contents($path);\n $array = json_decode($json);\n\n $filtrado = array_filter($array, function($val) use ($provincia) { \n return $val -> localidad == $provincia;\n });\n\n return response() -> json($filtrado); \n }", "public function filtrarclientes(){\n\n $this->request->allowMethod(['get']);\n \n $keyword = $this->request->query('keyword');\n $activo = $this->request->query('activo');\n\n $condiciones = array();\n\n $condiciones['name like '] = '%'.$keyword.'%';\n\n if($activo){\n $condiciones['borrado = '] = false;\n }\n \n $query = $this->Clientes->find('all', [\n 'conditions' => $condiciones,\n 'order' => [\n 'Clientes.id' => 'ASC'\n ],\n 'limit' => 100\n ]);\n\n $clientes = $this->paginate($query);\n $this->set(compact('clientes'));\n $this->set('_serialize', 'clientes');\n }", "public function whereComplex()\n {\n return $this->addComplexCondition('and', $this->conditions);\n }", "public function searchById()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->condition= \"pesificacionId=:id AND eliminado=:eliminado\";\n\t\t$criteria->params = array(':id'=>$this->id, 'eliminado'=>false);\n\t\t$dataProvider = new CActiveDataProvider(new DetallePesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t\t$dataProvider->setPagination(false);\n\t\treturn $dataProvider;\n\t}", "public function whereRelatedTo($field, $className, $objectId) {\n\t$this->parseQuery->whereRelatedTo($field, $className, $objectId);\n }", "public function searchpareto()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('codalm',$this->codalm,true);\n\t\t$criteria->compare('creadopor',$this->creadopor,true);\n\t\t$criteria->compare('creadoel',$this->creadoel,true);\n\t\t$criteria->compare('modificadopor',$this->modificadopor,true);\n\t\t$criteria->compare('modificadoel',$this->modificadoel,true);\n\t\t$criteria->compare('fechainicio',$this->fechainicio,true);\n\t\t$criteria->compare('fechafin',$this->fechafin,true);\n\t\t$criteria->compare('periodocontable',$this->periodocontable,true);\n\t\t$criteria->compare('codresponsable',$this->codresponsable,true);\n\t\t//$criteria->compare('codart',$this->codart,true);\n\t\t$criteria->compare('codcen',$this->codcen,true);\n\t\t$criteria->compare('um',$this->um,true);\n\t\t$criteria->compare('cantlibre',$this->cantlibre);\n\t\t$criteria->compare('descripcion',$this->descripcion,TRUE);\n\t\t$criteria->compare('canttran',$this->canttran);\n\t\t$criteria->compare('cantres',$this->cantres);\n\t\t$criteria->compare('ubicacion',$this->ubicacion,true);\n\t\t$criteria->compare('lote',$this->lote,true);\n\t\t$criteria->compare('siid',$this->siid,true);\n\t\t$criteria->compare('ssiduser',$this->ssiduser,true);\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->addcondition('cantlibre > 0');\n\n\t\t// $criteria->addCondition(\"cantlibre > 0 or cantres >0 or canttran > 0\");\n\t\tif(isset($_SESSION['sesion_Maestrocompo'])) {\n\t\t\t$criteria->addInCondition('codart', $_SESSION['sesion_Maestrocompo'], 'AND');\n\t\t} ELSE {\n\t\t\t$criteria->compare('codart',$this->codart,true);\n\t\t}\n\t\t//$criteria->addSearchCondition('descripcion',$this->descripcion,FALSE,'and','LIKE');\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => 1000,\n\t\t\t),\n\t\t));\n\t}", "public function getItemsBy($params = false)\n {\n $query = $this->model->query();\n\n /*== RELATIONSHIPS ==*/\n if (in_array('*', $params->include)) {//If Request all relationships\n $query->with([]);\n } else {//Especific relationships\n $includeDefault = [];//Default relationships\n if (isset($params->include))//merge relations with default relationships\n $includeDefault = array_merge($includeDefault, $params->include);\n $query->with($includeDefault);//Add Relationships to query\n }\n\n /*== FILTERS ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;//Short filter\n\n //Filter by date\n if (isset($filter->date)) {\n $date = $filter->date;//Short filter date\n $date->field = $date->field ?? 'created_at';\n if (isset($date->from))//From a date\n $query->whereDate($date->field, '>=', $date->from);\n if (isset($date->to))//to a date\n $query->whereDate($date->field, '<=', $date->to);\n }\n\n //Order by\n if (isset($filter->order)) {\n $orderByField = $filter->order->field ?? 'position';//Default field\n $orderWay = $filter->order->way ?? 'desc';//Default way\n $query->orderBy($orderByField, $orderWay);//Add order to query\n }\n\n // Filter By Menu\n if (isset($filter->menu)) {\n $query->where('menu_id', $filter->menu);\n }\n\n //add filter by search\n if (isset($filter->search)) {\n //find search in columns\n $query->where(function ($query) use ($filter) {\n $query->whereHas('translations', function ($query) use ($filter) {\n $query->where('locale', $filter->locale)\n ->where('title', 'like', '%' . $filter->search . '%');\n })->orWhere('id', 'like', '%' . $filter->search . '%')\n ->orWhere('updated_at', 'like', '%' . $filter->search . '%')\n ->orWhere('created_at', 'like', '%' . $filter->search . '%');\n });\n }\n\n }\n\n /*== FIELDS ==*/\n if (isset($params->fields) && count($params->fields))\n $query->select($params->fields);\n\n /*== REQUEST ==*/\n if (isset($params->page) && $params->page) {\n return $query->paginate($params->take);\n } else {\n $params->take ? $query->take($params->take) : false;//Take\n return $query->get();\n }\n }", "function accesrestreint_articles_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('NOT IN','$primary','('.sql_get_select('zzza.id_article','spip_articles as zzza',\".accesrestreint_rubriques_accessibles_where('zzza.id_rubrique','',$_publique).\",'','','','',\\$connect).')')\";\r\n\t#return array('SUBSELECT','id_article','spip_articles',array(\".accesrestreint_rubriques_accessibles_where('id_rubrique').\")))\";\r\n}", "public function search($params,$filtros)\n {\n $query = FdTanquesAlmacenaApscom::find()->alias('a');\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n \n $query->leftJoin('fd_opcion_select b', 'medicion_entrada = b.id_opcion_select');\n $query->leftJoin('fd_opcion_select c', 'material = c.id_opcion_select');\n $query->leftJoin('fd_opcion_select d', 'frecuencia_mantenimiento = d.id_opcion_select');\n $query->leftJoin('fd_opcion_select e', 'estado_tanque = e.id_opcion_select');\n $query->leftJoin('fd_opcion_select f', 'problemas = f.id_opcion_select');\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id_tanquesalmacena' => $this->id_tanquesalmacena,\n 'capacidad_tanque' => $this->capacidad_tanque,\n 'medicion_entrada' => $this->medicion_entrada,\n //'material' => $this->material,\n //'frecuencia_mantenimiento' => $this->frecuencia_mantenimiento,\n //'estado_tanque' => $this->estado_tanque,\n //'problemas' => $this->problemas,\n 'id_conjunto_respuesta' => $this->id_conjunto_respuesta,\n 'id_junta' => $this->id_junta,\n 'id_pregunta' => $this->id_pregunta,\n 'id_respuesta' => $this->id_respuesta,\n 'id_capitulo' => $this->id_capitulo,\n ]);\n $query->andFilterWhere(['like', 'a.especifique', $this->especifique]) \n ->andFilterWhere(['like', 'b.nom_opcion_select', $this->medicion_entrada])\n ->andFilterWhere(['like', 'c.nom_opcion_select', $this->material])\n ->andFilterWhere(['like', 'd.nom_opcion_select', $this->frecuencia_mantenimiento])\n ->andFilterWhere(['like', 'e.nom_opcion_select', $this->estado_tanque])\n ->andFilterWhere(['like', 'f.nom_opcion_select', $this->problemas]);\n \n $query->andFilterWhere([ \n 'id_conjunto_respuesta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_conjunto_respuesta'],\n 'id_pregunta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_pregunta'],\n 'id_respuesta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_respuesta'], \n 'id_junta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_junta'], \n ]);\n\n\n return $dataProvider;\n }", "public function search2()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_periodo',20);\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('folio',$this->folio);\n\t\t$criteria->compare('fecha_ing',$this->fecha_ing,true);\n\t\t$criteria->compare('factura',$this->factura,true);\n\t\t$criteria->compare('importe',$this->importe);\n\t\t$criteria->compare('numerocheque',$this->numerocheque);\n\t\t$criteria->compare('partida',$this->partida);\n\t\t$criteria->compare('fecha_contrarecibo',$this->fecha_contrarecibo,true);\n\t\t$criteria->compare('no_contrarecibo',$this->no_contrarecibo,true);\n\t\t$criteria->compare('detalle',$this->detalle,true);\n\t\t$criteria->compare('id_proveedor',$this->id_proveedor);\n\t\t$criteria->compare('clasif',$this->clasif);\n\t\t$criteria->compare('tipo_docto',$this->tipo_docto);\n\t\t$criteria->compare('id_periodo',20);\n\t\t\n\t\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public static function listaQuery()\n {\n $query = self::find();\n\n if (!Yii::$app->user->isGuest) {\n $query->andWhere(['propietario_id' => Yii::$app->user->id]);\n }\n\n return $query;\n }", "public function filterVentaContext($filterChain)\r\n {\r\n //request variables, since we allow both types for our actions\r\n \r\n $Venta_Id=null;\r\n if (isset($_GET['pid']))\r\n $Venta_Id=$_GET['pid'];\r\n else\r\n if (isset ($_POST['pid']))\r\n $Venta_Id=$_POST['pid'];\r\n \r\n $this->loadVenta($Venta_Id);\r\n \r\n //complete the running of other filters and execute the requested action\r\n $filterChain->run();\r\n\r\n }", "public function index()\n {\n\n\n $parametro = 13;// departamentos // bolivar\n $muni=1; // cartagena\n $id=1; // empresa \n /*\n $valores= empresa::with(['departamento'=>function($query) use ($parametro){ \n if($subconsulta=$parametro){ \n $query->where('departamento_id','=',$subconsulta);\n } \n },\n 'municipio'=>function($query) use ($muni){ \n if($conMun=$muni){\n $parametro=13;\n $query->where('municipio_id','=',$muni)->where('fk_departamento_id','=',$parametro);\n }\n },\n ])->where('empresa_id','=',$id)->orderBy('empresa_id')->get();\n */\n //dd($valores);\n\n $empresa= new empresa();\n $dataEmpresa= $empresa->getEmpresas();\n //dd($dataEmpresa);\n return view('parametrizacion.empresa.index',compact('dataEmpresa'));\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ProductoPeer::ID_PRODUCTO, $key, Criteria::EQUAL);\n\t}", "public function filter() {\r\n\t\t$this->resource->filter();\r\n\t}", "public function filter($fields)\n {\n }", "public function filterPromoted(): self;", "public function pesquisarInfra($objetor) {\n \n $dataHoje = date(\"Y-m-d\");\n $sql = \"\n SELECT \n r.idReserva,\n t.nome AS turmaNome,\n s.predio,\n s.andar,\n s.numero,\n r.data,\n r.hora\n FROM \n reservas r\n INNER JOIN\n pessoas p\n ON\n p.idPessoa = r.idPessoa\n INNER JOIN\n turmas t\n ON\n t.idTurma = r.idTurma\n INNER JOIN\n salas s\n ON\n s.idSala = r.idSala\n WHERE\n r.idPessoa = '$objetor->idPessoa' and\n r.status = '0' and\n r.data < '$dataHoje'\n \n \";\n $query = $this->query->setQuery($sql);\n return $query;\n }", "public function onExtbaseQueryFilter(ModifyQueryBeforeFetchingObjectDataEvent $e): void\n {\n $query = $e->getQuery();\n $source = $query->getSource();\n if (! $source instanceof Selector) {\n return;\n }\n \n if (! $this->visibilityAspect->includeHiddenOfTable($source->getSelectorName())) {\n return;\n }\n \n $settings = $query->getQuerySettings();\n $settings->setIgnoreEnableFields(true);\n $settings->setEnableFieldsToBeIgnored(['disabled']);\n }", "public function relatedProducts (){\n #reviews...\n $product= Product::with('reviews')\n ->whereIndumentariaId($this->indumentaria->id)\n ->where('id', '!=', $this->id)\n ->where('status', Product::PUBLISHED)\n ->latest()\n ->limit(6)\n ->get();\n return $product;\n }", "public function searchProfessionals($pCriteria){\n\t\t// \t-> get();\n\n\t// \t return $this -> professional -> join('pros_specs', 'professionals.ID', '=', 'pros_specs.professionalID')\n\t// \t\t -> join('specializations', 'specializations.ID', '=', 'pros_specs.specializationID')\n\t// \t\t-> join('pros_creativefields', 'professionals.ID', '=', 'pros_creativefields.ProfessionalID')\n\t// \t\t-> join('creativefields', 'pros_creativefields.CreativeFieldID', '=', 'creativefields.ID')\n\t// \t\t-> join('pros_platforms', 'professionals.ID', '=', 'pros_platforms.ProfessionalID')\n\t// \t\t-> join('platforms', 'platforms.ID', '=', 'pros_platforms.PlatformID')\n\t// \t\t-> join('cities', 'professionals.CityID', '=', 'Cities.ID')\n\t// \t\t-> where('CompanyName', 'LIKE', '%' . $pCriteria['pCompanyName'] . '%')\n\t// \t\t-> whereIn('specializations.ID', $pCriteria['pSpecializations'])\n\t// \t\t-> whereIn('creativefields.ID', $pCriteria['pCreativeFields'])\n\t// \t\t-> whereIn('platforms.ID', $pCriteria['pPlatforms'])\n\t// \t\t-> whereIn('cities.ID', $pCriteria['pCities']) \n\t// \t\t-> groupBy('professionals.ID')\n\t// \t\t-> distinct() -> get();\n\t// }\n\n\t\t$searchQuery = $this -> professional -> queryJoiningTables();\n\n\t\tif(!is_null($pCriteria['pCompanyName'])){\n\t\t\t$searchQuery = $searchQuery -> queryCompanyName($pCriteria['pCompanyName']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pSpecializations'])){\n\t\t\t$searchQuery = $searchQuery -> querySpecializations($pCriteria['pSpecializations']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCreativeFields'])){\n\t\t\t$searchQuery = $searchQuery -> queryCreativeFields($pCriteria['pCreativeFields']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pPlatforms'])){\n\t\t\t$searchQuery = $searchQuery -> queryPlatforms($pCriteria['pPlatforms']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCities'])){\n\t\t\t$searchQuery = $searchQuery -> queryCities($pCriteria['pCities']);\n\t\t}\n\n\n\n\t\treturn $searchQuery -> groupBy('professionals.ID') \n\t\t\t-> distinct() -> get(array('Professionals.*'));\n\t}", "function accesrestreint_syndic_articles_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('NOT IN','$primary','('.sql_get_select('zzzs.id_syndic','spip_syndic as zzzs',\".accesrestreint_rubriques_accessibles_where('zzzs.id_rubrique','',$_publique).\",'','','','',\\$connect).')')\";\r\n\t#return \"array('IN','$primary',array('SUBSELECT','id_syndic','spip_syndic',array(\".accesrestreint_rubriques_accessibles_where('id_rubrique').\")))\";\r\n}", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "public function scopePart($query)\n\t{\n\t\treturn $query->where('type', 'part');\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $key, Criteria::EQUAL);\n\t}", "public static function filter($table, $fields){ \r\n $queryType = \"filter\";\r\n include '../helper/retrieve_data.php'; //query and data rertrieval are handled here\r\n return $querySet;\r\n }", "public function pesquisar($objeto) {\n\n $linhas = \" and 1=1 and \";\n if( $objeto->dataInicial != \"\" and $objeto->dataFinal != \"\" ){\n $linhas .= \"r.data BETWEEN '\" .$this->query->dateEua($objeto->dataInicial).\"'\";\n $linhas .= \" and '\" .$this->query->dateEua($objeto->dataFinal).\"'\";\n $linhas .= \" and \";\n }\n \n if( $objeto->hora != \"\" ){\n $linhas .= \"r.hora = '\".$objeto->hora.\"'\";\n $linhas .= \" and \";\n }\n \n if( $objeto->pesquisa != \"\" ){\n $linhas .= \"r.idTurma like '%\".$objeto->pesquisa.\"%'\";\n $linhas .= \" or \";\n $linhas .= \"r.idSala like '%\".$objeto->pesquisa.\"%'\";\n $linhas .= \" or \";\n $linhas .= \"r.obs like '%\".$objeto->pesquisa.\"%'\";\n $linhas .= \" and \";\n }\n \n $linhas .= \" r.status = 0 \";\n \n $sql = \"\n SELECT \n r.idReserva,\n t.nome AS turmaNome,\n s.predio,\n s.andar,\n s.numero,\n r.data,\n r.hora,\n d.nome AS DisciplinaNome,\n c.nome AS cursoNome,\n r.obs\n FROM \n reservas r\n INNER JOIN\n pessoas p\n ON\n p.idPessoa = r.idPessoa\n INNER JOIN\n turmas t\n ON\n t.idTurma = r.idTurma\n INNER JOIN\n salas s\n ON\n s.idSala = r.idSala\n INNER JOIN\n disciplinas d\n ON\n d.idDisciplina = t.idDisciplina\n INNER JOIN\n cursos c\n ON\n c.idCurso = d.idCurso\n WHERE\n r.idPessoa = '$objeto->idPessoa'\n $linhas\n \";\n\n \n\n $query = $this->query->setQuery($sql);\n return $query;\n }", "function accesrestreint_documents_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('IN','$primary','('.sql_get_select('zzz.id_document','spip_documents_liens as zzz',\r\n\tarray(array('OR',\r\n\t\tarray('OR',\r\n\t\t\tarray('AND','zzz.objet=\\'rubrique\\'',\".accesrestreint_rubriques_accessibles_where('zzz.id_objet','NOT',$_publique).\"),\r\n\t\t\tarray('AND','zzz.objet=\\'article\\'',\".accesrestreint_articles_accessibles_where('zzz.id_objet',$_publique).\")\r\n\t\t),\r\n\t\t\tarray('AND','zzz.objet=\\'breve\\'',\".accesrestreint_breves_accessibles_where('zzz.id_objet',$_publique).\")\r\n\t))\"\r\n\t.\",'','','','',\\$connect).')')\";\r\n\t/*return \"array('IN','$primary',array('SUBSELECT','id_document','spip_documents_liens',\r\n\tarray(array('OR',\r\n\t\tarray('OR',\r\n\t\t\tarray('AND','objet=\\'rubrique\\'',\".accesrestreint_rubriques_accessibles_where('id_objet').\"),\r\n\t\t\tarray('AND','objet=\\'article\\'',\".accesrestreint_articles_accessibles_where('id_objet').\")\r\n\t\t),\r\n\t\t\tarray('AND','objet=\\'breve\\'',\".accesrestreint_breves_accessibles_where('id_objet').\")\r\n\t))\r\n\t))\";*/\r\n}", "public function a3(){\n $artikels=Artikel::where('id',34)->WhereHas('user',function (Builder $qquery){\n $qquery->where('name','Aslijan Megantara');\n })->with('user')->get();\n return $artikels;\n }", "public function part()\n {\n return $this->belongsTo(Part::class);\n }", "public function search_open_activ($params, $pe)\n {\n $this->load($params);\n\n// ddd($pe);\n\n $query = mts_crm::find()\n ->select([\n 'id',\n 'id_ap',\n 'id_pe',\n 'mts_id',\n 'sprwhelement_ap.name',\n 'sprwhelement_pe.name',\n 'sprwhelement_mts.name',\n 'dt_create_timestamp',\n 'dt_update_timestamp', ///\n\n 'job_fin',\n 'job_fin_timestamp',\n 'zakaz_fin',\n 'zakaz_fin_timestamp',\n ])\n ->with('sprwhelement_mts', 'sprwhelement_ap', 'sprwhelement_pe')\n ->where(['AND',\n ['<>', 'job_fin', (int)1],\n ['==', 'id_pe', (int)$pe]\n ]\n );\n\n //ddd($query);\n\n\n $dataProvider = new ActiveDataProvider(\n [\n 'query' => $query,\n 'pagination' => ['pageSize' => 10],\n ]\n );\n\n\n if (!$this->validate()) {\n return $dataProvider;\n }\n\n\n $now_time = strtotime('now');\n $now_start_day = strtotime('today');\n $now_end_day = strtotime('today +24 hours');\n\n\n if (isset($params['posttz']['three'])) {\n\n if (isset($params['posttz']['three']) && $params['posttz']['three'] == 1) { //Просрочено\n $query\n //->andFilterWhere( [ '<=', 'dt_deadline', $now_end_day ] );\n ->andFilterWhere(['<=', 'dt_deadline_timestamp', (int)$now_end_day]);\n\n } elseif (isset($params['posttz']['three']) && $params['posttz']['three'] == 2) { /// Сегодня\n $query\n ->andFilterWhere(['>=', 'dt_deadline_timestamp', (int)$now_start_day])\n ->andFilterWhere(['<=', 'dt_deadline_timestamp', (int)$now_end_day]);\n\n } elseif (isset($params['posttz']['three']) && $params['posttz']['three'] == 3) { // Еще зеленое\n $query->andFilterWhere(['>=', 'dt_deadline_timestamp', (int)$now_time]);\n }\n\n }\n\n\n /// ID\n if (isset($this->id) && $this->id > 0) {\n $query->andFilterWhere(['=', 'id', (int)$this->id]);\n }\n\n\n return $dataProvider;\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $key, Criteria::EQUAL);\n }", "function accesrestreint_rubriques_accessibles_where($primary,$not='NOT', $_publique=''){\r\n\tif (!$_publique) $_publique = \"!test_espace_prive()\";\r\n\treturn \"sql_in('$primary', accesrestreint_liste_rubriques_exclues($_publique), '$not')\";\r\n}", "public function filterByPrimaryKey($key)\n\t{\n\t\t$this->addUsingAlias(PedidoProductoPeer::PEDIDO_ID, $key[0], Criteria::EQUAL);\n\t\t$this->addUsingAlias(PedidoProductoPeer::PRODUCTO_ID, $key[1], Criteria::EQUAL);\n\n\t\treturn $this;\n\t}", "public function search($params)\n {\n \n $query = Party::find();\n\n // $query->joinWith(['payments']);\n\n $dataProvider = new \\yii\\data\\ActiveDataProvider([\n 'query' => $query,\n 'sort'=> ['defaultOrder' => ['id' => SORT_DESC]]\n ]);\n\n $this->load($params);\n\n if(!$this->validate()){\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n // 'phone' => $this->phone,\n 'pincode' => $this->pincode, \n 'status' => $this->status,\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at\n ]);\n \n $query->andFilterWhere(['like','name', $this->name])\n ->andFilterWhere(['like','contact_name',$this->contact_name])\n ->andFilterWhere(['like','phone',$this->phone])\n ->andFilterWhere(['like','email',$this->email])\n ->andFilterWhere(['like','street_address', $this->street_address])\n ->andFilterWhere(['like','city', $this->city])\n ->andFilterWhere(['like','location', $this->location])\n ->andFilterWhere(['like','state', $this->state])\n ->andFilterWhere(['like','gst', $this->gst]);\n\n $operator = 'like';\n $comparator = $this->due;\n // because https://stackoverflow.com/a/7091714/3690154\n // var_dump($this->due_condition); die;\n if(isset($this->due_condition) && strlen($this->due_condition) > 0){\n \n $queryString = $this->due_condition;\n switch($queryString){\n case strpos($queryString,'>') === 0:\n $operator = '>'; $comparator = 0;break;\n case strpos($queryString,'<') === 0:\n $operator = '<'; $comparator = 0;break;\n case strpos($queryString,'=') === 0:\n $operator = '='; $comparator = 0;break;\n default:\n $operator = 'like'; $comparator = $this->due; break;\n }\n }\n // var_dump($comparator); die;\n $query->andFilterWhere([$operator, 'due', $comparator]);\n return $dataProvider;\n }", "function LocalidadFilter( $Filter )\n {\n if( !empty($Filter->Loc) ) \n {\n $Loc = $Filter->Loc;\n return 'AND pLoc=\"'.$Loc.'\" ';\n }\n \n if( isset( $Filter->Prov ) ) \n return 'AND pProv='.$Filter->Prov.' ';\n\n return ''; \n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->exemplar_id) AND ( (is_scalar($data->exemplar_id) AND $data->exemplar_id !== '') OR (is_array($data->exemplar_id) AND (!empty($data->exemplar_id)) )) )\n {\n\n $filters[] = new TFilter('exemplar_id', '=', $data->exemplar_id);// create the filter \n }\n\n if (isset($data->leitor_id) AND ( (is_scalar($data->leitor_id) AND $data->leitor_id !== '') OR (is_array($data->leitor_id) AND (!empty($data->leitor_id)) )) )\n {\n\n $filters[] = new TFilter('leitor_id', '=', $data->leitor_id);// create the filter \n }\n\n if (isset($data->dt_emprestimo) AND ( (is_scalar($data->dt_emprestimo) AND $data->dt_emprestimo !== '') OR (is_array($data->dt_emprestimo) AND (!empty($data->dt_emprestimo)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '>=', $data->dt_emprestimo);// create the filter \n }\n\n if (isset($data->dt_emprestimo_final) AND ( (is_scalar($data->dt_emprestimo_final) AND $data->dt_emprestimo_final !== '') OR (is_array($data->dt_emprestimo_final) AND (!empty($data->dt_emprestimo_final)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '<=', $data->dt_emprestimo_final);// create the filter \n }\n\n if (isset($data->dt_previsao) AND ( (is_scalar($data->dt_previsao) AND $data->dt_previsao !== '') OR (is_array($data->dt_previsao) AND (!empty($data->dt_previsao)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '>=', $data->dt_previsao);// create the filter \n }\n\n if (isset($data->dt_prevista_final) AND ( (is_scalar($data->dt_prevista_final) AND $data->dt_prevista_final !== '') OR (is_array($data->dt_prevista_final) AND (!empty($data->dt_prevista_final)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '<=', $data->dt_prevista_final);// create the filter \n }\n\n if (isset($data->dt_devolucao) AND ( (is_scalar($data->dt_devolucao) AND $data->dt_devolucao !== '') OR (is_array($data->dt_devolucao) AND (!empty($data->dt_devolucao)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '>=', $data->dt_devolucao);// create the filter \n }\n\n if (isset($data->dt_devolucao_final) AND ( (is_scalar($data->dt_devolucao_final) AND $data->dt_devolucao_final !== '') OR (is_array($data->dt_devolucao_final) AND (!empty($data->dt_devolucao_final)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '<=', $data->dt_devolucao_final);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }", "public function findByFilter($filter) {\n $query = $this->createQuery();\n //$query->getQuerySettings()->setRespectEnableFields(false);\n $query->getQuerySettings()->setEnableFieldsToBeIgnored(array());\n $query->getQuerySettings()->setIncludeDeleted(false);\n $query->getQuerySettings()->setRespectStoragePage(false);\n \n\n $constraints = array();\n if($filter->keyword) {\n $keywordConstraints = array();\n $keywordConstraints[] = $query->like('title', '%'.$filter->keyword.'%');\n $keywordConstraints[] = $query->like('abstract', '%'.$filter->keyword.'%');\n $keywordConstraints[] = $query->like('bodytext', '%'.$filter->keyword.'%');\n $constraints[] = $query->logicalOr($keywordConstraints);\n }\n if($filter->area) {\n $constraints[] = $query->contains('areas', $filter->area);\n }\n if($filter->industry) {\n $constraints[] = $query->contains('industries', $filter->industry);\n }\n if($filter->technology) {\n $constraints[] = $query->contains('technologies', $filter->technology);\n }\n if($filter->theme) {\n $constraints[] = $query->contains('themes', $filter->theme);\n }\n if($filter->year) {\n $minDate = mktime(0, 0, 0, 1, 1, $filter->year);\n $maxDate = mktime(23, 59, 59, 12, 31, $filter->year);\n $constraints[] = $query->greaterThanOrEqual('article_date', $minDate);\n $constraints[] = $query->lessThanOrEqual('article_date', $maxDate);\n }\n\n if(count($constraints)) {\n \n $query->matching(\n $query->logicalAnd($constraints)\n );\n \n \n \n//$queryParser = $this->objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser::class);\n//\\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL());\n//\n//\\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters());\n\n\n\n return $query->matching(\n $query->logicalAnd($constraints)\n )\n ->execute();\n \n }\n else {\n return $this->findAll();\n }\n }", "public function search($idPresupuesto)\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idItemPresupuesto',$this->idItemPresupuesto);\n\t\t$criteria->compare('idPresupuesto',$idPresupuesto);\n\t\t$criteria->compare('idStock',$this->idStock);\n\t\t$criteria->compare('precioVenta',$this->precioVenta);\n\t\t$criteria->compare('nombreStock',$this->nombreStock,true);\n\t\t$criteria->compare('cantidadItems',$this->cantidadItems);\n\t\t$criteria->compare('porcentajeIva',$this->porcentajeIva);\n\t\t\n\t\t$criteria->select = \"t.*\";\n\t\t\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function filter(Record $record);", "public function isFiltered() : bool;", "function accesrestreint_breves_accessibles_where($primary, $_publique=''){\r\n\t# hack : on utilise zzz pour eviter que l'optimiseur ne confonde avec un morceau de la requete principale\r\n\treturn \"array('NOT IN','$primary','('.sql_get_select('zzzb.id_breve','spip_breves as zzzb',\".accesrestreint_rubriques_accessibles_where('zzzb.id_rubrique','',$_publique).\",'','','','',\\$connect).')')\";\r\n\t#return \"array('IN','$primary',array('SUBSELECT','id_breve','spip_breves',array(\".accesrestreint_rubriques_accessibles_where('id_rubrique').\")))\";\r\n}", "public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('potonganpph21_id',$this->potonganpph21_id);\n\t\t$criteria->compare('penghasilandari',$this->penghasilandari);\n\t\t$criteria->compare('sampaidgn_thn',$this->sampaidgn_thn);\n\t\t$criteria->compare('persentarifpenghsl',$this->persentarifpenghsl);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }", "public function filterByPrimaryKey($key)\n {\n $this->addUsingAlias(GsGpkprkhpkWijzigingenPeer::GENERIEKEPRODUCTCODE, $key[0], Criteria::EQUAL);\n $this->addUsingAlias(GsGpkprkhpkWijzigingenPeer::PRKCODE, $key[1], Criteria::EQUAL);\n $this->addUsingAlias(GsGpkprkhpkWijzigingenPeer::HANDELSPRODUKTKODE, $key[2], Criteria::EQUAL);\n $this->addUsingAlias(GsGpkprkhpkWijzigingenPeer::DATUM_WIJZIGINGOPSPLITSING_OP_DDMMJJJJ, $key[3], Criteria::EQUAL);\n\n return $this;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(AnotacaoCasoPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RespuestaItemPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function search($params)\n {\n $query = Welfare::find()->where('find_in_set('.Yii::$app->user->identity->department.',`welfare_part_id`)');;\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => ['pageSize' => 20,]\n ]);\n\n $this->load($params);\n $dataProvider->setSort([\n 'attributes' => [\n []\n ],\n ]\n );\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'welfare_start_time' => $this->welfare_start_time,\n 'welfare_end_time' => $this->welfare_end_time,\n 'welfare_is_del' => 1,\n ]);\n\n $query->andFilterWhere(['like', 'welfare_name', $this->welfare_name])\n ->andFilterWhere(['like', 'welfare_type', $this->welfare_type])\n ->andFilterWhere(['like', 'welfare_part_id', $this->welfare_part_id])\n ->andFilterWhere(['like', 'welfare_part_name', $this->welfare_part_name])\n ->andFilterWhere(['like', 'welfare_detail', $this->welfare_detail])\n ->andFilterWhere(['between','welfare_start_time',$this->time_s,$this->time_e])\n ;\n\n return $dataProvider;\n }", "function searchfilter($query) {\n \n if ($query->is_search && !is_admin() ) {\n $query->set('post_type',array('post', 'product'));\n }\n \n return $query;\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('PART_correl',$this->PART_correl,true);\n\t\t$criteria->compare('PART_equCorrel',$this->PART_equCorrel,true);\n\t\t$criteria->compare('PART_parCorrel',$this->PART_parCorrel,true);\n\t\t$criteria->compare('PART_posicion',$this->PART_posicion,true);\n\t\t$criteria->compare('PART_goles',$this->PART_goles);\n\t\t$criteria->compare('PART_faltas',$this->PART_faltas);\n\t\t$criteria->compare('PART_tarjetaAmarilla',$this->PART_tarjetaAmarilla);\n\t\t$criteria->compare('PART_tarjetaRoja',$this->PART_tarjetaRoja);\n\t\t$criteria->compare('PART_tiroLibre',$this->PART_tiroLibre);\n\t\t$criteria->compare('PART_corner',$this->PART_corner);\n\t\t$criteria->compare('PART_penal',$this->PART_penal);\n\t\t$criteria->compare('PART_extranjero',$this->PART_extranjero);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function CleanFilter(){\n\t\t$this->_objectFilter = new Model_Aclusuariosonline();\n\t}", "public function getFilterPatient(Request $request)\n {\n $search='%'.$request->search.'%';\n $patient = Patient::leftJoin('triaje', 'paciente_id_paciente', '=','paciente.id_paciente')\n ->select('paciente.*' ,'triaje.fech_update')\n ->where('paciente.pac_name', 'like', $search)\n ->orderBy('id_paciente', 'desc')\n ->paginate(10);\n return $patient;\n }", "public function searchListeReformerAllAmort($params)\n {\n \n \t$query = Bien::find()->where(['statutbien'=>['reformer','reformertransf']]);\n \t$dataProvider = new ActiveDataProvider([\n \n \t\t\t'query' => $query,\n \t\t\t'pagination' => [\n \t\t\t'pageSize' => 20,\n \t\t\t],\n \t\t\t]);\n \n \t$this->load($params);\n \n \tif (!($this->load($params) && $this->validate())) {\n \t\t// uncomment the following line if you do not want to return any records when validation fails\n \t\t// $query->where('0=1');\n \t\t \n \t\treturn $dataProvider;\n \t}\n \n \t$query->andFilterWhere([\n \t\t\t'codebien' => $this->codebien,\n \t\t\t'codesousfamille' => $this->codesousfamille,\n \t\t\t'numfacture' => $this->numfacture,\n \t\t\t'numcmd' => $this->numcmd,\n \t\t\t'prixachat' => $this->prixachat,\n \t\t\t'tauxamort' => $this->tauxamort,\n \t\t\t'dureevie' => $this->dureevie,\n \t\t\t'poids' => $this->poids,\n \t\t\t'garantie' => $this->garantie,\n \t\t\t]);\n \n \t$query->andFilterWhere(['like', 'typebien', $this->typebien])\n \t->andFilterWhere(['like', 'designationbien', $this->designationbien])\n \t->andFilterWhere(['like', 'dateacquisition', $this->dateacquisition])\n \t->andFilterWhere(['like', 'statutbien', $this->statutbien])\n \t->andFilterWhere(['like', 'etatbien', $this->etatbien])\n \t->andFilterWhere(['like', 'typeamort', $this->typeamort])\n \t->andFilterWhere(['like', 'commentaire', $this->commentaire])\n \t->andFilterWhere(['like', 'datedebugarantie', $this->datedebugarantie])\n \t->andFilterWhere(['like', 'dateenr', $this->dateenr]);\n \t//->andFilterWhere(['LIKE', 'designationbureau', $this->bureau.designationbureau]);\n \n \treturn $dataProvider;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function getExcludeQueryPart() {}", "public function filtreparcoursAction(Request $request){\n $em = $this->getDoctrine()->getManager();\n $mentionId = $request->get('idMention');\n $parcours = $em->getRepository('AppBundle:Parcours')\n ->findParcoursByMention($mentionId)\n ;\n return $this->render('etats/filtre_parcours.html.twig', [\n 'parcours' => $parcours,\n \n ]);\n }", "public function exportWhere()\n\t{\n\t\t$keys_to_export = array(\n\t\t\t'id_food',\n\t\t\t'ingredients:id_ingredient',\n\t\t\t'tags:id_tag',\n\t\t\t'id_user',\n\t\t\t'is_finished',\n 'favourite_foods:id_user',\n\t\t);\n\t\t\n\t\treturn $this->exportSubset($keys_to_export);\n\t}", "public function filterByOrden($orden, $comparison = null)\n\t{\n\t\tif ($orden instanceof Orden) {\n\t\t\treturn $this\n\t\t\t\t->addUsingAlias(PersonaPeer::ID_PERSONA, $orden->getIdPersona(), $comparison);\n\t\t} elseif ($orden instanceof PropelCollection) {\n\t\t\treturn $this\n\t\t\t\t->useOrdenQuery()\n\t\t\t\t\t->filterByPrimaryKeys($orden->getPrimaryKeys())\n\t\t\t\t->endUse();\n\t\t} else {\n\t\t\tthrow new PropelException('filterByOrden() only accepts arguments of type Orden or PropelCollection');\n\t\t}\n\t}", "public function getItemsCriteria() {}", "public function getItemsCriteria() {}", "public function personas()\n {\n $parametros = Input::only('term');\n\n $acompaniantes = Acompaniantes::select('personas_id')->get();\n\n $data = Personas::with('municipios','localidades','derechohabientes', 'estados_embarazos')->whereNotIn('id', $acompaniantes)\n ->where(function($query) use ($parametros) {\n $query->where('id','LIKE',\"%\".$parametros['term'].\"%\");\n });\n\n $data = $data->get();\n return $this->respuestaVerTodo($data);\n }", "public function partialSearch() {\n\n $criteria=new CDbCriteria;\n $criteria->compare('t.nombre',$this->nombre, true, \"OR\");\n $criteria->compare('t.descripcion_corta',$this->descripcion_corta, true, \"OR\");\n $criteria->compare('t.descripcion_larga',$this->descripcion_larga, true, \"OR\");\n $criteria->compare('t.id_empresa',$this->id_empresa, false);\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "function findPourDefinitionPartie($definitionPartieId) {\n \n $queryTxt = 'SELECT * FROM DefinitionPartie_Pion\r\n WHERE DefinitionPartieId = :id';\r\n $query = self::$db->prepare($queryTxt);\r\n $query->bindValue(':id', $definitionPartieId);\n \r\n $query->setFetchMode(PDO::FETCH_ASSOC);\n $query->execute();\n $listeItems = array();\n // $query contient les id des pions a creer\n foreach($query as $row) {\n $unItem = $this->find(array($row['PionId']));\n if ($unItem <> null) {\n $listeItems[] = $unItem;\n }\n }\n return $listeItems;\n }", "public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('pembklaimdetal_id',$this->pembklaimdetal_id);\n\t\t$criteria->compare('pendaftaran_id',$this->pendaftaran_id);\n\t\t$criteria->compare('pasien_id',$this->pasien_id);\n\t\t$criteria->compare('pembayarklaim_id',$this->pembayarklaim_id);\n\t\t$criteria->compare('pembayaranpelayanan_id',$this->pembayaranpelayanan_id);\n\t\t$criteria->compare('tandabuktibayar_id',$this->tandabuktibayar_id);\n\t\t$criteria->compare('jmlpiutang',$this->jmlpiutang);\n\t\t$criteria->compare('jumlahbayar',$this->jumlahbayar);\n\t\t$criteria->compare('jmltelahbayar',$this->jmltelahbayar);\n\t\t$criteria->compare('jmlsisapiutang',$this->jmlsisapiutang);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }", "public function beforeFind(EventInterface $event, Query $query, ArrayObject $options, $primary)\n\t{\n // $query->iterateClause(function($val) {\n // if($val->getField()){\n // dump($val->getField());\n // }\n \n // }); \n //dd($conds);\n // dd($query->clause('where'));\n $model = $this->_table->getAlias();\n\t $query->where([$model.'.listing_id' => \\Cake\\Core\\Configure::read('LISTING_ID')]);\n\t}", "public function productosOtrosProveedores(){\n if(Auth::user()->bodegas == 'si'){\n if(Auth::user()->admin_bodegas == 'si')\n $userId = Auth::user()->id;\n else\n $userId = Auth::user()->userAdminId();\n\n //dd(DB::select(\"SELECT producto_id from productos_historial WHERE productos_historial.proveedor_id = \".$this->id));\n $data = ABHistorialCosto::select(\"producto_id\")->where(\"proveedor_id\",$this->id)->get();\n $ids = [];\n foreach($data as $d){\n $ids[] = $d->producto_id;\n }\n }else{\n $userId = Auth::user()->userAdminId();\n //dd(DB::select(\"SELECT producto_id from productos_historial WHERE productos_historial.proveedor_id = \".$this->id));\n $data = ProductoHistorial::select(\"productos_historial.producto_id\")->where(\"proveedor_id\",$this->id)->get();\n $ids = [];\n foreach($data as $d){\n $ids[] = $d->producto_id;\n }\n }\n\n\n if(Auth::user()->bodegas == 'si')\n return ABProducto::whereNotIn(\"productos.id\",$ids)\n ->where(\"productos.usuario_id\",$userId);\n else\n\n return Producto::whereNotIn(\"productos.id\",$ids)\n ->where(\"productos.usuario_id\",$userId);\n /**\n * SELECT * FROM `productos` where productos.id not in (SELECT producto_id from productos_historial WHERE productos_historial.proveedor_id = 1)\n */\n }", "public function filter($qb, $params)\n {\n return $qb;\n }", "public function searchConsultationCompte($params)\n {\n \n \t$query = Bien::find()->where(['statutbien'=>['areformer','transfere','en réparation','affecte']]);\n \t//\t$query->joinWith(['affecter' => function($query) { $query->from(['affecter' => 'bien']); }]);\n \t$dataProvider = new ActiveDataProvider([\n \n \t\t\t'query' => $query,\n \t\t\t'pagination' => [\n \t\t\t'pageSize' => 10,\n \t\t\t],\n \t\t\t]);\n \n \t$this->load($params);\n \n \tif (!($this->load($params) && $this->validate())) {\n \t\t// uncomment the following line if you do not want to return any records when validation fails\n \t\t// $query->where('0=1');\n \t\t \n \t\treturn $dataProvider;\n \t}\n \n \t$query->andFilterWhere([\n \t\t\t'codebien' => $this->codebien,\n \t\t\t'codesousfamille' => $this->codesousfamille,\n \t\t\t'numfacture' => $this->numfacture,\n \t\t\t'numcmd' => $this->numcmd,\n \t\t\t'prixachat' => $this->prixachat,\n \t\t\t'tauxamort' => $this->tauxamort,\n \t\t\t'dureevie' => $this->dureevie,\n \t\t\t'poids' => $this->poids,\n \t\t\t'garantie' => $this->garantie,\n \t\t\t]);\n \n \t$query->andFilterWhere(['like', 'typebien', $this->typebien])\n \t->andFilterWhere(['like', 'designationbien', $this->designationbien])\n \t->andFilterWhere(['like', 'dateacquisition', $this->dateacquisition])\n \t->andFilterWhere(['like', 'statutbien', $this->statutbien])\n \t->andFilterWhere(['like', 'etatbien', $this->etatbien])\n \t->andFilterWhere(['like', 'typeamort', $this->typeamort])\n \t->andFilterWhere(['like', 'commentaire', $this->commentaire])\n \t->andFilterWhere(['like', 'datedebugarantie', $this->datedebugarantie])\n \t->andFilterWhere(['like', 'dateenr', $this->dateenr]);\n \t//->andFilterWhere(['LIKE', 'designationbureau', $this->bureau.designationbureau]);\n \n \treturn $dataProvider;\n }", "function query() {\n $q = new EntityFieldQuery();\n $q->entityCondition('entity_type', 'commerce_product');\n $q->fieldCondition($this->options['flag_field'], 'value', 1);\n $results = $q->execute();\n\n $product_ids = array();\n foreach (reset($results) as $product) {\n $product_ids[] = (int)$product->product_id;\n }\n // Get the allowed products from the current user.\n $user_product_ids = array();\n $user = user_load($GLOBALS['user']->uid);\n if ($user->uid > 0) {\n // Fetch the ids from the current user.\n $products = field_get_items('user', $user, $this->options['user_authorized_products_field']);\n foreach ($products as $product) {\n $user_product_ids[] = (int)$product['target_id'];\n }\n }\n $exclude_ids = array_diff($product_ids, $user_product_ids);\n if (count($exclude_ids) > 0) {\n $this->query->add_where(2, $this->options['node_products_table'] . '.' . $this->options['node_products_column'], $exclude_ids, 'NOT IN');\n }\n }", "public function scopeSearch($query, $filter)\n {\n return $query->where('date', '=', $filter)\n // INNER JOIN dealers d on d.id=t.id_dealer\n ->join('dealers', 'tasks.id_dealer', '=', 'dealers.id') \n ;\n \n }", "public function hasOtherCriteria() {\n return $this->_has(9);\n }", "public function searchVacant($params)\r\n {\r\n $dzisiaj = date('Y-m-d', time());\r\n $query = Wizyty::find();\r\n \r\n // add conditions that should always apply here\r\n \r\n $query->select([\r\n 'data',\r\n 'godzina',\r\n 'id_stomatologa'\r\n ])\r\n ->where([\r\n '>=',\r\n 'data',\r\n $dzisiaj\r\n //'DATE(NOW())'\r\n ])\r\n ->andWhere([\r\n '=',\r\n 'id_pacjenta',\r\n 0\r\n ])\r\n ->orderBy([\r\n 'data' => SORT_ASC,\r\n 'godzina' => SORT_ASC\r\n ])\r\n ->all();\r\n \r\n $dataProvider = new ActiveDataProvider([\r\n 'query' => $query\r\n ]);\r\n \r\n $this->load($params);\r\n \r\n if (! $this->validate()) {\r\n // uncomment the following line if you do not want to return any records when validation fails\r\n // $query->where('0=1');\r\n return $dataProvider;\r\n }\r\n \r\n // grid filtering conditions\r\n $query->andFilterWhere([\r\n \r\n 'id_stomatologa' => $this->id_stomatologa,\r\n 'data' => $this->data,\r\n 'godzina' => $this->godzina\r\n ]);\r\n \r\n return $dataProvider;\r\n }", "protected function modifyQueryForFilter()\n {\n //the following select includes the mobile number, but overrides\n //the columns with an empty string if the matching boolean is false\n $this->q->getDoctrineQuery()->addSelect(\n 'if(x.is_show_mobile_number_in_phonebook is not FALSE, x.mobile_number, \\'\\') as mobile_number'\n );\n \n if ($this->isLocationView)\n {\n //order results by location name first\n $this->q->addOrderByPrefix('UllLocation->name');\n }\n\n if (!empty($this->phoneSearchFilter))\n {\n $this->q->getDoctrineQuery()->openParenthesisBeforeLastPart();\n \n //we need special handling here because we don't want hidden\n //numbers to be searchable\n $phoneSearchFilterPattern = '%' . $this->phoneSearchFilter . '%';\n \n $this->q->getDoctrineQuery()->orWhere(\n '(is_show_extension_in_phonebook is not FALSE AND phone_extension LIKE ?) ' .\n 'OR (is_show_extension_in_phonebook is FALSE AND alternative_phone_extension LIKE ?)',\n array($phoneSearchFilterPattern, $phoneSearchFilterPattern));\n\n $this->q->orWhere('is_show_mobile_number_in_phonebook is not FALSE ' .\n 'AND mobile_number LIKE ?', $phoneSearchFilterPattern);\n \n $this->q->getDoctrineQuery()->closeParenthesis();\n }\n \n\n if (!empty($this->filter_location_id))\n {\n $this->q->addWhere('ull_location_id = ?', $this->filter_location_id);\n }\n \n //we only want users which are active and have their\n //show-in-phonebook not set to false\n $this->q->addWhere('UllUserStatus->is_active is TRUE and is_show_in_phonebook is not FALSE');\n }", "public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('rincianclosing_id',$this->rincianclosing_id);\n\t\t$criteria->compare('closingkasir_id',$this->closingkasir_id);\n\t\t$criteria->compare('nourutrincian',$this->nourutrincian);\n\t\t$criteria->compare('nilaiuang',$this->nilaiuang);\n\t\t$criteria->compare('banyakuang',$this->banyakuang);\n\t\t$criteria->compare('jumlahuang',$this->jumlahuang);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }", "private function addFilterByParent(ProductCollection $productCollection, $parentId)\n {\n $tableProductRelation = $productCollection->getTable('catalog_product_relation');\n $productCollection\n ->getSelect()\n ->join(\n ['pr' => $tableProductRelation],\n 'e.entity_id = pr.child_id'\n )\n ->where('pr.parent_id = ?', $parentId);\n }", "public function search() {\n\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n \n //echo \"ss\";die;\n if (isset($_GET['id']) && is_numeric($_GET['id'])) {\n $retailer_id = $_GET['id'];\n $sub_ids_all = $this->getSubcribeid($retailer_id);\n // print_r($sub_ids_all);die;\n if (count($sub_ids_all) > 0) {\n for ($i = 0; $i < count($sub_ids_all); $i++) {\n $subpro_id_all[] = implode(',', $sub_ids_all[$i]);\n //$subpro_id_new= implode(',', $subpro_id_all[$i]);\n }\n if (count($sub_ids_all) > 0) {\n //echo \"hello222\";die;\n $subpro_id_new_all = implode(',', $subpro_id_all);\n }\n }\n\n if (!empty($criteria->condition)) {\n $criteria->condition .= ' AND ';\n }\n if (count($sub_ids_all) > 0) {\n\n $criteria->join = \"INNER JOIN base_product bp ON bp.base_product_id in ($subpro_id_new_all)\";\n //$criteria->join = \"left join retailer as r on r.id=t.retailer_id left join subscribed_product as sp on sp.subscribed_product_id=t.subscribed_product_id left join base_product as bp ON bp.base_product_id=sp.base_product_id\";\n }\n\n //echo $subpro_id_new;die;\n\n\n\n if (!empty($criteria->condition)) {\n $criteria->condition .= ' AND ';\n }\n $criteria->condition .= 'retailer_id =' . $retailer_id;\n }\n $criteria->with = array('Retailer' => array(\"select\" => \"id\"));\n //$criteria->with = array('BaseProduct' => array(\"select\" => \"id\"));\n\n $criteria->compare('base_product_id', $this->base_product_id);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('retailer_id', $this->retailer_id, true);\n $criteria->compare('subscribed_product_id', $this->subscribed_product_id, true);\n $criteria->compare('effective_price', $this->effective_price);\n $criteria->compare('discount_per', $this->discout_per, true);\n $criteria->compare('status', $this->status, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function hasCriteria();", "public function searchFiniquitados() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n \n $criteria = new CDbCriteria;\n $criteria->with = array('departamento', 'tipoContrato', 'cliente');\n $criteria->join .= 'join departamento as d on d.id = t.departamento_id '\n . ' join propiedad as p on p.id = d.propiedad_id'\n . ' join tipo_contrato as tipo on tipo.id = t.tipo_contrato_id '\n . ' join cliente as c on c.id = t.cliente_id '\n . ' join usuario as u on u.id = c.usuario_id ';\n \n $arreglo = explode(\" \",$this->cliente_nombre);\n $nombreApellido = array();\n foreach($arreglo as $palabra){\n if(trim($palabra)!= ''){\n $nombreApellido[]=$palabra;\n }\n }\n $criteriaNombreUser1 = new CDbCriteria();\n $palabras = count($nombreApellido);\n if($palabras == 1){\n $busqueda = $nombreApellido[0];\n if(trim($busqueda) != ''){\n $criteriaNombreUser1->compare('u.nombre',$busqueda,true);\n $criteriaNombreUser1->compare('u.apellido',$busqueda,true,'OR');\n }\n }\n\n if($palabras == 2){\n $nombre = $nombreApellido[0];\n $apellido = $nombreApellido[1];\n $criteriaNombreUser1->compare('u.nombre',$nombre,true);\n $criteriaNombreUser1->compare('u.apellido',$apellido,true);\n }\n\n $criteria->compare('folio', $this->folio);\n $criteria->mergeWith($criteriaNombreUser1,'AND');\n \n $criteria->compare('fecha_inicio', Tools::fixFecha($this->fecha_inicio), true);\n $criteria->compare('p.nombre', $this->propiedad_nombre, true);\n $criteria->compare('d.numero', $this->depto_nombre, true);\n $criteria->compare('c.rut', $this->cliente_rut, true);\n $criteria->compare('t.vigente', 0);\n $criteria->compare('t.fecha_finiquito', $this->fecha_finiquito,true);\n \n if(Yii::app()->user->rol == 'cliente'){\n $cliente = Cliente::model()->findByAttributes(array('usuario_id'=>Yii::app()->user->id));\n if($cliente!=null){\n $criteria->compare('t.cliente_id',$cliente->id);\n }\n else{\n $criteria->compare('t.cliente_id',-1);\n }\n }\n \n if(Yii::app()->user->rol == 'propietario'){\n $criteriaPropietario = new CDbCriteria();\n $contratos = Contrato::model()->relacionadosConPropietario(Yii::app()->user->id);\n foreach($contratos as $contrato_id){\n $criteriaPropietario->compare('t.id', $contrato_id, false,'OR'); \n }\n $criteria->mergeWith($criteriaPropietario,'AND');\n }\n \n \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'attributes' => array(\n 'depto_nombre' => array(\n 'asc' => 'd.numero',\n 'desc' => 'd.numero DESC',\n ),\n 'tipo_nombre' => array(\n 'asc' => 'tipo.nombre',\n 'desc' => 'tipo.nombre DESC',\n ),\n 'cliente_rut' => array(\n 'asc' => 'c.rut',\n 'desc' => 'c.rut DESC',\n ),\n 'cliente_nombre' => array(\n 'asc' => 'u.apellido,u.nombre',\n 'desc' => 'u.apellido DESC,u.nombre DESC',\n ),\n 'propiedad_nombre' => array(\n 'asc' => 'p.nombre',\n 'desc' => 'p.nombre DESC',\n ),\n '*',\n ),\n ),\n ));\n }" ]
[ "0.5500396", "0.5462601", "0.5343429", "0.53256613", "0.53233516", "0.5231814", "0.522393", "0.51875085", "0.5181604", "0.5172275", "0.515979", "0.51268375", "0.5119865", "0.51097906", "0.51071954", "0.50755453", "0.5066229", "0.50441974", "0.5034452", "0.50329965", "0.50307524", "0.50156516", "0.4997444", "0.49820384", "0.49743053", "0.49725044", "0.49708647", "0.4960017", "0.49545196", "0.49527115", "0.49523672", "0.49497828", "0.4942327", "0.49384508", "0.49192965", "0.49187154", "0.49177277", "0.49101308", "0.4909955", "0.4908656", "0.48888013", "0.48857948", "0.48764503", "0.48680055", "0.486767", "0.48648775", "0.4864815", "0.48585927", "0.4857096", "0.48511887", "0.48502532", "0.48399082", "0.48397675", "0.48351422", "0.483319", "0.4832873", "0.48301476", "0.48209783", "0.4818636", "0.4815695", "0.48092616", "0.48020127", "0.48010424", "0.48001727", "0.47926256", "0.47852194", "0.47841012", "0.47834533", "0.4783413", "0.4778711", "0.47733447", "0.47707945", "0.4770191", "0.47665256", "0.47636282", "0.47632545", "0.47589204", "0.47572228", "0.47553107", "0.475434", "0.4751829", "0.47500595", "0.47451517", "0.4744284", "0.47425804", "0.47424158", "0.47400105", "0.4737673", "0.4735631", "0.47318974", "0.47255132", "0.47236443", "0.47176996", "0.47132024", "0.47123876", "0.47105885", "0.47091886", "0.47081667", "0.4706631", "0.47058457" ]
0.4970369
27
Adds a JOIN clause to the query using the Partenaire relation
public function joinPartenaire($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Partenaire'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'Partenaire'); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function joinQuery()\n {\n }", "abstract public function join($alias_from, $rel_name, $alias_to);", "function joinClause( $join ) {\n\t global $wpdb;\n\t $join .= \" INNER JOIN $wpdb->postmeta dm ON (dm.post_id = $wpdb->posts.ID AND dm.meta_key = '$this->orderby') \";\n\t return $join;\n\t}", "public function addJoin(Builder $queryBuilder) : void\n {\n $queryBuilder->join(\n $this->_relatedTable . ' AS ' . $this->name,\n $this->_baseTable . '.' . $this->_baseKey,\n '=',\n $this->name . '.' . $this->_foreignKey\n );\n }", "public function join($table, $alias = NULL, $condition = NULL, $arguments = []);", "public function join($table, $condition = [], $join = '')\n\t{\n\t\tif(count($condition) == 3)\n\t\t\t$this->_query .= strtoupper($join) . // convert $join to upper case (left -> LEFT)\n\t\t\t\t\" JOIN {$table} ON {$condition[0]} {$condition[1]} {$condition[2]}\";\n\n\t\t// that's it now return object from this class\n\t\treturn $this;\n }", "public function join($table, $on, $field = null, $comparitor = null);", "public function addJoin($type, $table, $alias = NULL, $condition = NULL, $arguments = []);", "function join($table, &$query) {\r\n $left = $query->get_table_info($this->left_table);\r\n $output = \" $this->type JOIN {\" . $this->table . \"} $table[alias] ON ($this->left_query) = $table[alias].$this->field\";\r\n\r\n // Tack on the extra.\r\n if (isset($this->extra)) {\r\n if (is_array($this->extra)) {\r\n $extras = array();\r\n foreach ($this->extra as $info) {\r\n $extra = '';\r\n // Figure out the table name. Remember, only use aliases provided\r\n // if at all possible.\r\n $join_table = '';\r\n if (!array_key_exists('table', $info)) {\r\n $join_table = $table['alias'] . '.';\r\n }\r\n elseif (isset($info['table'])) {\r\n $join_table = $info['table'] . '.';\r\n }\r\n\r\n // And now deal with the value and the operator. Set $q to\r\n // a single-quote for non-numeric values and the\r\n // empty-string for numeric values, then wrap all values in $q.\r\n $raw_value = $this->db_safe($info['value']);\r\n $q = (empty($info['numeric']) ? \"'\" : '');\r\n\r\n if (is_array($raw_value)) {\r\n $operator = !empty($info['operator']) ? $info['operator'] : 'IN';\r\n // Transform from IN() notation to = notation if just one value.\r\n if (count($raw_value) == 1) {\r\n $value = $q . array_shift($raw_value) . $q;\r\n $operator = $operator == 'NOT IN' ? '!=' : '=';\r\n }\r\n else {\r\n $value = \"($q\" . implode(\"$q, $q\", $raw_value) . \"$q)\";\r\n }\r\n }\r\n else {\r\n $operator = !empty($info['operator']) ? $info['operator'] : '=';\r\n $value = \"$q$raw_value$q\";\r\n }\r\n $extras[] = \"$join_table$info[field] $operator $value\";\r\n }\r\n\r\n if ($extras) {\r\n if (count($extras) == 1) {\r\n $output .= ' AND ' . array_shift($extras);\r\n }\r\n else {\r\n $output .= ' AND (' . implode(' ' . $this->extra_type . ' ', $extras) . ')';\r\n }\r\n }\r\n }\r\n else if ($this->extra && is_string($this->extra)) {\r\n $output .= \" AND ($this->extra)\";\r\n }\r\n }\r\n return $output;\r\n }", "private function joins()\r\n {\r\n /* SELECT* FROM DOCUMENT WHERE DOCUMENT.\"id\" IN ( SELECT ID FROM scholar WHERE user_company_id = 40 )*/\r\n\r\n $query = EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n ->sql();\r\n\r\n $table = EyufDocument::find()\r\n ->where('\"id\" IN ' . $query)\r\n ->all();\r\n\r\n $second = EyufDocument::findAll(EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n );\r\n\r\n vdd($second);\r\n }", "public function _complex_join()\n {\n // LEFT JOIN `%1$sauth_group` on `%1$spro`.`depid` = `%1$sauth_group`.`id`\n // LEFT JOIN (SELECT a.* FROM `%1$sproout` as a INNER JOIN (SELECT max(`id`) as id FROM `%1$sproout` group by `jpid`) as b on a.id = b.id) as `%1$sproout` on `%1$spro`.`id` = `%1$sproout`.`jpid`\n // LEFT JOIN `%1$scust` on `%1$spro`.`cid` = `%1$scust`.`id`', C('DB_PREFIX'));\n\n $join = sprintf('LEFT JOIN `%1$sproin` ON `%1$spro`.`id` = `%1$sproin`.`jpid`\n LEFT JOIN `%1$sauth_group` on `%1$spro`.`depid` = `%1$sauth_group`.`id`\n LEFT JOIN `%1$sproout` on `%1$sproout`.`jpid` = `%1$spro`.`id`\n LEFT JOIN `%1$sproout` tmp_out on tmp_out.`jpid` = `%1$sproout`.`jpid` and tmp_out.`id` > `%1$sproout`.`id`\n LEFT JOIN `%1$scust` on `%1$spro`.`cid` = `%1$scust`.`id`', C('DB_PREFIX'));\n return $join;\n }", "public function basic_join_setup()\r\n {\r\n \r\n }", "function cf_search_join( $join ) {\n\t\tglobal $wpdb;\n\n\t\tif ( is_search() ) {\n\t\t\t$join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t\t}\n\n\t\treturn $join;\n\t}", "private function addJoinOnQuery($type, Query $other, Query $whereQuery) {\r\n\t\t//$this->joins[$other->alias]['on'][]=' '.$type.' ('.implode(' ', $whereQuery->wheres).')';\r\n\t\t$this->addJoinOnClause($other, $type, '('.implode(' ',$whereQuery->_salt_wheres).')');\r\n\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::WHERE);\r\n\t}", "public function getJoin()\n {\n return $this->get(self::_JOIN);\n }", "function cf_search_join( $join ) {\n\t global $wpdb;\n\n\t if ( is_search() ) { \n\t $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t }\n\t \n\t return $join;\n\t}", "abstract protected function appendJoins(QueryBuilder $queryBuilder);", "private static function sqlJoining() : string {\n $relations = self::getsRelationsHasOne();\n\n $baseTable = static::tableName();\n $baseProperties = self::getProperties();\n foreach ($baseProperties as &$property) {\n $property = $baseTable . '.' . $property;\n }\n $colsFromBaseTabel = implode(', ', $baseProperties);\n $colsFromJoinedTables = '';\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $modelProperties = $modelNamespace::getProperties();\n foreach ($modelProperties as $key => &$value) {\n $value = $modelTableName . '.' . $value . ' AS ' . $modelTableName . '_' . $value;\n }\n $colsFromJoinedTables .= ', ' . implode(', ', $modelProperties);\n\n }\n $sql = 'SELECT ' . $colsFromBaseTabel . ' ' . $colsFromJoinedTables . ' FROM ' . $baseTable;\n\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $sql .= ' INNER JOIN ' . $modelTableName . ' ON ' . $baseTable . '.' . $relation['column'] . ' = ' . $modelTableName . '.' . $relation['joined-table-column'];\n }\n\n return $sql . ' WHERE ' . $baseTable . '.';\n }", "public function getJoinExpression();", "function addJoin($name, $joinType, $tableA, $tableB, $fieldA, $fieldB) {\n\t\t$this->addBlock('from', $name, array(array($joinType, $tableA, $tableB, $fieldA, $fieldB)));\n\t\treturn $this;\n\t}", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "private function getJoin() {\n return $this->join;\n }", "public function addJoin($table, $condition, $joinType)\n {\n $this->appendSql($this->filterJoinType($joinType))->\n appendSql(' JOIN ')->\n appendSql($table)->\n appendSql(' ON ')->\n appendSql(\"({$condition})\");\n return $this;\n }", "public function joinBookings()\n {\n $this->builder->join('bookings', 'book_id', 'bil_booking');\n }", "function whereJoin($relName, $s)\n{\n\t$this->tryModify();\n\n\t$rel = new Relation($this->newModel(null), $relName);\n\n\t$s = $this->setWhereParams($s, func_get_args(), 2);\n\n\t$table = $rel->params['table'];\n\t$join = $rel->getJoinCondition();\n\n\tif(!isset($this->query['whereJoin'])) $this->query['whereJoin'] = array();\n\n\tif ($rel->getType() == 'many_to_many') {\n\t\t$joinTable = $rel->getJoinTableName();\n\t\t$this->query['whereJoin'][] = \"EXISTS (SELECT * FROM $table,$joinTable where $join and ($s))\";\n\t\treturn $this;\n\t}\n\n\t$this->query['whereJoin'][] = \"EXISTS (SELECT * FROM $table WHERE $join AND ($s))\";\n\treturn $this;\n}", "function buildJoin()\n\t{\n\t\tif ($this->table_obj_reference)\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_reference.\" ON \".$this->table_tree.\".child=\".$this->table_obj_reference.\".\".$this->ref_pk.\" \".\n\t\t\t\t \"JOIN \".$this->table_obj_data.\" ON \".$this->table_obj_reference.\".\".$this->obj_pk.\"=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_data.\" ON \".$this->table_tree.\".child=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t}", "protected function setJoin($query = null)\n {\n $query = $query ? : $this->query;\n $baseTable = $this->related->getTable ();\n $key = $baseTable . '.' . $this->related->getKeyName ();\n $query->join ( $this->table, $key, '=', $this->getOtherKey () );\n return $this;\n }", "public function join($sql) {\n $this->__join__ = $sql;\n return $this;\n }", "function query() {\n dpm($this);\n $this->ensure_my_table();\n\n // First, relate our current table to the link table via the field\n $first = array(\n 'left_table' => $this->table_alias,\n 'left_field' => $this->field, // @TODO real_field?\n 'table' => $this->definition['link table'],\n 'field' => $this->definition['link field'],\n );\n\n if (!empty($this->options['required'])) {\n $first['type'] = 'INNER';\n }\n\n if (!empty($this->definition['link_join_extra'])) {\n $first['extra'] = $this->definition['link_join_extra'];\n }\n\n if (!empty($this->definition['join_handler']) && class_exists($this->definition['join_handler'])) {\n $first_join = new $this->definition['join_handler'];\n }\n else {\n $first_join = new views_join();\n }\n $first_join->definition = $first;\n $first_join->construct();\n $first_join->adjusted = TRUE;\n\n $this->first_alias = $this->query->add_table($this->definition['link table'], $this->relationship, $first_join);\n\n // Second, relate the link table to the entity specified using\n // the specified base fields on the base and link tables.\n $second = array(\n 'left_table' => $this->first_alias,\n 'left_field' => $this->definition['base link field'],\n 'table' => $this->definition['base'],\n 'field' => $this->definition['base field'],\n );\n\n if (!empty($this->options['required'])) {\n $second['type'] = 'INNER';\n }\n\n if (!empty($this->definition['base_join_extra'])) {\n $second['extra'] = $this->definition['base_join_extra'];\n }\n\n if (!empty($this->definition['join_handler']) && class_exists($this->definition['join_handler'])) {\n $second_join = new $this->definition['join_handler'];\n }\n else {\n $second_join = new views_join();\n }\n $second_join->definition = $second;\n $second_join->construct();\n $second_join->adjusted = TRUE;\n\n // use a short alias for this:\n // @TODO real_field?\n $alias = $this->field . '_' . $this->definition['base'];\n\n $this->alias = $this->query->add_relationship($alias, $second_join, $this->definition['base'], $this->relationship);\n }", "public function custom_attachments_join( $join, $query ){\n\t\tglobal $wpdb;\n\n\t\t//if we are not on admin or the current search is not on attachment return\n\t\tif(!is_admin() || (!isset($query->query['post_type']) || $query->query['post_type'] != 'attachment')){\n\t\t\treturn $join;\n\t\t}\n\n\t\t// if current query is the main query and a search...\n\t\tif( is_main_query() && is_search() ){\n\t\t\t$join .= \"\n\t\t\tLEFT JOIN\n\t\t\t{$wpdb->term_relationships} ON {$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id\n\t\t\tLEFT JOIN\n\t\t\t{$wpdb->term_taxonomy} ON {$wpdb->term_taxonomy}.term_taxonomy_id = {$wpdb->term_relationships}.term_taxonomy_id\n\t\t\tLEFT JOIN\n\t\t\t{$wpdb->terms} ON {$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id \";\n\t\t}\n\n\t\treturn $join;\n\t}", "public static function add_wp_query_join( $join, $wp_query ) {\n\t\tglobal $wpdb;\n\n\t\t$search = $wp_query->get( 'search' );\n\t\tif ( $search ) {\n\t\t\t$join .= \" LEFT JOIN {$wpdb->postmeta} AS attr_search_meta\n\t\t\t\t\t\tON {$wpdb->posts}.ID = attr_search_meta.post_id\n\t\t\t\t\t\tAND attr_search_meta.meta_key LIKE 'attribute_%' \";\n\t\t}\n\n\t\tif ( wc_product_sku_enabled() && ! strstr( $join, 'wc_product_meta_lookup' ) ) {\n\t\t\t$join .= \" LEFT JOIN {$wpdb->wc_product_meta_lookup} wc_product_meta_lookup\n\t\t\t\t\t\tON $wpdb->posts.ID = wc_product_meta_lookup.product_id \";\n\t\t}\n\n\t\treturn $join;\n\t}", "public function joinPartenaire($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Partenaire');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Partenaire');\n }\n\n return $this;\n }", "public function testBuildWhereWithJoin()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->alias('table1_alias')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->alias('table2_alias')\n ->joinOn('id', 'id')\n ->where('is_admin', 1)\n )\n ->where('id', 100)\n ;\n\n $this->assertSame(\n \"WHERE table1_alias.id = '100' AND table2_alias.is_admin = '1'\",\n $query->buildWhere()\n );\n }", "public function join()\n {\n $this->defaultjoinsetted = true;\n if (!empty($this->entity_link_list)) {\n foreach ($this->entity_link_list as $entity_link) {\n $this->defaultjoin .= \" left join `\" . strtolower(get_class($entity_link)) . \"` on \" . strtolower(get_class($entity_link)) . \".id = \" . $this->table . \".\" . strtolower(get_class($entity_link)) . \"_id\";\n }\n }\n return $this;\n }", "public function join($table, $key, ?string $operator = null, $foreign = null, string $type = self::INNER_JOIN);", "public function visitJoinClause(\n /*IJoinClause*/ $node) /*: mixed*/ {\n $id = $node->getIdentifier();\n $collection = /*(string)*/$node->getCollection()->accept($this);\n $left = null;\n $left_value = $node->getLeft();\n if ($left_value != null) {\n $left = /*(string)*/$left_value->accept($this);\n }\n $right = null;\n $right_value = $node->getRight();\n if ($right_value != null) {\n $right = /*(string)*/$right_value->accept($this);\n }\n $group = $node->getGroup();\n\n $result = 'join ';\n if ($id !== null) {\n $result .= '$'.$id.' in ';\n }\n $result .= $collection;\n if ($left !== null && $right !== null) {\n $result .= \" on $left equals $right\";\n if ($group !== null) {\n $result .= ' into '.$group;\n }\n }\n return $result;\n }", "public function joinResources()\n {\n $this->builder->join('resources', 'rs_id', '=', 'add_resource');\n }", "public function addJoin($assocTable, $col1, $col2, $last = true, $type = \"left\") {\n // Joins will always be on selects\n list($this->sql, $this->from) = splitString($this->sql, \"FROM\");\n // Take care of aliased columns\n if (!empty($assocTable->aliases)) {\n $this->sql .= \", \";\n foreach($assocTable->aliases as $c => $a) {\n $this->sql .= $assocTable->name . \".$c as $a,\";\n }\n // Take the comma off the end\n $this->sql = trim($this->sql, \",\");\n }\n $type = strtoupper($type);\n $this->join .= \" $type JOIN \" . $assocTable->name;\n $this->join .= \" ON \" . $this->table->name . \".\" . $col1 . \" = \" . $assocTable->name . \".\" . $col2;\n if ($last) {\n $this->sql .= \" $this->from\";\n $this->sql .= $this->join;\n }\n }", "function wc_tab_manager_tabs_posts_join( $join, $query ) {\n\tglobal $wpdb, $typenow;\n\n\tif ( 'wc_product_tab' === $typenow ) {\n\t\t$join .= \" JOIN {$wpdb->posts} AS product_parents ON ( {$wpdb->posts}.post_parent = 0 OR ( {$wpdb->posts}.post_parent = product_parents.ID AND product_parents.post_status != 'trash' ) )\";\n\t}\n\n\treturn $join;\n}", "private function sql_join($filter, $structure) {\n\t\t$sql = \"\";\n\t\t$table = $structure['table'];\n\t\t$class = $structure['class'];\n\t\t$pool_class = $class . 'Pool_Model';\n\t\t$full_structure = $pool_class::get_full_structure();\n\t\tforeach ($structure['relations'] as $relation) {\n\t\t\tlist($foreign_key, $foreign_table, $key) = $relation;\n\t\t\t$foreign_structure = $full_structure[$foreign_table];\n\t\t\t$ftable = $foreign_structure['table'];\n\t\t\t$join_expr = ' LEFT JOIN '.$ftable.' AS '.$key;\n\t\t\t$join_expr .= ' ON '.implode(' AND ',array_map(function($fk,$lk) use($key,$table) {\n\t\t\t\treturn \"$key.$fk = $table.$lk\";\n\t\t\t}, $foreign_structure['key'], $foreign_key));\n\t\t\t$sql .= $join_expr;\n\t\t}\n\t\treturn $sql;\n\t}", "function cf_search_join( $join ) {\n global $wpdb;\n if ( is_search() ) {\n $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n return $join;\n}", "public function join($table, $type = NULL){\n $this->_last_join = new Join($table, $type);\n $this->_last_join->setQuoter($this->quoter);\n $this->_join[] = $this->_last_join;\n return $this;\n }", "public function usePartenaireQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinPartenaire($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'Partenaire', '\\PartenaireQuery');\n }", "public function getarchives_join( $join, $r ) {\n\t\tglobal $wpdb;\n\t\t$this->get_archives_where_r = $r;\n\t\tif(isset($r['taxonomy']) && is_array($r['taxonomy']) )\n\t\t$join = $join . \" INNER JOIN $wpdb->term_relationships ON ($wpdb->posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)\";\n\n\t\treturn $join;\n\t}", "public function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "private function makeJoins(ParseLoop $parse, $join)\n {\n $model = ModelTools::buildModelName($join['REFERENCED_TABLE_NAME']);\n $parse->setData('joins', [\n 'tablejoin' => $model,\n 'table' => $model . '::TABLE',\n 'leftcol' => $this->classname . '::' . ModelTools::getFieldConstant($this->table, $join['COLUMN_NAME']),\n 'rightcol' => $model . '::' . ModelTools::getFieldConstant($join['REFERENCED_TABLE_NAME'], $join['REFERENCED_COLUMN_NAME'])\n \n ]);\n }", "private function set_relation_joins() {\n if(!$this->use_relations) return;\n $relations = [];\n foreach ($this->colmodel as $i => $col) {\n if (!isset($col['relation']))\n continue;\n foreach (explode('>', $col['relation']) as $relation) {\n if (!str_contains($relation, '.'))\n continue;\n list($model_name, $relation_name) = explode('.', $relation);\n if ($relation_name != '' && !in_array($relation, $relations)) {\n $this->set_relation_join($model_name, $relation_name);\n $relations[] = $relation;\n }\n }\n }\n }", "function cf_search_join( $join ) {\n global $wpdb;\n\n if ( is_search() ) { \n $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n\n return $join;\n}", "public function joinFields()\n {\n if (!$this->_joinedFields) {\n $this->getSelect()->join(\n array('related' => $this->getTable('oggetto_news/category_news')),\n 'related.news_id = main_table.entity_id',\n array('position')\n );\n $this->_joinedFields = true;\n }\n return $this;\n }", "public function getJoinCondition() {}", "function cf_search_join($join) {\n global $wpdb;\n\n if (is_search()) {\n $join .=' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n\n return $join;\n}", "public function joinBills()\n {\n $this->builder->join('bills', 'bil_id', 'rc_bill');\n }", "protected function performJoin(Builder $query = null)\n {\n $query = $query ?: $this->query;\n\n $ownerKey = $this->getQualifiedOwnerKeyName();\n\n $query->join($this->throughChild->getTable(), $ownerKey , '=', $this->getQualifiedFirstKeyName());\n $query->select([\n '*' => $this->related->qualifyColumn('*'),\n $this->secondKey => $this->throughChild->getQualifiedKeyName().' as '.$this->secondKey\n ]);\n\n if ($this->throughChildSoftDeletes()) {\n $query->whereNull($this->throughChild->getQualifiedDeletedAtColumn());\n }\n }", "public function join(string $table, string $condition, string $type=''): QueryBuilderInterface\n\t{\n\t\t// Prefix and quote table name\n\t\t$table = explode(' ', mb_trim($table));\n\t\t$table[0] = $this->driver->quoteTable($table[0]);\n\t\t$table = $this->driver->quoteIdent($table);\n\t\t$table = implode(' ', $table);\n\n\t\t// Parse out the join condition\n\t\t$parsedCondition = $this->parser->compileJoin($condition);\n\t\t$condition = $table . ' ON ' . $parsedCondition;\n\n\t\t$this->state->appendMap(\"\\n\" . strtoupper($type) . ' JOIN ', $condition, 'join');\n\n\t\treturn $this;\n\t}", "public function add_filter_join($field, $join_type = 'or')\n\t{\n\t\tif (!empty($this->filter_join) AND is_string($this->filter_join))\n\t\t{\n\t\t\t$this->filter_join = array($this->filter_join);\n\t\t}\n\t\t$this->filter_join[$field] = $join_type;\n\t}", "public function joinFields()\n {\n if (!$this->_joinedFields) {\n $this->getSelect()->join(\n array('related' => $this->getTable('bs_administrativedoc/administrativedocument_product')),\n 'related.product_id = e.entity_id',\n array('position')\n );\n $this->_joinedFields = true;\n }\n return $this;\n }", "function getJoinCondition() ;", "public function testBuildJoinDefaultWithTwoJoinOn()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n ->joinOn('user_id', 'type_id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id AND table1.user_id = table2.type_id',\n $query->buildJoin()\n );\n }", "public function testBuildJoinDefault()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id',\n $query->buildJoin()\n );\n }", "public function join($fromAlias, $join, $alias, $condition = null)\n {\n return $this->innerJoin($fromAlias, $join, $alias, $condition);\n }", "public function get_additional_joins()\n {\n return 'LEFT JOIN isys_catg_its_type_list AS cat_rel\n\t\t\tON cat_rel.isys_catg_its_type_list__isys_obj__id = obj_main.isys_obj__id';\n }", "protected abstract function getJoinClause(array $joins);", "private function buildJoins(): void {\r\n\r\n if(count($this -> joins) > 0) {\r\n\r\n $query = [];\r\n\r\n foreach($this -> joins as $join) {\r\n\r\n $parts = [];\r\n $parts[] = sprintf('%s JOIN', strtoupper($join['type']));\r\n $parts[] = $join['table'];\r\n\r\n if(null !== $join['alias']) {\r\n $parts[] = $join['alias'];\r\n }\r\n\r\n if(null !== $join['conditions']) {\r\n $parts[] = sprintf('ON %s', $join['conditions']);\r\n }\r\n\r\n $query[] = implode(' ', $parts);\r\n }\r\n\r\n $this -> query[] = implode(' ', $query);\r\n }\r\n }", "protected function performJoins()\n {\n $query = $this->query;\n\n $predecessor = $this->related;\n\n $this->through_parents->each(function ($model) use ($query, &$predecessor) {\n $first = $predecessor->getQualifiedKeyName();\n $joined = $model->qualifyColumn($this->getForeignKeyName($predecessor));\n\n $query->join($model->getTable(), $first, '=', $joined);\n\n if ($this->hasSoftDeletes($model)) {\n $this->query->whereNull($model->getQualifiedDeletedAtColumn());\n }\n\n $predecessor = $model;\n });\n }", "protected function _addJoin($type, $table, $fields, $on = []) {\n $repo = $this->getRepository();\n $join = new Join($type);\n $conditions = [];\n\n if (is_array($table)) {\n $alias = $table[1];\n $table = $table[0];\n } else {\n $alias = $table;\n }\n\n foreach ($on as $pfk => $rfk) {\n if (strpos($pfk, '.') === false) {\n $pfk = $repo->getAlias() . '.' . $pfk;\n }\n\n if (strpos($rfk, '.') === false) {\n $rfk = $alias . '.' . $rfk;\n }\n\n $conditions[$pfk] = $rfk;\n }\n\n $this->_joins[] = $join->from($table, $alias)->on($conditions)->fields($fields);\n\n return $this;\n }", "public function joinComplex( $table, $condition, $joint = null )\n {\n $table = $this->addTable($table);\n $this->addJoint($table, $condition, $joint);\n return $this;\n }", "public function joinSocioAlquiler($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('SocioAlquiler');\n\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'SocioAlquiler');\n\t\t}\n\n\t\treturn $this;\n\t}", "public function joinPersona($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('Persona');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'Persona');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function testJoinWithAlias()\n {\n $query = (new Select($this->mockConnection))->join('join', 'j.tableId', '=', 'table.id', 'j');\n $array = $query->toArray();\n\n $this->assertInstanceOf(Select::class, $query);\n $this->assertArrayHasKey('join', $array);\n $this->assertCount(1, $array['join']);\n $this->assertEquals([\n 'type' => 'inner',\n 'table' => 'join',\n 'alias' => 'j',\n 'statement' => [\n 'where' => [\n [\n 'column' => 'j.tableId',\n 'operator' => '=',\n 'value' => 'table.id',\n 'boolean' => 'and',\n ]\n ],\n ]\n ], $array['join'][0]);\n $this->assertInstanceOf(Column::class, $array['join'][0]['statement']['where'][0]['value']);\n }", "public function join($id);", "private function addJoinOnClause($other, $type, $onClause) {\r\n\t\tif (is_array($onClause)) {\r\n\t\t\t$onClause=implode(' ', $onClause);\r\n\t\t}\r\n\t\tif (count($this->_salt_joins[$other->_salt_alias]['on'])>0) {\r\n\t\t\t$this->_salt_joins[$other->_salt_alias]['on'][]=$type.' '.$onClause;\r\n\t\t} else {\r\n\t\t\t$this->_salt_joins[$other->_salt_alias]['on'][]=$onClause;\r\n\t\t}\r\n\t}", "public function join($tbl_name, array $condition, $type = Operator::JOIN_INNTER)\n {\n $output = array();\n $func = function ($value) use (&$output)\n {\n $value = $this->escapeString($value);\n $output[] = \"`{$value}`\";\n };\n $temp = explode('.', $tbl_name);\n $output = array();\n array_walk($temp, $func);\n $tbl_name = implode('.', $output);\n $target_str = $tbl_name;\n $on_str_list = array();\n foreach ($condition as $item) {\n $temp = explode('.', $item);\n $output = array();\n array_walk($temp, $func);\n $on_str_list[] = implode('.', $output);\n }\n $type = ltrim($type, '$');\n $on_str = implode(' = ', $on_str_list);\n $join_str = \"{$type} {$target_str} ON {$on_str}\";\n $this->join_str_list[] = $join_str;\n return $this;\n }", "public function addJoin( $join, $type = null ) {\n if ( !$join ) {\n return;\n }\n $this->join[] = $type ? sprintf( \"%s JOIN %s\", $type, $join ) : sprintf( \"JOIN %s\", $join );\n }", "public function innerJoin() {\r\n\t\t$args = func_get_args();\r\n\t\t$name = array_shift($args);\r\n\t\t$joined = array_shift($args);\r\n\t\tif (!$name) $name = '___' . $joined;\r\n\t\t//if (count(array_keys(self::$_joinStack, $joined)) > 1) {\r\n\t\tif (get_class($this) == $joined || in_array($joined, self::$_joinStack)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tself::$_joinStack[] = get_class($this);\r\n\t\tself::$_joinStack[] = $joined;\r\n\t\t$model = null;\r\n\t\tif (is_string($joined)) {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = new $joined();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = $joined;\r\n\t\t\t}\r\n\t\t}\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tif (is_null($model)) {\r\n\t\t\tthrow new Exception('Queries can only join models.');\r\n\t\t}\r\n\t\t$this->_innerJoins[] = array(\r\n\t\t\t'name' => $name,\r\n\t\t\t'model' => $model,\r\n\t\t\t'args' => $args\r\n\t\t);\r\n\t}", "protected function buildJoinClause() {\r\n\t\t$sql='';\r\n\t\tif (count($this->_salt_joins)>0) {\r\n\t\t\tforeach($this->_salt_joins as $alias => $join) {\r\n\t\t\t\t$sql.=' '.$join['type'].' JOIN '.$join['table'].' ON '.implode(' ', $join['on']);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $sql;\r\n\t}", "public function compile()\n {\n if (null !== $this->type) {\n $sql = strtoupper($this->type).' JOIN';\n } else {\n $sql = 'JOIN';\n }\n\n $sql .= ' '.$this->quoter->quoteTable($this->table);\n\n if (!empty($this->using)) {\n $sql .= ' USING ('.implode(', ', array_map(array($this->quoter, 'quoteColumn'), $this->using)).')';\n } else {\n $conditions = array();\n\n foreach ($this->on as $condition) {\n list($c1, $op, $c2) = $condition;\n\n if ($op) {\n $op = ' '.strtoupper($op);\n }\n\n $conditions[] = $this->quoter->quoteColumn($c1).$op.' '.$this->quoter->quoteColumn($c2);\n }\n\n $sql .= ' ON ('.implode(' AND ', $conditions).')';\n }\n\n return $sql;\n }", "function xiliml_adjacent_join_filter( $join, $in_same_cat, $excluded_categories ) {\n\t\tglobal $post, $wpdb;\n\t\t$curlang = xiliml_get_lang_object_of_post( $post->ID );\n\n\t\tif ( $curlang ) { // only when language is defined !\n\t\t\t$join .= \" LEFT JOIN $wpdb->term_relationships as xtr ON (p.ID = xtr.object_id) LEFT JOIN $wpdb->term_taxonomy as xtt ON (xtr.term_taxonomy_id = xtt.term_taxonomy_id) \";\n\t\t}\n\t\treturn $join;\n\t}", "public function makeSearchJoin($join)\n {\n global $wpdb;\n\n if (is_search()) {\n\n $join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\n foreach ($this->getAvailableMetaKeysForFilters() as $values) {\n if (isset($_GET[$values]) && !empty($_GET[$values])) {\n $join .= \" LEFT JOIN $wpdb->postmeta as $values ON $wpdb->posts.ID = $values.post_id\";\n\n }\n }\n\n }\n\n return $join;\n }", "protected function joining_table()\n {\n return $this->connection()->table($this->joining);\n }", "protected function build_join_on( $join, $table ) {\n\n $field_1 = $table . '.' . $join['on']['field'];\n $compare = $join['on']['compare'];\n $field_2 = ( $this->table_short !== '' ) ? $this->table_short : $this->table;\n $field_2 .= '.' . $join['on']['join_field'];\n\n return ' ON ' . $field_1 . ' ' . $compare . ' ' . $field_2;\n }", "public function joinCustomers()\n {\n $this->builder->join('customers', 'cus_id', 'rc_customer');\n }", "function joins() {\n //\n //begin with an empty array of joins \n $joins=[];\n //\n //Clean the array to remove any dublicates\n //\n //Sort the array in order of dependency\n $unsorted_entities=[];\n foreach ($this->join_entities as $enames){\n //\n //Get the entities\n $entty= $this->entity->dbase->entities[$enames];\n array_push($unsorted_entities, $entty);\n }\n \n //loop through the sorted array creating a join from each \n foreach ($unsorted_entities as $entity){\n //\n //get the ands columns\n $foreigns= $this->get_foreigners($entity, $joins);\n //\n //Create a new join \n array_push($joins, new join($entity, $foreigns, 'INNER JOIN'));\n }\n //\n //Return the collection of the joins in an array \n return $joins;\n }", "public function joinAssociations()\n {\n return array_slice($this->_joins, 1);\n }", "public function joinAdvogado($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('Advogado');\n\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'Advogado');\n\t\t}\n\n\t\treturn $this;\n\t}", "public function joinPagoEfectivoRelatedByIdAutoriza($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('PagoEfectivoRelatedByIdAutoriza');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'PagoEfectivoRelatedByIdAutoriza');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function joinFields()\r\n {\r\n if (!$this->_joinedFields) {\r\n $this->getSelect()->join(\r\n array('related' => $this->getTable('mageplaza_betterblog/tag_post')),\r\n 'related.post_id = e.entity_id',\r\n array('position')\r\n );\r\n $this->_joinedFields = true;\r\n }\r\n return $this;\r\n }", "public static function adjacent_post_link_join( $join) {\n $post = get_post();\n // only make changes if we are talking about event posts\n if ( self::$o->core_post_type == $post->post_type ) {\n $wpdb='';\n // using start date as the sorter not the post_date\n $join .= $wpdb->prepare( ' inner join ' . $wpdb->postmeta . ' as qspm on qspm.post_id = p.ID AND qspm.meta_key = %s', '_start' );\n }\n\n return $join;\n }", "protected function set_join($other)\n {\n $this->table->join($this->joining, $this->associated_key(), '=', $this->joining . '.' . $other);\n return $this;\n }", "public function joinPagoEfectivoRelatedByIdPersona($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('PagoEfectivoRelatedByIdPersona');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'PagoEfectivoRelatedByIdPersona');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "private function addJoinsFromRelatedModel($relationship)\n {\n /** @var Loupe $model */\n foreach ($this->relationships as $model) {\n if (method_exists($model, $relationship)) {\n $model->$relationship();\n $statement = $this->getStatement();\n\n foreach ($model->getStatement()->getJoins() as $join) {\n $statement->setJoinString($join);\n }\n }\n }\n }", "public function joinPedido($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('Pedido');\n\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'Pedido');\n\t\t}\n\n\t\treturn $this;\n\t}", "public function testBuildSelectWithJoin()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->fields()\n ->addField('user@email', 'email')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->fields()\n ->addField('user@email', 'email')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n \"'user@email' AS table1__email, 'user@email' AS table2__email\",\n $query->buildSelectFields()\n );\n }", "function to_str(){\n //\n //Get the name of the entity \n $ename= $this->entity->name;\n //\n //The type of the join eg inner join, outer join\n $join_str=\"$this->type\"\n //\n //The on clause\n . \"\\t `$ename` \\tON \\t{$this->get_ons()}\";\n return $join_str;\n }", "public static function join($joinTable, $joinCondition, $joinType = '')\r\n {\r\n return self::$PDO->join($joinTable, $joinCondition, $joinType);\r\n }", "public function fullOuterJoin($table);", "public function join($builder, $relation, $model = null, $method = 'leftJoin')\n {\n $model = $model ?? $builder->getModel();\n\n if ($builder instanceof \\Illuminate\\Database\\Eloquent\\Relations\\Relation) {\n $builder = $builder->getQuery();\n }\n \n\n $relations = explode('.', $relation);\n\n $currentTableAlias = $model->getTable();\n $basePrimaryKey = $model->getKeyName();\n\n $currentModel = $model;\n\n foreach ($relations as $i => $relation) {\n $relatedRelation = $currentModel->$relation();\n $relatedRelation::noConstraints(function () use ($relation, &$currentModel, &$currentTableAlias, $relations, $i, $method, $builder) {\n $relatedRelation = $currentModel->$relation();\n $relatedModel = $relatedRelation->getRelated();\n $relationName = $this->parseAlias(array_slice($relations, 0, $i + 1));\n\n $joinQuery = $relatedModel->getTable().($relatedModel->getTable() !== $relationName ? ' as '.$relationName : '');\n\n // @TODO, check if same joinQuery is already in $builder\n foreach ($this->getResolvers()->toArray() as $key => $resolverClass) {\n if ($relatedRelation instanceof $key) {\n $resolver = new $resolverClass;\n\n $resolver\n ->setRelationName($relationName)\n ->setMethod($method)\n ->setRelation($relatedRelation)\n ->setSourceTable($currentTableAlias)\n ->setTargetTable($relationName)\n ;\n\n $resolver->resolve($builder);\n\n break; //uhm..........\n }\n }\n\n $currentModel = $relatedModel;\n $currentTableAlias = $relationName;\n });\n }\n }", "private function joinWithRelation($parent, $child, $joinType)\n {\n $via = $child->via;\n $child->via = null;\n if ($via instanceof ActiveQuery) {\n // via table\n $this->joinWithRelation($parent, $via, $joinType);\n $this->joinWithRelation($via, $child, $joinType);\n return;\n } elseif (is_array($via)) {\n // via relation\n $this->joinWithRelation($parent, $via[1], $joinType);\n $this->joinWithRelation($via[1], $child, $joinType);\n return;\n }\n\n list ($parentTable, $parentAlias) = $this->getQueryTableName($parent);\n list ($childTable, $childAlias) = $this->getQueryTableName($child);\n\n if (!empty($child->link)) {\n\n if (strpos($parentAlias, '{{') === false) {\n $parentAlias = '{{' . $parentAlias . '}}';\n }\n if (strpos($childAlias, '{{') === false) {\n $childAlias = '{{' . $childAlias . '}}';\n }\n\n $on = [];\n foreach ($child->link as $childColumn => $parentColumn) {\n $on[] = \"$parentAlias.[[$parentColumn]] = $childAlias.[[$childColumn]]\";\n }\n $on = implode(' AND ', $on);\n if (!empty($child->on)) {\n $on = ['and', $on, $child->on];\n }\n } else {\n $on = $child->on;\n }\n $this->join($joinType, empty($child->from) ? $childTable : $child->from, $on);\n\n if (!empty($child->where)) {\n $this->andWhere($child->where);\n }\n if (!empty($child->having)) {\n $this->andHaving($child->having);\n }\n if (!empty($child->orderBy)) {\n $this->addOrderBy($child->orderBy);\n }\n if (!empty($child->groupBy)) {\n $this->addGroupBy($child->groupBy);\n }\n if (!empty($child->params)) {\n $this->addParams($child->params);\n }\n if (!empty($child->join)) {\n foreach ($child->join as $join) {\n $this->join[] = $join;\n }\n }\n if (!empty($child->union)) {\n foreach ($child->union as $union) {\n $this->union[] = $union;\n }\n }\n }", "protected function addJoinProduct(Criteria &$query)\n {\n // Join RewritingURL with Product to have only visible products\n $join = new Join();\n\n $join->addExplicitCondition(\n RewritingUrlTableMap::TABLE_NAME,\n 'VIEW_ID',\n null,\n ProductTableMap::TABLE_NAME,\n 'ID',\n null\n );\n\n $join->setJoinType(Criteria::INNER_JOIN);\n $query->addJoinObject($join, 'productJoin');\n\n // Get only visible products\n $query->addJoinCondition('productJoin', ProductTableMap::VISIBLE, 1, Criteria::EQUAL, \\PDO::PARAM_INT);\n }", "public function testJoinWithoutAlias()\n {\n $query = (new Select($this->mockConnection))->join('join', 'join.tableId', '=', 'table.id');\n $array = $query->toArray();\n\n $this->assertInstanceOf(Select::class, $query);\n $this->assertArrayHasKey('join', $array);\n $this->assertCount(1, $array['join']);\n $this->assertEquals([\n 'type' => 'inner',\n 'table' => 'join',\n 'alias' => null,\n 'statement' => [\n 'where' => [\n [\n 'column' => 'join.tableId',\n 'operator' => '=',\n 'value' => 'table.id',\n 'boolean' => 'and',\n ]\n ],\n ]\n ], $array['join'][0]);\n $this->assertInstanceOf(Column::class, $array['join'][0]['statement']['where'][0]['value']);\n }", "public function joinPrestamo($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Prestamo');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Prestamo');\n }\n\n return $this;\n }" ]
[ "0.73890704", "0.66605043", "0.6617807", "0.64953744", "0.6383768", "0.6323522", "0.63007224", "0.62926966", "0.62266564", "0.6190041", "0.61895835", "0.61452544", "0.61168504", "0.611552", "0.610706", "0.61064625", "0.61038846", "0.6087383", "0.60788417", "0.60751504", "0.6032393", "0.60016286", "0.59914833", "0.5961165", "0.5951063", "0.5943171", "0.5936534", "0.59342", "0.59233314", "0.5923237", "0.591519", "0.5894394", "0.5872203", "0.5862223", "0.5862029", "0.58565915", "0.5854506", "0.58119166", "0.5809038", "0.5806428", "0.58035", "0.5803211", "0.57970744", "0.5790411", "0.577771", "0.57758504", "0.57715434", "0.5770167", "0.57650864", "0.5760848", "0.5750534", "0.57368106", "0.5734395", "0.5729391", "0.5722506", "0.57098866", "0.5709613", "0.56854606", "0.5684104", "0.5677736", "0.56753063", "0.56657845", "0.5656417", "0.565177", "0.564999", "0.5648847", "0.5648846", "0.5645333", "0.5627712", "0.5624611", "0.5623165", "0.56210196", "0.5615609", "0.5608606", "0.560785", "0.56009763", "0.5595367", "0.55890757", "0.5586743", "0.5582835", "0.55786806", "0.55761737", "0.5571246", "0.5567134", "0.55516154", "0.55480546", "0.55406976", "0.5538483", "0.5533072", "0.55223906", "0.552043", "0.5519249", "0.5518107", "0.55144966", "0.54998714", "0.54934764", "0.5488211", "0.5484178", "0.54811746", "0.548003" ]
0.60417414
20
Use the Partenaire relation Partenaire object
public function usePartenaireQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinPartenaire($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Partenaire', '\PartenaireQuery'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function partidas()\n {\n \treturn $this->hasMany('App\\Presupuesto_Partida', 'tPresupuesto_idPresupuesto', 'idPresupuesto');\n }", "public function paris() {\n $relation = $this->hasMany(\"Paris\");\n return $relation;\n }", "public function palmares() {\n $relation = $this->hasOne(\"Palmares\");\n return $relation;\n }", "protected static function _relations() {\n\n\t}", "public function pais(){\n return $this->belongsTo('App\\Models\\Pais');//relaciona provincia con pais\n }", "public function part()\n {\n return $this->belongsTo(Part::class);\n }", "public function proveedor(){\n return $this->belongsTo('App\\Proveedor', 'proveedor_legajo', 'tecnico_legajo');\n }", "abstract function relations();", "public function product()\n {\n //retorna un solo objeto product, la capacitacion solo tiene un producto\n return $this->belongsTo('Vest\\Tables\\Product');\n }", "public function product()\n {\n return $this->belongsTo(ProductProxy::modelClass());\n }", "public function peliculas(){\n // Retornar tipo de relacion\n return $this->hasMany('App\\Pelicula');\n }", "public function partner()\n {\n return $this->belongsTo(Partner::class);\n }", "public function part()\n {\n return $this->belongsTo('App\\Part', 'id_part')->first();\n }", "public function setRelations() {}", "public function prodi(){\n\t\treturn $this->hasMany(Prodi::class, \"id_jurusan\", \"id\");\n\t}", "public function product(): BelongsTo\n {\n return $this->belongsTo(ProductProxy::modelClass());\n }", "public function executeArticleRelations()\n {\n $this->article = ArticlePeer::retrieveByPK($this->getRequestParameter('id'));\n }", "public function product()\n {\n \t// belongsTo(RelatedModel, foreignKey = p_id, keyOnRelatedModel = id)\n \treturn $this->belongsTo('App\\Product','p_id','p_id');\n }", "public function acessarRelatorios(){\n\n }", "public function product()\n\t{\n\t\treturn $this->belongsTo('Tricks\\Product');\n\t}", "public function ponderacion() {\n\t\treturn $this->belongsTo('App\\Ponderacion');\n\t}", "public function pronostic() {\n $relation = $this->hasOne(\"Pronostic\");\n return $relation;\n }", "public function relasiProdi()\n {\n return $this->belongsTo(\n 'PMW\\Models\\Prodi',\n 'id_prodi');\n }", "public function producteur()\n {\n return $this->belongsTo(Producteur::class, 'id_producteur', 'id_producteur');\n }", "public function train(){\n\t\t\n\t\treturn $this->belongsTo('Alsaudi\\\\Eloquent\\\\TrainRelation');\n\t}", "public function parientes()\n {\n return $this->belongsToMany('CBA\\Pariente', 'estudiante_pariente', 'id_estudiantes', 'id_parientes')\n ->withPivot('es_representante');\n }", "public function proveedor()\n {\n return $this->hasOne('App\\Proveedor', 'id');\n }", "public function peserta()\n {\n \t$this->belongsTo('App\\Siswa','id_peserta');\n }", "public function getClient()\n {\n return $this->hasOne(Partenaire::class, ['id' => 'client_id']);\n }", "public function ansprechpartner()\n {\n return $this->hasMany(Ansprechpartner::class, 'KUNU', 'KUNU');\n }", "public function Pedido(){\n return $this->hasOne(\"App\\Models\\Pedido\");\n }", "public function valide()\n {\n return $this->hasMany('App\\Models\\Publication','departement_pub','user_id');\n }", "public function prodi() {\n return $this->belongsTo( 'App\\Prodi', 'kd_prodi', 'kd_prodi' );\n }", "public function pais(){\r\n return $this->belongsTo('pais');\r\n }", "public function product()\n {\n \treturn $this->belongsTo('App\\Product');\n }", "public function product()\n {\n \treturn $this->belongsTo('App\\Product');\n }", "protected\tfunction\tsetRelations() {}", "protected\tfunction\tsetRelations() {}", "PUBLIC function Proveedor(){\n return $this->belongsto('App\\Models\\proveedor','id');\n }", "public function getPrograma()\n {\n return $this->hasOne(InterPrograma::className(), ['id' => 'programa_id']);\n }", "protected function relationship() {\n \n $this->message(__METHOD__);\n\n $t = $this->peek();\n if ($t != EPL_T_HAS && $t != EPL_T_COMPOSED_OF) {\n $this->syntax_error(\"'has' or 'composed_of' is expected\");\n return false;\n }\n $this->next();\n\n // fix bug 179: allow date type keywords to be class names\n $this->_lexer->toggleDataTypeTokens();\n\n // get type\n $type = epFieldMap::DT_HAS;\n if ($t == EPL_T_COMPOSED_OF) {\n $type = epFieldMap::DT_COMPOSED_OF;\n }\n\n // create a relationship field map\n $this->map['type'] = $type;\n $this->map['params'] = array();\n\n // one?\n $this->map['params']['is_many'] = false;\n if ($this->peek() == EPL_T_ONE) {\n $this->next();\n } \n // many?\n else if ($this->peek() == EPL_T_MANY) {\n $this->next();\n $this->map['params']['is_many'] = true;\n }\n\n // class\n $this->map['params']['class'] = false;\n if ($this->peek() == EPL_T_IDENTIFIER) {\n $this->next();\n $this->map['params']['class'] = $this->t->value;\n } else {\n $this->syntax_error(\"Class name is expected\");\n return false;\n }\n \n // toggle data types back\n $this->_lexer->toggleDataTypeTokens();\n\n // inverse\n $this->map['params']['inverse'] = false;\n if ($this->peek() == EPL_T_INVERSE) {\n \n // consume inverse\n $this->next();\n \n // get inverse parameters\n $params = $this->params();\n if (!$params || count($params) != 1) {\n $this->syntax_error(\"Invalid parameters for inverse\");\n return false;\n }\n $this->map['params']['inverse'] = $params[0];\n }\n\n return true;\n }", "public function product()\n {\n \treturn $this->belongsTo(Product::class);\n }", "public function getIdpeliculas()\n {\n return $this->hasMany(Pelicula::className(), ['id' => 'idpelicula'])->viaTable('actores_por_pelicula', ['idactor' => 'id']);\n }", "public function learn() \n\t{\n\t\treturn $this->belongsTo('App\\Models\\Learn', 'product_id', 'id');\n\t}", "public function postulanteR()\n {\n \treturn $this->belongsTo('App\\Postulante','postulante'); //Id local\n }", "public function proveedorTraslado(){\n \treturn $this->belongsTo(ProveedorTraslado::class,'proveedor_traslado_id');\n }", "public function product()\n {\n return $this->belongsTo('TechTrader\\Models\\Product');\n }", "public function product()\n {\n return $this->belongsTo('App\\Product');\n\t}", "public function getRelation()\r\n {\r\n return $this->relation;\r\n }", "public function rel_paper() {\n return $this -> belongsTo('App\\Models\\Paper','paper_id','id');\n }", "public function Prodotto()\n {\n return $this->belongsToMany('App\\models\\Prodotto',\n 'App\\models\\Lista','id_cliente',\n 'codice_prodotto','id','codice')\n ->withPivot('quantita_prodotto');\n }", "public function propuesta_tesis(){\n\t\treturn $this->belongsTo('App\\PropuestaTesis', 'ID_Prop_Tesis');\n\t}", "public function producto() {\n return $this->belongsTo(Producto::class);\n }", "public function pertanyaan(){\n \treturn $this->hasMany('App\\Pertanyaan', 'id_aspek');\n }", "function userelation($relation) { atkuse(\"relation\" , $relation); }", "public function setupAssociations() \n {\n \n }", "public function Renja() \n {\n return $this->hasOne('App\\Models\\Renja','id','renja_id');\n }", "public function getAssociation()\n {\n\n }", "public function product() {\n return $this->belongsTo('App\\Entity\\Product');\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function product()\n {\n return $this->belongsTo('App\\Entities\\Product');\n }", "public function proveedores()\n {\n return $this->belongsTo(Proveedor::class);\n }", "public function proveedor(){\n return $this->belongsTo(Proveedor::class,'idproveedor','id');\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "public function plaza()\n {\n return $this->belongsTo(App\\Models\\Plaza::class);\n }", "public function peliculas(){\n //retornar tipo de relacion\n return $this->belongsToMany('App\\Pelicula','pelicula_director');\n }", "public function getParty()\n {\n return $this->hasOne(Partys::class, ['id' => 'party_id']);\n }", "public function acceso_procesamiento_datos(){\n\t\treturn $this->hasMany('App\\AccesoProcesamientoDatos', 'PDa_ID_Asp');\n\t}", "public function product()\n {\n return $this->belongsTo('Laracart\\Product\\Models\\Product', 'product_id');\n\n }", "public function getIdPROVEEDORES(){\n return $this->idPROVEEDORES;\n }", "public function getPessoa()\n { return $this->hasOne(PessoaFisica::className(), ['id' => 'pessoa'])->one(); }", "public function relationship(){\n return $this->hasOne('App\\Relationship','id','relationship_id');\n }", "public function product()\n {\n return $this->hasOne('App\\Models\\Product');\n }", "public function Aremplacer()\n {\n return $this->belongsToMany('App\\Professeur','remplacants_prof','remplacant_id','prof_id');\n }", "public function getPersona()\n {\n return $this->hasOne(Personas::className(), ['id' => 'persona_id']);\n }", "public function getRelation()\n {\n return $this->relation;\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function buildRelations()\n {\n }", "public function producto() {\n return $this\n ->belongsTo('App\\Producto','idProducto');\n }", "public function product()\n\t{\n\t\treturn $this->belongsTo(Product::class, $this->primaryKey);\n\t}", "public function referee()\n {\n return $this->hasOne('App\\Models\\Referee');\n }", "public function Product()\n\t{\n\t\treturn $this->belongsTo('App\\Product');\n\t}", "public function personas(){\n\n return $this->morphedByMany(Persona::class, 'cargoable'); //relacion muchos a muchos \"una persona tiene muchos cargos y un cargo tiene muchas personas\"\n }", "public function producto(){\n return $this->belongsTo(Producto::class);\n }", "public static function transportistas()\n {\n\t\t\t\t $estado = [\"TAB_TABLAS.ESTADO\"=> Constante::ESTADO_ACTIVO];\n\t return (new Persona())->hasMany(new Empresa(),\"IDCATALOGOTABLAS\",\"IDCATALOGOTABLAS\")->where($estado);\n\t\t //return Catalogotablas::hasMany(Catalogotablas::class);\n\t\t}", "public function order_product(){\n return $this->hasOne(Order_product::class);\n }", "public function provincias()\n {\n return $this->belongsToMany(Provincia::class,'projecto__provincias__distritos');\n }", "public function product() \n\t{\n\t\treturn $this->belongsTo('App\\Models\\Product', 'product_id', 'id');\n\t}", "public function profesor(){\r\n return $this->hasMany('profesor','escuela_id');\r\n }", "public function initialize()\n {\n\t\t$this->belongsTo('sfafba_partner_id', 'SfAffiliationPartener', 'sfafpa_id', array('alias' => 'sf_affiliation_partener_partner_id'));\n\n parent::initialize();\n }", "public function getRelationship($name);" ]
[ "0.6557172", "0.6145237", "0.612695", "0.6056674", "0.59523565", "0.5908393", "0.58706284", "0.5841203", "0.58261645", "0.5817294", "0.57479125", "0.57300043", "0.5690598", "0.56748044", "0.56741697", "0.5649222", "0.5648384", "0.5643968", "0.56408304", "0.56371486", "0.56311053", "0.561866", "0.56157607", "0.5589852", "0.5575825", "0.55744326", "0.55618346", "0.55615324", "0.5551106", "0.5533215", "0.5515389", "0.55149615", "0.5505547", "0.5500751", "0.5482608", "0.5482608", "0.5478718", "0.5478718", "0.54779285", "0.54727626", "0.5468031", "0.5461221", "0.54497296", "0.54469585", "0.5445889", "0.5444392", "0.54437727", "0.54225063", "0.5420341", "0.54188555", "0.5413879", "0.54108226", "0.5410365", "0.5406417", "0.5404829", "0.5396415", "0.53956604", "0.5391708", "0.5386645", "0.5382536", "0.5382536", "0.5382536", "0.5382536", "0.53820026", "0.5380455", "0.5378102", "0.53747857", "0.5374229", "0.5372479", "0.5372095", "0.5369215", "0.5369053", "0.5361425", "0.53596747", "0.5356511", "0.5354418", "0.535143", "0.535113", "0.5347636", "0.53474593", "0.53474593", "0.53474593", "0.53474593", "0.53474593", "0.53474593", "0.53474593", "0.53474593", "0.53474593", "0.5346754", "0.53423935", "0.53422517", "0.5337143", "0.5334171", "0.5330127", "0.5318299", "0.53179294", "0.5301105", "0.5300998", "0.5292851", "0.52908933", "0.5290232" ]
0.0
-1
Filter the query by a related \Contact object
public function filterByContact($contact, $comparison = null) { if ($contact instanceof \Contact) { return $this ->addUsingAlias(FPartenaireTableMap::COL_ID_CONTACT, $contact->getID(), $comparison); } elseif ($contact instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(FPartenaireTableMap::COL_ID_CONTACT, $contact->toKeyValue('PrimaryKey', 'ID'), $comparison); } else { throw new PropelException('filterByContact() only accepts arguments of type \Contact or Collection'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByContactRelatedById($contact, $comparison = null)\n {\n if ($contact instanceof Contact) {\n return $this\n ->addUsingAlias(ContactPeer::ID, $contact->getParentId(), $comparison);\n } elseif ($contact instanceof PropelObjectCollection) {\n return $this\n ->useContactRelatedByIdQuery()\n ->filterByPrimaryKeys($contact->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByContactRelatedById() only accepts arguments of type Contact or PropelCollection');\n }\n }", "public function filterByContacts($contacts, $comparison = null)\n {\n if ($contacts instanceof Contacts) {\n return $this\n ->addUsingAlias(ClientSitesPeer::CL_SITE_ID, $contacts->getClSiteId(), $comparison);\n } elseif ($contacts instanceof PropelObjectCollection) {\n return $this\n ->useContactsQuery()\n ->filterByPrimaryKeys($contacts->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByContacts() only accepts arguments of type Contacts or PropelCollection');\n }\n }", "public function contacts()\n {\n return $this->belongsToMany('App\\Contact')->withPivot('is_starred');\n }", "function where($includeContactIDs = FALSE) {\n \n $withoutGroups = CRM_Utils_Array::value('without_groups',\n $this->_formValues\n );\n $whereWithoutGroups = '';\n if ($withoutGroups){\n $whereWithoutGroups = \"\n AND NOT EXISTS (\n SELECT 1 FROM\n civicrm_group_contact c2\n WHERE c2.contact_id = contact_a.id)\n AND NOT EXISTS (\n SELECT 1 FROM\n civicrm_group_contact_cache c3\n WHERE c3.contact_id = contact_a.id)\n \";\n }\n \n $withoutTags = CRM_Utils_Array::value('without_tags',\n $this->_formValues\n );\n $whereWithoutTags = '';\n if ($withoutTags) {\n $whereWithoutTags .= \"\n AND NOT EXISTS (\n SELECT 1 \n FROM civicrm_entity_tag c4 \n WHERE c4.entity_table = 'civicrm_contact' AND c4.entity_id = contact_a.id\n )\";\n }\n \n $where = \"\n contact_a.contact_type = 'Individual' \n AND contact_a.is_deleted = 0 \".$whereWithoutGroups.$whereWithoutTags;\n\n $params = array();\n return $this->whereClause($where, $params);\n }", "public function starrified_contacts()\n {\n\t\treturn $this->belongsToMany('App\\Contact')->wherePivot('is_starred', 1);\n }", "public function contact(){\n return $this->hasOne(Contact::class,'id','contact_id');\n }", "public function contacts()\n {\n return $this->hasMany('Contact');\n }", "public function contacts()\n {\n return $this->hasOne(Contact::class);\n }", "public function getContacts(): Collection\n {\n return $this->hasMany(UserContact::class, 'user_id', 'id')->get();\n }", "public function contacts()\n {\n return $this->hasMany(Contact::class);\n }", "public function contacts()\n {\n return $this->hasMany('App\\Contact');\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ContactPeer::ID, $key, Criteria::EQUAL);\n }", "public function contact()\n {\n return $this->hasMany(contact::class);\n }", "public function searchMyContacts() {\n $criteria = new CDbCriteria;\n\n $accessLevel = Yii::app()->user->checkAccess('ContactsView') ? 1 : 0;\n $conditions = $this->getAccessConditions($accessLevel);\n foreach ($conditions as $arr) {\n $criteria->addCondition($arr['condition'], $arr['operator']);\n $criteria->params = array_merge($criteria->params, $arr['params']);\n }\n\n // $condition = 'assignedTo=\"'.Yii::app()->user->getName().'\"';\n // $parameters=array('limit'=>ceil(Profile::getResultsPerPage()));\n // $parameters['condition']=$condition;\n // $criteria->scopes=array('findAll'=>array($parameters));\n\n return $this->searchBase($criteria);\n }", "public function contacts(){\n\n return $this->hasMany(Contacts::class);\n\n\n }", "function get_contacts_by_company($id) {\n return get_view_data_where('org_contact_list', $id);\n}", "public function query(Contact $model)\n {\n return $model->newQuery();\n }", "public function query(Contact $model)\n {\n return $model->newQuery();\n }", "public function setContact($value){\n return $this->setParameter('contact', $value);\n }", "public function contact()\n {\n return $this->belongsTo(Contact::class, 'contact_id');\n }", "public function contact()\n {\n return $this->belongsTo('App\\Models\\Contact');\n }", "public function contacts()\n {\n return $this->morphedByMany('App\\Contact', 'taggable');\n }", "public function contacts()\n {\n return $this->hasMany('App\\Models\\User\\Contact', 'user_id');\n }", "public function relationshipFilter()\n\t{\n\t\tee()->load->add_package_path(PATH_ADDONS.'relationship');\n\t\tee()->load->library('EntryList');\n\t\tee()->output->send_ajax_response(ee()->entrylist->ajaxFilter());\n\t}", "public function filterById($id = null, $comparison = null)\n {\n if (is_array($id) && null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this->addUsingAlias(ContactPeer::ID, $id, $comparison);\n }", "public function contact()\n {\n return $this->belongsTo('App\\Contact');\n }", "public function findContactBy(array $criteria);", "public function findContactsBy(array $criteria);", "public function getQuery(): ActiveQuery\n {\n return ContactData::find();\n }", "public function contacts()\n {\n return $this->hasManyThrough(Contact::class, Profile::class);\n }", "public function getContacts();", "public function scopeContacts($q, $contactid)\n\t{\n\t\treturn $q->OfParent('\\Emayk\\Ics\\Repo\\Suppliers\\Suppliers', $contactid);\n\t}", "public function getFilteredDetails();", "public function contactDetails()\n {\n return $this->hasMany(ContactDetail::class);\n }", "function where($includeContactIDs = FALSE) {\n $this->getCriteria();\n\n $params = array();\n $where = \"contact_a.contact_type = 'Individual'\";\n $where .= \" AND contact_a.contact_sub_type like '%Pers_Medewerker%'\";\n\n//preferred_language\n if (array_key_exists (\"languages\",$this->formValues)) {\n $lang = implode (\"','\",array_keys($this->formValues[\"languages\"]));\n $where .= \" AND contact_a.preferred_language IN ('$lang')\";\n }\n $count = 1;\n $clause = array();\n\n foreach ($this->criteria as $section) {\n if (!$this->$section) continue;\n $t = array();\n \n foreach ($this->$section as $i) {\n $t [] = $this->column[$section] . \" LIKE '%\". $i .\"%'\";\n }\n $clause[] = \" ( \". implode(\" OR \",$t ). \" ) \";\n $params[$count] = array($this->$section, 'String');\n $count++;\n }\n\n/*\n $params[$count] = array($name, 'String');\n $clause[] = \"contact_a.household_name LIKE %{$count}\";\n $count++;\n*/\n if (!empty($clause)) {\n $where .= ' AND ' . implode(' AND ', $clause);\n }\n return $this->whereClause($where, $params);\n }", "public function show(Contact $contact) {\n //\n }", "public function fromContact()\n {\n return $this->hasOne(User::class, 'id', 'from');\n }", "public function contacts()\n {\n return $this->hasMany('App\\SchoolContact');\n }", "public function contact()\n {\n return $this->hasOne(OrderContact::class);\n }", "private function filterContacts(array $contacts): array\n {\n return array_filter($contacts, function (SupplierContact $c) {\n return $c->getEmail() != '';\n });\n }", "public function contactsOf(){\n return $this->belongsToMany(User::class,'contacts','contact_id','user_id');\n }", "public function show(Contacts $contacts)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "function tilContacts()\n {\n return $this->hasMany('App\\TilContact');\n }", "public function contacts()\n\t{\n\t\treturn $this->hasMany(SupplierContact::class);\n\t}", "public function contact(): BelongsTo\n {\n return $this->belongsTo(Contact::class, 'contact_id');\n }", "public function contact(): BelongsTo\n {\n return $this->belongsTo(Contact::class, 'contact_id');\n }", "public function fetchContacts()\n {\n return $this->contacts;\n }", "public function filterByName($name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $name)) {\n $name = str_replace('*', '%', $name);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(ContactPeer::NAME, $name, $comparison);\n }", "public function filterByContactMultipleRelatedByContactId($contactMultiple, $comparison = null)\n {\n if ($contactMultiple instanceof ContactMultiple) {\n return $this\n ->addUsingAlias(ContactPeer::ID, $contactMultiple->getContactId(), $comparison);\n } elseif ($contactMultiple instanceof PropelObjectCollection) {\n return $this\n ->useContactMultipleRelatedByContactIdQuery()\n ->filterByPrimaryKeys($contactMultiple->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByContactMultipleRelatedByContactId() only accepts arguments of type ContactMultiple or PropelCollection');\n }\n }", "public function findContactById($id)\n {\n return $this->getContacts()->findContactById($id);\n }", "public function filter()\n {\n $mySearch = $_GET['mySearch'];\n $data = Contact::where('name', 'like', '%' .$mySearch . '%')\n ->orWhere('email', 'like', '%' . $mySearch . '%')\n ->orwhere('phone', 'like', '%' . $mySearch . '%')\n ->orwhere('subject', 'like', '%' . $mySearch . '%')\n ->orwhere('message', 'like', '%' . $mySearch . '%')\n ->orderBy('id', 'desc')->get();\n\n $output = '';\n $count = $data->count();\n if ($count > 0) {\n foreach ($data as $row ) {\n\n $output .=' <tr>\n <td>'.$row->id.'</td>\n <td>'.$row->name.'</td>\n <td>'.$row->email.'</td>\n <td>'.$row->phone.'</td>\n <td>'.$row->subject.'</td>\n <td>'.$row->message.'</td>\n \n <td>\n <form action=\"'.url('admin/contact/delete/'.$row->id).'\" method=\"POST\">\n '.csrf_field().'\n <input type=\"hidden\" name=\"_method\" value=\"DELETE\"> \n <button type=\"submit\" class=\"btn btn-sm btn-danger\">Delete</button>\n </form>\n\n </td>\n </tr>';\n\n }\n\n\n } else {\n $output = '<tr>\n <td colspan=\"6\"><div class=\"alert alert-info\">No Result Found</div> </td>\n </tr>';\n }\n return $output;\n }", "public function filterByContactRelatedByParentId($contact, $comparison = null)\n {\n if ($contact instanceof Contact) {\n return $this\n ->addUsingAlias(ContactPeer::PARENT_ID, $contact->getId(), $comparison);\n } elseif ($contact instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(ContactPeer::PARENT_ID, $contact->toKeyValue('PrimaryKey', 'Id'), $comparison);\n } else {\n throw new PropelException('filterByContactRelatedByParentId() only accepts arguments of type Contact or PropelCollection');\n }\n }", "public function search($name)\n {\n // Get the authenticated user\n $user = auth()->user();\n\n return Contact::\n where('name', 'like', '%'.$name.'%')->\n where('user_id', $user->id)->\n get();\n }", "public function prune($contact = null)\n {\n if ($contact) {\n $this->addUsingAlias(ContactPeer::ID, $contact->getId(), Criteria::NOT_EQUAL);\n }\n\n return $this;\n }", "public function contactInfos()\n {\n return $this->belongsToMany(ContactInfo::class);\n }", "public function getContacts($id) {\n\n $contacts = DB::table('contacts')\n ->select('contacts.*', 'social_contacts.*')\n ->join('social_contacts','contacts.id','=','social_contacts.id')\n ->where('social_contacts.id', '=', $id)\n ->first();\n\n return $contacts;\n }", "function where($includeContactIDs = FALSE) {\n $params = [];\n $clause = [\"contact_a.contact_type = 'Individual'\"];\n\n $stateId = CRM_Utils_Array::value('state_province_id', $this->_formValues);\n\n if ($stateId) {\n $params[1] = [$stateId, 'Integer'];\n $clause[] = \"ca.state_province_id = %1\";\n }\n\n // Admitted, this is a little stupid since there is at most 1 clause.\n // But hey, now we can add more filters to the form if needed.\n\n if (!empty($clause)) {\n $where = implode(' AND ', $clause);\n }\n\n return $this->whereClause($where, $params);\n }", "public function getContacts() {\n return $this->contacts;\n }", "function contacts_getList ($per_page = 25, $page = 1, $filter = NULL) {\n $response = $this->execute(array('method' => 'flickr.contacts.getList', 'per_page' => $per_page, 'page' => $page, 'filter' => $filter));\n\t\t$object = unserialize($response);\n\t\tif ($object['stat'] == 'ok') {\n\t\t\treturn $object['contacts'];\n\t\t} else {\n\t\t\t$this->setError($object['message'], $object['code']);\n\t\t\treturn NULL;\n\t\t}\n\t}", "public function getContactsCrmSearchUrl()\n {\n $type = 'contact' ;\n return $this->getEntitiesCrmSearchUrl( $type ) ;\n }", "public function search($query)\n {\n //return $this->model->where('name', 'like', \"%$query%\")->where('user_id', 1)->get();\n return Contact::search($query)->where('user_id', 1)->get();\n }", "public function filterByPressContact($pressContact, $comparison = null)\n {\n if ($pressContact instanceof PressContact) {\n return $this\n ->addUsingAlias(sfGuardUserPeer::ID, $pressContact->getUserId(), $comparison);\n } elseif ($pressContact instanceof PropelObjectCollection) {\n return $this\n ->usePressContactQuery()\n ->filterByPrimaryKeys($pressContact->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByPressContact() only accepts arguments of type PressContact or PropelCollection');\n }\n }", "public function contactSearch($queryStrings)\r\n {\r\n // get the field names of both the Contact and Address Entities.\r\n $contactClassProperties = $this->getClassMetadata('AppBundle:Contact')->fieldNames;\r\n $addressClassProperties = $this->getEntityManager()->getRepository('AppBundle:Address')->getClassMetadata()->fieldNames;\r\n\r\n //Add all of the class properties arrays to one array\r\n $classPropertiesArray = array($contactClassProperties, $addressClassProperties);\r\n\r\n $count = 0;\r\n // shift off the id of each entity\r\n foreach ($classPropertiesArray as $array)\r\n {\r\n array_shift($array);\r\n $classPropertiesArray[$count] = $array;\r\n $count++;\r\n }\r\n\r\n //an array of abbreviations to be used in the query. These represent each join\r\n $classNames = array('co', 'a');\r\n\r\n //create a searchHelper instance\r\n $searchHelper = new SearchHelper();\r\n\r\n //call the searchHelper service to return the class properties string\r\n $classPropertiesString = $searchHelper->searchHelper($classPropertiesArray, $queryStrings, $classNames);\r\n\r\n // The query that defines all the joins on communications to search for,\r\n // and links them together based on id's\r\n $records = $this->getEntityManager()->createQuery(\r\n \"SELECT co, a FROM AppBundle:Contact co\r\n LEFT OUTER JOIN AppBundle:Address a WITH co.address = a.id\r\n WHERE $classPropertiesString\"\r\n )->getResult();\r\n\r\n // remove any NULL values from the array (NULL values are represented by non-contact objects)\r\n $records = array_filter($records);\r\n\r\n $contactObjects = array();\r\n\r\n foreach ($records as $record)\r\n {\r\n if(get_class($record) == \"AppBundle\\Entity\\Contact\")\r\n {\r\n $contactObjects[] = $record;\r\n }\r\n }\r\n\r\n return $contactObjects;\r\n }", "function getContact($id) {\n\t\t$query = $this->createQuery();\n\t\t$query .= \"WHERE c2.id = $id\";\n\t\t$res = $this->database->getRow($query);\n\t\t\n\t\t// modify status\n\t\t$res[\"status\"] = $this->statusCaption($res[\"status\"]);\n\t\t\n\t\treturn $res;\n\t}", "private function filterByPermission(){\n\n }", "public function search($params)\n {\n $query = Invoice::find()\n // ->select(new \\yii\\db\\Expression('*, if(issue_to = 0, (SELECT concat(c.firstname , \" \" , c.lastname) FROM em_order o left join em_contact c on o.billed_to = c.id WHERE o.invoice_id = em_payment_invoice.id ), contact.contact_name ) AS `issue_persona`'))\n\n // ->joinWith('contact contact')\n /*->joinWith('order order')\n ->with('order')\n ->join('left join',Contact::tableName(), 'if('.Invoice::tableName().'.issue_to = 0 ,\n order.billed_to = '.Contact::tableName() . '.id, \n '.Invoice::tableName().'.issue_to = '.Contact::tableName().'.id)' )*/\n ;\n\n if (Yii::$app->moduleManager->isModuleEnabled('order')) {\n $query->joinWith('order order');\n }\n $query->joinWith(['billedTo' => function($q) {\n $q->alias('billedTo')->joinWith('user billedToUser');\n }]);\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 25,\n ],\n ]);\n\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n } \n $dataProvider->sort->attributes['contactName'] = [\n 'asc' => [\n Contact::tableName() . '.contact_name' => SORT_ASC, \n Contact::tableName() . '.firstname' => SORT_ASC, \n Contact::tableName() . '.lastname' => SORT_ASC\n ],\n 'desc' => [\n Contact::tableName() . '.contact_name' => SORT_DESC, \n Contact::tableName() . '.firstname' => SORT_DESC, \n Contact::tableName() . '.lastname' => SORT_ASC\n ],\n ];\n\n if (isset($this->contactName) && strlen(trim($this->contactName)))\n {\n $query\n ->andFilterWhere(['or',\n ['like', Contact::tableName() . '.firstname', $this->contactName],\n ['like', Contact::tableName() . '.contact_name', $this->issue_to],\n ['like', Contact::tableName() . '.lastname', $this->contactName],\n ])\n ->orderBy([Contact::tableName() . '.firstname' => SORT_ASC]);\n\n }\n\n if (isset($this->status) && strlen(trim($this->status))) {\n if ($this->status == Invoice::STATUS_PAID) {\n $this->status = ['1','2'];\n }\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'total_amount' => $this->total_amount,\n 'discount_amount' => $this->discount_amount,\n 'service_charges_amount' => $this->service_charges_amount,\n 'tax_amount' => $this->tax_amount,\n 'paid_amount' => $this->paid_amount,\n 'issue_by' => $this->issue_by,\n 'due_date' => $this->due_date,\n 'issue_date' => $this->issue_date,\n // 'status' => $this->status,\n 'updated_at' => $this->updated_at,\n ]);\n\n $query\n ->andFilterWhere(['OR', ['issue_to' => $this->userId], ['billedToUser.id' => $this->userId]])\n ->andFilterWhere(['like', Invoice::tableName() . '.formatted_id', $this->formatted_id])\n ->andFilterWhere(['like', Invoice::tableName() . '.created_at' , $this->created_at])\n //->andFilterWhere(['like', Contact::tableName() . '.contact_name', $this->contactName])\n ->andFilterWhere([Invoice::tableName() . '.status' => $this->status])\n ->andFilterWhere(['like', 'remark', $this->remark]);\n\n return $dataProvider;\n }", "abstract protected function foreignIDFilter($id = null);", "public function filterByCustomerId($customerId)\n {\n $this->addFieldToFilter('customer_id', $customerId);\n return $this;\n }", "public function ByContactID($id)\n\t{\n\t\t$restraint = new DotCoreDALRestraint();\n\t\t$restraint->AddRestraint(\n\t\t\tnew DotCoreFieldRestraint($this->getFieldContactID(), $id));\n\n\t\treturn $this->Restraints($restraint);\n\t}", "public function show(Contacto $contacto)\n {\n //\n }", "public function show(Contacto $contacto)\n {\n //\n }", "public function getContacts()\n\t{\n\t\treturn $this->contacts; \n\n\t}", "public function mapToModel($contact);", "public function financeContact()\n {\n return $this->belongsTo('App\\\\User', 'finance_contact_id');\n }", "public function getContacts()\r\n {\r\n return $this->_contacts;\r\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function contactpersons()\n {\n return $this->hasManyThrough('App\\ContactPerson', 'App\\Client');\n }", "public function getCustomerDetails($customer_id)\r\n {\r\n $business_id = request()->session()->get('business.id');\r\n $query = Contact::leftjoin('transactions AS t', 'contacts.id', '=', 't.contact_id')\r\n ->leftjoin('contact_groups AS cg', 'contacts.customer_group_id', '=', 'cg.id')\r\n ->where('contacts.business_id', $business_id)\r\n ->where('contacts.id', $customer_id)\r\n ->onlyCustomers()\r\n ->select([\r\n 'contacts.contact_id', 'contacts.name', 'contacts.created_at', 'total_rp', 'cg.name as customer_group', 'city', 'state', 'country', 'landmark', 'mobile', 'contacts.id', 'is_default',\r\n DB::raw(\"SUM(IF(t.type = 'sell' AND t.status = 'final', final_total, 0)) as total_invoice\"),\r\n DB::raw(\"SUM(IF(t.type = 'sell' AND t.status = 'final', (SELECT SUM(IF(is_return = 1,-1*amount,amount)) FROM transaction_payments WHERE transaction_payments.transaction_id=t.id), 0)) as invoice_received\"),\r\n DB::raw(\"SUM(IF(t.type = 'sell_return', final_total, 0)) as total_sell_return\"),\r\n DB::raw(\"SUM(IF(t.type = 'sell_return', (SELECT SUM(amount) FROM transaction_payments WHERE transaction_payments.transaction_id=t.id), 0)) as sell_return_paid\"),\r\n DB::raw(\"SUM(IF(t.type = 'opening_balance', final_total, 0)) as opening_balance\"),\r\n DB::raw(\"SUM(IF(t.type = 'advance_payment', -1*final_total, 0)) as advance_payment\"),\r\n DB::raw(\"SUM(IF(t.type = 'opening_balance', (SELECT SUM(IF(is_return = 1,-1*amount,amount)) FROM transaction_payments WHERE transaction_payments.transaction_id=t.id), 0)) as opening_balance_paid\"),\r\n 'email', 'tax_number', 'contacts.pay_term_number', 'contacts.pay_term_type', 'contacts.credit_limit', 'contacts.custom_field1', 'contacts.custom_field2', 'contacts.custom_field3', 'contacts.custom_field4', 'contacts.type'\r\n ])\r\n ->groupBy('contacts.id')->first();\r\n $due = $query->total_invoice - $query->invoice_received + $query->advance_payment;\r\n $return_due = $query->total_sell_return - $query->sell_return_paid;\r\n $opening_balance = $query->opening_balance - $query->opening_balance_paid;\r\n\r\n $total_outstanding = $due - $return_due + $opening_balance ;\r\n if (empty($total_outstanding)) {\r\n $total_outstanding = 0.00;\r\n }\r\n if (empty($query->credit_limit)) {\r\n $credit_limit = 'No Limit';\r\n } else {\r\n $credit_limit = $query->credit_limit;\r\n }\r\n $business_details = Business::find($business_id);\r\n $customer_references = CustomerReference::where('contact_id', $customer_id)->where('business_id', $business_id)->select('reference')->get();\r\n\r\n\r\n return ['total_outstanding' => strval($this->productUtil->num_f($total_outstanding, false, $business_details, true)), 'credit_limit' => strval($credit_limit), 'customer_references' => $customer_references];\r\n }", "function get_contacts_by_category($employeeID) {\r\n $db = Database::getDB();\r\n $query = 'SELECT * FROM contact\r\n WHERE contact.employeeID = :employeeID\r\n ORDER BY contactID';\r\n $statement = $db->prepare($query);\r\n $statement->bindValue(':employeeID', $employeeID);\r\n $statement->execute();\r\n $contact = $statement->fetchAll();\r\n $statement->closeCursor();\r\n return $contact;\r\n}", "public function company() \n\t{\n\t\treturn $this->belongsTo('Company', 'object_id')->where('soft_deleted', 0);\n\t}", "public function hasContacts() {\n return $this->_has(6);\n }", "public function filterByType($type = null, $comparison = null)\n {\n if (is_array($type)) {\n $useMinMax = false;\n if (isset($type['min'])) {\n $this->addUsingAlias(ContactPeer::TYPE, $type['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($type['max'])) {\n $this->addUsingAlias(ContactPeer::TYPE, $type['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(ContactPeer::TYPE, $type, $comparison);\n }", "public function getCampaignContacts($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(CampaignPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collCampaignContacts === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collCampaignContacts = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(CampaignContactPeer::CAMPAIGN_ID, $this->id);\n\n\t\t\t\tCampaignContactPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collCampaignContacts = CampaignContactPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(CampaignContactPeer::CAMPAIGN_ID, $this->id);\n\n\t\t\t\tCampaignContactPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastCampaignContactCriteria) || !$this->lastCampaignContactCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collCampaignContacts = CampaignContactPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastCampaignContactCriteria = $criteria;\n\t\treturn $this->collCampaignContacts;\n\t}", "public function contact()\n {\n \treturn $this->belongsToMany('Schoolprof\\Contact')->withPivot('label');\n }", "public function distinctActivity()\n {\n return $this->hasMany('App\\Activity')->distinct('from_address');\n }", "public function getContacts(){\n\t\n\t\t$db\t\t= $this->getDbo();\n\t\t\n\t\t$query\t= $db->getQuery( true );\n\t\t$query->select( '*' );\n\t\t$query->from( '#__zbrochure_providers_contacts as c' );\n\t\t$query->join( 'LEFT','#__zbrochure_providers as p on p.provider_id = c.provider_id' );\n\t\t\n\t\t$db->setQuery( $query );\n\t\t$contacts = $db->loadObjectList();\n\t\t\n\t\treturn $contacts;\n\t}", "protected function searchContacts($name, $surname, $phone, $email, $groups)\n {\n $contacts = Contact::where('name', 'like', \"%$name%\")\n ->with('groups')\n ->where('surname', 'like', \"%$surname%\")\n ->where('phone', 'like', \"%$phone%\")\n ->where('email', 'like', \"%$email%\");\n\n if(count($groups)>0){\n $contacts=$contacts->whereHas('groups', function ($q) use ($groups) {\n $q->whereIn('groups.id', $groups);\n });\n }\n\n return $contacts;\n }", "public function getAll()\r\n {\r\n // Query the database and return an array of contacts\r\n return $this->getEntityManager()\r\n ->createQuery(\r\n 'SELECT c FROM AppBundle:Contact c ORDER BY c.firstName, c.lastName ASC'\r\n )\r\n ->getResult();\r\n }", "public function filter() {\r\n\t\t$this->resource->filter();\r\n\t}", "public function getFiltersAddresses()\n {\n return $this->hasMany(FilterAddress::className(), ['address_id' => 'id']);\n }" ]
[ "0.63372123", "0.59283763", "0.58173424", "0.5781456", "0.5766986", "0.5686253", "0.5680812", "0.5675413", "0.5630451", "0.55932033", "0.55681187", "0.5543595", "0.55394554", "0.55358946", "0.55269974", "0.5512471", "0.54591155", "0.54591155", "0.545226", "0.5433128", "0.54176587", "0.5402685", "0.53985256", "0.53847855", "0.5340892", "0.53235257", "0.5321374", "0.5316948", "0.52990633", "0.5287269", "0.52439046", "0.52292705", "0.5222096", "0.52161217", "0.5192202", "0.5170474", "0.5168691", "0.51628965", "0.5155032", "0.5145061", "0.51159036", "0.51097405", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50954634", "0.50666696", "0.5056153", "0.5048183", "0.5048183", "0.50261974", "0.5012785", "0.4975482", "0.49727118", "0.49691057", "0.49637887", "0.49525118", "0.49440193", "0.49234045", "0.49226597", "0.4916641", "0.49163973", "0.49158573", "0.48966026", "0.48864156", "0.48842347", "0.48685056", "0.48408535", "0.48152566", "0.4806975", "0.48047233", "0.47920847", "0.4787122", "0.47805244", "0.47805244", "0.47785896", "0.47737837", "0.47729698", "0.47718918", "0.4767631", "0.47652647", "0.47464904", "0.474439", "0.47396666", "0.47353902", "0.47340408", "0.47302803", "0.47262526", "0.47140536", "0.47109827", "0.47062004", "0.47055387", "0.4703969", "0.46999183" ]
0.5049155
54
Adds a JOIN clause to the query using the Contact relation
public function joinContact($relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Contact'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'Contact'); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function joinQuery()\n {\n }", "public function join($table, $alias = NULL, $condition = NULL, $arguments = []);", "function joinon_Contact_and_Vehicle_singlerecord($rID, $where = NULL) {\r\n if ($where != NULL) { $this->db->where($where); } \r\n $this->db->join(\r\n 'contact', \r\n 'contact.Id = ' . $this->table_name. '.' . $this->contactId_fieldname, \r\n 'left outer'\r\n ); \r\n $this->db->join(\r\n '__vehicles', \r\n '__vehicles.__Id = ' . $this->table_name. '._VehicleId', \r\n 'left outer'\r\n ); \r\n return $this->get($rID);\r\n }", "public function addJoin($type, $table, $alias = NULL, $condition = NULL, $arguments = []);", "function joinClause( $join ) {\n\t global $wpdb;\n\t $join .= \" INNER JOIN $wpdb->postmeta dm ON (dm.post_id = $wpdb->posts.ID AND dm.meta_key = '$this->orderby') \";\n\t return $join;\n\t}", "public function joinCustomers()\n {\n $this->builder->join('customers', 'cus_id', 'rc_customer');\n }", "public function join($table, $condition = [], $join = '')\n\t{\n\t\tif(count($condition) == 3)\n\t\t\t$this->_query .= strtoupper($join) . // convert $join to upper case (left -> LEFT)\n\t\t\t\t\" JOIN {$table} ON {$condition[0]} {$condition[1]} {$condition[2]}\";\n\n\t\t// that's it now return object from this class\n\t\treturn $this;\n }", "function cf_search_join( $join ) {\n\t\tglobal $wpdb;\n\n\t\tif ( is_search() ) {\n\t\t\t$join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t\t}\n\n\t\treturn $join;\n\t}", "function cf_search_join( $join ) {\n\t global $wpdb;\n\n\t if ( is_search() ) { \n\t $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t }\n\t \n\t return $join;\n\t}", "public function addJoin(Builder $queryBuilder) : void\n {\n $queryBuilder->join(\n $this->_relatedTable . ' AS ' . $this->name,\n $this->_baseTable . '.' . $this->_baseKey,\n '=',\n $this->name . '.' . $this->_foreignKey\n );\n }", "abstract public function join($alias_from, $rel_name, $alias_to);", "public function useContactQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinContact($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'Contact', '\\ContactQuery');\n }", "public function joinFields()\n {\n if (!$this->_joinedFields) {\n $this->getSelect()->join(\n array('related' => $this->getTable('oggetto_news/category_news')),\n 'related.news_id = main_table.entity_id',\n array('position')\n );\n $this->_joinedFields = true;\n }\n return $this;\n }", "public function joinContacts($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Contacts');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Contacts');\n }\n\n return $this;\n }", "public function useContactsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinContacts($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'Contacts', 'ContactsQuery');\n }", "function cf_search_join( $join ) {\n global $wpdb;\n if ( is_search() ) {\n $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n return $join;\n}", "private function sql_join($filter, $structure) {\n\t\t$sql = \"\";\n\t\t$table = $structure['table'];\n\t\t$class = $structure['class'];\n\t\t$pool_class = $class . 'Pool_Model';\n\t\t$full_structure = $pool_class::get_full_structure();\n\t\tforeach ($structure['relations'] as $relation) {\n\t\t\tlist($foreign_key, $foreign_table, $key) = $relation;\n\t\t\t$foreign_structure = $full_structure[$foreign_table];\n\t\t\t$ftable = $foreign_structure['table'];\n\t\t\t$join_expr = ' LEFT JOIN '.$ftable.' AS '.$key;\n\t\t\t$join_expr .= ' ON '.implode(' AND ',array_map(function($fk,$lk) use($key,$table) {\n\t\t\t\treturn \"$key.$fk = $table.$lk\";\n\t\t\t}, $foreign_structure['key'], $foreign_key));\n\t\t\t$sql .= $join_expr;\n\t\t}\n\t\treturn $sql;\n\t}", "function cf_search_join( $join ) {\n global $wpdb;\n\n if ( is_search() ) { \n $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n\n return $join;\n}", "function cf_search_join($join) {\n global $wpdb;\n\n if (is_search()) {\n $join .=' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n\n return $join;\n}", "function buildJoin()\n\t{\n\t\tif ($this->table_obj_reference)\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_reference.\" ON \".$this->table_tree.\".child=\".$this->table_obj_reference.\".\".$this->ref_pk.\" \".\n\t\t\t\t \"JOIN \".$this->table_obj_data.\" ON \".$this->table_obj_reference.\".\".$this->obj_pk.\"=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_data.\" ON \".$this->table_tree.\".child=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t}", "public function useMaillingListContactQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinMaillingListContact($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'MaillingListContact', 'MaillingListContactQuery');\n }", "abstract protected function appendJoins(QueryBuilder $queryBuilder);", "private function joins()\r\n {\r\n /* SELECT* FROM DOCUMENT WHERE DOCUMENT.\"id\" IN ( SELECT ID FROM scholar WHERE user_company_id = 40 )*/\r\n\r\n $query = EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n ->sql();\r\n\r\n $table = EyufDocument::find()\r\n ->where('\"id\" IN ' . $query)\r\n ->all();\r\n\r\n $second = EyufDocument::findAll(EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n );\r\n\r\n vdd($second);\r\n }", "public function addJoin($table, $condition, $joinType)\n {\n $this->appendSql($this->filterJoinType($joinType))->\n appendSql(' JOIN ')->\n appendSql($table)->\n appendSql(' ON ')->\n appendSql(\"({$condition})\");\n return $this;\n }", "public function join($sql) {\n $this->__join__ = $sql;\n return $this;\n }", "private function addJoinOnQuery($type, Query $other, Query $whereQuery) {\r\n\t\t//$this->joins[$other->alias]['on'][]=' '.$type.' ('.implode(' ', $whereQuery->wheres).')';\r\n\t\t$this->addJoinOnClause($other, $type, '('.implode(' ',$whereQuery->_salt_wheres).')');\r\n\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::WHERE);\r\n\t}", "public function basic_join_setup()\r\n {\r\n \r\n }", "public function joinMaillingListContact($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('MaillingListContact');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'MaillingListContact');\n }\n\n return $this;\n }", "public function join()\n {\n $this->defaultjoinsetted = true;\n if (!empty($this->entity_link_list)) {\n foreach ($this->entity_link_list as $entity_link) {\n $this->defaultjoin .= \" left join `\" . strtolower(get_class($entity_link)) . \"` on \" . strtolower(get_class($entity_link)) . \".id = \" . $this->table . \".\" . strtolower(get_class($entity_link)) . \"_id\";\n }\n }\n return $this;\n }", "private static function sqlJoining() : string {\n $relations = self::getsRelationsHasOne();\n\n $baseTable = static::tableName();\n $baseProperties = self::getProperties();\n foreach ($baseProperties as &$property) {\n $property = $baseTable . '.' . $property;\n }\n $colsFromBaseTabel = implode(', ', $baseProperties);\n $colsFromJoinedTables = '';\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $modelProperties = $modelNamespace::getProperties();\n foreach ($modelProperties as $key => &$value) {\n $value = $modelTableName . '.' . $value . ' AS ' . $modelTableName . '_' . $value;\n }\n $colsFromJoinedTables .= ', ' . implode(', ', $modelProperties);\n\n }\n $sql = 'SELECT ' . $colsFromBaseTabel . ' ' . $colsFromJoinedTables . ' FROM ' . $baseTable;\n\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $sql .= ' INNER JOIN ' . $modelTableName . ' ON ' . $baseTable . '.' . $relation['column'] . ' = ' . $modelTableName . '.' . $relation['joined-table-column'];\n }\n\n return $sql . ' WHERE ' . $baseTable . '.';\n }", "public function _complex_join()\n {\n // LEFT JOIN `%1$sauth_group` on `%1$spro`.`depid` = `%1$sauth_group`.`id`\n // LEFT JOIN (SELECT a.* FROM `%1$sproout` as a INNER JOIN (SELECT max(`id`) as id FROM `%1$sproout` group by `jpid`) as b on a.id = b.id) as `%1$sproout` on `%1$spro`.`id` = `%1$sproout`.`jpid`\n // LEFT JOIN `%1$scust` on `%1$spro`.`cid` = `%1$scust`.`id`', C('DB_PREFIX'));\n\n $join = sprintf('LEFT JOIN `%1$sproin` ON `%1$spro`.`id` = `%1$sproin`.`jpid`\n LEFT JOIN `%1$sauth_group` on `%1$spro`.`depid` = `%1$sauth_group`.`id`\n LEFT JOIN `%1$sproout` on `%1$sproout`.`jpid` = `%1$spro`.`id`\n LEFT JOIN `%1$sproout` tmp_out on tmp_out.`jpid` = `%1$sproout`.`jpid` and tmp_out.`id` > `%1$sproout`.`id`\n LEFT JOIN `%1$scust` on `%1$spro`.`cid` = `%1$scust`.`id`', C('DB_PREFIX'));\n return $join;\n }", "public function join($table, $on, $field = null, $comparitor = null);", "public function getJoinCondition() {}", "function addJoin($name, $joinType, $tableA, $tableB, $fieldA, $fieldB) {\n\t\t$this->addBlock('from', $name, array(array($joinType, $tableA, $tableB, $fieldA, $fieldB)));\n\t\treturn $this;\n\t}", "public function joinBookings()\n {\n $this->builder->join('bookings', 'book_id', 'bil_booking');\n }", "public function join($fromAlias, $join, $alias, $condition = null)\n {\n return $this->innerJoin($fromAlias, $join, $alias, $condition);\n }", "public function getJoinExpression();", "public function getJoin()\n {\n return $this->get(self::_JOIN);\n }", "protected function setJoin($query = null)\n {\n $query = $query ? : $this->query;\n $baseTable = $this->related->getTable ();\n $key = $baseTable . '.' . $this->related->getKeyName ();\n $query->join ( $this->table, $key, '=', $this->getOtherKey () );\n return $this;\n }", "function whereJoin($relName, $s)\n{\n\t$this->tryModify();\n\n\t$rel = new Relation($this->newModel(null), $relName);\n\n\t$s = $this->setWhereParams($s, func_get_args(), 2);\n\n\t$table = $rel->params['table'];\n\t$join = $rel->getJoinCondition();\n\n\tif(!isset($this->query['whereJoin'])) $this->query['whereJoin'] = array();\n\n\tif ($rel->getType() == 'many_to_many') {\n\t\t$joinTable = $rel->getJoinTableName();\n\t\t$this->query['whereJoin'][] = \"EXISTS (SELECT * FROM $table,$joinTable where $join and ($s))\";\n\t\treturn $this;\n\t}\n\n\t$this->query['whereJoin'][] = \"EXISTS (SELECT * FROM $table WHERE $join AND ($s))\";\n\treturn $this;\n}", "public function get_additional_joins()\n {\n return 'LEFT JOIN isys_catg_its_type_list AS cat_rel\n\t\t\tON cat_rel.isys_catg_its_type_list__isys_obj__id = obj_main.isys_obj__id';\n }", "public function joinPressContact($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('PressContact');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'PressContact');\n }\n\n return $this;\n }", "protected abstract function getJoinClause(array $joins);", "private function set_relation_joins() {\n if(!$this->use_relations) return;\n $relations = [];\n foreach ($this->colmodel as $i => $col) {\n if (!isset($col['relation']))\n continue;\n foreach (explode('>', $col['relation']) as $relation) {\n if (!str_contains($relation, '.'))\n continue;\n list($model_name, $relation_name) = explode('.', $relation);\n if ($relation_name != '' && !in_array($relation, $relations)) {\n $this->set_relation_join($model_name, $relation_name);\n $relations[] = $relation;\n }\n }\n }\n }", "function getJoinCondition() ;", "public function join($tbl_name, array $condition, $type = Operator::JOIN_INNTER)\n {\n $output = array();\n $func = function ($value) use (&$output)\n {\n $value = $this->escapeString($value);\n $output[] = \"`{$value}`\";\n };\n $temp = explode('.', $tbl_name);\n $output = array();\n array_walk($temp, $func);\n $tbl_name = implode('.', $output);\n $target_str = $tbl_name;\n $on_str_list = array();\n foreach ($condition as $item) {\n $temp = explode('.', $item);\n $output = array();\n array_walk($temp, $func);\n $on_str_list[] = implode('.', $output);\n }\n $type = ltrim($type, '$');\n $on_str = implode(' = ', $on_str_list);\n $join_str = \"{$type} {$target_str} ON {$on_str}\";\n $this->join_str_list[] = $join_str;\n return $this;\n }", "function join($table, &$query) {\r\n $left = $query->get_table_info($this->left_table);\r\n $output = \" $this->type JOIN {\" . $this->table . \"} $table[alias] ON ($this->left_query) = $table[alias].$this->field\";\r\n\r\n // Tack on the extra.\r\n if (isset($this->extra)) {\r\n if (is_array($this->extra)) {\r\n $extras = array();\r\n foreach ($this->extra as $info) {\r\n $extra = '';\r\n // Figure out the table name. Remember, only use aliases provided\r\n // if at all possible.\r\n $join_table = '';\r\n if (!array_key_exists('table', $info)) {\r\n $join_table = $table['alias'] . '.';\r\n }\r\n elseif (isset($info['table'])) {\r\n $join_table = $info['table'] . '.';\r\n }\r\n\r\n // And now deal with the value and the operator. Set $q to\r\n // a single-quote for non-numeric values and the\r\n // empty-string for numeric values, then wrap all values in $q.\r\n $raw_value = $this->db_safe($info['value']);\r\n $q = (empty($info['numeric']) ? \"'\" : '');\r\n\r\n if (is_array($raw_value)) {\r\n $operator = !empty($info['operator']) ? $info['operator'] : 'IN';\r\n // Transform from IN() notation to = notation if just one value.\r\n if (count($raw_value) == 1) {\r\n $value = $q . array_shift($raw_value) . $q;\r\n $operator = $operator == 'NOT IN' ? '!=' : '=';\r\n }\r\n else {\r\n $value = \"($q\" . implode(\"$q, $q\", $raw_value) . \"$q)\";\r\n }\r\n }\r\n else {\r\n $operator = !empty($info['operator']) ? $info['operator'] : '=';\r\n $value = \"$q$raw_value$q\";\r\n }\r\n $extras[] = \"$join_table$info[field] $operator $value\";\r\n }\r\n\r\n if ($extras) {\r\n if (count($extras) == 1) {\r\n $output .= ' AND ' . array_shift($extras);\r\n }\r\n else {\r\n $output .= ' AND (' . implode(' ' . $this->extra_type . ' ', $extras) . ')';\r\n }\r\n }\r\n }\r\n else if ($this->extra && is_string($this->extra)) {\r\n $output .= \" AND ($this->extra)\";\r\n }\r\n }\r\n return $output;\r\n }", "public function custom_attachments_join( $join, $query ){\n\t\tglobal $wpdb;\n\n\t\t//if we are not on admin or the current search is not on attachment return\n\t\tif(!is_admin() || (!isset($query->query['post_type']) || $query->query['post_type'] != 'attachment')){\n\t\t\treturn $join;\n\t\t}\n\n\t\t// if current query is the main query and a search...\n\t\tif( is_main_query() && is_search() ){\n\t\t\t$join .= \"\n\t\t\tLEFT JOIN\n\t\t\t{$wpdb->term_relationships} ON {$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id\n\t\t\tLEFT JOIN\n\t\t\t{$wpdb->term_taxonomy} ON {$wpdb->term_taxonomy}.term_taxonomy_id = {$wpdb->term_relationships}.term_taxonomy_id\n\t\t\tLEFT JOIN\n\t\t\t{$wpdb->terms} ON {$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id \";\n\t\t}\n\n\t\treturn $join;\n\t}", "function carton_exclude_order_comments_from_feed_join( $join ) {\n\tglobal $wpdb;\n\n if ( ! $join )\n \t$join = \" LEFT JOIN $wpdb->posts ON $wpdb->comments.\\\"comment_post_ID\\\" = $wpdb->posts.\\\"ID\\\" \";\n\n return $join;\n}", "protected function performJoin(Builder $query = null)\n {\n $query = $query ?: $this->query;\n\n $ownerKey = $this->getQualifiedOwnerKeyName();\n\n $query->join($this->throughChild->getTable(), $ownerKey , '=', $this->getQualifiedFirstKeyName());\n $query->select([\n '*' => $this->related->qualifyColumn('*'),\n $this->secondKey => $this->throughChild->getQualifiedKeyName().' as '.$this->secondKey\n ]);\n\n if ($this->throughChildSoftDeletes()) {\n $query->whereNull($this->throughChild->getQualifiedDeletedAtColumn());\n }\n }", "private function buildJoins(): void {\r\n\r\n if(count($this -> joins) > 0) {\r\n\r\n $query = [];\r\n\r\n foreach($this -> joins as $join) {\r\n\r\n $parts = [];\r\n $parts[] = sprintf('%s JOIN', strtoupper($join['type']));\r\n $parts[] = $join['table'];\r\n\r\n if(null !== $join['alias']) {\r\n $parts[] = $join['alias'];\r\n }\r\n\r\n if(null !== $join['conditions']) {\r\n $parts[] = sprintf('ON %s', $join['conditions']);\r\n }\r\n\r\n $query[] = implode(' ', $parts);\r\n }\r\n\r\n $this -> query[] = implode(' ', $query);\r\n }\r\n }", "private function getJoin() {\n return $this->join;\n }", "public final function addJoin($tbl, $as, $by, $condition, $reset=false)\n {\n if ($reset==true)\n \t$this->join = array();\n\n $this->join[] = array(\n 'tbl' => $tbl,\n 'as' => $as,\n 'by' => $by,\n 'cond' => $condition\n );\n\n return $this;\n }", "public function joinContactRelatedById($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('ContactRelatedById');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'ContactRelatedById');\n }\n\n return $this;\n }", "public function joinBills()\n {\n $this->builder->join('bills', 'bil_id', 'rc_bill');\n }", "public function joinFields()\r\n {\r\n if (!$this->_joinedFields) {\r\n $this->getSelect()->join(\r\n array('related' => $this->getTable('mageplaza_betterblog/tag_post')),\r\n 'related.post_id = e.entity_id',\r\n array('position')\r\n );\r\n $this->_joinedFields = true;\r\n }\r\n return $this;\r\n }", "protected function buildJoinClause() {\r\n\t\t$sql='';\r\n\t\tif (count($this->_salt_joins)>0) {\r\n\t\t\tforeach($this->_salt_joins as $alias => $join) {\r\n\t\t\t\t$sql.=' '.$join['type'].' JOIN '.$join['table'].' ON '.implode(' ', $join['on']);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $sql;\r\n\t}", "public function joinContactMultipleRelatedByContactId($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('ContactMultipleRelatedByContactId');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'ContactMultipleRelatedByContactId');\n }\n\n return $this;\n }", "public function makeSearchJoin($join)\n {\n global $wpdb;\n\n if (is_search()) {\n\n $join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\n foreach ($this->getAvailableMetaKeysForFilters() as $values) {\n if (isset($_GET[$values]) && !empty($_GET[$values])) {\n $join .= \" LEFT JOIN $wpdb->postmeta as $values ON $wpdb->posts.ID = $values.post_id\";\n\n }\n }\n\n }\n\n return $join;\n }", "protected function set_join($other)\n {\n $this->table->join($this->joining, $this->associated_key(), '=', $this->joining . '.' . $other);\n return $this;\n }", "public function joinComplex( $table, $condition, $joint = null )\n {\n $table = $this->addTable($table);\n $this->addJoint($table, $condition, $joint);\n return $this;\n }", "public function addJoin($assocTable, $col1, $col2, $last = true, $type = \"left\") {\n // Joins will always be on selects\n list($this->sql, $this->from) = splitString($this->sql, \"FROM\");\n // Take care of aliased columns\n if (!empty($assocTable->aliases)) {\n $this->sql .= \", \";\n foreach($assocTable->aliases as $c => $a) {\n $this->sql .= $assocTable->name . \".$c as $a,\";\n }\n // Take the comma off the end\n $this->sql = trim($this->sql, \",\");\n }\n $type = strtoupper($type);\n $this->join .= \" $type JOIN \" . $assocTable->name;\n $this->join .= \" ON \" . $this->table->name . \".\" . $col1 . \" = \" . $assocTable->name . \".\" . $col2;\n if ($last) {\n $this->sql .= \" $this->from\";\n $this->sql .= $this->join;\n }\n }", "public function getCampaignContactsJoinContact($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(CampaignPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collCampaignContacts === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t\t$this->collCampaignContacts = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(CampaignContactPeer::CAMPAIGN_ID, $this->id);\n\n\t\t\t\t$this->collCampaignContacts = CampaignContactPeer::doSelectJoinContact($criteria, $con, $join_behavior);\n\t\t\t}\n\t\t} else {\n\t\t\t// the following code is to determine if a new query is\n\t\t\t// called for. If the criteria is the same as the last\n\t\t\t// one, just return the collection.\n\n\t\t\t$criteria->add(CampaignContactPeer::CAMPAIGN_ID, $this->id);\n\n\t\t\tif (!isset($this->lastCampaignContactCriteria) || !$this->lastCampaignContactCriteria->equals($criteria)) {\n\t\t\t\t$this->collCampaignContacts = CampaignContactPeer::doSelectJoinContact($criteria, $con, $join_behavior);\n\t\t\t}\n\t\t}\n\t\t$this->lastCampaignContactCriteria = $criteria;\n\n\t\treturn $this->collCampaignContacts;\n\t}", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "public function joinStudentToGroups(&$q, $from_table, $student_column, $join_group_info = false) {\n\t\t$q->join($from_table, \"StudentGroup\", array($student_column=>\"people\"));\n\t\tif ($join_group_info)\n\t\t\t$q->join(\"StudentGroup\", \"StudentsGroup\", array(\"group\"=>\"id\"));\n\t}", "private function addJoinOnClause($other, $type, $onClause) {\r\n\t\tif (is_array($onClause)) {\r\n\t\t\t$onClause=implode(' ', $onClause);\r\n\t\t}\r\n\t\tif (count($this->_salt_joins[$other->_salt_alias]['on'])>0) {\r\n\t\t\t$this->_salt_joins[$other->_salt_alias]['on'][]=$type.' '.$onClause;\r\n\t\t} else {\r\n\t\t\t$this->_salt_joins[$other->_salt_alias]['on'][]=$onClause;\r\n\t\t}\r\n\t}", "protected function performJoins()\n {\n $query = $this->query;\n\n $predecessor = $this->related;\n\n $this->through_parents->each(function ($model) use ($query, &$predecessor) {\n $first = $predecessor->getQualifiedKeyName();\n $joined = $model->qualifyColumn($this->getForeignKeyName($predecessor));\n\n $query->join($model->getTable(), $first, '=', $joined);\n\n if ($this->hasSoftDeletes($model)) {\n $this->query->whereNull($model->getQualifiedDeletedAtColumn());\n }\n\n $predecessor = $model;\n });\n }", "public function joinResources()\n {\n $this->builder->join('resources', 'rs_id', '=', 'add_resource');\n }", "public function compile()\n {\n if (null !== $this->type) {\n $sql = strtoupper($this->type).' JOIN';\n } else {\n $sql = 'JOIN';\n }\n\n $sql .= ' '.$this->quoter->quoteTable($this->table);\n\n if (!empty($this->using)) {\n $sql .= ' USING ('.implode(', ', array_map(array($this->quoter, 'quoteColumn'), $this->using)).')';\n } else {\n $conditions = array();\n\n foreach ($this->on as $condition) {\n list($c1, $op, $c2) = $condition;\n\n if ($op) {\n $op = ' '.strtoupper($op);\n }\n\n $conditions[] = $this->quoter->quoteColumn($c1).$op.' '.$this->quoter->quoteColumn($c2);\n }\n\n $sql .= ' ON ('.implode(' AND ', $conditions).')';\n }\n\n return $sql;\n }", "public function useContactRelatedByIdQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinContactRelatedById($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'ContactRelatedById', 'ContactQuery');\n }", "public function activityQuery($join = true) {\n $this->SQL\n ->select('a.*')\n ->select('t.FullHeadline, t.ProfileHeadline, t.AllowComments, t.ShowIcon, t.RouteCode')\n ->select('t.Name', '', 'ActivityType')\n ->from('Activity a')\n ->join('ActivityType t', 'a.ActivityTypeID = t.ActivityTypeID');\n\n if ($join) {\n $this->SQL\n ->select('au.Name', '', 'ActivityName')\n ->select('au.Gender', '', 'ActivityGender')\n ->select('au.Photo', '', 'ActivityPhoto')\n ->select('au.Email', '', 'ActivityEmail')\n ->select('ru.Name', '', 'RegardingName')\n ->select('ru.Gender', '', 'RegardingGender')\n ->select('ru.Email', '', 'RegardingEmail')\n ->select('ru.Photo', '', 'RegardingPhoto')\n ->join('User au', 'a.ActivityUserID = au.UserID')\n ->join('User ru', 'a.RegardingUserID = ru.UserID', 'left');\n }\n\n $this->fireEvent('AfterActivityQuery');\n }", "function custom_search_join($join) {\r\n if ( is_search() && isset($_GET['s'])) {\r\n global $wpdb;\r\n $join = \" LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id \";\r\n }\r\n return($join);\r\n}", "function query() {\n dpm($this);\n $this->ensure_my_table();\n\n // First, relate our current table to the link table via the field\n $first = array(\n 'left_table' => $this->table_alias,\n 'left_field' => $this->field, // @TODO real_field?\n 'table' => $this->definition['link table'],\n 'field' => $this->definition['link field'],\n );\n\n if (!empty($this->options['required'])) {\n $first['type'] = 'INNER';\n }\n\n if (!empty($this->definition['link_join_extra'])) {\n $first['extra'] = $this->definition['link_join_extra'];\n }\n\n if (!empty($this->definition['join_handler']) && class_exists($this->definition['join_handler'])) {\n $first_join = new $this->definition['join_handler'];\n }\n else {\n $first_join = new views_join();\n }\n $first_join->definition = $first;\n $first_join->construct();\n $first_join->adjusted = TRUE;\n\n $this->first_alias = $this->query->add_table($this->definition['link table'], $this->relationship, $first_join);\n\n // Second, relate the link table to the entity specified using\n // the specified base fields on the base and link tables.\n $second = array(\n 'left_table' => $this->first_alias,\n 'left_field' => $this->definition['base link field'],\n 'table' => $this->definition['base'],\n 'field' => $this->definition['base field'],\n );\n\n if (!empty($this->options['required'])) {\n $second['type'] = 'INNER';\n }\n\n if (!empty($this->definition['base_join_extra'])) {\n $second['extra'] = $this->definition['base_join_extra'];\n }\n\n if (!empty($this->definition['join_handler']) && class_exists($this->definition['join_handler'])) {\n $second_join = new $this->definition['join_handler'];\n }\n else {\n $second_join = new views_join();\n }\n $second_join->definition = $second;\n $second_join->construct();\n $second_join->adjusted = TRUE;\n\n // use a short alias for this:\n // @TODO real_field?\n $alias = $this->field . '_' . $this->definition['base'];\n\n $this->alias = $this->query->add_relationship($alias, $second_join, $this->definition['base'], $this->relationship);\n }", "protected function from() {\n\n $this->_from = \" FROM civicrm_contact AS {$this->_aliases['civicrm_contact']} \";\n if ($this->_contributionField) {\n //store in a temp table max receive date & relevant contribution _value - described as 'group by trick' here http://dev.mysql.com/doc/refman/5.1/en/example-maximum-column-group-row.html\n //there doesn't appear to be any efficient way to do this without using the temp table\n //as we want to use the latest receive date & the latest value (not the max value)\n //and we want to join this against contact_id\n $query = \"create temporary table civicrm_maxconts SELECT * FROM ( SELECT `receive_date` ,`total_amount`, contact_id FROM `civicrm_contribution` ORDER BY receive_date DESC) as maxies group by contact_id;\";\n $dao = CRM_Core_DAO::executeQuery($query);\n //apparently it is faster to create & then index http://mysqldump.azundris.com/archives/80-CREATE-TEMPORARY-TABLE.html\n $query = \"alter table civicrm_maxconts add index (contact_id);\";\n $dao = CRM_Core_DAO::executeQuery($query);\n $this->_from .= \"LEFT JOIN civicrm_maxconts cont_civireport ON contact_civireport.id = cont_civireport.contact_id \";\n }\n if ($this->_addressField) {\n $this->_from .= \"LEFT JOIN civicrm_address {$this->_aliases['civicrm_address']} ON {$this->_aliases['civicrm_contact']}.id = {$this->_aliases['civicrm_address']}.contact_id AND {$this->_aliases['civicrm_address']}.is_primary = 1\\n\";\n }\n\n if ($this->_emailField) {\n $this->_from .= \"LEFT JOIN civicrm_email {$this->_aliases['civicrm_email']} ON {$this->_aliases['civicrm_contact']}.id = {$this->_aliases['civicrm_email']}.contact_id AND {$this->_aliases['civicrm_email']}.is_primary = 1\\n\";\n }\n\n if ($this->_phoneField) {\n $this->_from .= \"LEFT JOIN civicrm_phone {$this->_aliases['civicrm_phone']} ON {$this->_aliases['civicrm_contact']}.id = {$this->_aliases['civicrm_phone']}.contact_id AND {$this->_aliases['civicrm_phone']}.is_primary = 1\\n\";\n }\n\n if ($this->_demoField) {\n $this->_from .= \" LEFT JOIN \" . $this->_demoTable . \" AS \" . $this->_aliases[$this->_demoTable] . \" ON {$this->_aliases['civicrm_contact']}.id =\" . $this->_aliases[$this->_demoTable] . \".entity_id\\n\";\n }\n\n if ($this->_coreField) {\n $this->_from .= \" LEFT JOIN \" . $this->_coreInfoTable . \" AS \" . $this->_aliases[$this->_coreInfoTable] . \" ON {$this->_aliases['civicrm_contact']}.id =\" . $this->_aliases[$this->_coreInfoTable] . \".entity_id\\n\";\n }\n\n\n if ($this->_voterInfoField) {\n $this->_from .= \" LEFT JOIN {$this->_voterInfoTable}\" . \" AS {$this->_aliases[$this->_voterInfoTable]}\" . \" ON {$this->_aliases['civicrm_contact']}.id =\" . \"{$this->_aliases[$this->_voterInfoTable]}.entity_id\\n\";\n }\n }", "public function useContactMultipleRelatedByContactIdQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinContactMultipleRelatedByContactId($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'ContactMultipleRelatedByContactId', 'ContactMultipleQuery');\n }", "public static function join($joinTable, $joinCondition, $joinType = '')\r\n {\r\n return self::$PDO->join($joinTable, $joinCondition, $joinType);\r\n }", "public function add_filter_join($field, $join_type = 'or')\n\t{\n\t\tif (!empty($this->filter_join) AND is_string($this->filter_join))\n\t\t{\n\t\t\t$this->filter_join = array($this->filter_join);\n\t\t}\n\t\t$this->filter_join[$field] = $join_type;\n\t}", "function select() {\n // TODO: clb.organization_name should only be selected if a primary relationship exists.\n return \"\n contact_a.id AS contact_id,\n contact_a.last_name,\n contact_a.first_name,\n contact_a.preferred_language,\n ca.street_address as contact_street_address,\n ca.postal_code as contact_postal_code,\n ca.city as contact_city,\n cc.name as contact_country,\n email,\n phone,\n clb.organization_name\n \";\n }", "public function on($entity)\n {\n $this->query .= \" on \" . $this->join . \".id = \" . strtolower(get_class($entity)) . \".\" . $this->join . \"_id\";\n\n return $this;\n }", "function query_main_join( $sql, $engine ) {\n\t\tglobal $wpdb;\n\n\t\tif ( isset( $engine ) ) {\n\t\t\t$engine = null;\n\t\t}\n\n\t\t// if WooCommerce is sorting results we need to tell SearchWP to return them in that order\n\t\tif ( $this->is_woocommerce_search() ) {\n\n\t\t\tif ( ! isset( $this->ordering['wc_orderby'] ) ) {\n\t\t\t\t$this->get_woocommerce_ordering();\n\t\t\t}\n\n\t\t\t// depending on the sorting we need to do different things\n\t\t\tif ( isset( $this->ordering['wc_orderby'] ) ) {\n\t\t\t\tswitch ( $this->ordering['wc_orderby'] ) {\n\t\t\t\t\tcase 'price':\n\t\t\t\t\tcase 'price-desc':\n\t\t\t\t\tcase 'popularity':\n\t\t\t\t\t\t$meta_key = 'price' === $this->ordering['wc_orderby'] ? '_price' : 'total_sales';\n\t\t\t\t\t\t$sql = $sql . $wpdb->prepare( \" LEFT JOIN {$wpdb->postmeta} AS swpwc ON {$wpdb->posts}.ID = swpwc.post_id AND swpwc.meta_key = %s\", $meta_key );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'rating':\n\t\t\t\t\t\t$sql = $sql . \" LEFT OUTER JOIN {$wpdb->comments} swpwpcom ON({$wpdb->posts}.ID = swpwpcom.comment_post_ID) LEFT JOIN {$wpdb->commentmeta} swpwpcommeta ON(swpwpcom.comment_ID = swpwpcommeta.comment_id) \";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// for visibility we always need to join postmeta\n\t\t\tif ( function_exists( 'WC' ) && ! empty( WC()->version ) && version_compare( WC()->version, '2.6.0', '<' ) ) { // Moved to a taxonomy\n\t\t\t\t$sql = $sql . \" INNER JOIN {$wpdb->postmeta} as woovisibility ON {$wpdb->posts}.ID = woovisibility.post_id \";\n\t\t\t}\n\n\t\t}\n\n\t\treturn $sql;\n\t}", "public function allWithJoin()\n {\n return $this->query(\n \"SELECT comments.id, comments.content, comments.date, users.username as author, posts.title as post, comments.post as postid\n FROM comments\n Left JOIN users ON comments.author = users.id\n Left JOIN posts ON comments.post = posts.id\"\n );\n }", "public function testBuildSelectWithJoin()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->fields()\n ->addField('user@email', 'email')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->fields()\n ->addField('user@email', 'email')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n \"'user@email' AS table1__email, 'user@email' AS table2__email\",\n $query->buildSelectFields()\n );\n }", "public function join(string $table, string $condition, string $type=''): QueryBuilderInterface\n\t{\n\t\t// Prefix and quote table name\n\t\t$table = explode(' ', mb_trim($table));\n\t\t$table[0] = $this->driver->quoteTable($table[0]);\n\t\t$table = $this->driver->quoteIdent($table);\n\t\t$table = implode(' ', $table);\n\n\t\t// Parse out the join condition\n\t\t$parsedCondition = $this->parser->compileJoin($condition);\n\t\t$condition = $table . ' ON ' . $parsedCondition;\n\n\t\t$this->state->appendMap(\"\\n\" . strtoupper($type) . ' JOIN ', $condition, 'join');\n\n\t\treturn $this;\n\t}", "public function join ( $sTable, $sCondition, $sType = '' )\n {\n if ($sType != '')\n {\n $sType = strtoupper(trim($sType));\n $sType = (in_array($sType, $this->aJoinTypes)) ? $sType . ' ' : '';\n }\n /*\n Save.\n */\n $this->aJoin = array_merge($this->aJoin, array($sType, $sTable, $sCondition));\n /*\n Return for method chaining.\n */\n return $this;\n }", "function xiliml_adjacent_join_filter( $join, $in_same_cat, $excluded_categories ) {\n\t\tglobal $post, $wpdb;\n\t\t$curlang = xiliml_get_lang_object_of_post( $post->ID );\n\n\t\tif ( $curlang ) { // only when language is defined !\n\t\t\t$join .= \" LEFT JOIN $wpdb->term_relationships as xtr ON (p.ID = xtr.object_id) LEFT JOIN $wpdb->term_taxonomy as xtt ON (xtr.term_taxonomy_id = xtt.term_taxonomy_id) \";\n\t\t}\n\t\treturn $join;\n\t}", "private function _hookup_joins($include_phone=FALSE)\n {\n $select = TBL_HOOKUPS.'.*,';\n \n $select .= TBL_HOOKUP_REQUESTS.'.user_id,'; \n $select .= TBL_HOOKUP_REQUESTS.'.hookup_id,'; \n $select .= TBL_HOOKUP_REQUESTS.'.is_accepted,'; \n $select .= TBL_HOOKUP_REQUESTS.'.date_requested,'; \n\n $select .= TBL_PAYMENTS.'.*';\n\n $this->db->select($select);\n $this->db->from(TBL_HOOKUPS);\n $this->db->join(TBL_HOOKUP_REQUESTS,TBL_HOOKUPS.'.request_id = '.TBL_HOOKUP_REQUESTS.'.id');\n $this->db->join(TBL_PAYMENTS,TBL_HOOKUPS.'.payment_id = '.TBL_PAYMENTS.'.id');\n }", "public function joinCuadreCaja($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('CuadreCaja');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'CuadreCaja');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function paged_join($table = '', $second_table = '', $fields = '*', $join = '', $limit = 0, $offset = 0, $where = FALSE, $order_by = FALSE)\n {\n $this->db->select($fields);\n $this->db->from($table);\n\n if ($second_table && $join) {\n $this->db->join($second_table, $join);\n }\n\n if ($limit > 0) {\n $this->db->limit($limit, $offset);\n }\n\n if ($where) {\n $this->db->where($where);\n }\n\n if ($order_by !== FALSE) {\n $this->db->order_by($order_by);\n }\n\n return $this->get();\n }", "public function testBuildJoinDefault()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id',\n $query->buildJoin()\n );\n }", "public function join($joinTable, $joinCondition, $joinType = '')\r\n {\r\n $allowedTypes = array('LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER');\r\n $joinType = strtoupper(trim($joinType));\r\n\r\n if ($joinType && !in_array($joinType, $allowedTypes)) {\r\n return $this;\r\n }\r\n $this->_join[] = Array($joinTable, $joinCondition, $joinType);\r\n return $this;\r\n }", "public function testBuildJoinDefaultWithTwoJoinOn()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n ->joinOn('user_id', 'type_id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id AND table1.user_id = table2.type_id',\n $query->buildJoin()\n );\n }", "public function join(string $name, ?string $alias = null, ?string $condition = null): Query\n {\n $this->resetStatement();\n $key = $alias ?? $name;\n $this->tables[$key] = new Table($name, $alias, 'JOIN', $condition);\n return $this;\n }", "function getJoinOnPersonID()\n { \n return $this->getJoinOnFieldX('person_id');\n }", "function getJoinOnPersonID()\n { \n return $this->getJoinOnFieldX('person_id');\n }", "function getJoinOnPersonID()\n { \n return $this->getJoinOnFieldX('person_id');\n }", "public function visitJoinClause(\n /*IJoinClause*/ $node) /*: mixed*/ {\n $id = $node->getIdentifier();\n $collection = /*(string)*/$node->getCollection()->accept($this);\n $left = null;\n $left_value = $node->getLeft();\n if ($left_value != null) {\n $left = /*(string)*/$left_value->accept($this);\n }\n $right = null;\n $right_value = $node->getRight();\n if ($right_value != null) {\n $right = /*(string)*/$right_value->accept($this);\n }\n $group = $node->getGroup();\n\n $result = 'join ';\n if ($id !== null) {\n $result .= '$'.$id.' in ';\n }\n $result .= $collection;\n if ($left !== null && $right !== null) {\n $result .= \" on $left equals $right\";\n if ($group !== null) {\n $result .= ' into '.$group;\n }\n }\n return $result;\n }", "public function join($builder, $relation, $model = null, $method = 'leftJoin')\n {\n $model = $model ?? $builder->getModel();\n\n if ($builder instanceof \\Illuminate\\Database\\Eloquent\\Relations\\Relation) {\n $builder = $builder->getQuery();\n }\n \n\n $relations = explode('.', $relation);\n\n $currentTableAlias = $model->getTable();\n $basePrimaryKey = $model->getKeyName();\n\n $currentModel = $model;\n\n foreach ($relations as $i => $relation) {\n $relatedRelation = $currentModel->$relation();\n $relatedRelation::noConstraints(function () use ($relation, &$currentModel, &$currentTableAlias, $relations, $i, $method, $builder) {\n $relatedRelation = $currentModel->$relation();\n $relatedModel = $relatedRelation->getRelated();\n $relationName = $this->parseAlias(array_slice($relations, 0, $i + 1));\n\n $joinQuery = $relatedModel->getTable().($relatedModel->getTable() !== $relationName ? ' as '.$relationName : '');\n\n // @TODO, check if same joinQuery is already in $builder\n foreach ($this->getResolvers()->toArray() as $key => $resolverClass) {\n if ($relatedRelation instanceof $key) {\n $resolver = new $resolverClass;\n\n $resolver\n ->setRelationName($relationName)\n ->setMethod($method)\n ->setRelation($relatedRelation)\n ->setSourceTable($currentTableAlias)\n ->setTargetTable($relationName)\n ;\n\n $resolver->resolve($builder);\n\n break; //uhm..........\n }\n }\n\n $currentModel = $relatedModel;\n $currentTableAlias = $relationName;\n });\n }\n }", "public function joinCustomerdetails($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Customerdetails');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Customerdetails');\n }\n\n return $this;\n }", "protected function joinClause(\n /*# : string */ $prefix,\n /*# : string */ $seperator,\n array $clause,\n array $settings\n )/*# : string */ {\n if (empty($clause)) {\n return '';\n } else {\n $sepr = $settings['seperator'];\n $join = $settings['join'];\n $pref = empty($prefix) ? $join : ($sepr . $prefix . $join);\n return $pref . join($seperator . $join, $clause);\n }\n }", "public function joinAssociations()\n {\n return array_slice($this->_joins, 1);\n }" ]
[ "0.67770046", "0.6350321", "0.61648023", "0.6131973", "0.6130841", "0.6125234", "0.6118476", "0.6102864", "0.60495263", "0.5968277", "0.592365", "0.58999246", "0.58668643", "0.58578193", "0.58406776", "0.5833929", "0.58220345", "0.5800758", "0.577767", "0.5775287", "0.57359064", "0.57207835", "0.571127", "0.5708761", "0.569497", "0.5683899", "0.56754404", "0.56578106", "0.56561166", "0.5653784", "0.5643832", "0.56217766", "0.56047916", "0.5588508", "0.5587458", "0.558037", "0.5577447", "0.55589753", "0.5522154", "0.55171907", "0.55162954", "0.5512542", "0.549293", "0.5456564", "0.54518086", "0.5440568", "0.543287", "0.54313123", "0.5430944", "0.54275227", "0.5402087", "0.54012394", "0.54006475", "0.5398016", "0.5381103", "0.53750753", "0.5367406", "0.5359535", "0.5346396", "0.5344611", "0.53359944", "0.5335814", "0.533555", "0.53322023", "0.53286994", "0.5325805", "0.5321885", "0.5319409", "0.5309813", "0.53074527", "0.5297089", "0.5277163", "0.5275082", "0.52676326", "0.52663594", "0.5257547", "0.52440053", "0.52399766", "0.52309024", "0.5229338", "0.52229387", "0.5218574", "0.52179515", "0.5217569", "0.52103966", "0.51939386", "0.5186398", "0.5179282", "0.51780385", "0.5175418", "0.5173578", "0.5158636", "0.51543695", "0.51543695", "0.51543695", "0.5153415", "0.5149237", "0.5148732", "0.51463073", "0.5135531" ]
0.5843198
14
Use the Contact relation Contact object
public function useContactQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinContact($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Contact', '\ContactQuery'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function contact()\n {\n return $this->belongsTo('App\\Models\\Contact');\n }", "public function contact(){\n return $this->hasOne(Contact::class,'id','contact_id');\n }", "public function contact()\n {\n return $this->belongsTo('App\\Contact');\n }", "public function contact()\n {\n return $this->belongsTo(Contact::class, 'contact_id');\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function contact()\n {\n return $this->hasOne(OrderContact::class);\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function returnContact(){\n return $this->contact->getContact(); //Chama a função getContact do objeto contact\n }", "public function contact()\n {\n return $this->hasMany(contact::class);\n }", "public function getContact() {\n try {\n return new Yourdelivery_Model_Contact($this->getContactId());\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n return null;\n }\n }", "public function contact()\n {\n return $this->belongsTo(Contact::class, self::PIVOT_CONTACT_ID);\n }", "public function contacts()\n {\n return $this->hasOne(Contact::class);\n }", "protected function buildContactObject()\n {\n return new Contact();\n }", "public function contact(): BelongsTo\n {\n return $this->belongsTo(Contact::class, 'contact_id');\n }", "public function contact(): BelongsTo\n {\n return $this->belongsTo(Contact::class, 'contact_id');\n }", "public function contact()\n {\n return new Contact($this);\n }", "function ImportContact() {\n\t\t$this->log = LoggerManager::getLogger('import_contact');\n\t\t$this->db = & getSingleDBInstance();\n\t\t$colf = getColumnFields(\"Contacts\");\n\t\tforeach($colf as $key=>$value)\n\t\t\t$this->importable_fields[$key]=1;\n\t}", "public function getContactDetailAttribute()\n {\n return $this->contact()->first();\n }", "public static function aContact()\n {\n $contact = new Contact();\n return $contact;\n\n }", "public function mapToModel($contact);", "public function setContact($value){\n return $this->setParameter('contact', $value);\n }", "public function getContact()\n {\n $userId = Yii::$app->user->id;\n\n if ($userId == $this->author_id) {\n return $this->recipient;\n } elseif ($userId == $this->recipient_id) {\n return $this->author;\n }\n\n }", "public function contacts()\n {\n return $this->hasMany('App\\Contact');\n }", "public function getContact()\n {\n return isset($this->contact) ? $this->contact : null;\n }", "public function fromContact()\n {\n return $this->hasOne(User::class, 'id', 'from');\n }", "function getContact()\n\t{\n\t\treturn $this->Info['Contact'];\n\t}", "public function contacts()\n {\n return $this->hasMany('Contact');\n }", "public function getContact(){\n return $this->db->get('contact')->result();\n }", "public function contact()\n {\n return $this->BelongsTo(User::class, 'parent_contact_id');\n }", "public function show(Contact $contact) {\n //\n }", "public function setContact($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->contact !== $v) {\n $this->contact = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_CONTACT] = true;\n }\n\n return $this;\n }", "public function contacts(){\n\n return $this->hasMany(Contacts::class);\n\n\n }", "public function contacts()\n {\n return $this->hasMany(Contact::class);\n }", "public function __construct(Contact $contact)\n {\n $this->contact = $contact;\n }", "public function getIdContact()\n {\n return $this->id_contact;\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function __construct(Contact $contact)\n {\n $this->contact = $contact;\n }", "public function __construct(Contact $contact)\n {\n $this->contact = $contact;\n }", "public function __construct(Contact $contact)\n {\n $this->contact = $contact;\n }", "public function __construct(Contact $contact)\n\t{\n\t\t//\n $this->contact = $contact;\n }", "public function __construct($contact)\n {\n $this->contact = $contact;\n }", "public function contacts()\n {\n return $this->hasMany('App\\Models\\User\\Contact', 'user_id');\n }", "public function __construct(Contact $contact)\n {\n $this->contacto = $contact;\n }", "public function __construct($contact)\n {\n $this->contact = $contact;\n }", "public function contacts()\n {\n return $this->hasMany('App\\SchoolContact');\n }", "public function initialize()\n {\n $this->setSource(\"contacts\");\n $this->belongsTo('user_id', 'Users', 'id', ['alias' => 'Users']);\n }", "public function contactPerson()\n {\n return $this->belongsTo('App\\Models\\Employee');\n }", "public function model()\n {\n return Contact::class;\n }", "public function supplierContactPerson(): \\Illuminate\\Database\\Eloquent\\Relations\\BelongsTo\n {\n return $this->belongsTo('Easy\\Commerce\\Models\\Supplier\\SupplierContactPerson', 'supplier_contact_people_id', 'id');\n }", "public function setContact($contact)\n {\n $this->contact = $contact;\n\n return $this;\n }", "public function financeContact()\n {\n return $this->belongsTo('App\\\\User', 'finance_contact_id');\n }", "public function contact()\n {\n \treturn $this->belongsToMany('Schoolprof\\Contact')->withPivot('label');\n }", "public function contacts()\n {\n return $this->hasManyThrough(Contact::class, Profile::class);\n }", "public function contact(): \\Illuminate\\Database\\Eloquent\\Relations\\HasOne\n {\n return $this->hasOne('App\\Models\\UserContactDetail');\n }", "public function __construct($contact)\n {\n $this->contactData = $contact;\n }", "public function setContact($contact): void\n {\n $this->_contact = $contact;\n }", "public function get_contact(){\n $this->relative = array_shift(Relative::find_all(\" WHERE dead_no = '{$this->id}' LIMIT 1\"));\n if ($this->relative) {\n return $this->relative->contact();\n } else {\n return \"Not Specified\";\n }\n }", "public function getContactID()\n {\n return $this->ContactID;\n }", "private function getContactsModel()\n\t{\n\t\tif (!$this->model_contacts)\n\t\t{\n\t\t\t$this->model_contacts = $this->getServiceLocator()->get(\"FrontContacts\\Models\\FrontContactsModel\");\n\t\t}//end if\n\n\t\treturn $this->model_contacts;\n\t}", "public function getContact(){\n return $this->getParameter('contact');\n }", "public function getContact()\n {\n return dd(22222);\n }", "public function contactDetails()\n {\n return $this->hasMany(ContactDetail::class);\n }", "public function getContact()\n\t{\n\t\treturn view('contact');\n\t}", "public function contacts()\n {\n return $this->belongsToMany('App\\Contact')->withPivot('is_starred');\n }", "public function getBillingContact() {\n try {\n return new Yourdelivery_Model_Contact($this->getBillingContactId());\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n return null;\n }\n }", "public function getContacts();", "public function getReadableContact()\n {\n return Extra::getBeautifulPhone($this->contact);\n }", "public function contacts()\n\t{\n\t\treturn $this->hasMany(SupplierContact::class);\n\t}", "function tilContacts()\n {\n return $this->hasMany('App\\TilContact');\n }", "public function getContactID()\n {\n return $this->get('ContactID');\n }", "public function getContactID()\n {\n return $this->get('ContactID');\n }", "public function getContactID()\n {\n return $this->get('ContactID');\n }", "public function testUpdateMyContact()\n {\n\n }", "public function testAntBackendGetContact()\r\n\t{\r\n $contact = new SyncContact();\r\n $contact->firstname = \"first_name\";\r\n $contact->lastname = \"last_name\";\r\n $obj = $this->backend->saveContact(\"\", $contact);\r\n\t\t$cid = $obj->id;\r\n\r\n // Query Tasks\r\n $syncContact = $this->backend->getContact($cid);\r\n $this->assertEquals($syncContact->firstname, $contact->firstname);\r\n $this->assertEquals($syncContact->lastname, $contact->lastname);\r\n \r\n // Cleanup\r\n $obj = new CAntObject($this->dbh, \"contact_personal\", $cid, $this->user);\r\n $obj->removeHard();\r\n\t}", "public function getContactId()\n\t{\n\t\treturn $this->_contactId;\n\t}", "public function setContact($contact)\r\n {\r\n $this->contact= array();\r\n if (is_array($contact)) {\r\n foreach ($contact as $key => $value) \r\n\t\t\t{\r\n $this->contact[$key] = $value;\r\n }\r\n }\r\n }", "public static function findOneByUserContact($contact) {\n\t\treturn Doctrine_Query::create ()->from ( 'Contacts c' )->where(\"c.contact = '$contact'\")->execute();\n\t}", "public function contact()\n {\n $breadCrumb = $this->userEngine->breadcrumbGenerate('contact');\n\n return $this->loadPublicView('user.contact', $breadCrumb['data']);\n }", "public function contact_company()\n {\n }", "public function getContacts(): Collection\n {\n return $this->hasMany(UserContact::class, 'user_id', 'id')->get();\n }", "public function contacts()\n {\n return $this->morphedByMany('App\\Contact', 'taggable');\n }", "public function starrified_contacts()\n {\n\t\treturn $this->belongsToMany('App\\Contact')->wherePivot('is_starred', 1);\n }", "function treatmentContact(&$contactPers) {\n $em = $this->getDoctrine()->getManager();\n $repositoryContact = $em->getRepository('UserBundle:Contact');\n\n // Récupération du contact en base de données\n $contactBase = $repositoryContact->findOneBy(\n array(\n 'nom' => $contactPers->getNom(),\n 'prenom' => $contactPers->getPrenom(),\n 'email' => $contactPers->getEmail()\n )\n );\n\n // Si $contactBase=null alors le contact n'était pas présent dans la base de données, il faut donc l'ajouter\n if (!is_null($contactBase)) {\n $contactPers = $contactBase;\n } else {\n $this->getDoctrine()->getManager()->persist($contactPers);\n $this->getDoctrine()->getManager()->flush();\n }\n }", "public function getContact(): string\n {\n return $this->_contact;\n }", "public function technicalContact()\n {\n return $this->belongsTo('App\\\\User', 'technical_contact_id');\n }", "public function setContact(array $contact = []): object\n\t{\n\t\tif ([] !== $this->contact) {\n\t\t\t$this->_trackValuesRemoved(count($this->contact));\n\t\t\t$this->contact = [];\n\t\t}\n\t\tif ([] === $contact) {\n\t\t\treturn $this;\n\t\t}\n\t\tforeach ($contact as $v) {\n\t\t\tif ($v instanceof FHIRStructureDefinitionContact) {\n\t\t\t\t$this->addContact($v);\n\t\t\t} else {\n\t\t\t\t$this->addContact(new FHIRStructureDefinitionContact($v));\n\t\t\t}\n\t\t}\n\t\treturn $this;\n\t}", "public function contactpersons()\n {\n return $this->hasManyThrough('App\\ContactPerson', 'App\\Client');\n }", "public function getContactInfo() {\n return $this->contactInfo;\n }", "public function getMainContact()\n {\n return $this->mainContact;\n }", "public function getContact(){\n\t\treturn view('pages.contact'); #or pages/contact\n\t}" ]
[ "0.7237885", "0.71899456", "0.7167769", "0.7106036", "0.7030174", "0.6958951", "0.6871262", "0.6871262", "0.6871262", "0.6758147", "0.6756453", "0.6687988", "0.6679869", "0.6659945", "0.6618142", "0.66133916", "0.66133916", "0.65705556", "0.6534784", "0.651357", "0.6507618", "0.64976007", "0.6472761", "0.64726716", "0.6426404", "0.6411326", "0.63850015", "0.63756937", "0.63682604", "0.62763417", "0.62458175", "0.62385607", "0.6208192", "0.62014145", "0.619963", "0.61959267", "0.6191163", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.6184273", "0.61486065", "0.61486065", "0.61486065", "0.61285573", "0.61270165", "0.6074224", "0.6068546", "0.60653776", "0.6056477", "0.6047249", "0.6010655", "0.60026795", "0.59928435", "0.59901106", "0.59745693", "0.5942877", "0.5938107", "0.5926864", "0.5881526", "0.58763826", "0.5875308", "0.58487236", "0.5840056", "0.5829676", "0.5826867", "0.5810187", "0.5804643", "0.5792751", "0.5782136", "0.57745576", "0.5771081", "0.5769771", "0.57649976", "0.57604265", "0.57603985", "0.57603985", "0.5758043", "0.57522994", "0.57431805", "0.57416594", "0.57388884", "0.57336926", "0.572959", "0.57168835", "0.5708919", "0.57057154", "0.5698262", "0.56952024", "0.5693132", "0.56889987", "0.5682669", "0.5681777", "0.5680454", "0.56729275" ]
0.0
-1
Filter the query by a related \IConcernePays object
public function filterByIConcernePays($iConcernePays, $comparison = null) { if ($iConcernePays instanceof \IConcernePays) { return $this ->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $iConcernePays->getIDInfos(), $comparison); } elseif ($iConcernePays instanceof ObjectCollection) { return $this ->useIConcernePaysQuery() ->filterByPrimaryKeys($iConcernePays->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByIConcernePays() only accepts arguments of type \IConcernePays or Collection'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function query()\n {\n $company_id = request()->company_id;\n\n $trips = Trips::CompanyPayoutTripsOnly()->select('trips.*','users.company_id as company_id','companies.name as company_name')\n ->with(['currency','driver']);\n\n if($this->filter_type == 'Weekly') {\n $trips = $trips\n ->whereHas('driver',function($q) use ($company_id){\n $q->where('company_id',$company_id);\n })\n ->groupBy(DB::raw('WEEK(trips.created_at)'));\n }\n else if($this->filter_type == 'OverAll') {\n $trips = $trips->groupBy('users.company_id');\n }\n\n $trips = $trips->get();\n return $this->applyScopes($trips);\n }", "public function scopeFilterPaid($query)\n {\n return $query->where('pay_cycle_id', null);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(AnotacaoCasoPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PeliculaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(NegocioPeer::ID, $key, Criteria::EQUAL);\n }", "public function getApproved(Filter $filter): Collection;", "public function searchPesificacionesSinCompletar()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->condition= \"estado=:estado\";\n\t\t$criteria->params = array(':estado'=> Pesificaciones::ESTADO_ABIERTO);\n\n\t\t//$criteria->condition= \"(t.montoAcreditar+t.montoGastos) NOT IN (SELECT SUM(cheques.montoOrigen) FROM cheques, detallePesificaciones WHERE detallePesificaciones.chequeId=cheques.id AND detallePesificaciones.pesificacionId=t.id)\";\n\t\treturn new CActiveDataProvider(new Pesificaciones, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function searchPrzydzielanie()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\t\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t//$this->relations(array('not_in_hasDomains'=>array(self::HAS_MANY,'KlientHasDomains', 'domains_id', 'condition'=>'not_in_hasDomains.domains_id is not null')));\n\t\t $criteria->together = true;\n\t\t$criteria->with=array('przydzielenies', 'not_in_hasDomains'=>array(\tself::HAS_MANY,'KlientHasDomains', 'domains_id', \n\t\t\t\t'joinType' => 'INNER JOIN',\n\t\t\t\t//'on' => \"(not_in_hasDomains.domains_id is not null)\",\n\t\t\t\t'condition'=>'')\n\t\t );\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('name',$this->name);\n\t\t$criteria->compare('expiry_date',$this->expiry_date,true);\n\t\t$criteria->compare('registrar',$this->registrar,true);\n\t\t$criteria->compare('added_date',$this->added_date,true);\n\t\t$criteria->compare('client',$this->client,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->addBetweenCondition('expiry_date', $this->expiry_date_od, $this->expiry_date_do);\n\t\n\t\tif($this->przydzielone) {\n\t\t$criteria->addCondition('przydzielenies.domains_id is null');\n\t\t}\n\t\t\n\t\t//$criteria->addCondition('klients is null');\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria,\n\t\t\t\t'sort'=>array(\n\t\t\t\t\t\t'defaultOrder'=>array(\n\t\t\t\t\t\t\t\t'expiry_date'=>false\n\t\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'pagination'=>array(\n\t\t\t\t\t\t'pageSize'=>5,\n\t\t\t\t),\n\t\n\t\t));\n\t}", "public function getTakeaways()\n {\n return $this->hasMany(Takeaway::className(), ['id_cliente' => 'id_cliente']);\n }", "public function programas(){\n return $this\n ->belongsToMany('App\\Models\\Carrera', 't_institutos_carreras', 'id_instituto', 'id_carrera')->where('activo','=', 1);;\n }", "public function FromCashiers()\n {\n return $this->belongsTo('App\\Http\\Models\\Cashiers' ,'FromCashierID')->select();\n }", "public function search($params)\n {\n $query = A2Liquidaciones::find();\n\n //$query->joinWith('operacionInmobiliaria',false, 'INNER JOIN');\n\n $query->joinWith(['operacionInmobiliaria' => function ($q) {\n $q->joinWith(['inmueble', 'cliente']);\n //$q->joinWith('cliente');\n }], false, 'INNER JOIN');\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'sin_vencer') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))<0\");\n }\n\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'por_vencer') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND DATEDIFF(NOW(),CONCAT(`a2_operaciones_inmobiliarias`.`hasta_anio`,'-',\n `a2_operaciones_inmobiliarias`.`hasta_mes`,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))>=-70\");\n }\n\n //VENCIDAS\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'vencidas') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND (DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))>0 AND \n DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))<=30) \");\n }\n\n //VENCIDAS MAS DE UN MES\n if (isset($params['A2LiquidacionesSearch']['tipo_filtro']) && $params['A2LiquidacionesSearch']['tipo_filtro'] == 'vencidas_mas_mes') {\n $query->where(\"a2_operaciones_inmobiliarias.estado='ACTIVO' AND DATEDIFF(NOW(),CONCAT(a2_liquidaciones.liq_anio,'-',\n a2_liquidaciones.liq_mes,'-',`a2_operaciones_inmobiliarias`.`dia_venc_mensual`))>30 \");\n }\n\n // add conditions that should always apply here\n if ($params['A2LiquidacionesSearch']['estado'] == 'ACTIVO') {\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'sort' => [\n 'defaultOrder' => [\n 'liq_anio' => SORT_DESC,\n 'liq_mes' => SORT_DESC,\n ]\n ],\n ]);\n } else {\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'sort' => [\n 'defaultOrder' => [\n 'fecha_pago' => SORT_DESC,\n ]\n ],\n ]);\n }\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n if (!empty($this->periodo)) {\n $arreglo_periodo = explode(\"/\", $this->periodo);\n $this->liq_mes = $arreglo_periodo[0];\n $this->liq_anio = $arreglo_periodo[1];\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id_liquidacion' => $this->id_liquidacion,\n 'id_operacion' => $this->id_operacion,\n 'liq_anio' => $this->liq_anio,\n 'liq_mes' => $this->liq_mes,\n 'fecha_pago' => $this->fecha_pago,\n 'monto_pagado' => $this->monto_pagado,\n 'monto_intereses' => $this->monto_intereses,\n 'timestamp' => $this->timestamp,\n ]);\n\n\n $query->andFilterWhere(['like', 'usuario', $this->usuario])\n ->andFilterWhere(['like', 'a2_liquidaciones.estado', $this->estado])\n ->andFilterWhere(['like', 'a2_noticias.direccion', $this->direccion])\n ->andFilterWhere(['like', 'a2_clientes.nombre', $this->cliente]);\n\n\n return $dataProvider;\n }", "protected function rawFilter($filter) {\n //Log::debug('query: ',$filter);\n\t\t// Build a query based on filter $filter\n\t\t$query = Pallet::query()\n ->select('Pallet.objectID', 'Pallet.Pallet_ID', 'Pallet.x', 'Pallet.y', 'Pallet.z', 'Pallet.Status')\n ->orderBy('Pallet_ID', 'asc');\n if(isset($filter['Pallet_ID']) && strlen($filter['Pallet_ID']) > 2) {\n $query->where('Pallet_ID', 'like', ltrim($filter['Pallet_ID'],'0') . '%');\n\t\t}\n\t\tif(isset($filter['Pallet_ID.prefix']) && is_array($filter['Pallet_ID.prefix'])) {\n $query->whereRaw(\"substring(Pallet_ID,1,3) in ('\".implode(\"','\", $filter['Pallet_ID.prefix']).\"')\");\n\t\t}\n if(isset($filter['Status']) && is_array($filter['Status'])) {\n $query->whereRaw(\"Status in ('\".implode(\"','\", $filter['Status']).\"')\");\n }\n elseif(isset($filter['Status']) && strlen($filter['Status']) > 3) {\n $query->where('Status', '=', $filter['Status']);\n }\n /*\n * container.parent should generate this sql request\n * select Pallet.* from Pallet join container plt on plt.objectID = Pallet.objectID where plt.parentID = 6213292055;\n */\n if(isset($filter['container.parent']) && strlen($filter['container.parent']) > 3) {\n $query\n ->join('container as plt', 'plt.objectID', '=', 'Pallet.objectID')\n ->where('plt.parentID',$filter['container.parent']);\n }\n /*\n * container.child should generate this sql request\n * select Pallet.* from Pallet join container gc on gc.parentID = Pallet.objectID where gc.objectID = 6226111054;\n */\n if(isset($filter['container.child']) && strlen($filter['container.child']) > 3) {\n $query\n ->join('container as gc', 'gc.parentID', '=', 'Pallet.objectID')\n ->where('gc.objectID',$filter['container.child']);\n }\n return $query;\n }", "public function filter(BrochureFilterRequest $request)\n {\n $input = $request->all();\n $sort_type = 'DESC';\n if ($request->has('sort_type') && $input['sort_type'] === 'a') {\n $sort_type = 'ASC';\n }\n\n $brochures = Brochure::active();\n if ($request->has('user_id')) {\n $brochures->where('provider_id', $input['user_id']);\n }\n\n return new BrochureCollection(\n $brochures->orderBy(\"created_at\", $sort_type)\n ->paginate(10)\n );\n\n }", "public function useIConcernePaysQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinIConcernePays($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'IConcernePays', '\\IConcernePaysQuery');\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(PagocontrareciboPeer::IDPAGOCONTRARECIBO, $key, Criteria::EQUAL);\n }", "public function searchConce()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t//obtener los alumnos de la convocatoria actual\n\t\t$convocatoria = Convocatoria::model()->find(\"con_estado=1\")->con_semestre;\n\t\t$alumnos=Alumno::model()->findAll(\"con_semestre='\".$convocatoria.\"' AND al_campus='Concepción'\");\n\n\t\t$criteria=new CDbCriteria;\n\t\t$condicion='';\n\n\t\t$j=0;\n\t\t$cantidad=0;\n\n\t\t//obtener los proyectos de los alumnos\n\t\tfor ($i=0; $i < count($alumnos); $i++) {\n\t\t\t\n\t\t\t//obtener el proyecto del alumno\n \t\t\t$proyecto = Alumnoproyecto::model()->find(\"al_rut='\".$alumnos[$i]->al_rut.\"'\");\n\t\t\t\n\n\t\t\t//si el alumno tiene un proyecto\n\t\t\tif(count($proyecto)>0){\n\t\t\t\n\t\t\t//para que no se le ponga \"or\" al principio ni al final \n\t\t\tif($cantidad>=1){\n\t\t\t\t$condicion=$condicion.\" or \";\t\t\n\t\t\t}\n\t\t\t\t$condicion=$condicion.\"pro_idProyecto=\".$proyecto->pro_idProyecto;\n\t\t\t\t$cantidad++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//si no hay ningun proyecto\n\t\tif($cantidad==0){\n\t\t\t$condicion=\"pro_idProyecto=-1\";\n\t\t}\n\n\t\t$criteria->addCondition($condicion);\n\t\t$criteria->compare('pro_idProyecto',$this->pro_idProyecto);\n\t\t$criteria->compare('pro_titulo',$this->pro_titulo,true);\n\t\t$criteria->compare('pro_duracion',$this->pro_duracion,true);\n\t\t$criteria->compare('pro_ambito',$this->pro_ambito,true);\n\t\t$criteria->compare('pro_emNombre',$this->pro_emNombre,true);\n\t\t$criteria->compare('pro_emContacto',$this->pro_emContacto,true);\n\t\t$criteria->compare('pro_emTelefono',$this->pro_emTelefono,true);\n\t\t$criteria->compare('emEmail',$this->emEmail,true);\n\t\t$criteria->compare('pro_profeNombre',$this->pro_profeNombre,true);\n\t\t$criteria->compare('pro_profeEmail',$this->pro_profeEmail,true);\n\t\t$criteria->compare('pro_profeTelefono',$this->pro_profeTelefono,true);\n\t\t$criteria->compare('pro_dirEscuela',$this->pro_dirEscuela,true);\n\t\t$criteria->compare('pro_vBEscuela',$this->pro_vBEscuela,true);\n\t\t$criteria->compare('pro_aporteValorado',$this->pro_aporteValorado);\n\t\t$criteria->compare('pro_aportePecuniario',$this->pro_aportePecuniario);\n\t\t$criteria->compare('pro_resumenEjecutivo',$this->pro_resumenEjecutivo,true);\n\t\t$criteria->compare('pro_descripcionEmpresa',$this->pro_descripcionEmpresa,true);\n\t\t$criteria->compare('pro_definicionProblema',$this->pro_definicionProblema,true);\n\t\t$criteria->compare('pro_solucionPropuesta',$this->pro_solucionPropuesta,true);\n\t\t$criteria->compare('pro_estadoArte',$this->pro_estadoArte,true);\n\t\t$criteria->compare('pro_objetivoGeneral',$this->pro_objetivoGeneral,true);\n\t\t$criteria->compare('pro_metodologia',$this->pro_metodologia,true);\n\t\t\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function buscarPorFiltros($filters, $personalShopper = 0) {\n// echo \"<pre>\";\n// print_r($filters);\n// echo \"</pre>\";\n// Yii::app()->end();\n\n $criteria = new CDbCriteria;\n \n $criteria->with = array();\n //$criteria->select = array();\n //$criteria->select[] = \"t.*\";\n \n $havingPrecio = '';\n \n for ($i = 0; $i < count($filters['fields']); $i++) {\n \n $column = $filters['fields'][$i];\n $value = $filters['vals'][$i];\n $comparator = $filters['ops'][$i];\n \n if($i == 0){\n $logicOp = 'AND'; \n }else{ \n $logicOp = $filters['rels'][$i-1]; \n } \n \n if($column == 'campana')\n {\n \n $value = ($comparator == '=') ? \"=\".$value.\"\" : $value;\n \n $criteria->compare('campana.nombre', $value,\n true, $logicOp);\n \n \n $criteria->with[] = 'campana';\n \n \n continue;\n }\n \n if($column == 'precio')\n {\n $criteria->addCondition('(select sum(precios.precioDescuento) from `tbl_look_has_producto` `productos_productos`, `tbl_producto` `productos`, `tbl_precio` `precios` \n where `t`.`id`=`productos_productos`.`look_id` and `productos`.`id`=`productos_productos`.`producto_id` and \n `precios`.`tbl_producto_id`=`productos`.`id`) '\n .$comparator.' '.$value.'', $logicOp); \n \n \n continue;\n } \n \n if($column == 'marca')\n { \n \n $criteria->with['productos'] = array(\n 'select'=> false,\n //'joinType'=>'INNER JOIN',\n //'condition'=>'productos.nombres = 8',\n ); \n \n //having\n if(!strpos($criteria->group, \"t.id\")){\n $criteria->group = 't.id';\n }\n \n //agregar condicion marca_id\n $criteria->addCondition('productos.marca_id'\n .$comparator.' '.$value.'', $logicOp); \n \n continue;\n } \n \n if($column == 'prendas')\n {\n $criteria->addCondition('(select count(look_id) \n from `tbl_look_has_producto` `productos_productos`\n where `t`.`id`=`productos_productos`.`look_id`)'\n .$comparator.' '.$value.'', $logicOp);\n \n continue; \n } \n \n if($column == 'cantidad')\n {\n /*\n * Por cada orden se esta contando el look como vendido una \n * sola vez asi aparezca dos veces en la misma orden\n * \n * Luego se debe corregir para que cuente correctamente si \n * el look ha sido pedido mas de una vez en una orden\n */\n \n $criteria->addCondition('\n (select count(distinct(orden.id)) from tbl_orden_has_productotallacolor o_ptc, tbl_orden orden\n where o_ptc.tbl_orden_id = orden.id\n and\n o_ptc.look_id > 0\n and\n o_ptc.look_id = t.id\n and\n orden.estado IN (3, 4, 8))'\n .$comparator.' '.$value.'', $logicOp);\n \n continue; \n } \n \n if($column == 'monto')\n {\n \n $criteria->addCondition('\n (select count(distinct(orden.id)) from tbl_orden_has_productotallacolor o_ptc, tbl_orden orden\n where o_ptc.tbl_orden_id = orden.id\n and\n o_ptc.look_id > 0\n and\n o_ptc.look_id = t.id\n and\n orden.estado IN (3, 4, 8)) \n *\n (select sum(precios.precioDescuento) from `tbl_look_has_producto` `productos_productos`, `tbl_producto` `productos`, `tbl_precio` `precios` \n where `t`.`id`=`productos_productos`.`look_id` and `productos`.`id`=`productos_productos`.`producto_id` and \n `precios`.`tbl_producto_id`=`productos`.`id`)\n '\n .$comparator.' '.$value.'', $logicOp);\n \n continue; \n } \n\n\t\t\t\tif($column == 'ocasion')\n {\n \t\n\t\t\t\t\t$criteria->compare('categoriahaslook.categoria_id', $comparator.\" \".$value,\n\t false, $logicOp);\n\t\t\t\t\t$criteria->with[] = 'categoriahaslook';\n\t\t\t\t\t\n\t\t\t\t\t continue; \n\t\t\t\t \n }\n\n\t\t\t\tif($column == 'activo')\n {\t \n\t\t\t\t\t \t $criteria->compare(\"t.activo\", $comparator.$value, \n\t false, $logicOp);\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t continue; \n\t\t\t\t \n }\n\t\t\t\t\n\t\t\t\tif($column == 'inactivo')\n {\n\t\t\t\t\t$value = ($value == 1) ? 0 : 1; // el contrario\n\t\t\t\t\t\n\t\t\t\t\t $criteria->compare(\"t.activo\", $comparator.$value, \n\t false, $logicOp);\n\t\t\t\t\t\n\t\t\t\t\t continue; \n\t\t\t\t \n } \n \n if($column == 'created_on')\n {\n $value = strtotime($value);\n $value = date('Y-m-d H:i:s', $value);\n }\n\n\n\n $criteria->compare(\"t.\".$column, $comparator.\" \".$value,\n false, $logicOp);\n \n }\n \n// $criteria->select = 't.*';\n $criteria->having .= $havingPrecio;\n //$criteria->with = array('categorias', 'preciotallacolor', 'precios');\n $criteria->together = true;\n \n //si se estan usando los filtros en Mis Looks\n if($personalShopper){\n $criteria->compare('t.user_id', $personalShopper); //siempre los no eliminados\n }\n \n \n// echo \"Criteria:\";\n// \n// echo \"<pre>\";\n// print_r($criteria->toArray());\n// echo \"</pre>\"; \n //exit();\n\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function originPrices()\n {\n return $this->hasMany('App\\Price', 'origin_country_id');\n }", "public function relationshipFilter()\n\t{\n\t\tee()->load->add_package_path(PATH_ADDONS.'relationship');\n\t\tee()->load->library('EntryList');\n\t\tee()->output->send_ajax_response(ee()->entrylist->ajaxFilter());\n\t}", "function Inscription_Certificates_All_Where()\n {\n $type=$this->CGI_GET(\"Type\");\n $where=$this->UnitEventWhere\n (\n array\n (\n \"Type\" => $this->Certificate_Type,\n )\n );\n\n return $where;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(TorneoCategoriaPeer::ID_TORNEO_CATEGORIA, $key, Criteria::EQUAL);\n\t}", "public function search2()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_periodo',20);\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('folio',$this->folio);\n\t\t$criteria->compare('fecha_ing',$this->fecha_ing,true);\n\t\t$criteria->compare('factura',$this->factura,true);\n\t\t$criteria->compare('importe',$this->importe);\n\t\t$criteria->compare('numerocheque',$this->numerocheque);\n\t\t$criteria->compare('partida',$this->partida);\n\t\t$criteria->compare('fecha_contrarecibo',$this->fecha_contrarecibo,true);\n\t\t$criteria->compare('no_contrarecibo',$this->no_contrarecibo,true);\n\t\t$criteria->compare('detalle',$this->detalle,true);\n\t\t$criteria->compare('id_proveedor',$this->id_proveedor);\n\t\t$criteria->compare('clasif',$this->clasif);\n\t\t$criteria->compare('tipo_docto',$this->tipo_docto);\n\t\t$criteria->compare('id_periodo',20);\n\t\t\n\t\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('rincianclosing_id',$this->rincianclosing_id);\n\t\t$criteria->compare('closingkasir_id',$this->closingkasir_id);\n\t\t$criteria->compare('nourutrincian',$this->nourutrincian);\n\t\t$criteria->compare('nilaiuang',$this->nilaiuang);\n\t\t$criteria->compare('banyakuang',$this->banyakuang);\n\t\t$criteria->compare('jumlahuang',$this->jumlahuang);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }", "public function filtrarclientes(){\n\n $this->request->allowMethod(['get']);\n \n $keyword = $this->request->query('keyword');\n $activo = $this->request->query('activo');\n\n $condiciones = array();\n\n $condiciones['name like '] = '%'.$keyword.'%';\n\n if($activo){\n $condiciones['borrado = '] = false;\n }\n \n $query = $this->Clientes->find('all', [\n 'conditions' => $condiciones,\n 'order' => [\n 'Clientes.id' => 'ASC'\n ],\n 'limit' => 100\n ]);\n\n $clientes = $this->paginate($query);\n $this->set(compact('clientes'));\n $this->set('_serialize', 'clientes');\n }", "public function filteredByDate(Request $request){\n return response(Expense::where('user_id', $request->user()->id)\n ->whereBetween('created_at',[Date(\"Y-m-d\", $request->start/1000).\" 00:00:00\", Date(\"Y-m-d\", $request->end/1000).\" 23:59:59\"])\n ->with('category')\n ->orderBy('created_at', 'desc')\n ->paginate(4), 200);\n }", "abstract protected function foreignIDFilter($id = null);", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function searchWolne()\n\t{\n\t\t$criteria= new CDbCriteria;\n\t\t$criteria->addNotInCondition('id', $this->id);\n\t\t$klienthasdomais = KlientHasDomains::model()->findAll($criteria);\n\t\t$domeny_zajente = array();\n\t\tforeach ($klienthasdomais as $khd){\n\t\t\tarray_push($domeny_zajente, $khd['domains_id']);\n\t\t}\n\t\n\t\t$criteria=new CDbCriteria;\n\t\t//$criteria->with = array('not_in_hasDomains');\n\t\t//$criteria->addNotInCondition('kl', $values)\n\t\n\t\t$criteria->addNotInCondition('id',$domeny_zajente);\n\t\t//$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('name',$this->name);\n\t\t//$criteria->compare('expiry_date',$this->expiry_date,true);\n\t\t//$criteria->compare('registrar',$this->registrar,true);\n\t\t//$criteria->compare('added_date',$this->added_date,true);\n\t\t$criteria->compare('client',$this->client,true);\n\t\t//$criteria->compare('phone',$this->phone,true);\n\t//\t$criteria->compare('email',$this->email,true);\n\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(CalendarPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByTravel($travel, $comparison = null)\n {\n if ($travel instanceof Travel) {\n return $this\n ->addUsingAlias(ClientPeer::ID, $travel->getClientId(), $comparison);\n } elseif ($travel instanceof PropelObjectCollection) {\n return $this\n ->useTravelQuery()\n ->filterByPrimaryKeys($travel->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByTravel() only accepts arguments of type Travel or PropelCollection');\n }\n }", "private function filterDay()\n {\n try {\n if(empty($this->day)) {\n return;\n }\n\n $dayDT = new DateTime(DateHelper::parseDateTime($this->day), DateHelper::getSystemTimeZone());\n\n $endDT = clone $dayDT;\n $endDT->setTime(23,59,59);\n $end = $endDT->getTimestamp();\n\n $start = $dayDT->setTime(0,0,0)->getTimestamp();\n\n $this->query->andWhere(['<=', 'log_time', $end]);\n $this->query->andWhere(['>=', 'log_time', $start]);\n\n } catch (\\Exception $e) {\n Yii::error($e, 'admin');\n }\n }", "public function getConvocados()\n {\n return $this->hasMany(InterConvocados::className(), ['modo_id' => 'id']);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(RFactureOptionsEcheancesPeer::FACT_OPT_ECHEANCE_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ProveedormarcaPeer::IDPROVEEDORMARCA, $key, Criteria::EQUAL);\n }", "public function getCriteria();", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(GoodsInSalePeer::ID, $key, Criteria::EQUAL);\n\t}", "public function concessionaires(){\n return $this->hasMany('App\\Concessionaire');\n }", "public function filterVisible(): self;", "public function search_open_activ($params, $pe)\n {\n $this->load($params);\n\n// ddd($pe);\n\n $query = mts_crm::find()\n ->select([\n 'id',\n 'id_ap',\n 'id_pe',\n 'mts_id',\n 'sprwhelement_ap.name',\n 'sprwhelement_pe.name',\n 'sprwhelement_mts.name',\n 'dt_create_timestamp',\n 'dt_update_timestamp', ///\n\n 'job_fin',\n 'job_fin_timestamp',\n 'zakaz_fin',\n 'zakaz_fin_timestamp',\n ])\n ->with('sprwhelement_mts', 'sprwhelement_ap', 'sprwhelement_pe')\n ->where(['AND',\n ['<>', 'job_fin', (int)1],\n ['==', 'id_pe', (int)$pe]\n ]\n );\n\n //ddd($query);\n\n\n $dataProvider = new ActiveDataProvider(\n [\n 'query' => $query,\n 'pagination' => ['pageSize' => 10],\n ]\n );\n\n\n if (!$this->validate()) {\n return $dataProvider;\n }\n\n\n $now_time = strtotime('now');\n $now_start_day = strtotime('today');\n $now_end_day = strtotime('today +24 hours');\n\n\n if (isset($params['posttz']['three'])) {\n\n if (isset($params['posttz']['three']) && $params['posttz']['three'] == 1) { //Просрочено\n $query\n //->andFilterWhere( [ '<=', 'dt_deadline', $now_end_day ] );\n ->andFilterWhere(['<=', 'dt_deadline_timestamp', (int)$now_end_day]);\n\n } elseif (isset($params['posttz']['three']) && $params['posttz']['three'] == 2) { /// Сегодня\n $query\n ->andFilterWhere(['>=', 'dt_deadline_timestamp', (int)$now_start_day])\n ->andFilterWhere(['<=', 'dt_deadline_timestamp', (int)$now_end_day]);\n\n } elseif (isset($params['posttz']['three']) && $params['posttz']['three'] == 3) { // Еще зеленое\n $query->andFilterWhere(['>=', 'dt_deadline_timestamp', (int)$now_time]);\n }\n\n }\n\n\n /// ID\n if (isset($this->id) && $this->id > 0) {\n $query->andFilterWhere(['=', 'id', (int)$this->id]);\n }\n\n\n return $dataProvider;\n }", "public function filters()\n\t{\n\t\treturn $this->belongsToMany('App\\Filters');\n\t}", "function getpersonneClient($id){\n\t\t$q = $this->personne->find('all',array(\n\t\t\t\t\"conditions\" => \"Personne.deleted = 0 and Personne.id_client =$id \",\n\t\t\t\t'limit' => 20,\n\t\t\t\t'fields'=>$this->paginate['fields'] ,\n\t\t\t\t\"order\" => \"Personne.id desc\"\n\t\t));\n\t\treturn $q;\n\t}", "public function search_close_activ($params, $pe)\n {\n $this->load($params);\n\n $query = mts_crm::find()\n ->select([\n 'id',\n 'id_ap',\n 'id_pe',\n 'mts_id',\n 'sprwhelement_pe.name',\n 'sprwhelement_mts.name',\n 'dt_create_timestamp',\n 'dt_update_timestamp', ///\n\n 'job_fin',\n 'job_fin_timestamp',\n 'zakaz_fin',\n 'zakaz_fin_timestamp',\n ])\n ->with('sprwhelement_mts', 'sprwhelement_ap', 'sprwhelement_pe')\n ->where(['AND',\n ['==', 'job_fin', (int)1],\n ['==', 'id_pe', (int)$pe]\n ]\n );\n\n $dataProvider = new ActiveDataProvider(\n [\n 'query' => $query,\n 'pagination' => ['pageSize' => 10],\n ]\n );\n\n\n if (!$this->validate()) {\n return $dataProvider;\n }\n\n\n // $now_time=date('Y-m-d H:i:s',strtotime('now'));\n // $now_start_day=date('Y-m-d H:i:s',strtotime('today'));\n // $now_end_day=date('Y-m-d H:i:s',strtotime('today +24 hours'));\n\n $now_time = strtotime('now');\n $now_start_day = strtotime('today');\n $now_end_day = strtotime('today +24 hours');\n\n\n // ddd($params);\n\n // 'posttz' => [\n // 'three' => '2'\n // ]\n // 'sort' => 'dt_deadline'\n\n // ddd($this);\n\n // if(isset( $this->three )){\n // ddd($this->three);\n // }\n\n\n if (isset($params['posttz']['three'])) {\n\n if (isset($params['posttz']['three']) && $params['posttz']['three'] == 1) { //Просрочено\n $query\n //->andFilterWhere( [ '<=', 'dt_deadline', $now_end_day ] );\n ->andFilterWhere(['<=', 'dt_deadline_timestamp', (int)$now_end_day]);\n\n } elseif (isset($params['posttz']['three']) && $params['posttz']['three'] == 2) { /// Сегодня\n $query\n ->andFilterWhere(['>=', 'dt_deadline_timestamp', (int)$now_start_day])\n ->andFilterWhere(['<=', 'dt_deadline_timestamp', (int)$now_end_day]);\n\n } elseif (isset($params['posttz']['three']) && $params['posttz']['three'] == 3) { // Еще зеленое\n $query->andFilterWhere(['>=', 'dt_deadline_timestamp', (int)$now_time]);\n }\n\n }\n\n\n /// ID\n if (isset($this->id) && $this->id > 0) {\n $query->andFilterWhere(['=', 'id', (int)$this->id]);\n }\n\n\n// $query\n// ->andFilterWhere( [ 'like', 'wh_cred_top_name', $this->wh_cred_top_name ] )\n// ->andFilterWhere( [ 'like', 'name_tz', $this->name_tz ] );\n\n return $dataProvider;\n }", "public function destinationPrices()\n {\n return $this->hasMany('App\\Price', 'destination_country_id');\n }", "public function filterByPrimaryKey($key)\r\n\t{\r\n\t\treturn $this->addUsingAlias(PersonaCastingPeer::ID, $key, Criteria::EQUAL);\r\n\t}", "public function getItemsCriteria() {}", "public function getItemsCriteria() {}", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(OrdencompradetallePeer::IDORDENCOMPRADETALLE, $key, Criteria::EQUAL);\n }", "protected function getAccountsToCancel(): ?Collection\n {\n /** @var AccountQueryContract */\n $query = app()->make(AccountQueryContract::class);\n \n // Matching professional and having chargebee subscription.\n return $query->whereProfessional($this->professional)\n ->active()\n ->get()\n ->filter(fn (AccountContract $account) =>\n $account->getChargebee()?->getChargebeeSubscription()\n );\n }", "public function filterAndShow(Request $request)\n { \n \n $filter=$request['busqueda'];\n $sedes=Sede::where('nombre','LIKE','%'. $filter .'%')\n ->orwhere('telefono','LIKE','%'. $filter .'%')\n ->orwhere('departamento','LIKE','%'. $filter .'%')\n ->orwhere('provincia','LIKE','%'. $filter .'%')\n ->orwhere('distrito','LIKE','%'. $filter .'%')\n ->orwhere('direccion','LIKE','%'. $filter .'%')\n ->orwhere('referencia','LIKE','%'. $filter .'%')\n ->orwhere('nombre_contacto','LIKE','%'. $filter .'%')\n ->orwhere('capacidad_maxima','LIKE','%'. $filter .'%')\n ->orwhere('capacidad_socio','LIKE','%'. $filter .'%')\n ->orwhere('estado','LIKE','%'. $filter .'%')->get();\n \n return view('admin-general.sede.index', compact('sedes'));\n \n }", "public function pais(){\n return $this->belongsTo('App\\Models\\Pais');//relaciona provincia con pais\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FacturesPrestationsPeer::FACT_PREST_ID, $key, Criteria::EQUAL);\n }", "public function criterio(){\n return $this->belongsTo('App\\Models\\Criterio');\n }", "protected function functionCriteria() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!is_array($this->kunjungan)){\n $this->kunjungan = 0;\n }\n \n $criteria->addBetweenCondition('date(tglmasukpenunjang)', $this->tglAwal, $this->tglAkhir);\n $criteria->compare('kunjungan', $this->kunjungan);\n\t\tif(!empty($this->instalasiasal_id)){\n\t\t\t$criteria->addCondition('instalasiasal_id ='.$this->instalasiasal_id);\n\t\t}\n if (!empty($this->instalasiasal_id)){\n if (!is_array($this->ruanganasal_id)){\n $this->ruanganasal_id = 0;\n }\n }\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('carabayar_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('penjamin_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->ruanganasal_id)){\n\t\t\t$criteria->addCondition('ruanganasal_id ='.$this->ruanganasal_id);\n\t\t}\n $criteria->addCondition('ruanganpenunj_id = '.Yii::app()->user->getState('ruangan_id'));\n\n return $criteria;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ExpositorFeriaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filter($criteria, $filter, $args=[]);", "public function getClips($criteria)\n {\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientPrestationsPeer::CL_PREST_ID, $key, Criteria::EQUAL);\n }", "public function searchBezKlienow()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\t\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->together = true;\n\t $criteria->with=array('klient_has_domains'=>'klients');\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('name',$this->name);\n\t\t$criteria->compare('expiry_date',$this->expiry_date,true);\n\t\t$criteria->compare('registrar',$this->registrar,true);\n\t\t$criteria->compare('added_date',$this->added_date,true);\n\t\t$criteria->compare('client',$this->client,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->addBetweenCondition('expiry_date', $this->expiry_date_od, $this->expiry_date_do);\n\t\n\t\t$criteria->addCondition('klients_klients.domains_id is null');\n\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria, \n\t\t\t\t'sort'=>array(\n\t\t\t\t\t\t'defaultOrder'=>array(\n\t\t\t\t\t\t\t\t'expiry_date'=>false\n\t\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'pagination'=>array(\n\t\t\t\t\t\t'pageSize'=>20,\n\t\t\t\t),\n\t\n\t\t));\n\t}", "public function filteredByCategory(Request $request){\n return response(Expense::where('user_id', $request->user()->id)\n ->where('category_id', $request->category)\n ->with('category')\n ->orderBy('created_at', 'desc')\n ->paginate(4), 200);\n }", "public function concessionaires()\n {\n return $this->hasMany('App\\Models\\Concessionaire');\n }", "public function scopeSearch($query, $filter)\n {\n return $query->where('date', '=', $filter)\n // INNER JOIN dealers d on d.id=t.id_dealer\n ->join('dealers', 'tasks.id_dealer', '=', 'dealers.id') \n ;\n \n }", "public function filterConfirmed(bool $confirmed): self;", "public function filtering();", "public function CleanFilter(){\n\t\t$this->_objectFilter = new Model_Aclusuariosonline();\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(FreeShippingPeer::ID, $key, Criteria::EQUAL);\n }", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id_precio', $this->id_precio);\n $criteria->compare('id_serv', $this->id_serv);\n $criteria->compare('monto', $this->monto, true);\n $criteria->compare('fecha_inicio', $this->fecha_inicio, true);\n $criteria->compare('fecha_fin', $this->fecha_fin, true);\n $criteria->compare('activo', $this->activo);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "private function getFilteredCarers($criteria) {\n //always on\n $active = true;\n $nationality = 'all';\n\n //dynamic\n $personGender = $criteria['person_gender'];\n if ($personGender == Constants::GENDER_FEMALE) {\n $workWithMale = false;\n $workWithFemale = true;\n } else {\n $workWithMale = true;\n $workWithFemale = false;\n }\n\n //default value if not saved before in DB\n if (!isset($criteria['showMale'])) {\n $criteria['showMale'] = false;\n }\n if (!isset($criteria['showFemale'])) {\n $criteria['showFemale'] = false;\n }\n if (!isset($criteria['type_care']) || $criteria['type_care'] == \"\") {\n $criteria['type_care'] = Constants::HOURLY;\n }\n\n $showMale = $criteria['showMale'];\n $showFemale = $criteria['showFemale'];\n\n $physicalId = $criteria['physical_condition'];\n $mentalId = $criteria['mental_condition'];\n $ageGroupId = $criteria['age_group'];\n\n if ($criteria['type_care'] == Constants::HOURLY) {\n $hourly = true;\n $liveIn = false;\n } else {\n $hourly = false;\n $liveIn = true;\n }\n\n $activities = array();\n foreach ($criteria as $key => $value) {\n\n if (Util::startsWith($key, 'activities_')) {\n\n $val = Util::lastCharactersAfter($key, 'activities_condition_');\n $activities[] = $val;\n }\n }\n\n $model = Condition::loadModel($physicalId);\n $physicals = $model->getConditionsIdsUp();\n\n $model = Condition::loadModel($mentalId);\n $mentals = $model->getConditionsIdsUp();\n\n $ageGroup = array($ageGroupId);\n\n $postCodeRaw = $criteria['postCode'];\n $postCode = strip_tags(trim(strtoupper($postCodeRaw)));\n if (empty($postCode)) {\n $postCode = null;\n }\n\n $language = 'english';\n\n $carers = DBServices::getFilteredCarers2($activities, $physicals, $mentals, $ageGroup, $active, $workWithMale, $workWithFemale, $nationality, $liveIn, $hourly, $showMale, $showFemale, $postCode, $language);\n\n return $carers;\n }", "public function filter();", "public function search($params)\n {\n /* $cont = (new \\yii\\db\\Query())\n ->select(['contracts'])\n ->from('invoices')\n ->where(['month' => date('m')+1])\n ->andWhere(['prepayment' => 1])\n ->column();\n\n $contracts = array();\n foreach ($cont as $value) {\n $tmp = explode(\",\", $value);\n foreach ($tmp as $contract) {\n array_push($contracts, $contract);\n }\n }\n $contracts = array_unique($contracts);\n if (empty($contracts)) {$contracts = 0; } */\n $currentMonth = strtotime('last day of this month');\n\n $query = Contracts::find()\n ->andWhere(['or',\n ['contracts.status' => Contracts::STATUS_ACTIVE],\n ['and',\n ['contracts.status' => Contracts::STATUS_CLOSED],\n ['>=', 'date_termnate', date('Y-m-d', strtotime('first day of this month'))]\n ],\n ])\n ->andWhere(['>', 'all_funds', 0])\n ->andWhere(['<=', 'start_edu_contract', date('Y-m-d', $currentMonth)]);\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n if ($this->pagination == false) {\n $dataProvider->pagination = false;\n }\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n $query->where('0=1');\n\n return $dataProvider;\n }\n\n $certificates = new Certificates();\n $certificate = $certificates->getCertificates();\n\n $organizations = new Organization();\n $organization = $organizations->getOrganization();\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'number' => $this->number,\n 'date' => $this->date,\n 'certificate_id' => $this->certificate_id,\n 'organization_id' => $organization['id'],\n 'payer_id' => $this->payer_id,\n //'`contracts`.status' => 1,\n 'status_termination' => $this->status_termination,\n 'status_year' => $this->status_year,\n 'start_edu_programm' => $this->start_edu_programm,\n 'start_edu_contract' => $this->start_edu_contract,\n 'stop_edu_contract' => $this->stop_edu_contract,\n ]);\n\n $query->andFilterWhere(['like', 'status_comment', $this->status_comment])\n ->andFilterWhere(['like', 'link_doc', $this->link_doc])\n ->andFilterWhere(['like', 'link_ofer', $this->link_ofer]);\n\n return $dataProvider;\n }", "public function activeCimas()\n {\n return $this->hasMany('App\\Cima')->where('estado',1);\n }", "public function getDoktypeExcludeWhere() {}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(CardPeer::ID, $key, Criteria::EQUAL);\n }", "public function getFiltroCulinarias()\n {\n return Query::fetch('Busca/Filtros/QryBuscarCulinariasComQuantidades');\n }", "public function __invoke($query, $input)\n {\n $arguments = $this->getFilterParams($input);\n\n // Convert the order_date parameter to created_at parameter\n if ( isset($arguments['order_date'])) {\n\n $arguments['created_at'] = $arguments['order_date'];\n\n unset($arguments['order_date']);\n }\n\n //filter Both the relationship Address for billed_to and shipped_to\n if ( isset($arguments['billed_to']) && isset($arguments['shipped_to']) ) {\n\n $billed_to = $input['billed_to'];\n\n $shipped_to = $input['shipped_to'];\n\n $billingName =$this->nameSplitter($billed_to);\n\n $shippedName =$this->nameSplitter($shipped_to);\n\n unset($arguments['billed_to']);\n\n unset($arguments['shipped_to']);\n\n return $query->where(function($qry) use($billingName,$shippedName){\n $qry->whereHas('addresses',function ($q) use ($billingName) {\n $q->where(['first_name' => $billingName['firstname'],\n 'last_name' => $billingName['lastname']]);\n });\n\n $qry->whereHas('addresses',function ($q) use ($shippedName) {\n $q->where(['first_name' => $shippedName['firstname'],\n 'last_name' => $shippedName['lastname']]);\n });\n })->where($arguments);\n } \n\n // filter the relationship addresses for Billing Address\n if ( isset($arguments['billed_to'])) {\n\n $billed_to = $input['billed_to'];\n\n $billingName =$this->nameSplitter($billed_to);\n\n unset($arguments['billed_to']);\n\n return $query->whereHas('addresses',function ($q) use ($billingName) {\n $q->where(['first_name' => $billingName['firstname'],\n 'last_name' => $billingName['lastname']]);\n })->where($arguments);\n }\n\n // filter the relationship addresses for Shipping Address\n if ( isset($arguments['shipped_to'])) {\n\n $shipped_to = $input['shipped_to'];\n\n $shippedName =$this->nameSplitter($shipped_to);\n\n unset($arguments['shipped_to']);\n\n return $query->whereHas('addresses',function ($q) use ($shippedName) {\n $q->where(['first_name' => $shippedName['firstname'],\n 'last_name' => $shippedName['lastname']]);\n })->where($arguments);\n }\n\n return $query->where($arguments);\n }", "function get_occurs_within_where_clause($table_name, $rel_table, $start_ts_obj, $end_ts_obj, $field_name='date_start', $view){\n\t\tglobal $timedate;\n\t\n\t\t$start = clone $start_ts_obj;\n\t\t$end = clone $end_ts_obj;\n\n\t\t$field_date = $table_name.'.'.$field_name;\n\t\t$start_day = $GLOBALS['db']->convert(\"'{$start->asDb()}'\",'datetime');\n\t\t$end_day = $GLOBALS['db']->convert(\"'{$end->asDb()}'\",'datetime');\n\n\t\t$where = \"($field_date >= $start_day AND $field_date < $end_day\";\n\t\tif($rel_table != ''){\n\t\t\t$where .= \" AND $rel_table.accept_status != 'decline'\";\n\t\t}\n\n\t\t$where .= \")\";\n\t\treturn $where;\n\t}", "private function sql_resAllItemsFilterWiRelation()\n {\n // Don't count hits\n $bool_count = false;\n\n // Query for all filter items\n $select = $this->sql_select( $bool_count );\n $from = $this->sql_from();\n $where = $this->sql_whereAllItems();\n $groupBy = $this->curr_tableField;\n $orderBy = $this->sql_orderBy();\n $limit = $this->sql_limit();\n\n// $query = $GLOBALS['TYPO3_DB']->SELECTquery\n// (\n// $select,\n// $from,\n// $where,\n// $groupBy,\n// $orderBy,\n// $limit\n// );\n//$this->pObj->dev_var_dump( $query );\n // Execute query\n $arr_return = $this->pObj->objSqlFun->exec_SELECTquery\n (\n $select, $from, $where, $groupBy, $orderBy, $limit\n );\n // Execute query\n\n return $arr_return;\n }", "public function LayToanBoLopGiangVienDay()\n {\n return $this->hasMany('App\\Models\\lopmonhoc', 'GiangVien_Id','IdGiangVien');\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientPeer::ID, $key, Criteria::EQUAL);\n }", "public function whereComplex()\n {\n return $this->addComplexCondition('and', $this->conditions);\n }", "public function scopeClients($query)\n\t{\n\t\treturn $query->where('cost_center', 0);\n\t}", "public function getFilteredDetails();", "public function compras(){\n return $this->hasMany('App\\CompraInsumo');\n }", "public function exportWhere()\n\t{\n\t\t$keys_to_export = array(\n\t\t\t'id_food',\n\t\t\t'ingredients:id_ingredient',\n\t\t\t'tags:id_tag',\n\t\t\t'id_user',\n\t\t\t'is_finished',\n 'favourite_foods:id_user',\n\t\t);\n\t\t\n\t\treturn $this->exportSubset($keys_to_export);\n\t}", "public function query()\n {\n $tujuan_id = $this->tujuan_id;\n $query = tDisposisiDokumen::with('tujuan','tujuan.direksi')->whereIn('dest_doc_id',$tujuan_id);\n \n return $this->applyScopes($query);\n }", "public function searchByFilterPrint() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!empty($this->rekening1_id)) {\n $criteria->addCondition(\"rekening1_id = \" . $this->rekening1_id);\n }\n $criteria->compare('LOWER(kdrekening1)', strtolower($this->kdrekening1), true);\n $criteria->compare('LOWER(nmrekening1)', strtolower($this->nmrekening1), true);\n $criteria->compare('LOWER(nmrekeninglain1)', strtolower($this->nmrekeninglain1), true);\n// $criteria->compare('LOWER(rekening1_nb)', strtolower($this->rekening1_nb), true);\n $criteria->compare('rekening1_aktif', $this->rekening1_aktif);\n if (!empty($this->rekening2_id)) {\n $criteria->addCondition(\"rekening2_id = \" . $this->rekening2_id);\n }\n $criteria->compare('LOWER(kdrekening2)', strtolower($this->kdrekening2), true);\n $criteria->compare('LOWER(nmrekening2)', strtolower($this->nmrekening2), true);\n $criteria->compare('LOWER(nmrekeninglain2)', strtolower($this->nmrekeninglain2), true);\n// $criteria->compare('LOWER(rekening2_nb)', strtolower($this->rekening2_nb), true);\n $criteria->compare('rekening2_aktif', $this->rekening2_aktif);\n if (!empty($this->rekening3_id)) {\n $criteria->addCondition(\"rekening3_id = \" . $this->rekening3_id);\n }\n $criteria->compare('LOWER(kdrekening3)', strtolower($this->kdrekening3), true);\n $criteria->compare('LOWER(nmrekening3)', strtolower($this->nmrekening3), true);\n $criteria->compare('LOWER(nmrekeninglain3)', strtolower($this->nmrekeninglain3), true);\n// $criteria->compare('LOWER(rekening3_nb)', strtolower($this->rekening3_nb), true);\n $criteria->compare('rekening3_aktif', $this->rekening3_aktif);\n if (!empty($this->rekening4_id)) {\n $criteria->addCondition(\"rekening4_id = \" . $this->rekening4_id);\n }\n $criteria->compare('LOWER(kdrekening4)', strtolower($this->kdrekening4), true);\n $criteria->compare('LOWER(nmrekening4)', strtolower($this->nmrekening4), true);\n $criteria->compare('LOWER(nmrekeninglain4)', strtolower($this->nmrekeninglain4), true);\n// $criteria->compare('LOWER(rekening4_nb)', strtolower($this->rekening4_nb), true);\n $criteria->compare('rekening4_aktif', $this->rekening4_aktif);\n if (!empty($this->rekening5_id)) {\n $criteria->addCondition(\"rekening5_id = \" . $this->rekening5_id);\n }\n $criteria->compare('LOWER(kdrekening5)', strtolower($this->kdrekening5), true);\n $criteria->compare('LOWER(nmrekening5)', strtolower($this->nmrekening5), true);\n $criteria->compare('LOWER(nmrekeninglain5)', strtolower($this->nmrekeninglain5), true);\n// $criteria->compare('LOWER(rekening5_nb)', strtolower($this->rekening5_nb), true);\n $criteria->compare('LOWER(keterangan)', strtolower($this->keterangan), true);\n $criteria->compare('nourutrek', $this->nourutrek);\n $criteria->compare('rekening5_aktif', $this->rekening5_aktif);\n $criteria->compare('LOWER(kelompokrek)', strtolower($this->kelompokrek), true);\n $criteria->compare('sak', $this->sak);\n $criteria->compare('LOWER(create_time)', strtolower($this->create_time), true);\n $criteria->compare('LOWER(update_time)', strtolower($this->update_time), true);\n $criteria->compare('LOWER(create_loginpemakai_id)', strtolower($this->create_loginpemakai_id), true);\n $criteria->compare('LOWER(update_loginpemakai_id)', strtolower($this->update_loginpemakai_id), true);\n $criteria->compare('LOWER(create_ruangan)', strtolower($this->create_ruangan), true);\n// $condition = 'rincianobyek_id IS NOT NULL';\n// $criteria->addCondition($condition);\n $criteria->limit = -1;\n $criteria->order = 'rekening1_id, rekening2_id, rekening3_id, rekening4_id, nourutrek';\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => false,\n ));\n }", "public function relatedInsurences($id)\n\t{\n\t\t$dat = $this->database->table(self::TABLE_NAME)->get($id);\n\n\t\t$pole = array();\n\t\tforeach ($dat->related('lek_pojistovny.ID_leku') as $med)\n\t\t\t$pole[] = $med->ID_pojistovny;\n\t\treturn $this->database->table('pojistovny')->where('ID_pojistovny', $pole);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(PlanPeer::ID, $key, Criteria::EQUAL);\n }", "protected abstract function filter();", "public function getAllPays()\n {\n $listePays = [];\n $sql = $this->bdd->query('SELECT idpays, nompays FROM pays ORDER BY nompays') or die(print_r($this->bdd->errorInfo()));\n $i = 0;\n while ($donnees = $sql->fetch(PDO::FETCH_ASSOC))\n {\n $listePays[$i] = new Pays($donnees['nompays'], $donnees['idpays']);\n $i++;\n }\n return $listePays;\n }", "public function pais(){\r\n return $this->belongsTo('pais');\r\n }", "public function findBy(array $where): ICollection;", "public function searchpareto()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('codalm',$this->codalm,true);\n\t\t$criteria->compare('creadopor',$this->creadopor,true);\n\t\t$criteria->compare('creadoel',$this->creadoel,true);\n\t\t$criteria->compare('modificadopor',$this->modificadopor,true);\n\t\t$criteria->compare('modificadoel',$this->modificadoel,true);\n\t\t$criteria->compare('fechainicio',$this->fechainicio,true);\n\t\t$criteria->compare('fechafin',$this->fechafin,true);\n\t\t$criteria->compare('periodocontable',$this->periodocontable,true);\n\t\t$criteria->compare('codresponsable',$this->codresponsable,true);\n\t\t//$criteria->compare('codart',$this->codart,true);\n\t\t$criteria->compare('codcen',$this->codcen,true);\n\t\t$criteria->compare('um',$this->um,true);\n\t\t$criteria->compare('cantlibre',$this->cantlibre);\n\t\t$criteria->compare('descripcion',$this->descripcion,TRUE);\n\t\t$criteria->compare('canttran',$this->canttran);\n\t\t$criteria->compare('cantres',$this->cantres);\n\t\t$criteria->compare('ubicacion',$this->ubicacion,true);\n\t\t$criteria->compare('lote',$this->lote,true);\n\t\t$criteria->compare('siid',$this->siid,true);\n\t\t$criteria->compare('ssiduser',$this->ssiduser,true);\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->addcondition('cantlibre > 0');\n\n\t\t// $criteria->addCondition(\"cantlibre > 0 or cantres >0 or canttran > 0\");\n\t\tif(isset($_SESSION['sesion_Maestrocompo'])) {\n\t\t\t$criteria->addInCondition('codart', $_SESSION['sesion_Maestrocompo'], 'AND');\n\t\t} ELSE {\n\t\t\t$criteria->compare('codart',$this->codart,true);\n\t\t}\n\t\t//$criteria->addSearchCondition('descripcion',$this->descripcion,FALSE,'and','LIKE');\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => 1000,\n\t\t\t),\n\t\t));\n\t}", "public function getOverdueInvoicesList(InvoiceListingFilter $filter): Collection;", "protected function getWhereClause() {}", "public function reportTwo($id)\n {\n $AplicacionesAspirante = AplicantesConvocatorias::whereHas('detalleConvocatoria', function ($query) use($id){\n $query->where('convocatoria_id', $id);\n })\n ->with('detalleConvocatoria.curso.programa',\n 'detalleConvocatoria.curso.programa',\n 'detalleConvocatoria.cat',\n 'usuario.detail',\n 'evaluacion')\n ->get();\n //dd($AplicacionesAspirante);\n return view('convocatorias.report.two', compact('AplicacionesAspirante')); \n }", "public function getContracts()\n {\n return $this->hasMany(Contracts::className(), ['company_id' => 'id']);\n }" ]
[ "0.5257184", "0.5186439", "0.50765485", "0.5068911", "0.5060244", "0.5034767", "0.49791214", "0.49419966", "0.4924594", "0.4924459", "0.4923939", "0.48719427", "0.4864781", "0.48574683", "0.48567918", "0.48467356", "0.484182", "0.48295373", "0.48228535", "0.48119122", "0.48018175", "0.48009643", "0.47865313", "0.47787276", "0.47699985", "0.4756977", "0.47514802", "0.47446468", "0.47338128", "0.47303241", "0.4720174", "0.4719365", "0.47035125", "0.47034255", "0.4689517", "0.46881938", "0.46778727", "0.46664166", "0.4664615", "0.46643683", "0.4652973", "0.46517596", "0.46462214", "0.4645874", "0.4638699", "0.4616901", "0.46128038", "0.4612", "0.46100694", "0.46100694", "0.4597737", "0.45917264", "0.45894662", "0.45867503", "0.45866373", "0.4584572", "0.45822218", "0.45817795", "0.45738345", "0.4569839", "0.4566968", "0.4565957", "0.45652542", "0.45615306", "0.45588368", "0.45581985", "0.45530245", "0.45528263", "0.4548985", "0.45487824", "0.4547628", "0.4543671", "0.4540335", "0.45297664", "0.45275444", "0.45266804", "0.45262048", "0.45260662", "0.45259184", "0.45227572", "0.4519513", "0.45181212", "0.45181033", "0.45174214", "0.45139518", "0.45115948", "0.4510559", "0.4507393", "0.45069063", "0.45030215", "0.45021304", "0.4502086", "0.45005056", "0.44987333", "0.44953614", "0.44943437", "0.44870293", "0.448685", "0.44848117", "0.44838613" ]
0.5782482
0
Adds a JOIN clause to the query using the IConcernePays relation
public function joinIConcernePays($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('IConcernePays'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'IConcernePays'); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useIConcernePaysQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinIConcernePays($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'IConcernePays', '\\IConcernePaysQuery');\n }", "function joinQuery()\n {\n }", "private function joins()\r\n {\r\n /* SELECT* FROM DOCUMENT WHERE DOCUMENT.\"id\" IN ( SELECT ID FROM scholar WHERE user_company_id = 40 )*/\r\n\r\n $query = EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n ->sql();\r\n\r\n $table = EyufDocument::find()\r\n ->where('\"id\" IN ' . $query)\r\n ->all();\r\n\r\n $second = EyufDocument::findAll(EyufScholar::find()\r\n ->select('id')\r\n ->where([\r\n 'user_company_id' => 40\r\n ])\r\n );\r\n\r\n vdd($second);\r\n }", "public function get_additional_joins()\n {\n return 'LEFT JOIN isys_catg_its_type_list AS cat_rel\n\t\t\tON cat_rel.isys_catg_its_type_list__isys_obj__id = obj_main.isys_obj__id';\n }", "public function compile()\n {\n if (null !== $this->type) {\n $sql = strtoupper($this->type).' JOIN';\n } else {\n $sql = 'JOIN';\n }\n\n $sql .= ' '.$this->quoter->quoteTable($this->table);\n\n if (!empty($this->using)) {\n $sql .= ' USING ('.implode(', ', array_map(array($this->quoter, 'quoteColumn'), $this->using)).')';\n } else {\n $conditions = array();\n\n foreach ($this->on as $condition) {\n list($c1, $op, $c2) = $condition;\n\n if ($op) {\n $op = ' '.strtoupper($op);\n }\n\n $conditions[] = $this->quoter->quoteColumn($c1).$op.' '.$this->quoter->quoteColumn($c2);\n }\n\n $sql .= ' ON ('.implode(' AND ', $conditions).')';\n }\n\n return $sql;\n }", "public function join($table, $key, ?string $operator = null, $foreign = null, string $type = self::INNER_JOIN);", "function get_ons(){\n //\n //Map for each and return an on clause \n $col_str=array_map(array($this, 'map'), $this->foreigns); //\n //\n //Return on joined on \n return implode(\"AND \\t\",$col_str);\n }", "public function _complex_join()\n {\n // LEFT JOIN `%1$sauth_group` on `%1$spro`.`depid` = `%1$sauth_group`.`id`\n // LEFT JOIN (SELECT a.* FROM `%1$sproout` as a INNER JOIN (SELECT max(`id`) as id FROM `%1$sproout` group by `jpid`) as b on a.id = b.id) as `%1$sproout` on `%1$spro`.`id` = `%1$sproout`.`jpid`\n // LEFT JOIN `%1$scust` on `%1$spro`.`cid` = `%1$scust`.`id`', C('DB_PREFIX'));\n\n $join = sprintf('LEFT JOIN `%1$sproin` ON `%1$spro`.`id` = `%1$sproin`.`jpid`\n LEFT JOIN `%1$sauth_group` on `%1$spro`.`depid` = `%1$sauth_group`.`id`\n LEFT JOIN `%1$sproout` on `%1$sproout`.`jpid` = `%1$spro`.`id`\n LEFT JOIN `%1$sproout` tmp_out on tmp_out.`jpid` = `%1$sproout`.`jpid` and tmp_out.`id` > `%1$sproout`.`id`\n LEFT JOIN `%1$scust` on `%1$spro`.`cid` = `%1$scust`.`id`', C('DB_PREFIX'));\n return $join;\n }", "public function getJoin()\n {\n return $this->get(self::_JOIN);\n }", "public function getJoinExpression();", "private function addJoinOnQuery($type, Query $other, Query $whereQuery) {\r\n\t\t//$this->joins[$other->alias]['on'][]=' '.$type.' ('.implode(' ', $whereQuery->wheres).')';\r\n\t\t$this->addJoinOnClause($other, $type, '('.implode(' ',$whereQuery->_salt_wheres).')');\r\n\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::WHERE);\r\n\t}", "public function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "public function addJoin($type, $table, $alias = NULL, $condition = NULL, $arguments = []);", "function joinClause( $join ) {\n\t global $wpdb;\n\t $join .= \" INNER JOIN $wpdb->postmeta dm ON (dm.post_id = $wpdb->posts.ID AND dm.meta_key = '$this->orderby') \";\n\t return $join;\n\t}", "public function joinBookings()\n {\n $this->builder->join('bookings', 'book_id', 'bil_booking');\n }", "public function joinBills()\n {\n $this->builder->join('bills', 'bil_id', 'rc_bill');\n }", "protected abstract function getJoinClause(array $joins);", "public function addJoin(Builder $queryBuilder) : void\n {\n $queryBuilder->join(\n $this->_relatedTable . ' AS ' . $this->name,\n $this->_baseTable . '.' . $this->_baseKey,\n '=',\n $this->name . '.' . $this->_foreignKey\n );\n }", "public function innerJoin($table);", "public function visitJoinClause(\n /*IJoinClause*/ $node) /*: mixed*/ {\n $id = $node->getIdentifier();\n $collection = /*(string)*/$node->getCollection()->accept($this);\n $left = null;\n $left_value = $node->getLeft();\n if ($left_value != null) {\n $left = /*(string)*/$left_value->accept($this);\n }\n $right = null;\n $right_value = $node->getRight();\n if ($right_value != null) {\n $right = /*(string)*/$right_value->accept($this);\n }\n $group = $node->getGroup();\n\n $result = 'join ';\n if ($id !== null) {\n $result .= '$'.$id.' in ';\n }\n $result .= $collection;\n if ($left !== null && $right !== null) {\n $result .= \" on $left equals $right\";\n if ($group !== null) {\n $result .= ' into '.$group;\n }\n }\n return $result;\n }", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "public function innerJoin($table, $conditions = []);", "private function addJoinOnClause($other, $type, $onClause) {\r\n\t\tif (is_array($onClause)) {\r\n\t\t\t$onClause=implode(' ', $onClause);\r\n\t\t}\r\n\t\tif (count($this->_salt_joins[$other->_salt_alias]['on'])>0) {\r\n\t\t\t$this->_salt_joins[$other->_salt_alias]['on'][]=$type.' '.$onClause;\r\n\t\t} else {\r\n\t\t\t$this->_salt_joins[$other->_salt_alias]['on'][]=$onClause;\r\n\t\t}\r\n\t}", "function xiliml_adjacent_join_filter( $join, $in_same_cat, $excluded_categories ) {\n\t\tglobal $post, $wpdb;\n\t\t$curlang = xiliml_get_lang_object_of_post( $post->ID );\n\n\t\tif ( $curlang ) { // only when language is defined !\n\t\t\t$join .= \" LEFT JOIN $wpdb->term_relationships as xtr ON (p.ID = xtr.object_id) LEFT JOIN $wpdb->term_taxonomy as xtt ON (xtr.term_taxonomy_id = xtt.term_taxonomy_id) \";\n\t\t}\n\t\treturn $join;\n\t}", "function buildJoin()\n\t{\n\t\tif ($this->table_obj_reference)\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_reference.\" ON \".$this->table_tree.\".child=\".$this->table_obj_reference.\".\".$this->ref_pk.\" \".\n\t\t\t\t \"JOIN \".$this->table_obj_data.\" ON \".$this->table_obj_reference.\".\".$this->obj_pk.\"=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Use inner join instead of left join to improve performance\n\t\t\treturn \"JOIN \".$this->table_obj_data.\" ON \".$this->table_tree.\".child=\".$this->table_obj_data.\".\".$this->obj_pk.\" \";\n\t\t}\n\t}", "public function join($table, $alias = NULL, $condition = NULL, $arguments = []);", "abstract public function join($alias_from, $rel_name, $alias_to);", "private function buildJoins(): void {\r\n\r\n if(count($this -> joins) > 0) {\r\n\r\n $query = [];\r\n\r\n foreach($this -> joins as $join) {\r\n\r\n $parts = [];\r\n $parts[] = sprintf('%s JOIN', strtoupper($join['type']));\r\n $parts[] = $join['table'];\r\n\r\n if(null !== $join['alias']) {\r\n $parts[] = $join['alias'];\r\n }\r\n\r\n if(null !== $join['conditions']) {\r\n $parts[] = sprintf('ON %s', $join['conditions']);\r\n }\r\n\r\n $query[] = implode(' ', $parts);\r\n }\r\n\r\n $this -> query[] = implode(' ', $query);\r\n }\r\n }", "function getAstroFilterJoin () {\n // Since the Object table doesn't have a filterID field, this will\n // never select the Object table to filter with.\n $filterTable;\n if (!empty ($this->checkTables)) {\n foreach ($this->checkTables as $table) {\n $columns = self::getTableColumns( $table );\n $checkColumns = self::getCheckTableColumns( $table );\n if ( $table != self::JOIN_TABLE && in_array( 'filterID', $columns ) && !empty($checkColumns)) {\n $filterTable = $table;\n break;\n }\n }\n }\n\n // In MSSQL it is *much* faster to use: filterID IN (1, 2, 3)\n // than: (filterID = 1 OR filterID = 2 OR filterID = 3)\n if (!empty ($this->checkAstroFilterIDs) && !empty ($filterTable)) {\n return sprintf (\" AND %s.filterID IN (%s) \",\n self::getTableAlias ($filterTable),\n join (', ', $this->checkAstroFilterIDs));\n }\n return;\n }", "private static function sqlJoining() : string {\n $relations = self::getsRelationsHasOne();\n\n $baseTable = static::tableName();\n $baseProperties = self::getProperties();\n foreach ($baseProperties as &$property) {\n $property = $baseTable . '.' . $property;\n }\n $colsFromBaseTabel = implode(', ', $baseProperties);\n $colsFromJoinedTables = '';\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $modelProperties = $modelNamespace::getProperties();\n foreach ($modelProperties as $key => &$value) {\n $value = $modelTableName . '.' . $value . ' AS ' . $modelTableName . '_' . $value;\n }\n $colsFromJoinedTables .= ', ' . implode(', ', $modelProperties);\n\n }\n $sql = 'SELECT ' . $colsFromBaseTabel . ' ' . $colsFromJoinedTables . ' FROM ' . $baseTable;\n\n foreach ($relations as $relation) {\n $modelNamespace = '\\\\' . $relation['model'];\n $modelTableName = $modelNamespace::tableName();\n $sql .= ' INNER JOIN ' . $modelTableName . ' ON ' . $baseTable . '.' . $relation['column'] . ' = ' . $modelTableName . '.' . $relation['joined-table-column'];\n }\n\n return $sql . ' WHERE ' . $baseTable . '.';\n }", "public function joinCustomers()\n {\n $this->builder->join('customers', 'cus_id', 'rc_customer');\n }", "public function getJoinCondition() {}", "function GetJoins() { return array(); }", "function getJoinCondition() ;", "public function join($table, $on, $field = null, $comparitor = null);", "private function joinWhereIn($query)\n {\n foreach ($this->associativePivots as $basePivot => $mergePivot)\n {\n $query = $query->whereIn($basePivot,$this->mergeCollection->pluck($mergePivot)->toArray());\n }\n\n return $query;\n }", "function join($table, &$query) {\r\n $left = $query->get_table_info($this->left_table);\r\n $output = \" $this->type JOIN {\" . $this->table . \"} $table[alias] ON ($this->left_query) = $table[alias].$this->field\";\r\n\r\n // Tack on the extra.\r\n if (isset($this->extra)) {\r\n if (is_array($this->extra)) {\r\n $extras = array();\r\n foreach ($this->extra as $info) {\r\n $extra = '';\r\n // Figure out the table name. Remember, only use aliases provided\r\n // if at all possible.\r\n $join_table = '';\r\n if (!array_key_exists('table', $info)) {\r\n $join_table = $table['alias'] . '.';\r\n }\r\n elseif (isset($info['table'])) {\r\n $join_table = $info['table'] . '.';\r\n }\r\n\r\n // And now deal with the value and the operator. Set $q to\r\n // a single-quote for non-numeric values and the\r\n // empty-string for numeric values, then wrap all values in $q.\r\n $raw_value = $this->db_safe($info['value']);\r\n $q = (empty($info['numeric']) ? \"'\" : '');\r\n\r\n if (is_array($raw_value)) {\r\n $operator = !empty($info['operator']) ? $info['operator'] : 'IN';\r\n // Transform from IN() notation to = notation if just one value.\r\n if (count($raw_value) == 1) {\r\n $value = $q . array_shift($raw_value) . $q;\r\n $operator = $operator == 'NOT IN' ? '!=' : '=';\r\n }\r\n else {\r\n $value = \"($q\" . implode(\"$q, $q\", $raw_value) . \"$q)\";\r\n }\r\n }\r\n else {\r\n $operator = !empty($info['operator']) ? $info['operator'] : '=';\r\n $value = \"$q$raw_value$q\";\r\n }\r\n $extras[] = \"$join_table$info[field] $operator $value\";\r\n }\r\n\r\n if ($extras) {\r\n if (count($extras) == 1) {\r\n $output .= ' AND ' . array_shift($extras);\r\n }\r\n else {\r\n $output .= ' AND (' . implode(' ' . $this->extra_type . ' ', $extras) . ')';\r\n }\r\n }\r\n }\r\n else if ($this->extra && is_string($this->extra)) {\r\n $output .= \" AND ($this->extra)\";\r\n }\r\n }\r\n return $output;\r\n }", "protected function buildJoinClause() {\r\n\t\t$sql='';\r\n\t\tif (count($this->_salt_joins)>0) {\r\n\t\t\tforeach($this->_salt_joins as $alias => $join) {\r\n\t\t\t\t$sql.=' '.$join['type'].' JOIN '.$join['table'].' ON '.implode(' ', $join['on']);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $sql;\r\n\t}", "public function basic_join_setup()\r\n {\r\n \r\n }", "private function addJoinOn($type, Query $other, $fieldOrExpr, $operator, $valueOrExpr) {\r\n\t\tif (!array_key_exists($other->_salt_alias, $this->_salt_joins)) {\r\n\t\t\tthrow new SaltException(L::error_query_missing_join($other->_salt_alias));\r\n\t\t}\r\n\r\n\t\t$absoluteField = $this->resolveFieldName(ClauseType::JOIN, $fieldOrExpr);\r\n\r\n\t\t$valueOrExpr = $this->resolveFieldName(ClauseType::JOIN, $valueOrExpr, $fieldOrExpr);\r\n\t\tif (is_array($valueOrExpr)) {\r\n\t\t\t$valueOrExpr = '('.implode(', ', $valueOrExpr).')';\r\n\t\t}\r\n\t\t$clause = $absoluteField.' '.$operator.' '.$valueOrExpr;\r\n\r\n\t\t$this->addJoinOnClause($other, $type, $clause);\r\n// \t\t$this->joins[$other->alias]['on'][]=' '.$type.' '.$clause;\r\n\t}", "public function testImplicitJoinWithCartesianProductAndConditionInWhere(): void\n {\n $this->assertValidDQL('SELECT u, a FROM Doctrine\\Tests\\Models\\CMS\\CmsUser u, Doctrine\\Tests\\Models\\CMS\\CmsArticle a WHERE u.name = a.topic');\n }", "private function set_relation_joins() {\n if(!$this->use_relations) return;\n $relations = [];\n foreach ($this->colmodel as $i => $col) {\n if (!isset($col['relation']))\n continue;\n foreach (explode('>', $col['relation']) as $relation) {\n if (!str_contains($relation, '.'))\n continue;\n list($model_name, $relation_name) = explode('.', $relation);\n if ($relation_name != '' && !in_array($relation, $relations)) {\n $this->set_relation_join($model_name, $relation_name);\n $relations[] = $relation;\n }\n }\n }\n }", "public function innerJoin() {\r\n\t\t$args = func_get_args();\r\n\t\t$name = array_shift($args);\r\n\t\t$joined = array_shift($args);\r\n\t\tif (!$name) $name = '___' . $joined;\r\n\t\t//if (count(array_keys(self::$_joinStack, $joined)) > 1) {\r\n\t\tif (get_class($this) == $joined || in_array($joined, self::$_joinStack)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tself::$_joinStack[] = get_class($this);\r\n\t\tself::$_joinStack[] = $joined;\r\n\t\t$model = null;\r\n\t\tif (is_string($joined)) {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = new $joined();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (is_subclass_of($joined, 'Dbi_Model')) {\r\n\t\t\t\t$model = $joined;\r\n\t\t\t}\r\n\t\t}\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tarray_pop(self::$_joinStack);\r\n\t\tif (is_null($model)) {\r\n\t\t\tthrow new Exception('Queries can only join models.');\r\n\t\t}\r\n\t\t$this->_innerJoins[] = array(\r\n\t\t\t'name' => $name,\r\n\t\t\t'model' => $model,\r\n\t\t\t'args' => $args\r\n\t\t);\r\n\t}", "public function naturalJoin($table);", "function innerJoin($conditions)\n\t{\n\t\treturn $this->join('INNER', $conditions);\n\t}", "private function _hookup_joins($include_phone=FALSE)\n {\n $select = TBL_HOOKUPS.'.*,';\n \n $select .= TBL_HOOKUP_REQUESTS.'.user_id,'; \n $select .= TBL_HOOKUP_REQUESTS.'.hookup_id,'; \n $select .= TBL_HOOKUP_REQUESTS.'.is_accepted,'; \n $select .= TBL_HOOKUP_REQUESTS.'.date_requested,'; \n\n $select .= TBL_PAYMENTS.'.*';\n\n $this->db->select($select);\n $this->db->from(TBL_HOOKUPS);\n $this->db->join(TBL_HOOKUP_REQUESTS,TBL_HOOKUPS.'.request_id = '.TBL_HOOKUP_REQUESTS.'.id');\n $this->db->join(TBL_PAYMENTS,TBL_HOOKUPS.'.payment_id = '.TBL_PAYMENTS.'.id');\n }", "private function getJoin() {\n return $this->join;\n }", "private function sql_join($filter, $structure) {\n\t\t$sql = \"\";\n\t\t$table = $structure['table'];\n\t\t$class = $structure['class'];\n\t\t$pool_class = $class . 'Pool_Model';\n\t\t$full_structure = $pool_class::get_full_structure();\n\t\tforeach ($structure['relations'] as $relation) {\n\t\t\tlist($foreign_key, $foreign_table, $key) = $relation;\n\t\t\t$foreign_structure = $full_structure[$foreign_table];\n\t\t\t$ftable = $foreign_structure['table'];\n\t\t\t$join_expr = ' LEFT JOIN '.$ftable.' AS '.$key;\n\t\t\t$join_expr .= ' ON '.implode(' AND ',array_map(function($fk,$lk) use($key,$table) {\n\t\t\t\treturn \"$key.$fk = $table.$lk\";\n\t\t\t}, $foreign_structure['key'], $foreign_key));\n\t\t\t$sql .= $join_expr;\n\t\t}\n\t\treturn $sql;\n\t}", "public function addJoin($assocTable, $col1, $col2, $last = true, $type = \"left\") {\n // Joins will always be on selects\n list($this->sql, $this->from) = splitString($this->sql, \"FROM\");\n // Take care of aliased columns\n if (!empty($assocTable->aliases)) {\n $this->sql .= \", \";\n foreach($assocTable->aliases as $c => $a) {\n $this->sql .= $assocTable->name . \".$c as $a,\";\n }\n // Take the comma off the end\n $this->sql = trim($this->sql, \",\");\n }\n $type = strtoupper($type);\n $this->join .= \" $type JOIN \" . $assocTable->name;\n $this->join .= \" ON \" . $this->table->name . \".\" . $col1 . \" = \" . $assocTable->name . \".\" . $col2;\n if ($last) {\n $this->sql .= \" $this->from\";\n $this->sql .= $this->join;\n }\n }", "abstract protected function appendJoins(QueryBuilder $queryBuilder);", "public function cpJoin() {\n $sql=\"select packages.packageName, prices.id, prices.price, products.productName, products.cid, prices.productID, prices.areaID, prices.packageID \"\n . \"from prices\"\n . \" inner join packages on packages.packageID=prices.packageID\"\n . \" inner join products on prices.productID=products.productID where products.cid='9'\";\n $sth=$this->dbh->prepare($sql);\n \n $sth->execute();\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n}", "public function joinInscripcion($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Inscripcion');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Inscripcion');\n }\n\n return $this;\n }", "public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments = []);", "public function rightOuterJoin($table);", "protected function get_join_sql(array $filters=array()) {\n $joinsql = parent::get_join_sql($filters);\n $joinsql[] = 'JOIN {'.clusterassignment::TABLE.'} clstass\n ON clstass.clusterid='.$this->usersetid.'\n AND clstass.userid = element.id';\n return $joinsql;\n }", "public function joinAssociations()\n {\n return array_slice($this->_joins, 1);\n }", "public function join()\n {\n $this->defaultjoinsetted = true;\n if (!empty($this->entity_link_list)) {\n foreach ($this->entity_link_list as $entity_link) {\n $this->defaultjoin .= \" left join `\" . strtolower(get_class($entity_link)) . \"` on \" . strtolower(get_class($entity_link)) . \".id = \" . $this->table . \".\" . strtolower(get_class($entity_link)) . \"_id\";\n }\n }\n return $this;\n }", "protected function performJoins()\n {\n $query = $this->query;\n\n $predecessor = $this->related;\n\n $this->through_parents->each(function ($model) use ($query, &$predecessor) {\n $first = $predecessor->getQualifiedKeyName();\n $joined = $model->qualifyColumn($this->getForeignKeyName($predecessor));\n\n $query->join($model->getTable(), $first, '=', $joined);\n\n if ($this->hasSoftDeletes($model)) {\n $this->query->whereNull($model->getQualifiedDeletedAtColumn());\n }\n\n $predecessor = $model;\n });\n }", "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 }", "function cf_search_join( $join ) {\n\t\tglobal $wpdb;\n\n\t\tif ( is_search() ) {\n\t\t\t$join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t\t}\n\n\t\treturn $join;\n\t}", "public function SQOfrag_AddJoins_forCatNum(fcSQL_Query $qo) {\n\t$sroDept = $this->SourceDepartments();\n\t$sroSupp = $this->SourceSuppliers();\n\t$qo->Select()->Source()->AddElements(\n\t array(\n\t new fcSQL_JoinElement($sroDept,'t.ID_Dept=d.ID'),\n\t new fcSQL_JoinElement($sroSupp,'t.ID_Supp=s.ID')\n\t )\n\t );\n\t$qo->Select()->Fields()->SetFields($this->Fields_all_forCompile_array());\n }", "public static function doInnerJoin($table2, $params=NULL, $fields=array()) {\n\t\t$conn = parent::_initwgConnector($params, self::PRIMARY_KEY);\n\t\t$what = parent::_getSelectFields($fields);\n\t\t$conn->innerJoin(self::TABLE_NAME, $table2, $what);\n\t\treturn DbModel::doSelect($conn, new ProjectsListingsModel());\n\t}", "private function makeJoins(ParseLoop $parse, $join)\n {\n $model = ModelTools::buildModelName($join['REFERENCED_TABLE_NAME']);\n $parse->setData('joins', [\n 'tablejoin' => $model,\n 'table' => $model . '::TABLE',\n 'leftcol' => $this->classname . '::' . ModelTools::getFieldConstant($this->table, $join['COLUMN_NAME']),\n 'rightcol' => $model . '::' . ModelTools::getFieldConstant($join['REFERENCED_TABLE_NAME'], $join['REFERENCED_COLUMN_NAME'])\n \n ]);\n }", "public function addConstraints()\n {\n $this->setJoin ()->setWhere ();\n }", "public function getJoins() {\n\t\t$sql = \"\";\n\t\tif (count($this->join) > 0) {\n\t\t\tforeach ($this->join as $j) {\n\t\t\t\t$sj = $j[2];\n\t\t\t\t$sql .= \" \".$j[0].\" JOIN \".$sj->getFrom().\" ON \".$sj->getTable().\".`\".$j[3].\"`=\".$this->getTable().\".`\".$j[1].\"`\";\n\t\t\t\t$sql .= $sj->getJoins();\n\t\t\t}\n\n\n\t\t}\n\t\treturn $sql;\n\t}", "function cf_search_join( $join ) {\n\t global $wpdb;\n\n\t if ( is_search() ) { \n\t $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t }\n\t \n\t return $join;\n\t}", "public function fullOuterJoin($table);", "public function on($c1, $op, $c2)\n {\n if (!empty($this->using)) {\n throw new QuarkException('JOIN ... ON ... cannot be combined with JOIN ... USING ...');\n }\n\n $this->on[] = array($c1, $op, $c2);\n\n return $this;\n }", "public function leftOuterJoin($table);", "public function join($tbl_name, array $condition, $type = Operator::JOIN_INNTER)\n {\n $output = array();\n $func = function ($value) use (&$output)\n {\n $value = $this->escapeString($value);\n $output[] = \"`{$value}`\";\n };\n $temp = explode('.', $tbl_name);\n $output = array();\n array_walk($temp, $func);\n $tbl_name = implode('.', $output);\n $target_str = $tbl_name;\n $on_str_list = array();\n foreach ($condition as $item) {\n $temp = explode('.', $item);\n $output = array();\n array_walk($temp, $func);\n $on_str_list[] = implode('.', $output);\n }\n $type = ltrim($type, '$');\n $on_str = implode(' = ', $on_str_list);\n $join_str = \"{$type} {$target_str} ON {$on_str}\";\n $this->join_str_list[] = $join_str;\n return $this;\n }", "public function joinClienti($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('Clienti');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'Clienti');\n }\n\n return $this;\n }", "public function joinCuadreCaja($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('CuadreCaja');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'CuadreCaja');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function testBuildJoinDefaultWithTwoJoinOn()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->joinOn('id', 'id')\n ->joinOn('user_id', 'type_id')\n )\n ;\n\n $this->assertSame(\n 'LEFT JOIN table2 ON table1.id = table2.id AND table1.user_id = table2.type_id',\n $query->buildJoin()\n );\n }", "function getJoinType() ;", "public function addJoin($table, $condition, $joinType)\n {\n $this->appendSql($this->filterJoinType($joinType))->\n appendSql(' JOIN ')->\n appendSql($table)->\n appendSql(' ON ')->\n appendSql(\"({$condition})\");\n return $this;\n }", "function outerJoin($conditions)\n\t{\n\t\treturn $this->join('OUTER', $conditions);\n\t}", "public function join($table, $condition = [], $join = '')\n\t{\n\t\tif(count($condition) == 3)\n\t\t\t$this->_query .= strtoupper($join) . // convert $join to upper case (left -> LEFT)\n\t\t\t\t\" JOIN {$table} ON {$condition[0]} {$condition[1]} {$condition[2]}\";\n\n\t\t// that's it now return object from this class\n\t\treturn $this;\n }", "public function addConstraints()\n {\n $throughValue = $this->farChild[$this->secondKey];\n\n $this->performJoin();\n\n if (static::$constraints) {\n $this->query->where($this->getQualifiedSecondOwnerKeyName(), '=', $throughValue);\n }\n\n }", "function query() {\n dpm($this);\n $this->ensure_my_table();\n\n // First, relate our current table to the link table via the field\n $first = array(\n 'left_table' => $this->table_alias,\n 'left_field' => $this->field, // @TODO real_field?\n 'table' => $this->definition['link table'],\n 'field' => $this->definition['link field'],\n );\n\n if (!empty($this->options['required'])) {\n $first['type'] = 'INNER';\n }\n\n if (!empty($this->definition['link_join_extra'])) {\n $first['extra'] = $this->definition['link_join_extra'];\n }\n\n if (!empty($this->definition['join_handler']) && class_exists($this->definition['join_handler'])) {\n $first_join = new $this->definition['join_handler'];\n }\n else {\n $first_join = new views_join();\n }\n $first_join->definition = $first;\n $first_join->construct();\n $first_join->adjusted = TRUE;\n\n $this->first_alias = $this->query->add_table($this->definition['link table'], $this->relationship, $first_join);\n\n // Second, relate the link table to the entity specified using\n // the specified base fields on the base and link tables.\n $second = array(\n 'left_table' => $this->first_alias,\n 'left_field' => $this->definition['base link field'],\n 'table' => $this->definition['base'],\n 'field' => $this->definition['base field'],\n );\n\n if (!empty($this->options['required'])) {\n $second['type'] = 'INNER';\n }\n\n if (!empty($this->definition['base_join_extra'])) {\n $second['extra'] = $this->definition['base_join_extra'];\n }\n\n if (!empty($this->definition['join_handler']) && class_exists($this->definition['join_handler'])) {\n $second_join = new $this->definition['join_handler'];\n }\n else {\n $second_join = new views_join();\n }\n $second_join->definition = $second;\n $second_join->construct();\n $second_join->adjusted = TRUE;\n\n // use a short alias for this:\n // @TODO real_field?\n $alias = $this->field . '_' . $this->definition['base'];\n\n $this->alias = $this->query->add_relationship($alias, $second_join, $this->definition['base'], $this->relationship);\n }", "public function add_filter_join($field, $join_type = 'or')\n\t{\n\t\tif (!empty($this->filter_join) AND is_string($this->filter_join))\n\t\t{\n\t\t\t$this->filter_join = array($this->filter_join);\n\t\t}\n\t\t$this->filter_join[$field] = $join_type;\n\t}", "public function testBuildWhereWithJoin()\n {\n $query = $this->getQuery()\n ->table('table1')\n ->alias('table1_alias')\n ->join(\n $this->getQuery()\n ->table('table2')\n ->alias('table2_alias')\n ->joinOn('id', 'id')\n ->where('is_admin', 1)\n )\n ->where('id', 100)\n ;\n\n $this->assertSame(\n \"WHERE table1_alias.id = '100' AND table2_alias.is_admin = '1'\",\n $query->buildWhere()\n );\n }", "function yy_r71(){ $this->_retvalue = new Stmt\\Join('INNER', $this->yystack[$this->yyidx + 0]->minor); }", "public function joinCalendarevent($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('Calendarevent');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'Calendarevent');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "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 }", "public function getJoinType() {}", "public function scopeModelJoin($query, $relation_name, $operator = '=', $type = 'left', $where = false) {\n $relation = $this->$relation_name();\n $table = $relation->getRelated()->getTable();\n if ($relation instanceof BelongsTo) {\n //this tables key pointing to remote table\n $one = $this->getTable() . \".\" . $relation->getForeignKey();\n //remote table primary key\n $two = $relation->getRelated()->getQualifiedKeyName();\n } else { //HasMany or HasOne\n //current table id column\n $one = $relation->getParent()->getQualifiedKeyName();\n //remote table column related to this id\n $two = $relation->getForeignKey();\n }\n //counties.state_id = state.id\n if (empty($query->columns)) {\n $query->select($this->getTable().\".*\");\n }\n\n //$join_alias = $table;\n $prefix = $query->getQuery()->getGrammar()->getTablePrefix();\n $join_alias = $relation_name;\n foreach (\\Schema::getColumnListing($table) as $related_column) {\n $query->addSelect(\\DB::raw(\"`$prefix$join_alias`.`$related_column` AS `$join_alias.$related_column`\"));\n }\n $two = str_replace($table . \".\", $join_alias . \".\", $two);\n return $query->join(\"$table AS $prefix$relation_name\", $one, $operator, $two, $type, $where); //->with($relation_name);\n\n }", "protected function joining_table()\n {\n return $this->connection()->table($this->joining);\n }", "private function joinWhereIn($query)\n {\n foreach ($this->pivots as $basePivot => $mergePivot) {\n $query = $query->whereIn($basePivot, $this->mergeCollection->pluck($mergePivot)->toArray());\n }\n\n return $query;\n }", "public function getJoinSql($data, $link) {\n $str = ' ';\n if ($data->joins) {\n foreach ($data->joins as $join) {\n $join['type'] = strtoupper($join['type']);\n if (strncmp('NATURAL', $join['type'], 7) === 0) {\n $str .= $join['type'] . ' JOIN ' . $this->formatTable($join['table']) . $this->parseIndexHint($join['index_hint']);\n } else {\n $str .= $join['type'] . ' JOIN ' . $this->formatTable($join['table']) . $this->parseIndexHint($join['index_hint']) . ($join['cond'] ? ' ON ' . $this->parseWhere($join['cond'], '', $link) : '');\n }\n }\n }\n\n return $str;\n }", "public function on($c1, $op, $c2)\n {\n $joins = $this->_join;\n // 将内部指针指向数组中的最后一个元素\n end($joins);\n // 返回数组内部指针当前指向元素的键名\n $key = key($joins);\n\n $this->_on[$key][] = array($c1, $op, $c2, 'AND');\n return $this;\n }", "protected function get_join_sql(array $filters=array()) {\n $joinsql = parent::get_join_sql($filters);\n $joinsql[] = 'LEFT JOIN {'.clusterassignment::TABLE.'} clstass\n ON clstass.clusterid='.$this->usersetid.'\n AND clstass.userid = element.id';\n return $joinsql;\n }", "public function joinResources()\n {\n $this->builder->join('resources', 'rs_id', '=', 'add_resource');\n }", "function addJoin($name, $joinType, $tableA, $tableB, $fieldA, $fieldB) {\n\t\t$this->addBlock('from', $name, array(array($joinType, $tableA, $tableB, $fieldA, $fieldB)));\n\t\treturn $this;\n\t}", "function getSQL(?GrammarInterface $grammar): string {\n if($grammar !== null) {\n $table = $grammar->quoteTable($this->table->getTable());\n \n $alias = $this->table->getAlias();\n if(!empty($alias)) {\n $table .= ' AS '.$alias;\n }\n } else {\n $table = $this->table;\n }\n \n $ons = (\n !empty($this->ons) ?\n ' ON '.\\implode(' AND ', $this->ons) :\n ''\n );\n \n return ($this->type ? $this->type.' ' : '').'JOIN '.$table.$ons;\n }", "private function addJoin(Query $other, $fieldOrExpr, $operator, $valueOrExpr, $type = 'INNER', $table, $withOtherDatas=TRUE) {\r\n\t\tif (isset($this->_salt_joins[$other->_salt_alias])) {\r\n\t\t\tthrow new SaltException(L::error_query_duplicate_join($other->_salt_alias));\r\n\t\t}\r\n\r\n\t\t$this->_salt_joins[$other->_salt_alias]=array(\r\n\t\t\t'type'=>strtoupper($type),\r\n\t\t\t'table'=>$table,\r\n\t\t\t'on'=>array(),\r\n\t\t);\r\n\r\n\t\t$absoluteField = $this->resolveFieldName(ClauseType::JOIN, $fieldOrExpr);\r\n\r\n\t\t$valueOrExpr = $this->resolveFieldName(ClauseType::JOIN, $valueOrExpr, $fieldOrExpr);\r\n\t\tif (is_array($valueOrExpr)) {\r\n\t\t\t$valueOrExpr = '('.implode(', ', $valueOrExpr).')';\r\n\t\t}\r\n\t\t$clause = $absoluteField.' '.$operator.' '.$valueOrExpr;\r\n\r\n\t\t$this->addJoinOnClause($other, 'AND', $clause);\r\n\r\n\t\tif ($withOtherDatas) {\r\n\t\t\t// Merge of others parameters\r\n\t\t\tif (count($other->_salt_fields) > 0) {\r\n\t\t\t\t$this->_salt_fields=array_merge($this->_salt_fields, $other->_salt_fields);\r\n\t\t\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::SELECT);\r\n\t\t\t}\r\n\t\t\tif (count($other->_salt_wheres) > 0) {\r\n\t\t\t\t//$this->addWhereClause('AND', $other->wheres);\r\n\t\t\t\t$this->addJoinOnClause($other, 'AND', $other->_salt_wheres);\r\n\t\t\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::WHERE);\r\n\t\t\t}\r\n\t\t\tif (count($other->_salt_groups) > 0) {\r\n\t\t\t\t$this->_salt_groups=array_merge($this->_salt_groups, $other->_salt_groups);\r\n\t\t\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::GROUP);\r\n\t\t\t}\r\n\t\t\tif (count($other->_salt_orders) > 0) {\r\n\t\t\t\t$this->_salt_orders=array_merge($this->_salt_orders, $other->_salt_orders);\r\n\t\t\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::ORDER);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// join (Select ...) : link ALL binds, because we include full query text\r\n\t\t\t$this->linkBindsOf($other, ClauseType::JOIN);\r\n\t\t}\r\n\t}", "protected function setJoin($query = null)\n {\n $query = $query ? : $this->query;\n $baseTable = $this->related->getTable ();\n $key = $baseTable . '.' . $this->related->getKeyName ();\n $query->join ( $this->table, $key, '=', $this->getOtherKey () );\n return $this;\n }", "public function outerJoin($className, $field = null) {\n return $this->joinHelper($className, $field, $this->outerJoin);\n }", "private static function selectAndJoins()\n {\n $sql = \"SELECT * FROM \" . dbPerformance::DBNAME;\n\n $sql .= \" INNER JOIN \" . dbCompetition::DBNAME . \" ON \" . dbPerformance::DBNAME . \".\" . dbPerformance::COMPETITOINID . \" = \" . dbCompetition::DBNAME . \".\" . dbCompetition::ID;\n $sql .= \" INNER JOIN \" . dbDisziplin::DBNAME . \" ON \" . dbPerformance::DBNAME . \".\" . dbPerformance::DISZIPLINID . \" = \" . dbDisziplin::DBNAME . \".\" . dbDisziplin::ID;\n $sql .= \" INNER JOIN \" . dbAthletes::DBNAME . \" ON \" . dbPerformance::DBNAME . \".\" . dbPerformance::ATHLETEID . \" = \" . dbAthletes::DBNAME . \".\" . dbAthletes::ID;\n $sql .= \" LEFT JOIN \" . dbPerformanceDetail::DBNAME . \" ON \" . dbPerformance::DBNAME . \".\" . dbPerformance::ID . \" = \" . dbPerformanceDetail::DBNAME . \".\" . dbPerformanceDetail::PERFORMANCEID;\n\n $sql .= \" INNER JOIN \" . dbCompetitionLocations::DBNAME . \" ON \" . dbCompetition::DBNAME . \".\" . dbCompetition::LOCATIONID . \" = \" . dbCompetitionLocations::DBNAME . \".\" . dbCompetitionLocations::ID;\n $sql .= \" INNER JOIN \" . dbCompetitionNames::DBNAME . \" ON \" . dbCompetition::DBNAME . \".\" . dbCompetition::NAMEID . \" = \" . dbCompetitionNames::DBNAME . \".\" . dbCompetitionNames::ID;\n return $sql;\n }", "public function joinPricingRule();", "final public static function innerJoin(string $table, string $primaryKey, string $foreignKey)\n {\n //inicia o select\n self::$query .= \" INNER JOIN \" . $table . \" ON $table.$primaryKey = \" . self::tableName() . \".$foreignKey \";\n return (new static);\n }" ]
[ "0.65018654", "0.6084332", "0.5795712", "0.5771382", "0.56853354", "0.54811746", "0.54685354", "0.5439745", "0.53833187", "0.5378942", "0.5371064", "0.53464717", "0.5333564", "0.5320476", "0.53058743", "0.52861017", "0.52651405", "0.5255205", "0.5233911", "0.5230929", "0.5223461", "0.5220743", "0.5218198", "0.52015966", "0.5200427", "0.51992506", "0.5192377", "0.5188066", "0.51856685", "0.51773185", "0.5164856", "0.51505125", "0.51497114", "0.51305866", "0.5128622", "0.51179713", "0.5113344", "0.5101995", "0.5097324", "0.5092616", "0.5081561", "0.50803035", "0.5078849", "0.50735766", "0.50680864", "0.50404", "0.5036764", "0.5031339", "0.50312907", "0.5019227", "0.49930817", "0.49800655", "0.4977444", "0.4967306", "0.49556673", "0.49456316", "0.4941777", "0.4933348", "0.49333343", "0.49232408", "0.49185678", "0.491775", "0.4913788", "0.4890023", "0.4889027", "0.48845258", "0.4884235", "0.48826522", "0.48698002", "0.48489693", "0.48355177", "0.4830004", "0.48212305", "0.4819417", "0.48152393", "0.48115844", "0.48104838", "0.4808403", "0.48038998", "0.47902375", "0.47881293", "0.47827846", "0.47757247", "0.47748443", "0.4774184", "0.47714874", "0.4769976", "0.47697106", "0.47689322", "0.47639117", "0.47506163", "0.47486547", "0.47383603", "0.47369736", "0.4735704", "0.47328353", "0.4728414", "0.4726501", "0.471916", "0.47120404" ]
0.6496832
1
Use the IConcernePays relation IConcernePays object
public function useIConcernePaysQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinIConcernePays($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'IConcernePays', '\IConcernePaysQuery'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByIConcernePays($iConcernePays, $comparison = null)\n {\n if ($iConcernePays instanceof \\IConcernePays) {\n return $this\n ->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $iConcernePays->getIDInfos(), $comparison);\n } elseif ($iConcernePays instanceof ObjectCollection) {\n return $this\n ->useIConcernePaysQuery()\n ->filterByPrimaryKeys($iConcernePays->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByIConcernePays() only accepts arguments of type \\IConcernePays or Collection');\n }\n }", "public function cai () {\n return $this->belongsTo(Cai::class);\n }", "public function coa(): belongsTo\n {\n return $this->belongsTo(COA::class,'coa_id');\n }", "public function getConvocados()\n {\n return $this->hasMany(InterConvocados::className(), ['modo_id' => 'id']);\n }", "public function inscripciones(){\n return $this->hasMany('App\\Models\\Inscripcion');\n }", "public function getCind()\n {\n return $this->hasOne(ComportamientoIndicador::className(), ['cind_id' => 'cind_id']);\n }", "public function concessionaires(){\n return $this->hasMany('App\\Concessionaire');\n }", "public function comics() {\n\t\treturn $this->belongsToMany('Comic');\n\n\t}", "public function concessionaires()\n {\n return $this->hasMany('App\\Models\\Concessionaire');\n }", "public function getAssociation()\n {\n\n }", "public function condominos()\n {\n return $this->belongsTo('VCCon\\Domains\\Condominos\\Models\\Condomino', 'condomino_id');\n }", "public function coordinacion()\n {\n \treturn $this->belongsTo('App\\Coordinacion','tCoordinacion_idCoordinacion', 'idCoordinacion');\n }", "public function actaConcertacion()\n {\n return $this->hasMany('App\\ActaConcetacion');\n }", "public function inscripcion(){\n return $this->belongsTo('App\\Models\\Inscripcion');\n }", "public function cate()\n {\n return $this->belongsTo(Cate::class);\n }", "public function CicloCDI(){\n return $this->belongsTo(Ciclo::class, 'ciclo_id', 'id');\n }", "public function intereses()\n {\n return $this->belongsToMany('App\\Intereses1','cliente_intereses1','cliente_id', 'intereses1_id');\n }", "public function pais(){\r\n return $this->belongsTo('pais');\r\n }", "public function getTakeaways()\n {\n return $this->hasMany(Takeaway::className(), ['id_cliente' => 'id_cliente']);\n }", "public function citas()\n \t\t{\n \t\t\treturn $this->hasMany(Cita::class);\n \t\t}", "public function LayToanBoLopGiangVienDay()\n {\n return $this->hasMany('App\\Models\\lopmonhoc', 'GiangVien_Id','IdGiangVien');\n }", "public function compras(){\n return $this->hasMany('App\\CompraInsumo');\n }", "public function citas()\n {\n return $this->belongsToMany(Cita::class);\n }", "public function coaches()\n {\n return $this->hasMany('App\\Coach');\n }", "public function getCodope(){\n\t\treturn $this->codope;\n\t}", "public function pais(){\n return $this->belongsTo('App\\Models\\Pais');//relaciona provincia con pais\n }", "public function coches(){\n return $this->hasMany(Coche::class);\n }", "public function getApInvs()\n {\n return $this->hasMany(ApInv::className(), ['currency_id' => 'currency_id']);\n }", "public function conocimiento_idiomas(){\n\t\treturn $this->hasMany('App\\ConocimientoIdioma', 'Idm_ID_Asp');\n\t}", "public function contract_has_many_invoices()\n {\n $this->assertEquals(self::$contract->invoice(), self::$contract->hasMany('App\\Invoice', 'contract_id'));\n }", "public function getContracts()\n {\n return $this->hasMany(Contracts::className(), ['company_id' => 'id']);\n }", "public function ponderacion() {\n\t\treturn $this->belongsTo('App\\Ponderacion');\n\t}", "public function internship()\n {\n return $this->belongsTo('\\App\\Internship');\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function ini_obra(){\n return $this->belongsTo('App/Ini_obra');\n }", "public function canalesAdquisicion()\n {\n return $this->belongsToMany('App\\CanalAdquisicion', 'clientes_canales_adquisicion', 'id_cliente', 'id_canal_adquisicion');\n }", "public function ayudas(){\n return $this->belongsTo('App\\ayuda','id_beneficiario', 'id_beneficiario');\n }", "public function initialize()\n {\n $this->hasMany('informacion_id', 'Informacionadicional', 'informacion_id', array('alias' => 'Informacionadicional'));\n $this->belongsTo('informacion_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\n }", "public function clinicas()\n {\n return $this->belongsToMany(Clinica::class);\n }", "public function get_pais()\n {\n \n // loads the associated object\n if (empty($this->pais))\n $this->pais = new Pais($this->pais_id);\n \n // returns the associated object\n return $this->pais;\n }", "public function beneficiary()\n {\n return $this->belongsTo(Beneficiary::class);\n }", "public function beneficiary()\n {\n return $this->belongsTo(Beneficiary::class);\n }", "public function cocktails()\n {\n return $this->belongsToMany('App\\Cocktail', 'cki', 'cki_id_ingredient', 'cki_id_cocktail');\n }", "public function provincy(){\n return $this->belongsTo('App\\Provincy', 'provincy_id');\n }", "public function getCrate()\n {\n return $this->hasOne(Crates::className(), ['id' => 'id_crate']);\n }", "public function curson()\n {\n return $this->belongsTo(Curso::class, 'curso_id');\n }", "public function beneficiary()\n {\n return $this->belongsTo(Beneficiary::class, 'beneficiary_id');\n }", "public function cimeros()\n {\n return $this->belongsTo('App\\Cimero','id','provincia');\n }", "public function cdp(){\n \treturn $this->hasOne('App/cdp','id_cdp');\n \t}", "public function getClinic()\n {\n return $this->hasOne(Consid::className(), ['wd_id' => 'clinicId']);\n }", "public function ciclo(){\n return $this->belongsTo(Ciclo::class,'ciclo_id','id');\n }", "public function inventario()\n {\n return $this->hasMany('App\\Inventario');\n }", "public function joinIConcernePays($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('IConcernePays');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'IConcernePays');\n }\n\n return $this;\n }", "public function cour()\n {\n return $this->belongsTo('App\\Cour');\n }", "public function cour()\n {\n return $this->belongsTo('App\\Cour');\n }", "public function ciclo()\n {\n \t// belongsTo(RelatedModel, foreignKey = _id, keyOnRelatedModel = id)\n \treturn $this->belongsTo(Ciclo_escolar::class);\n }", "public function iglesia(){\n return $this->hasOne('App\\Iglesia', 'id', 'id_iglesia');\n }", "public function prospecto(){\n return $this->belongsTo('App/Cliente');\n }", "public function curso()\n \t\t{\n \t\t\treturn $this->belongsTo(Curso::class, 'id_curso', 'id');\n \t\t}", "public function iiee(){\n return $this->belongsTo(Iiee::class,'iiee_id');\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "public function relations()\n\t{\n\t\t// class name for the relations automatically generated below.\n\t\treturn array(\n 'nas'=>array(self::BELONGS_TO,'Nas','nas_id'),\n 'leased'=>array(self::HAS_MANY,'IpLeased','pool_id'),\n\t\t);\n\t}", "public function comisiones()\n {\n return $this->hasMany('App\\Commissions', 'idBanca');\n }", "public function incidencies() //: HasMany\n {\n return $this->hasMany(Incidencia::class, 'municipis_id');\n }", "public function initialize()\n {\n $schema = new Infra();\n $this->setSchema($schema->getSchemaBanco());\n $this->setSource(\"pessoa\");\n $this->hasOne('id', 'Circuitos\\Models\\Cliente', 'id_pessoa', ['alias' => 'Cliente']);\n $this->hasOne('id', 'Circuitos\\Models\\ClienteUnidade', 'id_pessoa', ['alias' => 'ClienteUnidade']);\n $this->hasOne('id', 'Circuitos\\Models\\Fabricante', 'id_pessoa', ['alias' => 'Fabricante']);\n $this->hasMany('id', 'Circuitos\\Models\\PessoaContato', 'id_pessoa', ['alias' => 'PessoaContato']);\n $this->hasMany('id', 'Circuitos\\Models\\PessoaEmail', 'id_pessoa', ['alias' => 'PessoaEmail']);\n $this->hasMany('id', 'Circuitos\\Models\\PessoaEndereco', 'id_pessoa', ['alias' => 'PessoaEndereco']);\n $this->hasOne('id', 'Circuitos\\Models\\PessoaFisica', 'id', ['alias' => 'PessoaFisica']);\n $this->hasOne('id', 'Circuitos\\Models\\PessoaJuridica', 'id', ['alias' => 'PessoaJuridica']);\n $this->hasMany('id','Circuitos\\Models\\PessoaTelefone', 'id_pessoa', ['alias' => 'PessoaTelefone']);\n $this->hasOne('id', 'Circuitos\\Models\\Usuario', 'id_pessoa', ['alias' => 'Usuario']);\n }", "public function cidade(){\n return $this->belongsTo('App\\Cidade');\n\n }", "public function programas(){\n return $this\n ->belongsToMany('App\\Models\\Carrera', 't_institutos_carreras', 'id_instituto', 'id_carrera')->where('activo','=', 1);;\n }", "function getSesCopay($sesId) {\n\t\t\n\t\t$sesCopayAmt = array(\"amount\"=>0, \"place\"=>0);\n\t\ttry {\n\t\t\n\t\t\tif($sesId > 0) {\n\t\t\t\n\t\t\t\t$sqlGetSes = \"SELECT cs.clientID, cs.providerID, cs.sessionDate, cs.fee, cs.adj_fee, \n\t\t\t\t\t\t\tcs.other_ins_adj, cs.amt_paid, cs.out_of_network_ins_type, cs.client_copay,\n\t\t\t\t\t\t\tcs.procedureID, cs.pending_personinsurance_id, pp.code\n\t\t\t\t\t\t\tFROM clientsession AS cs \n\t\t\t\t\t\t\tLEFT JOIN providerprocedure AS pp ON cs.procedureID = pp.id\n\t\t\t\t\t\t\tWHERE cs.id = '$sesId'\n\t\t\t\t\t\t\tAND cs.sessionStatus = 1\";\n\t\t\t\t\t\t\t\n\t\t\t\t$resGetSes = DB::do_query($sqlGetSes);\n\t\t\t\t\n\t\t\t\tif(DB::db_fetch_num_rows($resGetSes) > 0) {\n\t\t\t\t\n\t\t\t\t\t$rowGetSes = DB::db_fetch_assoc($resGetSes);\n\t\t\t\t\t\n\t\t\t\t\t$clientId = $rowGetSes['clientID'];\n\t\t\t\t\t$providerId = $rowGetSes['providerID'];\n\t\t\t\t\t\n\t\t\t\t\t$sesDate = $rowGetSes['sessionDate'];\n\t\t\t\t\t$sesProc = $rowGetSes['code'];\n\t\t\t\t\t$sesFee = $rowGetSes['fee'];\n\t\t\t\t\t$sesAdjFee = $rowGetSes['adj_fee'];\n\t\t\t\t\t$sesOthInsAdj = $rowGetSes['other_ins_adj'];\n\t\t\t\t\t$sesInsPay = $rowGetSes['amt_paid'];\n\t\t\t\t\t$sesInsCopay = $rowGetSes['client_copay'];\n\t\t\t\t\t$pendingInsId = $rowGetSes['pending_personinsurance_id'];\n\t\t\t\t\t$ONNType = $rowGetSes['out_of_network_ins_type'];\n\t\t\t\t\t\n\t\t\t\t\tif($ONNType == 1) {\n\t\t\t\t\t\t$sesCopayAmt['amount'] = 0;\n\t\t\t\t\t\t$sesCopayAmt['place'] = 0;\n\t\t\t\t\t}else if($pendingInsId == 0){\n\t\t\t\t\t\t$sesCopayAmt['amount'] = 0;\n\t\t\t\t\t\t$sesCopayAmt['place'] = 0;\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\n\t\t\t\t\t\tif($sesInsCopay > 0) { // if copay set by insurance, we have to this as priority\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$sesCopayAmt[\"amount\"] = $sesInsCopay;\n\t\t\t\t\t\t\t$sesCopayAmt[\"place\"] = 1;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$balMethod = new GetBalMethod();\n\t\t\t\t\t\t\t$clientBalCalMethod = array();\n\t\t\t\t\t\t\t$clientBalCalMethod = $balMethod->checkClientBalCalcMethodToUse(strtotime($sesDate), $clientId, $providerId, $sesProc);\n\n\t\t\t\t\t\t\tif(count($clientBalCalMethod) && $clientBalCalMethod['method'] == 2) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(array_key_exists($sesProc, $clientBalCalMethod['copay'])) {\n\t\t\t\t\t\t\t\t\t$sesCopayAmt['amount'] = $clientBalCalMethod['copay'][$sesProc];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$sesCopayAmt['amount'] = $balMethod->getFirstCopayUcrAmount($clientBalCalMethod['balCustId'], $sesProc, 1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$sesCopayAmt['place'] = 0;\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\t}catch(Exception $e) {\n\t\t\tAPP::logErrors($e);\n\t\t}\n\t\t\n\t\treturn $sesCopayAmt;\n\t}", "public function inventarios(){\n return $this->hasMany('App\\Models\\Inventario');\n }", "public function cargaPonderacion() {\n\t\treturn $this->belongsTo('App\\CargaPonderacion');\n\t}", "public function Impuesto(){\n return $this->hasOne(Impuesto::class,'id','impuesto');\n }", "public function getIrelation()\n {\n return $this->irelation;\n }", "public function centro(){\n return $this->belongsTo('App\\CentroHospitalario','pk_centro');\n }", "public function cargo()\n {\n return $this->belongsTo('PlanificaMYPE\\Cargo', 'idCargo', 'idCargo');\n }", "public function curso()\n {\n return $this->hasOne('App\\Models\\Cursos','id_curso');\n }", "public function interest(){\n return $this->belongsTo(Interest::class);\n }", "public function tipos_de_acoes_da_instituicao()\n {\n return $this->hasMany(TipoDeAcaoDaInstituicao::class, 'instituicao_id');\n }", "public function initialize()\n {\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', array('alias' => 'Documentosbeneficios'));\n $this->hasMany('id_tipobeneficio', 'Documentosbeneficios', 'id_tipobeneficio', NULL);\n }", "public function currency_code(){\n return $this->hasMany('App\\CurrencyCode','cid','id');\n }", "public function ChallengeDay()\n {\n return $this->belongsTo(Day::class, 'C_day', 'day_id');\n }", "public function getClips($criteria)\n {\n }", "public function citizen()\n {\n return $this->hasMany(Citizen::class);\n }", "public function getShippingInvoiced();", "public function estadoCivil(){\n return $this->belongsTo('App\\EstadoCivil','pk_estado_civil');\n }", "public function convocaPersona(postulantesInterface $postulante){\n yii::error('convocando perosna');\n if(!$postulante->isNewRecord && $postulante->esconvocable()){\n yii::error('cumple');\n $model=new \\frontend\\modules\\inter\\models\\InterConvocados();\n $model->setScenario($model::SCENARIO_CONVOCATORIAMINIMA);\n $model->setAttributes(\n [\n 'universidad_id'=>$this->universidad_id,\n 'facultad_id'=>$this->facultad_id,\n 'depa_id'=>$this->depa_id,\n 'modo_id'=>$this->id,\n 'persona_id'=>$postulante->persona->id,\n //'docente_id'=>$postulante->id,\n 'programa_id'=>$this->programa_id,\n 'codperiodo'=>$this->programa->codperiodo,\n 'codocu'=>$model::CODIGO_DOCUMENTO,\n \n \n ]);\n $model->attributes=$postulante->pushAttributeInterModo(\n $model->attributes);\n return $model->firstOrCreate($model->attributes,\n $model::SCENARIO_CONVOCATORIAMINIMA);\n //yii::error();\n \n }else{\n return false;\n }\n \n \n \n \n }", "public function __construct(Convite $convite)\n {\n $this->convite = $convite;\n }", "public function comision(){\n return $this->belongsTo(Comision::class);\n }", "public function invoice()\n {\n return $this->belongsTo(InvoiceProxy::modelClass(), 'saas_subscription_invoice_id');\n }", "public function conjuntos(){\n\n return $this->belongsToMany('Conjunto','administrador_conjunto','administrador_id','conjunto_id');\n\n }", "public function carpeta(){\n return $this->hasOne('App\\CarpetaAdjuntos','id_carpeta_adjuntos','id_carpeta_adjuntos');\n }", "public function paris() {\n $relation = $this->hasMany(\"Paris\");\n return $relation;\n }", "public function CahierDesCharges()\n\t{\n\t\treturn $this->hasMany('App\\CahierDesCharges', 'company_id');//mise en place de la relation (clef etrangère) cahier des charges a pour clef etrangère la clef primaire de la table company\n\t}", "public function pc_cuentaauxiliar() {\n return $this->belongsTo('App\\Models\\Admin\\Pc\\pc_cuentaauxiliar','cntaux_id','id');\n }", "public function Compras_Ot()\n {\n return $this->hasMany('App\\Compras_Ot','tipos_compras_id','id');\n }", "public function incidences() {\n return $this->hasMany(Incidence::class);\n }", "public function correspondences(){\n return $this ->hasMany('App\\Correspondence');\n }", "public function getAllPays()\n {\n $listePays = [];\n $sql = $this->bdd->query('SELECT idpays, nompays FROM pays ORDER BY nompays') or die(print_r($this->bdd->errorInfo()));\n $i = 0;\n while ($donnees = $sql->fetch(PDO::FETCH_ASSOC))\n {\n $listePays[$i] = new Pays($donnees['nompays'], $donnees['idpays']);\n $i++;\n }\n return $listePays;\n }", "public function court()\n {\n return $this->belongsTo('App\\Court');\n }", "public function penilaian()\n {\n return $this->hasMany('App\\Penilaian');\n }", "public function getFkComprasSolicitacaoItens()\n {\n return $this->fkComprasSolicitacaoItens;\n }" ]
[ "0.54829735", "0.52944255", "0.51724446", "0.5141058", "0.51190513", "0.5112738", "0.5101737", "0.5090666", "0.5056922", "0.5028633", "0.50052315", "0.5001507", "0.498274", "0.49762902", "0.49697334", "0.49585783", "0.4956564", "0.4929576", "0.49202684", "0.4912594", "0.4907057", "0.48851582", "0.487354", "0.4868365", "0.48590875", "0.48526523", "0.48521617", "0.48409638", "0.47914332", "0.4790645", "0.4789511", "0.47621378", "0.47620884", "0.47485885", "0.4719383", "0.4716107", "0.47142872", "0.47096762", "0.47082162", "0.47029588", "0.47021687", "0.47021687", "0.47003558", "0.46882913", "0.46864378", "0.46862134", "0.4684612", "0.46828428", "0.46805698", "0.4672187", "0.46720716", "0.46691146", "0.46587342", "0.46424997", "0.46424997", "0.4642083", "0.4633554", "0.4633542", "0.46328244", "0.46175823", "0.46114478", "0.4611306", "0.4607969", "0.4607139", "0.45995173", "0.45990828", "0.45913005", "0.45910457", "0.45901355", "0.45877373", "0.45857215", "0.45810965", "0.45791", "0.45775682", "0.45754856", "0.4572579", "0.45704618", "0.4569435", "0.45662096", "0.45661014", "0.45613766", "0.45609862", "0.4558137", "0.45574307", "0.45568013", "0.4551604", "0.45493942", "0.45411968", "0.45283043", "0.4512767", "0.4511119", "0.45106918", "0.45046106", "0.44979632", "0.44917533", "0.44889352", "0.44884515", "0.44851995", "0.44841748", "0.44836012" ]
0.6053427
0
Exclude object from result
public function prune($fPartenaire = null) { if ($fPartenaire) { $this->addUsingAlias(FPartenaireTableMap::COL_INDX_PART, $fPartenaire->getIDPart(), Criteria::NOT_EQUAL); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_all_exclude_id(){\n $data = get_object_vars($this);\n unset($data[\"id\"]);\n return $data;\n }", "protected function getExcludeFields() {}", "public function getAllExcept($id);", "public static function getExcludeFields() {}", "public function getExcludeQueryPart() {}", "public function getDoktypeExcludeWhere() {}", "public function getExclude()\n {\n return $this->exclude;\n }", "public function getAllFieldsExcludingAPI ($toExclude = array()) {\n $obj = $this->owner;\n\n // All Field Names\n $fieldNames = array_merge(\n array_keys($obj->allDatabaseFields()),\n array_keys($obj->hasOne()),\n array_keys($obj->hasMany())\n );\n\n // Removed fields in $toExclude\n $fieldNames = array_diff($fieldNames, $toExclude);\n\n return $obj->getFieldsForAPI($fieldNames);\n }", "public function get_exclusions() {\n return clone($this->exclude);\n }", "public function getIgnoreItems(): array;", "public function getAllowedExcludeFields() {}", "public function skipProperties() {}", "abstract protected function getDataTypesToExclude();", "public function unfilter() {\n\n \treturn new Octopus_Model_ResultSet(\n \t\t$this->_modelClass,\n \t\tnull,\n \t\t$this->_orderBy\n\t );\n\n }", "public function getModlogOmitFields();", "public function withoutTransformer();", "public function testOmit() {\n\t\t$array = array('one' => 1, 'two' => 2, 'three' => 3);\n\t\t$expected = array('three' => 3);\n\t\t$result = _::omit($array, 'one', 'two');\n\t\t$this->assertEquals($expected, $result);\n\n\t\t// test picking properties off an object\n\t\t$object = (object)$array;\n\t\t$expected = (object)$expected;\n\t\t$result = _::omit($object, 'one', 'two');\n\t\t$this->assertEquals($expected, $result);\n\t}", "public function Filter_Not() {\r\n\t\treturn array(\r\n\t\t\t'where' => '0'\r\n\t\t);\r\n\t}", "function BuyableCalculatedExcludedFrom(){\n\t\tif($this->owner InstanceOf ProductVariation) {\n\t\t\tif($product = $this->owner->Product()) {\n\t\t\t\treturn $product->ExcludedFrom();\n\t\t\t}\n\t\t}\n\t\treturn $this->owner->ExcludedFrom();\n\t}", "public function clearExcludes()\r\n {\r\n foreach ($this->facetQueries as $facetQuery) {\r\n $facetQuery->clearExcludes();\r\n }\r\n\r\n return parent::clearExcludes();\r\n }", "private function filterNotItems(array $output): array\n {\n foreach ($this->not as $exclude) {\n $translator = new PathTranslator($output);\n $paths = $translator->path($exclude);\n\n if (0 === $paths->count()) {\n continue;\n }\n\n foreach ($paths as $keys) {\n if (null !== $keys) {\n $this->removeFromArray($output, $keys->getPath());\n }\n }\n }\n\n return $output;\n }", "public function getIgnoreEnableFields() {}", "public function allowAllPropertiesExcept() {}", "public function exclude_offered() {\n\t\treturn new PSU_Student_Finaid_Awards_ExcludeOfferedFilterIterator( $this->getIterator() );\n\t}", "public function exclude() {\n\t\t// If there is no arguments, return $this\n\t\t$numArgs = func_num_args();\n\t\tif($numArgs == 0){ return $this; }\n\t\t\n\t\t// If only a lone array is passed use it as parameters\n\t\t$firstArgument = func_get_arg(0);\n\t\tif ($numArgs == 1 and isset($firstArgument[0]) and is_array($firstArgument[0])) {\n\t\t\treturn $this->_f(false, $firstArgument);\n\t\t}\n\n\t\t// General case of filtering: arguments are conditions\n\t\treturn $this->_f(false, func_get_args());\n\t}", "public function negate()\n\t{\n\t\t$this->not_in = !$this->not_in;\n\t}", "public function getPayloadNotIncluded();", "public function withoutValue();", "public function getExcludedIds();", "public function except($values);", "public function skipUnknownProperties() {}", "public function getExcludeHideFromSearch()\n {\n return $this->excludeHideFromSearch;\n }", "function getIgnoreEnableFields() ;", "protected function exclude_spare()\n {\n return $this->collection = $this->collection->where('is_spare', 'f');\n }", "function applyIgnore( array $ignore );", "protected function getExtensionsToExclude() {}", "public function testExclude() {\n $this->assertEquals(array('foo' => 123), Hash::exclude(array('foo' => 123, 'bar' => 456, 'baz' => 789), array('bar', 'baz')));\n }", "public function negate()\n {\n $this->_not = true;\n return $this;\n }", "public function excludeFromExport(): self\n {\n $this->includeInExport = false;\n\n return $this;\n }", "public function excludeFromSource($field);", "public function except(...$post_ids): Collection;", "static public function showOnlyNotTargetVisits(){\n $registro = static::leftJoin(\"users\",\"visitors.user_id\",\"=\",\"users.id\")\n ->join('handling_times',\"visitors.handling_time_id\",\"=\",\"handling_times.id\")\n ->join('direction_tickets',\"visitors.direction_ticket_id\",\"=\",\"direction_tickets.id\")\n ->join('directions',\"direction_tickets.direction_id\",\"=\",\"directions.id\")\n ->join('sectors',\"directions.sector_id\",\"=\",\"sectors.id\")\n ->select('visitors.id','first_name','last_name','identification_card','phone','sector','input')\n ->where('output','=',null)\n ->orderBy('visitors.id', 'DESC')\n ->paginate(30);;\n return $registro;\n }", "public function getExcludes()\n {\n // code...\n return $this->__EXCLUDES__ ?? [];\n }", "public function getSourceExcludes();", "public function excludedVoters()\n {\n return $this->voters()->where('is_excluded', true);\n }", "protected function _negateQuery($query) {\n $field = $query->options()['fields'][0];\n\n $negativeQuery = new AdvancedQuery($query->model(), 'all', [\n 'fields' => [\n $field\n ],\n 'conditions' => [\n QueryCondition::comparison($field, 'NOT IN', $query)\n ]\n ]);\n\n return $negativeQuery;\n }", "public function clear_exclusions() {\n $this->exclude = array();\n }", "public function getVariantListExceptCurrent()\n {\n $oList = $this->getVariantList();\n if (is_object($oList)) {\n $oList = clone $oList;\n }\n\n $sOxId = $this->getProduct()->getId();\n if (isset($oList[$sOxId])) {\n unset($oList[$sOxId]);\n }\n\n return $oList;\n }", "public function testNoIntersection()\n {\n $config = array(\n 'default' => TRUE,\n );\n\n $request = array(\n 'Attributes' => array(\n 'eduPersonTargetedID' => array('[email protected]'),\n 'eduPersonAffiliation' => array('member'),\n 'cn' => array('user name'),\n 'mail' => array('[email protected]'),\n 'discardme' => array('somethingiswrong'),\n ),\n 'Destination' => array(\n 'attributes' => array('urn:oid:1.2.840.113549.1.9.1'),\n ),\n 'Source' => array(\n ),\n );\n\n $result = self::processFilter($config, $request);\n $attributes = $result['Attributes'];\n $this->assertCount(0, $attributes);\n $this->assertEmpty($attributes);\n }", "public function ignoreMember(MemberRepositoryInterface $target): PodiumResponse;", "public function getExclude() {\n \treturn array_keys($this->exclude);\n }", "public function skipCriteria( $status = TRUE );", "public function getIgnore()\n {\n return $this->ignore;\n }", "public function withoutIncludes(): self\n {\n $this->setDefaultIncludes([]);\n\n return $this;\n }", "public function getIgnoreItemsOnUpdate(): array;", "function dry() {\n\t\treturn !$this->item;\n\t}", "public function getRemovedObjects() {}", "public function getExcludeTypes()\n {\n return $this->exclude_types;\n }", "public function removeExclude($exclude)\r\n {\r\n foreach ($this->facetQueries as $facetQuery) {\r\n $facetQuery->removeExclude($exclude);\r\n }\r\n\r\n return parent::removeExclude($exclude);\r\n }", "protected abstract function filter();", "public function negate()\n {\n return $this->copy(null, null, !$this->isNegative());\n }", "public function filter();", "function shouldSkipUnknownProperties() ;", "public function disableDistinct() {\r\n $this->myCRUD()->disableDistinct();\r\n return $this;\r\n }", "public function withoutData(): EntityInterface;", "public function getEnableFieldsToBeIgnored() {}", "public function ignore($item=null) {\n $this->__ignoreObjects__ = $item === 2 || $item === 5;\n $this->__ignoreObjectLists__ = $item === 3 || $item === 5;\n return $this;\n }", "function tradeoff_excluded_by($definition)\n {\n return app(Models\\Resolution\\ExcludedBy::class)->setData($definition);\n }", "public function getUnexportedRecords()\n\t{\n\t\t$this->addFieldToFilter('export_date', array('null' => 1));\n\t\treturn $this;\n\t}", "function ithi_exclude_pages($query) {\n if ($query->is_search) {\n $query->set('post_type', 'post');\n }\n return $query;\n}", "public function getOrphaned() {\r\n\t\t\r\n\t\t$query = \"SELECT * FROM $this->att WHERE $this->att.event_id = 0\";\r\n\t\t\t\t\r\n\t\treturn $this->executeQuery($query);\r\n\t}", "protected function nonbillable()\n {\n return $this->builder->where('billable', false);\n }", "protected function getHtmlArmorExcludedFields() {\n\t\treturn [ 'id', 'class', 'aria' ];\n\t}", "protected function loadToIgnore(){\n\t\t\t$otherClass=$this->class;\n\t\t\t$this->toIgnore = array();\n\t\t\tif(isset($otherClass::$ignoreProperties) && is_array($otherClass::$ignoreProperties)){\n\t\t\t\t$this->toIgnore = $otherClass::$ignoreProperties;\n\t\t\t}\n\t\t}", "public function getExcludeListArray() {}", "protected function getDifferencesObject() {}", "function get_all_but_not_this_user($usr)\n{\n $user=$usr->__get('uid');\n $con = connect();\n\t$q1=mysqli_query($con,\"SELECT * FROM user WHERE UId != '$user'\");\n\treturn $q1;\n}", "public function getVotosNegativos()\n {\n return $this->getVotos()->where(['positivo' => false]);\n }", "public function findWithoutArchive()\n {\n $nowmoins = date('y-m-d', strtotime('- 1 month'));\n $todayConvert = DateTime::createFromFormat(\"y-m-d\",$nowmoins,null);\n dump($todayConvert);\n\n $qb = $this->createQueryBuilder('s');\n $qb->andwhere('s.datedebut > :todayConvert')->setParameter('todayConvert',$todayConvert);\n $query = $qb->getQuery();\n return $query->getResult();\n\n }", "function GetExcludedEvents();", "public function not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}", "public function newQueryWithoutRelationships();", "public function testThatGetAllUsersIncludeFieldsIsNotOverwritten()\n {\n $api = new MockManagementApi( [new Response( 200, self::$headers ) ] );\n\n $api->call()->users()->getAll( [ 'include_fields' => false ], [ 'field3' ], true );\n\n $query = $api->getHistoryQuery();\n $this->assertContains( 'fields=field3', $query );\n $this->assertContains( 'include_fields=false', $query );\n }", "public function getListNotSent()\n {\n $this->getSelect()\n ->where('main_table.sent_sucess = ?', Emv_Emt_Model_Resending_Queue_Message::IS_NOT_SENT)\n ->orWhere('main_table.sent_sucess IS NULL')\n ->where('main_table.number_attempts IS NULL OR main_table.number_attempts < ?', Emv_Emt_Model_Resending_Queue_Message::MAX_ATTEMPT)\n ->order('main_table.id');\n\n return $this;\n }", "public function testFetchFilteredNoComments(): void\n {\n $users = new Select($this->orm, User::class);\n $users->load('posts', [\n 'where' => function (Select\\QueryBuilder $qb): void {\n $qb->distinct()\n ->with('comments', ['method' => Select\\JoinableLoader::LEFT_JOIN])\n ->where('comments.id', '=', null);\n },\n ])->orderBy('user.id');\n\n $this->assertEquals([\n [\n 'id' => 1,\n 'email' => '[email protected]',\n 'balance' => 100.0,\n 'posts' => [\n [\n 'id' => 3,\n 'user_id' => 1,\n 'title' => 'post 3',\n ],\n ],\n ],\n [\n 'id' => 2,\n 'email' => '[email protected]',\n 'balance' => 200.0,\n 'posts' => [\n [\n 'id' => 4,\n 'user_id' => 2,\n 'title' => 'post 4',\n ],\n ],\n ],\n ], $users->fetchData());\n }", "function getEnableFieldsToBeIgnored() ;", "public function byCriterionNonEntity()\n {\n $this->dbFinder->findByCriterion($this->mockConnection, $this->getMock('stubCriterion'), new stubReflectionClass('MockNoEntityAnnotationEntity'));\n }", "protected function getIgnoreAttributes(){\n\t\t\t$reflector = new ReflectionClass($this->class);\n\t\t\t$staticProperties = array_keys($reflector->getStaticProperties());\n\t\t\tif($this->keys){\n\t\t\t\treturn array_merge(\n\t\t\t\t\t\tarray_keys(get_class_vars(QueryBuilder::class)),\n\t\t\t\t\t\t$this->keys,\n\t\t\t\t\t\t$staticProperties,\n\t\t\t\t\t\t$this->toIgnore);\n\t\t\t}else{\n\t\t\t\treturn array_merge(\n\t\t\t\t\tarray_keys(get_class_vars(QueryBuilder::class), $staticProperties),\n\t\t\t\t\t$this->toIgnore);\n\t\t\t}\n\t\t}", "public function exclude($exclude = [])\n {\n $this->exclude = $exclude;\n return $this;\n }", "function accouk_exclude_pages_from_search_results($query) {\n\n if ($query->is_search) {\n $query->set('post_type', 'post');\n }\n\n return $query;\n\n}", "abstract public function filterFields();", "public function whereNotEq()\n {\n \n list($field, $value) = $this->extractQueryToFieldAndValue(func_get_args());\n $this->_conditions[self::WHERENOT][$field] = [self::OPERATORS['ne'] => $value];\n return $this;\n }", "public function exclude_content_object($id)\n {\n $conditions = array();\n $conditions[] = new EqualityCondition(\n new PropertyConditionVariable(\n ContentObjectInclude::class_name(),\n ContentObjectInclude::PROPERTY_CONTENT_OBJECT_ID\n ),\n new StaticConditionVariable($this->get_id())\n );\n $conditions[] = new EqualityCondition(\n new PropertyConditionVariable(\n ContentObjectInclude::class_name(), ContentObjectInclude::PROPERTY_INCLUDE_ID\n ),\n new StaticConditionVariable($id)\n );\n $condition = new AndCondition($conditions);\n\n $include = DataManager::retrieve(\n ContentObjectInclude::class_name(),\n new DataClassRetrieveParameters($condition)\n );\n\n if ($include instanceof ContentObjectInclude)\n {\n return $include->delete();\n }\n else\n {\n return false;\n }\n }", "public function scrubObject(object $data) : object;", "public function get_unapproved_items() {\n return $this->query(\"SELECT * FROM `items` where NOT `approved` order by `premium` desc, `date`\");\n }", "public function filtering();", "public function createNot()\n {\n $o = new NotSelector();\n $this->appendSelector($o);\n\n return $o;\n }", "function discardQuery() {}", "public function removeUnusedObjects()\n {\n // Setze ein Array mit used-Einträgen auf false\n $entries = $this->crossReferenceTable->getAll();\n $used = [];\n foreach ($entries as $objectNumber => $value) {\n $used[$objectNumber] = false;\n }\n $used[0] = true; // Eintrag Nummer 0 muss existieren.\n\n // Laufe alle Referenzen durch\n $this->findIndirectReferences($this->trailerDictionary, $used);\n\n // Entferne nicht genutzte Objekte\n foreach ($used as $objectNumber => $objectUsed) {\n if (!$objectUsed) {\n $this->crossReferenceTable->removeEntry($objectNumber);\n //echo \"Removed Object $objectNumber\\n\";\n }\n }\n }", "public function negate() : self\n {\n $b = [];\n\n foreach ($this->a as $rowA) {\n $rowB = [];\n\n foreach ($rowA as $valueA) {\n $rowB[] = -$valueA;\n }\n\n $b[] = $rowB;\n }\n\n return self::quick($b);\n }", "static function createIgnoreWith($fields) {\r\n return static::make($fields)->createIgnore();\r\n }" ]
[ "0.6944211", "0.6665992", "0.6381747", "0.6298523", "0.628999", "0.6212721", "0.61923695", "0.615611", "0.61423695", "0.6132622", "0.6029146", "0.60162425", "0.59564036", "0.5921121", "0.5910564", "0.58563745", "0.58482957", "0.58308554", "0.5769157", "0.57635164", "0.5682927", "0.56787694", "0.56786346", "0.56778055", "0.5673477", "0.5647196", "0.56455046", "0.5631799", "0.5629696", "0.56225914", "0.5612788", "0.55889064", "0.5587421", "0.5555137", "0.55291206", "0.55026084", "0.54984754", "0.54703367", "0.54652655", "0.5465071", "0.5461349", "0.54451454", "0.54380757", "0.54309803", "0.5418428", "0.5410978", "0.54070824", "0.5405841", "0.5404286", "0.53788334", "0.53481984", "0.53452575", "0.5336853", "0.5316625", "0.53105074", "0.5309197", "0.53076863", "0.53038794", "0.529147", "0.5290545", "0.52897304", "0.5287", "0.5285629", "0.52812654", "0.5269745", "0.5268839", "0.52533245", "0.52433115", "0.5239914", "0.52357054", "0.5235528", "0.5229551", "0.52275795", "0.52241325", "0.52233464", "0.5219645", "0.5214414", "0.52119255", "0.52112526", "0.5210717", "0.52065605", "0.5204174", "0.5180996", "0.51620144", "0.5161195", "0.5156143", "0.515549", "0.5150869", "0.51473904", "0.51407665", "0.51372945", "0.51047915", "0.50983804", "0.5095586", "0.5078541", "0.5077127", "0.5074168", "0.50729614", "0.5068119", "0.50640595", "0.5063749" ]
0.0
-1
Deletes all rows from the finance_part table.
public function doDeleteAll(ConnectionInterface $con = null) { if (null === $con) { $con = Propel::getServiceContainer()->getWriteConnection(FPartenaireTableMap::DATABASE_NAME); } // use transaction because $criteria could contain info // for more than one table or we could emulating ON DELETE CASCADE, etc. return $con->transaction(function () use ($con) { $affectedRows = 0; // initialize var to track total num of affected rows $affectedRows += parent::doDeleteAll($con); // Because this db requires some delete cascade/set null emulation, we have to // clear the cached instance *after* the emulation has happened (since // instances get re-added by the select statement contained therein). FPartenaireTableMap::clearInstancePool(); FPartenaireTableMap::clearRelatedInstancePool(); return $affectedRows; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAll()\n {\n $query = 'TRUNCATE TABLE `'. $this->getTableName() .'`';\n $this->db->sql_query($query);\n }", "public function deleteAll(){\n try {\n $this->getTable()->delete();\n } catch (\\Exception $e) {\n $this->handleException($e);\n }\n return;\n }", "function deleteall() {\n\t\t$this->_query( \"DELETE FROM $0\" );\n\t}", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "protected function deleteAll()\n {\n Yii::$app->db->createCommand()\n ->delete($this->tableName, [$this->primaryKey => $this->owner->{$this->primaryKey}])\n ->execute();\n }", "protected function delete() {\n $this->db->deleteRows($this->table_name, $this->filter);\n storeDbMsg($this->db);\n }", "public function deleteTestEntities() {\n $statement = sprintf(\"DELETE FROM %s WHERE %s < 0 AND %s < 0\", static::TABLE, static::FIELDS[0], static::FIELDS[1]);\n\n $this->db->exec($statement);\n }", "public function removeAll() {\n $sql = 'SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE course';\n \n $connection_manager = new connection_manager();\n $conn = $connection_manager->connect();\n \n $stmt = $conn->prepare($sql);\n \n $stmt->execute();\n $count = $stmt->rowCount();\n }", "public static function deleteAll() {\n // Initiate implicit tx if explicit one doesn't exist\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail because 'databaseHandle' wasn't initialized by 'beginTx()' \n assert(isset(self::$databaseHandle));\n\n try {\n $sql_records = static::fetchAll();\n foreach ($sql_records as $record) {\n $record->delete();\n } \n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n }", "public function deleteAll() {\n \n $stmt = $this->pdo->prepare('DELETE FROM stocks');\n $stmt->execute();\n return $stmt->rowCount();\n }", "function delete(){\n // Delete subclauses\n foreach($this->subClause as $clause){\n $clause->delete();\n }\n \n mysql_query(\"DELETE FROM resolution WHERE id='$this->clauseId'\") or die(mysql_error());\n }", "function delete() {\n\t\t$sql = \"DELETE FROM cost_detail\n\t\t\t\tWHERE cd_fr_id=?, cd_seq=?\";\n\t\t$this->ffm->query($sql, array($this->cd_fr_id, $this->cd_seq));\n\t}", "function deleteAll() {\n\t\t$dbh=$this->getdbh();\n\t\t$sts = $dbh->exec('DELETE FROM '.$this->enquote($this->tablename));\n\t\treturn $sts;\n\t\n\t}", "function deleteAll ($tablename) {\n\t\t$this->deleteWhere($tablename, NULL);\n\t}", "public function delete() {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\t$query = \"DELETE FROM \".$this->getTableName();\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"AND\").\" \".$column.\" = '\".$val.\"'\";\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$res = $dbh->exec($query);\n\t\t$dbh = null;\n\t\treturn $res;\n\t}", "private function clear_dummy_data()\n {\n $this->adapter->query('DELETE FROM ' . RUCKUSING_TS_SCHEMA_TBL_NAME);\n }", "function deleteFee()\n {\n global $db;\n $requete = $db->prepare('DELETE FROM fees WHERE idF = ?');\n $requete->execute(array($this->idF));\n }", "public function deleteTable(){\n\t \n\t\tglobal $wpdb;\n\n\t\t$wpdb->query('DELETE FROM wp_nouveautes_test WHERE datep_nouveaute > \"2014-04-13\"');\n\n\t\t$wpdb->query('DELETE FROM wp_custom_categories_test WHERE term_id > 247');\n\t\t\t\t \n\t\t$wpdb->query('TRUNCATE TABLE wp_subcategories_test');\n\t\t\n\t\t$wpdb->query('TRUNCATE TABLE wp_extracategories_test');\n\t\t\n\t\t$wpdb->query('TRUNCATE TABLE wp_updated');\n\t\t \t\t \n\t}", "public function delete() {\n\t\tglobal $wpdb;\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'woocommerce_tax_rates' );// phpcs:ignore\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'wc_tax_rate_classes' );// phpcs:ignore\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'woocommerce_order_items' );// phpcs:ignore\n\t\t$wpdb->query( 'TRUNCATE TABLE ' . $wpdb->prefix . 'woocommerce_order_itemmeta' );// phpcs:ignore\n\t\t$this->order = null;\n\t\t$this->product = null;\n\t\t$this->tax_rate_ids = array();\n\t}", "public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }", "public function clearDb ()\n {\n // Empty tables and reset auto-increment values\n $this->_dbh->query('SET FOREIGN_KEY_CHECKS = 0');\n foreach (self::$dbTables as $table) {\n $stmt = $this->_dbh->prepare('TRUNCATE `' . $table . '`');\n $stmt->execute();\n $stmt = $this->_dbh->prepare('ALTER TABLE `' . $table . '` AUTO_INCREMENT = 1');\n $stmt->execute();\n }\n // Re-enable checks only if set as such in config\n $config = parse_ini_file('config/AcToBs.ini', true);\n if (isset($config['checks']['fk_constraints']) && $config['checks']['fk_constraints'] == 1) {\n $this->_dbh->query('SET FOREIGN_KEY_CHECKS = 1');\n }\n // Delete denormalized tables\n foreach (self::$dbDenormalizedTables as $table) {\n $stmt = $this->_dbh->prepare('DROP TABLE IF EXISTS `' . $table . '`');\n $stmt->execute();\n }\n // Delete non-standard taxonomic ranks\n $stmt = $this->_dbh->prepare(\n 'DELETE FROM `taxonomic_rank` WHERE `standard` = ?');\n $stmt->execute(array(\n 0\n ));\n unset($stmt);\n }", "public function flush()\n {\n $this->table()->delete();\n }", "static function deleteAll()\n {\n $GLOBALS['DB']->exec(\"DELETE FROM stores;\");\n $GLOBALS['DB']->exec(\"DELETE FROM stores_brands;\");\n }", "function delete() {\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n\t\t\t// Delete het huidige record.\n\n\t\t\t$deleteQuery = \"DELETE FROM \".$this->table.\" WHERE \".$kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\t\t\t$this->lastQuery = $deleteQuery;\n\n $deleteTable = $this->mysqlConnection->prepare($this->lastQuery);\n $deleteTable->execute();\n\n\t\t}", "public function delete_all()\n {\n }", "public function delete()\n\t{\n\t\t$transaction = $this->dbConnection->beginTransaction();\n\t\ttry {\n\t\t\tforeach ($this->previnterventions as $prev) {\n\t\t\t\t$prev->delete();\n\t\t\t}\n\t\t\tforeach ($this->relevantinterventions as $relv) {\n\t\t\t\t$relv->delete();\n\t\t\t}\n\t\t\tforeach ($this->deviationreasons as $devr) {\n\t\t\t\t$devr->delete();\n\t\t\t}\n\t\t\tforeach ($this->filecollection_assignments as $fca) {\n\t\t\t\t$fca->delete();\n\t\t\t}\n\t\t\tif (parent::delete()) {\n\t\t\t\t$transaction->commit();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new Exception('unable to delete');\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t$transaction->rollback();\n\t\t\tthrow $e;\n\t\t}\n\n\t}", "public function delete() {\n\t$stmt = $this->_database->prepare('DELETE FROM planetterrains WHERE refid = ?');\n\t$stmt->bind_param('i', $this->refid);\n\t$stmt->execute();\n\tif (\\is_array($this->deposit) && \\count($this->deposit) > 0) {\n\t $this->deposit[$this->refid]->delete();\n\t}\n }", "private function truncate()\n {\n // Désactivation des contraintes FK\n $this->co->executeQuery('SET foreign_key_checks = 0');\n // On tronque\n $this->co->executeQuery('TRUNCATE TABLE casting');\n $this->co->executeQuery('TRUNCATE TABLE department');\n $this->co->executeQuery('TRUNCATE TABLE genre');\n $this->co->executeQuery('TRUNCATE TABLE job');\n $this->co->executeQuery('TRUNCATE TABLE movie');\n $this->co->executeQuery('TRUNCATE TABLE movie_genre');\n $this->co->executeQuery('TRUNCATE TABLE person');\n $this->co->executeQuery('TRUNCATE TABLE review');\n $this->co->executeQuery('TRUNCATE TABLE team');\n $this->co->executeQuery('TRUNCATE TABLE user');\n }", "public function wipeAll() {\n\t\tforeach($this->getTables() as $t) {\n\t\t\tforeach($this->getKeys($t) as $k) {\n\t\t\t\t$this->adapter->exec(\"ALTER TABLE \\\"{$k['FKTABLE_NAME']}\\\" DROP FOREIGN KEY \\\"{$k['FK_NAME']}\\\"\");\n\t\t\t}\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t\tforeach($this->getTables() as $t) {\n\t\t\t$this->adapter->exec(\"DROP TABLE \\\"$t\\\"\");\n\t\t}\n\t}", "public function cleanupDatabase() {\n\t\t\tif ( !$this->getTableExists() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$sQuery = \"\n\t\t\t\tDELETE from `%s`\n\t\t\t\tWHERE\n\t\t\t\t\t`day_id`\t\t\t!= '0'\n\t\t\t\t\tAND `created_at`\t< '%s'\n\t\t\t\";\n\t\t\t$sQuery = sprintf( $sQuery,\n\t\t\t\t$this->getTableName(),\n\t\t\t\t( $this->loadDP()->time() - 31*DAY_IN_SECONDS )\n\t\t\t);\n\t\t\t$this->loadDbProcessor()->doSql( $sQuery );\n\t\t}", "public function erase() {\n\t\tif ($this->empty) {\n\t\t\ttrigger_error(self::TEXT_AxonEmpty);\n\t\t\treturn;\n\t\t}\n\t\tif (method_exists($this,'beforeErase'))\n\t\t\t// Execute beforeErase event\n\t\t\t$this->beforeErase();\n\t\t$_cond=$this->criteria;\n\t\tF3::sql(\n\t\t\t'DELETE FROM '.$this->table.\n\t\t\t\t(is_null($_cond)?'':(' WHERE '.$_cond)).';',\n\t\t\t$this->db\n\t\t);\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t// Execute afterErase event\n\t\t\t$this->afterErase();\n\t}", "private function cleanup()\n\t{\n\t\tee()->sync_db = ee()->load->database('sync_db', true);\n\n\t\t// delete 14 day old processed product records, always leaving at least 5\n\t\tee()->sync_db->query(\"DELETE FROM products WHERE processed = 1 AND timestamp < DATE_SUB(NOW(), INTERVAL 14 DAY) AND id NOT IN (SELECT id FROM ( SELECT id FROM `products` WHERE processed = 1 ORDER BY id DESC LIMIT 5 ) keepers)\");\n\t\t\n\t\t// delete old inventory records\t\n\t\tee()->sync_db->query(\"DELETE FROM products_inventory WHERE processed = 1 AND timestamp < DATE_SUB(NOW(), INTERVAL 2 DAY)\");\n\n\t\t// delete old shipping records\n\t\tee()->sync_db->query(\"DELETE FROM orders_shipping WHERE processed = 1 AND timestamp < DATE_SUB(NOW(), INTERVAL 14 DAY)\");\n\n\t\t// delete old processed records\n\t\tee()->sync_db->query(\"DELETE FROM orders_processed WHERE processed = 1 AND timestamp < DATE_SUB(NOW(), INTERVAL 14 DAY)\");\n\t\t\n\t}", "private function purgeTables()\n\t{\t\n\t\t$this->db->query(\"DELETE FROM categories\");\n\t\t$this->db->query(\"DELETE FROM album_art\");\n\t\t$this->db->query(\"TRUNCATE TABLE albums\");\n\t\t\n\t}", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function clear()\r\n\t{\r\n\t\t$this->db->runQuery(\"TRUNCATE TABLE `\" . $this->name . \"`\");\r\n\t}", "public function clearTable()\n {\n return $this->getEntityManager()\n ->createQuery(\n 'DELETE CsvBundle:Product p'\n )\n ->getResult();\n }", "public function clean(): void\n {\n $this->truncateJournalTable();\n $this->output(\"<success>Table {$this->internalTable} truncated</success>\");\n }", "abstract public function deleteAll();", "public function delete()\n {\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products;\");\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products_tiers;\");\n $this->entityManager->getConnection()->exec(\"TRUNCATE subscriptions_products_tiers_payment_options;\");\n }", "function delete(){\n // Renumber resolutions\n $resolutions = resolution::getResolutions($this->committeeId, $this->topicId);\n foreach($resolutions as $resolution){\n if($resolution->resolutionNum <= $this->resolutionNum)\n continue;\n $resolution->resolutionNum--;\n $resolution->saveInfo();\n }\n // Delete subclauses\n foreach($this->preambulatory as $clause){\n $clause->delete();\n }\n foreach($this->operative as $clause){\n $clause->delete();\n }\n // Delete resolution\n mysql_query(\"DELETE FROM resolution_list WHERE id='$this->resolutionId'\") or die(mysql_error());\n }", "function delete()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $db->begin();\r\n\r\n $res[] = $db->query( \"DELETE FROM eZTrade_AlternativeCurrency WHERE ID='$this->ID'\" );\r\n\r\n eZDB::finish( $res, $db );\r\n\r\n \r\n }", "public function delete()\n {\n if ( !$this->loaded )\n $this->reload();\n\n $this->lock();\n\n try\n {\n $sql = \"DELETE FROM $this->_table_name\n WHERE\n $this->left_column >= $this->left\n AND $this->right_column <= $this->right\n AND $this->scope_column = $this->scope\n \";\n $this->_db->exec($sql);\n\n $this->delete_space($this->left, $this->size);\n }\n catch (PDOException $e)\n {\n $this->unlock();\n throw $e;\n }\n\n $this->unlock();\n }", "function dodelete()\n\t{\n\t\tglobal $db;\n\n\t\t$sqls = array(\n\t\t\t\"DELETE FROM preorders WHERE pre_preorderID=$this->preorderID\",\n\t\t\t\"DELETE FROM preorder_customers WHERE prc_preorderID=$this->preorderID\"\n\t\t);\n\n\t\twhile (list($a,$sql) = each($sqls))\n\t\t{\n\t\t\tmysql_query($sql,$db);\n\t\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\t}\n\t}", "public function fulldelete() {\n if ($this->id && !$this->elements) {\n $this->elements = self::get_instances(array('setid' => $this->id));\n }\n\n foreach ($this->elements as $elm) {\n $elm->delete();\n }\n\n parent::delete();\n }", "private function cleanDatabase()\n {\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n foreach($this->tables as $table)\n {\n\n DB::table($table)->truncate();\n\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n\n }", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function deleteAll(): void;", "function clear() {\n\n switch ($this->type) {\n case 'sqlite':\n case 'mysql':\n $query[0] = 'DROP TABLE `enrolled`;';\n\n $query[1] = 'DROP TABLE `paid`;';\n\n $query[2] = 'DROP TABLE `admin`;';\n\n $query[3] = 'DROP TABLE `log`';\n\n $query[4] = 'DROP TABLE `stage`';\n\n\t\t\t\t$query[5] = 'DROP TABLE `guest`';\n\n break;\n\n default:\n throw new Exception($this->type . \" is not a valid database type.\");\n break;\n\n }\n\n foreach ($query as $drop) {\n $this->query($drop);\n }\n\n /**\n * Integrity Checking goes here\n */\n\n }", "public function delete()\n {\n $stmt = $this->_db->prepare(\"DELETE FROM score;\");\n $stmt->execute();\n }", "function erase() {\n //delete * from database\n }", "public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }", "private function cleanCoreTables() {\n\n $core_tables = [\n 'glpi_datacenters',\n 'glpi_dcrooms',\n 'glpi_items_racks',\n 'glpi_pdus',\n 'glpi_racks',\n 'glpi_rackmodels',\n 'glpi_racktypes',\n 'glpi_passivedcequipments',\n 'glpi_passivedcequipmenttypes',\n 'glpi_passivedcequipmentmodels',\n ];\n\n foreach ($core_tables as $table) {\n $result = $this->db->query('TRUNCATE ' . DB::quoteName($table));\n\n if (!$result) {\n throw new RuntimeException(\n sprintf('Unable to truncate table \"%s\"', $table)\n );\n }\n }\n }", "public function clear()\n {\n $this->feature_cvterm_id = null;\n $this->feature_id = null;\n $this->cvterm_id = null;\n $this->pub_id = null;\n $this->is_not = null;\n $this->rank = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "function undelete() {\n\t\t$query = \"UPDATE \".$this->table.\" SET \".$this->deleted_field.\" = '0'\".$this->where_this();\n\n\t\t$this->db->query($query);\n\n\t}", "public function delall()\n {\n }", "public function DeleteFichas() {\n\t\t\t$this->objFichas->Delete();\n\t\t}", "function delete() {\n\t\tglobal $DB_LINK, $db_table_recipes, $db_table_list_recipes, $db_table_related_recipes, $db_table_ingredientmaps, $db_table_reviews,\n\t\t\t$db_table_ratings, $db_table_mealplans, $db_table_favorites;\n\n\t\t$sql = \"DELETE from $db_table_recipes WHERE recipe_id=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_list_recipes WHERE list_rp_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_related_recipes WHERE related_parent=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_ingredientmaps WHERE map_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_reviews WHERE review_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_ratings WHERE rating_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_mealplans WHERE mplan_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\n\t\t$sql = \"DELETE from $db_table_favorites WHERE favorite_recipe=?\";\n\t\t$stmt = $DB_LINK->Prepare($sql);\n\t\t$rc = $DB_LINK->Execute($stmt, array($this->id));\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\t}", "private function purgeExisting() {\n $paths = array('tax/calculation', 'tax/calculation_rate', 'tax/calculation_rule');\n\n foreach( $paths as $path ) {\n $existingRecords = Mage::getModel($path)->getCollection();\n\n foreach( $existingRecords as $record ) {\n\n try {\n $record->delete();\n }\n catch (Exception $e) {\n Mage::getSingleton('core/session')->addError(\"There was an error deleting from Magento model \" . $path);\n }\n\n }\n\n }\n\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public function clean(){\n\t\t$sql = 'DELETE FROM compra_coletiva';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "public function truncateJournalTable()\n {\n return $this->conn->delete($this->internalTable, ['1' => '1']);\n }", "public function delete() {\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query = $this->connection->query(\"DELETE FROM {$this->table} WHERE \".self::$primaryKey[$this->table].\"='{$this->originalData[self::$primaryKey[$this->table]]}'\");\n\t\t\t$query = $this->connection->query(\"ALTER TABLE $this->table AUTO_INCREMENT = 1\");\n\t\t\t$this->originalData = array();\n\t\t}\t\n\t\telse \n\t\t\tthrow new Exception('You are trying to delete an inexistent row');\n\t}", "function delete_all()\n {\n if ($this->GET('sure')) {\n $this->table->delete();\n $this->table->write();\n $this->structure();\n return;\n }\n $this->displayHead();\n echo 'Do you really want to<br>delete all rows from table `' . $this->table->tablename() . '`?<p>';\n echo '<a class=\"danger\" href=\"' . $this->SELF . '?method=delete_all&table=' . $this->table->tablename() . '&sure=1\">Yes</a> | ';\n echo '<a href=\"' . $this->SELF . '?method=browse&table=' . $this->table->tablename() . '\">No</a>';\n }", "public function deleteAll(): int\n {\n return $this->pdo->exec(\"TRUNCATE \" . $this->table);\n }", "public static function dbClearTable($table){\n\t\tif (App::runningUnitTests()) {\n\t\t\tif (DB::table($table)->count() != 0) {\n\t\t\t\t//Turn foreign key checks off <- USE WITH CAUTION!\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\t\t\t//Delete all entries & reset indexes\n\t\t\t\tDB::table($table)->truncate();\n\t\t\t\t//Turn foreign key checks on <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t\t\t}\n\t\t}\n\t}", "function clearPoints(){\n global $mysqli;\n if (!($stmt = $mysqli->prepare('DELETE from PulseMeasurePoint'))) {\n echo \"error-del-1<br>\\n\";\n echo \"Prepare failed: (\" . $mysqli->errno . \") \" . $mysqli->error;\n exit();\n }\n if (!($stmt->execute())) {\n echo \"error-del-2<br>\\n\";\n exit();\n }\n }", "public function clean(){\n\t\t$sql = 'DELETE FROM conta_a_pagar';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "public function dropAllData()\n {\n $database_name = $this->conn->getDatabase();\n\n $tables = $this->conn->query(\"SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = '$database_name';\")->fetchAll();\n\n $queries = \"SET FOREIGN_KEY_CHECKS=0;\\n\";\n\n foreach ($tables as $aTable){\n $queries .= reset($aTable);\n }\n\n $this->conn->executeQuery($queries);\n\n $editora_structure = file_get_contents(__DIR__ .'/../../../../data/editora.sql');\n\n $this->conn->executeQuery($editora_structure);\n }", "public function excluir(){\n\t\tglobal $tabela_links;\n\t\t$consulta = new conexao();\n\t\t$endereco = $consulta->sanitizaString($this->end_link);\n\t\t$funcionalidade_tipo = (int) $this->funcionalidade_tipo;\n\t\t$funcionalidade_id = (int) $this->funcionalidade_id;\n\t\t//echo(\"$endereco\t $funcionalidade_tipo\t$funcionalidade_id\");\n\t\t$consulta->connect();\n\t\t$consulta->solicitar(\"DELETE FROM $tabela_links \n\t\t\t\t\t\t\t\tWHERE endereco = '$endereco'\n\t\t\t\t\t\t\t\tAND funcionalidade_tipo\t= '$funcionalidade_tipo'\n\t\t\t\t\t\t\t\tAND funcionalidade_id\t= '$funcionalidade_id'\");\n\t\t\n\t\n\t}", "public function deleteAllChunks(){\n\n $totalChunks = $this->getTotalChunks();\n\n for ($i = 1; $i <= $totalChunks; $i++) {\n $path = $this->getChunkPath($i);\n if (file_exists($path)) {\n unlink($path);\n }\n }\n }", "public function deleteAll()\n {\n $this->ensureModels();\n foreach ($this->_models as $model) {\n $model->delete();\n }\n }", "function emptyIndexTable(){\n\t\t$this->ecmDBhandle->truncateTable($this->dfs_db-> table_name);\n\t}", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "function delete() {\n\t\t$sqlStatements = array();\n\t\t$sqlStatements[] = \"DROP TABLE IF EXISTS tags\";\n\t\t$sqlStatements[] = \"DROP TABLE IF EXISTS siteViews\";\n\t\texecuteSqlStatements($sqlStatements);\n\t}", "public function delete (){\n\n $table = new simple_table_ops();\n $table->set_id_column('timetable_id');\n $table->set_table_name('timetables');\n $table->delete();\n\n header(\"Location: http://\".WEBSITE_URL.\"/index.php?controller=timetable&action=show&submit=yes&timetable_period_id={$_GET['timetable_period_id']}\");\n }", "public function deleteAll(): void\n {\n $this->client->delete($this->baseUri);\n }", "public function clear_tables()\n\t{\n\t\tglobal $wpdb;\n\t\t$wpdb->query( 'DELETE FROM '.self::$site_table.';' );\n\t}", "function delete() {\n\t\t$sql = \"DELETE FROM \".$this->hr_db.\".hr_amphur\n\t\t\t\tWHERE amph_id=?\";\n\t\t$this->hr->query($sql, array($this->amph_id));\n\t}", "function delete_all_fee($iClientId) \n {\n $this->db->where('iClientId',$iClientId);\n $this->db->delete('r_client_fee_type');\n }", "private function delete_tables()\n {\n global $wpdb;\n\n // this needs to occur at this level, and not in the\n foreach ($this->tables as $tablename) {\n $sql = 'DROP TABLE IF EXISTS ' . $tablename;\n $wpdb->query($sql);\n }\n }", "public function remove_redundant_record()\r\n\t{\r\n\t\t//where status = 0, 1, 6 and modify_on is 21 days ago.\r\n\t\t$iof_where['`status` in (0, 1, 6)'] = null;\r\n\t\t$iof_where['DATEDIFF(NOW(),modify_on) >'] = 21;\r\n\t\t$obsolete_iof_record_number = $this->integrated_order_fulfillment_service->get_dao()->q_delete($iof_where);\r\n\r\n\t\t//completed refunded order and more than 21 days unmodified\r\n\t\t$iof_where = array();\r\n\t\t$iof_where['refund_status'] = 4;\r\n\t\t$iof_where['DATEDIFF(NOW(),modify_on) >'] = 21;\r\n\t\t$obsolete_iof_record_number = $this->integrated_order_fulfillment_service->get_dao()->q_delete($iof_where);\r\n\t}", "public function deleteAll()\n {\n //Find and destroy\n $entities = $this->findAll();\n return $this->deleteAll($entities);\n }", "public function clean(){\n\t\t$sql = 'DELETE FROM ano_letivo';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "function DB_empty_curMonth_tables()\n{\n global $connection;\n $results = $connection->query(\"TRUNCATE TABLE outcome\");\n if (!$results) {\n print (\"error=\".$connection->get_error().\"<br>\");\n return false;\n }\n $results = $connection->query(\"TRUNCATE TABLE income_and_status\");\n if (!$results) {\n print (\"error=\".$connection->get_error().\"<br>\");\n return false;\n }\n return true;\n}", "public function deleteLocal() \n {\n LocalDAC::deleteLocal($this);\n }", "public function clearAll() {\n $list = scandir(self::ROOT_PATH . \"/public/{$this->storagePath}\");\n foreach ($list as $file) {\n if ($file == '.' || $file == '..') {\n continue;\n }\n $filePath = self::ROOT_PATH . \"/public/{$this->storagePath}/$file\";\n unlink($filePath);\n }\n $this->_tableGw->delete();\n }", "public function deleteTables()\n {\n $db = Core::$db;\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_forms\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_form_placeholders\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_form_templates\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_templates\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_sets\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_set_placeholders\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_set_placeholder_opts\");\n $db->execute();\n\n $db->query(\"DROP TABLE IF EXISTS {PREFIX}module_form_builder_template_set_resources\");\n $db->execute();\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "public function refreshRows(){\n if (count($this->rows) > 0){\n foreach ($this->rows as $row){\n $this->removeRow($row);\n }\n }\n }", "private function delete_existing_lines(){\n\n\t\tLine::where('event_id', '=', $this->event->id)->delete();\n\n\t}", "public function clearPrincipalInvestigators() {\r\n global $db;\r\n\r\n $sql = sprintf(\"DELETE FROM `forms_tracking_coresearchers`\r\n WHERE `form_tracking_id` = %s AND isPi = 1\", $this->trackingFormId);\r\n\r\n $result = $db->Execute($sql);\r\n\r\n if(!$result) {\r\n echo (\"Unable to clear principal invesitgators from database\");\r\n }\r\n }", "protected function _delete()\n {\n $this->_deleteRows( $this->getServiceTurnaroundTimes() );\n $this->_deleteRows( $this->getServicePriceModifiers() );\n $this->_deleteRows( $this->getServiceSpeakerNumbers() );\n\n $clientServiceModel = new Application_Model_ClientService();\n $clientServiceModel->delete( 'service_id = ' . $this->id );\n\n $serviceGroupModel = new Application_Model_ServiceGroupService();\n $serviceGroupModel->delete( 'service_id = ' . $this->id );\n }", "public function limparTabela(){\r\n\t\t$sql = 'DELETE FROM oficina';\r\n\t\t$consulta = $conexao->prepare($sql);\r\n\t\t$consulta->execute();\r\n\t}", "public function deleteRows() {\n if ($this->db->deleteRows($this->table_name)) {\n $this->db->save();\n return true;\n } else {\n return false;\n }\n }", "public function deleteEntidad(){\n $conexion = new Database();\n\t\tif ($this->codigo){\n $sql = sprintf('DELETE FROM agenda_entidades WHERE entidad_id = %d',\n $this->codigo);\n $conexion->exec( $sql );\n }\n }", "public function delete_tables()\n\t{\n\t\tglobal $wpdb;\n\t\t$wpdb->query( 'DROP TABLE '.self::$site_table.';' );\n\t}", "public function delete()\n {\n $textvalues = $this->gettextvalues();\n $this->deleteValues($textvalues);\n \n $componentvalues = $this->getcomponentvalues();\n $this->deleteValues($componentvalues);\n \n $filevalues = $this->getfilevalues();\n $this->deleteValues($filevalues);\n \n $contributorvalues = $this->getcontributorvalues();\n $this->deleteValues($contributorvalues);\n \n parent::delete();\n }", "public function purgeUndoTable()\n\t{\n\t\t$objDatabase = \\Database::getInstance();\n\n\t\t// Truncate the table\n\t\t$objDatabase->execute(\"TRUNCATE TABLE tl_undo\");\n\n\t\t// Add a log entry\n\t\t$this->log('Purged the undo table', __METHOD__, TL_CRON);\n\t}", "public function delete()\n {\n foreach ($this->versions as $version)\n {\n $version->delete();\n }\n\n parent::delete();\n }" ]
[ "0.6068534", "0.6063363", "0.59792346", "0.59505737", "0.5945243", "0.593927", "0.5900646", "0.5849666", "0.584938", "0.58352566", "0.5801661", "0.5786374", "0.5777864", "0.5771135", "0.5711773", "0.57073176", "0.56904346", "0.56736815", "0.56513053", "0.5643103", "0.5628", "0.5611649", "0.56068546", "0.5601345", "0.55930793", "0.55887735", "0.5577048", "0.55703324", "0.5558291", "0.55346864", "0.5511464", "0.54635173", "0.5449505", "0.54402167", "0.54395294", "0.5433794", "0.54275113", "0.54239905", "0.5417922", "0.5413947", "0.5411999", "0.5409605", "0.5404573", "0.53972065", "0.5394427", "0.53933644", "0.53933644", "0.53933644", "0.53925335", "0.5391487", "0.53449655", "0.5336207", "0.5314396", "0.5288703", "0.5285812", "0.52789444", "0.5262256", "0.52612674", "0.52554613", "0.5254001", "0.5237019", "0.52252984", "0.5223261", "0.5208861", "0.5207474", "0.52064496", "0.520576", "0.5203382", "0.5200848", "0.5200464", "0.5190829", "0.51863086", "0.51815283", "0.517981", "0.51776534", "0.51591814", "0.51588964", "0.5157386", "0.5151089", "0.51490474", "0.514721", "0.51452404", "0.51374805", "0.5136874", "0.51259446", "0.51244324", "0.5120661", "0.5112592", "0.51111776", "0.51028407", "0.5101574", "0.5095194", "0.50826347", "0.5078654", "0.50782377", "0.5069012", "0.5068636", "0.5066037", "0.5064006", "0.5061475", "0.50585705" ]
0.0
-1
Performs a DELETE on the database based on the current ModelCriteria
public function delete(ConnectionInterface $con = null) { if (null === $con) { $con = Propel::getServiceContainer()->getWriteConnection(FPartenaireTableMap::DATABASE_NAME); } $criteria = $this; // Set the correct dbName $criteria->setDbName(FPartenaireTableMap::DATABASE_NAME); // use transaction because $criteria could contain info // for more than one table or we could emulating ON DELETE CASCADE, etc. return $con->transaction(function () use ($con, $criteria) { $affectedRows = 0; // initialize var to track total num of affected rows FPartenaireTableMap::removeInstanceFromPool($criteria); $affectedRows += ModelCriteria::delete($con); FPartenaireTableMap::clearRelatedInstancePool(); return $affectedRows; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteBy($criteria, $params = false)\n {\n $query = $this->model->query();\n\n /*== FILTER ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;\n\n if (isset($filter->field))//Where field\n $field = $filter->field;\n }\n\n /*== REQUEST ==*/\n $model = $query->where($field ?? 'id', $criteria)->first();\n $model ? $model->delete() : false;\n }", "protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }", "function delete_by( $conds = array() )\n\t{\n\t\t// where clause\n\t\t$this->custom_conds( $conds );\n\t\t// delete the record\n\t return $this->db->delete( $this->table_name );\n\t //print_r($this->db->last_query());die;\n\t \n \t}", "public function delete() {\n if ($this->_is_new) return false;\n\n if (isset($this->_data[$this->_key_field])) {\n $where = array($this->_key_field=>$this->_data[$this->_key_field]); \n } elseif ($this->_load_criteria) {\n $where = $this->_load_criteria;\n } else {\n return false;\n }\n\n Q::create($this->_structure['table'])->delete($where)->exec();\n if (isset($this->_structure['relations'])) {\n foreach($this->_structure['relations'] as $relation_name=>$info) {\n $this->detach(null, $relation_name);\n }\n }\n if (isset($this->_structure['abilities'])) {\n foreach($this->_structure['abilities'] as $ability_name=>$info) {\n $ability_name = ucfirst($ability_name);\n if (!is_object($this->_loaded_abilities[$ability_name])) continue;\n $objects = array(&$this);\n $this->_loaded_abilities[$ability_name]->unlink($objects);\n }\n }\n return null;\n }", "public static function deleteByCriteria($criteria, $params = array())\n {\n \treturn FactoryAbastract::dao(get_called_class())->deleteByCriteria($criteria, $params);\n }", "public function __doDelete()\n {\n $strSQL = $this->getDeleteSql();\n $result = $this->query($strSQL);\n }", "public function delete(SearchCriteriaInterface $searchCriteria) : bool;", "function getDeleteStatement($model,&$args);", "public abstract function deleteModel(\\MPF\\Db\\Model $model);", "public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContext()->addQuery($qry);\n //$this->removeFromParentCollection();\n }", "public static function delete_where($model, $conditions){\t\t\n $table = self::table_for($model);\n $condition_string = self::make_conditions($conditions);\n return self::do_query(\"DELETE FROM \" . $table . \" WHERE \" . $condition_string);\t\n\t}", "public function byCriterion()\n {\n $mockCriterion = $this->getMock('stubCriterion');\n $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example'));\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->exactly(2))->method('count')->will($this->onConsecutiveCalls(0, 1));\n $data = $this->dbEraser->deleteByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockNoTableAnnotationEntity'));\n $this->assertEquals(0, $data);\n $data = $this->dbEraser->deleteByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockNoTableAnnotationEntity'));\n $this->assertEquals(1, $data);\n $this->assertEquals('MockNoTableAnnotationEntitys', $this->mockQueryBuilder->getDeleteTable());\n $this->assertEquals('example', $this->mockQueryBuilder->getDeleteCriterion()->toSQL());\n }", "public function delete($model);", "function delete(){\n // Delete subclauses\n foreach($this->subClause as $clause){\n $clause->delete();\n }\n \n mysql_query(\"DELETE FROM resolution WHERE id='$this->clauseId'\") or die(mysql_error());\n }", "public function delete()\n {\n $conn = $this->getConnection();\n\n if (!isset($this->attributes->{$this->primaryKey})) {\n $trace = debug_backtrace()[0];\n throw new ModelException(\n 'No object has been loaded',\n 8000,\n $trace['file'],\n $trace['line']\n );\n }\n $key = $this->attributes->{$this->primaryKey};\n\n $bind = $this->getNamedParam();\n\n $statement = $this->getStatement();\n $statement->setWhere($this->primaryKey, '=', $bind);\n $statement->setBindings($bind, $key);\n\n $this->query = $statement->getDelete();\n $delete = $conn->prepare($this->query);\n\n return $this->execute($delete, $statement);\n }", "public function delete(array $criteria)\n {\n return $this->connection->delete(self::getTableName(), $criteria);\n }", "public function deleteByCriterion(stubCriterion $criterion, stubBaseReflectionClass $entityClass);", "public function deleteBy($criteria)\n {\n if (!$this->isRepositoryDeletable()) {\n throw $this->createNotDeletableException();\n }\n\n return $this->trigger(__FUNCTION__, [\n 'criteria' => $criteria,\n ]);\n }", "public abstract function delete($model, $useTransaction);", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "protected function performDeleteOnModel()\n {\n $this->newQuery()->delete($this->fileName);\n }", "public function delete() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_delete', array($where));\n\n $result = $this->db->delete($this->_table());\n\n $this->_callbacks('after_delete', array($where, $result));\n\n return $this->db->affected_rows();\n }", "public function delete($where);", "public function delete(){\n\t if(!isset($this->attributes['id'])) \n\t\t\tthrow new Exception(\"Cannot delete new objects\");\n\t\t$this->do_callback(\"before_delete\");\n\t\treturn self::do_query(\"DELETE FROM \".self::table_for(get_class($this)).\n\t\t \" WHERE id=\".self::make_value($this->attributes['id']));\t\n\t}", "public function action_delete_delete(){\r\n\t\t\t//permission check\r\n\t\t\tif(!$this->user->can('Assumeownership', array('owner' => $this->user->id))){\r\n\t\t\t\t$this->throw_permission_error(Constant::NOT_OWNER);\r\n\t\t\t}\r\n\r\n\t\t\tif(!isset($this->myID) || !isset($this->myID2))\r\n\t\t\t{\r\n\t\t\t\t$error_array = array(\r\n\t\t\t\t\t\"error\" => \"Required Parameters Missing\",\r\n\t\t\t\t\t\"desc\" => \"Required Parameters Missing.\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$this->modelNotSetError($error_array);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t$subject = Ent::eFact($this->myID, $this->myID2);\r\n\t\t\t$subject->delete_with_deps();\r\n\t\t\treturn $subject->getBasics();\r\n\t\t}", "public function delete($data=null,$model=null){\n if($this->model==null){\n $this->model=$model;\n }\n\n return $this->allMethodProcess(function() use($data){\n return $this->querySqlFormatter->getDeleteQueryFormatter([],['where'=>$this->where,'execute'=>$this->execute,'model'=>$this->subClassOf]);\n },\"no--autoscope\");\n\n }", "public function sql_for_delete() {\n\t\t// Check if model is writable\n\t\t$this->assertModelIsWritable();\n\n\t\t// Destination model\n\t\t$model = $this->model;\n\n\t\t// Cascade deletion calculation for model $model\n\t\tforeach ($model::metaGetRelationships() as $relationshipName => $relationship) {\n\t\t\t// Nexii tuples and children tuple deletion\n\t\t\tif (\n\t\t\t\t($relationship[\"type\"] == \"OneToMany\" or $relationship[\"type\"] == \"ManyToMany\") and\n\t\t\t\tisset($relationship[\"on_master_deletion\"]) and\n\t\t\t\t$relationship[\"on_master_deletion\"] == \"delete\"\n\t\t\t) {\n\t\t\t\t$this->addRelatedModel($relationshipName);\n\t\t\t}\n\t\t}\n\n\t\t// SQL code generation\n\t\t$sqlT = \\lulo\\twig\\TwigTemplate::factoryHtmlResource(\\lulo\\query\\Query::PATH . \"/delete/query.twig.sql\");\n\t\t$sql = $sqlT->render([\"query\" => $this]);\n\n\t\t// Return DELETE statement SQL code\n\t\treturn $sql;\n\t}", "public function delete($whereCondition = \"\") {\r\n if ($this->object->deleteRule()) {\r\n if (empty($whereCondition)) {\r\n $c = $this->getConditions();\r\n\r\n if (empty($c)) {\r\n $whereCondition .= $c;\r\n } else {\r\n $whereCondition = (int) $this->object->getId();\r\n }\r\n }\r\n\r\n\r\n\r\n $crud = $this->myCRUD();\r\n return $crud->delete($this->object, $whereCondition);\r\n } else {\r\n return false;\r\n }\r\n }", "function delete(&$model, $conditions = null) {\n\t\tif (!$this->_useAlias) {\n\t\t\treturn parent::delete($model, $conditions);\n\t\t}\n\t\t$alias = $this->name($model->alias);\n\t\t$table = $this->fullTableName($model);\n\t\t$joins = implode(' ', $this->_getJoins($model));\n\n\t\tif (empty($conditions)) {\n\t\t\t$alias = $joins = false;\n\t\t}\n\t\t$complexConditions = false;\n\t\tforeach ((array)$conditions as $key => $value) {\n\t\t\tif (strpos($key, $model->alias) === false) {\n\t\t\t\t$complexConditions = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!$complexConditions) {\n\t\t\t$joins = false;\n\t\t}\n\n\t\t$conditions = $this->conditions($this->defaultConditions($model, $conditions, $alias), true, true, $model);\n\t\tif ($conditions === false) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($this->execute($this->renderStatement('delete', compact('alias', 'table', 'joins', 'conditions'))) === false) {\n\t\t\t$model->onError();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function delete(Model $model);", "public function delete(Model $model);", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public function delete()\n {\n $this->_validateModifiable();\n\n $this->_getDataSource()->delete($this);\n }", "function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}", "public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }", "function mongo_lite_delete($collection, $criteria)\n\t{\n\t\t$collection = mongo_lite($collection);\n\n\t\treturn $collection->delete($criteria);\n\t}", "function delete()\n {\n $this->_getConnection();\n if (false === $this->get($this->_data['id'])) {\n return false;\n }\n $this->preDelete();\n // Find the models linking to the current one through a foreign key.\n foreach ($this->_methods_list as $method=>$details) {\n if (is_array($details)) {\n // foreignkey\n $related = $this->$method();\n foreach ($related as $rel) {\n if ($details[0] == $this->_model\n and $rel->id == $this->_data['id']) {\n continue; // $rel == $this\n }\n // We do not really control if it can be deleted\n // as we can find many times the same to delete.\n $rel->delete();\n }\n } else {\n // manytomany\n $related = $this->$method();\n foreach ($related as $rel) {\n $this->delAssoc($rel);\n }\n }\n }\n $req = 'DELETE FROM `'.$this->_con->pfx.$this->_table.'` WHERE'.\"\\n\";\n $req .= '`id` = \\''.$this->_con->esc($this->_data['id']).'\\'';\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n $this->_reset();\n return true;\n }", "public function delete() {\n global $db;\n $this->_predelete();\n $result = $db->query(\"DELETE FROM \".$this->table.\" WHERE \".$this->id_field.\"=?\", array($this->{$this->id_field}));\n $this->_postdelete($result);\n return $result;\n }", "public function delete (&$model, $conditions=array()) {\r\n\t\t\r\n\t\t$this->showError(__('Delete unavailable', true));\r\n\t\t\r\n\t\treturn false;\r\n\t\t\r\n\t}", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function deleting($model)\n\t{\n\t}", "public function delete()\n {\n $class = strtolower(get_called_class());\n $table = self::$_table_name != null ? self::$_table_name : $class . 's';\n\n $pdo = PDOS::getInstance();\n\n $whereClause = '';\n foreach (static::$_primary_keys as $pk)\n $whereClause .= $pk . ' = :' . $pk . ' AND ';\n $whereClause = substr($whereClause, 0, -4);\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $whereClause;\n $query = $pdo->prepare($sql);\n $attributes = $this->getAttributes(new \\ReflectionClass($this));\n foreach ($attributes as $k => $v)\n {\n if (in_array($k, static::$_primary_keys))\n $query->bindValue(':' . $k, $v);\n }\n $query->execute();\n }", "public function delete() {\n\t\t$args = func_get_args();\n\n\t\t// no argument, so delete current object\n\t\tif (empty($args))\n\t\t\treturn $this->db->where('id', $this->id)->delete($this->table);\n\n\t\t// argument given, so delete that object\n\t\treturn $this->db->where('id', $args[0])->delete($this->table);\n\t}", "public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }", "public function deleteByModel(Model $model): bool;", "public function delete() {\n// 'missionServiceUsers' => array(self::HAS_MANY, 'MissionServiceUser', 'id_service_user'),\n// //'serviceUserConditions' => array(self::MANY_MANY, 'Condition', 'tbl_service_user_condition(id_service_user, id_condition)'),\n// 'serviceUserConditions' => array(self::HAS_MANY, 'ServiceUserCondition', 'id_service_user'),\n\n\n parent::delete();\n }", "public function delete(Identifiable $model);", "public function delete() {\n $query = $this->queryBuilder->delete()->getQuery();\n return $this->query($query);\n }", "protected function delete() {\n $this->db->deleteRows($this->table_name, $this->filter);\n storeDbMsg($this->db);\n }", "function doRealDelete()\n {\n $this->assignSingle();\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "public function DELETE() {\n #\n }", "public function delete() \n {\n $this->_data['query'] = 'DELETE';\n $this->_data['from'] = ' FROM '.$this->_data['from'];\n $this->_data['query'] .= $this->_data['from'];\n if (func_num_args() > 0) {\n $this->where(func_get_args());\n }\n return $this;\n }", "public function delete($conditions=[])\n {\n $conditionsArray = isset($conditions)?$this->bindParamsConditionProcess($conditions):\"\"; \n $str_condition = isset($conditionsArray[0])?$conditionsArray[0]:\"\";\n $vals =isset($conditionsArray[1])?$conditionsArray[1]:\"\"; \n $vals['@collection'] = $this->_table;\n $q = 'FOR c IN @@collection '.$str_condition.' REMOVE c IN @@collection RETURN OLD'; \n //exit;\n $response = ['query'=> $q, 'bindVars'=> $vals];\n $result = $this->customQueryWithParams($response);\n return $result; \n }", "public function delete_by()\n\t{\n\t\t$where = func_get_args();\n\t\t$this->_set_where($where);\n\n\t\t$where = $this->trigger('before_delete', $where);\n\n\t\tif($this->soft_delete)\n\t\t{\n\t\t\t$result = $this->db->update($this->_table, array($this->soft_delete_key => TRUE));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $this->delete($this->_table);\n\t\t}\n\n\t\t$this->trigger('after_delete', $result);\n\n\t\treturn $result;\n\t}", "public function delete_search_criteria($post_data){\n $userId = $post_data['userId'];\n $searchId = $post_data['searchId'];\n $data = array('deleteFlag' => 1);\n\n $this->db->where('userId',$userId);\n $this->db->where('searchId',$searchId); \n $this->db->update('searchcriteria',$data); \n if($this->db->affected_rows()>0){\n $this->db->where('userId',$userId);\n $this->db->where('searchId',$searchId); \n $this->db->update('commute',$data);\n if($this->db->affected_rows()>0)\n {\n return true;\n }else{\n return false;\n }\n }\n }", "public function delete() {\r\n return $this->orm->delete();\r\n }", "public function execute()\n {\n $resultRedirect = $this->resultRedirectFactory->create();\n $id = $this->getRequest()->getParam('id');\n if ($id) {\n $model = $this->customData;\n $model->load($id);\n try {\n $model->delete();\n $this->messageManager->addSuccessMessage(__('Data Deleted'));\n return $resultRedirect->setPath('*/*/index');\n } catch (\\Exception $e) {\n $this->messageManager->addErrorMessage(__($e->getMessage()));\n return $resultRedirect->setPath('*/*/edit', ['id'=>$id]);\n }\n }\n }", "public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }", "public function onRelationManageDelete()\n {\n $this->beforeAjax();\n\n /*\n * Multiple (has many, belongs to many)\n */\n if ($this->viewMode == 'multi') {\n if (($checkedIds = post('checked')) && is_array($checkedIds)) {\n foreach ($checkedIds as $relationId) {\n if (!$obj = $this->relationModel->find($relationId)) {\n continue;\n }\n\n $obj->delete();\n }\n }\n }\n /*\n * Single (belongs to, has one)\n */\n elseif ($this->viewMode == 'single') {\n $relatedModel = $this->viewModel;\n if ($relatedModel->exists) {\n $relatedModel->delete();\n }\n\n $this->viewWidget->setFormValues([]);\n $this->viewModel = $this->relationModel;\n }\n\n return $this->relationRefresh();\n }", "function delete($table, array $conditions);", "public function deleteAction() {\n $post_data = $request = $this->getRequest()->getPost();\n\n $mapper = new Application_Model_DistractionMapper();\n $anzDeletedRows = $mapper->delete($post_data['id']);\n\n $this->view->success = ($anzDeletedRows > 0);\n }", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "public function deleted(MActivityRule $model)\n\t{\n\t}", "function erase() {\n\t\tif (method_exists($this,'beforeErase') && !$this->beforeErase())\n\t\t\treturn;\n\t\t$this->exec(array('method'=>'remove','criteria'=>$this->criteria));\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t$this->afterErase();\n\t}", "public function delete() {\n\n\t\t// Database\n\t\t$db = $this->db;\n\n\t\t// SQL code for deletion\n\t\t$sql = $this->sql_for_delete();\n\n\t\t// Deletion execution\n\t\treturn $db::execute($sql);\n\t}", "public function deleteDocument() {\n\n // should get instance of model and run delete-function\n\n // softdeletes-column is found inside database table\n\n return redirect('/home');\n }", "public function delete($where){\n return parent::delete($this->table,$where);\n }", "public function delete()\n {\n return static::queryBuilder()->delete()->where(array('id' => $this->{$this->_idField}))->execute();\n }", "function deleteRecordByCondition($tablename, $condition) {\n $ci = & get_instance();\n $ci->load->database();\n $ci->db->delete($tablename, $condition);\n}", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "function delete($condition = NULL)\n {\n $db_table = $this->model2table();\n $c2 = isset($this->id) ? \" WHERE id=\" . $this->id : \"\";\n $c = isset($condition) ? \"WHERE $condition\" : $c2;\n\n $sql = \"DELETE FROM $db_table $c\";\n\n if (!$this->getDonotLog()) {\n $this->logDeletedData(\"$db_table $c\");\n }\n\n $this->varifysql($sql);\n $stmt = $this->get_conn()\n ->prepare(\"$sql\");\n\n $this->_beforeDelete($this);\n $stmt->execute();\n $this->_afterDelete($this);\n\n return $stmt->rowCount();\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }", "function doRealDelete()\n {\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "public function delete(){\n\t $this->model->clear()->filter(array('preview_master_id' => WaxUrl::get(\"id\")))->delete();\n\t parent::delete();\n\t}", "public function delete() \n\t{\n\t\tif ($this->id) {\n\t\t\t$this->query->fields(\"id\")->compareTo($this->id);\n\t\t\treturn $this->query->delete();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static function deleteAll($condition = NULL, $params = []) {\n return parent::updateAll([\n 'isdeleted' => 1,\n 'deletedtime' => date(\"Y-m-d H:i:s\"),\n 'deleteduser' => \\Yii::$app->user->getId()\n ], $condition, $params);\n }", "public function delete (ValueObjectAbstract $valueObject);", "public function delete($entity);", "public function delete(OrmModelInterface $model): bool\n {\n }", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delete() {\n\t\tif (!$this->_loaded) {\n\t\t\tthrow new Kohana_Exception('Cannot delete :model model because it is not loaded.', array(':model' => $this->_object_name));\n\t\t}\n\t\t\n\t\tif ($this->_call_behaviors('trigger_before_delete') & ORM_Behavior::CHAIN_RETURN) {\n\t\t\treturn $this;\n\t\t}\t\t\n\t\t\n\t\t$return = parent::delete();\n\t\t\n\t\t$this->_call_behaviors('trigger_after_delete');\n\t\t\t\n\t\treturn $return;\n\t}", "public function delete($deleteCriteria):int{\n\t\t\tthrow NotIplementedError();\t\n\t\t}", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "function delete()\n {\n $this->object->select();\n $this->object->_query_args['is_select'] = FALSE;\n $this->object->_query_args['is_delete'] = TRUE;\n return $this->object;\n }", "public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "public function deleted(Auditable $model)\n {\n Auditor::execute($model->setAuditEvent('deleted'));\n }", "public function delete()\n {\n $this->repository->delete($this->id);\n }", "public function delete() {\n\n if (!$this->isUsed()) {\n // Database deletion\n $result = Db::getInstance()->delete($this->def['table'], '`' . $this->def['primary'] . '` = ' . (int) $this->id);\n\n if (!$result) {\n return false;\n }\n\n // Database deletion for multilingual fields related to the object\n\n if (!empty($this->def['multilang'])) {\n Db::getInstance()->delete(bqSQL($this->def['table']) . '_lang', '`' . $this->def['primary'] . '` = ' . (int) $this->id);\n }\n\n return $result;\n } else {\n return false;\n }\n\n }", "public function delete()\n {\n $query = ['collection' => $this->collection, 'filter' => $this->filter->toArray()];\n\n return $this->connection->delete($query, $options = []);\n }", "public function byCriterionNonEntityClass()\n {\n $this->dbEraser->deleteByCriterion($this->mockConnection, $this->getMock('stubCriterion'), new stubReflectionClass('MockNoEntityAnnotationEntity'));\n }", "public function delete(Model $parent);", "public function deleteAction()\n {\n $request = $this->getRequest();\n if($request->isPost()){\n $id = $this->params()->fromPost('id');\n $combo = $this->modelCombo->findOneBy(array('id'=>$id));\n $combo->setIsdelete(1);\n $this->modelCombo->edit($combo);\n //$this->model->delete(array('id'=>$id));\n echo 1;\n }\n die;\n\n }", "public function delete()\n {\n return $this->query->batchDelete($this->filter);\n }", "abstract public function delete(Entity $oMappedEntity);", "public function actionDelete()\n {\n if (!$this->isAdmin()) {\n $this->getApp()->action403();\n }\n\n $request = $this->getApp()->getRequest();\n $id = $request->paramsNamed()->get('id');\n $model = $this->findModel($id);\n if (!$model) {\n $this->getApp()->action404();\n }\n\n $model->delete();\n\n return $this->back();\n }", "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "public function actionDelete() {}", "public function actionDelete() {}", "public function delete() {\n $sql = \"DELETE FROM archivos WHERE contrato_id=:contrato_id\";\n $args = array(\n \":contrato_id\" => $this->id\n );\n $stmt = $this->executeQuery($sql, $args);\n\n $sql = \"DELETE FROM contratos_tipos_contratos WHERE contrato_id=:contrato_id\";\n $args = array(\n \":contrato_id\" => $this->id\n );\n $stmt = $this->executeQuery($sql, $args);\n\n $sql = \"DELETE FROM contratos WHERE id=:id\";\n $args = array(\n \":id\" => $this->id\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }", "protected function performDeleteOnModel()\n {\n $this->performCascadeDelete();\n parent::performDeleteOnModel();\n }" ]
[ "0.71742123", "0.6940287", "0.6878338", "0.6871387", "0.6870411", "0.67544645", "0.67374706", "0.6723886", "0.67231476", "0.67134583", "0.6704745", "0.6659441", "0.66567934", "0.66559327", "0.66308695", "0.66101927", "0.6608142", "0.659862", "0.65924466", "0.65509707", "0.65356696", "0.65348357", "0.6532412", "0.6531784", "0.65317655", "0.6526033", "0.651528", "0.65120536", "0.651011", "0.64997697", "0.64997697", "0.6495735", "0.64803404", "0.6453913", "0.6432527", "0.6388669", "0.6380393", "0.6368295", "0.63647914", "0.63622385", "0.6341228", "0.6340561", "0.63394004", "0.6333551", "0.6331997", "0.6327006", "0.6322213", "0.6311521", "0.6300946", "0.62987345", "0.6295017", "0.6294074", "0.62919044", "0.6290686", "0.6286807", "0.62766135", "0.62761396", "0.6275305", "0.62735647", "0.62713605", "0.6262906", "0.62625366", "0.62536186", "0.6252786", "0.6243237", "0.62410057", "0.6230722", "0.6223362", "0.6220585", "0.6220161", "0.6217038", "0.62062484", "0.6196149", "0.6189935", "0.6185825", "0.61857265", "0.61850417", "0.61805797", "0.618025", "0.6166956", "0.61623335", "0.6160924", "0.61605394", "0.6150395", "0.6146757", "0.6145386", "0.61408037", "0.6139477", "0.6137921", "0.61370057", "0.61361533", "0.61359906", "0.61350965", "0.6132511", "0.6130328", "0.612686", "0.6125813", "0.61218625", "0.61218625", "0.6120421", "0.61203045" ]
0.0
-1
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 }" ]
[ "0.7216422", "0.7040846", "0.70043975" ]
0.0
-1
Register the application services.
public function register() { $this->app->bind(\App\Repositories\UserTypesRepository::class, \App\Repositories\UserTypesRepositoryEloquent::class); $this->app->bind(\App\Repositories\UserRepository::class, \App\Repositories\UserRepositoryEloquent::class); $this->app->bind(\App\Repositories\UserTypeUserRepository::class, \App\Repositories\UserTypeUserRepositoryEloquent::class); $this->app->bind(\App\Repositories\CustomerRepository::class, \App\Repositories\CustomerRepositoryEloquent::class); $this->app->bind(\App\Repositories\CompanyRepository::class, \App\Repositories\CompanyRepositoryEloquent::class); $this->app->bind(\App\Repositories\CategoryItemsRepository::class, \App\Repositories\CategoryItemsRepositoryEloquent::class); $this->app->bind(\App\Repositories\ItemRepository::class, \App\Repositories\ItemRepositoryEloquent::class); $this->app->bind(\App\Repositories\TypeOrderServiceRepository::class, \App\Repositories\TypeOrderServiceRepositoryEloquent::class); $this->app->bind(\App\Repositories\OrderServiceRepository::class, \App\Repositories\OrderServiceRepositoryEloquent::class); $this->app->bind(\App\Repositories\ItemsOrderServiceRepository::class, \App\Repositories\ItemsOrderServiceRepositoryEloquent::class); $this->app->bind(\App\Repositories\UserTypeRepository::class, \App\Repositories\UserTypeRepositoryEloquent::class); $this->app->bind(\App\Repositories\ItemRepository::class, \App\Repositories\ItemRepositoryEloquent::class); //:end-bindings: }
{ "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
Bind the interface to an implementation repository class
public function register() { $this->app->bind( UserRepositoryInterface::class, UserRepository::class ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function bindInterfaceImplementor()\n {\n $this->app->bind(\n 'vital40\\Repositories\\ArticleRepositoryInterface',\n 'vital40\\Repositories\\DBArticleRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\InventorySummaryRepositoryInterface',\n 'vital40\\Repositories\\DBInventorySummaryRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\PerformanceTallyRepositoryInterface',\n 'vital40\\Repositories\\DBPerformanceTallyRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\JobExperienceRepositoryInterface',\n 'vital40\\Repositories\\DBJobExperienceRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\JobStatusRepositoryInterface',\n 'vital40\\Repositories\\DBJobStatusRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\PermissionRepositoryInterface',\n 'vital40\\Repositories\\DBPermissionRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\PermissionRoleRepositoryInterface',\n 'vital40\\Repositories\\DBPermissionRoleRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\PurchaseOrderRepositoryInterface',\n 'vital40\\Repositories\\DBPurchaseOrderRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\PurchaseOrderDetailRepositoryInterface',\n 'vital40\\Repositories\\DBPurchaseOrderDetailRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\ReceiptHistoryRepositoryInterface',\n 'vital40\\Repositories\\DBReceiptHistoryRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\RoleRepositoryInterface',\n 'vital40\\Repositories\\DBRoleRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\RoleUserRepositoryInterface',\n 'vital40\\Repositories\\DBRoleUserRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\SessionTypeRepositoryInterface',\n 'vital40\\Repositories\\DBSessionTypeRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\ToteRepositoryInterface',\n 'vital40\\Repositories\\DBToteRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\UPCRepositoryInterface',\n 'vital40\\Repositories\\DBUPCRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\UserRepositoryInterface',\n 'vital40\\Repositories\\DBUserRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\UserActivityRepositoryInterface',\n 'vital40\\Repositories\\DBUserActivityRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\UserConversationRepositoryInterface',\n 'vital40\\Repositories\\DBUserConversationRepository'\n );\n $this->app->bind(\n 'vital40\\Repositories\\VendorComplianceRepositoryInterface',\n 'vital40\\Repositories\\DBVendorComplianceRepository'\n );\n }", "private function bindImplementations(): void\n {\n $this->app->bind(RestaurantRepositoryInterface::class, function () {\n return new FileRestaurantRepository(\n storage_path('data/restaurants.json'), Restaurant::class\n );\n });\n\n $this->app->bind(UserFavoriteRestaurantRepositoryInterface::class, function () {\n return new FileUserFavoriteRestaurantRepository(\n storage_path('data/user_favorite_restaurants.json'), UserFavoriteRestaurant::class\n );\n });\n }", "public function repository(): RepositoryContract;", "abstract public function repository();", "public function pollsApiRepo() {\n return $this->app->bind('App\\Repositories\\Api\\Polls\\MyPollsRepositoryInterface', 'App\\Repositories\\Api\\Polls\\MyPollsRepository');\n }", "abstract protected function getRepository();", "abstract public function getRepository();", "abstract public function getRepository();", "private function registerRepository()\n {\n $this->app->bind(DataRepository::class, LaravelDBRepository::class);\n }", "public abstract function getRepository();", "private function bindRepository($item)\n\t{\n\t\t$abstract = \"{$item}RepositoryInterface\";\n\t\t$concrete = \"{$item}Repository\";\n\n\t\t// Bind to the container\n\t\t$this->app->bind(\n\t\t\t[$abstract => $this->aliases[$abstract]], \n\t\t\t$this->aliases[$concrete]\n\t\t);\n\t}", "protected function getRepository() {}", "public function getRepository(string $className): IRepository;", "protected function registerRepository()\n\t{\n\t\t$this->app->bind('confide.repository', function ($app) {\n\t\t\treturn new EloquentRepository($app);\n\t\t});\n\t}", "public function getRepository();", "public function homeRepo() {\n return $this->app->bind('App\\Repositories\\Home\\HomeRepositoryInterface', 'App\\Repositories\\Home\\HomeRepository');\n }", "abstract protected function getEventableRepository();", "public function repository()\n {\n return GenreRepositoryInterface::class;\n }", "public function getRepository(): EntityRepository;", "private function registerPipelineRepository()\n\t{\n\t\t$abstract = 'Cerbero\\Workflow\\Repositories\\PipelineRepositoryInterface';\n\n\t\t$this->app->bind($abstract, function($app)\n\t\t{\n\t\t\treturn new YamlPipelineRepository\n\t\t\t(\n\t\t\t\tnew SymfonyYamlParser,\n\n\t\t\t\tnew \\Illuminate\\Filesystem\\Filesystem,\n\n\t\t\t\tconfig('workflow.path')\n\t\t\t);\n\t\t});\n\t}", "public function getRepository($className);", "public function repository()\n {\n return Repository::i();\n }", "function repositoryCustom()\n {\n }", "public function register()\n {\n\n $this->app->bind(\n 'DeslpheskRepositoryInterface', \n 'DeslpheskRepository'\n );\n\n }", "public function initRepository(): void;", "public function register()\n {\n foreach ($this->entities as $entity) {\n $this->{'bind' . $entity . 'Repository'}();\n }\n }", "public function executed(RequestInterface $request): RepositoryInterface;", "protected function registerRepository()\n {\n $this->app->singleton(CachingRepository::class, function (Container $app) {\n $repo = new GitHubRepository(\n GuzzleFactory::make(),\n $app->config->get('emoji.token')\n );\n\n $cache = $app->cache->store($app->config->get('emoji.connection'));\n $key = $app->config->get('emoji.key', 'emoji');\n $life = (int) $app->config->get('emoji.life', 10080);\n\n return new CachingRepository($repo, $cache, $key, $life);\n });\n\n $this->app->alias(CachingRepository::class, RepositoryInterface::class);\n }", "public function register()\n {\n $this->app->bind(\n UserRepositoryInterface::class, \n UserRepository::class\n );\n }", "public function __construct(BackendRepositoryInterface $bR)\n {\n $this->bR = $bR;\n //i mam w gateway dostepne moje repo dla kazdej metody\n }", "public function register()\n {\n //Wherever the interface is injected (controllers) the repository gets injected instead.\n //Don't have to update controller code if decide to later swap out the orm or the db.\n //Update bind statement here with newly created repository (implementation) - brett.\n $this->app->bind('App\\Interfaces\\UsersInterface', 'App\\Repositories\\UsersRepository');\n $this->app->bind('App\\Interfaces\\ClientsInterface', 'App\\Repositories\\ClientsRepository');\n $this->app->bind('App\\Interfaces\\DepartmentsInterface', 'App\\Repositories\\DepartmentsRepository');\n $this->app->bind('App\\Interfaces\\TitlesInterface', 'App\\Repositories\\TitlesRepository');\n $this->app->bind('App\\Interfaces\\EmployeesInterface', 'App\\Repositories\\EmployeesRepository');\n }", "public function register()\n {\n App::bind(UserRepositoryInterface::class, UserRepository::class);\n App::bind(CategoryRepositoryInterface::class, CategoryRepository::class);\n App::bind(BookRepositoryInterface::class, BookRepository::class);\n App::bind(RequestBookRepositoryInterface::class, RequestBookRepository::class);\n App::bind(ReviewRepositoryInterface::class, ReviewRepository::class);\n App::bind(LikeRepositoryInterface::class, LikeRepository::class);\n App::bind(CommentRepositoryInterface::class, CommentRepository::class);\n App::bind(FollowingRepositoryInterface::class, FollowingRepository::class);\n App::bind(UserBookRepositoryInterface::class, UserBookRepository::class);\n }", "public function register()\n {\n $this->app->bind(EloquentRepositoryInterface::class, BaseRepository::class);\n $this->app->bind(HotelRepositoryInterface::class, HotelRepository::class);\n }", "public function registerInterfaceBindings()\n {\n $this->app->bind('League\\OAuth2\\Server\\Storage\\ClientInterface', 'LucaDegasperi\\OAuth2Server\\Repositories\\FluentClient');\n $this->app->bind('League\\OAuth2\\Server\\Storage\\ScopeInterface', 'LucaDegasperi\\OAuth2Server\\Repositories\\FluentScope');\n $this->app->bind('League\\OAuth2\\Server\\Storage\\SessionInterface', 'LucaDegasperi\\OAuth2Server\\Repositories\\FluentSession');\n $this->app->bind('League\\OAuth2\\Server\\Storage\\AccessTokenInterface', 'LucaDegasperi\\OAuth2Server\\Repositories\\FluentAccessToken');\n $this->app->bind('League\\OAuth2\\Server\\Storage\\RefreshTokenInterface', 'LucaDegasperi\\OAuth2Server\\Repositories\\FluentRefreshToken');\n }", "public function register()\n {\n\n $this->app->bind('App\\Repositories\\GuestRepositories\\GuestTicketRepositoryInterface','App\\Repositories\\GuestRepositories\\GuestTicketRepository');\n\n }", "public function register()\n {\n $this->app->bind(RatingRepoInterface::class, RatingRepo::class);\n }", "public function register()\n {\n $this->app->bind(\n ProductRepositoryInterface::class,\n ProductRepository::class\n );\n\n $this->app->bind(\n VendorRepositoryInterface::class,\n VendorRepository::class\n );\n }", "public function register()\n {\n $this->app->bind(IContractRepository::class, function($app) {\n \n //$em = $app[ManagerRegistry::class]->getManagerForClass(ContractEntity::class);\n $em = $app[ManagerRegistry::class]->getManager(env('DB_API_CONTRACT_MANAGERNAME'));\n\n return new DoctrineContractRepository(\n $em,\n $em->getClassMetaData(ContractEntity::class)\n );\n });\n\n $this->app->bind(IContractService::class, function($app) {\n\n return new ContractService(\n $app[IContractRepository::class]\n );\n });\n\n $this->app->bind(IPolicyRepository::class, function($app) {\n\n $em = $app[ManagerRegistry::class]->getManager(env('DB_API_POLICIES_MANAGERNAME'));\n //getManagerForClass(PolicyEntity::class);\n\n return new DoctrinePolicyRepository(\n $em,\n $em->getClassMetaData(PolicyEntity::class)\n );\n });\n\n $this->app->bind(IPolicyService::class, function($app) {\n\n return new PolicyService(\n $app[IPolicyRepository::class]\n );\n });\n \n //Multiple implementations for one interfaces \n // $this->app->when('App\\Handlers\\Commands\\CreateOrderHandler')\n // ->needs('App\\Contracts\\EventPusher')\n // ->give('App\\Services\\PubNubEventPusher');\n\n }", "public function __construct(EntriesInterface $entriesInterface)\n\t{\n $this->entriesRepo = $entriesInterface;\n\n\t\tparent::__construct();\n\t}", "public function make()\n {\n if ($this->readers === null || $this->writers === null) {\n $defaults = self::defaultAdapters();\n }\n\n return new AdapterRepository(\n $this->readers === null ? $defaults : $this->readers,\n $this->writers === null ? $defaults : $this->writers,\n $this->immutable\n );\n }", "public function register()\n {\n $this->app->bind('App\\Repositories\\CollectionRepository', 'App\\Repositories\\CollectionRepositoryJSONImpl');\n }", "public function register()\n {\n $this->app->bind(FrontendRepositoryInterface::class,function(){\n return new FrontendRepository;\n });\n\n $this->app->bind(BackendRepositoryInterface::class,function(){\n return new BackendRepository;\n });\n }", "protected function makeRepositoryInterface()\n {\n if ($this->files->exists($path = $this->getInterfacePath())) {\n return $this->error($this->classParts() . 'Interface already exists!');\n }\n $this->makeDirectory($path);\n $this->files->put($path, $this->compileInterfaceStub());\n $this->info('Repository Interface created successfully.');\n }", "public function register()\n {\n $this->app->bind(CurrencyRepositoryInterface::class, CurrencyRepository::class);\n }", "public function register()\n {\n $app = $this->app;\n $app->bind('MH\\Repositories\\FileRepositoryInterface', 'MH\\Repositories\\Local\\FileRepository');\n }", "private function registerRepository(){\n $this->dataSources = array(\n 1=>new DataSourceIRC61647(),\n );\n }", "public function give($implementation);", "protected function setRepositoryBindings()\n\t{\n\t\t$this->aliases = $this->app['config']['app.aliases'];\n\n\t\t// Set the items being bound\n\t\t$bindings = ['Comment', 'Goal', 'Plan', 'Stat'];\n\n\t\tforeach ($bindings as $binding)\n\t\t{\n\t\t\t$this->bindRepository($binding);\n\t\t}\n\t}", "public function repository(string $class): RepositoryInterface\n {\n /** @var RepositoryInterface<T> $repository */\n $repository = $this->repositories->get(\n $class,\n function () use ($class) {\n return $this->policy->repository($class, $this->connection);\n }\n );\n\n return $repository;\n }", "public function register()\n {\n $this->app->bind(ProductRepositoryInterface::class, MysqlProductRepository::class);\n $this->app->bind(StockRepositoryInterface::class, MysqlStockRepository::class);\n }", "public function bind($interfaces, $concrete, $targetClass = null);", "public function register()\n {\n $adapter = $this->getContainer()->get(AdapterInterface::class);\n $this->getContainer()->share('repo.user', new UsersRepository($adapter));\n $this->getContainer()->share('repo.media', new MediaRepository($adapter));\n $this->getContainer()->share('repo.comment', new CommentsRepository($adapter));\n $this->getContainer()->share('repo.like', new LikesRepository($adapter));\n $this->getContainer()->share('repo.tag', new TagsRepository($adapter));\n $this->getContainer()->share('repo.location', new LocationsRepository($adapter));\n }", "protected function registerRepositories()\n {\n $this->app->bind(HistoryRepository::class, EloquentHistoryRepository::class);\n }", "public function registerRepositoryBindings()\n {\n $this->app->bind('LucaDegasperi\\OAuth2Server\\Repositories\\FluentClient', function ($app) {\n\n $limitClientsToGrants = $app['config']->get('oauth2-server-laravel::oauth2.limit_clients_to_grants');\n return new FluentClient($limitClientsToGrants);\n });\n\n $this->app->bind('LucaDegasperi\\OAuth2Server\\Repositories\\FluentScope', function ($app) {\n\n $limitClientsToScopes = $app['config']->get('oauth2-server-laravel::oauth2.limit_clients_to_scopes');\n $limitScopesToGrants = $app['config']->get('oauth2-server-laravel::oauth2.limit_scopes_to_grants');\n\n return new FluentScope($limitClientsToScopes, $limitScopesToGrants);\n });\n }", "public function register()\n {\n $this->app->bind('App\\Repository\\CategoryInterface','App\\Repository\\Eloquent\\CategoryRepository');\n $this->app->bind('App\\Repository\\ArticleInterface','App\\Repository\\Eloquent\\ArticleRepository');\n }", "public function register()\n {\n $this->app->bind(ProductReviewModelInterface::class, ProductReviewRepository::class);\n }", "protected function registerRepositories()\n {\n $this->app->bind(UserRepository::class, EloquentUserRepository::class);\n }", "public function register()\n {\n $this->app->bind(ExpoRepository::class, get_class($this->getInterestsDriver()));\n }", "public function register()\n {\n $this->app->bind(CategoryRepositoryInterface::class, CategoryEloquentRepository::class);\n $this->app->bind(UserRepositoryInterface::class, UserEloquentRepository::class);\n\n\n }", "public function __construct()\n {\n $this->typeRepo = new TypesRepository();\n }", "public function __construct(RepositoryInterface $repository)\n {\n parent::__construct();\n\n $this->repository = $repository;\n }", "public function __construct(SillaRepositoryContract $repo)\n {\n $this->repo = $repo;\n }", "public function register()\n {\n $this->app->bind(\n TaskRepositoryInterface::class, \n TaskRepository::class\n );\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Bookkeeping\\Technician\\TechnicianInterface',\n 'App\\Bookkeeping\\Technician\\TechnicianRepository'\n );\n }", "public function process(Request $request, Response $response): RepositoryInterface;", "public function register()\n {\n //Bind all interfaces with repositories\n $this->app->bind(UserRepository::class, UserRepositoryImpl::class);\n $this->app->bind(ProductRepository::class, ProductRepositoryImpl::class);\n }", "public function getRepository(){\n return $this->repository;\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Repositories\\Role\\RoleInterface', \n 'App\\Repositories\\Role\\RoleRepository'\n );\n }", "public function register()\n {\n // Primeiro parametro qual interface vai definir e em segundo qual class a interface vai receber uma instancia\n $this->app->bind(\n 'App\\Repositories\\Contracts\\UserRepositoryInterface',\n 'App\\Repositories\\Eloquent\\UserRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\PermissionRepositoryInterface',\n 'App\\Repositories\\Eloquent\\PermissionRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\RoleRepositoryInterface',\n 'App\\Repositories\\Eloquent\\RoleRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\ProfileRepositoryInterface',\n 'App\\Repositories\\Eloquent\\ProfileRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\ServiceRepositoryInterface',\n 'App\\Repositories\\Eloquent\\ServiceRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\ProductRepositoryInterface',\n 'App\\Repositories\\Eloquent\\ProductRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\VehicleRepositoryInterface',\n 'App\\Repositories\\Eloquent\\VehicleRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\ClientRepositoryInterface',\n 'App\\Repositories\\Eloquent\\ClientRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\SituationRepositoryInterface',\n 'App\\Repositories\\Eloquent\\SituationRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\EmployeeRepositoryInterface',\n 'App\\Repositories\\Eloquent\\EmployeeRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\SchedulingRepositoryInterface',\n 'App\\Repositories\\Eloquent\\SchedulingRepository'\n );\n $this->app->bind(\n 'App\\Repositories\\Contracts\\BudgetRepositoryInterface',\n 'App\\Repositories\\Eloquent\\BudgetRepository'\n );\n }", "public function __construct(ItemRepositoryInterface $repo)\n {\n $this->repo = $repo;\n }", "public static function get(): AbstractRepository {\n return new static();\n }", "public function register()\n {\n $this->app->bind(ProductInterface::class, ProductRepository::class);\n $this->app->bind(OriginalStoreInterface::class, OriginalStoreRepository::class);\n $this->app->bind(IngredientInterface::class, IngredientRepository::class);\n $this->app->bind(ReviewInterface::class, ReviewRepository::class);\n $this->app->bind(UserInterface::class, UserRepository::class);\n }", "public function register()\n {\n $this->app->bind(ClientRepositoryInterface::class, function ($app) {\n return new ClientEloquentRepository();\n });\n $this->app->bind(UserRepositoryInterface::class, function () {\n return new UserRepository();\n });\n }", "public function __construct(BookRepositoryInterface $books)\n {\n $this->book = $books;\n }", "public function __construct(ContainerInterface $container) {\n $this->container = $container;\n\n $this->repo = new CompanyRepository();\n }", "public function register()\n {\n $this->app->bind(RepositoryInterface::class, EloquentRepository::class);\n $this->app->bind(ApartmentInterfaceRepository::class, ApartmentRepository::class);\n $this->app->bind(ApartmentImagefaceRepository::class, ApartmentImageRepository::class);\n }", "private function registerBinding()\n {\n /**\n * bind Tax Repository to its Eloquent implementation\n */\n $this->app->bind(\n \\Innovate\\Repositories\\Tax\\TaxContract::class,\n \\Innovate\\Repositories\\Tax\\EloquentTaxRepository::class\n );\n /**\n * bind BankTransferInfoContract to its elquent implementation EloquentBankTransferInfoRepository\n */\n $this->app->bind(\n \\Innovate\\Repositories\\StaticPages\\BankTransferInfo\\BankTransferInfoContract::class,\n \\Innovate\\Repositories\\StaticPages\\BankTransferInfo\\EloquentBankTransferInfoRepository::class\n );\n\n /**\n *\n */\n $this->app->bind(\n \\Innovate\\Repositories\\StaticPages\\CheckOutAgreement\\CheckOutAgreementContract::class,\n \\Innovate\\Repositories\\StaticPages\\CheckOutAgreement\\EloquentCheckOutAgreementRepository::class\n );\n\n $this->eavAttributeBindings();\n $this->eavAttributeCategoryBindings();\n }", "public function register() {\n $this->app->register(DropboxServiceProvider::class);\n\n $this->app->bind(UserRepository::class, function ($app) {\n $sentinel = new Sentinel(\n $app['sentinel.persistence'],\n $app['sentinel.users'],\n $app['sentinel.roles'],\n $app['sentinel.activations'],\n $app['events']\n );\n return new UserRepositoryEloquent(new User(), $sentinel);\n });\n\n $this->app->bind(SalesTeamRepository::class, function ($app) {\n return new SalesTeamRepositoryEloquent(new Salesteam());\n });\n\n $this->app->bind(CallRepository::class, function ($app) {\n return new CallRepositoryEloquent(new Call());\n });\n\n $this->app->bind(CompanyRepository::class, function ($app) {\n return new CompanyRepositoryEloquent(new Company());\n });\n\n $this->app->bind(OpportunityRepository::class, function ($app) {\n return new OpportunityRepositoryEloquent(new Opportunity());\n });\n\n $this->app->bind(MeetingRepository::class, function ($app) {\n return new MeetingRepositoryEloquent(new Meeting());\n });\n\n $this->app->bind(QuotationRepository::class, function ($app) {\n return new QuotationRepositoryEloquent(new Quotation());\n });\n\n $this->app->bind(ProductRepository::class, function ($app) {\n return new ProductRepositoryEloquent(new Product());\n });\n\n $this->app->bind(CategoryRepository::class, function ($app) {\n return new CategoryRepositoryEloquent(new Category());\n });\n\n $this->app->bind(QuotationTemplateRepository::class, function ($app) {\n return new QuotationTemplateRepositoryEloquent(new Qtemplate());\n });\n\n $this->app->bind(InvoiceRepository::class, function ($app) {\n return new InvoiceRepositoryEloquent(new Invoice());\n });\n\n $this->app->bind(ContractRepository::class, function ($app) {\n return new ContractRepositoryEloquent(new Contract());\n });\n\n $this->app->bind(LeadRepository::class, function ($app) {\n return new LeadRepositoryEloquent(new Lead());\n });\n\n $this->app->bind(SalesOrderRepository::class, function ($app) {\n return new SalesOrderRepositoryEloquent(new Saleorder());\n });\n\n $this->app->bind(InvoicePaymentRepository::class, function ($app) {\n return new InvoicePaymentRepositoryEloquent(new InvoiceReceivePayment());\n });\n\n $this->app->bind(ExcelRepository::class, function ($app) {\n\n $excel = new Excel(\n $app['phpexcel'],\n $app['excel.reader'],\n $app['excel.writer'],\n $app['excel.parsers.view']\n );\n\n return new ExcelRepositoryDefault($excel);\n });\n\n $this->app->bind(EmailTemplateRepository::class, function ($app) {\n return new EmailTemplateRepositoryEloquent(new EmailTemplate());\n });\n\n $this->app->bind(OptionRepository::class, function ($app) {\n return new OptionRepositoryEloquent(new Option());\n });\n\n $this->app->bind(InviteUserRepository::class, function ($app) {\n return new InviteUserRepositoryEloquent(new InviteUser());\n });\n\n $this->app->bind(InstallRepository::class, function ($app) {\n return new InstallRepositoryEloquent();\n });\n\n }", "public function __construct(PostalRepositoryInterface $postal, DriverRepositoryInterface $driver)\n {\n $this->postal = $postal;\n $this->driver = $driver;\n }", "protected function makeRepo()\n {\n // debido a que el repositorio de direccion depende\n // del repositorio de empleado que tiene sus\n // dependendias, y como no queremos usar\n // el IOC container, lo hacemos\n // explicitamente aqui.\n return new AddressRepository(\n new Address(),\n new EmployeeRepository(\n new Employee(),\n new UserRepository(new User())\n )\n );\n }", "public function __construct(EmployeeRepositoryInterface $EmployeeRepository)\n {\n $this->EmployeeRepository = $EmployeeRepository;\n }", "public function __construct(BotRepositoryInterface $bot)\n {\n $this->bot = $bot;\n }", "protected function repository(StoreInterface $store)\n\t{\n\t\treturn new Repository($store);\n\t}", "public function __construct()\n {\n $this->citiesRepository = new CitiesRepository();\n }", "public function register(): void\n {\n $this->app->bind(UserRepositoryInterface::class, function () {\n return new UserEloquentRepository(new User);\n });\n\n $this->app->bind(CategoryRepositoryInterface::class, function () {\n return new CategoryEloquentRepository(new Category);\n });\n\n $this->app->bind(ItemRepositoryInterface::class, function () {\n return new ItemEloquentRepository(new Item);\n });\n\n $this->app->bind(ItemPhotoRepositoryInterface::class, function () {\n return new ItemPhotoEloquentRepository(new ItemPhoto);\n });\n\n $this->app->bind(ItemReportRepositoryInterface::class, function () {\n return new ItemReportEloquentRepository(new ItemReport);\n });\n\n $this->app->bind(ItemReportCommentRepositoryInterface::class, function () {\n return new ItemReportCommentEloquentRepository(new ItemReportComment);\n });\n }", "private function registerBaseBindings()\n {\n static::setInstance($this);\n\n $this->instance(self::class, $this);\n\n $this->singleton('config', \\config\\Repository::class);\n }", "public function register()\n {\n //load helper\n foreach (glob(app_path() . '/Helpers/*.php') as $filename) {\n require_once($filename);\n }\n //\n $this->app->singleton(\n UserRepositoryInterface::class,\n UserEloquent::class\n );\n $this->app->singleton(\n OrderRepositoryInterface::class,\n OrderEloquent::class\n );\n $this->app->singleton(\n EmployeeOrderRepositoryInterface::class,\n EmployeeOrderEloquent::class\n );\n $this->app->singleton(\n EmployeeRepositoryInterface::class,\n EmployeeEloquent::class\n );\n\n $this->app->singleton(\n EmpRentRepositoryInterface::class,\n EmpRentEloquent::class\n );\n\n /*\n * Mange role\n */\n $this->app->singleton(\n RoleRepositoryInterface::class,\n RoleEloquent::class\n );\n\n $this->app->singleton(\n PermissionRepositoryInterface::class,\n PermissionEloquent::class\n );\n\n /**\n * Cross check\n */\n $this->app->singleton(\n CrossCheckRepositoryInterface::class,\n CrossCheckEloquent::class\n );\n /**\n * Cross check Info\n */\n $this->app->singleton(\n CrossCheckInfoRepositoryInterface::class,\n CrossCheckInfoEloquent::class\n );\n\n $this->app->singleton(\n SummaryRepositoryInterface::class,\n SummaryEloquent::class\n );\n\n $this->app->singleton(\n TypeRepositoryInterface::class,\n TypeEloquent::class\n );\n\n //CDT\n $this->app->singleton(\n CDTRepositoryInterface::class,\n CDTEloquent::class\n );\n\n //PT\n $this->app->singleton(\n PTRepositoryInterface::class,\n PTEloquent::class\n );\n\n //HD\n $this->app->singleton(\n HDRepositoryInterface::class,\n HDEloquent::class\n );\n\n //SP\n $this->app->singleton(\n SPRepositoryInterface::class,\n SPEloquent::class\n );\n\n\n // Trait\n $this->app->bind('topica', function () {\n return new Topica();\n });\n\n //Cross check year\n $this->app->singleton(\n CrossCheckYearRepositoryInterface::class,\n CrossCheckYearEloquent::class\n );\n\n }", "public function register()\n {\n $app = $this->app;\n\n $app->bind(UserInterface::class, function ($app) {\n return new UserRepository(new User);\n });\n\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 __construct(OrderRepositoryInterface $order)\n {\n $this->repository = $order;\n parent::__construct();\n }", "public function register()\n {\n // // Bind the returned class to the namespace 'Repositories\\PokemonInterface\n // $this->app->bind('App\\Modules\\User\\Repositories\\IPostRepository', function($app)\n // {\n // return new UserRepository(new User());\n // });\n }", "protected function repository($name)\n {\n parent::repository($name);\n\n return $this->repository;\n }", "public function getRepository(): TableRepository;", "public function register()\n {\n $this->app->bind('\\App\\Repositories\\Contracts\\PaymentRepositoryInterface', function () {\n return new AuthorizeNetRepository;\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 bind( $abstract, $concrete = NULL, $shared = FALSE );", "public function register()\n {\n $this->app->bind(\n 'App\\Repositories\\MessageRepositoryInterface',\n 'App\\Repositories\\EloquentMessageRepository'\n );\n }", "public function register()\n {\n $this->app->bind(\n 'App\\Utm\\Users\\Models\\Repositories\\UserRepositoryInterface',\n 'App\\Utm\\Users\\Models\\Repositories\\UserRepository'\n );\n }", "protected function initRepository()\n {\n $this->repository = new Repository([\n 'name' => 'vendor/name',\n 'description' => '✈️The package is a ThinkSNS+ package.',\n 'type' => 'library',\n 'license' => 'MIT',\n 'require' => [\n 'php' => '>=7.1.3',\n ],\n 'autoload' => [],\n 'config' => [\n 'sort-packages' => true,\n ],\n ]);\n }", "public function register()\n {\n $this->app->bind(\n 'Repositories\\Contracts\\UserStoreInterface',\n 'Repositories\\UserStore'\n );\n }" ]
[ "0.77564687", "0.70190316", "0.69290274", "0.6833546", "0.6764538", "0.6762858", "0.6675673", "0.6675673", "0.6630934", "0.66248554", "0.6530316", "0.6494448", "0.64578426", "0.6373778", "0.62960887", "0.62955844", "0.62670034", "0.6155329", "0.61315334", "0.6119732", "0.6030994", "0.6022881", "0.6017534", "0.5980988", "0.59708124", "0.596993", "0.59301025", "0.58996165", "0.58859676", "0.5878479", "0.5877203", "0.582314", "0.58125573", "0.58030754", "0.57831424", "0.578178", "0.5778269", "0.5776593", "0.5756554", "0.5745074", "0.5736906", "0.57362175", "0.57269114", "0.57129383", "0.57105684", "0.57077634", "0.5705203", "0.5694542", "0.5692109", "0.5684042", "0.56750274", "0.5674464", "0.56581676", "0.56464076", "0.5630338", "0.5629712", "0.5627614", "0.56223327", "0.56148404", "0.56051385", "0.5603504", "0.55890113", "0.5584634", "0.55818594", "0.5547932", "0.5542674", "0.5542004", "0.55342245", "0.55300885", "0.55286586", "0.5526468", "0.5524316", "0.55142176", "0.5513849", "0.55101526", "0.5507982", "0.5506711", "0.55019903", "0.54935074", "0.5493424", "0.5484045", "0.548361", "0.54795396", "0.5473195", "0.5469561", "0.5464711", "0.5459156", "0.54503196", "0.5447001", "0.5444389", "0.5442488", "0.5429435", "0.5425172", "0.54174525", "0.5416765", "0.54047775", "0.5395004", "0.5383089", "0.5379368", "0.5366114" ]
0.58186305
32
Check the Isotope config directory for a particular template
public static function getTemplate($strTemplate, $strFormat = 'html5') { $arrAllowed = StringUtil::trimsplit(',', $GLOBALS['TL_CONFIG']['templateFiles'] ?? ''); if (\is_array($GLOBALS['TL_CONFIG']['templateFiles'] ?? null) && !\in_array($strFormat, $arrAllowed)) { throw new \InvalidArgumentException("Invalid output format $strFormat"); } $strKey = $strTemplate . '.' . $strFormat; $strPath = TL_ROOT . '/templates'; $strTemplate = basename($strTemplate); // Check the templates subfolder $strTemplateGroup = str_replace(array('../', 'templates/'), '', Isotope::getConfig()->templateGroup); if ($strTemplateGroup != '') { $strFile = $strPath . '/' . $strTemplateGroup . '/' . $strKey; if (file_exists($strFile)) { return $strFile; } if (file_exists($strFile)) { return $strFile; } } return parent::getTemplate($strTemplate, $strFormat); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function skcw_check_directory($template) {\n\tif (is_dir($template) && is_readable($template)) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "function template_exists($template)\n {\n return (bool)$this->get_template_path($template);\n }", "public function templateExists($template);", "function templateTypeExists($templateType) {\n\t\t\t\t\t$templateType = preg_replace('/^_[A-Z0-9\\/]+/i','',$templateType);\n\t\t\t\t\tif (!empty($templateType)) {\n\t\t\t\t\t\t$paths = \\Bonita\\Main::getPaths();\n\t\t\t\t\t\tforeach($paths as $basepath) {\n\t\t\t\t\t\t\t$path = $basepath . '/templates/'.$templateType.'/';\n\t\t\t\t\t\t\tif (file_exists($path)) return true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public function findTemplate(){\n if($this->hasErrors()) return false;\n $located = false;\n if(!$this->hasErrors()){\n $module_file = trailingslashit($this->location).$this->type.'.php';\n $file = trailingslashit($this->module).trailingslashit($this->location).$this->type.'.php';\n switch(true){\n //Check Stylesheet directory first (Child Theme)\n case file_exists(trailingslashit(get_stylesheet_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file):\n $located = trailingslashit(get_stylesheet_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file;\n break;\n //Check Template directory Second (Parent Theme)\n case file_exists(trailingslashit(get_template_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file):\n $located = trailingslashit(get_template_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file;\n break;\n //Check filtered custom template directory, if it's set.\n case (apply_filters($this->prefix('custom_template_directory_root'), '', $this) !== '' && file_exists(trailingslashit(apply_filters($this->prefix('custom_template_directory_root'), '', $this)).$file)):\n $located = trailingslashit($this->prefix('custom_template_directory_root')).$file;\n break;\n //If nothing else exists, go ahead and get the default\n default:\n $file = trailingslashit(ModuleLoader::getModuleDir($this->module)).$module_file;\n if($this->fileExists($file)) $located = $file;\n break;\n }\n }\n\n return $located;\n }", "public function hasTemplate() {}", "function tidyt_template_exists($template){\n if(!file_exists($template))\n return false;\n\n return true;\n}", "public function hasTemplatePath()\r\n\t{\r\n\t\treturn !empty($this->templatePath);\r\n\t}", "public function resolve_template() {\n\n\t\t/**\n\t\t * Returns the available template paths for column settings\n\t\t *\n\t\t * @param array $paths Template paths\n\t\t * @param string $template Current template path\n\t\t */\n\t\t$paths = apply_filters( 'ac/view/templates', [ AC()->get_dir() . 'templates' ], $this->template );\n\n\t\tforeach ( $paths as $path ) {\n\t\t\t$file = $path . '/' . $this->template . '.php';\n\n\t\t\tif ( is_readable( $file ) ) {\n\t\t\t\tinclude $file;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function catch_plugin_template($template) {\n\t\n // If tp-file.php is the set template\n if( is_page_template('cg-search.php') )\n \t{\n // Update path(must be path, use WP_PLUGIN_DIR and not WP_PLUGIN_URL) \n $template = WP_PLUGIN_DIR . '/hyp3rl0cal-wordpress-plugin/cg-search.php';\n \t}\n \t\n // If tp-file.php is the set template\n if( is_page_template('cg-directory.php') )\n \t{\n // Update path(must be path, use WP_PLUGIN_DIR and not WP_PLUGIN_URL) \n $template = WP_PLUGIN_DIR . '/hyp3rl0cal-wordpress-plugin/cg-directory.php';\n \t} \t\n \n // Return\n return $template;\n}", "private function checkDir() {\n if (! is_dir ( $this->option ['templateDir'] ))\n $this->core->err ( '101', $this->option ['templateDir'] );\n \n if (! is_dir ( $this->option ['compileDir'] ))\n $this->core->err ( '101', $this->option ['compileDir'] );\n \n if (! is_dir ( $this->option ['cacheDir'] ))\n $this->core->err ( '101', $this->option ['cacheDir'] );\n }", "public function testExists()\n {\n $parser = $this->createMock('Symfony\\Component\\Templating\\TemplateNameParserInterface');\n $locator = $this->createMock('Symfony\\Component\\Config\\FileLocatorInterface');\n $locator\n ->expects($this->once())\n ->method('locate')\n ->will($this->returnValue($template = __DIR__.'/../../Resources/views/layout.twig'))\n ;\n $loader = new FilesystemLoader($locator, $parser);\n return $this->assertTrue($loader->exists($template));\n }", "protected function parse_template_dir() {\n\n if( ! is_string( $this->options[ 'template_dir' ] ) )\n return false;\n\n $this->options[ 'template_dir' ] = rtrim(\n $this->options[ 'template_dir' ], '/'\n );\n\n return true;\n\n }", "public function setApplicationTemplatePath($path) {\n\t\t\n\t\tif (is_file($path)) {\n\t\t\t$this->itemTemplate = file_get_contents($path);\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function templateExists(): bool\n {\n return isset($this->templatePath);\n }", "abstract public function templateExists($name);", "public function exists()\n {\n try {\n ($this->engine->getResolveTemplatePath())($this->name);\n return true;\n } catch (TemplateNotFound $e) {\n return false;\n }\n }", "public function get_template_directory()\n {\n }", "function checkInstalledPlugin($template) {\n\tglobal $communityPaths;\n\n\t$pluginName = basename($template['PluginURL']);\n\tif ( ! file_exists(\"/var/log/plugins/$pluginName\") ) return false;\n\t$dupeList = readJsonFile($communityPaths['pluginDupes']);\n\tif ( ! $dupeList[$pluginName] ) return true;\n\treturn strtolower(trim(plugin(\"pluginURL\",\"/var/log/plugins/$pluginName\"))) != strtolower(trim($template['PluginURL']));\n}", "function tidyt_configured(){\n if( !defined('WP_TEMPLATE_DIRECTORY') )\n exit('<h1>WP_TEMPLATE_DIRECTORY was not defined.</h1> Add it to your wp-config.php file!');\n}", "protected function getConfigFiles()\n {\n $files = $this->asList('templates');\n $valid = array_filter($files, 'is_file');\n if (count($valid) !== count($files)) {\n // At least one path does not point to an existing file.\n $notExisting = array_diff($files, $valid);\n $message = 'The following mail template configuration files do not exist: ' . implode(', ', $notExisting);\r\n throw new Zend_Application_Resource_Exception($message);\n }\n return $files;\n }", "public function templateFileExists() {\r\n\t\treturn isset($this->strTemplateFile);\r\n\t}", "public function filterSearchformTemplate(): bool\n {\n $path = $this->getTemplatePath();\n\n locate_template([\"{$path}/searchform.php\", 'searchform.php'], true, false);\n\n return false;\n }", "function voyage_mikado_is_masonry_template() {\n\n $page_id = voyage_mikado_get_page_id();\n $page_template = get_page_template_slug($page_id);\n $page_options_template = voyage_mikado_options()->getOptionValue('blog_list_type');\n\n if(!is_archive()) {\n if($page_template == 'blog-masonry.php' || $page_template == 'blog-masonry-full-width.php') {\n return true;\n }\n } elseif(is_archive() || is_home()) {\n if($page_options_template == 'masonry' || $page_options_template == 'masonry-full-width') {\n return true;\n }\n } else {\n return false;\n }\n }", "function _setup_template($template)\n {\n // default directory for templates\n $this->template_dir = $this->get_template_path($template);\n\t\t//echo $this->template_dir . '<br>';\n $this->config_dir = $this->template_dir . '/config';\n }", "function medigroup_mikado_is_masonry_template() {\n\n $page_id = medigroup_mikado_get_page_id();\n $page_template = get_page_template_slug($page_id);\n $page_options_template = medigroup_mikado_options()->getOptionValue('blog_list_type');\n\n if(!is_archive()) {\n if($page_template == 'blog-masonry.php' || $page_template == 'blog-masonry-full-width.php') {\n return true;\n }\n } elseif(is_archive() || is_home()) {\n if($page_options_template == 'masonry' || $page_options_template == 'masonry-full-width') {\n return true;\n }\n } else {\n return false;\n }\n }", "function init() {\n require config('template_path') . '/template.php';\n}", "function init()\n{\n require config('template_path') . '/template.php';\n}", "public function templateExists($template)\n {\n return $this->sm->templateExists($template);\n }", "public function templateExists(string $template_name);", "public function hasTemplate($aliasOrTemplatePath);", "public function exists()\n {\n return file_exists($this->path('layout.php'));\n }", "public function test_metadata_not_found_in_the_current_directory() {\n\t\t$result = register_block_type_from_metadata( __DIR__ );\n\n\t\t$this->assertFalse( $result );\n\t}", "public function template_path() {\r\n\t\t\treturn apply_filters( 'rv_portfolio_template_path', 'rv-portfolio/' );\r\n\t\t}", "public function testTemplateFileExists1()\n {\n $tpl = $this->smarty->createTemplate('helloworld.tpl');\n $this->assertTrue($tpl->source->exists);\n }", "public function configFileExists() {\n $_fileName = \\Config::get('fontello::config.file');\n $_folderName = \\Config::get('fontello::config.folder');\n if (\\File::exists($_folderName . $_fileName)) {\n $this->_configFile = $_folderName . $_fileName;\n return true;\n }\n return false;\n }", "function load_templates( $template ) {\n\n if ( is_singular( 'units' ) ) {\n \tif ( $overridden_template = locate_template( 'single-units.php' ) ) {\n\t\t\t $template = $overridden_template;\n\t\t\t } else {\n\t\t\t $template = plugin_dir_path( __file__ ) . 'templates/single-units.php';\n\t\t\t }\n } elseif ( is_archive( 'units' ) ) {\n \tif ( $overridden_template = locate_template( 'archive-units.php' ) ) {\n\t\t\t $template = $overridden_template;\n\t\t\t } else {\n\t\t\t $template = plugin_dir_path( __file__ ) . 'templates/archive-units.php';\n\t\t\t }\n }\n load_template( $template );\n\t}", "function st_get_template($file,$data = array()){\r $file = ST_DIR.'/templates/'.$file;\r if(file_exists($file)){\r include($file); return true;\r }\r return false;\r}", "public function testExists()\n {\n $parser = $this->getMock('Symfony\\Component\\Templating\\TemplateNameParserInterface');\n $locator = $this->getMock('Symfony\\Component\\Config\\FileLocatorInterface');\n $locator\n ->expects($this->once())\n ->method('locate')\n ->will($this->returnValue($template = __DIR__.'/../DependencyInjection/Fixtures/Resources/views/layout.html.hbs'))\n ;\n $loader = new FilesystemLoader($locator, $parser);\n\n $this->assertTrue($loader->exists($template));\n }", "private function getTemplateConfigPath(): string\n {\n return $this->_type === 'price'\n ? self::XML_PATH_EMAIL_PRICE_TEMPLATE\n : self::XML_PATH_EMAIL_STOCK_TEMPLATE;\n }", "function archive_template( $template ) {\n if ( is_post_type_archive('ccms-version') ) {\n $theme_files = array('archive-ccms-version.php');\n $exists_in_theme = locate_template($theme_files, false);\n if ( $exists_in_theme != '' ) {\n return $exists_in_theme;\n } else {\n return plugin_dir_path(__FILE__) . 'archive-ccms-version.php';\n }\n }\n return $template;\n }", "function get_template_directory()\n {\n }", "public function hasTemplate() {\n return $this->intendedTemplate() == $this->template();\n }", "function checkTemplate($cacheRowFile){\n if(inDeveloperMode() || !empty($_SESSION['developerMode'])){\n return false;\n }\n return file_exists($cacheRowFile);\n }", "private function copyFromTemplateIfNeeded() {\n\t\t$templatePath = __DIR__ . '/../conf/config.template.php';\n\t\tif (!file_exists($this->filePath)) {\n\t\t\tcopy($templatePath, $this->filePath) or LegacyLogger::log('ERROR', 'StartUp', \"could not create config file: {$this->filePath}\");\n\t\t}\n\t}", "public function findTemplate() {\n\n\t\t$templatePath = $this->_template;\n\n\t\tif (empty($templatePath)) {\n\n\t\t\t$templateFolders = array();\n\n\t\t\tif (strlen($tmp = $this->_Model->templatePath)) {\n\t\t\t\t$templateFolders[] = \\Finder::joinPath(APP_ROOT, $tmp);\n\t\t\t}\n\t\t\t// bubble up for template path\n\t\t\telseif (strlen($tmp = $this->_Model->getBubbler()->templatePath)) {\n\t\t\t\t$templateFolders[] = \\Finder::joinPath(APP_ROOT, $tmp);\n\t\t\t}\n\t\t\t// I should add the root page model's template path if exists\n\t\t\t$templateFolders[] = NINJA_ROOT . '/src/ninja/Mod/' . $this->_Module->getModName() . '/template';\n\n\t\t\t$templateFolders = array_unique($templateFolders);\n\n\t\t\t$templateNames = array();\n\t\t\t// I respect what's set in the model, and it should not be invalid\n\t\t\tif (strlen($templateName = $this->_Model->template)) {\n\t\t\t\t$templateNames[]= $templateName;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$Module = $this->_Module;\n\t\t\t\t$modName = $Module->getModName();\n\n\t\t\t\t$a = $Module::moduleNameByClassname(get_class($this->_Model));\n\t\t\t\t$templateNames[] = \\Finder::joinPath($modName, \\Finder::classToPath($a));\n\t\t\t\t$b = $Module::moduleNameByClassname(get_class($this->_Module));\n\t\t\t\t$templateNames[] = \\Finder::joinPath($modName, \\Finder::classToPath($b));\n\t\t\t}\n\n\t\t\t$extension = '.html.mustache';\n\n\t\t\t// for debug\n\t\t\t//echop($templateFolders); echop($templateNames); die;\n\n\t\t\t$templatePath = \\Finder::fileByFolders($templateFolders, $templateNames, $extension);\n\n\t\t}\n\n\t\treturn $templatePath;\n\n\t}", "public function HasTemplate() {\r\n return true;\r\n }", "public function findTemplate($template_name) {\n $test_path = $this->wp_theme_root . 'templates/' . $template_name;\n if ( file_exists( $test_path ) ) {\n return $test_path;\n } else {\n $test_path = $this->path. 'templates/' . $template_name;\n if ( file_exists($test_path) ) {\n return $test_path;\n } else {\n throw new Exception( __('Core Template was not found: ') . ' ' . $template_name );\n }\n }\n }", "public function findTemplate($template_name) {\n $test_path = $this->wp_theme_root . 'templates/' . $template_name;\n if ( file_exists( $test_path ) ) {\n return $test_path;\n } else {\n $test_path = $this->path. 'templates/' . $template_name;\n if ( file_exists($test_path) ) {\n return $test_path;\n } else {\n throw new Exception( __('Core Template was not found: ') . ' ' . $template_name );\n }\n }\n }", "private function check_cache()\n\t{\n\t\t$cache_file = Kohana::config($this->type.'.cache_folder').'/'.md5($this->file).EXT;\n\t\t$this->skip = FALSE;\n\t\t\n\t\tif (is_file($cache_file))\n\t\t{\n\t\t\t// touch file. helps determine if template was modified\n\t\t\ttouch($cache_file);\n\t\t\t// check if template has been mofilemtime($cache_file)dified and is newer than cache\n\t\t\t// allow $cache_time difference\n\t\t\tif ((filemtime($this->file)) > (filemtime($cache_file)+$this->cache_time))\n\t\t\t\t$this->skip = TRUE;\n\t\t}\n\t\t\n\t\treturn $cache_file;\n\t}", "function run()\n{\n include config('template_path').'/template.php';\n}", "public function accept()\n {\n if ($this->getInnerIterator()->isDir() == false) {\n return false;\n }\n preg_match('/\\/?([^\\\\\\\\\\/]+)$/', $this->getInnerIterator()->getPathname(), $match); //Find the view handle\n\n return (is_file(sprintf('%s/%s.config.xml', $this->getInnerIterator()->getPathname(), $match[1])));\n }", "function cs_subtemplate_exists($mod, $action)\r\n{\r\n global $cs_main;\r\n\r\n $cs_main['def_theme'] = empty($cs_main['def_theme']) ? 'base' : $cs_main['def_theme'];\r\n\r\n $target = 'themes/' . $cs_main['def_theme'] . '/' . $mod . '/' . $action . '.tpl';\r\n if ($cs_main['def_theme'] != 'base' and !file_exists($target))\r\n {\r\n $target = 'themes/base/' . $mod . '/' . $action . '.tpl';\r\n }\r\n if (!file_exists($target))\r\n {\r\n return false;\r\n }\r\n return true;\r\n}", "function get_template_path($template)\n {\n\t\t// the current module\n $pnmodgetname = pnModGetName();\n\n // get the module path to templates\n $module = $this->module;\n $modinfo = pnModGetInfo(pnModGetIDFromName($module));\n\n // get the theme path to templates\n $theme = pnUserGetTheme();\n\n // prepare the values for OS\n $os_pnmodgetname = pnVarPrepForOS($pnmodgetname);\n $os_module = pnVarPrepForOS($module);\n $os_modpath = pnVarPrepForOS($modinfo['directory']);\n $os_theme = pnVarPrepForOS($theme);\n\n // Define the locations in which we will look for templates\n // (in this order)\n\t\t// Note: Paths 1, 3, 5 - This allows for the hook or block functions\n // (such as ratings and comments) to use different templates depending\n // on the top level module. e.g. the comments dialog can be different\n // for news and polls...\n // They are only evaluated when the calling module is not the current one.\n //\n\t\t// 1. The top level module directory in the requested module folder\n\t\t// in the theme directory.\n\t\t$themehookpath = \"themes/$theme/templates/modules/$module/$pnmodgetname\";\n\t\t// 2. The module directory in the current theme.\n $themepath = \"themes/$theme/templates/modules/$module\";\n\t\t// 3. The top level module directory in the requested module folder\n\t\t// in the modules sub folder.\n\t\t$modhookpath = \"modules/$modinfo[directory]/pntemplates/$pnmodgetname\";\n\t\t// 4. The module directory in the modules sub folder.\n $modpath = \"modules/$modinfo[directory]/pntemplates\";\n\t\t// 5. The top level module directory in the requested module folder\n\t\t// in the system sub folder.\n $syshookpath = \"system/$modinfo[directory]/pntemplates/$pnmodgetname\";\n\t\t// 6. The module directory in the system sub folder.\n $syspath = \"system/$modinfo[directory]/pntemplates\";\n\n $ostemplate = pnVarPrepForOS($template); //.'.htm';\n\n // check the module for which we're looking for a template is the\n\t\t// same as the top level mods. This limits the places to look for\n\t\t// templates.\n\t\tif ($module == $pnmodgetname) {\n $search_path = array($themepath,\n $modpath,\n $syspath);\n\t\t} else {\n $search_path = array($themehookpath,\n $themepath,\n $modhookpath,\n $modpath,\n $syshookpath,\n $syspath);\n\t\t}\n\n\t foreach ($search_path as $path) {\n if (file_exists(\"$path/$ostemplate\") && is_readable(\"$path/$ostemplate\")) {\n\t \t return $path;\n \t\t}\n }\n\n // when we arrive here, no path was found\n return false;\n }", "function mm_template_chooser( $template ) {\n global $wp_query;\n $post_type = get_query_var('post_type');\n if ( $wp_query->is_search && $post_type == 'photos' ) {\n return locate_template('search-photos.php');\n } elseif ( is_tax( 'albums' ) || is_tax( 'keywords' ) ) {\n $template = get_query_template( 'archive-photos' );\n }\n return $template;\n}", "function bp_gtm_load_template_filter($found_template, $templates) {\n global $bp;\n\n if ($bp->current_action == $bp->gtm->slug || $bp->current_component == $bp->gtm->slug) {\n foreach ((array) $templates as $template) {\n $path = is_child_theme() ? TEMPLATEPATH : STYLESHEETPATH; // different path to themes files\n if (file_exists($path . '/' . $template)) {\n $filtered_templates[] = $path . '/' . $template;\n } else if (file_exists(STYLESHEETPATH . '/gtm/' . $template)) {\n $filtered_templates[] = STYLESHEETPATH . '/gtm/' . $template;\n } else {\n if (($position = strpos($template, '/')) !== false)\n $template = substr($template, $position + 1);\n $filtered_templates[] = plugin_dir_path(__FILE__) . 'templates/gtm/' . $template;\n }\n }\n $found_template = $filtered_templates[0];\n\n return apply_filters('bp_gtm_load_template_filter', $found_template);\n } else {\n return $found_template;\n }\n}", "public function getTemplate ($template) {\n $temps = $this->getTemplates();\n foreach ($temps as $temp) {\n if ($temp['module_name'] == $template) {\n return $temp;\n }\n }\n return false;\n }", "protected function template_dir() {\n\n return $this->option( 'template_dir' );\n\n }", "public function isTemplateInProfile ($template) {\n foreach ($this->profileTemplates as $val){\n if ($val['module_name'] == $template){\n return true;\n }\n }\n return false; \n }", "function horsaw_config( $name ) {\n\t$name = explode( '.', $name );\n\n\t$config_file_path = get_template_directory() . '/config/' . $name[0] . '.php';\n\t$config_contents = require $config_file_path;\n\n\tif ( ! isset( $config_contents[ $name[1] ] ) ) {\n\t\treturn false;\n\t}\n\n\treturn $config_contents[ $name[1] ];\n}", "function bok_get_templates_dir() {\n\treturn plugin_dir_path( __FILE__ ) . '..' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR;\n}", "public function exists($template)\n {\n return $this->plates->exists($template);\n }", "function checkTemplatePage()\t{\n\t\t\n\t\t// Get the record\n\t\t$template = t3lib_BEfunc::getRecord('pages', $this->templateUid);\n\n\t\tif($template['doktype'] != '71') {\n\t\t\treturn false;\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function testTemplateFinder()\n {\n $finder = $this->stub->templateFinder();\n\n $this->assertInstanceOf('Antares\\UI\\UIComponents\\TemplateFinder', $finder);\n }", "function cmdeals_get_template($template_name, $require_once = true) {\n\tglobal $cmdeals;\n\tif (file_exists( STYLESHEETPATH . '/' . WPDEALS_TEMPLATE_URL . $template_name )) load_template( STYLESHEETPATH . '/' . WPDEALS_TEMPLATE_URL . $template_name, $require_once ); \n\telseif (file_exists( STYLESHEETPATH . '/' . $template_name )) load_template( STYLESHEETPATH . '/' . $template_name , $require_once); \n\telse load_template( $cmdeals->plugin_path() . '/cmdeals-templates/' . $template_name , $require_once);\n}", "public function getTemplatesPath()\n {\n $options = Config::inst()->get('FAQSearchIndex', 'options');\n\n $globalOptions = Solr::solr_options();\n if (isset($options['templatespath']) && file_exists($options['templatespath'])) {\n $globalOptions['templatespath'] = $options['templatespath'];\n }\n return $this->templatesPath ? $this->templatesPath : $globalOptions['templatespath'];\n }", "public static function templateDir() {\n\t\t\n\t\treturn __DIR__ . '/templates';\n\t}", "public function testFindGlobalTemplates()\n {\n\n }", "public function test_invalid_component_get_template_filepath() {\n mustache_template_finder::get_template_filepath('core/octopus', 'classic');\n }", "public function config_path();", "private function prepareImageList() {\n\t\t\tforeach(scandir($this->templateDirectory) as $templateFileName) {\n\t\t\t\tif((strcmp($templateFileName, \".\") !== 0) && (strcmp($templateFileName, \"..\") !== 0)) {\n\t\t\t\t\t$this->imageList->addItem(new Image($this->templateDirectory, $templateFileName), $templateFileName);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function locate_template( $template, $template_name, $template_path ){\r\n\r\n\t\tswitch( $template_name ){\r\n\r\n\t\t\tcase 'form-fields/term-checklist-field.php':\r\n\t\t\t\twp_enqueue_script( 'jmfe-term-checklist-field' );\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tif( file_exists( WPJM_FIELD_EDITOR_PLUGIN_DIR . '/templates/' . $template_name ) ){\r\n\t\t\t\t\t$template = WPJM_FIELD_EDITOR_PLUGIN_DIR . '/templates/' . $template_name;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn $template;\r\n\t}", "public static function exists(string $template) : bool\n {\n return file_exists(self::templatePath($template));\n }", "public function readCollectionOfPossibleTemplatesToBeInstalledFromFileSystem(){\n\t\t$rootTemplateFoldersToBeMapped = array();\n\t\t$rootTemplateFoldersToBeMapped = $this->searchFolderForTemplatesToBeMapped($this->absoluteRootTemplatesBasePath);\n\t\t//Get all Extension Templates below Root Folders\n\t\t$templateFoldersToBeMapped = array();\n\t\tforeach($rootTemplateFoldersToBeMapped as $rootTemplateFolder) {\n\t\t\t$extensionTempateFoldersToBeMappedFromThisRootTemplate = $this->searchFolderForTemplatesToBeMapped($this->absoluteRootTemplatesBasePath . $rootTemplateFolder . '/' . $this->subFolderNameForExtensionTemplateStructure . '/');\n\n\t\t\tforeach($extensionTempateFoldersToBeMappedFromThisRootTemplate as $extensionTempateFoldersToBeMappedFromThisRootTemplate) {\n\t\t\t\t$templateFoldersToBeMapped[] = $rootTemplateFolder . '/' . $this->subFolderNameForExtensionTemplateStructure . '/' . $extensionTempateFoldersToBeMappedFromThisRootTemplate;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//merge extension and root template folders\n\t\t$templateFoldersToBeMapped = array_merge(\n\t\t\t$rootTemplateFoldersToBeMapped, \n\t\t\t$templateFoldersToBeMapped\n\t\t);\n\t\t\n\t\treturn $templateFoldersToBeMapped;\n\t}", "function test_temp_dir() \n{\n\tglobal $config;\n\n\treturn is_writable($config['temp_dir']);\n}", "public function hasIndexDirectoryPath();", "public function testTemplateFileNotExists1()\n {\n $tpl = $this->smarty->createTemplate('notthere.tpl');\n $this->assertFalse($tpl->source->exists);\n }", "protected function _checkTemplatePath($template, $module)\n {\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'create path for required templates',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n if ($this->_defaultOptions['independent']) {\n return $template;\n }\n\n if ($module === 'core') {\n $path = \"elements/layouts/$template.html\";\n } else {\n $path = \"modules/$module/layouts/$template.html\";\n }\n\n return $path;\n }", "function my_single_template($single) {\n global $wp_query, $post;\n\n /**\n * Checks for single template by category\n * Check by category slug and ID\n */\n foreach((array)get_the_category() as $cat) :\n\n if(file_exists(TEMPLATEPATH . '/single-' . $cat->slug . '.php'))\n return TEMPLATEPATH . '/single-' . $cat->slug . '.php';\n\n endforeach;\n\n return $single;\n\n}", "public function locatedTemplate() {\r\n wp_enqueue_script(\r\n 'mvvwb-gallery',\r\n MVVWB_GALLERY_TEMPLATE_BASE . 'index.js',\r\n [],\r\n MVVWB_GALLERY_TEMPLATE_VERSION\r\n );\r\n\r\n foogallery_enqueue_style(\r\n 'mvvwb-gallery',\r\n MVVWB_GALLERY_TEMPLATE_BASE . 'style.css',\r\n [],\r\n MVVWB_GALLERY_TEMPLATE_VERSION\r\n );\r\n }", "public function getTemplatePath()\n {\n return $this->getSettingArray()[\"template_path\"];\n }", "function scanPmanTemplates()\n {\n $tp = DB_DAtaObject::Factory('core_template');\n \n foreach ($this->modules() as $m){\n //var_dump($m);\n // templates...\n $ar = $this->scanDir(array(\n 'tdir' => \"Pman/$m/templates\",\n 'subdir' => '',\n 'match' => '/\\.(html|txt|abw)$/',\n 'skipdir' => array('images','css','js'),\n \n ));\n // print_r($ar);\n \n foreach($ar as $pg) {\n \n $temp = $tp->syncTemplatePage(array(\n 'base' =>'Pman.'.$m, \n 'template_dir' => \"Pman/$m/templates\",\n 'template' => $pg\n ));\n if ($temp) {\n $ids[] = $temp->id;\n }\n }\n // should clean up old templates..\n // php files..\n $ar = $this->scanDir(array(\n 'tdir' => \"Pman/$m\",\n 'subdir' => '',\n 'match' => '/\\.(php)$/',\n 'skipdir' => array('templates'),\n \n ));\n \n \n foreach($ar as $pg) {\n \n $temp = $tp->syncPhpGetText(array(\n 'base' =>'Pman.'.$m, \n 'template_dir' => \"Pman/$m\",\n 'template' => $pg\n ));\n if ($temp) {\n $ids[] = $temp->id;\n }\n \n }\n \n \n \n \n \n //$tp->syncTemplatePage($pg);\n }\n $del = DB_DataObject::factory('core_template');\n $del->whereAddIn('!id', $ids, 'int');\n $del->whereAddIn('view_name', $this->modules(), 'string');\n $del->whereAddIn('filetype' , array( 'php', 'html' ), 'string');\n $delids = $del->fetchAll('id');\n if ($delids) {\n DB_DataObject::factory('core_template')->query(\n 'update core_template set is_deleted = 1 where id in('. implode(',', $delids). ')'\n );\n }\n \n }", "function cmdeals_template_loader( $template ) {\n\tglobal $cmdeals;\n\t\n\tif ( is_single() && get_post_type() == 'daily-deals' ) {\n\t\t\n\t\t$template = locate_template( array( 'single-daily-deals.php', WPDEALS_TEMPLATE_URL . 'single-daily-deals.php' ) );\n\t\t\n\t\tif ( ! $template ) $template = $cmdeals->plugin_path() . '/cmdeals-templates/single-daily-deals.php';\n\t\t\n\t}\n\telseif ( is_tax('deal-categories') ) {\n\t\t\n\t\t$template = locate_template( array( 'taxonomy-deal-categories.php', WPDEALS_TEMPLATE_URL . 'taxonomy-deal-categories.php' ) );\n\t\t\n\t\tif ( ! $template ) $template = $cmdeals->plugin_path() . '/cmdeals-templates/taxonomy-deal-categories.php';\n\t}\n\telseif ( is_tax('deal-tags') ) {\n\t\t\n\t\t$template = locate_template( array( 'taxonomy-deal-tags.php', WPDEALS_TEMPLATE_URL . 'taxonomy-deal-tags.php' ) );\n\t\t\n\t\tif ( ! $template ) $template = $cmdeals->plugin_path() . '/cmdeals-templates/taxonomy-deal-tags.php';\n\t}\n\telseif ( is_post_type_archive('daily-deals') || is_page( get_option('cmdeals_store_page_id') )) {\n\n\t\t$template = locate_template( array( 'archive-daily-deals.php', WPDEALS_TEMPLATE_URL . 'archive-daily-deals.php' ) );\n\t\t\n\t\tif ( ! $template ) $template = $cmdeals->plugin_path() . '/cmdeals-templates/archive-daily-deals.php';\n\t\t\n\t}\n elseif ( is_page( get_option('cmdeals_featured_page_id') ) ) {\n\t\t\n\t\t$template = locate_template( array( 'featured-store.php', WPDEALS_TEMPLATE_URL . 'featured-store.php' ) );\n\t\t\n\t\tif ( ! $template ) $template = $cmdeals->plugin_path() . '/cmdeals-templates/featured-store.php';\n \n\t\t\n\t}\n\t\n\treturn $template;\n\n}", "function deals_get_template($template_name, $require_once = true) {\n\tif (file_exists( STYLESHEETPATH . '/' . DEALS_TEMPLATE . $template_name )) load_template( STYLESHEETPATH . '/' . DEALS_TEMPLATE . $template_name, $require_once ); \n\telseif (file_exists( STYLESHEETPATH . '/' . $template_name )) load_template( STYLESHEETPATH . '/' . $template_name , $require_once); \n\telse load_template( DEALS_TEMPLATE_DIR . $template_name , $require_once);\n}", "public function getCompiledFilepath($_template)\n {\n // no filepath for PHP templates\n return false;\n }", "public static function TemplateFolder()\n {\n return dirname(dirname(__DIR__)).DIRECTORY_SEPARATOR.Configuration::getApplicationFolder().DIRECTORY_SEPARATOR.'Template';\n }", "protected function setTemplatePaths() {}", "function youpzt_store_load_template($template_path){\n if (is_page('shop')) {\n return $template_path = UPSTORE_PLUGIN_DIR.'/templates/shop.php';\n }elseif (is_page('youpzt-store')) {\n return $template_path = UPSTORE_PLUGIN_DIR.'/templates/youpzt-store.php';\n }elseif (is_single()&&get_post_type()=='product') {\n return $template_path = UPSTORE_PLUGIN_DIR.'/templates/single-product.php';\n }else{\n return $template_path; \n }\n}", "public static function get_templates_path()\n {\n return plugin_dir_path(__FILE__) . '../../templates/';\n }", "function existsItemStrict ($name, $type) {\n\t\tif (array_key_exists ('/'.$type.$name, $this->allConfigItems) or\n\t\t\tarray_key_exists ('/'.$type.$name, $this->allUserItems)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function config_item($index)\n{\n\tglobal $config;\n\treturn isset($config[$index])? $config[$index] : false;\n}", "function fn_te_check_path($path)\n{\n $path = fn_normalize_path($path);\n $dir_themes = fn_get_theme_path('[themes]/', 'C');\n\n return strpos($path, $dir_themes) === 0;\n}", "public function getTemplateSource($_template)\n {\n if (file_exists($_template->getTemplateFilepath())) {\n $_template->template_source = file_get_contents($_template->getTemplateFilepath());\n return true;\n } else {\n return false;\n }\n }", "public function checkIfEssentialConfigurationExists() {}", "public function hasConfig($package);", "public function valid_template_filepath_provider(): array {\n return [\n 'Standard core template' => [\n 'template' => 'core/modal',\n 'theme' => '',\n 'location' => 'lib/templates/modal.mustache',\n ],\n 'Template overridden by theme' => [\n 'template' => 'core_form/element-float-inline',\n 'theme' => '',\n 'location' => 'theme/boost/templates/core_form/element-float-inline.mustache',\n ],\n 'Template overridden by theme but child theme selected' => [\n 'template' => 'core_form/element-float-inline',\n 'theme' => 'classic',\n 'location' => 'theme/boost/templates/core_form/element-float-inline.mustache',\n ],\n 'Template overridden by child theme' => [\n 'template' => 'core/full_header',\n 'theme' => 'classic',\n 'location' => 'theme/classic/templates/core/full_header.mustache',\n ],\n 'Template overridden by child theme but tested against defualt theme' => [\n 'template' => 'core/full_header',\n 'theme' => '',\n 'location' => 'lib/templates/full_header.mustache',\n ],\n 'Standard plugin template' => [\n 'template' => 'mod_assign/grading_panel',\n 'theme' => '',\n 'location' => 'mod/assign/templates/grading_panel.mustache',\n ],\n 'Subsystem template' => [\n 'template' => 'core_user/status_details',\n 'theme' => '',\n 'location' => 'user/templates/status_details.mustache',\n ],\n 'Theme own template' => [\n 'template' => 'theme_classic/columns',\n 'theme' => '',\n 'location' => 'theme/classic/templates/columns.mustache',\n ],\n 'Theme overridden template against that theme' => [\n 'template' => 'theme_classic/navbar',\n 'theme' => 'classic',\n 'location' => 'theme/classic/templates/navbar.mustache',\n ],\n // Note: This one looks strange but is correct. It is legitimate to request theme's component template in\n // the context of another theme. For example, this is used by child themes making use of parent theme\n // templates.\n 'Theme overridden template against the default theme' => [\n 'template' => 'theme_classic/navbar',\n 'theme' => '',\n 'location' => 'theme/classic/templates/navbar.mustache',\n ],\n ];\n }", "function templates_path()\n {\n $paths = getPaths();\n\n return $paths['templates'];\n }", "public function testConfigExists() {\n if (isset($this->app->config) && sizeof($this->app->config) > 0) {\n $this->pass(\"The configuration file has been loaded.\");\n }\n else {\n $this->fail(\"The configuration file was not loaded or is empty.\");\n }\n }", "protected function isPageTemplate(): bool {\n return (\n $this->layout === 'single' || \n $this->layout === 'archive'\n );\n }", "public function checkConfig();", "public function view_project_template( $template ) {\n\n global $post;\n\n if ( !isset( $post ) ) return $template;\n\n if ( ! isset( $this->templates[ get_post_meta( $post->ID, '_wp_page_template', true ) ] ) ) {\n return $template;\n } // end if\n\n $template_loader = new Uou_Atmf_Load_Template();\n\n if( is_page_template( 'atmf-search.php' ) ){\n $file = $template_loader->locate_template( 'atmf-search.php' );\n }\n\n\n // $file = plugin_dir_path( __FILE__ ) . 'templates/' . get_post_meta( $post->ID, '_wp_page_template', true );\n\n if( file_exists( $file ) ) {\n return $file;\n } // end if\n\n return $template;\n\n }" ]
[ "0.60045975", "0.5990606", "0.58582795", "0.5849739", "0.5643575", "0.5642613", "0.55691415", "0.5552786", "0.55412686", "0.5503013", "0.54554456", "0.54395413", "0.5438118", "0.54147214", "0.539594", "0.53264266", "0.5316579", "0.5316362", "0.5307759", "0.53022546", "0.5289297", "0.52891916", "0.52688247", "0.52628046", "0.5254114", "0.5242032", "0.5238338", "0.52347714", "0.5224418", "0.5212917", "0.5207372", "0.52061665", "0.5182093", "0.5179234", "0.5177513", "0.517724", "0.5163647", "0.51628923", "0.51551956", "0.51427686", "0.51414806", "0.5122607", "0.51177156", "0.51164746", "0.5093739", "0.50846636", "0.50731647", "0.5063043", "0.5063043", "0.5058822", "0.5053231", "0.50452155", "0.50442916", "0.5025219", "0.50222886", "0.501781", "0.5011808", "0.5004351", "0.5002761", "0.49801457", "0.49789703", "0.49748528", "0.49664685", "0.49654958", "0.49384263", "0.49383104", "0.49371535", "0.49325463", "0.4930203", "0.49284554", "0.49217555", "0.49194577", "0.49147025", "0.491159", "0.49096704", "0.49005502", "0.48918617", "0.4886593", "0.4877767", "0.48759848", "0.48740777", "0.4870492", "0.48670045", "0.48647496", "0.48583746", "0.48547643", "0.48531824", "0.48416182", "0.48306224", "0.4828276", "0.4825356", "0.48245728", "0.48200366", "0.48149475", "0.4813782", "0.48019263", "0.4798207", "0.4795153", "0.47902775", "0.47901368", "0.47799346" ]
0.0
-1
Find a particular template file and return its path
protected function getTemplatePath($strTemplate, $strFormat='html5', $blnDefault=false) { if ($blnDefault) { return TemplateLoader::getDefaultPath($strTemplate, $strFormat); } return static::getTemplate($strTemplate, $strFormat); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplatePathAndFilename() {}", "protected function getTemplatePathAndFilename() {}", "public function getTemplateFile();", "public function findTemplate($template) {\n if (isset($this->_cache[$template])) {\n return $this->_cache[$template];\n }\n\n $templatePath = '';\n\n try {\n $templatePath = $this->_finder->find($template, 'views');\n } catch (InvalidArgumentException $e) {\n // might be already a resolved path\n if (file_exists($template)) {\n $templatePath = $template;\n } else {\n throw $e;\n }\n } catch (ResourceNotFoundException $e) {\n try {\n $templatePath = parent::findTemplate($template);\n } catch(\\Twig_Error_Loader $twigError) {\n throw new ResourceNotFoundException('Could not find template \"'. $template .'\". (Twig: '. $twigError->getMessage() .')', 404, $e);\n }\n }\n\n $this->_cache[$template] = $templatePath;\n return $templatePath;\n }", "public function findTemplate() {\n\n\t\t$templatePath = $this->_template;\n\n\t\tif (empty($templatePath)) {\n\n\t\t\t$templateFolders = array();\n\n\t\t\tif (strlen($tmp = $this->_Model->templatePath)) {\n\t\t\t\t$templateFolders[] = \\Finder::joinPath(APP_ROOT, $tmp);\n\t\t\t}\n\t\t\t// bubble up for template path\n\t\t\telseif (strlen($tmp = $this->_Model->getBubbler()->templatePath)) {\n\t\t\t\t$templateFolders[] = \\Finder::joinPath(APP_ROOT, $tmp);\n\t\t\t}\n\t\t\t// I should add the root page model's template path if exists\n\t\t\t$templateFolders[] = NINJA_ROOT . '/src/ninja/Mod/' . $this->_Module->getModName() . '/template';\n\n\t\t\t$templateFolders = array_unique($templateFolders);\n\n\t\t\t$templateNames = array();\n\t\t\t// I respect what's set in the model, and it should not be invalid\n\t\t\tif (strlen($templateName = $this->_Model->template)) {\n\t\t\t\t$templateNames[]= $templateName;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$Module = $this->_Module;\n\t\t\t\t$modName = $Module->getModName();\n\n\t\t\t\t$a = $Module::moduleNameByClassname(get_class($this->_Model));\n\t\t\t\t$templateNames[] = \\Finder::joinPath($modName, \\Finder::classToPath($a));\n\t\t\t\t$b = $Module::moduleNameByClassname(get_class($this->_Module));\n\t\t\t\t$templateNames[] = \\Finder::joinPath($modName, \\Finder::classToPath($b));\n\t\t\t}\n\n\t\t\t$extension = '.html.mustache';\n\n\t\t\t// for debug\n\t\t\t//echop($templateFolders); echop($templateNames); die;\n\n\t\t\t$templatePath = \\Finder::fileByFolders($templateFolders, $templateNames, $extension);\n\n\t\t}\n\n\t\treturn $templatePath;\n\n\t}", "public function findFile($path)\n\t{\n\t $template = KFactory::get('lib.joomla.application')->getTemplate();\n $override = JPATH_THEMES.'/'.$template.'/html';\n\t $override .= str_replace(array(JPATH_BASE.'/components', '/views'), '', $path);\n\t \n\t //Try to load the template override\n\t $result = parent::findFile($override);\n\t \n\t if($result === false) \n\t {\n\t //If the path doesn't contain the /tmpl/ folder add it\n\t if(strpos($path, '/tmpl/') === false) {\n\t $path = dirname($path).'/tmpl/'.basename($path);\n\t }\n\t \n\t $result = parent::findFile($path);\n\t } \n\t \n\t return $result;\n\t}", "abstract public function getTemplateFile();", "public function findTemplate($template_name) {\n $test_path = $this->wp_theme_root . 'templates/' . $template_name;\n if ( file_exists( $test_path ) ) {\n return $test_path;\n } else {\n $test_path = $this->path. 'templates/' . $template_name;\n if ( file_exists($test_path) ) {\n return $test_path;\n } else {\n throw new Exception( __('Core Template was not found: ') . ' ' . $template_name );\n }\n }\n }", "public function findTemplate($template_name) {\n $test_path = $this->wp_theme_root . 'templates/' . $template_name;\n if ( file_exists( $test_path ) ) {\n return $test_path;\n } else {\n $test_path = $this->path. 'templates/' . $template_name;\n if ( file_exists($test_path) ) {\n return $test_path;\n } else {\n throw new Exception( __('Core Template was not found: ') . ' ' . $template_name );\n }\n }\n }", "public static function findFile($path)\n {\n if (file_exists($path)) {\n return $path;\n } else if (file_exists(Settings::get(\"TEMPLATE_DIR\") . \"/\" . $path)) {\n return Settings::get(\"TEMPLATE_DIR\") . \"/\" . $path;\n } else {\n throw new Exception(\"Il file $path non puo essere trovato\");\n }\n }", "public function findTemplate(){\n if($this->hasErrors()) return false;\n $located = false;\n if(!$this->hasErrors()){\n $module_file = trailingslashit($this->location).$this->type.'.php';\n $file = trailingslashit($this->module).trailingslashit($this->location).$this->type.'.php';\n switch(true){\n //Check Stylesheet directory first (Child Theme)\n case file_exists(trailingslashit(get_stylesheet_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file):\n $located = trailingslashit(get_stylesheet_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file;\n break;\n //Check Template directory Second (Parent Theme)\n case file_exists(trailingslashit(get_template_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file):\n $located = trailingslashit(get_template_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file;\n break;\n //Check filtered custom template directory, if it's set.\n case (apply_filters($this->prefix('custom_template_directory_root'), '', $this) !== '' && file_exists(trailingslashit(apply_filters($this->prefix('custom_template_directory_root'), '', $this)).$file)):\n $located = trailingslashit($this->prefix('custom_template_directory_root')).$file;\n break;\n //If nothing else exists, go ahead and get the default\n default:\n $file = trailingslashit(ModuleLoader::getModuleDir($this->module)).$module_file;\n if($this->fileExists($file)) $located = $file;\n break;\n }\n }\n\n return $located;\n }", "function get_template($template){\n\n\t\t\t$login_arr = $this->action_parser($this->action,'template') ;\n\n\t\t\t$pos = array_search($template, $login_arr['template']['name']); \n\n\t\t\treturn $login_arr['template']['path'][$pos];\n\n\t\t}", "function getTemplate($fileName) {\n\n $file = file_get_contents($fileName);\n\n if ($file) {\n\n return $file;\n }\n else {\n echo (\"File not found: \" . $fileName);\n }\n}", "function getTemplate($fileName)\n{\n // variable $file equals $fileName\n // $fileName is given value when function is called getTemplate(page1_template.html)\n // file_get_contents = reads entire file into a string\n $file = file_get_contents($fileName);\n // IF we point to the file\n if($file ) {\n // returns the contents of the file.\n return $file;\n }\n // ELSE (the file is not pointing to the correct place)\n else {\n // print the message \"File not found\" and exit the script ( die() ).\n die(\"File not found\");\n }\n\n}", "function rf_locate_template( $template_name, $template_path = '', $default_path = '' )\n{\n if ( ! $template_path ) {\n $template_path = RFFramework()->template_path();\n }\n\n if ( ! $default_path ) {\n $default_path = RFFramework()->path();\n }\n\n // Locate the template within the template structure\n $template = locate_template(\n array(\n trailingslashit( $template_path ) . $template_name\n )\n );\n\n if ( ! $template ) {\n $template = trailingslashit( $default_path ) . $template_name;\n }\n return $template;\n}", "function templates_path()\n {\n $paths = getPaths();\n\n return $paths['templates'];\n }", "public function getTemplateFilePath() {\n\t}", "public function path()\n {\n try {\n return ($this->engine->getResolveTemplatePath())($this->name);\n } catch (TemplateNotFound $e) {\n return $e->paths()[0];\n }\n }", "function ffd_locate_template( $template_name, $template_path = '', $default_path = '' ) {\r\n\tif ( ! $template_path ) {\r\n\t\t$template_path = FFD()->template_path();\r\n\t}\r\n\r\n\tif ( ! $default_path ) {\r\n\t\t$default_path = FFD()->plugin_path() . '/templates/';\r\n\t}\r\n\r\n\t// Look within passed path within the theme - this is priority.\r\n\t$template = locate_template(\r\n\t\tarray(\r\n\t\t\ttrailingslashit( $template_path ) . $template_name,\r\n\t\t\t$template_name,\r\n\t\t)\r\n\t);\r\n\r\n\t// Get default template/.\r\n\tif ( ! $template || FFD_TEMPLATE_DEBUG_MODE ) {\r\n\t\t$template = $default_path . $template_name;\r\n\t}\r\n\r\n\t// Return what we found.\r\n\treturn apply_filters( 'ffd_locate_template', $template, $template_name, $template_path );\r\n}", "function st_get_template($file,$data = array()){\r $file = ST_DIR.'/templates/'.$file;\r if(file_exists($file)){\r include($file); return true;\r }\r return false;\r}", "private function findTemplatePath($template, $throw_exception = true)\n {\n assert('is_string($template)');\n\n list($templateModule, $templateName) = $this->findModuleAndTemplateName($template);\n $templateModule = ($templateModule !== null) ? $templateModule : 'default';\n\n // first check the current theme\n if ($this->theme['module'] !== null) {\n // .../module/<themeModule>/themes/<themeName>/<templateModule>/<templateName>\n\n $filename = \\SimpleSAML\\Module::getModuleDir($this->theme['module']).\n '/themes/'.$this->theme['name'].'/'.$templateModule.'/'.$templateName;\n } elseif ($templateModule !== 'default') {\n // .../module/<templateModule>/templates/<templateName>\n $filename = \\SimpleSAML\\Module::getModuleDir($templateModule).'/templates/'.$templateName;\n } else {\n // .../templates/<theme>/<templateName>\n $filename = $this->configuration->getPathValue('templatedir', 'templates/').$templateName;\n }\n\n if (file_exists($filename)) {\n return $filename;\n }\n\n // not found in current theme\n \\SimpleSAML\\Logger::debug(\n $_SERVER['PHP_SELF'].' - Template: Could not find template file ['.$template.'] at ['.\n $filename.'] - now trying the base template'\n );\n\n // try default theme\n if ($templateModule !== 'default') {\n // .../module/<templateModule>/templates/<templateName>\n $filename = \\SimpleSAML\\Module::getModuleDir($templateModule).'/templates/'.$templateName;\n } else {\n // .../templates/<templateName>\n $filename = $this->configuration->getPathValue('templatedir', 'templates/').'/'.$templateName;\n }\n\n if (file_exists($filename)) {\n return $filename;\n }\n\n // not found in default template\n if ($throw_exception) {\n // log error and throw exception\n $error = 'Template: Could not find template file ['.$template.'] at ['.$filename.']';\n \\SimpleSAML\\Logger::critical($_SERVER['PHP_SELF'].' - '.$error);\n\n throw new Exception($error);\n } else {\n // missing template expected, return NULL\n return null;\n }\n }", "public function fullPath(){\n if ( strpos( $this->template, DIRECTORY_SEPARATOR ) === 0 ) {\n return $this->template . '.php';\n } else {\n return $this->path . DIRECTORY_SEPARATOR . $this->template . '.php';\n }\n }", "private function locate_template( $name ) {\n\t\t$file = plugin_dir_path( $this->plugin->file ) . 'templates/' . $name . '.php';\n\n\t\tif ( is_readable( $file ) ) {\n\t\t\treturn $file;\n\t\t}\n\t}", "function get_template($template)\n {\n $login_arr = $this->action_parser($this->action, 'template');\n $pos = array_search($template, $login_arr['template']['name']);\n return $login_arr['template']['path'][$pos];\n }", "function carton_locate_template( $template_name, $template_path = '', $default_path = '' ) {\n\tglobal $carton;\n\n\tif ( ! $template_path ) $template_path = $carton->template_url;\n\tif ( ! $default_path ) $default_path = $carton->plugin_path() . '/templates/';\n\n\t// Look within passed path within the theme - this is priority\n\t$template = locate_template(\n\t\tarray(\n\t\t\ttrailingslashit( $template_path ) . $template_name,\n\t\t\t$template_name\n\t\t)\n\t);\n\n\t// Get default template\n\tif ( ! $template )\n\t\t$template = $default_path . $template_name;\n\n\t// Return what we found\n\treturn apply_filters('carton_locate_template', $template, $template_name, $template_path);\n}", "function get_template($template)\n {\n\n $login_arr = $this->action_parser($this->action, 'template');\n\n $pos = array_search($template, $login_arr['template']['name']);\n\n return $login_arr['template']['path'][$pos];\n }", "public function getTemplateFile()\r\n {\r\n $templateRootPath = $this->getTemplateRootPath();\r\n\r\n // Returns the template file in the template root path if it exists\r\n $templateFile = $templateRootPath . '/' . $this->templateFile;\r\n if (@is_file(Environment::getPublicPath() . '/' . $templateFile) === true) {\r\n return $templateFile;\r\n } else {\r\n // Returns the file in the default template root path\r\n $defaultTemplateRootPath = $this->getDefaultTemplateRootPath();\r\n $templateFile = $defaultTemplateRootPath . '/' . $this->templateFile;\r\n if (@is_file(Environment::getPublicPath() . '/' . $templateFile) === true) {\r\n return $templateFile;\r\n } else {\r\n throw new Exception('The file \"' . htmlspecialchars(Environment::getPublicPath() . '/' . $templateFile) . '\" does not exist');\r\n }\r\n }\r\n }", "function locate_template( $template, $template_name, $template_path ){\r\n\r\n\t\tswitch( $template_name ){\r\n\r\n\t\t\tcase 'form-fields/term-checklist-field.php':\r\n\t\t\t\twp_enqueue_script( 'jmfe-term-checklist-field' );\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tif( file_exists( WPJM_FIELD_EDITOR_PLUGIN_DIR . '/templates/' . $template_name ) ){\r\n\t\t\t\t\t$template = WPJM_FIELD_EDITOR_PLUGIN_DIR . '/templates/' . $template_name;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn $template;\r\n\t}", "public function locate( $template, $type, $templates )\n {\n // Set template path\n $this->path = $template;\n\n // Set template type\n $this->type = $type;\n\n // Get the current post ID\n $post_id = get_the_ID();\n\n // Get the current post type\n $post_type = get_post_type($post_id);\n\n // Get the current post slug\n $post_slug = get_page_uri($post_id);\n\n\n switch($type)\n {\n case 'page':\n\n // Search for page slug template\n if( $found = $this->find('page/'.$post_slug) ) break;\n\n // Search for page template\n $found = $this->find('page');\n\n break;\n\n case 'frontpage':\n\n // Search for front template\n $found = $this->find('front');\n\n break;\n\n default:\n // Search for template by type\n $found = $this->find($type);\n break;\n }\n\n // Check if we found a template file\n if( ! empty($found) )\n {\n // Update template path\n $this->path = $found;\n\n return $found;\n }\n\n\n return $template;\n }", "function emscvupload_locate_template( $template_names, $load = false, $require_once = true, $atts=array() ) {\n\tglobal $emscvupload_template_folder;\n\n\t// No file found yet\n\t$located = false;\n\n\t// Try to find a template file\n\tforeach ( (array) $template_names as $template_name ) {\n\n\t\t// Continue if template is empty\n\t\tif ( empty( $template_name ) )\n\t\t\tcontinue;\n\n\t\t// Trim off any slashes from the template name\n\t\t$template_name = ltrim( $template_name, '/' );\n\n\t\t// Check child theme first\n\t\tif ( file_exists( trailingslashit( get_stylesheet_directory() ) . $emscvupload_template_folder . $template_name ) ) {\n\t\t\t$located = trailingslashit( get_stylesheet_directory() ) . $emscvupload_template_folder . $template_name;\n\t\t\tbreak;\n\n\t\t// Check parent theme next\n\t\t} elseif ( file_exists( trailingslashit( get_template_directory() ) . $emscvupload_template_folder . $template_name ) ) {\n\t\t\t$located = trailingslashit( get_template_directory() ) . $emscvupload_template_folder . $template_name;\n\t\t\tbreak;\n\n\t\t// Check theme compatibility last\n\t\t} elseif ( file_exists( trailingslashit( emscvupload_get_templates_dir() ) . $template_name ) ) {\n\t\t\t$located = trailingslashit( emscvupload_get_templates_dir() ) . $template_name;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tif ( ( true == $load ) && ! empty( $located ) )\n\t\temscvupload_load_template( $located, $require_once, $atts );\n\n\treturn $located;\n}", "function wac_locate_template( $template_name, $template_path = '', $default_path = '' ) {\n\tglobal $woo_auction;\n\tif(!$template_path){\n\t\t$template_path = $woo_auction->theme_template_path();\n\t}\n\tif(!$default_path){\n\t\t$default_path = $woo_auction->plugin_path() . '/templates/';\n\t}\n\t\n\t// Look within passed path within the theme - this is priority.\n\t$template = locate_template(\n\t\tarray(\n\t\t\ttrailingslashit($template_path) . $template_name,\n\t\t\t$template_name,\n\t\t)\n\t);\n\t\n\t// Get default template/\n\tif (!$template){\n\t\t$template = $default_path . $template_name;\n\t}\n\n\t// Return what we found.\n\treturn apply_filters('wac_locate_template',$template,$template_name,$template_path );\n}", "function LoadTemplate( $name )\n{\n if ( file_exists(\"$name.html\") ) return file_get_contents(\"$name.html\");\n if ( file_exists(\"templates/$name.html\") ) return file_get_contents(\"templates/$name.html\");\n if ( file_exists(\"../templates/$name.html\") ) return file_get_contents(\"../templates/$name.html\");\n}", "function _get_template_edit_filename($fullpath, $containingfolder)\n {\n }", "function template_path($file, $data = [])\n{\n return sage('blade')->compiledPath($file, $data);\n}", "function template_path($file, $data = [])\n{\n return sage('blade')->compiledPath($file, $data);\n}", "function find_template (){\n $scriptbasename = basename ($_SERVER['PHP_SELF']);\n\n// Disable STS for popups: moved to sts_default module since v4.4\n\n // Check for module that will handle the template (for example module sts_index takes care of index.php templates)\n\t$check_file = 'sts_'.$scriptbasename;\n\t$modules_installed = explode (';', MODULE_STS_INSTALLED);\n\tif (!in_array($check_file, $modules_installed)) $check_file = 'sts_default.php';\n\n include_once (DIR_WS_MODULES.'sts/'.$check_file);\n\t$classname=substr($check_file,0,strlen($check_file)-4);\n\t$this->script=new $classname; // Create an object from the module\n\t\n// If module existes but is disabled, use the default module.\n\tif ($this->script->enabled==false) {\n\t unset ($this->script);\n include_once (DIR_WS_MODULES.'sts/sts_default.php');\n\t $this->script=new sts_default; // Create an object from the module\t \n\t}\n\t\n\t$this->template_file = $this->script->find_template($scriptbasename); // Retrieve the template to use, $scriptbasename added in v4.4\n\treturn $this->template_file ;\n }", "public function intendedTemplateFile() {\n return $this->kirby->component('template')->file($this->intendedTemplate());\n }", "function learn_press_pmpro_locate_template( $name ) {\n\t$file = learn_press_locate_template( $name, 'learnpress-paid-membership-pro', learn_press_template_path() . '/addons/paid-membership-pro/' );\n\t// If template does not exists then look in learnpress/addons/paid-membership-pro in the theme\n\tif ( ! file_exists( $file ) ) {\n\t$file = learn_press_locate_template( $name, learn_press_template_path() . '/addons/paid-membership-pro/', LP_ADDON_PMPRO_PATH . '/templates/' );\n\t}\n\treturn $file;\n}", "function locate_template($template_names, $load = \\false, $load_once = \\true, $args = array())\n {\n }", "function youpztStore_locate_template( $template_name, $template_path = '', $default_path = '' ) {\n if ( ! $template_path ) {\n $template_path =UPSTORE_TEMPLATE_DIR;\n }\n\n if ( ! $default_path ) {\n $default_path =UPSTORE_PLUGIN_DIR.'/templates/';\n }\n\n // Look within passed path within the theme - this is priority.\n $template = locate_template(\n array(\n trailingslashit( $template_path ) . $template_name,\n $template_name\n )\n );\n\n // Get default template/\n if ( ! $template) {\n $template = $default_path . $template_name;\n }\n\n // Return what we found.\n return $template;\n}", "function yith_ywraq_locate_template( $path, $var = NULL ) {\n\n if ( function_exists( 'WC' ) ) {\n $woocommerce_base = WC()->template_path();\n }\n elseif ( defined( 'WC_TEMPLATE_PATH' ) ) {\n $woocommerce_base = WC_TEMPLATE_PATH;\n }\n else {\n $woocommerce_base = WC()->plugin_path() . '/templates/';\n }\n\n $template_woocommerce_path = $woocommerce_base . $path;\n $template_path = '/' . $path;\n $plugin_path = YITH_YWRAQ_DIR . 'templates/' . $path;\n\n $located = locate_template( array(\n $template_woocommerce_path, // Search in <theme>/woocommerce/\n $template_path, // Search in <theme>/\n $plugin_path // Search in <plugin>/templates/\n ) );\n\n if ( !$located && file_exists( $plugin_path ) ) {\n return apply_filters( 'yith_ywraq_locate_template', $plugin_path, $path );\n }\n\n return apply_filters( 'yith_ywraq_locate_template', $located, $path );\n }", "public function loadTemplate($path);", "public function templateFile() {\n return $this->_templateFile($this->intendedTemplate());\n }", "function templateFile() {\n return 'CRM/Press/Form/Search/CRM/Muntpunt/PressSearch.tpl';\n }", "public function resolve($templateFile) {\n $templateFile = str_replace(['\\\\', '/'], DS, $templateFile);\n \n foreach ($this->stack as $location) {\n $filePath = $location . DS . $templateFile . $this->ext;\n if (file_exists($filePath)) {\n return $filePath;\n }\n }\n \n return false;\n }", "function bok_locate_template( $template_names, $load = false, $require_once = true, $template_vars ) {\n\t// No file found yet\n\t$located = false;\n\n\t// Try to find a template file\n\tforeach ( (array) $template_names as $template_name ) {\n\n\t\t// Continue if template is empty\n\t\tif ( empty( $template_name ) )\n\t\t\tcontinue;\n\n\t\t// Trim off any slashes from the template name\n\t\t$template_name = ltrim( $template_name, '/' );\n\n\t\t// Check child theme first\n\t\tif ( file_exists( trailingslashit( get_stylesheet_directory() ) . 'multi-rating/' . $template_name ) ) {\n\t\t\t$located = trailingslashit( get_stylesheet_directory() ) . 'multi-rating/' . $template_name;\n\t\t\tbreak;\n\n\t\t\t// Check parent theme next\n\t\t} elseif ( file_exists( trailingslashit( get_template_directory() ) . 'multi-rating/' . $template_name ) ) {\n\t\t\t$located = trailingslashit( get_template_directory() ) . 'multi-rating/' . $template_name;\n\t\t\tbreak;\n\n\t\t\t// Check theme compatibility last\n\t\t} elseif ( file_exists( trailingslashit( bok_get_templates_dir() ) . $template_name ) ) {\n\t\t\t$located = trailingslashit( bok_get_templates_dir() ) . $template_name;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tif ( ( true == $load ) && ! empty( $located ) ) {\n\t\tbok_load_template( $located, $require_once, $template_vars );\n\t}\n\n\treturn $located;\n}", "function get_template_path($template)\n {\n\t\t// the current module\n $pnmodgetname = pnModGetName();\n\n // get the module path to templates\n $module = $this->module;\n $modinfo = pnModGetInfo(pnModGetIDFromName($module));\n\n // get the theme path to templates\n $theme = pnUserGetTheme();\n\n // prepare the values for OS\n $os_pnmodgetname = pnVarPrepForOS($pnmodgetname);\n $os_module = pnVarPrepForOS($module);\n $os_modpath = pnVarPrepForOS($modinfo['directory']);\n $os_theme = pnVarPrepForOS($theme);\n\n // Define the locations in which we will look for templates\n // (in this order)\n\t\t// Note: Paths 1, 3, 5 - This allows for the hook or block functions\n // (such as ratings and comments) to use different templates depending\n // on the top level module. e.g. the comments dialog can be different\n // for news and polls...\n // They are only evaluated when the calling module is not the current one.\n //\n\t\t// 1. The top level module directory in the requested module folder\n\t\t// in the theme directory.\n\t\t$themehookpath = \"themes/$theme/templates/modules/$module/$pnmodgetname\";\n\t\t// 2. The module directory in the current theme.\n $themepath = \"themes/$theme/templates/modules/$module\";\n\t\t// 3. The top level module directory in the requested module folder\n\t\t// in the modules sub folder.\n\t\t$modhookpath = \"modules/$modinfo[directory]/pntemplates/$pnmodgetname\";\n\t\t// 4. The module directory in the modules sub folder.\n $modpath = \"modules/$modinfo[directory]/pntemplates\";\n\t\t// 5. The top level module directory in the requested module folder\n\t\t// in the system sub folder.\n $syshookpath = \"system/$modinfo[directory]/pntemplates/$pnmodgetname\";\n\t\t// 6. The module directory in the system sub folder.\n $syspath = \"system/$modinfo[directory]/pntemplates\";\n\n $ostemplate = pnVarPrepForOS($template); //.'.htm';\n\n // check the module for which we're looking for a template is the\n\t\t// same as the top level mods. This limits the places to look for\n\t\t// templates.\n\t\tif ($module == $pnmodgetname) {\n $search_path = array($themepath,\n $modpath,\n $syspath);\n\t\t} else {\n $search_path = array($themehookpath,\n $themepath,\n $modhookpath,\n $modpath,\n $syshookpath,\n $syspath);\n\t\t}\n\n\t foreach ($search_path as $path) {\n if (file_exists(\"$path/$ostemplate\") && is_readable(\"$path/$ostemplate\")) {\n\t \t return $path;\n \t\t}\n }\n\n // when we arrive here, no path was found\n return false;\n }", "public function template_path() {\n return apply_filters( 'iwj_template_path', 'iwj/' );\n }", "public function getTemplatePath()\n {\n return $this->document->documentURI;\n }", "public function getTemplatesPath()\n {\n $options = Config::inst()->get('FAQSearchIndex', 'options');\n\n $globalOptions = Solr::solr_options();\n if (isset($options['templatespath']) && file_exists($options['templatespath'])) {\n $globalOptions['templatespath'] = $options['templatespath'];\n }\n return $this->templatesPath ? $this->templatesPath : $globalOptions['templatespath'];\n }", "function _getTemplateFullpath($file)\n {\n \t$cfg\t=& CFactory::getConfig();\n \tif(!JString::strpos($file, '.php'))\n \t{\n \t\t$filename\t= $file;\n \t\t\n \t\t// Test if template override exists in joomla's template folder\n \t\t$mainframe\t\t=& JFactory::getApplication();\n\t\t\t\n \t\t$overridePath\t= JPATH_ROOT . DS . 'templates' . DS . $mainframe->getTemplate() . DS . 'html';\n \t\t$overrideExists\t= JFolder::exists( $overridePath . DS . 'com_community' );\n\t\t\t$template\t\t= COMMUNITY_COM_PATH . DS . 'templates' . DS . $cfg->get('template') . DS . $filename . '.php';\n \n \t\t// Test override path first\n \t\tif( JFile::exists( $overridePath . DS . 'com_community' . DS . $filename . '.php') )\n \t\t{\n \t\t\t// Load the override template.\n\t\t\t\t$file\t= $overridePath . DS . 'com_community' . DS . $filename . '.php';\n\t\t\t}\n \t\telse if( JFile::exists( $template ) && !$overrideExists )\n \t\t{\n\t \t\t\t// If override fails try the template set in config\n\t\t\t\t$file\t= $template;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t// We assume to use the default template\n \t\t\t$file\t= COMMUNITY_COM_PATH . DS . 'templates' . DS . 'default' . DS . $filename . '.php';\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\t}\n \t}\n \t\n \treturn $file;\n\t}", "public function template_include() {\n\n\t\treturn locate_template( array( 'page.php', 'single.php', 'index.php' ) );\n\t}", "function template(string $path){\n return 'views/templates/'.$path;\n}", "function show_template($template) {\n\treturn templates . '/' . $template . '.php';\n}", "public function test_invalid_component_get_template_filepath() {\n mustache_template_finder::get_template_filepath('core/octopus', 'classic');\n }", "function ct_get_template_hierarchy( $template ) {\n \n // Get the template slug\n $template_slug = rtrim( $template, '.php' );//single\n $template = $template_slug . '.php'; //single.php\n\n //logit($template,'$template: ');\n //logit($template_slug,'$template_slug: ');\n\n //$locate = locate_template( array( 'plugin_templates/single.php' ) );\n //$locateString = 'plugin_template/' . $template;\n //logit($locateString,'$locateString: ');\n //logit($locate,'$locate: ');\n \n // Check if a custom template exists in the theme folder, if not, load the plugin template file\n if ( $theme_file = locate_template( array( 'cals_teams_templates/' . $template ) ) ) {\n $file = $theme_file;\n logit($file,'$file: ');\n\n }\n else {\n $file = CT_PLUGIN_BASE_DIR . '/includes/templates/' . $template;\n }\n \n //return apply_filters( 'rc_repl_template_' . $template, $file );\n return $file;\n}", "function ffd_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {\r\n\tif ( ! empty( $args ) && is_array( $args ) ) {\r\n\t\textract( $args ); // @codingStandardsIgnoreLine\r\n\t}\r\n\r\n\t$located = ffd_locate_template( $template_name, $template_path, $default_path );\r\n\r\n\tif ( ! file_exists( $located ) ) {\r\n\t\t/* translators: %s template */\r\n\t\treturn;\r\n\t}\r\n\r\n\t// Allow 3rd party plugin filter template file from their plugin.\r\n\t$located = apply_filters( 'ffd_get_template', $located, $template_name, $args, $template_path, $default_path );\r\n\r\n\tdo_action( 'ffd_before_template_part', $template_name, $template_path, $located, $args );\r\n\r\n\tinclude $located;\r\n\r\n\tdo_action( 'ffd_after_template_part', $template_name, $template_path, $located, $args );\r\n}", "function emp_locate_template( $template_name, $load=false, $args = array() ) {\n\t//First we check if there are overriding tempates in the child or parent theme\n\t$located = locate_template(array('plugins/events-manager-pro/'.$template_name));\n\tif( !$located ){\n\t\t$dir_location = plugin_dir_path(__FILE__);\n\t\tif ( file_exists( $dir_location.'templates/'.$template_name) ) {\n\t\t\t$located = $dir_location.'templates/'.$template_name;\n\t\t}\n\t}\n\t$located = apply_filters('emp_locate_template', $located, $template_name, $load, $args);\n\tif( $located && $load ){\n\t\tif( is_array($args) ) extract($args);\n\t\tinclude($located);\n\t}\n\treturn $located;\n}", "function getTemplateFile ()\n\t{\n\t\t//\n\t\t// Allow the template to override a specific file. If this file exist\n\t\t// (the file in the template directory), it will be loaded, otherwise\n\t\t// the default (in the plugin directory) will be loaded\n\t\t//\n\t\t$renderer = 'templates/'.$this->getTemplate ().'/'.$this->getRenderer ();\n\t\tif (!(file_exists ($renderer)))\n\t\t{\n\t\t\t$renderer = 'framework/view/'.$this->getRenderer ();\n\t\t}\n\t\treturn $renderer;\n\t}", "private function readTemplate($page)\n {\n // Evaluate the direcory, in which the templates are located.\n // This is the \"templates\" direcory relative from the actually called script.\n $template_path = sprintf(\n \"%s/%s/%s.%s\",\n dirname($_SERVER[\"SCRIPT_FILENAME\"]),\n $page->configuration->template_directory,\n $page->template_name,\n $page->configuration->template_extension\n );\n return file_get_contents($template_path);\n }", "protected function getTemplatePath()\n {\n return $this->getPathByOptionOrConfig('templatePath', 'migration_template_path');\n }", "function astra_locate_template( $template_name, $template_path = '', $default_path = '' ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound\n\t_deprecated_function( __FUNCTION__, '3.6.2', 'astra_addon_locate_template()' );\n\treturn astra_addon_locate_template( $template_name, $template_path = '', $default_path = '' );\n}", "function getTemplate( $atpl ) {\n\t$file_name = \"php/template/{$atpl}.php\";\n\tif (!file_exists($file_name)) return \"TEMPLATE: {$atpl}.{$lang} not found\";\n\treturn join(\"\", file($file_name));\n}", "public function loadTemplate(){\n\t\t$tpl = $this->template;\n\t\t$file = $this->path . DIRECTORY_SEPARATOR . $tpl . '.tmpl.php';\n\t\t$exists = file_exists($file);\n\t\t// Wenn Template vorhanden\n\t\tif( $exists ){\n\n\t\t\tob_start();\n\t\t\tinclude $file;\n\t\t\t$output = ob_get_contents();\n\t\t\tob_end_clean();\n\n\t\t\treturn $output;\n\t\t}else{\n\t\t\treturn 'Datei nicht gefunden!';\n\t\t}\n\t}", "protected function getTemplatePath() {\n if (isset($this->extra['template-directory'])) {\n return $this->basePath . $this->extra['template-directory'];\n }\n return $this->composer->getConfig()->get('vendor-dir') . '/niji-digital/drupal-settings/templates/';\n }", "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 getTemplatePath()\r\n\t{\r\n\t\treturn $this->templatePath;\r\n\t}", "function granola_resolve_template($path)\n{\n /**\n * See if the string ends with .php and remove it for consistency.\n * We will add it back in later\n */\n if (substr($path, -4) === '.php') {\n $path = substr($path, 0, -4);\n }\n\n // Consider get_theme_file_path\n // https://developer.wordpress.org/reference/functions/get_theme_file_path/\n return get_stylesheet_directory() . '/' . $path . '.php';\n}", "public function template_path() {\n\t\t\treturn apply_filters( 'wd_template_path', 'wolf-discography/' );\n\t\t}", "function loadTemplateFile($filePath)\n{\n return loadTemplateString(file_get_contents($filePath));\n}", "public function view_project_template( $template ) {\n\n global $post;\n\n if ( !isset( $post ) ) return $template;\n\n if ( ! isset( $this->templates[ get_post_meta( $post->ID, '_wp_page_template', true ) ] ) ) {\n return $template;\n } // end if\n\n $template_loader = new Uou_Atmf_Load_Template();\n\n if( is_page_template( 'atmf-search.php' ) ){\n $file = $template_loader->locate_template( 'atmf-search.php' );\n }\n\n\n // $file = plugin_dir_path( __FILE__ ) . 'templates/' . get_post_meta( $post->ID, '_wp_page_template', true );\n\n if( file_exists( $file ) ) {\n return $file;\n } // end if\n\n return $template;\n\n }", "public function getTemplatefile()\n\t{\n\t\treturn $this->templatefile;\n\t}", "function deals_get_template($template_name, $require_once = true) {\n\tif (file_exists( STYLESHEETPATH . '/' . DEALS_TEMPLATE . $template_name )) load_template( STYLESHEETPATH . '/' . DEALS_TEMPLATE . $template_name, $require_once ); \n\telseif (file_exists( STYLESHEETPATH . '/' . $template_name )) load_template( STYLESHEETPATH . '/' . $template_name , $require_once); \n\telse load_template( DEALS_TEMPLATE_DIR . $template_name , $require_once);\n}", "function astra_addon_locate_template( $template_name, $template_path = '', $default_path = '' ) {\n\n\t\tif ( ! $template_path ) {\n\t\t\t$template_path = 'astra-addon/';\n\t\t}\n\n\t\tif ( ! $default_path ) {\n\t\t\t$default_path = ASTRA_EXT_DIR . 'addons/';\n\t\t}\n\n\t\t/**\n\t\t * Look within passed path within the theme - this is priority.\n\t\t *\n\t\t * Note: Avoided directories '/addons/' and '/template/'.\n\t\t *\n\t\t * E.g.\n\t\t *\n\t\t * 1) Override Footer Widgets - Template 1.\n\t\t * Addon: {astra-addon}/addons/advanced-footer/template/layout-1.php\n\t\t * Theme: {child-theme}/astra-addon/advanced-footer/layout-1.php\n\t\t *\n\t\t * 2) Override Blog Pro - Template 2.\n\t\t * Addon: {astra-addon}/addons/blog-pro/template/blog-layout-2.php\n\t\t * Theme: {child-theme}/astra-addon/blog-pro/blog-layout-2.php.\n\t\t */\n\t\t$theme_template_name = str_replace( 'template/', '', $template_name );\n\t\t$template = locate_template(\n\t\t\tarray(\n\t\t\t\ttrailingslashit( $template_path ) . $theme_template_name,\n\t\t\t\t$theme_template_name,\n\t\t\t)\n\t\t);\n\n\t\t// Get default template.\n\t\tif ( ! $template || ASTRA_EXT_TEMPLATE_DEBUG_MODE ) {\n\t\t\t$template = $default_path . $template_name;\n\t\t}\n\n\t\t// Return what we found.\n\t\treturn apply_filters( 'astra_addon_locate_template', $template, $template_name, $template_path );\n\t}", "private function cyl_locate_template($template_name, $template_path = '', $default_path = '')\n {\n if (!$template_path) :\n $template_path = 'templates/';\n endif;\n\n if (!$default_path) :\n $default_path = CYL_PLUGIN_PATH . 'templates/';\n endif;\n\n $template = locate_template(array(\n $template_path . $template_name,\n $template_name\n ));\n\n if (!$template) :\n $template = $default_path . $template_name;\n endif;\n\n return apply_filters('cyl_contact_form_locate_template',\n $template, $template_name, $template_path, $default_path);\n }", "function myplugin_woocommerce_locate_template( $template, $template_name, $templates_directory ) {\n\t$original_template = $template;\n\n\tif ( ! $templates_directory ) {\n\t\t$templates_directory = WC()->template_url;\n\t}\n\n // Plugin's custom templates/ directory\n\t$plugin_path = myplugin_get_plugin_path() . '/templates/';\n\n\t// Look within passed path within the theme - this is priority.\n\t$template = locate_template(\n\t\tarray(\n\t\t\t$templates_directory . $template_name,\n\t\t\t$template_name,\n\t\t)\n\t);\n\n\t// Get the template from this plugin under /templates/ directory, if it exists.\n\tif ( ! $template && file_exists( $plugin_path . $template_name ) ) {\n\t\t$template = $plugin_path . $template_name;\n\t}\n\n\t// Use default template if not found a suitable template under plugin's /templates/ directory.\n\tif ( ! $template ) {\n\t\t$template = $original_template;\n\t}\n\n\t// Return what we found.\n\treturn $template;\n}", "function youpztStore_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {\n if ( $args && is_array( $args ) ) {\n extract( $args );\n }\n\n $located = youpztStore_locate_template( $template_name, $template_path, $default_path );\n\n if ( ! file_exists( $located ) ) {\n //_doing_it_wrong( __FUNCTION__, sprintf( '<code>%s</code> does not exist.', $located ), '2.1' );\n return;\n }\n\n // Allow 3rd party plugin filter template file from their plugin.\n $located = apply_filters('youpztStore_get_template', $located, $template_name, $args, $template_path, $default_path );\n\n include( $located );\n\n}", "public function loadMatchingTemplate()\n {\n $assignments = self::getAssignments();\n $hlp = $this;\n $matches = array_filter($assignments, function ($data) use ($hlp) {\n return $hlp::matchPagePattern($data['pattern']);\n });\n\n $template = array_pop($matches);\n return $template;\n }", "public function getTemplatePath()\n {\n return $this->getSettingArray()[\"template_path\"];\n }", "public function template_path() {\n return apply_filters( 'mapti_template_path', 'myarcade/' );\n }", "private function locateTemplate($templates, $load = false, $require_once = true)\n {\n foreach ($templates as $template) {\n if (file_exists(\n $this->viewsPath . '/' . str_replace('.php', $this->extension, $template)\n )) {\n return $this->viewsPath . '/' . str_replace('.php', $this->extension, $template);\n }\n\n if (file_exists(\n $this->viewsPath . '/' . $template\n )) {\n return $this->viewsPath . '/' . $template;\n }\n }\n\n return locate_template($templates, $load = false, $require_once = true);\n }", "public function find($file);", "function astra_addon_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {\n\n\t\t$located = astra_addon_locate_template( $template_name, $template_path, $default_path );\n\n\t\tif ( ! file_exists( $located ) ) {\n\t\t\t/* translators: 1: file location */\n\t\t\t_doing_it_wrong( __FUNCTION__, esc_html( sprintf( __( '%s does not exist.', 'astra-addon' ), '<code>' . $located . '</code>' ) ), '1.0.0' );\n\t\t\treturn;\n\t\t}\n\n\t\t// Allow 3rd party plugin filter template file from their plugin.\n\t\t$located = apply_filters( 'astra_addon_get_template', $located, $template_name, $args, $template_path, $default_path );\n\n\t\tdo_action( 'astra_addon_before_template_part', $template_name, $template_path, $located, $args );\n\n\t\tinclude $located;\n\n\t\tdo_action( 'astra_addon_after_template_part', $template_name, $template_path, $located, $args );\n\t}", "public function template_path() {\r\n\t\t\treturn apply_filters( 'rv_portfolio_template_path', 'rv-portfolio/' );\r\n\t\t}", "public function view_project_template($template) {\r\n global $post;\r\n \r\n if( !isset($post->ID) \r\n\t\t\t|| !isset($this->templates[get_post_meta($post->ID, '_wp_page_template', TRUE)]) )\r\n return $template;\r\n \r\n $file = plugin_dir_path(__FILE__) . get_post_meta($post->ID, '_wp_page_template', TRUE);\r\n \r\n // Just to be safe, we check if the file exist first\r\n if (file_exists($file))\r\n return $file;\r\n else\r\n echo $file;\r\n \r\n return $template;\r\n }", "public static function get_templates_path()\n {\n return plugin_dir_path(__FILE__) . '../../templates/';\n }", "protected function getTemplatePath($templateName = '') {\n\t\tif ($templateName) {\n\t\t\t$parts = explode('.', $templateName);\n\t\t\t$templateNameShort = $parts['0'];\n\t\t}\n\t\t\n\t\tif ($this->reverse === true) {\n\t\t\t$sql = \"SELECT\t\tpackage.packageDir, template.templateName\n\t\t\t\tFROM\t\twcf\".WCF_N.\"_\".$this->type.\"template template\n\t\t\t\tLEFT JOIN\twcf\".WCF_N.\"_package package\n\t\t\t\t\t\tON (template.packageID = package.packageID)\n\t\t\t\tWHERE\t\ttemplate.templateID = \".$this->templateID;\n\t\t} elseif ($this->rePatch === true) {\n\t\t\t$sql = \"SELECT\t\tpackage.packageDir, template.templateName\n\t\t\t\tFROM\t\twcf\".WCF_N.\"_\".$this->type.\"template template\n\t\t\t\tLEFT JOIN\twcf\".WCF_N.\"_package package\n\t\t\t\t\t\tON (template.packageID = package.packageID)\n\t\t\t\tWHERE\t\ttemplate.templateID = \".$this->templateID.\"\n\t\t\t\t\t\tAND template.packageID = \".$this->packageID;\n\t\t} else {\n\t\t\t$sql = \"SELECT\t\ttemplate.packageID\n\t\t\t\tFROM\t\twcf\".WCF_N.\"_\".$this->type.\"template template\n\t\t\t\tLEFT JOIN\twcf\".WCF_N.\"_package_dependency dependency\n\t\t\t\tON\t\tdependency.dependency = template.packageID\n\t\t\t\tWHERE\t\tdependency.packageID = \".$this->packageID.\"\n\t\t\t\t\t\tAND template.templateName = '\".escapeString($templateNameShort).\"'\n\t\t\t\tORDER BY\ttemplate.packageID DESC\";\n\t\t\t$result = WCF::getDB()->getFirstRow($sql);\n\t\t\t\n\t\t\tif ($result) {\n\t\t\t\t$sql = \"SELECT\t\tpackage.packageDir, template.templateID\n\t\t\t\t\tFROM\t\twcf\".WCF_N.\"_\".$this->type.\"template template\n\t\t\t\t\tLEFT JOIN\twcf\".WCF_N.\"_package package\n\t\t\t\t\t\t\tON (template.packageID = package.packageID)\n\t\t\t\t\tWHERE\t\ttemplate.templateName = '\".escapeString($templateNameShort).\"'\n\t\t\t\t\t\t\tAND template.packageID = \".$result['packageID'].\"\n\t\t\t\t\tORDER BY\ttemplate.templateID DESC\";\n\t\t\t} else return null;\n\t\t}\n\t\t$result = WCF::getDB()->getFirstRow($sql);\n\t\tif ($result) {\n\t\t\tif ($this->rePatch === false && $this->reverse === false) {\n\t\t\t\t$this->patch[$this->patchNo]['templateID'] = $result['templateID'];\n\t\t\t} else {\n\t\t\t\t$templateName = $result['templateName'].'.tpl';\n\t\t\t}\n\t\t\tif ($this->type ? $sub = 'acp/' : $sub = '');\n\t\t\treturn WCF_DIR.$result['packageDir'].$sub.'templates/'.$templateName;\n\t\t}\n\t}", "function display_template($template) {\n\n $file_name = $template;\n\n if ( locate_template( $file_name ) ) :\n $template = locate_template( $file_name );\n else :\n $template = dirname( __FILE__ ) . '/../templates/' . $file_name;\n endif;\n\n if ( $template ) :\n load_template( $template, false );\n endif;\n}", "public function getPath($template)\n {\n foreach ($this->folders as $folder) {\n $templatePath = sprintf(\n \"%s/%s.php\", \n rtrim($folder, \"/\\\\\"), \n $template \n );\n if (file_exists($templatePath)) {\n return $templatePath;\n }\n }\n throw new InvalidArgumentException(\n sprintf(\"Invalid template: %s.php\", $template)\n );\n }", "function get_template()\n {\n }", "public function getTemplatePath()\n {\n return WP::applyFilters('wpmvc_template_path', $this->templatePath);\n }", "protected function resolve(string $templateFile): bool|string\n {\n $templateFileName = str($templateFile)->ensureEnd($this->extension());\n\n foreach ($this->folderStack as $folder) {\n if (file_exists($folder . DIRECTORY_SEPARATOR . $templateFileName)) {\n return realpath($folder . DIRECTORY_SEPARATOR . $templateFileName);\n }\n }\n\n return false;\n }", "function physical_path_to($file)\n{\n $paths = get_view()->getAssetPaths();\n foreach ($paths as $path) {\n list($physical, $web) = $path;\n if (file_exists($physical . '/' . $file)) {\n return $physical . '/' . $file;\n }\n }\n throw new InvalidArgumentException(__(\"Could not find file %s!\", $file));\n}", "function portal_get_template_part( $path ) {\n\tinclude( portal_template_hierarchy( $path . '.php' ) );\n}", "public function _get_template_file($file_name = '', $force_storage = '', $JUST_CHECK_IF_EXISTS = false, $RETURN_TEMPLATE_PATH = false)\n {\n $string = false;\n $NOT_FOUND = false;\n $storage = 'inline';\n $file_name = trim(trim(trim($file_name), '/'));\n $l = strlen(YF_PREFIX);\n if (substr($file_name, 0, $l) == YF_PREFIX) {\n $file_name = substr($file_name, $l);\n }\n $stpl_ext = $this->_STPL_EXT;\n $path_ext = pathinfo($file_name, PATHINFO_EXTENSION);\n $path_ext && $path_ext = '.' . $path_ext;\n // Allowed extension overrides\n if ( ! $path_ext || ! in_array($path_ext, $this->ALLOWED_EXTS)) {\n $file_name .= $stpl_ext;\n }\n // Fix double extesion\n $file_name = str_replace($stpl_ext . $stpl_ext, $stpl_ext, $file_name);\n $stpl_name = str_replace([$stpl_ext, $path_ext], '', $file_name);\n\n if ($this->GET_STPLS_FROM_DB || $force_storage == 'db') {\n if ($this->FROM_DB_GET_ALL) {\n if ( ! empty($this->_TMP_FROM_DB[$stpl_name])) {\n $string = $this->_TMP_FROM_DB[$stpl_name];\n unset($this->_TMP_FROM_DB[$stpl_name]);\n } else {\n $NOT_FOUND = true;\n }\n } else {\n $text = from('templates')->where('theme_name', conf('theme'))->where('name', $stpl_name)->where('active', '1')->one('text');\n if (isset($text)) {\n $string = stripslashes($text);\n } else {\n $NOT_FOUND = true;\n }\n }\n $storage = 'db';\n } else {\n $def_theme = $this->_get_def_user_theme();\n $all_tpls_paths = $this->_get_cached_paths();\n $paths = $all_tpls_paths[$stpl_name];\n // Storages are defined in specially crafted `order`, so do not change it unless you have strong reason\n $storages = [];\n $site_path = (MAIN_TYPE_USER ? SITE_PATH : ADMIN_SITE_PATH);\n $theme = conf('theme');\n\n $storages = [\n 'dev',\n 'site_lang',\n 'site',\n 'site_inherit',\n 'site_inherit2',\n 'app_lang',\n 'app',\n 'app_inherit',\n 'app_inherit2',\n 'app_user',\n 'project',\n 'project_user',\n 'framework',\n 'framework_user',\n ];\n $storages = array_filter($storages);\n foreach ((array) $storages as $_storage) {\n if ($force_storage && $force_storage != $_storage) {\n continue;\n }\n $file_path = '';\n $_theme = null;\n if (in_array($_storage, ['app', 'project', 'framework'])) {\n $_theme = $_storage == 'framework' ? MAIN_TYPE : $theme;\n if (isset($paths[$_storage][$_theme])) {\n $file_path = $paths[$_storage][$_theme];\n }\n } elseif (in_array($_storage, ['app_user', 'project_user', 'framework_user']) && MAIN_TYPE_ADMIN && ! in_array($stpl_name, ['main'])) {\n $s = substr($_storage, 0, -strlen('_user'));\n if (isset($paths[$s]['user'])) {\n $file_path = $paths[$s]['user'];\n }\n } elseif ($_storage == 'site') {\n if (isset($paths[$_storage][$_theme])) {\n $file_path = $paths[$_storage][$_theme];\n }\n } elseif (in_array($_storage, ['app_lang', 'site_lang']) && $this->ALLOW_LANG_BASED_STPLS) {\n $lang = conf('language');\n $_theme = $theme . '.' . $lang;\n $s = substr($_storage, 0, -strlen('_lang'));\n if (isset($paths[$s][$_theme])) {\n $file_path = $paths[$s][$_theme];\n }\n } elseif (in_array($_storage, ['app_inherit', 'site_inherit']) && $this->_INHERITED_SKIN) {\n $_theme = $this->_INHERITED_SKIN;\n $s = substr($_storage, 0, -strlen('_inherit'));\n if (isset($paths[$s][$_theme])) {\n $file_path = $paths[$s][$_theme];\n }\n } elseif (in_array($_storage, ['app_inherit2', 'site_inherit2']) && $this->_INHERITED_SKIN2) {\n $_theme = $this->_INHERITED_SKIN2;\n $s = substr($_storage, 0, -strlen('_inherit2'));\n if (isset($paths[$s][$_theme])) {\n $file_path = $paths[$s][$_theme];\n }\n } elseif (in_array($_storage, ['dev'])) {\n //\t\t\t\t\t// Developer overrides\n//\t\t\t\t\t$dev_path = '.dev/'.main()->HOSTNAME.'/';\n//\t\t\t\t\tif (conf('DEV_MODE')) {\n//\t\t\t\t\t\tif ($site_path && $site_path != PROJECT_PATH) {\n//\t\t\t\t\t\t\t$storages['dev_site'] = $site_path. $dev_path. $this->TPL_PATH. $file_name;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t$storages['dev_app'] = APP_PATH. $dev_path. $this->TPL_PATH. $file_name;\n//\t\t\t\t\t\t$storages['dev_project'] = PROJECT_PATH. $dev_path. $this->TPL_PATH. $file_name;\n//\t\t\t\t\t}\n }\n if ( ! $file_path || ! $this->_stpl_path_exists($file_path)) {\n continue;\n }\n $string = $this->_stpl_path_get($file_path);\n if ($string !== false) {\n $storage = $_storage;\n break;\n }\n }\n // Last try from cache (preloaded templates)\n if ($string === false) {\n $compiled_stpl = conf('_compiled_stpls::' . $stpl_name);\n if ($compiled_stpl) {\n $string = $compiled_stpl;\n $storage = 'compiled_cache';\n }\n }\n if ($string === false) {\n $NOT_FOUND = true;\n }\n }\n if (DEBUG_MODE) {\n $this->driver->debug[$stpl_name]['storage'] = $storage;\n $this->driver->debug[$stpl_name]['storages'] = $paths;\n }\n if ($RETURN_TEMPLATE_PATH) {\n return $file_path;\n }\n // If we just checking template existance - then stop here\n if ($JUST_CHECK_IF_EXISTS) {\n return ! $NOT_FOUND;\n }\n // Log error message if template file was not found\n if ($NOT_FOUND) {\n trigger_error('STPL: template \"' . $file_name . '\" in theme \"' . conf('theme') . '\" not found.', E_USER_WARNING);\n }\n return $string;\n }", "function templateLocation($template_type)\n\t{\n\t\treturn ('..'.DS.strtolower($this->controller->name).DS.$this->template.$template_type);\n\t}", "function rf_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {\n if ( ! empty( $args ) && is_array( $args ) ) {\n extract( $args );\n }\n\n $located = rf_locate_template( $template_name, $template_path, $default_path );\n\n if ( ! file_exists( $located ) ) {\n _doing_it_wrong( __FUNCTION__, sprintf( __( '%s does not exist.', 'woocommerce' ), '<code>' . $located . '</code>' ), '2.1' );\n return;\n }\n\n // Allow 3rd party plugin filter template file from their plugin.\n $located = apply_filters( 'rf_get_template', $located, $template_name, $args, $template_path, $default_path );\n include( $located );\n}", "function catch_plugin_template($template) {\n\t\n // If tp-file.php is the set template\n if( is_page_template('cg-search.php') )\n \t{\n // Update path(must be path, use WP_PLUGIN_DIR and not WP_PLUGIN_URL) \n $template = WP_PLUGIN_DIR . '/hyp3rl0cal-wordpress-plugin/cg-search.php';\n \t}\n \t\n // If tp-file.php is the set template\n if( is_page_template('cg-directory.php') )\n \t{\n // Update path(must be path, use WP_PLUGIN_DIR and not WP_PLUGIN_URL) \n $template = WP_PLUGIN_DIR . '/hyp3rl0cal-wordpress-plugin/cg-directory.php';\n \t} \t\n \n // Return\n return $template;\n}", "private function loadMasterTemplate() {\n\t\t//SOME_THEMES should be defined in SOME_PATH/includes/defines.php\n\t\t$path_and_file = SOME_THEMES.DS.$this->template.DS.$this->file.'.php';\n\t\tif (!file_exists($path_and_file)) {\n\t\t\tthrow new SomeFileNotFoundException(\"Master template file {$this->file} for {$this->template} not found\");\n\t\t}\n\t\t\n\t\tob_start();\n\t\t//$content = file_get_contents(SOME_THEMES.DS.'default'.DS.'index.php');\n\t\t$templatefile = $path_and_file;\n\t\trequire_once($templatefile);\n\t\t$content = ob_get_clean();\n\t\treturn $content;\n\t}", "function carton_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {\n\tglobal $carton;\n\n\tif ( $args && is_array($args) )\n\t\textract( $args );\n\n\t$located = carton_locate_template( $template_name, $template_path, $default_path );\n\n\tdo_action( 'carton_before_template_part', $template_name, $template_path, $located );\n\n\tinclude( $located );\n\n\tdo_action( 'carton_after_template_part', $template_name, $template_path, $located );\n}", "public function getFoundPath() {}" ]
[ "0.75048566", "0.733183", "0.7213391", "0.7150922", "0.7107095", "0.70787853", "0.70666903", "0.7062942", "0.7062942", "0.7060727", "0.69417447", "0.6854018", "0.67902046", "0.67867744", "0.6780575", "0.6734469", "0.66990584", "0.6693961", "0.66597366", "0.66588867", "0.6652356", "0.6643506", "0.6631141", "0.6624598", "0.6623656", "0.6605692", "0.6582215", "0.6554244", "0.6531051", "0.6515526", "0.65132785", "0.65049326", "0.645281", "0.64522856", "0.64522856", "0.64287513", "0.6419696", "0.63959515", "0.6370769", "0.63157934", "0.6308928", "0.62877876", "0.62651515", "0.6262891", "0.6248289", "0.6239985", "0.6224409", "0.61940986", "0.61821276", "0.61733073", "0.61502314", "0.61389", "0.6136838", "0.61298954", "0.612091", "0.61184084", "0.61172444", "0.6115115", "0.6114389", "0.61040586", "0.6103504", "0.6090814", "0.60869616", "0.60831714", "0.6076753", "0.6075538", "0.6071773", "0.60641235", "0.60613215", "0.6058806", "0.60583967", "0.60460633", "0.6045078", "0.6037137", "0.6033286", "0.6029203", "0.6019178", "0.59899193", "0.59823364", "0.5969072", "0.5966139", "0.59565854", "0.5952501", "0.59370095", "0.59315556", "0.5915546", "0.59146714", "0.59095013", "0.5901141", "0.59003896", "0.5897694", "0.58887124", "0.5886402", "0.58823013", "0.58789206", "0.5877771", "0.5877148", "0.5871373", "0.5866075", "0.58654016", "0.5865321" ]
0.0
-1
Prepare data for insert
protected function _prepareInsertData($data) { $dataPrepared = $this->_prepareUpdateData($data); return $dataPrepared; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function prepareData();", "function prepare_insert($data = []){\n // if there is no data to set, then return an empty string\n if($data == []){\n return '';\n }\n $set_sql = $this->create_set($data);\n // check again to make sure there were proper columns listed in the SET\n if(strlen($set_sql) == 0){\n return '';\n }\n $return_string = \"INSERT INTO {$this->table_name} $set_sql;\";\n return $return_string;\n }", "abstract protected function prepareData( $data );", "public function prepare( $data );", "abstract function prepare_data(&$data_arr);", "public function prepare(array $data);", "private function prepareData(){\n\t\t\t$this->text = trim($this->text);\n\t\t\t$this->user_id = intval($this->user_id);\n\t\t\t$this->parent_id = intval($this->parent_id);\n\t\t}", "private function prepareStatement()\n {\n $columns = '';\n $fields = '';\n foreach ($this->fields as $key => $f) {\n if ($key == 0) {\n $columns .= \"$f\";\n $fields .= \":$f\";\n continue;\n }\n\n $columns .= \", $f\";\n $fields .= \", :$f\";\n }\n\n $this->statement = $this->pdo->prepare(\n 'INSERT INTO `' . $this->table . '` (' . $columns . ') VALUES (' . $fields . ')'\n );\n }", "private function prepare_data(){\r\n\t\t\t$this->data_table['cols'] = array();\r\n\t\t\t\r\n\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\tswitch($column_info['type']){\r\n\t\t\t\t\tcase 'number':\r\n\t\t\t\t\tcase 'float':\r\n\t\t\t\t\tcase 'currency':\r\n\t\t\t\t\t\t$column_info['type'] = 'number';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$column_info['type'] = 'string';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['cols'][] = array_merge(array('id' => $column_id), $column_info);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rows_count = sizeof(reset($this->data));\r\n\t\t\t\r\n\t\t\tfor($i = 0; $i < $rows_count; $i++){\r\n\t\t\t\t$c = array();\r\n\t\t\t\t\r\n\t\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\t\t$value = $this->data[$column_id][$i];\r\n\t\t\t\t\t$c[] = array('v' => $value);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['rows'][] = array('c' => $c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->data_table = json_encode($this->data_table);\r\n\t\t}", "function prepareData()\r\n\t{\r\n\t\treturn true;\r\n\t}", "protected function prepareData()\n {\n parent::prepareData();\n $this->prepareConfigurableProductOptions();\n $this->prepareAttributeSet();\n }", "private function insert()\n {\n $this->query = $this->pdo->prepare(\n 'INSERT INTO ' . $this->table . ' (' .\n implode(', ', array_keys($this->data)) .\n ' ) VALUES (:' .\n implode(', :', array_keys($this->data)) .\n ')'\n );\n }", "function insert_stmt(){\n\t\tglobal $in;\n\t\tif ($this->attributes['BYTB']!='' )$this->fields_value_bytb($this->attributes['BYTB']);\n\t\t\n\t\t\n\t\tif ($this->attributes['TB']!='no'){\n\t\t\t$i=0;\n\t\t\tforeach ($this->values as $key => $val){\t\t\t\t\n\t\t\t\t$this->field_stmt[$i]=\"{$key}\";\n\t\t\t\t$this->value_stmt[$i]=\"{$in[$key]}\";\n\t\t\t\t\n\t\t\t\tif($in[$key]==1){\n\t\t\t\t\t$i++;\n\t\t\t\t\t$this->field_stmt[$i]=\"D_{$key}\";\n\t\t\t\t\t#GC 20/04/2015 gestione popolamento decode\n\t\t\t\t\tif (isset($this->attributes['DECODE'][$key])) $this->value_stmt[$i]=\"{$this->attributes['DECODE'][$key]}\";\n\t\t\t\t\telse $this->value_stmt[$i]=$val;\n\t\t\t\t}\n\t\t\t\t#GC 20/04/2015 gestione sbiancamento decode\n\t\t\t\tif($in[$key]==0){\n\t\t\t\t\t$i++;\n\t\t\t\t\t$this->field_stmt[$i]=\"D_{$key}\";\n\t\t\t\t\t$this->value_stmt[$i]=\"\";\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn;\n\t}", "function prepareForDb() {\n $this->description = sql_escape($this->description);\n $this->postsHeader = sql_escape($this->postsHeader);\n $this->postBody = sql_escape($this->postBody);\n $this->postsFooter = sql_escape($this->postsFooter);\n $this->formLogged = sql_escape($this->formLogged);\n $this->form = sql_escape($this->form);\n $this->navigation = sql_escape($this->navigation);\n $this->name = sql_escape($this->name);\n $this->nameLin = sql_escape($this->nameLin);\n $this->memberName = sql_escape($this->memberName);\n $this->date = sql_escape($this->date);\n $this->time = sql_escape($this->time); \n $this->nextPage = sql_escape($this->nextPage);\n $this->previousPage =sql_escape($this->previousPage);\n $this->firstPage = sql_escape($this->firstPage);\n $this->lastPage = sql_escape($this->lastPage);\n\t$this->gravDefault = sql_escape($this->gravDefault);\n }", "abstract protected function prepareVars(array $data);", "abstract public function prepareToStore();", "protected function prepareMyData(){\n\t\tglobal $C;\n if( $this->id > 0 ){\n $this->get( \"`id`={$this->id}\" );\n $this->unstoreSfield();\n }\n\t\t$C->setID( $this->data['parent'] );\n\t\t$C->get( \"`id`={$this->data['parent']}\" );\n\t\t$C->unstoreSfield();\n $p = $C->getData();\n if( is_array( $p ) ){\n\t\t\tT::assign( \"parent\", $p[\"name\"] );\n\t\t\t$fieldlist=array();\n if( is_array( $p[\"fields\"] ) )\n foreach( $p[\"fields\"] as $key => $item ){\n $fieldlist[] = array( \"cnt\" => $key, \"name\" => $item, \"value\"=> $this->data[$this->sfield][$key] );\n }\n\t\t\tT::assign( \"fieldlist\", $fieldlist );\n }\n\t\tT::assign( \"f\", $this->sfield );\n\t\tT::assign( \"item\",$this->data );\t\t\n\t}", "public function prepare();", "public function prepare();", "protected function prepareForValidation()\n {\n $this->merge([\n 'nome' => $this->nome,\n 'nascimento' => convertDateToDatabase($this->nascimento),\n 'cpf' => returnOnlyNumbers($this->cpf),\n 'email' => $this->email,\n ]);\n }", "protected function preprocessData() {}", "protected function _insert()\n {\n \t$metadata = $this->_table->info(Zend_Db_Table_Abstract::METADATA);\n \t\n \tif(isset($metadata['created_at']))\n\t\t\t$this->_data['created_at'] = new Zend_Date ();\n \tif(isset($metadata['updated_at']))\n\t\t\t$this->_data['updated_at'] = new Zend_Date ();\n }", "private function _fill_insert_data() {\n $data = array();\n $data['numero_ticket'] = $this->_generate_numero_ticket();\n $data['descripcion'] = $this->post('descripcion');\n $data['soporte_categoria_id'] = $this->post('soporte_categoria_id');\n $data['persona_id'] = get_persona_id();\n $data['created_at'] = date('Y-m-d H:i:s');\n $data['status'] = 1;\n return $data;\n }", "static private function insert($data) {\n $insert_stmt = new SQLExecutor($GLOBALS['cli']->dbconn);\n $insert_item = array();\n // loop over potential insert data\n foreach ($data as $tx) {\n // make sure each tx object has the right stuff\n if ( isset($tx->site_id) && isset($tx->tagid) && isset($tx->pid) ) {\n // build statement\n $insert_item[] = \"({$tx->site_id},{$tx->tagid},{$tx->pid})\";\n }\n }\n\n // complete insert statement if there are insert items\n if (count($insert_item) > 0) {\n $insert_list = implode(\",\",$insert_item);\n $insert_list = rtrim($insert_list,\",\");\n $insert_results = $insert_stmt->sql('INSERT INTO table (site_id, tagid, pid) VALUES ' . $insert_list)->run();\n }\n }", "protected function prepareAssignCatActionData()\n {\n foreach ($this->_data as $key => $value) {\n switch ($key) {\n case 'urlPath':\n $this->_urlPath = $value;\n break;\n case 'paramName':\n $this->_paramName = $value;\n break;\n default:\n $this->_additionalData[$key] = $value;\n break;\n }\n }\n }", "private function prepareData(){\n $this->params['crud_url'] = '/'.trim($this->params['crud_url'],'/');\n }", "protected function prepareInsertData(){\n\t\tthrow new Exception('Unknown Error!', REST_ER_PAGE_NOTFOUND);\n\t}", "protected function prepare()\n\t{\n\t}", "private function _prepareInsertString($data) {\n /**\n * @ Incoming $data looks like:\n * $data = array('field' => 'value', 'field2'=> 'value2');\n */\n return array(\n 'names' => implode(\", \", array_keys($data)),\n 'values' => ':' . implode(', :', array_keys($data))\n );\n }", "function insert($bd,$data){\n$data_one = \"\";\n$data_two = \"\";\n$contador = count($data);\n$i = 1;\nforeach ($data as $key => $value) {\n\t\tif($i < $contador){\n\t\t\t$data_one .= $key.\",\";\n\t\t\t$data_two .= \":\".$key.\",\";\n\t\t}else{\n\t\t\t$data_one .= $key;\n\t\t\t$data_two .= \":\".$key;\n\t\t}\n\t\t$i++;\n}\n $sql = \"INSERT INTO \".$bd.\" (\".$data_one.\") VALUES (\".$data_two.\")\";\n$conexion = new ConexionOther();\n$stmt= $conexion->prepare($sql);\n$dato = $stmt->execute($data);\n//$stmt = null;\nreturn $dato;\n}", "function inputdata($data)\n\t{\n\t\t$this->db->insert($this->table, $data);\n\t}", "private function prepareData($fields) {\n \n $insertData = array();\n \n foreach ($fields as $field) {\n if ($this->notManyToManyRelation($field)) {\n \n if($field->multiLanguage) {\n $name = getLocalizedFieldName($field->name);\n } else {\n $name = $field->name;\n }\n $insertData[$name] = $field->value;\n }\n if ($field instanceof PasswordField) {\n $insertData[$field->name] = md5($field->value);\n }\n }\n // auto generated unique id\n unset($insertData[\"id\"]);\n return $insertData;\n }", "public function prepareData()\r\n\t{\r\n\r\n\t\t// Get title and encode it\r\n\t\tif (empty($this->title)) {\r\n\t\t\t$this->title = urlencode(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')));\r\n\t\t}\r\n\r\n\t\t// Get current post permalink and encode it\r\n\t\tif (empty($this->shared_url)) {\r\n\t\t\t$this->shared_url = get_permalink(get_the_ID());\r\n\t\t}\r\n\r\n\t\t// Get excerpt and format it for Twitter\r\n\t\tif (empty($this->tweet)) {\r\n\t\t\t$tweet = (strlen(get_the_excerpt()) > 140) ? substr(get_the_excerpt(), 0, 140) . '...' : get_the_excerpt();\r\n\t\t\t$this->tweet = $tweet . ' ' . $this->shared_url;\r\n\t\t}\r\n\t}", "public function prepare() {}", "public function prepare() {}", "protected function prepare_fields()\n {\n }", "abstract protected function _prepare();", "public function insert() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t$insertCols = '';\r\n\t\t\t$insertVals = '';\r\n\t\t\t\t\r\n\t\t\tif (isset ( $this->title )) {\r\n\t\t\t\t$insertCols .= \"dsh_title, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->title;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->desc )) {\r\n\t\t\t\t$insertCols .= \"dsh_desc, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->desc;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->portlet )) {\r\n\t\t\t\t$insertCols .= \"dsh_portlet, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->portlet;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->hide )) {\r\n\t\t\t\t$insertCols .= \"dsh_hide, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->hide;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdBy )) {\r\n\t\t\t\t$insertCols .= \"dsh_created_by, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedBy )) {\r\n\t\t\t\t$insertCols .= \"dsh_modified_by, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdDate )) {\r\n\t\t\t\t$insertCols .= \"dsh_created_date, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdDate;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedDate )) {\r\n\t\t\t\t$insertCols .= \"dsh_modified_date, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedDate;\r\n\t\t\t}\r\n\r\n\t\t\t//remove trailing commas\r\n\t\t\t$insertCols = preg_replace(\"/, $/\", \"\", $insertCols);\r\n\t\t\t$insertVals = preg_replace(\"/, $/\", \"\", $insertVals);\r\n\r\n\t\t\t$sql = \"INSERT INTO $this->sqlTable ($insertCols)\";\r\n\t\t\t$sql .= \" VALUES ($insertVals)\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\r\n\t\t\t//set the auto-increment property, only if the primary column is auto-increment\r\n\t\t\t$this->id = $ks_db->lastInsertId();\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "protected function prepareSaveStatement() {\n $fields = implode(',', $this->columns);\n\n $placeholders = [];\n foreach ($this->columns as $column) {\n $placeholders[] = ':' . $column;\n }\n $placeholders = implode(',', $placeholders);\n\n // Prepare our statement.\n return $this->connection->prepare(\"INSERT INTO {$this->table} ($fields) VALUES ($placeholders)\");\n }", "public function prepare(){\n\t\tif ( !$this->created_at)\n\t\t\t$this->set();\n\t\treturn array(\n\t\t\t'created_at' => $this->created_at,\n\t\t\t'created_by' => $this->created_by );\t\t\n\t}", "public function prepareData()\r\n {\r\n $users_model = new UsersModel();\r\n $users_all = $users_model->getAll(true, false, 'C_FULLNAME');\r\n $users = Groups::getUsers($this->group_id, 'C_FULLNAME');\r\n $users_include = array();\r\n \tforeach ($users as $user_info) {\r\n \t\t$users_include[$user_info['U_ID']] = array(\r\n \t\t\t$user_info['U_ID'],\r\n \t\t\t$user_info['C_FULLNAME']\r\n \t\t);\r\n \t} \r\n \t$users_exclude = array();\r\n \tforeach ($users_all as $user_info) {\r\n \t\tif (!isset($users_include[$user_info['U_ID']])) {\r\n\t \t\t$users_exclude[] = array(\r\n\t \t\t\t$user_info['U_ID'],\r\n\t \t\t\t$user_info['C_FULLNAME']\r\n\t \t\t);\r\n \t\t}\r\n \t}\r\n \t$this->smarty->assign('group_id', $this->group_id);\r\n \t$this->smarty->assign('users_in', json_encode(array_values($users_include)));\r\n \t$this->smarty->assign('users_out', json_encode($users_exclude)); \r\n }", "public function Prepare(){\n $connection = $this->Connection();\n $databaseQuery = $connection->prepare($this->sqlStatement);\n\n $connection->beginTransaction();\n\n $parameterNames = $this->ExtractParameters();\n\n // Binding values as necessary\n for($i = 0; $i < count($this->parameter); $i++) {\n $databaseQuery->bindValue($parameterNames[0][$i], $this->parameter[$i]);\n }\n\n // Creating database array\n $databaseObj['connection'] = $connection;\n $databaseObj['databaseQuery'] = $databaseQuery;\n return $databaseObj;\n }", "public function input_data($data,$table){\n\t\t$this->db->insert($table,$data);\n\t}", "public function insertData($table, $data){// method inserData body start\n\t\t$fields \t\t\t= array_keys( $data );\n\t\t//$values \t\t\t= array_map( \"mysql_real_escape_string\", array_values( $data ) );\n\t\t$values \t\t\t= array_values( $data );\n\t\t$query \t\t\t\t= \"INSERT INTO $table(\".implode(\",\",$fields).\") VALUES ('\".implode(\"','\", $values ).\"');\";\n\t\t$execute \t\t\t= $this->query($query);\n\t\t\n\t}", "public function prepare(){\n\t\treturn array(\n\t\t\t'creationData' => $this->creationData->prepare(),\n\t\t\t'modificationHistory' => $this->modificationHistory->prepare() );\t\t\n\t}", "function Prepare()\r\n\t{\r\n\t\tif (!$this->Active) return;\r\n\r\n\t\t$act = Server::GetState($this->Name.'_action');\r\n\r\n\t\tif ($this->sorting == ED_SORT_TABLE)\r\n\t\t\t$this->sort = array(Server::GetVar('sort', $this->ds->id) =>\r\n\t\t\t\tServer::GetVar('order', 'ASC'));\r\n\r\n\t\t$this->state = $act == 'edit' ? STATE_EDIT : STATE_CREATE;\r\n\r\n\t\tif ($act == 'Cancel') $this->Reset();\r\n\r\n\t\tif ($act == 'Create')\r\n\t\t{\r\n\t\t\t$insert = array();\r\n\t\t\t$child_id = Server::GetVar('child');\r\n\t\t\t$context = isset($child_id) ? $this->ds->children[$child_id] : $this;\r\n\r\n\t\t\t$fields = $context->ds->FieldInputs;\r\n\t\t\tforeach ($fields as $col => $in)\r\n\t\t\t{\r\n\t\t\t\tif (is_object($in))\r\n\t\t\t\t{\r\n\t\t\t\t\t$value = Server::GetVar($this->Name.'_'.$col);\r\n\t\t\t\t\tif ($in->attr('TYPE') == 'date')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$insert[$col] = date('Y-m-d', strtotime($value));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if($in->attr('TYPE') == 'datetime')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif($value[5][0] == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//time is in PM\r\n\t\t\t\t\t\t\tif($value[3][0] != 12) $value[3][0] += 12;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$time_portion = \" {$value[3][0]}:{$value[4][0]}:00\";\r\n\t\t\t\t\t\t$insert[$col] = $value[2].'-'.$value[0].'-'.$value[1].$time_portion;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'password' && strlen($value) > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$insert[$col] = md5($value);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'file')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (empty($value['tmp_name'])) continue;\r\n\t\t\t\t\t\t$ext = strrchr($value['name'], '.');\r\n\r\n\t\t\t\t\t\t# We move files later because we do not have enough\r\n\t\t\t\t\t\t# data to decide where to put them or what to name them.\r\n\r\n\t\t\t\t\t\t$files[] = array(\r\n\t\t\t\t\t\t\t'src' => $value['tmp_name'],\r\n\t\t\t\t\t\t\t'dst' => $in->attr('VALUE')\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t//$insert[$col] = $ext;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'selects') $insert[$col] = $value;\r\n\t\t\t\t\telse $insert[$col] = $value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (is_numeric($col)) continue;\r\n\t\t\t\telse $insert[$col] = Database::SqlUnquote($in);\r\n\t\t\t\t//I just changed this to 'else' (check the history), because a\r\n\t\t\t\t//numeric value with a string column would not go in eg. 5\r\n\t\t\t\t//instead of '5', if this ends up conflicting, we'll need to\r\n\t\t\t\t//come up with a different solution.\r\n\t\t\t}\r\n\r\n\t\t\tforeach ($this->handlers as $handler)\r\n\t\t\t{\r\n\t\t\t\tif (!$handler->Create($this, $insert)) { $this->Reset(); return; }\r\n\t\t\t}\r\n\r\n\t\t\t$parent = Server::GetVar('parent');\r\n\r\n\t\t\tif (isset($parent))\r\n\t\t\t{\r\n\t\t\t\t$child = $this->ds->children[Server::GetVar('child')];\r\n\t\t\t\t$insert[$child->child_key] = $parent;\r\n\t\t\t}\r\n\r\n\t\t\t$id = $context->ds->Add($insert);\r\n\t\t\t$insert[$context->ds->id] = $id;\r\n\r\n\t\t\t# Handle all uploads\r\n\r\n\t\t\tif (!empty($files))\r\n\t\t\t{\r\n\t\t\t\t$vp = new VarParser();\r\n\t\t\t\tforeach ($files as $file)\r\n\t\t\t\t{\r\n\t\t\t\t\t# Handler associated\r\n\t\t\t\t\tif (is_object($file['dst']))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$file['dst']->Create($file['src'], $insert);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse # Move uploaded file\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$dst = $vp->ParseVars($file['dst'], $insert);\r\n\t\t\t\t\t\tmove_uploaded_file($file['src'], $dst);\r\n\t\t\t\t\t\tchmod($dst, 0777);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tforeach ($this->handlers as $handler)\r\n\t\t\t\t$handler->Created($this, $id, $insert);\r\n\r\n\t\t\t$this->Reset();\r\n\t\t}\r\n\r\n\t\telse if ($act == 'Update')\r\n\t\t{\r\n\t\t\t$ci = Server::GetVar('ci');\r\n\r\n\t\t\tif ($this->type == CONTROL_SIMPLE)\r\n\t\t\t{\r\n\t\t\t\tforeach (array_keys($this->ds->FieldInputs) as $name)\r\n\t\t\t\t{\r\n\t\t\t\t\t$vals[$name] = Server::GetVar($name);\r\n\t\t\t\t}\r\n\t\t\t\t$fp = fopen($ci, 'w+');\r\n\t\t\t\tfwrite($fp, serialize($vals));\r\n\t\t\t\tfclose($fp);\r\n\t\t\t}\r\n\t\t\t$child_id = Server::GetVar('child');\r\n\t\t\t$context = $child_id != null ? $this->ds->children[$child_id] : $this;\r\n\t\t\t$update = array();\r\n\t\t\tforeach ($context->ds->FieldInputs as $col => $in)\r\n\t\t\t{\r\n\t\t\t\tif (is_object($in))\r\n\t\t\t\t{\r\n\t\t\t\t\tif (get_class($in) == 'FieldInput' && $in->type == 'label') continue;\r\n\r\n\t\t\t\t\t$value = Server::GetVar($this->Name.'_'.$col);\r\n\r\n\t\t\t\t\tif ($in->attr('TYPE') == 'date')\r\n\t\t\t\t\t\t$update[$col] = date('Y-m-d', strtotime($value));\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'datetime')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($value[5][0] == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//time is in PM\r\n\t\t\t\t\t\t\tif ($value[3][0] != 12) $value[3][0] += 12;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$time_portion = \" {$value[3][0]}:{$value[4][0]}:00\";\r\n\t\t\t\t\t\t$update[$col] = $value[2].'-'.$value[0].'-'.$value[1].$time_portion;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'label')\r\n\t\t\t\t\t\tunset($update[$col]);\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'password')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!empty($value)) $update[$col] = md5($value);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'checkbox')\r\n\t\t\t\t\t\t$update[$col] = ($value == 1) ? 1 : 0;\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'selects')\r\n\t\t\t\t\t\t$update[$col] = $value;\r\n\t\t\t\t\telse if ($in->attr('TYPE') == 'file')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!empty($value['tmp_name']))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$vp = new VarParser();\r\n\t\t\t\t\t\t\t$src = $value['tmp_name'];\r\n\t\t\t\t\t\t\t$vars = $update;\r\n\t\t\t\t\t\t\t$vars[$this->ds->id] = $ci;\r\n\t\t\t\t\t\t\t$val = $in->attr('VALUE');\r\n\r\n\t\t\t\t\t\t\t# File Handler\r\n\t\t\t\t\t\t\tif (is_object($val)) $val->Update($src, $vars);\r\n\t\t\t\t\t\t\telse # String Based\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$dst = $vp->ParseVars($val, $vars);\r\n\t\t\t\t\t\t\t\tmove_uploaded_file($src, $dst);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset($update[$col]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse $update[$col] = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (count($this->handlers) > 0)\r\n\t\t\t{\r\n\t\t\t\t$q['match'][$this->ds->id] = $ci;\r\n\t\t\t\t$data = $this->ds->GetOne($q);\r\n\t\t\t\t$update[$this->ds->id] = $ci;\r\n\t\t\t\tforeach ($this->handlers as $handler)\r\n\t\t\t\t{\r\n\t\t\t\t\t$res = $handler->Update($this, $ci, $data, $update);\r\n\t\t\t\t\t// Returns false, simple failure.\r\n\t\t\t\t\tif (!$res) { $this->Reset(); return; }\r\n\t\t\t\t\t// Returns an array of errors.\r\n\t\t\t\t\tif (is_array($res))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->state = STATE_EDIT;\r\n\t\t\t\t\t\t$this->Errors = $res;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ($this->type == CONTROL_BOUND)\r\n\t\t\t\t$context->ds->Update(array($context->ds->id => $ci), $update);\r\n\r\n\t\t\t$this->Reset();\r\n\t\t}\r\n\r\n\t\telse if ($act == 'delete')\r\n\t\t{\r\n\t\t\t$ci = Server::GetState($this->Name.'_ci');\r\n\r\n\t\t\t$child_id = Server::GetVar('child');\r\n\t\t\t$context = isset($child_id) ? $this->ds->children[$child_id] : $this;\r\n\r\n\t\t\t$data = $context->ds->GetOne(array($context->ds->id => $ci));\r\n\r\n\t\t\tif (count($this->handlers) > 0)\r\n\t\t\t{\r\n\t\t\t\tforeach ($this->handlers as $handler)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!$handler->Delete($this, $ci, $data)) return;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!empty($context->ds->FieldInputs))\r\n\t\t\tforeach ($context->ds->FieldInputs as $name => $in)\r\n\t\t\t{\r\n\t\t\t\tif (is_object($in) && strtolower(get_class($in)) == 'forminput')\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($in->attr('TYPE') == 'file')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$vp = new VarParser();\r\n\t\t\t\t\t\t$val = $in->attr('VALUE');\r\n\t\t\t\t\t\t# File handler\r\n\t\t\t\t\t\tif (is_object($val))\r\n\t\t\t\t\t\t\t$val->Delete($data);\r\n\t\t\t\t\t\telse # Regular string file\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$files = glob($vp->ParseVars($val, $data).\".*\");\r\n\t\t\t\t\t\t\tforeach ($files as $file) unlink($file);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$context->ds->Remove(array($context->ds->id => $ci));\r\n\t\t}\r\n\r\n\t\tif ($this->type == CONTROL_SIMPLE)\r\n\t\t{\r\n\t\t\t$ci = Server::GetState($this->Name.'_ci');\r\n\r\n\t\t\tif (file_exists($ci))\r\n\t\t\t\t$this->values = unserialize(file_get_contents($ci));\r\n\t\t\telse\r\n\t\t\t\t$this->values = array();\r\n\t\t}\r\n\t}", "protected function _prepareSaveData($data = array())\n {\n if (isset($data['id']) && empty($data['id'])) {\n unset($data['id']);\n }\n\n if (isset($data['addl_category_id']) && empty($data['addl_category_id'])) {\n unset($data['addl_category_id']);\n }\n\n if (!empty($data['buyout_price']) && $data['listing_type'] == 'product') {\n $data['start_price'] = $data['buyout_price'];\n }\n\n $keysToUnset = array('rollback_data', 'active', 'approved', 'closed', 'deleted', 'nb_clicks');\n foreach ($keysToUnset as $keyToUnset) {\n if (array_key_exists($keyToUnset, $data)) {\n unset($data[$keyToUnset]);\n }\n }\n\n $startTime = time();\n if (isset($data['start_time_type'])) {\n switch ($data['start_time_type']) {\n case 1: // custom\n $startTime = strtotime($data['start_time']);\n $data['start_time'] = date('Y-m-d H:i:s', $startTime);\n $data['closed'] = 1;\n break;\n default: // now\n $data['start_time'] = new Expr('now()');\n break;\n }\n }\n else if (isset($data['start_time'])) {\n $startTime = strtotime($data['start_time']);\n }\n\n $endTime = null;\n\n $endTimeType = isset($data['end_time_type']) ? $data['end_time_type'] : 0;\n switch ($endTimeType) {\n case 1: // custom\n $endTime = strtotime($data['end_time']);\n $data['duration'] = new Expr('null');\n break;\n default: // duration\n if (!empty($data['duration'])) {\n if ($data['duration'] > 0) {\n $endTime = $startTime + $data['duration'] * 86400;\n }\n }\n break;\n }\n\n if ($endTime) {\n $data['end_time'] = date('Y-m-d H:i:s', $endTime);\n }\n else {\n $data['end_time'] = new Expr('null');\n }\n\n if (!empty($data['stock_levels'])) {\n foreach ($data['stock_levels'] as $key => $value) {\n if (!empty($value[StockLevels::FIELD_OPTIONS])) {\n $data['stock_levels'][$key][StockLevels::FIELD_OPTIONS] = \\Ppb\\Utility::unserialize($value[StockLevels::FIELD_OPTIONS]);\n }\n\n if (!empty($value[StockLevels::FIELD_QUANTITY])) {\n $data['stock_levels'][$key][StockLevels::FIELD_QUANTITY] = abs(intval($value[StockLevels::FIELD_QUANTITY]));\n }\n }\n }\n\n return parent::_prepareSaveData($data);\n }", "function _prepare() {}", "private function PrepStatement()\n\t{\n\t\t$this->stmt = $this->prepare($this->query->statement);\n\t\tif($this->query->parameters !==NULL && $this->query->paramtype !==NULL\n\t\t\t&& count($this->query->parameters) == count($this->query->paramtype))\n\t\t{\n\t\t\tforeach ($this->query->parameters as $parameter => $value)\n\t\t\t{\n\t\t\t\t$this->stmt->bindValue($parameter, $value, $this->query->paramtype[$parameter]);\n\t\t\t}\n\t\t}\n\t\telseif ($this->query->parameters!==NULL)\n\t\t{\n\t\t\tforeach ($this->query->parameters as $parameter => $value)\n\t\t\t{\n\t\t\t\t$this->stmt->bindValue($parameter, $value, pdo::PARAM_STR);\n\t\t\t}\n\t\t}\n\t}", "public static function prepare($record) {\n $fieldRepo = Field::getRepository();\n /**\n * @var FieldEntity[] $fields\n */\n $fields = $fieldRepo->findBy(['is_hidden' => false, 'organisation' => Apollo::getInstance()->getUser()->getOrganisationId()]);\n /**\n * @var FieldEntity $field\n */\n foreach($fields as $field) {\n $record->findOrCreateData($field->getId());\n }\n }", "public function insert($data);", "public function setUp()\n {\n foreach ($this->data as $row) {\n $this->table->insert($row);\n }\n\n parent::setUp();\n\n }", "public function insertFreshData($data) {\n // prepare statement for insert\n $sql = 'INSERT INTO votes(city, color, votes) VALUES(:city, :color, :votes)';\n $stmt = $this->pdo->prepare($sql);\n $stmt->bindValue(':city', $data[0]);\n $stmt->bindValue(':color', $data[1]);\n $stmt->bindValue(':votes', $data[2]);\n $stmt->execute();\n }", "abstract protected function prepareEntity(/*array*/ $entity_data);", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n }", "private function getPrepared()\n {\n $array = $this->ToArray();\n unset($array['currentPage']);\n unset($array['pageCount']);\n unset($array['errors']);\n unset($array['insert']);\n unset($array['table']);\n unset($array['Adapter']);\n unset($array['pdoFetch']);\n unset($array['cmsFetchMode']);\n unset($array[$this->primaryName]);\n unset($array['primaryName']);\n $prepared['update'] = '';\n foreach($array as $k=>$v)\n {\n $prepared['values'][':'.$k] = $v;\n $prepared['update'] .= '`'.$k.'`'.\"=\".':'.$k.',';\n }\n if ($prepared['update']{strlen($prepared['update'])-1} == ',')\n {\n $prepared['update'] = substr($prepared['update'],0,-1);\n }\n $prepared['set'] = implode(', ', array_keys($array));\n return $prepared;\n }", "protected function prepareTable($table){\n $date = Factory::getDate();\n\t if(empty($table->id)){\n\t $table->created = $date->toSql();\n\t }\n\t}", "function insertData($table, $data){\n\t\t\n\t\tvalidate();\n\n\t\t$values = $cols = \"\";\n\n\t\tforeach ($data as $key => $value) {\n\t\t\t$cols .= \" \" . $key . \",\";\n\t\t\t$values .= \" \" . $value . \",\";\n\t\t}\n\n\t\t$cols = substr($cols, 0, strlen($cols) - 1);\n\t\t$values = substr($values, 0, strlen($values) - 1);\n\n\t\t$query = \"INSERT INTO $table ($cols) VALUES ($values)\";\n\n\t\t\n\t\ttry {\n\n\t\t\t$pdo = db_init();\n\n\t\t\t$pdo->exec($query);\n\n\t\t\treturn 1;\n\t\t} catch (PDOException $e) {\n\t\t\tlogging($_SERVER['PHP_SELF'] . \", 112, Error Insert Data:\". $e->getMessage() .\" ,\" . date(\"Y-m-d\") . \" \" . date(\"h:i:sa\"));\n\t\t\treturn;\n\t\t}\n\n\t}", "function buildTempTableFromData($uniqueId){\n\t\t//require_once($_SERVER['DOCUMENT_ROOT'] .\"/inc/php/classes/sql_safe.php\" );\n\t\t//Grab first row\n\t\t if(!isset($this->data[0])){\n\t\t \tthrow new Exception(\"Bad Data Format. Foxpro report needs an array of arrays\");\n\t\t }\n\t\t$firstRow = $this->data[0];\n\t\t$columns = array_keys($firstRow);\n\n\t\t//See the excel sheet in project files for an explanation of this logic.\n\t\t$paramLimit = 1500; //sqlsrv max escaped params is 2100. driver will throw an error if you exceed 2100.\n\t\t$rowCount = count($this->data);\n\t\t$columnCount = count($this->data[0]);\n\t\tif($columnCount > $paramLimit){\n\t\t\tthrow new Exception(\"Cannot insert more columns than the parameter limit! Column Count = {$columnCount}. Parameter Limit = {$paramLimit}.\");\n\t\t}\n\t\t$paramTotal = $columnCount*$rowCount;\n\t\t$groupsNeeded = ceil($paramTotal/$paramLimit);\n\t\t$chunkSize = floor($rowCount/$groupsNeeded);\n\t\t$chunks = array_chunk($this->data,$chunkSize);\n\n\t\t$tableName = \"tmp_foxpro_autogen_\".$uniqueId;\n\n\t\t$columnSqlArray = array();\n\t\tforeach ($columns as $column) {\n\t\t\t$columnSqlArray[] = \"[{$column}] [varchar](MAX) NULL\";\n\t\t}\n\t\t$tableNameQuery = \"FWE_DEV..[{$tableName}]\";\n\t\t$createQuery = \"CREATE TABLE {$tableNameQuery} (\" . implode(\",\", $columnSqlArray) . \")\";\n\t\t$this->mssqlHelperInstance->query($createQuery);\n\n\t\t$dbClass = get_class($this->mssqlHelperInstance);\n\t\tif ($dbClass == 'mssql_helper') {\n\t\t\trequire_once($_SERVER['DOCUMENT_ROOT'] . '/inc/php/classes/sqlsrv_helper.php');\n\t\t\t$insertInstance = new sqlsrv_helper('m2m');\n\t\t} else {\n\t\t\t$insertInstance = $this->mssqlHelperInstance;\n\t\t}\n\n\t\tforeach($chunks as $chunk) {\n\n\t\t\t$insertSqlArray = array();\n\t\t\t$queryValues = array();\n\t\t\tforeach ($chunk as $row) {\n\t\t\t\t$values = array_values($row);\n\t\t\t\t$rowArray = array();\n\t\t\t\tforeach ($values as $value) {\n\t\t\t\t\t$rowArray[] = \"?\";\n\t\t\t\t\t$queryValues[] = (string)$value;\n\t\t\t\t}\n\t\t\t\t$insertSqlArray[] = \"(\" . implode(\",\", $rowArray) . \")\";\n\t\t\t}\n\t\t\t$insertQuery = \"INSERT INTO {$tableNameQuery} (\" . implode(\",\", $columns) . \") VALUES \" . implode(\",\", $insertSqlArray) . \"\";\n\n\t\t\t$insertInstance->query($insertQuery, $queryValues);\n\t\t}\n\t\t$this->tableName = $tableNameQuery;\n\t}", "public function insertData($data) {\n $id = $data['id'];\n $judul = $data['judul'];\n $waktu = $data['waktu'];\n $sub_judul = $data['sub_judul'];\n $content = $data['content'];\n $short_content = $data['short_content'];\n $image= $data['image'];\n $kategori= $data['kategori'];\n $kategori_2= $data['kategori_2'];\n $status_display= $data['status_display'];\n $longitude= $data['longitude'];\n $latitude= $data['latitude'];\n $language= $data['language'];\n $kategori_3= $data['kategori_3'];\n $provinsi= $data['provinsi'];\n $kabupaten= $data['kabupaten'];\n \n $user_id=$_SESSION['user_id'];\n \n $query = \"Insert into destination\n set judul='$judul',\n sub_judul='$sub_judul',\n waktu='$waktu',\n content='$content',\n short_content='$short_content', \n image='$image',\n kategori='$kategori',\n kategori_2='$kategori_2',\n status_display='$status_display',\n latitude='$latitude',\n longitude='$longitude',\n provinsi='$provinsi', kabupaten='$kabupaten', kategori_3='$kategori_3', \n language='$language',\"\n . \"user_id=$user_id\";\n\n //Execute query\n $result = $this->query($query);\n\n return $result;\n }", "public function insertData($data){\n $this->stmt = $this->query(\"INSERT INTO users(name, email, date,gender,request) VALUES (:name, :email, :birthday, :gender, :requestDate)\");\n $this->stmt->bindValue(':name', $data['name']);\n $this->stmt->bindValue(':email', $data['email']);\n $this->stmt->bindValue(':birthday', $data['birthday']);\n $this->stmt->bindValue(':gender', $data['gender']);\n $this->stmt->bindValue(':requestDate', $data['requestDate']);\n $insert = $this->execute();\n\n\n //print('Data Insert');\n //return $this->stmt->fetchAll();\n return $insert;\n }", "private function addData ()\n {\n foreach ($this->data as $key=>$value)\n {\n $keys[] = $key;\n $values[] = $value;\n \n }\n $cols = implode($keys, \",\");\n $dataValues = \"'\".implode($values, \"','\").\"'\";\n $query = \"INSERT INTO `$this->tablename`($cols)VALUES($dataValues);\";\n \n $conn = $this->DB->conn;\n \n $sql = $conn->query($query);\n \n if($sql == TRUE) return TRUE;\n else \n {\n \n throw new Exception(\"Error : Data Not inserted to database :( \".$conn->error);\n \n }\n \n }", "protected function _prep_args() {\n\t\t// this is the data prepared for binding.\n\t\t// these fields are ordered as they are in the table\n\t\t$args = array(\n\t\t\t'the_id' => $this->id,\n\t\t\t'date_created' => $this->date_created,\n\t\t\t'completed' => $this->completed,\n\t\t\t'template_id' => $this->template_id,\n\t\t);\n\n\t\treturn $args;\n\t}", "function company_insert($table, $data) {\n\n global $devel, $tablas, $I;\n\n if (!$data) {\n print_r(get_defined_vars());\n throw new Exception(\"ERROR: No existen parámetros para INSERT en $table\");\n }\n\n $VALUES = values($data);\n $FIELDS = fields($data);\n\n $query = \"INSERT INTO `$table` ($FIELDS) VALUES ($VALUES)\";\n sql($query, $table, 'INSERT');\n $I++;\n}", "protected function prepareForValidation()\n {\n $merge = [];\n\n if ($this->valtotal) {\n $merge['valtotal'] = Format::strToFloat($this->valtotal);\n }\n\n $this->merge($merge);\n }", "public function insertData (array $params);", "private function prepareForTransaction($table, $data){\n $queries = [];\n foreach($data as $data_item){\n $queries[]= 'INSERT INTO `'.$table.'` (`addresses_id`, `addresses_address`, `addresses_street`, \n `addresses_street_name`, `addresses_street_type`, `addresses_adm`, `addresses_adm1`, `addresses_adm2`, `addresses_cord_x`, `addresses_cord_y`, `coords`) VALUES\n (\n '.$data_item->addresses_id.',\n \"'.$data_item->addresses_address.'\",\n \"'.$data_item->addresses_street.'\",\n \"'.$data_item->addresses_street_name.'\",\n \"'.$data_item->addresses_street_type.'\",\n \"'.$data_item->addresses_adm.'\",\n \"'.$data_item->addresses_adm1.'\",\n \"'.$data_item->addresses_adm2.'\",\n \"'.$data_item->addresses_cord_x.'\",\n \"'.$data_item->addresses_cord_y.'\",\n GeomFromText(\"POINT('.$data_item->addresses_cord_x.' '.$data_item->addresses_cord_y.')\")\n )';\n }\n return $queries;\n }", "public function prep_values($data, $type='insert') {\n $fields = '';\n $placeholders = '';\n $values = [];\n\n foreach ($data as $field => $value) {\n $fields .= \"{$field},\";\n $values[] = $value;\n\n if ($type == 'update') {\n $placeholders .= $field . '=?,';\n } else {\n $placeholders .= '?,';\n }\n }\n\n $fields = substr($fields, 0, -1);\n $placeholders = substr($placeholders, 0, -1);\n\n // $values = $this->htmlchars($values);\n\n return array($fields, $placeholders, $values);\n }", "public function insert()\n {\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $columlList = \" (\";\n $valuelList = \" (\";\n foreach ($this->attributes as $column => $value) {\n $columlList .= $column . \", \";\n $valuelList .= \":\".$column . \", \";\n }\n $columlList = str_last_replace(\", \", \")\", $columlList);\n $valuelList = str_last_replace(\", \", \")\", $valuelList);\n $sqlQuery = \"INSERT INTO \" . $this->table . $columlList . \" VALUES\" . $valuelList;\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n #println($sqlQuery, \"blue\");\n }\n }", "public function prepareFieldset();", "function processData($data) {\n\t$database = new PDO(\"sqlite:usgs.db\") or die(\"Unable to access database\");\n\t$prep = $database->prepare(\"REPLACE INTO datum (source, eqid, timestamp, latitude, longitude, magnitude, depth, region) VALUES(:source,:eqid,:timestamp,:latitude,:longitude,:magnitude,:depth,:region)\");\n\t\n\t/* First row is always headers */\n\tarray_pop($data);\n\n\tforeach ($data as $row) {\n\t\t$p = str_getcsv($row);\n\t\t$prep->bindParam(\":source\", $p[10]);\n\t\t$prep->bindParam(\":eqid\", $p[11]);\n\t\t$prep->bindParam(\":timestamp\", strtotime($p[0]));\n\t\t$prep->bindParam(\":latitude\", $p[1]);\n\t\t$prep->bindParam(\":longitude\", $p[2]);\n\t\t$prep->bindParam(\":magnitude\", $p[4]);\n\t\t$prep->bindParam(\":depth\", $p[3]);\n\t\t$prep->bindParam(\":region\", $p[9]);\n\t\t$prep->execute();\n\t}\n\n\tunset($prep);\n\tunset($database);\n}", "public function prepare()\n\t{\n\t\tcreateToken('admin-ssc');\n\t\t$this->adapter->prepare();\n\t}", "protected function _insert()\n\t{\n\t\t$this->date_added = \\Core\\Date::getInstance(null,\\Core\\Date::SQL_FULL, true)->toString();\n\t\t$this->date_modified = $this->date_added;\n\t\t$this->last_online = $this->date_modified;\n\t\t$this->activity_open = $this->date_modified;\n\t\t$this->language_id = \\Core\\Base\\Action::getModule('Language')->getLanguageId();\n\t}", "protected function _insert()\n\t{\n\t}", "public function prepare()\n {\n }", "public function insert(...$field_values);", "abstract protected function prepareData(array $rawData, array $options, tx_mksearch_interface_IndexerDocument $indexDoc);", "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n\n $this->vars['model'] = $this->model;\n $this->vars['category'] = Kategory::where(\"is_active\", \"1\")->lists('name', 'id');\n if (!empty($this->getLoadValue())) {\n $a= $this->vars['value'] = $this->getLoadValue();\n } else {\n $a= $this->vars['value'] = [];\n }\n }", "protected function prepareStatements()\n {\n if (!empty($this->statements)) {\n return;\n }\n $this->statements['load'] = $this->db->prepare(\n 'SELECT * FROM `' . $this->options['table'] . '` WHERE `userId` = :userId '\n . 'AND `scope` = :scope AND `name` = :name AND `args` = :args'\n );\n\n $this->statements['save'] = $this->db->prepare(\n 'INSERT INTO `' . $this->options['table'] . '` (`userId`, `scope`, `name`, `args`, `xml`) VALUES '\n . '(:userId, :scope, :name, :args, :xml)'\n );\n\n $this->statements['delete'] = $this->db->prepare(\n 'DELETE FROM`' . $this->options['table'] . '` WHERE `userId` = :userId '\n . 'AND `scope` = :scope AND `name` = :name AND `args` = :args'\n );\n }", "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "function prepareForCopy() {\n\t\t$this->id = null;\n\t}", "private function transfer_data()\n\t{\n\t\t$num_rows = db::select_one(\"select count(*) from {$this->table}\");\n\t\t\n\t\tfor ($i = 0; $i < $num_rows; $i += BATCH_SIZE)\n\t\t{\n\t\t\techo \"$i / $num_rows (select {$this->before_alter_select_query} from {$this->table})\\n\";\n\t\t\t$r = mysql_query(\"select {$this->before_alter_select_query} from {$this->table} limit $i, \".BATCH_SIZE);\n\t\t\twhile ($d = mysql_fetch_assoc($r))\n\t\t\t{\n\t\t\t\tif ($this->renamed_cols)\n\t\t\t\t{\n\t\t\t\t\tforeach ($this->renamed_cols as $before_key => $after_key)\n\t\t\t\t\t{\n\t\t\t\t\t\t$d[$after_key] = $d[$before_key];\n\t\t\t\t\t\tunset($d[$before_key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb::insert($this->temp_table, $d);\n\t\t\t}\n\t\t}\n\t}", "public function prepareSave($row, $postData)\n {\n }", "function insert($table_name,$data){\r\n$keys='';\r\n$values='';\r\nforeach($data as $k=>$v){\r\n\t$keys.='`'.$k.'`,';\r\n\t$values.=\"'\".$v.\"',\";\r\n}\r\n$keys=rtrim($keys,',');\r\n$values=rtrim($values,',');\r\n\r\n\t$query= \"INSERT INTO `{$table_name}` ({$keys}) VALUES ({$values})\";\r\n\t//echo $query;\r\n\t$this->query($query);\r\n}", "public function insert($data)\r\n {\r\n \r\n }", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validateExistsAndLength($this->secondLine, 1000);\n $this->town = self::sanitiseString($this->town);\n self::validateExistsAndLength($this->town, 255);\n $this->postcode = self::sanitiseString($this->postcode);\n self::validateExistsAndLength($this->postcode, 10);\n $this->county = self::sanitiseString($this->county);\n self::validateExistsAndLength($this->county, 255);\n $this->country = self::sanitiseString($this->country);\n self::validateExistsAndLength($this->country, 255);\n }", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "public function prepareData($data)\n {\n $this->requestModel = new Request();\n $this->requestModel->setPostMethod();\n $this->requestModel->setBody(json_encode($data));\n $this->requestModel->setApiUrl($this->connector->getBaseApiUrl() . $this->apiUrl);\n }", "function insert_csv_param_aux($tabela, $data)\n { \n\n /**\n * Insere os dados na tabela \n * Inserts the data into the table\n */ \n $this->db->insert($tabela, $data); \n }", "public function processBind()\n {\n $bind = [];\n\n foreach ($this->fields as $field)\n {\n\n if($field == $this->tablePK)\n {\n $bind[\":id\"] = $this->data[$field];\n }\n else\n {\n $bind[\":$field\"] = $this->data[$field];\n }\n }\n $this->bind = $bind;\n }", "function input_data($data,$table){\n\t\t$this->db->insert($table,$data);//menginputkan data ke database dengan function input_data\n }", "private function prepare()\n {\n $this->selectFields[$this->tableName][] = $this->rootEntityIdentifier;\n\n $sColumns = explode(',', $this->requestParams['sColumns']);\n\n for ($i = 0; $i < $this->iColumns; $i++) {\n\n if ($this->requestParams['mDataProp_' . $i] != null) {\n\n $field = $this->requestParams['mDataProp_' . $i];\n\n if ($sColumns[$i] != '') {\n if ($field != $sColumns[$i]) {\n $field = $sColumns[$i];\n }\n }\n\n // association delimiter found\n if (strstr($field, '.') !== false) {\n\n // separate fields\n $fieldsArray = explode('.', $field);\n // set associations in selectFields[]\n $this->setAssociations($fieldsArray, 0, $this->metadata);\n\n } else {\n\n // no association found\n if ($field !== $this->rootEntityIdentifier) {\n array_push($this->selectFields[$this->tableName], $field);\n }\n\n $this->allFields[] = $this->tableName . '.' . $field;\n\n }\n\n } else {\n\n $this->allFields[] = '';\n\n }\n }\n\n return $this;\n }", "public function prepareData($shipping_info)\n {\n $this->shipping_info = $shipping_info;\n $this->company_id = Registry::get('runtime.company_id');\n }", "public function createTemp($data)\n {\n $oracle = $this->load->database('oracle_dev',TRUE);\n $oracle->trans_start();\n $oracle->insert('CREATE_MO_ORDER_TR_TEMP',$data);\n $oracle->trans_complete();\n // $this->oracle = $this->load->database('oracle', true);\n // $sql = \"INSERT INTO CREATE_MO_ORDER_TR_TEMP \n // (NO_URUT,INVENTORY_ITEM_ID,QUANTITY,UOM,IP_ADDRESS,ORDER_NUMBER)\n // VALUES ('$data[NO_URUT]','$data[INVENTORY_ITEM_ID]','$data[QUANTITY]','$data[UOM]','$data[IP_ADDRESS]','$data[ORDER_NUMBER]');\";\n // $query = $this->oracle->query($sql);\n }", "function prepData($data)\r\n {\r\n \t$data['data']['Question']['master'] = $data['form']['master'];\r\n\t$data['data']['Question']['type'] = $data['form']['type'];\r\n\t$data['data']['Question']['count'] = $data['form']['data']['Question']['count'];\r\n\r\n\treturn $data;\r\n }", "protected function _prepareUpdateData($data) {\n $dataPrepared = array(\n 'name' => $data->getName(),\n 'module_id' => $data->getModule_id(),\n 'system' => $data->getSystem(),\n 'person_id' => $data->getPerson_id(),\n 'color' => $data->getColor(),\n );\n\n return $dataPrepared;\n }", "function prepareValue ($data)\n {\n return \"'\".pg_escape_string($data).\"'\";\n }", "public function prepare() {\n if (!isset($this->Created))\n $this->Created = date('YmdHis', time());\n\n if (isset($this->ConfirmPassword))\n unset($this->ConfirmPassword);\n\n $this->Password = Auth::getHash($this->Password);\n// $this->ProfileImage = $this->_processProfileImage();\n }", "protected function _prepareDataSource()\n {\n $studentDbTable = new Admin_Db_Table_Student();\n $this->setDataSource($studentDbTable->getByClasses(array($this->_options->classesId)));\n }" ]
[ "0.77594894", "0.7279711", "0.7135351", "0.7036927", "0.7015035", "0.68090016", "0.6750677", "0.6743331", "0.6688451", "0.6596149", "0.655019", "0.6514279", "0.64939564", "0.6490289", "0.6414656", "0.6399984", "0.6382684", "0.63788635", "0.63788635", "0.6376306", "0.63553476", "0.6335869", "0.6332286", "0.62400186", "0.62310207", "0.62279433", "0.62064767", "0.62032187", "0.618887", "0.6146469", "0.6131612", "0.6131366", "0.6118633", "0.6107047", "0.61066127", "0.60969406", "0.6056284", "0.60551465", "0.60484874", "0.6005463", "0.5984593", "0.5970837", "0.5970255", "0.59629494", "0.5959286", "0.5946295", "0.5940109", "0.59364647", "0.5929679", "0.5911518", "0.59020674", "0.58965194", "0.58963007", "0.58954644", "0.5894364", "0.5894364", "0.58878464", "0.5884164", "0.5874163", "0.5873545", "0.5868021", "0.5865376", "0.58553654", "0.58524597", "0.5841828", "0.58314484", "0.5823854", "0.5818554", "0.5815744", "0.5802456", "0.5800665", "0.5799123", "0.5795691", "0.57875735", "0.5780586", "0.5780506", "0.5777874", "0.5760925", "0.57606214", "0.575757", "0.5752847", "0.574883", "0.5742582", "0.5741529", "0.5740259", "0.5739157", "0.5736627", "0.5728366", "0.5726711", "0.5726224", "0.57207507", "0.5715905", "0.5711755", "0.57091826", "0.57091045", "0.57068753", "0.5702642", "0.56976444", "0.5690768", "0.56881166" ]
0.6669812
9
Prepare data for update
protected function _prepareUpdateData($data) { $dataPrepared = array( 'name' => $data->getName(), 'module_id' => $data->getModule_id(), 'system' => $data->getSystem(), 'person_id' => $data->getPerson_id(), 'color' => $data->getColor(), ); return $dataPrepared; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function prepareData();", "protected function prepareDataForUpdate(){\n\n\t\t// the object get by isUsing function\n\t\t$object = $this->_currentObject[$this->_model->alias];\n\t\t$post = $this->request->data;\n\t\tif (!$this->_model->validates()){\n\t\t\tthrow new NotFoundException($this->_model->getValidateMessage());\n\t\t}\n\t\tif ($object['assign_situation_id'] == 1 && $post['assign_situation_id'] == 2){\n\t\t\t// in this case we can update all\n\t\t\t$updateData = $post;\n\t\t}else {\n\t\t\tif (!in_array($post['assign_situation_id'], array(0,1,2,9))){\n\t\t\t\tthrow new Exception('assign_situation_id not in range (0,1,2,9)');\n\t\t\t}\n\t\t\t// only update assign situation\n\t\t\t$updateData = array(\n\t\t\t\t'id' => $post['id'],\n\t\t\t\t'assign_situation_id' => $post['assign_situation_id']\n\t\t\t);\n\t\t}\n\t\treturn $updateData;\n\t}", "abstract public function updateData();", "protected function prepareData()\n {\n parent::prepareData();\n $this->prepareConfigurableProductOptions();\n $this->prepareAttributeSet();\n }", "protected function rewriteData()\n\t{\n\t\t$db = $this->getDatabase();\n\n\t\t$fields = array('someval_facebook_valid', 'someval_facebook_type', 'someval_facebook_friends_or_likes',\n\t\t\t\t\t\t'someval_twitter_valid', 'someval_twitter_tweets', 'someval_twitter_followers', 'someval_twitter_following');\n\n\t\tforeach ($this->aData AS &$elm)\n\t\t{\n\t\t\t$query = $db->getQuery(true);\n\n\t\t\t$query->update($db->qn('#__accountdata'))\n\t\t\t\t\t->where('bid = ' . $elm->bid);\n\n\t\t\tforeach ($fields as $f)\n\t\t\t{\n\t\t\t\t$query->set($db->qn($f) . ' = ' . $db->q($elm->$f));\n\t\t\t}\n\n\t\t\t$db->setQuery($query);\n\n\t\t\tif (!$db->execute())\n\t\t\t{\n\t\t\t\tLog::add('Something went wrong for bid=:' . $elm->bid);\n\t\t\t}\n\t\t}\n\t}", "protected function preprocessData() {}", "protected function prepareAssignCatActionData()\n {\n foreach ($this->_data as $key => $value) {\n switch ($key) {\n case 'urlPath':\n $this->_urlPath = $value;\n break;\n case 'paramName':\n $this->_paramName = $value;\n break;\n default:\n $this->_additionalData[$key] = $value;\n break;\n }\n }\n }", "private function prepareData(){\n\t\t\t$this->text = trim($this->text);\n\t\t\t$this->user_id = intval($this->user_id);\n\t\t\t$this->parent_id = intval($this->parent_id);\n\t\t}", "abstract protected function prepareData( $data );", "protected function prepareMyData(){\n\t\tglobal $C;\n if( $this->id > 0 ){\n $this->get( \"`id`={$this->id}\" );\n $this->unstoreSfield();\n }\n\t\t$C->setID( $this->data['parent'] );\n\t\t$C->get( \"`id`={$this->data['parent']}\" );\n\t\t$C->unstoreSfield();\n $p = $C->getData();\n if( is_array( $p ) ){\n\t\t\tT::assign( \"parent\", $p[\"name\"] );\n\t\t\t$fieldlist=array();\n if( is_array( $p[\"fields\"] ) )\n foreach( $p[\"fields\"] as $key => $item ){\n $fieldlist[] = array( \"cnt\" => $key, \"name\" => $item, \"value\"=> $this->data[$this->sfield][$key] );\n }\n\t\t\tT::assign( \"fieldlist\", $fieldlist );\n }\n\t\tT::assign( \"f\", $this->sfield );\n\t\tT::assign( \"item\",$this->data );\t\t\n\t}", "public function updateAndProcess($data){\n if(is_array($data)){\n foreach($data as $k => $v) {\n if ( $v == \"\") {\n $data[$k] = NULL;\n }\n }\n if(!is_null($data['gridref'])) {\n $data = $this->_processFindspot($data);\n }\n }\n if(array_key_exists('csrf', $data)){\n unset($data['csrf']);\n }\n if(array_key_exists('landownername', $data)){\n unset($data['landownername']);\n }\n if(array_key_exists('parishID', $data) && !is_null($data['parishID'])){\n $parishes = new OsParishes();\n $data['parish'] = $parishes->fetchRow($parishes->select()->where('osID = ?', $data['parishID']))->label;\n }\n if(array_key_exists('countyID', $data) && !is_null($data['countyID'])){\n $counties = new OsCounties();\n $data['county'] = $counties->fetchRow($counties->select()->where('osID = ?', $data['countyID']))->label;\n }\n\n if(array_key_exists('districtID', $data) && !is_null($data['districtID'])){\n $district = new OsDistricts();\n $data['district'] = $district->fetchRow($district->select()->where('osID = ?', $data['districtID']))->label;\n }\n return $data;\n }", "protected function _updatefields() {}", "protected function _prepareSaveData($data = array())\n {\n if (isset($data['id']) && empty($data['id'])) {\n unset($data['id']);\n }\n\n if (isset($data['addl_category_id']) && empty($data['addl_category_id'])) {\n unset($data['addl_category_id']);\n }\n\n if (!empty($data['buyout_price']) && $data['listing_type'] == 'product') {\n $data['start_price'] = $data['buyout_price'];\n }\n\n $keysToUnset = array('rollback_data', 'active', 'approved', 'closed', 'deleted', 'nb_clicks');\n foreach ($keysToUnset as $keyToUnset) {\n if (array_key_exists($keyToUnset, $data)) {\n unset($data[$keyToUnset]);\n }\n }\n\n $startTime = time();\n if (isset($data['start_time_type'])) {\n switch ($data['start_time_type']) {\n case 1: // custom\n $startTime = strtotime($data['start_time']);\n $data['start_time'] = date('Y-m-d H:i:s', $startTime);\n $data['closed'] = 1;\n break;\n default: // now\n $data['start_time'] = new Expr('now()');\n break;\n }\n }\n else if (isset($data['start_time'])) {\n $startTime = strtotime($data['start_time']);\n }\n\n $endTime = null;\n\n $endTimeType = isset($data['end_time_type']) ? $data['end_time_type'] : 0;\n switch ($endTimeType) {\n case 1: // custom\n $endTime = strtotime($data['end_time']);\n $data['duration'] = new Expr('null');\n break;\n default: // duration\n if (!empty($data['duration'])) {\n if ($data['duration'] > 0) {\n $endTime = $startTime + $data['duration'] * 86400;\n }\n }\n break;\n }\n\n if ($endTime) {\n $data['end_time'] = date('Y-m-d H:i:s', $endTime);\n }\n else {\n $data['end_time'] = new Expr('null');\n }\n\n if (!empty($data['stock_levels'])) {\n foreach ($data['stock_levels'] as $key => $value) {\n if (!empty($value[StockLevels::FIELD_OPTIONS])) {\n $data['stock_levels'][$key][StockLevels::FIELD_OPTIONS] = \\Ppb\\Utility::unserialize($value[StockLevels::FIELD_OPTIONS]);\n }\n\n if (!empty($value[StockLevels::FIELD_QUANTITY])) {\n $data['stock_levels'][$key][StockLevels::FIELD_QUANTITY] = abs(intval($value[StockLevels::FIELD_QUANTITY]));\n }\n }\n }\n\n return parent::_prepareSaveData($data);\n }", "public function prepareData()\r\n {\r\n $users_model = new UsersModel();\r\n $users_all = $users_model->getAll(true, false, 'C_FULLNAME');\r\n $users = Groups::getUsers($this->group_id, 'C_FULLNAME');\r\n $users_include = array();\r\n \tforeach ($users as $user_info) {\r\n \t\t$users_include[$user_info['U_ID']] = array(\r\n \t\t\t$user_info['U_ID'],\r\n \t\t\t$user_info['C_FULLNAME']\r\n \t\t);\r\n \t} \r\n \t$users_exclude = array();\r\n \tforeach ($users_all as $user_info) {\r\n \t\tif (!isset($users_include[$user_info['U_ID']])) {\r\n\t \t\t$users_exclude[] = array(\r\n\t \t\t\t$user_info['U_ID'],\r\n\t \t\t\t$user_info['C_FULLNAME']\r\n\t \t\t);\r\n \t\t}\r\n \t}\r\n \t$this->smarty->assign('group_id', $this->group_id);\r\n \t$this->smarty->assign('users_in', json_encode(array_values($users_include)));\r\n \t$this->smarty->assign('users_out', json_encode($users_exclude)); \r\n }", "private function reformatData(): void\n {\n if($this->cover === \"null\") {\n $this->merge([ \"cover\"=> null ]);\n }\n }", "abstract function prepare_data(&$data_arr);", "protected function prepareUpdateData(){\n\t\tthrow new Exception('Unknown Error!', REST_ER_PAGE_NOTFOUND);\n\t}", "function prepare_update($id = '', $data = []){\n // if there is no data to set, then return an empty string\n if($data == [] || $id == ''){\n return '';\n }\n $set_sql = '';\n $where_sql = '';\n $set_sql = $this->create_set($data);\n // check again to make sure there were proper columns listed in the SET\n if(strlen($set_sql) == 0){\n return '';\n }\n\n $where_sql = $this->create_where($id, []);\n \n return \"UPDATE {$this->table_name} $set_sql $where_sql;\";\n }", "protected function prepareDataForSetData ($data)\n\t{\n\t\tif (!isset($data['lending']) || $data['lending'] == null) $data['lending'] = 0;\n\t\tif (!isset($data['stored']) || $data['stored'] == null) $data['stored'] = 0;\n\n\t\t// vars\n\t\t$isEdit = false;\n\t\t$newImage = false;\n\t\t$images = array ('image1', 'image2');\n\n\t\t// prepare\n\t\tforeach ($images as $fieldName) //\n\t\t{\n\t\t\tif (isset($data[$fieldName])){\n\t\t\t\t// if source is form posted form && upload array\n\t\t\t\tif (is_array($data[$fieldName]))\n\t\t\t\t{\n\t\t\t\t\t$isEdit = true; // set when post data from form\n\t\t\t\t\t// was a image uploaded?\n\t\t\t\t\t// --no\n\t\t\t\t\tif (isset($data[$fieldName]['error']) && $data[$fieldName]['error'] > 0) // check for concrete upload array key ['error'] && if error code != 0\n\t\t\t\t\t{\n\t\t\t\t\t\t// delete if error occurred\n\t\t\t\t\t\tunset ($data[ $fieldName ]); \t// from data set\n\t\t\t\t\t\tunset ($images[$fieldName]);\t\t\t// delete from $images\n\t\t\t\t\t}\n\t\t\t\t\t// --yes\n\t\t\t\t\telse $newImage = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// if data set is from form\n\t\tif ($isEdit)\n\t\t{\n\t\t\t// is planner object\n\t\t\t// --no\n\t\t\tif ($data['sitePlannerObject'] == '0' || $data['sitePlannerObject'] == null) $data['image'] = null;\n\t\t\t// --yes\n\t\t\telse {\n\t\t\t\t// check selection of witch image should be used\n\t\t\t\t// -- if not set (null) or \"0\" (drawing)\n\t\t\t\tif ($data['sitePlannerImage'] == NULL || $data['sitePlannerImage'] == \"0\")\n\t\t\t\t{\n\t\t\t\t\t$data['image'] = null;\n\t\t\t\t\t// add default values if nothing was set to avoid errors in SitePlanner\n\t\t\t\t\t$data['depth'] = ($data['depth'] == \"0\" || $data['depth'] == NULL) ? 100 : $data['depth'];\n\t\t\t\t\t$data['width'] = ($data['width'] == \"0\" || $data['width'] == NULL) ? 100 : $data['width'];\n\t\t\t\t\t// set diameter on 'width' if round shape was selected\n\t\t\t\t\tif ($data['shape'] == EEquipSitePlannerImage::ROUND_SHAPE)\n\t\t\t\t\t\t$data['width'] = $data['depth'];\n\t\t\t\t}\n\t\t\t\t// -- if an image was selected\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['image'] = ($data['sitePlannerImage'] == EEquipSitePlannerImage::IMAGE_2) ? $data['image2'] : $data['image1'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}", "protected function prepareForValidation()\n {\n $this->merge([\n 'nome' => $this->nome,\n 'nascimento' => convertDateToDatabase($this->nascimento),\n 'cpf' => returnOnlyNumbers($this->cpf),\n 'email' => $this->email,\n ]);\n }", "private function prepareData(){\n $this->params['crud_url'] = '/'.trim($this->params['crud_url'],'/');\n }", "private function prepare_data(){\r\n\t\t\t$this->data_table['cols'] = array();\r\n\t\t\t\r\n\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\tswitch($column_info['type']){\r\n\t\t\t\t\tcase 'number':\r\n\t\t\t\t\tcase 'float':\r\n\t\t\t\t\tcase 'currency':\r\n\t\t\t\t\t\t$column_info['type'] = 'number';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$column_info['type'] = 'string';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['cols'][] = array_merge(array('id' => $column_id), $column_info);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rows_count = sizeof(reset($this->data));\r\n\t\t\t\r\n\t\t\tfor($i = 0; $i < $rows_count; $i++){\r\n\t\t\t\t$c = array();\r\n\t\t\t\t\r\n\t\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\t\t$value = $this->data[$column_id][$i];\r\n\t\t\t\t\t$c[] = array('v' => $value);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['rows'][] = array('c' => $c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->data_table = json_encode($this->data_table);\r\n\t\t}", "public function prepareData()\r\n\t{\r\n\r\n\t\t// Get title and encode it\r\n\t\tif (empty($this->title)) {\r\n\t\t\t$this->title = urlencode(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')));\r\n\t\t}\r\n\r\n\t\t// Get current post permalink and encode it\r\n\t\tif (empty($this->shared_url)) {\r\n\t\t\t$this->shared_url = get_permalink(get_the_ID());\r\n\t\t}\r\n\r\n\t\t// Get excerpt and format it for Twitter\r\n\t\tif (empty($this->tweet)) {\r\n\t\t\t$tweet = (strlen(get_the_excerpt()) > 140) ? substr(get_the_excerpt(), 0, 140) . '...' : get_the_excerpt();\r\n\t\t\t$this->tweet = $tweet . ' ' . $this->shared_url;\r\n\t\t}\r\n\t}", "public function prepareUpdate(array $data): Company\n {\n return $this->update($data);\n }", "protected function cleanData(&$data){\n if(isset($data['field'])){\n $data['field'] = $this->getReference('User\\Entity\\Field', $data['field']['id']);\n }\n\t\tif(isset($data['style'])){\n $data['style'] = $this->getReference('User\\Entity\\Style', $data['style']['id']);\n }\n if(isset($data['sale'])){\n $data['sale'] = $this->getReference('User\\Entity\\Staff', $data['sale']['id']);\n }\n if(isset($data['pm'])){\n $data['pm'] = $this->getReference('User\\Entity\\Staff', $data['pm']['id']);\n }\n if(isset($data['client'])){\n $data['client'] = $this->getReference('\\User\\Entity\\User', $data['client']['id']);\n }\n if(isset($data['sourceLanguage'])){\n $data['sourceLanguage'] = $this->getReference('\\User\\Entity\\Language', $data['sourceLanguage']['id']);\n }\n if(isset($data['startDate'])){\n $data['startDate'] = new \\DateTime($data['startDate']);\n }\n\t\telse {\n\t\t\t$data['startDate'] = new \\DateTime('now');\n\t\t}\n if(isset($data['dueDate'])){\n $data['dueDate'] = new \\DateTime($data['dueDate']);\n }\n\t\telse {\n\t\t\t//$date_tmp = new \\DateTime($data['startDate']);\n\t\t\t$data['dueDate'] = $data['startDate']->add(new DateInterval('P30D'));\n\t\t}\n if(isset($data['status'])){\n $data['status'] = $data['status']['id'];\n }\n\t\tif(isset($data['currency']) && isset($data['currency']['id'])){\n $data['currency'] = $data['currency']['id'];\n }\n\t\tif(isset($data['transGraph']) && isset($data['transGraph']['id']) ){\n $data['transGraph'] = $data['transGraph']['id'];\n }\n\t\tif(isset($data['serviceLevel']) && isset($data['serviceLevel']['id'])){\n $data['serviceLevel'] = $data['serviceLevel']['id'];\n }\n\n\n if(isset($data['priority'])){\n $data['priority'] = $data['priority']['id'];\n }\n if(isset($data['serviceLevel'])) {\n $data['serviceLevel'] = $data['serviceLevel'];\n }\n if(isset($data['invoiceinfo'])) {\n \t$data['invoiceinfo'] = $data['invoiceinfo'];\n }\n if(isset($data['createType'])) {\n \t$data['createType'] = $data['createType'];\n }\n\n if(isset($data['types'])){\n $arr = [];\n foreach($data['types'] as $type){\n $arr[] = $type['id'];\n }\n $data['types'] = $arr;\n }\n\t\telse{\n\t\t\t$arr = [];\n\t\t\tif($data['createType']=='orderTranslationNonContract' || $data['createType'] == 'landingOrder')\n\t\t\t\t$arr[] = 1;\n\t\t\telse\n\t\t\t\t$arr[] = 1;\n\t\t\t$data['types'] = $arr;\n\t\t}\n }", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "function prepData($data)\r\n {\r\n \t$data['data']['Question']['master'] = $data['form']['master'];\r\n\t$data['data']['Question']['type'] = $data['form']['type'];\r\n\t$data['data']['Question']['count'] = $data['form']['data']['Question']['count'];\r\n\r\n\treturn $data;\r\n }", "protected function _flushVars() {\n if (isset($this->LdapObject->id)) {\n $this->LdapObject->id = null;\n }\n if (isset($this->LdapObject->primaryKey)) {\n $this->LdapObject->primaryKey = 'uid';\n }\n \n $this->sforceData = array();\n $this->stagingData = array();\n $this->ldapData = array();\n $this->syncOperation = 'nothing';\n \n }", "protected function prepareForValidation()\n {\n $merge = [];\n\n if ($this->valtotal) {\n $merge['valtotal'] = Format::strToFloat($this->valtotal);\n }\n\n $this->merge($merge);\n }", "protected function setPutData()\n\t{\n\t\t$this->request->addPostFields($this->query->getParams());\n\t}", "protected function prepareUpdateData(array &$aData): Base\n {\n return $this;\n }", "public function prepareBeforeUpdate(array $data): array\n {\n return $data;\n }", "public function prepareData($data)\n\t{\t\n\t\t/**\n\t\t * Fill the data (specially for the 'active', 'inactive', 'supporter' and 'newsletter':\n\t\t * they could not exist in the array when the box is not checked and in this case, the default value would be\n\t\t * used instead of the '0' one\n\t\t */\n\t\tarray_key_exists('active', $data) ? $data['active'] = '1' : $data['active'] = '0';\n\t\tarray_key_exists('inactive', $data) ? $data['inactive'] = '1' : $data['inactive'] = '0';\n\t\tarray_key_exists('supporter', $data) ? $data['supporter'] = '1' : $data['supporter'] = '0';\n\t\tarray_key_exists('newsletter', $data) ? $data['newsletter'] = '1' : $data['newsletter'] = '0';\n\n\t\treturn $data;\n\t}", "public function updateMultiple_data()\n {\n \n }", "function prepareData()\r\n\t{\r\n\t\treturn true;\r\n\t}", "abstract protected function prepareVars(array $data);", "protected function prepareForValidation()\n {\n\n $attrs = $this->all();\n $attrs['day'] = ucfirst($attrs['day']);\n $hours = $this->transformHoursAndMinutes();\n $attrs['time_start'] = $hours[0];\n $attrs['time_end'] = $hours[1];\n $this->replace($attrs);\n }", "public function update($data) { \n\n\t\tif ($data['name'] != $this->name) { \n\t\t\t$this->update_name($data['name']); \n\t\t} \n\t\tif ($data['pl_type'] != $this->type) { \n\t\t\t$this->update_type($data['pl_type']); \n\t\t} \n\n\t}", "private function internalUpdate()\n {\n $param = array();\n\n // Run before update methods and stop here if the return bool false\n if ($this->runBefore('update') === false)\n return false;\n\n // Define fieldlist array\n $fieldlist = array();\n\n // Build updatefields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n $val = $this->checkFieldvalue($fld, $val);\n $type = $val == 'NULL' ? 'raw' : $this->getFieldtype($fld);\n\n $fieldlist[] = $this->alias . '.' . $fld . '={' . $type . ':' . $fld . '}';\n $param[$fld] = $val;\n }\n\n // Create filter\n $filter = ' WHERE ' . $this->alias . '.' . $this->pk . '={' . $this->getFieldtype($this->pk) . ':' . $this->pk . '}';\n\n // Even if the pk value is present in data, we set this param manually to prevent errors\n $param[$this->pk] = $this->data->{$this->pk};\n\n // Build fieldlist\n $fieldlist = implode(', ', $fieldlist);\n\n // Create complete sql string\n $sql = \"UPDATE {db_prefix}{$this->tbl} AS {$this->alias} SET {$fieldlist}{$filter}\";\n\n // Run query\n $this->db->query($sql, $param);\n\n // Run after update event methods\n if ($this->runAfter('update') === false)\n return false;\n }", "public function prepareUpdate() {\n $this->connection->update($this->mapTable)\n ->fields(array('needs_update' => MigrateMap::STATUS_NEEDS_UPDATE))\n ->execute();\n }", "function update() {\n $col_names = array('first_name', 'last_name', 'category_id', 'active');\n $dat_param = array(':fn', ':ln', ':ci', ':ac');\n $sani_type = array('str', 'str', 'int', 'flag');\n $sub_check = array(false, false, false, false);\n $dat_types = array(PDO::PARAM_STR, PDO::PARAM_STR, PDO::PARAM_INT, PDO::PARAM_INT);\n\n $any_sub = false;\n\n //make sure non-optional data is set\n if (!isset($this->id)) throw new Exception('id must be provided');\n if (!isset($this->updated_by)) throw new Exception('updated_by must be provided'); \n\n $update_string = \"updated_by=:ub\";\n \n //check if updateable data exists, sanitize it, build up the update string:\n //a) loop through the updateable parameters\n for ($i = 0; $i < count($col_names); $i++) {\n\n //b) if it is set, attempt to sanitize/check it for update\n if (isset($this->{$col_names[$i]})) {\n $any_sub = true;\n $sub_check[$i] = true;\n $update_string .= \", {$col_names[$i]}={$dat_param[$i]}\";\n\n //c) sanitize/check by type\n if ($sani_type[$i] === 'str') {\n $this->{$col_names[$i]} = htmlspecialchars(strip_tags($this->{$col_names[$i]}));\n\n } elseif ($sani_type[$i] === 'flag') {\n if ( !($this->{$col_names[$i]} === 0 || $this->{$col_names[$i]} === 1) ) {\n throw new Exception(\"{$col_names[$i]} must be either 0 or 1\");\n }\n } elseif ($sani_type[$i] === 'int') {\n if (filter_var($this->{$col_names[$i]}, FILTER_VALIDATE_INT) === false) {\n throw new Exception('category_id does not conform');\n }\n }\n }\n } \n\n if (!$any_sub) throw new Exception('no data was submitted for staff member update.');\n \n $sql = \"UPDATE \n {$this->table_name}\n SET\n {$update_string}\n WHERE\n id=:id\";\n\n $stmt = $this->conn->prepare($sql);\n \n //bind the non-optional data to the query\n $stmt->bindParam(':id', $this->id, PDO::PARAM_INT);\n $stmt->bindParam(':ub', $this->updated_by, PDO::PARAM_STR);\n\n //if the data was found and sanitized, then bind the data to the parameter\n for ($i=0; $i < count($col_names); $i++) { \n if ($sub_check[$i] === true) {\n $stmt->bindParam($dat_param[$i], $this->{$col_names[$i]}, $dat_types[$i]);\n }\n }\n \n // execute query\n $stmt->execute();\n \n return $stmt;\n }", "public function updateData()\n {\n try {\n// echo \"<pre>\";\n// print_r($this->where);\n// print_r($this->insertUpdateArray);\n// exit;\n DB::table($this->dbTable)\n ->where($this->where)\n ->update($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n }", "private function initData()\n {\n $data = $this->cache->load($this->cacheId);\n if (false === $data) {\n /** @var Reader $reader */\n $reader = $this->readerFactory->create(\n ['fileName' => sprintf(self::SEARCH_PATTERN, $this->componentName)]\n );\n $data = $reader->read();\n $this->cache->save($this->serializer->serialize($data), $this->cacheId);\n } else {\n $data = $this->serializer->unserialize($data);\n }\n\n if (!empty($data)) {\n $this->data[$this->componentName] = [Converter::DATA_ATTRIBUTES_KEY => ['name' => $this->componentName]];\n $this->merge([$this->componentName => $data]);\n $this->data = $this->evaluateComponentArguments($this->data);\n }\n }", "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n\n $this->vars['model'] = $this->model;\n $this->vars['category'] = Kategory::where(\"is_active\", \"1\")->lists('name', 'id');\n if (!empty($this->getLoadValue())) {\n $a= $this->vars['value'] = $this->getLoadValue();\n } else {\n $a= $this->vars['value'] = [];\n }\n }", "protected function _prepareSaveData($data = array())\n {\n $data = parent::_prepareSaveData($data);\n\n if (!array_key_exists('user_id', $data) && $this->_userId !== null) {\n $data['user_id'] = $this->_userId;\n }\n\n if (!array_key_exists('refund_flag', $data) && $this->_refundFlag !== null) {\n $data['refund_flag'] = $this->_refundFlag;\n }\n\n if (!array_key_exists('listing_id', $data) && $this->_listingId !== null) {\n $data['listing_id'] = $this->_listingId;\n }\n\n if (!array_key_exists('sale_id', $data) && $this->_saleId !== null) {\n $data['sale_id'] = $this->_saleId;\n }\n\n if (!array_key_exists('gateway_id', $data) && $this->_gatewayId !== null) {\n $data['gateway_id'] = $this->_gatewayId;\n }\n\n return $data;\n }", "public function updateSource() {\n if (!empty($this->imported)) {\n $data = $this->source->data;\n if (empty($data)) {\n $data = array();\n }\n foreach ($this->imported as $key) {\n $data[] = $key;\n }\n $this->source->data = $data;\n $this->source->last_updated = date('Y-m-d H:i:s', strtotime('now'));\n $this->source->save();\n $this->imported = array();\n }\n }", "public function updateData()\n {\n return ([\n [\"2\", \"9898989898\", \"pune\", 302, \"manager-records\"]\n ]);\n }", "function Update()\n\t{\n\t\tglobal $dal_info;\n\t\t\n\t\t$tableinfo = &$dal_info[ $this->infoKey ];\n\t\t$updateParam = \"\";\n\t\t$updateValue = \"\";\n\t\t$blobs = array();\n\n\t\tforeach($tableinfo as $fieldname => $fld)\n\t\t{\n\t\t\t$command = 'if(isset($this->'.$fld['varname'].')) { ';\n\t\t\tif( $fld[\"key\"] )\n\t\t\t\t$command.= '$this->Param[\\''.escapesq($fieldname).'\\'] = $this->'.$fld['varname'].';';\n\t\t\telse\n\t\t\t\t$command.= '$this->Value[\\''.escapesq($fieldname).'\\'] = $this->'.$fld['varname'].';';\n\t\t\t$command.= ' }';\n\t\t\t\n\t\t\teval($command);\n\t\t\t\n\t\t\tif( !$fld[\"key\"] && !array_key_exists( strtoupper($fieldname), array_change_key_case($this->Param, CASE_UPPER) ) )\n\t\t\t{\n\t\t\t\tforeach($this->Value as $field => $value)\n\t\t\t\t{\n\t\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t$updateValue.= $this->_connection->addFieldWrappers( $fieldname ).\"=\".$this->PrepareValue($value, $fld[\"type\"]) . \", \";\n\t\t\t\t\t\n\t\t\t\t\tif( $this->_connection->dbType == nDATABASE_Oracle || $this->_connection->dbType == nDATABASE_DB2 || $this->_connection->dbType == nDATABASE_Informix )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( IsBinaryType( $fld[\"type\"] ) )\n\t\t\t\t\t\t\t$blobs[ $fieldname ] = $value;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif( $this->_connection->dbType == nDATABASE_Informix && IsTextType( $fld[\"type\"] ) )\t\n\t\t\t\t\t\t\t$blobs[ $fieldname ] = $value;\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach($this->Param as $field=>$value)\n\t\t\t\t{\n\t\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t$updateParam.= $this->_connection->addFieldWrappers( $fieldname ).\"=\".$this->PrepareValue($value, $fld[\"type\"]) . \" and \";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//\tconstruct SQL and do update\t\n\t\tif ($updateParam)\n\t\t\t$updateParam = substr($updateParam, 0, -5);\n\t\tif ($updateValue)\n\t\t\t$updateValue = substr($updateValue, 0, -2);\n\t\t\t\n\t\tif ($updateValue && $updateParam)\n\t\t{\n\t\t\t$dalSQL = \"update \".$this->_connection->addTableWrappers( $this->m_TableName ).\" set \".$updateValue.\" where \".$updateParam;\n\t\t\t$this->Execute_Query($blobs, $dalSQL, $tableinfo);\n\t\t}\n\n\t\t//\tcleanup\n\t\t$this->Reset();\n\t}", "public function prepareVars()\n {\n $this->vars['history'] = $this->model->revision_history;\n $this->vars['chapter_id'] = $this->model->id;\n }", "protected function _prepareInsertData($data) {\n $dataPrepared = $this->_prepareUpdateData($data);\n\n return $dataPrepared;\n }", "public function prepareForValidation(): void\n {\n $products = [];\n foreach ($this->products as $key => $product) {\n $products['products'][$key] = [\n 'id' => $product['id'],\n 'qty' => $product['qty'],\n 'product' => Product::find($product['id']),\n ];\n }\n\n $this->merge($products);\n }", "private function _set_fields()\n {\n @$this->form_data->question_id = 0;\n\n $this->form_data->category_id = 0;\n $this->form_data->sub_category_id = 0;\n $this->form_data->sub_two_category_id = 0;\n $this->form_data->sub_three_category_id = 0;\n $this->form_data->sub_four_category_id = 0;\n\n $this->form_data->ques_text = '';\n $this->form_data->survey_weight = '';\n $this->form_data->ques_type = '';\n $this->form_data->qus_fixed = 0;\n $this->form_data->ques_expiry_date = '';\n\n\n $this->form_data->filter_question = '';\n $this->form_data->filter_category = 0;\n $this->form_data->filter_type = '';\n $this->form_data->filter_expired = '';\n }", "public function upData($data, $where){\n // return $data;\n // return $this->data($data,true)->isUpdate(true)->save();\n // return db('ArticleOrder')->where($where)->save($data);\n return $this->allowField(true)->save($data,$where);\n }", "private function commonStoreUpdate(array $raw_data){\n (!$logo_id = array_deep_search( $raw_data, 'logo_id')) ? : $modified_data['logo_id'] = (int)$logo_id;\n (!$city_id = array_deep_search( $raw_data, 'city_id')) ? : $modified_data['city_id'] = (int)$city_id;\n (!$region_id = array_deep_search( $raw_data, 'region_id')) ? : $modified_data['region_id'] = (int)$region_id;\n (!$town_id = array_deep_search( $raw_data, 'town_id')) ? : $modified_data['town_id'] = (int)$town_id;\n (!$postcode_id = array_deep_search( $raw_data, 'postcode_id')) ? : $modified_data['postcode_id'] = (int)$postcode_id;\n (!$industry_id = array_deep_search( $raw_data, 'industry_id')) ? : $modified_data['industry_id'] = (int)$industry_id;\n (!$business_type_ids = array_deep_search( $raw_data, 'business_type_ids')) ? : $modified_data['business_type_ids'] = array_map( 'intval', $business_type_ids);\n $is_active = array_deep_search($raw_data, 'is_active');\n if ( $is_active ) {\n $modified_data['is_active'] = (\"false\" !== $is_active) ? TRUE : FALSE;\n }//if ( $is_active )\n (!$business_name = array_deep_search( $raw_data, 'business_name')) ? : $modified_data['business_name'] = (string)$business_name;\n (!$trading_name = array_deep_search( $raw_data, 'trading_name')) ? : $modified_data['trading_name'] = (string)$trading_name;\n (!$bank_account_number = array_deep_search( $raw_data, 'bank_account_number')) ? : $modified_data['bank_account_number'] = (string)$bank_account_number;\n (!$address1 = array_deep_search( $raw_data, 'address1')) ? : $modified_data['address1'] = (string)$address1;\n (!$address2 = array_deep_search( $raw_data, 'address2')) ? : $modified_data['address2'] = (string)$address2;\n (!$phone = array_deep_search( $raw_data, 'phone')) ? : $modified_data['phone'] = (string)$phone;\n (!$website = array_deep_search( $raw_data, 'website')) ? : $modified_data['website'] = (string)$website;\n (!$business_email = array_deep_search( $raw_data, 'business_email')) ? : $modified_data['business_email'] = (string)$business_email;\n (!$contact_name = array_deep_search( $raw_data, 'contact_name')) ? : $modified_data['contact_name'] = (string)$contact_name;\n (!$contact_mobile = array_deep_search( $raw_data, 'contact_mobile')) ? : $modified_data['contact_mobile'] = (string)$contact_mobile;\n $is_featured = array_deep_search($raw_data, 'is_featured');\n if ( $is_featured ) {\n $modified_data['is_featured'] = (\"false\" !== $is_featured) ? TRUE : FALSE;\n }//if ( $is_featured )\n $is_display = array_deep_search($raw_data, 'is_display');\n if ( $is_display ) {\n $modified_data['is_display'] = (\"false\" !== $is_display) ? TRUE : FALSE;\n }//if ( $is_display )\n (!$available_hours_mon = array_deep_search( $raw_data, 'available_hours_mon')) ? : $modified_data['available_hours_mon'] = (string)$available_hours_mon;\n (!$available_hours_tue = array_deep_search( $raw_data, 'available_hours_tue')) ? : $modified_data['available_hours_tue'] = (string)$available_hours_tue;\n (!$available_hours_wed = array_deep_search( $raw_data, 'available_hours_wed')) ? : $modified_data['available_hours_wed'] = (string)$available_hours_wed;\n (!$available_hours_thu = array_deep_search( $raw_data, 'available_hours_thu')) ? : $modified_data['available_hours_thu'] = (string)$available_hours_thu;\n (!$available_hours_fri = array_deep_search( $raw_data, 'available_hours_fri')) ? : $modified_data['available_hours_fri'] = (string)$available_hours_fri;\n (!$available_hours_sat = array_deep_search( $raw_data, 'available_hours_sat')) ? : $modified_data['available_hours_sat'] = (string)$available_hours_sat;\n (!$available_hours_sun = array_deep_search( $raw_data, 'available_hours_sun')) ? : $modified_data['available_hours_sun'] = (string)$available_hours_sun;\n return $modified_data;\n }", "protected function setUpdateArray() {\n $column_names = getColumnNames($this->table_name);\n foreach ($column_names as $column_name) {\n if (isset($_POST[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_POST[$column_name]);\n } else if (isset($_GET[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_GET[$column_name]);\n }\n }\n }", "function prepareFields() {\r\n\t\t$data = array_keys($this->modx->getFieldMeta('msProductData'));\r\n\t\tforeach ($this->resourceArray as $k => $v) {\r\n\t\t\tif (is_array($v) && in_array($k, $data)) {\r\n\t\t\t\t$tmp = $this->resourceArray[$k];\r\n\t\t\t\t$this->resourceArray[$k] = array();\r\n\t\t\t\tforeach ($tmp as $v2) {\r\n\t\t\t\t\tif (!empty($v2)) {\r\n\t\t\t\t\t\t$this->resourceArray[$k][] = array('value' => $v2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (empty($this->resourceArray['vendor'])) {\r\n\t\t\t$this->resourceArray['vendor'] = '';\r\n\t\t}\r\n\t}", "protected function update() {}", "protected function prepare_fields()\n {\n }", "public function prepareData($shipping_info)\n {\n $this->shipping_info = $shipping_info;\n $this->company_id = Registry::get('runtime.company_id');\n }", "public function prepareListingLocationData()\n {\n foreach ($GLOBALS['listing'] as $group) {\n foreach ($group['Fields'] as $field) {\n if (isset($this->geo_filter_data['location_listing_fields'][$field['Key']])) {\n $this->listing_location_data[] = $field['value'];\n }\n }\n }\n }", "public function prepare(){\n\t\treturn array(\n\t\t\t'modified_at' => $modified_at,\n\t\t\t'modified_by' => $modified_by );\t\t\n\t}", "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }", "public function prepareVars()\n {\n $this->vars['defaultCurrency'] = $this->defaultCurrency;\n $this->vars['defaultValue'] = $this->getPriceValue($this->defaultCurrency->id);\n $this->vars['currencies'] = Currency::orderBy('sort_order', 'ASC')->get();\n $this->vars['field'] = $this->formField;\n }", "public function data(){\n\t\t$get_data = json_decode($_GET['data']);\n\t\t//update db\n\t\tforeach($get_data as $key=>$value){\n\t\t\t$data = array(\n\t\t\t\t'slide_order'=>$key+1,\n\t\t\t);\n\t\t\t$this->slide_model->update($value->id,$data);\n\t\t}\n\t}", "public function processBind()\n {\n $bind = [];\n\n foreach ($this->fields as $field)\n {\n\n if($field == $this->tablePK)\n {\n $bind[\":id\"] = $this->data[$field];\n }\n else\n {\n $bind[\":$field\"] = $this->data[$field];\n }\n }\n $this->bind = $bind;\n }", "protected function prepareForValidation()\n {\n $this->merge([\n self::ATTRIBUTE_REFERER => $this->prepareArray($this->input(self::ATTRIBUTE_REFERER)),\n self::ATTRIBUTE_IP => $this->prepareArray($this->input(self::ATTRIBUTE_IP)),\n ]);\n }", "public function prepAttributesForSave()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\t$this->setAttribute($name, ModelHelper::packageAttributeValue($config, $value, true));\n\t\t}\n\n\t\t// Populate dateCreated and uid if this is a new record\n\t\tif ($this->isNewRecord())\n\t\t{\n\t\t\t$this->dateCreated = DateTimeHelper::currentTimeForDb();\n\t\t\t$this->uid = StringHelper::UUID();\n\t\t}\n\n\t\t// Update the dateUpdated\n\t\t$this->dateUpdated = DateTimeHelper::currentTimeForDb();\n\t}", "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName() . '[]';\n\n $this->vars['model'] = $this->model;\n $this->vars['subscribers'] = Subscriber::all()->lists('count', 'id');\n if (!empty($this->getLoadValue())) {\n $this->vars['value'] = $this->getLoadValue();\n } else {\n $this->vars['value'] = [];\n }\n\n }", "public function processData() {\n\t\t$GLOBALS['TCA'] = \\BusyNoggin\\BnBackend\\BackendLibrary::removeExcludeFields($GLOBALS['TCA']);\n\t}", "private function getPrepared()\n {\n $array = $this->ToArray();\n unset($array['currentPage']);\n unset($array['pageCount']);\n unset($array['errors']);\n unset($array['insert']);\n unset($array['table']);\n unset($array['Adapter']);\n unset($array['pdoFetch']);\n unset($array['cmsFetchMode']);\n unset($array[$this->primaryName]);\n unset($array['primaryName']);\n $prepared['update'] = '';\n foreach($array as $k=>$v)\n {\n $prepared['values'][':'.$k] = $v;\n $prepared['update'] .= '`'.$k.'`'.\"=\".':'.$k.',';\n }\n if ($prepared['update']{strlen($prepared['update'])-1} == ',')\n {\n $prepared['update'] = substr($prepared['update'],0,-1);\n }\n $prepared['set'] = implode(', ', array_keys($array));\n return $prepared;\n }", "function lazyUpdate($table, $where, $data){\n \t$sql = 'SHOW COLUMNS FROM '.$table.';';//fetch all columns\n \t$query = mysql_query($sql);\n \t$set = '';\n \twhile($column = mysql_fetch_array($query)){\n \t\t//create the field- and value string\n \t\tif(isset($data[$column['Field']])){\n \t\t\t$set .= $column['Field'].'=\\''.mysql_real_escape_string($data[$column['Field']]).'\\', ';\n \t\t}\n \t}\n \t$set = substr($set,0,-2);\n \treturn mysql_query('UPDATE '.$table.' SET '.$set.' WHERE '.$where.';');//insert the data\n }", "protected function _prepareDataForUpdate(array $rowData):array\n {\n $multiSeparator = $this->getMultipleValueSeparator();\n $email = strtolower($rowData[self::COLUMN_EMAIL]);\n $customerId = $this->_getCustomerId($email, $rowData[self::COLUMN_WEBSITE]);\n // entity table data\n $entityRowNew = [];\n $entityRowUpdate = [];\n // attribute values\n $attributes = [];\n // customer default addresses\n $defaults = [];\n $newAddress = true;\n // get address id\n if ($rowData[self::COLUMN_ADDRESS_ID]\n && $this->addressStorage->doesExist(\n $rowData[self::COLUMN_ADDRESS_ID],\n (string)$customerId\n )\n ) {\n $newAddress = false;\n $addressId = $rowData[self::COLUMN_ADDRESS_ID];\n } else {\n $addressId = $this->_getNextEntityId();\n }\n $entityRow = [\n 'entity_id' => $addressId,\n 'parent_id' => $customerId,\n 'updated_at' => (new \\DateTime())->format(\\Magento\\Framework\\Stdlib\\DateTime::DATETIME_PHP_FORMAT),\n ];\n $websiteId = $this->_websiteCodeToId[$rowData[self::COLUMN_WEBSITE]];\n\n foreach ($this->_attributes as $attributeAlias => $attributeParams) {\n if (array_key_exists($attributeAlias, $rowData)) {\n $attributeParams = $this->adjustAttributeDataForWebsite($attributeParams, $websiteId);\n\n if (!strlen($rowData[$attributeAlias])) {\n if ($newAddress) {\n $value = null;\n } else {\n continue;\n }\n } elseif ($newAddress && !strlen($rowData[$attributeAlias])) {\n } elseif (in_array($attributeParams['type'], ['select', 'boolean'])) {\n $value = $this->getSelectAttrIdByValue($attributeParams, mb_strtolower($rowData[$attributeAlias]));\n } elseif ('datetime' == $attributeParams['type']) {\n $value = (new \\DateTime())->setTimestamp(strtotime($rowData[$attributeAlias]));\n $value = $value->format(\\Magento\\Framework\\Stdlib\\DateTime::DATETIME_PHP_FORMAT);\n } elseif ('multiselect' == $attributeParams['type']) {\n $ids = [];\n foreach (explode($multiSeparator, mb_strtolower($rowData[$attributeAlias])) as $subValue) {\n $ids[] = $this->getSelectAttrIdByValue($attributeParams, $subValue);\n }\n $value = implode(',', $ids);\n } else {\n $value = $rowData[$attributeAlias];\n }\n if ($attributeParams['is_static']) {\n $entityRow[$attributeAlias] = $value;\n } else {\n $attributes[$attributeParams['table']][$addressId][$attributeParams['id']]= $value;\n }\n }\n }\n foreach (self::getDefaultAddressAttributeMapping() as $columnName => $attributeCode) {\n if (!empty($rowData[$columnName])) {\n /** @var $attribute \\Magento\\Eav\\Model\\Entity\\Attribute\\AbstractAttribute */\n $table = $this->_getCustomerEntity()->getResource()->getTable('customer_entity');\n $defaults[$table][$customerId][$attributeCode] = $addressId;\n }\n }\n // let's try to find region ID\n $entityRow['region_id'] = null;\n if (!empty($rowData[self::COLUMN_REGION])) {\n $countryNormalized = strtolower($rowData[self::COLUMN_COUNTRY_ID]);\n $regionNormalized = strtolower($rowData[self::COLUMN_REGION]);\n\n if (isset($this->_countryRegions[$countryNormalized][$regionNormalized])) {\n $regionId = $this->_countryRegions[$countryNormalized][$regionNormalized];\n $entityRow[self::COLUMN_REGION] = $this->_regions[$regionId];\n $entityRow['region_id'] = $regionId;\n }\n }\n if ($newAddress) {\n $entityRowNew = $entityRow;\n $entityRowNew['created_at'] =\n (new \\DateTime())->format(\\Magento\\Framework\\Stdlib\\DateTime::DATETIME_PHP_FORMAT);\n } else {\n $entityRowUpdate = $entityRow;\n }\n\n return [\n 'entity_row_new' => $entityRowNew,\n 'entity_row_update' => $entityRowUpdate,\n 'attributes' => $attributes,\n 'defaults' => $defaults\n ];\n }", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->data = $this->data['value'];\r\r\n }\r\r\n }", "public function prepare( $data );", "public function prepare(){\n\t\treturn array(\n\t\t\t'creationData' => $this->creationData->prepare(),\n\t\t\t'modificationHistory' => $this->modificationHistory->prepare() );\t\t\n\t}", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->e_data = $this->decode_param($this->data['value']);\r\r\n $this->data = $this->encode_param($this->data['value']);\r\r\n } else {\r\r\n // POST method or something else\r\r\n $this->e_data = $this->decode_param($this->data);\r\r\n $this->data = $this->encode_param($this->data);\r\r\n }\r\r\n // All keys are srings in array, merge it with defaults to override\r\r\n $this->e_data = array_merge($this->default_options, $this->e_data);\r\r\n /**\r\r\n * At this point the this->data variable surely contains the encoded data, no matter what.\r\r\n */\r\r\n }", "public function setData(array $data){\n $this->copyfrom($data, ['statusId', 'locked', 'rallyUpdated', 'position', 'description']);\n }", "protected function prepareForValidation()\n {\n $this->merge([\n 'insumos' => json_decode($this->insumos, true),\n ]);\n }", "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->getLoadValue();\n $this->vars['model'] = $this->model;\n }", "public function setData() {\n\t\t$this->import($this->get());\n\t}", "private function prepareAttachmentData() {\n $this->attachmentMediaFiles = [];\n\n // Prepare the gallery images. This should be called before prepareImageData. Otherwise, if there are duplicate\n // image URLs and prepareImageData finds them first, gallery images won't be saved. In other words, the images\n // that are marked as \"gallery_image\" will be skipped since their URLs were already saved. So, gallery image\n // data preparation is first.\n $this->prepareGalleryFileData();\n\n // Prepare the images\n $this->prepareFileData();\n\n // Set the attachment media files\n $this->postData->setAttachmentData($this->attachmentMediaFiles);\n }", "protected function _resetData()\n\t{\n\n\t\t// clean data, total and pagination, as we need them rebuilt\n\t\t$this->_data = null;\n\t\t$this->_total = null;\n\t\t$this->_pagination = null;\n\t}", "public function prepareData($data)\n {\n $this->requestModel = new Request();\n $this->requestModel->setPostMethod();\n $this->requestModel->setBody(json_encode($data));\n $this->requestModel->setApiUrl($this->connector->getBaseApiUrl() . $this->apiUrl);\n }", "public function __reFill(){\n foreach ($this->data as $key=>$datum) {\n $name = @$this->struct['fieldsDB'][$key];\n if ($name!==null) $this->filled[$name] = true;\n }\n }", "protected function _prep_args() {\n\t\t// this is the data prepared for binding.\n\t\t// these fields are ordered as they are in the table\n\t\t$args = array(\n\t\t\t'the_id' => $this->id,\n\t\t\t'date_created' => $this->date_created,\n\t\t\t'completed' => $this->completed,\n\t\t\t'template_id' => $this->template_id,\n\t\t);\n\n\t\treturn $args;\n\t}", "private function _set_fields()\n {\n @$this->form_data->survey_id = 0;\n $this->form_data->survey_title = '';\n $this->form_data->survey_description = '';\n $this->form_data->survey_status = 'open';\n $this->form_data->survey_anms = 'yes';\n $this->form_data->survey_expiry_date = '';\n $this->form_data->question_ids = array();\n\n $this->form_data->filter_survey_title = '';\n $this->form_data->filter_status = '';\n }", "public function updateData(array $data);", "abstract public function prepareToStore();", "function setRowDatas(&$row) {\r\n\t\t/* for optimization reason, do not save row. save just needed parameters */\r\n\r\n\t\t//$this->_specific_data\t= isset($row->specific) ? $row->specific : '';\r\n\t}", "function _prepare_filter_data () {\n\t\t// Filter session array name\n\t\t$this->_filter_name\t= $_GET[\"object\"].\"_filter\";\n\t\t// Connect common used arrays\n\t\tif (file_exists(INCLUDE_PATH.\"common_code.php\")) {\n\t\t\tinclude (INCLUDE_PATH.\"common_code.php\");\n\t\t}\n\t\t// Fields in the filter\n\t\t$this->_fields_in_filter = array(\n\t\t\t\"engine\",\n\t\t\t\"text\",\n\t\t);\n\t}", "protected function _beforeSave()\n {\n $this->_prepareData();\n return parent::_beforeSave();\n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function updateData()\n\t{\n\t\tif(empty($this->_queryIds))\n\t\t\tthrow new Exception('Unable to update, no data!');\n\t\t\n\t\t$sQueryIds = implode(', ', $this->_queryIds);\n\t\t$iTimeStamp = time();\n\n\t\t$sSql = \"UPDATE se_query SET xml_parsed = 1, pingback_timestamp = $iTimeStamp WHERE id IN ($sQueryIds)\";\n\t\t$this->_db->query($sSql);\n\t\t\n\t\t$this->_queryIds = array();\n\t}", "function prepareForCopy() {\n\t\t$this->id = null;\n\t}", "public function updateData(){\n try{\n $this->dbConnection->query($this->query);\n $this->message = $this->moduleName.' Successfully Updated';\n $this->data = array();\n $this->data['id'] = $this->dbConnection->lastInsertId();\n $this->sendJSONResponse();\n \n }catch( PDOException $ex ) {\n $this->message = 'Error storing '.$this->moduleName.' :'. $ex->getMessage();\n $this->sendJSONErrorReponse();\n }\n }", "protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }", "protected function processData($data)\n {\n $this->data = array_replace_recursive($this->data, $data);\n }", "private function _prepareUpdateString($data) {\n /**\n * @ Incoming $data looks like:\n * $data = array('field' => 'value', 'field2'=> 'value2');\n */\n $fieldDetails = NULL;\n foreach ($data as $key => $value) {\n $fieldDetails .= \"$key=:$key, \";/** Notice the space after the comma */\n }\n $fieldDetails = rtrim($fieldDetails, ', ');/** Notice the space after the comma */\n return $fieldDetails;\n }", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }" ]
[ "0.7103722", "0.7100322", "0.6887894", "0.6813769", "0.6648072", "0.65205246", "0.65174204", "0.65110296", "0.64727515", "0.64644086", "0.64620405", "0.64552224", "0.6392809", "0.6330844", "0.63108474", "0.6304468", "0.62723124", "0.6270269", "0.6261377", "0.6257602", "0.62393785", "0.62253654", "0.61780035", "0.61685073", "0.61489224", "0.61462075", "0.6125947", "0.6124659", "0.6114556", "0.6106153", "0.6104355", "0.609422", "0.6081893", "0.6070892", "0.6062021", "0.6053334", "0.60338044", "0.6027291", "0.60260415", "0.60002315", "0.59926945", "0.59891725", "0.59787756", "0.59786373", "0.5976426", "0.597582", "0.59663385", "0.59625113", "0.5945658", "0.5944117", "0.5929797", "0.59282357", "0.59203935", "0.59073424", "0.58993775", "0.5889694", "0.58872324", "0.5881976", "0.5877549", "0.58725494", "0.5860271", "0.585505", "0.58532345", "0.58494735", "0.583505", "0.5829042", "0.5822143", "0.58175564", "0.58050954", "0.5803554", "0.57904094", "0.5790168", "0.57857805", "0.57767665", "0.5774287", "0.5765323", "0.57626027", "0.5753086", "0.5750573", "0.5737077", "0.57345885", "0.57311416", "0.5715711", "0.5713258", "0.5710808", "0.570995", "0.57091326", "0.5707498", "0.5706005", "0.5705517", "0.5704558", "0.5695951", "0.568085", "0.56706583", "0.56669146", "0.5658465", "0.56560755", "0.56409323", "0.56397754", "0.56397754" ]
0.7291098
0
prepare data to be returned from query
protected function _prepareReturnData($data, $returnArray = true) { $ret = parent::_prepareReturnData($data, $returnArray); return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function prepareData();", "abstract protected function prepareData( $data );", "public function prepare( $data );", "public function prepare(){\n\t\tif ( !$this->created_at)\n\t\t\t$this->set();\n\t\treturn array(\n\t\t\t'created_at' => $this->created_at,\n\t\t\t'created_by' => $this->created_by );\t\t\n\t}", "private function getPrepared()\n {\n $array = $this->ToArray();\n unset($array['currentPage']);\n unset($array['pageCount']);\n unset($array['errors']);\n unset($array['insert']);\n unset($array['table']);\n unset($array['Adapter']);\n unset($array['pdoFetch']);\n unset($array['cmsFetchMode']);\n unset($array[$this->primaryName]);\n unset($array['primaryName']);\n $prepared['update'] = '';\n foreach($array as $k=>$v)\n {\n $prepared['values'][':'.$k] = $v;\n $prepared['update'] .= '`'.$k.'`'.\"=\".':'.$k.',';\n }\n if ($prepared['update']{strlen($prepared['update'])-1} == ',')\n {\n $prepared['update'] = substr($prepared['update'],0,-1);\n }\n $prepared['set'] = implode(', ', array_keys($array));\n return $prepared;\n }", "abstract function prepare_data(&$data_arr);", "private function _prepareReturnData($data) {\n $o = new Agana_Model_Object($data);\n $o->setId($data['objid']);\n $o->setTableName($data['tablename']);\n return $o;\n }", "private function prepare_data(){\r\n\t\t\t$this->data_table['cols'] = array();\r\n\t\t\t\r\n\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\tswitch($column_info['type']){\r\n\t\t\t\t\tcase 'number':\r\n\t\t\t\t\tcase 'float':\r\n\t\t\t\t\tcase 'currency':\r\n\t\t\t\t\t\t$column_info['type'] = 'number';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$column_info['type'] = 'string';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['cols'][] = array_merge(array('id' => $column_id), $column_info);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rows_count = sizeof(reset($this->data));\r\n\t\t\t\r\n\t\t\tfor($i = 0; $i < $rows_count; $i++){\r\n\t\t\t\t$c = array();\r\n\t\t\t\t\r\n\t\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\t\t$value = $this->data[$column_id][$i];\r\n\t\t\t\t\t$c[] = array('v' => $value);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['rows'][] = array('c' => $c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->data_table = json_encode($this->data_table);\r\n\t\t}", "public function _prepare() {\n if( !DBwrite::connected() ) {\n DBwrite::connect();\n }\n\n $query = $this->query;\n foreach( $this->key_value_map as $key => $value ) {\n $query = str_replace(\n '#'.$key, \n $this->sanitizeValue( $key, $value ),\n $query\n );\n }\n \n $this->real_query = $query;\n return $this->real_query;\n }", "public function prepare(){\n\t\treturn array(\n\t\t\t'creationData' => $this->creationData->prepare(),\n\t\t\t'modificationHistory' => $this->modificationHistory->prepare() );\t\t\n\t}", "public function prepareData($params){\r\n\t\t$available_data = \\DB::table($this->table);\r\n\t\t$recordsTotal = $available_data->count();\r\n\r\n\t\t// seleted columns\r\n\t\t// $select = array('u.*', 'g.name AS gender', 'r.name AS role_name', 'r.id AS role_id');\r\n\t\t// if(@$params['selected_columns'] != ''){\r\n\t\t// \t$select = explode(',', $params['selected_columns']);\r\n\t\t// }\r\n\r\n\t\t// join here\r\n\t\t// $available_data = $available_data->select($select);\r\n\r\n\t\t// condition here\r\n\t\t$filters = $params['filter'];\r\n\t\tforeach($filters as $column => $items){\r\n\t\t\tforeach($items as $item){\r\n\t\t\t\tif(is_array($item)){\r\n\t\t\t\t\tif(!empty($item['value'])){\r\n\t\t\t\t\t\t$available_data = $available_data->where($column, $item['op'], $item['value']);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\tif(!empty($items['value'])){\r\n\t\t\t\t\tif(strtolower($items['op']) == 'like'){\r\n\t\t\t\t\t\t$items['value'] = '%' . $items['value'] . '%';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(strtolower($items['op']) != 'in'){\r\n\t\t\t\t\t\t$available_data = $available_data->where($column, $items['op'], $items['value']);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$available_data = $available_data->whereIn($column, $items['value']);\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t// }\r\n\t\t}\r\n\t\treturn array(\r\n\t\t\t'recordsTotal' => $recordsTotal,\r\n\t\t\t'data' => $available_data,\r\n\t\t);\r\n\t}", "public function prepareData()\r\n {\r\n $users_model = new UsersModel();\r\n $users_all = $users_model->getAll(true, false, 'C_FULLNAME');\r\n $users = Groups::getUsers($this->group_id, 'C_FULLNAME');\r\n $users_include = array();\r\n \tforeach ($users as $user_info) {\r\n \t\t$users_include[$user_info['U_ID']] = array(\r\n \t\t\t$user_info['U_ID'],\r\n \t\t\t$user_info['C_FULLNAME']\r\n \t\t);\r\n \t} \r\n \t$users_exclude = array();\r\n \tforeach ($users_all as $user_info) {\r\n \t\tif (!isset($users_include[$user_info['U_ID']])) {\r\n\t \t\t$users_exclude[] = array(\r\n\t \t\t\t$user_info['U_ID'],\r\n\t \t\t\t$user_info['C_FULLNAME']\r\n\t \t\t);\r\n \t\t}\r\n \t}\r\n \t$this->smarty->assign('group_id', $this->group_id);\r\n \t$this->smarty->assign('users_in', json_encode(array_values($users_include)));\r\n \t$this->smarty->assign('users_out', json_encode($users_exclude)); \r\n }", "protected function prepareMyData(){\n\t\tglobal $C;\n if( $this->id > 0 ){\n $this->get( \"`id`={$this->id}\" );\n $this->unstoreSfield();\n }\n\t\t$C->setID( $this->data['parent'] );\n\t\t$C->get( \"`id`={$this->data['parent']}\" );\n\t\t$C->unstoreSfield();\n $p = $C->getData();\n if( is_array( $p ) ){\n\t\t\tT::assign( \"parent\", $p[\"name\"] );\n\t\t\t$fieldlist=array();\n if( is_array( $p[\"fields\"] ) )\n foreach( $p[\"fields\"] as $key => $item ){\n $fieldlist[] = array( \"cnt\" => $key, \"name\" => $item, \"value\"=> $this->data[$this->sfield][$key] );\n }\n\t\t\tT::assign( \"fieldlist\", $fieldlist );\n }\n\t\tT::assign( \"f\", $this->sfield );\n\t\tT::assign( \"item\",$this->data );\t\t\n\t}", "abstract public function prepareSelect();", "protected function preprocessData() {}", "public function prepare(array $data);", "public static function prepareQueryResult($res) {\r\n $keys = call_user_func(array(get_called_class(), 'getKeys'));\r\n //identify all parameters with \"colname\" set\r\n $column_keys = array();\r\n foreach ($keys as $key => $val) {\r\n if (isset($val['colname']) && $val['colname'] != null)\r\n $column_keys[$key] = $val['colname'];\r\n }\r\n\r\n //for all items\r\n $ret = array();\r\n foreach ($res as $row) {\r\n $ret_row = array();\r\n //for the identified parameters\r\n foreach ($column_keys as $key => $val)\r\n //execute $row->get<ParameterColname>\r\n $ret_row[$key] = call_user_func(array($row, \"get\" . $val));\r\n $ret[] = $ret_row;\r\n }\r\n return $ret;\r\n }", "protected function hydrateAllData()\n {\n return $this->_stmt->fetchAll(PDO::FETCH_KEY_PAIR);\n }", "private function prepare()\n {\n $this->selectFields[$this->tableName][] = $this->rootEntityIdentifier;\n\n $sColumns = explode(',', $this->requestParams['sColumns']);\n\n for ($i = 0; $i < $this->iColumns; $i++) {\n\n if ($this->requestParams['mDataProp_' . $i] != null) {\n\n $field = $this->requestParams['mDataProp_' . $i];\n\n if ($sColumns[$i] != '') {\n if ($field != $sColumns[$i]) {\n $field = $sColumns[$i];\n }\n }\n\n // association delimiter found\n if (strstr($field, '.') !== false) {\n\n // separate fields\n $fieldsArray = explode('.', $field);\n // set associations in selectFields[]\n $this->setAssociations($fieldsArray, 0, $this->metadata);\n\n } else {\n\n // no association found\n if ($field !== $this->rootEntityIdentifier) {\n array_push($this->selectFields[$this->tableName], $field);\n }\n\n $this->allFields[] = $this->tableName . '.' . $field;\n\n }\n\n } else {\n\n $this->allFields[] = '';\n\n }\n }\n\n return $this;\n }", "abstract protected function _prepare();", "private function getData(){\n\t\tdb::getAdapter();\n\t\t\n\t\t$counter=0;\n\t\t$arrayFieldQuery=array();\n\t\tforeach($this->fields as $field){\n\t\t\t$arrayFieldQuery[$field]=$this->types[$counter];\n\t\t\t$counter++;\n\t\t}\n\t\t\n\t\t$counter=0;\n\t\t$arrayFilters=array();\n\t\tforeach($this->filters as $filter){\n\t\t\t$arrayFilters[$this->fields[$filter[0]]]=array(\"type\"=>$this->types[$filter[0]],\"value\"=>$filter[1]);\n\t\t}\n\t\t\n\t\tif(db::getFields($this->table,$arrayFieldQuery,$arrayFilters,$this->orderQuery,$this->limit,true)){\n\t\t\t$this->pages=ceil(((int)db::getCalculatedRows())/((int)$this->maxRowsPerPage));\n\t\t\t$this->maxRows=(int)db::getCalculatedRows();\n\t\t\twhile($row=db::fetch(db::$FETCH_TYPE_ASSOC)){\n\t\t\t\t$this->addRow($row);\n\t\t\t}\n\t\t}\n\t}", "protected function prepareSelectStatement() {}", "private function prepareData(){\n\t\t\t$this->text = trim($this->text);\n\t\t\t$this->user_id = intval($this->user_id);\n\t\t\t$this->parent_id = intval($this->parent_id);\n\t\t}", "function lireParamAsPrepared($sql, $data)\n {\n $collection = $this->executeAsPrepared($sql, $data);\n $collection = $collection[0];\n if ($this->auto_date == 1) {\n $collection = $this->utilDatesDBVersLocale($collection);\n }\n if ($this->toUTF8) {\n $collection = $this->utf8Encode($collection);\n }\n return $collection;\n }", "public function prepare();", "public function prepare();", "abstract protected function prepareVars(array $data);", "public function queryData(){\r\n\t\treturn $this->_placeholders;\r\n\t}", "function prepareRowData(array &$row)\n{\n sanitizeDataQueried($row);\n convertAllDates($row);\n roundRawGrade($row);\n}", "private function prep_query($data, $type='insert') {\n\t\t$fields = '';\n\t\t$placeholders = '';\n\t\t$values = array();\n\t\t\n\t\t// Loop through $data and build $fields, $placeholders, and $values\t\t\t\n\t\tforeach ( $data as $field => $value ) {\n\t\t\t$fields .= \"{$field},\";\n\t\t\t$values[] = $value;\n\t\t\t\n\t\t\tif ( $type == 'update') {\n\t\t\t\t$placeholders .= $field . '=?,';\n\t\t\t} else {\n\t\t\t\t$placeholders .= '?,';\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Normalize $fields and $placeholders for inserting\n\t\t$fields = substr($fields, 0, -1);\n\t\t$placeholders = substr($placeholders, 0, -1);\n\n\t\t//print_r($fields);\n\t\t//print_r($placeholders);\n\t\t//print_r($values);\n\n\t\techo '<pre>', print_r($fields), '</pre>';\n\t\techo '<pre>', print_r($placeholders), '</pre>';\n\t\techo '<pre>', print_r($values), '</pre>';\n\t\t\n\t\treturn array( $fields, $placeholders, $values );\n\n\n\t}", "function prepareData()\r\n\t{\r\n\t\treturn true;\r\n\t}", "public function prepare_query()\n {\n }", "private function prepareIndustryGreedyData() {\n $industry_greedy_data = $this->toArray();\n return $industry_greedy_data;\n }", "protected function prepareQuery($query) {}", "public function _processResults(){\n $data = array();\n foreach($this->_resultset as $doc){\n\t$fields = array();\n\tforeach($doc as $key => $value){\n $fields[$key] = $value;\n }\n \t$data[] = $fields;\n }\n $processor = new Pas_Solr_SensitiveFields();\n $clean = $processor->cleanData($data, $this->_getRole(), $this->_core);\n return $clean;\n }", "protected function prepareDataProvider()\n {\n $requestParams = Yii::$app->getRequest()->getBodyParams();\n if (empty($requestParams)) {\n $requestParams = Yii::$app->getRequest()->getQueryParams();\n }\n\n /* @var $modelClass \\yii\\db\\BaseActiveRecord */\n $modelClass = $this->modelClass;\n\n // $query = $modelClass::find()\n // ->andWhere([\n // \"condition\" => 1\n // ]);\n\n //agenda del usuario\n $ids = EventsQuery::getEventsByUser($requestParams['token']);\n // $evento = EventsModel::find()\n // ->where(['condition' => 1])\n // ->andWhere(['in', 'id', $ids])\n // ->all();\n $evento=EventsQuery::getEventById($ids);\n return EventsQuery::getEventsByIds($evento);\n }", "protected function _processData() {\n $result = $this->getSelect()->query()->fetchAll();\n if ($mainReportResults = $this->getMainReportResults()) {\n $toReturn = array();\n $list = $this->_helper()->getList($mainReportResults, $this->_compareAttribute);\n foreach ($result as $row) {\n $toReturn[array_search($row[$this->_compareAttribute], $list)] = $row;\n }\n $result = $toReturn;\n }\n return $result;\n }", "function _prepare() {}", "protected function _prepareUpdateData($data) {\n $dataPrepared = array(\n 'name' => $data->getName(),\n 'module_id' => $data->getModule_id(),\n 'system' => $data->getSystem(),\n 'person_id' => $data->getPerson_id(),\n 'color' => $data->getColor(),\n );\n\n return $dataPrepared;\n }", "function prepareForDb() {\n $this->description = sql_escape($this->description);\n $this->postsHeader = sql_escape($this->postsHeader);\n $this->postBody = sql_escape($this->postBody);\n $this->postsFooter = sql_escape($this->postsFooter);\n $this->formLogged = sql_escape($this->formLogged);\n $this->form = sql_escape($this->form);\n $this->navigation = sql_escape($this->navigation);\n $this->name = sql_escape($this->name);\n $this->nameLin = sql_escape($this->nameLin);\n $this->memberName = sql_escape($this->memberName);\n $this->date = sql_escape($this->date);\n $this->time = sql_escape($this->time); \n $this->nextPage = sql_escape($this->nextPage);\n $this->previousPage =sql_escape($this->previousPage);\n $this->firstPage = sql_escape($this->firstPage);\n $this->lastPage = sql_escape($this->lastPage);\n\t$this->gravDefault = sql_escape($this->gravDefault);\n }", "public function Prepare(){\n $connection = $this->Connection();\n $databaseQuery = $connection->prepare($this->sqlStatement);\n\n $connection->beginTransaction();\n\n $parameterNames = $this->ExtractParameters();\n\n // Binding values as necessary\n for($i = 0; $i < count($this->parameter); $i++) {\n $databaseQuery->bindValue($parameterNames[0][$i], $this->parameter[$i]);\n }\n\n // Creating database array\n $databaseObj['connection'] = $connection;\n $databaseObj['databaseQuery'] = $databaseQuery;\n return $databaseObj;\n }", "public function prepareFieldset();", "protected function initResultFields()\r\n {\r\n }", "protected function _prep_args() {\n\t\t// this is the data prepared for binding.\n\t\t// these fields are ordered as they are in the table\n\t\t$args = array(\n\t\t\t'the_id' => $this->id,\n\t\t\t'date_created' => $this->date_created,\n\t\t\t'completed' => $this->completed,\n\t\t\t'template_id' => $this->template_id,\n\t\t);\n\n\t\treturn $args;\n\t}", "private function prepare($data)\n {\n foreach ($data as $code => &$item) {\n $item = $this->prepareItem($code, $item);\n }\n return $data;\n }", "function prepare()\n\t{\n\t\treturn null;\n\t}", "function prepare()\n\t{\n\t\treturn null;\n\t}", "public function prepare(){\n\t\treturn array(\n\t\t\t'modified_at' => $modified_at,\n\t\t\t'modified_by' => $modified_by );\t\t\n\t}", "function prepareQuery() {\n\t\t$q = \"SET \n\t\t\t\t\t`template` = '{$this->newIdt}',\n\t\t\t\t\t`description` = '{$this->description}',\n\t\t\t\t\t`PostsHeader` = '{$this->postsHeader}',\n\t\t\t\t\t`PostBody` = '{$this->postBody}',\n\t\t\t\t\t`PostsFooter` = '{$this->postsFooter}',\n\t\t\t\t\t`FormLogged` = '{$this->formLogged}',\n\t\t\t\t\t`Form` = '{$this->form}',\n\t\t\t\t\t`Navigation` = '{$this->navigation}',\n\t\t\t\t\t`Name` = '{$this->name}',\n\t\t\t\t\t`NameLin` = '{$this->nameLin}',\n\t\t\t\t\t`MemberName` = '{$this->memberName}',\n\t\t\t\t\t`Date` = '{$this->date}',\n\t\t\t\t\t`Time` = '{$this->time}',\n\t\t\t\t\t`NextPage` = '{$this->nextPage}',\n\t\t\t\t\t`PreviousPage` = '{$this->previousPage}',\n\t\t\t\t\t`FirstPage` = '{$this->firstPage}',\n\t\t\t\t\t`LastPage` = '{$this->lastPage}',\n\t\t\t\t\t`UrlsToLinks`\t=\t'\".($this->urlToLink ? 'yes' : 'no').\"',\n\t\t\t\t\t`EmoToImg` \t\t=\t'\".($this->emoToImg ? 'yes' : 'no').\"',\n\t\t\t\t\t`GravDefault`\t=\t'{$this->gravDefault}',\n\t\t\t\t\t`GravSize`\t\t=\t{$this->gravSize}\";\n\t\treturn $q;\n\n\t}", "function prepare()\r\n\t{\r\n\t\treturn parent::prepare();\r\n\t}", "public function prepare() {}", "public function prepare() {}", "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}", "private static function makeArrayFromDataQuery($data)\n { \n $result = [];\n \n while ($row = $data->fetch(PDO::FETCH_ASSOC) ) {\n $result[] = $row;\n }\n \n return $result;\n }", "public function prepareResponse();", "protected function _prepareRowsAction() {\n \n }", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "public function prepare()\r\n\t{\r\n\t\treturn null; // nothing\r\n\t}", "public function prepareData()\r\n\t{\r\n\r\n\t\t// Get title and encode it\r\n\t\tif (empty($this->title)) {\r\n\t\t\t$this->title = urlencode(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')));\r\n\t\t}\r\n\r\n\t\t// Get current post permalink and encode it\r\n\t\tif (empty($this->shared_url)) {\r\n\t\t\t$this->shared_url = get_permalink(get_the_ID());\r\n\t\t}\r\n\r\n\t\t// Get excerpt and format it for Twitter\r\n\t\tif (empty($this->tweet)) {\r\n\t\t\t$tweet = (strlen(get_the_excerpt()) > 140) ? substr(get_the_excerpt(), 0, 140) . '...' : get_the_excerpt();\r\n\t\t\t$this->tweet = $tweet . ' ' . $this->shared_url;\r\n\t\t}\r\n\t}", "public function prepareData() {\r\n $sections = GearSection::getAll($this->id_shop);\r\n $this->smarty->assign('sections', $sections);\r\n $data = array();\r\n foreach($sections as $section) {\r\n $opts = GearOption::getBySection($section->id, $this->id_shop);\r\n $std = new stdClass();\r\n $std->id = $section->id;\r\n $std->name = $section->name;\r\n $std->label = $section->label;\r\n $std->options = $opts;\r\n array_push($data, $std);\r\n }\r\n \r\n if ($this->imported) { // generate css after import\r\n require_once 'classes/FrontStyle.php';\r\n FrontStyle::generateGearCss($data);\r\n }\r\n \r\n return $data;\r\n }", "protected function prepareData()\n {\n parent::prepareData();\n $this->prepareConfigurableProductOptions();\n $this->prepareAttributeSet();\n }", "function prepareParams($data){\r\n\t$param_info = $this->getParamInfo();\r\n\t$param_ids = array();\r\n\t$param_types = array();\r\n\r\n\tforeach($param_info as $p_i){\r\n\t\t$param_ids[$p_i['param']] = $p_i['id'];\r\n\t\t$param_types[$p_i['param']] = $p_i['param_type'];\r\n\t}\r\n\t$new_params = array();\r\n\tforeach($data as $k=>$v){\r\n\t\tif(isset($param_ids[$k]) && $param_types[$k] == 'text'){\r\n\t\t\t$new_params[$param_ids[$k]][0] = $v;\r\n\t\t}\r\n\t\telseif(isset($param_ids[$k])){\r\n\t\t\tif(is_array($v)){\r\n\t\t\t\t$v = implode(',',$v);\r\n\t\t\t}\r\n\t\t\t$new_params[$param_ids[$k]][1] = $v;\r\n\t\t\t$new_params[$param_ids[$k]][0] = $data[$k.'_text_value'];\r\n\t\t}\r\n\t}\r\n\treturn $new_params;\r\n}", "protected function prepare()\n\t{\n\t}", "public function select_all(string $query)\n{\n $this->strquery = $query;\n $result = $this->conexion->prepare($this->strquery);\n $result->execute();\n $data = $result->fetchall(PDO::FETCH_ASSOC);\n return $data; \n}", "function _prepare_filter_data () {\n\t\t// Filter session array name\n\t\t$this->_filter_name\t= $_GET[\"object\"].\"_filter\";\n\t\t// Connect common used arrays\n\t\tif (file_exists(INCLUDE_PATH.\"common_code.php\")) {\n\t\t\tinclude (INCLUDE_PATH.\"common_code.php\");\n\t\t}\n\t\t// Fields in the filter\n\t\t$this->_fields_in_filter = array(\n\t\t\t\"engine\",\n\t\t\t\"text\",\n\t\t);\n\t}", "private function prepareData($data)\n {\n $data = (is_array($data)) ? $data : json_decode($data, true);\n $prepareData = array();\n foreach ($data as $key => $value) {\n switch ($key) {\n case 'Nome':\n case 'Sobrenome':\n case 'Email':\n case 'Telefone':\n $prepareData[$key] = $value;\n break;\n }\n }\n return $prepareData;\n }", "public function prepare_items()\r\r\n {\r\r\n\r\r\n $this->_column_headers = $this->get_column_info();\r\r\n\r\r\n /** Process bulk action */\r\r\n //\t$this->process_bulk_action();\r\r\n $per_page = $this->get_items_per_page('data_logs_per_page', 5);\r\r\n $current_page = $this->get_pagenum();\r\r\n $total_items = self::record_count();\r\r\n $this->set_pagination_args(array(\r\r\n 'total_items' => $total_items,\r\r\n 'per_page' => $per_page,\r\r\n ));\r\r\n\r\r\n $this->items = self::get_Data($per_page, $current_page);\r\r\n }", "function getListeParamAsPrepared($sql, $data)\n {\n $collection = $this->executeAsPrepared($sql, $data);\n if ($this->auto_date == 1) {\n $collection = $this->utilDatesDBVersLocale($collection);\n }\n if ($this->toUTF8) {\n $collection = $this->utf8Encode($collection);\n }\n if (is_array($collection)) {\n return $collection;\n } else {\n return null;\n }\n }", "public function &prepare_self($q)\n {\n $st = &$this->prepare($q);\n $st->setFetchMode(PDO::FETCH_INTO, $this->type);\n //$st->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n return $st;\n }", "private function initQuery()\n {\n $this->_lastSql = null;\n $this->_limit = null;\n $this->_offset = null;\n $this->_order = array();\n $this->_group = array();\n $this->_table = null;\n $this->_stmt = null;\n\n $this->fromStates = array();\n $this->selectFields = array();\n $this->whereStates = array();\n $this->havingStates = array();\n $this->values = array();\n $this->joinStates = array();\n }", "public function createQuery($data);", "function queryData($query){\n\t\ttry {\n\t\t\t\n\t\t\t$pdo = db_init();\n\n\t\t\t$rs = $pdo->query($query);\n\n\t\t\treturn $rs->fetch(PDO::FETCH_ASSOC);\n\n\t\t} catch (PDOException $e) {\n\t\t\tlogging($_SERVER['PHP_SELF'] . \", 44, Error Pulling Data:\". $e->getMessage() .\" ,\" . date(\"Y-m-d\") . \" \" . date(\"h:i:sa\"));\n\t\t\treturn;\n\t\t}\n\t}", "protected function _prepareData()\n {\n if($this->currentApiResponseView->get() instanceof ApiResponseViewInterface && $this->getContextItemId())\n {\n $this->getCollectionByTypeMatch();\n }\n\n return $this;\n }", "private function prep_query ($data, $type = 'insert')\n {\n $fields = '';\n $placeholders = '';\n $values = array();\n\n // Loop through $data and build $fields, $placeholders, and $values\n foreach ($data as $field => $value) {\n $fields .= \"{$field},\";\n $values[] = $value;\n\n if ( $type == 'update' )\n {\n $placeholders .= \"`\" . $field . \"`\" . '=?,';\n }\n else\n {\n $placeholders .= '?,';\n }\n }\n\n // Normalize $fields and $placeholders for inserting\n $fields = substr ($fields, 0, -1);\n $placeholders = substr ($placeholders, 0, -1);\n\n return array($fields, $placeholders, $values);\n }", "private function prepareResultMap() {\n $resultMap = [];\n foreach ($this->encodings as $encoding) {\n $map = \"_\" . $encoding . \"Map\";\n foreach ($this->$map as $ru => $fo) {\n $resultMap[$ru][] = $fo;\n }\n }\n $this->_resultMap = $resultMap;\n }", "function get_data()\n\t{\n\t\t$query = $this->db->get(\"Testing\");\n\n\t\treturn $query;\n\t}", "function prepData($data)\r\n {\r\n \t$data['data']['Question']['master'] = $data['form']['master'];\r\n\t$data['data']['Question']['type'] = $data['form']['type'];\r\n\t$data['data']['Question']['count'] = $data['form']['data']['Question']['count'];\r\n\r\n\treturn $data;\r\n }", "function prepare()\r\n {\r\n return parent::prepare();\r\n }", "function prepare()\r\n {\r\n return parent::prepare();\r\n }", "function prepare()\r\n {\r\n return parent::prepare();\r\n }", "private function getQueryData($query)\n {\n $showBy = empty($query['showby']) ? self::DAY : $query['showby'];\n $type = empty($query['type']) ? self::CREATION : $query['type'];\n\n if ($showBy === self::DAY) {\n $fromTo = $this->getFromToDate(\n self::DAY_FORMAT,\n '-5 days',\n $query\n );\n }\n\n if ($showBy === self::MONTH) {\n $fromTo = $this->getFromToDate(\n self::MONTH_FORMAT,\n '-5 months',\n $query,\n '1-',\n '31-'\n );\n }\n\n if ($showBy === self::YEAR) {\n $fromTo = $this->getFromToDate(\n self::YEAR_FORMAT,\n '-5 years',\n $query,\n '1-1-',\n '31-12-'\n );\n }\n\n $from = new DateTime($fromTo['from']);\n $to = new DateTime($fromTo['to']);\n\n return [\n 'showBy' => $showBy,\n 'type' => $type,\n 'from' => $from,\n 'to' => $to,\n ];\n }", "protected function loadData(){\n\t\t//SELECT from \".self::TABLE_NAME.\"_data WHERE \".self::TABLE_NAME.\"_id=\".$this->id.\"\n\t\t\n\t\t//return the data\n\t\treturn array();\n\t}", "protected function selectData($where_clause=false)\n {\n // used by both view and view-id so reveal all needed columns\n $query = \"SELECT a.dept_id, a.dept_code, a.name, a.location_id, c.location_code, a.headed_by, a.division_id, b.division_code FROM departments a LEFT JOIN division b ON a.division_id = b.division_id LEFT JOIN location c ON a.location_id = c.location_id\";\n\n if (!empty($where_clause))\n $query .= \" WHERE $where_clause\";\n\n $res = execute_query($this->conn, $query, '');\n if (!PEAR::isError($res))\n {\n $data = array('total'=>0, $this->table=>array());\n if ($res->numRows() > 0)\n {\n $data['total'] = $res->numRows();\n $data[$this->table] = $res->fetchAll(MDB2_FETCHMODE_ASSOC);\n }\n\n return $data;\n }\n die($res->getMessage());\n }", "function getAllDataValues() {\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$resultvalues = $conn->fetchAll(\"SELECT * FROM lookuptypevalue WHERE lookuptypeid = '\".$this->getID().\"' order by lookupvaluedescription asc \");\n\t\treturn $resultvalues;\t\n\t}", "public function prep(){\n return $where = $this->question_where();\n }", "private function preExe(){\n\t\t$pre = $this->prepare($this->_query);\n\t\t$pre->execute();\n\t\treturn $pre->fetchAll();\n\t}", "private function _prepareQuery() \n\t{\n\t\t\t// Establish connection to the database if not already connected\n\t\tif (! $this->_connection || empty($this->_connection)) {\n\t\t\t\n\t\t\t // retrieve the database configuration from the registry\n\t\t\t$config = Registry::getSetting('dbConfig');\n\t\t\t\n\t\t\t$this->_newConnection(\n\t\t\t\t\t$config['host'], \n\t\t\t\t\t$config['database'], \n\t\t\t\t\t$config['user'], \n\t\t\t\t\t$config['password']);\n\t\t}\n\t\t\n\t\tif (! $stmt = $this->_connection->prepare ( $this->_query )) {\n\t\t\ttrigger_error ( 'Problem preparing query', E_USER_ERROR );\n\t\t}\n\t\t$this->_stmt = $stmt;\n\t}", "public function getResult($data){\n\t\t$this->db->query('SELECT * FROM building_tbl WHERE province_building=:province AND city_building=:city ');\n\t\t$this->db->bind('province', $data['provinces']);\n\t\t$this->db->bind('city', $data['regencies']);\n\t\treturn $this->db->resultSet();\n\t}", "public function getResult($data){\n\t\t$this->db->query('SELECT * FROM building_tbl WHERE province_building=:province AND city_building=:city ');\n\t\t$this->db->bind('province', $data['provinces']);\n\t\t$this->db->bind('city', $data['regencies']);\n\t\treturn $this->db->resultSet();\n\t}", "protected function prepare_fields()\n {\n }", "protected function prepareGalleryData() {}", "public function getData($params = array())\n {\n\t\t$query = \"\n SELECT to_char(ha_statement.PERIOD_BUDGET,'RRRR') PERIOD_BUDGET, \n\t\t\t\t ha_statement.BA_CODE,\n\t\t\t\t ORG.COMPANY_NAME,\n\t\t\t\t ha_statement.AFD_CODE, \n\t\t\t\t ha_statement.BLOCK_CODE,\n\t\t\t\t ha_statement.BLOCK_DESC, \n\t\t\t\t ha_statement.LAND_TYPE,\n\t\t\t\t ha_statement.TOPOGRAPHY,\n\t\t\t\t to_char(ha_statement.TAHUN_TANAM,'MM.RRRR') TAHUN_TANAM, \n\t\t\t\t to_char(ha_statement.TAHUN_TANAM,'MM') TAHUN_TANAM_M, \n\t\t\t\t to_char(ha_statement.TAHUN_TANAM,'RRRR') TAHUN_TANAM_Y, \n\t\t\t\t ha_statement.MATURITY_STAGE_SMS1, \n\t\t\t\t ha_statement.MATURITY_STAGE_SMS2, \n\t\t\t\t ha_statement.HA_PLANTED, \n\t\t\t\t ha_statement.POKOK_TANAM, \n\t\t\t\t ha_statement.SPH,\n\t\t\t\t SUM(rkt.DIS_COST_JAN) JAN, \n\t\t\t\t SUM(rkt.DIS_COST_FEB) FEB, \n\t\t\t\t SUM(rkt.DIS_COST_MAR) MAR, \n\t\t\t\t SUM(rkt.DIS_COST_APR) APR, \n\t\t\t\t SUM(rkt.DIS_COST_MAY) MAY, \n\t\t\t\t SUM(rkt.DIS_COST_JUN) JUN, \n\t\t\t\t SUM(rkt.DIS_COST_JUL) JUL, \n\t\t\t\t SUM(rkt.DIS_COST_AUG) AUG, \n\t\t\t\t SUM(rkt.DIS_COST_SEP) SEP, \n\t\t\t\t SUM(rkt.DIS_COST_OCT) OCT, \n\t\t\t\t SUM(rkt.DIS_COST_NOV) NOV, \n\t\t\t\t SUM(rkt.DIS_COST_DEC) DEC, \n\t\t\t\t SUM(rkt.DIS_COST_YEAR) SETAHUN,\n\t\t\t\t MAX(rkt.COST_TRANSPORT_KG) COST_TRANSPORT_KG, \n\t\t\t\t MAX(rkt.COST_TOOLS_KG) COST_TOOLS_KG, \n\t\t\t\t MAX(rkt.COST_LABOUR_POKOK) COST_LABOUR_POKOK,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_JAN) PUPUK_JAN,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_FEB) PUPUK_FEB,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_MAR) PUPUK_MAR,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_APR) PUPUK_APR,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_MAY) PUPUK_MAY,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_JUN) PUPUK_JUN,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_JUL) PUPUK_JUL,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_AUG) PUPUK_AUG,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_SEP) PUPUK_SEP,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_OCT) PUPUK_OCT,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_NOV) PUPUK_NOV,\n\t\t\t\t MAX(NAMA_PUPUK.MATERIAL_NAME_DEC) PUPUK_DEC,\n MAX(NAMA_PUPUK.MATERIAL_JAN) MATERIAL_CODE_JAN,\n MAX(NAMA_PUPUK.MATERIAL_FEB) MATERIAL_CODE_FEB,\n MAX(NAMA_PUPUK.MATERIAL_MAR) MATERIAL_CODE_MAR,\n MAX(NAMA_PUPUK.MATERIAL_APR) MATERIAL_CODE_APR,\n MAX(NAMA_PUPUK.MATERIAL_MAY) MATERIAL_CODE_MAY,\n MAX(NAMA_PUPUK.MATERIAL_JUN) MATERIAL_CODE_JUN,\n MAX(NAMA_PUPUK.MATERIAL_JUL) MATERIAL_CODE_JUL,\n MAX(NAMA_PUPUK.MATERIAL_AUG) MATERIAL_CODE_AUG,\n MAX(NAMA_PUPUK.MATERIAL_SEP) MATERIAL_CODE_SEP,\n MAX(NAMA_PUPUK.MATERIAL_OCT) MATERIAL_CODE_OCT,\n MAX(NAMA_PUPUK.MATERIAL_NOV) MATERIAL_CODE_NOV,\n MAX(NAMA_PUPUK.MATERIAL_DEC) MATERIAL_CODE_DEC\n\t\t\tFROM TR_RKT_PUPUK_COST_ELEMENT rkt\n\t\t\tLEFT JOIN TM_HECTARE_STATEMENT ha_statement\n\t\t\t\tON rkt.PERIOD_BUDGET = ha_statement.PERIOD_BUDGET\n\t\t\t\tAND rkt.BA_CODE = ha_statement.BA_CODE\n\t\t\t\tAND rkt.AFD_CODE = ha_statement.AFD_CODE\n\t\t\t\tAND rkt.BLOCK_CODE = ha_statement.BLOCK_CODE\n\t\t\t\tAND rkt.TIPE_TRANSAKSI = 'NORMAL'\n\t\t\tLEFT JOIN (SELECT PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE,\n LISTAGG (MATERIAL_NAME_JAN, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_JAN,\n LISTAGG (MATERIAL_NAME_FEB, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_FEB,\n LISTAGG (MATERIAL_NAME_MAR, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_MAR,\n LISTAGG (MATERIAL_NAME_APR, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_APR,\n LISTAGG (MATERIAL_NAME_MAY, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_MAY,\n LISTAGG (MATERIAL_NAME_JUN, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_JUN,\n LISTAGG (MATERIAL_NAME_JUL, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_JUL,\n LISTAGG (MATERIAL_NAME_AUG, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_AUG,\n LISTAGG (MATERIAL_NAME_SEP, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_SEP,\n LISTAGG (MATERIAL_NAME_OCT, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_OCT,\n LISTAGG (MATERIAL_NAME_NOV, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_NOV,\n LISTAGG (MATERIAL_NAME_DEC, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NAME_DEC,\n LISTAGG (MATERIAL_JAN, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_JAN,\n LISTAGG (MATERIAL_FEB, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_FEB,\n LISTAGG (MATERIAL_MAR, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_MAR,\n LISTAGG (MATERIAL_APR, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_APR,\n LISTAGG (MATERIAL_MAY, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_MAY,\n LISTAGG (MATERIAL_JUN, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_JUN,\n LISTAGG (MATERIAL_JUL, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_JUL,\n LISTAGG (MATERIAL_AUG, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_AUG,\n LISTAGG (MATERIAL_SEP, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_SEP,\n LISTAGG (MATERIAL_OCT, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_OCT,\n LISTAGG (MATERIAL_NOV, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_NOV,\n LISTAGG (MATERIAL_DEC, ' + ') WITHIN GROUP (ORDER BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) AS MATERIAL_DEC\n FROM (SELECT DISTINCT PPK.PERIOD_BUDGET, PPK.BA_CODE, PPK.AFD_CODE, PPK.BLOCK_CODE, \n TM_JAN.MATERIAL_NAME AS MATERIAL_NAME_JAN,\n TM_FEB.MATERIAL_NAME AS MATERIAL_NAME_FEB,\n TM_MAR.MATERIAL_NAME AS MATERIAL_NAME_MAR,\n TM_APR.MATERIAL_NAME AS MATERIAL_NAME_APR,\n TM_MAY.MATERIAL_NAME AS MATERIAL_NAME_MAY,\n TM_JUN.MATERIAL_NAME AS MATERIAL_NAME_JUN,\n TM_JUL.MATERIAL_NAME AS MATERIAL_NAME_JUL,\n TM_AUG.MATERIAL_NAME AS MATERIAL_NAME_AUG,\n TM_SEP.MATERIAL_NAME AS MATERIAL_NAME_SEP,\n TM_OCT.MATERIAL_NAME AS MATERIAL_NAME_OCT,\n TM_NOV.MATERIAL_NAME AS MATERIAL_NAME_NOV,\n TM_DEC.MATERIAL_NAME AS MATERIAL_NAME_DEC,\n PPK.MATERIAL_CODE_JAN AS MATERIAL_JAN,\n PPK.MATERIAL_CODE_FEB AS MATERIAL_FEB,\n PPK.MATERIAL_CODE_MAR AS MATERIAL_MAR,\n PPK.MATERIAL_CODE_APR AS MATERIAL_APR,\n PPK.MATERIAL_CODE_MAY AS MATERIAL_MAY,\n PPK.MATERIAL_CODE_JUN AS MATERIAL_JUN,\n PPK.MATERIAL_CODE_JUL AS MATERIAL_JUL,\n PPK.MATERIAL_CODE_AUG AS MATERIAL_AUG,\n PPK.MATERIAL_CODE_SEP AS MATERIAL_SEP,\n PPK.MATERIAL_CODE_OCT AS MATERIAL_OCT,\n PPK.MATERIAL_CODE_NOV AS MATERIAL_NOV,\n PPK.MATERIAL_CODE_DEC AS MATERIAL_DEC\n FROM TR_RKT_PUPUK_DISTRIBUSI PPK\n LEFT JOIN TM_MATERIAL TM_JAN\n ON TM_JAN.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_JAN.BA_CODE = PPK.BA_CODE\n AND TM_JAN.MATERIAL_CODE = PPK.MATERIAL_CODE_JAN\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_FEB\n ON TM_FEB.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_FEB.BA_CODE = PPK.BA_CODE\n AND TM_FEB.MATERIAL_CODE = PPK.MATERIAL_CODE_FEB\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_MAR\n ON TM_MAR.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_MAR.BA_CODE = PPK.BA_CODE\n AND TM_MAR.MATERIAL_CODE = PPK.MATERIAL_CODE_MAR\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_APR\n ON TM_APR.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_APR.BA_CODE = PPK.BA_CODE\n AND TM_APR.MATERIAL_CODE = PPK.MATERIAL_CODE_APR\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_MAY\n ON TM_MAY.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_MAY.BA_CODE = PPK.BA_CODE\n AND TM_MAY.MATERIAL_CODE = PPK.MATERIAL_CODE_MAY\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_JUN\n ON TM_JUN.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_JUN.BA_CODE = PPK.BA_CODE\n AND TM_JUN.MATERIAL_CODE = PPK.MATERIAL_CODE_JUN\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_JUL\n ON TM_JUL.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_JUL.BA_CODE = PPK.BA_CODE\n AND TM_JUL.MATERIAL_CODE = PPK.MATERIAL_CODE_JUL\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_AUG\n ON TM_AUG.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_AUG.BA_CODE = PPK.BA_CODE\n AND TM_AUG.MATERIAL_CODE = PPK.MATERIAL_CODE_AUG\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_SEP\n ON TM_SEP.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_SEP.BA_CODE = PPK.BA_CODE\n AND TM_SEP.MATERIAL_CODE = PPK.MATERIAL_CODE_SEP\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_OCT\n ON TM_OCT.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_OCT.BA_CODE = PPK.BA_CODE\n AND TM_OCT.MATERIAL_CODE = PPK.MATERIAL_CODE_OCT\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_NOV\n ON TM_NOV.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_NOV.BA_CODE = PPK.BA_CODE\n AND TM_NOV.MATERIAL_CODE = PPK.MATERIAL_CODE_NOV\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL'\n LEFT JOIN TM_MATERIAL TM_DEC\n ON TM_DEC.PERIOD_BUDGET = PPK.PERIOD_BUDGET\n AND TM_DEC.BA_CODE = PPK.BA_CODE\n AND TM_DEC.MATERIAL_CODE = PPK.MATERIAL_CODE_DEC\n AND PPK.TIPE_TRANSAKSI = 'KG_NORMAL')\n GROUP BY PERIOD_BUDGET, BA_CODE, AFD_CODE, BLOCK_CODE) NAMA_PUPUK\n ON RKT.BA_CODE = NAMA_PUPUK.BA_CODE \n AND NAMA_PUPUK.PERIOD_BUDGET = RKT.PERIOD_BUDGET \n AND NAMA_PUPUK.AFD_CODE = RKT.AFD_CODE \n AND NAMA_PUPUK.BLOCK_CODE = RKT.BLOCK_CODE \n\t\t\tLEFT JOIN TM_ORGANIZATION ORG\n\t\t\t\tON ha_statement.BA_CODE = ORG.BA_CODE\n\t\t\tWHERE ha_statement.DELETE_USER IS NULL\n \";\n\t\t\n\t\tif($this->_siteCode <> 'ALL'){\n\t\t\tif ($this->_referenceRole == 'REGION_CODE')\n\t\t\t\t$query .= \"AND UPPER('\".$this->_siteCode.\"') LIKE '%'||UPPER(ORG.REGION_CODE)||'%'\";\n\t\t\telseif ($this->_referenceRole == 'BA_CODE')\n\t\t\t\t$query .= \"AND UPPER('\".$this->_siteCode.\"') LIKE '%'||UPPER(ha_statement.BA_CODE)||'%'\";\n\t\t}\n\t\tif($params['budgetperiod'] != ''){\n\t\t\t$query .= \"\n AND to_char(ha_statement.PERIOD_BUDGET,'RRRR') = '\".$params['budgetperiod'].\"'\n \";\n\t\t}elseif($params['PERIOD_BUDGET'] != ''){\n\t\t\t$query .= \"\n AND to_char(ha_statement.PERIOD_BUDGET,'RRRR') = '\".$params['PERIOD_BUDGET'].\"'\n \";\n\t\t}else{\n\t\t\t$query .= \"\n AND to_char(ha_statement.PERIOD_BUDGET,'DD-MM-RRRR') = '\".$this->_period.\"'\n \";\n\t\t}\n\t\t\n\t\t//filter region\n\t\tif ($params['src_region_code'] != '') {\n\t\t\t$query .= \"\n AND UPPER(ORG.REGION_CODE) LIKE UPPER('%\".$params['src_region_code'].\"%')\n \";\n }\n\t\t\n\t\t//filter BA\n\t\tif ($params['key_find'] != '') {\n\t\t\t$query .= \"\n AND UPPER(ha_statement.BA_CODE) LIKE UPPER('%\".$params['key_find'].\"%')\n \";\n }\n\n\t\t//jika diupdate dari norma VRA, filter berdasarkan BA\n\t\tif ($params['BA_CODE'] != '') {\n\t\t\t$query .= \"\n AND UPPER(HA.BA_CODE) LIKE UPPER('%\".$params['BA_CODE'].\"%') \n \";\n }\n\t\t\n\t\t//filter maturity_stage\n\t\tif (($params['src_matstage_code']) && ($params['src_matstage_code'] != 'ALL')) {\n\t\t\t$query .= \"\n AND (\n\t\t\t\t\tUPPER(ha_statement.MATURITY_STAGE_SMS1) LIKE UPPER('%\".$params['src_matstage_code'].\"%')\n\t\t\t\t\tOR UPPER(ha_statement.MATURITY_STAGE_SMS2) LIKE UPPER('%\".$params['src_matstage_code'].\"%')\n\t\t\t\t)\n \";\n }\n\t\t\n\t\t//filter afdeling\n\t\tif ($params['src_afd'] != '') {\n\t\t\t$query .= \"\n AND UPPER(ha_statement.AFD_CODE) LIKE UPPER('%\".$params['src_afd'].\"%')\n \";\n }\n\t\t\n\t\t//filter jenis pupuk\n\t\tif ($params['src_jenis_pupuk'] != '') {\n\t\t\t$query .= \"\n AND (\n\t\t\t\t\tUPPER(NAMA_PUPUK.MATERIAL_JAN) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_FEB) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_MAR) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_APR) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_MAY) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_JUN) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_JUL) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_AUG) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_SEP) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_OCT) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_NOV) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t\tOR UPPER(NAMA_PUPUK.MATERIAL_DEC) LIKE UPPER('%\".$params['src_jenis_pupuk'].\"%')\n\t\t\t\t)\n \";\n }\n\t\t\n\t\t$query .= \"\n\t\t\tGROUP BY to_char(ha_statement.PERIOD_BUDGET,'RRRR'), ha_statement.BA_CODE, ORG.COMPANY_NAME, ha_statement.AFD_CODE, ha_statement.BLOCK_CODE,\n\t\t\t\t\tha_statement.BLOCK_DESC,ha_statement.LAND_TYPE, ha_statement.TOPOGRAPHY, to_char(ha_statement.TAHUN_TANAM,'MM.RRRR'), \n\t\t\t\t to_char(ha_statement.TAHUN_TANAM,'MM'), \n\t\t\t\t to_char(ha_statement.TAHUN_TANAM,'RRRR'), ha_statement.MATURITY_STAGE_SMS1, ha_statement.MATURITY_STAGE_SMS2, ha_statement.HA_PLANTED, ha_statement.POKOK_TANAM, ha_statement.SPH\n\t\t\tORDER BY ha_statement.BA_CODE, ha_statement.AFD_CODE, ha_statement.BLOCK_CODE\n\t\t\";\n\t\t\n\t\treturn $query;\n\t}", "public function prepareResult(array $result, array $viewingUser)\n\t{\n\t\t$this->_getQuoteModel()->prepareQuotation($result);\n\t\treturn $result;\n\t}", "function db2data($data=null)\n\t{\n\t\tif (($intern = !is_array($data)))\n\t\t{\n\t\t\t$data =& $this->data;\n\t\t}\n\t\t// explode comma-separated grants and scopes\n\t\tforeach(['client_grants', 'client_scopes'] as $name)\n\t\t{\n\t\t\tif (isset($data[$name]))\n\t\t\t{\n\t\t\t\t$data[$name] = explode(',', $data[$name]);\n\t\t\t}\n\t\t}\n\t\treturn parent::db2data($intern ? null : $data);\t// important to use null, if $intern!\n\t}", "public function getSQL($data){\n\t\treturn array(\n \t\t'job_title' => (!empty($data['job_title']) ? $data['job_title'] : ''),\n \t\t'company_id' => (!empty($data['company_id']) ? $data['company_id'] : ''),\n \t\t'first_name' => (!empty($data['first_name']) ? $data['first_name'] : ''),\n \t\t'last_name' => (!empty($data['last_name']) ? $data['last_name'] : ''),\n \t\t'title' => (!empty($data['title']) ? $data['title'] : ''),\n \t\t'email' => (!empty($data['email']) ? $data['email'] : ''),\n \t\t'email2' => (!empty($data['email2']) ? $data['email2'] : ''),\n \t\t'url' => (!empty($data['url']) ? $data['url'] : ''),\n \t\t'phone_home' => (!empty($data['phone_home']) ? $data['phone_home'] : ''),\n \t\t'phone2' => (!empty($data['phone2']) ? $data['phone2'] : ''),\n \t\t'fax' => (!empty($data['fax']) ? $data['fax'] : ''),\n \t\t'mobile' => (!empty($data['mobile']) ? $data['mobile'] : ''),\n \t\t'address1' => (!empty($data['address1']) ? $data['address1'] : ''),\n \t\t'address2' => (!empty($data['address2']) ? $data['address2'] : ''),\n \t\t'city' => (!empty($data['city']) ? $data['city'] : ''),\n \t\t'state' => (!empty($data['state']) ? $data['state'] : ''),\n \t\t'zip' => (!empty($data['zip']) ? $data['zip'] : ''),\n \t\t'description' => (!empty($data['description']) ? $data['description'] : ''),\n \t\t'jabber' => (!empty($data['jabber']) ? $data['jabber'] : ''),\n \t\t'icq' => (!empty($data['icq']) ? $data['icq'] : ''),\n \t\t'msn' => (!empty($data['msn']) ? $data['msn'] : ''),\n \t\t'yahoo' => (!empty($data['yahoo']) ? $data['yahoo'] : ''),\n \t\t'aol' => (!empty($data['aol']) ? $data['aol'] : ''),\n \t\t'last_modified' => new \\Zend\\Db\\Sql\\Expression('NOW()')\n\t\t);\n\t}", "protected function prepareQuery()\n {\n if (false === $this->isQueryPrepared) {\n $options = array(\n SelectorSourceInterface::RESULT => SelectorSourceInterface::RESULT_IDENTIFIERS,\n SelectorSourceInterface::LIMIT => $this->limit,\n SelectorSourceInterface::OFFSET => $this->offset,\n SelectorSourceInterface::ORDERBY => $this->orderBy,\n SelectorSourceInterface::GROUPBY => $this->groupBy,\n );\n $this->setIdsArray(\n $this->source->loadIds(\n $this->criterias,\n array_merge($this->options, $options)\n ),\n array_merge($this->options, $options)\n );\n $this->isQueryPrepared = true;\n }\n\n return $this;\n }", "function remake()\n {\n $result = parent::select($this->table, '*', null);\n parent::closeConection();\n \n return $result;\n }", "function _getFieldData($fieldName){\n\n\t\t$SQLquery = \"SELECT `\"\n\t\t\t\t\t.$this->normalized[$fieldName]['tableKey'].\"` AS pkey\".\n\t\t\t\t\t\", `\"\n\t\t\t\t\t.$this->normalized[$fieldName]['tableValue'].\"` AS value \".\n\t\t\t\t\t\"FROM `\"\n\t\t\t\t\t.$this->normalized[$fieldName]['tableName'].\"` \".\n\t\t\t\t\t\"WHERE \"\n\t\t\t\t\t.$this->normalized[$fieldName]['whereClause'].\" \".\n\t\t\t\t\t\"ORDER BY \"\n\t\t\t\t\t.$this->normalized[$fieldName]['orderBy'];\n\n\t\t$retrievedData = $this->db->execute($SQLquery);\n\t\tif($this->db->error != \"\"){\n\t\t\techo \"ERROR: Unable to retrieve normalized data from '\".$this->normalized[$fieldName]['tableName'].\"'\".($this->db_errors?\"<br/>\".$this->db->error:\"\");\n\t\t\treturn false;\n\t\t}\n\t\t$this->normalized[$fieldName]['pairs'] = $numPairs;\n\t\t$i = 0;\n\t\tforeach($retrievedData as $set){\n\n\t\t\t#$set = $retrievedData;\n\t\t\t$this->normalized[$fieldName]['keys'][$i] = $set['pkey'];\n\t\t\t$this->normalized[$fieldName]['values'][$i] = $set['value'];\n\t\t\t$i++;\n\t\t}\n\n\t}", "protected function prepareDetailsTables()\n\t{\n\t}", "public function prepData($name,$value,$type){\n return array(\"name\"=>$name,\"value\"=>$value,\"type\"=>$type);\n }", "public function query_data($sql) {\n try {\n $result = $this->conn->query($sql);\n return $result->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n die(\"DB ERROR: \".$e->getMessage());\n }\n\n }" ]
[ "0.72777534", "0.67242235", "0.65121174", "0.64748305", "0.6466333", "0.6412503", "0.6350914", "0.6318678", "0.62788427", "0.62628794", "0.6241167", "0.6218731", "0.61926454", "0.6186326", "0.61344886", "0.610965", "0.60872614", "0.60728127", "0.60520667", "0.6040443", "0.59722114", "0.59644556", "0.59632725", "0.59602964", "0.5939712", "0.5939712", "0.5933742", "0.5933249", "0.5922161", "0.58821005", "0.5876765", "0.58628184", "0.58355093", "0.58086026", "0.58072805", "0.5802901", "0.5797976", "0.57919794", "0.5788491", "0.5785422", "0.57535094", "0.57361656", "0.5725426", "0.57194", "0.5706717", "0.57063514", "0.57063514", "0.5691864", "0.5627528", "0.5624488", "0.56188256", "0.5617999", "0.5603818", "0.5598897", "0.55934733", "0.55881715", "0.55878115", "0.5579952", "0.5573632", "0.5566251", "0.55524325", "0.554476", "0.55408335", "0.55369186", "0.5532459", "0.55294675", "0.55260515", "0.55217475", "0.551939", "0.5512686", "0.55032766", "0.550317", "0.5500263", "0.5500261", "0.5495434", "0.5484028", "0.54816544", "0.5481265", "0.5481265", "0.5481265", "0.54735065", "0.5468765", "0.54672533", "0.54633504", "0.5461734", "0.5458247", "0.54570967", "0.54539293", "0.54539293", "0.5444378", "0.54403627", "0.5434539", "0.5429348", "0.542824", "0.54277503", "0.54236454", "0.54174954", "0.5413698", "0.5409779", "0.540415", "0.5399041" ]
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() != null;\n }", "public function authorize(): bool\n {\n return $this->user() !== null;\n }", "public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }", "public function authorize()\n {\n return !is_null($this->user());\n }", "public function authorize()\n {\n return request()->user() != null;\n }", "public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }", "public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }", "public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }", "public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }", "public function isAuthorized() {}", "public function authorize()\n {\n return request()->loggedin_role === 1;\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') && $this->model->id != user()->id) {\n return false;\n }\n }\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }", "public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n return auth()->check() ? true : false;\n }", "public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }", "public function authorize()\n {\n switch (true) {\n case $this->wantsToList():\n case $this->wantsToShow():\n if ($this->hasRoles(['owner', 'administrator'])) {\n return true;\n }\n break;\n case $this->wantsToStore():\n case $this->wantsToUpdate():\n case $this->wantsToDestroy():\n if ($this->hasRoles(['owner'])) {\n return true;\n }\n break;\n }\n\n return false;\n }", "public function authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }", "function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }", "public function authorize()\n {\n $user = auth('web')->user();\n if ($user && $user->active) {\n return true;\n }\n\n return false;\n }", "public function authorize()\n {\n $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function isAuthorized() {\n\t\treturn true;\n\t}", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin'])) {\n return true;\n } else {\n return false;\n }\n }", "public function isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}", "public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }", "public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }", "public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "public function hasAuthorized() {\n return $this->_has(1);\n }", "public function authorize()\n {\n $resource = Resource::find($this->route('id'));\n\n if (!$resource) {\n return true;\n }\n\n return $resource && $this->user()->can('access', $resource);\n }", "public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }", "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }", "public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }", "public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n return \\Auth::check() ? true : false;\n }", "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return !empty(Auth::user());\n }", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }", "public function isAuthorized() {\n\t\t\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n {\n if(Auth::check())\n {\n return (Auth::user()->has_world_admin_access);\n }\n return false;\n }", "public function authorize()\n {\n if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }", "public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }", "public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }", "public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}", "public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }", "public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }", "public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n {\n return $this->auth->check();\n }", "public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }", "public function authorize() {\n\t\t$user = \\Auth::user();\n\n\t\tif ( $user->isAdmin() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function authorize()\n {\n if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "function isAuthorized($request) {\n return true;\n }", "public function authorize()\n {\n return Auth::guest() || isMember();\n }", "public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }", "public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }", "public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }", "public function authorize()\n {\n return TRUE;\n }", "public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }", "public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }", "public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}", "public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\n }", "public function authorize()\n {\n $project = \\App\\Project::find($this->request->get('project'));\n return $project && $project->isManager($this->user()->name);\n }", "public function isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "public function authorize()\n {\n // User system not implemented\n return true;\n }", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "public function authorize()\n {\n $organizationId = (string) $this->route('id');\n\n $this->organization = Organization::findByUuidOrFail($organizationId);\n\n return $this->user()->can('show', [Organization::class, $this->organization]);\n }", "public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }", "public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\n }", "public function authorize()\n {\n $current_user = auth()->user();\n $convention = Convention::find($this->route('convention_id'));\n\n // Use ClientPolicy here to authorize before checking the fields\n return $current_user->can('store', Convention::class)\n || $current_user->can('update', $convention);\n }", "public function authorize()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }", "public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }" ]
[ "0.8399528", "0.83755803", "0.83755803", "0.8342532", "0.8252005", "0.8246491", "0.82114965", "0.81451535", "0.81095713", "0.80819905", "0.799094", "0.79885143", "0.79823685", "0.7959513", "0.7950321", "0.7947592", "0.7925319", "0.7914417", "0.7899287", "0.7892423", "0.788904", "0.7888573", "0.7859566", "0.7840388", "0.7840388", "0.7837057", "0.7822922", "0.78116244", "0.7807664", "0.7791735", "0.7785959", "0.77811456", "0.77799726", "0.7762375", "0.7753727", "0.7719034", "0.7719034", "0.771513", "0.77119666", "0.77024996", "0.7692876", "0.76920134", "0.76908916", "0.7689253", "0.7672893", "0.7666128", "0.7665256", "0.76551706", "0.76500374", "0.76414853", "0.7641037", "0.7640742", "0.763345", "0.7629214", "0.7628391", "0.76269794", "0.76197463", "0.76197463", "0.76123273", "0.7602711", "0.7602425", "0.76015925", "0.76015925", "0.76007396", "0.7597639", "0.75951606", "0.7587452", "0.7584679", "0.7579657", "0.7562462", "0.7552138", "0.7551783", "0.75504583", "0.754368", "0.7541822", "0.75382096", "0.75371224", "0.75285393", "0.75156033", "0.7512623", "0.7499459", "0.74951875", "0.7494698", "0.74913925", "0.74869126", "0.7486122", "0.74787915", "0.7476152", "0.7471878", "0.7470218", "0.7464096", "0.74636215", "0.7463019", "0.74618673", "0.74608135", "0.7448682", "0.74387354", "0.743482", "0.74337745", "0.74311817", "0.7422809" ]
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'nome' => 'required|max:50', 'codigo' => 'required|numeric', 'fabricante' => 'required|max:50', 'valor' => 'required|numeric', 'descricao' => 'required|min:10', 'detalhes' => 'required|min:10', 'categoria' => 'required|max:100', 'imagem' => 'nullable|sometimes|image|mimes:jpg,jpeg,png,gif', 'ativo' => 'required' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "public function rules()\n {\n return $this->validationRules;\n }", "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "public function getRules()\n {\n return $this->validation_rules;\n }", "public function getValidationRules()\n {\n return [];\n }", "public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }", "public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }", "public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n return $this->rules;\n }", "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }", "public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }", "public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }", "public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }", "protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }", "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "protected function getValidRules()\n {\n return $this->validRules;\n }", "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n { \n return $this->rules;\n }", "public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }", "public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }", "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }", "public function validationRules()\n {\n return [];\n }", "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }", "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}", "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }", "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n return static::$rules;\n }", "function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }", "public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }", "public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }", "public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }", "public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }", "public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }", "abstract protected function getValidationRules();", "public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }", "public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }", "public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }", "public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }", "public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }", "public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }", "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }", "public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }", "public function getValidationRules() : array;", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}", "public function rules()\n {\n $rules = array();\n return $rules;\n }", "public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }", "public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "protected function get_validation_rules()\n {\n }", "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }", "public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }", "public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }", "public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }", "public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }", "public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }", "public function rules(Request $request)\n {\n return Qc::$rules;\n }", "public function defineValidationRules()\n {\n return [];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }", "public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }" ]
[ "0.8342797", "0.8013068", "0.79357624", "0.79257727", "0.7922943", "0.7903906", "0.7859204", "0.7789624", "0.7783409", "0.77624106", "0.773673", "0.7732383", "0.77094924", "0.7691624", "0.7684878", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.76753145", "0.76747704", "0.76653886", "0.7656984", "0.7641385", "0.7629662", "0.7629557", "0.7617277", "0.76092637", "0.7607173", "0.7602176", "0.7598716", "0.7597812", "0.7591812", "0.75902253", "0.7587347", "0.7579866", "0.75553906", "0.7555079", "0.75503534", "0.75459445", "0.7540463", "0.7536189", "0.75356364", "0.75300074", "0.75181943", "0.7514811", "0.75078565", "0.7506201", "0.75052506", "0.7498871", "0.7495198", "0.7494957", "0.7493081", "0.74902064", "0.7489407", "0.74890095", "0.7485984", "0.74858546", "0.7478957", "0.74781555", "0.74693084", "0.74632835", "0.7461654", "0.746117", "0.745908", "0.74546385", "0.7453331", "0.7452256", "0.7449815", "0.74481654", "0.7441297", "0.74408644", "0.7435215", "0.743476", "0.7432712", "0.74296844", "0.74289936", "0.7423239", "0.7418971", "0.74155754", "0.7413715", "0.7413531", "0.7412177", "0.7409704", "0.740534", "0.74039155", "0.7403364", "0.740084", "0.73900056", "0.73831314", "0.73729247", "0.7370593", "0.73688376", "0.73608065", "0.7355452", "0.7346383", "0.73441696", "0.73426807", "0.73349255" ]
0.0
-1
Set the current URL
private function setUrl(): void { $completeUrl = $_SERVER['REQUEST_URI']; $explodedUrl = \explode('?', $completeUrl); $this->url = trim($explodedUrl[0], '/'); // Cleaned URL }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_current_url() {\r\n\t\t\t$this->current_url = $this->get_current_url();\r\n\t\t}", "protected function initCurrentUrl() {}", "protected function initCurrentUrl() {}", "protected function setUrl() {\r\n\t\t$this->url = htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), ENT_QUOTES);\r\n\t}", "public function setCurrentUrl(Url $url): void;", "public static function setUrl(): void\n\t{\n\n\t\tif (strpos(static::$fullUrl, '?')) {\n\t\t\tstatic::$url = substr(static::$fullUrl, 0, strpos(static::$fullUrl, '?'));\n\t\t} else {\n\t\t\tstatic::$url = static::$fullUrl;\n\t\t}\n\n\t}", "public function setUrl()\n {\n $this->set('url', function() {\n $url = new Url();\n $url->setBaseUri('/');\n return $url;\n });\n }", "public function getCurrentUrl();", "public function setSiteUrl()\n {\n }", "function setURL($url){\n $this->urltoopen = $url;\n }", "function setUrl($url);", "protected function renderCurrentUrl() {}", "protected function renderCurrentUrl() {}", "private function get_current_url() {\n if ( $this->cur_url !== '' ) {\n return $this->cur_url;\n }\n\n $server_name = preg_replace('/^www\\./i', '', $_SERVER[ \"SERVER_NAME\" ]);\n\n if ( !in_array( $_SERVER[ \"SERVER_PORT\" ], array( \"80\", \"443\" ) ) ) {\n $this->cur_url = trailingslashit( $server_name . \":\" . $_SERVER[ \"SERVER_PORT\" ] . $_SERVER[ \"REQUEST_URI\" ] );\n } else {\n $this->cur_url = trailingslashit( $server_name . $_SERVER[ \"REQUEST_URI\" ] );\n }\n return $this->cur_url;\n }", "protected function initiateUrl()\n\t{\n\t\t// base url\n\t\tif($this->app->config->has('app.url'))\n\t\t\t$this->setBase($this->app->config->get('app.url'));\n\n\t\t// asset url\n\t\tif($this->app->config->has('asset.url'))\n\t\t\t$this->setAsset($this->app->config->get('asset.url'));\n\t}", "function currentUrl($value='')\n\t{\n\t \treturn 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];\n\t}", "private function setUri(): void\n {\n $this->uri = strtok($_SERVER['REQUEST_URI'],'?');\n }", "function setPath() {\n\n // Wp installation path\n $wp_install_path = str_replace( 'http://' . $_SERVER['HTTP_HOST'], '', site_url());\n\n // Set the instance starting path\n $this->path = $wp_install_path . App::getOption('path');\n\n // Grab the server-passed \"REQUEST_URI\"\n $this->current_uri = $this->request->server()->get('REQUEST_URI');\n\n // Remove the starting URI from the equation\n // ex. /wp/cocoon/mypage -> /mypage\n $this->request->server()->set(\n 'REQUEST_URI', substr($this->current_uri, strlen($this->path))\n );\n\n }", "public static function current_url()\r\n\t{\r\n\t\t$url = Request::factory()->uri();\r\n\t\tif($_GET)\r\n\t\t{\r\n\t\t\t$url .= '/?' . $_SERVER['QUERY_STRING'];\r\n\t\t}\r\n\t\t$url = URL::site( $url, TRUE);\r\n\t\treturn $url;\r\n\t}", "public static function current_url()\r\n\t{\r\n\t\t$url = Request::factory()->uri();\r\n\t\tif($_GET)\r\n\t\t{\r\n\t\t\t$url .= '/?' . $_SERVER['QUERY_STRING'];\r\n\t\t}\r\n\t\t$url = URL::site( $url, TRUE);\r\n\t\treturn $url;\r\n\t}", "private function set_base_url()\n\t{\n\t\t// We completely kill the site URL value. It's now blank.\n\t\t// This enables us to use only the \"index.php\" part of the URL.\n\t\t// Since we do not know where the CP access file is being loaded from\n\t\t// we need to use only the relative URL\n\t\t$this->config->set_item('site_url', '');\n\n\t\t// We set the index page to the SELF value.\n\t\t// but it might have been renamed by the user\n\t\t$this->config->set_item('index_page', SELF);\n\t\t$this->config->set_item('site_index', SELF); // Same with the CI site_index\n\t}", "public function addUrl() {\r\n\t\t$current = $this->params['url']['url'];\r\n\t\t$accept = array('show', 'admin_show', 'admin_index');\r\n\t\tif(in_array($this->action, $accept)) {\r\n\t\t\tif ($this->Session->read('history.current') != $current){\r\n\t\t\t\t//$this->Session->write('history.previous', $this->Session->read('history.current'))->write('history.current', $current);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function getCurrentURL()\n {\n return $this->getBaseUrl() . $this->getURI();\n }", "function set_base_url($url) {\n if($url[strlen($url)-1] != '/') {\n $url .= '/'; \n }\n \n $this->base_url = $url;\n }", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "function setUrl( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Url = ( $value );\n }", "public static function setFullUrl(): void\n\t{\n\t\t$requestUri = urldecode(Server::get('REQUEST_URI'));\n\t\tstatic::$fullUrl = rtrim(preg_replace('#^' . static::$scriptDirectory . '#', '', $requestUri), '/');\n\t}", "function set_base_url($url)\n\t{\n\t\t$this->base_url = $url;\n\t}", "private function setUrl()\n {\n curl_setopt($this->curl, CURLOPT_URL, $this->server);\n }", "function current_url() {\n\treturn 'http' . (empty($_SERVER['HTTPS']) ? '' : 's') . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n}", "function setUrl($url) {\n\t\t$this->_url = $url;\n\t}", "function setUrl($url) {\n\t\t$this->_url = $url;\n\t}", "function current_url()\n {\n return $this->currentURL();\n }", "function formatCurrentUrl() ;", "public function setLocation($url);", "function getCurrentURL() {\n return \"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n}", "public function setUrl(string $request)\n {\n $this->isBaseUrlEmpty();\n\n $this->url = $this->baseUrl . $request;\n }", "protected function _setSelfSubmitUri()\n {\n\t\t$uriSelfSubmit = preg_replace('/\\?.*/', '', $_SERVER['REQUEST_URI']);\n\t\t#$this->getEnv()->setUriSelfSubmit($uriSelfSubmit);\n }", "public function setURL($url)\n\t\t{\n\t\t\t$this->url = preg_replace(\"#/$#\", \"\", $url);\n\t\t}", "function set_base_url( $url = '' )\n {\n if ( empty($url) ) {\n $this->url = 'http://' . $_SERVER['HTTP_HOST'];\n } else {\n // Strip any trailing slashes for consistency (relative\n // URLs may already start with a slash like \"/file.html\")\n if ( substr($url, -1) == '/' ) {\n $url = substr($url, 0, -1);\n }\n $this->url = $url;\n }\n }", "function site($url) {\n\t\t$this->url = $url;\n\t}", "public function setUrl($value)\n\t\t{\n\t\t\t$url = parse_url((strpos($value, \"://\") === false ? \"http://{$value}\" : $value));\n\t\t\t\n\t\t\t// Set url defaults if they have been left out\n\t\t\tif(!isset($url['scheme'])) $url['scheme'] = 'http';\n\t\t\tif(!isset($url['path'])) $url['path'] = '/';\n\t\t\t\n\t\t\t// Correct parsed url further\n\t\t\tif(!isset($url['host']))\n\t\t\t{\n\t\t\t\t// If host couldent be parsed, this must mean that there is no\n\t\t\t\t// seperation between host and path. ex www.test.com(path left out).\n\t\t\t\t$url['host'] = str_replace(\"/\", \"\", $url['path']);\n\t\t\t\t$url['path'] = '/';\n\t\t\t}\n\t\t\t\n\t\t\t// Set host header\n\t\t\t$this->_headers->set(new HttpHeaderItem(\"Host\",\n\t\t\t\t$url['host'] . (string)(@$url[\"port\"] == null ? \"\" : \":\" . $url['port'])));\n\t\t\t\n\t\t\t// Store parsed url\n\t\t\t$this->_url = $url;\n\t\t}", "public function setNavigateUrl($value)\n\t{\n\t\t$this->setViewState('NavigateUrl',$value,'');\n\t}", "function setSyncUrl()\n {\n }", "public function set_login_url()\n {\n return home_url();\n }", "public static function currentURL() {\n\t\t$base = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t\t$protocol = (empty($_SERVER['HTTPS'])) ? 'https' : 'http';\n\t\treturn $protocol.'://'.$base;\n\t}", "function put_my_url(){\n\treturn (get_home_url());\n}", "public function setUrl($value)\n {\n $this->_url = $value;\n }", "public function setURL($url);", "public function setURL($url);", "public function showMeCurrentUrl() {\r\n /** @var MinkSession $session */\r\n $session = $this->getSession();\r\n echo \"You are on: \".$session->getCurrentUrl();\r\n }", "function get_current_url(){\n return $url = \"http://\" . $_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI'];\n}", "public function setUrl( $url );", "public function getCurrentUrl()\n {\n return $this->_currentUrl;\n }", "public function current_url()\n {\n return trim($this->get('url'), '/');\n }", "function get_current_url() {\n $get = $_GET;\n unset($get['request_uri']);\n $qs = http_build_query($get);\n return Router::$page_url . (!empty($qs) ? \"?$qs\" : null);\n}", "public static function CurrentURL() {\n\n // Create link to current page\n $refToThisPage = \"http\";\n $refToThisPage .= (@$_SERVER[\"HTTPS\"] == \"on\") ? 's' : '';\n $refToThisPage .= \"://\";\n $serverPort = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? '' : \":{$_SERVER['SERVER_PORT']}\";\n $refToThisPage .= $serverPort . $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\n\n return $refToThisPage;\n }", "function setURL( $url ) \n {\n $this->setValueByFieldName( 'navbarlink_url', $url );\n }", "public function url(){\r\n\t\techo $_SERVER['SERVER_NAME'].\" => \".$_SERVER['PHP_SELF'];\r\n\t}", "static function currentURL(){\n $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https';\n $host = $_SERVER['HTTP_HOST'];\n $script = $_SERVER['SCRIPT_NAME'];\n $params = $_SERVER['QUERY_STRING'];\n\n return $protocol . '://' . $host . $script . '?' . $params;\n }", "private function setCurrentPath(){\n\t\t$dirs = explode('/', $this->pages[0]);\n\t\t// if last character is a / then just use it\n\t\tif(empty($dirs[count($dirs)-1]) || is_null($dirs[count($dirs)-1])){\n\t\t\t$this->current_path = $this->pages[0];\n\t\t// if end of path was a filename, remove it and add a /\n\t\t} else {\n\t\t\tarray_pop($dirs);\n\t\t\t$this->current_path = implode('/', $dirs).'/';\n\t\t}\n\t}", "function current_url() {\n $page_url = 'http';\n if (@$_SERVER['HTTPS'] == 'on') {\n $page_url .= 's';\n }\n $page_url .= '://'.$_SERVER['SERVER_NAME'];\n if ($_SERVER['SERVER_PORT'] != '80') {\n $page_url .= ':'.$_SERVER['SERVER_PORT'];\n }\n $page_url .= $_SERVER['REQUEST_URI'];\n return $page_url;\n}", "public function setLocation($url = null);", "private function getCurrentURL() {\n $currentURL = (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") ? \"https://\" : \"http://\";\n $currentURL .= $_SERVER[\"SERVER_NAME\"];\n\n if ($_SERVER[\"SERVER_PORT\"] != \"80\" && $_SERVER[\"SERVER_PORT\"] != \"443\") {\n $currentURL .= \":\" . $_SERVER[\"SERVER_PORT\"];\n }\n\n // $currentURL .= $_SERVER[\"REQUEST_URI\"];\n // Ignore Query String\n if (isset($_SERVER[\"SCRIPT_NAME\"])) {\n $currentURL .= $_SERVER[\"SCRIPT_NAME\"];\n }\n if (isset($_SERVER[\"PATH_INFO\"])) {\n $currentURL .= $_SERVER[\"PATH_INFO\"];\n }\n return $currentURL;\n }", "public function setIntended($url);", "private static function setUristr() {\n $uri_request = HttpHelper::getUri();\n if(WEB_DIR != \"/\") {\n self::$uri = str_replace(WEB_DIR, \"\", $uri_request);\n } else {\n self::$uri = substr($uri_request, 1);\n }\n }", "public function setUrl($str){\n\t\t$this->url = $str;\n\t\t$tmp=parse_url($this->url); // heroku refuses to make direct dereference\n\t\t$host = $tmp['host'];\n\t\tforeach ($this->supportedHosts as $supportedHost) {\n\t\t\tif($host === $supportedHost){\n\t\t\t\t$this->host = $supportedHost;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public function setUrl($url)\r\n {\r\n $this->path['url'] = $url;\r\n }", "public function setUrl($url) {\n\t\t$this->setQueryParam ( self::URL_PARAM, $url );\n\t}", "public function setUrl($url) {}", "protected function set_url_this_edit($val){ $this->input ['edit_url'] = $val ; }", "function get_current_page_url() {\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') \n $url = \"https://\"; \n else \n $url = \"http://\"; \n // Append the host(domain name, ip) to the URL. \n $url.= $_SERVER['HTTP_HOST']; \n \n // Append the requested resource location to the URL \n $url.= $_SERVER['REQUEST_URI'];\n return $url; \n }", "public function set_tgmpa_url() {\n\n\t\t\t$this->tgmpa_menu_slug = ( property_exists( $this->tgmpa_instance, 'menu' ) ) ? $this->tgmpa_instance->menu : $this->tgmpa_menu_slug;\n\t\t\t$this->tgmpa_menu_slug = apply_filters( $this->theme_name . '_theme_setup_wizard_tgmpa_menu_slug', $this->tgmpa_menu_slug );\n\n\t\t\t$tgmpa_parent_slug = ( property_exists( $this->tgmpa_instance, 'parent_slug' ) && $this->tgmpa_instance->parent_slug !== 'themes.php' ) ? 'admin.php' : 'themes.php';\n\n\t\t\t$this->tgmpa_url = apply_filters( $this->theme_name . '_theme_setup_wizard_tgmpa_url', $tgmpa_parent_slug . '?page=' . $this->tgmpa_menu_slug );\n\n\t\t}", "function set_previous_url($uri)\n{\n\t$ci =& get_instance();\n\t$ci->session->set_tempdata('prev_url', $uri, 60);\n}", "private function get_current_url() {\n\n\t\t$url = set_url_scheme(\n\t\t\t'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']\n\t\t);\n\n\t\t// We use 'msg' as parameter internally. Not needed for pagination.\n\t\treturn remove_query_arg( 'msg', $url );\n\t}", "protected function set_url($location=null)\n\t{\n\n\t\t$this->url = $this->api_host.$location;\n\t\t\n\t}", "public static function current_url()\n {\n $config = cmsms()->GetConfig();\n $uri_parts = explode('/',$_SERVER['REQUEST_URI']);\n $uri_parts = cge_array::remove_by_value($uri_parts);\n $tmp = parse_url($config['root_url']);\n $root_parts = array();\n if( isset($tmp['path']) )\n {\n\t$root_parts = explode('/',$tmp['path']);\n\t$root_parts = cge_array::remove_by_value($root_parts);\n }\n \n $newdata = array();\n for($i = 0; $i < max(count($uri_parts),count($root_parts)); $i++ )\n {\n\tif( ($i < count($uri_parts)) && \n\t ($i < count($root_parts)) && \n\t ($root_parts[$i] == $uri_parts[$i]) )\n\t {\n\t continue;\n\t }\n\t$newdata[] = $uri_parts[$i];\n }\n $url = $config['root_url'].'/'.implode('/',$newdata);\n return $url;\n }", "function current_url( $slash = TRUE )\n{\n\t$CI =& get_instance();\n\n\tif($slash == TRUE)\n\t{\n\t\treturn $CI->config->site_url($CI->uri->uri_string()).'/';\n\t}\n\telse\n\t{\n\t\treturn trim('/',$CI->config->site_url($CI->uri->uri_string()));\n\t}\n}", "private static function getCurentUrl()\r\n {\r\n return isset($_SERVER['PATH_INFO']) ? self::cleanUrl($_SERVER['PATH_INFO']) : '/';\r\n }", "private function get_current_page_url() {\n $url = (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == 'on') ? 'https://' : 'http://';\n $url .= $_SERVER['SERVER_NAME'];\n $url .= $_SERVER['SERVER_PORT'] == 80 ? $_SERVER['REQUEST_URI'] : ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n\n return $url;\n }", "function current_url() {\n $protocol = (isset($_SERVER['HTTPS']) ? \"https\" : \"http\");\n return \"$protocol://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n}", "public function setUrl($url){\n $this->url = $url;\n }", "function tp_get_current_url() {\r\n\t$requested_url = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';\r\n\t$requested_url .= $_SERVER['HTTP_HOST'];\r\n\t$requested_url .= $_SERVER['REQUEST_URI'];\r\n\treturn $requested_url;\r\n}", "public function setCurrentURI( $uri )\n {\n $this->currentURI = $uri;\n }", "public static function currentURL() {\n $pgurl = \"http\";\n if(!empty($_SERVER['HTTPS'])) $pgurl .= \"s\";\n $pgurl .= \"://\".$_SERVER[\"SERVER_NAME\"];\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") $pgurl .= \":\".$_SERVER[\"SERVER_PORT\"];\n \n return ($pgurl .= $_SERVER[\"SCRIPT_NAME\"]);\n }", "private function setBaseURL($url){\n\t\t$this->baseURL = $url;\n\t}", "public function setURL($url)\n {\n $this->url = $url;\n }", "function force_menu_url($url)\r\n {\r\n //$this->get_category_menu()->forceCurrentUrl($url);\r\n }", "function force_menu_url($url)\r\n {\r\n //$this->get_category_menu()->forceCurrentUrl($url);\r\n }", "public function setRequestUrl($url) {}", "public function setUrl( $url )\n\t{\n\t\tif ( $url ) {\n $this->url = $url;\n\t\t}\n\t}", "public function setUrl($url) {\n\t\t$this->url = $url;\n\t}", "public static function setApplicationUrl($prm_url=\"localhost\")\n\t{\n global $application_install_url;\n $application_install_url=$prm_url;\n\t}", "public static function setWebsiteURL($paramURL){\n getDatabase()->update(\"settings\",array(\n \"value\" => $paramURL\n ), \"setting = 'website_url'\");\n Cache::store('website_url', $paramURL);\n }", "function setURL($path, $lang, $state = null, $page, $token = null)\n\t{\n\t\tif (!in_array($path, ['backend','frontend']))\n\t\t\treturn '';\n\t\t\n\t\tif ($path == 'backend')\n\t\t\t\n\t\t\treturn BASE_URL.$path\n\t\t\t\t.'?lang='.$lang\n\t\t\t\t.'&state='.$state\n\t\t\t\t.'&page='.$page\n\t\t\t\t.(isset($token) ? '&token='.urlencode($token) : '');\n\t\telse if ($path == 'frontend')\n\t\t\t\n\t\t\treturn BASE_URL.$path\n\t\t\t\t.'?lang='.$lang\n\t\t\t\t.'&page='.$page;\n\t}" ]
[ "0.87452483", "0.7824347", "0.7824347", "0.7288479", "0.7239495", "0.72066015", "0.6935518", "0.67902577", "0.6782264", "0.6771426", "0.6742055", "0.672379", "0.672379", "0.6699337", "0.6698233", "0.66434944", "0.65670234", "0.65430605", "0.64147294", "0.64147294", "0.6414483", "0.6413626", "0.6397438", "0.63969207", "0.6396068", "0.6396068", "0.6396068", "0.6396068", "0.6396068", "0.6396068", "0.6387364", "0.6356928", "0.63411456", "0.6338851", "0.6337174", "0.6334485", "0.6334485", "0.63235736", "0.6318149", "0.6307016", "0.6303715", "0.6275961", "0.6271686", "0.62515527", "0.624647", "0.6243901", "0.62141496", "0.6190774", "0.61902785", "0.61875474", "0.61637557", "0.61454976", "0.61383456", "0.6134833", "0.6134833", "0.61317515", "0.6123558", "0.61089295", "0.6108619", "0.6108238", "0.60824215", "0.6072506", "0.6036006", "0.6030063", "0.6021935", "0.6021668", "0.602069", "0.6018348", "0.6016715", "0.6011361", "0.6009547", "0.60053235", "0.5990901", "0.598584", "0.5976267", "0.59674853", "0.5963536", "0.5960513", "0.5949339", "0.59467703", "0.5925436", "0.59197116", "0.58983433", "0.5896716", "0.58944726", "0.58944017", "0.589116", "0.5890144", "0.5883651", "0.588312", "0.5866463", "0.5863492", "0.5862511", "0.5862511", "0.58587843", "0.585537", "0.5853163", "0.5852159", "0.5847783", "0.5842117" ]
0.7527487
3
Get the URL and return it as a string
public function getUrlAsString(): string { return $this->url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_url(): string\n {\n return $this->get_url_internal();\n }", "public function getURL(): string\n {\n return $this->http->getURL();\n }", "public function getURL();", "public function getURL();", "protected function getUrl(): string\n {\n return $this->url;\n }", "public function getURL ();", "public static function url(): string\n\t{\n\t\treturn static::$url;\n\t}", "public function get_url();", "public function url(): string\n {\n return $this->url;\n }", "public function url(): string\n {\n return $this->url;\n }", "protected function getUrl()\n {\n if (!empty($this->info['url'])) {\n return $this->info['url'];\n }\n }", "public function getUrl() {\n return $this->get(self::URL);\n }", "public abstract function getURL();", "public function getUrl() : string\n {\n return $this->url;\n }", "public function getUrl() : string\n {\n return $this->url;\n }", "public function getUrl(): string\n {\n return $this->url;\n }", "public function getUrl(): string\n {\n return $this->url;\n }", "public function get_url () {\r\n\t\treturn $this->url;\r\n\t}", "public function url(): string\n {\n return strtok($this->getUri(), '?');\n }", "public function getUrl(): string {\n\t\treturn $this->_url;\n\t}", "protected function getUrl() {\r\n\t\treturn $this->url;\r\n\t}", "public function get_url() {\n\t\treturn $this->url;\n\t}", "public function get_url() {\n\t\treturn $this->url;\n\t}", "public function getUrl() {\n\t\treturn $this->rawUrl;\n\t}", "public function getUrl(): string;", "public function getUrl(): string;", "public function getUrl(): string;", "public function getUrl()\n {\n return $this->parseUrl();\n }", "public function url(): string;", "public function url()\n {\n return $this->factory->getUrl($this->handle);\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}", "public function GetUrl() {\n return $this->url;\n }", "public function get_url()\n {\n return $this->url;\n }", "public function getUrl(): string {\n return $this->url;\n }", "public function url()\n\t{\n\t\tif( $this->modified === false ) return $this->url;\n\t\telse\n\t\t{\n\t\t\t$url = $this->generateString();\n\t\t\treturn htmlentities( $url );\n\t\t}\n\t}", "public function url() {\n return $this->info['url'];\n }", "protected function getUrl() {\n return $this->url;\n }", "public function getUrl(): string\n {\n return self::URL;\n }", "public function getUrl()\r\n\t{\r\n\t\treturn $this->url;\r\n\t}", "public function GetURL() {\n\n return $this->URL;\n }", "public function getUrl()\n {\n return $this->scheme . '://' . $this->host . ':' . $this->port . '/' . trim($this->path, '/');\n }", "protected function url()\n\t{\n\t\treturn Phpfox::getLib('url');\t\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl()\n\t{\n\t\treturn $this->url;\n\t}", "public function GetURL()\n\t\t{\n\t\t\treturn $this->_url;\n\t\t}", "public function url()\n\t{\n\t\treturn $this->url;\n\t}", "public function getUrl() {\n\t\treturn $this->url;\n\t}", "public function getUrl() {\n\t\treturn $this->url;\n\t}", "public function getUrl() {\n\t\treturn $this->url;\n\t}", "public function url(): string\n {\n return Uri::current()->setPath($this->name)->setSlash(true)->toString();\n }", "public function getURL() {\n\t\treturn $this->url;\n\t}", "public function getUrl()\n {\n return trim(implode('/', $this->path), '/').$this->getParams();\n }", "public function url(){\n $protocol = \"http://\";\n if ( !empty( $_SERVER['HTTPS'] ) ) {\n $protocol = \"https://\";\n }\n $url = $protocol . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n return $url;\n }", "public function getUrl()\n {\n return $this->createUrl();\n }", "public function\n\tGetURL():\n\t?String {\n\n\t\treturn sprintf(\n\t\t\t'%s://%s%s%s',\n\t\t\t$this->GetProtocol(),\n\t\t\t$this->GetFullDomain(),\n\t\t\t(($this->GetPath() === '/index')?\n\t\t\t\t('/'):\n\t\t\t\t($this->GetPath())\n\t\t\t),\n\t\t\t((count($this->Query) >= 1)?\n\t\t\t\t($this->QueryCooker($this->Query)):\n\t\t\t\t(''))\n\t\t);\n\t}", "public function getUrl()\n {\n return $this->_urlBuilder->getUrl();\n }", "public function getUrl() {\n if ($this->hasUrl()) {\n return $this->_getData('url');\n }\n $uri = $this->getUrlKey() . $this->getUrlSuffix();\n return $this->_getUrl($uri);\n }", "public function getUrl(): string\n {\n $query = $this->getQuery();\n return\n $this->getScheme() .\n '://' .\n $this->getHostAndPort() .\n $this->getRoot() .\n $this->getPath() .\n (!empty($query) ? '?' . http_build_query($query) : '');\n }", "public function getUrl()\r\n {\r\n if (isset($_GET['url'])) {\r\n\r\n // remove the ending slash\r\n $url = rtrim($_GET['url'], '/');\r\n\r\n // removing any none url characters\r\n $url = filter_var($url, FILTER_SANITIZE_URL);\r\n\r\n // get url characters as an array using explode function\r\n $url = explode('/',$url);\r\n\r\n return $url;\r\n }\r\n }", "public function getUrl()\n {\n return $this->url_format;\n }", "public function url() {\n return Magic::url();\n }", "function get_url()\n {\n }", "public function getUrl(): string\n {\n return ($this->prefix ?? '') . $this->uri;\n }", "public function get_url()\n {\n return $this->_url;\n }", "public function get_url()\n {\n return $this->_url;\n }", "public function getURL()\n\t{\n $url = $this->_internal_request->get_normalized_http_url();\n \n if ( $this->getMethod() == KHttpRequest::GET ) \n {\n $url = $this->_internal_request->to_url();\n }\n \n\t\treturn $url;\n\t}", "public function url(): string\n\t{\n\t\tswitch ($this->type())\n\t\t{\n\t\t\tcase UgcType::Video:\n\t\t\t\treturn $this->generateUrls()->downloadUrl;\n\t\t\tbreak;\n\n\t\t\tcase UgcType::Image:\n\t\t\t\treturn $this->generateUrls()->screenshotUrl;\n\t\t\tbreak;\n\t\t}\n\t}", "public function url()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }", "public function getUrl()\n {\n return $this->url;\n }" ]
[ "0.8298792", "0.82575816", "0.8222928", "0.8222928", "0.8146713", "0.80857027", "0.7984615", "0.7959286", "0.79391223", "0.79391223", "0.7905314", "0.7896312", "0.7877292", "0.7848821", "0.7848821", "0.78416365", "0.78416365", "0.7818941", "0.78179413", "0.7758728", "0.77471983", "0.773882", "0.773882", "0.77210677", "0.77035415", "0.77035415", "0.77035415", "0.76951176", "0.76544726", "0.7650061", "0.7644633", "0.7643769", "0.7636849", "0.7624913", "0.7622415", "0.76214653", "0.76146984", "0.7607596", "0.75813466", "0.75743026", "0.75498426", "0.75489694", "0.7537861", "0.7537861", "0.7537861", "0.7537861", "0.7537861", "0.7529899", "0.7528837", "0.75286454", "0.75286454", "0.75286454", "0.7526243", "0.75259554", "0.7525893", "0.75249934", "0.7504753", "0.75001603", "0.7493814", "0.748931", "0.7487516", "0.74838156", "0.7479672", "0.7478949", "0.74773246", "0.7476399", "0.746698", "0.746698", "0.7464042", "0.7453982", "0.7453029", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974", "0.74506974" ]
0.8354214
0
Get the route as an array
public function getUrlAsArray(): array { return \explode('/', $this->url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieve()\n {\n return (array) $this->routes;\n }", "public function getRoutes() : array;", "public function getRoutes() : array;", "function getRouteArray()\n{\n\t// Get the current route as a string from the getRoute function.\n\t$route = getRoute();\n\n\t// Remove the first directory separator so we dont get an array with\n\t// an empty string as the first value in the route array when we\n\t// explode it.\n\t$route = ltrim($route, '/');\n\n\t// Divide the route into separate parts divided by the directory seperator\n\t// as the delimiter. The DIRECTORY_SEPARATOR is the same as typing '/' or\n\t// '\\' depending on the current filesystem.\n\t$route = explode(DIRECTORY_SEPARATOR, $route);\n\n\treturn $route;\n}", "public function getRoutes(): array\r\n {\r\n return $this->routes;\r\n }", "public function getRoutes(): array\r\n {\r\n return $this->routes;\r\n }", "public function getRoutes(): array\n\t{\n\t\treturn $this->_routes;\n\t}", "public function getRoutes() {}", "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 }", "public function getRoutes();", "public function getRoutes();", "public function getRoutes() {\n \treturn $this->routes;\n }", "public function getRoutes()\n {\n return $this->_routeList->toArray();\n }", "public function dumpRoute()\n {\n $route = substr($this->getRouteString(), 1);\n return explode(\"/\", $route);\n }", "public function routes()\r\n {\r\n return $this->routes;\r\n }", "public function getRouteList() {\n return $this->routes;\n }", "public static function getRoutes(): array\n {\n return self::$routes;\n }", "public function getRoutes(){\n return $this->routes;\n }", "public function getRoutes() {\n\t\treturn array_values($this->routes);\n\t}", "public function\n\tGetRoutes():\n\t?Array {\n\n\t\treturn $this->Routes;\n\t}", "public static function getList(){\n $list = [];\n \n foreach(self::$_routes as $k => $route){\n $list[$k] = [\n 'route' => $route,\n 'request' => self::$_requests[$k],\n 'options' => self::$_options[$k]\n ];\n }\n \n return $list;\n }", "public function entries(){\n return $this->routes;\n }", "public static function getRoutes();", "public static function getRoutes();", "function getRoutes() {\n return $this->routes;\n }", "public static function routes()\n {\n return self::$routes;\n }", "public function all(): array\n {\n return $this->routes;\n }", "public function getRoutes ()\n {\n return $this->routes;\n }", "public function getRoutes() {\n return array();\n }", "protected function getRouteParams(): array {\n return [];\n }", "public static function getRoutes() {\n return self::$instance->getRouteList();\n }", "public function get()\n {\n return Compass::syncRoute($this->routesInStorage())->map(function ($route) {\n return $this->routeResult($route, []);\n });\n }", "function getRoutes()\n {\n return $this->_routes;\n }", "public function getRoutes()\n\t{\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n\t{\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n\t{\n\t\treturn $this->routes;\n\t}", "public function getRoutes() {\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoute();", "protected function get() : array\n {\n $barra = explode('/', $_SERVER[\"REQUEST_URI\"]);\n\n array_shift($barra);\n\n return $barra;\n }", "public function getRouteFiles(): array;", "public static function getCallingRoute()\r\n {\r\n if(app()->has('routeResolvedData')){\r\n return app()->get('routeResolvedData');\r\n }\r\n \r\n return [];\r\n }", "public function getRoutes() {\n\t\treturn $this->_routes;\n\t}", "public function getRoutes() {\n return $this->routes;\n }", "public function getRoutes() {\n return $this->routes;\n }", "public function getRoutes() {\n return $this->routes;\n }", "static function routes() {\n return self::$_routes;\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 getUriArray(){\n\t\t$this->prepareRuta();\n\t\treturn $this->uriArray;\n\t}", "public static function getRoutes()\n {\n $a = array();\n $router = ROUTER::init();\n foreach ($router->assigns as $ass)\n {\n if (isset($ass['module']) and isset($ass['action']))\n {\n $a[] = array('route' => $ass['route'], 'execute' => $router->current_dir . '/' . $ass['module'] . '/' . $ass['action'] . '.action.php');\n }\n elseif (isset($ass['function']))\n {\n $a[] = array('route' => $ass['route'], 'function' => $ass['function']);\n }\n else\n {\n /*do nothing*/;\n }\n }\n return $a;\n }", "public function getRoutes() {\n\n\t\treturn $this->_routes;\n\t}", "function route_params(): array\n{\n return RouteController::getCurrentRoute()['params'] ?? [];\n}", "public static function toArray($route)\n\t{\n\t\t\n\t\t$array = array();\n\t\t\n\t\t$parts = explode('/', trim($route, '/'));\n\t\t\n\t\tforeach((array)$parts as $segment)\n\t\t{\n\t\t\tif( $segment )\n\t\t\t{\n\t\t\t\t$array[] = $segment;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ( empty($array) ) ? NULL : $array;\n\t\t\n\t}", "protected function getRoutes()\n {\n $results = [];\n\n foreach ($this->routes as $route) {\n $results[] = $this->getRouteInformation($route);\n }\n\n if ($sort = $this->option('sort')) {\n $results = Arr::sort($results, function ($value) use ($sort) {\n return $value[$sort];\n });\n }\n\n if ($this->option('reverse')) {\n $results = array_reverse($results);\n }\n\n return array_filter($results);\n }", "public function getRouteInfo()\r\n {\r\n $rawRoutes = $this->getRoutes();\r\n $routes = array();\r\n foreach ($rawRoutes as $route => $params){\r\n $defaults = $params->getDefaults();\r\n if (isset($defaults['_controller']))\r\n {\r\n $controllerAction = explode(':', $defaults['_controller']);\r\n $controller = $controllerAction[0];\r\n $action = isset($controllerAction[2]) ? $controllerAction[2] : $controllerAction[1];\r\n\r\n if (!isset($routes[$controller])) {\r\n $routes[$controller] = array();\r\n }\r\n\r\n $routes[$controller][$action] = array(\r\n 'route' => $route,\r\n 'controller' => $controller,\r\n 'action' => $action,\r\n );\r\n }\r\n }\r\n return $routes;\r\n }", "public static function getRoutes()\n {\n return self::$routes;\n }", "public static function getRoutes()\n {\n return self::$routes;\n }", "private function getRoute(){\n\t}", "public function getListRoutes()\r\n {\r\n $result = array();\r\n \r\n if (count( $this->routes ))\r\n {\r\n foreach ( $this->routes as $act )\r\n {\r\n \r\n $route_str = '';\r\n if (isset( $this->default_params['url_prefix'] ) && ! empty( $this->default_params['url_prefix'] ))\r\n {\r\n $route_str = $this->default_params['url_prefix'];\r\n }\r\n \r\n if (is_array( $act['type'] ))\r\n {\r\n $route_str = implode( '|', $act['type'] ) . ' ' . $route_str;\r\n }\r\n else\r\n {\r\n $route_str = $act['type'] . ' ' . $route_str;\r\n }\r\n $route_str .= $act['route'];\r\n \r\n if (isset( $act['params']['ajax'] ) && (bool) ($act['params']['ajax']))\r\n {\r\n $route_str .= ' [ajax]';\r\n }\r\n \r\n $action_str = '';\r\n if (isset( $act['params']['namespace'] ) && ! empty( $act['params']['namespace'] ))\r\n {\r\n $action_str = (string) $act['params']['namespace'];\r\n }\r\n else\r\n {\r\n if (isset( $this->default_params['namespace'] ) && ! empty( $this->default_params['namespace'] ))\r\n {\r\n $action_str = $this->default_params['namespace'];\r\n }\r\n }\r\n $action_str .= '\\\\';\r\n \r\n if (isset( $act['params']['controller'] ))\r\n {\r\n $action_str .= (string) $act['params']['controller'];\r\n }\r\n else\r\n {\r\n if (isset( $this->default_params['controller'] ) && ! empty( $this->default_params['controller'] ))\r\n {\r\n $action_str .= $this->default_params['controller'];\r\n }\r\n }\r\n $action_str .= '->' . (string) $act['params']['action'];\r\n \r\n $kbps = $this->default_params['kbps'];\r\n if( isset( $act['params']['kbps'] ) ){\r\n \t$kbps = $act['params']['kbps'];\r\n }\r\n $ttl = $this->default_params['ttl'];\r\n if( isset( $act['params']['ttl'] ) ){\r\n \t$ttl = $act['params']['ttl'];\r\n }\r\n \r\n $route = new \\stdclass();\r\n $route->pattern = $route_str;\r\n $route->handler = $action_str;\r\n $route->ttl = $ttl;\r\n $route->kbps = $kbps;\r\n $result[] = $route;\r\n }\r\n }\r\n \r\n return $result;\r\n }", "public function getAppRoutes()\n\t{\n\t\t$key = __METHOD__;\n\t\t$cache = Configs::instance()->cache;\n\t\tif ($cache === null || ($result = $cache->get($key)) === false) {\n\t\t\t$result = [];\n\t\t\t$this->getRouteRecrusive(Yii::$app, $result);\n\t\t\tif ($cache !== null) {\n\t\t\t\t$cache->set($key, $result, Configs::instance()->cacheDuration, new TagDependency([\n\t\t\t\t\t'tags' => self::CACHE_TAG\n\t\t\t\t]));\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getRoutes()\n {\n return $this->routeNodes;\n }", "function getRoutes($route = null) {\r\n\t\t//this will be used to build the category sections on any page\r\n\t\tglobal $data;\r\n\t\t$results = $data['vehicle_pos'];\r\n\r\n\t\tif ($route != null) {\r\n\t\t\t$result = array();\r\n\t\t\tforeach ($results as $value) {\r\n\t\t\t\tif ($route == $value['route_id']) {\r\n\t\t\t\t\tarray_push($result, $value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $result;\r\n\t\t} else {\r\n\t\t\treturn $results;\r\n\t\t};\r\n\t}", "public function toArray() {\n return array(\n 'path' => $this->path,\n 'route' => $this->route,\n 'realPath' => $this->realPath,\n 'data' => $this->data,\n 'query' => $this->query,\n 'fragment' => $this->fragment,\n 'domainName' => $this->domainName,\n 'method' => $this->method,\n 'secure' => $this->secure,\n 'ip' => $this->ip,\n 'url' => $this->url,\n 'referer' => $this->referer,\n 'referrer' => $this->referer,\n 'userAgent' => $this->userAgent\n );\n }", "public function getRouteParams();", "public function getRoutes(): array\r\n {\r\n return [\r\n [\r\n 'name' => 'exclusive/json/messagetutor',\r\n 'path' => '/exclusive/json/mT',\r\n 'middleware' => Action\\Json\\MessageTutor::class,\r\n 'allowed_methods' => ['POST']\r\n ],\r\n [\r\n 'name' => 'exclusive/json/certificateprintfree',\r\n 'path' => '/exclusive/json/cPf',\r\n 'middleware' => Action\\Json\\CertificatePrintFree::class,\r\n 'allowed_methods' => ['POST']\r\n ]\r\n ];\r\n }", "function get_all_routes()\n {\n $this->db->order_by('id');\n return $this->db->get('routes')->result_array();\n }", "public function getNodeRoutes() {\n \t$localizedModel = $this->meta->getLocalizedModel();\n\n $query = $localizedModel->createQuery(0);\n $query->setDistinct(true);\n $query->setFields('{route}');\n $query->addCondition('{route} IS NOT NULL AND {route} <> %1%', '');\n $nodes = $query->query();\n\n $routes = array();\n foreach ($nodes as $node) {\n $routes[$node->route] = $node->route;\n }\n\n return $routes;\n }", "public static function getRoutes(): array\n {\n require(root_path('routes.php'));\n return self::$called;\n }", "public function uriSegments(): array\n {\n return $this->segments;\n }", "public function getRoutes() {\r\n\t\treturn array_merge($this->getFunctionRoutes(), $this->getClassRoutes());\r\n\t}", "public function getRoute()\n {\n }", "public static function get_all_route()\n {\n return include BASE_PATH . 'routes'. DIRECTORY_SEPARATOR . 'web.php';\n }", "abstract protected function getListRoute() : string;", "public function getDbRoutes(): array\n {\n $routes = [];\n\n $results = (new Query())\n ->select(['id', 'siteId', 'uriParts', 'template'])\n ->from(['{{%routes}}'])\n ->orderBy(['sortOrder' => SORT_ASC])\n ->all();\n\n foreach ($results as $result) {\n $uriDisplayHtml = '';\n $uriParts = Json::decode($result['uriParts']);\n\n foreach ($uriParts as $part) {\n if (is_string($part)) {\n $uriDisplayHtml .= Html::encode($part);\n } else {\n $uriDisplayHtml .= Html::encodeParams('<span class=\"token\" data-name=\"{name}\" data-value=\"{value}\"><span>{name}</span></span>',\n [\n 'name' => $part[0],\n 'value' => $part[1]\n ]);\n }\n }\n\n $routes[] = [\n 'id' => $result['id'],\n 'siteId' => $result['siteId'],\n 'uriDisplayHtml' => $uriDisplayHtml,\n 'template' => $result['template']\n ];\n }\n\n return $routes;\n }", "public function getRoutes()\n {\n $routes = $this->GPXFile->routes;\n\n return array_map(function (GPXRoute $route) {\n return [\n 'name' => $route->name,\n 'description' => $route->description,\n 'points' => $this->mapPoints($route->getPoints()),\n ];\n }, $routes);\n }", "final public static function getRouter(){\n $url = self::getUrl();\n\n $path = array(\n 'route' => $url[0],\n 'controller' => $url[1],\n 'action' => $url[2],\n );\n\n if(empty($path['route'])){\n $path['route'] =self::getConfig()->path->router_default;\n }\n\n\n return $path;\n }", "protected static function requestRoute() {\n $route = [];\n\n $currentUrlOptions = parse_url($_SERVER['REQUEST_URI']);\n $fullUri = $currentUrlOptions['path'];\n $prefixLen = strlen(self::$uriPrefix);\n if ($fullUri == self::$uriPrefix){ //all default\n $route['controller'] = '';\n $route['action'] = '';\n } elseif (substr($fullUri, 0, $prefixLen) === self::$uriPrefix) {\n $uri = substr($fullUri, $prefixLen);\n $parts = explode('/', rtrim($uri, '/'));\n $route['controller'] = ucfirst($parts[0]);\n $route['action'] = isset($parts[1]) ? ucfirst($parts[1]) : '';\n } else {\n //do nothing\n }\n\n return $route;\n }", "abstract public function getRoute();", "public static function requestRoutes(){\n $curl = curl_init('https://api-v3.mbta.com/routes');\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); \n $result = curl_exec($curl);\n curl_close($curl);\n return json_decode($result);\n }", "public function getData()\n {\n $routes = $this->routeCollector->getData();\n $data = array();\n foreach ($routes[0] as $method => $paths) {\n foreach ($paths as $path => $handler) {\n if (is_array($handler) && isset($handler['name'])) {\n $data[$handler['name']] = $path;\n }\n }\n }\n\n foreach ($routes[1] as $method) {\n foreach ($method as $group) {\n $data = array_merge($data, $this->parseDynamicGroup($group));\n }\n }\n\n return $data;\n }", "public function route_list()\n {\n return $this->createResponseStructure(\n ApiInterface::SUCCESS_STATUS,\n Response::HTTP_OK,\n AppProcessInterface::RESOURCE,\n $this->get_routes()\n );\n }", "function getRoutes($print = false){\n if($print == true){\n echo '<pre>' . htmlspecialchars( print_r($this->routes, true) ) . '</pre>';\n }else{\n return $this->routes;\n }\n }", "Function getAllRoutes()\n\t{\n\t\t$sql = \"SELECT * FROM route\";\n\t\t$result = $this->conn->query($sql);\n\t\tif ($result->num_rows > 0) {\n\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t$routes[] = new Route($row['start_point'], $row['end_point'], $row['route_id'], $row['route_name'], $row['distance'], $row['duration']);\n\t\t\t}\n\t\t\treturn $routes;\n\t\t} else {\n\t\t\treturn [];\n\t\t}\n\t}", "public static function check() : array\n\t{\n\t\tforeach(RegistryRecords::routes() as $key => $array)\n\t\t{\n\t\t\tself::$RouteURI = $array;\n\n\t\t\tif($array[\"METHOD\"] !== RegistryRecords::request()['METHOD'])\n\t\t\t\tcontinue;\n\n\t\t\tif(self::check_uri($array['URI']))\n\t\t\t\treturn $array;\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\n\t\treturn [];\n\t}", "protected function savedRoutes() : array\n {\n $file = $this->path . DIRECTORY_SEPARATOR . $this->routeListFilename;\n\n return $this->append && file_exists($file) ? \n json_decode(file_get_contents($file), true) : [];\n }", "public function get_route()\n {\n }", "public function getSystemRoutes();", "public function route($uri)\n {\n foreach ($this->routes as $route) {\n if ($route['url'] == $uri) {\n $this->route = $route;\n return $route;\n }\n }\n return array();\n }", "public function getRoutes(){\n return CoreArrayUtils::asArray(CoreControllerObject::buildAction('/^\\/email\\/activate\\/([^\\/]+)\\/?$/i', __CLASS__, CoreControllerObject::MATCH_TYPE_REGEX, CoreControllerObject::REQUEST_GET));\n }", "public function getArray() {\n return $this->_path;\n }", "public function getRoutes()\n {\n return collect($this->attributes)\n ->map(function (array $attributes) {\n return $this->newRoute($attributes);\n })\n ->merge($this->routes->getRoutes())\n ->values()\n ->all();\n }", "public function getRoutes()\n {\n return $this->collection;\n }", "public function getForRoutes()\n {\n $menuitems = DB::table('menu__menus')\n ->select(\n 'primary',\n 'menu__menuitems.id',\n 'menu__menuitems.parent_id',\n 'menu__menuitems.module_name',\n 'menu__menuitem_translations.uri',\n 'menu__menuitem_translations.locale'\n )\n ->join('menu__menuitems', 'menu__menus.id', '=', 'menu__menuitems.menu_id')\n ->join('menu__menuitem_translations', 'menu__menuitems.id', '=', 'menu__menuitem_translations.menuitem_id')\n ->where('uri', '!=', '')\n ->where('module_name', '!=', '')\n ->where('status', '=', 1)\n ->where('primary', '=', 1)\n ->orderBy('module_name')\n ->get();\n\n $menuitemsArray = [];\n foreach ($menuitems as $menuitem) {\n $menuitemsArray[$menuitem->module_name][$menuitem->locale] = $menuitem->uri;\n }\n\n return $menuitemsArray;\n }", "public function getRoutes()\r\n {\r\n $collection = $this->router->getRouteCollection();\r\n return $collection->all();\r\n }", "function getRouteParameters();", "public function get($method = null)\n {\n return $this->getRoutesByMethod()[$method] ?? [];\n }" ]
[ "0.8150687", "0.799582", "0.799582", "0.78544194", "0.7790769", "0.7790769", "0.76074785", "0.7492852", "0.74811256", "0.7464368", "0.7464368", "0.7434219", "0.7418059", "0.7342652", "0.7342456", "0.73370284", "0.73144794", "0.7306966", "0.7247783", "0.7242051", "0.724065", "0.7220275", "0.7203435", "0.7203435", "0.7165282", "0.716509", "0.71501034", "0.7134561", "0.7124366", "0.7104002", "0.709826", "0.7075333", "0.7074334", "0.7061574", "0.7061574", "0.7061574", "0.70460016", "0.7040932", "0.7040932", "0.7040932", "0.7040932", "0.7040932", "0.7040932", "0.7032364", "0.7032188", "0.70233554", "0.70035815", "0.699372", "0.6955722", "0.6955722", "0.6955722", "0.69508636", "0.69455624", "0.6923741", "0.69040227", "0.68971956", "0.6874131", "0.68645865", "0.6860624", "0.685729", "0.6830259", "0.6830259", "0.6827116", "0.6821643", "0.6803077", "0.67963296", "0.67954445", "0.6791611", "0.67631775", "0.67505205", "0.67189634", "0.67088085", "0.670855", "0.66993403", "0.6678196", "0.6677218", "0.6670902", "0.6669579", "0.6660357", "0.66525096", "0.66431785", "0.6636664", "0.6594424", "0.6590728", "0.65869254", "0.658078", "0.6558833", "0.65505105", "0.6542604", "0.65333635", "0.6524151", "0.6511032", "0.6510852", "0.6507622", "0.6482025", "0.6479511", "0.6476124", "0.6471095", "0.64702755", "0.6462099", "0.64588517" ]
0.0
-1
Select a file and search for the corresponding route
public function fromFiles($files, string $templates): void { if (is_array($files)) { foreach ($files as $file) { $this->fromFiles($file, $templates); } } elseif (\is_string($files)) { $file = new File($files); if ($file->exists()) { $this->section = new Section($file->getArray()); } } $this->route(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function openFileRoute(){\n return File::get( self::getRouteFileName() );\n }", "public function find($file);", "public function file() {\n $args = func_get_args();\n if(empty($args)) return $this->files()->first();\n return call_user_func_array(array($this->files(), 'find'), $args);\n }", "public function getFoundPath() {}", "public function locate($file, $first = true);", "function actionSource() {\r\n\r\n\t\t\t// Get the basename of the file\r\n\t\t\t$file = $_GET['id'];\r\n\r\n\t\t\t// Filepath should start with the directory of this file\r\n\t\t\t$basePath = strtolower( dirname( __FILE__ ) );\r\n\t\t\t$filePath = strtolower( dirname( realpath( $_GET['id'] ) ) );\r\n\r\n\t\t\t// Check if the file is in the right directory\r\n\t\t\tif ( substr( $filePath, 0, strlen( $basePath ) ) != $basePath ) {\r\n\t\t\t\t$this->forward( 'default' );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Check if the file exists\r\n\t\t\tif ( ! is_file( $file ) ) {\r\n\t\t\t\t$this->forward( 'default' );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Show the highlighted source\r\n\t\t\t$this->template->assign( 'file', $file );\r\n\t\t\t$this->template->assign( 'source', highlight_file( $file, 1 ) );\r\n\r\n\t\t\t// Output the template\r\n\t\t\t$this->template->display();\r\n\r\n\t\t}", "function find_file($file) {\n if($results = glob($file)) {\n if($file = array_shift($results)) {\n return $file;\n } else {\n return false;\n }\n } else {\n return false;\n }\n}", "private function _doDirectMatch(array $path) {}", "public function getRouteFiles(): array;", "function drush_drushutils_find_callback() {\n $matches = array();\n $match_type = drush_get_option('match');\n\n $args = drush_get_arguments();\n $path_to_find = $args[1];\n\n foreach (module_implements('menu') as $module) {\n $menu_callbacks = module_invoke($module, 'menu');\n if (!empty($menu_callbacks)) {\n foreach ($menu_callbacks as $path => $callback) {\n switch ($match_type) {\n case 'partial':\n if (FALSE !== strpos($path, $path_to_find)) {\n $matches[] = array($module, $path);\n }\n break;\n\n case 'full':\n default:\n if ($path == $path_to_find) {\n $matches[] = array($module, $path);\n continue 2;\n }\n break;\n }\n }\n }\n }\n _drushutils_output_results($matches, $match_type);\n}", "function __construct($routes) {\n\t\t\t$uri = isset($_GET['uri']) ? '/' . trim($_GET['uri'], '/') : '/';\n\t\t\tforeach ($routes as $key => $value) {\n\t\t\t\tif ($key === $uri) {\n\t\t\t\t\tif (file_exists($value)) {\n\t\t\t\t\t\trequire_once $value;\n\t\t\t\t\t\texit();\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo \"<h1>The requested file exists but could not be found.</h1>\";\n\t\t\t\t\t\texit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\techo \"<h1>404 File not found</h1>\";\n\t\t\texit();\n\t\t}", "function routes_file()\n {\n $paths = getPaths();\n\n return $paths['routes'];\n }", "function findFile($href,$sites){\n $href = str_replace(\"http://\",'',$_GET['href']);\n $href = explode(\"/\",$href);\n array_unshift($href,\"http:/\");\n $address = '';\n $folder = '';\n\n for ($i=0,$l=count($href);$i<$l;$i++){\n $address .= $href[$i] .\"/\";\n if (isset($sites->{$address})){\n $folder= $sites->{$address};\n break;\n }\n }\n if (!$folder) return false;\n \n $location = $folder .str_replace($address,\"\",$_GET['href']);\n \n return $location;\n}", "function findFile($type, $file)\n {\n // get the set of paths\n $set = $this->getPath($type);\n \n // start looping through them\n foreach ($set as $path) {\n $fullname = $path . $file;\n if (file_exists($fullname) && is_readable($fullname)) {\n return $fullname;\n }\n }\n \n // could not find the file in the set of paths\n return false;\n }", "function findFile ($file) \n{\n global $sublist;\n $foundlist = \"\";\n \n foreach ($sublist as $eachlist) \n {\n if (in_array($file, $eachlist[url])) \n {\n $foundlist = $eachlist;\n }\n }\n \n menuPrinter ($file, $foundlist);\n}", "public function findFiles();", "function get_files($route) {\n\tif (is_dir($route)) {\n\t\t$array_files = array();\n\t\t$files = opendir($route);\n\t\twhile ($file = readdir($files)) {\n\t\t\tif ($file != '.' && $file != '..' && !is_dir($route . '/' . $file)) {\n\t\t\t\t$extention = substr($file, -4);\n\t\t\t\t$file = substr($file, 0, -4);\n\t\t\t\tif ($file != 'index' && $extention == '.php') {\n\t\t\t\t\t$array_files[] = $file;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($files);\n\t\treturn $array_files;\n\t} else {\n\t\treturn false;\n\t}\n}", "public function index()\n { \n $this->locate(inlink('browse'));\n }", "public function testFindsFilesWithDifferentOptions()\n {\n $assembly = $this->commonFindingTemplate(array(\n 'resourceName' => $this->resourceName,\n 'options' => array('type' => 'xml', 'method' => 'POST', 'status' => 201),\n 'foundFiles' => array('FooResource.POST.xml.php')\n ));\n $this->assertEquals('FooResource.POST.xml.php', $assembly->getFile());\n }", "public function resolve ($file, $exactMatch = false)\n {\n foreach ($this->languages as $lang)\n {\n $filename = \"$lang/$file\";\n\n // if $file is a directory, we try find an index file inside\n if (!$exactMatch && $this->directoryExists ($filename) && $this->fileExists ($filename.'/index'))\n return $filename.'/index';\n\n // if $file is a file we've got what we were searching for !\n else if ($this->fileExists ($filename))\n return $filename;\n }\n\n // If we want an exact match there is no need to continue\n if ($exactMatch)\n return null;\n\n // if we reached the documentation root dir it means that there is no documentation\n if (in_array (dirname ($file), array('.','/')) && basename ($file) == 'index')\n return null;\n\n // if we are here we didn't find a file in the current directory, let's go up !\n return $this->resolve (dirname ($this->getParentDirectory ($file)).'/index');\n }", "public function test_servefile_route() {\n global $CFG;\n list($user, , $talkpoint) = $this->_setup_single_user_in_single_talkpoint();\n\n // current time\n $now = time();\n\n // create a talkpoint\n $this->loadDataSet($this->createArrayDataSet(array(\n 'talkpoint_talkpoint' => array(\n array('id', 'instanceid', 'userid', 'title', 'uploadedfile', 'nimbbguid', 'mediatype', 'closed', 'timecreated', 'timemodified'),\n array(1, $talkpoint->id, $user->id, 'Talkpoint 001', 'mod_talkpoint_web_test.txt', null, 'file', 0, $now, $now),\n ),\n )));\n\n // spit a dummy existing file\n check_dir_exists($CFG->dataroot . '/into/mod_talkpoint/' . $talkpoint->id . '/1');\n file_put_contents($CFG->dataroot . '/into/mod_talkpoint/' . $talkpoint->id . '/1/mod_talkpoint_web_test.txt', 'dummy contents');\n\n // request the file\n $client = new Client($this->_app);\n $client->request('GET', '/servefile/1');\n $this->assertTrue($client->getResponse()->isOk());\n }", "private function searchRoute()\r\n {\r\n $currentUrl = self::cleanUrl(self::getCurentUrl());\r\n $activeMethod = self::getActiveMethod();\r\n\r\n foreach (array_reverse($this->routes) as $route) {\r\n if (preg_match('/^'.$route['regex'].'$/', $currentUrl) && $activeMethod === $route['method']) {\r\n $route['active'] = $currentUrl;\r\n return $route;\r\n }\r\n }\r\n }", "function include_route_files($folder) {\n try {\n $rdi = new recursiveDirectoryIterator($folder);\n $it = new recursiveIteratorIterator($rdi);\n while ($it->valid()) {\n if (!$it->isDot() && $it->isFile() && $it->isReadable() && $it->current()->getExtension() === 'php') {\n require $it->key();\n }\n $it->next();\n }\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public function getFsSelection() {}", "function scanner(){\n if(strlen(trim(rtrim($_REQUEST[$this->routeParam])))>0){\n $this->resource = explode(\"/\", rtrim($_REQUEST[$this->routeParam]));\n $route = '/'.$this->resource[0];\n unset($this->resource[0]);\n $this->resource = implode('/',array_values($this->resource));\n if(in_array($route, $this->routeList)){\n $this->route = $route;\n }else{\n $this->route ='/404';\n }\n }else{\n $this->route='/';\n }\n }", "function xmlrpc_find_file( $params ) {\n\tglobal $FILE_FOUND;\n\tglobal $FILE_LISTEN_URL;\n\tglobal $FILE_LENGTH;\n\tglobal $FILE_ENCODING;\t\n\tglobal $FILE_DURATION;\n\t\n\t$p0 = $params->getParam(0)->scalarval(); // server ID\n\t$p1 = $params->getParam(1)->scalarval(); // Asterisk call ID\n\t$p2 = $params->getParam(2)->scalarval(); // QM User ID\n\t$p3 = $params->getParam(3)->scalarval(); // Qm user name\n\t\n\tfind_file( $p0, $p1, $p2, $p3 ); \t\t\n\t\n\t$response = new xmlrpcval(array(\n new xmlrpcval( $FILE_FOUND, 'boolean' ),\n new xmlrpcval( $FILE_LISTEN_URL ),\n new xmlrpcval( $FILE_LENGTH ),\n new xmlrpcval( $FILE_ENCODING ),\n new xmlrpcval( $FILE_DURATION ), \n ), \"array\");\n\t\n\treturn new xmlrpcresp($response);\n}", "function find_file( $ServerID, $AsteriskID, $QMUserID, $QMUserName ) {\n\tglobal $FILE_FOUND;\n\tglobal $FILE_LISTEN_URL;\n\tglobal $FILE_LENGTH;\n\tglobal $FILE_ENCODING;\n\tglobal $FILE_DURATION;\n\n\t$FILE_FOUND = true;\n\n\t// if found single file...\n\t// note that the parameters returned are just strings, so you can put anything in them\n\t$FILE_LISTEN_URL = \"http://listennow.server/$ServerID/$AsteriskID/$QMUserID/$QMUserName\";\n\t$FILE_LENGTH = \"125k\";\n\t$FILE_ENCODING = \"mp3\";\t\n\t$FILE_DURATION = \"1:12\"; \t\n\n\t// if found multiple files\n\t// add MULTI: to FILE_LISTEN_URL\n\t// separate entries with a space\n\t// add the same number of entries for each record\n\t//$FILE_LISTEN_URL = \"MULTI:http://listennow.server/$ServerID/$AsteriskID/$QMUserID/$QMUserName http://file2 http://file3\";\n\t//$FILE_LENGTH = \"125000 100 200\";\n\t//$FILE_ENCODING = \"mp3 - -\";\t\n\t//$FILE_DURATION = \"1:12 1:10 -\"; \t\n\n}", "public function get($filepath);", "public function locate();", "public function index()\n {\n $this->locate(inlink('browse'));\n }", "public function index()\n {\n $this->locate(inlink('browse'));\n }", "public function displayFile()\r\n {\r\n $filePath = $this->root.'/'.$this->route;\r\n \r\n if (!self::isFile($this->route)) {\r\n throw new Exception('The route is not a correct file.');\r\n }\r\n if (!file_exists($this->root.'/'.$this->route)) {\r\n throw new Exception('The file '.$filePath.' does not exists.');\r\n }\r\n \r\n echo file_get_contents($filePath);\r\n }", "function include_route_files($folder)\n {\n try {\n $rdi = new RecursiveDirectoryIterator($folder);\n $it = new RecursiveIteratorIterator($rdi);\n\n while ($it->valid()) {\n if (!$it->isDot() && $it->isFile() && $it->isReadable() && $it->current()->getExtension() === 'php') {\n require $it->key();\n }\n\n $it->next();\n }\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "function get_requested_file($url)\n{\n if( strpos($url,'?wdf_route=') === false )\n return parse_url($url,PHP_URL_PATH);\n \n parse_str(array_last(explode(\"?\",$url,2)),$res);\n return $res['wdf_route'];\n}", "function include_route_files($folder)\n {\n try {\n $rdi = new recursiveDirectoryIterator($folder);\n $it = new recursiveIteratorIterator($rdi);\n\n while ($it->valid()) {\n if (! $it->isDot() && $it->isFile() && $it->isReadable() && $it->current()->getExtension() === 'php') {\n require $it->key();\n }\n\n $it->next();\n }\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public function find(string $path, mixed $default = null): mixed;", "function getTargetFile() ;", "public function view_file() {\n\t\t$currentPath = implode('/', $this->passedArgs);\n\t\t$fullPath = $this->path . $currentPath;\n\t\t$previousPath = implode('/', array_slice($this->passedArgs, 0, count($this->passedArgs) -1));\n\t\t$upOneFolder = implode('/', array_slice($this->passedArgs, 0, count($this->passedArgs) -2));\n\n\t\tif (!file_exists($fullPath)) {\n\t\t\t$this->_notFound(__('No file exists with that name', true));\n\t\t}\n\t\ttry {\n\t\t\t$docs = $this->ApiFile->loadFile($fullPath);\n\t\t} catch(Exception $e) {\n\t\t\t$this->_notFound($e->getMessage());\n\t\t}\n\t\t$classIndex = ClassRegistry::init('ApiGenerator.ApiClass')->getClassIndex();\n\t\tlist($dirs, $files) = $this->ApiFile->read($this->path . $previousPath);\n\n\t\tif (!empty($docs)) {\n\t\t\t$this->set('showSidebar', true);\n\t\t\t$this->set('sidebarElement', 'sidebar/file_sidebar');\n\t\t\t$this->set(compact('currentPath', 'previousPath', 'upOneFolder', 'docs', 'dirs', 'files', 'classIndex'));\n\t\t} else {\n\t\t\t$this->set('previousPath', $previousPath);\n\t\t\t$this->render('no_class');\n\t\t}\n\t}", "public static function find($paths, $file)\n\t{\n\t\tsettype($paths, 'array'); //force to array\n\n\t\t// Start looping through the path set\n\t\tforeach ($paths as $path)\n\t\t{\n\t\t\t// Get the path to the file\n\t\t\t$fullname = $path . '/' . $file;\n\n\t\t\t// Is the path based on a stream?\n\t\t\tif (strpos($path, '://') === false)\n\t\t\t{\n\t\t\t\t// Not a stream, so do a realpath() to avoid directory\n\t\t\t\t// traversal attempts on the local file system.\n\t\t\t\t$path = realpath($path); // needed for substr() later\n\t\t\t\t$fullname = realpath($fullname);\n\t\t\t}\n\n\t\t\t// The substr() check added to make sure that the realpath()\n\t\t\t// results in a directory registered so that\n\t\t\t// non-registered directories are not accessible via directory\n\t\t\t// traversal attempts.\n\t\t\tif (file_exists($fullname) && substr($fullname, 0, strlen($path)) == $path)\n\t\t\t{\n\t\t\t\treturn $fullname;\n\t\t\t}\n\t\t}\n\n\t\t// Could not find the file in the set of paths\n\t\treturn false;\n\t}", "public function browse_files_page(){\r\n\t\tglobal $wpdb;\r\n\r\n\r\n\t\t$files_table = $this->files_table;\r\n\r\n\t\tif(isset($_GET['action']) && $_GET['action'] == 'edit'){\r\n\t\t\t$nonce = esc_attr( $_REQUEST['_editnonce'] );\r\n\t\t \tif ( ! wp_verify_nonce( $nonce, 'edit_file' )) {\r\n\t\t \tdie( 'Error' );\r\n\t\t \t// echo $_GET['action'];\r\n\t\t }else{\r\n\t \t\t$data = $this->MD_Model->get_file($_GET['id']);\r\n\t \t\t$slug = get_post_field( 'post_name', $_GET['post'] );\r\n\r\n\t \t\tif(isset($_POST['submit'])){\r\n\t \t\t\t$data = $this->edit_file();\r\n\t \t\t}\r\n\r\n\t \t\t$dl_path = wp_upload_dir()['basedir'].'/downloads/reports/'.$slug.'/'.$data['filename']; \r\n\t\t $dl_path = base64_encode($dl_path);\r\n\r\n\t\t \tinclude($this->admin_url . 'view/market-reports-edit-file.php');\r\n\t\t }\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tinclude($this->admin_url . 'view/market-reports-browse-files.php');\t\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public function findFile($class);", "public function route()\n {\n $path = Url::getPath();\n\n // If no routes exist, set 404\n if (count($this->routes) == 0)\n {\n return;\n }\n\n // Check if exact match (cheap)\n if ((isset($this->routes[$path]))\n && (!$this->routes[$path]['is_regex']))\n {\n $this->dispatch($this->routes[$path]);\n exit;\n }\n\n // Loop through all routes and attempt to find a match. (expensive)\n foreach ($this->routes as $i => $route)\n {\n $matches = null;\n\n // If route found\n if (($route['is_regex'])\n && (preg_match($route['match'], $path, $matches)))\n {\n // Remove full match from array list\n array_shift($matches);\n\n $this->dispatch($route, $matches);\n exit;\n }\n }\n }", "public function file(){\n $multilevel = menuadmin::get_data();\n $index = menuadmin::where('part','file')->first();\n $aktif_menu = menuadmin::aktif_menu($index['id']);\n return view('backend.att.file', compact('multilevel','aktif_menu'));\n }", "public function findMatch(\\string $uri, \\string $method);", "public function find(string $view);", "public function onFileTap($file);", "public function files($index){\n $this->httpRequest->files($index);\n }", "public static function find($type, $file)\n\t{\n\t\t$filePath = $type . DIRECTORY_SEPARATOR . $file;\n\t\tforeach (self::$modules as $module => $path) {\n\t\t\tif (\\file_exists($path . $filePath)) {\n\t\t\t\treturn $path . $filePath;\n\t\t\t}\n\t\t}\n\t}", "public function testMediaFilesSearchGet()\n {\n $client = static::createClient();\n\n $path = '/media/files/search';\n\n $crawler = $client->request('GET', $path);\n }", "private function printSelectionPage() {\n\t\techo '<ul data-role=\"listview\" data-inset=\"true\">';\n\t\t$dir = new DirectoryIterator ( $this::filesPath );\n\t\tforeach ( $dir as $fileinfo ) {\n\t\t\tif (! $fileinfo->isDot ()) {\n\t\t\t\t$fileName = pathinfo ( $fileinfo->getFilename (), PATHINFO_FILENAME );\n\t\t\t\t$fileFullPath = $fileinfo->getPath () . '/' . $fileinfo;\n\t\t\t\t$lection = fgets ( fopen ( $fileFullPath, 'r' ) );\n\t\t\t\tif (strcmp ( \"-stat\", substr ( $fileName, - 5 ) ) != 0) {\n\t\t\t\t\techo '<li>\n\t\t\t\t\t\t<a class=\"ui-btn ui-btn-icon-right ui-icon-carat-r\" data-form=\"ui-btn-up-a\" href=\"?q=lesson&l=', $fileName, '\">', $lection, '</a>\n\t\t\t\t\t\t</li>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo '</ul>';\n\t}", "public function listenTo($file);", "function findRouteGet(array &$variaveis): string\n {\n $url = \"\";\n $path = \"\";\n $count = count($variaveis);\n for ($i = 0; $i < $count; $i++) {\n $path .= ($i > 0 ? \"/{$url}\" : \"\");\n $url = array_shift($variaveis);\n foreach (\\Config\\Config::getRoutesTo(\"get\" . $path) as $item) {\n if (file_exists($item . $url . \".php\"))\n return $item . $url . \".php\";\n }\n }\n\n return \"\";\n }", "public function match ($uri);", "public function findFirstMatchingRoute($alternative=false) {\n// \t\tdebug('$this', $this);\n// \t\tdebug('Routes', $this->getRoutes());\n\t\tforeach( $this->getRoutes() as $methodRoutes ) {\n\t\t\tif( !isset($methodRoutes[$this->method]) ) { continue; }\n\t\t\t/* @var $route HTTPRoute */\n\t\t\t$route\t= $methodRoutes[$this->method];\n\t\t\tif( $route->isMatchingRequest($this, $values, $alternative) ) {\n\t\t\t\t$this->pathValues\t= (object) $values;\n\t\t\t\treturn $route;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "abstract public function search($files, array $includedFiles);", "public function testSeeFileFinderDemoElements() {\n\t\t\t$this->browse(function (Browser $browser) {\n\t\t\t\t\t$browser\n\t\t\t\t\t\t->visit($this->fileFinderDemoRoute)\n\t\t\t\t\t ->assertPresent('@sensitive-select')\n\t\t\t\t\t ->assertPresent('@directories-select')\n\t\t\t\t\t ->assertPresent('@file-finder-input')\n\t\t\t\t\t ->assertEnabled('@file-finder-input')\n\t\t\t\t\t ->assertPresent('@file-finder-search-button')\n\t\t\t\t\t ->assertPresent('@file-finder-documentation-show')\n\t\t\t\t\t ->assertPresent('@file-finder-documentation-hide');\n\t\t\t});\n\t\t}", "public function search($type, $filename = '', $return = 'relative')\n {\n $matches = array();\n foreach ($this->elements as $location) {\n if (!($location instanceof PathFinder_Location)) {\n continue;\n }\n\n $path = $location->locate($type, $filename, $return);\n\n if (is_string($path)) {\n // file found!\n $matches[] = $path;\n }\n }\n\n return $matches;\n }", "public function get_matched_route()\n {\n }", "public function browse_files()\n {\n // Scan file directory, render the images.\n if (is_dir($this->file_path)) {\n $files = preg_grep('/^([^.])/', scandir($this->file_path));\n return $files;\n }\n \n }", "function searchFiles($search, $path, $video){\n $searchFiles = scandir($path);\n foreach($searchFiles as $sFile){\n if(($sFile!=\".\")&&($sFile!=\"..\")){\n if(is_dir($path.$sFile)){\n $search = glob($path.$sFile.'/'.$video);\n if(!empty($search)){\n return $search;\n }\n }\n }\n }\n return array('did', 'not', 'work');\n}", "function findRoute($route = '') {\n $route = $route ? $route : FIRE_DEFAULT_ROUTE;\n return $this->_routes->get($route);\n }", "public function optionAuthRoutes(){\n if(!is_file($this->getAuthRoutePath())){\n \\Filebase\\Filesystem::write($this->getAuthRoutePath(),json_encode([],JSON_UNESCAPED_SLASHES));\n }\n $result = json_decode(\\Filebase\\Filesystem::read($this->getAuthRoutePath()),true);\n if($result){\n return [\n 'result' => $result,\n 'status' => 'success',\n 'message' => 'Data found!'\n ];\n }\n return [\n 'result' => [],\n 'status' => 'error',\n 'message' => 'Data not found!'\n ];\n }", "public function find_route( Request $request ) {\n $this->context->logger()->debug( 'processing Request ' . $request );\n\n if(empty($this->routes)) $this->load_routes();\n\n foreach($this->routes as $route) {\n if($route->match($request)) {\n $this->context->logger()->debug( 'matched to Route ' . $route );\n return $route;\n }\n }\n throw new Exception(sprintf('Couldn\\'t find a route to match your request: %s', $request));\n }", "public function getRouteFileExtension(): string;", "public function searchAction()\n {\n $user_id = $this->getSecurityContext()->getUser()->getId();\n $drive = $this->_driveHelper->getRepository()->getDriveByUserId($user_id);\n\n $q = $this->getScalarParam('q');\n // $hits = $this->getResource('drive.file_indexer')->searchInDrive($q, $drive->drive_id);\n $hits = $this->getResource('drive.file_indexer')->search($q);\n\n echo '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />';\n echo '<strong>', $hits->hitCount, '</strong> hits<br/>';\n foreach ($hits->hits as $hit) {\n $file = $this->_driveHelper->getRepository()->getFile($hit->document->file_id);\n if (empty($file)) {\n echo 'Invalid file ID: ', $hit->document->file_id;\n }\n if ($file && $this->_driveHelper->isFileReadable($file)) {\n echo '<div>', '<strong>', $file->name, '</strong> ', $this->view->fileSize($file->size), '</div>';\n }\n }\n exit;\n }", "public function match($uri);", "protected function MatchRoutes($Request)\n\t{\n\t\t$file=null;\n\t\tforeach (self::$Routes as $route=>$controller)\n\t\t{\n\t\t\tif (strpos($route,\"*\")!==false) //wildcard route\n\t\t\t{\n\t\t\t\tif (strpos($route,\"*\")!=strlen($route)-1)\n\t\t\t\t\tthrow new InvalidWildcardException(\"You can only set wildcard as last character of a route: {$route}\");\n\t\t\t\tif (substr($Request,0,strlen($route)-1 )==substr($route,0,-1))\n\t\t\t\t{\n\t\t\t\t\t$file=$controller;\n\t\t\t\t\t$this->restOfRequest=substr($Request,strlen($route)-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ($Request==$route)\n\t\t\t\t\t$file=$controller;\n\t\t\t}\n\t\t\tif (!$file) continue; //route not found\n\t\t\t\n\t\t\tif( file_exists(_UFO_LOCAL_CONTROLLERS_DIR_.\"{$file}.php\")){\n\t\t\t\t$originalFile=_UFO_LOCAL_CONTROLLERS_DIR_.\"{$file}.php\";\n\t\t\t\t$file=realpath($originalFile);\n\t\t\t\tif (!$file) //file not found\n\t\t\t\t\tthrow new InvalidRouteException(\"Route '{$route}' points to a non-existing file '{$originalFile}'\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$originalFile=_UFO_GLOBAL_CONTROLLERS_DIR_.\"{$file}.php\";\n\t\t\t\t$file=realpath($originalFile);\n\t\t\t\tif (!$file) //file not found\n\t\t\t\t\tthrow new InvalidRouteException(\"Route '{$route}' points to a non-existing file '{$originalFile}'\");\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t//everything set, return this file\n\t\t\tbreak;\n\t\t}\n\t\tif (!$file) return \"\"; //no route found\n\t\treturn $file;\n\t}", "public function scan($filename){ }", "private static function xml_route(){\n\t\t\n\t\t$xml_routes=new Parser();\n\t\t$xml_routes->load_from_file('routes.xml');\n\t\t$request=(isset($_GET['request']))?$_GET['request']:'/index';\n\t\t$route_found=false;\n\t\t\n\t\t$routes=$xml_routes->getElementsByAttributeValue('method', Request::get_request_type());\n\t\t\n\t\t$str_routes=\"\";\n\t\t$found_route=null;\n\t\tforeach ($routes as $item){\n\t\t\t\n\t\t\tif($item->nodeType==XML_ELEMENT_NODE){\n\t\t\t\tforeach($item->childNodes as $attr){\n\t\t\t\t\t\n\t\t \tif($attr->nodeType==XML_ELEMENT_NODE){\n\t\t \n\t\t \t\tif($attr->tagName==\"request\"){\n\t\t \t\t\tif($item->getAttribute('method')==$_SERVER['REQUEST_METHOD']){\n\t\t \t\t\t\t$match_route=$item->cloneNode(true);\n\t\t \t\t\t\t//print \"{$match_route->getElementsByTagName('request')->item(0)->nodeValue}\\n\";\n\t\t \t\t\t\t\n\t\t \t\t\t\t$controller=$match_route->getElementsByTagName('controller')->item(0)->nodeValue;\n\t\t \t\t\t\t$action=$match_route->getElementsByTagName('action')->item(0)->nodeValue;\n\t\t \t\t\t\t\n\t\t \t\t\t\t$match=str_ireplace('/','\\\\/',$match_route->getElementsByTagName('request')->item(0)->nodeValue);\n\t\t \t\t\t\t//$match.=\"(\\\\/(.*))?\";\n\t\t \t\t\t\t$match='/^'.$match.'$/';\n\t\t \t\t\t\t$replace=\"/$controller/$action\";\n\t\t \t\t\t\tif($match_route->getAttribute('args')==true){\n\t\t \t\t\t\t\t$number_args=($match_route->getAttribute('argsnum')!==null)?$match_route->getAttribute('argsnum'):1;\n\t\t \t\t\t\t\tfor($i=1;$i<=$number_args;$i++)\n\t\t \t\t\t\t\t$replace.=\"/$\".$i;\n\t\t \t\t\t\t}\n\t\t \t\t\t\tif(preg_match($match, $request)){\n\t\t \t\t\t\t\t$request=preg_replace($match,$replace,$request);\n\t\t \t\t\t\t\t$found_route=$item->cloneNode(true);\n\t\t \t\t\t\t\t\n\t\t \t\t\t\t\t//print \"Found\\n\";\n\t\t \t\t\t\t\tbreak;\n\t\t \t\t\t\t}\n\t\t \t\t\t}\n\t\t \t\t}\n\t\t \t}\n\t\t\t\t}\n\t\t }\n\t\t if($found_route!==null){\n\t\t \tbreak;\n\t\t }\n\t\t}\n\t\t\n\t\treturn $request;\n\t}", "function getPathInfo($currentFileName)\r\n{\r\n $matchSuccess = preg_match_all(\"/$currentFileName\\\\/(.+)/\", $_SERVER['PHP_SELF'], $matches);\r\n if ($matchSuccess) {\r\n// print '<pre>';\r\n// print_r($matches);\r\n return $matches[1][0];\r\n }\r\n}", "public function get($path);", "public function get($path);", "protected static function find_file_custom($file)\n\t{\n\t\tif (file_exists($file))\n\t\t{\n\t\t\treturn $file;\n\t\t}\n\n\t\t$uri = THEMEPATH . $file;\n\t\tif (file_exists($uri))\n\t\t{\n\t\t\treturn $uri;\n\t\t}\n\n\t\t$uri = APPPATH . $file;\n\t\tif (file_exists($uri))\n\t\t{\n\t\t\treturn $uri;\n\t\t}\n\n\t\t$modules = Kohana::modules();\n\t\tforeach ($modules as $module)\n\t\t{\n\t\t\t$uri = $module . $file;\n\t\t\tif (file_exists($uri))\n\t\t\t{\n\t\t\t\treturn $uri;\n\t\t\t}\n\t\t}\n\n\t\t$uri = SYSPATH . $file;\n\t\tif (file_exists($uri))\n\t\t{\n\t\t\treturn $uri;\n\t\t}\n\n\t\tthrow new Gleez_Exception('Unable to locate file `:file`. No file exists with the specified file name.', array(\n\t\t\t':file' => $file\n\t\t));\n\t}", "private function route(): void\n {\n $url = $this->getUrlAsArray();\n $size = \\sizeof($url);\n $section = $this->section;\n\n for ($i = 0; $i < $size; $i++) {\n if ($i < ($size - 1)) {\n $section = $section->searchInSections($url[$i]);\n if ($section instanceof Section) {\n }\n } else {\n $route = $section->searchInRoutes($url[$i]);\n // TODO: Show view and use models\n if ($route instanceof Route) {\n\n }\n }\n }\n }", "public function matchRoute() {\n\t\tforeach($this->routes as $pattern => $callback) {\n\t\t\tif (preg_match('{^' . $pattern . '$}', $this->url) === 1) {\n\t\t\t\tif(!isset($_SESSION)){ session_start(); }\n\t\t\t\t// Parameters\n\t\t\t\t$params = array();\n\t\t\t\tif (isset($callback['params'])) {\n\t\t\t\t\t$url = explode('/', $this->url);\n\t\t\t\t\t$url = array_slice($url, -1 * count($callback['params']));\n\t\t\t\t\t$params = array_combine(array_keys($callback['params']), $url);\n\t\t\t\t}\n\t\t\t\t// Secured (Backend)\n\t\t\t\tif (isset($callback['secured'])) {\n\t\t\t\t\tif (isset($_SESSION['auth']) && $_SESSION['auth'] === true) {\n\t\t\t\t\t\t$this->dispatch($callback['controller'], $callback['action'], $params);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->url = 'http://' . $_SERVER['SERVER_NAME'] . '/login';\n\t\t\t\t\t\theader('location:' . $this->url);\n\t\t\t\t\t}\n\t\t\t\t// Secured (Frontend)\n\t\t\t\t} elseif (isset($callback['clientsecured'])) {\n\t\t\t\t\tif (isset($_SESSION['fauth']) && $_SESSION['fauth'] === true) {\n\t\t\t\t\t\t$this->dispatch($callback['controller'], $callback['action'], $params);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->url = 'home/login';\n\t\t\t\t\t\theader('location:' . $this->url);\n\t\t\t\t\t}\n\t\t\t\t// Simple\n\t\t\t\t} else {\n\t\t\t\t\t$this->dispatch($callback['controller'], $callback['action'], $params);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// No match\n\t\t$this->dispatch('Default', 'error', array('code' => 404));\n\t\treturn;\n\t}", "abstract public function getRouteMatch();", "public function find(Route $route){\n //va a buscar los parametros que estan en esta ruta y que son enviados por el recurso, que es el configurado en las rutas\n $this->permissions = Permission::find( intval( $route->getParameter('permisos') ) );\n }", "public function testFindsFilesWithMatchingStatusCode()\n {\n $assembly = $this->commonFindingTemplate(array(\n 'resourceName' => $this->resourceName,\n 'options' => array('type' => 'html', 'method' => 'GET', 'status' => 200),\n 'foundFiles' => array('FooResource.200.html.php')\n ));\n $this->assertEquals('FooResource.200.html.php', $assembly->getFile());\n }", "function pullFile($hash,$location);", "function browse($name, $func, $file = '')\n {\n $this->initialize($name);\n\n //Put extension at end of filename again\n $type = array_search($this->request->accept[0], $this->request->mimetypes);\n if($type != 'html')\n $file .= '.' . $type;\n\n $file = urldecode($_SERVER['REQUEST_URI']);\n $file = substr($file, strpos($file, 'browse/') + 6);\n\n //Check if requested url is within the base path\n $basepath = realpath($this->settings['path']);\n $path = $basepath;\n if($file != '')\n $path .= '/' . $file;\n $path = realpath($path);\n\n if($path && $basepath && substr_compare($path, $basepath, 0, strlen($basepath)) != 0)\n throw new Tonic\\NotFoundException;\n\n //Handle directories\n if(is_dir($path))\n {\n $entries = array();\n $names = scandir($path);\n foreach($names as $filename)\n {\n if($filename[0] == '.')\n continue;\n if(!is_readable($path . '/' . $filename))\n continue;\n $entry = $this->app->uri(__CLASS__, array($name, $func));\n if($file != '')\n $entry .= '/' . $file;\n $entry .= '/' . $filename;\n if(is_dir($path . '/' . $filename))\n $entry .= '/';\n $entries[] = $this->encode_path($entry);\n }\n\n $res = array();\n $res['type'] = 'directory';\n $res['name'] = basename($path);\n if($path == $basepath)\n $res['name'] = $name;\n $res['entries'] = $entries;\n return json_encode($res, JSON_PRETTY_PRINT);\n }\n\n //Handle mp3 files\n if(is_file($path))\n {\n //Create new songinfo\n $tags = $this->getID3Tags($path);\n $res = new Song($path, $tags['title'], $tags['artist'], $path);\n $res->album = $tags['album'];\n $res->length = $tags['length'];\n return $res->toJSON();\n }\n\n throw new Tonic\\NotFoundException;\n }", "public function browse() {\n\n\t}", "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 findFileBy(array $criteria);", "public function findNext(File $file, $pattern);", "function get_file(){\n extract($this->_url_params);\n /**\n * @var string $file_name\n * @var int $project_id\n */\n $this->load_view(false);\n if(!isset($file_name, $project_id)) goto redirect;\n /**\n * @var \\AWorDS\\App\\Models\\Project $project\n */\n $project = $this->set_model();\n $logged_in = $project->login_check();\n if($logged_in AND $project->verify($project_id)){\n $file_type = null;\n switch($file_name){\n case 'SpeciesRelation.txt': $file_type = Constants::EXPORT_SPECIES_RELATION; break;\n case 'DistantMatrix.txt' : $file_type = Constants::EXPORT_DISTANT_MATRIX; break;\n case 'NeighbourTree.jpg' : $file_type = Constants::EXPORT_NEIGHBOUR_TREE; break;\n case 'UPGMATree.jpg' : $file_type = Constants::EXPORT_UPGMA_TREE;\n }\n if($file_type == null) goto redirect;\n $file = $project->export($project_id, $file_type);\n if($file == null){\n redirect:\n $this->redirect(isset($_SERVER['HTTP_REFERER']) ?\n $_SERVER['HTTP_REFERER'] :\n Config::WEB_DIRECTORY . 'projects');\n exit();\n }\n header('Content-Type: ' . $file['mime']);\n header('Content-Disposition: attachment; filename=\"' . $file['name'] . '\"');\n readfile($file['path']);\n exit();\n }\n goto redirect;\n }", "private function findRoute()\n {\n // we need to start the session, because we check userLogin over the session\n session_start();\n\n if (!isset($_GET['cmd'])) {\n // if user is not logged in, we send hem to register page, so he can register or go to login from there\n if (!isset($_SESSION['userName'])) {\n $this->cmd = 'register';\n } else {\n $this->cmd = 'overview';\n }\n } elseif (!isset($_SESSION['userName']) && $_GET['cmd'] != 'login' && $_GET['cmd'] != 'register') {\n $this->cmd = 'overview';\n } else {\n $this->cmd = $_GET['cmd'];\n }\n\n // if we need to send data over json, the cmd in POST must be json, so we can go to json handler\n if(isset($_POST['cmd']) && $_POST['cmd'] == 'json'){\n $this->cmd = 'json';\n }\n }", "public static function route();", "function get_detail_files_by_id($params) {\n $sql = \"SELECT * FROM fa_files WHERE data_id = ? AND ref_id = ?\";\n $query = $this->db->query($sql, $params);\n if ($query->num_rows() > 0) {\n $result = $query->row_array();\n $query->free_result();\n return $result;\n } else {\n return array();\n }\n }", "function fn_find_file($prefix, $file, $company_id = null)\n{\n $file = Bootstrap::stripSlashes($file);\n\n // Url\n if (strpos($file, '://') !== false) {\n return $file;\n }\n\n $prefix = fn_normalize_path(rtrim($prefix, '/'));\n $file = fn_normalize_path($file);\n $files_path = fn_get_files_dir_path($company_id);\n\n // Absolute path\n if (is_file($file) && strpos($file, $files_path) === 0) {\n return $file;\n }\n\n // Path is relative to files directory\n if (is_file($files_path . $file)) {\n return $files_path . $file;\n }\n\n // Path is relative to prefix inside files directory\n if (is_file($files_path . $prefix . '/' . $file)) {\n return $files_path . $prefix . '/' . $file;\n }\n\n // Prefix is absolute path\n if (strpos($prefix, $files_path) === 0 && is_file($prefix . '/' . $file)) {\n return $prefix . '/' . $file;\n }\n\n return false;\n}", "function getFile($fileName)\r\n\t{\r\n\t\t$indexFile = $this->searchFile($fileName);\r\n\r\n\t\tif($indexFile >= 0)\r\n\t\t{\r\n\t\t\treturn $this->filesCollection->get( $indexFile );\r\n\t\t}\r\n\r\n\t\ttrigger_error(\"File not exists!\");\r\n\t\treturn null;\r\n\t}", "abstract protected function getFileWithPath();", "function _search_img_file($theme, $lang, $id, $dir = 'images')\n{\n $extensions = array('png', 'jpg', 'jpeg', 'gif', 'ico', 'svg');\n $url_base = 'themes/';\n foreach (array(get_custom_file_base(), get_file_base()) as $_base) {\n $base = $_base . '/themes/';\n\n foreach ($extensions as $extension) {\n $file_path = $base . $theme . '/';\n if ($dir != '') {\n $file_path .= $dir . '/';\n }\n if (($lang !== null) && ($lang != '')) {\n $file_path .= $lang . '/';\n }\n $file_path .= $id . '.' . $extension;\n if (is_file($file_path)) { // Theme+Lang\n $path = $url_base . rawurlencode($theme) . '/' . $dir . '/';\n if (($lang !== null) && ($lang != '')) {\n $path .= rawurlencode($lang) . '/';\n }\n $path .= $id . '.' . $extension;\n return $path;\n }\n }\n }\n return null;\n}", "public function index($id,$file)\n {\n \t$user = Auth::user();\n // Getting current task\n \t$task = Task::find($id);\n // checking if task is completed, if it is we check if the user has permission to retrieve from archive\n \tif ($task->completed_on != null && Gate::denies(\"create_inquiry\")) {\n \treturn view('errors.403');\n // checking if task is from another party when user is not part of LyuboINC.\n \t}elseif(Gate::denies(\"view_tasks_LyuboINC\") && ($task->partner != $user->partner)){\n \t\treturn view('errors.403');\n \t}else{\n \t\treturn response()->download(base_path().\"/storage/app/public/FileCatalog/\".$id.\"/\".$file);\n \t}\n }", "public function get($file)\n\t{\n\t\treturn self::findFile($file, $this->paths);\n\t}", "function virustotalscan_scan_file($filepath, $key)\r\n{\r\n\t$post = array('key' => $key, 'file' => '@'.$filepath);\r\n\t// se initializeaza o cerere\r\n\t$ch = curl_init();\r\n // parametrii cererii\r\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));\r\n\tcurl_setopt($ch, CURLOPT_URL, 'http://www.virustotal.com/api/scan_file.json');\r\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post); \r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \r\n\t// rezultatul cererii \r\n\t$result = curl_exec($ch);\r\n\t// se inchide cererea\r\n\tcurl_close($ch);\r\n\t// se decodeaza rezultatul\r\n\t$result = json_decode($result, true);\r\n // se intoarce rezultatul\r\n\tif(isset($result['scan_id'][0])) {\r\n return $result;\r\n\t} \r\n else {\r\n return false;\r\n\t}\t\r\n}", "abstract protected function doDetect($filePath);", "public function searchFile(Request $req)\n {\n $totalSearchResults = File::where('title', 'LIKE', '%' . $req->search . '%')->count();\n $searchResults = File::where('title', 'LIKE', '%' . $req->search . '%')->paginate(30);\n return view('admin.file.searchResult', compact('totalSearchResults', 'searchResults'));\n }", "public function find( &$className ) {\n\t\n\t\tif (empty( self::$paths ))\n\t\t\tthrow new aop_exception( \"path list is empty\" );\n\t\n\t\tforeach( self::$paths as $element ) {\n\t\t\n\t\t\t$liste = explode( PATH_SEPARATOR, $element );\n\t\t\tforeach( $liste as $path ) {\n\t\t\t\n\t\t\t\t// case 1\n\t\t\t\t$p = $path . DIRECTORY_SEPARATOR . $className . '.php';\n\t\t\t\t#echo \"1- Trying path: $p \\n\";\n\t\t\t\tif ( file_exists( $p ) )\n\t\t\t\t\treturn $p;\n\t\t\t\t\t\n\t\t\t\t// case 2\n\t\t\t\t$p = $path . DIRECTORY_SEPARATOR . $className . DIRECTORY_SEPARATOR . $className . '.php';\n\t\t\t\t#echo \"2- Trying path: $p \\n\";\t\t\n\t\t\t\tif ( file_exists( $p ) )\n\t\t\t\t\treturn $p;\n\t\t\t\t\t\n\t\t\t\t// case 3\n\t\t\t\t$bits = explode( \"_\", $className );\n\t\t\t\t$fragment_list = implode( DIRECTORY_SEPARATOR, $bits );\n\t\t\t\t$last_fragment = $bits[ count( $bits ) - 1 ];\n\t\t\t\t$p = $path . DIRECTORY_SEPARATOR . $fragment_list . '.php';\n\t\t\t\t#echo \"3- Trying path: $p \\n\";\t\t\t\n\t\t\t\tif ( file_exists( $p ) )\n\t\t\t\t\treturn $p;\n\t\t\t\t\n\t\t\t\t// case 4\n\t\t\t\t$p = $path . DIRECTORY_SEPARATOR . $fragment_list . DIRECTORY_SEPARATOR.$last_fragment.'.php';\n\t\t\t\t#echo \"4- Trying path: $p \\n\";\t\t\t\n\t\t\t\tif ( file_exists( $p ) )\n\t\t\t\t\treturn $p;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\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 }", "function route_match() {\n global $route;\n global $html;\n global $config;\n global $matched_route;\n\n $url = explode('index.php', $_SERVER['REQUEST_URI']);\n $url = @str_replace('.', '', substr($url[1], 1));\n if(strpos($url, '?') !== false) {\n $url = explode('?', $url);\n $url = $url[0];\n }\n\n if(!$url) {\n $matched_route = 'ROOT';\n require_once __DIR__ . '/app/' . $route['ROOT'];\n return true;\n }\n\n if(substr($url, -1) == '/') {\n $url = substr($url, 0, -1);\n }\n\n // Check for simple route match\n if(array_key_exists($url, $route)) {\n $matched_route = $url;\n require_once __DIR__ . '/app/' . $route[$url];\n return true;\n }\n\n // Check for regex\n foreach($route as $r => $page) {\n $matches = array();\n\n if(preg_match('#' . $r . '$#', $url, $matches)) {\n array_shift($matches);\n\n $_GET['custom_arguments'] = $matches;\n\n $matched_route = $r;\n require_once __DIR__ . '/app/' . $page;\n return true;\n }\n }\n\n return false;\n}", "public static function process(RouteInfo $r)\n\t{\n\t\t$params_required = ['oz_file_id', 'oz_file_key', 'oz_file_quality'];\n\t\t$args = $r->getArgs();\n\n\t\tAssert::assertForm($args, $params_required, new NotFoundException());\n\n\t\t$file_id = $args['oz_file_id'];\n\t\t$file_key = $args['oz_file_key'];\n\t\t$file_quality = (int) ($args['oz_file_quality']);\n\t\t$file_src = null;\n\t\t$access = SettingsManager::get('oz.files', 'OZ_GET_FILE_ACCESS_LEVEL');\n\t\t$users_manager = $r->getContext()\n\t\t\t\t\t\t ->getUsersManager();\n\n\t\tif ($access === 'users') {\n\t\t\t$picid = $file_id . '_' . $file_key;\n\n\t\t\tif (!$users_manager->userVerified() && !self::isLastUserPic($r->getContext(), $picid)) {\n\t\t\t\tthrow new ForbiddenException();\n\t\t\t}\n\t\t}\n\n\t\t$result = FilesUtils::getFileWithId($file_id, $file_key);\n\n\t\tif (!$result) {\n\t\t\tthrow new NotFoundException();\n\t\t}\n\n\t\tif ($file_quality > 0) {\n\t\t\t// if the client wants a thumbnails and we do not have it\n\t\t\t// then we notify it; the client should be able to handle this situation\n\t\t\tif (empty($result->getThumb())) {\n\t\t\t\tthrow new NotFoundException();\n\t\t\t}\n\n\t\t\t$file_src = $result->getThumb();\n\t\t} else {\n\t\t\t$file_src = $result->getPath();\n\t\t}\n\n\t\tif (empty($file_src) || !\\file_exists($file_src) || !\\is_file($file_src) || !\\is_readable($file_src)) {\n\t\t\t// NOTE keep this log, helpful for debugging\n\t\t\t$real_error = new InternalErrorException('The file is in the database but not at specified path.', [\n\t\t\t\t'file_id' => $file_id,\n\t\t\t\t'file_src' => $file_src,\n\t\t\t]);\n\n\t\t\tthrow new NotFoundException(null, null, $real_error);\n\t\t}\n\n\t\t$path_parts = \\pathinfo($file_src);\n\t\t$real_file_extension = \\strtolower($path_parts['extension']);\n\t\t$file_mime = FilesUtils::extensionToMimeType($real_file_extension);\n\t\t$file_name = SettingsManager::get('oz.files', 'OZ_GET_FILE_NAME');\n\n\t\t// when the request provide an extension and the extension\n\t\t// does not match the file extension\n\t\t// we just return a not found\n\t\tif (isset($args['oz_file_extension'])) {\n\t\t\t$request_file_extension = \\strtolower($args['oz_file_extension']);\n\n\t\t\tif ($request_file_extension !== $real_file_extension) {\n\t\t\t\tthrow new NotFoundException();\n\t\t\t}\n\t\t}\n\n\t\tif (\\strlen($file_name)) {\n\t\t\t$file_name = \\str_replace([\n\t\t\t\t'{oz_file_id}',\n\t\t\t\t'{oz_file_quality}',\n\t\t\t\t'{oz_file_extension}',\n\t\t\t], [\n\t\t\t\t$file_id,\n\t\t\t\t$file_quality,\n\t\t\t\t$real_file_extension,\n\t\t\t], $file_name);\n\t\t} else {\n\t\t\t$file_name = $result->getName();\n\t\t}\n\n\t\t$fis = new FilesServer();\n\n\t\treturn $fis->serve($r->getContext(), [\n\t\t\t'file_src' => $file_src,\n\t\t\t'file_quality' => $file_quality,\n\t\t\t'file_name' => $file_name,\n\t\t\t'file_mime' => $file_mime,\n\t\t]);\n\t}" ]
[ "0.6684296", "0.6115889", "0.58696115", "0.57555526", "0.5574047", "0.55665183", "0.5436301", "0.5377675", "0.5353834", "0.53378254", "0.5337532", "0.52984655", "0.5260143", "0.52382135", "0.5193937", "0.5178753", "0.5158825", "0.5151206", "0.5146507", "0.5125674", "0.5118467", "0.51151097", "0.5105871", "0.5071934", "0.5070913", "0.5058227", "0.5047381", "0.5046825", "0.50346404", "0.5022496", "0.5022496", "0.5016794", "0.50071716", "0.49990305", "0.49936318", "0.49847698", "0.49834993", "0.49824715", "0.49792564", "0.4974723", "0.49564692", "0.49548903", "0.49510178", "0.49411613", "0.49408752", "0.4939915", "0.49371397", "0.4930224", "0.4912873", "0.49064586", "0.48913974", "0.4884971", "0.48810124", "0.48790982", "0.4877298", "0.4853629", "0.48371664", "0.4836789", "0.48287126", "0.48232192", "0.48122826", "0.48112357", "0.4805795", "0.4805086", "0.48047414", "0.48001647", "0.47967952", "0.47901604", "0.47895667", "0.47875544", "0.47684938", "0.47684938", "0.47595719", "0.4750671", "0.47395444", "0.47302973", "0.47230548", "0.47197187", "0.47103605", "0.4707429", "0.4704669", "0.4704376", "0.47028914", "0.4684545", "0.46829337", "0.46789685", "0.46701455", "0.4668781", "0.46684566", "0.46613547", "0.46604675", "0.4652463", "0.46463695", "0.46416527", "0.46404624", "0.46372765", "0.46295655", "0.462562", "0.4619102", "0.46167108", "0.46166128" ]
0.0
-1
Parse all route objects to find the good router
private function route(): void { $url = $this->getUrlAsArray(); $size = \sizeof($url); $section = $this->section; for ($i = 0; $i < $size; $i++) { if ($i < ($size - 1)) { $section = $section->searchInSections($url[$i]); if ($section instanceof Section) { } } else { $route = $section->searchInRoutes($url[$i]); // TODO: Show view and use models if ($route instanceof Route) { } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parseRoutes()\n {\n $this->cacheRoutes();\n\n $request_uri = $this->prepareUrl($_SERVER['REQUEST_URI']);\n\n foreach (static::$routes as $uri => $data) {\n static::$uri = $uri;\n static::$routingType = $data['routingType'];\n\n if ($this->compareMethods($data['methods'], $data['routingType']) === false)\n continue;\n\n if ($this->parseUri($uri, $request_uri) === false)\n if (static::$urlCatcher === false)\n continue;\n\n if ($this->parseMiddleware($data['middleware']) === false)\n break;\n\n $this->parseServices($data['services']);\n\n if ($data['locale'] !== null)\n App::setLocale($data['locale']);\n\n // Execute\n $this->executeRoute($uri, $data);\n\n RouterStatus::increase();\n break;\n }\n\n if (RouterStatus::get() === 0) {\n static::$uri = null;\n abort(404);\n\n return;\n }\n }", "private function parseRoutes()\n {\n // Turn the segment array into a URI string\n $uri = implode('/', $this->uri->getSegments());\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri])) {\n return $this->setRequest(explode('/', $this->routes[$uri]));\n }\n\n // Loop through the route array looking for wild-cards\n foreach ($this->routes as $key => $val) {\n // Convert wild-cards to RegEx\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri)) {\n // Do we have a back-reference?\n if (strpos($val, '$') !== false && strpos($key, '(') !== false) {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n\n return $this->setRequest(explode('/', $val));\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->setRequest($this->uri->getSegments());\n }", "function _parse_routes()\n {\n // Do we even have any custom routing to deal with?\n // There is a default scaffolding trigger, so we'll look just for 1\n if (count($this->routes) == 1)\n {\n $this->_set_request($this->uri->segments);\n return;\n }\n\n // Turn the segment array into a URI string\n $uri = implode('/', $this->uri->segments);\n\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri]))\n {\n $this->_set_request(explode('/', $this->routes[$uri]));\n return;\n }\n\n //Art\n $i = $this->_search_by_key($this->routes, self::MAIN, $uri);\n if ($i !== FALSE)\n {\n $this->_set_request(explode('/', $this->routes[$i][self::ROUTE]));\n return;\n }\n\n // Loop through the route array looking for wild-cards\n foreach ($this->routes as $key => $val)\n {\n if(is_int($key))\n {\n $key = $val[self::MAIN];\n $val = $val[self::ROUTE];\n }\n // Convert wild-cards to RegEx\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri))\n {\n // Do we have a back-reference?\n if (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request($this->uri->segments);\n }", "protected function _parse_routes()\n\t{\n\t\t$uri = implode('/', $this->uri->segments);\n\n\t\t// Get HTTP verb\n\t\t$http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n\t\t// Loop through the route array looking for wildcards\n\t\tforeach ($this->routes as $key => $val)\n\t\t{\n\t\t\t// Check if route format is using HTTP verbs\n\t\t\tif (is_array($val))\n\t\t\t{\n\t\t\t\t$val = array_change_key_case($val, CASE_LOWER);\n\t\t\t\tif (isset($val[$http_verb]))\n\t\t\t\t{\n\t\t\t\t\t$val = $val[$http_verb];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Convert wildcards to RegEx\n\t\t\t$key = str_replace(array(':any', ':num',':all'), array('[^/]+', '[0-9]+','(?!(Techsystem|techsystem|Vindex\\/tech5sManagerControl).*$).*'), $key);\n\t\t\t// $key = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $key);\n\t\t\t// Does the RegEx match?\n\t\t\tif (preg_match('#^'.$key.'$#', $uri, $matches))\n\t\t\t{\n\t\t\t\t// Are we using callbacks to process back-references?\n\t\t\t\tif ( ! is_string($val) && is_callable($val))\n\t\t\t\t{\n\t\t\t\t\t// Remove the original string from the matches array.\n\t\t\t\t\tarray_shift($matches);\n\n\t\t\t\t\t// Execute the callback using the values in matches as its parameters.\n\t\t\t\t\t$val = call_user_func_array($val, $matches);\n\t\t\t\t}\n\t\t\t\t// Are we using the default routing method for back-references?\n\t\t\t\telseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$val = preg_replace('#^'.$key.'$#', $val, $uri);\n\t\t\t\t}\n\n\t\t\t\t$this->_set_request(explode('/', $val));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\n\t\t// If we got this far it means we didn't encounter a\n\t\t// matching route so we'll set the site default route\n\t\t$this->_set_request(array_values($this->uri->segments));\n\t}", "protected function _parse_routes()\n {\n $uri = implode('/', $this->uri->segments);\n\n // Get HTTP verb\n $http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri])) {\n // Check default routes format\n if (is_string($this->routes[$uri])) {\n $this->_set_request(explode('/', $this->routes[$uri]));\n return;\n }\n // Is there a matching http verb?\n elseif (is_array($this->routes[$uri]) && isset($this->routes[$uri][$http_verb])) {\n $this->_set_request(explode('/', $this->routes[$uri][$http_verb]));\n return;\n }\n }\n\n // decryption of module/controller/function name in admin\n if ($this->config->item('is_admin') == 1) {\n if ($this->config->item('ADMIN_URL_ENCRYPTION') == 'Y') {\n $uri_t = str_replace('admin/', '', $uri);\n if ($uri_t != \"\") {\n require_once(APPPATH . '/libraries/Ci_encrypt.php');\n $CI_Enc = new Ci_encrypt();\n $uri_t_decode = $CI_Enc->decrypt($uri_t, true);\n $CI_Enc->convertEncryptedVars();\n }\n $uri = 'admin/' . $uri_t_decode;\n }\n }\n // Loop through the route array looking for wildcards\n foreach ($this->routes as $key => $val) {\n // Check if route format is using http verb\n if (is_array($val)) {\n if (isset($val[$http_verb])) {\n $val = $val[$http_verb];\n } else {\n continue;\n }\n }\n\n // Convert wildcards to RegEx\n #$key = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $key);\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // Does the RegEx match?\n if (preg_match('#^' . $key . '$#', $uri, $matches)) {\n // Are we using callbacks to process back-references?\n if (!is_string($val) && is_callable($val)) {\n // Remove the original string from the matches array.\n array_shift($matches);\n\n // Execute the callback using the values in matches as its parameters.\n $val = call_user_func_array($val, $matches);\n }\n // Are we using the default routing method for back-references?\n elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE) {\n $val = preg_replace('#^' . $key . '$#', $val, $uri);\n }\n\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request(array_values($this->uri->segments));\n }", "private function load_routes() {\n\n // 1. plugins routes\n foreach($this->context->plugins() as $plugin) {\n \n if(false === $plugin->is_type('IRoutesPlugin')) continue;\n\n foreach($plugin->routes() as $route_value) {\n $this->routes[]= $route_value;\n }\n }\n\n // 2. config.xml routes\n $config_routes= $this->context->config()->routes();\n // XXX: review, maybe Route[] should be returned by configurator?\n foreach( $config_routes as $r ) {\n // xxx. requirements\n $this->routes[]= new Route( \n (string)trim($r['name']), // name\n (string)trim($r['value']), // definition\n $this->context->config()->route_defaults($r) // array with defaults\n );\n }\n\n // Medick::dump($this->routes);\n\n // xxx: throw exception if 0 routes?\n }", "private function parseRoutes()\n\t{\n\t\t@list($controller, $action, $params) = explode('/', $this->routes, 3);\n\t\tif (isset($controller)) {\n\t\t\t$this->setController($controller);\t\n\t\t}\n\t\tif (isset($action)) {\n\t\t\t$this->setAction($action);\n\t\t}\n\t\tif (isset($params)) {\n\t\t\t$this->setParams(explode('/', $params));\n\t\t}\n\t}", "protected function _parse_routes()\n {\n $uri = implode('/', $this->uri->segments);\n\n // only for test\n // sometime js file has map file but not found in server\n if (ENVIRONMENT === 'development') {\n log_message('error', json_encode($uri));\n }\n\n // Get HTTP verb\n $http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n // Loop through the route array looking for wildcards\n foreach ($this->routes as $key => $val)\n {\n // Check if route format is using HTTP verbs\n if (is_array($val))\n {\n $val = array_change_key_case($val, CASE_LOWER);\n if (isset($val[$http_verb]))\n {\n $val = $val[$http_verb];\n }\n else\n {\n continue;\n }\n }\n\n // Convert wildcards to RegEx\n $key = str_replace(array(':any', ':num'), array('.+', '[0-9]+'), $key);\n\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri, $matches))\n {\n // Are we using callbacks to process back-references?\n if ( ! is_string($val) && is_callable($val))\n {\n // Remove the original string from the matches array.\n array_shift($matches);\n\n // Execute the callback using the values in matches as its parameters.\n $val = call_user_func_array($val, $matches);\n }\n // Are we using the default routing method for back-references?\n elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request(array_values($this->uri->segments));\n }", "public function parse(Route $route) : ParsedRoute;", "private static function traverseRoutes() {\r\n\r\n\r\n\t\t$method = $_SERVER['REQUEST_METHOD'];\r\n\t\t$requested = $_SERVER['REQUEST_URI'];\r\n\t\t$path = $requested; // set our path to our request\r\n\t\t$path = explode('?',$path)[0]; // check for a query string. At zero index\r\n\t\t$path = strlen($path) > 1 ? rtrim($path,'/') : $path; //strip the slash at the end of the string (if its there). rtrim will take care of this automatically\r\n\t\t$parts = explode('/',$path);\r\n\t\t$parameters = array(); // Start traversal process. These are the parameters that we will pass\r\n\t\t$level = &self::$routes[$method]; // same as when we are registering. Grab a reference to our trunk\r\n\t\t\r\n\t\t// traverse the tree and determine if we have a valid route\r\n\t\treset($parts);\r\n\t\twhile(($part = current($parts)) !== false) {\r\n\r\n\t\t\tif(isset($level[$part])) { // found, now we move down one more level\r\n\t\t\t\t$level = &$level[$part];\r\n\t\t\t} elseif(isset($level['@'])) { // didn't find a defined, but we have a wild card. Go down this level\r\n\t\t\t\t$level = &$level['@'];\r\n\t\t\t\t$parameters[$level['name']] = urldecode($part);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new RouteException($requested.' route not found');\r\n\t\t\t}\r\n\r\n\t\t\tnext($parts);\r\n\t\t}\r\n\r\n\t\t// we have reached the final level. Extract the required information and dig in \r\n\t\t$callback = $level['*'];\r\n\t\tif(is_callable($callback)) {\r\n\t\t\t$callback($parameters);\r\n\t\t} else {\r\n\t\t\t$callbackParts = explode('@', $callback);\r\n\t\t\t$class = 'App\\Controllers\\\\'.$callbackParts[0];\r\n\t\t\t$function = $callbackParts[1];\r\n\t\t\t$controller = new $class();\r\n\t\t\treturn $controller->{$function}($parameters);\r\n\t\t}\r\n\r\n\t}", "public function get_router();", "public function populate_router() {\n if (Cache::has(APP_NAME.\"_Marmalade\\Router\\Routes\")) {\n $this->routes = Cache::get(APP_NAME.\"_Marmalade\\Router\\Routes\");\n } else {\n $this->build_route_map(Routes::load_routes());\n if (ENABLE_CACHE) {\n Cache::set(APP_NAME.\"_Marmalade\\Router\\Routes\", $this->routes);\n }\n }\n }", "public function getRoutes() {}", "private static function xml_route(){\n\t\t\n\t\t$xml_routes=new Parser();\n\t\t$xml_routes->load_from_file('routes.xml');\n\t\t$request=(isset($_GET['request']))?$_GET['request']:'/index';\n\t\t$route_found=false;\n\t\t\n\t\t$routes=$xml_routes->getElementsByAttributeValue('method', Request::get_request_type());\n\t\t\n\t\t$str_routes=\"\";\n\t\t$found_route=null;\n\t\tforeach ($routes as $item){\n\t\t\t\n\t\t\tif($item->nodeType==XML_ELEMENT_NODE){\n\t\t\t\tforeach($item->childNodes as $attr){\n\t\t\t\t\t\n\t\t \tif($attr->nodeType==XML_ELEMENT_NODE){\n\t\t \n\t\t \t\tif($attr->tagName==\"request\"){\n\t\t \t\t\tif($item->getAttribute('method')==$_SERVER['REQUEST_METHOD']){\n\t\t \t\t\t\t$match_route=$item->cloneNode(true);\n\t\t \t\t\t\t//print \"{$match_route->getElementsByTagName('request')->item(0)->nodeValue}\\n\";\n\t\t \t\t\t\t\n\t\t \t\t\t\t$controller=$match_route->getElementsByTagName('controller')->item(0)->nodeValue;\n\t\t \t\t\t\t$action=$match_route->getElementsByTagName('action')->item(0)->nodeValue;\n\t\t \t\t\t\t\n\t\t \t\t\t\t$match=str_ireplace('/','\\\\/',$match_route->getElementsByTagName('request')->item(0)->nodeValue);\n\t\t \t\t\t\t//$match.=\"(\\\\/(.*))?\";\n\t\t \t\t\t\t$match='/^'.$match.'$/';\n\t\t \t\t\t\t$replace=\"/$controller/$action\";\n\t\t \t\t\t\tif($match_route->getAttribute('args')==true){\n\t\t \t\t\t\t\t$number_args=($match_route->getAttribute('argsnum')!==null)?$match_route->getAttribute('argsnum'):1;\n\t\t \t\t\t\t\tfor($i=1;$i<=$number_args;$i++)\n\t\t \t\t\t\t\t$replace.=\"/$\".$i;\n\t\t \t\t\t\t}\n\t\t \t\t\t\tif(preg_match($match, $request)){\n\t\t \t\t\t\t\t$request=preg_replace($match,$replace,$request);\n\t\t \t\t\t\t\t$found_route=$item->cloneNode(true);\n\t\t \t\t\t\t\t\n\t\t \t\t\t\t\t//print \"Found\\n\";\n\t\t \t\t\t\t\tbreak;\n\t\t \t\t\t\t}\n\t\t \t\t\t}\n\t\t \t\t}\n\t\t \t}\n\t\t\t\t}\n\t\t }\n\t\t if($found_route!==null){\n\t\t \tbreak;\n\t\t }\n\t\t}\n\t\t\n\t\treturn $request;\n\t}", "abstract public function getRoute();", "private function getRoute(){\n\t}", "protected function parseRoute()\n { \n $matches = explode(\"/\", $this->route);\n\n $pattern = '/^([a-zA-Z0-9_-])+$/';\n \n if (preg_match($pattern, $matches[0])) {\n $this->controller = ucfirst(strtolower($matches[0]));\n }\n\n if (!empty($matches[1]) && preg_match($pattern, $matches[1])) {\n $this->action = $this->convert($matches[1]);\n }\n }", "protected function parseUri()\n {\n $path = rtrim(parse_url($this->request->uri, PHP_URL_PATH), '/');\n if (!is_null($this->basePath)) {\n if (strpos($path, $this->basePath) === 0) {\n $path = substr($path, strlen($this->basePath));\n }\n }\n foreach ($this->routes as $route => $controller) {\n if (ENABLE_CACHE && \\Unamed\\Cache::isHit('route:' . $route)) {\n $routeRegEx = \\Unamed\\Cache::get('route:' . $route);\n } else {\n $routeRegEx = $this->compileRoute($route);\n }\n if ($this->parse($path, $routeRegEx) === 1) {\n $this->setController($controller);\n if (isset($this->params['action'])) {\n $this->setAction($this->params['action']);\n }\n continue;\n }\n }\n return;\n }", "function TreetrackerParseRoute($segments)\r\n{\r\n return TreetrackerHelperRoute::parse($segments);\r\n}", "private function uri_reroute()\n {\n $match = false;\n\n $uri = parse_url($_SERVER['REQUEST_URI']);\n if (isset($uri['path']) && $uri['path'] !== \"/\") {\n $_ = preg_split(\"|/|\", $uri['path'], -1, PREG_SPLIT_NO_EMPTY);\n\n $i = 0;\n $route = null;\n $router = null;\n // while ($match === false) {\n // $path = $_[$i];\n\n // if (isset($this->configuration['ROUTES']['/' . $path])) {\n // $match = true;\n // $route = \"/$path\";\n // $router = $this->configuration['ROUTES']['/' . $path];\n // $this->route_map = $route;\n // }\n\n // if (isset($this->configuration['ROUTES'][$path])) {\n // $match = true;\n // $route = \"$path\";\n // $router = $this->configuration['ROUTES'][$path];\n // $this->route_map = $route;\n // }\n\n // ++$i;\n // }\n\n // unset($_);\n // unset($i);\n // unset($uri);\n // unset($path);\n\n if (isset($_) && is_array($_) && count($_) > 0) {\n $path = \"\";\n foreach ($_ as $k => $v) {\n $path .= \"/\" . $v;\n\n if (isset($this->configuration['ROUTES'][$path])) {\n $match = true;\n $route = \"$path\";\n $router = $this->configuration['ROUTES'][$path];\n $this->route_map = $route;\n\n // if(is_array($router['params'])){\n\n // }elseif($router['params'] == \"*\"){\n // break;\n // }\n\n break;\n }\n }\n }\n\n if (isset($router['controller'])) {\n $this->controller = $router['controller'];\n } else {\n $this->controller = \"main\";\n }\n\n if (isset($router['method'])) {\n $this->method = $router['method'];\n } else {\n $this->method = \"index\";\n }\n\n if (isset($router['action']) && isset($this->http)) {\n if (trim(strtolower($router['action'])) != strtolower($this->http->action)) {\n $this->http->http_error(403);\n }\n }\n \n if (isset($router['type']) && isset($router['type'])){\n if (trim(strtolower($router['type'])) == \"json\" && $this->http->type != \"json\"){\n $this->http->http_error(406, \"Form \" . $this->http->action . \" data is not json\");\n }\n }\n\n if (isset($router['params'])) {\n if (is_array($router['params'])) {\n $uri = preg_split(\"|/|\", str_replace($route, \"\", $_SERVER['REQUEST_URI']), -1, PREG_SPLIT_NO_EMPTY);\n\n if (is_array($router['params'])) {\n $_ = $router['params'];\n unset($router['params']);\n\n $router['params'][] = $_;\n unset($_);\n }\n\n $nums_params = count($router['params'][0]);\n\n if ($nums_params > 0) {\n foreach ($router['params'][0] as $k => $v) {\n $this->params[$v] = trim(urldecode($uri[$k]));\n }\n }\n\n $i = 0;\n $x = 0;\n while ($nums_params < $i) {\n if (isset($uri[$x]) && is_value($uri[$x])) {\n $this->params[$router['params'][$i]] = trim(urldecode($uri[$x]));\n ++$i;\n }\n ++$x;\n }\n\n } elseif ($router['params'] != \"*\") {\n return $this->http->http_error(404);\n }\n } else {\n $uri = preg_split(\"|/|\", str_replace($route, \"\", $_SERVER['REQUEST_URI']), -1, PREG_SPLIT_NO_EMPTY);\n\n if (count($uri) > 0) {\n return $this->http->http_error(404);\n }\n }\n\n unset($uri);\n unset($i);\n unset($x);\n unset($route);\n unset($router);\n }\n\n return $match;\n }", "public function getRoutes();", "public function getRoutes();", "protected function prepareRoutes ()\n {\n foreach ($this->routes as $index => $route) {\n $this->registerNamedRoute($route);\n $this->registerRouteMethods($route, $index);\n }\n }", "public function initRoutes()\r\n {\r\n $route = new Route();\r\n\r\n $routesConf = include __DIR__ . '/../../config/routes.inc.php';\r\n\r\n foreach ($routesConf as $routeConf) {\r\n\r\n $uri = $routeConf['uri'];\r\n\r\n if (preg_match_all('/\\$(.*?(?=\\/)|.*?$)/', $routeConf['uri'], $matches)) {\r\n $uri = preg_replace('/\\$(.*?(?=\\/)|.*?$)/', '.*', $routeConf['uri']);\r\n }\r\n\r\n $route->add($uri, $routeConf, $matches[1], function($params) {\r\n $this->config->route = $params['config'];\r\n\r\n $args = [];\r\n if (isset($params['arguments'])) {\r\n $args = $params['arguments'];\r\n }\r\n\r\n $controller = new $params['config']['controller']($this->config, $this->db, $args);\r\n\r\n $controller->indexAction();\r\n });\r\n }\r\n\r\n $findUrl = $route->submit();\r\n\r\n if (!$findUrl) {\r\n header('HTTP/1.0 404 Not Found');\r\n include_once __DIR__ . '/../../../src/Views/errors/404_de.html';\r\n }\r\n }", "public function extractRoutingInfo()\n {\n // Category\n $category = \"\";\n if (!empty($this->get[\"c\"])) {\n $category = $this->get[\"c\"];\n }\n $this->setController($category);\n unset($this->get[\"c\"]);\n\n // Action\n $action = \"\";\n if (!empty($this->get[\"a\"])) {\n $action = $this->get[\"a\"];\n }\n $this->setAction($action);\n unset($this->get[\"a\"]);\n\n // Property ID\n $property_id = null;\n if (!empty($this->get[\"pid\"])) {\n $property_id = $this->get[\"pid\"];\n }\n $this->setPropertyID($property_id);\n unset($this->get[\"pid\"]);\n\n // Debug flag\n $in_debug = (new \\Helpers\\Config)->getDebugMode() ?? false;\n if (!empty($this->get[\"debug\"])) {\n $in_debug = true;\n }\n $this->setInDebug($in_debug);\n unset($this->get[\"in_debug\"]);\n }", "public static function getRoutes();", "public static function getRoutes();", "private function parseRoutesPHP()\n {\n $routesConfig = include $this->rootPath.'/config/routes.php';\n foreach ($routesConfig as $route => $routeInfo) {\n\t if (!is_array($routeInfo) && is_callable($routeInfo)) {\n\t\t\t\t$this->router->addRoute($route, $route, $routeInfo);\n\t }\n\t else {\n\t $defaults = (isset($routeInfo['defaults']) && is_array($routeInfo['defaults'])) ? $routeInfo['defaults'] : [];\n\t $requirements = (isset($routeInfo['requirements']) && is_array($routeInfo['requirements'])) ? $routeInfo['requirements'] : [];\n\t $methods = (isset($routeInfo['methods']) && is_array($routeInfo['methods'])) ? $routeInfo['methods'] : [];\n\t $destination = arrayPath($routeInfo, 'controller', null);\n\t if (! $destination) {\n\t $template = arrayPath($routeInfo, 'template', null);\n\t if ($template) {\n\t $destination = function () use ($template) {\n\t return new Response($template, ['request' => $this->request]);\n\t };\n\t } else {\n\t $destination = arrayPath($routeInfo, 'function', null);\n\t }\n\t }\n\n\t if ($destination) {\n\t $this->router->addRoute($route, $route, $destination, $defaults, $requirements, $methods);\n\t } else {\n\t Log::error(\"Invalid destination for route '$route'.\");\n\t }\n\t }\n }\n }", "public function getListRoutes()\r\n {\r\n $result = array();\r\n \r\n if (count( $this->routes ))\r\n {\r\n foreach ( $this->routes as $act )\r\n {\r\n \r\n $route_str = '';\r\n if (isset( $this->default_params['url_prefix'] ) && ! empty( $this->default_params['url_prefix'] ))\r\n {\r\n $route_str = $this->default_params['url_prefix'];\r\n }\r\n \r\n if (is_array( $act['type'] ))\r\n {\r\n $route_str = implode( '|', $act['type'] ) . ' ' . $route_str;\r\n }\r\n else\r\n {\r\n $route_str = $act['type'] . ' ' . $route_str;\r\n }\r\n $route_str .= $act['route'];\r\n \r\n if (isset( $act['params']['ajax'] ) && (bool) ($act['params']['ajax']))\r\n {\r\n $route_str .= ' [ajax]';\r\n }\r\n \r\n $action_str = '';\r\n if (isset( $act['params']['namespace'] ) && ! empty( $act['params']['namespace'] ))\r\n {\r\n $action_str = (string) $act['params']['namespace'];\r\n }\r\n else\r\n {\r\n if (isset( $this->default_params['namespace'] ) && ! empty( $this->default_params['namespace'] ))\r\n {\r\n $action_str = $this->default_params['namespace'];\r\n }\r\n }\r\n $action_str .= '\\\\';\r\n \r\n if (isset( $act['params']['controller'] ))\r\n {\r\n $action_str .= (string) $act['params']['controller'];\r\n }\r\n else\r\n {\r\n if (isset( $this->default_params['controller'] ) && ! empty( $this->default_params['controller'] ))\r\n {\r\n $action_str .= $this->default_params['controller'];\r\n }\r\n }\r\n $action_str .= '->' . (string) $act['params']['action'];\r\n \r\n $kbps = $this->default_params['kbps'];\r\n if( isset( $act['params']['kbps'] ) ){\r\n \t$kbps = $act['params']['kbps'];\r\n }\r\n $ttl = $this->default_params['ttl'];\r\n if( isset( $act['params']['ttl'] ) ){\r\n \t$ttl = $act['params']['ttl'];\r\n }\r\n \r\n $route = new \\stdclass();\r\n $route->pattern = $route_str;\r\n $route->handler = $action_str;\r\n $route->ttl = $ttl;\r\n $route->kbps = $kbps;\r\n $result[] = $route;\r\n }\r\n }\r\n \r\n return $result;\r\n }", "public function createRouteObject();", "public function getSystemRoutes();", "protected function initRouter()\n {\n $xml = new \\DOMDocument;\n $xml->load(ROOT_DIR . '/configs/routing.xml');\n\n $routes = $xml->getElementsByTagName('route');\n\n $routeList = new RouteList();\n\n /** @var $DOMRoute DOMElement */\n foreach ($routes as $DOMRoute) {\n $attrController = $DOMRoute->getAttribute('controller');\n list($controller, $action) = explode('::', $attrController);\n\n /** @var Route $route */\n $route =\n new Route(\n $DOMRoute->getAttribute('path'),\n $controller,\n $action\n );\n\n if ($DOMRoute->hasChildNodes()) {\n /** @var \\DOMElement $node */\n $requirements = [];\n foreach ($DOMRoute->childNodes as $node) {\n if ($node->nodeType === XML_ELEMENT_NODE && $node->nodeName === \"requirement\") {\n $requirements[$node->getAttribute('key')] = $node->nodeValue;\n }\n if ($node->nodeType === XML_ELEMENT_NODE && $node->nodeName === \"condition\") {\n $route->setCondition($node->nodeValue);\n }\n }\n $route->setRequirements($requirements);\n }\n\n $routeList->offsetSet(\n $DOMRoute->getAttribute('id'),\n $route\n );\n }\n\n $this->router = new Router($routeList);\n }", "public function getRoute();", "private function initialize_routes() {\n // capture request method, url string, and break url string into parts (around '/')\n $this->request_method = $_SERVER['REQUEST_METHOD'];\n $this->url_parts_string = (isset($_GET['p'])) ? rtrim(strtolower($_GET['p']), '/'): '';\n $this->url_parts = explode('/', $this->url_parts_string);\n \n // capture request payload\n $this->payload = array();\n if ($this->request_method == 'POST') { \n // POST data if avaiable\n if (!empty($_POST)) {\n $this->payload = $_POST;\n \n // raw JSON if aviaible\n } else {\n $fp = fopen('php://input', 'r');\n $raw_data = stream_get_contents($fp);\n $posted_json = (array)json_decode($raw_data);\n \n if (!empty($posted_json)) {\n $this->payload = $posted_json;\n }\n }\n }\n \n // type cast all dynamic url parts as INT or FLOAT else leave as STRING\n $preg_pattern = '/[a-zA-Z]/';\n foreach ($this->url_parts as $key=>$value) {\n preg_match($preg_pattern, $value, $matches);\n if (empty($matches)) {\n if ((int)$value != null) $this->url_parts[$key] = (int)$value;\n else if ((float)$value != null) $this->url_parts[$key] = (float)$value; \n }\n }\n \n return true;\n }", "public function objectRouteClass();", "abstract public function getRouteMatch();", "private function parseRoutesJSON()\n {\n $routesConfig = JSONParser::parse(file_get_contents($this->rootPath.'/config/routes.json'));\n foreach ($routesConfig as $routeName => $routeInfo) {\n $defaults = (isset($routeInfo['defaults']) && is_array($routeInfo['defaults'])) ? $routeInfo['defaults'] : [];\n $requirements = (isset($routeInfo['requirements']) && is_array($routeInfo['requirements'])) ? $routeInfo['requirements'] : [];\n $methods = (isset($routeInfo['methods']) && is_array($routeInfo['methods'])) ? $routeInfo['methods'] : [];\n\n $this->router->addRoute($routeName, $routeInfo['endPoint'], $routeInfo['controller'], $defaults, $requirements, $methods);\n }\n }", "public function checkingRoute()\n {\n\n global $route;\n $request = new Request;\n $requested_url = $request->server('QUERY_STRING');\n //!TEST\n // echo $requested_url;\n // echo '<br />';\n $requested_method = $request->server('REQUEST_METHOD');\n //! TEST\n // echo $requested_method;\n /* \n // $server_all = $request->serverAll();\n // echo '<pre>';\n // print_r($server_all);\n // echo '</pre>' ;\n // $route_object = new Route;\n */\n $all_routes = $route->getRoutingTable();\n\n // NOTE\n /*\n ! ezzay ana shayf Class Web and Route min 3'eer use key word \n ? routes/web.php & Core/Route.php\n */\n //!TEST\n // echo '<pre>';\n // print_r($all_routes);\n // echo '</pre>';\n\n foreach ($all_routes as $url => $info) {\n\n /* !//? to test $url returns\n echo '<pre>';\n print_r($url);\n echo '</pre>' ;\n */\n // // if ($requested_url == $url){\n if (preg_match($url,$requested_url , $matches )){\n if( $requested_method == strtolower($info['method'])) {\n $this->controller = $info['controller'];\n $this->action = $info['action'];\n $this->params = array_slice($matches , 1);\n return true ;\n }else{\n die(\"405 method does not exist\");\n }\n /* //!deprecated if statement (wrong else statement)\n // if ($requested_url != $single_route) {\n // die('404 url not found');\n // }\n // elseif ($requested_method != $info['method']) {\n // die('405 method not allowed');\n // }\n // else {\n // $this->controller = $info['controller'];\n // $this->method = $info['method'];\n // }\n */\n }\n // echo $this->controller;\n // echo '<br />';\n // echo $this->action ;\n // echo '<br />';\n }\n die(\"404 not found\");\n }", "public static function getRoutes()\n {\n $routes = new \\FreeFW\\Router\\RouteCollection();\n $paths = [];\n $paths[] = __DIR__ . '/../resource/routes/restful/routes.php';\n foreach ($paths as $onePath) {\n $apiRoutes = @include($onePath);\n if (is_array($apiRoutes)) {\n foreach ($apiRoutes as $routeId => $apiRoute) {\n $myRoute = new \\FreeFW\\Router\\Route();\n $myRoute\n ->setId($routeId)\n ->setMethod($apiRoute[\\FreeFW\\Router\\Route::ROUTE_METHOD])\n ->setUrl($apiRoute[\\FreeFW\\Router\\Route::ROUTE_URL])\n ->setController($apiRoute[\\FreeFW\\Router\\Route::ROUTE_CONTROLLER])\n ->setFunction($apiRoute[\\FreeFW\\Router\\Route::ROUTE_FUNCTION])\n ;\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_ROLE, $apiRoute)) {\n $myRoute->setRole($apiRoute[\\FreeFW\\Router\\Route::ROUTE_ROLE]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_AUTH, $apiRoute)) {\n $myRoute->setAuth($apiRoute[\\FreeFW\\Router\\Route::ROUTE_AUTH]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_INCLUDE, $apiRoute)) {\n $myRoute->setInclude($apiRoute[\\FreeFW\\Router\\Route::ROUTE_INCLUDE]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_MODEL, $apiRoute)) {\n $myRoute->setDefaultModel($apiRoute[\\FreeFW\\Router\\Route::ROUTE_MODEL]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_COLLECTION, $apiRoute)) {\n $myRoute->setCollection($apiRoute[\\FreeFW\\Router\\Route::ROUTE_COLLECTION]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_COMMENT, $apiRoute)) {\n $myRoute->setComment($apiRoute[\\FreeFW\\Router\\Route::ROUTE_COMMENT]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_PARAMETERS, $apiRoute)) {\n $myRoute->setParameters($apiRoute[\\FreeFW\\Router\\Route::ROUTE_PARAMETERS]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_RESULTS, $apiRoute)) {\n $myRoute->setResponses($apiRoute[\\FreeFW\\Router\\Route::ROUTE_RESULTS]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_SCOPE, $apiRoute)) {\n $myRoute->setScope($apiRoute[\\FreeFW\\Router\\Route::ROUTE_SCOPE]);\n }\n $routes->addRoute($myRoute);\n }\n }\n }\n return $routes;\n }", "static public function routes()\n\t{\n\t\tglobal $core;\n\t\tstatic $constructed;\n\n\t\tif (!$constructed)\n\t\t{\n\t\t\t$constructed = true;\n\n\t\t\tself::$routes += $core->configs->fuse('routes', array(__CLASS__, 'routes_constructor'));\n\t\t}\n\n\t\treturn self::$routes;\n\t}", "function __construct(){\r\n $parser = new Shumvc_RouteParser();\r\n $this->routes = $parser->getRoutes();\r\n }", "public function get_matched_route()\n {\n }", "function parseRouterFromHtaccess($route)\n{\n\t///////////////////////////////////////////////\n\t//START customize URL\n\t$parts = explode('/', $route);\n\t\n\t//not check URL Rewrite if specified controller group\n\tif($parts[0] == 'admin' || $parts[0] == 'site')\n\t\treturn $route;\n\t\n\t$controllergroup = '';\n\t$controller = '';\n\t$action = '';\n\t$routerArgString = '';\n\t\n\tfor($i = 0; $i < count($parts); $i++)\n\t{\n\t\t$partValue = $parts[$i]; \n\t\t\n\t\tif(preg_match('/([a-z]+)\\.php$/', $partValue, $match)) //normal controller, such as(login,logout,register,tos,...)\n\t\t{\n\t\t\tif($controller != '')\n\t\t\t{\n\t\t\t\t$action = $partValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controllergroup = 'site';\n\t\t\t\t$controller = $match[1];\n\t\t\t}\n\t\t}\n\t\telseif(preg_match('/page-(\\d+)/', $partValue, $match)) //this is a page group: page-1, page-2...\n\t\t{\n\t\t\t$_GET['page'] = $match[1];\n\t\t}\n\t\telseif(preg_match('/^[a-z0-9\\_-]+-(\\d+)$/', $partValue, $match))\t//photo detail url\n\t\t{\n\t\t\t$controllergroup = 'site';\n\t\t\t$controller = 'index';\n\t\t\t$action = 'detail';\n\t\t\t$_GET['photoid'] = $match[1];\n\t\t}\n\t\telseif(preg_match('/^[a-z0-9\\_-]+-c(\\d+)$/', $partValue, $match)) //category photos\n\t\t{\n\t\t\t$controllergroup = 'site';\n\t\t\t$controller = 'index';\n\t\t\t$action = 'index';\n\t\t\t$_GET['category'] = $match[1];\n\t\t}\n\t\telse if(strlen($partValue) > 0)\t// appending remain of route string parts\n\t\t{\n\t\t\t$routerArgString .= $partValue . '/';\n\t\t}\n\t}\n\t\n\t//assign default value for group,controller,action\n\tif($controllergroup == '') $controllergroup = 'site';\n\tif($controller == '') $controller = 'index';\n\tif($action == '') $action = 'index';\n\t\n\t//packing the route again after processing\n\t$route = '';\n\tif($controllergroup != '')\n\t\t$route .= $controllergroup . '/';\n\tif($controller != '')\n\t\t$route .= $controller . '/' ;\n\tif($action != '')\n\t\t$route .= $action . '/';\n\tif($routerArgString != '')\n\t\t$route .= $routerArgString;\n\t\t\n\t//die($route);\n\t\n\t//END customize URL\n\t/////////////////////////////////////////////////\n\t\n\treturn $route;\n}", "public function declare_routes(){\n\n $this->routes = \\Chocolatine\\get_configuration( 'routes' );\n $view_manager = \\Chocolatine\\get_manager('view');\n\n /**\n * Declare all route\n */\n foreach ( $this->routes as $key => $current_route) {\n\n $this->router->map(['GET', 'POST'], $current_route['route'] ,function ($request, $response, $args) {\n\n $router = \\Chocolatine\\get_service( 'Router' );\n return $router->controller( $request, $response, $args );\n\n });\n\n }\n\n }", "function parse($url) {\r\n\t\tif ($url && ('/' != $url[0])) {\r\n\t\t\tif (!defined('SERVER_IIS')) {\r\n\t\t\t\t$url = '/' . $url;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$out = array();\r\n\t\t$r = null;\r\n\t\t$default_route = array('/:controller/:action/* (default)',\r\n\t\t\t\t\t\t\t\t'/^(?:\\/(?:([a-zA-Z0-9_\\\\-\\\\.\\\\;\\\\:]+)(?:\\\\/([a-zA-Z0-9_\\\\-\\\\.\\\\;\\\\:]+)(?:[\\\\/\\\\?](.*))?)?))[\\\\/]*$/',\r\n\t\t\t\t\t\t\t\tarray('controller', 'action'), array());\r\n\r\n\t\tif (defined('CAKE_ADMIN') && $this->__admin != null) {\r\n\t\t\t$this->routes[]=$this->__admin;\r\n\t\t\t$this->__admin =null;\r\n\t\t}\r\n\t\t$this->connect('/bare/:controller/:action/*', array('bare' => '1'));\r\n\t\t$this->connect('/ajax/:controller/:action/*', array('bare' => '1'));\r\n\r\n\t\tif (defined('WEBSERVICES') && WEBSERVICES == 'on') {\r\n\t\t\t$this->connect('/rest/:controller/:action/*', array('webservices' => 'Rest'));\r\n\t\t\t$this->connect('/rss/:controller/:action/*', array('webservices' => 'Rss'));\r\n\t\t\t$this->connect('/soap/:controller/:action/*', array('webservices' => 'Soap'));\r\n\t\t\t$this->connect('/xml/:controller/:action/*', array('webservices' => 'Xml'));\r\n\t\t\t$this->connect('/xmlrpc/:controller/:action/*', array('webservices' => 'XmlRpc'));\r\n\t\t}\r\n\t\t$this->routes[] = $default_route;\r\n\r\n\t\tif (strpos($url, '?') !== false) {\r\n\t\t\t$url = substr($url, 0, strpos($url, '?'));\r\n\t\t}\r\n\r\n\t\tforeach($this->routes as $route) {\r\n\t\t\tlist($route, $regexp, $names, $defaults) = $route;\r\n\r\n\t\t\tif (preg_match($regexp, $url, $r)) {\r\n\t\t\t\t// remove the first element, which is the url\r\n\t\t\t\tarray_shift ($r);\r\n\t\t\t\t// hack, pre-fill the default route names\r\n\t\t\t\tforeach($names as $name) {\r\n\t\t\t\t\t$out[$name] = null;\r\n\t\t\t\t}\r\n\t\t\t\t$ii=0;\r\n\r\n\t\t\t\tif (is_array($defaults)) {\r\n\t\t\t\t\tforeach($defaults as $name => $value) {\r\n\t\t\t\t\t\tif (preg_match('#[a-zA-Z_\\-]#i', $name)) {\r\n\t\t\t\t\t\t\t$out[$name] = $value;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$out['pass'][] = $value;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tforeach($r as $found) {\r\n\t\t\t\t\t// if $found is a named url element (i.e. ':action')\r\n\t\t\t\t\tif (isset($names[$ii])) {\r\n\t\t\t\t\t\t$out[$names[$ii]] = $found;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// unnamed elements go in as 'pass'\r\n\t\t\t\t\t\t$found = explode('/', $found);\r\n\t\t\t\t\t\t$pass = array();\r\n\t\t\t\t\t\tforeach($found as $key => $value) {\r\n\t\t\t\t\t\t\tif ($value == \"0\") {\r\n\t\t\t\t\t\t\t\t$pass[$key] = $value;\r\n\t\t\t\t\t\t\t} elseif ($value) {\r\n\t\t\t\t\t\t\t\t$pass[$key] = $value;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$out['pass'] = $pass;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$ii++;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $out;\r\n\t}", "public function getRouteMatch();", "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 getRoute(): Route;", "protected function parseRoutes(AgaviRouting $routing, $routes, $parent = null)\n\t{\n\t\tforeach($routes as $route) {\n\t\t\t$pattern = $route->getAttribute('pattern');\n\t\t\t$opts = array();\n\t\t\tif($route->hasAttribute('imply'))\t\t\t\t\t$opts['imply']\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('imply'));\n\t\t\tif($route->hasAttribute('cut'))\t\t\t\t\t\t$opts['cut']\t\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('cut'));\n\t\t\tif($route->hasAttribute('stop'))\t\t\t\t\t$opts['stop']\t\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('stop'));\n\t\t\tif($route->hasAttribute('name'))\t\t\t\t\t$opts['name']\t\t\t\t\t= $route->getAttribute('name');\n\t\t\tif($route->hasAttribute('source'))\t\t\t\t$opts['source']\t\t\t\t= $route->getAttribute('source');\n\t\t\tif($route->hasAttribute('constraint'))\t\t$opts['constraint']\t\t= array_map('trim', explode(' ', trim($route->getAttribute('constraint'))));\n\t\t\t// values which will be set when the route matched\n\t\t\tif($route->hasAttribute('action'))\t\t\t\t$opts['action']\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('action'));\n\t\t\tif($route->hasAttribute('locale'))\t\t\t\t$opts['locale']\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('locale'));\n\t\t\tif($route->hasAttribute('method'))\t\t\t\t$opts['method']\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('method'));\n\t\t\tif($route->hasAttribute('module'))\t\t\t\t$opts['module']\t\t\t\t= AgaviToolkit::literalize($route->getAttribute('module'));\n\t\t\tif($route->hasAttribute('output_type'))\t\t$opts['output_type']\t= AgaviToolkit::literalize($route->getAttribute('output_type'));\n\n\t\t\tif($route->has('ignores')) {\n\t\t\t\tforeach($route->get('ignores') as $ignore) {\n\t\t\t\t\t$opts['ignores'][] = $ignore->getValue();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($route->has('defaults')) {\n\t\t\t\tforeach($route->get('defaults') as $default) {\n\t\t\t\t\t$opts['defaults'][$default->getAttribute('for')] = $default->getValue();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($route->has('callbacks')) {\n\t\t\t\t$opts['callbacks'] = array();\n\t\t\t\tforeach($route->get('callbacks') as $callback) {\n\t\t\t\t\t$opts['callbacks'][] = array(\n\t\t\t\t\t\t'class' => $callback->getAttribute('class'),\n\t\t\t\t\t\t'parameters' => $callback->getAgaviParameters(),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$opts['parameters'] = $route->getAgaviParameters();\n\n\t\t\tif(isset($opts['name']) && $parent) {\n\t\t\t\t// don't overwrite $parent since it's used later\n\t\t\t\t$parentName = $parent;\n\t\t\t\tif($opts['name'][0] == '.') {\n\t\t\t\t\twhile($parentName && isset($this->unnamedRoutes[$parentName])) {\n\t\t\t\t\t\t$parentRoute = $routing->getRoute($parentName);\n\t\t\t\t\t\t$parentName = $parentRoute['opt']['parent'];\n\t\t\t\t\t}\n\t\t\t\t\t$opts['name'] = $parentName . $opts['name'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(isset($opts['action']) && $parent) {\n\t\t\t\tif($opts['action'][0] == '.') {\n\t\t\t\t\t$parentRoute = $routing->getRoute($parent);\n\t\t\t\t\t// unwind all empty 'action' attributes of the parent(s)\n\t\t\t\t\twhile($parentRoute && empty($parentRoute['opt']['action'])) {\n\t\t\t\t\t\t$parentRoute = $routing->getRoute($parentRoute['opt']['parent']);\n\t\t\t\t\t}\n\t\t\t\t\tif(!empty($parentRoute['opt']['action'])) {\n\t\t\t\t\t\t$opts['action'] = $parentRoute['opt']['action'] . $opts['action'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$name = $routing->addRoute($pattern, $opts, $parent);\n\t\t\tif(!isset($opts['name']) || $opts['name'] !== $name) {\n\t\t\t\t$this->unnamedRoutes[$name] = true;\n\t\t\t}\n\t\t\tif($route->has('routes')) {\n\t\t\t\t$this->parseRoutes($routing, $route->get('routes'), $name);\n\t\t\t}\n\t\t}\n\t}", "public function buildRoute( $object )\n {\n $router = app('router');\n $method = isset( $object[ 'method' ] ) ? $object[ 'method' ] : 'get';\n $router->match( $method, $object['uri'], $object );\n }", "public function & GetRouter ();", "public function getRouteParams();", "public function register_routes() {\n\n\t\t\\add_filter( 'do_parse_request', array( $this, 'handle_routing' ) );\n\n\t}", "public function parseRoute($route) {\n\t\tif ($route) {\n\t\t\t$request = explode('/',$route);\n\t\t\tif (is_array($request)) {\n\t\t\t\t$request_type = array_shift($request);\n\t\t\t\t$request_options = $request;\n\t\t\t\tif ($request_type == 'writing') {\n\t\t\t\t\t$request_type = 'view';\n\t\t\t\t}\n\n\t\t\t\t$use_json = false;\n\t\t\t\t// test for JSON request\n\t\t\t\tif ($request_options) {\n\t\t\t\t\tif (count($request_options)) {\n\t\t\t\t\t\tif (strpos($request_options[0],'.json')) {\n\t\t\t\t\t\t\t// found a trailing.json\n\t\t\t\t\t\t\t$request_options[0] = str_replace('.json','',$request_options[0]);\n\t\t\t\t\t\t\t$use_json = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (strpos($request_type,'.json')) {\n\t\t\t\t\t\t// found a trailing.json\n\t\t\t\t\t\t$request_type = str_replace('.json','',$request_type);\n\t\t\t\t\t\t$use_json = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($use_json) {\n\t\t\t\t\t$this->setJSONHeaders();\n\t\t\t\t}\n\n\t\t\t\treturn array(\n\t\t\t\t\t\"type\" => $request_type,\n\t\t\t\t\t\"options\" => $request_options,\n\t\t\t\t\t\"json\" => $use_json\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private function loadRoutes() {\n $routesJson = file_get_contents('config/routing.json');\n $routesArray = json_decode($routesJson, true);\n\n foreach ($routesArray as $routeElement) {\n $route = new Route($routeElement['route'], array(\n 'controller' => $routeElement['controller'],\n 'action' => $routeElement['action']\n ));\n $this->routeCollection->add($routeElement['name'], $route);\n }\n }", "public static function parseRouter(array|null $router = [], string $prefix = \"/\", array $methodsAllowed = self::METHODS):array {\n\n # Prepare result\n $result = [];\n\n # Check patterns\n if(\n $router === null ||\n empty($router) ||\n !isset($router[\"patterns\"]) || \n empty($router[\"patterns\"])\n )\n\n # Stop function\n return $result;\n\n # Prepare prefix\n $prefix = trim($prefix, \"/\");\n\n # Check methods\n if(!isset($router[\"methods\"]) || empty($router[\"methods\"]))\n\n # Set get\n $router[\"methods\"] = [\"GET\"];\n\n # Check router is array\n if(!is_array($router[\"methods\"])) $router[\"methods\"] = [$router[\"methods\"]];\n\n # Iteration of methods\n foreach($router[\"methods\"] as $method){\n\n # Check current router\n if(!in_array(strtoupper($method), $methodsAllowed))\n\n # Continue iteration\n continue;\n\n # Check patterns is array\n if(!is_array($router[\"patterns\"])) \n $router[\"patterns\"] = [$router[\"patterns\"]];\n\n # Iteration of patterns\n foreach($router[\"patterns\"] as $pattern){\n\n # Set and/or clear data \n $data = [];\n\n # Clean pattern\n $pattern = trim($pattern, \"/\");\n\n # Fill name in data\n if(!isset($router[\"name\"]) || empty($router[\"name\"]))\n\n # New Exception\n throw new CrazyException(\n \"Name is missing in router given \\\"\".json_encode($router).\"\\\"\",\n 500,\n [\n \"custom_code\" => \"router-001\",\n ]\n );\n\n else\n\n # Fill name\n $data[\"name\"] = $router[\"name\"];\n\n # Fill controller in data\n if(!isset($router[\"controller\"]) || empty($router[\"controller\"]))\n\n # New Exception\n throw new CrazyException(\n \"Controller class is missing in router given \\\"\".json_encode($router).\"\\\"\",\n 500,\n [\n \"custom_code\" => \"router-002\",\n ]\n );\n\n else\n\n # Fill controller\n $data[\"controller\"] = $router[\"controller\"].\"::\".$method;\n\n # Fill pattern\n $data[\"pattern\"] = (isset($router[\"prefix\"])) ?\n (\n $router[\"prefix\"] ?\n \"/\".trim($router[\"prefix\"], \"/\").\"/$pattern/\" :\n \"/$pattern/\"\n\n ) :\n \"/$prefix/$pattern/\";\n\n # Check if not double //\n $data[\"pattern\"] = str_replace(\"//\", \"/\", $data[\"pattern\"]);\n\n # Fill method\n $data[\"method\"] = strtoupper($method);\n\n # Fill type\n $data[\"type\"] = \"router\";\n\n # Push data in result\n $result[] = $data;\n\n }\n\n }\n\n # Return result\n return $result;\n\n }", "public function loadRoutes()\r\n {\r\n $serverPHPSelf = filter_input(INPUT_SERVER, 'PHP_SELF');\r\n $serverPHPRequest = filter_input(INPUT_SERVER, 'REQUEST_URI');\r\n $selfPart = substr($serverPHPSelf, 0, strrpos($serverPHPSelf, '/') + 1);\r\n $requestUri = str_replace($selfPart, '', $serverPHPRequest);\r\n $queryPos = strpos($requestUri, '?');\r\n $request = $queryPos !== false ? substr($requestUri, 0, strpos($requestUri, '?')) : $requestUri;\r\n $this->request = (substr($request, -1) === '/') ?\r\n substr($request, 0, -1) : $request;\r\n if ($request === 'routes/update') {\r\n $this->updateRoutes();\r\n exit;\r\n } else if (file_exists(self::ROUTES_PATH)) {\r\n $this->routes = json_decode(file_get_contents(self::ROUTES_PATH));\r\n $this->patterns = array_keys(get_object_vars($this->routes));\r\n return $this;\r\n } else {\r\n throw new \\Exception('Routes file do not exists. Please, run routes/update.');\r\n }\r\n }", "public function getRoutes() : array;", "public function getRoutes() : array;", "public function getRoute()\n {\n }", "function findRoute()\r\n{\r\n\t// --------- GLOBALIZE ---------\r\n\tglobal $route;\r\n\t// ------ CONVERT TO INTEGER ------\r\n\t$P1 = intval(GET_INC('p1'));\r\n\t$P2 = intval(GET_INC('p2'));\r\n\t$P2n = GET_INC('p2name');\r\n\t$city = GET_INC('city');\r\n\t// ------- FIND ROUTE -------\r\n\t$route->findRoute($P1,$P2,$city);\r\n\t$route->nature($P2n);\r\n\t// ------- OUTPUT RESULT -------\r\n\tfor ( $i=1;$i<=$route->num;$i++ )\r\n\t{\r\n\t\t// Split with Dollar Sign\r\n\t\tif ( $i != 1 )\r\n\t\t\techo '$$$';\r\n\t\techo $route->nat[$i];\r\n\t}\r\n}", "function defineRoutes(&$router) {\n \n // Main\n $router->map('mobile_access', 'm', array('controller' => 'mobile_access', 'action' => 'index'));\n \n $router->map('mobile_access_login', 'm/login', array('controller' => 'mobile_access_auth', 'action' => 'login'));\n $router->map('mobile_access_logout', 'm/logout', array('controller' => 'mobile_access_auth', 'action' => 'logout'));\n $router->map('mobile_access_forgot_password', 'm/forgot-password', array('controller' => 'mobile_access_auth', 'action' => 'forgot_password'));\n \n // Quick Add\n $router->map('mobile_access_quick_add', 'm/starred', array('controller' => 'mobile_access', 'action' => 'quick_add'));\n \n // Assignments\n $router->map('mobile_access_assignments', 'm/assignments', array('controller' => 'mobile_access', 'action' => 'assignments'));\n \n // Starred\n $router->map('mobile_access_starred', 'm/starred', array('controller' => 'mobile_access', 'action' => 'starred'));\n \n // People\n $router->map('mobile_access_people', 'm/people', array('controller' => 'mobile_access_people', 'action' => 'index'));\n $router->map('mobile_access_view_company', 'm/people/:object_id', array('controller' => 'mobile_access_people', 'action' => 'company'), array('object_id' => '\\d+'));\n $router->map('mobile_access_view_user', 'm/people/users/:object_id', array('controller' => 'mobile_access_people', 'action' => 'user'), array('object_id' => '\\d+'));\n \n \n // Projects\n $router->map('mobile_access_projects', 'm/projects', array('controller' => 'mobile_access_projects', 'action' => 'index'));\n \n // Project\n $router->map('mobile_access_view_project', 'm/project/:project_id', array('controller' => 'mobile_access_project', 'action' => 'index'), array('project_id' => '\\d+'));\n \n // Project discusions\n $router->map('mobile_access_view_discussions', 'm/project/:project_id/discussions', array('controller' => 'mobile_access_project_discussions', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_discussion', 'm/project/:project_id/discussions/:object_id', array('controller' => 'mobile_access_project_discussions', 'action' => 'view'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n \n // Project milestones\n $router->map('mobile_access_view_milestones', 'm/project/:project_id/milestones', array('controller' => 'mobile_access_project_milestones', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_milestone', 'm/project/:project_id/milestones/:object_id', array('controller' => 'mobile_access_project_milestones', 'action' => 'view'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n \n // Project files\n $router->map('mobile_access_view_files', 'm/project/:project_id/files', array('controller' => 'mobile_access_project_files', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_file', 'm/project/:project_id/files/:object_id', array('controller' => 'mobile_access_project_files', 'action' => 'view'), array('project_id' => '\\d+', 'object_id' => '\\d+')); \n \n // Project checklists\n $router->map('mobile_access_view_checklists', 'm/project/:project_id/checklists', array('controller' => 'mobile_access_project_checklists', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_checklist', 'm/project/:project_id/checklists/:object_id', array('controller' => 'mobile_access_project_checklists', 'action' => 'view'), array('project_id' => '\\d+', 'object_id' => '\\d+')); \n \n // Project pages\n $router->map('mobile_access_view_pages', 'm/project/:project_id/pages', array('controller' => 'mobile_access_project_pages', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_page', 'm/project/:project_id/pages/:object_id', array('controller' => 'mobile_access_project_pages', 'action' => 'view'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('mobile_access_view_page_version', 'm/project/:project_id/pages/:object_id/version/:version', array('controller' => 'mobile_access_project_pages', 'action' => 'version'), array('project_id' => '\\d+', 'object_id' => '\\d+', 'version' => '\\d+'));\n \n // Project tickets\n $router->map('mobile_access_view_tickets', 'm/project/:project_id/tickets', array('controller' => 'mobile_access_project_tickets', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_ticket', 'm/project/:project_id/tickets/:object_id', array('controller' => 'mobile_access_project_tickets', 'action' => 'view'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n \n // Project timerecords\n $router->map('mobile_access_view_timerecords', 'm/project/:project_id/timerecords', array('controller' => 'mobile_access_project_timetracking', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('mobile_access_view_timerecord', 'm/project/:project_id/timerecords/:object_id', array('controller' => 'mobile_access_project_timetracking', 'action' => 'index'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n \n // Project subobjects\n $router->map('mobile_access_view_task', 'm/project/:project_id/task/:object_id', array('controller' => 'mobile_access', 'action' => 'view_parent_object'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('mobile_access_view_comment', 'm/project/:project_id/comment/:object_id', array('controller' => 'mobile_access', 'action' => 'view_parent_object'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('mobile_access_add_comment', 'm/project/:project_id/comment/add', array('controller' => 'mobile_access_project', 'action' => 'add_comment'));\n \n // Common\n $router->map('mobile_access_view_category', 'm/category/:object_id', array('controller' => 'mobile_access', 'action' => 'view_category', array('object_id' => '\\d+')));\n $router->map('mobile_access_toggle_object_completed_status', 'm/project/:project_id/toggle-completed/:object_id', array('controller' => 'mobile_access', 'action' => 'toggle_completed', array('project_id' => '\\d+', 'object_id' => '\\d+')));\n }", "function ClubDataParseRoute($segments)\n{\n\t$app = JFactory::getApplication();\n\t$router = new ClubDataRouter($app, $app->getMenu());\n\n\treturn $router->parse($segments);\n}", "public function __construct(){\n $this->findRoute();\n }", "public static function routes(): void\n {\n //\n }", "protected function init() {\n\t\t$routes = $this->routePluginManager;\n\t\tforeach ( array (\n\t\t\t\t'hostname' => __NAMESPACE__ . '\\Hostname',\n\t\t\t\t'literal' => __NAMESPACE__ . '\\Literal',\n\t\t\t\t'part' => __NAMESPACE__ . '\\Part',\n\t\t\t\t'regex' => __NAMESPACE__ . '\\Regex',\n\t\t\t\t'scheme' => __NAMESPACE__ . '\\Scheme',\n\t\t\t\t'segment' => __NAMESPACE__ . '\\Segment',\n\t\t\t\t'wildcard' => __NAMESPACE__ . '\\Wildcard',\n\t\t\t\t'query' => __NAMESPACE__ . '\\Query',\n\t\t\t\t'method' => __NAMESPACE__ . '\\Method' \n\t\t) as $name => $class ) {\n\t\t\t$routes->setInvokableClass ( $name, $class );\n\t\t}\n\t\t;\n\t}", "private static function loadRoutes() {\n\t\t\t$appRoutesJson = file_get_contents(JIAOYU_PROJECT_HOME.\"/app/conf/routes.json\");\n\t\t\ttry {\n\t\t\t\t$appRoutes = JsonUtils::decode($appRoutesJson);\n\t\t\t} catch (JsonException $e) {\n\t\t\t\tthrow new ConfigurationException(\"Error initializing app routes: \".$e->getMessage());\n\t\t\t}\n\n\t\t\t// Each json object in the array represents a route, so we should build them up\n\t\t\t// from the data.\n\t\t\tforeach ($appRoutes as $rawRoute) {\n\t\t\t\tself::$routes[] = Route::buildFromJson($rawRoute);\n\t\t\t}\n\t\t}", "public function getRouteInfo()\r\n {\r\n $rawRoutes = $this->getRoutes();\r\n $routes = array();\r\n foreach ($rawRoutes as $route => $params){\r\n $defaults = $params->getDefaults();\r\n if (isset($defaults['_controller']))\r\n {\r\n $controllerAction = explode(':', $defaults['_controller']);\r\n $controller = $controllerAction[0];\r\n $action = isset($controllerAction[2]) ? $controllerAction[2] : $controllerAction[1];\r\n\r\n if (!isset($routes[$controller])) {\r\n $routes[$controller] = array();\r\n }\r\n\r\n $routes[$controller][$action] = array(\r\n 'route' => $route,\r\n 'controller' => $controller,\r\n 'action' => $action,\r\n );\r\n }\r\n }\r\n return $routes;\r\n }", "public function findRoutes() {\n $positions = $this->starts();\n\n foreach ($positions as $index => $position) {\n $this->getValidRoutes($position);\n }\n\n return $this->routes;\n }", "function getRouteParameters();", "public function getRouter();", "public function getRoutes() {\n \treturn $this->routes;\n }", "public function route() {\n\t\t// Start the profiler\n\t\tProfiler::register('Core', 'Router');\n\n\t\t// First, let's look at the URL the user supplied\n\t\t$requestUrl = array_values(array_filter(explode('/', Request::getUrl())));\n\t\t$requestRoute = null;\n\n\t\t// Loop over each route and test to see if they are valid\n\t\tforeach (self::$_routes as $route) {\n\t\t\tif ($this->routeTest($requestUrl, $route)) {\n\t\t\t\t$requestRoute = $route;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// We have completed the route matching\n\t\t// Finish the setup of the request object\n\t\tProfiler::register('Core', 'Request');\n\t\tif ($requestRoute) {\n\t\t\t$_GET['controller'] = $route->endpoint['controller'];\n\t\t\t$_GET['action'] = $route->endpoint['action'];\n\t\t\tRequest::setUrlFragments(str_replace($this->_routePath, '', Request::getUrl()));\n\t\t} else {\n\t\t\tRequest::setUrlFragments(Request::getUrl(), true);\n\t\t}\n\t\tProfiler::deregister('Core', 'Request');\n\n\t\t// Inform the event listener a request has been initialised\n\t\tEvent::trigger(\n\t\t\t'initRequest',\n\t\t\tarray(\n\t\t\t\t'controller' => Request::get('controller'),\n\t\t\t\t'action' => Request::get('action')\n\t\t\t)\n\t\t);\n\n\t\t// And stop the profiler\n\t\tProfiler::deregister('Core', 'Router');\n\t\tProfiler::deregister('Core', 'Front');\n\n\t\t// And dispatch\n\t\tDispatcher::loadController(\n\t\t\tRequest::get('controller'),\n\t\t\tRequest::get('action')\n\t\t);\n\t}", "function routes_poputi(){\n\n\n $routes[] = array(\n '_uri' => '/^poputi\\/v([0-9]+).html$/i',\n 'do' => 'read_v',\n 1 => 'id'\n );\n\t\t\t\t\t\t \n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/published([0-9]+).html$/i',\n 'do' => 'published',\n 1 => 'id'\n );\n\t\t\n\t\t\n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/status([0-9]+)-([0-9]+).html$/i',\n 'do' => 'status',\n 1 => 'id',\n 2 => 'st'\n );\n\t\t\n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/depub([0-9]+).html$/i',\n 'do' => 'depublished',\n 1 => 'id'\n );\n\t\t\n $routes[] = array(\n '_uri' => '/^poputi\\/p([0-9]+).html$/i',\n 'do' => 'read_p',\n 1 => 'id'\n );\n\t\t\t\t\t\t \n $routes[] = array(\n '_uri' => '/^poputi\\/del([0-9]+).html$/i',\n 'do' => 'delprof',\n 1 => 'id'\n );\n\n $routes[] = array(\n '_uri' => '/^poputi\\/add.html$/i',\n 'do' => 'add'\n );\n\t\t\n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/edit([0-9]+).html$/i',\n 'do' => 'edit',\n\t\t\t\t\t\t\t1\t\t=> 'id'\n );\n\t\t\n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/search$/i',\n 'do' => 'search'\n );\n\t\t\n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/drivers\\/([0-9]+)$/i',\n 'do' => 'drivers',\n\t\t\t\t\t\t\t1\t\t=> 'page'\n );\n\t\t\t\t\t\t \n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/passenger\\/([0-9]+)$/i',\n 'do' => 'passenger',\n\t\t\t\t\t\t\t1\t\t=> 'page'\n );\n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/drivers$/i',\n 'do' => 'drivers'\n );\n\t\t\t\t\t\t \n\t\t$routes[] = array(\n '_uri' => '/^poputi\\/passenger$/i',\n 'do' => 'passenger'\n );\n\n return $routes;\n\n }", "Function getAllRoutes()\n\t{\n\t\t$sql = \"SELECT * FROM route\";\n\t\t$result = $this->conn->query($sql);\n\t\tif ($result->num_rows > 0) {\n\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t$routes[] = new Route($row['start_point'], $row['end_point'], $row['route_id'], $row['route_name'], $row['distance'], $row['duration']);\n\t\t\t}\n\t\t\treturn $routes;\n\t\t} else {\n\t\t\treturn [];\n\t\t}\n\t}", "public static function requestRoutes(){\n $curl = curl_init('https://api-v3.mbta.com/routes');\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); \n $result = curl_exec($curl);\n curl_close($curl);\n return json_decode($result);\n }", "public function initialize()\n {\n $configs = \\Phpfox::get('router.provider')->loadConfigs();\n\n $this->phrases = $configs['phrases'];\n\n foreach ($configs['chains'] as $v) {\n\n if (!isset($v['chain'])) {\n throw new InvalidArgumentException(var_export($v, 1));\n }\n $key = $v['chain'];\n unset($v['chain']);\n if (!isset($this->routes[$key])) {\n $this->routes[$key] = new Routing($key, null);\n }\n $this->routes[$key]->chain($this->build($v));\n }\n\n foreach ($configs['routes'] as $key => $v) {\n if (strpos($key, '.')) {\n list($group) = explode('.', $key, 2);\n $this->routes[$group]->add(new Routing($key, $this->build($v)));\n } else {\n $this->routes[$key] = new Routing($key, $this->build($v));\n }\n }\n }", "function parseRoutes($url_parts) {\n\n // turn the segment array into a URI string\n $uri = implode('/', $url_parts);\n\n // is there a literal match? If so we're done\n if (isset($this->routes[$uri]))\n {\n return explode('/', $this->routes[$uri]);\n }\n\n // loop through the route array looking for wild-cards\n foreach ($this->routes as $key => $val)\n {\n // convert wild-cards to regex\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // does the regex match?\n if (preg_match('#^'.$key.'$#', $uri))\n {\n // do we have a back-reference?\n if (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n\n return explode('/', $val);\n }\n }\n\n // match not found, default route returned\n return $url_parts;\n }", "private function searchRouter($routes) \n {\n foreach ($routes as $route) {\n if($route['controller'] === null) continue;\n\n if (!preg_match_all('#^' . $route['request'] . '$#', $this->request, $matches, PREG_OFFSET_CAPTURE))\n continue;\n // retrabalhando matches\n $matches = array_slice($matches, 1);\n\n // parametros\n $params = array_map(function ($match, $index) use ($matches) {\n\n if (isset($matches[$index + 1]) && isset($matches[$index + 1][0]) && is_array($matches[$index + 1][0])) {\n return trim(substr($match[0][0], 0, $matches[$index + 1][0][1] - $match[0][1]), '/');\n } else {\n return (isset($match[0][0]) ? trim($match[0][0], '/') : null);\n }\n }, $matches, array_keys($matches));\n\n $route['params'] = $params;\n return $route;\n }\n //não existe rotas\n return false;\n }", "private function getRoutes()\r\n\t{\r\n\t\t$this->info('Loading Api routes...');\r\n\r\n\t\tif (config('openapischemas.router') === 'laravel') {\r\n\t\t\treturn Route::getRoutes();\r\n\t\t} else {\r\n\t\t\treturn app('Dingo\\Api\\Routing\\Router')->getRoutes()[config('openapischemas.routes_prefix')];\r\n\t\t}\r\n\t}", "function SimulationParseRoute($segments)\n{\n\t$vars = array();\n\n\t//Get the active menu item.\n\t$app\t= JFactory::getApplication();\n\t$menu\t= $app->getMenu();\n\t$item\t= $menu->getActive();\n\t$params = JComponentHelper::getParams('com_content');\n\t$advanced = $params->get('sef_advanced_link', 0);\n\t$db = JFactory::getDBO();\n\n\t// Count route segments\n\t$count = count($segments);\n\n\t// Standard routing for articles. If we don't pick up an Itemid then we get the view from the segments\n\t// the first segment is the view and the last segment is the id of the article or category.\n\t//if (!isset($item)) {\n\t\t$vars['view']\t= $segments[0];\n\t\t$vars['layout']\t= $segments[1];\n\t\tif($count==1){\n\t\t\t$vars['id'] = 1;\n\t\t}else{\n\t\t$vars['id']\t\t= $segments[2];\n\t\t}\n\n\t\treturn $vars;\n\t//}\n\n\t// if there is only one segment, then it points to either an article or a category\n\t// we test it first to see if it is a category. If the id and alias match a category\n\t// then we assume it is a category. If they don't we assume it is an article\n\tif ($count == 1) {\n\t\t// we check to see if an alias is given. If not, we assume it is an article\n\t\tif (strpos($segments[0], ':') === false) {\n\t\t\t$vars['layout'] = 'prop';\n\t\t\t$vars['id'] = (int) $segments[0];\n\t\t\treturn $vars;\n\t\t}\n\n\t\t//list($id, $alias) = explode(':', $segments[0], 2);\n\n\t}\n\n\treturn $vars;\n}", "public function GetRouteClass ();", "public function route()\n {\n $path = Url::getPath();\n\n // If no routes exist, set 404\n if (count($this->routes) == 0)\n {\n return;\n }\n\n // Check if exact match (cheap)\n if ((isset($this->routes[$path]))\n && (!$this->routes[$path]['is_regex']))\n {\n $this->dispatch($this->routes[$path]);\n exit;\n }\n\n // Loop through all routes and attempt to find a match. (expensive)\n foreach ($this->routes as $i => $route)\n {\n $matches = null;\n\n // If route found\n if (($route['is_regex'])\n && (preg_match($route['match'], $path, $matches)))\n {\n // Remove full match from array list\n array_shift($matches);\n\n $this->dispatch($route, $matches);\n exit;\n }\n }\n }", "private function initRouter()\n {\n $this->di->mapService('core.router', '\\Core\\Router\\Router');\n\n $this->router = $this->di->get('core.router');\n $this->router->setBaseUrl(BASEURL);\n $this->router->setParametersToTarget([\n 'app',\n 'controller',\n 'action'\n ]);\n $this->router->addMatchTypes([\n 'mvc' => '[A-Za-z0-9_]++'\n ]);\n\n // Generic routes\n $routes = [\n 'index' => [\n 'route' => '/[mvc:app]/[mvc:controller]',\n 'target' => [\n 'action' => 'index'\n ]\n ],\n 'action' => [\n 'route' => '/[mvc:app]/[mvc:controller]/[mvc:action]'\n ],\n 'id' => [\n 'route' => '/[mvc:app]/[mvc:controller]/[i:id]?/[mvc:action]'\n ],\n 'child' => [\n 'route' => '/[mvc:app]/[mvc:controller]/[i:id]?/[mvc:action]/of/[i:id_parent]'\n ]\n ];\n\n foreach ($routes as $name => $route) {\n $this->router->map($route['method'] ?? 'GET|POST', $route['route'], $route['target'] ?? [], 'generic.' . $name);\n }\n }", "public function getRoutes() {\r\n \r\n $params = array(\"line\");\r\n \r\n $results = $this->fetch(\"search\", $params);\r\n \r\n $routes = array(); \r\n \r\n foreach ($results as $row) {\r\n if ($row['result']['transport_type'] == \"train\") {\r\n $routes[$row['result']['line_id']] = array(\r\n \"id\" => $row['result']['line_id'],\r\n \"route_id\" => $row['result']['line_id'],\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => $row['result']['line_number'],\r\n \"route_long_name\" => $row['result']['line_name'],\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\",\r\n \"url\" => new Url(sprintf(\"%s/timetables?provider=%s&id=%d\", RP_WEB_ROOT, static::PROVIDER_NAME, $row['result']['line_id']))\r\n );\r\n }\r\n }\r\n \r\n return $routes;\r\n \r\n /*\r\n $routes = array(\r\n array(\r\n \"id\" => 1,\r\n \"route_id\" => 1,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Alamein Line\",\r\n \"route_long_name\" => \"Alamein Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 2,\r\n \"route_id\" => 2,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Belgrave Line\",\r\n \"route_long_name\" => \"Belgrave Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 3,\r\n \"route_id\" => 3,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Craigieburn Line\",\r\n \"route_long_name\" => \"Craigieburn Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 4,\r\n \"route_id\" => 4,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Cranbourne Line\",\r\n \"route_long_name\" => \"Cranbourne Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 6,\r\n \"route_id\" => 6,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Frankston Line\",\r\n \"route_long_name\" => \"Frankston Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 7,\r\n \"route_id\" => 7,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Glen Waverley Line\",\r\n \"route_long_name\" => \"Glen Waverley Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 8,\r\n \"route_id\" => 8,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Hurstbridge Line\",\r\n \"route_long_name\" => \"Hurstbridge Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 9,\r\n \"route_id\" => 9,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Lilydale Line\",\r\n \"route_long_name\" => \"Lilydale Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n ),\r\n array(\r\n \"id\" => 11,\r\n \"route_id\" => 11,\r\n \"agency_id\" => 1,\r\n \"route_short_name\" => \"Pakenham Line\",\r\n \"route_long_name\" => \"Pakenham Line\",\r\n \"route_desc\" => \"\",\r\n \"route_url\" => \"\",\r\n \"route_color\" => \"\",\r\n \"route_text_color\" => \"\"\r\n )\r\n );\r\n */\r\n \r\n printArray($routes);\r\n }", "function match_against_router() {\n\n require_once APP_PATH . '/config/routing.php';\n\n if (isset($routes)) {\n $base_url = $this->get_base_url();\n\n foreach ($routes as $key => $val) {\n if ($key == $base_url) {\n return $val;\n }\n }\n }\n return false;\n }", "public function handleRouting(){\n\t\t$request = ControllerRequest::getInstance();\n\t\t$soapRawRequest = $request->getRawBody();\n\t\t$domDocument = new DOMDocument();\n\t\t$xmlValidation = @$domDocument->loadXML($soapRawRequest);\n\t\tif($xmlValidation==false){\n\t\t\t$soapException = new SoapException('SOAP Envelope mal formado. '.$php_errormsg);\n\t\t\t$soapException->setFaultCode('Sender');\n\t\t\tthrow $soapException;\n\t\t}\n\n\t\tif(isset($_SERVER['HTTP_SOAPACTION'])){\n\t\t\t$soapAction = str_replace(\"\\\"\", \"\", $_SERVER['HTTP_SOAPACTION']);\n\t\t} else {\n\t\t\tif(isset($_SERVER['CONTENT_TYPE'])){\n\t\t\t\tif(preg_match('/action=\"(.+)\"/', $_SERVER['CONTENT_TYPE'], $matches)){\n\t\t\t\t\t$soapAction = $matches[1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new SoapException('No se indicó la acción SOAP a ejecutar');\n\t\t\t}\n\t\t}\n\n\t\t$soapAction = explode('#', $soapAction);\n\t\tforeach($domDocument->getElementsByTagNameNS($soapAction[0], $soapAction[1]) as $domElement){\n\t\t\t$parameters = array();\n\t\t\tforeach($domElement->childNodes as $actionParam){\n\t\t\t\tif($actionParam->nodeType==1){\n\t\t\t\t\t$paramType = $actionParam->getAttributeNS($this->_xmlSchemaNamespace, 'type');\n\t\t\t\t\tif($paramType=='ns2:Map'){\n\t\t\t\t\t\t$parameters[] = $this->_getXSIMap($actionParam);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($paramType=='SOAP-ENC:Array'||$paramType=='enc:Array'){\n\t\t\t\t\t\t\t$parameters[] = $this->_decodeSoapArray($actionParam);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$parameters[] = $this->_decodeXSDType($paramType, $actionParam->nodeValue);\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\tRouter::setAction($soapAction[1]);\n\t\t\tRouter::setParameters($parameters);\n\t\t}\n\t}", "protected function loadRoutes()\n {\n $router = $this->app->make(Router::class);\n\n $router->pattern('url', '.+');\n\n $router->pattern('pageToken', '\\[a-z0-9]+');\n $router->bind('pageToken', function ($token) {\n $repository = $this->app->make(WikiEngine::class)->repository();\n\n $page = $repository->pageByToken($token);\n\n // Throw 404 error if page not found by token\n if ($page === null) {\n abort(404);\n }\n\n return $page;\n });\n\n $router->pattern('userId', '\\d+');\n $router->model('userId', User::class, function () {\n abort(404);\n });\n\n if (!$this->app->make('app')->routesAreCached()) {\n $attributes = [\n 'namespace' => 'ViKon\\\\Wiki\\\\Http\\\\Controller',\n ];\n $router->group($attributes, function () {\n require __DIR__ . '/Http/routes.php';\n });\n }\n }", "private function buildRoutes($route) {\n\t\t$slash_toggle = false;\n\t\n\t\tif($route->getName() == \"route\") {\n\t\t\t\n\t\t\t//Route validation\n\t\t\tif(empty($route['id']))\n\t\t\t\treturn $this->failRoute(\"The ID attribute is missing\",$route);\n\t\t\n\t\t\tif(empty($route['pattern']) && empty($this->current_pattern))\n\t\t\t\treturn $this->failRoute(\"The PATTERN attribute is missing\",$route);\n\t\t\t\n\t\t\tif(empty($route['controller']) && empty($this->parent_class))\n\t\t\t\treturn $this->failRoute(\"The CONTROLLER attribute is missing\",$route);\n\t\t\t\t\n\t\t\tif(empty($route['method']) && empty($this->parent_method))\n\t\t\t\treturn $this->failRoute(\"The METHOD attribute is missing\",$route);\n\t\t\t\t\t\t\n\t\t\tif(!empty($route['pattern'])){\n\t\t\t\t\n\t\t\t\tif(preg_match('{^/.+}', $route['pattern']))\n\t\t\t\t\treturn $this->failRoute(\"The PATTERN attribute must not start with a / \", $route);\n\n\t\t\t\tif(!preg_match(\"%/$%\",$route['pattern'])) {\n\t\t\t\t\t$slash_toggle = true;\n\t\t\t\t\t$route['pattern'] = $route['pattern'] . '/';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->current_pattern[] = (string) $route['pattern'];\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tif(isset($route['method']))\n\t\t\t\t$this->parent_method = (string) $route['method'];\n\t\t\t\t\n\t\t\tif(isset($route['controller']))\n\t\t\t\t$this->parent_class = (string) $route['controller'];\n\t\n\t\t\t//Compile a route if validation passed\n\t\t\t$this->compiled_routes[(string)$route['id']] = array( \"pattern\" => implode(null,$this->current_pattern),\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t \"controller\" => $this->parent_class,\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t \"method\" => $this->parent_method,\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t \"matches\" => $this->matches,\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t \"regex\" => implode(null,$this->current_pattern));\n\t\t\t\n\t\t\t//Now remove the slash again if needs be\t\t\t\t\t\t\t\t \t\t\t \t\t \n\t\t\tif($slash_toggle == true) {\n\t\t\t\t$this->compiled_routes[(string)$route['id']]['pattern'] = rtrim($this->compiled_routes[(string)$route['id']]['pattern'],'/');\n\t\t\t}\n\t\t\t\n\t\t\t//Tag section - works out tags from the pattern to determine how many matches there should be\n\t\t\t$current_tags = $this->tags;\n\t\t\t$tag_count = count($current_tags);\n\t\t\t$temp_tags = array();\n\t\t\tpreg_match_all('%\\{{1}([^{}]+)\\}{1}%', (string) $route['pattern'], $tags);\n\t\t\tif(isset($tags[1])) {\n\t\t\t\tforeach($tags[1] as $key => &$value) {\n\t\t\t\t\t$temp_tags[$key+$tag_count] = $value;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$this->tags = array_merge($this->tags,array_flip($temp_tags));\n\t\t\t}\n\t\t\t\n\t\t\t//Recurse through the matches\n\t\t\tforeach($route->match as $match) {\n\t\t\t\tif($match->getName() == \"match\") {\n\t\t\t\t\tif(empty($match['name'])) {\n\t\t\t\t\t\t$this->failMatch(\"The NAME attribute must be set\",$match);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(empty($match[0])) {\n\t\t\t\t\t\t$this->failMatch(\"The TEXT value must be set\",$match);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(@preg_match(\"%\".$match[0].\"%\", \"\") === false) {\n\t\t\t\t\t\t$this->failMatch(\"The REGEX is invalid\",$match);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t//If the tag exists add it in to the matches\n\t\t\t\t\tif(isset($this->tags[(string)$match['name']])) {\n\t\t\t\t\t\t$position = $this->tags[(string) $match['name']];\n\t\t\t\t\t\t$this->compiled_routes[(string)$route['id']]['matches'][$position] = \n\t\t\t\t\t\t$this->matches[$position] = array( \"tag\" => (string)$match['name'], \"regex\" => (string)$match[0]);\n\t\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Re-order the keys to fill in any blanks in the matches so that they start at 0\n\t\t\t$this->compiled_routes[(string)$route['id']]['matches'] = array_values($this->compiled_routes[(string)$route['id']]['matches']);\n\t\t\t$this->matches = array_values($this->matches);\n\t\t\t\n\t\t\t\n\t\t\t//Save current patterns/matches here so after child recursion it has a copy before it was modified by the child\n\t\t\t$current_pattern = $this->current_pattern;\n\t\t\t$current_match = $this->matches;\t\t\t\n\t\t\t$this->compiled_routes[(string)$route['id']]['regex'] = $this->createRegularExpression($this->compiled_routes[(string)$route['id']]['pattern'],$this->matches);\n\t\n\t\t\t//Recurse children\n\t\t\tforeach($route->route as $childRoute) {\n\t\t\t\t\n\t\t\t\tif($childRoute->getName() == \"route\") {\n\t\t\t\t\t$this->buildRoutes($childRoute);\n\t\t\t\t}\n\n\t\t\t\t//Reset tags/patterns/matches back to saved values so that inheritance doesnt break peers on the same level\n\t\t\t\t$this->tags = $current_tags;\n\t\t\t\t$this->matches = $current_match; \n\t\t\t\t$this->current_pattern = $current_pattern;\n\t\t\t\t\t\n\t\t\t\tif(!empty($route['method']))\n\t\t\t\t\t$this->parent_method = (string) $route['method'];\n\t\t\t\n\t\t\t\tif(!empty($route['controller']))\n\t\t\t\t\t$this->parent_class = (string) $route['controller'];\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t}", "function defineRoutes(&$router) {\n /*\n * example routers\n * \n * \n */\n //$router->map('modulename', 'modulename', array('controller' => 'modulename', 'action' => 'index'));\n //$router->map('dashboard_modulename', 'dashboard/modulename', array('controller' => 'modulename', 'action' => 'index'));\n //$router->map('modulename_view_project', 'modulename/:project_id/view', array('controller' => 'modulename', 'action' => 'view'), array('project_id' => '\\d+'));\n }", "public function testRoutes()\n\t{\n\t\t$routes = new Routes();\n\n\t\t$result = $routes->process(array('test', 'test'));\n\n\t\t$this->assertEquals('test', $result);\n\t}", "public function onParseRequest()\r\n\t{\r\n\t\tif(!defined('REST_REQUEST'))\r\n\t\t\t$this->registerRoutes();\r\n\t}", "private function loadRoute()\n\t{\n\t\t/*\n\t\t* Se o controller nao for passado por GET,\n\t\t* assume-se como padrão o controller 'IndexController';\n\t\t*/\n\t\t$this->st_controller = isset($_REQUEST['controle']) ? $_REQUEST['controle'] : 'index';\n\t\t\n\t\t/*\n\t\t* Se a action nao for passada por GET,\n\t\t* assume-se como padrão a action 'IndexAction';\n\t\t*/\n\t\t$this->st_action = isset($_REQUEST['acao']) ? $_REQUEST['acao'] : 'index';\n\t}", "public function getNodeRoute();", "public function get_route()\n {\n }", "protected function _route()\r\n\t\t{\r\n\t\t\t((!is_object($this->_route)) ? $this->_route = init_class(ROUTE_NAME) : '');\r\n\t\t}", "public function __construct(){\n\n $this->routes = new \\SplObjectStorage();\n\n }", "private function searchRoute()\r\n {\r\n $currentUrl = self::cleanUrl(self::getCurentUrl());\r\n $activeMethod = self::getActiveMethod();\r\n\r\n foreach (array_reverse($this->routes) as $route) {\r\n if (preg_match('/^'.$route['regex'].'$/', $currentUrl) && $activeMethod === $route['method']) {\r\n $route['active'] = $currentUrl;\r\n return $route;\r\n }\r\n }\r\n }", "protected function _parse_routes(array $segments)\n\t{\n\t\t// Turn the segment array into a URI string\n\t\t$uri = implode('/', $segments);\n\n\t\t// Is there a literal match? If so we're done\n\t\tif (isset($this->routes[$uri]))\n\t\t{\n\t\t\treturn explode('/', $this->routes[$uri]);\n\t\t}\n\n\t\t// Loop through the route array looking for wild-cards\n\t\tforeach ($this->routes as $key => $val)\n\t\t{\n\t\t\t// Convert wild-cards to RegEx\n\t\t\t$key = str_replace(array(':any', ':num'), array('.+', '[0-9]+'), $key);\n\n\t\t\t// Does the RegEx match?\n\t\t\tif (preg_match('#^'.$key.'$#', $uri))\n\t\t\t{\n\t\t\t\t// Do we have a back-reference?\n\t\t\t\tif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$val = preg_replace('#^'.$key.'$#', $val, $uri);\n\t\t\t\t}\n\n\t\t\t\treturn explode('/', $val);\n\t\t\t}\n\t\t}\n\n\t\t// If we got this far it means we didn't encounter a\n\t\t// matching route so we'll return the segments unchanged\n\t\treturn $segments;\n\t}", "protected function routes()\n {\n if ($this->app->routesAreCached()) {\n return;\n }\n\n\n /**\n * Porteiro; Routes\n */\n $this->loadRoutesForRiCa(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'routes');\n }" ]
[ "0.7401408", "0.7218068", "0.70673287", "0.6954263", "0.6932447", "0.6897082", "0.6848692", "0.6770521", "0.6485033", "0.6481818", "0.64623004", "0.64084536", "0.63719916", "0.63162845", "0.6311418", "0.62873656", "0.62836057", "0.6278669", "0.626385", "0.62376565", "0.6230291", "0.6230291", "0.6221577", "0.6182104", "0.61593497", "0.61559606", "0.61559606", "0.61529416", "0.61305195", "0.6121915", "0.611468", "0.6097002", "0.6093024", "0.6073938", "0.60316575", "0.60257196", "0.6024516", "0.6020635", "0.5963897", "0.5961997", "0.59468824", "0.5946738", "0.592474", "0.5897657", "0.5877318", "0.58764637", "0.5875972", "0.58684784", "0.5811114", "0.5795922", "0.57918984", "0.5790785", "0.57709444", "0.5770619", "0.57653207", "0.57645655", "0.57464814", "0.5745422", "0.5745422", "0.57337195", "0.5732233", "0.57258993", "0.5717489", "0.5715997", "0.57142955", "0.57141304", "0.57067627", "0.57035226", "0.56884986", "0.5683218", "0.5680417", "0.56662863", "0.5662004", "0.5657894", "0.5656473", "0.56554383", "0.56522924", "0.5644462", "0.5635432", "0.56354284", "0.5630222", "0.5629095", "0.5609201", "0.56046546", "0.556856", "0.556518", "0.5560751", "0.55558074", "0.5552984", "0.55527824", "0.55459774", "0.55415326", "0.55402064", "0.55390847", "0.55381835", "0.55368114", "0.55262613", "0.55243075", "0.55229276", "0.5522367" ]
0.57732666
52
Display a listing of the resource.
public function index() { $title = $this->title; $blogs = Blog::all(); return view('admin.'.$title.'.index',compact('title','blogs')); }
{ "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() { $title = $this->title; $data = ''; $users = User::all(); return view('admin.'.$title.'.create',compact('title','data','users')); }
{ "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(Request $request) { $validator = Validator::make($request->all(), [ 'title' => 'required|string', 'user_id' => 'required|string', 'date' => 'required|date', 'details' => 'required|string', 'img' => 'image|mimes:jpeg,png,jpg', ]); //image validate if ($validator->passes()) { $model = $request->all(); $model['img'] = $request->img->getClientOriginalName(); $request->img->move(public_path('images/blog'), $model['img']); Blog::create($model); Alert::success('Successfully Updated', 'Success'); }else{ Alert::error('Something went wrong!', 'Oops...'); } return Redirect::to('admin/'.$this->title); }
{ "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) { $title = $this->title; $data = Blog::find($id); $users = User::all(); return view('admin.'.$title.'.edit', compact('title','data','users')); }
{ "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) { $model = $request->all(); $data=Blog::find($model['id']); $data->fill($request->except('img')); if($file = $request->hasFile('img')) { $fullPath = public_path("images/blog/{$data->img}"); if (File::exists($fullPath)) { File::delete($fullPath); } $file = $request->file('img'); $fileName = $file->getClientOriginalName(); $destinationPath = public_path().'/images/blog/' ; $file->move($destinationPath,$fileName); $data->img = $fileName ; } if($data->save()){ Alert::success('Successfully Updated', 'Success'); }else{ Alert::error('Something went wrong!', 'Oops...'); } return Redirect::to('admin/'.$this->title); }
{ "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) { if ($data = Blog::find($id)) { $filename = $data->img; $fullPath = public_path("images/blog/{$data->img}"); if (File::exists($fullPath)) { File::delete($fullPath); } $data->delete($fullPath); Alert::success('The Item was deleted.', 'Congrats'); }else{ Alert::error('Something went wrong!', 'Oops...'); } return Redirect::to('admin/'.$this->title); }
{ "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
Returns a rules checker object that will be used for validating application integrity.
public function buildRules(RulesChecker $rules) { $rules->add($rules->existsIn(['event_id'], 'Events')); $rules->add($rules->existsIn(['sub_event_id'], 'SubEvents')); $rules->add($rules->existsIn(['occurrence_type_id'], 'TypeOccurrences')); $rules->add($rules->existsIn(['local_id'], 'Locals')); $rules->add($rules->existsIn(['cinema_id'], 'Cinemas')); return $rules; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildRules(RulesChecker $rules): RulesChecker\n {\n return $rules;\n }", "private static function rules() : mixed\n {\n return AppContainer::get(Constants::validatorRules);\n }", "protected function getValidatorInstance()\n {\n return app(ValidationFactory::class);\n }", "public function createValidator()\n {\n $validator = Validation::createValidatorBuilder()\n ->setMetadataFactory(new ClassMetadataFactory(new StaticMethodLoader()))\n ->setConstraintValidatorFactory(new ConstraintValidatorFactory($this->app))\n ->setTranslator($this->getTranslator())\n ->setApiVersion(Validation::API_VERSION_2_5)\n ->getValidator();\n\n return $validator;\n }", "public static function getRules()\n {\n return (new static)->getValidationRules();\n }", "protected function getValidationFactory()\n {\n return app('validator');\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn('bucket_category_id', 'BucketCategories'), ['errorField' => 'bucket_category_id']);\n $rules->add($rules->existsIn('tab_id', 'Tabs'), ['errorField' => 'tab_id']);\n $rules->add($rules->existsIn('plugin_id', 'Plugins'), ['errorField' => 'plugin_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn('system_id', 'Systems'), ['errorField' => 'system_id']);\n $rules->add($rules->existsIn('item_id', 'GroupItems'), ['errorField' => 'item_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['school_id'], 'School'), ['errorField' => 'school_id']);\n $rules->add($rules->existsIn(['lehrberuf_id'], 'Lehrberuf'), ['errorField' => 'lehrberuf_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['loja_id'], 'Lojas'), ['errorField' => 'loja_id']);\n $rules->add($rules->existsIn(['usuario_id'], 'Usuarios'), ['errorField' => 'usuario_id']);\n $rules->add($rules->existsIn(['estado_id'], 'Estados'), ['errorField' => 'estado_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker {\n $rules->add($rules->existsIn(['user_account_id'], 'UserAccounts'));\n $rules->add($rules->existsIn(['form_status_id'], 'FormStatuses'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->isUnique(['title']));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['sport_id'], 'Sports'), ['errorField' => 'sport_id']);\n $rules->add($rules->existsIn(['country_id'], 'Countries'), ['errorField' => 'country_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn('specification_group_id', 'SpecificationGroups'), ['errorField' => 'specification_group_id']);\n $rules->add($rules->existsIn('specification_unit_group_id', 'SpecificationUnitGroups'), ['errorField' => 'specification_unit_group_id']);\n\n return $rules;\n }", "public function getValidator(){\n \treturn $this->model->rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['item_sku']));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['external_product_id'], 'ExternalProducts'));\n $rules->add($rules->existsIn(['fulfillment_center_id'], 'FulfillmentCenters'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules) {\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['reseller_id'], 'Resellers'));\n $rules->add($rules->existsIn(['reseller_program_type_id'], 'ResellerProgramTypes'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['product_id'], 'Products'));\n $rules->add($rules->existsIn(['voucher_id'], 'Vouchers'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['fluxoconta_id'], 'Fluxocontas'), ['errorField' => 'fluxoconta_id']);\n $rules->add($rules->existsIn(['fornecedor_id'], 'Fornecedores'), ['errorField' => 'fornecedor_id']);\n $rules->add($rules->existsIn(['cliente_id'], 'Clientes'), ['errorField' => 'cliente_id']);\n $rules->add($rules->existsIn(['lancamento_id'], 'Lancamentos'), ['errorField' => 'lancamento_id']);\n $rules->add($rules->existsIn(['dreconta_id'], 'Drecontas'), ['errorField' => 'dreconta_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['item_id'], 'Items'));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['borrowed_status_id'], 'BorrowedStatus'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['product_code']));\n $rules->add($rules->existsIn(['category_id'], 'Categories'));\n $rules->add($rules->existsIn(['brand_id'], 'Brands'));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n // $rules->add($rules->existsIn(['image_id'], 'Images'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['unit_id'], 'Units'), ['errorField' => 'unit_id']);\n $rules->add($rules->existsIn(['user_id'], 'Users'), ['errorField' => 'user_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['usuario_id'], 'Usuarios'), ['errorField' => 'usuario_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['session_year_id'], 'SessionYears'));\n $rules->add($rules->existsIn(['student_class_id'], 'StudentClasses'));\n $rules->add($rules->existsIn(['stream_id'], 'Streams'));\n $rules->add($rules->existsIn(['parent_id'], 'ParentExamMasters'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->isUnique(['username']));\n $rules->add($rules->isUnique(['email']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['loja_id'], 'Lojas'), ['errorField' => 'loja_id']);\n $rules->add($rules->existsIn(['transportadora_id'], 'Transportadoras'), ['errorField' => 'transportadora_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['email']));\n $rules->add($rules->existsIn(['student_id'], 'Students'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['equipment_type_id'], 'EquipmentTypes'));\n $rules->add($rules->existsIn(['department_id'], 'Departments'));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->isUnique(['block', 'unit_number']), ['errorField' => 'unit_number']);\n $rules->add($rules->existsIn(['unit_type_id'], 'UnitTypes'), ['errorField' => 'unit_type_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['openid']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['test_run_id'], 'TestRuns'));\n $rules->add($rules->existsIn(['stream_id'], 'Streams'));\n $rules->add($rules->existsIn(['parameter_id'], 'Parameters'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\r\n {\r\n $rules->add($rules->existsIn(['committee_id'], 'Committees'));\r\n $rules->add($rules->existsIn(['user_id'], 'Users'));\r\n $rules->add($rules->existsIn(['item_category_id'], 'ItemCategories'));\r\n return $rules;\r\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['module_id'], 'Modules'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['material_type_id'], 'MaterialTypes'));\n $rules->add($rules->existsIn(['professor_id'], 'Professors'));\n $rules->add($rules->existsIn(['course_id'], 'Courses'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['categoria_id'], 'Categorias'));\n $rules->add($rules->existsIn(['usuario_id'], 'Usuarios'));\n// $rules->add($rules->existsIn(['empresa_id'], 'Empresas'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['asset_number']));\n $rules->add($rules->existsIn(['warehouse_id'], 'Warehouses'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->isUnique(['email']), ['errorField' => 'email']);\n $rules->add($rules->isUnique(['name']), ['errorField' => 'name']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules) {\n $rules->add($rules->existsIn(['module_id'], 'Modules'));\n $rules->add($rules->existsIn(['module_action_group_id'], 'ModuleActionGroups'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\r\n {\r\n $rules->add($rules->isUnique(['email']));\r\n $rules->add($rules->existsIn(['parent_id'], 'ParentOffices'));\r\n $rules->add($rules->existsIn(['office_level_id'], 'OfficeLevels'));\r\n $rules->add($rules->existsIn(['area_division_id'], 'AreaDivisions'));\r\n $rules->add($rules->existsIn(['area_district_id'], 'AreaDistricts'));\r\n return $rules;\r\n }", "private function getValidator()\n {\n $v = new Validator();\n $v->addRules([\n ['label', 'Label', 'required'],\n ['num_value', 'Number', 'exists type=number'],\n ['comment', 'Comment', 'exists'],\n ]);\n return $v;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['traysize_id'], 'Traysizes'));\n $rules->add($rules->isUnique(['shelf_barcode']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['student_id'], 'Students'));\n $rules->add($rules->existsIn(['meeting_id'], 'Meetings'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['country_id'], 'Countries'));\n $rules->add($rules->existsIn(['price_master_id'], 'PriceMasters'));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['name']));\n $rules->add($rules->existsIn(['expense_type_id'], 'ExpensesTypes'));\n $rules->add($rules->existsIn(['vendor_id'], 'Vendors'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['email']));\n $rules->add($rules->existsIn(['contact_types_id'], 'ContactTypes'));\n $rules->add($rules->existsIn(['clients_id'], 'Clients'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n //$rules->add($rules->isUnique(['email']));\n //$rules->add($rules->existsIn(['state_id'], 'States'));\n\n return $rules;\n }", "public function getValidator();", "public function getValidator();", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['email']));\n $rules->add($rules->existsIn(['empresa_id'], 'Empresas'));\n\n return $rules;\n }", "protected function createValidator() {\n return $this->validator;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['course_id'], 'Courses'));\n $rules->add($rules->existsIn(['professor_id'], 'Professors'));\n $rules->add($rules->existsIn(['semester_id'], 'Semesters'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['zone_id'], 'Zones'), ['errorField' => 'zone_id']);\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['category_id'], 'Categories'));\n $rules->add($rules->existsIn(['series_id'], 'EventSeries'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['budget_item_id'], 'BudgetItems'));\n $rules->add($rules->existsIn(['schedule_id'], 'Schedules'));\n $rules->add($rules->existsIn(['payment_statement_id'], 'PaymentStatements'));\n $rules->add($rules->existsIn(['user_created_id'], 'Users'));\n return $rules;\n }", "protected function getValidationFactory()\n {\n return app('Illuminate\\Contracts\\Validation\\Factory');\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['item_id'], 'Items'));\n $rules->add($rules->existsIn(['unit_id'], 'Units'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['cidade_id'], 'Cidades'));\n $rules->add($rules->existsIn(['cliente_id'], 'Clientes'));\n $rules->add($rules->existsIn(['funcionario_id'], 'Funcionarios'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['username']));\n $rules->add($rules->isUnique(['email']));\n $rules->add($rules->existsIn(['role_id'], 'Roles'));\n $rules->add($rules->existsIn(['auth_role_id'], 'AuthRoles'));\n $rules->add($rules->existsIn(['section_id'], 'Sections'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['listing_id'], 'Listings'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['formula_id'], 'Formulas'));\n $rules->add($rules->isUnique(['hash']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['brand_id'], 'Brands'));\n $rules->add($rules->existsIn(['mobile_model_id'], 'MobileModels'));\n $rules->add($rules->existsIn(['network_id'], 'Networks'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['designation_id'], 'Designations'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n // $rules->add($rules->existsIn(['recipient_id'], 'Recipients'));\n // $rules->add($rules->existsIn(['collector_id'], 'Collectors'));\n // $rules->add($rules->existsIn(['origin_id'], 'Origins'));\n // $rules->add($rules->existsIn(['origin_survey_id'], 'OriginSurveys'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n\t{\n\t\t$rules->add($rules->existsIn(['category_id'], 'Categories'));\n\t\t$rules->add($rules->existsIn(['user_id'], 'Users'));\n\n\t\treturn $rules;\n\t}", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['project_id'], 'Projects'));\n $rules->add($rules->existsIn(['category_id'], 'Categories'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['employee_id'], 'Employees'));\n\n return $rules;\n }", "public static function getRules() \n {\n return self::$rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['usuario_id'], 'Usuarios'));\n $rules->add($rules->existsIn(['cidade_id'], 'Cidades'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['yearly_sample_id'], 'YearlySamples'));\n $rules->add($rules->existsIn(['monthly_sample_id'], 'MonthlySamples'));\n $rules->add($rules->existsIn(['state_id'], 'States'));\n $rules->add($rules->existsIn(['district_id'], 'Districts'));\n $rules->add($rules->existsIn(['dispatch_id'], 'Dispatches'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['domain_id'], 'Domains'));\n $rules->add($rules->existsIn(['theme_id'], 'Themes'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['company_id'], 'Companies'));\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules): RulesChecker\n {\n $rules->add($rules->existsIn(['business_id'], 'Businesses'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n\t{\n\t\t$rules->add($rules->isUnique(['svid']));\n\t\t$rules->add($rules->existsIn(['user_id'], 'Users'));\n\t\t$rules->add($rules->existsIn(['server_id'], 'Servers'));\n\n\t\treturn $rules;\n\t}", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['correo']));\n $rules->add($rules->isUnique(['nombre_usuario']));\n $rules->add($rules->isUnique(['identificacion']));\n $rules->add($rules->existsIn(['roles_id'], 'Roles'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['company_id'], 'Companies'));\n $rules->add($rules->existsIn(['company_member_type_id'], 'CompanyMemberTypes'));\n $rules->add($rules->existsIn(['master_financial_year_id'], 'MasterFinancialYears'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['route_id'], 'Routes'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n //$rules->add($rules->existsIn(['softland_id'], 'Softlands'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['id']));\n $rules->add($rules->existsIn(['category_id'], 'Categories'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['email']));\n $rules->add($rules->existsIn(['role_id'], 'Roles'));\n $rules->add($rules->existsIn(['member_type_id'], 'MemberTypes'));\n $rules->add($rules->existsIn(['turn_over_id'], 'TurnOvers'));\n $rules->add($rules->existsIn(['social_id'], 'Socials'));\n $rules->add($rules->existsIn(['fb_user_id'], 'FbUsers'));\n\n return $rules;\n }", "public function getValidator()\n\t{\n\t\tif (!is_object($this->_validator)) {\n\t\t\t$validatorClass = $this->xpdo->loadClass('validation.xPDOValidator', XPDO_CORE_PATH, true, true);\n\t\t\tif ($derivedClass = $this->getOption(xPDO::OPT_VALIDATOR_CLASS, null, '')) {\n\t\t\t\tif ($derivedClass = $this->xpdo->loadClass($derivedClass, '', false, true)) {\n\t\t\t\t\t$validatorClass = $derivedClass;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($profitClass = $this->getOption('mlmsystem_handler_class_profit_validator', null, '')) {\n\t\t\t\tif ($profitClass = $this->xpdo->loadClass($profitClass, $this->getOption('mlmsystem_core_path', null, MODX_CORE_PATH . 'components/mlmsystem/') . 'handlers/validations/', false, true)) {\n\t\t\t\t\t$validatorClass = $profitClass;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($validatorClass) {\n\t\t\t\t$this->_validator = new $validatorClass($this);\n\t\t\t}\n\t\t}\n\t\treturn $this->_validator;\n\t}", "private function createValidator()\n {\n // add custom validation rules\n \\Validator::extend('contains_caps',\n function($field, $value, $params)\n {\n return preg_match('#[A-Z]#', $value);\n }\n );\n\n \\Validator::extend('contains_digit',\n function($field, $value, $params)\n {\n return preg_match('#[0-9]#', $value);\n }\n );\n\n // set array of messages for custom rules\n $messages = array(\n 'contains_caps' => ':attribute must contain at least one capital letter.',\n 'contains_digit' => ':attribute must contain at least one numeric digit.'\n );\n\n // set array of rules to use for validation (many are Laravel's built-ins)\n $rules = array(\n 'email' => 'required|email|max:255',\n 'password' => 'required|between:8,50|contains_caps|contains_digit', // password has some \"strength\" requirements\n 'first_name' => 'required|max:50',\n 'last_name' => 'required|max:50',\n 'city' => 'required|max:100',\n 'state' => 'required|max:2',\n 'zip' => 'required|max:20',\n 'biography' => 'required',\n );\n\n $validator = \\Validator::make(\\Input::all(), $rules, $messages);\n\n return $validator;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['exam_master_id'], 'ExamMasters'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['book_email']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['tel']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['public_post_id'], 'PublicPosts'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules) {\n $rules->add($rules->existsIn(['bank_account_id'], 'BankAccounts'));\n $rules->add($rules->existsIn(['org_id'], 'Orgs'));\n $rules->add($rules->existsIn(['branch_id'], 'Branches'));\n $rules->add($rules->existsIn(['bpartner_id'], 'Bpartners'));\n $rules->add($rules->existsIn(['warehouse_id'], 'Warehouses'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['request_id'], 'Requests'));\n $rules->add($rules->existsIn(['resource_id'], 'Resources'));\n $rules->add($rules->existsIn(['service_id'], 'Services'));\n $rules->add($rules->isUnique(['request_id', 'resource_id', 'service_id']));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['decret_id'], 'Decrets'));\n $rules->add($rules->existsIn(['team_id'], 'Teams'));\n $rules->add($rules->existsIn(['expert_id'], 'Experts'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['student_id'], 'Students'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['trip_id'], 'Trips'));\n $rules->add($rules->existsIn(['stop_id'], 'Stops'));\n\n return $rules;\n }", "public function getRule();", "public function buildRules(RulesChecker $rules) {\n $rules->add($rules->existsIn(['post_id'], 'Posts'));\n $rules->add($rules->existsIn(['group_id'], 'Groups'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['uuid']));\n $rules->add($rules->isUnique(['hash']));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules) {\n\t\t$rules->add($rules->isUnique(['token'], 'This token is already in use.'));\n\t\treturn $rules;\n\t}", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->isUnique(['username']));\n //$rules->add($rules->isUnique(['email']));\n $rules->add($rules->existsIn(['role_id'], 'Roles'));\n $rules->add($rules->existsIn(['shop_id'], 'Shops'));\n\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['local_id'], 'Locals'));\n $rules->add($rules->existsIn(['visitor_id'], 'Visitors'));\n $rules->add($rules->existsIn(['football_day_id'], 'FootballDays'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['user_id'], 'Users'));\n $rules->add($rules->existsIn(['driver_id'], 'Drivers'));\n return $rules;\n }", "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['patient_id'], 'Patients'));\n $rules->add($rules->existsIn(['visit_speciality_id'], 'VisitSpecialities'));\n $rules->add($rules->existsIn(['manager_operator_id'], 'ManagerOperators'));\n return $rules;\n }" ]
[ "0.64002764", "0.6388235", "0.6269912", "0.62365985", "0.61949646", "0.60835993", "0.6026187", "0.6018978", "0.60069567", "0.59928614", "0.5965456", "0.59599984", "0.59508055", "0.59508055", "0.58873993", "0.58730704", "0.5868297", "0.58623487", "0.5858684", "0.58502865", "0.5810342", "0.5809366", "0.5797499", "0.5792037", "0.5783656", "0.5779494", "0.5776198", "0.57746404", "0.5773084", "0.57657844", "0.5763785", "0.5761163", "0.5751151", "0.57505834", "0.57488847", "0.57459265", "0.5731485", "0.5731064", "0.57310516", "0.57264614", "0.57244927", "0.5723145", "0.5718952", "0.57188976", "0.57159203", "0.5715783", "0.5708539", "0.5699573", "0.56962603", "0.5695155", "0.5695155", "0.5689127", "0.5684784", "0.5679629", "0.5676285", "0.56696796", "0.5666589", "0.56657934", "0.5665589", "0.5660157", "0.56527734", "0.5652209", "0.56509465", "0.5644195", "0.56439644", "0.56436497", "0.56422406", "0.56414634", "0.5638746", "0.56370264", "0.5636753", "0.5636015", "0.56354463", "0.5632657", "0.5629755", "0.5629399", "0.5627876", "0.562752", "0.5627027", "0.5625028", "0.56245077", "0.5622462", "0.561911", "0.5617463", "0.5616741", "0.56135494", "0.56100655", "0.56057346", "0.56027967", "0.5601096", "0.55962527", "0.5595297", "0.559408", "0.5593285", "0.55892044", "0.55884105", "0.5576925", "0.5573097", "0.5570614", "0.55704814", "0.5570315" ]
0.0
-1
Enqueue public facing scripts
public function enqueue_scripts() { wp_enqueue_script( 'slick-js', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/js/slick.min.js', array( 'jquery' ), '1.8.1', false ); wp_enqueue_script( 'index-js', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/js/index.js', array( 'jquery', 'slick-js' ), '1.0.0', true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enqueueScripts(){}", "private function load_public_scripts() {\n\n\t}", "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}", "public function enqueue_script() {\n wp_enqueue_script('ln-publisher', plugins_url('js/publisher.js', __FILE__), array('jquery'));\n wp_enqueue_style('ln-publisher', plugins_url('css/publisher.css', __FILE__));\n wp_localize_script('ln-publisher', 'LN_publisher', array(\n 'ajax_url' => admin_url('admin-ajax.php'),\n 'charge_url' => !empty($this->options['public_url']) ? $this->options['public_url'] : $this->options['server_url']\n ));\n }", "public function onEnqueueScripts()\n {\n $this->enqueue('front');\n }", "public function queue_scripts() {\n\t\t\tif ( $queue = WPO_WCPDF_Dropbox()->hooks->get_queued_files() ) {\n\t\t\t\twp_register_script(\n\t\t\t\t\t'dropbox-queue',\n\t\t\t\t\tplugins_url( 'js/dropbox-queue.js' , dirname(__FILE__) ),\n\t\t\t\t\tarray( 'jquery', 'thickbox' )\n\t\t\t\t);\n\t\t\t\twp_enqueue_script( 'dropbox-queue' );\n\t\t\t\twp_enqueue_style( 'thickbox' );\n\t\t\t}\n\t\t}", "public function enqueue_public_scripts_and_styles() {\n\t\t//wp_enqueue_style( 'uclacomponentswp-backend-styles', UCLACOMPONENTSWP_PLUGIN_URL . 'core/includes/assets/css/backend-styles.css', array(), UCLACOMPONENTSWP_VERSION, 'all' );\n\t\t//wp_enqueue_script( 'uclacomponentswp-backend-scripts', UCLACOMPONENTSWP_PLUGIN_URL . 'core/includes/assets/js/backend-scripts.js', array(), UCLACOMPONENTSWP_VERSION, false );\n\t\t// wp_localize_script( 'uclacomponentswp-backend-scripts', 'uclacomponentswp', array(\n\t\t// \t'plugin_name' => __( UCLACOMPONENTSWP_NAME, 'ucla-components-for-wp' ),\n\t\t// ));\n\t// Install the UCLA Component library styles\n\twp_enqueue_style( 'ucla-lib-style', 'https://cdn.webcomponents.ucla.edu/1.0.0-beta.16/css/ucla-lib.min.css' );\n\t// Install the UCLA Component Library scripts\n\twp_enqueue_script( 'ucla-lib-script', 'https://s3-us-west-1.amazonaws.com/webcomponents.ucla.edu/public/1.0.0-beta.16/js/ucla-lib-scripts.min.js' );\n\t\n\t}", "public function embed_scripts() {}", "public function enqueue_scripts() {\r\n\r\n\t\t}", "public function onAdminEnqueueScripts()\n {\n $this->enqueue('admin');\n }", "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}", "public function enqueue_scripts() {\n\n\t}", "public function enqueue_scripts()\n\t{\n\t\twp_register_script('peepso-activitystream', $this->plugin_url . 'asset/js/activitystream.js',\n\t\t\tarray('peepso'), PeepSo::PLUGIN_VERSION, TRUE);\n\t}", "function enqueue_scripts() {\n\t\tinclude $this->dir_path . 'scripts.php';\n\t}", "public function enqueue_scripts() {\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/deeppress-public.js', array( 'jquery' ), $this->version, false );\n\n\t}", "function pgm_public_scripts(){\n wp_register_script('ppmguru-mailing-list-js-public',plugins_url('/js/public/ppmguru-mailing-list.js',__FILE__), array('jquery'),'',true);\n wp_enqueue_script('ppmguru-mailing-list-js-public');\n}", "public function enqueue_scripts()\n {\n wp_enqueue_script($this->fast_social_sharing, plugin_dir_url(__FILE__) . 'js/fast-social-sharing-public.js', array( 'jquery' ), $this->version, false);\n }", "public function enqueue_scripts() {\n wp_enqueue_script(\n $this->plugin_name,\n plugin_dir_url( __FILE__ ) . 'js/update-monitor-public.js',\n array('jquery'),\n $this->version,\n false\n );\n }", "public function enqueue_scripts()\n {\n }", "public function enqueue_scripts()\n {\n }", "public function enqueue_scripts()\n {\n }", "public function enqueue_public_scripts_and_styles(){\n\t\twp_enqueue_style('wp_location_public_styles', plugin_dir_url(__FILE__). '/css/wp_location_public_styles.css');\n\t\t\n\t}", "function chabok_enqueue() {\n\tglobal $chabok_options;\n\n\twp_register_script(\n\t\t'chabokpush',\n\t\tCHABOK_URL . 'assets/js/chabokpush.min.js',\n\t\tarray(),\n\t\tCHABOK_VER,\n\t\ttrue\n\t);\n\n\twp_register_script(\n\t\t'chabok',\n\t\tCHABOK_URL . 'assets/js/chabok-init.js',\n\t\tarray( 'chabokpush', 'jquery' ),\n\t\tCHABOK_VER,\n\t\ttrue\n\t);\n\n\twp_enqueue_script( 'chabok' );\n\n\twp_localize_script( 'chabok', 'chabok_params', array(\n\t\t'options' \t\t=> $chabok_options,\n\t\t'xhr_endpoint'\t=> admin_url( 'admin-ajax.php' ),\n\t) );\n}", "public function enqueue_control_scripts()\n {\n }", "function prosody_plugin_queue_scripts ()\n{\n\n wp_enqueue_style(\n 'poem-css',\n plugin_dir_url( __FILE__ ) . 'css/poem.css',\n array(),\n null,\n false\n );\n\n wp_register_script(\n 'handlers.js',\n plugins_url('js/handlers.js', __FILE__),\n array(),\n null,\n true\n );\n // Localize the script to pass in the siteurl\n wp_localize_script('handlers.js', 'WPURLS', array( 'siteurl' => home_url() ));\n wp_enqueue_script( 'handlers.js' );\n}", "function enqueue_script($script_name) {\n static $enqueued_scripts = [];\n\n if ( $enqueued_scripts[ $script_name ] ) return 0;\n\n echo '<script src=\"'.SCRIPTS_JS.$script_name.'\"></script>';\n $enqueued_scripts[] = $script_name;\n \n}", "function smash_enqueue_scripts() {\n\n\tglobal $wp_scripts;\n\n\t$js_assets = smash_get_scripts();\n\n\tforeach ( $js_assets AS $handle => $asset ) {\n\n\t\twp_enqueue_script( $handle, $asset[ 'file' ], $asset[ 'deps' ], $asset[ 'ver' ], $asset[ 'in_footer' ] );\n\n\t\t// checking for localize script args\n\t\tif ( array_key_exists( 'localize', $asset ) && ! empty( $asset[ 'localize' ] ) ) {\n\t\t\tforeach ( $asset[ 'localize' ] as $name => $args ) {\n\t\t\t\twp_localize_script( $handle, $name, $args );\n\t\t\t}\n\t\t}\n\n\t\tif ( array_key_exists( 'data', $asset ) ) {\n\t\t\tforeach ( $asset[ 'data' ] as $key => $value ) {\n\t\t\t\t$wp_scripts->add_data( $handle, $key, $value );\n\t\t\t}\n\t\t}\n\n\t}\n}", "public function embed_scripts()\n {\n }", "public function enqueue_front_end_scripts() {}", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nimiq_Miner_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nimiq_Miner_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( 'nimiq-core', 'http://cdn.nimiq.com/core/nimiq.js');\n\t\twp_enqueue_script( 'nimiq-web', 'http://cdn.nimiq.com/core/web.js');\n\t\twp_enqueue_script( 'nimiq-wasm', 'http://cdn.nimiq.com/core/worker-wasm.js');\n\n\t\twp_register_script( 'nimiq-miner', plugin_dir_url( __FILE__ ) . 'js/nimiq-miner-public.js', array( 'jquery' ), 4, false );\n\n\t\t$localize = array(\n\t\t 'nim_address' => get_option('nim_address'),\n\t\t 'nim_thread_percent' => get_option('nim_thread_percent'),\n\t\t 'nim_disclaimer_bg' => get_option('nim_disclaimer_bg'),\n\t\t 'nim_disclaimer_text_color' => get_option('nim_disclaimer_text_color'),\n\t\t 'nim_disclaimer_text' => get_option('nim_disclaimer_text')\n\t\t);\n\n\t\twp_localize_script( 'nimiq-miner', 'php_vars', $localize );\n\n\t\twp_enqueue_script( 'nimiq-miner' );\n\n\t}", "public function enqueue_scripts()\n {\n }", "function starkers_script_enqueuer() {\n\t\twp_register_script( 'site', get_template_directory_uri().'/js/scripts.min.js', array( 'jquery' ) );\n\t\twp_enqueue_script( 'site' );\n\n\t\twp_register_style( 'screen', get_stylesheet_directory_uri().'/style.css', '', '', 'screen' );\n\t\twp_enqueue_style( 'screen' );\n\t}", "public static function _wp_enqueue_scripts()\n\t{\n\t\tstatic::$has_run = true;\n\n\t\tforeach (static::$scripts as $name => $params) {\n\t\t\tif (!isset($params['url'])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!isset($params['deps'])) $params['deps'] = array();\n\t\t\tif (!isset($params['footer'])) $params['footer'] = true;\n\n\t\t\twp_register_script($name, $params['url'], $params['deps'], $params['version'], $params['footer']);\n\n\t\t\tif (isset($params['localize'])) {\n\t\t\t\twp_localize_script($name, $params['localize']['name'], $params['localize']['data']);\n\t\t\t}\n\n\t\t\tif (isset($params['register_only']) && $params['register_only']) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\twp_enqueue_script($name);\n\t\t}\n\t}", "public function enqueue_scripts() {\n wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/coinqvest.modal.min.js', array('jquery'), $this->version, false);\n\n\t\t$params = array ('ajaxurl' => admin_url('admin-ajax.php' ) );\n\t\twp_enqueue_script('coinqvest_ajax_handle', plugin_dir_url( __FILE__ ) . 'js/coinqvest-frontend-ajax-handler.js', array('jquery'), $this->version, false);\n\t\twp_localize_script('coinqvest_ajax_handle', 'params', $params);\n\t}", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in SpaceAPI_WP_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The SpaceAPI_WP_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/spaceapi-wp-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "function tac_script_enqueuer() {\n\tif ( ! is_admin() ) {\n\t\t// Site.\n\t\twp_register_script( 'tac_main', get_stylesheet_directory_uri() . '/js/main.js', array( 'jquery' ), null, true );\n\t\twp_enqueue_script( 'tac_main' );\n\t};\n}", "public function enqueue_scripts() {\n wp_enqueue_script(\n 'moment',\n plugins_url('includes/moment.min.js', __FILE__),\n array(),\n VSPI_VERSION,\n false\n );\n wp_enqueue_script(\n 'minidaemon',\n plugins_url('includes/mdn-minidaemon.js', __FILE__),\n array(),\n VSPI_VERSION,\n false\n );\n wp_enqueue_script(\n 'vspi-admin',\n plugins_url('includes/vspi-admin.js', __FILE__),\n array('jquery'),\n VSPI_VERSION,\n false\n );\n }", "public function enqueue_scripts() {\n\n\t\t$pointers = array();\n\n\t\tforeach ( $this->pointers as $pointer ) {\n\n\t\t\tif ( current_user_can( $pointer['cap'] ) ) {\n\n\t\t\t\t$pointers[] = $pointer;\n\n\t\t\t}\n\n\t\t}\n\n\t\tif ( ! $pointers ) {\n\n\t\t\treturn;\n\n\t\t}\n\n\t\t$suffix = SCRIPT_DEBUG ? '' : '.min';\n\n\t\twp_enqueue_style( 'wp-pointer' );\n\n\t\twp_enqueue_script( 'wp-pointer' );\n\t\twp_enqueue_script(\n\t\t\t'bb-booster-pointers',\n\t\t\tFL_BUILDER_BOOSTER_URL . \"assets/js/pointers{$suffix}.js\",\n\t\t\tarray( 'jquery', 'wp-pointer' ),\n\t\t\t'0.0.1',\n\t\t\ttrue\n\t\t);\n\n\t\t$js_vars = array(\n\t\t\t'pointers' => $pointers,\n\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php' ),\n\t\t);\n\n\t\twp_localize_script( 'bb-booster-pointers', 'bb_booster', $js_vars );\n\n\t}", "static function enqueue_scripts(){\n\t\tself::include_css();\n\t\tself::include_js();\n\t}", "function enqueue_scripts() {\n\t\twp_enqueue_script( 'post-quick-editor', plugins_url('./dist/post-quick-editor-bundle.js', __FILE__), array(), 'v0.0.1', true );\n\t\twp_localize_script('post-quick-editor', 'wpApiSettings', array(\n\t\t\t'root' => esc_url_raw(rest_url()),\n\t\t\t'nonce' => wp_create_nonce( 'wp_rest' ),\n\t\t));\n\t}", "public function enqueueScripts() {\n\t\t\twp_enqueue_script('jquery');\n//\t\t\twp_enqueue_script('owl', self::asset(\"node_modules/owl.carousel/dist/owl.carousel.min.js\"), ['jquery'], '1.0.0', ' all');\n// wp_enqueue_script('headroom', self::asset(\"node_modules/headroom.js/dist/headroom.min.js\"), ['jquery'], '1.0.0', ' all');\n// wp_enqueue_script('prettyPhoto', self::asset(\"js/vendor/jquery.prettyPhoto.js\"), ['jquery'], '1.0.0', ' all');\n//\t\t\twp_enqueue_script('navigo', self::asset(\"node_modules/navigo/lib/navigo.min.js\"), ['jquery'], '1.0.0', ' all')\\;\n\t\t\twp_enqueue_script('app', self::asset(\"js/app.min.js\"), ['jquery'], '1.0.0', ' all');\n\t\t}", "static public function enqueue() {\r\n\t\t\t/*\r\n\t\t\t * Beta-testers will not have cached scripts!\r\n\t\t\t * Just in case we have to update the plugin prior to launch.\r\n\t\t\t */\r\n\t\t\tif ( defined( 'WPMUDEV_BETATEST' ) && WPMUDEV_BETATEST ) {\r\n\t\t\t\t$script_version = time();\r\n\t\t\t} else {\r\n\t\t\t\t$script_version = self::VERSION;\r\n\t\t\t}\r\n\r\n\t\t\twp_enqueue_style(\r\n\t\t\t\t'wdev-plugin-google_fonts',\r\n\t\t\t\t'https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700|Roboto:400,500,300,300italic',\r\n\t\t\t\tfalse,\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\r\n\t\t\twp_enqueue_style(\r\n\t\t\t\t'wdev-plugin-notice',\r\n\t\t\t\tself::$module_url . 'notice.css',\r\n\t\t\t\tarray( 'wdev-plugin-google_fonts' ),\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\t\t}", "public function enqueue_scripts() {\n\t\t/**\n\t\t * Filters the path to the admin JS script.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param string $path The path to the admin JS script.\n\t\t */\n\t\t$script_path = apply_filters( 'stellarwp/telemetry/' . Config::get_hook_prefix() . 'script_path', $this->get_asset_path() . 'resources/js/scripts.js' );\n\n\t\twp_enqueue_script(\n\t\t\tself::SCRIPT_HANDLE,\n\t\t\t$script_path,\n\t\t\t[ 'jquery' ],\n\t\t\tself::SCRIPT_VERSION,\n\t\t\ttrue\n\t\t);\n\t}", "public function scripts(){\n //Enqueue scripts\n /**\n * wp_enqueue_script('sample-script',$this->directory_uri . '/sample.min.js',array('jquery'),false,false);\n * ...\n * ....\n */\n }", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Fastnetmarketing_Admin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Fastnetmarketing_Admin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/fastnetmarketing-admin-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "function wolf_share_enqueue_scripts() {\n\n\t$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\t$version = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? time() : WS_VERSION;\n\n\t// Styles\n\twp_enqueue_style( 'wolf-share', WS_CSS . '/share' . $suffix . '.css', array(), $version, 'all' );\n\n\t// Scripts\n\twp_enqueue_script( 'wolf-share', WS_JS . '/share' . $suffix . '.js', array( 'jquery' ), $version, true );\n\n\t// Add JS global variables\n\twp_localize_script(\n\t\t'wolf-share', 'WolfShareJSParams', array(\n\t\t\t'ajaxUrl' => admin_url( 'admin-ajax.php' ),\n\t\t)\n\t);\n}", "public function enqueue_scripts () {\n wp_register_script( $this->_token . '-frontend', esc_url( $this->assets_url ) . 'js/script.js', array( 'jquery' ), $this->_version );\n // Localize the script with new data\n\n $url = admin_url('admin-ajax.php');\n wp_localize_script( $this->_token . '-frontend', 'ajax_url', $url );\n wp_enqueue_script( $this->_token . '-frontend' );\n }", "function sherpa_backend_scripts() {\r\n\t\r\n\tsherpa_front_and_backend_scripts();\r\n}", "public function enqueue_scripts() {\n\n\t\t// Setup scripts array\n\t\t$scripts = array();\n\n\t\t// Always pull in jQuery for TinyMCE shortcode usage\n\t\tif ( bbp_use_wp_editor() ) {\n\t\t\t$scripts['bbpress-editor'] = array(\n\t\t\t\t'file' => 'js/editor.js',\n\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t);\n\t\t}\n\n\t\t// Forum-specific scripts\n\t\tif ( bbp_is_single_forum() ) {\n\t\t\t$scripts['bbpress-forum'] = array(\n\t\t\t\t'file' => 'js/forum.js',\n\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t);\n\t\t}\n\n\t\t// Topic-specific scripts\n\t\tif ( bbp_is_single_topic() ) {\n\n\t\t\t// Topic favorite/unsubscribe\n\t\t\t$scripts['bbpress-topic'] = array(\n\t\t\t\t'file' => 'js/topic.js',\n\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t);\n\n\t\t\t// Hierarchical replies\n\t\t\tif ( bbp_thread_replies() ) {\n\t\t\t\t$scripts['bbpress-reply'] = array(\n\t\t\t\t\t'file' => 'js/reply.js',\n\t\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// User Profile edit\n\t\tif ( bbp_is_single_user_edit() ) {\n\t\t\t$scripts['bbpress-user'] = array(\n\t\t\t\t'file' => 'js/user.js',\n\t\t\t\t'dependencies' => array( 'user-query' )\n\t\t\t);\n\t\t}\n\n\t\t// Filter the scripts\n\t\t$scripts = apply_filters( 'BBP_IOA_scripts', $scripts );\n\n\t\t// Enqueue the scripts\n\t\tforeach ( $scripts as $handle => $attributes ) {\n\t\t\tbbp_enqueue_script( $handle, $attributes['file'], $attributes['dependencies'], $this->version, 'screen' );\n\t\t}\n\t}", "function admin_enqueue_script(){\n\t\tglobal $postmec;\n\t\t\n\t\tif($_GET['page'] == 'stores-management'){\n\t\t\twp_enqueue_script('jquery');\n\t\t\twp_enqueue_style( 'thickbox' ); // Stylesheet used by Thickbox\n\t\t\twp_enqueue_script( 'thickbox' );\n\t\t\twp_enqueue_script( 'media-upload' );\n\t\t\twp_register_script('store-media-upload', $postmec->get_postmec_url() . 'js/plugin.media-uploader.js', array('jquery', 'thickbox', 'media-upload'));\n\t\t\twp_enqueue_script('store-media-upload');\n\t\t\n\t\t\t//wp_register_script('media-uploader-activator', $commentbar->get_this_url() . 'js/uploader.activator.js', array('jquery'));\n\t\t\t//wp_enqueue_script('media-uploader-activator');\n\t\t}\n\t}", "function queue_scripts() {\n\n if (!is_admin()) {\n\n // Deregister scripts.\n wp_deregister_script('jquery');\n\n\n // Scripts in header.\n wp_register_script('modernizr-js', get_stylesheet_directory_uri() . '/assets/js/vendor/modernizr-2.7.1.min.js', array(), '2.7.1', false);\n\n\n // Scripts in footer.\n wp_register_script('jquery', get_stylesheet_directory_uri() . '/assets/js/vendor/jquery-1.10.2.min.js', array(), '1.10.2', true);\n wp_register_script('main-js', get_stylesheet_directory_uri() . '/assets/js/main.min.js', array(), '', true);\n\n\n // Queue scripts.\n wp_enqueue_script('modernizr-js');\n // wp_enqueue_script('jquery');\n // wp_enqueue_script('main-js');\n\n }\n}", "function indosEnqueue() {\n global $app_base_url;\n\n\tif(! is_admin()){\n\t wp_register_style('indoshipping_css',$app_base_url.'assets/indoshipping.css');\n\t wp_register_script('indoshipping_js',$app_base_url.'assets/indoshipping.js',array('jquery'));\n\t wp_localize_script('indoshipping_js','indoshipping',array('pluginurl'=>$app_base_url,'ajaxurl'=>admin_url('admin-ajax.php')));\n\t wp_enqueue_style('indoshipping_css');\n\t wp_enqueue_script('indoshipping_js');\n\t}\n}", "private function register_script() {\n\n\t\tif ( $this->inline ) {\n\t\t\twp_register_script(\n\t\t\t\t$this->handle,\n\t\t\t\t'',\n\t\t\t\t$this->deps,\n\t\t\t\t$this->ver,\n\t\t\t\t$this->footer\n\t\t\t);\n\t\t\tif ( $this->does_file_exist( $this->src ) ) {\n\t\t\t\twp_add_inline_script( $this->handle, file_get_contents( $this->src ) );\n\t\t\t}\n\t\t} else {\n\t\t\twp_register_script(\n\t\t\t\t$this->handle,\n\t\t\t\t$this->src,\n\t\t\t\t$this->deps,\n\t\t\t\t$this->ver,\n\t\t\t\t$this->footer\n\t\t\t);\n\t\t}\n\n\t\tif ( ! empty( $this->localize ) ) {\n\t\t\twp_localize_script( $this->handle, $this->handle, $this->localize );\n\t\t}\n\n\t\twp_enqueue_script( $this->handle );\n\t}", "public static function enqueue_scripts() {\n\t\tif ( ! static::$enqueued && wp_script_is( 'cmb2-scripts', 'enqueued' ) ) {\n\t\t\twp_enqueue_script( 'wplibs-form' );\n\t\t\tstatic::$enqueued = true;\n\t\t}\n\t}", "function aitAdminEnqueueScriptsAndStyles()\n{\n\t$mapLanguage = get_locale();\n\taitAddScripts(array(\n\t\t'ait-googlemaps-api' => array(\n\t\t\t\t\t\t\t\t\t //'file' => 'https://maps.google.com/maps/api/js?key=AIzaSyC62AaIu5cD1nwSCmyO4-33o3DjkFCH4KE&sensor=false&amp;language='.$mapLanguage,\n\t\t\t\t\t\t\t\t\t 'file' => 'https://maps.google.com/maps/api/js?key=AIzaSyBL0QWiORKMYd585E4qvcsHcAR1R7wmdiY&sensor=false&amp;language='.$mapLanguage,\n\t\t\t\t\t\t\t\t\t 'deps' => array('jquery')\n\t\t\t\t\t\t\t\t\t ),\n\t\t'ait-jquery-gmap3' => array('file' => THEME_JS_URL . '/libs/gmap3.min.js', 'deps' => array('jquery', 'ait-googlemaps-api')),\n\t));\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 enqueue () {\n\n\t\t$this->add_action ('admin_enqueue_scripts', $this, 'enqueue_files' );\n\t}", "private function dc_define_public_hooks() {\n\n\t\t$plugin_public = new Dorancafe_Public( $this->get_plugin_name(), $this->get_version() );\n\n\t\t$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'dc_enqueue_styles' );\n\t\t$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'dc_enqueue_scripts' );\n\n\t}", "function enqueue_script() {\n\t\twp_enqueue_script( 'aztec-vendors-script', get_stylesheet_directory_uri() . '/assets/vendor.js', [], false, true );\n\t\twp_enqueue_script( 'aztec-script', get_stylesheet_directory_uri() . '/assets/app.js', [ 'aztec-vendors-script', 'jquery' ], false, true );\n\t}", "public function enqueue_scripts() {\n\n\t\tif ($this->js) {\n\t\t\tforeach ($this->js as $js) {\n\t\t\t\t$fileTitle = basename($js['link']);\n\t\t\t\t$fileTitle = str_replace('.js', '', $fileTitle);\n\t\t\t\t$fileTitle = preg_replace(\n\t\t\t\t\t'/[^0-9a-zA-Z]/',\n\t\t\t\t\t\"-\",\n\t\t\t\t\tstr_replace('@', '', $js['package']) . '-' . $fileTitle\n\t\t\t\t);\n\t\t\t\twp_enqueue_script($fileTitle, $js['link'], array(), $js['version']);\n\t\t\t}\n\t\t}\n\t}", "private function define_public_hooks()\n {\n \n $this->loader->add_action('wp_enqueue_scripts','WordPress_Reactro_Public','enqueue_styles');\n $this->loader->add_action('wp_enqueue_scripts','WordPress_Reactro_Public','enqueue_scripts');\n $this->loader->add_action('admin_enqueue_scripts','WordPress_Reactro_Public','enqueue_scripts');\n $this->loader->add_action('admin_enqueue_scripts','WordPress_Reactro_Public','enqueue_styles');\n $this->loader->add_action('wp_footer','WordPress_Reactro_Public','add_popup');\n $this->loader->add_action('admin_footer','WordPress_Reactro_Public','add_popup');\n }", "function aesir_enqueue_files() {\n /**\n * Only load if on the website\n */\n if (!is_admin()) {\n /**\n * Load the styles like this:\n * wp_enqueue_style( $handle, $src, $deps, $ver, $media );\n */\n wp_enqueue_style('main', AESIR_ASSETS_CSS . '/style.css', null, AESIR_CSS_VERSION);\n\n /**\n * Load the scripts like this:\n * wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );\n */\n wp_enqueue_script('main', AESIR_ASSETS_JS . '/build.min.js', array('jquery'), AESIR_JS_VERSION, true);\n }\n}", "protected function enqueue_scripts()\n {\n\n }", "public function register_scripts()\r\n\t{\r\n\t\twp_register_style('poll', plugins_url('assets/poll.css', __DIR__));\r\n\t\twp_register_script('vue', 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js', array('jquery'), null, true);\r\n\t\twp_register_script('poll', plugins_url('assets/poll.js', __DIR__), array('vue'), null, true);\r\n\t}", "function enqueue_embed_scripts()\n {\n }", "public function register_scripts()\n {\n }", "public function addAdminAssets() {\n\t\twp_enqueue_script( 'csframework-admin-upload' );\n\t}", "function airshp_chat_scripts() {\n\twp_enqueue_script( 'airshp_chat_socket.io', 'http://beta.tourgigs.com:8080/socket.io/socket.io.js', array( 'jquery' ), date('Y-m-d').'12', true );\n\t/* \tServe JS page with Admin controls to only users with permissions */\n\tif ( (current_user_can( 'manage_options' ))) {\n\t\twp_enqueue_script( 'airshp_chat_client', AIRSHPCHAT_URL.'clientAdmin.js', array( 'jquery','childscripts' ), date('Y-m-d').'12', true );\n\t} else {\n\t\twp_enqueue_script( 'airshp_chat_client', AIRSHPCHAT_URL.'client.js', array( 'jquery','childscripts' ), date('Y-m-d').'12', true );\n\t}\n}", "function script_enqueuer() {\n wp_register_script( \"generator\", WP_PLUGIN_URL.'/ninja_name_generator/generator.js', array('jquery') );\n wp_localize_script( 'generator', 'name_generator', array( \n \t\t'restURL' => rest_url(),\n \t\t'restNonce' => wp_create_nonce(\"wp_rest\")\n \t));\n\n wp_enqueue_script( 'jquery' );\n wp_enqueue_script( 'generator' );\n\n}", "public function enqueue_edit_scripts() {\n\t}", "function myplugin_public_styles_scripts() {\r\n\r\n wp_enqueue_style( 'myplugin-public-style', MYPLUGIN_URL . 'public/css/public.css', '', rand());\r\n\r\n wp_enqueue_script( 'myplugin-public-script', MYPLUGIN_URL . 'public/js/public.js', array('jquery'), rand(), true );\r\n}", "function mp_enqueue_scripts(){\n\n // Action pour shunter mp_register_style\n do_action('enqueue_scripts');\n\n // On charge les registers\n $enqueue_registers = mp_cache_data('mp_register_script');\n\n if( !empty($enqueue_registers) ){\n\n // On charge les registers\n foreach ($enqueue_registers as $handle => $args)\n mp_enqueue_script($handle);\n }\n\n}", "public function enqueue_js(){\n\n // Enqueue scripts.\n wp_enqueue_script( 'agreable_poll_script', Helper::assetUrl('client.js'), array(), '1.0.0', true );\n\n $this->render_js_vars();\n\n }", "function put_in_queue() {\n wp_enqueue_script('reviewsjs', plugins_url('/assets/js/reviews.js', __FILE__));\n wp_enqueue_style('reviewscss', plugins_url('/assets/css/reviews.css', __FILE__));\n }", "public function enqueue_scripts() {\n\n\t\t\t/**\n\t\t\t * This function is provided for demonstration purposes only.\n\t\t\t *\n\t\t\t * An instance of this class should be passed to the run() function\n\t\t\t * defined in Advanced_Reviews_Pro_Loader as all of the hooks are defined\n\t\t\t * in that particular class.\n\t\t\t *\n\t\t\t * The Advanced_Reviews_Pro_Loader will then create the relationship\n\t\t\t * between the defined hooks and the functions defined in this\n\t\t\t * class.\n\t\t\t */\n\n\t\t\t$ajax_nonce = wp_create_nonce( 'arp-public-js-nonce' );\n\t\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/advanced-reviews-pro-public.js', array( 'jquery' ), $this->version, false );\n\n\t\t\twp_localize_script(\n\t\t\t\t$this->plugin_name, 'wp_vars', array(\n\t\t\t\t\t'security' => $ajax_nonce,\n\t\t\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php' ),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tif ( is_product() && 'on' === arp_get_option( ARP_PREFIX . 'enable_recaptcha_checkbox' ) ) {\n\n\t\t\t\tif ( arp_get_option( ARP_PREFIX . 'recaptcha_site_key_text' ) ) {\n\n\t\t\t\t\twp_enqueue_script( ARP_PREFIX . 'recaptcha_api', 'https://www.google.com/recaptcha/api.js?onload=onloadCallback', array( $this->plugin_name ), $this->version, true );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function adminEnqueueScripts($hook = '') {\n\n if (isset($_GET['page']) && $_GET['page'] == 'vcht-console') {\n global $wpdb;\n\n $settings = $this->getSettings();\n\n wp_register_script($this->_token . '-flat-ui', esc_url($this->assets_url) . 'js/flat-ui-pro.min.js', array(), $this->_version);\n wp_enqueue_script($this->_token . '-flat-ui');\n wp_register_script($this->_token . '-datatable', esc_url($this->parent->assets_url) . 'js/jquery.dataTables.min.js', array(), $this->_version);\n wp_enqueue_script($this->_token . '-datatable');\n wp_register_script($this->_token . '-bootstrap-datatable', esc_url($this->assets_url) . 'js/dataTables.bootstrap.min.js', array($this->_token . '-datatable'), $this->_version);\n wp_enqueue_script($this->_token . '-bootstrap-datatable');\n wp_register_script($this->_token . '-customScrollbar', esc_url($this->assets_url) . 'js/jquery.mCustomScrollbar.concat.min.js', array('jquery'));\n wp_enqueue_script($this->_token . '-customScrollbar');\n wp_register_script($this->_token . '-dropzone', esc_url($this->assets_url) . 'js/dropzone.min.js', array('jquery'));\n wp_enqueue_script($this->_token . '-dropzone');\n wp_register_script($this->_token . '-colpick', esc_url($this->assets_url) . 'js/colpick.min.js', array('jquery'), $this->_version);\n wp_enqueue_script($this->_token . '-colpick');\n wp_register_script($this->_token . '-mousetrap', esc_url($this->assets_url) . 'js/mousetrap.min.js', 'jquery', $this->_version);\n wp_enqueue_script($this->_token . '-mousetrap');\n wp_enqueue_script('media-upload');\n wp_enqueue_script('thickbox');\n wp_register_script($this->_token . '-admin', esc_url($this->assets_url) . 'js/admin.min.js', array('jquery',\n 'jquery-ui-core',\n 'jquery-ui-mouse',\n 'jquery-ui-position',\n 'jquery-ui-droppable',\n 'jquery-ui-draggable',\n 'jquery-ui-resizable',\n 'jquery-ui-sortable',\n 'jquery-effects-core',\n 'jquery-effects-drop',\n 'jquery-effects-fade',\n 'jquery-effects-bounce',\n 'jquery-effects-slide',\n 'jquery-effects-blind'), $this->_version);\n wp_enqueue_script($this->_token . '-admin');\n\n $texts = array(\n 'Yes' => __('Yes', 'WP_Visual_Chat'),\n 'No' => __('No', 'WP_Visual_Chat'),\n 'Online' => __('Online', 'WP_Visual_Chat'),\n 'Offline' => __('Offline', 'WP_Visual_Chat'),\n 'Log in' => __('Log in', 'WP_Visual_Chat'),\n 'Log out' => __('Log out', 'WP_Visual_Chat'),\n 'Drop files to upload here' => __('Drop files to upload here', 'WP_Visual_Chat'),\n 'File is too big (max size: {{maxFilesize}}MB)' => __('File is too big (max size: {{maxFilesize}}MB)', 'WP_Visual_Chat'),\n 'Invalid file type' => __('Invalid file type', 'WP_Visual_Chat'),\n 'You can not upload any more files' => __('You can not upload any more files', 'WP_Visual_Chat'),\n 'Shows an element of the website' => __('Shows an element of the website', 'WP_Visual_Chat'),\n 'remove' => __('Remove', 'WP_Visual_Chat'),\n 'display' => __('Display', 'WP_Visual_Chat'),\n 'search' => __('Search', 'WP_Visual_Chat'),\n 'showingPage' => sprintf(__('Showing page %1$s of %2$s', 'WP_Visual_Chat'), '_PAGE_', '_PAGES_'),\n 'filteredFrom' => sprintf(__('- filtered from %1$s documents', 'WP_Visual_Chat'), '_MAX_'),\n 'noRecords' => __('No documents to display', 'WP_Visual_Chat'),\n 'Do you want to reply ?' => __('Do you want to reply ?', 'WP_Visual_Chat'),\n 'New chat request from' => __('New chat request from', 'WP_Visual_Chat'),\n 'Another operator has already answered' => __('Another operator has already answered', 'WP_Visual_Chat'),\n '[username] stopped the chat' => __('[username] stopped the chat', 'WP_Visual_Chat'),\n 'Current operator' => __('Current operator', 'WP_Visual_Chat'),\n '[username1] tranfers the chat to [username2]' => __('[username1] tranfers the chat to [username2]', 'WP_Visual_Chat'),\n );\n global $wpdb;\n $userID = 0;\n $userWP = wp_get_current_user();\n $rows = $wpdb->get_results(\"SELECT * FROM \" . $wpdb->prefix . \"vcht_users WHERE userID=\" . $userWP->ID);\n $user = array();\n if (count($rows) == 0) {\n $uploadFolderName = md5(uniqid());\n $user = array(\n 'userID' => $userWP->ID,\n 'clientID' => md5(uniqid()),\n 'username' => $userWP->display_name,\n 'email' => $userWP->user_email,\n 'uploadFolderName' => $uploadFolderName,\n 'lastActivity' => date('Y-m-d H:i:s'),\n 'isOnline' => true, 'isOperator' => true,\n 'imgAvatar' => $this->assets_url . 'img/administrator-48.png',\n 'ip' => $_SERVER['REMOTE_ADDR']);\n\n $wpdb->insert($wpdb->prefix . 'vcht_users', $user);\n $user = (object) $user;\n $userID = $wpdb->insert_id;\n } else {\n $userID = $rows[0]->id;\n }\n wp_localize_script($this->_token . '-admin', 'vcht_data', array(\n 'websiteUrl' => get_home_url(),\n 'uploadsUrl' => $this->uploads_url,\n 'assetsUrl' => $this->assets_url,\n 'operatorID' => $user->ID,\n 'trackingDelay' => $settings->trackingDelay,\n 'ajaxCheckDelay' => $settings->ajaxCheckDelay,\n 'allowFilesFromOperators' => $settings->allowFilesFromOperators,\n 'filesMaxSize' => $settings->filesMaxSize,\n 'allowedFiles' => $settings->allowedFiles,\n 'isAdmin' => current_user_can('manage_options'),\n 'enableGeolocalization' => $settings->enableGeolocalization,\n 'userID' => $userID,\n 'enableVisitorsTracking' => $settings->enableVisitorsTracking,\n 'texts' => $texts));\n }\n }", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Plugin_Name_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Plugin_Name_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/drinkers-edition-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "function scripts() {\n\t/**\n\t * Flag whether to enable loading uncompressed/debugging assets. Default false.\n\t *\n\t * @param bool additive_script_debug\n\t */\n\t$debug = apply_filters( 'additive_script_debug', false );\n\t$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n\twp_enqueue_script(\n\t\t'additive',\n\t\tADDITIVE_TEMPLATE_URL . \"/assets/js/additive{$min}.js\",\n\t\tarray(),\n\t\tADDITIVE_VERSION,\n\t\ttrue\n\t);\n}", "function fzproject_register_scripts()\n{\n if (!is_admin()) {\n // register \n wp_register_script('fzproject-script', plugins_url('js/jquery.isotope.min.js', __FILE__), array(\n 'jquery'\n ));\n wp_register_script('fzproject-start', plugins_url('start.js', __FILE__));\n // enqueue \n wp_enqueue_script('fzproject-script');\n wp_enqueue_script('fzproject-start');\n }\n}", "public function registerScripts() {\r\n\t\t$baseUrl = Yii::app()->assetManager->publish(dirname(__FILE__).\"/assets/\".__CLASS__);\r\n\t\tYii::app()->clientScript->registerScriptFile($baseUrl.\"/AFileBrowser.js\");\r\n\t\t\r\n\t}", "public function enqueue() {\n\t\twp_enqueue_script( 'jquery-ui-button' );\n\t}", "function clea_base_enqueue_scripts() {\n\n\t/* Enqueue scripts. */\n\n}", "public \tfunction\tenqueueSite() {\n\t\t\t/**\n\t\t\t * Register styles here.\n\t\t\t */\n\t\t\t\n\t\t\t//Register the public site CSS for FrozenPlugin.\n\t\t\twp_register_style('FrozenPlugin-site-css', plugins_url('css/site.css', __FILE__));\n\t\t\n\t\t\t/**\n\t\t\t * Register scripts here.\n\t\t\t */\n\t\t\t\n\t\t\t//Register the public site JS for FrozenPlugin.\n\t\t\twp_register_script('FrozenPlugin-site-js', plugins_url('js/site.js', __FILE__), array('jquery'));\n\t\t\n\t\t\t/**\n\t\t\t * Enqueue styles here.\n\t\t\t */\n\t\t\t\n\t\t\t//Enqueue the public site CSS. \n\t\t\twp_enqueue_style('FrozenPlugin-site-css');\n\t\t\t\n\t\t\t/**\n\t\t\t * Enqueue scripts here. \n\t\t\t */\n\t\t\t\n\t\t\t//Enqueue the public site JS. \n\t\t\twp_enqueue_script('FrozenPlugin-site-js');\n\t\t}", "public function enqueue_admin_scripts() {\n\n\t\t$advanced_options = get_option( 'spp_player_advanced');\n\t\t$color_pickers = isset( $advanced_options['color_pickers'] ) ? $advanced_options['color_pickers'] : \"true\";\n\t\t\n\t\t// Load the color pickers if the option is true or unset\n\t\tif (\"true\" == $color_pickers) { \n\t\t\t$dependencies = array('jquery', 'wp-color-picker');\n\t\t} else {\n\t\t\t$dependencies = array('jquery');\n\t\t}\n\t\twp_enqueue_script( $this->plugin_slug . '-admin-script',\n\t\t\t\tSPP_ASSETS_URL . 'js/admin-spp.min.js',\n\t\t\t\t$dependencies,\n\t\t\t\tSPP_Core::VERSION );\n\n\t\twp_localize_script( $this->plugin_slug . '-admin-script',\n\t\t\t\t'Smart_Podcast_Player_Admin',\n\t\t\t\tarray('licensed' => SPP_Core::is_paid_version()));\n\t\t\t\t\n\t\twp_localize_script( $this->plugin_slug . '-admin-script',\n\t\t\t\t'smart_podcast_player_user_settings',\n\t\t\t\tget_option( 'spp_player_defaults' ));\n\n\n\t}", "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}", "function admin_print_scripts() {\n wp_enqueue_script( \"{$this->namespace}-admin\" );\n wp_enqueue_script( 'media-upload' );\n wp_enqueue_script( 'slidedeck-fancy-form' );\n wp_enqueue_script( 'codemirror' );\n wp_enqueue_script( 'codemirror-mode-css' );\n wp_enqueue_script( 'codemirror-mode-javascript' );\n wp_enqueue_script( 'codemirror-mode-clike' );\n wp_enqueue_script( 'codemirror-mode-php' );\n }", "public function enqueue_script($name)\n {\n }", "public function enqueue_scripts() {\n\n if ( ! isset( $this->plugin_screen_hook_suffix ) ) {\n return;\n }\n\n $screen = get_current_screen();\n\n if ( $screen->id == $this->plugin_screen_hook_suffix ) {\n\n wp_enqueue_script( 'thickbox' );\n wp_enqueue_style( 'thickbox' );\n wp_enqueue_script( 'media-upload' );\n wp_enqueue_script( 'jquery-ui-datepicker' );\n wp_enqueue_script( 'chartjs', plugin_dir_url( __FILE__ ) . 'js/vendor/Chart.min.js', array(), $this->version );\n wp_enqueue_script( 'wpp-chart', plugin_dir_url( __FILE__ ) . 'js/chart.js', array('chartjs'), $this->version );\n wp_register_script( 'wordpress-popular-posts-admin-script', plugin_dir_url( __FILE__ ) . 'js/admin.js', array('jquery'), $this->version, true );\n wp_localize_script( 'wordpress-popular-posts-admin-script', 'wpp_admin_params', array(\n 'nonce' => wp_create_nonce( \"wpp_admin_nonce\" )\n ));\n wp_enqueue_script( 'wordpress-popular-posts-admin-script' );\n\n }\n\n }", "public function enqueue_scripts() {\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nerd_Wp_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nerd_Wp_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/nerd-wp-admin.js', array( 'jquery' ), $this->version, false );\n\t}", "function scripts() {\n\twp_enqueue_script(\n\t\t'deadpool-main',\n\t\tDIE_TEMPLATE_URL . '/assets/js/dist/main.bundle.js',\n\t\t[],\n\t\tfalse,\n\t\ttrue\n\t);\n}", "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 registerScriptsFrontend() {\n $v = Wpjb_Project::VERSION;\n $p = plugins_url().'/wpjobboard/public/js/';\n \n wp_register_script('wpjb-js', $p.'frontend.js', array(\"jquery\"), $v );\n \n wp_register_script('wpjb-payment', $p.'frontend-payment.js', array(\"jquery\"), $v );\n wp_register_script('wpjb-serialize', $p.'serialize.js', array(), $v, true);\n wp_register_script('wpjb-alert', $p.'frontend-alert.js', array(\"jquery\", \"wp-util\", 'wpjb-serialize'), $v, true);\n wp_register_script('wpjb-manage', $p.'frontend-manage.js', array(\"jquery\"), $v, true);\n wp_register_script('wpjb-manage-apps', $p.'frontend-manage-apps.js', array(\"jquery\"), $v, true);\n \n wp_register_script(\"wpjb-paypal-reply\", $p.\"wpjb-paypal-reply.js\", array(\"jquery\"), $v);\n\n }", "public function public_enqueue_scripts() {\n wp_enqueue_script( 'jquery_focuspoint', plugin_dir_url( __FILE__ ) . 'js/jquery.focuspoint.min.js', array('jquery'), $this->version, true );\n wp_enqueue_script( 'wp_focuslock', plugin_dir_url( __FILE__ ) . 'js/wp-focuslock.js', array('jquery', 'jquery_focuspoint'), $this->version, true );\n }", "public function registerScriptsAdmin() {\n $v = Wpjb_Project::VERSION;\n $p = plugins_url().'/wpjobboard/public/js/';\n $x = plugins_url().'/wpjobboard/application/vendor/';\n \n //wp_register_script(\"wpjb-color-picker\", $p.\"jquery.colorPicker.js\" );\n wp_register_script(\"wpjb-color-picker\", $p.\"colorpicker.js\" );\n wp_register_script(\"wpjb-admin\", $p.\"admin.js\", array(\"jquery\"), $v);\n wp_register_script(\"wpjb-admin-job\", $p.\"admin-job.js\", array(\"jquery\", \"wpjb-suggest\", \"wpjb-vendor-datepicker\"), $v);\n wp_register_script(\"wpjb-admin-resume\", $p.\"admin-resume.js\", array(\"jquery\"), $v);\n wp_register_script(\"wpjb-admin-config-email\", $p.\"admin-config-email.js\", array(\"jquery\", \"jquery-ui-dialog\"), $v);\n wp_register_script(\"wpjb-admin-config-email-composer\", $p.\"admin-config-email-composer.js\", array(\"jquery\", \"iris\"), $v);\n wp_register_script(\"wpjb-admin-google-for-jobs\", $p.\"admin-google-for-jobs.js\", array(\"jquery\", \"wpjb-ace\", \"jquery-ui-dialog\", \"jquery-ui-sortable\", \"wp-util\"), $v);\n wp_register_script(\"wpjb-admin-medialibrary\", $p.\"admin-medialibrary.js\", array(\"jquery\", \"media-upload\"), $v);\n wp_register_script(\"wpjb-admin-config-email-editor\", $p.\"admin-config-email-editor.js\", array(\"jquery\", \"wpjb-ace\", \"jquery-ui-dialog\"), $v);\n wp_register_script(\"wpjb-admin-config-urls\", $p.\"admin-config-urls.js\", array(\"jquery\"), $v);\n wp_register_script(\"wpjb-admin-export\", $p.\"admin-export.js\", array(\"jquery\"), $v);\n wp_register_script(\"wpjb-admin-import\", $p.\"admin-import.js\", array(\"jquery\", \"wpjb-plupload\"));\n wp_register_script(\"wpjb-admin-apps\", $p.\"admin-apps.js\", array(\"jquery\"), $v, true);\n wp_register_script(\"wpjb-vendor-ve\", $x.\"visual-editor/visual-editor.js\", array(\"jquery\"));\n wp_register_script(\"wpjb-multi-level-accordion-menu\", $p.\"multi-level-accordion-menu.js\", array(\"jquery\"), $v);\n wp_register_script(\"wpjb-admin-user-register\", $p.\"admin-user-register.js\", array(\"jquery-ui-autocomplete\", \"jquery\"), $v);\n wp_register_script(\"wpjb-admin-alert\", $p.\"admin-alert.js\", array(\"jquery\", \"wp-util\"), $v);\n\n }", "function plugin_post_new_scripts() {\r\n\t// Register & enqueue our admin.js file along with its dependancies\r\n\t\t\twp_register_script('framework', $this->plugin_url .'framework.js', array('jquery','media-upload','thickbox','editor'));\r\n\t\t\twp_enqueue_script('framework');\r\n\t\t\twp_enqueue_script('farbtastic'); \r\n\t\t\twp_enqueue_script('suggest'); // Allow Jquery Chosen\r\n\t\t\t\r\n\t\t}", "public function enqueue_scripts() {\n\n\t\twp_enqueue_script ( 'jquery-2', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js', array(), $this->version, false);\n wp_enqueue_script ( 'stripe.js', 'https://js.stripe.com/v2/', array(), $this->version, false );\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/pewin-payments-public.js', array('jquery-2', 'stripe.js'), $this->version, true );\n\n\t}", "function ka_enqueue_scripts() {\n\n /* Adiciona o script principal do tema */\n wp_enqueue_script( 'main', get_bundle_file( 'assets/js/dist/', 'index.*.js' ) , null, null, true );\n }", "static public function enqueue_late() {\r\n\t\t\t/*\r\n\t\t\t * Beta-testers will not have cached scripts!\r\n\t\t\t * Just in case we have to update the plugin prior to launch.\r\n\t\t\t */\r\n\t\t\tif ( defined( 'WPMUDEV_BETATEST' ) && WPMUDEV_BETATEST ) {\r\n\t\t\t\t$script_version = time();\r\n\t\t\t} else {\r\n\t\t\t\t$script_version = self::VERSION;\r\n\t\t\t}\r\n\r\n\t\t\twp_enqueue_style(\r\n\t\t\t\t'wdev-plugin-ui',\r\n\t\t\t\tself::$module_url . 'wdev-ui.css',\r\n\t\t\t\tarray( 'wdev-plugin-google_fonts' ),\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\r\n\t\t\twp_enqueue_script(\r\n\t\t\t\t'wdev-plugin-ui',\r\n\t\t\t\tself::$module_url . 'wdev-ui.js',\r\n\t\t\t\tarray( 'jquery' ),\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\r\n\t\t\t/**\r\n\t\t\t * Allow other plugins to enqueue css/js after shared-ui to\r\n\t\t\t * overwrite certain definitions.\r\n\t\t\t */\r\n\t\t\tdo_action( 'wpmudev_plugin_ui_enqueued' );\r\n\t\t}", "public function enqueue_scripts()\n {\n wp_enqueue_script($this->andmoraho_vendors, plugin_dir_url(__FILE__) . 'js/andmoraho-vendors-admin.js', array( 'jquery' ), $this->version, false);\n }", "public function enqueue_scripts() {\n\t\twp_enqueue_script( \n\t\t\t$this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/deeppress-admin.js',\n\t\t\tarray( 'jquery' ), \n\t\t\t$this->version, true \n\t\t);\n\t\twp_enqueue_script( \n\t\t\t$this->plugin_name.'-imageview', plugin_dir_url( __FILE__ ) . 'js/jquery.imageview.js', \n\t\t\tarray( 'jquery' ), \n\t\t\t$this->version, false \n\t\t);\n\t\twp_enqueue_script( \n\t\t\t$this->plugin_name.'-annotorious', plugin_dir_url( __FILE__ ) . 'js/jquery.selectareas.js',\n\t\t\tarray( 'jquery' ), \n\t\t\t$this->version, false \n\t\t);\n\t\twp_enqueue_script(\n\t\t\t$this->plugin_name.'-input', plugin_dir_url( __FILE__ ) . 'js/input.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->version, false\n\t\t);\n\t\twp_enqueue_script(\n\t\t\t$this->plugin_name.'-lightgallery', plugin_dir_url( __FILE__ ) . 'js/lightgallery.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->version, false\n\t\t);\n\t\t/*wp_enqueue_script(\n\t\t\t$this->plugin_name.'-dropzone', plugin_dir_url( __FILE__ ) . 'js/dropzone.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->version, false\n\t\t);*/\n\t\t// Localize the script with new data\n\t\t$config_array = array(\n\t\t\t'remote_url' => get_option('deeppress_remote_url'),\n\t\t\t'remote_username' => get_option('deeppress_remote_username'),\n\t\t\t'remote_password' => get_option('deeppress_remote_password')\n\t\t);\n\t\twp_localize_script( $this->plugin_name, 'deeppress', $config_array );\n\t}", "static function enqueue_scripts() {\n\t\tif ( ! static::matches_custom_format( get_post_format() ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t//scripts\n\t\twp_register_script( 'custom-event-preview-script', get_stylesheet_directory_uri() . '/assets/js/cpf-event-preview.min.js', array( 'jquery' ), CURRENT_THEME_VERSION, true );\n\t\twp_enqueue_script( 'custom-event-preview-script' );\n\t\twp_localize_script( 'custom-event-preview-script', 'evtPreviewData', self::event_preview_data() );\n\t}" ]
[ "0.7829267", "0.73509604", "0.72832805", "0.72436476", "0.7110145", "0.70321256", "0.6953151", "0.6947101", "0.68235636", "0.6817338", "0.67939854", "0.67900777", "0.67878705", "0.6787381", "0.6749537", "0.67472607", "0.6745643", "0.6738071", "0.67162114", "0.67156655", "0.67153776", "0.6686573", "0.6681003", "0.66737354", "0.6667041", "0.6666543", "0.6646016", "0.6632386", "0.6630802", "0.6618846", "0.66174316", "0.6609282", "0.6599921", "0.6564655", "0.65542465", "0.65503", "0.6550082", "0.6548505", "0.65465987", "0.65415245", "0.6536686", "0.65331495", "0.6532111", "0.65291834", "0.6502129", "0.64996463", "0.64982957", "0.6495047", "0.6470796", "0.6465468", "0.64612675", "0.6457475", "0.6442522", "0.64400417", "0.64396614", "0.64370984", "0.64344317", "0.6413456", "0.64097565", "0.640456", "0.6383169", "0.63808864", "0.636799", "0.6351771", "0.6339729", "0.6334811", "0.63264924", "0.6326064", "0.63252026", "0.63243556", "0.63237673", "0.6323105", "0.6316548", "0.6309463", "0.63030124", "0.6301866", "0.6294741", "0.62938285", "0.62921304", "0.6282653", "0.6282606", "0.6276515", "0.62754697", "0.6273077", "0.6264724", "0.62646806", "0.6253818", "0.6252891", "0.6251299", "0.62490886", "0.6245865", "0.6245008", "0.6244707", "0.6242471", "0.6241824", "0.62389594", "0.6228134", "0.62279004", "0.6226458", "0.6225297", "0.6224415" ]
0.0
-1
Enqueue public facing styles
public function enqueue_styles() { wp_enqueue_style( 'slick-css', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/css/slick-theme.css', array(), '1.8.1' ); wp_enqueue_style( 'style-css', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/css/style.css', array(), '1.0.0' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enqueues() {\n\t\twp_register_style( 'ks-thematic-actions', plugin_dir_url( __FILE__ ) . 'style.css' );\n\t wp_enqueue_style( 'ks-thematic-actions' );\n\t}", "public function loadPublicSideStyles()\n\t{\n\t\twp_enqueue_style('cit-boilerplate-public-style', CIT_PLUGIN_PUBLIC_URL.'css/cit-boilerplate-public.css', '', CIT_PLUGIN_VERSION);\n\t}", "public function admin_enqueue()\n\t{\n\t\t// styles.\n\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nimiq_Miner_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nimiq_Miner_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/nimiq-miner-public.css', array(), $this->version, 'all' );\n\n\t}", "private function load_public_styles() {\n\n\t}", "public function admin_print_styles()\n\t{\n\t\tif($_GET['type'] == 'picasa')\n\t\t{\n\t\t\twp_enqueue_style('inverted-google-apps');\n\t\t\twp_enqueue_script('inverted-google-apps');\n\t\t}\n\t}", "public function styles(){\n //Enqueue styles\n /**\n * wp_enqueue_style('sample-style',$this->directory_uri . '/sample.css');\n * ...\n * ....\n */\n }", "public function enqueue_public_scripts_and_styles(){\n\t\twp_enqueue_style('wp_location_public_styles', plugin_dir_url(__FILE__). '/css/wp_location_public_styles.css');\n\t\t\n\t}", "public function enqueue_public_scripts_and_styles() {\n\t\t//wp_enqueue_style( 'uclacomponentswp-backend-styles', UCLACOMPONENTSWP_PLUGIN_URL . 'core/includes/assets/css/backend-styles.css', array(), UCLACOMPONENTSWP_VERSION, 'all' );\n\t\t//wp_enqueue_script( 'uclacomponentswp-backend-scripts', UCLACOMPONENTSWP_PLUGIN_URL . 'core/includes/assets/js/backend-scripts.js', array(), UCLACOMPONENTSWP_VERSION, false );\n\t\t// wp_localize_script( 'uclacomponentswp-backend-scripts', 'uclacomponentswp', array(\n\t\t// \t'plugin_name' => __( UCLACOMPONENTSWP_NAME, 'ucla-components-for-wp' ),\n\t\t// ));\n\t// Install the UCLA Component library styles\n\twp_enqueue_style( 'ucla-lib-style', 'https://cdn.webcomponents.ucla.edu/1.0.0-beta.16/css/ucla-lib.min.css' );\n\t// Install the UCLA Component Library scripts\n\twp_enqueue_script( 'ucla-lib-script', 'https://s3-us-west-1.amazonaws.com/webcomponents.ucla.edu/public/1.0.0-beta.16/js/ucla-lib-scripts.min.js' );\n\t\n\t}", "public function enqueue() {\r\n\t\twp_enqueue_style( 'wfct-ei', WFC_EI_CSS_URL . 'environment-indicator.css', array(), WFC_EI_VERSION );\r\n\t}", "public function enqueue()\n {\n if((int)Option::getByPath('wunderlist_todo_options', 'live.enabled') === 1)\n {\n wp_enqueue_script('socket', setcooki_config('wunderlist', 'socket.client.src'));\n }\n if((int)Option::getByPath('wunderlist_todo_options', 'css.enabled'))\n {\n $style = setcooki_get_option(self::PRIMARY_STYLES, $this);\n $style = apply_filters('wunderlist_todo_style', $style);\n $theme = (string)Option::getByPath('wunderlist_todo_options', 'css.theme', '');\n if(stripos($style, '.less') !== false)\n {\n try\n {\n $css = setcooki_path('plugin') . '/var/app.min.css';\n $style = setcooki_path('root') . DIRECTORY_SEPARATOR . ltrim($style, DIRECTORY_SEPARATOR);\n $theme = setcooki_path('root') . DIRECTORY_SEPARATOR . ltrim($theme, DIRECTORY_SEPARATOR);\n if(!file_exists($css) || (file_exists($css) && ((int)@filemtime($style) > (int)@filemtime($css)) || ((int)@filemtime($theme) > (int)@filemtime($css))))\n {\n require_once setcooki_path('plugin') . '/src/ext/less/Less.php';\n $parser = new \\Less_Parser(array('compress' => true));\n $parser->SetImportDirs(array(setcooki_path('plugin') . '/static/css/' => setcooki_path('plugin', true) . '/static/css/') );\n $parser->parse((string)file_get_contents($theme));\n $parser->parse((string)file_get_contents($style));\n file_put_contents(setcooki_path('plugin') . '/var/app.min.css', $parser->getCss());\n }\n $style = setcooki_path('plugin', true) . '/var/app.min.css';\n }\n catch(\\Exception $e)\n {\n $style = null;\n }\n }\n if(!empty($style))\n {\n wp_enqueue_style('wunderlist', $style, array(), false, 'all');\n }\n if(setcooki_has_option(self::CUSTOM_STYLES, $this))\n {\n wp_enqueue_style('wunderlist-custom', setcooki_get_option(self::CUSTOM_STYLES, $this), array(), false, 'all');\n }\n }\n wp_register_script('wunderlist', setcooki_path('plugin', true) . '/static/js/app.js', array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse', 'jquery-ui-sortable'), '1.0.0', false);\n wp_localize_script('wunderlist', 'wunderlistAjax', array('url' => admin_url('admin-ajax.php'), 'nonce' => get_option('wunderlist_nonce')));\n wp_localize_script('wunderlist', 'wunderlistConf', setcooki_config('wunderlist', 'js.conf'));\n wp_enqueue_script('wunderlist');\n }", "function ct_include_style () {\n\tif ( !is_admin() ) {\n\t\twp_enqueue_style( 'christatimmer', get_stylesheet_uri() );\n\t}\n}", "function sss_kk_styles() {\n\twp_register_style('kk-social-share-starter-styles', plugins_url('kk-social-share-starter.css', __FILE__));\n\twp_enqueue_style('kk-social-share-starter-styles');\n}", "public function enqueues() {\n\n\t\t// CSS.\n\t\twp_enqueue_style(\n\t\t\t'wpforms-builder-setup',\n\t\t\tWPFORMS_PLUGIN_URL . 'assets/css/admin-builder-setup.css',\n\t\t\tnull,\n\t\t\tWPFORMS_VERSION\n\t\t);\n\t}", "public function enqueue_style() {\n\t\twp_enqueue_style( 'aztec-style', get_stylesheet_directory_uri() . '/assets/css/styles.css' );\n\t}", "public function enqueue_styles() {\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/sanoa-links-linter-public.css', array(), $this->version, 'all' );\n\t}", "public function public_enqueue_styles() {\n wp_enqueue_style( 'jquery_focuspoint_css', plugin_dir_url( __FILE__ ) . 'css/focuspoint.css');\n }", "public function enqueues()\n {\n\n // CSS\n wp_enqueue_style(\n 'wpforms-builder-settings',\n WPFORMS_PLUGIN_URL . 'assets/css/admin-builder-settings.css',\n null,\n WPFORMS_VERSION\n );\n }", "function enqueueClientFiles() {\n\t\t\tglobal $wp_styles;\n\n\t\t\tif ( ! is_admin() ) {\n\n\t\t\t\twp_enqueue_style(\n\t\t\t\t\t'titan-style',\n\t\t\t\t\tget_bloginfo( 'stylesheet_url' ),\n\t\t\t\t\t'',\n\t\t\t\t\tnull\n\t\t\t\t);\n\n\t\t\t\twp_enqueue_style(\n\t\t\t\t\t'titan-ie-style',\n\t\t\t\t\tget_template_directory_uri() . '/stylesheets/ie.css',\n\t\t\t\t\tarray( 'titan-style' ),\n\t\t\t\t\tnull\n\t\t\t\t);\n\t\t\t\t$wp_styles->add_data( 'titan-ie-style', 'conditional', 'lt IE 8' );\n\n\t\t\t\tif ( is_singular() ) {\n\t\t\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Fastnetmarketing_Admin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Fastnetmarketing_Admin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/fastnetmarketing-admin-admin.css', array(), $this->version, 'all' );\n\n\t}", "public function enqueueAssets()\n {\n wp_enqueue_style( WPADW_DOMAIN . '-admin-style', WPADW_URL . '/assets/style.css' );\n }", "public function vpup_load_styles() \n {\n // Enqueue our styles.\n wp_enqueue_style( 'vpup-main-styles', VPUP_URL . 'wp-vue/src/assets/css/main.css' );\n wp_enqueue_style( 'vpup-font-awesome', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );\n }", "function ep_bp_enqueue_style() {\n\twp_register_style( 'elasticpress-buddypress', plugins_url( '/elasticpress-buddypress/css/elasticpress-buddypress.css' ) );\n\twp_enqueue_style( 'elasticpress-buddypress' );\n}", "public function enqueue_styles() {\n\n\t\t// Setup styles array\n\t\t$styles = array();\n\n\t\t// LTR\n\t\t$styles['bbp-default'] = array(\n\t\t\t'file' => URL.'sprites/stylesheets/forums.css',\n\t\t\t'dependencies' => array()\n\t\t);\n\n\t\t// RTL helpers\n\t\tif ( is_rtl() ) {\n\t\t\t$styles['bbp-default-rtl'] = array(\n\t\t\t\t'file' => 'css/bbpress-rtl.css',\n\t\t\t\t'dependencies' => array( 'bbp-default' )\n\t\t\t);\n\t\t}\n\n\t\t// Filter the scripts\n\t\t$styles = apply_filters( 'BBP_IOA_styles', $styles );\n\n\t\t// Enqueue the styles\n\t\tforeach ( $styles as $handle => $attributes ) {\n\t\t\tbbp_enqueue_style( $handle, $attributes['file'], $attributes['dependencies'], $this->version, 'screen' );\n\t\t}\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in SpaceAPI_WP_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The SpaceAPI_WP_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/spaceapi-wp-admin.css', array(), $this->version, 'all' );\n\n\t}", "public function enqueueStyles() {\n\t\t\twp_enqueue_style('app', self::asset(\"css/app.css\"), NULL, '1.0.0', 'all');\n\t\t}", "public function registerStylesAdmin() {\n $v = Wpjb_Project::VERSION;\n $p = plugins_url().'/wpjobboard/public/css/';\n $x = plugins_url().'/wpjobboard/application/vendor/';\n \n wp_register_style(\"wpjb-admin-css\", $p.\"admin.css\", array(), $v);\n wp_register_style(\"wpjb-colorpicker-css\", $p.\"colorpicker.css\", array(), $v);\n wp_register_style(\"wpjb-vendor-ve-css\", $x.\"visual-editor/visual-editor.css\", array(), $v);\n wp_register_style(\"wpjb-multi-level-accordion-menu\", $p.\"multi-level-accordion-menu.css\", array(), $v);\n }", "public function adminEnqueueStyles($hook = '') {\n if (isset($_GET['page']) && $_GET['page'] == 'vcht-console') {\n wp_register_style($this->_token . '-bootstrap', esc_url($this->assets_url) . 'css/bootstrap.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-bootstrap');\n wp_register_style($this->_token . '-flat-ui', esc_url($this->assets_url) . 'css/flat-ui-pro.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-flat-ui');\n wp_register_style($this->_token . '-fontawesome', esc_url($this->assets_url) . 'css/font-awesome.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-fontawesome');\n wp_register_style($this->_token . '-customScrollbar', esc_url($this->assets_url) . 'css/jquery.mCustomScrollbar.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-customScrollbar');\n wp_register_style($this->_token . '-dropzone', esc_url($this->assets_url) . 'css/dropzone.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-dropzone');\n wp_register_style($this->_token . '-colpick', esc_url($this->assets_url) . 'css/colpick.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-colpick');\n wp_enqueue_style('thickbox');\n wp_register_style($this->_token . '-admin', esc_url($this->assets_url) . 'css/admin.min.css', array(), $this->_version);\n wp_enqueue_style($this->_token . '-admin');\n }\n }", "public function enqueue_styles() {\n if ( bp_is_user() ) {\n wp_enqueue_style( 'cac-bp-css', get_stylesheet_directory_uri() . '/style.css' );\n wp_enqueue_style( 'cacap-css', CACAP_PLUGIN_URL . '/assets/css/screen.css', array( 'cac-bp-css' ) );\n }\n\t}", "public function registerStylesFrontend() {\n $v = Wpjb_Project::VERSION;\n $p = plugins_url().'/wpjobboard/public/css/';\n $x = plugins_url().'/wpjobboard/application/vendor/';\n \n wp_register_style('wpjb-css', $p.\"frontend.css\", array('wpjb-glyphs'), $v );\n }", "public function enqueue_styles_scripts() {\n\t\tif ( nyscaa_is_nyscaa_group() ) {\n\t\t\t// Styles\n\t\t\twp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), $this->version );\n\n\t\t\t// IE specific\n\t\t\t// global $wp_styles;\n\t\t\t// wp_enqueue_style( $this->plugin_slug . '-ie-plugin-styles', plugins_url( 'css/public-ie.css', __FILE__ ), array(), $this->version );\n\t\t\t// $wp_styles->add_data( $this->plugin_slug . '-ie-plugin-styles', 'conditional', 'lte IE 9' );\n\n\t\t\t// Scripts\n\t\t\twp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.min.js', __FILE__ ), array( 'jquery' ), $this->version );\n\t\t}\n\t}", "function agile_style() {\n\twp_enqueue_style( 'agile-style', get_stylesheet_uri() );\n}", "public function enqueue_styles() {\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/deeppress-public.css', array(), $this->version, 'all' );\n\n\t}", "private function enqueueStyle() {\n wp_enqueue_style(\n 'shokka-forms',\n plugins_url( 'css/dist/style.css', 'shokka-forms/shokka-forms.php' ),\n array(),\n filemtime(\n sprintf(\n '%s%s%s',\n trailingslashit( WP_PLUGIN_DIR ),\n plugin_dir_path( 'shokka-forms/shokka-forms.php' ),\n wp_normalize_path( 'css/dist/style.css' )\n )\n )\n );\n }", "static public function enqueue() {\r\n\t\t\t/*\r\n\t\t\t * Beta-testers will not have cached scripts!\r\n\t\t\t * Just in case we have to update the plugin prior to launch.\r\n\t\t\t */\r\n\t\t\tif ( defined( 'WPMUDEV_BETATEST' ) && WPMUDEV_BETATEST ) {\r\n\t\t\t\t$script_version = time();\r\n\t\t\t} else {\r\n\t\t\t\t$script_version = self::VERSION;\r\n\t\t\t}\r\n\r\n\t\t\twp_enqueue_style(\r\n\t\t\t\t'wdev-plugin-google_fonts',\r\n\t\t\t\t'https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700|Roboto:400,500,300,300italic',\r\n\t\t\t\tfalse,\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\r\n\t\t\twp_enqueue_style(\r\n\t\t\t\t'wdev-plugin-notice',\r\n\t\t\t\tself::$module_url . 'notice.css',\r\n\t\t\t\tarray( 'wdev-plugin-google_fonts' ),\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\t\t}", "public function enqueue_styles() {\n\n\t\t\t/**\n\t\t\t * This function is provided for demonstration purposes only.\n\t\t\t *\n\t\t\t * An instance of this class should be passed to the run() function\n\t\t\t * defined in Advanced_Reviews_Pro_Loader as all of the hooks are defined\n\t\t\t * in that particular class.\n\t\t\t *\n\t\t\t * The Advanced_Reviews_Pro_Loader will then create the relationship\n\t\t\t * between the defined hooks and the functions defined in this\n\t\t\t * class.\n\t\t\t */\n\n\t\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/advanced-reviews-pro-public.css', array(), $this->version, 'all' );\n\t\t}", "function add_css() \n {\n if( $this->options['use-css-file'] ) {\n wp_register_style( 'bbquotations-style' , $this->plugin_url . 'bbquotations-style.css');\n wp_enqueue_style( 'bbquotations-style' );\n } \n }", "public function enqueue_styles() {\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/pewin-payments-public.css', array(), $this->version, 'all' );\n\t}", "public function addStyling()\n {\n \\wp_enqueue_style(self::REACT_WP_THEME, \\get_template_directory_uri() . '/frontend/dist/style.css', [], '0.1');\n }", "function extamus_enqueue_admin_styles()\n {\n $the_theme = wp_get_theme();\n wp_enqueue_style('animate-on-scroll', \"https://unpkg.com/[email protected]/dist/aos.css\", array(), $the_theme->get('Version'));\n wp_enqueue_style('google-fonts', \"https://fonts.googleapis.com/css?family=Staatliches|Crushed|Abril+Fatface|Gothic+A1\", array(), $the_theme->get('Version'));\n if (is_singular() && comments_open() && get_option('thread_comments')) {wp_enqueue_script('comment-reply');\n }\n wp_enqueue_script('AOS', \"https://unpkg.com/[email protected]/dist/aos.js\", array(), $the_theme->get('Version'), false);\n }", "function myplugin_enqueue_style_public() {\n\n\t/*\n\t\twp_enqueue_style(\n\t\t\tstring $handle,\n\t\t\tstring $src = '',\n\t\t\tarray $deps = array(),\n\t\t\tstring|bool|null $ver = false,\n\t\t\tstring $media = 'all'\n\t\t)\n\t*/\n\n\t$src = plugin_dir_url( __FILE__ ) .'public/css/example-public.css';\n\n\twp_enqueue_style( 'myplugin-public', $src, array(), null, 'all' );\n\n}", "public function styles(){\n\n\t\t//wp_enqueue_style('component-header_fixed-style', $this->directory_uri . '/assets/dist/css/headerFixed.css');\n\t}", "function wptrebs_styles_scripts() {\n wp_enqueue_style( 'wptrebs_feed', plugins_url('..\\assets\\css\\style.css', __FILE__) );\n}", "public function enqueue_custom_style() {\n\t\t\t$custom_css = $this->_build_custom_css();\n\n\t\t\tif( $custom_css ) {\n\t\t\t\t$handle = wp_script_is( 'yith-wcwl-user-main' ) ? 'yith-wcwl-user-main' : 'yith-wcwl-main';\n\n\t\t\t\twp_add_inline_style( $handle, $custom_css );\n\t\t\t}\n\t\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Points_Of_Sale_Admin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Points_Of_Sale_Admin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/points-of-sale-admin.css', array(), $this->version, 'all');\n\n\t}", "public function enqueue_styles() {\n wp_enqueue_style(\n $this->plugin_name,\n plugin_dir_url(__FILE__) . 'css/update-monitor-public.css',\n array(),\n $this->version,\n 'all'\n );\n }", "public function enqueueLicenseStyles()\n {\n wp_enqueue_style($this->pluginSlug, plugins_url('/assets/css/admin.css', __FILE__), array());\n }", "public function enqueue_assets()\n {\n $style_path = '/assets/css/block.style.css';\n wp_enqueue_style(\n $this->namespace . '-block',\n _get_plugin_url() . $style_path,\n null,\n filemtime( _get_plugin_directory() . $style_path )\n );\n }", "function css_files() {\n\t\twp_enqueue_style('escalate_network-admin-global', $this->plugin_url .'/css/styles-admin-global.css');\n\t}", "function plugin_admin_styles() {\r\n\t\t\t// used by media upload\r\n\t\t\twp_enqueue_style('thickbox');\r\n\t\t\t// Register & enqueue our admin.css file \r\n\t\t\twp_register_style('framework', $this->framework_url .'framework.css');\r\n\t\t\twp_enqueue_style('framework');\r\n\t\t\t// color picker\r\n\t\t\twp_enqueue_style( 'farbtastic' );\r\n\t\t\r\n\t\t}", "function enqueue_styles() {\n\t\twp_register_style( 'github-embed', plugins_url( basename( dirname( __FILE__ ) ) . '/css/github-embed.css' ) );\n\t\twp_enqueue_style( 'github-embed' );\n\t}", "public static function bkap_resource_css_file(){\n\n if ( get_post_type() == 'bkap_resource' ) {\n wp_dequeue_style( 'wc_bookings_admin_styles' );\n }\n }", "function vacatures_single_style_scripts() {\n //wp_enqueue_style( 'vacatures-single-page-template-theme-style' );\n wp_enqueue_style('vacatures-single-page-template-theme-style',content_url( 'templates/assets/css/vacatures-single-page-template-theme-style.css' , __FILE__ ) );\n}", "function thrive_dashboard_enqueue_style($handle, $src, $deps = array(), $ver = false, $media = 'all')\n{\n if ($ver === false) {\n $ver = \"1.0\";\n }\n wp_enqueue_style($handle, $src, $deps, $ver, $media);\n}", "function wp_enqueue_style() {\n\t}", "function add_styles() {\n\t\tif ( is_active_widget( false, false, $this->id_base, true ) ) {\n\t\t\twp_enqueue_style( 'font-awesome' );\n\t\t\t\n\t\t\t//wp_enqueue_style( 'my-style', \\trends\\helper\\utils::get_widgets_uri( 'social_icons', '/assets/my-style.css') );\n\t\t\t\n\t\t}\n\t}", "public function mtk_enqueueBlockFiles()\n {\n $handle = 'mtk_cptshortcode';\n $src = $this->plugin_url . 'assets/gut_cptshortcode.css';\n $deps = array( 'wp-edit-blocks') ;\n $ver = filemtime( $this->plugin_path . 'assets/gut_cptshortcode.css' );\n wp_register_style( $handle, $src, $deps, $ver );\n }", "public function frontEndStyleScripts(): void\n {\n wp_enqueue_style('users-data-bootstrap', plugin_dir_url(dirname(__FILE__)) . 'assets/css/bootstrap.min.css', [], UsersListing::getVersion());\n wp_enqueue_style('users-data-fontawsome', plugin_dir_url(dirname(__FILE__)) . 'assets/css/font-awesome.min.css', [], UsersListing::getVersion());\n wp_enqueue_style('users-data-styles', plugin_dir_url(dirname(__FILE__)) . 'assets/css/users-data.css', [], UsersListing::getVersion());\n //\n wp_enqueue_script('jquery-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.min.js', ['jquery'], UsersListing::getVersion(), false);\n wp_enqueue_script('jquery-popper', plugin_dir_url(dirname(__FILE__)) . 'assets/js/popper.min.js', ['jquery'], UsersListing::getVersion(), false);\n wp_enqueue_script('bootstrap-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/bootstrap.min.js', ['jquery'], UsersListing::getVersion(), false);\n }", "function scripts_styles() {\n\n\t\t// No need to process if in admin.\n\t\tif ( is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$theme_url = get_template_directory_uri();\n\t\t$main_css_url = $theme_url . '/style.css';\n\t\t$main_css_path = get_template_directory() . '/style.css';\n\t\t$main_css_ver = file_exists( $main_css_path ) ? filemtime( $main_css_path ) : '';\n\n\t\twp_enqueue_style( 'superiocity-style', $main_css_url, null, $main_css_ver );\n\t\twp_deregister_script( 'wp-embed' );\n\t}", "function indosEnqueue() {\n global $app_base_url;\n\n\tif(! is_admin()){\n\t wp_register_style('indoshipping_css',$app_base_url.'assets/indoshipping.css');\n\t wp_register_script('indoshipping_js',$app_base_url.'assets/indoshipping.js',array('jquery'));\n\t wp_localize_script('indoshipping_js','indoshipping',array('pluginurl'=>$app_base_url,'ajaxurl'=>admin_url('admin-ajax.php')));\n\t wp_enqueue_style('indoshipping_css');\n\t wp_enqueue_script('indoshipping_js');\n\t}\n}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Plugin_Name_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Plugin_Name_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/drinkers-edition-admin.css', array(), $this->version, 'all' );\n\n\t}", "function simple_social_sharing_kelp_enqueue_styles()\n{\n wp_enqueue_style(\n \"simple_social_sharing_kelp_styles\",\n plugins_url(\"/simple-social-sharing-kelp-styles.css\", __FILE__)\n );\n}", "public function editor_enqueue()\n\t{\n\t\tadd_editor_style('assets/css/editor.css');\n\t}", "public function enqueueScripts()\n {\n wp_enqueue_style('gfbitpay-admin', $this->plugin->urlBase . 'style-admin.css', false, GFBITPAY_PLUGIN_VERSION);\n }", "function ecomaster_scripts() {\n wp_enqueue_style( 'ecomaster-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );\n}", "public function enqueue_styles() {\r\n\r\n\t\t}", "function rhd_enqueue_styles(){\n\tglobal $theme_opts;\n\n\twp_register_style( 'rhd-sitewide', content_url() . '/global/sitewide.css', array(), '1', 'all' );\n\twp_register_style( 'rhd-main', RHD_THEME_DIR . '/css/main.css', array(), '1', 'all' );\n\twp_register_style( 'rhd-enhanced', RHD_THEME_DIR . '/css/enhanced.css', array(), '1', 'all' );\n\twp_register_style( 'Slidebars', RHD_THEME_DIR . '/js/vendor/Slidebars/dist/slidebars.min.css', array(), null, 'all' );\n\n\t$normalize_deps = array();\n\t$normalize_deps[] = 'Slidebars';\n\n\tif ( !rhd_is_mobile() ) {\n\t\twp_enqueue_style( 'rhd-enhanced' );\n\t}\n\n\twp_register_style( 'normalize', RHD_THEME_DIR . '/css/normalize.css', $normalize_deps, null, 'all' );\n\n\twp_enqueue_style( 'rhd-main' );\n\twp_enqueue_style( 'rhd-sitewide' );\n\twp_enqueue_style( 'normalize' );\n\twp_enqueue_style( 'google-fonts' );\n}", "public function enqueue_styles() {\n\t\t// wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), self::VERSION );\n\t}", "function ruven_register_styles() {\n\n\t$theme_version = wp_get_theme()->get( 'Version' );\n\t$env = ( wp_get_environment_type() === 'local') ? 'min.' : '';\n\n\twp_enqueue_style( 'ruven-style', get_template_directory_uri() . '/assets/css/style.'. $env .'css', array(),\n\t$theme_version );\n\twp_style_add_data( 'ruven-style', 'rtl', 'replace' );\n\n\n}", "function vslider_admin_styles() {\r\n wp_enqueue_style('thickbox');\r\n wp_register_style('colorpicker-css', WP_PLUGIN_URL.'/vslider/picker/colorpicker.css');\r\n wp_enqueue_style( 'colorpicker-css');\r\n wp_register_style('tooltip-css', WP_PLUGIN_URL.'/vslider/css/tooltip.css');\r\n wp_enqueue_style( 'tooltip-css');\r\n}", "function admin_print_styles() {\n global $SlideDeckPlugin;\n\n wp_enqueue_style( \"{$this->namespace}-admin\" );\n\n if( $SlideDeckPlugin->is_plugin() ) {\n wp_enqueue_style( 'codemirror' );\n wp_enqueue_style( 'codemirror-theme-default' );\n wp_enqueue_style( 'jquery-minicolors' );\n }\n }", "function uvasomcmedept_styles() {\n\twp_enqueue_style( 'uvasomcmedept', plugins_url(). '/uvasomcmedept/uvasomcmedept.css');\n}", "private function define_public_hooks()\n {\n \n $this->loader->add_action('wp_enqueue_scripts','WordPress_Reactro_Public','enqueue_styles');\n $this->loader->add_action('wp_enqueue_scripts','WordPress_Reactro_Public','enqueue_scripts');\n $this->loader->add_action('admin_enqueue_scripts','WordPress_Reactro_Public','enqueue_scripts');\n $this->loader->add_action('admin_enqueue_scripts','WordPress_Reactro_Public','enqueue_styles');\n $this->loader->add_action('wp_footer','WordPress_Reactro_Public','add_popup');\n $this->loader->add_action('admin_footer','WordPress_Reactro_Public','add_popup');\n }", "function myplugin_public_styles_scripts() {\r\n\r\n wp_enqueue_style( 'myplugin-public-style', MYPLUGIN_URL . 'public/css/public.css', '', rand());\r\n\r\n wp_enqueue_script( 'myplugin-public-script', MYPLUGIN_URL . 'public/js/public.js', array('jquery'), rand(), true );\r\n}", "function ka_enqueue_styles() {\n // Carrega o estilo padrão\n wp_enqueue_style( 'ka-style' );\n }", "function styles() {\n\twp_enqueue_style(\n\t\t'deadpoo-main',\n\t\tDIE_URL . '/assets/css/dist/main.css',\n\t\t[],\n\t\tfalse\n\t);\n}", "function put_in_queue() {\n wp_enqueue_script('reviewsjs', plugins_url('/assets/js/reviews.js', __FILE__));\n wp_enqueue_style('reviewscss', plugins_url('/assets/css/reviews.css', __FILE__));\n }", "public function enqueue_styles() {\n wp_enqueue_style(\n VSPI_BASENAME,\n plugins_url('includes/vspi-admin-styles.css', __FILE__),\n array(),\n VSPI_VERSION,\n 'all'\n );\n }", "public function enqueue_styles_footer()\n {\n wp_register_style('fast-social-sharing', plugin_dir_url(__FILE__) . 'css/fast-social-sharing-public.css', array(), false, 'all');\n wp_enqueue_style('fast-social-sharing');\n }", "public function enqueue_styles() {\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nerd_Wp_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nerd_Wp_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/contact-helpdesk-admin.css', array(),\n\t\t\t$this->version, 'all' );\n\t}", "function script_n_styles_func() {\n\n wp_enqueue_style( 'custom-stylesheet', PLUGINS_URL( '/css/custom.css', __FILE__ ) );\n wp_enqueue_style( 'font-awesome-cdn', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css' );\n\n }", "function bwcr_enqueue(){\n wp_enqueue_style( 'bwcr-style', plugin_dir_url( __FILE__ ) . 'style.css', array(), filemtime(plugin_dir_path( __FILE__ ) . 'style.css'), false );\n wp_enqueue_script( 'bwcr-script', plugin_dir_url( __FILE__ ) . 'script.js', array(), filemtime(plugin_dir_path( __FILE__ ) . 'script.js'), false );\n wp_enqueue_style( 'font-awe', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', false );\n}", "public static function enqueue_styles() {\n\t\tif ( ! static::$enqueued && wp_style_is( 'cmb2-styles', 'enqueued' ) ) {\n\t\t\twp_enqueue_style( 'wplibs-form' );\n\t\t\twp_enqueue_script( 'wplibs-form' );\n\n\t\t\tstatic::$enqueued = true;\n\t\t}\n\t}", "public function adminStyles()\n\t{\n\t\twp_enqueue_style('wpm-sort_post_types', $this->cssUrl.'/sort-post-types.css');\n\t}", "public function enqueue_scripts() {\n\t\twp_add_inline_style( 'at-main', $this->inline_css() );\n\t}", "public function enqueue_styles() {\n\t\t/**\n\t\t * Filters the path to the admin CSS styles.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param string $path The path to the CSS file.\n\t\t */\n\t\t$style_path = apply_filters( 'stellarwp/telemetry/' . Config::get_hook_prefix() . 'style_path', $this->get_asset_path() . 'resources/css/styles.css' );\n\n\t\twp_enqueue_style(\n\t\t\tself::SCRIPT_HANDLE,\n\t\t\t$style_path,\n\t\t\t[],\n\t\t\tself::SCRIPT_VERSION\n\t\t);\n\t}", "function propanel_of_style_only() {\n\twp_enqueue_style('admin-style', get_stylesheet_directory_uri().'/admin/admin-style.css');\n\twp_enqueue_style('color-picker', get_stylesheet_directory_uri().'/admin/colorpicker.css');\n}", "function mokore_admin_enqueue_style(){\n\t\twp_register_style('mokore_admin_css', get_template_directory_uri() . '/inc/css/admin.css', false);\n\t\twp_enqueue_style('mokore_admin_css');\n\t}", "public function addPluginFrontendStylesheets() {\n global $laterpay_version;\n wp_register_style(\n 'laterpay-post-view',\n LATERPAY_ASSET_PATH . '/static/css/laterpay-post-view.css',\n array(),\n $laterpay_version\n );\n wp_register_style(\n 'laterpay-dialogs',\n 'https://static.sandbox.laterpaytest.net/webshell_static/client/1.0.0/laterpay-dialog/css/dialog.css'\n );\n wp_enqueue_style('laterpay-post-view');\n wp_enqueue_style('laterpay-dialogs');\n }", "function enqueue_custom_script(){\n\n\t$version = \"b\";\n\n\twp_dequeue_style( 'gforms_formsmain_css' );\n\n\t$cam_formsmain = get_template_directory_uri() . '/css/gforms-formsmain.css';\n\twp_register_style('cam_formsmain',$cam_formsmain, false, $version);\n\twp_enqueue_style( 'cam_formsmain');\t\n\n}", "public function enqueue_styles() {\n\n\t\twp_register_style( 'wpaddons_io_sitestyle', plugins_url( 'wpaddons-io-sdk/css/wpaddons-io.css', __FILE__ ) );\n\n\t\twp_enqueue_style( 'wpaddons_io_sitestyle' );\n\n\t}", "function styles() {\n\n\twp_enqueue_style(\n\t\t'styles',\n\t\tPLAYGROUND_THEME_TEMPLATE_URL . \"/dist/css/style.min.css\",\n\t\tfalse\n\t);\n}", "public function enqueue_styles () {\n wp_enqueue_style( 'wpuf-qr-code-admin-styles', plugins_url( 'css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n wp_enqueue_script( 'wpuf-qr-code-admin-scripts', plugins_url( 'js/admin-script.js', __FILE__ ), array( 'jquery' ), false, true );\n }", "public function kiwip_stylesheet_add_file(){\n\t\t//register\n\t\tforeach($this->stylesheet as $key){\n\t\t\twp_register_style('kiwip_shortcode-css-'.$key['stylesheetId'], $key['stylesheetURL']);\n\t\t}\n\t\t\n\t\t//load\n\t\tforeach($this->stylesheet as $eky){\n\t\t\twp_enqueue_style('kiwip_shortcode-css-'.$key['stylesheetId']);\n\t\t}\t\t\n\n\t\t// $this->debug($this->stylesheet); die();\n\t}", "public function register_scripts()\n {\n wp_register_style(\n 'fau-oembed-style',\n plugins_url('assets/css/fau-oembed.css', plugin()->getBasename()),\n [],\n plugin()->getVersion()\n ); \n }", "public function enqueue_files ()\n\t{\n\t\t// Flowdrive\n\t\twp_register_style( 'flowdrive_admin_css', plugin_dir_url( __DIR__ ) . 'assets/css/flowdrive-admin.css', false, $this->version );\n\t\twp_enqueue_style( 'flowdrive_admin_css' );\n\t\t\n\t\t// wp_enqueue_script( $this, plugin_dir_url( __FILE__ ) . 'js/cloudoki-smmp-admin.js', array( 'jquery' ), $this->version, false );\n\t\t\n\t\t// Chosen\n\t\twp_register_style( 'chosen_admin_css', plugin_dir_url( __DIR__ ) . '../vendor/drmonty/chosen/css/chosen.min.css', false, $this->version );\n\t\twp_enqueue_style( 'chosen_admin_css' );\n\t\t\n\t\twp_register_script( 'chosen_admin_js', plugin_dir_url( __DIR__ ) . '../vendor/drmonty/chosen/js/chosen.jquery.min.js', ['jquery'], $this->version );\n\t\twp_enqueue_script( 'chosen_admin_js' );\n\t\t\n\t\t// wp_enqueue_script( $this, plugin_dir_url( __DIR__ ) . '../vendor/drmonty/chosen/js/chosen.jquery.min.js', array( 'jquery' ), $this->version, false );\n\t}", "function capstone_frontend_styles() {\n\t\tif ( !is_admin() ) {\n\n\t\t\t// Libraries Styles\n\t\t\twp_enqueue_style('fontawesome', CAPSTONE_CSS_URI . '/lib/font-aswesome.css');\n\t\t\twp_enqueue_style('icheck', CAPSTONE_JS_URI . '/lib/icheck/square/blue.css');\n\t\t\twp_enqueue_style('material-icons', 'https://fonts.googleapis.com/icon?family=Material+Icons');\n\t\t\twp_enqueue_style('flickity', CAPSTONE_CSS_URI . '/lib/flickity.min.css');\n\t\t\twp_enqueue_style('mapbox', 'https://api.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.css');\n\t\t\twp_enqueue_style('mapbox-geocoder', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.css');\n\t\t\t\n\t\t\t// Theme Styles\n\t\t\twp_enqueue_style('capstone-main', CAPSTONE_CSS_URI . '/main.min.css', array('wp-mediaelement'));\n\t\t\t\n\t\t\t// Google Fonts\n\t\t\twp_enqueue_style('capstone-fonts', capstone_fonts_url(), array(), '1.0.0');\n\t\t\t\n\t\t\t// Add Inline Styles (dynamic)\n\t\t\tob_start();\n\t\t\trequire( get_template_directory() .'/styles/dynamic.php' );\n\t\t\t$dynamic_css = ob_get_clean();\n\t wp_add_inline_style('capstone-main', $dynamic_css);\n\t\t}\n\t}", "function thrive_theme_pack_scripts() {\n\n wp_register_style( 'thrive-theme-pack-stylesheet', plugins_url( '/assets/css/themepack.css', __FILE__ ), array( 'thrive-style' ), '1.0' );\n wp_enqueue_style( 'thrive-theme-pack-stylesheet' );\n\n\treturn;\n}", "function register_style() {\n}", "public function block_assets() {\n\n\t\t// Styles.\n\t\twp_enqueue_style(\n\t\t\t$this->slug . '-frontend',\n\t\t\t$this->url . '/build/style.build.css',\n\t\t\tarray(),\n\t\t\tPOSTSLISTBLOCK_VERSION\n\t\t);\n\t}", "function wp_enqueue_style($handle, $src = '', $deps = array(), $ver = \\false, $media = 'all')\n {\n }" ]
[ "0.7656127", "0.76434433", "0.7509909", "0.7114221", "0.7089131", "0.708411", "0.7073835", "0.7067314", "0.7057531", "0.7032917", "0.695422", "0.6937341", "0.6903128", "0.68570906", "0.684499", "0.68443966", "0.6842805", "0.6838502", "0.6826086", "0.6811533", "0.6810357", "0.6802366", "0.6798711", "0.679598", "0.6793399", "0.6792802", "0.6787894", "0.67865753", "0.67767316", "0.6770779", "0.6767863", "0.6764212", "0.67555165", "0.6739422", "0.67385876", "0.6733599", "0.6724816", "0.67226636", "0.67190903", "0.6714549", "0.6710697", "0.67056626", "0.66973025", "0.6696275", "0.6695565", "0.6691897", "0.6668052", "0.6660177", "0.66600746", "0.6657166", "0.66567475", "0.66529393", "0.66382366", "0.66368765", "0.6635248", "0.6635092", "0.66320676", "0.6626917", "0.6620706", "0.66199166", "0.661955", "0.6612245", "0.6606219", "0.66059554", "0.66047454", "0.6599593", "0.6598172", "0.6590208", "0.6585075", "0.6584379", "0.6579174", "0.65770644", "0.6576821", "0.6566323", "0.65655625", "0.6563926", "0.65617573", "0.65609837", "0.6552816", "0.6548188", "0.65455586", "0.6543234", "0.6543219", "0.6538263", "0.65378064", "0.65376264", "0.65359354", "0.6535809", "0.65299475", "0.65259385", "0.6523645", "0.65228546", "0.6520277", "0.65189517", "0.65170246", "0.65157324", "0.6508137", "0.65070736", "0.65066284", "0.6505258", "0.65030605" ]
0.0
-1
Unserializes serialized string to card.
public function unserialize($serialized);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deserialise(string $data): void;", "function MBunserialize($serial_str)\n{\n $serial_str = preg_replace_callback('!s:(\\d+):\"(.*?)\";!s', function($match){return 's:'.strlen($match['2']).':\"'.$match['2'] . '\";';}, $serial_str);\n $serial_str= str_replace(\"\\r\", \"\", $serial_str);\n return unserialize($serial_str);\n}", "public static function dec($str)\n {\n\n return unserialize(base64_decode($str));\n\n }", "protected function unpack(string $payload)\n {\n return \\unserialize($payload);\n }", "public function UnserializeObject ($string) {\n $object = unserialize ($string);\n if ($object instanceof CourseObject) {\n $this->readUserUname = $object->readUserUname;\n $this->readUserPword = $object->readUserPword;\n $this->writeUserUname = $object->writeUserUname;\n $this->writeUserPword = $object->writeUserPword;\n $this->courseDocumentTitle = $object->courseDocumentTitle;\n $this->documentId = $object->documentId;\n $this->courseId = $object->courseId;\n return true;\n } else {\n throw InvalidArgumentException (\"Passed $string is not a valid serialized CourseObject instance.\");\n }//else\n }", "public static function decode($string);", "public static function Unserialize($SerializedString) {\n\t\t$Result = $SerializedString;\n\n if(is_string($SerializedString)) {\n\t\t\tif(substr_compare('a:', $SerializedString, 0, 2) === 0 || substr_compare('O:', $SerializedString, 0, 2) === 0)\n\t\t\t\t$Result = unserialize($SerializedString);\n\t\t\telseif(substr_compare('obj:', $SerializedString, 0, 4) === 0)\n $Result = json_decode(substr($SerializedString, 4), FALSE);\n elseif(substr_compare('arr:', $SerializedString, 0, 4) === 0)\n $Result = json_decode(substr($SerializedString, 4), TRUE);\n }\n return $Result;\n }", "abstract protected function unSerializeData();", "function __unserialize($sObject) {\n\t$__ret =preg_replace('!s:(\\d+):\"(.*?)\";!e', \"'s:'.strlen('$2').':\\\"$2\\\";'\", $sObject );\n\treturn unserialize($__ret);\n}", "abstract public function unserialize($serialized);", "function _unserialize( $serial ) {\n\t\tif( function_exists( 'gzinflate' ) ) {\n\t\t\t$decomp = @gzinflate( $serial );\n\t\t\tif( false !== $decomp ) {\n\t\t\t\t$serial = $decomp;\n\t\t\t}\n\t\t}\n\t\treturn unserialize( $serial );\n\t}", "public function unserialize($serialized)\n {\n }", "function unserialize($str)\n{\n}", "public function unserialize($data) {}", "public function unserialize($serialized)\n {\n $this->data = unserialize($serialized);\n }", "public function revert(string $serializedData)\n {\n return json_decode($serializedData, true);\n }", "public function decode($raw);", "public function serialize(Card $card);", "public function reverseTransform($string) {\n\t\t\treturn json_decode($string);\n\t\t}", "public function decode ($raw);", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "public function unserialize($string)\n\t{\n\t\t$unserialized = unserialize($string);\n\n\t\tif ( ! is_array($unserialized)) {\n\t\t\tthrow new Scil_Services_Form_Wizard_Exception(__METHOD__.' failed to unserialise model using : '.$string);\n\t\t}\n\n\t\tforeach ($unserialized as $key => $value) {\n\t\t\tif ( ! property_exists($this, $key)) {\n\t\t\t\tthrow new Scil_Services_Form_Wizard_Exception(__METHOD__.' unknown property : '.$key.' for class : '.get_class($this));\n\t\t\t}\n\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "public function deserialize($strToken);", "public function unserialize($serialized)\n {\n $data=unserialize($serialized);\n $this->id=$data['id'];\n\n }", "public function unserialize($data)\n {\n $data = @base64_decode($data);\n if ($data === false) {\n trigger_error('Failed to decode serialized data', E_USER_ERROR);\n return;\n }\n $crypt = $this->getCrypt();\n $data = $crypt->decrypt($data);\n $data = @unserialize($data);\n if (!is_array($data)) {\n trigger_error('Failed to decode serialized data', E_USER_ERROR);\n return;\n }\n parent::unserialize($data);\n }", "function is_serial($string) {\n return (@unserialize($string) !== false);\n}", "function decode($string);", "private function unserialize($value)\n {\n $data = @unserialize($value);\n if ($value === 'b:0;' || $data !== false) {\n // Unserialization passed, return unserialized data\n return $data;\n } else {\n // Data was not serialized, return raw data\n return $value;\n }\n }", "function decodeString($string);", "function decrypt(string $payload, bool $unserialize = true)\n {\n return app()->services()->crypter()->decrypt($payload, $unserialize);\n }", "public function deserialize($data);", "function safe_unserialize( $str )\n{\n\t// ensure we use the byte count for strings even when strlen() is overloaded by mb_strlen()\n\tif (function_exists('mb_internal_encoding') &&\n\t\t(((int) ini_get('mbstring.func_overload')) & 2))\n\t{\n\t\t$mbIntEnc = mb_internal_encoding();\n\t\tmb_internal_encoding('ASCII');\n\t}\n\n\ttry {\n\t\t$out = _safe_unserialize($str);\n\t} catch(Exception $e) {\n\t\t$out = false;\n\t}\n\n\tif (isset($mbIntEnc))\n\t{\n\t\tmb_internal_encoding($mbIntEnc);\n\t}\n\treturn $out;\n}", "public function unserialize($serialized)\r\n {\r\n $str = unserialize($serialized);\r\n\r\n foreach ($str as $member => $value) {\r\n $this->$member = $value;\r\n }\r\n }", "public function unserialize($serialized=null){ }", "public function unserialize($serialized)\n {\n list (\n $this->id,\n $this->usuario,\n $this->clave,\n ) = unserialize($serialized);\n }", "public function deserialize(string $data)\n {\n if( $this->deserializer ){\n return \\call_user_func($this->deserializer, $data);\n }\n\n return \\json_decode($data);\n }", "public function unserialize($serialized)\n {\n list($this->username, $this->password, $this->salt,\n $this->id) = \\json_decode(\n $serialized);\n }", "function _safe_unserialize($str)\n{\n\tif(strlen($str) > MAX_SERIALIZED_INPUT_LENGTH)\n\t{\n\t\tthrow new Exception('safe_unserialize: input exceeds ' . MAX_SERIALIZED_INPUT_LENGTH);\n\t}\n\n\tif(empty($str) || !is_string($str))\n\t{\n\t\treturn false;\n\t}\n\n\t$stack = array();\n\t$expected = array();\n\n\t/*\n\t * states:\n\t * 0 - initial state, expecting a single value or array\n\t * 1 - terminal state\n\t * 2 - in array, expecting end of array or a key\n\t * 3 - in array, expecting value or another array\n\t */\n\t$state = 0;\n\twhile($state != 1)\n\t{\n\t\t$type = isset($str[0]) ? $str[0] : '';\n\n\t\tif($type == '}')\n\t\t{\n\t\t\t$str = substr($str, 1);\n\t\t}\n\t\telse if($type == 'N' && $str[1] == ';')\n\t\t{\n\t\t\t$value = null;\n\t\t\t$str = substr($str, 2);\n\t\t}\n\t\telse if($type == 'b' && preg_match('/^b:([01]);/', $str, $matches))\n\t\t{\n\t\t\t$value = $matches[1] == '1' ? true : false;\n\t\t\t$str = substr($str, 4);\n\t\t}\n\t\telse if($type == 'i' && preg_match('/^i:(-?[0-9]+);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'd' && preg_match('/^d:(-?[0-9]+\\.?[0-9]*(E[+-][0-9]+)?);(.*)/s', $str, $matches))\n\t\t{\n\t\t\t$value = (float)$matches[1];\n\t\t\t$str = $matches[3];\n\t\t}\n\t\telse if($type == 's' && preg_match('/^s:([0-9]+):\"(.*)/s', $str, $matches) && substr($matches[2], (int)$matches[1], 2) == '\";')\n\t\t{\n\t\t\t$value = substr($matches[2], 0, (int)$matches[1]);\n\t\t\t$str = substr($matches[2], (int)$matches[1] + 2);\n\t\t}\n\t\telse if($type == 'a' && preg_match('/^a:([0-9]+):{(.*)/s', $str, $matches) && $matches[1] < MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t{\n\t\t\t$expectedLength = (int)$matches[1];\n\t\t\t$str = $matches[2];\n\t\t}\n\t\telse if($type == 'O')\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: objects not supported');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('safe_unserialize: unknown/malformed type: '.$type);\n\t\t}\n\n\t\tswitch($state)\n\t\t{\n\t\t\tcase 3: // in array, expecting value or another array\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$stack[] = &$list;\n\t\t\t\t\t$list[$key] = array();\n\t\t\t\t\t$list = &$list[$key];\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$list[$key] = $value;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: missing array value');\n\n\t\t\tcase 2: // in array, expecting end of array or a key\n\t\t\t\tif($type == '}')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) < end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size less than expected ' . $expected[0]);\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($list);\n\t\t\t\t\t$list = &$stack[count($stack)-1];\n\t\t\t\t\tarray_pop($stack);\n\n\t\t\t\t\t// go to terminal state if we're at the end of the root array\n\t\t\t\t\tarray_pop($expected);\n\t\t\t\t\tif(count($expected) == 0) {\n\t\t\t\t\t\t$state = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type == 'i' || $type == 's')\n\t\t\t\t{\n\t\t\t\t\tif(count($list) >= MAX_SERIALIZED_ARRAY_LENGTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds ' . MAX_SERIALIZED_ARRAY_LENGTH);\n\t\t\t\t\t}\n\t\t\t\t\tif(count($list) >= end($expected))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array size exceeds expected length');\n\t\t\t\t\t}\n\n\t\t\t\t\t$key = $value;\n\t\t\t\t\t$state = 3;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: illegal array index type');\n\n\t\t\tcase 0: // expecting array or value\n\t\t\t\tif($type == 'a')\n\t\t\t\t{\n\t\t\t\t\tif(count($stack) >= MAX_SERIALIZED_ARRAY_DEPTH)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception('safe_unserialize: array nesting exceeds ' . MAX_SERIALIZED_ARRAY_DEPTH);\n\t\t\t\t\t}\n\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$list = &$data;\n\t\t\t\t\t$expected[] = $expectedLength;\n\t\t\t\t\t$state = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif($type != '}')\n\t\t\t\t{\n\t\t\t\t\t$data = $value;\n\t\t\t\t\t$state = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tthrow new Exception('safe_unserialize: not in array');\n\t\t}\n\t}\n\n\tif(!empty($str))\n\t{\n\t\tthrow new Exception('safe_unserialize: trailing data in input');\n\t}\n\treturn $data;\n}", "public function decodeRawTransaction($hexString);", "public function unserialize($serialized)\n {\n list(\n $this->id,\n $this->active,\n $this->username,\n $this->password,\n $this->places,\n $this->roles,\n $this->sharedPlaces\n ) = \\json_decode($serialized);\n }", "public function unserialize($serialized)\n {\n $raw = unserialize($serialized);\n\n $this->setIdentity($raw['identity']);\n $this->setName($raw['name']);\n $this->setEmailAddress($raw['emailAddress']);\n }", "#[\\ReturnTypeWillChange]\n public function unserialize($data)\n {\n }", "public function DecodeString(string $str){\n $byte_arr = unpack('C*', $str);\n return $this->Decode($byte_arr);\n }", "public function unserialize($serialized)\n {\n $data = unserialize($serialized);\n return self::load($data['uid']);\n }", "public function unserialize($serialized)\n{\n list($this->username, $this->password,\n $this->id) = json_decode(\n $serialized);\n}", "public function unserialize($serialized)\n {\n $data = unserialize($serialized);\n\n //TODO load references with id ?\n }", "private static function decode($string)\n {\n return base64_decode($string);\n }", "public function unserialize($serialized)\n {\n list($this->username, $this->password, $this->salt,\n $this->roles, $this->id) = \\json_decode(\n $serialized);\n }", "public function decode($data) {}", "public function decode($data) {}", "public function decode($data) {}", "public function decode($data) {}", "public function decode($data) {}", "public static function safeUnserialize($serialized)\n\t{\n\t\tif (PHP_VERSION_ID >= 70000)\n\t\t{\n\t\t\t// PHP 7 has an option to disable unserializing objects, so use that if available\n\t\t\treturn @unserialize($serialized, array('allowed_classes' => false));\n\t\t}\n\n\t\tif (self::serializedContainsObject($serialized))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn @unserialize($serialized);\n\t}", "public function testSerializationDeserialization()\n {\n $obj = new CreditCardToken(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getCreditCardId());\n $this->assertNotNull($obj->getPayerId());\n $this->assertNotNull($obj->getLast4());\n $this->assertNotNull($obj->getType());\n $this->assertNotNull($obj->getExpireMonth());\n $this->assertNotNull($obj->getExpireYear());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function unbox()\n {\n APIHelper::deserialize(self::getResponseBody(), $this, false, false);\n }", "public function deserializeAll(string $data);", "public function unserialize($serialized)\n {\n list (\n $this->id,\n $this->email,\n $this->name,\n $this->password,\n // see section on salt below\n // $this->salt\n ) = unserialize($serialized);\n }", "public function deserialize($data)\n {\n }", "public function decode(string $encodedUuid): UuidInterface;", "public function decode($data);", "public function unserialize($input)\n {\n $output = unserialize($input);\n if ($output === false) {\n $input = preg_replace_callback('!(?<=^|;)s:(\\d+)(?=:\"(.*?)\";(?:}|a:|s:|b:|d:|i:|o:|N;))!s', function ($match) {\n return 's:' . strlen($match[2]);\n }, $input);\n return unserialize($input);\n }\n return $output;\n }", "public function decode(string $string): string\n {\n return base64_decode($string);\n }", "function unserialize_safe($serialized) {\r\r\n // as well as if there is any ws between O and :\r\r\n if (is_string($serialized) && strpos($serialized, \"\\0\") === false) {\r\r\n if (strpos($serialized, 'O:') === false) {\r\r\n // the easy case, nothing to worry about\r\r\n // let unserialize do the job\r\r\n return @unserialize($serialized);\r\r\n } else if (!preg_match('/(^|;|{|})O:[0-9]+:\"/', $serialized)) {\r\r\n // in case we did have a string with O: in it,\r\r\n // but it was not a true serialized object\r\r\n return @unserialize($serialized);\r\r\n }\r\r\n }\r\r\n return false;\r\r\n}", "public function unserialize($serialized)\n {\n $data = unserialize($serialized);\n // add a few extra elements in the array to ensure that we have enough keys when unserializing\n // older data which does not include all properties.\n $data = array_merge($data, array_fill(0, 2, null));\n \n list ($this->password, $this->salt, $this->usernameCanonical, $this->username, $this->expired, $this->locked, $this->credentialsExpired, $this->enabled, $this->id) = $data;\n }", "public function deserialize(string $data)\n {\n switch ($this->method) {\n case self::METHOD_IGBINARY:\n $data = @igbinary_unserialize($data);\n\n if ($data === null) {\n throw new Exception('Cannot deserialize data. May be cache has different data type?');\n }\n\n return $data;\n\n case self::METHOD_JSON:\n $data = @json_decode($data);\n\n if ($data === null) {\n throw new Exception('Cannot deserialize data. May be cache has different data type?');\n }\n\n return $data;\n\n default:\n $data = @unserialize($data, ['allowed_classes' => false]);\n\n if ($data === false) {\n throw new Exception('Cannot deserialize data. May be cache has different data type?');\n }\n\n return $data;\n }\n }", "public function unserialize($serialized)\n {\n // older data which does not include all properties.\n $data = array_merge(unserialize($serialized), array_fill(0, 2, null));\n\n list($this->email, $this->id) = $data;\n }", "public static function decode($str, $options = 0)\n {\n return json_decode($str, $options);\n }", "function load_card_number($data) {\n\t\t$data = $this->_encryption->decrypt ( $data );\n\t\treturn $data;\n\t}", "public function unserialize($serialized)\n{\n list($this->username, $this->password, $this->salt,\n $this->user_roles, $this->id) = \\json_decode(\n $serialized);\n}", "public static function is_serialized(string $str)\n {\n $array = @unserialize($str);\n return ! ($array === false and $str !== 'b:0;');\n }", "public function unpack($raw);", "public function unserialize($serialized)\n {\n list($this->id, $this->username, $this->password,) = unserialize($serialized);\n }", "public static function decrypt($string) {\n\t\treturn abacaEncrypt ( $string, 'DECODE', self::$key );\n\t}", "private function decode($str) {\n if ($this->return_assoc) {\n return json_decode($str, true);\n }\n\n return json_decode($str);\n }", "public function decryptString($payload)\n {\n return $this->decrypt($payload, false);\n }", "private function decrypt($string) {\r\n if ($this->settings[\"encryption\"]) {\r\n $string = base64_decode($string);\r\n return str_replace($this->settings[\"salt\"], \"\", $string);\r\n }\r\n return $string;\r\n }", "public function decode(string $sBinaryString): void\n\t{\n\t\t//Read the header\n\n\t\t//Read the aun packet type 1 byte unsigned int\n\t\t$aHeader=unpack('C',$sBinaryString);\n\t\t$this->iPktType = $aHeader[1];\n\t\t$sBinaryString = substr($sBinaryString,1);\n\t\t\n\t\t//Read the dst port 1 byte unsigned int\n\t\t$aHeader=unpack('C',$sBinaryString);\n\t\t$this->iPort = $aHeader[1];\n\t\t$sBinaryString = substr($sBinaryString,1);\n\t\t\n\t\t//Read the flag 1 byte unsigned int\n\t\t$aHeader=unpack('C',$sBinaryString);\n\t\t$this->iCb = $aHeader[1];\n\t\t$sBinaryString = substr($sBinaryString,1);\n\t\t\n\t\t//Retrans 1 byte unsigned int\n\t\t$aHeader=unpack('C',$sBinaryString);\n\t\t$this->iPadding = $aHeader[1];\n\t\t$sBinaryString = substr($sBinaryString,1);\n\t\t\n\t\t//Sequence 4 bytes little-endian\n\t\t$aHeader=unpack('V',$sBinaryString);\n\t\t$this->iSeq = $aHeader[1];\n\t\t$sBinaryString = substr($sBinaryString,4);\n\n\t\t//The reset is data\n\t\t$this->sData = $sBinaryString;\n\n\t\t//Set the aun counter \t\t\n\t\tMap::setAunCounter($this->sSoruceIP,$this->iSeq);\n\t}", "function unserialize($value)\n {\n return C_NextGen_Serializable::unserialize($value);\n }", "public function unserialize($serialized) \n {\n return list(\n $this->boardingCardId,\n $this->arrival, \n $this->departure, \n $this->passenger,\n $this->reference,\n $this->busNo,\n $this->platformNo,\n ) = unserialize($serialized);\n }", "public function decode( string $value ): string;", "public function _unserialize($data)\n\t{\n\t\treturn json_decode($data, TRUE);\n\t}", "public function decode($rawContent);", "private function isSerialized($string)\n {\n if ($string === 'b:0;' or @unserialize($string) !== false)\n {\n return true;\n }\n\n return false;\n }", "public function decodeBytes(string $bytes): UuidInterface;", "public static function unserialize($serialized, array $options = array()) \n {\n if (isset($options['adapter'])) {\n $adapter = self::factory($options['adapter']);\n unset($options['adapter']);\n } else {\n $adapter = self::getDefaultAdapter();\n }\n\n return $adapter->unserialize($serialized, $options);\n }", "public function decrypt($payload, $unserialize = false)\n {\n $payload = $this->getJsonPayload($payload);\n\n $iv = base64_decode($payload['iv']);\n\n $tag = empty($payload['tag']) ? null : base64_decode($payload['tag']);\n\n // Here we will decrypt the value. If we are able to successfully decrypt it\n // we will then unserialize it and return it out to the caller. If we are\n // unable to decrypt this value we will throw out an exception message.\n $decrypted = openssl_decrypt(\n $payload['value'],\n $this->cipher,\n $this->key,\n 0,\n $iv,\n $tag\n );\n\n if ($decrypted === false) {\n throw new DecryptException('Could not decrypt the data.');\n }\n\n return $unserialize ? unserialize($decrypted) : $decrypted;\n }", "public static function girafDeserialize($val)\n {\n\t\t// - check for, then remove, underscores.\n\t\t// - unescape using RESERVED_CHARS.\n\t\t// - PHP unserialize.\n\t\tif (!self::isSerializedVar($val))\n\t\t\tthrow new Exception(\"Very bad serialized var passed.\");\n\t\t\t\n\t\t$val = substr($val, 2, strlen($val) - 4); // Should be good.\n\t\t$val = self::unescapeString($val);\n\t\t$val = unserialize($val);\n\t\t\n\t\treturn $val;\n\t}", "public function unserialize($value)\n {\n $type = $this->getDataType();\n\n if ($type === 'json') {\n $value = json_decode($value, true);\n } elseif ($type === 'array') {\n $value = json_decode($value, true);\n } elseif ($type === 'list') {\n $value = explode(',', $value);\n } elseif ($type === 'boolean') {\n $value = (bool) $value;\n } elseif ($type === 'integer') {\n $value = (int) $value;\n } elseif ($type === 'float') {\n $value = (float) $value;\n }\n\n return $value;\n }", "function unserialize ( $data ) {\n return unserialize( $data );\n }", "public function unserialize($string)\n {\n $result = array();\n parse_str($string, $result);\n\n return $result;\n }", "abstract public function decode($data);", "public static function decode($encoded) {\n return parent::decode($encoded);\n }", "public function decodeValue($value)\n {\n if ($value !== false) {\n if ($this->format == self::JSON) {\n $value = json_decode($value, true);\n } else if ($this->format == self::PHP) {\n $value = unserialize($value);\n }\n }\n\n return $value;\n }", "public function unserialize($string)\n\t{\n\t\t$unserialized = unserialize($string);\n\n\t\tif ( ! is_array($unserialized)) {\n\t\t\tthrow new Scil_Services_Model_Decorator_Exception(__METHOD__.' unserialize failed to produce correct property array from string : '.$string);\n\t\t}\n\n\t\tforeach ($unserialized as $key => $value) {\n\t\t\tif ( ! property_exists($this, $key)) {\n\t\t\t\tthrow new Scil_Services_Model_Decorator_Exception(__METHOD__.' trying to set a property that does not exists : '.$key);\n\t\t\t}\n\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "public function unserialize($serialized)\n {\n $temp = json_decode($serialized);\n\n if (isset($temp->url)) {\n $this->url = $temp->url;\n }\n\n if (isset($temp->action)) {\n $this->action = $temp->action;\n }\n\n if (isset($temp->filename)) {\n $this->filename = $temp->filename;\n }\n }", "function s2o( $str, $assoc = false ) {\n\t\treturn json_decode( $str, $assoc );\n\t}", "abstract public static function decode($string): array;", "function maybe_unserialize($data)\n {\n }" ]
[ "0.6515251", "0.6501372", "0.61641085", "0.61190814", "0.61153203", "0.5894037", "0.5891624", "0.5775682", "0.57551986", "0.573713", "0.57226884", "0.56602275", "0.5641515", "0.5571057", "0.5541177", "0.5496675", "0.54868853", "0.5457735", "0.54435647", "0.5427161", "0.5398877", "0.53959113", "0.5353111", "0.533234", "0.53194493", "0.53178424", "0.5308851", "0.5302887", "0.52946305", "0.52927214", "0.5283764", "0.52489567", "0.5201615", "0.51678246", "0.5152962", "0.50838375", "0.50837934", "0.5079192", "0.50695866", "0.5062008", "0.5050557", "0.5041517", "0.5034994", "0.5018024", "0.5009896", "0.50062734", "0.4980284", "0.49781817", "0.49556836", "0.49556836", "0.49556836", "0.49556836", "0.49556836", "0.49533927", "0.49480483", "0.49210387", "0.49051026", "0.4904266", "0.49030507", "0.4886019", "0.48758924", "0.48734948", "0.4870936", "0.4863573", "0.48570317", "0.4854377", "0.48519087", "0.483689", "0.4836686", "0.48351988", "0.48302573", "0.48233706", "0.48135182", "0.47975904", "0.47930384", "0.4783891", "0.4778862", "0.47702762", "0.47699508", "0.47612986", "0.47520852", "0.47493085", "0.47467318", "0.4746619", "0.47449875", "0.47393486", "0.4736862", "0.4733437", "0.4729047", "0.47220504", "0.47075364", "0.46959996", "0.4694533", "0.4692678", "0.46851432", "0.46731195", "0.46716297", "0.466675", "0.4665362" ]
0.6062301
6
Serializes card to serialization string.
public function serialize(Card $card);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serialize() \n {\n return serialize([\n 'boardingCardNumber'=>$this->boardingCardId,\n 'arrival'=>$this->arrival, \n 'departure'=>$this->departure, \n 'passenger'=>$this->passenger,\n 'reference'=>$this->reference,\n 'busNo'=>$this->busNo,\n 'platformNo'=>$this->platformNo\n ]);\n }", "public function __toString(): string\n {\n return \"For card number [{$this->cardNumber}] few cards found\";\n }", "public function strRepresentation() {\n\t\t$retstr = \"\";\n\t\t$retstr .= \"Card \".$this->name.\" - \".$this->id.\" is a(n) \".$this->getTypeAsStr().\" card with a cost of \".$this->cost.\".<br />It boosts the following stats:<br />\";\n\t\t$retstr .= \"Body: \";\n\t\t$retstr .= print_r($this->body, true);\n\t\t$retstr .= \"<br />Mind: \";\n\t\t$retstr .= print_r($this->mind, true);\n\t\t$retstr .= \"<br />Soul: \";\n\t\t$retstr .= print_r($this->soul, true);\n\t\t$retstr .= \"<br />And gives a vitality boost of \".$this->vit;\n\t\treturn $retstr;\n\t}", "public function printCardInfo() {\n\t\tprint $this->strRepresentation();\n\t}", "function serialise(): string;", "public function __toString()\n {\n return 'CardGame32 : ' . count($this->cards) . ' carte(s)';\n }", "public function __toString() {\n\t\t$ret = $this->getName() . \" [\" . $this->getGold() . \"]\";\n\n\t\tif ($this->getDoneTurn()) {\n\t\t\t$ret .= \" - DONE\";\n\t\t}\n\n\t\t$ret .= \"\\n\";\n\t\n\t\t$ret .= $this->getCardHand() . \"\\n\";\n\t\t$ret .= $this->getCardPublicStand() . \"\\n\";\n\t\t$ret .= $this->getCardHiddenStand() . \"\\n\";\n\n\t\tif (count($this->getCardAux()) > 0) {\n\t\t\t$ret .= $this->getCardAux() . \"\\n\";\n\t\t}\n\n\t\treturn $ret;\n\t}", "public function toString() : void\n {\n $out = serialize($this);\n \n }", "public function serialize(): string\n {\n return $this->toRawString();\n }", "public function printCard($card)\n {\n $card->printHtml();\n }", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize();", "public function serialize();", "public function serialize();", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\FuturePay\\SDK\\CreditDecisioning\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\FuturePay\\SDK\\CreditDecisioning\\ObjectSerializer::sanitizeForSerialization($this));\n }", "function networkSerialize() : string{\n\t\treturn \"\\x00\" . $this->ids . $this->data . $this->skyLight . $this->blockLight;\n\t}", "final public function serialize(): string\n {\n return \\serialize($this);\n }", "private function _serialize()\r\n {\r\n $values = array(count($this->_items));\r\n foreach ($this->_items as $item)\r\n {\r\n $itemArr = $item->asArray();\r\n foreach ($this->_struct as $key)\r\n {\r\n $values[] = is_null($itemArr[$key]) ? '---' : $itemArr[$key];\r\n }\r\n }\r\n if ($this->getDeliveryGrossAmount() > 0)\r\n {\r\n $values[0]++;\r\n $values[] = 'Delivery';\r\n $values[] = 1;\r\n $values[] = number_format($this->getDeliveryNetAmount(), 2);\r\n $values[] = number_format($this->getDeliveryTaxAmount(), 2);\r\n $values[] = number_format($this->getDeliveryGrossAmount(), 2);\r\n $values[] = number_format($this->getDeliveryGrossAmount(), 2);\r\n }\r\n\r\n return implode(':', $values);\r\n }", "public function serialize(): string\n {\n return serialize($this->toArray());\n }", "public function saveCard($value) {\n if (is_string($value)) {\n $value = new \\Kendo\\JavaScriptFunction($value);\n }\n\n return $this->setProperty('saveCard', $value);\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\br.com.conductor.pier.api.v2.invoker\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function toSerial() {\n\t\treturn serialize($this->toArray());\n\t}", "public abstract function serialize();", "public function serialize()\n {\n return serialize(array(\n $this->acl,\n $this->securityIdentity,\n $this->id,\n $this->mask,\n $this->isGranting,\n $this->strategy,\n $this->auditFailure,\n $this->auditSuccess,\n ));\n }", "public function testToString()\n\t{\n\t\t$suit = 's';\n\t\t$rank = '2';\n\t\t$Card = new Card($suit, $rank);\n\t\tif ($Card->__toString() !== ($rank . $suit))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (\"$Card\" !== ($rank . $suit))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t/* test 10 */\n\t\t$suit = 's';\n\t\t$rank = '10';\n\t\t$Card = new Card($suit, $rank);\n\t\tif ($Card->__toString() !== ($rank . $suit))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (\"$Card\" !== ($rank . $suit))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t/* test face card */\n\t\t$suit = 's';\n\t\t$rank = 'A';\n\t\t$Card = new Card($suit, $rank);\n\t\tif ($Card->__toString() !== ($rank . $suit))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (\"$Card\" !== ($rank . $suit))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// all tests passed\n\t\treturn true;\n\t\t\n\t}", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Dcm\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Dcm\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n\t{\n\t\treturn $this->serialize();\n\t}", "public function __toString()\n\t{\n\t\treturn (string) $this->exportTo(CidadePeer::DEFAULT_STRING_FORMAT);\n\t}", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this));\n }", "function ezcreditcardType ()\n {\n $this->eZDataType( self::DATA_TYPE_STRING, ezi18n( 'kernel/classes/datatypes', 'Credit card', 'Datatype name' ), array( \n 'serialize_supported' => true , \n 'object_serialize_map' => array( \n 'data_text' => 'text' \n ) \n ) );\n }", "public function get_card(){ return $this->_card;}", "public function getCard() {\n return $this->card;\n }", "public function serialize(ResourceInterface $resource, ResourceSerializationContext $context): string;", "public function exportToString()\n {\n $output = \"\"; \n $output .= \"<product>\" . PHP_EOL; \n $output .= \"<merchant_ref>{$this->sku}</merchant_ref>\" . PHP_EOL; \n $output .= \"<product_url>{$this->url}</product_url>\" . PHP_EOL; \n $output .= \"<image_url>{$this->imageUrl}</image_url>\" . PHP_EOL; \n $output .= \"<price>{$this->price}</price>\" . PHP_EOL; \n $output .= \"<shipping_cost>{$this->shippingCost}</shipping_cost>\" . PHP_EOL; \n $output .= \"<designation>{$this->title}</designation>\" . PHP_EOL; \n $output .= \"<description><![CDATA[{$this->description}]]></description>\" . PHP_EOL; \n $output .= \"<in_stock>{$this->instock}</in_stock>\" . PHP_EOL; \n $output .= \"<condition>{$this->condition}</condition>\" . PHP_EOL; \n $output .= \"<category>\" . $this->exportCategories() . \"</category>\" . PHP_EOL; \n $output .= \"</product>\" . PHP_EOL; \n\n return $output; \n }", "public function card()\n {\n if ( ! $this->bean->card) $this->bean->card = R::dispense('card');\n return $this->bean->card;\n }", "abstract public function serialize();", "abstract public function serialize();", "public function __toString()\n {\n return $this->getHex();\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\eSagu\\Amzn\\RePricing\\V1\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\eSagu\\Amzn\\RePricing\\V1\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\eSagu\\Amzn\\RePricing\\V1\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\eSagu\\Amzn\\RePricing\\V1\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function serialize()\n {\n // TODO: Implement serialize() method.\n }", "public function __toString(): string\n {\n return $this->toJSON();\n }", "public function __toString(): string\n {\n return serialize($this->toArray());\n }", "public function toString()\n {\n /** @var $this TrainBoardingCard */\n return 'Take train ' . $this->train . ' from ' . $this->get('departureLocation') . ' to ' . $this->get('arrivalLocation') . '. Sit in seat ' . $this->get('seat') . '.';\n }", "public function serialize()\n {\n }", "public function serialize()\n {\n }", "public function __toString() {\n $outstr = \"Cobrança\\n \";\n $apelido = '';\n if ($this->contract != null) {\n if ($this->contract->imovel != null) {\n $apelido = $this->contract->imovel->apelido;\n }\n }\n $outstr .= 'Contract Imóvel ' . $apelido . '\\n';\n // $outstr .= $this->billingitemsinjson;\n return $outstr;\n }", "public function __toString(): string {\n return $this->saveXML();\n }", "public function toString()\n\t\t{\t\t\tif (count($this->serialized) > 0 && array_key_exists(0, $this->serialized)) {\n\n\t\t\t\t// Get class of first item\n\t\t\t\t$itemName = key($this->serialized[0]);\n\t\t\t\t$root = \\ChickenWire\\Util\\Str::pluralize($itemName);\n\n\t\t\t} else {\n\t\t\t\t$root = null;\n\t\t\t}\n\t\t\t\n\t\t\t// Create XML writer\n\t\t\t$this->writer = new \\XmlWriter();\n\t\t\t$this->writer->openMemory();\n\t\t\tif (!is_null($root)) $this->writer->startElement($root);\n\t\t\t$this->write($this->serialized);\n\t\t\tif (!is_null($root)) $this->writer->endElement();\n\t\t\t$this->writer->endDocument();\n\t\t\t$xml = $this->writer->outputMemory(true);\n\n\n\n//\t\t\tvar_dump($this->serialized);\n\t\t\treturn $xml;\n\n\n\t\t\t//return json_encode($this->serialized);\n\t\t}", "public function serialize()\n {\n return serialize([$this->id,$this->matric_number]);\n }", "public function __toString()\n\t{\n\t\treturn $this->dump();\n\t}", "public function getCardsn()\n {\n return $this->cardsn;\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString(): String\n {\n return $this->amount . \"\" . $this->currency;\n }", "public function __toString () {\n return $this->encode();\n }", "public function getCard(): ?string\n {\n return $this->card;\n }", "public function __toString(): string\n {\n return $this->toJson();\n }", "public function card(CardInterface $card)\n\t{\n\t\treturn $this->respond(self::RESPONSE_TYPE_CARD, $card->toArray());\n\t}", "public function output()\n {\n $this->setFNAppropriately();\n\n\t$text = 'BEGIN:VCARD'. self::endl;\n\t$text .= 'VERSION:'.self::VERSION . self::endl;\n \n $text .= $this->getUIDAsProperty()->output();\n\n // FIXME: Remove the newlines in Property::__toString and add them here.\n\tforeach ($this->data as $key=>$values)\n\t{\n\t if (!\\is_array($values))\n \t {\n\t\t$text .= $values->output();\n\t\tcontinue;\n\t }\n \n\t foreach ($values as $value)\n\t {\n\t\t$text .= $value->output();\n }\n }\n\n\t$text .= 'END:VCARD'.self::endl;\n\treturn self::foldOutput($text);\n }", "public function getCard()\n {\n return $this->card;\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function toString() {\n\t\treturn serialize($this->_value);\n\t}", "public function serialize()\r\n {\r\n $data = $this->toArray();\r\n\r\n return serialize($data);\r\n }", "public function serialize():String {\n\n\t\treturn json_encode($this->data);\n\n\t}", "public function serialize(){ }", "public function toString()\n {\n return serialize($this->getData());\n }", "public function SerializeObject () {\n return serialize ($this);\n }", "public function __tostring() {\n\n\t\t\t//convet to string\n\t\t\treturn \"{\".\n\t\t\t\t\t\t\"id:\".$this->_id.\n\t\t\t\t\t\t\"type:\".$this->_type.\n\t\t\t\t\t\t\"path:\".$this->_path.\n\t\t\t\t\t\t\"name:\".$this->_name.\n\t\t\t\t\t\"}\";\n\n\t\t}", "public function __toString() : string\n {\n return $this->toISOZonal();\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this));\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\Bytescout\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\Bytescout\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }", "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\ChrisHemmings\\Electio\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\ChrisHemmings\\Electio\\ObjectSerializer::sanitizeForSerialization($this));\n }", "static function vcard_encode($data)\n {\n foreach ((array)$data as $type => $entries) {\n // valid N has 5 properties\n while ($type == \"N\" && is_array($entries[0]) && count($entries[0]) < 5) {\n $entries[0][] = \"\";\n }\n\n // make sure FN is not empty (required by RFC2426)\n if ($type == \"FN\" && empty($entries)) {\n $entries[0] = $data['EMAIL'][0][0];\n }\n\n foreach ((array)$entries as $entry) {\n $attr = '';\n if (is_array($entry)) {\n $value = array();\n foreach ($entry as $attrname => $attrvalues) {\n if (is_int($attrname)) {\n if (!empty($entry['base64']) || $entry['encoding'] == 'B') {\n $attrvalues = base64_encode($attrvalues);\n }\n $value[] = $attrvalues;\n }\n else if (is_bool($attrvalues)) {\n // true means just a tag, not tag=value, as in PHOTO;BASE64:...\n if ($attrvalues) {\n // vCard v3 uses ENCODING=b (#1489183)\n if ($attrname == 'base64') {\n $attr .= \";ENCODING=b\";\n }\n else {\n $attr .= strtoupper(\";$attrname\");\n }\n }\n }\n else {\n foreach((array)$attrvalues as $attrvalue) {\n $attr .= strtoupper(\";$attrname=\") . self::vcard_quote($attrvalue, ',');\n }\n }\n }\n }\n else {\n $value = $entry;\n }\n\n // skip empty entries\n if (self::is_empty($value)) {\n continue;\n }\n\n $vcard .= self::vcard_quote($type) . $attr . ':' . self::vcard_quote($value) . self::$eol;\n }\n }\n\n return 'BEGIN:VCARD' . self::$eol . 'VERSION:3.0' . self::$eol . $vcard . 'END:VCARD';\n }", "public function __toString(){\r\n\t\t$data = serialize($this->_data);\r\n\t\t// Obfuscate the data with base64 encoding\r\n\t\t$data = base64_encode($data);\r\n\t\treturn $data;\r\n\t}", "public function toString(): string\n {\n return $this->type->typeName() . '=' . $this->value->rfc2253String();\n }", "public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Caplinked\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Caplinked\\ObjectSerializer::sanitizeForSerialization($this));\n }" ]
[ "0.6130203", "0.59581643", "0.59273213", "0.5885571", "0.58813125", "0.5772732", "0.5638529", "0.5582901", "0.553565", "0.55190796", "0.55066", "0.55066", "0.55066", "0.55066", "0.55066", "0.55066", "0.55061454", "0.55061454", "0.5470354", "0.5470354", "0.5470354", "0.54401964", "0.54281276", "0.535968", "0.5353501", "0.53388774", "0.5330075", "0.53222287", "0.53222287", "0.53222287", "0.53222287", "0.53222287", "0.53222287", "0.53222287", "0.5294286", "0.52939695", "0.52882946", "0.52556854", "0.5237441", "0.5231921", "0.52269524", "0.52264154", "0.52264154", "0.52108455", "0.5198019", "0.5195863", "0.5194164", "0.51818645", "0.51785064", "0.51768154", "0.51768154", "0.5169601", "0.51604944", "0.51604944", "0.51583445", "0.51583004", "0.5157981", "0.51481706", "0.5144773", "0.5144773", "0.51399004", "0.51249135", "0.5116631", "0.5110081", "0.5108625", "0.5096716", "0.5096184", "0.5096184", "0.5095166", "0.5066398", "0.5058332", "0.5057528", "0.5054636", "0.5048602", "0.5048522", "0.5046643", "0.5046643", "0.5046449", "0.50450975", "0.50370836", "0.50330704", "0.5030433", "0.5027369", "0.50210994", "0.5017908", "0.5015936", "0.5008424", "0.5008424", "0.5008424", "0.5008424", "0.5008424", "0.5008424", "0.500553", "0.49967203", "0.49967203", "0.49927276", "0.49759215", "0.49717134", "0.4970486", "0.49702892" ]
0.84580797
0
A basic test example.
public function test_is_new_user_can_register() { $data = factory('App\User')->make(); $this->post(route('register'), $data->toArray()) ->assertRedirect("/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExample()\n {\n }", "public function test() {\n \t\n\t\tprint_r('hello stef');\n \t\n }", "public function testBasicExample()\n {\n $this->assertTrue(true);\n }", "public function testBasicExample()\n {\n $this->assertEquals(1, 1);\n }", "function test_sample() {\n\n\t\t$this->assertTrue( true );\n\n\t}", "public function testBasicExample()\n {\n $this->visit('/')\n ->see('TROLOLOLO');\n }", "public function testBasicTest()\n {\n\n }", "public function testExample()\n {\n dump(\"testExample\");\n $this->assertTrue(true);\n }", "public function testExample()\n\t{\n\t\t$this->assertTrue(true);\n\t}", "public function testExample()\n {\n //this test is empty as we have not yet decided if we want to use dusk\n\n // $this->get('/')\n // ->click('About')\n // ->seePageIs('/about');\n }", "function testSample() {\n\t\t$this->assertTrue( true );\n\t}", "public function test() {\n\n\t}", "public static function test() {\r\n echo 'this is a test';\r\n }", "public function testExample()\n {\n $this->assertTrue(true);\n \n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n // lets make it risky to destroy the green\n }", "public function testBasicExample()\n\t{\n \t$response = $this->call('GET', '/');\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t}", "public function testExample()\n {\n $this->visit('ticket')\n ->see('Listado de Tickets')\n ->seeLink('Ver Ticket') \n ->visit('ticket/1')\n ->see('Quod et autem sed')\n ->seeLink('Ver todos los tickets')\n ->click('Ver todos los tickets')\n ->see('Listado de Tickets')\n ->seeLink('Agregar un ticket', 'ticket/crear');\n }", "function test_sample() {\n\t\t$this->assertTrue( true );\n\t}", "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('Login to Airtel Sales Force System');\n });\n }", "public function testBasicExample()\n {\n $this->visit('/')\n ->see('API tester');\n }", "public function testExample()\n {\n $response = $this->get('/api/test/');\n\n $response->assertStatus(200);\n }", "public function testBasicExample()\n\t{\n\t\t$response = $this->call('GET', '/');\n\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t}", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->assertTrue(true);\n }", "public function testBasicExample()\n {\n $this->visit('/')\n ->see('URL Notes');\n }", "public function testBasicTest()\n {\n $response = $this->get('/test');\n\n $response->assertStatus(200);\n\n $response->assertSeeText('小粽子');\n\n }", "function test_sampleme() {\n\t\t// Replace this with some actual testing code.\n\t\t$this->assertTrue( true );\n\t}", "public function testBasic()\n {\n $this->assertEquals(1, 1);\n }", "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/news/create')\n ->type('title', '123')\n ->type('text', 'test123')\n ->press('Добавить новость')\n\n ->assertSee('Мало букв в поле Заголовок');\n });\n }", "public function testBasicTest()\n {\n $response = $this->get('/dangthi');\n $response->assertStatus(200);\n }", "public function testBasicExample()\n {\n $this->visit('/')\n ->see('html');\n }", "public function testExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs(User::find(1))\n ->visitRoute('subscription', ['id' => '1'])\n ->radio('gender', 'L')\n ->type('fullName', 'GHF')\n ->type('birthdate', '04/24/1999')\n ->type('phone', '088177552')\n ->type('address', 'Bandung')\n ->press('Submit');\n });\n }", "public function testExample(): void\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->browse(function ($browser , $second) {\n $browser->visit('/')\n //->assertVueContains('name','sina','@editor');\n ->assertVue('name','sina','@editor');\n // ->pause(3000)\n // ->click('.test');\n // ->assertSee('Register')\n // ->value('#name' , 'sina')\n // ->value('#email' , Str::random(10).'@gmail.com')\n // ->value('#password' , '123456789')\n // ->value('#password-confirm' , '123456789')\n // ->click('button[type=\"submit\"]')\n // ->assertPathIs('/home')\n // ->refresh()\n // ->script('alert(\"ok\")');\n });\n }", "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->with('.special-text', function ($text) {\n $text->assertSee('title1');\n });\n\n // 確認商品數量\n $browser->click('.check_product')\n ->waitForDialog(5)\n ->assertDialogOpened('商品數量充足')\n ->acceptDialog();\n\n // 設定中斷點\n eval(\\Psy\\sh());\n });\n }", "public function testExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs(\"[email protected]\")\n ->visit(\"/home\");\n });\n }", "public function testExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('React JS examples');\n });\n }", "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('Laravel');\n });\n }", "public function testBasicExample()\n {\n $response = $this->call('GET', '/');\n\n $this->assertResponseOk();\n }", "public function test_example()\n {\n $this->assertTrue(true);\n }", "public function test_example()\n {\n $this->assertTrue(true);\n }", "public function test_example()\n {\n $this->assertTrue(true);\n }", "public function test_example()\n {\n $this->assertTrue(true);\n }", "public function testExample()\n {\n $this->visit('/')\n ->see('WELCOME');\n }" ]
[ "0.7977854", "0.77753335", "0.76435244", "0.7610687", "0.754975", "0.75405073", "0.75393844", "0.74867696", "0.74400353", "0.7432722", "0.7412231", "0.73547494", "0.73383486", "0.7337478", "0.7308627", "0.7305436", "0.72681046", "0.7260569", "0.72460294", "0.7215908", "0.71952444", "0.7174572", "0.71719897", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7171955", "0.7167066", "0.715222", "0.7132968", "0.7123071", "0.7119535", "0.7109628", "0.70886546", "0.70870566", "0.70733815", "0.7068619", "0.7050562", "0.7045842", "0.7031207", "0.7030824", "0.7030337", "0.70302093", "0.70302093", "0.70302093", "0.70302093", "0.70291555" ]
0.0
-1
Registers services on the given container. This method should only be used to configure services and parameters. It should not get services.
public function register(Container $container) { /** * @param Container $container A container instance. * @return LoggerConfig */ $container['logger/config'] = function (Container $container) { $config = $container['config']; $loggerConfig = new LoggerConfig($config['logger']); return $loggerConfig; }; /** * @return \Charcoal\Factory\FactoryInterface */ $container['logger/processor/factory'] = function () { return new GenericFactory([ 'map' => [ 'memory-usage' => MemoryUsageProcessor::class, 'uid' => UidProcessor::class ] ]); }; /** * @return StreamHandler|null */ $container['logger/handler/stream'] = function (Container $container) { $loggerConfig = $container['logger/config']; $handlerConfig = $loggerConfig['handlers.stream']; if ($handlerConfig['active'] !== true) { return null; } $level = $handlerConfig['level'] ?: $loggerConfig['level']; return new StreamHandler($handlerConfig['stream'], $level); }; /** * @return FactoryInterface */ $container['logger/handler/browser-console'] = function (Container $container) { $loggerConfig = $container['logger/config']; $handlerConfig = $loggerConfig['handlers.console']; if ($handlerConfig['active'] !== true) { return null; } $level = $handlerConfig['level'] ?: $loggerConfig['level']; return new BrowserConsoleHandler($level); }; /** * @return Container */ $container['logger/handlers'] = function (Container $container) { $loggerConfig = $container['logger/config']; $handlersConfig = $loggerConfig['handlers']; $handlers = new Container(); $handlerFactory = $container['logger/handler/factory']; foreach ($handlersConfig as $h) { $handlers[$h['type']] = function () use ($h, $handlerFactory) { $type = $h['type']; $handler = $handlerFactory->create($type); return $handler; }; } return $handlers; }; /** * Fulfills the PSR-3 dependency with a Monolog logger. * * @param Container $container A container instance. * @return \Psr\Log\Logger */ $container['logger'] = function (Container $container) { $loggerConfig = $container['logger/config']; if ($loggerConfig['active'] !== true) { return new NullLogger(); } $logger = new Logger('Charcoal'); $memProcessor = new MemoryUsageProcessor(); $logger->pushProcessor($memProcessor); $uidProcessor = new UidProcessor(); $logger->pushProcessor($uidProcessor); $consoleHandler = $container['logger/handler/browser-console']; if ($consoleHandler) { $logger->pushHandler($consoleHandler); } $streamHandler = $container['logger/handler/stream']; if ($streamHandler) { $logger->pushHandler($streamHandler); } return $logger; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerServices()\n {\n /**\n * @var $container Container\n */\n $container = $this->getContainer();\n\n $services = $container->settings['services'];\n\n if (is_array($services) && !empty($services)) {\n foreach ($services as $service) {\n /**\n * @var $instance ServiceInterface\n */\n $instance = new $service();\n\n $container[$instance->name()] = $instance->register();\n\n unset($instance);\n }\n }\n\n unset($container, $services, $service);\n }", "public function register(Container $container): void;", "public function register(\\Interop\\Container\\ContainerInterface $container) {\n // Set default settings\n $container['settings'] = [\n 'httpVersion' => '1.1',\n 'responseChunkSize' => 4096,\n 'outputBuffering' => 'append',\n 'determineRouteBeforeAppMiddleware' => false,\n 'displayErrorDetails' => false,\n 'addContentLengthHeader' => true,\n 'routerCacheFile' => false,\n ];\n // Register default services\n $provider = new \\Slim\\DefaultServicesProvider();\n $provider->register($container);\n // Set registered closures as services\n foreach($container->toArray() as $id => $value) {\n if(is_object($value) && $value instanceof \\Closure) {\n unset($container[$id]);\n $container[$id] = $container->service($value);\n }\n }\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 register(Container $container)\n {\n $config = Config::getInstance();\n\n $configDir = __ROOT__ . 'config/';\n $files = scandir($configDir);\n if (!empty($files)) {\n foreach ($files as $file) {\n $config->load($configDir.$file);\n }\n }\n\n $container->add('config', $config);\n }", "public static function setupDependencyInjection(Container $container)\n {\n\n }", "private function registerServices() {\n // Modules\n $this->addService('modules', 'MyTravel\\Core\\Service\\Modules::setService');\n // Routing\n $this->addService('routing', 'MyTravel\\Core\\Service\\Routing::setService');\n // Event dispatcher\n $this->serviceContainer\n ->register('events', 'Symfony\\Component\\EventDispatcher\\EventDispatcher');\n // Database\n $this->addService('db', 'MyTravel\\Core\\Service\\Db::setService');\n // Access\n $this->addService('access', 'MyTravel\\Core\\Service\\Access::setService');\n }", "protected function registerServices()\n {\n\n $di = new FactoryDefault();\n\n /**\n * Read services\n */\n include CORE_PATH . \"/config/services.php\";\n\n /**\n * Get config service for use in inline setup below\n */\n $config = $di->getConfig();\n\n\n include CORE_PATH . '/config/loader.php';\n\n \n\n $this->setDI($di);\n }", "protected function registerServices(): void\n {\n $this->registerKernels();\n $this->registerFactories();\n $this->registerMicroServices();\n }", "public function injectContainer($container);", "public function process(ContainerBuilder $container): void\n {\n if (! $container->has(self::SERVICE_NAME)) {\n return;\n }\n\n $definition = $container->findDefinition(self::SERVICE_NAME);\n\n $taggedServices = $container->findTaggedServiceIds(self::TAG_NAME);\n $listeners = [];\n\n foreach ($taggedServices as $id => $tags) {\n $listeners[] = new Reference($id);\n }\n\n $definition->addMethodCall('register', [$listeners]);\n }", "protected function registerContainer()\n {\n app()->singleton(\n 'Container',\n Container::class\n );\n }", "public function register(Container $container)\n {\n /**\n * @param Container $container The Pimple DI container.\n * @return FilePondConfig\n */\n $container['file-pond/config'] = function (Container $container) {\n $config = $container['config']->get('contrib.file-pond.config') ?: [];\n return new FilePondConfig($config);\n };\n\n /**\n * @param Container $container The Pimple DI container.\n * @return FilePondService\n */\n $container['file-pond/service'] = function (Container $container) {\n return new FilePondService(\n $container['file-pond/config'],\n $container['filesystem/config'],\n $container['filesystem/manager'],\n $container['filesystems']\n );\n };\n }", "public function register(Container $container)\n {\n $config = $container['settings'];\n\n $container['encoder'] = function() use ($config) {\n $encoder = new JsonApiEncoder($config);\n\n return $encoder;\n };\n }", "private function configureContainer()\n {\n // Build the DI container.\n $builder = new ContainerBuilder;\n $builder->addDefinitions(__DIR__ . '/config/di.php');\n\n $this->container = $builder->build();\n }", "public function registerServices() {\n\t\t$services = $this->getServices();\n\t\t$services = array_map( [ $this, 'instantiateServices' ], $services );\n\t\t\n\t\tarray_walk( $services, function ( Service $service ) {\n\t\t\t$service->register();\n\t\t} );\n\t}", "public function define(Container $container)\n {\n foreach ($this->providers as $provider) {\n $this->defineForProvider($container, $provider);\n }\n }", "public function register_services(): void {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( \\count( $this->service_container ) > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Add the injector as the very first service.\n\t\t$this->service_container->put(\n\t\t\tstatic::SERVICE_PREFIX . static::INJECTOR_ID,\n\t\t\t$this->injector\n\t\t);\n\n\t\t$services = $this->get_service_classes();\n\n\t\tif ( $this->enable_filters ) {\n\t\t\t/**\n\t\t\t * Filter the default services that make up this plugin.\n\t\t\t *\n\t\t\t * This can be used to add services to the service container for\n\t\t\t * this plugin.\n\t\t\t *\n\t\t\t * @param array<string, string> $services Associative array of identifier =>\n\t\t\t * class mappings. The provided\n\t\t\t * classes need to implement the\n\t\t\t * Service interface.\n\t\t\t */\n\t\t\t$filtered_services = apply_filters(\n\t\t\t\tstatic::HOOK_PREFIX . static::SERVICES_FILTER,\n\t\t\t\t$services\n\t\t\t);\n\n\t\t\t$services = $this->validate_services( $filtered_services );\n\t\t}\n\n\t\twhile ( null !== key( $services ) ) {\n\t\t\t$id = $this->maybe_resolve( key( $services ) );\n\n\t\t\t$class = $this->maybe_resolve( current( $services ) );\n\n\t\t\t// Delay registering the service until all requirements are met.\n\t\t\tif (\n\t\t\t\tis_a( $class, HasRequirements::class, true )\n\t\t\t) {\n\t\t\t\tif ( ! $this->requirements_are_met( $id, $class, $services ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->schedule_potential_service_registration( $id, $class );\n\n\t\t\tnext( $services );\n\t\t}\n\t}", "public function register(Container $container)\n {\n $container[\"tplLoader.service\"] = function (Container $container) {\n $loader = new \\SlaxWeb\\View\\Loader\\PHP($container[\"response.service\"], $container[\"logger.service\"]());\n return $loader->setTemplateExt($container[\"config.service\"][\"view.templateExtension\"]);\n };\n }", "public static function register_services(): void\n {\n foreach (self::get_services() as $class) {\n $service = self::instantiate($class);\n if (method_exists($class, 'register')) {\n $service->register();\n }\n }\n }", "public function register($container) {\n $config = Config::getInstance();\n\n $container->sets([\n 'log' => function() use($config){\n if($config->get('debug')){\n $log = new Log();\n } else {\n $log = new File($config->get('log.file', \"/tmp/j.log\"));\n }\n if($config->get('log.defer') && method_exists($log, 'setDefer')){\n $log->setDefer();\n }\n\n if($level = $config->get('log.level') && method_exists($log, 'setMask')){\n $log->setMask($level);\n }\n return $log;\n },\n ], false);\n\n if($config->get('tracer.enable')){\n $container->sets([\n 'tracer' => function() use($config, $container){\n $logger = $config->get('tracer.logger');\n if($logger && is_string($logger)){\n $logger = new File($logger);\n } elseif(!$logger && $container->has('log')){\n $logger = $container->get('log');\n }\n\n if(!is_object($logger)){\n throw new InvalidArgumentException(\"tracer.logger\");\n }\n\n $tracer = new Tracer($logger);\n if($config->get('tracer.debugTrace')){\n $tracer->enableDebugTrace = true;\n }\n return $tracer;\n },\n ], false);\n }\n\n $container->sets([\n 'errorHandle' => [\n 'class' => 'j\\error\\Handle',\n 'arguments' => [\n '@log'\n ]\n ],\n ], false);\n }", "public function register(Container $container) {\n $container[RequestFactoryRegisterMiddleware::class] = function(Container $container) {\n return new RequestFactoryRegisterMiddleware($container);\n };\n\n $container[Client::class] = function(Container $container) {\n $baseUrl = $container['settings']['client']['baseUrl'];\n\n return new Client([\n \"base_uri\" => $baseUrl\n ]);\n };\n }", "protected function registerBaseServices()\n {\n $container = $this->getContainer();\n\n $container->share('logger', function () use ($container) {\n return new Logger($container->get('config'));\n });\n\n $this->registerService(new Providers\\ConfigProvider());\n $this->registerService(new Providers\\FileSystemProvider());\n $this->registerService(new Providers\\ParserManagerProvider());\n $this->registerService(new Providers\\BackendProvider());\n }", "public static function register_services()\n {\n foreach (self::get_services() as $class) {\n $service = self::instantiate($class);\n if (method_exists($service, 'register')) {\n $service->register();\n }\n }\n }", "public function register(Container $c)\n {\n $c->register(new CsrfServiceProvider());\n $c->register(new FormServiceProvider());\n $c->register(new HttpFragmentServiceProvider());\n $c->register(new JmsSerializerServiceProvider(), ['serializer.cacheDir' => $c['app.root'] . '/files/cache/jms.serializer']);\n $c->register(new LocaleServiceProvider());\n $c->register(new ServiceControllerServiceProvider());\n $c->register(new SwiftmailerServiceProvider(), [\n 'swiftmailer.use_spool' => isset($c['swiftmailer.use_spool']) ? $c['swiftmailer.use_spool'] : true,\n 'swiftmailer.options' => isset($c['swiftmailer.options']) ? $c['swiftmailer.options'] : [],\n ]);\n $c->register(new SessionServiceProvider(), [\n 'session.test' => isset($c['session.test']) ? $c['session.test'] : false,\n 'session.storage.save_path' => $c['app.root'] . '/files/session'\n ]);\n $c->register(new SecurityServiceProvider(), ['security.firewalls' => $c['security.firewalls']]);\n $c->register(new TranslationServiceProvider());\n $c->register(new ValidatorServiceProvider());\n\n $this->registerTwigServices($c);\n $this->registerDoctrineServices($c);\n $this->registerMagicServices($c);\n\n if (isset($c['debug']) && !empty($c['debug']) && class_exists(WebProfilerServiceProvider::class)) {\n $c->register(new WebProfilerServiceProvider(), [\n 'profiler.cache_dir' => $c['app.root'] . '/files/profiler',\n ]);\n }\n }", "public function register_services() {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( ! empty( $this->services ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$classes = $this->get_service_classes();\n\n\t\t$this->services = array_map(\n\t\t\t[ $this, 'instantiate_service' ],\n\t\t\t$classes\n\t\t);\n\n\t\tarray_walk( $this->services, function ( Service $service ) {\n\t\t\t$service->register();\n\t\t} );\n\t}", "public static function register_services()\n {\n foreach ( self::get_services() as $class )\n {\n $service = self::instantiate( $class );\n if( method_exists( $service, 'register' ) )\n $service->register();\n }\n }", "public function register($container)\n {\n parent::boot($this);\n $container['event.api.run'] = $this->fire('event.api.run');\n }", "public static function register_services()\n {\n foreach ( self::get_services() as $class ) {\n $service = self::instantiate( $class );\n if ( method_exists( $service, 'register' ) ) {\n $service->register();\n }\n }\n }", "public function process(ContainerBuilder $container)\n {\n if (!$container->has('ho_peter1018.service_helper.services.registry_registry')) {\n return;\n }\n $definition = $container->findDefinition('ho_peter1018.service_helper.services.registry_registry');\n\n // find all service IDs with the ho_peter1018.service_helper.services.registry_pool tag\n $taggedServices = $container->findTaggedServiceIds('ho_peter1018.service_helper.services.registry_pool');\n\n foreach ($taggedServices as $id => $tags) {\n // add the service to the registry service\n $definition->addMethodCall('add', [$id, new Reference($id), $tags]);\n }\n }", "public function registerServices() {\n\t\t$services = Config::inst()->get('FakeManager', 'services');\n\t\tif($services) {\n\t\t\tforeach($services as $origName => $fakeName) {\n\t\t\t\t$fakeObj = Injector::inst()->create($fakeName);\n\t\t\t\tif($this->db && $fakeObj instanceof FakeDatabaseConsumerInterface) {\n\t\t\t\t\t$fakeObj->setDb($this->db);\n\t\t\t\t}\n\t\t\t\t$this->services[$origName] = $fakeObj;\n\t\t\t\tInjector::inst()->registerService($fakeObj, $origName);\n\t\t\t}\n\t\t}\n\t}", "public function register(FisheryContainerInterface $container)\n {\n $container['console.application'] = $container->share(function ($c) {\n $console = new Console($c);\n $console->add(new LoadCommand());\n\n return $console;\n });\n }", "public function register()\n {\n # the configurators we want to insert into the set.\n $configurators = [\n \\BladeConfigurator::class => ['name' => 'blade', 'dataset' => 'view.blade', 'priority' => 'high'],\n \\TwigConfigurator::class => ['name' => 'twig', 'dataset' => 'view.twig'],\n \\MarkdownConfigurator::class => ['name' => 'markdown', 'dataset' => 'view.markdown'],\n ];\n\n # insert and then register with the DI container.\n foreach ($configurators as $abstract => $config) {\n $concrete = $this->insertWithCreate($abstract, $config);\n $this->container->set($config['name'], $concrete);\n }\n }", "public function register(Container $container)\n {\n $config = $container['settings']['logger'];\n\n $container['logger'] = function() use ($config) {\n $logger = new Logger($config['name']);\n $logger->pushProcessor(new UidProcessor());\n $logger->pushHandler(new StreamHandler($config['path'], $config['level']));\n\n return $logger;\n };\n }", "public function register(): void\n {\n $this->configure();\n $this->registerServices();\n }", "private function addMockServicesToContainer() {\n $this->registerServiceWithContainerMock('current_user', $this->getNewUserMock());\n $this->registerServiceWithContainerMock('entity_type.manager', $this->getNewEntityTypeManagerMock());\n }", "public static function register(ContainerBuilder $container)\n {\n if (!static::registerBefore($container, RegisterEventListenersAndSubscribersPass::class)) {\n parent::register($container);\n }\n }", "public function register(ContainerBuilder $container) {\n // We need to use the string here because otherwise the Drush class will\n // not be available to dereference with ::class.\n foreach (self::CLASS_DEPENDENCIES as $class) {\n if (!class_exists($class)) {\n return;\n }\n }\n\n $definitions = [];\n $definitions['media_mpx.importer'] = $this->importerCommand();\n $definitions['media_mpx.notification_queuer'] = $this->listenerCommand();\n\n $container->addDefinitions($definitions);\n }", "public static function register(ContainerInterface $c);", "protected function registerDatabaseServices(Container $container)\n {\n // The connection factory is used to create the actual connection instances on\n // the database. We will inject the factory into the manager so that it may\n // make the connections while they are actually needed and not of before.\n $container->singleton('db.factory', function ($container) {\n return new ConnectionFactory($container);\n });\n\n // The database manager is used to resolve various connections, since multiple\n // connections might be managed. It also implements the connection resolver\n // interface which may be used by other components requiring connections.\n $container->singleton('db', function ($container) {\n return new DatabaseManager($container, $container['db.factory']);\n });\n\n $container->bind('db.connection', function ($container) {\n return $container['db']->connection();\n });\n }", "public function registerTranslatorServices(Container $container)\n {\n static $provider = null;\n\n if ($provider === null) {\n $provider = new TranslatorServiceProvider();\n }\n\n $provider->register($container);\n }", "public function register(RouterContainer $container);", "public function registerServices(DiInterface $di): void\n {\n $di->getShared('config')->merge(new Config(require_once self::PATH . \"/config/config.php\"));\n\n require_once self::PATH . \"/config/services.php\";\n }", "public function register(ContainerInterface $container)\n {\n $container->set(UrlGeneratorInterface::class, function(ContainerInterface $c) {\n $urlGenerator = new UrlGenerator($c['route_collection'], $c['request_context']);\n $urlGenerator->setSslOn($c['config']->get('request.ssl', true));\n return $urlGenerator;\n });\n\n $container->addAlias('url_generator', UrlGeneratorInterface::class);\n }", "protected function prepareContainer()\n {\n $this -> container\n -> set('app', new InstanceService($this))\n -> set('config', new InstanceService($this -> config));\n }", "public function register(Container $container)\n {\n $container[\"SessionContract\"] = function ($c) {\n return new NativeSessionComponent();\n };\n }", "public function register(Container $pimple)\n {\n\n //\n // Set the debug level:\n //\n $pimple['debug'] = $pimple['config']->get('core.debug', false);\n\n //\n // Set a constant 'now' time\n //\n $pimple['now'] = function () use ($pimple) {\n return new \\DateTime('now');\n };\n\n //\n // Other service providers:\n //\n $pimple->register(new SessionServiceProvider());\n $pimple->register(new ServiceControllerServiceProvider());\n }", "public function register(Container $container)\n {\n $container['doctrine.relative_entities_paths'] = function (Container $container) {\n /** @var Kernel $kernel */\n $kernel = $container['kernel'];\n if ($kernel->getRootDir() !== $kernel->getPublicDir()) {\n /*\n * Standard edition\n */\n $relPaths = [\n \"../vendor/roadiz/roadiz/src/Roadiz/Core/Entities\",\n \"../vendor/roadiz/models/src/Roadiz/Core/AbstractEntities\",\n \"gen-src/GeneratedNodeSources\",\n ];\n } else {\n /*\n * Source edition\n */\n $relPaths = [\n \"src/Roadiz/Core/Entities\",\n \"vendor/roadiz/models/src/Roadiz/Core/AbstractEntities\",\n \"gen-src/GeneratedNodeSources\",\n ];\n }\n\n if (isset($container['config']['entities'])) {\n $relPaths = array_merge($relPaths, $container['config']['entities']);\n }\n\n return array_filter(array_unique($relPaths));\n };\n /*\n * Every path to parse to find doctrine entities\n */\n $container['doctrine.entities_paths'] = function (Container $container) {\n /*\n * We need to work with absolute paths.\n */\n /** @var Kernel $kernel */\n $kernel = $container['kernel'];\n $fs = new Filesystem();\n $absPaths = [];\n foreach ($container['doctrine.relative_entities_paths'] as $relPath) {\n $absolutePath = $kernel->getRootDir() . DIRECTORY_SEPARATOR . $relPath;\n if ($fs->exists($absolutePath)) {\n $absPaths[] = $kernel->getRootDir() . DIRECTORY_SEPARATOR . $relPath;\n }\n }\n\n return $absPaths;\n };\n\n $container['em.config'] = function (Container $c) {\n try {\n AnnotationRegistry::registerLoader('class_exists');\n /** @var Kernel $kernel */\n $kernel = $c['kernel'];\n $cache = $c[CacheProvider::class];\n\n $proxyFolder = $kernel->getRootDir() . '/gen-src/Proxies';\n $config = Setup::createAnnotationMetadataConfiguration(\n $c['doctrine.entities_paths'],\n $kernel->isDevMode(),\n $proxyFolder,\n $cache,\n false\n );\n /*\n * Create a cached annotation driver with configured cache driver.\n */\n $config->setMetadataDriverImpl($c[AnnotationDriver::class]);\n $config->setProxyDir($proxyFolder);\n $config->setProxyNamespace('Proxies');\n /*\n * Override default repository factory\n * to inject Container into Doctrine repositories!\n */\n $config->setRepositoryFactory(new RoadizRepositoryFactory($c, $kernel->isPreview()));\n\n return $config;\n } catch (NoConfigurationFoundException $e) {\n return null;\n }\n };\n\n /*\n * Alias with FQN interface\n */\n $container[EntityManagerInterface::class] = function (Container $c) {\n return $c['em'];\n };\n\n $container['em'] = function (Container $c) {\n $c['stopwatch']->start('initDoctrine');\n\n try {\n /** @var Kernel $kernel */\n $kernel = $c['kernel'];\n /** @var EntityManager $em */\n $em = EntityManager::create($c['config'][\"doctrine\"], $c['em.config']);\n $evm = $em->getEventManager();\n /*\n * Inject doctrine event subscribers for\n * a service to be able to add new ones from themes.\n */\n foreach ($c['em.eventSubscribers'] as $eventSubscriber) {\n $evm->addEventSubscriber($eventSubscriber);\n }\n\n if (!$kernel->isInstallMode() && $kernel->isDebug()) {\n $em->getConnection()->getConfiguration()->setSQLLogger($c['doctrine.debugstack']);\n }\n\n $c['stopwatch']->stop('initDoctrine');\n return $em;\n } catch (NoConfigurationFoundException $e) {\n $c['stopwatch']->stop('initDoctrine');\n $c['session']->getFlashBag()->add('error', $e->getMessage());\n return null;\n } catch (\\PDOException $e) {\n $c['stopwatch']->stop('initDoctrine');\n $c['session']->getFlashBag()->add('error', $e->getMessage());\n return null;\n }\n };\n\n /**\n * @param Container $c\n * @return EventSubscriber[] Event subscribers for Entity manager.\n */\n $container['em.eventSubscribers'] = function (Container $c) {\n $prefix = isset($c['config']['doctrine']['prefix']) ? $c['config']['doctrine']['prefix'] : '';\n return [\n new NodesSourcesInheritanceSubscriber($c),\n new TablePrefixSubscriber($prefix),\n new FontLifeCycleSubscriber($c),\n new DocumentLifeCycleSubscriber($c['kernel']),\n new UserLifeCycleSubscriber($c),\n new SettingLifeCycleSubscriber($c),\n new CustomFormFieldLifeCycleSubscriber($c),\n new LeafEntityLifeCycleSubscriber($c['factory.handler']),\n $c[LoggableListener::class],\n ];\n };\n\n /**\n * @param Container $c\n * @return CacheProvider\n */\n $container['nodesSourcesUrlCacheProvider'] = function (Container $c) {\n $cache = $c[CacheProvider::class];\n $cache->setNamespace($cache->getNamespace() . \"_nsurls_\"); // to avoid collisions\n return $cache;\n };\n\n $container[CacheProvider::class] = $container->factory(function (Container $c) {\n if ($c['config']['cacheDriver']['type'] !== null &&\n !$c['kernel']->isPreview() &&\n !$c['kernel']->isDebug()) {\n $cache = CacheFactory::fromConfig(\n $c['config']['cacheDriver'],\n $c['kernel'],\n $c['config'][\"appNamespace\"]\n );\n } else {\n $cache = new ArrayCache();\n }\n return $cache;\n });\n\n $container[LoggableListener::class] = function (Container $c) {\n $loggableListener = new UserLoggableListener();\n $loggableListener->setAnnotationReader($c[CachedReader::class]);\n $loggableListener->setUsername('anonymous');\n $loggableListener->setUser(null);\n return $loggableListener;\n };\n\n $container[AnnotationDriver::class] = function (Container $c) {\n return new AnnotationDriver(\n new CachedReader(new AnnotationReader(), new ArrayCache()),\n $c['doctrine.entities_paths']\n );\n };\n\n $container[CachedReader::class] = function (Container $c) {\n return new CachedReader(new AnnotationReader(), $c[CacheProvider::class]);\n };\n\n return $container;\n }", "public function register()\n {\n $container = $this->getContainer();\n $container->add(Request::class, Request::createFromGlobals());\n $container->add(Response::class, new Response());\n }", "public function process(ContainerBuilder $container)\n {\n if (!$container->has($this->registry)) {\n return;\n }\n\n $definition = $container->findDefinition($this->registry);\n $taggedServices = $container->findTaggedServiceIds($this->tag);\n\n foreach ($taggedServices as $id => $tags) {\n $arguments = [new Reference($id)];\n if ($this->withPriority) {\n $arguments[] = $this->resolvePriority($tags);\n }\n $definition->addMethodCall($this->method, $arguments);\n }\n }", "public function registerServices( \\Phalcon\\DiInterface $di ) {\n\t\t$config = include __DIR__ . \"/Config/config.php\";\n\t\t$di['config'] = $config;\n\n\t\tinclude __DIR__ . \"/Config/services.php\";\n\t}", "protected function registerContainerProviders()\n {\n $this->container->register(new ApplicationServiceProvider());\n $this->container->register(new RepositoryServiceProvider());\n }", "public function process(ContainerBuilder $container)\n {\n $definition = $container->getDefinition('initialize');\n\n $definition->addMethodCall('serviceForInit', [$container->findTaggedServiceIds('initialize.auto')]);\n }", "public function register(){\n $this->registerDependencies();\n $this->registerAlias();\n $this->registerServiceCommands();\n }", "public function register(Container $pimple)\n {\n }", "public function boot(Container $container);", "public function registerServices(DiInterface $di)\n {\n }", "abstract public function register(Container $app);", "public function registerLogger(Container $container)\n {\n /**\n * @param Container $container\n * @return CommandLoggerConfig\n */\n $container['command/logger/config'] = function (Container $container) {\n $config = $container['config'];\n\n return new CommandLoggerConfig($config->get('command.logger'));\n };\n\n /**\n * @param Container $container\n */\n $container['command/logger'] = function (Container $container) {\n\n $logger = new Logger('command');\n $config = $container['command/logger/config'];\n $handlerFactory = $container['logger/handler/factory'];\n $processorFactory = $container['logger/processor/factory'];\n\n\n if (!$config['active']) {\n return new NullLogger();\n }\n\n $handlers = $config['handlers'];\n if (count($handlers)) {\n foreach ($handlers as $handleKey => $opts) {\n try {\n $handler = $handlerFactory->create($handleKey, [\n 'options' => $opts,\n 'config' => $config,\n 'container' => $container\n ]);\n $logger->pushHandler($handler);\n } catch (InvalidArgumentException $e) {\n // Fail silently\n }\n }\n }\n\n $processors = $config['processors'];\n if (count($processors)) {\n foreach ($processors as $processorKey => $opts) {\n try {\n $processor = $processorFactory->create($processorKey, [\n 'options' => $opts,\n 'config' => $config,\n 'container' => $container\n ]);\n $logger->pushProcessor($processor);\n } catch (InvalidArgumentException $e) {\n // Fail silently\n }\n }\n }\n\n return $logger;\n };\n\n }", "public function registerAuthServices(Container $container)\n {\n static $provider = null;\n\n if ($provider === null) {\n $provider = new AuthServiceProvider();\n }\n\n $provider->register($container);\n }", "protected function initializeContainer()\n {\n $this->container = $this->buildContainer();\n\n // Load all the default services\n $this->getContainerLoader($this->container)->load('services.xml');\n\n $this->container->compile();\n }", "public function register(Container $container)\n {\n $container['queueManager'] = new QueueManager($container);\n return $container;\n }", "public function register(Container $container)\n\t{\n\t\tif ($container->get('application')->isConsole())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$container->getParent()->extend(RendererManager::class, function (RendererManager $manager, Container $container)\n\t\t{\n\t\t\t$manager->addGlobalPath($this->luna->getDir() . '/Resources/templates', PriorityQueue::LOW - 25);\n\n\t\t\treturn $manager;\n\t\t});\n\t}", "public function setContainer(Container $container);", "public function registerServices($di)\n {\n /**\n * Read configuration\n */\n $config = include __DIR__ . \"/config/config.php\";\n \n $di->set('install_config', function () use($config) {\n return $config;\n });\n \n /**\n * Setting up the lang component\n */\n $di['lang'] = function ($key) use($config) {\n return isset($config[$key]) ? $config[$key] : '';\n };\n \n // Registering a dispatcher\n $di->set('dispatcher', function () {\n $dispatcher = new Dispatcher();\n $dispatcher->setDefaultNamespace(\"App\\Install\\Controllers\");\n return $dispatcher;\n });\n \n /**\n * Setting up the view component\n */\n $di['view'] = function () {\n $view = new View();\n $view->setViewsDir(__DIR__ . '/views/');\n \n return $view;\n };\n }", "public function register()\n {\n $this->container->share(Rocketeer::class)->withArgument($this->container);\n }", "public function register()\n {\n // Only Environment local\n if ($this->app->environment() !== 'production') {\n foreach ($this->services as $serviceClass) {\n $this->registerClass($serviceClass);\n }\n }\n\n // Register Aliases\n $this->registerAliases();\n }", "public function register(): void {\n\t\t// Bindings.\n\n\t\t$this->container->singleton( Breezy::class, Breezy::class );\n\t\t$this->container->singleton( Steps\\Loader::class, Steps\\Loader::class );\n\n\t\t// Initializations.\n\n\t\t$this->initialize_themes();\n\t\t$this->hooks();\n\t}", "protected function registerServices()\n {\n $this->app->singleton('components', function($app) {\n $path = $app['config']->get('components.paths.components');\n\n return new Repository($app, $path);\n });\n }", "private function registerTypes(ContainerInterface $container): void\n {\n if (self::$areTypesRegistered) {\n return;\n }\n\n $applicationConfig = $container->has('config') ? $container->get('config') : [];\n $typesConfig = $applicationConfig['doctrine']['types'] ?? [];\n self::$areTypesRegistered = true;\n\n foreach ($typesConfig as $name => $className) {\n if (Type::hasType($name)) {\n Type::overrideType($name, $className);\n continue;\n }\n\n Type::addType($name, $className);\n }\n }", "public function process(ContainerBuilder $container)\n {\n if ($container->has('doctrine')) {\n $this->addRepositoryService($container);\n }\n\n $this->addTaggedServices($container);\n }", "protected function initContainer(): void\n {\n // reserve some ids\n $this->reserveObject('config', $this->getConfig());\n $this->reserveObject('container', $this->delegator);\n\n // resolve all objects defined in di.services\n $this->autoResolve();\n\n // resolve all object referenced in the $config\n $tree = $this->getConfig()->getTree();\n $settings = &$tree->get('');\n $this->deReference($settings);\n }", "public function register(ContainerInterface $app)\n {\n $app->instance(ContainerInterface::class, $app);\n $app->singleton(KernelInterface::class, Kernel::class);\n $app->set(InputInterface::class, ConsoleInput::class);\n $app->set(OutputInterface::class, ConsoleOutput::class);\n }", "public function register(): void {\n $this->app->bind(ItemAffixService::class, function ($app) {\n return new ItemAffixService();\n });\n\n $this->app->bind(AssignSkillService::class, function ($app) {\n return new AssignSkillService();\n });\n\n $this->app->bind(UpdateCharacterStatsService::class, function ($app) {\n return new UpdateCharacterStatsService();\n });\n\n $this->app->bind(UserService::class, function($app) {\n return new UserService();\n });\n\n $this->app->bind(ItemsService::class, function($app) {\n return new ItemsService();\n });\n\n $this->app->bind(QuestService::class, function() {\n return new QuestService();\n });\n\n $this->app->bind(InfoPageService::class, function() {\n return new InfoPageService();\n });\n\n $this->app->bind(GuideQuestService::class, function() {\n return new GuideQuestService();\n });\n\n $this->app->bind(LocationService::class, function($app) {\n return new LocationService($app->make(CoordinatesCache::class));\n });\n\n $this->commands([CreateAdminAccount::class, GiveKingdomsToNpcs::class]);\n }", "public function register(Container $app)\n {\n }", "public function register()\n {\n foreach ($this->simpleBindings as $contract => $service) {\n $this->app->bind($contract, $service);\n }\n }", "public function register(Container $app)\n {\n $app['pheanstalk.config_default'] = [\n 'host' => '127.0.0.1',\n 'port' => PheanstalkInterface::DEFAULT_PORT,\n 'timeout' => null,\n 'persistent' => false,\n ];\n\n $app['pheanstalk.config_resolver'] = function () use ($app) {\n return array_merge($app['pheanstalk.config_default'], $app['pheanstalk.config'] ?? []);\n };\n\n $app['pheanstalk.client'] = function () use ($app) {\n return new Pheanstalk(\n $app['pheanstalk.config_resolver']['host'],\n $app['pheanstalk.config_resolver']['port'],\n $app['pheanstalk.config_resolver']['timeout'],\n $app['pheanstalk.config_resolver']['persistent']\n );\n };\n }", "public function process(ContainerBuilder $container)\n {\n $commands = $container->findTaggedServiceIds('console.command');\n $applicationDefinition = $container->getDefinition('application');\n foreach ($commands as $serviceId => $serviceDefinition) {\n $applicationDefinition->addMethodCall('add', [new Reference($serviceId)]);\n }\n }", "public function register()\n {\n $this->getContainer()->add(Application::class, function(){\n $application = new Application('isso-php', '1.0.0');\n\n $commands = [\n new SeedCommand(),\n new DatabaseResetCommand(),\n ];\n\n /** @var ConsoleCommand $command */\n foreach ($commands as $command)\n {\n $command->setContainer($this->getContainer());\n $application->add($command);\n }\n return $application;\n });\n }", "public function configureContainer(ContainerConfigurator $container): void;", "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 }", "protected function setupContainer(Container $container)\n {\n $this->container = $container;\n\n if (! $this->container->bound('config')) {\n $this->container->instance('config', new Fluent);\n }\n }", "public function register(Container $c)\n {\n $this->registerCycleOrm($c);\n $this->registerCycleSchemaBuilder($c);\n $this->registerPhanua($c);\n $this->registerJane($c);\n $this->registerPsrLogger($c);\n $this->registerSymfonySerializer($c);\n $this->registerOverrides($c);\n }", "public function process(ContainerBuilder $container):void \n {\n $definition = $container->findDefinition(FactoryBuilderInterface::class);\n $taggedServices = $container->findTaggedServiceIds(FactoryInterface::TAG_NAME);\n foreach ($taggedServices as $id => $tags) {\n $definition->addMethodCall('addFactory', [new Reference($id)]);\n }\n }", "public function register()\n {\n // Bind Credential Contract with Service\n $this->app->bind(Credentials::class, function ($app){\n return new CredentialsManger($app->make('filesystem.disk'), $app->make('encrypter'));\n });\n\n // Bind Caption Contract with Service\n $this->app->bind(Configuration::class, function ($app){\n return new ConfigurationManager($app->make('filesystem.disk'));\n });\n\n // Inject dependencies into Auth Service.\n $this->app->singleton(Post::class, function ($app){\n return new PostService(new Instagram(true, true), $app->make(Credentials::class));\n });\n\n // Inject Guzzle Into Reddit Service\n $this->app->singleton(Scraper::class, function ($app){\n return new ScraperService(new Client(['base_uri' => 'http://www.reddit.com']), $app->make(Configuration::class), $app->make('filesystem.disk'));\n });\n\n $this->app->bind(Caption::class, function ($app){\n return new CaptionManager($app->make('filesystem.disk'), $app->make('encrypter'));\n });\n }", "public function registerServices(){\n }", "public function register(Container $pimple)\n {\n $pimple['eventDispatcher'] = function () {\n return new EventDispatcher();\n };\n }", "public function register(Container $container)\n {\n $container[\"view\"] = $this;\n }", "public function register(Container $container)\n {\n $container[\"ViewContract\"] = function ($c) {\n $twigViewsDirectory = $this->normalizeDir($c[\"twig_views_directory\"]);\n $twigViewsCacheDirectory = false;\n\n if ($c[\"twig_use_views_cache\"] === true) {\n $twigViewsCacheDirectory = $this->normalizeDir(\"Views/cache\");\n }\n\n $loader = new \\Twig_Loader_Filesystem($twigViewsDirectory);\n $twig = new \\Twig_Environment($loader, [\n 'cache' => $twigViewsCacheDirectory,\n ]);\n\n return new TwigViewComponent($c[\"SessionContract\"], $loader, $twig);\n };\n }", "public function load(array $config, ContainerBuilder $container)\n {\n (new YamlFileLoader(\n $container,\n new FileLocator(ECOMMERCE_TAX_BASE_PATH . '/config')\n ))->load('services.yml');\n\n // TODO: Eventually replace this with config processor\n $config = array_pop($config);\n\n if (isset($config['config']) && $container->hasDefinition(Services::TAX_HANDLER)) {\n $container->getDefinition(Services::TAX_HANDLER)->addMethodCall('setConfig', [$config['config']]);\n }\n }", "public function process(ContainerBuilder $container)\n {\n $registryDefinition = $container->findDefinition(PlatformRegistry::class);\n\n foreach ($container->findTaggedServiceIds('account_updater') as $id => $tags) {\n $registryDefinition->addMethodCall(\n 'registerUpdater',\n [\n new Reference($id)\n ]\n );\n }\n }", "public function registerViewServices(Container $container)\n {\n static $provider = null;\n\n if ($provider === null) {\n $provider = new ViewServiceProvider();\n }\n\n $provider->register($container);\n }", "public function register(Service $service);", "private function containerRegister()\r\n {\r\n // we are saving the expected values ​​for the request in container.\r\n // this record can be returned in exception information.\r\n app()->register('requestExpected',$this->expected);\r\n }", "public function register()\n {\n $this->container->add('digitalocean', new DigitalOcean, self::SINGLETON);\n\n $digitalocean = $this->container->get('digitalocean');\n\n $this->container->add('up', new Up($digitalocean));\n $this->container->add('down', new Down($digitalocean));\n $this->container->add('report', new Report($digitalocean));\n $this->container->add('token', new Token);\n $this->container->add('attack', new Attack);\n }", "public function register($container)\n {\n /**\n * Extend the 'classMapper' service to register model classes.\n *\n * Mappings added: DemoUser\n */\n session_start();\n\n// $container['translator'] = function ($c) {\n// // Load the translations\n// $paths = $c->localePathBuilder->buildPaths();\n//\n// $loader = new YamlFileLoader($paths);\n//\n// // Create the $translator object\n// $translator = new MessageTranslator($loader->load());\n//\n// return $translator;\n// };\n $container->extend('classMapper', function ($classMapper, $c) {\n $classMapper->setClassMapping('user', 'App\\Model\\User');\n return $classMapper;\n });\n\n $container['csrf'] = function ( $c) {\n $guard = new \\Slim\\Csrf\\Guard();\n $guard->setFailureCallable(function ($request, $response, $next) {\n $request = $request->withAttribute(\"csrf_status\", false);\n return $next($request, $response);\n });\n return $guard;\n };\n\n $container->extend('view', function ($view, $c) {\n $twig = $view->getEnvironment();\n\n\n $cacheProvider = new DoctrineCacheAdapter(new ArrayCache());\n $cacheStrategy = new LifetimeCacheStrategy($cacheProvider);\n $cacheExtension = new CacheExtension($cacheStrategy);\n\n $twig->addExtension($cacheExtension);\n\n $extension = new LevenExtension($c);\n\n\n// $twig->addExtension($extension);\n//\n// $extension = new DataExtension($c);\n\n\n $twig->addExtension($extension);\n\n $extension = new HtmlExtension($c);\n $twig->addExtension($extension);\n\n $extension = new WebExtension($c);\n $twig->addExtension($extension);\n $extension = new ThemeExtension($c);\n $twig->addExtension($extension);\n\n\n return $view;\n });\n\n }", "public function setContainer($container);", "public function registerServices()\n {\n $this->app->bind('helpers.lib', function($app) {\n return new LibHelper;\n });\n $this->app->bind('helpers.theme', function($app) {\n return ThemeHelper::instance();\n });\n $this->app->bind('helpers.acf', function($app) {\n $helper = AcfHelper::instance();\n $helper->setThemeHelper($this->app['helpers.theme']);\n $helper->setLib($this->app['helpers.lib']);\n\n return $helper;\n });\n }", "public function register() {\n\n // Bind any implementations.\n\n }", "public function registerServices(DiInterface $di)\n {\n self::acl($di);\n }" ]
[ "0.76220584", "0.7496132", "0.7486803", "0.7226702", "0.709186", "0.7090704", "0.70849425", "0.7044107", "0.70271254", "0.69571245", "0.68560326", "0.6775979", "0.67649376", "0.6710107", "0.6689824", "0.6671853", "0.66576654", "0.6650755", "0.6617787", "0.6607811", "0.6599367", "0.65910316", "0.65853083", "0.656246", "0.6554389", "0.65512955", "0.6547693", "0.65476227", "0.6545112", "0.65128267", "0.65125954", "0.64541644", "0.64448386", "0.6441432", "0.641324", "0.63756067", "0.6330473", "0.63238126", "0.6313109", "0.63087785", "0.62884605", "0.6272164", "0.62484676", "0.6241262", "0.6222245", "0.6210947", "0.6200114", "0.6198076", "0.619309", "0.61926514", "0.6178667", "0.6172197", "0.6157984", "0.6155505", "0.6145919", "0.61366385", "0.6135665", "0.6132771", "0.61299366", "0.6127397", "0.6126683", "0.6121345", "0.6119938", "0.61108166", "0.61037076", "0.61012733", "0.6097801", "0.6096434", "0.60944223", "0.60737056", "0.60613364", "0.601362", "0.60132927", "0.6004051", "0.60015666", "0.59891796", "0.59841084", "0.5978896", "0.5976696", "0.5974597", "0.59613836", "0.5960645", "0.59556043", "0.5953397", "0.5950835", "0.594863", "0.59454113", "0.59338707", "0.5926115", "0.5925945", "0.59229505", "0.5914271", "0.5905118", "0.59018195", "0.589683", "0.587664", "0.58731014", "0.586163", "0.5855358", "0.5852463" ]
0.6340968
36
Lists all Products models.
public function actionIndex() { $identity = Yii::$app->user->identity; if (isset($identity) && !empty($identity)) { $searchModel = new ProductsSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider ]); } else { return $this->goHome(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Products::all();\n }", "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 $this->set('products', $this->Product->find('all'));\n }", "public function index()\n {\n return Product::all();\n }", "public function index()\n {\n return Product::all();\n }", "public function index()\n {\n return Product::all();\n }", "public function index()\n {\n return Product::all();\n }", "public function getAll()\n {\n return DB::table('product_models')->get()->all();\n }", "public function actionIndex()\n {\n $searchModel = new ProductsSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ProductsSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ProductsSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n return Producto::all();\n \n }", "public function showAllAction () {\n $products = $this->getDoctrine()\n ->getRepository('AppBundle:Product')\n ->findAll();\n\n return $this->render('product/list.html.twig', array(\n 'products' => $products,\n ));\n }", "public function index()\n {\n return new ProductCollection(Product::all());\n }", "public function index()\n\t{\n return Product::all();\n\t}", "public function index() {\n\t\treturn $this->product->all();\n\t}", "public function showAllAction() \n\t{\n\t\t$productsManager = new ProductsManager();\n\t\t$this->viewData['products'] = $products = $productsManager -> getAll();\n\t\t$this->viewData['productsNumber'] = count($products);\n\t\t$this -> generateView('products/show-all.phtml');\n\t}", "public function all_products()\n\t{\n\t\t$data['product_list']=$this->tbl_product->get_all_product();\n\t\t$data['page']='All Products';\n\t\t$view = 'Admin/collection/admin_all_product_list';\n\t\techo Modules::run('Template/admin_template', $view, $data);\t\n\t}", "public function index()\n\t{\n\t\t$products = $this->product->all();\n\t\t\n\t\treturn $products;\n\t}", "public function getAllProduct()\n {\n //eager loading of \"product\" with \"category\"\n return Product::with('category')\n ->orderBy('title')\n ->get();\n }", "public function getProducts(){\n\t\t$products = Product::all();\n\t\treturn view('admin-product-view')->with('products', $products);\n\t}", "public function index()\n {\n //\n return Product::all();\n }", "public function actionIndex()\n {\n $pageSize = 10;\n\n $searchModel = new ProductSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams, $pageSize);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $products = Product::all();\n\n return view('admin.ProductList', ['products'=>$products]);\n }", "public function index()\n {\n $products = Product::all();\n return $products;\n }", "public function index()\n {\n $products = DB::select('\n select p.id, max(p.name) as name, max(p.brand) as brand, count(m.id) as models\n from products p\n left join product_models m on p.id = m.product_id\n group by p.id\n ');\n\n return view('admin.product.index', ['products' => $products]);\n }", "public function index()\n {\n $products =Product::orderBy('id', 'DESC')->get();\n return view('admin.product.allProduct',compact('products'));\n }", "public function actionIndex()\n {\n $searchModel = new ProductSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ProductSearch();\n $dataProvider = $searchModel->search(\\Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ProductSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function getProductList()\n {\n return $this->with('images','manufacturer', 'category')->get();\n }", "public function getAllProducts()\n {\n return $this->productRepository->all();\n }", "public function all()\n {\n $products = Product::all();\n return $products;\n }", "public function index()\n {\n return view('admin.products.index')->with('products', Product::all());\n }", "public function index()\n {\n $products = $this->product->paginate();\n\n return view('admin.product.index', ['products' => $products]);\n }", "public function index()\n {\n return $this->productService->getProducts();\n }", "public function all_product()\n {\n // $categories = Category::all();\n // $all_manufacture_info = Manufacture::all();\n // $products = Product::paginate(5);\n // return view('admin.product.index', compact('categories', 'all_manufacture_info', 'products'));\n\n $products = DB::table('products')\n ->join('categories', 'products.category_id', '=', 'categories.category_id')\n ->join('manufactures', 'products.manufacture_id', '=', 'manufactures.manufacture_id')\n ->select('products.*', 'categories.category_name', 'manufactures.manufacture_name')\n //->orderBy('product_id', 'asc')\n ->oldest()\n //->latest()\n ->paginate(4);\n return view('admin.product.index', compact('products'));\n }", "public function index()\n {\n\n\n return Product::all();\n \n \n \n }", "public function index()\n {\n return view('admin.products.index')\n ->with('products',Product::all());\n }", "public function index()\n {\n $products = $this->productRepository->all();\n return view('admin.products.index', [\n 'products' => ProductResource::collection($products),\n 'module' => 'products',\n ]);\n }", "public function index()\n {\n Session::forget('input_categories');\n return view('admin.product.products', [\n 'products' => Product::latest()->paginate(10),\n ]);\n }", "public function index()\n {\n return $this->productRepository->getAll();\n }", "public function getProducts()\n {\n\n $categories = ProductCategory::all();\n\n $products = Product::paginate(10);\n return $products;\n }", "public function viewAll()\n {\n return $this->product->all();\n \n }", "public function index()\n {\n $product = Product::all();\n return view('pages.server.product.list')\n ->with('product', $product);\n }", "public function index()\n {\n $products = ProductType::paginate();\n return view('webshop.productList', compact('products'));\n }", "public function index()\n\t{\n\t\t$products = QueryBuilder::for(Product::class)\n\t\t\t->allowedIncludes(['category'])\n\t\t\t->allowedFilters(['sku'])\n\t\t\t->orderBy('sku', 'asc')\n\t\t\t->get();\n\n\t\treturn new ProductCollection($products);\n\t}", "public function index()\n {\n $products = Product::all();\n return view(\"admin.displayProducts\", ['products' => $products]);\n }", "public function index()\n {\n $products = Product::with('category')\n ->orderBy('id', 'desc')\n ->paginate(10);\n return view('admin.products.index', compact('products'));\n }", "public function index()\n {\n $prodcucts = Product::with('category')->paginate(10);\n\n return new ProductCollection($prodcucts);\n }", "public function collection()\n {\n return Product::all();\n }", "function get_products() {\n\t\tApp::Import('model', 'Product');\n\t\t$this->Product = &new Product;\n\n\t\t$products = $this->Product->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t\"Product.short_description != ''\",\n\t\t\t\t'Availability.cart_allowed' => true,\n\t\t\t\t'Product.active' => true\n\t\t\t),\n\t\t\t'contain' => array(\n\t\t\t\t'TaxClass' => array(\n\t\t\t\t\t'fields' => array('id', 'value')\n\t\t\t\t),\n\t\t\t\t'Image' => array(\n\t\t\t\t\t'conditions' => array('Image.is_main' => '1'),\n\t\t\t\t\t'fields' => array('id', 'name')\n\t\t\t\t),\n\t\t\t\t'Manufacturer' => array(\n\t\t\t\t\t'fields' => array('id', 'name')\n\t\t\t\t),\n\t\t\t\t'CategoriesProduct' => array(\n\t\t\t\t\t'Category' => array(\n\t\t\t\t\t\t'fields' => array('id', 'name')\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'Availability' => array(\n\t\t\t\t\t'fields' => array('id', 'cart_allowed')\n\t\t\t\t)\n\t\t\t),\n\t\t\t'fields' => array(\n\t\t\t\t'Product.id',\n\t\t\t\t'Product.name',\n\t\t\t\t'Product.short_description',\n\t\t\t\t'Product.url',\n\t\t\t\t'Product.retail_price_with_dph',\n\t\t\t\t'Product.ean',\n\t\t\t\t'Product.zbozi_name',\n\t\t\t\t'Product.heureka_name',\n\t\t\t\t'Product.discount_common',\n\t\t\t\t'Product.zbozi_cpc',\n\t\t\t\t'Product.heureka_cpc'\n\t\t\t)\n\t\t));\n\t\t\n\t\t$products = array_filter($products, array('ExportsController', 'empty_category'));\n\t\t\n\t\tforeach ($products as $i => $product) {\n\t\t\t$products[$i]['Product']['retail_price_with_dph'] = $this->Product->assign_discount_price($products[$i]);\n\t\t\t$products[$i]['Product']['name'] = str_replace('&times;', 'x', $products[$i]['Product']['name']);\n\t\t\t$products[$i]['Product']['short_description'] = str_replace('&times;', 'x', $products[$i]['Product']['short_description']);\n\t\t}\n\n\t\treturn $products;\n\t}", "public function displayAllProducts()\n {\n return $this->paginate(['category', 'subcategory', 'brand', 'reviews'], false, 12);\n }", "public function index()\n {\n $title = \"Product List\";\n\n $items = Product::with([\n 'category'\n ])->get();\n\n return view('pages.product.index', [\n 'title' => $title,\n 'items' => $items\n ]);\n }", "public function find()\n {\n return Product::all();\n }", "public function index()\n {\n $products = Product::all();\n return view('admin.products.index',compact('products'));\n }", "public function index()\n {\n $productList = Product::all();\n return view('product.productList', ['products' => $productList]);\n }", "public function index()\n {\n $products = Products::all();\n\n return $this->returnAll($products);\n\n }", "public function index()\n\t{\n\t\t$products = \\App\\Models\\Product::all();\n\n\t\treturn view('model-views.index')->with(array('modelName' => 'products', 'models' => $products, 'modelDetails' => 'products.details'));\n\t}", "public function index()\n {\n $products = Product::query();\n\n $products = $this->filter($products)->paginate(15);\n\n $categories = Category::get();\n\n return view('admin.product.index', compact('products', 'categories'));\n }", "public function index()\n {\n $products = \\App\\Product::all();\n return view('admin.products.index', ['products' => $products]);\n }", "public function index()\n {\n $products = Product::all();\n return view('admin.products.index', ['products' => $products]);\n }", "public function index()\n {\n $products = Product::latest()->get();\n return view ('Admin.Products.ProductsList', compact('products'));\n }", "public function index()\n {\n // List all products with categories\n $products = Product::all();\n \n // Return to product list with parameters\n return view('products.index')\n ->with('products', $products);\n }", "public function index()\n {\n $items = Product::all();\n\n return view('shop::product.index', get_defined_vars());\n }", "public function index()\n {\n $title = 'products';\n $products = Product::get();\n return view('admin.products.index',compact(\n 'title','products'\n ));\n }", "public function index()\n {\n $products = Product::all();\n return view('products',compact('products'));\n }", "public function index()\n {\n $products = Product::orderBy('id', 'ASC')->paginate(10);\n\n return view('admin.product.index', compact('products'));\n }", "public function index()\n {\n $products = Product::orderby('id', 'desc')->get();\n return view('adminlte::products.index', compact('products'));\n }", "public function listAllProducts()\n {\n $products = Product::where(\"created_at\", \"!=\", null)->orderBy('id', 'DESC')->with('category')->with('user')->paginate(10);\n\n $count = $products->count();\n\n return view('product', compact('products' ,'count'));\n }", "public function index()\n {\n $products=Product::all();\n return view('allproduct',compact('products'));\n }", "public function index()\n {\n\t\t$products = Product::get();\n\n\t\treturn view('admin.products.index', compact('products'));\n }", "public function index()\n {\n $products = Products::orderBy('name')->paginate(10);\n return view('admin.product.index', compact('products'));\n }", "public function index()\n {\n\n $categories = ProductCategory::all();\n\n $products = Product::paginate(10);\n return view('product.product')->with('products', $products)->with('categories', $categories);\n }", "public function index()\n {\n $products = Product::all();\n return view('admin.product.index', compact('products'));\n }", "public function index()\n {\n $product = new \\App\\Models\\Product();\n $products = $product::all();\n return view('resource.products', compact('products'));\n }", "public function index()\n {\n\n $title = 'Listagem dos produtos';\n $products = $this->product->all();\n \n return view('painel.products.index',compact('products','title'));\n }", "public function index()\n {\n $products = Product::paginate(Product::paginator);\n\n return view('products.index', \\compact('products'));\n }", "public function index()\r\n {\r\n $product = Product::all();\r\n return view('admin.product.index')->with(['products'=>$product]);\r\n }", "public function index()\n {\n $products = Product::paginate(20);\n $total = Product::count();\n return view('admin.products.index', compact('products', 'total'));\n }", "public function actionIndex() {\n\t\tunset(Yii::$app->session['tempfolder']);\n\t\t$searchModel = new ProductsSearch();\n\t\t$dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n\t\treturn $this->render('index', [\n\t\t\t 'searchModel' => $searchModel,\n\t\t\t 'dataProvider' => $dataProvider,\n\t\t]);\n\t}", "public function index()\n {\n $products = Product::paginate(10);\n return view('viewbackend.products.index', compact(['products']));\n }", "function product_list()\n {\n $model = new ProductModel();\n $data['products'] = $model->findAll();\n echo view('Admin/product_list', $data);\n }", "public function index()\n {\n return view('admin.product.index')->withProducts(Product::orderBy('created_at','desc')->paginate(10));\n }", "public function index()\n {\n // deze get methode kan je alleen gebruiken als je een belongsTo relatie hebt LET OP niet bij HASMANY ! \n $products = Product::with('category')->get(); \n return view('admin.products.index', compact('products'));\n }", "public function index()\n {\n $products = $this->product_model->orderBy('id')->paginate(5);\n\n return view('admin.products.index', compact('products'));\n }", "public function index()\n {\n $products=Product::get();\n return view('admin.products.index',compact('products'));\n }", "public function index()\n {\n $categories = Category::pluck('name', 'id');\n\n $category = request('category');\n $search = request('search');\n\n $products = new Product;\n\n $paginate = 3;\n\n // Filter by category\n if (!empty($category)) {\n $products = $products->where('category_id', $category);\n }\n\n // Filter by name\n if (!empty($search)) {\n $products = $products->orWhere('name', 'LIKE', \"%{$search}%\");\n }\n\n $products = $products->paginate($paginate);\n\n return view('admin.products.index', compact(\n 'categories',\n 'category',\n 'search',\n 'products'\n ));\n }", "public function index()\n {\n return view('admin.product.index', [\n 'categories' => Category::all(),\n 'products' => product::all()\n ]);\n }", "public function index()\n {\n return view('admin.product.index', [\n 'products' => Product::all(),\n 'products_trash' => Product::onlyTrashed()->get(),\n 'categories' => Category::all()\n ]);\n }", "public function index()\n {\n //\n\n $products = Product::get();\n\n return view('admin.product.index', compact('products'));\n }", "public function index()\n\t{\n\t\t$products = Product::all();\n\t\t\n\t\treturn view('catalog.product.index')\n\t\t->with('products',$products);\n\t}", "public function index()\n {\n return view('pharmacy.inventory.product.index', [\n 'products' => Product::with('manufacturer', 'category')\n ->orderByDesc('id')\n ->where('company_id', company_id())\n ->paginate(),\n 'categories' => Category::where('status',1)\n ->where('company_id', company_id())\n ->get(),\n ]);\n }", "public function index()\n {\n $products = Product::paginate(10);\n\n return view('product.index',compact('products'));\n }", "public function index()\n {\n return Product::latest()->paginate(20);\n }", "public function index()\n {\n return ProductResource::collection(Product::with('categories')->get());\n }", "public function index()\n {\n $list = Product::all();\n \n return view('products.show')->with('list',$list);\n }", "public function index()\n {\n $products = Product::orderBy('updated_at', 'desc')->paginate(7);\n \n $categories = Category::all();\n $sizes = Size::all();\n $promotions = Promotion::all();\n \n return view ('admin.products.index')->with('products', $products)\n ->with('category', $categories)\n ->with('sizes', $sizes)\n ->with('promotions', $promotions);\n }", "public function actionIndex()\n {\n $searchModel = new ProductoSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new ProductoSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }" ]
[ "0.7836315", "0.77278125", "0.7666311", "0.766483", "0.766483", "0.766483", "0.766483", "0.76008505", "0.7582378", "0.7582378", "0.7582378", "0.757785", "0.754175", "0.7528902", "0.75164896", "0.7480879", "0.74664444", "0.74483633", "0.743865", "0.74316525", "0.73868424", "0.7370725", "0.73692256", "0.7369072", "0.7355347", "0.7333691", "0.731858", "0.7311513", "0.73077464", "0.73017323", "0.7294145", "0.7288215", "0.727361", "0.725185", "0.7248623", "0.72277874", "0.72047514", "0.71973485", "0.71917486", "0.71840405", "0.7182444", "0.71744573", "0.7167801", "0.7163239", "0.7150961", "0.7140536", "0.711822", "0.7114315", "0.7112354", "0.71068895", "0.7106638", "0.7105699", "0.7104334", "0.7103434", "0.7094323", "0.7093786", "0.70843697", "0.7083658", "0.70831066", "0.70788026", "0.70697206", "0.70672417", "0.7063369", "0.7053938", "0.7042444", "0.7041562", "0.70321757", "0.7031897", "0.7029917", "0.702975", "0.7028993", "0.7028875", "0.7028175", "0.70246536", "0.7023106", "0.70227605", "0.7017601", "0.7017021", "0.7016961", "0.7015252", "0.7012484", "0.7006713", "0.7003829", "0.70019436", "0.6999922", "0.6999597", "0.69985706", "0.69982886", "0.6996082", "0.69943213", "0.69869936", "0.698652", "0.6983322", "0.69766027", "0.69760597", "0.69715637", "0.6967371", "0.6964851", "0.69599146", "0.69599146", "0.69586635" ]
0.0
-1
Displays a single Products model.
public function actionView($id) { return $this->render('view', [ 'model' => $this->findModel($id), ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show()\n\t{\n\t\t$this->layout->set(null);\n\t\t$id = getParameter('id');\n\t\t$data = [\n\t\t\t'product' => $this->model->product->find_by_id($id)\n\t\t];\n\t\t$this->view->load('product/show', $data);\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()\n {\n $products = \\App\\Product::get();\n return view('products.show')->with('products', $products);\n }", "public function index()\n {\n $products = Product::all();\n return view(\"admin.displayProducts\", ['products' => $products]);\n }", "public function productShowAction($id)\n {\n \n $repositoryProduct = $this->getDoctrine()\n ->getRepository('MainBundle:Product');\n \n \n // find product by id\n $product = $repositoryProduct->find($id);\n \n \n \treturn $this->render('MainBundle:Public:product.html.twig', array(\n 'product' => $product,\n ));\n }", "public function index()\n {\n return view('content.product.product_show');\n }", "public function SingleProduct()\n {\n return view('MainTheme/single-product');\n }", "public function showProduct($id){\n $p = Product::find($id);\n\n \t//Return view with selected product, if it exists.\n \treturn view('others.product', ['product' => $p]);\n }", "function product_view()\n {\n \t$id= $_GET['id'];\n $model = new ProductModel();\n $data = $model->where('id', $id)->first();\n echo view('Admin/product_view', $data);\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Products $products)\n {\n //\n }", "public function show(Product $products)\n {\n //\n }", "public function showProduct()\n {\n $products = DB::table('products')\n ->join('categories','categories.id','=','products.categoryId')\n ->join('manufacturers','manufacturers.id','=','products.manufacturerId')\n ->select('products.*','categories.categoryName','manufacturers.manufacturerName')\n ->get();\n return view('admin.product.manageProduct',compact('products'));\n }", "public function show()\n {\n $products = Product::orderBy('id','desc')->get();\n\n return view('customer.product.show',compact('products'));\n }", "public function show(int $id) {\n $product = $this->productRepo->findProductById($id);\n\n return view('admin.products.show', [\n 'product' => $product\n ]);\n }", "public function show(Product $product)\r\n {\r\n //\r\n }", "public function index()\n {\n $products = $this->productRepository->all();\n return view('admin.products.index', [\n 'products' => ProductResource::collection($products),\n 'module' => 'products',\n ]);\n }", "public function index()\n {\n\t\t$products = Product::get();\n\n\t\treturn view('admin.products.index', compact('products'));\n }", "public function show($id = null)\n {\n $data = Product::find($id);\n // echo '<pre>';\n // print_r($data);\n // return;\n return view('admin.products.show', compact('data'));\n }", "public function index()\n {\n $products = Product::orderby('id', 'desc')->get();\n return view('adminlte::products.index', compact('products'));\n }", "public function show()\n {\n //\n $productos = Productos::get();\n return view ('productos.show') -> with('productos', $productos);\n }", "public function index()\n {\n $products = Products::orderBy('id','desc')->get();\n return view('Backend.pages.product.viewproduct')->with('products', $products);\n }", "public function product()\n {\n $products = Product::latest()->paginate(5);\n return view('admin.product',compact('products'));\n }", "public function show($id)\n {\n $product = Product::findOrFail($id);\n\n return view('admin.products.show', compact('product'));\n }", "public function show($id)\n {\n // $product = $this->repository->where('id', $id)->first();\n // $product = $this->repository->find($id);\n\n if(!$product = $this->repository->find($id))\n return redirect()->back();\n\n\n return view('admin.pages.products.show', compact('product'));\n }", "public function show($id)\n {\n return view('admin.product.show');\n }", "public function index()\n {\n return view('admin.product.product');\n }", "public function show($id)\n {\n $product = DB::select('select * from products where id = ?', [$id])[0];\n return view('admin.product.show', ['product'=>$product]);\n }", "public function index()\n {\n //\n\n $products = Product::get();\n\n return view('admin.product.index', compact('products'));\n }", "public function show(){\n $per = self::get_permission();\n $all = product::all();\n return view('dashboard.product.show',compact('all','per'));\n }", "public function show(Product $product)\n {\n \n }", "public function show(Product $product)\n {\n \n }", "public function show(Product $product)\n {\n \n }", "public function index()\r\n {\r\n $product = Product::all();\r\n return view('admin.product.index')->with(['products'=>$product]);\r\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function show(Product $product)\n {\n //\n }", "public function index()\n {\n return view('products.product');\n }", "public function index()\n {\n $products = \\App\\Product::all();\n return view('admin.products.index', ['products' => $products]);\n }", "public function showAdminproductsAction()\n {\n $productManager = new ProductManager();\n $products = $productManager->getAllProducts();\n return $this->twig->render('admin/adminproducts.html.twig', array(\n 'products' => $products\n ));\n }", "public function show($id)\n {\n $theProduct = Product::find($id);\n\n return view('front.products.show', compact('theProduct'));\n }", "public function show($id)\n {\n $product = Product::find($id);\n return view('product.products');\n }", "public function index()\n\t{\n\t\t$products = Product::all();\n\t\t\n\t\treturn view('catalog.product.index')\n\t\t->with('products',$products);\n\t}", "public function index()\n {\n $products = $this->products;\n return view('admin.products.index', compact('products'));\n }", "public function show($id)\n {\n $product = \\App\\Product::find($id);\n return view('admin.products.show', ['product' => $product]);\n }", "public function show(Product $product)\n {\n\n }", "public function show(Product $product)\n {\n //\n\n }", "public function viewProductAction($id) {\r\n $em=$this->getDoctrine()->getManager();\r\n $product=$em->getRepository('HologramBundle:Product')->find($id);\r\n return $this->render('HologramBundle:Front:oneProduct.html.twig',array('p'=>$product)); \r\n }", "public function show(Product $product)\n {\n //\n }", "public function index()\n {\n $products = $this->repository->getAll();\n return view('back_end.admin.product.index', ['products' => $products]);\n }", "public function show($id)\n {\n $product = Product::find($id);\n return view('admin.products.show', compact('product'));\n }", "public function index()\n {\n $products = $this->product->paginate();\n\n return view('admin.product.index', ['products' => $products]);\n }", "public function index()\n\t{\n\t\t$products = \\App\\Models\\Product::all();\n\n\t\treturn view('model-views.index')->with(array('modelName' => 'products', 'models' => $products, 'modelDetails' => 'products.details'));\n\t}", "public function show($id)\n {\n //\n $product = Product::find($id);\n return view('backend/products.show', compact('product'));\n }", "public function show($id)\n {\n \n $product = Product::find($id);\n \n return view('admin.product.show')->with('product', $product);\n }", "public function index()\n {\n $products=Product::get();\n return view('admin.products.index',compact('products'));\n }", "public function show($id)\n {\n $product = Products::findorFail($id);\n return view('admin.product.show', compact('product'));\n }", "public function show($id)\n {\n return view('productmodule::show');\n }", "public function show($id)\n {\n $product = Product::find($id); //finding product based on received id\n return view('admin.products.show')->with('product', $product);\n }", "public function index()\n {\n $product = Product::all();\n\n return view('admin.product.index', ['product' => $product]);\n }", "public function adminProductAction()\n {\n $productManager = new ProductManager();\n $products = $productManager->getAllProducts();\n return $this->twig->render('admin/admin_products.html.twig', array(\n \"products\" => $products));\n }", "public function index()\n {\n $products = Product::all();\n return view('admin.products.index',compact('products'));\n }", "public function show($id)\n {\n return view('product::show');\n }", "public function show($id)\n {\n return view('product::show');\n }", "public function index()\n {\n $items = Product::all();\n\n return view('shop::product.index', get_defined_vars());\n }", "public function show($id)\n {\n return view('shop::product.show');\n }", "public function index()\n {\n $viewproduct = ProductModel::get();\n return view('page.product.detailproduct', compact('viewproduct'));\n }", "public function show( $id ) {\n // $product = Product::find( $id );\n $product = DB::table( 'product' )\n ->join( 'type', 'type.id', '=', 'product.type' )\n ->join( 'producer', 'producer.id', '=', 'product.producer' )\n ->select( DB::raw( 'product.id, product.name, type.name as type, producer.name as producer, product.amount, product.image, product.price_input' ) )\n ->orderby( 'product.id', 'desc' )\n ->get();\n //pass posts data to view and load list view\n return view( 'product.show', ['product' => $product[0]] );\n }", "public function index()\n {\n $product = new \\App\\Models\\Product();\n $products = $product::all();\n return view('resource.products', compact('products'));\n }" ]
[ "0.8293662", "0.8071155", "0.80692613", "0.7860882", "0.78254086", "0.7802931", "0.7780388", "0.775374", "0.7743456", "0.7731081", "0.7731081", "0.7731081", "0.7731081", "0.7731081", "0.7731081", "0.7731081", "0.7719352", "0.7717894", "0.7714537", "0.76986873", "0.7697792", "0.7671952", "0.7668252", "0.7667138", "0.766672", "0.7665572", "0.76473707", "0.76426715", "0.76385343", "0.76369464", "0.76356286", "0.7635247", "0.763249", "0.76303786", "0.7627939", "0.76273465", "0.76273465", "0.76273465", "0.76248", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.76234937", "0.7623481", "0.7622663", "0.7620607", "0.7615405", "0.7612308", "0.76106656", "0.760982", "0.7600729", "0.76006347", "0.7593358", "0.75930697", "0.758826", "0.7588096", "0.7585263", "0.7576918", "0.7575926", "0.7575738", "0.7572884", "0.7566502", "0.7564577", "0.7561756", "0.7557842", "0.7554256", "0.75538236", "0.75492877", "0.75480306", "0.75480306", "0.75436115", "0.7543593", "0.75418085", "0.7539985", "0.7539296" ]
0.0
-1
Creates a new Products model. If creation is successful, the browser will be redirected to the 'view' page.
public function actionCreate() { $model = new Products(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('create', [ 'model' => $model, ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $postData = Yii::$app->request->post();\n \n $model = new Product();\n\n if ($model->load($postData) && $model->save()) {\n return $this->redirect(['update', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n\t{\n\t\t$model=new Product;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Product']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Product'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n 'langs' => $this->getLangs(),\n ]);\n }", "public function actionCreate()\n {\n $model = new Producto();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_prodcto]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n $model = new PricefallsProducts();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function actionCreate()\n {\n /* @var $modelProduct \\common\\models\\Product */\n\n $modelProduct = Product::findOne(Yii::$app->session->get('tempId'));\n\n if(!isset($modelProduct)):\n Yii::$app->session->remove('tempModel');\n Yii::$app->session->remove('tempId');\n endif;\n\n if (isset($modelProduct) && $modelProduct->load(Yii::$app->request->post())):\n if($modelProduct->updateObject($modelProduct)):\n return $this->redirect(['view', 'id' => $modelProduct->id]);\n endif;\n endif;\n\n if(Yii::$app->session->get('tempModel') != 'Product'):\n\n $modelProduct = new Product();\n $modelProduct = $modelProduct->createObject();\n endif;\n\n return $this->render('create', [\n 'modelProduct' => $modelProduct,\n ]);\n }", "public function actionCreate()\n {\n\t\tif(!$this->IsAdmin())\n\t\t{\n\t\t\treturn $this->render('error', ['name' => 'Not Found (#404)', 'message' => 'Puuduvad piisavad õigused.']);\n\t\t}\n $model = new Product();\n\t\t\t$model->setAttribute('mfr', '-');\n\t\t\t$model->setAttribute('model', '-');\n\t\t\t$model->setAttribute('description', '-');\n\t\t\t$model->setAttribute('price', 0);\n\t\t\t$model->setAttribute('cut_price', 0);\n\t\t\t$model->setAttribute('stock', 0);\n\t\t\t$model->setAttribute('active', 1);\n\t\t\t\n\t\t$model->save();\n\t\t\n\t\treturn $this->redirect(['update', 'id' => $model->id]);\n\n }", "public function createAction()\n {\n\t $form = new Core_Form_Product_Create;\n $action = $this->_helper->url('create', 'product', 'default');\n $form->setAction($action);\n\n if ($this->_request->isPost()) {\n if ($form->isValid($_POST)) {\n $this->_model->create($form->getValues());\n\t \t $this->_helper->FlashMessenger('Product added successfully');\n $this->_helper->Redirector('index','product','default');\n } else {\n $form->populate($_POST);\n }\n } \n $this->view->form = $form;\n }", "public function create()\n {\n $categories=$this->model->getCategories();\n \n $colors=$this->model->getColours();\n return view(\"admin.pages.insertProduct\",['categories'=>$categories,'colors'=>$colors]);\n \n }", "public function actionCreate()\n {\n if(Yii::$app->user->can('create-product')){\n $model = new Products();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->file= UploadedFile::getInstance($model, 'file');\n $upload='';\n\n //UPLOAD FILE----------------------\n if($model->file){\n $imgPath='uploads/products/'; //Set Path\n $model->photo=$imgPath.$model->file->name; //Upload\n $upload=1;\n }\n\n if($model->save()){\n if($upload){\n $model->file->saveAs($model->photo);\n }\n return $this->redirect(['view','id'=>$model->id]); //redirect\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }else{\n throw new ForbiddenHttpException;\n }\n }", "public function actionCreate()\n {\n $model = new Products();\n \t$cat = new CategoryList();\n \t$cat->makeTree();\n \t$sta = Status::find()->all();\n\n $model->CREATEBY = 0;\n $model->PUBLISHBY = 0;\n\n if($model->load(Yii::$app->request->post()) && $model->validate()) {\n\t if ($model->save()) {\n\t return $this->redirect(['index']);\n\t } else {\n\t return $this->render('create', [\n\t 'model' => $model, 'categorylist' => $cat->CTree, 'statuslist' => $sta\n\t ]);\n \t}\n } else {\n return $this->render('create', [\n 'model' => $model, 'categorylist' => $cat->CTree, 'statuslist' => $sta\n ]);\n }\n }", "public function create(){\n\t\t$data['title'] = 'Create Product';\n\t\t\n\t\t//\tis user submitting form or viewing?\n\t\tif( $this->input->post() ){\n\t\t\t//\thandle cancelling\n\t\t\tif( strtolower( $this->input->post('submit') ) == 'cancel' ){\n\t\t\t\tredirect('product');\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//\tvalidate form\n\t\t\t$this->form_validation->set_rules('type', 'type', 'trim|xss_clean');\n\t\t\t$this->form_validation->set_rules('name', 'name', 'trim|required|xss_clean');\n\t\t\t$this->form_validation->set_rules('price', 'price', 'trim|decimal|required|xss_clean');\n\t\t\t$this->form_validation->set_rules('model', 'model', 'trim|required|xss_clean');\n\t\n\t\t\tif( $this->form_validation->run() == TRUE ){\n\t\t\t//\tsave new product\n\t\t\t\t$name = set_value('name');\n\t\t\t\t$price = set_value('price');\n\t\t\t\t$model = set_value('model');\n\t\t\t\t$type = set_value('type') ? set_value('type') : NULL;\n\t\t\t\t\n\t\t\t\tif( $this->product_model->create( $name, $price, $model, $type ) ){\n\t\t\t\t//\tsuccess\n\t\t\t\t\t$this->contentData['message'] = 'product created';\n\t\t\t\t\treturn $this->index();\n\t\t\t\t} else {\n\t\t\t\t//\terror creating new user\n\t\t\t\t\t$this->contentData['message'] = $this->product_model->getMessage();\t\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$this->contentData['message'] = validation_errors();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$data['content'] = $this->load->view('product/product_create', $this->contentData, TRUE);\n\t\t$this->techniart->load($data);\n\t}", "public function create()\n {\n $products=Product::all ();\n\n return view ('admin.product.create',compact ('products'));\n }", "public function create(){\n return view(\"admin.addProduct\");\n }", "public function create(){\n \treturn view('admin.products.create');\n\n }", "public function create()\n\t{\n\t\treturn view('admin.products.create');\n\t}", "public function create()\n {\t\n //\n\t\treturn view('products.create');\n }", "public function create(){\n \treturn view('products.create');\n }", "public function create()\n {\n return view(\"products.create\");\n }", "public function create()\n {\n return view(\"products.create\");\n }", "public function create()\n {\n return view(\"admin.product.create\");\n }", "public function create()\n\t{\n\t\t\n\t\treturn view('product.create');\n\t}", "public function create() {\n\t\t$product = Product::create([\n\t\t\t'title' => '',\n\t\t]);\n\n\t\tif ($product) {\n\t\t\treturn redirect()->route('products.edit', $product->id);\n\t\t}\n\t}", "public function create(){\n \treturn view('product.create');\n }", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n $products = Product::all();\n return view('crm::products.create', compact('products'));\n // return view('crm::products.create');\n }", "public function actionCreate()\n\t{\n\t\t$model=new Productos;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Productos']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Productos'];\n $model->precioUnitario=str_replace(\",\",\"\",$model->precioUnitario);\n\t\t\t$model->precioUnitario=str_replace(\"$\",\"\",$model->precioUnitario); \n\t\t\tif($model->save())\n {\n $objBitacora = new Bitacora();\n $objBitacora->setMovimiento('CREAR','Productos','',$model->id,'',4);\n Yii::app()->user->setFlash('success',Yii::t('app','Item successfully added'));\n $this->redirect(array('admin'));\n }\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function create() {\n /**\n * This controller is used to create a new product \n */\n return view('product.create');\n }", "public function create()\n {\n $statusProducts = StatusProduct::all();\n $categoryProducts = CategoryProduct::all();\n return view('adminlte::products.create', compact('statusProducts','categoryProducts'));\n }", "public function create() {\n\t\tif ( Auth::user()->user_role != 1 ) {\n\t\t\treturn redirect( '/' );\n\t\t}\n\t\t$data = array();\n\t\t$data['category'] = Category::where( 'category_id', '!=', '16' )->get();\n\t\t$data['title'] = 'Add New Product';\n\n\t\treturn view( 'product.create', $data );\n\t}", "public function new_product()\n\t{\n\n\t\t//Inputs the new product into the store\n\t\t$products = array(\n\t\t\"product_name\" => $this->input->post('product_name'),\n\t\t\"price\" => $this->input->post('price'),\n\t\t\"description\" => $this->input->post('description'),\n\t\t\"created_at\" => \"NOW()\",\n\t\t\"updated_at\" => \"NOW()\");\n\n\t\t$this->db->insert('products', $products);\n\n\t\t// Go back to the shop\n\t\tredirect(base_url('shop'));\n\t}", "public function create()\n {\n $product = new Product();\n $action=URL::route('product.store');\n $mode='create';\n $message='';\n $alert='alert-none';\n $disabled='';\n return view('products.create',compact('product','action','mode','message','alert','disabled'));\n }", "public function create()\n {\n return view('product.add_product');\n }", "public function create()\n {\n $data['product'] = new Product;\n $data['manufacturers'] = Manufacturer::all()->pluck('name', 'id');\n $data['form_param'] = ['route'=> 'products.store'];\n return view('products.create', $data);\n }", "public function create()\n {\n return view('admin.products.create_product');\n }", "public function create()\n {\n //\n return view('product.create');\n }", "public function create()\n {\n //\n return view('products/create');\n }", "public function actionCreate()\n {\n $model = new Products();\n\n if ($model->load(Yii::$app->request->post())) {\n $folderProducts = \\Yii::getAlias('@RealDirectory').'/web/uploads/products';\n if(!is_dir($folderProducts)){\n mkdir($folderProducts, 0777);\n }\n\n $rnd = rand(0,9999);\n $link_images = 'uploads/products/'.date(\"Ymd\").'/';\n\n $folderDetailProducts = $folderProducts.'/'.date(\"Ymd\");\n if(!is_dir($folderDetailProducts)){\n mkdir($folderDetailProducts, 0777);\n }\n $uploadedFileCover = UploadedFile::getInstance($model, 'image');\n $fileNameCover = \"{$rnd}-{$uploadedFileCover}\";\n $model->image = $link_images.$fileNameCover;\n\n $model->created_by = \\Yii::$app->user->id;\n $model->updated_by = \\Yii::$app->user->id;\n $model->created = date('Y-m-d H:i:s');\n $model->updated = date('Y-m-d H:i:s');\n if ( $model->save() ) {\n\n $cats = isset($_POST['Products']['category'])?$_POST['Products']['category']:[];\n if( $cats ){\n foreach ($cats as $cat_id){\n $cat = new ProductCategories();\n $cat->product_id = $model->id;\n $cat->category_id = $cat_id;\n if( $cat->save() )\n \\Yii::$app->session->setFlash('SuccessAddCategories','Add categories success!');\n else{\n print_r($cat->getErrors());\n exit;\n }\n } \n }\n \n $manu = isset($_POST['Products']['manufacturer'])?$_POST['Products']['manufacturer']:[];\n if( count($manu) > 0 ){\n foreach ($manu as $manu_id){\n $cat = new ProductManufacturers();\n $cat->product_id = $model->id;\n $cat->manufacturers_id = $manu_id;\n if( $cat->save() )\n \\Yii::$app->session->setFlash('SuccessAddManufacturer','Add Manufacturer success!');\n else{\n print_r($cat->getErrors());\n exit;\n }\n } \n } \n\n $tags = isset($_POST['Products']['tags'])?$_POST['Products']['tags']:[];\n if( count($tags) > 0 ){\n foreach ($tags as $tag){\n $check = Tags::find()->where('id =:id',[':id'=>$tag])->one();\n if ($check) {\n $check->total += 1;\n $check->updated = date('Y-m-d H:i:s');\n if ($check->save()) {\n $productTags = new ProductTags();\n $productTags->product_id = $model->id;\n $productTags->tag_id = $check->id;\n $productTags->created = date('Y-m-d H:i:s');\n $productTags->updated = date('Y-m-d H:i:s');\n $productTags->save();\n }\n else{\n print_r($check->getErrors());\n exit;\n }\n }\n else {\n $model_tag = new Tags(); \n $model_tag->name = $tag;\n $model_tag->slug = \\Yii::$app->func->makeAlias($tag);\n $model_tag->total = 1;\n $model_tag->created = date('Y-m-d H:i:s');\n $model_tag->updated = date('Y-m-d H:i:s');\n if ($model_tag->save()){\n $productTags = new ProductTags();\n $productTags->product_id = $model->id;\n $productTags->tag_id = $model_tag->id;\n $productTags->created = date('Y-m-d H:i:s');\n $productTags->updated = date('Y-m-d H:i:s');\n $productTags->save();\n }\n else{\n print_r($model_tag->getErrors());\n exit;\n }\n }\n \n } \n } \n\n\n if ($model->image && $model->validate()) {\n if(!empty($uploadedFileCover)){\n $uploadedFileCover->saveAs(Yii::$app->basePath.'/web/'.$link_images.$fileNameCover);\n }\n }\n\n return $this->redirect(['view', 'id' => $model->id]);\n } \n else{\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n {\n return view('admin.products.create');\n\n }", "public function create()\n {\n $titleBtn = 'Nuevo Producto';\n $route = route('products.store');\n $method = 'POST';\n $product = new Products;\n\n return view('products.new', compact('titleBtn', 'route', 'method', 'product'));\n\n }", "public function actionCreate()\n {\n if (Yii::$app->user->isGuest) {\n return $this->redirect([\"site/login\"]); \n }\n if(Permiso::requerirRol('lider')){\n $this->layout='/main2';\n }elseif(Permiso::requerirRol('vendedor')){\n $this->layout='/main3';\n }\n $model = new Producto();\n\n \n if ($model->load(Yii::$app->request->post())){ \n \n $model->imagenproducto = UploadedFile::getInstance($model, 'imagen');\n if(isset($model->imagenproducto)){\n $imagen_nombre=rand(0,4000).'image_'.$model->idproveedor.'.'.$model->imagenproducto->extension;\n $imagen_dir='archivo/catalogo/'.$imagen_nombre;\n //print '<pre>';print_r ($model);print $imagen_nombre;print '</pre>';exit;\n $model->imagenproducto->saveAs($imagen_dir);\n $model->imagenproducto=$imagen_dir;\n }\n if($model->save(false)) {\n return $this->redirect(['view', 'id' => $model->idproducto]);\n }\n \n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create()\n {\n //\n $vendor = Vendor::all();\n $category = Category::all();\n return view('admin.superadmin.products.product_create', compact('category', 'vendor'));\n }", "public function create()\n {\n //\n $data = array(\n \"title\" => 'Add Product',\n \"product_categories\" => ProductCategory::all()\n );\n\n return view('products.create')->with($data);\n }", "public function create()\n {\n $all_products = Product::get();\n // dd($all_products);\n return view('admin.products.create', compact('all_products'));\n }", "public function actionCreate()\n {\n $model = new Product();\n $model->scenario = 'create';\n $sku = \\app\\helpers\\AppHelper::generateSkuProduct();\n $model->SKU = $sku;\n if ($model->load(Yii::$app->request->post())) {\n $request = Yii::$app->request->bodyParams;\n $model->is_active = 1;\n $model->created_at = date('Y-m-d H:i:s');\n $model->updated_at = date('Y-m-d H:i:s');\n if (isset($request['Product']['quantity']) && $request['Product']['quantity'] != \"\") {\n $model->remaining_quantity = $request['Product']['quantity'];\n }\n if ($model->save()) {\n if (isset($request['Product']['quantity']) && $request['Product']['quantity'] != \"\") {\n $productQty = new \\app\\models\\ProductStock();\n $productQty->product_id = $model->product_id;\n $productQty->quantity = $request['Product']['quantity'];\n $productQty->created_date = date('Y-m-d H:i:s');\n $productQty->save();\n }\n Yii::$app->session->setFlash('success', 'Product successfully added');\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function actionCreate()\n {\n $model = new ProductGoods();\n $post = Yii::$app->request->post();\n\n if ($model->load($post) && $model->validate()) {\n\n if($model->addressRadioButton == 'my') {\n $model->address = '';\n } else {\n $model->address = $post['ProductGoods']['address'];\n }\n $model->status = ProductGoods::STATUS_NEW;\n $model->user_id = Yii::$app->user->id;\n $model->save();\n\n return $this->redirect(['update', 'id' => $model->id]);\n// return $this->redirect(['/profile/products']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create()\n {\n return view('Admin.Products.create');\n }", "public function create()\n {\n // in de create method van Product willen we de category data en model gebruiken\n\n $categories = Category::all(); \n return view ('admin.products.create', compact('categories')); \n\n }", "public function create()\n {\n $products = Product::all();\n $users = User::all();\n $categories = Category::all();\n return view('frontend.createproduct', ['products' => $products, 'users' => $users, 'categories' => $categories]);\n }", "public function create()\n {\n\n return view('admin/products.create',[\n 'product' => new Product\n ]);\n }", "public function create()\n {\n $categories = Category::all();\n $products = Product::all();\n return view('admin.product.create')->with('products', $products)->with('categories', $categories);\n }", "public function create()\n {\n $categories = Category::all();\n $tags = Tag::all();\n $brands = Brand::all();\n return view('admin.products.create',compact('categories','brands','tags'));\n }", "public function actionCreate()\n {\n $model=new Product;\n \n $user=User::model()->findByPk(Yii::app()->user->id);\n $model->Company_idCompany=$user->Company_idCompany;\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Product']))\n {\n $model->attributes=$_POST['Product'];\n \n $model->image=$this->uploadFile($model, 'image');\n \n if($model->save())\n $this->redirect(array('view','id'=>$model->idProduct));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n ));\n }", "public function create()\n {\n $title=\"Products-Create\";\n return view('FrontProducts.addProduct',compact('title'));\n }", "public function create()\n {\n return view('admin.product.add-product');\n }", "public function create()\n {\n //\n return view('products.create');\n }", "public function actionCreate()\n {\n $model = new Produksi();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create()\r\n {\r\n// return view('admin.product.create');\r\n }", "public function actionCreate()\n { $this->layout='inner';\n $model = new Product();\n $cat_list = ArrayHelper::map(ProductCategory::find()->where(['parent_id'=>'0'])->all(), 'id', 'cat_name');\n $vendor = ArrayHelper::map(User::find()->where(['usertype'=>'Vendor'])->all(), 'id', 'username');\n if ($model->load(Yii::$app->request->post())) {\n //$last_cat=end($_POST['Product']['category_id']);\n if($model->save()){\n /*$product_cat= new ProductCat();\n $product_cat->product_id=$model->id;\n $product_cat->category_id=$last_cat;\n $product_cat->save();*/\n \n //Yii::$app->getSession()->setFlash('success','successful added your product');\n return $this->redirect(['add-search-terms','id'=>$model->id]);\n }\n \n } else {\n return $this->render('create', [\n 'model' => $model,\n 'cat_list'=>$cat_list,\n 'vendor'=>$vendor,\n ]);\n }\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.create');\n }", "public function create()\n {\n return view('admin.products.add');\n }", "public function create()\n {\n return view('addproduct');\n }", "public function create()\n {\n $categories = category::all();\n $products = product::latest()->get();\n return view('admin.products.create', compact('categories'));\n }", "public function create()\n {\n return view('addProduct');\n }", "public function create()\n\t{\n return view('productos.create');\n\t}", "public function create()\n {\n $title = \"Create new product\";\n\n $categories = ProductCategory::all();\n\n return view('pages.product.create', [\n 'title' => $title,\n 'categories' => $categories\n ]);\n }", "public function create() // formulario registro\n {\n return view(products.create);\n }", "public function create()\n\n {\n\n $product = new Product;\n\n\n\n $categories = Category::all(['id', 'title']);\n\n\n\n return view(\"products.create\", compact('product', 'categories'));\n\n }", "public function create()\n {\n return view('productsCreate');\n\n }", "public function create()\n {\n $productCategories = ProductCategory::all();\n return view('admin.products.create', compact('productCategories'));\n }", "public function create()\n {\n return view('backend.products.create');\n }", "public function create()\n {\n return view('backend.products.create');\n }", "public function create()\n {\n return view('admin.product.create');\n }", "public function create()\n {\n return view('admin.product.create');\n }", "public function create()\n {\n return view('admin.product.create');\n }", "public function create()\n {\n return view('product.add');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('product.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }", "public function create()\n {\n return view('products.create');\n }" ]
[ "0.8466368", "0.83674884", "0.8355095", "0.8326711", "0.82675", "0.8135018", "0.80130744", "0.8007102", "0.78880584", "0.77849776", "0.77426726", "0.77388746", "0.7736695", "0.7681387", "0.7625231", "0.75885767", "0.7572512", "0.75501007", "0.75344485", "0.7519762", "0.7519762", "0.75117713", "0.7494973", "0.7494595", "0.7482313", "0.74807405", "0.7480326", "0.74750483", "0.74703145", "0.7460997", "0.73968726", "0.73935294", "0.7386374", "0.7369129", "0.73679644", "0.7367537", "0.7367388", "0.7359792", "0.7355005", "0.73486507", "0.7339327", "0.7336446", "0.7328425", "0.7327397", "0.7326864", "0.7325539", "0.7319926", "0.73171693", "0.7316981", "0.73122823", "0.73121196", "0.73116714", "0.7305916", "0.73058885", "0.7303278", "0.7297326", "0.72967064", "0.7294467", "0.72928447", "0.7285141", "0.72755265", "0.72755265", "0.72755265", "0.72755265", "0.72755265", "0.72755265", "0.72755265", "0.7271991", "0.72644347", "0.726222", "0.72516906", "0.72476995", "0.7241464", "0.7241178", "0.72399914", "0.7239074", "0.7236515", "0.7234368", "0.7234368", "0.7231724", "0.7231724", "0.7231724", "0.7228138", "0.72214633", "0.72214633", "0.72214633", "0.72214633", "0.72214633", "0.72214633", "0.72214633", "0.72198087", "0.72198087", "0.72198087", "0.72198087", "0.72198087", "0.72198087", "0.72198087", "0.72198087", "0.72198087", "0.72198087" ]
0.8813426
0
Updates an existing Products model. If update is successful, the browser will be redirected to the 'view' page.
public function actionUpdate($id) { $model = $this->findModel($id); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('update', [ 'model' => $model, ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Product']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Product'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function update(){\n $this->product->id = $_POST['id'];\n $this->product->name = $_POST['name'];\n $this->product->price = $_POST['price'];\n $this->product->description = $_POST['description'];\n $this->product->category_id = $_POST['category_id'];\n\n\n\n // update the product\n if($this->product->update()){\n header(\"Refresh:2\");\n echo \"<div class=\\\"alert alert-success alert-dismissable\\\">\";\n echo \"<button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\">&times;</button>\";\n echo \"Product was updated.\";\n echo \"</div>\";\n }\n\n // if unable to update the product, tell the user\n else{\n echo \"<div class=\\\"alert alert-danger alert-dismissable\\\">\";\n echo \"<button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\">&times;</button>\";\n echo \"Unable to update product.\";\n echo \"</div>\";\n }\n }", "public function actionUpdate($id)\n {\n /* @var $modelProduct \\common\\models\\Product */\n\n $modelProduct = $this->findModel($id);\n\n if ($modelProduct->load(Yii::$app->request->post())):\n if($modelProduct->updateObject($modelProduct)):\n return $this->redirect(['view', 'id' => $modelProduct->id]);\n endif;\n endif;\n\n return $this->render('update', [\n 'modelProduct' => $modelProduct,\n ]);\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $model->scenario = 'update';\n if ($model->load(Yii::$app->request->post())) {\n $model->updated_at = date('Y-m-d H:i:s');\n if ($model->save()) {\n Yii::$app->session->setFlash('success', 'Product successfully updated');\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function update($id)\n {\n $product=Products::find($id);\n return view('admin.updateProduct')->with('product',$product);\n }", "public function actionUpdate($id) {\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['ClinicStoreproduct'])) {\n $model->attributes = $_POST['ClinicStoreproduct'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_prodcto]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $model=$this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Product']))\n {\n $oldImage=$model->image;\n \n $model->attributes=$_POST['Product'];\n \n $newFileName=$this->uploadFile($model, 'image');\n if($newFileName!=\"\"){\n $model->image=$newFileName;\n }else{\n $model->image=$oldImage;\n }\n \n \n if($model->save())\n $this->redirect(array('view','id'=>$model->idProduct));\n }\n\n $this->render('update',array(\n 'model'=>$model,\n ));\n }", "public function actionUpdate($id)\n {\n\t $model = $id ? $this->findModel($id) : new Product();\n\t\tif(Yii::$app->request->post() && $model->load(Yii::$app->request->post())){\n\t\t\t$uploadedImage = UploadedFile::getInstance($model, 'image');\n\t\t\tif($uploadedImage){\n\t\t\t\t$imgPath = 'uploads/products/' . time().rand(100, 999) . '.' . $uploadedImage->extension;\n\t\t\t\t$uploadedImage->saveAs($imgPath);\n\t\t\t\t$model->image = $imgPath;\n\t\t\t}\n\t\t\tif($model->save()){\n\t\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t\t}\n\t\t}\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function editAction()\n {\n $request = $this->getRequest();\n\n $productId = $request->getParam('id');\n\n if(!$productId) {\n $this->redirect('/');\n }\n\n $this->_helper->viewRenderer->setRender('form');\n\n $form = new Application_Form_Product();\n\n $this->loadModel('product');\n \n if ($request->isPost()) {\n if ($form->isValid($request->getPost())) {\n\n $this->modelProduct->update($form->getValues());\n\n $this->view->success = true;\n $this->view->productName = $form->getValues()['name'];\n $this->view->actionPerformed = 'updated';\n $form->reset();\n }\n } else {\n\n $product = $this->modelProduct->findById($productId);\n\n $this->view->headTitle()->prepend('Edit Product ' . $product['name']);\n\n $categoryToProduct = $this->modelProduct->getCategoryToProduct($productId);\n\n $form->populate($product->toArray());\n\n $form->populate($categoryToProduct->toArray());\n \n }\n\n \n $this->view->form = $form;\n\n }", "public function update_product() {\n\t\t$values=array(\"product_name\"=>$_POST['product_name'],\"description\"=>$_POST['description']);\t\t\t\t\n\t\t$where =array(\"id\"=>$_POST['product_id']);\n\t\tif($this->update(\"products\",$values,$where)) {\t\t\t\n\t\t\techo true;\n\t\t}\n\t\telse\n\t\t\techo 'Error while updating';\n\t}", "public function update_products($prod_id){\n\t\t$where = array('prod_id' => $prod_id );\n \t\t$data['prod_details'] =$this->Product_model->view_prod($where);\n\t\t$data['category'] = $this->get_category();\n\t\tview_loader($data,'seller/update_products');\n\t}", "public function update()\n\t{\n\t\t$option = JRequest::getVar('option');\n\t\t$post = JRequest::get('post');\n\t\t$Itemid = JRequest::getVar('Itemid');\n\t\t$redhelper = new redhelper;\n\t\t$Itemid = $redhelper->getCartItemid();\n\t\t$model = $this->getModel('cart');\n\n\t\t// Call update method of model to update product info of cart\n\t\t$model->update($post);\n\t\t$this->_carthelper->cartFinalCalculation();\n\t\t$this->_carthelper->carttodb();\n\t\t$link = JRoute::_('index.php?option=' . $option . '&view=cart&Itemid=' . $Itemid, false);\n\t\t$this->setRedirect($link);\n\t}", "public function update()\n {\n $category = ProductCategory::find( Input::get('id') );\n $category->name = Input::get('name');\n if( $category->save() ){\n return Redirect::to( route('Products::index') )->withFlash_message([\n \"msg\" => \"Product category has been updated successfully.\",\n \"type\" => \"info\"\n ]);\n }\n return false;\n }", "public function update(ProductRequest $request, $id)\n\t{\n\t\t$product = Product::findOrFail($id);\n $this->saveProduct($request, $product);\n return redirect()->route('products.index')->with('message', 'Item updated successfully.');\n\t}", "public function editAction()\n {\n $productId = $this->_getParam('product_id'); \n\n $this->_model->setId($productId);\n $productModel = $this->_model; \n\n\t $form = new Core_Form_Product_Edit($productId);\n $form->setAction($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'edit',\n 'product_id' => $productId,\n ), NULL, TRUE\n ));\n\n if ($this->_request->isPost()) {\n\n if ($form->isValid($_POST)) {\n $productModel->edit($form->getValues());\n\t \t $this->_helper->FlashMessenger('Product item edited successfully');\n $this->_redirect($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'viewdetails',\n 'product_id' => $productId,\n ), null, false));\n } else {\n $form->populate($_POST);\n $this->view->form = $form;\n }\n\n } else {\n\t $this->view->form = $form;\n }\n\n }", "public function update($id)\n {\n $products=new DashboardModal;;\n $products->update_product($id);\n redirect(base_url('LoginDashboard'));\n }", "public function update(Request $request, Product $products,$id)\n {\n Product::updateProduct($request,$id);\n return redirect('/my_admin/products/')->with('flash_message_success','Հրապարակումը հաջողությամբ խմբագրված է ');\n }", "public function update(ProductUpdateRequest $request, Product $product)\n {\n // TODO de update zorgt ervoor dat er een nieuwe prijs in wordt gezet (dus niet de oude waarde)\n\n $product ->name = $request->name; \n $product->description = $request->description; \n $product->category_id = $request->category_id; \n $product->save(); \n\n if($product->latest_price->price != $request->price) \n\n $price = new Price(); \n $price->price = $request->price; \n $price->effdate = Carbon::now(); \n $price->product_id = $product->id; \n $price->save(); \n\n return redirect()->route('products.index')->with('status', 'Product succesvol Geupdate!'); \n\n }", "public function update()\n {\n\t $dataArr = array(\n\t\t'id' => $this->input->post('id'),\n\t\t'paper_code' => $this->input->post('paper_code'),\n\t\t'subject' => $this->input->post('subject'),\n\t\t'min_marks' => $this->input->post('min_marks'),\n\t\t'max_marks' => $this->input->post('max_marks')\n\t\t);\n\t $SetUp=new SetUpModel;\n $SetUp->update_product($dataArr);\n redirect(base_url('index.php/SetUp'));\n }", "public function update(ProductRequest $request, Products $products)\n {\n $product = $products::find($request->id);\n if(!$product){\n return redirect()->back();\n }\n $product->update([\n 'product_name' => $request->product_name,\n 'description' => $request->product_desc,\n 'section_id' => $request->section_id,\n ]);\n return redirect()->back()->with(['success' => 'تم تعديل المنتج بنجاح']);\n }", "public function update(Request $request, $id)\n {\n \n \n $products = Products::find($id);\n\n \n $products->title = $request->title;\n $products->description = $request->description;\n $products->slug = 1;\n $products->quantity = $request->quantity;\n $products->status = 1;\n $products->price = $request->price;\n $products->offer_price = $request->offer_price;\n $products->save();\n\n return redirect()->route('product.index');\n \n }", "public function update_post()\n {\n\t\t$product_id = $this->post('product_id');\n\t\t$name = $this->post('name');\n $sku = $this->post('sku');\n $category = $this->post('category');\n $price = $this->post('price');\n\n\n\t\t$productData = array(\n 'name' => $name,\n 'sku' => $sku,\n 'category' => $category,\n 'price' => $price, \n );\n\t\n\t\t$this->db->where('id', $product_id);\n\t\t$this->db->update('products', $productData);\n\t\t$this->response([\n\t\t\t'status' => true,\n\t\t\t'message' => \"Update product details successfully\",\n\t\t], Restserver\\Libraries\\REST_Controller_Definitions::HTTP_CREATED); // CREATED (201) being the HTTP response code\n\t\texit;\n\t}", "function edit($id)\n { \n // check if the product exists before trying to edit it\n $data['product'] = $this->Product_model->get_product($id);\n \n if(isset($data['product']['id']))\n {\n $this->load->library('form_validation');\n\n\t\t\t$this->form_validation->set_rules('categorie','Categorie','max_length[100]');\n\t\t\t$this->form_validation->set_rules('names','Names','max_length[500]');\n\t\t\n\t\t\tif($this->form_validation->run()) \n { \n $params = array(\n\t\t\t\t\t'categorie' => $this->input->post('categorie'),\n\t\t\t\t\t'names' => $this->input->post('names'),\n\t\t\t\t\t'price' => $this->input->post('price'),\n\t\t\t\t\t'discount' => $this->input->post('discount'),\n\t\t\t\t\t'stock' => $this->input->post('stock'),\n\t\t\t\t\t'enabled' => $this->input->post('enabled'),\n\t\t\t\t\t//'date_created' => $this->input->post('date_created'),\n\t\t\t\t\t//'date_update' => $this->input->post('date_update'),\n\t\t\t\t\t'description' => $this->input->post('description'),\n 'date_update' => date('Y-m-d H:i:s')\n );\n\n $this->Product_model->update_product($id,$params); \n redirect('product/index');\n }\n else\n {\n\t\t\t\t$this->load->model('User_model');\n\t\t\t\t$data['all_users'] = $this->User_model->get_all_users();\n\n $data['_view'] = 'product/edit';\n $this->load->view('layouts/main',$data);\n }\n }\n else\n show_error('The product you are trying to edit does not exist.');\n }", "public function actionUpdate($id)\r\n {\r\n // Access check\r\n self::checkAdmin();\r\n\r\n // Get the list of categories for the drop-down list\r\n $categoriesList = Category::getCategoriesListAdmin();\r\n\r\n // We receive data on a specific order\r\n $product = Product::getProductById($id);\r\n\r\n // Form processing\r\n if (isset($_POST['submit'])) {\r\n // If the form is submitted\r\n // Get data from the edit form. Validate values if necessary.\r\n $options['name'] = $_POST['name'];\r\n $options['code'] = $_POST['code'];\r\n $options['price'] = $_POST['price'];\r\n $options['category_id'] = $_POST['category_id'];\r\n $options['brand'] = $_POST['brand'];\r\n $options['availability'] = $_POST['availability'];\r\n $options['description'] = $_POST['description'];\r\n $options['is_new'] = $_POST['is_new'];\r\n $options['is_recommended'] = $_POST['is_recommended'];\r\n $options['status'] = $_POST['status'];\r\n\r\n // Save changes\r\n if (Product::updateProductById($id, $options)) {\r\n\r\n\r\n // If the record is saved\r\n // Check if the image is loaded through the form\r\n if (is_uploaded_file($_FILES[\"image\"][\"tmp_name\"])) {\r\n\r\n // If downloaded, move it to the desired folder, give a new name\r\n move_uploaded_file($_FILES[\"image\"][\"tmp_name\"], $_SERVER['DOCUMENT_ROOT'] . \"/upload/images/products/{$id}.jpg\");\r\n }\r\n }\r\n\r\n // Redirecting the user to the product management page\r\n header(\"Location: /admin/product\");\r\n }\r\n\r\n //Connect the view\r\n require_once(ROOT . '/views/admin_product/update.php');\r\n return true;\r\n }", "public function actionUpdate($id)\n\t{\n\t\t$baseScriptUrl = Yii::app()->assetManager->publish(dirname(__file__) . '/../assets');\n\t\tYii::app()->getClientScript()->registerCssFile($baseScriptUrl . '/products.css');\n\n\t\t$model = $this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif (isset($_POST['ProductItem'])) {\n\t\t\t$model->attributes = $_POST['ProductItem'];\n\t\t\tif (isset($_POST['ProductItem']['categories']))\n\t\t\t\t$model->categories = implode(',', $_POST['ProductItem']['categories']);\n\n\t\t\t$fileUpload = CUploadedFile::getInstance($model, 'image');\n\t\t\tif (isset($fileUpload) && $model->validate()) {\n\t\t\t\t$uploadPath = YiiBase::getPathOfAlias('webroot') . '/files/products'; //Yii::app()->basePath . '/../jlwebroot/upload';\n\n\t\t\t\tif (!is_dir($uploadPath)) {\n\t\t\t\t\t@mkdir($uploadPath);\n\t\t\t\t\t@chmod($uploadPath, 0777);\n\t\t\t\t}\n\n\t\t\t\t// Delete old image\n\t\t\t\tif ($model->image) {\n\t\t\t\t\t@unlink($uploadPath . '/' . $model->image);\n\t\t\t\t\t@unlink($uploadPath . '/thumb_' . $model->image);\n\t\t\t\t}\n\n\t\t\t\t$filename = time() . mt_rand(0, 0xfff) . '.' . $fileUpload->getExtensionName();\n\t\t\t\t$fileUpload->saveAs($uploadPath . '/' . $filename);\n\n\t\t\t\t/**\n\t\t\t\t * @todo chưa có setting cho thumbnail \n\t\t\t\t * */\n\n\t\t\t\t// thumbnails image\n\t\t\t\t$thumbsPath = $uploadPath;\n\t\t\t\tYii::import(\"ext.EPhpThumb.EPhpThumb\");\n\t\t\t\t$thumb = new EPhpThumb();\n\t\t\t\t$thumb->init(); //this is needed\n\t\t\t\t$thumb->create($uploadPath . '/' . $filename)\n\t\t\t\t\t ->adaptiveResize(Yii::app()->getModule('products')->widthThumb, Yii::app()->getModule('products')->heightThumb)\n\t\t\t\t\t ->save($thumbsPath . '/thumb_' . $filename);\n\n\t\t\t\t$model->image = $filename;\n\t\t\t}\n\n\t\t\tif ($model->validate() && $model->removeImage && $model->image) {\n\t\t\t\t// Delete old image\n\t\t\t\tif ($model->image) {\n\t\t\t\t\t@unlink($uploadPath . '/' . $model->image);\n\t\t\t\t\t@unlink($uploadPath . '/thumb_' . $model->image);\n\t\t\t\t}\n\t\t\t\t$model->image = '';\n\t\t\t}\n\n\t\t\t$model->modified = date('Y-m-d H:i:s', time());\n\n\t\t\tif ($model->save())\n\t\t\t\t$this->redirect(array('admin'));\n\t\t}\n\n\t\t$categories = ProductCategory::model()->roots()->findAll();\n\n\t\t$this->render('form', array('model' => $model, 'categories' => $categories));\n\t}", "public function update(ProductRequest $request, Product $product)\n {\n $product->update($request->all());\n return redirect()->route('products.show',$product->id)->with('info', 'Product success update');\n }", "public function update(Request $request, Product $product)\n {\n if( Auth::check() ){\n $productUpdate=Product::where('id', $product->id)->update([\n 'category_id' => $request->input('category_id'),\n 'brand_id' => $request->input('brand_id'),\n 'modelname'=>$request->input('modelname'),\n 'productname'=>$request->input('productname'),\n 'isserialised'=>$request->input('isserialised'),\n 'status'=>$request->input('status'),\n ]);\n if($productUpdate){\n return redirect()->route('product.index', ['product'=>$product->id])\n ->with('success' , \"Product Updated successfully\");\n }\n }\n return view('auth.login');\n }", "public function update(ProductUpdateFormRequest $request, $id)\n {\n $product=Product::find($id);\n $product->name=$request->get('product_name');\n $product->cat_id=$request->get('cat_id');\n $product->price=$request->get('price');\n $product->package_id=$request->get('package_id');\n $product->foc_id=$request->get('foc_id');\n $product->description=$request->get('description');\n $product->update();\n return redirect(action('admin\\ProductController@edit',$id))->with('status','successfully edited');\n }", "public function update(Request $request, $id ,Product $product)\n {\n $category_id=$request->input('category_id');\n $productCode=$request->input('productCode');\n $productName=$request->input('productName');\n $productDescription=$request->input('productDescription');\n $productNetPrice=$request->input('productNetPrice');\n $productQuntity=$request->input('productQuntity');\n $productUnit=$request->input('productUnit');\n $productTotalPrice=$request->input('productTotalPrice');\n\n $product = Product::find($id) ;\n $product->category_id=$category_id;\n $product->productCode=$productCode;\n $product->productName=$productName;\n $product->productDescription=$productDescription;\n $product->productNetPrice=$productNetPrice;\n $product->productQuntity=$productQuntity;\n $product->productUnit=$productUnit;\n $product->productTotalPrice=$productTotalPrice;\n $product->save();\n\n\n return redirect ('/adminpanel/products');\n\n\n }", "public function update(Request $request,$id){\n\n $product = product::find($id)->update($request->all());\n return redirect(route('dashboard.product.show'));\n }", "public function update(ProductRequest $request, $id)\n {\n ModelsModelProduct::where(['id'=>$id])->update([\n 'name'=>$request->name,\n 'description'=>$request->description,\n 'category'=>$request->category,\n 'price'=>$request->price,\n 'qnt'=>$request->qnt,\n ]);\n return redirect('products'); }", "public function update(Product $product, CreateProductRequest $request)\n\t{\n\t\t$product->fill($request->all())->save();\n\t\t\n\t\treturn redirect()->route('product.index');\n\t}", "public function update(ProductsRequest $request, $id)\n {\n $this->productsService->update($request, $id);\n return redirect()->route('products.index')->with('status', 'Cập nhật sản phẩm thành công!');\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $image = $model->image;\n\n if ($model->load(Yii::$app->request->post())) {\n $rnd = rand(0,9999);\n $link_images = 'uploads/products/'.date(\"Ymd\").'/';\n $uploadedFile = UploadedFile::getInstance($model, 'image');\n if(!empty($uploadedFile)) {\n $fileName = \"{$rnd}-{$uploadedFile}\";\n $model->image = $link_images.$fileName;\n }\n else{\n $model->image = $image;\n }\n\n $model->updated_by = \\Yii::$app->user->id;\n $model->updated = date('Y-m-d H:i:s');\n if ($model->save()){\n if ($model->image && $model->validate()) {\n if(!empty($uploadedFile)){\n $uploadedFile->saveAs(Yii::$app->basePath.'/web/'.$link_images.$fileName);\n }\n }\n\n ProductCategories::deleteAll(\n \"product_id = :product_id\",\n array(':product_id' => $model->id)\n );\n $cats = isset($_POST['Products']['category'])?$_POST['Products']['category']:[];\n if( count($cats) > 0 ){\n foreach ($cats as $cat_id){\n $cat = new ProductCategories();\n $cat->product_id = $model->id;\n $cat->category_id = $cat_id;\n if( $cat->save() )\n \\Yii::$app->session->setFlash('SuccessAddCategories','Add categories success!');\n else{\n print_r($cat->getErrors());\n exit;\n }\n }\n }\n\n ProductManufacturers::deleteAll(\n \"product_id = :product_id\",\n array(':product_id' => $model->id)\n );\n $manu = isset($_POST['Products']['manufacturer'])?$_POST['Products']['manufacturer']:[];\n if (count($manu) > 0){\n foreach ($manu as $manu_id){\n $cat = new ProductManufacturers();\n $cat->product_id = $model->id;\n $cat->manufacturers_id = $manu_id;\n if ($cat->save())\n \\Yii::$app->session->setFlash('SuccessAddManufacturer','Add Manufacturer success!');\n else{\n print_r($cat->getErrors());\n exit;\n }\n } \n } \n\n ProductTags::deleteAll(\n \"product_id = :product_id\",\n array(':product_id' => $model->id)\n );\n $tags = isset($_POST['Products']['tags'])?$_POST['Products']['tags']:[];\n if( count($tags) > 0 ){\n foreach ($tags as $tag){\n $check = Tags::find()->where('id =:id',[':id'=>$tag])->one();\n if ($check) {\n $check->updated = date('Y-m-d H:i:s');\n if ($check->save()) {\n $productTags = new ProductTags();\n $productTags->product_id = $model->id;\n $productTags->tag_id = $check->id;\n $productTags->created = date('Y-m-d H:i:s');\n $productTags->updated = date('Y-m-d H:i:s');\n $productTags->save();\n }\n else{\n print_r($check->getErrors());\n exit;\n }\n }\n else {\n $model_tag = new Tags(); \n $model_tag->name = $tag;\n $model_tag->slug = \\Yii::$app->func->makeAlias($tag);\n $model_tag->total = 1;\n $model_tag->created = date('Y-m-d H:i:s');\n $model_tag->updated = date('Y-m-d H:i:s');\n if ($model_tag->save()){\n $productTags = new ProductTags();\n $productTags->product_id = $model->id;\n $productTags->tag_id = $model_tag->id;\n $productTags->created = date('Y-m-d H:i:s');\n $productTags->updated = date('Y-m-d H:i:s');\n $productTags->save();\n }\n else{\n print_r($model_tag->getErrors());\n exit;\n }\n }\n \n } \n } \n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n } \n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id)\n {\n $product_id = Yii::$app->request->get('product_id');\n $model = $this->findModel($id);\n if (Yii::$app->request->post('hasEditable')) {\n $model->load(Yii::$app->request->post($model->formName())[Yii::$app->request->post('editableIndex')], '');\n $dirtyAttribute = array_keys($model->dirtyAttributes)[0];\n $model->save();\n return Json::encode([\n 'output' => $dirtyAttribute === 'value'?\n $model->{$dirtyAttribute}:\n $model->productAttribute->name,\n 'message'=>''\n ]);\n }\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['product/update', 'id' => $product_id]);\n } else {\n return $this->render($this->update_view, [\n 'model' => $model,\n ]);\n }\n }", "public function update(ProductFormRequest $request, $id)\n {\n $dataForm = $request->all();\n\n $dataForm['active'] = (!isset($dataForm['active']) ) ? 0 : $dataForm['active'];\n\n $dados_prod = $this->product->find($id);\n \n $update = $dados_prod->update($dataForm);\n \n if($update)\n return redirect()->route('produtos.index');\n else\n return redirect()->route('produtos.edit', $id)->with(['errors' => 'Falha ao Editar!']);\n }", "public function update(Request $request, Product $product)\n {\n $product->update($request->all());\n return \\redirect('/products');\n }", "public function update(Request $request)\n {\n $product = Product::find($request->id);\n $product->name=$request->name;\n $product->quantity=$request->quantity;\n $product->manufacture_date=$request->manufactureDate;\n $product->save();\n Session::flash('message', 'Product is updated successfully!');\n return redirect('/all-products');\n\n }", "public function update()\r\n {\r\n\r\n $this->load->helper(array('form'));\r\n\r\n\r\n /* Load form validation library */\r\n\r\n $this->load->library('form_validation');\r\n\r\n\r\n /* Set validation rule for name field in the form */\r\n\r\n $this->form_validation->set_rules('cicdn', 'CICDN', 'required');\r\n\r\n\r\n if ($this->form_validation->run() == FALSE) {\r\n\r\n header(\"Location: {$_SERVER['HTTP_REFERER']}\");\r\n\r\n exit;\r\n\r\n } else {\r\n\r\n $data = $_REQUEST;\r\n\r\n $this->products->change($data);\r\n\r\n redirect('admin/setup/products', 'location', 301);\r\n\r\n }\r\n\r\n }", "public function update(ProductUpdate $request, $id)\n {\n $product = Product::find($id);\n $product->name = $request->input('name', 'Sin Nombre');\n $product->save();\n\n return redirect()->route('product.index');\n }", "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n } else if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash(\"success\", Yii::t('modules/user', \"Changes has been saved.\"));\n $this->refresh();\n } else {\n return $this->render('update', ['model' => $model,]);\n }\n }", "public function updateProduct(Product $product);", "public function update(UpdateProductsRequest $request, Products $product)\n {\n //return $request;\n //dd(request()->all());\n $data = request()->all();\n\n $product->name = $data['name'];\n\n $product->price = $data['price'];\n\n $product->discription = $data['discription'];\n\n //check if new image\n if($request->hasFile('image'))\n {\n //upload it\n $image = $request->image->store('products');\n\n //delete old one\n //$product->deleteimage();\n\n $data['image'] = $image;\n \n }\n //$product->save();\n //update attributes\n $product -> update($data);\n\n session()->flash('success','Product Is Updated');\n return redirect(route('products.index'));\n }", "public function update(Request $request, $id)//replace with (Request $request, $id) instead of Request $request, Products $products \n {\n\t\t//validate the fields. Error messages are shown on the edit.blade.php page.\n\t\t$request->validate([\n\t\t 'name' => 'bail|required|max:100',\n\t\t 'description' => 'bail|required',\n\t\t ]);\n\t\t\n //PUT/PATCH \t/photos/{photo} \tupdate \tphotos.update\n\t\t$products = Products::findOrFail($id);\n\t\t\n\t\t//authenticate for the corect user\n\t\tif($products->user_id !== auth()->id()){\n\t\t\tabort(403);\n\t\t}\n\t\t\n\t\t$products->name = request('name');//$request->name;\n\t\t$products->description = request('description');//$request->description;\n\t\t\n\t\t$products->save();\t\n\t\t\n\t\t\n //load all of the products\n\t\treturn redirect('/products');\n }", "public function actionUpdate($id) {\n //echo '<pre>'; print_r($_POST);die;\n /*if (substr_count(Yii::app()->session['premission_info']['module_info']['subscribedProduct'], 'U') == 0) {\n Yii::app()->user->setFlash('permission_error', 'You have not permission to access');\n Yii::app()->controller->redirect(\"index.php?r=DashboardPage/index\");\n }*/\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n if (isset($_POST['SubscribedProduct'])) {\n $model->attributes = $_POST['SubscribedProduct'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->subscribed_product_id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function update($id)\n\t{\n\t\t$product = \\App\\Models\\Product::find($id);\n\t\t$product->fill(\\Input::all());\n\t\t$product->save();\n\n\t\t\\Session::flash('success', 'מוצר שונה בהצלחה');\n\t\treturn \\Redirect::back();\n\t}", "public function update(Product $product, ProductStoreOrUpdateRequest $request)\n {\n $this->products->update($product, $request->all());\n return redirect()->route(env('APP_BACKEND_PREFIX').'.products.index')->withFlashSuccess('更新成功');\n }", "public function update(Request $request)\n {\n $product = Product::find($request->id);\n $product->category_id = $request->category_id;\n $product->name = $request->name;\n $product->model_no = $request->model_no;\n $product->price = $request->price;\n $product->maintenance_period = $request->maintenance_period;\n $product->device_check = $request->device_check;\n $product->sale_check = $request->sale_check;\n $product->save();\n return redirect()->route('product');\n }", "public function update()\r\n\t\t{\r\n\t\t\t//Validate request method\r\n\t\t\tif($this->getRequestMethod() != \"POST\"){\r\n\t\t\t\t$this->methodNotAllowed();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Input validations\r\n\t\t\t$this->validation(array('iProductId'));\r\n\t\t\t\r\n\t\t\t$iProductId = (int)$this->_arrRequest['iProductId'];\r\n\r\n\t\t\tif($iProductId > 0){\r\n\t\t\t\t$sWhere \t\t= \"iProductId = '\".$iProductId.\"'\";\r\n\t\t\t\t$iDeleteStatus \t= $this->deleteRecord($this->_sCartTable,$sWhere);\r\n\t\t\t\t$iStatus \t\t= ($iDeleteStatus>0) ? \"Success\" : \"False\";\r\n\t\t\t\t$sMessage\t\t= ($iDeleteStatus>0) ? \"Cart updated.\" : \"Fail to update.\";\r\n\t\t\t}else{\r\n\t\t\t\t$iStatus = \"False\";\r\n\t\t\t\t$sMessage = \"Invalid input.\";\r\n\t\t\t}\r\n\t\t\t$arrResponse['status']\t= $iStatus;\r\n\t\t\t$arrResponse['message']\t= $sMessage;\r\n\t\t\t$this->response($this->json($arrResponse), 200);\r\n\t\t}", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Products']))\n\t\t{\n\t\t//$model->attributes=$_POST['Products'];\n $model->pro_summary = $_POST['Products']['pro_summary'];\n $model->pro_content = $_POST['Products']['pro_content'];\n $model->pro_summaryen = $_POST['Products']['pro_summaryen'];\n $model->pro_contenten = $_POST['Products']['pro_contenten'];\n $model->pro_specifications = $_POST['Products']['pro_specifications'];\n $model->pro_specificationsen = $_POST['Products']['pro_specificationsen'];\n $model->pro_order = Products::model()->maxProId()+1;\n $model->pro_cateidarr = $_POST['Products']['pro_cateidarr'];\n $model->pro_title = $_POST['Products']['pro_title'];\n $model->pro_titleen = $_POST['Products']['pro_titleen'];\n $model->pro_price = $_POST['Products']['pro_price'];\n $model->pro_typical = $_POST['Products']['pro_typical'];\n $model->pro_status = $_POST['Products']['pro_status'];\n $file=CUploadedFile::getInstance($model,'pro_images');\n if($file!=\"\")\n {\n// if($model->pro_images!=\"\")\n// unlink(Yii::getPathOfAlias('webroot').'/uploads/'.$model->pro_images);\n $model->pro_images = str_replace('.', date(\"his\").'.', $file);\n \n }\n\t\t\tif($model->save())\n {\n if($file!=\"\")\n $file->saveAs(Yii::getPathOfAlias('webroot').'/uploads/'.$model->pro_images);\n if($file!=\"\")\n $file->saveAs(Yii::getPathOfAlias('webroot').'/uploads/'.$model->pro_images);\n \n //Add nhiều iamges\n $attachs = CUploadedFile::getInstancesByName('files');\n $i=1;\n foreach ($attachs as $key => $attachItem) {\n // Tach lay ten va duoi file\n $temp = explode('.', $attachItem->name);\n \n if($attachItem->saveAs(Yii::getPathOfAlias('webroot').'/uploads/'.$temp[0].date('his').'.'.$temp[1]))\n {\n $document = new Document();\n $document->document_entityid=$model->pro_id;\n $document->document_entity = 'product';\n $document->document_url='/uploads/'.$temp[0].date('his').'.'.$temp[1];\n $document->document_name = $attachItem;\n $document->document_icon = \"/images/fileicons/32px/\".$temp[1].\".png\";\n $document->document_type = $temp[1];\n $document->document_createdate = date('Y-m-d h:i:s');\n $document->document_order = $i;\n $document ->save();\n }\n $i++;\n }\n //END \n $this->redirect(array('admin'));\n }\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function update($id)\n {\n if (Input::get('check_update') == 1) {\n $validator = Validator::make(Input::all(), Products::$rules2);\n\n if ($validator->passes()) {\n $product = Products::find($id);\n $product->name = addslashes(Input::get('name'));\n $product->color_id = Input::get('color');\n $product->cp = Input::get('cp');\n $product->sp = Input::get('sp');\n $product->type_id = Input::get('type_id');\n $product->unit_id = Input::get('unit_id');\n $product->save();\n return Redirect::route('products.index')\n ->with('success', 'Product updated successfully');\n } else {\n return Redirect::route('products.edit', $id)\n ->withErrors($validator)\n ->withInput(Input::all());\n }\n\n } else {\n $validator = Validator::make(Input::all(), Products::$rules3);\n\n if ($validator->passes()) {\n $product = Products::find($id);\n $product->discount = Input::get('discount');\n $product->save();\n\n return Redirect::route('products.index')\n ->with('success', 'Product discount updated successfully');\n } else {\n return Redirect::route('products.discount', $id)\n ->withErrors($validator)\n ->withInput(Input::all());\n }\n }\n\n }", "public function update(ProductRequest $request)\n {\n try {\n $this->productService->update($request->except(['_method', '_token']));\n \\Log::info('Product updated successfully.', [\"created_by\" => \\Auth::user()->id]);\n return redirect('/products')->with('message', 'Product updated successfully.');\n\n } catch (ValidationException $e) {\n \\Log::error('Failed to update product.', [\"ValidationException\" => $e->getMessage()]);\n return redirect()->back()->with('message', $e->getMessage());\n\n } catch (QueryException $e) {\n \\Log::error('Failed to update product.', [\"QueryException\" => $e->getMessage()]);\n return redirect()->back()->with('message', $e->getMessage());\n\n } catch (DBTransactionException $e) {\n \\Log::error('Failed to save product.', [\"Transaction\" => $e->getMessage()]);\n return redirect()->back()->with('message', 'There was a problem updating. Please try again.');\n }\n }", "public function update(ProductStoreRequest $request, $id)\n {\n $product = Product::find($id);\n $this->saveProduct($product, $request);\n $product->update();\n return redirect('/admin/products');\n }", "public function update( $id, Request $request ) {\n\t\tif ( Auth::user()->user_role != 1 ) {\n\t\t\treturn redirect( '/' );\n\t\t}\n\t\t$product1 = Product::where( 'id', $id )->first();\n\t\t$product1->product_name = $request->get( 'product_name' );\n\t\t$product1->product_description = $request->get( 'product_des' );\n\t\t$product1->category_id = $request->get( 'category_id' );\n\t\t$product1->save();\n\n\t\treturn redirect( '/products' );\n\t}", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $old_photo = $model->image;\n $brands = Brands::find()->asArray()->all();\n $categories = Categories::find()->asArray()->all();\n $products = Products::find()->where(['<>','id', $model->id])->asArray()->all();\n $products_list = ArrayHelper::map($products,'id','title');\n $brands_list = ArrayHelper::map($brands,'id','title');\n $categories_list = ArrayHelper::map($categories,'id','title');\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $imgFile = UploadedFile::getInstance($model, \"image\");\n\n if (!empty($imgFile)) {\n\n $imgPath = Yii::getAlias(\"@frontend\") . \"/web/images/products/\";\n //$image_name = (uniqid('logo').$imgPath->baseName.date('dHis') ). '.' . $imgPath->extension;\n\n $imgName = Yii::$app->security->generateRandomString() . '.' . $imgFile->extension;\n\n $path = $imgPath . $imgName;\n if($imgFile->saveAs($path)){\n\n $model->image = $imgName;\n $model->update(false);\n if(!empty($old_photo)){\n unlink($imgPath.$old_photo);\n }\n\n }\n }else{\n $model->image = $old_photo;\n $model->save(false);\n }\n\n $session = Yii::$app->session;\n\n// Request #1\n// set a flash message named as \"postDeleted\"\n //$session->setFlash('postDeleted', 'You have successfully updated your product.');\n $session->addFlash('alerts', 'You have successfully deleted your post.');\n $session->addFlash('alerts', 'You have successfully added a new friend.');\n $session->addFlash('alerts', 'You are promoted.');\n\n return $this->redirect(['index']);\n }\n\n return $this->render('update', [\n 'model' => $model,\n 'brands_list' => $brands_list,\n 'products' => $products_list,\n 'categories_list' => $categories_list\n ]);\n }", "public function update(UpdateProductRequest $request, $id)\n {\n $response = self::updateProduct($id, $request);\n\n return $response ? redirect()->route('product.index')\n ->with('success','El producto se actualizó con éxito')\n : redirect()->back()->with('error','Sucedió un error, el producto no se actualizó');\n }", "public function update(Request $request, $id)\n {\n // $products = Product::findOrFail($id);\n\n Product::findOrFail($id)->Update([\n 'category_id' => $request->category_id,\n 'brand_id' => $request->brand_id,\n 'product_name' => $request->product_name,\n 'product_slug' => strtolower(str_replace(' ','-',$request->product_name)),\n 'product_code' => $request->product_code,\n 'price' => $request->price,\n 'product_quantity' => $request->product_quantity,\n 'short_description' => $request->short_description,\n 'long_description' => $request->long_description,\n ]);\n\n return redirect('admin/product/edit/'.$id);\n }", "public function update(Products $product)\n {\n $this->validateRequest();\n\n $product->name = request('name');\n $product->price = request('price');\n if(request()->file('img'))\n {\n $img = request()->file('img');\n $imgName = $img->getClientOriginalName();\n Image::make($img)->save(public_path('/images/uploads/products/'.$imgName));\n $product->img = $imgName;\n }\n\n $product->save();\n\n return redirect('/l2admin/products');\n }", "public function updateAction() {\n $model = new Application_Model_Compromisso();\n //passo para a model os dados a serem upados\n $model->update($this->_getAllParams());\n //redireciono para a view\n $this->_redirect('compromisso/index');\n }", "public function update(Request $request, Products $products)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'points' => 'required|numeric',\n 'description' => 'required'\n ]);\n\n $products->fill(request(['name', 'points', 'description']))->save();\n\n return back()->with('message', ['success', 'Producto actualizado correctamente']);\n }", "public function update(){\n $produkModel =new ProdukModel();\n $id= $this->request->getVar('id');\n $created_at = date('d-m-Y');\n $data=[\n 'name'=>$this->request->getVar('name'),\n 'sell'=>$this->request->getVar('sell'),\n 'created_at'=> $created_at \n ];\n $produkModel->update($id, $data);\n return $this->response->redirect(site_url('/produk-list'));\n }", "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Productos']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Productos'];\n $modelOld= Productos::model()->findByPK($model->id);\n\t\t\tif($model->save() )\n {\n $objBitacora = new Bitacora();\n ($modelOld->nombre != $model->nombre) ? $objBitacora->setMovimiento('EDITAR','Productos','nombre',$model->id,$modelOld->nombre,4) : false;\n ($modelOld->cantidadInicial != $model->cantidadInicial) ? $objBitacora->setMovimiento('EDITAR','Productos','cantidadInicial',$model->id,$modelOld->cantidadInicial,4) : false;\n ($modelOld->existencias != $model->existencias) ? $objBitacora->setMovimiento('EDITAR','Productos','existencias',$model->id,$modelOld->existencias,4) : false;\n ($modelOld->caducidad != $model->caducidad) ? $objBitacora->setMovimiento('EDITAR','Productos','caducidad',$model->id,$modelOld->caducidad,4) : false;\n ($modelOld->precioUnitario != $model->precioUnitario) ? $objBitacora->setMovimiento('EDITAR','Productos','precioUnitario',$model->id,$modelOld->precioUnitario,4) : false;\n ($modelOld->idUnidades != $model->idUnidades) ? $objBitacora->setMovimiento('EDITAR','Productos','idUnidades',$model->id,$modelOld->idUnidades,4) : false;\n Yii::app()->user->setFlash('success',Yii::t('app','Item successfully update'));\n $this->redirect(array('admin'));\n }\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function update(ProductUpdateRequest $request, $id)\n {\n abort_if(auth()->user()->community->store->products()->find(['id' => $id])->isEmpty(), 403);\n Product::findOrFail($id)->update($request->validated());\n\n return redirect()->back()->withSuccess('Perubahan berhasil disimpan!');\n }", "public function update(ProductFormRequest $request, $id)\n {\n $dataForm = $request->all();\n \n $product = $this->product->find($id);\n\n $update = $product->update($dataForm);\n\n if ($update)\n return redirect()->route('produtos.index');\n else\n return redirect()->back();\n }", "public function update(Request $request, Product $product)\n {\n request()->validate([\n 'name' => 'required',\n 'detail' => 'required',\n ]);\n\n $product->update($request->all());\n\n return redirect()->route('products.index')\n ->with('success','Product updated successfully');\n }", "public function update(Request $request, $id)\n\t{\n\t\t// validate the form\n\t\t$this -> validate($request, [\n\t\t\t'title' => 'required',\n\t\t\t'kategory' => 'required',\n\t\t\t'desc' => 'required',\n\t\t\t'stock' => 'required',\n\t\t\t'price' => 'required',\n\t\t\t'image' => 'required',\n\t\t]);\n\t\t//find the product and update\n\t\t$product = product::find($id);\n\t\t$product->title = $request->title;\n\t\t$product->kategory = $request->kategory;\n\t\t$product->desc = $request->desc;\n\t\t$product->stock = $request->stock;\n\t\t$product->price = $request->price;\n\t\t$product->image = $request->image;\n\t\t$product->slug = str_slug($request->title,'-');\n\t\t$product->save();\n\n\t\treturn redirect('products');\n\t}", "public function update(SaveProductRequest $request, Product $product)\n {\n $product->fill($request->all());\n $product->direccion= str_slug($request->get('nombre'));\n $product->visible = $request->has('visible') ? 1 : 0;\n\n $updated = $product->save();\n\n $message = $updated ? 'Producto actualizado correctamente!' : 'El Producto NO pudo actualizarse!';\n\n return redirect()->route('admin.product.index')->with('message', $message);\n }", "public function update(ProductCreateRequest $request, $id)\n {\n $product=ProductRepository::update($request,$id);\n return redirect('products/' . $product->id);\n }", "function update()\n\t{\n\t\t$id = getParameter('id');\n\t\t$name = getParameter('name');\n\t\t$price = getParameter('price');\n\t\t$img = $_FILES['image']['tmp_name'];\n\t\t$image = file_get_contents($img);\n\t\t$quantity = getParameter('quantity');\n\t\t$category = getParameter('category');\n\t\t$brand = getParameter('brand');\n\t\t// if ($category == 'VEST') {\n\t\t// \t$category = 1;\n\t\t// } elseif ($category == 'SƠ MI') {\n\t\t// \t$category = 2;\n\t\t// } elseif ($category == 'CARAVAT') {\n\t\t// \t$category = 3;\n\t\t// } elseif ($category == 'NƠ') {\n\t\t// \t$category = 4;\n\t\t// } elseif ($category == 'KHĂN CÀI VEST') {\n\t\t// \t$category = 5;\n\t\t// } elseif ($category == 'GIÀY DA') {\n\t\t// \t$category = 6;\n\t\t// } elseif ($category == 'ÁO DA') {\n\t\t// \t$category = 7;\n\t\t// } elseif ($category == 'QUẦN ÂU') {\n\t\t// \t$category = 8;\n\t\t// }\n\n\t\t// if ($brand == 'Adam') {\n\t\t// \t$brand = 1;\n\t\t// }\n\n\n\t\t$errors = [];\n\n\t\tif (count($errors > 0)) {\n\t\t\t$this->view->load('product/edit', [\n\t\t\t\t'errors' => $errors\n\t\t\t]);\n\t\t} else {\n\t\t\t$product = $this->model->product->update($id, [\n\t\t\t\t'name' => $name,\n\t\t\t\t'price' => $price,\n\t\t\t\t'image' => $image,\n\t\t\t\t'quantity' => $quantity,\n\t\t\t\t'categories_id' => $category,\n\t\t\t\t'brand' => $brand\n\t\t\t]);\n\n\t\t\tif ($product) {\n\t\t\t\t$this->view->load('product/index');\n\t\t\t} else {\n\t\t\t\t$this->layout->set('auth_layout');\n\t\t\t\t$this->view->load('product/edit', [\n\t\t\t\t\t'error_message' => 'Cập nhật không thành công'\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t}", "public function update(Product $product, UpdateProduct $request)\n {\n try {\n $product->update($request->all());\n\n flash()->success(__(':name has been updated', ['name' => $product->name]));\n } catch (\\Exception $e) {\n flash()->error(__('Error: :msg', ['msg' => $e->getMessage()]));\n\n return redirect()->back()->withInput();\n }\n\n return redirect(route('vanilo.product.index'));\n }", "public function update(Request $request, Product $product)\n {\n $product->name = $request->name;\n $product->unitprice = $request->unitprice;\n $product->description = $request->description;\n $product->provider_id = $request->provider_id;\n\n $product->save();\n\n return redirect()->route('products.index');\n }", "public function update(Request $request, $id)\n {\n //\n\n $product=Product::findorfail($id);\n $product->update($request->all());\n return redirect('products');\n }", "public function update(Request $request,$id)\n {\n $product=Product::find($id);\n $product->name=$request->input('name');\n $product->description=$request->input('description');\n $product->price=$request->input('price');\n $product->long_description=$request->input('long_description');\n $product->save();//Update es lo que realizara\n return redirect('/admin/products');\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($id, Updatestock_productsRequest $request)\n {\n $stockProducts = $this->stockProductsRepository->findWithoutFail($id);\n\n if (empty($stockProducts)) {\n Flash::error('Stock Products not found');\n\n return redirect(route('stockProducts.index'));\n }\n\n $stockProducts = $this->stockProductsRepository->update($request->all(), $id);\n\n Flash::success('Stock Products updated successfully.');\n\n return redirect(route('stockProducts.index'));\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $product->name=$request->productname;\n $product->buying_Price=$request->buying_Price;\n $product->selling_Price=$request->selling_Price;\n $product->save();\n return redirect()->route('product.index');\n }", "public function showUpdateproductsAction()\n {\n $categoriesManager = new CategoriesManager();\n $categories = $categoriesManager->getAllCategories();\n $productManager = new productManager();\n $id = $_GET['id'];\n $products = $productManager->getOneProduct($id);\n\n if ($_SERVER['REQUEST_METHOD'] == 'POST') {\n if (empty('name')) {\n $errors['name'] = \"Veuillez ajouter un nom.\";\n } elseif (empty('description')) {\n $errors['description'] = \"Veuillez ajouter une description.\";\n } elseif (empty('images_images_id')) {\n $errors['image'] = \"Veuillez ajouter une image.\";\n\n } else {\n $productManager = new ProductManager();\n $id = $_GET['id'];\n $name = $_POST['name'];\n $description = $_POST['description'];\n $category = $_POST['category'];\n\n if (!empty($errors)) {\n return $this->twig->render('admin/updateproducts.html.twig', array(\n 'errors' => $errors,\n 'categories' => $categories,\n 'products' => $products\n ));\n } else {\n if (!empty($_FILES['image']['name'])) {\n // Récuperation\n $image = $_FILES['image'];\n // Objet contenant l'image\n $uploadedfile = new UploadedFile($image['name'], $image['tmp_name'], $image['size']);\n // Objet contenant le service d'upload\n $upload = new Uploads();\n $result = $upload->upload($uploadedfile);\n $url = $uploadedfile->getFileName();\n if (!empty($result)) {\n return $this->twig->render('admin/updateproducts.html.twig', array(\n 'error_image' => $result,\n 'categories' => $categories,\n 'products' => $products\n ));\n }\n } else {\n $url = $products->url;\n }\n // Requête BDD\n $productManager->updateProduct($id, $name, $description, $category, $url);\n // $productManager->addProduct($name, $description, $categories_categories_id, $uploadedfile->getFileName());\n header('Location: index.php?section=admin&page=adminproducts');\n }\n }\n } else {\n // Get all categ from BDD\n return $this->twig->render('admin/updateproducts.html.twig', array(\n 'products' => $products,\n 'categories' => $categories\n ));\n }\n }", "public function update(ProductRequest $request, $id)\n {\n $this->ProductObj->where(['id'=>$id])->update([\n 'name'=>$request->name,\n 'location'=>$request->location\n ]);\n return redirect('products');\n }", "public function actionUpdate()\n {\n\t\t\t$id=7;\n $model = $this->findModel($id);\n $model->slug = \"asuransi\";\n $model->waktu_update = date(\"Y-m-d H:i:s\");\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "public function update($id, UpdateProductRequest $request)\n {\n $product = $this->productRepository->findWithoutFail($id);\n\n if (empty($product)) {\n Flash::error($this->BreadCrumbName . ' not found');\n return redirect(route('admin.products.index'));\n }\n\n $product = $this->productRepository->updateRecord($request, $product);\n\n $details = [];\n $details['description'] = $request->description;\n $details['price'] = $request->price;\n ProductDetails::where('product_id', $id)->update($details);\n\n Flash::success($this->BreadCrumbName . ' updated successfully.');\n if (isset($request->continue)) {\n $redirect_to = redirect(route('admin.products.create'));\n } else {\n $redirect_to = redirect(route('admin.products.index'));\n }\n return $redirect_to->with(['title' => $this->BreadCrumbName]);\n }", "public function edit($id)\n {\n // \n $colors=$this->model->getColours();\n $categories=$this->model->getCategories();\n $productOne=$this->model->getOneProduct($id);\n \n return view(\"admin.pages.updateProduct\",['product'=>$productOne,'colors'=>$colors, 'categories'=>$categories]);\n }", "public function actionUpdate($id)\n {\n if (Yii::$app->user->isGuest) {\n return $this->redirect([\"site/login\"]); \n }\n if(Permiso::requerirRol('lider')){\n $this->layout='/main2';\n }elseif(Permiso::requerirRol('vendedor')){\n $this->layout='/main3';\n }\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->idproducto]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "public function update(Request $request, Products $products)\n {\n //\n }", "public function update(Request $request, Products $products)\n {\n //\n }", "public function update(Product $product)\n {\n $this->authorize('update', $product);\n\n $this->validate(request(), [\n 'description' => 'required|string',\n 'cost_price' => 'required|numeric|min:0',\n 'retail_price' => 'required|numeric|min:0',\n 'recommended_selling_price' => 'required|numeric|min:0',\n ]);\n\n $product->update(request()->all());\n\n notify()->flash('Product has been updated!', 'success');\n return redirect()->action('ProductsController@show', $product);\n }", "public function update(ProdutoRequest $request, $id)\n\t{\n\t\t$update = Produto::findOrFail($id)->update($request->all());\n\n\t\tif($update){\n\t\t\treturn redirect()->route('product.index');\n\t\t}else{\n\t\t\treturn redirect()->back();\n\t\t}\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'product_name'=>'required',\n 'quantity'=>'required',\n 'unit_price' => 'required'\n ]);\n $products=Products::find($id);\n $products->product_name=$request->get('product_name');\n $products->product_description=$request->get('product_description');\n $products->quantity=$request->get('quantity');\n $products->unit_price=$request->get('unit_price');\n $products->save();\n return redirect('/products')->with('sucess','Product Updated!');\n }", "public function update(Request $request)\n {\n $request->validate([\n \"id\" => 'numeric|exists:products,id',\n \"name\" => \"required|max:255\",\n \"qty\" => \"required|integer\",\n \"price\" => \"required|numeric\",\n \"category_id\" => \"required|exists:categories,id\",\n \"brand_id\" => \"nullable|exists:brands,id\"\n ]);\n Products::find($request->id)->update($request->all());\n return redirect(route('product.index'))->with('updated', 'Updated successfully');\n }", "public function update(Request $request, Product $product)\n {\n request()->validate([\n 'name' => 'required',\n 'detail' => 'required',\n ]);\n\n\n $product->update($request->all());\n\n\n return redirect()->route('products.index')\n ->with('success','Product updated successfully');\n }", "public function update(Request $request)\n {\n $data = request()->validate([\n 'product_id' => 'required',\n 'name' => 'required',\n 'code' => 'required',\n 'price' => 'required',\n ]);\n\n $product = Product::find(request('product_id'));\n \n $product->name = request('name');\n $product->code = request('code');\n $product->price = request('price');\n \n $product->save();\n\n return redirect(route('product.index'))->with('success', 'Product successfully updated');\n \n }", "public function update(Request $request, $id)\n {\n\n $product = Producto::find($id);\n $product->fill($request->all());\n $product->save();\n\n return redirect()->route('admin.products.index');\n }", "public function update(ProductRequest $request,Product $product)\n {\n $data = $request->only(['name','image','description','detail','price','category_id']);\n\n if($product->update($data)){\n return redirect()->route('admin.product.index');\n }\n return back();\n }", "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if (Yii::$app->request->post()) {\n $model->load(Yii::$app->request->post());\n $model->save();\n return $this->redirect(['site/view', 'id' => $model->id]);\n } else {\n return $this->render('knpr/update', [\n 'model' => $model,\n ]);\n }\n }", "public function actionUpdate($id) {\r\n $model = $this->loadModel($id);\r\n\r\n // Uncomment the following line if AJAX validation is needed\r\n // $this->performAjaxValidation($model);\r\n\r\n if (!Yii::app()->user->isSuperAdmin) {\r\n $store_id = Yii::app()->user->storeId;\r\n } else {\r\n $store_id = 1;\r\n }\r\n\r\n if (isset($_POST['ProductStockEntries'])) {\r\n $model->attributes = $_POST['ProductStockEntries'];\r\n\r\n $model->store_id = $store_id;\r\n\r\n if ($model->save())\r\n $this->redirect(array('view', 'id' => $model->id));\r\n }\r\n\r\n $this->render('update', array(\r\n 'model' => $model,\r\n ));\r\n }", "public function actionUpdate()\n\t{\n\t\t$model=$this->loadfiles();\n\t\tif(isset($_POST['Files']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Files'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('show','id'=>$model->id));\n\t\t}\n\t\t$this->render('update',array('model'=>$model));\n\t}", "public function update(Request $request)\n {\n $post = $request->all();\n $model = $this->model->getDetailProduct($post['id']);\n if (!empty($post['name'])) {\n $model->name = $post['name'];\n }\n // if (!empty($post['color'])) {\n // $model->color = $post['color'];\n // }\n if (!empty($post['price'])) {\n $model->price = $post['price'];\n }\n if (!empty($post['stock'])) {\n $model->stock = $post['stock'];\n }\n\n if ($model->update()) {\n session()->flash('flash_message','Data has been updated');\n return Redirect::back();\n } else {\n session()->flash('flash_message_error','Update data failed');\n return Redirect::back();\n }\n }", "public function actionUpdate($id) {\n $this->active_menu = \"mcms\";\n $this->open_class = \"category\";\n $this->active_class = \"piadmin\";\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Purchaseitem'])) {\n $model->attributes = $_POST['Purchaseitem'];\n $model->goods_service=$_POST['Purchaseitem']['goods_service'];\n if($_POST['Purchaseitem']['goods_service']==\"Good\"){\n $model->gst_code_type = 'HSN';\n }else{\n $model->gst_code_type = 'SAC';\n }\n $model->low_qty = $_POST['Purchaseitem']['low_qty'];\n $model->type = $_POST['Purchaseitem']['type'];\n $model->gst_code = $_POST['Purchaseitem']['gst_code']; \n $model->gst_percent = $_POST['Purchaseitem']['gst_percent'];\n $model->cess_tax = $_POST['Purchaseitem']['cess_tax'];\n $model->item_classification=$_POST['Purchaseitem']['item_classification'];\n $model->cess_percent=$_POST['Purchaseitem']['cess_percent'];\n if ($model->save()) {\n if (empty($model->barcode)) {\n $model->barcode = time() . $model->id;\n $model->save();\n }\n d21('Purchase Item updated by ' . Yii::app()->user->getUsername(), \"site.login\");\n $this->redirect(array('admin'));\n }\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'product_name'=> 'required',\n 'brand'=> 'required',\n 'prod_desc' => 'required',\n 'SKU' => 'required',\n 'category_id' => 'required',\n 'price' => 'required',\n ]);\n\n $product = Product::findOrFail($id);\n\n $product->product_name=$request->input('product_name'); \n $product->slug=Str::of($request->product_name)->slug('-');\n $product->brand=$request->input('brand');\n $product->prod_desc=$request->input('prod_desc');\n $product->SKU=$request->input('SKU');\n $product->video_link=$request->input('video_link');\n $product->price=$request->input('price');\n if($request->input('weightage')) $product->weightage=$request->input('weightage');\n else $product->weightage=1;\n $product->status=1;\n $product->save();\n\n // edit product images\n $this->addimages($request, $product->id);\n\n // edit category details\n //delete old categories\n ProductCategory::where('product_id', $product->id)->delete();\n $this->addcategoris($request, $product->id);\n\n // edit attribute\n // specification, attribute, product_attribute\n ProductAttribute::where('product_id', $product->id)->delete(); \n $this->addattributs($request, $product->id); \n\n flash('Product Updated Successfully!');\n return redirect('/admin/product');\n }", "public function update(ProductRequest $request, Product $product)\n {\n $product->update($request->validated());\n return redirect()->back()->with('success', '更新成功');\n }", "public function update(ProductUpdateRequest $request, Product $product) : RedirectResponse\n {\n $product->update($request->only('name', 'art', 'status', 'data'));\n\n return redirect()->route('products.index')\n ->with('success', 'Product updated successfully.');\n }" ]
[ "0.7540397", "0.74639803", "0.7417645", "0.71670014", "0.7125029", "0.7098763", "0.705194", "0.7037757", "0.70298064", "0.701927", "0.70086175", "0.6990879", "0.6963584", "0.6953177", "0.6911517", "0.69088477", "0.6888778", "0.68792397", "0.6877923", "0.6874478", "0.6873135", "0.68628323", "0.6850828", "0.6839609", "0.682213", "0.6775036", "0.67719394", "0.67684156", "0.6752521", "0.6741391", "0.67379826", "0.67339003", "0.66961604", "0.6688157", "0.668633", "0.66759926", "0.6675557", "0.66736245", "0.66730255", "0.6672342", "0.66705304", "0.6661202", "0.6660452", "0.6658684", "0.66436404", "0.66374433", "0.6633075", "0.6630161", "0.66220933", "0.66220677", "0.661615", "0.6606588", "0.66051835", "0.6601865", "0.6593937", "0.6588318", "0.65783304", "0.6575627", "0.6565132", "0.65545285", "0.65446174", "0.6542726", "0.6539618", "0.653916", "0.6538309", "0.6534334", "0.653391", "0.6531171", "0.65274966", "0.65227956", "0.6522169", "0.65169567", "0.6512953", "0.6506887", "0.6506281", "0.64989406", "0.6498417", "0.64981943", "0.6497983", "0.64967203", "0.64936477", "0.6493617", "0.64913714", "0.64865994", "0.64865994", "0.6486281", "0.6480707", "0.64789146", "0.64788455", "0.6477422", "0.6476464", "0.64727837", "0.6472233", "0.6468903", "0.64591736", "0.6458291", "0.6453287", "0.6452637", "0.6449513", "0.6449446", "0.6441445" ]
0.0
-1
Deletes an existing Products model. If deletion is successful, the browser will be redirected to the 'index' page.
public function actionDelete($id) { $this->findModel($id)->delete(); return $this->redirect(['index']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteProductAction()\n {\n $id = $_GET['id'];\n $productManager = new ProductManager();\n $productManager->deleteProduct($id);\n header('Location: index.php?section=admin&page=adminproducts');\n }", "public function actionDeleteProduct()\n\t{\n\t\t$model = OrderProduct::model()->findByPk($_POST['product_id']);\n\t\tif($model)\n\t\t\t$model->delete();\n\t}", "public function delete_product()\n {\n\t $product_id = (int)$this->uri->segment(4);\n\t //dump($product_id);\n\t \n\t $query = $this->Product_model->delete_product($product_id);\n\t if($query){\n\t\t \n\t\t redirect('admin/Dashboard/product');\n\t\t \n\t } else {\n\t\t\t \n\t\t echo 'error';\n\t\t\t \n\t }\t \n\t \n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->is_deleted = 1;\n if ($model->save()) {\n Yii::$app->session->setFlash('success', 'Product successfully deleted');\n return $this->redirect(['index']);\n }\n }", "public function actionDelete()\n {\n if ($post = Template::validateDeleteForm()) {\n $id = $post['id'];\n $this->findModel($id)->delete();\n }\n return $this->redirect(['index']);\n }", "public function delete_product(){\r\n\t\tif ($this->checkLogin('A') == ''){\r\n\t\t\tredirect('admin');\r\n\t\t}else {\r\n\t\t\t$product_id = $this->uri->segment(4,0);\r\n\t\t\t$condition = array('id' => $product_id);\r\n\t\t\t$old_product_details = $this->product_model->get_all_details(PRODUCT,array('id'=>$product_id));\r\n\t\t\t$this->update_old_list_values($product_id,array(),$old_product_details);\r\n\t\t\t$this->update_user_product_count($old_product_details);\r\n\t\t\t$this->product_model->commonDelete(PRODUCT,$condition);\r\n\t\t\t$this->setErrorMessage('success','Product deleted successfully');\r\n\t\t\tredirect('admin/product/display_product_list');\r\n\t\t}\r\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $ProductName = $model->ProductName;\n\n if ($model->delete()) {\n Yii::$app->session->setFlash('success', 'Record <strong>\"' . $ProductName . '\"</strong> deleted successfully.');\n }\n\n return $this->redirect(['index']);\n }", "public function delete() {\n if (!$this->customer->isLogged()) {\n die();\n }\n $product_id = $this->request->post['product_id'];\n $this->load->model('catalog/product');\n\n $this->model_catalog_product->deleteProduct($product_id);\n\n echo \"ok\";\n exit();\n\n }", "public function actionDeleteProduct()\n {\n $order = Order::model()->findByPk(Yii::app()->request->getPost('order_id'));\n\n if (!$order)\n $this->error404(Yii::t('CartModule.admin', 'ORDER_NOT_FOUND'));\n\n if ($order->is_deleted)\n throw new CHttpException(404, Yii::t('CartModule.admin', 'ORDER_ISDELETED'));\n\n $order->deleteProduct(Yii::app()->request->getPost('id'));\n }", "function destroy()\n\t{\n\t\t$id = getParameter('id');\n\t\t$this->model->product->destroy($id);\n\t\tredirect('product/index');\n\t}", "public function deleteAction() {\n\n $id = (int) $this->getRequest()->getParam('id');\n\n try {\n $this->_productMapper->delete($id);\n $this->_flashMessenger->addMessage(array('info' => 'Produkt byl úspěšně smazán.'));\n } catch (Exception $e) {\n $this->_flashMessenger->addMessage(array('error' => 'Při pokusu o smazání došlo k chybě!<br />' . $e->getMessage()));\n }\n $module = $this->getRequest()->getModuleName();\n $controller = $this->getRequest()->getControllerName();\n $this->_redirect($module . '/' . $controller);\n }", "public function actionDelete($id)\r\n {\r\n // Access check\r\n self::checkAdmin();\r\n\r\n // Form processing\r\n if (isset($_POST['submit'])) {\r\n // If the form is submitted\r\n // Remove the products\r\n Product::deleteProductById($id);\r\n\r\n // Redirecting the user to the product management page\r\n header(\"Location: /admin/product\");\r\n }\r\n\r\n // We connect the view\r\n require_once(ROOT . '/views/admin_product/delete.php');\r\n return true;\r\n }", "public function actionDelete()\n {\n $id = Yii::$app->request->post('id');\n try {\n $this->findModel($id)->delete();\n } catch (StaleObjectException $e) {\n } catch (NotFoundHttpException $e) {\n } catch (\\Throwable $e) {\n }\n\n return $this->redirect(['index']);\n }", "public function destroy()\n {\n $data = request()->validate([\n 'product_id' => 'required'\n ]);\n\n Product::destroy(request('product_id'));\n\n return redirect(route('product.index'))->with('success', 'Product successfully deleted');\n }", "public function actionDelete()\n {\n $id= @$_POST['id'];\n if($this->findModel($id)->delete()){\n echo 1;\n }\n else{\n echo 0;\n }\n\n return $this->redirect(['index']);\n }", "public function delete(){\n $this->product->id = $_GET['delete_id'];\n\n // delete the product\n if($this->product->delete()){\n echo \"<div class=\\\"alert alert-success alert-dismissable\\\">\";\n echo \"<button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\">&times;</button>\";\n echo \"Object was deleted.\";\n echo \"</div>\";\n }\n\n // if unable to delete the product\n else{\n echo \"<div class=\\\"alert alert-danger alert-dismissable\\\">\";\n echo \"<button type=\\\"button\\\" class=\\\"close\\\" data-dismiss=\\\"alert\\\" aria-hidden=\\\"true\\\">&times;</button>\";\n echo \"Unable to delete object.\";\n echo \"</div>\";\n }\n }", "public function delete()\n {\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n $id = $_POST['id'];\n $pictureManager = new PictureManager();\n $pictureManager->delete($id);\n $productManager = new ProductManager();\n $productManager->delete($id);\n header('location: /adminProduct/list');\n }\n }", "public function actionDelete($id)\n {\n \n $Product = ProductsOrders::find()->where('id_order = :id_order', ['id_order' => $id])->all();\n foreach ($Product as $product):\n //echo $product->count;\n $modelProd = Products::find()->where('id_product = :id_product', [':id_product' => $product->id_product])->one();\n $modelProd->count = $modelProd->count + $product->count;\n $modelProd->update();\n endforeach;\n\n $this->findModel($id)->delete();\n $ProdOrders = ProductsOrders::find()->where('id_order = :id_order', [':id_order' => $id])->all();\n foreach ($ProdOrders as $prodOrd) {\n $prodOrd->delete();\n }\n return $this->redirect(['index']);\n }", "public function actionDelete()\n {\n if (!$this->isAdmin()) {\n $this->getApp()->action403();\n }\n\n $request = $this->getApp()->getRequest();\n $id = $request->paramsNamed()->get('id');\n $model = $this->findModel($id);\n if (!$model) {\n $this->getApp()->action404();\n }\n\n $model->delete();\n\n return $this->back();\n }", "public function productDelete($id)\n {\n $deleteProduct=Products::find($id)->delete();\n return redirect()->back();\n }", "public function DeleteAction()\n {\n\n \t//Supprime le mouvement\n \t$sm_id = $this->getRequest()->getParam('sm_id');\n \t$sm = mage::getModel('Purchase/StockMovement')->load($sm_id);\n \t$product_id = $sm->getsm_product_id();\n \t$sm->delete();\n \t\t\n \t//Met a jour le stock du produit\n \tmage::getModel('Purchase/StockMovement')->ComputeProductStock($product_id);\n \t\n \t//Redirige sur la fiche produit\n \t$this->_redirect('Purchase/Products/Edit/product_id/'.$product_id);\n \t\n }", "public function delete($id) {\r\n\r\n //product id \r\n $this->Department_model->delete($id);\r\n redirect('admin/departments');\r\n }", "public function deleteAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\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->delete();\n\t\t}\n\t\t$this->_helper->redirector('list', null, null, array('model' => $modelName));\n\t}", "public function actionDelete($id) {\n $uProduct = Product::model()->findByPk($id);\n $uProduct->delete();\n echo 200;\n }", "public function deleteAction()\n {\n \t$id = (int) $this->params()->fromRoute('id', 0);\n \tif (!$id) {\n \t\treturn $this->redirect()->toRoute('order');\n \t}\n \t// Retrieve the current user\n \t$current_user = Functions::getUser($this);\n \t \n \t// Retrieve the allowed routes\n \t$allowedRoutes = Functions::getAllowedRoutes($this);\n\n \t// Retrieve the user's instance\n \t$instance_id = Functions::getInstanceId($this);\n \t\n \t// Retrieve the order product row\n \t$orderProduct = $this->getOrderProductTable()->get($id);\n \t \n \t// Retrieve the order\n \t$order = $this->getOrderTable()->get($orderProduct->order_id);\n\n \t// Retrieve the product\n \t$product = $this->getProductTable()->get($orderProduct->product_id);\n \t \n \t// Retrieve the user validation from the post\n \t$request = $this->getRequest();\n \tif ($request->isPost()) {\n \t\t$del = $request->getPost('del', 'No');\n \n\t\t\t// And delete the entity from the database in the \"yes\" case\n \t\tif ($del == $this->getServiceLocator()->get('translator')->translate('Yes')) {\n \t\t\t$id = (int) $request->getPost('id');\n \t\t\t$this->getOrderProductTable()->delete($id);\n \t\t}\n \n \t\t// Redirect to the index\n \t\treturn $this->redirect()->toRoute('orderProduct/index', array('id' => $order->id));\n \t}\n \n \treturn array(\n \t\t'current_user' => $current_user,\n \t\t'allowedRoutes' => $allowedRoutes,\n \t\t'title' => 'Order',\n \t\t'id' => $id,\n \t\t'order' => $order,\n \t\t'product' => $product\n \t);\n }", "public function destroy()\n {\n if(!auth()->user()->isAdmin()){\n return Redirect('/');\n }\n\n // Get product\n $product = Product::find(request()->id);\n\n // Set product 'deleted'\n $product->delete();\n \n // Return to the page with a message\n Session::flash('msg', 'Product verwijderd');\n return back();\n }", "public function destroy($id)\n {\n $products = Products::find($id);\n if($products){\n $products->delete();\n }\n return redirect()->route('admin.index_product');\n }", "public function destroy($id)\n {\n $data= Product::find($id);\n $data->delete();\n return redirect('admin');\n }", "public function destroy($id)\n {\n $products = Product::findOrFail($id);\n $products->delete();\n return redirect()->route('admin.products')\n ->with('success','Product deleted successfully');\n }", "public function destroy($id)\r\n {\r\n $product = Product::findOrFail($id);\r\n $product->delete();\r\n Session::flash('success', \"Delete successfully!!!\");\r\n return redirect(\"admin/product\");\r\n }", "public function delete() {\r\r\n //product id \r\r\n $id = $this->uri->segment(4);\r\r\n $this->sites_model->delete_site($id);\r\r\n redirect('admin/sites');\r\r\n }", "public function destroy($id)\n {\n $product = Producto::find($id);\n $product->delete();\n return redirect()->route('admin.products.index');\n }", "public function delete( $id=NULL ){\n\t\tif( is_null( $id ) ){\n\t\t\treturn $this->productNotFound();\t\n\t\t}\n\t\t\n\t\tif( $this->product_model->delete( $id ) ){\n\t\t\t$this->contentData['message'] = 'Product deleted.';\n\t\t\treturn $this->index();\n\t\t} else {\n\t\t\t$this->contentData['message'] = 'Unable to delete.';\n\t\t\treturn $this->edit( $id );\n\t\t}\n\t}", "public function destroy($id)\n {\n $pd=Product::find($id); \n $pd->delete();\n return redirect('/product/index');\n }", "public function deleteProduct($id) {\n $product = Product::find($id);\n $product->delete();\n return redirect('/manage-product')->with('message','Successfully Deleted');\n }", "public function actionDelete($id){\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n\t\t$model = $this->findModel($id);\n\n\t\t$model->delete();\n\n return $this->redirect(['index']);\n }", "public function delete()\n\t{\n\t\t$option = JRequest::getVar('option');\n\t\t$post = JRequest::get('post');\n\t\t$cartElement = $post['cart_index'];\n\t\t$Itemid = JRequest::getVar('Itemid');\n\t\t$redhelper = new redhelper;\n\t\t$Itemid = $redhelper->getCartItemid();\n\t\t$model = $this->getModel('cart');\n\n\t\t$model->delete($cartElement);\n\t\t$this->_carthelper->cartFinalCalculation();\n\t\t$this->_carthelper->carttodb();\n\t\t$link = JRoute::_('index.php?option=' . $option . '&view=cart&Itemid=' . $Itemid, false);\n\t\t$this->setRedirect($link);\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n\n\n return $this->redirect(['index']);\n }", "public function destroy($id)\n {\n //\n $delete = Product::find($id)->delete();\n return redirect()->route('products.index')\n ->with('success','Product deleted successfully');\n }", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']); \n }", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']); \n }", "function deleteAction()\n\t{\n global $langCode;\n\t\t$id = (int)$this->registry->router->getArg('id');//lay id cua record can xoa\n\t\t$myProductCat = new Core_ProductCategory($id);\n\t\tif($myProductCat->id > 0)\n\t\t{\n\t\t\t//tien hanh xoa\n\t\t\tif($myProductCat->delete())\n\t\t\t{\n\t\t\t\t$redirectMsg = str_replace('###categoryname###', $myProductCat->name[$langCode], $this->registry->lang['controller']['succDelete']);\n\t\t\t\t\n\t\t\t\t$this->registry->me->writelog('ProductCategorydelete', $myProductCat->id, array('name' => $myProductCat->name[$langCode])); \t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$redirectMsg = str_replace('###categoryname###', $myProductCat->name[$langCode], $this->registry->lang['controller']['errDelete']);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$redirectMsg = $this->registry->lang['controller']['errNotFound'];\n\t\t}\n\t\t\n\t\t$this->registry->smarty->assign(array('redirect' => $this->getRedirectUrl(),\n\t\t\t\t\t\t\t\t\t\t\t\t'redirectMsg' => $redirectMsg,\n\t\t\t\t\t\t\t\t\t\t\t\t));\n\t\t$this->registry->smarty->display('redirect.tpl');\n\t\t\t\n\t}", "public function deleteProduct(Request $request)\n {\n $product = Product::find($request->id);\n if($product->delete()){\n Session::flash('message', 'Producto eliminado correctamente!!');\n return Redirect::to('products');\n }\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n return $this->redirect(['index']);\n }", "public function delete()\n {\n // get request\n $request = $this->getRequest()->request;\n // get product ID from request\n $product_id = $request['a'];\n // get product ids from session\n $compareProducts = $this->View()->getSession('compare', $compareProducts)?$this->View()->getSession('compare', $compareProducts):array();\n\n if (in_array($product_id, $compareProducts)) {\n // unseting product from compare session\n $key = array_search($product_id, $compareProducts);\n unset($compareProducts[$key]);\n }\n\n $this->View()->setSession('compare', $compareProducts);\n\n if ($request['XHR']) {\n die(json_encode([\n 'success' => true,\n 'message' => $this->View()->translating('compare_item_deleted'),\n 'count' => count($compareProducts),\n ]));\n }\n\n Router::redirect('compare');\n }", "public function destroy($id)\n {\n $products = Product::findOrFail($id);\n $products->delete();\n return redirect('product');\n }", "public function delete(Product $product)\n {\n $product->delete();\n return redirect()->route('admin.product.index')->with('success',\"Produit bien supprimé\");\n\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function destroy($id)\n {\n $product = Product::find($id);\n $product->delete();\n return redirect('/admin/products');\n }", "public function actionDelete()\n {\n if(isset($_POST['id'])){\n $id = $_POST['id'];\n $this->findModel($id)->delete();\n echo \"success\";\n }\n }", "public function destroy($id)\n {\n DB::delete('delete from products where id = ?', [$id]);\n return redirect(route('admin.product.index'));\n }", "public function actionDelete($id)\n\t{\n\t\t$model = $this->loadModel($id);\n\t\t\n\t\tif ($model) {\n\t\t\t$model->delete();\n\t\t}\n\n // if AJAX request (triggered by deletion via list grid view), we should not redirect the browser\n if (!isset($_GET['ajax']))\n $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('index'));\n\t}", "public function deleteAction() {\n\t\t$id = $this->getRequest ()->getParam ( 'id' );\n\t\t$controller = Zend_Controller_Front::getInstance ()->getRequest ()->getControllerName ();\n\t\t\n\t\tif (! empty ( $id ) && is_numeric ( $id )) {\n\t\t\tif(ProductsAttributes::deleteAttribute($id)){\n\t\t\t\t$this->_helper->redirector ( 'list', $controller, 'admin', array ('mex' => $this->translator->translate ( 'Attribute deleted' ), 'status' => 'information' ) );\t\n\t\t\t}\n\t\t}\n\t\t$this->_helper->redirector ( 'list', $controller, 'admin', array ('mex' => $this->translator->translate ( 'Unable to process the request at this time.' ), 'status' => 'danger' ) );\n\t}", "public function actionDelete($id)\n {\n $this->findModel($id)->delete();\n\n // return $this->redirect(['view-peoples', 'id' => $id]);\n return $this->redirect(['index']);\n }", "public function destroy($id)\n {\n //\n $product = Product::find($id);\n $product->delete();\n return redirect('/admin/product');\n }", "public function actionDelete($id) {\r\n $this->findModel($id)->delete();\r\n\r\n return $this->redirect(['index']);\r\n }", "public function actionDelete($id) {\n\t\t$this->findModel($id)->delete();\n\t\treturn $this->redirect(['index']);\n\t}", "public function destroy($id)\n {\n $products = Product::findOrFail($id);\n $products->delete();\n\n return redirect()->route('products.index')->with('success','Data berhasil dihapus!');\n }", "public function destroy($id)\n {\n Producto::find($id)->delete();\n return redirect('productos');\n }", "public function actionDelete($id)\n\t{\n\t\tif (Yii::app()->request->isPostRequest) {\n\t\t\t// we only allow deletion via POST request\n\t\t\t$model = $this->loadModel($id);\n\t\t\tif ($model->image) {\n\t\t\t\t$uploadPath = YiiBase::getPathOfAlias('webroot') . '/files/products';\n\t\t\t\t@unlink($uploadPath . '/' . $model->image);\n\t\t\t\t@unlink($uploadPath . '/thumb_' . $model->image);\n\t\t\t}\n\t\t\t$model->delete();\n\n\t\t\t// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser\n\t\t\tif (!isset($_GET['ajax']))\n\t\t\t\t$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));\n\t\t} else\n\t\t\tthrow new CHttpException(400, 'Invalid request. Please do not repeat this request again.');\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n\n return $this->redirect(['index', 'id' => $model->shop_id]);\n }", "public function actionDelete($id)\n {\n ProductCategory::deleteAll(['product_id' => $id]);\n ProductLang::deleteAll(['product_id' => $id]);\n $model = $this->findModel($id);\n $imgs = $model->getImages();\n if(!empty($imgs)){\n foreach ($imgs as $img){\n $model->removeImageNoDel($img);\n }\n }\n $model->delete();\n\n return $this->redirect(['index']);\n }", "public function destroy($id ,Product $product)\n {\n $product->find($id)->delete();\n\n return redirect('/adminpanel/products');\n }", "public function destroy($id)\n {\n $model = Producto::findOrFail($id);\n $model->delete();\n return redirect()->route('producto.index')->with('message', 'Eliminado correctamente!');\n }", "public function destroy($id)\n {\n $product = Product::find($id);\n $product->delete();\n return redirect('admin/product')->with('status','Successfully Deleted Product');\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n\t{\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n\n $model->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n\n $model->delete();\n\n return $this->redirect(['index']);\n }", "public function destroy($id)\n {\n //\n\n $product=Product::find($id);\n $product->delete();\n return redirect()->route('product.index');\n\n }", "public function deleteAction()\n {\n if ($this->isConfirmedItem($this->_('Delete %s'))) {\n $model = $this->getModel();\n $deleted = $model->delete();\n\n $this->addMessage(sprintf($this->_('%2$u %1$s deleted'), $this->getTopic($deleted), $deleted), 'success');\n $this->_reroute(array('action' => 'index'), true);\n }\n }", "public function destroy($id) {\n $products = Product::findOrFail($id);\n $products->delete();\n \\Illuminate\\Support\\Facades\\Session::flash('delete_product', 'The product has been deleted');\n return redirect('/admin/products');\n }", "public function actionDelete()\r\n {\r\n $this->_userAutehntication();\r\n\r\n switch($_GET['model'])\r\n {\r\n /* Load the respective model */\r\n case 'posts': \r\n $model = Post::model()->findByPk($_GET['id']); \r\n break; \r\n default: \r\n $this->_sendResponse(501, sprintf('Error: Mode <b>delete</b> is not implemented for model <b>%s</b>',$_GET['model']) );\r\n exit; \r\n }\r\n /* Find the model */\r\n if(is_null($model)) {\r\n // Error : model not found\r\n $this->_sendResponse(400, sprintf(\"Error: Didn't find any model <b>%s</b> with ID <b>%s</b>.\",$_GET['model'], $_GET['id']) );\r\n }\r\n\r\n /* Delete the model */\r\n $response = $model->delete();\r\n if($response>0)\r\n $this->_sendResponse(200, sprintf(\"Model <b>%s</b> with ID <b>%s</b> has been deleted.\",$_GET['model'], $_GET['id']) );\r\n else\r\n $this->_sendResponse(500, sprintf(\"Error: Couldn't delete model <b>%s</b> with ID <b>%s</b>.\",$_GET['model'], $_GET['id']) );\r\n }", "public function destroy($id)\n {\n $products=Products::find($id);\n $products->delete();\n return redirect('/products')->with('success','Products Deleted!');\n }", "public function destroy($id)\n {\n $model = productmodel::find($id);\n $model->delete();\n Session::flash('status', 'model suessfully deleted');\n return back();\n }", "public function destroy($id)\n\t{\n\t\t$product = Product::findOrFail($id);\n\t\t$product->delete();\n\t\treturn redirect()->route('products.index')->with('message', 'Item deleted successfully.');\n\t}", "public function actionDelete($id)\n {\n // $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id)\n\t{\n // we only allow deletion via POST request\n $model = $this->loadModel($id);\n//\t\tStorePrice::model()->deleteAllByAttributes(array('store_id'=>$model->id));\n\t\t$model->status = Store::STATUS_DISABLED;\n\t\t$model->save(false);\n//\t\t$model->delete();\n//\t\t$model->deleteSphinx();\n\n // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser\n if(!isset($_GET['ajax']))\n $this->redirect($this->createUrl('index'));\n\t}", "public function destroy($id)\n {\n Product::find($id)->delete();\n return redirect()->route('products.index')\n ->with('success','Product deleted successfully');\n }", "public function actionDelete($id)\n {\n $model = $this->findModel($id);\n $model->delete();\n\n return $this->redirect(['index' , 'goods_id' => $model->goods_id]);\n }", "public function destroy($id)\n {\n $product = \\App\\Models\\Admin\\Product::findOrFail($id);\n\n\n\n if (empty($product)) {\n Flash::error('Product not found');\n\n return redirect(route('admin.products.index'));\n }\n\n // $this->productRepository->delete($id);\n\n $product->delete();\n Flash::success('Product deleted successfully.');\n\n return redirect(route('admin.products.index'));\n }", "public function destroy($id)\n {\n $product = \\App\\Product::find($id);\n $product->delete();\n return redirect('admin/products')->with('success','Product has been deleted.');\n }", "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n $product->delete();\n return redirect()->route('admin.products.index');\n }", "public function actionDelete($id)\n {\n $this->_findModel($id)->delete();\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id) {\n\t\t$this->findModel($id)->delete();\n\n\t\treturn $this->redirect(['index']);\n\t}", "public function actionDelete($id)\r\n {\r\n $this->findModel($id)->delete();\r\n return $this->redirect(['index']);\r\n }", "public function destroy($id)\n {\n $product = Product::find($id)->delete();\n return redirect()->route('products.index')->with('status', 'El producto fue eliminado');\n }", "public function destroy($id)\n {\n // la liste des produits.\n Product::destroy($id);\n return redirect('/admin/products');\n }", "public function actionDelete()\n\t{\n\t parent::actionDelete();\n\t\t$model=$this->loadModel($_POST['id']);\n\t\t $model->delete();\n\t\techo CJSON::encode(array(\n 'status'=>'success',\n 'div'=>'Data deleted'\n\t\t\t\t));\n Yii::app()->end();\n\t}", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }", "public function actionDelete($id) {\n $this->findModel($id)->delete();\n\n return $this->redirect(['index']);\n }" ]
[ "0.7610725", "0.74789375", "0.7395661", "0.73849636", "0.73515576", "0.73369306", "0.7251166", "0.72144717", "0.72100323", "0.71848077", "0.7176279", "0.71727866", "0.71661097", "0.70784324", "0.70346415", "0.69973296", "0.6978662", "0.6947993", "0.6946215", "0.6924913", "0.6920501", "0.690305", "0.6892674", "0.6891987", "0.68842006", "0.6881714", "0.68727547", "0.6842797", "0.6836336", "0.68274796", "0.68250287", "0.6792011", "0.6791405", "0.6786205", "0.6781985", "0.67653894", "0.676072", "0.6758612", "0.67580926", "0.67564595", "0.6745021", "0.6745021", "0.6743892", "0.67357486", "0.6733853", "0.6733853", "0.67335975", "0.67328507", "0.6732472", "0.6726659", "0.6726659", "0.67252326", "0.672312", "0.67231184", "0.67206043", "0.6719058", "0.6711232", "0.66902226", "0.6688534", "0.6688453", "0.6685132", "0.6681447", "0.66782606", "0.6677597", "0.6664659", "0.6660924", "0.66601706", "0.66556495", "0.6648991", "0.66487145", "0.66487145", "0.66487145", "0.66487145", "0.6648123", "0.6648123", "0.6645155", "0.6644866", "0.6644585", "0.6644313", "0.6643673", "0.66424304", "0.66419184", "0.66403025", "0.66400445", "0.6639714", "0.6635172", "0.6633107", "0.6631514", "0.6622011", "0.66174996", "0.66149867", "0.66149867", "0.6613684", "0.65983826", "0.6594404", "0.65923774", "0.658594", "0.658594", "0.658594", "0.658594", "0.658594" ]
0.0
-1
Finds the Products model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
protected function findModel($id) { if (($model = Products::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function findProduct($id)\n {\n if (($model = Products::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id) {\n\t\tif (($model = Products::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t}\n\t}", "public function findById($id)\n {\n \t$product = $this->model->whereId($id)->first();\n \n \treturn $product;\n }", "public abstract function find($primary_key, $model);", "public function loadModel($id)\n {\n $model=Product::model()->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }", "public function findById($product_id)\n {\n return Product::find($product_id);\n }", "public function loadModel($id)\n\t{\n\t\t$model=Products::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = Product::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "protected function findModel($id)\n {\n if (($model = PricefallsProducts::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function find($id) {\n return Product::find($id);\n }", "protected function findModel($id)\n {\n if (($model = Products::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "public function loadModel($id)\n\t{\n\t\t$model = ProductItem::model()->findByPk($id);\n\t\tif ($model === null)\n\t\t\tthrow new CHttpException(404, 'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Productos::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id)\n\t{\n\t\t$model=Product::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "protected function findModel($id)\n {\n if (($model = Product::findOne(['launch_id' => $id])) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function loadModel($id) {\n $model = ClinicStoreproduct::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "protected function findModel($id)\r\n {\r\n if (($model = WarehouseProduct::findOne($id)) !== null) {\r\n return $model;\r\n } else {\r\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\r\n }\r\n }", "protected function findModel($id)\n {\n if (($model = Products::findOne(['id' => $id])) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function loadModel($id)\n\t{\n\t\t$model=TProducto::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "protected function findModel($id)\r\n {\r\n if (($model = Product::findOne($id)) !== null) {\r\n return $model;\r\n } else {\r\n throw new NotFoundHttpException('The requested page does not exist.');\r\n }\r\n }", "public function show($id)\n {\n return Product::findOrfail($id);\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "public function findProductById($id):ProductModel\n {\n return $this->model()->find($id);\n }", "protected function findModel($id)\n {\n if (($model = Producto::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Producto::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function find( $id ){\n \t\t$response = $this->curl->get( $this->api_url . '/' . $id, [ \n\t\t\t'access_token' => $this->token\n\t\t]);\n\t\tif( $response->success ){\n\t\t\t$product = new Product( $this );\n\t\t\t$product->fetch($response->product);\n\n\t\t\treturn $product;\n \t\t}//if\n \t\telse{\n \t\t\treturn FALSE;\n \t\t}//else\n \t}", "public function loadModel($id)\n\t{\n\t\t$model=ProductStock::model()->with('product')->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "function fetch_product ($product_id) {\n $db = getDb();\n $statement = $db->prepare(\"\n SELECT\n *\n FROM\n product\n WHERE\n product_id = :product_id\n \");\n\n $statement->execute([\"product_id\"=>$product_id]);\n $result = $statement->fetchObject();\n if (!$result) {\n throw new RowNotFoundException(\"Product not found\");\n }\n return $result;\n}", "protected function findModel($id)\n {\n if (($model = Producto::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "protected function findModel($id)\n {\n if (($model = Product::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "protected function findModel($id)\n {\n if (($model = ProductType::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = ProductType::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "private function retrieveProductById($productId)\n {\n // Fetch product.\n $product = $this->productRepository->find($productId);\n if (!$product) {\n throw new ProductNotFoundException($productId);\n }\n\n return $product;\n }", "public function find($id){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Create a select query\n\t\t$query = \"SELECT \" . implode(\",\" , static::$columns).\" FROM \" . static::$tableName . \" WHERE id = :id\";\n\t\t//prepare the query\n\t\t$statement = $db->prepare($query);\n\t\t//bind the column id with :id\n\t\t$statement->bindValue(\":id\", $id);\n\t\t//Run the query\n\t\t$statement->execute();\n\n\t\t//Put the associated row into a variable\n\t\t$record = $statement->fetch(PDO::FETCH_ASSOC);\n\n\t\t//If there is not a row in the database with that id\n\t\tif(! $record){\n\t\t\tthrow new ModelNotFoundException();\n\t\t}\n\n\t\t//put the record into the data variable\n\t\t$this->data = $record;\n\t}", "protected function findModel($id)\n {\n if (($model = ActionProduct::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function getProductById(int $id);", "public function loadModel($id)\n\t{\n\t\t$model=Productaccount::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function loadModel($id) {\n $model = \\backend\\models\\ProductCategory::findOne($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "private function findModel($key)\n {\n if (null === $key) {\n throw new BadRequestHttpException('Key parameter is not defined in findModel method.');\n }\n\n $modelObject = $this->getNewModel();\n\n if (!method_exists($modelObject, 'findOne')) {\n $class = (new\\ReflectionClass($modelObject));\n throw new UnknownMethodException('Method findOne does not exists in ' . $class->getNamespaceName() . '\\\\' .\n $class->getShortName().' class.');\n }\n\n $result = call_user_func([\n $modelObject,\n 'findOne',\n ], $key);\n\n if ($result !== null) {\n return $result;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "public function findOne(int $id): ?Product\n {\n return Product::find($id);\n }", "public function loadModel($id) {\r\n $model = ProductStockEntries::model()->findByPk($id);\r\n if ($model === null)\r\n throw new CHttpException(404, 'The requested page does not exist.');\r\n return $model;\r\n }", "public function loadModel($id) {\n $model = SubscribedProduct::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "protected function findModel($id)\n {\n if (($model = ProductImage::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public static function loadModel($id)\n {\n $model = Product::model()->findByPk((int) $id);\n if($model === null)\n {\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n else\n {\n $model->group_name = self::getProductGroupIdArr((int) $id);\n $model->product_manager = self::getProductManagers((int) $id);\n }\n\n return $model;\n }", "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID_PRODUCT`, `ID_SUPPLIER`, `ID_MANUFACTURER`, `ID_TAX_RULES_GROUP`, `ID_CATEGORY_DEFAULT`, `ID_COLOR_DEFAULT`, `ON_SALE`, `ONLINE_ONLY`, `EAN13`, `UPC`, `ECOTAX`, `QUANTITY`, `MINIMAL_QUANTITY`, `PRICE`, `WHOLESALE_PRICE`, `UNITY`, `UNIT_PRICE_RATIO`, `ADDITIONAL_SHIPPING_COST`, `REFERENCE`, `SUPPLIER_REFERENCE`, `LOCATION`, `WIDTH`, `HEIGHT`, `DEPTH`, `WEIGHT`, `OUT_OF_STOCK`, `QUANTITY_DISCOUNT`, `CUSTOMIZABLE`, `UPLOADABLE_FILES`, `TEXT_FIELDS`, `ACTIVE`, `AVAILABLE_FOR_ORDER`, `CONDITION`, `SHOW_PRICE`, `INDEXED`, `CACHE_IS_PACK`, `CACHE_HAS_ATTACHMENTS`, `CACHE_DEFAULT_ATTRIBUTE`, `DATE_ADD`, `DATE_UPD` FROM `' . _DB_PREFIX_ . 'product` WHERE `ID_PRODUCT` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Oops_Db_Product();\n\t\t\t$obj->hydrate($row);\n\t\t\tOops_Db_ProductPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "protected function findModel($id)\n {\n if (($model = ProductGoods::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "public function show($id)\n {\n return Products::findOrFail($id);\n }", "public function findProductById(int $idProduct): ?object {\n\t\t// crete Default Var\n\t\t$objProduct = null;\n\t\ttry {\n\t\t\t// create Query Builder \n\t \t$qb = $this->em->createQueryBuilder();\n\t \t// create Query\n\t \t$objProduct = $qb->select('p')\n\t\t\t ->from(Product::class, 'p')\n\t\t\t ->where('p.id = :id')\n\t\t\t ->andWhere('p.status = :status')\n\t\t\t ->setParameter('id', $idProduct\t)\n\t\t\t ->setParameter('status', 1)\n\t\t\t ->getQuery()\n\t\t\t ->getOneOrNullResult();\n \t\t} catch (\\Exception $ex) {\n \t\t\t//dd($ex);\n \t\t}\n \t\t// default Return\n \t\treturn $objProduct;\n\t}", "public function findById(int $id, bool $throwable = true): ?ProductModel\n {\n return $this->find((string) $id, 'id', $throwable);\n }", "public function show($id)\n {\n return Product::findOrFail($id);\n }", "public function productsByIdAction()\n\t{\n $this->checkShopToken();\n\t\t\n\t\t$config = EasymarketingConfig::getInstance(); \n $article_id = Shopware()->Front()->Request()->getParam('id');\n\t\t\n\t\t$checkArticle = Shopware()->Db()->fetchOne(\"SELECT sacro.articleID AS id FROM s_articles_categories_ro sacro LEFT JOIN s_articles sa ON sa.id = sacro.articleID WHERE sa.active = 1 AND (sacro.categoryID = '\".$config->getRootCategoryID().\"' OR sacro.parentCategoryID = '\".$config->getRootCategoryID().\"') AND sacro.articleID = '\".$article_id.\"' GROUP BY sacro.articleID ORDER BY sacro.articleID LIMIT 1\");\n\t\t\n\t\tif($checkArticle)\n\t\t{\n\t\t\t$productsdata=$this->getProductsData($article_id);\n\t\t\t$jsondata = $productsdata;\n\t\t\t\n\t\t\t$this->printOutput($productsdata);\n\t\t} else {\n\t\t\theader('HTTP/1.0 404 Article not found');\n echo 'The article with the id '.$article_id.' was not found!';\n die;\n\t\t}\n }", "public static function find( $primaryKey )\n\t{\n\t\tself::init();\n\t\t\n\t\t// Select one item by primary key in Database\n\t\t$result = Database::selectOne(\"SELECT * FROM `\" . static::$table . \"` WHERE `\" . static::$primaryKey . \"` = ?\", $primaryKey);\t\t\n\t\tif( $result == null )\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Create & return new object of Model\n\t\treturn self::newItem($result);\n\t}", "protected function findModel($id)\n {\n if (($model = Offer::findOne($id)) !== null) {\n return $model;\n } else {\n throw new HttpException(404, 'The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Menu::findOne([ 'id' => $id ])) !== null)\n {\n return $model;\n }\n else\n {\n throw new HttpException(404, Yii::t('backend', 'The requested page does not exist.'));\n }\n }", "public function find($model, $id);", "protected function findModel($id)\n {\n if (($model = ProductCate::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "function get_product_by_id($product_id) {\r\n try {\r\n $params[0] = array(\"name\" => \":prod_id\", \"value\" => &$product_id);\r\n return $this->DBObject->readCursor(\"product_actions.get_product_by_id(:prod_id)\", $params);\r\n } catch (Exception $ex) {\r\n echo \">>\" . ex;\r\n }\r\n }", "protected function findModel($id)\n {\n if (($model = Catalog2::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "public function find($id)\n {\n\n $sql = \"SELECT product.*, brand.name AS brand_name, type.name AS type_name, category.name AS category_name\n FROM product\n JOIN brand ON product.brand_id = brand.id \n JOIN type ON product.type_id = type.id \n JOIN category ON product.category_id = category.id \n WHERE product.id = $id \";\n\n $pdo = Database::getPDO();\n $stmt = $pdo->query($sql);\n\n $product = $stmt->fetchObject(self::class);\n return $product;\n }", "public function show($id_product)\n {\n return Product::findOrFail($id_product);\n }", "public function findById($primaryKeyValue){\n //Select* From employers Where $this->primaryKey(noemp)=$primaryKeyValue(1000)\n $array = $this->findWhere($this->primaryKey. \"=$primaryKeyValue\");\n if (count($array) != 1 ) die (\"The ID $primaryKeyValue is not valid\");\n return $array[0];\n }", "public function find($primary)\n {\n if (isset($this->models[$primary])) {\n return $this->models[$primary];\n }\n\n return;\n }", "public function product() {\n $slug = $this->param('slug');\n\n return Products::where('slug', '=', $slug)->first();\n }", "public function loadModel($id) {\n $model = Purchaseitem::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "public function find($pk)\r\n {\r\n $row = $this->getTable()->find($pk);\r\n if(!$row){\r\n return false;\r\n }\r\n $sampleModel = new SampleModel();\r\n $this->_map($sampleModel, $row);\r\n return $sampleModel;\r\n }", "public function loadModel($id)\n\t{\n\t\t$model=CollectionShop::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function show($id)\n {\n \n Producto::findOrFail($id);\n \n }", "public function findProductBySlug($slug):ProductModel\n {\n return $this->model()->whereSlug($slug)->first();\n }", "public function loadModel($id)\n\t{\n\t\t$model=Vendor::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function getByProductName($name)\n {\n return DB::table('product_models')\n ->where('name',$name)\n ->first();\n }", "public function search($productKey){\n\t\tif(!array_key_exists($productKey,$this->products)){\n\t\t\tthrow new \\Exception('Product do not exists!');\n\t\t}\n\t\treturn $this->products[$productKey];\n\t}", "function product_get()\n {\n $product_id = $this->uri->segment(3);\n\n $product = $this->api_model->get_product($product_id);\n\n if(!empty($product))\n {\n $this->response(array('status' => 'success', 'message' => $product));\n }\n else\n {\n $this->response(array('status' => 'failure', 'message' => 'The specified product could not be found'), REST_CONTROLLER::HTTP_NOT_FOUND);\n }\n\n\t}", "public function getProductById($id){\n $query = $this->db->get_where('product',array('id' => $id));\n return $query->row(); \n }", "function products_get() {\n\n $products = $this->api_model->get_products();\n\n if(isset($products))\n {\n $this->response(array('status' => 'success', 'message' => $products));\n }\n else\n {\n $this->response(array('status' => 'failure', 'message' => 'The specified product could not be found'), REST_CONTROLLER::HTTP_NOT_FOUND);\n }\n\n\t}", "protected function findProduk($id)\n {\n if (($model = Produk::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "public function getByProduct($category_ID, $name)\n {\n return DB::table('product_models')\n ->where('product_category_ID',$category_ID)\n ->where('name',$name)\n ->first();\n }", "protected function findModel($id)\n {\n if (($model = ShopItems::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "public function findBySlug(string $slug): Product;", "function find($id)\n{\n\t$model = $this->newModel(null);\n\treturn $model->find($id);\n}", "protected function findModel($id)\n {\n\t\t$p = $this->primaryModel;\n if (($model = $p::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = Items::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('Запрашиваемая страница не существует!!!');\n }\n }", "protected function findModel($id) {\n if (($model = A2OperacionesItems::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($model = CatalogDocument::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('catalog', 'The requested page does not exist.'));\n }", "public function getOne($ID)\n {\n return DB::table('product_models')\n ->where('ID', $ID)\n ->first();\n }", "private function exist($id)\n {\n try {\n $product = $this->productService->findOrFail($id);\n } catch(ModelNotFoundException $e) {\n Flash::error('Product not found');\n\n return redirect(route('products.index'));\n }\n\n return $product;\n }", "public function get($id){\n $product=Product::find($id);\n return $product;\n }", "public static function getById($ProductID){\r\n\r\n\t\t$query = \"SELECT * FROM products WHERE ProductID = :ProductID LIMIT 1\";\r\n\r\n\t\t$param = [':ProductID' => $ProductID]; // the parameter that will be bind by pdo\r\n\r\n\t\ttry {\r\n\t\t\t// use static method run() from class DB \r\n\t \tif ($stmt = DB::Run($query, $param)) { // this will run the build query\r\n\r\n\t\t\t\t// need to use fetch to retrieve only 1 row of data\r\n\t\t\t\t// this will retrieve the row of data\r\n\t\t\t\t// that is associated to the passed ProductID\r\n\t\t\t\t$products = $stmt->fetch(PDO::FETCH_ASSOC); \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t \r\n\t\t\t\t// return the products object\r\n\t\t\t\treturn $products;\r\n\t\t\t};\r\n\t\t} catch (PDOException $e) {\r\n\t\t\treturn $e->getMessage();\r\n\t\t}\r\n\t}", "public function findProduct($id)\n {\n return $this->productRepository->findProduct($id);\n }", "public function loadModel($id)\n\t{\n\t\t$model=Providers::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "public function productNotFound(){\n\t\t$this->contentData['message'] = 'product not found';\n\t\treturn $this->index();\n\t}" ]
[ "0.7096683", "0.69281363", "0.68892086", "0.68689305", "0.6781257", "0.67795634", "0.67555207", "0.67537737", "0.67354786", "0.669665", "0.6689381", "0.6681461", "0.66600597", "0.6647091", "0.6635836", "0.6617717", "0.6615045", "0.6606352", "0.65860337", "0.6543096", "0.6529455", "0.65265787", "0.6501979", "0.64607084", "0.64607084", "0.6457574", "0.6457574", "0.6457574", "0.6457574", "0.6440472", "0.6408402", "0.63946533", "0.6391648", "0.63796675", "0.63796675", "0.63796675", "0.63796675", "0.6378352", "0.6378352", "0.6374843", "0.63668084", "0.63621", "0.63492244", "0.6348118", "0.62857556", "0.628545", "0.62770176", "0.6268588", "0.62641615", "0.62590677", "0.62441623", "0.62211376", "0.6207597", "0.62066466", "0.61823475", "0.61758214", "0.6153318", "0.6133641", "0.61183834", "0.61123514", "0.6111498", "0.60916305", "0.6084502", "0.60678905", "0.60640365", "0.6058215", "0.60475343", "0.6039591", "0.6034789", "0.60168207", "0.60153055", "0.60066277", "0.6006292", "0.5994071", "0.5991677", "0.5978517", "0.59714514", "0.5966637", "0.5960812", "0.59601706", "0.5947968", "0.59448904", "0.5937434", "0.59368163", "0.593593", "0.5935464", "0.5928197", "0.59222585", "0.59206164", "0.59195215", "0.5915252", "0.59094703", "0.59085226", "0.59081185", "0.59033173", "0.5900968", "0.589783" ]
0.66464347
16
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema) { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE imp_sensor ADD name VARCHAR(255) DEFAULT NULL, ADD multi_value TINYINT(1) DEFAULT NULL, ADD minimum_value INT DEFAULT NULL, ADD maximum_value INT DEFAULT NULL, ADD value INT NOT NULL, CHANGE uuid uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', CHANGE value_type value_type VARCHAR(255) DEFAULT NULL'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNED NULL COMMENT 'person',\n CHANGE `tcmn_tmed_id` `tcmn_tmed_id` TINYINT(4) UNSIGNED NULL COMMENT 'medijs';\n \");\n }", "public function up()\n {\n // This migration was removed, but fails when uninstalling plugin\n }", "public function up()\n {\n $this->execute(\"\n\n ALTER TABLE `cucp_user_company_position` \n ADD COLUMN `cucp_role` CHAR(20) NULL AFTER `cucp_name`;\n\n \");\n }", "public function up()\n\t{\n\t\t$this->dbforge->add_column($this->table, $this->field);\n\t}", "public function migrateUp()\n {\n //$this->migrate('up');\n $this->artisan('migrate');\n }", "public function up()\n {\n dbexec('ALTER TABLE #__subscriptions_coupons\n ADD `created_on` datetime DEFAULT NULL AFTER `usage`,\n ADD `created_by` bigint(11) unsigned DEFAULT NULL AFTER `created_on`,\n ADD INDEX `created_by` (`created_by`),\n ADD `modified_on` datetime DEFAULT NULL AFTER `created_by`,\n ADD `modified_by` bigint(11) unsigned DEFAULT NULL AFTER `modified_on`,\n ADD INDEX `modified_by` (`modified_by`) \n ');\n \n dbexec('ALTER TABLE #__subscriptions_vats\n ADD `created_on` datetime DEFAULT NULL AFTER `data`,\n ADD `created_by` bigint(11) unsigned DEFAULT NULL AFTER `created_on`,\n ADD INDEX `created_by` (`created_by`),\n ADD `modified_on` datetime DEFAULT NULL AFTER `created_by`,\n ADD `modified_by` bigint(11) unsigned DEFAULT NULL AFTER `modified_on`,\n ADD INDEX `modified_by` (`modified_by`) \n ');\n }", "public function up()\n\t{\n\t\t$this->dbforge->modify_column($this->table, $this->field);\n\t}", "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer(). ' UNSIGNED NOT NULL' ,\n 'source' => $this->string()->notNull(),\n 'source_id' => $this->string()->notNull(),\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->addForeignKey('fk_social_auth_user_id_to_user_id', $this->tableName, 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function up()\n {\n }", "public function up()\n {\n $user = $this->table('products', ['collation' => 'utf8mb4_persian_ci', 'engine' => 'InnoDB']);\n $user\n ->addColumn('name', STRING, [LIMIT => 20])\n ->addColumn('count', STRING, [LIMIT => 75])\n ->addColumn('code', STRING, [LIMIT => 100])\n ->addColumn('buy_price', STRING, [LIMIT => 30])\n ->addColumn('sell_price', STRING, [LIMIT => 30])\n ->addColumn('aed_price', STRING, [LIMIT => 50])\n ->addTimestamps()\n ->save();\n }", "public function up()\n {\n // Drop table 'table_name' if it exists\n $this->dbforge->drop_table('lecturer', true);\n\n // Table structure for table 'table_name'\n $this->dbforge->add_field(array(\n 'nip' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => true,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'nik' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => false,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'name' => array(\n 'type' => 'VARCHAR(24)',\n 'null' => false,\n ),\n\t\t\t'id_study_program' => array(\n\t\t\t\t'type' => 'VARCHAR(24)',\n\t\t\t\t'null' => false,\n\t\t\t)\n\n ));\n $this->dbforge->add_key('nik', true);\n $this->dbforge->create_table('lecturer');\n }", "public function up()\n\t{\n\t\t// are not setting the foreign key constraint, to allow the examination module to work without the intravitreal\n\t\t// injection module being installed\n\t\t$this->addColumn('et_ophciexamination_injectionmanagementcomplex', 'left_treatment_id', 'int(10) unsigned');\n\t\t$this->addColumn('et_ophciexamination_injectionmanagementcomplex', 'right_treatment_id', 'int(10) unsigned');\n\t}", "public function safeUp()\n {\n $this->createTable('tbl_hand_made_item',\n [\n \"id\" => \"int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY\",\n \"price\" => \"integer\",\n \"discount\" => \"integer\",\n \"preview_id\" => \"integer\",\n \"name\" => \"string\",\n \"description\" => \"text\",\n \"short_description\" => \"text\",\n \"slug\" => \"string\",\n ]\n );\n }", "public function preUp()\n {\n }", "public function up()\n\t{\n\t\t// create the purchase_order_details table\n\t\tSchema::create('purchase_order_details', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\t\t \n\t\t $table->integer('purchase_order_id')->unsigned();//->foreign()->references('id')->on('orders');\n\t\t $table->integer('product_id')->unsigned();//->foreign()->references('id')->on('products');\n\t\t $table->integer('quantity');\t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \n\t\t $table->integer('updated_by')->unsigned();\n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function up()\n {\n if (!$this->isEdu()) {\n return;\n }\n \n $this->edu_up();\n }", "public function up()\n\t{\t\t\n\t\tDB::table('professor')->insert(array(\n\t\t\t'user_id'=>'2',\t\t\t\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t));\t\t\n\n\t\tDB::table('professor')->insert(array(\n\t\t\t'user_id'=>'3',\t\t\t\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t));\n\t\t//\n\t}", "public function up()\n {\n $table = $this->table('qobo_translations_translations');\n $table->renameColumn('object_foreign_key', 'foreign_key');\n $table->renameColumn('object_model', 'model');\n $table->renameColumn('object_field', 'field');\n $table->renameColumn('translation', 'content');\n\n if (!$table->hasColumn('locale')) {\n $table->addColumn('locale', 'char', [\n 'default' => null,\n 'limit' => 6,\n ]);\n }\n $table->update();\n\n $table = TableRegistry::getTableLocator()->get(\"Translations.Translations\");\n $entities = $table->find()->all();\n foreach($entities as $entity) {\n $entity->setDirty('locale', true);\n $table->save($entity);\n }\n }", "public function up()\n {\n $this->addForeignKey('tours_fk', 'tours', 'id', 'tour_to_hotel', 'tour_id');\n\n $this->addForeignKey('t2h_fkh', 'tour_to_hotel', 'hotel_id', 'hotels', 'id');\n $this->addForeignKey('t2h_fkt', 'tour_to_hotel', 'tour_id', 'tours', 'id');\n }", "public function safeUp()\r\n {\r\n $this->createTable('tbl_job_application', array(\r\n 'id' => 'pk',\r\n 'job_id' => 'integer NOT NULL',\r\n 'user_id' => 'integer NULL',\r\n 'name' => 'string NOT NULL',\r\n 'email' => 'text NOT NULL',\r\n 'phone' => 'text NOT NULL',\r\n 'resume_details' => 'text NOT NULL',\r\n 'create_date' => 'datetime NOT NULL',\r\n 'update_date' => 'datetime NULL',\r\n ));\r\n }", "public function up()\n {\n $fields = array(\n 'first_login' => array('type' => 'char', 'constraint' => '1', 'default' => '1'),\n );\n $this->dbforge->add_column('user', $fields);\n }", "public function safeUp() {\n\n $this->createTable('word', [\n 'word_id' => Schema::TYPE_PK,\n 'word_lang_id' => $this->integer(),\n 'word_name' => $this->string(500) . ' NOT NULL',\n 'word_detais' => $this->string(1000),\n ]);\n\n // Add foreign key\n $this->addForeignKey('fk_language_word_1', 'word',\n 'word_lang_id', 'language', 'lang_id', 'CASCADE', 'NO ACTION');\n \n // Create index of foreign key\n $this->createIndex('word_lang_id_idx', 'word', 'word_lang_id');\n }", "public function safeUp()\n {\n $this->alterColumn('item_keuangan', 'created_at', \"TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00'\");\n\n /* Tambah Field */\n $this->addColumn('item_keuangan', 'status', \"TINYINT(1) NOT NULL DEFAULT '1' COMMENT '0=tidak aktif; 1=aktif;' AFTER `jenis`\");\n }", "public function up()\n {\n $this->addForeignKey(\n 'fk_category_product_from_category',\n 'category_product',\n 'category_id',\n 'category',\n 'id',\n 'NO ACTION',\n 'NO ACTION'\n );\n\n $this->addForeignKey(\n 'fk_category_product_from_product',\n 'category_product',\n 'product_id',\n 'product',\n 'id',\n 'NO ACTION',\n 'NO ACTION'\n );\n }", "public function up()\n\t{\n\t\t$this->dropColumn('korzet','utca'); \n\t\t$this->addColumn('korzet','utca','string NOT NULL');\n\t}", "public function up()\n {\n Schema::table($this->table, function (Blueprint $table) {\n // $table->bigInteger('user_id')->default(0)->after('id'); // Example\n $table->dropColumn([\n // 'user_id', // Example\n ]);\n });\n }", "public function up()\n {\n // $this->fields()->create([]);\n // $this->streams()->create([]);\n // $this->assignments()->create([]);\n }", "public function up()\n {\n $table = $this->table('admins');\n $table->addColumn('name', 'string')\n ->addColumn('role', 'string')\n ->addColumn('username', 'string')\n ->addColumn('password', 'string')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true])\n ->create();\n\n\n $data = [ \n [\n 'name' => 'Pedro Santos', \n 'username' => '[email protected]',\n 'password' => '101010',\n 'role' => 'Suporte',\n 'modified' => false\n ],\n ];\n\n $adminTable = TableRegistry::get('Admins');\n foreach ($data as $value) {\n $adminTable->save($adminTable->newEntity($value));\n }\n }", "public function up(): void\n {\n try {\n // SM: We NEVER delete this table.\n if ($this->db->tableExists('prom2_pages')) {\n return;\n }\n $this->db->ForeignKeyChecks(false);\n $statement=$this->db->prepare(\"CREATE TABLE `prom2_pages` (\n `cntPageID` int(10) unsigned NOT NULL AUTO_INCREMENT,\n `txtRelativeURL` varchar(255) NOT NULL COMMENT 'Relative URL',\n `txtTitle` varchar(70) NOT NULL COMMENT 'Title',\n `txtContent` text NOT NULL COMMENT 'Content',\n `blnRobots_DoNotAllow` bit(1) NOT NULL DEFAULT b'1',\n PRIMARY KEY (`cntPageID`),\n UNIQUE KEY `txtRelativeURL` (`txtRelativeURL`),\n KEY `txtTitle` (`txtTitle`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n $statement->execute();\n $statement->close();\n $this->db->ForeignKeyChecks(true);\n } catch (\\mysqli_sql_exception $exception) {\n throw $exception;\n }\n }", "public function up()\n\t{\n\t\t// Add data to committee-members\n\t\tDB::table('committee_members')->insert(array(\n\t\t\t'name' => 'Brian O\\'Sullivan',\n\t\t\t'role' => 'Chairman',\n\t\t\t'telephone' => '087-1234567',\n\t\t\t'email' => '[email protected]'\n\t\t));\n\t\tDB::table('committee_members')->insert(array(\n\t\t\t'name' => 'Anthony Barker',\n\t\t\t'role' => 'PRO',\n\t\t\t'telephone' => '087-1234567',\n\t\t\t'email' => '[email protected]'\n\t\t));\t\t\n\t}", "public function up()\n {\n $this->query(\"UPDATE `subscription_types` SET `user_label` = `name` WHERE `user_label` = '' OR `user_label` IS NULL;\");\n\n $this->table('subscription_types')\n ->changeColumn('user_label', 'string', ['null' => false])\n ->update();\n }", "public function safeUp()\n\t{\n $sql = <<<SQL\n alter table r add R8 inte;\nSQL;\n\t\t//$this->execute($sql);\n $sql = <<<SQL\n ALTER TABLE r ADD constraint FK_r8_elgz1 FOREIGN KEY (r8) REFERENCES elgz (elgz1) ON DELETE SET DEFAULT ON UPDATE CASCADE;\nSQL;\n //$this->execute($sql);\n\t}", "public function up()\n\t{\n\t\techo $this->migration('up');\n\n\t\tci('o_role_model')->migration_add('Cookie Admin', 'Cookie Designer and Eater', $this->hash());\n\t\t\n\t\treturn true;\n\t}", "public function up()\n {\n\t\t$this->addColumn('{{%user}}', 'is_super', Schema::TYPE_SMALLINT . \"(1) NULL DEFAULT '0' AFTER `status`\");\n\t\t\n\t\t//Add new column for Option Group table\n\t\t$this->addColumn('{{%option_group}}', 'option_type', Schema::TYPE_STRING . \"(25) NULL DEFAULT 'text' AFTER `title`\");\n\t\t\n\t\t//Add new column for Order table\n\t\t$this->addColumn('{{%order}}', 'is_readed', Schema::TYPE_SMALLINT . \"(1) NULL DEFAULT '0' AFTER `shipment_method`\");\n }", "public function up()\n {\n $this->addColumn(\\backend\\models\\VodProfile::tableName(), 'language', \"char(5) not null default 'en-US'\");\n }", "public function up()\n {\n if (!Schema::hasTable($this->table))\n Schema::create($this->table, function (Blueprint $table)\n {\n $table->integer('parent_id')->unsigned()->index();\n $table->foreign('parent_id')->references('id')->on('organisations')->onDelete('restrict');\n\n $table->integer('child_id')->unsigned()->index();\n $table->foreign('child_id')->references('id')->on('organisations')->onDelete('restrict');\n\n $table->primary(['parent_id','child_id'],'organisation_relations_primary');\n\n $table->timestamps();\n $table->softDeletes();\n\n $table->engine = 'InnoDB';\n });\n }", "public function up(){\n $table = $this->table('users', array('id'=>false, 'primary_key'=>'id'));\n $table->addColumn('id', 'integer', array('identity'=>true, 'signed'=>false));\n $table->addColumn('email', 'string', array('limit'=>100));\n $table->save();\n }", "public function up() { return $this->run('up'); }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t// examples:\n\t\t\t\t'l_label' => 'VARCHAR(200) NULL DEFAULT NULL',\n\t\t\t\t'l_announce' => 'TEXT NULL DEFAULT NULL',\n\t\t\t\t//'l_content' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_principles_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_principles_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\n\t{\n\t\t// create the purchase_orders table\n\t\tSchema::create('purchase_orders', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\n\t\t $table->string('order_number', 128);\n\t\t $table->string('approved',50);\n\t\t $table->date('purchase_date');\t\t \t \t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \t\t \n\t\t $table->integer('updated_by')->unsigned();\t\t \n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'label' => 'VARCHAR(20) NULL DEFAULT NULL COMMENT \"language label\"',\n\t\t\t\t'code' => 'VARCHAR(5) NOT NULL COMMENT \"language code\"',\n\t\t\t\t'locale' => 'VARCHAR (5) NULL DEFAULT NULL',\n\n\t\t\t\t'visible' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not visible; 1 - visible\"',\n\t\t\t\t'published' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not published; 1 - published\"',\n\t\t\t\t'position' => 'INT UNSIGNED NOT NULL DEFAULT 0 COMMENT \"order by position DESC\"',\n\t\t\t\t'created' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - creation time\"',\n\t\t\t\t'modified' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - last entity modified time\"',\n\n\t\t\t\t'UNIQUE key_unique_code (code)',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\n\t\t$this->insert('{{language}}', array(\n\t\t\t'label' => 'рус',\n\t\t\t'code' => 'ru',\n\t\t\t'locale' => 'ru',\n\t\t));\n\t}", "public function up()\n {\n $this->execute('Update goods SET price_rub = price WHERE currency_id = 1');\n }", "public function up()\n\t{\n $this->dropColumn('calculo','fecha');\n\n //add column fecha in producto\n $this->addColumn('producto','fecha','date');\n\t}", "public function up(){\n Schema::table('entries', function (Blueprint $table) {\n $table->renameColumn('value', 'entry_value');\n });\n }", "public function safeUp() {\n\t$this->createTable('post', array(\n 'id' =>\"int(11) NOT NULL AUTO_INCREMENT\",\n 'created_on' =>\"int(11) NOT NULL\",\n 'title' =>\"varchar(255) NOT NULL\",\n 'context' =>\"text NOT NULL\",\n \"PRIMARY KEY (`id`)\"\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "public function getUpSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `department_summary`\n\n CHANGE `twitter_account` `positive_twitter_account` TEXT NOT NULL,\n\n ADD `negative_twitter_account` TEXT NOT NULL AFTER `positive_twitter_account`;\n\nALTER TABLE `tweets`\n\n CHANGE `positive_twitter_account` `twitter_account` TEXT NOT NULL,\n\n DROP `negative_twitter_account`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "public function safeUp()\n {\n $this->addColumn('{{%organization}}', 'legal_entity', $this->string()->null());\n $this->addColumn('{{%organization}}', 'contact_name', $this->string()->null());\n $this->addColumn('{{%organization}}', 'about', $this->text()->null());\n $this->addColumn('{{%organization}}', 'picture', $this->string()->null());\n }", "public function up()\n {\n $this->table('agent_order_consignee_address')\n ->addColumn(Column::string('order_number')->setUnique()->setComment('订单编号'))\n \t\t->addColumn(Column::integer('agent_id')->setComment('代理商ID'))\n\t ->addColumn(Column::integer('create_time')->setDefault(1)->setComment('创建时间'))\n\t \n\t ->addColumn(Column::string('consignee_name')->setComment('收货人姓名'))\n\t ->addColumn(Column::string('consignee_phone')->setComment('收货人电话'))\n\t ->addColumn(Column::string('province')->setComment('省份'))\n\t ->addColumn(Column::string('city')->setComment('城市'))\n\t ->addColumn(Column::string('area')->setComment('地区'))\n\t ->addColumn(Column::string('address')->setComment('收货人详细地址'))\n ->create(); \n }", "public function up()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t'l_value' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_configuration_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_configuration_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function safeUp()\r\n {\r\n $this->up();\r\n }", "public function up(){\n // $table->table('kelas')\n // ->addColumn('Id', 'int', \"11\", false, null, true, true)\n // ->addColumn('NamaKelas', 'varchar', \"100\")\n // ->create();\n }", "public function safeUp()\n\t{\n\t\t$this->createTable('pesquisa', array(\n\t\t\t'id' => 'serial NOT NULL primary key',\n\t\t\t'nome' => 'varchar',\n\t\t));\n\t}", "public function safeUp()\n\t{\n\t\t$this->up();\n\t}", "public function safeUp()\n {\n $this->up();\n }", "public function safeUp()\n {\n $this->up();\n }", "public function up(){\n // $table->table('kelassiswa')\n // ->addColumn('Id', 'int', \"11\", false, null, true, true)\n // ->addColumn('Kelas_Id', 'int', \"11\")\n // ->addColumn('Peserta_Id', 'int', \"11\")\n // ->addForeignKey('Peserta_Id', 'peserta', \"Id\", \"CASCADE\")\n // ->addForeignKey('Kelas_Id', 'kelas', \"Id\")\n // ->create();\n\n }", "public function up()\n\t{\n\t\tSchema::table('project_sections', function($t){\n\t\t\t$t->integer('created_by_project_id')->nullable()->unsigned();\n\t\t\t$t->boolean('public')->default(0);\n\n $t->foreign('created_by_project_id')->references('id')->on('projects')->on_delete('SET NULL');\n\t\t});\n\t}", "public function up(){\n\t\tglobal $wpdb;\n\n\t\t$wpdb->query('ALTER TABLE `btm_tasks` ADD COLUMN `last_run` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `date_created`;');\n\t}", "public function up()\n {\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_create');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_mods');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_modpacks');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->boolean('solder_keys')->default(0);\n $table->boolean('solder_clients')->default(0);\n $table->boolean('modpacks_create')->default(0);\n $table->boolean('modpacks_manage')->default(0);\n $table->boolean('modpacks_delete')->default(0);\n });\n }", "public function up()\n {\n Schema::dropIfExists('db_question_new.t_answer_type');\n Schema::create('db_question_new.t_answer_type', function (Blueprint $table){\n $table->increments('id');\n t_field($table->integer('answer_type_no'),\"答案序号\");\n t_field($table->string('name'),\"步骤名字\");\n t_field($table->integer('subject'),\"科目id\");\n t_field($table->integer('open_flag')->default(1),\"开启与否\");\n }); \n }", "public function up()\n\t{\n\t\t$sql = \"create table tbl_rights\n\t\t\t\t(\n\t\t\t\t\titemname varchar(64) not null,\n\t\t\t\t\ttype integer not null,\n\t\t\t\t\tweight integer not null,\n\t\t\t\t\tprimary key (itemname),\n\t\t\t\t\tforeign key (itemname) references tbl_auth_item (name) on delete cascade on update cascade\n\t\t\t\t)\";\n\t\t $this->execute($sql);\n\t\t \n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable( 'tbl_auth_item', array(\n\t\t \"name\" => \"varchar(64) not null\",\n\t\t \"type\" => \"integer not null\",\n\t\t \"description\" => \"text\",\n\t\t \"bizrule\" => \"text\",\n\t\t \"data\" => \"text\",\n\t\t \"primary key (name)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_item_child\", array(\n \t\t\"parent\" => \" varchar(64) not null\",\n\t\t\"child\" => \" varchar(64) not null\",\n \t\t\"primary key (parent,child)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_assignment\",array(\n \t\t\"itemname\" => \"varchar(64) not null\",\n \t\t\"userid\" => \"varchar(64) not null\",\n \t\t\"bizrule\" => \"text\",\n \t\t\"data\"\t => \"text\",\n \t\t\"primary key (itemname,userid)\",\n\t\t));\n\n\t\t$this->addForeignKey('fk_auth_item_child_parent','tbl_auth_item_child','parent','tbl_auth_item','name','CASCADE','CASCADE');\n\t\t$this->addForeignKey('fk_auth_assignment_itemname','tbl_auth_assignment','itemname','tbl_auth_item','name');\n\t\t$this->addForeignKey('fk_auth_assignment_userid','tbl_auth_assignment','userid','tbl_user','id');\n\t}", "public function up()\n {\n // add foreign key for table `articles`\n $this->addForeignKey(\n 'fk-comments-article_id',\n 'comments',\n 'article_id',\n 'article',\n 'id'\n );\n }", "public function safeUp()\r\n\t{\r\n\t\t$this->up();\r\n\t}", "public function up()\n {\n\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable($this->createTableName, [\n 'id' => $this->primaryKey(),\n 'name' => $this->string()->notNull(),\n 'type' => $this->integer(1)->notNull(),\n 'location' => $this->text()->defaultValue(null),\n 'description' => $this->text()->defaultValue(null),\n 'created_by' => $this->integer()->notNull(),\n 'start_at' => $this->integer()->defaultValue(null),\n 'active' => $this->boolean()->defaultValue(true),\n\n ],$tableOptions);\n\n\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n\n $moduleInvite = Module::findOne(['name' => 'Actioncalendar', 'slug' => 'actioncalendar']);\n if(empty($moduleInvite)) {\n $this->batchInsert('{{%module}}', ['parent_id', 'name', 'slug', 'visible', 'sorting'], [\n [null, 'Actioncalendar', 'actioncalendar', 1, 22],\n ]);\n }\n\n }", "public function up()\n\t{\n\t\tSchema::table('user_hasil', function($table)\n\t\t{\n\t\t\t$table->create();\n\t\t\t$table->integer('user_id');\n\t\t\t$table->string('grade', 2);\n\t\t\t$table->decimal('hasil', 5, 2);\n\t\t\t$table->year('tahun');\n\t\t\t$table->timestamps();\n\n\t\t\t$table->foreign('user_id')->references('id')->on('users')->on_update('cascade');\n\t\t});\n\t}", "public function safeUp()\r\n {\r\n $tableOptions = null;\r\n if ($this->db->driverName === 'mysql') {\r\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB';\r\n }\r\n\r\n $this->createTable('{{%contact_msg}}', [\r\n 'id' => Schema::TYPE_PK,\r\n 'from_email' => Schema::TYPE_STRING . \"(320) NOT NULL\",\r\n 'to_email' => Schema::TYPE_STRING . \"(320) NULL\",\r\n 'subject' => Schema::TYPE_STRING . \"(300) NOT NULL\",\r\n 'text' => Schema::TYPE_TEXT,\r\n 'viewed' => Schema::TYPE_BOOLEAN . \"(1) NOT NULL DEFAULT '0'\",\r\n 'created_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n 'updated_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n ], $tableOptions);\r\n }", "public function up()\n {\n $this->alterColumn('{{%hystorical_data}}', 'project_id', $this->integer());\n\n $this->dropForeignKey('fk-hystorical_data-project_id',\n '{{%hystorical_data}}');\n\n $this->addForeignKey(\n 'fk-hystorical_data-project_id',\n '{{%hystorical_data}}',\n 'project_id',\n '{{%projects}}',\n 'id',\n 'SET NULL'\n );\n }", "public function up()\n\t{\n\t\tSchema::create('flows_steps', function($table) {\n\n\t\t\t$table->engine = 'InnoDB';\n\n\t\t $table->increments('stepid');\n\t\t $table->integer('flowid');\n\t\t $table->string('step', 100);\n\t\t $table->integer('roleid');\n\t\t $table->integer('parentid');\n\t\t $table->integer('state');\n\t\t $table->integer('page');\n\t\t $table->integer('condition2');\n\t\t $table->timestamps();\n\n\t\t});\n\t}", "public function safeUp()\n {\n $this->createTable('site_phrase', array(\n 'site_id' => self::MYSQL_TYPE_UINT,\n 'phrase' => 'string NOT NULL',\n 'hash' => 'varchar(32)',\n 'price' => 'decimal(10,2) NOT NULL',\n 'active' => self::MYSQL_TYPE_BOOLEAN,\n ));\n\n $this->addForeignKey('site_phrase_site_id', 'site_phrase', 'site_id', 'site', 'id', 'CASCADE', 'RESTRICT');\n }", "public function up()\n\t{\n\t\tSchema::table('devices', function($table)\n\t\t{\n\t\t\t$table->string('uuid')->unique;\n\t\t\t$table->drop_column('uid');\n\t\t});\n\t}", "public function up()\n\t{\n\t\t$this->execute(\"\n INSERT INTO `authitem` VALUES('D2finv.FiitInvoiceItem.*', 0, 'Edit invoice items', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FiitInvoiceItem.View', 0, 'View invoice items', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FinvInvoice.*', 0, 'Edit invoice records', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FinvInvoice.View', 0, 'View invoice records', NULL, 'N;');\n \n INSERT INTO `authitem` VALUES('InvoiceEdit', 2, 'Edit invoice records', NULL, 'N;');\n INSERT INTO `authitem` VALUES('InvoiceView', 2, 'View invoice records', NULL, 'N;');\n \n INSERT INTO `authitemchild` VALUES('InvoiceEdit', 'D2finv.FiitInvoiceItem.*');\n INSERT INTO `authitemchild` VALUES('InvoiceView', 'D2finv.FiitInvoiceItem.View');\n INSERT INTO `authitemchild` VALUES('InvoiceEdit', 'D2finv.FinvInvoice.*');\n INSERT INTO `authitemchild` VALUES('InvoiceView', 'D2finv.FinvInvoice.View');\n \");\n\t}", "public function up()\n {\n $this->createTable('post',[\n 'id' => $this->primaryKey(),\n 'author_id' => $this->integer(),\n 'title' => $this->string(255)->notNull()->unique(),\n 'content' => $this->text(),\n 'published_at' => $this->dateTime()->defaultExpression('CURRENT_TIMESTAMP'),\n 'updated_at' => $this->dateTime()->defaultExpression('CURRENT_TIMESTAMP'),\n 'status' => \"ENUM('draft','published')\",\n 'image' => $this->string(255)\n ]); \n\n $this->addForeignKey(\n 'fk_post_author_id',\n 'post',\n 'author_id',\n 'user',\n 'id',\n 'CASCADE',\n 'NO ACTION'\n );\n }", "public function up()\n\t{\n// $import->import();\n\t}", "public function up()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{rights}}\")){\n\t\t\t$this->dropTable(\"authItem\");\n\t\t}\n\n\t\t$this->createTable(\"{{rights}}\", array(\n\t\t\t\"itemname\" => \"varchar(64) CHARACTER SET UTF8 NOT NULL\",\n\t\t\t\"type\"\t => \"int not null\",\n\t\t\t\"weight\" => \"int not null\",\n\t\t\t\"PRIMARY KEY (itemname)\"\n\t\t\t));\n\t}", "public function up() {\r\n\t\t// UP\r\n\t\t$column = parent::Column();\r\n\t\t$column->setName('id')\r\n\t\t\t\t->setType('biginteger')\r\n\t\t\t\t->setIdentity(true);\r\n\t\tif (!$this->hasTable('propertystorage')) {\r\n\t\t\t$this->table('propertystorage', [\r\n\t\t\t\t\t\t'id' => false,\r\n\t\t\t\t\t\t'primary_key' => 'id'\r\n\t\t\t\t\t])->addColumn($column)\r\n\t\t\t\t\t->addColumn('path', 'text', ['limit' => 1024])\r\n\t\t\t\t\t->addColumn('name', 'text', ['limit' => 100])\r\n\t\t\t\t\t->addColumn('valuetype', 'integer',[])\r\n\t\t\t\t\t->addColumn('value', 'text', [])\r\n\t\t\t\t\t->create();\r\n\t\t}\r\n\t}", "public function up()\n {\n $perfis = [\n [\n 'id' => 1,\n 'perfil' => 'Genérico',\n 'ativo' => 1\n ]\n ];\n\n $this->insert('singular_perfil', $perfis);\n\n $usuarios = [\n [\n 'id' => 1,\n 'nome' => 'Singular Framework',\n 'login' => 'singular',\n 'senha' => 'singular',\n 'perfil_id' => 1\n ]\n ];\n\n $this->insert('singular_usuario', $usuarios);\n }", "public function safeUp()\n {\n $this->createTable('user', array(\n 'name' => 'string',\n 'username' => 'string NOT NULL',\n 'password' => 'VARCHAR(32) NOT NULL',\n 'salt' => 'VARCHAR(32) NOT NULL',\n 'role' => \"ENUM('partner', 'admin')\"\n ));\n }", "public function up()\n\t{\n\t\t$demoUser = new User();\n\t\t$demoUser->username = \"demo\";\n\t\t$demoUser->email = '[email protected]';\n\t\t$demoUser->password = 'password';\n\t\t$demoUser->create_time = new CDbExpression('NOW()');\n\t\t$demoUser->update_time = new CDbExpression('NOW()');\n\n\t\t$demoUser->save();\n\n\t\t$adminUser = new User();\n\t\t$adminUser->username = \"admin\";\n\t\t$adminUser->email = '[email protected]';\n\t\t$adminUser->password = 'password';\n\t\t$adminUser->create_time = new CDbExpression('NOW()');\n\t\t$adminUser->update_time = new CDbExpression('NOW()');\n\n\t\t$adminUser->save();\n\n\t}", "public function safeUp()\n {\n $tables = Yii::$app->db->schema->getTableNames();\n $dbType = $this->db->driverName;\n $tableOptions_mysql = \"CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB\";\n\n /* MYSQL */\n if (!in_array('question_tag', $tables)) {\n if ($dbType == \"mysql\") {\n $this->createTable('{{%question_tag}}', [\n 'question_id' => 'INT(11) NOT NULL',\n 'tag_id' => 'INT(11) NOT NULL',\n ], $tableOptions_mysql);\n }\n }\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t'like',\n\t\t\tarray(\n\t\t\t\t'id'=>'int(11) UNSIGNED NOT NULL AUTO_INCREMENT',\n\t\t\t\t'user_id' => 'int(11) UNSIGNED NOT NULL',\n\t\t\t\t'post_id' => 'int (11) NOT NULL',\n\t\t\t\t'status' => 'TINYINT(1)',\n\t\t\t\t'created_at' => 'int(11)',\n\t\t\t\t'updated_at' => 'int(11)',\n\t\t\t\t'PRIMARY KEY (id)',\n\t\t\t\t),\n\t\t\t'ENGINE=InnoDB'\n\n\t\t\t);\n\t}", "public function up()\n\t{\n\t\tSchema::table('entries', function($table) {\n $table->create();\n $table->increments('id');\n $table->string('title', 128);\n $table->string('body');\n $table->integer('users_id')->unsigned();\n $table->index('users_id');\n $table->integer('last_edited_by');\n $table->foreign('users_id')->references('id')->on('users')->on_delete('no action');\n $table->timestamps();\n });\n\t}", "public function up()\n {\n $this->alterColumn(\\app\\models\\EmailImportLead::tableName(), 'password', $this->string()->null());\n $this->alterColumn(\\app\\models\\EmailImportLead::tableName(), 'status', $this->integer()->null());\n }", "public function up()\n {\n\t\t$tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\t\t\n\t\t$TABLE_NAME = 'HaberDeneme12';\n $this->createTable($TABLE_NAME, [\n 'HaberID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(12)->notNull(),\n 'Baslik' => $this->string(128)->notNull(),\n 'Ozet' => $this->text()->notNull(),\n 'Detay' => $this->text()->notNull(),\n 'Resim' => $this->text()->notNull(),\n 'EklenmeTarihi' => $this->date(),\n 'GuncellenmeTarihi' => $this->date()\n ], $tableOptions);\n\t\t\n\t\t\n\t\t$TABLE_NAME = 'HaberKategoriDeneme12';\n\t\t $this->createTable($TABLE_NAME, [\n 'KategoriID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(20)->notNull()\n ], $tableOptions);\n\t\t\n }", "public function up()\n\t{\n\t\t$fields = array(\n \"`piezas` DECIMAL(3,2) DEFAULT NULL\",\n\n\t\t);\n\t\t$this->dbforge->add_column('rel_monto_servicios', $fields);\n\n\t}", "public function up()\n {\n $this->insert('key_value', [\n 'key' => 'day_feed_count_dnr',\n 'value' => '15',\n ]);\n }", "public function up()\n {\n // 创建操作记录表\n $tables = $this->table('history');\n // 用户动作\n $tables->addColumn('action', 'string', ['limit' => 20])\n ->addColumn('ip', 'string', ['limit' => 129])\n // 建立用户\n ->addColumn('user_id', 'integer')\n // 登录时间\n ->addColumn('operation_time', 'datetime')\n // 操作详情\n ->addColumn('desc', 'string',['limit'=>500,'null' => true])\n ->create();\n }", "public function up()\n {\n $table = $this->table('vehicle_model_suggestions');\n\n if (!$table->exists()) {\n $table\n ->addPrimaryKey('id')\n ->addColumn('vehicle_id', 'integer', ['null' => false])\n ->addColumn('vehicle_model_id', 'integer', ['null' => false])\n ->addColumn('suggestion', 'text')\n ->addTimestamps()\n ->addColumn('deleted_at', 'datetime')\n ->create();\n }\n }", "public function safeUp()\n {\n $this->insert('category',['name'=>'Uncategorized', 'slug'=>'uncategorized', 'description'=>'Default Category', 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()')]);\n $this->insert('user',['username'=>'Administrator', 'password_hash'=>'$2y$13$6yoLjvVORp/7EO1u8phYTuWYzhMSM4LVVsebZgcqEKj/EQLvo5nJK',\n 'email'=>'[email protected]',\n 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()'),\n 'status'=>1\n ]\n );\n }", "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'post_id' => $this->bigInteger()->notNull(),\n 'category_id' => $this->bigInteger()->notNull(),\n ]);\n\n $this->addForeignKey('post_category_post_id_fk', $this->tableName, 'post_id', '{{%post}}', 'id', 'CASCADE', 'CASCADE');\n $this->addForeignKey('post_category_category_id_fk', $this->tableName, 'category_id', '{{%category}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function up()\n {\n Schema::table('categories', function(Blueprint $table)\n {\n $table->integer('parent_id', false, true)->nullable()->after('cat_order');\n });\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'application_id' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Ид приложения\"',\n\n\t\t\t\t'message' => 'TEXT NOT NULL DEFAULT \"\" COMMENT \"Оригинал\"',\n\t\t\t\t'category' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Категория\"',\n\t\t\t\t'language' => 'VARCHAR(5) NOT NULL DEFAULT \"\" COMMENT \"Язык\"',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\n\t{\n\t\t//\n\t\tSchema::create('options',function($table){\n\t\t\t$table->increments('id');\n\t\t\t$table->boolean('activate_pn');\n\t\t\t$table->string('basic_name');\n\t\t\t$table->string('basic_pass');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t$o = new Option;\n\t\t$o->activate_pn = 0;\n\t\t$o->save();\n\t}", "public function up() {\n\t\t$this->dbforge->add_field(array(\n\t\t\t'id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t\t'unsigned' => TRUE,\n\t\t\t\t'auto_increment' => TRUE\n\t\t\t),\n\t\t\t'name' => array(\n\t\t\t\t'type' => 'VARCHAR',\n\t\t\t\t'constraint' => '100',\n\t\t\t),\n\t\t\t'path' => array(\n\t\t\t\t'type' => 'VARCHAR',\n\t\t\t\t'constraint' => '100',\n\t\t\t)\n\t\t));\n\t\t$this->dbforge->add_key('id', TRUE);\n\t\t$this->dbforge->add_key('path');\n\t\t$this->dbforge->create_table('categories');\n\n\t\t// Table structure for table 'event_categories'\n\t\t$this->dbforge->add_field(array(\n\t\t\t'event_id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t),\n\t\t\t'category_id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t\t'unsigned' => TRUE,\n\t\t\t),\n\t\t));\n\t\t$this->dbforge->add_key('event_id', TRUE);\n\t\t$this->dbforge->add_key('category_id', TRUE);\n\t\t$this->dbforge->create_table('event_categories');\n\t}", "public function up()\n\t{\n Laravel\\Database\\Schema::create(\"orbs\", function($table){\n $table->increments(\"id\");\n $table->string(\"name\");\n $table->string(\"description\");\n $table->integer(\"coins\");\n $table->integer(\"points\");\n $table->integer(\"min_level\");\n $table->integer(\"max_level\");\n $table->integer(\"owner_character\");\n $table->integer(\"acquisition_time\");\n $table->integer(\"last_attacker\");\n $table->integer(\"last_attack_time\");\n $table->string(\"image\");\n });\n\t}" ]
[ "0.80062366", "0.79145443", "0.79145443", "0.79145443", "0.7572342", "0.756089", "0.75283176", "0.7498379", "0.7493237", "0.7453656", "0.74463314", "0.7433381", "0.74307704", "0.7427088", "0.741794", "0.73779047", "0.7374933", "0.7370453", "0.73637444", "0.73505706", "0.7329024", "0.7313519", "0.7298817", "0.72950184", "0.72917736", "0.7291469", "0.72913444", "0.72849613", "0.72839737", "0.7272078", "0.7271878", "0.72659117", "0.7262893", "0.7261672", "0.7256839", "0.72505474", "0.7249633", "0.72441125", "0.724062", "0.72376186", "0.7218244", "0.72177947", "0.72046006", "0.7203395", "0.7196059", "0.7191219", "0.7189963", "0.7177052", "0.71761394", "0.7167738", "0.7164105", "0.7164105", "0.7159096", "0.7147647", "0.7136521", "0.7129768", "0.7124664", "0.7123368", "0.71168584", "0.7104628", "0.7104628", "0.7104618", "0.7097006", "0.70931643", "0.70886755", "0.7087018", "0.7086326", "0.70830804", "0.70829463", "0.70780045", "0.70702124", "0.70690626", "0.7066111", "0.7062268", "0.7058938", "0.705882", "0.70556235", "0.70549136", "0.7054758", "0.70498437", "0.70483595", "0.7047308", "0.7045881", "0.70445794", "0.7043173", "0.703882", "0.7038126", "0.703674", "0.7033728", "0.7032356", "0.7031423", "0.70257956", "0.70142514", "0.70101255", "0.7006208", "0.6988486", "0.6984963", "0.69629973", "0.69612974", "0.69587934", "0.6957519" ]
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema) { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE imp_sensor DROP name, DROP multi_value, DROP minimum_value, DROP maximum_value, DROP value, CHANGE uuid uuid CHAR(36) DEFAULT NULL COLLATE utf8_unicode_ci COMMENT \'(DC2Type:guid)\', CHANGE value_type value_type VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo','fecha','date');\n\t}", "public function down()\n {\n \t\n \t$this->createTable('os', [\n \t\t\t'id' => Schema::TYPE_PK,\n \t\t\t'name' => Schema::TYPE_STRING . ' NOT NULL',\n \t\t\t]);\n \t$this->insert('os', ['id' => 1, 'name' => 'Any']);\n \t$this->insert('os', ['id' => 2, 'name' => 'CentOS']);\n \t$this->insert('os', ['id' => 3, 'name' => 'RHEL']);\n \t$this->insert('os', ['id' => 4, 'name' => 'Fedora']);\n \t \n \t$this->createTable('os_bit', [\n \t\t\t'id' => Schema::TYPE_PK,\n \t\t\t'name' => Schema::TYPE_STRING . ' NOT NULL',\n \t\t\t]);\n\n return false;\n }", "public function down()\n {\n //Schema::dropIfExists('c');//回滚时执行\n\n }", "public function down()\n {\n $this->dbforge->drop_column('user', 'created_at');\n }", "public function down()\n {\n $this->dropForeignKey(\n 'fk-video-blog_id',\n 'video'\n );\n\n\n echo \"m160820_150846_video_create reverted.\\n\";\n\n }", "public function down()\n\t{\nDB::query(\n\"drop table haal;\");\nDB::query(\n\"drop table kandidaat;\");\nDB::query(\n\"drop table haaletaja;\");\nDB::query(\n\"drop table partei;\");\nDB::query(\n\"drop table valimisringkond;\");\n\t}", "public function down()\n\t{\n\t\t// Remove data from committee_members\n\t\tDB::table('committee_members')->where('id', '<', 3)->delete();\t\n\t}", "public function down(){\n $this->dropTable('users');\n }", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `department_summary`\n\n CHANGE `positive_twitter_account` `twitter_account` TEXT NOT NULL,\n\n DROP `negative_twitter_account`;\n\nALTER TABLE `tweets`\n\n CHANGE `twitter_account` `positive_twitter_account` TEXT NOT NULL,\n\n ADD `negative_twitter_account` INTEGER NOT NULL AFTER `quality_tweet`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down()\n {\n Schema::table('attachments', function(Blueprint $table) {\n\n $table->dropColumn('viewable_id');\n $table->dropColumn('viewable_type');\n\n\n });\n }", "public function down()\n\t{\n\t\t//Schema::drop('purchase_order_details');\n\t}", "public function getDownSQL()\r\n {\r\n return array (\n 'propel' => '\r\n# This is a fix for InnoDB in MySQL >= 4.1.x\r\n# It \"suspends judgement\" for fkey relationships until are tables are set.\r\nSET FOREIGN_KEY_CHECKS = 0;\r\n\r\nDROP TABLE IF EXISTS `movimiento`;\r\n\r\n# This restores the fkey checks, after having unset them earlier\r\nSET FOREIGN_KEY_CHECKS = 1;\r\n',\n);\r\n }", "public function down()\n\t{\n//\t\t$this->dbforge->drop_table('blog');\n\n//\t\t// Dropping a Column From a Table\n\t\t$this->dbforge->drop_column('categories', 'icon');\n\t}", "public function down()\n\t{\n\t\t// nothing to do here.\n\t}", "public function down(){\r\n $this->dbforge->drop_table('users'); //eliminacion de la tabla users\r\n }", "public function down()\n\t{\n\t\tSchema::drop('student');\n\t\t//\n\t}", "public function down()\n{\n\nSchema::drop('event_user');\nSchema::drop('events');\nSchema::drop('file');\nSchema::drop('file_ref');\nSchema::drop('groups');\nSchema::drop('project_user');\nSchema::drop('projects');\nSchema::drop('quicknote');\nSchema::drop('subtasks');\nSchema::drop('task_user');\nSchema::drop('tasks');\nSchema::drop('throttle');\nSchema::drop('timesheet');\nSchema::drop('todos');\nSchema::drop('user_profile');\nSchema::drop('users');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\n\n}", "public function down() \n {\n \n }", "public function down()\n\t{\n\t}", "public function down()\n\t{\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n {\n $this->table('contents')->drop()->save();\n }", "public function down()\n\t{\n\t\tSchema::drop('education');\n\t}", "public function down()\n\t{\n\t\tSchema::drop('l_wardrobe_table');\n\t}", "public function down()\n\t{\n\t\techo $this->migration('down');\n\n\t\tci('o_role_model')->migration_remove($this->hash());\n\t\t\n\t\treturn true;\n\t}", "public function safeDown()\n\t{\n $sql=\" ALTER TABLE `tbl_venta` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n //quitando la columna pto_venta de tbl_empleado\n $sql=\" ALTER TABLE `tbl_empleado` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n\t}", "public function down()\n {\n\tSchema::drop('quizzes');\n }", "public function down()\n {\n $this->output->writeln('Down migration is not available.');\n }", "public function down()\n {\n $this->executeSQL('SET FOREIGN_KEY_CHECKS=0');\n\n $this->executeSQL('DROP TABLE link');\n $this->executeSQL('DROP TABLE link_category');\n\n $this->executeSQL('SET FOREIGN_KEY_CHECKS=1');\n }", "public function down ()\n {\n }", "abstract public function down();", "abstract public function down();", "abstract public function down();", "public function down()\n {\n // This migration was removed, but fails when uninstalling plugin\n }", "public function down()\r\n {\r\n $this->dbforge->drop_table('users');\r\n }", "public function down() {\n\n\t}", "public function down()\n {\n $this->dbforge->drop_table('lecturer', true);\n }", "public function down()\n\t{\n\t\tSchema::drop('flows_steps');\n\t}", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE galaxiee (id INT AUTO_INCREMENT NOT NULL, idu_id INT NOT NULL, nom VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_8576D2AF376A6230 (idu_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE trou_noir (id INT AUTO_INCREMENT NOT NULL, id_g_id INT DEFAULT NULL, nom VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_AB27242D95951086 (id_g_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE galaxiee ADD CONSTRAINT FK_8576D2AF376A6230 FOREIGN KEY (idu_id) REFERENCES univers (id)');\n $this->addSql('ALTER TABLE trou_noir ADD CONSTRAINT FK_AB27242D95951086 FOREIGN KEY (id_g_id) REFERENCES galaxie (id)');\n $this->addSql('DROP TABLE trounoir');\n $this->addSql('ALTER TABLE galaxie DROP FOREIGN KEY FK_1C880711376A6230');\n $this->addSql('DROP INDEX IDX_1C880711376A6230 ON galaxie');\n $this->addSql('ALTER TABLE galaxie CHANGE idu_id id_u_id INT NOT NULL');\n $this->addSql('ALTER TABLE galaxie ADD CONSTRAINT FK_1C8807116F858F92 FOREIGN KEY (id_u_id) REFERENCES univers (id)');\n $this->addSql('CREATE INDEX IDX_1C8807116F858F92 ON galaxie (id_u_id)');\n $this->addSql('ALTER TABLE planete DROP FOREIGN KEY FK_490E3E5712013DEC');\n $this->addSql('DROP INDEX IDX_490E3E5712013DEC ON planete');\n $this->addSql('ALTER TABLE planete ADD id_s_id INT NOT NULL, ADD nb_sattelite INT NOT NULL, DROP ids_id, DROP nb_satelite');\n $this->addSql('ALTER TABLE planete ADD CONSTRAINT FK_490E3E574AEED04E FOREIGN KEY (id_s_id) REFERENCES systeme (id)');\n $this->addSql('CREATE INDEX IDX_490E3E574AEED04E ON planete (id_s_id)');\n $this->addSql('ALTER TABLE systeme DROP FOREIGN KEY FK_95796DE3CD7AFD24');\n $this->addSql('DROP INDEX IDX_95796DE3CD7AFD24 ON systeme');\n $this->addSql('ALTER TABLE systeme CHANGE idg_id id_g_id INT NOT NULL');\n $this->addSql('ALTER TABLE systeme ADD CONSTRAINT FK_95796DE395951086 FOREIGN KEY (id_g_id) REFERENCES galaxie (id)');\n $this->addSql('CREATE INDEX IDX_95796DE395951086 ON systeme (id_g_id)');\n }", "public function down() {\n $this->dbforge->drop_column('timesheets_items', 'orgID', TRUE);\n $this->dbforge->drop_column('timesheets_items', 'brandID', TRUE);\n $this->dbforge->drop_column('timesheets_items', 'reason_desc', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'orgID', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'brandID', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'reason_desc', TRUE);\n\n // change reason to note\n $fields = array(\n 'reason' => array(\n 'name' => 'note',\n 'type' => \"VARCHAR\",\n 'constraint' => 200,\n 'null' => TRUE\n )\n );\n $this->dbforge->modify_column('timesheets_items', $fields);\n $this->dbforge->modify_column('timesheets_expenses', $fields);\n }", "public function down(): void\n {\n // Remove your data\n }", "public function down()\n\t{\n\t\t//Schema::drop('purchase_orders');\n\t\t//Schema::drop('purchase_order_details');\n\t}", "public function down()\n {\n\tSchema::drop('activities');\n }", "public function down(){\n $this->dbforge->drop_table('subcategories_news'); //eliminacion de la tabla subcategories_news\n }", "public function down()\n {\n //return false;\n\t\t\n\t\t$TABLE_NAME = 'Haber';\n $this->dropTable($TABLE_NAME);\n\t\t\n\t\t$TABLE_NAME = 'HaberKategori';\n $this->dropTable($TABLE_NAME);\n }", "public function down()\n {\n }", "public function down()\n {\n }", "public function down()\n\t{\n\t\tDB::table('professor')->where('professor_id', '=', 1)->delete();\n\t\tDB::table('professor')->where('professor_id', '=', 2)->delete();\n\t\tDB::query('ALTER TABLE professor AUTO_INCREMENT = 1');\n\n\t\t//\n\t}", "public function down(): bool {\n\t\t// Remove & add logic to revert the migration here.\n\t\techo \"M230123030315BaseTables cannot be rolled back.\\n\";\n\t\treturn false;\n\t}", "public function getDownSQL()\r\n {\r\n return array (\n 'propel' => '\r\n# This is a fix for InnoDB in MySQL >= 4.1.x\r\n# It \"suspends judgement\" for fkey relationships until are tables are set.\r\nSET FOREIGN_KEY_CHECKS = 0;\r\n\r\nALTER TABLE `promocion` CHANGE `fecha_inicio` `fecha_inicio` DATE NOT NULL;\r\n\r\nALTER TABLE `promocion` CHANGE `fecha_fin` `fecha_fin` DATE NOT NULL;\r\n\r\nALTER TABLE `promocion` CHANGE `descuento` `descuento` DECIMAL;\r\n\r\nALTER TABLE `promocion`\r\n ADD `descripcion` VARCHAR(70) AFTER `id`,\r\n ADD `estado` VARCHAR(11) AFTER `fecha_fin`,\r\n ADD `promocion_global` TINYINT(1) NOT NULL AFTER `descuento`;\r\n\r\nALTER TABLE `promocion` DROP `activo`;\r\n\r\n# This restores the fkey checks, after having unset them earlier\r\nSET FOREIGN_KEY_CHECKS = 1;\r\n',\n);\r\n }", "public function down()\n\t{\n\t\t//return false;\n\t}", "public function down(): void\n {\n try {\n $this->db->ForeignKeyChecks(false);\n $statement=$this->db->prepare(\"DROP TABLE IF EXISTS prom2_pages\");\n $statement->execute();\n $statement->close();\n $this->db->ForeignKeyChecks(true);\n } catch (\\mysqli_sql_exception $exception) {\n throw $exception;\n }\n }", "public function down()\n\t{\n\t\t//\n\t\tSchema::drop('options');\n\t}", "public function change()\n {\n $this->schema->table('recurring_expenses',function($table){\n $table->date('end_repeat')->nullable();\n $table->boolean('ended')->default(false);\n $table->enum('repeat',['0','1','7','14','30','365'])->nullable();\n });\n\n $this->schema->table('expenses',function($table){\n $table->dropColumn('end_repeat');\n $table->dropColumn('repeat');\n $table->integer('parent_id')->nullable();\n $table->foreign('parent_id')->references('id')->on('expenses')->onDelete('cascade');\n });\n }", "public function down()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->dropForeign('users_id_turma_foreign');\n });\n\n Schema::table('contato', function (Blueprint $table) {\n $table->dropForeign('contato_id_usuario_foreign');\n });\n\n Schema::table('monitores', function (Blueprint $table) {\n $table->dropForeign('monitores_id_turma_foreign');\n $table->dropForeign('monitores_id_usuario_foreign');\n });\n\n Schema::table('galeria_portifolio', function (Blueprint $table) {\n $table->dropForeign('galeria_portifolio_id_portifolio_foreign');\n });\n\n Schema::table('portifolio_alunos', function (Blueprint $table) {\n $table->dropForeign('portifolio_alunos_id_portifolio_foreign');\n $table->dropForeign('portifolio_alunos_id_usuario_foreign');\n });\n\n Schema::table('cobranca', function (Blueprint $table) {\n $table->dropForeign('cobranca_id_aluno_foreign');\n });\n\n Schema::table('lista_de_presenca', function (Blueprint $table) {\n $table->dropForeign('lista_de_presenca_id_usuario_foreign');\n });\n\n Schema::table('forum_da_turma', function (Blueprint $table) {\n $table->dropForeign('forum_da_turma_id_usuario_foreign');\n });\n\n Schema::table('posts_do_site', function (Blueprint $table) {\n $table->dropForeign('posts_do_site_id_usuario_foreign');\n });\n\n Schema::table('posts_do_forum', function (Blueprint $table) {\n $table->dropForeign('posts_do_forum_id_topico_foreign');\n $table->dropForeign('posts_do_forum_id_usuario_foreign');\n });\n }", "public function down()\n\t{\n\t\t$this->dropForeignKey('FK_task_creator','tbl_task');\n\n\t\t$this->dropTable('tbl_task');\n\t}", "public function down()\n {\n $this->table('articles')->drop()->save();\n $this->table('categories')->drop()->save();\n $this->table('football_ragistrations')->drop()->save();\n $this->table('friends')->drop()->save();\n $this->table('menus')->drop()->save();\n $this->table('picnic_ragistrations')->drop()->save();\n $this->table('products')->drop()->save();\n $this->table('profiles')->drop()->save();\n $this->table('skills')->drop()->save();\n $this->table('spouses')->drop()->save();\n $this->table('students')->drop()->save();\n $this->table('submenus')->drop()->save();\n $this->table('users')->drop()->save();\n }", "public function down(){\n\t\tSchema::dropIfExists('cargo');\n\t}", "public function down()\n {\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )->save();\n\n $this->table('users')\n ->removeIndexByName('FK_users_roles')\n ->update();\n\n $this->table('users')\n ->addColumn('can_edit', 'boolean', [\n 'after' => 'enabled',\n 'default' => '0',\n 'length' => null,\n 'null' => false,\n ])\n ->removeColumn('role_id')\n ->update();\n\n $this->table('stundenplan')\n ->changeColumn('note', 'string', [\n 'default' => null,\n 'length' => 255,\n 'null' => true,\n ])\n ->removeColumn('loggedInNote')\n ->update();\n\n $this->table('roles')->drop()->save();\n }", "public function down()\n\t{\n\t\t//\n\t\tDB::query('TRUNCATE TABLE app_user_apps_publishes CASCADE');\n\t\tDB::query('TRUNCATE TABLE app_apps_fbapps CASCADE');\n\t\tDB::query('TRUNCATE TABLE app_apps_applications CASCADE');\n\t}", "public function down()\n\t{\n\t\t// Drop Table\n\t\tSchema::drop('activities_types');\n\t}", "protected abstract function do_down();", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE encherir_acheteur (encherir_id INT NOT NULL, acheteur_id INT NOT NULL, INDEX IDX_41ABAAFBB0BA17BB (encherir_id), INDEX IDX_41ABAAFB96A7BB5F (acheteur_id), PRIMARY KEY(encherir_id, acheteur_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE encherir_lot (encherir_id INT NOT NULL, lot_id INT NOT NULL, INDEX IDX_3C56919BB0BA17BB (encherir_id), INDEX IDX_3C56919BA8CBA5F7 (lot_id), PRIMARY KEY(encherir_id, lot_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFB96A7BB5F FOREIGN KEY (acheteur_id) REFERENCES acheteur (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFBB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BA8CBA5F7 FOREIGN KEY (lot_id) REFERENCES lot (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EB576A8');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EFC101A');\n $this->addSql('DROP INDEX IDX_503B7C878EB576A8 ON encherir');\n $this->addSql('DROP INDEX IDX_503B7C878EFC101A ON encherir');\n $this->addSql('ALTER TABLE encherir DROP id_acheteur_id, DROP id_lot_id');\n }", "public function down()\n {\n $this->table('accounting_entries')\n ->dropForeignKey(\n 'accounting_entry_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('associations_events')\n ->dropForeignKey(\n 'event_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('events')\n ->dropForeignKey(\n 'event_type_id'\n )->save();\n\n $this->table('members')\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics')\n ->dropForeignKey(\n 'statistics_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics_event')\n ->dropForeignKey(\n 'statistics_id'\n )\n ->dropForeignKey(\n 'event_id'\n )->save();\n\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('accounting_entries')->drop()->save();\n $this->table('accounting_entry_type')->drop()->save();\n $this->table('associations')->drop()->save();\n $this->table('associations_events')->drop()->save();\n $this->table('event_type')->drop()->save();\n $this->table('events')->drop()->save();\n $this->table('members')->drop()->save();\n $this->table('roles')->drop()->save();\n $this->table('statistics')->drop()->save();\n $this->table('statistics_event')->drop()->save();\n $this->table('statistics_type')->drop()->save();\n $this->table('users')->drop()->save();\n }", "public function down()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{user_block}}\")){\n\t\t\t$this->dropTable(\"{{user_block}}\");\n\t\t}\n\n\t}", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nDROP TABLE IF EXISTS `user_login`;\n\nALTER TABLE `user` DROP `user_mname`;\n\nALTER TABLE `user` DROP `user_user`;\n\nALTER TABLE `user` DROP `user_password`;\n\nALTER TABLE `user` DROP `user_date_lastlogin`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down()\n\t{\n\t\tSchema::table('officers', function($t){\n\t\t\t$t->drop_column('role');\n\t\t});\n\t}", "public function safeDown()\n {\n $this->down();\n }", "public function safeDown()\n {\n $this->down();\n }", "public function down()\n\t{\n\t\tSchema::drop('refs');\n\t}", "public function down () {\n\t\treturn $this->rename_column ('headline', 'title', 'string', array ('limit' => 72));\n\t}", "public function down()\n\t{\n\t\tSchema::drop('appeals');\n\t}", "public function safeDown()\r\n {\r\n $this->down();\r\n }", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nDROP TABLE IF EXISTS `user`;\n\nDROP TABLE IF EXISTS `question`;\n\nDROP TABLE IF EXISTS `answer`;\n\nDROP TABLE IF EXISTS `image`;\n\nDROP TABLE IF EXISTS `vote`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n<<<<<<< HEAD\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCF082E755');\n $this->addSql('ALTER TABLE affaire DROP FOREIGN KEY FK_9C3F18EFED813170');\n=======\n<<<<<<< HEAD:src/Migrations/Version20200418121015.php\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCF082E755');\n $this->addSql('ALTER TABLE affaire DROP FOREIGN KEY FK_9C3F18EFED813170');\n=======\n $this->addSql('ALTER TABLE liste_affaire_affaire DROP FOREIGN KEY FK_CA81ADF3F082E755');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2463CD7C3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA25D493FF4');\n $this->addSql('ALTER TABLE correspondant_administratif DROP FOREIGN KEY FK_E1E7152EBF396750');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA246135043');\n>>>>>>> e1e13eb645b79ada7517f9d2be860dc1655c42db:src/Migrations/Version20200318150734.php\n>>>>>>> 0c1c04bb7c2bbee076bc5fdb1e2456d1af817866\n $this->addSql('ALTER TABLE enfant_sejour DROP FOREIGN KEY FK_159E7E65450D2529');\n $this->addSql('ALTER TABLE enfant_sejour DROP FOREIGN KEY FK_159E7E6584CF0CF');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2463CD7C3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA25D493FF4');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2FF631228');\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCE2687AC3');\n $this->addSql('ALTER TABLE sejour DROP FOREIGN KEY FK_96F52028E2687AC3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA246135043');\n $this->addSql('ALTER TABLE correspondant_administratif DROP FOREIGN KEY FK_E1E7152E46135043');\n $this->addSql('DROP TABLE affaire');\n<<<<<<< HEAD\n $this->addSql('DROP TABLE affaire_liste_affaire');\n $this->addSql('DROP TABLE type_affaire');\n=======\n<<<<<<< HEAD:src/Migrations/Version20200418121015.php\n $this->addSql('DROP TABLE affaire_liste_affaire');\n $this->addSql('DROP TABLE type_affaire');\n=======\n $this->addSql('DROP TABLE centre');\n $this->addSql('DROP TABLE correspondant_administratif');\n $this->addSql('DROP TABLE responsable_legal');\n>>>>>>> e1e13eb645b79ada7517f9d2be860dc1655c42db:src/Migrations/Version20200318150734.php\n>>>>>>> 0c1c04bb7c2bbee076bc5fdb1e2456d1af817866\n $this->addSql('DROP TABLE enfant');\n $this->addSql('DROP TABLE enfant_sejour');\n $this->addSql('DROP TABLE sejour');\n $this->addSql('DROP TABLE centre');\n $this->addSql('DROP TABLE correspondant_administratif');\n $this->addSql('DROP TABLE etablissement');\n $this->addSql('DROP TABLE liste_affaire');\n $this->addSql('DROP TABLE responsable_legal');\n $this->addSql('DROP TABLE user');\n }", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function down()\n {\n $this->table('mail_contents')->drop()->save();\n }", "public function down() {\n\t}", "public function down() {\n\t}", "public function down() {\n\t}", "public function down()\n {\n Schema::dropIfExists('reunion');\n }", "public function down(): void\n {\n $this->table('services')\n ->dropForeignKey(\n ['currency_id','billing_period_id']\n )->save();\n $this->execute('DELETE FROM currencies');\n $this->execute('DELETE FROM billing_periods');\n $this->table('services')->drop()->save();\n $this->table('currencies')->drop()->save();\n $this->table('billing_periods')->drop()->save();\n }", "public function down()\n\t{\n\t\tSchema::drop('article_category');\n\t}", "public function down()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->renameColumn('first_name', 'name');\n $table->dropIndex('users_first_name_index');\n $table->dropIndex('users_created_at_index');\n $table->dropIndex('users_updated_at_index');\n $table->dropColumn(\"last_name\");\n $table->dropColumn(\"username\");\n $table->dropColumn(\"provider\");\n $table->dropColumn(\"provider_id\");\n $table->dropColumn(\"api_token\");\n $table->dropColumn(\"code\");\n $table->dropColumn(\"remember_token\");\n $table->dropColumn(\"role_id\");\n $table->dropColumn(\"last_login\");\n $table->dropColumn(\"status\");\n $table->dropColumn(\"root\");\n $table->dropColumn('backend');\n $table->dropColumn(\"photo_id\");\n $table->dropColumn(\"lang\");\n $table->dropColumn(\"color\");\n $table->dropColumn(\"about\");\n $table->dropColumn(\"facebook\");\n $table->dropColumn(\"twitter\");\n $table->dropColumn(\"linked_in\");\n $table->dropColumn(\"google_plus\");\n });\n }", "public function down()\n\t{\n\t\tSchema::drop('entries');\n\t}", "public function down()\n\t{\n\t\tSchema::table('precios_aterrizajes_despegues', function(Blueprint $table)\n\t\t{\n\t\t\t//\n\t\t});\n\t}", "public function down()\n{\nSchema::drop('statustype');\nSchema::drop('area');\nSchema::drop('region');\nSchema::drop('territory');\nSchema::drop('trackedevent');\nSchema::drop('zip_territory');\nSchema::drop('messagetype');\nSchema::drop('optintype');\nSchema::drop('representative');\nSchema::drop('pediatrician');\nSchema::drop('application_messagestatus');\nSchema::drop('application_optin');\nSchema::drop('application_trackedevent');\nSchema::drop('application');\n}", "public function down()\n\t{\n\t\tSchema::drop(Config::get('sentry::sentry.table.users_metadata'));\n\t}", "public function down()\n\t{\n\t\tSchema::drop('stor_mem');\n\t}", "protected function tearDown(): void {\n $migration = include __DIR__.'/../database/migrations/create_all_visitors_tables.php.stub';\n $migration->down();\n\n $migrationTest = include __DIR__.'/Support/migrations/2023_01_12_000000_create_test_models_table.php';\n $migrationTest->down();\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_350001418F5EA509');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8B8F5EA509');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA148F5EA509');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0E8F5EA509');\n $this->addSql('ALTER TABLE cours DROP FOREIGN KEY FK_FDCA8C9CF46CD258');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8BF46CD258');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14F46CD258');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7F46CD258');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9A21BD112');\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_35000141A21BD112');\n $this->addSql('ALTER TABLE contacte DROP FOREIGN KEY FK_C794A022A21BD112');\n $this->addSql('ALTER TABLE demande DROP FOREIGN KEY FK_2694D7A5A21BD112');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14A6CC7B2');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7A21BD112');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EE455FCC0');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EBDDFA3C9');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EDC304035');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9E3797A94');\n $this->addSql('ALTER TABLE personne DROP FOREIGN KEY FK_FCEC9EFA76ED395');\n $this->addSql('ALTER TABLE reset_password_request DROP FOREIGN KEY FK_7CE748AA76ED395');\n $this->addSql('DROP TABLE absence');\n $this->addSql('DROP TABLE classe');\n $this->addSql('DROP TABLE classe_personne');\n $this->addSql('DROP TABLE contacte');\n $this->addSql('DROP TABLE cours');\n $this->addSql('DROP TABLE demande');\n $this->addSql('DROP TABLE matiere');\n $this->addSql('DROP TABLE matiere_classe');\n $this->addSql('DROP TABLE news');\n $this->addSql('DROP TABLE note');\n $this->addSql('DROP TABLE personne');\n $this->addSql('DROP TABLE personne_matiere');\n $this->addSql('DROP TABLE reset_password_request');\n $this->addSql('DROP TABLE salle');\n $this->addSql('DROP TABLE seance');\n $this->addSql('DROP TABLE user');\n }", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDEA76ED395');\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDE19FCD424');\n $this->addSql('DROP TABLE booking');\n $this->addSql('DROP TABLE product_image');\n $this->addSql('DROP TABLE family_page_container');\n $this->addSql('DROP TABLE user');\n $this->addSql('DROP TABLE time_line');\n $this->addSql('ALTER TABLE family DROP FOREIGN KEY FK_A5E6215B727ACA70');\n $this->addSql('DROP INDEX IDX_A5E6215B727ACA70 ON family');\n $this->addSql('ALTER TABLE family ADD page_content_id INT NOT NULL, DROP parent_id, DROP has_uniques_prices, DROP has_seasonal_products');\n $this->addSql('ALTER TABLE family ADD CONSTRAINT FK_A5E6215B8F409273 FOREIGN KEY (page_content_id) REFERENCES page_content (id)');\n $this->addSql('CREATE INDEX IDX_A5E6215B8F409273 ON family (page_content_id)');\n $this->addSql('ALTER TABLE link ADD page_container_id INT DEFAULT NULL, DROP url');\n $this->addSql('ALTER TABLE link ADD CONSTRAINT FK_36AC99F123D5B0C FOREIGN KEY (page_container_id) REFERENCES page_container (id)');\n $this->addSql('CREATE INDEX IDX_36AC99F123D5B0C ON link (page_container_id)');\n $this->addSql('ALTER TABLE product DROP content, DROP order_by, DROP is_generic, DROP type, CHANGE title label VARCHAR(50) NOT NULL COLLATE utf8mb4_unicode_ci');\n $this->addSql('ALTER TABLE unit DROP duration');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398F5B7AF75');\n $this->addSql('ALTER TABLE suppliers DROP FOREIGN KEY FK_AC28B95C8486F9AC');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6498486F9AC');\n $this->addSql('ALTER TABLE stock DROP FOREIGN KEY FK_4B365660D629F605');\n $this->addSql('ALTER TABLE stock DROP FOREIGN KEY FK_4B365660E308AC6F');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F46CFFE9AD6');\n $this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04ADEE45BDBF');\n $this->addSql('ALTER TABLE suppliers DROP FOREIGN KEY FK_AC28B95CEE45BDBF');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649EE45BDBF');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F464584665A');\n $this->addSql('ALTER TABLE product_theme DROP FOREIGN KEY FK_36299C544584665A');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649D60322AC');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F46DCD6110');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F462ADD6D8C');\n $this->addSql('ALTER TABLE product_theme DROP FOREIGN KEY FK_36299C5459027487');\n $this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398A76ED395');\n $this->addSql('DROP TABLE address');\n $this->addSql('DROP TABLE format');\n $this->addSql('DROP TABLE material');\n $this->addSql('DROP TABLE `order`');\n $this->addSql('DROP TABLE order_detail');\n $this->addSql('DROP TABLE picture');\n $this->addSql('DROP TABLE product');\n $this->addSql('DROP TABLE product_theme');\n $this->addSql('DROP TABLE role');\n $this->addSql('DROP TABLE stock');\n $this->addSql('DROP TABLE suppliers');\n $this->addSql('DROP TABLE theme');\n $this->addSql('DROP TABLE user');\n }", "public function down()\n {\n Schema::dropIfExists('data');\n }", "public function down()\n\t{\n\t\tSchema::create('jobs',function($table){$table->increments('id');});\n\t\tSchema::create('job_location',function($table){$table->increments('id');});\n\t\tSchema::create('job_skill',function($table){$table->increments('id');});\n\t\tSchema::create('locations',function($table){$table->increments('id');});\n\t\tSchema::create('location_program',function($table){$table->increments('id');});\n\t\tSchema::create('location_scholarship',function($table){$table->increments('id');});\n\t\tSchema::create('positions',function($table){$table->increments('id');});\n\t\tSchema::create('programs',function($table){$table->increments('id');});\n\t\tSchema::create('program_subject',function($table){$table->increments('id');});\n\t\tSchema::create('scholarships',function($table){$table->increments('id');});\n\t\tSchema::create('scholarship_subject',function($table){$table->increments('id');});\n\t\tSchema::create('skills',function($table){$table->increments('id');});\n\t\tSchema::create('subjects',function($table){$table->increments('id');});\n\t}" ]
[ "0.79502094", "0.7863702", "0.7606416", "0.7492738", "0.73199725", "0.7245919", "0.7187675", "0.7153845", "0.71537775", "0.71420383", "0.71353674", "0.71216005", "0.7115856", "0.7105365", "0.70985687", "0.7080349", "0.70783705", "0.7072629", "0.7068311", "0.7065529", "0.7053633", "0.7053633", "0.70424956", "0.70424956", "0.70424956", "0.7041426", "0.703968", "0.7029248", "0.70252407", "0.7021071", "0.69888437", "0.6985933", "0.69781303", "0.69711983", "0.69435465", "0.69435465", "0.69435465", "0.69422066", "0.6941167", "0.69392043", "0.693508", "0.6934209", "0.69273883", "0.69249666", "0.6924165", "0.69139355", "0.6903021", "0.6897935", "0.6897865", "0.6897159", "0.6897159", "0.6887517", "0.68814087", "0.68738264", "0.6869671", "0.68627596", "0.6858359", "0.685274", "0.68442315", "0.68434376", "0.6836587", "0.6836147", "0.68347293", "0.68302953", "0.6829403", "0.6828893", "0.6825529", "0.6823726", "0.6818256", "0.68105906", "0.68082154", "0.6805308", "0.6805308", "0.6789928", "0.6775214", "0.6774431", "0.67646605", "0.67588997", "0.675822", "0.67556226", "0.67556226", "0.67556226", "0.6753787", "0.6753203", "0.6753203", "0.6753203", "0.67524594", "0.6745875", "0.67441654", "0.6738876", "0.67343754", "0.6733525", "0.67314184", "0.67311025", "0.67271084", "0.67268074", "0.6725997", "0.67252296", "0.6716472", "0.6713497", "0.6713106" ]
0.0
-1
Get the enabled status of the api endpoints.
public static function isEnabled() { return self::get('is_enabled', false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isApiEnabled()\n {\n return (Mage::getStoreConfig('easywebshopsms/api_connection/active')==0) ? false : true;\n }", "public function isApiEnabled()\n {\n return (Mage::getStoreConfig('smsnotifier/main_conf/active')==0) ? 0 : 1;\n\n }", "public function apiStatus(): string\n {\n return $this->request('apiStatus', 'GET');\n }", "function api_status()\n{\n $result;\n return _do_api_call('GET', '/api/v1/status', null, $result);\n}", "public function status()\n {\n $response = $this->call(Request::METHOD_GET, '/api/v1/status');\n return $response->getApiData();\n }", "public function isApiLoggingOn() {\n\t\treturn $this->apiLoggingOn;\n\t}", "public function hasApiSupport()\n {\n $api = 'getStatus,pauseQueue,resumeQueue,setSpeedLimit,moveDown,moveUp'\n .',moveTop,moveBottom,setCategory,delete,pause,resume,getVersion';\n\n return $api;\n }", "public function getJsonApiStatus(): string;", "public function get_api_is_reachable() {\n\t\t$enabled = get_option( 'algolia_api_is_reachable', 'no' );\n\n\t\treturn 'yes' === $enabled;\n\t}", "function getEnabled() {\n\t\treturn $this->getData('enabled');\n\t}", "public function getEnabled()\n {\n return array_filter($this->storage, function($val)\n {\n return $val['status'] === ProviderInterface::STATUS_INSTALLED;\n });\n }", "public function isEnabled()\n {\n return Mage::getStoreConfigFlag(self::XML_PATH_TRANSACTIONAL_API_ENABLED);\n }", "public function getApiEndpoints(): array;", "public function enabled(): array;", "public function getApiUsageAvailable() {\n return @$this->attributes['api_usage_available'];\n }", "function ppom_is_api_enable() {\n \n $api_enable = get_option( 'ppom_api_enable' );\n $api_key = get_option( 'ppom_rest_secret_key' );\n \n $return = false;\n \n if( $api_enable == 'yes' && $api_key != '' ) {\n $return = true;\n }\n \n return $return;\n}", "public function get_enabled() \n {\n return $this->enabled;\n }", "public function getEnabled()\n {\n if ($this->model->where('is_disabled', '=', 0)->get())\n return $this->model->where('is_disabled', '=', 0)->get();\n else return [];\n }", "public function getWebhookStatus()\n {\n return (bool)Mage::getStoreConfigFlag('trello_api/webhook/status');\n }", "public function get_enabled(): int\n {\n // $res is a enumBOOL;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::ENABLED_INVALID;\n }\n }\n $res = $this->_enabled;\n return $res;\n }", "public function enabled();", "public function enabled();", "public function enabled();", "public function enabled();", "public function enabled()\n {\n return $this->andWhere(['>=', User::tableName() . '.status', User::STATUS_ENABLED]);\n }", "public static function getEnabled()\n {\n return array_filter(\n $providers = array_keys(self::getProviders(), true, true),\n function ($provider) {\n // if ('google' === $provider && ends_with(config('app.url'), '.local')) {\n // return false;\n // }\n\n return self::isConfigured($provider);\n }\n );\n }", "public function getEnabled()\n {\n return $this->enabled;\n }", "public function getEnabled()\n {\n return $this->enabled;\n }", "public function getEnabled()\n {\n return $this->enabled;\n }", "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();", "public function getEnabled()\r\n {\r\n return $this->enabled;\r\n }", "public function getEnabled() {\n return $this->enabled;\n }", "public function isAwesomeEnabled()\n {\n return response()->json($this->configCatClient->getValue(\"isAwesomeFeatureEnabled\", false));\n }", "private function isApiAvailable() {\n\t\treturn get_option(\"wp_broadbean_ipavailibility\") == 1;\n\t}", "public function getEnabled() {\n\t\treturn $this->enabled;\n\t}", "public function getServiceStatus($request);", "public function getApi()\n {\n return Mage::getStoreConfig('actions/settings/api');\n }", "public function enabled()\n {\n return $this->context->enabled();\n }", "public static function enabled() {\r\n\t\treturn self::$enabled;\r\n\t}", "public function enabled()\n\t{\n\t\treturn $this->installed(function($query)\n\t\t{\n\t\t\treturn $query->where('enabled', '=', 1);\n\t\t});\n\t}", "public function getEnabled()\n {\n return $this->_enabled;\n }", "function active_api_config($module, $api,$config_table_origin) {\r\n\t\t$data = $this->active_config ( $module, $api,$config_table_origin );\r\n\r\n\t\tif ($data != FAILURE_STATUS) {\r\n\t\t\treturn $data [$api];\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function isEnabled(){\n return $this->activo;\n }", "public function getEnableMonitoring()\n {\n return $this->enableMonitoring;\n }", "public function getStatuses()\n {\n $endpoint = $this->endpoints['getStatuses'];\n return $this->sendRequest($endpoint['method'], $endpoint['uri']);\n }", "public function getIsEnabled()\n {\n return $this->helper->isEnabled();\n }", "public function get_test_rest_availability()\n {\n }", "public function status()\n {\n return $this->UserAPI->request_status_check();\n }", "public function isEnabled()\r\n {\r\n return $this->enabled;\r\n }", "public function isEnabled()\r\n {\r\n return $this->enabled;\r\n }", "public function getApiEndpoint();", "public function allowedAffiliateUpdateStatusesTo()\r\n {\r\n return array(\r\n Product::INACTIVE,\r\n Product::ACTIVE,\r\n Product::FULL_DELETE,\r\n );\r\n }", "public static function isEnabled() {\n return self::$enabled;\n }", "public function is_enabled()\n {\n }", "public function getStatuses() {\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() {}", "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() {}", "public function getStatus() {}", "public function getSiteStatus();", "public function isEnabled()\n {\n return $this->status == 1;\n }", "function getApiMode()\n {\n return $this->_props['ApiMode'];\n }", "public function getStatus(){\r\n if($this->scopeConfigInterface->getValue(self::XML_PATH_ENABLED,ScopeInterface::SCOPE_WEBSITE) ==1){\r\n return true;\r\n }\r\n return false;\r\n }", "public function getEnableDashboardAccess()\n {\n return $this->enable_dashboard_access;\n }", "public static function isEnabled()\n {\n return self::$enabled;\n }", "public static function isEnabled()\n {\n return self::$enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function status() {\r\n\t\treturn self::request(self::HTTP_GET, 'status');\r\n\t}", "protected function getStatusProviders() {}", "public function getEnabled(): string\n {\n return $this->enabled;\n }" ]
[ "0.7272074", "0.7128765", "0.65910566", "0.65754145", "0.64825964", "0.64425254", "0.63732636", "0.6361831", "0.6336304", "0.6330282", "0.6250149", "0.62391156", "0.6210928", "0.619669", "0.6139708", "0.6112924", "0.60781074", "0.6073868", "0.60506004", "0.6000985", "0.5990128", "0.5990128", "0.5990128", "0.5990128", "0.5968888", "0.5966753", "0.5936348", "0.5936348", "0.5936348", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.5934698", "0.59083676", "0.5907119", "0.5899748", "0.58761877", "0.58703077", "0.5862023", "0.5847848", "0.5833698", "0.5833006", "0.5826232", "0.58196455", "0.5782616", "0.5770559", "0.577034", "0.5764834", "0.57529855", "0.5750427", "0.572863", "0.5727979", "0.5727979", "0.572087", "0.5716572", "0.5715831", "0.57134694", "0.5708861", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.5706302", "0.57059574", "0.57059574", "0.57059574", "0.57059574", "0.5704991", "0.5701784", "0.5698541", "0.5685373", "0.56795377", "0.56748354", "0.56748354", "0.56742567", "0.56742567", "0.56742567", "0.56742567", "0.56742567", "0.56668466", "0.56612253", "0.56606406" ]
0.56801987
89